@inspirare/design-system 0.0.21 → 0.0.22
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 +1 -1
- 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
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
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-menubar";
|
|
7
|
+
//#region src/components/ui/menubar.tsx
|
|
8
|
+
function c({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ a(s.Menu, { ...e });
|
|
10
|
+
}
|
|
11
|
+
function l({ ...e }) {
|
|
12
|
+
return /* @__PURE__ */ a(s.Group, { ...e });
|
|
13
|
+
}
|
|
14
|
+
function u({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ a(s.Portal, { ...e });
|
|
16
|
+
}
|
|
17
|
+
function d({ ...e }) {
|
|
18
|
+
return /* @__PURE__ */ a(s.RadioGroup, { ...e });
|
|
19
|
+
}
|
|
20
|
+
function f({ ...e }) {
|
|
21
|
+
return /* @__PURE__ */ a(s.Sub, {
|
|
22
|
+
"data-slot": "menubar-sub",
|
|
23
|
+
...e
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
var p = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Root, {
|
|
27
|
+
ref: r,
|
|
28
|
+
className: e("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", t),
|
|
29
|
+
...n
|
|
30
|
+
}));
|
|
31
|
+
p.displayName = s.Root.displayName;
|
|
32
|
+
var m = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Trigger, {
|
|
33
|
+
ref: r,
|
|
34
|
+
className: e("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", t),
|
|
35
|
+
...n
|
|
36
|
+
}));
|
|
37
|
+
m.displayName = s.Trigger.displayName;
|
|
38
|
+
var h = t.forwardRef(({ className: t, inset: n, children: i, ...c }, l) => /* @__PURE__ */ o(s.SubTrigger, {
|
|
39
|
+
ref: l,
|
|
40
|
+
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),
|
|
41
|
+
...c,
|
|
42
|
+
children: [i, /* @__PURE__ */ a(r, { className: "ml-auto h-4 w-4" })]
|
|
43
|
+
}));
|
|
44
|
+
h.displayName = s.SubTrigger.displayName;
|
|
45
|
+
var g = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.SubContent, {
|
|
46
|
+
ref: r,
|
|
47
|
+
className: e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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 origin-[--radix-menubar-content-transform-origin]", t),
|
|
48
|
+
...n
|
|
49
|
+
}));
|
|
50
|
+
g.displayName = s.SubContent.displayName;
|
|
51
|
+
var _ = t.forwardRef(({ className: t, align: n = "start", alignOffset: r = -4, sideOffset: i = 8, ...o }, c) => /* @__PURE__ */ a(s.Portal, { children: /* @__PURE__ */ a(s.Content, {
|
|
52
|
+
ref: c,
|
|
53
|
+
align: n,
|
|
54
|
+
alignOffset: r,
|
|
55
|
+
sideOffset: i,
|
|
56
|
+
className: e("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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-menubar-content-transform-origin]", t),
|
|
57
|
+
...o
|
|
58
|
+
}) }));
|
|
59
|
+
_.displayName = s.Content.displayName;
|
|
60
|
+
var v = t.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ a(s.Item, {
|
|
61
|
+
ref: i,
|
|
62
|
+
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),
|
|
63
|
+
...r
|
|
64
|
+
}));
|
|
65
|
+
v.displayName = s.Item.displayName;
|
|
66
|
+
var y = t.forwardRef(({ className: t, children: r, checked: i, ...c }, l) => /* @__PURE__ */ o(s.CheckboxItem, {
|
|
67
|
+
ref: l,
|
|
68
|
+
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),
|
|
69
|
+
checked: i,
|
|
70
|
+
...c,
|
|
71
|
+
children: [/* @__PURE__ */ a("span", {
|
|
72
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
73
|
+
children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(n, { className: "h-4 w-4" }) })
|
|
74
|
+
}), r]
|
|
75
|
+
}));
|
|
76
|
+
y.displayName = s.CheckboxItem.displayName;
|
|
77
|
+
var b = t.forwardRef(({ className: t, children: n, ...r }, c) => /* @__PURE__ */ o(s.RadioItem, {
|
|
78
|
+
ref: c,
|
|
79
|
+
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),
|
|
80
|
+
...r,
|
|
81
|
+
children: [/* @__PURE__ */ a("span", {
|
|
82
|
+
className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
|
|
83
|
+
children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(i, { className: "h-2 w-2 fill-current" }) })
|
|
84
|
+
}), n]
|
|
85
|
+
}));
|
|
86
|
+
b.displayName = s.RadioItem.displayName;
|
|
87
|
+
var x = t.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ a(s.Label, {
|
|
88
|
+
ref: i,
|
|
89
|
+
className: e("px-2 py-1.5 text-sm font-semibold", n && "pl-8", t),
|
|
90
|
+
...r
|
|
91
|
+
}));
|
|
92
|
+
x.displayName = s.Label.displayName;
|
|
93
|
+
var S = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Separator, {
|
|
94
|
+
ref: r,
|
|
95
|
+
className: e("-mx-1 my-1 h-px bg-muted", t),
|
|
96
|
+
...n
|
|
97
|
+
}));
|
|
98
|
+
S.displayName = s.Separator.displayName;
|
|
99
|
+
var C = ({ className: t, ...n }) => /* @__PURE__ */ a("span", {
|
|
100
|
+
className: e("ml-auto text-xs tracking-widest text-muted-foreground", t),
|
|
101
|
+
...n
|
|
102
|
+
});
|
|
103
|
+
C.displayname = "MenubarShortcut";
|
|
104
|
+
//#endregion
|
|
105
|
+
export { p as Menubar, y as MenubarCheckboxItem, _ as MenubarContent, l as MenubarGroup, v as MenubarItem, x as MenubarLabel, c as MenubarMenu, u as MenubarPortal, d as MenubarRadioGroup, b as MenubarRadioItem, S as MenubarSeparator, C as MenubarShortcut, f as MenubarSub, g as MenubarSubContent, h as MenubarSubTrigger, m as MenubarTrigger };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { ChevronDown as n } from "lucide-react";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { cva as a } from "class-variance-authority";
|
|
6
|
+
import * as o from "@radix-ui/react-navigation-menu";
|
|
7
|
+
//#region src/components/ui/navigation-menu.tsx
|
|
8
|
+
var s = t.forwardRef(({ className: t, children: n, ...a }, s) => /* @__PURE__ */ i(o.Root, {
|
|
9
|
+
ref: s,
|
|
10
|
+
className: e("relative z-10 flex max-w-max flex-1 items-center justify-center", t),
|
|
11
|
+
...a,
|
|
12
|
+
children: [n, /* @__PURE__ */ r(m, {})]
|
|
13
|
+
}));
|
|
14
|
+
s.displayName = o.Root.displayName;
|
|
15
|
+
var c = t.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.List, {
|
|
16
|
+
ref: i,
|
|
17
|
+
className: e("group flex flex-1 list-none items-center justify-center space-x-1", t),
|
|
18
|
+
...n
|
|
19
|
+
}));
|
|
20
|
+
c.displayName = o.List.displayName;
|
|
21
|
+
var l = o.Item, u = a("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"), d = t.forwardRef(({ className: t, children: a, ...s }, c) => /* @__PURE__ */ i(o.Trigger, {
|
|
22
|
+
ref: c,
|
|
23
|
+
className: e(u(), "group", t),
|
|
24
|
+
...s,
|
|
25
|
+
children: [
|
|
26
|
+
a,
|
|
27
|
+
" ",
|
|
28
|
+
/* @__PURE__ */ r(n, {
|
|
29
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
})
|
|
32
|
+
]
|
|
33
|
+
}));
|
|
34
|
+
d.displayName = o.Trigger.displayName;
|
|
35
|
+
var f = t.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.Content, {
|
|
36
|
+
ref: i,
|
|
37
|
+
className: e("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", t),
|
|
38
|
+
...n
|
|
39
|
+
}));
|
|
40
|
+
f.displayName = o.Content.displayName;
|
|
41
|
+
var p = o.Link, m = t.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r("div", {
|
|
42
|
+
className: e("absolute left-0 top-full flex justify-center"),
|
|
43
|
+
children: /* @__PURE__ */ r(o.Viewport, {
|
|
44
|
+
className: e("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]", t),
|
|
45
|
+
ref: i,
|
|
46
|
+
...n
|
|
47
|
+
})
|
|
48
|
+
}));
|
|
49
|
+
m.displayName = o.Viewport.displayName;
|
|
50
|
+
var h = t.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(o.Indicator, {
|
|
51
|
+
ref: i,
|
|
52
|
+
className: e("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", t),
|
|
53
|
+
...n,
|
|
54
|
+
children: /* @__PURE__ */ r("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
55
|
+
}));
|
|
56
|
+
h.displayName = o.Indicator.displayName;
|
|
57
|
+
//#endregion
|
|
58
|
+
export { s as NavigationMenu, f as NavigationMenuContent, h as NavigationMenuIndicator, l as NavigationMenuItem, p as NavigationMenuLink, c as NavigationMenuList, d as NavigationMenuTrigger, m as NavigationMenuViewport, u as navigationMenuTriggerStyle };
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
2
|
import { buttonVariants as t } from "./button.js";
|
|
3
3
|
import * as n from "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { ChevronLeft as r, ChevronRight as i, MoreHorizontal as a } from "lucide-react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/ui/pagination.tsx
|
|
7
|
-
var c = ({ className: t, ...n }) => /* @__PURE__ */
|
|
7
|
+
var c = ({ className: t, ...n }) => /* @__PURE__ */ o("nav", {
|
|
8
8
|
role: "navigation",
|
|
9
9
|
"aria-label": "pagination",
|
|
10
10
|
className: e("mx-auto flex w-full justify-center", t),
|
|
11
11
|
...n
|
|
12
12
|
});
|
|
13
13
|
c.displayName = "Pagination";
|
|
14
|
-
var l = n.forwardRef(({ className: t, ...n },
|
|
15
|
-
ref:
|
|
14
|
+
var l = n.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o("ul", {
|
|
15
|
+
ref: r,
|
|
16
16
|
className: e("flex flex-row items-center gap-1", t),
|
|
17
17
|
...n
|
|
18
18
|
}));
|
|
19
19
|
l.displayName = "PaginationContent";
|
|
20
|
-
var u = n.forwardRef(({ className: t, ...n },
|
|
21
|
-
ref:
|
|
20
|
+
var u = n.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ o("li", {
|
|
21
|
+
ref: r,
|
|
22
22
|
className: e("", t),
|
|
23
23
|
...n
|
|
24
24
|
}));
|
|
25
25
|
u.displayName = "PaginationItem";
|
|
26
|
-
var d = ({ className: n, isActive:
|
|
27
|
-
"aria-current":
|
|
26
|
+
var d = ({ className: n, isActive: r, size: i = "icon", ...a }) => /* @__PURE__ */ o("a", {
|
|
27
|
+
"aria-current": r ? "page" : void 0,
|
|
28
28
|
className: e(t({
|
|
29
|
-
variant:
|
|
30
|
-
size:
|
|
29
|
+
variant: r ? "outline" : "ghost",
|
|
30
|
+
size: i
|
|
31
31
|
}), n),
|
|
32
|
-
...
|
|
32
|
+
...a
|
|
33
33
|
});
|
|
34
34
|
d.displayName = "PaginationLink";
|
|
35
|
-
var f = ({ className: t, ...n }) => /* @__PURE__ */
|
|
35
|
+
var f = ({ className: t, ...n }) => /* @__PURE__ */ s(d, {
|
|
36
36
|
"aria-label": "Go to previous page",
|
|
37
37
|
size: "default",
|
|
38
38
|
className: e("gap-1 pl-2.5", t),
|
|
39
39
|
...n,
|
|
40
|
-
children: [/* @__PURE__ */ r
|
|
40
|
+
children: [/* @__PURE__ */ o(r, { className: "h-4 w-4" }), /* @__PURE__ */ o("span", { children: "Previous" })]
|
|
41
41
|
});
|
|
42
42
|
f.displayName = "PaginationPrevious";
|
|
43
|
-
var p = ({ className: t, ...n }) => /* @__PURE__ */
|
|
43
|
+
var p = ({ className: t, ...n }) => /* @__PURE__ */ s(d, {
|
|
44
44
|
"aria-label": "Go to next page",
|
|
45
45
|
size: "default",
|
|
46
46
|
className: e("gap-1 pr-2.5", t),
|
|
47
47
|
...n,
|
|
48
|
-
children: [/* @__PURE__ */
|
|
48
|
+
children: [/* @__PURE__ */ o("span", { children: "Next" }), /* @__PURE__ */ o(i, { className: "h-4 w-4" })]
|
|
49
49
|
});
|
|
50
50
|
p.displayName = "PaginationNext";
|
|
51
|
-
var m = ({ className: t, ...n }) => /* @__PURE__ */
|
|
51
|
+
var m = ({ className: t, ...n }) => /* @__PURE__ */ s("span", {
|
|
52
52
|
"aria-hidden": !0,
|
|
53
53
|
className: e("flex h-9 w-9 items-center justify-center", t),
|
|
54
54
|
...n,
|
|
55
|
-
children: [/* @__PURE__ */
|
|
55
|
+
children: [/* @__PURE__ */ o(a, { className: "h-4 w-4" }), /* @__PURE__ */ o("span", {
|
|
56
56
|
className: "sr-only",
|
|
57
57
|
children: "More pages"
|
|
58
58
|
})]
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import * as n from "@radix-ui/react-popover";
|
|
6
|
+
//#region src/components/ui/popover.tsx
|
|
7
|
+
function r({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
|
+
"data-slot": "popover",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function i({ className: r, ...i }) {
|
|
14
|
+
return /* @__PURE__ */ t(n.Trigger, {
|
|
15
|
+
"data-slot": "popover-trigger",
|
|
16
|
+
className: e("cursor-pointer", r),
|
|
17
|
+
...i
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function a({ className: r, align: i = "center", sideOffset: a = 4, ...o }) {
|
|
21
|
+
return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(n.Content, {
|
|
22
|
+
"data-slot": "popover-content",
|
|
23
|
+
align: i,
|
|
24
|
+
sideOffset: a,
|
|
25
|
+
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", r),
|
|
26
|
+
...o
|
|
27
|
+
}) });
|
|
28
|
+
}
|
|
29
|
+
function o({ ...e }) {
|
|
30
|
+
return /* @__PURE__ */ t(n.Anchor, {
|
|
31
|
+
"data-slot": "popover-anchor",
|
|
32
|
+
...e
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { r as Popover, o as PopoverAnchor, a as PopoverContent, i as PopoverTrigger };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import * as n from "@radix-ui/react-progress";
|
|
6
|
+
//#region src/components/ui/progress.tsx
|
|
7
|
+
function r({ className: r, value: i, ...a }) {
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
|
+
"data-slot": "progress",
|
|
10
|
+
className: e("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full", r),
|
|
11
|
+
...a,
|
|
12
|
+
children: /* @__PURE__ */ t(n.Indicator, {
|
|
13
|
+
"data-slot": "progress-indicator",
|
|
14
|
+
className: "bg-primary h-full w-full flex-1 transition-all",
|
|
15
|
+
style: { transform: `translateX(-${100 - (i || 0)}%)` }
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as Progress };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import { RadioGroup as t, RadioGroupIndicator as n, RadioGroupItem as r } from "../../../node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js";
|
|
3
2
|
import "react";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { CircleIcon as t } from "lucide-react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
import { RadioGroup as r } from "radix-ui";
|
|
6
6
|
//#region src/components/ui/radio-group.tsx
|
|
7
|
-
function
|
|
8
|
-
return /* @__PURE__ */
|
|
7
|
+
function i({ className: t, ...i }) {
|
|
8
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
9
9
|
"data-slot": "radio-group",
|
|
10
|
-
className: e("grid gap-3",
|
|
11
|
-
...
|
|
10
|
+
className: e("grid gap-3", t),
|
|
11
|
+
...i
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
function a({ className: i, ...a }) {
|
|
15
|
+
return /* @__PURE__ */ n(r.Item, {
|
|
16
16
|
"data-slot": "radio-group-item",
|
|
17
|
-
className: e("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
|
|
18
|
-
...
|
|
19
|
-
children: /* @__PURE__ */
|
|
17
|
+
className: e("aspect-square size-4 shrink-0 rounded-full border border-input text-primary shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40", i),
|
|
18
|
+
...a,
|
|
19
|
+
children: /* @__PURE__ */ n(r.Indicator, {
|
|
20
20
|
"data-slot": "radio-group-indicator",
|
|
21
21
|
className: "relative flex items-center justify-center",
|
|
22
|
-
children: /* @__PURE__ */
|
|
22
|
+
children: /* @__PURE__ */ n(t, { className: "absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 fill-primary" })
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
//#endregion
|
|
27
|
-
export {
|
|
27
|
+
export { i as RadioGroup, a as RadioGroupItem };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { GripVertical as t } from "lucide-react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
5
|
import * as r from "react-resizable-panels";
|
|
6
6
|
//#region src/components/ui/resizable.tsx
|
|
7
|
-
var i = ({ className:
|
|
8
|
-
className: e("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
7
|
+
var i = ({ className: t, ...i }) => /* @__PURE__ */ n(r.Group, {
|
|
8
|
+
className: e("flex h-full w-full data-[panel-group-direction=vertical]:flex-col", t),
|
|
9
9
|
...i
|
|
10
|
-
}), a = r.Panel, o = ({ children: i, className: a, ...o }) => /* @__PURE__ */
|
|
10
|
+
}), a = r.Panel, o = ({ children: i, className: a, ...o }) => /* @__PURE__ */ n(r.Separator, {
|
|
11
11
|
className: e("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90", a),
|
|
12
12
|
...o,
|
|
13
|
-
children: i ?? /* @__PURE__ */
|
|
13
|
+
children: i ?? /* @__PURE__ */ n("div", {
|
|
14
14
|
className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",
|
|
15
|
-
children: /* @__PURE__ */ t
|
|
15
|
+
children: /* @__PURE__ */ n(t, { className: "h-2.5 w-2.5" })
|
|
16
16
|
})
|
|
17
17
|
});
|
|
18
18
|
//#endregion
|
|
@@ -1,96 +1,96 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Select as t, SelectContent as n, SelectGroup as r, SelectIcon as i, SelectItem as a, SelectItemIndicator as o, SelectItemText as s, SelectLabel as c, SelectPortal as l, SelectScrollDownButton as u, SelectScrollUpButton as d, SelectSeparator as f, SelectTrigger as p, SelectValue as m, SelectViewport as h } from "../../../node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { CheckIcon as t, ChevronDownIcon as n, ChevronUpIcon 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-select";
|
|
7
7
|
//#region src/components/ui/select.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
8
|
+
function s({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ i(o.Root, {
|
|
10
10
|
"data-slot": "select",
|
|
11
11
|
...e
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return /* @__PURE__ */
|
|
14
|
+
function c({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ i(o.Group, {
|
|
16
16
|
"data-slot": "select-group",
|
|
17
17
|
...e
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
return /* @__PURE__ */
|
|
20
|
+
function l({ ...e }) {
|
|
21
|
+
return /* @__PURE__ */ i(o.Value, {
|
|
22
22
|
"data-slot": "select-value",
|
|
23
23
|
...e
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
return /* @__PURE__ */
|
|
26
|
+
function u({ className: t, size: r = "default", children: s, ...c }) {
|
|
27
|
+
return /* @__PURE__ */ a(o.Trigger, {
|
|
28
28
|
"data-slot": "select-trigger",
|
|
29
|
-
"data-size":
|
|
29
|
+
"data-size": r,
|
|
30
30
|
className: e("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit cursor-pointer items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
31
|
-
...
|
|
32
|
-
children: [
|
|
31
|
+
...c,
|
|
32
|
+
children: [s, /* @__PURE__ */ i(o.Icon, {
|
|
33
33
|
asChild: !0,
|
|
34
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ i(n, { className: "size-4 opacity-50" })
|
|
35
35
|
})]
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return /* @__PURE__ */
|
|
38
|
+
function d({ className: t, children: n, position: r = "popper", ...s }) {
|
|
39
|
+
return /* @__PURE__ */ i(o.Portal, { children: /* @__PURE__ */ a(o.Content, {
|
|
40
40
|
"data-slot": "select-content",
|
|
41
|
-
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
|
|
42
|
-
position:
|
|
43
|
-
...
|
|
41
|
+
className: e("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md", r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", t),
|
|
42
|
+
position: r,
|
|
43
|
+
...s,
|
|
44
44
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
className: e("p-1",
|
|
48
|
-
children:
|
|
45
|
+
/* @__PURE__ */ i(h, {}),
|
|
46
|
+
/* @__PURE__ */ i(o.Viewport, {
|
|
47
|
+
className: e("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),
|
|
48
|
+
children: n
|
|
49
49
|
}),
|
|
50
|
-
/* @__PURE__ */ g
|
|
50
|
+
/* @__PURE__ */ i(g, {})
|
|
51
51
|
]
|
|
52
52
|
}) });
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
return /* @__PURE__ */
|
|
54
|
+
function f({ className: t, ...n }) {
|
|
55
|
+
return /* @__PURE__ */ i(o.Label, {
|
|
56
56
|
"data-slot": "select-label",
|
|
57
57
|
className: e("text-muted-foreground px-2 py-1.5 text-xs", t),
|
|
58
58
|
...n
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function
|
|
62
|
-
return /* @__PURE__ */
|
|
61
|
+
function p({ className: n, children: r, ...s }) {
|
|
62
|
+
return /* @__PURE__ */ a(o.Item, {
|
|
63
63
|
"data-slot": "select-item",
|
|
64
|
-
className: e("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
65
|
-
...
|
|
66
|
-
children: [/* @__PURE__ */
|
|
64
|
+
className: e("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-pointer items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2", n),
|
|
65
|
+
...s,
|
|
66
|
+
children: [/* @__PURE__ */ i("span", {
|
|
67
67
|
className: "absolute right-2 flex size-3.5 items-center justify-center",
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
}), /* @__PURE__ */
|
|
68
|
+
children: /* @__PURE__ */ i(o.ItemIndicator, { children: /* @__PURE__ */ i(t, { className: "size-4" }) })
|
|
69
|
+
}), /* @__PURE__ */ i(o.ItemText, { children: r })]
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function
|
|
73
|
-
return /* @__PURE__ */
|
|
72
|
+
function m({ className: t, ...n }) {
|
|
73
|
+
return /* @__PURE__ */ i(o.Separator, {
|
|
74
74
|
"data-slot": "select-separator",
|
|
75
75
|
className: e("bg-border pointer-events-none -mx-1 my-1 h-px", t),
|
|
76
76
|
...n
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return /* @__PURE__ */
|
|
79
|
+
function h({ className: t, ...n }) {
|
|
80
|
+
return /* @__PURE__ */ i(o.ScrollUpButton, {
|
|
81
81
|
"data-slot": "select-scroll-up-button",
|
|
82
82
|
className: e("flex cursor-pointer items-center justify-center py-1", t),
|
|
83
83
|
...n,
|
|
84
|
-
children: /* @__PURE__ */
|
|
84
|
+
children: /* @__PURE__ */ i(r, { className: "size-4" })
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
87
|
+
function g({ className: t, ...r }) {
|
|
88
|
+
return /* @__PURE__ */ i(o.ScrollDownButton, {
|
|
89
89
|
"data-slot": "select-scroll-down-button",
|
|
90
90
|
className: e("flex cursor-pointer items-center justify-center py-1", t),
|
|
91
|
-
...
|
|
92
|
-
children: /* @__PURE__ */
|
|
91
|
+
...r,
|
|
92
|
+
children: /* @__PURE__ */ i(n, { className: "size-4" })
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
//#endregion
|
|
96
|
-
export {
|
|
96
|
+
export { s as Select, d as SelectContent, c as SelectGroup, p as SelectItem, f as SelectLabel, g as SelectScrollDownButton, h as SelectScrollUpButton, m as SelectSeparator, u as SelectTrigger, l as SelectValue };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Root as t } from "../../../node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import { jsx as
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
import * as n from "@radix-ui/react-separator";
|
|
6
6
|
//#region src/components/ui/separator.tsx
|
|
7
7
|
function r({ className: r, orientation: i = "horizontal", decorative: a = !0, ...o }) {
|
|
8
|
-
return /* @__PURE__ */ n
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
9
|
"data-slot": "separator",
|
|
10
10
|
decorative: a,
|
|
11
11
|
orientation: i,
|