@itcase/types 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +35 -0
- package/.github/workflows/publish.yaml +33 -0
- package/.husky/check_message +5 -0
- package/.husky/post-commit +14 -0
- package/.husky/post-merge +14 -0
- package/.husky/pre-commit +6 -0
- package/.husky/pre-push +14 -0
- package/.husky/set_release_message +43 -0
- package/CHANGELOG.md +13 -0
- package/README.md +7 -0
- package/commitlint.config.mjs +3 -0
- package/eslint.config.mjs +3 -0
- package/index.ts +1 -0
- package/lint-staged.config.mjs +3 -0
- package/package.json +45 -0
- package/prettier.config.mjs +3 -0
- package/release.config.mjs +3 -0
- package/tsconfig.json +23 -0
- package/types/align/align.ts +15 -0
- package/types/align/alignDirection.ts +14 -0
- package/types/align/alignment.ts +14 -0
- package/types/align/index.ts +3 -0
- package/types/appearanceKeys.ts +33 -0
- package/types/border/borderColor.ts +46 -0
- package/types/border/borderColorHover.ts +18 -0
- package/types/border/borderType.ts +5 -0
- package/types/border/borderWidth.ts +16 -0
- package/types/border/index.ts +4 -0
- package/types/direction.ts +12 -0
- package/types/elevation.ts +5 -0
- package/types/fill/fill.ts +39 -0
- package/types/fill/fillGradient.ts +13 -0
- package/types/fill/fillHover.ts +20 -0
- package/types/fill/fillType.ts +5 -0
- package/types/fill/index.ts +4 -0
- package/types/flex/flexAlign.ts +12 -0
- package/types/flex/flexGrow.ts +5 -0
- package/types/flex/flexJustifyContent.ts +12 -0
- package/types/flex/flexWrap.ts +5 -0
- package/types/flex/index.ts +4 -0
- package/types/grid/gridAlign.ts +23 -0
- package/types/grid/gridAlignSelf.ts +23 -0
- package/types/grid/gridJustifyItems.ts +24 -0
- package/types/grid/gridJustifySelf.ts +28 -0
- package/types/grid/index.ts +4 -0
- package/types/height.ts +5 -0
- package/types/horizontal/horizontalContentAlign.ts +6 -0
- package/types/horizontal/horizontalResizeMode.ts +6 -0
- package/types/horizontal/index.ts +2 -0
- package/types/icon/iconFillSize.ts +16 -0
- package/types/icon/iconSize.ts +17 -0
- package/types/icon/index.ts +2 -0
- package/types/index.ts +33 -0
- package/types/itemColor.ts +39 -0
- package/types/justifyContent.ts +17 -0
- package/types/overflow.ts +5 -0
- package/types/position.ts +11 -0
- package/types/resizeMode.ts +11 -0
- package/types/shape.ts +5 -0
- package/types/size/index.ts +3 -0
- package/types/size/size.ts +5 -0
- package/types/size/sizeOption.ts +18 -0
- package/types/size/sizePX.ts +22 -0
- package/types/stacking.ts +5 -0
- package/types/state/index.ts +2 -0
- package/types/state/state.ts +12 -0
- package/types/state/stateKeys.ts +11 -0
- package/types/svgFill.ts +33 -0
- package/types/text/index.ts +10 -0
- package/types/text/textAlign.ts +5 -0
- package/types/text/textColor.ts +40 -0
- package/types/text/textColorActive.ts +40 -0
- package/types/text/textColorHover.ts +40 -0
- package/types/text/textGradient.ts +13 -0
- package/types/text/textSize.ts +5 -0
- package/types/text/textStyle.ts +5 -0
- package/types/text/textTag.ts +5 -0
- package/types/text/textWeight.ts +21 -0
- package/types/text/textWrap.ts +5 -0
- package/types/titleSize.ts +7 -0
- package/types/type.ts +13 -0
- package/types/underline.ts +5 -0
- package/types/vertical/index.ts +2 -0
- package/types/vertical/verticalContentAlign.ts +6 -0
- package/types/vertical/verticalResizeMode.ts +5 -0
- package/types/width.ts +5 -0
- package/types/wrap.ts +5 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const gridAlignSelfProps = [
|
|
2
|
+
'auto',
|
|
3
|
+
'normal',
|
|
4
|
+
'stretch',
|
|
5
|
+
'center',
|
|
6
|
+
'start',
|
|
7
|
+
'end',
|
|
8
|
+
'space-around',
|
|
9
|
+
'space-between',
|
|
10
|
+
'space-evenly',
|
|
11
|
+
'safe center',
|
|
12
|
+
'unsafe center',
|
|
13
|
+
'self-start',
|
|
14
|
+
'self-end',
|
|
15
|
+
'first',
|
|
16
|
+
'baseline',
|
|
17
|
+
'first baseline',
|
|
18
|
+
'last baseline',
|
|
19
|
+
] as const
|
|
20
|
+
|
|
21
|
+
export type tGridAlignSelfProps = (typeof gridAlignSelfProps)[number]
|
|
22
|
+
|
|
23
|
+
export { gridAlignSelfProps }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
const gridJustifyItemsProps = [
|
|
2
|
+
'legacy',
|
|
3
|
+
'normal',
|
|
4
|
+
'stretch',
|
|
5
|
+
'center',
|
|
6
|
+
'safe',
|
|
7
|
+
'center',
|
|
8
|
+
'unsafe',
|
|
9
|
+
'center',
|
|
10
|
+
'start',
|
|
11
|
+
'end',
|
|
12
|
+
'self-start',
|
|
13
|
+
'self-end',
|
|
14
|
+
'left',
|
|
15
|
+
'right',
|
|
16
|
+
'first',
|
|
17
|
+
'baseline',
|
|
18
|
+
'first baseline',
|
|
19
|
+
'last baseline',
|
|
20
|
+
] as const
|
|
21
|
+
|
|
22
|
+
export type tGridJustifyItemsProps = (typeof gridJustifyItemsProps)[number]
|
|
23
|
+
|
|
24
|
+
export { gridJustifyItemsProps }
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
const gridJustifySelfProps = [
|
|
2
|
+
'auto',
|
|
3
|
+
'legacy',
|
|
4
|
+
'normal',
|
|
5
|
+
'stretch',
|
|
6
|
+
'center',
|
|
7
|
+
'start',
|
|
8
|
+
'end',
|
|
9
|
+
'left',
|
|
10
|
+
'right',
|
|
11
|
+
'space-around',
|
|
12
|
+
'space-between',
|
|
13
|
+
'space-evenly',
|
|
14
|
+
'safe',
|
|
15
|
+
'center',
|
|
16
|
+
'unsafe center',
|
|
17
|
+
'self-start',
|
|
18
|
+
'self-end',
|
|
19
|
+
'left',
|
|
20
|
+
'right',
|
|
21
|
+
'baseline',
|
|
22
|
+
'first baseline',
|
|
23
|
+
'last baseline',
|
|
24
|
+
] as const
|
|
25
|
+
|
|
26
|
+
export type tGridJustifySelfProps = (typeof gridJustifySelfProps)[number]
|
|
27
|
+
|
|
28
|
+
export { gridJustifySelfProps }
|
package/types/height.ts
ADDED
package/types/index.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* directories
|
|
3
|
+
*/
|
|
4
|
+
export * from './align'
|
|
5
|
+
export * from './border'
|
|
6
|
+
export * from './fill'
|
|
7
|
+
export * from './grid'
|
|
8
|
+
export * from './text'
|
|
9
|
+
export * from './horizontal'
|
|
10
|
+
export * from './icon'
|
|
11
|
+
export * from './size'
|
|
12
|
+
export * from './state'
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* files
|
|
16
|
+
*/
|
|
17
|
+
export * from './appearanceKeys'
|
|
18
|
+
export * from './direction'
|
|
19
|
+
export * from './elevation'
|
|
20
|
+
export * from './height'
|
|
21
|
+
export * from './itemColor'
|
|
22
|
+
export * from './justifyContent'
|
|
23
|
+
export * from './overflow'
|
|
24
|
+
export * from './position'
|
|
25
|
+
export * from './resizeMode'
|
|
26
|
+
export * from './shape'
|
|
27
|
+
export * from './stacking'
|
|
28
|
+
export * from './svgFill'
|
|
29
|
+
export * from './titleSize'
|
|
30
|
+
export * from './type'
|
|
31
|
+
export * from './underline'
|
|
32
|
+
export * from './width'
|
|
33
|
+
export * from './wrap'
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const itemColorProps = [
|
|
2
|
+
'accentItemPrimary',
|
|
3
|
+
'accentItemSecondary',
|
|
4
|
+
'accentItemTertiary',
|
|
5
|
+
'accentItemDisabled',
|
|
6
|
+
|
|
7
|
+
'primaryItemPrimary',
|
|
8
|
+
'primaryItemSecondary',
|
|
9
|
+
'primaryItemTertiary',
|
|
10
|
+
'primaryItemDisabled',
|
|
11
|
+
|
|
12
|
+
'secondaryItemPrimary',
|
|
13
|
+
'secondaryItemSecondary',
|
|
14
|
+
'secondaryItemTertiary',
|
|
15
|
+
'secondaryItemDisabled',
|
|
16
|
+
|
|
17
|
+
'tertiaryItemPrimary',
|
|
18
|
+
'tertiaryItemSecondary',
|
|
19
|
+
'tertiaryItemTertiary',
|
|
20
|
+
|
|
21
|
+
'surfaceItemPrimary',
|
|
22
|
+
'surfaceItemSecondary',
|
|
23
|
+
'surfaceItemTertiary',
|
|
24
|
+
'surfaceItemQuaternary',
|
|
25
|
+
'surfaceItemQuinary',
|
|
26
|
+
'surfaceItemDisabled',
|
|
27
|
+
'surfaceItemInverse',
|
|
28
|
+
'surfaceItemAccent',
|
|
29
|
+
|
|
30
|
+
'errorItemPrimary',
|
|
31
|
+
'errorItemSecondary',
|
|
32
|
+
|
|
33
|
+
'successItemPrimary',
|
|
34
|
+
'successItemSecondary',
|
|
35
|
+
] as const
|
|
36
|
+
|
|
37
|
+
export type tItemColorProps = (typeof itemColorProps)[number]
|
|
38
|
+
|
|
39
|
+
export { itemColorProps }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const justifyContentProps = [
|
|
2
|
+
'center',
|
|
3
|
+
'flex-end',
|
|
4
|
+
'flex-start',
|
|
5
|
+
'flexEnd',
|
|
6
|
+
'flexStart',
|
|
7
|
+
'space-around',
|
|
8
|
+
'space-between',
|
|
9
|
+
'space-evenly',
|
|
10
|
+
'spaceAround',
|
|
11
|
+
'spaceBetween',
|
|
12
|
+
'spaceEvenly',
|
|
13
|
+
] as const
|
|
14
|
+
|
|
15
|
+
export type tJustifyContentProps = (typeof justifyContentProps)[number]
|
|
16
|
+
|
|
17
|
+
export { justifyContentProps }
|
package/types/shape.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const sizeOptionProps = [
|
|
2
|
+
'any',
|
|
3
|
+
'compact',
|
|
4
|
+
'l',
|
|
5
|
+
'large',
|
|
6
|
+
'm',
|
|
7
|
+
'normal',
|
|
8
|
+
'regular',
|
|
9
|
+
's',
|
|
10
|
+
'tiny',
|
|
11
|
+
'xl',
|
|
12
|
+
'xs',
|
|
13
|
+
'xxl',
|
|
14
|
+
] as const
|
|
15
|
+
|
|
16
|
+
export type tSizeOptionProps = (typeof sizeOptionProps)[number]
|
|
17
|
+
|
|
18
|
+
export { sizeOptionProps }
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const sizePXProps = [
|
|
2
|
+
'14',
|
|
3
|
+
'16',
|
|
4
|
+
'20',
|
|
5
|
+
'24',
|
|
6
|
+
'32',
|
|
7
|
+
'40',
|
|
8
|
+
'48',
|
|
9
|
+
'56',
|
|
10
|
+
'60',
|
|
11
|
+
'64',
|
|
12
|
+
'72',
|
|
13
|
+
'80',
|
|
14
|
+
'96',
|
|
15
|
+
'112',
|
|
16
|
+
'144',
|
|
17
|
+
'240',
|
|
18
|
+
] as const
|
|
19
|
+
|
|
20
|
+
export type tSizePXProps = (typeof sizePXProps)[number]
|
|
21
|
+
|
|
22
|
+
export { sizePXProps }
|
package/types/svgFill.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const svgFillProps = [
|
|
2
|
+
'accentItemPrimary',
|
|
3
|
+
'accentItemSecondary',
|
|
4
|
+
'accentItemTertiary',
|
|
5
|
+
'accentItemDisabled',
|
|
6
|
+
'primaryItemPrimary',
|
|
7
|
+
'primaryItemSecondary',
|
|
8
|
+
'primaryItemTertiary',
|
|
9
|
+
'primaryItemDisabled',
|
|
10
|
+
'secondaryItemPrimary',
|
|
11
|
+
'secondaryItemSecondary',
|
|
12
|
+
'secondaryItemTertiary',
|
|
13
|
+
'secondaryItemDisabled',
|
|
14
|
+
'tertiaryItemPrimary',
|
|
15
|
+
'tertiaryItemSecondary',
|
|
16
|
+
'tertiaryItemTertiary',
|
|
17
|
+
'surfaceItemAccent',
|
|
18
|
+
'surfaceItemDisabled',
|
|
19
|
+
'surfaceItemInverse',
|
|
20
|
+
'surfaceItemPrimary',
|
|
21
|
+
'surfaceItemQuaternary',
|
|
22
|
+
'surfaceItemQuinary',
|
|
23
|
+
'surfaceItemSecondary',
|
|
24
|
+
'surfaceItemTertiary',
|
|
25
|
+
'errorItemPrimary',
|
|
26
|
+
'errorItemSecondary',
|
|
27
|
+
'successItemPrimary',
|
|
28
|
+
'successItemSecondary',
|
|
29
|
+
] as const
|
|
30
|
+
|
|
31
|
+
export type tSvgFillProps = (typeof svgFillProps)[number]
|
|
32
|
+
|
|
33
|
+
export { svgFillProps }
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './textAlign'
|
|
2
|
+
export * from './textColor'
|
|
3
|
+
export * from './textColorActive'
|
|
4
|
+
export * from './textColorHover'
|
|
5
|
+
export * from './textGradient'
|
|
6
|
+
export * from './textSize'
|
|
7
|
+
export * from './textStyle'
|
|
8
|
+
export * from './textTag'
|
|
9
|
+
export * from './textWeight'
|
|
10
|
+
export * from './textWrap'
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const textColorProps = [
|
|
2
|
+
'accentTextPrimary',
|
|
3
|
+
'accentTextSecondary',
|
|
4
|
+
'accentTextTertiary',
|
|
5
|
+
|
|
6
|
+
'primaryTextPrimary',
|
|
7
|
+
'primaryTextSecondary',
|
|
8
|
+
'primaryTextTertiary',
|
|
9
|
+
|
|
10
|
+
'secondaryTextPrimary',
|
|
11
|
+
'secondaryTextSecondary',
|
|
12
|
+
'secondaryTextTertiary',
|
|
13
|
+
|
|
14
|
+
'tertiaryTextPrimary',
|
|
15
|
+
'tertiaryTextSecondary',
|
|
16
|
+
|
|
17
|
+
'surfaceTextAccent',
|
|
18
|
+
'surfaceTextActive',
|
|
19
|
+
'surfaceTextDisabled',
|
|
20
|
+
'surfaceTextFocus',
|
|
21
|
+
'surfaceTextHover',
|
|
22
|
+
'surfaceTextInverse',
|
|
23
|
+
'surfaceTextPrimary',
|
|
24
|
+
'surfaceTextQuaternary',
|
|
25
|
+
'surfaceTextSecondary',
|
|
26
|
+
'surfaceTextTertiary',
|
|
27
|
+
|
|
28
|
+
'errorTextPrimary',
|
|
29
|
+
'errorTextSecondary',
|
|
30
|
+
|
|
31
|
+
'successTextPrimary',
|
|
32
|
+
'successTextSecondary',
|
|
33
|
+
|
|
34
|
+
'dangerTextPrimary',
|
|
35
|
+
'dangerTextSecondary',
|
|
36
|
+
] as const
|
|
37
|
+
|
|
38
|
+
export type tTextColorProps = (typeof textColorProps)[number]
|
|
39
|
+
|
|
40
|
+
export { textColorProps }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const textColorActiveProps = [
|
|
2
|
+
'accentTextPrimary',
|
|
3
|
+
'accentTextSecondary',
|
|
4
|
+
'accentTextTertiary',
|
|
5
|
+
|
|
6
|
+
'primaryTextPrimary',
|
|
7
|
+
'primaryTextSecondary',
|
|
8
|
+
'primaryTextTertiary',
|
|
9
|
+
|
|
10
|
+
'secondaryTextPrimary',
|
|
11
|
+
'secondaryTextSecondary',
|
|
12
|
+
'secondaryTextTertiary',
|
|
13
|
+
|
|
14
|
+
'tertiaryTextPrimary',
|
|
15
|
+
'tertiaryTextSecondary',
|
|
16
|
+
|
|
17
|
+
'surfaceTextAccent',
|
|
18
|
+
'surfaceTextActive',
|
|
19
|
+
'surfaceTextDisabled',
|
|
20
|
+
'surfaceTextFocus',
|
|
21
|
+
'surfaceTextHover',
|
|
22
|
+
'surfaceTextInverse',
|
|
23
|
+
'surfaceTextPrimary',
|
|
24
|
+
'surfaceTextQuaternary',
|
|
25
|
+
'surfaceTextSecondary',
|
|
26
|
+
'surfaceTextTertiary',
|
|
27
|
+
|
|
28
|
+
'errorTextPrimary',
|
|
29
|
+
'errorTextSecondary',
|
|
30
|
+
|
|
31
|
+
'successTextPrimary',
|
|
32
|
+
'successTextSecondary',
|
|
33
|
+
|
|
34
|
+
'dangerTextPrimary',
|
|
35
|
+
'dangerTextSecondary',
|
|
36
|
+
] as const
|
|
37
|
+
|
|
38
|
+
export type tTextColorActiveProps = (typeof textColorActiveProps)[number]
|
|
39
|
+
|
|
40
|
+
export { textColorActiveProps }
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const textColorHoverProps = [
|
|
2
|
+
'accentTextPrimary',
|
|
3
|
+
'accentTextSecondary',
|
|
4
|
+
'accentTextTertiary',
|
|
5
|
+
|
|
6
|
+
'primaryTextPrimary',
|
|
7
|
+
'primaryTextSecondary',
|
|
8
|
+
'primaryTextTertiary',
|
|
9
|
+
|
|
10
|
+
'secondaryTextPrimary',
|
|
11
|
+
'secondaryTextSecondary',
|
|
12
|
+
'secondaryTextTertiary',
|
|
13
|
+
|
|
14
|
+
'tertiaryTextPrimary',
|
|
15
|
+
'tertiaryTextSecondary',
|
|
16
|
+
|
|
17
|
+
'surfaceTextAccent',
|
|
18
|
+
'surfaceTextActive',
|
|
19
|
+
'surfaceTextDisabled',
|
|
20
|
+
'surfaceTextFocus',
|
|
21
|
+
'surfaceTextHover',
|
|
22
|
+
'surfaceTextInverse',
|
|
23
|
+
'surfaceTextPrimary',
|
|
24
|
+
'surfaceTextQuaternary',
|
|
25
|
+
'surfaceTextSecondary',
|
|
26
|
+
'surfaceTextTertiary',
|
|
27
|
+
|
|
28
|
+
'errorTextPrimary',
|
|
29
|
+
'errorTextSecondary',
|
|
30
|
+
|
|
31
|
+
'successTextPrimary',
|
|
32
|
+
'successTextSecondary',
|
|
33
|
+
|
|
34
|
+
'dangerTextPrimary',
|
|
35
|
+
'dangerTextSecondary',
|
|
36
|
+
] as const
|
|
37
|
+
|
|
38
|
+
export type tTextColorHoverProps = (typeof textColorHoverProps)[number]
|
|
39
|
+
|
|
40
|
+
export { textColorHoverProps }
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const textWeightProps = [
|
|
2
|
+
'normal',
|
|
3
|
+
'bold',
|
|
4
|
+
'light',
|
|
5
|
+
'lighter',
|
|
6
|
+
'bolder',
|
|
7
|
+
'100',
|
|
8
|
+
'200',
|
|
9
|
+
'300',
|
|
10
|
+
'400',
|
|
11
|
+
'500',
|
|
12
|
+
'600',
|
|
13
|
+
'700',
|
|
14
|
+
'800',
|
|
15
|
+
'900',
|
|
16
|
+
'950',
|
|
17
|
+
] as const
|
|
18
|
+
|
|
19
|
+
export type tTextWeightProps = (typeof textWeightProps)[number]
|
|
20
|
+
|
|
21
|
+
export { textWeightProps }
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
const titleSizeHeadingProps = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'] as const
|
|
2
|
+
const titleSizeProps = ['xxl', 'xl', 'l', 'm', 's', 'xs', 'xxs'] as const
|
|
3
|
+
|
|
4
|
+
export type tTitleSizeProps = (typeof titleSizeProps)[number]
|
|
5
|
+
export type tTitleSizeHeadingProps = (typeof titleSizeHeadingProps)[number]
|
|
6
|
+
|
|
7
|
+
export { titleSizeProps, titleSizeHeadingProps }
|
package/types/type.ts
ADDED