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.
- package/components/Dropdown/Dropdown.js +56 -54
- package/components/Glass/Glass.js +4 -4
- package/components/Input/Checkbox/Checkbox.js +23 -22
- package/components/Input/Checkbox/styles.js +1 -1
- package/components/Input/FileUploader/FileUploader.js +22 -21
- package/components/Input/Radio/Radio.js +10 -10
- package/components/Input/RadioGroup/RadioGroup.js +19 -17
- package/components/Loader/Loader.js +12 -12
- package/components/MenuItem/MenuItem.js +10 -8
- package/components/OtpInput/OtpInput.js +16 -15
- package/components/Pagination/Pagination.js +17 -14
- package/components/Selectbox/Selectbox.js +48 -46
- package/components/Shimmer/Shimmer.js +3 -3
- package/components/Shimmer/styles.js +3 -3
- package/components/Spinner/Spinner.js +14 -13
- package/components/Timer/Timer.js +35 -34
- package/components/Toast/Toast.js +18 -18
- package/components/Typography/Headings/H1.js +5 -5
- package/components/Typography/Headings/H2.js +5 -5
- package/components/Typography/Headings/H3.js +5 -5
- package/components/Typography/Headings/H4.js +5 -5
- package/components/Typography/Headings/H5.js +5 -5
- package/components/Typography/Headings/H6.js +5 -5
- package/components/VideoPlayer/VideoPlayer.js +11 -11
- package/package.json +1 -1
|
@@ -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
|
|
4
|
-
import
|
|
5
|
-
import { COLOR_MAP as
|
|
6
|
-
import { ToastWrapper as
|
|
7
|
-
const
|
|
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
|
-
},
|
|
13
|
-
const [
|
|
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
|
|
17
|
+
const C = setTimeout(m(c, s, a), t * 1e3 - 500);
|
|
18
18
|
return () => {
|
|
19
|
-
clearTimeout(
|
|
19
|
+
clearTimeout(C);
|
|
20
20
|
};
|
|
21
21
|
}, [t, m]);
|
|
22
|
-
const { main:
|
|
23
|
-
if (
|
|
24
|
-
return /* @__PURE__ */ n(
|
|
25
|
-
/* @__PURE__ */ r(
|
|
26
|
-
/* @__PURE__ */ n(
|
|
27
|
-
/* @__PURE__ */ r(
|
|
28
|
-
i && /* @__PURE__ */ r(
|
|
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(
|
|
30
|
+
/* @__PURE__ */ r(M, { size: 20, color: $.m600, onClick: m(c, s, a) })
|
|
31
31
|
] });
|
|
32
32
|
};
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
b as default
|
|
35
35
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
`,
|
|
6
|
+
`, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
`,
|
|
6
|
+
`, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
`,
|
|
6
|
+
`, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
`,
|
|
6
|
+
`, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
`,
|
|
6
|
+
`, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
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
|
-
`,
|
|
6
|
+
`, f = ({ color: o, children: r, ...t }) => /* @__PURE__ */ e(m, { $color: o, ...t, children: r });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
f as default
|
|
9
9
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as f, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as t } from "react";
|
|
3
|
-
import { VideoContainer as
|
|
4
|
-
import { useSpacebarToggle as
|
|
5
|
-
import
|
|
6
|
-
import { useVolumeOverlay as
|
|
7
|
-
const
|
|
8
|
-
const o = t(null), e = t(null), { volume:
|
|
9
|
-
return
|
|
10
|
-
/* @__PURE__ */ r(
|
|
11
|
-
/* @__PURE__ */ r(
|
|
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
|
-
|
|
15
|
+
j as default
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "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",
|