@itcase/types 1.0.46 → 1.1.3
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/CHANGELOG.md +8 -0
- package/dist/align/align.d.ts +3 -0
- package/dist/align/index.d.ts +1 -0
- package/dist/alignment/alignment.d.ts +3 -0
- package/dist/alignment/index.d.ts +1 -0
- package/dist/appearance/AppearanceIconSizeKey.d.ts +2 -0
- package/dist/appearance/AppearanceKeysDefault.d.ts +2 -0
- package/dist/appearance/AppearanceOverlayKey.d.ts +2 -0
- package/dist/appearance/AppearanceResponseKeysDefault.d.ts +2 -0
- package/dist/appearance/AppearanceShapeKey.d.ts +2 -0
- package/dist/appearance/AppearanceStateKeysDefault.d.ts +2 -0
- package/dist/appearance/index.d.ts +25 -0
- package/dist/blur/blur.d.ts +3 -0
- package/dist/blur/index.d.ts +1 -0
- package/dist/border/borderColor.d.ts +3 -0
- package/dist/border/borderColorActive.d.ts +3 -0
- package/dist/border/borderColorDisabled.d.ts +3 -0
- package/dist/border/borderColorFocus.d.ts +3 -0
- package/dist/border/borderColorHover.d.ts +3 -0
- package/dist/border/borderType.d.ts +3 -0
- package/dist/border/borderWidth.d.ts +3 -0
- package/dist/border/index.d.ts +7 -0
- package/dist/centering/centering.d.ts +3 -0
- package/dist/centering/index.d.ts +1 -0
- package/dist/colors/colorsActive.d.ts +3 -0
- package/dist/colors/colorsDisabled.d.ts +3 -0
- package/dist/colors/colorsFocus.d.ts +3 -0
- package/dist/colors/colorsHover.d.ts +3 -0
- package/dist/colors/index.d.ts +4 -0
- package/dist/common/common.d.ts +46 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/direction/direction.d.ts +5 -0
- package/dist/direction/index.d.ts +1 -0
- package/dist/elevation/elevation.d.ts +3 -0
- package/dist/elevation/index.d.ts +1 -0
- package/dist/fill/fill.d.ts +3 -0
- package/dist/fill/fillActive.d.ts +3 -0
- package/dist/fill/fillActiveHover.d.ts +3 -0
- package/dist/fill/fillDisabled.d.ts +3 -0
- package/dist/fill/fillGradient.d.ts +3 -0
- package/dist/fill/fillHover.d.ts +3 -0
- package/dist/fill/fillPalette.d.ts +3 -0
- package/dist/fill/fillSize.d.ts +3 -0
- package/dist/fill/index.d.ts +6 -0
- package/dist/height/height.d.ts +3 -0
- package/dist/height/index.d.ts +1 -0
- package/dist/icon/iconFill.d.ts +3 -0
- package/dist/icon/iconFillActive.d.ts +3 -0
- package/dist/icon/iconFillActiveHover.d.ts +3 -0
- package/dist/icon/iconFillDisabled.d.ts +3 -0
- package/dist/icon/iconFillHover.d.ts +3 -0
- package/dist/icon/iconFillItem.d.ts +3 -0
- package/dist/icon/iconFillSize.d.ts +4 -0
- package/dist/icon/iconSize.d.ts +4 -0
- package/dist/icon/index.d.ts +8 -0
- package/dist/index.d.ts +31 -0
- package/dist/item/index.d.ts +1 -0
- package/dist/item/itemFill.d.ts +3 -0
- package/dist/justifyContent/index.d.ts +1 -0
- package/dist/justifyContent/justifyContent.d.ts +3 -0
- package/dist/opacity/index.d.ts +1 -0
- package/dist/opacity/opacity.d.ts +3 -0
- package/dist/option/index.d.ts +1 -0
- package/{types/option/option.ts → dist/option/option.d.ts} +5 -7
- package/dist/overlay/index.d.ts +1 -0
- package/dist/overlay/overlayFill.d.ts +3 -0
- package/dist/position/index.d.ts +1 -0
- package/dist/position/position.d.ts +3 -0
- package/dist/resizeMode/index.d.ts +1 -0
- package/dist/resizeMode/resizeMode.d.ts +3 -0
- package/dist/shape/index.d.ts +2 -0
- package/dist/shape/shape.d.ts +4 -0
- package/dist/shape/shapeStrength.d.ts +4 -0
- package/dist/size/index.d.ts +3 -0
- package/dist/size/size.d.ts +4 -0
- package/dist/size/sizeHeading.d.ts +4 -0
- package/dist/size/sizePX.d.ts +3 -0
- package/dist/stacking/index.d.ts +1 -0
- package/dist/stacking/stacking.d.ts +3 -0
- package/dist/state/index.d.ts +1 -0
- package/dist/state/state.d.ts +3 -0
- package/dist/style/index.d.ts +1 -0
- package/dist/style/style.d.ts +4 -0
- package/dist/svgFill/index.d.ts +3 -0
- package/dist/svgFill/svgFill.d.ts +3 -0
- package/dist/svgFill/svgFillHover.d.ts +3 -0
- package/dist/svgFill/svgFillItem.d.ts +3 -0
- package/dist/text/index.d.ts +11 -0
- package/dist/text/textAlign.d.ts +3 -0
- package/dist/text/textColor.d.ts +3 -0
- package/dist/text/textColorActive.d.ts +3 -0
- package/dist/text/textColorActiveHover.d.ts +3 -0
- package/dist/text/textColorDisabled.d.ts +3 -0
- package/dist/text/textColorFocus.d.ts +3 -0
- package/dist/text/textColorHover.d.ts +3 -0
- package/dist/text/textFont.d.ts +3 -0
- package/dist/text/textSize.d.ts +3 -0
- package/dist/text/textStyle.d.ts +3 -0
- package/dist/text/textTag.d.ts +3 -0
- package/dist/text/textWeight.d.ts +3 -0
- package/dist/text/textWrap.d.ts +3 -0
- package/dist/title/index.d.ts +1 -0
- package/dist/title/titleSize.d.ts +3 -0
- package/dist/underline/index.d.ts +1 -0
- package/dist/underline/underline.d.ts +3 -0
- package/dist/width/index.d.ts +1 -0
- package/dist/width/width.d.ts +3 -0
- package/dist/wrap/index.d.ts +1 -0
- package/dist/wrap/wrap.d.ts +3 -0
- package/package.json +20 -13
- package/types/align/align.ts +0 -47
- package/types/align/index.ts +0 -1
- package/types/alignment/alignment.ts +0 -14
- package/types/alignment/index.ts +0 -1
- package/types/appearance/AppearanceIconSizeKey.ts +0 -39
- package/types/appearance/AppearanceKeysDefault.ts +0 -43
- package/types/appearance/AppearanceOverlayKey.ts +0 -3
- package/types/appearance/AppearanceResponseKeysDefault.ts +0 -11
- package/types/appearance/AppearanceShapeKey.ts +0 -10
- package/types/appearance/AppearanceStateKeysDefault.ts +0 -23
- package/types/appearance/index.ts +0 -91
- package/types/blur/blur.ts +0 -26
- package/types/blur/index.ts +0 -1
- package/types/border/borderColor.ts +0 -57
- package/types/border/borderColorActive.ts +0 -57
- package/types/border/borderColorDisabled.ts +0 -57
- package/types/border/borderColorFocus.ts +0 -57
- package/types/border/borderColorHover.ts +0 -57
- package/types/border/borderType.ts +0 -5
- package/types/border/borderWidth.ts +0 -16
- package/types/border/index.ts +0 -7
- package/types/centering/centering.ts +0 -5
- package/types/centering/index.ts +0 -1
- package/types/colors/colorsActive.ts +0 -57
- package/types/colors/colorsDisabled.ts +0 -57
- package/types/colors/colorsFocus.ts +0 -57
- package/types/colors/colorsHover.ts +0 -57
- package/types/colors/index.ts +0 -4
- package/types/common/common.ts +0 -59
- package/types/common/index.ts +0 -1
- package/types/direction/direction.ts +0 -14
- package/types/direction/index.ts +0 -1
- package/types/elevation/elevation.ts +0 -5
- package/types/elevation/index.ts +0 -1
- package/types/fill/fill.ts +0 -61
- package/types/fill/fillActive.ts +0 -61
- package/types/fill/fillActiveHover.ts +0 -61
- package/types/fill/fillDisabled.ts +0 -12
- package/types/fill/fillGradient.ts +0 -10
- package/types/fill/fillHover.ts +0 -60
- package/types/fill/fillPalette.ts +0 -88
- package/types/fill/fillSize.ts +0 -17
- package/types/fill/index.ts +0 -6
- package/types/height/height.ts +0 -5
- package/types/height/index.ts +0 -1
- package/types/icon/iconFill.ts +0 -60
- package/types/icon/iconFillActive.ts +0 -61
- package/types/icon/iconFillActiveHover.ts +0 -61
- package/types/icon/iconFillDisabled.ts +0 -12
- package/types/icon/iconFillHover.ts +0 -60
- package/types/icon/iconFillItem.ts +0 -60
- package/types/icon/iconFillSize.ts +0 -15
- package/types/icon/iconSize.ts +0 -23
- package/types/icon/index.ts +0 -8
- package/types/index.ts +0 -31
- package/types/item/index.ts +0 -1
- package/types/item/itemFill.ts +0 -57
- package/types/justifyContent/index.ts +0 -1
- package/types/justifyContent/justifyContent.ts +0 -17
- package/types/opacity/index.ts +0 -1
- package/types/opacity/opacity.ts +0 -26
- package/types/option/index.ts +0 -1
- package/types/overlay/index.ts +0 -1
- package/types/overlay/overlayFill.ts +0 -5
- package/types/position/index.ts +0 -1
- package/types/position/position.ts +0 -11
- package/types/resizeMode/Title.interface.ts +0 -147
- package/types/resizeMode/index.ts +0 -1
- package/types/resizeMode/resizeMode.ts +0 -5
- package/types/shape/index.ts +0 -2
- package/types/shape/shape.ts +0 -6
- package/types/shape/shapeStrength.ts +0 -6
- package/types/size/index.ts +0 -3
- package/types/size/size.ts +0 -6
- package/types/size/sizeHeading.ts +0 -6
- package/types/size/sizePX.ts +0 -22
- package/types/stacking/index.ts +0 -1
- package/types/stacking/stacking.ts +0 -5
- package/types/state/index.ts +0 -1
- package/types/state/state.ts +0 -12
- package/types/style/index.ts +0 -1
- package/types/style/style.ts +0 -6
- package/types/svgFill/index.ts +0 -3
- package/types/svgFill/svgFill.ts +0 -7
- package/types/svgFill/svgFillHover.ts +0 -7
- package/types/svgFill/svgFillItem.ts +0 -7
- package/types/text/index.ts +0 -11
- package/types/text/textAlign.ts +0 -5
- package/types/text/textColor.ts +0 -55
- package/types/text/textColorActive.ts +0 -57
- package/types/text/textColorActiveHover.ts +0 -58
- package/types/text/textColorDisabled.ts +0 -57
- package/types/text/textColorFocus.ts +0 -57
- package/types/text/textColorHover.ts +0 -57
- package/types/text/textFont.ts +0 -5
- package/types/text/textSize.ts +0 -5
- package/types/text/textStyle.ts +0 -5
- package/types/text/textTag.ts +0 -5
- package/types/text/textWeight.ts +0 -34
- package/types/text/textWrap.ts +0 -5
- package/types/title/index.ts +0 -1
- package/types/title/titleSize.ts +0 -5
- package/types/underline/index.ts +0 -1
- package/types/underline/underline.ts +0 -5
- package/types/width/index.ts +0 -1
- package/types/width/width.ts +0 -5
- package/types/wrap/index.ts +0 -1
- package/types/wrap/wrap.ts +0 -5
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { fillPaletteProps } from './../fill/fillPalette'
|
|
2
|
-
|
|
3
|
-
const iconFillItemProps = [
|
|
4
|
-
'accentItemPrimary',
|
|
5
|
-
'accentItemSecondary',
|
|
6
|
-
'accentItemTertiary',
|
|
7
|
-
'accentItemQuaternary',
|
|
8
|
-
|
|
9
|
-
'specialItemPrimary',
|
|
10
|
-
'specialItemSecondary',
|
|
11
|
-
'specialItemTertiary',
|
|
12
|
-
'specialItemQuaternary',
|
|
13
|
-
|
|
14
|
-
'extraItemPrimary',
|
|
15
|
-
'extraItemSecondary',
|
|
16
|
-
'extraItemTertiary',
|
|
17
|
-
'extraItemQuaternary',
|
|
18
|
-
|
|
19
|
-
'surfaceItemPrimary',
|
|
20
|
-
'surfaceItemSecondary',
|
|
21
|
-
'surfaceItemTertiary',
|
|
22
|
-
'surfaceItemQuaternary',
|
|
23
|
-
|
|
24
|
-
'errorItemPrimary',
|
|
25
|
-
'errorItemSecondary',
|
|
26
|
-
'errorItemTertiary',
|
|
27
|
-
'errorItemQuaternary',
|
|
28
|
-
|
|
29
|
-
'warningItemPrimary',
|
|
30
|
-
'warningItemSecondary',
|
|
31
|
-
'warningItemTertiary',
|
|
32
|
-
'warningItemQuaternary',
|
|
33
|
-
|
|
34
|
-
'successItemPrimary',
|
|
35
|
-
'successItemSecondary',
|
|
36
|
-
'successItemTertiary',
|
|
37
|
-
'successItemQuaternary',
|
|
38
|
-
|
|
39
|
-
'infoItemPrimary',
|
|
40
|
-
'infoItemSecondary',
|
|
41
|
-
'infoItemTertiary',
|
|
42
|
-
'infoItemQuaternary',
|
|
43
|
-
|
|
44
|
-
'dangerItemPrimary',
|
|
45
|
-
'dangerItemSecondary',
|
|
46
|
-
'dangerItemTertiary',
|
|
47
|
-
'dangerItemQuaternary',
|
|
48
|
-
|
|
49
|
-
'disabledItemPrimary',
|
|
50
|
-
'disabledItemSecondary',
|
|
51
|
-
'disabledItemTertiary',
|
|
52
|
-
'disabledItemQuaternary',
|
|
53
|
-
|
|
54
|
-
'none',
|
|
55
|
-
...fillPaletteProps,
|
|
56
|
-
] as const
|
|
57
|
-
|
|
58
|
-
export type IconFillItemProps = (typeof iconFillItemProps)[number]
|
|
59
|
-
|
|
60
|
-
export { iconFillItemProps }
|
package/types/icon/iconSize.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
const iconSizeProps = [
|
|
2
|
-
'12',
|
|
3
|
-
'14',
|
|
4
|
-
'16',
|
|
5
|
-
'20',
|
|
6
|
-
'24',
|
|
7
|
-
'32',
|
|
8
|
-
'40',
|
|
9
|
-
'48',
|
|
10
|
-
'56',
|
|
11
|
-
'60',
|
|
12
|
-
'64',
|
|
13
|
-
'72',
|
|
14
|
-
'80',
|
|
15
|
-
'96',
|
|
16
|
-
'112',
|
|
17
|
-
'144',
|
|
18
|
-
] as const
|
|
19
|
-
|
|
20
|
-
type IconSizeProps = (typeof iconSizeProps)[number]
|
|
21
|
-
|
|
22
|
-
export { iconSizeProps }
|
|
23
|
-
export type { IconSizeProps }
|
package/types/icon/index.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './iconFill'
|
|
2
|
-
export * from './iconFillActive'
|
|
3
|
-
export * from './iconFillActiveHover'
|
|
4
|
-
export * from './iconFillDisabled'
|
|
5
|
-
export * from './iconFillHover'
|
|
6
|
-
export * from './iconFillItem'
|
|
7
|
-
export * from './iconFillSize'
|
|
8
|
-
export * from './iconSize'
|
package/types/index.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from './align'
|
|
2
|
-
export * from './alignment'
|
|
3
|
-
export * from './appearance'
|
|
4
|
-
export * from './border'
|
|
5
|
-
export * from './blur'
|
|
6
|
-
export * from './centering'
|
|
7
|
-
export * from './colors'
|
|
8
|
-
export * from './common'
|
|
9
|
-
export * from './direction'
|
|
10
|
-
export * from './elevation'
|
|
11
|
-
export * from './fill'
|
|
12
|
-
export * from './height'
|
|
13
|
-
export * from './icon'
|
|
14
|
-
export * from './item'
|
|
15
|
-
export * from './justifyContent'
|
|
16
|
-
export * from './opacity'
|
|
17
|
-
export * from './option'
|
|
18
|
-
export * from './overlay'
|
|
19
|
-
export * from './position'
|
|
20
|
-
export * from './resizeMode'
|
|
21
|
-
export * from './shape'
|
|
22
|
-
export * from './size'
|
|
23
|
-
export * from './stacking'
|
|
24
|
-
export * from './state'
|
|
25
|
-
export * from './style'
|
|
26
|
-
export * from './svgFill'
|
|
27
|
-
export * from './text'
|
|
28
|
-
export * from './title'
|
|
29
|
-
export * from './underline'
|
|
30
|
-
export * from './width'
|
|
31
|
-
export * from './wrap'
|
package/types/item/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './itemFill'
|
package/types/item/itemFill.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const itemFillProps = [
|
|
2
|
-
'accentItemPrimary',
|
|
3
|
-
'accentItemSecondary',
|
|
4
|
-
'accentItemTertiary',
|
|
5
|
-
'accentItemQuaternary',
|
|
6
|
-
|
|
7
|
-
'specialItemPrimary',
|
|
8
|
-
'specialItemSecondary',
|
|
9
|
-
'specialItemTertiary',
|
|
10
|
-
'specialItemQuaternary',
|
|
11
|
-
|
|
12
|
-
'extraItemPrimary',
|
|
13
|
-
'extraItemSecondary',
|
|
14
|
-
'extraItemTertiary',
|
|
15
|
-
'extraItemQuaternary',
|
|
16
|
-
|
|
17
|
-
'surfaceItemPrimary',
|
|
18
|
-
'surfaceItemSecondary',
|
|
19
|
-
'surfaceItemTertiary',
|
|
20
|
-
'surfaceItemQuaternary',
|
|
21
|
-
|
|
22
|
-
'errorItemPrimary',
|
|
23
|
-
'errorItemSecondary',
|
|
24
|
-
'errorItemTertiary',
|
|
25
|
-
'errorItemQuaternary',
|
|
26
|
-
|
|
27
|
-
'warningItemPrimary',
|
|
28
|
-
'warningItemSecondary',
|
|
29
|
-
'warningItemTertiary',
|
|
30
|
-
'warningItemQuaternary',
|
|
31
|
-
|
|
32
|
-
'successItemPrimary',
|
|
33
|
-
'successItemSecondary',
|
|
34
|
-
'successItemTertiary',
|
|
35
|
-
'successItemQuaternary',
|
|
36
|
-
|
|
37
|
-
'infoItemPrimary',
|
|
38
|
-
'infoItemSecondary',
|
|
39
|
-
'infoItemTertiary',
|
|
40
|
-
'infoItemQuaternary',
|
|
41
|
-
|
|
42
|
-
'dangerItemPrimary',
|
|
43
|
-
'dangerItemSecondary',
|
|
44
|
-
'dangerItemTertiary',
|
|
45
|
-
'dangerItemQuaternary',
|
|
46
|
-
|
|
47
|
-
'disabledItemPrimary',
|
|
48
|
-
'disabledItemSecondary',
|
|
49
|
-
'disabledItemTertiary',
|
|
50
|
-
'disabledItemQuaternary',
|
|
51
|
-
|
|
52
|
-
'none',
|
|
53
|
-
] as const
|
|
54
|
-
|
|
55
|
-
export type ItemFillProps = (typeof itemFillProps)[number]
|
|
56
|
-
|
|
57
|
-
export { itemFillProps }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './justifyContent'
|
|
@@ -1,17 +0,0 @@
|
|
|
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 JustifyContentProps = (typeof justifyContentProps)[number]
|
|
16
|
-
|
|
17
|
-
export { justifyContentProps }
|
package/types/opacity/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './opacity'
|
package/types/opacity/opacity.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const opacityProps = [
|
|
2
|
-
'0',
|
|
3
|
-
'5',
|
|
4
|
-
'10',
|
|
5
|
-
'15',
|
|
6
|
-
'20',
|
|
7
|
-
'25',
|
|
8
|
-
'30',
|
|
9
|
-
'35',
|
|
10
|
-
'40',
|
|
11
|
-
'45',
|
|
12
|
-
'50',
|
|
13
|
-
'55',
|
|
14
|
-
'60',
|
|
15
|
-
'65',
|
|
16
|
-
'75',
|
|
17
|
-
'80',
|
|
18
|
-
'85',
|
|
19
|
-
'90',
|
|
20
|
-
'95',
|
|
21
|
-
'100',
|
|
22
|
-
] as const
|
|
23
|
-
|
|
24
|
-
export type OpacityProps = (typeof opacityProps)[number]
|
|
25
|
-
|
|
26
|
-
export { opacityProps }
|
package/types/option/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './option'
|
package/types/overlay/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './overlayFill'
|
package/types/position/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './position'
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
// import { CSSProperties, ElementType, ReactNode } from 'react'
|
|
2
|
-
|
|
3
|
-
// import {
|
|
4
|
-
// AppearanceKeysDefault,
|
|
5
|
-
// FillProps,
|
|
6
|
-
// SvgFillProps,
|
|
7
|
-
// TextAlignProps,
|
|
8
|
-
// TextColorActiveProps,
|
|
9
|
-
// TextColorHoverProps,
|
|
10
|
-
// TextColorProps,
|
|
11
|
-
// TextGradientProps,
|
|
12
|
-
// TextStyleProps,
|
|
13
|
-
// TextWeightProps,
|
|
14
|
-
// TextWrapProps,
|
|
15
|
-
// TitleSizeProps,
|
|
16
|
-
// } from '@itcase/types'
|
|
17
|
-
|
|
18
|
-
// import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface'
|
|
19
|
-
|
|
20
|
-
// interface TitleThemeColor {
|
|
21
|
-
// [key: number | string | symbol]: any
|
|
22
|
-
|
|
23
|
-
// fill?: FillProps
|
|
24
|
-
// size?: TitleSizeProps
|
|
25
|
-
// sizeDesktop?: TitleSizeProps
|
|
26
|
-
// sizeMobile?: TitleSizeProps
|
|
27
|
-
// sizeTablet?: TitleSizeProps
|
|
28
|
-
// svgFill?: SvgFillProps
|
|
29
|
-
// svgFillHover?: SvgFillProps
|
|
30
|
-
// textColor?: TextColorProps
|
|
31
|
-
// textColorActive?: TextColorActiveProps
|
|
32
|
-
// textColorHover?: TextColorHoverProps
|
|
33
|
-
// textGradient?: TextGradientProps
|
|
34
|
-
// textStyle?: TextStyleProps
|
|
35
|
-
// textWeight?: TextWeightProps
|
|
36
|
-
// textWrap?: TextWrapProps
|
|
37
|
-
// weight?: TextWeightProps
|
|
38
|
-
// }
|
|
39
|
-
|
|
40
|
-
// type AppearanceKeys = AppearanceKeysDefault & {}
|
|
41
|
-
|
|
42
|
-
// export type TitleAppearanceType = {
|
|
43
|
-
// [key in AppearanceKeys]: TitleThemeColor
|
|
44
|
-
// }
|
|
45
|
-
|
|
46
|
-
// export interface TitleConfig {
|
|
47
|
-
// [key: number | string | symbol]: any
|
|
48
|
-
|
|
49
|
-
// appearance: TitleAppearanceType | undefined
|
|
50
|
-
// setAppearance: (newComponent: TitleAppearanceType) => void
|
|
51
|
-
// }
|
|
52
|
-
|
|
53
|
-
// export interface TitleProps extends TitleThemeColor, StyleAttributes {
|
|
54
|
-
// [key: number | string | symbol]: any
|
|
55
|
-
|
|
56
|
-
// after?: any
|
|
57
|
-
// afterWrapper?: any
|
|
58
|
-
// appearance?: AppearanceKeys
|
|
59
|
-
// before?: any
|
|
60
|
-
// beforeWrapper?: any
|
|
61
|
-
// children: ReactNode
|
|
62
|
-
// className?: string
|
|
63
|
-
// dataTour?: string
|
|
64
|
-
// direction?: string
|
|
65
|
-
// directionWrapper?: string
|
|
66
|
-
// mode?: string
|
|
67
|
-
// style?: CSSProperties
|
|
68
|
-
// tag?: ElementType
|
|
69
|
-
// text?: string
|
|
70
|
-
// textAlign?: TextAlignProps
|
|
71
|
-
// textTruncate?: string
|
|
72
|
-
// type?: string
|
|
73
|
-
// onClick?: () => void
|
|
74
|
-
// }
|
|
75
|
-
|
|
76
|
-
import { CSSProperties, ReactNode } from 'react'
|
|
77
|
-
|
|
78
|
-
import {
|
|
79
|
-
AppearanceKeysDefault,
|
|
80
|
-
AppearanceShapeKey,
|
|
81
|
-
AppearanceSizePxKey,
|
|
82
|
-
AppearanceStyleKey,
|
|
83
|
-
CompositeAppearanceSizePxKey,
|
|
84
|
-
TextAlignProps,
|
|
85
|
-
TextColorActiveHoverProps,
|
|
86
|
-
TextColorActiveProps,
|
|
87
|
-
TextColorHoverProps,
|
|
88
|
-
TextColorProps,
|
|
89
|
-
TextSizeProps,
|
|
90
|
-
TextTagProps,
|
|
91
|
-
TextWeightProps,
|
|
92
|
-
TextWrapProps,
|
|
93
|
-
} from '@itcase/types'
|
|
94
|
-
|
|
95
|
-
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface'
|
|
96
|
-
|
|
97
|
-
/* List of props use in Appearance files ./appearance */
|
|
98
|
-
type TitleAppearanceProps = {
|
|
99
|
-
cursor?: string
|
|
100
|
-
size?: TextSizeProps
|
|
101
|
-
textAlign?: TextAlignProps
|
|
102
|
-
textColor?: TextColorProps
|
|
103
|
-
textColorActive?: TextColorActiveProps
|
|
104
|
-
textColorHover?: TextColorHoverProps
|
|
105
|
-
textColorHoverActive?: TextColorActiveHoverProps
|
|
106
|
-
textTruncate?: boolean
|
|
107
|
-
textWeight?: TextWeightProps
|
|
108
|
-
textWrap?: TextWrapProps
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/* List of props use in component */
|
|
112
|
-
type TitleProps = StyleAttributes &
|
|
113
|
-
TitleAppearanceProps & {
|
|
114
|
-
after?: string
|
|
115
|
-
appearance?: CompositeAppearanceSizePxKey
|
|
116
|
-
before?: string
|
|
117
|
-
children?: ReactNode
|
|
118
|
-
className?: string
|
|
119
|
-
dataTestId?: string
|
|
120
|
-
dataTour?: string
|
|
121
|
-
htmlFor?: string
|
|
122
|
-
isActive: boolean
|
|
123
|
-
isDisabled: boolean
|
|
124
|
-
isSkeleton?: boolean
|
|
125
|
-
onClick: () => void
|
|
126
|
-
onDoubleClick: () => void
|
|
127
|
-
style?: CSSProperties
|
|
128
|
-
tag: TextTagProps
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* List of Appearance Keys */
|
|
132
|
-
type TitleAppearanceKey =
|
|
133
|
-
| AppearanceKeysDefault
|
|
134
|
-
| AppearanceShapeKey
|
|
135
|
-
| AppearanceSizePxKey
|
|
136
|
-
| AppearanceStyleKey
|
|
137
|
-
|
|
138
|
-
type TitleAppearance = {
|
|
139
|
-
[key in TitleAppearanceKey]?: TitleAppearanceProps
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
type TitleConfig = {
|
|
143
|
-
appearance: TitleAppearance
|
|
144
|
-
setAppearance: (appearanceConfig: TitleAppearance) => void
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export type { TitleAppearance, TitleConfig, TitleProps }
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './resizeMode'
|
package/types/shape/index.ts
DELETED
package/types/shape/shape.ts
DELETED
package/types/size/index.ts
DELETED
package/types/size/size.ts
DELETED
package/types/size/sizePX.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
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 SizePXProps = (typeof sizePXProps)[number]
|
|
21
|
-
|
|
22
|
-
export { sizePXProps }
|
package/types/stacking/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './stacking'
|
package/types/state/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './state'
|
package/types/state/state.ts
DELETED
package/types/style/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './style'
|
package/types/style/style.ts
DELETED
package/types/svgFill/index.ts
DELETED
package/types/svgFill/svgFill.ts
DELETED
package/types/text/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './textAlign'
|
|
2
|
-
export * from './textColor'
|
|
3
|
-
export * from './textColorActive'
|
|
4
|
-
export * from './textColorActiveHover'
|
|
5
|
-
export * from './textColorFocus'
|
|
6
|
-
export * from './textColorHover'
|
|
7
|
-
export * from './textFont'
|
|
8
|
-
export * from './textSize'
|
|
9
|
-
export * from './textTag'
|
|
10
|
-
export * from './textWeight'
|
|
11
|
-
export * from './textWrap'
|
package/types/text/textAlign.ts
DELETED
package/types/text/textColor.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
const textColorProps = [
|
|
2
|
-
'accentTextPrimary',
|
|
3
|
-
'accentTextSecondary',
|
|
4
|
-
'accentTextTertiary',
|
|
5
|
-
'accentTextQuaternary',
|
|
6
|
-
|
|
7
|
-
'specialTextPrimary',
|
|
8
|
-
'specialTextSecondary',
|
|
9
|
-
'specialTextTertiary',
|
|
10
|
-
'specialTextQuaternary',
|
|
11
|
-
|
|
12
|
-
'extraTextPrimary',
|
|
13
|
-
'extraTextSecondary',
|
|
14
|
-
'extraTextTertiary',
|
|
15
|
-
'extraTextQuaternary',
|
|
16
|
-
|
|
17
|
-
'surfaceTextPrimary',
|
|
18
|
-
'surfaceTextSecondary',
|
|
19
|
-
'surfaceTextTertiary',
|
|
20
|
-
'surfaceTextQuaternary',
|
|
21
|
-
|
|
22
|
-
'errorTextPrimary',
|
|
23
|
-
'errorTextSecondary',
|
|
24
|
-
'errorTextTertiary',
|
|
25
|
-
'errorTextQuaternary',
|
|
26
|
-
|
|
27
|
-
'warningTextPrimary',
|
|
28
|
-
'warningTextSecondary',
|
|
29
|
-
'warningTextTertiary',
|
|
30
|
-
'warningTextQuaternary',
|
|
31
|
-
|
|
32
|
-
'successTextPrimary',
|
|
33
|
-
'successTextSecondary',
|
|
34
|
-
'successTextTertiary',
|
|
35
|
-
'successTextQuaternary',
|
|
36
|
-
|
|
37
|
-
'infoTextPrimary',
|
|
38
|
-
'infoTextSecondary',
|
|
39
|
-
'infoTextTertiary',
|
|
40
|
-
'infoTextQuaternary',
|
|
41
|
-
|
|
42
|
-
'dangerTextPrimary',
|
|
43
|
-
'dangerTextSecondary',
|
|
44
|
-
'dangerTextTertiary',
|
|
45
|
-
'dangerTextQuaternary',
|
|
46
|
-
|
|
47
|
-
'disabledTextPrimary',
|
|
48
|
-
'disabledTextSecondary',
|
|
49
|
-
'disabledTextTertiary',
|
|
50
|
-
'disabledTextQuaternary',
|
|
51
|
-
] as const
|
|
52
|
-
|
|
53
|
-
export type TextColorProps = (typeof textColorProps)[number]
|
|
54
|
-
|
|
55
|
-
export { textColorProps }
|