@dito-uai/components 5.0.0-alpha1
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/README.md +1 -0
- package/dist/global.css +1 -0
- package/dist/index.cjs +62 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +22 -0
- package/dist/lib/colors-utils.d.ts +88 -0
- package/dist/lib/colors-utils.d.ts.map +1 -0
- package/dist/lib/css-util.d.ts +3 -0
- package/dist/lib/css-util.d.ts.map +1 -0
- package/dist/ui/avatar.d.ts +221 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/badge.d.ts +264 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/button.d.ts +765 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/card.d.ts +122 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/checkbox.d.ts +4 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/chips.d.ts +416 -0
- package/dist/ui/chips.d.ts.map +1 -0
- package/dist/ui/form-item.d.ts +16 -0
- package/dist/ui/form-item.d.ts.map +1 -0
- package/dist/ui/form.d.ts +1 -0
- package/dist/ui/form.d.ts.map +1 -0
- package/dist/ui/indicator.d.ts +57 -0
- package/dist/ui/indicator.d.ts.map +1 -0
- package/dist/ui/input-description.d.ts +66 -0
- package/dist/ui/input-description.d.ts.map +1 -0
- package/dist/ui/input.d.ts +209 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/internal/dropdown-content.d.ts +12 -0
- package/dist/ui/internal/dropdown-content.d.ts.map +1 -0
- package/dist/ui/label.d.ts +43 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/progress-bar.d.ts +9 -0
- package/dist/ui/progress-bar.d.ts.map +1 -0
- package/dist/ui/progress.d.ts +57 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/radio.d.ts +10 -0
- package/dist/ui/radio.d.ts.map +1 -0
- package/dist/ui/scope.d.ts +209 -0
- package/dist/ui/scope.d.ts.map +1 -0
- package/dist/ui/search.d.ts +199 -0
- package/dist/ui/search.d.ts.map +1 -0
- package/dist/ui/sheets.d.ts +15 -0
- package/dist/ui/sheets.d.ts.map +1 -0
- package/dist/ui/status.d.ts +76 -0
- package/dist/ui/status.d.ts.map +1 -0
- package/dist/ui/text.d.ts +115 -0
- package/dist/ui/text.d.ts.map +1 -0
- package/dist/ui/textarea.d.ts +9 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/toggle.d.ts +13 -0
- package/dist/ui/toggle.d.ts.map +1 -0
- package/package.json +89 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import { inputVariants } from './input';
|
|
4
|
+
import { DropdownProps } from './internal/dropdown-content';
|
|
5
|
+
export type SearchProps = React.InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputVariants> & {
|
|
6
|
+
scope?: DropdownProps;
|
|
7
|
+
};
|
|
8
|
+
declare const Search: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & VariantProps<import("tailwind-variants").TVReturnType<{
|
|
9
|
+
disabled: {
|
|
10
|
+
true: {
|
|
11
|
+
input: string;
|
|
12
|
+
prefixIcon: string;
|
|
13
|
+
suffixIcon: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
invalid: {
|
|
17
|
+
true: {
|
|
18
|
+
input: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
medium: {
|
|
23
|
+
prefixIcon: string;
|
|
24
|
+
suffixIcon: string;
|
|
25
|
+
input: string;
|
|
26
|
+
};
|
|
27
|
+
small: {
|
|
28
|
+
prefixIcon: string;
|
|
29
|
+
suffixIcon: string;
|
|
30
|
+
input: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
prefixIcon: string;
|
|
35
|
+
input: string;
|
|
36
|
+
suffixIcon: string;
|
|
37
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
38
|
+
disabled: {
|
|
39
|
+
true: {
|
|
40
|
+
input: string;
|
|
41
|
+
prefixIcon: string;
|
|
42
|
+
suffixIcon: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
invalid: {
|
|
46
|
+
true: {
|
|
47
|
+
input: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
size: {
|
|
51
|
+
medium: {
|
|
52
|
+
prefixIcon: string;
|
|
53
|
+
suffixIcon: string;
|
|
54
|
+
input: string;
|
|
55
|
+
};
|
|
56
|
+
small: {
|
|
57
|
+
prefixIcon: string;
|
|
58
|
+
suffixIcon: string;
|
|
59
|
+
input: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
disabled: {
|
|
64
|
+
true: {
|
|
65
|
+
input: string;
|
|
66
|
+
prefixIcon: string;
|
|
67
|
+
suffixIcon: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
invalid: {
|
|
71
|
+
true: {
|
|
72
|
+
input: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
size: {
|
|
76
|
+
medium: {
|
|
77
|
+
prefixIcon: string;
|
|
78
|
+
suffixIcon: string;
|
|
79
|
+
input: string;
|
|
80
|
+
};
|
|
81
|
+
small: {
|
|
82
|
+
prefixIcon: string;
|
|
83
|
+
suffixIcon: string;
|
|
84
|
+
input: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
}>, {
|
|
88
|
+
disabled: {
|
|
89
|
+
true: {
|
|
90
|
+
input: string;
|
|
91
|
+
prefixIcon: string;
|
|
92
|
+
suffixIcon: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
invalid: {
|
|
96
|
+
true: {
|
|
97
|
+
input: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
size: {
|
|
101
|
+
medium: {
|
|
102
|
+
prefixIcon: string;
|
|
103
|
+
suffixIcon: string;
|
|
104
|
+
input: string;
|
|
105
|
+
};
|
|
106
|
+
small: {
|
|
107
|
+
prefixIcon: string;
|
|
108
|
+
suffixIcon: string;
|
|
109
|
+
input: string;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}, {
|
|
113
|
+
prefixIcon: string;
|
|
114
|
+
input: string;
|
|
115
|
+
suffixIcon: string;
|
|
116
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
117
|
+
disabled: {
|
|
118
|
+
true: {
|
|
119
|
+
input: string;
|
|
120
|
+
prefixIcon: string;
|
|
121
|
+
suffixIcon: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
invalid: {
|
|
125
|
+
true: {
|
|
126
|
+
input: string;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
size: {
|
|
130
|
+
medium: {
|
|
131
|
+
prefixIcon: string;
|
|
132
|
+
suffixIcon: string;
|
|
133
|
+
input: string;
|
|
134
|
+
};
|
|
135
|
+
small: {
|
|
136
|
+
prefixIcon: string;
|
|
137
|
+
suffixIcon: string;
|
|
138
|
+
input: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
prefixIcon: string;
|
|
143
|
+
input: string;
|
|
144
|
+
suffixIcon: string;
|
|
145
|
+
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
146
|
+
disabled: {
|
|
147
|
+
true: {
|
|
148
|
+
input: string;
|
|
149
|
+
prefixIcon: string;
|
|
150
|
+
suffixIcon: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
invalid: {
|
|
154
|
+
true: {
|
|
155
|
+
input: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
size: {
|
|
159
|
+
medium: {
|
|
160
|
+
prefixIcon: string;
|
|
161
|
+
suffixIcon: string;
|
|
162
|
+
input: string;
|
|
163
|
+
};
|
|
164
|
+
small: {
|
|
165
|
+
prefixIcon: string;
|
|
166
|
+
suffixIcon: string;
|
|
167
|
+
input: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
}, {
|
|
171
|
+
disabled: {
|
|
172
|
+
true: {
|
|
173
|
+
input: string;
|
|
174
|
+
prefixIcon: string;
|
|
175
|
+
suffixIcon: string;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
invalid: {
|
|
179
|
+
true: {
|
|
180
|
+
input: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
size: {
|
|
184
|
+
medium: {
|
|
185
|
+
prefixIcon: string;
|
|
186
|
+
suffixIcon: string;
|
|
187
|
+
input: string;
|
|
188
|
+
};
|
|
189
|
+
small: {
|
|
190
|
+
prefixIcon: string;
|
|
191
|
+
suffixIcon: string;
|
|
192
|
+
input: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
}>, unknown, unknown, undefined>>> & {
|
|
196
|
+
scope?: DropdownProps;
|
|
197
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
198
|
+
export default Search;
|
|
199
|
+
//# sourceMappingURL=search.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/ui/search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAmB,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAuC7E,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,GACnE,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACrC,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAHF,aAAa;0CAiDtB,CAAC;AAsCF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
isVisible?: boolean;
|
|
6
|
+
CloseIcon?: React.ElementType;
|
|
7
|
+
maxWidth?: string;
|
|
8
|
+
onClose?: (confirm: boolean) => void;
|
|
9
|
+
};
|
|
10
|
+
declare const Sheet: {
|
|
11
|
+
({ title, children, isVisible, CloseIcon, maxWidth, onClose, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export default Sheet;
|
|
15
|
+
//# sourceMappingURL=sheets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheets.d.ts","sourceRoot":"","sources":["../../src/ui/sheets.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,CAAC;AACF,QAAA,MAAM,KAAK;oEAOR,KAAK;;CAuEP,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
declare const statusVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
status: {
|
|
5
|
+
success: string[];
|
|
6
|
+
attention: string[];
|
|
7
|
+
info: string[];
|
|
8
|
+
error: string[];
|
|
9
|
+
disabled: string[];
|
|
10
|
+
};
|
|
11
|
+
}, undefined, "text-medium flex items-center justify-center rounded-sm px-1 py-0.5", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
12
|
+
status: {
|
|
13
|
+
success: string[];
|
|
14
|
+
attention: string[];
|
|
15
|
+
info: string[];
|
|
16
|
+
error: string[];
|
|
17
|
+
disabled: string[];
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
status: {
|
|
21
|
+
success: string[];
|
|
22
|
+
attention: string[];
|
|
23
|
+
info: string[];
|
|
24
|
+
error: string[];
|
|
25
|
+
disabled: string[];
|
|
26
|
+
};
|
|
27
|
+
}>, {
|
|
28
|
+
status: {
|
|
29
|
+
success: string[];
|
|
30
|
+
attention: string[];
|
|
31
|
+
info: string[];
|
|
32
|
+
error: string[];
|
|
33
|
+
disabled: string[];
|
|
34
|
+
};
|
|
35
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
36
|
+
status: {
|
|
37
|
+
success: string[];
|
|
38
|
+
attention: string[];
|
|
39
|
+
info: string[];
|
|
40
|
+
error: string[];
|
|
41
|
+
disabled: string[];
|
|
42
|
+
};
|
|
43
|
+
}, undefined, "text-medium flex items-center justify-center rounded-sm px-1 py-0.5", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
44
|
+
status: {
|
|
45
|
+
success: string[];
|
|
46
|
+
attention: string[];
|
|
47
|
+
info: string[];
|
|
48
|
+
error: string[];
|
|
49
|
+
disabled: string[];
|
|
50
|
+
};
|
|
51
|
+
}, {
|
|
52
|
+
status: {
|
|
53
|
+
success: string[];
|
|
54
|
+
attention: string[];
|
|
55
|
+
info: string[];
|
|
56
|
+
error: string[];
|
|
57
|
+
disabled: string[];
|
|
58
|
+
};
|
|
59
|
+
}>, unknown, unknown, undefined>>;
|
|
60
|
+
type StatusSimpleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof statusVariants> & {
|
|
61
|
+
text: string;
|
|
62
|
+
};
|
|
63
|
+
type StatusOption = VariantProps<typeof statusVariants> & {
|
|
64
|
+
text: string;
|
|
65
|
+
value: string;
|
|
66
|
+
};
|
|
67
|
+
type StatusMenuProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof statusVariants> & {
|
|
68
|
+
options: StatusOption[];
|
|
69
|
+
value: string;
|
|
70
|
+
onChange?: (value: string) => void;
|
|
71
|
+
};
|
|
72
|
+
declare const Status: Partial<StatusSimpleProps> & {
|
|
73
|
+
Menu: React.ForwardRefExoticComponent<StatusMenuProps>;
|
|
74
|
+
};
|
|
75
|
+
export default Status;
|
|
76
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/ui/status.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAKrD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA+BlB,CAAC;AAEH,KAAK,iBAAiB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC3D,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAyBJ,KAAK,YAAY,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,eAAe,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GACzD,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC,CAAC;AA6BJ,QAAA,MAAM,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG;IACzC,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;CAIxD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
declare const TextVariants: import("tailwind-variants").TVReturnType<{
|
|
4
|
+
size: {
|
|
5
|
+
H1: string;
|
|
6
|
+
H2: string;
|
|
7
|
+
H3: string;
|
|
8
|
+
large: string;
|
|
9
|
+
base: string;
|
|
10
|
+
small: string;
|
|
11
|
+
overline: string;
|
|
12
|
+
};
|
|
13
|
+
weight: {
|
|
14
|
+
normal: string;
|
|
15
|
+
medium: string;
|
|
16
|
+
semibold: string;
|
|
17
|
+
};
|
|
18
|
+
}, undefined, "", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
19
|
+
size: {
|
|
20
|
+
H1: string;
|
|
21
|
+
H2: string;
|
|
22
|
+
H3: string;
|
|
23
|
+
large: string;
|
|
24
|
+
base: string;
|
|
25
|
+
small: string;
|
|
26
|
+
overline: string;
|
|
27
|
+
};
|
|
28
|
+
weight: {
|
|
29
|
+
normal: string;
|
|
30
|
+
medium: string;
|
|
31
|
+
semibold: string;
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
size: {
|
|
35
|
+
H1: string;
|
|
36
|
+
H2: string;
|
|
37
|
+
H3: string;
|
|
38
|
+
large: string;
|
|
39
|
+
base: string;
|
|
40
|
+
small: string;
|
|
41
|
+
overline: string;
|
|
42
|
+
};
|
|
43
|
+
weight: {
|
|
44
|
+
normal: string;
|
|
45
|
+
medium: string;
|
|
46
|
+
semibold: string;
|
|
47
|
+
};
|
|
48
|
+
}>, {
|
|
49
|
+
size: {
|
|
50
|
+
H1: string;
|
|
51
|
+
H2: string;
|
|
52
|
+
H3: string;
|
|
53
|
+
large: string;
|
|
54
|
+
base: string;
|
|
55
|
+
small: string;
|
|
56
|
+
overline: string;
|
|
57
|
+
};
|
|
58
|
+
weight: {
|
|
59
|
+
normal: string;
|
|
60
|
+
medium: string;
|
|
61
|
+
semibold: string;
|
|
62
|
+
};
|
|
63
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
64
|
+
size: {
|
|
65
|
+
H1: string;
|
|
66
|
+
H2: string;
|
|
67
|
+
H3: string;
|
|
68
|
+
large: string;
|
|
69
|
+
base: string;
|
|
70
|
+
small: string;
|
|
71
|
+
overline: string;
|
|
72
|
+
};
|
|
73
|
+
weight: {
|
|
74
|
+
normal: string;
|
|
75
|
+
medium: string;
|
|
76
|
+
semibold: string;
|
|
77
|
+
};
|
|
78
|
+
}, undefined, "", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
79
|
+
size: {
|
|
80
|
+
H1: string;
|
|
81
|
+
H2: string;
|
|
82
|
+
H3: string;
|
|
83
|
+
large: string;
|
|
84
|
+
base: string;
|
|
85
|
+
small: string;
|
|
86
|
+
overline: string;
|
|
87
|
+
};
|
|
88
|
+
weight: {
|
|
89
|
+
normal: string;
|
|
90
|
+
medium: string;
|
|
91
|
+
semibold: string;
|
|
92
|
+
};
|
|
93
|
+
}, {
|
|
94
|
+
size: {
|
|
95
|
+
H1: string;
|
|
96
|
+
H2: string;
|
|
97
|
+
H3: string;
|
|
98
|
+
large: string;
|
|
99
|
+
base: string;
|
|
100
|
+
small: string;
|
|
101
|
+
overline: string;
|
|
102
|
+
};
|
|
103
|
+
weight: {
|
|
104
|
+
normal: string;
|
|
105
|
+
medium: string;
|
|
106
|
+
semibold: string;
|
|
107
|
+
};
|
|
108
|
+
}>, unknown, unknown, undefined>>;
|
|
109
|
+
export type TextProps = HTMLAttributes<HTMLSpanElement> & PropsWithChildren & VariantProps<typeof TextVariants>;
|
|
110
|
+
declare const Text: {
|
|
111
|
+
({ className, size, weight, children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
|
|
112
|
+
displayName: string;
|
|
113
|
+
};
|
|
114
|
+
export default Text;
|
|
115
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/ui/text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAM,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAsBhB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,cAAc,CAAC,eAAe,CAAC,GACrD,iBAAiB,GACjB,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC;AAEpC,QAAA,MAAM,IAAI;sDAAqD,SAAS;;CAMvE,CAAC;AAGF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export type TextareaProps = React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
3
|
+
invalid?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const Textarea: React.ForwardRefExoticComponent<React.TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
6
|
+
invalid?: boolean;
|
|
7
|
+
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
8
|
+
export default Textarea;
|
|
9
|
+
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../src/ui/textarea.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,MAAM,aAAa,GACvB,KAAK,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAE5E,QAAA,MAAM,QAAQ;cAFoD,OAAO;6CAcxE,CAAC;AAGF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
export type ToggleProps = HTMLAttributes<HTMLInputElement> & {
|
|
3
|
+
name: string;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
} & PropsWithChildren;
|
|
6
|
+
declare const Toggle: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & {
|
|
7
|
+
name: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
children?: import("react").ReactNode | undefined;
|
|
11
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export default Toggle;
|
|
13
|
+
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/ui/toggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAe/D,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC,gBAAgB,CAAC,GAAG;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,iBAAiB,CAAC;AAEtB,QAAA,MAAM,MAAM;UAJJ,MAAM;eACD,OAAO;;;oDAsBnB,CAAC;AAIF,eAAe,MAAM,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dito-uai/components",
|
|
3
|
+
"version": "5.0.0-alpha1",
|
|
4
|
+
"descriptin": "Dito's design system component library, made in TSX",
|
|
5
|
+
"repository": "git+https://github.com/ditointernet/dito-uai.git",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"module": "dist/index.mjs",
|
|
12
|
+
"types": "dist/**/*.d.ts",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"require": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.mjs"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"./global.css": "./dist/global.css"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"dev": "yarn bundle --watch",
|
|
32
|
+
"semantic-release": "semantic-release",
|
|
33
|
+
"bundle": "yarn build:js && yarn build:types & yarn build:css",
|
|
34
|
+
"build:js": "tsup",
|
|
35
|
+
"build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
|
36
|
+
"build:css": "tailwindcss -i ./src/global.css -o ./dist/global.css --minify"
|
|
37
|
+
},
|
|
38
|
+
"packageManager": "yarn@4.1.1",
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@types/react": "^18.3.3",
|
|
41
|
+
"autoprefixer": "^10.4.19",
|
|
42
|
+
"esbuild": "^0.23.0",
|
|
43
|
+
"esbuild-plugin-svgr": "^2.1.0",
|
|
44
|
+
"esbuild-plugin-tsc": "^0.4.0",
|
|
45
|
+
"esbuild-ts-paths": "^1.1.3",
|
|
46
|
+
"postcss": "^8.4.38",
|
|
47
|
+
"supports-color": "^9.4.0",
|
|
48
|
+
"tailwind-variants": "^0.2.1",
|
|
49
|
+
"tailwindcss": "^3.4.7",
|
|
50
|
+
"tsup": "^8.2.3",
|
|
51
|
+
"typescript": "^5.5.4",
|
|
52
|
+
"vite": "^5.3.5"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {
|
|
55
|
+
"@dito-uai/icons": "^1.0.5",
|
|
56
|
+
"@hookform/resolvers": "^3.9.0",
|
|
57
|
+
"@radix-ui/react-avatar": "^1.0.4",
|
|
58
|
+
"@radix-ui/react-checkbox": "^1.0.4",
|
|
59
|
+
"@radix-ui/react-dialog": "^1.0.5",
|
|
60
|
+
"@radix-ui/react-dropdown-menu": "^2.1.1",
|
|
61
|
+
"@radix-ui/react-progress": "^1.1.0",
|
|
62
|
+
"@radix-ui/react-radio-group": "^1.2.0",
|
|
63
|
+
"@radix-ui/react-slot": "^1.1.0",
|
|
64
|
+
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
65
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
66
|
+
"@tailwindcss/typography": "^0.5.13",
|
|
67
|
+
"@yarnpkg/esbuild-plugin-pnp": "^3.0.0-rc.15",
|
|
68
|
+
"class-variance-authority": "^0.7.0",
|
|
69
|
+
"clsx": "^2.1.1",
|
|
70
|
+
"lucide-react": "^0.418.0",
|
|
71
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
72
|
+
"postcss-import": "^16.1.0",
|
|
73
|
+
"postcss-nested": "^6.2.0",
|
|
74
|
+
"react": "^18.3.1",
|
|
75
|
+
"react-dom": "^18.3.1",
|
|
76
|
+
"react-hook-form": "^7.52.1",
|
|
77
|
+
"tailwind-merge": "^2.4.0",
|
|
78
|
+
"tailwindcss-animate": "^1.0.7",
|
|
79
|
+
"zod": "^3.23.8"
|
|
80
|
+
},
|
|
81
|
+
"peerDependencies": {
|
|
82
|
+
"@dito-uai/icons": "^1.0.3",
|
|
83
|
+
"lucide-react": "^0.377.0",
|
|
84
|
+
"react": "^18.3.1",
|
|
85
|
+
"react-dom": "^18.3.1",
|
|
86
|
+
"react-hook-form": "^7.52.1",
|
|
87
|
+
"zod": "^3.23.8"
|
|
88
|
+
}
|
|
89
|
+
}
|