@sprawlify/primitives 0.0.77 → 0.0.79

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 (87) hide show
  1. package/dist/collection.d.cts +2 -2
  2. package/dist/collection.d.mts +2 -2
  3. package/dist/date-utils.d.mts +1 -1
  4. package/dist/{index-DLbWwJUT.d.mts → index-BTHULLJU.d.mts} +5 -5
  5. package/dist/{list-collection-opFV146F.d.mts → list-collection-C9XUe75n.d.mts} +1 -1
  6. package/dist/{list-collection-frYcaWR1.d.cts → list-collection-DwMgPYoA.d.cts} +1 -1
  7. package/dist/machines/accordion/index.d.cts +1 -1
  8. package/dist/machines/accordion/index.d.mts +1 -1
  9. package/dist/machines/angle-slider/index.d.cts +1 -1
  10. package/dist/machines/angle-slider/index.d.mts +1 -1
  11. package/dist/machines/bottom-sheet/index.d.cts +1 -1
  12. package/dist/machines/bottom-sheet/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/checkbox/index.d.cts +1 -1
  16. package/dist/machines/checkbox/index.d.mts +1 -1
  17. package/dist/machines/clipboard/index.d.cts +1 -1
  18. package/dist/machines/clipboard/index.d.mts +1 -1
  19. package/dist/machines/color-picker/index.d.cts +1 -1
  20. package/dist/machines/color-picker/index.d.mts +1 -1
  21. package/dist/machines/combobox/index.d.cts +2 -2
  22. package/dist/machines/combobox/index.d.mts +2 -2
  23. package/dist/machines/date-picker/index.d.cts +1 -1
  24. package/dist/machines/date-picker/index.d.mts +2 -2
  25. package/dist/machines/dialog/index.d.cts +1 -1
  26. package/dist/machines/dialog/index.d.mts +1 -1
  27. package/dist/machines/{menu → dropdown-menu}/index.cjs +12 -110
  28. package/dist/machines/{menu → dropdown-menu}/index.d.cts +8 -10
  29. package/dist/machines/{menu → dropdown-menu}/index.d.mts +8 -10
  30. package/dist/machines/{menu → dropdown-menu}/index.mjs +13 -111
  31. package/dist/machines/editable/index.d.cts +1 -1
  32. package/dist/machines/editable/index.d.mts +1 -1
  33. package/dist/machines/file-upload/index.d.cts +1 -1
  34. package/dist/machines/file-upload/index.d.mts +1 -1
  35. package/dist/machines/floating-panel/index.d.cts +2 -2
  36. package/dist/machines/floating-panel/index.d.mts +2 -2
  37. package/dist/machines/hover-card/index.d.cts +1 -1
  38. package/dist/machines/hover-card/index.d.mts +1 -1
  39. package/dist/machines/listbox/index.d.cts +3 -3
  40. package/dist/machines/listbox/index.d.mts +3 -3
  41. package/dist/machines/marquee/index.d.cts +3 -3
  42. package/dist/machines/marquee/index.d.mts +3 -3
  43. package/dist/machines/navigation-menu/index.d.cts +1 -1
  44. package/dist/machines/navigation-menu/index.d.mts +1 -1
  45. package/dist/machines/number-input/index.d.cts +1 -1
  46. package/dist/machines/number-input/index.d.mts +1 -1
  47. package/dist/machines/password-input/index.d.cts +1 -1
  48. package/dist/machines/password-input/index.d.mts +1 -1
  49. package/dist/machines/pin-input/index.d.cts +1 -1
  50. package/dist/machines/pin-input/index.d.mts +1 -1
  51. package/dist/machines/popover/index.d.cts +1 -1
  52. package/dist/machines/popover/index.d.mts +1 -1
  53. package/dist/machines/progress/index.d.cts +1 -1
  54. package/dist/machines/progress/index.d.mts +1 -1
  55. package/dist/machines/radio-group/index.d.cts +1 -1
  56. package/dist/machines/radio-group/index.d.mts +1 -1
  57. package/dist/machines/rating-group/index.d.cts +1 -1
  58. package/dist/machines/rating-group/index.d.mts +1 -1
  59. package/dist/machines/scroll-area/index.d.cts +1 -1
  60. package/dist/machines/scroll-area/index.d.mts +1 -1
  61. package/dist/machines/select/index.d.cts +2 -2
  62. package/dist/machines/select/index.d.mts +2 -2
  63. package/dist/machines/signature-pad/index.d.cts +1 -1
  64. package/dist/machines/signature-pad/index.d.mts +1 -1
  65. package/dist/machines/slider/index.d.cts +1 -1
  66. package/dist/machines/slider/index.d.mts +1 -1
  67. package/dist/machines/steps/index.d.cts +1 -1
  68. package/dist/machines/steps/index.d.mts +1 -1
  69. package/dist/machines/switch/index.d.cts +1 -1
  70. package/dist/machines/switch/index.d.mts +1 -1
  71. package/dist/machines/tags-input/index.d.cts +1 -1
  72. package/dist/machines/tags-input/index.d.mts +1 -1
  73. package/dist/machines/timer/index.d.cts +1 -1
  74. package/dist/machines/timer/index.d.mts +1 -1
  75. package/dist/machines/toast/index.d.cts +1 -1
  76. package/dist/machines/toast/index.d.mts +1 -1
  77. package/dist/machines/tooltip/index.d.cts +1 -1
  78. package/dist/machines/tooltip/index.d.mts +1 -1
  79. package/dist/machines/tour/index.d.cts +1 -1
  80. package/dist/machines/tour/index.d.mts +1 -1
  81. package/dist/rect-utils.d.cts +1 -1
  82. package/dist/rect-utils.d.mts +1 -1
  83. package/dist/{selection-k5_1gmv5.d.mts → selection-CPTdpru8.d.mts} +1 -1
  84. package/dist/{selection-RpcIyN7s.d.cts → selection-wfybIxD3.d.cts} +1 -1
  85. package/package.json +11 -11
  86. /package/dist/{types-BzOOuj9T.d.cts → types-BI1JrN1V.d.mts} +0 -0
  87. /package/dist/{types-C6Fp77g2.d.mts → types-Ct9amXkj.d.cts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-CBWaEVU4.cjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-frYcaWR1.cjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-RpcIyN7s.cjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-DwMgPYoA.cjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-wfybIxD3.cjs";
4
4
  import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-CPcsMvje.cjs";
5
5
  export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -1,5 +1,5 @@
1
1
  import { a as CollectionSearchState, c as FlatTreeNode, d as TreeCollectionMethods, f as TreeCollectionOptions, g as ValuePath, i as CollectionSearchOptions, l as FlatTreeNodeMeta, m as TreeSkipFn, n as CollectionMethods, p as TreeNode, r as CollectionOptions, s as FilePathTreeNode, t as CollectionItem, u as IndexPath } from "./types-D0tsc4Jo.mjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-opFV146F.mjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-k5_1gmv5.mjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-C9XUe75n.mjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-CPTdpru8.mjs";
4
4
  import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-1g4DXuqa.mjs";
5
5
  export { CollectionItem, CollectionMethods, CollectionOptions, CollectionSearchOptions, CollectionSearchState, FilePathTreeNode, FlatTreeNode, FlatTreeNodeMeta, GridCollection, GridCollectionOptions, IndexPath, ListCollection, Selection, SelectionMode, TreeCollection, TreeCollectionMethods, TreeCollectionOptions, TreeNode, TreeSkipFn, ValuePath, filePathToTree, flattenedToTree, isGridCollection, isListCollection };
@@ -1,2 +1,2 @@
1
- import { A as getMonthFormatter, B as constrainValue, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getUnitDuration, G as isPreviousRangeInvalid, H as isDateOutsideRange, I as alignCenter, J as DateAdjustFn, K as alignDate, L as alignEnd, M as formatSelectedDate, N as formatVisibleRange, O as getWeekdayFormats, P as getEndDate, R as alignStart, S as getDaysInWeek, T as getMonthNames, U as isDateUnavailable, V as isDateEqual, W as isNextRangeInvalid, X as DateRangePreset, Y as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as formatRange, k as getDayFormatter, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignStartDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as constrainStart } from "./index-DLbWwJUT.mjs";
1
+ import { A as getMonthFormatter, B as constrainValue, C as getEndOfWeek, D as getWeekDays, E as getStartOfWeek, F as getUnitDuration, G as isPreviousRangeInvalid, H as isDateOutsideRange, I as alignCenter, J as DateAdjustFn, K as alignDate, L as alignEnd, M as formatSelectedDate, N as formatVisibleRange, O as getWeekdayFormats, P as getEndDate, R as alignStart, S as getDaysInWeek, T as getMonthNames, U as isDateUnavailable, V as isDateEqual, W as isNextRangeInvalid, X as DateRangePreset, Y as DateGranularity, _ as setDate, a as getAdjustedDateFn, b as getYearsRange, c as getNextSection, d as getPreviousSection, f as getSectionEnd, g as setCalendar, h as getTodayDate, i as AdjustDateReturn, j as formatRange, k as getDayFormatter, l as getPreviousPage, m as getPreviousAvailableDate, n as parseDateString, o as getNextPage, p as getSectionStart, q as alignStartDate, r as AdjustDateParams, s as getNextRow, t as getDateRangePreset, u as getPreviousRow, v as YearsRange, w as getMonthDays, x as normalizeYear, y as getDecadeRange, z as constrainStart } from "./index-BTHULLJU.mjs";
2
2
  export { AdjustDateParams, AdjustDateReturn, DateAdjustFn, DateGranularity, DateRangePreset, YearsRange, alignCenter, alignDate, alignEnd, alignStart, alignStartDate, constrainStart, constrainValue, formatRange, formatSelectedDate, formatVisibleRange, getAdjustedDateFn, getDateRangePreset, getDayFormatter, getDaysInWeek, getDecadeRange, getEndDate, getEndOfWeek, getMonthDays, getMonthFormatter, getMonthNames, getNextPage, getNextRow, getNextSection, getPreviousAvailableDate, getPreviousPage, getPreviousRow, getPreviousSection, getSectionEnd, getSectionStart, getStartOfWeek, getTodayDate, getUnitDuration, getWeekDays, getWeekdayFormats, getYearsRange, isDateEqual, isDateOutsideRange, isDateUnavailable, isNextRangeInvalid, isPreviousRangeInvalid, normalizeYear, parseDateString, setCalendar, setDate };
@@ -1,4 +1,4 @@
1
- import * as _internationalized_date0 from "@internationalized/date";
1
+ import * as _internationalized_date2 from "@internationalized/date";
2
2
  import { Calendar, DateDuration, DateFormatter, DateValue } from "@internationalized/date";
3
3
 
4
4
  //#region src/shared/date-utils/types.d.ts
@@ -40,7 +40,7 @@ declare function getUnitDuration(duration: DateDuration): {
40
40
  weeks?: number;
41
41
  days?: number;
42
42
  };
43
- declare function getEndDate(startDate: DateValue, duration: DateDuration): _internationalized_date0.CalendarDate | _internationalized_date0.CalendarDateTime | _internationalized_date0.ZonedDateTime;
43
+ declare function getEndDate(startDate: DateValue, duration: DateDuration): _internationalized_date2.CalendarDate | _internationalized_date2.CalendarDateTime | _internationalized_date2.ZonedDateTime;
44
44
  //#endregion
45
45
  //#region src/shared/date-utils/format.d.ts
46
46
  declare function formatRange(startDate: DateValue, endDate: DateValue, formatter: DateFormatter, toString: (start: string, end: string) => string, timeZone: string): string;
@@ -63,7 +63,7 @@ declare function getWeekdayFormats(locale: string, timeZone: string): <T extends
63
63
  narrow: string;
64
64
  };
65
65
  declare function getWeekDays(date: DateValue, startOfWeekProp: number | undefined, timeZone: string, locale: string): {
66
- value: _internationalized_date0.CalendarDate | _internationalized_date0.CalendarDateTime | _internationalized_date0.ZonedDateTime;
66
+ value: _internationalized_date2.CalendarDate | _internationalized_date2.CalendarDateTime | _internationalized_date2.ZonedDateTime;
67
67
  short: string;
68
68
  long: string;
69
69
  narrow: string;
@@ -82,8 +82,8 @@ declare function getDecadeRange(year: number, opts?: {
82
82
  }): number[];
83
83
  //#endregion
84
84
  //#region src/shared/date-utils/mutation.d.ts
85
- declare function getTodayDate(timeZone?: string): _internationalized_date0.CalendarDate;
86
- declare function setCalendar(date: DateValue, calendar: Calendar): _internationalized_date0.CalendarDateTime;
85
+ declare function getTodayDate(timeZone?: string): _internationalized_date2.CalendarDate;
86
+ declare function setCalendar(date: DateValue, calendar: Calendar): _internationalized_date2.CalendarDateTime;
87
87
  declare function setDate(date: DateValue, startDate: DateValue, isDateUnavailable: DateAvailableFn, locale: string, minValue: DateValue, maxValue: DateValue): DateValue | undefined;
88
88
  declare function getPreviousAvailableDate(date: DateValue, minValue: DateValue, locale: string, isDateUnavailable?: DateAvailableFn): DateValue | undefined;
89
89
  //#endregion
@@ -46,7 +46,7 @@ declare class ListCollection<T extends CollectionItem = CollectionItem> {
46
46
  moveBefore: (value: string, ...values: string[]) => ListCollection<T>;
47
47
  moveAfter: (value: string, ...values: string[]) => ListCollection<T>;
48
48
  reorder: (fromIndex: number, toIndex: number) => ListCollection<T>;
49
- compareValue: (a: string, b: string) => 1 | 0 | -1;
49
+ compareValue: (a: string, b: string) => 0 | 1 | -1;
50
50
  private range;
51
51
  getValueRange: (from: string | null, to: string | null) => string[];
52
52
  toString: () => string;
@@ -46,7 +46,7 @@ declare class ListCollection<T extends CollectionItem = CollectionItem> {
46
46
  moveBefore: (value: string, ...values: string[]) => ListCollection<T>;
47
47
  moveAfter: (value: string, ...values: string[]) => ListCollection<T>;
48
48
  reorder: (fromIndex: number, toIndex: number) => ListCollection<T>;
49
- compareValue: (a: string, b: string) => 1 | 0 | -1;
49
+ compareValue: (a: string, b: string) => 0 | 1 | -1;
50
50
  private range;
51
51
  getValueRange: (from: string | null, to: string | null) => string[];
52
52
  toString: () => string;
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7B
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
4
4
 
5
5
  //#region src/machines/accordion/accordion.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemTrigger" | "itemContent">;
6
+ declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemContent" | "itemTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/accordion/accordion.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVv
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
4
4
 
5
5
  //#region src/machines/accordion/accordion.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemTrigger" | "itemContent">;
6
+ declare const anatomy: AnatomyInstance<"root" | "item" | "itemIndicator" | "itemContent" | "itemTrigger">;
7
7
  //#endregion
8
8
  //#region src/machines/accordion/accordion.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7B
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
4
4
 
5
5
  //#region src/machines/angle-slider/angle-slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "thumb" | "control" | "valueText" | "label" | "track" | "markerGroup" | "marker">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "track" | "valueText" | "marker" | "thumb" | "markerGroup">;
7
7
  //#endregion
8
8
  //#region src/machines/angle-slider/angle-slider.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVv
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
4
4
 
5
5
  //#region src/machines/angle-slider/angle-slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "thumb" | "control" | "valueText" | "label" | "track" | "markerGroup" | "marker">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "track" | "valueText" | "marker" | "thumb" | "markerGroup">;
7
7
  //#endregion
8
8
  //#region src/machines/angle-slider/angle-slider.types.d.ts
9
9
  interface ValueChangeDetails {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { t as DismissableElementHandlers } from "../../dismissable-layer-B2bSyA07.cjs";
6
6
 
7
7
  //#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "closeTrigger" | "title" | "backdrop" | "grabber" | "grabberIndicator">;
8
+ declare const anatomy: AnatomyInstance<"title" | "closeTrigger" | "trigger" | "content" | "backdrop" | "grabber" | "grabberIndicator">;
9
9
  //#endregion
10
10
  //#region src/machines/bottom-sheet/utils/drag-manager.d.ts
11
11
  declare class DragManager {
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOuts
5
5
  import { t as DismissableElementHandlers } from "../../dismissable-layer-CpUMMV1f.mjs";
6
6
 
7
7
  //#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "closeTrigger" | "title" | "backdrop" | "grabber" | "grabberIndicator">;
8
+ declare const anatomy: AnatomyInstance<"title" | "closeTrigger" | "trigger" | "content" | "backdrop" | "grabber" | "grabberIndicator">;
9
9
  //#endregion
10
10
  //#region src/machines/bottom-sheet/utils/drag-manager.d.ts
11
11
  declare class DragManager {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7B
3
3
  import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
4
4
 
5
5
  //#region src/machines/carousel/carousel.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "indicator" | "item" | "nextTrigger" | "prevTrigger" | "itemGroup" | "progressText" | "indicatorGroup" | "autoplayTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "itemGroup" | "indicator" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
7
7
  //#endregion
8
8
  //#region src/machines/carousel/carousel.types.d.ts
9
9
  interface PageChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVv
3
3
  import { b as NormalizeProps, d as Orientation, f as OrientationProperty, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
4
4
 
5
5
  //#region src/machines/carousel/carousel.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "indicator" | "item" | "nextTrigger" | "prevTrigger" | "itemGroup" | "progressText" | "indicatorGroup" | "autoplayTrigger">;
6
+ declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "itemGroup" | "indicator" | "nextTrigger" | "prevTrigger" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
7
7
  //#endregion
8
8
  //#region src/machines/carousel/carousel.types.d.ts
9
9
  interface PageChangeDetails {
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7B
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
4
4
 
5
5
  //#region src/machines/checkbox/checkbox.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "indicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator">;
7
7
  //#endregion
8
8
  //#region src/machines/checkbox/checkbox.types.d.ts
9
9
  type CheckedState = boolean | "indeterminate";
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVv
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
4
4
 
5
5
  //#region src/machines/checkbox/checkbox.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "indicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator">;
7
7
  //#endregion
8
8
  //#region src/machines/checkbox/checkbox.types.d.ts
9
9
  type CheckedState = boolean | "indeterminate";
@@ -3,7 +3,7 @@ import { p as Machine, y as Service } from "../../types-fB7F7BBP.cjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
4
4
 
5
5
  //#region src/machines/clipboard/clipboard.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "input" | "indicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "trigger" | "indicator">;
7
7
  //#endregion
8
8
  //#region src/machines/clipboard/clipboard.types.d.ts
9
9
  interface CopyStatusDetails {
@@ -3,7 +3,7 @@ import { p as Machine, y as Service } from "../../types-BM4oVvZZ.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
4
4
 
5
5
  //#region src/machines/clipboard/clipboard.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "input" | "indicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "trigger" | "indicator">;
7
7
  //#endregion
8
8
  //#region src/machines/clipboard/clipboard.types.d.ts
9
9
  interface CopyStatusDetails {
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
6
6
  import { d as PositioningOptions } from "../../types-DE9w-zbc.cjs";
7
7
 
8
8
  //#region src/machines/color-picker/color-picker.anatomy.d.ts
9
- declare const anatomy: Anatomy<"root" | "control" | "valueText" | "label" | "trigger" | "positioner" | "content" | "area" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
9
+ declare const anatomy: Anatomy<"root" | "label" | "control" | "valueText" | "trigger" | "area" | "content" | "positioner" | "formatSelect" | "areaThumb" | "channelInput" | "channelSliderTrack" | "channelSliderThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderValueText" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger">;
10
10
  //#endregion
11
11
  //#region src/machines/color-picker/color-picker.types.d.ts
12
12
  type ExtendedColorChannel = ColorChannel | "hex" | "css";
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
6
6
  import { p as PositioningOptions } from "../../index-BhEktN_V.mjs";
7
7
 
8
8
  //#region src/machines/color-picker/color-picker.anatomy.d.ts
9
- declare const anatomy: Anatomy<"root" | "control" | "valueText" | "label" | "trigger" | "positioner" | "content" | "area" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
9
+ declare const anatomy: Anatomy<"root" | "label" | "control" | "valueText" | "trigger" | "area" | "content" | "positioner" | "formatSelect" | "areaThumb" | "channelInput" | "channelSliderTrack" | "channelSliderThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderValueText" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger">;
10
10
  //#endregion
11
11
  //#region src/machines/color-picker/color-picker.types.d.ts
12
12
  type ExtendedColorChannel = ColorChannel | "hex" | "css";
@@ -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-CBWaEVU4.cjs";
3
- import { t as ListCollection } from "../../list-collection-frYcaWR1.cjs";
3
+ import { t as ListCollection } from "../../list-collection-DwMgPYoA.cjs";
4
4
  import { p as Machine, u as EventObject, y as Service } from "../../types-fB7F7BBP.cjs";
5
5
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-D1U_WMQ9.cjs";
6
6
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
7
7
  import { c as Placement, d as PositioningOptions } from "../../types-DE9w-zbc.cjs";
8
8
 
9
9
  //#region src/machines/combobox/combobox.anatomy.d.ts
10
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "positioner" | "content" | "input" | "list" | "item" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText">;
10
+ declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "item" | "trigger" | "itemGroup" | "clearTrigger" | "content" | "list" | "itemIndicator" | "positioner" | "itemText" | "itemGroupLabel">;
11
11
  //#endregion
12
12
  //#region src/machines/combobox/combobox.collection.d.ts
13
13
  declare const collection: {
@@ -1,13 +1,13 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-D0tsc4Jo.mjs";
3
- import { t as ListCollection } from "../../list-collection-opFV146F.mjs";
3
+ import { t as ListCollection } from "../../list-collection-C9XUe75n.mjs";
4
4
  import { p as Machine, u as EventObject, y as Service } from "../../types-BM4oVvZZ.mjs";
5
5
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
6
6
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
7
7
  import { p as PositioningOptions, u as Placement } from "../../index-BhEktN_V.mjs";
8
8
 
9
9
  //#region src/machines/combobox/combobox.anatomy.d.ts
10
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "positioner" | "content" | "input" | "list" | "item" | "clearTrigger" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText">;
10
+ declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "item" | "trigger" | "itemGroup" | "clearTrigger" | "content" | "list" | "itemIndicator" | "positioner" | "itemText" | "itemGroupLabel">;
11
11
  //#endregion
12
12
  //#region src/machines/combobox/combobox.collection.d.ts
13
13
  declare const collection: {
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-DE9w-zbc.cj
8
8
  import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, DateValue, DateValue as DateValue$1, ZonedDateTime } from "@internationalized/date";
9
9
 
10
10
  //#region src/machines/date-picker/date-picker.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "positioner" | "content" | "input" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "table" | "view" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "view" | "trigger" | "clearTrigger" | "table" | "content" | "positioner" | "nextTrigger" | "prevTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
12
12
  //#endregion
13
13
  //#region src/machines/date-picker/date-picker.types.d.ts
14
14
  type DateView = "day" | "month" | "year";
@@ -1,14 +1,14 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-UNZ__hxH.mjs";
2
2
  import { p as Machine, y as Service } from "../../types-BM4oVvZZ.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CafmAesU.mjs";
4
- import { X as DateRangePreset } from "../../index-DLbWwJUT.mjs";
4
+ import { X as DateRangePreset } from "../../index-BTHULLJU.mjs";
5
5
  import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CXu0elLS.mjs";
6
6
  import { t as LiveRegion } from "../../index-DIJJrhP_.mjs";
7
7
  import { p as PositioningOptions, u as Placement } from "../../index-BhEktN_V.mjs";
8
8
  import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, DateValue, DateValue as DateValue$1, ZonedDateTime } from "@internationalized/date";
9
9
 
10
10
  //#region src/machines/date-picker/date-picker.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "trigger" | "positioner" | "content" | "input" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "table" | "view" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "label" | "input" | "control" | "view" | "trigger" | "clearTrigger" | "table" | "content" | "positioner" | "nextTrigger" | "prevTrigger" | "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-B2bSyA07.cjs";
6
6
 
7
7
  //#region src/machines/dialog/dialog.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "positioner" | "content" | "closeTrigger" | "title" | "description" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"title" | "description" | "closeTrigger" | "trigger" | "content" | "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-CpUMMV1f.mjs";
6
6
 
7
7
  //#region src/machines/dialog/dialog.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "positioner" | "content" | "closeTrigger" | "title" | "description" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"title" | "description" | "closeTrigger" | "trigger" | "content" | "positioner" | "backdrop">;
9
9
  //#endregion
10
10
  //#region src/machines/dialog/dialog.types.d.ts
11
11
  interface OpenChangeDetails {
@@ -8,26 +8,24 @@ const require_popper = require('../../popper-CY3ptPbm.cjs');
8
8
  const require_rect_utils = require('../../rect-utils-DtqZwNtZ.cjs');
9
9
  const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
10
10
 
11
- //#region src/machines/menu/menu.anatomy.ts
12
- const anatomy = require_create_anatomy.createAnatomy("menu").parts("arrow", "arrowTip", "content", "contextTrigger", "indicator", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "positioner", "separator", "trigger", "triggerItem");
11
+ //#region src/machines/dropdown-menu/dropdown-menu.anatomy.ts
12
+ const anatomy = require_create_anatomy.createAnatomy("dropdown-menu").parts("arrow", "arrowTip", "content", "indicator", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "positioner", "separator", "trigger", "triggerItem");
13
13
  const parts = anatomy.build();
14
14
 
15
15
  //#endregion
16
- //#region src/machines/menu/menu.dom.ts
17
- const getTriggerId = (ctx) => ctx.ids?.trigger ?? `menu:${ctx.id}:trigger`;
18
- const getContextTriggerId = (ctx) => ctx.ids?.contextTrigger ?? `menu:${ctx.id}:ctx-trigger`;
19
- const getContentId = (ctx) => ctx.ids?.content ?? `menu:${ctx.id}:content`;
20
- const getArrowId = (ctx) => ctx.ids?.arrow ?? `menu:${ctx.id}:arrow`;
21
- const getPositionerId = (ctx) => ctx.ids?.positioner ?? `menu:${ctx.id}:popper`;
22
- const getGroupId = (ctx, id) => ctx.ids?.group?.(id) ?? `menu:${ctx.id}:group:${id}`;
16
+ //#region src/machines/dropdown-menu/dropdown-menu.dom.ts
17
+ const getTriggerId = (ctx) => ctx.ids?.trigger ?? `dropdown-menu:${ctx.id}:trigger`;
18
+ const getContentId = (ctx) => ctx.ids?.content ?? `dropdown-menu:${ctx.id}:content`;
19
+ const getArrowId = (ctx) => ctx.ids?.arrow ?? `dropdown-menu:${ctx.id}:arrow`;
20
+ const getPositionerId = (ctx) => ctx.ids?.positioner ?? `dropdown-menu:${ctx.id}:popper`;
21
+ const getGroupId = (ctx, id) => ctx.ids?.group?.(id) ?? `dropdown-menu:${ctx.id}:group:${id}`;
23
22
  const getItemId = (ctx, id) => `${ctx.id}/${id}`;
24
23
  const getItemValue = (el) => el?.dataset.value ?? null;
25
- const getGroupLabelId = (ctx, id) => ctx.ids?.groupLabel?.(id) ?? `menu:${ctx.id}:group-label:${id}`;
24
+ const getGroupLabelId = (ctx, id) => ctx.ids?.groupLabel?.(id) ?? `dropdown-menu:${ctx.id}:group-label:${id}`;
26
25
  const getContentEl = (ctx) => ctx.getById(getContentId(ctx));
27
26
  const getPositionerEl = (ctx) => ctx.getById(getPositionerId(ctx));
28
27
  const getTriggerEl = (ctx) => ctx.getById(getTriggerId(ctx));
29
28
  const getItemEl = (ctx, value) => value ? ctx.getById(getItemId(ctx, value)) : null;
30
- const getContextTriggerEl = (ctx) => ctx.getById(getContextTriggerId(ctx));
31
29
  const getElements = (ctx) => {
32
30
  const selector = `[role^="menuitem"][data-ownedby=${CSS.escape(getContentId(ctx))}]:not([data-disabled])`;
33
31
  return require_dom_query.queryAll(getContentEl(ctx), selector);
@@ -69,7 +67,7 @@ function dispatchSelectionEvent(el, value) {
69
67
  }
70
68
 
71
69
  //#endregion
72
- //#region src/machines/menu/menu.connect.ts
70
+ //#region src/machines/dropdown-menu/dropdown-menu.connect.ts
73
71
  function connect(service, normalize) {
74
72
  const { context, send, state, computed, prop, scope } = service;
75
73
  const open = state.hasTag("open");
@@ -210,45 +208,6 @@ function connect(service, normalize) {
210
208
  node.addEventListener(itemSelectEvent, listener);
211
209
  return () => node.removeEventListener(itemSelectEvent, listener);
212
210
  },
213
- getContextTriggerProps() {
214
- return normalize.element({
215
- ...parts.contextTrigger.attrs,
216
- dir: prop("dir"),
217
- id: getContextTriggerId(scope),
218
- "data-state": open ? "open" : "closed",
219
- onPointerDown(event) {
220
- if (event.pointerType === "mouse") return;
221
- send({
222
- type: "CONTEXT_MENU_START",
223
- point: require_dom_query.getEventPoint(event)
224
- });
225
- },
226
- onPointerCancel(event) {
227
- if (event.pointerType === "mouse") return;
228
- send({ type: "CONTEXT_MENU_CANCEL" });
229
- },
230
- onPointerMove(event) {
231
- if (event.pointerType === "mouse") return;
232
- send({ type: "CONTEXT_MENU_CANCEL" });
233
- },
234
- onPointerUp(event) {
235
- if (event.pointerType === "mouse") return;
236
- send({ type: "CONTEXT_MENU_CANCEL" });
237
- },
238
- onContextMenu(event) {
239
- send({
240
- type: "CONTEXT_MENU",
241
- point: require_dom_query.getEventPoint(event)
242
- });
243
- event.preventDefault();
244
- },
245
- style: {
246
- WebkitTouchCallout: "none",
247
- WebkitUserSelect: "none",
248
- userSelect: "none"
249
- }
250
- });
251
- },
252
211
  getTriggerItemProps(childApi) {
253
212
  const triggerProps = childApi.getTriggerProps();
254
213
  return require_core.mergeProps(getItemProps({ value: triggerProps.id }), triggerProps);
@@ -289,7 +248,6 @@ function connect(service, normalize) {
289
248
  },
290
249
  onPointerDown(event) {
291
250
  if (isTargetDisabled(event.currentTarget)) return;
292
- if (require_dom_query.isContextMenuEvent(event)) return;
293
251
  event.preventDefault();
294
252
  },
295
253
  onClick(event) {
@@ -528,7 +486,7 @@ function connect(service, normalize) {
528
486
  }
529
487
 
530
488
  //#endregion
531
- //#region src/machines/menu/menu.machine.ts
489
+ //#region src/machines/dropdown-menu/dropdown-menu.machine.ts
532
490
  const { not, and, or } = require_core.createGuards();
533
491
  const machine = require_core.createMachine({
534
492
  props({ props }) {
@@ -631,17 +589,6 @@ const machine = require_core.createMachine({
631
589
  on: {
632
590
  "CONTROLLED.OPEN": { target: "open" },
633
591
  "CONTROLLED.CLOSE": { target: "closed" },
634
- CONTEXT_MENU_START: {
635
- target: "opening:contextmenu",
636
- actions: ["setAnchorPoint"]
637
- },
638
- CONTEXT_MENU: [{
639
- guard: "isOpenControlled",
640
- actions: ["setAnchorPoint", "invokeOnOpen"]
641
- }, {
642
- target: "open",
643
- actions: ["setAnchorPoint", "invokeOnOpen"]
644
- }],
645
592
  TRIGGER_CLICK: [{
646
593
  guard: "isOpenControlled",
647
594
  actions: ["invokeOnOpen"]
@@ -659,28 +606,6 @@ const machine = require_core.createMachine({
659
606
  }
660
607
  }
661
608
  },
662
- "opening:contextmenu": {
663
- tags: ["closed"],
664
- effects: ["waitForLongPress"],
665
- on: {
666
- "CONTROLLED.OPEN": { target: "open" },
667
- "CONTROLLED.CLOSE": { target: "closed" },
668
- CONTEXT_MENU_CANCEL: [{
669
- guard: "isOpenControlled",
670
- actions: ["invokeOnClose"]
671
- }, {
672
- target: "closed",
673
- actions: ["invokeOnClose"]
674
- }],
675
- "LONG_PRESS.OPEN": [{
676
- guard: "isOpenControlled",
677
- actions: ["invokeOnOpen"]
678
- }, {
679
- target: "open",
680
- actions: ["invokeOnOpen"]
681
- }]
682
- }
683
- },
684
609
  opening: {
685
610
  tags: ["closed"],
686
611
  effects: ["waitForOpenDelay"],
@@ -769,17 +694,6 @@ const machine = require_core.createMachine({
769
694
  },
770
695
  { target: "open" }
771
696
  ],
772
- CONTEXT_MENU_START: {
773
- target: "opening:contextmenu",
774
- actions: ["setAnchorPoint"]
775
- },
776
- CONTEXT_MENU: [{
777
- guard: "isOpenControlled",
778
- actions: ["setAnchorPoint", "invokeOnOpen"]
779
- }, {
780
- target: "open",
781
- actions: ["setAnchorPoint", "invokeOnOpen"]
782
- }],
783
697
  TRIGGER_CLICK: [{
784
698
  guard: "isOpenControlled",
785
699
  actions: ["invokeOnOpen"]
@@ -830,7 +744,6 @@ const machine = require_core.createMachine({
830
744
  target: "closed",
831
745
  actions: ["invokeOnClose"]
832
746
  }],
833
- CONTEXT_MENU: { actions: ["setAnchorPoint", "focusMenu"] },
834
747
  ARROW_UP: { actions: ["highlightPrevItem", "focusMenu"] },
835
748
  ARROW_DOWN: { actions: ["highlightNextItem", "focusMenu"] },
836
749
  ARROW_LEFT: [{
@@ -940,7 +853,6 @@ const machine = require_core.createMachine({
940
853
  return () => clearTimeout(timer);
941
854
  },
942
855
  trackPositioning({ context, prop, scope, refs }) {
943
- if (getContextTriggerEl(scope)) return;
944
856
  const positioning = {
945
857
  ...prop("positioning"),
946
858
  ...refs.get("positioningOverride")
@@ -966,11 +878,6 @@ const machine = require_core.createMachine({
966
878
  onRequestDismiss: prop("onRequestDismiss"),
967
879
  onFocusOutside(event) {
968
880
  prop("onFocusOutside")?.(event);
969
- const target = require_dom_query.getEventTarget(event.detail.originalEvent);
970
- if (require_dom_query.contains(getContextTriggerEl(scope), target)) {
971
- event.preventDefault();
972
- return;
973
- }
974
881
  },
975
882
  onEscapeKeyDown(event) {
976
883
  prop("onEscapeKeyDown")?.(event);
@@ -979,11 +886,6 @@ const machine = require_core.createMachine({
979
886
  },
980
887
  onPointerDownOutside(event) {
981
888
  prop("onPointerDownOutside")?.(event);
982
- const target = require_dom_query.getEventTarget(event.detail.originalEvent);
983
- if (require_dom_query.contains(getContextTriggerEl(scope), target) && event.detail.contextmenu) {
984
- event.preventDefault();
985
- return;
986
- }
987
889
  restoreFocus = !event.detail.focusable;
988
890
  },
989
891
  onDismiss() {
@@ -1255,7 +1157,7 @@ function resolveItemId(children, value, scope) {
1255
1157
  }
1256
1158
 
1257
1159
  //#endregion
1258
- //#region src/machines/menu/menu.props.ts
1160
+ //#region src/machines/dropdown-menu/dropdown-menu.props.ts
1259
1161
  const props = require_create_props.createProps()([
1260
1162
  "anchorPoint",
1261
1163
  "aria-label",
@@ -5,12 +5,12 @@ import { n as TypeaheadState } from "../../typeahead-BhNtyjQC.cjs";
5
5
  import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Cf0hysnI.cjs";
6
6
  import { t as DismissableElementHandlers } from "../../dismissable-layer-B2bSyA07.cjs";
7
7
  import { c as Placement, d as PositioningOptions } from "../../types-DE9w-zbc.cjs";
8
- import { a as Point } from "../../types-BzOOuj9T.cjs";
8
+ import { a as Point } from "../../types-Ct9amXkj.cjs";
9
9
 
10
- //#region src/machines/menu/menu.anatomy.d.ts
11
- declare const anatomy: AnatomyInstance<"trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "indicator" | "item" | "separator" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "contextTrigger" | "triggerItem">;
10
+ //#region src/machines/dropdown-menu/dropdown-menu.anatomy.d.ts
11
+ declare const anatomy: AnatomyInstance<"item" | "separator" | "trigger" | "itemGroup" | "content" | "indicator" | "itemIndicator" | "arrow" | "arrowTip" | "positioner" | "itemText" | "itemGroupLabel" | "triggerItem">;
12
12
  //#endregion
13
- //#region src/machines/menu/menu.types.d.ts
13
+ //#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
14
14
  interface OpenChangeDetails {
15
15
  open: boolean;
16
16
  }
@@ -27,7 +27,6 @@ interface NavigateDetails {
27
27
  }
28
28
  type ElementIds = Partial<{
29
29
  trigger: string;
30
- contextTrigger: string;
31
30
  content: string;
32
31
  groupLabel: (id: string) => string;
33
32
  group: (id: string) => string;
@@ -79,7 +78,7 @@ interface MenuSchema {
79
78
  effect: string;
80
79
  guard: string;
81
80
  event: EventObject;
82
- state: "idle" | "open" | "closed" | "opening" | "closing" | "opening:contextmenu";
81
+ state: "idle" | "open" | "closed" | "opening" | "closing";
83
82
  tag: "open" | "closed";
84
83
  }
85
84
  type MenuService = Service<MenuSchema>;
@@ -137,7 +136,6 @@ interface MenuApi<T extends PropTypes = PropTypes> {
137
136
  getOptionItemState: (props: OptionItemProps) => OptionItemState;
138
137
  getItemState: (props: ItemProps) => ItemState;
139
138
  addItemListener: (props: ItemListenerProps) => VoidFunction | undefined;
140
- getContextTriggerProps: () => T["element"];
141
139
  getTriggerItemProps: <A extends Api>(childApi: A) => T["element"];
142
140
  getTriggerProps: () => T["button"];
143
141
  getIndicatorProps: () => T["element"];
@@ -154,13 +152,13 @@ interface MenuApi<T extends PropTypes = PropTypes> {
154
152
  getItemGroupProps: (options: ItemGroupProps) => T["element"];
155
153
  }
156
154
  //#endregion
157
- //#region src/machines/menu/menu.connect.d.ts
155
+ //#region src/machines/dropdown-menu/dropdown-menu.connect.d.ts
158
156
  declare function connect<T extends PropTypes>(service: Service<MenuSchema>, normalize: NormalizeProps<T>): MenuApi<T>;
159
157
  //#endregion
160
- //#region src/machines/menu/menu.machine.d.ts
158
+ //#region src/machines/dropdown-menu/dropdown-menu.machine.d.ts
161
159
  declare const machine: Machine<MenuSchema>;
162
160
  //#endregion
163
- //#region src/machines/menu/menu.props.d.ts
161
+ //#region src/machines/dropdown-menu/dropdown-menu.props.d.ts
164
162
  declare const props: (keyof MenuProps)[];
165
163
  declare const splitProps: <Props extends Partial<MenuProps>>(props: Props) => [Partial<MenuProps>, Omit<Props, keyof MenuProps>];
166
164
  declare const itemProps: (keyof ItemProps)[];