@rotki/ui-library 1.4.0 → 1.6.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 +3 -32
  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 +26 -26
  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,37 +0,0 @@
1
- import { useWindowSize as d, breakpointsTailwind as l, useBreakpoints as w } from "@vueuse/core";
2
- import { c as n } from "./index-DIN-6VhY.js";
3
- import { computed as _ } from "vue";
4
- import { get as z } from "@vueuse/shared";
5
- function E() {
6
- const { width: m } = d(), i = {
7
- xs: 0,
8
- ...l
9
- }, o = w(i), c = Object.keys, e = c(i), r = e.map(
10
- (s, t) => [
11
- s,
12
- t < e.length - 1 ? o.between(s, e[t + 1]) : o[s]
13
- ]
14
- ), a = r.map(([s, t]) => [
15
- n(`is_${s}`),
16
- t
17
- ]), p = e.map((s) => [
18
- n(`is_${s}_and_up`),
19
- o.greaterOrEqual(s)
20
- ]), f = e.map((s) => [
21
- n(`is_${s}_and_down`),
22
- o.smaller(s)
23
- ]), u = _(() => {
24
- var s;
25
- return ((s = r.find((t) => z(t[1]))) == null ? void 0 : s[0]) || "";
26
- });
27
- return {
28
- ...Object.fromEntries(a),
29
- ...Object.fromEntries(p),
30
- ...Object.fromEntries(f),
31
- name: u,
32
- width: m
33
- };
34
- }
35
- export {
36
- E as u
37
- };
@@ -1,154 +0,0 @@
1
- import { RiArrowDownLine as F, RiArrowDropDownFill as x, RiArrowLeftDoubleLine as T, RiArrowLeftLine as $, RiArrowLeftSLine as D, RiArrowRightDoubleLine as S, RiArrowRightLine as v, RiArrowRightSLine as I, RiExpandUpDownLine as U } from "./icons/icons_1.es.js";
2
- import { RiDatabase2Line as M } from "./icons/icons_2.es.js";
3
- import { RiAlertFill as B, RiAlertLine as _, RiCheckLine as j, RiCheckboxBlankCircleFill as O, RiCheckboxBlankCircleLine as P, RiCheckboxBlankLine as W, RiCheckboxCircleFill as q, RiCheckboxCircleLine as G, RiCheckboxFill as H, RiCheckboxIndeterminateFill as N, RiCloseCircleLine as V, RiCloseFill as z, RiCloseLine as J, RiErrorWarningFill as K, RiErrorWarningLine as Q, RiEyeLine as X, RiEyeOffLine as Y, RiInformationFill as Z, RiInformationLine as ee } from "./icons/icons_5.es.js";
4
- import { RiRadioButtonLine as ie, RiMoreFill as te } from "./icons/icons_6.es.js";
5
- import { createGlobalState as re, createSharedComposable as oe, useColorMode as ne } from "@vueuse/core";
6
- import { ref as w, computed as R, watch as se } from "vue";
7
- import { set as C, get as s } from "@vueuse/shared";
8
- import { c as ae } from "./colors-D563Ic3q.js";
9
- const Ae = re(() => {
10
- const e = [
11
- B,
12
- _,
13
- F,
14
- x,
15
- T,
16
- $,
17
- D,
18
- S,
19
- v,
20
- I,
21
- j,
22
- O,
23
- P,
24
- W,
25
- q,
26
- G,
27
- H,
28
- N,
29
- V,
30
- z,
31
- J,
32
- M,
33
- K,
34
- Q,
35
- X,
36
- Y,
37
- Z,
38
- ee,
39
- ie,
40
- te,
41
- U
42
- ], t = w({});
43
- return { registeredIcons: t, registerIcons: (r) => {
44
- C(t, {
45
- ...s(t),
46
- ...Object.fromEntries(
47
- [...e, ...r].map(({ name: i, path: o }) => [i, o])
48
- )
49
- });
50
- } };
51
- }), n = {
52
- auto: "auto",
53
- dark: "dark",
54
- light: "light"
55
- };
56
- function k(e) {
57
- return Object.fromEntries(
58
- ae.map((t) => [
59
- t,
60
- {
61
- darker: `var(--rui-${e}-${t}-darker)`,
62
- DEFAULT: `var(--rui-${e}-${t}-main)`,
63
- lighter: `var(--rui-${e}-${t}-lighter)`
64
- }
65
- ])
66
- );
67
- }
68
- const b = {
69
- dark: k("dark"),
70
- light: k("light")
71
- }, g = w({ ...b }), ye = oe(() => {
72
- const { state: e, store: t } = ne(), c = R(() => s(t) === n.auto), r = R(() => s(e) === n.light), i = R(() => s(e) === n.dark), o = R(() => s(r) ? s(g).light : s(g).dark), a = (l) => {
73
- C(t, l || n.auto);
74
- }, u = () => {
75
- s(c) ? a(n.light) : s(r) ? a(n.dark) : s(i) && a(n.auto);
76
- }, m = (l) => {
77
- C(g, l);
78
- };
79
- return {
80
- config: g,
81
- init: (l) => {
82
- a(l.mode ?? n.auto), m(l.config ?? { ...b }), typeof window < "u" && se([r, o], ([A, y]) => {
83
- const f = /* @__PURE__ */ new Map();
84
- Object.entries(y).forEach(([h, d]) => {
85
- f.set(`--rui-${h}-darker`, d.darker), f.set(`--rui-${h}-lighter`, d.lighter), f.set(`--rui-${h}-main`, d.DEFAULT);
86
- });
87
- const L = A ? n.light : n.dark;
88
- f.set("--rui-text-disabled", `var(--rui-${L}-text-disabled)`), f.set("--rui-text-primary", `var(--rui-${L}-text-primary)`), f.set("--rui-text-secondary", `var(--rui-${L}-text-secondary)`);
89
- const E = document.documentElement.style;
90
- f.forEach((h, d) => {
91
- E.setProperty(d, h);
92
- });
93
- }, { immediate: !0 });
94
- },
95
- isAutoControlled: c,
96
- isDark: i,
97
- isLight: r,
98
- setThemeConfig: m,
99
- state: e,
100
- store: t,
101
- switchThemeScheme: a,
102
- theme: o,
103
- toggleThemeMode: u
104
- };
105
- }), le = /\d/, ce = ["-", "_", "/", "."];
106
- function ue(e = "") {
107
- if (!le.test(e))
108
- return e !== e.toLowerCase();
109
- }
110
- function fe(e, t) {
111
- const c = ce, r = [];
112
- if (!e || typeof e != "string")
113
- return r;
114
- let i = "", o, a;
115
- for (const u of e) {
116
- const m = c.includes(u);
117
- if (m === !0) {
118
- r.push(i), i = "", o = void 0;
119
- continue;
120
- }
121
- const p = ue(u);
122
- if (a === !1) {
123
- if (o === !1 && p === !0) {
124
- r.push(i), i = u, o = p;
125
- continue;
126
- }
127
- if (o === !0 && p === !1 && i.length > 1) {
128
- const l = i.at(-1);
129
- r.push(i.slice(0, Math.max(0, i.length - 1))), i = l + u, o = p;
130
- continue;
131
- }
132
- }
133
- i += u, o = p, a = m;
134
- }
135
- return r.push(i), r;
136
- }
137
- function pe(e) {
138
- return e ? e[0].toUpperCase() + e.slice(1) : "";
139
- }
140
- function me(e) {
141
- return e ? e[0].toLowerCase() + e.slice(1) : "";
142
- }
143
- function he(e, t) {
144
- return e ? (Array.isArray(e) ? e : fe(e)).map((c) => pe(c)).join("") : "";
145
- }
146
- function Ee(e, t) {
147
- return me(he(e || ""));
148
- }
149
- export {
150
- n as T,
151
- ye as a,
152
- Ee as c,
153
- Ae as u
154
- };