@sprawlify/primitives 0.0.21 → 0.0.22
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/date-utils.d.mts +1 -1
- package/dist/dom-query.d.cts +1 -1
- package/dist/dom-query.d.mts +1 -1
- package/dist/{index-DikGG00a.d.mts → index-BlM1bSkX.d.mts} +1 -0
- package/dist/{index-BTwu-8ey.d.mts → index-DYzqCFaj.d.mts} +5 -5
- 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.d.cts +1 -1
- package/dist/machines/bottom-sheet/index.d.mts +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/color-picker/index.cjs +1 -1
- 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 +1 -1
- package/dist/machines/combobox/index.cjs +1 -1
- package/dist/machines/combobox/index.d.cts +2 -2
- package/dist/machines/combobox/index.d.mts +2 -2
- package/dist/machines/combobox/index.mjs +1 -1
- package/dist/machines/date-picker/index.cjs +1 -1
- package/dist/machines/date-picker/index.d.cts +2 -2
- package/dist/machines/date-picker/index.d.mts +3 -3
- package/dist/machines/date-picker/index.mjs +1 -1
- package/dist/machines/dialog/index.d.cts +1 -1
- package/dist/machines/dialog/index.d.mts +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.cjs +1 -1
- package/dist/machines/hover-card/index.d.cts +2 -2
- package/dist/machines/hover-card/index.d.mts +2 -2
- package/dist/machines/hover-card/index.mjs +1 -1
- package/dist/machines/listbox/index.d.cts +1 -1
- package/dist/machines/listbox/index.d.mts +1 -1
- package/dist/machines/marquee/index.d.cts +3 -3
- package/dist/machines/marquee/index.d.mts +3 -3
- package/dist/machines/menu/index.cjs +1 -1
- package/dist/machines/menu/index.d.cts +2 -2
- package/dist/machines/menu/index.d.mts +2 -2
- package/dist/machines/menu/index.mjs +1 -1
- 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/password-input/index.d.cts +1 -1
- package/dist/machines/password-input/index.d.mts +1 -1
- package/dist/machines/pin-input/index.d.cts +1 -1
- package/dist/machines/pin-input/index.d.mts +1 -1
- package/dist/machines/popover/index.cjs +1 -1
- package/dist/machines/popover/index.d.cts +2 -2
- 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/radio-group/index.d.cts +1 -1
- package/dist/machines/radio-group/index.d.mts +1 -1
- package/dist/machines/scroll-area/index.d.cts +1 -1
- package/dist/machines/scroll-area/index.d.mts +1 -1
- package/dist/machines/select/index.cjs +1 -1
- package/dist/machines/select/index.d.cts +2 -2
- package/dist/machines/select/index.d.mts +2 -2
- package/dist/machines/select/index.mjs +1 -1
- 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/toast/index.d.cts +1 -1
- package/dist/machines/toast/index.d.mts +1 -1
- package/dist/machines/tooltip/index.cjs +1 -1
- package/dist/machines/tooltip/index.d.cts +2 -2
- package/dist/machines/tooltip/index.d.mts +2 -2
- package/dist/machines/tooltip/index.mjs +1 -1
- package/dist/machines/tour/index.cjs +1 -1
- package/dist/machines/tour/index.d.cts +2 -2
- package/dist/machines/tour/index.d.mts +2 -2
- package/dist/machines/tour/index.mjs +1 -1
- package/dist/machines/tree-view/index.d.cts +1 -1
- package/dist/machines/tree-view/index.d.mts +1 -1
- package/dist/{popper-CWip5FHB.cjs → popper-Bv3pzKqX.cjs} +2 -2
- package/dist/{popper-4MZcEna4.mjs → popper-PO8HYerg.mjs} +2 -2
- package/dist/popper.cjs +1 -1
- package/dist/popper.d.cts +1 -1
- package/dist/popper.d.mts +1 -1
- package/dist/popper.mjs +1 -1
- package/dist/{types-PjLoIczn.d.cts → types-TUsgVjZA.d.cts} +1 -0
- package/package.json +1 -1
|
@@ -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" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "item" | "itemIndicator" | "itemText" | "label" | "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" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"root" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "item" | "itemIndicator" | "itemText" | "label" | "nodeCheckbox" | "nodeRenameInput" | "tree">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tree-view/tree-view.collection.d.ts
|
|
12
12
|
declare const collection: {
|
|
@@ -28,7 +28,7 @@ function getDOMRect(anchorRect) {
|
|
|
28
28
|
}
|
|
29
29
|
function getAnchorElement(anchorElement, getAnchorRect) {
|
|
30
30
|
return {
|
|
31
|
-
contextElement: require_dom_query.isHTMLElement(anchorElement) ? anchorElement :
|
|
31
|
+
contextElement: require_dom_query.isHTMLElement(anchorElement) ? anchorElement : anchorElement?.contextElement,
|
|
32
32
|
getBoundingClientRect: () => {
|
|
33
33
|
const anchor = anchorElement;
|
|
34
34
|
const anchorRect = getAnchorRect?.(anchor);
|
|
@@ -224,7 +224,7 @@ function getAutoUpdateOptions(opts) {
|
|
|
224
224
|
return opts;
|
|
225
225
|
}
|
|
226
226
|
function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
|
|
227
|
-
const reference = getAnchorElement(referenceOrVirtual, opts.getAnchorRect);
|
|
227
|
+
const reference = getAnchorElement(opts.getAnchorElement?.() ?? referenceOrVirtual, opts.getAnchorRect);
|
|
228
228
|
if (!floating || !reference) return;
|
|
229
229
|
const options = Object.assign({}, defaultOptions, opts);
|
|
230
230
|
const arrowEl = floating.querySelector("[data-part=arrow]");
|
|
@@ -27,7 +27,7 @@ function getDOMRect(anchorRect) {
|
|
|
27
27
|
}
|
|
28
28
|
function getAnchorElement(anchorElement, getAnchorRect) {
|
|
29
29
|
return {
|
|
30
|
-
contextElement: isHTMLElement(anchorElement) ? anchorElement :
|
|
30
|
+
contextElement: isHTMLElement(anchorElement) ? anchorElement : anchorElement?.contextElement,
|
|
31
31
|
getBoundingClientRect: () => {
|
|
32
32
|
const anchor = anchorElement;
|
|
33
33
|
const anchorRect = getAnchorRect?.(anchor);
|
|
@@ -223,7 +223,7 @@ function getAutoUpdateOptions(opts) {
|
|
|
223
223
|
return opts;
|
|
224
224
|
}
|
|
225
225
|
function getPlacementImpl(referenceOrVirtual, floating, opts = {}) {
|
|
226
|
-
const reference = getAnchorElement(referenceOrVirtual, opts.getAnchorRect);
|
|
226
|
+
const reference = getAnchorElement(opts.getAnchorElement?.() ?? referenceOrVirtual, opts.getAnchorRect);
|
|
227
227
|
if (!floating || !reference) return;
|
|
228
228
|
const options = Object.assign({}, defaultOptions, opts);
|
|
229
229
|
const arrowEl = floating.querySelector("[data-part=arrow]");
|
package/dist/popper.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
require('./dom-query-CWZdWUGp.cjs');
|
|
2
2
|
require('./utils-_6frwjgJ.cjs');
|
|
3
|
-
const require_popper = require('./popper-
|
|
3
|
+
const require_popper = require('./popper-Bv3pzKqX.cjs');
|
|
4
4
|
|
|
5
5
|
exports.getPlacement = require_popper.getPlacement;
|
|
6
6
|
exports.getPlacementSide = require_popper.getPlacementSide;
|
package/dist/popper.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as MaybeElement, c as Placement, d as PositioningOptions, i as ComputePositionReturn, l as PlacementAlign, n as AutoUpdateOptions, o as MaybeFn, r as Boundary, s as MaybeRectElement, t as AnchorRect, u as PlacementSide } from "./types-
|
|
1
|
+
import { a as MaybeElement, c as Placement, d as PositioningOptions, i as ComputePositionReturn, l as PlacementAlign, n as AutoUpdateOptions, o as MaybeFn, r as Boundary, s as MaybeRectElement, t as AnchorRect, u as PlacementSide } from "./types-TUsgVjZA.cjs";
|
|
2
2
|
import { Placement as Placement$1 } from "@floating-ui/dom";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/popper/get-placement.d.ts
|
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 };
|
package/dist/popper.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./dom-query-Bwyyt0Vp.mjs";
|
|
2
2
|
import "./utils-hFKGi-oS.mjs";
|
|
3
|
-
import { i as isValidPlacement, n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "./popper-
|
|
3
|
+
import { i as isValidPlacement, n as getPlacement, r as getPlacementSide, t as getPlacementStyles } from "./popper-PO8HYerg.mjs";
|
|
4
4
|
|
|
5
5
|
export { getPlacement, getPlacementSide, getPlacementStyles, isValidPlacement };
|
|
@@ -35,6 +35,7 @@ interface PositioningOptions {
|
|
|
35
35
|
onPositioned?: ((data: {
|
|
36
36
|
placed: boolean;
|
|
37
37
|
}) => void) | undefined;
|
|
38
|
+
getAnchorElement?: (() => HTMLElement | VirtualElement | null) | undefined;
|
|
38
39
|
getAnchorRect?: ((element: HTMLElement | VirtualElement | null) => AnchorRect | null) | undefined;
|
|
39
40
|
updatePosition?: ((data: {
|
|
40
41
|
updatePosition: () => Promise<void>;
|