@rotki/ui-library 0.13.0 → 0.15.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 (54) hide show
  1. package/dist/Accordion-BFcz_iFc.js +8386 -0
  2. package/dist/breakpoint-CRvqq4aP.js +37 -0
  3. package/dist/components/accordions/accordion/Accordion.vue.d.ts +71 -0
  4. package/dist/components/accordions/accordions/Accordions.vue.d.ts +31 -0
  5. package/dist/components/alerts/Alert.vue.d.ts +10 -10
  6. package/dist/components/buttons/button/Button.vue.d.ts +4 -4
  7. package/dist/components/buttons/button-group/ButtonGroup.vue.d.ts +3 -3
  8. package/dist/components/cards/Card.vue.d.ts +3 -3
  9. package/dist/components/chips/Chip.vue.d.ts +18 -18
  10. package/dist/components/forms/auto-complete/AutoComplete.vue.d.ts +58 -172
  11. package/dist/components/forms/auto-complete/AutoCompleteSelection.vue.d.ts +26 -77
  12. package/dist/components/forms/checkbox/Checkbox.vue.d.ts +18 -18
  13. package/dist/components/forms/radio-button/radio/Radio.vue.d.ts +18 -18
  14. package/dist/components/forms/radio-button/radio-group/RadioGroup.vue.d.ts +18 -18
  15. package/dist/components/forms/revealable-text-field/RevealableTextField.vue.d.ts +9 -9
  16. package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +155 -0
  17. package/dist/components/forms/slider/Slider.vue.d.ts +192 -0
  18. package/dist/components/forms/switch/Switch.vue.d.ts +18 -18
  19. package/dist/components/forms/text-area/TextArea.vue.d.ts +9 -9
  20. package/dist/components/forms/text-field/TextField.vue.d.ts +9 -9
  21. package/dist/components/icons/Icon.vue.d.ts +6 -6
  22. package/dist/components/index.d.ts +6 -1
  23. package/dist/components/index.es.js +38 -42
  24. package/dist/components/loaders/Skeleton.vue.d.ts +6 -6
  25. package/dist/components/loaders/SkeletonBase.vue.d.ts +3 -3
  26. package/dist/components/logos/Logo.vue.d.ts +42 -4
  27. package/dist/components/overlays/badge/Badge.vue.d.ts +15 -15
  28. package/dist/components/overlays/dialog/Dialog.vue.d.ts +8 -8
  29. package/dist/components/overlays/menu/Menu.vue.d.ts +191 -0
  30. package/dist/components/progress/Progress.vue.d.ts +6 -6
  31. package/dist/components/tables/DataTable.vue.d.ts +13 -8
  32. package/dist/components/tables/TableHead.vue.d.ts +15 -3
  33. package/dist/components/tables/TablePagination.vue.d.ts +10 -0
  34. package/dist/components/tabs/tab/Tab.vue.d.ts +28 -28
  35. package/dist/components/tabs/tabs/Tabs.vue.d.ts +9 -9
  36. package/dist/composables/defaults/table.d.ts +1 -0
  37. package/dist/composables/dropdown-menu.d.ts +40 -0
  38. package/dist/composables/forms/auto-complete/index.d.ts +9 -0
  39. package/dist/composables/index.es.js +5 -85
  40. package/dist/composables/popper.d.ts +2 -2
  41. package/dist/composables/sticky-header.d.ts +5 -5
  42. package/dist/consts/forms/auto-complete/index.d.ts +4 -0
  43. package/dist/index-x2urm9HD.js +176 -0
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.es.js +2787 -2786
  46. package/dist/style.css +1 -1
  47. package/dist/theme/index.es.js +1 -1
  48. package/dist/utils/assert.d.ts +1 -0
  49. package/dist/utils/forms/auto-complete/index.d.ts +2 -0
  50. package/dist/utils/helpers.d.ts +7 -0
  51. package/package.json +46 -48
  52. package/dist/index-Ph4f0pga.js +0 -7435
  53. package/dist/theme-DT8UjYf9.js +0 -124
  54. /package/dist/{colors-ikihApJv.js → colors-D563Ic3q.js} +0 -0
@@ -1,124 +0,0 @@
1
- import { RiArrowDownLine as $, RiArrowDropDownFill as y, RiArrowLeftDoubleLine as D, RiArrowLeftLine as E, RiArrowLeftSLine as T, RiArrowRightDoubleLine as I, RiArrowRightLine as v, RiArrowRightSLine as B } from "./icons/icons_1.es.js";
2
- import { RiDatabase2Line as M } from "./icons/icons_2.es.js";
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
- import { createGlobalState as re, useColorMode as te } from "@vueuse/core";
5
- import { ref as C, computed as m, watch as oe } from "vue";
6
- import { set as f, get as e } from "@vueuse/shared";
7
- import { c as ne } from "./colors-ikihApJv.js";
8
- const Re = re(() => {
9
- const t = [
10
- S,
11
- O,
12
- $,
13
- y,
14
- D,
15
- E,
16
- T,
17
- I,
18
- v,
19
- B,
20
- j,
21
- U,
22
- V,
23
- W,
24
- q,
25
- G,
26
- P,
27
- z,
28
- H,
29
- J,
30
- K,
31
- M,
32
- N,
33
- Q,
34
- X,
35
- Y,
36
- Z,
37
- _,
38
- ee,
39
- ie
40
- ], i = C({});
41
- return { registeredIcons: i, registerIcons: (a) => {
42
- f(i, {
43
- ...e(i),
44
- ...Object.fromEntries(
45
- [...t, ...a].map(({ name: s, path: u }) => [s, u])
46
- )
47
- });
48
- } };
49
- }), r = {
50
- auto: "auto",
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);
79
- }, p = () => {
80
- e(a) ? c(r.light) : e(s) ? c(r.dark) : e(u) && c(r.auto);
81
- }, k = (l) => {
82
- f(d, l);
83
- };
84
- return {
85
- config: d,
86
- init: (l) => {
87
- c(l.mode ?? r.auto), k(l.config ?? { ...b }), typeof window < "u" && oe(
88
- [s, g],
89
- ([w, x]) => {
90
- const A = Object.entries(x).map(([o, n]) => ({
91
- [`--rui-${o}-darker`]: n.darker,
92
- [`--rui-${o}-lighter`]: n.lighter,
93
- [`--rui-${o}-main`]: n.DEFAULT
94
- })).reduce((o, n) => ({ ...o, ...n }), {}), R = w ? r.light : r.dark, F = {
95
- "--rui-text-disabled": `var(--rui-${R}-text-disabled)`,
96
- "--rui-text-primary": `var(--rui-${R}-text-primary)`,
97
- "--rui-text-secondary": `var(--rui-${R}-text-secondary)`
98
- };
99
- Object.entries({
100
- ...A,
101
- ...F
102
- }).forEach(([o, n]) => {
103
- document.documentElement.style.setProperty(o, n);
104
- });
105
- },
106
- { immediate: !0 }
107
- );
108
- },
109
- isAutoControlled: a,
110
- isDark: u,
111
- isLight: s,
112
- setThemeConfig: k,
113
- state: t,
114
- store: i,
115
- switchThemeScheme: c,
116
- theme: g,
117
- toggleThemeMode: p
118
- };
119
- }
120
- export {
121
- r as T,
122
- fe as a,
123
- Re as u
124
- };
File without changes