@rotki/ui-library 0.3.0 → 0.4.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/components/buttons/button/Button.vue.d.ts +10 -0
- package/dist/components/chips/Chip.vue.d.ts +1 -0
- package/dist/components/forms/text-field/TextField.vue.d.ts +10 -0
- package/dist/components/index.d.ts +5 -1
- package/dist/components/index.es.js +21 -16
- package/dist/components/overlays/tooltip/Tooltip.vue.d.ts +12 -2
- package/dist/components/tables/DataTable.vue.d.ts +2 -1
- package/dist/components/tabs/tab/Tab.vue.d.ts +136 -0
- package/dist/components/tabs/tab-item/TabItem.vue.d.ts +53 -0
- package/dist/components/tabs/tab-items/TabItems.vue.d.ts +17 -0
- package/dist/components/tabs/tabs/Tabs.vue.d.ts +72 -0
- package/dist/composables/index.es.js +1 -1
- package/dist/{index-2304aade.js → index-393a0e94.js} +29 -27
- package/dist/index-65c6da26.js +5422 -0
- package/dist/index.es.js +2569 -2564
- package/dist/style.css +1 -1
- package/package.json +5 -1
- package/dist/index-63107447.js +0 -5008
|
@@ -8,6 +8,7 @@ export interface Props {
|
|
|
8
8
|
variant?: 'default' | 'outlined' | 'text' | 'fab';
|
|
9
9
|
icon?: boolean;
|
|
10
10
|
size?: 'sm' | 'lg';
|
|
11
|
+
tag?: 'button' | 'a';
|
|
11
12
|
}
|
|
12
13
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
13
14
|
variant: {
|
|
@@ -42,6 +43,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
43
|
type: globalThis.PropType<boolean>;
|
|
43
44
|
default: boolean;
|
|
44
45
|
};
|
|
46
|
+
tag: {
|
|
47
|
+
type: globalThis.PropType<"a" | "button">;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
45
50
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
51
|
variant: {
|
|
47
52
|
type: globalThis.PropType<"default" | "text" | "outlined" | "fab">;
|
|
@@ -75,6 +80,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
75
80
|
type: globalThis.PropType<boolean>;
|
|
76
81
|
default: boolean;
|
|
77
82
|
};
|
|
83
|
+
tag: {
|
|
84
|
+
type: globalThis.PropType<"a" | "button">;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
78
87
|
}>>, {
|
|
79
88
|
variant: "default" | "text" | "outlined" | "fab";
|
|
80
89
|
color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
@@ -84,6 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
93
|
loading: boolean;
|
|
85
94
|
rounded: boolean;
|
|
86
95
|
icon: boolean;
|
|
96
|
+
tag: "a" | "button";
|
|
87
97
|
}, {}>, {
|
|
88
98
|
prepend?(_: {}): any;
|
|
89
99
|
default?(_: {}): any;
|
|
@@ -14,6 +14,7 @@ export interface Props {
|
|
|
14
14
|
hideDetails?: boolean;
|
|
15
15
|
prependIcon?: RuiIcons;
|
|
16
16
|
appendIcon?: RuiIcons;
|
|
17
|
+
readonly?: boolean;
|
|
17
18
|
}
|
|
18
19
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
19
20
|
variant: {
|
|
@@ -36,6 +37,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
37
|
type: globalThis.PropType<boolean>;
|
|
37
38
|
default: boolean;
|
|
38
39
|
};
|
|
40
|
+
readonly: {
|
|
41
|
+
type: globalThis.PropType<boolean>;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
39
44
|
modelValue: {
|
|
40
45
|
type: globalThis.PropType<string>;
|
|
41
46
|
default: string;
|
|
@@ -94,6 +99,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
94
99
|
type: globalThis.PropType<boolean>;
|
|
95
100
|
default: boolean;
|
|
96
101
|
};
|
|
102
|
+
readonly: {
|
|
103
|
+
type: globalThis.PropType<boolean>;
|
|
104
|
+
default: boolean;
|
|
105
|
+
};
|
|
97
106
|
modelValue: {
|
|
98
107
|
type: globalThis.PropType<string>;
|
|
99
108
|
default: string;
|
|
@@ -137,6 +146,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
137
146
|
label: string;
|
|
138
147
|
placeholder: string;
|
|
139
148
|
disabled: boolean;
|
|
149
|
+
readonly: boolean;
|
|
140
150
|
modelValue: string;
|
|
141
151
|
dense: boolean;
|
|
142
152
|
hint: string;
|
|
@@ -18,4 +18,8 @@ import { default as RuiLogo } from '../components/logos/Logo.vue';
|
|
|
18
18
|
import { default as RuiSimpleSelect, type Props as SimpleSelectProps } from '../components/forms/select/SimpleSelect.vue';
|
|
19
19
|
import { type TableColumn as DataTableColumn, type TableOptions as DataTableOptions, type Props as DataTableProps, type SortColumn as DataTableSortColumn, default as RuiDataTable } from '../components/tables/DataTable.vue';
|
|
20
20
|
import { type Props as CardProps, default as RuiCard } from '../components/cards/Card.vue';
|
|
21
|
-
|
|
21
|
+
import { default as RuiTabs } from '../components/tabs/tabs/Tabs.vue';
|
|
22
|
+
import { default as RuiTab } from '../components/tabs/tab/Tab.vue';
|
|
23
|
+
import { default as RuiTabItems } from '../components/tabs/tab-items/TabItems.vue';
|
|
24
|
+
import { default as RuiTabItem } from '../components/tabs/tab-item/TabItem.vue';
|
|
25
|
+
export { RuiAlert, RuiAutoComplete, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, RuiTabs, RuiTab, RuiTabItems, RuiTabItem, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, DialogProps, ButtonProps, CardProps, };
|
|
@@ -1,29 +1,34 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as r, a as m, B as l, b as T, j as b, C as d, c as C, D as c, i as g, F as n, I as x, _ as F, P as I, R as S, d as h, e as A, h as B, f as D, l as f, n as k, m as G, k as P, g as j, T as v } from "../index-65c6da26.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vueuse/shared";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-393a0e94.js";
|
|
5
5
|
import "../all-icons.es.js";
|
|
6
6
|
import "@vueuse/core";
|
|
7
7
|
import "../colors-01d79c7b.js";
|
|
8
|
+
import "vue-router";
|
|
8
9
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
r as RuiAlert,
|
|
11
|
+
m as RuiAutoComplete,
|
|
11
12
|
l as RuiButton,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
T as RuiButtonGroup,
|
|
14
|
+
b as RuiCard,
|
|
15
|
+
d as RuiCheckbox,
|
|
16
|
+
C as RuiChip,
|
|
17
|
+
c as RuiDataTable,
|
|
18
|
+
g as RuiDialog,
|
|
19
|
+
n as RuiFooterStepper,
|
|
19
20
|
x as RuiIcon,
|
|
20
21
|
F as RuiLogo,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
I as RuiProgress,
|
|
23
|
+
S as RuiRadio,
|
|
24
|
+
h as RuiRadioGroup,
|
|
24
25
|
A as RuiRevealableTextField,
|
|
25
26
|
B as RuiSimpleSelect,
|
|
26
27
|
D as RuiStepper,
|
|
27
|
-
f as
|
|
28
|
-
|
|
28
|
+
f as RuiTab,
|
|
29
|
+
k as RuiTabItem,
|
|
30
|
+
G as RuiTabItems,
|
|
31
|
+
P as RuiTabs,
|
|
32
|
+
j as RuiTextField,
|
|
33
|
+
v as RuiTooltip
|
|
29
34
|
};
|
|
@@ -6,6 +6,7 @@ export interface Props {
|
|
|
6
6
|
openDelay?: number;
|
|
7
7
|
closeDelay?: number;
|
|
8
8
|
popper?: PopperOptions;
|
|
9
|
+
tooltipClass?: string;
|
|
9
10
|
}
|
|
10
11
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
11
12
|
text: {
|
|
@@ -32,6 +33,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
33
|
type: globalThis.PropType<number>;
|
|
33
34
|
default: number;
|
|
34
35
|
};
|
|
36
|
+
tooltipClass: {
|
|
37
|
+
type: globalThis.PropType<string>;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
35
40
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
41
|
text: {
|
|
37
42
|
type: globalThis.PropType<string | null>;
|
|
@@ -57,6 +62,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
62
|
type: globalThis.PropType<number>;
|
|
58
63
|
default: number;
|
|
59
64
|
};
|
|
65
|
+
tooltipClass: {
|
|
66
|
+
type: globalThis.PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
60
69
|
}>>, {
|
|
61
70
|
text: string | null;
|
|
62
71
|
disabled: boolean;
|
|
@@ -64,11 +73,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
73
|
hideArrow: boolean;
|
|
65
74
|
openDelay: number;
|
|
66
75
|
closeDelay: number;
|
|
76
|
+
tooltipClass: string;
|
|
67
77
|
}, {}>, {
|
|
68
|
-
|
|
78
|
+
activator?(_: {
|
|
69
79
|
open: boolean;
|
|
70
80
|
}): any;
|
|
71
|
-
|
|
81
|
+
default?(_: {}): any;
|
|
72
82
|
}>;
|
|
73
83
|
export default _default;
|
|
74
84
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -3,8 +3,9 @@ export interface TableColumn {
|
|
|
3
3
|
key: string;
|
|
4
4
|
sortable?: boolean;
|
|
5
5
|
direction?: 'asc' | 'desc';
|
|
6
|
-
align?: '
|
|
6
|
+
align?: 'start' | 'center' | 'end';
|
|
7
7
|
class?: string;
|
|
8
|
+
cellClass?: string;
|
|
8
9
|
[key: string]: any;
|
|
9
10
|
}
|
|
10
11
|
export interface SortColumn {
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { type ContextColorsType } from '../../../consts/colors';
|
|
2
|
+
export interface Props {
|
|
3
|
+
color?: ContextColorsType;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
grow?: boolean;
|
|
6
|
+
tabValue: number | string;
|
|
7
|
+
active?: boolean;
|
|
8
|
+
link?: boolean;
|
|
9
|
+
target?: string;
|
|
10
|
+
to?: string;
|
|
11
|
+
exact?: boolean;
|
|
12
|
+
exactPath?: boolean;
|
|
13
|
+
vertical?: boolean;
|
|
14
|
+
align?: 'start' | 'center' | 'end';
|
|
15
|
+
}
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
17
|
+
color: {
|
|
18
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
link: {
|
|
22
|
+
type: globalThis.PropType<boolean>;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
target: {
|
|
26
|
+
type: globalThis.PropType<string>;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
to: {
|
|
30
|
+
type: globalThis.PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: globalThis.PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
active: {
|
|
38
|
+
type: globalThis.PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
vertical: {
|
|
42
|
+
type: globalThis.PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
align: {
|
|
46
|
+
type: globalThis.PropType<"end" | "center" | "start">;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
grow: {
|
|
50
|
+
type: globalThis.PropType<boolean>;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
tabValue: {
|
|
54
|
+
type: globalThis.PropType<string | number>;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
exact: {
|
|
58
|
+
type: globalThis.PropType<boolean>;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
61
|
+
exactPath: {
|
|
62
|
+
type: globalThis.PropType<boolean>;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
66
|
+
click: (tabValue: string | number) => void;
|
|
67
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
68
|
+
color: {
|
|
69
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
link: {
|
|
73
|
+
type: globalThis.PropType<boolean>;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
target: {
|
|
77
|
+
type: globalThis.PropType<string>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
to: {
|
|
81
|
+
type: globalThis.PropType<string>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
disabled: {
|
|
85
|
+
type: globalThis.PropType<boolean>;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
active: {
|
|
89
|
+
type: globalThis.PropType<boolean>;
|
|
90
|
+
default: boolean;
|
|
91
|
+
};
|
|
92
|
+
vertical: {
|
|
93
|
+
type: globalThis.PropType<boolean>;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
align: {
|
|
97
|
+
type: globalThis.PropType<"end" | "center" | "start">;
|
|
98
|
+
default: string;
|
|
99
|
+
};
|
|
100
|
+
grow: {
|
|
101
|
+
type: globalThis.PropType<boolean>;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
tabValue: {
|
|
105
|
+
type: globalThis.PropType<string | number>;
|
|
106
|
+
required: true;
|
|
107
|
+
};
|
|
108
|
+
exact: {
|
|
109
|
+
type: globalThis.PropType<boolean>;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
exactPath: {
|
|
113
|
+
type: globalThis.PropType<boolean>;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
}>> & {
|
|
117
|
+
onClick?: ((tabValue: string | number) => any) | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
120
|
+
link: boolean;
|
|
121
|
+
target: string;
|
|
122
|
+
to: string;
|
|
123
|
+
disabled: boolean;
|
|
124
|
+
active: boolean;
|
|
125
|
+
vertical: boolean;
|
|
126
|
+
align: "end" | "center" | "start";
|
|
127
|
+
grow: boolean;
|
|
128
|
+
exact: boolean;
|
|
129
|
+
exactPath: boolean;
|
|
130
|
+
}, {}>, Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>> & Partial<Record<NonNullable<string | number>, (_: any) => any>>>;
|
|
131
|
+
export default _default;
|
|
132
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
133
|
+
new (): {
|
|
134
|
+
$slots: S;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
active?: boolean;
|
|
3
|
+
value: number | string;
|
|
4
|
+
eager?: boolean;
|
|
5
|
+
reverse?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
8
|
+
reverse: {
|
|
9
|
+
type: globalThis.PropType<boolean>;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
value: {
|
|
13
|
+
type: globalThis.PropType<string | number>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
active: {
|
|
17
|
+
type: globalThis.PropType<boolean>;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
eager: {
|
|
21
|
+
type: globalThis.PropType<boolean>;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
reverse: {
|
|
26
|
+
type: globalThis.PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
value: {
|
|
30
|
+
type: globalThis.PropType<string | number>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
active: {
|
|
34
|
+
type: globalThis.PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
eager: {
|
|
38
|
+
type: globalThis.PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>>, {
|
|
42
|
+
reverse: boolean;
|
|
43
|
+
active: boolean;
|
|
44
|
+
eager: boolean;
|
|
45
|
+
}, {}>, {
|
|
46
|
+
default?(_: {}): any;
|
|
47
|
+
}>;
|
|
48
|
+
export default _default;
|
|
49
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
50
|
+
new (): {
|
|
51
|
+
$slots: S;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface Props {
|
|
2
|
+
modelValue?: number | string;
|
|
3
|
+
}
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: globalThis.PropType<string | number>;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: globalThis.PropType<string | number>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
}>>, {
|
|
15
|
+
modelValue: string | number;
|
|
16
|
+
}, {}>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { type ContextColorsType } from '../../../consts/colors';
|
|
2
|
+
export interface Props {
|
|
3
|
+
color?: ContextColorsType;
|
|
4
|
+
vertical?: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
grow?: boolean;
|
|
7
|
+
modelValue?: number | string;
|
|
8
|
+
align?: 'start' | 'center' | 'end';
|
|
9
|
+
}
|
|
10
|
+
declare const _default: import("vue").DefineComponent<{
|
|
11
|
+
color: {
|
|
12
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
disabled: {
|
|
16
|
+
type: globalThis.PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
vertical: {
|
|
20
|
+
type: globalThis.PropType<boolean>;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
modelValue: {
|
|
24
|
+
type: globalThis.PropType<string | number>;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
27
|
+
align: {
|
|
28
|
+
type: globalThis.PropType<"end" | "center" | "start">;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
grow: {
|
|
32
|
+
type: globalThis.PropType<boolean>;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
"update:modelValue": (modelValue: string | number) => void;
|
|
37
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
color: {
|
|
39
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
disabled: {
|
|
43
|
+
type: globalThis.PropType<boolean>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
vertical: {
|
|
47
|
+
type: globalThis.PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
modelValue: {
|
|
51
|
+
type: globalThis.PropType<string | number>;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
align: {
|
|
55
|
+
type: globalThis.PropType<"end" | "center" | "start">;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
grow: {
|
|
59
|
+
type: globalThis.PropType<boolean>;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
vertical: boolean;
|
|
68
|
+
modelValue: string | number;
|
|
69
|
+
align: "end" | "center" | "start";
|
|
70
|
+
grow: boolean;
|
|
71
|
+
}, {}>;
|
|
72
|
+
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { RiAlertFill as
|
|
2
|
-
import { createGlobalState as
|
|
3
|
-
import { ref as C, computed as
|
|
1
|
+
import { RiAlertFill as $, RiAlertLine as y, RiArrowDownLine as D, RiArrowDropDownFill as E, RiArrowLeftDoubleLine as T, RiArrowLeftLine as I, RiArrowLeftSLine as v, RiArrowRightDoubleLine as B, RiArrowRightLine as M, RiArrowRightSLine as S, RiCheckLine as O, RiCheckboxBlankCircleFill as j, RiCheckboxBlankCircleLine as U, RiCheckboxBlankLine as V, RiCheckboxCircleFill as W, RiCheckboxCircleLine as q, RiCheckboxFill as G, RiCheckboxIndeterminateFill as P, RiCloseCircleLine as z, RiCloseFill as H, RiCloseLine as J, RiDatabase2Line as K, RiErrorWarningFill as N, RiErrorWarningLine as Q, RiEyeLine as X, RiEyeOffLine as Y, RiInformationFill as Z, RiInformationLine as _, RiRadioButtonLine as ee, RiMoreFill as ie } from "./all-icons.es.js";
|
|
2
|
+
import { createGlobalState as re, useColorMode as te } from "@vueuse/core";
|
|
3
|
+
import { ref as C, computed as d, watch as oe } from "vue";
|
|
4
4
|
import { set as f, get as e } from "@vueuse/shared";
|
|
5
|
-
import { c as
|
|
6
|
-
const
|
|
5
|
+
import { c as ne } from "./colors-01d79c7b.js";
|
|
6
|
+
const me = re(() => {
|
|
7
7
|
const t = [
|
|
8
|
-
|
|
8
|
+
$,
|
|
9
9
|
y,
|
|
10
|
+
D,
|
|
10
11
|
E,
|
|
11
12
|
T,
|
|
12
|
-
D,
|
|
13
13
|
I,
|
|
14
14
|
v,
|
|
15
15
|
B,
|
|
@@ -32,13 +32,15 @@ const de = ee(() => {
|
|
|
32
32
|
X,
|
|
33
33
|
Y,
|
|
34
34
|
Z,
|
|
35
|
-
_
|
|
35
|
+
_,
|
|
36
|
+
ee,
|
|
37
|
+
ie
|
|
36
38
|
], i = C({});
|
|
37
39
|
return { registeredIcons: i, registerIcons: (a) => {
|
|
38
40
|
f(i, {
|
|
39
41
|
...e(i),
|
|
40
42
|
...Object.fromEntries(
|
|
41
|
-
[...t, ...a].map(({ name: s, path:
|
|
43
|
+
[...t, ...a].map(({ name: s, path: u }) => [s, u])
|
|
42
44
|
)
|
|
43
45
|
});
|
|
44
46
|
} };
|
|
@@ -47,7 +49,7 @@ const de = ee(() => {
|
|
|
47
49
|
light: "light",
|
|
48
50
|
dark: "dark"
|
|
49
51
|
}, L = (t) => Object.fromEntries(
|
|
50
|
-
|
|
52
|
+
ne.map((i) => [
|
|
51
53
|
i,
|
|
52
54
|
{
|
|
53
55
|
DEFAULT: `var(--rui-${t}-${i}-main)`,
|
|
@@ -58,44 +60,44 @@ const de = ee(() => {
|
|
|
58
60
|
), b = {
|
|
59
61
|
light: L("light"),
|
|
60
62
|
dark: L("dark")
|
|
61
|
-
},
|
|
62
|
-
const { store: t, state: i, system: h } =
|
|
63
|
+
}, m = C({ ...b }), he = () => {
|
|
64
|
+
const { store: t, state: i, system: h } = te(), a = d(
|
|
63
65
|
() => e(t) === r.auto
|
|
64
|
-
), s =
|
|
66
|
+
), s = d(
|
|
65
67
|
() => e(a) && e(h) === r.light || e(i) === r.light
|
|
66
|
-
),
|
|
68
|
+
), u = d(
|
|
67
69
|
() => e(a) && e(h) === r.dark || e(i) === r.dark
|
|
68
|
-
), g =
|
|
70
|
+
), g = d(() => e(s) ? e(m).light : e(m).dark), c = (l) => {
|
|
69
71
|
f(t, l || r.auto);
|
|
70
72
|
}, p = () => {
|
|
71
|
-
e(a) ? c(r.light) : e(s) ? c(r.dark) : e(
|
|
73
|
+
e(a) ? c(r.light) : e(s) ? c(r.dark) : e(u) && c(r.auto);
|
|
72
74
|
}, k = (l) => {
|
|
73
|
-
f(
|
|
75
|
+
f(m, l);
|
|
74
76
|
};
|
|
75
77
|
return {
|
|
76
78
|
isAutoControlled: a,
|
|
77
79
|
isLight: s,
|
|
78
|
-
isDark:
|
|
79
|
-
config:
|
|
80
|
+
isDark: u,
|
|
81
|
+
config: m,
|
|
80
82
|
theme: g,
|
|
81
83
|
store: t,
|
|
82
84
|
state: i,
|
|
83
85
|
init: (l) => {
|
|
84
|
-
c(l.mode ?? r.auto), k(l.config ?? { ...b }), typeof window < "u" &&
|
|
86
|
+
c(l.mode ?? r.auto), k(l.config ?? { ...b }), typeof window < "u" && oe(
|
|
85
87
|
[s, g],
|
|
86
|
-
([
|
|
87
|
-
const
|
|
88
|
+
([w, x]) => {
|
|
89
|
+
const A = Object.entries(x).map(([o, n]) => ({
|
|
88
90
|
[`--rui-${o}-main`]: n.DEFAULT,
|
|
89
91
|
[`--rui-${o}-lighter`]: n.lighter,
|
|
90
92
|
[`--rui-${o}-darker`]: n.darker
|
|
91
|
-
})).reduce((o, n) => ({ ...o, ...n }), {}), R =
|
|
93
|
+
})).reduce((o, n) => ({ ...o, ...n }), {}), R = w ? r.light : r.dark, F = {
|
|
92
94
|
"--rui-text-primary": `var(--rui-${R}-text-primary)`,
|
|
93
95
|
"--rui-text-secondary": `var(--rui-${R}-text-secondary)`,
|
|
94
96
|
"--rui-text-disabled": `var(--rui-${R}-text-disabled)`
|
|
95
97
|
};
|
|
96
98
|
Object.entries({
|
|
97
|
-
...
|
|
98
|
-
|
|
99
|
+
...A,
|
|
100
|
+
...F
|
|
99
101
|
}).forEach(([o, n]) => {
|
|
100
102
|
document.documentElement.style.setProperty(o, n);
|
|
101
103
|
});
|
|
@@ -110,6 +112,6 @@ const de = ee(() => {
|
|
|
110
112
|
};
|
|
111
113
|
export {
|
|
112
114
|
r as T,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
+
he as a,
|
|
116
|
+
me as u
|
|
115
117
|
};
|