@inspirare/design-system 0.0.20 → 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/components/ui/accordion.js +44 -0
- package/dist/components/ui/alert-dialog.js +61 -0
- package/dist/{src/components → components}/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +6 -0
- package/dist/components/ui/avatar.js +29 -0
- package/dist/{src/components → components}/ui/badge.js +6 -6
- package/dist/components/ui/breadcrumb.js +60 -0
- package/dist/components/ui/button-group.js +38 -0
- package/dist/{src/components → components}/ui/button.js +6 -6
- package/dist/{src/components → components}/ui/calendar.js +16 -16
- package/dist/{src/components → components}/ui/carousel.js +29 -29
- package/dist/{src/components → components}/ui/checkbox.js +10 -10
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/{src/components → components}/ui/combobox.js +10 -10
- package/dist/{src/components → components}/ui/command.js +17 -17
- package/dist/{src/components → components}/ui/context-menu.js +37 -37
- package/dist/{src/components → components}/ui/dialog.js +36 -36
- package/dist/{src/components → components}/ui/dropdown-menu.js +46 -46
- package/dist/{src/components → components}/ui/empty.js +21 -21
- package/dist/{src/components → components}/ui/field.js +27 -27
- package/dist/components/ui/form.js +77 -0
- package/dist/{src/components → components}/ui/hover-card.js +14 -14
- package/dist/{src/components → components}/ui/input-group.js +18 -18
- package/dist/{src/components → components}/ui/input-otp.js +13 -13
- package/dist/components/ui/item.js +116 -0
- package/dist/{src/components → components}/ui/label.js +3 -3
- package/dist/components/ui/menubar.js +105 -0
- package/dist/components/ui/navigation-menu.js +58 -0
- package/dist/{src/components → components}/ui/pagination.js +18 -18
- package/dist/components/ui/popover.js +36 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/{src/components → components}/ui/radio-group.js +14 -14
- package/dist/{src/components → components}/ui/resizable.js +7 -7
- package/dist/{src/components → components}/ui/select.js +44 -44
- package/dist/{src/components → components}/ui/separator.js +3 -3
- package/dist/{src/components → components}/ui/sheet.js +35 -35
- package/dist/{src/components → components}/ui/sidebar.js +124 -124
- package/dist/{src/components → components}/ui/slider.js +20 -20
- package/dist/{src/components → components}/ui/spinner.js +3 -3
- package/dist/{src/components → components}/ui/switch.js +9 -9
- package/dist/{src/components → components}/ui/tabs.js +19 -19
- package/dist/{src/components → components}/ui/theme-toggle.js +10 -10
- package/dist/components/ui/toggle-group.js +44 -0
- package/dist/{src/components → components}/ui/toggle.js +7 -7
- package/dist/components/ui/tooltip.js +37 -0
- package/dist/index.css +1 -1
- package/package.json +1 -1
- package/src/index.css +37 -16
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -359
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -328
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -212
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -106
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +0 -195
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -119
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +0 -20
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +0 -73
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -158
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -97
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +0 -62
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -240
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -108
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -146
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -161
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +0 -563
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +0 -312
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -553
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +0 -199
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +0 -203
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +0 -85
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +0 -41
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -249
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -154
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +0 -727
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +0 -23
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +0 -404
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.5_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +0 -138
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +0 -120
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -351
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -45
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -5
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +0 -29
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -46
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -70
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -4
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -14
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -13
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -28
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -19
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -22
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +0 -16
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +0 -69
- package/dist/src/components/ui/accordion.js +0 -44
- package/dist/src/components/ui/alert-dialog.js +0 -61
- package/dist/src/components/ui/aspect-ratio.js +0 -6
- package/dist/src/components/ui/avatar.js +0 -29
- package/dist/src/components/ui/breadcrumb.js +0 -60
- package/dist/src/components/ui/button-group.js +0 -38
- package/dist/src/components/ui/collapsible.js +0 -26
- package/dist/src/components/ui/form.js +0 -76
- package/dist/src/components/ui/item.js +0 -116
- package/dist/src/components/ui/menubar.js +0 -105
- package/dist/src/components/ui/navigation-menu.js +0 -58
- package/dist/src/components/ui/popover.js +0 -36
- package/dist/src/components/ui/progress.js +0 -20
- package/dist/src/components/ui/toggle-group.js +0 -44
- package/dist/src/components/ui/tooltip.js +0 -37
- /package/dist/{src/components → components}/ui/accessibility-improvements.js +0 -0
- /package/dist/{src/components → components}/ui/card.js +0 -0
- /package/dist/{src/components → components}/ui/chart.js +0 -0
- /package/dist/{src/components → components}/ui/color-picker.js +0 -0
- /package/dist/{src/components → components}/ui/drawer.js +0 -0
- /package/dist/{src/components → components}/ui/input.js +0 -0
- /package/dist/{src/components → components}/ui/kbd.js +0 -0
- /package/dist/{src/components → components}/ui/scroll-area.js +0 -0
- /package/dist/{src/components → components}/ui/skeleton.js +0 -0
- /package/dist/{src/components → components}/ui/sonner.js +0 -0
- /package/dist/{src/components → components}/ui/table.js +0 -0
- /package/dist/{src/components → components}/ui/textarea.js +0 -0
- /package/dist/{src/hooks → hooks}/use-mobile.js +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/lib → lib}/utils.js +0 -0
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
import { createCoords as e, floor as t, max as n, min as r, rectToClientRect as i, round as a } from "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js";
|
|
2
|
-
import { arrow as o, computePosition as s, flip as c, hide as l, limitShift as u, offset as d, shift as f, size as p } from "../../../../../@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js";
|
|
3
|
-
import { getComputedStyle as m, getContainingBlock as h, getDocumentElement as g, getFrameElement as _, getNodeName as v, getNodeScroll as y, getOverflowAncestors as b, getParentNode as x, getWindow as S, isContainingBlock as C, isElement as w, isHTMLElement as T, isLastTraversableNode as E, isOverflowElement as D, isTableElement as ee, isTopLayer as O, isWebKit as k } from "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
|
4
|
-
//#region node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
5
|
-
function A(e) {
|
|
6
|
-
let t = m(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = T(e), o = i ? e.offsetWidth : n, s = i ? e.offsetHeight : r, c = a(n) !== o || a(r) !== s;
|
|
7
|
-
return c && (n = o, r = s), {
|
|
8
|
-
width: n,
|
|
9
|
-
height: r,
|
|
10
|
-
$: c
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
function j(e) {
|
|
14
|
-
return w(e) ? e : e.contextElement;
|
|
15
|
-
}
|
|
16
|
-
function M(t) {
|
|
17
|
-
let n = j(t);
|
|
18
|
-
if (!T(n)) return e(1);
|
|
19
|
-
let r = n.getBoundingClientRect(), { width: i, height: o, $: s } = A(n), c = (s ? a(r.width) : r.width) / i, l = (s ? a(r.height) : r.height) / o;
|
|
20
|
-
return (!c || !Number.isFinite(c)) && (c = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
21
|
-
x: c,
|
|
22
|
-
y: l
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
var N = /*#__PURE__*/ e(0);
|
|
26
|
-
function P(e) {
|
|
27
|
-
let t = S(e);
|
|
28
|
-
return !k() || !t.visualViewport ? N : {
|
|
29
|
-
x: t.visualViewport.offsetLeft,
|
|
30
|
-
y: t.visualViewport.offsetTop
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function F(e, t, n) {
|
|
34
|
-
return t === void 0 && (t = !1), !n || t && n !== S(e) ? !1 : t;
|
|
35
|
-
}
|
|
36
|
-
function I(t, n, r, a) {
|
|
37
|
-
n === void 0 && (n = !1), r === void 0 && (r = !1);
|
|
38
|
-
let o = t.getBoundingClientRect(), s = j(t), c = e(1);
|
|
39
|
-
n && (a ? w(a) && (c = M(a)) : c = M(t));
|
|
40
|
-
let l = F(s, r, a) ? P(s) : e(0), u = (o.left + l.x) / c.x, d = (o.top + l.y) / c.y, f = o.width / c.x, p = o.height / c.y;
|
|
41
|
-
if (s) {
|
|
42
|
-
let e = S(s), t = a && w(a) ? S(a) : a, n = e, r = _(n);
|
|
43
|
-
for (; r && a && t !== n;) {
|
|
44
|
-
let e = M(r), t = r.getBoundingClientRect(), i = m(r), a = t.left + (r.clientLeft + parseFloat(i.paddingLeft)) * e.x, o = t.top + (r.clientTop + parseFloat(i.paddingTop)) * e.y;
|
|
45
|
-
u *= e.x, d *= e.y, f *= e.x, p *= e.y, u += a, d += o, n = S(r), r = _(n);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
return i({
|
|
49
|
-
width: f,
|
|
50
|
-
height: p,
|
|
51
|
-
x: u,
|
|
52
|
-
y: d
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
function L(e, t) {
|
|
56
|
-
let n = y(e).scrollLeft;
|
|
57
|
-
return t ? t.left + n : I(g(e)).left + n;
|
|
58
|
-
}
|
|
59
|
-
function R(e, t) {
|
|
60
|
-
let n = e.getBoundingClientRect();
|
|
61
|
-
return {
|
|
62
|
-
x: n.left + t.scrollLeft - L(e, n),
|
|
63
|
-
y: n.top + t.scrollTop
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function te(t) {
|
|
67
|
-
let { elements: n, rect: r, offsetParent: i, strategy: a } = t, o = a === "fixed", s = g(i), c = n ? O(n.floating) : !1;
|
|
68
|
-
if (i === s || c && o) return r;
|
|
69
|
-
let l = {
|
|
70
|
-
scrollLeft: 0,
|
|
71
|
-
scrollTop: 0
|
|
72
|
-
}, u = e(1), d = e(0), f = T(i);
|
|
73
|
-
if ((f || !f && !o) && ((v(i) !== "body" || D(s)) && (l = y(i)), f)) {
|
|
74
|
-
let e = I(i);
|
|
75
|
-
u = M(i), d.x = e.x + i.clientLeft, d.y = e.y + i.clientTop;
|
|
76
|
-
}
|
|
77
|
-
let p = s && !f && !o ? R(s, l) : e(0);
|
|
78
|
-
return {
|
|
79
|
-
width: r.width * u.x,
|
|
80
|
-
height: r.height * u.y,
|
|
81
|
-
x: r.x * u.x - l.scrollLeft * u.x + d.x + p.x,
|
|
82
|
-
y: r.y * u.y - l.scrollTop * u.y + d.y + p.y
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function z(e) {
|
|
86
|
-
return Array.from(e.getClientRects());
|
|
87
|
-
}
|
|
88
|
-
function B(e) {
|
|
89
|
-
let t = g(e), r = y(e), i = e.ownerDocument.body, a = n(t.scrollWidth, t.clientWidth, i.scrollWidth, i.clientWidth), o = n(t.scrollHeight, t.clientHeight, i.scrollHeight, i.clientHeight), s = -r.scrollLeft + L(e), c = -r.scrollTop;
|
|
90
|
-
return m(i).direction === "rtl" && (s += n(t.clientWidth, i.clientWidth) - a), {
|
|
91
|
-
width: a,
|
|
92
|
-
height: o,
|
|
93
|
-
x: s,
|
|
94
|
-
y: c
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
var V = 25;
|
|
98
|
-
function ne(e, t) {
|
|
99
|
-
let n = S(e), r = g(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
100
|
-
if (i) {
|
|
101
|
-
a = i.width, o = i.height;
|
|
102
|
-
let e = k();
|
|
103
|
-
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
104
|
-
}
|
|
105
|
-
let l = L(r);
|
|
106
|
-
if (l <= 0) {
|
|
107
|
-
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
108
|
-
o <= V && (a -= o);
|
|
109
|
-
} else l <= V && (a += l);
|
|
110
|
-
return {
|
|
111
|
-
width: a,
|
|
112
|
-
height: o,
|
|
113
|
-
x: s,
|
|
114
|
-
y: c
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
function re(t, n) {
|
|
118
|
-
let r = I(t, !0, n === "fixed"), i = r.top + t.clientTop, a = r.left + t.clientLeft, o = T(t) ? M(t) : e(1);
|
|
119
|
-
return {
|
|
120
|
-
width: t.clientWidth * o.x,
|
|
121
|
-
height: t.clientHeight * o.y,
|
|
122
|
-
x: a * o.x,
|
|
123
|
-
y: i * o.y
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function H(e, t, n) {
|
|
127
|
-
let r;
|
|
128
|
-
if (t === "viewport") r = ne(e, n);
|
|
129
|
-
else if (t === "document") r = B(g(e));
|
|
130
|
-
else if (w(t)) r = re(t, n);
|
|
131
|
-
else {
|
|
132
|
-
let n = P(e);
|
|
133
|
-
r = {
|
|
134
|
-
x: t.x - n.x,
|
|
135
|
-
y: t.y - n.y,
|
|
136
|
-
width: t.width,
|
|
137
|
-
height: t.height
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
return i(r);
|
|
141
|
-
}
|
|
142
|
-
function U(e, t) {
|
|
143
|
-
let n = x(e);
|
|
144
|
-
return n === t || !w(n) || E(n) ? !1 : m(n).position === "fixed" || U(n, t);
|
|
145
|
-
}
|
|
146
|
-
function W(e, t) {
|
|
147
|
-
let n = t.get(e);
|
|
148
|
-
if (n) return n;
|
|
149
|
-
let r = b(e, [], !1).filter((e) => w(e) && v(e) !== "body"), i = null, a = m(e).position === "fixed", o = a ? x(e) : e;
|
|
150
|
-
for (; w(o) && !E(o);) {
|
|
151
|
-
let t = m(o), n = C(o);
|
|
152
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || D(o) && !n && U(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = x(o);
|
|
153
|
-
}
|
|
154
|
-
return t.set(e, r), r;
|
|
155
|
-
}
|
|
156
|
-
function G(e) {
|
|
157
|
-
let { element: t, boundary: i, rootBoundary: a, strategy: o } = e, s = [...i === "clippingAncestors" ? O(t) ? [] : W(t, this._c) : [].concat(i), a], c = H(t, s[0], o), l = c.top, u = c.right, d = c.bottom, f = c.left;
|
|
158
|
-
for (let e = 1; e < s.length; e++) {
|
|
159
|
-
let i = H(t, s[e], o);
|
|
160
|
-
l = n(i.top, l), u = r(i.right, u), d = r(i.bottom, d), f = n(i.left, f);
|
|
161
|
-
}
|
|
162
|
-
return {
|
|
163
|
-
width: u - f,
|
|
164
|
-
height: d - l,
|
|
165
|
-
x: f,
|
|
166
|
-
y: l
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
function K(e) {
|
|
170
|
-
let { width: t, height: n } = A(e);
|
|
171
|
-
return {
|
|
172
|
-
width: t,
|
|
173
|
-
height: n
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
function q(t, n, r) {
|
|
177
|
-
let i = T(n), a = g(n), o = r === "fixed", s = I(t, !0, o, n), c = {
|
|
178
|
-
scrollLeft: 0,
|
|
179
|
-
scrollTop: 0
|
|
180
|
-
}, l = e(0);
|
|
181
|
-
function u() {
|
|
182
|
-
l.x = L(a);
|
|
183
|
-
}
|
|
184
|
-
if (i || !i && !o) if ((v(n) !== "body" || D(a)) && (c = y(n)), i) {
|
|
185
|
-
let e = I(n, !0, o, n);
|
|
186
|
-
l.x = e.x + n.clientLeft, l.y = e.y + n.clientTop;
|
|
187
|
-
} else a && u();
|
|
188
|
-
o && !i && a && u();
|
|
189
|
-
let d = a && !i && !o ? R(a, c) : e(0);
|
|
190
|
-
return {
|
|
191
|
-
x: s.left + c.scrollLeft - l.x - d.x,
|
|
192
|
-
y: s.top + c.scrollTop - l.y - d.y,
|
|
193
|
-
width: s.width,
|
|
194
|
-
height: s.height
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
|
-
function J(e) {
|
|
198
|
-
return m(e).position === "static";
|
|
199
|
-
}
|
|
200
|
-
function Y(e, t) {
|
|
201
|
-
if (!T(e) || m(e).position === "fixed") return null;
|
|
202
|
-
if (t) return t(e);
|
|
203
|
-
let n = e.offsetParent;
|
|
204
|
-
return g(e) === n && (n = n.ownerDocument.body), n;
|
|
205
|
-
}
|
|
206
|
-
function X(e, t) {
|
|
207
|
-
let n = S(e);
|
|
208
|
-
if (O(e)) return n;
|
|
209
|
-
if (!T(e)) {
|
|
210
|
-
let t = x(e);
|
|
211
|
-
for (; t && !E(t);) {
|
|
212
|
-
if (w(t) && !J(t)) return t;
|
|
213
|
-
t = x(t);
|
|
214
|
-
}
|
|
215
|
-
return n;
|
|
216
|
-
}
|
|
217
|
-
let r = Y(e, t);
|
|
218
|
-
for (; r && ee(r) && J(r);) r = Y(r, t);
|
|
219
|
-
return r && E(r) && J(r) && !C(r) ? n : r || h(e) || n;
|
|
220
|
-
}
|
|
221
|
-
var ie = async function(e) {
|
|
222
|
-
let t = this.getOffsetParent || X, n = this.getDimensions, r = await n(e.floating);
|
|
223
|
-
return {
|
|
224
|
-
reference: q(e.reference, await t(e.floating), e.strategy),
|
|
225
|
-
floating: {
|
|
226
|
-
x: 0,
|
|
227
|
-
y: 0,
|
|
228
|
-
width: r.width,
|
|
229
|
-
height: r.height
|
|
230
|
-
}
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
|
-
function ae(e) {
|
|
234
|
-
return m(e).direction === "rtl";
|
|
235
|
-
}
|
|
236
|
-
var Z = {
|
|
237
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: te,
|
|
238
|
-
getDocumentElement: g,
|
|
239
|
-
getClippingRect: G,
|
|
240
|
-
getOffsetParent: X,
|
|
241
|
-
getElementRects: ie,
|
|
242
|
-
getClientRects: z,
|
|
243
|
-
getDimensions: K,
|
|
244
|
-
getScale: M,
|
|
245
|
-
isElement: w,
|
|
246
|
-
isRTL: ae
|
|
247
|
-
};
|
|
248
|
-
function Q(e, t) {
|
|
249
|
-
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
250
|
-
}
|
|
251
|
-
function oe(e, i) {
|
|
252
|
-
let a = null, o, s = g(e);
|
|
253
|
-
function c() {
|
|
254
|
-
var e;
|
|
255
|
-
clearTimeout(o), (e = a) == null || e.disconnect(), a = null;
|
|
256
|
-
}
|
|
257
|
-
function l(u, d) {
|
|
258
|
-
u === void 0 && (u = !1), d === void 0 && (d = 1), c();
|
|
259
|
-
let f = e.getBoundingClientRect(), { left: p, top: m, width: h, height: g } = f;
|
|
260
|
-
if (u || i(), !h || !g) return;
|
|
261
|
-
let _ = t(m), v = t(s.clientWidth - (p + h)), y = t(s.clientHeight - (m + g)), b = t(p), x = {
|
|
262
|
-
rootMargin: -_ + "px " + -v + "px " + -y + "px " + -b + "px",
|
|
263
|
-
threshold: n(0, r(1, d)) || 1
|
|
264
|
-
}, S = !0;
|
|
265
|
-
function C(t) {
|
|
266
|
-
let n = t[0].intersectionRatio;
|
|
267
|
-
if (n !== d) {
|
|
268
|
-
if (!S) return l();
|
|
269
|
-
n ? l(!1, n) : o = setTimeout(() => {
|
|
270
|
-
l(!1, 1e-7);
|
|
271
|
-
}, 1e3);
|
|
272
|
-
}
|
|
273
|
-
n === 1 && !Q(f, e.getBoundingClientRect()) && l(), S = !1;
|
|
274
|
-
}
|
|
275
|
-
try {
|
|
276
|
-
a = new IntersectionObserver(C, {
|
|
277
|
-
...x,
|
|
278
|
-
root: s.ownerDocument
|
|
279
|
-
});
|
|
280
|
-
} catch {
|
|
281
|
-
a = new IntersectionObserver(C, x);
|
|
282
|
-
}
|
|
283
|
-
a.observe(e);
|
|
284
|
-
}
|
|
285
|
-
return l(!0), c;
|
|
286
|
-
}
|
|
287
|
-
function se(e, t, n, r) {
|
|
288
|
-
r === void 0 && (r = {});
|
|
289
|
-
let { ancestorScroll: i = !0, ancestorResize: a = !0, elementResize: o = typeof ResizeObserver == "function", layoutShift: s = typeof IntersectionObserver == "function", animationFrame: c = !1 } = r, l = j(e), u = i || a ? [...l ? b(l) : [], ...t ? b(t) : []] : [];
|
|
290
|
-
u.forEach((e) => {
|
|
291
|
-
i && e.addEventListener("scroll", n, { passive: !0 }), a && e.addEventListener("resize", n);
|
|
292
|
-
});
|
|
293
|
-
let d = l && s ? oe(l, n) : null, f = -1, p = null;
|
|
294
|
-
o && (p = new ResizeObserver((e) => {
|
|
295
|
-
let [r] = e;
|
|
296
|
-
r && r.target === l && p && t && (p.unobserve(t), cancelAnimationFrame(f), f = requestAnimationFrame(() => {
|
|
297
|
-
var e;
|
|
298
|
-
(e = p) == null || e.observe(t);
|
|
299
|
-
})), n();
|
|
300
|
-
}), l && !c && p.observe(l), t && p.observe(t));
|
|
301
|
-
let m, h = c ? I(e) : null;
|
|
302
|
-
c && g();
|
|
303
|
-
function g() {
|
|
304
|
-
let t = I(e);
|
|
305
|
-
h && !Q(h, t) && n(), h = t, m = requestAnimationFrame(g);
|
|
306
|
-
}
|
|
307
|
-
return n(), () => {
|
|
308
|
-
var e;
|
|
309
|
-
u.forEach((e) => {
|
|
310
|
-
i && e.removeEventListener("scroll", n), a && e.removeEventListener("resize", n);
|
|
311
|
-
}), d?.(), (e = p) == null || e.disconnect(), p = null, c && cancelAnimationFrame(m);
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
var ce = d, le = f, $ = c, ue = p, de = l, fe = o, pe = u, me = (e, t, n) => {
|
|
315
|
-
let r = /* @__PURE__ */ new Map(), i = {
|
|
316
|
-
platform: Z,
|
|
317
|
-
...n
|
|
318
|
-
}, a = {
|
|
319
|
-
...i.platform,
|
|
320
|
-
_c: r
|
|
321
|
-
};
|
|
322
|
-
return s(e, t, {
|
|
323
|
-
...i,
|
|
324
|
-
platform: a
|
|
325
|
-
});
|
|
326
|
-
};
|
|
327
|
-
//#endregion
|
|
328
|
-
export { fe as arrow, se as autoUpdate, me as computePosition, $ as flip, de as hide, pe as limitShift, ce as offset, Z as platform, le as shift, ue as size };
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import "../../../../../@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js";
|
|
2
|
-
import { arrow as e, computePosition as t, flip as n, hide as r, limitShift as i, offset as a, shift as o, size as s } from "../../../../../@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
3
|
-
import * as c from "react";
|
|
4
|
-
import { useLayoutEffect as l } from "react";
|
|
5
|
-
import * as u from "react-dom";
|
|
6
|
-
//#region node_modules/.pnpm/@floating-ui+react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
7
|
-
var d = typeof document < "u" ? l : function() {};
|
|
8
|
-
function f(e, t) {
|
|
9
|
-
if (e === t) return !0;
|
|
10
|
-
if (typeof e != typeof t) return !1;
|
|
11
|
-
if (typeof e == "function" && e.toString() === t.toString()) return !0;
|
|
12
|
-
let n, r, i;
|
|
13
|
-
if (e && t && typeof e == "object") {
|
|
14
|
-
if (Array.isArray(e)) {
|
|
15
|
-
if (n = e.length, n !== t.length) return !1;
|
|
16
|
-
for (r = n; r-- !== 0;) if (!f(e[r], t[r])) return !1;
|
|
17
|
-
return !0;
|
|
18
|
-
}
|
|
19
|
-
if (i = Object.keys(e), n = i.length, n !== Object.keys(t).length) return !1;
|
|
20
|
-
for (r = n; r-- !== 0;) if (!{}.hasOwnProperty.call(t, i[r])) return !1;
|
|
21
|
-
for (r = n; r-- !== 0;) {
|
|
22
|
-
let n = i[r];
|
|
23
|
-
if (!(n === "_owner" && e.$$typeof) && !f(e[n], t[n])) return !1;
|
|
24
|
-
}
|
|
25
|
-
return !0;
|
|
26
|
-
}
|
|
27
|
-
return e !== e && t !== t;
|
|
28
|
-
}
|
|
29
|
-
function p(e) {
|
|
30
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
31
|
-
}
|
|
32
|
-
function m(e, t) {
|
|
33
|
-
let n = p(e);
|
|
34
|
-
return Math.round(t * n) / n;
|
|
35
|
-
}
|
|
36
|
-
function h(e) {
|
|
37
|
-
let t = c.useRef(e);
|
|
38
|
-
return d(() => {
|
|
39
|
-
t.current = e;
|
|
40
|
-
}), t;
|
|
41
|
-
}
|
|
42
|
-
function g(e) {
|
|
43
|
-
e === void 0 && (e = {});
|
|
44
|
-
let { placement: n = "bottom", strategy: r = "absolute", middleware: i = [], platform: a, elements: { reference: o, floating: s } = {}, transform: l = !0, whileElementsMounted: g, open: _ } = e, [v, y] = c.useState({
|
|
45
|
-
x: 0,
|
|
46
|
-
y: 0,
|
|
47
|
-
strategy: r,
|
|
48
|
-
placement: n,
|
|
49
|
-
middlewareData: {},
|
|
50
|
-
isPositioned: !1
|
|
51
|
-
}), [b, x] = c.useState(i);
|
|
52
|
-
f(b, i) || x(i);
|
|
53
|
-
let [S, C] = c.useState(null), [w, T] = c.useState(null), E = c.useCallback((e) => {
|
|
54
|
-
e !== A.current && (A.current = e, C(e));
|
|
55
|
-
}, []), D = c.useCallback((e) => {
|
|
56
|
-
e !== j.current && (j.current = e, T(e));
|
|
57
|
-
}, []), O = o || S, k = s || w, A = c.useRef(null), j = c.useRef(null), M = c.useRef(v), N = g != null, P = h(g), F = h(a), I = h(_), L = c.useCallback(() => {
|
|
58
|
-
if (!A.current || !j.current) return;
|
|
59
|
-
let e = {
|
|
60
|
-
placement: n,
|
|
61
|
-
strategy: r,
|
|
62
|
-
middleware: b
|
|
63
|
-
};
|
|
64
|
-
F.current && (e.platform = F.current), t(A.current, j.current, e).then((e) => {
|
|
65
|
-
let t = {
|
|
66
|
-
...e,
|
|
67
|
-
isPositioned: I.current !== !1
|
|
68
|
-
};
|
|
69
|
-
R.current && !f(M.current, t) && (M.current = t, u.flushSync(() => {
|
|
70
|
-
y(t);
|
|
71
|
-
}));
|
|
72
|
-
});
|
|
73
|
-
}, [
|
|
74
|
-
b,
|
|
75
|
-
n,
|
|
76
|
-
r,
|
|
77
|
-
F,
|
|
78
|
-
I
|
|
79
|
-
]);
|
|
80
|
-
d(() => {
|
|
81
|
-
_ === !1 && M.current.isPositioned && (M.current.isPositioned = !1, y((e) => ({
|
|
82
|
-
...e,
|
|
83
|
-
isPositioned: !1
|
|
84
|
-
})));
|
|
85
|
-
}, [_]);
|
|
86
|
-
let R = c.useRef(!1);
|
|
87
|
-
d(() => (R.current = !0, () => {
|
|
88
|
-
R.current = !1;
|
|
89
|
-
}), []), d(() => {
|
|
90
|
-
if (O && (A.current = O), k && (j.current = k), O && k) {
|
|
91
|
-
if (P.current) return P.current(O, k, L);
|
|
92
|
-
L();
|
|
93
|
-
}
|
|
94
|
-
}, [
|
|
95
|
-
O,
|
|
96
|
-
k,
|
|
97
|
-
L,
|
|
98
|
-
P,
|
|
99
|
-
N
|
|
100
|
-
]);
|
|
101
|
-
let z = c.useMemo(() => ({
|
|
102
|
-
reference: A,
|
|
103
|
-
floating: j,
|
|
104
|
-
setReference: E,
|
|
105
|
-
setFloating: D
|
|
106
|
-
}), [E, D]), B = c.useMemo(() => ({
|
|
107
|
-
reference: O,
|
|
108
|
-
floating: k
|
|
109
|
-
}), [O, k]), V = c.useMemo(() => {
|
|
110
|
-
let e = {
|
|
111
|
-
position: r,
|
|
112
|
-
left: 0,
|
|
113
|
-
top: 0
|
|
114
|
-
};
|
|
115
|
-
if (!B.floating) return e;
|
|
116
|
-
let t = m(B.floating, v.x), n = m(B.floating, v.y);
|
|
117
|
-
return l ? {
|
|
118
|
-
...e,
|
|
119
|
-
transform: "translate(" + t + "px, " + n + "px)",
|
|
120
|
-
...p(B.floating) >= 1.5 && { willChange: "transform" }
|
|
121
|
-
} : {
|
|
122
|
-
position: r,
|
|
123
|
-
left: t,
|
|
124
|
-
top: n
|
|
125
|
-
};
|
|
126
|
-
}, [
|
|
127
|
-
r,
|
|
128
|
-
l,
|
|
129
|
-
B.floating,
|
|
130
|
-
v.x,
|
|
131
|
-
v.y
|
|
132
|
-
]);
|
|
133
|
-
return c.useMemo(() => ({
|
|
134
|
-
...v,
|
|
135
|
-
update: L,
|
|
136
|
-
refs: z,
|
|
137
|
-
elements: B,
|
|
138
|
-
floatingStyles: V
|
|
139
|
-
}), [
|
|
140
|
-
v,
|
|
141
|
-
L,
|
|
142
|
-
z,
|
|
143
|
-
B,
|
|
144
|
-
V
|
|
145
|
-
]);
|
|
146
|
-
}
|
|
147
|
-
var _ = (t) => {
|
|
148
|
-
function n(e) {
|
|
149
|
-
return {}.hasOwnProperty.call(e, "current");
|
|
150
|
-
}
|
|
151
|
-
return {
|
|
152
|
-
name: "arrow",
|
|
153
|
-
options: t,
|
|
154
|
-
fn(r) {
|
|
155
|
-
let { element: i, padding: a } = typeof t == "function" ? t(r) : t;
|
|
156
|
-
return i && n(i) ? i.current == null ? {} : e({
|
|
157
|
-
element: i.current,
|
|
158
|
-
padding: a
|
|
159
|
-
}).fn(r) : i ? e({
|
|
160
|
-
element: i,
|
|
161
|
-
padding: a
|
|
162
|
-
}).fn(r) : {};
|
|
163
|
-
}
|
|
164
|
-
};
|
|
165
|
-
}, v = (e, t) => {
|
|
166
|
-
let n = a(e);
|
|
167
|
-
return {
|
|
168
|
-
name: n.name,
|
|
169
|
-
fn: n.fn,
|
|
170
|
-
options: [e, t]
|
|
171
|
-
};
|
|
172
|
-
}, y = (e, t) => {
|
|
173
|
-
let n = o(e);
|
|
174
|
-
return {
|
|
175
|
-
name: n.name,
|
|
176
|
-
fn: n.fn,
|
|
177
|
-
options: [e, t]
|
|
178
|
-
};
|
|
179
|
-
}, b = (e, t) => ({
|
|
180
|
-
fn: i(e).fn,
|
|
181
|
-
options: [e, t]
|
|
182
|
-
}), x = (e, t) => {
|
|
183
|
-
let r = n(e);
|
|
184
|
-
return {
|
|
185
|
-
name: r.name,
|
|
186
|
-
fn: r.fn,
|
|
187
|
-
options: [e, t]
|
|
188
|
-
};
|
|
189
|
-
}, S = (e, t) => {
|
|
190
|
-
let n = s(e);
|
|
191
|
-
return {
|
|
192
|
-
name: n.name,
|
|
193
|
-
fn: n.fn,
|
|
194
|
-
options: [e, t]
|
|
195
|
-
};
|
|
196
|
-
}, C = (e, t) => {
|
|
197
|
-
let n = r(e);
|
|
198
|
-
return {
|
|
199
|
-
name: n.name,
|
|
200
|
-
fn: n.fn,
|
|
201
|
-
options: [e, t]
|
|
202
|
-
};
|
|
203
|
-
}, w = (e, t) => {
|
|
204
|
-
let n = _(e);
|
|
205
|
-
return {
|
|
206
|
-
name: n.name,
|
|
207
|
-
fn: n.fn,
|
|
208
|
-
options: [e, t]
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
//#endregion
|
|
212
|
-
export { w as arrow, x as flip, C as hide, b as limitShift, v as offset, y as shift, S as size, g as useFloating };
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
2
|
-
function e() {
|
|
3
|
-
return typeof window < "u";
|
|
4
|
-
}
|
|
5
|
-
function t(e) {
|
|
6
|
-
return i(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
7
|
-
}
|
|
8
|
-
function n(e) {
|
|
9
|
-
var t;
|
|
10
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
11
|
-
}
|
|
12
|
-
function r(e) {
|
|
13
|
-
return ((i(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
14
|
-
}
|
|
15
|
-
function i(t) {
|
|
16
|
-
return e() ? t instanceof Node || t instanceof n(t).Node : !1;
|
|
17
|
-
}
|
|
18
|
-
function a(t) {
|
|
19
|
-
return e() ? t instanceof Element || t instanceof n(t).Element : !1;
|
|
20
|
-
}
|
|
21
|
-
function o(t) {
|
|
22
|
-
return e() ? t instanceof HTMLElement || t instanceof n(t).HTMLElement : !1;
|
|
23
|
-
}
|
|
24
|
-
function s(t) {
|
|
25
|
-
return !e() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof n(t).ShadowRoot;
|
|
26
|
-
}
|
|
27
|
-
function c(e) {
|
|
28
|
-
let { overflow: t, overflowX: n, overflowY: r, display: i } = y(e);
|
|
29
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
30
|
-
}
|
|
31
|
-
function l(e) {
|
|
32
|
-
return /^(table|td|th)$/.test(t(e));
|
|
33
|
-
}
|
|
34
|
-
function u(e) {
|
|
35
|
-
try {
|
|
36
|
-
if (e.matches(":popover-open")) return !0;
|
|
37
|
-
} catch {}
|
|
38
|
-
try {
|
|
39
|
-
return e.matches(":modal");
|
|
40
|
-
} catch {
|
|
41
|
-
return !1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
var d = /transform|translate|scale|rotate|perspective|filter/, f = /paint|layout|strict|content/, p = (e) => !!e && e !== "none", m;
|
|
45
|
-
function h(e) {
|
|
46
|
-
let t = a(e) ? y(e) : e;
|
|
47
|
-
return p(t.transform) || p(t.translate) || p(t.scale) || p(t.rotate) || p(t.perspective) || !_() && (p(t.backdropFilter) || p(t.filter)) || d.test(t.willChange || "") || f.test(t.contain || "");
|
|
48
|
-
}
|
|
49
|
-
function g(e) {
|
|
50
|
-
let t = x(e);
|
|
51
|
-
for (; o(t) && !v(t);) {
|
|
52
|
-
if (h(t)) return t;
|
|
53
|
-
if (u(t)) return null;
|
|
54
|
-
t = x(t);
|
|
55
|
-
}
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
function _() {
|
|
59
|
-
return m ??= typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none"), m;
|
|
60
|
-
}
|
|
61
|
-
function v(e) {
|
|
62
|
-
return /^(html|body|#document)$/.test(t(e));
|
|
63
|
-
}
|
|
64
|
-
function y(e) {
|
|
65
|
-
return n(e).getComputedStyle(e);
|
|
66
|
-
}
|
|
67
|
-
function b(e) {
|
|
68
|
-
return a(e) ? {
|
|
69
|
-
scrollLeft: e.scrollLeft,
|
|
70
|
-
scrollTop: e.scrollTop
|
|
71
|
-
} : {
|
|
72
|
-
scrollLeft: e.scrollX,
|
|
73
|
-
scrollTop: e.scrollY
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function x(e) {
|
|
77
|
-
if (t(e) === "html") return e;
|
|
78
|
-
let n = e.assignedSlot || e.parentNode || s(e) && e.host || r(e);
|
|
79
|
-
return s(n) ? n.host : n;
|
|
80
|
-
}
|
|
81
|
-
function S(e) {
|
|
82
|
-
let t = x(e);
|
|
83
|
-
return v(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : o(t) && c(t) ? t : S(t);
|
|
84
|
-
}
|
|
85
|
-
function C(e, t, r) {
|
|
86
|
-
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
87
|
-
let i = S(e), a = i === e.ownerDocument?.body, o = n(i);
|
|
88
|
-
if (a) {
|
|
89
|
-
let e = w(o);
|
|
90
|
-
return t.concat(o, o.visualViewport || [], c(i) ? i : [], e && r ? C(e) : []);
|
|
91
|
-
} else return t.concat(i, C(i, [], r));
|
|
92
|
-
}
|
|
93
|
-
function w(e) {
|
|
94
|
-
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
95
|
-
}
|
|
96
|
-
//#endregion
|
|
97
|
-
export { y as getComputedStyle, g as getContainingBlock, r as getDocumentElement, w as getFrameElement, t as getNodeName, b as getNodeScroll, C as getOverflowAncestors, x as getParentNode, n as getWindow, h as isContainingBlock, a as isElement, o as isHTMLElement, v as isLastTraversableNode, c as isOverflowElement, l as isTableElement, u as isTopLayer, _ as isWebKit };
|