@szum-tech/design-system 3.17.0 → 3.18.1
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/chunk-D5PAWOAZ.cjs +1 -0
- package/dist/chunk-JUNHRB4B.js +1 -0
- package/dist/chunk-P7BFOJLM.cjs +3 -0
- package/dist/chunk-ZYG2KYKK.js +3 -0
- package/dist/components/index.cjs +1 -924
- package/dist/components/index.d.cts +1650 -56
- package/dist/components/index.d.ts +1650 -56
- package/dist/components/index.js +1 -43
- package/dist/hooks/index.cjs +1 -35
- package/dist/hooks/index.js +1 -2
- package/dist/icons/index.cjs +2 -93
- package/dist/icons/index.js +2 -88
- package/dist/utils/index.cjs +1 -10
- package/dist/utils/index.js +1 -1
- package/package.json +30 -38
- package/dist/chunk-2WQJ36RD.cjs +0 -78
- package/dist/chunk-2Y2ZCPNV.cjs +0 -61
- package/dist/chunk-35H6T7OQ.cjs +0 -2912
- package/dist/chunk-375QAB65.cjs +0 -145
- package/dist/chunk-3DP3VMPN.js +0 -173
- package/dist/chunk-3GNVQFCK.cjs +0 -50
- package/dist/chunk-3RK5PCIC.js +0 -86
- package/dist/chunk-3WSQRFUY.cjs +0 -11
- package/dist/chunk-4LNGZHF2.cjs +0 -33
- package/dist/chunk-4TRADSTP.js +0 -34
- package/dist/chunk-5B37TQYT.cjs +0 -18
- package/dist/chunk-5F2Y65JH.js +0 -32
- package/dist/chunk-5MJPZUTO.js +0 -38
- package/dist/chunk-5MV54MWS.js +0 -46
- package/dist/chunk-6BSR3O2J.js +0 -53
- package/dist/chunk-6HX7ETL3.cjs +0 -183
- package/dist/chunk-7OD2NBSV.cjs +0 -50
- package/dist/chunk-A72LE53B.js +0 -21
- package/dist/chunk-A7SBXO2Y.cjs +0 -40
- package/dist/chunk-AAPMLWYK.js +0 -2831
- package/dist/chunk-B4M7Q5KX.cjs +0 -25
- package/dist/chunk-B7RHEMZH.js +0 -48
- package/dist/chunk-BTSHACKG.js +0 -123
- package/dist/chunk-BUJO4FB6.js +0 -252
- package/dist/chunk-CL2C6STG.cjs +0 -278
- package/dist/chunk-CXHDWIGF.cjs +0 -89
- package/dist/chunk-DGWBE2Y3.cjs +0 -205
- package/dist/chunk-DUAM4RTP.cjs +0 -23
- package/dist/chunk-EOTQVIA5.js +0 -993
- package/dist/chunk-EUH466AL.cjs +0 -179
- package/dist/chunk-F7NFSDOD.cjs +0 -91
- package/dist/chunk-G24PWQKG.js +0 -20
- package/dist/chunk-GEDBA3JU.cjs +0 -49
- package/dist/chunk-GYXQUTWZ.cjs +0 -59
- package/dist/chunk-H2BWO3SI.cjs +0 -11
- package/dist/chunk-H5NHGMSQ.js +0 -136
- package/dist/chunk-HCHVDUI6.cjs +0 -34
- package/dist/chunk-HNRVLRMN.js +0 -82
- package/dist/chunk-HPICKLBZ.cjs +0 -204
- package/dist/chunk-I3E75OQX.js +0 -16
- package/dist/chunk-I3RSTJP6.js +0 -20
- package/dist/chunk-IWF52DDE.js +0 -55
- package/dist/chunk-IZU3KULT.js +0 -41
- package/dist/chunk-K5AURCK5.js +0 -183
- package/dist/chunk-KTAIBRTH.cjs +0 -10
- package/dist/chunk-L2TRMQNN.js +0 -130
- package/dist/chunk-M7NIRB3U.js +0 -43
- package/dist/chunk-MNDQXDV4.cjs +0 -607
- package/dist/chunk-N4TYSZSU.cjs +0 -44
- package/dist/chunk-NU5UQPBX.cjs +0 -25
- package/dist/chunk-NXEZE7LG.js +0 -15
- package/dist/chunk-OCOCENE6.js +0 -42
- package/dist/chunk-OQCNPNPS.js +0 -23
- package/dist/chunk-OXZQGDTR.js +0 -208
- package/dist/chunk-OZSNSRLV.cjs +0 -1027
- package/dist/chunk-P4IL77YC.js +0 -66
- package/dist/chunk-P4JIMFSL.js +0 -51
- package/dist/chunk-P5IUC7HJ.js +0 -9
- package/dist/chunk-PBEZZMAB.js +0 -25
- package/dist/chunk-RKFU4DS3.cjs +0 -1064
- package/dist/chunk-S3ANEJJ7.cjs +0 -22
- package/dist/chunk-S3ZUFD6U.js +0 -23
- package/dist/chunk-SHPJGB2L.cjs +0 -19
- package/dist/chunk-TH44JYXB.cjs +0 -27
- package/dist/chunk-TMXVL5CV.cjs +0 -48
- package/dist/chunk-U3QKV7I4.js +0 -54
- package/dist/chunk-U7XZJQ4O.js +0 -36
- package/dist/chunk-UJX74PFK.cjs +0 -46
- package/dist/chunk-ULEEQ723.cjs +0 -108
- package/dist/chunk-UNOMGKAZ.cjs +0 -141
- package/dist/chunk-USIW3VT5.cjs +0 -73
- package/dist/chunk-VK2FJ65F.js +0 -575
- package/dist/chunk-VK5EX3OG.cjs +0 -132
- package/dist/chunk-WCQ5WKCQ.js +0 -1042
- package/dist/chunk-WMGJCB7O.js +0 -157
- package/dist/chunk-X3ZT3KGX.cjs +0 -53
- package/dist/chunk-X5O7GP4S.js +0 -48
- package/dist/chunk-X7WREEFD.js +0 -8
- package/dist/chunk-XENOUBSI.cjs +0 -37
- package/dist/chunk-XKCLVPUC.js +0 -176
- package/dist/chunk-XTKD76O5.js +0 -29
- package/dist/chunk-YBFG2IRJ.cjs +0 -225
- package/dist/chunk-YEFLGE3L.cjs +0 -47
- package/dist/chunk-YUMKV5TH.js +0 -56
- package/dist/chunk-ZD2QRAOX.js +0 -9
- package/dist/chunk-ZVF7J4EI.cjs +0 -58
- package/dist/color-picker.types-GI7dq2Ig.d.cts +0 -42
- package/dist/color-picker.types-GI7dq2Ig.d.ts +0 -42
- package/dist/components/accordion/index.cjs +0 -23
- package/dist/components/accordion/index.d.cts +0 -17
- package/dist/components/accordion/index.d.ts +0 -17
- package/dist/components/accordion/index.js +0 -2
- package/dist/components/alert/index.cjs +0 -19
- package/dist/components/alert/index.d.cts +0 -24
- package/dist/components/alert/index.d.ts +0 -24
- package/dist/components/alert/index.js +0 -2
- package/dist/components/alert-dialog/index.cjs +0 -43
- package/dist/components/alert-dialog/index.d.cts +0 -32
- package/dist/components/alert-dialog/index.d.ts +0 -32
- package/dist/components/alert-dialog/index.js +0 -2
- package/dist/components/avatar/index.cjs +0 -19
- package/dist/components/avatar/index.d.cts +0 -14
- package/dist/components/avatar/index.d.ts +0 -14
- package/dist/components/avatar/index.js +0 -2
- package/dist/components/badge/index.cjs +0 -19
- package/dist/components/badge/index.d.cts +0 -28
- package/dist/components/badge/index.d.ts +0 -28
- package/dist/components/badge/index.js +0 -2
- package/dist/components/badge-overflow/index.cjs +0 -183
- package/dist/components/badge-overflow/index.d.cts +0 -21
- package/dist/components/badge-overflow/index.d.ts +0 -21
- package/dist/components/badge-overflow/index.js +0 -161
- package/dist/components/breadcrump/index.cjs +0 -80
- package/dist/components/breadcrump/index.d.cts +0 -21
- package/dist/components/breadcrump/index.d.ts +0 -21
- package/dist/components/breadcrump/index.js +0 -72
- package/dist/components/button/index.cjs +0 -52
- package/dist/components/button/index.d.cts +0 -58
- package/dist/components/button/index.d.ts +0 -58
- package/dist/components/button/index.js +0 -43
- package/dist/components/card/index.cjs +0 -35
- package/dist/components/card/index.d.cts +0 -25
- package/dist/components/card/index.d.ts +0 -25
- package/dist/components/card/index.js +0 -2
- package/dist/components/carousel/index.cjs +0 -269
- package/dist/components/carousel/index.d.cts +0 -48
- package/dist/components/carousel/index.d.ts +0 -48
- package/dist/components/carousel/index.js +0 -238
- package/dist/components/checkbox/index.cjs +0 -11
- package/dist/components/checkbox/index.d.cts +0 -8
- package/dist/components/checkbox/index.d.ts +0 -8
- package/dist/components/checkbox/index.js +0 -2
- package/dist/components/collapsible/index.cjs +0 -18
- package/dist/components/collapsible/index.d.cts +0 -12
- package/dist/components/collapsible/index.d.ts +0 -12
- package/dist/components/collapsible/index.js +0 -1
- package/dist/components/color-picker/index.cjs +0 -92
- package/dist/components/color-picker/index.d.cts +0 -71
- package/dist/components/color-picker/index.d.ts +0 -71
- package/dist/components/color-picker/index.js +0 -43
- package/dist/components/color-swatch/index.cjs +0 -11
- package/dist/components/color-swatch/index.d.cts +0 -22
- package/dist/components/color-swatch/index.d.ts +0 -22
- package/dist/components/color-swatch/index.js +0 -2
- package/dist/components/counting-number/index.cjs +0 -11
- package/dist/components/counting-number/index.d.cts +0 -57
- package/dist/components/counting-number/index.d.ts +0 -57
- package/dist/components/counting-number/index.js +0 -2
- package/dist/components/dialog/index.cjs +0 -39
- package/dist/components/dialog/index.d.cts +0 -42
- package/dist/components/dialog/index.d.ts +0 -42
- package/dist/components/dialog/index.js +0 -2
- package/dist/components/dropdown-menu/index.cjs +0 -71
- package/dist/components/dropdown-menu/index.d.cts +0 -67
- package/dist/components/dropdown-menu/index.d.ts +0 -67
- package/dist/components/dropdown-menu/index.js +0 -2
- package/dist/components/empty/index.cjs +0 -31
- package/dist/components/empty/index.d.cts +0 -29
- package/dist/components/empty/index.d.ts +0 -29
- package/dist/components/empty/index.js +0 -2
- package/dist/components/field/index.cjs +0 -49
- package/dist/components/field/index.d.cts +0 -50
- package/dist/components/field/index.d.ts +0 -50
- package/dist/components/field/index.js +0 -4
- package/dist/components/file-upload/index.cjs +0 -60
- package/dist/components/file-upload/index.d.cts +0 -131
- package/dist/components/file-upload/index.d.ts +0 -131
- package/dist/components/file-upload/index.js +0 -3
- package/dist/components/header/index.cjs +0 -11
- package/dist/components/header/index.d.cts +0 -18
- package/dist/components/header/index.d.ts +0 -18
- package/dist/components/header/index.js +0 -2
- package/dist/components/input/index.cjs +0 -11
- package/dist/components/input/index.d.cts +0 -9
- package/dist/components/input/index.d.ts +0 -9
- package/dist/components/input/index.js +0 -2
- package/dist/components/item/index.cjs +0 -48
- package/dist/components/item/index.d.cts +0 -61
- package/dist/components/item/index.d.ts +0 -61
- package/dist/components/item/index.js +0 -3
- package/dist/components/label/index.cjs +0 -11
- package/dist/components/label/index.d.cts +0 -8
- package/dist/components/label/index.d.ts +0 -8
- package/dist/components/label/index.js +0 -2
- package/dist/components/marquee/index.cjs +0 -11
- package/dist/components/marquee/index.d.cts +0 -48
- package/dist/components/marquee/index.d.ts +0 -48
- package/dist/components/marquee/index.js +0 -2
- package/dist/components/masonry/index.cjs +0 -16
- package/dist/components/masonry/index.d.cts +0 -181
- package/dist/components/masonry/index.d.ts +0 -181
- package/dist/components/masonry/index.js +0 -3
- package/dist/components/popover/index.cjs +0 -35
- package/dist/components/popover/index.d.cts +0 -18
- package/dist/components/popover/index.d.ts +0 -18
- package/dist/components/popover/index.js +0 -2
- package/dist/components/progress/index.cjs +0 -11
- package/dist/components/progress/index.d.cts +0 -8
- package/dist/components/progress/index.d.ts +0 -8
- package/dist/components/progress/index.js +0 -2
- package/dist/components/radio-group/index.cjs +0 -15
- package/dist/components/radio-group/index.d.cts +0 -22
- package/dist/components/radio-group/index.d.ts +0 -22
- package/dist/components/radio-group/index.js +0 -2
- package/dist/components/scroll-area/index.cjs +0 -15
- package/dist/components/scroll-area/index.d.cts +0 -11
- package/dist/components/scroll-area/index.d.ts +0 -11
- package/dist/components/scroll-area/index.js +0 -2
- package/dist/components/select/index.cjs +0 -31
- package/dist/components/select/index.d.cts +0 -22
- package/dist/components/select/index.d.ts +0 -22
- package/dist/components/select/index.js +0 -2
- package/dist/components/separator/index.cjs +0 -11
- package/dist/components/separator/index.d.cts +0 -8
- package/dist/components/separator/index.d.ts +0 -8
- package/dist/components/separator/index.js +0 -2
- package/dist/components/sheet/index.cjs +0 -39
- package/dist/components/sheet/index.d.cts +0 -42
- package/dist/components/sheet/index.d.ts +0 -42
- package/dist/components/sheet/index.js +0 -2
- package/dist/components/sidebar/index.cjs +0 -148
- package/dist/components/sidebar/index.d.cts +0 -135
- package/dist/components/sidebar/index.d.ts +0 -135
- package/dist/components/sidebar/index.js +0 -43
- package/dist/components/skeleton/index.cjs +0 -11
- package/dist/components/skeleton/index.d.cts +0 -7
- package/dist/components/skeleton/index.d.ts +0 -7
- package/dist/components/skeleton/index.js +0 -2
- package/dist/components/sortable/index.cjs +0 -27
- package/dist/components/sortable/index.d.cts +0 -50
- package/dist/components/sortable/index.d.ts +0 -50
- package/dist/components/sortable/index.js +0 -2
- package/dist/components/spinner/index.cjs +0 -11
- package/dist/components/spinner/index.d.cts +0 -7
- package/dist/components/spinner/index.d.ts +0 -7
- package/dist/components/spinner/index.js +0 -2
- package/dist/components/status/index.cjs +0 -19
- package/dist/components/status/index.d.cts +0 -25
- package/dist/components/status/index.d.ts +0 -25
- package/dist/components/status/index.js +0 -2
- package/dist/components/stepper/index.cjs +0 -124
- package/dist/components/stepper/index.d.cts +0 -164
- package/dist/components/stepper/index.d.ts +0 -164
- package/dist/components/stepper/index.js +0 -43
- package/dist/components/switch/index.cjs +0 -11
- package/dist/components/switch/index.d.cts +0 -19
- package/dist/components/switch/index.d.ts +0 -19
- package/dist/components/switch/index.js +0 -2
- package/dist/components/tabs/index.cjs +0 -23
- package/dist/components/tabs/index.d.cts +0 -17
- package/dist/components/tabs/index.d.ts +0 -17
- package/dist/components/tabs/index.js +0 -2
- package/dist/components/textarea/index.cjs +0 -11
- package/dist/components/textarea/index.d.cts +0 -9
- package/dist/components/textarea/index.d.ts +0 -9
- package/dist/components/textarea/index.js +0 -2
- package/dist/components/timeline/index.cjs +0 -45
- package/dist/components/timeline/index.d.cts +0 -63
- package/dist/components/timeline/index.d.ts +0 -63
- package/dist/components/timeline/index.js +0 -4
- package/dist/components/toaster/index.cjs +0 -56
- package/dist/components/toaster/index.d.cts +0 -8
- package/dist/components/toaster/index.d.ts +0 -8
- package/dist/components/toaster/index.js +0 -43
- package/dist/components/tooltip/index.cjs +0 -19
- package/dist/components/tooltip/index.d.cts +0 -12
- package/dist/components/tooltip/index.d.ts +0 -12
- package/dist/components/tooltip/index.js +0 -2
- package/dist/components/typing-text/index.cjs +0 -11
- package/dist/components/typing-text/index.d.cts +0 -41
- package/dist/components/typing-text/index.d.ts +0 -41
- package/dist/components/typing-text/index.js +0 -2
- package/dist/components/word-rotate/index.cjs +0 -11
- package/dist/components/word-rotate/index.d.cts +0 -30
- package/dist/components/word-rotate/index.d.ts +0 -30
- package/dist/components/word-rotate/index.js +0 -2
- package/dist/direction-CUOPDLCj.d.cts +0 -7
- package/dist/direction-CUOPDLCj.d.ts +0 -7
- package/dist/popover-trigger-Cf4PPj0z.d.cts +0 -14
- package/dist/popover-trigger-Cf4PPj0z.d.ts +0 -14
- package/dist/select-Bf6XQtt-.d.cts +0 -12
- package/dist/select-Bf6XQtt-.d.ts +0 -12
- package/dist/tooltip-content-DqtogPBq.d.cts +0 -8
- package/dist/tooltip-content-DqtogPBq.d.ts +0 -8
package/dist/chunk-NU5UQPBX.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
|
|
4
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
5
|
-
|
|
6
|
-
function Textarea({ className, invalid = false, ...props }) {
|
|
7
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
8
|
-
"textarea",
|
|
9
|
-
{
|
|
10
|
-
"data-slot": "textarea",
|
|
11
|
-
"aria-invalid": props["aria-invalid"] || invalid,
|
|
12
|
-
className: chunkH2BWO3SI_cjs.cn(
|
|
13
|
-
"border-input dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
|
|
14
|
-
"placeholder:text-muted-foreground",
|
|
15
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
16
|
-
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
|
|
17
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
exports.Textarea = Textarea;
|
package/dist/chunk-NXEZE7LG.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Collapsible as Collapsible$1 } from 'radix-ui';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
// src/components/collapsible/collapsible.tsx
|
|
5
|
-
function Collapsible({ ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(Collapsible$1.Root, { "data-slot": "collapsible", ...props });
|
|
7
|
-
}
|
|
8
|
-
function CollapsibleTrigger({ ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Collapsible$1.CollapsibleTrigger, { "data-slot": "collapsible-trigger", ...props });
|
|
10
|
-
}
|
|
11
|
-
function CollapsibleContent({ ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx(Collapsible$1.CollapsibleContent, { "data-slot": "collapsible-content", ...props });
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
package/dist/chunk-OCOCENE6.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { Tabs as Tabs$1 } from 'radix-ui';
|
|
3
|
-
import { jsx } from 'react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function Tabs({ className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(Tabs$1.Root, { "data-slot": "tabs", className: cn("flex flex-col gap-2", className), ...props });
|
|
7
|
-
}
|
|
8
|
-
function TabsList({ className, ...props }) {
|
|
9
|
-
return /* @__PURE__ */ jsx(
|
|
10
|
-
Tabs$1.List,
|
|
11
|
-
{
|
|
12
|
-
"data-slot": "tabs-list",
|
|
13
|
-
className: cn(
|
|
14
|
-
"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded p-0.75",
|
|
15
|
-
className
|
|
16
|
-
),
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
function TabsTrigger({ className, ...props }) {
|
|
22
|
-
return /* @__PURE__ */ jsx(
|
|
23
|
-
Tabs$1.Trigger,
|
|
24
|
-
{
|
|
25
|
-
"data-slot": "tabs-trigger",
|
|
26
|
-
className: cn(
|
|
27
|
-
"text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow]",
|
|
28
|
-
"data-[state=active]:bg-background dark:data-[state=active]:text-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 data-[state=active]:shadow-sm",
|
|
29
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:outline-1",
|
|
30
|
-
"disabled:pointer-events-none disabled:opacity-50",
|
|
31
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
32
|
-
className
|
|
33
|
-
),
|
|
34
|
-
...props
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
function TabsContent({ className, ...props }) {
|
|
39
|
-
return /* @__PURE__ */ jsx(Tabs$1.Content, { "data-slot": "tabs-content", className: cn("flex-1 outline-none", className), ...props });
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { Tabs, TabsContent, TabsList, TabsTrigger };
|
package/dist/chunk-OQCNPNPS.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
function Textarea({ className, invalid = false, ...props }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"textarea",
|
|
7
|
-
{
|
|
8
|
-
"data-slot": "textarea",
|
|
9
|
-
"aria-invalid": props["aria-invalid"] || invalid,
|
|
10
|
-
className: cn(
|
|
11
|
-
"border-input dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none md:text-sm",
|
|
12
|
-
"placeholder:text-muted-foreground",
|
|
13
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
14
|
-
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
|
|
15
|
-
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
16
|
-
className
|
|
17
|
-
),
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { Textarea };
|
package/dist/chunk-OXZQGDTR.js
DELETED
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
-
import { DropdownMenu as DropdownMenu$1 } from 'radix-ui';
|
|
3
|
-
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
-
import { CheckIcon, ChevronRightIcon } from 'lucide-react';
|
|
5
|
-
|
|
6
|
-
function DropdownMenu(props) {
|
|
7
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.Root, { "data-slot": "dropdown-menu", ...props });
|
|
8
|
-
}
|
|
9
|
-
function DropdownMenuPortal(props) {
|
|
10
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.Portal, { "data-slot": "dropdown-menu-portal", ...props });
|
|
11
|
-
}
|
|
12
|
-
function DropdownMenuTrigger(props) {
|
|
13
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
|
|
14
|
-
}
|
|
15
|
-
function DropdownMenuContent({
|
|
16
|
-
className,
|
|
17
|
-
align = "start",
|
|
18
|
-
sideOffset = 4,
|
|
19
|
-
...props
|
|
20
|
-
}) {
|
|
21
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.Portal, { children: /* @__PURE__ */ jsx(
|
|
22
|
-
DropdownMenu$1.Content,
|
|
23
|
-
{
|
|
24
|
-
"data-slot": "dropdown-menu-content",
|
|
25
|
-
sideOffset,
|
|
26
|
-
align,
|
|
27
|
-
className: cn(
|
|
28
|
-
"bg-popover text-popover-foreground ring-foreground/10 z-50 max-h-(--radix-dropdown-menu-content-available-height) w-(--radix-dropdown-menu-trigger-width) min-w-32 origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded p-1 shadow-md ring-1 duration-100",
|
|
29
|
-
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=closed]:overflow-hidden",
|
|
30
|
-
"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",
|
|
31
|
-
className
|
|
32
|
-
),
|
|
33
|
-
...props
|
|
34
|
-
}
|
|
35
|
-
) });
|
|
36
|
-
}
|
|
37
|
-
function DropdownMenuGroup(props) {
|
|
38
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.Group, { "data-slot": "dropdown-menu-group", ...props });
|
|
39
|
-
}
|
|
40
|
-
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
41
|
-
return /* @__PURE__ */ jsx(
|
|
42
|
-
DropdownMenu$1.Item,
|
|
43
|
-
{
|
|
44
|
-
"data-slot": "dropdown-menu-item",
|
|
45
|
-
"data-inset": inset,
|
|
46
|
-
"data-variant": variant,
|
|
47
|
-
className: cn(
|
|
48
|
-
"group/dropdown-menu-item relative flex cursor-default items-center gap-1.5 rounded px-1.5 py-1 text-sm outline-hidden select-none data-inset:pl-7",
|
|
49
|
-
"focus:bg-accent focus:text-accent-foreground not-data-[variant=error]:focus:**:text-accent-foreground",
|
|
50
|
-
"data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
51
|
-
"data-[variant=error]:text-error data-[variant=error]:*:[svg]:text-error dark:data-[variant=error]:focus:bg-error/20 data-[variant=error]:focus:bg-error/10 data-[variant=error]:focus:text-error",
|
|
52
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
53
|
-
className
|
|
54
|
-
),
|
|
55
|
-
...props
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
function DropdownMenuCheckboxItem({
|
|
60
|
-
className,
|
|
61
|
-
children,
|
|
62
|
-
checked,
|
|
63
|
-
inset,
|
|
64
|
-
...props
|
|
65
|
-
}) {
|
|
66
|
-
return /* @__PURE__ */ jsxs(
|
|
67
|
-
DropdownMenu$1.CheckboxItem,
|
|
68
|
-
{
|
|
69
|
-
"data-slot": "dropdown-menu-checkbox-item",
|
|
70
|
-
"data-inset": inset,
|
|
71
|
-
className: cn(
|
|
72
|
-
"relative flex cursor-default items-center gap-1.5 rounded py-1 pr-8 pl-1.5 text-sm outline-hidden select-none data-inset:pl-7",
|
|
73
|
-
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground",
|
|
74
|
-
"data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
75
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
76
|
-
className
|
|
77
|
-
),
|
|
78
|
-
checked,
|
|
79
|
-
...props,
|
|
80
|
-
children: [
|
|
81
|
-
/* @__PURE__ */ jsx(
|
|
82
|
-
"span",
|
|
83
|
-
{
|
|
84
|
-
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
85
|
-
"data-slot": "dropdown-menu-checkbox-item-indicator",
|
|
86
|
-
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
children
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
function DropdownMenuRadioGroup(props) {
|
|
95
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
|
|
96
|
-
}
|
|
97
|
-
function DropdownMenuRadioItem({ className, children, inset, ...props }) {
|
|
98
|
-
return /* @__PURE__ */ jsxs(
|
|
99
|
-
DropdownMenu$1.RadioItem,
|
|
100
|
-
{
|
|
101
|
-
"data-slot": "dropdown-menu-radio-item",
|
|
102
|
-
"data-inset": inset,
|
|
103
|
-
className: cn(
|
|
104
|
-
"relative flex cursor-default items-center gap-1.5 rounded py-1 pr-8 pl-1.5 text-sm outline-hidden select-none",
|
|
105
|
-
"focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground",
|
|
106
|
-
"data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
107
|
-
"data-inset:pl-7",
|
|
108
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
109
|
-
className
|
|
110
|
-
),
|
|
111
|
-
...props,
|
|
112
|
-
children: [
|
|
113
|
-
/* @__PURE__ */ jsx(
|
|
114
|
-
"span",
|
|
115
|
-
{
|
|
116
|
-
className: "pointer-events-none absolute right-2 flex items-center justify-center",
|
|
117
|
-
"data-slot": "dropdown-menu-radio-item-indicator",
|
|
118
|
-
children: /* @__PURE__ */ jsx(DropdownMenu$1.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, {}) })
|
|
119
|
-
}
|
|
120
|
-
),
|
|
121
|
-
children
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
function DropdownMenuLabel({ className, inset, ...props }) {
|
|
127
|
-
return /* @__PURE__ */ jsx(
|
|
128
|
-
DropdownMenu$1.Label,
|
|
129
|
-
{
|
|
130
|
-
"data-slot": "dropdown-menu-label",
|
|
131
|
-
"data-inset": inset,
|
|
132
|
-
className: cn("text-muted-foreground px-1.5 py-1 text-xs font-medium data-inset:pl-7", className),
|
|
133
|
-
...props
|
|
134
|
-
}
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
function DropdownMenuSeparator({ className, ...props }) {
|
|
138
|
-
return /* @__PURE__ */ jsx(
|
|
139
|
-
DropdownMenu$1.Separator,
|
|
140
|
-
{
|
|
141
|
-
"data-slot": "dropdown-menu-separator",
|
|
142
|
-
className: cn("bg-border -mx-1 my-1 h-px", className),
|
|
143
|
-
...props
|
|
144
|
-
}
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
function DropdownMenuShortcut({ className, ...props }) {
|
|
148
|
-
return /* @__PURE__ */ jsx(
|
|
149
|
-
"span",
|
|
150
|
-
{
|
|
151
|
-
"data-slot": "dropdown-menu-shortcut",
|
|
152
|
-
className: cn(
|
|
153
|
-
"text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ml-auto text-xs tracking-widest",
|
|
154
|
-
className
|
|
155
|
-
),
|
|
156
|
-
...props
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
}
|
|
160
|
-
function DropdownMenuSub(props) {
|
|
161
|
-
return /* @__PURE__ */ jsx(DropdownMenu$1.Sub, { "data-slot": "dropdown-menu-sub", ...props });
|
|
162
|
-
}
|
|
163
|
-
function DropdownMenuSubTrigger({ className, inset, children, ...props }) {
|
|
164
|
-
return /* @__PURE__ */ jsxs(
|
|
165
|
-
DropdownMenu$1.SubTrigger,
|
|
166
|
-
{
|
|
167
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
168
|
-
"data-inset": inset,
|
|
169
|
-
className: cn(
|
|
170
|
-
"flex cursor-default items-center gap-1.5 rounded px-1.5 py-1 text-sm outline-hidden select-none",
|
|
171
|
-
"data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
172
|
-
"focus:bg-accent focus:text-accent-foreground not-data-[variant=error]:focus:**:text-accent-foreground",
|
|
173
|
-
"data-inset:pl-7",
|
|
174
|
-
"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
175
|
-
className
|
|
176
|
-
),
|
|
177
|
-
...props,
|
|
178
|
-
children: [
|
|
179
|
-
children,
|
|
180
|
-
/* @__PURE__ */ jsx(ChevronRightIcon, { className: "cn-rtl-flip ml-auto" })
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
function DropdownMenuSubContent({ className, ...props }) {
|
|
186
|
-
return /* @__PURE__ */ jsx(
|
|
187
|
-
DropdownMenu$1.SubContent,
|
|
188
|
-
{
|
|
189
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
190
|
-
className: cn(
|
|
191
|
-
"bg-popover text-popover-foreground ring-foreground/10 z-50 min-w-[96px] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded p-1 shadow-lg ring-1 duration-100",
|
|
192
|
-
"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",
|
|
193
|
-
"data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95",
|
|
194
|
-
"",
|
|
195
|
-
className
|
|
196
|
-
),
|
|
197
|
-
...props
|
|
198
|
-
}
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// src/components/dropdown-menu/dropdown-menu-item.types.ts
|
|
203
|
-
var DropdownMenuItemVariant = {
|
|
204
|
-
DEFAULT: "default",
|
|
205
|
-
ERROR: "error"
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuItemVariant, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|