@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,225 @@
|
|
|
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 { composeRefs as t } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
+
import { composeEventHandlers as n } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
5
|
+
import { useControllableState as r } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
6
|
+
import { Primitive as i } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
7
|
+
import { useId as a } 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";
|
|
8
|
+
import { Anchor2 as o, Arrow2 as s, CheckboxItem as c, Content2 as l, Group as u, Item2 as d, ItemIndicator as f, Label as p, Portal as m, RadioGroup as h, RadioItem as ee, Root3 as te, Separator as g, Sub as _, SubContent as v, SubTrigger as y, createMenuScope as b } from "../../../../../@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js";
|
|
9
|
+
import * as x from "react";
|
|
10
|
+
import { jsx as S } from "react/jsx-runtime";
|
|
11
|
+
//#region node_modules/.pnpm/@radix-ui+react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
12
|
+
var C = "DropdownMenu", [ne, re] = e(C, [b]), w = b(), [T, E] = ne(C), D = (e) => {
|
|
13
|
+
let { __scopeDropdownMenu: t, children: n, dir: i, open: o, defaultOpen: s, onOpenChange: c, modal: l = !0 } = e, u = w(t), d = x.useRef(null), [f, p] = r({
|
|
14
|
+
prop: o,
|
|
15
|
+
defaultProp: s ?? !1,
|
|
16
|
+
onChange: c,
|
|
17
|
+
caller: C
|
|
18
|
+
});
|
|
19
|
+
return /* @__PURE__ */ S(T, {
|
|
20
|
+
scope: t,
|
|
21
|
+
triggerId: a(),
|
|
22
|
+
triggerRef: d,
|
|
23
|
+
contentId: a(),
|
|
24
|
+
open: f,
|
|
25
|
+
onOpenChange: p,
|
|
26
|
+
onOpenToggle: x.useCallback(() => p((e) => !e), [p]),
|
|
27
|
+
modal: l,
|
|
28
|
+
children: /* @__PURE__ */ S(te, {
|
|
29
|
+
...u,
|
|
30
|
+
open: f,
|
|
31
|
+
onOpenChange: p,
|
|
32
|
+
dir: i,
|
|
33
|
+
modal: l,
|
|
34
|
+
children: n
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
D.displayName = C;
|
|
39
|
+
var O = "DropdownMenuTrigger", k = x.forwardRef((e, r) => {
|
|
40
|
+
let { __scopeDropdownMenu: a, disabled: s = !1, ...c } = e, l = E(O, a);
|
|
41
|
+
return /* @__PURE__ */ S(o, {
|
|
42
|
+
asChild: !0,
|
|
43
|
+
...w(a),
|
|
44
|
+
children: /* @__PURE__ */ S(i.button, {
|
|
45
|
+
type: "button",
|
|
46
|
+
id: l.triggerId,
|
|
47
|
+
"aria-haspopup": "menu",
|
|
48
|
+
"aria-expanded": l.open,
|
|
49
|
+
"aria-controls": l.open ? l.contentId : void 0,
|
|
50
|
+
"data-state": l.open ? "open" : "closed",
|
|
51
|
+
"data-disabled": s ? "" : void 0,
|
|
52
|
+
disabled: s,
|
|
53
|
+
...c,
|
|
54
|
+
ref: t(r, l.triggerRef),
|
|
55
|
+
onPointerDown: n(e.onPointerDown, (e) => {
|
|
56
|
+
!s && e.button === 0 && e.ctrlKey === !1 && (l.onOpenToggle(), l.open || e.preventDefault());
|
|
57
|
+
}),
|
|
58
|
+
onKeyDown: n(e.onKeyDown, (e) => {
|
|
59
|
+
s || (["Enter", " "].includes(e.key) && l.onOpenToggle(), e.key === "ArrowDown" && l.onOpenChange(!0), [
|
|
60
|
+
"Enter",
|
|
61
|
+
" ",
|
|
62
|
+
"ArrowDown"
|
|
63
|
+
].includes(e.key) && e.preventDefault());
|
|
64
|
+
})
|
|
65
|
+
})
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
k.displayName = O;
|
|
69
|
+
var A = "DropdownMenuPortal", j = (e) => {
|
|
70
|
+
let { __scopeDropdownMenu: t, ...n } = e;
|
|
71
|
+
return /* @__PURE__ */ S(m, {
|
|
72
|
+
...w(t),
|
|
73
|
+
...n
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
j.displayName = A;
|
|
77
|
+
var M = "DropdownMenuContent", N = x.forwardRef((e, t) => {
|
|
78
|
+
let { __scopeDropdownMenu: r, ...i } = e, a = E(M, r), o = w(r), s = x.useRef(!1);
|
|
79
|
+
return /* @__PURE__ */ S(l, {
|
|
80
|
+
id: a.contentId,
|
|
81
|
+
"aria-labelledby": a.triggerId,
|
|
82
|
+
...o,
|
|
83
|
+
...i,
|
|
84
|
+
ref: t,
|
|
85
|
+
onCloseAutoFocus: n(e.onCloseAutoFocus, (e) => {
|
|
86
|
+
s.current || a.triggerRef.current?.focus(), s.current = !1, e.preventDefault();
|
|
87
|
+
}),
|
|
88
|
+
onInteractOutside: n(e.onInteractOutside, (e) => {
|
|
89
|
+
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0, r = t.button === 2 || n;
|
|
90
|
+
(!a.modal || r) && (s.current = !0);
|
|
91
|
+
}),
|
|
92
|
+
style: {
|
|
93
|
+
...e.style,
|
|
94
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
95
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
96
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
97
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
98
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
N.displayName = M;
|
|
103
|
+
var P = "DropdownMenuGroup", F = x.forwardRef((e, t) => {
|
|
104
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
105
|
+
return /* @__PURE__ */ S(u, {
|
|
106
|
+
...w(n),
|
|
107
|
+
...r,
|
|
108
|
+
ref: t
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
F.displayName = P;
|
|
112
|
+
var I = "DropdownMenuLabel", L = x.forwardRef((e, t) => {
|
|
113
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
114
|
+
return /* @__PURE__ */ S(p, {
|
|
115
|
+
...w(n),
|
|
116
|
+
...r,
|
|
117
|
+
ref: t
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
L.displayName = I;
|
|
121
|
+
var R = "DropdownMenuItem", z = x.forwardRef((e, t) => {
|
|
122
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
123
|
+
return /* @__PURE__ */ S(d, {
|
|
124
|
+
...w(n),
|
|
125
|
+
...r,
|
|
126
|
+
ref: t
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
z.displayName = R;
|
|
130
|
+
var B = "DropdownMenuCheckboxItem", V = x.forwardRef((e, t) => {
|
|
131
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
132
|
+
return /* @__PURE__ */ S(c, {
|
|
133
|
+
...w(n),
|
|
134
|
+
...r,
|
|
135
|
+
ref: t
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
V.displayName = B;
|
|
139
|
+
var H = "DropdownMenuRadioGroup", U = x.forwardRef((e, t) => {
|
|
140
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
141
|
+
return /* @__PURE__ */ S(h, {
|
|
142
|
+
...w(n),
|
|
143
|
+
...r,
|
|
144
|
+
ref: t
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
U.displayName = H;
|
|
148
|
+
var W = "DropdownMenuRadioItem", G = x.forwardRef((e, t) => {
|
|
149
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
150
|
+
return /* @__PURE__ */ S(ee, {
|
|
151
|
+
...w(n),
|
|
152
|
+
...r,
|
|
153
|
+
ref: t
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
G.displayName = W;
|
|
157
|
+
var K = "DropdownMenuItemIndicator", q = x.forwardRef((e, t) => {
|
|
158
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
159
|
+
return /* @__PURE__ */ S(f, {
|
|
160
|
+
...w(n),
|
|
161
|
+
...r,
|
|
162
|
+
ref: t
|
|
163
|
+
});
|
|
164
|
+
});
|
|
165
|
+
q.displayName = K;
|
|
166
|
+
var J = "DropdownMenuSeparator", Y = x.forwardRef((e, t) => {
|
|
167
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
168
|
+
return /* @__PURE__ */ S(g, {
|
|
169
|
+
...w(n),
|
|
170
|
+
...r,
|
|
171
|
+
ref: t
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
Y.displayName = J;
|
|
175
|
+
var X = "DropdownMenuArrow", ie = x.forwardRef((e, t) => {
|
|
176
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
177
|
+
return /* @__PURE__ */ S(s, {
|
|
178
|
+
...w(n),
|
|
179
|
+
...r,
|
|
180
|
+
ref: t
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
ie.displayName = X;
|
|
184
|
+
var ae = (e) => {
|
|
185
|
+
let { __scopeDropdownMenu: t, children: n, open: i, onOpenChange: a, defaultOpen: o } = e, s = w(t), [c, l] = r({
|
|
186
|
+
prop: i,
|
|
187
|
+
defaultProp: o ?? !1,
|
|
188
|
+
onChange: a,
|
|
189
|
+
caller: "DropdownMenuSub"
|
|
190
|
+
});
|
|
191
|
+
return /* @__PURE__ */ S(_, {
|
|
192
|
+
...s,
|
|
193
|
+
open: c,
|
|
194
|
+
onOpenChange: l,
|
|
195
|
+
children: n
|
|
196
|
+
});
|
|
197
|
+
}, oe = "DropdownMenuSubTrigger", Z = x.forwardRef((e, t) => {
|
|
198
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
199
|
+
return /* @__PURE__ */ S(y, {
|
|
200
|
+
...w(n),
|
|
201
|
+
...r,
|
|
202
|
+
ref: t
|
|
203
|
+
});
|
|
204
|
+
});
|
|
205
|
+
Z.displayName = oe;
|
|
206
|
+
var se = "DropdownMenuSubContent", Q = x.forwardRef((e, t) => {
|
|
207
|
+
let { __scopeDropdownMenu: n, ...r } = e;
|
|
208
|
+
return /* @__PURE__ */ S(v, {
|
|
209
|
+
...w(n),
|
|
210
|
+
...r,
|
|
211
|
+
ref: t,
|
|
212
|
+
style: {
|
|
213
|
+
...e.style,
|
|
214
|
+
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
215
|
+
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
216
|
+
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
217
|
+
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
218
|
+
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
Q.displayName = se;
|
|
223
|
+
var ce = D, le = k, ue = j, de = N, fe = F, $ = L, pe = z, me = V, he = U, ge = G, _e = q, ve = Y, ye = ae, be = Z, xe = Q;
|
|
224
|
+
//#endregion
|
|
225
|
+
export { me as CheckboxItem2, de as Content2, fe as Group2, pe as Item2, _e as ItemIndicator2, $ as Label2, ue as Portal2, he as RadioGroup2, ge as RadioItem2, ce as Root2, ve as Separator2, ye as Sub2, xe as SubContent2, be as SubTrigger2, le as Trigger };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
//#region node_modules/.pnpm/@radix-ui+react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.mjs
|
|
4
|
+
var t = 0, n = null;
|
|
5
|
+
function r() {
|
|
6
|
+
e.useEffect(() => {
|
|
7
|
+
n ||= {
|
|
8
|
+
start: i(),
|
|
9
|
+
end: i()
|
|
10
|
+
};
|
|
11
|
+
let { start: e, end: r } = n;
|
|
12
|
+
return document.body.firstElementChild !== e && document.body.insertAdjacentElement("afterbegin", e), document.body.lastElementChild !== r && document.body.insertAdjacentElement("beforeend", r), t++, () => {
|
|
13
|
+
t === 1 && (n?.start.remove(), n?.end.remove(), n = null), t = Math.max(0, t - 1);
|
|
14
|
+
};
|
|
15
|
+
}, []);
|
|
16
|
+
}
|
|
17
|
+
function i() {
|
|
18
|
+
let e = document.createElement("span");
|
|
19
|
+
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as useFocusGuards };
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useComposedRefs as e } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/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 { useCallbackRef as n } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
5
|
+
import * as r from "react";
|
|
6
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
+
//#region node_modules/.pnpm/@radix-ui+react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.mjs
|
|
8
|
+
var a = "focusScope.autoFocusOnMount", o = "focusScope.autoFocusOnUnmount", s = {
|
|
9
|
+
bubbles: !1,
|
|
10
|
+
cancelable: !0
|
|
11
|
+
}, c = "FocusScope", l = r.forwardRef((c, l) => {
|
|
12
|
+
let { loop: p = !1, trapped: m = !1, onMountAutoFocus: h, onUnmountAutoFocus: v, ...y } = c, [x, S] = r.useState(null), C = n(h), w = n(v), T = r.useRef(null), E = e(l, (e) => S(e)), D = r.useRef({
|
|
13
|
+
paused: !1,
|
|
14
|
+
pause() {
|
|
15
|
+
this.paused = !0;
|
|
16
|
+
},
|
|
17
|
+
resume() {
|
|
18
|
+
this.paused = !1;
|
|
19
|
+
}
|
|
20
|
+
}).current;
|
|
21
|
+
r.useEffect(() => {
|
|
22
|
+
if (m) {
|
|
23
|
+
let e = function(e) {
|
|
24
|
+
if (D.paused || !x) return;
|
|
25
|
+
let t = e.target;
|
|
26
|
+
x.contains(t) ? T.current = t : g(T.current, { select: !0 });
|
|
27
|
+
}, t = function(e) {
|
|
28
|
+
if (D.paused || !x) return;
|
|
29
|
+
let t = e.relatedTarget;
|
|
30
|
+
t !== null && (x.contains(t) || g(T.current, { select: !0 }));
|
|
31
|
+
}, n = function(e) {
|
|
32
|
+
if (document.activeElement === document.body) for (let t of e) t.removedNodes.length > 0 && g(x);
|
|
33
|
+
};
|
|
34
|
+
document.addEventListener("focusin", e), document.addEventListener("focusout", t);
|
|
35
|
+
let r = new MutationObserver(n);
|
|
36
|
+
return x && r.observe(x, {
|
|
37
|
+
childList: !0,
|
|
38
|
+
subtree: !0
|
|
39
|
+
}), () => {
|
|
40
|
+
document.removeEventListener("focusin", e), document.removeEventListener("focusout", t), r.disconnect();
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}, [
|
|
44
|
+
m,
|
|
45
|
+
x,
|
|
46
|
+
D.paused
|
|
47
|
+
]), r.useEffect(() => {
|
|
48
|
+
if (x) {
|
|
49
|
+
_.add(D);
|
|
50
|
+
let e = document.activeElement;
|
|
51
|
+
if (!x.contains(e)) {
|
|
52
|
+
let t = new CustomEvent(a, s);
|
|
53
|
+
x.addEventListener(a, C), x.dispatchEvent(t), t.defaultPrevented || (u(b(f(x)), { select: !0 }), document.activeElement === e && g(x));
|
|
54
|
+
}
|
|
55
|
+
return () => {
|
|
56
|
+
x.removeEventListener(a, C), setTimeout(() => {
|
|
57
|
+
let t = new CustomEvent(o, s);
|
|
58
|
+
x.addEventListener(o, w), x.dispatchEvent(t), t.defaultPrevented || g(e ?? document.body, { select: !0 }), x.removeEventListener(o, w), _.remove(D);
|
|
59
|
+
}, 0);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}, [
|
|
63
|
+
x,
|
|
64
|
+
C,
|
|
65
|
+
w,
|
|
66
|
+
D
|
|
67
|
+
]);
|
|
68
|
+
let O = r.useCallback((e) => {
|
|
69
|
+
if (!p && !m || D.paused) return;
|
|
70
|
+
let t = e.key === "Tab" && !e.altKey && !e.ctrlKey && !e.metaKey, n = document.activeElement;
|
|
71
|
+
if (t && n) {
|
|
72
|
+
let t = e.currentTarget, [r, i] = d(t);
|
|
73
|
+
r && i ? !e.shiftKey && n === i ? (e.preventDefault(), p && g(r, { select: !0 })) : e.shiftKey && n === r && (e.preventDefault(), p && g(i, { select: !0 })) : n === t && e.preventDefault();
|
|
74
|
+
}
|
|
75
|
+
}, [
|
|
76
|
+
p,
|
|
77
|
+
m,
|
|
78
|
+
D.paused
|
|
79
|
+
]);
|
|
80
|
+
return /* @__PURE__ */ i(t.div, {
|
|
81
|
+
tabIndex: -1,
|
|
82
|
+
...y,
|
|
83
|
+
ref: E,
|
|
84
|
+
onKeyDown: O
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
l.displayName = c;
|
|
88
|
+
function u(e, { select: t = !1 } = {}) {
|
|
89
|
+
let n = document.activeElement;
|
|
90
|
+
for (let r of e) if (g(r, { select: t }), document.activeElement !== n) return;
|
|
91
|
+
}
|
|
92
|
+
function d(e) {
|
|
93
|
+
let t = f(e);
|
|
94
|
+
return [p(t, e), p(t.reverse(), e)];
|
|
95
|
+
}
|
|
96
|
+
function f(e) {
|
|
97
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => {
|
|
98
|
+
let t = e.tagName === "INPUT" && e.type === "hidden";
|
|
99
|
+
return e.disabled || e.hidden || t ? NodeFilter.FILTER_SKIP : e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
100
|
+
} });
|
|
101
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
102
|
+
return t;
|
|
103
|
+
}
|
|
104
|
+
function p(e, t) {
|
|
105
|
+
for (let n of e) if (!m(n, { upTo: t })) return n;
|
|
106
|
+
}
|
|
107
|
+
function m(e, { upTo: t }) {
|
|
108
|
+
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
109
|
+
for (; e;) {
|
|
110
|
+
if (t !== void 0 && e === t) return !1;
|
|
111
|
+
if (getComputedStyle(e).display === "none") return !0;
|
|
112
|
+
e = e.parentElement;
|
|
113
|
+
}
|
|
114
|
+
return !1;
|
|
115
|
+
}
|
|
116
|
+
function h(e) {
|
|
117
|
+
return e instanceof HTMLInputElement && "select" in e;
|
|
118
|
+
}
|
|
119
|
+
function g(e, { select: t = !1 } = {}) {
|
|
120
|
+
if (e && e.focus) {
|
|
121
|
+
let n = document.activeElement;
|
|
122
|
+
e.focus({ preventScroll: !0 }), e !== n && h(e) && t && e.select();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
var _ = v();
|
|
126
|
+
function v() {
|
|
127
|
+
let e = [];
|
|
128
|
+
return {
|
|
129
|
+
add(t) {
|
|
130
|
+
let n = e[0];
|
|
131
|
+
t !== n && n?.pause(), e = y(e, t), e.unshift(t);
|
|
132
|
+
},
|
|
133
|
+
remove(t) {
|
|
134
|
+
e = y(e, t), e[0]?.resume();
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
function y(e, t) {
|
|
139
|
+
let n = [...e], r = n.indexOf(t);
|
|
140
|
+
return r !== -1 && n.splice(r, 1), n;
|
|
141
|
+
}
|
|
142
|
+
function b(e) {
|
|
143
|
+
return e.filter((e) => e.tagName !== "A");
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
146
|
+
export { l as FocusScope };
|
|
@@ -0,0 +1,161 @@
|
|
|
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 { composeEventHandlers as n } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
5
|
+
import { useControllableState as r } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
6
|
+
import { Primitive as i } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
7
|
+
import { Presence as a } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
|
|
8
|
+
import { DismissableLayer as o } from "../../../../../@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
|
|
9
|
+
import { Portal as s } from "../../../../../@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js";
|
|
10
|
+
import { Anchor as c, Arrow as l, Content as u, Root2 as d, createPopperScope as f } from "../../../../../@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js";
|
|
11
|
+
import * as p from "react";
|
|
12
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
13
|
+
//#region node_modules/.pnpm/@radix-ui+react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.mjs
|
|
14
|
+
var h, g = "HoverCard", [_, v] = e(g, [f]), y = f(), [b, x] = _(g), S = (e) => {
|
|
15
|
+
let { __scopeHoverCard: t, children: n, open: i, defaultOpen: a, onOpenChange: o, openDelay: s = 700, closeDelay: c = 300 } = e, l = y(t), u = p.useRef(0), f = p.useRef(0), h = p.useRef(!1), _ = p.useRef(!1), [v, x] = r({
|
|
16
|
+
prop: i,
|
|
17
|
+
defaultProp: a ?? !1,
|
|
18
|
+
onChange: o,
|
|
19
|
+
caller: g
|
|
20
|
+
}), S = p.useCallback(() => {
|
|
21
|
+
clearTimeout(f.current), u.current = window.setTimeout(() => x(!0), s);
|
|
22
|
+
}, [s, x]), C = p.useCallback(() => {
|
|
23
|
+
clearTimeout(u.current), !h.current && !_.current && (f.current = window.setTimeout(() => x(!1), c));
|
|
24
|
+
}, [c, x]), w = p.useCallback(() => x(!1), [x]);
|
|
25
|
+
return p.useEffect(() => () => {
|
|
26
|
+
clearTimeout(u.current), clearTimeout(f.current);
|
|
27
|
+
}, []), /* @__PURE__ */ m(b, {
|
|
28
|
+
scope: t,
|
|
29
|
+
open: v,
|
|
30
|
+
onOpenChange: x,
|
|
31
|
+
onOpen: S,
|
|
32
|
+
onClose: C,
|
|
33
|
+
onDismiss: w,
|
|
34
|
+
hasSelectionRef: h,
|
|
35
|
+
isPointerDownOnContentRef: _,
|
|
36
|
+
children: /* @__PURE__ */ m(d, {
|
|
37
|
+
...l,
|
|
38
|
+
children: n
|
|
39
|
+
})
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
S.displayName = g;
|
|
43
|
+
var C = "HoverCardTrigger", w = p.forwardRef((e, t) => {
|
|
44
|
+
let { __scopeHoverCard: r, ...a } = e, o = x(C, r);
|
|
45
|
+
return /* @__PURE__ */ m(c, {
|
|
46
|
+
asChild: !0,
|
|
47
|
+
...y(r),
|
|
48
|
+
children: /* @__PURE__ */ m(i.a, {
|
|
49
|
+
"data-state": o.open ? "open" : "closed",
|
|
50
|
+
...a,
|
|
51
|
+
ref: t,
|
|
52
|
+
onPointerEnter: n(e.onPointerEnter, P(o.onOpen)),
|
|
53
|
+
onPointerLeave: n(e.onPointerLeave, P(o.onClose)),
|
|
54
|
+
onFocus: n(e.onFocus, o.onOpen),
|
|
55
|
+
onBlur: n(e.onBlur, o.onClose),
|
|
56
|
+
onTouchStart: n(e.onTouchStart, (e) => e.preventDefault())
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
w.displayName = C;
|
|
61
|
+
var T = "HoverCardPortal", [E, D] = _(T, { forceMount: void 0 }), O = (e) => {
|
|
62
|
+
let { __scopeHoverCard: t, forceMount: n, children: r, container: i } = e, o = x(T, t);
|
|
63
|
+
return /* @__PURE__ */ m(E, {
|
|
64
|
+
scope: t,
|
|
65
|
+
forceMount: n,
|
|
66
|
+
children: /* @__PURE__ */ m(a, {
|
|
67
|
+
present: n || o.open,
|
|
68
|
+
children: /* @__PURE__ */ m(s, {
|
|
69
|
+
asChild: !0,
|
|
70
|
+
container: i,
|
|
71
|
+
children: r
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
});
|
|
75
|
+
};
|
|
76
|
+
O.displayName = T;
|
|
77
|
+
var k = "HoverCardContent", A = p.forwardRef((e, t) => {
|
|
78
|
+
let r = D(k, e.__scopeHoverCard), { forceMount: i = r.forceMount, ...o } = e, s = x(k, e.__scopeHoverCard);
|
|
79
|
+
return /* @__PURE__ */ m(a, {
|
|
80
|
+
present: i || s.open,
|
|
81
|
+
children: /* @__PURE__ */ m(j, {
|
|
82
|
+
"data-state": s.open ? "open" : "closed",
|
|
83
|
+
...o,
|
|
84
|
+
onPointerEnter: n(e.onPointerEnter, P(s.onOpen)),
|
|
85
|
+
onPointerLeave: n(e.onPointerLeave, P(s.onClose)),
|
|
86
|
+
ref: t
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
A.displayName = k;
|
|
91
|
+
var j = p.forwardRef((e, r) => {
|
|
92
|
+
let { __scopeHoverCard: i, onEscapeKeyDown: a, onPointerDownOutside: s, onFocusOutside: c, onInteractOutside: l, ...d } = e, f = x(k, i), g = y(i), _ = p.useRef(null), v = t(r, _), [b, S] = p.useState(!1);
|
|
93
|
+
return p.useEffect(() => {
|
|
94
|
+
if (b) {
|
|
95
|
+
let e = document.body;
|
|
96
|
+
return h = e.style.userSelect || e.style.webkitUserSelect, e.style.userSelect = "none", e.style.webkitUserSelect = "none", () => {
|
|
97
|
+
e.style.userSelect = h, e.style.webkitUserSelect = h;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
}, [b]), p.useEffect(() => {
|
|
101
|
+
if (_.current) {
|
|
102
|
+
let e = () => {
|
|
103
|
+
S(!1), f.isPointerDownOnContentRef.current = !1, setTimeout(() => {
|
|
104
|
+
document.getSelection()?.toString() !== "" && (f.hasSelectionRef.current = !0);
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
return document.addEventListener("pointerup", e), () => {
|
|
108
|
+
document.removeEventListener("pointerup", e), f.hasSelectionRef.current = !1, f.isPointerDownOnContentRef.current = !1;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
}, [f.isPointerDownOnContentRef, f.hasSelectionRef]), p.useEffect(() => {
|
|
112
|
+
_.current && F(_.current).forEach((e) => e.setAttribute("tabindex", "-1"));
|
|
113
|
+
}), /* @__PURE__ */ m(o, {
|
|
114
|
+
asChild: !0,
|
|
115
|
+
disableOutsidePointerEvents: !1,
|
|
116
|
+
onInteractOutside: l,
|
|
117
|
+
onEscapeKeyDown: a,
|
|
118
|
+
onPointerDownOutside: s,
|
|
119
|
+
onFocusOutside: n(c, (e) => {
|
|
120
|
+
e.preventDefault();
|
|
121
|
+
}),
|
|
122
|
+
onDismiss: f.onDismiss,
|
|
123
|
+
children: /* @__PURE__ */ m(u, {
|
|
124
|
+
...g,
|
|
125
|
+
...d,
|
|
126
|
+
onPointerDown: n(d.onPointerDown, (e) => {
|
|
127
|
+
e.currentTarget.contains(e.target) && S(!0), f.hasSelectionRef.current = !1, f.isPointerDownOnContentRef.current = !0;
|
|
128
|
+
}),
|
|
129
|
+
ref: v,
|
|
130
|
+
style: {
|
|
131
|
+
...d.style,
|
|
132
|
+
userSelect: b ? "text" : void 0,
|
|
133
|
+
WebkitUserSelect: b ? "text" : void 0,
|
|
134
|
+
"--radix-hover-card-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
135
|
+
"--radix-hover-card-content-available-width": "var(--radix-popper-available-width)",
|
|
136
|
+
"--radix-hover-card-content-available-height": "var(--radix-popper-available-height)",
|
|
137
|
+
"--radix-hover-card-trigger-width": "var(--radix-popper-anchor-width)",
|
|
138
|
+
"--radix-hover-card-trigger-height": "var(--radix-popper-anchor-height)"
|
|
139
|
+
}
|
|
140
|
+
})
|
|
141
|
+
});
|
|
142
|
+
}), M = "HoverCardArrow", N = p.forwardRef((e, t) => {
|
|
143
|
+
let { __scopeHoverCard: n, ...r } = e;
|
|
144
|
+
return /* @__PURE__ */ m(l, {
|
|
145
|
+
...y(n),
|
|
146
|
+
...r,
|
|
147
|
+
ref: t
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
N.displayName = M;
|
|
151
|
+
function P(e) {
|
|
152
|
+
return (t) => t.pointerType === "touch" ? void 0 : e();
|
|
153
|
+
}
|
|
154
|
+
function F(e) {
|
|
155
|
+
let t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, { acceptNode: (e) => e.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP });
|
|
156
|
+
for (; n.nextNode();) t.push(n.currentNode);
|
|
157
|
+
return t;
|
|
158
|
+
}
|
|
159
|
+
var I = S, L = w, R = O, z = A;
|
|
160
|
+
//#endregion
|
|
161
|
+
export { z as Content2, R as Portal, I as Root2, L as Trigger };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useLayoutEffect2 as e } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
//#region 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.mjs
|
|
4
|
+
var n = t.useId || (() => void 0), r = 0;
|
|
5
|
+
function i(i) {
|
|
6
|
+
let [a, o] = t.useState(n());
|
|
7
|
+
return e(() => {
|
|
8
|
+
i || o((e) => e ?? String(r++));
|
|
9
|
+
}, [i]), i || (a ? `radix-${a}` : "");
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { i as useId };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Primitive as e } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region node_modules/.pnpm/@radix-ui+react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.mjs
|
|
6
|
+
var r = "Label", i = t.forwardRef((t, r) => /* @__PURE__ */ n(e.label, {
|
|
7
|
+
...t,
|
|
8
|
+
ref: r,
|
|
9
|
+
onMouseDown: (e) => {
|
|
10
|
+
e.target.closest("button, input, select, textarea") || (t.onMouseDown?.(e), !e.defaultPrevented && e.detail > 1 && e.preventDefault());
|
|
11
|
+
}
|
|
12
|
+
}));
|
|
13
|
+
i.displayName = r;
|
|
14
|
+
var a = i;
|
|
15
|
+
//#endregion
|
|
16
|
+
export { a as Root };
|