meticulous-ui 2.5.0 → 2.5.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
@@ -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
@@ -1,6 +1,6 @@
1
- import e, { css as r } from "styled-components";
1
+ import e, { css as t } from "styled-components";
2
2
  import i from "../../../colors/grey.js";
3
- const a = e.div`
3
+ const p = e.div`
4
4
  position: absolute;
5
5
  width: 0.7rem;
6
6
  height: 0.7rem;
@@ -8,15 +8,18 @@ const a = e.div`
8
8
  left: 50%;
9
9
  top: 50%;
10
10
  transform: translate(-50%, -50%);
11
- background-color: ${({ $isSelected: t, $shade: o }) => t ? o : "transparent"};
11
+ background-color: ${({ $isSelected: o, $shade: r }) => o ? r : "transparent"};
12
12
  transition: background-color 0.35s ease;
13
- `, n = e.div`
13
+ `, s = e.div`
14
14
  width: 1.1rem;
15
15
  height: 1.1rem;
16
- border: 1px solid ${({ $isSelected: t, $shade: o }) => t ? o : i.m900};
16
+ border: 1px solid ${({ $isSelected: o, $shade: r }) => o ? r : i.m900};
17
17
  border-radius: 50%;
18
18
  position: relative;
19
- `, l = e.input`
19
+ transition:
20
+ border-color 0.5s ease,
21
+ box-shadow 0.5s ease;
22
+ `, d = e.input`
20
23
  position: absolute;
21
24
  width: 1px;
22
25
  height: 1px;
@@ -26,28 +29,27 @@ const a = e.div`
26
29
  white-space: nowrap;
27
30
  opacity: 0;
28
31
  margin: 0;
29
- `, d = e.label`
32
+ `, c = e.label`
30
33
  display: flex;
31
34
  align-items: center;
32
35
  gap: 0.8rem;
33
36
  width: max-content;
34
37
 
35
- &:focus-within ${n} {
36
- outline: 2px solid ${({ $focusShade: t }) => t || i.m900};
37
- outline-offset: 2px;
38
+ &:focus-within ${s} {
39
+ box-shadow: 0 0 0 1px ${({ $focusShade: o }) => o || i.m900};
38
40
  }
39
41
 
40
- ${({ $disabled: t }) => t ? r`
42
+ ${({ $disabled: o }) => o ? t`
41
43
  pointer-events: none;
42
44
  opacity: 0.4;
43
45
  cursor: not-allowed;
44
- ` : r`
46
+ ` : t`
45
47
  cursor: pointer;
46
48
  `}
47
49
  `;
48
50
  export {
49
- a as Circle,
50
- n as CircleBorder,
51
- l as HiddenInput,
52
- d as Wrapper
51
+ p as Circle,
52
+ s as CircleBorder,
53
+ d as HiddenInput,
54
+ c as Wrapper
53
55
  };
@@ -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,4 @@
1
+ import e from "./PageLoader.js";
2
+ export {
3
+ e as default
4
+ };
@@ -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
+ };
package/index.js CHANGED
@@ -1,52 +1,54 @@
1
- import { default as t } from "./components/Pagination/Pagination.js";
2
- import { default as r } from "./components/Toast/Toast.js";
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 d } from "./components/Loader/Loader.js";
5
- import { default as s } from "./components/OtpInput/OtpInput.js";
6
- import { default as m } from "./components/Dropdown/Dropdown.js";
7
- import { default as n } from "./components/Selectbox/Selectbox.js";
8
- import { default as c } from "./components/Button/Button.js";
9
- import { default as T } from "./components/Timer/Timer.js";
10
- import { default as I } from "./components/VideoPlayer/VideoPlayer.js";
11
- import { default as g } from "./components/Typography/P/P.js";
12
- import { default as k } from "./components/Input/Input/Input.js";
13
- import { default as y } from "./components/Input/Textarea/Textarea.js";
14
- import { default as C } from "./components/Input/Checkbox/Checkbox.js";
15
- import { default as F } from "./components/Input/RadioGroup/RadioGroup.js";
16
- import { default as L } from "./components/Input/FileUploader/FileUploader.js";
17
- import { default as R } from "./colors/index.js";
18
- import { default as V } from "./utils/index.js";
19
- import { default as q } from "./components/Icons/index.js";
20
- import { default as z } from "./components/Typography/Headings/H1.js";
21
- import { default as E } from "./components/Typography/Headings/H2.js";
22
- import { default as K } from "./components/Typography/Headings/H3.js";
23
- import { default as N } from "./components/Typography/Headings/H4.js";
24
- import { default as W } from "./components/Typography/Headings/H5.js";
25
- import { default as Y } from "./components/Typography/Headings/H6.js";
4
+ import { default as l } from "./components/Loader/Loader.js";
5
+ import { default as s } from "./components/PageLoader/PageLoader.js";
6
+ import { default as m } 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 T } from "./components/Button/Button.js";
10
+ import { default as g } from "./components/Timer/Timer.js";
11
+ import { default as L } from "./components/VideoPlayer/VideoPlayer.js";
12
+ import { default as h } from "./components/Typography/P/P.js";
13
+ import { default as w } from "./components/Input/Input/Input.js";
14
+ import { default as B } from "./components/Input/Textarea/Textarea.js";
15
+ import { default as D } from "./components/Input/Checkbox/Checkbox.js";
16
+ import { default as G } from "./components/Input/RadioGroup/RadioGroup.js";
17
+ import { default as R } from "./components/Input/FileUploader/FileUploader.js";
18
+ import { default as V } from "./colors/index.js";
19
+ import { default as q } from "./utils/index.js";
20
+ import { default as z } from "./components/Icons/index.js";
21
+ import { default as E } from "./components/Typography/Headings/H1.js";
22
+ import { default as K } from "./components/Typography/Headings/H2.js";
23
+ import { default as N } from "./components/Typography/Headings/H3.js";
24
+ import { default as W } from "./components/Typography/Headings/H4.js";
25
+ import { default as Y } from "./components/Typography/Headings/H5.js";
26
+ import { default as _ } from "./components/Typography/Headings/H6.js";
26
27
  export {
27
- c as Button,
28
- C as Checkbox,
29
- m as Dropdown,
30
- L as FileUploader,
31
- z as H1,
32
- E as H2,
33
- K as H3,
34
- N as H4,
35
- W as H5,
36
- Y as H6,
37
- k as Input,
38
- d as Loader,
39
- s as OtpInput,
40
- g as P,
41
- t as Pagination,
42
- F as RadioGroup,
43
- n as Selectbox,
28
+ T as Button,
29
+ D as Checkbox,
30
+ n as Dropdown,
31
+ R as FileUploader,
32
+ E as H1,
33
+ K as H2,
34
+ N as H3,
35
+ W as H4,
36
+ Y as H5,
37
+ _ as H6,
38
+ w as Input,
39
+ l as Loader,
40
+ m as OtpInput,
41
+ h as P,
42
+ s as PageLoader,
43
+ a as Pagination,
44
+ G as RadioGroup,
45
+ c as Selectbox,
44
46
  p as Spinner,
45
- y as Textarea,
46
- T as Timer,
47
- r as Toast,
48
- I as VideoPlayer,
49
- R as colors,
50
- q as icons,
51
- V as utils
47
+ B as Textarea,
48
+ g as Timer,
49
+ t as Toast,
50
+ L as VideoPlayer,
51
+ V as colors,
52
+ z as icons,
53
+ q as utils
52
54
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "2.5.0",
3
+ "version": "2.5.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",