@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,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import * as t from "@radix-ui/react-accordion";
|
|
5
|
+
import { ChevronDownIcon as n } from "lucide-react";
|
|
6
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/ui/accordion.tsx
|
|
8
|
+
function a({ ...e }) {
|
|
9
|
+
return /* @__PURE__ */ r(t.Root, {
|
|
10
|
+
"data-slot": "accordion",
|
|
11
|
+
...e
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function o({ className: n, ...i }) {
|
|
15
|
+
return /* @__PURE__ */ r(t.Item, {
|
|
16
|
+
"data-slot": "accordion-item",
|
|
17
|
+
className: e("border-b last:border-b-0", n),
|
|
18
|
+
...i
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function s({ className: a, children: o, ...s }) {
|
|
22
|
+
return /* @__PURE__ */ r(t.Header, {
|
|
23
|
+
className: "flex",
|
|
24
|
+
children: /* @__PURE__ */ i(t.Trigger, {
|
|
25
|
+
"data-slot": "accordion-trigger",
|
|
26
|
+
className: e("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 cursor-pointer items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", a),
|
|
27
|
+
...s,
|
|
28
|
+
children: [o, /* @__PURE__ */ r(n, { className: "text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200" })]
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function c({ className: n, children: i, ...a }) {
|
|
33
|
+
return /* @__PURE__ */ r(t.Content, {
|
|
34
|
+
"data-slot": "accordion-content",
|
|
35
|
+
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
|
|
36
|
+
...a,
|
|
37
|
+
children: /* @__PURE__ */ r("div", {
|
|
38
|
+
className: e("pt-0 pb-4", n),
|
|
39
|
+
children: i
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { a as Accordion, c as AccordionContent, o as AccordionItem, s as AccordionTrigger };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { buttonVariants as t } from "./button.js";
|
|
4
|
+
import * as n from "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
import * as a from "@radix-ui/react-alert-dialog";
|
|
7
|
+
//#region src/components/ui/alert-dialog.tsx
|
|
8
|
+
var o = a.Root, s = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Trigger, {
|
|
9
|
+
className: e("cursor-pointer", t),
|
|
10
|
+
...n,
|
|
11
|
+
ref: i
|
|
12
|
+
}));
|
|
13
|
+
s.displayName = a.Trigger.displayName;
|
|
14
|
+
var c = a.Portal, l = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Overlay, {
|
|
15
|
+
className: e("fixed inset-0 z-50 bg-black/50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0", t),
|
|
16
|
+
...n,
|
|
17
|
+
ref: i
|
|
18
|
+
}));
|
|
19
|
+
l.displayName = a.Overlay.displayName;
|
|
20
|
+
var u = n.forwardRef(({ className: t, ...n }, o) => /* @__PURE__ */ i(c, { children: [/* @__PURE__ */ r(l, {}), /* @__PURE__ */ r(a.Content, {
|
|
21
|
+
ref: o,
|
|
22
|
+
className: e("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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 sm:rounded-lg", t),
|
|
23
|
+
...n
|
|
24
|
+
})] }));
|
|
25
|
+
u.displayName = a.Content.displayName;
|
|
26
|
+
var d = ({ className: t, ...n }) => /* @__PURE__ */ r("div", {
|
|
27
|
+
className: e("flex flex-col space-y-2 text-center sm:text-left", t),
|
|
28
|
+
...n
|
|
29
|
+
});
|
|
30
|
+
d.displayName = "AlertDialogHeader";
|
|
31
|
+
var f = ({ className: t, ...n }) => /* @__PURE__ */ r("div", {
|
|
32
|
+
className: e("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", t),
|
|
33
|
+
...n
|
|
34
|
+
});
|
|
35
|
+
f.displayName = "AlertDialogFooter";
|
|
36
|
+
var p = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Title, {
|
|
37
|
+
ref: i,
|
|
38
|
+
className: e("text-lg font-semibold", t),
|
|
39
|
+
...n
|
|
40
|
+
}));
|
|
41
|
+
p.displayName = a.Title.displayName;
|
|
42
|
+
var m = n.forwardRef(({ className: t, ...n }, i) => /* @__PURE__ */ r(a.Description, {
|
|
43
|
+
ref: i,
|
|
44
|
+
className: e("text-sm text-muted-foreground", t),
|
|
45
|
+
...n
|
|
46
|
+
}));
|
|
47
|
+
m.displayName = a.Description.displayName;
|
|
48
|
+
var h = n.forwardRef(({ className: n, ...i }, o) => /* @__PURE__ */ r(a.Action, {
|
|
49
|
+
ref: o,
|
|
50
|
+
className: e(t(), n),
|
|
51
|
+
...i
|
|
52
|
+
}));
|
|
53
|
+
h.displayName = a.Action.displayName;
|
|
54
|
+
var g = n.forwardRef(({ className: n, ...i }, o) => /* @__PURE__ */ r(a.Cancel, {
|
|
55
|
+
ref: o,
|
|
56
|
+
className: e(t({ variant: "outline" }), "mt-2 sm:mt-0", n),
|
|
57
|
+
...i
|
|
58
|
+
}));
|
|
59
|
+
g.displayName = a.Cancel.displayName;
|
|
60
|
+
//#endregion
|
|
61
|
+
export { o as AlertDialog, h as AlertDialogAction, g as AlertDialogCancel, u as AlertDialogContent, m as AlertDialogDescription, f as AlertDialogFooter, d as AlertDialogHeader, l as AlertDialogOverlay, c as AlertDialogPortal, p as AlertDialogTitle, s as AlertDialogTrigger };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { cn as e } from "../../lib/utils.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { cva as r } from "class-variance-authority";
|
|
5
5
|
//#region src/components/ui/alert.tsx
|
|
6
|
-
var i =
|
|
6
|
+
var i = r("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground", {
|
|
7
7
|
variants: { variant: {
|
|
8
8
|
default: "bg-background text-foreground",
|
|
9
9
|
destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
|
|
10
10
|
} },
|
|
11
11
|
defaultVariants: { variant: "default" }
|
|
12
|
-
}), a =
|
|
12
|
+
}), a = t.forwardRef(({ className: t, variant: r, ...a }, o) => /* @__PURE__ */ n("div", {
|
|
13
13
|
ref: o,
|
|
14
14
|
role: "alert",
|
|
15
|
-
className: e(i({ variant:
|
|
15
|
+
className: e(i({ variant: r }), t),
|
|
16
16
|
...a
|
|
17
17
|
}));
|
|
18
18
|
a.displayName = "Alert";
|
|
19
|
-
var o =
|
|
19
|
+
var o = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("h5", {
|
|
20
20
|
ref: i,
|
|
21
21
|
className: e("mb-1 font-medium leading-none tracking-tight", t),
|
|
22
|
-
...
|
|
22
|
+
...r
|
|
23
23
|
}));
|
|
24
24
|
o.displayName = "AlertTitle";
|
|
25
|
-
var s =
|
|
25
|
+
var s = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("div", {
|
|
26
26
|
ref: i,
|
|
27
27
|
className: e("text-sm [&_p]:leading-relaxed", t),
|
|
28
|
-
...
|
|
28
|
+
...r
|
|
29
29
|
}));
|
|
30
30
|
s.displayName = "AlertDescription";
|
|
31
31
|
//#endregion
|
|
@@ -0,0 +1,29 @@
|
|
|
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-avatar";
|
|
6
|
+
//#region src/components/ui/avatar.tsx
|
|
7
|
+
function r({ className: r, ...i }) {
|
|
8
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
9
|
+
"data-slot": "avatar",
|
|
10
|
+
className: e("relative flex size-8 shrink-0 overflow-hidden rounded-full", r),
|
|
11
|
+
...i
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function i({ className: r, ...i }) {
|
|
15
|
+
return /* @__PURE__ */ t(n.Image, {
|
|
16
|
+
"data-slot": "avatar-image",
|
|
17
|
+
className: e("aspect-square size-full", r),
|
|
18
|
+
...i
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function a({ className: r, ...i }) {
|
|
22
|
+
return /* @__PURE__ */ t(n.Fallback, {
|
|
23
|
+
"data-slot": "avatar-fallback",
|
|
24
|
+
className: e("bg-muted flex size-full items-center justify-center rounded-full", r),
|
|
25
|
+
...i
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { r as Avatar, a as AvatarFallback, i as AvatarImage };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as t } from "../../lib/utils.js";
|
|
3
|
-
import { cva as n } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
4
2
|
import "react";
|
|
5
|
-
import { jsx as
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { Slot as r } from "@radix-ui/react-slot";
|
|
6
6
|
//#region src/components/ui/badge.tsx
|
|
7
7
|
var i = n("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
8
8
|
variants: { variant: {
|
|
@@ -14,9 +14,9 @@ var i = n("inline-flex items-center justify-center rounded-md border px-2 py-0.5
|
|
|
14
14
|
defaultVariants: { variant: "default" }
|
|
15
15
|
});
|
|
16
16
|
function a({ className: n, variant: a, asChild: o = !1, ...s }) {
|
|
17
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ t(o ? r : "span", {
|
|
18
18
|
"data-slot": "badge",
|
|
19
|
-
className:
|
|
19
|
+
className: e(i({ variant: a }), n),
|
|
20
20
|
...s
|
|
21
21
|
});
|
|
22
22
|
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { ChevronRight as n, MoreHorizontal as r } from "lucide-react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { Slot as o } from "@radix-ui/react-slot";
|
|
6
|
+
//#region src/components/ui/breadcrumb.tsx
|
|
7
|
+
var s = t.forwardRef(({ ...e }, t) => /* @__PURE__ */ i("nav", {
|
|
8
|
+
ref: t,
|
|
9
|
+
"aria-label": "breadcrumb",
|
|
10
|
+
...e
|
|
11
|
+
}));
|
|
12
|
+
s.displayName = "Breadcrumb";
|
|
13
|
+
var c = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("ol", {
|
|
14
|
+
ref: r,
|
|
15
|
+
className: e("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", t),
|
|
16
|
+
...n
|
|
17
|
+
}));
|
|
18
|
+
c.displayName = "BreadcrumbList";
|
|
19
|
+
var l = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("li", {
|
|
20
|
+
ref: r,
|
|
21
|
+
className: e("inline-flex items-center gap-1.5", t),
|
|
22
|
+
...n
|
|
23
|
+
}));
|
|
24
|
+
l.displayName = "BreadcrumbItem";
|
|
25
|
+
var u = t.forwardRef(({ asChild: t, className: n, ...r }, a) => /* @__PURE__ */ i(t ? o : "a", {
|
|
26
|
+
ref: a,
|
|
27
|
+
className: e("transition-colors hover:text-foreground", n),
|
|
28
|
+
...r
|
|
29
|
+
}));
|
|
30
|
+
u.displayName = "BreadcrumbLink";
|
|
31
|
+
var d = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ i("span", {
|
|
32
|
+
ref: r,
|
|
33
|
+
role: "link",
|
|
34
|
+
"aria-disabled": "true",
|
|
35
|
+
"aria-current": "page",
|
|
36
|
+
className: e("font-normal text-foreground", t),
|
|
37
|
+
...n
|
|
38
|
+
}));
|
|
39
|
+
d.displayName = "BreadcrumbPage";
|
|
40
|
+
var f = ({ children: t, className: r, ...a }) => /* @__PURE__ */ i("li", {
|
|
41
|
+
role: "presentation",
|
|
42
|
+
"aria-hidden": "true",
|
|
43
|
+
className: e("[&>svg]:w-3.5 [&>svg]:h-3.5", r),
|
|
44
|
+
...a,
|
|
45
|
+
children: t ?? /* @__PURE__ */ i(n, {})
|
|
46
|
+
});
|
|
47
|
+
f.displayName = "BreadcrumbSeparator";
|
|
48
|
+
var p = ({ className: t, ...n }) => /* @__PURE__ */ a("span", {
|
|
49
|
+
role: "presentation",
|
|
50
|
+
"aria-hidden": "true",
|
|
51
|
+
className: e("flex h-9 w-9 items-center justify-center", t),
|
|
52
|
+
...n,
|
|
53
|
+
children: [/* @__PURE__ */ i(r, { className: "h-4 w-4" }), /* @__PURE__ */ i("span", {
|
|
54
|
+
className: "sr-only",
|
|
55
|
+
children: "More"
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
58
|
+
p.displayName = "BreadcrumbElipssis";
|
|
59
|
+
//#endregion
|
|
60
|
+
export { s as Breadcrumb, p as BreadcrumbEllipsis, l as BreadcrumbItem, u as BreadcrumbLink, c as BreadcrumbList, d as BreadcrumbPage, f as BreadcrumbSeparator };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { Separator as t } from "./separator.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import { cva as r } from "class-variance-authority";
|
|
5
|
+
import { Slot as i } from "@radix-ui/react-slot";
|
|
6
|
+
//#region src/components/ui/button-group.tsx
|
|
7
|
+
var a = r("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
|
|
8
|
+
variants: { orientation: {
|
|
9
|
+
horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
|
|
10
|
+
vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
|
|
11
|
+
} },
|
|
12
|
+
defaultVariants: { orientation: "horizontal" }
|
|
13
|
+
});
|
|
14
|
+
function o({ className: t, orientation: r, ...i }) {
|
|
15
|
+
return /* @__PURE__ */ n("div", {
|
|
16
|
+
role: "group",
|
|
17
|
+
"data-slot": "button-group",
|
|
18
|
+
"data-orientation": r,
|
|
19
|
+
className: e(a({ orientation: r }), t),
|
|
20
|
+
...i
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function s({ className: t, asChild: r = !1, ...a }) {
|
|
24
|
+
return /* @__PURE__ */ n(r ? i : "div", {
|
|
25
|
+
className: e("bg-muted shadow-xs flex items-center gap-2 rounded-md border px-4 text-sm font-medium [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none", t),
|
|
26
|
+
...a
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function c({ className: r, orientation: i = "vertical", ...a }) {
|
|
30
|
+
return /* @__PURE__ */ n(t, {
|
|
31
|
+
"data-slot": "button-group-separator",
|
|
32
|
+
orientation: i,
|
|
33
|
+
className: e("bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto", r),
|
|
34
|
+
...a
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { o as ButtonGroup, c as ButtonGroupSeparator, s as ButtonGroupText, a as buttonGroupVariants };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { cn as t } from "../../lib/utils.js";
|
|
3
|
-
import { cva as n } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
4
2
|
import "react";
|
|
5
|
-
import { jsx as
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import { cva as n } from "class-variance-authority";
|
|
5
|
+
import { Slot as r } from "@radix-ui/react-slot";
|
|
6
6
|
//#region src/components/ui/button.tsx
|
|
7
7
|
var i = n("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all cursor-pointer disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
8
8
|
variants: {
|
|
@@ -27,9 +27,9 @@ var i = n("inline-flex items-center justify-center gap-2 whitespace-nowrap round
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
function a({ className: n, variant: a, size: o, asChild: s = !1, ...c }) {
|
|
30
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ t(s ? r : "button", {
|
|
31
31
|
"data-slot": "button",
|
|
32
|
-
className:
|
|
32
|
+
className: e(i({
|
|
33
33
|
variant: a,
|
|
34
34
|
size: o,
|
|
35
35
|
className: n
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
3
|
import { Button as t, buttonVariants as n } from "./button.js";
|
|
4
4
|
import * as r from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ChevronDownIcon as i, ChevronLeftIcon as a, ChevronRightIcon as o } from "lucide-react";
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
7
7
|
import { DayPicker as c, getDefaultClassNames as l } from "react-day-picker";
|
|
8
8
|
//#region src/components/ui/calendar.tsx
|
|
9
9
|
function u({ className: t, classNames: r, showOutsideDays: u = !0, captionLayout: f = "label", buttonVariant: p = "ghost", formatters: m, components: h, ...g }) {
|
|
10
10
|
let _ = l();
|
|
11
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ s(c, {
|
|
12
12
|
showOutsideDays: u,
|
|
13
13
|
className: e("group/calendar bg-background p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, t),
|
|
14
14
|
captionLayout: f,
|
|
@@ -45,20 +45,20 @@ function u({ className: t, classNames: r, showOutsideDays: u = !0, captionLayout
|
|
|
45
45
|
...r
|
|
46
46
|
},
|
|
47
47
|
components: {
|
|
48
|
-
Root: ({ className: t, rootRef: n, ...r }) => /* @__PURE__ */
|
|
48
|
+
Root: ({ className: t, rootRef: n, ...r }) => /* @__PURE__ */ s("div", {
|
|
49
49
|
"data-slot": "calendar",
|
|
50
50
|
ref: n,
|
|
51
51
|
className: e(t),
|
|
52
52
|
...r
|
|
53
53
|
}),
|
|
54
|
-
Chevron: ({ className: t, orientation: n, ...r }) =>
|
|
54
|
+
Chevron: ({ className: t, orientation: n, ...r }) => s(n === "left" ? a : n === "right" ? o : i, {
|
|
55
55
|
className: e("size-4", t),
|
|
56
56
|
...r
|
|
57
57
|
}),
|
|
58
58
|
DayButton: d,
|
|
59
|
-
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */
|
|
59
|
+
WeekNumber: ({ children: e, ...t }) => /* @__PURE__ */ s("td", {
|
|
60
60
|
...t,
|
|
61
|
-
children: /* @__PURE__ */
|
|
61
|
+
children: /* @__PURE__ */ s("div", {
|
|
62
62
|
className: "flex size-(--cell-size) items-center justify-center text-center",
|
|
63
63
|
children: e
|
|
64
64
|
})
|
|
@@ -68,21 +68,21 @@ function u({ className: t, classNames: r, showOutsideDays: u = !0, captionLayout
|
|
|
68
68
|
...g
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
function d({ className: n, day:
|
|
71
|
+
function d({ className: n, day: i, modifiers: a, ...o }) {
|
|
72
72
|
let c = l(), u = r.useRef(null);
|
|
73
73
|
return r.useEffect(() => {
|
|
74
|
-
|
|
75
|
-
}, [
|
|
74
|
+
a.focused && u.current?.focus();
|
|
75
|
+
}, [a.focused]), /* @__PURE__ */ s(t, {
|
|
76
76
|
ref: u,
|
|
77
77
|
variant: "ghost",
|
|
78
78
|
size: "icon",
|
|
79
|
-
"data-day":
|
|
80
|
-
"data-selected-single":
|
|
81
|
-
"data-range-start":
|
|
82
|
-
"data-range-end":
|
|
83
|
-
"data-range-middle":
|
|
79
|
+
"data-day": i.date.toLocaleDateString(),
|
|
80
|
+
"data-selected-single": a.selected && !a.range_start && !a.range_end && !a.range_middle,
|
|
81
|
+
"data-range-start": a.range_start,
|
|
82
|
+
"data-range-end": a.range_end,
|
|
83
|
+
"data-range-middle": a.range_middle,
|
|
84
84
|
className: e("flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-accent-foreground [&>span]:text-xs [&>span]:opacity-70", c.day, n),
|
|
85
|
-
...
|
|
85
|
+
...o
|
|
86
86
|
});
|
|
87
87
|
}
|
|
88
88
|
//#endregion
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
3
|
import { Button as t } from "./button.js";
|
|
4
4
|
import * as n from "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { ArrowLeft as r, ArrowRight as i } from "lucide-react";
|
|
6
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
import s from "embla-carousel-react";
|
|
8
8
|
//#region src/components/ui/carousel.tsx
|
|
9
9
|
var c = n.createContext(null);
|
|
@@ -12,9 +12,9 @@ function l() {
|
|
|
12
12
|
if (!e) throw Error("useCarousel must be used within a <Carousel />");
|
|
13
13
|
return e;
|
|
14
14
|
}
|
|
15
|
-
var u = n.forwardRef(({ orientation: t = "horizontal", opts:
|
|
15
|
+
var u = n.forwardRef(({ orientation: t = "horizontal", opts: r, setApi: i, plugins: o, className: l, children: u, ...d }, f) => {
|
|
16
16
|
let [p, m] = s({
|
|
17
|
-
...
|
|
17
|
+
...r,
|
|
18
18
|
axis: t === "horizontal" ? "x" : "y"
|
|
19
19
|
}, o), [h, g] = n.useState(!1), [_, v] = n.useState(!1), y = n.useCallback((e) => {
|
|
20
20
|
e && (g(e.canScrollPrev()), v(e.canScrollNext()));
|
|
@@ -26,23 +26,23 @@ var u = n.forwardRef(({ orientation: t = "horizontal", opts: i, setApi: a, plugi
|
|
|
26
26
|
e.key === "ArrowLeft" ? (e.preventDefault(), b()) : e.key === "ArrowRight" && (e.preventDefault(), x());
|
|
27
27
|
}, [b, x]);
|
|
28
28
|
return n.useEffect(() => {
|
|
29
|
-
!m || !
|
|
30
|
-
}, [m,
|
|
29
|
+
!m || !i || i(m);
|
|
30
|
+
}, [m, i]), n.useEffect(() => {
|
|
31
31
|
if (m) return y(m), m.on("reInit", y), m.on("select", y), () => {
|
|
32
32
|
m?.off("select", y);
|
|
33
33
|
};
|
|
34
|
-
}, [m, y]), /* @__PURE__ */
|
|
34
|
+
}, [m, y]), /* @__PURE__ */ a(c.Provider, {
|
|
35
35
|
value: {
|
|
36
36
|
carouselRef: p,
|
|
37
37
|
api: m,
|
|
38
|
-
opts:
|
|
39
|
-
orientation: t || (
|
|
38
|
+
opts: r,
|
|
39
|
+
orientation: t || (r?.axis === "y" ? "vertical" : "horizontal"),
|
|
40
40
|
scrollPrev: b,
|
|
41
41
|
scrollNext: x,
|
|
42
42
|
canScrollPrev: h,
|
|
43
43
|
canScrollNext: _
|
|
44
44
|
},
|
|
45
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ a("div", {
|
|
46
46
|
ref: f,
|
|
47
47
|
onKeyDownCapture: S,
|
|
48
48
|
className: e("relative", l),
|
|
@@ -54,58 +54,58 @@ var u = n.forwardRef(({ orientation: t = "horizontal", opts: i, setApi: a, plugi
|
|
|
54
54
|
});
|
|
55
55
|
});
|
|
56
56
|
u.displayName = "Carousel";
|
|
57
|
-
var d = n.forwardRef(({ className: t, ...n },
|
|
58
|
-
let { carouselRef:
|
|
59
|
-
return /* @__PURE__ */
|
|
60
|
-
ref:
|
|
57
|
+
var d = n.forwardRef(({ className: t, ...n }, r) => {
|
|
58
|
+
let { carouselRef: i, orientation: o } = l();
|
|
59
|
+
return /* @__PURE__ */ a("div", {
|
|
60
|
+
ref: i,
|
|
61
61
|
className: "overflow-hidden",
|
|
62
|
-
children: /* @__PURE__ */
|
|
63
|
-
ref:
|
|
62
|
+
children: /* @__PURE__ */ a("div", {
|
|
63
|
+
ref: r,
|
|
64
64
|
className: e("flex", o === "horizontal" ? "-ml-4" : "-mt-4 flex-col", t),
|
|
65
65
|
...n
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
69
|
d.displayName = "CarouselContent";
|
|
70
|
-
var f = n.forwardRef(({ className: t, ...n },
|
|
71
|
-
let { orientation:
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
ref:
|
|
70
|
+
var f = n.forwardRef(({ className: t, ...n }, r) => {
|
|
71
|
+
let { orientation: i } = l();
|
|
72
|
+
return /* @__PURE__ */ a("div", {
|
|
73
|
+
ref: r,
|
|
74
74
|
role: "group",
|
|
75
75
|
"aria-roledescription": "slide",
|
|
76
|
-
className: e("min-w-0 shrink-0 grow-0 basis-full",
|
|
76
|
+
className: e("min-w-0 shrink-0 grow-0 basis-full", i === "horizontal" ? "pl-4" : "pt-4", t),
|
|
77
77
|
...n
|
|
78
78
|
});
|
|
79
79
|
});
|
|
80
80
|
f.displayName = "CarouselItem";
|
|
81
|
-
var p = n.forwardRef(({ className: n, variant:
|
|
81
|
+
var p = n.forwardRef(({ className: n, variant: i = "outline", size: s = "icon", ...c }, u) => {
|
|
82
82
|
let { orientation: d, scrollPrev: f, canScrollPrev: p } = l();
|
|
83
|
-
return /* @__PURE__ */
|
|
83
|
+
return /* @__PURE__ */ o(t, {
|
|
84
84
|
ref: u,
|
|
85
|
-
variant:
|
|
85
|
+
variant: i,
|
|
86
86
|
size: s,
|
|
87
87
|
className: e("absolute h-8 w-8 rounded-full", d === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", n),
|
|
88
88
|
disabled: !p,
|
|
89
89
|
onClick: f,
|
|
90
90
|
...c,
|
|
91
|
-
children: [/* @__PURE__ */ r
|
|
91
|
+
children: [/* @__PURE__ */ a(r, { className: "h-4 w-4" }), /* @__PURE__ */ a("span", {
|
|
92
92
|
className: "sr-only",
|
|
93
93
|
children: "Previous slide"
|
|
94
94
|
})]
|
|
95
95
|
});
|
|
96
96
|
});
|
|
97
97
|
p.displayName = "CarouselPrevious";
|
|
98
|
-
var m = n.forwardRef(({ className: n, variant:
|
|
98
|
+
var m = n.forwardRef(({ className: n, variant: r = "outline", size: s = "icon", ...c }, u) => {
|
|
99
99
|
let { orientation: d, scrollNext: f, canScrollNext: p } = l();
|
|
100
|
-
return /* @__PURE__ */
|
|
100
|
+
return /* @__PURE__ */ o(t, {
|
|
101
101
|
ref: u,
|
|
102
|
-
variant:
|
|
102
|
+
variant: r,
|
|
103
103
|
size: s,
|
|
104
104
|
className: e("absolute h-8 w-8 rounded-full", d === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", n),
|
|
105
105
|
disabled: !p,
|
|
106
106
|
onClick: f,
|
|
107
107
|
...c,
|
|
108
|
-
children: [/* @__PURE__ */
|
|
108
|
+
children: [/* @__PURE__ */ a(i, { className: "h-4 w-4" }), /* @__PURE__ */ a("span", {
|
|
109
109
|
className: "sr-only",
|
|
110
110
|
children: "Next slide"
|
|
111
111
|
})]
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../lib/utils.js";
|
|
3
|
-
import { Checkbox as t, CheckboxIndicator as n } from "../../../node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js";
|
|
4
3
|
import "react";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { CheckIcon as t } from "lucide-react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
6
|
+
import { Checkbox as r } from "radix-ui";
|
|
7
7
|
//#region src/components/ui/checkbox.tsx
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */ r
|
|
8
|
+
function i({ className: i, ...a }) {
|
|
9
|
+
return /* @__PURE__ */ n(r.Root, {
|
|
10
10
|
"data-slot": "checkbox",
|
|
11
|
-
className: e("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-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 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary",
|
|
12
|
-
...
|
|
13
|
-
children: /* @__PURE__ */ r
|
|
11
|
+
className: e("peer size-4 shrink-0 rounded-[4px] border border-input shadow-xs transition-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 data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:data-[state=checked]:bg-primary", i),
|
|
12
|
+
...a,
|
|
13
|
+
children: /* @__PURE__ */ n(r.Indicator, {
|
|
14
14
|
"data-slot": "checkbox-indicator",
|
|
15
15
|
className: "grid place-content-center text-current transition-none",
|
|
16
|
-
children: /* @__PURE__ */
|
|
16
|
+
children: /* @__PURE__ */ n(t, { className: "size-3.5" })
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
//#endregion
|
|
21
|
-
export {
|
|
21
|
+
export { i as Checkbox };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
import * as n from "@radix-ui/react-collapsible";
|
|
5
|
+
//#region src/components/ui/collapsible.tsx
|
|
6
|
+
function r({ ...e }) {
|
|
7
|
+
return /* @__PURE__ */ t(n.Root, {
|
|
8
|
+
"data-slot": "collapsible",
|
|
9
|
+
...e
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function i({ className: r, ...i }) {
|
|
13
|
+
return /* @__PURE__ */ t(n.CollapsibleTrigger, {
|
|
14
|
+
"data-slot": "collapsible-trigger",
|
|
15
|
+
className: e("cursor-pointer", r),
|
|
16
|
+
...i
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function a({ ...e }) {
|
|
20
|
+
return /* @__PURE__ */ t(n.CollapsibleContent, {
|
|
21
|
+
"data-slot": "collapsible-content",
|
|
22
|
+
...e
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
//#endregion
|
|
26
|
+
export { r as Collapsible, a as CollapsibleContent, i as CollapsibleTrigger };
|