@sprawlify/primitives 0.0.27 → 0.0.29
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/collection.d.cts +2 -2
- package/dist/collection.d.mts +2 -2
- package/dist/date-utils.d.mts +1 -1
- package/dist/{focus-trap-Brjt3GUU.cjs → focus-trap-BwUy71da.cjs} +6 -5
- package/dist/{focus-trap-C_QmP_9k.mjs → focus-trap-Bw_WJq_d.mjs} +6 -5
- package/dist/focus-trap.cjs +1 -1
- package/dist/focus-trap.d.cts +2 -1
- package/dist/focus-trap.d.mts +2 -1
- package/dist/focus-trap.mjs +1 -1
- package/dist/{index-BI1GChBz.d.mts → index-BlM1bSkX.d.mts} +1 -1
- package/dist/{index-DYzqCFaj.d.mts → index-WoOkKhP-.d.mts} +5 -5
- package/dist/{list-collection-DettiQL3.d.cts → list-collection-BslnP0r-.d.cts} +1 -1
- package/dist/{list-collection-BbgocToA.d.mts → list-collection-swuCMCIS.d.mts} +1 -1
- package/dist/machines/accordion/index.d.cts +1 -1
- package/dist/machines/accordion/index.d.mts +1 -1
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/index.d.mts +1 -1
- package/dist/machines/bottom-sheet/index.cjs +1 -1
- package/dist/machines/bottom-sheet/index.mjs +1 -1
- package/dist/machines/carousel/index.d.cts +1 -1
- package/dist/machines/carousel/index.d.mts +1 -1
- package/dist/machines/clipboard/index.d.cts +1 -1
- package/dist/machines/clipboard/index.d.mts +1 -1
- package/dist/machines/collapsible/index.d.cts +1 -1
- package/dist/machines/collapsible/index.d.mts +1 -1
- package/dist/machines/color-picker/index.d.cts +1 -1
- package/dist/machines/color-picker/index.d.mts +2 -2
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +3 -3
- package/dist/machines/date-picker/index.d.cts +1 -1
- package/dist/machines/date-picker/index.d.mts +3 -3
- package/dist/machines/dialog/index.cjs +1 -1
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +1 -1
- package/dist/machines/dialog/index.mjs +1 -1
- package/dist/machines/editable/index.d.cts +1 -1
- package/dist/machines/editable/index.d.mts +1 -1
- package/dist/machines/file-upload/index.d.cts +1 -1
- package/dist/machines/file-upload/index.d.mts +1 -1
- package/dist/machines/floating-panel/index.d.cts +1 -1
- package/dist/machines/floating-panel/index.d.mts +1 -1
- package/dist/machines/hover-card/index.d.cts +1 -1
- package/dist/machines/hover-card/index.d.mts +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/listbox/index.d.cts +3 -3
- package/dist/machines/listbox/index.d.mts +3 -3
- package/dist/machines/marquee/index.d.cts +2 -2
- package/dist/machines/marquee/index.d.mts +2 -2
- package/dist/machines/menu/index.d.cts +1 -1
- package/dist/machines/menu/index.d.mts +2 -2
- package/dist/machines/navigation-menu/index.d.cts +1 -1
- package/dist/machines/navigation-menu/index.d.mts +1 -1
- package/dist/machines/number-input/index.d.cts +1 -1
- package/dist/machines/number-input/index.d.mts +1 -1
- package/dist/machines/pin-input/index.cjs +23 -2
- package/dist/machines/pin-input/index.mjs +23 -2
- package/dist/machines/popover/index.cjs +1 -1
- package/dist/machines/popover/index.d.cts +1 -1
- package/dist/machines/popover/index.d.mts +2 -2
- package/dist/machines/popover/index.mjs +1 -1
- package/dist/machines/progress/index.d.cts +1 -1
- package/dist/machines/progress/index.d.mts +1 -1
- package/dist/machines/rating-group/index.d.cts +1 -1
- package/dist/machines/rating-group/index.d.mts +1 -1
- package/dist/machines/select/index.d.cts +2 -2
- package/dist/machines/select/index.d.mts +3 -3
- package/dist/machines/signature-pad/index.d.cts +1 -1
- package/dist/machines/signature-pad/index.d.mts +1 -1
- package/dist/machines/slider/index.d.cts +1 -1
- package/dist/machines/slider/index.d.mts +1 -1
- package/dist/machines/splitter/index.d.cts +1 -1
- package/dist/machines/splitter/index.d.mts +1 -1
- package/dist/machines/steps/index.d.cts +1 -1
- package/dist/machines/steps/index.d.mts +1 -1
- package/dist/machines/switch/index.d.cts +1 -1
- package/dist/machines/switch/index.d.mts +1 -1
- package/dist/machines/tabs/index.d.cts +1 -1
- package/dist/machines/tabs/index.d.mts +1 -1
- package/dist/machines/tags-input/index.d.cts +1 -1
- package/dist/machines/tags-input/index.d.mts +1 -1
- package/dist/machines/timer/index.d.cts +1 -1
- package/dist/machines/timer/index.d.mts +1 -1
- package/dist/machines/tooltip/index.d.cts +1 -1
- package/dist/machines/tooltip/index.d.mts +2 -2
- package/dist/machines/tour/index.cjs +4 -3
- package/dist/machines/tour/index.d.cts +1 -1
- package/dist/machines/tour/index.d.mts +2 -2
- package/dist/machines/tour/index.mjs +4 -3
- package/dist/machines/tree-view/index.d.cts +1 -1
- package/dist/machines/tree-view/index.d.mts +1 -1
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/{selection-CTaapzrB.d.mts → selection-CIoBu9mp.d.mts} +1 -1
- package/dist/{selection-D3b3yV_x.d.cts → selection-DTpiPgq8.d.cts} +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { Et as nextIndex, dt as isString, ft as isEqual, i as warn, kt as prevIn
|
|
|
4
4
|
import { a as createMachine, c as mergeProps, i as createGuards } from "../../core-DVmt6PX7.mjs";
|
|
5
5
|
import { t as trackInteractOutside } from "../../interact-outside-D9gKK1XW.mjs";
|
|
6
6
|
import { t as trackDismissableBranch } from "../../dismissable-CyZwVu7n.mjs";
|
|
7
|
-
import { t as trapFocus } from "../../focus-trap-
|
|
7
|
+
import { t as trapFocus } from "../../focus-trap-Bw_WJq_d.mjs";
|
|
8
8
|
import { n as getPlacement, t as getPlacementStyles } from "../../popper-CjBC91Tz.mjs";
|
|
9
9
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
10
10
|
|
|
@@ -873,10 +873,11 @@ const machine = createMachine({
|
|
|
873
873
|
const contentEl = () => getContentEl(scope);
|
|
874
874
|
return trackDismissableBranch(contentEl, { defer: true });
|
|
875
875
|
},
|
|
876
|
-
trapFocus({ computed, scope }) {
|
|
876
|
+
trapFocus({ computed, scope, context }) {
|
|
877
877
|
if (computed("step") == null) return;
|
|
878
878
|
const contentEl = () => getContentEl(scope);
|
|
879
|
-
|
|
879
|
+
const targetEl = () => context.get("resolvedTarget");
|
|
880
|
+
return trapFocus([contentEl, targetEl], {
|
|
880
881
|
escapeDeactivates: false,
|
|
881
882
|
allowOutsideClick: true,
|
|
882
883
|
preventScroll: true,
|
|
@@ -6,7 +6,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-BWyD_KIb.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tree-view/tree-view.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "itemIndicator" | "itemText" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tree-view/tree-view.collection.d.ts
|
|
12
12
|
declare const collection: {
|
|
@@ -6,7 +6,7 @@ import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as Comm
|
|
|
6
6
|
import { n as TypeaheadState } from "../../typeahead-BX-BWYjD.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tree-view/tree-view.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "item" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "itemIndicator" | "itemText" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tree-view/tree-view.collection.d.ts
|
|
12
12
|
declare const collection: {
|
package/dist/popper.d.cts
CHANGED
|
@@ -53,7 +53,7 @@ declare function getPlacementStyles(options?: Pick<PositioningOptions, "placemen
|
|
|
53
53
|
readonly zIndex: "inherit";
|
|
54
54
|
};
|
|
55
55
|
floating: {
|
|
56
|
-
readonly position: "
|
|
56
|
+
readonly position: "absolute" | "fixed";
|
|
57
57
|
readonly isolation: "isolate";
|
|
58
58
|
readonly minWidth: "max-content" | undefined;
|
|
59
59
|
readonly width: "var(--reference-width)" | undefined;
|
package/dist/popper.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as getPlacement, c as Boundary, d as PlacementAlign, f as PlacementSide, i as getPlacementStyles, l as ComputePositionReturn, n as isValidPlacement, o as AnchorRect, p as PositioningOptions, r as GetPlacementStylesOptions, s as AutoUpdateOptions, t as getPlacementSide, u as Placement } from "./index-
|
|
1
|
+
import { a as getPlacement, c as Boundary, d as PlacementAlign, f as PlacementSide, i as getPlacementStyles, l as ComputePositionReturn, n as isValidPlacement, o as AnchorRect, p as PositioningOptions, r as GetPlacementStylesOptions, s as AutoUpdateOptions, t as getPlacementSide, u as Placement } from "./index-BlM1bSkX.mjs";
|
|
2
2
|
export { AnchorRect, AutoUpdateOptions, Boundary, ComputePositionReturn, GetPlacementStylesOptions, Placement, PlacementAlign, PlacementSide, PositioningOptions, getPlacement, getPlacementSide, getPlacementStyles, isValidPlacement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as CollectionOptions, t as CollectionItem } from "./types-Df8ZhdY-.mjs";
|
|
2
|
-
import { t as ListCollection } from "./list-collection-
|
|
2
|
+
import { t as ListCollection } from "./list-collection-swuCMCIS.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/grid-collection.d.ts
|
|
5
5
|
interface GridCollectionOptions<T> extends CollectionOptions<T> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as CollectionOptions, t as CollectionItem } from "./types-CADkcKtr.cjs";
|
|
2
|
-
import { t as ListCollection } from "./list-collection-
|
|
2
|
+
import { t as ListCollection } from "./list-collection-BslnP0r-.cjs";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/collection/grid-collection.d.ts
|
|
5
5
|
interface GridCollectionOptions<T> extends CollectionOptions<T> {
|