@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,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a } from "./dialog.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { SearchIcon as c } from "lucide-react";
|
|
7
|
+
import { Command as l } from "cmdk";
|
|
8
|
+
//#region src/components/ui/command.tsx
|
|
9
|
+
function u({ className: t, ...n }) {
|
|
10
|
+
return /* @__PURE__ */ o(l, {
|
|
11
|
+
"data-slot": "command",
|
|
12
|
+
className: e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", t),
|
|
13
|
+
...n
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function d({ title: c = "Command Palette", description: l = "Search for a command to run...", children: d, className: f, showCloseButton: p = !0, ...m }) {
|
|
17
|
+
return /* @__PURE__ */ s(t, {
|
|
18
|
+
...m,
|
|
19
|
+
children: [/* @__PURE__ */ s(i, {
|
|
20
|
+
className: "sr-only",
|
|
21
|
+
children: [/* @__PURE__ */ o(a, { children: c }), /* @__PURE__ */ o(r, { children: l })]
|
|
22
|
+
}), /* @__PURE__ */ o(n, {
|
|
23
|
+
className: e("overflow-hidden p-0", f),
|
|
24
|
+
showCloseButton: p,
|
|
25
|
+
children: /* @__PURE__ */ o(u, {
|
|
26
|
+
className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",
|
|
27
|
+
children: d
|
|
28
|
+
})
|
|
29
|
+
})]
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function f({ className: t, ...n }) {
|
|
33
|
+
return /* @__PURE__ */ s("div", {
|
|
34
|
+
"data-slot": "command-input-wrapper",
|
|
35
|
+
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
36
|
+
children: [/* @__PURE__ */ o(c, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ o(l.Input, {
|
|
37
|
+
"data-slot": "command-input",
|
|
38
|
+
className: e("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50", t),
|
|
39
|
+
...n
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function p({ className: t, ...n }) {
|
|
44
|
+
return /* @__PURE__ */ o(l.List, {
|
|
45
|
+
"data-slot": "command-list",
|
|
46
|
+
className: e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", t),
|
|
47
|
+
...n
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function m({ ...e }) {
|
|
51
|
+
return /* @__PURE__ */ o(l.Empty, {
|
|
52
|
+
"data-slot": "command-empty",
|
|
53
|
+
className: "py-6 text-center text-sm",
|
|
54
|
+
...e
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function h({ className: t, ...n }) {
|
|
58
|
+
return /* @__PURE__ */ o(l.Group, {
|
|
59
|
+
"data-slot": "command-group",
|
|
60
|
+
className: e("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium", t),
|
|
61
|
+
...n
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
function g({ className: t, ...n }) {
|
|
65
|
+
return /* @__PURE__ */ o(l.Separator, {
|
|
66
|
+
"data-slot": "command-separator",
|
|
67
|
+
className: e("bg-border -mx-1 h-px", t),
|
|
68
|
+
...n
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function _({ className: t, ...n }) {
|
|
72
|
+
return /* @__PURE__ */ o(l.Item, {
|
|
73
|
+
"data-slot": "command-item",
|
|
74
|
+
className: e("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
75
|
+
...n
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function v({ className: t, ...n }) {
|
|
79
|
+
return /* @__PURE__ */ o("span", {
|
|
80
|
+
"data-slot": "command-shortcut",
|
|
81
|
+
className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
|
|
82
|
+
...n
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
export { u as Command, d as CommandDialog, m as CommandEmpty, h as CommandGroup, f as CommandInput, _ as CommandItem, p as CommandList, g as CommandSeparator, v as CommandShortcut };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { CheckboxItem2 as t, Content2 as n, Group2 as r, Item2 as i, ItemIndicator2 as a, Label2 as o, Portal2 as s, RadioGroup2 as c, RadioItem2 as l, Root2 as u, Separator2 as d, Sub2 as f, SubContent2 as p, SubTrigger2 as m, Trigger as h } from "../../../node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js";
|
|
4
|
+
import * as g from "react";
|
|
5
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
6
|
+
import { Check as y, ChevronRight as b, Circle as x } from "lucide-react";
|
|
7
|
+
//#region src/components/ui/context-menu.tsx
|
|
8
|
+
var S = u, C = h, w = r, T = s, E = f, D = c, O = g.forwardRef(({ className: t, inset: n, children: r, ...i }, a) => /* @__PURE__ */ v(m, {
|
|
9
|
+
ref: a,
|
|
10
|
+
className: e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", n && "pl-8", t),
|
|
11
|
+
...i,
|
|
12
|
+
children: [r, /* @__PURE__ */ _(b, { className: "ml-auto h-4 w-4" })]
|
|
13
|
+
}));
|
|
14
|
+
O.displayName = m.displayName;
|
|
15
|
+
var k = g.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(p, {
|
|
16
|
+
ref: r,
|
|
17
|
+
className: e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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 origin-[--radix-context-menu-content-transform-origin]", t),
|
|
18
|
+
...n
|
|
19
|
+
}));
|
|
20
|
+
k.displayName = p.displayName;
|
|
21
|
+
var A = g.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ _(s, { children: /* @__PURE__ */ _(n, {
|
|
22
|
+
ref: i,
|
|
23
|
+
className: e("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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 origin-[--radix-context-menu-content-transform-origin]", t),
|
|
24
|
+
...r
|
|
25
|
+
}) }));
|
|
26
|
+
A.displayName = n.displayName;
|
|
27
|
+
var j = g.forwardRef(({ className: t, inset: n, ...r }, a) => /* @__PURE__ */ _(i, {
|
|
28
|
+
ref: a,
|
|
29
|
+
className: e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", n && "pl-8", t),
|
|
30
|
+
...r
|
|
31
|
+
}));
|
|
32
|
+
j.displayName = i.displayName;
|
|
33
|
+
var M = g.forwardRef(({ className: n, children: r, checked: i, ...o }, s) => /* @__PURE__ */ v(t, {
|
|
34
|
+
ref: s,
|
|
35
|
+
className: e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", n),
|
|
36
|
+
checked: i,
|
|
37
|
+
...o,
|
|
38
|
+
children: [/* @__PURE__ */ _("span", {
|
|
39
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
40
|
+
children: /* @__PURE__ */ _(a, { children: /* @__PURE__ */ _(y, { className: "h-4 w-4" }) })
|
|
41
|
+
}), r]
|
|
42
|
+
}));
|
|
43
|
+
M.displayName = t.displayName;
|
|
44
|
+
var N = g.forwardRef(({ className: t, children: n, ...r }, i) => /* @__PURE__ */ v(l, {
|
|
45
|
+
ref: i,
|
|
46
|
+
className: e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
|
|
47
|
+
...r,
|
|
48
|
+
children: [/* @__PURE__ */ _("span", {
|
|
49
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
50
|
+
children: /* @__PURE__ */ _(a, { children: /* @__PURE__ */ _(x, { className: "h-2 w-2 fill-current" }) })
|
|
51
|
+
}), n]
|
|
52
|
+
}));
|
|
53
|
+
N.displayName = l.displayName;
|
|
54
|
+
var P = g.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ _(o, {
|
|
55
|
+
ref: i,
|
|
56
|
+
className: e("px-2 py-1.5 text-sm font-semibold text-foreground", n && "pl-8", t),
|
|
57
|
+
...r
|
|
58
|
+
}));
|
|
59
|
+
P.displayName = o.displayName;
|
|
60
|
+
var F = g.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ _(d, {
|
|
61
|
+
ref: r,
|
|
62
|
+
className: e("-mx-1 my-1 h-px bg-border", t),
|
|
63
|
+
...n
|
|
64
|
+
}));
|
|
65
|
+
F.displayName = d.displayName;
|
|
66
|
+
var I = ({ className: t, ...n }) => /* @__PURE__ */ _("span", {
|
|
67
|
+
className: e("ml-auto text-xs tracking-widest text-muted-foreground", t),
|
|
68
|
+
...n
|
|
69
|
+
});
|
|
70
|
+
I.displayName = "ContextMenuShortcut";
|
|
71
|
+
//#endregion
|
|
72
|
+
export { S as ContextMenu, M as ContextMenuCheckboxItem, A as ContextMenuContent, w as ContextMenuGroup, j as ContextMenuItem, P as ContextMenuLabel, T as ContextMenuPortal, D as ContextMenuRadioGroup, N as ContextMenuRadioItem, F as ContextMenuSeparator, I as ContextMenuShortcut, E as ContextMenuSub, k as ContextMenuSubContent, O as ContextMenuSubTrigger, C as ContextMenuTrigger };
|
|
@@ -0,0 +1,88 @@
|
|
|
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/dialog.tsx
|
|
8
|
+
function f({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ l(o, {
|
|
10
|
+
"data-slot": "dialog",
|
|
11
|
+
...e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function p({ className: t, ...n }) {
|
|
15
|
+
return /* @__PURE__ */ l(c, {
|
|
16
|
+
"data-slot": "dialog-trigger",
|
|
17
|
+
className: e("cursor-pointer", t),
|
|
18
|
+
...n
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function m({ ...e }) {
|
|
22
|
+
return /* @__PURE__ */ l(a, {
|
|
23
|
+
"data-slot": "dialog-portal",
|
|
24
|
+
...e
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function h({ className: n, ...r }) {
|
|
28
|
+
return /* @__PURE__ */ l(t, {
|
|
29
|
+
"data-slot": "dialog-close",
|
|
30
|
+
className: e("cursor-pointer", n),
|
|
31
|
+
...r
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function g({ className: t, ...n }) {
|
|
35
|
+
return /* @__PURE__ */ l(i, {
|
|
36
|
+
"data-slot": "dialog-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, showCloseButton: a = !0, ...o }) {
|
|
42
|
+
return /* @__PURE__ */ u(m, {
|
|
43
|
+
"data-slot": "dialog-portal",
|
|
44
|
+
children: [/* @__PURE__ */ l(g, {}), /* @__PURE__ */ u(n, {
|
|
45
|
+
"data-slot": "dialog-content",
|
|
46
|
+
className: e("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border border-border p-6 shadow-lg duration-200 sm:max-w-xl md:max-w-2xl lg:max-w-3xl", r),
|
|
47
|
+
...o,
|
|
48
|
+
children: [i, a && /* @__PURE__ */ u(t, {
|
|
49
|
+
"data-slot": "dialog-close",
|
|
50
|
+
className: "ring-offset-background cursor-pointer focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground 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 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
51
|
+
children: [/* @__PURE__ */ l(d, {}), /* @__PURE__ */ l("span", {
|
|
52
|
+
className: "sr-only",
|
|
53
|
+
children: "Close"
|
|
54
|
+
})]
|
|
55
|
+
})]
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function v({ className: t, ...n }) {
|
|
60
|
+
return /* @__PURE__ */ l("div", {
|
|
61
|
+
"data-slot": "dialog-header",
|
|
62
|
+
className: e("flex flex-col gap-2 text-center sm:text-left", t),
|
|
63
|
+
...n
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function y({ className: t, ...n }) {
|
|
67
|
+
return /* @__PURE__ */ l("div", {
|
|
68
|
+
"data-slot": "dialog-footer",
|
|
69
|
+
className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
|
|
70
|
+
...n
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function b({ className: t, ...n }) {
|
|
74
|
+
return /* @__PURE__ */ l(s, {
|
|
75
|
+
"data-slot": "dialog-title",
|
|
76
|
+
className: e("text-lg leading-none font-semibold", t),
|
|
77
|
+
...n
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
function x({ className: t, ...n }) {
|
|
81
|
+
return /* @__PURE__ */ l(r, {
|
|
82
|
+
"data-slot": "dialog-description",
|
|
83
|
+
className: e("text-muted-foreground text-sm", t),
|
|
84
|
+
...n
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { f as Dialog, h as DialogClose, _ as DialogContent, x as DialogDescription, y as DialogFooter, v as DialogHeader, g as DialogOverlay, m as DialogPortal, b as DialogTitle, p as DialogTrigger };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
5
|
+
import { Drawer as r } from "vaul";
|
|
6
|
+
//#region src/components/ui/drawer.tsx
|
|
7
|
+
function i({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ t(r.Root, {
|
|
9
|
+
"data-slot": "drawer",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function a({ className: n, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ t(r.Trigger, {
|
|
15
|
+
"data-slot": "drawer-trigger",
|
|
16
|
+
className: e("cursor-pointer", n),
|
|
17
|
+
...i
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function o({ ...e }) {
|
|
21
|
+
return /* @__PURE__ */ t(r.Portal, {
|
|
22
|
+
"data-slot": "drawer-portal",
|
|
23
|
+
...e
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function s({ className: n, ...i }) {
|
|
27
|
+
return /* @__PURE__ */ t(r.Close, {
|
|
28
|
+
"data-slot": "drawer-close",
|
|
29
|
+
className: e("cursor-pointer", n),
|
|
30
|
+
...i
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function c({ className: n, ...i }) {
|
|
34
|
+
return /* @__PURE__ */ t(r.Overlay, {
|
|
35
|
+
"data-slot": "drawer-overlay",
|
|
36
|
+
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", n),
|
|
37
|
+
...i
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function l({ className: i, children: a, ...s }) {
|
|
41
|
+
return /* @__PURE__ */ n(o, {
|
|
42
|
+
"data-slot": "drawer-portal",
|
|
43
|
+
children: [/* @__PURE__ */ t(c, {}), /* @__PURE__ */ n(r.Content, {
|
|
44
|
+
"data-slot": "drawer-content",
|
|
45
|
+
className: e("group/drawer-content bg-background fixed z-50 flex h-auto flex-col", "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b", "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t", "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm", "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm", i),
|
|
46
|
+
...s,
|
|
47
|
+
children: [/* @__PURE__ */ t("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }), a]
|
|
48
|
+
})]
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function u({ className: n, ...r }) {
|
|
52
|
+
return /* @__PURE__ */ t("div", {
|
|
53
|
+
"data-slot": "drawer-header",
|
|
54
|
+
className: e("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left", n),
|
|
55
|
+
...r
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
function d({ className: n, ...r }) {
|
|
59
|
+
return /* @__PURE__ */ t("div", {
|
|
60
|
+
"data-slot": "drawer-footer",
|
|
61
|
+
className: e("mt-auto flex flex-col gap-2 p-4", n),
|
|
62
|
+
...r
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function f({ className: n, ...i }) {
|
|
66
|
+
return /* @__PURE__ */ t(r.Title, {
|
|
67
|
+
"data-slot": "drawer-title",
|
|
68
|
+
className: e("text-foreground font-semibold", n),
|
|
69
|
+
...i
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
function p({ className: n, ...i }) {
|
|
73
|
+
return /* @__PURE__ */ t(r.Description, {
|
|
74
|
+
"data-slot": "drawer-description",
|
|
75
|
+
className: e("text-muted-foreground text-sm", n),
|
|
76
|
+
...i
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
export { i as Drawer, s as DrawerClose, l as DrawerContent, p as DrawerDescription, d as DrawerFooter, u as DrawerHeader, c as DrawerOverlay, o as DrawerPortal, f as DrawerTitle, a as DrawerTrigger };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { CheckboxItem2 as t, Content2 as n, Group2 as r, Item2 as i, ItemIndicator2 as a, Label2 as o, Portal2 as s, RadioGroup2 as c, RadioItem2 as l, Root2 as u, Separator2 as d, Sub2 as f, SubContent2 as p, SubTrigger2 as m, Trigger as h } from "../../../node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
6
|
+
import { CheckIcon as v, ChevronRightIcon as y, CircleIcon as b } from "lucide-react";
|
|
7
|
+
//#region src/components/ui/dropdown-menu.tsx
|
|
8
|
+
function x({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ g(u, {
|
|
10
|
+
"data-slot": "dropdown-menu",
|
|
11
|
+
...e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function S({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ g(s, {
|
|
16
|
+
"data-slot": "dropdown-menu-portal",
|
|
17
|
+
...e
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function C({ className: t, ...n }) {
|
|
21
|
+
return /* @__PURE__ */ g(h, {
|
|
22
|
+
"data-slot": "dropdown-menu-trigger",
|
|
23
|
+
className: e("cursor-pointer", t),
|
|
24
|
+
...n
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function w({ className: t, sideOffset: r = 4, ...i }) {
|
|
28
|
+
return /* @__PURE__ */ g(s, { children: /* @__PURE__ */ g(n, {
|
|
29
|
+
"data-slot": "dropdown-menu-content",
|
|
30
|
+
sideOffset: r,
|
|
31
|
+
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 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", t),
|
|
32
|
+
...i
|
|
33
|
+
}) });
|
|
34
|
+
}
|
|
35
|
+
function T({ ...e }) {
|
|
36
|
+
return /* @__PURE__ */ g(r, {
|
|
37
|
+
"data-slot": "dropdown-menu-group",
|
|
38
|
+
...e
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function E({ className: t, inset: n, variant: r = "default", ...a }) {
|
|
42
|
+
return /* @__PURE__ */ g(i, {
|
|
43
|
+
"data-slot": "dropdown-menu-item",
|
|
44
|
+
"data-inset": n,
|
|
45
|
+
"data-variant": r,
|
|
46
|
+
className: e("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
47
|
+
...a
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function D({ className: n, children: r, checked: i, ...o }) {
|
|
51
|
+
return /* @__PURE__ */ _(t, {
|
|
52
|
+
"data-slot": "dropdown-menu-checkbox-item",
|
|
53
|
+
className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", n),
|
|
54
|
+
checked: i,
|
|
55
|
+
...o,
|
|
56
|
+
children: [/* @__PURE__ */ g("span", {
|
|
57
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
58
|
+
children: /* @__PURE__ */ g(a, { children: /* @__PURE__ */ g(v, { className: "size-4" }) })
|
|
59
|
+
}), r]
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function O({ ...e }) {
|
|
63
|
+
return /* @__PURE__ */ g(c, {
|
|
64
|
+
"data-slot": "dropdown-menu-radio-group",
|
|
65
|
+
...e
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function k({ className: t, children: n, ...r }) {
|
|
69
|
+
return /* @__PURE__ */ _(l, {
|
|
70
|
+
"data-slot": "dropdown-menu-radio-item",
|
|
71
|
+
className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 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", t),
|
|
72
|
+
...r,
|
|
73
|
+
children: [/* @__PURE__ */ g("span", {
|
|
74
|
+
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
75
|
+
children: /* @__PURE__ */ g(a, { children: /* @__PURE__ */ g(b, { className: "size-2 fill-current" }) })
|
|
76
|
+
}), n]
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
function A({ className: t, inset: n, ...r }) {
|
|
80
|
+
return /* @__PURE__ */ g(o, {
|
|
81
|
+
"data-slot": "dropdown-menu-label",
|
|
82
|
+
"data-inset": n,
|
|
83
|
+
className: e("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t),
|
|
84
|
+
...r
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function j({ className: t, ...n }) {
|
|
88
|
+
return /* @__PURE__ */ g(d, {
|
|
89
|
+
"data-slot": "dropdown-menu-separator",
|
|
90
|
+
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
91
|
+
...n
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function M({ className: t, ...n }) {
|
|
95
|
+
return /* @__PURE__ */ g("span", {
|
|
96
|
+
"data-slot": "dropdown-menu-shortcut",
|
|
97
|
+
className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
|
|
98
|
+
...n
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function N({ ...e }) {
|
|
102
|
+
return /* @__PURE__ */ g(f, {
|
|
103
|
+
"data-slot": "dropdown-menu-sub",
|
|
104
|
+
...e
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function P({ className: t, inset: n, children: r, ...i }) {
|
|
108
|
+
return /* @__PURE__ */ _(m, {
|
|
109
|
+
"data-slot": "dropdown-menu-sub-trigger",
|
|
110
|
+
"data-inset": n,
|
|
111
|
+
className: e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-pointer items-center rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8", t),
|
|
112
|
+
...i,
|
|
113
|
+
children: [r, /* @__PURE__ */ g(y, { className: "ml-auto size-4" })]
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function F({ className: t, ...n }) {
|
|
117
|
+
return /* @__PURE__ */ g(p, {
|
|
118
|
+
"data-slot": "dropdown-menu-sub-content",
|
|
119
|
+
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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", t),
|
|
120
|
+
...n
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
export { x as DropdownMenu, D as DropdownMenuCheckboxItem, w as DropdownMenuContent, T as DropdownMenuGroup, E as DropdownMenuItem, A as DropdownMenuLabel, S as DropdownMenuPortal, O as DropdownMenuRadioGroup, k as DropdownMenuRadioItem, j as DropdownMenuSeparator, M as DropdownMenuShortcut, N as DropdownMenuSub, F as DropdownMenuSubContent, P as DropdownMenuSubTrigger, C as DropdownMenuTrigger };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { cva as t } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/empty.tsx
|
|
5
|
+
function r({ className: t, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ n("div", {
|
|
7
|
+
"data-slot": "empty",
|
|
8
|
+
className: e("flex min-w-0 flex-1 flex-col items-center justify-center gap-6 text-balance rounded-lg border-dashed p-6 text-center md:p-12", t),
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function i({ className: t, ...r }) {
|
|
13
|
+
return /* @__PURE__ */ n("div", {
|
|
14
|
+
"data-slot": "empty-header",
|
|
15
|
+
className: e("flex max-w-sm flex-col items-center gap-2 text-center", t),
|
|
16
|
+
...r
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
var a = t("mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0", {
|
|
20
|
+
variants: { variant: {
|
|
21
|
+
default: "bg-transparent",
|
|
22
|
+
icon: "bg-muted text-foreground flex size-10 shrink-0 items-center justify-center rounded-lg [&_svg:not([class*='size-'])]:size-6"
|
|
23
|
+
} },
|
|
24
|
+
defaultVariants: { variant: "default" }
|
|
25
|
+
});
|
|
26
|
+
function o({ className: t, variant: r = "default", ...i }) {
|
|
27
|
+
return /* @__PURE__ */ n("div", {
|
|
28
|
+
"data-slot": "empty-icon",
|
|
29
|
+
"data-variant": r,
|
|
30
|
+
className: e(a({
|
|
31
|
+
variant: r,
|
|
32
|
+
className: t
|
|
33
|
+
})),
|
|
34
|
+
...i
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
function s({ className: t, ...r }) {
|
|
38
|
+
return /* @__PURE__ */ n("div", {
|
|
39
|
+
"data-slot": "empty-title",
|
|
40
|
+
className: e("text-lg font-medium tracking-tight", t),
|
|
41
|
+
...r
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function c({ className: t, ...r }) {
|
|
45
|
+
return /* @__PURE__ */ n("div", {
|
|
46
|
+
"data-slot": "empty-description",
|
|
47
|
+
className: e("text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4", t),
|
|
48
|
+
...r
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function l({ className: t, ...r }) {
|
|
52
|
+
return /* @__PURE__ */ n("div", {
|
|
53
|
+
"data-slot": "empty-content",
|
|
54
|
+
className: e("flex w-full min-w-0 max-w-sm flex-col items-center gap-4 text-balance text-sm", t),
|
|
55
|
+
...r
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { r as Empty, l as EmptyContent, c as EmptyDescription, i as EmptyHeader, o as EmptyMedia, s as EmptyTitle };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { cva as t } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { Separator as n } from "./separator.js";
|
|
5
|
+
import { Label as r } from "./label.js";
|
|
6
|
+
import { useMemo as i } from "react";
|
|
7
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/ui/field.tsx
|
|
9
|
+
function s({ className: t, ...n }) {
|
|
10
|
+
return /* @__PURE__ */ a("fieldset", {
|
|
11
|
+
"data-slot": "field-set",
|
|
12
|
+
className: e("flex flex-col gap-6", "has-[>[data-slot=checkbox-group]]:gap-3 has-[>[data-slot=radio-group]]:gap-3", t),
|
|
13
|
+
...n
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function c({ className: t, variant: n = "legend", ...r }) {
|
|
17
|
+
return /* @__PURE__ */ a("legend", {
|
|
18
|
+
"data-slot": "field-legend",
|
|
19
|
+
"data-variant": n,
|
|
20
|
+
className: e("mb-3 font-medium", "data-[variant=legend]:text-base", "data-[variant=label]:text-sm", t),
|
|
21
|
+
...r
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function l({ className: t, ...n }) {
|
|
25
|
+
return /* @__PURE__ */ a("div", {
|
|
26
|
+
"data-slot": "field-group",
|
|
27
|
+
className: e("group/field-group @container/field-group flex w-full flex-col gap-7 data-[slot=checkbox-group]:gap-3 [&>[data-slot=field-group]]:gap-4", t),
|
|
28
|
+
...n
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var u = t("group/field data-[invalid=true]:text-destructive flex w-full gap-3", {
|
|
32
|
+
variants: { orientation: {
|
|
33
|
+
vertical: ["flex-col [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
34
|
+
horizontal: [
|
|
35
|
+
"flex-row items-center",
|
|
36
|
+
"[&>[data-slot=field-label]]:flex-auto",
|
|
37
|
+
"has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px has-[>[data-slot=field-content]]:items-start"
|
|
38
|
+
],
|
|
39
|
+
responsive: [
|
|
40
|
+
"@md/field-group:flex-row @md/field-group:items-center @md/field-group:[&>*]:w-auto flex-col [&>*]:w-full [&>.sr-only]:w-auto",
|
|
41
|
+
"@md/field-group:[&>[data-slot=field-label]]:flex-auto",
|
|
42
|
+
"@md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
43
|
+
]
|
|
44
|
+
} },
|
|
45
|
+
defaultVariants: { orientation: "vertical" }
|
|
46
|
+
});
|
|
47
|
+
function d({ className: t, orientation: n = "vertical", ...r }) {
|
|
48
|
+
return /* @__PURE__ */ a("div", {
|
|
49
|
+
role: "group",
|
|
50
|
+
"data-slot": "field",
|
|
51
|
+
"data-orientation": n,
|
|
52
|
+
className: e(u({ orientation: n }), t),
|
|
53
|
+
...r
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function f({ className: t, ...n }) {
|
|
57
|
+
return /* @__PURE__ */ a("div", {
|
|
58
|
+
"data-slot": "field-content",
|
|
59
|
+
className: e("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", t),
|
|
60
|
+
...n
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function p({ className: t, ...n }) {
|
|
64
|
+
return /* @__PURE__ */ a(r, {
|
|
65
|
+
"data-slot": "field-label",
|
|
66
|
+
className: e("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>[data-slot=field]]:p-4", "has-data-[state=checked]:bg-primary/5 has-data-[state=checked]:border-primary dark:has-data-[state=checked]:bg-primary/10", t),
|
|
67
|
+
...n
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function m({ className: t, ...n }) {
|
|
71
|
+
return /* @__PURE__ */ a("div", {
|
|
72
|
+
"data-slot": "field-label",
|
|
73
|
+
className: e("flex w-fit items-center gap-2 text-sm font-medium leading-snug group-data-[disabled=true]/field:opacity-50", t),
|
|
74
|
+
...n
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function h({ className: t, ...n }) {
|
|
78
|
+
return /* @__PURE__ */ a("p", {
|
|
79
|
+
"data-slot": "field-description",
|
|
80
|
+
className: e("text-muted-foreground text-sm font-normal leading-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "nth-last-2:-mt-1 last:mt-0 [[data-variant=legend]+&]:-mt-1.5", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t),
|
|
81
|
+
...n
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
function g({ children: t, className: r, ...i }) {
|
|
85
|
+
return /* @__PURE__ */ o("div", {
|
|
86
|
+
"data-slot": "field-separator",
|
|
87
|
+
"data-content": !!t,
|
|
88
|
+
className: e("relative -my-2 h-5 text-sm group-data-[variant=outline]/field-group:-mb-2", r),
|
|
89
|
+
...i,
|
|
90
|
+
children: [/* @__PURE__ */ a(n, { className: "absolute inset-0 top-1/2" }), t && /* @__PURE__ */ a("span", {
|
|
91
|
+
className: "bg-background text-muted-foreground relative mx-auto block w-fit px-2",
|
|
92
|
+
"data-slot": "field-separator-content",
|
|
93
|
+
children: t
|
|
94
|
+
})]
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
function _({ className: t, children: n, errors: r, ...o }) {
|
|
98
|
+
let s = i(() => n || (r ? r?.length === 1 && r[0]?.message ? r[0].message : /* @__PURE__ */ a("ul", {
|
|
99
|
+
className: "ml-4 flex list-disc flex-col gap-1",
|
|
100
|
+
children: r.map((e, t) => e?.message && /* @__PURE__ */ a("li", { children: e.message }, t))
|
|
101
|
+
}) : null), [n, r]);
|
|
102
|
+
return s ? /* @__PURE__ */ a("div", {
|
|
103
|
+
role: "alert",
|
|
104
|
+
"data-slot": "field-error",
|
|
105
|
+
className: e("text-destructive text-sm font-normal", t),
|
|
106
|
+
...o,
|
|
107
|
+
children: s
|
|
108
|
+
}) : null;
|
|
109
|
+
}
|
|
110
|
+
//#endregion
|
|
111
|
+
export { d as Field, f as FieldContent, h as FieldDescription, _ as FieldError, l as FieldGroup, p as FieldLabel, c as FieldLegend, g as FieldSeparator, s as FieldSet, m as FieldTitle };
|