@rotki/ui-library 0.15.0 → 1.0.0-beta.1
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 +3 -3
- package/dist/RuiNavigationDrawer-By3iqC3V.js +7822 -0
- package/dist/__test__/options.d.ts +5 -0
- package/dist/{breakpoint-CRvqq4aP.js → breakpoint-OTAceaTK.js} +1 -1
- package/dist/components/accordions/accordion/RuiAccordion.vue.d.ts +58 -0
- package/dist/components/accordions/accordions/RuiAccordions.vue.d.ts +36 -0
- package/dist/components/alerts/RuiAlert.vue.d.ts +69 -0
- package/dist/components/buttons/button/RuiButton.vue.d.ts +94 -0
- package/dist/components/buttons/button-group/RuiButtonGroup.vue.d.ts +70 -0
- package/dist/components/cards/RuiCard.vue.d.ts +61 -0
- package/dist/components/cards/RuiCardHeader.vue.d.ts +37 -0
- package/dist/components/chips/RuiChip.vue.d.ts +80 -0
- package/dist/components/color-picker/RuiColorBoard.vue.d.ts +26 -0
- package/dist/components/color-picker/RuiColorDisplay.vue.d.ts +15 -0
- package/dist/components/color-picker/RuiColorHue.vue.d.ts +18 -0
- package/dist/components/color-picker/RuiColorInput.vue.d.ts +19 -0
- package/dist/components/color-picker/RuiColorPicker.vue.d.ts +32 -0
- package/dist/components/color-picker/utils.d.ts +44 -0
- package/dist/components/divider/RuiDivider.vue.d.ts +28 -0
- package/dist/components/forms/checkbox/RuiCheckbox.vue.d.ts +78 -0
- package/dist/components/forms/radio-button/radio/RuiRadio.vue.d.ts +73 -0
- package/dist/components/forms/radio-button/radio-group/RuiRadioGroup.vue.d.ts +69 -0
- package/dist/components/forms/revealable-text-field/RuiRevealableTextField.vue.d.ts +84 -0
- package/dist/components/forms/select/RuiMenuSelect.vue.d.ts +160 -49
- package/dist/components/forms/select/RuiSimpleSelect.vue.d.ts +42 -0
- package/dist/components/forms/slider/RuiSlider.vue.d.ts +101 -0
- package/dist/components/forms/switch/RuiSwitch.vue.d.ts +72 -0
- package/dist/components/forms/text-area/RuiTextArea.vue.d.ts +124 -0
- package/dist/components/forms/text-field/RuiTextField.vue.d.ts +114 -0
- package/dist/components/helpers/RuiFormTextDetail.vue.d.ts +39 -0
- package/dist/components/icons/RuiIcon.vue.d.ts +35 -0
- package/dist/components/index.d.ts +43 -39
- package/dist/components/index.es.js +35 -31
- package/dist/components/loaders/RuiSkeletonBase.vue.d.ts +28 -0
- package/dist/components/loaders/RuiSkeletonLoader.vue.d.ts +32 -0
- package/dist/components/logos/RuiLogo.vue.d.ts +52 -0
- package/dist/components/overlays/badge/RuiBadge.vue.d.ts +79 -0
- package/dist/components/overlays/bottom-sheet/RuiBottomSheet.vue.d.ts +39 -0
- package/dist/components/overlays/dialog/RuiDialog.vue.d.ts +68 -0
- package/dist/components/overlays/menu/RuiMenu.vue.d.ts +116 -0
- package/dist/components/overlays/navigation-drawer/RuiNavigationDrawer.vue.d.ts +81 -0
- package/dist/components/overlays/notification/RuiNotification.vue.d.ts +45 -0
- package/dist/components/overlays/tooltip/RuiTooltip.vue.d.ts +63 -0
- package/dist/components/progress/RuiProgress.vue.d.ts +71 -0
- package/dist/components/steppers/RuiFooterStepper.vue.d.ts +45 -0
- package/dist/components/steppers/RuiStepper.vue.d.ts +64 -0
- package/dist/components/steppers/RuiStepperCustomIcon.vue.d.ts +32 -0
- package/dist/components/steppers/RuiStepperIcon.vue.d.ts +32 -0
- package/dist/components/tables/RuiDataTable.vue.d.ts +512 -0
- package/dist/components/tables/RuiExpandButton.vue.d.ts +37 -0
- package/dist/components/tables/RuiTableHead.vue.d.ts +194 -0
- package/dist/components/tables/RuiTablePagination.vue.d.ts +47 -0
- package/dist/components/tabs/tab/RuiTab.vue.d.ts +90 -0
- package/dist/components/tabs/tab-item/RuiTabItem.vue.d.ts +48 -0
- package/dist/components/tabs/tab-items/RuiTabItems.vue.d.ts +28 -0
- package/dist/components/tabs/tabs/RuiTabs.vue.d.ts +53 -0
- package/dist/composables/dropdown-menu.d.ts +18 -6
- package/dist/composables/index.es.js +2 -2
- package/dist/composables/popper.d.ts +2 -0
- package/dist/composables/theme.d.ts +1 -1
- package/dist/consts/typography.d.ts +1 -2
- package/dist/icons/icons_1.d.ts +44 -44
- package/dist/icons/icons_1.es.js +987 -987
- package/dist/icons/icons_2.d.ts +60 -60
- package/dist/icons/icons_2.es.js +1121 -1121
- package/dist/icons/icons_3.d.ts +76 -76
- package/dist/icons/icons_3.es.js +1149 -1149
- package/dist/icons/icons_4.d.ts +96 -96
- package/dist/icons/icons_4.es.js +1193 -1193
- package/dist/icons/icons_5.d.ts +132 -132
- package/dist/icons/icons_5.es.js +1267 -1267
- package/dist/icons/icons_6.d.ts +156 -0
- package/dist/icons/icons_6.es.js +1099 -475
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.es.js +2840 -2684
- package/dist/index-NNlkUY_M.js +161 -0
- package/dist/index.es.js +2921 -2761
- package/dist/style.css +1 -1
- package/dist/utils/helpers.d.ts +9 -0
- package/package.json +45 -48
- package/dist/Accordion-BFcz_iFc.js +0 -8386
- package/dist/components/accordions/accordion/Accordion.vue.d.ts +0 -71
- package/dist/components/accordions/accordions/Accordions.vue.d.ts +0 -31
- package/dist/components/alerts/Alert.vue.d.ts +0 -93
- package/dist/components/buttons/button/Button.vue.d.ts +0 -51
- package/dist/components/buttons/button-group/ButtonGroup.vue.d.ts +0 -36
- package/dist/components/cards/Card.vue.d.ts +0 -80
- package/dist/components/cards/CardHeader.vue.d.ts +0 -26
- package/dist/components/chips/Chip.vue.d.ts +0 -123
- package/dist/components/divider/Divider.vue.d.ts +0 -17
- package/dist/components/forms/auto-complete/AutoComplete.vue.d.ts +0 -71
- package/dist/components/forms/auto-complete/AutoCompleteSelection.vue.d.ts +0 -30
- package/dist/components/forms/checkbox/Checkbox.vue.d.ts +0 -121
- package/dist/components/forms/radio-button/radio/Radio.vue.d.ts +0 -118
- package/dist/components/forms/radio-button/radio-group/RadioGroup.vue.d.ts +0 -112
- package/dist/components/forms/revealable-text-field/RevealableTextField.vue.d.ts +0 -169
- package/dist/components/forms/select/SimpleSelect.vue.d.ts +0 -59
- package/dist/components/forms/slider/Slider.vue.d.ts +0 -192
- package/dist/components/forms/switch/Switch.vue.d.ts +0 -109
- package/dist/components/forms/text-area/TextArea.vue.d.ts +0 -233
- package/dist/components/forms/text-field/TextField.vue.d.ts +0 -199
- package/dist/components/helpers/FormTextDetail.vue.d.ts +0 -32
- package/dist/components/icons/Icon.vue.d.ts +0 -38
- package/dist/components/loaders/Skeleton.vue.d.ts +0 -27
- package/dist/components/loaders/SkeletonBase.vue.d.ts +0 -17
- package/dist/components/logos/Logo.vue.d.ts +0 -65
- package/dist/components/overlays/badge/Badge.vue.d.ts +0 -128
- package/dist/components/overlays/dialog/Dialog.vue.d.ts +0 -60
- package/dist/components/overlays/menu/Menu.vue.d.ts +0 -191
- package/dist/components/overlays/tooltip/Tooltip.vue.d.ts +0 -88
- package/dist/components/progress/Progress.vue.d.ts +0 -102
- package/dist/components/steppers/FooterStepper.vue.d.ts +0 -50
- package/dist/components/steppers/Stepper.vue.d.ts +0 -97
- package/dist/components/steppers/StepperCustomIcon.vue.d.ts +0 -23
- package/dist/components/steppers/StepperIcon.vue.d.ts +0 -23
- package/dist/components/tables/DataTable.vue.d.ts +0 -279
- package/dist/components/tables/ExpandButton.vue.d.ts +0 -34
- package/dist/components/tables/TableHead.vue.d.ts +0 -127
- package/dist/components/tables/TablePagination.vue.d.ts +0 -56
- package/dist/components/tabs/tab/Tab.vue.d.ts +0 -141
- package/dist/components/tabs/tab-item/TabItem.vue.d.ts +0 -54
- package/dist/components/tabs/tab-items/TabItems.vue.d.ts +0 -17
- package/dist/components/tabs/tabs/Tabs.vue.d.ts +0 -72
- package/dist/index-x2urm9HD.js +0 -176
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { RiArrowDownLine as x, RiArrowDropDownFill as T, RiArrowLeftDoubleLine as $, RiArrowLeftLine as D, RiArrowLeftSLine as S, RiArrowRightDoubleLine as v, RiArrowRightLine as I, RiArrowRightSLine as U, RiExpandUpDownLine as M } from "./icons/icons_1.es.js";
|
|
2
|
+
import { RiDatabase2Line as B } from "./icons/icons_2.es.js";
|
|
3
|
+
import { RiAlertFill as _, RiAlertLine as j, RiCheckLine as O, RiCheckboxBlankCircleFill as P, RiCheckboxBlankCircleLine as W, RiCheckboxBlankLine as q, RiCheckboxCircleFill as z, RiCheckboxCircleLine as G, RiCheckboxFill as H, RiCheckboxIndeterminateFill as N, RiCloseCircleLine as V, RiCloseFill as J, RiCloseLine as K, RiErrorWarningFill as Q, RiErrorWarningLine as X, RiEyeLine as Y, RiEyeOffLine as Z, RiInformationFill as ee, RiInformationLine as ie } from "./icons/icons_5.es.js";
|
|
4
|
+
import { RiRadioButtonLine as re, RiMoreFill as te } from "./icons/icons_6.es.js";
|
|
5
|
+
import { createGlobalState as oe, createSharedComposable as ne, useColorMode as ae } from "@vueuse/core";
|
|
6
|
+
import { ref as w, computed as p, watch as se } from "vue";
|
|
7
|
+
import { set as g, get as s } from "@vueuse/shared";
|
|
8
|
+
import { c as le } from "./colors-D563Ic3q.js";
|
|
9
|
+
const ye = oe(() => {
|
|
10
|
+
const e = [
|
|
11
|
+
_,
|
|
12
|
+
j,
|
|
13
|
+
x,
|
|
14
|
+
T,
|
|
15
|
+
$,
|
|
16
|
+
D,
|
|
17
|
+
S,
|
|
18
|
+
v,
|
|
19
|
+
I,
|
|
20
|
+
U,
|
|
21
|
+
O,
|
|
22
|
+
P,
|
|
23
|
+
W,
|
|
24
|
+
q,
|
|
25
|
+
z,
|
|
26
|
+
G,
|
|
27
|
+
H,
|
|
28
|
+
N,
|
|
29
|
+
V,
|
|
30
|
+
J,
|
|
31
|
+
K,
|
|
32
|
+
B,
|
|
33
|
+
Q,
|
|
34
|
+
X,
|
|
35
|
+
Y,
|
|
36
|
+
Z,
|
|
37
|
+
ee,
|
|
38
|
+
ie,
|
|
39
|
+
re,
|
|
40
|
+
te,
|
|
41
|
+
M
|
|
42
|
+
], i = w({});
|
|
43
|
+
return { registeredIcons: i, registerIcons: (t) => {
|
|
44
|
+
g(i, {
|
|
45
|
+
...s(i),
|
|
46
|
+
...Object.fromEntries(
|
|
47
|
+
[...e, ...t].map(({ name: r, path: o }) => [r, o])
|
|
48
|
+
)
|
|
49
|
+
});
|
|
50
|
+
} };
|
|
51
|
+
}), a = {
|
|
52
|
+
auto: "auto",
|
|
53
|
+
dark: "dark",
|
|
54
|
+
light: "light"
|
|
55
|
+
};
|
|
56
|
+
function k(e) {
|
|
57
|
+
return Object.fromEntries(
|
|
58
|
+
le.map((i) => [
|
|
59
|
+
i,
|
|
60
|
+
{
|
|
61
|
+
darker: `var(--rui-${e}-${i}-darker)`,
|
|
62
|
+
DEFAULT: `var(--rui-${e}-${i}-main)`,
|
|
63
|
+
lighter: `var(--rui-${e}-${i}-lighter)`
|
|
64
|
+
}
|
|
65
|
+
])
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
const b = {
|
|
69
|
+
dark: k("dark"),
|
|
70
|
+
light: k("light")
|
|
71
|
+
}, C = w({ ...b }), Ee = ne(() => {
|
|
72
|
+
const { state: e, store: i } = ae(), n = p(() => s(i) === a.auto), t = p(() => s(e) === a.light), r = p(() => s(e) === a.dark), o = p(() => s(t) ? s(C).light : s(C).dark), l = (c) => {
|
|
73
|
+
g(i, c || a.auto);
|
|
74
|
+
}, u = () => {
|
|
75
|
+
s(n) ? l(a.light) : s(t) ? l(a.dark) : s(r) && l(a.auto);
|
|
76
|
+
}, h = (c) => {
|
|
77
|
+
g(C, c);
|
|
78
|
+
};
|
|
79
|
+
return {
|
|
80
|
+
config: C,
|
|
81
|
+
init: (c) => {
|
|
82
|
+
l(c.mode ?? a.auto), h(c.config ?? { ...b }), typeof window < "u" && se([t, o], ([y, E]) => {
|
|
83
|
+
const f = /* @__PURE__ */ new Map();
|
|
84
|
+
Object.entries(E).forEach(([d, R]) => {
|
|
85
|
+
f.set(`--rui-${d}-darker`, R.darker), f.set(`--rui-${d}-lighter`, R.lighter), f.set(`--rui-${d}-main`, R.DEFAULT);
|
|
86
|
+
});
|
|
87
|
+
const L = y ? a.light : a.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 F = document.documentElement.style;
|
|
90
|
+
f.forEach((d, R) => {
|
|
91
|
+
F.setProperty(R, d);
|
|
92
|
+
});
|
|
93
|
+
}, { immediate: !0 });
|
|
94
|
+
},
|
|
95
|
+
isAutoControlled: n,
|
|
96
|
+
isDark: r,
|
|
97
|
+
isLight: t,
|
|
98
|
+
setThemeConfig: h,
|
|
99
|
+
state: e,
|
|
100
|
+
store: i,
|
|
101
|
+
switchThemeScheme: l,
|
|
102
|
+
theme: o,
|
|
103
|
+
toggleThemeMode: u
|
|
104
|
+
};
|
|
105
|
+
}), ce = /\d/, ue = ["-", "_", "/", "."];
|
|
106
|
+
function fe(e = "") {
|
|
107
|
+
if (!ce.test(e))
|
|
108
|
+
return e !== e.toLowerCase();
|
|
109
|
+
}
|
|
110
|
+
function A(e, i) {
|
|
111
|
+
const n = i ?? ue, t = [];
|
|
112
|
+
if (!e || typeof e != "string")
|
|
113
|
+
return t;
|
|
114
|
+
let r = "", o, l;
|
|
115
|
+
for (const u of e) {
|
|
116
|
+
const h = n.includes(u);
|
|
117
|
+
if (h === !0) {
|
|
118
|
+
t.push(r), r = "", o = void 0;
|
|
119
|
+
continue;
|
|
120
|
+
}
|
|
121
|
+
const m = fe(u);
|
|
122
|
+
if (l === !1) {
|
|
123
|
+
if (o === !1 && m === !0) {
|
|
124
|
+
t.push(r), r = u, o = m;
|
|
125
|
+
continue;
|
|
126
|
+
}
|
|
127
|
+
if (o === !0 && m === !1 && r.length > 1) {
|
|
128
|
+
const c = r.at(-1);
|
|
129
|
+
t.push(r.slice(0, Math.max(0, r.length - 1))), r = c + u, o = m;
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
r += u, o = m, l = h;
|
|
134
|
+
}
|
|
135
|
+
return t.push(r), t;
|
|
136
|
+
}
|
|
137
|
+
function me(e) {
|
|
138
|
+
return e ? e[0].toUpperCase() + e.slice(1) : "";
|
|
139
|
+
}
|
|
140
|
+
function he(e) {
|
|
141
|
+
return e ? e[0].toLowerCase() + e.slice(1) : "";
|
|
142
|
+
}
|
|
143
|
+
function de(e, i) {
|
|
144
|
+
return e ? (Array.isArray(e) ? e : A(e)).map((n) => me(i != null && i.normalize ? n.toLowerCase() : n)).join("") : "";
|
|
145
|
+
}
|
|
146
|
+
function Fe(e, i) {
|
|
147
|
+
return he(de(e || "", i));
|
|
148
|
+
}
|
|
149
|
+
function Re(e, i) {
|
|
150
|
+
return e ? (Array.isArray(e) ? e : A(e)).map((n) => n.toLowerCase()).join(i ?? "-") : "";
|
|
151
|
+
}
|
|
152
|
+
function xe(e) {
|
|
153
|
+
return Re(e || "", "_");
|
|
154
|
+
}
|
|
155
|
+
export {
|
|
156
|
+
a as T,
|
|
157
|
+
Ee as a,
|
|
158
|
+
Fe as c,
|
|
159
|
+
xe as s,
|
|
160
|
+
ye as u
|
|
161
|
+
};
|