@mudakit/ui 0.5.0 → 0.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.
- package/CHANGELOG.md +6 -0
- package/dist/composables/index.d.ts +1 -0
- package/dist/composables/index.js +3 -3
- package/dist/composables/useMudaColors.d.ts +70 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -30
- package/dist/useResizeObserver-B0uwslYk.js +47 -0
- package/package.json +1 -1
- package/dist/useResizeObserver-BYI1Pg1T.js +0 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../useBodyScrollLock-4K-3lAFL.js";
|
|
2
2
|
import { t } from "../useClickOutside-B6tdxsc3.js";
|
|
3
3
|
import { t as n } from "../useKeyDown-B1jmp4nA.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
export { e as useBodyScrollLock, t as useClickOutside, n as useKeyDown, r as
|
|
4
|
+
import { n as r, t as i } from "../useResizeObserver-B0uwslYk.js";
|
|
5
|
+
import { t as a } from "../useZIndex-DWnsohLZ.js";
|
|
6
|
+
export { e as useBodyScrollLock, t as useClickOutside, n as useKeyDown, r as useMudaColors, i as useResizeObserver, a as useZIndex };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
declare const COLOR_MAP: {
|
|
2
|
+
readonly background: "--muda-color-background";
|
|
3
|
+
readonly foreground: "--muda-color-foreground";
|
|
4
|
+
readonly formBackground: "--muda-color-form-background";
|
|
5
|
+
readonly primary: "--muda-color-primary";
|
|
6
|
+
readonly primaryLight: "--muda-color-primary-light";
|
|
7
|
+
readonly primaryDark: "--muda-color-primary-dark";
|
|
8
|
+
readonly secondary: "--muda-color-secondary";
|
|
9
|
+
readonly secondaryLight: "--muda-color-secondary-light";
|
|
10
|
+
readonly secondaryDark: "--muda-color-secondary-dark";
|
|
11
|
+
readonly success: "--muda-color-success";
|
|
12
|
+
readonly successLight: "--muda-color-success-light";
|
|
13
|
+
readonly successDark: "--muda-color-success-dark";
|
|
14
|
+
readonly danger: "--muda-color-danger";
|
|
15
|
+
readonly dangerLight: "--muda-color-danger-light";
|
|
16
|
+
readonly dangerDark: "--muda-color-danger-dark";
|
|
17
|
+
readonly warning: "--muda-color-warning";
|
|
18
|
+
readonly warningLight: "--muda-color-warning-light";
|
|
19
|
+
readonly warningDark: "--muda-color-warning-dark";
|
|
20
|
+
readonly info: "--muda-color-info";
|
|
21
|
+
readonly infoLight: "--muda-color-info-light";
|
|
22
|
+
readonly infoDark: "--muda-color-info-dark";
|
|
23
|
+
};
|
|
24
|
+
export type MudaColorMap = Record<keyof typeof COLOR_MAP, string>;
|
|
25
|
+
export declare const useMudaColors: () => Readonly<import("vue").Ref<{
|
|
26
|
+
readonly primary: string;
|
|
27
|
+
readonly secondary: string;
|
|
28
|
+
readonly success: string;
|
|
29
|
+
readonly danger: string;
|
|
30
|
+
readonly warning: string;
|
|
31
|
+
readonly info: string;
|
|
32
|
+
readonly background: string;
|
|
33
|
+
readonly foreground: string;
|
|
34
|
+
readonly formBackground: string;
|
|
35
|
+
readonly primaryLight: string;
|
|
36
|
+
readonly primaryDark: string;
|
|
37
|
+
readonly secondaryLight: string;
|
|
38
|
+
readonly secondaryDark: string;
|
|
39
|
+
readonly successLight: string;
|
|
40
|
+
readonly successDark: string;
|
|
41
|
+
readonly dangerLight: string;
|
|
42
|
+
readonly dangerDark: string;
|
|
43
|
+
readonly warningLight: string;
|
|
44
|
+
readonly warningDark: string;
|
|
45
|
+
readonly infoLight: string;
|
|
46
|
+
readonly infoDark: string;
|
|
47
|
+
}, {
|
|
48
|
+
readonly primary: string;
|
|
49
|
+
readonly secondary: string;
|
|
50
|
+
readonly success: string;
|
|
51
|
+
readonly danger: string;
|
|
52
|
+
readonly warning: string;
|
|
53
|
+
readonly info: string;
|
|
54
|
+
readonly background: string;
|
|
55
|
+
readonly foreground: string;
|
|
56
|
+
readonly formBackground: string;
|
|
57
|
+
readonly primaryLight: string;
|
|
58
|
+
readonly primaryDark: string;
|
|
59
|
+
readonly secondaryLight: string;
|
|
60
|
+
readonly secondaryDark: string;
|
|
61
|
+
readonly successLight: string;
|
|
62
|
+
readonly successDark: string;
|
|
63
|
+
readonly dangerLight: string;
|
|
64
|
+
readonly dangerDark: string;
|
|
65
|
+
readonly warningLight: string;
|
|
66
|
+
readonly warningDark: string;
|
|
67
|
+
readonly infoLight: string;
|
|
68
|
+
readonly infoDark: string;
|
|
69
|
+
}>>;
|
|
70
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -29,5 +29,6 @@ export * from "./components/MudaTag";
|
|
|
29
29
|
export * from "./composables/useBodyScrollLock";
|
|
30
30
|
export * from "./composables/useClickOutside";
|
|
31
31
|
export * from "./composables/useKeyDown";
|
|
32
|
+
export * from "./composables/useMudaColors";
|
|
32
33
|
export * from "./composables/useResizeObserver";
|
|
33
34
|
export * from "./composables/useZIndex";
|
package/dist/index.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { t as e } from "./useBodyScrollLock-4K-3lAFL.js";
|
|
2
2
|
import { t } from "./useClickOutside-B6tdxsc3.js";
|
|
3
3
|
import { t as n } from "./useKeyDown-B1jmp4nA.js";
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { a as
|
|
9
|
-
import { a as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { n as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { n as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { n as
|
|
30
|
-
import { t as
|
|
31
|
-
import { i as
|
|
32
|
-
import { t as
|
|
33
|
-
export {
|
|
4
|
+
import { n as r, t as i } from "./useResizeObserver-B0uwslYk.js";
|
|
5
|
+
import { t as a } from "./useZIndex-DWnsohLZ.js";
|
|
6
|
+
import { t as o } from "./MudaButton-B9EAJW32.js";
|
|
7
|
+
import { t as s } from "./MudaButtonStack-8z8FVezw.js";
|
|
8
|
+
import { a as c, c as l, i as u, l as d, n as f, o as p, r as m, s as h, t as g } from "./MudaCalendar-CgKIaHEr.js";
|
|
9
|
+
import { a as _, c as v, i as y, l as b, n as x, o as S, r as C, s as w, t as T, u as E } from "./MudaIcon-BwqQQnti.js";
|
|
10
|
+
import { t as D } from "./MudaFormInput-D1-kQq9y.js";
|
|
11
|
+
import { t as O } from "./MudaPopover-C1fDWbPf.js";
|
|
12
|
+
import { t as k } from "./MudaCard-DGdFOdro.js";
|
|
13
|
+
import { n as A, t as j } from "./MudaColorPicker-D9BhgHf9.js";
|
|
14
|
+
import { t as M } from "./MudaFocusTrap-CGlvV_MC.js";
|
|
15
|
+
import { t as N } from "./MudaDialog-dQSFVdgu.js";
|
|
16
|
+
import { t as P } from "./MudaDropdown-Dhv8Mhxm.js";
|
|
17
|
+
import { t as F } from "./MudaErrorBox-B9ySoal8.js";
|
|
18
|
+
import { t as I } from "./MudaFormCheckbox-C1wTjohm.js";
|
|
19
|
+
import { n as L, t as R } from "./MudaFormCombobox-CK2De6Rv.js";
|
|
20
|
+
import { n as z, t as B } from "./MudaFormField-dOZRdslO.js";
|
|
21
|
+
import { t as V } from "./MudaFormRadio-BXj-XnwW.js";
|
|
22
|
+
import { t as H } from "./MudaFormRadioGroup-DnsZT-0C.js";
|
|
23
|
+
import { t as U } from "./MudaFormSelect-CLmsuMQG.js";
|
|
24
|
+
import { t as W } from "./MudaFormSwitch-C2Hx0mfr.js";
|
|
25
|
+
import { t as G } from "./MudaFormText-DbSiSTGh.js";
|
|
26
|
+
import { t as K } from "./MudaIconPicker-X5xJ_lbO.js";
|
|
27
|
+
import { t as q } from "./MudaMarker-DX1N2YxM.js";
|
|
28
|
+
import { t as J } from "./MudaPagination-BoqrKfPw.js";
|
|
29
|
+
import { n as Y, r as X, t as Z } from "./MudaSidebar-DvKS4VtE.js";
|
|
30
|
+
import { t as Q } from "./MudaSpinner-BMR0Shwx.js";
|
|
31
|
+
import { i as $, n as ee, r as te, t as ne } from "./MudaTable-BxKbNx6v.js";
|
|
32
|
+
import { t as re } from "./MudaTag-kOu3daeI.js";
|
|
33
|
+
export { u as CALENDAR_DAY_FORMAT, c as CALENDAR_MONTH_FORMAT, p as CALENDAR_VALUE_FORMAT, h as CALENDAR_YEAR_FORMAT, l as MONTH_RANGE_SIZE, E as MUDA_ICON_DELIMITER, Y as MUDA_SIDEBAR_DEFAULT_CONTENT_WIDTH, X as MUDA_SIDEBAR_DEFAULT_PANE_WIDTH, o as MudaButton, s as MudaButtonStack, f as MudaCalendar, m as MudaCalendarDatePicker, g as MudaCalendarInput, k as MudaCard, j as MudaColorPicker, A as MudaColorPickerControl, N as MudaDialog, P as MudaDropdown, F as MudaErrorBox, M as MudaFocusTrap, I as MudaFormCheckbox, L as MudaFormComboboxMultiple, R as MudaFormComboboxSingle, B as MudaFormField, z as MudaFormFieldErrors, D as MudaFormInput, V as MudaFormRadio, H as MudaFormRadioGroup, U as MudaFormSelect, W as MudaFormSwitch, G as MudaFormText, T as MudaIcon, K as MudaIconPicker, q as MudaMarker, J as MudaPagination, O as MudaPopover, Z as MudaSidebar, Q as MudaSpinner, $ as MudaTable, te as MudaTableCell, ee as MudaTableHead, ne as MudaTableRow, re as MudaTag, d as YEAR_RANGE_SIZE, x as composeIcon, C as extractIconName, y as extractIconVariant, _ as isIconName, S as isIconVariant, e as useBodyScrollLock, t as useClickOutside, n as useKeyDown, r as useMudaColors, w as useMudaIcon, v as useMudaIconNames, b as useMudaIcons, i as useResizeObserver, a as useZIndex };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { onUnmounted as e, readonly as t, ref as n, shallowRef as r, watch as i } from "vue";
|
|
2
|
+
//#region src/composables/useMudaColors.ts
|
|
3
|
+
var a = {
|
|
4
|
+
background: "--muda-color-background",
|
|
5
|
+
foreground: "--muda-color-foreground",
|
|
6
|
+
formBackground: "--muda-color-form-background",
|
|
7
|
+
primary: "--muda-color-primary",
|
|
8
|
+
primaryLight: "--muda-color-primary-light",
|
|
9
|
+
primaryDark: "--muda-color-primary-dark",
|
|
10
|
+
secondary: "--muda-color-secondary",
|
|
11
|
+
secondaryLight: "--muda-color-secondary-light",
|
|
12
|
+
secondaryDark: "--muda-color-secondary-dark",
|
|
13
|
+
success: "--muda-color-success",
|
|
14
|
+
successLight: "--muda-color-success-light",
|
|
15
|
+
successDark: "--muda-color-success-dark",
|
|
16
|
+
danger: "--muda-color-danger",
|
|
17
|
+
dangerLight: "--muda-color-danger-light",
|
|
18
|
+
dangerDark: "--muda-color-danger-dark",
|
|
19
|
+
warning: "--muda-color-warning",
|
|
20
|
+
warningLight: "--muda-color-warning-light",
|
|
21
|
+
warningDark: "--muda-color-warning-dark",
|
|
22
|
+
info: "--muda-color-info",
|
|
23
|
+
infoLight: "--muda-color-info-light",
|
|
24
|
+
infoDark: "--muda-color-info-dark"
|
|
25
|
+
}, o = () => {
|
|
26
|
+
let e = getComputedStyle(document.documentElement), t = {};
|
|
27
|
+
for (let [n, r] of Object.entries(a)) t[n] = e.getPropertyValue(r).trim();
|
|
28
|
+
return t;
|
|
29
|
+
}, s = r({}), c, l = () => {
|
|
30
|
+
s.value = o();
|
|
31
|
+
}, u = () => {
|
|
32
|
+
c != null || typeof document > "u" || (l(), c = new MutationObserver(l), c.observe(document.documentElement, {
|
|
33
|
+
attributes: !0,
|
|
34
|
+
attributeFilter: ["data-theme", "class"]
|
|
35
|
+
}));
|
|
36
|
+
}, d = () => (u(), t(s)), f = (t, r) => {
|
|
37
|
+
let a = n(!1), o = new ResizeObserver((e) => {
|
|
38
|
+
for (let t of e) r(t);
|
|
39
|
+
});
|
|
40
|
+
e(() => {
|
|
41
|
+
t.value != null && (o.unobserve(t.value), o.disconnect(), a.value = !1);
|
|
42
|
+
}), i(t, (e) => {
|
|
43
|
+
a.value || e != null && (o.observe(e), a.value = !0);
|
|
44
|
+
}, { immediate: !0 });
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
47
|
+
export { d as n, f as t };
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { onUnmounted as e, ref as t, watch as n } from "vue";
|
|
2
|
-
//#region src/composables/useResizeObserver.ts
|
|
3
|
-
var r = (r, i) => {
|
|
4
|
-
let a = t(!1), o = new ResizeObserver((e) => {
|
|
5
|
-
for (let t of e) i(t);
|
|
6
|
-
});
|
|
7
|
-
e(() => {
|
|
8
|
-
r.value != null && (o.unobserve(r.value), o.disconnect(), a.value = !1);
|
|
9
|
-
}), n(r, (e) => {
|
|
10
|
-
a.value || e != null && (o.observe(e), a.value = !0);
|
|
11
|
-
}, { immediate: !0 });
|
|
12
|
-
};
|
|
13
|
-
//#endregion
|
|
14
|
-
export { r as t };
|