@sprawlify/primitives 0.0.59 → 0.0.61

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 (82) hide show
  1. package/dist/collection.d.cts +2 -2
  2. package/dist/collection.d.mts +2 -2
  3. package/dist/date-utils.d.cts +5 -5
  4. package/dist/date-utils.d.mts +1 -1
  5. package/dist/dom-query.d.cts +1 -1
  6. package/dist/dom-query.d.mts +1 -1
  7. package/dist/{index-BqhWpjZh.d.mts → index-HnPpYuSl.d.mts} +5 -5
  8. package/dist/{list-collection-DettiQL3.d.cts → list-collection-BslnP0r-.d.cts} +1 -1
  9. package/dist/{list-collection-BbgocToA.d.mts → list-collection-swuCMCIS.d.mts} +1 -1
  10. package/dist/machines/angle-slider/index.d.cts +1 -1
  11. package/dist/machines/angle-slider/index.d.mts +1 -1
  12. package/dist/machines/bottom-sheet/index.d.cts +1 -1
  13. package/dist/machines/bottom-sheet/index.d.mts +1 -1
  14. package/dist/machines/carousel/index.d.cts +1 -1
  15. package/dist/machines/carousel/index.d.mts +1 -1
  16. package/dist/machines/checkbox/index.d.cts +1 -1
  17. package/dist/machines/checkbox/index.d.mts +1 -1
  18. package/dist/machines/clipboard/index.d.cts +1 -1
  19. package/dist/machines/clipboard/index.d.mts +1 -1
  20. package/dist/machines/color-picker/index.d.cts +1 -1
  21. package/dist/machines/color-picker/index.d.mts +1 -1
  22. package/dist/machines/combobox/index.d.cts +2 -2
  23. package/dist/machines/combobox/index.d.mts +2 -2
  24. package/dist/machines/date-picker/index.cjs +67 -26
  25. package/dist/machines/date-picker/index.d.cts +4 -1
  26. package/dist/machines/date-picker/index.d.mts +5 -2
  27. package/dist/machines/date-picker/index.mjs +68 -27
  28. package/dist/machines/dialog/index.d.cts +1 -1
  29. package/dist/machines/dialog/index.d.mts +1 -1
  30. package/dist/machines/editable/index.d.cts +1 -1
  31. package/dist/machines/editable/index.d.mts +1 -1
  32. package/dist/machines/file-upload/index.d.cts +1 -1
  33. package/dist/machines/file-upload/index.d.mts +1 -1
  34. package/dist/machines/floating-panel/index.d.cts +1 -1
  35. package/dist/machines/floating-panel/index.d.mts +1 -1
  36. package/dist/machines/hover-card/index.d.cts +1 -1
  37. package/dist/machines/hover-card/index.d.mts +1 -1
  38. package/dist/machines/listbox/index.d.cts +3 -3
  39. package/dist/machines/listbox/index.d.mts +3 -3
  40. package/dist/machines/marquee/index.d.cts +2 -2
  41. package/dist/machines/marquee/index.d.mts +2 -2
  42. package/dist/machines/menu/index.d.cts +1 -1
  43. package/dist/machines/menu/index.d.mts +1 -1
  44. package/dist/machines/navigation-menu/index.d.cts +1 -1
  45. package/dist/machines/navigation-menu/index.d.mts +1 -1
  46. package/dist/machines/number-input/index.d.cts +1 -1
  47. package/dist/machines/number-input/index.d.mts +1 -1
  48. package/dist/machines/password-input/index.d.cts +1 -1
  49. package/dist/machines/password-input/index.d.mts +1 -1
  50. package/dist/machines/pin-input/index.d.cts +1 -1
  51. package/dist/machines/pin-input/index.d.mts +1 -1
  52. package/dist/machines/popover/index.d.cts +1 -1
  53. package/dist/machines/popover/index.d.mts +1 -1
  54. package/dist/machines/qr-code/index.d.cts +1 -1
  55. package/dist/machines/qr-code/index.d.mts +1 -1
  56. package/dist/machines/radio-group/index.d.cts +1 -1
  57. package/dist/machines/radio-group/index.d.mts +1 -1
  58. package/dist/machines/rating-group/index.d.cts +1 -1
  59. package/dist/machines/rating-group/index.d.mts +1 -1
  60. package/dist/machines/scroll-area/index.d.cts +1 -1
  61. package/dist/machines/scroll-area/index.d.mts +1 -1
  62. package/dist/machines/select/index.d.cts +2 -2
  63. package/dist/machines/select/index.d.mts +2 -2
  64. package/dist/machines/signature-pad/index.d.cts +1 -1
  65. package/dist/machines/signature-pad/index.d.mts +1 -1
  66. package/dist/machines/slider/index.d.cts +1 -1
  67. package/dist/machines/slider/index.d.mts +1 -1
  68. package/dist/machines/tags-input/index.d.cts +1 -1
  69. package/dist/machines/tags-input/index.d.mts +1 -1
  70. package/dist/machines/timer/index.d.cts +1 -1
  71. package/dist/machines/timer/index.d.mts +1 -1
  72. package/dist/machines/toast/index.d.cts +1 -1
  73. package/dist/machines/toast/index.d.mts +1 -1
  74. package/dist/machines/tooltip/index.d.cts +1 -1
  75. package/dist/machines/tooltip/index.d.mts +1 -1
  76. package/dist/machines/tour/index.d.cts +1 -1
  77. package/dist/machines/tour/index.d.mts +1 -1
  78. package/dist/machines/tree-view/index.d.cts +1 -1
  79. package/dist/machines/tree-view/index.d.mts +1 -1
  80. package/dist/{selection-CTaapzrB.d.mts → selection-CIoBu9mp.d.mts} +1 -1
  81. package/dist/{selection-D3b3yV_x.d.cts → selection-DTpiPgq8.d.cts} +1 -1
  82. package/package.json +1 -1
@@ -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-CADkcKtr.cjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-DettiQL3.cjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-D3b3yV_x.cjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-BslnP0r-.cjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-DTpiPgq8.cjs";
4
4
  import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-CmehimuO.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-Df8ZhdY-.mjs";
2
- import { n as isListCollection, t as ListCollection } from "./list-collection-BbgocToA.mjs";
3
- import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-CTaapzrB.mjs";
2
+ import { n as isListCollection, t as ListCollection } from "./list-collection-swuCMCIS.mjs";
3
+ import { a as isGridCollection, i as GridCollectionOptions, n as SelectionMode, r as GridCollection, t as Selection } from "./selection-CIoBu9mp.mjs";
4
4
  import { n as filePathToTree, r as flattenedToTree, t as TreeCollection } from "./tree-collection-CqXQBHwY.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,5 +1,5 @@
1
1
  import { a as DateRangePreset, i as DateGranularity, n as DateAlignment, r as DateAvailableFn, t as DateAdjustFn } from "./types-GxLIgJib.cjs";
2
- import * as _internationalized_date4 from "@internationalized/date";
2
+ import * as _internationalized_date0 from "@internationalized/date";
3
3
  import { Calendar, DateDuration, DateFormatter, DateValue } from "@internationalized/date";
4
4
 
5
5
  //#region src/shared/date-utils/align.d.ts
@@ -27,7 +27,7 @@ declare function getUnitDuration(duration: DateDuration): {
27
27
  weeks?: number;
28
28
  days?: number;
29
29
  };
30
- declare function getEndDate(startDate: DateValue, duration: DateDuration): _internationalized_date4.CalendarDate | _internationalized_date4.CalendarDateTime | _internationalized_date4.ZonedDateTime;
30
+ declare function getEndDate(startDate: DateValue, duration: DateDuration): _internationalized_date0.CalendarDate | _internationalized_date0.CalendarDateTime | _internationalized_date0.ZonedDateTime;
31
31
  //#endregion
32
32
  //#region src/shared/date-utils/format.d.ts
33
33
  declare function formatRange(startDate: DateValue, endDate: DateValue, formatter: DateFormatter, toString: (start: string, end: string) => string, timeZone: string): string;
@@ -50,7 +50,7 @@ declare function getWeekdayFormats(locale: string, timeZone: string): <T extends
50
50
  narrow: string;
51
51
  };
52
52
  declare function getWeekDays(date: DateValue, startOfWeekProp: number | undefined, timeZone: string, locale: string): {
53
- value: _internationalized_date4.CalendarDate | _internationalized_date4.CalendarDateTime | _internationalized_date4.ZonedDateTime;
53
+ value: _internationalized_date0.CalendarDate | _internationalized_date0.CalendarDateTime | _internationalized_date0.ZonedDateTime;
54
54
  short: string;
55
55
  long: string;
56
56
  narrow: string;
@@ -69,8 +69,8 @@ declare function getDecadeRange(year: number, opts?: {
69
69
  }): number[];
70
70
  //#endregion
71
71
  //#region src/shared/date-utils/mutation.d.ts
72
- declare function getTodayDate(timeZone?: string): _internationalized_date4.CalendarDate;
73
- declare function setCalendar(date: DateValue, calendar: Calendar): _internationalized_date4.CalendarDateTime;
72
+ declare function getTodayDate(timeZone?: string): _internationalized_date0.CalendarDate;
73
+ declare function setCalendar(date: DateValue, calendar: Calendar): _internationalized_date0.CalendarDateTime;
74
74
  declare function setDate(date: DateValue, startDate: DateValue, isDateUnavailable: DateAvailableFn, locale: string, minValue: DateValue, maxValue: DateValue): DateValue | undefined;
75
75
  declare function getPreviousAvailableDate(date: DateValue, minValue: DateValue, locale: string, isDateUnavailable?: DateAvailableFn): DateValue | undefined;
76
76
  //#endregion
@@ -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-BqhWpjZh.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-HnPpYuSl.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 };
@@ -57,7 +57,7 @@ declare const isModifierKey: (e: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "al
57
57
  declare const isTouchEvent: (event: AnyPointerEvent) => event is TouchEvent;
58
58
  declare function getEventKey(event: Pick<KeyboardEvent, "key">, options?: EventKeyOptions): string;
59
59
  declare function getNativeEvent<E>(event: E): NativeEvent<E>;
60
- declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 10 | 0.1;
60
+ declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 0.1 | 10;
61
61
  declare function getEventPoint(event: any, type?: "page" | "client"): {
62
62
  x: number;
63
63
  y: number;
@@ -57,7 +57,7 @@ declare const isModifierKey: (e: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "al
57
57
  declare const isTouchEvent: (event: AnyPointerEvent) => event is TouchEvent;
58
58
  declare function getEventKey(event: Pick<KeyboardEvent, "key">, options?: EventKeyOptions): string;
59
59
  declare function getNativeEvent<E>(event: E): NativeEvent<E>;
60
- declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 10 | 0.1;
60
+ declare function getEventStep(event: Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "key" | "shiftKey">): 1 | 0.1 | 10;
61
61
  declare function getEventPoint(event: any, type?: "page" | "client"): {
62
62
  x: number;
63
63
  y: number;
@@ -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 | -1 | 0;
49
+ compareValue: (a: string, b: string) => 1 | 0 | -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 | -1 | 0;
49
+ compareValue: (a: string, b: string) => 1 | 0 | -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-DejIu6
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
4
4
 
5
5
  //#region src/machines/angle-slider/angle-slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb" | "track" | "marker" | "valueText" | "markerGroup">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "track" | "control" | "thumb" | "marker" | "valueText" | "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-DL5AIQ
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
4
4
 
5
5
  //#region src/machines/angle-slider/angle-slider.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb" | "track" | "marker" | "valueText" | "markerGroup">;
6
+ declare const anatomy: AnatomyInstance<"root" | "label" | "track" | "control" | "thumb" | "marker" | "valueText" | "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-D-7fwQL8.cjs";
6
6
 
7
7
  //#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "backdrop" | "grabber" | "grabberIndicator" | "closeTrigger">;
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-C39y-V3t.mjs";
6
6
 
7
7
  //#region src/machines/bottom-sheet/bottom-sheet.anatomy.d.ts
8
- declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "closeTrigger" | "backdrop" | "grabber" | "grabberIndicator">;
8
+ declare const anatomy: AnatomyInstance<"trigger" | "content" | "title" | "backdrop" | "grabber" | "grabberIndicator" | "closeTrigger">;
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-DejIu6
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-Bqw3r34-.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" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "item" | "itemGroup" | "control" | "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-DL5AIQ
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-BuUzJjaP.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" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "item" | "itemGroup" | "control" | "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-DejIu6
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
4
4
 
5
5
  //#region src/machines/checkbox/checkbox.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control">;
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-DL5AIQ
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
4
4
 
5
5
  //#region src/machines/checkbox/checkbox.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "indicator">;
6
+ declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control">;
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-DejIu60O.cjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
4
4
 
5
5
  //#region src/machines/clipboard/clipboard.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "trigger" | "indicator" | "input">;
6
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "indicator" | "label" | "input" | "control">;
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-DL5AIQk5.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
4
4
 
5
5
  //#region src/machines/clipboard/clipboard.anatomy.d.ts
6
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "trigger" | "indicator" | "input">;
6
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "indicator" | "label" | "input" | "control">;
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-D5ziaMrd.cjs";
7
7
 
8
8
  //#region src/machines/color-picker/color-picker.anatomy.d.ts
9
- declare const anatomy: Anatomy<"root" | "label" | "control" | "trigger" | "content" | "area" | "positioner" | "valueText" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
9
+ declare const anatomy: Anatomy<"root" | "trigger" | "content" | "label" | "control" | "area" | "positioner" | "valueText" | "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-BTi1wETB.mjs";
7
7
 
8
8
  //#region src/machines/color-picker/color-picker.anatomy.d.ts
9
- declare const anatomy: Anatomy<"root" | "label" | "control" | "trigger" | "content" | "area" | "positioner" | "valueText" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
9
+ declare const anatomy: Anatomy<"root" | "trigger" | "content" | "label" | "control" | "area" | "positioner" | "valueText" | "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-smWrirg1.cjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-CADkcKtr.cjs";
3
- import { t as ListCollection } from "../../list-collection-DettiQL3.cjs";
3
+ import { t as ListCollection } from "../../list-collection-BslnP0r-.cjs";
4
4
  import { p as Machine, u as EventObject, y as Service } from "../../types-DejIu60O.cjs";
5
5
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-Bqw3r34-.cjs";
6
6
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-C9-feK5c.cjs";
7
7
  import { c as Placement, d as PositioningOptions } from "../../types-D5ziaMrd.cjs";
8
8
 
9
9
  //#region src/machines/combobox/combobox.anatomy.d.ts
10
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "list" | "trigger" | "content" | "item" | "input" | "itemText" | "positioner" | "itemIndicator" | "clearTrigger" | "itemGroup" | "itemGroupLabel">;
10
+ declare const anatomy: AnatomyInstance<"root" | "list" | "trigger" | "content" | "label" | "item" | "itemText" | "input" | "itemGroup" | "clearTrigger" | "control" | "positioner" | "itemIndicator" | "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-DHVOqZET.mjs";
2
2
  import { r as CollectionOptions, t as CollectionItem } from "../../types-Df8ZhdY-.mjs";
3
- import { t as ListCollection } from "../../list-collection-BbgocToA.mjs";
3
+ import { t as ListCollection } from "../../list-collection-swuCMCIS.mjs";
4
4
  import { p as Machine, u as EventObject, y as Service } from "../../types-DL5AIQk5.mjs";
5
5
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
6
6
  import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Bvn6ocEE.mjs";
7
7
  import { p as PositioningOptions, u as Placement } from "../../index-BTi1wETB.mjs";
8
8
 
9
9
  //#region src/machines/combobox/combobox.anatomy.d.ts
10
- declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "list" | "trigger" | "content" | "item" | "input" | "itemText" | "positioner" | "itemIndicator" | "clearTrigger" | "itemGroup" | "itemGroupLabel">;
10
+ declare const anatomy: AnatomyInstance<"root" | "list" | "trigger" | "content" | "label" | "item" | "itemText" | "input" | "itemGroup" | "clearTrigger" | "control" | "positioner" | "itemIndicator" | "itemGroupLabel">;
11
11
  //#endregion
12
12
  //#region src/machines/combobox/combobox.collection.d.ts
13
13
  declare const collection: {
@@ -164,6 +164,49 @@ const views = [
164
164
  function eachView(cb) {
165
165
  views.forEach((view) => cb(view));
166
166
  }
167
+ const getVisibleRangeText = require_core.memo((opts) => [
168
+ opts.view,
169
+ opts.startValue.toString(),
170
+ opts.endValue.toString(),
171
+ opts.locale
172
+ ], ([view], opts) => {
173
+ const { startValue, endValue, locale, timeZone, selectionMode } = opts;
174
+ if (view === "year") {
175
+ const years = require_date_utils.getDecadeRange(startValue.year, { strict: true });
176
+ const start$1 = years.at(0).toString();
177
+ const end$1 = years.at(-1).toString();
178
+ return {
179
+ start: start$1,
180
+ end: end$1,
181
+ formatted: `${start$1} - ${end$1}`
182
+ };
183
+ }
184
+ if (view === "month") {
185
+ const formatter$1 = new _internationalized_date.DateFormatter(locale, {
186
+ year: "numeric",
187
+ timeZone
188
+ });
189
+ const start$1 = formatter$1.format(startValue.toDate(timeZone));
190
+ const end$1 = formatter$1.format(endValue.toDate(timeZone));
191
+ return {
192
+ start: start$1,
193
+ end: end$1,
194
+ formatted: selectionMode === "range" ? `${start$1} - ${end$1}` : start$1
195
+ };
196
+ }
197
+ const formatter = new _internationalized_date.DateFormatter(locale, {
198
+ month: "long",
199
+ year: "numeric",
200
+ timeZone
201
+ });
202
+ const start = formatter.format(startValue.toDate(timeZone));
203
+ const end = formatter.format(endValue.toDate(timeZone));
204
+ return {
205
+ start,
206
+ end,
207
+ formatted: selectionMode === "range" ? `${start} - ${end}` : start
208
+ };
209
+ });
167
210
 
168
211
  //#endregion
169
212
  //#region src/machines/date-picker/date-picker.connect.ts
@@ -179,6 +222,7 @@ function connect(service, normalize) {
179
222
  const readOnly = Boolean(prop("readOnly"));
180
223
  const invalid = Boolean(prop("invalid"));
181
224
  const interactive = computed("isInteractive");
225
+ const empty = selectedValue.length === 0;
182
226
  const min = prop("min");
183
227
  const max = prop("max");
184
228
  const locale = prop("locale");
@@ -222,13 +266,6 @@ function connect(service, normalize) {
222
266
  disabled: !require_utils.isValueWithinRange(year, min?.year, max?.year)
223
267
  }));
224
268
  }
225
- function getDecadeYears(year) {
226
- return require_date_utils.getDecadeRange(year ?? startValue.year).map((year$1) => ({
227
- label: year$1.toString(),
228
- value: year$1,
229
- disabled: !require_utils.isValueWithinRange(year$1, min?.year, max?.year)
230
- }));
231
- }
232
269
  function isUnavailable(date) {
233
270
  return require_date_utils.isDateUnavailable(date, isDateUnavailableFn, locale, min, max);
234
271
  }
@@ -330,7 +367,10 @@ function connect(service, normalize) {
330
367
  open,
331
368
  disabled,
332
369
  invalid,
370
+ readOnly,
333
371
  inline: !!prop("inline"),
372
+ numOfMonths: prop("numOfMonths"),
373
+ selectionMode: prop("selectionMode"),
334
374
  view: context.get("view"),
335
375
  getRangePresetValue(preset) {
336
376
  return require_date_utils.getDateRangePreset(preset, locale, timeZone);
@@ -401,10 +441,14 @@ function connect(service, normalize) {
401
441
  getMonths,
402
442
  getYearsGrid(props$1 = {}) {
403
443
  const { columns = 1 } = props$1;
404
- return require_utils.chunk(getDecadeYears(), columns);
444
+ return require_utils.chunk(require_date_utils.getDecadeRange(startValue.year, { strict: true }).map((year) => ({
445
+ label: year.toString(),
446
+ value: year,
447
+ disabled: !require_utils.isValueWithinRange(year, min?.year, max?.year)
448
+ })), columns);
405
449
  },
406
450
  getDecade() {
407
- const years = require_date_utils.getDecadeRange(focusedValue.year);
451
+ const years = require_date_utils.getDecadeRange(startValue.year, { strict: true });
408
452
  return {
409
453
  start: years.at(0),
410
454
  end: years.at(-1)
@@ -445,7 +489,8 @@ function connect(service, normalize) {
445
489
  id: getRootId(scope),
446
490
  "data-state": open ? "open" : "closed",
447
491
  "data-disabled": require_dom_query.dataAttr(disabled),
448
- "data-readonly": require_dom_query.dataAttr(readOnly)
492
+ "data-readonly": require_dom_query.dataAttr(readOnly),
493
+ "data-empty": require_dom_query.dataAttr(empty)
449
494
  });
450
495
  },
451
496
  getLabelProps(props$1 = {}) {
@@ -466,7 +511,8 @@ function connect(service, normalize) {
466
511
  ...parts.control.attrs,
467
512
  dir: prop("dir"),
468
513
  id: getControlId(scope),
469
- "data-disabled": require_dom_query.dataAttr(disabled)
514
+ "data-disabled": require_dom_query.dataAttr(disabled),
515
+ "data-placeholder-shown": require_dom_query.dataAttr(empty)
470
516
  });
471
517
  },
472
518
  getRangeTextProps() {
@@ -889,6 +935,7 @@ function connect(service, normalize) {
889
935
  "aria-label": translations.trigger(open),
890
936
  "aria-controls": getContentId(scope),
891
937
  "data-state": open ? "open" : "closed",
938
+ "data-placeholder-shown": require_dom_query.dataAttr(empty),
892
939
  "aria-haspopup": "grid",
893
940
  disabled,
894
941
  onClick(event) {
@@ -946,6 +993,7 @@ function connect(service, normalize) {
946
993
  name: prop("name"),
947
994
  "data-index": index,
948
995
  "data-state": open ? "open" : "closed",
996
+ "data-placeholder-shown": require_dom_query.dataAttr(empty),
949
997
  readOnly,
950
998
  disabled,
951
999
  required: prop("required"),
@@ -1191,21 +1239,14 @@ const machine = require_core.createMachine({
1191
1239
  start: context.get("startValue"),
1192
1240
  end: computed("endValue")
1193
1241
  }),
1194
- visibleRangeText({ context, prop, computed }) {
1195
- const timeZone = prop("timeZone");
1196
- const formatter = new _internationalized_date.DateFormatter(prop("locale"), {
1197
- month: "long",
1198
- year: "numeric",
1199
- timeZone
1200
- });
1201
- const start = formatter.format(context.get("startValue").toDate(timeZone));
1202
- const end = formatter.format(computed("endValue").toDate(timeZone));
1203
- return {
1204
- start,
1205
- end,
1206
- formatted: prop("selectionMode") === "range" ? `${start} - ${end}` : start
1207
- };
1208
- },
1242
+ visibleRangeText: ({ context, prop, computed }) => getVisibleRangeText({
1243
+ view: context.get("view"),
1244
+ startValue: context.get("startValue"),
1245
+ endValue: computed("endValue"),
1246
+ locale: prop("locale"),
1247
+ timeZone: prop("timeZone"),
1248
+ selectionMode: prop("selectionMode")
1249
+ }),
1209
1250
  isPrevVisibleRangeValid: ({ context, prop }) => !require_date_utils.isPreviousRangeInvalid(context.get("startValue"), prop("min"), prop("max")),
1210
1251
  isNextVisibleRangeValid: ({ prop, computed }) => !require_date_utils.isNextRangeInvalid(computed("endValue"), prop("min"), prop("max")),
1211
1252
  valueAsString: ({ context, prop }) => getValueAsString(context.get("value"), prop)
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-D5ziaMrd.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" | "label" | "control" | "trigger" | "content" | "input" | "table" | "view" | "positioner" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "label" | "input" | "clearTrigger" | "control" | "table" | "view" | "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";
@@ -265,7 +265,10 @@ interface DatePickerApi<T extends PropTypes = PropTypes> {
265
265
  open: boolean;
266
266
  disabled: boolean;
267
267
  invalid: boolean;
268
+ readOnly: boolean;
268
269
  inline: boolean;
270
+ numOfMonths: number;
271
+ selectionMode: SelectionMode;
269
272
  view: DateView;
270
273
  getDaysInWeek: (week: number, from?: DateValue) => DateValue[];
271
274
  getOffset: (duration: DateDuration) => DateValueOffset;
@@ -1,14 +1,14 @@
1
1
  import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
2
2
  import { p as Machine, y as Service } from "../../types-DL5AIQk5.mjs";
3
3
  import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BuUzJjaP.mjs";
4
- import { X as DateRangePreset } from "../../index-BqhWpjZh.mjs";
4
+ import { X as DateRangePreset } from "../../index-HnPpYuSl.mjs";
5
5
  import { c as PointerDownOutsideEvent, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-Bvn6ocEE.mjs";
6
6
  import { t as LiveRegion } from "../../index-CygfPLvT.mjs";
7
7
  import { p as PositioningOptions, u as Placement } from "../../index-BTi1wETB.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" | "label" | "control" | "trigger" | "content" | "input" | "table" | "view" | "positioner" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect">;
11
+ declare const anatomy: AnatomyInstance<"root" | "trigger" | "content" | "label" | "input" | "clearTrigger" | "control" | "table" | "view" | "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";
@@ -265,7 +265,10 @@ interface DatePickerApi<T extends PropTypes = PropTypes> {
265
265
  open: boolean;
266
266
  disabled: boolean;
267
267
  invalid: boolean;
268
+ readOnly: boolean;
268
269
  inline: boolean;
270
+ numOfMonths: number;
271
+ selectionMode: SelectionMode;
269
272
  view: DateView;
270
273
  getDaysInWeek: (week: number, from?: DateValue) => DateValue[];
271
274
  getOffset: (duration: DateDuration) => DateValueOffset;