@itcase/types 1.0.46 → 1.1.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.
Files changed (218) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/align/align.d.ts +3 -0
  3. package/dist/align/index.d.ts +1 -0
  4. package/dist/alignment/alignment.d.ts +3 -0
  5. package/dist/alignment/index.d.ts +1 -0
  6. package/dist/appearance/AppearanceIconSizeKey.d.ts +2 -0
  7. package/dist/appearance/AppearanceKeysDefault.d.ts +2 -0
  8. package/dist/appearance/AppearanceOverlayKey.d.ts +2 -0
  9. package/dist/appearance/AppearanceResponseKeysDefault.d.ts +2 -0
  10. package/dist/appearance/AppearanceShapeKey.d.ts +2 -0
  11. package/dist/appearance/AppearanceStateKeysDefault.d.ts +2 -0
  12. package/dist/appearance/index.d.ts +25 -0
  13. package/dist/blur/blur.d.ts +3 -0
  14. package/dist/blur/index.d.ts +1 -0
  15. package/dist/border/borderColor.d.ts +3 -0
  16. package/dist/border/borderColorActive.d.ts +3 -0
  17. package/dist/border/borderColorDisabled.d.ts +3 -0
  18. package/dist/border/borderColorFocus.d.ts +3 -0
  19. package/dist/border/borderColorHover.d.ts +3 -0
  20. package/dist/border/borderType.d.ts +3 -0
  21. package/dist/border/borderWidth.d.ts +3 -0
  22. package/dist/border/index.d.ts +7 -0
  23. package/dist/centering/centering.d.ts +3 -0
  24. package/dist/centering/index.d.ts +1 -0
  25. package/dist/colors/colorsActive.d.ts +3 -0
  26. package/dist/colors/colorsDisabled.d.ts +3 -0
  27. package/dist/colors/colorsFocus.d.ts +3 -0
  28. package/dist/colors/colorsHover.d.ts +3 -0
  29. package/dist/colors/index.d.ts +4 -0
  30. package/dist/common/common.d.ts +46 -0
  31. package/dist/common/index.d.ts +1 -0
  32. package/dist/direction/direction.d.ts +5 -0
  33. package/dist/direction/index.d.ts +1 -0
  34. package/dist/elevation/elevation.d.ts +3 -0
  35. package/dist/elevation/index.d.ts +1 -0
  36. package/dist/fill/fill.d.ts +3 -0
  37. package/dist/fill/fillActive.d.ts +3 -0
  38. package/dist/fill/fillActiveHover.d.ts +3 -0
  39. package/dist/fill/fillDisabled.d.ts +3 -0
  40. package/dist/fill/fillGradient.d.ts +3 -0
  41. package/dist/fill/fillHover.d.ts +3 -0
  42. package/dist/fill/fillPalette.d.ts +3 -0
  43. package/dist/fill/fillSize.d.ts +3 -0
  44. package/dist/fill/index.d.ts +6 -0
  45. package/dist/height/height.d.ts +3 -0
  46. package/dist/height/index.d.ts +1 -0
  47. package/dist/icon/iconFill.d.ts +3 -0
  48. package/dist/icon/iconFillActive.d.ts +3 -0
  49. package/dist/icon/iconFillActiveHover.d.ts +3 -0
  50. package/dist/icon/iconFillDisabled.d.ts +3 -0
  51. package/dist/icon/iconFillHover.d.ts +3 -0
  52. package/dist/icon/iconFillItem.d.ts +3 -0
  53. package/dist/icon/iconFillSize.d.ts +4 -0
  54. package/dist/icon/iconSize.d.ts +4 -0
  55. package/dist/icon/index.d.ts +8 -0
  56. package/dist/index.d.ts +31 -0
  57. package/dist/item/index.d.ts +1 -0
  58. package/dist/item/itemFill.d.ts +3 -0
  59. package/dist/justifyContent/index.d.ts +1 -0
  60. package/dist/justifyContent/justifyContent.d.ts +3 -0
  61. package/dist/opacity/index.d.ts +1 -0
  62. package/dist/opacity/opacity.d.ts +3 -0
  63. package/dist/option/index.d.ts +1 -0
  64. package/{types/option/option.ts → dist/option/option.d.ts} +5 -7
  65. package/dist/overlay/index.d.ts +1 -0
  66. package/dist/overlay/overlayFill.d.ts +3 -0
  67. package/dist/position/index.d.ts +1 -0
  68. package/dist/position/position.d.ts +3 -0
  69. package/dist/resizeMode/index.d.ts +1 -0
  70. package/dist/resizeMode/resizeMode.d.ts +3 -0
  71. package/dist/shape/index.d.ts +2 -0
  72. package/dist/shape/shape.d.ts +4 -0
  73. package/dist/shape/shapeStrength.d.ts +4 -0
  74. package/dist/size/index.d.ts +3 -0
  75. package/dist/size/size.d.ts +4 -0
  76. package/dist/size/sizeHeading.d.ts +4 -0
  77. package/dist/size/sizePX.d.ts +3 -0
  78. package/dist/stacking/index.d.ts +1 -0
  79. package/dist/stacking/stacking.d.ts +3 -0
  80. package/dist/state/index.d.ts +1 -0
  81. package/dist/state/state.d.ts +3 -0
  82. package/dist/style/index.d.ts +1 -0
  83. package/dist/style/style.d.ts +4 -0
  84. package/dist/svgFill/index.d.ts +3 -0
  85. package/dist/svgFill/svgFill.d.ts +3 -0
  86. package/dist/svgFill/svgFillHover.d.ts +3 -0
  87. package/dist/svgFill/svgFillItem.d.ts +3 -0
  88. package/dist/text/index.d.ts +11 -0
  89. package/dist/text/textAlign.d.ts +3 -0
  90. package/dist/text/textColor.d.ts +3 -0
  91. package/dist/text/textColorActive.d.ts +3 -0
  92. package/dist/text/textColorActiveHover.d.ts +3 -0
  93. package/dist/text/textColorDisabled.d.ts +3 -0
  94. package/dist/text/textColorFocus.d.ts +3 -0
  95. package/dist/text/textColorHover.d.ts +3 -0
  96. package/dist/text/textFont.d.ts +3 -0
  97. package/dist/text/textSize.d.ts +3 -0
  98. package/dist/text/textStyle.d.ts +3 -0
  99. package/dist/text/textTag.d.ts +3 -0
  100. package/dist/text/textWeight.d.ts +3 -0
  101. package/dist/text/textWrap.d.ts +3 -0
  102. package/dist/title/index.d.ts +1 -0
  103. package/dist/title/titleSize.d.ts +3 -0
  104. package/dist/underline/index.d.ts +1 -0
  105. package/dist/underline/underline.d.ts +3 -0
  106. package/dist/width/index.d.ts +1 -0
  107. package/dist/width/width.d.ts +3 -0
  108. package/dist/wrap/index.d.ts +1 -0
  109. package/dist/wrap/wrap.d.ts +3 -0
  110. package/package.json +14 -7
  111. package/types/align/align.ts +0 -47
  112. package/types/align/index.ts +0 -1
  113. package/types/alignment/alignment.ts +0 -14
  114. package/types/alignment/index.ts +0 -1
  115. package/types/appearance/AppearanceIconSizeKey.ts +0 -39
  116. package/types/appearance/AppearanceKeysDefault.ts +0 -43
  117. package/types/appearance/AppearanceOverlayKey.ts +0 -3
  118. package/types/appearance/AppearanceResponseKeysDefault.ts +0 -11
  119. package/types/appearance/AppearanceShapeKey.ts +0 -10
  120. package/types/appearance/AppearanceStateKeysDefault.ts +0 -23
  121. package/types/appearance/index.ts +0 -91
  122. package/types/blur/blur.ts +0 -26
  123. package/types/blur/index.ts +0 -1
  124. package/types/border/borderColor.ts +0 -57
  125. package/types/border/borderColorActive.ts +0 -57
  126. package/types/border/borderColorDisabled.ts +0 -57
  127. package/types/border/borderColorFocus.ts +0 -57
  128. package/types/border/borderColorHover.ts +0 -57
  129. package/types/border/borderType.ts +0 -5
  130. package/types/border/borderWidth.ts +0 -16
  131. package/types/border/index.ts +0 -7
  132. package/types/centering/centering.ts +0 -5
  133. package/types/centering/index.ts +0 -1
  134. package/types/colors/colorsActive.ts +0 -57
  135. package/types/colors/colorsDisabled.ts +0 -57
  136. package/types/colors/colorsFocus.ts +0 -57
  137. package/types/colors/colorsHover.ts +0 -57
  138. package/types/colors/index.ts +0 -4
  139. package/types/common/common.ts +0 -59
  140. package/types/common/index.ts +0 -1
  141. package/types/direction/direction.ts +0 -14
  142. package/types/direction/index.ts +0 -1
  143. package/types/elevation/elevation.ts +0 -5
  144. package/types/elevation/index.ts +0 -1
  145. package/types/fill/fill.ts +0 -61
  146. package/types/fill/fillActive.ts +0 -61
  147. package/types/fill/fillActiveHover.ts +0 -61
  148. package/types/fill/fillDisabled.ts +0 -12
  149. package/types/fill/fillGradient.ts +0 -10
  150. package/types/fill/fillHover.ts +0 -60
  151. package/types/fill/fillPalette.ts +0 -88
  152. package/types/fill/fillSize.ts +0 -17
  153. package/types/fill/index.ts +0 -6
  154. package/types/height/height.ts +0 -5
  155. package/types/height/index.ts +0 -1
  156. package/types/icon/iconFill.ts +0 -60
  157. package/types/icon/iconFillActive.ts +0 -61
  158. package/types/icon/iconFillActiveHover.ts +0 -61
  159. package/types/icon/iconFillDisabled.ts +0 -12
  160. package/types/icon/iconFillHover.ts +0 -60
  161. package/types/icon/iconFillItem.ts +0 -60
  162. package/types/icon/iconFillSize.ts +0 -15
  163. package/types/icon/iconSize.ts +0 -23
  164. package/types/icon/index.ts +0 -8
  165. package/types/index.ts +0 -31
  166. package/types/item/index.ts +0 -1
  167. package/types/item/itemFill.ts +0 -57
  168. package/types/justifyContent/index.ts +0 -1
  169. package/types/justifyContent/justifyContent.ts +0 -17
  170. package/types/opacity/index.ts +0 -1
  171. package/types/opacity/opacity.ts +0 -26
  172. package/types/option/index.ts +0 -1
  173. package/types/overlay/index.ts +0 -1
  174. package/types/overlay/overlayFill.ts +0 -5
  175. package/types/position/index.ts +0 -1
  176. package/types/position/position.ts +0 -11
  177. package/types/resizeMode/Title.interface.ts +0 -147
  178. package/types/resizeMode/index.ts +0 -1
  179. package/types/resizeMode/resizeMode.ts +0 -5
  180. package/types/shape/index.ts +0 -2
  181. package/types/shape/shape.ts +0 -6
  182. package/types/shape/shapeStrength.ts +0 -6
  183. package/types/size/index.ts +0 -3
  184. package/types/size/size.ts +0 -6
  185. package/types/size/sizeHeading.ts +0 -6
  186. package/types/size/sizePX.ts +0 -22
  187. package/types/stacking/index.ts +0 -1
  188. package/types/stacking/stacking.ts +0 -5
  189. package/types/state/index.ts +0 -1
  190. package/types/state/state.ts +0 -12
  191. package/types/style/index.ts +0 -1
  192. package/types/style/style.ts +0 -6
  193. package/types/svgFill/index.ts +0 -3
  194. package/types/svgFill/svgFill.ts +0 -7
  195. package/types/svgFill/svgFillHover.ts +0 -7
  196. package/types/svgFill/svgFillItem.ts +0 -7
  197. package/types/text/index.ts +0 -11
  198. package/types/text/textAlign.ts +0 -5
  199. package/types/text/textColor.ts +0 -55
  200. package/types/text/textColorActive.ts +0 -57
  201. package/types/text/textColorActiveHover.ts +0 -58
  202. package/types/text/textColorDisabled.ts +0 -57
  203. package/types/text/textColorFocus.ts +0 -57
  204. package/types/text/textColorHover.ts +0 -57
  205. package/types/text/textFont.ts +0 -5
  206. package/types/text/textSize.ts +0 -5
  207. package/types/text/textStyle.ts +0 -5
  208. package/types/text/textTag.ts +0 -5
  209. package/types/text/textWeight.ts +0 -34
  210. package/types/text/textWrap.ts +0 -5
  211. package/types/title/index.ts +0 -1
  212. package/types/title/titleSize.ts +0 -5
  213. package/types/underline/index.ts +0 -1
  214. package/types/underline/underline.ts +0 -5
  215. package/types/width/index.ts +0 -1
  216. package/types/width/width.ts +0 -5
  217. package/types/wrap/index.ts +0 -1
  218. 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 }
@@ -1,15 +0,0 @@
1
- const iconFillSizeProps = [
2
- '12',
3
- '14',
4
- '16',
5
- '20',
6
- '24',
7
- '32',
8
- '40',
9
- '48',
10
- ] as const
11
-
12
- type IconFillSizeProps = (typeof iconFillSizeProps)[number]
13
-
14
- export { iconFillSizeProps }
15
- export type { IconFillSizeProps }
@@ -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 }
@@ -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'
@@ -1 +0,0 @@
1
- export * from './itemFill'
@@ -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 }
@@ -1 +0,0 @@
1
- export * from './opacity'
@@ -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 }
@@ -1 +0,0 @@
1
- export * from './option'
@@ -1 +0,0 @@
1
- export * from './overlayFill'
@@ -1,5 +0,0 @@
1
- const overlayFillProps = ['blackout', 'blur'] as const
2
-
3
- export type OverlayFillProps = (typeof overlayFillProps)[number]
4
-
5
- export { overlayFillProps }
@@ -1 +0,0 @@
1
- export * from './position'
@@ -1,11 +0,0 @@
1
- const positionProps = [
2
- 'static',
3
- 'absolute',
4
- 'relative',
5
- 'fixed',
6
- 'inherit',
7
- ] as const
8
-
9
- export type PositionProps = (typeof positionProps)[number]
10
-
11
- export { positionProps }
@@ -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'
@@ -1,5 +0,0 @@
1
- const resizeModeProps = ['cover', 'contain', 'stretch', 'center'] as const
2
-
3
- export type ResizeModeProps = (typeof resizeModeProps)[number]
4
-
5
- export { resizeModeProps }
@@ -1,2 +0,0 @@
1
- export * from './shape'
2
- export * from './shapeStrength'
@@ -1,6 +0,0 @@
1
- const shapeProps = ['geometric', 'circular', 'rounded'] as const
2
-
3
- type ShapeProps = (typeof shapeProps)[number]
4
-
5
- export { shapeProps }
6
- export type { ShapeProps }
@@ -1,6 +0,0 @@
1
- const shapeStrengthProps = ['0_5m', '1m', '1_5m', '2m'] as const
2
-
3
- type ShapeStrengthProps = (typeof shapeStrengthProps)[number]
4
-
5
- export { shapeStrengthProps }
6
- export type { ShapeStrengthProps }
@@ -1,3 +0,0 @@
1
- export * from './size'
2
- export * from './sizePX'
3
- export * from './sizeHeading'
@@ -1,6 +0,0 @@
1
- const sizeProps = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'] as const
2
-
3
- type SizeProps = (typeof sizeProps)[number]
4
-
5
- export { sizeProps }
6
- export type { SizeProps }
@@ -1,6 +0,0 @@
1
- const sizeHeadingProps = ['h6', 'h5', 'h4', 'h3', 'h2', 'h1'] as const
2
-
3
- type SizeHeadingProps = (typeof sizeHeadingProps)[number]
4
-
5
- export { sizeHeadingProps }
6
- export type { SizeHeadingProps }
@@ -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 }
@@ -1 +0,0 @@
1
- export * from './stacking'
@@ -1,5 +0,0 @@
1
- const stackingProps = ['firstOnTop', 'lastOnTop'] as const
2
-
3
- export type StackingProps = (typeof stackingProps)[number]
4
-
5
- export { stackingProps }
@@ -1 +0,0 @@
1
- export * from './state'
@@ -1,12 +0,0 @@
1
- const stateProps = [
2
- 'active',
3
- 'checked',
4
- 'disabled',
5
- 'focus',
6
- 'hover',
7
- 'default',
8
- ] as const
9
-
10
- export type StateProps = (typeof stateProps)[number]
11
-
12
- export { stateProps }
@@ -1 +0,0 @@
1
- export * from './style'
@@ -1,6 +0,0 @@
1
- const styleProps = ['solid', 'outlined', 'full', 'ghost'] as const
2
-
3
- type StyleProps = (typeof styleProps)[number]
4
-
5
- export { styleProps }
6
- export type { StyleProps }
@@ -1,3 +0,0 @@
1
- export * from './svgFill'
2
- export * from './svgFillItem'
3
- export * from './svgFillHover'
@@ -1,7 +0,0 @@
1
- import { fillProps } from '../fill'
2
-
3
- const svgFillProps = [...fillProps] as const
4
-
5
- export type SvgFillProps = (typeof svgFillProps)[number]
6
-
7
- export { svgFillProps }
@@ -1,7 +0,0 @@
1
- import { fillHoverProps } from '../fill'
2
-
3
- const svgFillHoverProps = [...fillHoverProps] as const
4
-
5
- export type SvgFillHoverProps = (typeof svgFillHoverProps)[number]
6
-
7
- export { svgFillHoverProps }
@@ -1,7 +0,0 @@
1
- import { itemFillProps } from '../item'
2
-
3
- const svgFillItemProps = [...itemFillProps] as const
4
-
5
- export type SvgFillItemProps = (typeof svgFillItemProps)[number]
6
-
7
- export { svgFillItemProps }
@@ -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'
@@ -1,5 +0,0 @@
1
- const textAlignProps = ['left', 'center', 'right'] as const
2
-
3
- export type TextAlignProps = (typeof textAlignProps)[number]
4
-
5
- export { textAlignProps }
@@ -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 }