Skip to content

Commit

Permalink
Merge pull request #815 from gympass/DS-840
Browse files Browse the repository at this point in the history
🚀 feat(system): add types to overflow
  • Loading branch information
evilamaior authored May 28, 2024
2 parents 81c2d38 + deeb239 commit e1fd25c
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/system/src/overflow/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './overflow';
export type { Overflows } from './types';
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { compose, generator } from './theme';
import { compose, generator } from '../theme';

const overflow = props =>
generator({
Expand Down
18 changes: 18 additions & 0 deletions packages/system/src/overflow/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
type OverflowValues = string;

type Overflow = {
overflow?: OverflowValues;
of?: OverflowValues;
};

type OverflowX = {
overflowX?: OverflowValues;
ox?: OverflowValues;
};

type OverflowY = {
overflowY?: OverflowValues;
oy?: OverflowValues;
};

export type Overflows = Overflow & OverflowX & OverflowY;

0 comments on commit e1fd25c

Please sign in to comment.