@inspirare/design-system 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/package.json +5 -5
- 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,240 +0,0 @@
|
|
|
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 { composeEventHandlers as t } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
4
|
-
import { useControllableState as n } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/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 { Anchor2 as i, Arrow2 as a, CheckboxItem as o, Content2 as s, Group as c, Item2 as l, ItemIndicator as u, Label as d, Portal as f, RadioGroup as p, RadioItem as m, Root3 as h, Separator as g, Sub as ee, SubContent as te, SubTrigger as ne, createMenuScope as _ } from "../../../../../@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js";
|
|
7
|
-
import * as v from "react";
|
|
8
|
-
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
9
|
-
//#region node_modules/.pnpm/@radix-ui+react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.mjs
|
|
10
|
-
var S = "ContextMenu", [C, re] = e(S, [_]), w = _(), [ie, T] = C(S), E = (e) => {
|
|
11
|
-
let { __scopeContextMenu: t, children: r, onOpenChange: i, open: a, dir: o, modal: s = !0 } = e, c = v.useRef(!1);
|
|
12
|
-
{
|
|
13
|
-
let e = v.useRef(!1);
|
|
14
|
-
v.useEffect(() => {
|
|
15
|
-
a === !0 && !c.current && !e.current && (e.current = !0, console.warn("ContextMenu: The `open` prop has been set to `true` before the user has interacted with the trigger, so its position is indeterminate. This is likely unintended and will result in the menu being anchored to the top-left corner of the viewport."));
|
|
16
|
-
}, [a]);
|
|
17
|
-
}
|
|
18
|
-
let [l, u] = n({
|
|
19
|
-
prop: a,
|
|
20
|
-
defaultProp: !1,
|
|
21
|
-
onChange: i,
|
|
22
|
-
caller: S
|
|
23
|
-
});
|
|
24
|
-
return /* @__PURE__ */ b(ie, {
|
|
25
|
-
scope: t,
|
|
26
|
-
open: l,
|
|
27
|
-
onOpenChange: u,
|
|
28
|
-
modal: s,
|
|
29
|
-
hasInteractedRef: c,
|
|
30
|
-
children: /* @__PURE__ */ b(h, {
|
|
31
|
-
...w(t),
|
|
32
|
-
dir: o,
|
|
33
|
-
open: l,
|
|
34
|
-
onOpenChange: u,
|
|
35
|
-
modal: s,
|
|
36
|
-
children: r
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
E.displayName = S;
|
|
41
|
-
var D = "ContextMenuTrigger", O = v.forwardRef((e, n) => {
|
|
42
|
-
let { __scopeContextMenu: a, disabled: o = !1, ...s } = e, c = T(D, a), l = w(a), u = v.useRef({
|
|
43
|
-
x: 0,
|
|
44
|
-
y: 0
|
|
45
|
-
}), d = v.useRef({ getBoundingClientRect: () => DOMRect.fromRect({
|
|
46
|
-
width: 0,
|
|
47
|
-
height: 0,
|
|
48
|
-
...u.current
|
|
49
|
-
}) }), f = v.useRef(0), p = v.useCallback(() => window.clearTimeout(f.current), []), m = (e) => {
|
|
50
|
-
c.hasInteractedRef.current = !0, u.current = {
|
|
51
|
-
x: e.clientX,
|
|
52
|
-
y: e.clientY
|
|
53
|
-
}, c.onOpenChange(!0);
|
|
54
|
-
};
|
|
55
|
-
return v.useEffect(() => p, [p]), v.useEffect(() => void (o && p()), [o, p]), /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(i, {
|
|
56
|
-
...l,
|
|
57
|
-
virtualRef: d
|
|
58
|
-
}), /* @__PURE__ */ b(r.span, {
|
|
59
|
-
"data-state": c.open ? "open" : "closed",
|
|
60
|
-
"data-disabled": o ? "" : void 0,
|
|
61
|
-
...s,
|
|
62
|
-
ref: n,
|
|
63
|
-
style: {
|
|
64
|
-
WebkitTouchCallout: "none",
|
|
65
|
-
...e.style
|
|
66
|
-
},
|
|
67
|
-
onContextMenu: o ? e.onContextMenu : t(e.onContextMenu, (e) => {
|
|
68
|
-
p(), m(e), e.preventDefault();
|
|
69
|
-
}),
|
|
70
|
-
onPointerDown: o ? e.onPointerDown : t(e.onPointerDown, Q((e) => {
|
|
71
|
-
p(), c.open && c.onOpenChange(!1), f.current = window.setTimeout(() => m(e), 700);
|
|
72
|
-
})),
|
|
73
|
-
onPointerMove: o ? e.onPointerMove : t(e.onPointerMove, Q(p)),
|
|
74
|
-
onPointerCancel: o ? e.onPointerCancel : t(e.onPointerCancel, Q(p)),
|
|
75
|
-
onPointerUp: o ? e.onPointerUp : t(e.onPointerUp, Q(p))
|
|
76
|
-
})] });
|
|
77
|
-
});
|
|
78
|
-
O.displayName = D;
|
|
79
|
-
var k = "ContextMenuPortal", A = (e) => {
|
|
80
|
-
let { __scopeContextMenu: t, ...n } = e;
|
|
81
|
-
return /* @__PURE__ */ b(f, {
|
|
82
|
-
...w(t),
|
|
83
|
-
...n
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
A.displayName = k;
|
|
87
|
-
var j = "ContextMenuContent", M = v.forwardRef((e, t) => {
|
|
88
|
-
let { __scopeContextMenu: n, ...r } = e, i = T(j, n), a = w(n), o = v.useRef(!1);
|
|
89
|
-
return /* @__PURE__ */ b(s, {
|
|
90
|
-
...a,
|
|
91
|
-
...r,
|
|
92
|
-
ref: t,
|
|
93
|
-
side: "right",
|
|
94
|
-
sideOffset: 2,
|
|
95
|
-
align: "start",
|
|
96
|
-
onCloseAutoFocus: (t) => {
|
|
97
|
-
e.onCloseAutoFocus?.(t), !t.defaultPrevented && o.current && t.preventDefault(), o.current = !1;
|
|
98
|
-
},
|
|
99
|
-
onInteractOutside: (t) => {
|
|
100
|
-
e.onInteractOutside?.(t), !t.defaultPrevented && !i.modal && (o.current = !0);
|
|
101
|
-
},
|
|
102
|
-
style: {
|
|
103
|
-
...e.style,
|
|
104
|
-
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
105
|
-
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
106
|
-
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
107
|
-
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
108
|
-
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
M.displayName = j;
|
|
113
|
-
var ae = "ContextMenuGroup", N = v.forwardRef((e, t) => {
|
|
114
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
115
|
-
return /* @__PURE__ */ b(c, {
|
|
116
|
-
...w(n),
|
|
117
|
-
...r,
|
|
118
|
-
ref: t
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
N.displayName = ae;
|
|
122
|
-
var oe = "ContextMenuLabel", P = v.forwardRef((e, t) => {
|
|
123
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
124
|
-
return /* @__PURE__ */ b(d, {
|
|
125
|
-
...w(n),
|
|
126
|
-
...r,
|
|
127
|
-
ref: t
|
|
128
|
-
});
|
|
129
|
-
});
|
|
130
|
-
P.displayName = oe;
|
|
131
|
-
var F = "ContextMenuItem", I = v.forwardRef((e, t) => {
|
|
132
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
133
|
-
return /* @__PURE__ */ b(l, {
|
|
134
|
-
...w(n),
|
|
135
|
-
...r,
|
|
136
|
-
ref: t
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
I.displayName = F;
|
|
140
|
-
var L = "ContextMenuCheckboxItem", R = v.forwardRef((e, t) => {
|
|
141
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
142
|
-
return /* @__PURE__ */ b(o, {
|
|
143
|
-
...w(n),
|
|
144
|
-
...r,
|
|
145
|
-
ref: t
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
R.displayName = L;
|
|
149
|
-
var z = "ContextMenuRadioGroup", B = v.forwardRef((e, t) => {
|
|
150
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
151
|
-
return /* @__PURE__ */ b(p, {
|
|
152
|
-
...w(n),
|
|
153
|
-
...r,
|
|
154
|
-
ref: t
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
B.displayName = z;
|
|
158
|
-
var V = "ContextMenuRadioItem", H = v.forwardRef((e, t) => {
|
|
159
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
160
|
-
return /* @__PURE__ */ b(m, {
|
|
161
|
-
...w(n),
|
|
162
|
-
...r,
|
|
163
|
-
ref: t
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
H.displayName = V;
|
|
167
|
-
var U = "ContextMenuItemIndicator", W = v.forwardRef((e, t) => {
|
|
168
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
169
|
-
return /* @__PURE__ */ b(u, {
|
|
170
|
-
...w(n),
|
|
171
|
-
...r,
|
|
172
|
-
ref: t
|
|
173
|
-
});
|
|
174
|
-
});
|
|
175
|
-
W.displayName = U;
|
|
176
|
-
var G = "ContextMenuSeparator", K = v.forwardRef((e, t) => {
|
|
177
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
178
|
-
return /* @__PURE__ */ b(g, {
|
|
179
|
-
...w(n),
|
|
180
|
-
...r,
|
|
181
|
-
ref: t
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
K.displayName = G;
|
|
185
|
-
var q = "ContextMenuArrow", se = v.forwardRef((e, t) => {
|
|
186
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
187
|
-
return /* @__PURE__ */ b(a, {
|
|
188
|
-
...w(n),
|
|
189
|
-
...r,
|
|
190
|
-
ref: t
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
se.displayName = q;
|
|
194
|
-
var J = "ContextMenuSub", Y = (e) => {
|
|
195
|
-
let { __scopeContextMenu: t, children: r, onOpenChange: i, open: a, defaultOpen: o } = e, s = w(t), [c, l] = n({
|
|
196
|
-
prop: a,
|
|
197
|
-
defaultProp: o ?? !1,
|
|
198
|
-
onChange: i,
|
|
199
|
-
caller: J
|
|
200
|
-
});
|
|
201
|
-
return /* @__PURE__ */ b(ee, {
|
|
202
|
-
...s,
|
|
203
|
-
open: c,
|
|
204
|
-
onOpenChange: l,
|
|
205
|
-
children: r
|
|
206
|
-
});
|
|
207
|
-
};
|
|
208
|
-
Y.displayName = J;
|
|
209
|
-
var ce = "ContextMenuSubTrigger", X = v.forwardRef((e, t) => {
|
|
210
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
211
|
-
return /* @__PURE__ */ b(ne, {
|
|
212
|
-
...w(n),
|
|
213
|
-
...r,
|
|
214
|
-
ref: t
|
|
215
|
-
});
|
|
216
|
-
});
|
|
217
|
-
X.displayName = ce;
|
|
218
|
-
var le = "ContextMenuSubContent", Z = v.forwardRef((e, t) => {
|
|
219
|
-
let { __scopeContextMenu: n, ...r } = e;
|
|
220
|
-
return /* @__PURE__ */ b(te, {
|
|
221
|
-
...w(n),
|
|
222
|
-
...r,
|
|
223
|
-
ref: t,
|
|
224
|
-
style: {
|
|
225
|
-
...e.style,
|
|
226
|
-
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
227
|
-
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
228
|
-
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
229
|
-
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
230
|
-
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
231
|
-
}
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
Z.displayName = le;
|
|
235
|
-
function Q(e) {
|
|
236
|
-
return (t) => t.pointerType === "mouse" ? void 0 : e(t);
|
|
237
|
-
}
|
|
238
|
-
var ue = E, de = O, fe = A, pe = M, me = N, he = P, $ = I, ge = R, _e = B, ve = H, ye = W, be = K, xe = Y, Se = X, Ce = Z;
|
|
239
|
-
//#endregion
|
|
240
|
-
export { ge as CheckboxItem2, pe as Content2, me as Group2, $ as Item2, ye as ItemIndicator2, he as Label2, fe as Portal2, _e as RadioGroup2, ve as RadioItem2, ue as Root2, be as Separator2, xe as Sub2, Ce as SubContent2, Se as SubTrigger2, de as Trigger };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import * as e from "react";
|
|
2
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
-
//#region node_modules/.pnpm/@radix-ui+react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
4
|
-
function n(n, r) {
|
|
5
|
-
let i = e.createContext(r);
|
|
6
|
-
i.displayName = n + "Context";
|
|
7
|
-
let a = (n) => {
|
|
8
|
-
let { children: r, ...a } = n, o = e.useMemo(() => a, Object.values(a));
|
|
9
|
-
return /* @__PURE__ */ t(i.Provider, {
|
|
10
|
-
value: o,
|
|
11
|
-
children: r
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
a.displayName = n + "Provider";
|
|
15
|
-
function o(t) {
|
|
16
|
-
let a = e.useContext(i);
|
|
17
|
-
if (a) return a;
|
|
18
|
-
if (r !== void 0) return r;
|
|
19
|
-
throw Error(`\`${t}\` must be used within \`${n}\``);
|
|
20
|
-
}
|
|
21
|
-
return [a, o];
|
|
22
|
-
}
|
|
23
|
-
function r(n, r = []) {
|
|
24
|
-
let a = [];
|
|
25
|
-
function o(r, i) {
|
|
26
|
-
let o = e.createContext(i);
|
|
27
|
-
o.displayName = r + "Context";
|
|
28
|
-
let s = a.length;
|
|
29
|
-
a = [...a, i];
|
|
30
|
-
let c = (r) => {
|
|
31
|
-
let { scope: i, children: a, ...c } = r, l = i?.[n]?.[s] || o, u = e.useMemo(() => c, Object.values(c));
|
|
32
|
-
return /* @__PURE__ */ t(l.Provider, {
|
|
33
|
-
value: u,
|
|
34
|
-
children: a
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
c.displayName = r + "Provider";
|
|
38
|
-
function l(t, a) {
|
|
39
|
-
let c = a?.[n]?.[s] || o, l = e.useContext(c);
|
|
40
|
-
if (l) return l;
|
|
41
|
-
if (i !== void 0) return i;
|
|
42
|
-
throw Error(`\`${t}\` must be used within \`${r}\``);
|
|
43
|
-
}
|
|
44
|
-
return [c, l];
|
|
45
|
-
}
|
|
46
|
-
let s = () => {
|
|
47
|
-
let t = a.map((t) => e.createContext(t));
|
|
48
|
-
return function(r) {
|
|
49
|
-
let i = r?.[n] || t;
|
|
50
|
-
return e.useMemo(() => ({ [`__scope${n}`]: {
|
|
51
|
-
...r,
|
|
52
|
-
[n]: i
|
|
53
|
-
} }), [r, i]);
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
return s.scopeName = n, [o, i(s, ...r)];
|
|
57
|
-
}
|
|
58
|
-
function i(...t) {
|
|
59
|
-
let n = t[0];
|
|
60
|
-
if (t.length === 1) return n;
|
|
61
|
-
let r = () => {
|
|
62
|
-
let r = t.map((e) => ({
|
|
63
|
-
useScope: e(),
|
|
64
|
-
scopeName: e.scopeName
|
|
65
|
-
}));
|
|
66
|
-
return function(t) {
|
|
67
|
-
let i = r.reduce((e, { useScope: n, scopeName: r }) => {
|
|
68
|
-
let i = n(t)[`__scope${r}`];
|
|
69
|
-
return {
|
|
70
|
-
...e,
|
|
71
|
-
...i
|
|
72
|
-
};
|
|
73
|
-
}, {});
|
|
74
|
-
return e.useMemo(() => ({ [`__scope${n.scopeName}`]: i }), [i]);
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
return r.scopeName = n.scopeName, r;
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
|
-
export { n as createContext2, r as createContextScope };
|
|
@@ -1,225 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { createContext2 as e, createContextScope as t } from "../../../../../@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js";
|
|
3
|
-
import { useComposedRefs as n } from "../../../../../@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js";
|
|
4
|
-
import { createSlot as r } 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 i } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
6
|
-
import { useControllableState as a } from "../../../../../@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js";
|
|
7
|
-
import { Primitive as o } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
8
|
-
import { Presence as s } from "../../../../../@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js";
|
|
9
|
-
import { useId as c } 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 l } from "../../../../../@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js";
|
|
11
|
-
import { FocusScope as u } from "../../../../../@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js";
|
|
12
|
-
import { Portal as d } from "../../../../../@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js";
|
|
13
|
-
import { useFocusGuards as f } from "../../../../../@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js";
|
|
14
|
-
import p 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 m } from "../../../../../aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js";
|
|
16
|
-
import * as h from "react";
|
|
17
|
-
import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
18
|
-
//#region node_modules/.pnpm/@radix-ui+react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.mjs
|
|
19
|
-
var y = "Dialog", [b, ee] = t(y), [x, S] = b(y), C = (e) => {
|
|
20
|
-
let { __scopeDialog: t, children: n, open: r, defaultOpen: i, onOpenChange: o, modal: s = !0 } = e, l = h.useRef(null), u = h.useRef(null), [d, f] = a({
|
|
21
|
-
prop: r,
|
|
22
|
-
defaultProp: i ?? !1,
|
|
23
|
-
onChange: o,
|
|
24
|
-
caller: y
|
|
25
|
-
});
|
|
26
|
-
return /* @__PURE__ */ _(x, {
|
|
27
|
-
scope: t,
|
|
28
|
-
triggerRef: l,
|
|
29
|
-
contentRef: u,
|
|
30
|
-
contentId: c(),
|
|
31
|
-
titleId: c(),
|
|
32
|
-
descriptionId: c(),
|
|
33
|
-
open: d,
|
|
34
|
-
onOpenChange: f,
|
|
35
|
-
onOpenToggle: h.useCallback(() => f((e) => !e), [f]),
|
|
36
|
-
modal: s,
|
|
37
|
-
children: n
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
C.displayName = y;
|
|
41
|
-
var w = "DialogTrigger", T = h.forwardRef((e, t) => {
|
|
42
|
-
let { __scopeDialog: r, ...a } = e, s = S(w, r), c = n(t, s.triggerRef);
|
|
43
|
-
return /* @__PURE__ */ _(o.button, {
|
|
44
|
-
type: "button",
|
|
45
|
-
"aria-haspopup": "dialog",
|
|
46
|
-
"aria-expanded": s.open,
|
|
47
|
-
"aria-controls": s.open ? s.contentId : void 0,
|
|
48
|
-
"data-state": G(s.open),
|
|
49
|
-
...a,
|
|
50
|
-
ref: c,
|
|
51
|
-
onClick: i(e.onClick, s.onOpenToggle)
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
T.displayName = w;
|
|
55
|
-
var E = "DialogPortal", [D, O] = b(E, { forceMount: void 0 }), k = (e) => {
|
|
56
|
-
let { __scopeDialog: t, forceMount: n, children: r, container: i } = e, a = S(E, t);
|
|
57
|
-
return /* @__PURE__ */ _(D, {
|
|
58
|
-
scope: t,
|
|
59
|
-
forceMount: n,
|
|
60
|
-
children: h.Children.map(r, (e) => /* @__PURE__ */ _(s, {
|
|
61
|
-
present: n || a.open,
|
|
62
|
-
children: /* @__PURE__ */ _(d, {
|
|
63
|
-
asChild: !0,
|
|
64
|
-
container: i,
|
|
65
|
-
children: e
|
|
66
|
-
})
|
|
67
|
-
}))
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
k.displayName = E;
|
|
71
|
-
var A = "DialogOverlay", j = h.forwardRef((e, t) => {
|
|
72
|
-
let n = O(A, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(A, e.__scopeDialog);
|
|
73
|
-
return a.modal ? /* @__PURE__ */ _(s, {
|
|
74
|
-
present: r || a.open,
|
|
75
|
-
children: /* @__PURE__ */ _(N, {
|
|
76
|
-
...i,
|
|
77
|
-
ref: t
|
|
78
|
-
})
|
|
79
|
-
}) : null;
|
|
80
|
-
});
|
|
81
|
-
j.displayName = A;
|
|
82
|
-
var M = r("DialogOverlay.RemoveScroll"), N = h.forwardRef((e, t) => {
|
|
83
|
-
let { __scopeDialog: n, ...r } = e, i = S(A, n);
|
|
84
|
-
return /* @__PURE__ */ _(p, {
|
|
85
|
-
as: M,
|
|
86
|
-
allowPinchZoom: !0,
|
|
87
|
-
shards: [i.contentRef],
|
|
88
|
-
children: /* @__PURE__ */ _(o.div, {
|
|
89
|
-
"data-state": G(i.open),
|
|
90
|
-
...r,
|
|
91
|
-
ref: t,
|
|
92
|
-
style: {
|
|
93
|
-
pointerEvents: "auto",
|
|
94
|
-
...r.style
|
|
95
|
-
}
|
|
96
|
-
})
|
|
97
|
-
});
|
|
98
|
-
}), P = "DialogContent", F = h.forwardRef((e, t) => {
|
|
99
|
-
let n = O(P, e.__scopeDialog), { forceMount: r = n.forceMount, ...i } = e, a = S(P, e.__scopeDialog);
|
|
100
|
-
return /* @__PURE__ */ _(s, {
|
|
101
|
-
present: r || a.open,
|
|
102
|
-
children: a.modal ? /* @__PURE__ */ _(I, {
|
|
103
|
-
...i,
|
|
104
|
-
ref: t
|
|
105
|
-
}) : /* @__PURE__ */ _(L, {
|
|
106
|
-
...i,
|
|
107
|
-
ref: t
|
|
108
|
-
})
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
F.displayName = P;
|
|
112
|
-
var I = h.forwardRef((e, t) => {
|
|
113
|
-
let r = S(P, e.__scopeDialog), a = h.useRef(null), o = n(t, r.contentRef, a);
|
|
114
|
-
return h.useEffect(() => {
|
|
115
|
-
let e = a.current;
|
|
116
|
-
if (e) return m(e);
|
|
117
|
-
}, []), /* @__PURE__ */ _(R, {
|
|
118
|
-
...e,
|
|
119
|
-
ref: o,
|
|
120
|
-
trapFocus: r.open,
|
|
121
|
-
disableOutsidePointerEvents: r.open,
|
|
122
|
-
onCloseAutoFocus: i(e.onCloseAutoFocus, (e) => {
|
|
123
|
-
e.preventDefault(), r.triggerRef.current?.focus();
|
|
124
|
-
}),
|
|
125
|
-
onPointerDownOutside: i(e.onPointerDownOutside, (e) => {
|
|
126
|
-
let t = e.detail.originalEvent, n = t.button === 0 && t.ctrlKey === !0;
|
|
127
|
-
(t.button === 2 || n) && e.preventDefault();
|
|
128
|
-
}),
|
|
129
|
-
onFocusOutside: i(e.onFocusOutside, (e) => e.preventDefault())
|
|
130
|
-
});
|
|
131
|
-
}), L = h.forwardRef((e, t) => {
|
|
132
|
-
let n = S(P, e.__scopeDialog), r = h.useRef(!1), i = h.useRef(!1);
|
|
133
|
-
return /* @__PURE__ */ _(R, {
|
|
134
|
-
...e,
|
|
135
|
-
ref: t,
|
|
136
|
-
trapFocus: !1,
|
|
137
|
-
disableOutsidePointerEvents: !1,
|
|
138
|
-
onCloseAutoFocus: (t) => {
|
|
139
|
-
e.onCloseAutoFocus?.(t), t.defaultPrevented || (r.current || n.triggerRef.current?.focus(), t.preventDefault()), r.current = !1, i.current = !1;
|
|
140
|
-
},
|
|
141
|
-
onInteractOutside: (t) => {
|
|
142
|
-
e.onInteractOutside?.(t), t.defaultPrevented || (r.current = !0, t.detail.originalEvent.type === "pointerdown" && (i.current = !0));
|
|
143
|
-
let a = t.target;
|
|
144
|
-
n.triggerRef.current?.contains(a) && t.preventDefault(), t.detail.originalEvent.type === "focusin" && i.current && t.preventDefault();
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
}), R = h.forwardRef((e, t) => {
|
|
148
|
-
let { __scopeDialog: r, trapFocus: i, onOpenAutoFocus: a, onCloseAutoFocus: o, ...s } = e, c = S(P, r), d = h.useRef(null), p = n(t, d);
|
|
149
|
-
return f(), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(u, {
|
|
150
|
-
asChild: !0,
|
|
151
|
-
loop: !0,
|
|
152
|
-
trapped: i,
|
|
153
|
-
onMountAutoFocus: a,
|
|
154
|
-
onUnmountAutoFocus: o,
|
|
155
|
-
children: /* @__PURE__ */ _(l, {
|
|
156
|
-
role: "dialog",
|
|
157
|
-
id: c.contentId,
|
|
158
|
-
"aria-describedby": c.descriptionId,
|
|
159
|
-
"aria-labelledby": c.titleId,
|
|
160
|
-
"data-state": G(c.open),
|
|
161
|
-
...s,
|
|
162
|
-
ref: p,
|
|
163
|
-
onDismiss: () => c.onOpenChange(!1)
|
|
164
|
-
})
|
|
165
|
-
}), /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Y, { titleId: c.titleId }), /* @__PURE__ */ _(Z, {
|
|
166
|
-
contentRef: d,
|
|
167
|
-
descriptionId: c.descriptionId
|
|
168
|
-
})] })] });
|
|
169
|
-
}), z = "DialogTitle", B = h.forwardRef((e, t) => {
|
|
170
|
-
let { __scopeDialog: n, ...r } = e, i = S(z, n);
|
|
171
|
-
return /* @__PURE__ */ _(o.h2, {
|
|
172
|
-
id: i.titleId,
|
|
173
|
-
...r,
|
|
174
|
-
ref: t
|
|
175
|
-
});
|
|
176
|
-
});
|
|
177
|
-
B.displayName = z;
|
|
178
|
-
var V = "DialogDescription", H = h.forwardRef((e, t) => {
|
|
179
|
-
let { __scopeDialog: n, ...r } = e, i = S(V, n);
|
|
180
|
-
return /* @__PURE__ */ _(o.p, {
|
|
181
|
-
id: i.descriptionId,
|
|
182
|
-
...r,
|
|
183
|
-
ref: t
|
|
184
|
-
});
|
|
185
|
-
});
|
|
186
|
-
H.displayName = V;
|
|
187
|
-
var U = "DialogClose", W = h.forwardRef((e, t) => {
|
|
188
|
-
let { __scopeDialog: n, ...r } = e, a = S(U, n);
|
|
189
|
-
return /* @__PURE__ */ _(o.button, {
|
|
190
|
-
type: "button",
|
|
191
|
-
...r,
|
|
192
|
-
ref: t,
|
|
193
|
-
onClick: i(e.onClick, () => a.onOpenChange(!1))
|
|
194
|
-
});
|
|
195
|
-
});
|
|
196
|
-
W.displayName = U;
|
|
197
|
-
function G(e) {
|
|
198
|
-
return e ? "open" : "closed";
|
|
199
|
-
}
|
|
200
|
-
var K = "DialogTitleWarning", [q, J] = e(K, {
|
|
201
|
-
contentName: P,
|
|
202
|
-
titleName: z,
|
|
203
|
-
docsSlug: "dialog"
|
|
204
|
-
}), Y = ({ titleId: e }) => {
|
|
205
|
-
let t = J(K), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
206
|
-
|
|
207
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
208
|
-
|
|
209
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;
|
|
210
|
-
return h.useEffect(() => {
|
|
211
|
-
e && (document.getElementById(e) || console.error(n));
|
|
212
|
-
}, [n, e]), null;
|
|
213
|
-
}, X = "DialogDescriptionWarning", Z = ({ contentRef: e, descriptionId: t }) => {
|
|
214
|
-
let n = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${J(X).contentName}}.`;
|
|
215
|
-
return h.useEffect(() => {
|
|
216
|
-
let r = e.current?.getAttribute("aria-describedby");
|
|
217
|
-
t && r && (document.getElementById(t) || console.warn(n));
|
|
218
|
-
}, [
|
|
219
|
-
n,
|
|
220
|
-
e,
|
|
221
|
-
t
|
|
222
|
-
]), null;
|
|
223
|
-
}, Q = C, te = T, ne = k, $ = j, re = F, ie = B, ae = H, oe = W;
|
|
224
|
-
//#endregion
|
|
225
|
-
export { oe as Close, re as Content, ae as Description, $ as Overlay, ne as Portal, Q as Root, ie as Title, te as Trigger, q as WarningProvider, ee as createDialogScope };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
import "react/jsx-runtime";
|
|
4
|
-
//#region node_modules/.pnpm/@radix-ui+react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
5
|
-
var t = e.createContext(void 0);
|
|
6
|
-
function n(n) {
|
|
7
|
-
let r = e.useContext(t);
|
|
8
|
-
return n || r || "ltr";
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
export { n as useDirection };
|
|
@@ -1,108 +0,0 @@
|
|
|
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 { composeEventHandlers as t } from "../../../../../@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js";
|
|
4
|
-
import { Primitive as n, dispatchDiscreteCustomEvent as r } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
5
|
-
import { useCallbackRef as i } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
6
|
-
import { useEscapeKeydown as a } from "../../../../../@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js";
|
|
7
|
-
import * as o from "react";
|
|
8
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
9
|
-
//#region node_modules/.pnpm/@radix-ui+react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
10
|
-
var c = "DismissableLayer", l = "dismissableLayer.update", u = "dismissableLayer.pointerDownOutside", d = "dismissableLayer.focusOutside", f, p = o.createContext({
|
|
11
|
-
layers: /* @__PURE__ */ new Set(),
|
|
12
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
13
|
-
branches: /* @__PURE__ */ new Set()
|
|
14
|
-
}), m = o.forwardRef((r, i) => {
|
|
15
|
-
let { disableOutsidePointerEvents: c = !1, onEscapeKeyDown: u, onPointerDownOutside: d, onFocusOutside: m, onInteractOutside: h, onDismiss: g, ...b } = r, x = o.useContext(p), [S, C] = o.useState(null), w = S?.ownerDocument ?? globalThis?.document, [, T] = o.useState({}), E = e(i, (e) => C(e)), D = Array.from(x.layers), [O] = [...x.layersWithOutsidePointerEventsDisabled].slice(-1), k = D.indexOf(O), A = S ? D.indexOf(S) : -1, j = x.layersWithOutsidePointerEventsDisabled.size > 0, M = A >= k, N = _((e) => {
|
|
16
|
-
let t = e.target, n = [...x.branches].some((e) => e.contains(t));
|
|
17
|
-
!M || n || (d?.(e), h?.(e), e.defaultPrevented || g?.());
|
|
18
|
-
}, w), P = v((e) => {
|
|
19
|
-
let t = e.target;
|
|
20
|
-
[...x.branches].some((e) => e.contains(t)) || (m?.(e), h?.(e), e.defaultPrevented || g?.());
|
|
21
|
-
}, w);
|
|
22
|
-
return a((e) => {
|
|
23
|
-
A === x.layers.size - 1 && (u?.(e), !e.defaultPrevented && g && (e.preventDefault(), g()));
|
|
24
|
-
}, w), o.useEffect(() => {
|
|
25
|
-
if (S) return c && (x.layersWithOutsidePointerEventsDisabled.size === 0 && (f = w.body.style.pointerEvents, w.body.style.pointerEvents = "none"), x.layersWithOutsidePointerEventsDisabled.add(S)), x.layers.add(S), y(), () => {
|
|
26
|
-
c && (x.layersWithOutsidePointerEventsDisabled.delete(S), x.layersWithOutsidePointerEventsDisabled.size === 0 && (w.body.style.pointerEvents = f));
|
|
27
|
-
};
|
|
28
|
-
}, [
|
|
29
|
-
S,
|
|
30
|
-
w,
|
|
31
|
-
c,
|
|
32
|
-
x
|
|
33
|
-
]), o.useEffect(() => () => {
|
|
34
|
-
S && (x.layers.delete(S), x.layersWithOutsidePointerEventsDisabled.delete(S), y());
|
|
35
|
-
}, [S, x]), o.useEffect(() => {
|
|
36
|
-
let e = () => T({});
|
|
37
|
-
return document.addEventListener(l, e), () => document.removeEventListener(l, e);
|
|
38
|
-
}, []), /* @__PURE__ */ s(n.div, {
|
|
39
|
-
...b,
|
|
40
|
-
ref: E,
|
|
41
|
-
style: {
|
|
42
|
-
pointerEvents: j ? M ? "auto" : "none" : void 0,
|
|
43
|
-
...r.style
|
|
44
|
-
},
|
|
45
|
-
onFocusCapture: t(r.onFocusCapture, P.onFocusCapture),
|
|
46
|
-
onBlurCapture: t(r.onBlurCapture, P.onBlurCapture),
|
|
47
|
-
onPointerDownCapture: t(r.onPointerDownCapture, N.onPointerDownCapture)
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
m.displayName = c;
|
|
51
|
-
var h = "DismissableLayerBranch", g = o.forwardRef((t, r) => {
|
|
52
|
-
let i = o.useContext(p), a = o.useRef(null), c = e(r, a);
|
|
53
|
-
return o.useEffect(() => {
|
|
54
|
-
let e = a.current;
|
|
55
|
-
if (e) return i.branches.add(e), () => {
|
|
56
|
-
i.branches.delete(e);
|
|
57
|
-
};
|
|
58
|
-
}, [i.branches]), /* @__PURE__ */ s(n.div, {
|
|
59
|
-
...t,
|
|
60
|
-
ref: c
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
g.displayName = h;
|
|
64
|
-
function _(e, t = globalThis?.document) {
|
|
65
|
-
let n = i(e), r = o.useRef(!1), a = o.useRef(() => {});
|
|
66
|
-
return o.useEffect(() => {
|
|
67
|
-
let e = (e) => {
|
|
68
|
-
if (e.target && !r.current) {
|
|
69
|
-
let r = function() {
|
|
70
|
-
b(u, n, i, { discrete: !0 });
|
|
71
|
-
}, i = { originalEvent: e };
|
|
72
|
-
e.pointerType === "touch" ? (t.removeEventListener("click", a.current), a.current = r, t.addEventListener("click", a.current, { once: !0 })) : r();
|
|
73
|
-
} else t.removeEventListener("click", a.current);
|
|
74
|
-
r.current = !1;
|
|
75
|
-
}, i = window.setTimeout(() => {
|
|
76
|
-
t.addEventListener("pointerdown", e);
|
|
77
|
-
}, 0);
|
|
78
|
-
return () => {
|
|
79
|
-
window.clearTimeout(i), t.removeEventListener("pointerdown", e), t.removeEventListener("click", a.current);
|
|
80
|
-
};
|
|
81
|
-
}, [t, n]), { onPointerDownCapture: () => r.current = !0 };
|
|
82
|
-
}
|
|
83
|
-
function v(e, t = globalThis?.document) {
|
|
84
|
-
let n = i(e), r = o.useRef(!1);
|
|
85
|
-
return o.useEffect(() => {
|
|
86
|
-
let e = (e) => {
|
|
87
|
-
e.target && !r.current && b(d, n, { originalEvent: e }, { discrete: !1 });
|
|
88
|
-
};
|
|
89
|
-
return t.addEventListener("focusin", e), () => t.removeEventListener("focusin", e);
|
|
90
|
-
}, [t, n]), {
|
|
91
|
-
onFocusCapture: () => r.current = !0,
|
|
92
|
-
onBlurCapture: () => r.current = !1
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
function y() {
|
|
96
|
-
let e = new CustomEvent(l);
|
|
97
|
-
document.dispatchEvent(e);
|
|
98
|
-
}
|
|
99
|
-
function b(e, t, n, { discrete: i }) {
|
|
100
|
-
let a = n.originalEvent.target, o = new CustomEvent(e, {
|
|
101
|
-
bubbles: !1,
|
|
102
|
-
cancelable: !0,
|
|
103
|
-
detail: n
|
|
104
|
-
});
|
|
105
|
-
t && a.addEventListener(e, t, { once: !0 }), i ? r(a, o) : a.dispatchEvent(o);
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
export { m as DismissableLayer };
|