@slotted/react 0.1.0-beta.26 → 0.1.0-beta.28

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 (202) hide show
  1. package/dist/{action-bar-DckD0Sug.js → action-bar-CAtXzym2.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/{cascader-47GYpojH.js → cascader-DUiUVxBt.js} +190 -190
  4. package/dist/cascader.js +1 -1
  5. package/dist/{checkbox-Dw9R1CGR.js → checkbox-D67PWyL0.js} +3 -3
  6. package/dist/{checkbox-group-DDlz-UF4.js → checkbox-group-DZZbowG-.js} +2 -2
  7. package/dist/checkbox-group.js +1 -1
  8. package/dist/checkbox.js +1 -1
  9. package/dist/{color-picker-BbyW5ALf.js → color-picker-DP8MjvXk.js} +3 -3
  10. package/dist/color-picker.js +1 -1
  11. package/dist/{column-manager-Bz0bb4mq.js → column-manager-C3iL_I5T.js} +3 -3
  12. package/dist/column-manager.js +1 -1
  13. package/dist/{combobox-BA2nvbnA.js → combobox-BIi7grOR.js} +87 -87
  14. package/dist/combobox.js +1 -1
  15. package/dist/{command-palette-DEKWsUFR.js → command-palette-BxbhO044.js} +11 -11
  16. package/dist/command-palette.js +1 -1
  17. package/dist/{context-menu-CfEEqDKr.js → context-menu-BJyDD17g.js} +1 -1
  18. package/dist/context-menu.js +1 -1
  19. package/dist/{currency-field-CTzBMH8g.js → currency-field-CAO2ZolW.js} +1 -1
  20. package/dist/currency-field.js +1 -1
  21. package/dist/{dashboard-grid-WinSY-q3.js → dashboard-grid-De6al1Mj.js} +1 -1
  22. package/dist/dashboard-grid.js +1 -1
  23. package/dist/{data-grid-BWWvixwB.js → data-grid-BKOFLdSD.js} +46 -46
  24. package/dist/data-grid.js +1 -1
  25. package/dist/{data-list-iw9K_oiz.js → data-list-BDYbrO3V.js} +6 -6
  26. package/dist/data-list.js +1 -1
  27. package/dist/{date-field-B2WG_m4C.js → date-field-BEdt1xDF.js} +1 -1
  28. package/dist/date-field.js +1 -1
  29. package/dist/{date-picker-B2wqU3Mw.js → date-picker-DJMET62H.js} +2 -2
  30. package/dist/date-picker.js +1 -1
  31. package/dist/{date-range-picker-BhQwOKkE.js → date-range-picker-CinTpTme.js} +2 -2
  32. package/dist/date-range-picker.js +1 -1
  33. package/dist/{datetime-field-CvKPkvaE.js → datetime-field-2tsqzWVH.js} +1 -1
  34. package/dist/datetime-field.js +1 -1
  35. package/dist/{datetime-picker-C-PwlBW5.js → datetime-picker-COew4Y_B.js} +2 -2
  36. package/dist/datetime-picker.js +1 -1
  37. package/dist/{datetime-range-picker-0xs12Cf1.js → datetime-range-picker-DTT_CvkE.js} +2 -2
  38. package/dist/datetime-range-picker.js +1 -1
  39. package/dist/docs/chart.json +2 -0
  40. package/dist/docs/chart.md +1 -1
  41. package/dist/docs/combobox.json +1 -0
  42. package/dist/docs/combobox.md +1 -1
  43. package/dist/docs/dialog.json +23 -4
  44. package/dist/docs/dialog.md +2 -60
  45. package/dist/docs/dialog.props.md +68 -0
  46. package/dist/docs/drawer.json +2 -0
  47. package/dist/docs/drawer.md +1 -1
  48. package/dist/docs/field-group.json +8 -0
  49. package/dist/docs/field-group.md +1 -0
  50. package/dist/docs/guidelines/forms.md +1 -1
  51. package/dist/docs/menu.json +1 -0
  52. package/dist/docs/menu.md +1 -1
  53. package/dist/docs/multi-select.json +1 -0
  54. package/dist/docs/multi-select.md +1 -1
  55. package/dist/docs/select.json +1 -0
  56. package/dist/docs/select.md +1 -1
  57. package/dist/docs/skills/theme-app/SKILL.md +4 -1
  58. package/dist/{entity-picker-WkBLvR2T.js → entity-picker-DfoAxqaa.js} +26 -26
  59. package/dist/entity-picker.js +1 -1
  60. package/dist/{event-calendar-BaPllnNk.js → event-calendar-CFw9KKAm.js} +3 -3
  61. package/dist/event-calendar.js +1 -1
  62. package/dist/{field-CSSHwGq_.js → field-BjF0c0U9.js} +2 -2
  63. package/dist/{field-group-DeBTueJW.js → field-group-Ctwd3EUR.js} +38 -37
  64. package/dist/field-group.js +1 -1
  65. package/dist/field.js +1 -1
  66. package/dist/{filter-bar-DRQEl4-J.js → filter-bar-BJGqeIKl.js} +9 -9
  67. package/dist/filter-bar.js +1 -1
  68. package/dist/{import-export-center-C1t2tkzg.js → import-export-center-yxNcKfQX.js} +1 -1
  69. package/dist/import-export-center.js +1 -1
  70. package/dist/index.js +53 -53
  71. package/dist/{listbox-B9cBuitS.js → listbox-Df177k5C.js} +11 -11
  72. package/dist/listbox.js +1 -1
  73. package/dist/{markdown-DX-mBYVT.js → markdown-D2EB46zY.js} +1 -1
  74. package/dist/markdown.js +1 -1
  75. package/dist/{menu-parts-7F8syoFE.js → menu-parts-DNQDoJnd.js} +203 -204
  76. package/dist/menu.js +1 -1
  77. package/dist/{menubar-DzVGFn_I.js → menubar-CY8oxV0V.js} +1 -1
  78. package/dist/menubar.js +1 -1
  79. package/dist/{multi-select-DnOAXeuF.js → multi-select-DSSDlWVZ.js} +69 -69
  80. package/dist/multi-select.js +1 -1
  81. package/dist/{number-field-C20-8yda.js → number-field-DzOcs9uG.js} +1 -1
  82. package/dist/number-field.js +1 -1
  83. package/dist/{otp-input-YI-Emc5k.js → otp-input-ult9fNdj.js} +1 -1
  84. package/dist/otp-input.js +1 -1
  85. package/dist/{prompt-composer-DsnPcKa4.js → prompt-composer-D9oaFXDU.js} +1 -1
  86. package/dist/prompt-composer.js +1 -1
  87. package/dist/{radio-group-DA8_LbEz.js → radio-group-Dct1Kkuf.js} +2 -2
  88. package/dist/radio-group.js +1 -1
  89. package/dist/{rating-DSSqi85N.js → rating-Cjrwmxyw.js} +1 -1
  90. package/dist/rating.js +1 -1
  91. package/dist/{saved-views-CsVRZTwK.js → saved-views-BKOHI-Od.js} +3 -3
  92. package/dist/saved-views.js +1 -1
  93. package/dist/{segmented-control-Dae5wU9X.js → segmented-control-BINpaKhI.js} +2 -2
  94. package/dist/segmented-control.js +1 -1
  95. package/dist/{select-De77allF.js → select-jdqT8lFi.js} +264 -264
  96. package/dist/select.js +1 -1
  97. package/dist/{slider-DNRphJot.js → slider-DuJGh0pf.js} +1 -1
  98. package/dist/slider.js +1 -1
  99. package/dist/{split-button-DA1wcDJB.js → split-button-CgfY606Z.js} +1 -1
  100. package/dist/split-button.js +1 -1
  101. package/dist/styles/action-bar.css +1 -1
  102. package/dist/styles/action-sheet.css +1 -1
  103. package/dist/styles/card.css +1 -1
  104. package/dist/styles/cascader.css +2 -2
  105. package/dist/styles/chart.css +1 -1
  106. package/dist/styles/checkbox-group.css +3 -3
  107. package/dist/styles/checkbox.css +3 -3
  108. package/dist/styles/color-picker.css +4 -4
  109. package/dist/styles/column-manager.css +6 -6
  110. package/dist/styles/combobox.css +3 -3
  111. package/dist/styles/command-palette.css +1 -1
  112. package/dist/styles/context-menu.css +1 -1
  113. package/dist/styles/currency-field.css +2 -2
  114. package/dist/styles/dashboard-grid.css +2 -2
  115. package/dist/styles/data-grid.css +7 -7
  116. package/dist/styles/data-list.css +4 -4
  117. package/dist/styles/date-field.css +2 -2
  118. package/dist/styles/date-picker.css +2 -2
  119. package/dist/styles/date-range-picker.css +2 -2
  120. package/dist/styles/datetime-field.css +2 -2
  121. package/dist/styles/datetime-picker.css +2 -2
  122. package/dist/styles/datetime-range-picker.css +2 -2
  123. package/dist/styles/dialog.css +1 -1
  124. package/dist/styles/drawer.css +1 -1
  125. package/dist/styles/entity-picker.css +3 -3
  126. package/dist/styles/event-calendar.css +6 -6
  127. package/dist/styles/field-group.css +3 -3
  128. package/dist/styles/field.css +2 -2
  129. package/dist/styles/filter-bar.css +8 -8
  130. package/dist/styles/hover-card.css +1 -1
  131. package/dist/styles/import-export-center.css +5 -5
  132. package/dist/styles/index.css +12 -12
  133. package/dist/styles/listbox.css +2 -2
  134. package/dist/styles/markdown.css +3 -3
  135. package/dist/styles/menu.css +1 -1
  136. package/dist/styles/menubar.css +1 -1
  137. package/dist/styles/multi-select.css +3 -3
  138. package/dist/styles/notification-center.css +1 -1
  139. package/dist/styles/number-field.css +2 -2
  140. package/dist/styles/otp-input.css +2 -2
  141. package/dist/styles/popover.css +1 -1
  142. package/dist/styles/prompt-composer.css +2 -2
  143. package/dist/styles/radio-group.css +3 -3
  144. package/dist/styles/rating.css +2 -2
  145. package/dist/styles/saved-views.css +4 -4
  146. package/dist/styles/segmented-control.css +3 -3
  147. package/dist/styles/select.css +3 -3
  148. package/dist/styles/side-navigation.css +1 -1
  149. package/dist/styles/slider.css +2 -2
  150. package/dist/styles/split-button.css +1 -1
  151. package/dist/styles/switch.css +2 -2
  152. package/dist/styles/table.css +5 -5
  153. package/dist/styles/tags-input.css +2 -2
  154. package/dist/styles/text-field.css +2 -2
  155. package/dist/styles/textarea.css +2 -2
  156. package/dist/styles/time-field.css +2 -2
  157. package/dist/styles/time-picker.css +2 -2
  158. package/dist/styles/time-range-picker.css +2 -2
  159. package/dist/styles/toggle-group.css +2 -2
  160. package/dist/styles/toolbar.css +1 -1
  161. package/dist/styles/tooltip.css +1 -1
  162. package/dist/styles/top-navigation.css +1 -1
  163. package/dist/styles/transfer.css +3 -3
  164. package/dist/styles/upload.css +3 -3
  165. package/dist/styles/wizard.css +1 -1
  166. package/dist/styles.css +1 -1
  167. package/dist/{switch-gR_OvGG8.js → switch-Tr3blHWc.js} +1 -1
  168. package/dist/switch.js +1 -1
  169. package/dist/{table-C3cjkzps.js → table-b7Wt5A88.js} +217 -217
  170. package/dist/table.js +1 -1
  171. package/dist/{tags-input-DEhtpizX.js → tags-input-_cYR2JSK.js} +10 -10
  172. package/dist/tags-input.js +1 -1
  173. package/dist/{text-field-RGXN7zNu.js → text-field-DEm3MEe2.js} +1 -1
  174. package/dist/text-field.js +1 -1
  175. package/dist/{textarea-AhpUmnMk.js → textarea-BRRn55L2.js} +1 -1
  176. package/dist/textarea.js +1 -1
  177. package/dist/{time-field-xkxX8JF6.js → time-field-C9dFaZOx.js} +1 -1
  178. package/dist/time-field.js +1 -1
  179. package/dist/{time-picker-Da_UhP9X.js → time-picker-VJegeX4j.js} +2 -2
  180. package/dist/time-picker.js +1 -1
  181. package/dist/{time-range-picker-CfVzD53N.js → time-range-picker-DFOxymH_.js} +2 -2
  182. package/dist/time-range-picker.js +1 -1
  183. package/dist/{toggle-group-DoxPLYJ3.js → toggle-group-DiKxYOwh.js} +1 -1
  184. package/dist/toggle-group.js +1 -1
  185. package/dist/{toolbar-CtSZ88HI.js → toolbar-CSiDqC8L.js} +1 -1
  186. package/dist/toolbar.js +1 -1
  187. package/dist/{transfer-BMRyopEw.js → transfer-BrYBBjaG.js} +9 -9
  188. package/dist/transfer.js +1 -1
  189. package/dist/{tree-DBirM2v9.js → tree-D-y-0TrL.js} +14 -14
  190. package/dist/tree.js +1 -1
  191. package/dist/types/field/field-parts.d.ts.map +1 -1
  192. package/dist/types/field-group/field-group-parts.d.ts.map +1 -1
  193. package/dist/types/field-group/field-group.d.ts +1 -1
  194. package/dist/types/field-group/field-group.d.ts.map +1 -1
  195. package/dist/types/field-group/field-group.types.d.ts +9 -0
  196. package/dist/types/field-group/field-group.types.d.ts.map +1 -1
  197. package/dist/types/field-group/index.d.ts +1 -1
  198. package/dist/types/field-group/index.d.ts.map +1 -1
  199. package/dist/types/menu/menu-parts.d.ts.map +1 -1
  200. package/dist/{upload-BqVBpYaZ.js → upload-BmRZHySQ.js} +1 -1
  201. package/dist/upload.js +1 -1
  202. package/package.json +6 -6
@@ -1,7 +1,7 @@
1
1
  import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
2
  import { n, t as r } from "./icon-D04-_QFA.js";
3
3
  import { t as i } from "./spinner-ring-DyfaYloA.js";
4
- import { b as a } from "./field-CSSHwGq_.js";
4
+ import { b as a } from "./field-BjF0c0U9.js";
5
5
  import { t as o } from "./select-tags-3792weoq.js";
6
6
  import { t as s } from "./highlight-9lRPIZ9O.js";
7
7
  import { keyedProps as c, selectorKeyProps as l, withSelectorKey as u } from "@slotted/core/selector-key";
@@ -12,14 +12,14 @@ import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
12
12
  import { createPresence as T } from "@slotted/core/presence";
13
13
  import { selectMessages as E } from "@slotted/core/i18n";
14
14
  import { createPortalRoot as te, setPortalContainer as D } from "@slotted/core/portal";
15
- import { createDismissableLayer as O } from "@slotted/core/dismissable-layer";
16
- import { createPositioner as k } from "@slotted/core/positioner";
17
- import { createTypeahead as A, isPrintable as ne } from "@slotted/core/typeahead";
18
- import { createPortal as j } from "react-dom";
19
- import { createFilter as M, moveIndex as N, revealWithin as P } from "@slotted/core/collection";
20
- import { matchRanges as re } from "@slotted/core/highlight";
15
+ import { createFilter as O, moveIndex as k, revealWithin as A } from "@slotted/core/collection";
16
+ import { createDismissableLayer as j } from "@slotted/core/dismissable-layer";
17
+ import { createPositioner as ne } from "@slotted/core/positioner";
18
+ import { createTypeahead as M, isPrintable as N } from "@slotted/core/typeahead";
19
+ import { createPortal as re } from "react-dom";
20
+ import { matchRanges as ie } from "@slotted/core/highlight";
21
21
  //#region src/select/select-defaults.tsx
22
- var F = {
22
+ var P = {
23
23
  align: "start",
24
24
  alignOffset: 0,
25
25
  clearable: !1,
@@ -50,12 +50,12 @@ var F = {
50
50
  typeaheadTimeout: 500,
51
51
  variant: "outline",
52
52
  width: "content"
53
- }, I = p(F);
54
- function L() {
55
- return h(I);
53
+ }, F = p(P);
54
+ function I() {
55
+ return h(F);
56
56
  }
57
- function R({ children: e, container: t, ...n }) {
58
- let r = L();
57
+ function L({ children: e, container: t, ...n }) {
58
+ let r = I();
59
59
  g(() => {
60
60
  if (t !== void 0) return D(t), () => D(null);
61
61
  }, [t]);
@@ -91,59 +91,59 @@ function R({ children: e, container: t, ...n }) {
91
91
  variant: n.variant ?? r.variant,
92
92
  width: n.width ?? r.width
93
93
  };
94
- return /* @__PURE__ */ C(I.Provider, {
94
+ return /* @__PURE__ */ C(F.Provider, {
95
95
  value: i,
96
96
  children: e
97
97
  });
98
98
  }
99
99
  //#endregion
100
100
  //#region src/select/select.tsx
101
- var ie = p(void 0);
102
- function z() {
103
- let e = h(ie);
101
+ var ae = p(void 0);
102
+ function R() {
103
+ let e = h(ae);
104
104
  if (e === void 0) throw Error("SelectTrigger, SelectContent and every option have to be inside a Select.");
105
105
  return e;
106
106
  }
107
- function B(e) {
107
+ function z(e) {
108
108
  return e == null ? [] : typeof e == "string" ? [e] : e;
109
109
  }
110
- function ae(e, t) {
110
+ function oe(e, t) {
111
111
  return t ? e : e[0] ?? null;
112
112
  }
113
- var oe = (e) => "options" in e;
114
- function se(e) {
115
- return e === void 0 ? [] : e.flatMap((e) => oe(e) ? e.options : [e]);
113
+ var se = (e) => "options" in e;
114
+ function ce(e) {
115
+ return e === void 0 ? [] : e.flatMap((e) => se(e) ? e.options : [e]);
116
116
  }
117
- function ce({ align: n, alignOffset: r, children: i, clearable: o, closeOnEscape: s, closeOnOutsidePress: c, closeOnSelect: l, collisionPadding: u, defaultHighlightedValue: d = null, defaultOpen: p = !1, defaultSearchValue: h = "", defaultValue: g, disabled: v, filter: S, flip: w, form: T, fullWidth: te, hideWhenDetached: D, highlightedValue: O, highlightMatch: k, invalid: A, items: ne, loading: j, locale: N, loop: re, messages: F, mount: I, multiple: R, name: z, onHighlightedValueChange: oe, onOpenChange: ce, onSearchValueChange: V, onValueChange: H, open: U, portal: W, readOnly: le, ref: ue, required: G, search: de, searchValue: fe, shift: K, side: q, sideOffset: pe, size: J, strategy: me, total: he, typeahead: ge, typeaheadTimeout: _e, value: ve, variant: ye, width: be }) {
118
- let Y = L(), X = a(), xe = t(E, F), Se = e(), Ce = N ?? Se, Z = _(), we = `${Z}listbox`, Te = `${Z}list`, Ee = `${Z}search`, De = X?.ids.control ?? `${Z}trigger`, [Oe, ke] = x(p), [Ae] = x(() => B(g)), [je, Me] = x(Ae), [Ne, Pe] = x(d), [Fe, Ie] = x(h), [Le, Re] = x(null), [ze, Be] = x(null), [Ve, He] = x(null), Ue = R ?? Y.multiple, We = v ?? X?.disabled ?? Y.disabled, Ge = le ?? X?.readOnly ?? Y.readOnly, Ke = (U ?? Oe) && !We, qe = ve === void 0 ? je : B(ve), Je = O === void 0 ? Ne : O, Ye = de ?? Y.search, Xe = Ye ? fe === void 0 ? Fe : fe : "", Ze = b(Ke);
119
- Ke && (Ze.current = !0);
117
+ function le({ align: n, alignOffset: r, children: i, clearable: o, closeOnEscape: s, closeOnOutsidePress: c, closeOnSelect: l, collisionPadding: u, defaultHighlightedValue: d = null, defaultOpen: p = !1, defaultSearchValue: h = "", defaultValue: g, disabled: v, filter: S, flip: w, form: T, fullWidth: te, hideWhenDetached: D, highlightedValue: k, highlightMatch: j, invalid: ne, items: M, loading: N, locale: re, loop: ie, messages: P, mount: F, multiple: L, name: R, onHighlightedValueChange: se, onOpenChange: le, onSearchValueChange: B, onValueChange: V, open: H, portal: U, readOnly: ue, ref: de, required: W, search: fe, searchValue: pe, shift: G, side: K, sideOffset: me, size: q, strategy: he, total: ge, typeahead: _e, typeaheadTimeout: ve, value: ye, variant: be, width: xe }) {
118
+ let J = I(), Y = a(), Se = t(E, P), Ce = e(), we = re ?? Ce, X = _(), Te = `${X}listbox`, Ee = `${X}list`, De = `${X}search`, Oe = Y?.ids.control ?? `${X}trigger`, [ke, Ae] = x(p), [je] = x(() => z(g)), [Me, Ne] = x(je), [Pe, Fe] = x(d), [Ie, Le] = x(h), [Re, ze] = x(null), [Be, Ve] = x(null), [He, Ue] = x(null), We = L ?? J.multiple, Ge = v ?? Y?.disabled ?? J.disabled, Ke = ue ?? Y?.readOnly ?? J.readOnly, qe = (H ?? ke) && !Ge, Je = ye === void 0 ? Me : z(ye), Ye = k === void 0 ? Pe : k, Xe = fe ?? J.search, Z = Xe ? pe === void 0 ? Ie : pe : "", Ze = b(qe);
119
+ qe && (Ze.current = !0);
120
120
  let Qe = b("selected"), $e = b(/* @__PURE__ */ new Map()), [et, tt] = x(0), nt = y(() => {
121
121
  let e = /* @__PURE__ */ new Map();
122
- for (let t of se(ne)) e.set(t.value, t.label);
122
+ for (let t of ce(M)) e.set(t.value, t.label);
123
123
  return e;
124
- }, [ne]), rt = m((e, t) => {
124
+ }, [M]), rt = m((e, t) => {
125
125
  $e.current.get(e) !== t && ($e.current.set(e, t), tt((e) => e + 1));
126
- }, []), it = m((e) => nt.get(e) ?? $e.current.get(e), [nt, et]), at = y(() => M({ locale: Ce }), [Ce]), ot = m((e) => Xe === "" || S === null ? !0 : S === void 0 ? at.contains(e, Xe) : S(e, Xe), [
127
- Xe,
126
+ }, []), it = m((e) => nt.get(e) ?? $e.current.get(e), [nt, et]), at = y(() => O({ locale: we }), [we]), ot = m((e) => Z === "" || S === null ? !0 : S === void 0 ? at.contains(e, Z) : S(e, Z), [
127
+ Z,
128
128
  at,
129
129
  S
130
- ]), st = m((e) => `${Z}option-${encodeURIComponent(e)}`, [Z]), ct = {
131
- currentHighlighted: Je,
132
- currentOpen: Ke,
133
- currentQuery: Xe,
134
- currentSelection: qe,
135
- highlightedValue: O,
136
- onHighlightedValueChange: oe,
137
- onOpenChange: ce,
138
- onSearchValueChange: V,
139
- onValueChange: H,
140
- open: U,
141
- resolvedMultiple: Ue,
142
- resolvedSearch: Ye,
143
- searchNode: Ve,
144
- searchValue: fe,
145
- triggerNode: Le,
146
- value: ve
130
+ ]), st = m((e) => `${X}option-${encodeURIComponent(e)}`, [X]), ct = {
131
+ currentHighlighted: Ye,
132
+ currentOpen: qe,
133
+ currentQuery: Z,
134
+ currentSelection: Je,
135
+ highlightedValue: k,
136
+ onHighlightedValueChange: se,
137
+ onOpenChange: le,
138
+ onSearchValueChange: B,
139
+ onValueChange: V,
140
+ open: H,
141
+ resolvedMultiple: We,
142
+ resolvedSearch: Xe,
143
+ searchNode: He,
144
+ searchValue: pe,
145
+ triggerNode: Re,
146
+ value: ye
147
147
  }, Q = b(ct);
148
148
  Q.current = ct;
149
149
  let lt = m((e, t, n) => {
@@ -152,29 +152,29 @@ function ce({ align: n, alignOffset: r, children: i, clearable: o, closeOnEscape
152
152
  controlled: r.searchValue,
153
153
  initial: r.currentQuery,
154
154
  onRequest: (e) => r.onSearchValueChange?.(e.value, e)
155
- }).request(e, t, n) && Ie(e);
155
+ }).request(e, t, n) && Le(e);
156
156
  }, []), ut = m((e, t, n) => {
157
157
  let r = Q.current;
158
158
  e !== r.currentOpen && f({
159
159
  controlled: r.open,
160
160
  initial: r.currentOpen,
161
161
  onRequest: (e) => r.onOpenChange?.(e.value, e)
162
- }).request(e, t, n) && (ke(e), e || (Pe(null), Qe.current = "selected", lt("", "clear", n)));
162
+ }).request(e, t, n) && (Ae(e), e || (Fe(null), Qe.current = "selected", lt("", "clear", n)));
163
163
  }, [lt]), dt = m((e, t, n) => {
164
164
  let r = Q.current;
165
165
  e !== r.currentHighlighted && f({
166
166
  controlled: r.highlightedValue,
167
167
  initial: r.currentHighlighted,
168
168
  onRequest: (e) => r.onHighlightedValueChange?.(e.value, e)
169
- }).request(e, t, n) && Pe(e);
169
+ }).request(e, t, n) && Fe(e);
170
170
  }, []), $ = m((e, t, n) => {
171
171
  let r = Q.current;
172
172
  e.length === r.currentSelection.length && e.every((e, t) => e === r.currentSelection[t]) || f({
173
173
  controlled: r.value,
174
- initial: ae(r.currentSelection, r.resolvedMultiple),
174
+ initial: oe(r.currentSelection, r.resolvedMultiple),
175
175
  equals: () => !1,
176
176
  onRequest: (e) => r.onValueChange?.(e.value, e)
177
- }).request(ae(e, r.resolvedMultiple), t, n) && Me(e);
177
+ }).request(oe(e, r.resolvedMultiple), t, n) && Ne(e);
178
178
  }, []), ft = m((e, t, n) => {
179
179
  let r = Q.current;
180
180
  if (!r.resolvedMultiple) {
@@ -183,8 +183,8 @@ function ce({ align: n, alignOffset: r, children: i, clearable: o, closeOnEscape
183
183
  }
184
184
  let i = r.currentSelection.includes(e);
185
185
  $(i ? r.currentSelection.filter((t) => t !== e) : [...r.currentSelection, e], t, n);
186
- }, [$]), pt = m((e, t) => $([], e, t), [$]), mt = m((e) => $(Ae, "programmatic", e), [$, Ae]);
187
- ee(ue, () => ({
186
+ }, [$]), pt = m((e, t) => $([], e, t), [$]), mt = m((e) => $(je, "programmatic", e), [$, je]);
187
+ ee(de, () => ({
188
188
  close: () => ut(!1, "programmatic"),
189
189
  focus: () => Q.current.triggerNode?.focus({ preventScroll: !0 }),
190
190
  focusSearch: () => {
@@ -193,133 +193,133 @@ function ce({ align: n, alignOffset: r, children: i, clearable: o, closeOnEscape
193
193
  },
194
194
  open: () => ut(!0, "programmatic"),
195
195
  scrollToKey: (e) => {
196
- let t = ze?.querySelector(`[data-part='item'][data-value="${CSS.escape(e)}"]`);
197
- t != null && ze !== null && P(t, ze);
196
+ let t = Be?.querySelector(`[data-part='item'][data-value="${CSS.escape(e)}"]`);
197
+ t != null && Be !== null && A(t, Be);
198
198
  }
199
- }), [ze, ut]);
199
+ }), [Be, ut]);
200
200
  let ht = {
201
- align: n ?? Y.align,
202
- alignOffset: r ?? Y.alignOffset,
201
+ align: n ?? J.align,
202
+ alignOffset: r ?? J.alignOffset,
203
203
  clear: pt,
204
- clearable: o ?? Y.clearable,
205
- closeOnEscape: s ?? Y.closeOnEscape,
206
- closeOnOutsidePress: c ?? Y.closeOnOutsidePress,
207
- closeOnSelect: l ?? Y.closeOnSelect,
208
- collisionPadding: u ?? Y.collisionPadding,
209
- contentId: we,
210
- contentNode: ze,
211
- disabled: We,
204
+ clearable: o ?? J.clearable,
205
+ closeOnEscape: s ?? J.closeOnEscape,
206
+ closeOnOutsidePress: c ?? J.closeOnOutsidePress,
207
+ closeOnSelect: l ?? J.closeOnSelect,
208
+ collisionPadding: u ?? J.collisionPadding,
209
+ contentId: Te,
210
+ contentNode: Be,
211
+ disabled: Ge,
212
212
  entry: Qe,
213
- flip: w ?? Y.flip,
213
+ flip: w ?? J.flip,
214
214
  form: T,
215
- fullWidth: te ?? Y.fullWidth,
216
- hideWhenDetached: D ?? Y.hideWhenDetached,
217
- highlighted: Je,
218
- highlightMatch: k ?? Y.highlightMatch,
219
- invalid: A ?? X?.invalid ?? Y.invalid,
215
+ fullWidth: te ?? J.fullWidth,
216
+ hideWhenDetached: D ?? J.hideWhenDetached,
217
+ highlighted: Ye,
218
+ highlightMatch: j ?? J.highlightMatch,
219
+ invalid: ne ?? Y?.invalid ?? J.invalid,
220
220
  labelFor: it,
221
- listId: Te,
222
- loading: j ?? Y.loading,
223
- locale: Ce,
224
- loop: re ?? Y.loop,
221
+ listId: Ee,
222
+ loading: N ?? J.loading,
223
+ locale: we,
224
+ loop: ie ?? J.loop,
225
225
  matches: ot,
226
- mount: I ?? Y.mount,
227
- multiple: Ue,
228
- name: z,
229
- open: Ke,
226
+ mount: F ?? J.mount,
227
+ multiple: We,
228
+ name: R,
229
+ open: qe,
230
230
  optionId: st,
231
- portal: W ?? Y.portal,
232
- query: Xe,
233
- readOnly: Ge,
231
+ portal: U ?? J.portal,
232
+ query: Z,
233
+ readOnly: Ke,
234
234
  registerLabel: rt,
235
- required: G ?? X?.required ?? Y.required,
235
+ required: W ?? Y?.required ?? J.required,
236
236
  restore: mt,
237
- search: Ye,
238
- searchId: Ee,
239
- searchNode: Ve,
237
+ search: Xe,
238
+ searchId: De,
239
+ searchNode: He,
240
240
  seen: Ze.current,
241
- selection: qe,
242
- setContentNode: Be,
241
+ selection: Je,
242
+ setContentNode: Ve,
243
243
  setHighlighted: dt,
244
244
  setOpen: ut,
245
245
  setQuery: lt,
246
- setSearchNode: He,
247
- setTriggerNode: Re,
248
- shift: K ?? Y.shift,
249
- side: q ?? Y.side,
250
- sideOffset: pe ?? Y.sideOffset,
251
- size: J ?? X?.size ?? Y.size,
252
- strategy: me ?? Y.strategy,
253
- t: xe,
246
+ setSearchNode: Ue,
247
+ setTriggerNode: ze,
248
+ shift: G ?? J.shift,
249
+ side: K ?? J.side,
250
+ sideOffset: me ?? J.sideOffset,
251
+ size: q ?? Y?.size ?? J.size,
252
+ strategy: he ?? J.strategy,
253
+ t: Se,
254
254
  toggle: ft,
255
- total: he,
256
- triggerId: De,
257
- triggerNode: Le,
258
- typeahead: Ye ? !1 : ge ?? Y.typeahead,
259
- typeaheadTimeout: _e ?? Y.typeaheadTimeout,
260
- variant: ye ?? Y.variant,
261
- width: be ?? Y.width
255
+ total: ge,
256
+ triggerId: Oe,
257
+ triggerNode: Re,
258
+ typeahead: Xe ? !1 : _e ?? J.typeahead,
259
+ typeaheadTimeout: ve ?? J.typeaheadTimeout,
260
+ variant: be ?? J.variant,
261
+ width: xe ?? J.width
262
262
  };
263
- return /* @__PURE__ */ C(ie.Provider, {
263
+ return /* @__PURE__ */ C(ae.Provider, {
264
264
  value: ht,
265
265
  children: i
266
266
  });
267
267
  }
268
268
  //#endregion
269
269
  //#region src/select/select-collection.ts
270
- var V = "[data-part='item']";
271
- function H(e) {
272
- return e === null ? [] : [...e.querySelectorAll(V)];
270
+ var B = "[data-part='item']";
271
+ function V(e) {
272
+ return e === null ? [] : [...e.querySelectorAll(B)];
273
273
  }
274
- var U = (e) => e.dataset.value ?? "", W = (e) => e.dataset.disabled === void 0, le = (e) => e.dataset.textValue ?? e.querySelector("[data-part='label']")?.textContent?.trim() ?? e.textContent?.trim() ?? "";
275
- function ue(e) {
276
- let t = H(e).filter(W);
274
+ var H = (e) => e.dataset.value ?? "", U = (e) => e.dataset.disabled === void 0, ue = (e) => e.dataset.textValue ?? e.querySelector("[data-part='label']")?.textContent?.trim() ?? e.textContent?.trim() ?? "";
275
+ function de(e) {
276
+ let t = V(e).filter(U);
277
277
  return {
278
278
  elements: t,
279
- labels: t.map(le)
279
+ labels: t.map(ue)
280
280
  };
281
281
  }
282
- function G(e, t, n, r) {
283
- let i = H(e);
282
+ function W(e, t, n, r) {
283
+ let i = V(e);
284
284
  if (i.length === 0) return null;
285
- let a = N({
286
- enabled: i.map(W),
287
- from: t === null ? -1 : i.findIndex((e) => U(e) === t),
285
+ let a = k({
286
+ enabled: i.map(U),
287
+ from: t === null ? -1 : i.findIndex((e) => H(e) === t),
288
288
  intent: n,
289
289
  loop: r
290
290
  });
291
- return a === -1 ? null : U(i[a]);
291
+ return a === -1 ? null : H(i[a]);
292
292
  }
293
- function de(e, t, n, r) {
293
+ function fe(e, t, n, r) {
294
294
  if (n === "none") return null;
295
295
  if (n === "selected") {
296
- let n = H(e).find((e) => t.includes(U(e)) && W(e));
297
- return n === void 0 ? G(e, null, "first", r) : U(n);
296
+ let n = V(e).find((e) => t.includes(H(e)) && U(e));
297
+ return n === void 0 ? W(e, null, "first", r) : H(n);
298
298
  }
299
- return G(e, null, n, r);
299
+ return W(e, null, n, r);
300
300
  }
301
- function fe(e, t) {
301
+ function pe(e, t) {
302
302
  if (e === null || t === null) return;
303
- let n = H(e).find((e) => U(e) === t);
304
- n !== void 0 && P(n, e);
303
+ let n = V(e).find((e) => H(e) === t);
304
+ n !== void 0 && A(n, e);
305
305
  }
306
306
  //#endregion
307
307
  //#region src/select/select-parts.tsx
308
- function K(e, t) {
308
+ function G(e, t) {
309
309
  return (n) => {
310
310
  e?.(n), n.defaultPrevented || t(n);
311
311
  };
312
312
  }
313
- function q(e, t, n) {
313
+ function K(e, t, n) {
314
314
  if (e === null) return;
315
315
  let r = d(document.body).filter((e) => t === null || !t.contains(e)), i = r.indexOf(e);
316
316
  ((i === -1 ? void 0 : r[i + (n ? -1 : 1)]) ?? e).focus({ preventScroll: !0 });
317
317
  }
318
- function pe(e, ...t) {
318
+ function me(e, ...t) {
319
319
  for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
320
320
  }
321
- function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
322
- let f = z(), p = a(), h = p?.registerControl;
321
+ function q({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
322
+ let f = R(), p = a(), h = p?.registerControl;
323
323
  g(() => h?.(), [h]);
324
324
  let [_, ee] = x(null), [v, y] = x(null), T = b(!1);
325
325
  g(() => {
@@ -338,7 +338,7 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
338
338
  f.setTriggerNode(_);
339
339
  }, [_, f]), g(() => {
340
340
  if (!f.typeahead) return;
341
- let e = A({ timeout: f.typeaheadTimeout });
341
+ let e = M({ timeout: f.typeaheadTimeout });
342
342
  return O.current = e, () => {
343
343
  e.destroy(), O.current = null;
344
344
  };
@@ -346,8 +346,8 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
346
346
  if (!f.open || f.contentNode === null) return;
347
347
  let e = D.current;
348
348
  if (D.current = null, e === null || O.current === null) return;
349
- let { elements: t, labels: n } = ue(f.contentNode), r = O.current.match(e, n, -1);
350
- r !== -1 && f.setHighlighted(U(t[r]), "keyboard");
349
+ let { elements: t, labels: n } = de(f.contentNode), r = O.current.match(e, n, -1);
350
+ r !== -1 && f.setHighlighted(H(t[r]), "keyboard");
351
351
  }, [
352
352
  f,
353
353
  f.contentNode,
@@ -355,16 +355,16 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
355
355
  ]);
356
356
  let k = (e, t) => {
357
357
  f.entry.current = e, f.setOpen(!0, "keyboard", t);
358
- }, j = (e, t) => {
359
- let n = G(f.contentNode, f.highlighted, e, f.loop);
358
+ }, A = (e, t) => {
359
+ let n = W(f.contentNode, f.highlighted, e, f.loop);
360
360
  n !== null && f.setHighlighted(n, "keyboard", t);
361
- }, M = (e, t) => {
361
+ }, j = (e, t) => {
362
362
  if (f.highlighted === null) {
363
363
  t && f.setOpen(!1, "select", e);
364
364
  return;
365
365
  }
366
366
  f.toggle(f.highlighted, "keyboard", e), t && f.setOpen(!1, "select", e);
367
- }, N = (e) => {
367
+ }, ne = (e) => {
368
368
  if (f.disabled || f.readOnly) return;
369
369
  let t = e.altKey;
370
370
  if (!f.open) {
@@ -386,7 +386,7 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
386
386
  e.preventDefault(), k("last", e.nativeEvent);
387
387
  return;
388
388
  }
389
- if (!e.ctrlKey && !e.metaKey && !t && ne(e.key)) {
389
+ if (!e.ctrlKey && !e.metaKey && !t && N(e.key)) {
390
390
  if (f.search) {
391
391
  e.preventDefault(), f.setQuery(e.key, "keyboard", e.nativeEvent), k("first", e.nativeEvent);
392
392
  return;
@@ -397,52 +397,52 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
397
397
  }
398
398
  switch (e.key) {
399
399
  case "ArrowDown":
400
- e.preventDefault(), j("next", e.nativeEvent);
400
+ e.preventDefault(), A("next", e.nativeEvent);
401
401
  return;
402
402
  case "ArrowUp":
403
- e.preventDefault(), t ? M(e.nativeEvent, !0) : j("previous", e.nativeEvent);
403
+ e.preventDefault(), t ? j(e.nativeEvent, !0) : A("previous", e.nativeEvent);
404
404
  return;
405
405
  case "Home":
406
- e.preventDefault(), j("first", e.nativeEvent);
406
+ e.preventDefault(), A("first", e.nativeEvent);
407
407
  return;
408
408
  case "End":
409
- e.preventDefault(), j("last", e.nativeEvent);
409
+ e.preventDefault(), A("last", e.nativeEvent);
410
410
  return;
411
411
  case "PageDown":
412
- e.preventDefault(), j("pageDown", e.nativeEvent);
412
+ e.preventDefault(), A("pageDown", e.nativeEvent);
413
413
  return;
414
414
  case "PageUp":
415
- e.preventDefault(), j("pageUp", e.nativeEvent);
415
+ e.preventDefault(), A("pageUp", e.nativeEvent);
416
416
  return;
417
417
  case "Enter":
418
- e.preventDefault(), M(e.nativeEvent, f.closeOnSelect);
418
+ e.preventDefault(), j(e.nativeEvent, f.closeOnSelect);
419
419
  return;
420
420
  case " ":
421
- e.preventDefault(), M(e.nativeEvent, !f.multiple && f.closeOnSelect);
421
+ e.preventDefault(), j(e.nativeEvent, !f.multiple && f.closeOnSelect);
422
422
  return;
423
423
  case "Escape":
424
424
  e.preventDefault(), f.setOpen(!1, "escape", e.nativeEvent);
425
425
  return;
426
426
  case "Tab":
427
- M(e.nativeEvent, !0);
427
+ j(e.nativeEvent, !0);
428
428
  return;
429
429
  }
430
- if (!f.typeahead || O.current === null || e.ctrlKey || e.metaKey || t || !ne(e.key, O.current.query.length > 0)) return;
430
+ if (!f.typeahead || O.current === null || e.ctrlKey || e.metaKey || t || !N(e.key, O.current.query.length > 0)) return;
431
431
  e.preventDefault();
432
- let { elements: n, labels: r } = ue(f.contentNode), i = n.findIndex((e) => U(e) === f.highlighted), a = O.current.match(e.key, r, i);
433
- a !== -1 && f.setHighlighted(U(n[a]), "keyboard");
434
- }, P = (e) => {
432
+ let { elements: n, labels: r } = de(f.contentNode), i = n.findIndex((e) => H(e) === f.highlighted), a = O.current.match(e.key, r, i);
433
+ a !== -1 && f.setHighlighted(H(n[a]), "keyboard");
434
+ }, re = (e) => {
435
435
  let t = T.current;
436
436
  if (T.current = !1, e.detail > 0 && !t) {
437
437
  e.currentTarget.focus({ preventScroll: !0 });
438
438
  return;
439
439
  }
440
440
  f.disabled || f.readOnly || (f.entry.current = "selected", f.setOpen(!f.open, "pointer", e.nativeEvent));
441
- }, re = (e) => {
441
+ }, ie = (e) => {
442
442
  f.clear("clear", e.nativeEvent), _?.focus({ preventScroll: !0 });
443
- }, F = m((e) => {
444
- ee(e), pe(e, s);
445
- }, [s]), I = [d["aria-describedby"], p?.describedBy].filter(Boolean).join(" "), L = f.clearable && f.selection.length > 0 && !f.disabled && !f.readOnly, R = {
443
+ }, P = m((e) => {
444
+ ee(e), me(e, s);
445
+ }, [s]), F = [d["aria-describedby"], p?.describedBy].filter(Boolean).join(" "), I = f.clearable && f.selection.length > 0 && !f.disabled && !f.readOnly, L = {
446
446
  className: t,
447
447
  style: u,
448
448
  "data-part": "root",
@@ -460,7 +460,7 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
460
460
  ...f.required ? { "data-required": "" } : {},
461
461
  ...f.loading ? { "data-loading": "" } : {},
462
462
  ...E ? { "data-narrow": "" } : {}
463
- }, ie = f.multiple && f.selection.length > 0 ? /* @__PURE__ */ C(o, {
463
+ }, ae = f.multiple && f.selection.length > 0 ? /* @__PURE__ */ C(o, {
464
464
  disabled: f.disabled || f.readOnly,
465
465
  frame: v,
466
466
  labelFor: f.labelFor,
@@ -470,12 +470,12 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
470
470
  },
471
471
  removeLabel: (e) => f.t("remove", { label: e }),
472
472
  values: f.selection
473
- }) : null, B = /* @__PURE__ */ w(S, { children: [
473
+ }) : null, z = /* @__PURE__ */ w(S, { children: [
474
474
  /* @__PURE__ */ C("button", {
475
475
  ...d,
476
476
  "aria-activedescendant": f.open && !f.search && f.highlighted !== null ? f.optionId(f.highlighted) : void 0,
477
477
  "aria-controls": f.open ? f.contentId : void 0,
478
- "aria-describedby": I === "" ? void 0 : I,
478
+ "aria-describedby": F === "" ? void 0 : F,
479
479
  "aria-expanded": f.open,
480
480
  "aria-haspopup": f.search ? "dialog" : "listbox",
481
481
  "aria-invalid": f.invalid ? !0 : void 0,
@@ -486,19 +486,19 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
486
486
  "data-part-trigger": "",
487
487
  disabled: f.disabled,
488
488
  id: f.triggerId,
489
- onClick: K(d.onClick, P),
490
- onKeyDown: K(d.onKeyDown, N),
491
- ref: F,
489
+ onClick: G(d.onClick, re),
490
+ onKeyDown: G(d.onKeyDown, ne),
491
+ ref: P,
492
492
  role: "combobox",
493
493
  type: "button",
494
494
  children: e
495
495
  }),
496
- ie,
497
- L ? /* @__PURE__ */ C("button", {
496
+ ae,
497
+ I ? /* @__PURE__ */ C("button", {
498
498
  "aria-label": f.t("clear"),
499
499
  "data-part": "clear",
500
500
  "data-part-clear": "",
501
- onClick: re,
501
+ onClick: ie,
502
502
  type: "button",
503
503
  children: /* @__PURE__ */ C(r, { children: /* @__PURE__ */ C(n, { name: "x" }) })
504
504
  }) : null,
@@ -514,19 +514,19 @@ function J({ children: e, className: t, ref: s, render: c, style: u, ...d }) {
514
514
  "data-part-arrow": "",
515
515
  children: /* @__PURE__ */ C(r, { children: /* @__PURE__ */ C(n, { name: "chevron-down" }) })
516
516
  }),
517
- /* @__PURE__ */ C(me, {})
517
+ /* @__PURE__ */ C(he, {})
518
518
  ] });
519
519
  return c === void 0 ? /* @__PURE__ */ C("div", {
520
- ...R,
520
+ ...L,
521
521
  ref: y,
522
- children: B
522
+ children: z
523
523
  }) : c({
524
- ...R,
525
- children: B
524
+ ...L,
525
+ children: z
526
526
  });
527
527
  }
528
- function me() {
529
- let e = z(), [t, n] = x(null), { restore: r } = e;
528
+ function he() {
529
+ let e = R(), [t, n] = x(null), { restore: r } = e;
530
530
  return g(() => {
531
531
  let e = t?.form;
532
532
  if (e == null) return;
@@ -564,8 +564,8 @@ function me() {
564
564
  }, t))]
565
565
  });
566
566
  }
567
- function he({ children: e, placeholder: t, ...n }) {
568
- let r = z(), i = r.selection.map((e) => r.labelFor(e)), a = i.filter((e) => e !== void 0), o = r.selection.length > 0 && a.length < r.selection.length, s = (() => {
567
+ function ge({ children: e, placeholder: t, ...n }) {
568
+ let r = R(), i = r.selection.map((e) => r.labelFor(e)), a = i.filter((e) => e !== void 0), o = r.selection.length > 0 && a.length < r.selection.length, s = (() => {
569
569
  if (e !== void 0) return e(r.selection, a);
570
570
  if (r.selection.length === 0) return t;
571
571
  let n = i[0] ?? r.selection[0];
@@ -582,9 +582,9 @@ function he({ children: e, placeholder: t, ...n }) {
582
582
  children: s
583
583
  });
584
584
  }
585
- function ge({ icon: e, ref: t, render: i, ...a }) {
586
- let o = z(), s = (e, t) => {
587
- let n = G(o.contentNode, o.highlighted, e, o.loop);
585
+ function _e({ icon: e, ref: t, render: i, ...a }) {
586
+ let o = R(), s = (e, t) => {
587
+ let n = W(o.contentNode, o.highlighted, e, o.loop);
588
588
  n !== null && o.setHighlighted(n, "keyboard", t);
589
589
  }, c = (e, t) => {
590
590
  if (o.highlighted !== null && o.toggle(o.highlighted, "keyboard", e), t) {
@@ -614,7 +614,7 @@ function ge({ icon: e, ref: t, render: i, ...a }) {
614
614
  e.preventDefault(), o.query !== "" && o.setQuery("", "clear", e.nativeEvent);
615
615
  return;
616
616
  case "Tab":
617
- e.preventDefault(), c(e.nativeEvent, !0), q(o.triggerNode, e.currentTarget.closest("[data-part='positioner']"), e.shiftKey);
617
+ e.preventDefault(), c(e.nativeEvent, !0), K(o.triggerNode, e.currentTarget.closest("[data-part='positioner']"), e.shiftKey);
618
618
  return;
619
619
  }
620
620
  }, f = {
@@ -634,11 +634,11 @@ function ge({ icon: e, ref: t, render: i, ...a }) {
634
634
  "aria-label": a["aria-label"] ?? o.t("search"),
635
635
  autoComplete: "off",
636
636
  id: a.id ?? o.searchId,
637
- onChange: K(a.onChange, (e) => o.setQuery(e.target.value, "keyboard", e.nativeEvent)),
638
- onKeyDown: K(a.onKeyDown, d),
637
+ onChange: G(a.onChange, (e) => o.setQuery(e.target.value, "keyboard", e.nativeEvent)),
638
+ onKeyDown: G(a.onKeyDown, d),
639
639
  placeholder: a.placeholder ?? o.t("searchPlaceholder"),
640
640
  ref: (e) => {
641
- o.setSearchNode(e), pe(e, t);
641
+ o.setSearchNode(e), me(e, t);
642
642
  },
643
643
  role: "combobox",
644
644
  spellCheck: !1,
@@ -653,18 +653,18 @@ function ge({ icon: e, ref: t, render: i, ...a }) {
653
653
  children: p
654
654
  });
655
655
  }
656
- function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status: a, ...o }) {
657
- let s = z(), [l, d] = x(null), [f, p] = x(null), [h, _] = x(null), [ee, y] = x("unmounted"), [E, D] = x(!1), [A, ne] = x(0), M = b(null), N = b(s);
658
- N.current = s, g(() => {
656
+ function ve({ children: e, empty: t, ref: n, render: r, searchProps: i, status: a, ...o }) {
657
+ let s = R(), [l, d] = x(null), [f, p] = x(null), [h, _] = x(null), [ee, y] = x("unmounted"), [E, D] = x(!1), [O, k] = x(0), A = b(null), M = b(s);
658
+ M.current = s, g(() => {
659
659
  let e = T({
660
- present: N.current.open,
660
+ present: M.current.open,
661
661
  onStatusChange: y
662
662
  });
663
- return M.current = e, y(e.status), () => {
664
- e.destroy(), M.current = null;
663
+ return A.current = e, y(e.status), () => {
664
+ e.destroy(), A.current = null;
665
665
  };
666
- }, []), g(() => M.current?.sync(s.open), [s.open]), g(() => M.current?.setNode(l), [l]), g(() => s.setContentNode(f), [s, f]);
667
- let P = s.mount === "eager" || s.mount === "lazy" && s.seen || s.open || ee !== "unmounted";
666
+ }, []), g(() => A.current?.sync(s.open), [s.open]), g(() => A.current?.setNode(l), [l]), g(() => s.setContentNode(f), [s, f]);
667
+ let N = s.mount === "eager" || s.mount === "lazy" && s.seen || s.open || ee !== "unmounted";
668
668
  g(() => {
669
669
  let e = s.triggerNode;
670
670
  if (e === null || E) return;
@@ -673,9 +673,9 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
673
673
  e.removeEventListener("focusin", t), e.removeEventListener("pointerdown", t);
674
674
  };
675
675
  }, [s.triggerNode, E]);
676
- let re = P || E;
676
+ let ie = N || E;
677
677
  v(() => {
678
- if (!re) {
678
+ if (!ie) {
679
679
  _(null);
680
680
  return;
681
681
  }
@@ -685,67 +685,67 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
685
685
  });
686
686
  return _(e.container), () => e.release();
687
687
  }, [
688
- re,
688
+ ie,
689
689
  s.portal,
690
690
  s.triggerNode
691
691
  ]);
692
- let { align: F, alignOffset: I, collisionPadding: L, flip: R, hideWhenDetached: ie, shift: B, side: ae, sideOffset: oe, strategy: se, width: ce } = s, V = b(null), U = b(0), W = m((e, t) => {
692
+ let { align: P, alignOffset: F, collisionPadding: I, flip: L, hideWhenDetached: ae, shift: z, side: oe, sideOffset: se, strategy: ce, width: le } = s, B = b(null), H = b(0), U = m((e, t) => {
693
693
  e.update().then(() => {
694
- if (V.current !== e || !N.current.open) return;
694
+ if (B.current !== e || !M.current.open) return;
695
695
  t.setAttribute("data-open", "");
696
696
  let n = t.ownerDocument.defaultView;
697
- n !== null && U.current === 0 && (U.current = n.requestAnimationFrame(() => {
698
- U.current = 0, fe(N.current.contentNode, N.current.highlighted);
697
+ n !== null && H.current === 0 && (H.current = n.requestAnimationFrame(() => {
698
+ H.current = 0, pe(M.current.contentNode, M.current.highlighted);
699
699
  }));
700
700
  });
701
701
  }, []);
702
702
  v(() => {
703
703
  if (l === null || s.triggerNode === null) return;
704
- let e = s.triggerNode.closest("[data-part='root']") ?? s.triggerNode, t = k(e, l, {
705
- align: F,
706
- alignOffset: I,
707
- boundaryPadding: L,
708
- flip: R,
709
- hideWhenDetached: ie,
710
- matchWidth: ce === "anchor",
711
- shift: B,
712
- side: ae,
713
- sideOffset: oe,
714
- strategy: se
704
+ let e = s.triggerNode.closest("[data-part='root']") ?? s.triggerNode, t = ne(e, l, {
705
+ align: P,
706
+ alignOffset: F,
707
+ boundaryPadding: I,
708
+ flip: L,
709
+ hideWhenDetached: ae,
710
+ matchWidth: le === "anchor",
711
+ shift: z,
712
+ side: oe,
713
+ sideOffset: se,
714
+ strategy: ce
715
715
  });
716
- return V.current = t, N.current.open && W(t, l), () => {
717
- t.destroy(), V.current = null, l.removeAttribute("data-open");
716
+ return B.current = t, M.current.open && U(t, l), () => {
717
+ t.destroy(), B.current = null, l.removeAttribute("data-open");
718
718
  };
719
719
  }, [
720
+ P,
720
721
  F,
721
722
  I,
722
723
  L,
723
- R,
724
- ie,
724
+ ae,
725
725
  l,
726
726
  s.triggerNode,
727
- B,
728
- ae,
727
+ z,
729
728
  oe,
730
729
  se,
731
730
  ce,
732
- W
731
+ le,
732
+ U
733
733
  ]), v(() => {
734
- let e = V.current;
734
+ let e = B.current;
735
735
  if (e !== null && l !== null) {
736
736
  if (s.open) {
737
- W(e, l);
737
+ U(e, l);
738
738
  return;
739
739
  }
740
- l.removeAttribute("data-open"), U.current !== 0 && (l.ownerDocument.defaultView?.cancelAnimationFrame(U.current), U.current = 0);
740
+ l.removeAttribute("data-open"), H.current !== 0 && (l.ownerDocument.defaultView?.cancelAnimationFrame(H.current), H.current = 0);
741
741
  }
742
742
  }, [
743
743
  l,
744
- W,
744
+ U,
745
745
  s.open
746
746
  ]), g(() => {
747
747
  if (l === null || !s.open) return;
748
- let e = [s.triggerNode].filter((e) => e !== null), t = O(l, {
748
+ let e = [s.triggerNode].filter((e) => e !== null), t = j(l, {
749
749
  branches: e,
750
750
  escape: s.closeOnEscape,
751
751
  focusOutside: !1,
@@ -753,7 +753,7 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
753
753
  outsidePress: s.closeOnOutsidePress,
754
754
  scrollLock: !1,
755
755
  onDismiss: (e) => {
756
- let t = N.current;
756
+ let t = M.current;
757
757
  if (e.reason === "escape" && t.search && t.query !== "") {
758
758
  t.setQuery("", "clear", e.source);
759
759
  return;
@@ -769,59 +769,59 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
769
769
  s.open,
770
770
  s.triggerNode
771
771
  ]), v(() => {
772
- let e = N.current;
772
+ let e = M.current;
773
773
  if (!e.open || f === null || e.entry.current === "none") return;
774
- let t = de(f, e.selection, e.entry.current, e.loop);
774
+ let t = fe(f, e.selection, e.entry.current, e.loop);
775
775
  t !== null && e.setHighlighted(t, "keyboard");
776
776
  }, [s.open, f]), v(() => {
777
- let e = H(f).length;
778
- ne((t) => t === e ? t : e);
777
+ let e = V(f).length;
778
+ k((t) => t === e ? t : e);
779
779
  }), g(() => {
780
- l?.hasAttribute("data-open") === !0 && fe(f, s.highlighted);
780
+ l?.hasAttribute("data-open") === !0 && pe(f, s.highlighted);
781
781
  }, [
782
782
  l,
783
783
  s.highlighted,
784
784
  f
785
785
  ]);
786
- let le = s.searchNode;
786
+ let ue = s.searchNode;
787
787
  g(() => {
788
- s.open && s.search && le !== null && le.focus({ preventScroll: !0 });
788
+ s.open && s.search && ue !== null && ue.focus({ preventScroll: !0 });
789
789
  }, [
790
- le,
790
+ ue,
791
791
  s.open,
792
792
  s.search
793
793
  ]);
794
- let ue = b(s.query);
794
+ let de = b(s.query);
795
795
  g(() => {
796
- s.open && s.search && f !== null && ue.current !== s.query && (ue.current = s.query, N.current.setHighlighted(G(f, null, "first", !1), "keyboard"));
796
+ s.open && s.search && f !== null && de.current !== s.query && (de.current = s.query, M.current.setHighlighted(W(f, null, "first", !1), "keyboard"));
797
797
  }, [
798
- A,
798
+ O,
799
799
  s.open,
800
800
  s.query,
801
801
  s.search,
802
802
  f
803
803
  ]);
804
- let K = s.selection.filter((e) => s.labelFor(e) === void 0), q = K.length === 0 ? null : JSON.stringify(K), [J, me] = x(null), he = b(null);
804
+ let G = s.selection.filter((e) => s.labelFor(e) === void 0), K = G.length === 0 ? null : JSON.stringify(G), [q, he] = x(null), ge = b(null);
805
805
  if (g(() => {
806
- if (J !== null) {
807
- me(null);
806
+ if (q !== null) {
807
+ he(null);
808
808
  return;
809
809
  }
810
- P || q === null || he.current === q || (he.current = q, me((s.triggerNode?.ownerDocument ?? document).createDocumentFragment()));
810
+ N || K === null || ge.current === K || (ge.current = K, he((s.triggerNode?.ownerDocument ?? document).createDocumentFragment()));
811
811
  }, [
812
- J,
813
- P,
812
+ q,
813
+ N,
814
814
  s.triggerNode,
815
- q
816
- ]), !P) return J === null ? null : j(e, J);
817
- let _e = c({
818
- "data-align": F,
815
+ K
816
+ ]), !N) return q === null ? null : re(e, q);
817
+ let ve = c({
818
+ "data-align": P,
819
819
  ...s.open ? {} : { inert: !0 },
820
820
  "data-part": "positioner",
821
821
  "data-size": s.size,
822
822
  "data-ui": "select",
823
823
  "data-width": s.width
824
- }), ve = a === void 0 ? s.loading ? s.t("loading") : !s.search || A === 0 ? null : s.t("count", { count: A }) : a, ye = s.multiple && s.selection.length > 0 ? /* @__PURE__ */ C("div", {
824
+ }), ye = a === void 0 ? s.loading ? s.t("loading") : !s.search || O === 0 ? null : s.t("count", { count: O }) : a, be = s.multiple && s.selection.length > 0 ? /* @__PURE__ */ C("div", {
825
825
  "aria-hidden": "true",
826
826
  "data-part": "chosen",
827
827
  "data-part-chosen": "",
@@ -842,8 +842,8 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
842
842
  })
843
843
  })
844
844
  }, String(e)))
845
- }) : null, be = /* @__PURE__ */ w(S, { children: [
846
- ye,
845
+ }) : null, xe = /* @__PURE__ */ w(S, { children: [
846
+ be,
847
847
  e,
848
848
  s.loading ? /* @__PURE__ */ C("div", {
849
849
  "aria-hidden": "true",
@@ -862,7 +862,7 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
862
862
  "data-loading": ""
863
863
  }) }, e))
864
864
  }) : null,
865
- !s.loading && A === 0 ? /* @__PURE__ */ C("div", {
865
+ !s.loading && O === 0 ? /* @__PURE__ */ C("div", {
866
866
  "data-part": "empty",
867
867
  "data-part-empty": "",
868
868
  children: t ?? s.t("empty")
@@ -873,43 +873,43 @@ function _e({ children: e, empty: t, ref: n, render: r, searchProps: i, status:
873
873
  "data-part-status": "",
874
874
  ...s.loading ? { "data-loading": "" } : {},
875
875
  role: "status",
876
- children: ve
876
+ children: ye
877
877
  }) : null
878
- ] }), Y = {
878
+ ] }), J = {
879
879
  "aria-busy": s.loading ? !0 : void 0,
880
880
  "aria-multiselectable": s.multiple ? !0 : void 0
881
- }, X = /* @__PURE__ */ C("div", {
882
- ..._e,
881
+ }, Y = /* @__PURE__ */ C("div", {
882
+ ...ve,
883
883
  ref: (e) => {
884
- d(e), pe(e, n);
884
+ d(e), me(e, n);
885
885
  },
886
886
  children: /* @__PURE__ */ C("div", {
887
887
  ...o,
888
- ...u(s.search ? {} : Y, "part", "content"),
888
+ ...u(s.search ? {} : J, "part", "content"),
889
889
  "aria-labelledby": o["aria-label"] === void 0 ? s.triggerId : void 0,
890
890
  "data-loading": s.loading ? "" : void 0,
891
891
  ...s.search ? { "data-search": "" } : {},
892
892
  id: s.contentId,
893
893
  ref: p,
894
894
  role: s.search ? "dialog" : "listbox",
895
- children: s.search ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(ge, { ...i }), /* @__PURE__ */ C("div", {
896
- ...u(Y, "part", "list"),
895
+ children: s.search ? /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(_e, { ...i }), /* @__PURE__ */ C("div", {
896
+ ...u(J, "part", "list"),
897
897
  "aria-labelledby": s.triggerId,
898
898
  id: s.listId,
899
899
  role: "listbox",
900
- children: be
901
- })] }) : be
900
+ children: xe
901
+ })] }) : xe
902
902
  })
903
- }), xe = r === void 0 ? X : r({
904
- ..._e,
903
+ }), Se = r === void 0 ? Y : r({
904
+ ...ve,
905
905
  children: e
906
906
  });
907
- return h === null ? xe : j(xe, h);
907
+ return h === null ? Se : re(Se, h);
908
908
  }
909
909
  //#endregion
910
910
  //#region src/select/select-items.tsx
911
- function ve({ children: e, description: t, disabled: i = !1, icon: a, position: o, ref: c, textValue: l, value: d, ...f }) {
912
- let p = z(), m = b(null), h = b(null);
911
+ function ye({ children: e, description: t, disabled: i = !1, icon: a, position: o, ref: c, textValue: l, value: d, ...f }) {
912
+ let p = R(), m = b(null), h = b(null);
913
913
  g(() => {
914
914
  if (m.current === null) return;
915
915
  let e = l ?? m.current.querySelector("[data-part='label']")?.textContent?.trim() ?? "";
@@ -922,7 +922,7 @@ function ve({ children: e, description: t, disabled: i = !1, icon: a, position:
922
922
  ]);
923
923
  let _ = l ?? (typeof e == "string" ? e : void 0), ee = y(() => {
924
924
  if (!p.search || !p.highlightMatch || p.query === "" || _ === void 0) return e;
925
- let t = re(_, p.query, { locale: p.locale });
925
+ let t = ie(_, p.query, { locale: p.locale });
926
926
  return t.length === 0 ? e : /* @__PURE__ */ C(s, {
927
927
  ranges: t,
928
928
  text: _
@@ -992,8 +992,8 @@ function ve({ children: e, description: t, disabled: i = !1, icon: a, position:
992
992
  ]
993
993
  });
994
994
  }
995
- function ye({ children: e, label: t, ...n }) {
996
- let r = `${_()}group`, { query: i } = z(), [a, o] = x(null), [s, c] = x(!1);
995
+ function be({ children: e, label: t, ...n }) {
996
+ let r = `${_()}group`, { query: i } = R(), [a, o] = x(null), [s, c] = x(!1);
997
997
  return g(() => {
998
998
  a !== null && c(a.querySelector("[data-part='item']") === null);
999
999
  }, [a, i]), /* @__PURE__ */ w("div", {
@@ -1010,7 +1010,7 @@ function ye({ children: e, label: t, ...n }) {
1010
1010
  }), e]
1011
1011
  });
1012
1012
  }
1013
- function be(e) {
1013
+ function xe(e) {
1014
1014
  return /* @__PURE__ */ C("div", {
1015
1015
  "data-part": "separator",
1016
1016
  "data-part-separator": "",
@@ -1019,4 +1019,4 @@ function be(e) {
1019
1019
  });
1020
1020
  }
1021
1021
  //#endregion
1022
- export { ge as a, ce as c, R as d, L as f, _e as i, z as l, ve as n, J as o, be as r, he as s, ye as t, F as u };
1022
+ export { _e as a, le as c, L as d, I as f, ve as i, R as l, ye as n, q as o, xe as r, ge as s, be as t, P as u };