@szum-tech/design-system 3.1.2 → 3.3.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.
Files changed (35) hide show
  1. package/dist/{chunk-ZV4467OW.cjs → chunk-224ORC5K.cjs} +36 -6
  2. package/dist/{chunk-3KMXFN6M.cjs → chunk-3DUJHGXE.cjs} +6 -6
  3. package/dist/{chunk-DP7UEOTA.js → chunk-5FG5NOMF.js} +33 -7
  4. package/dist/{chunk-HD7ZDQWW.js → chunk-6U4URFAI.js} +3 -3
  5. package/dist/{chunk-N4O2GO6V.cjs → chunk-H3CLI4CJ.cjs} +3 -3
  6. package/dist/chunk-NT3AA6QQ.cjs +29 -0
  7. package/dist/chunk-PAHTQUQC.js +27 -0
  8. package/dist/{chunk-WJSS32MY.js → chunk-XV3AQ6NS.js} +6 -6
  9. package/dist/components/badge/index.cjs +2 -2
  10. package/dist/components/badge/index.d.cts +10 -23
  11. package/dist/components/badge/index.d.ts +10 -23
  12. package/dist/components/badge/index.js +1 -1
  13. package/dist/components/button/index.cjs +6 -6
  14. package/dist/components/button/index.d.cts +1 -1
  15. package/dist/components/button/index.d.ts +1 -1
  16. package/dist/components/button/index.js +5 -5
  17. package/dist/components/field/index.cjs +11 -11
  18. package/dist/components/field/index.js +1 -1
  19. package/dist/components/index.cjs +62 -54
  20. package/dist/components/index.d.cts +7 -5
  21. package/dist/components/index.d.ts +7 -5
  22. package/dist/components/index.js +5 -5
  23. package/dist/components/item/index.cjs +11 -11
  24. package/dist/components/item/index.js +1 -1
  25. package/dist/components/stepper/index.cjs +24 -24
  26. package/dist/components/stepper/index.js +5 -5
  27. package/dist/components/toaster/index.cjs +35 -0
  28. package/dist/components/toaster/index.d.cts +8 -0
  29. package/dist/components/toaster/index.d.ts +8 -0
  30. package/dist/components/toaster/index.js +22 -0
  31. package/package.json +17 -9
  32. package/tailwind/global.css +1 -1
  33. package/tailwind/typography.css +164 -22
  34. package/dist/chunk-7V34QHYR.js +0 -111
  35. package/dist/chunk-NHFHKMX2.cjs +0 -113
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ToasterProps as ToasterProps$1 } from 'sonner';
3
+ export { toast } from 'sonner';
4
+
5
+ type ToasterProps = ToasterProps$1;
6
+ declare const Toaster: ({ theme, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
7
+
8
+ export { Toaster, type ToasterProps };
@@ -0,0 +1,8 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ToasterProps as ToasterProps$1 } from 'sonner';
3
+ export { toast } from 'sonner';
4
+
5
+ type ToasterProps = ToasterProps$1;
6
+ declare const Toaster: ({ theme, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
7
+
8
+ export { Toaster, type ToasterProps };
@@ -0,0 +1,22 @@
1
+ export { Toaster, toast } from '../../chunk-5FG5NOMF.js';
2
+ import '../../chunk-HJJPEVIH.js';
3
+ import '../../chunk-U4AWAABZ.js';
4
+ import '../../chunk-DTSFPOLX.js';
5
+ import '../../chunk-P5IUC7HJ.js';
6
+ import '../../chunk-OQCNPNPS.js';
7
+ import '../../chunk-6BSR3O2J.js';
8
+ import '../../chunk-5F2Y65JH.js';
9
+ import '../../chunk-AGVEKVWD.js';
10
+ import '../../chunk-6U4URFAI.js';
11
+ import '../../chunk-I3RSTJP6.js';
12
+ import '../../chunk-UW6GOD7J.js';
13
+ import '../../chunk-UGSNASZM.js';
14
+ import '../../chunk-XV3AQ6NS.js';
15
+ import '../../chunk-XJIUGEPN.js';
16
+ import '../../chunk-H5O5L6XT.js';
17
+ import '../../chunk-DFD2WUOU.js';
18
+ import '../../chunk-5MJPZUTO.js';
19
+ import '../../chunk-NGVFYKAT.js';
20
+ import '../../chunk-PAHTQUQC.js';
21
+ import '../../chunk-ZD2QRAOX.js';
22
+ import '../../chunk-BYXBJQAS.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@szum-tech/design-system",
3
- "version": "3.1.2",
3
+ "version": "3.3.0",
4
4
  "description": "Szum-Tech design system with tailwindcss support",
5
5
  "keywords": [
6
6
  "szum-tech",
@@ -119,21 +119,29 @@
119
119
  "test:watch": "vitest --watch",
120
120
  "type-check": "tsc --noEmit"
121
121
  },
122
+ "overrides": {
123
+ "@storybook-community/storybook-dark-mode": {
124
+ "storybook": "^10.0.6",
125
+ "@storybook/addon-docs": "^10.0.6"
126
+ }
127
+ },
122
128
  "dependencies": {
123
129
  "class-variance-authority": "^0.7.1",
124
130
  "clsx": "^2.1.1",
125
- "lucide-react": "^0.548.0",
131
+ "lucide-react": "^0.553.0",
126
132
  "radix-ui": "^1.4.2",
133
+ "sonner": "^2.0.7",
127
134
  "tailwind-merge": "^3.3.1",
128
135
  "tailwindcss-animate": "^1.0.7"
129
136
  },
130
137
  "devDependencies": {
131
138
  "@hookform/resolvers": "^5.2.1",
132
139
  "@storybook-community/storybook-dark-mode": "^6.0.0",
133
- "@storybook/addon-docs": "^9.0.18",
134
- "@storybook/addon-links": "^9.0.18",
135
- "@storybook/addon-vitest": "^9.0.18",
136
- "@storybook/react-vite": "^9.0.18",
140
+ "@storybook/addon-docs": "^10.0.6",
141
+ "@storybook/addon-links": "^10.0.6",
142
+ "@storybook/addon-vitest": "^10.0.6",
143
+ "@storybook/builder-vite": "^10.0.6",
144
+ "@storybook/react-vite": "^10.0.6",
137
145
  "@szum-tech/eslint-config": "^2.1.7",
138
146
  "@szum-tech/prettier-config": "^1.6.2",
139
147
  "@szum-tech/semantic-release-config": "^2.3.1",
@@ -159,10 +167,10 @@
159
167
  "react-docgen": "^8.0.0",
160
168
  "react-docgen-typescript": "^2.4.0",
161
169
  "react-dom": "^19.1.0",
162
- "semantic-release": "^25.0.1",
170
+ "semantic-release": "^24.2.9",
163
171
  "serve": "^14.2.4",
164
- "storybook": "^9.0.18",
165
- "storybook-addon-tag-badges": "^2.0.1",
172
+ "storybook": "^10.0.6",
173
+ "storybook-addon-tag-badges": "^3.0.2",
166
174
  "tailwindcss": "^4.1.11",
167
175
  "tsup": "^8.5.0",
168
176
  "typescript": "^5.8.3",
@@ -14,7 +14,7 @@
14
14
  }
15
15
 
16
16
  body {
17
- @apply bg-background font-poppins text-foreground antialiased;
17
+ @apply bg-background font-poppins text-foreground text-body-default antialiased;
18
18
  }
19
19
  }
20
20
 
@@ -1,50 +1,192 @@
1
1
  @import "tailwindcss";
2
2
 
3
+ /* ========================================
4
+ THEME CONFIGURATION - Tailwind v4
5
+ ======================================== */
3
6
  @theme {
4
7
  --font-poppins: "Poppins", sans-serif;
5
8
  --font-code: "JetBrains Mono", monospace;
9
+
10
+ /* Font Sizes - Display Variants */
11
+ --font-size-display-xl: 4.5rem; /* 72px */
12
+ --font-size-display-lg: 3.75rem; /* 60px */
13
+ --font-size-display-md: 3rem; /* 48px */
14
+ --font-size-display-sm: 2.25rem; /* 36px */
15
+
16
+ /* Font Sizes - Headings */
17
+ --font-size-heading-h1: 2rem; /* 32px */
18
+ --font-size-heading-h2: 1.5rem; /* 24px */
19
+ --font-size-heading-h3: 1.25rem; /* 20px */
20
+ --font-size-heading-h4: 1.125rem; /* 18px */
21
+
22
+ /* Font Sizes - Body */
23
+ --font-size-body-xl: 1.25rem; /* 20px */
24
+ --font-size-body-lg: 1.125rem; /* 18px */
25
+ --font-size-body-default: 1rem; /* 16px */
26
+ --font-size-body-sm: 0.875rem; /* 14px */
27
+ --font-size-body-xs: 0.75rem; /* 12px */
28
+
29
+ /* Line Heights */
30
+ --line-height-tight: 1.1;
31
+ --line-height-snug: 1.2;
32
+ --line-height-normal: 1.4;
33
+ --line-height-relaxed: 1.6;
34
+ --line-height-loose: 1.7;
35
+
36
+ /* Letter Spacing */
37
+ --letter-spacing-tighter: -0.02em;
38
+ --letter-spacing-tight: -0.01em;
39
+ --letter-spacing-normal: 0;
40
+ --letter-spacing-wide: 0.05em;
41
+ }
42
+
43
+ /* ========================================
44
+ UTILITY CLASSES - Tailwind v4 Style
45
+ ======================================== */
46
+ /* Display Variants */
47
+ @utility text-display-xl {
48
+ @apply text-(length:--font-size-display-md) leading-(--line-height-tight) font-extrabold tracking-(--letter-spacing-tighter) md:text-(length:--font-size-display-xl);
49
+ /*font-size: var(--font-size-display-xl);*/
50
+ /*line-height: var(--line-height-tight);*/
51
+ /*font-weight: 800;*/
52
+ /*letter-spacing: var(--letter-spacing-tighter);*/
53
+ }
54
+
55
+ @utility text-display-lg {
56
+ @apply text-[2.5rem] leading-(--line-height-tight) font-extrabold tracking-(--letter-spacing-tighter) md:text-(length:--font-size-display-lg);
57
+ /*font-size: var(--font-size-display-lg);*/
58
+ /*line-height: var(--line-height-tight);*/
59
+ /*font-weight: 800;*/
60
+ /*letter-spacing: var(--letter-spacing-tighter);*/
61
+ }
62
+
63
+ @utility text-display-md {
64
+ @apply text-[2rem] leading-[1.15] font-bold tracking-(--letter-spacing-tighter) md:text-(length:--font-size-display-md);
65
+ /*font-size: var(--font-size-display-md);*/
66
+ /*line-height: 1.15;*/
67
+ /*font-weight: 700;*/
68
+ /*letter-spacing: var(--letter-spacing-tighter);*/
69
+ }
70
+
71
+ @utility text-display-sm {
72
+ @apply text-[1.75rem] leading-(--line-height-snug) font-bold tracking-(--letter-spacing-tight) md:text-(length:--font-size-display-sm);
73
+ /*font-size: var(--font-size-display-sm);*/
74
+ /*line-height: var(--line-height-snug);*/
75
+ /*font-weight: 700;*/
76
+ /*letter-spacing: var(--letter-spacing-tight);*/
77
+ }
78
+
79
+ /* Heading Variants */
80
+ @utility text-heading-h1 {
81
+ @apply text-[1.75rem] leading-[1.25] font-bold tracking-(--letter-spacing-tight) md:text-(length:--font-size-heading-h1);
82
+ /*font-size: var(--font-size-heading-h1);*/
83
+ /*line-height: 1.25;*/
84
+ /*font-weight: 700;*/
85
+ /*letter-spacing: var(--letter-spacing-tight);*/
86
+ }
87
+
88
+ @utility text-heading-h2 {
89
+ @apply text-[1.375rem] leading-[1.3] font-semibold tracking-(--letter-spacing-tight) md:text-(length:--font-size-heading-h2);
90
+ /*font-size: var(--font-size-heading-h2);*/
91
+ /*line-height: 1.3;*/
92
+ /*font-weight: 600;*/
93
+ /*letter-spacing: var(--letter-spacing-tight);*/
94
+ }
95
+
96
+ .text-heading-h3 {
97
+ @apply text-[1.125rem] leading-(--line-height-normal) font-semibold tracking-[-0.005em] md:text-(length:--font-size-heading-h3);
98
+ /*font-size: var(--font-size-heading-h3);*/
99
+ /*line-height: var(--line-height-normal);*/
100
+ /*font-weight: 600;*/
101
+ /*letter-spacing: -0.005em;*/
6
102
  }
7
103
 
8
- @utility typography-heading-1 {
9
- @apply scroll-m-20 text-center text-4xl font-extrabold tracking-tight text-balance;
104
+ @utility text-heading-h4 {
105
+ @apply text-[1rem] leading-(--line-height-normal) font-semibold tracking-(--letter-spacing-normal) md:text-(length:--font-size-heading-h4);
106
+ /*font-size: var(--font-size-heading-h4);*/
107
+ /*line-height: var(--line-height-normal);*/
108
+ /*font-weight: 600;*/
109
+ /*letter-spacing: var(--letter-spacing-normal);*/
10
110
  }
11
111
 
12
- @utility typography-heading-2 {
13
- @apply border-border scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0;
112
+ /* Body Variants */
113
+ @utility text-body-xl {
114
+ @apply text-(length:--font-size-body-xl) leading-(--line-height-relaxed) font-normal;
115
+ /*font-size: var(--font-size-body-xl);*/
116
+ /*line-height: var(--line-height-relaxed);*/
117
+ /*font-weight: 400;*/
14
118
  }
15
119
 
16
- @utility typography-heading-3 {
17
- @apply scroll-m-20 text-2xl font-semibold tracking-tight;
120
+ @utility text-body-lg {
121
+ @apply text-(length:--font-size-body-lg) leading-(--line-height-relaxed) font-normal;
122
+ /*font-size: var(--font-size-body-lg);*/
123
+ /*line-height: var(--line-height-relaxed);*/
124
+ /*font-weight: 400;*/
18
125
  }
19
126
 
20
- @utility typography-heading-4 {
21
- @apply scroll-m-20 text-xl font-semibold tracking-tight;
127
+ @utility text-body-default {
128
+ @apply text-(length:--font-size-body-default) leading-(--line-height-relaxed) font-normal;
129
+ /*font-size: var(--font-size-body-default);*/
130
+ /*line-height: var(--line-height-relaxed);*/
131
+ /*font-weight: 400;*/
22
132
  }
23
133
 
24
- @utility typography-paragraph {
25
- @apply leading-7 [&:not(:first-child)]:mt-6;
134
+ @utility text-body-sm {
135
+ @apply text-(length:--font-size-body-sm) leading-[1.5] font-normal;
136
+ /*font-size: var(--font-size-body-sm);*/
137
+ /*line-height: 1.5;*/
138
+ /*font-weight: 400;*/
26
139
  }
27
140
 
28
- @utility typography-blockquote {
29
- @apply border-border mt-6 border-l-2 pl-6 italic;
141
+ @utility text-body-xs {
142
+ @apply text-(length:--font-size-body-xs) leading-[1.5] font-normal;
143
+ /*font-size: var(--font-size-body-xs);*/
144
+ /*line-height: 1.5;*/
145
+ /*font-weight: 400;*/
30
146
  }
31
147
 
32
- @utility typography-inline-code {
33
- @apply bg-muted font-code relative rounded px-[0.3rem] py-[0.2rem] text-sm font-semibold;
148
+ /* Special Text Types */
149
+ @utility text-lead {
150
+ @apply text-muted-foreground text-(length:--font-size-body-xl) leading-(--line-height-loose) font-normal;
151
+ /*font-size: var(--font-size-body-xl);*/
152
+ /*line-height: var(--line-height-loose);*/
153
+ /*font-weight: 400;*/
154
+ /*color: var(--muted-foreground);*/
34
155
  }
35
156
 
36
- @utility typography-lead {
37
- @apply text-muted-foreground text-xl;
157
+ @utility text-mute {
158
+ @apply text-muted-foreground text-(length:--font-size-body-sm) leading-[1.5] font-normal;
159
+ /*font-size: var(--font-size-body-sm);*/
160
+ /*line-height: 1.5;*/
161
+ /*font-weight: 400;*/
162
+ /*color: var(--muted-foreground);*/
38
163
  }
39
164
 
40
- @utility typography-large {
41
- @apply text-lg font-semibold;
165
+ @utility text-small {
166
+ @apply text-muted-foreground text-(length:--font-size-body-xs) leading-[1.4] font-normal;
167
+ /*font-size: var(--font-size-body-xs);*/
168
+ /*line-height: 1.4;*/
169
+ /*font-weight: 400;*/
170
+ /*color: var(--muted-foreground);*/
42
171
  }
43
172
 
44
- @utility typography-small {
45
- @apply text-sm leading-none font-medium;
173
+ @utility text-code {
174
+ @apply font-code bg-muted text-foreground rounded px-1.5 py-0.5 text-[0.875em] leading-[1.5] font-medium;
175
+ /*font-family: var(--font-code), serif;*/
176
+ /*font-size: 0.875em;*/
177
+ /*padding: 0.125rem 0.375rem;*/
178
+ /*background: var(--muted);*/
179
+ /*border-radius: var(--radius);*/
180
+ /*color: var(--foreground);*/
181
+ /*font-weight: 500;*/
46
182
  }
47
183
 
48
- @utility typography-muted {
49
- @apply text-muted-foreground text-sm;
184
+ @utility text-blockquote {
185
+ @apply text-muted-foreground border-border border-l-2 pl-4 text-[1rem] leading-(--line-height-relaxed);
186
+ /*font-size: 1rem;*/
187
+ /*line-height: var(--line-height-relaxed);*/
188
+ /*font-style: italic;*/
189
+ /*border-left: 2px solid var(--border);*/
190
+ /*padding-left: 1rem;*/
191
+ /*color: var(--muted-foreground);*/
50
192
  }
@@ -1,111 +0,0 @@
1
- import { cn } from './chunk-ZD2QRAOX.js';
2
- import { Slot } from '@radix-ui/react-slot';
3
- import { cva } from 'class-variance-authority';
4
- import { jsx } from 'react/jsx-runtime';
5
-
6
- var badgeCva = cva(
7
- [
8
- "inline-flex w-fit shrink-0 items-center justify-center gap-x-1 overflow-hidden whitespace-nowrap rounded border px-2 py-0.5 text-xs transition-[color,box-shadow]",
9
- "[&>svg]:pointer-events-none [&>svg]:size-3",
10
- "focus-visible:border-ring focus-visible:ring-primary-500/50 focus-visible:ring",
11
- "aria-invalid:ring-error-500/20 aria-invalid:border-ring-error-500"
12
- ],
13
- {
14
- variants: {
15
- color: {
16
- neutral: "",
17
- primary: "",
18
- success: "",
19
- warning: "",
20
- error: ""
21
- },
22
- variant: {
23
- contained: "",
24
- outlined: "bg-transparent"
25
- }
26
- },
27
- compoundVariants: [
28
- // ---------- contained ---------- //
29
- {
30
- variant: "contained",
31
- color: "neutral",
32
- class: ["border-gray-500 bg-gray-500 text-white"]
33
- },
34
- {
35
- variant: "contained",
36
- color: "primary",
37
- class: ["border-primary-500 bg-primary-500 text-white"]
38
- },
39
- {
40
- variant: "contained",
41
- color: "success",
42
- class: ["border-success-500 bg-success-500 text-white"]
43
- },
44
- {
45
- variant: "contained",
46
- color: "warning",
47
- class: ["border-warning-500 bg-warning-500 text-white"]
48
- },
49
- {
50
- variant: "contained",
51
- color: "error",
52
- class: ["border-error-500 bg-error-500 text-white"]
53
- },
54
- // ---------- OUTLINED ---------- //
55
- {
56
- variant: "outlined",
57
- color: "neutral",
58
- class: ["border-gray-500 text-gray-100"]
59
- },
60
- {
61
- variant: "outlined",
62
- color: "primary",
63
- class: ["border-primary-500 text-primary-500"]
64
- },
65
- {
66
- variant: "outlined",
67
- color: "success",
68
- class: ["border-success-500 text-success-500"]
69
- },
70
- {
71
- variant: "outlined",
72
- color: "warning",
73
- class: ["border-warning-500 text-warning-500"]
74
- },
75
- {
76
- variant: "outlined",
77
- color: "error",
78
- class: ["border-error-500 text-error-500"]
79
- }
80
- ],
81
- defaultVariants: {
82
- color: "primary",
83
- variant: "contained"
84
- }
85
- }
86
- );
87
- function Badge({
88
- asChild = false,
89
- color = "primary",
90
- variant = "contained",
91
- className,
92
- children,
93
- ...props
94
- }) {
95
- const badgeStyles = badgeCva({ color, variant });
96
- const Comp = asChild ? Slot : "span";
97
- return /* @__PURE__ */ jsx(
98
- Comp,
99
- {
100
- "data-slot": "badge",
101
- "data-variant": variant,
102
- "data-color": color,
103
- role: !asChild ? "status" : void 0,
104
- className: cn(badgeStyles, className),
105
- ...props,
106
- children
107
- }
108
- );
109
- }
110
-
111
- export { Badge };
@@ -1,113 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkH2BWO3SI_cjs = require('./chunk-H2BWO3SI.cjs');
4
- var reactSlot = require('@radix-ui/react-slot');
5
- var classVarianceAuthority = require('class-variance-authority');
6
- var jsxRuntime = require('react/jsx-runtime');
7
-
8
- var badgeCva = classVarianceAuthority.cva(
9
- [
10
- "inline-flex w-fit shrink-0 items-center justify-center gap-x-1 overflow-hidden whitespace-nowrap rounded border px-2 py-0.5 text-xs transition-[color,box-shadow]",
11
- "[&>svg]:pointer-events-none [&>svg]:size-3",
12
- "focus-visible:border-ring focus-visible:ring-primary-500/50 focus-visible:ring",
13
- "aria-invalid:ring-error-500/20 aria-invalid:border-ring-error-500"
14
- ],
15
- {
16
- variants: {
17
- color: {
18
- neutral: "",
19
- primary: "",
20
- success: "",
21
- warning: "",
22
- error: ""
23
- },
24
- variant: {
25
- contained: "",
26
- outlined: "bg-transparent"
27
- }
28
- },
29
- compoundVariants: [
30
- // ---------- contained ---------- //
31
- {
32
- variant: "contained",
33
- color: "neutral",
34
- class: ["border-gray-500 bg-gray-500 text-white"]
35
- },
36
- {
37
- variant: "contained",
38
- color: "primary",
39
- class: ["border-primary-500 bg-primary-500 text-white"]
40
- },
41
- {
42
- variant: "contained",
43
- color: "success",
44
- class: ["border-success-500 bg-success-500 text-white"]
45
- },
46
- {
47
- variant: "contained",
48
- color: "warning",
49
- class: ["border-warning-500 bg-warning-500 text-white"]
50
- },
51
- {
52
- variant: "contained",
53
- color: "error",
54
- class: ["border-error-500 bg-error-500 text-white"]
55
- },
56
- // ---------- OUTLINED ---------- //
57
- {
58
- variant: "outlined",
59
- color: "neutral",
60
- class: ["border-gray-500 text-gray-100"]
61
- },
62
- {
63
- variant: "outlined",
64
- color: "primary",
65
- class: ["border-primary-500 text-primary-500"]
66
- },
67
- {
68
- variant: "outlined",
69
- color: "success",
70
- class: ["border-success-500 text-success-500"]
71
- },
72
- {
73
- variant: "outlined",
74
- color: "warning",
75
- class: ["border-warning-500 text-warning-500"]
76
- },
77
- {
78
- variant: "outlined",
79
- color: "error",
80
- class: ["border-error-500 text-error-500"]
81
- }
82
- ],
83
- defaultVariants: {
84
- color: "primary",
85
- variant: "contained"
86
- }
87
- }
88
- );
89
- function Badge({
90
- asChild = false,
91
- color = "primary",
92
- variant = "contained",
93
- className,
94
- children,
95
- ...props
96
- }) {
97
- const badgeStyles = badgeCva({ color, variant });
98
- const Comp = asChild ? reactSlot.Slot : "span";
99
- return /* @__PURE__ */ jsxRuntime.jsx(
100
- Comp,
101
- {
102
- "data-slot": "badge",
103
- "data-variant": variant,
104
- "data-color": color,
105
- role: !asChild ? "status" : void 0,
106
- className: chunkH2BWO3SI_cjs.cn(badgeStyles, className),
107
- ...props,
108
- children
109
- }
110
- );
111
- }
112
-
113
- exports.Badge = Badge;