@itcase/ui 1.3.30 → 1.3.32

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 (427) hide show
  1. package/dist/Badge-BX4N91_C.js +250 -0
  2. package/dist/Badge-CGHosmYx.js +246 -0
  3. package/dist/Button-D1m2MxZA.js +291 -0
  4. package/dist/Button-DZ3z7f-A.js +287 -0
  5. package/dist/Divider-BQcBkzt1.js +30 -0
  6. package/dist/Divider-ImOOytuN.js +34 -0
  7. package/dist/{DropdownItem-FNOztnTT.js → DropdownItem-BiiEhR49.js} +12 -16
  8. package/dist/{DropdownItem-Bq-oPnWX.js → DropdownItem-g5jWbyJy.js} +12 -16
  9. package/dist/{Group-c3ZkPu8e.js → Group-BKJmVwPZ.js} +4 -4
  10. package/dist/{Group-BY8OkVsS.js → Group-Bkz3RO18.js} +4 -4
  11. package/dist/{Icon-pUvizy3W.js → Icon-GVGrUu_Z.js} +6 -6
  12. package/dist/{Icon-BdHr6E6M.js → Icon-htF_V35Y.js} +7 -7
  13. package/dist/{Image-BbBG_UGI.js → Image-BEGwuGBM.js} +4 -4
  14. package/dist/{Image-D-QHhsrC.js → Image-DWfyapuD.js} +4 -4
  15. package/dist/{Input-BrV5_NoV.js → Input-COFdaiTe.js} +3 -3
  16. package/dist/{Input-ffioh1sj.js → Input-Dwvk-poq.js} +3 -3
  17. package/dist/Label-Dpeq55TV.js +233 -0
  18. package/dist/Label-XTFwl1aq.js +237 -0
  19. package/dist/{Link-CxWmYMyL.js → Link-B38Hn4G2.js} +5 -5
  20. package/dist/{Link-DN2LhPjD.js → Link-BhJ5BdyS.js} +6 -6
  21. package/dist/Loader-CBEbIRnd.js +69 -0
  22. package/dist/Loader-CsPvc-9g.js +65 -0
  23. package/dist/{MenuItem-CLDNk2l8.js → MenuItem-Cjlnmfwh.js} +6 -6
  24. package/dist/{MenuItem-amqx61Y0.js → MenuItem-PJkuGghn.js} +6 -6
  25. package/dist/{Overlay-B9nOIfLe.js → Overlay-BKh07Vb2.js} +4 -4
  26. package/dist/{Overlay-Yf9EEclM.js → Overlay-DiCjwUv4.js} +4 -4
  27. package/dist/{Text-Beslj4Ns.js → Text-C49zj3jO.js} +7 -7
  28. package/dist/{Text-JayJa3hj.js → Text-C6NSmetx.js} +7 -7
  29. package/dist/{Title-BfKF5WvZ.js → Title-BWWyRwLY.js} +4 -4
  30. package/dist/{Title-C7Qv9WfS.js → Title-Dck3eHNM.js} +4 -4
  31. package/dist/{Tooltip-AodzD-7D.js → Tooltip-BYgzNVYI.js} +18 -14
  32. package/dist/{Tooltip-BDEyAnd-.js → Tooltip-DpBQQoNo.js} +18 -14
  33. package/dist/cjs/components/Accordion.js +15 -15
  34. package/dist/cjs/components/Avatar.js +22 -20
  35. package/dist/cjs/components/Badge.js +12 -7
  36. package/dist/cjs/components/Breadcrumbs.js +16 -21
  37. package/dist/cjs/components/Button.js +13 -13
  38. package/dist/cjs/components/Card.js +9 -9
  39. package/dist/cjs/components/Cell.js +32 -17
  40. package/dist/cjs/components/Checkbox.js +13 -13
  41. package/dist/cjs/components/Checkmark.js +25 -23
  42. package/dist/cjs/components/Chips.js +22 -17
  43. package/dist/cjs/components/Choice.js +13 -13
  44. package/dist/cjs/components/Code.js +9 -19
  45. package/dist/cjs/components/CookiesWarning.js +15 -15
  46. package/dist/cjs/components/DadataHintField.js +4 -3
  47. package/dist/cjs/components/DatePicker.js +43 -19
  48. package/dist/cjs/components/Divider.js +7 -7
  49. package/dist/cjs/components/Dot.js +7 -7
  50. package/dist/cjs/components/Dropdown.js +9 -9
  51. package/dist/cjs/components/Flex.js +12 -11
  52. package/dist/cjs/components/Grid.js +12 -12
  53. package/dist/cjs/components/Group.js +6 -6
  54. package/dist/cjs/components/HTMLContent.js +7 -7
  55. package/dist/cjs/components/HeroTitle.js +9 -9
  56. package/dist/cjs/components/Icon.js +10 -10
  57. package/dist/cjs/components/Image.js +6 -6
  58. package/dist/cjs/components/Input.js +4 -3
  59. package/dist/cjs/components/InputMask.js +16 -15
  60. package/dist/cjs/components/InputPassword.js +12 -16
  61. package/dist/cjs/components/Label.js +10 -10
  62. package/dist/cjs/components/Link.js +6 -6
  63. package/dist/cjs/components/List.js +13 -12
  64. package/dist/cjs/components/Loader.js +8 -8
  65. package/dist/cjs/components/Logo.js +17 -15
  66. package/dist/cjs/components/Menu.js +11 -15
  67. package/dist/cjs/components/MenuItem.js +8 -8
  68. package/dist/cjs/components/Modal.js +11 -16
  69. package/dist/cjs/components/ModalSheetBottom.js +3 -3
  70. package/dist/cjs/components/Notification.js +8 -8
  71. package/dist/cjs/components/Overlay.js +6 -6
  72. package/dist/cjs/components/Pagination.js +14 -14
  73. package/dist/cjs/components/Panel.js +9 -9
  74. package/dist/cjs/components/Radio.js +16 -19
  75. package/dist/cjs/components/RangeSlider.js +7 -7
  76. package/dist/cjs/components/Response.js +15 -15
  77. package/dist/cjs/components/SVGContent.js +7 -7
  78. package/dist/cjs/components/ScrollOnDrag.js +8 -11
  79. package/dist/cjs/components/ScrollToView.js +9 -9
  80. package/dist/cjs/components/Search.js +16 -19
  81. package/dist/cjs/components/Segmented.js +8 -8
  82. package/dist/cjs/components/Select.js +34 -34
  83. package/dist/cjs/components/Swiper.js +11 -14
  84. package/dist/cjs/components/Switch.js +1 -1
  85. package/dist/cjs/components/Tab.js +17 -13
  86. package/dist/cjs/components/Text.js +6 -6
  87. package/dist/cjs/components/Textarea.js +8 -11
  88. package/dist/cjs/components/Tile.js +24 -20
  89. package/dist/cjs/components/Title.js +8 -8
  90. package/dist/cjs/components/Tooltip.js +9 -9
  91. package/dist/cjs/components/Video.js +4 -3
  92. package/dist/cjs/context/UIContext.js +48 -17
  93. package/dist/cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +120 -0
  94. package/dist/cjs/hooks/useDevicePropsGenerator.js +17 -0
  95. package/dist/cjs/hooks/useDeviceTargetClass.js +8 -3
  96. package/dist/cjs/hooks/useMediaQueries/useMediaQueries.js +129 -0
  97. package/dist/cjs/hooks/useMediaQueries.js +4 -122
  98. package/dist/cjs/hooks/{styleAttributes.js → useStyles/styleAttributes.js} +8 -1
  99. package/dist/cjs/hooks/useStyles/useStyles.js +190 -0
  100. package/dist/cjs/hooks/useStyles.js +10 -174
  101. package/dist/components/Accordion.js +16 -16
  102. package/dist/components/Avatar.js +22 -20
  103. package/dist/components/Badge.js +13 -8
  104. package/dist/components/Breadcrumbs.js +17 -22
  105. package/dist/components/Button.js +13 -13
  106. package/dist/components/Card.js +10 -10
  107. package/dist/components/Cell.js +33 -18
  108. package/dist/components/Checkbox.js +14 -14
  109. package/dist/components/Checkmark.js +25 -23
  110. package/dist/components/Chips.js +22 -17
  111. package/dist/components/Choice.js +14 -14
  112. package/dist/components/Code.js +10 -20
  113. package/dist/components/CookiesWarning.js +16 -16
  114. package/dist/components/DadataHintField.js +5 -4
  115. package/dist/components/DatePicker.js +44 -20
  116. package/dist/components/Divider.js +7 -7
  117. package/dist/components/Dot.js +8 -8
  118. package/dist/components/Dropdown.js +10 -10
  119. package/dist/components/Flex.js +13 -12
  120. package/dist/components/Grid.js +13 -13
  121. package/dist/components/Group.js +7 -7
  122. package/dist/components/HTMLContent.js +8 -8
  123. package/dist/components/HeroTitle.js +9 -9
  124. package/dist/components/Icon.js +11 -11
  125. package/dist/components/Image.js +7 -7
  126. package/dist/components/Input.js +5 -4
  127. package/dist/components/InputMask.js +17 -16
  128. package/dist/components/InputPassword.js +13 -17
  129. package/dist/components/Label.js +10 -10
  130. package/dist/components/Link.js +7 -7
  131. package/dist/components/List.js +14 -13
  132. package/dist/components/Loader.js +8 -8
  133. package/dist/components/Logo.js +17 -15
  134. package/dist/components/Menu.js +12 -16
  135. package/dist/components/MenuItem.js +9 -9
  136. package/dist/components/Modal.js +12 -17
  137. package/dist/components/ModalSheetBottom.js +4 -4
  138. package/dist/components/Notification.js +9 -9
  139. package/dist/components/Overlay.js +7 -7
  140. package/dist/components/Pagination.js +15 -15
  141. package/dist/components/Panel.js +10 -10
  142. package/dist/components/Radio.js +17 -20
  143. package/dist/components/RangeSlider.js +8 -8
  144. package/dist/components/Response.js +16 -16
  145. package/dist/components/SVGContent.js +8 -8
  146. package/dist/components/ScrollOnDrag.js +9 -12
  147. package/dist/components/ScrollToView.js +10 -10
  148. package/dist/components/Search.js +17 -20
  149. package/dist/components/Segmented.js +9 -9
  150. package/dist/components/Select.js +35 -35
  151. package/dist/components/Swiper.js +12 -15
  152. package/dist/components/Switch.js +1 -1
  153. package/dist/components/Tab.js +18 -14
  154. package/dist/components/Text.js +7 -7
  155. package/dist/components/Textarea.js +9 -12
  156. package/dist/components/Tile.js +24 -20
  157. package/dist/components/Title.js +8 -8
  158. package/dist/components/Tooltip.js +9 -9
  159. package/dist/components/Video.js +4 -3
  160. package/dist/context/Notifications.js +1 -1
  161. package/dist/context/UIContext.js +50 -18
  162. package/dist/css/components/Avatar/Avatar.css +8 -8
  163. package/dist/css/components/Badge/Badge.css +48 -26
  164. package/dist/css/components/Badge/Badge.tokens.css +48 -18
  165. package/dist/css/components/Button/Button.css +67 -303
  166. package/dist/css/components/Button/Button.tokens.css +37 -115
  167. package/dist/css/components/Cell/Cell.css +2 -2
  168. package/dist/css/components/Checkbox/Checkbox.css +6 -4
  169. package/dist/css/components/Checkmark/Checkmark.css +11 -10
  170. package/dist/css/components/Checkmark/Checkmark.tokens.css +20 -14
  171. package/dist/css/components/Chips/Chips.css +0 -10
  172. package/dist/css/components/DadataHintField/DadataHintField.css +0 -8
  173. package/dist/css/components/DadataHintField/DadataHintField.tokens.css +7 -2
  174. package/dist/css/components/DatePicker/DatePicker.css +102 -69
  175. package/dist/css/components/DatePicker/DatePicker.tokens.css +7 -2
  176. package/dist/css/components/Divider/Divider.css +0 -12
  177. package/dist/css/components/Divider/Divider.tokens.css +12 -0
  178. package/dist/css/components/Flex/Flex.css +0 -1
  179. package/dist/css/components/Grid/Grid.css +1 -5
  180. package/dist/css/components/Group/Group.css +2 -0
  181. package/dist/css/components/HeroTitle/HeroTitle.css +2 -2
  182. package/dist/css/components/Icon/Icon.css +13 -14
  183. package/dist/css/components/Icon/Icon.tokens.css +2 -1
  184. package/dist/css/components/Image/Image.css +3 -3
  185. package/dist/css/components/Label/Label.css +2 -2
  186. package/dist/css/components/Loader/Loader.css +12 -5
  187. package/dist/css/components/Logo/Logo.css +3 -19
  188. package/dist/css/components/Menu/Menu.css +9 -1
  189. package/dist/css/components/MenuItem/MenuItem.css +0 -10
  190. package/dist/css/components/MenuItem/MenuItem.tokens.css +9 -1
  191. package/dist/css/components/Radio/Radio.css +0 -3
  192. package/dist/css/components/Radio/Radio.tokens.css +2 -1
  193. package/dist/css/components/ScrollToView/ScrollToView.css +4 -4
  194. package/dist/css/components/Swiper/Swiper.css +2 -3
  195. package/dist/css/components/Switch/Switch.css +0 -7
  196. package/dist/css/components/Text/Text.css +2 -2
  197. package/dist/css/components/Title/Title.css +2 -2
  198. package/dist/css/components/Tooltip/Tooltip.css +15 -21
  199. package/dist/css/components/Tooltip/Tooltip.tokens.css +13 -0
  200. package/dist/css/styles/direction/direction.css +2 -0
  201. package/dist/css/styles/fill/fill.css +14 -9
  202. package/dist/css/styles/fill/fill_active.css +6 -3
  203. package/dist/css/styles/fill/fill_active_hover.css +8 -6
  204. package/dist/css/styles/fill/fill_disabled.css +6 -3
  205. package/dist/css/styles/fill/fill_hover.css +6 -3
  206. package/dist/css/styles/shape-strength/shape-strength.css +22 -0
  207. package/dist/css/styles/svg-color/svg_fill.css +27 -17
  208. package/dist/css/styles/svg-color/svg_fill_hover.css +12 -10
  209. package/dist/css/styles/svg-color/svg_path_fill.css +13 -9
  210. package/dist/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js +118 -0
  211. package/dist/hooks/useDevicePropsGenerator.js +11 -0
  212. package/dist/hooks/useDeviceTargetClass.js +8 -3
  213. package/dist/hooks/useMediaQueries/useMediaQueries.js +127 -0
  214. package/dist/hooks/useMediaQueries.js +3 -125
  215. package/dist/hooks/{styleAttributes.js → useStyles/styleAttributes.js} +8 -1
  216. package/dist/hooks/useStyles/useStyles.js +188 -0
  217. package/dist/hooks/useStyles.js +9 -177
  218. package/dist/stories/AlignContent.mdx +1 -1
  219. package/dist/stories/AlignItems.mdx +1 -1
  220. package/dist/stories/AlignSelf.mdx +1 -1
  221. package/dist/stories/Appearance.mdx +1 -1
  222. package/dist/stories/Avatar.mdx +1 -1
  223. package/dist/stories/Checkbox.mdx +1 -1
  224. package/dist/stories/Checkmark.mdx +7 -3
  225. package/dist/stories/Chips.mdx +1 -1
  226. package/dist/stories/Choice.mdx +1 -1
  227. package/dist/stories/Code.mdx +1 -1
  228. package/dist/stories/Columns.mdx +1 -1
  229. package/dist/stories/Components.mdx +197 -0
  230. package/dist/stories/DatePicker.mdx +1 -1
  231. package/dist/stories/Dev.mdx +1 -1
  232. package/dist/stories/DevMode.mdx +1 -1
  233. package/dist/stories/Direction.mdx +1 -1
  234. package/dist/stories/Divider.mdx +1 -1
  235. package/dist/stories/Dot.mdx +1 -1
  236. package/dist/stories/Drawer.mdx +1 -1
  237. package/dist/stories/Dropdown.mdx +2 -2
  238. package/dist/stories/DropdownItem.mdx +1 -1
  239. package/dist/stories/Group.mdx +1 -1
  240. package/dist/stories/Grow.mdx +1 -1
  241. package/dist/stories/HeroTitle.mdx +1 -1
  242. package/dist/stories/Icon.mdx +1 -1
  243. package/dist/stories/Image.mdx +1 -1
  244. package/dist/stories/Input.mdx +1 -1
  245. package/dist/stories/InputPassword.mdx +1 -1
  246. package/dist/stories/JustifyContent.mdx +1 -1
  247. package/dist/stories/Label.mdx +1 -1
  248. package/dist/stories/Loader.mdx +1 -1
  249. package/dist/stories/Logo.mdx +1 -1
  250. package/dist/stories/MenuItem.mdx +1 -1
  251. package/dist/stories/Message.mdx +1 -1
  252. package/dist/stories/Notification.mdx +1 -1
  253. package/dist/stories/Order.mdx +1 -1
  254. package/dist/stories/Overview.mdx +1 -1
  255. package/dist/stories/Pagination.mdx +1 -1
  256. package/dist/stories/Playground.mdx +1 -1
  257. package/dist/stories/Radio.mdx +1 -1
  258. package/dist/stories/Response.mdx +1 -1
  259. package/dist/stories/SearchInput.mdx +1 -1
  260. package/dist/stories/Segmented.mdx +1 -1
  261. package/dist/stories/Size.mdx +1 -1
  262. package/dist/stories/Skeleton.mdx +1 -1
  263. package/dist/stories/State.mdx +1 -1
  264. package/dist/stories/Switch.mdx +1 -1
  265. package/dist/stories/Text.mdx +1 -1
  266. package/dist/stories/Textarea.mdx +1 -1
  267. package/dist/stories/Tile.mdx +1 -1
  268. package/dist/stories/Title.mdx +1 -1
  269. package/dist/stories/Tooltip.mdx +1 -1
  270. package/dist/stories/WithTooltip.mdx +1 -1
  271. package/dist/stories/Wrap.mdx +1 -1
  272. package/dist/{tslib.es6-Bwu1Cn-t.js → tslib.es6-5FtW-kfi.js} +1 -1
  273. package/dist/types/appearance/defaultAppearance.d.ts +33 -0
  274. package/dist/types/appearance/index.d.ts +3 -0
  275. package/dist/types/appearance/styleAppearance.d.ts +14 -0
  276. package/dist/types/components/Accordion/Accordion.interface.d.ts +1 -1
  277. package/dist/types/components/Avatar/Avatar.interface.d.ts +1 -1
  278. package/dist/types/components/Badge/Badge.d.ts +0 -6
  279. package/dist/types/components/Badge/Badge.interface.d.ts +1 -1
  280. package/dist/types/components/Badge/appearance/badgeAccent.d.ts +39 -0
  281. package/dist/types/components/Badge/appearance/badgeDanger.d.ts +11 -0
  282. package/dist/types/components/Badge/appearance/badgeDisabled.d.ts +10 -0
  283. package/dist/types/components/Badge/appearance/badgeError.d.ts +12 -0
  284. package/dist/types/components/Badge/appearance/badgeInfo.d.ts +18 -0
  285. package/dist/types/components/Badge/appearance/badgePrimary.d.ts +11 -0
  286. package/dist/types/components/Badge/appearance/badgeSecondary.d.ts +11 -0
  287. package/dist/types/components/Badge/appearance/badgeSize.d.ts +32 -0
  288. package/dist/types/components/Badge/appearance/badgeStyle.d.ts +16 -0
  289. package/dist/types/components/Badge/appearance/badgeSuccess.d.ts +11 -0
  290. package/dist/types/components/Badge/appearance/badgeSurface.d.ts +29 -0
  291. package/dist/types/components/Badge/appearance/badgeWarning.d.ts +11 -0
  292. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -5
  293. package/dist/types/components/Breadcrumbs/Breadcrumbs.interface.d.ts +1 -1
  294. package/dist/types/components/Button/Button.interface.d.ts +1 -1
  295. package/dist/types/components/Button/appearance/buttonAccent.d.ts +50 -0
  296. package/dist/types/components/Button/appearance/buttonDanger.d.ts +11 -0
  297. package/dist/types/components/Button/appearance/buttonError.d.ts +11 -0
  298. package/dist/types/components/Button/appearance/buttonInfo.d.ts +21 -0
  299. package/dist/types/components/Button/appearance/buttonPrimary.d.ts +8 -0
  300. package/dist/types/components/Button/appearance/buttonSecondary.d.ts +8 -0
  301. package/dist/types/components/Button/appearance/buttonSize.d.ts +59 -0
  302. package/dist/types/components/Button/appearance/buttonStyle.d.ts +16 -0
  303. package/dist/types/components/Button/appearance/buttonSuccess.d.ts +11 -0
  304. package/dist/types/components/Button/appearance/buttonSurface.d.ts +25 -0
  305. package/dist/types/components/Button/appearance/buttonWarning.d.ts +11 -0
  306. package/dist/types/components/Button/stories/args.d.ts +49 -49
  307. package/dist/types/components/Card/Card.interface.d.ts +1 -1
  308. package/dist/types/components/Cell/Cell.interface.d.ts +1 -1
  309. package/dist/types/components/Checkbox/Checkbox.interface.d.ts +1 -1
  310. package/dist/types/components/Checkmark/Checkmark.interface.d.ts +1 -1
  311. package/dist/types/components/Chips/Chips.interface.d.ts +1 -1
  312. package/dist/types/components/Chips/stories/args.d.ts +2 -2
  313. package/dist/types/components/Choice/Choice.interface.d.ts +1 -1
  314. package/dist/types/components/Code/Code.d.ts +0 -15
  315. package/dist/types/components/Code/Code.interface.d.ts +1 -1
  316. package/dist/types/components/DadataHintField/DadataHintField.interface.d.ts +1 -1
  317. package/dist/types/components/Divider/Divider.d.ts +0 -5
  318. package/dist/types/components/Divider/Divider.interface.d.ts +1 -1
  319. package/dist/types/components/Dot/Dot.interface.d.ts +1 -1
  320. package/dist/types/components/Drawer/Drawer.interface.d.ts +1 -1
  321. package/dist/types/components/Dropdown/Dropdown.interface.d.ts +1 -1
  322. package/dist/types/components/Dropdown/DropdownItem.d.ts +0 -7
  323. package/dist/types/components/Flex/Flex.interface.d.ts +1 -1
  324. package/dist/types/components/Flex/stories/args.d.ts +1 -1
  325. package/dist/types/components/Grid/Grid.interface.d.ts +1 -1
  326. package/dist/types/components/Grid/stories/args.d.ts +2 -2
  327. package/dist/types/components/Group/Group.interface.d.ts +1 -1
  328. package/dist/types/components/Group/stories/args.d.ts +2 -2
  329. package/dist/types/components/HTMLContent/HTMLContent.interface.d.ts +1 -1
  330. package/dist/types/components/HeroTitle/HeroTitle.interface.d.ts +1 -1
  331. package/dist/types/components/Icon/Icon.interface.d.ts +1 -1
  332. package/dist/types/components/Image/Image.interface.d.ts +1 -1
  333. package/dist/types/components/Input/Input.interface.d.ts +1 -1
  334. package/dist/types/components/InputMask/Input.interface.d.ts +1 -1
  335. package/dist/types/components/InputPassword/InputPassword.d.ts +0 -6
  336. package/dist/types/components/InputPassword/InputPassword.interface.d.ts +1 -1
  337. package/dist/types/components/Label/Label.interface.d.ts +1 -1
  338. package/dist/types/components/Label/appearance/labelAccent.d.ts +13 -0
  339. package/dist/types/components/Label/appearance/labelDanger.d.ts +11 -0
  340. package/dist/types/components/Label/appearance/labelError.d.ts +11 -0
  341. package/dist/types/components/Label/appearance/labelGradient.d.ts +11 -0
  342. package/dist/types/components/Label/appearance/labelInfo.d.ts +21 -0
  343. package/dist/types/components/Label/appearance/labelPrimary.d.ts +8 -0
  344. package/dist/types/components/Label/appearance/labelSecondary.d.ts +8 -0
  345. package/dist/types/components/Label/appearance/labelSize.d.ts +59 -0
  346. package/dist/types/components/Label/appearance/labelStyle.d.ts +16 -0
  347. package/dist/types/components/Label/appearance/labelSuccess.d.ts +11 -0
  348. package/dist/types/components/Label/appearance/labelSurface.d.ts +24 -0
  349. package/dist/types/components/Label/appearance/labelWarning.d.ts +11 -0
  350. package/dist/types/components/Link/Link.interface.d.ts +1 -1
  351. package/dist/types/components/List/List.interface.d.ts +1 -1
  352. package/dist/types/components/Loader/Loader.interface.d.ts +1 -1
  353. package/dist/types/components/Loader/appearance/loaderAccent.d.ts +7 -0
  354. package/dist/types/components/Loader/appearance/loaderPrimary.d.ts +7 -0
  355. package/dist/types/components/Loader/appearance/loaderSecondary.d.ts +7 -0
  356. package/dist/types/components/Loader/appearance/loaderSurface.d.ts +15 -0
  357. package/dist/types/components/Logo/Logo.interface.d.ts +1 -1
  358. package/dist/types/components/Menu/Menu.d.ts +0 -5
  359. package/dist/types/components/Menu/Menu.interface.d.ts +1 -1
  360. package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -1
  361. package/dist/types/components/Modal/Modal.interface.d.ts +1 -1
  362. package/dist/types/components/Notification/Notification.interface.d.ts +1 -1
  363. package/dist/types/components/Overlay/Overlay.interface.d.ts +1 -1
  364. package/dist/types/components/Pagination/Pagination.interface.d.ts +1 -1
  365. package/dist/types/components/Panel/Panel.interface.d.ts +1 -1
  366. package/dist/types/components/Radio/Radio.d.ts +0 -5
  367. package/dist/types/components/Radio/Radio.interface.d.ts +1 -1
  368. package/dist/types/components/RangeSlider/RangeSlider.interface.d.ts +1 -1
  369. package/dist/types/components/Response/Response.interface.d.ts +1 -1
  370. package/dist/types/components/Response/stories/args.d.ts +4 -4
  371. package/dist/types/components/SVGContent/SVGContent.interface.d.ts +1 -1
  372. package/dist/types/components/ScrollOnDrag/ScrollOnDrag.d.ts +0 -5
  373. package/dist/types/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +1 -1
  374. package/dist/types/components/Scrollbar/Scrollbar.interface.d.ts +1 -1
  375. package/dist/types/components/Search/Search.interface.d.ts +1 -1
  376. package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -1
  377. package/dist/types/components/Swiper/Swiper.d.ts +0 -5
  378. package/dist/types/components/Swiper/Swiper.interface.d.ts +1 -1
  379. package/dist/types/components/Switch/Switch.interface.d.ts +1 -1
  380. package/dist/types/components/Tab/Tab.interface.d.ts +1 -1
  381. package/dist/types/components/Tab/stories/args.d.ts +3 -3
  382. package/dist/types/components/Text/Text.interface.d.ts +1 -1
  383. package/dist/types/components/Textarea/Textarea.d.ts +0 -5
  384. package/dist/types/components/Textarea/Textarea.interface.d.ts +1 -1
  385. package/dist/types/components/Tile/Tile.d.ts +0 -5
  386. package/dist/types/components/Tile/Tile.interface.d.ts +1 -1
  387. package/dist/types/components/Title/Title.interface.d.ts +1 -1
  388. package/dist/types/components/Tooltip/Tooltip.interface.d.ts +1 -1
  389. package/dist/types/components/Video/Video.interface.d.ts +1 -1
  390. package/dist/types/context/UIContext.d.ts +8 -12
  391. package/dist/types/hooks/useDevicePropsGenerator/index.d.ts +1 -0
  392. package/dist/types/hooks/useDevicePropsGenerator/useDevicePropsGenerator.d.ts +3 -0
  393. package/dist/types/hooks/{useDeviceTargetClassGenerator.interface.d.ts → useDevicePropsGenerator/useDevicePropsGenerator.interface.d.ts} +2 -2
  394. package/dist/types/hooks/useMediaQueries/index.d.ts +1 -0
  395. package/dist/types/hooks/useStyles/index.d.ts +1 -0
  396. package/dist/types/hooks/useStyles/styleAttributes.d.ts +4 -0
  397. package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
  398. package/dist/types/types/componentProps/borderColor.d.ts +1 -1
  399. package/dist/types/types/componentProps/fill.d.ts +1 -1
  400. package/package.json +15 -12
  401. package/dist/Badge-5gtVywXB.js +0 -111
  402. package/dist/Badge-DhOJoJgc.js +0 -115
  403. package/dist/Button-BSnodY9v.js +0 -103
  404. package/dist/Button-Kcw2DdY0.js +0 -99
  405. package/dist/Divider-DBvDCUqP.js +0 -30
  406. package/dist/Divider-Goh6mpPK.js +0 -34
  407. package/dist/Label-CBwPiUuf.js +0 -97
  408. package/dist/Label-DgyUhGTQ.js +0 -93
  409. package/dist/Loader-Dn036JwE.js +0 -56
  410. package/dist/Loader-K_DJmah6.js +0 -52
  411. package/dist/cjs/hooks/useDeviceTargetClassGenerator.interface.js +0 -3
  412. package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +0 -98
  413. package/dist/css/styles/gap/gap.css +0 -7
  414. package/dist/hooks/useDeviceTargetClassGenerator.interface.js +0 -1
  415. package/dist/hooks/useDeviceTargetClassGenerator.js +0 -96
  416. package/dist/stories/Badge.mdx +0 -20
  417. package/dist/stories/Button.mdx +0 -47
  418. package/dist/types/components/Badge/stories/args.d.ts +0 -69
  419. package/dist/types/hooks/styleAttributes.d.ts +0 -2
  420. package/dist/types/hooks/useDeviceTargetClassGenerator.d.ts +0 -3
  421. /package/dist/cjs/{hooks.js → hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js} +0 -0
  422. /package/dist/cjs/hooks/{styleAttributes.interface.js → useStyles/styleAttributes.interface.js} +0 -0
  423. /package/dist/{hooks.js → hooks/useDevicePropsGenerator/useDevicePropsGenerator.interface.js} +0 -0
  424. /package/dist/hooks/{styleAttributes.interface.js → useStyles/styleAttributes.interface.js} +0 -0
  425. /package/dist/types/hooks/{useMediaQueries.d.ts → useMediaQueries/useMediaQueries.d.ts} +0 -0
  426. /package/dist/types/hooks/{styleAttributes.interface.d.ts → useStyles/styleAttributes.interface.d.ts} +0 -0
  427. /package/dist/types/hooks/{useStyles.d.ts → useStyles/useStyles.d.ts} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { tBorderColorHoverProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tFillProps, tIconSizeProps, tItemColorProps, tShapeProps, tTextColorProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tWidthProps } from 'types';
3
3
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
4
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  export interface iSearchThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  borderColor?: tBorderColorProps;
@@ -1,6 +1,6 @@
1
1
  import { tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tFillHoverProps, tFillProps, tItemColorProps, tShapeProps, tTextColorActiveProps, tTextColorProps, tTextSizeProps, tTextWrapProps, tWidthProps } from 'types';
2
2
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
3
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
3
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
4
4
  export interface iSegmentedThemeColor {
5
5
  [key: number | string | symbol]: any;
6
6
  borderType?: tBorderTypeProps;
@@ -1,8 +1,3 @@
1
1
  import type { iSwiperProps } from './Swiper.interface';
2
2
  declare function Swiper(props: iSwiperProps): import("react/jsx-runtime").JSX.Element;
3
- declare namespace Swiper {
4
- var defaultProps: {
5
- disabledButtonClass: string;
6
- };
7
- }
8
3
  export { Swiper };
@@ -2,7 +2,7 @@ import { CSSProperties, ReactNode, type Ref } from 'react';
2
2
  import { SwiperClass, type SwiperRef } from 'swiper/react';
3
3
  import { SwiperModule, SwiperOptions } from 'swiper/types';
4
4
  import { tAlignDirectionProps, tAlignProps, tFillProps, tShapeProps, tTextColorProps, tTextWeightProps, tTitleSizeProps } from 'types';
5
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
5
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
6
6
  export interface iSwiperProps extends iStyleAttributes {
7
7
  id?: string;
8
8
  [key: number | string | symbol]: any;
@@ -1,5 +1,5 @@
1
1
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
2
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
2
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
3
3
  export interface iSwitchThemeColor {
4
4
  size?: string;
5
5
  set?: string;
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ReactNode } from 'react';
2
2
  import type { tAlignDirectionProps, tAlignProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tDirectionProps, tFillHoverProps, tFillProps, tJustifyContentProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tWidthProps, tWrapProps } from 'types';
3
3
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
4
- import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import type { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  interface iTabThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  align?: tAlignProps;
@@ -29,7 +29,7 @@ export declare const argTypes: {
29
29
  };
30
30
  badgeFill: {
31
31
  control: string;
32
- options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
32
+ options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
33
33
  };
34
34
  badgeSize: {
35
35
  control: string;
@@ -55,7 +55,7 @@ export declare const argTypes: {
55
55
  };
56
56
  fill: {
57
57
  control: string;
58
- options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
58
+ options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
59
59
  };
60
60
  fillHover: {
61
61
  control: string;
@@ -125,7 +125,7 @@ export declare const argTypes: {
125
125
  if: {
126
126
  arg: string;
127
127
  };
128
- options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
128
+ options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
129
129
  };
130
130
  rel: {
131
131
  if: {
@@ -1,7 +1,7 @@
1
1
  import type { CSSProperties, ElementType, ReactNode } from 'react';
2
2
  import type { tSizeProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextSizeProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tTypeProps, tWidthProps } from 'types';
3
3
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
4
- import type { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import type { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  interface iTextThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  size?: tSizeProps;
@@ -1,9 +1,4 @@
1
1
  import type { iTextareaConfig, iTextareaProps } from './Textarea.interface';
2
2
  declare const textareaConfig: iTextareaConfig;
3
3
  declare function Textarea(props: iTextareaProps): import("react/jsx-runtime").JSX.Element;
4
- declare namespace Textarea {
5
- var defaultProps: {
6
- size: string;
7
- };
8
- }
9
4
  export { Textarea, textareaConfig };
@@ -1,7 +1,7 @@
1
1
  import { tBorderColorHoverProps, tBorderColorProps, tFillProps, tItemColorProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tWidthProps } from 'types';
2
2
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
3
3
  import { tStateKeysDefault } from 'types/componentProps/stateKeys';
4
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  export interface iTextareaThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  borderColor?: tBorderColorProps;
@@ -1,9 +1,4 @@
1
1
  import type { iTileConfig, iTileProps } from './Tile.interface';
2
2
  declare const tileConfig: iTileConfig;
3
3
  declare function Tile(props: iTileProps): import("react/jsx-runtime").JSX.Element;
4
- declare namespace Tile {
5
- var defaultProps: {
6
- alignDirection: string;
7
- };
8
- }
9
4
  export { Tile, tileConfig };
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { tAlignDirectionProps, tAlignProps, tBorderColorHoverProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tDirectionProps, tFillProps, tShapeProps, tSizeProps, tTextAlignProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTextWrapProps, tTitleSizeProps } from 'types';
3
3
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
4
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  export interface iTileThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  borderColor?: tBorderColorProps;
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ElementType, ReactNode } from 'react';
2
2
  import { tFillProps, tSvgFillProps, tTextAlignProps, tTextColorActiveProps, tTextColorHoverProps, tTextColorProps, tTextGradientProps, tTextStyleProps, tTextWeightProps, tTextWrapProps, tTitleSizeProps } from 'types';
3
3
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
4
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  interface iTitleThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  fill?: tFillProps;
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
2
  import { tAlignDirectionProps, tAlignmentProps, tAlignProps, tBorderColorProps, tBorderTypeProps, tBorderWidthProps, tElevationProps, tFillProps, tShapeProps, tSizeProps, tTextColorProps, tTextSizeProps, tTextWeightProps, tTitleSizeProps } from 'types';
3
3
  import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
4
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
4
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
5
5
  export interface iTooltipThemeColor {
6
6
  [key: number | string | symbol]: any;
7
7
  align?: tAlignProps;
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
2
+ import { iStyleAttributes } from '../../hooks/useStyles/styleAttributes.interface';
3
3
  export interface iVideoProps extends iStyleAttributes {
4
4
  id?: string;
5
5
  children?: ReactNode;
@@ -1,14 +1,4 @@
1
- import React, { ReactNode } from 'react';
2
- declare function useUserDeviceContext(): {
3
- isMobile: boolean;
4
- isTablet: boolean;
5
- isDesktop: boolean;
6
- };
7
- declare function useSiteMenuContext(): {
8
- isSiteMenuOpen: boolean;
9
- setIsSiteMenuOpen: () => void;
10
- };
11
- declare const UIProvider: React.NamedExoticComponent<iUIProvider>;
1
+ import { ReactNode } from 'react';
12
2
  interface iUIProvider {
13
3
  children?: ReactNode;
14
4
  userDeviceState?: {
@@ -17,4 +7,10 @@ interface iUIProvider {
17
7
  isTablet?: boolean;
18
8
  };
19
9
  }
20
- export { UIProvider, useUserDeviceContext, useSiteMenuContext };
10
+ declare const UIProvider: import("react").NamedExoticComponent<iUIProvider>;
11
+ declare function useUserDeviceContext(): {
12
+ isDesktop: boolean;
13
+ isMobile: boolean;
14
+ isTablet: boolean;
15
+ };
16
+ export { UIProvider, useUserDeviceContext };
@@ -0,0 +1 @@
1
+ export { useDevicePropsGenerator } from './useDevicePropsGenerator';
@@ -0,0 +1,3 @@
1
+ import type { iAppearanceConfig, iComponentProps, iDevicePropsGenerator } from './useDevicePropsGenerator.interface';
2
+ declare function useDevicePropsGenerator(componentProps: iComponentProps, appearanceConfig?: iAppearanceConfig): iDevicePropsGenerator;
3
+ export { useDevicePropsGenerator };
@@ -9,7 +9,7 @@ interface iGeneratorGetClassParams {
9
9
  replace?: [RegExp, string];
10
10
  }
11
11
  type tGetClass = (propsKey: keyof iComponentProps, params?: iGeneratorGetClassParams) => string;
12
- interface iDeviceTargetClassGenerator {
12
+ interface iDevicePropsGenerator {
13
13
  [key: string]: string;
14
14
  /**
15
15
  * Function to create class from props or appearance config by passing key and prefix(optional)
@@ -17,4 +17,4 @@ interface iDeviceTargetClassGenerator {
17
17
  */
18
18
  getClass: tGetClass;
19
19
  }
20
- export type { iComponentProps, iAppearanceConfig, iGeneratorGetClassParams, iDeviceTargetClassGenerator, };
20
+ export type { iComponentProps, iAppearanceConfig, iGeneratorGetClassParams, iDevicePropsGenerator };
@@ -0,0 +1 @@
1
+ export { useMediaQueries } from './useMediaQueries';
@@ -0,0 +1 @@
1
+ export { useStyles } from './useStyles';
@@ -0,0 +1,4 @@
1
+ declare const _default: (string | (string | {
2
+ validate: (value: any) => boolean;
3
+ })[])[];
4
+ export default _default;
@@ -1 +1 @@
1
- export type tAppearanceKeysDefault = 'accent' | 'accentSecondary' | 'accentTertiary' | 'any' | 'cantLoadData' | 'custom' | 'default' | 'dev' | 'disabled' | 'error' | 'fail' | 'gradientPrimary' | 'l' | 'm' | 'primary' | 'refresh' | 's' | 'search' | 'secondary' | 'success' | 'surface' | 'surfaceDisabled' | 'surfacePrimary' | 'surfaceQuaternary' | 'surfaceSecondary' | 'surfaceTertiary' | 'warning' | 'xl' | 'xs';
1
+ export type tAppearanceKeysDefault = 'accent' | 'accentPrimary' | 'accentQuaternary' | 'accentSecondary' | 'accentTertiary' | 'any' | 'cantLoadData' | 'custom' | 'default' | 'dev' | 'disabled' | 'error' | 'fail' | 'full' | 'ghost' | 'gradientPrimary' | 'l' | 'm' | 'outlined' | 'primary' | 'refresh' | 's' | 'search' | 'secondary' | 'solid' | 'success' | 'surface' | 'surfaceDisabled' | 'surfacePrimary' | 'surfaceQuaternary' | 'surfaceSecondary' | 'surfaceTertiary' | 'warning' | 'xl' | 'xs';
@@ -1,3 +1,3 @@
1
- declare const borderColorProps: readonly [undefined, "accentBorderPrimary", "accentBorderSecondary", "accentBorderTertiary", "accentBorderQuaternary", "accentBorderDisabled", "primaryBorderPrimary", "primaryBorderSecondary", "primaryBorderTertiary", "primaryBorderQuaternary", "primaryBorderDisabled", "secondaryBorderPrimary", "secondaryBorderSecondary", "secondaryBorderTertiary", "secondaryBorderQuaternary", "secondaryBorderDisabled", "tertiaryBorderPrimary", "tertiaryBorderSecondary", "tertiaryBorderTertiary", "tertiaryBorderQuaternary", "tertiaryBorderDisabled", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "surfaceBorderQuaternary", "surfaceBorderDisabled", "surfaceBorderInverse", "errorBorderPrimary", "errorBorderSecondary", "errorBorderDisabled", "successBorderPrimary", "successBorderSecondary", "successBorderDisabled"];
1
+ declare const borderColorProps: readonly [undefined, "accentBorderPrimary", "accentBorderSecondary", "accentBorderTertiary", "accentBorderQuaternary", "accentBorderDisabled", "primaryBorderPrimary", "primaryBorderSecondary", "primaryBorderTertiary", "primaryBorderQuaternary", "primaryBorderDisabled", "secondaryBorderPrimary", "secondaryBorderSecondary", "secondaryBorderTertiary", "secondaryBorderQuaternary", "secondaryBorderDisabled", "tertiaryBorderPrimary", "tertiaryBorderSecondary", "tertiaryBorderTertiary", "tertiaryBorderQuaternary", "tertiaryBorderDisabled", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "surfaceBorderQuaternary", "surfaceBorderDisabled", "surfaceBorderInverse", "errorBorderPrimary", "errorBorderSecondary", "errorBorderDisabled", "successBorderPrimary", "successBorderSecondary", "successBorderDisabled", "none"];
2
2
  export type tBorderColorProps = (typeof borderColorProps)[number];
3
3
  export { borderColorProps };
@@ -1,3 +1,3 @@
1
- declare const fillProps: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
1
+ declare const fillProps: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary", "none"];
2
2
  export type tFillProps = (typeof fillProps)[number];
3
3
  export { fillProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.3.30",
3
+ "version": "1.3.32",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -91,16 +91,16 @@
91
91
  },
92
92
  "dependencies": {
93
93
  "@emotion/is-prop-valid": "^1.3.1",
94
- "@itcase/storybook-config": "^1.0.59",
95
94
  "@itcase/common": "^1.2.19",
96
- "@itcase/config": "^1.0.19",
95
+ "@itcase/config": "^1.0.26",
97
96
  "@itcase/icons": "^1.0.23",
97
+ "@itcase/storybook-config": "^1.0.63",
98
98
  "clsx": "^2.1.1",
99
99
  "date-fns": "^4.1.0",
100
- "framer-motion": "^12.5.0",
100
+ "framer-motion": "^12.6.2",
101
101
  "js-cookie": "^3.0.5",
102
102
  "lodash": "^4.17.21",
103
- "motion": "^12.5.0",
103
+ "motion": "^12.6.2",
104
104
  "rc-slider": "^11.1.8",
105
105
  "react": "^18.3.1",
106
106
  "react-dadata": "^2.27.4",
@@ -116,7 +116,7 @@
116
116
  "react-scroll": "^1.9.3",
117
117
  "react-scrollbars-custom": "^4.1.1",
118
118
  "react-select": "^5.10.1",
119
- "swiper": "^11.2.5",
119
+ "swiper": "^11.2.6",
120
120
  "uuid": "^11.1.0"
121
121
  },
122
122
  "devDependencies": {
@@ -125,7 +125,7 @@
125
125
  "@babel/preset-react": "^7.26.3",
126
126
  "@commitlint/cli": "^19.8.0",
127
127
  "@commitlint/config-conventional": "^19.8.0",
128
- "@itcase/lint": "^1.0.41",
128
+ "@itcase/lint": "^1.0.48",
129
129
  "@rollup/plugin-babel": "^6.0.4",
130
130
  "@rollup/plugin-commonjs": "^28.0.3",
131
131
  "@rollup/plugin-image": "^3.0.3",
@@ -136,6 +136,7 @@
136
136
  "@semantic-release/changelog": "^6.0.3",
137
137
  "@semantic-release/git": "^10.0.1",
138
138
  "@semantic-release/release-notes-generator": "14.0.3",
139
+ "@svgr/webpack": "^8.1.0",
139
140
  "@types/js-cookie": "^3.0.6",
140
141
  "@types/lodash": "^4.17.16",
141
142
  "@types/react": "^19",
@@ -148,20 +149,22 @@
148
149
  "babel-plugin-react-docgen": "^4.2.1",
149
150
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
150
151
  "conventional-changelog-conventionalcommits": "^8.0.0",
151
- "eslint": "9.22.0",
152
+ "eslint": "9.23.0",
152
153
  "husky": "^9.1.7",
153
154
  "lint-staged": "^15.5.0",
154
155
  "npm": "^11.2.0",
155
156
  "postcss": "^8.5.3",
156
157
  "prettier": "^3.5.3",
157
- "rollup": "^4.35.0",
158
+ "react-docgen-typescript": "^2.2.2",
159
+ "react-svg": "^16.3.0",
160
+ "rollup": "^4.38.0",
158
161
  "rollup-plugin-copy": "^3.5.0",
159
- "rollup-plugin-dts": "^6.1.1",
162
+ "rollup-plugin-dts": "^6.2.1",
160
163
  "rollup-plugin-peer-deps-external": "^2.2.4",
161
164
  "rollup-preserve-directives": "^1.1.3",
162
165
  "semantic-release": "^24.2.3",
163
- "storybook": "^8.6.4",
164
- "stylelint": "^16.15.0",
166
+ "storybook": "^8.6.11",
167
+ "stylelint": "^16.17.0",
165
168
  "typescript": "^5.8.2"
166
169
  },
167
170
  "msw": {
@@ -1,111 +0,0 @@
1
- import { _ as __assign } from './tslib.es6-Bwu1Cn-t.js';
2
- import { jsx } from 'react/jsx-runtime';
3
- import clsx from 'clsx';
4
- import { useDeviceTargetClassGenerator } from './hooks/useDeviceTargetClassGenerator.js';
5
- import { useStyles } from './hooks/useStyles.js';
6
- import { T as Text } from './Text-JayJa3hj.js';
7
-
8
- var badgeAppearance = {
9
- accent: {
10
- fill: 'accentPrimary',
11
- fillHover: 'accentPrimaryHover',
12
- textColor: 'accentTextPrimary',
13
- },
14
- primary: {
15
- fill: 'primaryPrimary',
16
- fillHover: 'primaryPrimaryHover',
17
- textColor: 'primaryTextPrimary',
18
- },
19
- secondary: {
20
- fill: 'secondaryPrimary',
21
- fillHover: 'secondaryPrimaryHover',
22
- textColor: 'secondaryTextPrimary',
23
- },
24
- surfacePrimary: {
25
- fill: 'surfacePrimary',
26
- fillHover: 'surfacePrimaryHover',
27
- textColor: 'surfaceTextPrimary',
28
- },
29
- surfaceSecondary: {
30
- fill: 'surfaceSecondary',
31
- fillHover: 'surfaceSecondaryHover',
32
- textColor: 'surfaceTextPrimary',
33
- },
34
- surfaceTertiary: {
35
- fill: 'surfaceTertiary',
36
- fillHover: 'surfaceTertiaryHover',
37
- textColor: 'surfaceTextPrimary',
38
- },
39
- surfaceQuaternary: {
40
- fill: 'surfaceQuaternary',
41
- fillHover: 'surfaceTertiaryHover',
42
- textColor: 'surfaceTextInverse',
43
- },
44
- disabled: {
45
- fill: 'accentDisabled',
46
- fillHover: 'none',
47
- textColor: 'accentTextDisabled',
48
- },
49
- success: {
50
- fill: 'successPrimary',
51
- fillHover: 'successPrimary',
52
- textColor: 'successTextSecondary',
53
- },
54
- warning: {
55
- fill: 'warningPrimary',
56
- fillHover: 'warningPrimary',
57
- textColor: 'warningTextSecondary',
58
- },
59
- danger: {
60
- fill: 'dangerPrimary',
61
- fillHover: 'dangerPrimary',
62
- textColor: 'dangerTextSecondary',
63
- },
64
- textXXS: {
65
- textSize: 'xxs',
66
- },
67
- textXS: {
68
- textSize: 'xs',
69
- },
70
- textS: {
71
- textSize: 's',
72
- },
73
- textM: {
74
- textSize: 'm',
75
- },
76
- textL: {
77
- textSize: 'l',
78
- },
79
- textXL: {
80
- textSize: 'xl',
81
- },
82
- textXXL: {
83
- textSize: 'xxl',
84
- },
85
- };
86
-
87
- var badgeConfig = {
88
- appearance: badgeAppearance,
89
- setAppearance: function (newComponent) {
90
- badgeConfig.appearance = newComponent;
91
- },
92
- };
93
- function Badge(props) {
94
- var children = props.children, appearance = props.appearance, className = props.className, mode = props.mode, textColor = props.textColor, textSize = props.textSize, value = props.value;
95
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
96
- var _a;
97
- return (__assign(__assign({}, resultApperance), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
98
- }, {});
99
- var classGenerator = useDeviceTargetClassGenerator(props, appearanceConfig);
100
- var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
101
- // @ts-expect-error
102
- var badgeStyles = useStyles(props).styles;
103
- return (jsx("div", { className: clsx(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass)), style: badgeStyles, children: children ||
104
- (value && (jsx(Text, { size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: value }))) }));
105
- }
106
- Badge.defaultProps = {
107
- shape: 'circular',
108
- size: 'm',
109
- };
110
-
111
- export { Badge as B, badgeConfig as a, badgeAppearance as b };
@@ -1,115 +0,0 @@
1
- 'use strict';
2
-
3
- var tslib_es6 = require('./tslib.es6-CCZ3TN_7.js');
4
- var jsxRuntime = require('react/jsx-runtime');
5
- var clsx = require('clsx');
6
- var useDeviceTargetClassGenerator = require('./cjs/hooks/useDeviceTargetClassGenerator.js');
7
- var useStyles = require('./cjs/hooks/useStyles.js');
8
- var Text = require('./Text-Beslj4Ns.js');
9
-
10
- var badgeAppearance = {
11
- accent: {
12
- fill: 'accentPrimary',
13
- fillHover: 'accentPrimaryHover',
14
- textColor: 'accentTextPrimary',
15
- },
16
- primary: {
17
- fill: 'primaryPrimary',
18
- fillHover: 'primaryPrimaryHover',
19
- textColor: 'primaryTextPrimary',
20
- },
21
- secondary: {
22
- fill: 'secondaryPrimary',
23
- fillHover: 'secondaryPrimaryHover',
24
- textColor: 'secondaryTextPrimary',
25
- },
26
- surfacePrimary: {
27
- fill: 'surfacePrimary',
28
- fillHover: 'surfacePrimaryHover',
29
- textColor: 'surfaceTextPrimary',
30
- },
31
- surfaceSecondary: {
32
- fill: 'surfaceSecondary',
33
- fillHover: 'surfaceSecondaryHover',
34
- textColor: 'surfaceTextPrimary',
35
- },
36
- surfaceTertiary: {
37
- fill: 'surfaceTertiary',
38
- fillHover: 'surfaceTertiaryHover',
39
- textColor: 'surfaceTextPrimary',
40
- },
41
- surfaceQuaternary: {
42
- fill: 'surfaceQuaternary',
43
- fillHover: 'surfaceTertiaryHover',
44
- textColor: 'surfaceTextInverse',
45
- },
46
- disabled: {
47
- fill: 'accentDisabled',
48
- fillHover: 'none',
49
- textColor: 'accentTextDisabled',
50
- },
51
- success: {
52
- fill: 'successPrimary',
53
- fillHover: 'successPrimary',
54
- textColor: 'successTextSecondary',
55
- },
56
- warning: {
57
- fill: 'warningPrimary',
58
- fillHover: 'warningPrimary',
59
- textColor: 'warningTextSecondary',
60
- },
61
- danger: {
62
- fill: 'dangerPrimary',
63
- fillHover: 'dangerPrimary',
64
- textColor: 'dangerTextSecondary',
65
- },
66
- textXXS: {
67
- textSize: 'xxs',
68
- },
69
- textXS: {
70
- textSize: 'xs',
71
- },
72
- textS: {
73
- textSize: 's',
74
- },
75
- textM: {
76
- textSize: 'm',
77
- },
78
- textL: {
79
- textSize: 'l',
80
- },
81
- textXL: {
82
- textSize: 'xl',
83
- },
84
- textXXL: {
85
- textSize: 'xxl',
86
- },
87
- };
88
-
89
- var badgeConfig = {
90
- appearance: badgeAppearance,
91
- setAppearance: function (newComponent) {
92
- badgeConfig.appearance = newComponent;
93
- },
94
- };
95
- function Badge(props) {
96
- var children = props.children, appearance = props.appearance, className = props.className, mode = props.mode, textColor = props.textColor, textSize = props.textSize, value = props.value;
97
- var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultApperance, appearance) {
98
- var _a;
99
- return (tslib_es6.__assign(tslib_es6.__assign({}, resultApperance), (_a = badgeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
100
- }, {});
101
- var classGenerator = useDeviceTargetClassGenerator.useDeviceTargetClassGenerator(props, appearanceConfig);
102
- var borderColorClass = classGenerator.borderColorClass, borderColorHoverClass = classGenerator.borderColorHoverClass, borderTypeClass = classGenerator.borderTypeClass, borderWidthClass = classGenerator.borderWidthClass, fillClass = classGenerator.fillClass, fillHoverClass = classGenerator.fillHoverClass, positionClass = classGenerator.positionClass, shapeClass = classGenerator.shapeClass, sizeClass = classGenerator.sizeClass;
103
- // @ts-expect-error
104
- var badgeStyles = useStyles.useStyles(props).styles;
105
- return (jsxRuntime.jsx("div", { className: clsx(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), positionClass && "position_".concat(positionClass), sizeClass && "badge_size_".concat(sizeClass), shapeClass && "badge_shape_".concat(shapeClass)), style: badgeStyles, children: children ||
106
- (value && (jsxRuntime.jsx(Text.Text, { size: textSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textSize), textColor: textColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.textColor), children: value }))) }));
107
- }
108
- Badge.defaultProps = {
109
- shape: 'circular',
110
- size: 'm',
111
- };
112
-
113
- exports.Badge = Badge;
114
- exports.badgeAppearance = badgeAppearance;
115
- exports.badgeConfig = badgeConfig;