meticulous-ui 3.7.12 → 3.7.13

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 (310) hide show
  1. package/components/Button/Button.js +46 -67
  2. package/components/Carousel/Carousel.js +127 -72
  3. package/components/DatePicker/DatePicker.js +181 -142
  4. package/components/DatePicker/constants.js +14 -1
  5. package/components/DatePicker/utils.js +1 -5
  6. package/components/Dropdown/Dropdown.js +114 -80
  7. package/components/Glass/Glass.js +2 -8
  8. package/components/Icons/Add.js +44 -11
  9. package/components/Icons/AddCircle.js +29 -8
  10. package/components/Icons/AddCircleFilled.js +20 -5
  11. package/components/Icons/ArrowDown.js +20 -5
  12. package/components/Icons/ArrowLeft.js +21 -5
  13. package/components/Icons/ArrowRight.js +21 -5
  14. package/components/Icons/ArrowUp.js +20 -5
  15. package/components/Icons/BagFilled.js +20 -5
  16. package/components/Icons/BagOutline.js +30 -8
  17. package/components/Icons/BellFilled.js +31 -8
  18. package/components/Icons/BellOffFilled.js +40 -9
  19. package/components/Icons/BellOffOutline.js +42 -9
  20. package/components/Icons/BellOutline.js +33 -8
  21. package/components/Icons/BookmarkFilled.js +23 -10
  22. package/components/Icons/BookmarkOutline.js +20 -5
  23. package/components/Icons/BoxCoveredFilled.js +41 -10
  24. package/components/Icons/BoxCoveredOutline.js +31 -8
  25. package/components/Icons/BoxFilled.js +34 -9
  26. package/components/Icons/BoxOutline.js +31 -8
  27. package/components/Icons/CalendarDays.js +20 -5
  28. package/components/Icons/CalendarLinesPen.js +21 -5
  29. package/components/Icons/CartCheckFilled.js +36 -9
  30. package/components/Icons/CartCheckOutline.js +46 -10
  31. package/components/Icons/CartCrossFilled.js +36 -9
  32. package/components/Icons/CartCrossOutline.js +45 -10
  33. package/components/Icons/CartFilled.js +34 -9
  34. package/components/Icons/CartMinusFilled.js +36 -9
  35. package/components/Icons/CartMinusOutline.js +47 -11
  36. package/components/Icons/CartOutline.js +46 -10
  37. package/components/Icons/CartPlusFilled.js +36 -9
  38. package/components/Icons/CartPlusOutline.js +45 -10
  39. package/components/Icons/Check.js +21 -5
  40. package/components/Icons/CheckDouble.js +21 -5
  41. package/components/Icons/ChevronDown.js +21 -5
  42. package/components/Icons/ChevronLeft.js +21 -5
  43. package/components/Icons/ChevronRight.js +21 -5
  44. package/components/Icons/ChevronUp.js +21 -5
  45. package/components/Icons/ClockCircleOutline.js +24 -8
  46. package/components/Icons/ClockSquareOutline.js +31 -8
  47. package/components/Icons/Close.js +18 -5
  48. package/components/Icons/CloseCircleFilled.js +20 -5
  49. package/components/Icons/CloseCircleOutline.js +21 -5
  50. package/components/Icons/CommentBubbleFilled.js +23 -10
  51. package/components/Icons/CommentBubbleOutline.js +23 -10
  52. package/components/Icons/CommentFilled.js +23 -10
  53. package/components/Icons/CommentLineFilled.js +23 -10
  54. package/components/Icons/CommentLineOutline.js +23 -10
  55. package/components/Icons/CommentOutline.js +23 -10
  56. package/components/Icons/ContactDetailsFilled.js +15 -8
  57. package/components/Icons/ContactDetailsOutline.js +15 -8
  58. package/components/Icons/DeliveryTruckFastFilled.js +26 -13
  59. package/components/Icons/DeliveryTruckFastOutline.js +26 -13
  60. package/components/Icons/DeliveryTruckLeftFilled.js +22 -9
  61. package/components/Icons/DeliveryTruckLeftOutline.js +22 -9
  62. package/components/Icons/DeliveryTruckRightFilled.js +21 -8
  63. package/components/Icons/DeliveryTruckRightOutline.js +21 -8
  64. package/components/Icons/DetailsOutline.js +15 -8
  65. package/components/Icons/DiscordConversation.js +27 -8
  66. package/components/Icons/DiscordFilled.js +21 -8
  67. package/components/Icons/DiscordOutline.js +25 -9
  68. package/components/Icons/DoorClosedFilled.js +20 -5
  69. package/components/Icons/DoorClosedOutline.js +21 -5
  70. package/components/Icons/DoorOpenFilled.js +20 -5
  71. package/components/Icons/DoorOpenOutline.js +21 -5
  72. package/components/Icons/DotsHorizontalFilled.js +34 -9
  73. package/components/Icons/DotsHorizontalOutline.js +43 -9
  74. package/components/Icons/DotsVerticalFilled.js +34 -9
  75. package/components/Icons/DotsVerticalOutline.js +43 -9
  76. package/components/Icons/Download.js +27 -8
  77. package/components/Icons/DownloadBoxFilled.js +20 -5
  78. package/components/Icons/DownloadBoxOutline.js +36 -9
  79. package/components/Icons/EditBoxThick.js +21 -5
  80. package/components/Icons/EditBoxThin.js +33 -8
  81. package/components/Icons/EmailFilled.js +19 -6
  82. package/components/Icons/EmailOutline.js +19 -6
  83. package/components/Icons/ExitArrowInOutline.js +21 -5
  84. package/components/Icons/ExitArrowOutOutline.js +33 -8
  85. package/components/Icons/ExitFullScreen.js +19 -5
  86. package/components/Icons/ExitFullScreenThick.js +19 -5
  87. package/components/Icons/EyeClosed.js +20 -5
  88. package/components/Icons/EyeFilled.js +29 -8
  89. package/components/Icons/EyeOutline.js +33 -8
  90. package/components/Icons/FacebookFilled.js +19 -6
  91. package/components/Icons/FacebookMessengerOutline.js +29 -8
  92. package/components/Icons/FacebookOutline.js +20 -5
  93. package/components/Icons/FacebookRoundFilled.js +18 -5
  94. package/components/Icons/Filter.js +17 -10
  95. package/components/Icons/FilterList.js +21 -5
  96. package/components/Icons/FilterThickFilled.js +18 -5
  97. package/components/Icons/FilterThickOutline.js +19 -5
  98. package/components/Icons/FullScreenArrowThick.js +19 -5
  99. package/components/Icons/FullScreenArrowThin.js +19 -5
  100. package/components/Icons/FullScreenExit.js +41 -10
  101. package/components/Icons/FullScreenFilled.js +20 -5
  102. package/components/Icons/FullScreenOutline.js +20 -5
  103. package/components/Icons/HamburgerMenu.js +40 -9
  104. package/components/Icons/HamburgerSpaced.js +23 -10
  105. package/components/Icons/HeartFilled.js +18 -5
  106. package/components/Icons/HeartOutline.js +23 -5
  107. package/components/Icons/Help.js +21 -5
  108. package/components/Icons/HelpCircleFilled.js +20 -5
  109. package/components/Icons/HelpCircleOutline.js +41 -9
  110. package/components/Icons/HomeFilled.js +20 -5
  111. package/components/Icons/HomeOutline.js +20 -5
  112. package/components/Icons/Info.js +27 -8
  113. package/components/Icons/InfoCircleFilled.js +20 -5
  114. package/components/Icons/InfoCircleOutline.js +16 -9
  115. package/components/Icons/InfoSquareFilled.js +20 -5
  116. package/components/Icons/InfoSquareOutline.js +23 -9
  117. package/components/Icons/InstagramOuline.js +21 -8
  118. package/components/Icons/InstagramRoundFilled.js +44 -13
  119. package/components/Icons/KeyFilled.js +20 -5
  120. package/components/Icons/KeyInSquareFilled.js +29 -8
  121. package/components/Icons/KeyInSquareOutline.js +38 -9
  122. package/components/Icons/KeyOutline.js +31 -8
  123. package/components/Icons/KeySideSquareFilled.js +29 -8
  124. package/components/Icons/KeySideSquareOutline.js +20 -5
  125. package/components/Icons/KeySquareFilled.js +29 -8
  126. package/components/Icons/KeySquareOutline.js +20 -5
  127. package/components/Icons/Link.js +31 -8
  128. package/components/Icons/LinkedinFilled.js +19 -6
  129. package/components/Icons/LinkedinOutline.js +19 -5
  130. package/components/Icons/LinkedinRoundFilled.js +19 -6
  131. package/components/Icons/Loading.js +21 -8
  132. package/components/Icons/LocationArrowFilled.js +12 -5
  133. package/components/Icons/LocationArrowOutline.js +21 -5
  134. package/components/Icons/LocationFilled.js +23 -10
  135. package/components/Icons/LocationOutline.js +23 -10
  136. package/components/Icons/LockKeyhole.js +20 -5
  137. package/components/Icons/LockKeyholeOutline.js +31 -9
  138. package/components/Icons/LockKeyholeUnlocked.js +20 -5
  139. package/components/Icons/LockKeyholeUnlockedOutline.js +31 -9
  140. package/components/Icons/MediaPauseCircleFilled.js +20 -5
  141. package/components/Icons/MediaPauseCircleOuline.js +36 -9
  142. package/components/Icons/MediaPauseFilled.js +27 -8
  143. package/components/Icons/MediaPauseOutline.js +31 -8
  144. package/components/Icons/MediaPlayCircleFilled.js +20 -5
  145. package/components/Icons/MediaPlayCircleOutline.js +31 -8
  146. package/components/Icons/MediaPlayFilled.js +18 -5
  147. package/components/Icons/MediaPlayOutline.js +20 -5
  148. package/components/Icons/MediaStopCircleFilled.js +20 -5
  149. package/components/Icons/MediaStopCircleOutline.js +31 -8
  150. package/components/Icons/MediaStopFilled.js +18 -5
  151. package/components/Icons/MediaStopOutline.js +20 -5
  152. package/components/Icons/Minus.js +21 -5
  153. package/components/Icons/MinusCircle.js +23 -10
  154. package/components/Icons/MinusCircleFilled.js +23 -10
  155. package/components/Icons/MoneyBagOutline.js +46 -10
  156. package/components/Icons/MoneyBriefcaseFilled.js +20 -5
  157. package/components/Icons/MoneyBriefcaseOutline.js +38 -9
  158. package/components/Icons/NoEntry.js +19 -5
  159. package/components/Icons/NoEntryFilled.js +18 -5
  160. package/components/Icons/NoEntryOutline.js +21 -8
  161. package/components/Icons/PaymentCardFilled.js +16 -9
  162. package/components/Icons/PaymentCardOutline.js +16 -9
  163. package/components/Icons/PhoneCallingFilled.js +36 -9
  164. package/components/Icons/PhoneCallingOutline.js +38 -9
  165. package/components/Icons/PhoneFilled.js +18 -5
  166. package/components/Icons/PhoneOutline.js +18 -5
  167. package/components/Icons/Pin.js +21 -5
  168. package/components/Icons/PinAddFilled.js +17 -10
  169. package/components/Icons/PinAddOutline.js +17 -10
  170. package/components/Icons/PinCircleFilled.js +20 -5
  171. package/components/Icons/PinCircleOutline.js +21 -8
  172. package/components/Icons/PinFilled.js +18 -5
  173. package/components/Icons/PinOutline.js +20 -5
  174. package/components/Icons/PinSubFilled.js +17 -10
  175. package/components/Icons/PinSubOutline.js +17 -10
  176. package/components/Icons/PinterestFilled.js +17 -10
  177. package/components/Icons/PinterestOutline.js +21 -5
  178. package/components/Icons/ProfileFemaleOutline.js +19 -6
  179. package/components/Icons/ProfileGroupFilled.js +28 -8
  180. package/components/Icons/ProfileMaleFilled.js +28 -8
  181. package/components/Icons/ProfileMaleOutline.js +19 -6
  182. package/components/Icons/RedditFilled.js +17 -10
  183. package/components/Icons/RedditOutline.js +43 -10
  184. package/components/Icons/RedditRoundFilled.js +52 -15
  185. package/components/Icons/RedditRoundOutline.js +53 -16
  186. package/components/Icons/RupeeOutlined.js +18 -5
  187. package/components/Icons/RupeeSign.js +21 -5
  188. package/components/Icons/SaveFilled.js +23 -10
  189. package/components/Icons/SaveOutline.js +23 -10
  190. package/components/Icons/Search.js +23 -10
  191. package/components/Icons/SettingFilled.js +18 -5
  192. package/components/Icons/SettingOutline.js +18 -5
  193. package/components/Icons/ShareAllFilled.js +20 -5
  194. package/components/Icons/ShareAllOutline.js +39 -11
  195. package/components/Icons/ShareBoxOutline.js +18 -5
  196. package/components/Icons/ShareFilled.js +29 -8
  197. package/components/Icons/ShareOutline.js +32 -8
  198. package/components/Icons/ShareThickFilled.js +18 -5
  199. package/components/Icons/ShieldCheckFilled.js +20 -5
  200. package/components/Icons/ShieldCheckOutline.js +31 -8
  201. package/components/Icons/ShieldCrossFilled.js +20 -5
  202. package/components/Icons/ShieldCrossOutline.js +30 -8
  203. package/components/Icons/ShieldFilled.js +18 -5
  204. package/components/Icons/ShieldOutline.js +20 -5
  205. package/components/Icons/ShieldWarningFilled.js +20 -5
  206. package/components/Icons/ShieldWarningOutline.js +23 -9
  207. package/components/Icons/SnapchatFilled.js +17 -10
  208. package/components/Icons/SnapchatOutline.js +20 -5
  209. package/components/Icons/SortBottomToTop.js +26 -10
  210. package/components/Icons/SortHorizontal.js +20 -5
  211. package/components/Icons/SortTopToBottom.js +26 -10
  212. package/components/Icons/SortVertical.js +20 -5
  213. package/components/Icons/StarFilled.js +19 -6
  214. package/components/Icons/StarOutline.js +19 -6
  215. package/components/Icons/TelegramFilled.js +22 -9
  216. package/components/Icons/TelegramOutline.js +20 -5
  217. package/components/Icons/TelegramRoundFilled.js +22 -9
  218. package/components/Icons/ThumbsDownFilled.js +18 -5
  219. package/components/Icons/ThumbsDownOutline.js +18 -5
  220. package/components/Icons/ThumbsUpFilled.js +18 -5
  221. package/components/Icons/ThumbsUpOutline.js +18 -5
  222. package/components/Icons/TiktokBox.js +18 -5
  223. package/components/Icons/TiktokThickFilled.js +21 -8
  224. package/components/Icons/TiktokThinFilled.js +32 -8
  225. package/components/Icons/TrashBigFilled.js +23 -10
  226. package/components/Icons/TrashBigOutline.js +23 -10
  227. package/components/Icons/TrashFilled.js +27 -8
  228. package/components/Icons/TrashLinesFilled.js +29 -8
  229. package/components/Icons/TrashLinesOutline.js +33 -11
  230. package/components/Icons/TrashOutline.js +31 -9
  231. package/components/Icons/Upload.js +27 -8
  232. package/components/Icons/UploadBoxFilled.js +20 -5
  233. package/components/Icons/UploadBoxOutline.js +36 -9
  234. package/components/Icons/VolumeFilled.js +30 -11
  235. package/components/Icons/VolumeMuteFilled.js +30 -11
  236. package/components/Icons/VolumeMuteOutline.js +30 -11
  237. package/components/Icons/VolumeOffFilled.js +30 -11
  238. package/components/Icons/VolumeOffOutline.js +30 -11
  239. package/components/Icons/VolumeOutline.js +30 -11
  240. package/components/Icons/WalletFilled.js +23 -10
  241. package/components/Icons/WalletOutline.js +23 -10
  242. package/components/Icons/Warning.js +21 -5
  243. package/components/Icons/WarningCircleFilled.js +18 -5
  244. package/components/Icons/WarningCircleOutline.js +18 -5
  245. package/components/Icons/WarningSmall.js +21 -5
  246. package/components/Icons/WarningTriangleFilled.js +21 -8
  247. package/components/Icons/WarningTriangleOutline.js +21 -5
  248. package/components/Icons/WhatsappFilled.js +17 -10
  249. package/components/Icons/WhatsappOutline.js +20 -5
  250. package/components/Icons/Youtube.js +18 -5
  251. package/components/Icons/YoutubeFilled.js +23 -10
  252. package/components/Icons/YoutubeRoundFilled.js +22 -9
  253. package/components/Image/Image.js +33 -27
  254. package/components/Input/Checkbox/Checkbox.js +30 -20
  255. package/components/Input/FileUploader/FileUploader.js +73 -82
  256. package/components/Input/Input/Input.js +49 -47
  257. package/components/Input/Radio/Radio.js +18 -17
  258. package/components/Input/RadioGroup/RadioGroup.js +33 -16
  259. package/components/Input/Textarea/SvgIcon.js +1 -7
  260. package/components/Input/Textarea/Textarea.js +54 -54
  261. package/components/Loader/Loader.js +18 -29
  262. package/components/Loader/constants.js +3 -12
  263. package/components/MenuItem/MenuItem.js +30 -28
  264. package/components/Modal/Modal.js +58 -37
  265. package/components/OtpInput/OtpInput.js +28 -28
  266. package/components/PageLoader/PageLoader.js +13 -9
  267. package/components/Pagination/Pagination.js +87 -95
  268. package/components/Ripple/Ripple.js +12 -2
  269. package/components/RootComponent/RootComponent.js +1 -4
  270. package/components/Selectbox/Selectbox.js +143 -101
  271. package/components/Shimmer/Shimmer.js +17 -13
  272. package/components/Spinner/Spinner.js +29 -22
  273. package/components/Timer/Timer.js +154 -92
  274. package/components/Timer/components/TimerRing/TimerRing.js +56 -11
  275. package/components/Toast/Toast.js +76 -81
  276. package/components/Typography/Headings/H1.js +2 -8
  277. package/components/Typography/Headings/H2.js +2 -8
  278. package/components/Typography/Headings/H3.js +2 -8
  279. package/components/Typography/Headings/H4.js +2 -8
  280. package/components/Typography/Headings/H5.js +2 -8
  281. package/components/Typography/Headings/H6.js +2 -8
  282. package/components/Typography/Headings/index.js +1 -8
  283. package/components/Typography/P/P.js +3 -12
  284. package/components/VideoPlayer/VideoPlayer.js +19 -23
  285. package/components/VideoPlayer/components/Volumebar/Volumebar.js +2 -6
  286. package/components/VideoPlayer/useSpacebarToggle.js +11 -1
  287. package/components/VideoPlayer/useVolumeOverlay.js +1 -4
  288. package/hooks/useThrottle.js +6 -3
  289. package/hooks/useWindowSize.js +1 -4
  290. package/package.json +1 -1
  291. package/reactUtils/composeProviders.js +1 -3
  292. package/reactUtils/lazyImport.js +1 -3
  293. package/reactUtils/withErrorBoundary.js +2 -8
  294. package/utils/cancelablePromise.js +4 -5
  295. package/utils/createPubSub.js +9 -12
  296. package/utils/formatCompactNumber.js +3 -4
  297. package/utils/formatCurrency.js +1 -4
  298. package/utils/formatDate.js +3 -5
  299. package/utils/handleKeyboardNavigation.js +1 -5
  300. package/utils/isAuthenticated.js +1 -3
  301. package/utils/logError.js +1 -4
  302. package/utils/logInfo.js +1 -6
  303. package/utils/logWarn.js +1 -6
  304. package/utils/mergeDeep.js +1 -3
  305. package/utils/multiSort.js +1 -4
  306. package/utils/scrollToElement.js +1 -4
  307. package/utils/scrollToTop.js +1 -4
  308. package/utils/timeAgo.js +1 -3
  309. package/utils/trackEvent.js +1 -5
  310. package/utils/withTimeout.js +3 -1
@@ -48,9 +48,7 @@ const P = () => {
48
48
  display: flex;
49
49
  align-items: center;
50
50
  justify-content: space-between;
51
- background-color: ${({
52
- $bg: e
53
- }) => e};
51
+ background-color: ${({ $bg: e }) => e};
54
52
  height: 7.68rem;
55
53
  width: 44.8rem;
56
54
  border-radius: 1.28rem;
@@ -117,9 +115,7 @@ const P = () => {
117
115
  width: 6.4rem;
118
116
  height: 6.4rem;
119
117
  border-radius: 50%;
120
- background-color: ${({
121
- $side: e
122
- }) => e};
118
+ background-color: ${({ $side: e }) => e};
123
119
  animation: ${V} 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
124
120
 
125
121
  @media screen and (max-width: 768px) {
@@ -138,17 +134,11 @@ const P = () => {
138
134
  }
139
135
  `, ne = o.div`
140
136
  position: absolute;
141
- top: ${({
142
- $isWarning: e
143
- }) => e ? "49%" : "50%"};
137
+ top: ${({ $isWarning: e }) => e ? "49%" : "50%"};
144
138
  left: 50%;
145
139
  transform: translate(-50%, -50%);
146
- width: ${({
147
- size: e
148
- }) => e}rem;
149
- height: ${({
150
- size: e
151
- }) => e}rem;
140
+ width: ${({ size: e }) => e}rem;
141
+ height: ${({ size: e }) => e}rem;
152
142
  display: flex;
153
143
  align-items: center;
154
144
  justify-content: center;
@@ -157,12 +147,8 @@ const P = () => {
157
147
  top: 42.8%;
158
148
  left: 42.8%;
159
149
  transform: translate(
160
- ${({
161
- $isWarning: e
162
- }) => e ? "-45.8%" : "-42.8%"},
163
- ${({
164
- $isWarning: e
165
- }) => e ? "-50.8%" : "-42.8%"}
150
+ ${({ $isWarning: e }) => e ? "-45.8%" : "-42.8%"},
151
+ ${({ $isWarning: e }) => e ? "-50.8%" : "-42.8%"}
166
152
  );
167
153
  scale: 0.75;
168
154
  }
@@ -174,9 +160,7 @@ const P = () => {
174
160
  width: 4.8rem;
175
161
  height: 4.8rem;
176
162
  border-radius: 50%;
177
- background-color: ${({
178
- $main: e
179
- }) => e};
163
+ background-color: ${({ $main: e }) => e};
180
164
  animation: ${Y} 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
181
165
 
182
166
  @media screen and (max-width: 768px) {
@@ -207,16 +191,12 @@ const P = () => {
207
191
  `, me = o.svg`
208
192
  position: absolute;
209
193
  inset: 0;
210
- transform: ${({
211
- $hasClockwiseRotation: e
212
- }) => e ? "rotate(-90deg)" : "rotate(90deg) scaleX(-1)"};
194
+ transform: ${({ $hasClockwiseRotation: e }) => e ? "rotate(-90deg)" : "rotate(90deg) scaleX(-1)"};
213
195
  pointer-events: none;
214
196
 
215
197
  circle {
216
198
  fill: none;
217
- stroke: ${({
218
- $color: e
219
- }) => e};
199
+ stroke: ${({ $color: e }) => e};
220
200
  stroke-width: 2;
221
201
  stroke-linecap: round;
222
202
  stroke-dasharray: ${C};
@@ -229,12 +209,8 @@ const P = () => {
229
209
 
230
210
  circle:last-child {
231
211
  stroke-dashoffset: ${C};
232
- animation: ${se} ${({
233
- $duration: e
234
- }) => e - 0.5}s linear forwards;
235
- animation-play-state: ${({
236
- $paused: e
237
- }) => e ? "paused" : "running"};
212
+ animation: ${se} ${({ $duration: e }) => e - 0.5}s linear forwards;
213
+ animation-play-state: ${({ $paused: e }) => e ? "paused" : "running"};
238
214
  }
239
215
  `, ce = o(S)`
240
216
  cursor: pointer;
@@ -280,45 +256,36 @@ const P = () => {
280
256
  @media screen and (max-width: 380px) {
281
257
  font-size: 1.32rem;
282
258
  }
283
- `, ue = (e, r) => e === f ? /* @__PURE__ */ i(S, { size: 16, color: r }) : e === N ? /* @__PURE__ */ i(U, { size: 18, color: r }) : e === R ? /* @__PURE__ */ i(H, { size: 28, color: L }) : /* @__PURE__ */ i(q, { size: 22, color: r }), pe = (e) => e === f ? 1.6 : e === N ? 1.76 : e === R ? 2.8 : 2.08, ge = ({
284
- type: e,
285
- $main: r,
286
- $side: n
287
- }) => {
259
+ `, ue = (e, r) => e === f ? /* @__PURE__ */ i(S, { size: 16, color: r }) : e === N ? /* @__PURE__ */ i(U, { size: 18, color: r }) : e === R ? /* @__PURE__ */ i(H, { size: 28, color: L }) : /* @__PURE__ */ i(q, { size: 22, color: r }), pe = (e) => e === f ? 1.6 : e === N ? 1.76 : e === R ? 2.8 : 2.08, ge = ({ type: e, $main: r, $side: n }) => {
288
260
  const a = ue(e, r), s = e === R;
289
261
  return /* @__PURE__ */ m(oe, { "aria-hidden": "true", $side: n, children: [
290
262
  /* @__PURE__ */ i(ae, { $main: r }),
291
263
  !s && /* @__PURE__ */ i(ie, { $main: r, type: e }),
292
264
  /* @__PURE__ */ i(ne, { size: pe(e), $isWarning: s, children: a })
293
265
  ] });
294
- }, we = ({
295
- toasts: e,
296
- ...r
297
- }) => {
266
+ }, we = ({ toasts: e, ...r }) => {
298
267
  const [n, a] = h(e);
299
268
  y(() => {
300
269
  a(e);
301
270
  }, [e]);
302
- const s = ({
303
- type: u,
304
- id: l,
305
- title: p,
306
- subtitle: g,
307
- duration: d,
308
- onExpire: w = P
309
- }, x) => /* @__PURE__ */ B(W, { type: u, title: p, subtitle: g, duration: d, key: l, onExpire: w });
310
- return D(/* @__PURE__ */ i(re, { ...r, children: [...n].reverse().map(s) }), document.body);
271
+ const s = ({ type: u, id: l, title: p, subtitle: g, duration: d, onExpire: w = P }, x) => /* @__PURE__ */ B(W, { type: u, title: p, subtitle: g, duration: d, key: l, onExpire: w });
272
+ return D(
273
+ /* @__PURE__ */ i(re, { ...r, children: [...n].reverse().map(s) }),
274
+ document.body
275
+ );
311
276
  };
312
277
  we.propTypes = {
313
278
  /** Array of toast config objects, each with `{ id, type, title, subtitle, duration, onExpire }` */
314
- toasts: /* @__PURE__ */ t.arrayOf(/* @__PURE__ */ t.shape({
315
- id: t.any,
316
- type: t.string,
317
- title: t.string,
318
- subtitle: t.string,
319
- duration: t.number,
320
- onExpire: t.func
321
- }))
279
+ toasts: t.arrayOf(
280
+ t.shape({
281
+ id: t.any,
282
+ type: t.string,
283
+ title: t.string,
284
+ subtitle: t.string,
285
+ duration: t.number,
286
+ onExpire: t.func
287
+ })
288
+ )
322
289
  };
323
290
  const M = (e, r, n) => () => {
324
291
  e(!0), setTimeout(() => {
@@ -345,26 +312,54 @@ const M = (e, r, n) => () => {
345
312
  clearTimeout(b.current), $.current -= Date.now() - z.current, T(!0);
346
313
  }, X = () => {
347
314
  T(!1), O($.current);
348
- }, {
349
- main: E,
350
- side: G,
351
- bg: A
352
- } = (I = J[e]) != null ? I : Q;
315
+ }, { main: E, side: G, bg: A } = (I = J[e]) != null ? I : Q;
353
316
  if (g)
354
- return /* @__PURE__ */ m(te, { $bg: A, role: e === f ? "alert" : "status", "aria-live": e === f ? "assertive" : "polite", "aria-atomic": "true", className: `${w ? "fade-out" : "fade-in"}`, onMouseEnter: F, onMouseLeave: X, ...p, children: [
355
- /* @__PURE__ */ i(ge, { type: e, $main: E, $side: G }),
356
- /* @__PURE__ */ m(he, { children: [
357
- /* @__PURE__ */ i(le, { children: u }),
358
- l && /* @__PURE__ */ i(fe, { children: l })
359
- ] }),
360
- /* @__PURE__ */ m(de, { children: [
361
- /* @__PURE__ */ m(me, { "aria-hidden": "true", viewBox: "0 0 28 28", $duration: n, $color: E, $paused: j, $hasClockwiseRotation: s, children: [
362
- /* @__PURE__ */ i("circle", { cx: "14", cy: "14", r: "12" }),
363
- /* @__PURE__ */ i("circle", { cx: "14", cy: "14", r: "12" })
364
- ] }),
365
- /* @__PURE__ */ i(ce, { "aria-label": "Close notification", size: 13, color: k.m600, onClick: M(x, d, a) })
366
- ] })
367
- ] });
317
+ return /* @__PURE__ */ m(
318
+ te,
319
+ {
320
+ $bg: A,
321
+ role: e === f ? "alert" : "status",
322
+ "aria-live": e === f ? "assertive" : "polite",
323
+ "aria-atomic": "true",
324
+ className: `${w ? "fade-out" : "fade-in"}`,
325
+ onMouseEnter: F,
326
+ onMouseLeave: X,
327
+ ...p,
328
+ children: [
329
+ /* @__PURE__ */ i(ge, { type: e, $main: E, $side: G }),
330
+ /* @__PURE__ */ m(he, { children: [
331
+ /* @__PURE__ */ i(le, { children: u }),
332
+ l && /* @__PURE__ */ i(fe, { children: l })
333
+ ] }),
334
+ /* @__PURE__ */ m(de, { children: [
335
+ /* @__PURE__ */ m(
336
+ me,
337
+ {
338
+ "aria-hidden": "true",
339
+ viewBox: "0 0 28 28",
340
+ $duration: n,
341
+ $color: E,
342
+ $paused: j,
343
+ $hasClockwiseRotation: s,
344
+ children: [
345
+ /* @__PURE__ */ i("circle", { cx: "14", cy: "14", r: "12" }),
346
+ /* @__PURE__ */ i("circle", { cx: "14", cy: "14", r: "12" })
347
+ ]
348
+ }
349
+ ),
350
+ /* @__PURE__ */ i(
351
+ ce,
352
+ {
353
+ "aria-label": "Close notification",
354
+ size: 13,
355
+ color: k.m600,
356
+ onClick: M(x, d, a)
357
+ }
358
+ )
359
+ ] })
360
+ ]
361
+ }
362
+ );
368
363
  };
369
364
  W.propTypes = {
370
365
  /** Notification variant: `'info'`, `'success'`, `'warning'`, or `'error'`. Defaults to `'info'` */
@@ -2,15 +2,9 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import s from "styled-components";
3
3
  import r from "prop-types";
4
4
  const m = s.h1`
5
- color: ${({
6
- $color: o
7
- }) => o};
5
+ color: ${({ $color: o }) => o};
8
6
  font-size: 5.76rem;
9
- `, n = ({
10
- color: o,
11
- children: e,
12
- ...p
13
- }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
7
+ `, n = ({ color: o, children: e, ...p }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
14
8
  n.propTypes = {
15
9
  /** Heading content */
16
10
  children: r.node,
@@ -2,15 +2,9 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import s from "styled-components";
3
3
  import r from "prop-types";
4
4
  const m = s.h2`
5
- color: ${({
6
- $color: o
7
- }) => o};
5
+ color: ${({ $color: o }) => o};
8
6
  font-size: 4.8rem;
9
- `, n = ({
10
- color: o,
11
- children: e,
12
- ...p
13
- }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
7
+ `, n = ({ color: o, children: e, ...p }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
14
8
  n.propTypes = {
15
9
  /** Heading content */
16
10
  children: r.node,
@@ -2,15 +2,9 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import s from "styled-components";
3
3
  import r from "prop-types";
4
4
  const m = s.h3`
5
- color: ${({
6
- $color: o
7
- }) => o};
5
+ color: ${({ $color: o }) => o};
8
6
  font-size: 3.84rem;
9
- `, n = ({
10
- color: o,
11
- children: e,
12
- ...p
13
- }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
7
+ `, n = ({ color: o, children: e, ...p }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
14
8
  n.propTypes = {
15
9
  /** Heading content */
16
10
  children: r.node,
@@ -2,15 +2,9 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import s from "styled-components";
3
3
  import r from "prop-types";
4
4
  const m = s.h4`
5
- color: ${({
6
- $color: o
7
- }) => o};
5
+ color: ${({ $color: o }) => o};
8
6
  font-size: 2.88rem;
9
- `, n = ({
10
- color: o,
11
- children: e,
12
- ...p
13
- }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
7
+ `, n = ({ color: o, children: e, ...p }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
14
8
  n.propTypes = {
15
9
  /** Heading content */
16
10
  children: r.node,
@@ -2,15 +2,9 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import s from "styled-components";
3
3
  import r from "prop-types";
4
4
  const m = s.h5`
5
- color: ${({
6
- $color: o
7
- }) => o};
5
+ color: ${({ $color: o }) => o};
8
6
  font-size: 2.24rem;
9
- `, n = ({
10
- color: o,
11
- children: e,
12
- ...p
13
- }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
7
+ `, n = ({ color: o, children: e, ...p }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
14
8
  n.propTypes = {
15
9
  /** Heading content */
16
10
  children: r.node,
@@ -2,15 +2,9 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import s from "styled-components";
3
3
  import r from "prop-types";
4
4
  const m = s.h6`
5
- color: ${({
6
- $color: o
7
- }) => o};
5
+ color: ${({ $color: o }) => o};
8
6
  font-size: 1.92rem;
9
- `, n = ({
10
- color: o,
11
- children: e,
12
- ...p
13
- }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
7
+ `, n = ({ color: o, children: e, ...p }) => /* @__PURE__ */ t(m, { $color: o, ...p, children: e });
14
8
  n.propTypes = {
15
9
  /** Heading content */
16
10
  children: r.node,
@@ -4,14 +4,7 @@ import m from "./H3.js";
4
4
  import t from "./H4.js";
5
5
  import f from "./H5.js";
6
6
  import i from "./H6.js";
7
- const s = {
8
- H1: o,
9
- H2: r,
10
- H3: m,
11
- H4: t,
12
- H5: f,
13
- H6: i
14
- };
7
+ const s = { H1: o, H2: r, H3: m, H4: t, H5: f, H6: i };
15
8
  export {
16
9
  o as H1,
17
10
  r as H2,
@@ -3,20 +3,11 @@ import o from "prop-types";
3
3
  import s from "styled-components";
4
4
  import { black as m } from "../../../colors/black.js";
5
5
  const n = s.p`
6
- font-size: ${({
7
- $size: r
8
- }) => r || "1.92rem"};
9
- color: ${({
10
- $color: r
11
- }) => r || m};
6
+ font-size: ${({ $size: r }) => r || "1.92rem"};
7
+ color: ${({ $color: r }) => r || m};
12
8
  margin: 0;
13
9
  height: auto;
14
- `, c = ({
15
- color: r,
16
- size: t,
17
- children: e,
18
- ...p
19
- }) => /* @__PURE__ */ i(n, { $color: r, $size: t, ...p, children: e });
10
+ `, c = ({ color: r, size: t, children: e, ...p }) => /* @__PURE__ */ i(n, { $color: r, $size: t, ...p, children: e });
20
11
  c.propTypes = {
21
12
  /** Paragraph content */
22
13
  children: o.node,
@@ -10,23 +10,15 @@ const V = i.div`
10
10
  position: absolute;
11
11
  inset: 0;
12
12
  z-index: 2;
13
- border-radius: ${({
14
- $borderRadius: o
15
- }) => o}px;
16
- opacity: ${({
17
- $loaded: o
18
- }) => o ? 0 : 1};
13
+ border-radius: ${({ $borderRadius: o }) => o}px;
14
+ opacity: ${({ $loaded: o }) => o ? 0 : 1};
19
15
  transition: opacity 0.35s ease-out;
20
16
  pointer-events: none;
21
17
  `, j = i.div`
22
18
  position: relative;
23
19
  display: inline-block;
24
- width: ${({
25
- $width: o
26
- }) => o}px;
27
- height: ${({
28
- $height: o
29
- }) => o}px;
20
+ width: ${({ $width: o }) => o}px;
21
+ height: ${({ $height: o }) => o}px;
30
22
 
31
23
  &:fullscreen video {
32
24
  width: 100vw;
@@ -35,14 +27,10 @@ const V = i.div`
35
27
  background: ${y.m900};
36
28
  }
37
29
  `, k = i.video`
38
- border-radius: ${({
39
- $borderRadius: o
40
- }) => o}px;
30
+ border-radius: ${({ $borderRadius: o }) => o}px;
41
31
  width: 100%;
42
32
  height: 100%;
43
- max-width: ${({
44
- width: o
45
- }) => o}px;
33
+ max-width: ${({ width: o }) => o}px;
46
34
  aspect-ratio: 16 / 9;
47
35
  background-color: #000;
48
36
  object-fit: contain;
@@ -61,13 +49,21 @@ const V = i.div`
61
49
  hasShimmer: c = !0,
62
50
  ...u
63
51
  }) => {
64
- const r = s(null), n = s(null), {
65
- volume: m,
66
- showVolume: p
67
- } = g(), [h, f] = b(!1);
52
+ const r = s(null), n = s(null), { volume: m, showVolume: p } = g(), [h, f] = b(!1);
68
53
  return $(r, n, p), /* @__PURE__ */ v(j, { ref: n, $width: d, $height: l, ...u, children: [
69
54
  c && /* @__PURE__ */ e(V, { $loaded: h, $borderRadius: t, children: /* @__PURE__ */ e(w, { borderRadius: `${t}px` }) }),
70
- /* @__PURE__ */ e(k, { $borderRadius: t, ref: r, src: o, poster: a, controls: !0, onLoadedData: () => f(!0), children: "Your browser does not support the video tag." }),
55
+ /* @__PURE__ */ e(
56
+ k,
57
+ {
58
+ $borderRadius: t,
59
+ ref: r,
60
+ src: o,
61
+ poster: a,
62
+ controls: !0,
63
+ onLoadedData: () => f(!0),
64
+ children: "Your browser does not support the video tag."
65
+ }
66
+ ),
71
67
  /* @__PURE__ */ e(x, { volume: m })
72
68
  ] });
73
69
  };
@@ -20,9 +20,7 @@ const o = r.div`
20
20
  align-items: flex-end;
21
21
  `, d = r.div`
22
22
  width: 100%;
23
- height: ${({
24
- $pct: e
25
- }) => e}%;
23
+ height: ${({ $pct: e }) => e}%;
26
24
  background: #fff;
27
25
  border-radius: 0.32rem;
28
26
  transition: height 0.1s ease;
@@ -32,9 +30,7 @@ const o = r.div`
32
30
  font-weight: 500;
33
31
  width: 5.6rem;
34
32
  text-align: center;
35
- `, h = ({
36
- volume: e
37
- }) => {
33
+ `, h = ({ volume: e }) => {
38
34
  if (e === null) return null;
39
35
  const i = Math.round(e);
40
36
  return /* @__PURE__ */ n(o, { "aria-hidden": "true", children: [
@@ -3,7 +3,17 @@ const l = (a, c, r) => {
3
3
  f(() => {
4
4
  const u = (t) => {
5
5
  var d;
6
- if (!["Space", "KeyF", "Escape", "ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "KeyM"].includes(t.code)) return;
6
+ if (![
7
+ "Space",
8
+ "KeyF",
9
+ "Escape",
10
+ "ArrowUp",
11
+ "ArrowDown",
12
+ "ArrowLeft",
13
+ "ArrowRight",
14
+ "KeyM"
15
+ ].includes(t.code))
16
+ return;
7
17
  const n = t.target;
8
18
  if (n && (n.tagName === "INPUT" || n.tagName === "TEXTAREA" || n.isContentEditable))
9
19
  return;
@@ -3,10 +3,7 @@ const c = () => {
3
3
  const [u, e] = r(null), t = n(null), o = s((l) => {
4
4
  e(Math.round(l * 100)), clearTimeout(t.current), t.current = setTimeout(() => e(null), 1500);
5
5
  }, []);
6
- return {
7
- volume: u,
8
- showVolume: o
9
- };
6
+ return { volume: u, showVolume: o };
10
7
  };
11
8
  export {
12
9
  c as useVolumeOverlay
@@ -2,9 +2,12 @@ import { useState as c, useRef as u, useEffect as i } from "react";
2
2
  const f = (t, e) => {
3
3
  const [r, n] = c(t), o = u(Date.now());
4
4
  return i(() => {
5
- const s = e - (Date.now() - o.current), a = setTimeout(() => {
6
- n(t), o.current = Date.now();
7
- }, Math.max(0, s));
5
+ const s = e - (Date.now() - o.current), a = setTimeout(
6
+ () => {
7
+ n(t), o.current = Date.now();
8
+ },
9
+ Math.max(0, s)
10
+ );
8
11
  return () => clearTimeout(a);
9
12
  }, [t, e]), r;
10
13
  };
@@ -5,10 +5,7 @@ const w = () => {
5
5
  height: window.innerHeight
6
6
  });
7
7
  return r(() => {
8
- const e = () => n({
9
- width: window.innerWidth,
10
- height: window.innerHeight
11
- });
8
+ const e = () => n({ width: window.innerWidth, height: window.innerHeight });
12
9
  return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
13
10
  }, []), i;
14
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meticulous-ui",
3
- "version": "3.7.12",
3
+ "version": "3.7.13",
4
4
  "license": "ISC",
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
  "types": "./index.d.ts",
@@ -1,7 +1,5 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
- const d = (...e) => ({
3
- children: o
4
- }) => e.reduceRight((r, s) => /* @__PURE__ */ t(s, { children: r }), o);
2
+ const d = (...e) => ({ children: o }) => e.reduceRight((r, s) => /* @__PURE__ */ t(s, { children: r }), o);
5
3
  export {
6
4
  d as default
7
5
  };
@@ -1,8 +1,6 @@
1
1
  import { lazy as l } from "react";
2
2
  const e = (o, t) => ({
3
- [t]: l(() => o().then((a) => ({
4
- default: a[t]
5
- })))
3
+ [t]: l(() => o().then((a) => ({ default: a[t] })))
6
4
  });
7
5
  export {
8
6
  e as default
@@ -2,16 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { Component as i } from "react";
3
3
  class l extends i {
4
4
  constructor(r) {
5
- super(r), this.state = {
6
- hasError: !1,
7
- error: null
8
- };
5
+ super(r), this.state = { hasError: !1, error: null };
9
6
  }
10
7
  static getDerivedStateFromError(r) {
11
- return {
12
- hasError: !0,
13
- error: r
14
- };
8
+ return { hasError: !0, error: r };
15
9
  }
16
10
  render() {
17
11
  if (this.state.hasError) {
@@ -2,11 +2,10 @@ const t = (c) => {
2
2
  let e = !1;
3
3
  return {
4
4
  promise: new Promise((n, a) => {
5
- c.then((r) => e ? a({
6
- canceled: !0
7
- }) : n(r), (r) => a(e ? {
8
- canceled: !0
9
- } : r));
5
+ c.then(
6
+ (r) => e ? a({ canceled: !0 }) : n(r),
7
+ (r) => a(e ? { canceled: !0 } : r)
8
+ );
10
9
  }),
11
10
  cancel: () => {
12
11
  e = !0;
@@ -1,17 +1,14 @@
1
1
  const p = () => {
2
2
  const u = {};
3
- return {
4
- subscribe: (s, c) => {
5
- var b;
6
- return ((b = u[s]) != null ? b : u[s] = []).push(c), () => {
7
- u[s] = u[s].filter((r) => r !== c);
8
- };
9
- },
10
- publish: (s, ...c) => {
11
- var b;
12
- ((b = u[s]) != null ? b : []).forEach((r) => r(...c));
13
- }
14
- };
3
+ return { subscribe: (s, c) => {
4
+ var b;
5
+ return ((b = u[s]) != null ? b : u[s] = []).push(c), () => {
6
+ u[s] = u[s].filter((r) => r !== c);
7
+ };
8
+ }, publish: (s, ...c) => {
9
+ var b;
10
+ ((b = u[s]) != null ? b : []).forEach((r) => r(...c));
11
+ } };
15
12
  };
16
13
  export {
17
14
  p as default
@@ -1,7 +1,6 @@
1
- const r = (t, o = "en-US") => typeof t != "number" ? t : new Intl.NumberFormat(o, {
2
- notation: "compact",
3
- compactDisplay: "short"
4
- }).format(t);
1
+ const r = (t, o = "en-US") => typeof t != "number" ? t : new Intl.NumberFormat(o, { notation: "compact", compactDisplay: "short" }).format(
2
+ t
3
+ );
5
4
  export {
6
5
  r as default
7
6
  };
@@ -1,7 +1,4 @@
1
- const n = (r, e = "USD", t = "en-US") => typeof r != "number" ? r : new Intl.NumberFormat(t, {
2
- style: "currency",
3
- currency: e
4
- }).format(r);
1
+ const n = (r, e = "USD", t = "en-US") => typeof r != "number" ? r : new Intl.NumberFormat(t, { style: "currency", currency: e }).format(r);
5
2
  export {
6
3
  n as default
7
4
  };