@inspirare/design-system 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/accordion.js +44 -0
- package/dist/components/ui/alert-dialog.js +61 -0
- package/dist/{src/components → components}/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +6 -0
- package/dist/components/ui/avatar.js +29 -0
- package/dist/{src/components → components}/ui/badge.js +6 -6
- package/dist/components/ui/breadcrumb.js +60 -0
- package/dist/components/ui/button-group.js +38 -0
- package/dist/{src/components → components}/ui/button.js +6 -6
- package/dist/{src/components → components}/ui/calendar.js +16 -16
- package/dist/{src/components → components}/ui/carousel.js +29 -29
- package/dist/{src/components → components}/ui/checkbox.js +10 -10
- package/dist/components/ui/collapsible.js +26 -0
- package/dist/{src/components → components}/ui/combobox.js +10 -10
- package/dist/{src/components → components}/ui/command.js +17 -17
- package/dist/{src/components → components}/ui/context-menu.js +37 -37
- package/dist/{src/components → components}/ui/dialog.js +36 -36
- package/dist/{src/components → components}/ui/dropdown-menu.js +46 -46
- package/dist/{src/components → components}/ui/empty.js +21 -21
- package/dist/{src/components → components}/ui/field.js +27 -27
- package/dist/components/ui/form.js +77 -0
- package/dist/{src/components → components}/ui/hover-card.js +14 -14
- package/dist/{src/components → components}/ui/input-group.js +18 -18
- package/dist/{src/components → components}/ui/input-otp.js +13 -13
- package/dist/components/ui/item.js +116 -0
- package/dist/{src/components → components}/ui/label.js +3 -3
- package/dist/components/ui/menubar.js +105 -0
- package/dist/components/ui/navigation-menu.js +58 -0
- package/dist/{src/components → components}/ui/pagination.js +18 -18
- package/dist/components/ui/popover.js +36 -0
- package/dist/components/ui/progress.js +20 -0
- package/dist/{src/components → components}/ui/radio-group.js +14 -14
- package/dist/{src/components → components}/ui/resizable.js +7 -7
- package/dist/{src/components → components}/ui/select.js +44 -44
- package/dist/{src/components → components}/ui/separator.js +3 -3
- package/dist/{src/components → components}/ui/sheet.js +35 -35
- package/dist/{src/components → components}/ui/sidebar.js +124 -124
- package/dist/{src/components → components}/ui/slider.js +20 -20
- package/dist/{src/components → components}/ui/spinner.js +3 -3
- package/dist/{src/components → components}/ui/switch.js +9 -9
- package/dist/{src/components → components}/ui/tabs.js +19 -19
- package/dist/{src/components → components}/ui/theme-toggle.js +10 -10
- package/dist/components/ui/toggle-group.js +44 -0
- package/dist/{src/components → components}/ui/toggle.js +7 -7
- package/dist/components/ui/tooltip.js +37 -0
- package/package.json +5 -5
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -359
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -328
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -212
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -97
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -106
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +0 -8
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +0 -195
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +0 -119
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +0 -20
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +0 -31
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +0 -73
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -158
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +0 -97
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +0 -62
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -25
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +0 -240
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +0 -80
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -108
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +0 -225
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -22
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -146
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +0 -161
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +0 -12
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +0 -16
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +0 -563
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +0 -312
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +0 -553
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +0 -199
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +0 -203
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +0 -85
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +0 -41
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +0 -249
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -154
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +0 -727
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +0 -23
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +0 -404
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.5_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +0 -71
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +0 -138
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +0 -120
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +0 -125
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +0 -30
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +0 -351
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -45
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +0 -19
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -5
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -11
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +0 -29
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -27
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +0 -46
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -33
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -70
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -4
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -27
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -14
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -116
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -13
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -52
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +0 -3
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -28
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -19
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -22
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +0 -16
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +0 -69
- package/dist/src/components/ui/accordion.js +0 -44
- package/dist/src/components/ui/alert-dialog.js +0 -61
- package/dist/src/components/ui/aspect-ratio.js +0 -6
- package/dist/src/components/ui/avatar.js +0 -29
- package/dist/src/components/ui/breadcrumb.js +0 -60
- package/dist/src/components/ui/button-group.js +0 -38
- package/dist/src/components/ui/collapsible.js +0 -26
- package/dist/src/components/ui/form.js +0 -76
- package/dist/src/components/ui/item.js +0 -116
- package/dist/src/components/ui/menubar.js +0 -105
- package/dist/src/components/ui/navigation-menu.js +0 -58
- package/dist/src/components/ui/popover.js +0 -36
- package/dist/src/components/ui/progress.js +0 -20
- package/dist/src/components/ui/toggle-group.js +0 -44
- package/dist/src/components/ui/tooltip.js +0 -37
- /package/dist/{src/components → components}/ui/accessibility-improvements.js +0 -0
- /package/dist/{src/components → components}/ui/card.js +0 -0
- /package/dist/{src/components → components}/ui/chart.js +0 -0
- /package/dist/{src/components → components}/ui/color-picker.js +0 -0
- /package/dist/{src/components → components}/ui/drawer.js +0 -0
- /package/dist/{src/components → components}/ui/input.js +0 -0
- /package/dist/{src/components → components}/ui/kbd.js +0 -0
- /package/dist/{src/components → components}/ui/scroll-area.js +0 -0
- /package/dist/{src/components → components}/ui/skeleton.js +0 -0
- /package/dist/{src/components → components}/ui/sonner.js +0 -0
- /package/dist/{src/components → components}/ui/table.js +0 -0
- /package/dist/{src/components → components}/ui/textarea.js +0 -0
- /package/dist/{src/hooks → hooks}/use-mobile.js +0 -0
- /package/dist/{src/index.js → index.js} +0 -0
- /package/dist/{src/lib → lib}/utils.js +0 -0
|
@@ -4,35 +4,35 @@ import { Button as t } from "./button.js";
|
|
|
4
4
|
import { Popover as n, PopoverContent as r, PopoverTrigger as i } from "./popover.js";
|
|
5
5
|
import { Command as a, CommandEmpty as o, CommandGroup as s, CommandInput as c, CommandItem as l, CommandList as u } from "./command.js";
|
|
6
6
|
import * as d from "react";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { Check as f, ChevronsUpDown as p } from "lucide-react";
|
|
8
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
9
|
//#region src/components/ui/combobox.tsx
|
|
10
10
|
function g({ options: g, value: _, onChange: v, placeholder: y = "Select option...", searchPlaceholder: b = "Search...", emptyMessage: x = "No option found.", className: S, buttonClassName: C, contentClassName: w, disabled: T = !1 }) {
|
|
11
11
|
let [E, D] = d.useState(!1), O = d.useMemo(() => g.find((e) => e.value === _)?.label, [g, _]);
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ h(n, {
|
|
13
13
|
open: E,
|
|
14
14
|
onOpenChange: D,
|
|
15
|
-
children: [/* @__PURE__ */
|
|
15
|
+
children: [/* @__PURE__ */ m(i, {
|
|
16
16
|
asChild: !0,
|
|
17
|
-
children: /* @__PURE__ */
|
|
17
|
+
children: /* @__PURE__ */ h(t, {
|
|
18
18
|
variant: "outline",
|
|
19
19
|
role: "combobox",
|
|
20
20
|
"aria-expanded": E,
|
|
21
21
|
disabled: T,
|
|
22
22
|
className: e("w-full justify-between", !_ && "text-muted-foreground", C),
|
|
23
|
-
children: [O || y, /* @__PURE__ */
|
|
23
|
+
children: [O || y, /* @__PURE__ */ m(p, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })]
|
|
24
24
|
})
|
|
25
|
-
}), /* @__PURE__ */
|
|
25
|
+
}), /* @__PURE__ */ m(r, {
|
|
26
26
|
className: e("w-full p-0", w),
|
|
27
27
|
align: "start",
|
|
28
|
-
children: /* @__PURE__ */
|
|
28
|
+
children: /* @__PURE__ */ h(a, {
|
|
29
29
|
className: S,
|
|
30
|
-
children: [/* @__PURE__ */
|
|
30
|
+
children: [/* @__PURE__ */ m(c, { placeholder: b }), /* @__PURE__ */ h(u, { children: [/* @__PURE__ */ m(o, { children: x }), /* @__PURE__ */ m(s, { children: g.map((t) => /* @__PURE__ */ h(l, {
|
|
31
31
|
value: t.value,
|
|
32
32
|
onSelect: (e) => {
|
|
33
33
|
v?.(e === _ ? "" : e), D(!1);
|
|
34
34
|
},
|
|
35
|
-
children: [/* @__PURE__ */ f
|
|
35
|
+
children: [/* @__PURE__ */ m(f, { className: e("mr-2 h-4 w-4", _ === t.value ? "opacity-100" : "opacity-0") }), t.label]
|
|
36
36
|
}, t.value)) })] })]
|
|
37
37
|
})
|
|
38
38
|
})]
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
3
|
import { Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a } from "./dialog.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { SearchIcon as o } from "lucide-react";
|
|
6
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
7
|
import { Command as l } from "cmdk";
|
|
8
8
|
//#region src/components/ui/command.tsx
|
|
9
9
|
function u({ className: t, ...n }) {
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
return /* @__PURE__ */ s(l, {
|
|
11
11
|
"data-slot": "command",
|
|
12
12
|
className: e("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md", t),
|
|
13
13
|
...n
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
function d({ title:
|
|
17
|
-
return /* @__PURE__ */
|
|
16
|
+
function d({ title: o = "Command Palette", description: l = "Search for a command to run...", children: d, className: f, showCloseButton: p = !0, ...m }) {
|
|
17
|
+
return /* @__PURE__ */ c(t, {
|
|
18
18
|
...m,
|
|
19
|
-
children: [/* @__PURE__ */
|
|
19
|
+
children: [/* @__PURE__ */ c(i, {
|
|
20
20
|
className: "sr-only",
|
|
21
|
-
children: [/* @__PURE__ */
|
|
22
|
-
}), /* @__PURE__ */
|
|
21
|
+
children: [/* @__PURE__ */ s(a, { children: o }), /* @__PURE__ */ s(r, { children: l })]
|
|
22
|
+
}), /* @__PURE__ */ s(n, {
|
|
23
23
|
className: e("overflow-hidden p-0", f),
|
|
24
24
|
showCloseButton: p,
|
|
25
|
-
children: /* @__PURE__ */
|
|
25
|
+
children: /* @__PURE__ */ s(u, {
|
|
26
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
27
|
children: d
|
|
28
28
|
})
|
|
@@ -30,10 +30,10 @@ function d({ title: c = "Command Palette", description: l = "Search for a comman
|
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
function f({ className: t, ...n }) {
|
|
33
|
-
return /* @__PURE__ */
|
|
33
|
+
return /* @__PURE__ */ c("div", {
|
|
34
34
|
"data-slot": "command-input-wrapper",
|
|
35
35
|
className: "flex h-9 items-center gap-2 border-b px-3",
|
|
36
|
-
children: [/* @__PURE__ */ o
|
|
36
|
+
children: [/* @__PURE__ */ s(o, { className: "size-4 shrink-0 opacity-50" }), /* @__PURE__ */ s(l.Input, {
|
|
37
37
|
"data-slot": "command-input",
|
|
38
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
39
|
...n
|
|
@@ -41,42 +41,42 @@ function f({ className: t, ...n }) {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
function p({ className: t, ...n }) {
|
|
44
|
-
return /* @__PURE__ */
|
|
44
|
+
return /* @__PURE__ */ s(l.List, {
|
|
45
45
|
"data-slot": "command-list",
|
|
46
46
|
className: e("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto", t),
|
|
47
47
|
...n
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
function m({ ...e }) {
|
|
51
|
-
return /* @__PURE__ */
|
|
51
|
+
return /* @__PURE__ */ s(l.Empty, {
|
|
52
52
|
"data-slot": "command-empty",
|
|
53
53
|
className: "py-6 text-center text-sm",
|
|
54
54
|
...e
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function h({ className: t, ...n }) {
|
|
58
|
-
return /* @__PURE__ */
|
|
58
|
+
return /* @__PURE__ */ s(l.Group, {
|
|
59
59
|
"data-slot": "command-group",
|
|
60
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
61
|
...n
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
function g({ className: t, ...n }) {
|
|
65
|
-
return /* @__PURE__ */
|
|
65
|
+
return /* @__PURE__ */ s(l.Separator, {
|
|
66
66
|
"data-slot": "command-separator",
|
|
67
67
|
className: e("bg-border -mx-1 h-px", t),
|
|
68
68
|
...n
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
71
|
function _({ className: t, ...n }) {
|
|
72
|
-
return /* @__PURE__ */
|
|
72
|
+
return /* @__PURE__ */ s(l.Item, {
|
|
73
73
|
"data-slot": "command-item",
|
|
74
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
75
|
...n
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
function v({ className: t, ...n }) {
|
|
79
|
-
return /* @__PURE__ */
|
|
79
|
+
return /* @__PURE__ */ s("span", {
|
|
80
80
|
"data-slot": "command-shortcut",
|
|
81
81
|
className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
|
|
82
82
|
...n
|
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { jsx as
|
|
6
|
-
import
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { Check as n, ChevronRight as r, Circle as i } from "lucide-react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import * as s from "@radix-ui/react-context-menu";
|
|
7
7
|
//#region src/components/ui/context-menu.tsx
|
|
8
|
-
var
|
|
9
|
-
ref:
|
|
8
|
+
var c = s.Root, l = s.Trigger, u = s.Group, d = s.Portal, f = s.Sub, p = s.RadioGroup, m = t.forwardRef(({ className: t, inset: n, children: i, ...c }, l) => /* @__PURE__ */ o(s.SubTrigger, {
|
|
9
|
+
ref: l,
|
|
10
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
|
-
...
|
|
12
|
-
children: [
|
|
11
|
+
...c,
|
|
12
|
+
children: [i, /* @__PURE__ */ a(r, { className: "ml-auto h-4 w-4" })]
|
|
13
13
|
}));
|
|
14
|
-
|
|
15
|
-
var
|
|
14
|
+
m.displayName = s.SubTrigger.displayName;
|
|
15
|
+
var h = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.SubContent, {
|
|
16
16
|
ref: r,
|
|
17
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
18
|
...n
|
|
19
19
|
}));
|
|
20
|
-
|
|
21
|
-
var
|
|
22
|
-
ref:
|
|
20
|
+
h.displayName = s.SubContent.displayName;
|
|
21
|
+
var g = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Portal, { children: /* @__PURE__ */ a(s.Content, {
|
|
22
|
+
ref: r,
|
|
23
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
|
-
...
|
|
24
|
+
...n
|
|
25
25
|
}) }));
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
ref:
|
|
26
|
+
g.displayName = s.Content.displayName;
|
|
27
|
+
var _ = t.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ a(s.Item, {
|
|
28
|
+
ref: i,
|
|
29
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
30
|
...r
|
|
31
31
|
}));
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
ref:
|
|
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",
|
|
32
|
+
_.displayName = s.Item.displayName;
|
|
33
|
+
var v = t.forwardRef(({ className: t, children: r, checked: i, ...c }, l) => /* @__PURE__ */ o(s.CheckboxItem, {
|
|
34
|
+
ref: l,
|
|
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", t),
|
|
36
36
|
checked: i,
|
|
37
|
-
...
|
|
38
|
-
children: [/* @__PURE__ */
|
|
37
|
+
...c,
|
|
38
|
+
children: [/* @__PURE__ */ a("span", {
|
|
39
39
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
40
|
-
children: /* @__PURE__ */
|
|
40
|
+
children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(n, { className: "h-4 w-4" }) })
|
|
41
41
|
}), r]
|
|
42
42
|
}));
|
|
43
|
-
|
|
44
|
-
var
|
|
45
|
-
ref:
|
|
43
|
+
v.displayName = s.CheckboxItem.displayName;
|
|
44
|
+
var y = t.forwardRef(({ className: t, children: n, ...r }, c) => /* @__PURE__ */ o(s.RadioItem, {
|
|
45
|
+
ref: c,
|
|
46
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
47
|
...r,
|
|
48
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ a("span", {
|
|
49
49
|
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
50
|
-
children: /* @__PURE__ */
|
|
50
|
+
children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(i, { className: "h-2 w-2 fill-current" }) })
|
|
51
51
|
}), n]
|
|
52
52
|
}));
|
|
53
|
-
|
|
54
|
-
var
|
|
53
|
+
y.displayName = s.RadioItem.displayName;
|
|
54
|
+
var b = t.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ a(s.Label, {
|
|
55
55
|
ref: i,
|
|
56
56
|
className: e("px-2 py-1.5 text-sm font-semibold text-foreground", n && "pl-8", t),
|
|
57
57
|
...r
|
|
58
58
|
}));
|
|
59
|
-
|
|
60
|
-
var
|
|
59
|
+
b.displayName = s.Label.displayName;
|
|
60
|
+
var x = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Separator, {
|
|
61
61
|
ref: r,
|
|
62
62
|
className: e("-mx-1 my-1 h-px bg-border", t),
|
|
63
63
|
...n
|
|
64
64
|
}));
|
|
65
|
-
|
|
66
|
-
var
|
|
65
|
+
x.displayName = s.Separator.displayName;
|
|
66
|
+
var S = ({ className: t, ...n }) => /* @__PURE__ */ a("span", {
|
|
67
67
|
className: e("ml-auto text-xs tracking-widest text-muted-foreground", t),
|
|
68
68
|
...n
|
|
69
69
|
});
|
|
70
|
-
|
|
70
|
+
S.displayName = "ContextMenuShortcut";
|
|
71
71
|
//#endregion
|
|
72
|
-
export {
|
|
72
|
+
export { c as ContextMenu, v as ContextMenuCheckboxItem, g as ContextMenuContent, u as ContextMenuGroup, _ as ContextMenuItem, b as ContextMenuLabel, d as ContextMenuPortal, p as ContextMenuRadioGroup, y as ContextMenuRadioItem, x as ContextMenuSeparator, S as ContextMenuShortcut, f as ContextMenuSub, h as ContextMenuSubContent, m as ContextMenuSubTrigger, l as ContextMenuTrigger };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
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
3
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { XIcon as t } from "lucide-react";
|
|
5
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
6
|
+
import * as i from "@radix-ui/react-dialog";
|
|
7
7
|
//#region src/components/ui/dialog.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function a({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ n(i.Root, {
|
|
10
10
|
"data-slot": "dialog",
|
|
11
11
|
...e
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
function o({ className: t, ...r }) {
|
|
15
|
+
return /* @__PURE__ */ n(i.Trigger, {
|
|
16
16
|
"data-slot": "dialog-trigger",
|
|
17
17
|
className: e("cursor-pointer", t),
|
|
18
|
-
...
|
|
18
|
+
...r
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
return /* @__PURE__ */
|
|
21
|
+
function s({ ...e }) {
|
|
22
|
+
return /* @__PURE__ */ n(i.Portal, {
|
|
23
23
|
"data-slot": "dialog-portal",
|
|
24
24
|
...e
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
function c({ className: t, ...r }) {
|
|
28
|
+
return /* @__PURE__ */ n(i.Close, {
|
|
29
29
|
"data-slot": "dialog-close",
|
|
30
|
-
className: e("cursor-pointer",
|
|
30
|
+
className: e("cursor-pointer", t),
|
|
31
31
|
...r
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
return /* @__PURE__ */
|
|
34
|
+
function l({ className: t, ...r }) {
|
|
35
|
+
return /* @__PURE__ */ n(i.Overlay, {
|
|
36
36
|
"data-slot": "dialog-overlay",
|
|
37
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
|
-
...
|
|
38
|
+
...r
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return /* @__PURE__ */
|
|
41
|
+
function u({ className: a, children: o, showCloseButton: c = !0, ...u }) {
|
|
42
|
+
return /* @__PURE__ */ r(s, {
|
|
43
43
|
"data-slot": "dialog-portal",
|
|
44
|
-
children: [/* @__PURE__ */ l
|
|
44
|
+
children: [/* @__PURE__ */ n(l, {}), /* @__PURE__ */ r(i.Content, {
|
|
45
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",
|
|
47
|
-
...
|
|
48
|
-
children: [
|
|
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", a),
|
|
47
|
+
...u,
|
|
48
|
+
children: [o, c && /* @__PURE__ */ r(i.Close, {
|
|
49
49
|
"data-slot": "dialog-close",
|
|
50
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__ */
|
|
51
|
+
children: [/* @__PURE__ */ n(t, {}), /* @__PURE__ */ n("span", {
|
|
52
52
|
className: "sr-only",
|
|
53
53
|
children: "Close"
|
|
54
54
|
})]
|
|
@@ -56,33 +56,33 @@ function _({ className: r, children: i, showCloseButton: a = !0, ...o }) {
|
|
|
56
56
|
})]
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return /* @__PURE__ */
|
|
59
|
+
function d({ className: t, ...r }) {
|
|
60
|
+
return /* @__PURE__ */ n("div", {
|
|
61
61
|
"data-slot": "dialog-header",
|
|
62
62
|
className: e("flex flex-col gap-2 text-center sm:text-left", t),
|
|
63
|
-
...
|
|
63
|
+
...r
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
function
|
|
67
|
-
return /* @__PURE__ */
|
|
66
|
+
function f({ className: t, ...r }) {
|
|
67
|
+
return /* @__PURE__ */ n("div", {
|
|
68
68
|
"data-slot": "dialog-footer",
|
|
69
69
|
className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
|
|
70
|
-
...
|
|
70
|
+
...r
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
return /* @__PURE__ */
|
|
73
|
+
function p({ className: t, ...r }) {
|
|
74
|
+
return /* @__PURE__ */ n(i.Title, {
|
|
75
75
|
"data-slot": "dialog-title",
|
|
76
76
|
className: e("text-lg leading-none font-semibold", t),
|
|
77
|
-
...
|
|
77
|
+
...r
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
function
|
|
81
|
-
return /* @__PURE__ */
|
|
80
|
+
function m({ className: t, ...r }) {
|
|
81
|
+
return /* @__PURE__ */ n(i.Description, {
|
|
82
82
|
"data-slot": "dialog-description",
|
|
83
83
|
className: e("text-muted-foreground text-sm", t),
|
|
84
|
-
...
|
|
84
|
+
...r
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
//#endregion
|
|
88
|
-
export {
|
|
88
|
+
export { a as Dialog, c as DialogClose, u as DialogContent, m as DialogDescription, f as DialogFooter, d as DialogHeader, l as DialogOverlay, s as DialogPortal, p as DialogTitle, o as DialogTrigger };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
"use client";
|
|
2
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
3
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { CheckIcon as t, ChevronRightIcon as n, CircleIcon as r } from "lucide-react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import * as o from "@radix-ui/react-dropdown-menu";
|
|
7
7
|
//#region src/components/ui/dropdown-menu.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function s({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ i(o.Root, {
|
|
10
10
|
"data-slot": "dropdown-menu",
|
|
11
11
|
...e
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
function c({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ i(o.Portal, {
|
|
16
16
|
"data-slot": "dropdown-menu-portal",
|
|
17
17
|
...e
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
function l({ className: t, ...n }) {
|
|
21
|
+
return /* @__PURE__ */ i(o.Trigger, {
|
|
22
22
|
"data-slot": "dropdown-menu-trigger",
|
|
23
23
|
className: e("cursor-pointer", t),
|
|
24
24
|
...n
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
return /* @__PURE__ */
|
|
27
|
+
function u({ className: t, sideOffset: n = 4, ...r }) {
|
|
28
|
+
return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ i(o.Content, {
|
|
29
29
|
"data-slot": "dropdown-menu-content",
|
|
30
|
-
sideOffset:
|
|
30
|
+
sideOffset: n,
|
|
31
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
|
-
...
|
|
32
|
+
...r
|
|
33
33
|
}) });
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return /* @__PURE__ */
|
|
35
|
+
function d({ ...e }) {
|
|
36
|
+
return /* @__PURE__ */ i(o.Group, {
|
|
37
37
|
"data-slot": "dropdown-menu-group",
|
|
38
38
|
...e
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return /* @__PURE__ */
|
|
41
|
+
function f({ className: t, inset: n, variant: r = "default", ...a }) {
|
|
42
|
+
return /* @__PURE__ */ i(o.Item, {
|
|
43
43
|
"data-slot": "dropdown-menu-item",
|
|
44
44
|
"data-inset": n,
|
|
45
45
|
"data-variant": r,
|
|
@@ -47,78 +47,78 @@ function E({ className: t, inset: n, variant: r = "default", ...a }) {
|
|
|
47
47
|
...a
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return /* @__PURE__ */
|
|
50
|
+
function p({ className: n, children: r, checked: s, ...c }) {
|
|
51
|
+
return /* @__PURE__ */ a(o.CheckboxItem, {
|
|
52
52
|
"data-slot": "dropdown-menu-checkbox-item",
|
|
53
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:
|
|
55
|
-
...
|
|
56
|
-
children: [/* @__PURE__ */
|
|
54
|
+
checked: s,
|
|
55
|
+
...c,
|
|
56
|
+
children: [/* @__PURE__ */ i("span", {
|
|
57
57
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
58
|
-
children: /* @__PURE__ */
|
|
58
|
+
children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "size-4" }) })
|
|
59
59
|
}), r]
|
|
60
60
|
});
|
|
61
61
|
}
|
|
62
|
-
function
|
|
63
|
-
return /* @__PURE__ */
|
|
62
|
+
function m({ ...e }) {
|
|
63
|
+
return /* @__PURE__ */ i(o.RadioGroup, {
|
|
64
64
|
"data-slot": "dropdown-menu-radio-group",
|
|
65
65
|
...e
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
return /* @__PURE__ */
|
|
68
|
+
function h({ className: t, children: n, ...s }) {
|
|
69
|
+
return /* @__PURE__ */ a(o.RadioItem, {
|
|
70
70
|
"data-slot": "dropdown-menu-radio-item",
|
|
71
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
|
-
...
|
|
73
|
-
children: [/* @__PURE__ */
|
|
72
|
+
...s,
|
|
73
|
+
children: [/* @__PURE__ */ i("span", {
|
|
74
74
|
className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
|
|
75
|
-
children: /* @__PURE__ */
|
|
75
|
+
children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(r, { className: "size-2 fill-current" }) })
|
|
76
76
|
}), n]
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return /* @__PURE__ */
|
|
79
|
+
function g({ className: t, inset: n, ...r }) {
|
|
80
|
+
return /* @__PURE__ */ i(o.Label, {
|
|
81
81
|
"data-slot": "dropdown-menu-label",
|
|
82
82
|
"data-inset": n,
|
|
83
83
|
className: e("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", t),
|
|
84
84
|
...r
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
87
|
+
function _({ className: t, ...n }) {
|
|
88
|
+
return /* @__PURE__ */ i(o.Separator, {
|
|
89
89
|
"data-slot": "dropdown-menu-separator",
|
|
90
90
|
className: e("bg-border -mx-1 my-1 h-px", t),
|
|
91
91
|
...n
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return /* @__PURE__ */
|
|
94
|
+
function v({ className: t, ...n }) {
|
|
95
|
+
return /* @__PURE__ */ i("span", {
|
|
96
96
|
"data-slot": "dropdown-menu-shortcut",
|
|
97
97
|
className: e("text-muted-foreground ml-auto text-xs tracking-widest", t),
|
|
98
98
|
...n
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
-
function
|
|
102
|
-
return /* @__PURE__ */
|
|
101
|
+
function y({ ...e }) {
|
|
102
|
+
return /* @__PURE__ */ i(o.Sub, {
|
|
103
103
|
"data-slot": "dropdown-menu-sub",
|
|
104
104
|
...e
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
return /* @__PURE__ */
|
|
107
|
+
function b({ className: t, inset: r, children: s, ...c }) {
|
|
108
|
+
return /* @__PURE__ */ a(o.SubTrigger, {
|
|
109
109
|
"data-slot": "dropdown-menu-sub-trigger",
|
|
110
|
-
"data-inset":
|
|
110
|
+
"data-inset": r,
|
|
111
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
|
-
...
|
|
113
|
-
children: [
|
|
112
|
+
...c,
|
|
113
|
+
children: [s, /* @__PURE__ */ i(n, { className: "ml-auto size-4" })]
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
function
|
|
117
|
-
return /* @__PURE__ */
|
|
116
|
+
function x({ className: t, ...n }) {
|
|
117
|
+
return /* @__PURE__ */ i(o.SubContent, {
|
|
118
118
|
"data-slot": "dropdown-menu-sub-content",
|
|
119
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
120
|
...n
|
|
121
121
|
});
|
|
122
122
|
}
|
|
123
123
|
//#endregion
|
|
124
|
-
export {
|
|
124
|
+
export { s as DropdownMenu, p as DropdownMenuCheckboxItem, u as DropdownMenuContent, d as DropdownMenuGroup, f as DropdownMenuItem, g as DropdownMenuLabel, c as DropdownMenuPortal, m as DropdownMenuRadioGroup, h as DropdownMenuRadioItem, _ as DropdownMenuSeparator, v as DropdownMenuShortcut, y as DropdownMenuSub, x as DropdownMenuSubContent, b as DropdownMenuSubTrigger, l as DropdownMenuTrigger };
|