@rebnd/ui 0.0.2 → 0.0.4
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 +5 -3
- package/dist/index.d.ts +12 -0
- package/dist/src/assets/constants/components.d.ts +3 -0
- package/dist/src/components/RAvatar/RAvatar.d.ts +13 -13
- package/dist/src/components/RAvatar/utils/avatar.props.d.ts +7 -6
- package/dist/src/components/RAvatar/utils/avatar.style.d.ts +14 -10
- package/dist/src/components/RAvatarGroup/RAvatarGroup.d.ts +7 -7
- package/dist/src/components/RAvatarGroup/utils/avatar-group.props.d.ts +4 -3
- package/dist/src/components/RAvatarGroup/utils/avatar-group.style.d.ts +2 -1
- package/dist/src/components/RBadge/RBadge.d.ts +13 -13
- package/dist/src/components/RBadge/utils/badge.props.d.ts +8 -7
- package/dist/src/components/RBadge/utils/badge.style.d.ts +35 -66
- package/dist/src/components/RButton/RButton.d.ts +33 -13
- package/dist/src/components/RButton/utils/button.props.d.ts +16 -7
- package/dist/src/components/RButton/utils/button.style.d.ts +92 -38
- package/dist/src/components/RButtonGroup/RButtonGroup.d.ts +62 -0
- package/dist/src/components/RButtonGroup/utils/button-group.props.d.ts +30 -0
- package/dist/src/components/RButtonGroup/utils/button-group.style.d.ts +123 -0
- package/dist/src/components/RCheckbox/RCheckbox.d.ts +62 -0
- package/dist/src/components/RCheckbox/utils/checkbox.props.d.ts +27 -0
- package/dist/src/components/RCheckbox/utils/checkbox.style.d.ts +38 -0
- package/dist/src/components/RCheckboxGroup/RCheckboxGroup.d.ts +80 -0
- package/dist/src/components/RCheckboxGroup/utils/checkbox-group.props.d.ts +37 -0
- package/dist/src/components/RCheckboxGroup/utils/checkbox-group.style.d.ts +35 -0
- package/dist/src/components/RFormGroup/RFormGroup.d.ts +8 -2
- package/dist/src/components/RInput/RInput.d.ts +19 -3
- package/dist/src/components/RInput/utils/input.props.d.ts +7 -0
- package/dist/src/components/RInput/utils/input.style.d.ts +24 -2
- package/dist/src/components/RInputPassword/RInputPassword.d.ts +22 -0
- package/dist/src/components/RInputPassword/utils/input-password.props.d.ts +8 -0
- package/dist/src/components/RInputPassword/utils/input-password.style.d.ts +4 -0
- package/dist/src/components/RModal/RModal.d.ts +65 -0
- package/dist/src/components/RModal/utils/modal.props.d.ts +30 -0
- package/dist/src/components/RModal/utils/modal.style.d.ts +3 -0
- package/dist/src/components/RRadio/RRadio.d.ts +60 -0
- package/dist/src/components/RRadio/utils/radio.props.d.ts +27 -0
- package/dist/src/components/RRadio/utils/radio.style.d.ts +64 -0
- package/dist/src/components/RRadioGroup/RRadioGroup.d.ts +78 -0
- package/dist/src/components/RRadioGroup/utils/radio-group.props.d.ts +37 -0
- package/dist/src/components/RRadioGroup/utils/radio-group.style.d.ts +35 -0
- package/dist/src/components/RSwitch/RSwitch.d.ts +86 -0
- package/dist/src/components/RSwitch/utils/switch.props.d.ts +39 -0
- package/dist/src/components/RSwitch/utils/switch.style.d.ts +142 -0
- package/dist/src/components/RTable/RTable.d.ts +47 -0
- package/dist/src/components/RTable/utils/table.props.d.ts +23 -0
- package/dist/src/components/RTable/utils/table.style.d.ts +4 -0
- package/dist/src/components/RTabs/RTabs.d.ts +14 -14
- package/dist/src/components/RTabs/utils/tabs.props.d.ts +8 -6
- package/dist/src/components/RTabs/utils/tabs.style.d.ts +26 -10
- package/dist/src/components/RTextArea/RTextArea.d.ts +21 -1
- package/dist/src/components/RTextArea/utils/text-area.props.d.ts +11 -0
- package/dist/src/components/RTextArea/utils/text-area.style.d.ts +30 -2
- package/dist/src/components/RToast/RToast.d.ts +70 -0
- package/dist/src/components/RToast/utils/toast.props.d.ts +33 -0
- package/dist/src/components/RToast/utils/toast.style.d.ts +4 -0
- package/dist/src/components/RToastRenderer/RToastRenderer.d.ts +31 -0
- package/dist/src/components/RToastRenderer/utils/toast-renderer.props.d.ts +14 -0
- package/dist/src/components/RToastRenderer/utils/toast-renderer.style.d.ts +21 -0
- package/dist/src/components/RToggle/RToggle.d.ts +62 -0
- package/dist/src/components/RToggle/utils/toggle.props.d.ts +29 -0
- package/dist/src/components/RToggle/utils/toggle.style.d.ts +2 -0
- package/dist/src/composables/useModal.d.ts +8 -0
- package/dist/src/composables/useToast.d.ts +4 -0
- package/dist/src/theme/animations.d.ts +12 -0
- package/dist/src/theme/borders.d.ts +24 -0
- package/dist/src/theme/colors.d.ts +3696 -233
- package/dist/src/theme/fonts.d.ts +46 -0
- package/dist/src/theme/index.d.ts +2 -2
- package/dist/src/theme/radii.d.ts +24 -0
- package/dist/src/theme/semantic-tokens.d.ts +777 -35
- package/dist/src/theme/sizes.d.ts +21 -0
- package/dist/src/theme/spacing.d.ts +30 -0
- package/dist/src/theme/tokens.d.ts +3848 -232
- package/dist/src/types/component.d.ts +49 -12
- package/dist/src/types/index.d.ts +2 -3
- package/dist/src/utils/array.d.ts +3 -0
- package/dist/src/utils/regex.d.ts +2 -1
- package/dist/src/utils/string.d.ts +2 -1
- package/dist/styles.css +3308 -764
- package/dist/ui.js +14212 -1735
- package/dist/ui.umd.cjs +5 -2
- package/package.json +30 -32
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { SlotsType, VNode } from 'vue';
|
|
2
|
+
interface Slots {
|
|
3
|
+
label?: () => VNode[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
type: import('vue').PropType<import('../../types').Color>;
|
|
12
|
+
default: import('../../types').Color;
|
|
13
|
+
validator(color: import('../../types').Color): boolean;
|
|
14
|
+
};
|
|
15
|
+
direction: {
|
|
16
|
+
type: import('vue').PropType<"ltr" | "rtl">;
|
|
17
|
+
default: "ltr" | "rtl";
|
|
18
|
+
validator(direction: "ltr" | "rtl"): boolean;
|
|
19
|
+
};
|
|
20
|
+
indeterminate: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
orientation: {
|
|
25
|
+
type: import('vue').PropType<import('../../types').Orientation>;
|
|
26
|
+
default: import('../../types').Orientation;
|
|
27
|
+
validator(orientation: import('../../types').Orientation): boolean;
|
|
28
|
+
};
|
|
29
|
+
radius: {
|
|
30
|
+
type: import('vue').PropType<import('../../types').Rounded>;
|
|
31
|
+
default: import('../../types').Rounded;
|
|
32
|
+
validator: (radii: import('../../types').Rounded) => boolean;
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
type: import('vue').PropType<import('../../types').ButtonSize>;
|
|
36
|
+
default: import('../../types').ButtonSize;
|
|
37
|
+
validator(size: import('../../types').ButtonSize): boolean;
|
|
38
|
+
};
|
|
39
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
color: {
|
|
47
|
+
type: import('vue').PropType<import('../../types').Color>;
|
|
48
|
+
default: import('../../types').Color;
|
|
49
|
+
validator(color: import('../../types').Color): boolean;
|
|
50
|
+
};
|
|
51
|
+
direction: {
|
|
52
|
+
type: import('vue').PropType<"ltr" | "rtl">;
|
|
53
|
+
default: "ltr" | "rtl";
|
|
54
|
+
validator(direction: "ltr" | "rtl"): boolean;
|
|
55
|
+
};
|
|
56
|
+
indeterminate: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
orientation: {
|
|
61
|
+
type: import('vue').PropType<import('../../types').Orientation>;
|
|
62
|
+
default: import('../../types').Orientation;
|
|
63
|
+
validator(orientation: import('../../types').Orientation): boolean;
|
|
64
|
+
};
|
|
65
|
+
radius: {
|
|
66
|
+
type: import('vue').PropType<import('../../types').Rounded>;
|
|
67
|
+
default: import('../../types').Rounded;
|
|
68
|
+
validator: (radii: import('../../types').Rounded) => boolean;
|
|
69
|
+
};
|
|
70
|
+
size: {
|
|
71
|
+
type: import('vue').PropType<import('../../types').ButtonSize>;
|
|
72
|
+
default: import('../../types').ButtonSize;
|
|
73
|
+
validator(size: import('../../types').ButtonSize): boolean;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{
|
|
76
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
color: import('../../types').Color;
|
|
79
|
+
direction: "ltr" | "rtl";
|
|
80
|
+
size: import('../../types').ButtonSize;
|
|
81
|
+
radius: import('../../types').Rounded;
|
|
82
|
+
orientation: import('../../types').Orientation;
|
|
83
|
+
modelValue: boolean;
|
|
84
|
+
indeterminate: boolean;
|
|
85
|
+
}, SlotsType<Slots>, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
86
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ButtonSize, Color, Orientation, Rounded } from '../../../types';
|
|
3
|
+
type Direction = 'ltr' | 'rtl';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
color: {
|
|
10
|
+
type: PropType<Color>;
|
|
11
|
+
default: Color;
|
|
12
|
+
validator(color: Color): boolean;
|
|
13
|
+
};
|
|
14
|
+
direction: {
|
|
15
|
+
type: PropType<Direction>;
|
|
16
|
+
default: Direction;
|
|
17
|
+
validator(direction: Direction): boolean;
|
|
18
|
+
};
|
|
19
|
+
indeterminate: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
orientation: {
|
|
24
|
+
type: PropType<Orientation>;
|
|
25
|
+
default: Orientation;
|
|
26
|
+
validator(orientation: Orientation): boolean;
|
|
27
|
+
};
|
|
28
|
+
radius: {
|
|
29
|
+
type: PropType<Rounded>;
|
|
30
|
+
default: Rounded;
|
|
31
|
+
validator: (radii: Rounded) => boolean;
|
|
32
|
+
};
|
|
33
|
+
size: {
|
|
34
|
+
type: PropType<ButtonSize>;
|
|
35
|
+
default: ButtonSize;
|
|
36
|
+
validator(size: ButtonSize): boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export default _default;
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
declare const wrapper: string;
|
|
2
|
+
declare const input: import('../../../../styled-system/types').RecipeRuntimeFn<{
|
|
3
|
+
color: {
|
|
4
|
+
primary: {
|
|
5
|
+
'&:checked': {
|
|
6
|
+
backgroundColor: "primary.track";
|
|
7
|
+
};
|
|
8
|
+
'&:disabled:checked::before': {
|
|
9
|
+
backgroundColor: "primary.disabled";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
secondary: {
|
|
13
|
+
'&:checked': {
|
|
14
|
+
backgroundColor: "secondary.track";
|
|
15
|
+
};
|
|
16
|
+
'&:disabled:checked::before': {
|
|
17
|
+
backgroundColor: "secondary.disabled";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
info: {
|
|
21
|
+
'&:checked': {
|
|
22
|
+
backgroundColor: "info.track";
|
|
23
|
+
};
|
|
24
|
+
'&:disabled:checked::before': {
|
|
25
|
+
backgroundColor: "info.disabled";
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
error: {
|
|
29
|
+
'&:checked': {
|
|
30
|
+
backgroundColor: "error.track";
|
|
31
|
+
};
|
|
32
|
+
'&:disabled:checked::before': {
|
|
33
|
+
backgroundColor: "error.disabled";
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
success: {
|
|
37
|
+
'&:checked': {
|
|
38
|
+
backgroundColor: "success.track";
|
|
39
|
+
};
|
|
40
|
+
'&:disabled:checked::before': {
|
|
41
|
+
backgroundColor: "success.disabled";
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
warning: {
|
|
45
|
+
'&:checked': {
|
|
46
|
+
backgroundColor: "warning.track";
|
|
47
|
+
};
|
|
48
|
+
'&:disabled:checked::before': {
|
|
49
|
+
backgroundColor: "warning.disabled";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
direction: {
|
|
54
|
+
ltr: {
|
|
55
|
+
'&::before': {
|
|
56
|
+
transform: "translateX(0)";
|
|
57
|
+
};
|
|
58
|
+
'&:checked::before': {
|
|
59
|
+
transform: "translateX(100%)";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
rtl: {
|
|
63
|
+
'&::before': {
|
|
64
|
+
transform: "translateX(100%)";
|
|
65
|
+
};
|
|
66
|
+
'&:checked::before': {
|
|
67
|
+
transform: "translateX(0)";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
orientation: {
|
|
72
|
+
horizontal: {
|
|
73
|
+
transform: "rotate(0deg)";
|
|
74
|
+
};
|
|
75
|
+
vertical: {
|
|
76
|
+
transform: "rotate(-90deg)";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
xs: {
|
|
81
|
+
inlineSize: "1.5rem";
|
|
82
|
+
blockSize: "0.75rem";
|
|
83
|
+
'&::before': {
|
|
84
|
+
inlineSize: "0.75rem";
|
|
85
|
+
blockSize: "0.75rem";
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
sm: {
|
|
89
|
+
inlineSize: "2rem";
|
|
90
|
+
blockSize: "1rem";
|
|
91
|
+
'&::before': {
|
|
92
|
+
inlineSize: "1rem";
|
|
93
|
+
blockSize: "1rem";
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
md: {
|
|
97
|
+
inlineSize: "2.5rem";
|
|
98
|
+
blockSize: "1.25rem";
|
|
99
|
+
'&::before': {
|
|
100
|
+
inlineSize: "1.25rem";
|
|
101
|
+
blockSize: "1.25rem";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
lg: {
|
|
105
|
+
inlineSize: "3rem";
|
|
106
|
+
blockSize: "1.5rem";
|
|
107
|
+
'&::before': {
|
|
108
|
+
inlineSize: "1.5rem";
|
|
109
|
+
blockSize: "1.5rem";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
xl: {
|
|
113
|
+
inlineSize: "4rem";
|
|
114
|
+
blockSize: "2rem";
|
|
115
|
+
'&::before': {
|
|
116
|
+
inlineSize: "2rem";
|
|
117
|
+
blockSize: "2rem";
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
radius: {
|
|
122
|
+
sharp: {
|
|
123
|
+
'--switch-radius': "{radii.sharp}";
|
|
124
|
+
};
|
|
125
|
+
xs: {
|
|
126
|
+
'--switch-radius': "{radii.xs}";
|
|
127
|
+
};
|
|
128
|
+
sm: {
|
|
129
|
+
'--switch-radius': "{radii.sm}";
|
|
130
|
+
};
|
|
131
|
+
md: {
|
|
132
|
+
'--switch-radius': "{radii.md}";
|
|
133
|
+
};
|
|
134
|
+
lg: {
|
|
135
|
+
'--switch-radius': "{radii.lg}";
|
|
136
|
+
};
|
|
137
|
+
pill: {
|
|
138
|
+
'--switch-radius': "{radii.pill}";
|
|
139
|
+
};
|
|
140
|
+
};
|
|
141
|
+
}>;
|
|
142
|
+
export { input, wrapper };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
columns: {
|
|
3
|
+
type: import('vue').PropType<import('../../types').TableColumn<unknown>[]>;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
required: boolean;
|
|
6
|
+
};
|
|
7
|
+
loading: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
rows: {
|
|
12
|
+
type: import('vue').PropType<unknown[]>;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
required: boolean;
|
|
15
|
+
};
|
|
16
|
+
selectable: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
21
|
+
[key: string]: any;
|
|
22
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
columns: {
|
|
24
|
+
type: import('vue').PropType<import('../../types').TableColumn<unknown>[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
required: boolean;
|
|
27
|
+
};
|
|
28
|
+
loading: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
rows: {
|
|
33
|
+
type: import('vue').PropType<unknown[]>;
|
|
34
|
+
default: () => never[];
|
|
35
|
+
required: boolean;
|
|
36
|
+
};
|
|
37
|
+
selectable: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>> & Readonly<{}>, {
|
|
42
|
+
columns: import('../../types').TableColumn<unknown>[];
|
|
43
|
+
loading: boolean;
|
|
44
|
+
rows: unknown[];
|
|
45
|
+
selectable: boolean;
|
|
46
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TableColumn } from '../../../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
columns: {
|
|
5
|
+
type: PropType<TableColumn<unknown>[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
loading: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
rows: {
|
|
14
|
+
type: PropType<unknown[]>;
|
|
15
|
+
default: () => never[];
|
|
16
|
+
required: boolean;
|
|
17
|
+
};
|
|
18
|
+
selectable: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -4,14 +4,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
size: {
|
|
7
|
-
type: import('vue').PropType<
|
|
8
|
-
default:
|
|
9
|
-
validator
|
|
7
|
+
type: import('vue').PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
8
|
+
default: "xs" | "sm" | "md" | "lg" | "xl";
|
|
9
|
+
validator(size: "xs" | "sm" | "md" | "lg" | "xl"): boolean;
|
|
10
10
|
};
|
|
11
11
|
variant: {
|
|
12
|
-
type: import('vue').PropType<
|
|
13
|
-
default:
|
|
14
|
-
validator
|
|
12
|
+
type: import('vue').PropType<"ghost" | "outline" | "solid">;
|
|
13
|
+
default: "ghost" | "outline" | "solid";
|
|
14
|
+
validator(variant: "ghost" | "outline" | "solid"): boolean;
|
|
15
15
|
};
|
|
16
16
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
17
17
|
[key: string]: any;
|
|
@@ -21,20 +21,20 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
21
21
|
default: string;
|
|
22
22
|
};
|
|
23
23
|
size: {
|
|
24
|
-
type: import('vue').PropType<
|
|
25
|
-
default:
|
|
26
|
-
validator
|
|
24
|
+
type: import('vue').PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
25
|
+
default: "xs" | "sm" | "md" | "lg" | "xl";
|
|
26
|
+
validator(size: "xs" | "sm" | "md" | "lg" | "xl"): boolean;
|
|
27
27
|
};
|
|
28
28
|
variant: {
|
|
29
|
-
type: import('vue').PropType<
|
|
30
|
-
default:
|
|
31
|
-
validator
|
|
29
|
+
type: import('vue').PropType<"ghost" | "outline" | "solid">;
|
|
30
|
+
default: "ghost" | "outline" | "solid";
|
|
31
|
+
validator(variant: "ghost" | "outline" | "solid"): boolean;
|
|
32
32
|
};
|
|
33
33
|
}>> & Readonly<{
|
|
34
34
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
}>, {
|
|
36
|
-
size:
|
|
37
|
-
variant:
|
|
36
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
37
|
+
variant: "ghost" | "outline" | "solid";
|
|
38
38
|
modelValue: string;
|
|
39
39
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
40
40
|
export default _default;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { Size, Variant } from '../../../types';
|
|
3
|
+
type TabsSize = Extract<Size, 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
|
|
4
|
+
type TabsVariant = Extract<Variant, 'outline' | 'ghost' | 'solid'>;
|
|
3
5
|
declare const _default: {
|
|
4
6
|
modelValue: {
|
|
5
7
|
type: StringConstructor;
|
|
6
8
|
default: string;
|
|
7
9
|
};
|
|
8
10
|
size: {
|
|
9
|
-
type: PropType<
|
|
10
|
-
default:
|
|
11
|
-
validator
|
|
11
|
+
type: PropType<TabsSize>;
|
|
12
|
+
default: TabsSize;
|
|
13
|
+
validator(size: TabsSize): boolean;
|
|
12
14
|
};
|
|
13
15
|
variant: {
|
|
14
|
-
type: PropType<
|
|
15
|
-
default:
|
|
16
|
-
validator
|
|
16
|
+
type: PropType<TabsVariant>;
|
|
17
|
+
default: TabsVariant;
|
|
18
|
+
validator(variant: TabsVariant): boolean;
|
|
17
19
|
};
|
|
18
20
|
};
|
|
19
21
|
export default _default;
|
|
@@ -1,36 +1,52 @@
|
|
|
1
1
|
declare const styles: import('../../../../styled-system/types').RecipeRuntimeFn<{
|
|
2
2
|
size: {
|
|
3
3
|
xs: {
|
|
4
|
-
fontSize: "0.
|
|
4
|
+
fontSize: "0.625rem";
|
|
5
|
+
'& button': {
|
|
6
|
+
paddingBlock: "0.25rem";
|
|
7
|
+
paddingInline: "0.5rem";
|
|
8
|
+
};
|
|
5
9
|
};
|
|
6
10
|
sm: {
|
|
7
11
|
fontSize: "0.75rem";
|
|
12
|
+
'& button': {
|
|
13
|
+
paddingBlock: "0.375rem";
|
|
14
|
+
paddingInline: "0.625rem";
|
|
15
|
+
};
|
|
8
16
|
};
|
|
9
17
|
md: {
|
|
10
18
|
fontSize: "0.875rem";
|
|
19
|
+
'& button': {
|
|
20
|
+
paddingBlock: "0.5rem";
|
|
21
|
+
paddingInline: "0.75rem";
|
|
22
|
+
};
|
|
11
23
|
};
|
|
12
24
|
lg: {
|
|
13
25
|
fontSize: "1rem";
|
|
26
|
+
'& button': {
|
|
27
|
+
paddingBlock: "0.625rem";
|
|
28
|
+
paddingInline: "1rem";
|
|
29
|
+
};
|
|
14
30
|
};
|
|
15
31
|
xl: {
|
|
16
|
-
fontSize: "1.
|
|
32
|
+
fontSize: "1.125rem";
|
|
33
|
+
'& button': {
|
|
34
|
+
paddingBlock: "0.75rem";
|
|
35
|
+
paddingInline: "1.25rem";
|
|
36
|
+
};
|
|
17
37
|
};
|
|
18
38
|
};
|
|
19
39
|
variant: {
|
|
20
40
|
solid: {
|
|
21
|
-
|
|
22
|
-
backgroundColor: {
|
|
23
|
-
base: "neutrals.100";
|
|
24
|
-
_dark: "neutrals.900";
|
|
25
|
-
};
|
|
41
|
+
backgroundColor: "neutral.100";
|
|
26
42
|
};
|
|
27
43
|
ghost: {
|
|
28
|
-
border: "none";
|
|
29
44
|
backgroundColor: "transparent";
|
|
30
45
|
};
|
|
31
|
-
|
|
46
|
+
outline: {
|
|
32
47
|
backgroundColor: "transparent";
|
|
33
|
-
|
|
48
|
+
outline: "1px solid";
|
|
49
|
+
outlineColor: "neutral.border";
|
|
34
50
|
};
|
|
35
51
|
};
|
|
36
52
|
}>;
|
|
@@ -7,6 +7,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
+
radius: {
|
|
11
|
+
type: import('vue').PropType<import('../../types').Rounded>;
|
|
12
|
+
default: import('../../types').Rounded;
|
|
13
|
+
validator: (radii: import('../../types').Rounded) => boolean;
|
|
14
|
+
};
|
|
15
|
+
resizable: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
10
19
|
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
11
20
|
[key: string]: any;
|
|
12
21
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -18,8 +27,19 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
18
27
|
type: StringConstructor;
|
|
19
28
|
default: string;
|
|
20
29
|
};
|
|
30
|
+
radius: {
|
|
31
|
+
type: import('vue').PropType<import('../../types').Rounded>;
|
|
32
|
+
default: import('../../types').Rounded;
|
|
33
|
+
validator: (radii: import('../../types').Rounded) => boolean;
|
|
34
|
+
};
|
|
35
|
+
resizable: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
21
39
|
}>> & Readonly<{}>, {
|
|
22
|
-
|
|
40
|
+
radius: import('../../types').Rounded;
|
|
23
41
|
modelValue: string;
|
|
42
|
+
hasError: boolean;
|
|
43
|
+
resizable: boolean;
|
|
24
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
45
|
export default _default;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Rounded } from '../../../types';
|
|
1
3
|
declare const _default: {
|
|
2
4
|
hasError: {
|
|
3
5
|
type: BooleanConstructor;
|
|
@@ -7,5 +9,14 @@ declare const _default: {
|
|
|
7
9
|
type: StringConstructor;
|
|
8
10
|
default: string;
|
|
9
11
|
};
|
|
12
|
+
radius: {
|
|
13
|
+
type: PropType<Rounded>;
|
|
14
|
+
default: Rounded;
|
|
15
|
+
validator: (radii: Rounded) => boolean;
|
|
16
|
+
};
|
|
17
|
+
resizable: {
|
|
18
|
+
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
10
21
|
};
|
|
11
22
|
export default _default;
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
|
|
1
|
+
declare const textarea: import('../../../../styled-system/types').RecipeRuntimeFn<{
|
|
2
|
+
radius: {
|
|
3
|
+
sharp: {
|
|
4
|
+
borderRadius: "sharp";
|
|
5
|
+
};
|
|
6
|
+
xs: {
|
|
7
|
+
borderRadius: "xs";
|
|
8
|
+
};
|
|
9
|
+
sm: {
|
|
10
|
+
borderRadius: "sm";
|
|
11
|
+
};
|
|
12
|
+
md: {
|
|
13
|
+
borderRadius: "md";
|
|
14
|
+
};
|
|
15
|
+
lg: {
|
|
16
|
+
borderRadius: "lg";
|
|
17
|
+
};
|
|
18
|
+
pill: {
|
|
19
|
+
borderRadius: "pill";
|
|
20
|
+
paddingInline: "md";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
resizable: {
|
|
24
|
+
true: {};
|
|
25
|
+
false: {
|
|
26
|
+
resize: "none";
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}>;
|
|
30
|
+
export { textarea };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
actions: {
|
|
3
|
+
type: import('vue').PropType<import('../../types').ToastAction[]>;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
autoDismiss: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
duration: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
config: {
|
|
15
|
+
type: import('vue').PropType<import('../../types').ToastIconConfig>;
|
|
16
|
+
default: () => {};
|
|
17
|
+
};
|
|
18
|
+
id: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
required: boolean;
|
|
21
|
+
};
|
|
22
|
+
message: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
title: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
required: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
+
actions: {
|
|
34
|
+
type: import('vue').PropType<import('../../types').ToastAction[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
autoDismiss: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
duration: {
|
|
42
|
+
type: NumberConstructor;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
config: {
|
|
46
|
+
type: import('vue').PropType<import('../../types').ToastIconConfig>;
|
|
47
|
+
default: () => {};
|
|
48
|
+
};
|
|
49
|
+
id: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: boolean;
|
|
52
|
+
};
|
|
53
|
+
message: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
title: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
required: boolean;
|
|
60
|
+
};
|
|
61
|
+
}>> & Readonly<{
|
|
62
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
63
|
+
}>, {
|
|
64
|
+
message: string;
|
|
65
|
+
actions: import('../../types').ToastAction[];
|
|
66
|
+
autoDismiss: boolean;
|
|
67
|
+
duration: number;
|
|
68
|
+
config: import('../../types').ToastIconConfig;
|
|
69
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
export default _default;
|