@sprawlify/primitives 0.0.21 → 0.0.23
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/{core-BRMAHlpt.d.mts → core-75kSaDJc.d.mts} +1 -1
- package/dist/{core-DE3PyXL7.d.cts → core-D_pI64vx.d.cts} +1 -1
- package/dist/core.d.cts +1 -1
- package/dist/core.d.mts +1 -1
- 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-DLhTkdnW.d.mts} +5 -5
- package/dist/machines/accordion/index.cjs +2 -1
- 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 -1
- package/dist/machines/angle-slider/index.d.cts +1 -1
- package/dist/machines/angle-slider/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/checkbox/index.d.cts +1 -1
- package/dist/machines/checkbox/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.cjs +1 -1
- package/dist/machines/color-picker/index.d.cts +2 -2
- package/dist/machines/color-picker/index.d.mts +2 -2
- 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 +1 -1
- package/dist/machines/hover-card/index.d.mts +1 -1
- package/dist/machines/hover-card/index.mjs +1 -1
- 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 +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 +2 -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 +2 -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/rating-group/index.cjs +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/rating-group/index.mjs +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 +1 -1
- package/dist/machines/tooltip/index.d.mts +1 -1
- 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
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
5
5
|
import { t as LiveRegion } from "../../index-BBTkH09t.cjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "item" | "input" | "itemText" | "itemDeleteTrigger" | "itemPreview" | "clearTrigger" | "itemInput">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -5,7 +5,7 @@ import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusO
|
|
|
5
5
|
import { t as LiveRegion } from "../../index-C9ajBf1B.mjs";
|
|
6
6
|
|
|
7
7
|
//#region src/machines/tags-input/tags-input.anatomy.d.ts
|
|
8
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
8
|
+
declare const anatomy: AnatomyInstance<"root" | "label" | "control" | "item" | "input" | "itemText" | "itemDeleteTrigger" | "itemPreview" | "clearTrigger" | "itemInput">;
|
|
9
9
|
//#endregion
|
|
10
10
|
//#region src/machines/tags-input/tags-input.types.d.ts
|
|
11
11
|
interface ValueChangeDetails {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-BIy26U
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-UNyqrBDu.cjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "itemLabel" | "separator" | "area" | "itemValue" | "actionTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -3,7 +3,7 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-jyV564
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, t as CommonProperties, x as PropTypes } from "../../index-BVcPBg7R.mjs";
|
|
4
4
|
|
|
5
5
|
//#region src/machines/timer/timer.anatomy.d.ts
|
|
6
|
-
declare const anatomy: AnatomyInstance<"root" | "
|
|
6
|
+
declare const anatomy: AnatomyInstance<"root" | "control" | "item" | "itemLabel" | "separator" | "area" | "itemValue" | "actionTrigger">;
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/machines/timer/timer.types.d.ts
|
|
9
9
|
interface Time<T = number> {
|
|
@@ -175,7 +175,7 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
175
175
|
declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/machines/toast/toast.anatomy.d.ts
|
|
178
|
-
declare const anatomy: AnatomyInstance<"root" | "title" | "
|
|
178
|
+
declare const anatomy: AnatomyInstance<"root" | "title" | "actionTrigger" | "description" | "group" | "closeTrigger">;
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region src/machines/toast/toast.connect.d.ts
|
|
181
181
|
declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>>, normalize: NormalizeProps<T>): ToastApi<T, O>;
|
|
@@ -175,7 +175,7 @@ interface ToastApi<T extends PropTypes = PropTypes, O = any> {
|
|
|
175
175
|
declare function groupConnect<T extends PropTypes, O = any>(service: Service<ToastGroupSchema>, normalize: NormalizeProps<T>): ToastGroupApi<T, O>;
|
|
176
176
|
//#endregion
|
|
177
177
|
//#region src/machines/toast/toast.anatomy.d.ts
|
|
178
|
-
declare const anatomy: AnatomyInstance<"root" | "title" | "
|
|
178
|
+
declare const anatomy: AnatomyInstance<"root" | "title" | "actionTrigger" | "description" | "group" | "closeTrigger">;
|
|
179
179
|
//#endregion
|
|
180
180
|
//#region src/machines/toast/toast.connect.d.ts
|
|
181
181
|
declare function connect<T extends PropTypes, O>(service: Service<ToastSchema<O>>, normalize: NormalizeProps<T>): ToastApi<T, O>;
|
|
@@ -3,7 +3,7 @@ const require_dom_query = require('../../dom-query-CWZdWUGp.cjs');
|
|
|
3
3
|
const require_utils = require('../../utils-_6frwjgJ.cjs');
|
|
4
4
|
const require_core = require('../../core-CQFbMdTl.cjs');
|
|
5
5
|
const require_focus_visible = require('../../focus-visible-BVOZnp76.cjs');
|
|
6
|
-
const require_popper = require('../../popper-
|
|
6
|
+
const require_popper = require('../../popper-Bv3pzKqX.cjs');
|
|
7
7
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
8
8
|
|
|
9
9
|
//#region src/machines/tooltip/tooltip.anatomy.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-smWrirg1.cjs";
|
|
2
2
|
import { p as Machine, u as EventObject, y as Service } from "../../types-BIy26Uwn.cjs";
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-UNyqrBDu.cjs";
|
|
4
|
-
import { c as Placement, d as PositioningOptions } from "../../types-
|
|
4
|
+
import { c as Placement, d as PositioningOptions } from "../../types-TUsgVjZA.cjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/tooltip/tooltip.anatomy.d.ts
|
|
7
7
|
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as AnatomyInstance } from "../../create-anatomy-DHVOqZET.mjs";
|
|
2
2
|
import { p as Machine, u as EventObject, y as Service } from "../../types-jyV564Ip.mjs";
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVcPBg7R.mjs";
|
|
4
|
-
import { p as PositioningOptions, u as Placement } from "../../index-
|
|
4
|
+
import { p as PositioningOptions, u as Placement } from "../../index-BlM1bSkX.mjs";
|
|
5
5
|
|
|
6
6
|
//#region src/machines/tooltip/tooltip.anatomy.d.ts
|
|
7
7
|
declare const anatomy: AnatomyInstance<"trigger" | "content" | "arrow" | "arrowTip" | "positioner">;
|
|
@@ -3,7 +3,7 @@ import { j as getOverflowAncestors, mt as isComposingEvent, st as addDomEvent, v
|
|
|
3
3
|
import { c as createStore, u as createSplitProps } from "../../utils-hFKGi-oS.mjs";
|
|
4
4
|
import { a as createMachine, i as createGuards } from "../../core-qHH8MshY.mjs";
|
|
5
5
|
import { a as trackFocusVisible, n as isFocusVisible } from "../../focus-visible-BKLakzc7.mjs";
|
|
6
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
6
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-PO8HYerg.mjs";
|
|
7
7
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
8
8
|
|
|
9
9
|
//#region src/machines/tooltip/tooltip.anatomy.ts
|
|
@@ -5,7 +5,7 @@ const require_core = require('../../core-CQFbMdTl.cjs');
|
|
|
5
5
|
const require_interact_outside = require('../../interact-outside-C8-oFBpB.cjs');
|
|
6
6
|
const require_dismissable = require('../../dismissable-CTfKZ4OG.cjs');
|
|
7
7
|
const require_focus_trap = require('../../focus-trap-DMoa9bOi.cjs');
|
|
8
|
-
const require_popper = require('../../popper-
|
|
8
|
+
const require_popper = require('../../popper-Bv3pzKqX.cjs');
|
|
9
9
|
const require_create_props = require('../../create-props-l5q5b8Wo.cjs');
|
|
10
10
|
|
|
11
11
|
//#region src/machines/tour/tour.anatomy.ts
|
|
@@ -3,10 +3,10 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-BIy26U
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-UNyqrBDu.cjs";
|
|
4
4
|
import { i as waitForPromise, n as WaitForPromiseReturn, r as waitForElement, t as WaitForOptions } from "../../wait-for-C9QyzQj2.cjs";
|
|
5
5
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-DFiQyzeW.cjs";
|
|
6
|
-
import { c as Placement } from "../../types-
|
|
6
|
+
import { c as Placement } from "../../types-TUsgVjZA.cjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tour/tour.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"content" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"content" | "title" | "actionTrigger" | "arrow" | "description" | "closeTrigger" | "arrowTip" | "positioner" | "progressText" | "backdrop" | "spotlight">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tour/utils/rect.d.ts
|
|
12
12
|
interface Point {
|
|
@@ -3,10 +3,10 @@ import { p as Machine, u as EventObject, y as Service } from "../../types-jyV564
|
|
|
3
3
|
import { b as NormalizeProps, g as RequiredBy, r as DirectionProperty, t as CommonProperties, x as PropTypes } from "../../index-BVcPBg7R.mjs";
|
|
4
4
|
import { i as waitForPromise, n as WaitForPromiseReturn, r as waitForElement, t as WaitForOptions } from "../../wait-for-Pn6RmrHX.mjs";
|
|
5
5
|
import { c as PointerDownOutsideEvent, i as InteractOutsideHandlers, n as FocusOutsideEvent, r as InteractOutsideEvent } from "../../index-9OlOKr2i.mjs";
|
|
6
|
-
import { u as Placement } from "../../index-
|
|
6
|
+
import { u as Placement } from "../../index-BlM1bSkX.mjs";
|
|
7
7
|
|
|
8
8
|
//#region src/machines/tour/tour.anatomy.d.ts
|
|
9
|
-
declare const anatomy: AnatomyInstance<"content" | "
|
|
9
|
+
declare const anatomy: AnatomyInstance<"content" | "title" | "actionTrigger" | "arrow" | "description" | "closeTrigger" | "arrowTip" | "positioner" | "progressText" | "backdrop" | "spotlight">;
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/machines/tour/utils/rect.d.ts
|
|
12
12
|
interface Point {
|
|
@@ -5,7 +5,7 @@ import { a as createMachine, c as mergeProps, i as createGuards } from "../../co
|
|
|
5
5
|
import { t as trackInteractOutside } from "../../interact-outside-BtY3-DVp.mjs";
|
|
6
6
|
import { t as trackDismissableBranch } from "../../dismissable-C-6M-juU.mjs";
|
|
7
7
|
import { t as trapFocus } from "../../focus-trap-BG22frp5.mjs";
|
|
8
|
-
import { n as getPlacement, t as getPlacementStyles } from "../../popper-
|
|
8
|
+
import { n as getPlacement, t as getPlacementStyles } from "../../popper-PO8HYerg.mjs";
|
|
9
9
|
import { t as createProps } from "../../create-props-SRSjdUTq.mjs";
|
|
10
10
|
|
|
11
11
|
//#region src/machines/tour/tour.anatomy.ts
|
|
@@ -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" | "label" | "item" | "itemText" | "itemIndicator" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "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" | "label" | "item" | "itemText" | "itemIndicator" | "branch" | "branchContent" | "branchControl" | "branchIndentGuide" | "branchIndicator" | "branchText" | "branchTrigger" | "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>;
|