meticulous-ui 2.5.3 → 2.5.5

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.
@@ -1,25 +1,25 @@
1
- import { jsxs as f, jsx as a } from "react/jsx-runtime";
2
- import h from "lodash-es/get";
3
- import { LoaderWrapper as u, VisuallyHidden as L, Dot as $ } from "./styles.js";
4
- import { SIZE as d, MEDIUM as m, THEME_SHADE as c, MINI_ANIMATION_DELAYS as g, ANIMATION_DELAYS as D, BLUE as M } from "./constants.js";
5
- import { getTheme as N } from "./helpers.js";
6
- const j = ({ size: l = m, theme: n = M, isBounce: p, isMini: e }) => {
7
- const { dot: i, gap: E } = d[l] || d[m], r = N(n), s = e ? g : D, I = (e ? c.slice(0, 3) : c).map((o) => h(r, o, r.m500)), A = s.map(() => i);
8
- return /* @__PURE__ */ f(u, { role: "status", $gap: E, children: [
9
- /* @__PURE__ */ a(L, { children: "Loading" }),
10
- A.map((o, t) => /* @__PURE__ */ a(
11
- $,
1
+ import { jsxs as h, jsx as d } from "react/jsx-runtime";
2
+ import u from "lodash-es/get";
3
+ import { LoaderWrapper as L, VisuallyHidden as $, Dot as g } from "./styles.js";
4
+ import { SIZE as c, MEDIUM as l, THEME_SHADE as t, MINI_ANIMATION_DELAYS as D, ANIMATION_DELAYS as M, BLUE as N } from "./constants.js";
5
+ import { getTheme as _ } from "./helpers.js";
6
+ const B = ({ size: m = l, theme: n = N, isBounce: p, isMini: r, isMiniDark: i }) => {
7
+ const { dot: E, gap: I } = c[m] || c[l], s = _(n), a = r ? D : M, A = (i ? t.slice(2, 6) : r ? t.slice(0, 3) : t).map((o) => u(s, o, s.m500)), f = a.map(() => E);
8
+ return /* @__PURE__ */ h(L, { role: "status", $gap: I, children: [
9
+ /* @__PURE__ */ d($, { children: "Loading" }),
10
+ f.map((o, e) => /* @__PURE__ */ d(
11
+ g,
12
12
  {
13
13
  "aria-hidden": "true",
14
14
  $size: o,
15
- $color: I[t],
16
- $delay: s[t],
15
+ $color: A[e],
16
+ $delay: a[e],
17
17
  $isBounce: p
18
18
  },
19
- `dot-${t}`
19
+ `dot-${e}`
20
20
  ))
21
21
  ] });
22
22
  };
23
23
  export {
24
- j as default
24
+ B as default
25
25
  };
@@ -3,7 +3,7 @@ import { jsx as o } from "react/jsx-runtime";
3
3
  const r = (e) => {
4
4
  if (e != null)
5
5
  return typeof e == "number" ? `${e}rem` : e;
6
- }, n = ({ width: e = "", height: t = "", label: i = "Loading..." }) => /* @__PURE__ */ o(
6
+ }, n = ({ width: e = "100%", height: t = "100%", label: i = "Loading..." }) => /* @__PURE__ */ o(
7
7
  "div",
8
8
  {
9
9
  className: "shimmer",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
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",
@@ -45,6 +45,7 @@
45
45
  "dropdown",
46
46
  "select-box",
47
47
  "spinner",
48
+ "shimmer",
48
49
  "otp",
49
50
  "colors",
50
51
  "shades",