@sprawlify/primitives 0.0.112 → 0.0.114

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 (94) hide show
  1. package/dist/{date-utils-Dz9DZPcZ.cjs → date-utils-B-dqorZV.cjs} +48 -13
  2. package/dist/{date-utils-BqOQP2-U.mjs → date-utils-BdeeOQRI.mjs} +43 -14
  3. package/dist/date-utils.cjs +2 -1
  4. package/dist/date-utils.d.cts +6 -5
  5. package/dist/date-utils.d.mts +2 -2
  6. package/dist/date-utils.mjs +2 -2
  7. package/dist/{index-6cEVkXqi.d.mts → index-BfUngXif.d.mts} +6 -5
  8. package/dist/machines/accordion/index.d.cts +1 -1
  9. package/dist/machines/accordion/index.d.mts +1 -1
  10. package/dist/machines/angle-slider/index.cjs +64 -24
  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/angle-slider/index.mjs +65 -25
  14. package/dist/machines/carousel/index.d.cts +1 -1
  15. package/dist/machines/carousel/index.d.mts +1 -1
  16. package/dist/machines/cascade-select/index.cjs +44 -19
  17. package/dist/machines/cascade-select/index.d.cts +13 -10
  18. package/dist/machines/cascade-select/index.d.mts +13 -10
  19. package/dist/machines/cascade-select/index.mjs +45 -20
  20. package/dist/machines/checkbox/index.cjs +0 -5
  21. package/dist/machines/checkbox/index.mjs +0 -5
  22. package/dist/machines/clipboard/index.d.cts +1 -1
  23. package/dist/machines/clipboard/index.d.mts +1 -1
  24. package/dist/machines/collapsible/index.d.cts +1 -1
  25. package/dist/machines/collapsible/index.d.mts +1 -1
  26. package/dist/machines/color-picker/index.d.cts +1 -1
  27. package/dist/machines/color-picker/index.d.mts +1 -1
  28. package/dist/machines/combobox/index.cjs +13 -11
  29. package/dist/machines/combobox/index.d.cts +1 -1
  30. package/dist/machines/combobox/index.d.mts +1 -1
  31. package/dist/machines/combobox/index.mjs +14 -12
  32. package/dist/machines/date-picker/index.cjs +46 -25
  33. package/dist/machines/date-picker/index.d.cts +3 -2
  34. package/dist/machines/date-picker/index.d.mts +4 -3
  35. package/dist/machines/date-picker/index.mjs +47 -26
  36. package/dist/machines/dialog/index.d.cts +1 -1
  37. package/dist/machines/dialog/index.d.mts +1 -1
  38. package/dist/machines/drawer/index.d.cts +1 -1
  39. package/dist/machines/drawer/index.d.mts +1 -1
  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/editable/index.d.cts +1 -1
  43. package/dist/machines/editable/index.d.mts +1 -1
  44. package/dist/machines/file-upload/index.d.cts +1 -1
  45. package/dist/machines/file-upload/index.d.mts +1 -1
  46. package/dist/machines/floating-panel/index.d.cts +1 -1
  47. package/dist/machines/floating-panel/index.d.mts +1 -1
  48. package/dist/machines/hover-card/index.d.cts +1 -1
  49. package/dist/machines/hover-card/index.d.mts +1 -1
  50. package/dist/machines/image-cropper/index.d.cts +1 -1
  51. package/dist/machines/image-cropper/index.d.mts +1 -1
  52. package/dist/machines/listbox/index.d.cts +1 -1
  53. package/dist/machines/listbox/index.d.mts +1 -1
  54. package/dist/machines/marquee/index.d.cts +3 -3
  55. package/dist/machines/marquee/index.d.mts +3 -3
  56. package/dist/machines/navigation-menu/index.d.cts +1 -1
  57. package/dist/machines/navigation-menu/index.d.mts +1 -1
  58. package/dist/machines/number-input/index.d.cts +1 -1
  59. package/dist/machines/number-input/index.d.mts +1 -1
  60. package/dist/machines/pagination/index.d.cts +1 -1
  61. package/dist/machines/pagination/index.d.mts +1 -1
  62. package/dist/machines/password-input/index.d.cts +1 -1
  63. package/dist/machines/password-input/index.d.mts +1 -1
  64. package/dist/machines/pin-input/index.d.cts +1 -1
  65. package/dist/machines/pin-input/index.d.mts +1 -1
  66. package/dist/machines/popover/index.d.cts +1 -1
  67. package/dist/machines/popover/index.d.mts +1 -1
  68. package/dist/machines/progress/index.d.cts +1 -1
  69. package/dist/machines/progress/index.d.mts +1 -1
  70. package/dist/machines/scroll-area/index.d.cts +1 -1
  71. package/dist/machines/scroll-area/index.d.mts +1 -1
  72. package/dist/machines/select/index.d.cts +1 -1
  73. package/dist/machines/select/index.d.mts +1 -1
  74. package/dist/machines/slider/index.d.cts +1 -1
  75. package/dist/machines/slider/index.d.mts +1 -1
  76. package/dist/machines/splitter/index.d.cts +1 -1
  77. package/dist/machines/splitter/index.d.mts +1 -1
  78. package/dist/machines/steps/index.d.cts +1 -1
  79. package/dist/machines/steps/index.d.mts +1 -1
  80. package/dist/machines/tabs/index.d.cts +1 -1
  81. package/dist/machines/tabs/index.d.mts +1 -1
  82. package/dist/machines/tags-input/index.d.cts +1 -1
  83. package/dist/machines/tags-input/index.d.mts +1 -1
  84. package/dist/machines/timer/index.d.cts +1 -1
  85. package/dist/machines/timer/index.d.mts +1 -1
  86. package/dist/machines/toast/index.d.cts +1 -1
  87. package/dist/machines/toast/index.d.mts +1 -1
  88. package/dist/machines/tooltip/index.d.cts +1 -1
  89. package/dist/machines/tooltip/index.d.mts +1 -1
  90. package/dist/machines/tour/index.d.cts +1 -1
  91. package/dist/machines/tour/index.d.mts +1 -1
  92. package/dist/machines/tree-view/index.d.cts +1 -1
  93. package/dist/machines/tree-view/index.d.mts +1 -1
  94. package/package.json +1 -1
@@ -4,7 +4,7 @@ const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
4
4
  const require_dom_query = require("../../dom-query-BUO7rGsg.cjs");
5
5
  const require_utils = require("../../utils-ByNiZU8f.cjs");
6
6
  const require_core = require("../../core-DwdPztGA.cjs");
7
- const require_date_utils = require("../../date-utils-Dz9DZPcZ.cjs");
7
+ const require_date_utils = require("../../date-utils-B-dqorZV.cjs");
8
8
  require("../../interact-outside-Bg-QSXqp.cjs");
9
9
  const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
10
10
  const require_live_region = require("../../live-region-TGReV9nm.cjs");
@@ -186,7 +186,8 @@ const getVisibleRangeText = require_core.memo((opts) => [
186
186
  if (view === "month") {
187
187
  const formatter = new _internationalized_date.DateFormatter(locale, {
188
188
  year: "numeric",
189
- timeZone
189
+ timeZone,
190
+ calendar: startValue.calendar.identifier
190
191
  });
191
192
  const start = formatter.format(startValue.toDate(timeZone));
192
193
  const end = formatter.format(endValue.toDate(timeZone));
@@ -199,7 +200,8 @@ const getVisibleRangeText = require_core.memo((opts) => [
199
200
  const formatter = new _internationalized_date.DateFormatter(locale, {
200
201
  month: "long",
201
202
  year: "numeric",
202
- timeZone
203
+ timeZone,
204
+ calendar: startValue.calendar.identifier
203
205
  });
204
206
  const start = formatter.format(startValue.toDate(timeZone));
205
207
  const end = formatter.format(endValue.toDate(timeZone));
@@ -251,7 +253,7 @@ function connect(service, normalize) {
251
253
  }
252
254
  function getMonths(props = {}) {
253
255
  const { format } = props;
254
- return require_date_utils.getMonthNames(locale, format).map((label, index) => {
256
+ return require_date_utils.getMonthNames(locale, format, focusedValue).map((label, index) => {
255
257
  const value = index + 1;
256
258
  return {
257
259
  label,
@@ -261,10 +263,7 @@ function connect(service, normalize) {
261
263
  });
262
264
  }
263
265
  function getYears() {
264
- return require_date_utils.getYearsRange({
265
- from: min?.year ?? 1900,
266
- to: max?.year ?? 2100
267
- }).map((year) => ({
266
+ return require_date_utils.getYearsRange(require_date_utils.getDefaultYearRange(focusedValue, min, max)).map((year) => ({
268
267
  label: year.toString(),
269
268
  value: year,
270
269
  disabled: !require_utils.isValueWithinRange(year, min?.year, max?.year)
@@ -276,13 +275,13 @@ function connect(service, normalize) {
276
275
  function focusMonth(month) {
277
276
  send({
278
277
  type: "FOCUS.SET",
279
- value: (startValue ?? require_date_utils.getTodayDate(timeZone)).set({ month })
278
+ value: (startValue ?? require_date_utils.getTodayDate(timeZone, focusedValue.calendar)).set({ month })
280
279
  });
281
280
  }
282
281
  function focusYear(year) {
283
282
  send({
284
283
  type: "FOCUS.SET",
285
- value: (startValue ?? require_date_utils.getTodayDate(timeZone)).set({ year })
284
+ value: (startValue ?? require_date_utils.getTodayDate(timeZone, focusedValue.calendar)).set({ year })
286
285
  });
287
286
  }
288
287
  function getYearTableCellState(props) {
@@ -307,7 +306,7 @@ function connect(service, normalize) {
307
306
  function getMonthTableCellState(props) {
308
307
  const { value, disabled } = props;
309
308
  const dateValue = focusedValue.set({ month: value });
310
- const formatter = require_date_utils.getMonthFormatter(locale, timeZone);
309
+ const formatter = require_date_utils.getMonthFormatter(locale, timeZone, focusedValue);
311
310
  const cellState = {
312
311
  focused: focusedValue.month === props.value,
313
312
  selectable: !require_date_utils.isDateOutsideRange(dateValue, min, max),
@@ -323,7 +322,7 @@ function connect(service, normalize) {
323
322
  }
324
323
  function getDayTableCellState(props) {
325
324
  const { value, disabled, visibleRange = computed("visibleRange") } = props;
326
- const formatter = require_date_utils.getDayFormatter(locale, timeZone);
325
+ const formatter = require_date_utils.getDayFormatter(locale, timeZone, focusedValue);
327
326
  const unitDuration = require_date_utils.getUnitDuration(computed("visibleDuration"));
328
327
  const outsideDaySelectable = prop("outsideDaySelectable");
329
328
  const end = visibleRange.start.add(unitDuration).subtract({ days: 1 });
@@ -393,7 +392,7 @@ function connect(service, normalize) {
393
392
  getOffset(duration) {
394
393
  const from = startValue.add(duration);
395
394
  const end = endValue.add(duration);
396
- const formatter = require_date_utils.getMonthFormatter(locale, timeZone);
395
+ const formatter = require_date_utils.getMonthFormatter(locale, timeZone, focusedValue);
397
396
  return {
398
397
  visibleRange: {
399
398
  start: from,
@@ -409,7 +408,7 @@ function connect(service, normalize) {
409
408
  getMonthWeeks,
410
409
  isUnavailable,
411
410
  weeks: getMonthWeeks(),
412
- weekDays: require_date_utils.getWeekDays(require_date_utils.getTodayDate(timeZone), startOfWeek, timeZone, locale),
411
+ weekDays: require_date_utils.getWeekDays(startValue, startOfWeek, timeZone, locale),
413
412
  visibleRangeText: computed("visibleRangeText"),
414
413
  value: selectedValue,
415
414
  valueAsDate: selectedValue.filter((date) => date != null).map((date) => date.toDate(timeZone)),
@@ -424,7 +423,7 @@ function connect(service, normalize) {
424
423
  selectToday() {
425
424
  send({
426
425
  type: "VALUE.SET",
427
- value: [require_date_utils.constrainValue(require_date_utils.getTodayDate(timeZone), min, max)]
426
+ value: [require_date_utils.constrainValue(require_date_utils.getTodayDate(timeZone, focusedValue.calendar), min, max)]
428
427
  });
429
428
  },
430
429
  setValue(values) {
@@ -495,7 +494,10 @@ function connect(service, normalize) {
495
494
  month: "long",
496
495
  year: "numeric"
497
496
  }) {
498
- return new _internationalized_date.DateFormatter(locale, opts).format(value.toDate(timeZone));
497
+ return new _internationalized_date.DateFormatter(locale, {
498
+ ...opts,
499
+ calendar: value.calendar.identifier
500
+ }).format(value.toDate(timeZone));
499
501
  },
500
502
  setView(view) {
501
503
  send({
@@ -735,6 +737,7 @@ function connect(service, normalize) {
735
737
  scope: "col",
736
738
  "aria-label": translations.weekColumnHeader,
737
739
  "data-view": view,
740
+ "data-type": "week-number",
738
741
  "data-disabled": require_dom_query.dataAttr(disabled)
739
742
  });
740
743
  },
@@ -747,6 +750,7 @@ function connect(service, normalize) {
747
750
  "aria-label": translations.weekNumberCell?.(weekNumber),
748
751
  "data-view": "day",
749
752
  "data-week-index": weekIndex,
753
+ "data-type": "week-number",
750
754
  "data-disabled": require_dom_query.dataAttr(disabled)
751
755
  });
752
756
  },
@@ -1187,10 +1191,20 @@ const machine = require_core.createMachine({
1187
1191
  const timeZone = props.timeZone || "UTC";
1188
1192
  const selectionMode = props.selectionMode || "single";
1189
1193
  const numOfMonths = props.numOfMonths || 1;
1190
- const defaultValue = props.defaultValue ? sortDates(props.defaultValue).map((date) => require_date_utils.constrainValue(date, props.min, props.max)) : void 0;
1191
- const value = props.value ? sortDates(props.value).map((date) => require_date_utils.constrainValue(date, props.min, props.max)) : void 0;
1192
- let focusedValue = props.focusedValue || props.defaultFocusedValue || value?.[0] || defaultValue?.[0] || require_date_utils.getTodayDate(timeZone);
1193
- focusedValue = require_date_utils.constrainValue(focusedValue, props.min, props.max);
1194
+ let calendar;
1195
+ if (props.createCalendar) {
1196
+ const calendarId = new Intl.DateTimeFormat(locale).resolvedOptions().calendar;
1197
+ if (calendarId !== "gregory" && calendarId !== "iso8601") calendar = props.createCalendar(calendarId);
1198
+ }
1199
+ const toTargetCalendar = (date) => {
1200
+ if (!calendar) return date;
1201
+ if (date.calendar.identifier === calendar.identifier) return date;
1202
+ return (0, _internationalized_date.toCalendar)(date, calendar);
1203
+ };
1204
+ const defaultValue = props.defaultValue ? sortDates(props.defaultValue).map((date) => require_date_utils.constrainValue(toTargetCalendar(date), props.min, props.max)) : void 0;
1205
+ const value = props.value ? sortDates(props.value).map((date) => require_date_utils.constrainValue(toTargetCalendar(date), props.min, props.max)) : void 0;
1206
+ let focusedValue = props.focusedValue || props.defaultFocusedValue || value?.[0] || defaultValue?.[0] || require_date_utils.getTodayDate(timeZone, calendar);
1207
+ focusedValue = require_date_utils.constrainValue(toTargetCalendar(focusedValue), props.min, props.max);
1194
1208
  const minView = "day";
1195
1209
  const maxView = "year";
1196
1210
  return {
@@ -1208,7 +1222,8 @@ const machine = require_core.createMachine({
1208
1222
  timeZone,
1209
1223
  day: "2-digit",
1210
1224
  month: "2-digit",
1211
- year: "numeric"
1225
+ year: "numeric",
1226
+ calendar: calendar?.identifier
1212
1227
  }).format(date.toDate(timeZone));
1213
1228
  },
1214
1229
  parse(value, { locale, timeZone }) {
@@ -2027,8 +2042,9 @@ const machine = require_core.createMachine({
2027
2042
  setFocusedValue(params, context.get("focusedValue").subtract({ years: 10 }));
2028
2043
  },
2029
2044
  clearFocusedDate(params) {
2030
- const { prop } = params;
2031
- setFocusedValue(params, require_date_utils.getTodayDate(prop("timeZone")));
2045
+ const { context, prop } = params;
2046
+ const calendar = context.get("focusedValue").calendar;
2047
+ setFocusedValue(params, require_date_utils.getTodayDate(prop("timeZone"), calendar));
2032
2048
  },
2033
2049
  focusPreviousMonthColumn(params) {
2034
2050
  const { context, event } = params;
@@ -2048,11 +2064,15 @@ const machine = require_core.createMachine({
2048
2064
  },
2049
2065
  focusFirstMonth(params) {
2050
2066
  const { context } = params;
2051
- setFocusedValue(params, context.get("focusedValue").set({ month: 1 }));
2067
+ const focused = context.get("focusedValue");
2068
+ const minMonth = focused.calendar.getMinimumMonthInYear?.(focused) ?? 1;
2069
+ setFocusedValue(params, focused.set({ month: minMonth }));
2052
2070
  },
2053
2071
  focusLastMonth(params) {
2054
2072
  const { context } = params;
2055
- setFocusedValue(params, context.get("focusedValue").set({ month: 12 }));
2073
+ const focused = context.get("focusedValue");
2074
+ const maxMonth = focused.calendar.getMonthsInYear(focused);
2075
+ setFocusedValue(params, focused.set({ month: maxMonth }));
2056
2076
  },
2057
2077
  focusFirstYear(params) {
2058
2078
  const { context } = params;
@@ -2245,6 +2265,7 @@ function parse(value) {
2245
2265
  //#region src/machines/date-picker/date-picker.props.ts
2246
2266
  const props = require_create_props.createProps()([
2247
2267
  "closeOnSelect",
2268
+ "createCalendar",
2248
2269
  "dir",
2249
2270
  "disabled",
2250
2271
  "fixedWeeks",
@@ -5,10 +5,10 @@ import { a as DateRangePreset, o as DateValue } from "../../types-MFO-RQR7.cjs";
5
5
  import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
6
6
  import { t as LiveRegion } from "../../index-BO-Z3fhz.cjs";
7
7
  import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
8
- import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
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" | "control" | "content" | "input" | "trigger" | "prevTrigger" | "nextTrigger" | "table" | "view" | "clearTrigger" | "positioner" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "input" | "label" | "control" | "nextTrigger" | "prevTrigger" | "table" | "view" | "positioner" | "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";
@@ -87,6 +87,7 @@ type ElementIds = Partial<{
87
87
  }>;
88
88
  interface DatePickerProps extends DirectionProperty, CommonProperties {
89
89
  locale?: string | undefined;
90
+ createCalendar?: ((identifier: CalendarIdentifier) => Calendar) | undefined;
90
91
  translations?: IntlTranslations | undefined;
91
92
  ids?: ElementIds | undefined;
92
93
  name?: string | undefined;
@@ -1,14 +1,14 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-BedZVdg0.mjs";
2
2
  import { p as Machine, y as Service } from "../../types-DUM9rzfD.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
4
- import { Q as DateValue, Z as DateRangePreset } from "../../index-6cEVkXqi.mjs";
4
+ import { $ as DateValue, Q as DateRangePreset } from "../../index-BfUngXif.mjs";
5
5
  import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
6
6
  import { t as LiveRegion } from "../../index-1L40UHp8.mjs";
7
7
  import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mjs";
8
- import { Calendar, CalendarDate, CalendarDateTime, DateDuration, DateFormatter, ZonedDateTime } from "@internationalized/date";
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" | "control" | "content" | "input" | "trigger" | "prevTrigger" | "nextTrigger" | "table" | "view" | "clearTrigger" | "positioner" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "input" | "label" | "control" | "nextTrigger" | "prevTrigger" | "table" | "view" | "positioner" | "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";
@@ -87,6 +87,7 @@ type ElementIds = Partial<{
87
87
  }>;
88
88
  interface DatePickerProps extends DirectionProperty, CommonProperties {
89
89
  locale?: string | undefined;
90
+ createCalendar?: ((identifier: CalendarIdentifier) => Calendar) | undefined;
90
91
  translations?: IntlTranslations | undefined;
91
92
  ids?: ElementIds | undefined;
92
93
  name?: string | undefined;
@@ -2,13 +2,13 @@ import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
2
2
  import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf, _t as isComposingEvent, bn as ariaAttr, ct as setElementValue, ft as getEventKey, gt as getNativeEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
3
3
  import { N as isValueWithinRange, Y as match, g as clampValue, ht as chunk, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
4
4
  import { a as createMachine, i as createGuards, s as memo } from "../../core-Ci9Yu6QI.mjs";
5
- import { A as getDayFormatter, F as isDateOutsideRange, G as constrainValue, I as isDateUnavailable, L as isNextRangeInvalid, M as getEndDate, N as getUnitDuration, O as formatSelectedDate, P as isDateEqual, R as isPreviousRangeInvalid, S as getMonthNames, T as getWeekOfYear, _ as getYearsRange, g as getDecadeRange, i as getNextPage, j as getMonthFormatter, l as getPreviousSection, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, w as getWeekDays, x as getMonthDays, y as getDaysInWeek, z as alignDate } from "../../date-utils-BqOQP2-U.mjs";
5
+ import { B as alignDate, C as getMonthNames, E as getWeekOfYear, F as isDateEqual, I as isDateOutsideRange, K as constrainValue, L as isDateUnavailable, M as getMonthFormatter, N as getEndDate, P as getUnitDuration, R as isNextRangeInvalid, S as getMonthDays, T as getWeekDays, _ as getDefaultYearRange, b as getDaysInWeek, g as getDecadeRange, i as getNextPage, j as getDayFormatter, k as formatSelectedDate, l as getPreviousSection, n as parseDateString, o as getNextSection, p as getTodayDate, r as getAdjustedDateFn, s as getPreviousPage, t as getDateRangePreset, v as getYearsRange, z as isPreviousRangeInvalid } from "../../date-utils-BdeeOQRI.mjs";
6
6
  import "../../interact-outside-Ba50N1a5.mjs";
7
7
  import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
8
8
  import { t as createLiveRegion } from "../../live-region-TgEDzvS4.mjs";
9
9
  import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
10
10
  import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
11
- import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate, toCalendarDateTime, toZoned } from "@internationalized/date";
11
+ import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate, toCalendar, toCalendarDateTime, toZoned } from "@internationalized/date";
12
12
  //#region src/machines/date-picker/date-picker.anatomy.ts
13
13
  const anatomy = createAnatomy("date-picker").parts("clearTrigger", "content", "control", "input", "label", "monthSelect", "nextTrigger", "positioner", "presetTrigger", "prevTrigger", "rangeText", "root", "table", "tableBody", "tableCell", "tableCellTrigger", "tableHead", "tableHeader", "tableRow", "trigger", "view", "viewControl", "viewTrigger", "yearSelect");
14
14
  const parts = anatomy.build();
@@ -184,7 +184,8 @@ const getVisibleRangeText = memo((opts) => [
184
184
  if (view === "month") {
185
185
  const formatter = new DateFormatter(locale, {
186
186
  year: "numeric",
187
- timeZone
187
+ timeZone,
188
+ calendar: startValue.calendar.identifier
188
189
  });
189
190
  const start = formatter.format(startValue.toDate(timeZone));
190
191
  const end = formatter.format(endValue.toDate(timeZone));
@@ -197,7 +198,8 @@ const getVisibleRangeText = memo((opts) => [
197
198
  const formatter = new DateFormatter(locale, {
198
199
  month: "long",
199
200
  year: "numeric",
200
- timeZone
201
+ timeZone,
202
+ calendar: startValue.calendar.identifier
201
203
  });
202
204
  const start = formatter.format(startValue.toDate(timeZone));
203
205
  const end = formatter.format(endValue.toDate(timeZone));
@@ -249,7 +251,7 @@ function connect(service, normalize) {
249
251
  }
250
252
  function getMonths(props = {}) {
251
253
  const { format } = props;
252
- return getMonthNames(locale, format).map((label, index) => {
254
+ return getMonthNames(locale, format, focusedValue).map((label, index) => {
253
255
  const value = index + 1;
254
256
  return {
255
257
  label,
@@ -259,10 +261,7 @@ function connect(service, normalize) {
259
261
  });
260
262
  }
261
263
  function getYears() {
262
- return getYearsRange({
263
- from: min?.year ?? 1900,
264
- to: max?.year ?? 2100
265
- }).map((year) => ({
264
+ return getYearsRange(getDefaultYearRange(focusedValue, min, max)).map((year) => ({
266
265
  label: year.toString(),
267
266
  value: year,
268
267
  disabled: !isValueWithinRange(year, min?.year, max?.year)
@@ -274,13 +273,13 @@ function connect(service, normalize) {
274
273
  function focusMonth(month) {
275
274
  send({
276
275
  type: "FOCUS.SET",
277
- value: (startValue ?? getTodayDate(timeZone)).set({ month })
276
+ value: (startValue ?? getTodayDate(timeZone, focusedValue.calendar)).set({ month })
278
277
  });
279
278
  }
280
279
  function focusYear(year) {
281
280
  send({
282
281
  type: "FOCUS.SET",
283
- value: (startValue ?? getTodayDate(timeZone)).set({ year })
282
+ value: (startValue ?? getTodayDate(timeZone, focusedValue.calendar)).set({ year })
284
283
  });
285
284
  }
286
285
  function getYearTableCellState(props) {
@@ -305,7 +304,7 @@ function connect(service, normalize) {
305
304
  function getMonthTableCellState(props) {
306
305
  const { value, disabled } = props;
307
306
  const dateValue = focusedValue.set({ month: value });
308
- const formatter = getMonthFormatter(locale, timeZone);
307
+ const formatter = getMonthFormatter(locale, timeZone, focusedValue);
309
308
  const cellState = {
310
309
  focused: focusedValue.month === props.value,
311
310
  selectable: !isDateOutsideRange(dateValue, min, max),
@@ -321,7 +320,7 @@ function connect(service, normalize) {
321
320
  }
322
321
  function getDayTableCellState(props) {
323
322
  const { value, disabled, visibleRange = computed("visibleRange") } = props;
324
- const formatter = getDayFormatter(locale, timeZone);
323
+ const formatter = getDayFormatter(locale, timeZone, focusedValue);
325
324
  const unitDuration = getUnitDuration(computed("visibleDuration"));
326
325
  const outsideDaySelectable = prop("outsideDaySelectable");
327
326
  const end = visibleRange.start.add(unitDuration).subtract({ days: 1 });
@@ -391,7 +390,7 @@ function connect(service, normalize) {
391
390
  getOffset(duration) {
392
391
  const from = startValue.add(duration);
393
392
  const end = endValue.add(duration);
394
- const formatter = getMonthFormatter(locale, timeZone);
393
+ const formatter = getMonthFormatter(locale, timeZone, focusedValue);
395
394
  return {
396
395
  visibleRange: {
397
396
  start: from,
@@ -407,7 +406,7 @@ function connect(service, normalize) {
407
406
  getMonthWeeks,
408
407
  isUnavailable,
409
408
  weeks: getMonthWeeks(),
410
- weekDays: getWeekDays(getTodayDate(timeZone), startOfWeek, timeZone, locale),
409
+ weekDays: getWeekDays(startValue, startOfWeek, timeZone, locale),
411
410
  visibleRangeText: computed("visibleRangeText"),
412
411
  value: selectedValue,
413
412
  valueAsDate: selectedValue.filter((date) => date != null).map((date) => date.toDate(timeZone)),
@@ -422,7 +421,7 @@ function connect(service, normalize) {
422
421
  selectToday() {
423
422
  send({
424
423
  type: "VALUE.SET",
425
- value: [constrainValue(getTodayDate(timeZone), min, max)]
424
+ value: [constrainValue(getTodayDate(timeZone, focusedValue.calendar), min, max)]
426
425
  });
427
426
  },
428
427
  setValue(values) {
@@ -493,7 +492,10 @@ function connect(service, normalize) {
493
492
  month: "long",
494
493
  year: "numeric"
495
494
  }) {
496
- return new DateFormatter(locale, opts).format(value.toDate(timeZone));
495
+ return new DateFormatter(locale, {
496
+ ...opts,
497
+ calendar: value.calendar.identifier
498
+ }).format(value.toDate(timeZone));
497
499
  },
498
500
  setView(view) {
499
501
  send({
@@ -733,6 +735,7 @@ function connect(service, normalize) {
733
735
  scope: "col",
734
736
  "aria-label": translations.weekColumnHeader,
735
737
  "data-view": view,
738
+ "data-type": "week-number",
736
739
  "data-disabled": dataAttr(disabled)
737
740
  });
738
741
  },
@@ -745,6 +748,7 @@ function connect(service, normalize) {
745
748
  "aria-label": translations.weekNumberCell?.(weekNumber),
746
749
  "data-view": "day",
747
750
  "data-week-index": weekIndex,
751
+ "data-type": "week-number",
748
752
  "data-disabled": dataAttr(disabled)
749
753
  });
750
754
  },
@@ -1185,10 +1189,20 @@ const machine = createMachine({
1185
1189
  const timeZone = props.timeZone || "UTC";
1186
1190
  const selectionMode = props.selectionMode || "single";
1187
1191
  const numOfMonths = props.numOfMonths || 1;
1188
- const defaultValue = props.defaultValue ? sortDates(props.defaultValue).map((date) => constrainValue(date, props.min, props.max)) : void 0;
1189
- const value = props.value ? sortDates(props.value).map((date) => constrainValue(date, props.min, props.max)) : void 0;
1190
- let focusedValue = props.focusedValue || props.defaultFocusedValue || value?.[0] || defaultValue?.[0] || getTodayDate(timeZone);
1191
- focusedValue = constrainValue(focusedValue, props.min, props.max);
1192
+ let calendar;
1193
+ if (props.createCalendar) {
1194
+ const calendarId = new Intl.DateTimeFormat(locale).resolvedOptions().calendar;
1195
+ if (calendarId !== "gregory" && calendarId !== "iso8601") calendar = props.createCalendar(calendarId);
1196
+ }
1197
+ const toTargetCalendar = (date) => {
1198
+ if (!calendar) return date;
1199
+ if (date.calendar.identifier === calendar.identifier) return date;
1200
+ return toCalendar(date, calendar);
1201
+ };
1202
+ const defaultValue = props.defaultValue ? sortDates(props.defaultValue).map((date) => constrainValue(toTargetCalendar(date), props.min, props.max)) : void 0;
1203
+ const value = props.value ? sortDates(props.value).map((date) => constrainValue(toTargetCalendar(date), props.min, props.max)) : void 0;
1204
+ let focusedValue = props.focusedValue || props.defaultFocusedValue || value?.[0] || defaultValue?.[0] || getTodayDate(timeZone, calendar);
1205
+ focusedValue = constrainValue(toTargetCalendar(focusedValue), props.min, props.max);
1192
1206
  const minView = "day";
1193
1207
  const maxView = "year";
1194
1208
  return {
@@ -1206,7 +1220,8 @@ const machine = createMachine({
1206
1220
  timeZone,
1207
1221
  day: "2-digit",
1208
1222
  month: "2-digit",
1209
- year: "numeric"
1223
+ year: "numeric",
1224
+ calendar: calendar?.identifier
1210
1225
  }).format(date.toDate(timeZone));
1211
1226
  },
1212
1227
  parse(value, { locale, timeZone }) {
@@ -2025,8 +2040,9 @@ const machine = createMachine({
2025
2040
  setFocusedValue(params, context.get("focusedValue").subtract({ years: 10 }));
2026
2041
  },
2027
2042
  clearFocusedDate(params) {
2028
- const { prop } = params;
2029
- setFocusedValue(params, getTodayDate(prop("timeZone")));
2043
+ const { context, prop } = params;
2044
+ const calendar = context.get("focusedValue").calendar;
2045
+ setFocusedValue(params, getTodayDate(prop("timeZone"), calendar));
2030
2046
  },
2031
2047
  focusPreviousMonthColumn(params) {
2032
2048
  const { context, event } = params;
@@ -2046,11 +2062,15 @@ const machine = createMachine({
2046
2062
  },
2047
2063
  focusFirstMonth(params) {
2048
2064
  const { context } = params;
2049
- setFocusedValue(params, context.get("focusedValue").set({ month: 1 }));
2065
+ const focused = context.get("focusedValue");
2066
+ const minMonth = focused.calendar.getMinimumMonthInYear?.(focused) ?? 1;
2067
+ setFocusedValue(params, focused.set({ month: minMonth }));
2050
2068
  },
2051
2069
  focusLastMonth(params) {
2052
2070
  const { context } = params;
2053
- setFocusedValue(params, context.get("focusedValue").set({ month: 12 }));
2071
+ const focused = context.get("focusedValue");
2072
+ const maxMonth = focused.calendar.getMonthsInYear(focused);
2073
+ setFocusedValue(params, focused.set({ month: maxMonth }));
2054
2074
  },
2055
2075
  focusFirstYear(params) {
2056
2076
  const { context } = params;
@@ -2243,6 +2263,7 @@ function parse(value) {
2243
2263
  //#region src/machines/date-picker/date-picker.props.ts
2244
2264
  const props = createProps()([
2245
2265
  "closeOnSelect",
2266
+ "createCalendar",
2246
2267
  "dir",
2247
2268
  "disabled",
2248
2269
  "fixedWeeks",
@@ -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<"content" | "trigger" | "title" | "positioner" | "description" | "closeTrigger" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "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<"content" | "trigger" | "title" | "positioner" | "description" | "closeTrigger" | "backdrop">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "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<"content" | "trigger" | "title" | "positioner" | "description" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator" | "swipeArea">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "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<"content" | "trigger" | "title" | "positioner" | "description" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator" | "swipeArea">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "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<"indicator" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "itemGroup" | "positioner" | "separator" | "arrow" | "arrowTip" | "itemGroupLabel" | "triggerItem">;
11
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "indicator" | "item" | "itemIndicator" | "itemGroup" | "arrow" | "arrowTip" | "positioner" | "itemText" | "separator" | "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<"indicator" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "itemGroup" | "positioner" | "separator" | "arrow" | "arrowTip" | "itemGroupLabel" | "triggerItem">;
11
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "indicator" | "item" | "itemIndicator" | "itemGroup" | "arrow" | "arrowTip" | "positioner" | "itemText" | "separator" | "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" | "control" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "input" | "label" | "control" | "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" | "control" | "input" | "area" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
7
+ declare const anatomy: AnatomyInstance<"root" | "input" | "label" | "control" | "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" | "label" | "item" | "trigger" | "itemGroup" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "dropzone" | "itemName" | "itemPreviewImage" | "itemSizeText">;
7
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "label" | "item" | "itemGroup" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "dropzone" | "itemName" | "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" | "label" | "item" | "trigger" | "itemGroup" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "dropzone" | "itemName" | "itemPreviewImage" | "itemSizeText">;
7
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "label" | "item" | "itemGroup" | "clearTrigger" | "itemPreview" | "itemDeleteTrigger" | "dropzone" | "itemName" | "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<"control" | "content" | "trigger" | "body" | "header" | "title" | "positioner" | "closeTrigger" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "control" | "body" | "header" | "title" | "closeTrigger" | "positioner" | "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<"control" | "content" | "trigger" | "body" | "header" | "title" | "positioner" | "closeTrigger" | "resizeTrigger" | "dragTrigger" | "stageTrigger">;
7
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "control" | "body" | "header" | "title" | "closeTrigger" | "positioner" | "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<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "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<"content" | "trigger" | "positioner" | "arrow" | "arrowTip">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
9
9
  //#endregion
10
10
  //#region src/machines/hover-card/hover-card.types.d.ts
11
11
  interface OpenChangeDetails {