@rotki/ui-library 1.12.1 → 1.12.3
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 +1 -1
- package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +409 -14
- package/dist/components/alerts/RuiAlert.vue.d.ts +478 -11
- package/dist/components/buttons/button/RuiButton.vue.d.ts +5 -7
- package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +2 -4
- package/dist/components/cards/RuiCard.vue.d.ts +452 -15
- package/dist/components/cards/RuiCardHeader.vue.d.ts +396 -11
- package/dist/components/chips/RuiChip.vue.d.ts +484 -11
- package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +39 -43
- package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +468 -11
- package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +6 -8
- package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +5 -7
- package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +48 -19
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +19 -21
- package/dist/components/forms/switch/RuiSwitch.vue.d.ts +514 -9
- package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +843 -20
- package/dist/components/forms/text-field/RuiTextField.vue.d.ts +676 -21
- package/dist/components/icons/RuiIcon.vue.d.ts +2 -2
- package/dist/components/index.d.ts +30 -30
- package/dist/components/index.es.js +5463 -5454
- package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +1 -1
- package/dist/components/logos/RuiLogo.vue.d.ts +1 -1
- package/dist/components/overlays/badge/RuiBadge.vue.d.ts +472 -13
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +14 -9
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +476 -23
- package/dist/components/overlays/menu/RuiMenu.vue.d.ts +505 -31
- package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +466 -25
- package/dist/components/overlays/notification/RuiNotification.vue.d.ts +24 -11
- package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +429 -18
- package/dist/components/progress/RuiProgress.vue.d.ts +2 -2
- package/dist/components/steppers/RuiFooterStepper.vue.d.ts +1 -1
- package/dist/components/steppers/RuiStepper.vue.d.ts +461 -15
- package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +1 -1
- package/dist/components/steppers/RuiStepperIcon.vue.d.ts +1 -1
- package/dist/components/tables/RuiDataTable.vue.d.ts +4 -36
- package/dist/components/tables/RuiExpandButton.vue.d.ts +377 -9
- package/dist/components/tables/RuiTableHead.vue.d.ts +17 -14
- package/dist/components/tables/RuiTablePagination.vue.d.ts +1 -1
- package/dist/components/tabs/tab/RuiTab.vue.d.ts +9 -19
- package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +378 -11
- package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +3 -5
- package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +1 -1
- package/dist/composables/defaults/table.d.ts +1 -1
- package/dist/composables/{index-BWYjmHnW.js → index-DKotjeCA.js} +94 -95
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.es.js +1 -1
- package/dist/composables/popper.d.ts +2 -2
- package/dist/consts/forms/auto-complete/index.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.es.js +52 -52
- package/dist/style.css +1 -1
- package/dist/types/{index-DSBIGM2a.js → index-CN6Ip1GL.js} +1 -2
- package/dist/types/theme.d.ts +1 -1
- package/dist/utils/{index-Cps3W0wA.js → index-Bi6PqW7j.js} +38 -38
- package/dist/{vendor-BRFX1hnB.js → vendor-ClNuDbHx.js} +1385 -1387
- package/dist/web-types.json +91 -91
- package/package.json +45 -45
package/dist/types/theme.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BasicColorSchema } from '@vueuse/core';
|
|
2
1
|
import type { GeneratedIcon } from '../types/icons';
|
|
2
|
+
import type { BasicColorSchema } from '@vueuse/core';
|
|
3
3
|
import type { ComputedRef, Ref } from 'vue';
|
|
4
4
|
export declare const ThemeMode: {
|
|
5
5
|
readonly auto: "auto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { logicOr as l } from "@vueuse/math";
|
|
2
|
+
import { computed as f, ref as y } from "vue";
|
|
3
|
+
import { get as i, objectPick as p, objectOmit as b, set as d } from "@vueuse/shared";
|
|
4
|
+
import { c as x } from "../vendor-ClNuDbHx.js";
|
|
5
5
|
import { createGlobalState as A } from "@vueuse/core";
|
|
6
6
|
class j extends Error {
|
|
7
7
|
constructor(r) {
|
|
@@ -12,13 +12,29 @@ function w(t, r) {
|
|
|
12
12
|
if (!t)
|
|
13
13
|
throw new j(r);
|
|
14
14
|
}
|
|
15
|
+
function F(t, r) {
|
|
16
|
+
const e = f(() => {
|
|
17
|
+
let s = i(t);
|
|
18
|
+
return typeof s == "string" && (s = [s]), s.filter((c) => !!c);
|
|
19
|
+
}), n = f(() => {
|
|
20
|
+
let s = i(r);
|
|
21
|
+
return typeof s == "string" && (s = [s]), s.filter((c) => !!c);
|
|
22
|
+
}), o = f(() => i(e).length > 0), u = f(() => i(n).length > 0), g = l(o, u);
|
|
23
|
+
return {
|
|
24
|
+
formattedErrorMessages: e,
|
|
25
|
+
formattedSuccessMessages: n,
|
|
26
|
+
hasError: o,
|
|
27
|
+
hasMessages: g,
|
|
28
|
+
hasSuccess: u
|
|
29
|
+
};
|
|
30
|
+
}
|
|
15
31
|
function k(t, { fractionDigits: r = 2 }) {
|
|
16
32
|
return new Intl.NumberFormat(void 0, {
|
|
17
33
|
maximumFractionDigits: r,
|
|
18
34
|
minimumFractionDigits: r
|
|
19
35
|
}).format(Number(t));
|
|
20
36
|
}
|
|
21
|
-
function
|
|
37
|
+
function S(t) {
|
|
22
38
|
return k(t, { fractionDigits: 0 });
|
|
23
39
|
}
|
|
24
40
|
function m(t) {
|
|
@@ -26,36 +42,20 @@ function m(t) {
|
|
|
26
42
|
(r) => r.startsWith("data-")
|
|
27
43
|
);
|
|
28
44
|
}
|
|
29
|
-
function S(t, r = ["class"]) {
|
|
30
|
-
return l(t, [...m(t), ...r]);
|
|
31
|
-
}
|
|
32
45
|
function C(t, r = ["class"]) {
|
|
33
|
-
return
|
|
46
|
+
return p(t, [...m(t), ...r]);
|
|
34
47
|
}
|
|
35
|
-
function D(t, r) {
|
|
36
|
-
return
|
|
48
|
+
function D(t, r = ["class"]) {
|
|
49
|
+
return b(t, [...m(t), ...r]);
|
|
37
50
|
}
|
|
38
|
-
function K(t) {
|
|
39
|
-
return t
|
|
51
|
+
function K(t, r) {
|
|
52
|
+
return t && Object.keys(t).reduce((e, n) => (e[x(n)] = t[n], e), {});
|
|
40
53
|
}
|
|
41
54
|
function R(t) {
|
|
42
|
-
return t
|
|
55
|
+
return t ? t.toString().toLowerCase().replace(/[^\da-z]/gi, "") : "";
|
|
43
56
|
}
|
|
44
|
-
function T(t
|
|
45
|
-
|
|
46
|
-
let s = i(t);
|
|
47
|
-
return typeof s == "string" && (s = [s]), s.filter((c) => !!c);
|
|
48
|
-
}), n = f(() => {
|
|
49
|
-
let s = i(r);
|
|
50
|
-
return typeof s == "string" && (s = [s]), s.filter((c) => !!c);
|
|
51
|
-
}), o = f(() => i(e).length > 0), u = f(() => i(n).length > 0), g = d(o, u);
|
|
52
|
-
return {
|
|
53
|
-
formattedErrorMessages: e,
|
|
54
|
-
formattedSuccessMessages: n,
|
|
55
|
-
hasError: o,
|
|
56
|
-
hasMessages: g,
|
|
57
|
-
hasSuccess: u
|
|
58
|
-
};
|
|
57
|
+
function T(t) {
|
|
58
|
+
return t === void 0 || typeof t == "string" && isNaN(Number(t)) ? t : `${t}px`;
|
|
59
59
|
}
|
|
60
60
|
function a(t, r) {
|
|
61
61
|
if (t === r)
|
|
@@ -84,10 +84,10 @@ function a(t, r) {
|
|
|
84
84
|
return !1;
|
|
85
85
|
}
|
|
86
86
|
const E = A(() => {
|
|
87
|
-
const t =
|
|
87
|
+
const t = y(0);
|
|
88
88
|
return { count: t, nextId: () => {
|
|
89
89
|
const e = i(t) + 1;
|
|
90
|
-
return
|
|
90
|
+
return d(t, e), e;
|
|
91
91
|
} };
|
|
92
92
|
});
|
|
93
93
|
function V(t = "") {
|
|
@@ -95,14 +95,14 @@ function V(t = "") {
|
|
|
95
95
|
return `${t}-${r()}`;
|
|
96
96
|
}
|
|
97
97
|
export {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
D as a,
|
|
99
|
+
R as b,
|
|
100
100
|
V as c,
|
|
101
|
-
|
|
101
|
+
T as d,
|
|
102
102
|
w as e,
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
S as f,
|
|
104
|
+
C as g,
|
|
105
105
|
a as i,
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
K as t,
|
|
107
|
+
F as u
|
|
108
108
|
};
|