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 CHANGED
@@ -4,7 +4,6 @@ A lightweight, modern React component library, following Semantic HTML & ARIA, d
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/meticulous-ui)](https://www.npmjs.com/package/meticulous-ui)
6
6
  [![npm downloads](https://img.shields.io/npm/dm/meticulous-ui)](https://www.npmjs.com/package/meticulous-ui)
7
- [![license](https://img.shields.io/npm/l/meticulous-ui)](https://github.com/xe3110/meticulous-ui/blob/main/LICENSE)
8
7
 
9
8
  ---
10
9
 
@@ -1,24 +1,24 @@
1
- import { jsxs as u, jsx as d } from "react/jsx-runtime";
2
- import { LoaderWrapper as L, VisuallyHidden as $, Dot as f } from "./styles.js";
3
- import { SIZE as c, MEDIUM as l, THEME_SHADE as s, MINI_ANIMATION_DELAYS as D, ANIMATION_DELAYS as M, BLUE as N } from "./constants.js";
4
- import { getTheme as g } from "./helpers.js";
5
- const H = ({ size: m = l, theme: n = N, isBounce: p, isMini: t, isMiniDark: i }) => {
6
- const { dot: E, gap: I } = c[m] || c[l], r = g(n), a = t ? D : M, A = (i ? s.slice(2, 6) : t ? s.slice(0, 3) : s).map((o) => r[o] ?? r.m500), h = a.map(() => E);
7
- return /* @__PURE__ */ u(L, { role: "status", $gap: I, children: [
8
- /* @__PURE__ */ d($, { children: "Loading" }),
9
- h.map((o, e) => /* @__PURE__ */ d(
10
- f,
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: A[e],
15
- $delay: a[e],
16
- $isBounce: p
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
- H as default
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
- }, s = "blue", A = ["m200", "m300", "m400", "m600", "m800"], E = [0, 0.17, 0.34, 0.51, 0.68], c = [0, 0.28, 0.57];
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
- s as BLUE,
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
- A as THEME_SHADE
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.0",
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",