@inspirare/design-system 0.0.18 → 0.0.19
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/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +359 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +328 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +212 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +195 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +119 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +73 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +158 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +97 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +62 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +240 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +80 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +108 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +22 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +146 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +161 -0
- 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 +12 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +563 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +312 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +553 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +199 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +203 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +85 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +249 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +154 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +727 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +23 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +404 -0
- 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 +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +138 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +120 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +125 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +351 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +45 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +5 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +46 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +33 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +70 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +4 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +27 -0
- 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 +14 -0
- 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 +116 -0
- 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 +52 -0
- 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 +13 -0
- 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 +52 -0
- 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 +5 -0
- 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 +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +28 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +19 -0
- 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 +6 -0
- 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 +26 -0
- 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 +22 -0
- 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 +16 -0
- 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 +69 -0
- package/dist/src/components/ui/accessibility-improvements.js +60 -0
- package/dist/src/components/ui/accordion.js +44 -0
- package/dist/src/components/ui/alert-dialog.js +61 -0
- package/dist/src/components/ui/alert.js +32 -0
- package/dist/src/components/ui/aspect-ratio.js +6 -0
- package/dist/src/components/ui/avatar.js +29 -0
- package/dist/src/components/ui/badge.js +24 -0
- package/dist/src/components/ui/breadcrumb.js +60 -0
- package/dist/src/components/ui/button-group.js +38 -0
- package/dist/src/components/ui/button.js +41 -0
- package/dist/src/components/ui/calendar.js +89 -0
- package/dist/src/components/ui/card.js +55 -0
- package/dist/src/components/ui/carousel.js +116 -0
- package/dist/src/components/ui/chart.js +128 -0
- package/dist/src/components/ui/checkbox.js +21 -0
- package/dist/src/components/ui/collapsible.js +26 -0
- package/dist/src/components/ui/color-picker.js +133 -0
- package/dist/src/components/ui/combobox.js +42 -0
- package/dist/src/components/ui/command.js +86 -0
- package/dist/src/components/ui/context-menu.js +72 -0
- package/dist/src/components/ui/dialog.js +88 -0
- package/dist/src/components/ui/drawer.js +80 -0
- package/dist/src/components/ui/dropdown-menu.js +124 -0
- package/dist/src/components/ui/empty.js +59 -0
- package/dist/src/components/ui/field.js +111 -0
- package/dist/src/components/ui/form.js +76 -0
- package/dist/src/components/ui/hover-card.js +33 -0
- package/dist/src/components/ui/input-group.js +78 -0
- package/dist/src/components/ui/input-otp.js +42 -0
- package/dist/src/components/ui/input.js +14 -0
- package/dist/src/components/ui/item.js +116 -0
- package/dist/src/components/ui/kbd.js +19 -0
- package/dist/src/components/ui/label.js +15 -0
- package/dist/src/components/ui/menubar.js +105 -0
- package/dist/src/components/ui/navigation-menu.js +58 -0
- package/dist/src/components/ui/pagination.js +62 -0
- package/dist/src/components/ui/popover.js +36 -0
- package/dist/src/components/ui/progress.js +20 -0
- package/dist/src/components/ui/radio-group.js +27 -0
- package/dist/src/components/ui/resizable.js +19 -0
- package/dist/src/components/ui/scroll-area.js +18 -0
- package/dist/src/components/ui/select.js +96 -0
- package/dist/src/components/ui/separator.js +17 -0
- package/dist/src/components/ui/sheet.js +84 -0
- package/dist/src/components/ui/sidebar.js +326 -0
- package/dist/src/components/ui/skeleton.js +49 -0
- package/dist/src/components/ui/slider.js +36 -0
- package/dist/src/components/ui/sonner.js +20 -0
- package/dist/src/components/ui/spinner.js +14 -0
- package/dist/src/components/ui/switch.js +20 -0
- package/dist/src/components/ui/table.js +67 -0
- package/dist/src/components/ui/tabs.js +36 -0
- package/dist/src/components/ui/textarea.js +13 -0
- package/dist/src/components/ui/theme-toggle.js +56 -0
- package/dist/src/components/ui/toggle-group.js +44 -0
- package/dist/src/components/ui/toggle.js +37 -0
- package/dist/src/components/ui/tooltip.js +37 -0
- package/dist/src/hooks/use-mobile.js +14 -0
- package/dist/src/index.js +61 -0
- package/dist/src/lib/utils.js +8 -0
- package/package.json +9 -6
- package/dist/index.js +0 -22051
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContextScope as e } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
+
import { useComposedRefs as t } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
+
import { createSlot as n } from "../../../../../@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";
|
|
5
|
+
import { composeEventHandlers as r } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
6
|
+
import { useControllableState as i } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
7
|
+
import { Primitive as a } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
8
|
+
import { Presence as o } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
|
|
9
|
+
import { useId as s } from "../../../../../@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";
|
|
10
|
+
import { DismissableLayer as c } from "../../../../../@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
|
|
11
|
+
import { FocusScope as l } from "../../../../../@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js";
|
|
12
|
+
import { Portal as u } from "../../../../../@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js";
|
|
13
|
+
import { useFocusGuards as d } from "../../../../../@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js";
|
|
14
|
+
import f from "../../../../../react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js";
|
|
15
|
+
import { hideOthers as p } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js";
|
|
16
|
+
import { Anchor as m, Arrow as h, Content as g, Root2 as _, createPopperScope as v } from "../../../../../@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js";
|
|
17
|
+
import * as y from "react";
|
|
18
|
+
import { jsx as b } from "react/jsx-runtime";
|
|
19
|
+
//#region node_modules/.pnpm/@radix-ui+react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
20
|
+
var x = "Popover", [S, C] = e(x, [v]), w = v(), [T, E] = S(x), D = (e) => {
|
|
21
|
+
let { __scopePopover: t, children: n, open: r, defaultOpen: a, onOpenChange: o, modal: c = !1 } = e, l = w(t), u = y.useRef(null), [d, f] = y.useState(!1), [p, m] = i({
|
|
22
|
+
prop: r,
|
|
23
|
+
defaultProp: a ?? !1,
|
|
24
|
+
onChange: o,
|
|
25
|
+
caller: x
|
|
26
|
+
});
|
|
27
|
+
return /* @__PURE__ */ b(_, {
|
|
28
|
+
...l,
|
|
29
|
+
children: /* @__PURE__ */ b(T, {
|
|
30
|
+
scope: t,
|
|
31
|
+
contentId: s(),
|
|
32
|
+
triggerRef: u,
|
|
33
|
+
open: p,
|
|
34
|
+
onOpenChange: m,
|
|
35
|
+
onOpenToggle: y.useCallback(() => m((e) => !e), [m]),
|
|
36
|
+
hasCustomAnchor: d,
|
|
37
|
+
onCustomAnchorAdd: y.useCallback(() => f(!0), []),
|
|
38
|
+
onCustomAnchorRemove: y.useCallback(() => f(!1), []),
|
|
39
|
+
modal: c,
|
|
40
|
+
children: n
|
|
41
|
+
})
|
|
42
|
+
});
|
|
43
|
+
};
|
|
44
|
+
D.displayName = x;
|
|
45
|
+
var O = "PopoverAnchor", k = y.forwardRef((e, t) => {
|
|
46
|
+
let { __scopePopover: n, ...r } = e, i = E(O, n), a = w(n), { onCustomAnchorAdd: o, onCustomAnchorRemove: s } = i;
|
|
47
|
+
return y.useEffect(() => (o(), () => s()), [o, s]), /* @__PURE__ */ b(m, {
|
|
48
|
+
...a,
|
|
49
|
+
...r,
|
|
50
|
+
ref: t
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
k.displayName = O;
|
|
54
|
+
var A = "PopoverTrigger", j = y.forwardRef((e, n) => {
|
|
55
|
+
let { __scopePopover: i, ...o } = e, s = E(A, i), c = w(i), l = t(n, s.triggerRef), u = /* @__PURE__ */ b(a.button, {
|
|
56
|
+
type: "button",
|
|
57
|
+
"aria-haspopup": "dialog",
|
|
58
|
+
"aria-expanded": s.open,
|
|
59
|
+
"aria-controls": s.open ? s.contentId : void 0,
|
|
60
|
+
"data-state": K(s.open),
|
|
61
|
+
...o,
|
|
62
|
+
ref: l,
|
|
63
|
+
onClick: r(e.onClick, s.onOpenToggle)
|
|
64
|
+
});
|
|
65
|
+
return s.hasCustomAnchor ? u : /* @__PURE__ */ b(m, {
|
|
66
|
+
asChild: !0,
|
|
67
|
+
...c,
|
|
68
|
+
children: u
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
j.displayName = A;
|
|
72
|
+
var M = "PopoverPortal", [N, P] = S(M, { forceMount: void 0 }), F = (e) => {
|
|
73
|
+
let { __scopePopover: t, forceMount: n, children: r, container: i } = e, a = E(M, t);
|
|
74
|
+
return /* @__PURE__ */ b(N, {
|
|
75
|
+
scope: t,
|
|
76
|
+
forceMount: n,
|
|
77
|
+
children: /* @__PURE__ */ b(o, {
|
|
78
|
+
present: n || a.open,
|
|
79
|
+
children: /* @__PURE__ */ b(u, {
|
|
80
|
+
asChild: !0,
|
|
81
|
+
container: i,
|
|
82
|
+
children: r
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
F.displayName = M;
|
|
88
|
+
var I = "PopoverContent", L = y.forwardRef((e, t) => {
|
|
89
|
+
let n = P(I, e.__scopePopover), { forceMount: r = n.forceMount, ...i } = e, a = E(I, e.__scopePopover);
|
|
90
|
+
return /* @__PURE__ */ b(o, {
|
|
91
|
+
present: r || a.open,
|
|
92
|
+
children: a.modal ? /* @__PURE__ */ b(z, {
|
|
93
|
+
...i,
|
|
94
|
+
ref: t
|
|
95
|
+
}) : /* @__PURE__ */ b(B, {
|
|
96
|
+
...i,
|
|
97
|
+
ref: t
|
|
98
|
+
})
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
L.displayName = I;
|
|
102
|
+
var R = n("PopoverContent.RemoveScroll"), z = y.forwardRef((e, n) => {
|
|
103
|
+
let i = E(I, e.__scopePopover), a = y.useRef(null), o = t(n, a), s = y.useRef(!1);
|
|
104
|
+
return y.useEffect(() => {
|
|
105
|
+
let e = a.current;
|
|
106
|
+
if (e) return p(e);
|
|
107
|
+
}, []), /* @__PURE__ */ b(f, {
|
|
108
|
+
as: R,
|
|
109
|
+
allowPinchZoom: !0,
|
|
110
|
+
children: /* @__PURE__ */ b(V, {
|
|
111
|
+
...e,
|
|
112
|
+
ref: o,
|
|
113
|
+
trapFocus: i.open,
|
|
114
|
+
disableOutsidePointerEvents: !0,
|
|
115
|
+
onCloseAutoFocus: r(e.onCloseAutoFocus, (e) => {
|
|
116
|
+
e.preventDefault(), s.current || i.triggerRef.current?.focus();
|
|
117
|
+
}),
|
|
118
|
+
onPointerDownOutside: r(e.onPointerDownOutside, (e) => {
|
|
119
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
120
|
+
s.current = t.button === 2 || n;
|
|
121
|
+
}, { checkForDefaultPrevented: !1 }),
|
|
122
|
+
onFocusOutside: r(e.onFocusOutside, (e) => e.preventDefault(), { checkForDefaultPrevented: !1 })
|
|
123
|
+
})
|
|
124
|
+
});
|
|
125
|
+
}), B = y.forwardRef((e, t) => {
|
|
126
|
+
let n = E(I, e.__scopePopover), r = y.useRef(!1), i = y.useRef(!1);
|
|
127
|
+
return /* @__PURE__ */ b(V, {
|
|
128
|
+
...e,
|
|
129
|
+
ref: t,
|
|
130
|
+
trapFocus: !1,
|
|
131
|
+
disableOutsidePointerEvents: !1,
|
|
132
|
+
onCloseAutoFocus: (t) => {
|
|
133
|
+
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
134
|
+
},
|
|
135
|
+
onInteractOutside: (t) => {
|
|
136
|
+
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
137
|
+
let a = t.target;
|
|
138
|
+
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}), V = y.forwardRef((e, t) => {
|
|
142
|
+
let { __scopePopover: n, trapFocus: r, onOpenAutoFocus: i, onCloseAutoFocus: a, disableOutsidePointerEvents: o, onEscapeKeyDown: s, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, ...m } = e, h = E(I, n), _ = w(n);
|
|
143
|
+
return d(), /* @__PURE__ */ b(l, {
|
|
144
|
+
asChild: !0,
|
|
145
|
+
loop: !0,
|
|
146
|
+
trapped: r,
|
|
147
|
+
onMountAutoFocus: i,
|
|
148
|
+
onUnmountAutoFocus: a,
|
|
149
|
+
children: /* @__PURE__ */ b(c, {
|
|
150
|
+
asChild: !0,
|
|
151
|
+
disableOutsidePointerEvents: o,
|
|
152
|
+
onInteractOutside: p,
|
|
153
|
+
onEscapeKeyDown: s,
|
|
154
|
+
onPointerDownOutside: u,
|
|
155
|
+
onFocusOutside: f,
|
|
156
|
+
onDismiss: () => h.onOpenChange(!1),
|
|
157
|
+
children: /* @__PURE__ */ b(g, {
|
|
158
|
+
"data-state": K(h.open),
|
|
159
|
+
role: "dialog",
|
|
160
|
+
id: h.contentId,
|
|
161
|
+
..._,
|
|
162
|
+
...m,
|
|
163
|
+
ref: t,
|
|
164
|
+
style: {
|
|
165
|
+
...m.style,
|
|
166
|
+
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
167
|
+
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
168
|
+
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
169
|
+
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
170
|
+
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
171
|
+
}
|
|
172
|
+
})
|
|
173
|
+
})
|
|
174
|
+
});
|
|
175
|
+
}), H = "PopoverClose", U = y.forwardRef((e, t) => {
|
|
176
|
+
let { __scopePopover: n, ...i } = e, o = E(H, n);
|
|
177
|
+
return /* @__PURE__ */ b(a.button, {
|
|
178
|
+
type: "button",
|
|
179
|
+
...i,
|
|
180
|
+
ref: t,
|
|
181
|
+
onClick: r(e.onClick, () => o.onOpenChange(!1))
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
U.displayName = H;
|
|
185
|
+
var W = "PopoverArrow", G = y.forwardRef((e, t) => {
|
|
186
|
+
let { __scopePopover: n, ...r } = e;
|
|
187
|
+
return /* @__PURE__ */ b(h, {
|
|
188
|
+
...w(n),
|
|
189
|
+
...r,
|
|
190
|
+
ref: t
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
G.displayName = W;
|
|
194
|
+
function K(e) {
|
|
195
|
+
return e ? "open" : "closed";
|
|
196
|
+
}
|
|
197
|
+
var q = D, J = k, Y = j, X = F, Z = L;
|
|
198
|
+
//#endregion
|
|
199
|
+
export { J as Anchor2, Z as Content2, X as Portal, q as Root2, Y as Trigger };
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContextScope as e } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
+
import { useComposedRefs as t } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
+
import { useLayoutEffect2 as n } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
5
|
+
import { Primitive as r } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
6
|
+
import { useCallbackRef as i } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
7
|
+
import { useSize as a } from "../../../../../@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js";
|
|
8
|
+
import { autoUpdate as o } from "../../../../../@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js";
|
|
9
|
+
import { arrow as s, flip as c, hide as l, limitShift as u, offset as d, shift as f, size as p, useFloating as m } from "../../../../../@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js";
|
|
10
|
+
import { Root as h } from "../../../../../@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js";
|
|
11
|
+
import * as g from "react";
|
|
12
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
13
|
+
//#region node_modules/.pnpm/@radix-ui+react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
14
|
+
var v = "Popper", [y, b] = e(v), [x, S] = y(v), C = (e) => {
|
|
15
|
+
let { __scopePopper: t, children: n } = e, [r, i] = g.useState(null), [a, o] = g.useState(void 0);
|
|
16
|
+
return /* @__PURE__ */ _(x, {
|
|
17
|
+
scope: t,
|
|
18
|
+
anchor: r,
|
|
19
|
+
onAnchorChange: i,
|
|
20
|
+
placementState: a,
|
|
21
|
+
setPlacementState: o,
|
|
22
|
+
children: n
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
C.displayName = v;
|
|
26
|
+
var w = "PopperAnchor", T = g.forwardRef((e, n) => {
|
|
27
|
+
let { __scopePopper: i, virtualRef: a, ...o } = e, s = S(w, i), c = g.useRef(null), l = s.onAnchorChange, u = t(n, g.useCallback((e) => {
|
|
28
|
+
c.current = e, e && l(e);
|
|
29
|
+
}, [l])), d = g.useRef(null);
|
|
30
|
+
g.useEffect(() => {
|
|
31
|
+
if (!a) return;
|
|
32
|
+
let e = d.current;
|
|
33
|
+
d.current = a.current, e !== d.current && l(d.current);
|
|
34
|
+
});
|
|
35
|
+
let f = s.placementState && P(s.placementState), p = f?.[0], m = f?.[1];
|
|
36
|
+
return a ? null : /* @__PURE__ */ _(r.div, {
|
|
37
|
+
"data-radix-popper-side": p,
|
|
38
|
+
"data-radix-popper-align": m,
|
|
39
|
+
...o,
|
|
40
|
+
ref: u
|
|
41
|
+
});
|
|
42
|
+
});
|
|
43
|
+
T.displayName = w;
|
|
44
|
+
var E = "PopperContent", [D, O] = y(E), k = g.forwardRef((e, h) => {
|
|
45
|
+
let { __scopePopper: v, side: y = "bottom", sideOffset: b = 0, align: x = "center", alignOffset: C = 0, arrowPadding: w = 0, avoidCollisions: T = !0, collisionBoundary: O, collisionPadding: k = 0, sticky: A = "partial", hideWhenDetached: j = !1, updatePositionStrategy: M = "optimized", onPlaced: F, ...I } = e, L = S(E, v), [R, te] = g.useState(null), z = t(h, (e) => te(e)), [B, V] = g.useState(null), H = a(B), ne = H?.width ?? 0, U = H?.height ?? 0, re = y + (x === "center" ? "" : "-" + x), ie = typeof k == "number" ? k : {
|
|
46
|
+
top: 0,
|
|
47
|
+
right: 0,
|
|
48
|
+
bottom: 0,
|
|
49
|
+
left: 0,
|
|
50
|
+
...k
|
|
51
|
+
}, W = O ? Array.isArray(O) ? O : [O] : void 0, ae = W !== void 0 && W.length > 0, G = {
|
|
52
|
+
padding: ie,
|
|
53
|
+
boundary: W?.filter(ee),
|
|
54
|
+
altBoundary: ae
|
|
55
|
+
}, { refs: oe, floatingStyles: K, placement: q, isPositioned: J, middlewareData: Y } = m({
|
|
56
|
+
strategy: "fixed",
|
|
57
|
+
placement: re,
|
|
58
|
+
whileElementsMounted: (...e) => o(...e, { animationFrame: M === "always" }),
|
|
59
|
+
elements: { reference: L.anchor },
|
|
60
|
+
middleware: [
|
|
61
|
+
d({
|
|
62
|
+
mainAxis: b + U,
|
|
63
|
+
alignmentAxis: C
|
|
64
|
+
}),
|
|
65
|
+
T && f({
|
|
66
|
+
mainAxis: !0,
|
|
67
|
+
crossAxis: !1,
|
|
68
|
+
limiter: A === "partial" ? u() : void 0,
|
|
69
|
+
...G
|
|
70
|
+
}),
|
|
71
|
+
T && c({ ...G }),
|
|
72
|
+
p({
|
|
73
|
+
...G,
|
|
74
|
+
apply: ({ elements: e, rects: t, availableWidth: n, availableHeight: r }) => {
|
|
75
|
+
let { width: i, height: a } = t.reference, o = e.floating.style;
|
|
76
|
+
o.setProperty("--radix-popper-available-width", `${n}px`), o.setProperty("--radix-popper-available-height", `${r}px`), o.setProperty("--radix-popper-anchor-width", `${i}px`), o.setProperty("--radix-popper-anchor-height", `${a}px`);
|
|
77
|
+
}
|
|
78
|
+
}),
|
|
79
|
+
B && s({
|
|
80
|
+
element: B,
|
|
81
|
+
padding: w
|
|
82
|
+
}),
|
|
83
|
+
N({
|
|
84
|
+
arrowWidth: ne,
|
|
85
|
+
arrowHeight: U
|
|
86
|
+
}),
|
|
87
|
+
j && l({
|
|
88
|
+
strategy: "referenceHidden",
|
|
89
|
+
...G
|
|
90
|
+
})
|
|
91
|
+
]
|
|
92
|
+
}), X = L.setPlacementState;
|
|
93
|
+
n(() => (X(q), () => {
|
|
94
|
+
X(void 0);
|
|
95
|
+
}), [q, X]);
|
|
96
|
+
let [Z, Q] = P(q), $ = i(F);
|
|
97
|
+
n(() => {
|
|
98
|
+
J && $?.();
|
|
99
|
+
}, [J, $]);
|
|
100
|
+
let se = Y.arrow?.x, ce = Y.arrow?.y, le = Y.arrow?.centerOffset !== 0, [ue, de] = g.useState();
|
|
101
|
+
return n(() => {
|
|
102
|
+
R && de(window.getComputedStyle(R).zIndex);
|
|
103
|
+
}, [R]), /* @__PURE__ */ _("div", {
|
|
104
|
+
ref: oe.setFloating,
|
|
105
|
+
"data-radix-popper-content-wrapper": "",
|
|
106
|
+
style: {
|
|
107
|
+
...K,
|
|
108
|
+
transform: J ? K.transform : "translate(0, -200%)",
|
|
109
|
+
minWidth: "max-content",
|
|
110
|
+
zIndex: ue,
|
|
111
|
+
"--radix-popper-transform-origin": [Y.transformOrigin?.x, Y.transformOrigin?.y].join(" "),
|
|
112
|
+
...Y.hide?.referenceHidden && {
|
|
113
|
+
visibility: "hidden",
|
|
114
|
+
pointerEvents: "none"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
dir: e.dir,
|
|
118
|
+
children: /* @__PURE__ */ _(D, {
|
|
119
|
+
scope: v,
|
|
120
|
+
placedSide: Z,
|
|
121
|
+
placedAlign: Q,
|
|
122
|
+
onArrowChange: V,
|
|
123
|
+
arrowX: se,
|
|
124
|
+
arrowY: ce,
|
|
125
|
+
shouldHideArrow: le,
|
|
126
|
+
children: /* @__PURE__ */ _(r.div, {
|
|
127
|
+
"data-side": Z,
|
|
128
|
+
"data-align": Q,
|
|
129
|
+
...I,
|
|
130
|
+
ref: z,
|
|
131
|
+
style: {
|
|
132
|
+
...I.style,
|
|
133
|
+
animation: J ? void 0 : "none"
|
|
134
|
+
}
|
|
135
|
+
})
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
|
+
});
|
|
139
|
+
k.displayName = E;
|
|
140
|
+
var A = "PopperArrow", j = {
|
|
141
|
+
top: "bottom",
|
|
142
|
+
right: "left",
|
|
143
|
+
bottom: "top",
|
|
144
|
+
left: "right"
|
|
145
|
+
}, M = g.forwardRef(function(e, t) {
|
|
146
|
+
let { __scopePopper: n, ...r } = e, i = O(A, n), a = j[i.placedSide];
|
|
147
|
+
return /* @__PURE__ */ _("span", {
|
|
148
|
+
ref: i.onArrowChange,
|
|
149
|
+
style: {
|
|
150
|
+
position: "absolute",
|
|
151
|
+
left: i.arrowX,
|
|
152
|
+
top: i.arrowY,
|
|
153
|
+
[a]: 0,
|
|
154
|
+
transformOrigin: {
|
|
155
|
+
top: "",
|
|
156
|
+
right: "0 0",
|
|
157
|
+
bottom: "center 0",
|
|
158
|
+
left: "100% 0"
|
|
159
|
+
}[i.placedSide],
|
|
160
|
+
transform: {
|
|
161
|
+
top: "translateY(100%)",
|
|
162
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
163
|
+
bottom: "rotate(180deg)",
|
|
164
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
165
|
+
}[i.placedSide],
|
|
166
|
+
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
167
|
+
},
|
|
168
|
+
children: /* @__PURE__ */ _(h, {
|
|
169
|
+
...r,
|
|
170
|
+
ref: t,
|
|
171
|
+
style: {
|
|
172
|
+
...r.style,
|
|
173
|
+
display: "block"
|
|
174
|
+
}
|
|
175
|
+
})
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
M.displayName = A;
|
|
179
|
+
function ee(e) {
|
|
180
|
+
return e !== null;
|
|
181
|
+
}
|
|
182
|
+
var N = (e) => ({
|
|
183
|
+
name: "transformOrigin",
|
|
184
|
+
options: e,
|
|
185
|
+
fn(t) {
|
|
186
|
+
let { placement: n, rects: r, middlewareData: i } = t, a = i.arrow?.centerOffset !== 0, o = a ? 0 : e.arrowWidth, s = a ? 0 : e.arrowHeight, [c, l] = P(n), u = {
|
|
187
|
+
start: "0%",
|
|
188
|
+
center: "50%",
|
|
189
|
+
end: "100%"
|
|
190
|
+
}[l], d = (i.arrow?.x ?? 0) + o / 2, f = (i.arrow?.y ?? 0) + s / 2, p = "", m = "";
|
|
191
|
+
return c === "bottom" ? (p = a ? u : `${d}px`, m = `${-s}px`) : c === "top" ? (p = a ? u : `${d}px`, m = `${r.floating.height + s}px`) : c === "right" ? (p = `${-s}px`, m = a ? u : `${f}px`) : c === "left" && (p = `${r.floating.width + s}px`, m = a ? u : `${f}px`), { data: {
|
|
192
|
+
x: p,
|
|
193
|
+
y: m
|
|
194
|
+
} };
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
function P(e) {
|
|
198
|
+
let [t, n = "center"] = e.split("-");
|
|
199
|
+
return [t, n];
|
|
200
|
+
}
|
|
201
|
+
var F = C, I = T, L = k, R = M;
|
|
202
|
+
//#endregion
|
|
203
|
+
export { I as Anchor, R as Arrow, L as Content, F as Root2, b as createPopperScope };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect2 as e } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
3
|
+
import { Primitive as t } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
import * as i from "react-dom";
|
|
7
|
+
//#region node_modules/.pnpm/@radix-ui+react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
8
|
+
var a = "Portal", o = n.forwardRef((a, o) => {
|
|
9
|
+
let { container: s, ...c } = a, [l, u] = n.useState(!1);
|
|
10
|
+
e(() => u(!0), []);
|
|
11
|
+
let d = s || l && globalThis?.document?.body;
|
|
12
|
+
return d ? i.createPortal(/* @__PURE__ */ r(t.div, {
|
|
13
|
+
...c,
|
|
14
|
+
ref: o
|
|
15
|
+
}), d) : null;
|
|
16
|
+
});
|
|
17
|
+
o.displayName = a;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as Portal };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useLayoutEffect2 as e } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
//#region node_modules/.pnpm/@radix-ui+react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
5
|
+
function n(e, n) {
|
|
6
|
+
return t.useReducer((e, t) => n[e][t] ?? e, e);
|
|
7
|
+
}
|
|
8
|
+
var r = (e) => {
|
|
9
|
+
let { present: n, children: r } = e, a = i(n), s = typeof r == "function" ? r({ present: a.isPresent }) : t.Children.only(r), l = o(a.ref, c(s));
|
|
10
|
+
return typeof r == "function" || a.isPresent ? t.cloneElement(s, { ref: l }) : null;
|
|
11
|
+
};
|
|
12
|
+
r.displayName = "Presence";
|
|
13
|
+
function i(r) {
|
|
14
|
+
let [i, a] = t.useState(), o = t.useRef(null), c = t.useRef(r), l = t.useRef("none"), [u, d] = n(r ? "mounted" : "unmounted", {
|
|
15
|
+
mounted: {
|
|
16
|
+
UNMOUNT: "unmounted",
|
|
17
|
+
ANIMATION_OUT: "unmountSuspended"
|
|
18
|
+
},
|
|
19
|
+
unmountSuspended: {
|
|
20
|
+
MOUNT: "mounted",
|
|
21
|
+
ANIMATION_END: "unmounted"
|
|
22
|
+
},
|
|
23
|
+
unmounted: { MOUNT: "mounted" }
|
|
24
|
+
});
|
|
25
|
+
return t.useEffect(() => {
|
|
26
|
+
let e = s(o.current);
|
|
27
|
+
l.current = u === "mounted" ? e : "none";
|
|
28
|
+
}, [u]), e(() => {
|
|
29
|
+
let e = o.current, t = c.current;
|
|
30
|
+
if (t !== r) {
|
|
31
|
+
let n = l.current, i = s(e);
|
|
32
|
+
r ? d("MOUNT") : i === "none" || e?.display === "none" ? d("UNMOUNT") : d(t && n !== i ? "ANIMATION_OUT" : "UNMOUNT"), c.current = r;
|
|
33
|
+
}
|
|
34
|
+
}, [r, d]), e(() => {
|
|
35
|
+
if (i) {
|
|
36
|
+
let e, t = i.ownerDocument.defaultView ?? window, n = (n) => {
|
|
37
|
+
let r = s(o.current).includes(CSS.escape(n.animationName));
|
|
38
|
+
if (n.target === i && r && (d("ANIMATION_END"), !c.current)) {
|
|
39
|
+
let n = i.style.animationFillMode;
|
|
40
|
+
i.style.animationFillMode = "forwards", e = t.setTimeout(() => {
|
|
41
|
+
i.style.animationFillMode === "forwards" && (i.style.animationFillMode = n);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}, r = (e) => {
|
|
45
|
+
e.target === i && (l.current = s(o.current));
|
|
46
|
+
};
|
|
47
|
+
return i.addEventListener("animationstart", r), i.addEventListener("animationcancel", n), i.addEventListener("animationend", n), () => {
|
|
48
|
+
t.clearTimeout(e), i.removeEventListener("animationstart", r), i.removeEventListener("animationcancel", n), i.removeEventListener("animationend", n);
|
|
49
|
+
};
|
|
50
|
+
} else d("ANIMATION_END");
|
|
51
|
+
}, [i, d]), {
|
|
52
|
+
isPresent: ["mounted", "unmountSuspended"].includes(u),
|
|
53
|
+
ref: t.useCallback((e) => {
|
|
54
|
+
o.current = e ? getComputedStyle(e) : null, a(e);
|
|
55
|
+
}, [])
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function a(e, t) {
|
|
59
|
+
if (typeof e == "function") return e(t);
|
|
60
|
+
e != null && (e.current = t);
|
|
61
|
+
}
|
|
62
|
+
function o(...e) {
|
|
63
|
+
let n = t.useRef(e);
|
|
64
|
+
return n.current = e, t.useCallback((e) => {
|
|
65
|
+
let t = n.current, r = !1, i = t.map((t) => {
|
|
66
|
+
let n = a(t, e);
|
|
67
|
+
return !r && typeof n == "function" && (r = !0), n;
|
|
68
|
+
});
|
|
69
|
+
if (r) return () => {
|
|
70
|
+
for (let e = 0; e < i.length; e++) {
|
|
71
|
+
let n = i[e];
|
|
72
|
+
typeof n == "function" ? n() : a(t[e], null);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
}, []);
|
|
76
|
+
}
|
|
77
|
+
function s(e) {
|
|
78
|
+
return e?.animationName || "none";
|
|
79
|
+
}
|
|
80
|
+
function c(e) {
|
|
81
|
+
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
82
|
+
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
83
|
+
}
|
|
84
|
+
//#endregion
|
|
85
|
+
export { r as Presence };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { createSlot as e } from "../../../../../@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";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import * as r from "react-dom";
|
|
5
|
+
//#region node_modules/.pnpm/@radix-ui+react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
6
|
+
var i = [
|
|
7
|
+
"a",
|
|
8
|
+
"button",
|
|
9
|
+
"div",
|
|
10
|
+
"form",
|
|
11
|
+
"h2",
|
|
12
|
+
"h3",
|
|
13
|
+
"img",
|
|
14
|
+
"input",
|
|
15
|
+
"label",
|
|
16
|
+
"li",
|
|
17
|
+
"nav",
|
|
18
|
+
"ol",
|
|
19
|
+
"p",
|
|
20
|
+
"select",
|
|
21
|
+
"span",
|
|
22
|
+
"svg",
|
|
23
|
+
"ul"
|
|
24
|
+
].reduce((r, i) => {
|
|
25
|
+
let a = e(`Primitive.${i}`), o = t.forwardRef((e, t) => {
|
|
26
|
+
let { asChild: r, ...o } = e, s = r ? a : i;
|
|
27
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ n(s, {
|
|
28
|
+
...o,
|
|
29
|
+
ref: t
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
return o.displayName = `Primitive.${i}`, {
|
|
33
|
+
...r,
|
|
34
|
+
[i]: o
|
|
35
|
+
};
|
|
36
|
+
}, {});
|
|
37
|
+
function a(e, t) {
|
|
38
|
+
e && r.flushSync(() => e.dispatchEvent(t));
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { i as Primitive, a as dispatchDiscreteCustomEvent };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContextScope as e } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
+
import { Primitive as t } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
//#region node_modules/.pnpm/@radix-ui+react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.mjs
|
|
7
|
+
var i = "Progress", a = 100, [o, s] = e(i), [c, l] = o(i), u = n.forwardRef((e, n) => {
|
|
8
|
+
let { __scopeProgress: i, value: o = null, max: s, getValueLabel: l = p, ...u } = e;
|
|
9
|
+
(s || s === 0) && !g(s) && console.error(v(`${s}`, "Progress"));
|
|
10
|
+
let d = g(s) ? s : a;
|
|
11
|
+
o !== null && !_(o, d) && console.error(y(`${o}`, "Progress"));
|
|
12
|
+
let f = _(o, d) ? o : null, b = h(f) ? l(f, d) : void 0;
|
|
13
|
+
return /* @__PURE__ */ r(c, {
|
|
14
|
+
scope: i,
|
|
15
|
+
value: f,
|
|
16
|
+
max: d,
|
|
17
|
+
children: /* @__PURE__ */ r(t.div, {
|
|
18
|
+
"aria-valuemax": d,
|
|
19
|
+
"aria-valuemin": 0,
|
|
20
|
+
"aria-valuenow": h(f) ? f : void 0,
|
|
21
|
+
"aria-valuetext": b,
|
|
22
|
+
role: "progressbar",
|
|
23
|
+
"data-state": m(f, d),
|
|
24
|
+
"data-value": f ?? void 0,
|
|
25
|
+
"data-max": d,
|
|
26
|
+
...u,
|
|
27
|
+
ref: n
|
|
28
|
+
})
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
u.displayName = i;
|
|
32
|
+
var d = "ProgressIndicator", f = n.forwardRef((e, n) => {
|
|
33
|
+
let { __scopeProgress: i, ...a } = e, o = l(d, i);
|
|
34
|
+
return /* @__PURE__ */ r(t.div, {
|
|
35
|
+
"data-state": m(o.value, o.max),
|
|
36
|
+
"data-value": o.value ?? void 0,
|
|
37
|
+
"data-max": o.max,
|
|
38
|
+
...a,
|
|
39
|
+
ref: n
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
f.displayName = d;
|
|
43
|
+
function p(e, t) {
|
|
44
|
+
return `${Math.round(e / t * 100)}%`;
|
|
45
|
+
}
|
|
46
|
+
function m(e, t) {
|
|
47
|
+
return e == null ? "indeterminate" : e === t ? "complete" : "loading";
|
|
48
|
+
}
|
|
49
|
+
function h(e) {
|
|
50
|
+
return typeof e == "number";
|
|
51
|
+
}
|
|
52
|
+
function g(e) {
|
|
53
|
+
return h(e) && !isNaN(e) && e > 0;
|
|
54
|
+
}
|
|
55
|
+
function _(e, t) {
|
|
56
|
+
return h(e) && !isNaN(e) && e <= t && e >= 0;
|
|
57
|
+
}
|
|
58
|
+
function v(e, t) {
|
|
59
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${a}\`.`;
|
|
60
|
+
}
|
|
61
|
+
function y(e, t) {
|
|
62
|
+
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
63
|
+
- a positive number
|
|
64
|
+
- less than the value passed to \`max\` (or ${a} if no \`max\` prop is set)
|
|
65
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
66
|
+
|
|
67
|
+
Defaulting to \`null\`.`;
|
|
68
|
+
}
|
|
69
|
+
var b = u, x = f;
|
|
70
|
+
//#endregion
|
|
71
|
+
export { x as Indicator, b as Root };
|