@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,33 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ToastAction, ToastIconConfig } from '../../../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
actions: {
|
|
5
|
+
type: PropType<ToastAction[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
autoDismiss: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
duration: {
|
|
13
|
+
type: NumberConstructor;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
config: {
|
|
17
|
+
type: PropType<ToastIconConfig>;
|
|
18
|
+
default: () => {};
|
|
19
|
+
};
|
|
20
|
+
id: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
required: boolean;
|
|
23
|
+
};
|
|
24
|
+
message: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
title: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
required: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { ToastStackItem } from '../../types';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
position: {
|
|
5
|
+
type: import('vue').PropType<import('../../types').ToastPosition>;
|
|
6
|
+
default: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
toasts: {
|
|
10
|
+
type: import('vue').PropType<ToastStackItem[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "remove"[], "remove", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
16
|
+
position: {
|
|
17
|
+
type: import('vue').PropType<import('../../types').ToastPosition>;
|
|
18
|
+
default: string;
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
21
|
+
toasts: {
|
|
22
|
+
type: import('vue').PropType<ToastStackItem[]>;
|
|
23
|
+
default: () => never[];
|
|
24
|
+
};
|
|
25
|
+
}>> & Readonly<{
|
|
26
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
position: import('../../types').ToastPosition;
|
|
29
|
+
toasts: ToastStackItem[];
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ToastPosition, ToastStackItem } from '../../../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
position: {
|
|
5
|
+
type: PropType<ToastPosition>;
|
|
6
|
+
default: string;
|
|
7
|
+
required: boolean;
|
|
8
|
+
};
|
|
9
|
+
toasts: {
|
|
10
|
+
type: PropType<ToastStackItem[]>;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const renderer: import('../../../../styled-system/types').RecipeRuntimeFn<{
|
|
2
|
+
position: {
|
|
3
|
+
'top-left': {
|
|
4
|
+
top: "1rem";
|
|
5
|
+
left: "1rem";
|
|
6
|
+
};
|
|
7
|
+
'top-right': {
|
|
8
|
+
top: "1rem";
|
|
9
|
+
right: "1rem";
|
|
10
|
+
};
|
|
11
|
+
'bottom-right': {
|
|
12
|
+
bottom: "1rem";
|
|
13
|
+
right: "1rem";
|
|
14
|
+
};
|
|
15
|
+
'bottom-left': {
|
|
16
|
+
bottom: "1rem";
|
|
17
|
+
left: "1rem";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
export { renderer };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
color: {
|
|
7
|
+
type: import('vue').PropType<import('../../types').Color>;
|
|
8
|
+
default: import('../../types').Color;
|
|
9
|
+
validator(color: import('../../types').Color): boolean;
|
|
10
|
+
};
|
|
11
|
+
radius: {
|
|
12
|
+
type: import('vue').PropType<import('../../types').Rounded>;
|
|
13
|
+
default: import('../../types').Rounded;
|
|
14
|
+
validator: (radii: import('../../types').Rounded) => boolean;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: import('vue').PropType<import('../../types').ButtonSize>;
|
|
18
|
+
default: import('../../types').ButtonSize;
|
|
19
|
+
validator(size: import('../../types').ButtonSize): boolean;
|
|
20
|
+
};
|
|
21
|
+
variant: {
|
|
22
|
+
type: import('vue').PropType<import('../../types').Variant>;
|
|
23
|
+
default: import('../../types').Variant;
|
|
24
|
+
validator(variant: import('../../types').Variant): boolean;
|
|
25
|
+
};
|
|
26
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
color: {
|
|
34
|
+
type: import('vue').PropType<import('../../types').Color>;
|
|
35
|
+
default: import('../../types').Color;
|
|
36
|
+
validator(color: import('../../types').Color): boolean;
|
|
37
|
+
};
|
|
38
|
+
radius: {
|
|
39
|
+
type: import('vue').PropType<import('../../types').Rounded>;
|
|
40
|
+
default: import('../../types').Rounded;
|
|
41
|
+
validator: (radii: import('../../types').Rounded) => boolean;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: import('vue').PropType<import('../../types').ButtonSize>;
|
|
45
|
+
default: import('../../types').ButtonSize;
|
|
46
|
+
validator(size: import('../../types').ButtonSize): boolean;
|
|
47
|
+
};
|
|
48
|
+
variant: {
|
|
49
|
+
type: import('vue').PropType<import('../../types').Variant>;
|
|
50
|
+
default: import('../../types').Variant;
|
|
51
|
+
validator(variant: import('../../types').Variant): boolean;
|
|
52
|
+
};
|
|
53
|
+
}>> & Readonly<{
|
|
54
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
55
|
+
}>, {
|
|
56
|
+
color: import('../../types').Color;
|
|
57
|
+
size: import('../../types').ButtonSize;
|
|
58
|
+
variant: import('../../types').Variant;
|
|
59
|
+
radius: import('../../types').Rounded;
|
|
60
|
+
modelValue: boolean;
|
|
61
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ButtonSize, Color, Rounded, Variant } from '../../../types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
type: PropType<Color>;
|
|
10
|
+
default: Color;
|
|
11
|
+
validator(color: Color): boolean;
|
|
12
|
+
};
|
|
13
|
+
radius: {
|
|
14
|
+
type: PropType<Rounded>;
|
|
15
|
+
default: Rounded;
|
|
16
|
+
validator: (radii: Rounded) => boolean;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: PropType<ButtonSize>;
|
|
20
|
+
default: ButtonSize;
|
|
21
|
+
validator(size: ButtonSize): boolean;
|
|
22
|
+
};
|
|
23
|
+
variant: {
|
|
24
|
+
type: PropType<Variant>;
|
|
25
|
+
default: Variant;
|
|
26
|
+
validator(variant: Variant): boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
none: {
|
|
3
|
+
value: string;
|
|
4
|
+
};
|
|
5
|
+
thin: {
|
|
6
|
+
value: string;
|
|
7
|
+
};
|
|
8
|
+
default: {
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
medium: {
|
|
12
|
+
value: string;
|
|
13
|
+
};
|
|
14
|
+
thick: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
bold: {
|
|
18
|
+
value: string;
|
|
19
|
+
};
|
|
20
|
+
heavy: {
|
|
21
|
+
value: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export default _default;
|