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
@@ -1,509 +1,21 @@
1
1
  "use client";
2
- import * as K from "react";
3
- import L, { createContext as pe, useRef as me, useState as Se, useEffect as we, useMemo as Pe, cloneElement as Ae } from "react";
4
- import { R as Re } from "./index-Bwrtxit1.mjs";
5
- import { forwardRef as Le } from "./System.mjs";
6
- import q, { th as I, system as Ve } from "@xstyled/styled-components";
7
- import { i as Z, h as B, g as Te, c as ue, p as $e, o as je, a as Ie, _ as ve, b as Ee, n as Ne, d as Me, u as j, e as G, f as $, j as _e, k as Ue, l as H, m as Be, q as ge, r as he, s as ee, t as te, v as qe, w as He, x as ye, y as Ke, z as De, A as We, C as Ge, D as Fe, E as Oe } from "./X5NMLKT6-BC1Q56kB.mjs";
8
- import { r as ze } from "./index-WmqrMIzg.mjs";
9
- function Ye(e) {
10
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
11
- }
12
- function N(e, n) {
13
- const t = e.__unstableInternals;
14
- return Z(t, "Invalid store"), t[n];
15
- }
16
- function F(e, ...n) {
17
- let t = e, r = t, a = Symbol(), s = Ne;
18
- const o = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), E = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new WeakMap(), p = /* @__PURE__ */ new WeakMap(), m = (l) => (E.add(l), () => E.delete(l)), y = () => {
19
- const l = o.size, c = Symbol();
20
- o.add(c);
21
- const x = () => {
22
- o.delete(c), !o.size && s();
23
- };
24
- if (l) return x;
25
- const w = Te(t).map(
26
- (P) => ue(
27
- ...n.map((R) => {
28
- var h;
29
- const T = (h = R == null ? void 0 : R.getState) == null ? void 0 : h.call(R);
30
- if (T && B(T, P))
31
- return z(R, [P], (U) => {
32
- v(
33
- P,
34
- U[P],
35
- // @ts-expect-error - Not public API. This is just to prevent
36
- // infinite loops.
37
- !0
38
- );
39
- });
40
- })
41
- )
42
- ), V = [];
43
- for (const P of E)
44
- V.push(P());
45
- const M = n.map(be);
46
- return s = ue(...w, ...V, ...M), x;
47
- }, S = (l, c, x = _) => (x.add(c), p.set(c, l), () => {
48
- var w;
49
- (w = u.get(c)) == null || w(), u.delete(c), p.delete(c), x.delete(c);
50
- }), O = (l, c) => S(l, c), A = (l, c) => (u.set(c, c(t, t)), S(l, c)), b = (l, c) => (u.set(c, c(t, r)), S(l, c, g)), d = (l) => F($e(t, l), C), f = (l) => F(je(t, l), C), D = () => t, v = (l, c, x = !1) => {
51
- var w;
52
- if (!B(t, l)) return;
53
- const V = Ie(c, t[l]);
54
- if (V === t[l]) return;
55
- if (!x)
56
- for (const h of n)
57
- (w = h == null ? void 0 : h.setState) == null || w.call(h, l, V);
58
- const M = t;
59
- t = ve(Ee({}, t), { [l]: V });
60
- const P = Symbol();
61
- a = P, i.add(l);
62
- const R = (h, T, U) => {
63
- var se;
64
- const ae = p.get(h), Ce = (ie) => U ? U.has(ie) : ie === l;
65
- (!ae || ae.some(Ce)) && ((se = u.get(h)) == null || se(), u.set(h, h(t, T)));
66
- };
67
- for (const h of _)
68
- R(h, M);
69
- queueMicrotask(() => {
70
- if (a !== P) return;
71
- const h = t;
72
- for (const T of g)
73
- R(T, r, i);
74
- r = h, i.clear();
75
- });
76
- }, C = {
77
- getState: D,
78
- setState: v,
79
- __unstableInternals: {
80
- setup: m,
81
- init: y,
82
- subscribe: O,
83
- sync: A,
84
- batch: b,
85
- pick: d,
86
- omit: f
87
- }
88
- };
89
- return C;
90
- }
91
- function Y(e, ...n) {
92
- if (e)
93
- return N(e, "setup")(...n);
94
- }
95
- function be(e, ...n) {
96
- if (e)
97
- return N(e, "init")(...n);
98
- }
99
- function xe(e, ...n) {
100
- if (e)
101
- return N(e, "subscribe")(...n);
102
- }
103
- function z(e, ...n) {
104
- if (e)
105
- return N(e, "sync")(...n);
106
- }
107
- function ke(e, ...n) {
108
- if (e)
109
- return N(e, "batch")(...n);
110
- }
111
- function Je(e, ...n) {
112
- if (e)
113
- return N(e, "omit")(...n);
114
- }
115
- function Qe(...e) {
116
- const n = e.reduce((r, a) => {
117
- var s;
118
- const o = (s = a == null ? void 0 : a.getState) == null ? void 0 : s.call(a);
119
- return o ? Object.assign(r, o) : r;
120
- }, {}), t = F(n, ...e);
121
- return Object.assign({}, ...e, t);
122
- }
123
- function Xe(e, n) {
124
- if (process.env.NODE_ENV === "production" || !n) return;
125
- const t = Object.entries(e).filter(([s, o]) => s.startsWith("default") && o !== void 0).map(([s]) => {
126
- var o;
127
- const i = s.replace("default", "");
128
- return `${((o = i[0]) == null ? void 0 : o.toLowerCase()) || ""}${i.slice(1)}`;
129
- });
130
- if (!t.length) return;
131
- const r = n.getState();
132
- if (t.filter(
133
- (s) => B(r, s)
134
- ).length)
135
- throw new Error(
136
- `Passing a store prop in conjunction with a default state is not supported.
137
-
138
- const store = useSelectStore();
139
- <SelectProvider store={store} defaultValue="Apple" />
140
- ^ ^
141
-
142
- Instead, pass the default state to the topmost store:
143
-
144
- const store = useSelectStore({ defaultValue: "Apple" });
145
- <SelectProvider store={store} />
146
-
147
- See https://github.com/ariakit/ariakit/pull/2745 for more details.
148
-
149
- If there's a particular need for this, please submit a feature request at https://github.com/ariakit/ariakit
150
- `
151
- );
152
- }
153
- var X = { exports: {} }, k = {}, ce;
154
- function Ze() {
155
- if (ce) return k;
156
- ce = 1;
157
- var e = L;
158
- function n(u, p) {
159
- return u === p && (u !== 0 || 1 / u === 1 / p) || u !== u && p !== p;
160
- }
161
- var t = typeof Object.is == "function" ? Object.is : n, r = e.useState, a = e.useEffect, s = e.useLayoutEffect, o = e.useDebugValue;
162
- function i(u, p) {
163
- var m = p(), y = r({ inst: { value: m, getSnapshot: p } }), S = y[0].inst, O = y[1];
164
- return s(function() {
165
- S.value = m, S.getSnapshot = p, E(S) && O({ inst: S });
166
- }, [u, m, p]), a(function() {
167
- return E(S) && O({ inst: S }), u(function() {
168
- E(S) && O({ inst: S });
169
- });
170
- }, [u]), o(m), m;
171
- }
172
- function E(u) {
173
- var p = u.getSnapshot;
174
- u = u.value;
175
- try {
176
- var m = p();
177
- return !t(u, m);
178
- } catch {
179
- return !0;
180
- }
181
- }
182
- function _(u, p) {
183
- return p();
184
- }
185
- var g = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? _ : i;
186
- return k.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : g, k;
187
- }
188
- var J = {}, le;
189
- function et() {
190
- return le || (le = 1, process.env.NODE_ENV !== "production" && function() {
191
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
192
- var e = L, n = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
193
- function t(d) {
194
- {
195
- for (var f = arguments.length, D = new Array(f > 1 ? f - 1 : 0), v = 1; v < f; v++)
196
- D[v - 1] = arguments[v];
197
- r("error", d, D);
198
- }
199
- }
200
- function r(d, f, D) {
201
- {
202
- var v = n.ReactDebugCurrentFrame, C = v.getStackAddendum();
203
- C !== "" && (f += "%s", D = D.concat([C]));
204
- var l = D.map(function(c) {
205
- return String(c);
206
- });
207
- l.unshift("Warning: " + f), Function.prototype.apply.call(console[d], console, l);
208
- }
209
- }
210
- function a(d, f) {
211
- return d === f && (d !== 0 || 1 / d === 1 / f) || d !== d && f !== f;
212
- }
213
- var s = typeof Object.is == "function" ? Object.is : a, o = e.useState, i = e.useEffect, E = e.useLayoutEffect, _ = e.useDebugValue, g = !1, u = !1;
214
- function p(d, f, D) {
215
- g || e.startTransition !== void 0 && (g = !0, t("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
216
- var v = f();
217
- if (!u) {
218
- var C = f();
219
- s(v, C) || (t("The result of getSnapshot should be cached to avoid an infinite loop"), u = !0);
220
- }
221
- var l = o({
222
- inst: {
223
- value: v,
224
- getSnapshot: f
225
- }
226
- }), c = l[0].inst, x = l[1];
227
- return E(function() {
228
- c.value = v, c.getSnapshot = f, m(c) && x({
229
- inst: c
230
- });
231
- }, [d, v, f]), i(function() {
232
- m(c) && x({
233
- inst: c
234
- });
235
- var w = function() {
236
- m(c) && x({
237
- inst: c
238
- });
239
- };
240
- return d(w);
241
- }, [d]), _(v), v;
242
- }
243
- function m(d) {
244
- var f = d.getSnapshot, D = d.value;
245
- try {
246
- var v = f();
247
- return !s(D, v);
248
- } catch {
249
- return !0;
250
- }
251
- }
252
- function y(d, f, D) {
253
- return f();
254
- }
255
- var S = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", O = !S, A = O ? y : p, b = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : A;
256
- J.useSyncExternalStore = b, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
257
- }()), J;
258
- }
259
- process.env.NODE_ENV === "production" ? X.exports = Ze() : X.exports = et();
260
- var tt = X.exports;
261
- const nt = /* @__PURE__ */ Ye(tt);
262
- var { useSyncExternalStore: rt } = nt, ot = () => () => {
263
- };
264
- function ne(e, n = Me) {
265
- const t = K.useCallback(
266
- (a) => e ? xe(e, null, a) : ot(),
267
- [e]
268
- ), r = () => {
269
- const a = typeof n == "string" ? n : null, s = typeof n == "function" ? n : null, o = e == null ? void 0 : e.getState();
270
- if (s) return s(o);
271
- if (o && a && B(o, a))
272
- return o[a];
273
- };
274
- return rt(t, r, r);
275
- }
276
- function Q(e, n, t, r) {
277
- const a = B(n, t) ? n[t] : void 0, s = r ? n[r] : void 0, o = Ue({ value: a, setValue: s });
278
- j(() => z(e, [t], (i, E) => {
279
- const { value: _, setValue: g } = o.current;
280
- g && i[t] !== E[t] && i[t] !== _ && g(i[t]);
281
- }), [e, t]), j(() => {
282
- if (a !== void 0)
283
- return e.setState(t, a), ke(e, [t], () => {
284
- a !== void 0 && e.setState(t, a);
285
- });
286
- });
287
- }
288
- function st(e, n) {
289
- const [t, r] = K.useState(() => e(n));
290
- j(() => be(t), [t]);
291
- const a = K.useCallback(
292
- (i) => ne(t, i),
293
- [t]
294
- ), s = K.useMemo(
295
- () => G($({}, t), { useState: a }),
296
- [t, a]
297
- ), o = _e(() => {
298
- r((i) => e($($({}, n), i.getState())));
299
- });
300
- return [s, o];
301
- }
302
- function at(e = {}) {
303
- const n = Qe(
304
- e.store,
305
- Je(e.disclosure, ["contentElement", "disclosureElement"])
306
- );
307
- Xe(e, n);
308
- const t = n == null ? void 0 : n.getState(), r = H(
309
- e.open,
310
- t == null ? void 0 : t.open,
311
- e.defaultOpen,
312
- !1
313
- ), a = H(e.animated, t == null ? void 0 : t.animated, !1), s = {
314
- open: r,
315
- animated: a,
316
- animating: !!a && r,
317
- mounted: r,
318
- contentElement: H(t == null ? void 0 : t.contentElement, null),
319
- disclosureElement: H(t == null ? void 0 : t.disclosureElement, null)
320
- }, o = F(s, n);
321
- return Y(
322
- o,
323
- () => z(o, ["animated", "animating"], (i) => {
324
- i.animated || o.setState("animating", !1);
325
- })
326
- ), Y(
327
- o,
328
- () => xe(o, ["open"], () => {
329
- o.getState().animated && o.setState("animating", !0);
330
- })
331
- ), Y(
332
- o,
333
- () => z(o, ["open", "animating"], (i) => {
334
- o.setState("mounted", i.open || i.animating);
335
- })
336
- ), ve(Ee({}, o), {
337
- disclosure: e.disclosure,
338
- setOpen: (i) => o.setState("open", i),
339
- show: () => o.setState("open", !0),
340
- hide: () => o.setState("open", !1),
341
- toggle: () => o.setState("open", (i) => !i),
342
- stopAnimation: () => o.setState("animating", !1),
343
- setContentElement: (i) => o.setState("contentElement", i),
344
- setDisclosureElement: (i) => o.setState("disclosureElement", i)
345
- });
346
- }
347
- function it(e, n, t) {
348
- return Be(n, [t.store, t.disclosure]), Q(e, t, "open", "setOpen"), Q(e, t, "mounted", "setMounted"), Q(e, t, "animated"), Object.assign(e, { disclosure: t.disclosure });
349
- }
350
- function ut(e = {}) {
351
- const [n, t] = st(at, e);
352
- return it(n, t, e);
353
- }
354
- var re = ge(), oe = re.useProviderContext, ct = re.ContextProvider, lt = re.ScopedContextProvider, dt = ge(
355
- [ct],
356
- [lt]
357
- ), ft = dt.ScopedContextProvider;
358
- pe(void 0);
359
- pe(void 0);
360
- var pt = "button", mt = Symbol("disclosure"), St = he(
361
- function(n) {
362
- var t = n, { store: r, toggleOnClick: a = !0 } = t, s = te(t, ["store", "toggleOnClick"]);
363
- const o = oe();
364
- r = r || o, Z(
365
- r,
366
- process.env.NODE_ENV !== "production" && "Disclosure must receive a `store` prop or be wrapped in a DisclosureProvider component."
367
- );
368
- const i = me(null), [E, _] = Se(!1), g = r.useState("disclosureElement"), u = r.useState("open");
369
- we(() => {
370
- let b = g === i.current;
371
- g != null && g.isConnected || (r == null || r.setDisclosureElement(i.current), b = !0), _(u && b);
372
- }, [g, r, u]);
373
- const p = s.onClick, m = qe(a), [y, S] = He(s, mt, !0), O = _e((b) => {
374
- p == null || p(b), !b.defaultPrevented && (y || m(b) && (r == null || r.setDisclosureElement(b.currentTarget), r == null || r.toggle()));
375
- }), A = r.useState("contentElement");
376
- return s = G($($({
377
- "aria-expanded": E,
378
- "aria-controls": A == null ? void 0 : A.id
379
- }, S), s), {
380
- ref: ye(i, s.ref),
381
- onClick: O
382
- }), s = Ke(s), s;
383
- }
384
- ), vt = ee(function(n) {
385
- const t = St(n);
386
- return De(pt, t);
387
- }), Et = "div";
388
- function de(e, n) {
389
- const t = setTimeout(n, e);
390
- return () => clearTimeout(t);
391
- }
392
- function _t(e) {
393
- let n = requestAnimationFrame(() => {
394
- n = requestAnimationFrame(e);
395
- });
396
- return () => cancelAnimationFrame(n);
397
- }
398
- function fe(...e) {
399
- return e.join(", ").split(", ").reduce((n, t) => {
400
- const r = t.endsWith("ms") ? 1 : 1e3, a = Number.parseFloat(t || "0s") * r;
401
- return a > n ? a : n;
402
- }, 0);
403
- }
404
- function gt(e, n, t) {
405
- return !t && n !== !1 && (!e || !!n);
406
- }
407
- var ht = he(function(n) {
408
- var t = n, { store: r, alwaysVisible: a } = t, s = te(t, ["store", "alwaysVisible"]);
409
- const o = oe();
410
- r = r || o, Z(
411
- r,
412
- process.env.NODE_ENV !== "production" && "DisclosureContent must receive a `store` prop or be wrapped in a DisclosureProvider component."
413
- );
414
- const i = me(null), E = We(s.id), [_, g] = Se(null), u = r.useState("open"), p = r.useState("mounted"), m = r.useState("animated"), y = r.useState("contentElement"), S = ne(r.disclosure, "contentElement");
415
- j(() => {
416
- i.current && (r == null || r.setContentElement(i.current));
417
- }, [r]), j(() => {
418
- let d;
419
- return r == null || r.setState("animated", (f) => (d = f, !0)), () => {
420
- d !== void 0 && (r == null || r.setState("animated", d));
421
- };
422
- }, [r]), j(() => {
423
- if (m) {
424
- if (!(y != null && y.isConnected)) {
425
- g(null);
426
- return;
427
- }
428
- return _t(() => {
429
- g(u ? "enter" : p ? "leave" : null);
430
- });
431
- }
432
- }, [m, y, u, p]), j(() => {
433
- if (!r || !m || !_ || !y) return;
434
- const d = () => r == null ? void 0 : r.setState("animating", !1), f = () => ze.flushSync(d);
435
- if (_ === "leave" && u || _ === "enter" && !u) return;
436
- if (typeof m == "number")
437
- return de(m, f);
438
- const {
439
- transitionDuration: D,
440
- animationDuration: v,
441
- transitionDelay: C,
442
- animationDelay: l
443
- } = getComputedStyle(y), {
444
- transitionDuration: c = "0",
445
- animationDuration: x = "0",
446
- transitionDelay: w = "0",
447
- animationDelay: V = "0"
448
- } = S ? getComputedStyle(S) : {}, M = fe(
449
- C,
450
- l,
451
- w,
452
- V
453
- ), P = fe(
454
- D,
455
- v,
456
- c,
457
- x
458
- ), R = M + P;
459
- if (!R) {
460
- _ === "enter" && r.setState("animated", !1), d();
461
- return;
462
- }
463
- const h = 1e3 / 60, T = Math.max(R - h, 0);
464
- return de(T, f);
465
- }, [r, m, y, S, u, _]), s = Ge(
466
- s,
467
- (d) => /* @__PURE__ */ Oe.jsx(ft, { value: r, children: d }),
468
- [r]
469
- );
470
- const O = gt(p, s.hidden, a), A = s.style, b = Pe(() => O ? G($({}, A), { display: "none" }) : A, [O, A]);
471
- return s = G($({
472
- id: E,
473
- "data-open": u || void 0,
474
- "data-enter": _ === "enter" || void 0,
475
- "data-leave": _ === "leave" || void 0,
476
- hidden: O
477
- }, s), {
478
- ref: ye(E ? r.setContentElement : null, i, s.ref),
479
- style: b
480
- }), Fe(s);
481
- }), yt = ee(function(n) {
482
- const t = ht(n);
483
- return De(Et, t);
484
- }), Dt = ee(function(n) {
485
- var t = n, {
486
- unmountOnHide: r
487
- } = t, a = te(t, [
488
- "unmountOnHide"
489
- ]);
490
- const s = oe(), o = a.store || s;
491
- return ne(
492
- o,
493
- (E) => !r || (E == null ? void 0 : E.mounted)
494
- ) === !1 ? null : /* @__PURE__ */ Oe.jsx(yt, $({}, a));
495
- });
496
- const Ot = q.div`
497
- ${I("accordions.wrapper")};
498
- ${Ve};
2
+ import t, { cloneElement as m } from "react";
3
+ import { R as u } from "./index-ColyClKR.mjs";
4
+ import { forwardRef as p } from "./System.mjs";
5
+ import r, { th as o, system as f } from "@xstyled/styled-components";
6
+ import { D as g } from "./P4IRICAX-DF0_vmod.mjs";
7
+ import { d as h, e as $ } from "./VGCJ63VH-fv0YLRh8.mjs";
8
+ const w = r.div`
9
+ ${o("accordions.wrapper")};
10
+ ${f};
499
11
  transition: medium;
500
12
 
501
13
  &:hover {
502
14
  border-color: neutral-50;
503
15
  }
504
- `, W = q.divBox`
16
+ `, n = r.divBox`
505
17
  flex-shrink: 0;
506
- ${I("accordions.icon")};
18
+ ${o("accordions.icon")};
507
19
  transform: rotate3d(0);
508
20
  transition: medium;
509
21
  width: 24;
@@ -515,10 +27,10 @@ const Ot = q.div`
515
27
  & *:first-child {
516
28
  margin: auto;
517
29
  }
518
- `, bt = q(vt)`
519
- ${I("accordions.title")};
30
+ `, x = r(g)`
31
+ ${o("accordions.title")};
520
32
  width: 100%;
521
- padding: ${I("accordions.padding")};
33
+ padding: ${o("accordions.padding")};
522
34
  background-color: transparent;
523
35
  border: 0;
524
36
  display: flex;
@@ -527,7 +39,7 @@ const Ot = q.div`
527
39
  gap: xxl;
528
40
 
529
41
  &[aria-expanded='true'] {
530
- ${W} {
42
+ ${n} {
531
43
  transform: rotate3d(0, 0, 1, 90deg);
532
44
  }
533
45
  }
@@ -535,18 +47,18 @@ const Ot = q.div`
535
47
  &:focus,
536
48
  &:hover {
537
49
  cursor: pointer;
538
- ${W} {
50
+ ${n} {
539
51
  background-color: neutral-30;
540
52
  }
541
53
  }
542
54
 
543
55
  &:focus {
544
56
  outline: 0;
545
- ${W} {
57
+ ${n} {
546
58
  color: inherit;
547
59
  }
548
60
  }
549
- `, xt = q(Dt)`
61
+ `, E = r(h)`
550
62
  display: grid;
551
63
  grid-template-rows: 0fr;
552
64
  transition-property: grid-template-rows;
@@ -562,18 +74,18 @@ const Ot = q.div`
562
74
  &[data-enter] {
563
75
  grid-template-rows: 1fr;
564
76
  }
565
- `, Ct = q.div`
566
- ${I("accordions.content")};
567
- padding: ${I("accordions.padding")};
77
+ `, v = r.div`
78
+ ${o("accordions.content")};
79
+ padding: ${o("accordions.padding")};
568
80
  padding-top: 0;
569
81
  color: neutral-70;
570
- `, Tt = Le(
571
- ({ children: e, dataTestId: n, icon: t = /* @__PURE__ */ L.createElement(Re, null), store: r, title: a, ...s }, o) => /* @__PURE__ */ L.createElement(Ot, { "data-testid": n, ref: o, ...s }, /* @__PURE__ */ L.createElement(bt, { "data-testid": n ? `${n}-title` : void 0, store: r }, a, /* @__PURE__ */ L.createElement(W, null, Ae(t, { size: "sm" }))), /* @__PURE__ */ L.createElement(xt, { "data-testid": n ? `${n}-content` : void 0, store: r }, /* @__PURE__ */ L.createElement("div", null, /* @__PURE__ */ L.createElement(Ct, null, e))))
82
+ `, k = p(
83
+ ({ children: i, dataTestId: e, icon: c = /* @__PURE__ */ t.createElement(u, null), store: a, title: d, ...s }, l) => /* @__PURE__ */ t.createElement(w, { "data-testid": e, ref: l, ...s }, /* @__PURE__ */ t.createElement(x, { "data-testid": e ? `${e}-title` : void 0, store: a }, d, /* @__PURE__ */ t.createElement(n, null, m(c, { size: "sm" }))), /* @__PURE__ */ t.createElement(E, { "data-testid": e ? `${e}-content` : void 0, store: a }, /* @__PURE__ */ t.createElement("div", null, /* @__PURE__ */ t.createElement(v, null, i))))
572
84
  );
573
- function $t(e) {
574
- return ut({ animated: !0, ...e });
85
+ function A(i) {
86
+ return $({ animated: !0, ...i });
575
87
  }
576
88
  export {
577
- Tt as Accordion,
578
- $t as useAccordion
89
+ k as Accordion,
90
+ A as useAccordion
579
91
  };
package/dist/Alert.js CHANGED
@@ -1 +1,37 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const e=require("./index-BNA_A0oa.js");require("./System.js");require("./Box.js");exports.Alert=e.Alert;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),v=require("./CloseButton.js"),x=require("./Button.js"),f=require("./System.js"),u=require("./Box.js"),t=require("@xstyled/styled-components"),I=require("./Text.js"),T=require("./VariantIcon.js"),m=t.divBox`
2
+ flex: 1;
3
+ `,y=t(T.VariantIcon)`
4
+ position: absolute;
5
+ align-self: flex-start;
6
+ `,R=t.divBox(({icon:r,isFullWidth:o,size:s,variant:a})=>t.css`
7
+ position: relative;
8
+ display: flex;
9
+ align-items: flex-start;
10
+ width: 100%;
11
+ max-width: ${o?"100%":"max-content"};
12
+ ${t.th("alerts.default")};
13
+ ${t.th(`alerts.${a}`)};
14
+ ${t.th(`alerts.sizes.${s}`)};
15
+ ${t.system};
16
+
17
+ ${r!==null&&s==="sm"&&t.css`
18
+ ${m} {
19
+ margin-left: calc(${t.th("icons.sm")} + ${t.th("space.md")});
20
+ }
21
+ `}
22
+
23
+ ${r!==null&&s==="md"&&t.css`
24
+ ${m} {
25
+ margin-left: calc(${t.th("icons.md")} + ${t.th("space.lg")});
26
+ }
27
+
28
+ ${y} {
29
+ margin-top: -3;
30
+ }
31
+ `}
32
+ `),V=t(I.Text)(({variant:r})=>t.css`
33
+ font-weight: medium;
34
+ ${t.th("alerts.title.default")};
35
+ ${t.th(`alerts.title.sizes.${r}`)};
36
+ ${t.system};
37
+ `),g=({children:r,dataTestId:o,variant:s})=>e.createElement(V,{"data-testid":o,variant:s},r),j=f.forwardRef(({children:r,cta:o,dataTestId:s,handleClose:a,icon:c,isFullWidth:w,size:l="sm",variant:i="default",...b},h)=>{const q=s?`${s}-close-button`:void 0,A=i==="beige"?"default":i,C=e.Children.toArray(r).map(n=>n.type===g?e.cloneElement(n,{variant:l}):n),p=n=>{var $;if(n){if(n.type===B)return e.cloneElement(n,{size:l});if(n.type===E)return e.cloneElement(n,{size:l});if(($=n.props)!=null&&$.children)return e.cloneElement(n,{...n.props,children:e.Children.map(n.props.children,S=>p(S))})}return n},d=e.isValidElement(o)?p(o):o;return e.createElement(R,{"data-testid":s,icon:c,isFullWidth:w,ref:h,size:l,variant:i,...b},!!a&&e.createElement(v.CloseButton,{dataTestId:q,onClick:a,position:"absolute",right:"sm",size:"xs",top:"sm"}),c!==null&&e.createElement(y,{icon:c,size:l,variant:A}),e.createElement(m,null,e.createElement(u.Box,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:"md",justifyContent:"space-between"},e.createElement(u.Box,{flex:1},C),!!d&&e.createElement(u.Box,{alignItems:"center",display:"flex",gap:"sm"},d))))}),B=f.forwardRef((r,o)=>e.createElement(x.Button,{flexShrink:0,ref:o,w:"fit-content",...r,variant:"secondary"})),E=f.forwardRef((r,o)=>e.createElement(x.Button,{flexShrink:0,ref:o,w:"fit-content",...r,variant:"tertiary"})),k=Object.assign(j,{Title:g,Button:B,SecondaryButton:E});exports.Alert=k;