@rotki/ui-library 0.15.0 → 0.16.0
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/dist/RuiColorPicker.vue_vue_type_script_setup_true_lang-ByCIjyQ_.js +8945 -0
- package/dist/{breakpoint-CRvqq4aP.js → breakpoint-DAvEs_TA.js} +1 -1
- package/dist/components/alerts/{Alert.vue.d.ts → RuiAlert.vue.d.ts} +10 -10
- package/dist/components/buttons/button/{Button.vue.d.ts → RuiButton.vue.d.ts} +1 -1
- package/dist/components/buttons/button-group/{ButtonGroup.vue.d.ts → RuiButtonGroup.vue.d.ts} +1 -1
- package/dist/components/cards/{Card.vue.d.ts → RuiCard.vue.d.ts} +12 -12
- package/dist/components/chips/{Chip.vue.d.ts → RuiChip.vue.d.ts} +19 -19
- package/dist/components/color-picker/RuiColorBoard.vue.d.ts +23 -0
- package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +12 -0
- package/dist/components/color-picker/RuiColorHue.vue.d.ts +12 -0
- package/dist/components/color-picker/RuiColorInput.vue.d.ts +13 -0
- package/dist/components/color-picker/RuiColorPicker.vue.d.ts +21 -0
- package/dist/components/color-picker/utils.d.ts +44 -0
- package/dist/components/forms/auto-complete/{AutoComplete.vue.d.ts → RuiAutoComplete.vue.d.ts} +1 -1
- package/dist/components/forms/auto-complete/{AutoCompleteSelection.vue.d.ts → RuiAutoCompleteSelection.vue.d.ts} +2 -2
- package/dist/components/forms/radio-button/radio-group/{RadioGroup.vue.d.ts → RuiRadioGroup.vue.d.ts} +10 -10
- package/dist/components/forms/revealable-text-field/{RevealableTextField.vue.d.ts → RuiRevealableTextField.vue.d.ts} +35 -35
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +2 -4
- package/dist/components/forms/slider/{Slider.vue.d.ts → RuiSlider.vue.d.ts} +17 -17
- package/dist/components/forms/text-area/{TextArea.vue.d.ts → RuiTextArea.vue.d.ts} +37 -37
- package/dist/components/forms/text-field/{TextField.vue.d.ts → RuiTextField.vue.d.ts} +36 -36
- package/dist/components/icons/{Icon.vue.d.ts → RuiIcon.vue.d.ts} +9 -9
- package/dist/components/index.d.ts +41 -39
- package/dist/components/index.es.js +36 -34
- package/dist/components/loaders/{SkeletonBase.vue.d.ts → RuiSkeletonBase.vue.d.ts} +3 -3
- package/dist/components/loaders/{Skeleton.vue.d.ts → RuiSkeletonLoader.vue.d.ts} +7 -7
- package/dist/components/overlays/badge/{Badge.vue.d.ts → RuiBadge.vue.d.ts} +19 -19
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +46 -0
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +87 -0
- package/dist/components/steppers/{FooterStepper.vue.d.ts → RuiFooterStepper.vue.d.ts} +19 -9
- package/dist/components/tables/{DataTable.vue.d.ts → RuiDataTable.vue.d.ts} +4 -3
- package/dist/components/tables/{ExpandButton.vue.d.ts → RuiExpandButton.vue.d.ts} +1 -1
- package/dist/components/tables/{TableHead.vue.d.ts → RuiTableHead.vue.d.ts} +1 -1
- package/dist/composables/index.es.js +2 -2
- package/dist/consts/typography.d.ts +1 -2
- package/dist/index-RsNqSz2V.js +177 -0
- package/dist/index.es.js +2787 -2785
- package/dist/style.css +1 -1
- package/package.json +35 -37
- package/dist/Accordion-BFcz_iFc.js +0 -8386
- package/dist/components/overlays/dialog/Dialog.vue.d.ts +0 -60
- package/dist/index-x2urm9HD.js +0 -176
- package/dist/components/accordions/accordion/{Accordion.vue.d.ts → RuiAccordion.vue.d.ts} +0 -0
- package/dist/components/accordions/accordions/{Accordions.vue.d.ts → RuiAccordions.vue.d.ts} +0 -0
- package/dist/components/cards/{CardHeader.vue.d.ts → RuiCardHeader.vue.d.ts} +0 -0
- package/dist/components/divider/{Divider.vue.d.ts → RuiDivider.vue.d.ts} +0 -0
- package/dist/components/forms/checkbox/{Checkbox.vue.d.ts → RuiCheckbox.vue.d.ts} +14 -14
- package/dist/components/forms/radio-button/radio/{Radio.vue.d.ts → RuiRadio.vue.d.ts} +17 -17
- package/dist/components/forms/select/{SimpleSelect.vue.d.ts → RuiSimpleSelect.vue.d.ts} +8 -8
- package/dist/components/forms/switch/{Switch.vue.d.ts → RuiSwitch.vue.d.ts} +5 -5
- package/dist/components/helpers/{FormTextDetail.vue.d.ts → RuiFormTextDetail.vue.d.ts} +0 -0
- package/dist/components/logos/{Logo.vue.d.ts → RuiLogo.vue.d.ts} +9 -9
- package/dist/components/overlays/menu/{Menu.vue.d.ts → RuiMenu.vue.d.ts} +32 -32
- package/dist/components/overlays/tooltip/{Tooltip.vue.d.ts → RuiTooltip.vue.d.ts} +0 -0
- package/dist/components/progress/{Progress.vue.d.ts → RuiProgress.vue.d.ts} +9 -9
- package/dist/components/steppers/{Stepper.vue.d.ts → RuiStepper.vue.d.ts} +9 -9
- package/dist/components/steppers/{StepperCustomIcon.vue.d.ts → RuiStepperCustomIcon.vue.d.ts} +0 -0
- package/dist/components/steppers/{StepperIcon.vue.d.ts → RuiStepperIcon.vue.d.ts} +0 -0
- package/dist/components/tables/{TablePagination.vue.d.ts → RuiTablePagination.vue.d.ts} +8 -8
- package/dist/components/tabs/tab/{Tab.vue.d.ts → RuiTab.vue.d.ts} +18 -18
- package/dist/components/tabs/tab-item/{TabItem.vue.d.ts → RuiTabItem.vue.d.ts} +8 -8
- package/dist/components/tabs/tab-items/{TabItems.vue.d.ts → RuiTabItems.vue.d.ts} +0 -0
- package/dist/components/tabs/tabs/{Tabs.vue.d.ts → RuiTabs.vue.d.ts} +16 -16
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useWindowSize as d, breakpointsTailwind as l, useBreakpoints as w } from "@vueuse/core";
|
|
2
|
-
import { c as n } from "./index-
|
|
2
|
+
import { c as n } from "./index-RsNqSz2V.js";
|
|
3
3
|
import { computed as _ } from "vue";
|
|
4
4
|
import { get as z } from "@vueuse/shared";
|
|
5
5
|
function E() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextColorsType } from '../../consts/colors';
|
|
2
|
-
import type { RuiIcons } from '
|
|
2
|
+
import type { RuiIcons } from '../../icons';
|
|
3
3
|
export interface Props {
|
|
4
4
|
title?: string;
|
|
5
5
|
description?: string;
|
|
@@ -10,10 +10,6 @@ export interface Props {
|
|
|
10
10
|
closeable?: boolean;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
13
|
-
variant: {
|
|
14
|
-
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
15
|
-
default: string;
|
|
16
|
-
};
|
|
17
13
|
type: {
|
|
18
14
|
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
19
15
|
default: string;
|
|
@@ -26,6 +22,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
22
|
type: globalThis.PropType<RuiIcons>;
|
|
27
23
|
default: undefined;
|
|
28
24
|
};
|
|
25
|
+
variant: {
|
|
26
|
+
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
29
|
description: {
|
|
30
30
|
type: globalThis.PropType<string>;
|
|
31
31
|
default: string;
|
|
@@ -42,10 +42,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
42
|
action: () => void;
|
|
43
43
|
close: () => void;
|
|
44
44
|
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
45
|
-
variant: {
|
|
46
|
-
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
47
|
-
default: string;
|
|
48
|
-
};
|
|
49
45
|
type: {
|
|
50
46
|
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
51
47
|
default: string;
|
|
@@ -58,6 +54,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
54
|
type: globalThis.PropType<RuiIcons>;
|
|
59
55
|
default: undefined;
|
|
60
56
|
};
|
|
57
|
+
variant: {
|
|
58
|
+
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
61
|
description: {
|
|
62
62
|
type: globalThis.PropType<string>;
|
|
63
63
|
default: string;
|
|
@@ -74,10 +74,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
74
74
|
onAction?: (() => any) | undefined;
|
|
75
75
|
onClose?: (() => any) | undefined;
|
|
76
76
|
}, {
|
|
77
|
-
variant: "default" | "outlined" | "filled";
|
|
78
77
|
type: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
79
78
|
title: string;
|
|
80
79
|
icon: RuiIcons;
|
|
80
|
+
variant: "default" | "outlined" | "filled";
|
|
81
81
|
description: string;
|
|
82
82
|
actionText: string;
|
|
83
83
|
closeable: boolean;
|
|
@@ -23,7 +23,7 @@ declare const _default: <T = undefined>(__VLS_props: Props<T> & import("vue").VN
|
|
|
23
23
|
append?(_: {}): any;
|
|
24
24
|
};
|
|
25
25
|
emit: (e: 'update:model-value', value?: T) => void;
|
|
26
|
-
}, "
|
|
26
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
27
27
|
props: Props<T>;
|
|
28
28
|
expose(exposed: {}): void;
|
|
29
29
|
attrs: any;
|
package/dist/components/buttons/button-group/{ButtonGroup.vue.d.ts → RuiButtonGroup.vue.d.ts}
RENAMED
|
@@ -16,7 +16,7 @@ declare const _default: <T = undefined>(__VLS_props: Props<T> & import("vue").VN
|
|
|
16
16
|
attrs: any;
|
|
17
17
|
slots: {};
|
|
18
18
|
emit: (e: 'update:modelValue', modelValue?: T | T[]) => void;
|
|
19
|
-
}, "
|
|
19
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
20
20
|
props: Props<T>;
|
|
21
21
|
expose(exposed: {}): void;
|
|
22
22
|
attrs: any;
|
|
@@ -7,16 +7,16 @@ export interface Props {
|
|
|
7
7
|
noPadding?: boolean;
|
|
8
8
|
}
|
|
9
9
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
10
|
-
variant: {
|
|
11
|
-
type: globalThis.PropType<"flat" | "outlined">;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
elevation: {
|
|
15
11
|
type: globalThis.PropType<number>;
|
|
16
12
|
default: number;
|
|
17
13
|
};
|
|
14
|
+
variant: {
|
|
15
|
+
type: globalThis.PropType<"flat" | "outlined">;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
rounded: {
|
|
19
|
-
type: globalThis.PropType<"sm" | "
|
|
19
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
22
|
dense: {
|
|
@@ -32,16 +32,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
34
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
35
|
-
variant: {
|
|
36
|
-
type: globalThis.PropType<"flat" | "outlined">;
|
|
37
|
-
default: string;
|
|
38
|
-
};
|
|
39
35
|
elevation: {
|
|
40
36
|
type: globalThis.PropType<number>;
|
|
41
37
|
default: number;
|
|
42
38
|
};
|
|
39
|
+
variant: {
|
|
40
|
+
type: globalThis.PropType<"flat" | "outlined">;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
43
|
rounded: {
|
|
44
|
-
type: globalThis.PropType<"sm" | "
|
|
44
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
45
45
|
default: string;
|
|
46
46
|
};
|
|
47
47
|
dense: {
|
|
@@ -57,9 +57,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
57
|
default: boolean;
|
|
58
58
|
};
|
|
59
59
|
}>>, {
|
|
60
|
-
variant: "flat" | "outlined";
|
|
61
60
|
elevation: number;
|
|
62
|
-
|
|
61
|
+
variant: "flat" | "outlined";
|
|
62
|
+
rounded: "sm" | "lg" | "md";
|
|
63
63
|
dense: boolean;
|
|
64
64
|
divide: boolean;
|
|
65
65
|
noPadding: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ContextColorsType } from '../../consts/colors';
|
|
2
|
-
import type { RuiIcons } from '
|
|
2
|
+
import type { RuiIcons } from '../../icons';
|
|
3
3
|
export interface Props {
|
|
4
4
|
tile?: boolean;
|
|
5
5
|
clickable?: boolean;
|
|
@@ -17,14 +17,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
17
17
|
type: globalThis.PropType<"sm" | "md">;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
-
variant: {
|
|
21
|
-
type: globalThis.PropType<"outlined" | "filled">;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
20
|
color: {
|
|
25
21
|
type: globalThis.PropType<"grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
26
22
|
default: string;
|
|
27
23
|
};
|
|
24
|
+
variant: {
|
|
25
|
+
type: globalThis.PropType<"outlined" | "filled">;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
28
|
disabled: {
|
|
29
29
|
type: globalThis.PropType<boolean>;
|
|
30
30
|
default: boolean;
|
|
@@ -33,10 +33,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
33
33
|
type: globalThis.PropType<boolean>;
|
|
34
34
|
default: boolean;
|
|
35
35
|
};
|
|
36
|
-
textColor: {
|
|
37
|
-
type: globalThis.PropType<string>;
|
|
38
|
-
default: undefined;
|
|
39
|
-
};
|
|
40
36
|
tile: {
|
|
41
37
|
type: globalThis.PropType<boolean>;
|
|
42
38
|
default: boolean;
|
|
@@ -53,6 +49,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
53
49
|
type: globalThis.PropType<string>;
|
|
54
50
|
default: undefined;
|
|
55
51
|
};
|
|
52
|
+
textColor: {
|
|
53
|
+
type: globalThis.PropType<string>;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
56
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
57
|
"click:close": () => void;
|
|
58
58
|
click: () => void;
|
|
@@ -61,14 +61,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
61
61
|
type: globalThis.PropType<"sm" | "md">;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
|
-
variant: {
|
|
65
|
-
type: globalThis.PropType<"outlined" | "filled">;
|
|
66
|
-
default: string;
|
|
67
|
-
};
|
|
68
64
|
color: {
|
|
69
65
|
type: globalThis.PropType<"grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
70
66
|
default: string;
|
|
71
67
|
};
|
|
68
|
+
variant: {
|
|
69
|
+
type: globalThis.PropType<"outlined" | "filled">;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
72
|
disabled: {
|
|
73
73
|
type: globalThis.PropType<boolean>;
|
|
74
74
|
default: boolean;
|
|
@@ -77,10 +77,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
77
77
|
type: globalThis.PropType<boolean>;
|
|
78
78
|
default: boolean;
|
|
79
79
|
};
|
|
80
|
-
textColor: {
|
|
81
|
-
type: globalThis.PropType<string>;
|
|
82
|
-
default: undefined;
|
|
83
|
-
};
|
|
84
80
|
tile: {
|
|
85
81
|
type: globalThis.PropType<boolean>;
|
|
86
82
|
default: boolean;
|
|
@@ -97,20 +93,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
97
93
|
type: globalThis.PropType<string>;
|
|
98
94
|
default: undefined;
|
|
99
95
|
};
|
|
96
|
+
textColor: {
|
|
97
|
+
type: globalThis.PropType<string>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
100
|
}>> & {
|
|
101
101
|
onClick?: (() => any) | undefined;
|
|
102
102
|
"onClick:close"?: (() => any) | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
size: "sm" | "md";
|
|
105
|
-
variant: "outlined" | "filled";
|
|
106
105
|
color: "grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
106
|
+
variant: "outlined" | "filled";
|
|
107
107
|
disabled: boolean;
|
|
108
108
|
closeable: boolean;
|
|
109
|
-
textColor: string;
|
|
110
109
|
tile: boolean;
|
|
111
110
|
clickable: boolean;
|
|
112
111
|
closeIcon: RuiIcons;
|
|
113
112
|
bgColor: string;
|
|
113
|
+
textColor: string;
|
|
114
114
|
}, {}>, {
|
|
115
115
|
prepend?(_: {}): any;
|
|
116
116
|
default?(_: {}): any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Color } from './utils';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
color: {
|
|
4
|
+
type: globalThis.PropType<Color>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
input: (event: {
|
|
9
|
+
saturation: number;
|
|
10
|
+
brightness: number;
|
|
11
|
+
}) => void;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
13
|
+
color: {
|
|
14
|
+
type: globalThis.PropType<Color>;
|
|
15
|
+
required: true;
|
|
16
|
+
};
|
|
17
|
+
}>> & {
|
|
18
|
+
onInput?: ((event: {
|
|
19
|
+
saturation: number;
|
|
20
|
+
brightness: number;
|
|
21
|
+
}) => any) | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
color: {
|
|
3
|
+
type: globalThis.PropType<string>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
+
color: {
|
|
8
|
+
type: globalThis.PropType<string>;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
modelValue: {
|
|
3
|
+
required: true;
|
|
4
|
+
type: globalThis.PropType<number>;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
+
modelValue: {
|
|
8
|
+
required: true;
|
|
9
|
+
type: globalThis.PropType<number>;
|
|
10
|
+
};
|
|
11
|
+
}>>, {}, {}>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Color } from './utils';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
required: true;
|
|
5
|
+
type: globalThis.PropType<Color>;
|
|
6
|
+
};
|
|
7
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
required: true;
|
|
10
|
+
type: globalThis.PropType<Color>;
|
|
11
|
+
};
|
|
12
|
+
}>>, {}, {}>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: globalThis.PropType<string>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
10
|
+
"update:model-value": (value: string) => void;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
12
|
+
modelValue: {
|
|
13
|
+
type: globalThis.PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}>> & {
|
|
17
|
+
"onUpdate:model-value"?: ((value: string) => any) | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
modelValue: string;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import tinycolor, { type ColorInput } from 'tinycolor2';
|
|
2
|
+
export type ColorFormat = 'rgb' | 'hex';
|
|
3
|
+
export declare function roundTwoDecimal(num: number): number;
|
|
4
|
+
export declare class Color {
|
|
5
|
+
instance: tinycolor.Instance;
|
|
6
|
+
alphaValue: number;
|
|
7
|
+
redValue: number;
|
|
8
|
+
greenValue: number;
|
|
9
|
+
blueValue: number;
|
|
10
|
+
hueValue: number;
|
|
11
|
+
saturationValue: number;
|
|
12
|
+
brightnessValue: number;
|
|
13
|
+
hslSaturationValue: number;
|
|
14
|
+
lightnessValue: number;
|
|
15
|
+
constructor(input?: ColorInput);
|
|
16
|
+
initAlpha: () => void;
|
|
17
|
+
initLightness: () => void;
|
|
18
|
+
initRgb: () => void;
|
|
19
|
+
initHsb: () => void;
|
|
20
|
+
toString(format?: ColorFormat): string;
|
|
21
|
+
get hexString(): string;
|
|
22
|
+
get hex(): string;
|
|
23
|
+
set hex(hexString: string);
|
|
24
|
+
set hue(value: number);
|
|
25
|
+
get hue(): number;
|
|
26
|
+
set saturation(value: number);
|
|
27
|
+
get saturation(): number;
|
|
28
|
+
set brightness(value: number);
|
|
29
|
+
get brightness(): number;
|
|
30
|
+
set red(value: number);
|
|
31
|
+
get red(): number;
|
|
32
|
+
set green(value: number);
|
|
33
|
+
get green(): number;
|
|
34
|
+
set blue(value: number);
|
|
35
|
+
get blue(): number;
|
|
36
|
+
get rgb(): number[];
|
|
37
|
+
}
|
|
38
|
+
export declare function useElementDrag(handler: (x: number, y: number) => any): {
|
|
39
|
+
handleClick: (e: {
|
|
40
|
+
clientX: number;
|
|
41
|
+
clientY: number;
|
|
42
|
+
}) => void;
|
|
43
|
+
onMouseDown: (e: MouseEvent) => void;
|
|
44
|
+
};
|
package/dist/components/forms/auto-complete/{AutoComplete.vue.d.ts → RuiAutoComplete.vue.d.ts}
RENAMED
|
@@ -33,7 +33,7 @@ declare const _default: <T extends object>(__VLS_props: Props<T> & import("vue")
|
|
|
33
33
|
}): any;
|
|
34
34
|
};
|
|
35
35
|
emit: (e: 'update:modelValue', modelValue: ModelValue<T>) => void;
|
|
36
|
-
}, "
|
|
36
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
37
37
|
props: Props<T>;
|
|
38
38
|
expose(exposed: {}): void;
|
|
39
39
|
attrs: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Props as AutoCompleteProps, ModelValue } from '../../../components/forms/auto-complete/
|
|
1
|
+
import type { Props as AutoCompleteProps, ModelValue } from '../../../components/forms/auto-complete/RuiAutoComplete.vue';
|
|
2
2
|
export interface Props<T extends object> extends Pick<AutoCompleteProps<T>, 'textProp' | 'keyProp' | 'dense' | 'itemDisabledProp' | 'variant'> {
|
|
3
3
|
data: ModelValue<T>;
|
|
4
4
|
hasValue: boolean;
|
|
@@ -10,7 +10,7 @@ declare const _default: <T extends object>(__VLS_props: Props<T> & import("vue")
|
|
|
10
10
|
attrs: any;
|
|
11
11
|
slots: {};
|
|
12
12
|
emit: (e: 'remove', option: T) => void;
|
|
13
|
-
}, "
|
|
13
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
14
14
|
props: Props<T>;
|
|
15
15
|
expose(exposed: {}): void;
|
|
16
16
|
attrs: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ContextColorsType } from '
|
|
1
|
+
import type { ContextColorsType } from '../../../../consts/colors';
|
|
2
2
|
export interface Props {
|
|
3
3
|
modelValue?: string;
|
|
4
4
|
inline?: boolean;
|
|
@@ -24,14 +24,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
type: globalThis.PropType<string>;
|
|
25
25
|
default: string;
|
|
26
26
|
};
|
|
27
|
-
disabled: {
|
|
28
|
-
type: globalThis.PropType<boolean>;
|
|
29
|
-
default: boolean;
|
|
30
|
-
};
|
|
31
27
|
modelValue: {
|
|
32
28
|
type: globalThis.PropType<string>;
|
|
33
29
|
default: string;
|
|
34
30
|
};
|
|
31
|
+
disabled: {
|
|
32
|
+
type: globalThis.PropType<boolean>;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
35
|
errorMessages: {
|
|
36
36
|
type: globalThis.PropType<string | string[]>;
|
|
37
37
|
default: () => never[];
|
|
@@ -67,14 +67,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
type: globalThis.PropType<string>;
|
|
68
68
|
default: string;
|
|
69
69
|
};
|
|
70
|
-
disabled: {
|
|
71
|
-
type: globalThis.PropType<boolean>;
|
|
72
|
-
default: boolean;
|
|
73
|
-
};
|
|
74
70
|
modelValue: {
|
|
75
71
|
type: globalThis.PropType<string>;
|
|
76
72
|
default: string;
|
|
77
73
|
};
|
|
74
|
+
disabled: {
|
|
75
|
+
type: globalThis.PropType<boolean>;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
78
|
errorMessages: {
|
|
79
79
|
type: globalThis.PropType<string | string[]>;
|
|
80
80
|
default: () => never[];
|
|
@@ -101,8 +101,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
101
|
size: "sm" | "lg";
|
|
102
102
|
color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
103
103
|
label: string;
|
|
104
|
-
disabled: boolean;
|
|
105
104
|
modelValue: string;
|
|
105
|
+
disabled: boolean;
|
|
106
106
|
errorMessages: string | string[];
|
|
107
107
|
successMessages: string | string[];
|
|
108
108
|
hint: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type TextFieldProps } from '../../../components/forms/text-field/
|
|
1
|
+
import { type TextFieldProps } from '../../../components/forms/text-field/RuiTextField.vue';
|
|
2
2
|
export interface Props extends TextFieldProps {
|
|
3
3
|
}
|
|
4
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
@@ -6,10 +6,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
6
6
|
type: globalThis.PropType<boolean>;
|
|
7
7
|
default: boolean;
|
|
8
8
|
};
|
|
9
|
-
variant: {
|
|
10
|
-
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
11
|
-
default: string;
|
|
12
|
-
};
|
|
13
9
|
color: {
|
|
14
10
|
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
15
11
|
default: undefined;
|
|
@@ -22,13 +18,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
18
|
type: globalThis.PropType<string>;
|
|
23
19
|
default: string;
|
|
24
20
|
};
|
|
21
|
+
modelValue: {
|
|
22
|
+
type: globalThis.PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
variant: {
|
|
26
|
+
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
25
29
|
disabled: {
|
|
26
30
|
type: globalThis.PropType<boolean>;
|
|
27
31
|
default: boolean;
|
|
28
32
|
};
|
|
29
|
-
|
|
30
|
-
type: globalThis.PropType<
|
|
31
|
-
default:
|
|
33
|
+
dense: {
|
|
34
|
+
type: globalThis.PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
textColor: {
|
|
38
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
39
|
+
default: undefined;
|
|
32
40
|
};
|
|
33
41
|
errorMessages: {
|
|
34
42
|
type: globalThis.PropType<string | string[]>;
|
|
@@ -42,14 +50,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
50
|
type: globalThis.PropType<string>;
|
|
43
51
|
default: string;
|
|
44
52
|
};
|
|
45
|
-
textColor: {
|
|
46
|
-
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
47
|
-
default: undefined;
|
|
48
|
-
};
|
|
49
|
-
dense: {
|
|
50
|
-
type: globalThis.PropType<boolean>;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
53
|
as: {
|
|
54
54
|
type: globalThis.PropType<string | object>;
|
|
55
55
|
default: undefined;
|
|
@@ -75,10 +75,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
75
|
type: globalThis.PropType<boolean>;
|
|
76
76
|
default: boolean;
|
|
77
77
|
};
|
|
78
|
-
variant: {
|
|
79
|
-
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
80
|
-
default: string;
|
|
81
|
-
};
|
|
82
78
|
color: {
|
|
83
79
|
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
84
80
|
default: undefined;
|
|
@@ -91,13 +87,25 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
91
87
|
type: globalThis.PropType<string>;
|
|
92
88
|
default: string;
|
|
93
89
|
};
|
|
90
|
+
modelValue: {
|
|
91
|
+
type: globalThis.PropType<string>;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
variant: {
|
|
95
|
+
type: globalThis.PropType<"default" | "outlined" | "filled">;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
94
98
|
disabled: {
|
|
95
99
|
type: globalThis.PropType<boolean>;
|
|
96
100
|
default: boolean;
|
|
97
101
|
};
|
|
98
|
-
|
|
99
|
-
type: globalThis.PropType<
|
|
100
|
-
default:
|
|
102
|
+
dense: {
|
|
103
|
+
type: globalThis.PropType<boolean>;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
106
|
+
textColor: {
|
|
107
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
108
|
+
default: undefined;
|
|
101
109
|
};
|
|
102
110
|
errorMessages: {
|
|
103
111
|
type: globalThis.PropType<string | string[]>;
|
|
@@ -111,14 +119,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
111
119
|
type: globalThis.PropType<string>;
|
|
112
120
|
default: string;
|
|
113
121
|
};
|
|
114
|
-
textColor: {
|
|
115
|
-
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
116
|
-
default: undefined;
|
|
117
|
-
};
|
|
118
|
-
dense: {
|
|
119
|
-
type: globalThis.PropType<boolean>;
|
|
120
|
-
default: boolean;
|
|
121
|
-
};
|
|
122
122
|
as: {
|
|
123
123
|
type: globalThis.PropType<string | object>;
|
|
124
124
|
default: undefined;
|
|
@@ -141,17 +141,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
141
141
|
};
|
|
142
142
|
}>>, {
|
|
143
143
|
readonly: boolean;
|
|
144
|
-
variant: "default" | "outlined" | "filled";
|
|
145
144
|
color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
146
145
|
label: string;
|
|
147
146
|
placeholder: string;
|
|
148
|
-
disabled: boolean;
|
|
149
147
|
modelValue: string;
|
|
148
|
+
variant: "default" | "outlined" | "filled";
|
|
149
|
+
disabled: boolean;
|
|
150
|
+
dense: boolean;
|
|
151
|
+
textColor: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
150
152
|
errorMessages: string | string[];
|
|
151
153
|
successMessages: string | string[];
|
|
152
154
|
hint: string;
|
|
153
|
-
textColor: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
154
|
-
dense: boolean;
|
|
155
155
|
as: string | object;
|
|
156
156
|
hideDetails: boolean;
|
|
157
157
|
prependIcon: import("../../..").RuiIcons;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type MenuProps } from '../../../components/overlays/menu/
|
|
1
|
+
import { type MenuProps } from '../../../components/overlays/menu/RuiMenu.vue';
|
|
2
2
|
export interface Props<T, K extends keyof T = keyof T> {
|
|
3
3
|
options: T[];
|
|
4
4
|
keyAttr?: K;
|
|
@@ -7,8 +7,6 @@ export interface Props<T, K extends keyof T = keyof T> {
|
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
readOnly?: boolean;
|
|
9
9
|
dense?: boolean;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
floatLabel?: boolean;
|
|
12
10
|
clearable?: boolean;
|
|
13
11
|
label?: string;
|
|
14
12
|
menuOptions?: MenuProps;
|
|
@@ -65,7 +63,7 @@ declare const _default: <T extends string | object, K extends keyof T = keyof T>
|
|
|
65
63
|
}): any;
|
|
66
64
|
};
|
|
67
65
|
emit: (e: 'update:model-value', value?: T | T[K]) => void;
|
|
68
|
-
}, "
|
|
66
|
+
}, "slots" | "attrs" | "emit"> | undefined, __VLS_expose?: ((exposed: {}) => void) | undefined, __VLS_setup?: Promise<{
|
|
69
67
|
props: Props<T, K>;
|
|
70
68
|
expose(exposed: {}): void;
|
|
71
69
|
attrs: any;
|