welcome-ui 8.1.3 → 8.2.0-alpha.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 (244) hide show
  1. package/dist/{AXB53BZF-BOEe01VW.mjs → AXB53BZF-XKOjjeWO.mjs} +3 -3
  2. package/dist/Accordion.mjs +30 -23
  3. package/dist/Alert.mjs +72 -66
  4. package/dist/AspectRatio.mjs +9 -9
  5. package/dist/Avatar.mjs +45 -41
  6. package/dist/{BYC7LY2E-B1IDizRs.mjs → BYC7LY2E-CWSI38FM.mjs} +128 -127
  7. package/dist/Badge.mjs +25 -25
  8. package/dist/Box.mjs +5 -5
  9. package/dist/Breadcrumb.mjs +118 -112
  10. package/dist/Button.mjs +72 -67
  11. package/dist/ButtonGroup.mjs +12 -11
  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/{CustomInput-IA_gVoXd.mjs → CustomPopper-DezjKb9n.mjs} +1458 -1442
  17. package/dist/DatePicker.mjs +63 -62
  18. package/dist/DateTimePicker.mjs +69 -63
  19. package/dist/DateTimePickerCommon.mjs +1 -1
  20. package/dist/Drawer.mjs +180 -168
  21. package/dist/DropdownMenu.mjs +354 -351
  22. package/dist/Field.mjs +103 -92
  23. package/dist/FieldGroup.mjs +12 -9
  24. package/dist/FileDrop.mjs +316 -295
  25. package/dist/FileUpload.mjs +83 -69
  26. package/dist/Files.mjs +41 -41
  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-EL9KXYBU.mjs → ITI7HKP4-C89kOQb8.mjs} +68 -67
  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 +64 -56
  35. package/dist/{JC64G2H7-BzklVBKM.mjs → JC64G2H7-afsomHuH.mjs} +47 -46
  36. package/dist/{KUU7WJ55-CS4NemC6.mjs → KUU7WJ55-CzsjuIMv.mjs} +1 -1
  37. package/dist/LVA2YJMS-C-kJ1lkr.mjs +873 -0
  38. package/dist/Label.mjs +37 -35
  39. package/dist/Link.mjs +32 -28
  40. package/dist/Loader.mjs +20 -16
  41. package/dist/Logo.mjs +55 -42
  42. package/dist/{MTZPJQMC-CMjAwC0N.mjs → MTZPJQMC-TybFZCho.mjs} +2 -2
  43. package/dist/Modal.mjs +263 -244
  44. package/dist/{NLEBE274-QOMV1l7e.mjs → NLEBE274-oSxMftGy.mjs} +9 -9
  45. package/dist/{P2CTZE2T-Cl2w7OLV.mjs → P2CTZE2T-DOT1mNnX.mjs} +49 -48
  46. package/dist/{P4IRICAX-DezbJY4s.mjs → P4IRICAX-CWSZLTGz.mjs} +3 -3
  47. package/dist/Pagination.mjs +105 -103
  48. package/dist/PasswordInput.mjs +35 -34
  49. package/dist/Picker.mjs +36 -34
  50. package/dist/Popover.mjs +106 -99
  51. package/dist/{QYJ6MIDR-Bb0O5xUM.mjs → QYJ6MIDR-DJ-vUdAM.mjs} +31 -30
  52. package/dist/Radio.mjs +52 -46
  53. package/dist/RadioGroup.mjs +47 -47
  54. package/dist/RadioTab.mjs +37 -35
  55. package/dist/{SYRFVSLH-jn06-eLy.mjs → SYRFVSLH-B6m278Vb.mjs} +11 -10
  56. package/dist/Search.mjs +147 -135
  57. package/dist/Select.mjs +348 -330
  58. package/dist/Shape.mjs +9 -9
  59. package/dist/Slider.mjs +353 -326
  60. package/dist/Stack.mjs +24 -23
  61. package/dist/Swiper.mjs +192 -186
  62. package/dist/Table.mjs +23 -23
  63. package/dist/Tabs.mjs +205 -200
  64. package/dist/Tag.mjs +49 -47
  65. package/dist/Text.mjs +20 -20
  66. package/dist/Textarea.mjs +40 -40
  67. package/dist/TimePicker.mjs +59 -58
  68. package/dist/Toast.mjs +135 -128
  69. package/dist/Toggle.mjs +27 -24
  70. package/dist/Tooltip.mjs +103 -99
  71. package/dist/UniversalLink.mjs +15 -15
  72. package/dist/{VEVQD5MH-CuegL0m0.mjs → VEVQD5MH-0w9Y7Ytc.mjs} +3 -3
  73. package/dist/{VGCJ63VH-BMzoZtCu.mjs → VGCJ63VH-C0UPBY-5.mjs} +39 -38
  74. package/dist/VariantIcon.mjs +23 -22
  75. package/dist/WelcomeLoader.mjs +122 -121
  76. package/dist/WuiProvider.mjs +52 -44
  77. package/dist/{X5NMLKT6-CvSCix-_.mjs → X5NMLKT6-BJw3xE-K.mjs} +2 -2
  78. package/dist/{YV4JVR4I-Bh7B7TET.mjs → YV4JVR4I-DPC8mMuG.mjs} +57 -57
  79. package/dist/hide-focus-rings-root-CCXdysih.mjs +15 -0
  80. package/dist/{index-5PUh49rV.mjs → index-62h-enZF.mjs} +62 -61
  81. package/dist/{index-C7zM96J_.mjs → index-BaLGEKs7.mjs} +8 -8
  82. package/dist/index-CYmF7qCH.mjs +11 -0
  83. package/dist/index-C_k-m0Rl.mjs +36 -0
  84. package/dist/index-D8v_VJ9z.mjs +26 -0
  85. package/dist/{index-BNGGwOCo.mjs → index-DAZ1SYdj.mjs} +7 -7
  86. package/dist/index-DpkNUfAS.mjs +11 -0
  87. package/dist/{index-DqBUFsqP.mjs → index-DvzWKxKE.mjs} +7 -7
  88. package/dist/{index-Bkl89twW.mjs → index-QaLwIvZS.mjs} +8 -8
  89. package/dist/{index-BQtDgQBH.mjs → index-SQQQ4dEE.mjs} +8 -8
  90. package/dist/index-i_anpNhw.mjs +66 -0
  91. package/dist/index-wl3X6EM1.mjs +16 -0
  92. package/dist/jsx-runtime-B7I4PJ0H.mjs +613 -0
  93. package/dist/radio-group-C0fUHvam.mjs +52 -0
  94. package/dist/theme.mjs +805 -805
  95. package/dist/types/components/Accordion/index.d.ts +1 -1
  96. package/dist/types/components/Alert/index.d.ts +2 -2
  97. package/dist/types/components/Alert/styles.d.ts +4 -4
  98. package/dist/types/components/Alert/theme.d.ts +4 -4
  99. package/dist/types/components/Avatar/index.d.ts +1 -1
  100. package/dist/types/components/Avatar/styles.d.ts +4 -4
  101. package/dist/types/components/Avatar/theme.d.ts +1 -1
  102. package/dist/types/components/Badge/index.d.ts +2 -2
  103. package/dist/types/components/Badge/styles.d.ts +2 -2
  104. package/dist/types/components/Breadcrumb/Item.d.ts +1 -1
  105. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  106. package/dist/types/components/Button/index.d.ts +4 -5
  107. package/dist/types/components/Button/theme.d.ts +7 -7
  108. package/dist/types/components/ButtonGroup/index.d.ts +3 -3
  109. package/dist/types/components/Card/Cover.styles.d.ts +2 -2
  110. package/dist/types/components/Card/index.d.ts +2 -3
  111. package/dist/types/components/Checkbox/index.d.ts +2 -2
  112. package/dist/types/components/ClearButton/index.d.ts +4 -5
  113. package/dist/types/components/ClearButton/styles.d.ts +2 -2
  114. package/dist/types/components/CloseButton/styles.d.ts +2 -2
  115. package/dist/types/components/DatePicker/index.d.ts +3 -3
  116. package/dist/types/components/DateTimePicker/index.d.ts +2 -2
  117. package/dist/types/components/DateTimePickerCommon/CustomHeader.d.ts +1 -1
  118. package/dist/types/components/DateTimePickerCommon/CustomInput.d.ts +5 -5
  119. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  120. package/dist/types/components/DateTimePickerCommon/index.d.ts +2 -2
  121. package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
  122. package/dist/types/components/Drawer/AssetDrawer/Header.d.ts +1 -1
  123. package/dist/types/components/Drawer/AssetDrawer/index.d.ts +1 -1
  124. package/dist/types/components/Drawer/index.d.ts +8 -8
  125. package/dist/types/components/Drawer/styles.d.ts +3 -3
  126. package/dist/types/components/Drawer/theme.d.ts +1 -1
  127. package/dist/types/components/DropdownMenu/index.d.ts +4 -4
  128. package/dist/types/components/Field/index.d.ts +8 -8
  129. package/dist/types/components/Field/styles.d.ts +1 -1
  130. package/dist/types/components/Field/utils.d.ts +1 -1
  131. package/dist/types/components/FileDrop/FilePreview.d.ts +2 -2
  132. package/dist/types/components/FileDrop/Message.d.ts +1 -1
  133. package/dist/types/components/FileDrop/index.d.ts +16 -16
  134. package/dist/types/components/FileUpload/index.d.ts +13 -13
  135. package/dist/types/components/Files/index.d.ts +4 -4
  136. package/dist/types/components/Files/types.d.ts +1 -1
  137. package/dist/types/components/Hint/index.d.ts +1 -2
  138. package/dist/types/components/Icon/index.d.ts +3 -3
  139. package/dist/types/components/Icon/styles.d.ts +3 -3
  140. package/dist/types/components/Icon/theme.d.ts +1 -1
  141. package/dist/types/components/Icons/index.d.ts +2 -2
  142. package/dist/types/components/IconsFont/index.d.ts +2 -3
  143. package/dist/types/components/IconsFont/styles.d.ts +1 -1
  144. package/dist/types/components/InputText/index.d.ts +1 -1
  145. package/dist/types/components/InputText/styles.d.ts +1 -1
  146. package/dist/types/components/Label/index.d.ts +2 -3
  147. package/dist/types/components/Link/index.d.ts +3 -3
  148. package/dist/types/components/Link/styles.d.ts +2 -2
  149. package/dist/types/components/Loader/index.d.ts +1 -1
  150. package/dist/types/components/Loader/styles.d.ts +2 -2
  151. package/dist/types/components/Loader/theme.d.ts +2 -2
  152. package/dist/types/components/Logo/Solutions.d.ts +1 -2
  153. package/dist/types/components/Logo/Symbol.d.ts +1 -2
  154. package/dist/types/components/Logo/Wui.d.ts +1 -2
  155. package/dist/types/components/Logo/index.d.ts +5 -5
  156. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -5
  157. package/dist/types/components/Modal/Assets/Iframe.d.ts +1 -2
  158. package/dist/types/components/Modal/Assets/index.d.ts +5 -5
  159. package/dist/types/components/Modal/Assets/styles.d.ts +4 -4
  160. package/dist/types/components/Modal/Close.d.ts +1 -2
  161. package/dist/types/components/Modal/Footer.d.ts +1 -1
  162. package/dist/types/components/Modal/Header.d.ts +2 -2
  163. package/dist/types/components/Modal/index.d.ts +11 -11
  164. package/dist/types/components/Modal/styles.d.ts +4 -4
  165. package/dist/types/components/Modal/theme.d.ts +1 -1
  166. package/dist/types/components/Pagination/index.d.ts +2 -2
  167. package/dist/types/components/Pagination/utils.d.ts +1 -1
  168. package/dist/types/components/Popover/Arrow.d.ts +1 -2
  169. package/dist/types/components/Popover/Content.d.ts +2 -3
  170. package/dist/types/components/Popover/Popover.d.ts +4 -5
  171. package/dist/types/components/Popover/PopoverHover.d.ts +3 -4
  172. package/dist/types/components/Popover/Trigger.d.ts +1 -1
  173. package/dist/types/components/Popover/usePopover.d.ts +6 -6
  174. package/dist/types/components/Radio/index.d.ts +5 -5
  175. package/dist/types/components/Radio/styles.d.ts +2 -2
  176. package/dist/types/components/RadioGroup/index.d.ts +2 -2
  177. package/dist/types/components/RadioTab/index.d.ts +2 -2
  178. package/dist/types/components/RadioTab/styles.d.ts +9 -9
  179. package/dist/types/components/Search/index.d.ts +4 -4
  180. package/dist/types/components/Select/index.d.ts +9 -9
  181. package/dist/types/components/Select/styles.d.ts +4 -4
  182. package/dist/types/components/Select/utils.d.ts +4 -4
  183. package/dist/types/components/Shape/index.d.ts +1 -1
  184. package/dist/types/components/Shape/styles.d.ts +2 -2
  185. package/dist/types/components/Slider/Range.d.ts +3 -3
  186. package/dist/types/components/Slider/index.d.ts +2 -2
  187. package/dist/types/components/Slider/styles.d.ts +10 -10
  188. package/dist/types/components/Stack/index.d.ts +1 -1
  189. package/dist/types/components/Swiper/index.d.ts +16 -17
  190. package/dist/types/components/Swiper/styles.d.ts +55 -55
  191. package/dist/types/components/System/index.d.ts +10 -10
  192. package/dist/types/components/Table/index.d.ts +6 -7
  193. package/dist/types/components/Table/styles.d.ts +1 -1
  194. package/dist/types/components/Tabs/ActiveBar.d.ts +5 -5
  195. package/dist/types/components/Tabs/TabList.d.ts +2 -2
  196. package/dist/types/components/Tabs/TabPanel.d.ts +2 -2
  197. package/dist/types/components/Tabs/theme.d.ts +1 -1
  198. package/dist/types/components/Tag/index.d.ts +2 -3
  199. package/dist/types/components/Tag/styles.d.ts +1 -1
  200. package/dist/types/components/Tag/theme.d.ts +2 -2
  201. package/dist/types/components/Text/index.d.ts +2 -2
  202. package/dist/types/components/Textarea/index.d.ts +1 -1
  203. package/dist/types/components/TimePicker/index.d.ts +2 -2
  204. package/dist/types/components/Toast/Growl.d.ts +1 -1
  205. package/dist/types/components/Toast/Snackbar.d.ts +1 -1
  206. package/dist/types/components/Toast/ToastWrapper.d.ts +4 -4
  207. package/dist/types/components/Toast/index.d.ts +5 -5
  208. package/dist/types/components/Toast/styles.d.ts +10 -10
  209. package/dist/types/components/Toast/theme.d.ts +1 -1
  210. package/dist/types/components/Toast/utils.d.ts +13 -13
  211. package/dist/types/components/Toggle/index.d.ts +2 -2
  212. package/dist/types/components/Toggle/theme.d.ts +4 -4
  213. package/dist/types/components/Tooltip/index.d.ts +3 -3
  214. package/dist/types/components/VariantIcon/index.d.ts +1 -1
  215. package/dist/types/components/VariantIcon/styles.d.ts +1 -1
  216. package/dist/types/components/VariantIcon/theme.d.ts +1 -1
  217. package/dist/types/theme/colors.d.ts +3 -3
  218. package/dist/types/theme/dark.d.ts +1 -1
  219. package/dist/types/theme/defaultFields.d.ts +5 -5
  220. package/dist/types/theme/fonts.d.ts +5 -5
  221. package/dist/types/theme/index.d.ts +31 -31
  222. package/dist/types/theme/screens.d.ts +7 -7
  223. package/dist/types/theme/space.d.ts +9 -9
  224. package/dist/types/utils/field-styles.d.ts +2 -2
  225. package/dist/types/utils/index.d.ts +2 -2
  226. package/dist/types/utils/ts-utils.d.ts +1 -1
  227. package/dist/types/utils/use-copy-text.d.ts +1 -1
  228. package/dist/types/utils/use-create-portal.d.ts +1 -1
  229. package/dist/types/utils/wrap-children.d.ts +1 -1
  230. package/dist/{use-viewport-CfklieD-.mjs → use-viewport-CWpjoHXy.mjs} +2 -2
  231. package/dist/utils.mjs +13 -13
  232. package/dist/wrap-children-CzmhoRzd.mjs +13 -0
  233. package/package.json +3 -27
  234. package/dist/LVA2YJMS-DDEmK0pp.mjs +0 -1482
  235. package/dist/hide-focus-rings-root-BNyva1yb.mjs +0 -14
  236. package/dist/index-B0gDDiFm.mjs +0 -66
  237. package/dist/index-B22SHR8h.mjs +0 -26
  238. package/dist/index-CQD9fgf_.mjs +0 -11
  239. package/dist/index-CmsWSKKs.mjs +0 -11
  240. package/dist/index-u1oHKa7X.mjs +0 -16
  241. package/dist/index-wr_b5GSV.mjs +0 -36
  242. package/dist/radio-group-RFyDp0KD.mjs +0 -51
  243. package/dist/wrap-children-aq69jtFP.mjs +0 -12
  244. package/dist/{downshift.esm-D0ns_SQs.mjs → downshift.esm-B7Jil1wW.mjs} +9 -9
@@ -1,16 +1,40 @@
1
1
  "use client";
2
- import a, { useState as d, useEffect as m } from "react";
3
- import { css as i, createGlobalStyle as p, th as f, ThemeProvider as g } from "@xstyled/styled-components";
4
- function h(e, o, n) {
2
+ import { j as r } from "./jsx-runtime-B7I4PJ0H.mjs";
3
+ import { createGlobalStyle as p, css as i, th as d, ThemeProvider as m } from "@xstyled/styled-components";
4
+ import { useState as f, useEffect as g } from "react";
5
+ const u = "data-wui-hidefocusrings", h = p(
6
+ () => i`
7
+ [${u}] *:focus {
8
+ outline: none;
9
+ }
10
+ `
11
+ ), y = ({
12
+ children: e,
13
+ reactRootId: o
14
+ }) => {
15
+ const [n, t] = f(!1);
16
+ return g(() => {
17
+ const a = n ? "keydown" : "mousemove", s = () => t((c) => !c);
18
+ window.addEventListener(a, s);
19
+ const l = document.getElementById(o);
20
+ return l && (n ? l.setAttribute(u, "true") : l.removeAttribute(u)), () => {
21
+ window.removeEventListener(a, s);
22
+ };
23
+ }, [n, o]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
24
+ /* @__PURE__ */ r.jsx(h, {}),
25
+ e
26
+ ] });
27
+ };
28
+ function x(e, o, n) {
5
29
  return n ? o.map((t) => `url('${e}.${t}') format('${t}-variations')`).join(", ") : o.map((t) => `url('${e}.${t}') format('${t}')`).join(", ");
6
30
  }
7
- function y({
31
+ function w({
8
32
  name: e,
9
33
  variation: {
10
34
  display: o = "swap",
11
35
  extensions: n = ["woff2", "woff"],
12
36
  isVariable: t,
13
- style: r,
37
+ style: a,
14
38
  unicodeRange: s,
15
39
  url: l,
16
40
  weight: c
@@ -19,13 +43,13 @@ function y({
19
43
  return i`
20
44
  @font-face {
21
45
  font-family: ${e};
22
- src: ${h(l, n, t)};
46
+ src: ${x(l, n, t)};
23
47
  font-display: ${o};
24
48
  ${c && i`
25
49
  font-weight: ${c};
26
50
  `}
27
- ${r && i`
28
- font-style: ${r};
51
+ ${a && i`
52
+ font-style: ${a};
29
53
  `}
30
54
  ${s && i`
31
55
  unicode-range: ${s};
@@ -33,9 +57,9 @@ function y({
33
57
  }
34
58
  `;
35
59
  }
36
- const w = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.fontFaces).map(
37
- ([o, n]) => n.map((t) => y({ name: o, variation: t }))
38
- ), x = i`
60
+ const k = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.fontFaces).map(
61
+ ([o, n]) => n.map((t) => w({ name: o, variation: t }))
62
+ ), v = i`
39
63
  html,
40
64
  body,
41
65
  div,
@@ -189,7 +213,7 @@ const w = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.f
189
213
  padding-top: 1px;
190
214
  margin-top: -1px;
191
215
  }
192
- `, k = i`
216
+ `, z = i`
193
217
  html {
194
218
  line-height: 1.15;
195
219
  -webkit-text-size-adjust: 100%;
@@ -290,7 +314,7 @@ const w = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.f
290
314
  [type='button'],
291
315
  [type='reset'],
292
316
  [type='submit'] {
293
- appearance: button;
317
+ appearance: auto;
294
318
  -webkit-appearance: button;
295
319
  }
296
320
 
@@ -371,7 +395,7 @@ const w = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.f
371
395
  [hidden] {
372
396
  display: none;
373
397
  }
374
- `, v = i`
398
+ `, $ = i`
375
399
  * {
376
400
  &,
377
401
  &::before,
@@ -380,7 +404,7 @@ const w = () => ({ theme: e }) => !e || !e.fontFaces ? null : Object.entries(e.f
380
404
  }
381
405
  }
382
406
  `;
383
- function z() {
407
+ function j() {
384
408
  return i`
385
409
  body,
386
410
  button,
@@ -397,17 +421,17 @@ function z() {
397
421
  }
398
422
  const b = p(
399
423
  ({ useReset: e }) => i`
400
- ${k};
401
- ${w()};
402
- ${z()};
403
- ${e ? x : v};
424
+ ${z};
425
+ ${k()};
426
+ ${j()};
427
+ ${e ? v : $};
404
428
 
405
429
  html {
406
430
  color: neutral-60;
407
431
  }
408
432
 
409
433
  ::selection {
410
- ${f("selection")};
434
+ ${d("selection")};
411
435
  }
412
436
 
413
437
  /* for firefox */
@@ -428,35 +452,19 @@ const b = p(
428
452
  min-height: 'auto';
429
453
  }
430
454
  `
431
- ), u = "data-wui-hidefocusrings", $ = p(
432
- () => i`
433
- [${u}] *:focus {
434
- outline: none;
435
- }
436
- `
437
455
  ), F = ({
438
- children: e,
439
- reactRootId: o
440
- }) => {
441
- const [n, t] = d(!1);
442
- return m(() => {
443
- const r = n ? "keydown" : "mousemove", s = () => t((c) => !c);
444
- window.addEventListener(r, s);
445
- const l = document.getElementById(o);
446
- return l && (n ? l.setAttribute(u, "true") : l.removeAttribute(u)), () => {
447
- window.removeEventListener(r, s);
448
- };
449
- }, [n, o]), /* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement($, null), e);
450
- }, E = ({
451
456
  children: e,
452
457
  hasGlobalStyle: o = !0,
453
458
  reactRootId: n = "root",
454
459
  shouldHideFocusRingOnClick: t = !0,
455
- theme: r,
460
+ theme: a,
456
461
  useReset: s
457
- }) => /* @__PURE__ */ a.createElement(g, { theme: r }, /* @__PURE__ */ a.createElement(a.Fragment, null, o && /* @__PURE__ */ a.createElement(b, { useReset: s }), t ? /* @__PURE__ */ a.createElement(F, { reactRootId: n }, e) : e)), R = b;
458
- E.displayName = "WuiProvider";
462
+ }) => /* @__PURE__ */ r.jsx(m, { theme: a, children: /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
463
+ o ? /* @__PURE__ */ r.jsx(b, { useReset: s }) : null,
464
+ t ? /* @__PURE__ */ r.jsx(y, { reactRootId: n, children: e }) : e
465
+ ] }) }), E = b;
466
+ F.displayName = "WuiProvider";
459
467
  export {
460
- R as GlobalStyle,
461
- E as WuiProvider
468
+ E as GlobalStyle,
469
+ F as WuiProvider
462
470
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { u as f } from "./KUU7WJ55-CS4NemC6.mjs";
3
- import { f as c, c as m, h as i, j as B, k as u, d as l, e as d, g as v } from "./LVA2YJMS-DDEmK0pp.mjs";
2
+ import { u as f } from "./KUU7WJ55-CzsjuIMv.mjs";
3
+ import { f as c, c as m, h as i, j as B, k as u, d as l, e as d, g as v } from "./LVA2YJMS-C-kJ1lkr.mjs";
4
4
  import { useRef as g, useState as N, useEffect as _ } from "react";
5
5
  var s = "button", R = m(
6
6
  function(t) {
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { i as ot, $ as C, a0 as at, a1 as st, a2 as ut, Q as F, a3 as it, B as ct, D as ft, a4 as lt, J as dt, F as G, d as St, g as P, b as pt, a5 as vt } from "./LVA2YJMS-DDEmK0pp.mjs";
3
- import * as I from "react";
4
- import X from "react";
2
+ import { i as ot, Z as C, $ as at, a0 as st, a1 as ut, P as F, a2 as it, A as ct, C as ft, a3 as lt, I as dt, E as G, d as St, g as U, b as pt, a4 as vt } from "./LVA2YJMS-C-kJ1lkr.mjs";
3
+ import * as T from "react";
4
+ import Q from "react";
5
5
  import { g as _t } from "./_commonjsHelpers-CXJ7dpIk.mjs";
6
- function D(t, n) {
6
+ function A(t, n) {
7
7
  const e = t.__unstableInternals;
8
8
  return ot(e, "Invalid store"), e[n];
9
9
  }
@@ -20,8 +20,8 @@ function W(t, ...n) {
20
20
  (L) => F(
21
21
  ...n.map((V) => {
22
22
  var h;
23
- const T = (h = V == null ? void 0 : V.getState) == null ? void 0 : h.call(V);
24
- if (T && C(T, L))
23
+ const I = (h = V == null ? void 0 : V.getState) == null ? void 0 : h.call(V);
24
+ if (I && C(I, L))
25
25
  return tt(V, [L], (j) => {
26
26
  p(
27
27
  L,
@@ -33,38 +33,38 @@ function W(t, ...n) {
33
33
  });
34
34
  })
35
35
  )
36
- ), A = [];
36
+ ), D = [];
37
37
  for (const L of v)
38
- A.push(L());
39
- const K = n.map(Z);
40
- return o = F(...w, ...A, ...K), b;
38
+ D.push(L());
39
+ const K = n.map(X);
40
+ return o = F(...w, ...D, ...K), b;
41
41
  }, E = (a, r, b = m) => (b.add(r), d.set(r, a), () => {
42
42
  var w;
43
43
  (w = i.get(r)) == null || w(), i.delete(r), d.delete(r), b.delete(r);
44
- }), R = (a, r) => E(a, r), B = (a, r) => (i.set(r, r(e, e)), E(a, r)), q = (a, r) => (i.set(r, r(e, l)), E(a, r, _)), S = (a) => W(st(e, a), y), f = (a) => W(at(e, a), y), O = () => e, p = (a, r, b = !1) => {
44
+ }), R = (a, r) => E(a, r), q = (a, r) => (i.set(r, r(e, e)), E(a, r)), B = (a, r) => (i.set(r, r(e, l)), E(a, r, _)), S = (a) => W(st(e, a), y), f = (a) => W(at(e, a), y), O = () => e, p = (a, r, b = !1) => {
45
45
  var w;
46
46
  if (!C(e, a)) return;
47
- const A = it(r, e[a]);
48
- if (A === e[a]) return;
47
+ const D = it(r, e[a]);
48
+ if (D === e[a]) return;
49
49
  if (!b)
50
50
  for (const h of n)
51
- (w = h == null ? void 0 : h.setState) == null || w.call(h, a, A);
51
+ (w = h == null ? void 0 : h.setState) == null || w.call(h, a, D);
52
52
  const K = e;
53
- e = ct(ft({}, e), { [a]: A });
53
+ e = ct(ft({}, e), { [a]: D });
54
54
  const L = Symbol();
55
55
  s = L, c.add(a);
56
- const V = (h, T, j) => {
56
+ const V = (h, I, j) => {
57
57
  var $;
58
58
  const H = d.get(h), rt = (z) => j ? j.has(z) : z === a;
59
- (!H || H.some(rt)) && (($ = i.get(h)) == null || $(), i.set(h, h(e, T)));
59
+ (!H || H.some(rt)) && (($ = i.get(h)) == null || $(), i.set(h, h(e, I)));
60
60
  };
61
61
  for (const h of m)
62
62
  V(h, K);
63
63
  queueMicrotask(() => {
64
64
  if (s !== L) return;
65
65
  const h = e;
66
- for (const T of _)
67
- V(T, l, c);
66
+ for (const I of _)
67
+ V(I, l, c);
68
68
  l = h, c.clear();
69
69
  });
70
70
  }, y = {
@@ -74,8 +74,8 @@ function W(t, ...n) {
74
74
  setup: g,
75
75
  init: x,
76
76
  subscribe: R,
77
- sync: B,
78
- batch: q,
77
+ sync: q,
78
+ batch: B,
79
79
  pick: S,
80
80
  omit: f
81
81
  }
@@ -84,33 +84,33 @@ function W(t, ...n) {
84
84
  }
85
85
  function Rt(t, ...n) {
86
86
  if (t)
87
- return D(t, "setup")(...n);
87
+ return A(t, "setup")(...n);
88
88
  }
89
- function Z(t, ...n) {
89
+ function X(t, ...n) {
90
90
  if (t)
91
- return D(t, "init")(...n);
91
+ return A(t, "init")(...n);
92
92
  }
93
93
  function k(t, ...n) {
94
94
  if (t)
95
- return D(t, "subscribe")(...n);
95
+ return A(t, "subscribe")(...n);
96
96
  }
97
97
  function tt(t, ...n) {
98
98
  if (t)
99
- return D(t, "sync")(...n);
99
+ return A(t, "sync")(...n);
100
100
  }
101
101
  function ht(t, ...n) {
102
102
  if (t)
103
- return D(t, "batch")(...n);
103
+ return A(t, "batch")(...n);
104
104
  }
105
105
  function Vt(t, ...n) {
106
106
  if (t)
107
- return D(t, "omit")(...n);
107
+ return A(t, "omit")(...n);
108
108
  }
109
- function Dt(t, ...n) {
109
+ function At(t, ...n) {
110
110
  if (t)
111
- return D(t, "pick")(...n);
111
+ return A(t, "pick")(...n);
112
112
  }
113
- function At(...t) {
113
+ function Dt(...t) {
114
114
  const n = t.reduce((l, s) => {
115
115
  var o;
116
116
  const u = (o = s == null ? void 0 : s.getState) == null ? void 0 : o.call(s);
@@ -118,7 +118,7 @@ function At(...t) {
118
118
  }, {}), e = W(n, ...t);
119
119
  return Object.assign({}, ...t, e);
120
120
  }
121
- function Tt(t, n) {
121
+ function It(t, n) {
122
122
  if (process.env.NODE_ENV === "production" || !n) return;
123
123
  const e = Object.entries(t).filter(([o, u]) => o.startsWith("default") && u !== void 0).map(([o]) => {
124
124
  var u;
@@ -148,11 +148,11 @@ If there's a particular need for this, please submit a feature request at https:
148
148
  `
149
149
  );
150
150
  }
151
- var U = { exports: {} }, M = {}, Y;
151
+ var P = { exports: {} }, M = {}, Y;
152
152
  function mt() {
153
153
  if (Y) return M;
154
154
  Y = 1;
155
- var t = X;
155
+ var t = Q;
156
156
  function n(i, d) {
157
157
  return i === d && (i !== 0 || 1 / i === 1 / d) || i !== i && d !== d;
158
158
  }
@@ -183,11 +183,11 @@ function mt() {
183
183
  var _ = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? m : c;
184
184
  return M.useSyncExternalStore = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : _, M;
185
185
  }
186
- var N = {}, J;
186
+ var N = {}, Z;
187
187
  function Et() {
188
- return J || (J = 1, process.env.NODE_ENV !== "production" && function() {
188
+ return Z || (Z = 1, process.env.NODE_ENV !== "production" && function() {
189
189
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
190
- var t = X, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
190
+ var t = Q, n = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
191
191
  function e(S) {
192
192
  {
193
193
  for (var f = arguments.length, O = new Array(f > 1 ? f - 1 : 0), p = 1; p < f; p++)
@@ -250,20 +250,20 @@ function Et() {
250
250
  function x(S, f, O) {
251
251
  return f();
252
252
  }
253
- var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, B = R ? x : d, q = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : B;
254
- N.useSyncExternalStore = q, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
253
+ var E = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", R = !E, q = R ? x : d, B = t.useSyncExternalStore !== void 0 ? t.useSyncExternalStore : q;
254
+ N.useSyncExternalStore = B, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
255
255
  }()), N;
256
256
  }
257
- var Q;
257
+ var J;
258
258
  function gt() {
259
- return Q || (Q = 1, process.env.NODE_ENV === "production" ? U.exports = mt() : U.exports = Et()), U.exports;
259
+ return J || (J = 1, process.env.NODE_ENV === "production" ? P.exports = mt() : P.exports = Et()), P.exports;
260
260
  }
261
261
  var Ot = gt();
262
262
  const bt = /* @__PURE__ */ _t(Ot);
263
263
  var { useSyncExternalStore: et } = bt, nt = () => () => {
264
264
  };
265
265
  function yt(t, n = dt) {
266
- const e = I.useCallback(
266
+ const e = T.useCallback(
267
267
  (s) => t ? k(t, null, s) : nt(),
268
268
  [t]
269
269
  ), l = () => {
@@ -274,10 +274,10 @@ function yt(t, n = dt) {
274
274
  };
275
275
  return et(e, l, l);
276
276
  }
277
- function It(t, n) {
278
- const e = I.useRef(
277
+ function Tt(t, n) {
278
+ const e = T.useRef(
279
279
  {}
280
- ), l = I.useCallback(
280
+ ), l = T.useCallback(
281
281
  (o) => t ? k(t, null, o) : nt(),
282
282
  [t]
283
283
  ), s = () => {
@@ -296,7 +296,7 @@ function It(t, n) {
296
296
  _ !== c[v] && (c[v] = _, u = !0);
297
297
  }
298
298
  }
299
- return u && (e.current = P({}, c)), e.current;
299
+ return u && (e.current = U({}, c)), e.current;
300
300
  };
301
301
  return et(l, s, s);
302
302
  }
@@ -313,16 +313,16 @@ function Ct(t, n, e, l) {
313
313
  });
314
314
  }
315
315
  function jt(t, n) {
316
- const [e, l] = I.useState(() => t(n));
317
- G(() => Z(e), [e]);
318
- const s = I.useCallback(
316
+ const [e, l] = T.useState(() => t(n));
317
+ G(() => X(e), [e]);
318
+ const s = T.useCallback(
319
319
  (c) => yt(e, c),
320
320
  [e]
321
- ), o = I.useMemo(
322
- () => St(P({}, e), { useState: s }),
321
+ ), o = T.useMemo(
322
+ () => St(U({}, e), { useState: s }),
323
323
  [e, s]
324
324
  ), u = pt(() => {
325
- l((c) => t(P(P({}, n), c.getState())));
325
+ l((c) => t(U(U({}, n), c.getState())));
326
326
  });
327
327
  return [o, u];
328
328
  }
@@ -332,13 +332,13 @@ export {
332
332
  W as c,
333
333
  tt as d,
334
334
  k as e,
335
- It as f,
335
+ Tt as f,
336
336
  ht as g,
337
- Z as i,
338
- At as m,
337
+ X as i,
338
+ Dt as m,
339
339
  Vt as o,
340
- Dt as p,
340
+ At as p,
341
341
  Rt as s,
342
- Tt as t,
342
+ It as t,
343
343
  yt as u
344
344
  };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import "./jsx-runtime-B7I4PJ0H.mjs";
3
+ import { createGlobalStyle as t, css as o } from "@xstyled/styled-components";
4
+ import "react";
5
+ const e = "data-wui-hidefocusrings";
6
+ t(
7
+ () => o`
8
+ [${e}] *:focus {
9
+ outline: none;
10
+ }
11
+ `
12
+ );
13
+ export {
14
+ e as h
15
+ };