@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
package/dist/cascader.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./cascader-47GYpojH.js";
1
+ import { a as e, i as t, n, r, t as i } from "./cascader-DUiUVxBt.js";
2
2
  export { r as CASCADER_FALLBACK, i as Cascader, t as CascaderDefaultsProvider, n as CascaderPanel, e as useCascaderDefaults };
@@ -1,7 +1,7 @@
1
1
  import { n as e, t } from "./icon-D04-_QFA.js";
2
- import { b as n, f as r } from "./field-CSSHwGq_.js";
3
- import { n as i } from "./checkbox-group-DDlz-UF4.js";
4
- import { r as ee } from "./field-group-DeBTueJW.js";
2
+ import { b as n, f as r } from "./field-BjF0c0U9.js";
3
+ import { n as i } from "./checkbox-group-DZZbowG-.js";
4
+ import { r as ee } from "./field-group-Ctwd3EUR.js";
5
5
  import { keyedProps as a } from "@slotted/core/selector-key";
6
6
  import { createControllable as o } from "@slotted/core/state";
7
7
  import { createContext as s, useContext as c, useEffect as l, useId as u, useLayoutEffect as te, useRef as d, useState as f } from "react";
@@ -1,5 +1,5 @@
1
- import { b as e, f as t, h as n } from "./field-CSSHwGq_.js";
2
- import { r } from "./field-group-DeBTueJW.js";
1
+ import { b as e, f as t, h as n } from "./field-BjF0c0U9.js";
2
+ import { r } from "./field-group-Ctwd3EUR.js";
3
3
  import { keyedProps as i } from "@slotted/core/selector-key";
4
4
  import { createControllable as a } from "@slotted/core/state";
5
5
  import { createContext as o, useContext as s, useEffect as c, useState as l } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./checkbox-group-DDlz-UF4.js";
1
+ import { i as e, n as t, r as n, t as r } from "./checkbox-group-DZZbowG-.js";
2
2
  export { r as CheckboxGroup, n as CheckboxGroupDefaultsProvider, t as useCheckboxGroup, e as useCheckboxGroupDefaults };
package/dist/checkbox.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./checkbox-Dw9R1CGR.js";
1
+ import { n as e, r as t, t as n } from "./checkbox-D67PWyL0.js";
2
2
  export { n as Checkbox, e as CheckboxDefaultsProvider, t as useCheckboxDefaults };
@@ -1,8 +1,8 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
- import { _ as r, h as i, m as a, n as o, t as s } from "./menu-parts-7F8syoFE.js";
4
- import { b as c } from "./field-CSSHwGq_.js";
5
- import { t as l } from "./text-field-RGXN7zNu.js";
3
+ import { _ as r, h as i, m as a, n as o, t as s } from "./menu-parts-DNQDoJnd.js";
4
+ import { b as c } from "./field-BjF0c0U9.js";
5
+ import { t as l } from "./text-field-DEm3MEe2.js";
6
6
  import { a as u, d, f, l as p, r as m, t as h } from "./popover-BfEn2wdZ.js";
7
7
  import { withSelectorKey as g } from "@slotted/core/selector-key";
8
8
  import { createControllable as _ } from "@slotted/core/state";
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./color-picker-BbyW5ALf.js";
1
+ import { a as e, c as t, d as n, f as r, i, l as a, m as o, n as s, o as c, p as l, r as u, s as d, t as f, u as p } from "./color-picker-DP8MjvXk.js";
2
2
  export { f as ColorField, s as ColorPicker, u as ColorPickerArea, i as ColorPickerChannel, e as ColorPickerContrast, l as ColorPickerDefaultsProvider, c as ColorPickerEyedropper, d as ColorPickerFormat, t as ColorPickerGamut, a as ColorPickerInput, p as ColorPickerPresets, n as ColorPickerRow, r as ColorPickerSwatch, o as useColorPickerDefaults };
@@ -1,10 +1,10 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
- import { _ as r, c as i, n as a, t as o } from "./menu-parts-7F8syoFE.js";
3
+ import { _ as r, c as i, n as a, t as o } from "./menu-parts-DNQDoJnd.js";
4
4
  import { d as s, f as c, s as l } from "./drawer-Du1aC1px.js";
5
5
  import { n as u } from "./icon-button-DERKFHX1.js";
6
- import { t as d } from "./checkbox-Dw9R1CGR.js";
7
- import { t as f } from "./text-field-RGXN7zNu.js";
6
+ import { t as d } from "./checkbox-D67PWyL0.js";
7
+ import { t as f } from "./text-field-DEm3MEe2.js";
8
8
  import { a as p, f as m, l as h, p as g } from "./popover-BfEn2wdZ.js";
9
9
  import { t as _ } from "./visually-hidden-BUSrFZ1_.js";
10
10
  import { keyedProps as ee, withSelectorKey as v } from "@slotted/core/selector-key";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./column-manager-Bz0bb4mq.js";
1
+ import { a as e, i as t, n, r, t as i } from "./column-manager-C3iL_I5T.js";
2
2
  export { i as ColumnManager, t as ColumnManagerProvider, n as ColumnManagerRoot, r as ColumnManagerTrigger, e as useColumnManagerDefaults };
@@ -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 "./highlight-9lRPIZ9O.js";
6
6
  import { keyedProps as s, selectorKeyProps as c, withSelectorKey as l } from "@slotted/core/selector-key";
7
7
  import { createControllable as u } from "@slotted/core/state";
@@ -10,13 +10,13 @@ import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
10
10
  import { createPresence as ee } from "@slotted/core/presence";
11
11
  import { comboboxMessages as w } from "@slotted/core/i18n";
12
12
  import { createPortalRoot as te, setPortalContainer as T } from "@slotted/core/portal";
13
- import { createDismissableLayer as ne, pressOrigin as E } from "@slotted/core/dismissable-layer";
13
+ import { createFilter as E, moveIndex as D, revealWithin as O } from "@slotted/core/collection";
14
+ import { createDismissableLayer as k, pressOrigin as ne } from "@slotted/core/dismissable-layer";
14
15
  import { createPositioner as re } from "@slotted/core/positioner";
15
16
  import { createPortal as ie } from "react-dom";
16
- import { createFilter as ae, moveIndex as D, revealWithin as O } from "@slotted/core/collection";
17
- import { matchRanges as k } from "@slotted/core/highlight";
17
+ import { matchRanges as A } from "@slotted/core/highlight";
18
18
  //#region src/combobox/combobox-defaults.tsx
19
- var A = {
19
+ var j = {
20
20
  align: "start",
21
21
  alignOffset: 0,
22
22
  allowsCustomValue: !1,
@@ -47,12 +47,12 @@ var A = {
47
47
  strategy: "absolute",
48
48
  variant: "outline",
49
49
  width: "content"
50
- }, j = d(A);
51
- function M() {
52
- return p(j);
50
+ }, M = d(j);
51
+ function N() {
52
+ return p(M);
53
53
  }
54
- function N({ children: e, container: t, ...n }) {
55
- let r = M();
54
+ function P({ children: e, container: t, ...n }) {
55
+ let r = N();
56
56
  m(() => {
57
57
  if (t !== void 0) return T(t), () => T(null);
58
58
  }, [t]);
@@ -88,44 +88,44 @@ function N({ children: e, container: t, ...n }) {
88
88
  variant: n.variant ?? r.variant,
89
89
  width: n.width ?? r.width
90
90
  };
91
- return /* @__PURE__ */ S(j.Provider, {
91
+ return /* @__PURE__ */ S(M.Provider, {
92
92
  value: i,
93
93
  children: e
94
94
  });
95
95
  }
96
96
  //#endregion
97
97
  //#region src/combobox/combobox.tsx
98
- var oe = d(void 0);
99
- function P() {
100
- let e = p(oe);
98
+ var ae = d(void 0);
99
+ function F() {
100
+ let e = p(ae);
101
101
  if (e === void 0) throw Error("ComboboxInput, ComboboxContent and every option have to be inside a Combobox.");
102
102
  return e;
103
103
  }
104
- var F = (e) => "options" in e;
104
+ var oe = (e) => "options" in e;
105
105
  function se(e) {
106
- return e === void 0 ? [] : e.flatMap((e) => F(e) ? e.options : [e]);
106
+ return e === void 0 ? [] : e.flatMap((e) => oe(e) ? e.options : [e]);
107
107
  }
108
- function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, autoHighlight: s, children: c, clearable: l, closeOnEscape: d, closeOnOutsidePress: p, closeOnSelect: m, collisionPadding: _, onCreate: x, defaultHighlightedValue: C = null, defaultInputValue: ee = "", defaultOpen: te = !1, defaultValue: T = null, disabled: ne, filter: E, flip: re, form: ie, fullWidth: D, hideWhenDetached: k, highlightedValue: A, highlightMatch: j, inputValue: N, invalid: P, items: F, loading: ce, locale: le, loop: I, messages: L, mount: R, name: z, onHighlightedValueChange: B, onInputValueChange: ue, onInputReset: V, onLoadMore: H, onOpenChange: de, onValueChange: U, open: W, openOn: fe, portal: pe, readOnly: me, ref: he, required: ge, shift: _e, side: ve, sideOffset: ye, size: be, strategy: xe, total: Se, value: Ce, variant: we, width: Te }) {
109
- let G = M(), K = a(), Ee = t(w, L), De = e(), Oe = le ?? De, ke = h(), Ae = `${ke}listbox`, je = `${ke}input`, [Me, Ne] = b(te), [Pe, Fe] = b(T), [Ie, Le] = b(ee), [Re, ze] = b(C), [Be, Ve] = b(null), [q, He] = b(null), Ue = ne ?? K?.disabled ?? G.disabled, We = me ?? K?.readOnly ?? G.readOnly, J = (W ?? Me) && !Ue, Y = Ce === void 0 ? Pe : Ce, X = N ?? Ie, Ge = A === void 0 ? Re : A, Ke = y(J);
108
+ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, autoHighlight: s, children: c, clearable: l, closeOnEscape: d, closeOnOutsidePress: p, closeOnSelect: m, collisionPadding: _, onCreate: x, defaultHighlightedValue: C = null, defaultInputValue: ee = "", defaultOpen: te = !1, defaultValue: T = null, disabled: D, filter: k, flip: ne, form: re, fullWidth: ie, hideWhenDetached: A, highlightedValue: j, highlightMatch: M, inputValue: P, invalid: F, items: oe, loading: ce, locale: le, loop: I, messages: L, mount: R, name: z, onHighlightedValueChange: B, onInputValueChange: ue, onInputReset: V, onLoadMore: H, onOpenChange: de, onValueChange: U, open: W, openOn: fe, portal: pe, readOnly: me, ref: he, required: ge, shift: _e, side: ve, sideOffset: ye, size: be, strategy: xe, total: Se, value: Ce, variant: we, width: Te }) {
109
+ let G = N(), K = a(), Ee = t(w, L), De = e(), Oe = le ?? De, ke = h(), Ae = `${ke}listbox`, je = `${ke}input`, [Me, Ne] = b(te), [Pe, Fe] = b(T), [Ie, Le] = b(ee), [Re, ze] = b(C), [Be, Ve] = b(null), [q, He] = b(null), Ue = D ?? K?.disabled ?? G.disabled, We = me ?? K?.readOnly ?? G.readOnly, J = (W ?? Me) && !Ue, Y = Ce === void 0 ? Pe : Ce, X = P ?? Ie, Ge = j === void 0 ? Re : j, Ke = y(J);
110
110
  J && (Ke.current = !0);
111
111
  let qe = y("none"), [Je, Ye] = b(null), Xe = y(!1), Ze = y(/* @__PURE__ */ new Map()), [Qe, $e] = b(0), et = v(() => {
112
112
  let e = /* @__PURE__ */ new Map();
113
- for (let t of se(F)) e.set(t.value, t.label);
113
+ for (let t of se(oe)) e.set(t.value, t.label);
114
114
  return e;
115
- }, [F]), tt = f((e, t) => {
115
+ }, [oe]), tt = f((e, t) => {
116
116
  Ze.current.get(e) !== t && (Ze.current.set(e, t), $e((e) => e + 1));
117
- }, []), nt = f((e) => et.get(e) ?? Ze.current.get(e), [et, Qe]), rt = f((e) => `${ke}option-${encodeURIComponent(e)}`, [ke]), Z = X === (Y === null ? void 0 : nt(Y)) ? "" : X, it = v(() => ae({ locale: Oe }), [Oe]), at = f((e) => Z === "" || E === null ? !0 : E === void 0 ? it.contains(e, Z) : E(e, Z), [
117
+ }, []), nt = f((e) => et.get(e) ?? Ze.current.get(e), [et, Qe]), rt = f((e) => `${ke}option-${encodeURIComponent(e)}`, [ke]), Z = X === (Y === null ? void 0 : nt(Y)) ? "" : X, it = v(() => E({ locale: Oe }), [Oe]), at = f((e) => Z === "" || k === null ? !0 : k === void 0 ? it.contains(e, Z) : k(e, Z), [
118
118
  it,
119
- E,
119
+ k,
120
120
  Z
121
121
  ]), Q = y({
122
122
  currentHighlighted: Ge,
123
123
  currentInput: X,
124
124
  currentOpen: J,
125
125
  currentValue: Y,
126
- highlightedValue: A,
126
+ highlightedValue: j,
127
127
  inputNode: Be,
128
- inputValue: N,
128
+ inputValue: P,
129
129
  onHighlightedValueChange: B,
130
130
  onInputValueChange: ue,
131
131
  onCreate: x,
@@ -139,9 +139,9 @@ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, a
139
139
  currentInput: X,
140
140
  currentOpen: J,
141
141
  currentValue: Y,
142
- highlightedValue: A,
142
+ highlightedValue: j,
143
143
  inputNode: Be,
144
- inputValue: N,
144
+ inputValue: P,
145
145
  onHighlightedValueChange: B,
146
146
  onInputValueChange: ue,
147
147
  onCreate: x,
@@ -262,16 +262,16 @@ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, a
262
262
  create: ft,
263
263
  disabled: Ue,
264
264
  entry: qe,
265
- flip: re ?? G.flip,
266
- form: ie,
267
- fullWidth: D ?? G.fullWidth,
268
- hideWhenDetached: k ?? G.hideWhenDetached,
265
+ flip: ne ?? G.flip,
266
+ form: re,
267
+ fullWidth: ie ?? G.fullWidth,
268
+ hideWhenDetached: A ?? G.hideWhenDetached,
269
269
  highlighted: Ge,
270
- highlightMatch: j ?? G.highlightMatch,
270
+ highlightMatch: M ?? G.highlightMatch,
271
271
  inputId: je,
272
272
  inputNode: Be,
273
273
  inputValue: X,
274
- invalid: P ?? K?.invalid ?? G.invalid,
274
+ invalid: F ?? K?.invalid ?? G.invalid,
275
275
  labelFor: nt,
276
276
  loading: ce ?? G.loading,
277
277
  locale: Oe,
@@ -309,7 +309,7 @@ function ce({ align: n, alignOffset: r, allowsCustomValue: i, autocomplete: o, a
309
309
  wantsCompletion: Xe,
310
310
  width: Te ?? G.width
311
311
  };
312
- return /* @__PURE__ */ S(oe.Provider, {
312
+ return /* @__PURE__ */ S(ae.Provider, {
313
313
  value: mt,
314
314
  children: c
315
315
  });
@@ -365,7 +365,7 @@ function W(e, ...t) {
365
365
  for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
366
366
  }
367
367
  function fe({ ref: e, render: t, ...o }) {
368
- let s = P(), u = a(), [d, p] = b(null);
368
+ let s = F(), u = a(), [d, p] = b(null);
369
369
  m(() => {
370
370
  s.setInputNode(d);
371
371
  }, [s, d]), _(() => {
@@ -444,15 +444,15 @@ function fe({ ref: e, render: t, ...o }) {
444
444
  }, T = (e) => {
445
445
  let t = e.relatedTarget;
446
446
  if (t instanceof Node && s.contentNode?.contains(t) === !0) return;
447
- let n = E(d?.ownerDocument);
447
+ let n = ne(d?.ownerDocument);
448
448
  n instanceof Node && s.contentNode?.contains(n) === !0 || (s.settleInput(e), s.open && s.setOpen(!1, "blur"));
449
- }, ne = (e) => {
449
+ }, E = (e) => {
450
450
  s.clear("clear", e.nativeEvent), d?.focus({ preventScroll: !0 });
451
- }, re = (e) => {
451
+ }, D = (e) => {
452
452
  s.disabled || s.readOnly || (s.entry.current = "selected", s.setOpen(!s.open, "pointer", e.nativeEvent), d?.focus({ preventScroll: !0 }));
453
- }, ie = f((t) => {
453
+ }, O = f((t) => {
454
454
  p(t), W(t, e);
455
- }, [e]), ae = [o["aria-describedby"], u?.describedBy].filter(Boolean).join(" "), D = s.clearable && s.inputValue !== "" && !s.disabled && !s.readOnly, O = {
455
+ }, [e]), k = [o["aria-describedby"], u?.describedBy].filter(Boolean).join(" "), re = s.clearable && s.inputValue !== "" && !s.disabled && !s.readOnly, ie = {
456
456
  "data-part": "root",
457
457
  ...c("part", "root"),
458
458
  "data-size": s.size,
@@ -466,13 +466,13 @@ function fe({ ref: e, render: t, ...o }) {
466
466
  ...s.invalid ? { "data-invalid": "" } : {},
467
467
  ...s.required ? { "data-required": "" } : {},
468
468
  ...s.loading ? { "data-loading": "" } : {}
469
- }, k = /* @__PURE__ */ C(x, { children: [
469
+ }, A = /* @__PURE__ */ C(x, { children: [
470
470
  /* @__PURE__ */ S("input", {
471
471
  ...l(o, "part", "input"),
472
472
  "aria-activedescendant": s.open && s.highlighted !== null ? s.optionId(s.highlighted) : void 0,
473
473
  "aria-autocomplete": s.autocomplete,
474
474
  "aria-controls": s.open ? s.contentId : void 0,
475
- "aria-describedby": ae === "" ? void 0 : ae,
475
+ "aria-describedby": k === "" ? void 0 : k,
476
476
  "aria-expanded": s.open,
477
477
  "aria-invalid": s.invalid ? !0 : void 0,
478
478
  "aria-readonly": s.readOnly ? !0 : void 0,
@@ -484,17 +484,17 @@ function fe({ ref: e, render: t, ...o }) {
484
484
  onFocus: U(o.onFocus, w),
485
485
  onKeyDown: U(o.onKeyDown, y),
486
486
  readOnly: s.readOnly,
487
- ref: ie,
487
+ ref: O,
488
488
  required: s.required,
489
489
  role: "combobox",
490
490
  type: "text",
491
491
  value: s.completion ?? s.inputValue
492
492
  }),
493
- D ? /* @__PURE__ */ S("button", {
493
+ re ? /* @__PURE__ */ S("button", {
494
494
  "aria-label": s.t("clear"),
495
495
  "data-part": "clear",
496
496
  "data-part-clear": "",
497
- onClick: ne,
497
+ onClick: E,
498
498
  type: "button",
499
499
  children: /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S(n, { name: "x" }) })
500
500
  }) : null,
@@ -503,7 +503,7 @@ function fe({ ref: e, render: t, ...o }) {
503
503
  "data-part": "trigger",
504
504
  "data-part-trigger": "",
505
505
  disabled: s.disabled,
506
- onClick: re,
506
+ onClick: D,
507
507
  tabIndex: -1,
508
508
  type: "button",
509
509
  children: s.loading ? /* @__PURE__ */ S("span", {
@@ -542,28 +542,28 @@ function fe({ ref: e, render: t, ...o }) {
542
542
  })
543
543
  ] });
544
544
  return t === void 0 ? /* @__PURE__ */ S("div", {
545
- ...O,
546
- children: k
545
+ ...ie,
546
+ children: A
547
547
  }) : t({
548
- ...O,
549
- children: k
548
+ ...ie,
549
+ children: A
550
550
  });
551
551
  }
552
552
  function pe(e, t) {
553
553
  return e !== null && e.querySelector(`[data-part='item'][data-value="${CSS.escape(t)}"]`)?.hasAttribute("data-create") === !0;
554
554
  }
555
555
  function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
556
- let o = P(), [c, u] = b(null), [d, p] = b(null), [h, g] = b(null), [v, x] = b("unmounted"), [w, T] = b(!1), [E, ae] = b(0), D = y(null), O = y(null), k = y(o);
557
- k.current = o, m(() => {
556
+ let o = F(), [c, u] = b(null), [d, p] = b(null), [h, g] = b(null), [v, x] = b("unmounted"), [w, T] = b(!1), [E, D] = b(0), O = y(null), ne = y(null), A = y(o);
557
+ A.current = o, m(() => {
558
558
  let e = ee({
559
- present: k.current.open,
559
+ present: A.current.open,
560
560
  onStatusChange: x
561
561
  });
562
- return D.current = e, x(e.status), () => {
563
- e.destroy(), D.current = null;
562
+ return O.current = e, x(e.status), () => {
563
+ e.destroy(), O.current = null;
564
564
  };
565
- }, []), m(() => D.current?.sync(o.open), [o.open]), m(() => D.current?.setNode(c), [c]), m(() => o.setContentNode(d), [o, d]);
566
- let A = o.mount === "eager" || o.mount === "lazy" && o.seen || o.open || v !== "unmounted";
565
+ }, []), m(() => O.current?.sync(o.open), [o.open]), m(() => O.current?.setNode(c), [c]), m(() => o.setContentNode(d), [o, d]);
566
+ let j = o.mount === "eager" || o.mount === "lazy" && o.seen || o.open || v !== "unmounted";
567
567
  m(() => {
568
568
  let e = o.inputNode;
569
569
  if (e === null || w) return;
@@ -572,9 +572,9 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
572
572
  e.removeEventListener("focusin", t), e.removeEventListener("pointerdown", t);
573
573
  };
574
574
  }, [o.inputNode, w]);
575
- let j = A || w;
575
+ let M = j || w;
576
576
  _(() => {
577
- if (!j) {
577
+ if (!M) {
578
578
  g(null);
579
579
  return;
580
580
  }
@@ -586,25 +586,25 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
586
586
  }, [
587
587
  o.inputNode,
588
588
  o.portal,
589
- j
589
+ M
590
590
  ]);
591
- let { align: M, alignOffset: N, collisionPadding: oe, flip: F, hideWhenDetached: se, shift: ce, side: le, sideOffset: R, strategy: z, width: B } = o, V = y(null), H = y(0), U = f((e, t) => {
591
+ let { align: N, alignOffset: P, collisionPadding: ae, flip: oe, hideWhenDetached: se, shift: ce, side: le, sideOffset: R, strategy: z, width: B } = o, V = y(null), H = y(0), U = f((e, t) => {
592
592
  e.update().then(() => {
593
- if (V.current !== e || !k.current.open) return;
593
+ if (V.current !== e || !A.current.open) return;
594
594
  t.setAttribute("data-open", "");
595
595
  let n = t.ownerDocument.defaultView;
596
596
  n !== null && H.current === 0 && (H.current = n.requestAnimationFrame(() => {
597
- H.current = 0, de(k.current.contentNode, k.current.highlighted);
597
+ H.current = 0, de(A.current.contentNode, A.current.highlighted);
598
598
  }));
599
599
  });
600
600
  }, []);
601
601
  if (_(() => {
602
602
  if (c === null || o.inputNode === null) return;
603
603
  let e = o.inputNode.closest("[data-part='root']") ?? o.inputNode, t = re(e, c, {
604
- align: M,
605
- alignOffset: N,
606
- boundaryPadding: oe,
607
- flip: F,
604
+ align: N,
605
+ alignOffset: P,
606
+ boundaryPadding: ae,
607
+ flip: oe,
608
608
  hideWhenDetached: se,
609
609
  matchWidth: B === "anchor",
610
610
  shift: ce,
@@ -612,15 +612,15 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
612
612
  sideOffset: R,
613
613
  strategy: z
614
614
  });
615
- return V.current = t, k.current.open && U(t, c), () => {
615
+ return V.current = t, A.current.open && U(t, c), () => {
616
616
  t.destroy(), V.current = null, c.removeAttribute("data-open");
617
617
  };
618
618
  }, [
619
- M,
620
619
  N,
621
- oe,
620
+ P,
621
+ ae,
622
622
  o.inputNode,
623
- F,
623
+ oe,
624
624
  se,
625
625
  c,
626
626
  ce,
@@ -644,7 +644,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
644
644
  o.open
645
645
  ]), m(() => {
646
646
  if (c === null || !o.open) return;
647
- let e = [o.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = ne(c, {
647
+ let e = [o.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = k(c, {
648
648
  branches: e,
649
649
  escape: o.closeOnEscape,
650
650
  focusOutside: !1,
@@ -652,7 +652,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
652
652
  outsidePress: o.closeOnOutsidePress,
653
653
  scrollLock: !1,
654
654
  onDismiss: (e) => {
655
- k.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
655
+ A.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
656
656
  }
657
657
  });
658
658
  return () => t.destroy();
@@ -664,9 +664,9 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
664
664
  c
665
665
  ]), _(() => {
666
666
  let e = I(d).filter((e) => e.dataset.create === void 0).length;
667
- ae((t) => t === e ? t : e);
667
+ D((t) => t === e ? t : e);
668
668
  }), _(() => {
669
- let e = k.current;
669
+ let e = A.current;
670
670
  if (e.open && d !== null) {
671
671
  if (e.entry.current !== "none") {
672
672
  let t = ue(d, e.value, e.entry.current, e.loop) ?? (e.autoHighlight ? ue(d, null, "first", e.loop) : null);
@@ -687,7 +687,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
687
687
  o.highlighted,
688
688
  d
689
689
  ]), _(() => {
690
- let e = k.current;
690
+ let e = A.current;
691
691
  if (!e.wantsCompletion.current || d === null) return;
692
692
  e.wantsCompletion.current = !1;
693
693
  let t = he(d, e.inputValue);
@@ -697,7 +697,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
697
697
  E,
698
698
  d
699
699
  ]), m(() => {
700
- let e = O.current, t = d, n = o.onLoadMore;
700
+ let e = ne.current, t = d, n = o.onLoadMore;
701
701
  if (e === null || t === null || n === void 0 || typeof IntersectionObserver != "function") return;
702
702
  let r = new IntersectionObserver((e) => {
703
703
  e.some((e) => e.isIntersecting) && n();
@@ -707,9 +707,9 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
707
707
  o.onLoadMore,
708
708
  E,
709
709
  d
710
- ]), !A) return null;
710
+ ]), !j) return null;
711
711
  let fe = s({
712
- "data-align": M,
712
+ "data-align": N,
713
713
  ...o.open ? {} : { inert: !0 },
714
714
  "data-part": "positioner",
715
715
  "data-size": o.size,
@@ -730,7 +730,7 @@ function me({ children: e, empty: t, ref: n, render: r, status: i, ...a }) {
730
730
  role: "listbox",
731
731
  children: [
732
732
  e,
733
- /* @__PURE__ */ S("div", { ref: O }),
733
+ /* @__PURE__ */ S("div", { ref: ne }),
734
734
  !o.loading && E === 0 && o.canCreate && o.query !== "" ? /* @__PURE__ */ S("div", {
735
735
  "data-create": "",
736
736
  "data-part": "item",
@@ -798,7 +798,7 @@ function he(e, t) {
798
798
  //#endregion
799
799
  //#region src/combobox/combobox-items.tsx
800
800
  function ge({ children: e, description: t, disabled: i = !1, icon: a, position: s, ref: c, textValue: u, value: d, ...f }) {
801
- let p = P(), [h, g] = b(null), _ = y(null), x = u ?? (typeof e == "string" ? e : void 0);
801
+ let p = F(), [h, g] = b(null), _ = y(null), x = u ?? (typeof e == "string" ? e : void 0);
802
802
  m(() => {
803
803
  if (h === null) return;
804
804
  let e = x ?? h.querySelector("[data-part='label']")?.textContent?.trim() ?? "";
@@ -811,7 +811,7 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
811
811
  ]);
812
812
  let ee = v(() => {
813
813
  if (!p.highlightMatch || p.query === "" || x === void 0) return e;
814
- let t = k(x, p.query, { locale: p.locale });
814
+ let t = A(x, p.query, { locale: p.locale });
815
815
  return t.length === 0 ? e : /* @__PURE__ */ S(o, {
816
816
  ranges: t,
817
817
  text: x
@@ -826,9 +826,9 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
826
826
  if (x !== void 0 && !p.matches(x)) return null;
827
827
  let w = p.value === d, te = p.highlighted === d, T = (e) => {
828
828
  i || p.setHighlighted(d, "pointer", e.nativeEvent);
829
- }, ne = (e) => {
830
- f.onPointerDown?.(e), !e.defaultPrevented && e.preventDefault();
831
829
  }, E = (e) => {
830
+ f.onPointerDown?.(e), !e.defaultPrevented && e.preventDefault();
831
+ }, D = (e) => {
832
832
  i || (p.select(d, "pointer", e.nativeEvent), p.setInputValue(p.labelFor(d) ?? x ?? d, "select", e.nativeEvent), p.closeOnSelect && p.setOpen(!1, "select", e.nativeEvent), p.inputNode?.focus({ preventScroll: !0 }));
833
833
  };
834
834
  return /* @__PURE__ */ C("div", {
@@ -843,8 +843,8 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
843
843
  ...w ? { "data-selected": "" } : {},
844
844
  ...te ? { "data-current": "" } : {},
845
845
  id: f.id ?? p.optionId(d),
846
- onClick: E,
847
- onPointerDown: ne,
846
+ onClick: D,
847
+ onPointerDown: E,
848
848
  onPointerEnter: T,
849
849
  ref: (e) => {
850
850
  g(e), typeof c == "function" ? c(e) : c != null && (c.current = e);
@@ -875,7 +875,7 @@ function ge({ children: e, description: t, disabled: i = !1, icon: a, position:
875
875
  });
876
876
  }
877
877
  function _e({ children: e, label: t, ...n }) {
878
- let r = `${h()}group`, { query: i } = P(), [a, o] = b(null), [s, c] = b(!1);
878
+ let r = `${h()}group`, { query: i } = F(), [a, o] = b(null), [s, c] = b(!1);
879
879
  return m(() => {
880
880
  a !== null && c(a.querySelector("[data-part='item']") === null);
881
881
  }, [a, i]), /* @__PURE__ */ C("div", {
@@ -901,4 +901,4 @@ function ve(e) {
901
901
  });
902
902
  }
903
903
  //#endregion
904
- export { fe as a, A as c, me as i, N as l, ge as n, ce as o, ve as r, P as s, _e as t, M as u };
904
+ export { fe as a, j as c, me as i, P as l, ge as n, ce as o, ve as r, F as s, _e as t, N as u };
package/dist/combobox.js CHANGED
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./combobox-BA2nvbnA.js";
1
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c, u as l } from "./combobox-BIi7grOR.js";
2
2
  export { t as COMBOBOX_FALLBACK, a as Combobox, n as ComboboxContent, r as ComboboxDefaultsProvider, c as ComboboxGroup, e as ComboboxInput, i as ComboboxItem, o as ComboboxSeparator, s as useCombobox, l as useComboboxDefaults };
@@ -13,9 +13,9 @@ import { createContext as f, useCallback as p, useContext as ne, useEffect as m,
13
13
  import { Fragment as ae, jsx as v, jsxs as y } from "react/jsx-runtime";
14
14
  import { commandPaletteMessages as oe } from "@slotted/core/i18n";
15
15
  import { createPortalRoot as se } from "@slotted/core/portal";
16
- import { canonicalKey as ce, isEditableTarget as le, matchesShortcut as ue, parseShortcut as de } from "@slotted/core/keys";
17
- import { getLiveAnnouncer as fe } from "@slotted/core/live-announcer";
18
- import { moveIndex as pe } from "@slotted/core/collection";
16
+ import { moveIndex as ce } from "@slotted/core/collection";
17
+ import { canonicalKey as le, isEditableTarget as ue, matchesShortcut as de, parseShortcut as fe } from "@slotted/core/keys";
18
+ import { getLiveAnnouncer as pe } from "@slotted/core/live-announcer";
19
19
  import { createCommandRanker as me, pushRecent as he, resolveCommands as ge } from "@slotted/core/commands";
20
20
  //#region src/command-palette/command-palette-defaults.tsx
21
21
  var b = {
@@ -53,9 +53,9 @@ function ye(e, t) {
53
53
  };
54
54
  }
55
55
  function be(e, t) {
56
- let n = de(e);
56
+ let n = fe(e);
57
57
  if (n.length === 1) return n[0]?.map((e) => {
58
- let n = ce(e);
58
+ let n = le(e);
59
59
  if (n === "mod") return t === "mac" ? "Meta" : "Control";
60
60
  if (n === "ctrl") return "Control";
61
61
  let r = n ?? e;
@@ -181,7 +181,7 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
181
181
  if (!P) return;
182
182
  let e = I === null ? -1 : K.indexOf(I);
183
183
  if (e !== -1 && q[e] === !0) return;
184
- let t = O.autoHighlight ? pe({
184
+ let t = O.autoHighlight ? ce({
185
185
  enabled: q,
186
186
  from: -1,
187
187
  intent: "first",
@@ -257,7 +257,7 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
257
257
  }
258
258
  c();
259
259
  }, [vt]), St = p((e) => e === null ? void 0 : G.rows.find((t) => t.id === e), [G]), Z = (e, t) => {
260
- let n = I === null ? -1 : K.indexOf(I), r = e === "pageDown" || e === "pageUp", i = pe({
260
+ let n = I === null ? -1 : K.indexOf(I), r = e === "pageDown" || e === "pageUp", i = ce({
261
261
  enabled: q,
262
262
  from: n,
263
263
  intent: e,
@@ -328,13 +328,13 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
328
328
  m(() => {
329
329
  let e = O.hotkey;
330
330
  if (e === null || j || O.disabled) return;
331
- let t = de(e)[0]?.every((e) => ![
331
+ let t = fe(e)[0]?.every((e) => ![
332
332
  "mod",
333
333
  "meta",
334
334
  "ctrl",
335
335
  "alt"
336
- ].includes(ce(e) ?? "")), n = (n) => {
337
- if (ue(n, e, M) && !(t === !0 && le(n))) {
336
+ ].includes(le(e) ?? "")), n = (n) => {
337
+ if (de(n, e, M) && !(t === !0 && ue(n))) {
338
338
  if (n.preventDefault(), z.current.currentOpen) {
339
339
  Q();
340
340
  return;
@@ -353,7 +353,7 @@ function xe({ autoHighlight: o, children: f, className: ne, clearOnClose: b, clo
353
353
  ]);
354
354
  let wt = O.loading ? k("loading") : bt === null ? k("count", { count: G.count }) : k("error", { message: bt });
355
355
  m(() => {
356
- P && fe(U.current?.ownerDocument).announce(wt);
356
+ P && pe(U.current?.ownerDocument).announce(wt);
357
357
  }, [P, wt]), m(() => {
358
358
  Y(null);
359
359
  }, [F, L]), ie(Ze, () => ({
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./command-palette-DEKWsUFR.js";
1
+ import { a as e, i as t, n, r, t as i } from "./command-palette-BxbhO044.js";
2
2
  export { r as COMMAND_PALETTE_FALLBACK, i as CommandPalette, t as CommandPaletteDefaultsProvider, n as CommandPaletteTrigger, e as useCommandPaletteDefaults };
@@ -1,4 +1,4 @@
1
- import { _ as e, b as t } from "./menu-parts-7F8syoFE.js";
1
+ import { _ as e, b as t } from "./menu-parts-DNQDoJnd.js";
2
2
  import { keyedProps as n } from "@slotted/core/selector-key";
3
3
  import { createContext as r, useCallback as i, useContext as a, useEffect as o, useImperativeHandle as s, useRef as c, useState as l } from "react";
4
4
  import { jsx as u } from "react/jsx-runtime";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "./context-menu-CfEEqDKr.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./context-menu-BJyDD17g.js";
2
2
  export { t as CONTEXT_MENU_FALLBACK, a as ContextMenu, e as ContextMenuDefaultsProvider, n as ContextMenuTrigger, i as useContextMenu, r as useContextMenuDefaults };
@@ -1,6 +1,6 @@
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
- import { b as i } from "./field-CSSHwGq_.js";
3
+ import { b as i } from "./field-BjF0c0U9.js";
4
4
  import { keyedProps as a, selectorKeyProps as o, withSelectorKey as ee } from "@slotted/core/selector-key";
5
5
  import { createControllable as te } from "@slotted/core/state";
6
6
  import { createContext as s, createElement as ne, useCallback as c, useContext as re, useEffect as l, useImperativeHandle as ie, useLayoutEffect as ae, useMemo as oe, useRef as u, useState as d } from "react";
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./currency-field-CTzBMH8g.js";
1
+ import { i as e, n as t, r as n, t as r } from "./currency-field-CAO2ZolW.js";
2
2
  export { r as CurrencyField, n as CurrencyFieldDefaultsProvider, t as CurrencyFieldScrub, e as useCurrencyFieldDefaults };
@@ -1,6 +1,6 @@
1
1
  import { r as e } from "./i18n-D7xXDd8-.js";
2
2
  import { n as t, t as n } from "./icon-D04-_QFA.js";
3
- import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-7F8syoFE.js";
3
+ import { _ as r, c as i, d as a, g as o, n as s, p as c, t as l } from "./menu-parts-DNQDoJnd.js";
4
4
  /* empty css */
5
5
  import { n as u, t as d } from "./icon-button-DERKFHX1.js";
6
6
  import { a as f, c as p, i as m, o as ee, s as h } from "./card-DRmq8_5e.js";
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-WinSY-q3.js";
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "./dashboard-grid-De6al1Mj.js";
2
2
  export { t as DASHBOARD_GRID_FALLBACK, i as DashboardGrid, e as DashboardGridDefaultsProvider, n as DashboardWidget, r as useDashboardGridDefaults, a as usePersistedDashboardLayout };