welcome-ui 8.1.0-alpha.3 → 8.1.1

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 (287) hide show
  1. package/dist/{AXB53BZF-XKOjjeWO.mjs → AXB53BZF-BOEe01VW.mjs} +3 -3
  2. package/dist/Accordion.mjs +23 -30
  3. package/dist/Alert.mjs +70 -76
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +47 -48
  6. package/dist/{BYC7LY2E-CWSI38FM.mjs → BYC7LY2E-B1IDizRs.mjs} +127 -128
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +168 -172
  10. package/dist/Button.mjs +67 -72
  11. package/dist/ButtonGroup.mjs +12 -13
  12. package/dist/Card.mjs +14 -14
  13. package/dist/Checkbox.mjs +2 -2
  14. package/dist/ClearButton.mjs +15 -15
  15. package/dist/CloseButton.mjs +9 -9
  16. package/dist/{CustomPopper-B2Cqfph4.mjs → CustomInput-IA_gVoXd.mjs} +1445 -1466
  17. package/dist/DatePicker.mjs +80 -81
  18. package/dist/DateTimePicker.mjs +61 -66
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +172 -188
  21. package/dist/DropdownMenu.mjs +411 -414
  22. package/dist/Field.mjs +91 -103
  23. package/dist/FieldGroup.mjs +9 -12
  24. package/dist/FileDrop.mjs +556 -587
  25. package/dist/FileUpload.mjs +71 -92
  26. package/dist/Files.mjs +46 -46
  27. package/dist/Flex.mjs +13 -13
  28. package/dist/Grid.mjs +29 -29
  29. package/dist/Hint.mjs +12 -12
  30. package/dist/{ITI7HKP4-C89kOQb8.mjs → ITI7HKP4-EL9KXYBU.mjs} +67 -68
  31. package/dist/Icon.mjs +25 -25
  32. package/dist/Icons.mjs +988 -988
  33. package/dist/IconsFont.mjs +22 -22
  34. package/dist/InputText.mjs +58 -66
  35. package/dist/{JC64G2H7-afsomHuH.mjs → JC64G2H7-BzklVBKM.mjs} +46 -47
  36. package/dist/{KUU7WJ55-CzsjuIMv.mjs → KUU7WJ55-CS4NemC6.mjs} +1 -1
  37. package/dist/LVA2YJMS-DDEmK0pp.mjs +1482 -0
  38. package/dist/Label.mjs +35 -37
  39. package/dist/Link.mjs +28 -32
  40. package/dist/Loader.mjs +16 -20
  41. package/dist/Logo.mjs +42 -55
  42. package/dist/{MTZPJQMC-TybFZCho.mjs → MTZPJQMC-CMjAwC0N.mjs} +2 -2
  43. package/dist/Modal.mjs +253 -276
  44. package/dist/{NLEBE274-oSxMftGy.mjs → NLEBE274-QOMV1l7e.mjs} +9 -9
  45. package/dist/{P2CTZE2T-DOT1mNnX.mjs → P2CTZE2T-Cl2w7OLV.mjs} +48 -49
  46. package/dist/{P4IRICAX-CWSZLTGz.mjs → P4IRICAX-DezbJY4s.mjs} +3 -3
  47. package/dist/Pagination.mjs +104 -104
  48. package/dist/PasswordInput.mjs +34 -35
  49. package/dist/Picker.mjs +33 -35
  50. package/dist/Popover.mjs +99 -106
  51. package/dist/{QYJ6MIDR-DJ-vUdAM.mjs → QYJ6MIDR-Bb0O5xUM.mjs} +30 -31
  52. package/dist/Radio.mjs +48 -54
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +35 -37
  55. package/dist/{SYRFVSLH-B6m278Vb.mjs → SYRFVSLH-jn06-eLy.mjs} +10 -11
  56. package/dist/Search.mjs +159 -175
  57. package/dist/Select.mjs +338 -373
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +336 -359
  60. package/dist/Stack.mjs +24 -22
  61. package/dist/Swiper.mjs +224 -231
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +200 -205
  64. package/dist/Tag.mjs +53 -55
  65. package/dist/Text.mjs +47 -49
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +57 -58
  68. package/dist/Toast.mjs +128 -135
  69. package/dist/Toggle.mjs +24 -27
  70. package/dist/Tooltip.mjs +99 -103
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-0w9Y7Ytc.mjs → VEVQD5MH-CuegL0m0.mjs} +3 -3
  73. package/dist/{VGCJ63VH-C0UPBY-5.mjs → VGCJ63VH-BMzoZtCu.mjs} +38 -39
  74. package/dist/VariantIcon.mjs +22 -14
  75. package/dist/WelcomeLoader.mjs +121 -122
  76. package/dist/WuiProvider.mjs +58 -69
  77. package/dist/{X5NMLKT6-BJw3xE-K.mjs → X5NMLKT6-CvSCix-_.mjs} +2 -2
  78. package/dist/{YV4JVR4I-DPC8mMuG.mjs → YV4JVR4I-Bh7B7TET.mjs} +57 -57
  79. package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  80. package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
  81. package/dist/hide-focus-rings-root-BNyva1yb.mjs +14 -0
  82. package/dist/{index-5HBq1O6Z.mjs → index-5PUh49rV.mjs} +73 -74
  83. package/dist/index-B0gDDiFm.mjs +66 -0
  84. package/dist/index-B22SHR8h.mjs +26 -0
  85. package/dist/{index-DAZ1SYdj.mjs → index-BNGGwOCo.mjs} +7 -7
  86. package/dist/{index-SQQQ4dEE.mjs → index-BQtDgQBH.mjs} +8 -8
  87. package/dist/index-BhcLigYU.mjs +77 -0
  88. package/dist/{index-QaLwIvZS.mjs → index-Bkl89twW.mjs} +8 -8
  89. package/dist/{index-BaLGEKs7.mjs → index-C7zM96J_.mjs} +8 -8
  90. package/dist/index-CQD9fgf_.mjs +11 -0
  91. package/dist/index-CmsWSKKs.mjs +11 -0
  92. package/dist/{index-DvzWKxKE.mjs → index-DqBUFsqP.mjs} +7 -7
  93. package/dist/index-u1oHKa7X.mjs +16 -0
  94. package/dist/index-wr_b5GSV.mjs +36 -0
  95. package/dist/radio-group-RFyDp0KD.mjs +51 -0
  96. package/dist/theme.mjs +801 -801
  97. package/dist/throttle-BDBzFeFj.mjs +13 -0
  98. package/dist/types/components/Accordion/index.d.ts +1 -1
  99. package/dist/types/components/Accordion/styles.d.ts +2 -2
  100. package/dist/types/components/Accordion/theme.d.ts +1 -1
  101. package/dist/types/components/Alert/index.d.ts +2 -2
  102. package/dist/types/components/Alert/styles.d.ts +9 -9
  103. package/dist/types/components/Alert/theme.d.ts +3 -3
  104. package/dist/types/components/AspectRatio/styles.d.ts +2 -3
  105. package/dist/types/components/Avatar/index.d.ts +3 -2
  106. package/dist/types/components/Avatar/styles.d.ts +8 -8
  107. package/dist/types/components/Avatar/theme.d.ts +3 -3
  108. package/dist/types/components/Avatar/utils.d.ts +1 -1
  109. package/dist/types/components/Badge/index.d.ts +2 -2
  110. package/dist/types/components/Badge/styles.d.ts +5 -5
  111. package/dist/types/components/Badge/theme.d.ts +1 -1
  112. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  113. package/dist/types/components/Breadcrumb/index.d.ts +2 -2
  114. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  115. package/dist/types/components/Button/index.d.ts +5 -4
  116. package/dist/types/components/Button/styles.d.ts +1 -1
  117. package/dist/types/components/Button/theme.d.ts +7 -7
  118. package/dist/types/components/ButtonGroup/index.d.ts +4 -4
  119. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  120. package/dist/types/components/Card/index.d.ts +3 -2
  121. package/dist/types/components/Card/theme.d.ts +1 -1
  122. package/dist/types/components/Checkbox/index.d.ts +2 -2
  123. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  124. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  125. package/dist/types/components/ClearButton/index.d.ts +6 -5
  126. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  127. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  128. package/dist/types/components/DatePicker/index.d.ts +3 -3
  129. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  130. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  131. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  132. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  133. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  134. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  135. package/dist/types/components/DateTimePickerCommon/utils.d.ts +2 -2
  136. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  137. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  138. package/dist/types/components/Drawer/index.d.ts +12 -12
  139. package/dist/types/components/Drawer/styles.d.ts +5 -5
  140. package/dist/types/components/Drawer/theme.d.ts +2 -2
  141. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  142. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  143. package/dist/types/components/Field/index.d.ts +8 -8
  144. package/dist/types/components/Field/styles.d.ts +1 -1
  145. package/dist/types/components/Field/utils.d.ts +1 -1
  146. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  147. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  148. package/dist/types/components/FileDrop/index.d.ts +20 -20
  149. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  150. package/dist/types/components/FileUpload/index.d.ts +13 -13
  151. package/dist/types/components/Files/index.d.ts +5 -5
  152. package/dist/types/components/Files/types.d.ts +1 -1
  153. package/dist/types/components/Hint/index.d.ts +2 -1
  154. package/dist/types/components/Hint/theme.d.ts +1 -1
  155. package/dist/types/components/Icon/index.d.ts +3 -3
  156. package/dist/types/components/Icon/styles.d.ts +3 -3
  157. package/dist/types/components/Icon/theme.d.ts +3 -3
  158. package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
  159. package/dist/types/components/Icons/index.d.ts +2 -2
  160. package/dist/types/components/IconsFont/index.d.ts +3 -2
  161. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  162. package/dist/types/components/InputText/index.d.ts +1 -1
  163. package/dist/types/components/InputText/styles.d.ts +1 -1
  164. package/dist/types/components/Label/index.d.ts +3 -2
  165. package/dist/types/components/Label/theme.d.ts +1 -1
  166. package/dist/types/components/Link/index.d.ts +5 -5
  167. package/dist/types/components/Link/styles.d.ts +4 -4
  168. package/dist/types/components/Link/theme.d.ts +1 -1
  169. package/dist/types/components/Loader/index.d.ts +1 -1
  170. package/dist/types/components/Loader/styles.d.ts +4 -4
  171. package/dist/types/components/Loader/theme.d.ts +4 -4
  172. package/dist/types/components/Logo/Solutions.d.ts +2 -1
  173. package/dist/types/components/Logo/Symbol.d.ts +2 -1
  174. package/dist/types/components/Logo/Wui.d.ts +2 -1
  175. package/dist/types/components/Logo/index.d.ts +5 -5
  176. package/dist/types/components/Modal/Assets/Backdrop.d.ts +6 -5
  177. package/dist/types/components/Modal/Assets/Iframe.d.ts +2 -1
  178. package/dist/types/components/Modal/Assets/index.d.ts +9 -9
  179. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  180. package/dist/types/components/Modal/Close.d.ts +4 -3
  181. package/dist/types/components/Modal/Content.d.ts +5 -3
  182. package/dist/types/components/Modal/Footer.d.ts +1 -1
  183. package/dist/types/components/Modal/Header.d.ts +2 -2
  184. package/dist/types/components/Modal/index.d.ts +17 -17
  185. package/dist/types/components/Modal/styles.d.ts +7 -7
  186. package/dist/types/components/Modal/theme.d.ts +2 -2
  187. package/dist/types/components/Pagination/index.d.ts +2 -2
  188. package/dist/types/components/Pagination/theme.d.ts +1 -1
  189. package/dist/types/components/Pagination/utils.d.ts +1 -1
  190. package/dist/types/components/Picker/index.d.ts +1 -1
  191. package/dist/types/components/Picker/styles.d.ts +1 -1
  192. package/dist/types/components/Popover/Arrow.d.ts +2 -1
  193. package/dist/types/components/Popover/Content.d.ts +3 -2
  194. package/dist/types/components/Popover/Popover.d.ts +5 -4
  195. package/dist/types/components/Popover/PopoverHover.d.ts +4 -3
  196. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  197. package/dist/types/components/Popover/styles.d.ts +4 -4
  198. package/dist/types/components/Popover/theme.d.ts +1 -1
  199. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  200. package/dist/types/components/Radio/index.d.ts +3 -3
  201. package/dist/types/components/Radio/styles.d.ts +5 -5
  202. package/dist/types/components/Radio/theme.d.ts +1 -1
  203. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  204. package/dist/types/components/RadioTab/index.d.ts +3 -3
  205. package/dist/types/components/RadioTab/styles.d.ts +9 -3
  206. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  207. package/dist/types/components/Search/index.d.ts +5 -5
  208. package/dist/types/components/Select/index.d.ts +11 -11
  209. package/dist/types/components/Select/styles.d.ts +6 -6
  210. package/dist/types/components/Select/utils.d.ts +7 -11
  211. package/dist/types/components/Shape/index.d.ts +1 -1
  212. package/dist/types/components/Shape/styles.d.ts +3 -3
  213. package/dist/types/components/Slider/Range.d.ts +3 -3
  214. package/dist/types/components/Slider/index.d.ts +2 -2
  215. package/dist/types/components/Slider/styles.d.ts +16 -16
  216. package/dist/types/components/Slider/theme.d.ts +1 -1
  217. package/dist/types/components/Stack/index.d.ts +1 -1
  218. package/dist/types/components/Swiper/index.d.ts +17 -16
  219. package/dist/types/components/Swiper/styles.d.ts +53 -53
  220. package/dist/types/components/Swiper/theme.d.ts +1 -1
  221. package/dist/types/components/System/index.d.ts +14 -14
  222. package/dist/types/components/Table/index.d.ts +7 -6
  223. package/dist/types/components/Table/styles.d.ts +1 -1
  224. package/dist/types/components/Table/theme.d.ts +1 -1
  225. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  226. package/dist/types/components/Tabs/TabList.d.ts +4 -4
  227. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  228. package/dist/types/components/Tabs/styles.d.ts +2 -2
  229. package/dist/types/components/Tabs/theme.d.ts +2 -2
  230. package/dist/types/components/Tag/index.d.ts +3 -2
  231. package/dist/types/components/Tag/styles.d.ts +1 -1
  232. package/dist/types/components/Tag/theme.d.ts +2 -2
  233. package/dist/types/components/Text/index.d.ts +2 -2
  234. package/dist/types/components/Textarea/index.d.ts +1 -1
  235. package/dist/types/components/Textarea/theme.d.ts +1 -1
  236. package/dist/types/components/TimePicker/index.d.ts +2 -2
  237. package/dist/types/components/Toast/Growl.d.ts +1 -1
  238. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  239. package/dist/types/components/Toast/ToastWrapper.d.ts +5 -5
  240. package/dist/types/components/Toast/index.d.ts +6 -6
  241. package/dist/types/components/Toast/styles.d.ts +16 -16
  242. package/dist/types/components/Toast/theme.d.ts +2 -2
  243. package/dist/types/components/Toast/utils.d.ts +13 -13
  244. package/dist/types/components/Toggle/index.d.ts +3 -3
  245. package/dist/types/components/Toggle/styles.d.ts +4 -5
  246. package/dist/types/components/Toggle/theme.d.ts +5 -5
  247. package/dist/types/components/Tooltip/index.d.ts +2 -2
  248. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  249. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  250. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  251. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  252. package/dist/types/components/VariantIcon/theme.d.ts +2 -2
  253. package/dist/types/components/WuiProvider/font.d.ts +5 -3
  254. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  255. package/dist/types/theme/colors.d.ts +11 -3
  256. package/dist/types/theme/dark.d.ts +1 -1
  257. package/dist/types/theme/defaultFields.d.ts +10 -10
  258. package/dist/types/theme/fonts.d.ts +5 -5
  259. package/dist/types/theme/index.d.ts +31 -31
  260. package/dist/types/theme/screens.d.ts +1 -1
  261. package/dist/types/theme/space.d.ts +1 -1
  262. package/dist/types/theme/typography.d.ts +1 -1
  263. package/dist/types/utils/field-styles.d.ts +6 -6
  264. package/dist/types/utils/index.d.ts +2 -2
  265. package/dist/types/utils/ts-utils.d.ts +1 -1
  266. package/dist/types/utils/use-copy-text.d.ts +1 -1
  267. package/dist/types/utils/use-create-portal.d.ts +1 -1
  268. package/dist/types/utils/use-viewport.d.ts +2 -2
  269. package/dist/types/utils/wrap-children.d.ts +1 -1
  270. package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
  271. package/dist/{use-viewport-CWpjoHXy.mjs → use-viewport-CfklieD-.mjs} +2 -2
  272. package/dist/utils.mjs +29 -102
  273. package/dist/wrap-children-aq69jtFP.mjs +12 -0
  274. package/package.json +27 -3
  275. package/dist/LVA2YJMS-C-kJ1lkr.mjs +0 -873
  276. package/dist/hide-focus-rings-root-CCXdysih.mjs +0 -15
  277. package/dist/index-CYmF7qCH.mjs +0 -11
  278. package/dist/index-C_k-m0Rl.mjs +0 -36
  279. package/dist/index-D8v_VJ9z.mjs +0 -26
  280. package/dist/index-DpkNUfAS.mjs +0 -11
  281. package/dist/index-i_anpNhw.mjs +0 -66
  282. package/dist/index-wl3X6EM1.mjs +0 -16
  283. package/dist/jsx-runtime-B7I4PJ0H.mjs +0 -613
  284. package/dist/radio-group-C0fUHvam.mjs +0 -52
  285. package/dist/throttle-CW18pWlW.mjs +0 -13
  286. package/dist/wrap-children-DBSD-X5-.mjs +0 -9
  287. package/dist/{downshift.esm-B7Jil1wW.mjs → downshift.esm-D0ns_SQs.mjs} +9 -9
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { u } from "./P4IRICAX-CWSZLTGz.mjs";
3
- import { a as c } from "./VGCJ63VH-C0UPBY-5.mjs";
4
- import { f as l, c as p, h as D, _ as m, i as g, g as a, s as v } from "./LVA2YJMS-C-kJ1lkr.mjs";
2
+ import { u } from "./P4IRICAX-DezbJY4s.mjs";
3
+ import { a as c } from "./VGCJ63VH-BMzoZtCu.mjs";
4
+ import { f as l, c as p, h as D, _ as m, i as g, g as a, s as v } from "./LVA2YJMS-DDEmK0pp.mjs";
5
5
  var f = "button", d = p(
6
6
  function(r) {
7
7
  var s = r, { store: o } = s, e = m(s, ["store"]);
@@ -1,22 +1,21 @@
1
1
  "use client";
2
- import { j as o } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import { cloneElement as m } from "react";
2
+ import o, { cloneElement as m } from "react";
3
+ import e, { th as r } from "@xstyled/styled-components";
4
+ import { D as u } from "./P4IRICAX-DezbJY4s.mjs";
5
+ import { d as p, e as f } from "./VGCJ63VH-BMzoZtCu.mjs";
4
6
  import "./Icon.mjs";
5
- import { R as p } from "./index-CYmF7qCH.mjs";
6
- import { forwardRef as u } from "./System.mjs";
7
- import t, { th as i } from "@xstyled/styled-components";
8
- import { D as f } from "./P4IRICAX-CWSZLTGz.mjs";
9
- import { d as g, e as h } from "./VGCJ63VH-C0UPBY-5.mjs";
10
- const x = t.divBox`
11
- ${i("accordions.wrapper")};
7
+ import { R as g } from "./index-CmsWSKKs.mjs";
8
+ import { forwardRef as h } from "./System.mjs";
9
+ const $ = e.divBox`
10
+ ${r("accordions.wrapper")};
12
11
  transition: medium;
13
12
 
14
13
  &:hover {
15
14
  border-color: neutral-50;
16
15
  }
17
- `, n = t.divBox`
16
+ `, n = e.divBox`
18
17
  flex-shrink: 0;
19
- ${i("accordions.icon")};
18
+ ${r("accordions.icon")};
20
19
  transform: rotate3d(0);
21
20
  transition: medium;
22
21
  width: 32;
@@ -28,10 +27,10 @@ const x = t.divBox`
28
27
  & *:first-child {
29
28
  margin: auto;
30
29
  }
31
- `, $ = t(f)`
32
- ${i("accordions.title")};
30
+ `, v = e(u)`
31
+ ${r("accordions.title")};
33
32
  width: 100%;
34
- padding: ${i("accordions.padding")};
33
+ padding: ${r("accordions.padding")};
35
34
  background-color: transparent;
36
35
  border: 0;
37
36
  display: flex;
@@ -59,7 +58,7 @@ const x = t.divBox`
59
58
  color: inherit;
60
59
  }
61
60
  }
62
- `, j = t(g)`
61
+ `, w = e(p)`
63
62
  display: grid;
64
63
  grid-template-rows: 0fr;
65
64
  transition-property: grid-template-rows;
@@ -75,24 +74,18 @@ const x = t.divBox`
75
74
  &[data-enter] {
76
75
  grid-template-rows: 1fr;
77
76
  }
78
- `, v = t.div`
79
- ${i("accordions.content")};
80
- padding: ${i("accordions.padding")};
77
+ `, E = e.div`
78
+ ${r("accordions.content")};
79
+ padding: ${r("accordions.padding")};
81
80
  padding-top: 0;
82
81
  color: neutral-70;
83
- `, B = u(
84
- ({ children: e, dataTestId: r, icon: d = /* @__PURE__ */ o.jsx(p, {}), store: s, title: c, ...a }, l) => /* @__PURE__ */ o.jsxs(x, { "data-testid": r, ref: l, ...a, children: [
85
- /* @__PURE__ */ o.jsxs($, { "data-testid": r ? `${r}-title` : void 0, store: s, children: [
86
- c,
87
- /* @__PURE__ */ o.jsx(n, { children: m(d, { size: "sm" }) })
88
- ] }),
89
- /* @__PURE__ */ o.jsx(j, { "data-testid": r ? `${r}-content` : void 0, store: s, children: /* @__PURE__ */ o.jsx("div", { children: /* @__PURE__ */ o.jsx(v, { children: e }) }) })
90
- ] })
82
+ `, A = h(
83
+ ({ children: i, dataTestId: t, icon: c = /* @__PURE__ */ o.createElement(g, null), store: a, title: d, ...s }, l) => /* @__PURE__ */ o.createElement($, { "data-testid": t, ref: l, ...s }, /* @__PURE__ */ o.createElement(v, { "data-testid": t ? `${t}-title` : void 0, store: a }, d, /* @__PURE__ */ o.createElement(n, null, m(c, { size: "sm" }))), /* @__PURE__ */ o.createElement(w, { "data-testid": t ? `${t}-content` : void 0, store: a }, /* @__PURE__ */ o.createElement("div", null, /* @__PURE__ */ o.createElement(E, null, i))))
91
84
  );
92
- function E(e) {
93
- return h({ animated: !0, ...e });
85
+ function B(i) {
86
+ return f({ animated: !0, ...i });
94
87
  }
95
88
  export {
96
- B as Accordion,
97
- E as useAccordion
89
+ A as Accordion,
90
+ B as useAccordion
98
91
  };
package/dist/Alert.mjs CHANGED
@@ -1,132 +1,126 @@
1
1
  "use client";
2
- import { j as s } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import j, { Children as B, cloneElement as m } from "react";
4
- import { Box as w } from "./Box.mjs";
5
- import { Button as A } from "./Button.mjs";
6
- import { CloseButton as _ } from "./CloseButton.mjs";
2
+ import s, { Children as B, cloneElement as m } from "react";
3
+ import f, { th as o, css as c, system as _ } from "@xstyled/styled-components";
4
+ import { Text as D } from "./Text.mjs";
5
+ import { VariantIcon as O } from "./VariantIcon.mjs";
6
+ import { CloseButton as h } from "./CloseButton.mjs";
7
+ import { Button as w } from "./Button.mjs";
7
8
  import { forwardRef as d } from "./System.mjs";
8
- import c, { th as r, css as f, system as D } from "@xstyled/styled-components";
9
- import { Text as O } from "./Text.mjs";
10
- import { VariantIcon as q } from "./VariantIcon.mjs";
11
- const x = c.divBox`
9
+ import { Box as E } from "./Box.mjs";
10
+ const $ = f.divBox`
12
11
  display: flex;
13
12
  gap: md;
14
13
  flex-direction: column;
15
14
  justify-content: space-between;
16
15
  align-items: flex-start;
17
16
  flex: 1;
18
- `, b = c(q)`
17
+ `, A = f(O)`
19
18
  position: absolute;
20
19
  align-self: flex-start;
21
- `, F = c.divBox(({ icon: n, isFullWidth: o, size: e, variant: l }) => f`
20
+ `, q = f.divBox(({ icon: n, isFullWidth: r, size: e, variant: l }) => c`
22
21
  position: relative;
23
22
  display: flex;
24
23
  align-items: flex-start;
25
24
  width: 100%;
26
- max-width: ${o ? "100%" : "max-content"};
27
- ${r("alerts.default")};
28
- ${r(`alerts.${l}`)};
29
- ${r(`alerts.sizes.${e}`)};
25
+ max-width: ${r ? "100%" : "max-content"};
26
+ ${o("alerts.default")};
27
+ ${o(`alerts.${l}`)};
28
+ ${o(`alerts.sizes.${e}`)};
30
29
 
31
- ${n !== null && e === "sm" && f`
32
- ${x} {
33
- margin-left: calc(${r("icons.sm")} + ${r("space.md")});
30
+ ${n !== null && e === "sm" && c`
31
+ ${$} {
32
+ margin-left: calc(${o("icons.sm")} + ${o("space.md")});
34
33
  }
35
34
  `}
36
35
 
37
- ${n !== null && e === "md" && f`
38
- ${x} {
39
- margin-left: calc(${r("icons.md")} + ${r("space.lg")});
40
- gap: ${r("space.lg")};
41
- font-size: ${r("fontSizes.md")};
36
+ ${n !== null && e === "md" && c`
37
+ ${$} {
38
+ margin-left: calc(${o("icons.md")} + ${o("space.lg")});
39
+ gap: ${o("space.lg")};
40
+ font-size: ${o("fontSizes.md")};
42
41
  }
43
42
 
44
- ${b} {
43
+ ${A} {
45
44
  margin-top: -3;
46
45
  }
47
46
  `}
48
- `), G = c(O)(({ variant: n }) => f`
47
+ `), F = f(D)(({ variant: n }) => c`
49
48
  font-weight: medium;
50
- ${r("alerts.title.default")};
51
- ${r(`alerts.title.sizes.${n}`)};
52
- ${D};
53
- `), v = ({ children: n, dataTestId: o, variant: e }) => /* @__PURE__ */ s.jsx(G, { "data-testid": o, variant: e, children: n }), H = d(
49
+ ${o("alerts.title.default")};
50
+ ${o(`alerts.title.sizes.${n}`)};
51
+ ${_};
52
+ `), b = ({ children: n, dataTestId: r, variant: e }) => /* @__PURE__ */ s.createElement(F, { "data-testid": r, variant: e }, n), G = d(
54
53
  ({
55
54
  children: n,
56
- cta: o,
55
+ cta: r,
57
56
  dataTestId: e,
58
57
  handleClose: l,
59
58
  icon: p,
60
- isFullWidth: E,
61
- size: i = "sm",
62
- variant: a = "default",
59
+ isFullWidth: C,
60
+ size: a = "sm",
61
+ variant: i = "default",
63
62
  ...I
64
- }, V) => {
65
- const h = e ? `${e}-close-button` : void 0, k = a === "beige" ? "default" : a, u = a === "ai", T = B.toArray(n).map((t) => j.isValidElement(t) && t.type === v ? m(t, { variant: i }) : t), $ = (t) => {
63
+ }, k) => {
64
+ const T = e ? `${e}-close-button` : void 0, V = i === "beige" ? "default" : i, u = i === "ai", j = B.toArray(n).map((t) => t.type === b ? m(t, { variant: a }) : t), x = (t) => {
66
65
  var y;
67
66
  if (t) {
68
- if (t.type === S)
67
+ if (t.type === v)
69
68
  return m(t, {
69
+ size: a,
70
70
  ai: u,
71
- size: i,
72
71
  variant: u ? "primary" : void 0
73
72
  });
74
- if (t.type === C)
73
+ if (t.type === S)
75
74
  return m(t, {
76
- ai: u,
77
- size: i
75
+ size: a,
76
+ ai: u
78
77
  });
79
78
  if ((y = t.props) != null && y.children)
80
79
  return m(t, {
81
80
  ...t.props,
82
81
  children: B.map(
83
82
  t.props.children,
84
- (R) => $(R)
83
+ (R) => x(R)
85
84
  )
86
85
  });
87
86
  }
88
87
  return t;
89
- }, g = j.isValidElement(o) ? $(o) : o;
90
- return /* @__PURE__ */ s.jsxs(
91
- F,
88
+ }, g = s.isValidElement(r) ? x(r) : r;
89
+ return /* @__PURE__ */ s.createElement(
90
+ q,
92
91
  {
93
92
  "data-testid": e,
94
93
  icon: p,
95
- isFullWidth: E,
96
- ref: V,
97
- size: i,
98
- variant: a,
99
- ...I,
100
- children: [
101
- !!l && /* @__PURE__ */ s.jsx(
102
- _,
103
- {
104
- dataTestId: h,
105
- onClick: l,
106
- position: "absolute",
107
- right: "sm",
108
- size: "xs",
109
- top: "sm"
110
- }
111
- ),
112
- p !== null && /* @__PURE__ */ s.jsx(b, { icon: p, size: i, variant: k }),
113
- /* @__PURE__ */ s.jsxs(x, { children: [
114
- /* @__PURE__ */ s.jsx(w, { flex: 1, children: T }),
115
- !!g && /* @__PURE__ */ s.jsx(w, { alignItems: "center", display: "flex", gap: "sm", children: g })
116
- ] })
117
- ]
118
- }
94
+ isFullWidth: C,
95
+ ref: k,
96
+ size: a,
97
+ variant: i,
98
+ ...I
99
+ },
100
+ !!l && /* @__PURE__ */ s.createElement(
101
+ h,
102
+ {
103
+ dataTestId: T,
104
+ onClick: l,
105
+ position: "absolute",
106
+ right: "sm",
107
+ size: "xs",
108
+ top: "sm"
109
+ }
110
+ ),
111
+ p !== null && /* @__PURE__ */ s.createElement(A, { icon: p, size: a, variant: V }),
112
+ /* @__PURE__ */ s.createElement($, null, /* @__PURE__ */ s.createElement(E, { flex: 1 }, j), !!g && /* @__PURE__ */ s.createElement(E, { alignItems: "center", display: "flex", gap: "sm" }, g))
119
113
  );
120
114
  }
115
+ ), v = d(
116
+ ({ variant: n = "secondary", ...r }, e) => /* @__PURE__ */ s.createElement(w, { flexShrink: 0, ref: e, w: "fit-content", ...r, variant: n })
121
117
  ), S = d(
122
- ({ variant: n = "secondary", ...o }, e) => /* @__PURE__ */ s.jsx(A, { flexShrink: 0, ref: e, w: "fit-content", ...o, variant: n })
123
- ), C = d(
124
- ({ variant: n = "tertiary", ...o }, e) => /* @__PURE__ */ s.jsx(A, { flexShrink: 0, ref: e, w: "fit-content", ...o, variant: n })
125
- ), X = Object.assign(H, {
126
- Button: S,
127
- SecondaryButton: C,
128
- Title: v
118
+ ({ variant: n = "tertiary", ...r }, e) => /* @__PURE__ */ s.createElement(w, { flexShrink: 0, ref: e, w: "fit-content", ...r, variant: n })
119
+ ), U = Object.assign(G, {
120
+ Title: b,
121
+ Button: v,
122
+ SecondaryButton: S
129
123
  });
130
124
  export {
131
- X as Alert
125
+ U as Alert
132
126
  };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { j as i } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import { forwardRef as s } from "./System.mjs";
4
- import r, { css as n } from "@xstyled/styled-components";
5
- const p = r.divBox(
6
- ({ ratio: t }) => n`
2
+ import i from "react";
3
+ import r, { css as s } from "@xstyled/styled-components";
4
+ import { forwardRef as c } from "./System.mjs";
5
+ const n = r.divBox(
6
+ ({ ratio: t }) => s`
7
7
  position: relative;
8
8
 
9
9
  & > * {
@@ -32,10 +32,10 @@ const p = r.divBox(
32
32
  padding-bottom: ${1 / t * 100}%;
33
33
  }
34
34
  `
35
- ), c = s(
36
- ({ ratio: t = 4 / 3, ...o }, e) => /* @__PURE__ */ i.jsx(p, { ratio: t, ref: e, ...o })
35
+ ), a = c(
36
+ ({ ratio: t = 4 / 3, ...e }, o) => /* @__PURE__ */ i.createElement(n, { ratio: t, ref: o, ...e })
37
37
  );
38
- c.displayName = "AspectRatio";
38
+ a.displayName = "AspectRatio";
39
39
  export {
40
- c as AspectRatio
40
+ a as AspectRatio
41
41
  };
package/dist/Avatar.mjs CHANGED
@@ -1,57 +1,56 @@
1
1
  "use client";
2
- import { j as s } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import m, { th as g, useTheme as j } from "@xstyled/styled-components";
4
- import { Box as v } from "./Box.mjs";
5
- import { forwardRef as y } from "./System.mjs";
2
+ import a, { memo as x } from "react";
3
+ import m, { th as v, useTheme as y } from "@xstyled/styled-components";
6
4
  import { Shape as C } from "./Shape.mjs";
7
5
  import { Text as $ } from "./Text.mjs";
8
- const b = m(C)`
9
- flex-shrink: 0;
10
- `, A = m($)`
11
- ${g("avatars.text")};
12
- `;
6
+ import { forwardRef as b } from "./System.mjs";
7
+ import { Box as A } from "./Box.mjs";
13
8
  function z(o, t = "") {
14
- const r = Object.keys(o).filter((e) => e.startsWith("secondary-")), a = t.length % r.length;
15
- return r[a];
9
+ const e = Object.keys(o).filter((r) => r.startsWith("secondary-")), s = t.length % e.length;
10
+ return e[s];
16
11
  }
17
- function S(o = "") {
18
- const [t, r] = o.split(" ");
19
- return t && r ? `${t.charAt(0).toUpperCase()}${r.charAt(0).toUpperCase()}` : t.substring(0, 2).toUpperCase();
12
+ function E(o = "") {
13
+ const [t, e] = o.split(" ");
14
+ return t && e ? `${t.charAt(0).toUpperCase()}${e.charAt(0).toUpperCase()}` : t.substring(0, 2).toUpperCase();
20
15
  }
21
- const T = y(
22
- ({
23
- color: o,
24
- fontSize: t,
25
- getInitials: r = S,
26
- h: a,
27
- name: e,
28
- shape: p = "circle",
29
- size: f = "md",
30
- src: i,
31
- w: n,
32
- ...h
33
- }, x) => {
34
- const l = j(), u = o || z(l.colors, e), c = l.avatars.sizes[f], d = t || `calc(${n ? l.toRem(n) : c} / 2.5)`;
35
- return /* @__PURE__ */ s.jsxs(
36
- b,
37
- {
38
- "aria-label": e,
39
- backgroundColor: u,
40
- h: a || c,
41
- ref: x,
42
- role: "img",
43
- shape: p,
44
- w: n || c,
45
- ...h,
46
- children: [
47
- i ? /* @__PURE__ */ s.jsx("img", { alt: e, src: i }) : null,
48
- !i && /* @__PURE__ */ s.jsx(v, { children: /* @__PURE__ */ s.jsx(A, { fontSize: d, m: 0, children: r(e) }) })
49
- ]
50
- }
51
- );
52
- }
16
+ const S = m(C)`
17
+ flex-shrink: 0;
18
+ `, T = m($)`
19
+ ${v("avatars.text")};
20
+ `, k = x(
21
+ b(
22
+ ({
23
+ color: o,
24
+ fontSize: t,
25
+ getInitials: e = E,
26
+ h: s,
27
+ name: r,
28
+ shape: f = "circle",
29
+ size: p = "md",
30
+ src: n,
31
+ w: l,
32
+ ...u
33
+ }, h) => {
34
+ const i = y(), d = o || z(i.colors, r), c = i.avatars.sizes[p], g = t || `calc(${l ? i.toRem(l) : c} / 2.5)`;
35
+ return /* @__PURE__ */ a.createElement(
36
+ S,
37
+ {
38
+ "aria-label": r,
39
+ backgroundColor: d,
40
+ h: s || c,
41
+ ref: h,
42
+ role: "img",
43
+ shape: f,
44
+ w: l || c,
45
+ ...u
46
+ },
47
+ n && /* @__PURE__ */ a.createElement("img", { alt: r, src: n }),
48
+ !n && /* @__PURE__ */ a.createElement(A, null, /* @__PURE__ */ a.createElement(T, { fontSize: g, m: 0 }, e(r)))
49
+ );
50
+ }
51
+ )
53
52
  );
54
- T.displayName = "Avatar";
53
+ k.displayName = "Avatar";
55
54
  export {
56
- T as Avatar
55
+ k as Avatar
57
56
  };