@sprawlify/primitives 0.0.98 → 0.0.99

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 (227) hide show
  1. package/dist/{aria-hidden-UJAPt1aA.cjs → aria-hidden-BAGrxNHt.cjs} +1 -1
  2. package/dist/{aria-hidden-P3kaF8gG.mjs → aria-hidden-BX4SWNE_.mjs} +1 -1
  3. package/dist/aria-hidden.cjs +2 -2
  4. package/dist/aria-hidden.mjs +2 -2
  5. package/dist/{auto-resize-DzPXdyR-.cjs → auto-resize-B1BDDnp1.cjs} +1 -1
  6. package/dist/{auto-resize-Bjzuo5Lh.mjs → auto-resize-CN2vAzdj.mjs} +1 -1
  7. package/dist/auto-resize.cjs +2 -2
  8. package/dist/auto-resize.mjs +2 -2
  9. package/dist/collection.d.cts +2 -2
  10. package/dist/collection.d.mts +2 -2
  11. package/dist/{core-DfVajPnu.mjs → core-BmIEKqtP.mjs} +1 -1
  12. package/dist/{core-BiGlJ-4W.cjs → core-nBg9RC_y.cjs} +1 -1
  13. package/dist/core.cjs +2 -2
  14. package/dist/core.mjs +2 -2
  15. package/dist/{dismissable-DPXx0m0m.cjs → dismissable-ChwcJMHk.cjs} +2 -2
  16. package/dist/{dismissable-BAYaXwxZ.mjs → dismissable-DWfZGIA7.mjs} +2 -2
  17. package/dist/dismissable.cjs +3 -3
  18. package/dist/dismissable.mjs +3 -3
  19. package/dist/{dom-query-6Wt-Tikf.cjs → dom-query-Bd63cRVF.cjs} +26 -6
  20. package/dist/{dom-query-dX8Dakb4.mjs → dom-query-s2ESLR2U.mjs} +15 -7
  21. package/dist/dom-query.cjs +3 -1
  22. package/dist/dom-query.d.cts +8 -2
  23. package/dist/dom-query.d.mts +8 -2
  24. package/dist/dom-query.mjs +2 -2
  25. package/dist/{focus-trap-Cd09JaUn.mjs → focus-trap-DzBvBlTH.mjs} +1 -1
  26. package/dist/{focus-trap-ClCNF7kY.cjs → focus-trap-fucc6OU_.cjs} +1 -1
  27. package/dist/focus-trap.cjs +2 -2
  28. package/dist/focus-trap.mjs +2 -2
  29. package/dist/{focus-visible-CqHoOOjw.cjs → focus-visible-75XTctXf.cjs} +1 -1
  30. package/dist/{focus-visible-CSuBQ5QZ.mjs → focus-visible-D5qBaAOn.mjs} +1 -1
  31. package/dist/focus-visible.cjs +2 -2
  32. package/dist/focus-visible.mjs +2 -2
  33. package/dist/{i18n-utils-bHwTSOWi.cjs → i18n-utils-DB-lUfrr.cjs} +1 -1
  34. package/dist/{i18n-utils-BsXTdcWB.mjs → i18n-utils-oWZyUib_.mjs} +1 -1
  35. package/dist/i18n-utils.cjs +2 -2
  36. package/dist/i18n-utils.mjs +2 -2
  37. package/dist/{interact-outside-C-8lOhpV.mjs → interact-outside-2qkUnl4N.mjs} +1 -1
  38. package/dist/{interact-outside-DRaFGdMg.cjs → interact-outside-Cx4J0EBf.cjs} +1 -1
  39. package/dist/interact-outside.cjs +2 -2
  40. package/dist/interact-outside.mjs +2 -2
  41. package/dist/{list-collection-C0swT4Wu.d.cts → list-collection-Cjgbx_9l.d.cts} +1 -1
  42. package/dist/{list-collection-AgReIMJ0.d.mts → list-collection-IF510iNl.d.mts} +1 -1
  43. package/dist/machines/accordion/index.cjs +2 -2
  44. package/dist/machines/accordion/index.d.cts +1 -1
  45. package/dist/machines/accordion/index.d.mts +1 -1
  46. package/dist/machines/accordion/index.mjs +2 -2
  47. package/dist/machines/angle-slider/index.cjs +2 -2
  48. package/dist/machines/angle-slider/index.d.cts +1 -1
  49. package/dist/machines/angle-slider/index.d.mts +1 -1
  50. package/dist/machines/angle-slider/index.mjs +2 -2
  51. package/dist/machines/aspect-ratio/index.cjs +2 -2
  52. package/dist/machines/aspect-ratio/index.mjs +2 -2
  53. package/dist/machines/async-list/index.cjs +2 -2
  54. package/dist/machines/async-list/index.mjs +2 -2
  55. package/dist/machines/avatar/index.cjs +2 -2
  56. package/dist/machines/avatar/index.mjs +2 -2
  57. package/dist/machines/bottom-sheet/index.cjs +7 -7
  58. package/dist/machines/bottom-sheet/index.d.cts +1 -1
  59. package/dist/machines/bottom-sheet/index.d.mts +1 -1
  60. package/dist/machines/bottom-sheet/index.mjs +7 -7
  61. package/dist/machines/carousel/index.cjs +3 -3
  62. package/dist/machines/carousel/index.d.cts +1 -1
  63. package/dist/machines/carousel/index.d.mts +1 -1
  64. package/dist/machines/carousel/index.mjs +3 -3
  65. package/dist/machines/cascade-select/index.cjs +5 -5
  66. package/dist/machines/cascade-select/index.d.cts +2 -2
  67. package/dist/machines/cascade-select/index.d.mts +2 -2
  68. package/dist/machines/cascade-select/index.mjs +5 -5
  69. package/dist/machines/checkbox/index.cjs +3 -3
  70. package/dist/machines/checkbox/index.mjs +3 -3
  71. package/dist/machines/clipboard/index.cjs +2 -2
  72. package/dist/machines/clipboard/index.d.cts +1 -1
  73. package/dist/machines/clipboard/index.d.mts +1 -1
  74. package/dist/machines/clipboard/index.mjs +2 -2
  75. package/dist/machines/collapsible/index.cjs +2 -2
  76. package/dist/machines/collapsible/index.d.cts +1 -1
  77. package/dist/machines/collapsible/index.d.mts +1 -1
  78. package/dist/machines/collapsible/index.mjs +2 -2
  79. package/dist/machines/color-picker/index.cjs +5 -5
  80. package/dist/machines/color-picker/index.d.cts +1 -1
  81. package/dist/machines/color-picker/index.d.mts +1 -1
  82. package/dist/machines/color-picker/index.mjs +5 -5
  83. package/dist/machines/combobox/index.cjs +5 -5
  84. package/dist/machines/combobox/index.d.cts +2 -2
  85. package/dist/machines/combobox/index.d.mts +2 -2
  86. package/dist/machines/combobox/index.mjs +5 -5
  87. package/dist/machines/date-picker/index.cjs +52 -16
  88. package/dist/machines/date-picker/index.d.cts +1 -1
  89. package/dist/machines/date-picker/index.d.mts +1 -1
  90. package/dist/machines/date-picker/index.mjs +53 -17
  91. package/dist/machines/dialog/index.cjs +7 -7
  92. package/dist/machines/dialog/index.d.cts +1 -1
  93. package/dist/machines/dialog/index.d.mts +1 -1
  94. package/dist/machines/dialog/index.mjs +7 -7
  95. package/dist/machines/dropdown-menu/index.cjs +5 -5
  96. package/dist/machines/dropdown-menu/index.d.cts +1 -1
  97. package/dist/machines/dropdown-menu/index.d.mts +1 -1
  98. package/dist/machines/dropdown-menu/index.mjs +5 -5
  99. package/dist/machines/editable/index.cjs +3 -3
  100. package/dist/machines/editable/index.d.cts +1 -1
  101. package/dist/machines/editable/index.d.mts +1 -1
  102. package/dist/machines/editable/index.mjs +3 -3
  103. package/dist/machines/file-upload/index.cjs +3 -3
  104. package/dist/machines/file-upload/index.d.cts +1 -1
  105. package/dist/machines/file-upload/index.d.mts +1 -1
  106. package/dist/machines/file-upload/index.mjs +3 -3
  107. package/dist/machines/floating-panel/index.cjs +2 -2
  108. package/dist/machines/floating-panel/index.d.cts +1 -1
  109. package/dist/machines/floating-panel/index.d.mts +1 -1
  110. package/dist/machines/floating-panel/index.mjs +2 -2
  111. package/dist/machines/hover-card/index.cjs +5 -5
  112. package/dist/machines/hover-card/index.d.cts +1 -1
  113. package/dist/machines/hover-card/index.d.mts +1 -1
  114. package/dist/machines/hover-card/index.mjs +5 -5
  115. package/dist/machines/image-cropper/index.cjs +2 -2
  116. package/dist/machines/image-cropper/index.mjs +2 -2
  117. package/dist/machines/listbox/index.cjs +3 -3
  118. package/dist/machines/listbox/index.d.cts +3 -3
  119. package/dist/machines/listbox/index.d.mts +3 -3
  120. package/dist/machines/listbox/index.mjs +3 -3
  121. package/dist/machines/marquee/index.cjs +2 -2
  122. package/dist/machines/marquee/index.d.cts +3 -3
  123. package/dist/machines/marquee/index.d.mts +3 -3
  124. package/dist/machines/marquee/index.mjs +2 -2
  125. package/dist/machines/navigation-menu/index.cjs +4 -4
  126. package/dist/machines/navigation-menu/index.d.cts +1 -1
  127. package/dist/machines/navigation-menu/index.d.mts +1 -1
  128. package/dist/machines/navigation-menu/index.mjs +4 -4
  129. package/dist/machines/number-input/index.cjs +2 -2
  130. package/dist/machines/number-input/index.d.cts +1 -1
  131. package/dist/machines/number-input/index.d.mts +1 -1
  132. package/dist/machines/number-input/index.mjs +2 -2
  133. package/dist/machines/pagination/index.cjs +2 -2
  134. package/dist/machines/pagination/index.mjs +2 -2
  135. package/dist/machines/password-input/index.cjs +2 -2
  136. package/dist/machines/password-input/index.mjs +2 -2
  137. package/dist/machines/pin-input/index.cjs +2 -2
  138. package/dist/machines/pin-input/index.mjs +2 -2
  139. package/dist/machines/popover/index.cjs +8 -8
  140. package/dist/machines/popover/index.d.cts +1 -1
  141. package/dist/machines/popover/index.d.mts +1 -1
  142. package/dist/machines/popover/index.mjs +8 -8
  143. package/dist/machines/presence/index.cjs +2 -2
  144. package/dist/machines/presence/index.mjs +2 -2
  145. package/dist/machines/progress/index.cjs +2 -2
  146. package/dist/machines/progress/index.d.cts +1 -1
  147. package/dist/machines/progress/index.d.mts +1 -1
  148. package/dist/machines/progress/index.mjs +2 -2
  149. package/dist/machines/qr-code/index.cjs +2 -2
  150. package/dist/machines/qr-code/index.mjs +2 -2
  151. package/dist/machines/radio-group/index.cjs +3 -3
  152. package/dist/machines/radio-group/index.d.cts +1 -1
  153. package/dist/machines/radio-group/index.d.mts +1 -1
  154. package/dist/machines/radio-group/index.mjs +3 -3
  155. package/dist/machines/rating-group/index.cjs +2 -2
  156. package/dist/machines/rating-group/index.d.cts +1 -1
  157. package/dist/machines/rating-group/index.d.mts +1 -1
  158. package/dist/machines/rating-group/index.mjs +2 -2
  159. package/dist/machines/scroll-area/index.cjs +2 -2
  160. package/dist/machines/scroll-area/index.d.cts +1 -1
  161. package/dist/machines/scroll-area/index.d.mts +1 -1
  162. package/dist/machines/scroll-area/index.mjs +2 -2
  163. package/dist/machines/select/index.cjs +22 -8
  164. package/dist/machines/select/index.d.cts +3 -2
  165. package/dist/machines/select/index.d.mts +3 -2
  166. package/dist/machines/select/index.mjs +22 -8
  167. package/dist/machines/separator/index.cjs +2 -2
  168. package/dist/machines/separator/index.mjs +2 -2
  169. package/dist/machines/signature-pad/index.cjs +2 -2
  170. package/dist/machines/signature-pad/index.mjs +2 -2
  171. package/dist/machines/slider/index.cjs +2 -2
  172. package/dist/machines/slider/index.d.cts +1 -1
  173. package/dist/machines/slider/index.d.mts +1 -1
  174. package/dist/machines/slider/index.mjs +2 -2
  175. package/dist/machines/splitter/index.cjs +2 -2
  176. package/dist/machines/splitter/index.mjs +2 -2
  177. package/dist/machines/steps/index.cjs +2 -2
  178. package/dist/machines/steps/index.d.cts +1 -1
  179. package/dist/machines/steps/index.d.mts +1 -1
  180. package/dist/machines/steps/index.mjs +2 -2
  181. package/dist/machines/switch/index.cjs +3 -3
  182. package/dist/machines/switch/index.mjs +3 -3
  183. package/dist/machines/tabs/index.cjs +2 -2
  184. package/dist/machines/tabs/index.d.cts +1 -1
  185. package/dist/machines/tabs/index.d.mts +1 -1
  186. package/dist/machines/tabs/index.mjs +2 -2
  187. package/dist/machines/tags-input/index.cjs +4 -4
  188. package/dist/machines/tags-input/index.d.cts +1 -1
  189. package/dist/machines/tags-input/index.d.mts +1 -1
  190. package/dist/machines/tags-input/index.mjs +4 -4
  191. package/dist/machines/timer/index.cjs +2 -2
  192. package/dist/machines/timer/index.d.cts +1 -1
  193. package/dist/machines/timer/index.d.mts +1 -1
  194. package/dist/machines/timer/index.mjs +2 -2
  195. package/dist/machines/toast/index.cjs +4 -4
  196. package/dist/machines/toast/index.d.cts +1 -1
  197. package/dist/machines/toast/index.d.mts +1 -1
  198. package/dist/machines/toast/index.mjs +4 -4
  199. package/dist/machines/toggle/index.cjs +2 -2
  200. package/dist/machines/toggle/index.mjs +2 -2
  201. package/dist/machines/toggle-group/index.cjs +2 -2
  202. package/dist/machines/toggle-group/index.mjs +2 -2
  203. package/dist/machines/tooltip/index.cjs +4 -4
  204. package/dist/machines/tooltip/index.d.cts +1 -1
  205. package/dist/machines/tooltip/index.d.mts +1 -1
  206. package/dist/machines/tooltip/index.mjs +4 -4
  207. package/dist/machines/tour/index.cjs +6 -6
  208. package/dist/machines/tour/index.d.cts +1 -1
  209. package/dist/machines/tour/index.d.mts +1 -1
  210. package/dist/machines/tour/index.mjs +6 -6
  211. package/dist/machines/tree-view/index.cjs +2 -2
  212. package/dist/machines/tree-view/index.d.cts +1 -1
  213. package/dist/machines/tree-view/index.d.mts +1 -1
  214. package/dist/machines/tree-view/index.mjs +2 -2
  215. package/dist/{popper-CfOHZlHP.mjs → popper-3Bdh0pfy.mjs} +1 -1
  216. package/dist/{popper-zq1F_iY8.cjs → popper-Bca_O70s.cjs} +1 -1
  217. package/dist/popper.cjs +2 -2
  218. package/dist/popper.mjs +2 -2
  219. package/dist/{remove-scroll-B8AJyezV.cjs → remove-scroll-D9FAOapi.cjs} +1 -1
  220. package/dist/{remove-scroll-DCUb1JPX.mjs → remove-scroll-HcSiTbd5.mjs} +1 -1
  221. package/dist/{scroll-snap-De0H9CWU.mjs → scroll-snap-DfSwN3As.mjs} +1 -1
  222. package/dist/{scroll-snap-voc0pMJd.cjs → scroll-snap-Dp_2adEa.cjs} +1 -1
  223. package/dist/scroll-snap.cjs +2 -2
  224. package/dist/scroll-snap.mjs +2 -2
  225. package/dist/{selection-aObDFAzS.d.mts → selection-6urf-c8j.d.mts} +1 -1
  226. package/dist/{selection-k8FM_y4w.d.cts → selection-BmS2RDMq.d.cts} +1 -1
  227. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
- import { H as nextTick, I as scrollIntoView, L as clickIfLink, S as query, St as isOpeningInNewTab, W as raf, bt as isLeftClick, gt as isContextMenuEvent, ht as isComposingEvent, on as isAnchorElement, ut as getEventKey, vn as ariaAttr, vt as isDownloadingEvent, xn as setCaretToEnd, yn as dataAttr, z as observeAttributes } from "../../dom-query-dX8Dakb4.mjs";
2
+ import { Cn as setCaretToEnd, H as nextTick, I as scrollIntoView, L as clickIfLink, S as query, St as isLeftClick, W as raf, _t as isComposingEvent, bn as ariaAttr, bt as isDownloadingEvent, cn as isAnchorElement, ft as getEventKey, vt as isContextMenuEvent, wt as isOpeningInNewTab, xn as dataAttr, z as observeAttributes } from "../../dom-query-s2ESLR2U.mjs";
3
3
  import { At as remove, Y as match, ft as isEqual, mt as addOrRemove, rt as isBoolean, t as ensure, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
4
  import { s as ListCollection } from "../../collection-DgzidRvr.mjs";
5
- import { o as setup } from "../../core-DfVajPnu.mjs";
6
- import "../../interact-outside-C-8lOhpV.mjs";
7
- import { n as trackDismissableElement } from "../../dismissable-BAYaXwxZ.mjs";
8
- import { n as getPlacement, t as getPlacementStyles } from "../../popper-CfOHZlHP.mjs";
5
+ import { o as setup } from "../../core-BmIEKqtP.mjs";
6
+ import "../../interact-outside-2qkUnl4N.mjs";
7
+ import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
8
+ import { n as getPlacement, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
9
9
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
10
10
  //#region src/machines/combobox/combobox.anatomy.ts
11
11
  const anatomy = createAnatomy("combobox").parts("root", "clearTrigger", "content", "control", "input", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "label", "list", "positioner", "trigger");
@@ -1,14 +1,14 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("../../chunk-CKQMccvm.cjs");
3
3
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
4
- const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
4
+ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
5
5
  const require_utils = require("../../utils-ByNiZU8f.cjs");
6
- const require_core = require("../../core-BiGlJ-4W.cjs");
6
+ const require_core = require("../../core-nBg9RC_y.cjs");
7
7
  const require_date_utils = require("../../date-utils-BuJkKL09.cjs");
8
- require("../../interact-outside-DRaFGdMg.cjs");
9
- const require_dismissable = require("../../dismissable-DPXx0m0m.cjs");
8
+ require("../../interact-outside-Cx4J0EBf.cjs");
9
+ const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
10
10
  const require_live_region = require("../../live-region-TGReV9nm.cjs");
11
- const require_popper = require("../../popper-zq1F_iY8.cjs");
11
+ const require_popper = require("../../popper-Bca_O70s.cjs");
12
12
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
13
13
  let _internationalized_date = require("@internationalized/date");
14
14
  //#region src/machines/date-picker/date-picker.anatomy.ts
@@ -1487,9 +1487,13 @@ const machine = require_core.createMachine({
1487
1487
  ]
1488
1488
  },
1489
1489
  {
1490
- guard: "isMultiPicker",
1490
+ guard: and("isMultiPicker", "canSelectDate"),
1491
1491
  actions: ["setFocusedDate", "toggleSelectedDate"]
1492
1492
  },
1493
+ {
1494
+ guard: "isMultiPicker",
1495
+ actions: ["setFocusedDate"]
1496
+ },
1493
1497
  {
1494
1498
  guard: and("closeOnSelect", "isOpenControlled"),
1495
1499
  actions: [
@@ -1582,9 +1586,10 @@ const machine = require_core.createMachine({
1582
1586
  ]
1583
1587
  },
1584
1588
  {
1585
- guard: "isMultiPicker",
1589
+ guard: and("isMultiPicker", "canSelectDate"),
1586
1590
  actions: ["toggleSelectedDate"]
1587
1591
  },
1592
+ { guard: "isMultiPicker" },
1588
1593
  {
1589
1594
  guard: and("closeOnSelect", "isOpenControlled"),
1590
1595
  actions: ["selectFocusedDate", "invokeOnClose"]
@@ -1714,6 +1719,14 @@ const machine = require_core.createMachine({
1714
1719
  isRangePicker: ({ prop }) => prop("selectionMode") === "range",
1715
1720
  hasSelectedRange: ({ context }) => context.get("value").length === 2,
1716
1721
  isMultiPicker: ({ prop }) => prop("selectionMode") === "multiple",
1722
+ canSelectDate: ({ context, prop, event }) => {
1723
+ const maxSelectedDates = prop("maxSelectedDates");
1724
+ if (maxSelectedDates == null) return true;
1725
+ const existingValues = context.get("value");
1726
+ const currentValue = event.value ?? context.get("focusedValue");
1727
+ if (existingValues.some((date) => require_date_utils.isDateEqual(date, currentValue))) return true;
1728
+ return existingValues.length < maxSelectedDates;
1729
+ },
1717
1730
  shouldRestoreFocus: ({ context }) => !!context.get("restoreFocus"),
1718
1731
  isSelectingEndDate: ({ context }) => context.get("activeIndex") === 1,
1719
1732
  closeOnSelect: ({ prop }) => !!prop("closeOnSelect"),
@@ -1855,23 +1868,27 @@ const machine = require_core.createMachine({
1855
1868
  setSelectedDate(params) {
1856
1869
  const { context, event } = params;
1857
1870
  const values = Array.from(context.get("value"));
1858
- values[context.get("activeIndex")] = normalizeValue(params, event.value ?? context.get("focusedValue"));
1871
+ const activeIndex = context.get("activeIndex");
1872
+ const existingValue = values[activeIndex];
1873
+ values[activeIndex] = preserveTime(existingValue, normalizeValue(params, event.value ?? context.get("focusedValue")));
1859
1874
  context.set("value", adjustStartAndEndDate(values));
1860
1875
  },
1861
1876
  resetSelection(params) {
1862
1877
  const { context, event } = params;
1863
- const value = normalizeValue(params, event.value ?? context.get("focusedValue"));
1864
- context.set("value", [value]);
1878
+ const existingValue = context.get("value")[0];
1879
+ const newValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
1880
+ context.set("value", [preserveTime(existingValue, newValue)]);
1865
1881
  },
1866
1882
  toggleSelectedDate(params) {
1867
1883
  const { context, event } = params;
1868
1884
  const currentValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
1869
- const index = context.get("value").findIndex((date) => require_date_utils.isDateEqual(date, currentValue));
1885
+ const existingValues = context.get("value");
1886
+ const index = existingValues.findIndex((date) => require_date_utils.isDateEqual(date, currentValue));
1870
1887
  if (index === -1) {
1871
- const values = [...context.get("value"), currentValue];
1888
+ const values = [...existingValues, currentValue];
1872
1889
  context.set("value", sortDates(values));
1873
1890
  } else {
1874
- const values = Array.from(context.get("value"));
1891
+ const values = Array.from(existingValues);
1875
1892
  values.splice(index, 1);
1876
1893
  context.set("value", sortDates(values));
1877
1894
  }
@@ -1885,7 +1902,8 @@ const machine = require_core.createMachine({
1885
1902
  selectFocusedDate({ context, computed }) {
1886
1903
  const values = Array.from(context.get("value"));
1887
1904
  const activeIndex = context.get("activeIndex");
1888
- values[activeIndex] = context.get("focusedValue").copy();
1905
+ const existingValue = values[activeIndex];
1906
+ values[activeIndex] = preserveTime(existingValue, context.get("focusedValue").copy());
1889
1907
  context.set("value", adjustStartAndEndDate(values));
1890
1908
  const valueAsString = computed("valueAsString");
1891
1909
  context.set("inputValue", valueAsString[activeIndex]);
@@ -2018,15 +2036,20 @@ const machine = require_core.createMachine({
2018
2036
  getTriggerEl(scope)?.focus({ preventScroll: true });
2019
2037
  });
2020
2038
  },
2021
- focusFirstInputElement({ scope }) {
2039
+ focusFirstInputElement({ scope, event }) {
2040
+ if (event.focus === false) return;
2022
2041
  require_dom_query.raf(() => {
2023
2042
  const [inputEl] = getInputEls(scope);
2024
- inputEl?.focus({ preventScroll: true });
2043
+ (inputEl ?? getTriggerEl(scope))?.focus({ preventScroll: true });
2025
2044
  });
2026
2045
  },
2027
2046
  focusInputElement({ scope }) {
2028
2047
  require_dom_query.raf(() => {
2029
2048
  const inputEls = getInputEls(scope);
2049
+ if (inputEls.length === 0) {
2050
+ getTriggerEl(scope)?.focus({ preventScroll: true });
2051
+ return;
2052
+ }
2030
2053
  const lastIndexWithValue = inputEls.findLastIndex((inputEl) => inputEl.value !== "");
2031
2054
  const inputEl = inputEls[Math.max(lastIndexWithValue, 0)];
2032
2055
  inputEl?.focus({ preventScroll: true });
@@ -2122,6 +2145,19 @@ const normalizeValue = (ctx, value) => {
2122
2145
  });
2123
2146
  return dateValue;
2124
2147
  };
2148
+ const preserveTime = (existingDate, newDate) => {
2149
+ if (!existingDate || !("hour" in existingDate)) return newDate;
2150
+ const isZoned = "timeZone" in existingDate;
2151
+ let dateWithTime = newDate;
2152
+ if (!("hour" in newDate)) if (isZoned) dateWithTime = (0, _internationalized_date.toZoned)((0, _internationalized_date.toCalendarDateTime)(newDate), existingDate.timeZone);
2153
+ else dateWithTime = (0, _internationalized_date.toCalendarDateTime)(newDate);
2154
+ return dateWithTime.set({
2155
+ hour: existingDate.hour,
2156
+ minute: existingDate.minute,
2157
+ second: existingDate.second,
2158
+ millisecond: existingDate.millisecond
2159
+ });
2160
+ };
2125
2161
  function setFocusedValue(ctx, mixedValue) {
2126
2162
  const { context, prop, computed } = ctx;
2127
2163
  if (!mixedValue) return;
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.cj
8
8
  import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
9
9
 
10
10
  //#region src/machines/date-picker/date-picker.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "trigger" | "content" | "nextTrigger" | "prevTrigger" | "positioner" | "input" | "clearTrigger" | "view" | "table" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "trigger" | "input" | "content" | "table" | "view" | "nextTrigger" | "prevTrigger" | "positioner" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
12
12
  //#endregion
13
13
  //#region src/machines/date-picker/date-picker.types.d.ts
14
14
  type DateView = "day" | "month" | "year";
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.mj
8
8
  import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
9
9
 
10
10
  //#region src/machines/date-picker/date-picker.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "trigger" | "content" | "nextTrigger" | "prevTrigger" | "positioner" | "input" | "clearTrigger" | "view" | "table" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "trigger" | "input" | "content" | "table" | "view" | "nextTrigger" | "prevTrigger" | "positioner" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
12
12
  //#endregion
13
13
  //#region src/machines/date-picker/date-picker.types.d.ts
14
14
  type DateView = "day" | "month" | "year";
@@ -1,14 +1,14 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
- import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf, ht as isComposingEvent, mt as getNativeEvent, ot as setElementValue, ut as getEventKey, vn as ariaAttr, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
2
+ import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf, _t as isComposingEvent, bn as ariaAttr, ct as setElementValue, ft as getEventKey, gt as getNativeEvent, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
3
3
  import { N as isValueWithinRange, Y as match, g as clampValue, ht as chunk, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine, i as createGuards, s as memo } from "../../core-DfVajPnu.mjs";
4
+ import { a as createMachine, i as createGuards, s as memo } from "../../core-BmIEKqtP.mjs";
5
5
  import { A as getMonthFormatter, D as formatSelectedDate, F as isDateUnavailable, I as isNextRangeInvalid, L as isPreviousRangeInvalid, M as getUnitDuration, N as isDateEqual, P as isDateOutsideRange, R as alignDate, S as getMonthNames, W as constrainValue, _ as getYearsRange, g as getDecadeRange, i as getNextPage, j as getEndDate, k as getDayFormatter, l as getPreviousSection, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, w as getWeekDays, x as getMonthDays, y as getDaysInWeek } from "../../date-utils-DCaRa_Ry.mjs";
6
- import "../../interact-outside-C-8lOhpV.mjs";
7
- import { n as trackDismissableElement } from "../../dismissable-BAYaXwxZ.mjs";
6
+ import "../../interact-outside-2qkUnl4N.mjs";
7
+ import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
8
8
  import { t as createLiveRegion } from "../../live-region-TgEDzvS4.mjs";
9
- import { n as getPlacement, t as getPlacementStyles } from "../../popper-CfOHZlHP.mjs";
9
+ import { n as getPlacement, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
10
10
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
11
- import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate } from "@internationalized/date";
11
+ import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate, toCalendarDateTime, toZoned } from "@internationalized/date";
12
12
  //#region src/machines/date-picker/date-picker.anatomy.ts
13
13
  const anatomy = createAnatomy("date-picker").parts("clearTrigger", "content", "control", "input", "label", "monthSelect", "nextTrigger", "positioner", "presetTrigger", "prevTrigger", "rangeText", "root", "table", "tableBody", "tableCell", "tableCellTrigger", "tableHead", "tableHeader", "tableRow", "trigger", "view", "viewControl", "viewTrigger", "yearSelect");
14
14
  const parts = anatomy.build();
@@ -1485,9 +1485,13 @@ const machine = createMachine({
1485
1485
  ]
1486
1486
  },
1487
1487
  {
1488
- guard: "isMultiPicker",
1488
+ guard: and("isMultiPicker", "canSelectDate"),
1489
1489
  actions: ["setFocusedDate", "toggleSelectedDate"]
1490
1490
  },
1491
+ {
1492
+ guard: "isMultiPicker",
1493
+ actions: ["setFocusedDate"]
1494
+ },
1491
1495
  {
1492
1496
  guard: and("closeOnSelect", "isOpenControlled"),
1493
1497
  actions: [
@@ -1580,9 +1584,10 @@ const machine = createMachine({
1580
1584
  ]
1581
1585
  },
1582
1586
  {
1583
- guard: "isMultiPicker",
1587
+ guard: and("isMultiPicker", "canSelectDate"),
1584
1588
  actions: ["toggleSelectedDate"]
1585
1589
  },
1590
+ { guard: "isMultiPicker" },
1586
1591
  {
1587
1592
  guard: and("closeOnSelect", "isOpenControlled"),
1588
1593
  actions: ["selectFocusedDate", "invokeOnClose"]
@@ -1712,6 +1717,14 @@ const machine = createMachine({
1712
1717
  isRangePicker: ({ prop }) => prop("selectionMode") === "range",
1713
1718
  hasSelectedRange: ({ context }) => context.get("value").length === 2,
1714
1719
  isMultiPicker: ({ prop }) => prop("selectionMode") === "multiple",
1720
+ canSelectDate: ({ context, prop, event }) => {
1721
+ const maxSelectedDates = prop("maxSelectedDates");
1722
+ if (maxSelectedDates == null) return true;
1723
+ const existingValues = context.get("value");
1724
+ const currentValue = event.value ?? context.get("focusedValue");
1725
+ if (existingValues.some((date) => isDateEqual(date, currentValue))) return true;
1726
+ return existingValues.length < maxSelectedDates;
1727
+ },
1715
1728
  shouldRestoreFocus: ({ context }) => !!context.get("restoreFocus"),
1716
1729
  isSelectingEndDate: ({ context }) => context.get("activeIndex") === 1,
1717
1730
  closeOnSelect: ({ prop }) => !!prop("closeOnSelect"),
@@ -1853,23 +1866,27 @@ const machine = createMachine({
1853
1866
  setSelectedDate(params) {
1854
1867
  const { context, event } = params;
1855
1868
  const values = Array.from(context.get("value"));
1856
- values[context.get("activeIndex")] = normalizeValue(params, event.value ?? context.get("focusedValue"));
1869
+ const activeIndex = context.get("activeIndex");
1870
+ const existingValue = values[activeIndex];
1871
+ values[activeIndex] = preserveTime(existingValue, normalizeValue(params, event.value ?? context.get("focusedValue")));
1857
1872
  context.set("value", adjustStartAndEndDate(values));
1858
1873
  },
1859
1874
  resetSelection(params) {
1860
1875
  const { context, event } = params;
1861
- const value = normalizeValue(params, event.value ?? context.get("focusedValue"));
1862
- context.set("value", [value]);
1876
+ const existingValue = context.get("value")[0];
1877
+ const newValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
1878
+ context.set("value", [preserveTime(existingValue, newValue)]);
1863
1879
  },
1864
1880
  toggleSelectedDate(params) {
1865
1881
  const { context, event } = params;
1866
1882
  const currentValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
1867
- const index = context.get("value").findIndex((date) => isDateEqual(date, currentValue));
1883
+ const existingValues = context.get("value");
1884
+ const index = existingValues.findIndex((date) => isDateEqual(date, currentValue));
1868
1885
  if (index === -1) {
1869
- const values = [...context.get("value"), currentValue];
1886
+ const values = [...existingValues, currentValue];
1870
1887
  context.set("value", sortDates(values));
1871
1888
  } else {
1872
- const values = Array.from(context.get("value"));
1889
+ const values = Array.from(existingValues);
1873
1890
  values.splice(index, 1);
1874
1891
  context.set("value", sortDates(values));
1875
1892
  }
@@ -1883,7 +1900,8 @@ const machine = createMachine({
1883
1900
  selectFocusedDate({ context, computed }) {
1884
1901
  const values = Array.from(context.get("value"));
1885
1902
  const activeIndex = context.get("activeIndex");
1886
- values[activeIndex] = context.get("focusedValue").copy();
1903
+ const existingValue = values[activeIndex];
1904
+ values[activeIndex] = preserveTime(existingValue, context.get("focusedValue").copy());
1887
1905
  context.set("value", adjustStartAndEndDate(values));
1888
1906
  const valueAsString = computed("valueAsString");
1889
1907
  context.set("inputValue", valueAsString[activeIndex]);
@@ -2016,15 +2034,20 @@ const machine = createMachine({
2016
2034
  getTriggerEl(scope)?.focus({ preventScroll: true });
2017
2035
  });
2018
2036
  },
2019
- focusFirstInputElement({ scope }) {
2037
+ focusFirstInputElement({ scope, event }) {
2038
+ if (event.focus === false) return;
2020
2039
  raf(() => {
2021
2040
  const [inputEl] = getInputEls(scope);
2022
- inputEl?.focus({ preventScroll: true });
2041
+ (inputEl ?? getTriggerEl(scope))?.focus({ preventScroll: true });
2023
2042
  });
2024
2043
  },
2025
2044
  focusInputElement({ scope }) {
2026
2045
  raf(() => {
2027
2046
  const inputEls = getInputEls(scope);
2047
+ if (inputEls.length === 0) {
2048
+ getTriggerEl(scope)?.focus({ preventScroll: true });
2049
+ return;
2050
+ }
2028
2051
  const lastIndexWithValue = inputEls.findLastIndex((inputEl) => inputEl.value !== "");
2029
2052
  const inputEl = inputEls[Math.max(lastIndexWithValue, 0)];
2030
2053
  inputEl?.focus({ preventScroll: true });
@@ -2120,6 +2143,19 @@ const normalizeValue = (ctx, value) => {
2120
2143
  });
2121
2144
  return dateValue;
2122
2145
  };
2146
+ const preserveTime = (existingDate, newDate) => {
2147
+ if (!existingDate || !("hour" in existingDate)) return newDate;
2148
+ const isZoned = "timeZone" in existingDate;
2149
+ let dateWithTime = newDate;
2150
+ if (!("hour" in newDate)) if (isZoned) dateWithTime = toZoned(toCalendarDateTime(newDate), existingDate.timeZone);
2151
+ else dateWithTime = toCalendarDateTime(newDate);
2152
+ return dateWithTime.set({
2153
+ hour: existingDate.hour,
2154
+ minute: existingDate.minute,
2155
+ second: existingDate.second,
2156
+ millisecond: existingDate.millisecond
2157
+ });
2158
+ };
2123
2159
  function setFocusedValue(ctx, mixedValue) {
2124
2160
  const { context, prop, computed } = ctx;
2125
2161
  if (!mixedValue) return;
@@ -1,14 +1,14 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
- const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
4
- const require_aria_hidden = require("../../aria-hidden-UJAPt1aA.cjs");
3
+ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
4
+ const require_aria_hidden = require("../../aria-hidden-BAGrxNHt.cjs");
5
5
  const require_utils = require("../../utils-ByNiZU8f.cjs");
6
- const require_core = require("../../core-BiGlJ-4W.cjs");
7
- require("../../interact-outside-DRaFGdMg.cjs");
8
- const require_dismissable = require("../../dismissable-DPXx0m0m.cjs");
9
- const require_focus_trap = require("../../focus-trap-ClCNF7kY.cjs");
6
+ const require_core = require("../../core-nBg9RC_y.cjs");
7
+ require("../../interact-outside-Cx4J0EBf.cjs");
8
+ const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
9
+ const require_focus_trap = require("../../focus-trap-fucc6OU_.cjs");
10
10
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
11
- const require_remove_scroll = require("../../remove-scroll-B8AJyezV.cjs");
11
+ const require_remove_scroll = require("../../remove-scroll-D9FAOapi.cjs");
12
12
  //#region src/machines/dialog/dialog.anatomy.ts
13
13
  const anatomy = require_create_anatomy.createAnatomy("dialog").parts("trigger", "backdrop", "positioner", "content", "title", "description", "closeTrigger");
14
14
  const parts = anatomy.build();
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-ZgyqN8AD.cjs";
6
6
 
7
7
  //#region src/machines/dialog/dialog.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "positioner" | "closeTrigger" | "title" | "description" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "positioner" | "backdrop" | "closeTrigger">;
9
9
  //#endregion
10
10
  //#region src/machines/dialog/dialog.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-h14gHVbJ.mjs";
6
6
 
7
7
  //#region src/machines/dialog/dialog.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "positioner" | "closeTrigger" | "title" | "description" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "positioner" | "backdrop" | "closeTrigger">;
9
9
  //#endregion
10
10
  //#region src/machines/dialog/dialog.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -1,13 +1,13 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
- import { W as raf, Xt as getComputedStyle } from "../../dom-query-dX8Dakb4.mjs";
3
- import { t as ariaHidden } from "../../aria-hidden-P3kaF8gG.mjs";
2
+ import { Qt as getComputedStyle, W as raf } from "../../dom-query-s2ESLR2U.mjs";
3
+ import { t as ariaHidden } from "../../aria-hidden-BX4SWNE_.mjs";
4
4
  import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
5
- import { a as createMachine } from "../../core-DfVajPnu.mjs";
6
- import "../../interact-outside-C-8lOhpV.mjs";
7
- import { n as trackDismissableElement } from "../../dismissable-BAYaXwxZ.mjs";
8
- import { t as trapFocus } from "../../focus-trap-Cd09JaUn.mjs";
5
+ import { a as createMachine } from "../../core-BmIEKqtP.mjs";
6
+ import "../../interact-outside-2qkUnl4N.mjs";
7
+ import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
8
+ import { t as trapFocus } from "../../focus-trap-DzBvBlTH.mjs";
9
9
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
10
- import { t as preventBodyScroll } from "../../remove-scroll-DCUb1JPX.mjs";
10
+ import { t as preventBodyScroll } from "../../remove-scroll-HcSiTbd5.mjs";
11
11
  //#region src/machines/dialog/dialog.anatomy.ts
12
12
  const anatomy = createAnatomy("dialog").parts("trigger", "backdrop", "positioner", "content", "title", "description", "closeTrigger");
13
13
  const parts = anatomy.build();
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
- const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
3
+ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-BiGlJ-4W.cjs");
6
- require("../../interact-outside-DRaFGdMg.cjs");
7
- const require_dismissable = require("../../dismissable-DPXx0m0m.cjs");
8
- const require_popper = require("../../popper-zq1F_iY8.cjs");
5
+ const require_core = require("../../core-nBg9RC_y.cjs");
6
+ require("../../interact-outside-Cx4J0EBf.cjs");
7
+ const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
8
+ const require_popper = require("../../popper-Bca_O70s.cjs");
9
9
  const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
10
10
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
11
11
  //#region src/machines/dropdown-menu/dropdown-menu.anatomy.ts
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.cj
8
8
  import { a as Point } from "../../types-CLXYEgfm.cjs";
9
9
 
10
10
  //#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"item" | "separator" | "trigger" | "indicator" | "content" | "arrow" | "arrowTip" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "positioner" | "triggerItem">;
11
+ declare const anatomy: AnatomyInstance<"indicator" | "trigger" | "content" | "item" | "itemIndicator" | "separator" | "positioner" | "arrow" | "arrowTip" | "itemText" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
12
12
  //#endregion
13
13
  //#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
14
14
  interface OpenChangeDetails {
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.mj
8
8
  import { a as Point } from "../../types-DU764tY_.mjs";
9
9
 
10
10
  //#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"item" | "separator" | "trigger" | "indicator" | "content" | "arrow" | "arrowTip" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "positioner" | "triggerItem">;
11
+ declare const anatomy: AnatomyInstance<"indicator" | "trigger" | "content" | "item" | "itemIndicator" | "separator" | "positioner" | "arrow" | "arrowTip" | "itemText" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
12
12
  //#endregion
13
13
  //#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
14
14
  interface OpenChangeDetails {
@@ -1,10 +1,10 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
- import { C as queryAll, Ct as isPrintableKey, G as getInitialFocus, I as scrollIntoView, K as isValidTabEvent, L as clickIfLink, St as isOpeningInNewTab, W as raf, Zt as contains, cn as isEditableElement, ct as addDomEvent, dt as getEventPoint, in as getWindow, on as isAnchorElement, pt as getEventTarget, s as getByTypeahead, un as isHTMLElement, ut as getEventKey, vn as ariaAttr, vt as isDownloadingEvent, xt as isModifierKey, yn as dataAttr, z as observeAttributes } from "../../dom-query-dX8Dakb4.mjs";
2
+ import { $t as contains, C as queryAll, Ct as isModifierKey, G as getInitialFocus, I as scrollIntoView, K as isValidTabEvent, L as clickIfLink, Tt as isPrintableKey, W as raf, bn as ariaAttr, bt as isDownloadingEvent, cn as isAnchorElement, fn as isHTMLElement, ft as getEventKey, ht as getEventTarget, on as getWindow, pt as getEventPoint, s as getByTypeahead, un as isEditableElement, ut as addDomEvent, wt as isOpeningInNewTab, xn as dataAttr, z as observeAttributes } from "../../dom-query-s2ESLR2U.mjs";
3
3
  import { G as cast, Ot as prev, Tt as next, ft as isEqual, tt as hasProp, u as createSplitProps, vt as first, wt as last } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine, c as mergeProps, i as createGuards } from "../../core-DfVajPnu.mjs";
5
- import "../../interact-outside-C-8lOhpV.mjs";
6
- import { n as trackDismissableElement } from "../../dismissable-BAYaXwxZ.mjs";
7
- import { n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "../../popper-CfOHZlHP.mjs";
4
+ import { a as createMachine, c as mergeProps, i as createGuards } from "../../core-BmIEKqtP.mjs";
5
+ import "../../interact-outside-2qkUnl4N.mjs";
6
+ import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
7
+ import { n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
8
8
  import { i as isPointInPolygon, r as getElementPolygon } from "../../rect-utils-B5xqFvKC.mjs";
9
9
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
10
10
  //#region src/machines/dropdown-menu/dropdown-menu.anatomy.ts
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
- const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
3
+ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-BiGlJ-4W.cjs");
6
- const require_interact_outside = require("../../interact-outside-DRaFGdMg.cjs");
5
+ const require_core = require("../../core-nBg9RC_y.cjs");
6
+ const require_interact_outside = require("../../interact-outside-Cx4J0EBf.cjs");
7
7
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
8
8
  //#region src/machines/editable/editable.anatomy.ts
9
9
  const anatomy = require_create_anatomy.createAnatomy("editable").parts("root", "area", "label", "preview", "input", "editTrigger", "submitTrigger", "cancelTrigger", "control");
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
5
5
 
6
6
  //#region src/machines/editable/editable.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "area" | "preview" | "submitTrigger" | "cancelTrigger" | "editTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/editable/editable.types.d.ts
10
10
  interface ValueChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
5
5
 
6
6
  //#region src/machines/editable/editable.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "area" | "preview" | "submitTrigger" | "cancelTrigger" | "editTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/editable/editable.types.d.ts
10
10
  interface ValueChangeDetails {
@@ -1,8 +1,8 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
- import { W as raf, Zt as contains, ht as isComposingEvent, jt as isApple, ot as setElementValue, vn as ariaAttr, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
2
+ import { $t as contains, Nt as isApple, W as raf, _t as isComposingEvent, bn as ariaAttr, ct as setElementValue, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
3
3
  import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine } from "../../core-DfVajPnu.mjs";
5
- import { t as trackInteractOutside } from "../../interact-outside-C-8lOhpV.mjs";
4
+ import { a as createMachine } from "../../core-BmIEKqtP.mjs";
5
+ import { t as trackInteractOutside } from "../../interact-outside-2qkUnl4N.mjs";
6
6
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
7
7
  //#region src/machines/editable/editable.anatomy.ts
8
8
  const anatomy = createAnatomy("editable").parts("root", "area", "label", "preview", "input", "editTrigger", "submitTrigger", "cancelTrigger", "control");
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
- const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
3
+ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-BiGlJ-4W.cjs");
5
+ const require_core = require("../../core-nBg9RC_y.cjs");
6
6
  const require_file_utils = require("../../file-utils-CY6_zVut.cjs");
7
- const require_i18n_utils = require("../../i18n-utils-bHwTSOWi.cjs");
7
+ const require_i18n_utils = require("../../i18n-utils-DB-lUfrr.cjs");
8
8
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
9
9
  //#region src/machines/file-upload/file-upload.anatomy.ts
10
10
  const anatomy = require_create_anatomy.createAnatomy("file-upload").parts("root", "dropzone", "item", "itemDeleteTrigger", "itemGroup", "itemName", "itemPreview", "itemPreviewImage", "itemSizeText", "label", "trigger", "clearTrigger");
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
4
4
  import { i as FileMimeType, r as FileError } from "../../types-CylWsfOz.cjs";
5
5
 
6
6
  //#region src/machines/file-upload/file-upload.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "trigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "clearTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "trigger" | "item" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "itemGroup" | "dropzone" | "itemName" | "itemPreviewImage" | "itemSizeText">;
8
8
  //#endregion
9
9
  //#region src/machines/file-upload/file-upload.types.d.ts
10
10
  interface FileRejection {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
4
4
  import { i as FileMimeType, r as FileError } from "../../types-Cctd5dol.mjs";
5
5
 
6
6
  //#region src/machines/file-upload/file-upload.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "trigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "clearTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "trigger" | "item" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "itemGroup" | "dropzone" | "itemName" | "itemPreviewImage" | "itemSizeText">;
8
8
  //#endregion
9
9
  //#region src/machines/file-upload/file-upload.types.d.ts
10
10
  interface FileRejection {
@@ -1,9 +1,9 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
- import { W as raf, Zt as contains, a as visuallyHiddenStyle, ct as addDomEvent, in as getWindow, pt as getEventTarget, yn as dataAttr } from "../../dom-query-dX8Dakb4.mjs";
2
+ import { $t as contains, W as raf, a as visuallyHiddenStyle, ht as getEventTarget, on as getWindow, ut as addDomEvent, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
3
3
  import { W as callAll, i as warn, q as hash, u as createSplitProps, yt as flatArray } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine } from "../../core-DfVajPnu.mjs";
4
+ import { a as createMachine } from "../../core-BmIEKqtP.mjs";
5
5
  import { i as isFileEqual, r as isValidFileSize, s as getAcceptAttrString, t as isValidFileType, u as getFileEntries } from "../../file-utils-VgQ3YV2A.mjs";
6
- import { l as formatBytes } from "../../i18n-utils-BsXTdcWB.mjs";
6
+ import { l as formatBytes } from "../../i18n-utils-oWZyUib_.mjs";
7
7
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
8
8
  //#region src/machines/file-upload/file-upload.anatomy.ts
9
9
  const anatomy = createAnatomy("file-upload").parts("root", "dropzone", "item", "itemDeleteTrigger", "itemGroup", "itemName", "itemPreview", "itemPreviewImage", "itemSizeText", "label", "trigger", "clearTrigger");
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
- const require_dom_query = require("../../dom-query-6Wt-Tikf.cjs");
3
+ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-BiGlJ-4W.cjs");
5
+ const require_core = require("../../core-nBg9RC_y.cjs");
6
6
  const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
7
7
  const require_store = require("../../store-k8bn_TOl.cjs");
8
8
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { a as Point, o as Rect, y as Size } from "../../types-CLXYEgfm.cjs";
5
5
 
6
6
  //#region src/machines/floating-panel/floating-panel.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"control" | "trigger" | "content" | "positioner" | "closeTrigger" | "title" | "body" | "header" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"control" | "trigger" | "content" | "body" | "header" | "title" | "positioner" | "closeTrigger" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/floating-panel/floating-panel.types.d.ts
10
10
  interface PositionChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { a as Point, o as Rect, y as Size } from "../../types-DU764tY_.mjs";
5
5
 
6
6
  //#region src/machines/floating-panel/floating-panel.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"control" | "trigger" | "content" | "positioner" | "closeTrigger" | "title" | "body" | "header" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"control" | "trigger" | "content" | "body" | "header" | "title" | "positioner" | "closeTrigger" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/floating-panel/floating-panel.types.d.ts
10
10
  interface PositionChangeDetails {