meticulous-ui 2.6.0 → 2.6.2
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 +0 -1
- package/components/Loader/Loader.js +14 -14
- package/components/Loader/constants.js +3 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,6 @@ A lightweight, modern React component library, following Semantic HTML & ARIA, d
|
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/meticulous-ui)
|
|
6
6
|
[](https://www.npmjs.com/package/meticulous-ui)
|
|
7
|
-
[](https://github.com/xe3110/meticulous-ui/blob/main/LICENSE)
|
|
8
7
|
|
|
9
8
|
---
|
|
10
9
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { LoaderWrapper as L, VisuallyHidden as
|
|
3
|
-
import { SIZE as
|
|
4
|
-
import { getTheme as
|
|
5
|
-
const
|
|
6
|
-
const { dot: E, gap:
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
/* @__PURE__ */
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as f, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { LoaderWrapper as L, VisuallyHidden as g, Dot as A } from "./styles.js";
|
|
3
|
+
import { SIZE as d, MEDIUM as c, THEME_SHADE as s, ANIMATION_DELAYS as D, BLUE as I } from "./constants.js";
|
|
4
|
+
import { getTheme as M } from "./helpers.js";
|
|
5
|
+
const j = ({ size: l = c, theme: n = I, isBounce: i, isMini: m, isMiniDark: p }) => {
|
|
6
|
+
const { dot: E, gap: h } = d[l] || d[c], t = M(n), r = D, u = (p ? s.slice(2, 6) : m ? s.slice(0, 3) : s).map((o) => t[o] ?? t.m500), $ = r.map(() => E);
|
|
7
|
+
return /* @__PURE__ */ f(L, { role: "status", $gap: h, children: [
|
|
8
|
+
/* @__PURE__ */ a(g, { children: "Loading" }),
|
|
9
|
+
$.map((o, e) => /* @__PURE__ */ a(
|
|
10
|
+
A,
|
|
11
11
|
{
|
|
12
12
|
"aria-hidden": "true",
|
|
13
13
|
$size: o,
|
|
14
|
-
$color:
|
|
15
|
-
$delay:
|
|
16
|
-
$isBounce:
|
|
14
|
+
$color: u[e],
|
|
15
|
+
$delay: r[e],
|
|
16
|
+
$isBounce: i
|
|
17
17
|
},
|
|
18
18
|
`dot-${e}`
|
|
19
19
|
))
|
|
20
20
|
] });
|
|
21
21
|
};
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
j as default
|
|
24
24
|
};
|
|
@@ -2,14 +2,13 @@ const m = "small", o = "medium", t = "large", e = {
|
|
|
2
2
|
[m]: { dot: "0.5rem", gap: "0.3rem" },
|
|
3
3
|
[o]: { dot: "0.75rem", gap: "0.5rem" },
|
|
4
4
|
[t]: { dot: "1rem", gap: "0.7rem" }
|
|
5
|
-
},
|
|
5
|
+
}, r = "blue", s = ["m200", "m300", "m400", "m600", "m800"], E = [0, 0.17, 0.34, 0.51, 0.68];
|
|
6
6
|
export {
|
|
7
7
|
E as ANIMATION_DELAYS,
|
|
8
|
-
|
|
8
|
+
r as BLUE,
|
|
9
9
|
t as LARGE,
|
|
10
10
|
o as MEDIUM,
|
|
11
|
-
c as MINI_ANIMATION_DELAYS,
|
|
12
11
|
e as SIZE,
|
|
13
12
|
m as SMALL,
|
|
14
|
-
|
|
13
|
+
s as THEME_SHADE
|
|
15
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A comprehensive React UI component library with a wide range of customizable components, icons, colors, and utilities for building modern web applications.",
|
|
6
6
|
"main": "./index.js",
|