welcome-ui 8.1.0 → 8.2.0-alpha.0

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 (156) hide show
  1. package/dist/Alert.mjs +28 -28
  2. package/dist/Avatar.mjs +47 -44
  3. package/dist/Breadcrumb.mjs +169 -167
  4. package/dist/ButtonGroup.mjs +14 -14
  5. package/dist/Checkbox.mjs +1 -1
  6. package/dist/{CustomPopper-B2Cqfph4.mjs → CustomPopper-DezjKb9n.mjs} +12 -17
  7. package/dist/DatePicker.mjs +74 -74
  8. package/dist/DateTimePicker.mjs +60 -59
  9. package/dist/DateTimePickerCommon.mjs +1 -1
  10. package/dist/Drawer.mjs +51 -55
  11. package/dist/DropdownMenu.mjs +183 -183
  12. package/dist/Field.mjs +9 -10
  13. package/dist/FileDrop.mjs +455 -465
  14. package/dist/FileUpload.mjs +74 -81
  15. package/dist/Files.mjs +15 -15
  16. package/dist/InputText.mjs +42 -42
  17. package/dist/Label.mjs +1 -1
  18. package/dist/Modal.mjs +115 -119
  19. package/dist/Pagination.mjs +31 -29
  20. package/dist/PasswordInput.mjs +9 -9
  21. package/dist/Picker.mjs +23 -23
  22. package/dist/Radio.mjs +35 -35
  23. package/dist/RadioTab.mjs +1 -1
  24. package/dist/Search.mjs +123 -127
  25. package/dist/Select.mjs +301 -318
  26. package/dist/Slider.mjs +228 -224
  27. package/dist/Stack.mjs +15 -12
  28. package/dist/Swiper.mjs +126 -127
  29. package/dist/Tabs.mjs +1 -1
  30. package/dist/Tag.mjs +19 -19
  31. package/dist/Text.mjs +35 -37
  32. package/dist/Textarea.mjs +1 -1
  33. package/dist/TimePicker.mjs +61 -61
  34. package/dist/Toast.mjs +3 -3
  35. package/dist/Toggle.mjs +1 -1
  36. package/dist/Tooltip.mjs +1 -1
  37. package/dist/VariantIcon.mjs +14 -5
  38. package/dist/WuiProvider.mjs +35 -38
  39. package/dist/{field-styles-BVlRlvuu.mjs → field-styles-CfVLcVQp.mjs} +1 -1
  40. package/dist/{hex-to-rgba-DU_XzKIK.mjs → hex-to-rgba-BIDK-3ab.mjs} +2 -2
  41. package/dist/{index-5HBq1O6Z.mjs → index-62h-enZF.mjs} +31 -31
  42. package/dist/index-BhcLigYU.mjs +77 -0
  43. package/dist/theme.mjs +23 -23
  44. package/dist/throttle-BDBzFeFj.mjs +13 -0
  45. package/dist/types/components/Accordion/styles.d.ts +2 -2
  46. package/dist/types/components/Accordion/theme.d.ts +1 -1
  47. package/dist/types/components/Alert/styles.d.ts +9 -9
  48. package/dist/types/components/Alert/theme.d.ts +3 -3
  49. package/dist/types/components/AspectRatio/styles.d.ts +2 -3
  50. package/dist/types/components/Avatar/index.d.ts +2 -1
  51. package/dist/types/components/Avatar/styles.d.ts +8 -8
  52. package/dist/types/components/Avatar/theme.d.ts +2 -2
  53. package/dist/types/components/Avatar/utils.d.ts +1 -1
  54. package/dist/types/components/Badge/styles.d.ts +4 -4
  55. package/dist/types/components/Badge/theme.d.ts +1 -1
  56. package/dist/types/components/Breadcrumb/index.d.ts +1 -1
  57. package/dist/types/components/Breadcrumb/theme.d.ts +1 -1
  58. package/dist/types/components/Button/index.d.ts +1 -1
  59. package/dist/types/components/Button/styles.d.ts +1 -1
  60. package/dist/types/components/Button/theme.d.ts +3 -3
  61. package/dist/types/components/ButtonGroup/index.d.ts +2 -2
  62. package/dist/types/components/Card/Cover.styles.d.ts +4 -4
  63. package/dist/types/components/Card/theme.d.ts +1 -1
  64. package/dist/types/components/Checkbox/styles.d.ts +1 -1
  65. package/dist/types/components/Checkbox/theme.d.ts +1 -1
  66. package/dist/types/components/ClearButton/index.d.ts +4 -4
  67. package/dist/types/components/ClearButton/styles.d.ts +4 -4
  68. package/dist/types/components/CloseButton/styles.d.ts +4 -4
  69. package/dist/types/components/DateTimePickerCommon/CustomPopper.d.ts +1 -1
  70. package/dist/types/components/DateTimePickerCommon/theme.d.ts +1 -1
  71. package/dist/types/components/DateTimePickerCommon/utils.d.ts +1 -1
  72. package/dist/types/components/Drawer/index.d.ts +5 -5
  73. package/dist/types/components/Drawer/styles.d.ts +4 -4
  74. package/dist/types/components/Drawer/theme.d.ts +2 -2
  75. package/dist/types/components/DropdownMenu/index.d.ts +1 -1
  76. package/dist/types/components/DropdownMenu/theme.d.ts +1 -1
  77. package/dist/types/components/Field/utils.d.ts +1 -1
  78. package/dist/types/components/FileDrop/index.d.ts +4 -4
  79. package/dist/types/components/FileDrop/theme.d.ts +1 -1
  80. package/dist/types/components/FileUpload/index.d.ts +2 -2
  81. package/dist/types/components/Files/index.d.ts +3 -3
  82. package/dist/types/components/Files/types.d.ts +1 -1
  83. package/dist/types/components/Hint/theme.d.ts +1 -1
  84. package/dist/types/components/Icon/theme.d.ts +2 -2
  85. package/dist/types/components/Icons/Sun/content.json.d.ts +1 -2
  86. package/dist/types/components/Label/theme.d.ts +1 -1
  87. package/dist/types/components/Link/index.d.ts +2 -2
  88. package/dist/types/components/Link/styles.d.ts +4 -4
  89. package/dist/types/components/Link/theme.d.ts +1 -1
  90. package/dist/types/components/Loader/styles.d.ts +4 -4
  91. package/dist/types/components/Loader/theme.d.ts +2 -2
  92. package/dist/types/components/Modal/Assets/Backdrop.d.ts +4 -4
  93. package/dist/types/components/Modal/Assets/index.d.ts +8 -8
  94. package/dist/types/components/Modal/Assets/styles.d.ts +8 -8
  95. package/dist/types/components/Modal/Close.d.ts +2 -2
  96. package/dist/types/components/Modal/Content.d.ts +5 -3
  97. package/dist/types/components/Modal/index.d.ts +10 -10
  98. package/dist/types/components/Modal/styles.d.ts +7 -7
  99. package/dist/types/components/Modal/theme.d.ts +1 -1
  100. package/dist/types/components/Pagination/theme.d.ts +1 -1
  101. package/dist/types/components/Picker/index.d.ts +1 -1
  102. package/dist/types/components/Picker/styles.d.ts +1 -1
  103. package/dist/types/components/Popover/styles.d.ts +4 -4
  104. package/dist/types/components/Popover/theme.d.ts +1 -1
  105. package/dist/types/components/Radio/index.d.ts +2 -2
  106. package/dist/types/components/Radio/styles.d.ts +5 -5
  107. package/dist/types/components/Radio/theme.d.ts +1 -1
  108. package/dist/types/components/RadioTab/index.d.ts +1 -1
  109. package/dist/types/components/RadioTab/styles.d.ts +10 -4
  110. package/dist/types/components/RadioTab/theme.d.ts +1 -1
  111. package/dist/types/components/Search/index.d.ts +1 -1
  112. package/dist/types/components/Select/index.d.ts +4 -4
  113. package/dist/types/components/Select/styles.d.ts +4 -4
  114. package/dist/types/components/Select/utils.d.ts +4 -8
  115. package/dist/types/components/Shape/styles.d.ts +3 -3
  116. package/dist/types/components/Slider/styles.d.ts +16 -16
  117. package/dist/types/components/Slider/theme.d.ts +1 -1
  118. package/dist/types/components/Swiper/index.d.ts +1 -1
  119. package/dist/types/components/Swiper/styles.d.ts +16 -16
  120. package/dist/types/components/Swiper/theme.d.ts +1 -1
  121. package/dist/types/components/System/index.d.ts +6 -6
  122. package/dist/types/components/Table/theme.d.ts +1 -1
  123. package/dist/types/components/Tabs/ActiveBar.d.ts +2 -2
  124. package/dist/types/components/Tabs/TabList.d.ts +2 -2
  125. package/dist/types/components/Tabs/styles.d.ts +2 -2
  126. package/dist/types/components/Tabs/theme.d.ts +1 -1
  127. package/dist/types/components/Tag/theme.d.ts +1 -1
  128. package/dist/types/components/Textarea/theme.d.ts +1 -1
  129. package/dist/types/components/Toast/ToastWrapper.d.ts +1 -1
  130. package/dist/types/components/Toast/index.d.ts +1 -1
  131. package/dist/types/components/Toast/styles.d.ts +14 -14
  132. package/dist/types/components/Toast/theme.d.ts +1 -1
  133. package/dist/types/components/Toggle/index.d.ts +2 -2
  134. package/dist/types/components/Toggle/styles.d.ts +4 -5
  135. package/dist/types/components/Toggle/theme.d.ts +1 -1
  136. package/dist/types/components/Tooltip/index.d.ts +2 -2
  137. package/dist/types/components/Tooltip/styles.d.ts +1 -1
  138. package/dist/types/components/Tooltip/theme.d.ts +1 -1
  139. package/dist/types/components/VariantIcon/theme.d.ts +1 -1
  140. package/dist/types/components/WuiProvider/font.d.ts +5 -3
  141. package/dist/types/components/WuiProvider/index.d.ts +1 -1
  142. package/dist/types/theme/colors.d.ts +9 -1
  143. package/dist/types/theme/defaultFields.d.ts +5 -5
  144. package/dist/types/theme/index.d.ts +2 -2
  145. package/dist/types/theme/screens.d.ts +7 -7
  146. package/dist/types/theme/space.d.ts +9 -9
  147. package/dist/types/theme/typography.d.ts +1 -1
  148. package/dist/types/utils/field-styles.d.ts +6 -6
  149. package/dist/types/utils/use-create-portal.d.ts +1 -1
  150. package/dist/types/utils/use-viewport.d.ts +2 -2
  151. package/dist/{use-fork-ref-DvaCTfQ_.mjs → use-fork-ref-CUZErtAC.mjs} +3 -4
  152. package/dist/utils.mjs +29 -102
  153. package/dist/wrap-children-CzmhoRzd.mjs +13 -0
  154. package/package.json +2 -2
  155. package/dist/throttle-CW18pWlW.mjs +0 -13
  156. package/dist/wrap-children-DBSD-X5-.mjs +0 -9
@@ -4,26 +4,26 @@ import Q, { th as U, css as Le, useTheme as $e } from "@xstyled/styled-component
4
4
  import { forwardRef as X } from "./System.mjs";
5
5
  import { h as ie, j as je, C as he, a as ge, u as Ve } from "./P2CTZE2T-DOT1mNnX.mjs";
6
6
  import { e as Re, f as Be, c as Ke, d as ze, g as We, h as Ze } from "./BYC7LY2E-CWSI38FM.mjs";
7
- import { c as D, _ as P, i as B, a6 as Ue, u as ae, b as j, a8 as Z, U as qe, d as E, e as ne, g as b, y as we, Y as Ge, Z as Qe, v as Me, f as k, h as F, H as xe, Q as Xe, p as Ye, o as Je, aa as et, t as Se, z as tt, A as G, B as W, C as $, a2 as rt, G as nt, w as Ce, D as ye, ab as ot, X as st, l as at, ac as Ee, s as ut, ad as it, ae as ct } from "./LVA2YJMS-C-kJ1lkr.mjs";
8
- import { useCallback as lt, useRef as ce, createContext as Oe, useState as Pe, useEffect as Ae, createRef as dt, useMemo as ft } from "react";
7
+ import { c as D, _ as O, i as B, a6 as Ue, u as ae, b as j, a8 as Z, U as qe, d as E, e as ne, g as b, y as we, Y as Ge, Z as Qe, v as Me, f as k, h as F, H as xe, Q as Xe, p as Ye, o as Je, aa as et, t as Se, z as tt, A as G, B as W, C as $, a2 as rt, G as nt, w as Ce, D as ye, ab as ot, X as st, l as at, ac as Ee, s as ut, ad as it, ae as ct } from "./LVA2YJMS-C-kJ1lkr.mjs";
8
+ import { useCallback as lt, useRef as ce, createContext as Pe, useState as Oe, useEffect as Ae, createRef as dt, useMemo as ft } from "react";
9
9
  import { u as pt, b as mt } from "./QYJ6MIDR-DJ-vUdAM.mjs";
10
10
  import { m as vt, o as bt, p as ht, t as gt, c as wt, s as me, d as ve, a as Mt, b as xt, u as V } from "./YV4JVR4I-DPC8mMuG.mjs";
11
11
  import { c as St, u as Ct, a as yt } from "./ITI7HKP4-C89kOQb8.mjs";
12
12
  import { i as Et } from "./VGCJ63VH-C0UPBY-5.mjs";
13
- import { c as Ot, R as Pt } from "./JC64G2H7-afsomHuH.mjs";
13
+ import { c as Pt, R as Ot } from "./JC64G2H7-afsomHuH.mjs";
14
14
  import { a as At } from "./VEVQD5MH-0w9Y7Ytc.mjs";
15
15
  var Tt = "div";
16
- function Te(n) {
17
- const t = n.relatedTarget;
16
+ function Te(r) {
17
+ const t = r.relatedTarget;
18
18
  return (t == null ? void 0 : t.nodeType) === Node.ELEMENT_NODE ? t : null;
19
19
  }
20
- function It(n) {
21
- const t = Te(n);
22
- return t ? Ge(n.currentTarget, t) : !1;
20
+ function It(r) {
21
+ const t = Te(r);
22
+ return t ? Ge(r.currentTarget, t) : !1;
23
23
  }
24
24
  var ue = Symbol("composite-hover");
25
- function Ht(n) {
26
- let t = Te(n);
25
+ function Ht(r) {
26
+ let t = Te(r);
27
27
  if (!t) return !1;
28
28
  do {
29
29
  if (Qe(t, ue) && t[ue]) return !0;
@@ -33,21 +33,21 @@ function Ht(n) {
33
33
  }
34
34
  var Ie = D(
35
35
  function(t) {
36
- var r = t, {
36
+ var n = t, {
37
37
  store: e,
38
- focusOnHover: o = !0,
39
- blurOnHoverEnd: u = !!o
40
- } = r, a = P(r, [
38
+ focusOnHover: s = !0,
39
+ blurOnHoverEnd: u = !!s
40
+ } = n, a = O(n, [
41
41
  "store",
42
42
  "focusOnHover",
43
43
  "blurOnHoverEnd"
44
44
  ]);
45
- const s = ie();
46
- e = e || s, B(
45
+ const o = ie();
46
+ e = e || o, B(
47
47
  e,
48
48
  process.env.NODE_ENV !== "production" && "CompositeHover must be wrapped in a Composite component."
49
49
  );
50
- const c = Ue(), l = a.onMouseMove, i = ae(o), w = j((f) => {
50
+ const c = Ue(), l = a.onMouseMove, i = ae(s), w = j((f) => {
51
51
  if (l == null || l(f), !f.defaultPrevented && c() && i(f)) {
52
52
  if (!Z(f.currentTarget)) {
53
53
  const M = e == null ? void 0 : e.getState().baseElement;
@@ -70,81 +70,81 @@ var Ie = D(
70
70
  );
71
71
  Me(
72
72
  k(function(t) {
73
- const r = Ie(t);
74
- return F(Tt, r);
73
+ const n = Ie(t);
74
+ return F(Tt, n);
75
75
  })
76
76
  );
77
77
  var _t = "hr", He = D(
78
78
  function(t) {
79
- var r = t, { orientation: e = "horizontal" } = r, o = P(r, ["orientation"]);
80
- return o = b({
79
+ var n = t, { orientation: e = "horizontal" } = n, s = O(n, ["orientation"]);
80
+ return s = b({
81
81
  role: "separator",
82
82
  "aria-orientation": e
83
- }, o), o;
83
+ }, s), s;
84
84
  }
85
85
  );
86
86
  k(function(t) {
87
- const r = He(t);
88
- return F(_t, r);
87
+ const n = He(t);
88
+ return F(_t, n);
89
89
  });
90
90
  var Dt = "hr", _e = D(function(t) {
91
- var r = t, { store: e } = r, o = P(r, ["store"]);
91
+ var n = t, { store: e } = n, s = O(n, ["store"]);
92
92
  const u = ie();
93
93
  e = e || u, B(
94
94
  e,
95
95
  process.env.NODE_ENV !== "production" && "CompositeSeparator must be wrapped in a Composite component."
96
96
  );
97
97
  const a = e.useState(
98
- (s) => s.orientation === "horizontal" ? "vertical" : "horizontal"
98
+ (o) => o.orientation === "horizontal" ? "vertical" : "horizontal"
99
99
  );
100
- return o = He(E(b({}, o), { orientation: a })), o;
100
+ return s = He(E(b({}, s), { orientation: a })), s;
101
101
  });
102
102
  k(function(t) {
103
- const r = _e(t);
104
- return F(Dt, r);
103
+ const n = _e(t);
104
+ return F(Dt, n);
105
105
  });
106
106
  var kt = "div", N = "";
107
107
  function se() {
108
108
  N = "";
109
109
  }
110
- function Ft(n) {
111
- const t = n.target;
112
- return t && Ye(t) ? !1 : n.key === " " && N.length ? !0 : n.key.length === 1 && !n.ctrlKey && !n.altKey && !n.metaKey && /^[\p{Letter}\p{Number}]$/u.test(n.key);
110
+ function Ft(r) {
111
+ const t = r.target;
112
+ return t && Ye(t) ? !1 : r.key === " " && N.length ? !0 : r.key.length === 1 && !r.ctrlKey && !r.altKey && !r.metaKey && /^[\p{Letter}\p{Number}]$/u.test(r.key);
113
113
  }
114
- function Nt(n, t) {
115
- if (Je(n)) return !0;
116
- const r = n.target;
117
- return r ? t.some((o) => o.element === r) : !1;
114
+ function Nt(r, t) {
115
+ if (Je(r)) return !0;
116
+ const n = r.target;
117
+ return n ? t.some((s) => s.element === n) : !1;
118
118
  }
119
- function Lt(n) {
120
- return n.filter((t) => !t.disabled);
119
+ function Lt(r) {
120
+ return r.filter((t) => !t.disabled);
121
121
  }
122
- function re(n, t) {
123
- var r;
124
- const e = ((r = n.element) == null ? void 0 : r.textContent) || n.children || // The composite item object itself doesn't include a value property, but
122
+ function re(r, t) {
123
+ var n;
124
+ const e = ((n = r.element) == null ? void 0 : n.textContent) || r.children || // The composite item object itself doesn't include a value property, but
125
125
  // other components like Select do. Since CompositeTypeahead is a generic
126
126
  // component that can be used with those as well, we also consider the value
127
127
  // property as a fallback for the typeahead text content.
128
- "value" in n && n.value;
128
+ "value" in r && r.value;
129
129
  return e ? et(e).trim().toLowerCase().startsWith(t.toLowerCase()) : !1;
130
130
  }
131
- function $t(n, t, r) {
132
- if (!r) return n;
133
- const e = n.find((o) => o.id === r);
134
- return !e || !re(e, t) || N !== t && re(e, N) ? n : (N = t, je(
135
- n.filter((o) => re(o, N)),
136
- r
137
- ).filter((o) => o.id !== r));
131
+ function $t(r, t, n) {
132
+ if (!n) return r;
133
+ const e = r.find((s) => s.id === n);
134
+ return !e || !re(e, t) || N !== t && re(e, N) ? r : (N = t, je(
135
+ r.filter((s) => re(s, N)),
136
+ n
137
+ ).filter((s) => s.id !== n));
138
138
  }
139
139
  var le = D(function(t) {
140
- var r = t, { store: e, typeahead: o = !0 } = r, u = P(r, ["store", "typeahead"]);
140
+ var n = t, { store: e, typeahead: s = !0 } = n, u = O(n, ["store", "typeahead"]);
141
141
  const a = ie();
142
142
  e = e || a, B(
143
143
  e,
144
144
  process.env.NODE_ENV !== "production" && "CompositeTypeahead must be a Composite component"
145
145
  );
146
- const s = u.onKeyDownCapture, c = ce(0), l = j((i) => {
147
- if (s == null || s(i), i.defaultPrevented || !o || !e) return;
146
+ const o = u.onKeyDownCapture, c = ce(0), l = j((i) => {
147
+ if (o == null || o(i), i.defaultPrevented || !s || !e) return;
148
148
  if (!Ft(i))
149
149
  return se();
150
150
  const { renderedItems: w, items: m, activeId: d, id: S } = e.getState();
@@ -162,45 +162,45 @@ var le = D(function(t) {
162
162
  }, 500);
163
163
  const A = i.key.toLowerCase();
164
164
  N += A, p = $t(p, A, d);
165
- const O = p.find((x) => re(x, N));
166
- O ? e.move(O.id) : se();
165
+ const P = p.find((x) => re(x, N));
166
+ P ? e.move(P.id) : se();
167
167
  });
168
168
  return u = E(b({}, u), {
169
169
  onKeyDownCapture: l
170
170
  }), we(u);
171
171
  });
172
172
  k(function(t) {
173
- const r = le(t);
174
- return F(kt, r);
173
+ const n = le(t);
174
+ return F(kt, n);
175
175
  });
176
176
  var De = Se(
177
177
  [ge],
178
178
  [he]
179
179
  ), jt = De.useContext, Vt = De.useScopedContext;
180
- Oe(
180
+ Pe(
181
181
  void 0
182
182
  );
183
183
  var Y = Se(
184
184
  [ge, Be],
185
185
  [he, Re]
186
186
  ), de = Y.useContext, Rt = Y.useScopedContext, oe = Y.useProviderContext, Bt = Y.ContextProvider, Kt = Y.ScopedContextProvider;
187
- Oe(
187
+ Pe(
188
188
  void 0
189
189
  );
190
- function zt(n = {}) {
191
- var t = n, {
192
- combobox: r,
190
+ function zt(r = {}) {
191
+ var t = r, {
192
+ combobox: n,
193
193
  parent: e,
194
- menubar: o
194
+ menubar: s
195
195
  } = t, u = tt(t, [
196
196
  "combobox",
197
197
  "parent",
198
198
  "menubar"
199
199
  ]);
200
- const a = !!o && !e, s = vt(
200
+ const a = !!s && !e, o = vt(
201
201
  u.store,
202
202
  ht(e, ["values"]),
203
- bt(r, [
203
+ bt(n, [
204
204
  "arrowElement",
205
205
  "anchorElement",
206
206
  "contentElement",
@@ -208,16 +208,16 @@ function zt(n = {}) {
208
208
  "disclosureElement"
209
209
  ])
210
210
  );
211
- gt(u, s);
212
- const c = s.getState(), l = St(G($({}, u), {
213
- store: s,
211
+ gt(u, o);
212
+ const c = o.getState(), l = St(G($({}, u), {
213
+ store: o,
214
214
  orientation: W(
215
215
  u.orientation,
216
216
  c.orientation,
217
217
  "vertical"
218
218
  )
219
219
  })), i = Ke(G($({}, u), {
220
- store: s,
220
+ store: o,
221
221
  placement: W(
222
222
  u.placement,
223
223
  c.placement,
@@ -237,7 +237,7 @@ function zt(n = {}) {
237
237
  u.defaultValues,
238
238
  {}
239
239
  )
240
- }), m = wt(w, l, i, s);
240
+ }), m = wt(w, l, i, o);
241
241
  return me(
242
242
  m,
243
243
  () => ve(m, ["mounted"], (d) => {
@@ -252,9 +252,9 @@ function zt(n = {}) {
252
252
  );
253
253
  })
254
254
  ), G($($($({}, l), i), m), {
255
- combobox: r,
255
+ combobox: n,
256
256
  parent: e,
257
- menubar: o,
257
+ menubar: s,
258
258
  hideAll: () => {
259
259
  i.hide(), e == null || e.hideAll();
260
260
  },
@@ -270,47 +270,47 @@ function zt(n = {}) {
270
270
  }
271
271
  });
272
272
  }
273
- function Wt(n, t, r) {
274
- return nt(t, [r.combobox, r.parent, r.menubar]), xt(n, r, "values", "setValues"), Object.assign(
273
+ function Wt(r, t, n) {
274
+ return nt(t, [n.combobox, n.parent, n.menubar]), xt(r, n, "values", "setValues"), Object.assign(
275
275
  ze(
276
- Ct(n, t, r),
276
+ Ct(r, t, n),
277
277
  t,
278
- r
278
+ n
279
279
  ),
280
280
  {
281
- combobox: r.combobox,
282
- parent: r.parent,
283
- menubar: r.menubar
281
+ combobox: n.combobox,
282
+ parent: n.parent,
283
+ menubar: n.menubar
284
284
  }
285
285
  );
286
286
  }
287
- function Zt(n = {}) {
288
- const t = de(), r = jt(), e = At();
289
- n = E(b({}, n), {
290
- parent: n.parent !== void 0 ? n.parent : t,
291
- menubar: n.menubar !== void 0 ? n.menubar : r,
292
- combobox: n.combobox !== void 0 ? n.combobox : e
287
+ function Zt(r = {}) {
288
+ const t = de(), n = jt(), e = At();
289
+ r = E(b({}, r), {
290
+ parent: r.parent !== void 0 ? r.parent : t,
291
+ menubar: r.menubar !== void 0 ? r.menubar : n,
292
+ combobox: r.combobox !== void 0 ? r.combobox : e
293
293
  });
294
- const [o, u] = Mt(zt, n);
295
- return Wt(o, u, n);
294
+ const [s, u] = Mt(zt, r);
295
+ return Wt(s, u, r);
296
296
  }
297
297
  var Ut = "div";
298
- function qt(n) {
299
- var t = n, { store: r } = t, e = P(t, ["store"]);
300
- const [o, u] = Pe(void 0), a = e["aria-label"], s = V(r, "disclosureElement"), c = V(r, "contentElement");
298
+ function qt(r) {
299
+ var t = r, { store: n } = t, e = O(t, ["store"]);
300
+ const [s, u] = Oe(void 0), a = e["aria-label"], o = V(n, "disclosureElement"), c = V(n, "contentElement");
301
301
  return Ae(() => {
302
- const l = s;
302
+ const l = o;
303
303
  if (!l) return;
304
304
  const i = c;
305
305
  if (!i) return;
306
306
  a || i.hasAttribute("aria-label") ? u(void 0) : l.id && u(l.id);
307
- }, [a, s, c]), o;
307
+ }, [a, o, c]), s;
308
308
  }
309
309
  var ke = D(
310
310
  function(t) {
311
- var r = t, { store: e, alwaysVisible: o, composite: u } = r, a = P(r, ["store", "alwaysVisible", "composite"]);
312
- const s = oe();
313
- e = e || s, B(
311
+ var n = t, { store: e, alwaysVisible: s, composite: u } = n, a = O(n, ["store", "alwaysVisible", "composite"]);
312
+ const o = oe();
313
+ e = e || o, B(
314
314
  e,
315
315
  process.env.NODE_ENV !== "production" && "MenuList must receive a `store` prop or be wrapped in a MenuProvider component."
316
316
  );
@@ -361,11 +361,11 @@ var ke = D(
361
361
  (g) => /* @__PURE__ */ C.jsx(Kt, { value: e, children: g }),
362
362
  [e]
363
363
  );
364
- const v = qt(b({ store: e }, a)), A = e.useState("mounted"), O = Et(A, a.hidden, o), x = O ? E(b({}, a.style), { display: "none" }) : a.style;
364
+ const v = qt(b({ store: e }, a)), A = e.useState("mounted"), P = Et(A, a.hidden, s), x = P ? E(b({}, a.style), { display: "none" }) : a.style;
365
365
  a = E(b({
366
366
  id: w,
367
367
  "aria-labelledby": v,
368
- hidden: O
368
+ hidden: P
369
369
  }, a), {
370
370
  ref: ne(w ? e.setContentElement : null, a.ref),
371
371
  style: x,
@@ -379,19 +379,19 @@ var ke = D(
379
379
  }
380
380
  );
381
381
  k(function(t) {
382
- const r = ke(t);
383
- return F(Ut, r);
382
+ const n = ke(t);
383
+ return F(Ut, n);
384
384
  });
385
385
  var Gt = "div", Qt = D(function(t) {
386
- var r = t, {
386
+ var n = t, {
387
387
  store: e,
388
- modal: o = !1,
389
- portal: u = !!o,
388
+ modal: s = !1,
389
+ portal: u = !!s,
390
390
  hideOnEscape: a = !0,
391
- autoFocusOnShow: s = !0,
391
+ autoFocusOnShow: o = !0,
392
392
  hideOnHoverOutside: c,
393
393
  alwaysVisible: l
394
- } = r, i = P(r, [
394
+ } = n, i = O(n, [
395
395
  "store",
396
396
  "modal",
397
397
  "portal",
@@ -413,8 +413,8 @@ var Gt = "div", Qt = D(function(t) {
413
413
  store: e,
414
414
  alwaysVisible: l
415
415
  }, i)), { "aria-labelledby": v } = M;
416
- i = P(M, ["aria-labelledby"]);
417
- const [O, x] = Pe(), H = e.useState("autoFocusOnShow"), g = e.useState("initialFocus"), K = e.useState("baseElement"), T = e.useState("renderedItems");
416
+ i = O(M, ["aria-labelledby"]);
417
+ const [P, x] = Oe(), H = e.useState("autoFocusOnShow"), g = e.useState("initialFocus"), K = e.useState("baseElement"), T = e.useState("renderedItems");
418
418
  Ae(() => {
419
419
  let _ = !1;
420
420
  return x((y) => {
@@ -437,7 +437,7 @@ var Gt = "div", Qt = D(function(t) {
437
437
  _ = !0;
438
438
  };
439
439
  }, [e, H, g, T, K]);
440
- const L = p ? !1 : o, h = !!s, I = !!O || !!i.initialFocus || !!L, z = V(
440
+ const L = p ? !1 : s, h = !!o, I = !!P || !!i.initialFocus || !!L, z = V(
441
441
  e.combobox || e,
442
442
  "contentElement"
443
443
  ), R = V(
@@ -454,8 +454,8 @@ var Gt = "div", Qt = D(function(t) {
454
454
  }, i)), i = We(E(b({
455
455
  store: e,
456
456
  alwaysVisible: l,
457
- initialFocus: O,
458
- autoFocusOnShow: h ? I && s : H || !!L
457
+ initialFocus: P,
458
+ autoFocusOnShow: h ? I && o : H || !!L
459
459
  }, i), {
460
460
  hideOnEscape(_) {
461
461
  return st(a, _) ? !1 : (e == null || e.hideAll(), !0);
@@ -472,41 +472,41 @@ var Gt = "div", Qt = D(function(t) {
472
472
  })), i = b({
473
473
  "aria-labelledby": v
474
474
  }, i), i;
475
- }), Xt = Ot(
475
+ }), Xt = Pt(
476
476
  k(function(t) {
477
- const r = Qt(t);
478
- return F(Gt, r);
477
+ const n = Qt(t);
478
+ return F(Gt, n);
479
479
  }),
480
480
  oe
481
481
  ), Yt = "div", Jt = D(
482
482
  function(t) {
483
- var r = t, { store: e } = r, o = P(r, ["store"]);
483
+ var n = t, { store: e } = n, s = O(n, ["store"]);
484
484
  const u = de();
485
- return e = e || u, pt(b({ store: e }, o));
485
+ return e = e || u, pt(b({ store: e }, s));
486
486
  }
487
487
  ), er = k(function(t) {
488
- const r = Jt(t);
489
- return F(Yt, r);
488
+ const n = Jt(t);
489
+ return F(Yt, n);
490
490
  }), tr = "button";
491
- function rr(n, t) {
491
+ function rr(r, t) {
492
492
  return {
493
493
  ArrowDown: t === "bottom" || t === "top" ? "first" : !1,
494
494
  ArrowUp: t === "bottom" || t === "top" ? "last" : !1,
495
495
  ArrowRight: t === "right" ? "first" : !1,
496
496
  ArrowLeft: t === "left" ? "first" : !1
497
- }[n.key];
497
+ }[r.key];
498
498
  }
499
- function be(n, t) {
500
- return !!(n != null && n.some((r) => !r.element || r.element === t ? !1 : r.element.getAttribute("aria-expanded") === "true"));
499
+ function be(r, t) {
500
+ return !!(r != null && r.some((n) => !n.element || n.element === t ? !1 : n.element.getAttribute("aria-expanded") === "true"));
501
501
  }
502
502
  var nr = D(
503
503
  function(t) {
504
- var r = t, {
504
+ var n = t, {
505
505
  store: e,
506
- focusable: o,
506
+ focusable: s,
507
507
  accessibleWhenDisabled: u,
508
508
  showOnHover: a
509
- } = r, s = P(r, [
509
+ } = n, o = O(n, [
510
510
  "store",
511
511
  "focusable",
512
512
  "accessibleWhenDisabled",
@@ -517,50 +517,50 @@ var nr = D(
517
517
  e,
518
518
  process.env.NODE_ENV !== "production" && "MenuButton must receive a `store` prop or be wrapped in a MenuProvider component."
519
519
  );
520
- const l = ce(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, S = at(s), p = () => {
520
+ const l = ce(null), i = e.parent, w = e.menubar, m = !!i, d = !!w && !m, S = at(o), p = () => {
521
521
  const h = l.current;
522
522
  h && (e == null || e.setDisclosureElement(h), e == null || e.setAnchorElement(h), e == null || e.show());
523
- }, f = s.onFocus, M = j((h) => {
523
+ }, f = o.onFocus, M = j((h) => {
524
524
  if (f == null || f(h), S || h.defaultPrevented || (e == null || e.setAutoFocusOnShow(!1), e == null || e.setActiveId(null), !w) || !d) return;
525
525
  const { items: I } = w.getState();
526
526
  be(I, h.currentTarget) && p();
527
527
  }), v = V(
528
528
  e,
529
529
  (h) => h.placement.split("-")[0]
530
- ), A = s.onKeyDown, O = j((h) => {
530
+ ), A = o.onKeyDown, P = j((h) => {
531
531
  if (A == null || A(h), S || h.defaultPrevented) return;
532
532
  const I = rr(h, v);
533
533
  I && (h.preventDefault(), p(), e == null || e.setAutoFocusOnShow(!0), e == null || e.setInitialFocus(I));
534
- }), x = s.onClick, H = j((h) => {
534
+ }), x = o.onClick, H = j((h) => {
535
535
  if (x == null || x(h), h.defaultPrevented || !e) return;
536
536
  const I = !h.detail, { open: z } = e.getState();
537
537
  (!z || I) && ((!m || I) && e.setAutoFocusOnShow(!0), e.setInitialFocus(I ? "first" : "container")), m && p();
538
538
  });
539
- s = ye(
540
- s,
539
+ o = ye(
540
+ o,
541
541
  (h) => /* @__PURE__ */ C.jsx(Bt, { value: e, children: h }),
542
542
  [e]
543
- ), m && (s = E(b({}, s), {
544
- render: /* @__PURE__ */ C.jsx(Pt.div, { render: s.render })
543
+ ), m && (o = E(b({}, o), {
544
+ render: /* @__PURE__ */ C.jsx(Ot.div, { render: o.render })
545
545
  }));
546
- const g = Ce(s.id), K = V(
546
+ const g = Ce(o.id), K = V(
547
547
  (i == null ? void 0 : i.combobox) || i,
548
548
  "contentElement"
549
549
  ), T = m || d ? Ee(K, "menuitem") : void 0, L = e.useState("contentElement");
550
- return s = E(b({
550
+ return o = E(b({
551
551
  id: g,
552
552
  role: T,
553
553
  "aria-haspopup": ut(L, "menu")
554
- }, s), {
555
- ref: ne(l, s.ref),
554
+ }, o), {
555
+ ref: ne(l, o.ref),
556
556
  onFocus: M,
557
- onKeyDown: O,
557
+ onKeyDown: P,
558
558
  onClick: H
559
- }), s = Ze(E(b({
559
+ }), o = Ze(E(b({
560
560
  store: e,
561
- focusable: o,
561
+ focusable: s,
562
562
  accessibleWhenDisabled: u
563
- }, s), {
563
+ }, o), {
564
564
  showOnHover: (h) => {
565
565
  if (!(() => {
566
566
  if (typeof a == "function") return a(h);
@@ -573,41 +573,41 @@ var nr = D(
573
573
  const R = d ? w : i;
574
574
  return R && R.setActiveId(h.currentTarget.id), !0;
575
575
  }
576
- })), s = mt(b({
576
+ })), o = mt(b({
577
577
  store: e,
578
578
  toggleOnClick: !m,
579
- focusable: o,
579
+ focusable: s,
580
580
  accessibleWhenDisabled: u
581
- }, s)), s = le(b({
581
+ }, o)), o = le(b({
582
582
  store: e,
583
583
  typeahead: d
584
- }, s)), s;
584
+ }, o)), o;
585
585
  }
586
586
  ), or = k(function(t) {
587
- const r = nr(t);
588
- return F(tr, r);
587
+ const n = nr(t);
588
+ return F(tr, n);
589
589
  }), sr = "div";
590
- function ar(n, t, r) {
590
+ function ar(r, t, n) {
591
591
  var e;
592
- if (!n) return !1;
593
- if (Z(n)) return !0;
594
- const o = t == null ? void 0 : t.find((c) => {
592
+ if (!r) return !1;
593
+ if (Z(r)) return !0;
594
+ const s = t == null ? void 0 : t.find((c) => {
595
595
  var l;
596
- return c.element === r ? !1 : ((l = c.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
597
- }), u = (e = o == null ? void 0 : o.element) == null ? void 0 : e.getAttribute("aria-controls");
596
+ return c.element === n ? !1 : ((l = c.element) == null ? void 0 : l.getAttribute("aria-expanded")) === "true";
597
+ }), u = (e = s == null ? void 0 : s.element) == null ? void 0 : e.getAttribute("aria-controls");
598
598
  if (!u) return !1;
599
- const s = xe(n).getElementById(u);
600
- return s ? Z(s) ? !0 : !!s.querySelector("[role=menuitem][aria-expanded=true]") : !1;
599
+ const o = xe(r).getElementById(u);
600
+ return o ? Z(o) ? !0 : !!o.querySelector("[role=menuitem][aria-expanded=true]") : !1;
601
601
  }
602
602
  var ur = D(
603
603
  function(t) {
604
- var r = t, {
604
+ var n = t, {
605
605
  store: e,
606
- hideOnClick: o = !0,
606
+ hideOnClick: s = !0,
607
607
  preventScrollOnKeyDown: u = !0,
608
608
  focusOnHover: a,
609
- blurOnHoverEnd: s
610
- } = r, c = P(r, [
609
+ blurOnHoverEnd: o
610
+ } = n, c = O(n, [
611
611
  "store",
612
612
  "hideOnClick",
613
613
  "preventScrollOnKeyDown",
@@ -619,7 +619,7 @@ var ur = D(
619
619
  e,
620
620
  process.env.NODE_ENV !== "production" && "MenuItem must be wrapped in a MenuList, Menu or Menubar component"
621
621
  );
622
- const w = c.onClick, m = ae(o), d = "hideAll" in e ? e.hideAll : void 0, S = !!d, p = j((v) => {
622
+ const w = c.onClick, m = ae(s), d = "hideAll" in e ? e.hideAll : void 0, S = !!d, p = j((v) => {
623
623
  w == null || w(v), !(v.defaultPrevented || it(v) || ct(v) || !d || v.currentTarget.getAttribute("aria-haspopup") === "menu") && m(v) && d();
624
624
  }), f = V(
625
625
  e,
@@ -638,28 +638,28 @@ var ur = D(
638
638
  focusOnHover(v) {
639
639
  const A = () => typeof a == "function" ? a(v) : a ?? !0;
640
640
  if (!e || !A()) return !1;
641
- const { baseElement: O, items: x } = e.getState();
642
- return S ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ar(O, x, v.currentTarget) ? (v.currentTarget.focus(), !0) : !1;
641
+ const { baseElement: P, items: x } = e.getState();
642
+ return S ? (v.currentTarget.hasAttribute("aria-expanded") && v.currentTarget.focus(), !0) : ar(P, x, v.currentTarget) ? (v.currentTarget.focus(), !0) : !1;
643
643
  },
644
644
  blurOnHoverEnd(v) {
645
- return typeof s == "function" ? s(v) : s ?? S;
645
+ return typeof o == "function" ? o(v) : o ?? S;
646
646
  }
647
647
  })), c;
648
648
  }
649
649
  ), ir = Me(
650
650
  k(function(t) {
651
- const r = ur(t);
652
- return F(sr, r);
651
+ const n = ur(t);
652
+ return F(sr, n);
653
653
  })
654
654
  ), cr = "hr", lr = D(
655
655
  function(t) {
656
- var r = t, { store: e } = r, o = P(r, ["store"]);
656
+ var n = t, { store: e } = n, s = O(n, ["store"]);
657
657
  const u = de();
658
- return e = e || u, o = _e(b({ store: e }, o)), o;
658
+ return e = e || u, s = _e(b({ store: e }, s)), s;
659
659
  }
660
660
  ), dr = k(function(t) {
661
- const r = lr(t);
662
- return F(cr, r);
661
+ const n = lr(t);
662
+ return F(cr, n);
663
663
  });
664
664
  const fr = Q.divBox`
665
665
  display: flex;
@@ -671,16 +671,16 @@ const fr = Q.divBox`
671
671
  color: ${U("defaultCards.borderColor")};
672
672
  }
673
673
  `, pr = Q.svgBox(
674
- ({ $transform: n }) => Le`
675
- transform: ${n};
674
+ ({ $transform: r }) => Le`
675
+ transform: ${r};
676
676
  `
677
677
  ), mr = {
678
678
  bottom: "rotateZ(360deg)",
679
679
  left: "rotateZ(90deg)",
680
680
  right: "rotateZ(-90deg)",
681
681
  top: "rotateZ(180deg)"
682
- }, Fe = X(({ store: n }, t) => {
683
- const r = n == null ? void 0 : n.useState("currentPlacement"), [e] = (r == null ? void 0 : r.split("-")) || ["bottom"];
682
+ }, Fe = X(({ store: r }, t) => {
683
+ const n = r == null ? void 0 : r.useState("currentPlacement"), [e] = n.split("-");
684
684
  return /* @__PURE__ */ C.jsx(er, { ref: t, render: /* @__PURE__ */ C.jsx(fr, {}), children: /* @__PURE__ */ C.jsxs(
685
685
  pr,
686
686
  {
@@ -712,14 +712,14 @@ const vr = Q.buttonBox`
712
712
  &:focus {
713
713
  outline: none !important; /* important for firefox */
714
714
  }
715
- `, Ne = X(({ as: n, ...t }, r) => /* @__PURE__ */ C.jsx(ir, { ref: r, type: "button", ...t, render: /* @__PURE__ */ C.jsx(vr, { as: n }) }));
715
+ `, Ne = X(({ as: r, ...t }, n) => /* @__PURE__ */ C.jsx(ir, { ref: n, type: "button", ...t, render: /* @__PURE__ */ C.jsx(vr, { as: r }) }));
716
716
  Ne.displayName = "Item";
717
717
  const br = Q.hr`
718
718
  ${U("dropdownMenu.separator")};
719
719
  border: 0;
720
720
  height: 1px;
721
721
  margin: 0;
722
- `, hr = X((n, t) => /* @__PURE__ */ C.jsx(dr, { ref: t, render: /* @__PURE__ */ C.jsx(br, {}), ...n })), gr = Q.divBox`
722
+ `, hr = X((r, t) => /* @__PURE__ */ C.jsx(dr, { ref: t, render: /* @__PURE__ */ C.jsx(br, {}), ...r })), gr = Q.divBox`
723
723
  ${U("cards.default")};
724
724
  ${U("dropdownMenu.inner")};
725
725
  z-index: 1;
@@ -730,10 +730,10 @@ const br = Q.hr`
730
730
  opacity: 1;
731
731
  }
732
732
  `, wr = X(
733
- ({ children: n, dataTestId: t, gutter: r = "xs", innerProps: e = {}, store: o, ...u }, a) => {
734
- const s = $e(), c = o == null ? void 0 : o.useState("arrowElement");
735
- let l = r;
736
- return typeof l == "string" && (l = parseInt(s.toPx(parseFloat(s.space[r])), 10) || 0), c && (l = 0), /* @__PURE__ */ C.jsx(
733
+ ({ children: r, dataTestId: t, gutter: n = "xs", innerProps: e = {}, store: s, ...u }, a) => {
734
+ const o = $e(), c = s.useState("arrowElement");
735
+ let l = n;
736
+ return typeof l == "string" && (l = parseInt(o.toPx(parseFloat(o.space[n])), 10) || 0), c && (l = 0), /* @__PURE__ */ C.jsx(
737
737
  Xt,
738
738
  {
739
739
  "aria-label": "dropdown-menu",
@@ -741,27 +741,27 @@ const br = Q.hr`
741
741
  gutter: l,
742
742
  ref: a,
743
743
  render: /* @__PURE__ */ C.jsx(gr, { ...e }),
744
- store: o,
744
+ store: s,
745
745
  tabIndex: 0,
746
746
  ...u,
747
- children: n
747
+ children: r
748
748
  }
749
749
  );
750
750
  }
751
751
  );
752
- function kr(n = {}) {
752
+ function kr(r = {}) {
753
753
  return Zt({
754
754
  animated: !0,
755
- ...n
755
+ ...r
756
756
  });
757
757
  }
758
- const Mr = X(({ as: n, store: t, ...r }, e) => /* @__PURE__ */ C.jsx(
758
+ const Mr = X(({ as: r, store: t, ...n }, e) => /* @__PURE__ */ C.jsx(
759
759
  or,
760
760
  {
761
761
  ref: e,
762
- render: n ? (o) => /* @__PURE__ */ C.jsx(n, { ...o }) : void 0,
762
+ render: r ? (s) => /* @__PURE__ */ C.jsx(r, { ...s }) : void 0,
763
763
  store: t,
764
- ...r
764
+ ...n
765
765
  }
766
766
  )), Fr = Object.assign(wr, {
767
767
  Arrow: Fe,