@sprawlify/primitives 0.0.106 → 0.0.108

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 (118) hide show
  1. package/dist/collection.d.cts +2 -2
  2. package/dist/collection.d.mts +2 -2
  3. package/dist/{date-utils-DCaRa_Ry.mjs → date-utils-BqOQP2-U.mjs} +19 -1
  4. package/dist/{date-utils-BuJkKL09.cjs → date-utils-Dz9DZPcZ.cjs} +24 -0
  5. package/dist/date-utils.cjs +2 -1
  6. package/dist/date-utils.d.cts +2 -1
  7. package/dist/date-utils.d.mts +2 -2
  8. package/dist/date-utils.mjs +2 -2
  9. package/dist/{index-ClVRyKIt.d.mts → index-6cEVkXqi.d.mts} +2 -1
  10. package/dist/{index-DHp3-EkH.d.mts → index-fMh0VDkR.d.mts} +1 -0
  11. package/dist/{list-collection-B_8BN0XB.d.cts → list-collection-Cjgbx_9l.d.cts} +1 -1
  12. package/dist/{list-collection-DkRA5LOq.d.mts → list-collection-IF510iNl.d.mts} +1 -1
  13. package/dist/machines/accordion/index.d.cts +1 -1
  14. package/dist/machines/accordion/index.d.mts +1 -1
  15. package/dist/machines/angle-slider/index.d.cts +1 -1
  16. package/dist/machines/angle-slider/index.d.mts +1 -1
  17. package/dist/machines/bottom-sheet/index.d.cts +1 -1
  18. package/dist/machines/bottom-sheet/index.d.mts +1 -1
  19. package/dist/machines/cascade-select/index.cjs +1 -1
  20. package/dist/machines/cascade-select/index.d.cts +3 -3
  21. package/dist/machines/cascade-select/index.d.mts +3 -3
  22. package/dist/machines/cascade-select/index.mjs +1 -1
  23. package/dist/machines/checkbox/index.d.cts +1 -1
  24. package/dist/machines/checkbox/index.d.mts +1 -1
  25. package/dist/machines/clipboard/index.d.cts +1 -1
  26. package/dist/machines/clipboard/index.d.mts +1 -1
  27. package/dist/machines/color-picker/index.cjs +1 -1
  28. package/dist/machines/color-picker/index.d.cts +2 -2
  29. package/dist/machines/color-picker/index.d.mts +2 -2
  30. package/dist/machines/color-picker/index.mjs +1 -1
  31. package/dist/machines/combobox/index.cjs +1 -1
  32. package/dist/machines/combobox/index.d.cts +3 -3
  33. package/dist/machines/combobox/index.d.mts +3 -3
  34. package/dist/machines/combobox/index.mjs +1 -1
  35. package/dist/machines/date-picker/index.cjs +68 -8
  36. package/dist/machines/date-picker/index.d.cts +27 -4
  37. package/dist/machines/date-picker/index.d.mts +28 -5
  38. package/dist/machines/date-picker/index.mjs +68 -8
  39. package/dist/machines/dialog/index.cjs +1 -1
  40. package/dist/machines/dialog/index.d.cts +1 -1
  41. package/dist/machines/dialog/index.d.mts +1 -1
  42. package/dist/machines/dialog/index.mjs +1 -1
  43. package/dist/machines/dropdown-menu/index.cjs +2 -2
  44. package/dist/machines/dropdown-menu/index.d.cts +2 -2
  45. package/dist/machines/dropdown-menu/index.d.mts +2 -2
  46. package/dist/machines/dropdown-menu/index.mjs +2 -2
  47. package/dist/machines/editable/index.d.cts +1 -1
  48. package/dist/machines/editable/index.d.mts +1 -1
  49. package/dist/machines/file-upload/index.d.cts +1 -1
  50. package/dist/machines/file-upload/index.d.mts +1 -1
  51. package/dist/machines/floating-panel/index.d.cts +1 -1
  52. package/dist/machines/floating-panel/index.d.mts +1 -1
  53. package/dist/machines/hover-card/index.cjs +1 -1
  54. package/dist/machines/hover-card/index.d.cts +2 -2
  55. package/dist/machines/hover-card/index.d.mts +2 -2
  56. package/dist/machines/hover-card/index.mjs +1 -1
  57. package/dist/machines/listbox/index.d.cts +3 -3
  58. package/dist/machines/listbox/index.d.mts +3 -3
  59. package/dist/machines/marquee/index.d.cts +3 -3
  60. package/dist/machines/marquee/index.d.mts +3 -3
  61. package/dist/machines/navigation-menu/index.d.cts +1 -1
  62. package/dist/machines/navigation-menu/index.d.mts +1 -1
  63. package/dist/machines/number-input/index.d.cts +1 -1
  64. package/dist/machines/number-input/index.d.mts +1 -1
  65. package/dist/machines/password-input/index.d.cts +1 -1
  66. package/dist/machines/password-input/index.d.mts +1 -1
  67. package/dist/machines/pin-input/index.d.cts +1 -1
  68. package/dist/machines/pin-input/index.d.mts +1 -1
  69. package/dist/machines/popover/index.cjs +9 -9
  70. package/dist/machines/popover/index.d.cts +2 -2
  71. package/dist/machines/popover/index.d.mts +2 -2
  72. package/dist/machines/popover/index.mjs +9 -9
  73. package/dist/machines/progress/index.d.cts +1 -1
  74. package/dist/machines/progress/index.d.mts +1 -1
  75. package/dist/machines/radio-group/index.d.cts +1 -1
  76. package/dist/machines/radio-group/index.d.mts +1 -1
  77. package/dist/machines/rating-group/index.d.cts +1 -1
  78. package/dist/machines/rating-group/index.d.mts +1 -1
  79. package/dist/machines/scroll-area/index.d.cts +1 -1
  80. package/dist/machines/scroll-area/index.d.mts +1 -1
  81. package/dist/machines/select/index.cjs +1 -1
  82. package/dist/machines/select/index.d.cts +3 -3
  83. package/dist/machines/select/index.d.mts +3 -3
  84. package/dist/machines/select/index.mjs +1 -1
  85. package/dist/machines/signature-pad/index.d.cts +1 -1
  86. package/dist/machines/signature-pad/index.d.mts +1 -1
  87. package/dist/machines/slider/index.d.cts +1 -1
  88. package/dist/machines/slider/index.d.mts +1 -1
  89. package/dist/machines/steps/index.d.cts +1 -1
  90. package/dist/machines/steps/index.d.mts +1 -1
  91. package/dist/machines/switch/index.d.cts +1 -1
  92. package/dist/machines/switch/index.d.mts +1 -1
  93. package/dist/machines/tags-input/index.d.cts +1 -1
  94. package/dist/machines/tags-input/index.d.mts +1 -1
  95. package/dist/machines/timer/index.d.cts +1 -1
  96. package/dist/machines/timer/index.d.mts +1 -1
  97. package/dist/machines/toast/index.d.cts +1 -1
  98. package/dist/machines/toast/index.d.mts +1 -1
  99. package/dist/machines/tooltip/index.cjs +1 -1
  100. package/dist/machines/tooltip/index.d.cts +2 -2
  101. package/dist/machines/tooltip/index.d.mts +2 -2
  102. package/dist/machines/tooltip/index.mjs +1 -1
  103. package/dist/machines/tour/index.cjs +1 -1
  104. package/dist/machines/tour/index.d.cts +2 -2
  105. package/dist/machines/tour/index.d.mts +2 -2
  106. package/dist/machines/tour/index.mjs +1 -1
  107. package/dist/machines/tree-view/index.d.cts +1 -1
  108. package/dist/machines/tree-view/index.d.mts +1 -1
  109. package/dist/{popper-3Bdh0pfy.mjs → popper-BDy37WA0.mjs} +42 -11
  110. package/dist/{popper-Bca_O70s.cjs → popper-Cx3KHzeT.cjs} +42 -11
  111. package/dist/popper.cjs +1 -1
  112. package/dist/popper.d.cts +1 -1
  113. package/dist/popper.d.mts +1 -1
  114. package/dist/popper.mjs +1 -1
  115. package/dist/{selection-DdNvrKbj.d.mts → selection-6urf-c8j.d.mts} +1 -1
  116. package/dist/{selection-Bb_ZSVxe.d.cts → selection-BmS2RDMq.d.cts} +1 -1
  117. package/dist/{types-DEn9MoSw.d.cts → types-CZAtqGqH.d.cts} +1 -0
  118. package/package.json +8 -7
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/slider/slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "track" | "control" | "thumb" | "valueText" | "markerGroup" | "marker" | "range" | "draggingIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "track" | "thumb" | "range" | "valueText" | "marker" | "markerGroup" | "draggingIndicator">;
7
7
  //#endregion
8
8
  //#region src/machines/slider/slider.types.d.ts
9
9
  type ThumbCollisionBehavior = "none" | "push" | "swap";
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/slider/slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "track" | "control" | "thumb" | "valueText" | "markerGroup" | "marker" | "range" | "draggingIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "track" | "thumb" | "range" | "valueText" | "marker" | "markerGroup" | "draggingIndicator">;
7
7
  //#endregion
8
8
  //#region src/machines/slider/slider.types.d.ts
9
9
  type ThumbCollisionBehavior = "none" | "push" | "swap";
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/steps/steps.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "trigger" | "indicator" | "item" | "content" | "separator" | "progress" | "list" | "nextTrigger" | "prevTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "indicator" | "content" | "progress" | "item" | "list" | "separator" | "nextTrigger" | "prevTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/steps/steps.types.d.ts
9
9
  interface StepChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/steps/steps.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "trigger" | "indicator" | "item" | "content" | "separator" | "progress" | "list" | "nextTrigger" | "prevTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "indicator" | "content" | "progress" | "item" | "list" | "separator" | "nextTrigger" | "prevTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/steps/steps.types.d.ts
9
9
  interface StepChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/switch/switch.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "thumb">;
7
7
  //#endregion
8
8
  //#region src/machines/switch/switch.types.d.ts
9
9
  interface CheckedChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/switch/switch.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "thumb">;
7
7
  //#endregion
8
8
  //#region src/machines/switch/switch.types.d.ts
9
9
  interface CheckedChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
5
5
  import { t as LiveRegion } from "../../index-BO-Z3fhz.cjs";
6
6
 
7
7
  //#region src/machines/tags-input/tags-input.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"root" | "input" | "label" | "control" | "item" | "itemText" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "itemInput">;
8
+ declare const anatomy: AnatomyInstance<"root" | "control" | "input" | "label" | "item" | "itemText" | "clearTrigger" | "itemPreview" | "itemInput" | "itemDeleteTrigger">;
9
9
  //#endregion
10
10
  //#region src/machines/tags-input/tags-input.types.d.ts
11
11
  interface ValueChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
5
5
  import { t as LiveRegion } from "../../index-1L40UHp8.mjs";
6
6
 
7
7
  //#region src/machines/tags-input/tags-input.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"root" | "input" | "label" | "control" | "item" | "itemText" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "itemInput">;
8
+ declare const anatomy: AnatomyInstance<"root" | "control" | "input" | "label" | "item" | "itemText" | "clearTrigger" | "itemPreview" | "itemInput" | "itemDeleteTrigger">;
9
9
  //#endregion
10
10
  //#region src/machines/tags-input/tags-input.types.d.ts
11
11
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
3
3
  import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/timer/timer.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "area" | "itemValue" | "itemLabel" | "actionTrigger" | "separator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "area" | "item" | "actionTrigger" | "separator" | "itemValue" | "itemLabel">;
7
7
  //#endregion
8
8
  //#region src/machines/timer/timer.types.d.ts
9
9
  interface Time<T = number> {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
3
3
  import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/timer/timer.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "area" | "itemValue" | "itemLabel" | "actionTrigger" | "separator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "area" | "item" | "actionTrigger" | "separator" | "itemValue" | "itemLabel">;
7
7
  //#endregion
8
8
  //#region src/machines/timer/timer.types.d.ts
9
9
  interface Time<T = number> {
@@ -175,7 +175,7 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
175
175
  declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
176
176
  //#endregion
177
177
  //#region src/machines/toast/toast.anatomy.d.ts
178
- declare const anatomy: AnatomyInstance<"root" | "title" | "description" | "closeTrigger" | "actionTrigger" | "group">;
178
+ declare const anatomy: AnatomyInstance<"root" | "closeTrigger" | "title" | "description" | "actionTrigger" | "group">;
179
179
  //#endregion
180
180
  //#region src/machines/toast/toast.connect.d.ts
181
181
  declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>>, normalize: NormalizeProps<T>): ToastApi<T, O>;
@@ -175,7 +175,7 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
175
175
  declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
176
176
  //#endregion
177
177
  //#region src/machines/toast/toast.anatomy.d.ts
178
- declare const anatomy: AnatomyInstance<"root" | "title" | "description" | "closeTrigger" | "actionTrigger" | "group">;
178
+ declare const anatomy: AnatomyInstance<"root" | "closeTrigger" | "title" | "description" | "actionTrigger" | "group">;
179
179
  //#endregion
180
180
  //#region src/machines/toast/toast.connect.d.ts
181
181
  declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>>, normalize: NormalizeProps<T>): ToastApi<T, O>;
@@ -4,7 +4,7 @@ const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
4
4
  const require_utils = require("../../utils-ByNiZU8f.cjs");
5
5
  const require_core = require("../../core-nBg9RC_y.cjs");
6
6
  const require_focus_visible = require("../../focus-visible-75XTctXf.cjs");
7
- const require_popper = require("../../popper-Bca_O70s.cjs");
7
+ const require_popper = require("../../popper-Cx3KHzeT.cjs");
8
8
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
9
9
  //#region src/machines/tooltip/tooltip.anatomy.ts
10
10
  const anatomy = require_create_anatomy.createAnatomy("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content");
@@ -1,10 +1,10 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
2
  import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
- import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.cjs";
4
+ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
5
5
 
6
6
  //#region src/machines/tooltip/tooltip.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"trigger" | "positioner" | "content" | "arrow" | "arrowTip">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
8
8
  //#endregion
9
9
  //#region src/machines/tooltip/tooltip.types.d.ts
10
10
  interface OpenChangeDetails {
@@ -1,10 +1,10 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
2
  import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
- import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.mjs";
4
+ import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
5
5
 
6
6
  //#region src/machines/tooltip/tooltip.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"trigger" | "positioner" | "content" | "arrow" | "arrowTip">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
8
8
  //#endregion
9
9
  //#region src/machines/tooltip/tooltip.types.d.ts
10
10
  interface OpenChangeDetails {
@@ -3,7 +3,7 @@ import { M as getOverflowAncestors, St as isLeftClick, _t as isComposingEvent, u
3
3
  import { c as createStore, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
4
  import { a as createMachine, i as createGuards } from "../../core-BmIEKqtP.mjs";
5
5
  import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-D5qBaAOn.mjs";
6
- import { n as getPlacement, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
6
+ import { n as getPlacement, t as getPlacementStyles } from "../../popper-BDy37WA0.mjs";
7
7
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
8
8
  //#region src/machines/tooltip/tooltip.anatomy.ts
9
9
  const anatomy = createAnatomy("tooltip").parts("trigger", "arrow", "arrowTip", "positioner", "content");
@@ -6,7 +6,7 @@ const require_core = require("../../core-nBg9RC_y.cjs");
6
6
  const require_interact_outside = require("../../interact-outside-Cx4J0EBf.cjs");
7
7
  const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
8
8
  const require_focus_trap = require("../../focus-trap-fucc6OU_.cjs");
9
- const require_popper = require("../../popper-Bca_O70s.cjs");
9
+ const require_popper = require("../../popper-Cx3KHzeT.cjs");
10
10
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
11
11
  //#region src/machines/tour/tour.anatomy.ts
12
12
  const anatomy = require_create_anatomy.createAnatomy("tour").parts("content", "actionTrigger", "closeTrigger", "progressText", "title", "description", "positioner", "arrow", "arrowTip", "backdrop", "spotlight");
@@ -3,10 +3,10 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
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 { i as waitForElement, n as WaitForOptions, o as waitForPromise, r as WaitForPromiseReturn } from "../../wait-for-DGDBtAM2.cjs";
5
5
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
6
- import { c as Placement } from "../../types-DEn9MoSw.cjs";
6
+ import { c as Placement } from "../../types-CZAtqGqH.cjs";
7
7
 
8
8
  //#region src/machines/tour/tour.anatomy.d.ts
9
- declare const anatomy: AnatomyInstance<"backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger" | "actionTrigger" | "arrow" | "progressText" | "arrowTip" | "spotlight">;
9
+ declare const anatomy: AnatomyInstance<"backdrop" | "content" | "closeTrigger" | "title" | "arrow" | "arrowTip" | "positioner" | "description" | "actionTrigger" | "progressText" | "spotlight">;
10
10
  //#endregion
11
11
  //#region src/machines/tour/utils/rect.d.ts
12
12
  interface Point {
@@ -3,10 +3,10 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rz
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 { i as waitForElement, n as WaitForOptions, o as waitForPromise, r as WaitForPromiseReturn } from "../../wait-for-CV7JYddH.mjs";
5
5
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
6
- import { u as Placement } from "../../index-DHp3-EkH.mjs";
6
+ import { u as Placement } from "../../index-fMh0VDkR.mjs";
7
7
 
8
8
  //#region src/machines/tour/tour.anatomy.d.ts
9
- declare const anatomy: AnatomyInstance<"backdrop" | "positioner" | "content" | "title" | "description" | "closeTrigger" | "actionTrigger" | "arrow" | "progressText" | "arrowTip" | "spotlight">;
9
+ declare const anatomy: AnatomyInstance<"backdrop" | "content" | "closeTrigger" | "title" | "arrow" | "arrowTip" | "positioner" | "description" | "actionTrigger" | "progressText" | "spotlight">;
10
10
  //#endregion
11
11
  //#region src/machines/tour/utils/rect.d.ts
12
12
  interface Point {
@@ -5,7 +5,7 @@ import { a as createMachine, c as mergeProps, i as createGuards } from "../../co
5
5
  import { t as trackInteractOutside } from "../../interact-outside-2qkUnl4N.mjs";
6
6
  import { t as trackDismissableBranch } from "../../dismissable-DWfZGIA7.mjs";
7
7
  import { t as trapFocus } from "../../focus-trap-DzBvBlTH.mjs";
8
- import { n as getPlacement, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
8
+ import { n as getPlacement, t as getPlacementStyles } from "../../popper-BDy37WA0.mjs";
9
9
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
10
10
  //#region src/machines/tour/tour.anatomy.ts
11
11
  const anatomy = createAnatomy("tour").parts("content", "actionTrigger", "closeTrigger", "progressText", "title", "description", "positioner", "arrow", "arrowTip", "backdrop", "spotlight");
@@ -6,7 +6,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
6
6
  import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
7
7
 
8
8
  //#region src/machines/tree-view/tree-view.anatomy.d.ts
9
- declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "itemIndicator" | "itemText" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
9
+ declare const anatomy: AnatomyInstance<"root" | "label" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "item" | "itemIndicator" | "itemText" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
10
10
  //#endregion
11
11
  //#region src/machines/tree-view/tree-view.collection.d.ts
12
12
  declare const collection: {
@@ -6,7 +6,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
6
6
  import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
7
7
 
8
8
  //#region src/machines/tree-view/tree-view.anatomy.d.ts
9
- declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "itemIndicator" | "itemText" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
9
+ declare const anatomy: AnatomyInstance<"root" | "label" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "item" | "itemIndicator" | "itemText" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
10
10
  //#endregion
11
11
  //#region src/machines/tree-view/tree-view.collection.d.ts
12
12
  declare const collection: {
@@ -139,6 +139,9 @@ function roundByDpr(win, value) {
139
139
  const dpr = win.devicePixelRatio || 1;
140
140
  return Math.round(value * dpr) / dpr;
141
141
  }
142
+ function isApproximatelyEqual(a, b) {
143
+ return a != null && Math.abs(a - b) < .5;
144
+ }
142
145
  function resolveBoundaryOption(boundary) {
143
146
  if (typeof boundary === "function") return boundary();
144
147
  if (boundary === "clipping-ancestors") return "clippingAncestors";
@@ -186,6 +189,11 @@ function getShiftMiddleware(opts) {
186
189
  });
187
190
  }
188
191
  function getSizeMiddleware(opts) {
192
+ if (opts.sizeMiddleware === false && !opts.sameWidth && !opts.fitViewport) return;
193
+ let lastReferenceWidth;
194
+ let lastReferenceHeight;
195
+ let lastAvailableWidth;
196
+ let lastAvailableHeight;
189
197
  return size({
190
198
  padding: opts.overflowPadding,
191
199
  apply({ elements, rects, availableHeight, availableWidth }) {
@@ -194,10 +202,22 @@ function getSizeMiddleware(opts) {
194
202
  const referenceHeight = Math.round(rects.reference.height);
195
203
  availableWidth = Math.floor(availableWidth);
196
204
  availableHeight = Math.floor(availableHeight);
197
- floating.style.setProperty("--reference-width", `${referenceWidth}px`);
198
- floating.style.setProperty("--reference-height", `${referenceHeight}px`);
199
- floating.style.setProperty("--available-width", `${availableWidth}px`);
200
- floating.style.setProperty("--available-height", `${availableHeight}px`);
205
+ if (!isApproximatelyEqual(lastReferenceWidth, referenceWidth)) {
206
+ floating.style.setProperty("--reference-width", `${referenceWidth}px`);
207
+ lastReferenceWidth = referenceWidth;
208
+ }
209
+ if (!isApproximatelyEqual(lastReferenceHeight, referenceHeight)) {
210
+ floating.style.setProperty("--reference-height", `${referenceHeight}px`);
211
+ lastReferenceHeight = referenceHeight;
212
+ }
213
+ if (!isApproximatelyEqual(lastAvailableWidth, availableWidth)) {
214
+ floating.style.setProperty("--available-width", `${availableWidth}px`);
215
+ lastAvailableWidth = availableWidth;
216
+ }
217
+ if (!isApproximatelyEqual(lastAvailableHeight, availableHeight)) {
218
+ floating.style.setProperty("--available-height", `${availableHeight}px`);
219
+ lastAvailableHeight = availableHeight;
220
+ }
201
221
  }
202
222
  });
203
223
  }
@@ -239,6 +259,9 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
239
259
  rectMiddleware
240
260
  ];
241
261
  const { placement, strategy, onComplete, onPositioned } = options;
262
+ let lastX;
263
+ let lastY;
264
+ let zIndexComputed = false;
242
265
  const updatePosition = async () => {
243
266
  if (!reference || !floating) return;
244
267
  const pos = await computePosition(reference, floating, {
@@ -247,12 +270,18 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
247
270
  strategy
248
271
  });
249
272
  onComplete?.(pos);
250
- onPositioned?.({ placed: true });
251
273
  const win = getWindow(floating);
252
274
  const x = roundByDpr(win, pos.x);
253
275
  const y = roundByDpr(win, pos.y);
254
- floating.style.setProperty("--x", `${x}px`);
255
- floating.style.setProperty("--y", `${y}px`);
276
+ floating.style.transform = `translate3d(${x}px, ${y}px, 0)`;
277
+ if (!isApproximatelyEqual(lastX, x)) {
278
+ floating.style.setProperty("--x", `${x}px`);
279
+ lastX = x;
280
+ }
281
+ if (!isApproximatelyEqual(lastY, y)) {
282
+ floating.style.setProperty("--y", `${y}px`);
283
+ lastY = y;
284
+ }
256
285
  if (options.hideWhenDetached) if (pos.middlewareData.hide?.referenceHidden) {
257
286
  floating.style.setProperty("visibility", "hidden");
258
287
  floating.style.setProperty("pointer-events", "none");
@@ -260,10 +289,12 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
260
289
  floating.style.removeProperty("visibility");
261
290
  floating.style.removeProperty("pointer-events");
262
291
  }
263
- const contentEl = floating.firstElementChild;
264
- if (contentEl) {
265
- const styles = getComputedStyle(contentEl);
266
- floating.style.setProperty("--z-index", styles.zIndex);
292
+ if (!zIndexComputed) {
293
+ const contentEl = floating.firstElementChild;
294
+ if (contentEl) {
295
+ floating.style.setProperty("--z-index", getComputedStyle(contentEl).zIndex);
296
+ zIndexComputed = true;
297
+ }
267
298
  }
268
299
  };
269
300
  const update = async () => {
@@ -140,6 +140,9 @@ function roundByDpr(win, value) {
140
140
  const dpr = win.devicePixelRatio || 1;
141
141
  return Math.round(value * dpr) / dpr;
142
142
  }
143
+ function isApproximatelyEqual(a, b) {
144
+ return a != null && Math.abs(a - b) < .5;
145
+ }
143
146
  function resolveBoundaryOption(boundary) {
144
147
  if (typeof boundary === "function") return boundary();
145
148
  if (boundary === "clipping-ancestors") return "clippingAncestors";
@@ -187,6 +190,11 @@ function getShiftMiddleware(opts) {
187
190
  });
188
191
  }
189
192
  function getSizeMiddleware(opts) {
193
+ if (opts.sizeMiddleware === false && !opts.sameWidth && !opts.fitViewport) return;
194
+ let lastReferenceWidth;
195
+ let lastReferenceHeight;
196
+ let lastAvailableWidth;
197
+ let lastAvailableHeight;
190
198
  return (0, _floating_ui_dom.size)({
191
199
  padding: opts.overflowPadding,
192
200
  apply({ elements, rects, availableHeight, availableWidth }) {
@@ -195,10 +203,22 @@ function getSizeMiddleware(opts) {
195
203
  const referenceHeight = Math.round(rects.reference.height);
196
204
  availableWidth = Math.floor(availableWidth);
197
205
  availableHeight = Math.floor(availableHeight);
198
- floating.style.setProperty("--reference-width", `${referenceWidth}px`);
199
- floating.style.setProperty("--reference-height", `${referenceHeight}px`);
200
- floating.style.setProperty("--available-width", `${availableWidth}px`);
201
- floating.style.setProperty("--available-height", `${availableHeight}px`);
206
+ if (!isApproximatelyEqual(lastReferenceWidth, referenceWidth)) {
207
+ floating.style.setProperty("--reference-width", `${referenceWidth}px`);
208
+ lastReferenceWidth = referenceWidth;
209
+ }
210
+ if (!isApproximatelyEqual(lastReferenceHeight, referenceHeight)) {
211
+ floating.style.setProperty("--reference-height", `${referenceHeight}px`);
212
+ lastReferenceHeight = referenceHeight;
213
+ }
214
+ if (!isApproximatelyEqual(lastAvailableWidth, availableWidth)) {
215
+ floating.style.setProperty("--available-width", `${availableWidth}px`);
216
+ lastAvailableWidth = availableWidth;
217
+ }
218
+ if (!isApproximatelyEqual(lastAvailableHeight, availableHeight)) {
219
+ floating.style.setProperty("--available-height", `${availableHeight}px`);
220
+ lastAvailableHeight = availableHeight;
221
+ }
202
222
  }
203
223
  });
204
224
  }
@@ -240,6 +260,9 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
240
260
  rectMiddleware
241
261
  ];
242
262
  const { placement, strategy, onComplete, onPositioned } = options;
263
+ let lastX;
264
+ let lastY;
265
+ let zIndexComputed = false;
243
266
  const updatePosition = async () => {
244
267
  if (!reference || !floating) return;
245
268
  const pos = await (0, _floating_ui_dom.computePosition)(reference, floating, {
@@ -248,12 +271,18 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
248
271
  strategy
249
272
  });
250
273
  onComplete?.(pos);
251
- onPositioned?.({ placed: true });
252
274
  const win = require_dom_query.getWindow(floating);
253
275
  const x = roundByDpr(win, pos.x);
254
276
  const y = roundByDpr(win, pos.y);
255
- floating.style.setProperty("--x", `${x}px`);
256
- floating.style.setProperty("--y", `${y}px`);
277
+ floating.style.transform = `translate3d(${x}px, ${y}px, 0)`;
278
+ if (!isApproximatelyEqual(lastX, x)) {
279
+ floating.style.setProperty("--x", `${x}px`);
280
+ lastX = x;
281
+ }
282
+ if (!isApproximatelyEqual(lastY, y)) {
283
+ floating.style.setProperty("--y", `${y}px`);
284
+ lastY = y;
285
+ }
257
286
  if (options.hideWhenDetached) if (pos.middlewareData.hide?.referenceHidden) {
258
287
  floating.style.setProperty("visibility", "hidden");
259
288
  floating.style.setProperty("pointer-events", "none");
@@ -261,10 +290,12 @@ function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
261
290
  floating.style.removeProperty("visibility");
262
291
  floating.style.removeProperty("pointer-events");
263
292
  }
264
- const contentEl = floating.firstElementChild;
265
- if (contentEl) {
266
- const styles = require_dom_query.getComputedStyle(contentEl);
267
- floating.style.setProperty("--z-index", styles.zIndex);
293
+ if (!zIndexComputed) {
294
+ const contentEl = floating.firstElementChild;
295
+ if (contentEl) {
296
+ floating.style.setProperty("--z-index", require_dom_query.getComputedStyle(contentEl).zIndex);
297
+ zIndexComputed = true;
298
+ }
268
299
  }
269
300
  };
270
301
  const update = async () => {
package/dist/popper.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  require("./dom-query-Bd63cRVF.cjs");
3
3
  require("./utils-ByNiZU8f.cjs");
4
- const require_popper = require("./popper-Bca_O70s.cjs");
4
+ const require_popper = require("./popper-Cx3KHzeT.cjs");
5
5
  exports.getPlacement = require_popper.getPlacement;
6
6
  exports.getPlacementSide = require_popper.getPlacementSide;
7
7
  exports.getPlacementStyles = require_popper.getPlacementStyles;
package/dist/popper.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { a as MaybeElement, c as Placement, d as PositioningOptions, i as ComputePositionReturn, l as PlacementAlign, n as AutoUpdateOptions, o as MaybeFn, r as Boundary, s as MaybeRectElement, t as AnchorRect, u as PlacementSide } from "./types-DEn9MoSw.cjs";
1
+ import { a as MaybeElement, c as Placement, d as PositioningOptions, i as ComputePositionReturn, l as PlacementAlign, n as AutoUpdateOptions, o as MaybeFn, r as Boundary, s as MaybeRectElement, t as AnchorRect, u as PlacementSide } from "./types-CZAtqGqH.cjs";
2
2
  import { Placement as Placement$1 } from "@floating-ui/dom";
3
3
 
4
4
  //#region src/shared/popper/get-placement.d.ts
package/dist/popper.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as getPlacement, c as Boundary, d as PlacementAlign, f as PlacementSide, i as getPlacementStyles, l as ComputePositionReturn, n as isValidPlacement, o as AnchorRect, p as PositioningOptions, r as GetPlacementStylesOptions, s as AutoUpdateOptions, t as getPlacementSide, u as Placement } from "./index-DHp3-EkH.mjs";
1
+ import { a as getPlacement, c as Boundary, d as PlacementAlign, f as PlacementSide, i as getPlacementStyles, l as ComputePositionReturn, n as isValidPlacement, o as AnchorRect, p as PositioningOptions, r as GetPlacementStylesOptions, s as AutoUpdateOptions, t as getPlacementSide, u as Placement } from "./index-fMh0VDkR.mjs";
2
2
  export { AnchorRect, AutoUpdateOptions, Boundary, ComputePositionReturn, GetPlacementStylesOptions, Placement, PlacementAlign, PlacementSide, PositioningOptions, getPlacement, getPlacementSide, getPlacementStyles, isValidPlacement };
package/dist/popper.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./dom-query-s2ESLR2U.mjs";
2
2
  import "./utils-VVoZ_v29.mjs";
3
- import { i as isValidPlacement, n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "./popper-3Bdh0pfy.mjs";
3
+ import { i as isValidPlacement, n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "./popper-BDy37WA0.mjs";
4
4
  export { getPlacement, getPlacementSide, getPlacementStyles, isValidPlacement };
@@ -1,5 +1,5 @@
1
1
  import { r as CollectionOptions, t as CollectionItem } from "./types-9uw8LHpE.mjs";
2
- import { t as ListCollection } from "./list-collection-DkRA5LOq.mjs";
2
+ import { t as ListCollection } from "./list-collection-IF510iNl.mjs";
3
3
 
4
4
  //#region src/shared/collection/grid-collection.d.ts
5
5
  interface GridCollectionOptions<T> extends CollectionOptions<T> {
@@ -1,5 +1,5 @@
1
1
  import { r as CollectionOptions, t as CollectionItem } from "./types-D-7AMgSE.cjs";
2
- import { t as ListCollection } from "./list-collection-B_8BN0XB.cjs";
2
+ import { t as ListCollection } from "./list-collection-Cjgbx_9l.cjs";
3
3
 
4
4
  //#region src/shared/collection/grid-collection.d.ts
5
5
  interface GridCollectionOptions<T> extends CollectionOptions<T> {
@@ -29,6 +29,7 @@ interface PositioningOptions {
29
29
  overlap?: boolean | undefined;
30
30
  sameWidth?: boolean | undefined;
31
31
  fitViewport?: boolean | undefined;
32
+ sizeMiddleware?: boolean | undefined;
32
33
  boundary?: (() => Boundary) | Boundary | "clipping-ancestors" | undefined;
33
34
  listeners?: boolean | AutoUpdateOptions | undefined;
34
35
  onComplete?: ((data: ComputePositionReturn) => void) | undefined;
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@sprawlify/primitives",
3
- "version": "0.0.106",
4
- "type": "module",
3
+ "version": "0.0.108",
5
4
  "description": "A set of primitive components for building user interfaces.",
5
+ "license": "MIT",
6
6
  "author": "sprawlify <npm@sprawlify.com>",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "type": "module",
7
11
  "main": "./dist/index.cjs",
8
12
  "module": "./dist/index.mjs",
9
13
  "types": "./dist/index.d.mts",
@@ -792,9 +796,6 @@
792
796
  "publishConfig": {
793
797
  "access": "public"
794
798
  },
795
- "files": [
796
- "dist"
797
- ],
798
799
  "dependencies": {
799
800
  "@floating-ui/dom": "^1.7.6",
800
801
  "csstype": "^3.2.3",
@@ -810,10 +811,10 @@
810
811
  "engines": {
811
812
  "node": ">=24"
812
813
  },
813
- "license": "MIT",
814
814
  "scripts": {
815
815
  "build": "tsdown",
816
816
  "typecheck": "tsc --noEmit",
817
- "lint": "eslint src --fix"
817
+ "lint": "oxlint --fix",
818
+ "format": "oxfmt"
818
819
  }
819
820
  }