@sprawlify/primitives 0.0.110 → 0.0.112
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-BX4SWNE_.mjs → aria-hidden-C72KtklN.mjs} +1 -1
- package/dist/{aria-hidden-BAGrxNHt.cjs → aria-hidden-CIBHXlCy.cjs} +1 -1
- package/dist/aria-hidden.cjs +2 -2
- package/dist/aria-hidden.mjs +2 -2
- package/dist/{auto-resize-B1BDDnp1.cjs → auto-resize-BTTNXiml.cjs} +1 -1
- package/dist/{auto-resize-CN2vAzdj.mjs → auto-resize-CbNgN0OO.mjs} +1 -1
- package/dist/auto-resize.cjs +2 -2
- package/dist/auto-resize.mjs +2 -2
- package/dist/{core-BmIEKqtP.mjs → core-Ci9Yu6QI.mjs} +1 -1
- package/dist/{core-nBg9RC_y.cjs → core-DwdPztGA.cjs} +1 -1
- package/dist/core.cjs +2 -2
- package/dist/core.mjs +2 -2
- package/dist/{dismissable-DWfZGIA7.mjs → dismissable-B9k5K6f9.mjs} +2 -2
- package/dist/{dismissable-ChwcJMHk.cjs → dismissable-DxjbwsOf.cjs} +2 -2
- package/dist/dismissable.cjs +3 -3
- package/dist/dismissable.mjs +3 -3
- package/dist/{dom-query-s2ESLR2U.mjs → dom-query-BFuRs3l4.mjs} +1 -1
- package/dist/{dom-query-Bd63cRVF.cjs → dom-query-BUO7rGsg.cjs} +1 -1
- package/dist/dom-query.cjs +1 -1
- package/dist/dom-query.mjs +1 -1
- package/dist/{focus-trap-fucc6OU_.cjs → focus-trap-BewqTQFt.cjs} +1 -1
- package/dist/{focus-trap-DzBvBlTH.mjs → focus-trap-Do8IUXYh.mjs} +1 -1
- package/dist/focus-trap.cjs +2 -2
- package/dist/focus-trap.mjs +2 -2
- package/dist/{focus-visible-D5qBaAOn.mjs → focus-visible-BuLf8M9F.mjs} +10 -9
- package/dist/{focus-visible-75XTctXf.cjs → focus-visible-Co_9bW09.cjs} +15 -8
- package/dist/focus-visible.cjs +3 -2
- package/dist/focus-visible.d.cts +2 -1
- package/dist/focus-visible.d.mts +2 -1
- package/dist/focus-visible.mjs +3 -3
- package/dist/{i18n-utils-DB-lUfrr.cjs → i18n-utils-BRLqoCq8.cjs} +1 -1
- package/dist/{i18n-utils-oWZyUib_.mjs → i18n-utils-DZs1CPj8.mjs} +1 -1
- package/dist/i18n-utils.cjs +2 -2
- package/dist/i18n-utils.mjs +2 -2
- package/dist/{interact-outside-2qkUnl4N.mjs → interact-outside-Ba50N1a5.mjs} +1 -1
- package/dist/{interact-outside-Cx4J0EBf.cjs → interact-outside-Bg-QSXqp.cjs} +1 -1
- package/dist/interact-outside.cjs +2 -2
- package/dist/interact-outside.mjs +2 -2
- 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/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 +12 -7
- 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 +12 -7
- 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 +14 -8
- package/dist/machines/combobox/index.d.cts +1 -1
- package/dist/machines/combobox/index.d.mts +1 -1
- package/dist/machines/combobox/index.mjs +14 -8
- package/dist/machines/date-picker/index.cjs +5 -5
- 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 +5 -5
- 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/drawer/index.cjs +1574 -307
- package/dist/machines/drawer/index.d.cts +217 -35
- package/dist/machines/drawer/index.d.mts +217 -35
- package/dist/machines/drawer/index.mjs +1574 -309
- package/dist/machines/dropdown-menu/index.cjs +12 -7
- 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 +12 -7
- package/dist/machines/editable/index.cjs +3 -3
- 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.mjs +5 -5
- package/dist/machines/image-cropper/index.cjs +2 -2
- package/dist/machines/image-cropper/index.d.cts +1 -1
- package/dist/machines/image-cropper/index.d.mts +1 -1
- package/dist/machines/image-cropper/index.mjs +2 -2
- package/dist/machines/listbox/index.cjs +3 -3
- package/dist/machines/listbox/index.d.cts +1 -1
- package/dist/machines/listbox/index.d.mts +1 -1
- package/dist/machines/listbox/index.mjs +3 -3
- package/dist/machines/marquee/index.cjs +2 -2
- package/dist/machines/marquee/index.d.cts +3 -3
- package/dist/machines/marquee/index.d.mts +3 -3
- 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.mjs +2 -2
- package/dist/machines/pagination/index.cjs +2 -2
- package/dist/machines/pagination/index.d.cts +1 -1
- package/dist/machines/pagination/index.d.mts +1 -1
- 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.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.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 +13 -8
- package/dist/machines/select/index.d.cts +1 -1
- package/dist/machines/select/index.d.mts +1 -1
- package/dist/machines/select/index.mjs +13 -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.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.d.cts +1 -1
- package/dist/machines/splitter/index.d.mts +1 -1
- 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.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 +3 -3
- package/dist/machines/toast/index.d.mts +3 -3
- 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 +9 -9
- package/dist/machines/tooltip/index.mjs +10 -10
- 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-BDy37WA0.mjs → popper-BlgbmdAn.mjs} +1 -1
- package/dist/{popper-Cx3KHzeT.cjs → popper-viCrafLC.cjs} +1 -1
- package/dist/popper.cjs +2 -2
- package/dist/popper.mjs +2 -2
- package/dist/{remove-scroll-D9FAOapi.cjs → remove-scroll-D4CMJmU2.cjs} +1 -1
- package/dist/{remove-scroll-HcSiTbd5.mjs → remove-scroll-D55GZoBb.mjs} +1 -1
- package/dist/{scroll-snap-DfSwN3As.mjs → scroll-snap-CdneVP31.mjs} +1 -1
- package/dist/{scroll-snap-Dp_2adEa.cjs → scroll-snap-vZ2q6dcN.cjs} +1 -1
- package/dist/scroll-snap.cjs +2 -2
- package/dist/scroll-snap.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
6
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/avatar/avatar.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("avatar").parts("root", "image", "fallback");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { B as observeChildren, z as observeAttributes } from "../../dom-query-
|
|
2
|
+
import { B as observeChildren, z as observeAttributes } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-Ci9Yu6QI.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/avatar/avatar.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("avatar").parts("root", "image", "fallback");
|
|
@@ -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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
6
|
-
const require_scroll_snap = require("../../scroll-snap-
|
|
5
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
|
+
const require_scroll_snap = require("../../scroll-snap-vZ2q6dcN.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("carousel").parts("root", "itemGroup", "item", "control", "nextTrigger", "prevTrigger", "indicatorGroup", "indicator", "autoplayTrigger", "progressText");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
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-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "control" | "item" | "prevTrigger" | "nextTrigger" | "itemGroup" | "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-DUM9rz
|
|
|
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-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/carousel/carousel.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "control" | "item" | "prevTrigger" | "nextTrigger" | "itemGroup" | "indicatorGroup" | "autoplayTrigger" | "progressText">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/carousel/carousel.types.d.ts
|
|
9
9
|
interface PageChangeDetails {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { $t as contains, C as queryAll, E as trackPointerMove, St as isLeftClick, W as raf, bn as ariaAttr, et as getTabbables, ft as getEventKey, ht as getEventTarget, m as resizeObserverBorderBox, tt as isFocusable, ut as addDomEvent, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { $t as contains, C as queryAll, E as trackPointerMove, St as isLeftClick, W as raf, bn as ariaAttr, et as getTabbables, ft as getEventKey, ht as getEventTarget, m as resizeObserverBorderBox, tt as isFocusable, ut as addDomEvent, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { At as remove, Et as nextIndex, Nt as uniq, Q as throttle, W as callAll, ct as isObject, g as clampValue, kt as prevIndex, n as ensureProps, pt as add, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
5
|
-
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-
|
|
4
|
+
import { a as createMachine } from "../../core-Ci9Yu6QI.mjs";
|
|
5
|
+
import { n as getScrollSnapPositions, t as findSnapPoint } from "../../scroll-snap-CdneVP31.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/carousel/carousel.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("carousel").parts("root", "itemGroup", "item", "control", "nextTrigger", "prevTrigger", "indicatorGroup", "indicator", "autoplayTrigger", "progressText");
|
|
@@ -1,12 +1,13 @@
|
|
|
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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
5
|
const require_collection = require("../../collection-BBgC8xCb.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
7
|
-
require("../../interact-outside-
|
|
8
|
-
const require_dismissable = require("../../dismissable-
|
|
9
|
-
const
|
|
6
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
7
|
+
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
|
+
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
10
|
+
const require_popper = require("../../popper-viCrafLC.cjs");
|
|
10
11
|
const require_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
|
|
11
12
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
12
13
|
//#region src/machines/cascade-select/cascade-select.anatomy.ts
|
|
@@ -749,6 +750,7 @@ const machine = require_core.createMachine({
|
|
|
749
750
|
exit: ["clearHighlightedValue", "scrollContentToTop"],
|
|
750
751
|
effects: [
|
|
751
752
|
"trackDismissableElement",
|
|
753
|
+
"trackFocusVisible",
|
|
752
754
|
"computePlacement",
|
|
753
755
|
"scrollToHighlightedItems"
|
|
754
756
|
],
|
|
@@ -973,6 +975,9 @@ const machine = require_core.createMachine({
|
|
|
973
975
|
}
|
|
974
976
|
});
|
|
975
977
|
},
|
|
978
|
+
trackFocusVisible({ scope }) {
|
|
979
|
+
return require_focus_visible.trackFocusVisible({ root: scope.getRootNode?.() });
|
|
980
|
+
},
|
|
976
981
|
trackDismissableElement({ scope, send, prop }) {
|
|
977
982
|
const contentEl = () => dom.getContentEl(scope);
|
|
978
983
|
let restoreFocus = true;
|
|
@@ -1004,13 +1009,13 @@ const machine = require_core.createMachine({
|
|
|
1004
1009
|
}
|
|
1005
1010
|
});
|
|
1006
1011
|
},
|
|
1007
|
-
scrollToHighlightedItems({ context, prop, scope
|
|
1012
|
+
scrollToHighlightedItems({ context, prop, scope }) {
|
|
1008
1013
|
let cleanups = [];
|
|
1009
1014
|
const exec = (immediate) => {
|
|
1010
1015
|
const highlightedValue = context.get("highlightedValue");
|
|
1011
1016
|
const highlightedIndexPath = context.get("highlightedIndexPath");
|
|
1012
1017
|
if (!highlightedIndexPath.length) return;
|
|
1013
|
-
if (
|
|
1018
|
+
if (require_focus_visible.getInteractionModality() !== "keyboard") return;
|
|
1014
1019
|
dom.getListEls(scope).forEach((listEl, index) => {
|
|
1015
1020
|
const itemPath = highlightedIndexPath.slice(0, index + 1);
|
|
1016
1021
|
const itemEl = dom.getItemEl(scope, highlightedValue.toString());
|
|
@@ -8,8 +8,8 @@ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.cj
|
|
|
8
8
|
import { a as Point } from "../../types-CLXYEgfm.cjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/cascade-select/cascade-select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
12
|
-
declare const parts: Record<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "valueText" | "clearTrigger" | "positioner" | "list">;
|
|
12
|
+
declare const parts: Record<"root" | "indicator" | "label" | "control" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "valueText" | "clearTrigger" | "positioner" | "list", AnatomyPart>;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/machines/cascade-select/cascade-select.collection.d.ts
|
|
15
15
|
declare const collection: {
|
|
@@ -8,8 +8,8 @@ import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.mj
|
|
|
8
8
|
import { a as Point } from "../../types-DU764tY_.mjs";
|
|
9
9
|
|
|
10
10
|
//#region src/machines/cascade-select/cascade-select.anatomy.d.ts
|
|
11
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
12
|
-
declare const parts: Record<"root" | "
|
|
11
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "valueText" | "clearTrigger" | "positioner" | "list">;
|
|
12
|
+
declare const parts: Record<"root" | "indicator" | "label" | "control" | "content" | "item" | "itemIndicator" | "itemText" | "trigger" | "valueText" | "clearTrigger" | "positioner" | "list", AnatomyPart>;
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/machines/cascade-select/cascade-select.collection.d.ts
|
|
15
15
|
declare const collection: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { C as queryAll, Et as isSelfTarget, I as scrollIntoView, K as isValidTabEvent, W as raf, bn as ariaAttr, ct as setElementValue, ft as getEventKey, it as dispatchInputValueEvent, lt as trackFormControl, p as createScope, un as isEditableElement, xn as dataAttr, z as observeAttributes } from "../../dom-query-
|
|
2
|
+
import { C as queryAll, Et as isSelfTarget, I as scrollIntoView, K as isValidTabEvent, W as raf, bn as ariaAttr, ct as setElementValue, ft as getEventKey, it as dispatchInputValueEvent, lt as trackFormControl, p as createScope, un as isEditableElement, xn as dataAttr, z as observeAttributes } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { Ct as isEmpty, ft as isEqual, u as createSplitProps, wt as last } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { t as TreeCollection } from "../../collection-DgzidRvr.mjs";
|
|
5
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
6
|
-
import "../../interact-outside-
|
|
7
|
-
import { n as trackDismissableElement } from "../../dismissable-
|
|
8
|
-
import {
|
|
5
|
+
import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
6
|
+
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
8
|
+
import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
|
|
9
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
|
|
9
10
|
import { B as getRectCorners, D as closestSideToPoint, L as createPoint, R as createRect, i as isPointInPolygon } from "../../rect-utils-B5xqFvKC.mjs";
|
|
10
11
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
11
12
|
//#region src/machines/cascade-select/cascade-select.anatomy.ts
|
|
@@ -748,6 +749,7 @@ const machine = createMachine({
|
|
|
748
749
|
exit: ["clearHighlightedValue", "scrollContentToTop"],
|
|
749
750
|
effects: [
|
|
750
751
|
"trackDismissableElement",
|
|
752
|
+
"trackFocusVisible",
|
|
751
753
|
"computePlacement",
|
|
752
754
|
"scrollToHighlightedItems"
|
|
753
755
|
],
|
|
@@ -972,6 +974,9 @@ const machine = createMachine({
|
|
|
972
974
|
}
|
|
973
975
|
});
|
|
974
976
|
},
|
|
977
|
+
trackFocusVisible({ scope }) {
|
|
978
|
+
return trackFocusVisible({ root: scope.getRootNode?.() });
|
|
979
|
+
},
|
|
975
980
|
trackDismissableElement({ scope, send, prop }) {
|
|
976
981
|
const contentEl = () => dom.getContentEl(scope);
|
|
977
982
|
let restoreFocus = true;
|
|
@@ -1003,13 +1008,13 @@ const machine = createMachine({
|
|
|
1003
1008
|
}
|
|
1004
1009
|
});
|
|
1005
1010
|
},
|
|
1006
|
-
scrollToHighlightedItems({ context, prop, scope
|
|
1011
|
+
scrollToHighlightedItems({ context, prop, scope }) {
|
|
1007
1012
|
let cleanups = [];
|
|
1008
1013
|
const exec = (immediate) => {
|
|
1009
1014
|
const highlightedValue = context.get("highlightedValue");
|
|
1010
1015
|
const highlightedIndexPath = context.get("highlightedIndexPath");
|
|
1011
1016
|
if (!highlightedIndexPath.length) return;
|
|
1012
|
-
if (
|
|
1017
|
+
if (getInteractionModality() !== "keyboard") return;
|
|
1013
1018
|
dom.getListEls(scope).forEach((listEl, index) => {
|
|
1014
1019
|
const itemPath = highlightedIndexPath.slice(0, index + 1);
|
|
1015
1020
|
const itemEl = dom.getItemEl(scope, highlightedValue.toString());
|
|
@@ -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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
6
|
-
const require_focus_visible = require("../../focus-visible-
|
|
5
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/checkbox/checkbox.anatomy.ts
|
|
9
9
|
const anatomy = require_create_anatomy.createAnatomy("checkbox").parts("root", "label", "control", "indicator");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-B24gMT
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/checkbox/checkbox.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
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-DUM9rz
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/checkbox/checkbox.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { T as trackPress, a as visuallyHiddenStyle, ht as getEventTarget, lt as trackFormControl, rt as dispatchInputCheckedEvent, st as setElementChecked, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { T as trackPress, a as visuallyHiddenStyle, ht as getEventTarget, lt as trackFormControl, rt as dispatchInputCheckedEvent, st as setElementChecked, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
5
|
-
import {
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
5
|
+
import { o as trackFocusVisible, r as isFocusVisible } from "../../focus-visible-BuLf8M9F.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/checkbox/checkbox.anatomy.ts
|
|
8
8
|
const anatomy = createAnatomy("checkbox").parts("root", "label", "control", "indicator");
|
|
@@ -1,8 +1,8 @@
|
|
|
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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
6
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/clipboard/clipboard.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("clipboard").parts("root", "control", "trigger", "indicator", "input", "label");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, y as Service } from "../../types-B24gMTKq.cjs";
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/clipboard/clipboard.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control" | "input" | "trigger">;
|
|
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-DUM9rzfD.mjs";
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/clipboard/clipboard.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "label" | "control" | "input" | "trigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/clipboard/clipboard.types.d.ts
|
|
9
9
|
interface CopyStatusDetails {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { ct as setElementValue, on as getWindow, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { ct as setElementValue, on as getWindow, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { s as setRafTimeout, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-Ci9Yu6QI.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/clipboard/clipboard.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("clipboard").parts("root", "control", "trigger", "indicator", "input", "label");
|
|
@@ -1,8 +1,8 @@
|
|
|
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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
|
-
const require_core = require("../../core-
|
|
5
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
6
6
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
7
7
|
//#region src/machines/collapsible/collapsible.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("collapsible").parts("root", "trigger", "content", "indicator");
|
|
@@ -3,7 +3,7 @@ import { p as Machine, y as Service } from "../../types-B24gMTKq.cjs";
|
|
|
3
3
|
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-CLRsezW5.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/collapsible/collapsible.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "content" | "trigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/collapsible/collapsible.types.d.ts
|
|
9
9
|
interface OpenChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, y as Service } from "../../types-DUM9rzfD.mjs";
|
|
|
3
3
|
import { b as NormalizeProps, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVFlU3b9.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/collapsible/collapsible.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "indicator" | "content" | "trigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/collapsible/collapsible.types.d.ts
|
|
9
9
|
interface OpenChangeDetails {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { B as observeChildren, H as nextTick, Qt as getComputedStyle, W as raf, c as setAttribute, et as getTabbables, ht as getEventTarget, u as setStyle, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { B as observeChildren, H as nextTick, Qt as getComputedStyle, W as raf, c as setAttribute, et as getTabbables, ht as getEventTarget, u as setStyle, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { H as toPx, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine } from "../../core-
|
|
4
|
+
import { a as createMachine } from "../../core-Ci9Yu6QI.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/collapsible/collapsible.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("collapsible").parts("root", "trigger", "content", "indicator");
|
|
@@ -1,12 +1,12 @@
|
|
|
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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
5
|
const require_color_utils = require("../../color-utils-XoYeFX3g.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
7
|
-
require("../../interact-outside-
|
|
8
|
-
const require_dismissable = require("../../dismissable-
|
|
9
|
-
const require_popper = require("../../popper-
|
|
6
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
7
|
+
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
|
+
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
|
+
const require_popper = require("../../popper-viCrafLC.cjs");
|
|
10
10
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
11
11
|
//#region src/machines/color-picker/color-picker.anatomy.ts
|
|
12
12
|
const anatomy = require_create_anatomy.createAnatomy("color-picker", [
|
|
@@ -6,7 +6,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
6
6
|
import { d as PositioningOptions } from "../../types-CZAtqGqH.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/color-picker/color-picker.anatomy.d.ts
|
|
9
|
-
declare const anatomy: Anatomy<"root" | "
|
|
9
|
+
declare const anatomy: Anatomy<"root" | "label" | "control" | "content" | "trigger" | "area" | "valueText" | "positioner" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
|
|
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-fMh0VDkR.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/color-picker/color-picker.anatomy.d.ts
|
|
9
|
-
declare const anatomy: Anatomy<"root" | "
|
|
9
|
+
declare const anatomy: Anatomy<"root" | "label" | "control" | "content" | "trigger" | "area" | "valueText" | "positioner" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/color-picker/color-picker.types.d.ts
|
|
12
12
|
type ExtendedColorChannel = ColorChannel | "hex" | "css";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { A as getRelativePoint, C as queryAll, Ct as isModifierKey, D as disableTextSelection, E as trackPointerMove, G as getInitialFocus, S as query, St as isLeftClick, W as raf, a as visuallyHiddenStyle, ct as setElementValue, ft as getEventKey, it as dispatchInputValueEvent, lt as trackFormControl, mt as getEventStep, pt as getEventPoint, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { A as getRelativePoint, C as queryAll, Ct as isModifierKey, D as disableTextSelection, E as trackPointerMove, G as getInitialFocus, S as query, St as isLeftClick, W as raf, a as visuallyHiddenStyle, ct as setElementValue, ft as getEventKey, it as dispatchInputValueEvent, lt as trackFormControl, mt as getEventStep, pt as getEventPoint, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { $ as tryCatch, u as createSplitProps } from "../../utils-VVoZ_v29.mjs";
|
|
4
4
|
import { i as getColorAreaGradient, n as parseColor, t as normalizeColor } from "../../color-utils-BK3Ae7x1.mjs";
|
|
5
|
-
import { a as createMachine, i as createGuards } 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 { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
6
|
+
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
8
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
|
|
9
9
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
10
|
//#region src/machines/color-picker/color-picker.anatomy.ts
|
|
11
11
|
const anatomy = createAnatomy("color-picker", [
|
|
@@ -1,12 +1,13 @@
|
|
|
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-BUO7rGsg.cjs");
|
|
4
4
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
5
5
|
const require_collection = require("../../collection-BBgC8xCb.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
7
|
-
require("../../interact-outside-
|
|
8
|
-
const require_dismissable = require("../../dismissable-
|
|
9
|
-
const
|
|
6
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
7
|
+
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
8
|
+
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
9
|
+
const require_focus_visible = require("../../focus-visible-Co_9bW09.cjs");
|
|
10
|
+
const require_popper = require("../../popper-viCrafLC.cjs");
|
|
10
11
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
11
12
|
//#region src/machines/combobox/combobox.anatomy.ts
|
|
12
13
|
const anatomy = require_create_anatomy.createAnatomy("combobox").parts("root", "clearTrigger", "content", "control", "input", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "label", "list", "positioner", "trigger");
|
|
@@ -830,6 +831,7 @@ const machine = createMachine({
|
|
|
830
831
|
tags: ["open", "focused"],
|
|
831
832
|
entry: ["setInitialFocus"],
|
|
832
833
|
effects: [
|
|
834
|
+
"trackFocusVisible",
|
|
833
835
|
"scrollToHighlightedItem",
|
|
834
836
|
"trackDismissableLayer",
|
|
835
837
|
"trackPlacement"
|
|
@@ -978,6 +980,7 @@ const machine = createMachine({
|
|
|
978
980
|
suggesting: {
|
|
979
981
|
tags: ["open", "focused"],
|
|
980
982
|
effects: [
|
|
983
|
+
"trackFocusVisible",
|
|
981
984
|
"trackDismissableLayer",
|
|
982
985
|
"scrollToHighlightedItem",
|
|
983
986
|
"trackPlacement"
|
|
@@ -1152,6 +1155,9 @@ const machine = createMachine({
|
|
|
1152
1155
|
hasCollectionItems: ({ prop }) => prop("collection").size > 0
|
|
1153
1156
|
},
|
|
1154
1157
|
effects: {
|
|
1158
|
+
trackFocusVisible({ scope }) {
|
|
1159
|
+
return require_focus_visible.trackFocusVisible({ root: scope.getRootNode?.() });
|
|
1160
|
+
},
|
|
1155
1161
|
trackDismissableLayer({ send, prop, scope }) {
|
|
1156
1162
|
if (prop("disableLayer")) return;
|
|
1157
1163
|
const contentEl = () => getContentEl(scope);
|
|
@@ -1195,13 +1201,13 @@ const machine = createMachine({
|
|
|
1195
1201
|
}
|
|
1196
1202
|
});
|
|
1197
1203
|
},
|
|
1198
|
-
scrollToHighlightedItem({ context, prop, scope
|
|
1204
|
+
scrollToHighlightedItem({ context, prop, scope }) {
|
|
1199
1205
|
const inputEl = getInputEl(scope);
|
|
1200
1206
|
let cleanups = [];
|
|
1201
1207
|
const exec = (immediate) => {
|
|
1202
|
-
|
|
1208
|
+
if (require_focus_visible.getInteractionModality() !== "keyboard") return;
|
|
1203
1209
|
const highlightedValue = context.get("highlightedValue");
|
|
1204
|
-
if (
|
|
1210
|
+
if (!highlightedValue) return;
|
|
1205
1211
|
const contentEl = getContentEl(scope);
|
|
1206
1212
|
const scrollToIndexFn = prop("scrollToIndexFn");
|
|
1207
1213
|
if (scrollToIndexFn) {
|
|
@@ -7,7 +7,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
7
7
|
import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.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" | "label" | "control" | "content" | "item" | "itemIndicator" | "input" | "itemText" | "trigger" | "itemGroup" | "clearTrigger" | "positioner" | "list" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -7,7 +7,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
7
7
|
import { p as PositioningOptions, u as Placement } from "../../index-fMh0VDkR.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" | "label" | "control" | "content" | "item" | "itemIndicator" | "input" | "itemText" | "trigger" | "itemGroup" | "clearTrigger" | "positioner" | "list" | "itemGroupLabel">;
|
|
11
11
|
//#endregion
|
|
12
12
|
//#region src/machines/combobox/combobox.collection.d.ts
|
|
13
13
|
declare const collection: {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
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-
|
|
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-BFuRs3l4.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 {
|
|
5
|
+
import { o as setup } from "../../core-Ci9Yu6QI.mjs";
|
|
6
|
+
import "../../interact-outside-Ba50N1a5.mjs";
|
|
7
|
+
import { n as trackDismissableElement } from "../../dismissable-B9k5K6f9.mjs";
|
|
8
|
+
import { o as trackFocusVisible, t as getInteractionModality } from "../../focus-visible-BuLf8M9F.mjs";
|
|
9
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-BlgbmdAn.mjs";
|
|
9
10
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
10
11
|
//#region src/machines/combobox/combobox.anatomy.ts
|
|
11
12
|
const anatomy = createAnatomy("combobox").parts("root", "clearTrigger", "content", "control", "input", "item", "itemGroup", "itemGroupLabel", "itemIndicator", "itemText", "label", "list", "positioner", "trigger");
|
|
@@ -829,6 +830,7 @@ const machine = createMachine({
|
|
|
829
830
|
tags: ["open", "focused"],
|
|
830
831
|
entry: ["setInitialFocus"],
|
|
831
832
|
effects: [
|
|
833
|
+
"trackFocusVisible",
|
|
832
834
|
"scrollToHighlightedItem",
|
|
833
835
|
"trackDismissableLayer",
|
|
834
836
|
"trackPlacement"
|
|
@@ -977,6 +979,7 @@ const machine = createMachine({
|
|
|
977
979
|
suggesting: {
|
|
978
980
|
tags: ["open", "focused"],
|
|
979
981
|
effects: [
|
|
982
|
+
"trackFocusVisible",
|
|
980
983
|
"trackDismissableLayer",
|
|
981
984
|
"scrollToHighlightedItem",
|
|
982
985
|
"trackPlacement"
|
|
@@ -1151,6 +1154,9 @@ const machine = createMachine({
|
|
|
1151
1154
|
hasCollectionItems: ({ prop }) => prop("collection").size > 0
|
|
1152
1155
|
},
|
|
1153
1156
|
effects: {
|
|
1157
|
+
trackFocusVisible({ scope }) {
|
|
1158
|
+
return trackFocusVisible({ root: scope.getRootNode?.() });
|
|
1159
|
+
},
|
|
1154
1160
|
trackDismissableLayer({ send, prop, scope }) {
|
|
1155
1161
|
if (prop("disableLayer")) return;
|
|
1156
1162
|
const contentEl = () => getContentEl(scope);
|
|
@@ -1194,13 +1200,13 @@ const machine = createMachine({
|
|
|
1194
1200
|
}
|
|
1195
1201
|
});
|
|
1196
1202
|
},
|
|
1197
|
-
scrollToHighlightedItem({ context, prop, scope
|
|
1203
|
+
scrollToHighlightedItem({ context, prop, scope }) {
|
|
1198
1204
|
const inputEl = getInputEl(scope);
|
|
1199
1205
|
let cleanups = [];
|
|
1200
1206
|
const exec = (immediate) => {
|
|
1201
|
-
|
|
1207
|
+
if (getInteractionModality() !== "keyboard") return;
|
|
1202
1208
|
const highlightedValue = context.get("highlightedValue");
|
|
1203
|
-
if (
|
|
1209
|
+
if (!highlightedValue) return;
|
|
1204
1210
|
const contentEl = getContentEl(scope);
|
|
1205
1211
|
const scrollToIndexFn = prop("scrollToIndexFn");
|
|
1206
1212
|
if (scrollToIndexFn) {
|
|
@@ -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-BUO7rGsg.cjs");
|
|
5
5
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
6
|
-
const require_core = require("../../core-
|
|
6
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
7
7
|
const require_date_utils = require("../../date-utils-Dz9DZPcZ.cjs");
|
|
8
|
-
require("../../interact-outside-
|
|
9
|
-
const require_dismissable = require("../../dismissable-
|
|
8
|
+
require("../../interact-outside-Bg-QSXqp.cjs");
|
|
9
|
+
const require_dismissable = require("../../dismissable-DxjbwsOf.cjs");
|
|
10
10
|
const require_live_region = require("../../live-region-TGReV9nm.cjs");
|
|
11
|
-
const require_popper = require("../../popper-
|
|
11
|
+
const require_popper = require("../../popper-viCrafLC.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
|
|
@@ -8,7 +8,7 @@ import { c as Placement, d as PositioningOptions } from "../../types-CZAtqGqH.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" | "label" | "control" | "content" | "input" | "trigger" | "prevTrigger" | "nextTrigger" | "table" | "view" | "clearTrigger" | "positioner" | "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";
|