@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,4 +1,4 @@
|
|
|
1
|
-
import { Gt as findControlledElements, fn as isHTMLElement } from "./dom-query-
|
|
1
|
+
import { Gt as findControlledElements, fn as isHTMLElement } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
//#region src/shared/aria-hidden/walk-tree-outside.ts
|
|
3
3
|
let counterMap = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
let uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
2
2
|
//#region src/shared/aria-hidden/walk-tree-outside.ts
|
|
3
3
|
let counterMap = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
let uncontrolledNodes = /* @__PURE__ */ new WeakMap();
|
package/dist/aria-hidden.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
3
|
-
const require_aria_hidden = require("./aria-hidden-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
|
+
const require_aria_hidden = require("./aria-hidden-CIBHXlCy.cjs");
|
|
4
4
|
exports.ariaHidden = require_aria_hidden.ariaHidden;
|
package/dist/aria-hidden.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { t as ariaHidden } from "./aria-hidden-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
|
+
import { t as ariaHidden } from "./aria-hidden-C72KtklN.mjs";
|
|
3
3
|
export { ariaHidden };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as getComputedStyle, on as getWindow, tn as getDocument } from "./dom-query-
|
|
1
|
+
import { Qt as getComputedStyle, on as getWindow, tn as getDocument } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
//#region src/shared/auto-resize/visual-style.ts
|
|
3
3
|
/**
|
|
4
4
|
* Gets the visual styles of an element as a CSS string for text measurement.
|
package/dist/auto-resize.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
3
|
-
const require_auto_resize = require("./auto-resize-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
|
+
const require_auto_resize = require("./auto-resize-BTTNXiml.cjs");
|
|
4
4
|
exports.autoResizeInput = require_auto_resize.autoResizeInput;
|
|
5
5
|
exports.autoresizeTextarea = require_auto_resize.autoresizeTextarea;
|
package/dist/auto-resize.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
|
+
import { n as autoResizeInput, t as autoresizeTextarea } from "./auto-resize-CbNgN0OO.mjs";
|
|
3
3
|
export { autoResizeInput, autoresizeTextarea };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { en as getActiveElement, sn as isActiveElement, tn as getDocument } from "./dom-query-
|
|
1
|
+
import { en as getActiveElement, sn as isActiveElement, tn as getDocument } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import { W as callAll, dt as isString, ft as isEqual } from "./utils-VVoZ_v29.mjs";
|
|
3
3
|
//#region src/shared/core/merge-props.ts
|
|
4
4
|
const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
2
2
|
const require_utils = require("./utils-ByNiZU8f.cjs");
|
|
3
3
|
//#region src/shared/core/merge-props.ts
|
|
4
4
|
const clsx = (...args) => args.map((str) => str?.trim?.()).filter(Boolean).join(" ");
|
package/dist/core.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
3
|
require("./utils-ByNiZU8f.cjs");
|
|
4
|
-
const require_core = require("./core-
|
|
4
|
+
const require_core = require("./core-DwdPztGA.cjs");
|
|
5
5
|
exports.INIT_STATE = require_core.INIT_STATE;
|
|
6
6
|
exports.MachineStatus = require_core.MachineStatus;
|
|
7
7
|
exports.createGuards = require_core.createGuards;
|
package/dist/core.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import "./utils-VVoZ_v29.mjs";
|
|
3
|
-
import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-
|
|
3
|
+
import { a as createMachine, c as mergeProps, i as createGuards, n as INIT_STATE, o as setup, r as MachineStatus, s as memo, t as createScope } from "./core-Ci9Yu6QI.mjs";
|
|
4
4
|
export { INIT_STATE, MachineStatus, createGuards, createMachine, createScope, memo, mergeProps, setup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $t as contains, H as nextTick, W as raf, fn as isHTMLElement, ht as getEventTarget, t as waitForElement, tn as getDocument, u as setStyle, ut as addDomEvent } from "./dom-query-
|
|
1
|
+
import { $t as contains, H as nextTick, W as raf, fn as isHTMLElement, ht as getEventTarget, t as waitForElement, tn as getDocument, u as setStyle, ut as addDomEvent } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import { at as isFunction, i as warn } from "./utils-VVoZ_v29.mjs";
|
|
3
|
-
import { t as trackInteractOutside } from "./interact-outside-
|
|
3
|
+
import { t as trackInteractOutside } from "./interact-outside-Ba50N1a5.mjs";
|
|
4
4
|
//#region src/shared/dismissable/escape-keydown.ts
|
|
5
5
|
function trackEscapeKeydown(node, fn) {
|
|
6
6
|
const handleKeyDown = (event) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
2
2
|
const require_utils = require("./utils-ByNiZU8f.cjs");
|
|
3
|
-
const require_interact_outside = require("./interact-outside-
|
|
3
|
+
const require_interact_outside = require("./interact-outside-Bg-QSXqp.cjs");
|
|
4
4
|
//#region src/shared/dismissable/escape-keydown.ts
|
|
5
5
|
function trackEscapeKeydown(node, fn) {
|
|
6
6
|
const handleKeyDown = (event) => {
|
package/dist/dismissable.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
3
|
require("./utils-ByNiZU8f.cjs");
|
|
4
|
-
require("./interact-outside-
|
|
5
|
-
const require_dismissable = require("./dismissable-
|
|
4
|
+
require("./interact-outside-Bg-QSXqp.cjs");
|
|
5
|
+
const require_dismissable = require("./dismissable-DxjbwsOf.cjs");
|
|
6
6
|
exports.trackDismissableBranch = require_dismissable.trackDismissableBranch;
|
|
7
7
|
exports.trackDismissableElement = require_dismissable.trackDismissableElement;
|
package/dist/dismissable.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./dom-query-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import "./utils-VVoZ_v29.mjs";
|
|
3
|
-
import "./interact-outside-
|
|
4
|
-
import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-
|
|
3
|
+
import "./interact-outside-Ba50N1a5.mjs";
|
|
4
|
+
import { n as trackDismissableElement, t as trackDismissableBranch } from "./dismissable-B9k5K6f9.mjs";
|
|
5
5
|
export { trackDismissableBranch, trackDismissableElement };
|
|
@@ -464,7 +464,7 @@ function trackFormControl(el, options) {
|
|
|
464
464
|
const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];
|
|
465
465
|
return () => cleanups.forEach((cleanup) => cleanup?.());
|
|
466
466
|
}
|
|
467
|
-
const INTERNAL_CHANGE_EVENT = Symbol.for("
|
|
467
|
+
const INTERNAL_CHANGE_EVENT = Symbol.for("sprawlify.changeEvent");
|
|
468
468
|
function isInternalChangeEvent(e) {
|
|
469
469
|
return Object.prototype.hasOwnProperty.call(e, INTERNAL_CHANGE_EVENT);
|
|
470
470
|
}
|
|
@@ -464,7 +464,7 @@ function trackFormControl(el, options) {
|
|
|
464
464
|
const cleanups = [trackFormReset(el, onFormReset), trackFieldsetDisabled(el, onFieldsetDisabledChange)];
|
|
465
465
|
return () => cleanups.forEach((cleanup) => cleanup?.());
|
|
466
466
|
}
|
|
467
|
-
const INTERNAL_CHANGE_EVENT = Symbol.for("
|
|
467
|
+
const INTERNAL_CHANGE_EVENT = Symbol.for("sprawlify.changeEvent");
|
|
468
468
|
function isInternalChangeEvent(e) {
|
|
469
469
|
return Object.prototype.hasOwnProperty.call(e, INTERNAL_CHANGE_EVENT);
|
|
470
470
|
}
|
package/dist/dom-query.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dom_query = require("./dom-query-
|
|
2
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
3
3
|
exports.AnimationFrame = require_dom_query.AnimationFrame;
|
|
4
4
|
exports.MAX_Z_INDEX = require_dom_query.MAX_Z_INDEX;
|
|
5
5
|
exports.addDomEvent = require_dom_query.addDomEvent;
|
package/dist/dom-query.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { $ as getTabbableEdges, $t as contains, A as getRelativePoint, At as getPlatform, B as observeChildren, Bt as isMac, C as queryAll, Cn as setCaretToEnd, Ct as isModifierKey, D as disableTextSelection, Dt as isTouchEvent, E as trackPointerMove, Et as isSelfTarget, F as isOverflowElement, Ft as isDom, G as getInitialFocus, Gt as findControlledElements, H as nextTick, Ht as isTouchDevice, I as scrollIntoView, It as isFirefox, J as getFirstTabbable, Jt as isControlledByExpandedController, K as isValidTabEvent, Kt as getControlledElements, L as clickIfLink, Lt as isIPad, M as getOverflowAncestors, Mt as isAndroid, N as getScrollPosition, Nt as isApple, O as restoreTextSelection, Ot as isVirtualClick, P as isInView, Pt as isChrome, Q as getTabIndex, Qt as getComputedStyle, R as navigate, Rt as isIPhone, S as query, Sn as isCaretAtStart, St as isLeftClick, T as trackPress, Tt as isPrintableKey, U as queueBeforeEvent, Ut as isWebKit, V as AnimationFrame, Vt as isSafari, W as raf, Wt as getDataUrl, X as getLastTabbable, Xt as isControllerElement, Y as getFocusables, Yt as isControlledElement, Z as getNextTabbable, Zt as isInteractiveContainerElement, _ as defaultItemToId, _n as isVisualViewport, _t as isComposingEvent, a as visuallyHiddenStyle, an as getRootNode, at as isInternalChangeEvent, b as nextById, bn as ariaAttr, bt as isDownloadingEvent, c as setAttribute, cn as isAnchorElement, ct as setElementValue, d as setStyleProperty, dn as isElementVisible, dt as getBeforeInputValue, en as getActiveElement, et as getTabbables, f as getByText, fn as isHTMLElement, ft as getEventKey, g as resizeObserverDevicePixelContentBox, gn as isShadowRoot, gt as getNativeEvent, h as resizeObserverContentBox, hn as isRootElement, ht as getEventTarget, i as setVisuallyHidden, in as getParentNode, it as dispatchInputValueEvent, j as getNearestOverflowAncestor, jt as getUserAgent, k as requestPointerLock, kt as isVirtualPointerEvent, l as setProperty, ln as isDocument, lt as trackFormControl, m as resizeObserverBorderBox, mn as isNode, mt as getEventStep, n as waitForEvent, nn as getDocumentElement, nt as isTabbable, o as trackVisualViewport, on as getWindow, ot as markAsInternalChangeEvent, p as createScope, pn as isInputElement, pt as getEventPoint, q as getFirstFocusable, qt as hasControllerElements, r as waitForPromise, rn as getNodeName, rt as dispatchInputCheckedEvent, s as getByTypeahead, sn as isActiveElement, st as setElementChecked, t as waitForElement, tn as getDocument, tt as isFocusable, u as setStyle, un as isEditableElement, ut as addDomEvent, v as indexOfId, vn as isWindow, vt as isContextMenuEvent, w as proxyTabFocus, wt as isOpeningInNewTab, x as prevById, xn as dataAttr, xt as isKeyboardClick, y as itemById, yn as MAX_Z_INDEX, yt as isCtrlOrMetaKey, z as observeAttributes, zt as isIos } from "./dom-query-
|
|
1
|
+
import { $ as getTabbableEdges, $t as contains, A as getRelativePoint, At as getPlatform, B as observeChildren, Bt as isMac, C as queryAll, Cn as setCaretToEnd, Ct as isModifierKey, D as disableTextSelection, Dt as isTouchEvent, E as trackPointerMove, Et as isSelfTarget, F as isOverflowElement, Ft as isDom, G as getInitialFocus, Gt as findControlledElements, H as nextTick, Ht as isTouchDevice, I as scrollIntoView, It as isFirefox, J as getFirstTabbable, Jt as isControlledByExpandedController, K as isValidTabEvent, Kt as getControlledElements, L as clickIfLink, Lt as isIPad, M as getOverflowAncestors, Mt as isAndroid, N as getScrollPosition, Nt as isApple, O as restoreTextSelection, Ot as isVirtualClick, P as isInView, Pt as isChrome, Q as getTabIndex, Qt as getComputedStyle, R as navigate, Rt as isIPhone, S as query, Sn as isCaretAtStart, St as isLeftClick, T as trackPress, Tt as isPrintableKey, U as queueBeforeEvent, Ut as isWebKit, V as AnimationFrame, Vt as isSafari, W as raf, Wt as getDataUrl, X as getLastTabbable, Xt as isControllerElement, Y as getFocusables, Yt as isControlledElement, Z as getNextTabbable, Zt as isInteractiveContainerElement, _ as defaultItemToId, _n as isVisualViewport, _t as isComposingEvent, a as visuallyHiddenStyle, an as getRootNode, at as isInternalChangeEvent, b as nextById, bn as ariaAttr, bt as isDownloadingEvent, c as setAttribute, cn as isAnchorElement, ct as setElementValue, d as setStyleProperty, dn as isElementVisible, dt as getBeforeInputValue, en as getActiveElement, et as getTabbables, f as getByText, fn as isHTMLElement, ft as getEventKey, g as resizeObserverDevicePixelContentBox, gn as isShadowRoot, gt as getNativeEvent, h as resizeObserverContentBox, hn as isRootElement, ht as getEventTarget, i as setVisuallyHidden, in as getParentNode, it as dispatchInputValueEvent, j as getNearestOverflowAncestor, jt as getUserAgent, k as requestPointerLock, kt as isVirtualPointerEvent, l as setProperty, ln as isDocument, lt as trackFormControl, m as resizeObserverBorderBox, mn as isNode, mt as getEventStep, n as waitForEvent, nn as getDocumentElement, nt as isTabbable, o as trackVisualViewport, on as getWindow, ot as markAsInternalChangeEvent, p as createScope, pn as isInputElement, pt as getEventPoint, q as getFirstFocusable, qt as hasControllerElements, r as waitForPromise, rn as getNodeName, rt as dispatchInputCheckedEvent, s as getByTypeahead, sn as isActiveElement, st as setElementChecked, t as waitForElement, tn as getDocument, tt as isFocusable, u as setStyle, un as isEditableElement, ut as addDomEvent, v as indexOfId, vn as isWindow, vt as isContextMenuEvent, w as proxyTabFocus, wt as isOpeningInNewTab, x as prevById, xn as dataAttr, xt as isKeyboardClick, y as itemById, yn as MAX_Z_INDEX, yt as isCtrlOrMetaKey, z as observeAttributes, zt as isIos } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
export { AnimationFrame, MAX_Z_INDEX, addDomEvent, ariaAttr, clickIfLink, contains, createScope, dataAttr, defaultItemToId, disableTextSelection, dispatchInputCheckedEvent, dispatchInputValueEvent, findControlledElements, getActiveElement, getBeforeInputValue, getByText, getByTypeahead, getComputedStyle, getControlledElements, getDataUrl, getDocument, getDocumentElement, getEventKey, getEventPoint, getEventStep, getEventTarget, getFirstFocusable, getFirstTabbable, getFocusables, getInitialFocus, getLastTabbable, getNativeEvent, getNearestOverflowAncestor, getNextTabbable, getNodeName, getOverflowAncestors, getParentNode, getPlatform, getRelativePoint, getRootNode, getScrollPosition, getTabIndex, getTabbableEdges, getTabbables, getUserAgent, getWindow, hasControllerElements, indexOfId, isActiveElement, isAnchorElement, isAndroid, isApple, isCaretAtStart, isChrome, isComposingEvent, isContextMenuEvent, isControlledByExpandedController, isControlledElement, isControllerElement, isCtrlOrMetaKey, isDocument, isDom, isDownloadingEvent, isEditableElement, isElementVisible, isFirefox, isFocusable, isHTMLElement, isIPad, isIPhone, isInView, isInputElement, isInteractiveContainerElement, isInternalChangeEvent, isIos, isKeyboardClick, isLeftClick, isMac, isModifierKey, isNode, isOpeningInNewTab, isOverflowElement, isPrintableKey, isRootElement, isSafari, isSelfTarget, isShadowRoot, isTabbable, isTouchDevice, isTouchEvent, isValidTabEvent, isVirtualClick, isVirtualPointerEvent, isVisualViewport, isWebKit, isWindow, itemById, markAsInternalChangeEvent, navigate, nextById, nextTick, observeAttributes, observeChildren, prevById, proxyTabFocus, query, queryAll, queueBeforeEvent, raf, requestPointerLock, resizeObserverBorderBox, resizeObserverContentBox, resizeObserverDevicePixelContentBox, restoreTextSelection, scrollIntoView, setAttribute, setCaretToEnd, setElementChecked, setElementValue, setProperty, setStyle, setStyleProperty, setVisuallyHidden, trackFormControl, trackPointerMove, trackPress, trackVisualViewport, visuallyHiddenStyle, waitForElement, waitForEvent, waitForPromise };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
2
2
|
const require_defineProperty = require("./defineProperty-8IOBQ1i_.cjs");
|
|
3
3
|
//#region src/shared/focus-trap/focus-trap.ts
|
|
4
4
|
const activeFocusTraps = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jt as isControlledByExpandedController, Kt as getControlledElements, Q as getTabIndex, W as raf, Y as getFocusables, Yt as isControlledElement, en as getActiveElement, et as getTabbables, ht as getEventTarget, ln as isDocument, nt as isTabbable, qt as hasControllerElements, tn as getDocument, tt as isFocusable, ut as addDomEvent } from "./dom-query-
|
|
1
|
+
import { Jt as isControlledByExpandedController, Kt as getControlledElements, Q as getTabIndex, W as raf, Y as getFocusables, Yt as isControlledElement, en as getActiveElement, et as getTabbables, ht as getEventTarget, ln as isDocument, nt as isTabbable, qt as hasControllerElements, tn as getDocument, tt as isFocusable, ut as addDomEvent } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import { t as _defineProperty } from "./defineProperty-D5oW_HU_.mjs";
|
|
3
3
|
//#region src/shared/focus-trap/focus-trap.ts
|
|
4
4
|
const activeFocusTraps = {
|
package/dist/focus-trap.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
3
|
-
const require_focus_trap = require("./focus-trap-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
|
+
const require_focus_trap = require("./focus-trap-BewqTQFt.cjs");
|
|
4
4
|
exports.FocusTrap = require_focus_trap.FocusTrap;
|
|
5
5
|
exports.trapFocus = require_focus_trap.trapFocus;
|
package/dist/focus-trap.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { n as FocusTrap, t as trapFocus } from "./focus-trap-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
|
+
import { n as FocusTrap, t as trapFocus } from "./focus-trap-Do8IUXYh.mjs";
|
|
3
3
|
export { FocusTrap, trapFocus };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as isMac, Ot as isVirtualClick, ht as getEventTarget, on as getWindow, tn as getDocument } from "./dom-query-
|
|
1
|
+
import { Bt as isMac, Ot as isVirtualClick, en as getActiveElement, ht as getEventTarget, on as getWindow, tn as getDocument } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
//#region src/shared/focus-visible/index.ts
|
|
3
3
|
function isValidKey(e) {
|
|
4
4
|
return !(e.metaKey || !isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
@@ -15,9 +15,11 @@ const nonTextInputTypes = new Set([
|
|
|
15
15
|
"reset"
|
|
16
16
|
]);
|
|
17
17
|
function isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
const eventTarget = e ? getEventTarget(e) : null;
|
|
19
|
+
const doc = getDocument(eventTarget);
|
|
20
|
+
const win = getWindow(eventTarget);
|
|
21
|
+
const activeElement = getActiveElement(doc);
|
|
22
|
+
isTextInput = isTextInput || activeElement instanceof win.HTMLInputElement && !nonTextInputTypes.has(activeElement?.type) || activeElement instanceof win.HTMLTextAreaElement || activeElement instanceof win.HTMLElement && activeElement.isContentEditable;
|
|
21
23
|
return !(isTextInput && modality === "keyboard" && e instanceof win.KeyboardEvent && !Reflect.has(FOCUS_VISIBLE_INPUT_KEYS, e.key));
|
|
22
24
|
}
|
|
23
25
|
let currentModality = null;
|
|
@@ -25,6 +27,7 @@ let changeHandlers = /* @__PURE__ */ new Set();
|
|
|
25
27
|
let listenerMap = /* @__PURE__ */ new Map();
|
|
26
28
|
let hasEventBeforeFocus = false;
|
|
27
29
|
let hasBlurredWindowRecently = false;
|
|
30
|
+
let ignoreFocusEvent = false;
|
|
28
31
|
const FOCUS_VISIBLE_INPUT_KEYS = {
|
|
29
32
|
Tab: true,
|
|
30
33
|
Escape: true
|
|
@@ -54,7 +57,7 @@ function handleClickEvent(e) {
|
|
|
54
57
|
}
|
|
55
58
|
function handleFocusEvent(e) {
|
|
56
59
|
const target = getEventTarget(e);
|
|
57
|
-
if (target === getWindow(target) || target === getDocument(target)) return;
|
|
60
|
+
if (target === getWindow(target) || target === getDocument(target) || !e.isTrusted) return;
|
|
58
61
|
if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {
|
|
59
62
|
currentModality = "virtual";
|
|
60
63
|
triggerChangeHandlers("virtual", e);
|
|
@@ -72,8 +75,6 @@ function setupGlobalFocusEvents(root) {
|
|
|
72
75
|
const doc = getDocument(root);
|
|
73
76
|
let focus = win.HTMLElement.prototype.focus;
|
|
74
77
|
function patchedFocus() {
|
|
75
|
-
currentModality = "virtual";
|
|
76
|
-
triggerChangeHandlers("virtual", null);
|
|
77
78
|
hasEventBeforeFocus = true;
|
|
78
79
|
focus.apply(this, arguments);
|
|
79
80
|
}
|
|
@@ -148,7 +149,7 @@ function trackInteractionModality(props) {
|
|
|
148
149
|
};
|
|
149
150
|
}
|
|
150
151
|
function isFocusVisible() {
|
|
151
|
-
return currentModality === "keyboard";
|
|
152
|
+
return currentModality === "keyboard" || currentModality === "virtual";
|
|
152
153
|
}
|
|
153
154
|
function trackFocusVisible(props = {}) {
|
|
154
155
|
const { isTextInput, autoFocus, onChange, root } = props;
|
|
@@ -170,4 +171,4 @@ function trackFocusVisible(props = {}) {
|
|
|
170
171
|
};
|
|
171
172
|
}
|
|
172
173
|
//#endregion
|
|
173
|
-
export {
|
|
174
|
+
export { setInteractionModality as a, listenerMap as i, ignoreFocusEvent as n, trackFocusVisible as o, isFocusVisible as r, trackInteractionModality as s, getInteractionModality as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
2
2
|
//#region src/shared/focus-visible/index.ts
|
|
3
3
|
function isValidKey(e) {
|
|
4
4
|
return !(e.metaKey || !require_dom_query.isMac() && e.altKey || e.ctrlKey || e.key === "Control" || e.key === "Shift" || e.key === "Meta");
|
|
@@ -15,9 +15,11 @@ const nonTextInputTypes = new Set([
|
|
|
15
15
|
"reset"
|
|
16
16
|
]);
|
|
17
17
|
function isKeyboardFocusEvent(isTextInput, modality, e) {
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
|
|
18
|
+
const eventTarget = e ? require_dom_query.getEventTarget(e) : null;
|
|
19
|
+
const doc = require_dom_query.getDocument(eventTarget);
|
|
20
|
+
const win = require_dom_query.getWindow(eventTarget);
|
|
21
|
+
const activeElement = require_dom_query.getActiveElement(doc);
|
|
22
|
+
isTextInput = isTextInput || activeElement instanceof win.HTMLInputElement && !nonTextInputTypes.has(activeElement?.type) || activeElement instanceof win.HTMLTextAreaElement || activeElement instanceof win.HTMLElement && activeElement.isContentEditable;
|
|
21
23
|
return !(isTextInput && modality === "keyboard" && e instanceof win.KeyboardEvent && !Reflect.has(FOCUS_VISIBLE_INPUT_KEYS, e.key));
|
|
22
24
|
}
|
|
23
25
|
let currentModality = null;
|
|
@@ -25,6 +27,7 @@ let changeHandlers = /* @__PURE__ */ new Set();
|
|
|
25
27
|
let listenerMap = /* @__PURE__ */ new Map();
|
|
26
28
|
let hasEventBeforeFocus = false;
|
|
27
29
|
let hasBlurredWindowRecently = false;
|
|
30
|
+
let ignoreFocusEvent = false;
|
|
28
31
|
const FOCUS_VISIBLE_INPUT_KEYS = {
|
|
29
32
|
Tab: true,
|
|
30
33
|
Escape: true
|
|
@@ -54,7 +57,7 @@ function handleClickEvent(e) {
|
|
|
54
57
|
}
|
|
55
58
|
function handleFocusEvent(e) {
|
|
56
59
|
const target = require_dom_query.getEventTarget(e);
|
|
57
|
-
if (target === require_dom_query.getWindow(target) || target === require_dom_query.getDocument(target)) return;
|
|
60
|
+
if (target === require_dom_query.getWindow(target) || target === require_dom_query.getDocument(target) || !e.isTrusted) return;
|
|
58
61
|
if (!hasEventBeforeFocus && !hasBlurredWindowRecently) {
|
|
59
62
|
currentModality = "virtual";
|
|
60
63
|
triggerChangeHandlers("virtual", e);
|
|
@@ -72,8 +75,6 @@ function setupGlobalFocusEvents(root) {
|
|
|
72
75
|
const doc = require_dom_query.getDocument(root);
|
|
73
76
|
let focus = win.HTMLElement.prototype.focus;
|
|
74
77
|
function patchedFocus() {
|
|
75
|
-
currentModality = "virtual";
|
|
76
|
-
triggerChangeHandlers("virtual", null);
|
|
77
78
|
hasEventBeforeFocus = true;
|
|
78
79
|
focus.apply(this, arguments);
|
|
79
80
|
}
|
|
@@ -148,7 +149,7 @@ function trackInteractionModality(props) {
|
|
|
148
149
|
};
|
|
149
150
|
}
|
|
150
151
|
function isFocusVisible() {
|
|
151
|
-
return currentModality === "keyboard";
|
|
152
|
+
return currentModality === "keyboard" || currentModality === "virtual";
|
|
152
153
|
}
|
|
153
154
|
function trackFocusVisible(props = {}) {
|
|
154
155
|
const { isTextInput, autoFocus, onChange, root } = props;
|
|
@@ -176,6 +177,12 @@ Object.defineProperty(exports, "getInteractionModality", {
|
|
|
176
177
|
return getInteractionModality;
|
|
177
178
|
}
|
|
178
179
|
});
|
|
180
|
+
Object.defineProperty(exports, "ignoreFocusEvent", {
|
|
181
|
+
enumerable: true,
|
|
182
|
+
get: function() {
|
|
183
|
+
return ignoreFocusEvent;
|
|
184
|
+
}
|
|
185
|
+
});
|
|
179
186
|
Object.defineProperty(exports, "isFocusVisible", {
|
|
180
187
|
enumerable: true,
|
|
181
188
|
get: function() {
|
package/dist/focus-visible.cjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
3
|
-
const require_focus_visible = require("./focus-visible-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
|
+
const require_focus_visible = require("./focus-visible-Co_9bW09.cjs");
|
|
4
4
|
exports.getInteractionModality = require_focus_visible.getInteractionModality;
|
|
5
|
+
exports.ignoreFocusEvent = require_focus_visible.ignoreFocusEvent;
|
|
5
6
|
exports.isFocusVisible = require_focus_visible.isFocusVisible;
|
|
6
7
|
exports.listenerMap = require_focus_visible.listenerMap;
|
|
7
8
|
exports.setInteractionModality = require_focus_visible.setInteractionModality;
|
package/dist/focus-visible.d.cts
CHANGED
|
@@ -5,6 +5,7 @@ interface GlobalListenerData {
|
|
|
5
5
|
focus: VoidFunction;
|
|
6
6
|
}
|
|
7
7
|
declare let listenerMap: Map<Window, GlobalListenerData>;
|
|
8
|
+
declare let ignoreFocusEvent: boolean;
|
|
8
9
|
declare function getInteractionModality(): Modality | null;
|
|
9
10
|
declare function setInteractionModality(modality: Modality): void;
|
|
10
11
|
interface InteractionModalityChangeDetails {
|
|
@@ -28,4 +29,4 @@ interface FocusVisibleProps {
|
|
|
28
29
|
}
|
|
29
30
|
declare function trackFocusVisible(props?: FocusVisibleProps): VoidFunction;
|
|
30
31
|
//#endregion
|
|
31
|
-
export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
|
32
|
+
export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, ignoreFocusEvent, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
package/dist/focus-visible.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ interface GlobalListenerData {
|
|
|
5
5
|
focus: VoidFunction;
|
|
6
6
|
}
|
|
7
7
|
declare let listenerMap: Map<Window, GlobalListenerData>;
|
|
8
|
+
declare let ignoreFocusEvent: boolean;
|
|
8
9
|
declare function getInteractionModality(): Modality | null;
|
|
9
10
|
declare function setInteractionModality(modality: Modality): void;
|
|
10
11
|
interface InteractionModalityChangeDetails {
|
|
@@ -28,4 +29,4 @@ interface FocusVisibleProps {
|
|
|
28
29
|
}
|
|
29
30
|
declare function trackFocusVisible(props?: FocusVisibleProps): VoidFunction;
|
|
30
31
|
//#endregion
|
|
31
|
-
export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
|
32
|
+
export { FocusVisibleChangeDetails, FocusVisibleProps, InteractionModalityChangeDetails, InteractionModalityProps, Modality, getInteractionModality, ignoreFocusEvent, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
package/dist/focus-visible.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as
|
|
3
|
-
export { getInteractionModality, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
|
+
import { a as setInteractionModality, i as listenerMap, n as ignoreFocusEvent, o as trackFocusVisible, r as isFocusVisible, s as trackInteractionModality, t as getInteractionModality } from "./focus-visible-BuLf8M9F.mjs";
|
|
3
|
+
export { getInteractionModality, ignoreFocusEvent, isFocusVisible, listenerMap, setInteractionModality, trackFocusVisible, trackInteractionModality };
|
package/dist/i18n-utils.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
3
|
-
const require_i18n_utils = require("./i18n-utils-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
|
+
const require_i18n_utils = require("./i18n-utils-BRLqoCq8.cjs");
|
|
4
4
|
exports.createCollator = require_i18n_utils.createCollator;
|
|
5
5
|
exports.createFilter = require_i18n_utils.createFilter;
|
|
6
6
|
exports.formatBytes = require_i18n_utils.formatBytes;
|
package/dist/i18n-utils.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./dom-query-
|
|
2
|
-
import { a as formatTime, c as formatDate, d as createFilter, f as createCollator, i as isRTL, l as formatBytes, n as getDefaultLocale, o as formatRelativeTime, r as getLocaleDir, s as formatList, t as trackLocale, u as formatNumber } from "./i18n-utils-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
|
+
import { a as formatTime, c as formatDate, d as createFilter, f as createCollator, i as isRTL, l as formatBytes, n as getDefaultLocale, o as formatRelativeTime, r as getLocaleDir, s as formatList, t as trackLocale, u as formatNumber } from "./i18n-utils-DZs1CPj8.mjs";
|
|
3
3
|
export { createCollator, createFilter, formatBytes, formatDate, formatList, formatNumber, formatRelativeTime, formatTime, getDefaultLocale, getLocaleDir, isRTL, trackLocale };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as contains, Ht as isTouchDevice, W as raf, Yt as isControlledElement, fn as isHTMLElement, gn as isShadowRoot, ht as getEventTarget, j as getNearestOverflowAncestor, on as getWindow, tn as getDocument, tt as isFocusable, ut as addDomEvent, vt as isContextMenuEvent } from "./dom-query-
|
|
1
|
+
import { $t as contains, Ht as isTouchDevice, W as raf, Yt as isControlledElement, fn as isHTMLElement, gn as isShadowRoot, ht as getEventTarget, j as getNearestOverflowAncestor, on as getWindow, tn as getDocument, tt as isFocusable, ut as addDomEvent, vt as isContextMenuEvent } from "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import { W as callAll } from "./utils-VVoZ_v29.mjs";
|
|
3
3
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
4
4
|
function getWindowFrames(win) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom_query = require("./dom-query-
|
|
1
|
+
const require_dom_query = require("./dom-query-BUO7rGsg.cjs");
|
|
2
2
|
const require_utils = require("./utils-ByNiZU8f.cjs");
|
|
3
3
|
//#region src/shared/interact-outside/frame-utils.ts
|
|
4
4
|
function getWindowFrames(win) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dom-query-
|
|
2
|
+
require("./dom-query-BUO7rGsg.cjs");
|
|
3
3
|
require("./utils-ByNiZU8f.cjs");
|
|
4
|
-
const require_interact_outside = require("./interact-outside-
|
|
4
|
+
const require_interact_outside = require("./interact-outside-Bg-QSXqp.cjs");
|
|
5
5
|
exports.trackInteractOutside = require_interact_outside.trackInteractOutside;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./dom-query-
|
|
1
|
+
import "./dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import "./utils-VVoZ_v29.mjs";
|
|
3
|
-
import { t as trackInteractOutside } from "./interact-outside-
|
|
3
|
+
import { t as trackInteractOutside } from "./interact-outside-Ba50N1a5.mjs";
|
|
4
4
|
export { trackInteractOutside };
|
|
@@ -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/accordion/accordion.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator");
|
|
@@ -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/accordion/accordion.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/accordion/accordion.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-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/accordion/accordion.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "item" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/accordion/accordion.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { C as queryAll, Vt as isSafari, b as nextById, ft as getEventKey, x as prevById, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { C as queryAll, Vt as isSafari, b as nextById, ft as getEventKey, x as prevById, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { At as remove, i as warn, pt as add, u as createSplitProps, vt as first, wt as last } from "../../utils-VVoZ_v29.mjs";
|
|
4
|
-
import { a as createMachine, i as createGuards } from "../../core-
|
|
4
|
+
import { a as createMachine, i as createGuards } from "../../core-Ci9Yu6QI.mjs";
|
|
5
5
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
6
6
|
//#region src/machines/accordion/accordion.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("accordion").parts("root", "item", "itemTrigger", "itemContent", "itemIndicator");
|
|
@@ -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_rect_utils = require("../../rect-utils-D3RkAaHK.cjs");
|
|
7
7
|
const require_create_props = require("../../create-props-DP39rHnH.cjs");
|
|
8
8
|
//#region src/machines/angle-slider/angle-slider.anatomy.ts
|
|
@@ -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/angle-slider/angle-slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb" | "track" | "marker" | "valueText" | "markerGroup">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/angle-slider/angle-slider.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-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/angle-slider/angle-slider.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "thumb" | "track" | "marker" | "valueText" | "markerGroup">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/angle-slider/angle-slider.types.d.ts
|
|
9
9
|
interface ValueChangeDetails {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import { E as trackPointerMove, St as isLeftClick, W as raf, ct as setElementValue, gt as getNativeEvent, mt as getEventStep, pt as getEventPoint, xn as dataAttr } from "../../dom-query-
|
|
2
|
+
import { E as trackPointerMove, St as isLeftClick, W as raf, ct as setElementValue, gt as getNativeEvent, mt as getEventStep, pt as getEventPoint, xn as dataAttr } from "../../dom-query-BFuRs3l4.mjs";
|
|
3
3
|
import { B as snapValueToStep, 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 { R as createRect, q as getPointAngle } from "../../rect-utils-B5xqFvKC.mjs";
|
|
6
6
|
import { t as createProps } from "../../create-props-DFW8DUsC.mjs";
|
|
7
7
|
//#region src/machines/angle-slider/angle-slider.anatomy.ts
|
|
@@ -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
|
-
require("../../dom-query-
|
|
3
|
+
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/aspect-ratio/aspect-ratio.anatomy.ts
|
|
8
8
|
const anatomy = require_create_anatomy.createAnatomy("aspect-ratio").parts("root", "content");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as createAnatomy } from "../../create-anatomy-Dr0evdYy.mjs";
|
|
2
|
-
import "../../dom-query-
|
|
2
|
+
import "../../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/aspect-ratio/aspect-ratio.anatomy.ts
|
|
7
7
|
const anatomy = createAnatomy("aspect-ratio").parts("root", "content");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("../../dom-query-
|
|
2
|
+
require("../../dom-query-BUO7rGsg.cjs");
|
|
3
3
|
const require_utils = require("../../utils-ByNiZU8f.cjs");
|
|
4
|
-
const require_core = require("../../core-
|
|
4
|
+
const require_core = require("../../core-DwdPztGA.cjs");
|
|
5
5
|
//#region src/machines/async-list/async-list.connect.ts
|
|
6
6
|
function connect(service) {
|
|
7
7
|
const { state, context, send } = service;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../dom-query-
|
|
1
|
+
import "../../dom-query-BFuRs3l4.mjs";
|
|
2
2
|
import { n as ensureProps, t as ensure } from "../../utils-VVoZ_v29.mjs";
|
|
3
|
-
import { a as createMachine } from "../../core-
|
|
3
|
+
import { a as createMachine } from "../../core-Ci9Yu6QI.mjs";
|
|
4
4
|
//#region src/machines/async-list/async-list.connect.ts
|
|
5
5
|
function connect(service) {
|
|
6
6
|
const { state, context, send } = service;
|