@rotki/ui-library 1.4.0 → 1.5.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 (63) hide show
  1. package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +4 -33
  2. package/dist/components/accordions/accordions/RuiAccordions.vue.d.ts +4 -27
  3. package/dist/components/alerts/RuiAlert.vue.d.ts +5 -38
  4. package/dist/components/cards/RuiCard.vue.d.ts +2 -33
  5. package/dist/components/cards/RuiCardHeader.vue.d.ts +2 -23
  6. package/dist/components/chips/RuiChip.vue.d.ts +5 -44
  7. package/dist/components/color-picker/RuiColorBoard.vue.d.ts +6 -15
  8. package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +3 -12
  9. package/dist/components/color-picker/RuiColorHue.vue.d.ts +4 -13
  10. package/dist/components/color-picker/RuiColorInput.vue.d.ts +4 -13
  11. package/dist/components/color-picker/RuiColorPicker.vue.d.ts +4 -25
  12. package/dist/components/divider/RuiDivider.vue.d.ts +2 -23
  13. package/dist/components/forms/auto-complete/RuiAutoComplete.vue.d.ts +4 -1
  14. package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +5 -44
  15. package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +3 -1
  16. package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +3 -1
  17. package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +4 -55
  18. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +3 -1
  19. package/dist/components/forms/select/RuiSimpleSelect.vue.d.ts +4 -29
  20. package/dist/components/forms/slider/RuiSlider.vue.d.ts +5 -60
  21. package/dist/components/forms/switch/RuiSwitch.vue.d.ts +4 -41
  22. package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +6 -64
  23. package/dist/components/forms/text-field/RuiTextField.vue.d.ts +9 -59
  24. package/dist/components/helpers/RuiFormTextDetail.vue.d.ts +4 -29
  25. package/dist/components/icons/RuiIcon.vue.d.ts +2 -25
  26. package/dist/components/index.es.js +5946 -42
  27. package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +2 -23
  28. package/dist/components/loaders/RuiSkeletonLoader.vue.d.ts +2 -25
  29. package/dist/components/logos/RuiLogo.vue.d.ts +2 -31
  30. package/dist/components/overlays/badge/RuiBadge.vue.d.ts +2 -43
  31. package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +2 -25
  32. package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +5 -36
  33. package/dist/components/overlays/menu/RuiMenu.vue.d.ts +4 -53
  34. package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +5 -40
  35. package/dist/components/overlays/notification/RuiNotification.vue.d.ts +4 -27
  36. package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +3 -38
  37. package/dist/components/progress/RuiProgress.vue.d.ts +2 -37
  38. package/dist/components/steppers/RuiFooterStepper.vue.d.ts +4 -31
  39. package/dist/components/steppers/RuiStepper.vue.d.ts +2 -35
  40. package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +4 -25
  41. package/dist/components/steppers/RuiStepperIcon.vue.d.ts +4 -25
  42. package/dist/components/tables/RuiExpandButton.vue.d.ts +2 -23
  43. package/dist/components/tables/RuiTablePagination.vue.d.ts +4 -29
  44. package/dist/components/tabs/tab/RuiTab.vue.d.ts +6 -49
  45. package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +2 -29
  46. package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +3 -1
  47. package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +6 -35
  48. package/dist/composables/icons.d.ts +10 -4
  49. package/dist/composables/index--ZwAZVMb.js +482 -0
  50. package/dist/composables/index.es.js +4 -5
  51. package/dist/index.d.ts +1 -0
  52. package/dist/index.es.js +2917 -2916
  53. package/dist/style.css +1 -1
  54. package/dist/theme/index.es.js +1 -1
  55. package/dist/types/index-DSBIGM2a.js +39 -0
  56. package/dist/utils/index-Cps3W0wA.js +108 -0
  57. package/dist/vendor-BRFX1hnB.js +1626 -0
  58. package/dist/web-types.json +534 -593
  59. package/package.json +1 -1
  60. package/dist/RuiNavigationDrawer-Boq-RcMw.js +0 -7959
  61. package/dist/breakpoint-sPlgsoXp.js +0 -37
  62. package/dist/index-DIN-6VhY.js +0 -154
  63. /package/dist/{colors-D563Ic3q.js → consts/colors-D563Ic3q.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import o from "tailwindcss/plugin";
2
- import { b as d, a as h, c as t } from "../colors-D563Ic3q.js";
2
+ import { b as d, a as h, c as t } from "../consts/colors-D563Ic3q.js";
3
3
  const u = Object.fromEntries(
4
4
  d.map((r) => [
5
5
  r,
@@ -0,0 +1,39 @@
1
+ import { c as e } from "../consts/colors-D563Ic3q.js";
2
+ const n = {
3
+ auto: "auto",
4
+ dark: "dark",
5
+ light: "light"
6
+ };
7
+ function a(t) {
8
+ return Object.fromEntries(
9
+ e.map((r) => [
10
+ r,
11
+ {
12
+ darker: `var(--rui-${t}-${r}-darker)`,
13
+ DEFAULT: `var(--rui-${t}-${r}-main)`,
14
+ lighter: `var(--rui-${t}-${r}-lighter)`
15
+ }
16
+ ])
17
+ );
18
+ }
19
+ const o = {
20
+ dark: a("dark"),
21
+ light: a("light")
22
+ }, s = {
23
+ active: "active",
24
+ done: "done",
25
+ error: "error",
26
+ inactive: "inactive",
27
+ info: "info",
28
+ success: "success",
29
+ warning: "warning"
30
+ }, c = {
31
+ horizontal: "horizontal",
32
+ vertical: "vertical"
33
+ };
34
+ export {
35
+ s as S,
36
+ n as T,
37
+ c as a,
38
+ o as d
39
+ };
@@ -0,0 +1,108 @@
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";
5
+ import { createGlobalState as A } from "@vueuse/core";
6
+ class j extends Error {
7
+ constructor(r) {
8
+ super(r ?? "AssertionError"), this.name = "AssertionError";
9
+ }
10
+ }
11
+ function w(t, r) {
12
+ if (!t)
13
+ throw new j(r);
14
+ }
15
+ function k(t, { fractionDigits: r = 2 }) {
16
+ return new Intl.NumberFormat(void 0, {
17
+ maximumFractionDigits: r,
18
+ minimumFractionDigits: r
19
+ }).format(Number(t));
20
+ }
21
+ function F(t) {
22
+ return k(t, { fractionDigits: 0 });
23
+ }
24
+ function m(t) {
25
+ return Object.keys(t).filter(
26
+ (r) => r.startsWith("data-")
27
+ );
28
+ }
29
+ function S(t, r = ["class"]) {
30
+ return l(t, [...m(t), ...r]);
31
+ }
32
+ function C(t, r = ["class"]) {
33
+ return y(t, [...m(t), ...r]);
34
+ }
35
+ function D(t, r) {
36
+ return t && Object.keys(t).reduce((e, n) => (e[b(n)] = t[n], e), {});
37
+ }
38
+ function K(t) {
39
+ return t ? t.toString().toLowerCase().replace(/[^\da-z]/gi, "") : "";
40
+ }
41
+ function R(t) {
42
+ return t === void 0 || typeof t == "string" && isNaN(Number(t)) ? t : `${t}px`;
43
+ }
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
+ };
59
+ }
60
+ function a(t, r) {
61
+ if (t === r)
62
+ return !0;
63
+ if (t == null || r == null)
64
+ return t === r;
65
+ if (typeof t != typeof r)
66
+ return !1;
67
+ if (Array.isArray(t)) {
68
+ if (!Array.isArray(r) || t.length !== r.length)
69
+ return !1;
70
+ for (const [e, n] of t.entries())
71
+ if (!a(n, r[e]))
72
+ return !1;
73
+ return !0;
74
+ }
75
+ if (typeof t == "object") {
76
+ const e = Object.keys(t), n = Object.keys(r);
77
+ if (e.length !== n.length)
78
+ return !1;
79
+ for (const o of e)
80
+ if (!a(t[o], r[o]))
81
+ return !1;
82
+ return !0;
83
+ }
84
+ return !1;
85
+ }
86
+ const E = A(() => {
87
+ const t = x(0);
88
+ return { count: t, nextId: () => {
89
+ const e = i(t) + 1;
90
+ return p(t, e), e;
91
+ } };
92
+ });
93
+ function V(t = "") {
94
+ const { nextId: r } = E();
95
+ return `${t}-${r()}`;
96
+ }
97
+ export {
98
+ S as a,
99
+ C as b,
100
+ V as c,
101
+ D as d,
102
+ w as e,
103
+ F as f,
104
+ K as g,
105
+ a as i,
106
+ R as t,
107
+ T as u
108
+ };