@sprawlify/primitives 0.0.111 → 0.0.112

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 (105) hide show
  1. package/dist/collection.d.cts +2 -2
  2. package/dist/collection.d.mts +2 -2
  3. package/dist/{focus-visible-GXKbbuiq.mjs → focus-visible-BuLf8M9F.mjs} +10 -9
  4. package/dist/{focus-visible-JdJXqMic.cjs → focus-visible-Co_9bW09.cjs} +14 -7
  5. package/dist/focus-visible.cjs +2 -1
  6. package/dist/focus-visible.d.cts +2 -1
  7. package/dist/focus-visible.d.mts +2 -1
  8. package/dist/focus-visible.mjs +2 -2
  9. package/dist/{list-collection-Cjgbx_9l.d.cts → list-collection-B_8BN0XB.d.cts} +1 -1
  10. package/dist/{list-collection-IF510iNl.d.mts → list-collection-DkRA5LOq.d.mts} +1 -1
  11. package/dist/machines/angle-slider/index.d.cts +1 -1
  12. package/dist/machines/angle-slider/index.d.mts +1 -1
  13. package/dist/machines/carousel/index.d.cts +1 -1
  14. package/dist/machines/carousel/index.d.mts +1 -1
  15. package/dist/machines/cascade-select/index.cjs +7 -2
  16. package/dist/machines/cascade-select/index.d.cts +2 -2
  17. package/dist/machines/cascade-select/index.d.mts +2 -2
  18. package/dist/machines/cascade-select/index.mjs +7 -2
  19. package/dist/machines/checkbox/index.cjs +1 -1
  20. package/dist/machines/checkbox/index.d.cts +1 -1
  21. package/dist/machines/checkbox/index.d.mts +1 -1
  22. package/dist/machines/checkbox/index.mjs +1 -1
  23. package/dist/machines/clipboard/index.d.cts +1 -1
  24. package/dist/machines/clipboard/index.d.mts +1 -1
  25. package/dist/machines/collapsible/index.d.cts +1 -1
  26. package/dist/machines/collapsible/index.d.mts +1 -1
  27. package/dist/machines/color-picker/index.d.cts +1 -1
  28. package/dist/machines/color-picker/index.d.mts +1 -1
  29. package/dist/machines/combobox/index.cjs +9 -3
  30. package/dist/machines/combobox/index.d.cts +2 -2
  31. package/dist/machines/combobox/index.d.mts +2 -2
  32. package/dist/machines/combobox/index.mjs +9 -3
  33. package/dist/machines/date-picker/index.d.cts +1 -1
  34. package/dist/machines/date-picker/index.d.mts +1 -1
  35. package/dist/machines/dialog/index.d.cts +1 -1
  36. package/dist/machines/dialog/index.d.mts +1 -1
  37. package/dist/machines/drawer/index.d.cts +1 -1
  38. package/dist/machines/drawer/index.d.mts +1 -1
  39. package/dist/machines/dropdown-menu/index.cjs +7 -2
  40. package/dist/machines/dropdown-menu/index.d.cts +1 -1
  41. package/dist/machines/dropdown-menu/index.d.mts +1 -1
  42. package/dist/machines/dropdown-menu/index.mjs +7 -2
  43. package/dist/machines/file-upload/index.d.cts +1 -1
  44. package/dist/machines/file-upload/index.d.mts +1 -1
  45. package/dist/machines/floating-panel/index.d.cts +1 -1
  46. package/dist/machines/floating-panel/index.d.mts +1 -1
  47. package/dist/machines/hover-card/index.d.cts +1 -1
  48. package/dist/machines/hover-card/index.d.mts +1 -1
  49. package/dist/machines/image-cropper/index.d.cts +1 -1
  50. package/dist/machines/image-cropper/index.d.mts +1 -1
  51. package/dist/machines/listbox/index.cjs +1 -1
  52. package/dist/machines/listbox/index.d.cts +3 -3
  53. package/dist/machines/listbox/index.d.mts +3 -3
  54. package/dist/machines/listbox/index.mjs +1 -1
  55. package/dist/machines/marquee/index.d.cts +3 -3
  56. package/dist/machines/marquee/index.d.mts +3 -3
  57. package/dist/machines/navigation-menu/index.d.cts +1 -1
  58. package/dist/machines/navigation-menu/index.d.mts +1 -1
  59. package/dist/machines/number-input/index.d.cts +1 -1
  60. package/dist/machines/number-input/index.d.mts +1 -1
  61. package/dist/machines/pagination/index.d.cts +1 -1
  62. package/dist/machines/pagination/index.d.mts +1 -1
  63. package/dist/machines/password-input/index.d.cts +1 -1
  64. package/dist/machines/password-input/index.d.mts +1 -1
  65. package/dist/machines/popover/index.d.cts +1 -1
  66. package/dist/machines/popover/index.d.mts +1 -1
  67. package/dist/machines/progress/index.d.cts +1 -1
  68. package/dist/machines/progress/index.d.mts +1 -1
  69. package/dist/machines/radio-group/index.cjs +1 -1
  70. package/dist/machines/radio-group/index.d.cts +1 -1
  71. package/dist/machines/radio-group/index.d.mts +1 -1
  72. package/dist/machines/radio-group/index.mjs +1 -1
  73. package/dist/machines/scroll-area/index.d.cts +1 -1
  74. package/dist/machines/scroll-area/index.d.mts +1 -1
  75. package/dist/machines/select/index.cjs +7 -2
  76. package/dist/machines/select/index.d.cts +2 -2
  77. package/dist/machines/select/index.d.mts +2 -2
  78. package/dist/machines/select/index.mjs +7 -2
  79. package/dist/machines/signature-pad/index.d.cts +1 -1
  80. package/dist/machines/signature-pad/index.d.mts +1 -1
  81. package/dist/machines/slider/index.d.cts +1 -1
  82. package/dist/machines/slider/index.d.mts +1 -1
  83. package/dist/machines/splitter/index.d.cts +1 -1
  84. package/dist/machines/splitter/index.d.mts +1 -1
  85. package/dist/machines/steps/index.d.cts +1 -1
  86. package/dist/machines/steps/index.d.mts +1 -1
  87. package/dist/machines/switch/index.cjs +1 -1
  88. package/dist/machines/switch/index.mjs +1 -1
  89. package/dist/machines/tabs/index.d.cts +1 -1
  90. package/dist/machines/tabs/index.d.mts +1 -1
  91. package/dist/machines/tags-input/index.d.cts +1 -1
  92. package/dist/machines/tags-input/index.d.mts +1 -1
  93. package/dist/machines/timer/index.d.cts +1 -1
  94. package/dist/machines/timer/index.d.mts +1 -1
  95. package/dist/machines/toast/index.d.cts +3 -3
  96. package/dist/machines/toast/index.d.mts +3 -3
  97. package/dist/machines/tooltip/index.cjs +6 -6
  98. package/dist/machines/tooltip/index.d.cts +1 -1
  99. package/dist/machines/tooltip/index.d.mts +1 -1
  100. package/dist/machines/tooltip/index.mjs +7 -7
  101. package/dist/machines/tour/index.d.cts +1 -1
  102. package/dist/machines/tour/index.d.mts +1 -1
  103. package/dist/{selection-BmS2RDMq.d.cts → selection-Bb_ZSVxe.d.cts} +1 -1
  104. package/dist/{selection-6urf-c8j.d.mts → selection-DdNvrKbj.d.mts} +1 -1
  105. package/package.json +1 -1
@@ -6,6 +6,7 @@ const require_collection = require("../../collection-BBgC8xCb.cjs");
6
6
  const require_core = require("../../core-DwdPztGA.cjs");
7
7
  require("../../interact-outside-Bg-QSXqp.cjs");
8
8
  const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
9
+ const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
9
10
  const require_popper = require("../../popper-viCrafLC.cjs");
10
11
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
11
12
  //#region src/machines/select/select.anatomy.ts
@@ -725,6 +726,7 @@ const machine = require_core.createMachine({
725
726
  exit: ["scrollContentToTop"],
726
727
  effects: [
727
728
  "trackDismissableElement",
729
+ "trackFocusVisible",
728
730
  "computePlacement",
729
731
  "scrollToHighlightedItem"
730
732
  ],
@@ -828,6 +830,9 @@ const machine = require_core.createMachine({
828
830
  isTriggerArrowDownEvent: ({ event }) => event.previousEvent?.type === "TRIGGER.ARROW_DOWN"
829
831
  },
830
832
  effects: {
833
+ trackFocusVisible({ scope }) {
834
+ return require_focus_visible.trackFocusVisible({ root: scope.getRootNode?.() });
835
+ },
831
836
  trackFormControlState({ context, scope }) {
832
837
  return require_dom_query.trackFormControl(getHiddenSelectEl(scope), {
833
838
  onFieldsetDisabledChange(disabled) {
@@ -874,11 +879,11 @@ const machine = require_core.createMachine({
874
879
  }
875
880
  });
876
881
  },
877
- scrollToHighlightedItem({ context, prop, scope, event }) {
882
+ scrollToHighlightedItem({ context, prop, scope }) {
878
883
  const exec = (immediate) => {
879
884
  const highlightedValue = context.get("highlightedValue");
880
885
  if (highlightedValue == null) return;
881
- if (event.current().type.includes("POINTER")) return;
886
+ if (require_focus_visible.getInteractionModality() !== "keyboard") return;
882
887
  const contentEl = getContentEl(scope);
883
888
  const scrollToIndexFn = prop("scrollToIndexFn");
884
889
  if (scrollToIndexFn) {
@@ -1,6 +1,6 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-D-7AMgSE.cjs";
3
- import { t as ListCollection } from "../../list-collection-Cjgbx_9l.cjs";
3
+ import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
4
4
  import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
5
5
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
6
6
  import { n as TypeaheadState } from "../../typeahead-DMooWbbX.cjs";
@@ -8,7 +8,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
8
8
  import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
9
9
 
10
10
  //#region src/machines/select/select.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator" | "valueText" | "trigger" | "item" | "itemIndicator" | "itemGroup" | "content" | "positioner" | "itemText" | "list" | "clearTrigger" | "itemGroupLabel">;
11
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "itemGroup" | "valueText" | "clearTrigger" | "positioner" | "list" | "itemGroupLabel">;
12
12
  //#endregion
13
13
  //#region src/machines/select/select.collection.d.ts
14
14
  declare const collection: {
@@ -1,6 +1,6 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
3
- import { t as ListCollection } from "../../list-collection-IF510iNl.mjs";
3
+ import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
4
4
  import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
5
5
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
6
6
  import { n as TypeaheadState } from "../../typeahead-Bbeb1fAR.mjs";
@@ -8,7 +8,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
8
8
  import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
9
9
 
10
10
  //#region src/machines/select/select.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator" | "valueText" | "trigger" | "item" | "itemIndicator" | "itemGroup" | "content" | "positioner" | "itemText" | "list" | "clearTrigger" | "itemGroupLabel">;
11
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "itemGroup" | "valueText" | "clearTrigger" | "positioner" | "list" | "itemGroupLabel">;
12
12
  //#endregion
13
13
  //#region src/machines/select/select.collection.d.ts
14
14
  declare const collection: {
@@ -5,6 +5,7 @@ import { s as ListCollection } from "../../collection-DgzidRvr.mjs";
5
5
  import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
6
6
  import "../../interact-outside-Ba50N1a5.mjs";
7
7
  import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
8
+ import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
8
9
  import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
9
10
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
10
11
  //#region src/machines/select/select.anatomy.ts
@@ -724,6 +725,7 @@ const machine = createMachine({
724
725
  exit: ["scrollContentToTop"],
725
726
  effects: [
726
727
  "trackDismissableElement",
728
+ "trackFocusVisible",
727
729
  "computePlacement",
728
730
  "scrollToHighlightedItem"
729
731
  ],
@@ -827,6 +829,9 @@ const machine = createMachine({
827
829
  isTriggerArrowDownEvent: ({ event }) => event.previousEvent?.type === "TRIGGER.ARROW_DOWN"
828
830
  },
829
831
  effects: {
832
+ trackFocusVisible({ scope }) {
833
+ return trackFocusVisible({ root: scope.getRootNode?.() });
834
+ },
830
835
  trackFormControlState({ context, scope }) {
831
836
  return trackFormControl(getHiddenSelectEl(scope), {
832
837
  onFieldsetDisabledChange(disabled) {
@@ -873,11 +878,11 @@ const machine = createMachine({
873
878
  }
874
879
  });
875
880
  },
876
- scrollToHighlightedItem({ context, prop, scope, event }) {
881
+ scrollToHighlightedItem({ context, prop, scope }) {
877
882
  const exec = (immediate) => {
878
883
  const highlightedValue = context.get("highlightedValue");
879
884
  if (highlightedValue == null) return;
880
- if (event.current().type.includes("POINTER")) return;
885
+ if (getInteractionModality() !== "keyboard") return;
881
886
  const contentEl = getContentEl(scope);
882
887
  const scrollToIndexFn = prop("scrollToIndexFn");
883
888
  if (scrollToIndexFn) {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { StrokeOptions } from "perfect-freehand";
5
5
 
6
6
  //#region src/machines/signature-pad/signature-pad.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "segment" | "segmentPath" | "guide" | "clearTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "clearTrigger" | "segment" | "segmentPath" | "guide">;
8
8
  //#endregion
9
9
  //#region src/machines/signature-pad/signature-pad.types.d.ts
10
10
  interface Point {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { StrokeOptions } from "perfect-freehand";
5
5
 
6
6
  //#region src/machines/signature-pad/signature-pad.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "segment" | "segmentPath" | "guide" | "clearTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "clearTrigger" | "segment" | "segmentPath" | "guide">;
8
8
  //#endregion
9
9
  //#region src/machines/signature-pad/signature-pad.types.d.ts
10
10
  interface Point {
@@ -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" | "control" | "track" | "thumb" | "valueText" | "markerGroup" | "marker" | "range" | "draggingIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb" | "track" | "marker" | "valueText" | "range" | "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" | "control" | "track" | "thumb" | "valueText" | "markerGroup" | "marker" | "range" | "draggingIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb" | "track" | "marker" | "valueText" | "range" | "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/splitter/splitter.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "resizeTrigger" | "panel" | "resizeTriggerIndicator">;
7
7
  //#endregion
8
8
  //#region src/machines/splitter/splitter.types.d.ts
9
9
  type ResizeEvent = PointerEvent | KeyboardEvent;
@@ -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/splitter/splitter.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "panel" | "resizeTrigger" | "resizeTriggerIndicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "resizeTrigger" | "panel" | "resizeTriggerIndicator">;
7
7
  //#endregion
8
8
  //#region src/machines/splitter/splitter.types.d.ts
9
9
  type ResizeEvent = PointerEvent | KeyboardEvent;
@@ -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" | "indicator" | "trigger" | "item" | "nextTrigger" | "prevTrigger" | "progress" | "content" | "separator" | "list">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "content" | "item" | "trigger" | "prevTrigger" | "nextTrigger" | "progress" | "list" | "separator">;
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" | "indicator" | "trigger" | "item" | "nextTrigger" | "prevTrigger" | "progress" | "content" | "separator" | "list">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "content" | "item" | "trigger" | "prevTrigger" | "nextTrigger" | "progress" | "list" | "separator">;
7
7
  //#endregion
8
8
  //#region src/machines/steps/steps.types.d.ts
9
9
  interface StepChangeDetails {
@@ -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_core = require("../../core-DwdPztGA.cjs");
6
- const require_focus_visible = require("../../focus-visible-JdJXqMic.cjs");
6
+ const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
7
7
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
8
8
  //#region src/machines/switch/switch.anatomy.ts
9
9
  const anatomy = require_create_anatomy.createAnatomy("switch").parts("root", "label", "control", "thumb");
@@ -2,7 +2,7 @@ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import { T as trackPress, Vt as isSafari, a as visuallyHiddenStyle, ht as getEventTarget, lt as trackFormControl, rt as dispatchInputCheckedEvent, st as setElementChecked, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
3
3
  import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
4
  import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
5
- import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-GXKbbuiq.mjs";
5
+ import { o as trackFocusVisible, r as isFocusVisible } from "../../focus-visible-BuLf8M9F.mjs";
6
6
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
7
7
  //#region src/machines/switch/switch.anatomy.ts
8
8
  const anatomy = createAnatomy("switch").parts("root", "label", "control", "thumb");
@@ -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, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/tabs/tabs.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "indicator" | "trigger" | "content" | "list">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "content" | "trigger" | "list">;
7
7
  //#endregion
8
8
  //#region src/machines/tabs/tabs.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -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, m as Rect, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/tabs/tabs.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "indicator" | "trigger" | "content" | "list">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "content" | "trigger" | "list">;
7
7
  //#endregion
8
8
  //#region src/machines/tabs/tabs.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -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" | "label" | "control" | "input" | "item" | "itemText" | "clearTrigger" | "itemPreview" | "itemInput" | "itemDeleteTrigger">;
8
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "item" | "input" | "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" | "label" | "control" | "input" | "item" | "itemText" | "clearTrigger" | "itemPreview" | "itemInput" | "itemDeleteTrigger">;
8
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "item" | "input" | "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" | "actionTrigger" | "itemValue" | "itemLabel" | "separator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "area" | "separator" | "itemLabel" | "itemValue" | "actionTrigger">;
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" | "actionTrigger" | "itemValue" | "itemLabel" | "separator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "area" | "separator" | "itemLabel" | "itemValue" | "actionTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/timer/timer.types.d.ts
9
9
  interface Time<T = number> {
@@ -43,7 +43,7 @@ interface ToastProps<T = any> extends Omit<CommonProperties, "id">, Options<T> {
43
43
  }
44
44
  type ToastPropsWithDefault = "type" | "parent" | "duration" | "id" | "removeDelay";
45
45
  type ToastSchema<O = any> = {
46
- props: RequiredBy<ToastProps<O>, ToastPropsWithDefault>;
46
+ props: RequiredBy<ToastProps<O>, Extract<ToastPropsWithDefault, keyof ToastProps<O>>>;
47
47
  context: {
48
48
  mounted: boolean;
49
49
  initialHeight: number;
@@ -88,7 +88,7 @@ type ToastGroupSchema = {
88
88
  state: "stack" | "overlap";
89
89
  props: ToastGroupProps;
90
90
  context: {
91
- toasts: RequiredBy<ToastProps, ToastPropsWithDefault>[];
91
+ toasts: RequiredBy<ToastProps, Extract<ToastPropsWithDefault, keyof ToastProps>>[];
92
92
  heights: ToastHeight[];
93
93
  };
94
94
  computed: {
@@ -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" | "actionTrigger" | "closeTrigger" | "group">;
178
+ declare const anatomy: AnatomyInstance<"root" | "title" | "actionTrigger" | "group" | "description" | "closeTrigger">;
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>;
@@ -43,7 +43,7 @@ interface ToastProps<T = any> extends Omit<CommonProperties, "id">, Options<T> {
43
43
  }
44
44
  type ToastPropsWithDefault = "type" | "parent" | "duration" | "id" | "removeDelay";
45
45
  type ToastSchema<O = any> = {
46
- props: RequiredBy<ToastProps<O>, ToastPropsWithDefault>;
46
+ props: RequiredBy<ToastProps<O>, Extract<ToastPropsWithDefault, keyof ToastProps<O>>>;
47
47
  context: {
48
48
  mounted: boolean;
49
49
  initialHeight: number;
@@ -88,7 +88,7 @@ type ToastGroupSchema = {
88
88
  state: "stack" | "overlap";
89
89
  props: ToastGroupProps;
90
90
  context: {
91
- toasts: RequiredBy<ToastProps, ToastPropsWithDefault>[];
91
+ toasts: RequiredBy<ToastProps, Extract<ToastPropsWithDefault, keyof ToastProps>>[];
92
92
  heights: ToastHeight[];
93
93
  };
94
94
  computed: {
@@ -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" | "actionTrigger" | "closeTrigger" | "group">;
178
+ declare const anatomy: AnatomyInstance<"root" | "title" | "actionTrigger" | "group" | "description" | "closeTrigger">;
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>;
@@ -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_core = require("../../core-DwdPztGA.cjs");
6
- const require_focus_visible = require("../../focus-visible-JdJXqMic.cjs");
6
+ const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
7
7
  const require_popper = require("../../popper-viCrafLC.cjs");
8
8
  const require_create_props = require("../../create-props-DP39rHnH.cjs");
9
9
  //#region src/machines/tooltip/tooltip.anatomy.ts
@@ -174,10 +174,10 @@ const machine = require_core.createMachine({
174
174
  return prop("open") || prop("defaultOpen") ? "open" : "closed";
175
175
  },
176
176
  props({ props }) {
177
+ require_utils.ensureProps(props, ["id"]);
177
178
  const closeOnClick = props.closeOnClick ?? true;
178
179
  const closeOnPointerDown = props.closeOnPointerDown ?? closeOnClick;
179
180
  return {
180
- id: "x",
181
181
  openDelay: 400,
182
182
  closeDelay: 150,
183
183
  closeOnEscape: true,
@@ -389,8 +389,8 @@ const machine = require_core.createMachine({
389
389
  },
390
390
  reposition: ({ context, event, prop, scope }) => {
391
391
  if (event.type !== "positioning.set") return;
392
- const getPositionerEl$1 = () => getPositionerEl(scope);
393
- return require_popper.getPlacement(getTriggerEl(scope), getPositionerEl$1, {
392
+ const getPositionerEl$2 = () => getPositionerEl(scope);
393
+ return require_popper.getPlacement(getTriggerEl(scope), getPositionerEl$2, {
394
394
  ...prop("positioning"),
395
395
  ...event.options,
396
396
  defer: true,
@@ -421,8 +421,8 @@ const machine = require_core.createMachine({
421
421
  },
422
422
  trackPositioning: ({ context, prop, scope }) => {
423
423
  if (!context.get("currentPlacement")) context.set("currentPlacement", prop("positioning").placement);
424
- const getPositionerEl$2 = () => getPositionerEl(scope);
425
- return require_popper.getPlacement(getTriggerEl(scope), getPositionerEl$2, {
424
+ const getPositionerEl$1 = () => getPositionerEl(scope);
425
+ return require_popper.getPlacement(getTriggerEl(scope), getPositionerEl$1, {
426
426
  ...prop("positioning"),
427
427
  defer: true,
428
428
  onComplete(data) {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
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" | "content" | "positioner" | "arrow" | "arrowTip">;
7
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
8
8
  //#endregion
9
9
  //#region src/machines/tooltip/tooltip.types.d.ts
10
10
  interface OpenChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
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" | "content" | "positioner" | "arrow" | "arrowTip">;
7
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
8
8
  //#endregion
9
9
  //#region src/machines/tooltip/tooltip.types.d.ts
10
10
  interface OpenChangeDetails {
@@ -1,8 +1,8 @@
1
1
  import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import { M as getOverflowAncestors, St as isLeftClick, _t as isComposingEvent, ut as addDomEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
3
- import { c as createStore, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
3
+ import { c as createStore, n as ensureProps, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
4
  import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
5
- import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-GXKbbuiq.mjs";
5
+ import { o as trackFocusVisible, r as isFocusVisible } from "../../focus-visible-BuLf8M9F.mjs";
6
6
  import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
7
7
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
8
8
  //#region src/machines/tooltip/tooltip.anatomy.ts
@@ -173,10 +173,10 @@ const machine = createMachine({
173
173
  return prop("open") || prop("defaultOpen") ? "open" : "closed";
174
174
  },
175
175
  props({ props }) {
176
+ ensureProps(props, ["id"]);
176
177
  const closeOnClick = props.closeOnClick ?? true;
177
178
  const closeOnPointerDown = props.closeOnPointerDown ?? closeOnClick;
178
179
  return {
179
- id: "x",
180
180
  openDelay: 400,
181
181
  closeDelay: 150,
182
182
  closeOnEscape: true,
@@ -388,8 +388,8 @@ const machine = createMachine({
388
388
  },
389
389
  reposition: ({ context, event, prop, scope }) => {
390
390
  if (event.type !== "positioning.set") return;
391
- const getPositionerEl$1 = () => getPositionerEl(scope);
392
- return getPlacement(getTriggerEl(scope), getPositionerEl$1, {
391
+ const getPositionerEl$2 = () => getPositionerEl(scope);
392
+ return getPlacement(getTriggerEl(scope), getPositionerEl$2, {
393
393
  ...prop("positioning"),
394
394
  ...event.options,
395
395
  defer: true,
@@ -420,8 +420,8 @@ const machine = createMachine({
420
420
  },
421
421
  trackPositioning: ({ context, prop, scope }) => {
422
422
  if (!context.get("currentPlacement")) context.set("currentPlacement", prop("positioning").placement);
423
- const getPositionerEl$2 = () => getPositionerEl(scope);
424
- return getPlacement(getTriggerEl(scope), getPositionerEl$2, {
423
+ const getPositionerEl$1 = () => getPositionerEl(scope);
424
+ return getPlacement(getTriggerEl(scope), getPositionerEl$1, {
425
425
  ...prop("positioning"),
426
426
  defer: true,
427
427
  onComplete(data) {
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
6
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<"progressText" | "title" | "content" | "description" | "positioner" | "backdrop" | "arrow" | "actionTrigger" | "closeTrigger" | "arrowTip" | "spotlight">;
9
+ declare const anatomy: AnatomyInstance<"content" | "progressText" | "title" | "positioner" | "arrow" | "arrowTip" | "actionTrigger" | "description" | "closeTrigger" | "backdrop" | "spotlight">;
10
10
  //#endregion
11
11
  //#region src/machines/tour/utils/rect.d.ts
12
12
  interface Point {
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
6
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<"progressText" | "title" | "content" | "description" | "positioner" | "backdrop" | "arrow" | "actionTrigger" | "closeTrigger" | "arrowTip" | "spotlight">;
9
+ declare const anatomy: AnatomyInstance<"content" | "progressText" | "title" | "positioner" | "arrow" | "arrowTip" | "actionTrigger" | "description" | "closeTrigger" | "backdrop" | "spotlight">;
10
10
  //#endregion
11
11
  //#region src/machines/tour/utils/rect.d.ts
12
12
  interface Point {
@@ -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-Cjgbx_9l.cjs";
2
+ import { t as ListCollection } from "./list-collection-B_8BN0XB.cjs";
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-9uw8LHpE.mjs";
2
- import { t as ListCollection } from "./list-collection-IF510iNl.mjs";
2
+ import { t as ListCollection } from "./list-collection-DkRA5LOq.mjs";
3
3
 
4
4
  //#region src/shared/collection/grid-collection.d.ts
5
5
  interface GridCollectionOptions<T> extends CollectionOptions<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sprawlify/primitives",
3
- "version": "0.0.111",
3
+ "version": "0.0.112",
4
4
  "description": "A set of primitive components for building user interfaces.",
5
5
  "license": "MIT",
6
6
  "author": "sprawlify <npm@sprawlify.com>",