@inspirare/design-system 0.0.18 → 0.0.20
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.css +1 -1
- 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/index.css +9 -42
- package/dist/index.js +0 -22051
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Anchor2 as t, Content2 as n, Portal as r, Root2 as i, Trigger as a } from "../../../node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/popover.tsx
|
|
7
|
+
function s({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ o(i, {
|
|
9
|
+
"data-slot": "popover",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function c({ className: t, ...n }) {
|
|
14
|
+
return /* @__PURE__ */ o(a, {
|
|
15
|
+
"data-slot": "popover-trigger",
|
|
16
|
+
className: e("cursor-pointer", t),
|
|
17
|
+
...n
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function l({ className: t, align: i = "center", sideOffset: a = 4, ...s }) {
|
|
21
|
+
return /* @__PURE__ */ o(r, { children: /* @__PURE__ */ o(n, {
|
|
22
|
+
"data-slot": "popover-content",
|
|
23
|
+
align: i,
|
|
24
|
+
sideOffset: a,
|
|
25
|
+
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", t),
|
|
26
|
+
...s
|
|
27
|
+
}) });
|
|
28
|
+
}
|
|
29
|
+
function u({ ...e }) {
|
|
30
|
+
return /* @__PURE__ */ o(t, {
|
|
31
|
+
"data-slot": "popover-anchor",
|
|
32
|
+
...e
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { s as Popover, u as PopoverAnchor, l as PopoverContent, c as PopoverTrigger };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Indicator as t, Root as n } from "../../../node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/progress.tsx
|
|
7
|
+
function i({ className: i, value: a, ...o }) {
|
|
8
|
+
return /* @__PURE__ */ r(n, {
|
|
9
|
+
"data-slot": "progress",
|
|
10
|
+
className: e("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", i),
|
|
11
|
+
...o,
|
|
12
|
+
children: /* @__PURE__ */ r(t, {
|
|
13
|
+
"data-slot": "progress-indicator",
|
|
14
|
+
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
15
|
+
style: { transform: `translateX(-${100 - (a || 0)}%)` }
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as Progress };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { RadioGroup as t, RadioGroupIndicator as n, RadioGroupItem as r } from "../../../node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { CircleIcon as a } from "lucide-react";
|
|
6
|
+
//#region src/components/ui/radio-group.tsx
|
|
7
|
+
function o({ className: n, ...r }) {
|
|
8
|
+
return /* @__PURE__ */ i(t, {
|
|
9
|
+
"data-slot": "radio-group",
|
|
10
|
+
className: e("grid gap-3", n),
|
|
11
|
+
...r
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function s({ className: t, ...o }) {
|
|
15
|
+
return /* @__PURE__ */ i(r, {
|
|
16
|
+
"data-slot": "radio-group-item",
|
|
17
|
+
className: e("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40", t),
|
|
18
|
+
...o,
|
|
19
|
+
children: /* @__PURE__ */ i(n, {
|
|
20
|
+
"data-slot": "radio-group-indicator",
|
|
21
|
+
className: "relative flex items-center justify-center",
|
|
22
|
+
children: /* @__PURE__ */ i(a, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { o as RadioGroup, s as RadioGroupItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { GripVertical as n } from "lucide-react";
|
|
5
|
+
import * as r from "react-resizable-panels";
|
|
6
|
+
//#region src/components/ui/resizable.tsx
|
|
7
|
+
var i = ({ className: n, ...i }) => /* @__PURE__ */ t(r.Group, {
|
|
8
|
+
className: e("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", n),
|
|
9
|
+
...i
|
|
10
|
+
}), a = r.Panel, o = ({ children: i, className: a, ...o }) => /* @__PURE__ */ t(r.Separator, {
|
|
11
|
+
className: e("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", a),
|
|
12
|
+
...o,
|
|
13
|
+
children: i ?? /* @__PURE__ */ t("div", {
|
|
14
|
+
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
|
|
15
|
+
children: /* @__PURE__ */ t(n, { className: "h-2.5 w-2.5" })
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as ResizableHandle, a as ResizablePanel, i as ResizablePanelGroup };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/ui/scroll-area.tsx
|
|
6
|
+
var r = t.memo(function({ className: t, children: r }) {
|
|
7
|
+
return /* @__PURE__ */ n("div", {
|
|
8
|
+
"data-slot": "scroll-area",
|
|
9
|
+
className: e("relative overflow-auto", t),
|
|
10
|
+
children: /* @__PURE__ */ n("div", {
|
|
11
|
+
"data-slot": "scroll-area-viewport",
|
|
12
|
+
className: "size-full rounded-[inherit]",
|
|
13
|
+
children: r
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
}), i = () => null;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { r as ScrollArea, i as ScrollBar };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Select as t, SelectContent as n, SelectGroup as r, SelectIcon as i, SelectItem as a, SelectItemIndicator as o, SelectItemText as s, SelectLabel as c, SelectPortal as l, SelectScrollDownButton as u, SelectScrollUpButton as d, SelectSeparator as f, SelectTrigger as p, SelectValue as m, SelectViewport as h } from "../../../node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
6
|
+
import { CheckIcon as v, ChevronDownIcon as y, ChevronUpIcon as b } from "lucide-react";
|
|
7
|
+
//#region src/components/ui/select.tsx
|
|
8
|
+
function x({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ g(t, {
|
|
10
|
+
"data-slot": "select",
|
|
11
|
+
...e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function S({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ g(r, {
|
|
16
|
+
"data-slot": "select-group",
|
|
17
|
+
...e
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function C({ ...e }) {
|
|
21
|
+
return /* @__PURE__ */ g(m, {
|
|
22
|
+
"data-slot": "select-value",
|
|
23
|
+
...e
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function w({ className: t, size: n = "default", children: r, ...a }) {
|
|
27
|
+
return /* @__PURE__ */ _(p, {
|
|
28
|
+
"data-slot": "select-trigger",
|
|
29
|
+
"data-size": n,
|
|
30
|
+
className: e("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
31
|
+
...a,
|
|
32
|
+
children: [r, /* @__PURE__ */ g(i, {
|
|
33
|
+
asChild: !0,
|
|
34
|
+
children: /* @__PURE__ */ g(y, { className: "size-4 opacity-50" })
|
|
35
|
+
})]
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function T({ className: t, children: r, position: i = "popper", ...a }) {
|
|
39
|
+
return /* @__PURE__ */ g(l, { children: /* @__PURE__ */ _(n, {
|
|
40
|
+
"data-slot": "select-content",
|
|
41
|
+
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", i === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
|
|
42
|
+
position: i,
|
|
43
|
+
...a,
|
|
44
|
+
children: [
|
|
45
|
+
/* @__PURE__ */ g(k, {}),
|
|
46
|
+
/* @__PURE__ */ g(h, {
|
|
47
|
+
className: e("p-1", i === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
48
|
+
children: r
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ g(A, {})
|
|
51
|
+
]
|
|
52
|
+
}) });
|
|
53
|
+
}
|
|
54
|
+
function E({ className: t, ...n }) {
|
|
55
|
+
return /* @__PURE__ */ g(c, {
|
|
56
|
+
"data-slot": "select-label",
|
|
57
|
+
className: e("text-muted-foreground px-2 py-1.5 text-xs", t),
|
|
58
|
+
...n
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function D({ className: t, children: n, ...r }) {
|
|
62
|
+
return /* @__PURE__ */ _(a, {
|
|
63
|
+
"data-slot": "select-item",
|
|
64
|
+
className: e("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", t),
|
|
65
|
+
...r,
|
|
66
|
+
children: [/* @__PURE__ */ g("span", {
|
|
67
|
+
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
68
|
+
children: /* @__PURE__ */ g(o, { children: /* @__PURE__ */ g(v, { className: "size-4" }) })
|
|
69
|
+
}), /* @__PURE__ */ g(s, { children: n })]
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function O({ className: t, ...n }) {
|
|
73
|
+
return /* @__PURE__ */ g(f, {
|
|
74
|
+
"data-slot": "select-separator",
|
|
75
|
+
className: e("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
76
|
+
...n
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function k({ className: t, ...n }) {
|
|
80
|
+
return /* @__PURE__ */ g(d, {
|
|
81
|
+
"data-slot": "select-scroll-up-button",
|
|
82
|
+
className: e("flex cursor-pointer items-center justify-center py-1", t),
|
|
83
|
+
...n,
|
|
84
|
+
children: /* @__PURE__ */ g(b, { className: "size-4" })
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function A({ className: t, ...n }) {
|
|
88
|
+
return /* @__PURE__ */ g(u, {
|
|
89
|
+
"data-slot": "select-scroll-down-button",
|
|
90
|
+
className: e("flex cursor-pointer items-center justify-center py-1", t),
|
|
91
|
+
...n,
|
|
92
|
+
children: /* @__PURE__ */ g(y, { className: "size-4" })
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
export { x as Select, T as SelectContent, S as SelectGroup, D as SelectItem, E as SelectLabel, A as SelectScrollDownButton, k as SelectScrollUpButton, O as SelectSeparator, w as SelectTrigger, C as SelectValue };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Root as t } from "../../../node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/separator.tsx
|
|
7
|
+
function r({ className: r, orientation: i = "horizontal", decorative: a = !0, ...o }) {
|
|
8
|
+
return /* @__PURE__ */ n(t, {
|
|
9
|
+
"data-slot": "separator",
|
|
10
|
+
decorative: a,
|
|
11
|
+
orientation: i,
|
|
12
|
+
className: e("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px", r),
|
|
13
|
+
...o
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { r as Separator };
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Close as t, Content as n, Description as r, Overlay as i, Portal as a, Root as o, Title as s, Trigger as c } from "../../../node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
import { XIcon as d } from "lucide-react";
|
|
7
|
+
//#region src/components/ui/sheet.tsx
|
|
8
|
+
function f({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ l(o, {
|
|
10
|
+
"data-slot": "sheet",
|
|
11
|
+
...e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function p({ className: t, ...n }) {
|
|
15
|
+
return /* @__PURE__ */ l(c, {
|
|
16
|
+
"data-slot": "sheet-trigger",
|
|
17
|
+
className: e("cursor-pointer", t),
|
|
18
|
+
...n
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function m({ className: n, ...r }) {
|
|
22
|
+
return /* @__PURE__ */ l(t, {
|
|
23
|
+
"data-slot": "sheet-close",
|
|
24
|
+
className: e("cursor-pointer", n),
|
|
25
|
+
...r
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function h({ ...e }) {
|
|
29
|
+
return /* @__PURE__ */ l(a, {
|
|
30
|
+
"data-slot": "sheet-portal",
|
|
31
|
+
...e
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function g({ className: t, ...n }) {
|
|
35
|
+
return /* @__PURE__ */ l(i, {
|
|
36
|
+
"data-slot": "sheet-overlay",
|
|
37
|
+
className: e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", t),
|
|
38
|
+
...n
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function _({ className: r, children: i, side: a = "right", ...o }) {
|
|
42
|
+
return /* @__PURE__ */ u(h, { children: [/* @__PURE__ */ l(g, {}), /* @__PURE__ */ u(n, {
|
|
43
|
+
"data-slot": "sheet-content",
|
|
44
|
+
className: e("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500", a === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm", a === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm", a === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b", a === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t", r),
|
|
45
|
+
...o,
|
|
46
|
+
children: [i, /* @__PURE__ */ u(t, {
|
|
47
|
+
className: "ring-offset-background cursor-pointer focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",
|
|
48
|
+
children: [/* @__PURE__ */ l(d, { className: "size-4" }), /* @__PURE__ */ l("span", {
|
|
49
|
+
className: "sr-only",
|
|
50
|
+
children: "Close"
|
|
51
|
+
})]
|
|
52
|
+
})]
|
|
53
|
+
})] });
|
|
54
|
+
}
|
|
55
|
+
function v({ className: t, ...n }) {
|
|
56
|
+
return /* @__PURE__ */ l("div", {
|
|
57
|
+
"data-slot": "sheet-header",
|
|
58
|
+
className: e("flex flex-col gap-1.5 p-4", t),
|
|
59
|
+
...n
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function y({ className: t, ...n }) {
|
|
63
|
+
return /* @__PURE__ */ l("div", {
|
|
64
|
+
"data-slot": "sheet-footer",
|
|
65
|
+
className: e("mt-auto flex flex-col gap-2 p-4", t),
|
|
66
|
+
...n
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function b({ className: t, ...n }) {
|
|
70
|
+
return /* @__PURE__ */ l(s, {
|
|
71
|
+
"data-slot": "sheet-title",
|
|
72
|
+
className: e("text-foreground font-semibold", t),
|
|
73
|
+
...n
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
function x({ className: t, ...n }) {
|
|
77
|
+
return /* @__PURE__ */ l(r, {
|
|
78
|
+
"data-slot": "sheet-description",
|
|
79
|
+
className: e("text-muted-foreground text-sm", t),
|
|
80
|
+
...n
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
//#endregion
|
|
84
|
+
export { f as Sheet, m as SheetClose, _ as SheetContent, x as SheetDescription, y as SheetFooter, v as SheetHeader, b as SheetTitle, p as SheetTrigger };
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Slot as e } from "../../../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";
|
|
3
|
+
import { cn as t } from "../../lib/utils.js";
|
|
4
|
+
import { cva as n } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
5
|
+
import { Button as r } from "./button.js";
|
|
6
|
+
import { Separator as i } from "./separator.js";
|
|
7
|
+
import { Input as a } from "./input.js";
|
|
8
|
+
import { Sheet as o, SheetContent as s, SheetDescription as c, SheetHeader as l, SheetTitle as u } from "./sheet.js";
|
|
9
|
+
import { useIsMobile as d } from "../../hooks/use-mobile.js";
|
|
10
|
+
import { Skeleton as f } from "./skeleton.js";
|
|
11
|
+
import { Tooltip as p, TooltipContent as m, TooltipProvider as h, TooltipTrigger as g } from "./tooltip.js";
|
|
12
|
+
import * as _ from "react";
|
|
13
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
14
|
+
import { PanelLeft as b } from "lucide-react";
|
|
15
|
+
//#region src/components/ui/sidebar.tsx
|
|
16
|
+
var x = "sidebar_state", S = 3600 * 24 * 7, C = "16rem", w = "18rem", T = "3rem", E = "b", D = _.createContext(null);
|
|
17
|
+
function O() {
|
|
18
|
+
let e = _.useContext(D);
|
|
19
|
+
if (!e) throw Error("useSidebar must be used within a SidebarProvider.");
|
|
20
|
+
return e;
|
|
21
|
+
}
|
|
22
|
+
var k = _.forwardRef(({ defaultOpen: e = !0, open: n, onOpenChange: r, className: i, style: a, children: o, ...s }, c) => {
|
|
23
|
+
let l = d(), [u, f] = _.useState(!1), [p, m] = _.useState(e), g = n ?? p, y = _.useCallback((e) => {
|
|
24
|
+
let t = typeof e == "function" ? e(g) : e;
|
|
25
|
+
r ? r(t) : m(t), document.cookie = `${x}=${t}; path=/; max-age=${S}`;
|
|
26
|
+
}, [r, g]), b = _.useCallback(() => l ? f((e) => !e) : y((e) => !e), [
|
|
27
|
+
l,
|
|
28
|
+
y,
|
|
29
|
+
f
|
|
30
|
+
]);
|
|
31
|
+
_.useEffect(() => {
|
|
32
|
+
let e = (e) => {
|
|
33
|
+
e.key === E && (e.metaKey || e.ctrlKey) && (e.preventDefault(), b());
|
|
34
|
+
};
|
|
35
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
36
|
+
}, [b]);
|
|
37
|
+
let w = g ? "expanded" : "collapsed", O = _.useMemo(() => ({
|
|
38
|
+
state: w,
|
|
39
|
+
open: g,
|
|
40
|
+
setOpen: y,
|
|
41
|
+
isMobile: l,
|
|
42
|
+
openMobile: u,
|
|
43
|
+
setOpenMobile: f,
|
|
44
|
+
toggleSidebar: b
|
|
45
|
+
}), [
|
|
46
|
+
w,
|
|
47
|
+
g,
|
|
48
|
+
y,
|
|
49
|
+
l,
|
|
50
|
+
u,
|
|
51
|
+
f,
|
|
52
|
+
b
|
|
53
|
+
]);
|
|
54
|
+
return /* @__PURE__ */ v(D.Provider, {
|
|
55
|
+
value: O,
|
|
56
|
+
children: /* @__PURE__ */ v(h, {
|
|
57
|
+
delayDuration: 0,
|
|
58
|
+
children: /* @__PURE__ */ v("div", {
|
|
59
|
+
style: {
|
|
60
|
+
"--sidebar-width": C,
|
|
61
|
+
"--sidebar-width-icon": T,
|
|
62
|
+
...a
|
|
63
|
+
},
|
|
64
|
+
className: t("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar", i),
|
|
65
|
+
ref: c,
|
|
66
|
+
...s,
|
|
67
|
+
children: o
|
|
68
|
+
})
|
|
69
|
+
})
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
k.displayName = "SidebarProvider";
|
|
73
|
+
var A = _.forwardRef(({ side: e = "left", variant: n = "sidebar", collapsible: r = "offcanvas", className: i, children: a, ...d }, f) => {
|
|
74
|
+
let { isMobile: p, state: m, openMobile: h, setOpenMobile: g } = O();
|
|
75
|
+
return r === "none" ? /* @__PURE__ */ v("div", {
|
|
76
|
+
className: t("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground", i),
|
|
77
|
+
ref: f,
|
|
78
|
+
...d,
|
|
79
|
+
children: a
|
|
80
|
+
}) : p ? /* @__PURE__ */ v(o, {
|
|
81
|
+
open: h,
|
|
82
|
+
onOpenChange: g,
|
|
83
|
+
...d,
|
|
84
|
+
children: /* @__PURE__ */ y(s, {
|
|
85
|
+
"data-sidebar": "sidebar",
|
|
86
|
+
"data-mobile": "true",
|
|
87
|
+
className: "w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
88
|
+
style: { "--sidebar-width": w },
|
|
89
|
+
side: e,
|
|
90
|
+
children: [/* @__PURE__ */ y(l, {
|
|
91
|
+
className: "sr-only",
|
|
92
|
+
children: [/* @__PURE__ */ v(u, { children: "Sidebar" }), /* @__PURE__ */ v(c, { children: "Displays the mobile sidebar." })]
|
|
93
|
+
}), /* @__PURE__ */ v("div", {
|
|
94
|
+
className: "flex h-full w-full flex-col",
|
|
95
|
+
children: a
|
|
96
|
+
})]
|
|
97
|
+
})
|
|
98
|
+
}) : /* @__PURE__ */ y("div", {
|
|
99
|
+
ref: f,
|
|
100
|
+
className: "group peer hidden text-sidebar-foreground md:block",
|
|
101
|
+
"data-state": m,
|
|
102
|
+
"data-collapsible": m === "collapsed" ? r : "",
|
|
103
|
+
"data-variant": n,
|
|
104
|
+
"data-side": e,
|
|
105
|
+
children: [/* @__PURE__ */ v("div", { className: t("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear", "group-data-[collapsible=offcanvas]:w-0", "group-data-[side=right]:rotate-180", n === "floating" || n === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon]") }), /* @__PURE__ */ v("div", {
|
|
106
|
+
className: t("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex", e === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", n === "floating" || n === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]" : "group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l", i),
|
|
107
|
+
...d,
|
|
108
|
+
children: /* @__PURE__ */ v("div", {
|
|
109
|
+
"data-sidebar": "sidebar",
|
|
110
|
+
className: "flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",
|
|
111
|
+
children: a
|
|
112
|
+
})
|
|
113
|
+
})]
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
A.displayName = "Sidebar";
|
|
117
|
+
var j = _.forwardRef(({ className: e, onClick: n, ...i }, a) => {
|
|
118
|
+
let { toggleSidebar: o } = O();
|
|
119
|
+
return /* @__PURE__ */ y(r, {
|
|
120
|
+
ref: a,
|
|
121
|
+
"data-sidebar": "trigger",
|
|
122
|
+
variant: "ghost",
|
|
123
|
+
size: "icon",
|
|
124
|
+
className: t("h-7 w-7", e),
|
|
125
|
+
onClick: (e) => {
|
|
126
|
+
n?.(e), o();
|
|
127
|
+
},
|
|
128
|
+
...i,
|
|
129
|
+
children: [/* @__PURE__ */ v(b, {}), /* @__PURE__ */ v("span", {
|
|
130
|
+
className: "sr-only",
|
|
131
|
+
children: "Toggle Sidebar"
|
|
132
|
+
})]
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
j.displayName = "SidebarTrigger";
|
|
136
|
+
var M = _.forwardRef(({ className: e, ...n }, r) => {
|
|
137
|
+
let { toggleSidebar: i } = O();
|
|
138
|
+
return /* @__PURE__ */ v("button", {
|
|
139
|
+
ref: r,
|
|
140
|
+
"data-sidebar": "rail",
|
|
141
|
+
"aria-label": "Toggle Sidebar",
|
|
142
|
+
tabIndex: -1,
|
|
143
|
+
onClick: i,
|
|
144
|
+
title: "Toggle Sidebar",
|
|
145
|
+
className: t("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex", "[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize", "[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize", "group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar", "[[data-side=left][data-collapsible=offcanvas]_&]:-right-2", "[[data-side=right][data-collapsible=offcanvas]_&]:-left-2", e),
|
|
146
|
+
...n
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
M.displayName = "SidebarRail";
|
|
150
|
+
var N = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("main", {
|
|
151
|
+
ref: r,
|
|
152
|
+
className: t("relative flex w-full flex-1 flex-col bg-background", "md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow", e),
|
|
153
|
+
...n
|
|
154
|
+
}));
|
|
155
|
+
N.displayName = "SidebarInset";
|
|
156
|
+
var P = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v(a, {
|
|
157
|
+
ref: r,
|
|
158
|
+
"data-sidebar": "input",
|
|
159
|
+
className: t("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring", e),
|
|
160
|
+
...n
|
|
161
|
+
}));
|
|
162
|
+
P.displayName = "SidebarInput";
|
|
163
|
+
var F = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("div", {
|
|
164
|
+
ref: r,
|
|
165
|
+
"data-sidebar": "header",
|
|
166
|
+
className: t("flex flex-col gap-2 p-2", e),
|
|
167
|
+
...n
|
|
168
|
+
}));
|
|
169
|
+
F.displayName = "SidebarHeader";
|
|
170
|
+
var I = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("div", {
|
|
171
|
+
ref: r,
|
|
172
|
+
"data-sidebar": "footer",
|
|
173
|
+
className: t("flex flex-col gap-2 p-2", e),
|
|
174
|
+
...n
|
|
175
|
+
}));
|
|
176
|
+
I.displayName = "SidebarFooter";
|
|
177
|
+
var L = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v(i, {
|
|
178
|
+
ref: r,
|
|
179
|
+
"data-sidebar": "separator",
|
|
180
|
+
className: t("mx-2 w-auto bg-sidebar-border", e),
|
|
181
|
+
...n
|
|
182
|
+
}));
|
|
183
|
+
L.displayName = "SidebarSeparator";
|
|
184
|
+
var R = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("div", {
|
|
185
|
+
ref: r,
|
|
186
|
+
"data-sidebar": "content",
|
|
187
|
+
className: t("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", e),
|
|
188
|
+
...n
|
|
189
|
+
}));
|
|
190
|
+
R.displayName = "SidebarContent";
|
|
191
|
+
var z = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("div", {
|
|
192
|
+
ref: r,
|
|
193
|
+
"data-sidebar": "group",
|
|
194
|
+
className: t("relative flex w-full min-w-0 flex-col p-2", e),
|
|
195
|
+
...n
|
|
196
|
+
}));
|
|
197
|
+
z.displayName = "SidebarGroup";
|
|
198
|
+
var B = _.forwardRef(({ className: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ v(r ? e : "div", {
|
|
199
|
+
ref: a,
|
|
200
|
+
"data-sidebar": "group-label",
|
|
201
|
+
className: t("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0", n),
|
|
202
|
+
...i
|
|
203
|
+
}));
|
|
204
|
+
B.displayName = "SidebarGroupLabel";
|
|
205
|
+
var V = _.forwardRef(({ className: n, asChild: r = !1, ...i }, a) => /* @__PURE__ */ v(r ? e : "button", {
|
|
206
|
+
ref: a,
|
|
207
|
+
"data-sidebar": "group-action",
|
|
208
|
+
className: t("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 after:md:hidden", "group-data-[collapsible=icon]:hidden", n),
|
|
209
|
+
...i
|
|
210
|
+
}));
|
|
211
|
+
V.displayName = "SidebarGroupAction";
|
|
212
|
+
var H = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("div", {
|
|
213
|
+
ref: r,
|
|
214
|
+
"data-sidebar": "group-content",
|
|
215
|
+
className: t("w-full text-sm", e),
|
|
216
|
+
...n
|
|
217
|
+
}));
|
|
218
|
+
H.displayName = "SidebarGroupContent";
|
|
219
|
+
var U = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("ul", {
|
|
220
|
+
ref: r,
|
|
221
|
+
"data-sidebar": "menu",
|
|
222
|
+
className: t("flex w-full min-w-0 flex-col gap-1", e),
|
|
223
|
+
...n
|
|
224
|
+
}));
|
|
225
|
+
U.displayName = "SidebarMenu";
|
|
226
|
+
var W = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("li", {
|
|
227
|
+
ref: r,
|
|
228
|
+
"data-sidebar": "menu-item",
|
|
229
|
+
className: t("group/menu-item relative", e),
|
|
230
|
+
...n
|
|
231
|
+
}));
|
|
232
|
+
W.displayName = "SidebarMenuItem";
|
|
233
|
+
var G = n("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
234
|
+
variants: {
|
|
235
|
+
variant: {
|
|
236
|
+
default: "hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
237
|
+
outline: "bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"
|
|
238
|
+
},
|
|
239
|
+
size: {
|
|
240
|
+
default: "h-8 text-sm",
|
|
241
|
+
sm: "h-7 text-xs",
|
|
242
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:!p-0"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
defaultVariants: {
|
|
246
|
+
variant: "default",
|
|
247
|
+
size: "default"
|
|
248
|
+
}
|
|
249
|
+
}), K = _.forwardRef(({ asChild: n = !1, isActive: r = !1, variant: i = "default", size: a = "default", tooltip: o, className: s, ...c }, l) => {
|
|
250
|
+
let u = n ? e : "button", { isMobile: d, state: f } = O(), h = /* @__PURE__ */ v(u, {
|
|
251
|
+
ref: l,
|
|
252
|
+
"data-sidebar": "menu-button",
|
|
253
|
+
"data-size": a,
|
|
254
|
+
"data-active": r,
|
|
255
|
+
className: t(G({
|
|
256
|
+
variant: i,
|
|
257
|
+
size: a
|
|
258
|
+
}), s),
|
|
259
|
+
...c
|
|
260
|
+
});
|
|
261
|
+
return o ? (typeof o == "string" && (o = { children: o }), /* @__PURE__ */ y(p, { children: [/* @__PURE__ */ v(g, {
|
|
262
|
+
asChild: !0,
|
|
263
|
+
children: h
|
|
264
|
+
}), /* @__PURE__ */ v(m, {
|
|
265
|
+
side: "right",
|
|
266
|
+
align: "center",
|
|
267
|
+
hidden: f !== "collapsed" || d,
|
|
268
|
+
...o
|
|
269
|
+
})] })) : h;
|
|
270
|
+
});
|
|
271
|
+
K.displayName = "SidebarMenuButton";
|
|
272
|
+
var q = _.forwardRef(({ className: n, asChild: r = !1, showOnHover: i = !1, ...a }, o) => /* @__PURE__ */ v(r ? e : "button", {
|
|
273
|
+
ref: o,
|
|
274
|
+
"data-sidebar": "menu-action",
|
|
275
|
+
className: t("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0", "after:absolute after:-inset-2 after:md:hidden", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", i && "group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0", n),
|
|
276
|
+
...a
|
|
277
|
+
}));
|
|
278
|
+
q.displayName = "SidebarMenuAction";
|
|
279
|
+
var J = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("div", {
|
|
280
|
+
ref: r,
|
|
281
|
+
"data-sidebar": "menu-badge",
|
|
282
|
+
className: t("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground", "peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground", "peer-data-[size=sm]/menu-button:top-1", "peer-data-[size=default]/menu-button:top-1.5", "peer-data-[size=lg]/menu-button:top-2.5", "group-data-[collapsible=icon]:hidden", e),
|
|
283
|
+
...n
|
|
284
|
+
}));
|
|
285
|
+
J.displayName = "SidebarMenuBadge";
|
|
286
|
+
var Y = _.forwardRef(({ className: e, showIcon: n = !1, ...r }, i) => {
|
|
287
|
+
let a = _.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
288
|
+
return /* @__PURE__ */ y("div", {
|
|
289
|
+
ref: i,
|
|
290
|
+
"data-sidebar": "menu-skeleton",
|
|
291
|
+
className: t("flex h-8 items-center gap-2 rounded-md px-2", e),
|
|
292
|
+
...r,
|
|
293
|
+
children: [n && /* @__PURE__ */ v(f, {
|
|
294
|
+
className: "size-4 rounded-md",
|
|
295
|
+
"data-sidebar": "menu-skeleton-icon"
|
|
296
|
+
}), /* @__PURE__ */ v(f, {
|
|
297
|
+
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
298
|
+
"data-sidebar": "menu-skeleton-text",
|
|
299
|
+
style: { "--skeleton-width": a }
|
|
300
|
+
})]
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
Y.displayName = "SidebarMenuSkeleton";
|
|
304
|
+
var X = _.forwardRef(({ className: e, ...n }, r) => /* @__PURE__ */ v("ul", {
|
|
305
|
+
ref: r,
|
|
306
|
+
"data-sidebar": "menu-sub",
|
|
307
|
+
className: t("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5", "group-data-[collapsible=icon]:hidden", e),
|
|
308
|
+
...n
|
|
309
|
+
}));
|
|
310
|
+
X.displayName = "SidebarMenuSub";
|
|
311
|
+
var Z = _.forwardRef(({ ...e }, t) => /* @__PURE__ */ v("li", {
|
|
312
|
+
ref: t,
|
|
313
|
+
...e
|
|
314
|
+
}));
|
|
315
|
+
Z.displayName = "SidebarMenuSubItem";
|
|
316
|
+
var Q = _.forwardRef(({ asChild: n = !1, size: r = "md", isActive: i, className: a, ...o }, s) => /* @__PURE__ */ v(n ? e : "a", {
|
|
317
|
+
ref: s,
|
|
318
|
+
"data-sidebar": "menu-sub-button",
|
|
319
|
+
"data-size": r,
|
|
320
|
+
"data-active": i,
|
|
321
|
+
className: t("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground", "data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground", r === "sm" && "text-xs", r === "md" && "text-sm", "group-data-[collapsible=icon]:hidden", a),
|
|
322
|
+
...o
|
|
323
|
+
}));
|
|
324
|
+
Q.displayName = "SidebarMenuSubButton";
|
|
325
|
+
//#endregion
|
|
326
|
+
export { A as Sidebar, R as SidebarContent, I as SidebarFooter, z as SidebarGroup, V as SidebarGroupAction, H as SidebarGroupContent, B as SidebarGroupLabel, F as SidebarHeader, P as SidebarInput, N as SidebarInset, U as SidebarMenu, q as SidebarMenuAction, J as SidebarMenuBadge, K as SidebarMenuButton, W as SidebarMenuItem, Y as SidebarMenuSkeleton, X as SidebarMenuSub, Q as SidebarMenuSubButton, Z as SidebarMenuSubItem, k as SidebarProvider, M as SidebarRail, L as SidebarSeparator, j as SidebarTrigger, O as useSidebar };
|