@sprawlify/primitives 0.1.6 → 0.1.8

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 (215) hide show
  1. package/dist/core-Bw_czdwX.cjs +383 -0
  2. package/dist/core-CTtbW9qh.mjs +288 -0
  3. package/dist/core.cjs +9 -1
  4. package/dist/core.d.cts +25 -2
  5. package/dist/core.d.mts +25 -2
  6. package/dist/core.mjs +2 -2
  7. package/dist/machines/accordion/index.cjs +1 -1
  8. package/dist/machines/accordion/index.d.cts +2 -2
  9. package/dist/machines/accordion/index.d.mts +2 -2
  10. package/dist/machines/accordion/index.mjs +1 -1
  11. package/dist/machines/angle-slider/index.cjs +1 -1
  12. package/dist/machines/angle-slider/index.d.cts +2 -2
  13. package/dist/machines/angle-slider/index.d.mts +2 -2
  14. package/dist/machines/angle-slider/index.mjs +1 -1
  15. package/dist/machines/aspect-ratio/index.cjs +1 -1
  16. package/dist/machines/aspect-ratio/index.d.cts +1 -1
  17. package/dist/machines/aspect-ratio/index.d.mts +1 -1
  18. package/dist/machines/aspect-ratio/index.mjs +1 -1
  19. package/dist/machines/async-list/index.cjs +1 -1
  20. package/dist/machines/async-list/index.d.cts +1 -1
  21. package/dist/machines/async-list/index.d.mts +1 -1
  22. package/dist/machines/async-list/index.mjs +1 -1
  23. package/dist/machines/avatar/index.cjs +1 -1
  24. package/dist/machines/avatar/index.d.cts +1 -1
  25. package/dist/machines/avatar/index.d.mts +1 -1
  26. package/dist/machines/avatar/index.mjs +1 -1
  27. package/dist/machines/carousel/index.cjs +69 -18
  28. package/dist/machines/carousel/index.d.cts +3 -3
  29. package/dist/machines/carousel/index.d.mts +3 -3
  30. package/dist/machines/carousel/index.mjs +69 -18
  31. package/dist/machines/cascade-select/index.cjs +1 -1
  32. package/dist/machines/cascade-select/index.d.cts +3 -3
  33. package/dist/machines/cascade-select/index.d.mts +3 -3
  34. package/dist/machines/cascade-select/index.mjs +1 -1
  35. package/dist/machines/checkbox/index.cjs +1 -1
  36. package/dist/machines/checkbox/index.d.cts +2 -2
  37. package/dist/machines/checkbox/index.d.mts +2 -2
  38. package/dist/machines/checkbox/index.mjs +1 -1
  39. package/dist/machines/clipboard/index.cjs +1 -1
  40. package/dist/machines/clipboard/index.d.cts +2 -2
  41. package/dist/machines/clipboard/index.d.mts +2 -2
  42. package/dist/machines/clipboard/index.mjs +1 -1
  43. package/dist/machines/collapsible/index.cjs +1 -1
  44. package/dist/machines/collapsible/index.d.cts +1 -1
  45. package/dist/machines/collapsible/index.d.mts +1 -1
  46. package/dist/machines/collapsible/index.mjs +1 -1
  47. package/dist/machines/color-picker/index.cjs +76 -102
  48. package/dist/machines/color-picker/index.d.cts +3 -3
  49. package/dist/machines/color-picker/index.d.mts +3 -3
  50. package/dist/machines/color-picker/index.mjs +76 -102
  51. package/dist/machines/combobox/index.cjs +1 -1
  52. package/dist/machines/combobox/index.d.cts +2 -2
  53. package/dist/machines/combobox/index.d.mts +2 -2
  54. package/dist/machines/combobox/index.mjs +1 -1
  55. package/dist/machines/date-picker/index.cjs +1 -1
  56. package/dist/machines/date-picker/index.d.cts +2 -2
  57. package/dist/machines/date-picker/index.d.mts +2 -2
  58. package/dist/machines/date-picker/index.mjs +1 -1
  59. package/dist/machines/dialog/index.cjs +1 -1
  60. package/dist/machines/dialog/index.d.cts +2 -2
  61. package/dist/machines/dialog/index.d.mts +2 -2
  62. package/dist/machines/dialog/index.mjs +1 -1
  63. package/dist/machines/drawer/index.cjs +1 -1
  64. package/dist/machines/drawer/index.d.cts +2 -2
  65. package/dist/machines/drawer/index.d.mts +2 -2
  66. package/dist/machines/drawer/index.mjs +1 -1
  67. package/dist/machines/dropdown-menu/index.cjs +1 -1
  68. package/dist/machines/dropdown-menu/index.d.cts +2 -2
  69. package/dist/machines/dropdown-menu/index.d.mts +2 -2
  70. package/dist/machines/dropdown-menu/index.mjs +1 -1
  71. package/dist/machines/editable/index.cjs +1 -1
  72. package/dist/machines/editable/index.d.cts +2 -2
  73. package/dist/machines/editable/index.d.mts +2 -2
  74. package/dist/machines/editable/index.mjs +1 -1
  75. package/dist/machines/file-upload/index.cjs +1 -1
  76. package/dist/machines/file-upload/index.d.cts +2 -2
  77. package/dist/machines/file-upload/index.d.mts +2 -2
  78. package/dist/machines/file-upload/index.mjs +1 -1
  79. package/dist/machines/floating-panel/index.cjs +96 -93
  80. package/dist/machines/floating-panel/index.d.cts +3 -3
  81. package/dist/machines/floating-panel/index.d.mts +3 -3
  82. package/dist/machines/floating-panel/index.mjs +96 -93
  83. package/dist/machines/hover-card/index.cjs +1 -1
  84. package/dist/machines/hover-card/index.d.cts +2 -2
  85. package/dist/machines/hover-card/index.d.mts +2 -2
  86. package/dist/machines/hover-card/index.mjs +1 -1
  87. package/dist/machines/image-cropper/index.cjs +1 -1
  88. package/dist/machines/image-cropper/index.d.cts +1 -1
  89. package/dist/machines/image-cropper/index.d.mts +1 -1
  90. package/dist/machines/image-cropper/index.mjs +1 -1
  91. package/dist/machines/listbox/index.cjs +1 -1
  92. package/dist/machines/listbox/index.d.cts +2 -2
  93. package/dist/machines/listbox/index.d.mts +2 -2
  94. package/dist/machines/listbox/index.mjs +1 -1
  95. package/dist/machines/marquee/index.cjs +1 -1
  96. package/dist/machines/marquee/index.d.cts +3 -3
  97. package/dist/machines/marquee/index.d.mts +3 -3
  98. package/dist/machines/marquee/index.mjs +1 -1
  99. package/dist/machines/navigation-menu/index.cjs +1 -1
  100. package/dist/machines/navigation-menu/index.d.cts +2 -2
  101. package/dist/machines/navigation-menu/index.d.mts +2 -2
  102. package/dist/machines/navigation-menu/index.mjs +1 -1
  103. package/dist/machines/number-input/index.cjs +1 -1
  104. package/dist/machines/number-input/index.d.cts +2 -2
  105. package/dist/machines/number-input/index.d.mts +2 -2
  106. package/dist/machines/number-input/index.mjs +1 -1
  107. package/dist/machines/pagination/index.cjs +1 -1
  108. package/dist/machines/pagination/index.d.cts +1 -1
  109. package/dist/machines/pagination/index.d.mts +1 -1
  110. package/dist/machines/pagination/index.mjs +1 -1
  111. package/dist/machines/password-input/index.cjs +1 -1
  112. package/dist/machines/password-input/index.d.cts +2 -2
  113. package/dist/machines/password-input/index.d.mts +2 -2
  114. package/dist/machines/password-input/index.mjs +1 -1
  115. package/dist/machines/pin-input/index.cjs +1 -1
  116. package/dist/machines/pin-input/index.d.cts +2 -2
  117. package/dist/machines/pin-input/index.d.mts +2 -2
  118. package/dist/machines/pin-input/index.mjs +1 -1
  119. package/dist/machines/popover/index.cjs +1 -1
  120. package/dist/machines/popover/index.d.cts +2 -2
  121. package/dist/machines/popover/index.d.mts +2 -2
  122. package/dist/machines/popover/index.mjs +1 -1
  123. package/dist/machines/presence/index.cjs +1 -1
  124. package/dist/machines/presence/index.d.cts +1 -1
  125. package/dist/machines/presence/index.d.mts +1 -1
  126. package/dist/machines/presence/index.mjs +1 -1
  127. package/dist/machines/progress/index.cjs +1 -1
  128. package/dist/machines/progress/index.d.cts +2 -2
  129. package/dist/machines/progress/index.d.mts +2 -2
  130. package/dist/machines/progress/index.mjs +1 -1
  131. package/dist/machines/qr-code/index.cjs +1 -1
  132. package/dist/machines/qr-code/index.d.cts +1 -1
  133. package/dist/machines/qr-code/index.d.mts +1 -1
  134. package/dist/machines/qr-code/index.mjs +1 -1
  135. package/dist/machines/radio-group/index.cjs +1 -1
  136. package/dist/machines/radio-group/index.d.cts +1 -1
  137. package/dist/machines/radio-group/index.d.mts +1 -1
  138. package/dist/machines/radio-group/index.mjs +1 -1
  139. package/dist/machines/rating-group/index.cjs +1 -1
  140. package/dist/machines/rating-group/index.d.cts +2 -2
  141. package/dist/machines/rating-group/index.d.mts +2 -2
  142. package/dist/machines/rating-group/index.mjs +1 -1
  143. package/dist/machines/scroll-area/index.cjs +1 -1
  144. package/dist/machines/scroll-area/index.d.cts +1 -1
  145. package/dist/machines/scroll-area/index.d.mts +1 -1
  146. package/dist/machines/scroll-area/index.mjs +1 -1
  147. package/dist/machines/select/index.cjs +1 -1
  148. package/dist/machines/select/index.d.cts +2 -2
  149. package/dist/machines/select/index.d.mts +2 -2
  150. package/dist/machines/select/index.mjs +1 -1
  151. package/dist/machines/separator/index.cjs +1 -1
  152. package/dist/machines/separator/index.d.cts +1 -1
  153. package/dist/machines/separator/index.d.mts +1 -1
  154. package/dist/machines/separator/index.mjs +1 -1
  155. package/dist/machines/signature-pad/index.cjs +1 -1
  156. package/dist/machines/signature-pad/index.d.cts +2 -2
  157. package/dist/machines/signature-pad/index.d.mts +2 -2
  158. package/dist/machines/signature-pad/index.mjs +1 -1
  159. package/dist/machines/slider/index.cjs +1 -1
  160. package/dist/machines/slider/index.d.cts +2 -2
  161. package/dist/machines/slider/index.d.mts +2 -2
  162. package/dist/machines/slider/index.mjs +1 -1
  163. package/dist/machines/splitter/index.cjs +1 -1
  164. package/dist/machines/splitter/index.d.cts +1 -1
  165. package/dist/machines/splitter/index.d.mts +1 -1
  166. package/dist/machines/splitter/index.mjs +1 -1
  167. package/dist/machines/steps/index.cjs +1 -1
  168. package/dist/machines/steps/index.d.cts +2 -2
  169. package/dist/machines/steps/index.d.mts +2 -2
  170. package/dist/machines/steps/index.mjs +1 -1
  171. package/dist/machines/switch/index.cjs +1 -1
  172. package/dist/machines/switch/index.d.cts +2 -2
  173. package/dist/machines/switch/index.d.mts +2 -2
  174. package/dist/machines/switch/index.mjs +1 -1
  175. package/dist/machines/tabs/index.cjs +1 -1
  176. package/dist/machines/tabs/index.d.cts +2 -2
  177. package/dist/machines/tabs/index.d.mts +2 -2
  178. package/dist/machines/tabs/index.mjs +1 -1
  179. package/dist/machines/tags-input/index.cjs +1 -1
  180. package/dist/machines/tags-input/index.d.cts +2 -2
  181. package/dist/machines/tags-input/index.d.mts +2 -2
  182. package/dist/machines/tags-input/index.mjs +1 -1
  183. package/dist/machines/timer/index.cjs +1 -1
  184. package/dist/machines/timer/index.d.cts +2 -2
  185. package/dist/machines/timer/index.d.mts +2 -2
  186. package/dist/machines/timer/index.mjs +1 -1
  187. package/dist/machines/toast/index.cjs +1 -1
  188. package/dist/machines/toast/index.d.cts +2 -2
  189. package/dist/machines/toast/index.d.mts +2 -2
  190. package/dist/machines/toast/index.mjs +1 -1
  191. package/dist/machines/toggle/index.cjs +1 -1
  192. package/dist/machines/toggle/index.d.cts +1 -1
  193. package/dist/machines/toggle/index.d.mts +1 -1
  194. package/dist/machines/toggle/index.mjs +1 -1
  195. package/dist/machines/toggle-group/index.cjs +1 -1
  196. package/dist/machines/toggle-group/index.d.cts +1 -1
  197. package/dist/machines/toggle-group/index.d.mts +1 -1
  198. package/dist/machines/toggle-group/index.mjs +1 -1
  199. package/dist/machines/tooltip/index.cjs +1 -1
  200. package/dist/machines/tooltip/index.d.cts +2 -2
  201. package/dist/machines/tooltip/index.d.mts +2 -2
  202. package/dist/machines/tooltip/index.mjs +1 -1
  203. package/dist/machines/tour/index.cjs +48 -46
  204. package/dist/machines/tour/index.d.cts +3 -3
  205. package/dist/machines/tour/index.d.mts +3 -3
  206. package/dist/machines/tour/index.mjs +48 -46
  207. package/dist/machines/tree-view/index.cjs +1 -1
  208. package/dist/machines/tree-view/index.d.cts +2 -2
  209. package/dist/machines/tree-view/index.d.mts +2 -2
  210. package/dist/machines/tree-view/index.mjs +1 -1
  211. package/dist/{types-B24gMTKq.d.cts → types-DvUmCWsb.d.mts} +28 -12
  212. package/dist/{types-DUM9rzfD.d.mts → types-u-LWCSDE.d.cts} +28 -12
  213. package/package.json +1 -1
  214. package/dist/core-Ci9Yu6QI.mjs +0 -123
  215. package/dist/core-DwdPztGA.cjs +0 -170
@@ -1,10 +1,10 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
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" | "item" | "trigger" | "label" | "clearTrigger" | "dropzone" | "itemName" | "itemSizeText" | "itemPreview" | "itemDeleteTrigger" | "itemGroup" | "itemPreviewImage">;
7
+ declare const anatomy: AnatomyInstance<"root" | "item" | "trigger" | "label" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "clearTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/file-upload/file-upload.types.d.ts
10
10
  interface FileRejection {
@@ -1,7 +1,7 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
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-BFuRs3l4.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-Ci9Yu6QI.mjs";
4
+ import { a as createMachine } from "../../core-CTtbW9qh.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
6
  import { l as formatBytes } from "../../i18n-utils-DZs1CPj8.mjs";
7
7
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
3
  const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-DwdPztGA.cjs");
5
+ const require_core = require("../../core-Bw_czdwX.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");
@@ -569,100 +569,103 @@ const machine = require_core.createMachine({
569
569
  open: {
570
570
  tags: ["open"],
571
571
  entry: ["bringToFrontOfPanelStack"],
572
- effects: ["trackBoundaryRect"],
573
- on: {
574
- DRAG_START: {
575
- guard: not("isMaximized"),
576
- target: "open.dragging",
577
- actions: ["setPrevPosition"]
578
- },
579
- RESIZE_START: {
580
- guard: not("isMinimized"),
581
- target: "open.resizing",
582
- actions: ["setPrevSize"]
583
- },
584
- "CONTROLLED.CLOSE": {
585
- target: "closed",
586
- actions: ["resetRect", "focusTriggerEl"]
587
- },
588
- CLOSE: [{
589
- guard: "isOpenControlled",
590
- target: "closed",
591
- actions: ["invokeOnClose"]
592
- }, {
593
- target: "closed",
594
- actions: [
595
- "invokeOnClose",
596
- "resetRect",
597
- "focusTriggerEl"
598
- ]
599
- }],
600
- ESCAPE: [{
601
- guard: and("isOpenControlled", "closeOnEsc"),
602
- actions: ["invokeOnClose"]
603
- }, {
604
- guard: "closeOnEsc",
605
- target: "closed",
606
- actions: [
607
- "invokeOnClose",
608
- "resetRect",
609
- "focusTriggerEl"
610
- ]
611
- }],
612
- MINIMIZE: { actions: ["setMinimized"] },
613
- MAXIMIZE: { actions: ["setMaximized"] },
614
- RESTORE: { actions: ["setRestored"] },
615
- MOVE: { actions: ["setPositionFromKeyboard"] }
616
- }
617
- },
618
- "open.dragging": {
619
- tags: ["open"],
620
- effects: ["trackPointerMove"],
621
- exit: ["clearPrevPosition"],
622
- on: {
623
- DRAG: { actions: ["setPosition"] },
624
- DRAG_END: {
625
- target: "open",
626
- actions: ["invokeOnDragEnd"]
627
- },
628
- "CONTROLLED.CLOSE": {
629
- target: "closed",
630
- actions: ["resetRect"]
631
- },
632
- CLOSE: [{
633
- guard: "isOpenControlled",
634
- target: "closed",
635
- actions: ["invokeOnClose"]
636
- }, {
637
- target: "closed",
638
- actions: ["invokeOnClose", "resetRect"]
639
- }],
640
- ESCAPE: { target: "open" }
641
- }
642
- },
643
- "open.resizing": {
644
- tags: ["open"],
645
- effects: ["trackPointerMove"],
646
- exit: ["clearPrevSize"],
647
- on: {
648
- DRAG: { actions: ["setSize"] },
649
- DRAG_END: {
650
- target: "open",
651
- actions: ["invokeOnResizeEnd"]
572
+ initial: "idle",
573
+ states: {
574
+ idle: {
575
+ effects: ["trackBoundaryRect"],
576
+ on: {
577
+ DRAG_START: {
578
+ guard: not("isMaximized"),
579
+ target: "dragging",
580
+ actions: ["setPrevPosition"]
581
+ },
582
+ RESIZE_START: {
583
+ guard: not("isMinimized"),
584
+ target: "resizing",
585
+ actions: ["setPrevSize"]
586
+ },
587
+ "CONTROLLED.CLOSE": {
588
+ target: "closed",
589
+ actions: ["resetRect", "focusTriggerEl"]
590
+ },
591
+ CLOSE: [{
592
+ guard: "isOpenControlled",
593
+ target: "closed",
594
+ actions: ["invokeOnClose"]
595
+ }, {
596
+ target: "closed",
597
+ actions: [
598
+ "invokeOnClose",
599
+ "resetRect",
600
+ "focusTriggerEl"
601
+ ]
602
+ }],
603
+ ESCAPE: [{
604
+ guard: and("isOpenControlled", "closeOnEsc"),
605
+ actions: ["invokeOnClose"]
606
+ }, {
607
+ guard: "closeOnEsc",
608
+ target: "closed",
609
+ actions: [
610
+ "invokeOnClose",
611
+ "resetRect",
612
+ "focusTriggerEl"
613
+ ]
614
+ }],
615
+ MINIMIZE: { actions: ["setMinimized"] },
616
+ MAXIMIZE: { actions: ["setMaximized"] },
617
+ RESTORE: { actions: ["setRestored"] },
618
+ MOVE: { actions: ["setPositionFromKeyboard"] }
619
+ }
652
620
  },
653
- "CONTROLLED.CLOSE": {
654
- target: "closed",
655
- actions: ["resetRect"]
621
+ dragging: {
622
+ effects: ["trackPointerMove"],
623
+ exit: ["clearPrevPosition"],
624
+ on: {
625
+ DRAG: { actions: ["setPosition"] },
626
+ DRAG_END: {
627
+ target: "idle",
628
+ actions: ["invokeOnDragEnd"]
629
+ },
630
+ "CONTROLLED.CLOSE": {
631
+ target: "closed",
632
+ actions: ["resetRect"]
633
+ },
634
+ CLOSE: [{
635
+ guard: "isOpenControlled",
636
+ target: "closed",
637
+ actions: ["invokeOnClose"]
638
+ }, {
639
+ target: "closed",
640
+ actions: ["invokeOnClose", "resetRect"]
641
+ }],
642
+ ESCAPE: { target: "idle" }
643
+ }
656
644
  },
657
- CLOSE: [{
658
- guard: "isOpenControlled",
659
- target: "closed",
660
- actions: ["invokeOnClose"]
661
- }, {
662
- target: "closed",
663
- actions: ["invokeOnClose", "resetRect"]
664
- }],
665
- ESCAPE: { target: "open" }
645
+ resizing: {
646
+ effects: ["trackPointerMove"],
647
+ exit: ["clearPrevSize"],
648
+ on: {
649
+ DRAG: { actions: ["setSize"] },
650
+ DRAG_END: {
651
+ target: "idle",
652
+ actions: ["invokeOnResizeEnd"]
653
+ },
654
+ "CONTROLLED.CLOSE": {
655
+ target: "closed",
656
+ actions: ["resetRect"]
657
+ },
658
+ CLOSE: [{
659
+ guard: "isOpenControlled",
660
+ target: "closed",
661
+ actions: ["invokeOnClose"]
662
+ }, {
663
+ target: "closed",
664
+ actions: ["invokeOnClose", "resetRect"]
665
+ }],
666
+ ESCAPE: { target: "idle" }
667
+ }
668
+ }
666
669
  }
667
670
  }
668
671
  },
@@ -1,10 +1,10 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCSDE.cjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
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" | "title" | "closeTrigger" | "content" | "resizeTrigger" | "body" | "header" | "positioner" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "control" | "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 {
@@ -89,7 +89,7 @@ interface FloatingPanelSchema {
89
89
  context: PrivateContext;
90
90
  computed: ComputedContext;
91
91
  tag: "open" | "closed";
92
- state: "open" | "open.dragging" | "open.resizing" | "closed";
92
+ state: "open" | "open.idle" | "open.dragging" | "open.resizing" | "closed";
93
93
  event: EventObject;
94
94
  action: string;
95
95
  effect: string;
@@ -1,10 +1,10 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
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" | "title" | "closeTrigger" | "content" | "resizeTrigger" | "body" | "header" | "positioner" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "control" | "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 {
@@ -89,7 +89,7 @@ interface FloatingPanelSchema {
89
89
  context: PrivateContext;
90
90
  computed: ComputedContext;
91
91
  tag: "open" | "closed";
92
- state: "open" | "open.dragging" | "open.resizing" | "closed";
92
+ state: "open" | "open.idle" | "open.dragging" | "open.resizing" | "closed";
93
93
  event: EventObject;
94
94
  action: string;
95
95
  effect: string;
@@ -1,7 +1,7 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import { E as trackPointerMove, St as isLeftClick, W as raf, fn as isHTMLElement, ft as getEventKey, ht as getEventTarget, m as resizeObserverBorderBox, mt as getEventStep, ut as addDomEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
3
3
  import { H as toPx, Y as match, g as clampValue, n as ensureProps, p as pick, r as invariant, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
4
+ import { a as createMachine, i as createGuards } from "../../core-CTtbW9qh.mjs";
5
5
  import { G as clampPoint, I as addPoints, K as clampSize, R as createRect, T as constrainRect, W as subtractPoints, d as getWindowRect, t as resizeRect, v as getElementRect, x as isSizeEqual, y as isPointEqual } from "../../rect-utils-B5xqFvKC.mjs";
6
6
  import { a as subscribe, n as proxy } from "../../store-BRn2zWDR.mjs";
7
7
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
@@ -568,100 +568,103 @@ const machine = createMachine({
568
568
  open: {
569
569
  tags: ["open"],
570
570
  entry: ["bringToFrontOfPanelStack"],
571
- effects: ["trackBoundaryRect"],
572
- on: {
573
- DRAG_START: {
574
- guard: not("isMaximized"),
575
- target: "open.dragging",
576
- actions: ["setPrevPosition"]
577
- },
578
- RESIZE_START: {
579
- guard: not("isMinimized"),
580
- target: "open.resizing",
581
- actions: ["setPrevSize"]
582
- },
583
- "CONTROLLED.CLOSE": {
584
- target: "closed",
585
- actions: ["resetRect", "focusTriggerEl"]
586
- },
587
- CLOSE: [{
588
- guard: "isOpenControlled",
589
- target: "closed",
590
- actions: ["invokeOnClose"]
591
- }, {
592
- target: "closed",
593
- actions: [
594
- "invokeOnClose",
595
- "resetRect",
596
- "focusTriggerEl"
597
- ]
598
- }],
599
- ESCAPE: [{
600
- guard: and("isOpenControlled", "closeOnEsc"),
601
- actions: ["invokeOnClose"]
602
- }, {
603
- guard: "closeOnEsc",
604
- target: "closed",
605
- actions: [
606
- "invokeOnClose",
607
- "resetRect",
608
- "focusTriggerEl"
609
- ]
610
- }],
611
- MINIMIZE: { actions: ["setMinimized"] },
612
- MAXIMIZE: { actions: ["setMaximized"] },
613
- RESTORE: { actions: ["setRestored"] },
614
- MOVE: { actions: ["setPositionFromKeyboard"] }
615
- }
616
- },
617
- "open.dragging": {
618
- tags: ["open"],
619
- effects: ["trackPointerMove"],
620
- exit: ["clearPrevPosition"],
621
- on: {
622
- DRAG: { actions: ["setPosition"] },
623
- DRAG_END: {
624
- target: "open",
625
- actions: ["invokeOnDragEnd"]
626
- },
627
- "CONTROLLED.CLOSE": {
628
- target: "closed",
629
- actions: ["resetRect"]
630
- },
631
- CLOSE: [{
632
- guard: "isOpenControlled",
633
- target: "closed",
634
- actions: ["invokeOnClose"]
635
- }, {
636
- target: "closed",
637
- actions: ["invokeOnClose", "resetRect"]
638
- }],
639
- ESCAPE: { target: "open" }
640
- }
641
- },
642
- "open.resizing": {
643
- tags: ["open"],
644
- effects: ["trackPointerMove"],
645
- exit: ["clearPrevSize"],
646
- on: {
647
- DRAG: { actions: ["setSize"] },
648
- DRAG_END: {
649
- target: "open",
650
- actions: ["invokeOnResizeEnd"]
571
+ initial: "idle",
572
+ states: {
573
+ idle: {
574
+ effects: ["trackBoundaryRect"],
575
+ on: {
576
+ DRAG_START: {
577
+ guard: not("isMaximized"),
578
+ target: "dragging",
579
+ actions: ["setPrevPosition"]
580
+ },
581
+ RESIZE_START: {
582
+ guard: not("isMinimized"),
583
+ target: "resizing",
584
+ actions: ["setPrevSize"]
585
+ },
586
+ "CONTROLLED.CLOSE": {
587
+ target: "closed",
588
+ actions: ["resetRect", "focusTriggerEl"]
589
+ },
590
+ CLOSE: [{
591
+ guard: "isOpenControlled",
592
+ target: "closed",
593
+ actions: ["invokeOnClose"]
594
+ }, {
595
+ target: "closed",
596
+ actions: [
597
+ "invokeOnClose",
598
+ "resetRect",
599
+ "focusTriggerEl"
600
+ ]
601
+ }],
602
+ ESCAPE: [{
603
+ guard: and("isOpenControlled", "closeOnEsc"),
604
+ actions: ["invokeOnClose"]
605
+ }, {
606
+ guard: "closeOnEsc",
607
+ target: "closed",
608
+ actions: [
609
+ "invokeOnClose",
610
+ "resetRect",
611
+ "focusTriggerEl"
612
+ ]
613
+ }],
614
+ MINIMIZE: { actions: ["setMinimized"] },
615
+ MAXIMIZE: { actions: ["setMaximized"] },
616
+ RESTORE: { actions: ["setRestored"] },
617
+ MOVE: { actions: ["setPositionFromKeyboard"] }
618
+ }
651
619
  },
652
- "CONTROLLED.CLOSE": {
653
- target: "closed",
654
- actions: ["resetRect"]
620
+ dragging: {
621
+ effects: ["trackPointerMove"],
622
+ exit: ["clearPrevPosition"],
623
+ on: {
624
+ DRAG: { actions: ["setPosition"] },
625
+ DRAG_END: {
626
+ target: "idle",
627
+ actions: ["invokeOnDragEnd"]
628
+ },
629
+ "CONTROLLED.CLOSE": {
630
+ target: "closed",
631
+ actions: ["resetRect"]
632
+ },
633
+ CLOSE: [{
634
+ guard: "isOpenControlled",
635
+ target: "closed",
636
+ actions: ["invokeOnClose"]
637
+ }, {
638
+ target: "closed",
639
+ actions: ["invokeOnClose", "resetRect"]
640
+ }],
641
+ ESCAPE: { target: "idle" }
642
+ }
655
643
  },
656
- CLOSE: [{
657
- guard: "isOpenControlled",
658
- target: "closed",
659
- actions: ["invokeOnClose"]
660
- }, {
661
- target: "closed",
662
- actions: ["invokeOnClose", "resetRect"]
663
- }],
664
- ESCAPE: { target: "open" }
644
+ resizing: {
645
+ effects: ["trackPointerMove"],
646
+ exit: ["clearPrevSize"],
647
+ on: {
648
+ DRAG: { actions: ["setSize"] },
649
+ DRAG_END: {
650
+ target: "idle",
651
+ actions: ["invokeOnResizeEnd"]
652
+ },
653
+ "CONTROLLED.CLOSE": {
654
+ target: "closed",
655
+ actions: ["resetRect"]
656
+ },
657
+ CLOSE: [{
658
+ guard: "isOpenControlled",
659
+ target: "closed",
660
+ actions: ["invokeOnClose"]
661
+ }, {
662
+ target: "closed",
663
+ actions: ["invokeOnClose", "resetRect"]
664
+ }],
665
+ ESCAPE: { target: "idle" }
666
+ }
667
+ }
665
668
  }
666
669
  }
667
670
  },
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
3
  require("../../dom-query-BUO7rGsg.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-DwdPztGA.cjs");
5
+ const require_core = require("../../core-Bw_czdwX.cjs");
6
6
  require("../../interact-outside-Bg-QSXqp.cjs");
7
7
  const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
8
8
  const require_popper = require("../../popper-viCrafLC.cjs");
@@ -1,11 +1,11 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCSDE.cjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
5
5
  import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
6
6
 
7
7
  //#region src/machines/hover-card/hover-card.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "positioner" | "arrowTip">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "positioner" | "arrow" | "arrowTip">;
9
9
  //#endregion
10
10
  //#region src/machines/hover-card/hover-card.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -1,11 +1,11 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
5
5
  import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
6
6
 
7
7
  //#region src/machines/hover-card/hover-card.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "positioner" | "arrowTip">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "positioner" | "arrow" | "arrowTip">;
9
9
  //#endregion
10
10
  //#region src/machines/hover-card/hover-card.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -1,7 +1,7 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import "../../dom-query-BFuRs3l4.mjs";
3
3
  import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
4
+ import { a as createMachine, i as createGuards } from "../../core-CTtbW9qh.mjs";
5
5
  import "../../interact-outside-Ba50N1a5.mjs";
6
6
  import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
7
7
  import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
3
  const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
- const require_core = require("../../core-DwdPztGA.cjs");
5
+ const require_core = require("../../core-Bw_czdwX.cjs");
6
6
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
7
7
  //#region src/machines/image-cropper/image-cropper.anatomy.ts
8
8
  const anatomy = require_create_anatomy.createAnatomy("image-cropper").parts("root", "viewport", "image", "selection", "handle", "grid");
@@ -1,5 +1,5 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCSDE.cjs";
3
3
  import { _ as Size, b as NormalizeProps, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/image-cropper/image-cropper.anatomy.d.ts
@@ -1,5 +1,5 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
- import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
2
+ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.mjs";
3
3
  import { _ as Size, b as NormalizeProps, g as RequiredBy, m as Rect, p as Point, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/image-cropper/image-cropper.anatomy.d.ts
@@ -1,7 +1,7 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import { $t as contains, ft as getEventKey, ht as getEventTarget, m as resizeObserverBorderBox, pt as getEventPoint, ut as addDomEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
3
3
  import { H as toPx, W as callAll, g as clampValue, rt as isBoolean, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
- import { a as createMachine } from "../../core-Ci9Yu6QI.mjs";
4
+ import { a as createMachine } from "../../core-CTtbW9qh.mjs";
5
5
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
6
6
  //#region src/machines/image-cropper/image-cropper.anatomy.ts
7
7
  const anatomy = createAnatomy("image-cropper").parts("root", "viewport", "image", "selection", "handle", "grid");
@@ -3,7 +3,7 @@ const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
3
3
  const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
5
  const require_collection = require("../../collection-BBgC8xCb.cjs");
6
- const require_core = require("../../core-DwdPztGA.cjs");
6
+ const require_core = require("../../core-Bw_czdwX.cjs");
7
7
  const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
8
8
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
9
9
  //#region src/machines/listbox/listbox.anatomy.ts
@@ -2,12 +2,12 @@ import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-D-7AMgSE.cjs";
3
3
  import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
4
4
  import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-Bb_ZSVxe.cjs";
5
- import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
5
+ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCSDE.cjs";
6
6
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
7
7
  import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
8
8
 
9
9
  //#region src/machines/listbox/listbox.anatomy.d.ts
10
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "input" | "label" | "itemText" | "content" | "valueText" | "itemGroup" | "itemGroupLabel">;
10
+ declare const anatomy: AnatomyInstance<"root" | "item" | "content" | "label" | "valueText" | "input" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText">;
11
11
  //#endregion
12
12
  //#region src/machines/listbox/listbox.collection.d.ts
13
13
  declare const collection: {
@@ -2,12 +2,12 @@ import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
3
3
  import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
4
4
  import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-DdNvrKbj.mjs";
5
- import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
5
+ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCWsb.mjs";
6
6
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
7
7
  import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
8
8
 
9
9
  //#region src/machines/listbox/listbox.anatomy.d.ts
10
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "input" | "label" | "itemText" | "content" | "valueText" | "itemGroup" | "itemGroupLabel">;
10
+ declare const anatomy: AnatomyInstance<"root" | "item" | "content" | "label" | "valueText" | "input" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText">;
11
11
  //#endregion
12
12
  //#region src/machines/listbox/listbox.collection.d.ts
13
13
  declare const collection: {
@@ -2,7 +2,7 @@ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import { $t as contains, I as scrollIntoView, W as raf, _t as isComposingEvent, bn as ariaAttr, ft as getEventKey, gt as getNativeEvent, ht as getEventTarget, s as getByTypeahead, un as isEditableElement, xn as dataAttr, yt as isCtrlOrMetaKey, z as observeAttributes } from "../../dom-query-BFuRs3l4.mjs";
3
3
  import { ft as isEqual, t as ensure, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
4
  import { a as GridCollection, i as Selection, o as isGridCollection, s as ListCollection } from "../../collection-DgzidRvr.mjs";
5
- import { o as setup } from "../../core-Ci9Yu6QI.mjs";
5
+ import { o as setup } from "../../core-CTtbW9qh.mjs";
6
6
  import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
7
7
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
8
8
  //#region src/machines/listbox/listbox.anatomy.ts