meticulous-ui 2.5.1 → 2.5.3
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 +1 -0
- package/components/PageLoader/PageLoader.js +22 -0
- package/components/PageLoader/index.js +4 -0
- package/components/PageLoader/styles.js +14 -0
- package/components/Shimmer/Shimmer.js +20 -0
- package/components/Shimmer/index.js +4 -0
- package/index.js +52 -48
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ export default App;
|
|
|
63
63
|
| `SelectBox` | Renders selectbox to select multiple values from options |
|
|
64
64
|
| `Spinner` | Renders a spinner to show the loading state |
|
|
65
65
|
| `Loader` | Renders a loader with dots to show the loading state |
|
|
66
|
+
| `PageLoader` | Renders a loader with line at the top of page |
|
|
66
67
|
| `Button` | Renders a button to click & take an action |
|
|
67
68
|
|
|
68
69
|
## 📦 Icon Components
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import l from "lodash-es/get";
|
|
3
|
+
import { getColor as i } from "../Input/Checkbox/helpers.js";
|
|
4
|
+
import { PageLdr as s } from "./styles.js";
|
|
5
|
+
import p from "../../colors/blue.js";
|
|
6
|
+
const d = ({ theme: r = "blue", color: o, ...a }) => {
|
|
7
|
+
const e = i(r), m = o || l(e, "m500", p.m500);
|
|
8
|
+
return /* @__PURE__ */ t(
|
|
9
|
+
s,
|
|
10
|
+
{
|
|
11
|
+
...a,
|
|
12
|
+
$color: m,
|
|
13
|
+
role: "progressbar",
|
|
14
|
+
"aria-label": "Loading",
|
|
15
|
+
"aria-valuemin": 0,
|
|
16
|
+
"aria-valuemax": 100
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
d as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import o, { keyframes as t } from "styled-components";
|
|
2
|
+
const a = t`
|
|
3
|
+
0% { transform: scaleX(0); }
|
|
4
|
+
100% { transform: scaleX(1); }
|
|
5
|
+
`, i = o.div`
|
|
6
|
+
width: 90%;
|
|
7
|
+
height: 3px;
|
|
8
|
+
background-color: ${({ $color: r }) => r};
|
|
9
|
+
transform-origin: left;
|
|
10
|
+
animation: ${a} 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
11
|
+
`;
|
|
12
|
+
export {
|
|
13
|
+
i as PageLdr
|
|
14
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
/* empty css */
|
|
3
|
+
const r = (e) => {
|
|
4
|
+
if (e != null)
|
|
5
|
+
return typeof e == "number" ? `${e}rem` : e;
|
|
6
|
+
}, n = ({ width: e = "", height: t = "", label: i = "Loading..." }) => /* @__PURE__ */ o(
|
|
7
|
+
"div",
|
|
8
|
+
{
|
|
9
|
+
className: "shimmer",
|
|
10
|
+
role: "status",
|
|
11
|
+
"aria-label": i,
|
|
12
|
+
style: {
|
|
13
|
+
width: r(e),
|
|
14
|
+
height: r(t)
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
);
|
|
18
|
+
export {
|
|
19
|
+
n as default
|
|
20
|
+
};
|
package/index.js
CHANGED
|
@@ -1,52 +1,56 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as a } from "./components/Pagination/Pagination.js";
|
|
2
|
+
import { default as t } from "./components/Toast/Toast.js";
|
|
3
3
|
import { default as p } from "./components/Spinner/Spinner.js";
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as s } from "./components/
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as n } from "./components/
|
|
8
|
-
import { default as c } from "./components/
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as R } from "./
|
|
18
|
-
import { default as V } from "./
|
|
19
|
-
import { default as q } from "./
|
|
20
|
-
import { default as z } from "./
|
|
21
|
-
import { default as E } from "./components/
|
|
22
|
-
import { default as K } from "./components/Typography/Headings/
|
|
23
|
-
import { default as N } from "./components/Typography/Headings/
|
|
24
|
-
import { default as W } from "./components/Typography/Headings/
|
|
25
|
-
import { default as Y } from "./components/Typography/Headings/
|
|
4
|
+
import { default as l } from "./components/Loader/Loader.js";
|
|
5
|
+
import { default as s } from "./components/PageLoader/PageLoader.js";
|
|
6
|
+
import { default as x } from "./components/OtpInput/OtpInput.js";
|
|
7
|
+
import { default as n } from "./components/Dropdown/Dropdown.js";
|
|
8
|
+
import { default as c } from "./components/Selectbox/Selectbox.js";
|
|
9
|
+
import { default as S } from "./components/Button/Button.js";
|
|
10
|
+
import { default as b } from "./components/Timer/Timer.js";
|
|
11
|
+
import { default as h } from "./components/Shimmer/Shimmer.js";
|
|
12
|
+
import { default as L } from "./components/VideoPlayer/VideoPlayer.js";
|
|
13
|
+
import { default as w } from "./components/Typography/P/P.js";
|
|
14
|
+
import { default as B } from "./components/Input/Input/Input.js";
|
|
15
|
+
import { default as D } from "./components/Input/Textarea/Textarea.js";
|
|
16
|
+
import { default as G } from "./components/Input/Checkbox/Checkbox.js";
|
|
17
|
+
import { default as R } from "./components/Input/RadioGroup/RadioGroup.js";
|
|
18
|
+
import { default as V } from "./components/Input/FileUploader/FileUploader.js";
|
|
19
|
+
import { default as q } from "./colors/index.js";
|
|
20
|
+
import { default as z } from "./utils/index.js";
|
|
21
|
+
import { default as E } from "./components/Icons/index.js";
|
|
22
|
+
import { default as K } from "./components/Typography/Headings/H1.js";
|
|
23
|
+
import { default as N } from "./components/Typography/Headings/H2.js";
|
|
24
|
+
import { default as W } from "./components/Typography/Headings/H3.js";
|
|
25
|
+
import { default as Y } from "./components/Typography/Headings/H4.js";
|
|
26
|
+
import { default as _ } from "./components/Typography/Headings/H5.js";
|
|
27
|
+
import { default as oo } from "./components/Typography/Headings/H6.js";
|
|
26
28
|
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
29
|
+
S as Button,
|
|
30
|
+
G as Checkbox,
|
|
31
|
+
n as Dropdown,
|
|
32
|
+
V as FileUploader,
|
|
33
|
+
K as H1,
|
|
34
|
+
N as H2,
|
|
35
|
+
W as H3,
|
|
36
|
+
Y as H4,
|
|
37
|
+
_ as H5,
|
|
38
|
+
oo as H6,
|
|
39
|
+
B as Input,
|
|
40
|
+
l as Loader,
|
|
41
|
+
x as OtpInput,
|
|
42
|
+
w as P,
|
|
43
|
+
s as PageLoader,
|
|
44
|
+
a as Pagination,
|
|
45
|
+
R as RadioGroup,
|
|
46
|
+
c as Selectbox,
|
|
47
|
+
h as Shimmer,
|
|
44
48
|
p as Spinner,
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
D as Textarea,
|
|
50
|
+
b as Timer,
|
|
51
|
+
t as Toast,
|
|
52
|
+
L as VideoPlayer,
|
|
53
|
+
q as colors,
|
|
54
|
+
E as icons,
|
|
55
|
+
z as utils
|
|
52
56
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meticulous-ui",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
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",
|