welcome-ui 8.1.0 → 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 +28 -4
  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,10 +1,9 @@
1
1
  "use client";
2
- import { t as Y, p as $, H as Ce, c as G, I as xe, _ as J, w as q, d as S, e as Q, g as P, y as X, f as Z, h as ee, l as Se, b as R, J as Pe, K as O, o as F, L as we, u as V, M as he, N as Ee, D as ye, k as Te, O as De, v as Re } from "./LVA2YJMS-C-kJ1lkr.mjs";
3
- import { createContext as te, useRef as _, useEffect as Oe, useContext as Fe, useCallback as _e, useMemo as Ae } from "react";
4
- import { u as ke } from "./KUU7WJ55-CzsjuIMv.mjs";
5
- import { f as Ke } from "./YV4JVR4I-DPC8mMuG.mjs";
6
- import { j as Le } from "./jsx-runtime-B7I4PJ0H.mjs";
7
- var w = Y(), ze = w.useContext;
2
+ import { v as Y, p as $, I as Ce, c as G, J as xe, _ as J, x as q, d as S, e as Q, g as P, z as X, f as Z, h as ee, l as Se, b as D, K as Pe, L as O, o as F, M as we, u as j, N as he, O as Ee, E as ye, t as Te, k as Re, P as De, w as Oe } from "./LVA2YJMS-DDEmK0pp.mjs";
3
+ import { createContext as te, useRef as _, useEffect as Fe, useContext as _e, useCallback as Ae, useMemo as ke } from "react";
4
+ import { u as ze } from "./KUU7WJ55-CS4NemC6.mjs";
5
+ import { f as Ke } from "./YV4JVR4I-Bh7B7TET.mjs";
6
+ var w = Y(), Le = w.useContext;
8
7
  w.useScopedContext;
9
8
  w.useProviderContext;
10
9
  var Ne = w.ContextProvider, Me = w.ScopedContextProvider, h = Y(
@@ -12,26 +11,26 @@ var Ne = w.ContextProvider, Me = w.ScopedContextProvider, h = Y(
12
11
  [Me]
13
12
  ), Be = h.useContext;
14
13
  h.useScopedContext;
15
- var ut = h.useProviderContext, at = h.ContextProvider, lt = h.ScopedContextProvider, He = te(
14
+ var st = h.useProviderContext, ut = h.ContextProvider, at = h.ScopedContextProvider, He = te(
16
15
  void 0
17
- ), je = te(
16
+ ), Ue = te(
18
17
  void 0
19
- ), Ue = { id: null };
20
- function ct(r, n, o = !1) {
18
+ ), Ve = { id: null };
19
+ function lt(r, n, o = !1) {
21
20
  const t = r.findIndex((a) => a.id === n);
22
21
  return [
23
22
  ...r.slice(t + 1),
24
- ...o ? [Ue] : [],
23
+ ...o ? [Ve] : [],
25
24
  ...r.slice(0, t)
26
25
  ];
27
26
  }
28
- function ft(r, n) {
27
+ function ct(r, n) {
29
28
  return r.find((o) => !o.disabled);
30
29
  }
31
- function Ve(r, n) {
30
+ function je(r, n) {
32
31
  return n && r.item(n) || null;
33
32
  }
34
- function dt(r) {
33
+ function ft(r) {
35
34
  const n = [];
36
35
  for (const o of r) {
37
36
  const t = n.find((a) => {
@@ -57,7 +56,7 @@ var A = Symbol("FOCUS_SILENTLY");
57
56
  function Ye(r) {
58
57
  r[A] = !0, r.focus({ preventScroll: !0 });
59
58
  }
60
- function mt(r) {
59
+ function dt(r) {
61
60
  const n = r[A];
62
61
  return delete r[A], n;
63
62
  }
@@ -78,10 +77,10 @@ var $e = "div", ne = G(
78
77
  // @ts-expect-error This prop may come from a collection renderer.
79
78
  "element"
80
79
  ]);
81
- const c = ze();
80
+ const c = Le();
82
81
  t = t || c;
83
82
  const m = q(v.id), p = _(g);
84
- return Oe(() => {
83
+ return Fe(() => {
85
84
  const i = p.current;
86
85
  if (!m || !i || !a) return;
87
86
  const b = d({ id: m, element: i });
@@ -97,7 +96,7 @@ Z(function(n) {
97
96
  });
98
97
  var Ge = "button";
99
98
  function Je(r) {
100
- return O(r) ? !0 : r.tagName === "INPUT" && !Te(r);
99
+ return O(r) ? !0 : r.tagName === "INPUT" && !Re(r);
101
100
  }
102
101
  function qe(r, n = !1) {
103
102
  const o = r.clientHeight, { top: t } = r.getBoundingClientRect(), a = Math.max(o * 0.875, o - 40) * 1.5, d = n ? o - a + t : a + t;
@@ -118,7 +117,7 @@ function W(r, n, o, t = !1) {
118
117
  const i = c;
119
118
  if (c = o(p), !c) break;
120
119
  if (c === i) continue;
121
- const b = (a = Ve(n, c)) == null ? void 0 : a.element;
120
+ const b = (a = je(n, c)) == null ? void 0 : a.element;
122
121
  if (!b) continue;
123
122
  const C = Qe(b, t) - v, l = Math.abs(C);
124
123
  if (t && C <= 0 || !t && C >= 0) {
@@ -155,9 +154,9 @@ var Ze = G(
155
154
  ]);
156
155
  const b = Be();
157
156
  t = t || b;
158
- const f = q(i.id), C = _(null), l = Fe(je), k = Se(i) && !i.accessibleWhenDisabled, {
157
+ const f = q(i.id), C = _(null), l = _e(Ue), k = Se(i) && !i.accessibleWhenDisabled, {
159
158
  rowId: y,
160
- baseElement: K,
159
+ baseElement: z,
161
160
  isActiveItem: oe,
162
161
  ariaSetSize: ie,
163
162
  ariaPosInSet: se,
@@ -195,7 +194,7 @@ var Ze = G(
195
194
  const s = t == null ? void 0 : t.item(e.activeId);
196
195
  return s != null && s.disabled || !(s != null && s.element) ? !0 : e.activeId === f;
197
196
  }
198
- }), ae = _e(
197
+ }), ae = Ae(
199
198
  (e) => {
200
199
  var s;
201
200
  const u = S(P({}, e), {
@@ -207,21 +206,21 @@ var Ze = G(
207
206
  return c ? c(u) : u;
208
207
  },
209
208
  [f, y, k, c]
210
- ), L = i.onFocus, T = _(!1), le = R((e) => {
211
- if (L == null || L(e), e.defaultPrevented || Pe(e) || !f || !t || Xe(e, t)) return;
209
+ ), K = i.onFocus, T = _(!1), le = D((e) => {
210
+ if (K == null || K(e), e.defaultPrevented || Pe(e) || !f || !t || Xe(e, t)) return;
212
211
  const { virtualFocus: s, baseElement: u } = t.getState();
213
212
  if (t.setActiveId(f), O(e.currentTarget) && We(e.currentTarget), !s || !F(e) || Je(e.currentTarget) || !(u != null && u.isConnected)) return;
214
213
  we() && e.currentTarget.hasAttribute("data-autofocus") && e.currentTarget.scrollIntoView({
215
214
  block: "nearest",
216
215
  inline: "nearest"
217
216
  }), T.current = !0, e.relatedTarget === u || re(t, e.relatedTarget) ? Ye(u) : u.focus();
218
- }), z = i.onBlurCapture, ce = R((e) => {
219
- if (z == null || z(e), e.defaultPrevented) return;
217
+ }), L = i.onBlurCapture, ce = D((e) => {
218
+ if (L == null || L(e), e.defaultPrevented) return;
220
219
  const s = t == null ? void 0 : t.getState();
221
220
  s != null && s.virtualFocus && T.current && (T.current = !1, e.preventDefault(), e.stopPropagation());
222
- }), N = i.onKeyDown, fe = V(d), de = V(g), me = R((e) => {
221
+ }), N = i.onKeyDown, fe = j(d), de = j(g), me = D((e) => {
223
222
  if (N == null || N(e), e.defaultPrevented || !F(e) || !t) return;
224
- const { currentTarget: s } = e, u = t.getState(), D = t.item(f), I = !!(D != null && D.rowId), E = u.orientation !== "horizontal", x = u.orientation !== "vertical", B = () => !!(I || x || !u.baseElement || !$(u.baseElement)), H = {
223
+ const { currentTarget: s } = e, u = t.getState(), R = t.item(f), I = !!(R != null && R.rowId), E = u.orientation !== "horizontal", x = u.orientation !== "vertical", B = () => !!(I || x || !u.baseElement || !$(u.baseElement)), H = {
225
224
  ArrowUp: (I || E) && t.up,
226
225
  ArrowRight: (I || x) && t.next,
227
226
  ArrowDown: (I || E) && t.down,
@@ -239,25 +238,25 @@ var Ze = G(
239
238
  }[e.key];
240
239
  if (H) {
241
240
  if (O(s)) {
242
- const U = he(s), ve = x && e.key === "ArrowLeft", pe = x && e.key === "ArrowRight", Ie = E && e.key === "ArrowUp", ge = E && e.key === "ArrowDown";
241
+ const V = he(s), ve = x && e.key === "ArrowLeft", pe = x && e.key === "ArrowRight", Ie = E && e.key === "ArrowUp", ge = E && e.key === "ArrowDown";
243
242
  if (pe || ge) {
244
243
  const { length: be } = Ee(s);
245
- if (U.end !== be) return;
246
- } else if ((ve || Ie) && U.start !== 0) return;
244
+ if (V.end !== be) return;
245
+ } else if ((ve || Ie) && V.start !== 0) return;
247
246
  }
248
- const j = H();
249
- if (fe(e) || j !== void 0) {
247
+ const U = H();
248
+ if (fe(e) || U !== void 0) {
250
249
  if (!de(e)) return;
251
- e.preventDefault(), t.move(j);
250
+ e.preventDefault(), t.move(U);
252
251
  }
253
252
  }
254
- }), M = Ae(
255
- () => ({ id: f, baseElement: K }),
256
- [f, K]
253
+ }), M = ke(
254
+ () => ({ id: f, baseElement: z }),
255
+ [f, z]
257
256
  );
258
257
  return i = ye(
259
258
  i,
260
- (e) => /* @__PURE__ */ Le.jsx(He.Provider, { value: M, children: e }),
259
+ (e) => /* @__PURE__ */ Te.jsx(He.Provider, { value: M, children: e }),
261
260
  [M]
262
261
  ), i = S(P({
263
262
  id: f,
@@ -268,7 +267,7 @@ var Ze = G(
268
267
  onFocus: le,
269
268
  onBlurCapture: ce,
270
269
  onKeyDown: me
271
- }), i = ke(i), i = ne(S(P({
270
+ }), i = ze(i), i = ne(S(P({
272
271
  store: t
273
272
  }, i), {
274
273
  getItem: ae,
@@ -278,24 +277,24 @@ var Ze = G(
278
277
  "aria-posinset": se
279
278
  }));
280
279
  }
281
- ), vt = Re(
280
+ ), mt = Oe(
282
281
  Z(function(n) {
283
282
  const o = Ze(n);
284
283
  return ee(Ge, o);
285
284
  })
286
285
  );
287
286
  export {
288
- lt as C,
289
- at as a,
290
- ut as b,
291
- dt as c,
292
- vt as d,
287
+ at as C,
288
+ ut as a,
289
+ st as b,
290
+ ft as c,
291
+ mt as d,
293
292
  ne as e,
294
- ft as f,
295
- Ve as g,
293
+ ct as f,
294
+ je as g,
296
295
  Be as h,
297
296
  re as i,
298
- ct as j,
299
- mt as s,
297
+ lt as j,
298
+ dt as s,
300
299
  Ze as u
301
300
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { u as P } from "./X5NMLKT6-BJw3xE-K.mjs";
3
- import { u as _ } from "./VGCJ63VH-C0UPBY-5.mjs";
4
- import { f as b, c as k, _ as x, i as S, u as O, a as R, b as N, d as h, e as w, g as c, h as y } from "./LVA2YJMS-C-kJ1lkr.mjs";
2
+ import { u as P } from "./X5NMLKT6-CvSCix-_.mjs";
3
+ import { u as _ } from "./VGCJ63VH-BMzoZtCu.mjs";
4
+ import { f as b, c as k, _ as x, i as S, u as O, a as R, b as N, d as h, e as w, g as c, h as y } from "./LVA2YJMS-DDEmK0pp.mjs";
5
5
  import { useRef as B, useState as M, useEffect as T } from "react";
6
6
  var V = "button", j = Symbol("disclosure"), H = k(
7
7
  function(n) {
@@ -1,17 +1,39 @@
1
1
  "use client";
2
- import { j as o } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import { useMemo as z, useRef as k, useCallback as p } from "react";
2
+ import i, { useMemo as j, useRef as R, useCallback as y } from "react";
3
+ import m, { th as v, css as x } from "@xstyled/styled-components";
4
+ import { h as z } from "./hide-focus-rings-root-BNyva1yb.mjs";
4
5
  import "./Icon.mjs";
5
- import { L as G } from "./index-DpkNUfAS.mjs";
6
- import { R as _ } from "./index-CYmF7qCH.mjs";
7
- import { forwardRef as F } from "./System.mjs";
8
- import d, { th as h, css as b } from "@xstyled/styled-components";
9
- import { h as M } from "./hide-focus-rings-root-CCXdysih.mjs";
10
- const S = d.navBox``, q = d.ulBox`
6
+ import { L as G } from "./index-CQD9fgf_.mjs";
7
+ import { R as F } from "./index-CmsWSKKs.mjs";
8
+ import { forwardRef as M } from "./System.mjs";
9
+ const a = 5, S = 3;
10
+ function d(e, t) {
11
+ return Array.from({ length: e }, (r, s) => t(s));
12
+ }
13
+ function q(e, t) {
14
+ return e.reduce((r, s, c) => {
15
+ const n = [];
16
+ return n.push(...r), n.push(...s), s.length && c < e.length - 1 && n.push(t), n;
17
+ }, []);
18
+ }
19
+ function J(e, t) {
20
+ if (e < a) return "before";
21
+ if (e >= a && e <= t - a + 1) return "center";
22
+ if (e > t - a + 1) return "after";
23
+ }
24
+ function K({ page: e, pageCount: t, rangeDisplay: r }) {
25
+ return j(() => {
26
+ if (t <= r || t <= a + 1)
27
+ return d(t, (l) => l + 1);
28
+ const s = J(e, t), c = s === "before" ? d(a, (l) => l + 1) : [1], n = s === "center" ? d(S, (l) => l + e - 1) : [], u = s === "after" ? d(a, (l) => l + t - a + 1) : [t];
29
+ return q([c, n, u], "-");
30
+ }, [e, t, r]);
31
+ }
32
+ const O = m.navBox``, Q = m.ulBox`
11
33
  list-style-type: none;
12
34
  padding: 0;
13
35
  margin: 0;
14
- `, m = d.liBox`
36
+ `, b = m.liBox`
15
37
  display: inline-block;
16
38
  vertical-align: bottom;
17
39
  padding: 0;
@@ -20,14 +42,14 @@ const S = d.navBox``, q = d.ulBox`
20
42
  &:last-child {
21
43
  margin-right: 0;
22
44
  }
23
- `, J = d.span`
24
- ${h("paginations.default")};
45
+ `, U = m.span`
46
+ ${v("paginations.default")};
25
47
  display: flex;
26
48
  justify-content: center;
27
49
  align-items: center;
28
- `, B = b`
29
- ${h("paginations.default")};
30
- ${h("paginations.item")};
50
+ `, p = x`
51
+ ${v("paginations.default")};
52
+ ${v("paginations.item")};
31
53
  border-radius: 50%;
32
54
  display: flex;
33
55
  align-items: center;
@@ -40,121 +62,99 @@ const S = d.navBox``, q = d.ulBox`
40
62
  transition: none;
41
63
  }
42
64
 
43
- [${M}] &:focus {
65
+ [${z}] &:focus {
44
66
  box-shadow: none;
45
67
  }
46
- `, y = d.aBox(
47
- (n) => b`
48
- ${B};
49
- ${n["aria-disabled"] && b`
68
+ `, B = m.aBox(
69
+ (e) => x`
70
+ ${p};
71
+ ${e["aria-disabled"] && x`
50
72
  color: beige-70;
51
73
  background-color: beige-40;
52
74
  `}
53
75
  `
54
- ), K = d.aBox(
55
- (n) => b`
56
- ${B};
57
- ${n["aria-current"] && h("paginations.active")}
76
+ ), V = m.aBox(
77
+ (e) => x`
78
+ ${p};
79
+ ${e["aria-current"] && v("paginations.active")}
58
80
  `
59
- ), f = 5, O = 3;
60
- function Q({ page: n, pageCount: t, rangeDisplay: i }) {
61
- return z(() => {
62
- if (t <= i || t <= f + 1)
63
- return x(t, (l) => l + 1);
64
- const e = U(n, t), c = e === "before" ? x(f, (l) => l + 1) : [1], r = e === "center" ? x(O, (l) => l + n - 1) : [], u = e === "after" ? x(f, (l) => l + t - f + 1) : [t];
65
- return V([c, r, u], "-");
66
- }, [n, t, i]);
67
- }
68
- function x(n, t) {
69
- return Array.from({ length: n }, (i, e) => t(e));
70
- }
71
- function U(n, t) {
72
- return n < f ? "before" : n >= f && n <= t - f + 1 ? "center" : n > t - f + 1 ? "after" : null;
73
- }
74
- function V(n, t) {
75
- return n.reduce((i, e, c) => {
76
- const r = [];
77
- return r.push(...i), r.push(...e), e.length && c < n.length - 1 && r.push(t), r;
78
- }, []);
79
- }
80
- const g = F(
81
+ ), C = M(
81
82
  ({
82
- "aria-label": n,
83
+ "aria-label": e,
83
84
  dataTestId: t,
84
- getHref: i,
85
- leftArrow: e,
85
+ getHref: r,
86
+ leftArrow: s,
86
87
  onChange: c,
87
- page: r,
88
+ page: n,
88
89
  pageCount: u,
89
90
  rangeDisplay: l = 5,
90
91
  rightArrow: A,
91
92
  ...D
92
93
  }, L) => {
93
- const w = Q({ page: r, pageCount: u, rangeDisplay: l }), j = k(null), v = k(null), $ = r === 1, R = r === u, E = p(
94
- (s) => {
95
- s.preventDefault();
96
- const a = r - 1;
97
- a === 1 && j.current && j.current.focus(), c(a);
94
+ const w = K({ page: n, pageCount: u, rangeDisplay: l }), $ = R(null), k = R(null), E = n === 1, h = n === u, N = y(
95
+ (o) => {
96
+ o.preventDefault();
97
+ const f = n - 1;
98
+ f === 1 && $.current.focus(), c(f);
98
99
  },
99
- [r, c]
100
- ), N = p(
101
- (s) => {
102
- s.preventDefault();
103
- const a = r + 1;
104
- a === u && v.current && v.current.focus(), c(a);
100
+ [n, c]
101
+ ), P = y(
102
+ (o) => {
103
+ o.preventDefault();
104
+ const f = n + 1;
105
+ f === u && k.current.focus(), c(f);
105
106
  },
106
- [r, u, c]
107
+ [n, u, c]
107
108
  );
108
- return /* @__PURE__ */ o.jsx(
109
- S,
109
+ return /* @__PURE__ */ i.createElement(
110
+ O,
110
111
  {
111
- "aria-label": n,
112
+ "aria-label": e,
112
113
  "data-testid": t,
113
114
  ref: L,
114
115
  role: "navigation",
115
- ...D,
116
- children: /* @__PURE__ */ o.jsxs(q, { children: [
117
- /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(
118
- y,
119
- {
120
- "aria-disabled": $,
121
- "data-testid": t ? `${t}-arrow-prev` : void 0,
122
- href: i ? i($ ? r : r - 1) : "",
123
- onClick: $ ? void 0 : E,
124
- ref: j,
125
- children: e || /* @__PURE__ */ o.jsx(G, { size: "sm" })
126
- }
127
- ) }),
128
- w.map(
129
- (s, a) => s === "-" ? /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(J, { children: "..." }) }, `${a}-`) : /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(
130
- K,
131
- {
132
- "aria-current": s === r,
133
- "data-testid": t ? `${t}-${s}` : void 0,
134
- href: i ? i(s) : "",
135
- onClick: (P) => {
136
- P.preventDefault(), c(s);
137
- },
138
- children: s
139
- }
140
- ) }, s)
141
- ),
142
- /* @__PURE__ */ o.jsx(m, { children: /* @__PURE__ */ o.jsx(
143
- y,
144
- {
145
- "aria-disabled": R,
146
- "data-testid": t ? `${t}-arrow-next` : void 0,
147
- href: i ? i(R ? r : r + 1) : "",
148
- onClick: R ? void 0 : N,
149
- ref: v,
150
- children: A || /* @__PURE__ */ o.jsx(_, { size: "sm" })
116
+ ...D
117
+ },
118
+ /* @__PURE__ */ i.createElement(Q, null, /* @__PURE__ */ i.createElement(b, null, /* @__PURE__ */ i.createElement(
119
+ B,
120
+ {
121
+ "aria-disabled": E,
122
+ "data-testid": t ? `${t}-arrow-prev` : void 0,
123
+ href: r ? r(E ? n : n - 1) : "",
124
+ onClick: E ? void 0 : N,
125
+ ref: $
126
+ },
127
+ s || /* @__PURE__ */ i.createElement(G, { size: "sm" })
128
+ )), w.map(
129
+ (o, f) => o === "-" ? (
130
+ // eslint-disable-next-line react/no-array-index-key
131
+ /* @__PURE__ */ i.createElement(b, { key: `${f}-` }, /* @__PURE__ */ i.createElement(U, null, "..."))
132
+ ) : /* @__PURE__ */ i.createElement(b, { key: o }, /* @__PURE__ */ i.createElement(
133
+ V,
134
+ {
135
+ "aria-current": o === n,
136
+ "data-testid": t ? `${t}-${o}` : void 0,
137
+ href: r ? r(o) : "",
138
+ onClick: (_) => {
139
+ _.preventDefault(), c(o);
151
140
  }
152
- ) })
153
- ] })
154
- }
141
+ },
142
+ o
143
+ ))
144
+ ), /* @__PURE__ */ i.createElement(b, null, /* @__PURE__ */ i.createElement(
145
+ B,
146
+ {
147
+ "aria-disabled": h,
148
+ "data-testid": t ? `${t}-arrow-next` : void 0,
149
+ href: r ? r(h ? n : n + 1) : "",
150
+ onClick: h ? void 0 : P,
151
+ ref: k
152
+ },
153
+ A || /* @__PURE__ */ i.createElement(F, { size: "sm" })
154
+ )))
155
155
  );
156
156
  }
157
157
  );
158
158
  export {
159
- g as Pagination
159
+ C as Pagination
160
160
  };
@@ -1,56 +1,55 @@
1
1
  "use client";
2
- import { j as t } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import { useState as c } from "react";
4
- import { InputText as m } from "./InputText.mjs";
5
- import { forwardRef as x } from "./System.mjs";
6
- import { Button as d } from "./Button.mjs";
2
+ import t, { useState as i } from "react";
7
3
  import "./Icon.mjs";
8
- import { S as l, H as u } from "./index-wl3X6EM1.mjs";
9
- const f = ({
10
- dataTestId: o,
11
- isHidden: s,
4
+ import { S as l, H as m } from "./index-u1oHKa7X.mjs";
5
+ import { Button as u } from "./Button.mjs";
6
+ import { InputText as d } from "./InputText.mjs";
7
+ import { forwardRef as f } from "./System.mjs";
8
+ const w = ({
9
+ dataTestId: e,
10
+ isHidden: o,
12
11
  onClick: r,
13
- title: e
14
- }) => /* @__PURE__ */ t.jsx(
15
- d,
12
+ title: n
13
+ }) => /* @__PURE__ */ t.createElement(
14
+ u,
16
15
  {
17
16
  "aria-controls": "password",
18
- "aria-expanded": `${!s}`,
19
- dataTestId: o ? `${o}-action` : void 0,
17
+ "aria-expanded": `${!o}`,
18
+ dataTestId: e && `${e}-action`,
20
19
  onClick: r,
21
20
  shape: "circle",
22
21
  size: "xs",
23
- title: e,
24
- variant: "ghost",
25
- children: s ? /* @__PURE__ */ t.jsx(l, {}) : /* @__PURE__ */ t.jsx(u, {})
26
- }
27
- ), w = x(
28
- ({ dataTestId: o, title: s, ...r }, e) => {
29
- const [n, p] = c("password"), i = n === "password", a = () => {
30
- p(i ? "text" : "password");
22
+ title: n,
23
+ variant: "ghost"
24
+ },
25
+ o ? /* @__PURE__ */ t.createElement(l, null) : /* @__PURE__ */ t.createElement(m, null)
26
+ ), x = f(
27
+ ({ dataTestId: e, title: o, ...r }, n) => {
28
+ const [a, c] = i("password"), s = a === "password", p = () => {
29
+ c(s ? "text" : "password");
31
30
  };
32
- return /* @__PURE__ */ t.jsx(
33
- m,
31
+ return /* @__PURE__ */ t.createElement(
32
+ d,
34
33
  {
35
34
  ...r,
36
- dataTestId: o,
37
- icon: /* @__PURE__ */ t.jsx(
38
- f,
35
+ dataTestId: e,
36
+ icon: /* @__PURE__ */ t.createElement(
37
+ w,
39
38
  {
40
- dataTestId: o,
41
- isHidden: i,
42
- onClick: a,
43
- title: s
39
+ dataTestId: e,
40
+ isHidden: s,
41
+ onClick: p,
42
+ title: o
44
43
  }
45
44
  ),
46
45
  iconPlacement: "right",
47
- ref: e,
48
- type: n
46
+ ref: n,
47
+ type: a
49
48
  }
50
49
  );
51
50
  }
52
51
  );
53
- w.displayName = "PasswordInput";
52
+ x.displayName = "PasswordInput";
54
53
  export {
55
- w as PasswordInput
54
+ x as PasswordInput
56
55
  };
package/dist/Picker.mjs CHANGED
@@ -1,48 +1,46 @@
1
1
  "use client";
2
- import { j as o } from "./jsx-runtime-B7I4PJ0H.mjs";
3
- import { Box as u } from "./Box.mjs";
4
- import { FieldGroup as R } from "./FieldGroup.mjs";
5
- import { Label as $ } from "./Label.mjs";
6
- import { shouldForwardProp as j, forwardRef as n } from "./System.mjs";
7
- import k, { system as y } from "@xstyled/styled-components";
8
- import { R as b } from "./NLEBE274-oSxMftGy.mjs";
9
- import { u as w, R as P } from "./radio-group-C0fUHvam.mjs";
10
- const h = k(b).withConfig({ shouldForwardProp: j })`
2
+ import e from "react";
3
+ import u, { system as R } from "@xstyled/styled-components";
4
+ import { shouldForwardProp as $, forwardRef as k } from "./System.mjs";
5
+ import { R as y } from "./NLEBE274-QOMV1l7e.mjs";
6
+ import { Label as E } from "./Label.mjs";
7
+ import { FieldGroup as b } from "./FieldGroup.mjs";
8
+ import { Box as w } from "./Box.mjs";
9
+ import { u as x, R as P } from "./radio-group-RFyDp0KD.mjs";
10
+ const h = u(y).withConfig({ shouldForwardProp: $ })`
11
11
  position: absolute;
12
12
  top: 0;
13
13
  left: 0;
14
14
  opacity: 0;
15
15
 
16
- ${y};
17
- `, F = n(
18
- ({ dataTestId: s, label: m, name: t, onChange: e, options: p, required: d, value: l, ...a }, c) => {
19
- const f = w({ defaultValue: l }), x = (r) => {
20
- r.stopPropagation(), e == null || e(r);
16
+ ${R};
17
+ `, F = k(
18
+ ({ dataTestId: t, label: l, name: i, onChange: a, options: s, required: c, value: m, ...p }, f) => {
19
+ const d = x({ defaultValue: m }), n = (o) => {
20
+ o.stopPropagation(), a && a(o);
21
21
  };
22
- return /* @__PURE__ */ o.jsx(
23
- R,
22
+ return /* @__PURE__ */ e.createElement(
23
+ b,
24
24
  {
25
- ...a,
25
+ ...p,
26
26
  as: P,
27
- dataTestId: s,
27
+ dataTestId: t,
28
28
  mb: 0,
29
- ref: c,
30
- required: d,
31
- store: f,
32
- children: /* @__PURE__ */ o.jsx(u, { display: "flex", flexWrap: "wrap", children: p.map(({ element: r, value: i }) => /* @__PURE__ */ o.jsxs(
33
- $,
34
- {
35
- checkableField: !0,
36
- dataTestId: s ? `${s}-item-${t}-${i}` : void 0,
37
- onClick: x,
38
- children: [
39
- /* @__PURE__ */ o.jsx(h, { name: t, value: i }),
40
- /* @__PURE__ */ o.jsx(r, { selected: l === i })
41
- ]
42
- },
43
- `${m}-${t}-${i}`
44
- )) })
45
- }
29
+ ref: f,
30
+ required: c,
31
+ store: d
32
+ },
33
+ /* @__PURE__ */ e.createElement(w, { display: "flex", flexWrap: "wrap" }, s.map(({ element: o, value: r }) => /* @__PURE__ */ e.createElement(
34
+ E,
35
+ {
36
+ checkableField: !0,
37
+ dataTestId: t && `${t}-item-${i}-${r}`,
38
+ key: `${l}-${i}-${r}`,
39
+ onClick: n
40
+ },
41
+ /* @__PURE__ */ e.createElement(h, { name: i, value: r }),
42
+ /* @__PURE__ */ e.createElement(o, { selected: m === r })
43
+ )))
46
44
  );
47
45
  }
48
46
  );