@dito-uai/components 5.1.0-alpha.29 → 5.1.0-alpha.31
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/LICENSE +21 -0
- package/README.md +45 -1
- package/dist/global.css +1 -1
- package/dist/index.cjs +41 -38
- package/dist/index.d.cts +267 -3
- package/dist/index.d.ts +267 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -10
- package/dist/ui/alert.d.ts +206 -0
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +15 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/toggle-group.d.ts +11 -0
- package/dist/ui/toggle-group.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +104 -14
- package/dist/ui/toggle.d.ts.map +1 -1
- package/package.json +86 -14
- package/tailwind.config.ts +1 -1
package/dist/ui/alert.d.ts
CHANGED
|
@@ -1,5 +1,211 @@
|
|
|
1
1
|
import { VariantProps } from 'tailwind-variants';
|
|
2
2
|
import React from 'react';
|
|
3
|
+
declare const alertVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
type: {
|
|
5
|
+
success: {
|
|
6
|
+
container: string;
|
|
7
|
+
icon: string;
|
|
8
|
+
};
|
|
9
|
+
warning: {
|
|
10
|
+
container: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
};
|
|
13
|
+
error: {
|
|
14
|
+
container: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
};
|
|
17
|
+
info: {
|
|
18
|
+
container: string;
|
|
19
|
+
icon: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
closable: {
|
|
23
|
+
true: {
|
|
24
|
+
message: string;
|
|
25
|
+
};
|
|
26
|
+
false: {
|
|
27
|
+
message: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
container: string;
|
|
32
|
+
icon: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
35
|
+
type: {
|
|
36
|
+
success: {
|
|
37
|
+
container: string;
|
|
38
|
+
icon: string;
|
|
39
|
+
};
|
|
40
|
+
warning: {
|
|
41
|
+
container: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
};
|
|
44
|
+
error: {
|
|
45
|
+
container: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
};
|
|
48
|
+
info: {
|
|
49
|
+
container: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
closable: {
|
|
54
|
+
true: {
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
false: {
|
|
58
|
+
message: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
type: {
|
|
63
|
+
success: {
|
|
64
|
+
container: string;
|
|
65
|
+
icon: string;
|
|
66
|
+
};
|
|
67
|
+
warning: {
|
|
68
|
+
container: string;
|
|
69
|
+
icon: string;
|
|
70
|
+
};
|
|
71
|
+
error: {
|
|
72
|
+
container: string;
|
|
73
|
+
icon: string;
|
|
74
|
+
};
|
|
75
|
+
info: {
|
|
76
|
+
container: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
closable: {
|
|
81
|
+
true: {
|
|
82
|
+
message: string;
|
|
83
|
+
};
|
|
84
|
+
false: {
|
|
85
|
+
message: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
}>, {
|
|
89
|
+
type: {
|
|
90
|
+
success: {
|
|
91
|
+
container: string;
|
|
92
|
+
icon: string;
|
|
93
|
+
};
|
|
94
|
+
warning: {
|
|
95
|
+
container: string;
|
|
96
|
+
icon: string;
|
|
97
|
+
};
|
|
98
|
+
error: {
|
|
99
|
+
container: string;
|
|
100
|
+
icon: string;
|
|
101
|
+
};
|
|
102
|
+
info: {
|
|
103
|
+
container: string;
|
|
104
|
+
icon: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
closable: {
|
|
108
|
+
true: {
|
|
109
|
+
message: string;
|
|
110
|
+
};
|
|
111
|
+
false: {
|
|
112
|
+
message: string;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
}, {
|
|
116
|
+
container: string;
|
|
117
|
+
icon: string;
|
|
118
|
+
message: string;
|
|
119
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
120
|
+
type: {
|
|
121
|
+
success: {
|
|
122
|
+
container: string;
|
|
123
|
+
icon: string;
|
|
124
|
+
};
|
|
125
|
+
warning: {
|
|
126
|
+
container: string;
|
|
127
|
+
icon: string;
|
|
128
|
+
};
|
|
129
|
+
error: {
|
|
130
|
+
container: string;
|
|
131
|
+
icon: string;
|
|
132
|
+
};
|
|
133
|
+
info: {
|
|
134
|
+
container: string;
|
|
135
|
+
icon: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
closable: {
|
|
139
|
+
true: {
|
|
140
|
+
message: string;
|
|
141
|
+
};
|
|
142
|
+
false: {
|
|
143
|
+
message: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
}, {
|
|
147
|
+
container: string;
|
|
148
|
+
icon: string;
|
|
149
|
+
message: string;
|
|
150
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
151
|
+
type: {
|
|
152
|
+
success: {
|
|
153
|
+
container: string;
|
|
154
|
+
icon: string;
|
|
155
|
+
};
|
|
156
|
+
warning: {
|
|
157
|
+
container: string;
|
|
158
|
+
icon: string;
|
|
159
|
+
};
|
|
160
|
+
error: {
|
|
161
|
+
container: string;
|
|
162
|
+
icon: string;
|
|
163
|
+
};
|
|
164
|
+
info: {
|
|
165
|
+
container: string;
|
|
166
|
+
icon: string;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
closable: {
|
|
170
|
+
true: {
|
|
171
|
+
message: string;
|
|
172
|
+
};
|
|
173
|
+
false: {
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
}, {
|
|
178
|
+
type: {
|
|
179
|
+
success: {
|
|
180
|
+
container: string;
|
|
181
|
+
icon: string;
|
|
182
|
+
};
|
|
183
|
+
warning: {
|
|
184
|
+
container: string;
|
|
185
|
+
icon: string;
|
|
186
|
+
};
|
|
187
|
+
error: {
|
|
188
|
+
container: string;
|
|
189
|
+
icon: string;
|
|
190
|
+
};
|
|
191
|
+
info: {
|
|
192
|
+
container: string;
|
|
193
|
+
icon: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
closable: {
|
|
197
|
+
true: {
|
|
198
|
+
message: string;
|
|
199
|
+
};
|
|
200
|
+
false: {
|
|
201
|
+
message: string;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
}>, unknown, unknown, undefined>>;
|
|
205
|
+
export type AlertProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof alertVariants> & {
|
|
206
|
+
message: string | React.ReactNode;
|
|
207
|
+
closable?: boolean;
|
|
208
|
+
};
|
|
3
209
|
declare const Alert: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
4
210
|
type: {
|
|
5
211
|
success: {
|
package/dist/ui/alert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAmB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../src/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAmB,MAAM,OAAO,CAAC;AASxC,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqCjB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC3D,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AASJ,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAXE,MAAM,GAAG,KAAK,CAAC,SAAS;eACtB,OAAO;wCAiCrB,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
export type SwitchProps = HTMLAttributes<HTMLInputElement> & PropsWithChildren<{
|
|
3
|
+
name: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
}>;
|
|
7
|
+
declare const Switch: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
|
|
8
|
+
name: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
} & {
|
|
12
|
+
children?: import("react").ReactNode | undefined;
|
|
13
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
|
+
export default Switch;
|
|
15
|
+
//# sourceMappingURL=switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.d.ts","sourceRoot":"","sources":["../../src/ui/switch.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAe/D,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,gBAAgB,CAAC,GACxD,iBAAiB,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEL,QAAA,MAAM,MAAM;UALF,MAAM;eACD,OAAO;cACR,OAAO;;;oDAsBpB,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
3
|
+
import type { VariantProps } from 'tailwind-variants';
|
|
4
|
+
import { toggleVariants } from './toggle';
|
|
5
|
+
export type ToggleGroupProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
|
6
|
+
export type ToggleGroupItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>;
|
|
7
|
+
export declare const Toggle: {
|
|
8
|
+
Group: React.ForwardRefExoticComponent<ToggleGroupProps>;
|
|
9
|
+
Item: React.ForwardRefExoticComponent<ToggleGroupItemProps>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/ui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGtD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,wBAAwB,CAC3D,OAAO,oBAAoB,CAAC,IAAI,CACjC,GACC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtC,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,wBAAwB,CAC/D,OAAO,oBAAoB,CAAC,IAAI,CACjC,GACC,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC;AAqDtC,eAAO,MAAM,MAAM,EAAE;IACnB,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IACzD,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,oBAAoB,CAAC,CAAC;CAI7D,CAAC"}
|
package/dist/ui/toggle.d.ts
CHANGED
|
@@ -1,15 +1,105 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} & {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
3
|
+
import { type VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const toggleVariants: import("tailwind-variants").TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
size: {
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
12
|
+
variant: {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, {
|
|
19
|
+
variant: {
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
size: {
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
variant: {
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
size: {
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
33
|
+
variant: {
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
40
|
+
variant: {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
}, {
|
|
47
|
+
variant: {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
}>, unknown, unknown, undefined>>;
|
|
54
|
+
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
55
|
+
variant: {
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
size: {
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
62
|
+
variant: {
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
size: {
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
variant: {
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
size: {
|
|
73
|
+
default: string;
|
|
74
|
+
};
|
|
75
|
+
}>, {
|
|
76
|
+
variant: {
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
83
|
+
variant: {
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
size: {
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
}, undefined, "ring-offset-background hover:bg-muted focus-visible:ring-ring rounded-m inline-flex items-center justify-center gap-2 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-indigo-100 data-[state=on]:text-indigo-600 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
90
|
+
variant: {
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
size: {
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
}, {
|
|
97
|
+
variant: {
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
size: {
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
}>, unknown, unknown, undefined>>> & React.RefAttributes<HTMLButtonElement>>;
|
|
104
|
+
export { Toggle, toggleVariants };
|
|
15
105
|
//# sourceMappingURL=toggle.d.ts.map
|
package/dist/ui/toggle.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/ui/toggle.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/ui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAI1D,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAelB,CAAC;AAEH,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAUV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dito-uai/components",
|
|
3
|
-
"version": "5.1.0-alpha.
|
|
4
|
-
"
|
|
3
|
+
"version": "5.1.0-alpha.31",
|
|
4
|
+
"description": "Dito's design system component library, made in TSX",
|
|
5
|
+
"license": "MIT",
|
|
5
6
|
"repository": "git+https://github.com/ditointernet/dito-uai.git",
|
|
7
|
+
"homepage": "https://github.com/ditointernet/dito-uai#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/ditointernet/dito-uai/issues"
|
|
10
|
+
},
|
|
6
11
|
"publishConfig": {
|
|
7
12
|
"access": "public"
|
|
8
13
|
},
|
|
@@ -28,34 +33,77 @@
|
|
|
28
33
|
}
|
|
29
34
|
},
|
|
30
35
|
"scripts": {
|
|
31
|
-
"dev": "
|
|
32
|
-
"
|
|
33
|
-
"build": "yarn
|
|
34
|
-
"bundle": "yarn build:js & yarn build:types & yarn build:css",
|
|
36
|
+
"dev": "storybook dev -p 6006 --config-dir ./src/storybook/.storybook",
|
|
37
|
+
"build:storybook": "storybook build --config-dir ./src/storybook/.storybook --output-dir ./src/storybook/storybook-static",
|
|
38
|
+
"build:uai": "yarn build:js & yarn build:types & yarn build:css",
|
|
35
39
|
"build:js": "tsup",
|
|
36
|
-
"build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
|
37
|
-
"build:css": "tailwindcss -i ./src/global.css -o ./dist/global.css --minify -v"
|
|
40
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist --project tsconfig.build.json",
|
|
41
|
+
"build:css": "tailwindcss -i ./src/global.css -o ./dist/global.css --minify -v",
|
|
42
|
+
"publish:uai": "semantic-release",
|
|
43
|
+
"format:ts": "prettier",
|
|
44
|
+
"format:ts:all": "yarn format:ts --check \"src/**/*.{ts,tsx}\"",
|
|
45
|
+
"format": "yarn format:ts:all",
|
|
46
|
+
"lint:ts": "eslint --cache",
|
|
47
|
+
"lint:ts:all": "yarn lint:ts \"src/**/*.{ts,tsx}\"",
|
|
48
|
+
"lint": "yarn lint:ts:all --fix",
|
|
49
|
+
"cz": "cz"
|
|
38
50
|
},
|
|
39
|
-
"packageManager": "yarn@4.1.1",
|
|
40
51
|
"devDependencies": {
|
|
52
|
+
"@chromatic-com/storybook": "^1.3.3",
|
|
53
|
+
"@commitlint/cli": "^19.3.0",
|
|
54
|
+
"@commitlint/config-conventional": "13.1.0",
|
|
55
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
56
|
+
"@eslint/js": "^9.8.0",
|
|
41
57
|
"@semantic-release/commit-analyzer": "^13.0.0",
|
|
42
58
|
"@semantic-release/exec": "6.0.3",
|
|
43
59
|
"@semantic-release/git": "9.0.0",
|
|
44
60
|
"@semantic-release/github": "^10.1.3",
|
|
45
61
|
"@semantic-release/release-notes-generator": "^14.0.1",
|
|
62
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
63
|
+
"@storybook/addon-interactions": "^8.6.14",
|
|
64
|
+
"@storybook/addon-onboarding": "8.6.14",
|
|
65
|
+
"@storybook/blocks": "^8.6.14",
|
|
66
|
+
"@storybook/react": "8.6.14",
|
|
67
|
+
"@storybook/react-vite": "8.6.14",
|
|
68
|
+
"@storybook/test": "^8.6.14",
|
|
69
|
+
"@types/eslint__js": "^8.42.3",
|
|
70
|
+
"@types/postcss-flexbugs-fixes": "^5",
|
|
71
|
+
"@types/prop-types": "^15.7.12",
|
|
46
72
|
"@types/react": "^18.3.3",
|
|
73
|
+
"@types/react-dom": "^18.3.0",
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
75
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
76
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
47
77
|
"autoprefixer": "^10.4.19",
|
|
48
|
-
"
|
|
78
|
+
"chromatic": "^11.7.0",
|
|
79
|
+
"commitizen": "^4.3.0",
|
|
80
|
+
"commitlint": "^19.3.0",
|
|
81
|
+
"cz-conventional-changelog": "3.3.0",
|
|
82
|
+
"cz-customizable": "6.9.2",
|
|
83
|
+
"dotenv-cli": "^7.4.2",
|
|
84
|
+
"esbuild": "^0.12.15",
|
|
49
85
|
"esbuild-plugin-svgr": "^2.1.0",
|
|
50
86
|
"esbuild-plugin-tsc": "^0.4.0",
|
|
51
87
|
"esbuild-ts-paths": "^1.1.3",
|
|
88
|
+
"eslint": "^9.8.0",
|
|
89
|
+
"eslint-config-prettier": "^9.1.0",
|
|
90
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
91
|
+
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
92
|
+
"firebase-tools": "13.14.2",
|
|
93
|
+
"husky": "7.0.1",
|
|
94
|
+
"lint-staged": "15.2.7",
|
|
52
95
|
"postcss": "^8.4.38",
|
|
96
|
+
"prettier": "^3.3.3",
|
|
97
|
+
"prop-types": "^15.8.1",
|
|
53
98
|
"semantic-release": "^17",
|
|
99
|
+
"storybook": "8.6.14",
|
|
54
100
|
"supports-color": "^9.4.0",
|
|
55
101
|
"tailwindcss": "^3.4.13",
|
|
56
102
|
"tsup": "^8.2.3",
|
|
57
103
|
"typescript": "^5.5.4",
|
|
58
|
-
"
|
|
104
|
+
"typescript-eslint": "^8.0.0",
|
|
105
|
+
"vite": "^5.3.5",
|
|
106
|
+
"vite-tsconfig-paths": "^5.1.4"
|
|
59
107
|
},
|
|
60
108
|
"dependencies": {
|
|
61
109
|
"@dito-uai/icons": "^1.8.0",
|
|
@@ -70,11 +118,11 @@
|
|
|
70
118
|
"@radix-ui/react-radio-group": "^1.2.0",
|
|
71
119
|
"@radix-ui/react-slot": "^1.1.0",
|
|
72
120
|
"@radix-ui/react-tabs": "^1.1.12",
|
|
73
|
-
"@radix-ui/react-toggle
|
|
121
|
+
"@radix-ui/react-toggle": "^1.1.10",
|
|
122
|
+
"@radix-ui/react-toggle-group": "^1.1.11",
|
|
74
123
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
75
124
|
"@tailwindcss/forms": "^0.5.9",
|
|
76
125
|
"@tailwindcss/typography": "^0.5.15",
|
|
77
|
-
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.15",
|
|
78
126
|
"class-variance-authority": "^0.7.0",
|
|
79
127
|
"clsx": "^2.1.1",
|
|
80
128
|
"lucide-react": "^0.418.0",
|
|
@@ -97,5 +145,29 @@
|
|
|
97
145
|
"react-dom": "^18.3.1",
|
|
98
146
|
"react-hook-form": "^7.52.1",
|
|
99
147
|
"zod": "^3.23.8"
|
|
100
|
-
}
|
|
148
|
+
},
|
|
149
|
+
"engines": {
|
|
150
|
+
"node": ">= 20"
|
|
151
|
+
},
|
|
152
|
+
"config": {
|
|
153
|
+
"commitizen": {
|
|
154
|
+
"path": "cz-customizable",
|
|
155
|
+
"defaultType": "fix",
|
|
156
|
+
"defaultScope": "components"
|
|
157
|
+
},
|
|
158
|
+
"cz-customizable": {
|
|
159
|
+
"config": ".cz-config.cjs"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"husky": {
|
|
163
|
+
"hooks": {
|
|
164
|
+
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"resolutions": {
|
|
168
|
+
"underscore.string": "npm:underscore.string@*",
|
|
169
|
+
"eslint": "npm:eslint@9.8.0",
|
|
170
|
+
"typescript-eslint": "npm:typescript-eslint@8.0.0"
|
|
171
|
+
},
|
|
172
|
+
"packageManager": "yarn@4.3.1"
|
|
101
173
|
}
|
package/tailwind.config.ts
CHANGED