@rotki/ui-library 0.1.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.
Files changed (36) hide show
  1. package/LICENSE.md +659 -0
  2. package/README.md +170 -0
  3. package/dist/all-icons.d.ts +2495 -0
  4. package/dist/colors-01d79c7b.mjs +47 -0
  5. package/dist/components/alerts/Alert.vue.d.ts +84 -0
  6. package/dist/components/buttons/button/Button.vue.d.ts +97 -0
  7. package/dist/components/buttons/button-group/ButtonGroup.vue.d.ts +48 -0
  8. package/dist/components/chips/Chip.vue.d.ts +78 -0
  9. package/dist/components/forms/auto-complete/AutoComplete.vue.d.ts +184 -0
  10. package/dist/components/forms/auto-complete/AutoCompleteSelection.vue.d.ts +81 -0
  11. package/dist/components/forms/checkbox/Checkbox.vue.d.ts +101 -0
  12. package/dist/components/forms/radio-button/radio/Radio.vue.d.ts +98 -0
  13. package/dist/components/forms/radio-button/radio-group/RadioGroup.vue.d.ts +61 -0
  14. package/dist/components/forms/revealable-text-field/RevealableTextField.vue.d.ts +10 -0
  15. package/dist/components/forms/text-field/TextField.vue.d.ts +156 -0
  16. package/dist/components/icons/Icon.vue.d.ts +37 -0
  17. package/dist/components/logos/Logo.vue.d.ts +17 -0
  18. package/dist/components/progress/Progress.vue.d.ts +102 -0
  19. package/dist/components/steppers/FooterStepper.vue.d.ts +40 -0
  20. package/dist/components/steppers/Stepper.vue.d.ts +77 -0
  21. package/dist/components/steppers/StepperCustomIcon.vue.d.ts +21 -0
  22. package/dist/components/steppers/StepperIcon.vue.d.ts +21 -0
  23. package/dist/composables/icons.d.ts +5 -0
  24. package/dist/composables/theme.d.ts +6 -0
  25. package/dist/consts/colors.d.ts +8 -0
  26. package/dist/consts/typography.d.ts +5 -0
  27. package/dist/index.d.ts +34 -0
  28. package/dist/index.es.js +13500 -0
  29. package/dist/style.css +1 -0
  30. package/dist/theme/index.d.ts +5 -0
  31. package/dist/theme.es.js +169 -0
  32. package/dist/types/icons.d.ts +4 -0
  33. package/dist/types/stepper.d.ts +20 -0
  34. package/dist/types/theme.d.ts +40 -0
  35. package/dist/utils/generate-id.d.ts +4 -0
  36. package/package.json +128 -0
@@ -0,0 +1,47 @@
1
+ const e = [
2
+ "grey",
3
+ "indigo",
4
+ "deep-purple",
5
+ "amber",
6
+ "orange",
7
+ "pink",
8
+ "deep-orange",
9
+ "green",
10
+ "red",
11
+ "light-green",
12
+ "purple",
13
+ "lime",
14
+ "light-blue",
15
+ "yellow",
16
+ "cyan",
17
+ "teal",
18
+ "blue",
19
+ "blue-gray"
20
+ ], r = [
21
+ "50",
22
+ "100",
23
+ "200",
24
+ "300",
25
+ "400",
26
+ "500",
27
+ "600",
28
+ "700",
29
+ "800",
30
+ "900",
31
+ "a100",
32
+ "a200",
33
+ "a400",
34
+ "a700"
35
+ ], a = [
36
+ "primary",
37
+ "secondary",
38
+ "error",
39
+ "warning",
40
+ "info",
41
+ "success"
42
+ ];
43
+ export {
44
+ r as a,
45
+ e as b,
46
+ a as c
47
+ };
@@ -0,0 +1,84 @@
1
+ import { type ContextColorsType } from '../../consts/colors';
2
+ export interface Props {
3
+ title?: string;
4
+ description?: string;
5
+ type?: ContextColorsType;
6
+ icon?: string;
7
+ variant?: 'default' | 'filled' | 'outlined';
8
+ actionText?: string;
9
+ closeable?: boolean;
10
+ }
11
+ declare const _default: import("vue").DefineComponent<{
12
+ variant: {
13
+ type: globalThis.PropType<"default" | "outlined" | "filled">;
14
+ default: string;
15
+ };
16
+ type: {
17
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
18
+ default: string;
19
+ };
20
+ title: {
21
+ type: globalThis.PropType<string>;
22
+ default: string;
23
+ };
24
+ icon: {
25
+ type: globalThis.PropType<string>;
26
+ default: string;
27
+ };
28
+ description: {
29
+ type: globalThis.PropType<string>;
30
+ default: string;
31
+ };
32
+ actionText: {
33
+ type: globalThis.PropType<string>;
34
+ default: string;
35
+ };
36
+ closeable: {
37
+ type: globalThis.PropType<boolean>;
38
+ default: boolean;
39
+ };
40
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ action: () => void;
42
+ close: () => void;
43
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
44
+ variant: {
45
+ type: globalThis.PropType<"default" | "outlined" | "filled">;
46
+ default: string;
47
+ };
48
+ type: {
49
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
50
+ default: string;
51
+ };
52
+ title: {
53
+ type: globalThis.PropType<string>;
54
+ default: string;
55
+ };
56
+ icon: {
57
+ type: globalThis.PropType<string>;
58
+ default: string;
59
+ };
60
+ description: {
61
+ type: globalThis.PropType<string>;
62
+ default: string;
63
+ };
64
+ actionText: {
65
+ type: globalThis.PropType<string>;
66
+ default: string;
67
+ };
68
+ closeable: {
69
+ type: globalThis.PropType<boolean>;
70
+ default: boolean;
71
+ };
72
+ }>> & {
73
+ onAction?: (() => any) | undefined;
74
+ onClose?: (() => any) | undefined;
75
+ }, {
76
+ variant: "default" | "outlined" | "filled";
77
+ type: "primary" | "secondary" | "error" | "warning" | "info" | "success";
78
+ title: string;
79
+ icon: string;
80
+ description: string;
81
+ actionText: string;
82
+ closeable: boolean;
83
+ }, {}>;
84
+ export default _default;
@@ -0,0 +1,97 @@
1
+ import { type ContextColorsType } from '../../../consts/colors';
2
+ export interface Props {
3
+ disabled?: boolean;
4
+ loading?: boolean;
5
+ color?: ContextColorsType;
6
+ rounded?: boolean;
7
+ elevation?: number | string | null;
8
+ variant?: 'default' | 'outlined' | 'text' | 'fab';
9
+ icon?: boolean;
10
+ size?: 'sm' | 'lg';
11
+ }
12
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
13
+ variant: {
14
+ type: globalThis.PropType<"default" | "text" | "outlined" | "fab">;
15
+ default: string;
16
+ };
17
+ color: {
18
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
19
+ default: undefined;
20
+ };
21
+ size: {
22
+ type: globalThis.PropType<"sm" | "lg">;
23
+ default: undefined;
24
+ };
25
+ elevation: {
26
+ type: globalThis.PropType<string | number | null>;
27
+ default: null;
28
+ };
29
+ disabled: {
30
+ type: globalThis.PropType<boolean>;
31
+ default: boolean;
32
+ };
33
+ loading: {
34
+ type: globalThis.PropType<boolean>;
35
+ default: boolean;
36
+ };
37
+ rounded: {
38
+ type: globalThis.PropType<boolean>;
39
+ default: boolean;
40
+ };
41
+ icon: {
42
+ type: globalThis.PropType<boolean>;
43
+ default: boolean;
44
+ };
45
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
+ variant: {
47
+ type: globalThis.PropType<"default" | "text" | "outlined" | "fab">;
48
+ default: string;
49
+ };
50
+ color: {
51
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
52
+ default: undefined;
53
+ };
54
+ size: {
55
+ type: globalThis.PropType<"sm" | "lg">;
56
+ default: undefined;
57
+ };
58
+ elevation: {
59
+ type: globalThis.PropType<string | number | null>;
60
+ default: null;
61
+ };
62
+ disabled: {
63
+ type: globalThis.PropType<boolean>;
64
+ default: boolean;
65
+ };
66
+ loading: {
67
+ type: globalThis.PropType<boolean>;
68
+ default: boolean;
69
+ };
70
+ rounded: {
71
+ type: globalThis.PropType<boolean>;
72
+ default: boolean;
73
+ };
74
+ icon: {
75
+ type: globalThis.PropType<boolean>;
76
+ default: boolean;
77
+ };
78
+ }>>, {
79
+ variant: "default" | "text" | "outlined" | "fab";
80
+ color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
81
+ size: "sm" | "lg";
82
+ elevation: string | number | null;
83
+ disabled: boolean;
84
+ loading: boolean;
85
+ rounded: boolean;
86
+ icon: boolean;
87
+ }, {}>, {
88
+ prepend?(_: {}): any;
89
+ default?(_: {}): any;
90
+ append?(_: {}): any;
91
+ }>;
92
+ export default _default;
93
+ type __VLS_WithTemplateSlots<T, S> = T & {
94
+ new (): {
95
+ $slots: S;
96
+ };
97
+ };
@@ -0,0 +1,48 @@
1
+ import { type ContextColorsType } from '../../../consts/colors';
2
+ export interface Props {
3
+ vertical?: boolean;
4
+ color?: ContextColorsType;
5
+ variant?: 'default' | 'outlined' | 'text';
6
+ size?: 'sm' | 'lg';
7
+ }
8
+ declare const _default: import("vue").DefineComponent<{
9
+ variant: {
10
+ type: globalThis.PropType<"default" | "text" | "outlined">;
11
+ default: string;
12
+ };
13
+ color: {
14
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
15
+ default: undefined;
16
+ };
17
+ size: {
18
+ type: globalThis.PropType<"sm" | "lg">;
19
+ default: undefined;
20
+ };
21
+ vertical: {
22
+ type: globalThis.PropType<boolean>;
23
+ default: boolean;
24
+ };
25
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
26
+ variant: {
27
+ type: globalThis.PropType<"default" | "text" | "outlined">;
28
+ default: string;
29
+ };
30
+ color: {
31
+ type: globalThis.PropType<"primary" | "secondary" | "error" | "warning" | "info" | "success">;
32
+ default: undefined;
33
+ };
34
+ size: {
35
+ type: globalThis.PropType<"sm" | "lg">;
36
+ default: undefined;
37
+ };
38
+ vertical: {
39
+ type: globalThis.PropType<boolean>;
40
+ default: boolean;
41
+ };
42
+ }>>, {
43
+ variant: "default" | "text" | "outlined";
44
+ color: "primary" | "secondary" | "error" | "warning" | "info" | "success";
45
+ size: "sm" | "lg";
46
+ vertical: boolean;
47
+ }, {}>;
48
+ export default _default;
@@ -0,0 +1,78 @@
1
+ import { type ContextColorsType } from '../../consts/colors';
2
+ export interface Props {
3
+ label: string;
4
+ dismissible?: boolean;
5
+ disabled?: boolean;
6
+ size?: 'sm' | 'md';
7
+ variant?: 'filled' | 'outlined';
8
+ color?: 'grey' | ContextColorsType;
9
+ }
10
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
11
+ variant: {
12
+ type: globalThis.PropType<"outlined" | "filled">;
13
+ default: string;
14
+ };
15
+ color: {
16
+ type: globalThis.PropType<"grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success">;
17
+ default: string;
18
+ };
19
+ size: {
20
+ type: globalThis.PropType<"sm" | "md">;
21
+ default: string;
22
+ };
23
+ label: {
24
+ type: globalThis.PropType<string>;
25
+ required: true;
26
+ };
27
+ disabled: {
28
+ type: globalThis.PropType<boolean>;
29
+ default: boolean;
30
+ };
31
+ dismissible: {
32
+ type: globalThis.PropType<boolean>;
33
+ default: boolean;
34
+ };
35
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
+ remove: () => void;
37
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
38
+ variant: {
39
+ type: globalThis.PropType<"outlined" | "filled">;
40
+ default: string;
41
+ };
42
+ color: {
43
+ type: globalThis.PropType<"grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success">;
44
+ default: string;
45
+ };
46
+ size: {
47
+ type: globalThis.PropType<"sm" | "md">;
48
+ default: string;
49
+ };
50
+ label: {
51
+ type: globalThis.PropType<string>;
52
+ required: true;
53
+ };
54
+ disabled: {
55
+ type: globalThis.PropType<boolean>;
56
+ default: boolean;
57
+ };
58
+ dismissible: {
59
+ type: globalThis.PropType<boolean>;
60
+ default: boolean;
61
+ };
62
+ }>> & {
63
+ onRemove?: (() => any) | undefined;
64
+ }, {
65
+ variant: "outlined" | "filled";
66
+ color: "grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success";
67
+ size: "sm" | "md";
68
+ disabled: boolean;
69
+ dismissible: boolean;
70
+ }, {}>, {
71
+ prepend?(_: {}): any;
72
+ }>;
73
+ export default _default;
74
+ type __VLS_WithTemplateSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -0,0 +1,184 @@
1
+ import { type ContextColorsType } from '../../../consts/colors';
2
+ export type Option = Record<string, any>;
3
+ export type ModelValue = Option | Option[] | null;
4
+ export interface Props {
5
+ data: Option[];
6
+ modelValue: ModelValue;
7
+ nullable?: boolean;
8
+ disabled?: boolean;
9
+ searchQuery?: string;
10
+ searchProp?: string;
11
+ placeholder?: string;
12
+ label?: string;
13
+ keyProp?: string;
14
+ textProp?: string;
15
+ itemDisabledProp?: string;
16
+ variant?: 'default' | 'filled' | 'outlined';
17
+ color?: 'grey' | ContextColorsType;
18
+ dense?: boolean;
19
+ hint?: string;
20
+ errorMessages?: string[];
21
+ }
22
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
23
+ variant: {
24
+ type: globalThis.PropType<"default" | "outlined" | "filled">;
25
+ default: string;
26
+ };
27
+ color: {
28
+ type: globalThis.PropType<"grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success">;
29
+ default: string;
30
+ };
31
+ label: {
32
+ type: globalThis.PropType<string>;
33
+ default: string;
34
+ };
35
+ data: {
36
+ type: globalThis.PropType<Option[]>;
37
+ required: true;
38
+ };
39
+ placeholder: {
40
+ type: globalThis.PropType<string>;
41
+ default: string;
42
+ };
43
+ disabled: {
44
+ type: globalThis.PropType<boolean>;
45
+ default: boolean;
46
+ };
47
+ modelValue: {
48
+ type: globalThis.PropType<ModelValue>;
49
+ required: true;
50
+ };
51
+ dense: {
52
+ type: globalThis.PropType<boolean>;
53
+ default: boolean;
54
+ };
55
+ hint: {
56
+ type: globalThis.PropType<string>;
57
+ default: string;
58
+ };
59
+ errorMessages: {
60
+ type: globalThis.PropType<string[]>;
61
+ default: () => never[];
62
+ };
63
+ textProp: {
64
+ type: globalThis.PropType<string>;
65
+ default: string;
66
+ };
67
+ keyProp: {
68
+ type: globalThis.PropType<string>;
69
+ default: string;
70
+ };
71
+ itemDisabledProp: {
72
+ type: globalThis.PropType<string>;
73
+ default: string;
74
+ };
75
+ nullable: {
76
+ type: globalThis.PropType<boolean>;
77
+ default: boolean;
78
+ };
79
+ searchQuery: {
80
+ type: globalThis.PropType<string>;
81
+ default: string;
82
+ };
83
+ searchProp: {
84
+ type: globalThis.PropType<string>;
85
+ default: string;
86
+ };
87
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
88
+ "update:modelValue": (modelValue: ModelValue) => void;
89
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
90
+ variant: {
91
+ type: globalThis.PropType<"default" | "outlined" | "filled">;
92
+ default: string;
93
+ };
94
+ color: {
95
+ type: globalThis.PropType<"grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success">;
96
+ default: string;
97
+ };
98
+ label: {
99
+ type: globalThis.PropType<string>;
100
+ default: string;
101
+ };
102
+ data: {
103
+ type: globalThis.PropType<Option[]>;
104
+ required: true;
105
+ };
106
+ placeholder: {
107
+ type: globalThis.PropType<string>;
108
+ default: string;
109
+ };
110
+ disabled: {
111
+ type: globalThis.PropType<boolean>;
112
+ default: boolean;
113
+ };
114
+ modelValue: {
115
+ type: globalThis.PropType<ModelValue>;
116
+ required: true;
117
+ };
118
+ dense: {
119
+ type: globalThis.PropType<boolean>;
120
+ default: boolean;
121
+ };
122
+ hint: {
123
+ type: globalThis.PropType<string>;
124
+ default: string;
125
+ };
126
+ errorMessages: {
127
+ type: globalThis.PropType<string[]>;
128
+ default: () => never[];
129
+ };
130
+ textProp: {
131
+ type: globalThis.PropType<string>;
132
+ default: string;
133
+ };
134
+ keyProp: {
135
+ type: globalThis.PropType<string>;
136
+ default: string;
137
+ };
138
+ itemDisabledProp: {
139
+ type: globalThis.PropType<string>;
140
+ default: string;
141
+ };
142
+ nullable: {
143
+ type: globalThis.PropType<boolean>;
144
+ default: boolean;
145
+ };
146
+ searchQuery: {
147
+ type: globalThis.PropType<string>;
148
+ default: string;
149
+ };
150
+ searchProp: {
151
+ type: globalThis.PropType<string>;
152
+ default: string;
153
+ };
154
+ }>> & {
155
+ "onUpdate:modelValue"?: ((modelValue: ModelValue) => any) | undefined;
156
+ }, {
157
+ variant: "default" | "outlined" | "filled";
158
+ color: "grey" | "primary" | "secondary" | "error" | "warning" | "info" | "success";
159
+ label: string;
160
+ placeholder: string;
161
+ disabled: boolean;
162
+ dense: boolean;
163
+ hint: string;
164
+ errorMessages: string[];
165
+ textProp: string;
166
+ keyProp: string;
167
+ itemDisabledProp: string;
168
+ nullable: boolean;
169
+ searchQuery: string;
170
+ searchProp: string;
171
+ }, {}>, {
172
+ prefix?(_: {
173
+ class: string;
174
+ }): any;
175
+ default?(_: {
176
+ [x: string]: any;
177
+ }): any;
178
+ }>;
179
+ export default _default;
180
+ type __VLS_WithTemplateSlots<T, S> = T & {
181
+ new (): {
182
+ $slots: S;
183
+ };
184
+ };
@@ -0,0 +1,81 @@
1
+ import type { Props as AutoCompleteProps, ModelValue, Option } from '../../../components/forms/auto-complete/AutoComplete.vue';
2
+ export interface Props extends Pick<AutoCompleteProps, 'textProp' | 'keyProp' | 'dense' | 'itemDisabledProp' | 'variant'> {
3
+ data: ModelValue;
4
+ hasValue: boolean;
5
+ wrapperWidth: number;
6
+ }
7
+ declare const _default: import("vue").DefineComponent<{
8
+ variant: {
9
+ type: globalThis.PropType<"default" | "outlined" | "filled">;
10
+ };
11
+ data: {
12
+ type: globalThis.PropType<ModelValue>;
13
+ required: true;
14
+ };
15
+ dense: {
16
+ type: globalThis.PropType<boolean>;
17
+ default: boolean;
18
+ };
19
+ wrapperWidth: {
20
+ type: globalThis.PropType<number>;
21
+ required: true;
22
+ };
23
+ textProp: {
24
+ type: globalThis.PropType<string>;
25
+ default: string;
26
+ };
27
+ keyProp: {
28
+ type: globalThis.PropType<string>;
29
+ default: string;
30
+ };
31
+ itemDisabledProp: {
32
+ type: globalThis.PropType<string>;
33
+ default: string;
34
+ };
35
+ hasValue: {
36
+ type: globalThis.PropType<boolean>;
37
+ required: true;
38
+ };
39
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ remove: (option: Option) => void;
41
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ variant: {
43
+ type: globalThis.PropType<"default" | "outlined" | "filled">;
44
+ };
45
+ data: {
46
+ type: globalThis.PropType<ModelValue>;
47
+ required: true;
48
+ };
49
+ dense: {
50
+ type: globalThis.PropType<boolean>;
51
+ default: boolean;
52
+ };
53
+ wrapperWidth: {
54
+ type: globalThis.PropType<number>;
55
+ required: true;
56
+ };
57
+ textProp: {
58
+ type: globalThis.PropType<string>;
59
+ default: string;
60
+ };
61
+ keyProp: {
62
+ type: globalThis.PropType<string>;
63
+ default: string;
64
+ };
65
+ itemDisabledProp: {
66
+ type: globalThis.PropType<string>;
67
+ default: string;
68
+ };
69
+ hasValue: {
70
+ type: globalThis.PropType<boolean>;
71
+ required: true;
72
+ };
73
+ }>> & {
74
+ onRemove?: ((option: Option) => any) | undefined;
75
+ }, {
76
+ dense: boolean;
77
+ textProp: string;
78
+ keyProp: string;
79
+ itemDisabledProp: string;
80
+ }, {}>;
81
+ export default _default;