@sprawlify/primitives 0.1.11 → 0.1.12

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 (103) hide show
  1. package/dist/{collection-BBgC8xCb.cjs → collection-D0Abtxc0.cjs} +68 -0
  2. package/dist/{collection-DgzidRvr.mjs → collection-GSpaYJ2f.mjs} +45 -1
  3. package/dist/collection.cjs +5 -1
  4. package/dist/collection.d.cts +49 -3
  5. package/dist/collection.d.mts +49 -3
  6. package/dist/collection.mjs +2 -2
  7. package/dist/{list-collection-B_8BN0XB.d.cts → list-collection-Cjgbx_9l.d.cts} +1 -1
  8. package/dist/{list-collection-DkRA5LOq.d.mts → list-collection-IF510iNl.d.mts} +1 -1
  9. package/dist/machines/accordion/index.d.cts +1 -1
  10. package/dist/machines/accordion/index.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 +1 -1
  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 +1 -1
  19. package/dist/machines/checkbox/index.d.cts +1 -1
  20. package/dist/machines/checkbox/index.d.mts +1 -1
  21. package/dist/machines/clipboard/index.d.cts +1 -1
  22. package/dist/machines/clipboard/index.d.mts +1 -1
  23. package/dist/machines/collapsible/index.d.cts +1 -1
  24. package/dist/machines/collapsible/index.d.mts +1 -1
  25. package/dist/machines/color-picker/index.d.cts +1 -1
  26. package/dist/machines/color-picker/index.d.mts +1 -1
  27. package/dist/machines/combobox/index.cjs +279 -355
  28. package/dist/machines/combobox/index.d.cts +5 -4
  29. package/dist/machines/combobox/index.d.mts +5 -4
  30. package/dist/machines/combobox/index.mjs +279 -355
  31. package/dist/machines/date-input/index.cjs +1830 -0
  32. package/dist/machines/date-input/index.d.cts +223 -0
  33. package/dist/machines/date-input/index.d.mts +223 -0
  34. package/dist/machines/date-input/index.mjs +1813 -0
  35. package/dist/machines/date-picker/index.d.cts +1 -1
  36. package/dist/machines/date-picker/index.d.mts +1 -1
  37. package/dist/machines/dialog/index.d.cts +1 -1
  38. package/dist/machines/dialog/index.d.mts +1 -1
  39. package/dist/machines/drawer/index.d.cts +1 -1
  40. package/dist/machines/drawer/index.d.mts +1 -1
  41. package/dist/machines/dropdown-menu/index.d.cts +1 -1
  42. package/dist/machines/dropdown-menu/index.d.mts +1 -1
  43. package/dist/machines/editable/index.d.cts +1 -1
  44. package/dist/machines/editable/index.d.mts +1 -1
  45. package/dist/machines/file-upload/index.d.cts +1 -1
  46. package/dist/machines/file-upload/index.d.mts +1 -1
  47. package/dist/machines/floating-panel/index.d.cts +1 -1
  48. package/dist/machines/floating-panel/index.d.mts +1 -1
  49. package/dist/machines/hover-card/index.d.cts +1 -1
  50. package/dist/machines/hover-card/index.d.mts +1 -1
  51. package/dist/machines/listbox/index.cjs +41 -16
  52. package/dist/machines/listbox/index.d.cts +5 -4
  53. package/dist/machines/listbox/index.d.mts +5 -4
  54. package/dist/machines/listbox/index.mjs +42 -17
  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/password-input/index.d.cts +1 -1
  62. package/dist/machines/password-input/index.d.mts +1 -1
  63. package/dist/machines/pin-input/index.d.cts +1 -1
  64. package/dist/machines/pin-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.d.cts +1 -1
  70. package/dist/machines/radio-group/index.d.mts +1 -1
  71. package/dist/machines/rating-group/index.d.cts +1 -1
  72. package/dist/machines/rating-group/index.d.mts +1 -1
  73. package/dist/machines/select/index.cjs +47 -18
  74. package/dist/machines/select/index.d.cts +4 -3
  75. package/dist/machines/select/index.d.mts +4 -3
  76. package/dist/machines/select/index.mjs +48 -19
  77. package/dist/machines/signature-pad/index.d.cts +1 -1
  78. package/dist/machines/signature-pad/index.d.mts +1 -1
  79. package/dist/machines/slider/index.d.cts +1 -1
  80. package/dist/machines/slider/index.d.mts +1 -1
  81. package/dist/machines/steps/index.d.cts +1 -1
  82. package/dist/machines/steps/index.d.mts +1 -1
  83. package/dist/machines/switch/index.d.cts +1 -1
  84. package/dist/machines/switch/index.d.mts +1 -1
  85. package/dist/machines/tabs/index.d.cts +1 -1
  86. package/dist/machines/tabs/index.d.mts +1 -1
  87. package/dist/machines/tags-input/index.d.cts +1 -1
  88. package/dist/machines/tags-input/index.d.mts +1 -1
  89. package/dist/machines/timer/index.d.cts +1 -1
  90. package/dist/machines/timer/index.d.mts +1 -1
  91. package/dist/machines/toast/index.d.cts +1 -1
  92. package/dist/machines/toast/index.d.mts +1 -1
  93. package/dist/machines/tooltip/index.d.cts +1 -1
  94. package/dist/machines/tooltip/index.d.mts +1 -1
  95. package/dist/machines/tour/index.d.cts +1 -1
  96. package/dist/machines/tour/index.d.mts +1 -1
  97. package/dist/machines/tree-view/index.cjs +1 -1
  98. package/dist/machines/tree-view/index.d.cts +1 -1
  99. package/dist/machines/tree-view/index.d.mts +1 -1
  100. package/dist/machines/tree-view/index.mjs +1 -1
  101. package/dist/{selection-DdNvrKbj.d.mts → selection-6urf-c8j.d.mts} +1 -1
  102. package/dist/{selection-Bb_ZSVxe.d.cts → selection-BmS2RDMq.d.cts} +1 -1
  103. package/package.json +11 -1
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cj
8
8
  import { Calendar, CalendarDate, CalendarDateTime, CalendarIdentifier, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
9
9
 
10
10
  //#region src/machines/date-picker/date-picker.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "label" | "trigger" | "clearTrigger" | "input" | "view" | "content" | "control" | "table" | "positioner" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "content" | "label" | "control" | "trigger" | "input" | "positioner" | "table" | "view" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
12
12
  //#endregion
13
13
  //#region src/machines/date-picker/date-picker.types.d.ts
14
14
  type DateView = "day" | "month" | "year";
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mj
8
8
  import { Calendar, CalendarDate, CalendarDateTime, CalendarIdentifier, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
9
9
 
10
10
  //#region src/machines/date-picker/date-picker.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "label" | "trigger" | "clearTrigger" | "input" | "view" | "content" | "control" | "table" | "positioner" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "content" | "label" | "control" | "trigger" | "input" | "positioner" | "table" | "view" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
12
12
  //#endregion
13
13
  //#region src/machines/date-picker/date-picker.types.d.ts
14
14
  type DateView = "day" | "month" | "year";
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-ZgyqN8AD.cjs";
6
6
 
7
7
  //#region src/machines/dialog/dialog.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop">;
9
9
  //#endregion
10
10
  //#region src/machines/dialog/dialog.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { r as PersistentElementOptions, t as DismissableElementHandlers } from "../../dismissable-layer-h14gHVbJ.mjs";
6
6
 
7
7
  //#region src/machines/dialog/dialog.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop">;
9
9
  //#endregion
10
10
  //#region src/machines/dialog/dialog.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { t as DismissableElementHandlers } from "../../dismissable-layer-ZgyqN8AD.cjs";
6
6
 
7
7
  //#region src/machines/drawer/drawer.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop" | "grabber" | "grabberIndicator" | "swipeArea">;
8
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop" | "grabber" | "grabberIndicator" | "swipeArea">;
9
9
  //#endregion
10
10
  //#region src/machines/drawer/utils/session.d.ts
11
11
  type GestureAxis = "x" | "y";
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { t as DismissableElementHandlers } from "../../dismissable-layer-h14gHVbJ.mjs";
6
6
 
7
7
  //#region src/machines/drawer/drawer.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop" | "grabber" | "grabberIndicator" | "swipeArea">;
8
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "title" | "description" | "closeTrigger" | "positioner" | "backdrop" | "grabber" | "grabberIndicator" | "swipeArea">;
9
9
  //#endregion
10
10
  //#region src/machines/drawer/utils/session.d.ts
11
11
  type GestureAxis = "x" | "y";
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cj
8
8
  import { a as Point } from "../../types-CLXYEgfm.cjs";
9
9
 
10
10
  //#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"item" | "itemGroup" | "trigger" | "content" | "indicator" | "itemIndicator" | "separator" | "arrow" | "arrowTip" | "positioner" | "itemText" | "itemGroupLabel" | "triggerItem">;
11
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "indicator" | "item" | "itemIndicator" | "itemText" | "separator" | "arrow" | "arrowTip" | "positioner" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
12
12
  //#endregion
13
13
  //#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
14
14
  interface OpenChangeDetails {
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mj
8
8
  import { a as Point } from "../../types-DU764tY_.mjs";
9
9
 
10
10
  //#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"item" | "itemGroup" | "trigger" | "content" | "indicator" | "itemIndicator" | "separator" | "arrow" | "arrowTip" | "positioner" | "itemText" | "itemGroupLabel" | "triggerItem">;
11
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "indicator" | "item" | "itemIndicator" | "itemText" | "separator" | "arrow" | "arrowTip" | "positioner" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
12
12
  //#endregion
13
13
  //#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
14
14
  interface OpenChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
5
5
 
6
6
  //#region src/machines/editable/editable.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/editable/editable.types.d.ts
10
10
  interface ValueChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
5
5
 
6
6
  //#region src/machines/editable/editable.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/editable/editable.types.d.ts
10
10
  interface ValueChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
4
4
  import { i as FileMimeType, r as FileError } from "../../types-CylWsfOz.cjs";
5
5
 
6
6
  //#region src/machines/file-upload/file-upload.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "dropzone" | "item" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "label" | "trigger" | "clearTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "trigger" | "item" | "itemGroup" | "clearTrigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">;
8
8
  //#endregion
9
9
  //#region src/machines/file-upload/file-upload.types.d.ts
10
10
  interface FileRejection {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
4
4
  import { i as FileMimeType, r as FileError } from "../../types-Cctd5dol.mjs";
5
5
 
6
6
  //#region src/machines/file-upload/file-upload.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "dropzone" | "item" | "itemDeleteTrigger" | "itemGroup" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText" | "label" | "trigger" | "clearTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "trigger" | "item" | "itemGroup" | "clearTrigger" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">;
8
8
  //#endregion
9
9
  //#region src/machines/file-upload/file-upload.types.d.ts
10
10
  interface FileRejection {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { a as Point, o as Rect, y as Size } from "../../types-CLXYEgfm.cjs";
5
5
 
6
6
  //#region src/machines/floating-panel/floating-panel.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "control" | "title" | "closeTrigger" | "body" | "header" | "positioner" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"content" | "control" | "trigger" | "title" | "closeTrigger" | "positioner" | "body" | "header" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/floating-panel/floating-panel.types.d.ts
10
10
  interface PositionChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
4
4
  import { a as Point, o as Rect, y as Size } from "../../types-DU764tY_.mjs";
5
5
 
6
6
  //#region src/machines/floating-panel/floating-panel.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "control" | "title" | "closeTrigger" | "body" | "header" | "positioner" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"content" | "control" | "trigger" | "title" | "closeTrigger" | "positioner" | "body" | "header" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
8
8
  //#endregion
9
9
  //#region src/machines/floating-panel/floating-panel.types.d.ts
10
10
  interface PositionChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
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" | "arrowTip" | "positioner">;
8
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">;
9
9
  //#endregion
10
10
  //#region src/machines/hover-card/hover-card.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
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" | "arrowTip" | "positioner">;
8
+ declare const anatomy: AnatomyInstance<"content" | "trigger" | "arrow" | "arrowTip" | "positioner">;
9
9
  //#endregion
10
10
  //#region src/machines/hover-card/hover-card.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -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_collection = require("../../collection-BBgC8xCb.cjs");
5
+ const require_collection = require("../../collection-D0Abtxc0.cjs");
6
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");
@@ -47,7 +47,7 @@ function connect(service, normalize) {
47
47
  const focusVisible = refs.get("focusVisible") && focused;
48
48
  const inputState = refs.get("inputState");
49
49
  const value = context.get("value");
50
- const selectedItems = context.get("selectedItems");
50
+ const selectedItems = computed("selectedItems");
51
51
  const highlightedValue = context.get("highlightedValue");
52
52
  const highlightedItem = context.get("highlightedItem");
53
53
  const isTypingAhead = computed("isTypingAhead");
@@ -465,17 +465,32 @@ const machine = createMachine({
465
465
  ...props
466
466
  };
467
467
  },
468
- context({ prop, bindable }) {
468
+ context({ prop, bindable, getContext }) {
469
+ const initialValue = prop("value") ?? prop("defaultValue") ?? [];
470
+ const initialSelectedItems = prop("collection").findMany(initialValue);
469
471
  return {
470
472
  value: bindable(() => ({
471
473
  defaultValue: prop("defaultValue"),
472
474
  value: prop("value"),
473
475
  isEqual: require_utils.isEqual,
474
476
  onChange(value) {
475
- const items = prop("collection").findMany(value);
477
+ const context = getContext();
478
+ const collection = prop("collection");
479
+ const proposed = require_collection.deriveSelectionState({
480
+ values: value,
481
+ collection,
482
+ selectedItemMap: context.get("selectedItemMap")
483
+ });
484
+ const effectiveValue = prop("value") ?? value;
485
+ const effective = effectiveValue === value ? proposed : require_collection.deriveSelectionState({
486
+ values: effectiveValue,
487
+ collection,
488
+ selectedItemMap: proposed.nextSelectedItemMap
489
+ });
490
+ context.set("selectedItemMap", effective.nextSelectedItemMap);
476
491
  return prop("onValueChange")?.({
477
492
  value,
478
- items
493
+ items: proposed.selectedItems
479
494
  });
480
495
  }
481
496
  })),
@@ -492,9 +507,11 @@ const machine = createMachine({
492
507
  }
493
508
  })),
494
509
  highlightedItem: bindable(() => ({ defaultValue: null })),
495
- selectedItems: bindable(() => {
496
- const value = prop("value") ?? prop("defaultValue") ?? [];
497
- return { defaultValue: prop("collection").findMany(value) };
510
+ selectedItemMap: bindable(() => {
511
+ return { defaultValue: require_collection.createSelectedItemMap({
512
+ selectedItems: initialSelectedItems,
513
+ collection: prop("collection")
514
+ }) };
498
515
  }),
499
516
  focused: bindable(() => ({
500
517
  sync: true,
@@ -523,7 +540,12 @@ const machine = createMachine({
523
540
  return selection;
524
541
  },
525
542
  multiple: ({ prop }) => prop("selectionMode") === "multiple" || prop("selectionMode") === "extended",
526
- valueAsString: ({ context, prop }) => prop("collection").stringifyItems(context.get("selectedItems"))
543
+ selectedItems: ({ context, prop }) => require_collection.resolveSelectedItems({
544
+ values: context.get("value"),
545
+ collection: prop("collection"),
546
+ selectedItemMap: context.get("selectedItemMap")
547
+ }),
548
+ valueAsString: ({ computed, prop }) => prop("collection").stringifyItems(computed("selectedItems"))
527
549
  },
528
550
  initialState() {
529
551
  return "idle";
@@ -585,7 +607,7 @@ const machine = createMachine({
585
607
  const exec = (immediate) => {
586
608
  const highlightedValue = context.get("highlightedValue");
587
609
  if (highlightedValue == null) return;
588
- if (require_focus_visible.getInteractionModality() !== "keyboard") return;
610
+ if (require_focus_visible.getInteractionModality() === "pointer") return;
589
611
  const contentEl = getContentEl(scope);
590
612
  const scrollToIndexFn = prop("scrollToIndexFn");
591
613
  if (scrollToIndexFn) {
@@ -604,7 +626,10 @@ const machine = createMachine({
604
626
  block: "nearest"
605
627
  });
606
628
  };
607
- require_dom_query.raf(() => exec(true));
629
+ require_dom_query.raf(() => {
630
+ require_focus_visible.setInteractionModality("virtual");
631
+ exec(true);
632
+ });
608
633
  const contentEl = () => getContentEl(scope);
609
634
  return require_dom_query.observeAttributes(contentEl, {
610
635
  defer: true,
@@ -681,12 +706,12 @@ const machine = createMachine({
681
706
  context.set("value", []);
682
707
  },
683
708
  syncSelectedItems({ context, prop }) {
684
- const collection = prop("collection");
685
- const prevSelectedItems = context.get("selectedItems");
686
- const selectedItems = context.get("value").map((value) => {
687
- return prevSelectedItems.find((item) => collection.getItemValue(item) === value) || collection.find(value);
709
+ const next = require_collection.deriveSelectionState({
710
+ values: context.get("value"),
711
+ collection: prop("collection"),
712
+ selectedItemMap: context.get("selectedItemMap")
688
713
  });
689
- context.set("selectedItems", selectedItems);
714
+ context.set("selectedItemMap", next.nextSelectedItemMap);
690
715
  },
691
716
  syncHighlightedItem({ context, prop }) {
692
717
  const collection = prop("collection");
@@ -1,13 +1,13 @@
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-B_8BN0XB.cjs";
4
- import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-Bb_ZSVxe.cjs";
3
+ import { t as ListCollection } from "../../list-collection-Cjgbx_9l.cjs";
4
+ import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-BmS2RDMq.cjs";
5
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" | "itemGroup" | "label" | "input" | "content" | "valueText" | "itemIndicator" | "itemText" | "itemGroupLabel">;
10
+ declare const anatomy: AnatomyInstance<"root" | "content" | "label" | "valueText" | "item" | "itemIndicator" | "input" | "itemText" | "itemGroup" | "itemGroupLabel">;
11
11
  //#endregion
12
12
  //#region src/machines/listbox/listbox.collection.d.ts
13
13
  declare const collection: {
@@ -73,7 +73,7 @@ interface ListboxSchema<T extends CollectionItem = CollectionItem> {
73
73
  value: string[];
74
74
  highlightedValue: string | null;
75
75
  highlightedItem: T | null;
76
- selectedItems: T[];
76
+ selectedItemMap: Map<string, T>;
77
77
  focused: boolean;
78
78
  };
79
79
  computed: {
@@ -82,6 +82,7 @@ interface ListboxSchema<T extends CollectionItem = CollectionItem> {
82
82
  isInteractive: boolean;
83
83
  selection: Selection;
84
84
  multiple: boolean;
85
+ selectedItems: T[];
85
86
  valueAsString: string;
86
87
  };
87
88
  refs: {
@@ -1,13 +1,13 @@
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-DkRA5LOq.mjs";
4
- import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-DdNvrKbj.mjs";
3
+ import { t as ListCollection } from "../../list-collection-IF510iNl.mjs";
4
+ import { i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "../../selection-6urf-c8j.mjs";
5
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" | "itemGroup" | "label" | "input" | "content" | "valueText" | "itemIndicator" | "itemText" | "itemGroupLabel">;
10
+ declare const anatomy: AnatomyInstance<"root" | "content" | "label" | "valueText" | "item" | "itemIndicator" | "input" | "itemText" | "itemGroup" | "itemGroupLabel">;
11
11
  //#endregion
12
12
  //#region src/machines/listbox/listbox.collection.d.ts
13
13
  declare const collection: {
@@ -73,7 +73,7 @@ interface ListboxSchema<T extends CollectionItem = CollectionItem> {
73
73
  value: string[];
74
74
  highlightedValue: string | null;
75
75
  highlightedItem: T | null;
76
- selectedItems: T[];
76
+ selectedItemMap: Map<string, T>;
77
77
  focused: boolean;
78
78
  };
79
79
  computed: {
@@ -82,6 +82,7 @@ interface ListboxSchema<T extends CollectionItem = CollectionItem> {
82
82
  isInteractive: boolean;
83
83
  selection: Selection;
84
84
  multiple: boolean;
85
+ selectedItems: T[];
85
86
  valueAsString: string;
86
87
  };
87
88
  refs: {
@@ -1,9 +1,9 @@
1
1
  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
- import { a as GridCollection, i as Selection, o as isGridCollection, s as ListCollection } from "../../collection-DgzidRvr.mjs";
4
+ import { a as createSelectedItemMap, d as ListCollection, i as Selection, l as GridCollection, o as deriveSelectionState, s as resolveSelectedItems, u as isGridCollection } from "../../collection-GSpaYJ2f.mjs";
5
5
  import { o as setup } from "../../core-CTtbW9qh.mjs";
6
- import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
6
+ import { a as setInteractionModality, 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
9
9
  const anatomy = createAnatomy("listbox").parts("label", "input", "item", "itemText", "itemIndicator", "itemGroup", "itemGroupLabel", "content", "root", "valueText");
@@ -46,7 +46,7 @@ function connect(service, normalize) {
46
46
  const focusVisible = refs.get("focusVisible") && focused;
47
47
  const inputState = refs.get("inputState");
48
48
  const value = context.get("value");
49
- const selectedItems = context.get("selectedItems");
49
+ const selectedItems = computed("selectedItems");
50
50
  const highlightedValue = context.get("highlightedValue");
51
51
  const highlightedItem = context.get("highlightedItem");
52
52
  const isTypingAhead = computed("isTypingAhead");
@@ -464,17 +464,32 @@ const machine = createMachine({
464
464
  ...props
465
465
  };
466
466
  },
467
- context({ prop, bindable }) {
467
+ context({ prop, bindable, getContext }) {
468
+ const initialValue = prop("value") ?? prop("defaultValue") ?? [];
469
+ const initialSelectedItems = prop("collection").findMany(initialValue);
468
470
  return {
469
471
  value: bindable(() => ({
470
472
  defaultValue: prop("defaultValue"),
471
473
  value: prop("value"),
472
474
  isEqual,
473
475
  onChange(value) {
474
- const items = prop("collection").findMany(value);
476
+ const context = getContext();
477
+ const collection = prop("collection");
478
+ const proposed = deriveSelectionState({
479
+ values: value,
480
+ collection,
481
+ selectedItemMap: context.get("selectedItemMap")
482
+ });
483
+ const effectiveValue = prop("value") ?? value;
484
+ const effective = effectiveValue === value ? proposed : deriveSelectionState({
485
+ values: effectiveValue,
486
+ collection,
487
+ selectedItemMap: proposed.nextSelectedItemMap
488
+ });
489
+ context.set("selectedItemMap", effective.nextSelectedItemMap);
475
490
  return prop("onValueChange")?.({
476
491
  value,
477
- items
492
+ items: proposed.selectedItems
478
493
  });
479
494
  }
480
495
  })),
@@ -491,9 +506,11 @@ const machine = createMachine({
491
506
  }
492
507
  })),
493
508
  highlightedItem: bindable(() => ({ defaultValue: null })),
494
- selectedItems: bindable(() => {
495
- const value = prop("value") ?? prop("defaultValue") ?? [];
496
- return { defaultValue: prop("collection").findMany(value) };
509
+ selectedItemMap: bindable(() => {
510
+ return { defaultValue: createSelectedItemMap({
511
+ selectedItems: initialSelectedItems,
512
+ collection: prop("collection")
513
+ }) };
497
514
  }),
498
515
  focused: bindable(() => ({
499
516
  sync: true,
@@ -522,7 +539,12 @@ const machine = createMachine({
522
539
  return selection;
523
540
  },
524
541
  multiple: ({ prop }) => prop("selectionMode") === "multiple" || prop("selectionMode") === "extended",
525
- valueAsString: ({ context, prop }) => prop("collection").stringifyItems(context.get("selectedItems"))
542
+ selectedItems: ({ context, prop }) => resolveSelectedItems({
543
+ values: context.get("value"),
544
+ collection: prop("collection"),
545
+ selectedItemMap: context.get("selectedItemMap")
546
+ }),
547
+ valueAsString: ({ computed, prop }) => prop("collection").stringifyItems(computed("selectedItems"))
526
548
  },
527
549
  initialState() {
528
550
  return "idle";
@@ -584,7 +606,7 @@ const machine = createMachine({
584
606
  const exec = (immediate) => {
585
607
  const highlightedValue = context.get("highlightedValue");
586
608
  if (highlightedValue == null) return;
587
- if (getInteractionModality() !== "keyboard") return;
609
+ if (getInteractionModality() === "pointer") return;
588
610
  const contentEl = getContentEl(scope);
589
611
  const scrollToIndexFn = prop("scrollToIndexFn");
590
612
  if (scrollToIndexFn) {
@@ -603,7 +625,10 @@ const machine = createMachine({
603
625
  block: "nearest"
604
626
  });
605
627
  };
606
- raf(() => exec(true));
628
+ raf(() => {
629
+ setInteractionModality("virtual");
630
+ exec(true);
631
+ });
607
632
  const contentEl = () => getContentEl(scope);
608
633
  return observeAttributes(contentEl, {
609
634
  defer: true,
@@ -680,12 +705,12 @@ const machine = createMachine({
680
705
  context.set("value", []);
681
706
  },
682
707
  syncSelectedItems({ context, prop }) {
683
- const collection = prop("collection");
684
- const prevSelectedItems = context.get("selectedItems");
685
- const selectedItems = context.get("value").map((value) => {
686
- return prevSelectedItems.find((item) => collection.getItemValue(item) === value) || collection.find(value);
708
+ const next = deriveSelectionState({
709
+ values: context.get("value"),
710
+ collection: prop("collection"),
711
+ selectedItemMap: context.get("selectedItemMap")
687
712
  });
688
- context.set("selectedItems", selectedItems);
713
+ context.set("selectedItemMap", next.nextSelectedItemMap);
689
714
  },
690
715
  syncHighlightedItem({ context, prop }) {
691
716
  const collection = prop("collection");
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCS
3
3
  import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/marquee/marquee.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "content" | "viewport" | "edge">;
6
+ declare const anatomy: AnatomyInstance<"root" | "content" | "item" | "viewport" | "edge">;
7
7
  //#endregion
8
8
  //#region src/machines/marquee/marquee.types.d.ts
9
9
  interface PauseStatusDetails {
@@ -96,7 +96,7 @@ declare function connect<T extends PropTypes>(service: MarqueeService, normalize
96
96
  declare const machine: Machine<MarqueeSchema>;
97
97
  //#endregion
98
98
  //#region src/machines/marquee/marquee.props.d.ts
99
- declare const props: ("ids" | "id" | "getRootNode" | "onComplete" | "paused" | ("translations" | "dir" | "reverse" | "delay" | "side" | "speed" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete")[];
100
- declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "onComplete" | "paused" | ("translations" | "dir" | "reverse" | "delay" | "side" | "speed" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete">];
99
+ declare const props: ("ids" | "id" | "getRootNode" | "paused" | "onComplete" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete")[];
100
+ declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "paused" | "onComplete" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete">];
101
101
  //#endregion
102
102
  export { type MarqueeApi as Api, type ContentProps, type DimensionSnapshot, type EdgeProps, type ElementIds, type IntlTranslations, type MarqueeMachine as Machine, type Orientation, type PauseStatusDetails, type MarqueeProps as Props, type MarqueeService as Service, type Side, type UserDefinedContext, anatomy, connect, machine, props, splitProps };
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCW
3
3
  import { b as NormalizeProps, d as Orientation, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/marquee/marquee.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "content" | "viewport" | "edge">;
6
+ declare const anatomy: AnatomyInstance<"root" | "content" | "item" | "viewport" | "edge">;
7
7
  //#endregion
8
8
  //#region src/machines/marquee/marquee.types.d.ts
9
9
  interface PauseStatusDetails {
@@ -96,7 +96,7 @@ declare function connect<T extends PropTypes>(service: MarqueeService, normalize
96
96
  declare const machine: Machine<MarqueeSchema>;
97
97
  //#endregion
98
98
  //#region src/machines/marquee/marquee.props.d.ts
99
- declare const props: ("ids" | "id" | "getRootNode" | "onComplete" | "paused" | ("translations" | "dir" | "reverse" | "delay" | "side" | "speed" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete")[];
100
- declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "onComplete" | "paused" | ("translations" | "dir" | "reverse" | "delay" | "side" | "speed" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete">];
99
+ declare const props: ("ids" | "id" | "getRootNode" | "paused" | "onComplete" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete")[];
100
+ declare const splitProps: <Props extends Partial<UserDefinedContext>>(props: Props) => [Partial<UserDefinedContext>, Omit<Props, "ids" | "id" | "getRootNode" | "paused" | "onComplete" | ("dir" | "reverse" | "translations" | "side" | "speed" | "delay" | "loopCount" | "spacing" | "autoFill" | "pauseOnInteraction" | "defaultPaused") | "onPauseChange" | "onLoopComplete">];
101
101
  //#endregion
102
102
  export { type MarqueeApi as Api, type ContentProps, type DimensionSnapshot, type EdgeProps, type ElementIds, type IntlTranslations, type MarqueeMachine as Machine, type Orientation, type PauseStatusDetails, type MarqueeProps as Props, type MarqueeService as Service, type Side, type UserDefinedContext, anatomy, connect, machine, props, splitProps };
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCS
3
3
  import { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, 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/navigation-menu/navigation-menu.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "trigger" | "content" | "indicator" | "itemIndicator" | "link" | "arrow" | "list" | "viewport" | "viewportPositioner">;
6
+ declare const anatomy: AnatomyInstance<"root" | "content" | "trigger" | "indicator" | "item" | "itemIndicator" | "list" | "arrow" | "link" | "viewport" | "viewportPositioner">;
7
7
  //#endregion
8
8
  //#region src/machines/navigation-menu/navigation-menu.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCW
3
3
  import { _ as Size, b as NormalizeProps, d as Orientation, f as OrientationProperty, 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/navigation-menu/navigation-menu.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "trigger" | "content" | "indicator" | "itemIndicator" | "link" | "arrow" | "list" | "viewport" | "viewportPositioner">;
6
+ declare const anatomy: AnatomyInstance<"root" | "content" | "trigger" | "indicator" | "item" | "itemIndicator" | "list" | "arrow" | "link" | "viewport" | "viewportPositioner">;
7
7
  //#endregion
8
8
  //#region src/machines/navigation-menu/navigation-menu.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
4
4
  import { NumberFormatter, NumberParser } from "@internationalized/number";
5
5
 
6
6
  //#region src/machines/number-input/number-input.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "input" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
8
8
  //#endregion
9
9
  //#region src/machines/number-input/number-input.types.d.ts
10
10
  interface ValueChangeDetails {
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
4
4
  import { NumberFormatter, NumberParser } from "@internationalized/number";
5
5
 
6
6
  //#region src/machines/number-input/number-input.anatomy.d.ts
7
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "valueText" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
7
+ declare const anatomy: AnatomyInstance<"root" | "label" | "valueText" | "control" | "input" | "incrementTrigger" | "decrementTrigger" | "scrubber">;
8
8
  //#endregion
9
9
  //#region src/machines/number-input/number-input.types.d.ts
10
10
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCS
3
3
  import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
4
4
 
5
5
  //#region src/machines/password-input/password-input.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "indicator" | "control" | "visibilityTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator" | "input" | "visibilityTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/password-input/password-input.types.d.ts
9
9
  interface VisibilityChangeDetails {
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-DvUmCW
3
3
  import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
4
 
5
5
  //#region src/machines/password-input/password-input.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "indicator" | "control" | "visibilityTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator" | "input" | "visibilityTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/password-input/password-input.types.d.ts
9
9
  interface VisibilityChangeDetails {
@@ -3,7 +3,7 @@ import { b as Service, p as Machine, u as EventObject } from "../../types-u-LWCS
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/pin-input/pin-input.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "input">;
7
7
  //#endregion
8
8
  //#region src/machines/pin-input/pin-input.types.d.ts
9
9
  interface ValueChangeDetails {