@rotki/ui-library 0.12.0 → 0.13.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/forms/switch/Switch.vue.d.ts +109 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.es.js +19 -18
- package/dist/{index-9kAPUqqg.js → index-Ph4f0pga.js} +2563 -2469
- package/dist/index.es.js +2761 -2760
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { ContextColorsType } from '../../../consts/colors';
|
|
2
|
+
export interface Props {
|
|
3
|
+
modelValue?: boolean;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
color?: ContextColorsType;
|
|
6
|
+
size?: 'sm';
|
|
7
|
+
label?: string;
|
|
8
|
+
hint?: string;
|
|
9
|
+
errorMessages?: string | string[];
|
|
10
|
+
successMessages?: string | string[];
|
|
11
|
+
hideDetails?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
14
|
+
color: {
|
|
15
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
size: {
|
|
19
|
+
type: globalThis.PropType<"sm">;
|
|
20
|
+
default: undefined;
|
|
21
|
+
};
|
|
22
|
+
label: {
|
|
23
|
+
type: globalThis.PropType<string>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: globalThis.PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
errorMessages: {
|
|
31
|
+
type: globalThis.PropType<string | string[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
successMessages: {
|
|
35
|
+
type: globalThis.PropType<string | string[]>;
|
|
36
|
+
default: () => never[];
|
|
37
|
+
};
|
|
38
|
+
hint: {
|
|
39
|
+
type: globalThis.PropType<string>;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: globalThis.PropType<boolean>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
hideDetails: {
|
|
47
|
+
type: globalThis.PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:modelValue": (modelValue: boolean) => void;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
53
|
+
color: {
|
|
54
|
+
type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
|
|
55
|
+
default: undefined;
|
|
56
|
+
};
|
|
57
|
+
size: {
|
|
58
|
+
type: globalThis.PropType<"sm">;
|
|
59
|
+
default: undefined;
|
|
60
|
+
};
|
|
61
|
+
label: {
|
|
62
|
+
type: globalThis.PropType<string>;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
disabled: {
|
|
66
|
+
type: globalThis.PropType<boolean>;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
errorMessages: {
|
|
70
|
+
type: globalThis.PropType<string | string[]>;
|
|
71
|
+
default: () => never[];
|
|
72
|
+
};
|
|
73
|
+
successMessages: {
|
|
74
|
+
type: globalThis.PropType<string | string[]>;
|
|
75
|
+
default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
hint: {
|
|
78
|
+
type: globalThis.PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
modelValue: {
|
|
82
|
+
type: globalThis.PropType<boolean>;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
hideDetails: {
|
|
86
|
+
type: globalThis.PropType<boolean>;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}>> & {
|
|
90
|
+
"onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
|
|
91
|
+
}, {
|
|
92
|
+
color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
|
|
93
|
+
size: "sm";
|
|
94
|
+
label: string;
|
|
95
|
+
disabled: boolean;
|
|
96
|
+
errorMessages: string | string[];
|
|
97
|
+
successMessages: string | string[];
|
|
98
|
+
hint: string;
|
|
99
|
+
modelValue: boolean;
|
|
100
|
+
hideDetails: boolean;
|
|
101
|
+
}, {}>, {
|
|
102
|
+
default?(_: {}): any;
|
|
103
|
+
}>;
|
|
104
|
+
export default _default;
|
|
105
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
106
|
+
new (): {
|
|
107
|
+
$slots: S;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
@@ -4,6 +4,7 @@ import { type Props as ButtonProps, default as RuiButton } from '../components/b
|
|
|
4
4
|
import { type Props as ButtonGroupProps, default as RuiButtonGroup } from '../components/buttons/button-group/ButtonGroup.vue';
|
|
5
5
|
import { type Props as IconProps, default as RuiIcon } from '../components/icons/Icon.vue';
|
|
6
6
|
import { type Props as CheckboxProps, default as RuiCheckbox } from '../components/forms/checkbox/Checkbox.vue';
|
|
7
|
+
import { default as RuiSwitch, type Props as SwitchProps } from '../components/forms/switch/Switch.vue';
|
|
7
8
|
import { type Props as ChipProps, default as RuiChip } from '../components/chips/Chip.vue';
|
|
8
9
|
import { type Props as DividerProps, default as RuiDivider } from '../components/divider/Divider.vue';
|
|
9
10
|
import { default as RuiStepper, type Props as StepperProps } from '../components/steppers/Stepper.vue';
|
|
@@ -30,4 +31,4 @@ import { default as RuiTabItems, type Props as TabItemsProps } from '../componen
|
|
|
30
31
|
import { default as RuiTabItem, type Props as TabItemProps } from '../components/tabs/tab-item/TabItem.vue';
|
|
31
32
|
import { default as RuiSkeletonLoader, type Props as SkeletonLoaderProps } from '../components/loaders/Skeleton.vue';
|
|
32
33
|
import type { TableColumn as DataTableColumn, GroupKeys as DataTableGroupKeys, SortColumn as DataTableSortColumn, TableSortData as DataTableSortData } from '../components/tables/TableHead.vue';
|
|
33
|
-
export { RuiAlert, RuiAutoComplete, RuiBadge, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, RuiCardHeader, RuiTabs, RuiTab, RuiTabItems, RuiTabItem, RuiTablePagination, RuiSkeletonLoader, RuiTextArea, RuiDivider, RuiTableRowExpander, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, TablePaginationData, DialogProps, ButtonProps, ButtonGroupProps, CardProps, CardHeaderProps, BadgeProps, AlertProps, CheckboxProps, ProgressProps, RadioGroupProps, RadioProps, LogoProps, StepperProps, TextFieldProps, IconProps, FooterStepperProps, TabsProps, TabProps, TabItemsProps, TabItemProps, TablePaginationProps, RevealableTextFieldProps, SkeletonLoaderProps, DividerProps, TextAreaProps, ExpandButtonProps, DataTableSortData, DataTableGroupKeys, };
|
|
34
|
+
export { RuiAlert, RuiAutoComplete, RuiBadge, RuiButton, RuiButtonGroup, RuiCheckbox, RuiChip, RuiFooterStepper, RuiIcon, RuiLogo, RuiProgress, RuiRadio, RuiRadioGroup, RuiRevealableTextField, RuiStepper, RuiSwitch, RuiTextField, RuiTooltip, RuiDataTable, RuiSimpleSelect, RuiDialog, RuiCard, RuiCardHeader, RuiTabs, RuiTab, RuiTabItems, RuiTabItem, RuiTablePagination, RuiSkeletonLoader, RuiTextArea, RuiDivider, RuiTableRowExpander, AutoCompleteProps, ChipProps, TooltipProps, SimpleSelectProps, DataTableProps, DataTableColumn, DataTableSortColumn, DataTableOptions, TablePaginationData, DialogProps, ButtonProps, ButtonGroupProps, CardProps, CardHeaderProps, BadgeProps, AlertProps, CheckboxProps, SwitchProps, ProgressProps, RadioGroupProps, RadioProps, LogoProps, StepperProps, TextFieldProps, IconProps, FooterStepperProps, TabsProps, TabProps, TabItemsProps, TabItemProps, TablePaginationProps, RevealableTextFieldProps, SkeletonLoaderProps, DividerProps, TextAreaProps, ExpandButtonProps, DataTableSortData, DataTableGroupKeys, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as m, a as d, B as T, b, d as n,
|
|
1
|
+
import { A as m, a as d, B as T, b, d as n, n as g, o as x, C, e as S, D as c, m as h, w as A, F as B, I as D, _ as F, P as I, R as k, f as v, g as w, l as P, u as f, h as E, i as G, q as L, s as j, r as q, t as H, E as _, p as y, v as z, j as J, k as K } from "../index-Ph4f0pga.js";
|
|
2
2
|
import "vue";
|
|
3
3
|
import "@vueuse/shared";
|
|
4
4
|
import "../theme-DT8UjYf9.js";
|
|
@@ -18,26 +18,27 @@ export {
|
|
|
18
18
|
x as RuiCardHeader,
|
|
19
19
|
C as RuiCheckbox,
|
|
20
20
|
S as RuiChip,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
c as RuiDataTable,
|
|
22
|
+
h as RuiDialog,
|
|
23
|
+
A as RuiDivider,
|
|
24
|
+
B as RuiFooterStepper,
|
|
25
|
+
D as RuiIcon,
|
|
26
|
+
F as RuiLogo,
|
|
27
|
+
I as RuiProgress,
|
|
28
28
|
k as RuiRadio,
|
|
29
29
|
v as RuiRadioGroup,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
w as RuiRevealableTextField,
|
|
31
|
+
P as RuiSimpleSelect,
|
|
32
|
+
f as RuiSkeletonLoader,
|
|
33
|
+
E as RuiStepper,
|
|
34
|
+
G as RuiSwitch,
|
|
34
35
|
L as RuiTab,
|
|
35
36
|
j as RuiTabItem,
|
|
36
37
|
q as RuiTabItems,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
H as RuiTablePagination,
|
|
39
|
+
_ as RuiTableRowExpander,
|
|
40
|
+
y as RuiTabs,
|
|
41
|
+
z as RuiTextArea,
|
|
42
|
+
J as RuiTextField,
|
|
43
|
+
K as RuiTooltip
|
|
43
44
|
};
|