welcome-ui 1.0.0-beta.3 → 1.0.0-beta.4

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 (405) hide show
  1. package/dist/AXB53BZF-BxNazDnS.mjs +25 -0
  2. package/dist/AXB53BZF-KWM2jKTz.js +1 -0
  3. package/dist/Accordion.js +16 -30
  4. package/dist/Accordion.mjs +27 -515
  5. package/dist/Alert.js +37 -1
  6. package/dist/Alert.mjs +118 -5
  7. package/dist/AspectRatio.mjs +7 -7
  8. package/dist/Avatar.js +3 -3
  9. package/dist/Avatar.mjs +16 -15
  10. package/dist/BYC7LY2E-BAjGN7k_.mjs +1074 -0
  11. package/dist/BYC7LY2E-BkAEL2VD.js +1 -0
  12. package/dist/Badge.js +3 -3
  13. package/dist/Badge.mjs +10 -10
  14. package/dist/Breadcrumb.js +1 -54
  15. package/dist/Breadcrumb.mjs +7 -437
  16. package/dist/Button.js +78 -0
  17. package/dist/Button.mjs +136 -0
  18. package/dist/ButtonGroup.js +32 -0
  19. package/dist/ButtonGroup.mjs +51 -0
  20. package/dist/Card.js +17 -0
  21. package/dist/Card.mjs +29 -0
  22. package/dist/Checkbox.js +1 -0
  23. package/dist/Checkbox.mjs +6 -0
  24. package/dist/ClearButton.js +14 -0
  25. package/dist/ClearButton.mjs +26 -0
  26. package/dist/CloseButton.js +6 -0
  27. package/dist/CloseButton.mjs +15 -0
  28. package/dist/CustomInput-9aCUiD6o.js +1070 -0
  29. package/dist/CustomInput-CenfXh_H.mjs +7825 -0
  30. package/dist/DatePicker.js +1 -0
  31. package/dist/DatePicker.mjs +108 -0
  32. package/dist/DateTimePicker.js +38 -0
  33. package/dist/DateTimePicker.mjs +109 -0
  34. package/dist/DateTimePickerCommon.js +1 -0
  35. package/dist/DateTimePickerCommon.mjs +14 -0
  36. package/dist/Drawer.js +64 -0
  37. package/dist/Drawer.mjs +267 -0
  38. package/dist/DropdownMenu.js +45 -0
  39. package/dist/DropdownMenu.mjs +776 -0
  40. package/dist/Field.js +72 -0
  41. package/dist/Field.mjs +177 -0
  42. package/dist/FieldGroup.js +13 -0
  43. package/dist/FieldGroup.mjs +26 -0
  44. package/dist/FileDrop.js +46 -0
  45. package/dist/FileDrop.mjs +2325 -0
  46. package/dist/FileUpload.js +3 -0
  47. package/dist/FileUpload.mjs +88 -0
  48. package/dist/Grid.js +1 -0
  49. package/dist/Grid.mjs +57 -0
  50. package/dist/Hint.js +8 -0
  51. package/dist/Hint.mjs +22 -0
  52. package/dist/ITI7HKP4-BPa8qpnl.js +1 -0
  53. package/dist/ITI7HKP4-Couz1Z73.mjs +473 -0
  54. package/dist/Icon.js +17 -0
  55. package/dist/Icon.mjs +51 -0
  56. package/dist/IconFont.js +17 -0
  57. package/dist/IconFont.mjs +348 -0
  58. package/dist/InputText.js +8 -0
  59. package/dist/InputText.mjs +81 -0
  60. package/dist/JC64G2H7-CQsqXPS_.mjs +965 -0
  61. package/dist/JC64G2H7-YkBMNrtl.js +1 -0
  62. package/dist/KUU7WJ55-DN8gk6_R.js +1 -0
  63. package/dist/KUU7WJ55-bC4FU_j7.mjs +61 -0
  64. package/dist/LVA2YJMS-B2HZjIhJ.js +14 -0
  65. package/dist/LVA2YJMS-Dm5ieEMw.mjs +1479 -0
  66. package/dist/Label.js +35 -0
  67. package/dist/Label.mjs +78 -0
  68. package/dist/Link.js +43 -0
  69. package/dist/Link.mjs +77 -0
  70. package/dist/Loader.js +30 -0
  71. package/dist/Loader.mjs +48 -0
  72. package/dist/Logo.js +1 -0
  73. package/dist/Logo.mjs +8 -0
  74. package/dist/MTZPJQMC-5Xg78Uyy.js +1 -0
  75. package/dist/MTZPJQMC-DZ3zg4be.mjs +13 -0
  76. package/dist/Modal.js +181 -0
  77. package/dist/Modal.mjs +365 -0
  78. package/dist/NLEBE274-DvH3XTTw.js +1 -0
  79. package/dist/NLEBE274-FThuwZH_.mjs +84 -0
  80. package/dist/P2CTZE2T-5jxBu6ix.mjs +297 -0
  81. package/dist/P2CTZE2T-q8vyaGc0.js +1 -0
  82. package/dist/P4IRICAX-DF0_vmod.mjs +37 -0
  83. package/dist/P4IRICAX-nhgZ26A1.js +1 -0
  84. package/dist/Pagination.js +46 -0
  85. package/dist/Pagination.mjs +158 -0
  86. package/dist/PasswordInput.js +1 -0
  87. package/dist/PasswordInput.mjs +54 -0
  88. package/dist/Picker.js +8 -0
  89. package/dist/Picker.mjs +50 -0
  90. package/dist/Popover.js +1 -0
  91. package/dist/Popover.mjs +8 -0
  92. package/dist/QYJ6MIDR-CRK3satR.js +1 -0
  93. package/dist/QYJ6MIDR-Cy39pEs2.mjs +97 -0
  94. package/dist/Radio.js +60 -0
  95. package/dist/Radio.mjs +118 -0
  96. package/dist/RadioGroup.js +8 -0
  97. package/dist/RadioGroup.mjs +68 -0
  98. package/dist/RadioTab.js +61 -0
  99. package/dist/RadioTab.mjs +104 -0
  100. package/dist/SYRFVSLH-BpAfr7UE.js +1 -0
  101. package/dist/SYRFVSLH-DyepaZf7.mjs +48 -0
  102. package/dist/Search.js +70 -0
  103. package/dist/Search.mjs +225 -0
  104. package/dist/Select.js +122 -0
  105. package/dist/Select.mjs +1071 -0
  106. package/dist/Shape.js +23 -0
  107. package/dist/Shape.mjs +37 -0
  108. package/dist/Slider.js +190 -0
  109. package/dist/Slider.mjs +531 -0
  110. package/dist/Stack.js +1 -0
  111. package/dist/Stack.mjs +32 -0
  112. package/dist/Swiper.js +141 -0
  113. package/dist/Swiper.mjs +448 -0
  114. package/dist/System.js +1 -1
  115. package/dist/System.mjs +5 -5
  116. package/dist/Table.js +55 -0
  117. package/dist/Table.mjs +75 -0
  118. package/dist/Tabs.js +82 -0
  119. package/dist/Tabs.mjs +539 -0
  120. package/dist/Tag.js +78 -0
  121. package/dist/Tag.mjs +135 -0
  122. package/dist/Text.js +46 -0
  123. package/dist/Text.mjs +97 -0
  124. package/dist/Textarea.js +6 -0
  125. package/dist/Textarea.mjs +55 -0
  126. package/dist/TimePicker.js +4 -0
  127. package/dist/TimePicker.mjs +88 -0
  128. package/dist/Toast.js +42 -0
  129. package/dist/Toast.mjs +264 -0
  130. package/dist/Toggle.js +75 -0
  131. package/dist/Toggle.mjs +93 -0
  132. package/dist/Tooltip.js +68 -0
  133. package/dist/Tooltip.mjs +303 -0
  134. package/dist/UniversalLink.js +4 -0
  135. package/dist/UniversalLink.mjs +25 -0
  136. package/dist/VEVQD5MH-De4r89YE.mjs +20 -0
  137. package/dist/VEVQD5MH-mN1wMozH.js +1 -0
  138. package/dist/VGCJ63VH-BNLwLOaC.js +1 -0
  139. package/dist/VGCJ63VH-fv0YLRh8.mjs +186 -0
  140. package/dist/VariantIcon.js +8 -0
  141. package/dist/VariantIcon.mjs +32 -0
  142. package/dist/Welcome-BNr4uu5n.mjs +48 -0
  143. package/dist/Welcome-Dw9OaREs.js +3 -0
  144. package/dist/WelcomeLoader.js +11 -0
  145. package/dist/WelcomeLoader.mjs +9453 -0
  146. package/dist/X5NMLKT6-BzhcQu_I.js +1 -0
  147. package/dist/X5NMLKT6-DGZEtYXj.mjs +25 -0
  148. package/dist/YV4JVR4I-1ezWeCCz.mjs +341 -0
  149. package/dist/YV4JVR4I-DIthYWMj.js +15 -0
  150. package/dist/_commonjsHelpers-CXJ7dpIk.mjs +9 -0
  151. package/dist/_commonjsHelpers-DvH0V_XJ.js +1 -0
  152. package/dist/create-event-YSlay9Ef.js +1 -0
  153. package/dist/create-event-rXDe5aCQ.mjs +8 -0
  154. package/dist/downshift.esm-DAo-GJwH.js +1 -0
  155. package/dist/downshift.esm-K4YLLQXl.mjs +1085 -0
  156. package/dist/field-styles-CeV7pnOp.mjs +86 -0
  157. package/dist/field-styles-D_gf6ypV.js +63 -0
  158. package/dist/get-max-width-height-CDLBnp_J.js +1 -0
  159. package/dist/get-max-width-height-DoUro2T7.mjs +8 -0
  160. package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
  161. package/dist/hide-focus-rings-root-DGU4Klq5.js +5 -0
  162. package/dist/index-1C9Z0d5Q.mjs +446 -0
  163. package/dist/index-BHi0wohR.js +142 -0
  164. package/dist/index-BLom3M2B.js +2 -0
  165. package/dist/{index-WmqrMIzg.mjs → index-BYdkhqH4.mjs} +6344 -6386
  166. package/dist/index-C_r0bVmL.js +56 -0
  167. package/dist/index-CgT8GWHS.js +1 -0
  168. package/dist/index-ColyClKR.mjs +239 -0
  169. package/dist/index-CrhKWaM2.js +54 -0
  170. package/dist/index-Cs1IZBks.js +17 -0
  171. package/dist/index-DCOLdphy.mjs +184 -0
  172. package/dist/index-DHOW43M6.mjs +132 -0
  173. package/dist/index-SbQUT2mU.mjs +639 -0
  174. package/dist/index.js +5 -147
  175. package/dist/index.mjs +1448 -537
  176. package/dist/overflow-ellipsis-C2ESrF8C.js +5 -0
  177. package/dist/overflow-ellipsis-DGV5Kgt-.mjs +10 -0
  178. package/dist/radio-group-29lMl-2M.mjs +51 -0
  179. package/dist/radio-group-BpImAAmy.js +1 -0
  180. package/dist/throttle-BB1Y3bfD.js +1 -0
  181. package/dist/throttle-BDBzFeFj.mjs +13 -0
  182. package/dist/types/components/Alert/Title.d.ts +1 -1
  183. package/dist/types/components/Alert/index.d.ts +3 -3
  184. package/dist/types/components/Alert/styles.d.ts +2 -2
  185. package/dist/types/components/Avatar/index.d.ts +1 -1
  186. package/dist/types/components/Avatar/styles.d.ts +2 -2
  187. package/dist/types/components/Badge/styles.d.ts +2 -2
  188. package/dist/types/components/Card/Cover.d.ts +1 -1
  189. package/dist/types/components/Card/Cover.styles.d.ts +1 -1
  190. package/dist/types/components/Checkbox/index.d.ts +13 -0
  191. package/dist/types/components/Checkbox/styles.d.ts +3 -0
  192. package/dist/types/components/Checkbox/theme.d.ts +8 -0
  193. package/dist/types/components/ClearButton/styles.d.ts +1 -1
  194. package/dist/types/components/CloseButton/styles.d.ts +1 -1
  195. package/dist/types/components/DatePicker/index.d.ts +15 -0
  196. package/dist/types/components/DateTimePicker/index.d.ts +5 -0
  197. package/dist/types/components/DateTimePicker/styles.d.ts +1 -0
  198. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +18 -0
  199. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +17 -0
  200. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +4 -0
  201. package/dist/types/components/DateTimePickerCommon/datePickerStyles.d.ts +1 -0
  202. package/dist/types/components/DateTimePickerCommon/index.d.ts +5 -0
  203. package/dist/types/components/DateTimePickerCommon/styles.d.ts +9 -0
  204. package/dist/types/components/DateTimePickerCommon/theme.d.ts +9 -0
  205. package/dist/types/components/DateTimePickerCommon/utils.d.ts +6 -0
  206. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +31 -0
  207. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +4 -0
  208. package/dist/types/components/Drawer/AssetDrawer/styles.d.ts +3 -0
  209. package/dist/types/components/Drawer/Close.d.ts +5 -0
  210. package/dist/types/components/Drawer/Content.d.ts +4 -0
  211. package/dist/types/components/Drawer/Footer.d.ts +4 -0
  212. package/dist/types/components/Drawer/Title.d.ts +3 -0
  213. package/dist/types/components/Drawer/index.d.ts +52 -0
  214. package/dist/types/components/Drawer/styles.d.ts +10 -0
  215. package/dist/types/components/Drawer/theme.d.ts +17 -0
  216. package/dist/types/components/DropdownMenu/Arrow.d.ts +4 -0
  217. package/dist/types/components/DropdownMenu/Arrow.styled.d.ts +4 -0
  218. package/dist/types/components/DropdownMenu/Item.d.ts +4 -0
  219. package/dist/types/components/DropdownMenu/Item.styled.d.ts +1 -0
  220. package/dist/types/components/DropdownMenu/Separator.d.ts +4 -0
  221. package/dist/types/components/DropdownMenu/Separator.styled.d.ts +1 -0
  222. package/dist/types/components/DropdownMenu/index.d.ts +25 -0
  223. package/dist/types/components/DropdownMenu/styles.d.ts +1 -0
  224. package/dist/types/components/DropdownMenu/theme.d.ts +8 -0
  225. package/dist/types/components/Field/index.d.ts +26 -0
  226. package/dist/types/components/Field/styles.d.ts +21 -0
  227. package/dist/types/components/Field/utils.d.ts +5 -0
  228. package/dist/types/components/FieldGroup/index.d.ts +11 -0
  229. package/dist/types/components/FieldGroup/styles.d.ts +1 -0
  230. package/dist/types/components/FileDrop/FilePreview.d.ts +9 -0
  231. package/dist/types/components/FileDrop/Message.d.ts +7 -0
  232. package/dist/types/components/FileDrop/Preview.d.ts +3 -0
  233. package/dist/types/components/FileDrop/index.d.ts +52 -0
  234. package/dist/types/components/FileDrop/styles.d.ts +9 -0
  235. package/dist/types/components/FileDrop/theme.d.ts +9 -0
  236. package/dist/types/components/FileDrop/utils.d.ts +3 -0
  237. package/dist/types/components/FileUpload/index.d.ts +35 -0
  238. package/dist/types/components/FileUpload/styles.d.ts +1 -0
  239. package/dist/types/components/Files/index.d.ts +8 -0
  240. package/dist/types/components/Files/types.d.ts +72 -0
  241. package/dist/types/components/Grid/Item.d.ts +14 -0
  242. package/dist/types/components/Grid/index.d.ts +31 -0
  243. package/dist/types/components/Hint/index.d.ts +10 -0
  244. package/dist/types/components/Hint/styles.d.ts +4 -0
  245. package/dist/types/components/Hint/theme.d.ts +9 -0
  246. package/dist/types/components/Icon/index.d.ts +26 -0
  247. package/dist/types/components/Icon/styles.d.ts +9 -0
  248. package/dist/types/components/Icon/theme.d.ts +10 -0
  249. package/dist/types/components/IconFont/index.d.ts +311 -0
  250. package/dist/types/components/IconFont/styles.d.ts +7 -0
  251. package/dist/types/components/IconFont/unicode.json.d.ts +303 -0
  252. package/dist/types/components/InputText/index.d.ts +21 -0
  253. package/dist/types/components/InputText/styles.d.ts +3 -0
  254. package/dist/types/components/Label/index.d.ts +16 -0
  255. package/dist/types/components/Label/styles.d.ts +5 -0
  256. package/dist/types/components/Label/theme.d.ts +4 -0
  257. package/dist/types/components/Link/index.d.ts +15 -0
  258. package/dist/types/components/Link/styles.d.ts +2 -0
  259. package/dist/types/components/Link/theme.d.ts +16 -0
  260. package/dist/types/components/Link/utils.d.ts +1 -0
  261. package/dist/types/components/Loader/index.d.ts +11 -0
  262. package/dist/types/components/Loader/styles.d.ts +6 -0
  263. package/dist/types/components/Loader/theme.d.ts +8 -0
  264. package/dist/types/components/Logo/Solutions.d.ts +3 -0
  265. package/dist/types/components/Logo/Symbol.d.ts +3 -0
  266. package/dist/types/components/Logo/Welcome.d.ts +3 -0
  267. package/dist/types/components/Logo/Wui.d.ts +3 -0
  268. package/dist/types/components/Logo/index.d.ts +7 -0
  269. package/dist/types/components/Logo/styles.d.ts +1 -0
  270. package/dist/types/components/Modal/Assets/AssetWithTitle.d.ts +9 -0
  271. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -0
  272. package/dist/types/components/Modal/Assets/Iframe.d.ts +5 -0
  273. package/dist/types/components/Modal/Assets/index.d.ts +17 -0
  274. package/dist/types/components/Modal/Assets/styles.d.ts +7 -0
  275. package/dist/types/components/Modal/Close.d.ts +6 -0
  276. package/dist/types/components/Modal/Content.d.ts +16 -0
  277. package/dist/types/components/Modal/Footer.d.ts +12 -0
  278. package/dist/types/components/Modal/Header.d.ts +12 -0
  279. package/dist/types/components/Modal/index.d.ts +53 -0
  280. package/dist/types/components/Modal/styles.d.ts +11 -0
  281. package/dist/types/components/Modal/theme.d.ts +17 -0
  282. package/dist/types/components/Pagination/index.d.ts +14 -0
  283. package/dist/types/components/Pagination/styles.d.ts +7 -0
  284. package/dist/types/components/Pagination/theme.d.ts +9 -0
  285. package/dist/types/components/Pagination/utils.d.ts +7 -0
  286. package/dist/types/components/PasswordInput/ToggleButton.d.ts +9 -0
  287. package/dist/types/components/PasswordInput/index.d.ts +5 -0
  288. package/dist/types/components/Picker/index.d.ts +17 -0
  289. package/dist/types/components/Picker/styles.d.ts +2 -0
  290. package/dist/types/components/Popover/Arrow.d.ts +6 -0
  291. package/dist/types/components/Popover/Content.d.ts +9 -0
  292. package/dist/types/components/Popover/Popover.d.ts +14 -0
  293. package/dist/types/components/Popover/PopoverHover.d.ts +14 -0
  294. package/dist/types/components/Popover/Trigger.d.ts +10 -0
  295. package/dist/types/components/Popover/index.d.ts +3 -0
  296. package/dist/types/components/Popover/styles.d.ts +12 -0
  297. package/dist/types/components/Popover/theme.d.ts +8 -0
  298. package/dist/types/components/Popover/usePopover.d.ts +15 -0
  299. package/dist/types/components/Radio/index.d.ts +12 -0
  300. package/dist/types/components/Radio/styles.d.ts +7 -0
  301. package/dist/types/components/Radio/theme.d.ts +11 -0
  302. package/dist/types/components/RadioGroup/index.d.ts +17 -0
  303. package/dist/types/components/RadioGroup/styles.d.ts +4 -0
  304. package/dist/types/components/RadioTab/index.d.ts +14 -0
  305. package/dist/types/components/RadioTab/styles.d.ts +18 -0
  306. package/dist/types/components/RadioTab/theme.d.ts +7 -0
  307. package/dist/types/components/Search/index.d.ts +29 -0
  308. package/dist/types/components/Search/styles.d.ts +15 -0
  309. package/dist/types/components/Select/index.d.ts +54 -0
  310. package/dist/types/components/Select/multipleSelections.d.ts +3 -0
  311. package/dist/types/components/Select/styles.d.ts +32 -0
  312. package/dist/types/components/Select/utils.d.ts +18 -0
  313. package/dist/types/components/Shape/index.d.ts +6 -0
  314. package/dist/types/components/Shape/styles.d.ts +2 -0
  315. package/dist/types/components/Slider/Range.d.ts +17 -0
  316. package/dist/types/components/Slider/index.d.ts +27 -0
  317. package/dist/types/components/Slider/styles.d.ts +19 -0
  318. package/dist/types/components/Slider/theme.d.ts +11 -0
  319. package/dist/types/components/Stack/index.d.ts +7 -0
  320. package/dist/types/components/Swiper/index.d.ts +80 -0
  321. package/dist/types/components/Swiper/styles.d.ts +138 -0
  322. package/dist/types/components/Swiper/theme.d.ts +11 -0
  323. package/dist/types/components/Swiper/use-interval.d.ts +1 -0
  324. package/dist/types/components/Table/index.d.ts +18 -0
  325. package/dist/types/components/Table/styles.d.ts +13 -0
  326. package/dist/types/components/Table/theme.d.ts +15 -0
  327. package/dist/types/components/Tabs/ActiveBar.d.ts +13 -0
  328. package/dist/types/components/Tabs/TabList.d.ts +13 -0
  329. package/dist/types/components/Tabs/TabPanel.d.ts +11 -0
  330. package/dist/types/components/Tabs/index.d.ts +18 -0
  331. package/dist/types/components/Tabs/styles.d.ts +9 -0
  332. package/dist/types/components/Tabs/theme.d.ts +28 -0
  333. package/dist/types/components/Tabs/utils.d.ts +1 -0
  334. package/dist/types/components/Tag/index.d.ts +17 -0
  335. package/dist/types/components/Tag/styles.d.ts +15 -0
  336. package/dist/types/components/Tag/theme.d.ts +14 -0
  337. package/dist/types/components/Text/index.d.ts +25 -0
  338. package/dist/types/components/Text/styles.d.ts +2 -0
  339. package/dist/types/components/Textarea/index.d.ts +18 -0
  340. package/dist/types/components/Textarea/styles.d.ts +2 -0
  341. package/dist/types/components/Textarea/theme.d.ts +4 -0
  342. package/dist/types/components/TimePicker/index.d.ts +13 -0
  343. package/dist/types/components/TimePicker/styles.d.ts +1 -0
  344. package/dist/types/components/Toast/Growl.d.ts +12 -0
  345. package/dist/types/components/Toast/Snackbar.d.ts +18 -0
  346. package/dist/types/components/Toast/ToastWrapper.d.ts +16 -0
  347. package/dist/types/components/Toast/index.d.ts +27 -0
  348. package/dist/types/components/Toast/styles.d.ts +19 -0
  349. package/dist/types/components/Toast/theme.d.ts +22 -0
  350. package/dist/types/components/Toast/utils.d.ts +26 -0
  351. package/dist/types/components/Toggle/index.d.ts +11 -0
  352. package/dist/types/components/Toggle/styles.d.ts +12 -0
  353. package/dist/types/components/Toggle/theme.d.ts +10 -0
  354. package/dist/types/components/Tooltip/index.d.ts +11 -0
  355. package/dist/types/components/Tooltip/styles.d.ts +10 -0
  356. package/dist/types/components/Tooltip/theme.d.ts +4 -0
  357. package/dist/types/components/UniversalLink/index.d.ts +7 -0
  358. package/dist/types/components/UniversalLink/styles.d.ts +1 -0
  359. package/dist/types/components/VariantIcon/index.d.ts +11 -0
  360. package/dist/types/components/VariantIcon/styles.d.ts +4 -0
  361. package/dist/types/components/VariantIcon/theme.d.ts +10 -0
  362. package/dist/types/components/WelcomeLoader/index.d.ts +2 -0
  363. package/dist/types/components/WelcomeLoader/loader.json.d.ts +3 -0
  364. package/dist/types/components/index.d.ts +43 -1
  365. package/dist/types/index.d.ts +2 -1
  366. package/dist/types/theme/defaultFields.d.ts +39 -0
  367. package/dist/types/theme/index.d.ts +52 -2
  368. package/dist/types/theme/typography.d.ts +2 -2
  369. package/dist/types/utils/clamp.d.ts +1 -0
  370. package/dist/types/utils/create-event.d.ts +8 -0
  371. package/dist/types/utils/field-styles.d.ts +21 -0
  372. package/dist/types/utils/format-bytes.d.ts +1 -0
  373. package/dist/types/utils/get-max-width-height.d.ts +1 -0
  374. package/dist/types/utils/hex-to-rgb.d.ts +1 -0
  375. package/dist/types/utils/hex-to-rgba.d.ts +1 -0
  376. package/dist/types/utils/hide-focus-rings-root.d.ts +8 -0
  377. package/dist/types/utils/index.d.ts +1 -0
  378. package/dist/types/utils/overflow-ellipsis.d.ts +1 -0
  379. package/dist/types/utils/throttle.d.ts +5 -0
  380. package/dist/types/utils/use-copy-text.d.ts +5 -0
  381. package/dist/types/utils/use-create-portal.d.ts +4 -0
  382. package/dist/types/utils/use-fork-ref.d.ts +3 -0
  383. package/dist/types/utils/use-isomorphic-layout-effect.d.ts +2 -0
  384. package/dist/types/utils/use-viewport.d.ts +6 -0
  385. package/dist/types/utils/wrap-children.d.ts +1 -0
  386. package/dist/use-isomorphic-layout-effect-C1_Gy5Nu.js +1 -0
  387. package/dist/use-isomorphic-layout-effect-Izr-e2pi.mjs +6 -0
  388. package/dist/use-viewport-BDDjd1nl.js +1 -0
  389. package/dist/use-viewport-m3glsbna.mjs +16 -0
  390. package/dist/usePopover-CZsYHcTW.js +31 -0
  391. package/dist/usePopover-CcsC9Y-s.mjs +143 -0
  392. package/dist/wrap-children-BLDjJiiy.js +1 -0
  393. package/dist/wrap-children-aq69jtFP.mjs +12 -0
  394. package/package.json +56 -4
  395. package/dist/X5NMLKT6-BC1Q56kB.mjs +0 -1258
  396. package/dist/X5NMLKT6-vrNG8i_R.js +0 -14
  397. package/dist/index-0MPAX4B5.mjs +0 -320
  398. package/dist/index-BNA_A0oa.js +0 -155
  399. package/dist/index-BXJQXgy9.js +0 -13
  400. package/dist/index-Bwrtxit1.mjs +0 -84
  401. package/dist/index-Ct2FOeyM.js +0 -17
  402. package/dist/index-DRNn5iIc.js +0 -142
  403. package/dist/index-Du8Nrf16.mjs +0 -128
  404. package/dist/index-MifIgNHW.mjs +0 -47
  405. package/dist/index-V28zHt_Z.js +0 -68
package/dist/Swiper.js ADDED
@@ -0,0 +1,141 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),z=require("./_commonjsHelpers-DvH0V_XJ.js"),c=require("@xstyled/styled-components"),K=require("./IconFont.js"),ot=require("./use-viewport-BDDjd1nl.js"),st=require("./Button.js");var at="Expected a function",X=NaN,lt="[object Symbol]",ct=/^\s+|\s+$/g,ut=/^[-+]0x[0-9a-f]+$/i,dt=/^0b[01]+$/i,ft=/^0o[0-7]+$/i,ht=parseInt,gt=typeof z.commonjsGlobal=="object"&&z.commonjsGlobal&&z.commonjsGlobal.Object===Object&&z.commonjsGlobal,mt=typeof self=="object"&&self&&self.Object===Object&&self,pt=gt||mt||Function("return this")(),wt=Object.prototype,bt=wt.toString,yt=Math.max,$t=Math.min,_=function(){return pt.Date.now()};function St(t,e,n){var s,r,a,d,l,y,m=0,A=!1,S=!1,R=!0;if(typeof t!="function")throw new TypeError(at);e=J(e)||0,D(n)&&(A=!!n.leading,S="maxWait"in n,a=S?yt(J(n.maxWait)||0,e):a,R="trailing"in n?!!n.trailing:R);function f(i){var g=s,P=r;return s=r=void 0,m=i,d=t.apply(P,g),d}function I(i){return m=i,l=setTimeout(b,e),A?f(i):d}function v(i){var g=i-y,P=i-m,W=e-g;return S?$t(W,a-P):W}function k(i){var g=i-y,P=i-m;return y===void 0||g>=e||g<0||S&&P>=a}function b(){var i=_();if(k(i))return T(i);l=setTimeout(b,v(i))}function T(i){return l=void 0,R&&s?f(i):(s=r=void 0,d)}function O(){l!==void 0&&clearTimeout(l),m=0,s=y=r=l=void 0}function M(){return l===void 0?d:T(_())}function p(){var i=_(),g=k(i);if(s=arguments,r=this,y=i,g){if(l===void 0)return I(y);if(S)return l=setTimeout(b,e),f(y)}return l===void 0&&(l=setTimeout(b,e)),d}return p.cancel=O,p.flush=M,p}function D(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function vt(t){return!!t&&typeof t=="object"}function xt(t){return typeof t=="symbol"||vt(t)&&bt.call(t)==lt}function J(t){if(typeof t=="number")return t;if(xt(t))return X;if(D(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=D(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(ct,"");var n=dt.test(t);return n||ft.test(t)?ht(t.slice(2),n?2:8):ut.test(t)?X:+t}var Pt=St;const Et=z.getDefaultExportFromCjs(Pt),Rt=(t,e)=>{const n=o.useRef();o.useEffect(()=>{n.current=t},[t]),o.useEffect(()=>{function s(){n.current()}if(e!==null){const r=setInterval(s,e);return()=>clearInterval(r)}},[e])},x=(t=3,e,n)=>{if(e===0)return`${100/t}%`;const r=n(e*(t===1?4:2));return`calc(${100/t}% - ${r})`},Y=c.div`
2
+ overflow-y: hidden;
3
+ position: relative;
4
+ width: 100%;
5
+ height: 100%;
6
+
7
+ ${c.system}
8
+ `,Q=c(st.Button)(({disabled:t,withDarkUI:e,withNavigation:{desktop:n,mobile:s}})=>c.css`
9
+ top: 50%;
10
+ transform: translate3d(0, -50%, 0);
11
+ z-index: ${s?1:-1};
12
+ display: ${s?"flex":"none"};
13
+
14
+ ${!e&&c.css`
15
+ background-color: neutral-10 !important;
16
+
17
+ &:hover {
18
+ background-color: neutral-40 !important;
19
+ }
20
+ `}
21
+
22
+ @media (min-width: md) {
23
+ z-index: ${n?1:-1};
24
+ display: ${n?"flex":"none"};
25
+ }
26
+
27
+ ${t&&c.css`
28
+ opacity: 0;
29
+ z-index: -1;
30
+ `};
31
+ `),kt=c.divBox(({withPagination:{desktop:t,mobile:e}})=>c.css`
32
+ justify-content: center;
33
+ position: absolute;
34
+ bottom: 0;
35
+ width: 100%;
36
+ padding: sm;
37
+
38
+ z-index: ${e?1:-1};
39
+ display: ${e?"flex":"none"};
40
+
41
+ @media (min-width: md) {
42
+ z-index: ${t?1:-1};
43
+ display: ${t?"flex":"none"};
44
+ }
45
+ `),jt=c.div(({active:t,withDarkUI:e})=>c.css`
46
+ height: 10;
47
+ width: 10;
48
+ border-radius: 50%;
49
+ cursor: pointer;
50
+ margin: 0 xxs;
51
+ ${t?c.th("swipers.navigation.bullet.active"):c.th("swipers.navigation.bullet.default")}
52
+ ${e&&c.css`
53
+ background-color: ${t?"neutral-90":"neutral-50"};
54
+ `}
55
+ ${c.system}
56
+ `),Lt=c.ulBox(({fullWidth:t,slidesPerView:{desktop:e,mobile:n,tablet:s},spaceBetween:r,theme:a})=>c.css`
57
+ scroll-snap-type: x mandatory;
58
+ display: flex;
59
+ -webkit-overflow-scrolling: touch;
60
+ overflow-x: scroll;
61
+ margin: 0;
62
+
63
+ /* Hide scrollbar */
64
+ -ms-overflow-style: none;
65
+ scrollbar-width: none;
66
+ &::-webkit-scrollbar {
67
+ display: none;
68
+ }
69
+ height: 100%;
70
+ padding: 0;
71
+
72
+ > [aria-roledescription='slide'][aria-hidden='true'] {
73
+ pointer-events: none;
74
+ }
75
+
76
+ > * {
77
+ list-style-type: none;
78
+ margin-right: ${r};
79
+ min-width: ${x(n,r,a.toRem)};
80
+ max-width: ${x(n,r,a.toRem)};
81
+ flex: 1;
82
+
83
+ &:last-child {
84
+ margin-right: 0;
85
+ }
86
+ }
87
+
88
+ @media (min-width: sm) {
89
+ ${n&&c.css`
90
+ > * {
91
+ min-width: ${x(n,r,a.toRem)};
92
+ max-width: ${x(n,r,a.toRem)};
93
+
94
+ &:nth-of-type(${n}n + 1) {
95
+ scroll-snap-align: start;
96
+ }
97
+ }
98
+ `}
99
+ }
100
+
101
+ @media (min-width: md) {
102
+ ${s&&c.css`
103
+ > * {
104
+ min-width: ${x(s,r,a.toRem)};
105
+ max-width: ${x(s,r,a.toRem)};
106
+
107
+ &:nth-of-type(${s}n + 1) {
108
+ scroll-snap-align: start;
109
+ }
110
+ }
111
+ `}
112
+ }
113
+
114
+ @media (min-width: lg) {
115
+ ${e&&c.css`
116
+ > * {
117
+ min-width: ${x(e,r,a.toRem)};
118
+ max-width: ${x(e,r,a.toRem)};
119
+
120
+ scroll-snap-align: unset;
121
+
122
+ &:nth-of-type(${e}n + 1) {
123
+ scroll-snap-align: start;
124
+ }
125
+
126
+ &:not(:nth-of-type(${e}n + 1)) {
127
+ scroll-snap-align: unset;
128
+ }
129
+ }
130
+ `}
131
+ }
132
+
133
+ @media (min-width: xl) {
134
+ ${e&&t&&c.css`
135
+ > * {
136
+ min-width: ${x(e+2,r,a.toRem)};
137
+ max-width: ${x(e+2,r,a.toRem)};
138
+ }
139
+ `}
140
+ }
141
+ `),Ct=(t={})=>{const{autoplay:e=!1,centeredSlides:n=!1,duration:s=5e3,firstSlideToShow:r=0,fullWidth:a=!1,id:d="swiper",loop:l=!1,navigationSize:y="md",slidesPerView:m={mobile:1,tablet:1,desktop:1},spaceBetween:A=20,withDarkUI:S=!1,withNavigation:R={mobile:!0,desktop:!0},withPagination:f={mobile:!1,desktop:!1}}=t,I=l||e,{width:v}=ot.useViewportSize(),[k,b]=o.useState(0),[T,O]=o.useState(!1),[M,p]=o.useState(!1),i=o.useRef(),{screens:g}=c.useTheme(),P=o.useMemo(()=>v<=g.md?m.mobile:v<=g.lg?m.tablet:v>=g["4xl"]&&a?m.desktop+2:m.desktop,[a,v,g,m]);return{centeredSlides:n,firstSlideToShow:r,currentSlidesPerView:P,currentPage:k,setCurrentPage:b,fullWidth:a,id:d,navigationSize:y,slidesPerView:m,spaceBetween:A,withNavigation:R,withPagination:f,autoplay:e,shouldLoop:I,duration:s,withDarkUI:S,ref:i,setShowLeftArrow:O,setShowRightArrow:p,showLeftArrow:T,showRightArrow:M}},Z=({children:t,dataTestId:e,store:n,...s})=>{const{autoplay:r,centeredSlides:a,currentPage:d,currentSlidesPerView:l,duration:y,firstSlideToShow:m,fullWidth:A,id:S,navigationSize:R,ref:f,setCurrentPage:I,setShowLeftArrow:v,setShowRightArrow:k,shouldLoop:b,showLeftArrow:T,showRightArrow:O,slidesPerView:M,spaceBetween:p,withDarkUI:i,withNavigation:g,withPagination:P}=n,W=o.Children.toArray(t).length,H=Math.ceil(W/l),C=Array.from(Array(H).keys()),U=d===0,q=d===C.length-1,tt=o.Children.map(t,(w,u)=>{const h=`${S}-${u}`,$=u+1,L=Math.ceil($/l)-1,E=q?W-$>=l:L!==d;return o.cloneElement(w,{...w.props,id:h,key:h,"aria-hidden":E,"aria-roledescription":"slide","aria-label":`${$} of ${W}`})}),et=a?Math.floor(H/2):Math.ceil(m/l)-1,G=o.useCallback(()=>{const w=f==null?void 0:f.current;if(w&&!b){const{offsetWidth:u,scrollLeft:h,scrollWidth:$}=w,L=!(h>p),E=!($-(h+u)>p);v(!L),k(!E)}else v(!0),k(!0)},[f,v,k,b,p]),nt=()=>{var u,h;const w=f==null?void 0:f.current;if(w){const{children:$,offsetWidth:L,scrollLeft:E,scrollWidth:F}=w,rt=(h=(u=$==null?void 0:$[0])==null?void 0:u.getBoundingClientRect())==null?void 0:h.width,B=!(F-(E+L)>p)?C.length-1:Math.round(E/((rt+p)*l));B!==d&&I(B)}},it=Et(()=>{G(),nt()},100),j=o.useCallback((w,u=!1)=>{var L,E,F;const h=f==null?void 0:f.current,$=(F=(E=(L=h==null?void 0:h.children)==null?void 0:L[0])==null?void 0:E.getBoundingClientRect())==null?void 0:F.width;h==null||h.scrollTo({left:w*($+p)*l,top:0,behavior:u?"auto":"smooth"})},[l,p,f]),N=o.useCallback(()=>{j(b&&q?0:d+1)},[d,j,q,b]),V=o.useCallback(()=>{j(U&&b?C.length-1:d-1)},[C.length,d,j,U,b]);return Rt(()=>{r&&N()},r?y:null),o.useEffect(()=>{const w=u=>{u.code==="ArrowLeft"&&V(),u.code==="ArrowRight"&&N()};return window.addEventListener("keydown",w),()=>window.removeEventListener("keydown",w)},[V,N]),o.useEffect(()=>{j(et,!0)},[]),o.useEffect(()=>{G()},[G,t]),o.createElement(Y,{"data-testid":e,...s},o.createElement(Lt,{fullWidth:A,onScroll:it,ref:f,slidesPerView:M,spaceBetween:p},tt),o.createElement(Q,{"data-testid":e&&`${e}-prev-button`,disabled:!T,left:10,onClick:V,position:"absolute",shape:"circle",size:R,variant:i?"secondary":"ghost",withDarkUI:i,withNavigation:g},o.createElement(K.Icons.Left,null)),o.createElement(Q,{"data-testid":e&&`${e}-next-button`,disabled:!O,onClick:N,position:"absolute",right:10,shape:"circle",size:R,variant:i?"secondary":"ghost",withDarkUI:i,withNavigation:g},o.createElement(K.Icons.Right,null)),o.createElement(kt,{className:"swiper-pagination","data-testid":e&&`${e}-pagination`,role:"tablist",withPagination:P},C.length>1&&C.map((w,u)=>{const h={idx:u,role:"tab","aria-controls":`${S}-${u}`,"aria-label":`${u+1} of ${C.length}`,"aria-selected":u===d,onClick:()=>j(u)};return o.createElement(jt,{active:u===d,key:`bullet-${u+1}`,withDarkUI:i,...h})})))};Z.displayName="Swiper";const At=Y;exports.StyledSwiper=At;exports.Swiper=Z;exports.useSwiper=Ct;
@@ -0,0 +1,448 @@
1
+ "use client";
2
+ import A, { useRef as rt, useEffect as M, useState as K, useMemo as ft, Children as Y, cloneElement as ht, useCallback as D } from "react";
3
+ import { c as V, g as gt } from "./_commonjsHelpers-CXJ7dpIk.mjs";
4
+ import N, { system as ot, css as y, th as Z, useTheme as mt } from "@xstyled/styled-components";
5
+ import { Icons as tt } from "./IconFont.mjs";
6
+ import { u as pt } from "./use-viewport-m3glsbna.mjs";
7
+ import { Button as wt } from "./Button.mjs";
8
+ var $t = "Expected a function", et = NaN, yt = "[object Symbol]", bt = /^\s+|\s+$/g, vt = /^[-+]0x[0-9a-f]+$/i, St = /^0b[01]+$/i, xt = /^0o[0-7]+$/i, Pt = parseInt, Rt = typeof V == "object" && V && V.Object === Object && V, Lt = typeof self == "object" && self && self.Object === Object && self, kt = Rt || Lt || Function("return this")(), Et = Object.prototype, At = Et.toString, jt = Math.max, Ct = Math.min, X = function() {
9
+ return kt.Date.now();
10
+ };
11
+ function Tt(t, e, n) {
12
+ var o, r, s, c, a, w, h = 0, C = !1, b = !1, R = !0;
13
+ if (typeof t != "function")
14
+ throw new TypeError($t);
15
+ e = nt(e) || 0, q(n) && (C = !!n.leading, b = "maxWait" in n, s = b ? jt(nt(n.maxWait) || 0, e) : s, R = "trailing" in n ? !!n.trailing : R);
16
+ function d(i) {
17
+ var f = o, x = r;
18
+ return o = r = void 0, h = i, c = t.apply(x, f), c;
19
+ }
20
+ function O(i) {
21
+ return h = i, a = setTimeout(p, e), C ? d(i) : c;
22
+ }
23
+ function v(i) {
24
+ var f = i - w, x = i - h, W = e - f;
25
+ return b ? Ct(W, s - x) : W;
26
+ }
27
+ function L(i) {
28
+ var f = i - w, x = i - h;
29
+ return w === void 0 || f >= e || f < 0 || b && x >= s;
30
+ }
31
+ function p() {
32
+ var i = X();
33
+ if (L(i))
34
+ return T(i);
35
+ a = setTimeout(p, v(i));
36
+ }
37
+ function T(i) {
38
+ return a = void 0, R && o ? d(i) : (o = r = void 0, c);
39
+ }
40
+ function I() {
41
+ a !== void 0 && clearTimeout(a), h = 0, o = w = r = a = void 0;
42
+ }
43
+ function z() {
44
+ return a === void 0 ? c : T(X());
45
+ }
46
+ function g() {
47
+ var i = X(), f = L(i);
48
+ if (o = arguments, r = this, w = i, f) {
49
+ if (a === void 0)
50
+ return O(w);
51
+ if (b)
52
+ return a = setTimeout(p, e), d(w);
53
+ }
54
+ return a === void 0 && (a = setTimeout(p, e)), c;
55
+ }
56
+ return g.cancel = I, g.flush = z, g;
57
+ }
58
+ function q(t) {
59
+ var e = typeof t;
60
+ return !!t && (e == "object" || e == "function");
61
+ }
62
+ function Wt(t) {
63
+ return !!t && typeof t == "object";
64
+ }
65
+ function Ot(t) {
66
+ return typeof t == "symbol" || Wt(t) && At.call(t) == yt;
67
+ }
68
+ function nt(t) {
69
+ if (typeof t == "number")
70
+ return t;
71
+ if (Ot(t))
72
+ return et;
73
+ if (q(t)) {
74
+ var e = typeof t.valueOf == "function" ? t.valueOf() : t;
75
+ t = q(e) ? e + "" : e;
76
+ }
77
+ if (typeof t != "string")
78
+ return t === 0 ? t : +t;
79
+ t = t.replace(bt, "");
80
+ var n = St.test(t);
81
+ return n || xt.test(t) ? Pt(t.slice(2), n ? 2 : 8) : vt.test(t) ? et : +t;
82
+ }
83
+ var It = Tt;
84
+ const zt = /* @__PURE__ */ gt(It), Mt = (t, e) => {
85
+ const n = rt();
86
+ M(() => {
87
+ n.current = t;
88
+ }, [t]), M(() => {
89
+ function o() {
90
+ n.current();
91
+ }
92
+ if (e !== null) {
93
+ const r = setInterval(o, e);
94
+ return () => clearInterval(r);
95
+ }
96
+ }, [e]);
97
+ }, S = (t = 3, e, n) => {
98
+ if (e === 0)
99
+ return `${100 / t}%`;
100
+ const r = n(e * (t === 1 ? 4 : 2));
101
+ return `calc(${100 / t}% - ${r})`;
102
+ }, st = N.div`
103
+ overflow-y: hidden;
104
+ position: relative;
105
+ width: 100%;
106
+ height: 100%;
107
+
108
+ ${ot}
109
+ `, it = N(wt)(
110
+ ({ disabled: t, withDarkUI: e, withNavigation: { desktop: n, mobile: o } }) => y`
111
+ top: 50%;
112
+ transform: translate3d(0, -50%, 0);
113
+ z-index: ${o ? 1 : -1};
114
+ display: ${o ? "flex" : "none"};
115
+
116
+ ${!e && y`
117
+ background-color: neutral-10 !important;
118
+
119
+ &:hover {
120
+ background-color: neutral-40 !important;
121
+ }
122
+ `}
123
+
124
+ @media (min-width: md) {
125
+ z-index: ${n ? 1 : -1};
126
+ display: ${n ? "flex" : "none"};
127
+ }
128
+
129
+ ${t && y`
130
+ opacity: 0;
131
+ z-index: -1;
132
+ `};
133
+ `
134
+ ), Nt = N.divBox(
135
+ ({ withPagination: { desktop: t, mobile: e } }) => y`
136
+ justify-content: center;
137
+ position: absolute;
138
+ bottom: 0;
139
+ width: 100%;
140
+ padding: sm;
141
+
142
+ z-index: ${e ? 1 : -1};
143
+ display: ${e ? "flex" : "none"};
144
+
145
+ @media (min-width: md) {
146
+ z-index: ${t ? 1 : -1};
147
+ display: ${t ? "flex" : "none"};
148
+ }
149
+ `
150
+ ), _t = N.div(
151
+ ({ active: t, withDarkUI: e }) => y`
152
+ height: 10;
153
+ width: 10;
154
+ border-radius: 50%;
155
+ cursor: pointer;
156
+ margin: 0 xxs;
157
+ ${t ? Z("swipers.navigation.bullet.active") : Z("swipers.navigation.bullet.default")}
158
+ ${e && y`
159
+ background-color: ${t ? "neutral-90" : "neutral-50"};
160
+ `}
161
+ ${ot}
162
+ `
163
+ ), Ft = N.ulBox(({ fullWidth: t, slidesPerView: { desktop: e, mobile: n, tablet: o }, spaceBetween: r, theme: s }) => y`
164
+ scroll-snap-type: x mandatory;
165
+ display: flex;
166
+ -webkit-overflow-scrolling: touch;
167
+ overflow-x: scroll;
168
+ margin: 0;
169
+
170
+ /* Hide scrollbar */
171
+ -ms-overflow-style: none;
172
+ scrollbar-width: none;
173
+ &::-webkit-scrollbar {
174
+ display: none;
175
+ }
176
+ height: 100%;
177
+ padding: 0;
178
+
179
+ > [aria-roledescription='slide'][aria-hidden='true'] {
180
+ pointer-events: none;
181
+ }
182
+
183
+ > * {
184
+ list-style-type: none;
185
+ margin-right: ${r};
186
+ min-width: ${S(n, r, s.toRem)};
187
+ max-width: ${S(n, r, s.toRem)};
188
+ flex: 1;
189
+
190
+ &:last-child {
191
+ margin-right: 0;
192
+ }
193
+ }
194
+
195
+ @media (min-width: sm) {
196
+ ${n && y`
197
+ > * {
198
+ min-width: ${S(n, r, s.toRem)};
199
+ max-width: ${S(n, r, s.toRem)};
200
+
201
+ &:nth-of-type(${n}n + 1) {
202
+ scroll-snap-align: start;
203
+ }
204
+ }
205
+ `}
206
+ }
207
+
208
+ @media (min-width: md) {
209
+ ${o && y`
210
+ > * {
211
+ min-width: ${S(o, r, s.toRem)};
212
+ max-width: ${S(o, r, s.toRem)};
213
+
214
+ &:nth-of-type(${o}n + 1) {
215
+ scroll-snap-align: start;
216
+ }
217
+ }
218
+ `}
219
+ }
220
+
221
+ @media (min-width: lg) {
222
+ ${e && y`
223
+ > * {
224
+ min-width: ${S(e, r, s.toRem)};
225
+ max-width: ${S(e, r, s.toRem)};
226
+
227
+ scroll-snap-align: unset;
228
+
229
+ &:nth-of-type(${e}n + 1) {
230
+ scroll-snap-align: start;
231
+ }
232
+
233
+ &:not(:nth-of-type(${e}n + 1)) {
234
+ scroll-snap-align: unset;
235
+ }
236
+ }
237
+ `}
238
+ }
239
+
240
+ @media (min-width: xl) {
241
+ ${e && t && y`
242
+ > * {
243
+ min-width: ${S(e + 2, r, s.toRem)};
244
+ max-width: ${S(e + 2, r, s.toRem)};
245
+ }
246
+ `}
247
+ }
248
+ `), Bt = (t = {}) => {
249
+ const {
250
+ autoplay: e = !1,
251
+ centeredSlides: n = !1,
252
+ duration: o = 5e3,
253
+ firstSlideToShow: r = 0,
254
+ fullWidth: s = !1,
255
+ id: c = "swiper",
256
+ loop: a = !1,
257
+ navigationSize: w = "md",
258
+ slidesPerView: h = { mobile: 1, tablet: 1, desktop: 1 },
259
+ spaceBetween: C = 20,
260
+ withDarkUI: b = !1,
261
+ withNavigation: R = { mobile: !0, desktop: !0 },
262
+ withPagination: d = { mobile: !1, desktop: !1 }
263
+ } = t, O = a || e, { width: v } = pt(), [L, p] = K(0), [T, I] = K(!1), [z, g] = K(!1), i = rt(), { screens: f } = mt(), x = ft(() => v <= f.md ? h.mobile : v <= f.lg ? h.tablet : v >= f["4xl"] && s ? h.desktop + 2 : h.desktop, [s, v, f, h]);
264
+ return {
265
+ centeredSlides: n,
266
+ firstSlideToShow: r,
267
+ currentSlidesPerView: x,
268
+ currentPage: L,
269
+ setCurrentPage: p,
270
+ fullWidth: s,
271
+ id: c,
272
+ navigationSize: w,
273
+ slidesPerView: h,
274
+ spaceBetween: C,
275
+ withNavigation: R,
276
+ withPagination: d,
277
+ autoplay: e,
278
+ shouldLoop: O,
279
+ duration: o,
280
+ withDarkUI: b,
281
+ ref: i,
282
+ setShowLeftArrow: I,
283
+ setShowRightArrow: g,
284
+ showLeftArrow: T,
285
+ showRightArrow: z
286
+ };
287
+ }, Dt = ({ children: t, dataTestId: e, store: n, ...o }) => {
288
+ const {
289
+ autoplay: r,
290
+ centeredSlides: s,
291
+ currentPage: c,
292
+ currentSlidesPerView: a,
293
+ duration: w,
294
+ firstSlideToShow: h,
295
+ fullWidth: C,
296
+ id: b,
297
+ navigationSize: R,
298
+ ref: d,
299
+ setCurrentPage: O,
300
+ setShowLeftArrow: v,
301
+ setShowRightArrow: L,
302
+ shouldLoop: p,
303
+ showLeftArrow: T,
304
+ showRightArrow: I,
305
+ slidesPerView: z,
306
+ spaceBetween: g,
307
+ withDarkUI: i,
308
+ withNavigation: f,
309
+ withPagination: x
310
+ } = n, W = Y.toArray(t).length, B = Math.ceil(W / a), j = Array.from(Array(B).keys()), J = c === 0, H = c === j.length - 1, at = Y.map(t, (m, l) => {
311
+ const u = `${b}-${l}`, $ = l + 1, E = Math.ceil($ / a) - 1, P = H ? W - $ >= a : E !== c;
312
+ return ht(m, {
313
+ ...m.props,
314
+ id: u,
315
+ key: u,
316
+ "aria-hidden": P,
317
+ "aria-roledescription": "slide",
318
+ "aria-label": `${$} of ${W}`
319
+ });
320
+ }), lt = s ? (
321
+ // if centeredSlides is true, we calculate which number is the middle page
322
+ Math.floor(B / 2)
323
+ ) : (
324
+ // if centeredSlides is false, we calculate on which page the number in firstSlideToShow props is
325
+ Math.ceil(h / a) - 1
326
+ ), U = D(() => {
327
+ const m = d == null ? void 0 : d.current;
328
+ if (m && !p) {
329
+ const { offsetWidth: l, scrollLeft: u, scrollWidth: $ } = m, E = !(u > g), P = !($ - (u + l) > g);
330
+ v(!E), L(!P);
331
+ } else
332
+ v(!0), L(!0);
333
+ }, [d, v, L, p, g]), ct = () => {
334
+ var l, u;
335
+ const m = d == null ? void 0 : d.current;
336
+ if (m) {
337
+ const { children: $, offsetWidth: E, scrollLeft: P, scrollWidth: F } = m, ut = (u = (l = $ == null ? void 0 : $[0]) == null ? void 0 : l.getBoundingClientRect()) == null ? void 0 : u.width, Q = !(F - (P + E) > g) ? j.length - 1 : Math.round(P / ((ut + g) * a));
338
+ Q !== c && O(Q);
339
+ }
340
+ }, dt = zt(() => {
341
+ U(), ct();
342
+ }, 100), k = D(
343
+ (m, l = !1) => {
344
+ var E, P, F;
345
+ const u = d == null ? void 0 : d.current, $ = (F = (P = (E = u == null ? void 0 : u.children) == null ? void 0 : E[0]) == null ? void 0 : P.getBoundingClientRect()) == null ? void 0 : F.width;
346
+ u == null || u.scrollTo({
347
+ left: m * ($ + g) * a,
348
+ top: 0,
349
+ // We don't want to have a scroll effect when we first render the swiper
350
+ behavior: l ? "auto" : "smooth"
351
+ });
352
+ },
353
+ [a, g, d]
354
+ ), _ = D(() => {
355
+ k(p && H ? 0 : c + 1);
356
+ }, [c, k, H, p]), G = D(() => {
357
+ k(J && p ? j.length - 1 : c - 1);
358
+ }, [j.length, c, k, J, p]);
359
+ return Mt(
360
+ () => {
361
+ r && _();
362
+ },
363
+ r ? w : null
364
+ ), M(() => {
365
+ const m = (l) => {
366
+ l.code === "ArrowLeft" && G(), l.code === "ArrowRight" && _();
367
+ };
368
+ return window.addEventListener("keydown", m), () => window.removeEventListener("keydown", m);
369
+ }, [G, _]), M(() => {
370
+ k(lt, !0);
371
+ }, []), M(() => {
372
+ U();
373
+ }, [U, t]), /* @__PURE__ */ A.createElement(st, { "data-testid": e, ...o }, /* @__PURE__ */ A.createElement(
374
+ Ft,
375
+ {
376
+ fullWidth: C,
377
+ onScroll: dt,
378
+ ref: d,
379
+ slidesPerView: z,
380
+ spaceBetween: g
381
+ },
382
+ at
383
+ ), /* @__PURE__ */ A.createElement(
384
+ it,
385
+ {
386
+ "data-testid": e && `${e}-prev-button`,
387
+ disabled: !T,
388
+ left: 10,
389
+ onClick: G,
390
+ position: "absolute",
391
+ shape: "circle",
392
+ size: R,
393
+ variant: i ? "secondary" : "ghost",
394
+ withDarkUI: i,
395
+ withNavigation: f
396
+ },
397
+ /* @__PURE__ */ A.createElement(tt.Left, null)
398
+ ), /* @__PURE__ */ A.createElement(
399
+ it,
400
+ {
401
+ "data-testid": e && `${e}-next-button`,
402
+ disabled: !I,
403
+ onClick: _,
404
+ position: "absolute",
405
+ right: 10,
406
+ shape: "circle",
407
+ size: R,
408
+ variant: i ? "secondary" : "ghost",
409
+ withDarkUI: i,
410
+ withNavigation: f
411
+ },
412
+ /* @__PURE__ */ A.createElement(tt.Right, null)
413
+ ), /* @__PURE__ */ A.createElement(
414
+ Nt,
415
+ {
416
+ className: "swiper-pagination",
417
+ "data-testid": e && `${e}-pagination`,
418
+ role: "tablist",
419
+ withPagination: x
420
+ },
421
+ j.length > 1 && j.map((m, l) => {
422
+ const u = {
423
+ idx: l,
424
+ role: "tab",
425
+ "aria-controls": `${b}-${l}`,
426
+ "aria-label": `${l + 1} of ${j.length}`,
427
+ "aria-selected": l === c,
428
+ onClick: () => k(l)
429
+ };
430
+ return /* @__PURE__ */ A.createElement(
431
+ _t,
432
+ {
433
+ active: l === c,
434
+ key: `bullet-${l + 1}`,
435
+ withDarkUI: i,
436
+ ...u
437
+ }
438
+ );
439
+ })
440
+ ));
441
+ };
442
+ Dt.displayName = "Swiper";
443
+ const Jt = st;
444
+ export {
445
+ Jt as StyledSwiper,
446
+ Dt as Swiper,
447
+ Bt as useSwiper
448
+ };
package/dist/System.js CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),t=require("@xstyled/styled-components");function a(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const p=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const e=a(t),i=t.compose(t.style({prop:"opacity"}),t.style({prop:"overflow"}),t.style({prop:"transition",themeGet:t.getTransition}),t.style({prop:"position"}),t.style({prop:"zIndex",themeGet:t.getZIndex}),t.style({prop:"top",themeGet:t.getPx}),t.style({prop:"right",themeGet:t.getPx}),t.style({prop:"bottom",themeGet:t.getPx}),t.style({prop:"left",themeGet:t.getPx})),l=Object.freeze([e.backgrounds,e.borders,e.boxShadow,e.color,e.display,e.flexboxes,e.grids,e.height,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.space,e.typography,e.verticalAlign,e.width,i]),d=Object.freeze([e.margin,e.marginBottom,e.marginLeft,e.marginRight,e.marginTop,e.mx,e.my,e.width,i]),n=t.compose(...l),c=t.compose(...d),f=n.meta.props.filter(o=>!c.meta.props.includes(o)).map(o=>o==="w"?e.width:o==="h"?e.height:e[o]).filter(Boolean),g=t.compose(...f),y=o=>!n.meta.props.includes(o),u=(o,r)=>r(o),h=o=>m.forwardRef(o);exports.componentSystem=g;exports.filterSystemProps=y;exports.forwardRef=h;exports.shouldForwardProp=u;exports.system=n;exports.wrapperSystem=c;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),t=require("@xstyled/styled-components");function a(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const p=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(r,s,p.get?p:{enumerable:!0,get:()=>o[s]})}}return r.default=o,Object.freeze(r)}const e=a(t),i=t.compose(t.style({prop:"opacity"}),t.style({prop:"overflow"}),t.style({prop:"transition",themeGet:t.getTransition}),t.style({prop:"position"}),t.style({prop:"zIndex",themeGet:t.getZIndex}),t.style({prop:"top",themeGet:t.getPx}),t.style({prop:"right",themeGet:t.getPx}),t.style({prop:"bottom",themeGet:t.getPx}),t.style({prop:"left",themeGet:t.getPx})),l=Object.freeze([e.backgrounds,e.borders,e.boxShadow,e.color,e.display,e.flexboxes,e.grids,e.height,e.maxHeight,e.maxWidth,e.minHeight,e.minWidth,e.space,e.typography,e.verticalAlign,e.width,i]),d=Object.freeze([e.margin,e.marginBottom,e.marginLeft,e.marginRight,e.marginTop,e.mx,e.my,e.width,i]),n=t.compose(...l),c=t.compose(...d),y=n.meta.props.filter(o=>!c.meta.props.includes(o)).map(o=>o==="w"?e.width:o==="h"?e.height:e[o]).filter(Boolean),f=t.compose(...y),g=o=>!n.meta.props.includes(o),u=(o,r)=>r(o),h=o=>m.forwardRef(o);exports.componentSystem=f;exports.filterSystemProps=g;exports.forwardRef=h;exports.shouldForwardProp=u;exports.system=n;exports.wrapperSystem=c;
package/dist/System.mjs CHANGED
@@ -40,12 +40,12 @@ const i = p(
40
40
  t.my,
41
41
  t.width,
42
42
  i
43
- ]), n = p(...h), f = p(...d), g = n.meta.props.filter((e) => !f.meta.props.includes(e)).map((e) => e === "w" ? t.width : e === "h" ? t.height : t[e]).filter(Boolean), u = p(...g), w = (e) => !n.meta.props.includes(e), x = (e, s) => s(e), y = (e) => m.forwardRef(e);
43
+ ]), n = p(...h), f = p(...d), l = n.meta.props.filter((e) => !f.meta.props.includes(e)).map((e) => e === "w" ? t.width : e === "h" ? t.height : t[e]).filter(Boolean), P = p(...l), u = (e) => !n.meta.props.includes(e), w = (e, s) => s(e), x = (e) => m.forwardRef(e);
44
44
  export {
45
- u as componentSystem,
46
- w as filterSystemProps,
47
- y as forwardRef,
48
- x as shouldForwardProp,
45
+ P as componentSystem,
46
+ u as filterSystemProps,
47
+ x as forwardRef,
48
+ w as shouldForwardProp,
49
49
  n as system,
50
50
  f as wrapperSystem
51
51
  };
package/dist/Table.js ADDED
@@ -0,0 +1,55 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react"),n=require("./System.js"),t=require("@xstyled/styled-components"),c=t.divBox(({indent:e})=>t.css`
2
+ overflow: hidden;
3
+ width: 100%;
4
+
5
+ ${e&&t.css`
6
+ ${i}, ${o} {
7
+ &:first-child {
8
+ padding-left: xl;
9
+ }
10
+
11
+ &:last-child {
12
+ padding-right: xl;
13
+ }
14
+ }
15
+ `}
16
+ `),h=t.div`
17
+ width: 100%;
18
+ overflow-x: auto;
19
+ `,b=t.tableBox`
20
+ border: 0;
21
+ width: 100%;
22
+ border-collapse: collapse;
23
+ `,T=t.theadBox``,g=t.tbodyBox``,p=t.trBox(({onClick:e,variant:l})=>t.css`
24
+ ${t.th("tables.tr.default")};
25
+ ${l&&t.th(`tables.tr.${l}`)};
26
+ ${e&&t.th("tables.tr.clickable")};
27
+
28
+ &:last-child {
29
+ border: 0;
30
+ }
31
+ `),o=t.thBox`
32
+ ${t.th("tables.th")};
33
+ padding: xl;
34
+ vertical-align: middle;
35
+
36
+ &:first-child {
37
+ padding-left: 0;
38
+ }
39
+
40
+ &:last-child {
41
+ padding-right: 0;
42
+ }
43
+ `,i=t.tdBox`
44
+ ${t.th("tables.td")};
45
+ position: relative;
46
+ vertical-align: middle;
47
+
48
+ &:first-child {
49
+ padding-left: 0;
50
+ }
51
+
52
+ &:last-child {
53
+ padding-right: 0;
54
+ }
55
+ `,a=n.forwardRef(({children:e,indent:l,...r},s)=>d.createElement(c,{indent:l,ref:s,...r},d.createElement(h,null,d.createElement(b,null,e)))),f=Object.assign(a,{Thead:T,Tbody:g,Th:o,Tr:p,Td:i});exports.Table=f;exports.TableComponent=a;