@rotki/ui-library 1.12.0 → 1.12.2

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 (43) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +1 -1
  3. package/dist/components/alerts/RuiAlert.vue.d.ts +1 -1
  4. package/dist/components/buttons/button/RuiButton.vue.d.ts +1 -3
  5. package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +1 -3
  6. package/dist/components/chips/RuiChip.vue.d.ts +1 -1
  7. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +18 -20
  8. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +1 -1
  9. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +1 -3
  10. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +1 -3
  11. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +5 -5
  12. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +2 -4
  13. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +4 -4
  14. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +5 -5
  15. package/dist/components/icons/RuiIcon.vue.d.ts +1 -1
  16. package/dist/components/index.d.ts +30 -30
  17. package/dist/components/index.es.js +5454 -5454
  18. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +1 -1
  19. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +2 -2
  20. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +2 -2
  21. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +2 -2
  22. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +2 -2
  23. package/dist/components/progress/RuiProgress.vue.d.ts +1 -1
  24. package/dist/components/steppers/RuiStepper.vue.d.ts +1 -1
  25. package/dist/components/tables/RuiDataTable.vue.d.ts +2 -4
  26. package/dist/components/tables/RuiTableHead.vue.d.ts +4 -6
  27. package/dist/components/tabs/tab/RuiTab.vue.d.ts +4 -4
  28. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +1 -3
  29. package/dist/composables/defaults/table.d.ts +1 -1
  30. package/dist/composables/{index-BWYjmHnW.js → index-DKotjeCA.js} +94 -95
  31. package/dist/composables/index.d.ts +1 -1
  32. package/dist/composables/index.es.js +1 -1
  33. package/dist/composables/popper.d.ts +2 -2
  34. package/dist/consts/forms/auto-complete/index.d.ts +1 -1
  35. package/dist/index.d.ts +6 -6
  36. package/dist/index.es.js +52 -52
  37. package/dist/style.css +1 -1
  38. package/dist/types/{index-DSBIGM2a.js → index-CN6Ip1GL.js} +1 -2
  39. package/dist/types/theme.d.ts +1 -1
  40. package/dist/utils/{index-Cps3W0wA.js → index-Bi6PqW7j.js} +38 -38
  41. package/dist/{vendor-BRFX1hnB.js → vendor-ClNuDbHx.js} +1385 -1387
  42. package/dist/web-types.json +4 -4
  43. package/package.json +40 -40
@@ -28,8 +28,7 @@ const o = {
28
28
  success: "success",
29
29
  warning: "warning"
30
30
  }, c = {
31
- horizontal: "horizontal",
32
- vertical: "vertical"
31
+ horizontal: "horizontal"
33
32
  };
34
33
  export {
35
34
  s as S,
@@ -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 { objectPick as l, objectOmit as y, get as i, set as p } from "@vueuse/shared";
2
- import { c as b } from "../vendor-BRFX1hnB.js";
3
- import { logicOr as d } from "@vueuse/math";
4
- import { computed as f, ref as x } from "vue";
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 F(t) {
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 y(t, [...m(t), ...r]);
46
+ return p(t, [...m(t), ...r]);
34
47
  }
35
- function D(t, r) {
36
- return t && Object.keys(t).reduce((e, n) => (e[b(n)] = t[n], e), {});
48
+ function D(t, r = ["class"]) {
49
+ return b(t, [...m(t), ...r]);
37
50
  }
38
- function K(t) {
39
- return t ? t.toString().toLowerCase().replace(/[^\da-z]/gi, "") : "";
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 === void 0 || typeof t == "string" && isNaN(Number(t)) ? t : `${t}px`;
55
+ return t ? t.toString().toLowerCase().replace(/[^\da-z]/gi, "") : "";
43
56
  }
44
- function T(t, r) {
45
- const e = f(() => {
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 = x(0);
87
+ const t = y(0);
88
88
  return { count: t, nextId: () => {
89
89
  const e = i(t) + 1;
90
- return p(t, e), e;
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
- S as a,
99
- C as b,
98
+ D as a,
99
+ R as b,
100
100
  V as c,
101
- D as d,
101
+ T as d,
102
102
  w as e,
103
- F as f,
104
- K as g,
103
+ S as f,
104
+ C as g,
105
105
  a as i,
106
- R as t,
107
- T as u
106
+ K as t,
107
+ F as u
108
108
  };