@sprawlify/primitives 0.0.98 → 0.0.100
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.
- package/dist/{aria-hidden-UJAPt1aA.cjs → aria-hidden-BAGrxNHt.cjs} +1 -1
- package/dist/{aria-hidden-P3kaF8gG.mjs → aria-hidden-BX4SWNE_.mjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-DzPXdyR-.cjs → auto-resize-B1BDDnp1.cjs} +1 -1
- package/dist/{auto-resize-Bjzuo5Lh.mjs → auto-resize-CN2vAzdj.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/collection.d.cts +2 -2
- package/dist/collection.d.mts +2 -2
- package/dist/{core-DfVajPnu.mjs → core-BmIEKqtP.mjs} +1 -1
- package/dist/{core-BiGlJ-4W.cjs → core-nBg9RC_y.cjs} +1 -1
- package/dist/core.cjs +2 -2
- package/dist/core.mjs +2 -2
- package/dist/{dismissable-DPXx0m0m.cjs → dismissable-ChwcJMHk.cjs} +2 -2
- package/dist/{dismissable-BAYaXwxZ.mjs → dismissable-DWfZGIA7.mjs} +2 -2
- package/dist/dismissable.cjs +3 -3
- package/dist/dismissable.mjs +3 -3
- package/dist/{dom-query-6Wt-Tikf.cjs → dom-query-Bd63cRVF.cjs} +26 -6
- package/dist/{dom-query-dX8Dakb4.mjs → dom-query-s2ESLR2U.mjs} +15 -7
- package/dist/dom-query.cjs +3 -1
- package/dist/dom-query.d.cts +8 -2
- package/dist/dom-query.d.mts +8 -2
- package/dist/dom-query.mjs +2 -2
- package/dist/{focus-trap-Cd09JaUn.mjs → focus-trap-DzBvBlTH.mjs} +1 -1
- package/dist/{focus-trap-ClCNF7kY.cjs → focus-trap-fucc6OU_.cjs} +1 -1
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-CqHoOOjw.cjs → focus-visible-75XTctXf.cjs} +1 -1
- package/dist/{focus-visible-CSuBQ5QZ.mjs → focus-visible-D5qBaAOn.mjs} +1 -1
- package/dist/focus-visible.cjs +2 -2
- package/dist/focus-visible.mjs +2 -2
- package/dist/{i18n-utils-bHwTSOWi.cjs → i18n-utils-DB-lUfrr.cjs} +1 -1
- package/dist/{i18n-utils-BsXTdcWB.mjs → i18n-utils-oWZyUib_.mjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{interact-outside-C-8lOhpV.mjs → interact-outside-2qkUnl4N.mjs} +1 -1
- package/dist/{interact-outside-DRaFGdMg.cjs → interact-outside-Cx4J0EBf.cjs} +1 -1
- package/dist/interact-outside.cjs +2 -2
- package/dist/interact-outside.mjs +2 -2
- package/dist/{list-collection-C0swT4Wu.d.cts → list-collection-B_8BN0XB.d.cts} +1 -1
- package/dist/{list-collection-AgReIMJ0.d.mts → list-collection-DkRA5LOq.d.mts} +1 -1
- package/dist/machines/accordion/index.cjs +2 -2
- package/dist/machines/accordion/index.d.cts +1 -1
- package/dist/machines/accordion/index.d.mts +1 -1
- package/dist/machines/accordion/index.mjs +2 -2
- package/dist/machines/angle-slider/index.cjs +2 -2
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.mts +1 -1
- package/dist/machines/angle-slider/index.mjs +2 -2
- package/dist/machines/aspect-ratio/index.cjs +2 -2
- package/dist/machines/aspect-ratio/index.mjs +2 -2
- package/dist/machines/async-list/index.cjs +2 -2
- package/dist/machines/async-list/index.mjs +2 -2
- package/dist/machines/avatar/index.cjs +2 -2
- package/dist/machines/avatar/index.mjs +2 -2
- package/dist/machines/bottom-sheet/index.cjs +7 -7
- package/dist/machines/bottom-sheet/index.d.cts +1 -1
- package/dist/machines/bottom-sheet/index.d.mts +1 -1
- package/dist/machines/bottom-sheet/index.mjs +7 -7
- package/dist/machines/carousel/index.cjs +3 -3
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.mts +1 -1
- package/dist/machines/carousel/index.mjs +3 -3
- package/dist/machines/cascade-select/index.cjs +5 -5
- package/dist/machines/cascade-select/index.d.cts +2 -2
- package/dist/machines/cascade-select/index.d.mts +2 -2
- package/dist/machines/cascade-select/index.mjs +5 -5
- package/dist/machines/checkbox/index.cjs +3 -3
- package/dist/machines/checkbox/index.d.cts +1 -1
- package/dist/machines/checkbox/index.d.mts +1 -1
- package/dist/machines/checkbox/index.mjs +3 -3
- package/dist/machines/clipboard/index.cjs +2 -2
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.mts +1 -1
- package/dist/machines/clipboard/index.mjs +2 -2
- package/dist/machines/collapsible/index.cjs +2 -2
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.mts +1 -1
- package/dist/machines/collapsible/index.mjs +2 -2
- package/dist/machines/color-picker/index.cjs +5 -5
- package/dist/machines/color-picker/index.d.cts +1 -1
- package/dist/machines/color-picker/index.d.mts +1 -1
- package/dist/machines/color-picker/index.mjs +5 -5
- package/dist/machines/combobox/index.cjs +5 -5
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +2 -2
- package/dist/machines/combobox/index.mjs +5 -5
- package/dist/machines/date-picker/index.cjs +52 -16
- package/dist/machines/date-picker/index.d.cts +1 -1
- package/dist/machines/date-picker/index.d.mts +1 -1
- package/dist/machines/date-picker/index.mjs +53 -17
- package/dist/machines/dialog/index.cjs +7 -7
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +1 -1
- package/dist/machines/dialog/index.mjs +7 -7
- package/dist/machines/dropdown-menu/index.cjs +5 -5
- package/dist/machines/dropdown-menu/index.d.cts +1 -1
- package/dist/machines/dropdown-menu/index.d.mts +1 -1
- package/dist/machines/dropdown-menu/index.mjs +5 -5
- package/dist/machines/editable/index.cjs +3 -3
- package/dist/machines/editable/index.d.cts +1 -1
- package/dist/machines/editable/index.d.mts +1 -1
- package/dist/machines/editable/index.mjs +3 -3
- package/dist/machines/file-upload/index.cjs +3 -3
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.mts +1 -1
- package/dist/machines/file-upload/index.mjs +3 -3
- package/dist/machines/floating-panel/index.cjs +2 -2
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.mts +1 -1
- package/dist/machines/floating-panel/index.mjs +2 -2
- package/dist/machines/hover-card/index.cjs +5 -5
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +1 -1
- package/dist/machines/hover-card/index.mjs +5 -5
- package/dist/machines/image-cropper/index.cjs +2 -2
- package/dist/machines/image-cropper/index.mjs +2 -2
- package/dist/machines/listbox/index.cjs +3 -3
- package/dist/machines/listbox/index.d.cts +3 -3
- package/dist/machines/listbox/index.d.mts +3 -3
- package/dist/machines/listbox/index.mjs +3 -3
- package/dist/machines/marquee/index.cjs +2 -2
- package/dist/machines/marquee/index.d.cts +2 -2
- package/dist/machines/marquee/index.d.mts +2 -2
- package/dist/machines/marquee/index.mjs +2 -2
- package/dist/machines/navigation-menu/index.cjs +4 -4
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.mts +1 -1
- package/dist/machines/navigation-menu/index.mjs +4 -4
- package/dist/machines/number-input/index.cjs +2 -2
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.mts +1 -1
- package/dist/machines/number-input/index.mjs +2 -2
- package/dist/machines/pagination/index.cjs +2 -2
- package/dist/machines/pagination/index.mjs +2 -2
- package/dist/machines/password-input/index.cjs +2 -2
- package/dist/machines/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.mts +1 -1
- package/dist/machines/password-input/index.mjs +2 -2
- package/dist/machines/pin-input/index.cjs +2 -2
- package/dist/machines/pin-input/index.d.cts +1 -1
- package/dist/machines/pin-input/index.d.mts +1 -1
- package/dist/machines/pin-input/index.mjs +2 -2
- package/dist/machines/popover/index.cjs +8 -8
- package/dist/machines/popover/index.d.cts +1 -1
- package/dist/machines/popover/index.d.mts +1 -1
- package/dist/machines/popover/index.mjs +8 -8
- package/dist/machines/presence/index.cjs +2 -2
- package/dist/machines/presence/index.mjs +2 -2
- package/dist/machines/progress/index.cjs +2 -2
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.mts +1 -1
- package/dist/machines/progress/index.mjs +2 -2
- package/dist/machines/qr-code/index.cjs +2 -2
- package/dist/machines/qr-code/index.mjs +2 -2
- package/dist/machines/radio-group/index.cjs +3 -3
- package/dist/machines/radio-group/index.d.cts +1 -1
- package/dist/machines/radio-group/index.d.mts +1 -1
- package/dist/machines/radio-group/index.mjs +3 -3
- package/dist/machines/rating-group/index.cjs +2 -2
- package/dist/machines/rating-group/index.d.cts +1 -1
- package/dist/machines/rating-group/index.d.mts +1 -1
- package/dist/machines/rating-group/index.mjs +2 -2
- package/dist/machines/scroll-area/index.cjs +2 -2
- package/dist/machines/scroll-area/index.d.cts +1 -1
- package/dist/machines/scroll-area/index.d.mts +1 -1
- package/dist/machines/scroll-area/index.mjs +2 -2
- package/dist/machines/select/index.cjs +22 -8
- package/dist/machines/select/index.d.cts +3 -2
- package/dist/machines/select/index.d.mts +3 -2
- package/dist/machines/select/index.mjs +22 -8
- package/dist/machines/separator/index.cjs +2 -2
- package/dist/machines/separator/index.mjs +2 -2
- package/dist/machines/signature-pad/index.cjs +2 -2
- package/dist/machines/signature-pad/index.d.cts +1 -1
- package/dist/machines/signature-pad/index.d.mts +1 -1
- package/dist/machines/signature-pad/index.mjs +2 -2
- package/dist/machines/slider/index.cjs +2 -2
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.mts +1 -1
- package/dist/machines/slider/index.mjs +2 -2
- package/dist/machines/splitter/index.cjs +2 -2
- package/dist/machines/splitter/index.mjs +2 -2
- package/dist/machines/steps/index.cjs +2 -2
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.mts +1 -1
- package/dist/machines/steps/index.mjs +2 -2
- package/dist/machines/switch/index.cjs +3 -3
- package/dist/machines/switch/index.d.cts +1 -1
- package/dist/machines/switch/index.d.mts +1 -1
- package/dist/machines/switch/index.mjs +3 -3
- package/dist/machines/tabs/index.cjs +2 -2
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.mts +1 -1
- package/dist/machines/tabs/index.mjs +2 -2
- package/dist/machines/tags-input/index.cjs +4 -4
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.mts +1 -1
- package/dist/machines/tags-input/index.mjs +4 -4
- package/dist/machines/timer/index.cjs +2 -2
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.mts +1 -1
- package/dist/machines/timer/index.mjs +2 -2
- package/dist/machines/toast/index.cjs +4 -4
- package/dist/machines/toast/index.d.cts +1 -1
- package/dist/machines/toast/index.d.mts +1 -1
- package/dist/machines/toast/index.mjs +4 -4
- package/dist/machines/toggle/index.cjs +2 -2
- package/dist/machines/toggle/index.mjs +2 -2
- package/dist/machines/toggle-group/index.cjs +2 -2
- package/dist/machines/toggle-group/index.mjs +2 -2
- package/dist/machines/tooltip/index.cjs +4 -4
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +1 -1
- package/dist/machines/tooltip/index.mjs +4 -4
- package/dist/machines/tour/index.cjs +6 -6
- package/dist/machines/tour/index.d.cts +1 -1
- package/dist/machines/tour/index.d.mts +1 -1
- package/dist/machines/tour/index.mjs +6 -6
- package/dist/machines/tree-view/index.cjs +2 -2
- package/dist/machines/tree-view/index.d.cts +1 -1
- package/dist/machines/tree-view/index.d.mts +1 -1
- package/dist/machines/tree-view/index.mjs +2 -2
- package/dist/{popper-CfOHZlHP.mjs → popper-3Bdh0pfy.mjs} +1 -1
- package/dist/{popper-zq1F_iY8.cjs → popper-Bca_O70s.cjs} +1 -1
- package/dist/popper.cjs +2 -2
- package/dist/popper.mjs +2 -2
- package/dist/{remove-scroll-B8AJyezV.cjs → remove-scroll-D9FAOapi.cjs} +1 -1
- package/dist/{remove-scroll-DCUb1JPX.mjs → remove-scroll-HcSiTbd5.mjs} +1 -1
- package/dist/{scroll-snap-De0H9CWU.mjs → scroll-snap-DfSwN3As.mjs} +1 -1
- package/dist/{scroll-snap-voc0pMJd.cjs → scroll-snap-Dp_2adEa.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/dist/{selection-k8FM_y4w.d.cts → selection-Bb_ZSVxe.d.cts} +1 -1
- package/dist/{selection-aObDFAzS.d.mts → selection-DdNvrKbj.d.mts} +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-9eFQs7lO.cjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-D-7AMgSE.cjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-B_8BN0XB.cjs";
|
|
4
4
|
import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMTKq.cjs";
|
|
5
5
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
6
6
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DzWGFhcS.cjs";
|
|
7
7
|
import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.cjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/combobox/combobox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "clearTrigger" | "input" | "item" | "trigger" | "positioner" | "content" | "list" | "itemText" | "itemIndicator" | "itemGroup" | "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-BedZVdg0.mjs";
|
|
2
2
|
import { r as CollectionOptions, t as CollectionItem } from "../../types-9uw8LHpE.mjs";
|
|
3
|
-
import { t as ListCollection } from "../../list-collection-
|
|
3
|
+
import { t as ListCollection } from "../../list-collection-DkRA5LOq.mjs";
|
|
4
4
|
import { p as Machine, u as EventObject, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
5
5
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
6
6
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-CGNNiDyE.mjs";
|
|
7
7
|
import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/combobox/combobox.anatomy.d.ts
|
|
10
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
10
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "clearTrigger" | "input" | "item" | "trigger" | "positioner" | "content" | "list" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { H as nextTick, I as scrollIntoView, L as clickIfLink, S as query, St as
|
|
2
|
+
import { Cn as setCaretToEnd, H as nextTick, I as scrollIntoView, L as clickIfLink, S as query, St as isLeftClick, W as raf, _t as isComposingEvent, bn as ariaAttr, bt as isDownloadingEvent, cn as isAnchorElement, ft as getEventKey, vt as isContextMenuEvent, wt as isOpeningInNewTab, xn as dataAttr, z as observeAttributes } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { At as remove, Y as match, ft as isEqual, mt as addOrRemove, rt as isBoolean, t as ensure, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { s as ListCollection } from "../../collection-DgzidRvr.mjs";
|
|
5
|
-
import { o as setup } from "../../core-
|
|
6
|
-
import "../../interact-outside-
|
|
7
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
8
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
5
|
+
import { o as setup } from "../../core-BmIEKqtP.mjs";
|
|
6
|
+
import "../../interact-outside-2qkUnl4N.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
|
|
8
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
|
|
9
9
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
10
|
//#region src/machines/combobox/combobox.anatomy.ts
|
|
11
11
|
const anatomy = createAnatomy("combobox").parts("root", "clearTrigger", "content", "control", "input", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "label", "list", "positioner", "trigger");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
4
|
-
const require_dom_query = require("../../dom-query-
|
|
4
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
5
5
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
6
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
7
7
|
const require_date_utils = require("../../date-utils-BuJkKL09.cjs");
|
|
8
|
-
require("../../interact-outside-
|
|
9
|
-
const require_dismissable = require("../../dismissable-
|
|
8
|
+
require("../../interact-outside-Cx4J0EBf.cjs");
|
|
9
|
+
const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
|
|
10
10
|
const require_live_region = require("../../live-region-TGReV9nm.cjs");
|
|
11
|
-
const require_popper = require("../../popper-
|
|
11
|
+
const require_popper = require("../../popper-Bca_O70s.cjs");
|
|
12
12
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
13
13
|
let _internationalized_date = require("@internationalized/date");
|
|
14
14
|
//#region src/machines/date-picker/date-picker.anatomy.ts
|
|
@@ -1487,9 +1487,13 @@ const machine = require_core.createMachine({
|
|
|
1487
1487
|
]
|
|
1488
1488
|
},
|
|
1489
1489
|
{
|
|
1490
|
-
guard: "isMultiPicker",
|
|
1490
|
+
guard: and("isMultiPicker", "canSelectDate"),
|
|
1491
1491
|
actions: ["setFocusedDate", "toggleSelectedDate"]
|
|
1492
1492
|
},
|
|
1493
|
+
{
|
|
1494
|
+
guard: "isMultiPicker",
|
|
1495
|
+
actions: ["setFocusedDate"]
|
|
1496
|
+
},
|
|
1493
1497
|
{
|
|
1494
1498
|
guard: and("closeOnSelect", "isOpenControlled"),
|
|
1495
1499
|
actions: [
|
|
@@ -1582,9 +1586,10 @@ const machine = require_core.createMachine({
|
|
|
1582
1586
|
]
|
|
1583
1587
|
},
|
|
1584
1588
|
{
|
|
1585
|
-
guard: "isMultiPicker",
|
|
1589
|
+
guard: and("isMultiPicker", "canSelectDate"),
|
|
1586
1590
|
actions: ["toggleSelectedDate"]
|
|
1587
1591
|
},
|
|
1592
|
+
{ guard: "isMultiPicker" },
|
|
1588
1593
|
{
|
|
1589
1594
|
guard: and("closeOnSelect", "isOpenControlled"),
|
|
1590
1595
|
actions: ["selectFocusedDate", "invokeOnClose"]
|
|
@@ -1714,6 +1719,14 @@ const machine = require_core.createMachine({
|
|
|
1714
1719
|
isRangePicker: ({ prop }) => prop("selectionMode") === "range",
|
|
1715
1720
|
hasSelectedRange: ({ context }) => context.get("value").length === 2,
|
|
1716
1721
|
isMultiPicker: ({ prop }) => prop("selectionMode") === "multiple",
|
|
1722
|
+
canSelectDate: ({ context, prop, event }) => {
|
|
1723
|
+
const maxSelectedDates = prop("maxSelectedDates");
|
|
1724
|
+
if (maxSelectedDates == null) return true;
|
|
1725
|
+
const existingValues = context.get("value");
|
|
1726
|
+
const currentValue = event.value ?? context.get("focusedValue");
|
|
1727
|
+
if (existingValues.some((date) => require_date_utils.isDateEqual(date, currentValue))) return true;
|
|
1728
|
+
return existingValues.length < maxSelectedDates;
|
|
1729
|
+
},
|
|
1717
1730
|
shouldRestoreFocus: ({ context }) => !!context.get("restoreFocus"),
|
|
1718
1731
|
isSelectingEndDate: ({ context }) => context.get("activeIndex") === 1,
|
|
1719
1732
|
closeOnSelect: ({ prop }) => !!prop("closeOnSelect"),
|
|
@@ -1855,23 +1868,27 @@ const machine = require_core.createMachine({
|
|
|
1855
1868
|
setSelectedDate(params) {
|
|
1856
1869
|
const { context, event } = params;
|
|
1857
1870
|
const values = Array.from(context.get("value"));
|
|
1858
|
-
|
|
1871
|
+
const activeIndex = context.get("activeIndex");
|
|
1872
|
+
const existingValue = values[activeIndex];
|
|
1873
|
+
values[activeIndex] = preserveTime(existingValue, normalizeValue(params, event.value ?? context.get("focusedValue")));
|
|
1859
1874
|
context.set("value", adjustStartAndEndDate(values));
|
|
1860
1875
|
},
|
|
1861
1876
|
resetSelection(params) {
|
|
1862
1877
|
const { context, event } = params;
|
|
1863
|
-
const
|
|
1864
|
-
context.
|
|
1878
|
+
const existingValue = context.get("value")[0];
|
|
1879
|
+
const newValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
|
|
1880
|
+
context.set("value", [preserveTime(existingValue, newValue)]);
|
|
1865
1881
|
},
|
|
1866
1882
|
toggleSelectedDate(params) {
|
|
1867
1883
|
const { context, event } = params;
|
|
1868
1884
|
const currentValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
|
|
1869
|
-
const
|
|
1885
|
+
const existingValues = context.get("value");
|
|
1886
|
+
const index = existingValues.findIndex((date) => require_date_utils.isDateEqual(date, currentValue));
|
|
1870
1887
|
if (index === -1) {
|
|
1871
|
-
const values = [...
|
|
1888
|
+
const values = [...existingValues, currentValue];
|
|
1872
1889
|
context.set("value", sortDates(values));
|
|
1873
1890
|
} else {
|
|
1874
|
-
const values = Array.from(
|
|
1891
|
+
const values = Array.from(existingValues);
|
|
1875
1892
|
values.splice(index, 1);
|
|
1876
1893
|
context.set("value", sortDates(values));
|
|
1877
1894
|
}
|
|
@@ -1885,7 +1902,8 @@ const machine = require_core.createMachine({
|
|
|
1885
1902
|
selectFocusedDate({ context, computed }) {
|
|
1886
1903
|
const values = Array.from(context.get("value"));
|
|
1887
1904
|
const activeIndex = context.get("activeIndex");
|
|
1888
|
-
values[activeIndex]
|
|
1905
|
+
const existingValue = values[activeIndex];
|
|
1906
|
+
values[activeIndex] = preserveTime(existingValue, context.get("focusedValue").copy());
|
|
1889
1907
|
context.set("value", adjustStartAndEndDate(values));
|
|
1890
1908
|
const valueAsString = computed("valueAsString");
|
|
1891
1909
|
context.set("inputValue", valueAsString[activeIndex]);
|
|
@@ -2018,15 +2036,20 @@ const machine = require_core.createMachine({
|
|
|
2018
2036
|
getTriggerEl(scope)?.focus({ preventScroll: true });
|
|
2019
2037
|
});
|
|
2020
2038
|
},
|
|
2021
|
-
focusFirstInputElement({ scope }) {
|
|
2039
|
+
focusFirstInputElement({ scope, event }) {
|
|
2040
|
+
if (event.focus === false) return;
|
|
2022
2041
|
require_dom_query.raf(() => {
|
|
2023
2042
|
const [inputEl] = getInputEls(scope);
|
|
2024
|
-
inputEl?.focus({ preventScroll: true });
|
|
2043
|
+
(inputEl ?? getTriggerEl(scope))?.focus({ preventScroll: true });
|
|
2025
2044
|
});
|
|
2026
2045
|
},
|
|
2027
2046
|
focusInputElement({ scope }) {
|
|
2028
2047
|
require_dom_query.raf(() => {
|
|
2029
2048
|
const inputEls = getInputEls(scope);
|
|
2049
|
+
if (inputEls.length === 0) {
|
|
2050
|
+
getTriggerEl(scope)?.focus({ preventScroll: true });
|
|
2051
|
+
return;
|
|
2052
|
+
}
|
|
2030
2053
|
const lastIndexWithValue = inputEls.findLastIndex((inputEl) => inputEl.value !== "");
|
|
2031
2054
|
const inputEl = inputEls[Math.max(lastIndexWithValue, 0)];
|
|
2032
2055
|
inputEl?.focus({ preventScroll: true });
|
|
@@ -2122,6 +2145,19 @@ const normalizeValue = (ctx, value) => {
|
|
|
2122
2145
|
});
|
|
2123
2146
|
return dateValue;
|
|
2124
2147
|
};
|
|
2148
|
+
const preserveTime = (existingDate, newDate) => {
|
|
2149
|
+
if (!existingDate || !("hour" in existingDate)) return newDate;
|
|
2150
|
+
const isZoned = "timeZone" in existingDate;
|
|
2151
|
+
let dateWithTime = newDate;
|
|
2152
|
+
if (!("hour" in newDate)) if (isZoned) dateWithTime = (0, _internationalized_date.toZoned)((0, _internationalized_date.toCalendarDateTime)(newDate), existingDate.timeZone);
|
|
2153
|
+
else dateWithTime = (0, _internationalized_date.toCalendarDateTime)(newDate);
|
|
2154
|
+
return dateWithTime.set({
|
|
2155
|
+
hour: existingDate.hour,
|
|
2156
|
+
minute: existingDate.minute,
|
|
2157
|
+
second: existingDate.second,
|
|
2158
|
+
millisecond: existingDate.millisecond
|
|
2159
|
+
});
|
|
2160
|
+
};
|
|
2125
2161
|
function setFocusedValue(ctx, mixedValue) {
|
|
2126
2162
|
const { context, prop, computed } = ctx;
|
|
2127
2163
|
if (!mixedValue) return;
|
|
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.cj
|
|
|
8
8
|
import { Calendar, CalendarDate, CalendarDateTime, 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" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "clearTrigger" | "input" | "table" | "view" | "trigger" | "positioner" | "content" | "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";
|
|
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.mj
|
|
|
8
8
|
import { Calendar, CalendarDate, CalendarDateTime, 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" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "clearTrigger" | "input" | "table" | "view" | "trigger" | "positioner" | "content" | "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 { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { C as queryAll, D as disableTextSelection, O as restoreTextSelection, S as query, W as raf,
|
|
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-s2ESLR2U.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
|
-
import { a as createMachine, i as createGuards, s as memo } from "../../core-
|
|
4
|
+
import { a as createMachine, i as createGuards, s as memo } from "../../core-BmIEKqtP.mjs";
|
|
5
5
|
import { A as getMonthFormatter, D as formatSelectedDate, F as isDateUnavailable, I as isNextRangeInvalid, L as isPreviousRangeInvalid, M as getUnitDuration, N as isDateEqual, P as isDateOutsideRange, R as alignDate, S as getMonthNames, W as constrainValue, _ as getYearsRange, g as getDecadeRange, i as getNextPage, j as getEndDate, k as getDayFormatter, 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 } from "../../date-utils-DCaRa_Ry.mjs";
|
|
6
|
-
import "../../interact-outside-
|
|
7
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
6
|
+
import "../../interact-outside-2qkUnl4N.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
|
|
8
8
|
import { t as createLiveRegion } from "../../live-region-TgEDzvS4.mjs";
|
|
9
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
9
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
|
|
10
10
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
11
|
-
import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate } from "@internationalized/date";
|
|
11
|
+
import { CalendarDate, DateFormatter, isEqualDay, isEqualMonth, isEqualYear, isToday, isWeekend, parseDate, 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();
|
|
@@ -1485,9 +1485,13 @@ const machine = createMachine({
|
|
|
1485
1485
|
]
|
|
1486
1486
|
},
|
|
1487
1487
|
{
|
|
1488
|
-
guard: "isMultiPicker",
|
|
1488
|
+
guard: and("isMultiPicker", "canSelectDate"),
|
|
1489
1489
|
actions: ["setFocusedDate", "toggleSelectedDate"]
|
|
1490
1490
|
},
|
|
1491
|
+
{
|
|
1492
|
+
guard: "isMultiPicker",
|
|
1493
|
+
actions: ["setFocusedDate"]
|
|
1494
|
+
},
|
|
1491
1495
|
{
|
|
1492
1496
|
guard: and("closeOnSelect", "isOpenControlled"),
|
|
1493
1497
|
actions: [
|
|
@@ -1580,9 +1584,10 @@ const machine = createMachine({
|
|
|
1580
1584
|
]
|
|
1581
1585
|
},
|
|
1582
1586
|
{
|
|
1583
|
-
guard: "isMultiPicker",
|
|
1587
|
+
guard: and("isMultiPicker", "canSelectDate"),
|
|
1584
1588
|
actions: ["toggleSelectedDate"]
|
|
1585
1589
|
},
|
|
1590
|
+
{ guard: "isMultiPicker" },
|
|
1586
1591
|
{
|
|
1587
1592
|
guard: and("closeOnSelect", "isOpenControlled"),
|
|
1588
1593
|
actions: ["selectFocusedDate", "invokeOnClose"]
|
|
@@ -1712,6 +1717,14 @@ const machine = createMachine({
|
|
|
1712
1717
|
isRangePicker: ({ prop }) => prop("selectionMode") === "range",
|
|
1713
1718
|
hasSelectedRange: ({ context }) => context.get("value").length === 2,
|
|
1714
1719
|
isMultiPicker: ({ prop }) => prop("selectionMode") === "multiple",
|
|
1720
|
+
canSelectDate: ({ context, prop, event }) => {
|
|
1721
|
+
const maxSelectedDates = prop("maxSelectedDates");
|
|
1722
|
+
if (maxSelectedDates == null) return true;
|
|
1723
|
+
const existingValues = context.get("value");
|
|
1724
|
+
const currentValue = event.value ?? context.get("focusedValue");
|
|
1725
|
+
if (existingValues.some((date) => isDateEqual(date, currentValue))) return true;
|
|
1726
|
+
return existingValues.length < maxSelectedDates;
|
|
1727
|
+
},
|
|
1715
1728
|
shouldRestoreFocus: ({ context }) => !!context.get("restoreFocus"),
|
|
1716
1729
|
isSelectingEndDate: ({ context }) => context.get("activeIndex") === 1,
|
|
1717
1730
|
closeOnSelect: ({ prop }) => !!prop("closeOnSelect"),
|
|
@@ -1853,23 +1866,27 @@ const machine = createMachine({
|
|
|
1853
1866
|
setSelectedDate(params) {
|
|
1854
1867
|
const { context, event } = params;
|
|
1855
1868
|
const values = Array.from(context.get("value"));
|
|
1856
|
-
|
|
1869
|
+
const activeIndex = context.get("activeIndex");
|
|
1870
|
+
const existingValue = values[activeIndex];
|
|
1871
|
+
values[activeIndex] = preserveTime(existingValue, normalizeValue(params, event.value ?? context.get("focusedValue")));
|
|
1857
1872
|
context.set("value", adjustStartAndEndDate(values));
|
|
1858
1873
|
},
|
|
1859
1874
|
resetSelection(params) {
|
|
1860
1875
|
const { context, event } = params;
|
|
1861
|
-
const
|
|
1862
|
-
context.
|
|
1876
|
+
const existingValue = context.get("value")[0];
|
|
1877
|
+
const newValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
|
|
1878
|
+
context.set("value", [preserveTime(existingValue, newValue)]);
|
|
1863
1879
|
},
|
|
1864
1880
|
toggleSelectedDate(params) {
|
|
1865
1881
|
const { context, event } = params;
|
|
1866
1882
|
const currentValue = normalizeValue(params, event.value ?? context.get("focusedValue"));
|
|
1867
|
-
const
|
|
1883
|
+
const existingValues = context.get("value");
|
|
1884
|
+
const index = existingValues.findIndex((date) => isDateEqual(date, currentValue));
|
|
1868
1885
|
if (index === -1) {
|
|
1869
|
-
const values = [...
|
|
1886
|
+
const values = [...existingValues, currentValue];
|
|
1870
1887
|
context.set("value", sortDates(values));
|
|
1871
1888
|
} else {
|
|
1872
|
-
const values = Array.from(
|
|
1889
|
+
const values = Array.from(existingValues);
|
|
1873
1890
|
values.splice(index, 1);
|
|
1874
1891
|
context.set("value", sortDates(values));
|
|
1875
1892
|
}
|
|
@@ -1883,7 +1900,8 @@ const machine = createMachine({
|
|
|
1883
1900
|
selectFocusedDate({ context, computed }) {
|
|
1884
1901
|
const values = Array.from(context.get("value"));
|
|
1885
1902
|
const activeIndex = context.get("activeIndex");
|
|
1886
|
-
values[activeIndex]
|
|
1903
|
+
const existingValue = values[activeIndex];
|
|
1904
|
+
values[activeIndex] = preserveTime(existingValue, context.get("focusedValue").copy());
|
|
1887
1905
|
context.set("value", adjustStartAndEndDate(values));
|
|
1888
1906
|
const valueAsString = computed("valueAsString");
|
|
1889
1907
|
context.set("inputValue", valueAsString[activeIndex]);
|
|
@@ -2016,15 +2034,20 @@ const machine = createMachine({
|
|
|
2016
2034
|
getTriggerEl(scope)?.focus({ preventScroll: true });
|
|
2017
2035
|
});
|
|
2018
2036
|
},
|
|
2019
|
-
focusFirstInputElement({ scope }) {
|
|
2037
|
+
focusFirstInputElement({ scope, event }) {
|
|
2038
|
+
if (event.focus === false) return;
|
|
2020
2039
|
raf(() => {
|
|
2021
2040
|
const [inputEl] = getInputEls(scope);
|
|
2022
|
-
inputEl?.focus({ preventScroll: true });
|
|
2041
|
+
(inputEl ?? getTriggerEl(scope))?.focus({ preventScroll: true });
|
|
2023
2042
|
});
|
|
2024
2043
|
},
|
|
2025
2044
|
focusInputElement({ scope }) {
|
|
2026
2045
|
raf(() => {
|
|
2027
2046
|
const inputEls = getInputEls(scope);
|
|
2047
|
+
if (inputEls.length === 0) {
|
|
2048
|
+
getTriggerEl(scope)?.focus({ preventScroll: true });
|
|
2049
|
+
return;
|
|
2050
|
+
}
|
|
2028
2051
|
const lastIndexWithValue = inputEls.findLastIndex((inputEl) => inputEl.value !== "");
|
|
2029
2052
|
const inputEl = inputEls[Math.max(lastIndexWithValue, 0)];
|
|
2030
2053
|
inputEl?.focus({ preventScroll: true });
|
|
@@ -2120,6 +2143,19 @@ const normalizeValue = (ctx, value) => {
|
|
|
2120
2143
|
});
|
|
2121
2144
|
return dateValue;
|
|
2122
2145
|
};
|
|
2146
|
+
const preserveTime = (existingDate, newDate) => {
|
|
2147
|
+
if (!existingDate || !("hour" in existingDate)) return newDate;
|
|
2148
|
+
const isZoned = "timeZone" in existingDate;
|
|
2149
|
+
let dateWithTime = newDate;
|
|
2150
|
+
if (!("hour" in newDate)) if (isZoned) dateWithTime = toZoned(toCalendarDateTime(newDate), existingDate.timeZone);
|
|
2151
|
+
else dateWithTime = toCalendarDateTime(newDate);
|
|
2152
|
+
return dateWithTime.set({
|
|
2153
|
+
hour: existingDate.hour,
|
|
2154
|
+
minute: existingDate.minute,
|
|
2155
|
+
second: existingDate.second,
|
|
2156
|
+
millisecond: existingDate.millisecond
|
|
2157
|
+
});
|
|
2158
|
+
};
|
|
2123
2159
|
function setFocusedValue(ctx, mixedValue) {
|
|
2124
2160
|
const { context, prop, computed } = ctx;
|
|
2125
2161
|
if (!mixedValue) return;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
4
|
-
const require_aria_hidden = require("../../aria-hidden-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
|
+
const require_aria_hidden = require("../../aria-hidden-BAGrxNHt.cjs");
|
|
5
5
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
7
|
-
require("../../interact-outside-
|
|
8
|
-
const require_dismissable = require("../../dismissable-
|
|
9
|
-
const require_focus_trap = require("../../focus-trap-
|
|
6
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
7
|
+
require("../../interact-outside-Cx4J0EBf.cjs");
|
|
8
|
+
const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
|
|
9
|
+
const require_focus_trap = require("../../focus-trap-fucc6OU_.cjs");
|
|
10
10
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
11
|
-
const require_remove_scroll = require("../../remove-scroll-
|
|
11
|
+
const require_remove_scroll = require("../../remove-scroll-D9FAOapi.cjs");
|
|
12
12
|
//#region src/machines/dialog/dialog.anatomy.ts
|
|
13
13
|
const anatomy = require_create_anatomy.createAnatomy("dialog").parts("trigger", "backdrop", "positioner", "content", "title", "description", "closeTrigger");
|
|
14
14
|
const parts = anatomy.build();
|
|
@@ -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<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"title" | "trigger" | "positioner" | "content" | "closeTrigger" | "backdrop" | "description">;
|
|
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<"
|
|
8
|
+
declare const anatomy: AnatomyInstance<"title" | "trigger" | "positioner" | "content" | "closeTrigger" | "backdrop" | "description">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/dialog/dialog.types.d.ts
|
|
11
11
|
interface OpenChangeDetails {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { t as ariaHidden } from "../../aria-hidden-
|
|
2
|
+
import { Qt as getComputedStyle, W as raf } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
|
+
import { t as ariaHidden } from "../../aria-hidden-BX4SWNE_.mjs";
|
|
4
4
|
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
5
|
-
import { a as createMachine } from "../../core-
|
|
6
|
-
import "../../interact-outside-
|
|
7
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
8
|
-
import { t as trapFocus } from "../../focus-trap-
|
|
5
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
6
|
+
import "../../interact-outside-2qkUnl4N.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
|
|
8
|
+
import { t as trapFocus } from "../../focus-trap-DzBvBlTH.mjs";
|
|
9
9
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
|
-
import { t as preventBodyScroll } from "../../remove-scroll-
|
|
10
|
+
import { t as preventBodyScroll } from "../../remove-scroll-HcSiTbd5.mjs";
|
|
11
11
|
//#region src/machines/dialog/dialog.anatomy.ts
|
|
12
12
|
const anatomy = createAnatomy("dialog").parts("trigger", "backdrop", "positioner", "content", "title", "description", "closeTrigger");
|
|
13
13
|
const parts = anatomy.build();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
6
|
-
require("../../interact-outside-
|
|
7
|
-
const require_dismissable = require("../../dismissable-
|
|
8
|
-
const require_popper = require("../../popper-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
|
+
require("../../interact-outside-Cx4J0EBf.cjs");
|
|
7
|
+
const require_dismissable = require("../../dismissable-ChwcJMHk.cjs");
|
|
8
|
+
const require_popper = require("../../popper-Bca_O70s.cjs");
|
|
9
9
|
const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
|
|
10
10
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
11
11
|
//#region src/machines/dropdown-menu/dropdown-menu.anatomy.ts
|
|
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-DEn9MoSw.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<"
|
|
11
|
+
declare const anatomy: AnatomyInstance<"indicator" | "item" | "trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "separator" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
|
|
14
14
|
interface OpenChangeDetails {
|
|
@@ -8,7 +8,7 @@ import { p as PositioningOptions, u as Placement } from "../../index-DHp3-EkH.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<"
|
|
11
|
+
declare const anatomy: AnatomyInstance<"indicator" | "item" | "trigger" | "arrow" | "arrowTip" | "positioner" | "content" | "separator" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "triggerItem">;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/machines/dropdown-menu/dropdown-menu.types.d.ts
|
|
14
14
|
interface OpenChangeDetails {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { C as queryAll, Ct as
|
|
2
|
+
import { $t as contains, C as queryAll, Ct as isModifierKey, G as getInitialFocus, I as scrollIntoView, K as isValidTabEvent, L as clickIfLink, Tt as isPrintableKey, W as raf, bn as ariaAttr, bt as isDownloadingEvent, cn as isAnchorElement, fn as isHTMLElement, ft as getEventKey, ht as getEventTarget, on as getWindow, pt as getEventPoint, s as getByTypeahead, un as isEditableElement, ut as addDomEvent, wt as isOpeningInNewTab, xn as dataAttr, z as observeAttributes } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { G as cast, Ot as prev, Tt as next, ft as isEqual, tt as hasProp, u as createSplitProps, vt as first, wt as last } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine, c as mergeProps, i as createGuards } from "../../core-
|
|
5
|
-
import "../../interact-outside-
|
|
6
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
7
|
-
import { n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "../../popper-
|
|
4
|
+
import { a as createMachine, c as mergeProps, i as createGuards } from "../../core-BmIEKqtP.mjs";
|
|
5
|
+
import "../../interact-outside-2qkUnl4N.mjs";
|
|
6
|
+
import { n as trackDismissableElement } from "../../dismissable-DWfZGIA7.mjs";
|
|
7
|
+
import { n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "../../popper-3Bdh0pfy.mjs";
|
|
8
8
|
import { i as isPointInPolygon, r as getElementPolygon } from "../../rect-utils-B5xqFvKC.mjs";
|
|
9
9
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
10
|
//#region src/machines/dropdown-menu/dropdown-menu.anatomy.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
6
|
-
const require_interact_outside = require("../../interact-outside-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
|
+
const require_interact_outside = require("../../interact-outside-Cx4J0EBf.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/editable/editable.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("editable").parts("root", "area", "label", "preview", "input", "editTrigger", "submitTrigger", "cancelTrigger", "control");
|
|
@@ -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" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "area" | "input" | "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" | "
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "label" | "area" | "input" | "preview" | "editTrigger" | "submitTrigger" | "cancelTrigger">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/editable/editable.types.d.ts
|
|
10
10
|
interface ValueChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as contains, Nt as isApple, W as raf, _t as isComposingEvent, bn as ariaAttr, ct as setElementValue, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { t as trackInteractOutside } from "../../interact-outside-
|
|
4
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
5
|
+
import { t as trackInteractOutside } from "../../interact-outside-2qkUnl4N.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/editable/editable.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("editable").parts("root", "area", "label", "preview", "input", "editTrigger", "submitTrigger", "cancelTrigger", "control");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_create_anatomy = require("../../create-anatomy-BnwEmNnc.cjs");
|
|
3
|
-
const require_dom_query = require("../../dom-query-
|
|
3
|
+
const require_dom_query = require("../../dom-query-Bd63cRVF.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-nBg9RC_y.cjs");
|
|
6
6
|
const require_file_utils = require("../../file-utils-CY6_zVut.cjs");
|
|
7
|
-
const require_i18n_utils = require("../../i18n-utils-
|
|
7
|
+
const require_i18n_utils = require("../../i18n-utils-DB-lUfrr.cjs");
|
|
8
8
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
9
9
|
//#region src/machines/file-upload/file-upload.anatomy.ts
|
|
10
10
|
const anatomy = require_create_anatomy.createAnatomy("file-upload").parts("root", "dropzone", "item", "itemDeleteTrigger", "itemGroup", "itemName", "itemPreview", "itemPreviewImage", "itemSizeText", "label", "trigger", "clearTrigger");
|
|
@@ -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" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText"
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "clearTrigger" | "item" | "trigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/file-upload/file-upload.types.d.ts
|
|
10
10
|
interface FileRejection {
|
|
@@ -4,7 +4,7 @@ import { b as NormalizeProps, g as RequiredBy, o as LocaleProperties, t as Commo
|
|
|
4
4
|
import { i as FileMimeType, r as FileError } from "../../types-Cctd5dol.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/file-upload/file-upload.anatomy.d.ts
|
|
7
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "trigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText"
|
|
7
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "clearTrigger" | "item" | "trigger" | "itemGroup" | "dropzone" | "itemDeleteTrigger" | "itemName" | "itemPreview" | "itemPreviewImage" | "itemSizeText">;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/machines/file-upload/file-upload.types.d.ts
|
|
10
10
|
interface FileRejection {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { $t as contains, W as raf, a as visuallyHiddenStyle, ht as getEventTarget, on as getWindow, ut as addDomEvent, xn as dataAttr } from "../../dom-query-s2ESLR2U.mjs";
|
|
3
3
|
import { W as callAll, i as warn, q as hash, u as createSplitProps, yt as flatArray } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-BmIEKqtP.mjs";
|
|
5
5
|
import { i as isFileEqual, r as isValidFileSize, s as getAcceptAttrString, t as isValidFileType, u as getFileEntries } from "../../file-utils-VgQ3YV2A.mjs";
|
|
6
|
-
import { l as formatBytes } from "../../i18n-utils-
|
|
6
|
+
import { l as formatBytes } from "../../i18n-utils-oWZyUib_.mjs";
|
|
7
7
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
8
8
|
//#region src/machines/file-upload/file-upload.anatomy.ts
|
|
9
9
|
const anatomy = createAnatomy("file-upload").parts("root", "dropzone", "item", "itemDeleteTrigger", "itemGroup", "itemName", "itemPreview", "itemPreviewImage", "itemSizeText", "label", "trigger", "clearTrigger");
|