@dito-uai/components 5.1.0-alpha.5 → 5.1.0-alpha.50
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 +78 -42
- package/dist/index.d.cts +1131 -857
- package/dist/index.d.ts +60 -2240
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -14
- package/dist/ui/alert.d.ts +22 -32
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +4 -124
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/badge.d.ts +4 -148
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/button.d.ts +166 -316
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/card.d.ts +2 -66
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts +2 -0
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/chips.d.ts +24 -280
- package/dist/ui/chips.d.ts.map +1 -1
- package/dist/ui/collapsible.d.ts +5 -0
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +131 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/indicator.d.ts +15 -15
- package/dist/ui/indicator.d.ts.map +1 -1
- package/dist/ui/input-description.d.ts +2 -26
- package/dist/ui/input-description.d.ts.map +1 -1
- package/dist/ui/input.d.ts +129 -255
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/internal/dropdown-content.d.ts.map +1 -1
- package/dist/ui/label.d.ts +2 -18
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/loading.d.ts +9 -0
- package/dist/ui/loading.d.ts.map +1 -0
- package/dist/ui/message.d.ts +56 -0
- package/dist/ui/message.d.ts.map +1 -0
- package/dist/ui/popover.d.ts +7 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/progress-bar.d.ts +1 -1
- package/dist/ui/progress-bar.d.ts.map +1 -1
- package/dist/ui/progress.d.ts +9 -27
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/radio.d.ts +98 -4
- package/dist/ui/radio.d.ts.map +1 -1
- package/dist/ui/scope.d.ts +4 -108
- package/dist/ui/scope.d.ts.map +1 -1
- package/dist/ui/search.d.ts +60 -124
- package/dist/ui/search.d.ts.map +1 -1
- package/dist/ui/sheets.d.ts +2 -2
- package/dist/ui/sheets.d.ts.map +1 -1
- package/dist/ui/skeleton.d.ts +42 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/status.d.ts +5 -37
- package/dist/ui/status.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/tabs.d.ts +4 -5
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/text.d.ts +3 -63
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/tip-card.d.ts +77 -0
- package/dist/ui/tip-card.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 +48 -12
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/tooltip.d.ts +10 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/package.json +99 -40
- package/tailwind-preset.ts +275 -0
- package/tailwind.config.ts +12 -262
- package/dist/ui/form-item.d.ts +0 -16
- package/dist/ui/form-item.d.ts.map +0 -1
- package/dist/ui/form.d.ts +0 -1
- package/dist/ui/form.d.ts.map +0 -1
package/dist/ui/label.d.ts
CHANGED
|
@@ -5,15 +5,7 @@ declare const labelVariants: import("tailwind-variants").TVReturnType<{
|
|
|
5
5
|
invalid: {
|
|
6
6
|
true: string;
|
|
7
7
|
};
|
|
8
|
-
}, undefined, "text-navy-600 text-base font-medium",
|
|
9
|
-
invalid: {
|
|
10
|
-
true: string;
|
|
11
|
-
};
|
|
12
|
-
}, {
|
|
13
|
-
invalid: {
|
|
14
|
-
true: string;
|
|
15
|
-
};
|
|
16
|
-
}>, {
|
|
8
|
+
}, undefined, "text-navy-600 text-base font-medium", {
|
|
17
9
|
invalid: {
|
|
18
10
|
true: string;
|
|
19
11
|
};
|
|
@@ -21,15 +13,7 @@ declare const labelVariants: import("tailwind-variants").TVReturnType<{
|
|
|
21
13
|
invalid: {
|
|
22
14
|
true: string;
|
|
23
15
|
};
|
|
24
|
-
}, undefined, "text-navy-600 text-base font-medium",
|
|
25
|
-
invalid: {
|
|
26
|
-
true: string;
|
|
27
|
-
};
|
|
28
|
-
}, {
|
|
29
|
-
invalid: {
|
|
30
|
-
true: string;
|
|
31
|
-
};
|
|
32
|
-
}>, unknown, unknown, undefined>>;
|
|
16
|
+
}, undefined, "text-navy-600 text-base font-medium", unknown, unknown, undefined>>;
|
|
33
17
|
export type LabelProps = HTMLAttributes<HTMLSpanElement> & VariantProps<typeof labelVariants> & {
|
|
34
18
|
text?: string;
|
|
35
19
|
suffix?: React.ElementType;
|
package/dist/ui/label.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAM,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/ui/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAM,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,QAAA,MAAM,aAAa;;;;;;;;;;;;kFAOjB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,eAAe,CAAC,GACtD,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEJ,QAAA,MAAM,KAAK;sEAOR,UAAU;;CAUZ,CAAC;AAIF,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type LoadingProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
size?: 'TINY' | 'SMALL' | 'NORMAL' | 'LARGE' | 'HUGE';
|
|
4
|
+
color?: 'WHITE' | 'RED' | 'BLUE' | 'GREEN' | 'GRAY' | 'INDIGO' | 'TRANSPARENT';
|
|
5
|
+
fill?: 'WHITE' | 'RED' | 'BLUE' | 'GREEN' | 'GRAY' | 'INDIGO' | 'TRANSPARENT';
|
|
6
|
+
};
|
|
7
|
+
declare const Loading: ({ className, size, color, fill, }: LoadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Loading;
|
|
9
|
+
//# sourceMappingURL=loading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading.d.ts","sourceRoot":"","sources":["../../src/ui/loading.tsx"],"names":[],"mappings":"AA4CA,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IACtD,KAAK,CAAC,EACF,OAAO,GACP,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,QAAQ,GACR,aAAa,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,CAAC;CAC/E,CAAC;AAEF,QAAA,MAAM,OAAO,sCAKV,YAAY,4CA4Bd,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ToastContainerProps, ToastOptions } from 'react-toastify';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import 'react-toastify/dist/ReactToastify.min.css';
|
|
4
|
+
export declare enum MessageType {
|
|
5
|
+
SUCCESS = "success",
|
|
6
|
+
INFO = "info",
|
|
7
|
+
WARNING = "warning",
|
|
8
|
+
DANGER = "error",
|
|
9
|
+
LOADING = "loading"
|
|
10
|
+
}
|
|
11
|
+
declare const messageVariants: import("tailwind-variants").TVReturnType<{
|
|
12
|
+
type: {
|
|
13
|
+
success: string;
|
|
14
|
+
error: string;
|
|
15
|
+
warning: string;
|
|
16
|
+
info: string;
|
|
17
|
+
loading: string;
|
|
18
|
+
};
|
|
19
|
+
}, undefined, "!rounded-m !flex !min-h-5 !w-fit !items-center !gap-1 !p-0 !font-sans !text-base !font-medium", {
|
|
20
|
+
type: {
|
|
21
|
+
success: string;
|
|
22
|
+
error: string;
|
|
23
|
+
warning: string;
|
|
24
|
+
info: string;
|
|
25
|
+
loading: string;
|
|
26
|
+
};
|
|
27
|
+
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
28
|
+
type: {
|
|
29
|
+
success: string;
|
|
30
|
+
error: string;
|
|
31
|
+
warning: string;
|
|
32
|
+
info: string;
|
|
33
|
+
loading: string;
|
|
34
|
+
};
|
|
35
|
+
}, undefined, "!rounded-m !flex !min-h-5 !w-fit !items-center !gap-1 !p-0 !font-sans !text-base !font-medium", unknown, unknown, undefined>>;
|
|
36
|
+
export type MessageProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof messageVariants> & {
|
|
37
|
+
text: string | React.ReactNode;
|
|
38
|
+
closable?: boolean;
|
|
39
|
+
duration?: number | false;
|
|
40
|
+
key?: string;
|
|
41
|
+
containerId?: string;
|
|
42
|
+
onClick?: () => void;
|
|
43
|
+
onClose?: () => void;
|
|
44
|
+
} & Omit<ToastOptions, 'type'>;
|
|
45
|
+
declare const Message: {
|
|
46
|
+
success: (text: MessageProps["text"], duration?: MessageProps["duration"]) => import("react-toastify").Id;
|
|
47
|
+
error: (text: MessageProps["text"], duration?: MessageProps["duration"]) => import("react-toastify").Id;
|
|
48
|
+
info: (text: MessageProps["text"], duration?: MessageProps["duration"]) => import("react-toastify").Id;
|
|
49
|
+
warning: (text: MessageProps["text"], duration?: MessageProps["duration"]) => import("react-toastify").Id;
|
|
50
|
+
loading: (text: MessageProps["text"], duration?: MessageProps["duration"]) => import("react-toastify").Id;
|
|
51
|
+
dismiss: (id?: import("react-toastify").Id | undefined) => void;
|
|
52
|
+
open: ({ type, text, closable, duration, containerId, onClose, onClick, ...rest }: MessageProps) => import("react-toastify").Id;
|
|
53
|
+
};
|
|
54
|
+
export declare const MessageContainer: (props: ToastContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
55
|
+
export default Message;
|
|
56
|
+
//# sourceMappingURL=message.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/ui/message.tsx"],"names":[],"mappings":"AAQA,OAAO,EAEL,mBAAmB,EACnB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAErD,OAAO,2CAA2C,CAAC;AAEnD,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,MAAM,UAAU;IAChB,OAAO,YAAY;CACpB;AAED,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;4IAgBnB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC7D,YAAY,CAAC,OAAO,eAAe,CAAC,GAAG;IACrC,IAAI,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC1B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC;AAiDjC,QAAA,MAAM,OAAO;oBAEK,YAAY,CAAC,MAAM,CAAC,aAAa,YAAY,CAAC,UAAU,CAAC;kBAG3D,YAAY,CAAC,MAAM,CAAC,aAAa,YAAY,CAAC,UAAU,CAAC;iBAG1D,YAAY,CAAC,MAAM,CAAC,aAAa,YAAY,CAAC,UAAU,CAAC;oBAGtD,YAAY,CAAC,MAAM,CAAC,aAAa,YAAY,CAAC,UAAU,CAAC;oBAGzD,YAAY,CAAC,MAAM,CAAC,aAAa,YAAY,CAAC,UAAU,CAAC;;uFA5CtE,YAAY;CAgDhB,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,mBAAmB,4CAiB1D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
4
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
5
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export { Popover, PopoverTrigger, PopoverContent };
|
|
7
|
+
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/ui/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAG5D,QAAA,MAAM,OAAO,yCAAwB,CAAC;AAEtC,QAAA,MAAM,cAAc,gHAA2B,CAAC;AAEhD,QAAA,MAAM,cAAc,gKAgBlB,CAAC;AAGH,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../../src/ui/progress-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,
|
|
1
|
+
{"version":3,"file":"progress-bar.d.ts","sourceRoot":"","sources":["../../src/ui/progress-bar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CA2B3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/ui/progress.d.ts
CHANGED
|
@@ -5,17 +5,7 @@ declare const progressVariants: import("tailwind-variants").TVReturnType<{
|
|
|
5
5
|
indigo: string;
|
|
6
6
|
white: string;
|
|
7
7
|
};
|
|
8
|
-
}, undefined, "text-midnight-blue-600",
|
|
9
|
-
bg: {
|
|
10
|
-
indigo: string;
|
|
11
|
-
white: string;
|
|
12
|
-
};
|
|
13
|
-
}, {
|
|
14
|
-
bg: {
|
|
15
|
-
indigo: string;
|
|
16
|
-
white: string;
|
|
17
|
-
};
|
|
18
|
-
}>, {
|
|
8
|
+
}, undefined, "text-midnight-blue-600", {
|
|
19
9
|
bg: {
|
|
20
10
|
indigo: string;
|
|
21
11
|
white: string;
|
|
@@ -25,31 +15,23 @@ declare const progressVariants: import("tailwind-variants").TVReturnType<{
|
|
|
25
15
|
indigo: string;
|
|
26
16
|
white: string;
|
|
27
17
|
};
|
|
28
|
-
}, undefined, "text-midnight-blue-600",
|
|
29
|
-
bg: {
|
|
30
|
-
indigo: string;
|
|
31
|
-
white: string;
|
|
32
|
-
};
|
|
33
|
-
}, {
|
|
34
|
-
bg: {
|
|
35
|
-
indigo: string;
|
|
36
|
-
white: string;
|
|
37
|
-
};
|
|
38
|
-
}>, unknown, unknown, undefined>>;
|
|
18
|
+
}, undefined, "text-midnight-blue-600", unknown, unknown, undefined>>;
|
|
39
19
|
type CommonProps = {
|
|
40
20
|
value: number;
|
|
41
21
|
};
|
|
42
|
-
type
|
|
43
|
-
|
|
22
|
+
export type ProgressIndicatorProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & Omit<CommonProps, 'value'> & {
|
|
23
|
+
progressBar?: number;
|
|
24
|
+
value: string | number;
|
|
25
|
+
usePercentageSymbol?: boolean;
|
|
44
26
|
};
|
|
45
|
-
type CircleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
27
|
+
export type CircleProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
46
28
|
Icon?: React.ElementType;
|
|
47
29
|
};
|
|
48
|
-
type ExpandedProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
30
|
+
export type ExpandedProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof progressVariants> & CommonProps & {
|
|
49
31
|
text: React.ReactNode | string;
|
|
50
32
|
};
|
|
51
33
|
declare const Progress: {
|
|
52
|
-
Indicator: React.ForwardRefExoticComponent<
|
|
34
|
+
Indicator: React.ForwardRefExoticComponent<ProgressIndicatorProps>;
|
|
53
35
|
Circle: React.ForwardRefExoticComponent<CircleProps>;
|
|
54
36
|
Expanded: React.ForwardRefExoticComponent<ExpandedProps>;
|
|
55
37
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOrD,QAAA,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/ui/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAOrD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;qEAQpB,CAAC;AAEH,KAAK,WAAW,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GACvE,YAAY,CAAC,OAAO,gBAAgB,CAAC,GACrC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,GAAG;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AA8BJ,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC5D,YAAY,CAAC,OAAO,gBAAgB,CAAC,GACrC,WAAW,GAAG;IACZ,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CAC1B,CAAC;AAyCJ,MAAM,MAAM,aAAa,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAC9D,YAAY,CAAC,OAAO,gBAAgB,CAAC,GACrC,WAAW,GAAG;IACZ,IAAI,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;CAChC,CAAC;AA4BJ,QAAA,MAAM,QAAQ,EAAE;IACd,SAAS,EAAE,KAAK,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,CAAC;IACnE,MAAM,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;CAK1D,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/dist/ui/radio.d.ts
CHANGED
|
@@ -1,10 +1,104 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
import { ChipsProps } from './chips';
|
|
5
|
+
export type RadioGroupProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Root>;
|
|
6
|
+
export type RadioItemProps = React.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
|
|
7
|
+
declare const radioCard: import("tailwind-variants").TVReturnType<{
|
|
8
|
+
size: {
|
|
9
|
+
md: {
|
|
10
|
+
root: string;
|
|
11
|
+
prefix: string;
|
|
12
|
+
};
|
|
13
|
+
sm: {
|
|
14
|
+
root: string;
|
|
15
|
+
prefix: string;
|
|
16
|
+
description: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
disabled: {
|
|
20
|
+
true: {
|
|
21
|
+
root: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
icon: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
root: string;
|
|
29
|
+
prefix: string;
|
|
30
|
+
icon: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
}, undefined, {
|
|
34
|
+
size: {
|
|
35
|
+
md: {
|
|
36
|
+
root: string;
|
|
37
|
+
prefix: string;
|
|
38
|
+
};
|
|
39
|
+
sm: {
|
|
40
|
+
root: string;
|
|
41
|
+
prefix: string;
|
|
42
|
+
description: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
disabled: {
|
|
46
|
+
true: {
|
|
47
|
+
root: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
}, {
|
|
54
|
+
root: string;
|
|
55
|
+
prefix: string;
|
|
56
|
+
icon: string;
|
|
57
|
+
title: string;
|
|
58
|
+
description: string;
|
|
59
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
60
|
+
size: {
|
|
61
|
+
md: {
|
|
62
|
+
root: string;
|
|
63
|
+
prefix: string;
|
|
64
|
+
};
|
|
65
|
+
sm: {
|
|
66
|
+
root: string;
|
|
67
|
+
prefix: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
disabled: {
|
|
72
|
+
true: {
|
|
73
|
+
root: string;
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
icon: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
root: string;
|
|
81
|
+
prefix: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
title: string;
|
|
84
|
+
description: string;
|
|
85
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
86
|
+
type RadioCardVariants = VariantProps<typeof radioCard>;
|
|
87
|
+
export type RadioCardProps = Omit<RadioItemProps, 'title'> & RadioCardVariants & {
|
|
88
|
+
title: React.ReactNode;
|
|
89
|
+
description?: React.ReactNode;
|
|
90
|
+
icon?: React.ElementType;
|
|
91
|
+
chipsProps?: Omit<ChipsProps, 'size'>;
|
|
92
|
+
};
|
|
5
93
|
declare const Radio: {
|
|
6
|
-
Group: React.ForwardRefExoticComponent<
|
|
7
|
-
Item: React.ForwardRefExoticComponent<
|
|
94
|
+
Group: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
+
Item: React.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
96
|
+
Card: React.ForwardRefExoticComponent<Omit<Omit<RadioGroupPrimitive.RadioGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref">, "title"> & RadioCardVariants & {
|
|
97
|
+
title: React.ReactNode;
|
|
98
|
+
description?: React.ReactNode;
|
|
99
|
+
icon?: React.ElementType;
|
|
100
|
+
chipsProps?: Omit<ChipsProps, "size">;
|
|
101
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
8
102
|
};
|
|
9
103
|
export default Radio;
|
|
10
104
|
//# sourceMappingURL=radio.d.ts.map
|
package/dist/ui/radio.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../src/ui/radio.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,mBAAmB,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAGrD,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,wBAAwB,CAC1D,OAAO,mBAAmB,CAAC,IAAI,CAChC,CAAC;AAiBF,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,wBAAwB,CACzD,OAAO,mBAAmB,CAAC,IAAI,CAChC,CAAC;AAqBF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAuDb,CAAC;AAEH,KAAK,iBAAiB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GACxD,iBAAiB,GAAG;IAClB,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;CACvC,CAAC;AA6EJ,QAAA,MAAM,KAAK;;;;eAjFA,KAAK,CAAC,SAAS;sBACR,KAAK,CAAC,SAAS;eACtB,KAAK,CAAC,WAAW;qBACX,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC;;CAkFxC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/dist/ui/scope.d.ts
CHANGED
|
@@ -31,59 +31,7 @@ declare const scopeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
31
31
|
container: string;
|
|
32
32
|
icon: string;
|
|
33
33
|
text: string;
|
|
34
|
-
}, undefined,
|
|
35
|
-
variant: {
|
|
36
|
-
default: string;
|
|
37
|
-
light: string;
|
|
38
|
-
green: string;
|
|
39
|
-
red: string;
|
|
40
|
-
};
|
|
41
|
-
size: {
|
|
42
|
-
default: {
|
|
43
|
-
container: string;
|
|
44
|
-
};
|
|
45
|
-
small: {
|
|
46
|
-
container: string;
|
|
47
|
-
text: string;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
disabled: {
|
|
51
|
-
true: {
|
|
52
|
-
container: string;
|
|
53
|
-
icon: string;
|
|
54
|
-
};
|
|
55
|
-
false: {
|
|
56
|
-
container: string;
|
|
57
|
-
icon: string;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
}, {
|
|
61
|
-
variant: {
|
|
62
|
-
default: string;
|
|
63
|
-
light: string;
|
|
64
|
-
green: string;
|
|
65
|
-
red: string;
|
|
66
|
-
};
|
|
67
|
-
size: {
|
|
68
|
-
default: {
|
|
69
|
-
container: string;
|
|
70
|
-
};
|
|
71
|
-
small: {
|
|
72
|
-
container: string;
|
|
73
|
-
text: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
disabled: {
|
|
77
|
-
true: {
|
|
78
|
-
container: string;
|
|
79
|
-
icon: string;
|
|
80
|
-
};
|
|
81
|
-
false: {
|
|
82
|
-
container: string;
|
|
83
|
-
icon: string;
|
|
84
|
-
};
|
|
85
|
-
};
|
|
86
|
-
}>, {
|
|
34
|
+
}, undefined, {
|
|
87
35
|
variant: {
|
|
88
36
|
default: string;
|
|
89
37
|
light: string;
|
|
@@ -143,61 +91,9 @@ declare const scopeVariants: import("tailwind-variants").TVReturnType<{
|
|
|
143
91
|
container: string;
|
|
144
92
|
icon: string;
|
|
145
93
|
text: string;
|
|
146
|
-
}, undefined,
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
light: string;
|
|
150
|
-
green: string;
|
|
151
|
-
red: string;
|
|
152
|
-
};
|
|
153
|
-
size: {
|
|
154
|
-
default: {
|
|
155
|
-
container: string;
|
|
156
|
-
};
|
|
157
|
-
small: {
|
|
158
|
-
container: string;
|
|
159
|
-
text: string;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
disabled: {
|
|
163
|
-
true: {
|
|
164
|
-
container: string;
|
|
165
|
-
icon: string;
|
|
166
|
-
};
|
|
167
|
-
false: {
|
|
168
|
-
container: string;
|
|
169
|
-
icon: string;
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
}, {
|
|
173
|
-
variant: {
|
|
174
|
-
default: string;
|
|
175
|
-
light: string;
|
|
176
|
-
green: string;
|
|
177
|
-
red: string;
|
|
178
|
-
};
|
|
179
|
-
size: {
|
|
180
|
-
default: {
|
|
181
|
-
container: string;
|
|
182
|
-
};
|
|
183
|
-
small: {
|
|
184
|
-
container: string;
|
|
185
|
-
text: string;
|
|
186
|
-
};
|
|
187
|
-
};
|
|
188
|
-
disabled: {
|
|
189
|
-
true: {
|
|
190
|
-
container: string;
|
|
191
|
-
icon: string;
|
|
192
|
-
};
|
|
193
|
-
false: {
|
|
194
|
-
container: string;
|
|
195
|
-
icon: string;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
}>, unknown, unknown, undefined>>;
|
|
199
|
-
type ScopeGroupProps = Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'> & VariantProps<typeof scopeVariants>;
|
|
200
|
-
type ScopeItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof scopeVariants> & {
|
|
94
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
95
|
+
export type ScopeGroupProps = Omit<React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Root>, 'type'> & VariantProps<typeof scopeVariants>;
|
|
96
|
+
export type ScopeItemProps = React.ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof scopeVariants> & {
|
|
201
97
|
text: string;
|
|
202
98
|
icon?: React.ElementType;
|
|
203
99
|
};
|
package/dist/ui/scope.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/ui/scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"scope.d.ts","sourceRoot":"","sources":["../../src/ui/scope.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAM7D,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAkFjB,CAAC;AAUH,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,KAAK,CAAC,wBAAwB,CAAC,OAAO,oBAAoB,CAAC,IAAI,CAAC,EAChE,MAAM,CACP,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AA0BrC,MAAM,MAAM,cAAc,GAAG,KAAK,CAAC,wBAAwB,CACzD,OAAO,oBAAoB,CAAC,IAAI,CACjC,GACC,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IACnC,IAAI,EAAE,MAAM,CAAC;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"}
|