@rotki/ui-library 0.10.0 → 0.11.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/README.md +18 -3
- package/dist/components/alerts/Alert.vue.d.ts +2 -2
- package/dist/components/buttons/button/Button.vue.d.ts +1 -1
- package/dist/components/buttons/button-group/ButtonGroup.vue.d.ts +1 -1
- package/dist/components/chips/Chip.vue.d.ts +2 -2
- package/dist/components/forms/auto-complete/AutoComplete.vue.d.ts +1 -1
- package/dist/components/forms/checkbox/Checkbox.vue.d.ts +1 -1
- package/dist/components/forms/radio-button/radio/Radio.vue.d.ts +1 -1
- package/dist/components/forms/radio-button/radio-group/RadioGroup.vue.d.ts +1 -1
- package/dist/components/forms/text-area/TextArea.vue.d.ts +2 -2
- package/dist/components/forms/text-field/TextField.vue.d.ts +2 -2
- package/dist/components/icons/Icon.vue.d.ts +2 -2
- package/dist/components/index.d.ts +2 -2
- package/dist/components/index.es.js +2 -2
- package/dist/components/overlays/badge/Badge.vue.d.ts +2 -2
- package/dist/components/progress/Progress.vue.d.ts +1 -1
- package/dist/components/tables/DataTable.vue.d.ts +71 -102
- package/dist/components/tables/ExpandButton.vue.d.ts +1 -1
- package/dist/components/tables/TableHead.vue.d.ts +6 -4
- package/dist/components/tabs/tab/Tab.vue.d.ts +1 -1
- package/dist/components/tabs/tabs/Tabs.vue.d.ts +1 -1
- package/dist/composables/breakpoint.d.ts +1 -1
- package/dist/composables/defaults/table.d.ts +4 -4
- package/dist/composables/icons.d.ts +1 -1
- package/dist/composables/index.es.js +17 -17
- package/dist/composables/popper.d.ts +7 -7
- package/dist/composables/sticky-header.d.ts +2 -2
- package/dist/composables/theme.d.ts +1 -1
- package/dist/consts/typography.d.ts +1 -1
- package/dist/icons/icons_6.es.js +2 -2
- package/dist/{index-2kT4UFtO.js → index-H4RSbryN.js} +3137 -3021
- package/dist/index.d.ts +2 -2
- package/dist/index.es.js +6 -6
- package/dist/style.css +1 -1
- package/dist/theme/index.es.js +51 -51
- package/dist/{theme-V5yenaDk.js → theme-DT8UjYf9.js} +44 -39
- package/dist/types/stepper.d.ts +3 -3
- package/dist/types/theme.d.ts +3 -3
- package/dist/utils/form-text-detail.d.ts +3 -3
- package/dist/utils/generate-id.d.ts +1 -1
- package/dist/utils/helpers.d.ts +7 -7
- package/package.json +45 -44
package/dist/theme/index.es.js
CHANGED
|
@@ -17,11 +17,11 @@ const u = Object.fromEntries(
|
|
|
17
17
|
t.map((p) => [
|
|
18
18
|
p,
|
|
19
19
|
{
|
|
20
|
-
DEFAULT: `rgba(var(--rui-${r}-${p}-main), <alpha-value>)`,
|
|
21
20
|
darker: `rgba(var(--rui-${r}-${p}-darker), <alpha-value>)`,
|
|
21
|
+
DEFAULT: `rgba(var(--rui-${r}-${p}-main), <alpha-value>)`,
|
|
22
22
|
lighter: `rgba(var(--rui-${r}-${p}-lighter), <alpha-value>)`,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
shade: `color-mix(in srgb, black calc(<alpha-value> * 100%), rgb(var(--rui-${r}-${p}-main)))`,
|
|
24
|
+
tint: `color-mix(in srgb, white calc(<alpha-value> * 100%), rgb(var(--rui-${r}-${p}-main)))`
|
|
25
25
|
}
|
|
26
26
|
])
|
|
27
27
|
)
|
|
@@ -30,11 +30,11 @@ const u = Object.fromEntries(
|
|
|
30
30
|
t.map((r) => [
|
|
31
31
|
r,
|
|
32
32
|
{
|
|
33
|
-
DEFAULT: `rgba(var(--rui-${r}-main), <alpha-value>)`,
|
|
34
33
|
darker: `rgba(var(--rui-${r}-darker), <alpha-value>)`,
|
|
34
|
+
DEFAULT: `rgba(var(--rui-${r}-main), <alpha-value>)`,
|
|
35
35
|
lighter: `rgba(var(--rui-${r}-lighter), <alpha-value>)`,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
shade: `color-mix(in srgb, black calc(<alpha-value> * 100%), rgb(var(--rui-${r}-main)))`,
|
|
37
|
+
tint: `color-mix(in srgb, white calc(<alpha-value> * 100%), rgb(var(--rui-${r}-main)))`
|
|
38
38
|
}
|
|
39
39
|
])
|
|
40
40
|
), x = Object.fromEntries(
|
|
@@ -43,19 +43,19 @@ const u = Object.fromEntries(
|
|
|
43
43
|
{
|
|
44
44
|
text: {
|
|
45
45
|
DEFAULT: `var(--rui-${r}-text-primary)`,
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
disabled: `var(--rui-${r}-text-disabled)`,
|
|
47
|
+
secondary: `var(--rui-${r}-text-secondary)`
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
])
|
|
51
51
|
), n = {
|
|
52
52
|
text: {
|
|
53
53
|
DEFAULT: "var(--rui-text-primary)",
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
disabled: "var(--rui-text-disabled)",
|
|
55
|
+
secondary: "var(--rui-text-secondary)"
|
|
56
56
|
}
|
|
57
57
|
}, w = o(
|
|
58
|
-
({ addUtilities: r,
|
|
58
|
+
({ addUtilities: r, addVariant: p, matchUtilities: e }) => {
|
|
59
59
|
r({
|
|
60
60
|
".text-body-1": {
|
|
61
61
|
"@apply text-base": {}
|
|
@@ -63,22 +63,10 @@ const u = Object.fromEntries(
|
|
|
63
63
|
".text-body-2": {
|
|
64
64
|
"@apply text-sm": {}
|
|
65
65
|
},
|
|
66
|
-
".text-subtitle-1": {
|
|
67
|
-
"@apply text-base": {},
|
|
68
|
-
"line-height": "1.75rem"
|
|
69
|
-
},
|
|
70
|
-
".text-subtitle-2": {
|
|
71
|
-
"@apply text-sm font-medium": {},
|
|
72
|
-
"line-height": "1.25rem"
|
|
73
|
-
},
|
|
74
66
|
".text-caption": {
|
|
75
67
|
"@apply text-xs": {},
|
|
76
68
|
"line-height": "1.25rem"
|
|
77
69
|
},
|
|
78
|
-
".text-overline": {
|
|
79
|
-
"@apply text-xs uppercase": {},
|
|
80
|
-
"line-height": "2rem"
|
|
81
|
-
},
|
|
82
70
|
".text-h1": {
|
|
83
71
|
"@apply text-8xl font-light": {},
|
|
84
72
|
"line-height": "7rem"
|
|
@@ -102,8 +90,20 @@ const u = Object.fromEntries(
|
|
|
102
90
|
".text-h6": {
|
|
103
91
|
"@apply text-xl font-medium": {},
|
|
104
92
|
"line-height": "2rem"
|
|
93
|
+
},
|
|
94
|
+
".text-overline": {
|
|
95
|
+
"@apply text-xs uppercase": {},
|
|
96
|
+
"line-height": "2rem"
|
|
97
|
+
},
|
|
98
|
+
".text-subtitle-1": {
|
|
99
|
+
"@apply text-base": {},
|
|
100
|
+
"line-height": "1.75rem"
|
|
101
|
+
},
|
|
102
|
+
".text-subtitle-2": {
|
|
103
|
+
"@apply text-sm font-medium": {},
|
|
104
|
+
"line-height": "1.25rem"
|
|
105
105
|
}
|
|
106
|
-
}),
|
|
106
|
+
}), e(
|
|
107
107
|
Object.fromEntries(
|
|
108
108
|
["bg-tint", "bg-shade", "text-tint", "text-shade"].map((i) => [
|
|
109
109
|
i,
|
|
@@ -112,38 +112,13 @@ const u = Object.fromEntries(
|
|
|
112
112
|
})
|
|
113
113
|
])
|
|
114
114
|
)
|
|
115
|
-
),
|
|
115
|
+
), p("color-mix-supported", "@supports (color-mix())");
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
theme: {
|
|
119
119
|
extend: {
|
|
120
|
-
colors: {
|
|
121
|
-
rui: {
|
|
122
|
-
...u,
|
|
123
|
-
...a,
|
|
124
|
-
...x,
|
|
125
|
-
light: {
|
|
126
|
-
...a.light,
|
|
127
|
-
...x.light
|
|
128
|
-
},
|
|
129
|
-
dark: {
|
|
130
|
-
...a.dark,
|
|
131
|
-
...x.dark
|
|
132
|
-
},
|
|
133
|
-
...v,
|
|
134
|
-
...n
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
120
|
boxShadow: {
|
|
138
121
|
1: "0px 2px 1px -1px var(--rui-shadow-primary), 0px 1px 1px var(--rui-shadow-secondary), 0px 1px 3px var(--rui-shadow-tertiary)",
|
|
139
|
-
2: "0px 3px 1px -2px var(--rui-shadow-primary), 0px 2px 2px var(--rui-shadow-secondary), 0px 1px 5px var(--rui-shadow-tertiary)",
|
|
140
|
-
3: "0px 3px 3px -2px var(--rui-shadow-primary), 0px 3px 4px var(--rui-shadow-secondary), 0px 1px 8px var(--rui-shadow-tertiary)",
|
|
141
|
-
4: "0px 2px 4px -1px var(--rui-shadow-primary), 0px 4px 5px var(--rui-shadow-secondary), 0px 1px 10px var(--rui-shadow-tertiary)",
|
|
142
|
-
5: "0px 3px 5px -1px var(--rui-shadow-primary), 0px 5px 8px var(--rui-shadow-secondary), 0px 1px 14px var(--rui-shadow-tertiary)",
|
|
143
|
-
6: "0px 3px 5px -1px var(--rui-shadow-primary), 0px 6px 10px var(--rui-shadow-secondary), 0px 1px 18px var(--rui-shadow-tertiary)",
|
|
144
|
-
7: "0px 4px 5px -2px var(--rui-shadow-primary), 0px 7px 10px 1px var(--rui-shadow-secondary), 0px 2px 16px 1px var(--rui-shadow-tertiary)",
|
|
145
|
-
8: "0px 5px 5px -3px var(--rui-shadow-primary), 0px 8px 10px 1px var(--rui-shadow-secondary), 0px 3px 14px 2px var(--rui-shadow-tertiary)",
|
|
146
|
-
9: "0px 5px 6px -3px var(--rui-shadow-primary), 0px 9px 12px 1px var(--rui-shadow-secondary), 0px 3px 16px 2px var(--rui-shadow-tertiary)",
|
|
147
122
|
10: "0px 6px 6px -3px var(--rui-shadow-primary), 0px 10px 14px 1px var(--rui-shadow-secondary), 0px 4px 18px 3px var(--rui-shadow-tertiary)",
|
|
148
123
|
11: "0px 6px 7px -4px var(--rui-shadow-primary), 0px 11px 15px 1px var(--rui-shadow-secondary), 0px 4px 20px 3px var(--rui-shadow-tertiary)",
|
|
149
124
|
12: "0px 7px 8px -4px var(--rui-shadow-primary), 0px 12px 17px 2px var(--rui-shadow-secondary), 0px 5px 22px 4px var(--rui-shadow-tertiary)",
|
|
@@ -154,11 +129,36 @@ const u = Object.fromEntries(
|
|
|
154
129
|
17: "0px 8px 11px -5px var(--rui-shadow-primary), 0px 17px 26px 2px var(--rui-shadow-secondary), 0px 6px 32px 5px var(--rui-shadow-tertiary)",
|
|
155
130
|
18: "0px 9px 11px -5px var(--rui-shadow-primary), 0px 18px 28px 2px var(--rui-shadow-secondary), 0px 7px 34px 6px var(--rui-shadow-tertiary)",
|
|
156
131
|
19: "0px 9px 12px -6px var(--rui-shadow-primary), 0px 19px 29px 2px var(--rui-shadow-secondary), 0px 7px 36px 6px var(--rui-shadow-tertiary)",
|
|
132
|
+
2: "0px 3px 1px -2px var(--rui-shadow-primary), 0px 2px 2px var(--rui-shadow-secondary), 0px 1px 5px var(--rui-shadow-tertiary)",
|
|
157
133
|
20: "0px 10px 13px -6px var(--rui-shadow-primary), 0px 20px 31px 3px var(--rui-shadow-secondary), 0px 8px 38px 7px var(--rui-shadow-tertiary)",
|
|
158
134
|
21: "0px 10px 13px -6px var(--rui-shadow-primary), 0px 21px 33px 3px var(--rui-shadow-secondary), 0px 8px 40px 7px var(--rui-shadow-tertiary)",
|
|
159
135
|
22: "0px 10px 14px -6px var(--rui-shadow-primary), 0px 22px 35px 3px var(--rui-shadow-secondary), 0px 8px 42px 7px var(--rui-shadow-tertiary)",
|
|
160
136
|
23: "0px 11px 14px -7px var(--rui-shadow-primary), 0px 23px 36px 3px var(--rui-shadow-secondary), 0px 9px 44px 8px var(--rui-shadow-tertiary)",
|
|
161
|
-
24: "0px 11px 15px -7px var(--rui-shadow-primary), 0px 24px 38px 3px var(--rui-shadow-secondary), 0px 9px 46px 8px var(--rui-shadow-tertiary)"
|
|
137
|
+
24: "0px 11px 15px -7px var(--rui-shadow-primary), 0px 24px 38px 3px var(--rui-shadow-secondary), 0px 9px 46px 8px var(--rui-shadow-tertiary)",
|
|
138
|
+
3: "0px 3px 3px -2px var(--rui-shadow-primary), 0px 3px 4px var(--rui-shadow-secondary), 0px 1px 8px var(--rui-shadow-tertiary)",
|
|
139
|
+
4: "0px 2px 4px -1px var(--rui-shadow-primary), 0px 4px 5px var(--rui-shadow-secondary), 0px 1px 10px var(--rui-shadow-tertiary)",
|
|
140
|
+
5: "0px 3px 5px -1px var(--rui-shadow-primary), 0px 5px 8px var(--rui-shadow-secondary), 0px 1px 14px var(--rui-shadow-tertiary)",
|
|
141
|
+
6: "0px 3px 5px -1px var(--rui-shadow-primary), 0px 6px 10px var(--rui-shadow-secondary), 0px 1px 18px var(--rui-shadow-tertiary)",
|
|
142
|
+
7: "0px 4px 5px -2px var(--rui-shadow-primary), 0px 7px 10px 1px var(--rui-shadow-secondary), 0px 2px 16px 1px var(--rui-shadow-tertiary)",
|
|
143
|
+
8: "0px 5px 5px -3px var(--rui-shadow-primary), 0px 8px 10px 1px var(--rui-shadow-secondary), 0px 3px 14px 2px var(--rui-shadow-tertiary)",
|
|
144
|
+
9: "0px 5px 6px -3px var(--rui-shadow-primary), 0px 9px 12px 1px var(--rui-shadow-secondary), 0px 3px 16px 2px var(--rui-shadow-tertiary)"
|
|
145
|
+
},
|
|
146
|
+
colors: {
|
|
147
|
+
rui: {
|
|
148
|
+
...u,
|
|
149
|
+
...a,
|
|
150
|
+
...x,
|
|
151
|
+
dark: {
|
|
152
|
+
...a.dark,
|
|
153
|
+
...x.dark
|
|
154
|
+
},
|
|
155
|
+
light: {
|
|
156
|
+
...a.light,
|
|
157
|
+
...x.light
|
|
158
|
+
},
|
|
159
|
+
...v,
|
|
160
|
+
...n
|
|
161
|
+
}
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -2,7 +2,7 @@ import { RiArrowDownLine as $, RiArrowDropDownFill as y, RiArrowLeftDoubleLine a
|
|
|
2
2
|
import { RiDatabase2Line as M } from "./icons/icons_2.es.js";
|
|
3
3
|
import { RiAlertFill as S, RiAlertLine as O, RiCheckLine as j, RiCheckboxBlankCircleFill as U, RiCheckboxBlankCircleLine as V, RiCheckboxBlankLine as W, RiCheckboxCircleFill as q, RiCheckboxCircleLine as G, RiCheckboxFill as P, RiCheckboxIndeterminateFill as z, RiCloseCircleLine as H, RiCloseFill as J, RiCloseLine 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 "./icons/icons_5.es.js";
|
|
4
4
|
import { createGlobalState as re, useColorMode as te } from "@vueuse/core";
|
|
5
|
-
import { ref as C, computed as
|
|
5
|
+
import { ref as C, computed as m, watch as oe } from "vue";
|
|
6
6
|
import { set as f, get as e } from "@vueuse/shared";
|
|
7
7
|
import { c as ne } from "./colors-ikihApJv.js";
|
|
8
8
|
const Re = re(() => {
|
|
@@ -42,60 +42,59 @@ const Re = re(() => {
|
|
|
42
42
|
f(i, {
|
|
43
43
|
...e(i),
|
|
44
44
|
...Object.fromEntries(
|
|
45
|
-
[...t, ...a].map(({ name: s, path:
|
|
45
|
+
[...t, ...a].map(({ name: s, path: u }) => [s, u])
|
|
46
46
|
)
|
|
47
47
|
});
|
|
48
48
|
} };
|
|
49
49
|
}), r = {
|
|
50
50
|
auto: "auto",
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
51
|
+
dark: "dark",
|
|
52
|
+
light: "light"
|
|
53
|
+
};
|
|
54
|
+
function L(t) {
|
|
55
|
+
return Object.fromEntries(
|
|
56
|
+
ne.map((i) => [
|
|
57
|
+
i,
|
|
58
|
+
{
|
|
59
|
+
darker: `var(--rui-${t}-${i}-darker)`,
|
|
60
|
+
DEFAULT: `var(--rui-${t}-${i}-main)`,
|
|
61
|
+
lighter: `var(--rui-${t}-${i}-lighter)`
|
|
62
|
+
}
|
|
63
|
+
])
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
const b = {
|
|
67
|
+
dark: L("dark"),
|
|
68
|
+
light: L("light")
|
|
69
|
+
}, d = C({ ...b });
|
|
70
|
+
function fe() {
|
|
71
|
+
const { state: t, store: i, system: h } = te(), a = m(
|
|
72
|
+
() => e(i) === r.auto
|
|
73
|
+
), s = m(
|
|
74
|
+
() => e(a) && e(h) === r.light || e(t) === r.light
|
|
75
|
+
), u = m(
|
|
76
|
+
() => e(a) && e(h) === r.dark || e(t) === r.dark
|
|
77
|
+
), g = m(() => e(s) ? e(d).light : e(d).dark), c = (l) => {
|
|
78
|
+
f(i, l || r.auto);
|
|
74
79
|
}, p = () => {
|
|
75
|
-
e(a) ? c(r.light) : e(s) ? c(r.dark) : e(
|
|
80
|
+
e(a) ? c(r.light) : e(s) ? c(r.dark) : e(u) && c(r.auto);
|
|
76
81
|
}, k = (l) => {
|
|
77
82
|
f(d, l);
|
|
78
83
|
};
|
|
79
84
|
return {
|
|
80
|
-
isAutoControlled: a,
|
|
81
|
-
isLight: s,
|
|
82
|
-
isDark: m,
|
|
83
85
|
config: d,
|
|
84
|
-
theme: g,
|
|
85
|
-
store: t,
|
|
86
|
-
state: i,
|
|
87
86
|
init: (l) => {
|
|
88
87
|
c(l.mode ?? r.auto), k(l.config ?? { ...b }), typeof window < "u" && oe(
|
|
89
88
|
[s, g],
|
|
90
89
|
([w, x]) => {
|
|
91
90
|
const A = Object.entries(x).map(([o, n]) => ({
|
|
92
|
-
[`--rui-${o}-
|
|
91
|
+
[`--rui-${o}-darker`]: n.darker,
|
|
93
92
|
[`--rui-${o}-lighter`]: n.lighter,
|
|
94
|
-
[`--rui-${o}-
|
|
93
|
+
[`--rui-${o}-main`]: n.DEFAULT
|
|
95
94
|
})).reduce((o, n) => ({ ...o, ...n }), {}), R = w ? r.light : r.dark, F = {
|
|
95
|
+
"--rui-text-disabled": `var(--rui-${R}-text-disabled)`,
|
|
96
96
|
"--rui-text-primary": `var(--rui-${R}-text-primary)`,
|
|
97
|
-
"--rui-text-secondary": `var(--rui-${R}-text-secondary)
|
|
98
|
-
"--rui-text-disabled": `var(--rui-${R}-text-disabled)`
|
|
97
|
+
"--rui-text-secondary": `var(--rui-${R}-text-secondary)`
|
|
99
98
|
};
|
|
100
99
|
Object.entries({
|
|
101
100
|
...A,
|
|
@@ -107,11 +106,17 @@ const Re = re(() => {
|
|
|
107
106
|
{ immediate: !0 }
|
|
108
107
|
);
|
|
109
108
|
},
|
|
109
|
+
isAutoControlled: a,
|
|
110
|
+
isDark: u,
|
|
111
|
+
isLight: s,
|
|
110
112
|
setThemeConfig: k,
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
state: t,
|
|
114
|
+
store: i,
|
|
115
|
+
switchThemeScheme: c,
|
|
116
|
+
theme: g,
|
|
117
|
+
toggleThemeMode: p
|
|
113
118
|
};
|
|
114
|
-
}
|
|
119
|
+
}
|
|
115
120
|
export {
|
|
116
121
|
r as T,
|
|
117
122
|
fe as a,
|
package/dist/types/stepper.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const StepperState: {
|
|
2
|
-
readonly inactive: "inactive";
|
|
3
2
|
readonly active: "active";
|
|
4
3
|
readonly done: "done";
|
|
5
4
|
readonly error: "error";
|
|
6
|
-
readonly
|
|
5
|
+
readonly inactive: "inactive";
|
|
7
6
|
readonly info: "info";
|
|
8
7
|
readonly success: "success";
|
|
8
|
+
readonly warning: "warning";
|
|
9
9
|
};
|
|
10
10
|
export type StepperState = (typeof StepperState)[keyof typeof StepperState];
|
|
11
11
|
export interface StepperStep {
|
|
@@ -15,7 +15,7 @@ export interface StepperStep {
|
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
}
|
|
17
17
|
export declare const StepperOrientation: {
|
|
18
|
-
readonly vertical: "vertical";
|
|
19
18
|
readonly horizontal: "horizontal";
|
|
19
|
+
readonly vertical: "vertical";
|
|
20
20
|
};
|
|
21
21
|
export type StepperOrientation = (typeof StepperOrientation)[keyof typeof StepperOrientation];
|
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { BasicColorSchema } from '@vueuse/core';
|
|
2
|
+
import type { GeneratedIcon } from '../types/icons';
|
|
3
3
|
import type { ComputedRef, Ref } from 'vue';
|
|
4
4
|
export declare const ThemeMode: {
|
|
5
5
|
readonly auto: "auto";
|
|
6
|
-
readonly light: "light";
|
|
7
6
|
readonly dark: "dark";
|
|
7
|
+
readonly light: "light";
|
|
8
8
|
};
|
|
9
9
|
export type ThemeMode = (typeof ThemeMode)[keyof typeof ThemeMode];
|
|
10
10
|
export interface ColorIntensity {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare
|
|
1
|
+
import type { MaybeRef } from '@vueuse/shared';
|
|
2
|
+
export declare function useFormTextDetail(errorMessages: MaybeRef<string | string[]>, successMessages: MaybeRef<string | string[]>): {
|
|
3
3
|
formattedErrorMessages: globalThis.ComputedRef<string[]>;
|
|
4
4
|
formattedSuccessMessages: globalThis.ComputedRef<string[]>;
|
|
5
5
|
hasError: globalThis.ComputedRef<boolean>;
|
|
6
|
-
hasSuccess: globalThis.ComputedRef<boolean>;
|
|
7
6
|
hasMessages: globalThis.ComputedRef<boolean>;
|
|
7
|
+
hasSuccess: globalThis.ComputedRef<boolean>;
|
|
8
8
|
};
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { SetupContext } from 'vue';
|
|
2
2
|
interface CurrencyOptions {
|
|
3
3
|
currency?: string;
|
|
4
4
|
locale?: string;
|
|
@@ -12,31 +12,31 @@ type SetupContextAttrsKeys = (keyof SetupContextAttrs)[];
|
|
|
12
12
|
* @param {number} amount
|
|
13
13
|
* @param {CurrencyOptions} options
|
|
14
14
|
*/
|
|
15
|
-
export declare
|
|
15
|
+
export declare function formatCurrency(amount: number | string, { currency, fractionDigits, locale, style, }: CurrencyOptions): string;
|
|
16
16
|
/**
|
|
17
17
|
* Format number value
|
|
18
18
|
* @param {number} amount
|
|
19
19
|
* @param {CurrencyOptions} options
|
|
20
20
|
*/
|
|
21
|
-
export declare
|
|
21
|
+
export declare function formatNumber(amount: number | string, { fractionDigits }: CurrencyOptions): string;
|
|
22
22
|
/**
|
|
23
23
|
* Format number value without fraction
|
|
24
24
|
* @param {number} amount
|
|
25
25
|
*/
|
|
26
|
-
export declare
|
|
26
|
+
export declare function formatInteger(amount: number | string): string;
|
|
27
27
|
/**
|
|
28
28
|
* Generates and returns the array of root allowed attributes
|
|
29
29
|
* @param {SetupContextAttrs} data
|
|
30
30
|
* @returns {SetupContextAttrsKeys}
|
|
31
31
|
*/
|
|
32
|
-
export declare
|
|
32
|
+
export declare function getRootKeys(data: SetupContextAttrs): SetupContextAttrsKeys;
|
|
33
33
|
/**
|
|
34
34
|
* Picks only required attributes for root element
|
|
35
35
|
* @param {SetupContextAttrs} data
|
|
36
36
|
* @param {SetupContextAttrsKeys} include
|
|
37
37
|
* @returns {Pick<SetupContextAttrs, any>}
|
|
38
38
|
*/
|
|
39
|
-
export declare
|
|
39
|
+
export declare function getRootAttrs(data: SetupContextAttrs, include?: SetupContextAttrsKeys): Pick<{
|
|
40
40
|
[x: string]: unknown;
|
|
41
41
|
}, string>;
|
|
42
42
|
/**
|
|
@@ -45,7 +45,7 @@ export declare const getRootAttrs: (data: SetupContextAttrs, include?: SetupCont
|
|
|
45
45
|
* @param {SetupContextAttrsKeys} exclude
|
|
46
46
|
* @returns {Omit<SetupContextAttrs, any>}
|
|
47
47
|
*/
|
|
48
|
-
export declare
|
|
48
|
+
export declare function getNonRootAttrs(data: SetupContextAttrs, exclude?: SetupContextAttrsKeys): Omit<{
|
|
49
49
|
[x: string]: unknown;
|
|
50
50
|
}, string>;
|
|
51
51
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotki/ui-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"packageManager": "pnpm@8.14.1",
|
|
5
5
|
"description": "A vue design system and component library for rotki",
|
|
6
6
|
"type": "module",
|
|
@@ -25,44 +25,44 @@
|
|
|
25
25
|
],
|
|
26
26
|
"module": "dist/index.es.js",
|
|
27
27
|
"types": "dist/index.d.ts",
|
|
28
|
-
"typesVersions": {
|
|
29
|
-
"*": {
|
|
30
|
-
"theme": [
|
|
31
|
-
"./dist/theme/index.d.ts"
|
|
32
|
-
],
|
|
33
|
-
"composables": [
|
|
34
|
-
"./dist/composables/index.d.ts"
|
|
35
|
-
],
|
|
36
|
-
"components": [
|
|
37
|
-
"./dist/components/index.d.ts"
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
28
|
"exports": {
|
|
42
29
|
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
43
31
|
"import": "./dist/index.es.js",
|
|
44
|
-
"default": "./dist/index.es.js"
|
|
45
|
-
"types": "./dist/index.d.ts"
|
|
32
|
+
"default": "./dist/index.es.js"
|
|
46
33
|
},
|
|
47
34
|
"./theme": {
|
|
35
|
+
"types": "./dist/theme/index.d.ts",
|
|
48
36
|
"import": "./dist/theme/index.es.js",
|
|
49
|
-
"default": "./dist/theme/index.es.js"
|
|
50
|
-
"types": "./dist/theme/index.d.ts"
|
|
37
|
+
"default": "./dist/theme/index.es.js"
|
|
51
38
|
},
|
|
52
39
|
"./components": {
|
|
40
|
+
"types": "./dist/components/index.d.ts",
|
|
53
41
|
"import": "./dist/components/index.es.js",
|
|
54
|
-
"default": "./dist/components/index.es.js"
|
|
55
|
-
"types": "./dist/components/index.d.ts"
|
|
42
|
+
"default": "./dist/components/index.es.js"
|
|
56
43
|
},
|
|
57
44
|
"./composables": {
|
|
45
|
+
"types": "./dist/composables/index.d.ts",
|
|
58
46
|
"import": "./dist/composables/index.es.js",
|
|
59
|
-
"default": "./dist/composables/index.es.js"
|
|
60
|
-
"types": "./dist/composables/index.d.ts"
|
|
47
|
+
"default": "./dist/composables/index.es.js"
|
|
61
48
|
},
|
|
62
49
|
"./style.css": {
|
|
63
50
|
"default": "./dist/style.css"
|
|
64
51
|
}
|
|
65
52
|
},
|
|
53
|
+
"typesVersions": {
|
|
54
|
+
"*": {
|
|
55
|
+
"theme": [
|
|
56
|
+
"./dist/theme/index.d.ts"
|
|
57
|
+
],
|
|
58
|
+
"composables": [
|
|
59
|
+
"./dist/composables/index.d.ts"
|
|
60
|
+
],
|
|
61
|
+
"components": [
|
|
62
|
+
"./dist/components/index.d.ts"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@vueuse/core": ">10.0.0",
|
|
68
68
|
"@vueuse/shared": ">10.0.0",
|
|
@@ -79,32 +79,33 @@
|
|
|
79
79
|
"@fontsource/roboto": "5.0.8",
|
|
80
80
|
"@headlessui/vue": "1.7.17",
|
|
81
81
|
"@popperjs/core": "2.11.8",
|
|
82
|
-
"@rotki/eslint-config": "
|
|
83
|
-
"@storybook/addon-docs": "7.6.
|
|
84
|
-
"@storybook/addon-essentials": "7.6.
|
|
85
|
-
"@storybook/addon-interactions": "7.6.
|
|
86
|
-
"@storybook/addon-links": "7.6.
|
|
87
|
-
"@storybook/addon-themes": "7.6.
|
|
88
|
-
"@storybook/addons": "7.6.
|
|
89
|
-
"@storybook/blocks": "7.6.
|
|
82
|
+
"@rotki/eslint-config": "2.4.4",
|
|
83
|
+
"@storybook/addon-docs": "7.6.10",
|
|
84
|
+
"@storybook/addon-essentials": "7.6.10",
|
|
85
|
+
"@storybook/addon-interactions": "7.6.10",
|
|
86
|
+
"@storybook/addon-links": "7.6.10",
|
|
87
|
+
"@storybook/addon-themes": "7.6.10",
|
|
88
|
+
"@storybook/addons": "7.6.10",
|
|
89
|
+
"@storybook/blocks": "7.6.10",
|
|
90
90
|
"@storybook/testing-library": "0.2.2",
|
|
91
|
-
"@storybook/vue3": "7.6.
|
|
92
|
-
"@storybook/vue3-vite": "7.6.
|
|
93
|
-
"@types/node": "20.11.
|
|
91
|
+
"@storybook/vue3": "7.6.10",
|
|
92
|
+
"@storybook/vue3-vite": "7.6.10",
|
|
93
|
+
"@types/node": "20.11.5",
|
|
94
94
|
"@vitejs/plugin-vue": "5.0.3",
|
|
95
|
-
"@vitest/coverage-v8": "1.2.
|
|
96
|
-
"@vitest/ui": "1.2.
|
|
95
|
+
"@vitest/coverage-v8": "1.2.1",
|
|
96
|
+
"@vitest/ui": "1.2.1",
|
|
97
97
|
"@vue/test-utils": "2.4.3",
|
|
98
98
|
"@vue/tsconfig": "0.5.1",
|
|
99
99
|
"@vueuse/core": "10.7.2",
|
|
100
100
|
"@vueuse/math": "10.7.2",
|
|
101
101
|
"@vueuse/shared": "10.7.2",
|
|
102
102
|
"argparse": "2.0.1",
|
|
103
|
-
"autoprefixer": "10.4.
|
|
103
|
+
"autoprefixer": "10.4.17",
|
|
104
104
|
"babel-loader": "9.1.3",
|
|
105
|
-
"bumpp": "9.
|
|
106
|
-
"css-loader": "6.9.
|
|
105
|
+
"bumpp": "9.3.0",
|
|
106
|
+
"css-loader": "6.9.1",
|
|
107
107
|
"eslint": "8.56.0",
|
|
108
|
+
"eslint-plugin-cypress": "2.15.1",
|
|
108
109
|
"eslint-plugin-storybook": "0.6.15",
|
|
109
110
|
"fast-glob": "3.3.2",
|
|
110
111
|
"fast-xml-parser": "4.3.3",
|
|
@@ -116,15 +117,15 @@
|
|
|
116
117
|
"react": "18.2.0",
|
|
117
118
|
"react-dom": "18.2.0",
|
|
118
119
|
"remixicon": "4.1.0",
|
|
119
|
-
"sass": "1.
|
|
120
|
+
"sass": "1.70.0",
|
|
120
121
|
"scule": "1.2.0",
|
|
121
|
-
"storybook": "7.6.
|
|
122
|
+
"storybook": "7.6.10",
|
|
122
123
|
"tailwindcss": "3.4.1",
|
|
123
124
|
"tsc-alias": "1.8.8",
|
|
124
125
|
"typescript": "5.3.3",
|
|
125
126
|
"unplugin-auto-import": "0.17.3",
|
|
126
|
-
"vite": "5.0.
|
|
127
|
-
"vitest": "1.2.
|
|
127
|
+
"vite": "5.0.12",
|
|
128
|
+
"vitest": "1.2.1",
|
|
128
129
|
"vue": "3.3.13",
|
|
129
130
|
"vue-loader": "17.4.2",
|
|
130
131
|
"vue-router": "4.2.4",
|
|
@@ -137,12 +138,12 @@
|
|
|
137
138
|
"*.{js,cjs,ts,vue,yml,json,md}": "eslint"
|
|
138
139
|
},
|
|
139
140
|
"scripts": {
|
|
140
|
-
"build:prod": "node scripts/dist-build.
|
|
141
|
+
"build:prod": "node scripts/dist-build.mjs",
|
|
141
142
|
"build": "pnpm run generate-icons && vite build",
|
|
142
143
|
"build:storybook": "STORYBOOK=true storybook build",
|
|
143
144
|
"build:tailwind": "tailwindcss -o dist/style.css --minify",
|
|
144
145
|
"build:types": "vue-tsc -p tsconfig.build.json",
|
|
145
|
-
"generate-icons": "node scripts/generate-icons.
|
|
146
|
+
"generate-icons": "node scripts/generate-icons.mjs",
|
|
146
147
|
"resolve:alias": "tsc-alias -p tsconfig.build.json",
|
|
147
148
|
"dev": "vite",
|
|
148
149
|
"lint": "eslint .",
|