solid-element-ui 0.2.1 → 0.2.3
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 +28 -0
- package/dist/index.css +1 -1
- package/dist/index.js +16787 -9983
- package/dist/src/accordion/accordion.d.ts +76 -0
- package/dist/src/alert/alert.d.ts +86 -0
- package/dist/src/alert-dialog/alert-dialog.d.ts +11 -0
- package/dist/src/badge/badge.d.ts +33 -0
- package/dist/src/breadcrumbs/breadcrumbs.d.ts +14 -0
- package/dist/src/button/button.d.ts +165 -0
- package/dist/src/checkbox/checkbox.d.ts +6 -0
- package/dist/src/collapsible/collapsible.d.ts +8 -0
- package/dist/src/color-area/color-area.d.ts +5 -0
- package/dist/src/color-channel-field/color-channel-field.d.ts +6 -0
- package/dist/src/color-field/color-field.d.ts +8 -0
- package/dist/src/color-slider/color-slider.d.ts +7 -0
- package/dist/src/color-swatch/color-swatch.d.ts +5 -0
- package/dist/src/color-wheel/color-wheel.d.ts +6 -0
- package/dist/src/combobox/combobox.d.ts +11 -0
- package/dist/src/context-menu/context-menu.d.ts +15 -0
- package/dist/src/dialog/dialog.d.ts +13 -0
- package/dist/src/dropdown-menu/dropdown-menu.d.ts +16 -0
- package/dist/src/file-field/file-field.d.ts +71 -0
- package/dist/src/hover-card/hover-card.d.ts +56 -0
- package/dist/src/image/image.d.ts +78 -0
- package/dist/src/index.d.ts +43 -0
- package/dist/src/link/link.d.ts +46 -0
- package/dist/src/menubar/menubar.d.ts +10 -0
- package/dist/src/meter/meter.d.ts +72 -0
- package/dist/src/navigation-menu/navigation-menu.d.ts +12 -0
- package/dist/src/number-field/number-field.d.ts +72 -0
- package/dist/src/pagination/pagination.d.ts +5 -0
- package/dist/src/popover/popover.d.ts +7 -0
- package/dist/src/progress/progress.d.ts +128 -0
- package/dist/src/radio-group/radio-group.d.ts +69 -0
- package/dist/src/rating-group/rating-group.d.ts +1 -0
- package/dist/src/search/search.d.ts +109 -0
- package/dist/src/segmented-control/segmented-control.d.ts +83 -0
- package/dist/src/select/select.d.ts +94 -0
- package/dist/src/separator/separator.d.ts +55 -0
- package/dist/src/skeleton/skeleton.d.ts +45 -0
- package/dist/src/slider/slider.d.ts +123 -0
- package/dist/src/switch/switch.d.ts +108 -0
- package/dist/src/tabs/tabs.d.ts +17 -0
- package/dist/src/text-field/text-field.d.ts +69 -0
- package/dist/src/time-field/time-field.d.ts +1 -0
- package/dist/src/toast/toast.d.ts +91 -0
- package/dist/src/toggle-button/toggle-button.d.ts +47 -0
- package/dist/src/toggle-group/toggle-group.d.ts +91 -0
- package/dist/src/tooltip/tooltip.d.ts +53 -0
- package/package.json +35 -45
- package/dist/index.d.ts +0 -74
- package/index.tsx +0 -98
- package/readme.md +0 -9
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { SegmentedControl as KSegmented } from '@kobalte/core/segmented-control';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const segmentedStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
root: string;
|
|
8
|
+
item: string;
|
|
9
|
+
};
|
|
10
|
+
md: {
|
|
11
|
+
root: string;
|
|
12
|
+
item: string;
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
root: string;
|
|
16
|
+
item: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
root: string;
|
|
21
|
+
container: string;
|
|
22
|
+
item: string[];
|
|
23
|
+
indicator: string;
|
|
24
|
+
label: string;
|
|
25
|
+
itemLabel: string;
|
|
26
|
+
}, undefined, {
|
|
27
|
+
size: {
|
|
28
|
+
sm: {
|
|
29
|
+
root: string;
|
|
30
|
+
item: string;
|
|
31
|
+
};
|
|
32
|
+
md: {
|
|
33
|
+
root: string;
|
|
34
|
+
item: string;
|
|
35
|
+
};
|
|
36
|
+
lg: {
|
|
37
|
+
root: string;
|
|
38
|
+
item: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string;
|
|
43
|
+
container: string;
|
|
44
|
+
item: string[];
|
|
45
|
+
indicator: string;
|
|
46
|
+
label: string;
|
|
47
|
+
itemLabel: string;
|
|
48
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
49
|
+
size: {
|
|
50
|
+
sm: {
|
|
51
|
+
root: string;
|
|
52
|
+
item: string;
|
|
53
|
+
};
|
|
54
|
+
md: {
|
|
55
|
+
root: string;
|
|
56
|
+
item: string;
|
|
57
|
+
};
|
|
58
|
+
lg: {
|
|
59
|
+
root: string;
|
|
60
|
+
item: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}, {
|
|
64
|
+
root: string;
|
|
65
|
+
container: string;
|
|
66
|
+
item: string[];
|
|
67
|
+
indicator: string;
|
|
68
|
+
label: string;
|
|
69
|
+
itemLabel: string;
|
|
70
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
71
|
+
type SegmentedVariants = VariantProps<typeof segmentedStyles>;
|
|
72
|
+
interface Option {
|
|
73
|
+
label: string;
|
|
74
|
+
value: string;
|
|
75
|
+
disabled?: boolean;
|
|
76
|
+
}
|
|
77
|
+
export interface SegmentedControlProps extends Omit<ComponentProps<typeof KSegmented>, "class">, SegmentedVariants {
|
|
78
|
+
options: Option[];
|
|
79
|
+
label?: string;
|
|
80
|
+
class?: string;
|
|
81
|
+
}
|
|
82
|
+
export declare const SegmentedControl: (props: SegmentedControlProps) => import("solid-js").JSX.Element;
|
|
83
|
+
export {};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const selectStyles: import('tailwind-variants').TVReturnType<{
|
|
3
|
+
size: {
|
|
4
|
+
sm: {
|
|
5
|
+
trigger: string;
|
|
6
|
+
item: string;
|
|
7
|
+
};
|
|
8
|
+
md: {
|
|
9
|
+
trigger: string;
|
|
10
|
+
item: string;
|
|
11
|
+
};
|
|
12
|
+
lg: {
|
|
13
|
+
trigger: string;
|
|
14
|
+
item: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
root: string;
|
|
19
|
+
label: string;
|
|
20
|
+
trigger: string[];
|
|
21
|
+
content: string[];
|
|
22
|
+
listbox: string;
|
|
23
|
+
item: string[];
|
|
24
|
+
itemIndicator: string;
|
|
25
|
+
description: string;
|
|
26
|
+
}, undefined, {
|
|
27
|
+
size: {
|
|
28
|
+
sm: {
|
|
29
|
+
trigger: string;
|
|
30
|
+
item: string;
|
|
31
|
+
};
|
|
32
|
+
md: {
|
|
33
|
+
trigger: string;
|
|
34
|
+
item: string;
|
|
35
|
+
};
|
|
36
|
+
lg: {
|
|
37
|
+
trigger: string;
|
|
38
|
+
item: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}, {
|
|
42
|
+
root: string;
|
|
43
|
+
label: string;
|
|
44
|
+
trigger: string[];
|
|
45
|
+
content: string[];
|
|
46
|
+
listbox: string;
|
|
47
|
+
item: string[];
|
|
48
|
+
itemIndicator: string;
|
|
49
|
+
description: string;
|
|
50
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
51
|
+
size: {
|
|
52
|
+
sm: {
|
|
53
|
+
trigger: string;
|
|
54
|
+
item: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
trigger: string;
|
|
58
|
+
item: string;
|
|
59
|
+
};
|
|
60
|
+
lg: {
|
|
61
|
+
trigger: string;
|
|
62
|
+
item: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
}, {
|
|
66
|
+
root: string;
|
|
67
|
+
label: string;
|
|
68
|
+
trigger: string[];
|
|
69
|
+
content: string[];
|
|
70
|
+
listbox: string;
|
|
71
|
+
item: string[];
|
|
72
|
+
itemIndicator: string;
|
|
73
|
+
description: string;
|
|
74
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
75
|
+
type SelectVariants = VariantProps<typeof selectStyles>;
|
|
76
|
+
interface Option {
|
|
77
|
+
label: string;
|
|
78
|
+
value: string;
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
}
|
|
81
|
+
export interface SelectProps extends SelectVariants {
|
|
82
|
+
options: Option[];
|
|
83
|
+
value?: string;
|
|
84
|
+
defaultValue?: string;
|
|
85
|
+
onChange?: (value: string) => void;
|
|
86
|
+
label?: string;
|
|
87
|
+
description?: string;
|
|
88
|
+
placeholder?: string;
|
|
89
|
+
disabled?: boolean;
|
|
90
|
+
name?: string;
|
|
91
|
+
class?: string;
|
|
92
|
+
}
|
|
93
|
+
export declare const Select: (props: SelectProps) => import("solid-js").JSX.Element;
|
|
94
|
+
export {};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Separator as KSeparator } from '@kobalte/core/separator';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const separatorStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
orientation: {
|
|
6
|
+
horizontal: string;
|
|
7
|
+
vertical: string;
|
|
8
|
+
};
|
|
9
|
+
thickness: {
|
|
10
|
+
thin: string;
|
|
11
|
+
medium: string;
|
|
12
|
+
thick: string;
|
|
13
|
+
};
|
|
14
|
+
variant: {
|
|
15
|
+
default: string;
|
|
16
|
+
muted: string;
|
|
17
|
+
primary: string;
|
|
18
|
+
};
|
|
19
|
+
}, undefined, "bg-slate-200 dark:bg-slate-800 shrink-0 transition-colors", {
|
|
20
|
+
orientation: {
|
|
21
|
+
horizontal: string;
|
|
22
|
+
vertical: string;
|
|
23
|
+
};
|
|
24
|
+
thickness: {
|
|
25
|
+
thin: string;
|
|
26
|
+
medium: string;
|
|
27
|
+
thick: string;
|
|
28
|
+
};
|
|
29
|
+
variant: {
|
|
30
|
+
default: string;
|
|
31
|
+
muted: string;
|
|
32
|
+
primary: string;
|
|
33
|
+
};
|
|
34
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
35
|
+
orientation: {
|
|
36
|
+
horizontal: string;
|
|
37
|
+
vertical: string;
|
|
38
|
+
};
|
|
39
|
+
thickness: {
|
|
40
|
+
thin: string;
|
|
41
|
+
medium: string;
|
|
42
|
+
thick: string;
|
|
43
|
+
};
|
|
44
|
+
variant: {
|
|
45
|
+
default: string;
|
|
46
|
+
muted: string;
|
|
47
|
+
primary: string;
|
|
48
|
+
};
|
|
49
|
+
}, undefined, "bg-slate-200 dark:bg-slate-800 shrink-0 transition-colors", unknown, unknown, undefined>>;
|
|
50
|
+
type SeparatorVariants = VariantProps<typeof separatorStyles>;
|
|
51
|
+
export interface SeparatorProps extends ComponentProps<typeof KSeparator>, SeparatorVariants {
|
|
52
|
+
class?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare const Separator: (props: SeparatorProps) => import("solid-js").JSX.Element;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Skeleton as KSkeleton } from '@kobalte/core/skeleton';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const skeletonStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
rect: string;
|
|
7
|
+
circle: string;
|
|
8
|
+
text: string;
|
|
9
|
+
};
|
|
10
|
+
animation: {
|
|
11
|
+
pulse: string;
|
|
12
|
+
wave: string;
|
|
13
|
+
none: string;
|
|
14
|
+
};
|
|
15
|
+
}, undefined, "bg-slate-200 dark:bg-slate-800", {
|
|
16
|
+
variant: {
|
|
17
|
+
rect: string;
|
|
18
|
+
circle: string;
|
|
19
|
+
text: string;
|
|
20
|
+
};
|
|
21
|
+
animation: {
|
|
22
|
+
pulse: string;
|
|
23
|
+
wave: string;
|
|
24
|
+
none: string;
|
|
25
|
+
};
|
|
26
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
27
|
+
variant: {
|
|
28
|
+
rect: string;
|
|
29
|
+
circle: string;
|
|
30
|
+
text: string;
|
|
31
|
+
};
|
|
32
|
+
animation: {
|
|
33
|
+
pulse: string;
|
|
34
|
+
wave: string;
|
|
35
|
+
none: string;
|
|
36
|
+
};
|
|
37
|
+
}, undefined, "bg-slate-200 dark:bg-slate-800", unknown, unknown, undefined>>;
|
|
38
|
+
type SkeletonVariants = VariantProps<typeof skeletonStyles>;
|
|
39
|
+
export interface SkeletonProps extends Omit<ComponentProps<typeof KSkeleton>, "class" | "width" | "height">, SkeletonVariants {
|
|
40
|
+
width?: string | number;
|
|
41
|
+
height?: string | number;
|
|
42
|
+
class?: string;
|
|
43
|
+
}
|
|
44
|
+
export declare const Skeleton: (props: SkeletonProps) => import("solid-js").JSX.Element;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { Slider as KSlider } from '@kobalte/core/slider';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const sliderStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: {
|
|
7
|
+
fill: string;
|
|
8
|
+
thumb: string;
|
|
9
|
+
};
|
|
10
|
+
danger: {
|
|
11
|
+
fill: string;
|
|
12
|
+
thumb: string;
|
|
13
|
+
};
|
|
14
|
+
success: {
|
|
15
|
+
fill: string;
|
|
16
|
+
thumb: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
sm: {
|
|
21
|
+
track: string;
|
|
22
|
+
thumb: string;
|
|
23
|
+
};
|
|
24
|
+
md: {
|
|
25
|
+
track: string;
|
|
26
|
+
thumb: string;
|
|
27
|
+
};
|
|
28
|
+
lg: {
|
|
29
|
+
track: string;
|
|
30
|
+
thumb: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
}, {
|
|
34
|
+
root: string;
|
|
35
|
+
labelWrapper: string;
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
track: string;
|
|
39
|
+
fill: string;
|
|
40
|
+
thumb: string[];
|
|
41
|
+
}, undefined, {
|
|
42
|
+
variant: {
|
|
43
|
+
default: {
|
|
44
|
+
fill: string;
|
|
45
|
+
thumb: string;
|
|
46
|
+
};
|
|
47
|
+
danger: {
|
|
48
|
+
fill: string;
|
|
49
|
+
thumb: string;
|
|
50
|
+
};
|
|
51
|
+
success: {
|
|
52
|
+
fill: string;
|
|
53
|
+
thumb: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
size: {
|
|
57
|
+
sm: {
|
|
58
|
+
track: string;
|
|
59
|
+
thumb: string;
|
|
60
|
+
};
|
|
61
|
+
md: {
|
|
62
|
+
track: string;
|
|
63
|
+
thumb: string;
|
|
64
|
+
};
|
|
65
|
+
lg: {
|
|
66
|
+
track: string;
|
|
67
|
+
thumb: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
}, {
|
|
71
|
+
root: string;
|
|
72
|
+
labelWrapper: string;
|
|
73
|
+
label: string;
|
|
74
|
+
value: string;
|
|
75
|
+
track: string;
|
|
76
|
+
fill: string;
|
|
77
|
+
thumb: string[];
|
|
78
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
79
|
+
variant: {
|
|
80
|
+
default: {
|
|
81
|
+
fill: string;
|
|
82
|
+
thumb: string;
|
|
83
|
+
};
|
|
84
|
+
danger: {
|
|
85
|
+
fill: string;
|
|
86
|
+
thumb: string;
|
|
87
|
+
};
|
|
88
|
+
success: {
|
|
89
|
+
fill: string;
|
|
90
|
+
thumb: string;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
size: {
|
|
94
|
+
sm: {
|
|
95
|
+
track: string;
|
|
96
|
+
thumb: string;
|
|
97
|
+
};
|
|
98
|
+
md: {
|
|
99
|
+
track: string;
|
|
100
|
+
thumb: string;
|
|
101
|
+
};
|
|
102
|
+
lg: {
|
|
103
|
+
track: string;
|
|
104
|
+
thumb: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
}, {
|
|
108
|
+
root: string;
|
|
109
|
+
labelWrapper: string;
|
|
110
|
+
label: string;
|
|
111
|
+
value: string;
|
|
112
|
+
track: string;
|
|
113
|
+
fill: string;
|
|
114
|
+
thumb: string[];
|
|
115
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
116
|
+
type SliderVariants = VariantProps<typeof sliderStyles>;
|
|
117
|
+
export interface SliderProps extends Omit<ComponentProps<typeof KSlider>, "class">, SliderVariants {
|
|
118
|
+
label?: string;
|
|
119
|
+
showValue?: boolean;
|
|
120
|
+
class?: string;
|
|
121
|
+
}
|
|
122
|
+
export declare const Slider: (props: SliderProps) => import("solid-js").JSX.Element;
|
|
123
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { Switch as KSwitch } from '@kobalte/core/switch';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const switchStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
control: string;
|
|
8
|
+
thumb: string;
|
|
9
|
+
};
|
|
10
|
+
md: {
|
|
11
|
+
control: string;
|
|
12
|
+
thumb: string;
|
|
13
|
+
};
|
|
14
|
+
lg: {
|
|
15
|
+
control: string;
|
|
16
|
+
thumb: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
variant: {
|
|
20
|
+
primary: {
|
|
21
|
+
control: string;
|
|
22
|
+
};
|
|
23
|
+
success: {
|
|
24
|
+
control: string;
|
|
25
|
+
};
|
|
26
|
+
danger: {
|
|
27
|
+
control: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
root: string;
|
|
32
|
+
control: string[];
|
|
33
|
+
thumb: string[];
|
|
34
|
+
label: string;
|
|
35
|
+
description: string;
|
|
36
|
+
}, undefined, {
|
|
37
|
+
size: {
|
|
38
|
+
sm: {
|
|
39
|
+
control: string;
|
|
40
|
+
thumb: string;
|
|
41
|
+
};
|
|
42
|
+
md: {
|
|
43
|
+
control: string;
|
|
44
|
+
thumb: string;
|
|
45
|
+
};
|
|
46
|
+
lg: {
|
|
47
|
+
control: string;
|
|
48
|
+
thumb: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
variant: {
|
|
52
|
+
primary: {
|
|
53
|
+
control: string;
|
|
54
|
+
};
|
|
55
|
+
success: {
|
|
56
|
+
control: string;
|
|
57
|
+
};
|
|
58
|
+
danger: {
|
|
59
|
+
control: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
root: string;
|
|
64
|
+
control: string[];
|
|
65
|
+
thumb: string[];
|
|
66
|
+
label: string;
|
|
67
|
+
description: string;
|
|
68
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
69
|
+
size: {
|
|
70
|
+
sm: {
|
|
71
|
+
control: string;
|
|
72
|
+
thumb: string;
|
|
73
|
+
};
|
|
74
|
+
md: {
|
|
75
|
+
control: string;
|
|
76
|
+
thumb: string;
|
|
77
|
+
};
|
|
78
|
+
lg: {
|
|
79
|
+
control: string;
|
|
80
|
+
thumb: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
variant: {
|
|
84
|
+
primary: {
|
|
85
|
+
control: string;
|
|
86
|
+
};
|
|
87
|
+
success: {
|
|
88
|
+
control: string;
|
|
89
|
+
};
|
|
90
|
+
danger: {
|
|
91
|
+
control: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}, {
|
|
95
|
+
root: string;
|
|
96
|
+
control: string[];
|
|
97
|
+
thumb: string[];
|
|
98
|
+
label: string;
|
|
99
|
+
description: string;
|
|
100
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
101
|
+
type SwitchVariants = VariantProps<typeof switchStyles>;
|
|
102
|
+
export interface SwitchProps extends Omit<ComponentProps<typeof KSwitch>, "class">, SwitchVariants {
|
|
103
|
+
label?: string;
|
|
104
|
+
description?: string;
|
|
105
|
+
class?: string;
|
|
106
|
+
}
|
|
107
|
+
export declare const Switch: (props: SwitchProps) => import("solid-js").JSX.Element;
|
|
108
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
export type TabItem = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string | JSX.Element;
|
|
5
|
+
content: JSX.Element;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
interface TabsProps {
|
|
9
|
+
items: TabItem[];
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
value?: string;
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
orientation?: "horizontal" | "vertical";
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const Tabs: (props: TabsProps) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { TextField as KTextField } from '@kobalte/core/text-field';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const textFieldStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
input: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
input: string;
|
|
11
|
+
};
|
|
12
|
+
lg: {
|
|
13
|
+
input: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
root: string;
|
|
18
|
+
label: string;
|
|
19
|
+
input: string[];
|
|
20
|
+
description: string;
|
|
21
|
+
errorMessage: string;
|
|
22
|
+
}, undefined, {
|
|
23
|
+
size: {
|
|
24
|
+
sm: {
|
|
25
|
+
input: string;
|
|
26
|
+
};
|
|
27
|
+
md: {
|
|
28
|
+
input: string;
|
|
29
|
+
};
|
|
30
|
+
lg: {
|
|
31
|
+
input: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
}, {
|
|
35
|
+
root: string;
|
|
36
|
+
label: string;
|
|
37
|
+
input: string[];
|
|
38
|
+
description: string;
|
|
39
|
+
errorMessage: string;
|
|
40
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
41
|
+
size: {
|
|
42
|
+
sm: {
|
|
43
|
+
input: string;
|
|
44
|
+
};
|
|
45
|
+
md: {
|
|
46
|
+
input: string;
|
|
47
|
+
};
|
|
48
|
+
lg: {
|
|
49
|
+
input: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}, {
|
|
53
|
+
root: string;
|
|
54
|
+
label: string;
|
|
55
|
+
input: string[];
|
|
56
|
+
description: string;
|
|
57
|
+
errorMessage: string;
|
|
58
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
59
|
+
type TextFieldVariants = VariantProps<typeof textFieldStyles>;
|
|
60
|
+
export interface TextFieldProps extends Omit<ComponentProps<typeof KTextField>, "class">, TextFieldVariants {
|
|
61
|
+
label?: string;
|
|
62
|
+
description?: string;
|
|
63
|
+
errorMessage?: string;
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
type?: string;
|
|
66
|
+
class?: string;
|
|
67
|
+
}
|
|
68
|
+
export declare const TextField: (props: TextFieldProps) => import("solid-js").JSX.Element;
|
|
69
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { Toast as KToast } from '@kobalte/core/toast';
|
|
2
|
+
import { ComponentProps, ParentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const toastStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
info: {
|
|
7
|
+
root: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
};
|
|
10
|
+
success: {
|
|
11
|
+
root: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
};
|
|
14
|
+
warning: {
|
|
15
|
+
root: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
};
|
|
18
|
+
error: {
|
|
19
|
+
root: string;
|
|
20
|
+
icon: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
root: string[];
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
closeButton: string[];
|
|
28
|
+
content: string;
|
|
29
|
+
icon: string;
|
|
30
|
+
}, undefined, {
|
|
31
|
+
variant: {
|
|
32
|
+
info: {
|
|
33
|
+
root: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
};
|
|
36
|
+
success: {
|
|
37
|
+
root: string;
|
|
38
|
+
icon: string;
|
|
39
|
+
};
|
|
40
|
+
warning: {
|
|
41
|
+
root: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
};
|
|
44
|
+
error: {
|
|
45
|
+
root: string;
|
|
46
|
+
icon: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
root: string[];
|
|
51
|
+
title: string;
|
|
52
|
+
description: string;
|
|
53
|
+
closeButton: string[];
|
|
54
|
+
content: string;
|
|
55
|
+
icon: string;
|
|
56
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
57
|
+
variant: {
|
|
58
|
+
info: {
|
|
59
|
+
root: string;
|
|
60
|
+
icon: string;
|
|
61
|
+
};
|
|
62
|
+
success: {
|
|
63
|
+
root: string;
|
|
64
|
+
icon: string;
|
|
65
|
+
};
|
|
66
|
+
warning: {
|
|
67
|
+
root: string;
|
|
68
|
+
icon: string;
|
|
69
|
+
};
|
|
70
|
+
error: {
|
|
71
|
+
root: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
root: string[];
|
|
77
|
+
title: string;
|
|
78
|
+
description: string;
|
|
79
|
+
closeButton: string[];
|
|
80
|
+
content: string;
|
|
81
|
+
icon: string;
|
|
82
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
83
|
+
type ToastVariants = VariantProps<typeof toastStyles>;
|
|
84
|
+
export interface ToastProps extends Omit<ComponentProps<typeof KToast>, "class">, ToastVariants {
|
|
85
|
+
title?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
class?: string;
|
|
88
|
+
}
|
|
89
|
+
export declare const ToastProvider: (props: ParentProps) => import("solid-js").JSX.Element;
|
|
90
|
+
export declare const showToast: (props: Omit<ToastProps, "toastId">) => number;
|
|
91
|
+
export {};
|