meticulous-ui 1.1.6 → 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 +105 -68
- package/colors/amber.js +19 -0
- package/colors/black.js +25 -0
- package/colors/blue.js +19 -0
- package/colors/blueGray.js +15 -0
- package/colors/brown.js +15 -0
- package/colors/cider.js +15 -0
- package/colors/cyan.js +19 -0
- package/colors/deepOrange.js +19 -0
- package/colors/deepPurple.js +19 -0
- package/colors/green.js +19 -0
- package/colors/grey.js +15 -0
- package/colors/indigo.js +19 -0
- package/colors/lightBlue.js +19 -0
- package/colors/lightGreen.js +19 -0
- package/colors/lime.js +19 -0
- package/colors/orange.js +19 -0
- package/colors/pink.js +19 -0
- package/colors/purple.js +19 -0
- package/colors/red.js +19 -0
- package/colors/teal.js +19 -0
- package/colors/violet.js +19 -0
- package/colors/white.js +4 -0
- package/colors/yellow.js +19 -0
- package/components/Icons/Add/Add.js +49 -0
- package/components/Icons/AddCircle/AddCircle.js +34 -0
- package/components/Icons/AddCircleFilled/AddCircleFilled.js +25 -0
- package/components/Icons/ArrowDown/ArrowDown.js +25 -0
- package/components/Icons/ArrowLeft/ArrowLeft.js +26 -0
- package/components/Icons/ArrowRight/ArrowRight.js +26 -0
- package/components/Icons/ArrowUp/ArrowUp.js +25 -0
- package/components/Icons/BellFilled/BellFilled.js +36 -0
- package/components/Icons/BellOffFilled/BellOffFilled.js +45 -0
- package/components/Icons/BellOffOutline/BellOffOutline.js +47 -0
- package/components/Icons/BellOutline/BellOutline.js +38 -0
- package/components/Icons/BookmarkFilled/BookmarkFilled.js +28 -0
- package/components/Icons/BookmarkOutline/BookmarkOutline.js +25 -0
- package/components/Icons/CartCheckFilled/CartCheckFilled.js +41 -0
- package/components/Icons/CartCheckOutline/CartCheckOutline.js +51 -0
- package/components/Icons/CartCrossFilled/CartCrossFilled.js +41 -0
- package/components/Icons/CartCrossOutline/CartCrossOutline.js +50 -0
- package/components/Icons/CartFilled/CartFilled.js +39 -0
- package/components/Icons/CartMinusFilled/CartMinusFilled.js +41 -0
- package/components/Icons/CartMinusOutline/CartMinusOutline.js +52 -0
- package/components/Icons/CartOutline/CartOutline.js +51 -0
- package/components/Icons/CartPlusFilled/CartPlusFilled.js +41 -0
- package/components/Icons/CartPlusOutline/CartPlusOutline.js +50 -0
- package/components/Icons/Check/Check.js +26 -0
- package/components/Icons/Check/index.js +4 -0
- package/components/Icons/CheckDouble/CheckDouble.js +26 -0
- package/components/Icons/ChevronDown/ChevronDown.js +26 -0
- package/components/Icons/ChevronLeft/ChevronLeft.js +26 -0
- package/components/Icons/ChevronLeft/index.js +4 -0
- package/components/Icons/ChevronRight/ChevronRight.js +26 -0
- package/components/Icons/ChevronRight/index.js +4 -0
- package/components/Icons/ChevronUp/ChevronUp.js +26 -0
- package/components/Icons/ClockCircleOutline/ClockCircleOutline.js +29 -0
- package/components/Icons/ClockSquareOutline/ClockSquareOutline.js +36 -0
- package/components/Icons/Close/Close.js +23 -0
- package/components/Icons/Close/index.js +4 -0
- package/components/Icons/CloseCircleFilled/CloseCircleFilled.js +25 -0
- package/components/Icons/CloseCircleOutline/CloseCircleOutline.js +26 -0
- package/components/Icons/CommentBubbleFilled/CommentBubbleFilled.js +28 -0
- package/components/Icons/CommentBubbleOutline/CommentBubbleOutline.js +28 -0
- package/components/Icons/CommentFilled/CommentFilled.js +28 -0
- package/components/Icons/CommentLineFilled/CommentLineFilled.js +28 -0
- package/components/Icons/CommentLineOutline/CommentLineOutline.js +28 -0
- package/components/Icons/CommentOutline/CommentOutline.js +28 -0
- package/components/Icons/ContactDetailsFilled/ContactDetailsFilled.js +20 -0
- package/components/Icons/ContactDetailsOutline/ContactDetailsOutline.js +20 -0
- package/components/Icons/DetailsOutline/DetailsOutline.js +20 -0
- package/components/Icons/DotsHorizontalFilled/DotsHorizontalFilled.js +39 -0
- package/components/Icons/DotsHorizontalOutline/DotsHorizontalOutline.js +48 -0
- package/components/Icons/DotsVerticalFilled/DotsVerticalFilled.js +39 -0
- package/components/Icons/DotsVerticalOutline/DotsVerticalOutline.js +48 -0
- package/components/Icons/ExitArrowInOutline/ExitArrowInOutline.js +26 -0
- package/components/Icons/ExitArrowOutOutline/ExitArrowOutOutline.js +38 -0
- package/components/Icons/HamburgerMenu/HamburgerMenu.js +45 -0
- package/components/Icons/HamburgerSpaced/HamburgerSpaced.js +28 -0
- package/components/Icons/HeartFilled/HeartFilled.js +23 -0
- package/components/Icons/HeartOutline/HeartOutline.js +28 -0
- package/components/Icons/HomeFilled/HomeFilled.js +25 -0
- package/components/Icons/HomeOutline/HomeOutline.js +25 -0
- package/components/Icons/Info/Info.js +32 -0
- package/components/Icons/Info/index.js +4 -0
- package/components/Icons/Link/Link.js +36 -0
- package/components/Icons/LockKeyhole/LockKeyhole.js +25 -0
- package/components/Icons/LockKeyholeOutline/LockKeyholeOutline.js +36 -0
- package/components/Icons/LockKeyholeUnlocked/LockKeyholeUnlocked.js +25 -0
- package/components/Icons/LockKeyholeUnlockedOutline/LockKeyholeUnlockedOutline.js +36 -0
- package/components/Icons/Minus/Minus.js +26 -0
- package/components/Icons/MinusCircle/MinusCircle.js +28 -0
- package/components/Icons/MinusCircleFilled/MinusCircleFilled.js +28 -0
- package/components/Icons/MoneyBagOutline/MoneyBagOutline.js +51 -0
- package/components/Icons/MoneyBriefcaseFilled/MoneyBriefcaseFilled.js +25 -0
- package/components/Icons/MoneyBriefcaseOutline/MoneyBriefcaseOutline.js +43 -0
- package/components/Icons/ProfileFemaleOutline/ProfileFemaleOutline.js +35 -0
- package/components/Icons/ProfileGroupFilled/ProfileGroupFilled.js +33 -0
- package/components/Icons/ProfileMaleFilled/ProfileMaleFilled.js +33 -0
- package/components/Icons/ProfileMaleOutline/ProfileMaleOutline.js +36 -0
- package/components/Icons/RupeeOutlined/RupeeOutlined.js +23 -0
- package/components/Icons/RupeeSign/RupeeSign.js +26 -0
- package/components/Icons/Search/Search.js +28 -0
- package/components/Icons/SettingFilled/SettingFilled.js +23 -0
- package/components/Icons/SettingOutline/SettingOutline.js +23 -0
- package/components/Icons/ShareAllFilled/ShareAllFilled.js +25 -0
- package/components/Icons/ShareAllOutline/ShareAllOutline.js +44 -0
- package/components/Icons/ShareBoxOutline/ShareBoxOutline.js +23 -0
- package/components/Icons/ShareFilled/ShareFilled.js +34 -0
- package/components/Icons/ShareOutline/ShareOutline.js +37 -0
- package/components/Icons/ShareThickFilled/ShareThickFilled.js +23 -0
- package/components/Icons/ShieldCheckFilled/ShieldCheckFilled.js +25 -0
- package/components/Icons/ShieldCheckOutline/ShieldCheckOutline.js +36 -0
- package/components/Icons/ShieldCrossFilled/ShieldCrossFilled.js +25 -0
- package/components/Icons/ShieldCrossOutline/ShieldCrossOutline.js +35 -0
- package/components/Icons/ShieldWarningFilled/ShieldWarningFilled.js +25 -0
- package/components/Icons/ShieldWarningOutline/ShieldWarningOutline.js +28 -0
- package/components/Icons/StarFilled/StarFilled.js +28 -0
- package/components/Icons/StarOutline/StarOutline.js +30 -0
- package/components/Icons/ThumbsDownFilled/ThumbsDownFilled.js +23 -0
- package/components/Icons/ThumbsDownOutline/ThumbsDownOutline.js +23 -0
- package/components/Icons/ThumbsUpFilled/ThumbsUpFilled.js +23 -0
- package/components/Icons/ThumbsUpOutline/ThumbsUpOutline.js +23 -0
- package/components/Icons/Upload/Upload.js +32 -0
- package/components/Icons/UploadBoxFilled/UploadBoxFilled.js +25 -0
- package/components/Icons/UploadBoxOutline/UploadBoxOutline.js +41 -0
- package/components/Icons/WalletFilled/WalletFilled.js +28 -0
- package/components/Icons/WalletOutline/WalletOutline.js +28 -0
- package/components/Icons/index.js +302 -0
- package/components/Pagination/Pagination.js +60 -0
- package/components/Pagination/constants.js +24 -0
- package/components/Pagination/helpers.js +32 -0
- package/components/Pagination/index.js +4 -0
- package/components/Pagination/styles.js +75 -0
- package/components/Ripple/Ripple.js +26 -0
- package/components/Ripple/index.js +4 -0
- package/components/Toast/Toast.js +43 -0
- package/components/Toast/constants.js +34 -0
- package/components/Toast/helpers.js +17 -0
- package/components/Toast/index.js +4 -0
- package/components/Toast/styles.js +124 -0
- package/index.js +12 -0
- package/package.json +1 -1
- package/utils/capFirstLetter.js +4 -0
- package/utils/compose.js +4 -0
- package/utils/hasEqualProps.js +7 -0
- package/utils/isNonEmptyArray.js +4 -0
- package/dist/index.js +0 -10
- /package/{dist/colors → colors}/index.js +0 -0
- /package/{dist/utils → utils}/index.js +0 -0
|
@@ -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,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
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as t } from "./components/Pagination/Pagination.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";
|
|
6
|
+
export {
|
|
7
|
+
t as Pagination,
|
|
8
|
+
e as Toast,
|
|
9
|
+
s as colors,
|
|
10
|
+
m as icons,
|
|
11
|
+
u as utils
|
|
12
|
+
};
|
package/package.json
CHANGED
package/utils/compose.js
ADDED
package/dist/index.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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";
|
|
5
|
-
export {
|
|
6
|
-
t as Pagination,
|
|
7
|
-
e as colors,
|
|
8
|
-
u as icons,
|
|
9
|
-
s as utils
|
|
10
|
-
};
|
|
File without changes
|
|
File without changes
|