@itcase/types 1.0.45 → 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 (216) hide show
  1. package/CHANGELOG.md +4 -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 +22 -15
  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 -10
  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/textSize.ts +0 -5
  206. package/types/text/textTag.ts +0 -5
  207. package/types/text/textWeight.ts +0 -34
  208. package/types/text/textWrap.ts +0 -5
  209. package/types/title/index.ts +0 -1
  210. package/types/title/titleSize.ts +0 -5
  211. package/types/underline/index.ts +0 -1
  212. package/types/underline/underline.ts +0 -5
  213. package/types/width/index.ts +0 -1
  214. package/types/width/width.ts +0 -5
  215. package/types/wrap/index.ts +0 -1
  216. package/types/wrap/wrap.ts +0 -5
@@ -0,0 +1,4 @@
1
+ declare const sizeHeadingProps: readonly ["h6", "h5", "h4", "h3", "h2", "h1"];
2
+ type SizeHeadingProps = (typeof sizeHeadingProps)[number];
3
+ export { sizeHeadingProps };
4
+ export type { SizeHeadingProps };
@@ -0,0 +1,3 @@
1
+ declare const sizePXProps: readonly ["14", "16", "20", "24", "32", "40", "48", "56", "60", "64", "72", "80", "96", "112", "144", "240"];
2
+ export type SizePXProps = (typeof sizePXProps)[number];
3
+ export { sizePXProps };
@@ -0,0 +1 @@
1
+ export * from './stacking';
@@ -0,0 +1,3 @@
1
+ declare const stackingProps: readonly ["firstOnTop", "lastOnTop"];
2
+ export type StackingProps = (typeof stackingProps)[number];
3
+ export { stackingProps };
@@ -0,0 +1 @@
1
+ export * from './state';
@@ -0,0 +1,3 @@
1
+ declare const stateProps: readonly ["active", "checked", "disabled", "focus", "hover", "default"];
2
+ export type StateProps = (typeof stateProps)[number];
3
+ export { stateProps };
@@ -0,0 +1 @@
1
+ export * from './style';
@@ -0,0 +1,4 @@
1
+ declare const styleProps: readonly ["solid", "outlined", "full", "ghost"];
2
+ type StyleProps = (typeof styleProps)[number];
3
+ export { styleProps };
4
+ export type { StyleProps };
@@ -0,0 +1,3 @@
1
+ export * from './svgFill';
2
+ export * from './svgFillHover';
3
+ export * from './svgFillItem';
@@ -0,0 +1,3 @@
1
+ declare const svgFillProps: readonly ["accentPrimary", "accentSecondary", "accentTertiary", "accentQuaternary", "specialPrimary", "specialSecondary", "specialTertiary", "specialQuaternary", "extraPrimary", "extraSecondary", "extraTertiary", "extraQuaternary", "surfacePrimary", "surfaceSecondary", "surfaceTertiary", "surfaceQuaternary", "errorPrimary", "errorSecondary", "errorTertiary", "errorQuaternary", "warningPrimary", "warningSecondary", "warningTertiary", "warningQuaternary", "successPrimary", "successSecondary", "successTertiary", "successQuaternary", "infoPrimary", "infoSecondary", "infoTertiary", "infoQuaternary", "dangerPrimary", "dangerSecondary", "dangerTertiary", "dangerQuaternary", "disabledPrimary", "disabledSecondary", "disabledTertiary", "disabledQuaternary", "none", "alaskan-blue", "alto", "antique-white", "apricot", "athens-gray", "azure", "beryl", "black", "blue", "blue-cobalt", "blue-horizon", "cactus", "camel", "camellia", "canary-yellow", "cerulean", "clementine", "coastal-gray", "cocoa", "cream", "cyprus-green", "dark-green", "dark-olive", "dark-teal", "deep-navy", "delft-blue", "denim-blue", "dragon-fruit", "flamingo", "flash", "flash-light", "gold", "grapefruit", "green", "indigo", "khaki", "kumquat", "lavender", "lavender-gray", "lemon-cream", "light-blue", "light-orange", "lilac", "linen-blue", "mellow-yellow", "midnight-blue", "mint", "mist-blue", "northern-blue", "ocean-blue", "orange", "pacific-green", "papaya", "peach", "pebble", "pine-green", "pink-sand", "plum", "pollen", "pomegranate", "purple", "red-rose", "rose-gold", "sea-foam", "soft-white", "sonic-silver", "spearmint", "stone", "storm-gray", "surf-blue", "turquoise", "ultra-violet", "vintage-rose", "walnut", "white", "yellow-gold", "electric-pink", "hibiscus", "neon-pink", "pink", "pink-citrus", "red"];
2
+ export type SvgFillProps = (typeof svgFillProps)[number];
3
+ export { svgFillProps };
@@ -0,0 +1,3 @@
1
+ declare const svgFillHoverProps: readonly ["accentHoverPrimary", "accentHoverSecondary", "accentHoverTertiary", "accentHoverQuaternary", "specialHoverPrimary", "specialHoverSecondary", "specialHoverTertiary", "specialHoverQuaternary", "extraHoverPrimary", "extraHoverSecondary", "extraHoverTertiary", "extraHoverQuaternary", "surfaceHoverPrimary", "surfaceHoverSecondary", "surfaceHoverTertiary", "surfaceHoverQuaternary", "errorHoverPrimary", "errorHoverSecondary", "errorHoverTertiary", "errorHoverQuaternary", "warningHoverPrimary", "warningHoverSecondary", "warningHoverTertiary", "warningHoverQuaternary", "successHoverPrimary", "successHoverSecondary", "successHoverTertiary", "successHoverQuaternary", "infoHoverPrimary", "infoHoverSecondary", "infoHoverTertiary", "infoHoverQuaternary", "dangerHoverPrimary", "dangerHoverSecondary", "dangerHoverTertiary", "dangerHoverQuaternary", "disabledHoverPrimary", "disabledHoverSecondary", "disabledHoverTertiary", "disabledHoverQuaternary", "none", "alaskan-blue", "alto", "antique-white", "apricot", "athens-gray", "azure", "beryl", "black", "blue", "blue-cobalt", "blue-horizon", "cactus", "camel", "camellia", "canary-yellow", "cerulean", "clementine", "coastal-gray", "cocoa", "cream", "cyprus-green", "dark-green", "dark-olive", "dark-teal", "deep-navy", "delft-blue", "denim-blue", "dragon-fruit", "flamingo", "flash", "flash-light", "gold", "grapefruit", "green", "indigo", "khaki", "kumquat", "lavender", "lavender-gray", "lemon-cream", "light-blue", "light-orange", "lilac", "linen-blue", "mellow-yellow", "midnight-blue", "mint", "mist-blue", "northern-blue", "ocean-blue", "orange", "pacific-green", "papaya", "peach", "pebble", "pine-green", "pink-sand", "plum", "pollen", "pomegranate", "purple", "red-rose", "rose-gold", "sea-foam", "soft-white", "sonic-silver", "spearmint", "stone", "storm-gray", "surf-blue", "turquoise", "ultra-violet", "vintage-rose", "walnut", "white", "yellow-gold", "electric-pink", "hibiscus", "neon-pink", "pink", "pink-citrus", "red"];
2
+ export type SvgFillHoverProps = (typeof svgFillHoverProps)[number];
3
+ export { svgFillHoverProps };
@@ -0,0 +1,3 @@
1
+ declare const svgFillItemProps: readonly ["accentItemPrimary", "accentItemSecondary", "accentItemTertiary", "accentItemQuaternary", "specialItemPrimary", "specialItemSecondary", "specialItemTertiary", "specialItemQuaternary", "extraItemPrimary", "extraItemSecondary", "extraItemTertiary", "extraItemQuaternary", "surfaceItemPrimary", "surfaceItemSecondary", "surfaceItemTertiary", "surfaceItemQuaternary", "errorItemPrimary", "errorItemSecondary", "errorItemTertiary", "errorItemQuaternary", "warningItemPrimary", "warningItemSecondary", "warningItemTertiary", "warningItemQuaternary", "successItemPrimary", "successItemSecondary", "successItemTertiary", "successItemQuaternary", "infoItemPrimary", "infoItemSecondary", "infoItemTertiary", "infoItemQuaternary", "dangerItemPrimary", "dangerItemSecondary", "dangerItemTertiary", "dangerItemQuaternary", "disabledItemPrimary", "disabledItemSecondary", "disabledItemTertiary", "disabledItemQuaternary", "none"];
2
+ export type SvgFillItemProps = (typeof svgFillItemProps)[number];
3
+ export { svgFillItemProps };
@@ -0,0 +1,11 @@
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';
@@ -0,0 +1,3 @@
1
+ declare const textAlignProps: readonly ["left", "center", "right"];
2
+ export type TextAlignProps = (typeof textAlignProps)[number];
3
+ export { textAlignProps };
@@ -0,0 +1,3 @@
1
+ declare const textColorProps: readonly ["accentTextPrimary", "accentTextSecondary", "accentTextTertiary", "accentTextQuaternary", "specialTextPrimary", "specialTextSecondary", "specialTextTertiary", "specialTextQuaternary", "extraTextPrimary", "extraTextSecondary", "extraTextTertiary", "extraTextQuaternary", "surfaceTextPrimary", "surfaceTextSecondary", "surfaceTextTertiary", "surfaceTextQuaternary", "errorTextPrimary", "errorTextSecondary", "errorTextTertiary", "errorTextQuaternary", "warningTextPrimary", "warningTextSecondary", "warningTextTertiary", "warningTextQuaternary", "successTextPrimary", "successTextSecondary", "successTextTertiary", "successTextQuaternary", "infoTextPrimary", "infoTextSecondary", "infoTextTertiary", "infoTextQuaternary", "dangerTextPrimary", "dangerTextSecondary", "dangerTextTertiary", "dangerTextQuaternary", "disabledTextPrimary", "disabledTextSecondary", "disabledTextTertiary", "disabledTextQuaternary"];
2
+ export type TextColorProps = (typeof textColorProps)[number];
3
+ export { textColorProps };
@@ -0,0 +1,3 @@
1
+ declare const textColorActiveProps: readonly ["accentTextActivePrimary", "accentTextActiveSecondary", "accentTextActiveTertiary", "accentTextActiveQuaternary", "specialTextActivePrimary", "specialTextActiveSecondary", "specialTextActiveTertiary", "specialTextActiveQuaternary", "extraTextActivePrimary", "extraTextActiveSecondary", "extraTextActiveTertiary", "extraTextActiveQuaternary", "surfaceTextActivePrimary", "surfaceTextActiveSecondary", "surfaceTextActiveTertiary", "surfaceTextActiveQuaternary", "errorTextActivePrimary", "errorTextActiveSecondary", "errorTextActiveTertiary", "errorTextActiveQuaternary", "warningTextActivePrimary", "warningTextActiveSecondary", "warningTextActiveTertiary", "warningTextActiveQuaternary", "successTextActivePrimary", "successTextActiveSecondary", "successTextActiveTertiary", "successTextActiveQuaternary", "infoTextActivePrimary", "infoTextActiveSecondary", "infoTextActiveTertiary", "infoTextActiveQuaternary", "dangerTextActivePrimary", "dangerTextActiveSecondary", "dangerTextActiveTertiary", "dangerTextActiveQuaternary", "disabledTextActivePrimary", "disabledTextActiveSecondary", "disabledTextActiveTertiary", "disabledTextActiveQuaternary", "none"];
2
+ export type TextColorActiveProps = (typeof textColorActiveProps)[number];
3
+ export { textColorActiveProps };
@@ -0,0 +1,3 @@
1
+ declare const textColorActiveHoverProps: readonly ["accentTextActiveHoverPrimary", "accentTextActiveHoverSecondary", "accentTextActiveHoverTertiary", "accentTextActiveHoverQuaternary", "specialTextActiveHoverPrimary", "specialTextActiveHoverSecondary", "specialTextActiveHoverTertiary", "specialTextActiveHoverQuaternary", "extraTextActiveHoverPrimary", "extraTextActiveHoverSecondary", "extraTextActiveHoverTertiary", "extraTextActiveHoverQuaternary", "surfaceTextActiveHoverPrimary", "surfaceTextActiveHoverSecondary", "surfaceTextActiveHoverTertiary", "surfaceTextActiveHoverQuaternary", "errorTextActiveHoverPrimary", "errorTextActiveHoverSecondary", "errorTextActiveHoverTertiary", "errorTextActiveHoverQuaternary", "warningTextActiveHoverPrimary", "warningTextActiveHoverSecondary", "warningTextActiveHoverTertiary", "warningTextActiveHoverQuaternary", "successTextActiveHoverPrimary", "successTextActiveHoverSecondary", "successTextActiveHoverTertiary", "successTextActiveHoverQuaternary", "infoTextActiveHoverPrimary", "infoTextActiveHoverSecondary", "infoTextActiveHoverTertiary", "infoTextActiveHoverQuaternary", "dangerTextActiveHoverPrimary", "dangerTextActiveHoverSecondary", "dangerTextActiveHoverTertiary", "dangerTextActiveHoverQuaternary", "disabledTextActiveHoverPrimary", "disabledTextActiveHoverSecondary", "disabledTextActiveHoverTertiary", "disabledTextActiveHoverQuaternary", "none"];
2
+ export type TextColorActiveHoverProps = (typeof textColorActiveHoverProps)[number];
3
+ export { textColorActiveHoverProps };
@@ -0,0 +1,3 @@
1
+ declare const textColorDisabledProps: readonly ["accentTextDisabledPrimary", "accentTextDisabledSecondary", "accentTextDisabledTertiary", "accentTextDisabledQuaternary", "specialTextDisabledPrimary", "specialTextDisabledSecondary", "specialTextDisabledTertiary", "specialTextDisabledQuaternary", "extraTextDisabledPrimary", "extraTextDisabledSecondary", "extraTextDisabledTertiary", "extraTextDisabledQuaternary", "surfaceTextDisabledPrimary", "surfaceTextDisabledSecondary", "surfaceTextDisabledTertiary", "surfaceTextDisabledQuaternary", "errorTextDisabledPrimary", "errorTextDisabledSecondary", "errorTextDisabledTertiary", "errorTextDisabledQuaternary", "warningTextDisabledPrimary", "warningTextDisabledSecondary", "warningTextDisabledTertiary", "warningTextDisabledQuaternary", "successTextDisabledPrimary", "successTextDisabledSecondary", "successTextDisabledTertiary", "successTextDisabledQuaternary", "infoTextDisabledPrimary", "infoTextDisabledSecondary", "infoTextDisabledTertiary", "infoTextDisabledQuaternary", "dangerTextDisabledPrimary", "dangerTextDisabledSecondary", "dangerTextDisabledTertiary", "dangerTextDisabledQuaternary", "disabledTextDisabledPrimary", "disabledTextDisabledSecondary", "disabledTextDisabledTertiary", "disabledTextDisabledQuaternary", "none"];
2
+ export type TextColorDisabledProps = (typeof textColorDisabledProps)[number];
3
+ export { textColorDisabledProps };
@@ -0,0 +1,3 @@
1
+ declare const textColorFocusProps: readonly ["accentTextFocusPrimary", "accentTextFocusSecondary", "accentTextFocusTertiary", "accentTextFocusQuaternary", "specialTextFocusPrimary", "specialTextFocusSecondary", "specialTextFocusTertiary", "specialTextFocusQuaternary", "extraTextFocusPrimary", "extraTextFocusSecondary", "extraTextFocusTertiary", "extraTextFocusQuaternary", "surfaceTextFocusPrimary", "surfaceTextFocusSecondary", "surfaceTextFocusTertiary", "surfaceTextFocusQuaternary", "errorTextFocusPrimary", "errorTextFocusSecondary", "errorTextFocusTertiary", "errorTextFocusQuaternary", "warningTextFocusPrimary", "warningTextFocusSecondary", "warningTextFocusTertiary", "warningTextFocusQuaternary", "successTextFocusPrimary", "successTextFocusSecondary", "successTextFocusTertiary", "successTextFocusQuaternary", "infoTextFocusPrimary", "infoTextFocusSecondary", "infoTextFocusTertiary", "infoTextFocusQuaternary", "dangerTextFocusPrimary", "dangerTextFocusSecondary", "dangerTextFocusTertiary", "dangerTextFocusQuaternary", "disabledTextFocusPrimary", "disabledTextFocusSecondary", "disabledTextFocusTertiary", "disabledTextFocusQuaternary", "none"];
2
+ export type TextColorFocusProps = (typeof textColorFocusProps)[number];
3
+ export { textColorFocusProps };
@@ -0,0 +1,3 @@
1
+ declare const textColorHoverProps: readonly ["accentTextHoverPrimary", "accentTextHoverSecondary", "accentTextHoverTertiary", "accentTextHoverQuaternary", "specialTextHoverPrimary", "specialTextHoverSecondary", "specialTextHoverTertiary", "specialTextHoverQuaternary", "extraTextHoverPrimary", "extraTextHoverSecondary", "extraTextHoverTertiary", "extraTextHoverQuaternary", "surfaceTextHoverPrimary", "surfaceTextHoverSecondary", "surfaceTextHoverTertiary", "surfaceTextHoverQuaternary", "errorTextHoverPrimary", "errorTextHoverSecondary", "errorTextHoverTertiary", "errorTextHoverQuaternary", "warningTextHoverPrimary", "warningTextHoverSecondary", "warningTextHoverTertiary", "warningTextHoverQuaternary", "successTextHoverPrimary", "successTextHoverSecondary", "successTextHoverTertiary", "successTextHoverQuaternary", "infoTextHoverPrimary", "infoTextHoverSecondary", "infoTextHoverTertiary", "infoTextHoverQuaternary", "dangerTextHoverPrimary", "dangerTextHoverSecondary", "dangerTextHoverTertiary", "dangerTextHoverQuaternary", "disabledTextHoverPrimary", "disabledTextHoverSecondary", "disabledTextHoverTertiary", "disabledTextHoverQuaternary", "none"];
2
+ export type TextColorHoverProps = (typeof textColorHoverProps)[number];
3
+ export { textColorHoverProps };
@@ -0,0 +1,3 @@
1
+ declare const textFontProps: readonly ["primary", "secondary", "tertiary"];
2
+ export type TextFontProps = (typeof textFontProps)[number];
3
+ export { textFontProps };
@@ -0,0 +1,3 @@
1
+ declare const textSizeProps: readonly ["xxs", "xs", "s", "m", "l", "xl", "xxl"];
2
+ export type TextSizeProps = (typeof textSizeProps)[number];
3
+ export { textSizeProps };
@@ -0,0 +1,3 @@
1
+ declare const textSizeProps: readonly ["xxs", "xs", "s", "m", "l", "xl", "xxl"];
2
+ export type TextSizeProps = (typeof textSizeProps)[number];
3
+ export { textSizeProps };
@@ -0,0 +1,3 @@
1
+ declare const textTagProps: readonly ["p", "span"];
2
+ export type TextTagProps = (typeof textTagProps)[number];
3
+ export { textTagProps };
@@ -0,0 +1,3 @@
1
+ declare const textWeightProps: readonly ["100", "200", "300", "400", "500", "600", "700", "800", "900", "950", "thin ", "extra-light", "extralight", "ultra-light", "ultralight ", "light ", "normal ", "medium ", "semibold", "semi-bold", "demi-bold ", "bold ", "extrabold", "extra-bold", "ultrabold", "ultra-bold ", "black", "heavy "];
2
+ export type TextWeightProps = (typeof textWeightProps)[number];
3
+ export { textWeightProps };
@@ -0,0 +1,3 @@
1
+ declare const textWrapProps: readonly ["wrap", "nowrap"];
2
+ export type TextWrapProps = (typeof textWrapProps)[number];
3
+ export { textWrapProps };
@@ -0,0 +1 @@
1
+ export * from './titleSize';
@@ -0,0 +1,3 @@
1
+ declare const titleSizeProps: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
2
+ export type TitleSizeProps = (typeof titleSizeProps)[number];
3
+ export { titleSizeProps };
@@ -0,0 +1 @@
1
+ export * from './underline';
@@ -0,0 +1,3 @@
1
+ declare const underlineProps: readonly ["none", "underline"];
2
+ export type UnderlineProps = (typeof underlineProps)[number];
3
+ export { underlineProps };
@@ -0,0 +1 @@
1
+ export * from './width';
@@ -0,0 +1,3 @@
1
+ declare const widthProps: readonly ["auto", "fixed", "hug", "fill"];
2
+ export type WidthProps = (typeof widthProps)[number];
3
+ export { widthProps };
@@ -0,0 +1 @@
1
+ export * from './wrap';
@@ -0,0 +1,3 @@
1
+ declare const wrapProps: readonly ["wrap", "no-wrap", "nowrap", "wrap-reverse"];
2
+ export type WrapProps = (typeof wrapProps)[number];
3
+ export { wrapProps };
package/package.json CHANGED
@@ -1,26 +1,32 @@
1
1
  {
2
2
  "name": "@itcase/types",
3
- "version": "1.0.45",
4
- "description": "unified type storage",
3
+ "version": "1.1.0",
4
+ "description": "Unified type storage for shared projects",
5
5
  "keywords": [
6
6
  "types"
7
7
  ],
8
8
  "license": "MIT",
9
9
  "private": false,
10
- "exports": {
11
- ".": "./types/index.ts"
12
- },
13
10
  "scripts": {
11
+ "build": "tsc",
12
+ "dev": "tsc --watch",
14
13
  "lint": "eslint types/",
15
14
  "typecheck": "tsc --noEmit",
16
15
  "prepare": "husky",
16
+ "prepack": "npm run build",
17
17
  "semantic-release": "semantic-release"
18
18
  },
19
19
  "files": [
20
- "types",
20
+ "dist",
21
21
  "README.md",
22
22
  "CHANGELOG.md"
23
23
  ],
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts"
27
+ }
28
+ },
29
+ "types": "./dist/index.d.ts",
24
30
  "repository": {
25
31
  "type": "git",
26
32
  "url": "https://github.com/ITCase/itcase-types.git"
@@ -30,19 +36,20 @@
30
36
  "registry": "https://registry.npmjs.org/"
31
37
  },
32
38
  "devDependencies": {
33
- "@commitlint/cli": "^19.8.1",
34
- "@commitlint/config-conventional": "^19.8.1",
35
- "@itcase/config": "^1.0.56",
36
- "@itcase/lint": "^1.1.47",
39
+ "@commitlint/cli": "^20.1.0",
40
+ "@commitlint/config-conventional": "^20.0.0",
41
+ "@itcase/config": "^1.0.63",
42
+ "@itcase/lint": "^1.1.68",
37
43
  "@semantic-release/changelog": "^6.0.3",
38
44
  "@semantic-release/git": "^10.0.1",
39
- "@semantic-release/release-notes-generator": "14.0.3",
45
+ "@semantic-release/release-notes-generator": "14.1.0",
46
+ "@types/react": "^19.2.2",
40
47
  "conventional-changelog-conventionalcommits": "^9.1.0",
41
- "eslint": "9.34.0",
48
+ "eslint": "9.39.1",
42
49
  "husky": "^9.1.7",
43
- "lint-staged": "^16.1.5",
50
+ "lint-staged": "^16.2.6",
44
51
  "prettier": "^3.6.2",
45
- "semantic-release": "^24.2.7",
46
- "typescript": "^5.9.2"
52
+ "semantic-release": "^25.0.2",
53
+ "typescript": "^5.9.3"
47
54
  }
48
55
  }
@@ -1,47 +0,0 @@
1
- const alignProps = [
2
- 'center',
3
- // Horizontal
4
- 'horizontalTopLeft',
5
- 'horizontalTopCenter',
6
- 'horizontalTopRight',
7
- 'horizontalLeft',
8
- 'horizontalRight',
9
- 'horizontalCenter',
10
- 'horizontalBottomRight',
11
- 'horizontalBottomCenter',
12
- 'horizontalBottomLeft',
13
- // Reverse
14
- 'horizontalReverseTopLeft',
15
- 'horizontalReverseTopCenter',
16
- 'horizontalReverseTopRight',
17
- 'horizontalReverseLeft',
18
- 'horizontalReverseRight',
19
- 'horizontalReverseCenter',
20
- 'horizontalReverseBottomRight',
21
- 'horizontalReverseBottomCenter',
22
- 'horizontalReverseBottomLeft',
23
- // Vertical
24
- 'verticalTopLeft',
25
- 'verticalTopCenter',
26
- 'verticalTopRight',
27
- 'verticalLeft',
28
- 'verticalRight',
29
- 'verticalCenter',
30
- 'verticalBottomRight',
31
- 'verticalBottomCenter',
32
- 'verticalBottomLeft',
33
- // Reverse
34
- 'verticalReverseTopLeft',
35
- 'verticalReverseTopCenter',
36
- 'verticalReverseTopRight',
37
- 'verticalReverseLeft',
38
- 'verticalReverseRight',
39
- 'verticalReverseCenter',
40
- 'verticalReverseBottomRight',
41
- 'verticalReverseBottomCenter',
42
- 'verticalReverseBottomLeft',
43
- ] as const
44
-
45
- export type AlignProps = (typeof alignProps)[number]
46
-
47
- export { alignProps }
@@ -1 +0,0 @@
1
- export * from './align'
@@ -1,14 +0,0 @@
1
- const alignmentProps = [
2
- 'topLeft',
3
- 'topCenter',
4
- 'topRight',
5
- 'bottomLeft',
6
- 'bottomCenter',
7
- 'bottomRight',
8
- 'leftCenter',
9
- 'rightCenter',
10
- ] as const
11
-
12
- export type AlignmentProps = (typeof alignmentProps)[number]
13
-
14
- export { alignmentProps }
@@ -1 +0,0 @@
1
- export * from './alignment'
@@ -1,39 +0,0 @@
1
- type AppearanceIconSizeKey =
2
- | 'size12_12'
3
- | 'size14_12'
4
- | 'size14_14'
5
- | 'size16_12'
6
- | 'size16_14'
7
- | 'size16_16'
8
- | 'size20_12'
9
- | 'size20_14'
10
- | 'size20_16'
11
- | 'size20_20'
12
- | 'size24_12'
13
- | 'size24_14'
14
- | 'size24_16'
15
- | 'size24_20'
16
- | 'size24_24'
17
- | 'size32_12'
18
- | 'size32_14'
19
- | 'size32_16'
20
- | 'size32_20'
21
- | 'size32_24'
22
- | 'size32_32'
23
- | 'size40_12'
24
- | 'size40_14'
25
- | 'size40_16'
26
- | 'size40_20'
27
- | 'size40_24'
28
- | 'size40_32'
29
- | 'size40_40'
30
- | 'size48_12'
31
- | 'size48_14'
32
- | 'size48_16'
33
- | 'size48_20'
34
- | 'size48_24'
35
- | 'size48_32'
36
- | 'size48_40'
37
- | 'size48_48'
38
-
39
- export type { AppearanceIconSizeKey }
@@ -1,43 +0,0 @@
1
- type AppearanceKeysDefault =
2
- | 'accentPrimary'
3
- | 'accentQuaternary'
4
- | 'accentSecondary'
5
- | 'accentTertiary'
6
- | 'dangerPrimary'
7
- | 'dangerQuaternary'
8
- | 'dangerSecondary'
9
- | 'dangerTertiary'
10
- | 'disabledPrimary'
11
- | 'disabledQuaternary'
12
- | 'disabledSecondary'
13
- | 'disabledTertiary'
14
- | 'errorPrimary'
15
- | 'errorQuaternary'
16
- | 'errorSecondary'
17
- | 'errorTertiary'
18
- | 'extraPrimary'
19
- | 'extraQuaternary'
20
- | 'extraSecondary'
21
- | 'extraTertiary'
22
- | 'infoPrimary'
23
- | 'infoQuaternary'
24
- | 'infoSecondary'
25
- | 'infoTertiary'
26
- | 'specialPrimary'
27
- | 'specialQuaternary'
28
- | 'specialSecondary'
29
- | 'specialTertiary'
30
- | 'successPrimary'
31
- | 'successQuaternary'
32
- | 'successSecondary'
33
- | 'successTertiary'
34
- | 'surfacePrimary'
35
- | 'surfaceQuaternary'
36
- | 'surfaceSecondary'
37
- | 'surfaceTertiary'
38
- | 'warningPrimary'
39
- | 'warningQuaternary'
40
- | 'warningSecondary'
41
- | 'warningTertiary'
42
-
43
- export type { AppearanceKeysDefault }
@@ -1,3 +0,0 @@
1
- type AppearanceOverlayKey = 'blackout' | 'blur'
2
-
3
- export type { AppearanceOverlayKey }
@@ -1,11 +0,0 @@
1
- type AppearanceResponseKeysDefault =
2
- | 'confirm'
3
- | 'error'
4
- | 'fail'
5
- | 'nothingFound'
6
- | 'refresh'
7
- | 'success'
8
- | 'unableLoadData'
9
- | 'warning'
10
-
11
- export type { AppearanceResponseKeysDefault }
@@ -1,10 +0,0 @@
1
- type AppearanceShapeKey =
2
- | 'circular'
3
- | 'geometric'
4
- | 'rounded'
5
- | 'roundedL'
6
- | 'roundedM'
7
- | 'roundedS'
8
- | 'roundedXL'
9
-
10
- export type { AppearanceShapeKey }
@@ -1,23 +0,0 @@
1
- type AppearanceStateKeysDefault =
2
- | 'defaultPrimary'
3
- | 'defaultQuaternary'
4
- | 'defaultSecondary'
5
- | 'defaultTertiary'
6
- | 'disabledPrimary'
7
- | 'disabledQuaternary'
8
- | 'disabledSecondary'
9
- | 'disabledTertiary'
10
- | 'errorPrimary'
11
- | 'errorQuaternary'
12
- | 'errorSecondary'
13
- | 'errorTertiary'
14
- | 'requirePrimary'
15
- | 'requireQuaternary'
16
- | 'requireSecondary'
17
- | 'requireTertiary'
18
- | 'successPrimary'
19
- | 'successQuaternary'
20
- | 'successSecondary'
21
- | 'successTertiary'
22
-
23
- export type { AppearanceStateKeysDefault }
@@ -1,91 +0,0 @@
1
- import type { SizeProps, SizePXProps } from '../size'
2
- import type { StyleProps } from '../style'
3
- import type { TitleSizeProps } from '../title'
4
- import type { AppearanceIconSizeKey } from './AppearanceIconSizeKey'
5
- import type { AppearanceKeysDefault } from './AppearanceKeysDefault'
6
- import type { AppearanceOverlayKey } from './AppearanceOverlayKey'
7
- import type { AppearanceResponseKeysDefault } from './AppearanceResponseKeysDefault'
8
- import type { AppearanceShapeKey } from './AppearanceShapeKey'
9
- import type { AppearanceStateKeysDefault } from './AppearanceStateKeysDefault'
10
-
11
- type AppearanceSizeKey = `size${Uppercase<SizeProps>}`
12
- type AppearanceSizePxKey = `size${Uppercase<SizePXProps>}`
13
- type AppearanceTitleSizeKey = TitleSizeProps
14
- type AppearanceStyleKey = StyleProps
15
-
16
- // key: surfacePrimary
17
- type CompositeAppearanceDefaultKey = AppearanceKeysDefault
18
-
19
- // key: surfacePrimary sizeXL
20
- type CompositeAppearanceDefaultSizeKey =
21
- `${AppearanceKeysDefault} ${AppearanceSizeKey}`
22
-
23
- // key: surfacePrimary sizeXL solid
24
- type CompositeAppearanceDefaultSizeStyleKey =
25
- `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
26
-
27
- // key: surfacePrimary sizeXL rounded
28
- type CompositeAppearanceDefaultSizeShapeKey =
29
- `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceShapeKey}`
30
-
31
- // key: surfacePrimary solid rounded
32
- type CompositeAppearanceDefaultStyleShapeKey =
33
- `${AppearanceKeysDefault} ${AppearanceStyleKey} ${AppearanceShapeKey}`
34
-
35
- type CompositeAppearanceKey =
36
- | `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
37
- | `${AppearanceKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
38
- | `${AppearanceKeysDefault} ${AppearanceSizeKey}`
39
- | AppearanceKeysDefault
40
-
41
- type CompositeAppearanceTitleKey =
42
- | `${AppearanceKeysDefault} ${AppearanceTitleSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
43
- | `${AppearanceKeysDefault} ${AppearanceTitleSizeKey} ${AppearanceStyleKey}`
44
- | `${AppearanceKeysDefault} ${AppearanceTitleSizeKey}`
45
- | AppearanceKeysDefault
46
-
47
- type CompositeAppearanceSizePxKey =
48
- | `${AppearanceKeysDefault} ${AppearanceSizePxKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
49
- | `${AppearanceKeysDefault} ${AppearanceSizePxKey} ${AppearanceStyleKey}`
50
- | `${AppearanceKeysDefault} ${AppearanceSizePxKey}`
51
- | AppearanceKeysDefault
52
-
53
- type CompositeAppearanceStateKeys =
54
- | `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
55
- | `${AppearanceStateKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
56
- | `${AppearanceStateKeysDefault} ${AppearanceSizeKey}`
57
- | AppearanceStateKeysDefault
58
-
59
- type CompositeAppearanceResponseKeys =
60
- | `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
61
- | `${AppearanceResponseKeysDefault} ${AppearanceSizeKey} ${AppearanceStyleKey}`
62
- | `${AppearanceResponseKeysDefault} ${AppearanceSizeKey}`
63
- | AppearanceResponseKeysDefault
64
-
65
- type CompositeAppearanceIconKeys =
66
- | `${AppearanceResponseKeysDefault} ${AppearanceIconSizeKey} ${AppearanceStyleKey} ${AppearanceShapeKey}`
67
- | `${AppearanceResponseKeysDefault} ${AppearanceIconSizeKey} ${AppearanceStyleKey}`
68
- | `${AppearanceResponseKeysDefault} ${AppearanceIconSizeKey}`
69
- | AppearanceResponseKeysDefault
70
-
71
- export type {
72
- AppearanceKeysDefault,
73
- AppearanceOverlayKey,
74
- AppearanceShapeKey,
75
- AppearanceSizeKey,
76
- AppearanceSizePxKey,
77
- AppearanceStateKeysDefault,
78
- AppearanceStyleKey,
79
- AppearanceTitleSizeKey,
80
- CompositeAppearanceDefaultKey,
81
- CompositeAppearanceDefaultSizeKey,
82
- CompositeAppearanceDefaultSizeShapeKey,
83
- CompositeAppearanceDefaultSizeStyleKey,
84
- CompositeAppearanceDefaultStyleShapeKey,
85
- CompositeAppearanceIconKeys,
86
- CompositeAppearanceKey,
87
- CompositeAppearanceResponseKeys,
88
- CompositeAppearanceSizePxKey,
89
- CompositeAppearanceStateKeys,
90
- CompositeAppearanceTitleKey,
91
- }
@@ -1,26 +0,0 @@
1
- const blurProps = [
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 BlurProps = (typeof blurProps)[number]
25
-
26
- export { blurProps }
@@ -1 +0,0 @@
1
- export * from './blur'