@slotted/react 0.1.0-beta.4 → 0.1.0-beta.5

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 (183) hide show
  1. package/README.md +16 -1
  2. package/dist/{action-bar-OACchRZw.js → action-bar-ti3e6FK1.js} +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/{app-shell-CmYvnu_7.js → app-shell-nnSP44OO.js} +271 -267
  5. package/dist/app-shell.js +1 -1
  6. package/dist/bin/slotted-agent-docs.mjs +297 -0
  7. package/dist/{cascader-D1AhTyBL.js → cascader-Cn2Acpcv.js} +227 -210
  8. package/dist/cascader.js +1 -1
  9. package/dist/chart-04i6NZQA.js +968 -0
  10. package/dist/chart.js +1 -1
  11. package/dist/{checkbox-DfxFHZaU.js → checkbox-B4Sb1eXj.js} +3 -3
  12. package/dist/{checkbox-group-9sDgrV5Z.js → checkbox-group-LpGMuq9w.js} +2 -2
  13. package/dist/checkbox-group.js +1 -1
  14. package/dist/checkbox.js +1 -1
  15. package/dist/{code-block-CFHf8uTm.js → code-block-CTNiyt0U.js} +1 -1
  16. package/dist/code-block.js +1 -1
  17. package/dist/{color-picker-CwbWzCKg.js → color-picker-BcRCeISx.js} +4 -4
  18. package/dist/color-picker.js +1 -1
  19. package/dist/{column-manager-CTtizVhm.js → column-manager-BtkYLs5G.js} +4 -4
  20. package/dist/column-manager.js +1 -1
  21. package/dist/{combobox-BVMI9lg8.js → combobox-C1D5doWM.js} +227 -198
  22. package/dist/combobox.js +1 -1
  23. package/dist/{context-menu-BuST6W94.js → context-menu-B00UIBVC.js} +1 -1
  24. package/dist/context-menu.js +1 -1
  25. package/dist/{currency-field-DD9A5U3D.js → currency-field-Dti9JFu0.js} +1 -1
  26. package/dist/currency-field.js +1 -1
  27. package/dist/{dashboard-grid-CBMP_-JV.js → dashboard-grid-CoLKLvYL.js} +1 -1
  28. package/dist/dashboard-grid.js +1 -1
  29. package/dist/{data-grid-Eb-a4jg3.js → data-grid-DX95Y7mY.js} +18 -18
  30. package/dist/data-grid.js +1 -1
  31. package/dist/{data-list-oICmxGkA.js → data-list-CWYTPNm-.js} +2 -2
  32. package/dist/data-list.js +1 -1
  33. package/dist/{date-field-Hr-OCU-H.js → date-field-BxEpqAPg.js} +1 -1
  34. package/dist/date-field.js +1 -1
  35. package/dist/date-picker-DRk9SZp1.js +308 -0
  36. package/dist/date-picker.js +1 -1
  37. package/dist/date-range-picker-6Yz7avTS.js +483 -0
  38. package/dist/date-range-picker.js +1 -1
  39. package/dist/{datetime-field-B8TrmsDK.js → datetime-field-D2f9u6im.js} +1 -1
  40. package/dist/datetime-field.js +1 -1
  41. package/dist/datetime-picker-STqSWMkH.js +645 -0
  42. package/dist/datetime-picker.js +1 -1
  43. package/dist/datetime-range-picker-DQNQwr3K.js +1000 -0
  44. package/dist/datetime-range-picker.js +1 -1
  45. package/dist/{detail-panel-CW53lUjp.js → detail-panel-z6WGleP4.js} +1 -1
  46. package/dist/detail-panel.js +1 -1
  47. package/dist/docs/AGENTS.snippet.md +2 -0
  48. package/dist/docs/app-shell.examples.md +1 -1
  49. package/dist/docs/app-shell.json +4 -4
  50. package/dist/docs/app-shell.md +2 -2
  51. package/dist/docs/guidelines/README.md +2 -2
  52. package/dist/docs/guidelines/index.md +1 -1
  53. package/dist/docs/guidelines/own-elements.md +1 -1
  54. package/dist/docs/page-header.json +1 -0
  55. package/dist/docs/page-header.md +1 -1
  56. package/dist/docs/skills/build-own-element/SKILL.md +6 -6
  57. package/dist/docs/skills/compose-screen/SKILL.md +6 -6
  58. package/dist/docs/skills/review-screen/SKILL.md +6 -6
  59. package/dist/docs/skills/theme-app/SKILL.md +1 -1
  60. package/dist/docs/skills/waiting-states/SKILL.md +2 -2
  61. package/dist/docs/tabs.json +13 -3
  62. package/dist/docs/tabs.md +3 -2
  63. package/dist/{entity-picker-Dn1T7JCq.js → entity-picker-BdySwW8F.js} +274 -256
  64. package/dist/entity-picker.js +1 -1
  65. package/dist/{event-calendar-CnF3iIZD.js → event-calendar-CiphPXdV.js} +4 -4
  66. package/dist/event-calendar.js +1 -1
  67. package/dist/{field-NJaCxl2h.js → field-BxQFpOXS.js} +1 -1
  68. package/dist/{field-group-hAzVa2O9.js → field-group-DcN_hiZN.js} +1 -1
  69. package/dist/field-group.js +1 -1
  70. package/dist/field.js +1 -1
  71. package/dist/{filter-bar-CHyy1o--.js → filter-bar-C_dXljI_.js} +10 -10
  72. package/dist/filter-bar.js +1 -1
  73. package/dist/{hover-card-BJE5dtaQ.js → hover-card-DpVzwvDJ.js} +1 -1
  74. package/dist/hover-card.js +1 -1
  75. package/dist/{import-export-center-jF37b909.js → import-export-center-BQnMJz4g.js} +3 -3
  76. package/dist/import-export-center.js +1 -1
  77. package/dist/index.js +63 -63
  78. package/dist/{listbox-Dv856z9I.js → listbox-D0MJcAMm.js} +1 -1
  79. package/dist/listbox.js +1 -1
  80. package/dist/{markdown-CeG8mUbI.js → markdown-IiVoh6yi.js} +2 -2
  81. package/dist/markdown.js +1 -1
  82. package/dist/menu-parts-D6v_mz6O.js +809 -0
  83. package/dist/menu.js +1 -1
  84. package/dist/{menubar-b2CruimJ.js → menubar-DApIg1eR.js} +1 -1
  85. package/dist/menubar.js +1 -1
  86. package/dist/{multi-select-DQ5ds0fX.js → multi-select-B8z6ApgW.js} +286 -257
  87. package/dist/multi-select.js +1 -1
  88. package/dist/{notification-center-C1iWWl5Y.js → notification-center-CGEEHcRA.js} +2 -2
  89. package/dist/notification-center.js +1 -1
  90. package/dist/{number-field-BFIAmv-z.js → number-field-DXk1TAXA.js} +1 -1
  91. package/dist/number-field.js +1 -1
  92. package/dist/{otp-input-BNQhuKaT.js → otp-input-CI-kdNgx.js} +1 -1
  93. package/dist/otp-input.js +1 -1
  94. package/dist/{popover-Be7JWbGJ.js → popover-DEp8Bf3e.js} +186 -166
  95. package/dist/popover.js +1 -1
  96. package/dist/{prompt-composer-BxpdkTpZ.js → prompt-composer-DdcU3S3L.js} +1 -1
  97. package/dist/prompt-composer.js +1 -1
  98. package/dist/{radio-group-BaVIP9UH.js → radio-group-D8csBZ8Z.js} +2 -2
  99. package/dist/radio-group.js +1 -1
  100. package/dist/{rating-DYBQBzwB.js → rating-rI3b5zII.js} +1 -1
  101. package/dist/rating.js +1 -1
  102. package/dist/{saved-views-DlE_--Z9.js → saved-views-B3brBTD9.js} +4 -4
  103. package/dist/saved-views.js +1 -1
  104. package/dist/scroll-area-DQ_ansLu.js +112 -0
  105. package/dist/scroll-area.js +1 -1
  106. package/dist/{segmented-control-DmuOGiu6.js → segmented-control-C-PzkTtg.js} +2 -2
  107. package/dist/segmented-control.js +1 -1
  108. package/dist/{select-M7Io4UL9.js → select-BUylPwpb.js} +241 -203
  109. package/dist/select.js +1 -1
  110. package/dist/{side-navigation-CBLtCzuJ.js → side-navigation-Bm-BZma1.js} +156 -140
  111. package/dist/side-navigation.js +1 -1
  112. package/dist/{slider-DTes4HLF.js → slider-fp7kyg-6.js} +1 -1
  113. package/dist/slider.js +1 -1
  114. package/dist/{split-button-CPgHiy9G.js → split-button-DKRm0j5c.js} +1 -1
  115. package/dist/split-button.js +1 -1
  116. package/dist/styles.css +1 -1
  117. package/dist/{switch-DQzuIhPX.js → switch-aVoc4C2F.js} +1 -1
  118. package/dist/switch.js +1 -1
  119. package/dist/{table-U9eJYCuB.js → table-BYEvFr4P.js} +276 -275
  120. package/dist/table.js +1 -1
  121. package/dist/{tabs-BtHmjlnM.js → tabs-HWmvOKM4.js} +109 -102
  122. package/dist/tabs.js +1 -1
  123. package/dist/{tags-input-CcOkm0AW.js → tags-input-pbv6x1Pi.js} +1 -1
  124. package/dist/tags-input.js +1 -1
  125. package/dist/{text-field-DLfIZ0fk.js → text-field-CbQ6UCAP.js} +1 -1
  126. package/dist/text-field.js +1 -1
  127. package/dist/{textarea-CBJBJBi6.js → textarea-DJSfhrXH.js} +1 -1
  128. package/dist/textarea.js +1 -1
  129. package/dist/{time-field-DrhiCtUl.js → time-field-BI9n607q.js} +1 -1
  130. package/dist/time-field.js +1 -1
  131. package/dist/time-picker-D6SlQWNF.js +402 -0
  132. package/dist/time-picker.js +1 -1
  133. package/dist/time-range-picker-CcV3_45h.js +751 -0
  134. package/dist/time-range-picker.js +1 -1
  135. package/dist/{toggle-group-7iBR9Rn1.js → toggle-group-i7JPO8BM.js} +1 -1
  136. package/dist/toggle-group.js +1 -1
  137. package/dist/{toolbar-DDZpEftQ.js → toolbar-B9knmgHA.js} +1 -1
  138. package/dist/toolbar.js +1 -1
  139. package/dist/tooltip-CgjIROUy.js +410 -0
  140. package/dist/tooltip.js +1 -1
  141. package/dist/{top-navigation-e-tWMGNr.js → top-navigation-DiG2PF5W.js} +2 -2
  142. package/dist/top-navigation.js +1 -1
  143. package/dist/{transfer-CqZOTLMP.js → transfer--UOQVeKE.js} +5 -5
  144. package/dist/transfer.js +1 -1
  145. package/dist/types/app-shell/app-shell-parts.d.ts +6 -4
  146. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  147. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  148. package/dist/types/cascader/cascader.d.ts.map +1 -1
  149. package/dist/types/chart/chart.d.ts.map +1 -1
  150. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  151. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  152. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  153. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  154. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  155. package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
  156. package/dist/types/menu/menu-parts.d.ts.map +1 -1
  157. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  158. package/dist/types/popover/popover-parts.d.ts.map +1 -1
  159. package/dist/types/scroll-area/scroll-area.d.ts.map +1 -1
  160. package/dist/types/select/select-parts.d.ts.map +1 -1
  161. package/dist/types/side-navigation/side-navigation-parts.d.ts.map +1 -1
  162. package/dist/types/stat-card/stat-card.types.d.ts +2 -2
  163. package/dist/types/stat-card/stat-card.types.d.ts.map +1 -1
  164. package/dist/types/table/table-content.d.ts.map +1 -1
  165. package/dist/types/tabs/tabs-parts.d.ts +2 -4
  166. package/dist/types/tabs/tabs-parts.d.ts.map +1 -1
  167. package/dist/types/tabs/tabs.d.ts.map +1 -1
  168. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  169. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  170. package/dist/types/tooltip/tooltip-parts.d.ts.map +1 -1
  171. package/dist/{upload-DjnlVR8y.js → upload-CLX5cURk.js} +1 -1
  172. package/dist/upload.js +1 -1
  173. package/package.json +10 -7
  174. package/dist/chart-O0ZhkzJe.js +0 -966
  175. package/dist/date-picker-D3-y2Jxw.js +0 -295
  176. package/dist/date-range-picker-y3b82Wmf.js +0 -471
  177. package/dist/datetime-picker-CIRHVLQp.js +0 -629
  178. package/dist/datetime-range-picker-DM-1m98z.js +0 -994
  179. package/dist/menu-parts-W58pVNUt.js +0 -786
  180. package/dist/scroll-area-BriwmvYY.js +0 -111
  181. package/dist/time-picker-CRQsMJbQ.js +0 -396
  182. package/dist/time-range-picker-DlZJsj1e.js +0 -745
  183. package/dist/tooltip-DbKTPe_i.js +0 -392
@@ -2,7 +2,7 @@ import { n as e, t } from "./icon-T9Yt4tnm.js";
2
2
  import { n, r } from "./i18n-DpW8lqJ1.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { b as i } from "./field-NJaCxl2h.js";
5
+ import { b as i } from "./field-BxQFpOXS.js";
6
6
  /* empty css */
7
7
  import { t as a } from "./highlight-0Qw23QPp.js";
8
8
  import { createArrowNavigation as o, createRemovalFocus as s } from "@slotted/core/focus";
@@ -13,15 +13,15 @@ import { createCollapse as S } from "@slotted/core/overflow";
13
13
  import { createPresence as C } from "@slotted/core/presence";
14
14
  import { createPortalRoot as w, setPortalContainer as T } from "@slotted/core/portal";
15
15
  import { createDismissableLayer as ee, pressOrigin as E } from "@slotted/core/dismissable-layer";
16
- import { createPositioner as D } from "@slotted/core/positioner";
17
- import { createPortal as O } from "react-dom";
18
- import { multiSelectMessages as k } from "@slotted/core/i18n";
19
- import { createWidthGate as A } from "@slotted/core/measure";
20
- import { getLiveAnnouncer as te } from "@slotted/core/live-announcer";
21
- import { createFilter as j, moveIndex as M, revealWithin as N } from "@slotted/core/collection";
22
- import { matchRanges as P } from "@slotted/core/highlight";
16
+ import { createPositioner as te } from "@slotted/core/positioner";
17
+ import { createPortal as ne } from "react-dom";
18
+ import { multiSelectMessages as D } from "@slotted/core/i18n";
19
+ import { createWidthGate as O } from "@slotted/core/measure";
20
+ import { getLiveAnnouncer as k } from "@slotted/core/live-announcer";
21
+ import { createFilter as re, moveIndex as A, revealWithin as j } from "@slotted/core/collection";
22
+ import { matchRanges as M } from "@slotted/core/highlight";
23
23
  //#region src/multi-select/multi-select-defaults.tsx
24
- var F = {
24
+ var N = {
25
25
  addOnPaste: !0,
26
26
  align: "start",
27
27
  alignOffset: 0,
@@ -59,12 +59,12 @@ var F = {
59
59
  strategy: "absolute",
60
60
  variant: "outline",
61
61
  width: "content"
62
- }, I = l(F);
63
- function L() {
64
- return d(I);
62
+ }, P = l(N);
63
+ function F() {
64
+ return d(P);
65
65
  }
66
- function R({ children: e, container: t, ...n }) {
67
- let r = L();
66
+ function I({ children: e, container: t, ...n }) {
67
+ let r = F();
68
68
  f(() => {
69
69
  if (t !== void 0) return T(t), () => T(null);
70
70
  }, [t]);
@@ -107,84 +107,84 @@ function R({ children: e, container: t, ...n }) {
107
107
  variant: n.variant ?? r.variant,
108
108
  width: n.width ?? r.width
109
109
  };
110
- return /* @__PURE__ */ b(I.Provider, {
110
+ return /* @__PURE__ */ b(P.Provider, {
111
111
  value: i,
112
112
  children: e
113
113
  });
114
114
  }
115
115
  //#endregion
116
116
  //#region src/multi-select/multi-select.tsx
117
- var z = l(void 0);
118
- function B() {
119
- let e = d(z);
117
+ var L = l(void 0);
118
+ function R() {
119
+ let e = d(L);
120
120
  if (e === void 0) throw Error("MultiSelectControl, MultiSelectContent and every option have to be inside a MultiSelect.");
121
121
  return e;
122
122
  }
123
- var V = (e) => "options" in e;
124
- function H(e) {
125
- return e === void 0 ? [] : e.flatMap((e) => V(e) ? e.options : [e]);
123
+ var z = (e) => "options" in e;
124
+ function B(e) {
125
+ return e === void 0 ? [] : e.flatMap((e) => z(e) ? e.options : [e]);
126
126
  }
127
- var ne = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
128
- function U({ children: e, defaultHighlightedValue: t = null, defaultInputValue: a = "", defaultOpen: o = !1, defaultValue: s = [], filter: l, form: d, highlightedValue: f, inputValue: h, items: y, locale: x, messages: S, name: C, onHighlightedValueChange: w, onInputValueChange: T, onLoadMore: ee, onOpenChange: E, onValueChange: D, onValueRefuse: O, open: A, ref: M, total: P, validateValue: F, value: I, ...R }) {
129
- let B = L(), V = i(), U = r(k, S), re = n(), W = x ?? re, G = p(), ie = `${G}listbox`, ae = `${G}input`, [K, oe] = v(o), [se, q] = v(s), [J] = v(s), [ce, le] = v(a), [ue, Y] = v(t), [X, de] = v(null), [Z, fe] = v(null), [pe, me] = v(null), [he, ge] = v(!1), _e = R.disabled ?? V?.disabled ?? B.disabled, ve = R.readOnly ?? V?.readOnly ?? B.readOnly, ye = R.max ?? B.max, be = R.allowDuplicates ?? B.allowDuplicates, xe = (A ?? K) && !_e, Se = I ?? se, Ce = h ?? ce, we = f === void 0 ? ue : f, Te = _(xe);
130
- xe && (Te.current = !0);
127
+ var ie = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
128
+ function V({ children: e, defaultHighlightedValue: t = null, defaultInputValue: a = "", defaultOpen: o = !1, defaultValue: s = [], filter: l, form: d, highlightedValue: f, inputValue: h, items: y, locale: x, messages: S, name: C, onHighlightedValueChange: w, onInputValueChange: T, onLoadMore: ee, onOpenChange: E, onValueChange: te, onValueRefuse: ne, open: O, ref: A, total: M, validateValue: N, value: P, ...I }) {
129
+ let R = F(), z = i(), V = r(D, S), ae = n(), H = x ?? ae, U = p(), oe = `${U}listbox`, se = `${U}input`, [W, ce] = v(o), [le, G] = v(s), [K] = v(s), [ue, de] = v(a), [fe, q] = v(t), [J, pe] = v(null), [Y, me] = v(null), [he, ge] = v(null), [_e, ve] = v(!1), ye = I.disabled ?? z?.disabled ?? R.disabled, be = I.readOnly ?? z?.readOnly ?? R.readOnly, X = I.max ?? R.max, xe = I.allowDuplicates ?? R.allowDuplicates, Z = (O ?? W) && !ye, Se = P ?? le, Ce = h ?? ue, we = f === void 0 ? fe : f, Te = _(Z);
130
+ Z && (Te.current = !0);
131
131
  let Ee = _("none"), De = _(/* @__PURE__ */ new Map()), [Oe, ke] = v(0), Ae = g(() => {
132
132
  let e = /* @__PURE__ */ new Map();
133
- for (let t of H(y)) e.set(t.value, t.label);
133
+ for (let t of B(y)) e.set(t.value, t.label);
134
134
  return e;
135
135
  }, [y]), je = u((e, t) => {
136
136
  De.current.get(e) !== t && (De.current.set(e, t), ke((e) => e + 1));
137
- }, []), Me = u((e) => Ae.get(e) ?? De.current.get(e), [Ae, Oe]), Ne = u((e) => `${G}option-${encodeURIComponent(e)}`, [G]), Pe = Ce, Fe = g(() => j({ locale: W }), [W]), Ie = u((e) => Pe === "" || l === null ? !0 : l === void 0 ? Fe.contains(e, Pe) : l(e, Pe), [
137
+ }, []), Me = u((e) => Ae.get(e) ?? De.current.get(e), [Ae, Oe]), Ne = u((e) => `${U}option-${encodeURIComponent(e)}`, [U]), Pe = Ce, Fe = g(() => re({ locale: H }), [H]), Ie = u((e) => Pe === "" || l === null ? !0 : l === void 0 ? Fe.contains(e, Pe) : l(e, Pe), [
138
138
  Fe,
139
139
  l,
140
140
  Pe
141
141
  ]), Le = u((e) => {
142
- e !== "" && te(X?.ownerDocument).announce(e, { repeat: !0 });
143
- }, [X]), Q = _({
144
- allowDuplicates: be,
142
+ e !== "" && k(J?.ownerDocument).announce(e, { repeat: !0 });
143
+ }, [J]), Q = _({
144
+ allowDuplicates: xe,
145
145
  announcer: Le,
146
146
  collator: Fe,
147
147
  currentHighlighted: we,
148
148
  currentInput: Ce,
149
- currentOpen: xe,
149
+ currentOpen: Z,
150
150
  currentValue: Se,
151
151
  highlightedValue: f,
152
- inputNode: X,
152
+ inputNode: J,
153
153
  inputValue: h,
154
154
  labelFor: Me,
155
- max: ye,
155
+ max: X,
156
156
  onHighlightedValueChange: w,
157
157
  onInputValueChange: T,
158
158
  onOpenChange: E,
159
- onValueChange: D,
160
- onValueRefuse: O,
161
- open: A,
162
- t: U,
163
- validateValue: F,
164
- value: I
159
+ onValueChange: te,
160
+ onValueRefuse: ne,
161
+ open: O,
162
+ t: V,
163
+ validateValue: N,
164
+ value: P
165
165
  });
166
166
  Q.current = {
167
- allowDuplicates: be,
167
+ allowDuplicates: xe,
168
168
  announcer: Le,
169
169
  collator: Fe,
170
170
  currentHighlighted: we,
171
171
  currentInput: Ce,
172
- currentOpen: xe,
172
+ currentOpen: Z,
173
173
  currentValue: Se,
174
174
  highlightedValue: f,
175
- inputNode: X,
175
+ inputNode: J,
176
176
  inputValue: h,
177
177
  labelFor: Me,
178
- max: ye,
178
+ max: X,
179
179
  onHighlightedValueChange: w,
180
180
  onInputValueChange: T,
181
181
  onOpenChange: E,
182
- onValueChange: D,
183
- onValueRefuse: O,
184
- open: A,
185
- t: U,
186
- validateValue: F,
187
- value: I
182
+ onValueChange: te,
183
+ onValueRefuse: ne,
184
+ open: O,
185
+ t: V,
186
+ validateValue: N,
187
+ value: P
188
188
  };
189
189
  let Re = u((e, t, n) => {
190
190
  let r = Q.current;
@@ -192,28 +192,28 @@ function U({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
192
192
  controlled: r.open,
193
193
  initial: r.currentOpen,
194
194
  onRequest: (e) => r.onOpenChange?.(e.value, e)
195
- }).request(e, t, n) && (oe(e), e || (Y(null), Ee.current = "none"));
195
+ }).request(e, t, n) && (ce(e), e || (q(null), Ee.current = "none"));
196
196
  }, []), ze = u((e, t, n) => {
197
197
  let r = Q.current;
198
198
  e !== r.currentHighlighted && c({
199
199
  controlled: r.highlightedValue,
200
200
  initial: r.currentHighlighted,
201
201
  onRequest: (e) => r.onHighlightedValueChange?.(e.value, e)
202
- }).request(e, t, n) && Y(e);
202
+ }).request(e, t, n) && q(e);
203
203
  }, []), Be = u((e, t, n) => {
204
204
  let r = Q.current;
205
205
  e !== r.currentInput && c({
206
206
  controlled: r.inputValue,
207
207
  initial: r.currentInput,
208
208
  onRequest: (e) => r.onInputValueChange?.(e.value, e)
209
- }).request(e, t, n) && le(e);
209
+ }).request(e, t, n) && de(e);
210
210
  }, []), $ = u((e, t, n) => {
211
211
  let r = Q.current;
212
- return ne(e, r.currentValue) || !c({
212
+ return ie(e, r.currentValue) || !c({
213
213
  controlled: r.value,
214
214
  initial: r.currentValue,
215
215
  onRequest: (e) => r.onValueChange?.(e.value, e)
216
- }).request(e, t, n) ? !1 : (q(e), !0);
216
+ }).request(e, t, n) ? !1 : (G(e), !0);
217
217
  }, []), Ve = u((e, t) => {
218
218
  let n = Q.current, r = [...t], i = {
219
219
  duplicate: [],
@@ -256,7 +256,7 @@ function U({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
256
256
  cause: t,
257
257
  source: n
258
258
  });
259
- t !== null && me(t), e.limit.length > 0 && r.max !== null && r.announcer(r.t("counter", {
259
+ t !== null && ge(t), e.limit.length > 0 && r.max !== null && r.announcer(r.t("counter", {
260
260
  count: r.max,
261
261
  max: r.max
262
262
  }));
@@ -292,10 +292,10 @@ function U({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
292
292
  }, [Ue, Ge]), qe = u((e) => {
293
293
  $([], "clear", e), Be("", "clear", e);
294
294
  }, [$, Be]), Je = u((e) => {
295
- $(J, "programmatic", e), Be("", "programmatic", e);
295
+ $(K, "programmatic", e), Be("", "programmatic", e);
296
296
  }, [
297
297
  $,
298
- J,
298
+ K,
299
299
  Be
300
300
  ]), Ye = u((e, t, n) => {
301
301
  let r = Q.current, i = r.currentValue;
@@ -305,139 +305,139 @@ function U({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
305
305
  let o = [...i], [s] = o.splice(e, 1);
306
306
  o.splice(a, 0, s), $(o, "keyboard", n) && r.announcer(`${r.labelFor(s) ?? s}, ${a + 1}, ${o.length}`);
307
307
  }, [$]);
308
- m(M, () => ({
308
+ m(A, () => ({
309
309
  close: () => Re(!1, "programmatic"),
310
310
  focus: () => Q.current.inputNode?.focus({ preventScroll: !0 }),
311
311
  open: () => Re(!0, "programmatic"),
312
312
  scrollToKey: (e) => {
313
- let t = Z?.querySelector(`[data-part='item'][data-value="${CSS.escape(e)}"]`);
314
- t != null && Z !== null && N(t, Z);
313
+ let t = Y?.querySelector(`[data-part='item'][data-value="${CSS.escape(e)}"]`);
314
+ t != null && Y !== null && j(t, Y);
315
315
  },
316
316
  setValue: (e, t = "programmatic") => $([...e], t)
317
317
  }), [
318
318
  $,
319
- Z,
319
+ Y,
320
320
  Re
321
321
  ]);
322
322
  let Xe = {
323
- addOnPaste: R.addOnPaste ?? B.addOnPaste,
323
+ addOnPaste: I.addOnPaste ?? R.addOnPaste,
324
324
  admit: Ue,
325
- align: R.align ?? B.align,
326
- alignOffset: R.alignOffset ?? B.alignOffset,
325
+ align: I.align ?? R.align,
326
+ alignOffset: I.alignOffset ?? R.alignOffset,
327
327
  announce: Le,
328
- chosenOptions: R.chosenOptions ?? B.chosenOptions,
328
+ chosenOptions: I.chosenOptions ?? R.chosenOptions,
329
329
  clear: qe,
330
- clearable: R.clearable ?? B.clearable,
331
- closeOnEscape: R.closeOnEscape ?? B.closeOnEscape,
332
- closeOnOutsidePress: R.closeOnOutsidePress ?? B.closeOnOutsidePress,
333
- closeOnSelect: R.closeOnSelect ?? B.closeOnSelect,
334
- collisionPadding: R.collisionPadding ?? B.collisionPadding,
335
- commitOnBlur: R.commitOnBlur ?? B.commitOnBlur,
336
- contentId: ie,
337
- contentNode: Z,
338
- creatable: R.creatable ?? B.creatable,
339
- delimiters: R.delimiters ?? B.delimiters,
340
- disabled: _e,
341
- duplicate: pe,
342
- editable: R.editable ?? B.editable,
330
+ clearable: I.clearable ?? R.clearable,
331
+ closeOnEscape: I.closeOnEscape ?? R.closeOnEscape,
332
+ closeOnOutsidePress: I.closeOnOutsidePress ?? R.closeOnOutsidePress,
333
+ closeOnSelect: I.closeOnSelect ?? R.closeOnSelect,
334
+ collisionPadding: I.collisionPadding ?? R.collisionPadding,
335
+ commitOnBlur: I.commitOnBlur ?? R.commitOnBlur,
336
+ contentId: oe,
337
+ contentNode: Y,
338
+ creatable: I.creatable ?? R.creatable,
339
+ delimiters: I.delimiters ?? R.delimiters,
340
+ disabled: ye,
341
+ duplicate: he,
342
+ editable: I.editable ?? R.editable,
343
343
  entry: Ee,
344
- flip: R.flip ?? B.flip,
344
+ flip: I.flip ?? R.flip,
345
345
  form: d,
346
- full: ye !== null && Se.length >= ye,
347
- fullWidth: R.fullWidth ?? B.fullWidth,
348
- hideWhenDetached: R.hideWhenDetached ?? B.hideWhenDetached,
346
+ full: X !== null && Se.length >= X,
347
+ fullWidth: I.fullWidth ?? R.fullWidth,
348
+ hideWhenDetached: I.hideWhenDetached ?? R.hideWhenDetached,
349
349
  highlighted: we,
350
- highlightMatch: R.highlightMatch ?? B.highlightMatch,
351
- inputId: ae,
352
- inputNode: X,
350
+ highlightMatch: I.highlightMatch ?? R.highlightMatch,
351
+ inputId: se,
352
+ inputNode: J,
353
353
  inputValue: Ce,
354
- invalid: R.invalid ?? V?.invalid ?? B.invalid,
354
+ invalid: I.invalid ?? z?.invalid ?? R.invalid,
355
355
  labelFor: Me,
356
- loading: R.loading ?? B.loading,
357
- locale: W,
358
- loop: R.loop ?? B.loop,
356
+ loading: I.loading ?? R.loading,
357
+ locale: H,
358
+ loop: I.loop ?? R.loop,
359
359
  matches: Ie,
360
- max: ye,
361
- mount: R.mount ?? B.mount,
360
+ max: X,
361
+ mount: I.mount ?? R.mount,
362
362
  move: Ye,
363
363
  name: C,
364
- narrow: he,
364
+ narrow: _e,
365
365
  onLoadMore: ee,
366
- open: xe,
367
- openOn: R.openOn ?? B.openOn,
366
+ open: Z,
367
+ openOn: I.openOn ?? R.openOn,
368
368
  optionId: Ne,
369
- overflow: R.overflow ?? B.overflow,
370
- portal: R.portal ?? B.portal,
369
+ overflow: I.overflow ?? R.overflow,
370
+ portal: I.portal ?? R.portal,
371
371
  query: Pe,
372
- readOnly: ve,
372
+ readOnly: be,
373
373
  registerLabel: je,
374
374
  remove: Ge,
375
375
  replace: We,
376
376
  restore: Je,
377
- reorderable: R.reorderable ?? B.reorderable,
378
- required: R.required ?? V?.required ?? B.required,
377
+ reorderable: I.reorderable ?? R.reorderable,
378
+ required: I.required ?? z?.required ?? R.required,
379
379
  seen: Te.current,
380
- setContentNode: fe,
381
- setDuplicate: me,
380
+ setContentNode: me,
381
+ setDuplicate: ge,
382
382
  setHighlighted: ze,
383
- setInputNode: de,
383
+ setInputNode: pe,
384
384
  setInputValue: Be,
385
- setNarrow: ge,
385
+ setNarrow: ve,
386
386
  setOpen: Re,
387
- shift: R.shift ?? B.shift,
388
- side: R.side ?? B.side,
389
- sideOffset: R.sideOffset ?? B.sideOffset,
390
- size: R.size ?? V?.size ?? B.size,
391
- strategy: R.strategy ?? B.strategy,
387
+ shift: I.shift ?? R.shift,
388
+ side: I.side ?? R.side,
389
+ sideOffset: I.sideOffset ?? R.sideOffset,
390
+ size: I.size ?? z?.size ?? R.size,
391
+ strategy: I.strategy ?? R.strategy,
392
392
  toggle: Ke,
393
- t: U,
394
- total: P,
393
+ t: V,
394
+ total: M,
395
395
  value: Se,
396
- variant: R.variant ?? B.variant,
397
- width: R.width ?? B.width
396
+ variant: I.variant ?? R.variant,
397
+ width: I.width ?? R.width
398
398
  };
399
- return /* @__PURE__ */ b(z.Provider, {
399
+ return /* @__PURE__ */ b(L.Provider, {
400
400
  value: Xe,
401
401
  children: e
402
402
  });
403
403
  }
404
404
  //#endregion
405
405
  //#region src/multi-select/multi-select-collection.ts
406
- var re = "[data-part='item']";
407
- function W(e) {
408
- return e === null ? [] : [...e.querySelectorAll(re)];
406
+ var ae = "[data-part='item']";
407
+ function H(e) {
408
+ return e === null ? [] : [...e.querySelectorAll(ae)];
409
409
  }
410
- var G = (e) => e.dataset.value ?? "", ie = (e) => e.dataset.disabled === void 0 && e.getAttribute("aria-disabled") !== "true";
411
- function ae(e, t) {
410
+ var U = (e) => e.dataset.value ?? "", oe = (e) => e.dataset.disabled === void 0 && e.getAttribute("aria-disabled") !== "true";
411
+ function se(e, t) {
412
412
  return e !== null && e.querySelector(`[data-part='item'][data-value="${CSS.escape(t)}"]`)?.hasAttribute("data-create") === !0;
413
413
  }
414
- function K(e, t, n, r) {
415
- let i = W(e);
414
+ function W(e, t, n, r) {
415
+ let i = H(e);
416
416
  if (i.length === 0) return null;
417
- let a = M({
418
- enabled: i.map(ie),
419
- from: t === null ? -1 : i.findIndex((e) => G(e) === t),
417
+ let a = A({
418
+ enabled: i.map(oe),
419
+ from: t === null ? -1 : i.findIndex((e) => U(e) === t),
420
420
  intent: n,
421
421
  loop: r
422
422
  });
423
- return a === -1 ? null : G(i[a]);
423
+ return a === -1 ? null : U(i[a]);
424
424
  }
425
- function oe(e, t, n) {
426
- return t === "none" ? null : K(e, null, t, n);
425
+ function ce(e, t, n) {
426
+ return t === "none" ? null : W(e, null, t, n);
427
427
  }
428
- function se(e, t) {
428
+ function le(e, t) {
429
429
  if (e === null || t === null) return;
430
- let n = W(e).find((e) => G(e) === t);
431
- n !== void 0 && N(n, e);
430
+ let n = H(e).find((e) => U(e) === t);
431
+ n !== void 0 && j(n, e);
432
432
  }
433
- var q = "[data-part='chips'] > [role='gridcell']:not([data-part='field'])";
433
+ var G = "[data-part='chips'] > [role='gridcell']:not([data-part='field'])";
434
434
  //#endregion
435
435
  //#region src/multi-select/multi-select-chips.tsx
436
- function J(e, t) {
436
+ function K(e, t) {
437
437
  return e || t;
438
438
  }
439
- function ce({ count: n, index: r, label: i, value: a }) {
440
- let o = B(), [s, c] = v(null), l = _(null), u = J(o.readOnly, o.disabled);
439
+ function ue({ count: n, index: r, label: i, value: a }) {
440
+ let o = R(), [s, c] = v(null), l = _(null), u = K(o.readOnly, o.disabled);
441
441
  f(() => {
442
442
  o.duplicate === a && (l.current?.focus({ preventScroll: !0 }), o.setDuplicate(null));
443
443
  }, [o, a]);
@@ -538,13 +538,13 @@ function ce({ count: n, index: r, label: i, value: a }) {
538
538
  })
539
539
  });
540
540
  }
541
- function le({ children: e }) {
542
- let t = B(), n = _(null), r = _(null), i = _(null), [a, c] = v(0), l = t.overflow === "collapse";
541
+ function de({ children: e }) {
542
+ let t = R(), n = _(null), r = _(null), i = _(null), [a, c] = v(0), l = t.overflow === "collapse";
543
543
  return f(() => {
544
544
  let e = n.current;
545
545
  if (e === null) return;
546
546
  let t = o(e, {
547
- itemSelector: `${q}, [data-part='field'] > [data-part='input']`,
547
+ itemSelector: `${G}, [data-part='field'] > [data-part='input']`,
548
548
  loop: !1,
549
549
  ownedKeys: (e) => e instanceof HTMLInputElement && e.value !== "" ? [
550
550
  "ArrowLeft",
@@ -559,7 +559,7 @@ function le({ children: e }) {
559
559
  if (e === null) return;
560
560
  let r = s(e, {
561
561
  fallback: () => t.inputNode,
562
- itemSelector: q
562
+ itemSelector: G
563
563
  });
564
564
  return () => r.destroy();
565
565
  }, [t.inputNode]), f(() => {
@@ -572,7 +572,7 @@ function le({ children: e }) {
572
572
  collapsible: () => !0,
573
573
  onChange: (e) => c(e.length),
574
574
  trigger: () => r.current,
575
- units: () => [...e.querySelectorAll(q)].filter((e) => !e.hasAttribute("data-count"))
575
+ units: () => [...e.querySelectorAll(G)].filter((e) => !e.hasAttribute("data-count"))
576
576
  });
577
577
  return i.current = t, () => {
578
578
  t.destroy(), i.current = null, c(0);
@@ -584,7 +584,7 @@ function le({ children: e }) {
584
584
  ref: n,
585
585
  role: "row",
586
586
  children: [
587
- t.value.map((e, n) => /* @__PURE__ */ b(ce, {
587
+ t.value.map((e, n) => /* @__PURE__ */ b(ue, {
588
588
  count: t.value.length,
589
589
  index: n,
590
590
  label: t.labelFor(e) ?? e,
@@ -615,17 +615,17 @@ function le({ children: e }) {
615
615
  }
616
616
  //#endregion
617
617
  //#region src/multi-select/multi-select-parts.tsx
618
- var ue = 120;
619
- function Y(e, t) {
618
+ var fe = 120;
619
+ function q(e, t) {
620
620
  return (n) => {
621
621
  e?.(n), n.defaultPrevented || t(n);
622
622
  };
623
623
  }
624
- function X(e, ...t) {
624
+ function J(e, ...t) {
625
625
  for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
626
626
  }
627
- function de({ ref: n, render: r, ...a }) {
628
- let o = B(), s = i(), [c, l] = v(null), d = _(null);
627
+ function pe({ ref: n, render: r, ...a }) {
628
+ let o = R(), s = i(), [c, l] = v(null), d = _(null);
629
629
  f(() => {
630
630
  o.setInputNode(c);
631
631
  }, [o, c]);
@@ -633,7 +633,7 @@ function de({ ref: n, render: r, ...a }) {
633
633
  f(() => {
634
634
  let e = d.current;
635
635
  if (e === null) return;
636
- let t = A(e, {
636
+ let t = O(e, {
637
637
  at: 120,
638
638
  onChange: p
639
639
  });
@@ -656,7 +656,7 @@ function de({ ref: n, render: r, ...a }) {
656
656
  o.entry.current = e === "previous" || e === "pageUp" ? "last" : "first";
657
657
  return;
658
658
  }
659
- let n = K(o.contentNode, o.highlighted, e, o.loop);
659
+ let n = W(o.contentNode, o.highlighted, e, o.loop);
660
660
  n !== null && o.setHighlighted(n, "keyboard", t);
661
661
  }, S = (e) => {
662
662
  let t = o.delimiters;
@@ -669,7 +669,7 @@ function de({ ref: n, render: r, ...a }) {
669
669
  return t.trim() !== "" && (o.admit(S(t), "submit", e), o.setInputValue("", "submit", e), !0);
670
670
  }, w = (e) => {
671
671
  let t = o.highlighted;
672
- return t === null ? !1 : ae(o.contentNode, t) ? (C(e), !0) : (o.toggle(t, "select", e), o.setInputValue("", "select", e), o.closeOnSelect && o.setOpen(!1, "select", e), !0);
672
+ return t === null ? !1 : se(o.contentNode, t) ? (C(e), !0) : (o.toggle(t, "select", e), o.setInputValue("", "select", e), o.closeOnSelect && o.setOpen(!1, "select", e), !0);
673
673
  }, T = (e, t) => {
674
674
  o.entry.current = e, o.setOpen(!0, "keyboard", t);
675
675
  }, ee = (e) => {
@@ -722,32 +722,32 @@ function de({ ref: n, render: r, ...a }) {
722
722
  o.open && o.setOpen(!1, "dismiss", e.nativeEvent);
723
723
  return;
724
724
  }
725
- }, D = (e) => {
725
+ }, te = (e) => {
726
726
  let t = e.currentTarget.value;
727
727
  o.setInputValue(t, "keyboard", e.nativeEvent), o.openOn !== "manual" && !o.open && !o.readOnly && t !== "" && (o.entry.current = "none", o.setOpen(!0, "keyboard", e.nativeEvent));
728
- }, O = () => {
728
+ }, ne = () => {
729
729
  o.openOn !== "focus" || o.open || o.disabled || o.readOnly || (o.entry.current = "none", o.setOpen(!0, "keyboard"));
730
- }, k = (e) => {
730
+ }, D = (e) => {
731
731
  o.openOn === "manual" || o.open || o.disabled || o.readOnly || (o.entry.current = "none", o.setOpen(!0, "pointer", e.nativeEvent));
732
- }, te = (e) => {
732
+ }, k = (e) => {
733
733
  if (!o.addOnPaste || !o.creatable || o.readOnly) return;
734
734
  let t = e.clipboardData.getData("text"), n = S(t).filter((e) => e.trim() !== "");
735
735
  n.length < 2 || (e.preventDefault(), o.admit(n, "submit", e.nativeEvent), o.setInputValue("", "submit", e.nativeEvent));
736
- }, j = (e) => {
736
+ }, re = (e) => {
737
737
  let t = e.relatedTarget;
738
738
  if (t instanceof Node && o.contentNode?.contains(t) === !0 || t instanceof Node && d.current?.contains(t) === !0) return;
739
739
  let n = E(c?.ownerDocument);
740
740
  n instanceof Node && o.contentNode?.contains(n) === !0 || (o.commitOnBlur && C(e), o.open && o.setOpen(!1, "blur"));
741
- }, M = (e) => {
741
+ }, A = (e) => {
742
742
  o.clear(e.nativeEvent), c?.focus({ preventScroll: !0 });
743
- }, N = (e) => {
743
+ }, j = (e) => {
744
744
  o.disabled || o.readOnly || (o.entry.current = "none", o.setOpen(!o.open, "pointer", e.nativeEvent), c?.focus({ preventScroll: !0 }));
745
- }, P = u((e) => {
746
- l(e), X(e, n);
747
- }, [n]), F = [a["aria-describedby"], s?.describedBy].filter(Boolean).join(" "), I = o.clearable && (o.value.length > 0 || o.inputValue !== "") && !o.disabled && !o.readOnly, L = o.max === null ? o.narrow && o.value.length > 0 ? o.t("chosen", { count: o.value.length }) : null : o.t("counter", {
745
+ }, M = u((e) => {
746
+ l(e), J(e, n);
747
+ }, [n]), N = [a["aria-describedby"], s?.describedBy].filter(Boolean).join(" "), P = o.clearable && (o.value.length > 0 || o.inputValue !== "") && !o.disabled && !o.readOnly, F = o.max === null ? o.narrow && o.value.length > 0 ? o.t("chosen", { count: o.value.length }) : null : o.t("counter", {
748
748
  count: o.value.length,
749
749
  max: o.max
750
- }), R = {
750
+ }), I = {
751
751
  ref: d,
752
752
  "data-overflow": o.overflow,
753
753
  "data-part": "root",
@@ -763,17 +763,17 @@ function de({ ref: n, render: r, ...a }) {
763
763
  ...o.loading ? { "data-loading": "" } : {},
764
764
  ...o.full ? { "data-complete": "" } : {},
765
765
  ...o.narrow ? { "data-narrow": "" } : {}
766
- }, z = o.t("chosen", { count: o.value.length }), V = `${a.id ?? s?.ids.control ?? o.inputId}-chosen`, H = a["aria-labelledby"] ?? s?.ids.label, ne = a["aria-label"] === void 0 ? H === void 0 ? { "aria-label": z } : { "aria-labelledby": `${H} ${V}` } : { "aria-label": `${a["aria-label"]}, ${z}` }, U = /* @__PURE__ */ x(y, { children: [
766
+ }, L = o.t("chosen", { count: o.value.length }), z = `${a.id ?? s?.ids.control ?? o.inputId}-chosen`, B = a["aria-labelledby"] ?? s?.ids.label, ie = a["aria-label"] === void 0 ? B === void 0 ? { "aria-label": L } : { "aria-labelledby": `${B} ${z}` } : { "aria-label": `${a["aria-label"]}, ${L}` }, V = /* @__PURE__ */ x(y, { children: [
767
767
  /* @__PURE__ */ b("span", {
768
768
  hidden: !0,
769
- id: V,
770
- children: z
769
+ id: z,
770
+ children: L
771
771
  }),
772
772
  /* @__PURE__ */ b("div", {
773
- ...ne,
773
+ ...ie,
774
774
  "data-part": "control",
775
775
  role: "grid",
776
- children: /* @__PURE__ */ b(le, { children: /* @__PURE__ */ b("span", {
776
+ children: /* @__PURE__ */ b(de, { children: /* @__PURE__ */ b("span", {
777
777
  "data-part": "field",
778
778
  role: "gridcell",
779
779
  children: /* @__PURE__ */ b("input", {
@@ -781,22 +781,22 @@ function de({ ref: n, render: r, ...a }) {
781
781
  "aria-activedescendant": o.open && o.highlighted !== null ? o.optionId(o.highlighted) : void 0,
782
782
  "aria-autocomplete": "list",
783
783
  "aria-controls": o.open ? o.contentId : void 0,
784
- "aria-describedby": F === "" ? void 0 : F,
784
+ "aria-describedby": N === "" ? void 0 : N,
785
785
  "aria-expanded": o.open,
786
786
  "aria-invalid": o.invalid ? !0 : void 0,
787
787
  "aria-readonly": o.readOnly ? !0 : void 0,
788
788
  "data-part": "input",
789
789
  disabled: o.disabled,
790
790
  id: a.id ?? s?.ids.control ?? o.inputId,
791
- onBlur: Y(a.onBlur, j),
792
- onChange: Y(a.onChange, D),
793
- onClick: Y(a.onClick, k),
794
- onFocus: Y(a.onFocus, O),
795
- onKeyDown: Y(a.onKeyDown, ee),
796
- onPaste: Y(a.onPaste, te),
791
+ onBlur: q(a.onBlur, re),
792
+ onChange: q(a.onChange, te),
793
+ onClick: q(a.onClick, D),
794
+ onFocus: q(a.onFocus, ne),
795
+ onKeyDown: q(a.onKeyDown, ee),
796
+ onPaste: q(a.onPaste, k),
797
797
  placeholder: o.value.length === 0 ? a.placeholder : void 0,
798
798
  readOnly: o.readOnly,
799
- ref: P,
799
+ ref: M,
800
800
  required: o.required && o.value.length === 0,
801
801
  role: "combobox",
802
802
  type: "text",
@@ -804,15 +804,15 @@ function de({ ref: n, render: r, ...a }) {
804
804
  })
805
805
  }) })
806
806
  }),
807
- L === null ? null : /* @__PURE__ */ b("span", {
807
+ F === null ? null : /* @__PURE__ */ b("span", {
808
808
  "aria-hidden": "true",
809
809
  "data-part": "counter",
810
- children: L
810
+ children: F
811
811
  }),
812
- I ? /* @__PURE__ */ b("button", {
812
+ P ? /* @__PURE__ */ b("button", {
813
813
  "aria-label": o.t("clear"),
814
814
  "data-part": "clear",
815
- onClick: M,
815
+ onClick: A,
816
816
  type: "button",
817
817
  children: /* @__PURE__ */ b(t, { children: /* @__PURE__ */ b(e, { name: "x" }) })
818
818
  }) : null,
@@ -824,7 +824,7 @@ function de({ ref: n, render: r, ...a }) {
824
824
  "aria-label": o.t("trigger"),
825
825
  "data-part": "trigger",
826
826
  disabled: o.disabled,
827
- onClick: N,
827
+ onClick: j,
828
828
  tabIndex: -1,
829
829
  type: "button",
830
830
  children: /* @__PURE__ */ b("span", {
@@ -854,76 +854,106 @@ function de({ ref: n, render: r, ...a }) {
854
854
  }, e))
855
855
  ] });
856
856
  return r === void 0 ? /* @__PURE__ */ b("div", {
857
- ...R,
858
- children: U
857
+ ...I,
858
+ children: V
859
859
  }) : r({
860
- ...R,
861
- children: U
860
+ ...I,
861
+ children: V
862
862
  });
863
863
  }
864
- function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s, ...c }) {
865
- let l = B(), [u, d] = v(null), [p, m] = v(null), [g, y] = v(null), [S, T] = v("unmounted"), [E, k] = v(!1), [A, te] = v(0), j = _(null), M = _(null), N = _(l);
866
- N.current = l, f(() => {
864
+ function Y({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s, ...c }) {
865
+ let l = R(), [d, p] = v(null), [m, g] = v(null), [y, S] = v(null), [T, E] = v("unmounted"), [D, O] = v(!1), [k, re] = v(0), A = _(null), j = _(null), M = _(l);
866
+ M.current = l, f(() => {
867
867
  let e = C({
868
- present: N.current.open,
869
- onStatusChange: T
868
+ present: M.current.open,
869
+ onStatusChange: E
870
870
  });
871
- return j.current = e, T(e.status), () => {
872
- e.destroy(), j.current = null;
871
+ return A.current = e, E(e.status), () => {
872
+ e.destroy(), A.current = null;
873
873
  };
874
- }, []), f(() => j.current?.sync(l.open), [l.open]), f(() => j.current?.setNode(u), [u]), f(() => l.setContentNode(p), [l, p]);
875
- let P = l.mount === "eager" || l.mount === "lazy" && l.seen || S !== "unmounted";
874
+ }, []), f(() => A.current?.sync(l.open), [l.open]), f(() => A.current?.setNode(d), [d]), f(() => l.setContentNode(m), [l, m]);
875
+ let N = l.mount === "eager" || l.mount === "lazy" && l.seen || l.open || T !== "unmounted";
876
876
  f(() => {
877
+ let e = l.inputNode;
878
+ if (e === null || D) return;
879
+ let t = () => O(!0);
880
+ return e.addEventListener("focusin", t), e.addEventListener("pointerdown", t), () => {
881
+ e.removeEventListener("focusin", t), e.removeEventListener("pointerdown", t);
882
+ };
883
+ }, [l.inputNode, D]);
884
+ let P = N || D;
885
+ h(() => {
877
886
  if (!P) {
878
- y(null);
887
+ S(null);
879
888
  return;
880
889
  }
881
890
  let e = w({
882
891
  origin: l.inputNode,
883
892
  disabled: !l.portal
884
893
  });
885
- return y(e.container), () => e.release();
894
+ return S(e.container), () => e.release();
886
895
  }, [
887
896
  l.inputNode,
888
897
  l.portal,
889
898
  P
890
899
  ]);
891
- let { align: F, alignOffset: I, collisionPadding: L, flip: R, hideWhenDetached: z, shift: V, side: H, sideOffset: ne, strategy: U, width: re } = l;
892
- if (f(() => {
893
- if (u === null || l.inputNode === null) return;
894
- let e = !0, t = l.inputNode.closest("[data-part='root']") ?? l.inputNode, n = D(t, u, {
900
+ let { align: F, alignOffset: I, collisionPadding: L, flip: z, hideWhenDetached: B, shift: ie, side: V, sideOffset: ae, strategy: oe, width: se } = l, W = _(null), G = _(0), K = u((e, t) => {
901
+ e.update().then(() => {
902
+ if (W.current !== e || !M.current.open) return;
903
+ t.setAttribute("data-open", "");
904
+ let n = t.ownerDocument.defaultView;
905
+ n !== null && G.current === 0 && (G.current = n.requestAnimationFrame(() => {
906
+ G.current = 0, le(M.current.contentNode, M.current.highlighted);
907
+ }));
908
+ });
909
+ }, []);
910
+ if (h(() => {
911
+ if (d === null || l.inputNode === null) return;
912
+ let e = l.inputNode.closest("[data-part='root']") ?? l.inputNode, t = te(e, d, {
895
913
  align: F,
896
914
  alignOffset: I,
897
915
  boundaryPadding: L,
898
- flip: R,
899
- hideWhenDetached: z,
900
- matchWidth: re === "anchor",
901
- shift: V,
902
- side: H,
903
- sideOffset: ne,
904
- strategy: U
916
+ flip: z,
917
+ hideWhenDetached: B,
918
+ matchWidth: se === "anchor",
919
+ shift: ie,
920
+ side: V,
921
+ sideOffset: ae,
922
+ strategy: oe
905
923
  });
906
- return n.update().then(() => {
907
- e && k(!0);
908
- }), () => {
909
- e = !1, n.destroy(), k(!1);
924
+ return W.current = t, M.current.open && K(t, d), () => {
925
+ t.destroy(), W.current = null, d.removeAttribute("data-open");
910
926
  };
911
927
  }, [
912
928
  F,
913
929
  I,
914
930
  L,
915
- R,
916
931
  z,
917
- u,
932
+ B,
933
+ d,
918
934
  l.inputNode,
935
+ ie,
919
936
  V,
920
- H,
921
- ne,
922
- U,
923
- re
937
+ ae,
938
+ oe,
939
+ se,
940
+ K
941
+ ]), h(() => {
942
+ let e = W.current;
943
+ if (e !== null && d !== null) {
944
+ if (l.open) {
945
+ K(e, d);
946
+ return;
947
+ }
948
+ d.removeAttribute("data-open"), G.current !== 0 && (d.ownerDocument.defaultView?.cancelAnimationFrame(G.current), G.current = 0);
949
+ }
950
+ }, [
951
+ d,
952
+ K,
953
+ l.open
924
954
  ]), f(() => {
925
- if (u === null || !l.open) return;
926
- let e = [l.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = ee(u, {
955
+ if (d === null || !l.open) return;
956
+ let e = [l.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = ee(d, {
927
957
  branches: e,
928
958
  escape: l.closeOnEscape,
929
959
  focusOutside: !1,
@@ -931,7 +961,7 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
931
961
  outsidePress: l.closeOnOutsidePress,
932
962
  scrollLock: !1,
933
963
  onDismiss: (e) => {
934
- N.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
964
+ M.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
935
965
  }
936
966
  });
937
967
  return () => t.destroy();
@@ -940,32 +970,32 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
940
970
  l.closeOnOutsidePress,
941
971
  l.inputNode,
942
972
  l.open,
943
- u
973
+ d
944
974
  ]), h(() => {
945
- let e = W(p).filter((e) => e.dataset.create === void 0).length;
946
- te((t) => t === e ? t : e);
975
+ let e = H(m).filter((e) => e.dataset.create === void 0).length;
976
+ re((t) => t === e ? t : e);
947
977
  }), h(() => {
948
- let e = N.current;
949
- if (e.open && p !== null) {
978
+ let e = M.current;
979
+ if (e.open && m !== null) {
950
980
  if (e.entry.current !== "none") {
951
- let t = oe(p, e.entry.current, e.loop);
981
+ let t = ce(m, e.entry.current, e.loop);
952
982
  e.entry.current = "none", t !== null && e.setHighlighted(t, "keyboard");
953
983
  return;
954
984
  }
955
- e.highlighted !== null && (W(p).some((t) => G(t) === e.highlighted) || e.setHighlighted(null, "keyboard"));
985
+ e.highlighted !== null && (H(m).some((t) => U(t) === e.highlighted) || e.setHighlighted(null, "keyboard"));
956
986
  }
957
987
  }, [
958
988
  l.open,
959
- A,
960
- p
989
+ k,
990
+ m
961
991
  ]), f(() => {
962
- se(p, l.highlighted);
992
+ d?.hasAttribute("data-open") === !0 && le(m, l.highlighted);
963
993
  }, [
994
+ d,
964
995
  l.highlighted,
965
- E,
966
- p
996
+ m
967
997
  ]), f(() => {
968
- let e = M.current, t = p, n = l.onLoadMore;
998
+ let e = j.current, t = m, n = l.onLoadMore;
969
999
  if (e === null || t === null || n === void 0 || typeof IntersectionObserver != "function") return;
970
1000
  let r = new IntersectionObserver((e) => {
971
1001
  e.some((e) => e.isIntersecting) && n();
@@ -973,21 +1003,20 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
973
1003
  return r.observe(e), () => r.disconnect();
974
1004
  }, [
975
1005
  l.onLoadMore,
976
- A,
977
- p
978
- ]), !P) return null;
979
- let ie = {
1006
+ k,
1007
+ m
1008
+ ]), !N) return null;
1009
+ let ue = {
980
1010
  "data-align": F,
981
1011
  ...l.open ? {} : { inert: !0 },
982
- ...l.open && E ? { "data-open": "" } : {},
983
1012
  "data-part": "positioner",
984
1013
  "data-size": l.size,
985
1014
  "data-ui": "multi-select",
986
1015
  "data-width": l.width
987
- }, ae = s === void 0 ? l.loading ? l.t("loading") : A === 0 ? null : l.t("count", { count: A }) : s, K = !l.loading && A === 0 && l.creatable && !l.full && l.query.trim() !== "", q = /* @__PURE__ */ b("div", {
988
- ...ie,
1016
+ }, de = s === void 0 ? l.loading ? l.t("loading") : k === 0 ? null : l.t("count", { count: k }) : s, fe = !l.loading && k === 0 && l.creatable && !l.full && l.query.trim() !== "", q = /* @__PURE__ */ b("div", {
1017
+ ...ue,
989
1018
  ref: (e) => {
990
- d(e), X(e, a);
1019
+ p(e), J(e, a);
991
1020
  },
992
1021
  children: /* @__PURE__ */ x("div", {
993
1022
  ...c,
@@ -996,7 +1025,7 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
996
1025
  "data-loading": l.loading ? "" : void 0,
997
1026
  "data-part": "content",
998
1027
  id: l.contentId,
999
- ref: m,
1028
+ ref: g,
1000
1029
  role: "listbox",
1001
1030
  children: [
1002
1031
  r && l.value.length > 0 ? /* @__PURE__ */ b("div", {
@@ -1016,8 +1045,8 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
1016
1045
  }, e))
1017
1046
  }) : null,
1018
1047
  n,
1019
- /* @__PURE__ */ b("div", { ref: M }),
1020
- K ? /* @__PURE__ */ x("div", {
1048
+ /* @__PURE__ */ b("div", { ref: j }),
1049
+ fe ? /* @__PURE__ */ x("div", {
1021
1050
  "data-create": "",
1022
1051
  "data-part": "item",
1023
1052
  "data-value": l.query,
@@ -1044,7 +1073,7 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
1044
1073
  })
1045
1074
  ]
1046
1075
  }) : null,
1047
- !l.loading && A === 0 && !K ? /* @__PURE__ */ b("div", {
1076
+ !l.loading && k === 0 && !fe ? /* @__PURE__ */ b("div", {
1048
1077
  "data-part": "empty",
1049
1078
  children: i ?? l.t("empty")
1050
1079
  }) : null,
@@ -1067,20 +1096,20 @@ function Z({ children: n, chosen: r = !0, empty: i, ref: a, render: o, status: s
1067
1096
  "data-part": "status",
1068
1097
  ...l.loading ? { "data-loading": "" } : {},
1069
1098
  role: "status",
1070
- children: ae
1099
+ children: de
1071
1100
  })
1072
1101
  ]
1073
1102
  })
1074
- }), J = o === void 0 ? q : o({
1075
- ...ie,
1103
+ }), pe = o === void 0 ? q : o({
1104
+ ...ue,
1076
1105
  children: n
1077
1106
  });
1078
- return g === null ? J : O(J, g);
1107
+ return y === null ? pe : ne(pe, y);
1079
1108
  }
1080
1109
  //#endregion
1081
1110
  //#region src/multi-select/multi-select-items.tsx
1082
- function fe({ children: n, description: r, disabled: i = !1, icon: o, position: s, ref: c, textValue: l, value: u, ...d }) {
1083
- let p = B(), [m, h] = v(null), y = _(null), S = l ?? (typeof n == "string" ? n : void 0);
1111
+ function me({ children: n, description: r, disabled: i = !1, icon: o, position: s, ref: c, textValue: l, value: u, ...d }) {
1112
+ let p = R(), [m, h] = v(null), y = _(null), S = l ?? (typeof n == "string" ? n : void 0);
1084
1113
  f(() => {
1085
1114
  if (m === null) return;
1086
1115
  let e = S ?? m.querySelector("[data-part='label']")?.textContent?.trim() ?? "";
@@ -1093,7 +1122,7 @@ function fe({ children: n, description: r, disabled: i = !1, icon: o, position:
1093
1122
  ]);
1094
1123
  let C = g(() => {
1095
1124
  if (!p.highlightMatch || p.query === "" || S === void 0) return n;
1096
- let e = P(S, p.query, { locale: p.locale });
1125
+ let e = M(S, p.query, { locale: p.locale });
1097
1126
  return e.length === 0 ? n : /* @__PURE__ */ b(a, {
1098
1127
  ranges: e,
1099
1128
  text: S
@@ -1108,11 +1137,11 @@ function fe({ children: n, description: r, disabled: i = !1, icon: o, position:
1108
1137
  if (S !== void 0 && !p.matches(S)) return null;
1109
1138
  let w = p.value.includes(u);
1110
1139
  if (w && p.chosenOptions === "hide") return null;
1111
- let T = p.highlighted === u, ee = p.full && !w, E = i || ee, D = (e) => {
1140
+ let T = p.highlighted === u, ee = p.full && !w, E = i || ee, te = (e) => {
1112
1141
  E || p.setHighlighted(u, "pointer", e.nativeEvent);
1113
- }, O = (e) => {
1142
+ }, ne = (e) => {
1114
1143
  d.onPointerDown?.(e), !e.defaultPrevented && e.preventDefault();
1115
- }, k = (e) => {
1144
+ }, D = (e) => {
1116
1145
  E || (p.toggle(u, "select", e.nativeEvent), p.setInputValue("", "select", e.nativeEvent), p.closeOnSelect && p.setOpen(!1, "select", e.nativeEvent), p.inputNode?.focus({ preventScroll: !0 }));
1117
1146
  };
1118
1147
  return /* @__PURE__ */ x("div", {
@@ -1128,9 +1157,9 @@ function fe({ children: n, description: r, disabled: i = !1, icon: o, position:
1128
1157
  ...w ? { "data-selected": "" } : {},
1129
1158
  ...T ? { "data-current": "" } : {},
1130
1159
  id: d.id ?? p.optionId(u),
1131
- onClick: k,
1132
- onPointerDown: O,
1133
- onPointerEnter: D,
1160
+ onClick: D,
1161
+ onPointerDown: ne,
1162
+ onPointerEnter: te,
1134
1163
  ref: (e) => {
1135
1164
  h(e), typeof c == "function" ? c(e) : c != null && (c.current = e);
1136
1165
  },
@@ -1155,8 +1184,8 @@ function fe({ children: n, description: r, disabled: i = !1, icon: o, position:
1155
1184
  ]
1156
1185
  });
1157
1186
  }
1158
- function pe({ children: e, label: t, ...n }) {
1159
- let r = `${p()}group`, { query: i, value: a } = B(), [o, s] = v(null), [c, l] = v(!1);
1187
+ function he({ children: e, label: t, ...n }) {
1188
+ let r = `${p()}group`, { query: i, value: a } = R(), [o, s] = v(null), [c, l] = v(!1);
1160
1189
  return f(() => {
1161
1190
  o !== null && l(o.querySelector("[data-part='item']") === null);
1162
1191
  }, [
@@ -1177,7 +1206,7 @@ function pe({ children: e, label: t, ...n }) {
1177
1206
  }), e]
1178
1207
  });
1179
1208
  }
1180
- function me(e) {
1209
+ function ge(e) {
1181
1210
  return /* @__PURE__ */ b("div", {
1182
1211
  "data-part": "separator",
1183
1212
  ref: e.ref,
@@ -1185,4 +1214,4 @@ function me(e) {
1185
1214
  });
1186
1215
  }
1187
1216
  //#endregion
1188
- export { de as a, B as c, L as d, Z as i, F as l, fe as n, ue as o, me as r, U as s, pe as t, R as u };
1217
+ export { pe as a, R as c, F as d, Y as i, N as l, me as n, fe as o, ge as r, V as s, he as t, I as u };