@rotki/ui-library 0.3.0 → 0.5.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 +5 -3
- package/dist/components/forms/text-field/TextField.vue.d.ts +10 -0
- package/dist/components/index.d.ts +7 -1
- package/dist/components/index.es.js +25 -19
- package/dist/components/overlays/badge/Badge.vue.d.ts +128 -0
- package/dist/components/overlays/tooltip/Tooltip.vue.d.ts +21 -11
- package/dist/components/tables/DataTable.vue.d.ts +126 -195
- package/dist/components/tabs/tab/Tab.vue.d.ts +137 -0
- package/dist/components/tabs/tab-item/TabItem.vue.d.ts +54 -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/composables/popper.d.ts +4 -226
- package/dist/{index-2304aade.js → index-393a0e94.js} +29 -27
- package/dist/index-c9ad6bd3.js +5605 -0
- package/dist/index.es.js +2571 -2565
- package/dist/style.css +1 -1
- package/dist/utils/generate-id.d.ts +1 -0
- package/package.json +39 -34
- 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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ContextColorsType } from '../../consts/colors';
|
|
2
2
|
export interface Props {
|
|
3
|
-
label
|
|
3
|
+
label?: string;
|
|
4
4
|
dismissible?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
6
6
|
size?: 'sm' | 'md';
|
|
@@ -22,7 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
label: {
|
|
24
24
|
type: globalThis.PropType<string>;
|
|
25
|
-
|
|
25
|
+
default: string;
|
|
26
26
|
};
|
|
27
27
|
disabled: {
|
|
28
28
|
type: globalThis.PropType<boolean>;
|
|
@@ -49,7 +49,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
49
49
|
};
|
|
50
50
|
label: {
|
|
51
51
|
type: globalThis.PropType<string>;
|
|
52
|
-
|
|
52
|
+
default: string;
|
|
53
53
|
};
|
|
54
54
|
disabled: {
|
|
55
55
|
type: globalThis.PropType<boolean>;
|
|
@@ -65,10 +65,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
65
65
|
variant: "outlined" | "filled";
|
|
66
66
|
color: "grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
67
67
|
size: "sm" | "md";
|
|
68
|
+
label: string;
|
|
68
69
|
disabled: boolean;
|
|
69
70
|
dismissible: boolean;
|
|
70
71
|
}, {}>, {
|
|
71
72
|
prepend?(_: {}): any;
|
|
73
|
+
default?(_: {}): any;
|
|
72
74
|
}>;
|
|
73
75
|
export default _default;
|
|
74
76
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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;
|
|
@@ -8,6 +8,7 @@ import { type Props as ChipProps, default as RuiChip } from '../components/chips
|
|
|
8
8
|
import { default as RuiStepper } from '../components/steppers/Stepper.vue';
|
|
9
9
|
import { default as RuiTextField } from '../components/forms/text-field/TextField.vue';
|
|
10
10
|
import { default as RuiTooltip, type Props as TooltipProps } from '../components/overlays/tooltip/Tooltip.vue';
|
|
11
|
+
import { type Props as BadgeProps, default as RuiBadge } from '../components/overlays/badge/Badge.vue';
|
|
11
12
|
import { type Props as DialogProps, default as RuiDialog } from '../components/overlays/dialog/Dialog.vue';
|
|
12
13
|
import { default as RuiFooterStepper } from '../components/steppers/FooterStepper.vue';
|
|
13
14
|
import { default as RuiProgress } from '../components/progress/Progress.vue';
|
|
@@ -17,5 +18,10 @@ import { default as RuiRevealableTextField } from '../components/forms/revealabl
|
|
|
17
18
|
import { default as RuiLogo } from '../components/logos/Logo.vue';
|
|
18
19
|
import { default as RuiSimpleSelect, type Props as SimpleSelectProps } from '../components/forms/select/SimpleSelect.vue';
|
|
19
20
|
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';
|
|
21
|
+
import { type TablePaginationData } from '../components/tables/TablePagination.vue';
|
|
20
22
|
import { type Props as CardProps, default as RuiCard } from '../components/cards/Card.vue';
|
|
21
|
-
|
|
23
|
+
import { default as RuiTabs } from '../components/tabs/tabs/Tabs.vue';
|
|
24
|
+
import { default as RuiTab } from '../components/tabs/tab/Tab.vue';
|
|
25
|
+
import { default as RuiTabItems } from '../components/tabs/tab-items/TabItems.vue';
|
|
26
|
+
import { default as RuiTabItem } from '../components/tabs/tab-item/TabItem.vue';
|
|
27
|
+
export { RuiAlert, RuiAutoComplete, RuiBadge, 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, TablePaginationData, DialogProps, ButtonProps, CardProps, BadgeProps, };
|
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as r, a as m, B as l, b as T, c as b, k as d, C as g, d as C, D as c, j as n, F as x, I as B, _ as F, P as I, R as S, e as h, f as A, i as D, g as f, m as k, o as G, n as P, l as j, h as v, T as L } from "../index-c9ad6bd3.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
|
-
|
|
11
|
-
l as
|
|
12
|
-
|
|
10
|
+
r as RuiAlert,
|
|
11
|
+
m as RuiAutoComplete,
|
|
12
|
+
l as RuiBadge,
|
|
13
|
+
T as RuiButton,
|
|
14
|
+
b as RuiButtonGroup,
|
|
13
15
|
d as RuiCard,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
g as RuiCheckbox,
|
|
17
|
+
C as RuiChip,
|
|
18
|
+
c as RuiDataTable,
|
|
19
|
+
n as RuiDialog,
|
|
20
|
+
x as RuiFooterStepper,
|
|
21
|
+
B as RuiIcon,
|
|
20
22
|
F as RuiLogo,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
I as RuiProgress,
|
|
24
|
+
S as RuiRadio,
|
|
25
|
+
h as RuiRadioGroup,
|
|
24
26
|
A as RuiRevealableTextField,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
G as
|
|
27
|
+
D as RuiSimpleSelect,
|
|
28
|
+
f as RuiStepper,
|
|
29
|
+
k as RuiTab,
|
|
30
|
+
G as RuiTabItem,
|
|
31
|
+
P as RuiTabItems,
|
|
32
|
+
j as RuiTabs,
|
|
33
|
+
v as RuiTextField,
|
|
34
|
+
L as RuiTooltip
|
|
29
35
|
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { type ContextColorsType } from '../../../consts/colors';
|
|
2
|
+
import { type RuiIcons } from '~/src';
|
|
3
|
+
export interface Props {
|
|
4
|
+
text?: string | null;
|
|
5
|
+
icon?: RuiIcons | null;
|
|
6
|
+
modelValue?: boolean;
|
|
7
|
+
dot?: boolean;
|
|
8
|
+
left?: boolean;
|
|
9
|
+
offsetX?: string | number;
|
|
10
|
+
offsetY?: string | number;
|
|
11
|
+
placement?: 'top' | 'center' | 'bottom';
|
|
12
|
+
size?: 'sm' | 'md' | 'lg';
|
|
13
|
+
rounded?: 'sm' | 'md' | 'lg' | 'full';
|
|
14
|
+
color?: 'default' | ContextColorsType;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
17
|
+
color: {
|
|
18
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
size: {
|
|
22
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
type: globalThis.PropType<string | null>;
|
|
27
|
+
default: null;
|
|
28
|
+
};
|
|
29
|
+
rounded: {
|
|
30
|
+
type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
icon: {
|
|
34
|
+
type: globalThis.PropType<RuiIcons | null>;
|
|
35
|
+
default: null;
|
|
36
|
+
};
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: globalThis.PropType<boolean>;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
left: {
|
|
42
|
+
type: globalThis.PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
placement: {
|
|
46
|
+
type: globalThis.PropType<"center" | "top" | "bottom">;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
dot: {
|
|
50
|
+
type: globalThis.PropType<boolean>;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
offsetX: {
|
|
54
|
+
type: globalThis.PropType<string | number>;
|
|
55
|
+
default: number;
|
|
56
|
+
};
|
|
57
|
+
offsetY: {
|
|
58
|
+
type: globalThis.PropType<string | number>;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
color: {
|
|
63
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success" | "default">;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
type: globalThis.PropType<"sm" | "lg" | "md">;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
text: {
|
|
71
|
+
type: globalThis.PropType<string | null>;
|
|
72
|
+
default: null;
|
|
73
|
+
};
|
|
74
|
+
rounded: {
|
|
75
|
+
type: globalThis.PropType<"sm" | "lg" | "md" | "full">;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
icon: {
|
|
79
|
+
type: globalThis.PropType<RuiIcons | null>;
|
|
80
|
+
default: null;
|
|
81
|
+
};
|
|
82
|
+
modelValue: {
|
|
83
|
+
type: globalThis.PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
left: {
|
|
87
|
+
type: globalThis.PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
placement: {
|
|
91
|
+
type: globalThis.PropType<"center" | "top" | "bottom">;
|
|
92
|
+
default: string;
|
|
93
|
+
};
|
|
94
|
+
dot: {
|
|
95
|
+
type: globalThis.PropType<boolean>;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
offsetX: {
|
|
99
|
+
type: globalThis.PropType<string | number>;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
offsetY: {
|
|
103
|
+
type: globalThis.PropType<string | number>;
|
|
104
|
+
default: number;
|
|
105
|
+
};
|
|
106
|
+
}>>, {
|
|
107
|
+
color: "primary" | "secondary" | "error" | "warning" | "info" | "success" | "default";
|
|
108
|
+
size: "sm" | "lg" | "md";
|
|
109
|
+
text: string | null;
|
|
110
|
+
rounded: "sm" | "lg" | "md" | "full";
|
|
111
|
+
icon: RuiIcons | null;
|
|
112
|
+
modelValue: boolean;
|
|
113
|
+
left: boolean;
|
|
114
|
+
placement: "center" | "top" | "bottom";
|
|
115
|
+
dot: boolean;
|
|
116
|
+
offsetX: string | number;
|
|
117
|
+
offsetY: string | number;
|
|
118
|
+
}, {}>, {
|
|
119
|
+
default?(_: {}): any;
|
|
120
|
+
badge?(_: {}): any;
|
|
121
|
+
icon?(_: {}): any;
|
|
122
|
+
}>;
|
|
123
|
+
export default _default;
|
|
124
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
125
|
+
new (): {
|
|
126
|
+
$slots: S;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
@@ -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: {
|
|
@@ -16,10 +17,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
17
|
type: globalThis.PropType<boolean>;
|
|
17
18
|
default: boolean;
|
|
18
19
|
};
|
|
19
|
-
popper: {
|
|
20
|
-
type: globalThis.PropType<PopperOptions>;
|
|
21
|
-
default: () => {};
|
|
22
|
-
};
|
|
23
20
|
hideArrow: {
|
|
24
21
|
type: globalThis.PropType<boolean>;
|
|
25
22
|
default: boolean;
|
|
@@ -32,6 +29,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
29
|
type: globalThis.PropType<number>;
|
|
33
30
|
default: number;
|
|
34
31
|
};
|
|
32
|
+
popper: {
|
|
33
|
+
type: globalThis.PropType<PopperOptions>;
|
|
34
|
+
default: () => {};
|
|
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>;
|
|
@@ -41,10 +46,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
46
|
type: globalThis.PropType<boolean>;
|
|
42
47
|
default: boolean;
|
|
43
48
|
};
|
|
44
|
-
popper: {
|
|
45
|
-
type: globalThis.PropType<PopperOptions>;
|
|
46
|
-
default: () => {};
|
|
47
|
-
};
|
|
48
49
|
hideArrow: {
|
|
49
50
|
type: globalThis.PropType<boolean>;
|
|
50
51
|
default: boolean;
|
|
@@ -57,18 +58,27 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
57
58
|
type: globalThis.PropType<number>;
|
|
58
59
|
default: number;
|
|
59
60
|
};
|
|
61
|
+
popper: {
|
|
62
|
+
type: globalThis.PropType<PopperOptions>;
|
|
63
|
+
default: () => {};
|
|
64
|
+
};
|
|
65
|
+
tooltipClass: {
|
|
66
|
+
type: globalThis.PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
60
69
|
}>>, {
|
|
61
70
|
text: string | null;
|
|
62
71
|
disabled: boolean;
|
|
63
|
-
popper: PopperOptions;
|
|
64
72
|
hideArrow: boolean;
|
|
65
73
|
openDelay: number;
|
|
66
74
|
closeDelay: number;
|
|
75
|
+
popper: PopperOptions;
|
|
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 & {
|