solid-element-ui 0.2.1 → 0.2.2
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 +16703 -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 +31 -43
- package/dist/index.d.ts +0 -74
- package/index.tsx +0 -98
- package/readme.md +0 -9
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { Image as KImage } from '@kobalte/core/image';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const imageStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
radius: {
|
|
6
|
+
none: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
sm: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
md: {
|
|
13
|
+
root: string;
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
root: string;
|
|
17
|
+
};
|
|
18
|
+
full: {
|
|
19
|
+
root: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
root: string;
|
|
24
|
+
img: string;
|
|
25
|
+
fallback: string;
|
|
26
|
+
}, undefined, {
|
|
27
|
+
radius: {
|
|
28
|
+
none: {
|
|
29
|
+
root: string;
|
|
30
|
+
};
|
|
31
|
+
sm: {
|
|
32
|
+
root: string;
|
|
33
|
+
};
|
|
34
|
+
md: {
|
|
35
|
+
root: string;
|
|
36
|
+
};
|
|
37
|
+
lg: {
|
|
38
|
+
root: string;
|
|
39
|
+
};
|
|
40
|
+
full: {
|
|
41
|
+
root: string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
}, {
|
|
45
|
+
root: string;
|
|
46
|
+
img: string;
|
|
47
|
+
fallback: string;
|
|
48
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
49
|
+
radius: {
|
|
50
|
+
none: {
|
|
51
|
+
root: string;
|
|
52
|
+
};
|
|
53
|
+
sm: {
|
|
54
|
+
root: string;
|
|
55
|
+
};
|
|
56
|
+
md: {
|
|
57
|
+
root: string;
|
|
58
|
+
};
|
|
59
|
+
lg: {
|
|
60
|
+
root: string;
|
|
61
|
+
};
|
|
62
|
+
full: {
|
|
63
|
+
root: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
}, {
|
|
67
|
+
root: string;
|
|
68
|
+
img: string;
|
|
69
|
+
fallback: string;
|
|
70
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
71
|
+
type ImageVariants = VariantProps<typeof imageStyles>;
|
|
72
|
+
export interface ImageProps extends ComponentProps<typeof KImage>, ImageVariants {
|
|
73
|
+
src?: string;
|
|
74
|
+
alt?: string;
|
|
75
|
+
fallback?: string | Array<any> | any;
|
|
76
|
+
}
|
|
77
|
+
export declare const Image: (props: ImageProps) => import("solid-js").JSX.Element;
|
|
78
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export { Accordion } from './accordion/accordion';
|
|
2
|
+
export { Alert } from './alert/alert';
|
|
3
|
+
export { AlertDialog } from './alert-dialog/alert-dialog';
|
|
4
|
+
export { Badge } from './badge/badge';
|
|
5
|
+
export { Breadcrumbs } from './breadcrumbs/breadcrumbs';
|
|
6
|
+
export { Button } from './button/button';
|
|
7
|
+
export { Checkbox } from './checkbox/checkbox';
|
|
8
|
+
export { Collapsible } from './collapsible/collapsible';
|
|
9
|
+
export { ColorArea } from './color-area/color-area';
|
|
10
|
+
export { ColorChannelField } from './color-channel-field/color-channel-field';
|
|
11
|
+
export { ColorField } from './color-field/color-field';
|
|
12
|
+
export { ColorSlider } from './color-slider/color-slider';
|
|
13
|
+
export { ColorSwatch } from './color-swatch/color-swatch';
|
|
14
|
+
export { ColorWheel } from './color-wheel/color-wheel';
|
|
15
|
+
export { Combobox, ComboboxItem } from './combobox/combobox';
|
|
16
|
+
export { ContextMenu } from './context-menu/context-menu';
|
|
17
|
+
export { Dialog } from './dialog/dialog';
|
|
18
|
+
export { DropdownMenu } from './dropdown-menu/dropdown-menu';
|
|
19
|
+
export { FileField } from './file-field/file-field';
|
|
20
|
+
export { HoverCard } from './hover-card/hover-card';
|
|
21
|
+
export { Image } from './image/image';
|
|
22
|
+
export { Link } from './link/link';
|
|
23
|
+
export { Menubar } from './menubar/menubar';
|
|
24
|
+
export { Meter } from './meter/meter';
|
|
25
|
+
export { NavigationMenu } from './navigation-menu/navigation-menu';
|
|
26
|
+
export { NumberField } from './number-field/number-field';
|
|
27
|
+
export { Pagination } from './pagination/pagination';
|
|
28
|
+
export { Popover } from './popover/popover';
|
|
29
|
+
export { Progress } from './progress/progress';
|
|
30
|
+
export { RadioGroup } from './radio-group/radio-group';
|
|
31
|
+
export { Search } from './search/search';
|
|
32
|
+
export { SegmentedControl } from './segmented-control/segmented-control';
|
|
33
|
+
export { Select } from './select/select';
|
|
34
|
+
export { Separator } from './separator/separator';
|
|
35
|
+
export { Skeleton } from './skeleton/skeleton';
|
|
36
|
+
export { Slider } from './slider/slider';
|
|
37
|
+
export { Switch } from './switch/switch';
|
|
38
|
+
export { Tabs } from './tabs/tabs';
|
|
39
|
+
export { TextField } from './text-field/text-field';
|
|
40
|
+
export { ToastProvider, showToast } from './toast/toast';
|
|
41
|
+
export { ToggleButton } from './toggle-button/toggle-button';
|
|
42
|
+
export { ToggleGroup } from './toggle-group/toggle-group';
|
|
43
|
+
export { Tooltip } from './tooltip/tooltip';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Link as KLink } from '@kobalte/core/link';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const linkStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
variant: {
|
|
6
|
+
default: string;
|
|
7
|
+
primary: string;
|
|
8
|
+
muted: string;
|
|
9
|
+
button: string;
|
|
10
|
+
};
|
|
11
|
+
underline: {
|
|
12
|
+
always: string;
|
|
13
|
+
hover: string;
|
|
14
|
+
none: string;
|
|
15
|
+
};
|
|
16
|
+
}, undefined, "inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-sm disabled:pointer-events-none disabled:opacity-50", {
|
|
17
|
+
variant: {
|
|
18
|
+
default: string;
|
|
19
|
+
primary: string;
|
|
20
|
+
muted: string;
|
|
21
|
+
button: string;
|
|
22
|
+
};
|
|
23
|
+
underline: {
|
|
24
|
+
always: string;
|
|
25
|
+
hover: string;
|
|
26
|
+
none: string;
|
|
27
|
+
};
|
|
28
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
29
|
+
variant: {
|
|
30
|
+
default: string;
|
|
31
|
+
primary: string;
|
|
32
|
+
muted: string;
|
|
33
|
+
button: string;
|
|
34
|
+
};
|
|
35
|
+
underline: {
|
|
36
|
+
always: string;
|
|
37
|
+
hover: string;
|
|
38
|
+
none: string;
|
|
39
|
+
};
|
|
40
|
+
}, undefined, "inline-flex items-center justify-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 rounded-sm disabled:pointer-events-none disabled:opacity-50", unknown, unknown, undefined>>;
|
|
41
|
+
type LinkVariants = VariantProps<typeof linkStyles>;
|
|
42
|
+
export interface LinkProps extends ComponentProps<typeof KLink>, LinkVariants {
|
|
43
|
+
external?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export declare const Link: (props: LinkProps) => import("solid-js").JSX.Element;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Menubar as KMenubar } from '@kobalte/core/menubar';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
export declare const Menubar: ((props: ComponentProps<typeof KMenubar>) => import("solid-js").JSX.Element) & {
|
|
4
|
+
Menu: typeof import('@kobalte/core/menubar').Menu;
|
|
5
|
+
Trigger: (props: ComponentProps<typeof KMenubar.Trigger>) => import("solid-js").JSX.Element;
|
|
6
|
+
Content: (props: ComponentProps<typeof KMenubar.Content>) => import("solid-js").JSX.Element;
|
|
7
|
+
Item: (props: ComponentProps<typeof KMenubar.Item>) => import("solid-js").JSX.Element;
|
|
8
|
+
Separator: (props: ComponentProps<typeof KMenubar.Separator>) => import("solid-js").JSX.Element;
|
|
9
|
+
Shortcut: (props: ComponentProps<"span">) => import("solid-js").JSX.Element;
|
|
10
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Meter as KMeter } from '@kobalte/core/meter';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const meterStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
color: {
|
|
6
|
+
primary: {
|
|
7
|
+
fill: string;
|
|
8
|
+
};
|
|
9
|
+
success: {
|
|
10
|
+
fill: string;
|
|
11
|
+
};
|
|
12
|
+
warning: {
|
|
13
|
+
fill: string;
|
|
14
|
+
};
|
|
15
|
+
danger: {
|
|
16
|
+
fill: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
root: string;
|
|
21
|
+
labelContainer: string;
|
|
22
|
+
track: string;
|
|
23
|
+
fill: string;
|
|
24
|
+
}, undefined, {
|
|
25
|
+
color: {
|
|
26
|
+
primary: {
|
|
27
|
+
fill: string;
|
|
28
|
+
};
|
|
29
|
+
success: {
|
|
30
|
+
fill: string;
|
|
31
|
+
};
|
|
32
|
+
warning: {
|
|
33
|
+
fill: string;
|
|
34
|
+
};
|
|
35
|
+
danger: {
|
|
36
|
+
fill: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
}, {
|
|
40
|
+
root: string;
|
|
41
|
+
labelContainer: string;
|
|
42
|
+
track: string;
|
|
43
|
+
fill: string;
|
|
44
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
45
|
+
color: {
|
|
46
|
+
primary: {
|
|
47
|
+
fill: string;
|
|
48
|
+
};
|
|
49
|
+
success: {
|
|
50
|
+
fill: string;
|
|
51
|
+
};
|
|
52
|
+
warning: {
|
|
53
|
+
fill: string;
|
|
54
|
+
};
|
|
55
|
+
danger: {
|
|
56
|
+
fill: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
}, {
|
|
60
|
+
root: string;
|
|
61
|
+
labelContainer: string;
|
|
62
|
+
track: string;
|
|
63
|
+
fill: string;
|
|
64
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
65
|
+
type MeterVariants = VariantProps<typeof meterStyles>;
|
|
66
|
+
export declare const Meter: ((props: ComponentProps<typeof KMeter> & MeterVariants) => import("solid-js").JSX.Element) & {
|
|
67
|
+
Label: (props: ComponentProps<typeof KMeter.Label>) => import("solid-js").JSX.Element;
|
|
68
|
+
ValueLabel: (props: ComponentProps<typeof KMeter.ValueLabel>) => import("solid-js").JSX.Element;
|
|
69
|
+
Track: (props: ComponentProps<typeof KMeter.Track>) => import("solid-js").JSX.Element;
|
|
70
|
+
Fill: (props: ComponentProps<typeof KMeter.Fill>) => import("solid-js").JSX.Element;
|
|
71
|
+
};
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NavigationMenu as KNavigationMenu } from '@kobalte/core/navigation-menu';
|
|
2
|
+
import { ComponentProps, JSX } from 'solid-js';
|
|
3
|
+
interface NavItem {
|
|
4
|
+
title: string;
|
|
5
|
+
href?: string;
|
|
6
|
+
content?: JSX.Element;
|
|
7
|
+
}
|
|
8
|
+
export interface NavigationMenuProps extends ComponentProps<typeof KNavigationMenu> {
|
|
9
|
+
items: NavItem[];
|
|
10
|
+
}
|
|
11
|
+
export declare const NavigationMenu: (props: NavigationMenuProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { NumberField as KNumberField } from '@kobalte/core/number-field';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const numberFieldStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
[key: string]: {
|
|
6
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
7
|
+
root?: import('tailwind-variants').ClassValue;
|
|
8
|
+
input?: import('tailwind-variants').ClassValue;
|
|
9
|
+
label?: import('tailwind-variants').ClassValue;
|
|
10
|
+
errorMessage?: import('tailwind-variants').ClassValue;
|
|
11
|
+
controls?: import('tailwind-variants').ClassValue;
|
|
12
|
+
container?: import('tailwind-variants').ClassValue;
|
|
13
|
+
stepper?: import('tailwind-variants').ClassValue;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
} | {
|
|
17
|
+
[x: string]: {
|
|
18
|
+
[x: string]: import('tailwind-variants').ClassValue | {
|
|
19
|
+
root?: import('tailwind-variants').ClassValue;
|
|
20
|
+
input?: import('tailwind-variants').ClassValue;
|
|
21
|
+
label?: import('tailwind-variants').ClassValue;
|
|
22
|
+
errorMessage?: import('tailwind-variants').ClassValue;
|
|
23
|
+
controls?: import('tailwind-variants').ClassValue;
|
|
24
|
+
container?: import('tailwind-variants').ClassValue;
|
|
25
|
+
stepper?: import('tailwind-variants').ClassValue;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
} | {}, {
|
|
29
|
+
root: string;
|
|
30
|
+
label: string;
|
|
31
|
+
container: string[];
|
|
32
|
+
input: string;
|
|
33
|
+
controls: string;
|
|
34
|
+
stepper: string[];
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
}, undefined, {
|
|
37
|
+
[key: string]: {
|
|
38
|
+
[key: string]: import('tailwind-variants').ClassValue | {
|
|
39
|
+
root?: import('tailwind-variants').ClassValue;
|
|
40
|
+
input?: import('tailwind-variants').ClassValue;
|
|
41
|
+
label?: import('tailwind-variants').ClassValue;
|
|
42
|
+
errorMessage?: import('tailwind-variants').ClassValue;
|
|
43
|
+
controls?: import('tailwind-variants').ClassValue;
|
|
44
|
+
container?: import('tailwind-variants').ClassValue;
|
|
45
|
+
stepper?: import('tailwind-variants').ClassValue;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
} | {}, {
|
|
49
|
+
root: string;
|
|
50
|
+
label: string;
|
|
51
|
+
container: string[];
|
|
52
|
+
input: string;
|
|
53
|
+
controls: string;
|
|
54
|
+
stepper: string[];
|
|
55
|
+
errorMessage: string;
|
|
56
|
+
}, import('tailwind-variants').TVReturnType<unknown, {
|
|
57
|
+
root: string;
|
|
58
|
+
label: string;
|
|
59
|
+
container: string[];
|
|
60
|
+
input: string;
|
|
61
|
+
controls: string;
|
|
62
|
+
stepper: string[];
|
|
63
|
+
errorMessage: string;
|
|
64
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
65
|
+
type NumberFieldVariants = VariantProps<typeof numberFieldStyles>;
|
|
66
|
+
export interface NumberFieldProps extends Omit<ComponentProps<typeof KNumberField>, "class">, NumberFieldVariants {
|
|
67
|
+
label?: string;
|
|
68
|
+
description?: string;
|
|
69
|
+
class?: string;
|
|
70
|
+
}
|
|
71
|
+
export declare const NumberField: (props: NumberFieldProps) => import("solid-js").JSX.Element;
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Pagination as KPagination } from '@kobalte/core/pagination';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
export interface PaginationProps extends ComponentProps<typeof KPagination> {
|
|
4
|
+
}
|
|
5
|
+
export declare const Pagination: (props: PaginationProps) => import("solid-js").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Popover as KPopover } from '@kobalte/core/popover';
|
|
2
|
+
import { ComponentProps, JSX } from 'solid-js';
|
|
3
|
+
export interface PopoverProps extends ComponentProps<typeof KPopover> {
|
|
4
|
+
trigger: JSX.Element;
|
|
5
|
+
title: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Popover: (props: PopoverProps) => JSX.Element;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { Progress as KProgress } from '@kobalte/core/progress';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const progressStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
track: string;
|
|
8
|
+
};
|
|
9
|
+
md: {
|
|
10
|
+
track: string;
|
|
11
|
+
};
|
|
12
|
+
lg: {
|
|
13
|
+
track: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
radius: {
|
|
17
|
+
none: {
|
|
18
|
+
track: string;
|
|
19
|
+
fill: string;
|
|
20
|
+
};
|
|
21
|
+
sm: {
|
|
22
|
+
track: string;
|
|
23
|
+
fill: string;
|
|
24
|
+
};
|
|
25
|
+
md: {
|
|
26
|
+
track: string;
|
|
27
|
+
fill: string;
|
|
28
|
+
};
|
|
29
|
+
lg: {
|
|
30
|
+
track: string;
|
|
31
|
+
fill: string;
|
|
32
|
+
};
|
|
33
|
+
full: {
|
|
34
|
+
track: string;
|
|
35
|
+
fill: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
root: string;
|
|
40
|
+
labelContainer: string;
|
|
41
|
+
track: string;
|
|
42
|
+
fill: string;
|
|
43
|
+
}, undefined, {
|
|
44
|
+
size: {
|
|
45
|
+
sm: {
|
|
46
|
+
track: string;
|
|
47
|
+
};
|
|
48
|
+
md: {
|
|
49
|
+
track: string;
|
|
50
|
+
};
|
|
51
|
+
lg: {
|
|
52
|
+
track: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
radius: {
|
|
56
|
+
none: {
|
|
57
|
+
track: string;
|
|
58
|
+
fill: string;
|
|
59
|
+
};
|
|
60
|
+
sm: {
|
|
61
|
+
track: string;
|
|
62
|
+
fill: string;
|
|
63
|
+
};
|
|
64
|
+
md: {
|
|
65
|
+
track: string;
|
|
66
|
+
fill: string;
|
|
67
|
+
};
|
|
68
|
+
lg: {
|
|
69
|
+
track: string;
|
|
70
|
+
fill: string;
|
|
71
|
+
};
|
|
72
|
+
full: {
|
|
73
|
+
track: string;
|
|
74
|
+
fill: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
root: string;
|
|
79
|
+
labelContainer: string;
|
|
80
|
+
track: string;
|
|
81
|
+
fill: string;
|
|
82
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
83
|
+
size: {
|
|
84
|
+
sm: {
|
|
85
|
+
track: string;
|
|
86
|
+
};
|
|
87
|
+
md: {
|
|
88
|
+
track: string;
|
|
89
|
+
};
|
|
90
|
+
lg: {
|
|
91
|
+
track: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
radius: {
|
|
95
|
+
none: {
|
|
96
|
+
track: string;
|
|
97
|
+
fill: string;
|
|
98
|
+
};
|
|
99
|
+
sm: {
|
|
100
|
+
track: string;
|
|
101
|
+
fill: string;
|
|
102
|
+
};
|
|
103
|
+
md: {
|
|
104
|
+
track: string;
|
|
105
|
+
fill: string;
|
|
106
|
+
};
|
|
107
|
+
lg: {
|
|
108
|
+
track: string;
|
|
109
|
+
fill: string;
|
|
110
|
+
};
|
|
111
|
+
full: {
|
|
112
|
+
track: string;
|
|
113
|
+
fill: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
root: string;
|
|
118
|
+
labelContainer: string;
|
|
119
|
+
track: string;
|
|
120
|
+
fill: string;
|
|
121
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
122
|
+
type ProgressVariants = VariantProps<typeof progressStyles>;
|
|
123
|
+
export interface ProgressProps extends Omit<ComponentProps<typeof KProgress>, "children">, ProgressVariants {
|
|
124
|
+
label?: string;
|
|
125
|
+
showValue?: boolean;
|
|
126
|
+
}
|
|
127
|
+
export declare const Progress: (props: ProgressProps) => import("solid-js").JSX.Element;
|
|
128
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { RadioGroup as KRadioGroup } from '@kobalte/core/radio-group';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const radioStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
orientation: {
|
|
6
|
+
horizontal: {
|
|
7
|
+
root: string;
|
|
8
|
+
};
|
|
9
|
+
vertical: {
|
|
10
|
+
root: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
root: string;
|
|
15
|
+
label: string;
|
|
16
|
+
item: string;
|
|
17
|
+
control: string[];
|
|
18
|
+
indicator: string;
|
|
19
|
+
itemLabel: string;
|
|
20
|
+
}, undefined, {
|
|
21
|
+
orientation: {
|
|
22
|
+
horizontal: {
|
|
23
|
+
root: string;
|
|
24
|
+
};
|
|
25
|
+
vertical: {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
root: string;
|
|
31
|
+
label: string;
|
|
32
|
+
item: string;
|
|
33
|
+
control: string[];
|
|
34
|
+
indicator: string;
|
|
35
|
+
itemLabel: string;
|
|
36
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
37
|
+
orientation: {
|
|
38
|
+
horizontal: {
|
|
39
|
+
root: string;
|
|
40
|
+
};
|
|
41
|
+
vertical: {
|
|
42
|
+
root: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
}, {
|
|
46
|
+
root: string;
|
|
47
|
+
label: string;
|
|
48
|
+
item: string;
|
|
49
|
+
control: string[];
|
|
50
|
+
indicator: string;
|
|
51
|
+
itemLabel: string;
|
|
52
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
53
|
+
type RadioVariants = VariantProps<typeof radioStyles>;
|
|
54
|
+
export interface RadioOption {
|
|
55
|
+
label: string;
|
|
56
|
+
value: string;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface RadioGroupProps extends Omit<ComponentProps<typeof KRadioGroup>, "children" | "class">, RadioVariants {
|
|
60
|
+
label?: string;
|
|
61
|
+
options: RadioOption[];
|
|
62
|
+
class?: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* RadioGroup 高度封装版
|
|
66
|
+
* 自动处理循环渲染、选中指示器以及水平/垂直布局
|
|
67
|
+
*/
|
|
68
|
+
export declare const RadioGroup: (props: RadioGroupProps) => import("solid-js").JSX.Element;
|
|
69
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { TextField as KSearch } from '@kobalte/core/text-field';
|
|
2
|
+
import { ComponentProps } from 'solid-js';
|
|
3
|
+
import { VariantProps } from 'tailwind-variants';
|
|
4
|
+
declare const searchStyles: import('tailwind-variants').TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: {
|
|
7
|
+
input: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
clear: string;
|
|
10
|
+
};
|
|
11
|
+
md: {
|
|
12
|
+
input: string;
|
|
13
|
+
icon: string;
|
|
14
|
+
clear: string;
|
|
15
|
+
};
|
|
16
|
+
lg: {
|
|
17
|
+
input: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
clear: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
ringColor: {
|
|
23
|
+
primary: {
|
|
24
|
+
input: string;
|
|
25
|
+
};
|
|
26
|
+
danger: {
|
|
27
|
+
input: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
root: string;
|
|
32
|
+
inputWrapper: string;
|
|
33
|
+
input: string[];
|
|
34
|
+
icon: string;
|
|
35
|
+
clear: string;
|
|
36
|
+
}, undefined, {
|
|
37
|
+
size: {
|
|
38
|
+
sm: {
|
|
39
|
+
input: string;
|
|
40
|
+
icon: string;
|
|
41
|
+
clear: string;
|
|
42
|
+
};
|
|
43
|
+
md: {
|
|
44
|
+
input: string;
|
|
45
|
+
icon: string;
|
|
46
|
+
clear: string;
|
|
47
|
+
};
|
|
48
|
+
lg: {
|
|
49
|
+
input: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
clear: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
ringColor: {
|
|
55
|
+
primary: {
|
|
56
|
+
input: string;
|
|
57
|
+
};
|
|
58
|
+
danger: {
|
|
59
|
+
input: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
}, {
|
|
63
|
+
root: string;
|
|
64
|
+
inputWrapper: string;
|
|
65
|
+
input: string[];
|
|
66
|
+
icon: string;
|
|
67
|
+
clear: string;
|
|
68
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
69
|
+
size: {
|
|
70
|
+
sm: {
|
|
71
|
+
input: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
clear: string;
|
|
74
|
+
};
|
|
75
|
+
md: {
|
|
76
|
+
input: string;
|
|
77
|
+
icon: string;
|
|
78
|
+
clear: string;
|
|
79
|
+
};
|
|
80
|
+
lg: {
|
|
81
|
+
input: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
clear: string;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
ringColor: {
|
|
87
|
+
primary: {
|
|
88
|
+
input: string;
|
|
89
|
+
};
|
|
90
|
+
danger: {
|
|
91
|
+
input: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
}, {
|
|
95
|
+
root: string;
|
|
96
|
+
inputWrapper: string;
|
|
97
|
+
input: string[];
|
|
98
|
+
icon: string;
|
|
99
|
+
clear: string;
|
|
100
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
101
|
+
type SearchVariants = VariantProps<typeof searchStyles>;
|
|
102
|
+
export interface SearchProps extends Omit<ComponentProps<typeof KSearch>, "class">, SearchVariants {
|
|
103
|
+
class?: string;
|
|
104
|
+
placeholder?: string;
|
|
105
|
+
allowClear?: boolean;
|
|
106
|
+
onClear?: () => void;
|
|
107
|
+
}
|
|
108
|
+
export declare const Search: (props: SearchProps) => import("solid-js").JSX.Element;
|
|
109
|
+
export {};
|