@inspirare/design-system 0.0.17 → 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/index.d.ts +3 -0
- 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/src/components/ui/sonner.tsx +2 -2
- package/dist/index.js +0 -22051
|
@@ -0,0 +1,119 @@
|
|
|
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 { createSlottable 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 { Close as i, Content as a, Description as o, Overlay as s, Portal as c, Root as l, Title as u, Trigger as d, WarningProvider as f, createDialogScope as p } from "../../../../../@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
7
|
+
import * as m from "react";
|
|
8
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
9
|
+
//#region node_modules/.pnpm/@radix-ui+react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
|
|
10
|
+
var _ = "AlertDialog", [v, y] = e(_, [p]), b = p(), x = (e) => {
|
|
11
|
+
let { __scopeAlertDialog: t, ...n } = e;
|
|
12
|
+
return /* @__PURE__ */ h(l, {
|
|
13
|
+
...b(t),
|
|
14
|
+
...n,
|
|
15
|
+
modal: !0
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
x.displayName = _;
|
|
19
|
+
var S = "AlertDialogTrigger", C = m.forwardRef((e, t) => {
|
|
20
|
+
let { __scopeAlertDialog: n, ...r } = e;
|
|
21
|
+
return /* @__PURE__ */ h(d, {
|
|
22
|
+
...b(n),
|
|
23
|
+
...r,
|
|
24
|
+
ref: t
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
C.displayName = S;
|
|
28
|
+
var w = "AlertDialogPortal", T = (e) => {
|
|
29
|
+
let { __scopeAlertDialog: t, ...n } = e;
|
|
30
|
+
return /* @__PURE__ */ h(c, {
|
|
31
|
+
...b(t),
|
|
32
|
+
...n
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
T.displayName = w;
|
|
36
|
+
var E = "AlertDialogOverlay", D = m.forwardRef((e, t) => {
|
|
37
|
+
let { __scopeAlertDialog: n, ...r } = e;
|
|
38
|
+
return /* @__PURE__ */ h(s, {
|
|
39
|
+
...b(n),
|
|
40
|
+
...r,
|
|
41
|
+
ref: t
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
D.displayName = E;
|
|
45
|
+
var O = "AlertDialogContent", [k, A] = v(O), j = n("AlertDialogContent"), M = m.forwardRef((e, n) => {
|
|
46
|
+
let { __scopeAlertDialog: i, children: o, ...s } = e, c = b(i), l = m.useRef(null), u = t(n, l), d = m.useRef(null);
|
|
47
|
+
return /* @__PURE__ */ h(f, {
|
|
48
|
+
contentName: O,
|
|
49
|
+
titleName: N,
|
|
50
|
+
docsSlug: "alert-dialog",
|
|
51
|
+
children: /* @__PURE__ */ h(k, {
|
|
52
|
+
scope: i,
|
|
53
|
+
cancelRef: d,
|
|
54
|
+
children: /* @__PURE__ */ g(a, {
|
|
55
|
+
role: "alertdialog",
|
|
56
|
+
...c,
|
|
57
|
+
...s,
|
|
58
|
+
ref: u,
|
|
59
|
+
onOpenAutoFocus: r(s.onOpenAutoFocus, (e) => {
|
|
60
|
+
e.preventDefault(), d.current?.focus({ preventScroll: !0 });
|
|
61
|
+
}),
|
|
62
|
+
onPointerDownOutside: (e) => e.preventDefault(),
|
|
63
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
64
|
+
children: [/* @__PURE__ */ h(j, { children: o }), /* @__PURE__ */ h(V, { contentRef: l })]
|
|
65
|
+
})
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
M.displayName = O;
|
|
70
|
+
var N = "AlertDialogTitle", P = m.forwardRef((e, t) => {
|
|
71
|
+
let { __scopeAlertDialog: n, ...r } = e;
|
|
72
|
+
return /* @__PURE__ */ h(u, {
|
|
73
|
+
...b(n),
|
|
74
|
+
...r,
|
|
75
|
+
ref: t
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
P.displayName = N;
|
|
79
|
+
var F = "AlertDialogDescription", I = m.forwardRef((e, t) => {
|
|
80
|
+
let { __scopeAlertDialog: n, ...r } = e;
|
|
81
|
+
return /* @__PURE__ */ h(o, {
|
|
82
|
+
...b(n),
|
|
83
|
+
...r,
|
|
84
|
+
ref: t
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
I.displayName = F;
|
|
88
|
+
var L = "AlertDialogAction", R = m.forwardRef((e, t) => {
|
|
89
|
+
let { __scopeAlertDialog: n, ...r } = e;
|
|
90
|
+
return /* @__PURE__ */ h(i, {
|
|
91
|
+
...b(n),
|
|
92
|
+
...r,
|
|
93
|
+
ref: t
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
R.displayName = L;
|
|
97
|
+
var z = "AlertDialogCancel", B = m.forwardRef((e, n) => {
|
|
98
|
+
let { __scopeAlertDialog: r, ...a } = e, { cancelRef: o } = A(z, r), s = b(r), c = t(n, o);
|
|
99
|
+
return /* @__PURE__ */ h(i, {
|
|
100
|
+
...s,
|
|
101
|
+
...a,
|
|
102
|
+
ref: c
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
B.displayName = z;
|
|
106
|
+
var V = ({ contentRef: e }) => {
|
|
107
|
+
let t = `\`${O}\` requires a description for the component to be accessible for screen reader users.
|
|
108
|
+
|
|
109
|
+
You can add a description to the \`${O}\` by passing a \`${F}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
110
|
+
|
|
111
|
+
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${O}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
112
|
+
|
|
113
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
|
|
114
|
+
return m.useEffect(() => {
|
|
115
|
+
document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
|
|
116
|
+
}, [t, e]), null;
|
|
117
|
+
}, H = x, U = C, W = T, G = D, K = M, q = R, J = B, Y = P, X = I;
|
|
118
|
+
//#endregion
|
|
119
|
+
export { q as Action, J as Cancel, K as Content2, X as Description2, G as Overlay2, W as Portal2, H as Root2, Y as Title2, U as Trigger2 };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Primitive as e } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/.pnpm/@radix-ui+react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
5
|
+
var r = "Arrow", i = t.forwardRef((t, r) => {
|
|
6
|
+
let { children: i, width: a = 10, height: o = 5, ...s } = t;
|
|
7
|
+
return /* @__PURE__ */ n(e.svg, {
|
|
8
|
+
...s,
|
|
9
|
+
ref: r,
|
|
10
|
+
width: a,
|
|
11
|
+
height: o,
|
|
12
|
+
viewBox: "0 0 30 10",
|
|
13
|
+
preserveAspectRatio: "none",
|
|
14
|
+
children: t.asChild ? i : /* @__PURE__ */ n("polygon", { points: "0,0 30,0 15,10" })
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
i.displayName = r;
|
|
18
|
+
var a = i;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { a as Root };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Primitive as e } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region node_modules/.pnpm/@radix-ui+react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.mjs
|
|
5
|
+
var r = "AspectRatio", i = t.forwardRef((t, r) => {
|
|
6
|
+
let { ratio: i = 1 / 1, style: a, ...o } = t;
|
|
7
|
+
return /* @__PURE__ */ n("div", {
|
|
8
|
+
style: {
|
|
9
|
+
position: "relative",
|
|
10
|
+
width: "100%",
|
|
11
|
+
paddingBottom: `${100 / i}%`
|
|
12
|
+
},
|
|
13
|
+
"data-radix-aspect-ratio-wrapper": "",
|
|
14
|
+
children: /* @__PURE__ */ n(e.div, {
|
|
15
|
+
...o,
|
|
16
|
+
ref: r,
|
|
17
|
+
style: {
|
|
18
|
+
...a,
|
|
19
|
+
position: "absolute",
|
|
20
|
+
top: 0,
|
|
21
|
+
right: 0,
|
|
22
|
+
bottom: 0,
|
|
23
|
+
left: 0
|
|
24
|
+
}
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
i.displayName = r;
|
|
29
|
+
var a = i;
|
|
30
|
+
//#endregion
|
|
31
|
+
export { a as Root };
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { useLayoutEffect2 as t } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js";
|
|
4
|
+
import { Primitive as n } from "../../../../../@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js";
|
|
5
|
+
import { useCallbackRef as r } from "../../../../../@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js";
|
|
6
|
+
import { useIsHydrated2 as i } from "../../../../../@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js";
|
|
7
|
+
import * as a from "react";
|
|
8
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
9
|
+
//#region node_modules/.pnpm/@radix-ui+react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.mjs
|
|
10
|
+
var s = "Avatar", [c, l] = e(s), [u, d] = c(s), f = a.forwardRef((e, t) => {
|
|
11
|
+
let { __scopeAvatar: r, ...i } = e, [s, c] = a.useState("idle");
|
|
12
|
+
return /* @__PURE__ */ o(u, {
|
|
13
|
+
scope: r,
|
|
14
|
+
imageLoadingStatus: s,
|
|
15
|
+
onImageLoadingStatusChange: c,
|
|
16
|
+
children: /* @__PURE__ */ o(n.span, {
|
|
17
|
+
...i,
|
|
18
|
+
ref: t
|
|
19
|
+
})
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
f.displayName = s;
|
|
23
|
+
var p = "AvatarImage", m = a.forwardRef((e, i) => {
|
|
24
|
+
let { __scopeAvatar: a, src: s, onLoadingStatusChange: c = () => {}, ...l } = e, u = d(p, a), f = v(s, l), m = r((e) => {
|
|
25
|
+
c(e), u.onImageLoadingStatusChange(e);
|
|
26
|
+
});
|
|
27
|
+
return t(() => {
|
|
28
|
+
f !== "idle" && m(f);
|
|
29
|
+
}, [f, m]), f === "loaded" ? /* @__PURE__ */ o(n.img, {
|
|
30
|
+
...l,
|
|
31
|
+
ref: i,
|
|
32
|
+
src: s
|
|
33
|
+
}) : null;
|
|
34
|
+
});
|
|
35
|
+
m.displayName = p;
|
|
36
|
+
var h = "AvatarFallback", g = a.forwardRef((e, t) => {
|
|
37
|
+
let { __scopeAvatar: r, delayMs: i, ...s } = e, c = d(h, r), [l, u] = a.useState(i === void 0);
|
|
38
|
+
return a.useEffect(() => {
|
|
39
|
+
if (i !== void 0) {
|
|
40
|
+
let e = window.setTimeout(() => u(!0), i);
|
|
41
|
+
return () => window.clearTimeout(e);
|
|
42
|
+
}
|
|
43
|
+
}, [i]), l && c.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ o(n.span, {
|
|
44
|
+
...s,
|
|
45
|
+
ref: t
|
|
46
|
+
}) : null;
|
|
47
|
+
});
|
|
48
|
+
g.displayName = h;
|
|
49
|
+
function _(e, t) {
|
|
50
|
+
return e ? t ? (e.src !== t && (e.src = t), e.complete && e.naturalWidth > 0 ? "loaded" : "loading") : "error" : "idle";
|
|
51
|
+
}
|
|
52
|
+
function v(e, { referrerPolicy: n, crossOrigin: r }) {
|
|
53
|
+
let o = i(), s = a.useRef(null), c = o ? (s.current ||= new window.Image(), s.current) : null, [l, u] = a.useState(() => _(c, e));
|
|
54
|
+
return t(() => {
|
|
55
|
+
u(_(c, e));
|
|
56
|
+
}, [c, e]), t(() => {
|
|
57
|
+
let e = (e) => () => {
|
|
58
|
+
u(e);
|
|
59
|
+
};
|
|
60
|
+
if (!c) return;
|
|
61
|
+
let t = e("loaded"), i = e("error");
|
|
62
|
+
return c.addEventListener("load", t), c.addEventListener("error", i), n && (c.referrerPolicy = n), typeof r == "string" && (c.crossOrigin = r), () => {
|
|
63
|
+
c.removeEventListener("load", t), c.removeEventListener("error", i);
|
|
64
|
+
};
|
|
65
|
+
}, [
|
|
66
|
+
c,
|
|
67
|
+
r,
|
|
68
|
+
n
|
|
69
|
+
]), l;
|
|
70
|
+
}
|
|
71
|
+
var y = f, b = m, x = g;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { x as Fallback, b as Image, y as Root };
|
|
@@ -0,0 +1,158 @@
|
|
|
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 { usePrevious as o } from "../../../../../@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js";
|
|
9
|
+
import { useSize as s } from "../../../../../@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js";
|
|
10
|
+
import * as c from "react";
|
|
11
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
//#region node_modules/.pnpm/@radix-ui+react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.mjs
|
|
13
|
+
var f = "Checkbox", [p, m] = e(f), [h, g] = p(f);
|
|
14
|
+
function _(e) {
|
|
15
|
+
let { __scopeCheckbox: t, checked: n, children: i, defaultChecked: a, disabled: o, form: s, name: l, onCheckedChange: d, required: p, value: m = "on", internal_do_not_use_render: g } = e, [_, v] = r({
|
|
16
|
+
prop: n,
|
|
17
|
+
defaultProp: a ?? !1,
|
|
18
|
+
onChange: d,
|
|
19
|
+
caller: f
|
|
20
|
+
}), [y, b] = c.useState(null), [x, S] = c.useState(null), C = c.useRef(!1), w = y ? !!s || !!y.closest("form") : !0, D = {
|
|
21
|
+
checked: _,
|
|
22
|
+
disabled: o,
|
|
23
|
+
setChecked: v,
|
|
24
|
+
control: y,
|
|
25
|
+
setControl: b,
|
|
26
|
+
name: l,
|
|
27
|
+
form: s,
|
|
28
|
+
value: m,
|
|
29
|
+
hasConsumerStoppedPropagationRef: C,
|
|
30
|
+
required: p,
|
|
31
|
+
defaultChecked: E(a) ? !1 : a,
|
|
32
|
+
isFormControl: w,
|
|
33
|
+
bubbleInput: x,
|
|
34
|
+
setBubbleInput: S
|
|
35
|
+
};
|
|
36
|
+
return /* @__PURE__ */ u(h, {
|
|
37
|
+
scope: t,
|
|
38
|
+
...D,
|
|
39
|
+
children: T(g) ? g(D) : i
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
var v = "CheckboxTrigger", y = c.forwardRef(({ __scopeCheckbox: e, onKeyDown: r, onClick: a, ...o }, s) => {
|
|
43
|
+
let { control: l, value: d, disabled: f, checked: p, required: m, setControl: h, setChecked: _, hasConsumerStoppedPropagationRef: y, isFormControl: b, bubbleInput: x } = g(v, e), S = t(s, h), C = c.useRef(p);
|
|
44
|
+
return c.useEffect(() => {
|
|
45
|
+
let e = l?.form;
|
|
46
|
+
if (e) {
|
|
47
|
+
let t = () => _(C.current);
|
|
48
|
+
return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
|
|
49
|
+
}
|
|
50
|
+
}, [l, _]), /* @__PURE__ */ u(i.button, {
|
|
51
|
+
type: "button",
|
|
52
|
+
role: "checkbox",
|
|
53
|
+
"aria-checked": E(p) ? "mixed" : p,
|
|
54
|
+
"aria-required": m,
|
|
55
|
+
"data-state": D(p),
|
|
56
|
+
"data-disabled": f ? "" : void 0,
|
|
57
|
+
disabled: f,
|
|
58
|
+
value: d,
|
|
59
|
+
...o,
|
|
60
|
+
ref: S,
|
|
61
|
+
onKeyDown: n(r, (e) => {
|
|
62
|
+
e.key === "Enter" && e.preventDefault();
|
|
63
|
+
}),
|
|
64
|
+
onClick: n(a, (e) => {
|
|
65
|
+
_((e) => E(e) ? !0 : !e), x && b && (y.current = e.isPropagationStopped(), y.current || e.stopPropagation());
|
|
66
|
+
})
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
y.displayName = v;
|
|
70
|
+
var b = c.forwardRef((e, t) => {
|
|
71
|
+
let { __scopeCheckbox: n, name: r, checked: i, defaultChecked: a, required: o, disabled: s, value: c, onCheckedChange: f, form: p, ...m } = e;
|
|
72
|
+
return /* @__PURE__ */ u(_, {
|
|
73
|
+
__scopeCheckbox: n,
|
|
74
|
+
checked: i,
|
|
75
|
+
defaultChecked: a,
|
|
76
|
+
disabled: s,
|
|
77
|
+
required: o,
|
|
78
|
+
onCheckedChange: f,
|
|
79
|
+
name: r,
|
|
80
|
+
form: p,
|
|
81
|
+
value: c,
|
|
82
|
+
internal_do_not_use_render: ({ isFormControl: e }) => /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(y, {
|
|
83
|
+
...m,
|
|
84
|
+
ref: t,
|
|
85
|
+
__scopeCheckbox: n
|
|
86
|
+
}), e && /* @__PURE__ */ u(w, { __scopeCheckbox: n })] })
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
b.displayName = f;
|
|
90
|
+
var x = "CheckboxIndicator", S = c.forwardRef((e, t) => {
|
|
91
|
+
let { __scopeCheckbox: n, forceMount: r, ...o } = e, s = g(x, n);
|
|
92
|
+
return /* @__PURE__ */ u(a, {
|
|
93
|
+
present: r || E(s.checked) || s.checked === !0,
|
|
94
|
+
children: /* @__PURE__ */ u(i.span, {
|
|
95
|
+
"data-state": D(s.checked),
|
|
96
|
+
"data-disabled": s.disabled ? "" : void 0,
|
|
97
|
+
...o,
|
|
98
|
+
ref: t,
|
|
99
|
+
style: {
|
|
100
|
+
pointerEvents: "none",
|
|
101
|
+
...e.style
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
S.displayName = x;
|
|
107
|
+
var C = "CheckboxBubbleInput", w = c.forwardRef(({ __scopeCheckbox: e, ...n }, r) => {
|
|
108
|
+
let { control: a, hasConsumerStoppedPropagationRef: l, checked: d, defaultChecked: f, required: p, disabled: m, name: h, value: _, form: v, bubbleInput: y, setBubbleInput: b } = g(C, e), x = t(r, b), S = o(d), w = s(a);
|
|
109
|
+
c.useEffect(() => {
|
|
110
|
+
let e = y;
|
|
111
|
+
if (!e) return;
|
|
112
|
+
let t = window.HTMLInputElement.prototype, n = Object.getOwnPropertyDescriptor(t, "checked").set, r = !l.current;
|
|
113
|
+
if (S !== d && n) {
|
|
114
|
+
let t = new Event("click", { bubbles: r });
|
|
115
|
+
e.indeterminate = E(d), n.call(e, E(d) ? !1 : d), e.dispatchEvent(t);
|
|
116
|
+
}
|
|
117
|
+
}, [
|
|
118
|
+
y,
|
|
119
|
+
S,
|
|
120
|
+
d,
|
|
121
|
+
l
|
|
122
|
+
]);
|
|
123
|
+
let T = c.useRef(E(d) ? !1 : d);
|
|
124
|
+
return /* @__PURE__ */ u(i.input, {
|
|
125
|
+
type: "checkbox",
|
|
126
|
+
"aria-hidden": !0,
|
|
127
|
+
defaultChecked: f ?? T.current,
|
|
128
|
+
required: p,
|
|
129
|
+
disabled: m,
|
|
130
|
+
name: h,
|
|
131
|
+
value: _,
|
|
132
|
+
form: v,
|
|
133
|
+
...n,
|
|
134
|
+
tabIndex: -1,
|
|
135
|
+
ref: x,
|
|
136
|
+
style: {
|
|
137
|
+
...n.style,
|
|
138
|
+
...w,
|
|
139
|
+
position: "absolute",
|
|
140
|
+
pointerEvents: "none",
|
|
141
|
+
opacity: 0,
|
|
142
|
+
margin: 0,
|
|
143
|
+
transform: "translateX(-100%)"
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
w.displayName = C;
|
|
148
|
+
function T(e) {
|
|
149
|
+
return typeof e == "function";
|
|
150
|
+
}
|
|
151
|
+
function E(e) {
|
|
152
|
+
return e === "indeterminate";
|
|
153
|
+
}
|
|
154
|
+
function D(e) {
|
|
155
|
+
return E(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
156
|
+
}
|
|
157
|
+
//#endregion
|
|
158
|
+
export { b as Checkbox, S as CheckboxIndicator };
|
|
@@ -0,0 +1,97 @@
|
|
|
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 { useLayoutEffect2 as r } from "../../../../../@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/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 * as c from "react";
|
|
11
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
12
|
+
//#region node_modules/.pnpm/@radix-ui+react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.mjs
|
|
13
|
+
var u = "Collapsible", [d, f] = e(u), [p, m] = d(u), h = c.forwardRef((e, t) => {
|
|
14
|
+
let { __scopeCollapsible: n, open: r, defaultOpen: o, disabled: d, onOpenChange: f, ...m } = e, [h, g] = i({
|
|
15
|
+
prop: r,
|
|
16
|
+
defaultProp: o ?? !1,
|
|
17
|
+
onChange: f,
|
|
18
|
+
caller: u
|
|
19
|
+
});
|
|
20
|
+
return /* @__PURE__ */ l(p, {
|
|
21
|
+
scope: n,
|
|
22
|
+
disabled: d,
|
|
23
|
+
contentId: s(),
|
|
24
|
+
open: h,
|
|
25
|
+
onOpenToggle: c.useCallback(() => g((e) => !e), [g]),
|
|
26
|
+
children: /* @__PURE__ */ l(a.div, {
|
|
27
|
+
"data-state": x(h),
|
|
28
|
+
"data-disabled": d ? "" : void 0,
|
|
29
|
+
...m,
|
|
30
|
+
ref: t
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
h.displayName = u;
|
|
35
|
+
var g = "CollapsibleTrigger", _ = c.forwardRef((e, t) => {
|
|
36
|
+
let { __scopeCollapsible: r, ...i } = e, o = m(g, r);
|
|
37
|
+
return /* @__PURE__ */ l(a.button, {
|
|
38
|
+
type: "button",
|
|
39
|
+
"aria-controls": o.open ? o.contentId : void 0,
|
|
40
|
+
"aria-expanded": o.open || !1,
|
|
41
|
+
"data-state": x(o.open),
|
|
42
|
+
"data-disabled": o.disabled ? "" : void 0,
|
|
43
|
+
disabled: o.disabled,
|
|
44
|
+
...i,
|
|
45
|
+
ref: t,
|
|
46
|
+
onClick: n(e.onClick, o.onOpenToggle)
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
_.displayName = g;
|
|
50
|
+
var v = "CollapsibleContent", y = c.forwardRef((e, t) => {
|
|
51
|
+
let { forceMount: n, ...r } = e, i = m(v, e.__scopeCollapsible);
|
|
52
|
+
return /* @__PURE__ */ l(o, {
|
|
53
|
+
present: n || i.open,
|
|
54
|
+
children: ({ present: e }) => /* @__PURE__ */ l(b, {
|
|
55
|
+
...r,
|
|
56
|
+
ref: t,
|
|
57
|
+
present: e
|
|
58
|
+
})
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
y.displayName = v;
|
|
62
|
+
var b = c.forwardRef((e, n) => {
|
|
63
|
+
let { __scopeCollapsible: i, present: o, children: s, ...u } = e, d = m(v, i), [f, p] = c.useState(o), h = c.useRef(null), g = t(n, h), _ = c.useRef(0), y = _.current, b = c.useRef(0), S = b.current, C = d.open || f, w = c.useRef(C), T = c.useRef(void 0);
|
|
64
|
+
return c.useEffect(() => {
|
|
65
|
+
let e = requestAnimationFrame(() => w.current = !1);
|
|
66
|
+
return () => cancelAnimationFrame(e);
|
|
67
|
+
}, []), r(() => {
|
|
68
|
+
let e = h.current;
|
|
69
|
+
if (e) {
|
|
70
|
+
T.current = T.current || {
|
|
71
|
+
transitionDuration: e.style.transitionDuration,
|
|
72
|
+
animationName: e.style.animationName
|
|
73
|
+
}, e.style.transitionDuration = "0s", e.style.animationName = "none";
|
|
74
|
+
let t = e.getBoundingClientRect();
|
|
75
|
+
_.current = t.height, b.current = t.width, w.current || (e.style.transitionDuration = T.current.transitionDuration, e.style.animationName = T.current.animationName), p(o);
|
|
76
|
+
}
|
|
77
|
+
}, [d.open, o]), /* @__PURE__ */ l(a.div, {
|
|
78
|
+
"data-state": x(d.open),
|
|
79
|
+
"data-disabled": d.disabled ? "" : void 0,
|
|
80
|
+
id: d.contentId,
|
|
81
|
+
hidden: !C,
|
|
82
|
+
...u,
|
|
83
|
+
ref: g,
|
|
84
|
+
style: {
|
|
85
|
+
"--radix-collapsible-content-height": y ? `${y}px` : void 0,
|
|
86
|
+
"--radix-collapsible-content-width": S ? `${S}px` : void 0,
|
|
87
|
+
...e.style
|
|
88
|
+
},
|
|
89
|
+
children: C && s
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
function x(e) {
|
|
93
|
+
return e ? "open" : "closed";
|
|
94
|
+
}
|
|
95
|
+
var S = h, C = _, w = y;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { y as CollapsibleContent, _ as CollapsibleTrigger, w as Content, S as Root, C as Trigger, f as createCollapsibleScope };
|
|
@@ -0,0 +1,62 @@
|
|
|
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 * as r from "react";
|
|
6
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
7
|
+
//#region node_modules/.pnpm/@radix-ui+react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
8
|
+
function a(a) {
|
|
9
|
+
let o = a + "CollectionProvider", [s, c] = e(o), [l, u] = s(o, {
|
|
10
|
+
collectionRef: { current: null },
|
|
11
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
12
|
+
}), d = (e) => {
|
|
13
|
+
let { scope: t, children: n } = e, a = r.useRef(null), o = r.useRef(/* @__PURE__ */ new Map()).current;
|
|
14
|
+
return /* @__PURE__ */ i(l, {
|
|
15
|
+
scope: t,
|
|
16
|
+
itemMap: o,
|
|
17
|
+
collectionRef: a,
|
|
18
|
+
children: n
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
d.displayName = o;
|
|
22
|
+
let f = a + "CollectionSlot", p = n(f), m = r.forwardRef((e, n) => {
|
|
23
|
+
let { scope: r, children: a } = e;
|
|
24
|
+
return /* @__PURE__ */ i(p, {
|
|
25
|
+
ref: t(n, u(f, r).collectionRef),
|
|
26
|
+
children: a
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
m.displayName = f;
|
|
30
|
+
let h = a + "CollectionItemSlot", g = "data-radix-collection-item", _ = n(h), v = r.forwardRef((e, n) => {
|
|
31
|
+
let { scope: a, children: o, ...s } = e, c = r.useRef(null), l = t(n, c), d = u(h, a);
|
|
32
|
+
return r.useEffect(() => (d.itemMap.set(c, {
|
|
33
|
+
ref: c,
|
|
34
|
+
...s
|
|
35
|
+
}), () => void d.itemMap.delete(c))), /* @__PURE__ */ i(_, {
|
|
36
|
+
[g]: "",
|
|
37
|
+
ref: l,
|
|
38
|
+
children: o
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
v.displayName = h;
|
|
42
|
+
function y(e) {
|
|
43
|
+
let t = u(a + "CollectionConsumer", e);
|
|
44
|
+
return r.useCallback(() => {
|
|
45
|
+
let e = t.collectionRef.current;
|
|
46
|
+
if (!e) return [];
|
|
47
|
+
let n = Array.from(e.querySelectorAll(`[${g}]`));
|
|
48
|
+
return Array.from(t.itemMap.values()).sort((e, t) => n.indexOf(e.ref.current) - n.indexOf(t.ref.current));
|
|
49
|
+
}, [t.collectionRef, t.itemMap]);
|
|
50
|
+
}
|
|
51
|
+
return [
|
|
52
|
+
{
|
|
53
|
+
Provider: d,
|
|
54
|
+
Slot: m,
|
|
55
|
+
ItemSlot: v
|
|
56
|
+
},
|
|
57
|
+
y,
|
|
58
|
+
c
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { a as createCollection };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region node_modules/.pnpm/@radix-ui+react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.mjs
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
if (typeof e == "function") return e(t);
|
|
5
|
+
e != null && (e.current = t);
|
|
6
|
+
}
|
|
7
|
+
function n(...e) {
|
|
8
|
+
return (n) => {
|
|
9
|
+
let r = !1, i = e.map((e) => {
|
|
10
|
+
let i = t(e, n);
|
|
11
|
+
return !r && typeof i == "function" && (r = !0), i;
|
|
12
|
+
});
|
|
13
|
+
if (r) return () => {
|
|
14
|
+
for (let n = 0; n < i.length; n++) {
|
|
15
|
+
let r = i[n];
|
|
16
|
+
typeof r == "function" ? r() : t(e[n], null);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function r(...t) {
|
|
22
|
+
return e.useCallback(n(...t), t);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { n as composeRefs, r as useComposedRefs };
|