meticulous-ui 1.1.7 → 1.1.8

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
@@ -47,77 +47,112 @@ export default App;
47
47
 
48
48
  ## 📦 Components
49
49
 
50
- | Component | Description |
51
- | ------------ | ------------------------------------- |
52
- | `Pagination` | Fully responsive pagination component |
50
+ | Component | Description |
51
+ | ------------ | --------------------------------------- |
52
+ | `Pagination` | Fully responsive pagination component |
53
+ | `Toast` | Push 4 types of notifications on screen |
53
54
 
54
55
  ## 📦 Icon Components
55
56
 
56
- | Icons | Description |
57
- | ----------------------- | ---------------------------------- |
58
- | `ChevronLeft` | Left navigation icon |
59
- | `ChevronRight` | Right navigation icon |
60
- | `ChevronUp` | Up navigation icon |
61
- | `ChevronDown` | Down navigation icon |
62
- | `Add` | Add icon |
63
- | `AddCircle` | Add circle icon |
64
- | `AddCircleFilled` | Add Circle Filled icon |
65
- | `ArrowRight` | Right Arrow icon |
66
- | `ArrowLeft` | Left Arrow icon |
67
- | `ArrowUp` | Up Arrow icon |
68
- | `ArrowDown` | Down Arrow icon |
69
- | `BellFilled` | Bell/Notification filled icon |
70
- | `BellOffFilled` | Bell/Notification off filled icon |
71
- | `BellOutline` | Bell/Notification outline icon |
72
- | `BellOffOutline` | Bell/Notification off outline icon |
73
- | `BookmarkFilled` | Bookmark filled icon |
74
- | `BookmarkOutline` | Bookmark outline icon |
75
- | `ClockCircleOutline` | Clock circle outline icon |
76
- | `ClockSquareOutline` | Clock square outline icon |
77
- | `Close` | Close icon |
78
- | `CloseCircleFilled` | Close circle filled icon |
79
- | `CloseCircleOutline` | Close circle outline icon |
80
- | `CommentBubbleFilled` | Comment bubble filled icon |
81
- | `CommentBubbleOutline` | Comment bubble outline icon |
82
- | `CommentFilled` | Comment filled icon |
83
- | `CommentLineFilled` | Comment line filled icon |
84
- | `CommentLineOutline` | Comment line outline icon |
85
- | `CommentOutline` | Comment outline icon |
86
- | `DotsHorizontalFilled` | Dots horizontal filled icon |
87
- | `DotsHorizontalOutline` | Dots horizontal outline icon |
88
- | `DotsVerticalFilled` | Dots vertical filled icon |
89
- | `HamburgerMenu` | Hamburger menu icon |
90
- | `HamburgerSpaced` | Spaced Hamburger icon |
91
- | `HeartFilled` | Heart filled icon |
92
- | `HeartOutline` | Heart outline icon |
93
- | `HomeFilled` | Home filled icon |
94
- | `HomeOutline` | Home outline icon |
95
- | `Link` | Link icon |
96
- | `Minus` | Minus icon |
97
- | `MinusCircle` | Minus circle outline icon |
98
- | `MinusCircleFilled` | Minus circle filled icon |
99
- | `ProfileFemaleOutline` | Female profile outline icon |
100
- | `ProfileGroupFilled` | Profiles filled icon |
101
- | `ProfileMaleFilled` | Male profile filled icon |
102
- | `ProfileMaleOutline` | Male profile ouline icon |
103
- | `Search` | Search icon |
104
- | `SettingFilled` | Setting filled icon |
105
- | `SettingOutline` | Setting outline icon |
106
- | `ShareAllFilled` | Share all filled icon |
107
- | `ShareAllOutline` | Share all outline icon |
108
- | `ShareBoxOutline` | Share box outline icon |
109
- | `ShareFilled` | Share filled icon |
110
- | `ShareOutline` | Share outline icon |
111
- | `ShareThickFilled` | Share thick filled icon |
112
- | `StarFilled` | Star filled icon |
113
- | `StarOutline` | Star outline icon |
114
- | `ThumbsDownFilled` | Thumbs down filled icon |
115
- | `ThumbsDownOutline` | Thumbs down outline icon |
116
- | `ThumbsUpFilled` | Thumbs up filled icon |
117
- | `ThumbsUpOutline` | Thumbs up outline icon |
118
- | `Upload` | Upload icon |
119
- | `UploadBoxFilled` | Upload box filled icon |
120
- | `UploadBoxOutline` | Upload box outline icon |
57
+ | Icons | Description |
58
+ | ---------------------------- | ----------------------------------- |
59
+ | `Add` | Add icon |
60
+ | `AddCircle` | Add circle icon |
61
+ | `AddCircleFilled` | Add Circle Filled icon |
62
+ | `ArrowRight` | Right Arrow icon |
63
+ | `ArrowLeft` | Left Arrow icon |
64
+ | `ArrowUp` | Up Arrow icon |
65
+ | `ArrowDown` | Down Arrow icon |
66
+ | `BellFilled` | Bell/Notification filled icon |
67
+ | `BellOffFilled` | Bell/Notification off filled icon |
68
+ | `BellOutline` | Bell/Notification outline icon |
69
+ | `BellOffOutline` | Bell/Notification off outline icon |
70
+ | `BookmarkFilled` | Bookmark filled icon |
71
+ | `BookmarkOutline` | Bookmark outline icon |
72
+ | `CartCheckFilled` | Cart check filled icon |
73
+ | `CartCheckOutline` | Cart check outline icon |
74
+ | `CartCrossFilled` | Cart cross filled icon |
75
+ | `CartCrossOutline` | Cart cross outline icon |
76
+ | `CartFilled` | Cart filled icon |
77
+ | `CartMinusFilled` | Cart minus filled icon |
78
+ | `CartMinusOutline` | Cart minus outline icon |
79
+ | `CartOutline` | Cart outline icon |
80
+ | `CartPlusFilled` | Cart plus filled icon |
81
+ | `CartPlusOutline` | Cart plus outline icon |
82
+ | `Check` | Check icon |
83
+ | `ChevronLeft` | Left navigation icon |
84
+ | `ChevronRight` | Right navigation icon |
85
+ | `ChevronUp` | Up navigation icon |
86
+ | `ChevronDown` | Down navigation icon |
87
+ | `ClockCircleOutline` | Clock circle outline icon |
88
+ | `ClockSquareOutline` | Clock square outline icon |
89
+ | `Close` | Close icon |
90
+ | `CloseCircleFilled` | Close circle filled icon |
91
+ | `CloseCircleOutline` | Close circle outline icon |
92
+ | `CommentBubbleFilled` | Comment bubble filled icon |
93
+ | `CommentBubbleOutline` | Comment bubble outline icon |
94
+ | `CommentFilled` | Comment filled icon |
95
+ | `CommentLineFilled` | Comment line filled icon |
96
+ | `CommentLineOutline` | Comment line outline icon |
97
+ | `CommentOutline` | Comment outline icon |
98
+ | `ContactDetailsFilled` | Comment details filled icon |
99
+ | `ContactDetailsOutline` | Comment details outline icon |
100
+ | `DetailsOutline` | Details outline icon |
101
+ | `DotsHorizontalFilled` | Dots horizontal filled icon |
102
+ | `DotsHorizontalOutline` | Dots horizontal outline icon |
103
+ | `DotsVerticalFilled` | Dots vertical filled icon |
104
+ | `DotsVerticalOutline` | Dots vertical outline icon |
105
+ | `ExitArrowInOutline` | Exit arrow in outline icon |
106
+ | `ExitArrowOutOutline` | Exit arrow out outline icon |
107
+ | `HamburgerMenu` | Hamburger menu icon |
108
+ | `HamburgerSpaced` | Spaced Hamburger icon |
109
+ | `HeartFilled` | Heart filled icon |
110
+ | `HeartOutline` | Heart outline icon |
111
+ | `HomeFilled` | Home filled icon |
112
+ | `HomeOutline` | Home outline icon |
113
+ | `Info` | Info icon |
114
+ | `Link` | Link icon |
115
+ | `LockKeyhole` | Lock key hole icon |
116
+ | `LockKeyholeOutline` | Lock key hole outline icon |
117
+ | `LockKeyholeUnlocked` | Lock key hole unlocked icon |
118
+ | `LockKeyholeUnlockedOutline` | Lock key hole unlocked outline icon |
119
+ | `Minus` | Minus icon |
120
+ | `MinusCircle` | Minus circle outline icon |
121
+ | `MinusCircleFilled` | Minus circle filled icon |
122
+ | `MoneyBagOutline` | Money bag outline icon |
123
+ | `MoneyBriefcaseFilled` | Money briefcase filled icon |
124
+ | `MoneyBriefcaseOutline` | Money briefcase outline icon |
125
+ | `ProfileFemaleOutline` | Female profile outline icon |
126
+ | `ProfileGroupFilled` | Profiles filled icon |
127
+ | `ProfileMaleFilled` | Male profile filled icon |
128
+ | `ProfileMaleOutline` | Male profile ouline icon |
129
+ | `RupeeOutlined` | Rupee ouline icon |
130
+ | `RupeeSign` | Rupee sign icon |
131
+ | `Search` | Search icon |
132
+ | `SettingFilled` | Setting filled icon |
133
+ | `SettingOutline` | Setting outline icon |
134
+ | `ShareAllFilled` | Share all filled icon |
135
+ | `ShareAllOutline` | Share all outline icon |
136
+ | `ShareBoxOutline` | Share box outline icon |
137
+ | `ShareFilled` | Share filled icon |
138
+ | `ShareOutline` | Share outline icon |
139
+ | `ShieldCheckFilled` | Shield check filled icon |
140
+ | `ShieldCheckOutline` | Shield check outline icon |
141
+ | `ShieldCrossFilled` | Shield cross filled icon |
142
+ | `ShieldCrossOutline` | Shield cross outline icon |
143
+ | `ShieldWarningFilled` | Shield warning filled icon |
144
+ | `ShieldWarningOutline` | Shield warning outline icon |
145
+ | `StarFilled` | Star filled icon |
146
+ | `StarOutline` | Star outline icon |
147
+ | `ThumbsDownFilled` | Thumbs down filled icon |
148
+ | `ThumbsDownOutline` | Thumbs down outline icon |
149
+ | `ThumbsUpFilled` | Thumbs up filled icon |
150
+ | `ThumbsUpOutline` | Thumbs up outline icon |
151
+ | `Upload` | Upload icon |
152
+ | `UploadBoxFilled` | Upload box filled icon |
153
+ | `UploadBoxOutline` | Upload box outline icon |
154
+ | `WalletFilled` | Wallet filled icon |
155
+ | `WalletOutline` | Wallet outline icon |
121
156
 
122
157
  ## 📦 Tokens
123
158
 
@@ -159,6 +194,8 @@ export default App;
159
194
  | `compose` | Performs right-to-left function composition using transforming function |
160
195
  | `hasEqualProps` | Takes two args: Component’s previous props & its new props; returns true if all-non functional props are equal |
161
196
  | `isNonEmptyArray` | Takes an array & returns true if is not empty |
197
+ | `randomInt` | Takes min, max integer & returns random integer between them |
198
+ | `randomValue` | Takes min, max value & returns random value between them |
162
199
 
163
200
  ## 🌱 Features
164
201
 
@@ -0,0 +1,4 @@
1
+ import o from "./Check.js";
2
+ export {
3
+ o as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./Close.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Info.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,43 @@
1
+ import { j as e } from "../../_virtual/jsx-runtime.js";
2
+ import { useState as n, useEffect as c } from "react";
3
+ import T from "../../node_modules/lodash-es/get.js";
4
+ import g from "../../node_modules/lodash-es/noop.js";
5
+ import { Logo as h } from "./helpers.js";
6
+ import C from "../../colors/grey.js";
7
+ import { INFO as S, INFO_COLORS as $, COLOR_MAP as F } from "./constants.js";
8
+ import { ToastWrapper as L, Message as N, Title as R, Subtitle as w, CloseWrapper as I } from "./styles.js";
9
+ const m = (t, o, r) => () => {
10
+ t(!0), setTimeout(() => {
11
+ o(!1), r();
12
+ }, 500);
13
+ }, b = ({
14
+ type: t = S,
15
+ visible: o = !0,
16
+ duration: r = 5,
17
+ onExpire: i = g,
18
+ title: p,
19
+ subtitle: a
20
+ }) => {
21
+ const [u, s] = n(o), [l, f] = n(!1);
22
+ c(() => {
23
+ s(o);
24
+ }, [o]), c(() => {
25
+ const O = setTimeout(m(f, s, i), r * 1e3 - 500);
26
+ return () => {
27
+ clearTimeout(O);
28
+ };
29
+ }, [r, m]);
30
+ const { main: d, side: j, bg: x } = T(F, t, $);
31
+ if (u)
32
+ return /* @__PURE__ */ e.jsxs(L, { $bg: x, className: `${l ? "fade-out" : "fade-in"}`, children: [
33
+ /* @__PURE__ */ e.jsx(h, { type: t, $main: d, $side: j }),
34
+ /* @__PURE__ */ e.jsxs(N, { children: [
35
+ /* @__PURE__ */ e.jsx(R, { children: p }),
36
+ a && /* @__PURE__ */ e.jsx(w, { children: a })
37
+ ] }),
38
+ /* @__PURE__ */ e.jsx(I, { size: 20, color: C.m600, onClick: m(f, s, i) })
39
+ ] });
40
+ };
41
+ export {
42
+ b as default
43
+ };
@@ -0,0 +1,34 @@
1
+ import m from "../../colors/green.js";
2
+ import o from "../../colors/orange.js";
3
+ import r from "../../colors/red.js";
4
+ import n from "../../colors/blue.js";
5
+ const i = "success", s = "warning", e = "info", t = "error", c = {
6
+ main: n.m500,
7
+ side: n.m100,
8
+ bg: n.m50
9
+ }, b = {
10
+ [i]: {
11
+ main: m.m500,
12
+ side: m.m100,
13
+ bg: m.m50
14
+ },
15
+ [s]: {
16
+ main: o.m500,
17
+ side: o.m100,
18
+ bg: o.m50
19
+ },
20
+ [e]: c,
21
+ [t]: {
22
+ main: r.m500,
23
+ side: r.m100,
24
+ bg: r.m50
25
+ }
26
+ };
27
+ export {
28
+ b as COLOR_MAP,
29
+ t as ERROR,
30
+ e as INFO,
31
+ c as INFO_COLORS,
32
+ i as SUCCESS,
33
+ s as WARNING
34
+ };
@@ -0,0 +1,17 @@
1
+ import { j as t } from "../../_virtual/jsx-runtime.js";
2
+ import { ERROR as e, SUCCESS as s } from "./constants.js";
3
+ import c from "../Icons/Close/Close.js";
4
+ import f from "../Icons/Check/Check.js";
5
+ import m from "../Icons/Info/Info.js";
6
+ import { Outer as u, OuterChild as x, LogoContainer as g, Icon as j } from "./styles.js";
7
+ const l = (o, r) => o === e ? /* @__PURE__ */ t.jsx(c, { size: 16, color: r }) : o === s ? /* @__PURE__ */ t.jsx(f, { size: 18, color: r }) : /* @__PURE__ */ t.jsx(m, { size: 22, color: r }), C = (o) => o === e ? 1 : o === s ? 1.1 : 1.3, S = ({ type: o, $main: r, $side: i }) => {
8
+ const n = l(o, r);
9
+ return /* @__PURE__ */ t.jsxs(u, { $side: i, children: [
10
+ /* @__PURE__ */ t.jsx(x, { $main: r }),
11
+ /* @__PURE__ */ t.jsx(g, { $main: r, type: o }),
12
+ /* @__PURE__ */ t.jsx(j, { size: C(o), children: n })
13
+ ] });
14
+ };
15
+ export {
16
+ S as Logo
17
+ };
@@ -0,0 +1,4 @@
1
+ import t from "./Toast.js";
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,124 @@
1
+ import o, { keyframes as s, css as e } from "../../node_modules/styled-components/dist/styled-components.browser.esm.js";
2
+ import i from "../../colors/white.js";
3
+ import n from "../Icons/Close/Close.js";
4
+ import a from "../../colors/grey.js";
5
+ import { WARNING as d } from "./constants.js";
6
+ const m = s`
7
+ from {
8
+ opacity: 0;
9
+ transform: translateX(100%); /* Start off-screen to the right */
10
+ }
11
+ to {
12
+ opacity: 1;
13
+ transform: translateX(0); /* Move to its final position */
14
+ }
15
+ `, l = s`
16
+ from {
17
+ opacity: 1;
18
+ transform: translateX(0);
19
+ }
20
+ to {
21
+ opacity: 0;
22
+ transform: translateX(100%); /* Move off-screen to the right */
23
+ }
24
+ `;
25
+ o.div`
26
+ position: fixed;
27
+ top: 1rem;
28
+ right: 2rem;
29
+ z-index: 9999;
30
+
31
+ display: flex;
32
+ flex-direction: column;
33
+ gap: 1rem;
34
+ `;
35
+ const u = o.div`
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: space-between;
39
+ background-color: ${({ $bg: t }) => t};
40
+ height: 4.8rem;
41
+ width: 28rem;
42
+ border-radius: 0.8rem;
43
+ padding: 0.4rem 1.6rem;
44
+ box-shadow: rgba(0, 0, 0, 0.14) 0px 3px 8px;
45
+ transition: all 0.5s ease;
46
+
47
+ &.fade-in {
48
+ opacity: 1;
49
+ animation: ${m} 0.5s ease-out forwards; /* slide down + fade */
50
+ }
51
+
52
+ &.fade-out {
53
+ opacity: 0;
54
+ animation: ${l} 0.5s ease-in forwards; /* slide right */
55
+ }
56
+ `, b = o.div`
57
+ position: absolute;
58
+ top: 50%;
59
+ left: 50%;
60
+ transform: translate(-50%, -50%);
61
+ background-color: ${i};
62
+
63
+ ${({ type: t, $main: r }) => t === d ? e`
64
+ top: 48%;
65
+ border-color: ${r} ${r} ${i} ${r};
66
+ border-style: solid;
67
+ border-width: 0 0.9rem 1.4rem 0.9rem;
68
+ height: 0;
69
+ width: 0;
70
+ ` : e`
71
+ top: 50%;
72
+ width: 1.8rem;
73
+ height: 1.8rem;
74
+ border-radius: 50%;
75
+ `}
76
+ `, w = o.div`
77
+ position: relative;
78
+ width: 4rem;
79
+ height: 4rem;
80
+ border-radius: 50%;
81
+ background-color: ${({ $side: t }) => t};
82
+ `, y = o.div`
83
+ position: absolute;
84
+ top: 50%;
85
+ left: 50%;
86
+ transform: translate(-50%, -50%);
87
+ width: ${({ size: t }) => t}rem;
88
+ height: ${({ size: t }) => t}rem;
89
+ `, $ = o.div`
90
+ position: absolute;
91
+ top: 50%;
92
+ left: 50%;
93
+ transform: translate(-50%, -50%);
94
+ width: 3rem;
95
+ height: 3rem;
96
+ border-radius: 50%;
97
+ background-color: ${({ $main: t }) => t};
98
+ `, v = o(n)`
99
+ cursor: pointer;
100
+ `, x = o.div`
101
+ font-weight: 600;
102
+ font-size: 1.2rem;
103
+ color: ${a.m800};
104
+ `, k = o.div`
105
+ display: flex;
106
+ flex-direction: column;
107
+ gap: 0.2rem;
108
+ width: 21rem;
109
+ `, C = o.div`
110
+ font-weight: 400;
111
+ font-size: 1rem;
112
+ color: ${a.m700};
113
+ `;
114
+ export {
115
+ v as CloseWrapper,
116
+ y as Icon,
117
+ b as LogoContainer,
118
+ k as Message,
119
+ w as Outer,
120
+ $ as OuterChild,
121
+ C as Subtitle,
122
+ x as Title,
123
+ u as ToastWrapper
124
+ };
package/index.js CHANGED
@@ -1,10 +1,12 @@
1
1
  import { default as t } from "./components/Pagination/Pagination.js";
2
- import { default as e } from "./colors/index.js";
3
- import { default as s } from "./utils/index.js";
4
- import { default as u } from "./components/Icons/index.js";
2
+ import { default as e } from "./components/Toast/Toast.js";
3
+ import { default as s } from "./colors/index.js";
4
+ import { default as u } from "./utils/index.js";
5
+ import { default as m } from "./components/Icons/index.js";
5
6
  export {
6
7
  t as Pagination,
7
- e as colors,
8
- u as icons,
9
- s as utils
8
+ e as Toast,
9
+ s as colors,
10
+ m as icons,
11
+ u as utils
10
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "repository": {