@szum-tech/design-system 3.2.0 → 3.4.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-3KMXFN6M.cjs → chunk-3DUJHGXE.cjs} +6 -6
- package/dist/chunk-4TRADSTP.js +34 -0
- package/dist/{chunk-2Y7LMI52.js → chunk-6U4URFAI.js} +4 -4
- package/dist/{chunk-DP7UEOTA.js → chunk-777F7WSJ.js} +33 -7
- package/dist/{chunk-QUS6ZDMH.cjs → chunk-H3CLI4CJ.cjs} +4 -4
- package/dist/chunk-NT3AA6QQ.cjs +29 -0
- package/dist/{chunk-ZV4467OW.cjs → chunk-P2MKLQQK.cjs} +36 -6
- package/dist/chunk-PAHTQUQC.js +27 -0
- package/dist/chunk-XENOUBSI.cjs +37 -0
- package/dist/{chunk-WJSS32MY.js → chunk-XV3AQ6NS.js} +6 -6
- package/dist/components/badge/index.cjs +2 -2
- package/dist/components/badge/index.d.cts +10 -23
- package/dist/components/badge/index.d.ts +10 -23
- package/dist/components/badge/index.js +1 -1
- package/dist/components/button/index.cjs +9 -8
- package/dist/components/button/index.d.cts +1 -1
- package/dist/components/button/index.d.ts +1 -1
- package/dist/components/button/index.js +8 -7
- package/dist/components/field/index.cjs +12 -12
- package/dist/components/field/index.js +2 -2
- package/dist/components/index.cjs +101 -84
- package/dist/components/index.d.cts +8 -5
- package/dist/components/index.d.ts +8 -5
- package/dist/components/index.js +8 -7
- package/dist/components/item/index.cjs +11 -11
- package/dist/components/item/index.js +1 -1
- package/dist/components/radio-group/index.cjs +16 -0
- package/dist/components/radio-group/index.d.cts +11 -0
- package/dist/components/radio-group/index.d.ts +11 -0
- package/dist/components/radio-group/index.js +3 -0
- package/dist/components/stepper/index.cjs +27 -26
- package/dist/components/stepper/index.js +8 -7
- package/dist/components/toaster/index.cjs +36 -0
- package/dist/components/toaster/index.d.cts +8 -0
- package/dist/components/toaster/index.d.ts +8 -0
- package/dist/components/toaster/index.js +23 -0
- package/package.json +17 -9
- package/dist/chunk-7V34QHYR.js +0 -111
- package/dist/chunk-NHFHKMX2.cjs +0 -113
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkP2MKLQQK_cjs = require('../../chunk-P2MKLQQK.cjs');
|
|
4
|
+
require('../../chunk-GR37JJQK.cjs');
|
|
5
|
+
require('../../chunk-XENOUBSI.cjs');
|
|
5
6
|
require('../../chunk-Y6EVJSAH.cjs');
|
|
6
7
|
require('../../chunk-GHV2TURY.cjs');
|
|
7
8
|
require('../../chunk-3WSQRFUY.cjs');
|
|
8
9
|
require('../../chunk-NU5UQPBX.cjs');
|
|
9
|
-
require('../../chunk-GR37JJQK.cjs');
|
|
10
10
|
require('../../chunk-2Y2ZCPNV.cjs');
|
|
11
11
|
require('../../chunk-HCHVDUI6.cjs');
|
|
12
12
|
require('../../chunk-PH4LO5TE.cjs');
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
13
|
+
require('../../chunk-H3CLI4CJ.cjs');
|
|
14
|
+
require('../../chunk-S3ANEJJ7.cjs');
|
|
15
15
|
require('../../chunk-YWG7TML6.cjs');
|
|
16
16
|
require('../../chunk-5AA4IE2T.cjs');
|
|
17
|
-
require('../../chunk-
|
|
17
|
+
require('../../chunk-3DUJHGXE.cjs');
|
|
18
|
+
require('../../chunk-UIOBJSKZ.cjs');
|
|
18
19
|
require('../../chunk-EW6TE3N5.cjs');
|
|
19
20
|
require('../../chunk-7EYMOUWG.cjs');
|
|
20
21
|
require('../../chunk-I7AV5IQO.cjs');
|
|
21
|
-
require('../../chunk-NHFHKMX2.cjs');
|
|
22
22
|
require('../../chunk-TMXVL5CV.cjs');
|
|
23
|
+
require('../../chunk-NT3AA6QQ.cjs');
|
|
23
24
|
require('../../chunk-H2BWO3SI.cjs');
|
|
24
25
|
require('../../chunk-3376ZTRC.cjs');
|
|
25
26
|
|
|
@@ -27,77 +28,77 @@ require('../../chunk-3376ZTRC.cjs');
|
|
|
27
28
|
|
|
28
29
|
Object.defineProperty(exports, "Stepper", {
|
|
29
30
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkP2MKLQQK_cjs.Stepper; }
|
|
31
32
|
});
|
|
32
33
|
Object.defineProperty(exports, "StepperActivationMode", {
|
|
33
34
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperActivationMode; }
|
|
35
36
|
});
|
|
36
37
|
Object.defineProperty(exports, "StepperContent", {
|
|
37
38
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperContent; }
|
|
39
40
|
});
|
|
40
41
|
Object.defineProperty(exports, "StepperDataState", {
|
|
41
42
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperDataState; }
|
|
43
44
|
});
|
|
44
45
|
Object.defineProperty(exports, "StepperDescription", {
|
|
45
46
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperDescription; }
|
|
47
48
|
});
|
|
48
49
|
Object.defineProperty(exports, "StepperFocusIntent", {
|
|
49
50
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperFocusIntent; }
|
|
51
52
|
});
|
|
52
53
|
Object.defineProperty(exports, "StepperIndicator", {
|
|
53
54
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperIndicator; }
|
|
55
56
|
});
|
|
56
57
|
Object.defineProperty(exports, "StepperItem", {
|
|
57
58
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperItem; }
|
|
59
60
|
});
|
|
60
61
|
Object.defineProperty(exports, "StepperNav", {
|
|
61
62
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperNav; }
|
|
63
64
|
});
|
|
64
65
|
Object.defineProperty(exports, "StepperNavigationDirection", {
|
|
65
66
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperNavigationDirection; }
|
|
67
68
|
});
|
|
68
69
|
Object.defineProperty(exports, "StepperNextTrigger", {
|
|
69
70
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperNextTrigger; }
|
|
71
72
|
});
|
|
72
73
|
Object.defineProperty(exports, "StepperOrientation", {
|
|
73
74
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperOrientation; }
|
|
75
76
|
});
|
|
76
77
|
Object.defineProperty(exports, "StepperPanel", {
|
|
77
78
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperPanel; }
|
|
79
80
|
});
|
|
80
81
|
Object.defineProperty(exports, "StepperPrevTrigger", {
|
|
81
82
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperPrevTrigger; }
|
|
83
84
|
});
|
|
84
85
|
Object.defineProperty(exports, "StepperTitle", {
|
|
85
86
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperTitle; }
|
|
87
88
|
});
|
|
88
89
|
Object.defineProperty(exports, "StepperTrigger", {
|
|
89
90
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkP2MKLQQK_cjs.StepperTrigger; }
|
|
91
92
|
});
|
|
92
93
|
Object.defineProperty(exports, "useStepperContext", {
|
|
93
94
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkP2MKLQQK_cjs.useStepperContext; }
|
|
95
96
|
});
|
|
96
97
|
Object.defineProperty(exports, "useStepperFocusContext", {
|
|
97
98
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkP2MKLQQK_cjs.useStepperFocusContext; }
|
|
99
100
|
});
|
|
100
101
|
Object.defineProperty(exports, "useStepperItemContext", {
|
|
101
102
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkP2MKLQQK_cjs.useStepperItemContext; }
|
|
103
104
|
});
|
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
export { Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { Stepper, StepperActivationMode, StepperContent, StepperDataState, StepperDescription, StepperFocusIntent, StepperIndicator, StepperItem, StepperNav, StepperNavigationDirection, StepperNextTrigger, StepperOrientation, StepperPanel, StepperPrevTrigger, StepperTitle, StepperTrigger, useStepperContext, useStepperFocusContext, useStepperItemContext } from '../../chunk-777F7WSJ.js';
|
|
2
|
+
import '../../chunk-HJJPEVIH.js';
|
|
3
|
+
import '../../chunk-4TRADSTP.js';
|
|
3
4
|
import '../../chunk-U4AWAABZ.js';
|
|
4
5
|
import '../../chunk-DTSFPOLX.js';
|
|
5
6
|
import '../../chunk-P5IUC7HJ.js';
|
|
6
7
|
import '../../chunk-OQCNPNPS.js';
|
|
7
|
-
import '../../chunk-HJJPEVIH.js';
|
|
8
8
|
import '../../chunk-6BSR3O2J.js';
|
|
9
9
|
import '../../chunk-5F2Y65JH.js';
|
|
10
10
|
import '../../chunk-AGVEKVWD.js';
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import '../../chunk-
|
|
11
|
+
import '../../chunk-6U4URFAI.js';
|
|
12
|
+
import '../../chunk-I3RSTJP6.js';
|
|
13
13
|
import '../../chunk-UW6GOD7J.js';
|
|
14
14
|
import '../../chunk-UGSNASZM.js';
|
|
15
|
-
import '../../chunk-
|
|
15
|
+
import '../../chunk-XV3AQ6NS.js';
|
|
16
|
+
import '../../chunk-XJIUGEPN.js';
|
|
16
17
|
import '../../chunk-H5O5L6XT.js';
|
|
17
18
|
import '../../chunk-DFD2WUOU.js';
|
|
18
19
|
import '../../chunk-NGVFYKAT.js';
|
|
19
|
-
import '../../chunk-7V34QHYR.js';
|
|
20
20
|
import '../../chunk-5MJPZUTO.js';
|
|
21
|
+
import '../../chunk-PAHTQUQC.js';
|
|
21
22
|
import '../../chunk-ZD2QRAOX.js';
|
|
22
23
|
import '../../chunk-BYXBJQAS.js';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkP2MKLQQK_cjs = require('../../chunk-P2MKLQQK.cjs');
|
|
4
|
+
require('../../chunk-GR37JJQK.cjs');
|
|
5
|
+
require('../../chunk-XENOUBSI.cjs');
|
|
6
|
+
require('../../chunk-Y6EVJSAH.cjs');
|
|
7
|
+
require('../../chunk-GHV2TURY.cjs');
|
|
8
|
+
require('../../chunk-3WSQRFUY.cjs');
|
|
9
|
+
require('../../chunk-NU5UQPBX.cjs');
|
|
10
|
+
require('../../chunk-2Y2ZCPNV.cjs');
|
|
11
|
+
require('../../chunk-HCHVDUI6.cjs');
|
|
12
|
+
require('../../chunk-PH4LO5TE.cjs');
|
|
13
|
+
require('../../chunk-H3CLI4CJ.cjs');
|
|
14
|
+
require('../../chunk-S3ANEJJ7.cjs');
|
|
15
|
+
require('../../chunk-YWG7TML6.cjs');
|
|
16
|
+
require('../../chunk-5AA4IE2T.cjs');
|
|
17
|
+
require('../../chunk-3DUJHGXE.cjs');
|
|
18
|
+
require('../../chunk-UIOBJSKZ.cjs');
|
|
19
|
+
require('../../chunk-EW6TE3N5.cjs');
|
|
20
|
+
require('../../chunk-7EYMOUWG.cjs');
|
|
21
|
+
require('../../chunk-I7AV5IQO.cjs');
|
|
22
|
+
require('../../chunk-TMXVL5CV.cjs');
|
|
23
|
+
require('../../chunk-NT3AA6QQ.cjs');
|
|
24
|
+
require('../../chunk-H2BWO3SI.cjs');
|
|
25
|
+
require('../../chunk-3376ZTRC.cjs');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
Object.defineProperty(exports, "Toaster", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function () { return chunkP2MKLQQK_cjs.Toaster; }
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(exports, "toast", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
get: function () { return chunkP2MKLQQK_cjs.toast; }
|
|
36
|
+
});
|
|
@@ -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,23 @@
|
|
|
1
|
+
export { Toaster, toast } from '../../chunk-777F7WSJ.js';
|
|
2
|
+
import '../../chunk-HJJPEVIH.js';
|
|
3
|
+
import '../../chunk-4TRADSTP.js';
|
|
4
|
+
import '../../chunk-U4AWAABZ.js';
|
|
5
|
+
import '../../chunk-DTSFPOLX.js';
|
|
6
|
+
import '../../chunk-P5IUC7HJ.js';
|
|
7
|
+
import '../../chunk-OQCNPNPS.js';
|
|
8
|
+
import '../../chunk-6BSR3O2J.js';
|
|
9
|
+
import '../../chunk-5F2Y65JH.js';
|
|
10
|
+
import '../../chunk-AGVEKVWD.js';
|
|
11
|
+
import '../../chunk-6U4URFAI.js';
|
|
12
|
+
import '../../chunk-I3RSTJP6.js';
|
|
13
|
+
import '../../chunk-UW6GOD7J.js';
|
|
14
|
+
import '../../chunk-UGSNASZM.js';
|
|
15
|
+
import '../../chunk-XV3AQ6NS.js';
|
|
16
|
+
import '../../chunk-XJIUGEPN.js';
|
|
17
|
+
import '../../chunk-H5O5L6XT.js';
|
|
18
|
+
import '../../chunk-DFD2WUOU.js';
|
|
19
|
+
import '../../chunk-NGVFYKAT.js';
|
|
20
|
+
import '../../chunk-5MJPZUTO.js';
|
|
21
|
+
import '../../chunk-PAHTQUQC.js';
|
|
22
|
+
import '../../chunk-ZD2QRAOX.js';
|
|
23
|
+
import '../../chunk-BYXBJQAS.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@szum-tech/design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.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.
|
|
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": "^
|
|
134
|
-
"@storybook/addon-links": "^
|
|
135
|
-
"@storybook/addon-vitest": "^
|
|
136
|
-
"@storybook/
|
|
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": "^
|
|
170
|
+
"semantic-release": "^24.2.9",
|
|
163
171
|
"serve": "^14.2.4",
|
|
164
|
-
"storybook": "^
|
|
165
|
-
"storybook-addon-tag-badges": "^
|
|
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",
|
package/dist/chunk-7V34QHYR.js
DELETED
|
@@ -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 };
|
package/dist/chunk-NHFHKMX2.cjs
DELETED
|
@@ -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;
|