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.
Files changed (150) hide show
  1. package/README.md +105 -68
  2. package/colors/amber.js +19 -0
  3. package/colors/black.js +25 -0
  4. package/colors/blue.js +19 -0
  5. package/colors/blueGray.js +15 -0
  6. package/colors/brown.js +15 -0
  7. package/colors/cider.js +15 -0
  8. package/colors/cyan.js +19 -0
  9. package/colors/deepOrange.js +19 -0
  10. package/colors/deepPurple.js +19 -0
  11. package/colors/green.js +19 -0
  12. package/colors/grey.js +15 -0
  13. package/colors/indigo.js +19 -0
  14. package/colors/lightBlue.js +19 -0
  15. package/colors/lightGreen.js +19 -0
  16. package/colors/lime.js +19 -0
  17. package/colors/orange.js +19 -0
  18. package/colors/pink.js +19 -0
  19. package/colors/purple.js +19 -0
  20. package/colors/red.js +19 -0
  21. package/colors/teal.js +19 -0
  22. package/colors/violet.js +19 -0
  23. package/colors/white.js +4 -0
  24. package/colors/yellow.js +19 -0
  25. package/components/Icons/Add/Add.js +49 -0
  26. package/components/Icons/AddCircle/AddCircle.js +34 -0
  27. package/components/Icons/AddCircleFilled/AddCircleFilled.js +25 -0
  28. package/components/Icons/ArrowDown/ArrowDown.js +25 -0
  29. package/components/Icons/ArrowLeft/ArrowLeft.js +26 -0
  30. package/components/Icons/ArrowRight/ArrowRight.js +26 -0
  31. package/components/Icons/ArrowUp/ArrowUp.js +25 -0
  32. package/components/Icons/BellFilled/BellFilled.js +36 -0
  33. package/components/Icons/BellOffFilled/BellOffFilled.js +45 -0
  34. package/components/Icons/BellOffOutline/BellOffOutline.js +47 -0
  35. package/components/Icons/BellOutline/BellOutline.js +38 -0
  36. package/components/Icons/BookmarkFilled/BookmarkFilled.js +28 -0
  37. package/components/Icons/BookmarkOutline/BookmarkOutline.js +25 -0
  38. package/components/Icons/CartCheckFilled/CartCheckFilled.js +41 -0
  39. package/components/Icons/CartCheckOutline/CartCheckOutline.js +51 -0
  40. package/components/Icons/CartCrossFilled/CartCrossFilled.js +41 -0
  41. package/components/Icons/CartCrossOutline/CartCrossOutline.js +50 -0
  42. package/components/Icons/CartFilled/CartFilled.js +39 -0
  43. package/components/Icons/CartMinusFilled/CartMinusFilled.js +41 -0
  44. package/components/Icons/CartMinusOutline/CartMinusOutline.js +52 -0
  45. package/components/Icons/CartOutline/CartOutline.js +51 -0
  46. package/components/Icons/CartPlusFilled/CartPlusFilled.js +41 -0
  47. package/components/Icons/CartPlusOutline/CartPlusOutline.js +50 -0
  48. package/components/Icons/Check/Check.js +26 -0
  49. package/components/Icons/Check/index.js +4 -0
  50. package/components/Icons/CheckDouble/CheckDouble.js +26 -0
  51. package/components/Icons/ChevronDown/ChevronDown.js +26 -0
  52. package/components/Icons/ChevronLeft/ChevronLeft.js +26 -0
  53. package/components/Icons/ChevronLeft/index.js +4 -0
  54. package/components/Icons/ChevronRight/ChevronRight.js +26 -0
  55. package/components/Icons/ChevronRight/index.js +4 -0
  56. package/components/Icons/ChevronUp/ChevronUp.js +26 -0
  57. package/components/Icons/ClockCircleOutline/ClockCircleOutline.js +29 -0
  58. package/components/Icons/ClockSquareOutline/ClockSquareOutline.js +36 -0
  59. package/components/Icons/Close/Close.js +23 -0
  60. package/components/Icons/Close/index.js +4 -0
  61. package/components/Icons/CloseCircleFilled/CloseCircleFilled.js +25 -0
  62. package/components/Icons/CloseCircleOutline/CloseCircleOutline.js +26 -0
  63. package/components/Icons/CommentBubbleFilled/CommentBubbleFilled.js +28 -0
  64. package/components/Icons/CommentBubbleOutline/CommentBubbleOutline.js +28 -0
  65. package/components/Icons/CommentFilled/CommentFilled.js +28 -0
  66. package/components/Icons/CommentLineFilled/CommentLineFilled.js +28 -0
  67. package/components/Icons/CommentLineOutline/CommentLineOutline.js +28 -0
  68. package/components/Icons/CommentOutline/CommentOutline.js +28 -0
  69. package/components/Icons/ContactDetailsFilled/ContactDetailsFilled.js +20 -0
  70. package/components/Icons/ContactDetailsOutline/ContactDetailsOutline.js +20 -0
  71. package/components/Icons/DetailsOutline/DetailsOutline.js +20 -0
  72. package/components/Icons/DotsHorizontalFilled/DotsHorizontalFilled.js +39 -0
  73. package/components/Icons/DotsHorizontalOutline/DotsHorizontalOutline.js +48 -0
  74. package/components/Icons/DotsVerticalFilled/DotsVerticalFilled.js +39 -0
  75. package/components/Icons/DotsVerticalOutline/DotsVerticalOutline.js +48 -0
  76. package/components/Icons/ExitArrowInOutline/ExitArrowInOutline.js +26 -0
  77. package/components/Icons/ExitArrowOutOutline/ExitArrowOutOutline.js +38 -0
  78. package/components/Icons/HamburgerMenu/HamburgerMenu.js +45 -0
  79. package/components/Icons/HamburgerSpaced/HamburgerSpaced.js +28 -0
  80. package/components/Icons/HeartFilled/HeartFilled.js +23 -0
  81. package/components/Icons/HeartOutline/HeartOutline.js +28 -0
  82. package/components/Icons/HomeFilled/HomeFilled.js +25 -0
  83. package/components/Icons/HomeOutline/HomeOutline.js +25 -0
  84. package/components/Icons/Info/Info.js +32 -0
  85. package/components/Icons/Info/index.js +4 -0
  86. package/components/Icons/Link/Link.js +36 -0
  87. package/components/Icons/LockKeyhole/LockKeyhole.js +25 -0
  88. package/components/Icons/LockKeyholeOutline/LockKeyholeOutline.js +36 -0
  89. package/components/Icons/LockKeyholeUnlocked/LockKeyholeUnlocked.js +25 -0
  90. package/components/Icons/LockKeyholeUnlockedOutline/LockKeyholeUnlockedOutline.js +36 -0
  91. package/components/Icons/Minus/Minus.js +26 -0
  92. package/components/Icons/MinusCircle/MinusCircle.js +28 -0
  93. package/components/Icons/MinusCircleFilled/MinusCircleFilled.js +28 -0
  94. package/components/Icons/MoneyBagOutline/MoneyBagOutline.js +51 -0
  95. package/components/Icons/MoneyBriefcaseFilled/MoneyBriefcaseFilled.js +25 -0
  96. package/components/Icons/MoneyBriefcaseOutline/MoneyBriefcaseOutline.js +43 -0
  97. package/components/Icons/ProfileFemaleOutline/ProfileFemaleOutline.js +35 -0
  98. package/components/Icons/ProfileGroupFilled/ProfileGroupFilled.js +33 -0
  99. package/components/Icons/ProfileMaleFilled/ProfileMaleFilled.js +33 -0
  100. package/components/Icons/ProfileMaleOutline/ProfileMaleOutline.js +36 -0
  101. package/components/Icons/RupeeOutlined/RupeeOutlined.js +23 -0
  102. package/components/Icons/RupeeSign/RupeeSign.js +26 -0
  103. package/components/Icons/Search/Search.js +28 -0
  104. package/components/Icons/SettingFilled/SettingFilled.js +23 -0
  105. package/components/Icons/SettingOutline/SettingOutline.js +23 -0
  106. package/components/Icons/ShareAllFilled/ShareAllFilled.js +25 -0
  107. package/components/Icons/ShareAllOutline/ShareAllOutline.js +44 -0
  108. package/components/Icons/ShareBoxOutline/ShareBoxOutline.js +23 -0
  109. package/components/Icons/ShareFilled/ShareFilled.js +34 -0
  110. package/components/Icons/ShareOutline/ShareOutline.js +37 -0
  111. package/components/Icons/ShareThickFilled/ShareThickFilled.js +23 -0
  112. package/components/Icons/ShieldCheckFilled/ShieldCheckFilled.js +25 -0
  113. package/components/Icons/ShieldCheckOutline/ShieldCheckOutline.js +36 -0
  114. package/components/Icons/ShieldCrossFilled/ShieldCrossFilled.js +25 -0
  115. package/components/Icons/ShieldCrossOutline/ShieldCrossOutline.js +35 -0
  116. package/components/Icons/ShieldWarningFilled/ShieldWarningFilled.js +25 -0
  117. package/components/Icons/ShieldWarningOutline/ShieldWarningOutline.js +28 -0
  118. package/components/Icons/StarFilled/StarFilled.js +28 -0
  119. package/components/Icons/StarOutline/StarOutline.js +30 -0
  120. package/components/Icons/ThumbsDownFilled/ThumbsDownFilled.js +23 -0
  121. package/components/Icons/ThumbsDownOutline/ThumbsDownOutline.js +23 -0
  122. package/components/Icons/ThumbsUpFilled/ThumbsUpFilled.js +23 -0
  123. package/components/Icons/ThumbsUpOutline/ThumbsUpOutline.js +23 -0
  124. package/components/Icons/Upload/Upload.js +32 -0
  125. package/components/Icons/UploadBoxFilled/UploadBoxFilled.js +25 -0
  126. package/components/Icons/UploadBoxOutline/UploadBoxOutline.js +41 -0
  127. package/components/Icons/WalletFilled/WalletFilled.js +28 -0
  128. package/components/Icons/WalletOutline/WalletOutline.js +28 -0
  129. package/components/Icons/index.js +302 -0
  130. package/components/Pagination/Pagination.js +60 -0
  131. package/components/Pagination/constants.js +24 -0
  132. package/components/Pagination/helpers.js +32 -0
  133. package/components/Pagination/index.js +4 -0
  134. package/components/Pagination/styles.js +75 -0
  135. package/components/Ripple/Ripple.js +26 -0
  136. package/components/Ripple/index.js +4 -0
  137. package/components/Toast/Toast.js +43 -0
  138. package/components/Toast/constants.js +34 -0
  139. package/components/Toast/helpers.js +17 -0
  140. package/components/Toast/index.js +4 -0
  141. package/components/Toast/styles.js +124 -0
  142. package/index.js +12 -0
  143. package/package.json +1 -1
  144. package/utils/capFirstLetter.js +4 -0
  145. package/utils/compose.js +4 -0
  146. package/utils/hasEqualProps.js +7 -0
  147. package/utils/isNonEmptyArray.js +4 -0
  148. package/dist/index.js +0 -10
  149. /package/{dist/colors → colors}/index.js +0 -0
  150. /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,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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "repository": {
@@ -0,0 +1,4 @@
1
+ const t = (e) => typeof e != "string" || e.length === 0 ? e : e.charAt(0).toUpperCase() + e.slice(1);
2
+ export {
3
+ t as default
4
+ };
@@ -0,0 +1,4 @@
1
+ const s = (...e) => (o) => e.reduceRight((t, c) => c(t), o);
2
+ export {
3
+ s as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "../node_modules/lodash-es/omitBy.js";
2
+ import r from "../node_modules/lodash-es/isFunction.js";
3
+ import m from "../node_modules/lodash-es/isEqual.js";
4
+ const f = (t, i) => m(o(t, r), o(i, r));
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,4 @@
1
+ const t = (r) => Array.isArray(r) && r.length > 0;
2
+ export {
3
+ t as default
4
+ };
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