@dito-uai/components 5.0.0-alpha1 → 5.0.0-alpha2
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/global.css +1 -1
- package/dist/index.cjs +1503 -46
- package/dist/index.d.cts +2020 -0
- package/dist/index.d.ts +2020 -19
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1465 -13
- package/dist/ui/accordion.d.ts +10 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/chips.d.ts +14 -14
- package/dist/ui/form-item.d.ts.map +1 -1
- package/dist/ui/input.d.ts +1 -1
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/scope.d.ts.map +1 -1
- package/package.json +4 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
3
|
+
declare const Accordion: React.ForwardRefExoticComponent<(Omit<AccordionPrimitive.AccordionSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<AccordionPrimitive.AccordionMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & {
|
|
6
|
+
triggerClassName?: string;
|
|
7
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
|
10
|
+
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.d.ts","sourceRoot":"","sources":["../../src/ui/accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAKhE,QAAA,MAAM,SAAS,oQAYb,CAAC;AAEH,QAAA,MAAM,aAAa,iKAYjB,CAAC;AAIH,QAAA,MAAM,gBAAgB;uBAGC,MAAM;2CAkB3B,CAAC;AAIH,QAAA,MAAM,gBAAgB,oKAWpB,CAAC;AAIH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
|
package/dist/ui/chips.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
icon: string;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
|
|
15
|
+
border: {
|
|
16
16
|
true: {
|
|
17
17
|
container: string;
|
|
18
18
|
icon: string;
|
|
@@ -42,7 +42,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
42
42
|
icon: string;
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
border: {
|
|
46
46
|
true: {
|
|
47
47
|
container: string;
|
|
48
48
|
icon: string;
|
|
@@ -69,7 +69,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
69
69
|
icon: string;
|
|
70
70
|
};
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
border: {
|
|
73
73
|
true: {
|
|
74
74
|
container: string;
|
|
75
75
|
icon: string;
|
|
@@ -96,7 +96,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
96
96
|
icon: string;
|
|
97
97
|
};
|
|
98
98
|
};
|
|
99
|
-
|
|
99
|
+
border: {
|
|
100
100
|
true: {
|
|
101
101
|
container: string;
|
|
102
102
|
icon: string;
|
|
@@ -126,7 +126,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
126
126
|
icon: string;
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
|
-
|
|
129
|
+
border: {
|
|
130
130
|
true: {
|
|
131
131
|
container: string;
|
|
132
132
|
icon: string;
|
|
@@ -156,7 +156,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
156
156
|
icon: string;
|
|
157
157
|
};
|
|
158
158
|
};
|
|
159
|
-
|
|
159
|
+
border: {
|
|
160
160
|
true: {
|
|
161
161
|
container: string;
|
|
162
162
|
icon: string;
|
|
@@ -183,7 +183,7 @@ declare const chipsVariants: import("tailwind-variants").TVReturnType<{
|
|
|
183
183
|
icon: string;
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
|
-
|
|
186
|
+
border: {
|
|
187
187
|
true: {
|
|
188
188
|
container: string;
|
|
189
189
|
icon: string;
|
|
@@ -218,7 +218,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
218
218
|
icon: string;
|
|
219
219
|
};
|
|
220
220
|
};
|
|
221
|
-
|
|
221
|
+
border: {
|
|
222
222
|
true: {
|
|
223
223
|
container: string;
|
|
224
224
|
icon: string;
|
|
@@ -248,7 +248,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
248
248
|
icon: string;
|
|
249
249
|
};
|
|
250
250
|
};
|
|
251
|
-
|
|
251
|
+
border: {
|
|
252
252
|
true: {
|
|
253
253
|
container: string;
|
|
254
254
|
icon: string;
|
|
@@ -275,7 +275,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
275
275
|
icon: string;
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
|
-
|
|
278
|
+
border: {
|
|
279
279
|
true: {
|
|
280
280
|
container: string;
|
|
281
281
|
icon: string;
|
|
@@ -302,7 +302,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
302
302
|
icon: string;
|
|
303
303
|
};
|
|
304
304
|
};
|
|
305
|
-
|
|
305
|
+
border: {
|
|
306
306
|
true: {
|
|
307
307
|
container: string;
|
|
308
308
|
icon: string;
|
|
@@ -332,7 +332,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
332
332
|
icon: string;
|
|
333
333
|
};
|
|
334
334
|
};
|
|
335
|
-
|
|
335
|
+
border: {
|
|
336
336
|
true: {
|
|
337
337
|
container: string;
|
|
338
338
|
icon: string;
|
|
@@ -362,7 +362,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
362
362
|
icon: string;
|
|
363
363
|
};
|
|
364
364
|
};
|
|
365
|
-
|
|
365
|
+
border: {
|
|
366
366
|
true: {
|
|
367
367
|
container: string;
|
|
368
368
|
icon: string;
|
|
@@ -389,7 +389,7 @@ declare const Chips: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivEleme
|
|
|
389
389
|
icon: string;
|
|
390
390
|
};
|
|
391
391
|
};
|
|
392
|
-
|
|
392
|
+
border: {
|
|
393
393
|
true: {
|
|
394
394
|
container: string;
|
|
395
395
|
icon: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["../../src/ui/form-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG9E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACtD,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,qBAAqB,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,QAAA,MAAM,QAAQ,iHAYX,QAAQ,
|
|
1
|
+
{"version":3,"file":"form-item.d.ts","sourceRoot":"","sources":["../../src/ui/form-item.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE9C,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG9E,MAAM,MAAM,QAAQ,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IACtD,KAAK,EAAE,UAAU,CAAC;IAClB,WAAW,EAAE,qBAAqB,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,QAAA,MAAM,QAAQ,iHAYX,QAAQ,4CAqBV,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/ui/input.d.ts
CHANGED
|
@@ -199,7 +199,7 @@ export type InputProps = React.InputHTMLAttributes<HTMLInputElement> & VariantPr
|
|
|
199
199
|
suffixIcon?: React.ElementType;
|
|
200
200
|
invalid?: boolean;
|
|
201
201
|
};
|
|
202
|
-
declare const Input: {
|
|
202
|
+
declare const Input: Partial<InputProps> & {
|
|
203
203
|
Label: React.JSXElementConstructor<LabelProps>;
|
|
204
204
|
Text: React.JSXElementConstructor<InputProps>;
|
|
205
205
|
Description: React.JSXElementConstructor<InputDescriptionProps>;
|
package/dist/ui/input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAyB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAe,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAqCxB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,GAClE,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC/B,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAuCJ,QAAA,MAAM,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAc,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IACb,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B,CAAC;AA+BJ,QAAA,MAAM,KAAK,EAAE;IACX,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,eAAe,CAAC,CAAC;IACxD,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC;CAIvD,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dito-uai/components",
|
|
3
|
-
"version": "5.0.0-
|
|
3
|
+
"version": "5.0.0-alpha2",
|
|
4
4
|
"descriptin": "Dito's design system component library, made in TSX",
|
|
5
5
|
"repository": "git+https://github.com/ditointernet/dito-uai.git",
|
|
6
6
|
"publishConfig": {
|
|
@@ -28,9 +28,10 @@
|
|
|
28
28
|
"./global.css": "./dist/global.css"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"dev": "yarn
|
|
31
|
+
"dev": "yarn build",
|
|
32
32
|
"semantic-release": "semantic-release",
|
|
33
33
|
"bundle": "yarn build:js && yarn build:types & yarn build:css",
|
|
34
|
+
"build": "yarn build:css & yarn build:js --watch",
|
|
34
35
|
"build:js": "tsup",
|
|
35
36
|
"build:types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
|
|
36
37
|
"build:css": "tailwindcss -i ./src/global.css -o ./dist/global.css --minify"
|
|
@@ -54,6 +55,7 @@
|
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"@dito-uai/icons": "^1.0.5",
|
|
56
57
|
"@hookform/resolvers": "^3.9.0",
|
|
58
|
+
"@radix-ui/react-accordion": "^1.2.0",
|
|
57
59
|
"@radix-ui/react-avatar": "^1.0.4",
|
|
58
60
|
"@radix-ui/react-checkbox": "^1.0.4",
|
|
59
61
|
"@radix-ui/react-dialog": "^1.0.5",
|