@szum-tech/design-system 2.7.0 → 3.0.0
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-2Y2ZCPNV.cjs +61 -0
- package/dist/chunk-3376ZTRC.cjs +2 -0
- package/dist/{chunk-S5BN23O7.cjs → chunk-3KMXFN6M.cjs} +14 -20
- package/dist/chunk-5AA4IE2T.cjs +27 -0
- package/dist/chunk-5F2Y65JH.js +32 -0
- package/dist/chunk-6BSR3O2J.js +53 -0
- package/dist/chunk-BYXBJQAS.js +1 -0
- package/dist/{chunk-XIPREW2R.js → chunk-DP7UEOTA.js} +173 -176
- package/dist/chunk-HCHVDUI6.cjs +34 -0
- package/dist/chunk-HD7ZDQWW.js +173 -0
- package/dist/chunk-I3RSTJP6.js +20 -0
- package/dist/chunk-I7AV5IQO.cjs +33 -0
- package/dist/chunk-N4O2GO6V.cjs +204 -0
- package/dist/chunk-NGVFYKAT.js +29 -0
- package/dist/chunk-NU5UQPBX.cjs +25 -0
- package/dist/chunk-OQCNPNPS.js +23 -0
- package/dist/chunk-S3ANEJJ7.cjs +22 -0
- package/dist/chunk-U4AWAABZ.js +4901 -0
- package/dist/chunk-UGSNASZM.js +25 -0
- package/dist/{chunk-EIXSMEDP.cjs → chunk-UIOBJSKZ.cjs} +1 -3
- package/dist/{chunk-I5P2HH5Z.js → chunk-WJSS32MY.js} +13 -19
- package/dist/{chunk-GEACYHTU.js → chunk-XJIUGEPN.js} +1 -3
- package/dist/chunk-Y6EVJSAH.cjs +4928 -0
- package/dist/{chunk-D3MOZUNH.cjs → chunk-ZV4467OW.cjs} +176 -185
- package/dist/components/alert-dialog/index.cjs +1 -0
- package/dist/components/alert-dialog/index.js +1 -0
- package/dist/components/avatar/index.cjs +5 -4
- package/dist/components/avatar/index.d.cts +5 -19
- package/dist/components/avatar/index.d.ts +5 -19
- package/dist/components/avatar/index.js +2 -1
- package/dist/components/badge/index.cjs +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/button/index.cjs +23 -3
- package/dist/components/button/index.d.cts +8 -15
- package/dist/components/button/index.d.ts +8 -15
- package/dist/components/button/index.js +22 -2
- package/dist/components/card/index.cjs +12 -7
- package/dist/components/card/index.d.cts +8 -5
- package/dist/components/card/index.d.ts +8 -5
- package/dist/components/card/index.js +2 -1
- package/dist/components/checkbox/index.cjs +12 -0
- package/dist/components/checkbox/index.d.cts +8 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/index.js +3 -0
- package/dist/components/dialog/index.cjs +1 -0
- package/dist/components/dialog/index.d.cts +1 -1
- package/dist/components/dialog/index.d.ts +1 -1
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/field/index.cjs +50 -0
- package/dist/components/field/index.d.cts +50 -0
- package/dist/components/field/index.d.ts +50 -0
- package/dist/components/field/index.js +5 -0
- package/dist/components/header/index.cjs +1 -0
- package/dist/components/header/index.js +1 -0
- package/dist/components/index.cjs +158 -126
- package/dist/components/index.d.cts +7 -8
- package/dist/components/index.d.ts +7 -8
- package/dist/components/index.js +14 -14
- package/dist/components/input/index.cjs +3 -2
- package/dist/components/input/index.d.cts +2 -4
- package/dist/components/input/index.d.ts +2 -4
- package/dist/components/input/index.js +2 -1
- package/dist/components/item/index.cjs +13 -12
- package/dist/components/item/index.d.cts +7 -7
- package/dist/components/item/index.d.ts +7 -7
- package/dist/components/item/index.js +3 -2
- package/dist/components/label/index.cjs +3 -2
- package/dist/components/label/index.js +2 -1
- package/dist/components/select/index.cjs +20 -3
- package/dist/components/select/index.d.cts +20 -6
- package/dist/components/select/index.d.ts +20 -6
- package/dist/components/select/index.js +2 -1
- package/dist/components/separator/index.cjs +3 -2
- package/dist/components/separator/index.js +2 -1
- package/dist/components/sheet/index.cjs +1 -0
- package/dist/components/sheet/index.d.cts +1 -1
- package/dist/components/sheet/index.d.ts +1 -1
- package/dist/components/sheet/index.js +1 -0
- package/dist/components/spinner/index.cjs +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/stepper/index.cjs +33 -33
- package/dist/components/stepper/index.js +14 -14
- package/dist/components/textarea/index.cjs +4 -2
- package/dist/components/textarea/index.d.cts +2 -2
- package/dist/components/textarea/index.d.ts +2 -2
- package/dist/components/textarea/index.js +3 -1
- package/dist/components/tooltip/index.cjs +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/contexts/index.cjs +1 -0
- package/dist/contexts/index.js +1 -0
- package/dist/hooks/index.cjs +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/icons/index.cjs +89 -18
- package/dist/icons/index.js +88 -1
- package/dist/utils/index.cjs +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +8 -9
- package/tailwind/global.css +5 -9
- package/tailwind/palette.css +149 -204
- package/tailwind/typography.css +33 -57
- package/dist/chunk-36YD6ICC.js +0 -70
- package/dist/chunk-4NO6IM75.cjs +0 -40
- package/dist/chunk-5BTQ6BQA.js +0 -24
- package/dist/chunk-5PBHBOXI.js +0 -30
- package/dist/chunk-EU7G37IS.js +0 -36
- package/dist/chunk-FPFRA5Q6.cjs +0 -31
- package/dist/chunk-FVSO3RHT.cjs +0 -17
- package/dist/chunk-G6VXQ7DJ.cjs +0 -63
- package/dist/chunk-IAI7BIAG.js +0 -31
- package/dist/chunk-K4TRAPRN.cjs +0 -341
- package/dist/chunk-MI3CQBHC.js +0 -60
- package/dist/chunk-OIWEXHFE.cjs +0 -33
- package/dist/chunk-P4J2TTH7.cjs +0 -32
- package/dist/chunk-UKWZ5BHD.cjs +0 -93
- package/dist/chunk-VZKTT6CG.js +0 -15
- package/dist/chunk-XTO7CMIM.js +0 -88
- package/dist/chunk-YJFJLF7Y.js +0 -319
- package/dist/chunk-ZZ3EBGSD.cjs +0 -72
- package/dist/components/form/index.cjs +0 -55
- package/dist/components/form/index.d.cts +0 -32
- package/dist/components/form/index.d.ts +0 -32
- package/dist/components/form/index.js +0 -22
- package/dist/components/helper-text/index.cjs +0 -10
- package/dist/components/helper-text/index.d.cts +0 -18
- package/dist/components/helper-text/index.d.ts +0 -18
- package/dist/components/helper-text/index.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn } from './chunk-ZD2QRAOX.js';
|
|
2
|
+
import { jsx } from 'react/jsx-runtime';
|
|
3
|
+
|
|
4
|
+
function Input({ className, type, invalid = false, ...props }) {
|
|
5
|
+
return /* @__PURE__ */ jsx(
|
|
6
|
+
"input",
|
|
7
|
+
{
|
|
8
|
+
type,
|
|
9
|
+
"data-slot": "input",
|
|
10
|
+
"aria-invalid": props["aria-invalid"] || invalid,
|
|
11
|
+
className: cn(
|
|
12
|
+
"placeholder:text-muted-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none",
|
|
13
|
+
"disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
|
|
14
|
+
"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
15
|
+
"aria-invalid:ring-error/20 dark:aria-invalid:ring-error/40 aria-invalid:border-error",
|
|
16
|
+
"selection:bg-primary selection:text-primary-foreground",
|
|
17
|
+
"file:text-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium md:text-sm",
|
|
18
|
+
className
|
|
19
|
+
),
|
|
20
|
+
...props
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { Input };
|
|
@@ -11,10 +11,8 @@ function Separator({ className, orientation = "horizontal", decorative = false,
|
|
|
11
11
|
"data-slot": "separator",
|
|
12
12
|
decorative,
|
|
13
13
|
orientation,
|
|
14
|
-
"aria-orientation": orientation,
|
|
15
14
|
className: chunkH2BWO3SI_cjs.cn(
|
|
16
|
-
"shrink-0
|
|
17
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
15
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
18
16
|
className
|
|
19
17
|
),
|
|
20
18
|
...props
|
|
@@ -1,20 +1,17 @@
|
|
|
1
|
-
import { Separator } from './chunk-
|
|
1
|
+
import { Separator } from './chunk-XJIUGEPN.js';
|
|
2
2
|
import { cn } from './chunk-ZD2QRAOX.js';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import { jsx } from 'react/jsx-runtime';
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
[
|
|
9
|
-
"group/item flex items-center border border-transparent text-sm rounded-md transition-colors duration-100 flex-wrap outline-none",
|
|
10
|
-
"[a]:hover:bg-gray-900 [a]:transition-colors",
|
|
11
|
-
"focus-visible:ring-primary-500/50 focus-visible:ring-[3px]"
|
|
12
|
-
],
|
|
7
|
+
var itemVariants = cva(
|
|
8
|
+
"group/item flex items-center border border-transparent text-sm rounded transition-colors [a]:hover:bg-accent/50 [a]:transition-colors duration-100 flex-wrap outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
13
9
|
{
|
|
14
10
|
variants: {
|
|
15
11
|
variant: {
|
|
16
12
|
default: "bg-transparent",
|
|
17
|
-
|
|
13
|
+
outline: "border-border",
|
|
14
|
+
muted: "bg-muted/50"
|
|
18
15
|
},
|
|
19
16
|
size: {
|
|
20
17
|
default: "p-4 gap-4 ",
|
|
@@ -35,22 +32,19 @@ function Item({ className, variant = "default", size = "default", asChild = fals
|
|
|
35
32
|
"data-slot": "item",
|
|
36
33
|
"data-variant": variant,
|
|
37
34
|
"data-size": size,
|
|
38
|
-
className: cn(
|
|
35
|
+
className: cn(itemVariants({ variant, size, className })),
|
|
39
36
|
...props
|
|
40
37
|
}
|
|
41
38
|
);
|
|
42
39
|
}
|
|
43
40
|
var itemMediaVariants = cva(
|
|
44
|
-
[
|
|
45
|
-
"flex shrink-0 items-center justify-center gap-2 [&_svg]:pointer-events-none",
|
|
46
|
-
"group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start"
|
|
47
|
-
],
|
|
41
|
+
"flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none group-has-[[data-slot=item-description]]/item:translate-y-0.5",
|
|
48
42
|
{
|
|
49
43
|
variants: {
|
|
50
44
|
variant: {
|
|
51
45
|
default: "bg-transparent",
|
|
52
|
-
icon: "
|
|
53
|
-
image: "size-10 overflow-hidden
|
|
46
|
+
icon: "size-8 border border-border rounded-sm bg-muted [&_svg:not([class*='size-'])]:size-4",
|
|
47
|
+
image: "size-10 rounded-sm overflow-hidden [&_img]:size-full [&_img]:object-cover"
|
|
54
48
|
}
|
|
55
49
|
},
|
|
56
50
|
defaultVariants: {
|
|
@@ -64,7 +58,7 @@ function ItemMedia({ className, variant = "default", ...props }) {
|
|
|
64
58
|
{
|
|
65
59
|
"data-slot": "item-media",
|
|
66
60
|
"data-variant": variant,
|
|
67
|
-
className: cn(itemMediaVariants({ variant, className
|
|
61
|
+
className: cn(itemMediaVariants({ variant }), className),
|
|
68
62
|
...props
|
|
69
63
|
}
|
|
70
64
|
);
|
|
@@ -91,8 +85,8 @@ function ItemDescription({ className, ...props }) {
|
|
|
91
85
|
{
|
|
92
86
|
"data-slot": "item-description",
|
|
93
87
|
className: cn(
|
|
94
|
-
"line-clamp-2 text-sm leading-normal font-normal text-balance
|
|
95
|
-
"[&>a:hover]:text-primary
|
|
88
|
+
"text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance",
|
|
89
|
+
"[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4",
|
|
96
90
|
className
|
|
97
91
|
),
|
|
98
92
|
...props
|
|
@@ -124,7 +118,7 @@ function ItemTitle({ className, ...props }) {
|
|
|
124
118
|
"div",
|
|
125
119
|
{
|
|
126
120
|
"data-slot": "item-title",
|
|
127
|
-
className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium
|
|
121
|
+
className: cn("flex w-fit items-center gap-2 text-sm leading-snug font-medium", className),
|
|
128
122
|
...props
|
|
129
123
|
}
|
|
130
124
|
);
|
|
@@ -9,10 +9,8 @@ function Separator({ className, orientation = "horizontal", decorative = false,
|
|
|
9
9
|
"data-slot": "separator",
|
|
10
10
|
decorative,
|
|
11
11
|
orientation,
|
|
12
|
-
"aria-orientation": orientation,
|
|
13
12
|
className: cn(
|
|
14
|
-
"shrink-0
|
|
15
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
13
|
+
"bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
|
|
16
14
|
className
|
|
17
15
|
),
|
|
18
16
|
...props
|