@itcase/ui-react-native 1.10.85 → 1.10.86

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 (670) hide show
  1. package/.storybook-react-native-web/main.ts +25 -3
  2. package/.storybook-react-native-web/preview.tsx +8 -0
  3. package/package.json +10 -4
  4. package/src/components/Avatar/Avatar.interface.ts +31 -1
  5. package/src/components/Avatar/Avatar.tsx +63 -86
  6. package/src/components/Avatar/appearance/avatarSize.ts +20 -20
  7. package/src/components/Avatar/appearance/avatarSurface.ts +8 -4
  8. package/src/components/Avatar/stories/AvatarCount.stories.tsx +13 -3
  9. package/src/components/Avatar/stories/AvatarDemo.stories.tsx +76 -0
  10. package/src/components/Avatar/stories/AvatarGallery.stories.tsx +200 -0
  11. package/src/components/Avatar/stories/AvatarImage.stories.tsx +15 -6
  12. package/src/components/Avatar/stories/AvatarInteraction.stories.tsx +5 -1
  13. package/src/components/Avatar/stories/AvatarLetters.stories.tsx +13 -3
  14. package/src/components/Avatar/stories/AvatarShape.stories.tsx +20 -2
  15. package/src/components/Avatar/stories/AvatarSize.stories.tsx +32 -2
  16. package/src/components/Avatar/stories/AvatarSkeleton.stories.tsx +68 -0
  17. package/src/components/Avatar/stories/AvatarStories.config.ts +107 -1
  18. package/src/components/Avatar/stories/AvatarStyle.stories.tsx +14 -2
  19. package/src/components/Avatar/styles/avatar.ts +3 -0
  20. package/src/components/AvatarStack/AvatarStack.interface.ts +37 -5
  21. package/src/components/AvatarStack/AvatarStack.styles.ts +3 -1
  22. package/src/components/AvatarStack/AvatarStack.tsx +31 -28
  23. package/src/components/AvatarStack/index.ts +13 -2
  24. package/src/components/AvatarStack/stories/AvatarStackDemo.stories.tsx +89 -0
  25. package/src/components/AvatarStack/stories/AvatarStackDirection.stories.tsx +35 -0
  26. package/src/components/AvatarStack/stories/AvatarStackGallery.stories.tsx +126 -0
  27. package/src/components/AvatarStack/stories/AvatarStackLength.stories.tsx +55 -0
  28. package/src/components/AvatarStack/stories/AvatarStackSize.stories.tsx +50 -0
  29. package/src/components/AvatarStack/stories/AvatarStackStories.config.ts +74 -0
  30. package/src/components/AvatarStack/stories/__mock__/index.ts +29 -0
  31. package/src/components/AvatarStack/styles/avatarStack.ts +4 -2
  32. package/src/components/AvatarStack/styles/avatarStackSize.ts +32 -73
  33. package/src/components/Badge/Badge.appearance.ts +17 -1
  34. package/src/components/Badge/Badge.interface.ts +45 -1
  35. package/src/components/Badge/Badge.tsx +65 -49
  36. package/src/components/Badge/appearance/badgeAccent.ts +12 -0
  37. package/src/components/Badge/appearance/badgeDanger.ts +4 -0
  38. package/src/components/Badge/appearance/badgeDisabled.ts +13 -0
  39. package/src/components/Badge/appearance/badgeExtra.ts +5 -1
  40. package/src/components/Badge/appearance/badgeInfo.ts +14 -0
  41. package/src/components/Badge/appearance/badgeSize.ts +41 -0
  42. package/src/components/Badge/appearance/badgeSpecial.ts +14 -0
  43. package/src/components/Badge/appearance/badgeStyle.ts +17 -0
  44. package/src/components/Badge/appearance/badgeSuccess.ts +14 -0
  45. package/src/components/Badge/appearance/badgeSurface.ts +30 -0
  46. package/src/components/Badge/appearance/badgeWarning.ts +14 -0
  47. package/src/components/Badge/index.ts +2 -0
  48. package/src/components/Badge/stories/BadgeCounter.stories.tsx +39 -0
  49. package/src/components/Badge/stories/BadgeDemo.stories.tsx +93 -0
  50. package/src/components/Badge/stories/BadgeDot.stories.tsx +39 -0
  51. package/src/components/Badge/stories/BadgeDotIconCounter.stories.tsx +48 -0
  52. package/src/components/Badge/stories/BadgeFill.stories.tsx +37 -0
  53. package/src/components/Badge/stories/BadgeGallery.stories.tsx +109 -0
  54. package/src/components/Badge/stories/BadgeIcon.stories.tsx +45 -0
  55. package/src/components/Badge/stories/BadgeIconCounter.stories.tsx +46 -0
  56. package/src/components/Badge/stories/BadgeShape.stories.tsx +38 -15
  57. package/src/components/Badge/stories/BadgeSize.stories.tsx +58 -11
  58. package/src/components/Badge/stories/BadgeStories.config.ts +125 -0
  59. package/src/components/Badge/stories/BadgeStyle.stories.tsx +57 -0
  60. package/src/components/Badge/styles/badge.ts +3 -0
  61. package/src/components/Badge/styles/badgeShape.ts +1 -0
  62. package/src/components/Badge/styles/badgeSize.ts +73 -0
  63. package/src/components/Badge/styles/badgeType.ts +12 -2
  64. package/src/components/Breadcrumbs/Breadcrumbs.interface.ts +2 -1
  65. package/src/components/Breadcrumbs/Breadcrumbs.tsx +15 -23
  66. package/src/components/Breadcrumbs/stories/BreadcrumbsAppearance.stories.tsx +68 -0
  67. package/src/components/Breadcrumbs/stories/BreadcrumbsDefault.stories.tsx +32 -0
  68. package/src/components/Breadcrumbs/stories/BreadcrumbsShape.stories.tsx +77 -0
  69. package/src/components/Breadcrumbs/stories/BreadcrumbsSize.stories.tsx +86 -0
  70. package/src/components/Breadcrumbs/stories/BreadcrumbsStyle.stories.tsx +59 -0
  71. package/src/components/Breadcrumbs/stories/__mock__/index.ts +19 -0
  72. package/src/components/Button/Button.appearance.ts +14 -0
  73. package/src/components/Button/Button.interface.ts +44 -3
  74. package/src/components/Button/Button.styles.ts +2 -0
  75. package/src/components/Button/Button.tsx +64 -68
  76. package/src/components/Button/appearance/buttonAccent.ts +9 -0
  77. package/src/components/Button/appearance/buttonDanger.ts +8 -0
  78. package/src/components/Button/appearance/buttonError.ts +22 -0
  79. package/src/components/Button/appearance/buttonExtra.ts +8 -0
  80. package/src/components/Button/appearance/buttonInfo.ts +30 -0
  81. package/src/components/Button/appearance/buttonShape.ts +27 -0
  82. package/src/components/Button/appearance/buttonSize.ts +34 -0
  83. package/src/components/Button/appearance/buttonSpecial.ts +22 -0
  84. package/src/components/Button/appearance/buttonSuccess.ts +22 -0
  85. package/src/components/Button/appearance/buttonWarning.ts +22 -0
  86. package/src/components/Button/stories/ButtonDefault.stories.tsx +36 -58
  87. package/src/components/Button/stories/ButtonDemo.stories.tsx +77 -0
  88. package/src/components/Button/stories/ButtonDisabled.stories.tsx +5 -4
  89. package/src/components/Button/stories/ButtonGallery.stories.tsx +111 -0
  90. package/src/components/Button/stories/ButtonIcon.stories.tsx +49 -0
  91. package/src/components/Button/stories/ButtonLabel.stories.tsx +50 -0
  92. package/src/components/Button/stories/ButtonLoading.stories.tsx +41 -0
  93. package/src/components/Button/stories/ButtonShape.stories.tsx +71 -0
  94. package/src/components/Button/stories/ButtonSize.stories.tsx +29 -12
  95. package/src/components/Button/stories/ButtonStories.config.ts +129 -16
  96. package/src/components/Button/stories/ButtonStyle.stories.tsx +9 -10
  97. package/src/components/Button/styles/button.ts +1 -4
  98. package/src/components/Button/styles/buttonShape.ts +35 -0
  99. package/src/components/Cell/stories/CellDirection.stories.tsx +38 -0
  100. package/src/components/Cell/stories/CellSizeHorizontal.stories.tsx +38 -0
  101. package/src/components/Cell/stories/CellSizeVertical.stories.tsx +38 -0
  102. package/src/components/Cell/stories/CellStories.config.ts +12 -0
  103. package/src/components/Cell/stories/__mock__/index.ts +6 -0
  104. package/src/components/Checkbox/Checkbox.helpers.ts +63 -0
  105. package/src/components/Checkbox/Checkbox.interface.ts +22 -3
  106. package/src/components/Checkbox/Checkbox.tsx +88 -110
  107. package/src/components/Checkbox/appearance/checkboxDefault.ts +4 -0
  108. package/src/components/Checkbox/stories/Checkbox.stories.tsx +52 -5
  109. package/src/components/Checkbox/stories/CheckboxDisabled.stories.tsx +1 -1
  110. package/src/components/Checkbox/stories/CheckboxError.stories.tsx +1 -1
  111. package/src/components/Checkbox/stories/CheckboxGallery.stories.tsx +138 -0
  112. package/src/components/Checkbox/stories/CheckboxLabel.stories.tsx +1 -1
  113. package/src/components/Checkbox/stories/CheckboxLabelDesc.stories.tsx +1 -1
  114. package/src/components/Checkbox/stories/CheckboxShape.stories.tsx +1 -1
  115. package/src/components/Checkbox/stories/CheckboxSize.stories.tsx +1 -1
  116. package/src/components/Checkbox/stories/CheckboxStories.config.tsx +55 -2
  117. package/src/components/Checkbox/styles/checkbox.ts +20 -5
  118. package/src/components/Checkbox/styles/checkboxSize.ts +16 -0
  119. package/src/components/Checkmark/Checkmark.appearance.ts +20 -0
  120. package/src/components/Checkmark/Checkmark.constants.ts +8 -0
  121. package/src/components/Checkmark/Checkmark.helpers.ts +47 -0
  122. package/src/components/Checkmark/Checkmark.interface.ts +102 -5
  123. package/src/components/Checkmark/Checkmark.styles.ts +2 -0
  124. package/src/components/Checkmark/Checkmark.tsx +104 -23
  125. package/src/components/Checkmark/appearance/checkmarkAccent.ts +13 -0
  126. package/src/components/Checkmark/appearance/checkmarkDisabled.ts +13 -0
  127. package/src/components/Checkmark/appearance/checkmarkError.ts +13 -0
  128. package/src/components/Checkmark/appearance/checkmarkShape.ts +9 -0
  129. package/src/components/Checkmark/appearance/checkmarkSize.ts +56 -0
  130. package/src/components/Checkmark/appearance/checkmarkStyle.ts +17 -0
  131. package/src/components/Checkmark/appearance/checkmarkSurface.ts +24 -0
  132. package/src/components/Checkmark/index.ts +26 -4
  133. package/src/components/Checkmark/stories/CheckmarkChecked.stories.tsx +39 -0
  134. package/src/components/Checkmark/stories/CheckmarkDefault.stories.tsx +39 -0
  135. package/src/components/Checkmark/stories/CheckmarkDemo.stories.tsx +85 -0
  136. package/src/components/Checkmark/stories/CheckmarkGallery.stories.tsx +138 -0
  137. package/src/components/Checkmark/stories/CheckmarkNegative.stories.tsx +44 -0
  138. package/src/components/Checkmark/stories/CheckmarkSize.stories.tsx +85 -0
  139. package/src/components/Checkmark/stories/CheckmarkStories.config.ts +67 -0
  140. package/src/components/Checkmark/stories/CheckmarkStoryItem.tsx +34 -0
  141. package/src/components/Checkmark/stories/CheckmarkStyle.stories.tsx +64 -0
  142. package/src/components/Checkmark/styles/checkmark.ts +7 -2
  143. package/src/components/Checkmark/styles/checkmarkSize.ts +58 -0
  144. package/src/components/Chips/Chips.interface.ts +25 -0
  145. package/src/components/Chips/Chips.tsx +67 -85
  146. package/src/components/Chips/appearance/chipsAccent.ts +6 -0
  147. package/src/components/Chips/appearance/chipsDanger.ts +4 -0
  148. package/src/components/Chips/appearance/chipsDisabled.ts +2 -0
  149. package/src/components/Chips/appearance/chipsError.ts +4 -0
  150. package/src/components/Chips/appearance/chipsExtra.ts +4 -0
  151. package/src/components/Chips/appearance/chipsInfo.ts +4 -0
  152. package/src/components/Chips/appearance/chipsSpecial.ts +4 -0
  153. package/src/components/Chips/appearance/chipsSuccess.ts +4 -0
  154. package/src/components/Chips/appearance/chipsSurface.ts +18 -0
  155. package/src/components/Chips/appearance/chipsWarning.ts +4 -0
  156. package/src/components/Chips/stories/ChipsCheckLeft.stories.tsx +28 -22
  157. package/src/components/Chips/stories/ChipsCheckRight.stories.tsx +28 -22
  158. package/src/components/Chips/stories/ChipsClear.stories.tsx +28 -22
  159. package/src/components/Chips/stories/ChipsDefault.stories.tsx +37 -61
  160. package/src/components/Chips/stories/ChipsDemo.stories.tsx +78 -0
  161. package/src/components/Chips/stories/ChipsGallery.stories.tsx +113 -0
  162. package/src/components/Chips/stories/ChipsShape.stories.tsx +22 -2
  163. package/src/components/Chips/stories/ChipsSize.stories.tsx +26 -2
  164. package/src/components/Chips/stories/ChipsStories.config.ts +120 -0
  165. package/src/components/Chips/stories/ChipsStyle.stories.tsx +17 -2
  166. package/src/components/Choice/Choice.helpers.ts +35 -0
  167. package/src/components/Choice/Choice.interface.ts +22 -2
  168. package/src/components/Choice/Choice.tsx +104 -116
  169. package/src/components/Choice/appearance/choiceDefault.ts +12 -0
  170. package/src/components/Choice/appearance/choiceDisabled.ts +6 -0
  171. package/src/components/Choice/appearance/choiceError.ts +6 -0
  172. package/src/components/Choice/appearance/choiceRequire.ts +6 -0
  173. package/src/components/Choice/appearance/choiceSuccess.ts +6 -0
  174. package/src/components/Choice/stories/ChoiceDemo.stories.tsx +82 -0
  175. package/src/components/Choice/stories/ChoiceGallery.stories.tsx +90 -0
  176. package/src/components/Choice/stories/ChoiceIcon.stories.tsx +39 -36
  177. package/src/components/Choice/stories/ChoiceLabel.stories.tsx +45 -36
  178. package/src/components/Choice/stories/ChoiceLabelIcon.stories.tsx +39 -36
  179. package/src/components/Choice/stories/ChoiceSize.stories.tsx +17 -10
  180. package/src/components/Choice/stories/ChoiceStories.config.tsx +92 -43
  181. package/src/components/Choice/stories/ChoiceStyle.stories.tsx +21 -10
  182. package/src/components/Choice/stories/__mock__/index.ts +49 -0
  183. package/src/components/Choice/styles/choice.ts +8 -6
  184. package/src/components/Code/Code.appearance.ts +2 -0
  185. package/src/components/Code/Code.helpers.ts +213 -0
  186. package/src/components/Code/Code.interface.ts +73 -10
  187. package/src/components/Code/Code.styles.ts +8 -4
  188. package/src/components/Code/Code.tsx +110 -43
  189. package/src/components/Code/appearance/codeDefault.ts +5 -3
  190. package/src/components/Code/appearance/codeDisabled.ts +5 -3
  191. package/src/components/Code/appearance/codeError.ts +5 -3
  192. package/src/components/Code/appearance/codeRequire.ts +13 -0
  193. package/src/components/Code/appearance/codeShape.ts +14 -2
  194. package/src/components/Code/appearance/codeSize.ts +8 -5
  195. package/src/components/Code/appearance/codeStyle.ts +9 -6
  196. package/src/components/Code/appearance/codeSuccess.ts +5 -3
  197. package/src/components/Code/stories/CodeDefault.stories.tsx +58 -0
  198. package/src/components/Code/stories/CodeDemo.stories.tsx +80 -0
  199. package/src/components/Code/stories/CodeDisabled.stories.tsx +53 -0
  200. package/src/components/Code/stories/CodeError.stories.tsx +52 -0
  201. package/src/components/Code/stories/CodeGallery.stories.tsx +88 -0
  202. package/src/components/Code/stories/CodeRequire.stories.tsx +52 -0
  203. package/src/components/Code/stories/CodeShape.stories.tsx +71 -0
  204. package/src/components/Code/stories/CodeSize.stories.tsx +35 -0
  205. package/src/components/Code/stories/CodeStories.config.ts +42 -0
  206. package/src/components/Code/stories/CodeStyle.stories.tsx +53 -0
  207. package/src/components/Code/stories/CodeSuccess.stories.tsx +52 -0
  208. package/src/components/Code/styles/code.ts +9 -8
  209. package/src/components/Code/styles/codeInputShape.ts +27 -0
  210. package/src/components/Code/styles/codeSize.ts +17 -12
  211. package/src/components/ColorInput/ColorInput.interface.ts +16 -1
  212. package/src/components/ColorInput/ColorInput.tsx +31 -35
  213. package/src/components/ColorInput/stories/ColorInputDefault.stories.tsx +38 -0
  214. package/src/components/ColorInput/stories/ColorInputDemo.stories.tsx +85 -0
  215. package/src/components/ColorInput/stories/ColorInputDisabled.stories.tsx +43 -0
  216. package/src/components/ColorInput/stories/ColorInputError.stories.tsx +38 -0
  217. package/src/components/ColorInput/stories/ColorInputGallery.stories.tsx +81 -0
  218. package/src/components/ColorInput/stories/ColorInputRequire.stories.tsx +38 -0
  219. package/src/components/ColorInput/stories/ColorInputShape.stories.tsx +65 -0
  220. package/src/components/ColorInput/stories/ColorInputSize.stories.tsx +50 -0
  221. package/src/components/ColorInput/stories/ColorInputStories.config.tsx +75 -0
  222. package/src/components/ColorInput/stories/ColorInputStyle.stories.tsx +50 -0
  223. package/src/components/ColorInput/stories/ColorInputSuccess.stories.tsx +38 -0
  224. package/src/components/DatePicker/DatePicker.interface.ts +3 -1
  225. package/src/components/DatePicker/DatePicker.tsx +38 -32
  226. package/src/components/DatePicker/appearance/datePickerSurface.ts +1 -0
  227. package/src/components/DatePicker/stories/DatePicker.stories.tsx +24 -24
  228. package/src/components/DatePicker/stories/DatePickerSize.stories.tsx +50 -0
  229. package/src/components/DatePicker/stories/DatePickerStyle.stories.tsx +59 -0
  230. package/src/components/Divider/Divider.tsx +39 -28
  231. package/src/components/Divider/stories/DividerAppearance.stories.tsx +20 -2
  232. package/src/components/Divider/stories/DividerDirection.stories.tsx +19 -7
  233. package/src/components/Divider/stories/DividerSize.stories.tsx +13 -2
  234. package/src/components/Divider/stories/DividerStories.config.tsx +16 -0
  235. package/src/components/Divider/styles/divider.ts +10 -0
  236. package/src/components/Divider/styles/dividerDirection.ts +1 -3
  237. package/src/components/Dot/stories/Dot.stories.tsx +32 -5
  238. package/src/components/Drawer/Drawer.interface.ts +5 -2
  239. package/src/components/Drawer/Drawer.tsx +29 -33
  240. package/src/components/Drawer/appearance/drawerSurface.ts +3 -0
  241. package/src/components/Drawer/stories/Drawer.stories.tsx +45 -38
  242. package/src/components/Drawer/stories/DrawerSize.stories.tsx +77 -0
  243. package/src/components/Drawer/stories/DrawerSwap.stories.tsx +38 -0
  244. package/src/components/Drawer/stories/__mock__/index.ts +8 -0
  245. package/src/components/Dropdown/Dropdown.interface.ts +54 -6
  246. package/src/components/Dropdown/Dropdown.styles.ts +0 -2
  247. package/src/components/Dropdown/Dropdown.tsx +17 -21
  248. package/src/components/Dropdown/DropdownItem.styles.ts +9 -0
  249. package/src/components/Dropdown/DropdownItem.tsx +114 -86
  250. package/src/components/Dropdown/appearance/dropdownAccent.ts +18 -0
  251. package/src/components/Dropdown/appearance/dropdownShape.ts +4 -4
  252. package/src/components/Dropdown/appearance/dropdownSize.ts +26 -2
  253. package/src/components/Dropdown/appearance/dropdownSurface.ts +34 -0
  254. package/src/components/Dropdown/index.ts +6 -4
  255. package/src/components/Dropdown/stories/DropdownBadge.stories.tsx +44 -0
  256. package/src/components/Dropdown/stories/DropdownDefault.stories.tsx +44 -0
  257. package/src/components/Dropdown/stories/DropdownMessage.stories.tsx +44 -0
  258. package/src/components/Dropdown/stories/DropdownSize.stories.tsx +53 -0
  259. package/src/components/Dropdown/stories/DropdownSwap.stories.tsx +44 -0
  260. package/src/components/Dropdown/stories/__mock__/index.tsx +138 -0
  261. package/src/components/Dropdown/styles/dropdown.ts +0 -5
  262. package/src/components/Dropdown/styles/dropdownItem.ts +39 -0
  263. package/src/components/Dropdown/styles/{dropdownSize.ts → dropdownItemSize.ts} +6 -6
  264. package/src/components/Group/Group.tsx +27 -14
  265. package/src/components/Group/stories/Group.stories.tsx +23 -16
  266. package/src/components/Group/stories/GroupAlignItems.stories.tsx +86 -0
  267. package/src/components/Group/stories/GroupDirection.stories.tsx +90 -0
  268. package/src/components/Group/stories/GroupJustifyContent.stories.tsx +92 -0
  269. package/src/components/Group/stories/GroupWrap.stories.tsx +74 -0
  270. package/src/components/HeroTitle/HeroTitle.interface.ts +2 -0
  271. package/src/components/HeroTitle/HeroTitle.tsx +30 -20
  272. package/src/components/HeroTitle/appearance/heroTitleSize.ts +12 -0
  273. package/src/components/HeroTitle/stories/HeroTitle.stories.tsx +19 -11
  274. package/src/components/HeroTitle/stories/HeroTitleIcon.stories.tsx +42 -0
  275. package/src/components/HeroTitle/stories/HeroTitleSize.stories.tsx +77 -0
  276. package/src/components/Icon/Icon.appearance.ts +32 -0
  277. package/src/components/Icon/Icon.interface.ts +98 -10
  278. package/src/components/Icon/Icon.styles.ts +10 -3
  279. package/src/components/Icon/Icon.tsx +176 -54
  280. package/src/components/Icon/appearance/iconAccent.ts +19 -0
  281. package/src/components/Icon/appearance/iconDanger.ts +13 -0
  282. package/src/components/Icon/appearance/iconDisabled.ts +12 -0
  283. package/src/components/Icon/appearance/iconError.ts +13 -0
  284. package/src/components/Icon/appearance/iconExtra.ts +13 -0
  285. package/src/components/Icon/appearance/iconInfo.ts +18 -0
  286. package/src/components/Icon/appearance/iconShape.ts +24 -0
  287. package/src/components/Icon/appearance/iconSize.ts +180 -0
  288. package/src/components/Icon/appearance/iconSpecial.ts +13 -0
  289. package/src/components/Icon/appearance/iconStyle.ts +17 -0
  290. package/src/components/Icon/appearance/iconSuccess.ts +13 -0
  291. package/src/components/Icon/appearance/iconSurface.ts +31 -0
  292. package/src/components/Icon/appearance/iconWarning.ts +13 -0
  293. package/src/components/Icon/index.ts +20 -4
  294. package/src/components/Icon/stories/IconDefault.stories.tsx +84 -0
  295. package/src/components/Icon/stories/IconDemo.stories.tsx +78 -0
  296. package/src/components/Icon/stories/IconDisabled.stories.tsx +36 -0
  297. package/src/components/Icon/stories/IconGallery.stories.tsx +77 -0
  298. package/src/components/Icon/stories/IconShape.stories.tsx +92 -0
  299. package/src/components/Icon/stories/IconSize12.stories.tsx +42 -0
  300. package/src/components/Icon/stories/IconSize14.stories.tsx +53 -0
  301. package/src/components/Icon/stories/IconSize16.stories.tsx +64 -0
  302. package/src/components/Icon/stories/IconSize20.stories.tsx +75 -0
  303. package/src/components/Icon/stories/IconSize24.stories.tsx +92 -0
  304. package/src/components/Icon/stories/IconSize32.stories.tsx +104 -0
  305. package/src/components/Icon/stories/IconSize40.stories.tsx +116 -0
  306. package/src/components/Icon/stories/IconSkeleton.stories.tsx +87 -0
  307. package/src/components/Icon/stories/IconStories.config.ts +124 -0
  308. package/src/components/Icon/stories/IconStyle.stories.tsx +75 -0
  309. package/src/components/Icon/stories/IconWithBadge.stories.tsx +114 -0
  310. package/src/components/Icon/styles/icon.ts +17 -3
  311. package/src/components/Icon/styles/iconBadge.ts +27 -0
  312. package/src/components/Icon/styles/iconShape.ts +13 -1
  313. package/src/components/Icon/styles/iconSize.ts +54 -57
  314. package/src/components/Image/stories/Image.stories.tsx +32 -7
  315. package/src/components/Input/Input.interface.ts +15 -2
  316. package/src/components/Input/Input.tsx +51 -89
  317. package/src/components/Input/stories/InputDefault.stories.tsx +14 -5
  318. package/src/components/Input/stories/InputDemo.stories.tsx +79 -0
  319. package/src/components/Input/stories/InputDisabled.stories.tsx +17 -6
  320. package/src/components/Input/stories/InputError.stories.tsx +19 -4
  321. package/src/components/Input/stories/InputGallery.stories.tsx +80 -0
  322. package/src/components/Input/stories/InputReadonly.stories.tsx +7 -3
  323. package/src/components/Input/stories/InputRequire.stories.tsx +19 -5
  324. package/src/components/Input/stories/InputShape.stories.tsx +22 -3
  325. package/src/components/Input/stories/InputSize.stories.tsx +20 -3
  326. package/src/components/Input/stories/InputStories.config.tsx +66 -0
  327. package/src/components/Input/stories/InputStyle.stories.tsx +20 -3
  328. package/src/components/Input/stories/InputSuccess.stories.tsx +19 -4
  329. package/src/components/InputNumber/InputNumber.interface.ts +17 -1
  330. package/src/components/InputNumber/InputNumber.tsx +65 -74
  331. package/src/components/InputNumber/appearance/inputNumberDefault.ts +1 -0
  332. package/src/components/InputNumber/appearance/inputNumberError.ts +1 -0
  333. package/src/components/InputNumber/appearance/inputNumberRequire.ts +1 -0
  334. package/src/components/InputNumber/appearance/inputNumberSuccess.ts +1 -0
  335. package/src/components/InputNumber/stories/InputNumberDemo.stories.tsx +90 -0
  336. package/src/components/InputNumber/stories/InputNumberGallery.stories.tsx +72 -0
  337. package/src/components/InputNumber/stories/InputNumberShape.stories.tsx +78 -0
  338. package/src/components/InputNumber/stories/InputNumberSize.stories.tsx +60 -0
  339. package/src/components/InputNumber/stories/InputNumberStories.config.tsx +61 -0
  340. package/src/components/InputNumber/stories/InputNumberValues.stories.tsx +29 -0
  341. package/src/components/InputPassword/InputPassword.interface.ts +20 -1
  342. package/src/components/InputPassword/InputPassword.tsx +71 -109
  343. package/src/components/InputPassword/appearance/inputPasswordDefault.ts +2 -0
  344. package/src/components/InputPassword/appearance/inputPasswordDisabled.ts +2 -0
  345. package/src/components/InputPassword/appearance/inputPasswordError.ts +2 -0
  346. package/src/components/InputPassword/appearance/inputPasswordRequire.ts +2 -0
  347. package/src/components/InputPassword/appearance/inputPasswordSuccess.ts +2 -0
  348. package/src/components/InputPassword/stories/InpputPasswordRequire.stories.tsx +45 -0
  349. package/src/components/InputPassword/stories/InputPassword.stories.tsx +22 -45
  350. package/src/components/InputPassword/stories/InputPasswordDefault.stories.tsx +50 -0
  351. package/src/components/InputPassword/stories/InputPasswordDemo.stories.tsx +89 -0
  352. package/src/components/InputPassword/stories/InputPasswordDisabled.stories.tsx +50 -0
  353. package/src/components/InputPassword/stories/InputPasswordError.stories.tsx +45 -0
  354. package/src/components/InputPassword/stories/InputPasswordGallery.stories.tsx +109 -0
  355. package/src/components/InputPassword/stories/InputPasswordShape.stories.tsx +71 -0
  356. package/src/components/InputPassword/stories/InputPasswordSize.stories.tsx +57 -0
  357. package/src/components/InputPassword/stories/InputPasswordStories.config.tsx +65 -0
  358. package/src/components/InputPassword/stories/InputPasswordStyle.stories.tsx +57 -0
  359. package/src/components/InputPassword/stories/InputPasswordSuccess.stories.tsx +45 -0
  360. package/src/components/InputPassword/stories/InputPasswordType.stories.tsx +26 -0
  361. package/src/components/InputPassword/stories/InputPasswordValue.stories.tsx +38 -0
  362. package/src/components/Label/Label.appearance.ts +14 -0
  363. package/src/components/Label/Label.constants.ts +7 -0
  364. package/src/components/Label/Label.interface.ts +54 -2
  365. package/src/components/Label/Label.tsx +100 -71
  366. package/src/components/Label/appearance/labelAccent.ts +21 -0
  367. package/src/components/Label/appearance/labelDanger.ts +10 -0
  368. package/src/components/Label/appearance/labelDisabled.ts +13 -0
  369. package/src/components/Label/appearance/labelError.ts +20 -0
  370. package/src/components/Label/appearance/labelExtra.ts +12 -2
  371. package/src/components/Label/appearance/labelGradient.ts +5 -1
  372. package/src/components/Label/appearance/labelInfo.ts +20 -0
  373. package/src/components/Label/appearance/labelSize.ts +56 -7
  374. package/src/components/Label/appearance/labelSpecial.ts +20 -0
  375. package/src/components/Label/appearance/labelStyle.ts +17 -0
  376. package/src/components/Label/appearance/labelSuccess.ts +20 -0
  377. package/src/components/Label/appearance/labelSurface.ts +11 -1
  378. package/src/components/Label/appearance/labelWarning.ts +20 -0
  379. package/src/components/Label/stories/LabelDemo.stories.tsx +76 -0
  380. package/src/components/Label/stories/LabelGallery.stories.tsx +113 -0
  381. package/src/components/Label/stories/LabelIconAfter.stories.tsx +75 -0
  382. package/src/components/Label/stories/LabelIconBefore.stories.tsx +75 -0
  383. package/src/components/Label/stories/LabelIcons.stories.tsx +81 -0
  384. package/src/components/Label/stories/LabelShape.stories.tsx +68 -6
  385. package/src/components/Label/stories/LabelSize.stories.tsx +50 -2
  386. package/src/components/Label/stories/LabelSkeleton.stories.tsx +90 -0
  387. package/src/components/Label/stories/LabelStories.config.ts +123 -0
  388. package/src/components/Label/stories/LabelStyle.stories.tsx +78 -0
  389. package/src/components/Label/stories/LabelText.stories.tsx +46 -27
  390. package/src/components/Label/styles/label.ts +6 -0
  391. package/src/components/Link/Link.interface.ts +6 -0
  392. package/src/components/Link/Link.tsx +26 -41
  393. package/src/components/Link/stories/Link.stories.tsx +7 -5
  394. package/src/components/Link/stories/LinkDefault.stories.tsx +34 -0
  395. package/src/components/Link/stories/LinkDemo.stories.tsx +51 -0
  396. package/src/components/Link/stories/LinkGallery.stories.tsx +40 -0
  397. package/src/components/Link/stories/LinkStories.config.ts +36 -0
  398. package/src/components/List/List.tsx +17 -48
  399. package/src/components/List/__mock__/index.ts +18 -0
  400. package/src/components/List/stories/List.stories.tsx +19 -32
  401. package/src/components/List/stories/ListItem.stories.tsx +30 -0
  402. package/src/components/List/stories/ListSize.stories.tsx +39 -0
  403. package/src/components/Loader/Loader.interface.ts +13 -0
  404. package/src/components/Loader/Loader.tsx +38 -55
  405. package/src/components/Loader/stories/LoaderCircular.stories.tsx +39 -0
  406. package/src/components/Loader/stories/LoaderDemo.stories.tsx +74 -0
  407. package/src/components/Loader/stories/LoaderDot.stories.tsx +39 -0
  408. package/src/components/Loader/stories/LoaderGallery.stories.tsx +74 -0
  409. package/src/components/Loader/stories/LoaderSize.stories.tsx +19 -6
  410. package/src/components/Loader/stories/LoaderStories.config.ts +83 -0
  411. package/src/components/Loader/stories/LoaderStyle.stories.tsx +19 -3
  412. package/src/components/Loader/stories/LoaderText.stories.tsx +26 -14
  413. package/src/components/Logo/stories/Logo.stories.tsx +8 -16
  414. package/src/components/Logo/stories/LogoSize.stories.tsx +43 -0
  415. package/src/components/MenuItem/MenuItem.interface.ts +2 -0
  416. package/src/components/MenuItem/MenuItem.tsx +56 -79
  417. package/src/components/MenuItem/appearance/menuItemAccent.ts +6 -0
  418. package/src/components/MenuItem/appearance/menuItemError.ts +4 -0
  419. package/src/components/MenuItem/appearance/menuItemSurface.ts +6 -0
  420. package/src/components/MenuItem/stories/MenuItemDefault.stories.tsx +53 -0
  421. package/src/components/MenuItem/stories/MenuItemIcon.stories.tsx +54 -0
  422. package/src/components/MenuItem/stories/MenuItemIconMuted.stories.tsx +51 -0
  423. package/src/components/MenuItem/stories/MenuItemMuted.stories.tsx +53 -0
  424. package/src/components/MenuItem/stories/MenuItemSize.stories.tsx +87 -0
  425. package/src/components/MenuItem/stories/MenuItemStyle.stories.tsx +62 -0
  426. package/src/components/Modal/stories/ModalDemo.stories.tsx +30 -0
  427. package/src/components/Overlay/Overlay.tsx +12 -13
  428. package/src/components/Overlay/stories/Overlay.stories.tsx +28 -12
  429. package/src/components/Pagination/Pagination.interface.ts +2 -1
  430. package/src/components/Pagination/Pagination.tsx +22 -33
  431. package/src/components/Pagination/stories/PaginationDefault.stories.tsx +41 -0
  432. package/src/components/Pagination/stories/PaginationDot.stories.tsx +41 -0
  433. package/src/components/Pagination/stories/PaginationNumber.stories.tsx +32 -0
  434. package/src/components/Pagination/stories/PaginationSize.stories.tsx +59 -0
  435. package/src/components/Pressable/Pressable.appearance.ts +30 -0
  436. package/src/components/Pressable/Pressable.interface.ts +75 -0
  437. package/src/components/Pressable/Pressable.styles.ts +7 -0
  438. package/src/components/Pressable/Pressable.tsx +110 -0
  439. package/src/components/Pressable/appearance/pressableAccent.ts +18 -0
  440. package/src/components/Pressable/appearance/pressableDanger.ts +12 -0
  441. package/src/components/Pressable/appearance/pressableDisabled.ts +12 -0
  442. package/src/components/Pressable/appearance/pressableError.ts +12 -0
  443. package/src/components/Pressable/appearance/pressableExtra.ts +12 -0
  444. package/src/components/Pressable/appearance/pressableInfo.ts +11 -0
  445. package/src/components/Pressable/appearance/pressableShape.ts +24 -0
  446. package/src/components/Pressable/appearance/pressableSpecial.ts +12 -0
  447. package/src/components/Pressable/appearance/pressableStyle.ts +17 -0
  448. package/src/components/Pressable/appearance/pressableSuccess.ts +12 -0
  449. package/src/components/Pressable/appearance/pressableSurface.ts +27 -0
  450. package/src/components/Pressable/appearance/pressableWarning.ts +12 -0
  451. package/src/components/Pressable/index.ts +22 -0
  452. package/src/components/Pressable/stories/PressableDefault.stories.tsx +45 -0
  453. package/src/components/Pressable/stories/PressableDemo.stories.tsx +66 -0
  454. package/src/components/Pressable/stories/PressableGallery.stories.tsx +68 -0
  455. package/src/components/Pressable/stories/PressableShape.stories.tsx +57 -0
  456. package/src/components/Pressable/stories/PressableStories.config.ts +62 -0
  457. package/src/components/Pressable/stories/PressableStyle.stories.tsx +74 -0
  458. package/src/components/Pressable/styles/pressable.ts +9 -0
  459. package/src/components/Radio/Radio.interface.ts +15 -2
  460. package/src/components/Radio/Radio.tsx +42 -78
  461. package/src/components/Radio/stories/RadioDefault.stories.tsx +13 -4
  462. package/src/components/Radio/stories/RadioDemo.stories.tsx +76 -0
  463. package/src/components/Radio/stories/RadioDisabled.stories.tsx +1 -1
  464. package/src/components/Radio/stories/RadioError.stories.tsx +1 -1
  465. package/src/components/Radio/stories/RadioGallery.stories.tsx +116 -0
  466. package/src/components/Radio/stories/RadioRequire.stories.tsx +1 -1
  467. package/src/components/Radio/stories/RadioSize.stories.tsx +1 -1
  468. package/src/components/Radio/stories/RadioState.stories.tsx +35 -0
  469. package/src/components/Radio/stories/RadioStories.config.ts +45 -0
  470. package/src/components/Radio/stories/RadioStyle.stories.tsx +1 -1
  471. package/src/components/Radio/stories/RadioSuccess.stories.tsx +1 -1
  472. package/src/components/RangeSlider/RangeSlider.helpers.ts +37 -0
  473. package/src/components/RangeSlider/RangeSlider.tsx +27 -163
  474. package/src/components/RangeSlider/RangeSlider.web.tsx +3 -0
  475. package/src/components/RangeSlider/RangeSliderCustom.tsx +199 -0
  476. package/src/components/RangeSlider/stories/RangeSliderDisabled.stories.tsx +32 -0
  477. package/src/components/RangeSlider/styles/rangeSlider.ts +4 -0
  478. package/src/components/Response/stories/ResponseConfirm.stories.tsx +75 -0
  479. package/src/components/Response/stories/ResponseError.stories.tsx +75 -0
  480. package/src/components/Response/stories/ResponseFail.stories.tsx +75 -0
  481. package/src/components/Response/stories/ResponseNothingFound.stories.tsx +75 -0
  482. package/src/components/Response/stories/ResponseRefresh.stories.tsx +75 -0
  483. package/src/components/Response/stories/ResponseSuccess.stories.tsx +75 -0
  484. package/src/components/Response/stories/ResponseUnableLoadData.stories.tsx +75 -0
  485. package/src/components/Response/stories/ResponseWarning.stories.tsx +85 -0
  486. package/src/components/Scrollbar/stories/Scrollbar.stories.tsx +22 -24
  487. package/src/components/Search/Search.appearance.ts +22 -0
  488. package/src/components/Search/Search.interface.ts +96 -6
  489. package/src/components/Search/Search.styles.ts +7 -1
  490. package/src/components/Search/Search.tsx +118 -34
  491. package/src/components/Search/appearance/searchDefault.ts +22 -0
  492. package/src/components/Search/appearance/searchDisabled.ts +14 -0
  493. package/src/components/Search/appearance/searchError.ts +14 -0
  494. package/src/components/Search/appearance/searchRequire.ts +14 -0
  495. package/src/components/Search/appearance/searchShape.ts +24 -0
  496. package/src/components/Search/appearance/searchSize.ts +62 -0
  497. package/src/components/Search/appearance/searchStyle.ts +17 -0
  498. package/src/components/Search/appearance/searchSuccess.ts +13 -0
  499. package/src/components/Search/index.ts +17 -4
  500. package/src/components/Search/stories/SearchInputClear.stories.tsx +36 -0
  501. package/src/components/Search/stories/SearchInputDefault.stories.tsx +67 -0
  502. package/src/components/Search/stories/SearchInputDemo.stories.tsx +126 -0
  503. package/src/components/Search/stories/SearchInputDisabled.stories.tsx +73 -0
  504. package/src/components/Search/stories/SearchInputError.stories.tsx +65 -0
  505. package/src/components/Search/stories/SearchInputGallery.stories.tsx +101 -0
  506. package/src/components/Search/stories/SearchInputRequire.stories.tsx +65 -0
  507. package/src/components/Search/stories/SearchInputShape.stories.tsx +72 -0
  508. package/src/components/Search/stories/SearchInputSize.stories.tsx +71 -0
  509. package/src/components/Search/stories/SearchInputStyle.stories.tsx +53 -0
  510. package/src/components/Search/stories/SearchInputSuccess.stories.tsx +65 -0
  511. package/src/components/Search/stories/SearchStories.config.ts +50 -0
  512. package/src/components/Search/styles/search.ts +28 -12
  513. package/src/components/Search/styles/searchShape.ts +34 -0
  514. package/src/components/Search/styles/searchSize.ts +48 -0
  515. package/src/components/Segmented/Segmented.interface.ts +10 -0
  516. package/src/components/Segmented/Segmented.tsx +9 -4
  517. package/src/components/Segmented/appearance/segmentedDefault.ts +4 -0
  518. package/src/components/Segmented/appearance/segmentedDisabled.ts +2 -0
  519. package/src/components/Segmented/appearance/segmentedError.ts +2 -0
  520. package/src/components/Segmented/appearance/segmentedRequire.ts +1 -0
  521. package/src/components/Segmented/appearance/segmentedSuccess.ts +1 -0
  522. package/src/components/Segmented/stories/SegmenetedIcon.stories.tsx +45 -0
  523. package/src/components/Segmented/stories/SegmentedDemo.stories.tsx +81 -0
  524. package/src/components/Segmented/stories/SegmentedDisabled.stories.tsx +1 -1
  525. package/src/components/Segmented/stories/SegmentedGallery.stories.tsx +89 -0
  526. package/src/components/Segmented/stories/SegmentedLabel.stories.tsx +1 -1
  527. package/src/components/Segmented/stories/SegmentedLabelIcon.stories.tsx +1 -1
  528. package/src/components/Segmented/stories/SegmentedShape.stories.tsx +1 -1
  529. package/src/components/Segmented/stories/SegmentedSize.stories.tsx +1 -1
  530. package/src/components/Segmented/stories/SegmentedStories.config.tsx +49 -1
  531. package/src/components/Segmented/stories/SegmentedStyle.stories.tsx +1 -1
  532. package/src/components/Select/Select.interface.ts +21 -1
  533. package/src/components/Select/Select.tsx +91 -63
  534. package/src/components/Select/appearance/selectDefault.ts +2 -0
  535. package/src/components/Select/appearance/selectDisabled.ts +3 -0
  536. package/src/components/Select/appearance/selectError.ts +2 -0
  537. package/src/components/Select/appearance/selectRequire.ts +2 -0
  538. package/src/components/Select/appearance/selectShape.ts +4 -4
  539. package/src/components/Select/appearance/selectSuccess.ts +2 -0
  540. package/src/components/Select/index.ts +2 -0
  541. package/src/components/Select/stories/SelectDefault.stories.tsx +110 -0
  542. package/src/components/Select/stories/SelectDemo.stories.tsx +81 -0
  543. package/src/components/Select/stories/SelectDisabled.stories.tsx +71 -0
  544. package/src/components/Select/stories/SelectError.stories.tsx +70 -0
  545. package/src/components/Select/stories/SelectGallery.stories.tsx +97 -0
  546. package/src/components/Select/stories/SelectRequire.stories.tsx +70 -0
  547. package/src/components/Select/stories/SelectShape.stories.tsx +69 -0
  548. package/src/components/Select/stories/SelectSize.stories.tsx +61 -0
  549. package/src/components/Select/stories/SelectStories.config.ts +88 -0
  550. package/src/components/Select/stories/SelectStyle.stories.tsx +60 -0
  551. package/src/components/Select/stories/SelectSuccess.stories.tsx +70 -0
  552. package/src/components/Select/stories/__mock__/index.ts +52 -0
  553. package/src/components/Select/styles/select.ts +21 -0
  554. package/src/components/Switch/Switch.constants.ts +4 -0
  555. package/src/components/Switch/Switch.helpers.ts +102 -0
  556. package/src/components/Switch/Switch.interface.ts +18 -2
  557. package/src/components/Switch/Switch.tsx +110 -67
  558. package/src/components/{Segmented/stories/SegmentedIcon.stories.tsx → Switch/stories/Switch.stories.tsx} +18 -12
  559. package/src/components/Switch/stories/SwitchDefault.stories.tsx +6 -5
  560. package/src/components/Switch/stories/SwitchDemo.stories.tsx +81 -0
  561. package/src/components/Switch/stories/SwitchDisabled.stories.tsx +10 -1
  562. package/src/components/Switch/stories/SwitchError.stories.tsx +5 -5
  563. package/src/components/Switch/stories/SwitchGallery.stories.tsx +102 -0
  564. package/src/components/Switch/stories/SwitchRequire.stories.tsx +5 -5
  565. package/src/components/Switch/stories/SwitchSize.stories.tsx +5 -4
  566. package/src/components/Switch/stories/SwitchStories.config.tsx +59 -21
  567. package/src/components/Switch/stories/SwitchSuccess.stories.tsx +5 -5
  568. package/src/components/Switch/stories/SwitchTitleDescSwitch.stories.tsx +7 -5
  569. package/src/components/Switch/stories/SwitchTitleSwitch.stories.tsx +7 -5
  570. package/src/components/Switch/styles/switch.ts +2 -6
  571. package/src/components/Tab/stories/TabDefault.stories.tsx +34 -0
  572. package/src/components/Tab/stories/TabDemo.stories.tsx +27 -0
  573. package/src/components/Tab/stories/TabSize.stories.tsx +80 -0
  574. package/src/components/Tab/stories/TabStories.config.ts +12 -0
  575. package/src/components/Text/stories/TextDemo.stories.tsx +30 -0
  576. package/src/components/Text/stories/TextSize.stories.tsx +88 -0
  577. package/src/components/Textarea/Textarea.interface.ts +3 -1
  578. package/src/components/Textarea/Textarea.tsx +54 -89
  579. package/src/components/Textarea/stories/Textarea.stories.tsx +14 -46
  580. package/src/components/Textarea/stories/TextareaDefault.stories.tsx +73 -0
  581. package/src/components/Textarea/stories/TextareaDisabled.stories.tsx +73 -0
  582. package/src/components/Textarea/stories/TextareaError.stories.tsx +72 -0
  583. package/src/components/Textarea/stories/TextareaRequire.stories.tsx +72 -0
  584. package/src/components/Textarea/stories/TextareaShape.stories.tsx +76 -0
  585. package/src/components/Textarea/stories/TextareaSize.stories.tsx +57 -0
  586. package/src/components/Textarea/stories/TextareaStyle.stories.tsx +57 -0
  587. package/src/components/Textarea/stories/TextareaSuccess.stories.tsx +72 -0
  588. package/src/components/Textarea/stories/TextareaValue.stories.tsx +43 -0
  589. package/src/components/Tile/Tile.interface.ts +16 -0
  590. package/src/components/Tile/Tile.tsx +46 -82
  591. package/src/components/Tile/appearance/tileSurface.ts +8 -4
  592. package/src/components/Tile/stories/TileBadge.stories.tsx +1 -1
  593. package/src/components/Tile/stories/TileDemo.stories.tsx +77 -0
  594. package/src/components/Tile/stories/TileGallery.stories.tsx +108 -0
  595. package/src/components/Tile/stories/TileIcon.stories.tsx +1 -1
  596. package/src/components/Tile/stories/TileShape.stories.tsx +1 -1
  597. package/src/components/Tile/stories/TileSize.stories.tsx +1 -1
  598. package/src/components/Tile/stories/TileStories.config.ts +30 -0
  599. package/src/components/Tile/stories/TileStyle.stories.tsx +20 -6
  600. package/src/components/Tile/stories/TileSwap.stories.tsx +2 -2
  601. package/src/components/Title/stories/TitleSize.stories.tsx +77 -0
  602. package/src/components/Tooltip/Tooltip.interface.ts +17 -1
  603. package/src/components/Tooltip/Tooltip.tsx +26 -29
  604. package/src/components/Tooltip/appearance/tooltipShape.ts +4 -4
  605. package/src/components/Tooltip/stories/TooltipAppearance.stories.tsx +64 -0
  606. package/src/components/Tooltip/stories/TooltipCustom.stories.tsx +31 -0
  607. package/src/components/Tooltip/stories/TooltipDemo.stories.tsx +77 -0
  608. package/src/components/Tooltip/stories/TooltipGallery.stories.tsx +85 -0
  609. package/src/components/Tooltip/stories/TooltipShape.stories.tsx +73 -0
  610. package/src/components/Tooltip/stories/TooltipSize.stories.tsx +46 -0
  611. package/src/components/Tooltip/stories/TooltipStories.config.ts +37 -0
  612. package/src/components/Tooltip/stories/TooltipStyle.stories.tsx +55 -0
  613. package/src/components/Warning/Warning.constants.ts +11 -0
  614. package/src/components/Warning/Warning.helpers.ts +62 -0
  615. package/src/components/Warning/Warning.interface.ts +12 -0
  616. package/src/components/Warning/Warning.tsx +16 -5
  617. package/src/components/Warning/WarningSkeleton.tsx +32 -0
  618. package/src/components/Warning/WarningSkeleton.web.tsx +56 -0
  619. package/src/components/Warning/appearance/warningAccent.ts +4 -0
  620. package/src/components/Warning/appearance/warningError.ts +4 -0
  621. package/src/components/Warning/appearance/warningInfo.ts +6 -0
  622. package/src/components/Warning/appearance/warningSuccess.ts +2 -0
  623. package/src/components/Warning/appearance/warningWarning.ts +6 -0
  624. package/src/components/Warning/stories/WarningDefault.stories.tsx +24 -7
  625. package/src/components/Warning/stories/WarningMuted.stories.tsx +22 -2
  626. package/src/components/Warning/stories/WarningShape.stories.tsx +36 -2
  627. package/src/components/Warning/stories/WarningSize.stories.tsx +12 -7
  628. package/src/components/Warning/stories/WarningSkeleton.stories.tsx +30 -0
  629. package/src/components/Warning/stories/WarningStyle.stories.tsx +22 -2
  630. package/src/components/Warning/styles/warning.ts +15 -0
  631. package/src/index.tsx +51 -5
  632. package/src/storybook/createAppearanceTierStories/createAppearanceTierStories.interface.ts +21 -0
  633. package/src/storybook/createAppearanceTierStories/createAppearanceTierStories.ts +63 -0
  634. package/src/storybook/createAppearanceTierStories/index.ts +2 -0
  635. package/src/storybook/createComponentGallery/createComponentGallery.interface.ts +23 -0
  636. package/src/storybook/createComponentGallery/createComponentGallery.tsx +134 -0
  637. package/src/storybook/createComponentGallery/index.ts +25 -0
  638. package/src/storybook/index.ts +46 -0
  639. package/src/storybook/renderAppearanceTierRow/index.ts +6 -0
  640. package/src/storybook/renderAppearanceTierRow/renderAppearanceTierRow.interface.ts +34 -0
  641. package/src/storybook/renderAppearanceTierRow/renderAppearanceTierRow.tsx +90 -0
  642. package/src/styles/direction/index.ts +11 -4
  643. package/src/styles/width/index.ts +6 -2
  644. package/tsconfig.json +3 -1
  645. package/src/components/AvatarStack/stories/AvatarStack.stories.tsx +0 -56
  646. package/src/components/Badge/stories/BadgeDefault.stories.tsx +0 -39
  647. package/src/components/Badge/stories/BadgeStatus.stories.tsx +0 -23
  648. package/src/components/Breadcrumbs/stories/Breadcrumbs.stories.tsx +0 -35
  649. package/src/components/Cell/stories/Cell.stories.tsx +0 -35
  650. package/src/components/Checkmark/stories/Checkmark.stories.tsx +0 -22
  651. package/src/components/Code/stories/Code.stories.tsx +0 -41
  652. package/src/components/ColorInput/stories/ColorInput.stories.tsx +0 -36
  653. package/src/components/Dropdown/stories/Dropdown.stories.tsx +0 -62
  654. package/src/components/Icon/stories/Icon.stories.tsx +0 -45
  655. package/src/components/InputNumber/stories/InputNumber.stories.tsx +0 -93
  656. package/src/components/Label/Label.web.tsx +0 -124
  657. package/src/components/Loader/stories/LoaderDefault.stories.tsx +0 -69
  658. package/src/components/Loader/stories/LoaderShape.stories.tsx +0 -51
  659. package/src/components/MenuItem/stories/MenuItem.stories.tsx +0 -52
  660. package/src/components/Modal/stories/Modal.stories.tsx +0 -47
  661. package/src/components/Pagination/stories/Pagination.stories.tsx +0 -37
  662. package/src/components/RangeSlider/stories/RangeSlider.stories.tsx +0 -55
  663. package/src/components/Response/stories/Response.stories.tsx +0 -22
  664. package/src/components/Search/stories/Search.stories.tsx +0 -24
  665. package/src/components/Select/stories/Select.stories.tsx +0 -67
  666. package/src/components/Tab/stories/Tab.stories.tsx +0 -67
  667. package/src/components/Text/stories/Text.stories.tsx +0 -84
  668. package/src/components/Tile/stories/TileDefault.stories.tsx +0 -40
  669. package/src/components/Title/stories/Title.stories.tsx +0 -68
  670. package/src/components/Tooltip/stories/Tooltip.stories.tsx +0 -61
@@ -0,0 +1,57 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { InputPassword } from '../InputPassword'
4
+ import type { InputPasswordProps } from '../InputPassword.interface'
5
+
6
+ const meta = {
7
+ title: 'Atoms / InputPassword / Style',
8
+ component: InputPassword,
9
+ args: {
10
+ placeholder: 'Placeholder',
11
+ },
12
+ parameters: {
13
+ design: {
14
+ type: 'figma',
15
+ url: 'https://www.figma.com/design/HmHn0BShJPXHU8SmuIP71M/ITCase---Atoms?node-id=2228-10428',
16
+ },
17
+ },
18
+ } satisfies Meta<typeof InputPassword>
19
+ export default meta
20
+
21
+ type Story = StoryObj<typeof meta>
22
+
23
+ export const Solid: Story = {
24
+ args: {
25
+ appearance: 'defaultPrimary sizeXL solid rounded',
26
+ },
27
+ render: (args: InputPasswordProps) => {
28
+ return <InputPassword {...args} />
29
+ },
30
+ }
31
+
32
+ export const Outlined: Story = {
33
+ args: {
34
+ appearance: 'defaultPrimary sizeXL outlined rounded',
35
+ },
36
+ render: (args: InputPasswordProps) => {
37
+ return <InputPassword {...args} />
38
+ },
39
+ }
40
+
41
+ export const Ghost: Story = {
42
+ args: {
43
+ appearance: 'defaultPrimary sizeXL ghost rounded',
44
+ },
45
+ render: (args: InputPasswordProps) => {
46
+ return <InputPassword {...args} />
47
+ },
48
+ }
49
+
50
+ export const Full: Story = {
51
+ args: {
52
+ appearance: 'defaultPrimary sizeXL full rounded',
53
+ },
54
+ render: (args: InputPasswordProps) => {
55
+ return <InputPassword {...args} />
56
+ },
57
+ }
@@ -0,0 +1,45 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { InputPassword } from '../InputPassword'
4
+ import type { InputPasswordProps } from '../InputPassword.interface'
5
+
6
+ const meta = {
7
+ title: 'Atoms / InputPassword / Success',
8
+ component: InputPassword,
9
+ args: {
10
+ appearance: 'successPrimary sizeXL solid rounded',
11
+ },
12
+ parameters: {
13
+ design: {
14
+ type: 'figma',
15
+ url: 'https://www.figma.com/design/HmHn0BShJPXHU8SmuIP71M/ITCase---Atoms?node-id=2228-10428',
16
+ },
17
+ },
18
+ } satisfies Meta<typeof InputPassword>
19
+ export default meta
20
+
21
+ type Story = StoryObj<typeof meta>
22
+
23
+ export const Placeholder: Story = {
24
+ args: {
25
+ placeholder: 'Placeholder',
26
+ },
27
+ render: (args: InputPasswordProps) => {
28
+ return <InputPassword {...args} />
29
+ },
30
+ }
31
+
32
+ export const Filled: Story = {
33
+ args: {
34
+ value: 'password',
35
+ },
36
+ render: (args: InputPasswordProps) => {
37
+ return <InputPassword {...args} />
38
+ },
39
+ }
40
+
41
+ export const Blank: Story = {
42
+ render: (args: InputPasswordProps) => {
43
+ return <InputPassword {...args} />
44
+ },
45
+ }
@@ -0,0 +1,26 @@
1
+ import type { Meta, StoryObj } from '@storybook/react'
2
+
3
+ import { InputPassword } from '../InputPassword'
4
+ import type { InputPasswordProps } from '../InputPassword.interface'
5
+ import { inputPasswordStoryParameters } from './InputPasswordStories.config'
6
+
7
+ const meta = {
8
+ title: 'Atoms / InputPassword / Type',
9
+ component: InputPassword,
10
+ args: {
11
+ appearance: 'defaultPrimary sizeXL solid rounded',
12
+ placeholder: 'Placeholder',
13
+ value: 'someDifficultPassword',
14
+ },
15
+ parameters: inputPasswordStoryParameters,
16
+ } satisfies Meta<typeof InputPassword>
17
+
18
+ export default meta
19
+
20
+ type Story = StoryObj<typeof meta>
21
+
22
+ export const InputType: Story = {
23
+ render: (args: InputPasswordProps) => {
24
+ return <InputPassword {...args} />
25
+ },
26
+ }
@@ -0,0 +1,38 @@
1
+ /* eslint-disable react-hooks/rules-of-hooks */
2
+ import { useState } from 'react'
3
+
4
+ import type { Meta, StoryObj } from '@storybook/react'
5
+
6
+ import { InputPassword } from '../InputPassword'
7
+ import type { InputPasswordProps } from '../InputPassword.interface'
8
+ import { inputPasswordStoryParameters } from './InputPasswordStories.config'
9
+
10
+ const meta = {
11
+ title: 'Atoms / InputPassword / Value',
12
+ component: InputPassword,
13
+ args: {
14
+ appearance: 'defaultPrimary sizeXL solid rounded',
15
+ placeholder: 'Placeholder',
16
+ },
17
+ parameters: inputPasswordStoryParameters,
18
+ } satisfies Meta<typeof InputPassword>
19
+
20
+ export default meta
21
+
22
+ type Story = StoryObj<typeof meta>
23
+
24
+ export const Value: Story = {
25
+ render: (args: InputPasswordProps) => {
26
+ const [value, setValue] = useState('')
27
+
28
+ return (
29
+ <InputPassword
30
+ {...args}
31
+ value={value}
32
+ onChangeText={(nextValue) => {
33
+ setValue(nextValue)
34
+ }}
35
+ />
36
+ )
37
+ },
38
+ }
@@ -1,20 +1,34 @@
1
1
  import { labelAppearanceAccent } from './appearance/labelAccent'
2
2
  import { labelAppearanceDanger } from './appearance/labelDanger'
3
+ import { labelAppearanceDisabled } from './appearance/labelDisabled'
4
+ import { labelAppearanceError } from './appearance/labelError'
3
5
  import { labelAppearanceExtra } from './appearance/labelExtra'
4
6
  import { labelAppearanceGradient } from './appearance/labelGradient'
7
+ import { labelAppearanceInfo } from './appearance/labelInfo'
5
8
  import { labelAppearanceShape } from './appearance/labelShape'
6
9
  import { labelAppearanceSize } from './appearance/labelSize'
10
+ import { labelAppearanceSpecial } from './appearance/labelSpecial'
11
+ import { labelAppearanceStyle } from './appearance/labelStyle'
12
+ import { labelAppearanceSuccess } from './appearance/labelSuccess'
7
13
  import { labelAppearanceSurface } from './appearance/labelSurface'
14
+ import { labelAppearanceWarning } from './appearance/labelWarning'
8
15
  import type { LabelAppearance } from './Label.interface'
9
16
 
10
17
  const labelAppearance = {
11
18
  ...labelAppearanceShape,
12
19
  ...labelAppearanceSize,
20
+ ...labelAppearanceStyle,
13
21
  ...labelAppearanceGradient,
14
22
  ...labelAppearanceAccent,
15
23
  ...labelAppearanceDanger,
24
+ ...labelAppearanceDisabled,
25
+ ...labelAppearanceError,
16
26
  ...labelAppearanceExtra,
27
+ ...labelAppearanceInfo,
28
+ ...labelAppearanceSpecial,
29
+ ...labelAppearanceSuccess,
17
30
  ...labelAppearanceSurface,
31
+ ...labelAppearanceWarning,
18
32
  } satisfies LabelAppearance
19
33
 
20
34
  export { labelAppearance }
@@ -0,0 +1,7 @@
1
+ const LABEL_GRADIENT_COLORS = [
2
+ 'hsla(0, 100%, 44%, 1)',
3
+ 'hsla(27, 78%, 54%, 1)',
4
+ 'hsla(92, 56%, 38%, 1)',
5
+ ] as const
6
+
7
+ export { LABEL_GRADIENT_COLORS }
@@ -5,10 +5,15 @@ import type {
5
5
  AppearanceKeys,
6
6
  AppearanceKeysDefault,
7
7
  AppearancePartialRecord,
8
+ AppearanceRecord,
8
9
  AppearanceShapeKey,
9
10
  AppearanceSizeKey,
11
+ AppearanceStyleKey,
12
+ BorderColorProps,
10
13
  CompositeAppearanceKeys,
14
+ FillGradientProps,
11
15
  FillProps,
16
+ ShapeProps,
12
17
  SizeProps,
13
18
  TextColorProps,
14
19
  TextSizeProps,
@@ -16,11 +21,24 @@ import type {
16
21
  WidthProps,
17
22
  } from '@itcase/types-ui'
18
23
 
24
+ import type { ComponentGalleryArgs } from '../../storybook'
25
+ import type { IconProps, SvgIconComponent } from '../Icon/Icon.interface'
19
26
  import type { labelShapePropsType } from './styles/labelShape'
20
27
 
21
28
  interface LabelAppearanceProps {
22
- fill?: FillProps
29
+ borderColor?: BorderColorProps
30
+ fill?: FillGradientProps | FillProps
23
31
  gradient?: boolean
32
+ iconAfterFill?: IconProps['fill']
33
+ iconAfterFillIcon?: IconProps['iconFill']
34
+ iconAfterFillSize?: IconProps['fillSize']
35
+ iconAfterShape?: IconProps['shape']
36
+ iconAfterSize?: IconProps['iconSize']
37
+ iconBeforeFill?: IconProps['fill']
38
+ iconBeforeFillIcon?: IconProps['iconFill']
39
+ iconBeforeFillSize?: IconProps['fillSize']
40
+ iconBeforeShape?: IconProps['shape']
41
+ iconBeforeSize?: IconProps['iconSize']
24
42
  shape?: labelShapePropsType
25
43
  size?: SizeProps
26
44
  textColor?: TextColorProps
@@ -33,27 +51,61 @@ interface LabelAppearanceProps {
33
51
  type LabelAppearanceKey = AppearanceKeys | CompositeAppearanceKeys
34
52
  type LabelConfig = AppearanceConfig<AppearanceKeysDefault, LabelAppearanceProps>
35
53
  type LabelAppearance = LabelConfig['appearance']
54
+ type LabelAppearanceStyle = AppearanceRecord<
55
+ AppearanceStyleKey,
56
+ LabelAppearanceProps,
57
+ 'borderColor' | 'fill'
58
+ >
36
59
  type LabelAppearanceShape = Partial<
37
60
  Record<AppearanceShapeKey, Partial<Pick<LabelAppearanceProps, 'shape'>>>
38
61
  >
39
62
  type LabelAppearanceSize = AppearancePartialRecord<
40
63
  AppearanceSizeKey,
41
64
  LabelAppearanceProps,
42
- Extract<keyof LabelAppearanceProps, 'size' | 'textSize'>
65
+ Extract<
66
+ keyof LabelAppearanceProps,
67
+ | 'iconAfterFillSize'
68
+ | 'iconAfterSize'
69
+ | 'iconBeforeFillSize'
70
+ | 'iconBeforeSize'
71
+ | 'size'
72
+ | 'textSize'
73
+ >
43
74
  >
44
75
 
45
76
  interface LabelProps extends LabelAppearanceProps {
77
+ isDisabled?: boolean
78
+ isSkeleton?: boolean
46
79
  appearance?: LabelAppearanceKey
80
+ dataTestId?: string
81
+ iconAfter?: SvgIconComponent
82
+ iconBefore?: SvgIconComponent
47
83
  style?: StyleProp<ViewStyle>
48
84
  text?: string
49
85
  }
50
86
 
87
+ type LabelGalleryStory = ComponentGalleryArgs &
88
+ Pick<LabelProps, 'isDisabled' | 'isSkeleton' | 'text'> & {
89
+ iconAfter?: boolean
90
+ iconBefore?: boolean
91
+ }
92
+
93
+ type LabelStoryArgs = Omit<LabelProps, 'appearance'> & {
94
+ appearanceShape: string
95
+ appearanceSize: string
96
+ appearanceStyle: string
97
+ appearanceType: string
98
+ }
99
+
51
100
  export type {
52
101
  LabelAppearance,
53
102
  LabelAppearanceKey,
54
103
  LabelAppearanceProps,
55
104
  LabelAppearanceShape,
56
105
  LabelAppearanceSize,
106
+ LabelAppearanceStyle,
57
107
  LabelConfig,
108
+ LabelGalleryStory,
58
109
  LabelProps,
110
+ LabelStoryArgs,
59
111
  }
@@ -1,16 +1,19 @@
1
- import React, { useMemo } from 'react'
1
+ import { Fragment } from 'react'
2
2
  import { View } from 'react-native'
3
3
 
4
4
  import NativeLinearGradient from 'react-native-linear-gradient'
5
5
 
6
+ import {
7
+ useAppearanceConfig,
8
+ useDevicePropsGenerator,
9
+ } from '@itcase/ui-core/hooks'
10
+
6
11
  import { tokens } from '../../styles/tokens'
12
+ import { Icon } from '../Icon'
7
13
  import { Text } from '../Text'
8
14
  import { labelAppearance } from './Label.appearance'
9
- import type {
10
- LabelAppearanceProps,
11
- LabelConfig,
12
- LabelProps,
13
- } from './Label.interface'
15
+ import { LABEL_GRADIENT_COLORS } from './Label.constants'
16
+ import type { LabelConfig, LabelProps } from './Label.interface'
14
17
  import { styles } from './Label.styles'
15
18
 
16
19
  const labelConfig: LabelConfig = {
@@ -22,49 +25,105 @@ const labelConfig: LabelConfig = {
22
25
 
23
26
  labelConfig.setAppearance(labelAppearance)
24
27
 
25
- const Label: React.FC<LabelProps> = (props) => {
28
+ function Label(props: LabelProps) {
26
29
  const {
27
30
  appearance,
31
+ dataTestId,
28
32
  width,
29
- size,
30
- fill,
31
33
  text,
32
34
  textColor,
33
35
  textSize,
34
36
  textStyle,
35
37
  textWeight,
36
- gradient,
37
- shape,
38
+ iconAfter,
39
+ iconBefore,
38
40
  style,
41
+ isDisabled,
42
+ isSkeleton,
39
43
  } = props
40
44
 
41
- const appearanceConfig = useMemo(() => {
42
- if (!appearance || !labelConfig.appearance) {
43
- return undefined
44
- }
45
+ const appearanceConfig = useAppearanceConfig(
46
+ appearance,
47
+ labelConfig,
48
+ isDisabled,
49
+ )
50
+ const propsGenerator = useDevicePropsGenerator(props, appearanceConfig)
45
51
 
46
- return appearance
47
- .split(' ')
48
- .reduce<LabelAppearanceProps>((resultConfig, appearanceKey) => {
49
- return Object.assign(
50
- resultConfig,
51
- labelConfig.appearance?.[
52
- appearanceKey as keyof NonNullable<typeof labelConfig.appearance>
53
- ],
54
- )
55
- }, {})
56
- }, [appearance])
52
+ const {
53
+ size,
54
+ fill,
55
+ borderColor,
56
+ textColor: appearanceTextColor,
57
+ textSize: appearanceTextSize,
58
+ textWeight: appearanceTextWeight,
59
+ gradient,
60
+ iconAfterFill,
61
+ iconAfterFillIcon,
62
+ iconAfterFillSize,
63
+ iconAfterShape,
64
+ iconAfterSize,
65
+ iconBeforeFill,
66
+ iconBeforeFillIcon,
67
+ iconBeforeFillSize,
68
+ iconBeforeShape,
69
+ iconBeforeSize,
70
+ shape,
71
+ } = propsGenerator
57
72
 
58
- const sizeKey = size || appearanceConfig?.size
59
- const shapeKey = shape || appearanceConfig?.shape
60
- const fillKey = fill || appearanceConfig?.fill
61
- const textColorKey = textColor || appearanceConfig?.textColor
62
- const textSizeKey = textSize || appearanceConfig?.textSize
73
+ const textColorKey = textColor || appearanceTextColor
74
+ const textSizeKey = textSize || appearanceTextSize
75
+ const textWeightKey = textWeight || appearanceTextWeight
76
+ const hasGradient = Boolean(gradient) && !isSkeleton
63
77
  const isWhiteText =
64
78
  !textColor &&
65
- (Boolean(gradient || appearanceConfig?.gradient) ||
79
+ (hasGradient ||
66
80
  appearance === 'surfaceQuaternary' ||
67
- appearance?.includes('surfaceQuaternary'))
81
+ appearance?.includes('surfaceQuaternary') ||
82
+ appearance?.includes('gradientPrimary'))
83
+
84
+ const labelContent = !isSkeleton ? (
85
+ <Fragment>
86
+ {iconBefore && (
87
+ <Icon
88
+ fill={iconBeforeFill}
89
+ fillSize={iconBeforeFillSize}
90
+ iconFill={iconBeforeFillIcon}
91
+ iconSize={iconBeforeSize}
92
+ shape={iconBeforeShape}
93
+ SVGIcon={iconBefore}
94
+ />
95
+ )}
96
+ <Text
97
+ size={textSizeKey}
98
+ textColor={textColorKey}
99
+ style={[isWhiteText && styles.label__text_white, textStyle]}
100
+ weight={textWeightKey}
101
+ >
102
+ {text}
103
+ </Text>
104
+ {iconAfter && (
105
+ <Icon
106
+ fill={iconAfterFill}
107
+ fillSize={iconAfterFillSize}
108
+ iconFill={iconAfterFillIcon}
109
+ iconSize={iconAfterSize}
110
+ shape={iconAfterShape}
111
+ SVGIcon={iconAfter}
112
+ />
113
+ )}
114
+ </Fragment>
115
+ ) : null
116
+
117
+ const containerStyle = [
118
+ styles.label,
119
+ !hasGradient && !isSkeleton && fill && tokens[`fill_${fill}`],
120
+ isSkeleton && tokens['fill_surfaceSecondary'],
121
+ !isSkeleton && borderColor && tokens[`border_color_${borderColor}`],
122
+ shape && styles[`label_shape_${shape}`],
123
+ size && styles[`label_size_${size}`],
124
+ isSkeleton && styles.label_skeleton,
125
+ style,
126
+ ]
68
127
 
69
128
  return (
70
129
  <View
@@ -74,53 +133,23 @@ const Label: React.FC<LabelProps> = (props) => {
74
133
  : undefined
75
134
  }
76
135
  >
77
- {gradient || appearanceConfig?.gradient ? (
136
+ {hasGradient ? (
78
137
  <NativeLinearGradient
79
138
  end={{ x: 1, y: 0 }}
80
139
  start={{ x: 0, y: 0 }}
81
- colors={[
82
- 'hsla(0, 100%, 44%, 1)',
83
- 'hsla(27, 78%, 54%, 1)',
84
- 'hsla(92, 56%, 38%, 1)',
85
- ]}
86
- style={[
87
- styles.label,
88
- shapeKey && styles[`label_shape_${shapeKey}`],
89
- sizeKey && styles[`label_size_${sizeKey}`],
90
- style && style,
91
- ]}
140
+ colors={[...LABEL_GRADIENT_COLORS]}
141
+ style={containerStyle}
142
+ testID={dataTestId}
92
143
  >
93
- <Text
94
- size={textSizeKey}
95
- textColor={textColorKey}
96
- style={[isWhiteText && styles.label__text_white, textStyle]}
97
- weight={textWeight}
98
- >
99
- {text}
100
- </Text>
144
+ {labelContent}
101
145
  </NativeLinearGradient>
102
146
  ) : (
103
- <View
104
- style={[
105
- styles.label,
106
- fillKey && tokens[`fill_${fillKey}`],
107
- shapeKey && styles[`label_shape_${shapeKey}`],
108
- sizeKey && styles[`label_size_${sizeKey}`],
109
- style && style,
110
- ]}
111
- >
112
- <Text
113
- size={textSizeKey}
114
- textColor={textColorKey}
115
- style={[isWhiteText && styles.label__text_white, textStyle]}
116
- weight={textWeight}
117
- >
118
- {text}
119
- </Text>
147
+ <View style={containerStyle} testID={dataTestId}>
148
+ {labelContent}
120
149
  </View>
121
150
  )}
122
151
  </View>
123
152
  )
124
153
  }
125
154
 
126
- export { Label }
155
+ export { Label, labelConfig }
@@ -1,8 +1,29 @@
1
1
  import type { LabelAppearance } from '../Label.interface'
2
2
 
3
3
  const labelAppearanceAccent = {
4
+ accentMutedPrimary: {
5
+ fill: 'accentTertiary',
6
+ borderColor: 'accentBorderSecondary',
7
+ textColor: 'accentTextQuaternary',
8
+ iconAfterFillIcon: 'accentItemQuaternary',
9
+ iconBeforeFillIcon: 'accentItemQuaternary',
10
+ },
4
11
  accentPrimary: {
5
12
  fill: 'accentPrimary',
13
+ borderColor: 'accentBorderSecondary',
14
+ textColor: 'accentTextPrimary',
15
+ iconAfterFillIcon: 'accentItemPrimary',
16
+ iconBeforeFillIcon: 'accentItemPrimary',
17
+ },
18
+ accentSecondary: {
19
+ fill: 'accentSecondary',
20
+ borderColor: 'accentBorderQuaternary',
21
+ textColor: 'accentTextQuaternary',
22
+ iconAfterFillIcon: 'accentItemQuaternary',
23
+ iconBeforeFillIcon: 'accentItemQuaternary',
24
+ },
25
+ accentTertiary: {
26
+ fill: 'accentTertiary',
6
27
  textColor: 'accentTextPrimary',
7
28
  },
8
29
  } satisfies LabelAppearance
@@ -1,9 +1,19 @@
1
1
  import type { LabelAppearance } from '../Label.interface'
2
2
 
3
3
  const labelAppearanceDanger = {
4
+ dangerMutedPrimary: {
5
+ fill: 'dangerTertiary',
6
+ borderColor: 'dangerBorderQuaternary',
7
+ textColor: 'dangerTextQuaternary',
8
+ iconAfterFillIcon: 'dangerItemQuaternary',
9
+ iconBeforeFillIcon: 'dangerItemQuaternary',
10
+ },
4
11
  dangerPrimary: {
5
12
  fill: 'dangerPrimary',
13
+ borderColor: 'dangerBorderSecondary',
6
14
  textColor: 'dangerTextPrimary',
15
+ iconAfterFillIcon: 'dangerItemPrimary',
16
+ iconBeforeFillIcon: 'dangerItemPrimary',
7
17
  },
8
18
  } satisfies LabelAppearance
9
19
 
@@ -0,0 +1,13 @@
1
+ import type { LabelAppearance } from '../Label.interface'
2
+
3
+ const labelAppearanceDisabled = {
4
+ disabledPrimary: {
5
+ fill: 'disabledPrimary',
6
+ borderColor: 'disabledBorderPrimary',
7
+ textColor: 'disabledTextPrimary',
8
+ iconAfterFillIcon: 'disabledItemPrimary',
9
+ iconBeforeFillIcon: 'disabledItemPrimary',
10
+ },
11
+ } satisfies LabelAppearance
12
+
13
+ export { labelAppearanceDisabled }
@@ -0,0 +1,20 @@
1
+ import type { LabelAppearance } from '../Label.interface'
2
+
3
+ const labelAppearanceError = {
4
+ errorMutedPrimary: {
5
+ fill: 'errorTertiary',
6
+ borderColor: 'errorBorderQuaternary',
7
+ textColor: 'errorTextQuaternary',
8
+ iconAfterFillIcon: 'errorItemQuaternary',
9
+ iconBeforeFillIcon: 'errorItemQuaternary',
10
+ },
11
+ errorPrimary: {
12
+ fill: 'errorPrimary',
13
+ borderColor: 'errorBorderQuaternary',
14
+ textColor: 'errorTextPrimary',
15
+ iconAfterFillIcon: 'errorItemPrimary',
16
+ iconBeforeFillIcon: 'errorItemPrimary',
17
+ },
18
+ } satisfies LabelAppearance
19
+
20
+ export { labelAppearanceError }
@@ -1,9 +1,19 @@
1
1
  import type { LabelAppearance } from '../Label.interface'
2
2
 
3
3
  const labelAppearanceExtra = {
4
+ extraMutedPrimary: {
5
+ fill: 'extraTertiary',
6
+ borderColor: 'extraBorderSecondary',
7
+ textColor: 'extraTextQuaternary',
8
+ iconAfterFillIcon: 'extraItemQuaternary',
9
+ iconBeforeFillIcon: 'extraItemQuaternary',
10
+ },
4
11
  extraPrimary: {
5
- fill: 'specialPrimary',
6
- textColor: 'specialTextPrimary',
12
+ fill: 'extraPrimary',
13
+ borderColor: 'extraBorderSecondary',
14
+ textColor: 'extraTextPrimary',
15
+ iconAfterFillIcon: 'extraItemPrimary',
16
+ iconBeforeFillIcon: 'extraItemPrimary',
7
17
  },
8
18
  } satisfies LabelAppearance
9
19
 
@@ -2,8 +2,12 @@ import type { LabelAppearance } from '../Label.interface'
2
2
 
3
3
  const labelAppearanceGradient = {
4
4
  gradientPrimary: {
5
- textColor: 'accentTextPrimary',
5
+ fill: 'gradientPrimaryDiagonal',
6
+ borderColor: 'surfaceBorderPrimary',
7
+ textColor: 'white',
6
8
  gradient: true,
9
+ iconAfterFillIcon: 'white',
10
+ iconBeforeFillIcon: 'white',
7
11
  },
8
12
  } satisfies LabelAppearance
9
13
 
@@ -0,0 +1,20 @@
1
+ import type { LabelAppearance } from '../Label.interface'
2
+
3
+ const labelAppearanceInfo = {
4
+ infoMutedPrimary: {
5
+ fill: 'infoTertiary',
6
+ borderColor: 'infoBorderSecondary',
7
+ textColor: 'infoTextSecondary',
8
+ iconAfterFillIcon: 'infoItemSecondary',
9
+ iconBeforeFillIcon: 'infoItemSecondary',
10
+ },
11
+ infoPrimary: {
12
+ fill: 'infoPrimary',
13
+ borderColor: 'infoBorderSecondary',
14
+ textColor: 'infoTextPrimary',
15
+ iconAfterFillIcon: 'infoItemPrimary',
16
+ iconBeforeFillIcon: 'infoItemPrimary',
17
+ },
18
+ } satisfies LabelAppearance
19
+
20
+ export { labelAppearanceInfo }