@inspirare/design-system 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -0
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.js +359 -0
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +328 -0
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1._f1bed12861163fa290e602839f1ebdb9/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +212 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +97 -0
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/node_modules/.pnpm/@radix-ui_number@1.1.2/node_modules/@radix-ui/number/dist/index.js +6 -0
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.4/node_modules/@radix-ui/primitive/dist/index.js +8 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1_90771884ca9639bf31e5f01b1faf83e4/node_modules/@radix-ui/react-accordion/dist/index.js +195 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-alert-dialo_0211f1deb04a7e512244dbbc3e4765ed/node_modules/@radix-ui/react-alert-dialog/dist/index.js +119 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-arrow@1.1.9_b34b7156178de4198a23e93f83c57da5/node_modules/@radix-ui/react-arrow/dist/index.js +20 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-aspect-rati_62430dda2e5090a076c492dea1ecc5d8/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +31 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-avatar@1.1._d460f1c45278b86e7424fb8ae25577de/node_modules/@radix-ui/react-avatar/dist/index.js +73 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1._e21be6412c310c083d6755285c4c1ad9/node_modules/@radix-ui/react-checkbox/dist/index.js +158 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible_d381d44d4b8a6d58d9dfaae3a0126ca3/node_modules/@radix-ui/react-collapsible/dist/index.js +97 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@_9d7b7379fb7a1e56af9d4a8d107ecba8/node_modules/@radix-ui/react-collection/dist/index.js +62 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-ref_1124f78b370d43bfeceaaa9b791be73d/node_modules/@radix-ui/react-compose-refs/dist/index.js +25 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context-men_f76d1e5eaec57e990fe72d3c41a037df/node_modules/@radix-ui/react-context-menu/dist/index.js +240 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1_796eddd33de3050019fa09b10c68d7ca/node_modules/@radix-ui/react-context/dist/index.js +80 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1._ef5419b1d5914b6ed85fc377af02cd8c/node_modules/@radix-ui/react-dialog/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-direction@1_2157d1ab8e201288009ff536bb11c468/node_modules/@radix-ui/react-direction/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable_1202449cfd75d4d3d4e876187986c0d8/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +108 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-me_9dd0889a66ea847559fd572aaa20379b/node_modules/@radix-ui/react-dropdown-menu/dist/index.js +225 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guard_6b3d65e71789b2986a17d5efdb8859bf/node_modules/@radix-ui/react-focus-guards/dist/index.js +22 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope_c97f9e7487f0abcea30d185973e4d237/node_modules/@radix-ui/react-focus-scope/dist/index.js +146 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-hover-card@_8a3f4d1399bacc84c908e03b45229f87/node_modules/@radix-ui/react-hover-card/dist/index.js +161 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.2_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-id/dist/index.js +12 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.9_386dd2eabe41e70ee233c5790da58dd5/node_modules/@radix-ui/react-label/dist/index.js +16 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.17_cc73edd868dbfc82392e3731b66f2e59/node_modules/@radix-ui/react-menu/dist/index.js +563 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-menubar@1.1_52e1207bf5981387ca85fb7a6f7b2195/node_modules/@radix-ui/react-menubar/dist/index.js +312 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-navigation-_ce246f1abffb4c1bd00bc4d15b1887f5/node_modules/@radix-ui/react-navigation-menu/dist/index.js +553 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1_0f96f9f03b66af70568af721c965c5cd/node_modules/@radix-ui/react-popover/dist/index.js +199 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.3._bd7668c1d3a757f9e8c97f0d7e635b5d/node_modules/@radix-ui/react-popper/dist/index.js +203 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-portal@1.1._32b1caf40ac61f8d30d412d28d60b4ca/node_modules/@radix-ui/react-portal/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1._dc6e30df35507eb8a116c12c3da26e18/node_modules/@radix-ui/react-presence/dist/index.js +85 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2_9b6ae4cdaf3918ddbf0b21069e38e2ef/node_modules/@radix-ui/react-primitive/dist/index.js +41 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-progress@1._4cd7f31ebaa5416f0f0f54265ec22793/node_modules/@radix-ui/react-progress/dist/index.js +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group_385226f717d657e4aea3688d6214f1c0/node_modules/@radix-ui/react-radio-group/dist/index.js +249 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focu_d783d3abe701a7f2fb2c68867b8f1f65/node_modules/@radix-ui/react-roving-focus/dist/index.js +154 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-select@2.3._b9232b5aa23e604443839e7a081b7527/node_modules/@radix-ui/react-select/dist/index.js +727 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-separator@1_f5efb6a4d38fd7cb82808cb6f7a6326a/node_modules/@radix-ui/react-separator/dist/index.js +23 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js +404 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.5_@types_react@18.3.31_react@18.3.1/node_modules/@radix-ui/react-slot/dist/index.js +71 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js +138 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js +120 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js +125 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js +30 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js +351 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callbac_5106d65c013fadfe178f87486239c7af/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +10 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-control_e3b0d353471f209a120bf58c8d35c552/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +45 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-_c83bcf92add652965a36806e6d79891c/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +14 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-is-hydr_d8b55bd05f5d50f7ea21f52744760552/node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +19 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-layout-_ad41f999ca2019252b887df955038ce1/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +5 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-previou_58b78c95af3b98dc4c1bc8bce73c779d/node_modules/@radix-ui/react-use-previous/dist/index.js +11 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1._4b75a7cfb879b922004e7a6caa492077/node_modules/@radix-ui/react-use-size/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-visually-hi_fbf0dd0d68bb58b2410fc7a153ed1d9c/node_modules/@radix-ui/react-visually-hidden/dist/index.js +27 -0
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.js +46 -0
- package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +33 -0
- package/dist/node_modules/.pnpm/get-nonce@1.0.1/node_modules/get-nonce/dist/es2015/index.js +7 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/component.js +70 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +4 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3_24279af7608b4a4e9fe00320b3c0cae7/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +27 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/Combination.js +14 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +116 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/UI.js +52 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +13 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +52 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/medium.js +5 -0
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.2_@types_react@18.3.31_react@18.3.1/node_modules/react-remove-scroll/dist/es2015/sidecar.js +7 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/component.js +11 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/hook.js +15 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/index.js +3 -0
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_64be49a27fe392764e1764f59e110241/node_modules/react-style-singleton/dist/es2015/singleton.js +28 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +19 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/assignRef.js +6 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +26 -0
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@18.3.31_react@18.3.1/node_modules/use-callback-ref/dist/es2015/useRef.js +22 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/exports.js +16 -0
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@18.3.31_react@18.3.1/node_modules/use-sidecar/dist/es2015/medium.js +69 -0
- package/dist/src/components/ui/accessibility-improvements.js +60 -0
- package/dist/src/components/ui/accordion.js +44 -0
- package/dist/src/components/ui/alert-dialog.js +61 -0
- package/dist/src/components/ui/alert.js +32 -0
- package/dist/src/components/ui/aspect-ratio.js +6 -0
- package/dist/src/components/ui/avatar.js +29 -0
- package/dist/src/components/ui/badge.js +24 -0
- package/dist/src/components/ui/breadcrumb.js +60 -0
- package/dist/src/components/ui/button-group.js +38 -0
- package/dist/src/components/ui/button.js +41 -0
- package/dist/src/components/ui/calendar.js +89 -0
- package/dist/src/components/ui/card.js +55 -0
- package/dist/src/components/ui/carousel.js +116 -0
- package/dist/src/components/ui/chart.js +128 -0
- package/dist/src/components/ui/checkbox.js +21 -0
- package/dist/src/components/ui/collapsible.js +26 -0
- package/dist/src/components/ui/color-picker.js +133 -0
- package/dist/src/components/ui/combobox.js +42 -0
- package/dist/src/components/ui/command.js +86 -0
- package/dist/src/components/ui/context-menu.js +72 -0
- package/dist/src/components/ui/dialog.js +88 -0
- package/dist/src/components/ui/drawer.js +80 -0
- package/dist/src/components/ui/dropdown-menu.js +124 -0
- package/dist/src/components/ui/empty.js +59 -0
- package/dist/src/components/ui/field.js +111 -0
- package/dist/src/components/ui/form.js +76 -0
- package/dist/src/components/ui/hover-card.js +33 -0
- package/dist/src/components/ui/input-group.js +78 -0
- package/dist/src/components/ui/input-otp.js +42 -0
- package/dist/src/components/ui/input.js +14 -0
- package/dist/src/components/ui/item.js +116 -0
- package/dist/src/components/ui/kbd.js +19 -0
- package/dist/src/components/ui/label.js +15 -0
- package/dist/src/components/ui/menubar.js +105 -0
- package/dist/src/components/ui/navigation-menu.js +58 -0
- package/dist/src/components/ui/pagination.js +62 -0
- package/dist/src/components/ui/popover.js +36 -0
- package/dist/src/components/ui/progress.js +20 -0
- package/dist/src/components/ui/radio-group.js +27 -0
- package/dist/src/components/ui/resizable.js +19 -0
- package/dist/src/components/ui/scroll-area.js +18 -0
- package/dist/src/components/ui/select.js +96 -0
- package/dist/src/components/ui/separator.js +17 -0
- package/dist/src/components/ui/sheet.js +84 -0
- package/dist/src/components/ui/sidebar.js +326 -0
- package/dist/src/components/ui/skeleton.js +49 -0
- package/dist/src/components/ui/slider.js +36 -0
- package/dist/src/components/ui/sonner.js +20 -0
- package/dist/src/components/ui/spinner.js +14 -0
- package/dist/src/components/ui/switch.js +20 -0
- package/dist/src/components/ui/table.js +67 -0
- package/dist/src/components/ui/tabs.js +36 -0
- package/dist/src/components/ui/textarea.js +13 -0
- package/dist/src/components/ui/theme-toggle.js +56 -0
- package/dist/src/components/ui/toggle-group.js +44 -0
- package/dist/src/components/ui/toggle.js +37 -0
- package/dist/src/components/ui/tooltip.js +37 -0
- package/dist/src/hooks/use-mobile.js +14 -0
- package/dist/src/index.js +61 -0
- package/dist/src/lib/utils.js +8 -0
- package/package.json +9 -6
- package/src/components/ui/sonner.tsx +2 -2
- package/dist/index.js +0 -22051
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
//#region src/components/ui/skeleton.tsx
|
|
4
|
+
function n({ className: n, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t("div", {
|
|
6
|
+
className: e("animate-pulse rounded-md bg-gradient-to-r from-muted via-muted/80 to-muted", "relative overflow-hidden", "before:absolute before:inset-0", "before:bg-gradient-to-r before:from-transparent before:via-primary/5 before:to-transparent", "before:animate-[shimmer_2s_ease-in-out_infinite]", n),
|
|
7
|
+
...r
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function r({ className: r, variant: i = "default", ...a }) {
|
|
11
|
+
return /* @__PURE__ */ t(n, {
|
|
12
|
+
className: e({
|
|
13
|
+
default: "h-4",
|
|
14
|
+
title: "h-6",
|
|
15
|
+
subtitle: "h-5",
|
|
16
|
+
caption: "h-3"
|
|
17
|
+
}[i], "bg-gradient-to-r from-muted via-primary/10 to-muted", r),
|
|
18
|
+
...a
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function i({ className: r, size: i = "default", ...a }) {
|
|
22
|
+
return /* @__PURE__ */ t(n, {
|
|
23
|
+
className: e("rounded-full", {
|
|
24
|
+
sm: "h-6 w-6",
|
|
25
|
+
default: "h-8 w-8",
|
|
26
|
+
lg: "h-12 w-12"
|
|
27
|
+
}[i], "bg-gradient-to-br from-primary/20 via-muted to-primary/10", r),
|
|
28
|
+
...a
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function a({ className: r, variant: i = "default", ...a }) {
|
|
32
|
+
return /* @__PURE__ */ t(n, {
|
|
33
|
+
className: e("rounded-md", {
|
|
34
|
+
sm: "h-7 w-16",
|
|
35
|
+
default: "h-9 w-20",
|
|
36
|
+
lg: "h-11 w-24"
|
|
37
|
+
}[i], "bg-gradient-to-r from-primary/10 via-muted to-primary/5", r),
|
|
38
|
+
...a
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function o({ className: n, children: r, ...i }) {
|
|
42
|
+
return /* @__PURE__ */ t("div", {
|
|
43
|
+
className: e("rounded-lg border border-border/50 p-4 space-y-3", "bg-gradient-to-br from-background via-background/95 to-primary/5", "shadow-sm", n),
|
|
44
|
+
...i,
|
|
45
|
+
children: r
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
//#endregion
|
|
49
|
+
export { n as Skeleton, i as SkeletonAvatar, a as SkeletonButton, o as SkeletonCard, r as SkeletonText };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Slider as t, SliderRange as n, SliderThumb as r, SliderTrack as i } from "../../../node_modules/.pnpm/@radix-ui_react-slider@1.4._cfb70bb4d45c3eedb16b2d4d4cf80f46/node_modules/@radix-ui/react-slider/dist/index.js";
|
|
4
|
+
import * as a from "react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/slider.tsx
|
|
7
|
+
function c({ className: c, defaultValue: l, value: u, min: d = 0, max: f = 100, ...p }) {
|
|
8
|
+
let m = a.useMemo(() => Array.isArray(u) ? u : Array.isArray(l) ? l : [d, f], [
|
|
9
|
+
u,
|
|
10
|
+
l,
|
|
11
|
+
d,
|
|
12
|
+
f
|
|
13
|
+
]);
|
|
14
|
+
return /* @__PURE__ */ s(t, {
|
|
15
|
+
"data-slot": "slider",
|
|
16
|
+
defaultValue: l,
|
|
17
|
+
value: u,
|
|
18
|
+
min: d,
|
|
19
|
+
max: f,
|
|
20
|
+
className: e("relative flex w-full touch-none items-center select-none data-[disabled]:opacity-50 data-[orientation=vertical]:h-full data-[orientation=vertical]:min-h-44 data-[orientation=vertical]:w-auto data-[orientation=vertical]:flex-col", c),
|
|
21
|
+
...p,
|
|
22
|
+
children: [/* @__PURE__ */ o(i, {
|
|
23
|
+
"data-slot": "slider-track",
|
|
24
|
+
className: e("bg-muted relative grow overflow-hidden rounded-full data-[orientation=horizontal]:h-1.5 data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-1.5"),
|
|
25
|
+
children: /* @__PURE__ */ o(n, {
|
|
26
|
+
"data-slot": "slider-range",
|
|
27
|
+
className: e("bg-primary absolute data-[orientation=horizontal]:h-full data-[orientation=vertical]:w-full")
|
|
28
|
+
})
|
|
29
|
+
}), Array.from({ length: m.length }, (e, t) => /* @__PURE__ */ o(r, {
|
|
30
|
+
"data-slot": "slider-thumb",
|
|
31
|
+
className: "border-primary bg-background ring-ring/50 block size-4 shrink-0 cursor-pointer rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4 focus-visible:ring-4 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50"
|
|
32
|
+
}, t))]
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { c as Slider };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { useTheme as t } from "next-themes";
|
|
4
|
+
import { Toaster as n, toast as r } from "sonner";
|
|
5
|
+
//#region src/components/ui/sonner.tsx
|
|
6
|
+
var i = ({ ...r }) => {
|
|
7
|
+
let { theme: i = "system" } = t();
|
|
8
|
+
return /* @__PURE__ */ e(n, {
|
|
9
|
+
theme: i,
|
|
10
|
+
className: "toaster group",
|
|
11
|
+
style: {
|
|
12
|
+
"--normal-bg": "var(--popover)",
|
|
13
|
+
"--normal-text": "var(--popover-foreground)",
|
|
14
|
+
"--normal-border": "var(--border)"
|
|
15
|
+
},
|
|
16
|
+
...r
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as Toaster, r as toast };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { Loader2Icon as n } from "lucide-react";
|
|
4
|
+
//#region src/components/ui/spinner.tsx
|
|
5
|
+
function r({ className: r, ...i }) {
|
|
6
|
+
return /* @__PURE__ */ t(n, {
|
|
7
|
+
role: "status",
|
|
8
|
+
"aria-label": "Loading",
|
|
9
|
+
className: e("size-4 animate-spin", r),
|
|
10
|
+
...i
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { r as Spinner };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Switch as t, SwitchThumb as n } from "../../../node_modules/.pnpm/@radix-ui_react-switch@1.3._d2f9574497ecbe08e0e7c2298fb35dc1/node_modules/@radix-ui/react-switch/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/switch.tsx
|
|
7
|
+
function i({ className: i, size: a = "default", ...o }) {
|
|
8
|
+
return /* @__PURE__ */ r(t, {
|
|
9
|
+
"data-slot": "switch",
|
|
10
|
+
"data-size": a,
|
|
11
|
+
className: e("peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-[1.15rem] data-[size=default]:w-8 data-[size=sm]:h-3.5 data-[size=sm]:w-6 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input dark:data-[state=unchecked]:bg-input/80", i),
|
|
12
|
+
...o,
|
|
13
|
+
children: /* @__PURE__ */ r(n, {
|
|
14
|
+
"data-slot": "switch-thumb",
|
|
15
|
+
className: e("pointer-events-none block rounded-full bg-background ring-0 transition-transform group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3 data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0 dark:data-[state=checked]:bg-primary-foreground dark:data-[state=unchecked]:bg-foreground")
|
|
16
|
+
})
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { i as Switch };
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
//#region src/components/ui/table.tsx
|
|
6
|
+
function n({ className: n, ...r }) {
|
|
7
|
+
return /* @__PURE__ */ t("div", {
|
|
8
|
+
"data-slot": "table-container",
|
|
9
|
+
className: "relative w-full overflow-x-auto",
|
|
10
|
+
children: /* @__PURE__ */ t("table", {
|
|
11
|
+
"data-slot": "table",
|
|
12
|
+
className: e("w-full caption-bottom text-sm", n),
|
|
13
|
+
...r
|
|
14
|
+
})
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function r({ className: n, ...r }) {
|
|
18
|
+
return /* @__PURE__ */ t("thead", {
|
|
19
|
+
"data-slot": "table-header",
|
|
20
|
+
className: e("[&_tr]:border-b", n),
|
|
21
|
+
...r
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function i({ className: n, ...r }) {
|
|
25
|
+
return /* @__PURE__ */ t("tbody", {
|
|
26
|
+
"data-slot": "table-body",
|
|
27
|
+
className: e("[&_tr:last-child]:border-0", n),
|
|
28
|
+
...r
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function a({ className: n, ...r }) {
|
|
32
|
+
return /* @__PURE__ */ t("tfoot", {
|
|
33
|
+
"data-slot": "table-footer",
|
|
34
|
+
className: e("bg-muted/50 border-t font-medium [&>tr]:last:border-b-0", n),
|
|
35
|
+
...r
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function o({ className: n, ...r }) {
|
|
39
|
+
return /* @__PURE__ */ t("tr", {
|
|
40
|
+
"data-slot": "table-row",
|
|
41
|
+
className: e("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors", n),
|
|
42
|
+
...r
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function s({ className: n, ...r }) {
|
|
46
|
+
return /* @__PURE__ */ t("th", {
|
|
47
|
+
"data-slot": "table-head",
|
|
48
|
+
className: e("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
|
|
49
|
+
...r
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function c({ className: n, ...r }) {
|
|
53
|
+
return /* @__PURE__ */ t("td", {
|
|
54
|
+
"data-slot": "table-cell",
|
|
55
|
+
className: e("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]", n),
|
|
56
|
+
...r
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function l({ className: n, ...r }) {
|
|
60
|
+
return /* @__PURE__ */ t("caption", {
|
|
61
|
+
"data-slot": "table-caption",
|
|
62
|
+
className: e("text-muted-foreground mt-4 text-sm", n),
|
|
63
|
+
...r
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { n as Table, i as TableBody, l as TableCaption, c as TableCell, a as TableFooter, s as TableHead, r as TableHeader, o as TableRow };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Content as t, List as n, Root2 as r, Trigger as i } from "../../../node_modules/.pnpm/@radix-ui_react-tabs@1.1.14_769bbb0130198553b196f258bd99ab92/node_modules/@radix-ui/react-tabs/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/tabs.tsx
|
|
7
|
+
function o({ className: t, ...n }) {
|
|
8
|
+
return /* @__PURE__ */ a(r, {
|
|
9
|
+
"data-slot": "tabs",
|
|
10
|
+
className: e("flex flex-col gap-2", t),
|
|
11
|
+
...n
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function s({ className: t, ...r }) {
|
|
15
|
+
return /* @__PURE__ */ a(n, {
|
|
16
|
+
"data-slot": "tabs-list",
|
|
17
|
+
className: e("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", t),
|
|
18
|
+
...r
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function c({ className: t, ...n }) {
|
|
22
|
+
return /* @__PURE__ */ a(i, {
|
|
23
|
+
"data-slot": "tabs-trigger",
|
|
24
|
+
className: e("data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 cursor-pointer items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", t),
|
|
25
|
+
...n
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function l({ className: n, ...r }) {
|
|
29
|
+
return /* @__PURE__ */ a(t, {
|
|
30
|
+
"data-slot": "tabs-content",
|
|
31
|
+
className: e("flex-1 outline-none", n),
|
|
32
|
+
...r
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { o as Tabs, l as TabsContent, s as TabsList, c as TabsTrigger };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/textarea.tsx
|
|
5
|
+
function n({ className: n, ...r }) {
|
|
6
|
+
return /* @__PURE__ */ t("textarea", {
|
|
7
|
+
"data-slot": "textarea",
|
|
8
|
+
className: e("border-input placeholder: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 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", n),
|
|
9
|
+
...r
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as Textarea };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Button as t } from "./button.js";
|
|
4
|
+
import { memo as n, useCallback as r, useEffect as i, useState as a } from "react";
|
|
5
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { Moon as c, Sun as l } from "lucide-react";
|
|
7
|
+
import { useTheme as u } from "next-themes";
|
|
8
|
+
//#region src/components/ui/theme-toggle.tsx
|
|
9
|
+
var d = n(function({ className: n, showLabel: d }) {
|
|
10
|
+
let { theme: f, setTheme: p } = u(), [m, h] = a(!1);
|
|
11
|
+
return i(() => {
|
|
12
|
+
h(!0);
|
|
13
|
+
}, []), /* @__PURE__ */ o("div", {
|
|
14
|
+
className: "relative",
|
|
15
|
+
children: /* @__PURE__ */ o(t, {
|
|
16
|
+
variant: "ghost",
|
|
17
|
+
size: "sm",
|
|
18
|
+
onClick: r(() => {
|
|
19
|
+
p(f === "light" ? "dark" : "light");
|
|
20
|
+
}, [f, p]),
|
|
21
|
+
className: e("h-9 p-0 text-primary transition-all duration-300 rounded-lg", "hover:bg-accent/50 active:scale-95", d ? "px-3 w-auto" : "w-9", n),
|
|
22
|
+
title: (() => {
|
|
23
|
+
if (!m) return "Mudar para tema claro";
|
|
24
|
+
switch (f) {
|
|
25
|
+
case "light": return "Mudar para tema escuro";
|
|
26
|
+
default: return "Mudar para tema claro";
|
|
27
|
+
}
|
|
28
|
+
})(),
|
|
29
|
+
"aria-label": (() => {
|
|
30
|
+
if (!m) return "Tema escuro";
|
|
31
|
+
switch (f) {
|
|
32
|
+
case "light": return "Tema claro";
|
|
33
|
+
default: return "Tema escuro";
|
|
34
|
+
}
|
|
35
|
+
})(),
|
|
36
|
+
children: /* @__PURE__ */ s("div", {
|
|
37
|
+
className: e("flex items-center gap-1.5", !d && "justify-center"),
|
|
38
|
+
children: [/* @__PURE__ */ o("div", {
|
|
39
|
+
className: "transition-transform duration-300 hover:rotate-12",
|
|
40
|
+
children: (() => {
|
|
41
|
+
if (!m) return /* @__PURE__ */ o(c, { className: "h-4 w-4" });
|
|
42
|
+
switch (f) {
|
|
43
|
+
case "light": return /* @__PURE__ */ o(l, { className: "h-4 w-4" });
|
|
44
|
+
default: return /* @__PURE__ */ o(c, { className: "h-4 w-4" });
|
|
45
|
+
}
|
|
46
|
+
})()
|
|
47
|
+
}), d && /* @__PURE__ */ o("span", {
|
|
48
|
+
className: "text-sm font-medium hidden lg:inline",
|
|
49
|
+
children: "Tema"
|
|
50
|
+
})]
|
|
51
|
+
})
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { d as ThemeToggle };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { Item2 as t, Root2 as n } from "../../../node_modules/.pnpm/@radix-ui_react-toggle-grou_9d4cd233d31c4687b287c174e894620a/node_modules/@radix-ui/react-toggle-group/dist/index.js";
|
|
5
|
+
import { toggleVariants as r } from "./toggle.js";
|
|
6
|
+
import * as i from "react";
|
|
7
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/ui/toggle-group.tsx
|
|
9
|
+
var o = i.createContext({
|
|
10
|
+
size: "default",
|
|
11
|
+
variant: "default"
|
|
12
|
+
});
|
|
13
|
+
function s({ className: t, variant: r, size: i, children: s, ...c }) {
|
|
14
|
+
return /* @__PURE__ */ a(n, {
|
|
15
|
+
"data-slot": "toggle-group",
|
|
16
|
+
"data-variant": r,
|
|
17
|
+
"data-size": i,
|
|
18
|
+
className: e("group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs", t),
|
|
19
|
+
...c,
|
|
20
|
+
children: /* @__PURE__ */ a(o.Provider, {
|
|
21
|
+
value: {
|
|
22
|
+
variant: r,
|
|
23
|
+
size: i
|
|
24
|
+
},
|
|
25
|
+
children: s
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
function c({ className: n, children: s, variant: c, size: l, ...u }) {
|
|
30
|
+
let d = i.useContext(o);
|
|
31
|
+
return /* @__PURE__ */ a(t, {
|
|
32
|
+
"data-slot": "toggle-group-item",
|
|
33
|
+
"data-variant": d.variant || c,
|
|
34
|
+
"data-size": d.size || l,
|
|
35
|
+
className: e(r({
|
|
36
|
+
variant: d.variant || c,
|
|
37
|
+
size: d.size || l
|
|
38
|
+
}), "min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l", n),
|
|
39
|
+
...u,
|
|
40
|
+
children: s
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { s as ToggleGroup, c as ToggleGroupItem };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { cva as t } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
|
|
4
|
+
import { Root as n } from "../../../node_modules/.pnpm/@radix-ui_react-toggle@1.1._afb5f705be3deb4ba78b89b6c70d5cf9/node_modules/@radix-ui/react-toggle/dist/index.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/ui/toggle.tsx
|
|
8
|
+
var i = t("inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium cursor-pointer hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-transparent",
|
|
12
|
+
outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
default: "h-9 px-2 min-w-9",
|
|
16
|
+
sm: "h-8 px-1.5 min-w-8",
|
|
17
|
+
lg: "h-10 px-2.5 min-w-10"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "default",
|
|
22
|
+
size: "default"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
function a({ className: t, variant: a, size: o, ...s }) {
|
|
26
|
+
return /* @__PURE__ */ r(n, {
|
|
27
|
+
"data-slot": "toggle",
|
|
28
|
+
className: e(i({
|
|
29
|
+
variant: a,
|
|
30
|
+
size: o,
|
|
31
|
+
className: t
|
|
32
|
+
})),
|
|
33
|
+
...s
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { a as Toggle, i as toggleVariants };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cn as e } from "../../lib/utils.js";
|
|
3
|
+
import { Arrow2 as t, Content2 as n, Portal as r, Provider as i, Root3 as a, Trigger as o } from "../../../node_modules/.pnpm/@radix-ui_react-tooltip@1.2_02a5bba0cb45f3ddbe548efab47eabcc/node_modules/@radix-ui/react-tooltip/dist/index.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/ui/tooltip.tsx
|
|
7
|
+
function l({ delayDuration: e = 0, ...t }) {
|
|
8
|
+
return /* @__PURE__ */ s(i, {
|
|
9
|
+
"data-slot": "tooltip-provider",
|
|
10
|
+
delayDuration: e,
|
|
11
|
+
...t
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
function u({ ...e }) {
|
|
15
|
+
return /* @__PURE__ */ s(l, { children: /* @__PURE__ */ s(a, {
|
|
16
|
+
"data-slot": "tooltip",
|
|
17
|
+
...e
|
|
18
|
+
}) });
|
|
19
|
+
}
|
|
20
|
+
function d({ className: t, ...n }) {
|
|
21
|
+
return /* @__PURE__ */ s(o, {
|
|
22
|
+
"data-slot": "tooltip-trigger",
|
|
23
|
+
className: e("cursor-pointer", t),
|
|
24
|
+
...n
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function f({ className: i, sideOffset: a = 0, children: o, ...l }) {
|
|
28
|
+
return /* @__PURE__ */ s(r, { children: /* @__PURE__ */ c(n, {
|
|
29
|
+
"data-slot": "tooltip-content",
|
|
30
|
+
sideOffset: a,
|
|
31
|
+
className: e("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance", i),
|
|
32
|
+
...l,
|
|
33
|
+
children: [o, /* @__PURE__ */ s(t, { className: "bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })]
|
|
34
|
+
}) });
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
export { u as Tooltip, f as TooltipContent, l as TooltipProvider, d as TooltipTrigger };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
//#region src/hooks/use-mobile.ts
|
|
3
|
+
var t = 768;
|
|
4
|
+
function n() {
|
|
5
|
+
let [n, r] = e.useState(void 0);
|
|
6
|
+
return e.useEffect(() => {
|
|
7
|
+
let e = window.matchMedia(`(max-width: ${t - 1}px)`), n = () => {
|
|
8
|
+
r(window.innerWidth < t);
|
|
9
|
+
};
|
|
10
|
+
return e.addEventListener("change", n), r(window.innerWidth < t), () => e.removeEventListener("change", n);
|
|
11
|
+
}, []), !!n;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { n as useIsMobile };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { cn as e } from "./lib/utils.js";
|
|
3
|
+
import { Accordion as t, AccordionContent as n, AccordionItem as r, AccordionTrigger as i } from "./components/ui/accordion.js";
|
|
4
|
+
import { Alert as a, AlertDescription as o, AlertTitle as s } from "./components/ui/alert.js";
|
|
5
|
+
import { Button as c, buttonVariants as l } from "./components/ui/button.js";
|
|
6
|
+
import { AlertDialog as u, AlertDialogAction as d, AlertDialogCancel as f, AlertDialogContent as p, AlertDialogDescription as m, AlertDialogFooter as h, AlertDialogHeader as g, AlertDialogOverlay as _, AlertDialogPortal as v, AlertDialogTitle as y, AlertDialogTrigger as b } from "./components/ui/alert-dialog.js";
|
|
7
|
+
import { AspectRatio as x } from "./components/ui/aspect-ratio.js";
|
|
8
|
+
import { Avatar as S, AvatarFallback as C, AvatarImage as w } from "./components/ui/avatar.js";
|
|
9
|
+
import { Badge as T, badgeVariants as E } from "./components/ui/badge.js";
|
|
10
|
+
import { Breadcrumb as D, BreadcrumbEllipsis as O, BreadcrumbItem as k, BreadcrumbLink as A, BreadcrumbList as j, BreadcrumbPage as M, BreadcrumbSeparator as N } from "./components/ui/breadcrumb.js";
|
|
11
|
+
import { Separator as P } from "./components/ui/separator.js";
|
|
12
|
+
import { ButtonGroup as F, ButtonGroupSeparator as I, ButtonGroupText as L, buttonGroupVariants as R } from "./components/ui/button-group.js";
|
|
13
|
+
import { Calendar as z, CalendarDayButton as B } from "./components/ui/calendar.js";
|
|
14
|
+
import { Card as V, CardAction as H, CardContent as U, CardDescription as W, CardFooter as G, CardHeader as K, CardTitle as q } from "./components/ui/card.js";
|
|
15
|
+
import { Carousel as J, CarouselContent as Y, CarouselItem as X, CarouselNext as Z, CarouselPrevious as Q } from "./components/ui/carousel.js";
|
|
16
|
+
import { ChartContainer as $, ChartLegend as ee, ChartLegendContent as te, ChartStyle as ne, ChartTooltip as re, ChartTooltipContent as ie } from "./components/ui/chart.js";
|
|
17
|
+
import { Checkbox as ae } from "./components/ui/checkbox.js";
|
|
18
|
+
import { Collapsible as oe, CollapsibleContent as se, CollapsibleTrigger as ce } from "./components/ui/collapsible.js";
|
|
19
|
+
import { Input as le } from "./components/ui/input.js";
|
|
20
|
+
import { Popover as ue, PopoverAnchor as de, PopoverContent as fe, PopoverTrigger as pe } from "./components/ui/popover.js";
|
|
21
|
+
import { ColorPicker as me } from "./components/ui/color-picker.js";
|
|
22
|
+
import { Dialog as he, DialogClose as ge, DialogContent as _e, DialogDescription as ve, DialogFooter as ye, DialogHeader as be, DialogOverlay as xe, DialogPortal as Se, DialogTitle as Ce, DialogTrigger as we } from "./components/ui/dialog.js";
|
|
23
|
+
import { Command as Te, CommandDialog as Ee, CommandEmpty as De, CommandGroup as Oe, CommandInput as ke, CommandItem as Ae, CommandList as je, CommandSeparator as Me, CommandShortcut as Ne } from "./components/ui/command.js";
|
|
24
|
+
import { Combobox as Pe } from "./components/ui/combobox.js";
|
|
25
|
+
import { ContextMenu as Fe, ContextMenuCheckboxItem as Ie, ContextMenuContent as Le, ContextMenuGroup as Re, ContextMenuItem as ze, ContextMenuLabel as Be, ContextMenuPortal as Ve, ContextMenuRadioGroup as He, ContextMenuRadioItem as Ue, ContextMenuSeparator as We, ContextMenuShortcut as Ge, ContextMenuSub as Ke, ContextMenuSubContent as qe, ContextMenuSubTrigger as Je, ContextMenuTrigger as Ye } from "./components/ui/context-menu.js";
|
|
26
|
+
import { Drawer as Xe, DrawerClose as Ze, DrawerContent as Qe, DrawerDescription as $e, DrawerFooter as et, DrawerHeader as tt, DrawerOverlay as nt, DrawerPortal as rt, DrawerTitle as it, DrawerTrigger as at } from "./components/ui/drawer.js";
|
|
27
|
+
import { DropdownMenu as ot, DropdownMenuCheckboxItem as st, DropdownMenuContent as ct, DropdownMenuGroup as lt, DropdownMenuItem as ut, DropdownMenuLabel as dt, DropdownMenuPortal as ft, DropdownMenuRadioGroup as pt, DropdownMenuRadioItem as mt, DropdownMenuSeparator as ht, DropdownMenuShortcut as gt, DropdownMenuSub as _t, DropdownMenuSubContent as vt, DropdownMenuSubTrigger as yt, DropdownMenuTrigger as bt } from "./components/ui/dropdown-menu.js";
|
|
28
|
+
import { Empty as xt, EmptyContent as St, EmptyDescription as Ct, EmptyHeader as wt, EmptyMedia as Tt, EmptyTitle as Et } from "./components/ui/empty.js";
|
|
29
|
+
import { Label as Dt } from "./components/ui/label.js";
|
|
30
|
+
import { Field as Ot, FieldContent as kt, FieldDescription as At, FieldError as jt, FieldGroup as Mt, FieldLabel as Nt, FieldLegend as Pt, FieldSeparator as Ft, FieldSet as It, FieldTitle as Lt } from "./components/ui/field.js";
|
|
31
|
+
import { Form as Rt, FormControl as zt, FormDescription as Bt, FormField as Vt, FormItem as Ht, FormLabel as Ut, FormMessage as Wt, useFormField as Gt } from "./components/ui/form.js";
|
|
32
|
+
import { HoverCard as Kt, HoverCardContent as qt, HoverCardTrigger as Jt } from "./components/ui/hover-card.js";
|
|
33
|
+
import { Textarea as Yt } from "./components/ui/textarea.js";
|
|
34
|
+
import { InputGroup as Xt, InputGroupAddon as Zt, InputGroupButton as Qt, InputGroupInput as $t, InputGroupText as en, InputGroupTextarea as tn } from "./components/ui/input-group.js";
|
|
35
|
+
import { InputOTP as nn, InputOTPGroup as rn, InputOTPSeparator as an, InputOTPSlot as on } from "./components/ui/input-otp.js";
|
|
36
|
+
import { Item as sn, ItemActions as cn, ItemContent as ln, ItemDescription as un, ItemFooter as dn, ItemGroup as fn, ItemHeader as pn, ItemMedia as mn, ItemSeparator as hn, ItemTitle as gn } from "./components/ui/item.js";
|
|
37
|
+
import { Kbd as _n, KbdGroup as vn } from "./components/ui/kbd.js";
|
|
38
|
+
import { Menubar as yn, MenubarCheckboxItem as bn, MenubarContent as xn, MenubarGroup as Sn, MenubarItem as Cn, MenubarLabel as wn, MenubarMenu as Tn, MenubarPortal as En, MenubarRadioGroup as Dn, MenubarRadioItem as On, MenubarSeparator as kn, MenubarShortcut as An, MenubarSub as jn, MenubarSubContent as Mn, MenubarSubTrigger as Nn, MenubarTrigger as Pn } from "./components/ui/menubar.js";
|
|
39
|
+
import { NavigationMenu as Fn, NavigationMenuContent as In, NavigationMenuIndicator as Ln, NavigationMenuItem as Rn, NavigationMenuLink as zn, NavigationMenuList as Bn, NavigationMenuTrigger as Vn, NavigationMenuViewport as Hn, navigationMenuTriggerStyle as Un } from "./components/ui/navigation-menu.js";
|
|
40
|
+
import { Pagination as Wn, PaginationContent as Gn, PaginationEllipsis as Kn, PaginationItem as qn, PaginationLink as Jn, PaginationNext as Yn, PaginationPrevious as Xn } from "./components/ui/pagination.js";
|
|
41
|
+
import { Progress as Zn } from "./components/ui/progress.js";
|
|
42
|
+
import { RadioGroup as Qn, RadioGroupItem as $n } from "./components/ui/radio-group.js";
|
|
43
|
+
import { ResizableHandle as er, ResizablePanel as tr, ResizablePanelGroup as nr } from "./components/ui/resizable.js";
|
|
44
|
+
import { ScrollArea as rr, ScrollBar as ir } from "./components/ui/scroll-area.js";
|
|
45
|
+
import { Select as ar, SelectContent as or, SelectGroup as sr, SelectItem as cr, SelectLabel as lr, SelectScrollDownButton as ur, SelectScrollUpButton as dr, SelectSeparator as fr, SelectTrigger as pr, SelectValue as mr } from "./components/ui/select.js";
|
|
46
|
+
import { Sheet as hr, SheetClose as gr, SheetContent as _r, SheetDescription as vr, SheetFooter as yr, SheetHeader as br, SheetTitle as xr, SheetTrigger as Sr } from "./components/ui/sheet.js";
|
|
47
|
+
import { useIsMobile as Cr } from "./hooks/use-mobile.js";
|
|
48
|
+
import { Skeleton as wr, SkeletonAvatar as Tr, SkeletonButton as Er, SkeletonCard as Dr, SkeletonText as Or } from "./components/ui/skeleton.js";
|
|
49
|
+
import { Tooltip as kr, TooltipContent as Ar, TooltipProvider as jr, TooltipTrigger as Mr } from "./components/ui/tooltip.js";
|
|
50
|
+
import { Sidebar as Nr, SidebarContent as Pr, SidebarFooter as Fr, SidebarGroup as Ir, SidebarGroupAction as Lr, SidebarGroupContent as Rr, SidebarGroupLabel as zr, SidebarHeader as Br, SidebarInput as Vr, SidebarInset as Hr, SidebarMenu as Ur, SidebarMenuAction as Wr, SidebarMenuBadge as Gr, SidebarMenuButton as Kr, SidebarMenuItem as qr, SidebarMenuSkeleton as Jr, SidebarMenuSub as Yr, SidebarMenuSubButton as Xr, SidebarMenuSubItem as Zr, SidebarProvider as Qr, SidebarRail as $r, SidebarSeparator as ei, SidebarTrigger as ti, useSidebar as ni } from "./components/ui/sidebar.js";
|
|
51
|
+
import { Slider as ri } from "./components/ui/slider.js";
|
|
52
|
+
import { Toaster as ii, toast as ai } from "./components/ui/sonner.js";
|
|
53
|
+
import { Spinner as oi } from "./components/ui/spinner.js";
|
|
54
|
+
import { Switch as si } from "./components/ui/switch.js";
|
|
55
|
+
import { Table as ci, TableBody as li, TableCaption as ui, TableCell as di, TableFooter as fi, TableHead as pi, TableHeader as mi, TableRow as hi } from "./components/ui/table.js";
|
|
56
|
+
import { Tabs as gi, TabsContent as _i, TabsList as vi, TabsTrigger as yi } from "./components/ui/tabs.js";
|
|
57
|
+
import { ThemeToggle as bi } from "./components/ui/theme-toggle.js";
|
|
58
|
+
import { Toggle as xi, toggleVariants as Si } from "./components/ui/toggle.js";
|
|
59
|
+
import { ToggleGroup as Ci, ToggleGroupItem as wi } from "./components/ui/toggle-group.js";
|
|
60
|
+
import { ScreenReaderAnnouncement as Ti, useModalAccessibility as Ei, useProgressAnnouncement as Di, useTabKeyboardNavigation as Oi } from "./components/ui/accessibility-improvements.js";
|
|
61
|
+
export { t as Accordion, n as AccordionContent, r as AccordionItem, i as AccordionTrigger, a as Alert, o as AlertDescription, u as AlertDialog, d as AlertDialogAction, f as AlertDialogCancel, p as AlertDialogContent, m as AlertDialogDescription, h as AlertDialogFooter, g as AlertDialogHeader, _ as AlertDialogOverlay, v as AlertDialogPortal, y as AlertDialogTitle, b as AlertDialogTrigger, s as AlertTitle, x as AspectRatio, S as Avatar, C as AvatarFallback, w as AvatarImage, T as Badge, D as Breadcrumb, O as BreadcrumbEllipsis, k as BreadcrumbItem, A as BreadcrumbLink, j as BreadcrumbList, M as BreadcrumbPage, N as BreadcrumbSeparator, c as Button, F as ButtonGroup, I as ButtonGroupSeparator, L as ButtonGroupText, z as Calendar, B as CalendarDayButton, V as Card, H as CardAction, U as CardContent, W as CardDescription, G as CardFooter, K as CardHeader, q as CardTitle, J as Carousel, Y as CarouselContent, X as CarouselItem, Z as CarouselNext, Q as CarouselPrevious, $ as ChartContainer, ee as ChartLegend, te as ChartLegendContent, ne as ChartStyle, re as ChartTooltip, ie as ChartTooltipContent, ae as Checkbox, oe as Collapsible, se as CollapsibleContent, ce as CollapsibleTrigger, me as ColorPicker, Pe as Combobox, Te as Command, Ee as CommandDialog, De as CommandEmpty, Oe as CommandGroup, ke as CommandInput, Ae as CommandItem, je as CommandList, Me as CommandSeparator, Ne as CommandShortcut, Fe as ContextMenu, Ie as ContextMenuCheckboxItem, Le as ContextMenuContent, Re as ContextMenuGroup, ze as ContextMenuItem, Be as ContextMenuLabel, Ve as ContextMenuPortal, He as ContextMenuRadioGroup, Ue as ContextMenuRadioItem, We as ContextMenuSeparator, Ge as ContextMenuShortcut, Ke as ContextMenuSub, qe as ContextMenuSubContent, Je as ContextMenuSubTrigger, Ye as ContextMenuTrigger, he as Dialog, ge as DialogClose, _e as DialogContent, ve as DialogDescription, ye as DialogFooter, be as DialogHeader, xe as DialogOverlay, Se as DialogPortal, Ce as DialogTitle, we as DialogTrigger, Xe as Drawer, Ze as DrawerClose, Qe as DrawerContent, $e as DrawerDescription, et as DrawerFooter, tt as DrawerHeader, nt as DrawerOverlay, rt as DrawerPortal, it as DrawerTitle, at as DrawerTrigger, ot as DropdownMenu, st as DropdownMenuCheckboxItem, ct as DropdownMenuContent, lt as DropdownMenuGroup, ut as DropdownMenuItem, dt as DropdownMenuLabel, ft as DropdownMenuPortal, pt as DropdownMenuRadioGroup, mt as DropdownMenuRadioItem, ht as DropdownMenuSeparator, gt as DropdownMenuShortcut, _t as DropdownMenuSub, vt as DropdownMenuSubContent, yt as DropdownMenuSubTrigger, bt as DropdownMenuTrigger, xt as Empty, St as EmptyContent, Ct as EmptyDescription, wt as EmptyHeader, Tt as EmptyMedia, Et as EmptyTitle, Ot as Field, kt as FieldContent, At as FieldDescription, jt as FieldError, Mt as FieldGroup, Nt as FieldLabel, Pt as FieldLegend, Ft as FieldSeparator, It as FieldSet, Lt as FieldTitle, Rt as Form, zt as FormControl, Bt as FormDescription, Vt as FormField, Ht as FormItem, Ut as FormLabel, Wt as FormMessage, Kt as HoverCard, qt as HoverCardContent, Jt as HoverCardTrigger, le as Input, Xt as InputGroup, Zt as InputGroupAddon, Qt as InputGroupButton, $t as InputGroupInput, en as InputGroupText, tn as InputGroupTextarea, nn as InputOTP, rn as InputOTPGroup, an as InputOTPSeparator, on as InputOTPSlot, sn as Item, cn as ItemActions, ln as ItemContent, un as ItemDescription, dn as ItemFooter, fn as ItemGroup, pn as ItemHeader, mn as ItemMedia, hn as ItemSeparator, gn as ItemTitle, _n as Kbd, vn as KbdGroup, Dt as Label, yn as Menubar, bn as MenubarCheckboxItem, xn as MenubarContent, Sn as MenubarGroup, Cn as MenubarItem, wn as MenubarLabel, Tn as MenubarMenu, En as MenubarPortal, Dn as MenubarRadioGroup, On as MenubarRadioItem, kn as MenubarSeparator, An as MenubarShortcut, jn as MenubarSub, Mn as MenubarSubContent, Nn as MenubarSubTrigger, Pn as MenubarTrigger, Fn as NavigationMenu, In as NavigationMenuContent, Ln as NavigationMenuIndicator, Rn as NavigationMenuItem, zn as NavigationMenuLink, Bn as NavigationMenuList, Vn as NavigationMenuTrigger, Hn as NavigationMenuViewport, Wn as Pagination, Gn as PaginationContent, Kn as PaginationEllipsis, qn as PaginationItem, Jn as PaginationLink, Yn as PaginationNext, Xn as PaginationPrevious, ue as Popover, de as PopoverAnchor, fe as PopoverContent, pe as PopoverTrigger, Zn as Progress, Qn as RadioGroup, $n as RadioGroupItem, er as ResizableHandle, tr as ResizablePanel, nr as ResizablePanelGroup, Ti as ScreenReaderAnnouncement, rr as ScrollArea, ir as ScrollBar, ar as Select, or as SelectContent, sr as SelectGroup, cr as SelectItem, lr as SelectLabel, ur as SelectScrollDownButton, dr as SelectScrollUpButton, fr as SelectSeparator, pr as SelectTrigger, mr as SelectValue, P as Separator, hr as Sheet, gr as SheetClose, _r as SheetContent, vr as SheetDescription, yr as SheetFooter, br as SheetHeader, xr as SheetTitle, Sr as SheetTrigger, Nr as Sidebar, Pr as SidebarContent, Fr as SidebarFooter, Ir as SidebarGroup, Lr as SidebarGroupAction, Rr as SidebarGroupContent, zr as SidebarGroupLabel, Br as SidebarHeader, Vr as SidebarInput, Hr as SidebarInset, Ur as SidebarMenu, Wr as SidebarMenuAction, Gr as SidebarMenuBadge, Kr as SidebarMenuButton, qr as SidebarMenuItem, Jr as SidebarMenuSkeleton, Yr as SidebarMenuSub, Xr as SidebarMenuSubButton, Zr as SidebarMenuSubItem, Qr as SidebarProvider, $r as SidebarRail, ei as SidebarSeparator, ti as SidebarTrigger, wr as Skeleton, Tr as SkeletonAvatar, Er as SkeletonButton, Dr as SkeletonCard, Or as SkeletonText, ri as Slider, oi as Spinner, si as Switch, ci as Table, li as TableBody, ui as TableCaption, di as TableCell, fi as TableFooter, pi as TableHead, mi as TableHeader, hi as TableRow, gi as Tabs, _i as TabsContent, vi as TabsList, yi as TabsTrigger, Yt as Textarea, bi as ThemeToggle, ii as Toaster, xi as Toggle, Ci as ToggleGroup, wi as ToggleGroupItem, kr as Tooltip, Ar as TooltipContent, jr as TooltipProvider, Mr as TooltipTrigger, E as badgeVariants, R as buttonGroupVariants, l as buttonVariants, e as cn, Un as navigationMenuTriggerStyle, ai as toast, Si as toggleVariants, Gt as useFormField, Cr as useIsMobile, Ei as useModalAccessibility, Di as useProgressAnnouncement, ni as useSidebar, Oi as useTabKeyboardNavigation };
|
package/package.json
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inspirare/design-system",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.19",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.css"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/src/index.js",
|
|
10
|
+
"module": "./dist/src/index.js",
|
|
8
11
|
"types": "./dist/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./dist/index.js",
|
|
14
|
+
"import": "./dist/src/index.js",
|
|
12
15
|
"types": "./dist/index.d.ts"
|
|
13
16
|
},
|
|
14
17
|
"./utils": {
|
|
15
|
-
"import": "./dist/index.js",
|
|
18
|
+
"import": "./dist/src/index.js",
|
|
16
19
|
"types": "./dist/index.d.ts"
|
|
17
20
|
},
|
|
18
21
|
"./style.css": "./src/index.css",
|
|
@@ -24,7 +27,7 @@
|
|
|
24
27
|
],
|
|
25
28
|
"scripts": {
|
|
26
29
|
"dev": "vite",
|
|
27
|
-
"build": "tsc -b && vite build",
|
|
30
|
+
"build": "tsc -b && vite build && node scripts/postbuild-use-client.mjs",
|
|
28
31
|
"lint": "eslint .",
|
|
29
32
|
"preview": "vite preview",
|
|
30
33
|
"deploy": "npm run build && npm version patch && npm publish --access public"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
3
|
import { useTheme } from "next-themes";
|
|
4
|
-
import { Toaster as Sonner, type ToasterProps } from "sonner";
|
|
4
|
+
import { Toaster as Sonner, type ToasterProps, toast } from "sonner";
|
|
5
5
|
|
|
6
6
|
const Toaster = ({ ...props }: ToasterProps) => {
|
|
7
7
|
const { theme = "system" } = useTheme();
|
|
@@ -22,4 +22,4 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
22
22
|
);
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
export { Toaster };
|
|
25
|
+
export { Toaster, toast };
|