meticulous-ui 2.6.2 → 2.7.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.
@@ -1,35 +1,35 @@
1
1
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
2
  import { useState as f, useEffect as u } from "react";
3
- import { Logo as C } from "./helpers.js";
4
- import S from "../../colors/grey.js";
5
- import { COLOR_MAP as $, INFO as F, INFO_COLORS as L } from "./constants.js";
6
- import { ToastWrapper as N, Message as j, Title as w, Subtitle as x, CloseWrapper as I } from "./styles.js";
7
- const M = () => {
3
+ import { Logo as S } from "./helpers.js";
4
+ import $ from "../../colors/grey.js";
5
+ import { COLOR_MAP as F, INFO as L, INFO_COLORS as N } from "./constants.js";
6
+ import { ToastWrapper as j, Message as w, Title as x, Subtitle as I, CloseWrapper as M } from "./styles.js";
7
+ const R = () => {
8
8
  }, m = (o, e, t) => () => {
9
9
  o(!0), setTimeout(() => {
10
10
  e(!1), t();
11
11
  }, 500);
12
- }, P = ({ type: o = F, visible: e = !0, duration: t = 5, onExpire: a = M, title: l, subtitle: i }) => {
13
- const [d, s] = f(e), [p, c] = f(!1);
12
+ }, b = ({ type: o = L, visible: e = !0, duration: t = 5, onExpire: a = R, title: l, subtitle: i, ...d }) => {
13
+ const [p, s] = f(e), [O, c] = f(!1);
14
14
  u(() => {
15
15
  s(e);
16
16
  }, [e]), u(() => {
17
- const g = setTimeout(m(c, s, a), t * 1e3 - 500);
17
+ const C = setTimeout(m(c, s, a), t * 1e3 - 500);
18
18
  return () => {
19
- clearTimeout(g);
19
+ clearTimeout(C);
20
20
  };
21
21
  }, [t, m]);
22
- const { main: O, side: T, bg: h } = $[o] ?? L;
23
- if (d)
24
- return /* @__PURE__ */ n(N, { $bg: h, className: `${p ? "fade-out" : "fade-in"}`, children: [
25
- /* @__PURE__ */ r(C, { type: o, $main: O, $side: T }),
26
- /* @__PURE__ */ n(j, { children: [
27
- /* @__PURE__ */ r(w, { children: l }),
28
- i && /* @__PURE__ */ r(x, { children: i })
22
+ const { main: T, side: h, bg: g } = F[o] ?? N;
23
+ if (p)
24
+ return /* @__PURE__ */ n(j, { $bg: g, className: `${O ? "fade-out" : "fade-in"}`, ...d, children: [
25
+ /* @__PURE__ */ r(S, { type: o, $main: T, $side: h }),
26
+ /* @__PURE__ */ n(w, { children: [
27
+ /* @__PURE__ */ r(x, { children: l }),
28
+ i && /* @__PURE__ */ r(I, { children: i })
29
29
  ] }),
30
- /* @__PURE__ */ r(I, { size: 20, color: S.m600, onClick: m(c, s, a) })
30
+ /* @__PURE__ */ r(M, { size: 20, color: $.m600, onClick: m(c, s, a) })
31
31
  ] });
32
32
  };
33
33
  export {
34
- P as default
34
+ b as default
35
35
  };
@@ -1,9 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "styled-components";
3
- const s = e.h1`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import s from "styled-components";
3
+ const m = s.h1`
4
4
  color: ${({ $color: o }) => o};
5
5
  font-size: 3.6rem;
6
- `, c = ({ color: o, children: r }) => /* @__PURE__ */ t(s, { $color: o, children: r });
6
+ `, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
7
7
  export {
8
- c as default
8
+ f as default
9
9
  };
@@ -1,9 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "styled-components";
3
- const s = e.h2`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import s from "styled-components";
3
+ const m = s.h2`
4
4
  color: ${({ $color: o }) => o};
5
5
  font-size: 3rem;
6
- `, c = ({ color: o, children: r }) => /* @__PURE__ */ t(s, { $color: o, children: r });
6
+ `, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
7
7
  export {
8
- c as default
8
+ f as default
9
9
  };
@@ -1,9 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "styled-components";
3
- const s = e.h3`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import s from "styled-components";
3
+ const m = s.h3`
4
4
  color: ${({ $color: o }) => o};
5
5
  font-size: 2.4rem;
6
- `, c = ({ color: o, children: r }) => /* @__PURE__ */ t(s, { $color: o, children: r });
6
+ `, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
7
7
  export {
8
- c as default
8
+ f as default
9
9
  };
@@ -1,9 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "styled-components";
3
- const s = e.h4`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import s from "styled-components";
3
+ const m = s.h4`
4
4
  color: ${({ $color: o }) => o};
5
5
  font-size: 1.8rem;
6
- `, c = ({ color: o, children: r }) => /* @__PURE__ */ t(s, { $color: o, children: r });
6
+ `, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
7
7
  export {
8
- c as default
8
+ f as default
9
9
  };
@@ -1,9 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "styled-components";
3
- const s = e.h5`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import s from "styled-components";
3
+ const m = s.h5`
4
4
  color: ${({ $color: o }) => o};
5
5
  font-size: 1.4rem;
6
- `, c = ({ color: o, children: r }) => /* @__PURE__ */ t(s, { $color: o, children: r });
6
+ `, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
7
7
  export {
8
- c as default
8
+ f as default
9
9
  };
@@ -1,9 +1,9 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import e from "styled-components";
3
- const s = e.h6`
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import s from "styled-components";
3
+ const m = s.h6`
4
4
  color: ${({ $color: o }) => o};
5
5
  font-size: 1.2rem;
6
- `, c = ({ color: o, children: r }) => /* @__PURE__ */ t(s, { $color: o, children: r });
6
+ `, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
7
7
  export {
8
- c as default
8
+ f as default
9
9
  };
@@ -1,16 +1,16 @@
1
- import { jsxs as d, jsx as r } from "react/jsx-runtime";
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
2
  import { useRef as t } from "react";
3
- import { VideoContainer as f, Video as p } from "./styles.js";
4
- import { useSpacebarToggle as c } from "./useSpacebarToggle.js";
5
- import h from "./components/Volumebar/Volumebar.js";
6
- import { useVolumeOverlay as V } from "./useVolumeOverlay.js";
7
- const $ = ({ link: s, thumbnail: i, width: m = "600", borderRadius: u = 8, height: l = "auto" }) => {
8
- const o = t(null), e = t(null), { volume: n, showVolume: a } = V();
9
- return c(o, e, a), /* @__PURE__ */ d(f, { ref: e, $width: m, $height: l, children: [
10
- /* @__PURE__ */ r(p, { $borderRadius: u, ref: o, src: s, poster: i, controls: !0, children: "Your browser does not support the video tag." }),
11
- /* @__PURE__ */ r(h, { volume: n })
3
+ import { VideoContainer as p, Video as c } from "./styles.js";
4
+ import { useSpacebarToggle as h } from "./useSpacebarToggle.js";
5
+ import V from "./components/Volumebar/Volumebar.js";
6
+ import { useVolumeOverlay as g } from "./useVolumeOverlay.js";
7
+ const j = ({ link: s, thumbnail: i, width: m = "600", borderRadius: u = 8, height: l = "auto", ...n }) => {
8
+ const o = t(null), e = t(null), { volume: a, showVolume: d } = g();
9
+ return h(o, e, d), /* @__PURE__ */ f(p, { ref: e, $width: m, $height: l, ...n, children: [
10
+ /* @__PURE__ */ r(c, { $borderRadius: u, ref: o, src: s, poster: i, controls: !0, children: "Your browser does not support the video tag." }),
11
+ /* @__PURE__ */ r(V, { volume: a })
12
12
  ] });
13
13
  };
14
14
  export {
15
- $ as default
15
+ j as default
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "2.6.2",
3
+ "version": "2.7.0",
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",