@itcase/ui 1.1.6 → 1.1.8

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 (512) hide show
  1. package/dist/Accordion-CqPVnTKh.js +173 -0
  2. package/dist/Avatar-diLCwtnd.js +49 -0
  3. package/dist/Breadcrumbs-B79kOtMG.js +619 -0
  4. package/dist/Button-B7vbiqrJ.js +100 -0
  5. package/dist/ContextMenuItem-BPqsjmSA.js +204 -0
  6. package/dist/Divider-BlBwMHgl.js +45 -0
  7. package/dist/Dot-C3R1y59u.js +34 -0
  8. package/dist/DropdownItem-Dgf0LRhx.js +644 -0
  9. package/dist/FlexItem-DzNgFIa0.js +118 -0
  10. package/dist/GridRow-Cc-rz56R.js +158 -0
  11. package/dist/Group-fbVPmr8W.js +111 -0
  12. package/dist/Icon-Dn2eEZvb.js +128 -0
  13. package/dist/Link-ByBzBRDH.js +132 -0
  14. package/dist/ListItem-Cf8r3w8t.js +479 -0
  15. package/dist/ModalLoader-DJVKhIZR.js +374 -0
  16. package/dist/NotificationList-CJyEnxWw.js +38 -0
  17. package/dist/SearchResult-erxB06IL.js +530 -0
  18. package/dist/SelectField-CpQMWXaC.js +571 -0
  19. package/dist/SiteMenuButton-BFmti8pF.js +181 -0
  20. package/dist/TabGroup-CjmtgOMw.js +1071 -0
  21. package/dist/Text-BcGbRc14.js +75 -0
  22. package/dist/cjs/Accordion-DcZ9P5kP.js +182 -0
  23. package/dist/cjs/Avatar-DQ5fNpnO.js +55 -0
  24. package/dist/cjs/Breadcrumbs-HubY1qZQ.js +629 -0
  25. package/dist/cjs/Button-3GkRq8Pv.js +108 -0
  26. package/dist/cjs/ContextMenuItem-DmbSoGn1.js +213 -0
  27. package/dist/cjs/Divider-CIYsHYud.js +51 -0
  28. package/dist/cjs/Dot-vDSigHDs.js +40 -0
  29. package/dist/cjs/DropdownItem-Bl-Ghc_6.js +653 -0
  30. package/dist/cjs/FlexItem-BnORv6q3.js +125 -0
  31. package/dist/cjs/GridRow-mzs0CkNG.js +166 -0
  32. package/dist/cjs/Group-4zWTDvKx.js +118 -0
  33. package/dist/cjs/Icon-UBahY607.js +137 -0
  34. package/dist/cjs/Link-BoShjCEw.js +142 -0
  35. package/dist/cjs/ListItem-MrHApmF3.js +488 -0
  36. package/dist/cjs/ModalLoader-4mmV5G4E.js +384 -0
  37. package/dist/cjs/NotificationList-DnI8DqyE.js +46 -0
  38. package/dist/cjs/SearchResult-bTwR5A-g.js +540 -0
  39. package/dist/cjs/SelectField-BJTu7BXO.js +583 -0
  40. package/dist/cjs/SiteMenuButton-BGi0gR1z.js +190 -0
  41. package/dist/cjs/TabGroup-DIWmGIp2.js +1081 -0
  42. package/dist/cjs/Text-D7Aq1i5R.js +82 -0
  43. package/dist/cjs/components/Accordion/Accordion.d.ts +8 -0
  44. package/dist/cjs/components/Accordion/Accordion.interface.d.ts +68 -0
  45. package/dist/cjs/components/Accordion/AccordionItem.d.ts +8 -0
  46. package/dist/cjs/components/Accordion/index.d.ts +3 -0
  47. package/dist/cjs/components/Accordion.js +40 -0
  48. package/dist/cjs/components/Avatar/Avatar.d.ts +13 -0
  49. package/dist/cjs/components/Avatar/Avatar.interface.d.ts +44 -0
  50. package/dist/cjs/components/Avatar/index.d.ts +1 -0
  51. package/dist/cjs/components/Avatar.js +43 -0
  52. package/dist/cjs/components/Badge.js +206 -0
  53. package/dist/cjs/components/Breadcrumbs.js +43 -0
  54. package/dist/cjs/components/Button/Button.d.ts +5 -0
  55. package/dist/cjs/components/Button/Button.interface.d.ts +78 -0
  56. package/dist/cjs/components/Button/index.d.ts +1 -0
  57. package/dist/cjs/components/Button.js +41 -0
  58. package/dist/cjs/components/Caption.js +197 -0
  59. package/dist/cjs/components/Card.js +279 -0
  60. package/dist/cjs/components/Cell.js +422 -0
  61. package/dist/cjs/components/Checkbox.js +166 -0
  62. package/dist/cjs/components/Chips.js +393 -0
  63. package/dist/cjs/components/Choice.js +346 -0
  64. package/dist/cjs/components/Code.js +437 -0
  65. package/dist/cjs/components/ContextMenu.js +41 -0
  66. package/dist/cjs/components/CookiesWarning.js +180 -0
  67. package/dist/cjs/components/DadataHintField.js +1193 -0
  68. package/dist/cjs/components/DatePicker.js +14097 -0
  69. package/dist/cjs/components/Divider/Divider.d.ts +3 -0
  70. package/dist/cjs/components/Divider/Divider.interface.d.ts +28 -0
  71. package/dist/cjs/components/Divider/index.d.ts +1 -0
  72. package/dist/cjs/components/Divider.js +21 -0
  73. package/dist/cjs/components/Dot/Dot.d.ts +6 -0
  74. package/dist/cjs/components/Dot/Dot.interface.d.ts +26 -0
  75. package/dist/cjs/components/Dot/index.d.ts +1 -0
  76. package/dist/cjs/components/Dot.js +21 -0
  77. package/dist/cjs/components/Drawer.js +284 -0
  78. package/dist/cjs/components/Dropdown.js +30 -0
  79. package/dist/cjs/components/Flex/Flex.d.ts +8 -0
  80. package/dist/cjs/components/Flex/Flex.interface.d.ts +118 -0
  81. package/dist/cjs/components/Flex/FlexItem.d.ts +8 -0
  82. package/dist/cjs/components/Flex/index.d.ts +3 -0
  83. package/dist/cjs/components/Flex.js +22 -0
  84. package/dist/cjs/components/FormField.js +53 -0
  85. package/dist/cjs/components/Grid/Grid.d.ts +8 -0
  86. package/dist/cjs/components/Grid/Grid.interface.d.ts +147 -0
  87. package/dist/cjs/components/Grid/GridItem.d.ts +3 -0
  88. package/dist/cjs/components/Grid/GridRow.d.ts +8 -0
  89. package/dist/cjs/components/Grid/index.d.ts +4 -0
  90. package/dist/cjs/components/Grid.js +23 -0
  91. package/dist/cjs/components/Group/Group.d.ts +9 -0
  92. package/dist/cjs/components/Group/Group.interface.d.ts +51 -0
  93. package/dist/cjs/components/Group/index.d.ts +1 -0
  94. package/dist/cjs/components/Group.js +22 -0
  95. package/dist/cjs/components/Icon/Icon.d.ts +5 -0
  96. package/dist/cjs/components/Icon/Icon.interface.d.ts +100 -0
  97. package/dist/cjs/components/Icon/index.d.ts +1 -0
  98. package/dist/cjs/components/Icon.js +39 -0
  99. package/dist/cjs/components/Image.js +480 -0
  100. package/dist/cjs/components/Input.js +233 -0
  101. package/dist/cjs/components/InputMask.js +233 -0
  102. package/dist/cjs/components/InputPassword.js +255 -0
  103. package/dist/cjs/components/Label.js +643 -0
  104. package/dist/cjs/components/LanguageSelector.js +125 -0
  105. package/dist/cjs/components/Link/Link.d.ts +11 -0
  106. package/dist/cjs/components/Link/Link.interface.d.ts +57 -0
  107. package/dist/cjs/components/Link/index.d.ts +1 -0
  108. package/dist/cjs/components/Link.js +23 -0
  109. package/dist/cjs/components/List.js +30 -0
  110. package/dist/cjs/components/Loader.js +156 -0
  111. package/dist/cjs/components/Logo.js +175 -0
  112. package/dist/cjs/components/Menu.js +196 -0
  113. package/dist/cjs/components/MenuItem.js +680 -0
  114. package/dist/cjs/components/Modal.js +28 -0
  115. package/dist/cjs/components/Notification/Notification.interface.d.ts +49 -0
  116. package/dist/cjs/components/Notification/NotificationItem.d.ts +10 -0
  117. package/dist/cjs/components/Notification/NotificationList.d.ts +3 -0
  118. package/dist/cjs/components/Notification/index.d.ts +3 -0
  119. package/dist/cjs/components/Notification.js +36 -0
  120. package/dist/cjs/components/Overlay.js +197 -0
  121. package/dist/cjs/components/Page.js +422 -0
  122. package/dist/cjs/components/Pagination.js +371 -0
  123. package/dist/cjs/components/Radio.js +267 -0
  124. package/dist/{components/Background.js → cjs/components/RangeSlider.js} +105 -74
  125. package/dist/cjs/components/Response.js +245 -0
  126. package/dist/cjs/components/ScrollOnDrag.js +214 -0
  127. package/dist/cjs/components/Scrollbar.js +71 -0
  128. package/dist/cjs/components/Search.js +43 -0
  129. package/dist/cjs/components/Segmented.js +235 -0
  130. package/dist/cjs/components/Select.js +8531 -0
  131. package/dist/cjs/components/SiteMenu.js +40 -0
  132. package/dist/cjs/components/Swiper.js +5655 -0
  133. package/dist/cjs/components/Switch.js +105 -0
  134. package/dist/cjs/components/Tab.js +42 -0
  135. package/dist/cjs/components/Text/Text.d.ts +9 -0
  136. package/dist/cjs/components/Text/Text.interface.d.ts +53 -0
  137. package/dist/cjs/components/Text/index.d.ts +1 -0
  138. package/dist/cjs/components/Text.js +22 -0
  139. package/dist/cjs/components/Textarea.js +212 -0
  140. package/dist/cjs/components/Tile.js +568 -0
  141. package/dist/cjs/components/Title.js +400 -0
  142. package/dist/cjs/components/Tooltip.js +451 -0
  143. package/dist/cjs/components/Video.js +175 -0
  144. package/dist/cjs/components/Wrapper.js +438 -0
  145. package/dist/cjs/components/index.d.ts +58 -0
  146. package/dist/cjs/components.js +234 -0
  147. package/dist/cjs/constants/componentProps/align.js +7 -0
  148. package/dist/cjs/constants/componentProps/alignDirection.js +7 -0
  149. package/dist/cjs/constants/componentProps/alignment.js +7 -0
  150. package/dist/cjs/constants/componentProps/borderColor.js +7 -0
  151. package/dist/cjs/constants/componentProps/borderColorHover.js +7 -0
  152. package/dist/cjs/constants/componentProps/borderType.js +7 -0
  153. package/dist/cjs/constants/componentProps/borderWidth.js +9 -0
  154. package/dist/cjs/constants/componentProps/captionPosition.js +7 -0
  155. package/dist/cjs/constants/componentProps/direction.js +7 -0
  156. package/dist/cjs/constants/componentProps/emojiSize.js +9 -0
  157. package/dist/cjs/constants/componentProps/fill.js +7 -0
  158. package/dist/cjs/constants/componentProps/fillGradient.js +7 -0
  159. package/dist/cjs/constants/componentProps/fillHover.js +7 -0
  160. package/dist/cjs/constants/componentProps/fillType.js +7 -0
  161. package/dist/cjs/constants/componentProps/flexAlign.js +7 -0
  162. package/dist/cjs/constants/componentProps/flexJustifyContent.js +7 -0
  163. package/dist/cjs/constants/componentProps/flexWrap.js +7 -0
  164. package/dist/cjs/constants/componentProps/gridAlign.js +7 -0
  165. package/dist/cjs/constants/componentProps/gridAlignSelf.js +7 -0
  166. package/dist/cjs/constants/componentProps/gridJustifyItems.js +7 -0
  167. package/dist/cjs/constants/componentProps/gridJustifySelf.js +7 -0
  168. package/dist/cjs/constants/componentProps/height.js +7 -0
  169. package/dist/cjs/constants/componentProps/horizontalContentAlign.js +7 -0
  170. package/dist/cjs/constants/componentProps/horizontalResizeMode.js +7 -0
  171. package/dist/cjs/constants/componentProps/iconFillSize.js +9 -0
  172. package/dist/cjs/constants/componentProps/iconSize.js +9 -0
  173. package/dist/cjs/constants/componentProps/itemColor.js +7 -0
  174. package/dist/cjs/constants/componentProps/position.js +7 -0
  175. package/dist/cjs/constants/componentProps/resizeMode.js +7 -0
  176. package/dist/cjs/constants/componentProps/shape.js +7 -0
  177. package/dist/cjs/constants/componentProps/size.js +7 -0
  178. package/dist/cjs/constants/componentProps/sizeInterface.js +7 -0
  179. package/dist/cjs/constants/componentProps/sizePX.js +9 -0
  180. package/dist/cjs/constants/componentProps/stacking.js +7 -0
  181. package/dist/cjs/constants/componentProps/state.js +7 -0
  182. package/dist/cjs/constants/componentProps/strokeColor.js +7 -0
  183. package/dist/cjs/constants/componentProps/textAlign.js +7 -0
  184. package/dist/cjs/constants/componentProps/textColor.js +7 -0
  185. package/dist/cjs/constants/componentProps/textColorActive.js +7 -0
  186. package/dist/cjs/constants/componentProps/textColorHover.js +7 -0
  187. package/dist/cjs/constants/componentProps/textGradient.js +7 -0
  188. package/dist/cjs/constants/componentProps/textSize.js +7 -0
  189. package/dist/cjs/constants/componentProps/textStyle.js +7 -0
  190. package/dist/cjs/constants/componentProps/textTag.js +7 -0
  191. package/dist/cjs/constants/componentProps/textWeight.js +9 -0
  192. package/dist/cjs/constants/componentProps/textWrap.js +7 -0
  193. package/dist/cjs/constants/componentProps/titleSize.js +7 -0
  194. package/dist/cjs/constants/componentProps/type.js +7 -0
  195. package/dist/cjs/constants/componentProps/underline.js +7 -0
  196. package/dist/cjs/constants/componentProps/verticalContentAlign.js +7 -0
  197. package/dist/cjs/constants/componentProps/verticalResizeMode.js +7 -0
  198. package/dist/cjs/constants/componentProps/width.js +7 -0
  199. package/dist/cjs/constants/componentProps/wrap.js +7 -0
  200. package/dist/cjs/constants.js +111 -0
  201. package/dist/cjs/context/Notifications.js +123 -0
  202. package/dist/cjs/context/UIContext.js +57 -0
  203. package/dist/cjs/context/index.d.ts +2 -0
  204. package/dist/cjs/hooks/index.d.ts +3 -0
  205. package/dist/cjs/hooks/styleAttributes.interface.d.ts +143 -0
  206. package/dist/cjs/hooks/styleAttributes.js +39 -0
  207. package/dist/cjs/hooks/useDeviceTargetClass.js +61 -0
  208. package/dist/cjs/hooks/useMediaQueries.js +139 -0
  209. package/dist/cjs/hooks/useStyles.js +135 -0
  210. package/dist/cjs/index.d.ts +4 -0
  211. package/dist/cjs/jsx-runtime-BCmQOGxJ.js +1363 -0
  212. package/dist/cjs/types/componentProps/align.d.ts +1 -0
  213. package/dist/cjs/types/componentProps/alignDirection.d.ts +1 -0
  214. package/dist/cjs/types/componentProps/alignment.d.ts +1 -0
  215. package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -0
  216. package/dist/cjs/types/componentProps/borderColor.d.ts +1 -0
  217. package/dist/cjs/types/componentProps/borderColorHover.d.ts +1 -0
  218. package/dist/cjs/types/componentProps/borderType.d.ts +1 -0
  219. package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -0
  220. package/dist/cjs/types/componentProps/captionPosition.d.ts +1 -0
  221. package/dist/cjs/types/componentProps/direction.d.ts +1 -0
  222. package/dist/cjs/types/componentProps/elevation.d.ts +1 -0
  223. package/dist/cjs/types/componentProps/emojiSize.d.ts +1 -0
  224. package/dist/cjs/types/componentProps/fill.d.ts +1 -0
  225. package/dist/cjs/types/componentProps/fillGradient.d.ts +1 -0
  226. package/dist/cjs/types/componentProps/fillHover.d.ts +1 -0
  227. package/dist/cjs/types/componentProps/fillType.d.ts +1 -0
  228. package/dist/cjs/types/componentProps/flexAlign.d.ts +1 -0
  229. package/dist/cjs/types/componentProps/flexGrow.d.ts +1 -0
  230. package/dist/cjs/types/componentProps/flexJustifyContent.d.ts +1 -0
  231. package/dist/cjs/types/componentProps/flexWrap.d.ts +1 -0
  232. package/dist/cjs/types/componentProps/gridAlign.d.ts +1 -0
  233. package/dist/cjs/types/componentProps/gridAlignSelf.d.ts +1 -0
  234. package/dist/cjs/types/componentProps/gridJustifyItems.d.ts +1 -0
  235. package/dist/cjs/types/componentProps/gridJustifySelf.d.ts +1 -0
  236. package/dist/cjs/types/componentProps/height.d.ts +1 -0
  237. package/dist/cjs/types/componentProps/horizontalContentAlign.d.ts +1 -0
  238. package/dist/cjs/types/componentProps/horizontalResizeMode.d.ts +1 -0
  239. package/dist/cjs/types/componentProps/iconFillSize.d.ts +1 -0
  240. package/dist/cjs/types/componentProps/iconSize.d.ts +1 -0
  241. package/dist/cjs/types/componentProps/itemColor.d.ts +1 -0
  242. package/dist/cjs/types/componentProps/justifyContent.d.ts +1 -0
  243. package/dist/cjs/types/componentProps/position.d.ts +1 -0
  244. package/dist/cjs/types/componentProps/resizeMode.d.ts +1 -0
  245. package/dist/cjs/types/componentProps/shape.d.ts +1 -0
  246. package/dist/cjs/types/componentProps/size.d.ts +1 -0
  247. package/dist/cjs/types/componentProps/sizeInterface.d.ts +1 -0
  248. package/dist/cjs/types/componentProps/sizePX.d.ts +1 -0
  249. package/dist/cjs/types/componentProps/stacking.d.ts +1 -0
  250. package/dist/cjs/types/componentProps/state.d.ts +1 -0
  251. package/dist/cjs/types/componentProps/strokeColor.d.ts +1 -0
  252. package/dist/cjs/types/componentProps/textAlign.d.ts +1 -0
  253. package/dist/cjs/types/componentProps/textColor.d.ts +1 -0
  254. package/dist/cjs/types/componentProps/textColorActive.d.ts +1 -0
  255. package/dist/cjs/types/componentProps/textColorHover.d.ts +1 -0
  256. package/dist/cjs/types/componentProps/textGradient.d.ts +1 -0
  257. package/dist/cjs/types/componentProps/textSize.d.ts +1 -0
  258. package/dist/cjs/types/componentProps/textStyle.d.ts +1 -0
  259. package/dist/cjs/types/componentProps/textTag.d.ts +1 -0
  260. package/dist/cjs/types/componentProps/textWeight.d.ts +1 -0
  261. package/dist/cjs/types/componentProps/textWrap.d.ts +1 -0
  262. package/dist/cjs/types/componentProps/titleSize.d.ts +1 -0
  263. package/dist/cjs/types/componentProps/type.d.ts +1 -0
  264. package/dist/cjs/types/componentProps/underline.d.ts +1 -0
  265. package/dist/cjs/types/componentProps/verticalContentAlign.d.ts +1 -0
  266. package/dist/cjs/types/componentProps/verticalResizeMode.d.ts +1 -0
  267. package/dist/cjs/types/componentProps/width.d.ts +1 -0
  268. package/dist/cjs/types/componentProps/wrap.d.ts +1 -0
  269. package/dist/cjs/types/index.d.ts +56 -0
  270. package/dist/components/Accordion/Accordion.d.ts +8 -0
  271. package/dist/components/Accordion/Accordion.interface.d.ts +68 -0
  272. package/dist/components/Accordion/AccordionItem.d.ts +8 -0
  273. package/dist/components/Accordion/index.d.ts +3 -0
  274. package/dist/components/Accordion.js +33 -697
  275. package/dist/components/Avatar/Avatar.d.ts +13 -0
  276. package/dist/components/Avatar/Avatar.interface.d.ts +44 -0
  277. package/dist/components/Avatar/index.d.ts +1 -0
  278. package/dist/components/Avatar.js +37 -257
  279. package/dist/components/Badge.js +41 -56
  280. package/dist/components/Breadcrumbs.js +36 -656
  281. package/dist/components/Button/Button.d.ts +5 -0
  282. package/dist/components/Button/Button.interface.d.ts +78 -0
  283. package/dist/components/Button/index.d.ts +1 -0
  284. package/dist/components/Button.js +34 -546
  285. package/dist/components/Caption.js +37 -45
  286. package/dist/components/Card.js +47 -60
  287. package/dist/components/Cell.js +83 -96
  288. package/dist/components/Checkbox.js +41 -56
  289. package/dist/components/Chips.js +65 -79
  290. package/dist/components/Choice.js +76 -91
  291. package/dist/components/Code.js +40 -48
  292. package/dist/components/ContextMenu.js +34 -246
  293. package/dist/components/CookiesWarning.js +55 -73
  294. package/dist/components/DadataHintField.js +55 -64
  295. package/dist/components/DatePicker.js +296 -327
  296. package/dist/components/Divider/Divider.d.ts +3 -0
  297. package/dist/components/Divider/Divider.interface.d.ts +28 -0
  298. package/dist/components/Divider/index.d.ts +1 -0
  299. package/dist/components/Divider.js +15 -257
  300. package/dist/components/Dot/Dot.d.ts +6 -0
  301. package/dist/components/Dot/Dot.interface.d.ts +26 -0
  302. package/dist/components/Dot/index.d.ts +1 -0
  303. package/dist/components/Dot.js +15 -226
  304. package/dist/components/Drawer.js +39 -37
  305. package/dist/components/Dropdown.js +23 -657
  306. package/dist/components/Flex/Flex.d.ts +8 -0
  307. package/dist/components/Flex/Flex.interface.d.ts +118 -0
  308. package/dist/components/Flex/FlexItem.d.ts +8 -0
  309. package/dist/components/Flex/index.d.ts +3 -0
  310. package/dist/components/Flex.js +15 -1186
  311. package/dist/components/FormField.js +43 -617
  312. package/dist/components/Grid/Grid.d.ts +8 -0
  313. package/dist/components/Grid/Grid.interface.d.ts +147 -0
  314. package/dist/components/Grid/GridItem.d.ts +3 -0
  315. package/dist/components/Grid/GridRow.d.ts +8 -0
  316. package/dist/components/Grid/index.d.ts +4 -0
  317. package/dist/components/Grid.js +15 -1709
  318. package/dist/components/Group/Group.d.ts +9 -0
  319. package/dist/components/Group/Group.interface.d.ts +51 -0
  320. package/dist/components/Group/index.d.ts +1 -0
  321. package/dist/components/Group.js +15 -315
  322. package/dist/components/Icon/Icon.d.ts +5 -0
  323. package/dist/components/Icon/Icon.interface.d.ts +100 -0
  324. package/dist/components/Icon/index.d.ts +1 -0
  325. package/dist/components/Icon.js +32 -642
  326. package/dist/components/Image.js +79 -87
  327. package/dist/components/Input.js +40 -49
  328. package/dist/components/InputMask.js +39 -48
  329. package/dist/components/InputPassword.js +61 -76
  330. package/dist/components/Label.js +105 -115
  331. package/dist/components/LanguageSelector.js +48 -62
  332. package/dist/components/Link/Link.d.ts +11 -0
  333. package/dist/components/Link/Link.interface.d.ts +57 -0
  334. package/dist/components/Link/index.d.ts +1 -0
  335. package/dist/components/Link.js +15 -505
  336. package/dist/components/List.js +23 -498
  337. package/dist/components/Loader.js +41 -56
  338. package/dist/components/Logo.js +40 -55
  339. package/dist/components/Menu.js +55 -58
  340. package/dist/components/MenuItem.js +102 -110
  341. package/dist/components/Modal.js +21 -402
  342. package/dist/components/Notification/Notification.interface.d.ts +49 -0
  343. package/dist/components/Notification/NotificationItem.d.ts +10 -0
  344. package/dist/components/Notification/NotificationList.d.ts +3 -0
  345. package/dist/components/Notification/index.d.ts +3 -0
  346. package/dist/components/Notification.js +28 -281
  347. package/dist/components/Overlay.js +37 -45
  348. package/dist/components/Page.js +66 -74
  349. package/dist/components/Pagination.js +225 -57
  350. package/dist/components/Radio.js +55 -70
  351. package/dist/components/RangeSlider.js +53 -62
  352. package/dist/components/Response.js +104 -120
  353. package/dist/components/ScrollOnDrag.js +71 -172
  354. package/dist/components/Scrollbar.js +15 -18
  355. package/dist/components/Search.js +35 -571
  356. package/dist/components/Segmented.js +54 -69
  357. package/dist/components/Select.js +274 -324
  358. package/dist/components/SiteMenu.js +33 -221
  359. package/dist/components/Swiper.js +140 -148
  360. package/dist/components/Switch.js +17 -25
  361. package/dist/components/Tab.js +34 -1089
  362. package/dist/components/Text/Text.d.ts +9 -0
  363. package/dist/components/Text/Text.interface.d.ts +53 -0
  364. package/dist/components/Text/index.d.ts +1 -0
  365. package/dist/components/Text.js +15 -362
  366. package/dist/components/Textarea.js +37 -46
  367. package/dist/components/Tile.js +100 -112
  368. package/dist/components/Title.js +66 -75
  369. package/dist/components/Tooltip.js +83 -93
  370. package/dist/components/Video.js +32 -40
  371. package/dist/components/Wrapper.js +67 -75
  372. package/dist/components/index.d.ts +58 -0
  373. package/dist/components.js +117 -0
  374. package/dist/constants/componentProps/align.js +1 -3
  375. package/dist/constants/componentProps/alignDirection.js +1 -3
  376. package/dist/constants/componentProps/alignment.js +1 -3
  377. package/dist/constants/componentProps/borderColor.js +1 -3
  378. package/dist/constants/componentProps/borderColorHover.js +1 -3
  379. package/dist/constants/componentProps/borderType.js +1 -3
  380. package/dist/constants/componentProps/borderWidth.js +1 -3
  381. package/dist/constants/componentProps/captionPosition.js +1 -3
  382. package/dist/constants/componentProps/direction.js +1 -3
  383. package/dist/constants/componentProps/emojiSize.js +1 -3
  384. package/dist/constants/componentProps/fill.js +1 -3
  385. package/dist/constants/componentProps/fillGradient.js +1 -3
  386. package/dist/constants/componentProps/fillHover.js +1 -3
  387. package/dist/constants/componentProps/fillType.js +1 -3
  388. package/dist/constants/componentProps/flexAlign.js +1 -3
  389. package/dist/constants/componentProps/flexJustifyContent.js +1 -3
  390. package/dist/constants/componentProps/flexWrap.js +1 -3
  391. package/dist/constants/componentProps/gridAlign.js +1 -3
  392. package/dist/constants/componentProps/gridAlignSelf.js +1 -3
  393. package/dist/constants/componentProps/gridJustifyItems.js +1 -3
  394. package/dist/constants/componentProps/gridJustifySelf.js +1 -3
  395. package/dist/constants/componentProps/height.js +1 -3
  396. package/dist/constants/componentProps/horizontalContentAlign.js +1 -3
  397. package/dist/constants/componentProps/horizontalResizeMode.js +1 -3
  398. package/dist/constants/componentProps/iconFillSize.js +1 -3
  399. package/dist/constants/componentProps/iconSize.js +1 -3
  400. package/dist/constants/componentProps/itemColor.js +1 -3
  401. package/dist/constants/componentProps/position.js +1 -3
  402. package/dist/constants/componentProps/resizeMode.js +1 -3
  403. package/dist/constants/componentProps/shape.js +1 -3
  404. package/dist/constants/componentProps/size.js +1 -3
  405. package/dist/constants/componentProps/sizeInterface.js +1 -3
  406. package/dist/constants/componentProps/sizePX.js +1 -3
  407. package/dist/constants/componentProps/stacking.js +1 -3
  408. package/dist/constants/componentProps/state.js +1 -3
  409. package/dist/constants/componentProps/strokeColor.js +1 -3
  410. package/dist/constants/componentProps/textAlign.js +1 -3
  411. package/dist/constants/componentProps/textColor.js +1 -3
  412. package/dist/constants/componentProps/textColorActive.js +1 -3
  413. package/dist/constants/componentProps/textColorHover.js +1 -3
  414. package/dist/constants/componentProps/textGradient.js +1 -3
  415. package/dist/constants/componentProps/textSize.js +1 -3
  416. package/dist/constants/componentProps/textStyle.js +1 -3
  417. package/dist/constants/componentProps/textTag.js +1 -3
  418. package/dist/constants/componentProps/textWeight.js +1 -3
  419. package/dist/constants/componentProps/textWrap.js +1 -3
  420. package/dist/constants/componentProps/titleSize.js +1 -3
  421. package/dist/constants/componentProps/type.js +1 -3
  422. package/dist/constants/componentProps/underline.js +1 -3
  423. package/dist/constants/componentProps/verticalContentAlign.js +1 -3
  424. package/dist/constants/componentProps/verticalResizeMode.js +1 -3
  425. package/dist/constants/componentProps/width.js +1 -3
  426. package/dist/constants/componentProps/wrap.js +1 -3
  427. package/dist/constants.js +53 -111
  428. package/dist/context/Notifications.js +17 -25
  429. package/dist/context/UIContext.js +21 -29
  430. package/dist/context/index.d.ts +2 -0
  431. package/dist/css/components/Avatar/Avatar.css +10 -0
  432. package/dist/css/components/Button/Button.css +13 -2
  433. package/dist/css/components/Dot/Dot.css +10 -4
  434. package/dist/css/components/Dropdown/Dropdown.css +41 -15
  435. package/dist/css/components/Pagination/Pagination.css +55 -32
  436. package/dist/css/components/Pagination/css/__item/pagination__item.css +27 -25
  437. package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +28 -13
  438. package/dist/css/components/Scrollbar/Scrollbar.css +56 -0
  439. package/dist/css/components/Select/Select.css +8 -0
  440. package/dist/css/components/Swiper/Swiper.css +2 -2
  441. package/dist/css/styles/fill/fill_active_hover.css +6 -3
  442. package/dist/css/styles/text-color/text-color_active.css +4 -2
  443. package/dist/floating-ui.dom-BQ7wiYTi.js +1374 -0
  444. package/dist/hooks/index.d.ts +3 -0
  445. package/dist/hooks/styleAttributes.interface.d.ts +143 -0
  446. package/dist/hooks/styleAttributes.js +2 -4
  447. package/dist/hooks/useDeviceTargetClass.js +13 -20
  448. package/dist/hooks/useMediaQueries.js +16 -10
  449. package/dist/hooks/useStyles.js +22 -30
  450. package/dist/index.d.ts +4 -0
  451. package/dist/jsx-runtime-ClDdVO4Q.js +1357 -0
  452. package/dist/types/componentProps/align.d.ts +1 -0
  453. package/dist/types/componentProps/alignDirection.d.ts +1 -0
  454. package/dist/types/componentProps/alignment.d.ts +1 -0
  455. package/dist/types/componentProps/appearanceKeys.d.ts +1 -0
  456. package/dist/types/componentProps/borderColor.d.ts +1 -0
  457. package/dist/types/componentProps/borderColorHover.d.ts +1 -0
  458. package/dist/types/componentProps/borderType.d.ts +1 -0
  459. package/dist/types/componentProps/borderWidth.d.ts +1 -0
  460. package/dist/types/componentProps/captionPosition.d.ts +1 -0
  461. package/dist/types/componentProps/direction.d.ts +1 -0
  462. package/dist/types/componentProps/elevation.d.ts +1 -0
  463. package/dist/types/componentProps/emojiSize.d.ts +1 -0
  464. package/dist/types/componentProps/fill.d.ts +1 -0
  465. package/dist/types/componentProps/fillGradient.d.ts +1 -0
  466. package/dist/types/componentProps/fillHover.d.ts +1 -0
  467. package/dist/types/componentProps/fillType.d.ts +1 -0
  468. package/dist/types/componentProps/flexAlign.d.ts +1 -0
  469. package/dist/types/componentProps/flexGrow.d.ts +1 -0
  470. package/dist/types/componentProps/flexJustifyContent.d.ts +1 -0
  471. package/dist/types/componentProps/flexWrap.d.ts +1 -0
  472. package/dist/types/componentProps/gridAlign.d.ts +1 -0
  473. package/dist/types/componentProps/gridAlignSelf.d.ts +1 -0
  474. package/dist/types/componentProps/gridJustifyItems.d.ts +1 -0
  475. package/dist/types/componentProps/gridJustifySelf.d.ts +1 -0
  476. package/dist/types/componentProps/height.d.ts +1 -0
  477. package/dist/types/componentProps/horizontalContentAlign.d.ts +1 -0
  478. package/dist/types/componentProps/horizontalResizeMode.d.ts +1 -0
  479. package/dist/types/componentProps/iconFillSize.d.ts +1 -0
  480. package/dist/types/componentProps/iconSize.d.ts +1 -0
  481. package/dist/types/componentProps/itemColor.d.ts +1 -0
  482. package/dist/types/componentProps/justifyContent.d.ts +1 -0
  483. package/dist/types/componentProps/position.d.ts +1 -0
  484. package/dist/types/componentProps/resizeMode.d.ts +1 -0
  485. package/dist/types/componentProps/shape.d.ts +1 -0
  486. package/dist/types/componentProps/size.d.ts +1 -0
  487. package/dist/types/componentProps/sizeInterface.d.ts +1 -0
  488. package/dist/types/componentProps/sizePX.d.ts +1 -0
  489. package/dist/types/componentProps/stacking.d.ts +1 -0
  490. package/dist/types/componentProps/state.d.ts +1 -0
  491. package/dist/types/componentProps/strokeColor.d.ts +1 -0
  492. package/dist/types/componentProps/textAlign.d.ts +1 -0
  493. package/dist/types/componentProps/textColor.d.ts +1 -0
  494. package/dist/types/componentProps/textColorActive.d.ts +1 -0
  495. package/dist/types/componentProps/textColorHover.d.ts +1 -0
  496. package/dist/types/componentProps/textGradient.d.ts +1 -0
  497. package/dist/types/componentProps/textSize.d.ts +1 -0
  498. package/dist/types/componentProps/textStyle.d.ts +1 -0
  499. package/dist/types/componentProps/textTag.d.ts +1 -0
  500. package/dist/types/componentProps/textWeight.d.ts +1 -0
  501. package/dist/types/componentProps/textWrap.d.ts +1 -0
  502. package/dist/types/componentProps/titleSize.d.ts +1 -0
  503. package/dist/types/componentProps/type.d.ts +1 -0
  504. package/dist/types/componentProps/underline.d.ts +1 -0
  505. package/dist/types/componentProps/verticalContentAlign.d.ts +1 -0
  506. package/dist/types/componentProps/verticalResizeMode.d.ts +1 -0
  507. package/dist/types/componentProps/width.d.ts +1 -0
  508. package/dist/types/componentProps/wrap.d.ts +1 -0
  509. package/dist/types/index.d.ts +56 -0
  510. package/package.json +86 -29
  511. package/dist/css/components/Background/Background.css +0 -11
  512. /package/dist/{floating-ui.dom-C34fOuI9.js → cjs/floating-ui.dom-C34fOuI9.js} +0 -0
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const textTagProps = ['p', 'span'];
6
+
7
+ exports.default = textTagProps;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const textWeightProps = ['normal', 'bold', 'light', 'lighter', 'bolder', /* eslint-disable */
6
+ '100', 100, '200', 200, '300', 300, '400', 400, '500', 500, '600', 600, '700', 700, '800', 800, '900', 900, '950', 950
7
+ /* eslint-enable */];
8
+
9
+ exports.default = textWeightProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const textWrapProps = [null, 'wrap', 'nowrap'];
6
+
7
+ exports.default = textWrapProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const titleSizeProps = [null, 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
6
+
7
+ exports.default = titleSizeProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const typeProps = [null, 'accent', 'primary', 'secondary', 'tertiary', 'surface', 'error', 'success'];
6
+
7
+ exports.default = typeProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const underlineProps = [null, 'false', 'none', 'underline'];
6
+
7
+ exports.default = underlineProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const verticalContentAlignProps = [null, 'center'];
6
+
7
+ exports.default = verticalContentAlignProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const verticalResizeModeProps = [null, 'fixed', 'hug', 'fill'];
6
+
7
+ exports.default = verticalResizeModeProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const widthProps = [null, 'fixed', 'hug', 'fill'];
6
+
7
+ exports.default = widthProps;
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const wrapProps = [null, 'wrap', 'no-wrap', 'nowrap', 'wrap-reverse'];
6
+
7
+ exports.default = wrapProps;
@@ -0,0 +1,111 @@
1
+ 'use strict';
2
+
3
+ var alignDirection = require('./constants/componentProps/alignDirection.js');
4
+ var align = require('./constants/componentProps/align.js');
5
+ var alignment = require('./constants/componentProps/alignment.js');
6
+ var borderColorHover = require('./constants/componentProps/borderColorHover.js');
7
+ var borderColor = require('./constants/componentProps/borderColor.js');
8
+ var borderType = require('./constants/componentProps/borderType.js');
9
+ var borderWidth = require('./constants/componentProps/borderWidth.js');
10
+ var captionPosition = require('./constants/componentProps/captionPosition.js');
11
+ var direction = require('./constants/componentProps/direction.js');
12
+ var emojiSize = require('./constants/componentProps/emojiSize.js');
13
+ var fillGradient = require('./constants/componentProps/fillGradient.js');
14
+ var fillHover = require('./constants/componentProps/fillHover.js');
15
+ var fill = require('./constants/componentProps/fill.js');
16
+ var fillType = require('./constants/componentProps/fillType.js');
17
+ var flexAlign = require('./constants/componentProps/flexAlign.js');
18
+ var flexJustifyContent = require('./constants/componentProps/flexJustifyContent.js');
19
+ var flexWrap = require('./constants/componentProps/flexWrap.js');
20
+ var gridAlign = require('./constants/componentProps/gridAlign.js');
21
+ var gridAlignSelf = require('./constants/componentProps/gridAlignSelf.js');
22
+ var gridJustifyItems = require('./constants/componentProps/gridJustifyItems.js');
23
+ var gridJustifySelf = require('./constants/componentProps/gridJustifySelf.js');
24
+ var height = require('./constants/componentProps/height.js');
25
+ var horizontalContentAlign = require('./constants/componentProps/horizontalContentAlign.js');
26
+ var horizontalResizeMode = require('./constants/componentProps/horizontalResizeMode.js');
27
+ var iconFillSize = require('./constants/componentProps/iconFillSize.js');
28
+ var iconSize = require('./constants/componentProps/iconSize.js');
29
+ var itemColor = require('./constants/componentProps/itemColor.js');
30
+ var position = require('./constants/componentProps/position.js');
31
+ var resizeMode = require('./constants/componentProps/resizeMode.js');
32
+ var shape = require('./constants/componentProps/shape.js');
33
+ var sizeInterface = require('./constants/componentProps/sizeInterface.js');
34
+ var sizePX = require('./constants/componentProps/sizePX.js');
35
+ var size = require('./constants/componentProps/size.js');
36
+ var stacking = require('./constants/componentProps/stacking.js');
37
+ var state = require('./constants/componentProps/state.js');
38
+ var strokeColor = require('./constants/componentProps/strokeColor.js');
39
+ var textAlign = require('./constants/componentProps/textAlign.js');
40
+ var textColorActive = require('./constants/componentProps/textColorActive.js');
41
+ var textColorHover = require('./constants/componentProps/textColorHover.js');
42
+ var textColor = require('./constants/componentProps/textColor.js');
43
+ var textGradient = require('./constants/componentProps/textGradient.js');
44
+ var textSize = require('./constants/componentProps/textSize.js');
45
+ var textStyle = require('./constants/componentProps/textStyle.js');
46
+ var textTag = require('./constants/componentProps/textTag.js');
47
+ var textWeight = require('./constants/componentProps/textWeight.js');
48
+ var textWrap = require('./constants/componentProps/textWrap.js');
49
+ var titleSize = require('./constants/componentProps/titleSize.js');
50
+ var type = require('./constants/componentProps/type.js');
51
+ var underline = require('./constants/componentProps/underline.js');
52
+ var verticalContentAlign = require('./constants/componentProps/verticalContentAlign.js');
53
+ var verticalResizeMode = require('./constants/componentProps/verticalResizeMode.js');
54
+ var width = require('./constants/componentProps/width.js');
55
+ var wrap = require('./constants/componentProps/wrap.js');
56
+
57
+
58
+
59
+ exports.alignDirectionProps = alignDirection.default;
60
+ exports.alignProps = align.default;
61
+ exports.alignmentProps = alignment.default;
62
+ exports.borderColorHoverProps = borderColorHover.default;
63
+ exports.borderColorProps = borderColor.default;
64
+ exports.borderTypeProps = borderType.default;
65
+ exports.borderWidthProps = borderWidth.default;
66
+ exports.captionPositionProps = captionPosition.default;
67
+ exports.directionProps = direction.default;
68
+ exports.emojiSizeProps = emojiSize.default;
69
+ exports.fillGradientProps = fillGradient.default;
70
+ exports.fillHoverProps = fillHover.default;
71
+ exports.fillProps = fill.default;
72
+ exports.fillTypeProps = fillType.default;
73
+ exports.flexAlignProps = flexAlign.default;
74
+ exports.flexJustifyContentProps = flexJustifyContent.default;
75
+ exports.flexWrapProps = flexWrap.default;
76
+ exports.gridAlignProps = gridAlign.default;
77
+ exports.gridAlignSelfProps = gridAlignSelf.default;
78
+ exports.gridJustifyItemsProps = gridJustifyItems.default;
79
+ exports.gridJustifySelfProps = gridJustifySelf.default;
80
+ exports.heightProps = height.default;
81
+ exports.horizontalContentAlignProps = horizontalContentAlign.default;
82
+ exports.horizontalResizeModeProps = horizontalResizeMode.default;
83
+ exports.iconFillSizeProps = iconFillSize.default;
84
+ exports.iconSizeProps = iconSize.default;
85
+ exports.itemColorProps = itemColor.default;
86
+ exports.positionProps = position.default;
87
+ exports.resizeModeProps = resizeMode.default;
88
+ exports.shapeProps = shape.default;
89
+ exports.sizeInterfaceProps = sizeInterface.default;
90
+ exports.sizePXProps = sizePX.default;
91
+ exports.sizeProps = size.default;
92
+ exports.stackingProps = stacking.default;
93
+ exports.stateProps = state.default;
94
+ exports.strokeColorProps = strokeColor.default;
95
+ exports.textAlignProps = textAlign.default;
96
+ exports.textColorActiveProps = textColorActive.default;
97
+ exports.textColorHoverProps = textColorHover.default;
98
+ exports.textColorProps = textColor.default;
99
+ exports.textGradientProps = textGradient.default;
100
+ exports.textSizeProps = textSize.default;
101
+ exports.textStyleProps = textStyle.default;
102
+ exports.textTagProps = textTag.default;
103
+ exports.textWeightProps = textWeight.default;
104
+ exports.textWrapProps = textWrap.default;
105
+ exports.titleSizeProps = titleSize.default;
106
+ exports.typeProps = type.default;
107
+ exports.underlineProps = underline.default;
108
+ exports.verticalContentAlignProps = verticalContentAlign.default;
109
+ exports.verticalResizeModeProps = verticalResizeMode.default;
110
+ exports.widthProps = width.default;
111
+ exports.wrapProps = wrap.default;
@@ -0,0 +1,123 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var PropTypes = require('prop-types');
6
+ var uuid = require('uuid');
7
+
8
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
+
10
+ var React__default = /*#__PURE__*/_interopDefault(React);
11
+ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
12
+
13
+ const STATUSES = {
14
+ success: 'success',
15
+ info: 'info',
16
+ error: 'error',
17
+ warning: 'warning'
18
+ };
19
+ const NotificationsContext = /*#__PURE__*/React.createContext([]);
20
+ const NotificationsAPIContext = /*#__PURE__*/React.createContext({
21
+ showNotification: () => {},
22
+ hideNotifications: () => {},
23
+ notificationStatuses: STATUSES
24
+ });
25
+ function NotificationsProvider(props) {
26
+ const [notifications, setNotifications] = React.useState([]);
27
+ const hideNotifications = React.useCallback(id => {
28
+ setNotifications(prevState => {
29
+ const currentNotification = prevState.find(notification => notification.id === id);
30
+ if (currentNotification) {
31
+ if (typeof currentNotification.onClose === 'function') {
32
+ currentNotification.onClose();
33
+ }
34
+ return prevState.filter(notification => notification.id !== id);
35
+ }
36
+ return prevState;
37
+ });
38
+ }, []);
39
+ const showNotification = React.useCallback((notification, onClose) => {
40
+ let id = uuid.v4().split('-')[0];
41
+ let title = '';
42
+ let text = '';
43
+ let status = STATUSES.warning;
44
+ let closeByTime = 4500;
45
+ let textColor = '';
46
+ if (typeof notification === 'string') {
47
+ text = notification;
48
+ } else if (typeof notification === 'object') {
49
+ id = notification.id ?? id;
50
+ title = notification.title ?? title;
51
+ text = notification.text ?? text;
52
+ status = notification.status ?? status;
53
+ closeByTime = notification.closeByTime ?? closeByTime;
54
+ }
55
+ switch (status) {
56
+ case 'success':
57
+ textColor = 'successTextPrimary';
58
+ break;
59
+ case 'info':
60
+ textColor = 'infoTextPrimary';
61
+ break;
62
+ case 'error':
63
+ textColor = 'errorTextPrimary';
64
+ break;
65
+ case 'warning':
66
+ textColor = 'warningTextPrimary';
67
+ break;
68
+ }
69
+ setNotifications(prevState => [...prevState, {
70
+ id: id,
71
+ title: title,
72
+ text: text,
73
+ status: status,
74
+ textColor: textColor,
75
+ onClose: onClose
76
+ }]);
77
+ if (closeByTime) {
78
+ setTimeout(() => hideNotifications(id), closeByTime);
79
+ }
80
+ return id;
81
+ // eslint-disable-next-line
82
+ }, []);
83
+ const notificationsAPI = React.useMemo(() => ({
84
+ showNotification: showNotification,
85
+ hideNotifications: hideNotifications,
86
+ notificationStatuses: STATUSES
87
+ }),
88
+ // Functions is never changes, no sense to set as dependencies
89
+ // eslint-disable-next-line
90
+ []);
91
+ return /*#__PURE__*/React__default.default.createElement(NotificationsAPIContext.Provider, {
92
+ value: notificationsAPI
93
+ }, /*#__PURE__*/React__default.default.createElement(NotificationsContext.Provider, {
94
+ value: notifications
95
+ }, props.children));
96
+ }
97
+ NotificationsProvider.propTypes = {
98
+ children: PropTypes__default.default.any
99
+ };
100
+ function useNotifications() {
101
+ return React.useContext(NotificationsContext);
102
+ }
103
+ function useNotificationsAPI() {
104
+ return React.useContext(NotificationsAPIContext);
105
+ }
106
+ NotificationsProvider.__docgenInfo = {
107
+ "description": "",
108
+ "methods": [],
109
+ "displayName": "NotificationsProvider",
110
+ "props": {
111
+ "children": {
112
+ "description": "",
113
+ "type": {
114
+ "name": "any"
115
+ },
116
+ "required": false
117
+ }
118
+ }
119
+ };
120
+
121
+ exports.NotificationsProvider = NotificationsProvider;
122
+ exports.useNotifications = useNotifications;
123
+ exports.useNotificationsAPI = useNotificationsAPI;
@@ -0,0 +1,57 @@
1
+ 'use client';
2
+ 'use strict';
3
+
4
+ var React = require('react');
5
+ var PropTypes = require('prop-types');
6
+ var useMediaQueries = require('../hooks/useMediaQueries.js');
7
+ require('react-responsive');
8
+
9
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
+
11
+ var React__default = /*#__PURE__*/_interopDefault(React);
12
+ var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
13
+
14
+ const UserDeviceContext = /*#__PURE__*/React.createContext({
15
+ isMobile: false,
16
+ isTablet: false,
17
+ isDesktop: false
18
+ });
19
+ const SiteMenuContext = /*#__PURE__*/React.createContext({
20
+ isSiteMenuOpen: false,
21
+ setIsSiteMenuOpen: () => {}
22
+ });
23
+ function useUserDeviceContext() {
24
+ return React.useContext(UserDeviceContext);
25
+ }
26
+ function useSiteMenuContext() {
27
+ return React.useContext(SiteMenuContext);
28
+ }
29
+ const UIProvider = /*#__PURE__*/React.memo(function UIProvider(props) {
30
+ const {
31
+ children,
32
+ userDeviceState = {}
33
+ } = props;
34
+ const [isSiteMenuOpen, setIsSiteMenuOpen] = React.useState(false);
35
+ const siteMenuContextState = React.useMemo(() => ({
36
+ isSiteMenuOpen,
37
+ setIsSiteMenuOpen
38
+ }), [isSiteMenuOpen]);
39
+ const mediaQueriesDevices = useMediaQueries.useMediaQueries(userDeviceState);
40
+ return /*#__PURE__*/React__default.default.createElement(UserDeviceContext.Provider, {
41
+ value: mediaQueriesDevices
42
+ }, /*#__PURE__*/React__default.default.createElement(SiteMenuContext.Provider, {
43
+ value: siteMenuContextState
44
+ }, children));
45
+ });
46
+ UIProvider.propTypes = {
47
+ children: PropTypes__default.default.any,
48
+ userDeviceState: PropTypes__default.default.shape({
49
+ isMobile: PropTypes__default.default.bool,
50
+ isTablet: PropTypes__default.default.bool,
51
+ isDesktop: PropTypes__default.default.bool
52
+ })
53
+ };
54
+
55
+ exports.UIProvider = UIProvider;
56
+ exports.useSiteMenuContext = useSiteMenuContext;
57
+ exports.useUserDeviceContext = useUserDeviceContext;
@@ -0,0 +1,2 @@
1
+ export { NotificationsProvider, useNotifications, useNotificationsAPI } from './Notifications';
2
+ export { UIProvider, useSiteMenuContext, useUserDeviceContext } from './UIContext';
@@ -0,0 +1,3 @@
1
+ export { useDeviceTargetClass } from './useDeviceTargetClass';
2
+ export { useMediaQueries } from './useMediaQueries';
3
+ export { useStyles } from './useStyles';
@@ -0,0 +1,143 @@
1
+ export interface TypeStyleAttributes {
2
+ /**
3
+ * Layout
4
+ */
5
+ alignContent?: string;
6
+ alignItems?: string;
7
+ alignSelf?: string;
8
+ aspectRatio?: string;
9
+ border?: string;
10
+ borderBottomWidth?: string;
11
+ borderEndWidth?: string;
12
+ borderLeftWidth?: string;
13
+ borderRightWidth?: string;
14
+ borderStartWidth?: string;
15
+ borderTopWidth?: string;
16
+ bottom?: string;
17
+ columnGap?: string;
18
+ columnWidth?: string;
19
+ display?: string;
20
+ end?: string;
21
+ flex?: string;
22
+ flexBasis?: string;
23
+ flexDirection?: string;
24
+ flexShrink?: string;
25
+ flexWrap?: string;
26
+ gap?: string;
27
+ height?: string;
28
+ left?: string;
29
+ margin?: string;
30
+ marginBottom?: string;
31
+ marginEnd?: string;
32
+ marginHorizontal?: string;
33
+ marginLeft?: string;
34
+ marginRight?: string;
35
+ marginStart?: string;
36
+ marginTop?: string;
37
+ marginVertical?: string;
38
+ maxHeight?: string;
39
+ maxWidth?: string;
40
+ minHeight?: string;
41
+ minWidth?: string;
42
+ order?: string;
43
+ overflow?: string;
44
+ padding?: string;
45
+ paddingBottom?: string;
46
+ paddingEnd?: string;
47
+ paddingHorizontal?: string;
48
+ paddingLeft?: string;
49
+ paddingRight?: string;
50
+ paddingStart?: string;
51
+ paddingTop?: string;
52
+ paddingVertical?: string;
53
+ position?: string;
54
+ right?: string;
55
+ rowGap?: string;
56
+ start?: string;
57
+ top?: string;
58
+ width?: string;
59
+ zIndex?: string;
60
+ /**
61
+ * Shadow
62
+ */
63
+ shadowColor?: string;
64
+ shadowOffset?: string;
65
+ shadowOpacity?: string;
66
+ shadowRadius?: string;
67
+ /**
68
+ * Transform
69
+ */
70
+ transform?: string;
71
+ /**
72
+ * View
73
+ */
74
+ background?: string;
75
+ backgroundColor?: string;
76
+ borderBottomColor?: string;
77
+ borderBottomEndRadius?: string;
78
+ borderBottomLeftRadius?: string;
79
+ borderBottomRightRadius?: string;
80
+ borderBottomStartRadius?: string;
81
+ borderCurve?: string;
82
+ borderEndColor?: string;
83
+ borderLeftColor?: string;
84
+ borderRadius?: string;
85
+ borderRightColor?: string;
86
+ borderStartColor?: string;
87
+ borderStyle?: string;
88
+ borderTopColor?: string;
89
+ borderTopEndRadius?: string;
90
+ borderTopLeftRadius?: string;
91
+ borderTopRightRadius?: string;
92
+ borderTopStartRadius?: string;
93
+ cursor?: string;
94
+ opacity?: string;
95
+ /**
96
+ * Text
97
+ */
98
+ color?: string;
99
+ fontFamily?: string;
100
+ fontSize?: string;
101
+ fontStyle?: string;
102
+ fontVariant?: string;
103
+ fontWeight?: string;
104
+ letterSpacing?: string;
105
+ lineHeight?: string;
106
+ textAlign?: string;
107
+ textDecorationColor?: string;
108
+ textDecorationLine?: string;
109
+ textDecorationStyle?: string;
110
+ textShadowColor?: string;
111
+ textShadowOffset?: string;
112
+ textShadowRadius?: string;
113
+ textTransform?: string;
114
+ verticalAlign?: string;
115
+ writingMode?: string;
116
+ whiteSpace?: string;
117
+ /**
118
+ * Image
119
+ */
120
+ objectFit?: string;
121
+ overlayColor?: string;
122
+ resizeMode?: string;
123
+ tintColor?: string;
124
+ /**
125
+ * Grid
126
+ */
127
+ gridArea?: string;
128
+ gridAutoColumns?: string;
129
+ gridAutoFlow?: string;
130
+ gridAutoRows?: string;
131
+ gridColumn?: string;
132
+ gridColumnGap?: string;
133
+ gridRow?: string;
134
+ gridRowGap?: string;
135
+ gridTemplate?: string;
136
+ gridTemplateAreas?: string;
137
+ gridTemplateColumns?: string;
138
+ gridTemplateRows?: string;
139
+ /**
140
+ * Filter
141
+ */
142
+ backdropFilter?: string;
143
+ }
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var styleAttributes = [
6
+ /**
7
+ * Layout
8
+ */
9
+ 'alignContent', 'alignItems', 'alignSelf', 'aspectRatio', 'border', 'borderBottomWidth', 'borderEndWidth', 'borderLeftWidth', 'borderRightWidth', 'borderStartWidth', 'borderTopWidth', 'borderWidth', 'bottom', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'gap', 'rowGap', 'columnGap', 'columnWidth', 'height', 'justifyContent', 'left', 'margin', 'marginBottom', 'marginEnd', 'marginHorizontal', 'marginLeft', 'marginRight', 'marginStart', 'marginTop', 'marginVertical', 'maxHeight', 'maxWidth', 'minHeight', 'minWidth', 'overflow', 'padding', 'paddingBottom', 'paddingEnd', 'paddingHorizontal', 'paddingLeft', 'paddingRight', 'paddingStart', 'paddingTop', 'paddingVertical', 'position', 'right', 'top', 'width', 'zIndex', 'order',
10
+ /**
11
+ * Shadow
12
+ */
13
+ 'elevation', 'shadowColor', 'shadowOffset', 'shadowOpacity', 'shadowRadius',
14
+ /**
15
+ * Transform
16
+ */
17
+ 'transform',
18
+ /**
19
+ * View
20
+ */
21
+ 'background', 'backgroundColor', 'borderBottomColor', 'borderBottomEndRadius', 'borderBottomLeftRadius', 'borderBottomRightRadius', 'borderBottomStartRadius', 'borderColor', 'borderCurve', 'borderEndColor', 'borderLeftColor', 'borderRadius', 'borderRightColor', 'borderStartColor', 'borderStyle', 'borderTopColor', 'borderTopEndRadius', 'borderTopLeftRadius', 'borderTopRightRadius', 'borderTopStartRadius', 'opacity', 'cursor',
22
+ /**
23
+ * Text
24
+ */
25
+ 'color', 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant', 'fontWeight', 'letterSpacing', 'lineHeight', 'textAlign', 'textDecorationColor', 'textDecorationLine', 'textDecorationStyle', 'textShadowColor', 'textShadowOffset', 'textShadowRadius', 'textTransform', 'verticalAlign', 'writingMode', 'whiteSpace',
26
+ /**
27
+ * Image
28
+ */
29
+ 'overlayColor', 'resizeMode', 'tintColor', 'objectFit',
30
+ /**
31
+ * Grid
32
+ */
33
+ 'gridTemplateColumns', 'gridArea', 'gridAutoColumns', 'gridAutoFlow', 'gridAutoRows', 'gridTemplate', 'gridTemplateAreas', 'gridTemplateRows', 'gridColumn', 'gridColumnGap', 'gridRow', 'gridRowGap',
34
+ /**
35
+ * Filter
36
+ */
37
+ 'backdropFilter'];
38
+
39
+ exports.default = styleAttributes;
@@ -0,0 +1,61 @@
1
+ 'use strict';
2
+
3
+ var React = require('react');
4
+ var castArray = require('lodash/castArray');
5
+ var camelCase = require('lodash/camelCase');
6
+ var UIContext = require('../context/UIContext.js');
7
+ require('prop-types');
8
+ require('./useMediaQueries.js');
9
+ require('react-responsive');
10
+
11
+ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
12
+
13
+ var castArray__default = /*#__PURE__*/_interopDefault(castArray);
14
+ var camelCase__default = /*#__PURE__*/_interopDefault(camelCase);
15
+
16
+ function useDeviceTargetClass(componentProps, hookProps) {
17
+ /** Generate a class depending on the user's device.
18
+ *
19
+ * Usage:
20
+ * const sizeClass = useDeviceTargetClass(props, {
21
+ * prefix: 'some-item_size_',
22
+ * propsKey: 'size',
23
+ * })
24
+ * Return: "some-item_size_m" (or "s", or "l", or something else)
25
+ *
26
+ * "componentProps" - "props" from component
27
+ * "hookProps" - special props for generating class
28
+ **/
29
+
30
+ const {
31
+ prefix = '',
32
+ propsKey,
33
+ replace = [/([A-Z])/g, '-$1']
34
+ } = hookProps;
35
+ const {
36
+ isMobile,
37
+ isTablet,
38
+ isDesktop
39
+ } = UIContext.useUserDeviceContext();
40
+ const targetClassValue = React.useMemo(() => {
41
+ // prettier-ignore
42
+ const deviceBasePart = isMobile && 'Mobile' || isTablet && 'Tablet' || isDesktop && 'Desktop' || '';
43
+ const valueForDevice = componentProps[`${propsKey}${deviceBasePart}`];
44
+ const valueDefault = componentProps[propsKey];
45
+ return valueForDevice || valueDefault;
46
+ }, [isMobile, isTablet, isDesktop, componentProps[propsKey], componentProps[`${propsKey}Mobile`], componentProps[`${propsKey}Tablet`], componentProps[`${propsKey}Desktop`]]);
47
+ const targetClass = React.useMemo(() => {
48
+ if (targetClassValue) {
49
+ let cleanClassValue = camelCase__default.default(String(targetClassValue));
50
+ if (replace) {
51
+ const replaceList = castArray__default.default(replace);
52
+ cleanClassValue = cleanClassValue.replace(replaceList[0], replaceList[1] || '');
53
+ }
54
+ return `${prefix}${cleanClassValue}`.toLowerCase();
55
+ }
56
+ return null;
57
+ }, [targetClassValue, prefix, replace]);
58
+ return targetClass;
59
+ }
60
+
61
+ exports.useDeviceTargetClass = useDeviceTargetClass;