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
@@ -28,29 +28,36 @@ const k = a`
28
28
  `, S = n.circle`
29
29
  animation: ${u} 1.4s ease-in-out infinite;
30
30
  `, $ = {
31
- small: {
32
- strokeWidth: 6,
33
- $length: "2.4rem"
34
- },
35
- medium: {
36
- strokeWidth: 5,
37
- $length: "3.6rem"
38
- },
39
- large: {
40
- strokeWidth: 5,
41
- $length: "5rem"
42
- }
43
- }, x = ({
44
- color: r = "green",
45
- size: m = "medium",
46
- ...l
47
- }) => {
31
+ small: { strokeWidth: 6, $length: "2.4rem" },
32
+ medium: { strokeWidth: 5, $length: "3.6rem" },
33
+ large: { strokeWidth: 5, $length: "5rem" }
34
+ }, x = ({ color: r = "green", size: m = "medium", ...l }) => {
48
35
  var t, o;
49
- const {
50
- strokeWidth: d,
51
- $length: e
52
- } = $[m], f = [p, g.m600].includes(r) ? r : (o = (t = h[r]) != null ? t : c) == null ? void 0 : o.m500;
53
- return /* @__PURE__ */ s(y, { viewBox: "0 0 50 50", width: e, height: e, role: "status", "aria-label": "Loading", "aria-live": "polite", ...l, children: /* @__PURE__ */ s(S, { cx: "25", cy: "25", r: "20", fill: "none", stroke: f, strokeWidth: d, strokeLinecap: "round" }) });
36
+ const { strokeWidth: d, $length: e } = $[m], f = [p, g.m600].includes(r) ? r : (o = (t = h[r]) != null ? t : c) == null ? void 0 : o.m500;
37
+ return /* @__PURE__ */ s(
38
+ y,
39
+ {
40
+ viewBox: "0 0 50 50",
41
+ width: e,
42
+ height: e,
43
+ role: "status",
44
+ "aria-label": "Loading",
45
+ "aria-live": "polite",
46
+ ...l,
47
+ children: /* @__PURE__ */ s(
48
+ S,
49
+ {
50
+ cx: "25",
51
+ cy: "25",
52
+ r: "20",
53
+ fill: "none",
54
+ stroke: f,
55
+ strokeWidth: d,
56
+ strokeLinecap: "round"
57
+ }
58
+ )
59
+ }
60
+ );
54
61
  };
55
62
  x.propTypes = {
56
63
  /** Color theme key (e.g. `'green'`, `'blue'`) or a raw color value. Defaults to `'green'` */
@@ -13,11 +13,7 @@ import It from "../Icons/MediaPauseFilled.js";
13
13
  import Mt from "../Icons/MediaPlayFilled.js";
14
14
  import { COLOR_MAPPING as Dt } from "./constants.js";
15
15
  import r, { css as h, keyframes as S } from "styled-components";
16
- const t = (i) => ({
17
- $size: w
18
- }) => w / i, q = 1, Ct = 16.67, J = 1.67, Ot = 3.404, zt = ({
19
- $color: i
20
- }) => Dt[i], _ = h`
16
+ const t = (i) => ({ $size: w }) => w / i, q = 1, Ct = 16.67, J = 1.67, Ot = 3.404, zt = ({ $color: i }) => Dt[i], _ = h`
21
17
  position: absolute;
22
18
  bottom: 50%;
23
19
  transform-origin: bottom;
@@ -26,16 +22,16 @@ const t = (i) => ({
26
22
  rotate: var(--hand-rotate);
27
23
  `, _t = r.div`
28
24
  position: relative;
29
- height: ${/* @__PURE__ */ t(q)}rem;
30
- width: ${/* @__PURE__ */ t(q)}rem;
31
- border-radius: ${/* @__PURE__ */ t(Ct)}rem;
25
+ height: ${t(q)}rem;
26
+ width: ${t(q)}rem;
27
+ border-radius: ${t(Ct)}rem;
32
28
  background-color: ${zt};
33
29
  `, Et = r.div`
34
30
  position: absolute;
35
31
  left: 50%;
36
32
  top: 48%;
37
- width: ${/* @__PURE__ */ t(J)}rem;
38
- height: ${/* @__PURE__ */ t(J)}rem;
33
+ width: ${t(J)}rem;
34
+ height: ${t(J)}rem;
39
35
  transform: translate(-50%, -50%);
40
36
  border-radius: 50%;
41
37
  background-color: rgba(0, 0, 0, 0.16);
@@ -47,30 +43,28 @@ const t = (i) => ({
47
43
  transform: translate(-50%, -50%);
48
44
  `, V = r.div`
49
45
  color: ${c};
50
- font-size: ${/* @__PURE__ */ t(13.33)}rem;
46
+ font-size: ${t(13.33)}rem;
51
47
  font-weight: 650;
52
48
  text-align: center;
53
49
  opacity: 0.84;
54
50
  `, Ht = r.span`
55
51
  position: absolute;
56
- width: ${/* @__PURE__ */ t(120)}rem;
57
- height: ${/* @__PURE__ */ t(120)}rem;
52
+ width: ${t(120)}rem;
53
+ height: ${t(120)}rem;
58
54
  background: rgba(255, 255, 255, 0.4);
59
- transform-origin: ${/* @__PURE__ */ t(Ot)}rem;
55
+ transform-origin: ${t(Ot)}rem;
60
56
  border-radius: 2px;
61
- rotate: ${({
62
- $i: i
63
- }) => `${i * 6}deg`};
57
+ rotate: ${({ $i: i }) => `${i * 6}deg`};
64
58
 
65
59
  &:nth-child(5n) {
66
- width: ${/* @__PURE__ */ t(90)}rem;
67
- height: ${/* @__PURE__ */ t(90)}rem;
60
+ width: ${t(90)}rem;
61
+ height: ${t(90)}rem;
68
62
  background: rgba(255, 255, 255, 0.7);
69
63
  }
70
64
 
71
65
  &:nth-child(15n) {
72
- width: ${/* @__PURE__ */ t(50)}rem;
73
- height: ${/* @__PURE__ */ t(130)}rem;
66
+ width: ${t(50)}rem;
67
+ height: ${t(130)}rem;
74
68
  background: rgba(255, 255, 255);
75
69
  }
76
70
  `, Nt = r.div`
@@ -84,18 +78,18 @@ const t = (i) => ({
84
78
  transform: translate(-50%, -50%) rotate(6.7deg);
85
79
  `, Ft = r.div`
86
80
  ${_};
87
- width: ${/* @__PURE__ */ t(50)}rem;
88
- height: ${/* @__PURE__ */ t(5.33)}rem;
81
+ width: ${t(50)}rem;
82
+ height: ${t(5.33)}rem;
89
83
  background: ${c};
90
84
  `, Lt = r.div`
91
85
  ${_};
92
- width: ${/* @__PURE__ */ t(80)}rem;
93
- height: ${/* @__PURE__ */ t(4)}rem;
86
+ width: ${t(80)}rem;
87
+ height: ${t(4)}rem;
94
88
  background: ${kt.m200};
95
89
  `, Yt = r.div`
96
90
  ${_};
97
- width: ${/* @__PURE__ */ t(133.33)}rem;
98
- height: ${/* @__PURE__ */ t(3.64)}rem;
91
+ width: ${t(133.33)}rem;
92
+ height: ${t(3.64)}rem;
99
93
  background: ${At.m800};
100
94
  `, Z = S`
101
95
  from { opacity: 1; transform: scale(1); }
@@ -125,21 +119,19 @@ const t = (i) => ({
125
119
  rgba(0, 0, 0, 0.3) 85%,
126
120
  rgba(0, 0, 0, 0.42) 100%
127
121
  );
128
- ${({
129
- $dismissing: i
130
- }) => i && h`
122
+ ${({ $dismissing: i }) => i && h`
131
123
  animation: ${Z} 0.6s ease-out forwards;
132
124
  `}
133
125
  `, Kt = r.div`
134
126
  position: absolute;
135
127
  left: 50%;
136
- top: calc(${/* @__PURE__ */ t(100 / 12)}rem - ${/* @__PURE__ */ t(55)}rem);
128
+ top: calc(${t(100 / 12)}rem - ${t(55)}rem);
137
129
  display: flex;
138
130
  align-items: center;
139
131
  gap: 0.3em;
140
132
  white-space: nowrap;
141
133
  color: rgba(255, 255, 255, 0.82);
142
- font-size: ${/* @__PURE__ */ t(21)}rem;
134
+ font-size: ${t(21)}rem;
143
135
  font-weight: 600;
144
136
  letter-spacing: 0.05em;
145
137
  padding: 0.22em 0.6em;
@@ -149,9 +141,7 @@ const t = (i) => ({
149
141
  -webkit-backdrop-filter: blur(6px);
150
142
  border: 1px solid rgba(255, 255, 255, 0.12);
151
143
  pointer-events: none;
152
- animation: ${({
153
- $dismissing: i
154
- }) => i ? h`
144
+ animation: ${({ $dismissing: i }) => i ? h`
155
145
  ${Xt} 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards
156
146
  ` : h`
157
147
  ${jt} 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both
@@ -162,11 +152,9 @@ const t = (i) => ({
162
152
  left: 8%;
163
153
  display: flex;
164
154
  align-items: center;
165
- gap: ${/* @__PURE__ */ t(50)}rem;
155
+ gap: ${t(50)}rem;
166
156
 
167
- ${({
168
- $noActions: i
169
- }) => i && h`
157
+ ${({ $noActions: i }) => i && h`
170
158
  pointer-events: none;
171
159
  opacity: 0.5;
172
160
  `}
@@ -174,17 +162,17 @@ const t = (i) => ({
174
162
  position: absolute;
175
163
  bottom: 6%;
176
164
  right: 8%;
177
- border-radius: ${/* @__PURE__ */ t(50)}rem;
165
+ border-radius: ${t(50)}rem;
178
166
  `, v = r.button`
179
167
  position: relative;
180
- height: ${/* @__PURE__ */ t(8.33)}rem;
181
- width: ${/* @__PURE__ */ t(8.33)}rem;
168
+ height: ${t(8.33)}rem;
169
+ width: ${t(8.33)}rem;
182
170
  cursor: pointer;
183
171
  background-color: rgba(0, 0, 0, 0.28);
184
172
  backdrop-filter: blur(6px);
185
173
  -webkit-backdrop-filter: blur(6px);
186
174
  border: 1px solid rgba(255, 255, 255, 0.1);
187
- border-radius: ${/* @__PURE__ */ t(50)}rem;
175
+ border-radius: ${t(50)}rem;
188
176
  padding: 0;
189
177
 
190
178
  &:focus-visible {
@@ -220,12 +208,12 @@ const t = (i) => ({
220
208
  white-space: nowrap;
221
209
  `, re = r.div`
222
210
  position: absolute;
223
- width: ${/* @__PURE__ */ t(35)}rem;
224
- height: ${/* @__PURE__ */ t(35)}rem;
211
+ width: ${t(35)}rem;
212
+ height: ${t(35)}rem;
225
213
  border-radius: 50%;
226
214
  background-color: ${c};
227
- left: calc(-${/* @__PURE__ */ t(70)}rem);
228
- top: calc(-${/* @__PURE__ */ t(100 / 33)}rem - ${/* @__PURE__ */ t(70)}rem);
215
+ left: calc(-${t(70)}rem);
216
+ top: calc(-${t(100 / 33)}rem - ${t(70)}rem);
229
217
  `, oe = r.div`
230
218
  position: absolute;
231
219
  left: 50%;
@@ -235,17 +223,12 @@ const t = (i) => ({
235
223
  rotate: var(--bullet-rotate);
236
224
  transform-origin: 0 0;
237
225
  transition: rotate 0.3s ease;
238
- ${({
239
- $dismissing: i
240
- }) => i && h`
226
+ ${({ $dismissing: i }) => i && h`
241
227
  animation: ${Z} 0.6s ease-out forwards;
242
228
  `}
243
229
  `, $ = () => {
244
230
  }, ie = (i) => () => {
245
- const g = (/* @__PURE__ */ new Date()).toLocaleString("en-Us", {
246
- hour12: !0,
247
- timeZone: i
248
- }).split(", ")[1].split(" ")[0], [A, a, y] = g.split(":").map(Number);
231
+ const g = (/* @__PURE__ */ new Date()).toLocaleString("en-Us", { hour12: !0, timeZone: i }).split(", ")[1].split(" ")[0], [A, a, y] = g.split(":").map(Number);
249
232
  return {
250
233
  second: y * 6,
251
234
  minute: a * 6 + y * 0.1,
@@ -285,10 +268,7 @@ const t = (i) => ({
285
268
  const m = setInterval(() => {
286
269
  const l = /* @__PURE__ */ new Date();
287
270
  nt(l), at((d) => {
288
- const gt = l.toLocaleString("en-Us", {
289
- hour12: !0,
290
- timeZone: g
291
- }).split(", ")[1].split(" ")[0], [ft, Y, B] = gt.split(":").map(Number), $t = B * 6, wt = Y * 6 + B * 0.1, yt = ft % 12 * 30 + Y * 0.5, z = (j, X) => {
271
+ const gt = l.toLocaleString("en-Us", { hour12: !0, timeZone: g }).split(", ")[1].split(" ")[0], [ft, Y, B] = gt.split(":").map(Number), $t = B * 6, wt = Y * 6 + B * 0.1, yt = ft % 12 * 30 + Y * 0.5, z = (j, X) => {
292
272
  const G = j % 360;
293
273
  return j - G + X + (X < G ? 360 : 0);
294
274
  };
@@ -301,20 +281,37 @@ const t = (i) => ({
301
281
  }, 1e3);
302
282
  return () => clearInterval(m);
303
283
  }, []);
304
- const O = R.toLocaleString("en-Us", {
305
- hour12: !0,
306
- timeZone: g
307
- }).split(", ")[1], N = O.split(" ")[0], W = O.split(" ")[1], F = O.split(":").slice(0, 2).join(":"), u = !(Number.isInteger(s) && s > 0), ut = String(Math.floor(s / 60)).padStart(2, "0"), bt = String(s % 60).padStart(2, "0"), ht = `${ut}:${bt}`, L = `${k ? N : F} ${W}`;
284
+ const O = R.toLocaleString("en-Us", { hour12: !0, timeZone: g }).split(", ")[1], N = O.split(" ")[0], W = O.split(" ")[1], F = O.split(":").slice(0, 2).join(":"), u = !(Number.isInteger(s) && s > 0), ut = String(Math.floor(s / 60)).padStart(2, "0"), bt = String(s % 60).padStart(2, "0"), ht = `${ut}:${bt}`, L = `${k ? N : F} ${W}`;
308
285
  return /* @__PURE__ */ p(_t, { $color: i, role: "region", "aria-label": "Clock", $size: o, ...it, children: [
309
- /* @__PURE__ */ e(vt, { borderRadius: `${t(16.67)({
310
- $size: o
311
- })}rem`, "aria-hidden": "true" }),
286
+ /* @__PURE__ */ e(vt, { borderRadius: `${t(16.67)({ $size: o })}rem`, "aria-hidden": "true" }),
312
287
  (!u || f) && /* @__PURE__ */ p(U, { children: [
313
- /* @__PURE__ */ e(Ut, { $dismissing: f, onAnimationEnd: ct, "aria-hidden": "true", children: /* @__PURE__ */ e(St, { progress: s >= 60 ? 1 : s % 60 / 60 }) }),
314
- /* @__PURE__ */ e(oe, { $size: o, style: {
315
- "--bullet-rotate": `${st}deg`
316
- }, $dismissing: f, "aria-hidden": "true", children: /* @__PURE__ */ e(re, { $size: o }) }),
317
- /* @__PURE__ */ e(ee, { role: "timer", "aria-live": "polite", "aria-label": `${s} seconds remaining` })
288
+ /* @__PURE__ */ e(
289
+ Ut,
290
+ {
291
+ $dismissing: f,
292
+ onAnimationEnd: ct,
293
+ "aria-hidden": "true",
294
+ children: /* @__PURE__ */ e(St, { progress: s >= 60 ? 1 : s % 60 / 60 })
295
+ }
296
+ ),
297
+ /* @__PURE__ */ e(
298
+ oe,
299
+ {
300
+ $size: o,
301
+ style: { "--bullet-rotate": `${st}deg` },
302
+ $dismissing: f,
303
+ "aria-hidden": "true",
304
+ children: /* @__PURE__ */ e(re, { $size: o })
305
+ }
306
+ ),
307
+ /* @__PURE__ */ e(
308
+ ee,
309
+ {
310
+ role: "timer",
311
+ "aria-live": "polite",
312
+ "aria-label": `${s} seconds remaining`
313
+ }
314
+ )
318
315
  ] }),
319
316
  w && /* @__PURE__ */ p(U, { children: [
320
317
  /* @__PURE__ */ e(Et, { "aria-hidden": "true", $size: o, children: /* @__PURE__ */ e(Nt, { children: /* @__PURE__ */ e(Wt, { "aria-hidden": "true", children: [...Array(60)].map((m, l) => /* @__PURE__ */ e(Ht, { $i: l, $size: o }, l)) }) }) }),
@@ -322,30 +319,95 @@ const t = (i) => ({
322
319
  /* @__PURE__ */ e(V, { $size: o, "aria-hidden": "true", children: k ? N : F }),
323
320
  /* @__PURE__ */ e(V, { $size: o, "aria-hidden": "true", children: W })
324
321
  ] }) : /* @__PURE__ */ p(Q, { as: "time", dateTime: R.toISOString(), "aria-label": L, children: [
325
- /* @__PURE__ */ e(Ft, { $size: o, style: {
326
- "--hand-rotate": `${I.hour}deg`
327
- }, "aria-hidden": "true" }),
328
- /* @__PURE__ */ e(Lt, { $size: o, style: {
329
- "--hand-rotate": `${I.minute}deg`
330
- }, "aria-hidden": "true" }),
331
- /* @__PURE__ */ e(Yt, { $size: o, style: {
332
- "--hand-rotate": `${I.second}deg`
333
- }, "aria-hidden": "true" })
322
+ /* @__PURE__ */ e(
323
+ Ft,
324
+ {
325
+ $size: o,
326
+ style: { "--hand-rotate": `${I.hour}deg` },
327
+ "aria-hidden": "true"
328
+ }
329
+ ),
330
+ /* @__PURE__ */ e(
331
+ Lt,
332
+ {
333
+ $size: o,
334
+ style: { "--hand-rotate": `${I.minute}deg` },
335
+ "aria-hidden": "true"
336
+ }
337
+ ),
338
+ /* @__PURE__ */ e(
339
+ Yt,
340
+ {
341
+ $size: o,
342
+ style: { "--hand-rotate": `${I.second}deg` },
343
+ "aria-hidden": "true"
344
+ }
345
+ )
334
346
  ] })
335
347
  ] }),
336
- a > 0 && /* @__PURE__ */ p(qt, { $size: o, $noActions: u, role: "group", "aria-label": "Timer controls", children: [
337
- /* @__PURE__ */ e(v, { type: "button", onClick: dt, $size: o, "aria-label": "Stop timer", "aria-disabled": u, children: /* @__PURE__ */ e(Vt, { color: c, size: C, "aria-hidden": "true" }) }),
338
- u || !T ? /* @__PURE__ */ e(v, { type: "button", onClick: mt, $size: o, "aria-label": "Pause timer", "aria-disabled": u, children: /* @__PURE__ */ e(Zt, { color: c, size: C, "aria-hidden": "true" }) }) : /* @__PURE__ */ e(v, { type: "button", onClick: pt, "aria-label": "Resume timer", $size: o, children: /* @__PURE__ */ e(te, { color: c, size: C, "aria-hidden": "true" }) })
339
- ] }),
340
- (!u || f) && /* @__PURE__ */ p(Kt, { $size: o, $dismissing: f, "aria-label": `${s} seconds remaining`, children: [
341
- /* @__PURE__ */ e(Rt, { color: "rgba(255,255,255,0.82)", style: {
342
- width: "1em",
343
- height: "1em",
344
- flexShrink: 0
345
- } }),
346
- ht.split("").map((m, l) => m === ":" ? /* @__PURE__ */ e("span", { children: m }, l) : /* @__PURE__ */ e(Gt, { children: m }, `${l}-${m}`))
347
- ] }),
348
- a > 0 && /* @__PURE__ */ e(Jt, { role: "group", $size: o, "aria-label": "Start timer", children: /* @__PURE__ */ e(v, { type: "button", onClick: lt, $size: o, "aria-label": `Start ${a} second timer`, children: /* @__PURE__ */ e(Qt, { color: c, size: o, "aria-hidden": "true" }) }) })
348
+ a > 0 && /* @__PURE__ */ p(
349
+ qt,
350
+ {
351
+ $size: o,
352
+ $noActions: u,
353
+ role: "group",
354
+ "aria-label": "Timer controls",
355
+ children: [
356
+ /* @__PURE__ */ e(
357
+ v,
358
+ {
359
+ type: "button",
360
+ onClick: dt,
361
+ $size: o,
362
+ "aria-label": "Stop timer",
363
+ "aria-disabled": u,
364
+ children: /* @__PURE__ */ e(Vt, { color: c, size: C, "aria-hidden": "true" })
365
+ }
366
+ ),
367
+ u || !T ? /* @__PURE__ */ e(
368
+ v,
369
+ {
370
+ type: "button",
371
+ onClick: mt,
372
+ $size: o,
373
+ "aria-label": "Pause timer",
374
+ "aria-disabled": u,
375
+ children: /* @__PURE__ */ e(Zt, { color: c, size: C, "aria-hidden": "true" })
376
+ }
377
+ ) : /* @__PURE__ */ e(v, { type: "button", onClick: pt, "aria-label": "Resume timer", $size: o, children: /* @__PURE__ */ e(te, { color: c, size: C, "aria-hidden": "true" }) })
378
+ ]
379
+ }
380
+ ),
381
+ (!u || f) && /* @__PURE__ */ p(
382
+ Kt,
383
+ {
384
+ $size: o,
385
+ $dismissing: f,
386
+ "aria-label": `${s} seconds remaining`,
387
+ children: [
388
+ /* @__PURE__ */ e(
389
+ Rt,
390
+ {
391
+ color: "rgba(255,255,255,0.82)",
392
+ style: { width: "1em", height: "1em", flexShrink: 0 }
393
+ }
394
+ ),
395
+ ht.split("").map(
396
+ (m, l) => m === ":" ? /* @__PURE__ */ e("span", { children: m }, l) : /* @__PURE__ */ e(Gt, { children: m }, `${l}-${m}`)
397
+ )
398
+ ]
399
+ }
400
+ ),
401
+ a > 0 && /* @__PURE__ */ e(Jt, { role: "group", $size: o, "aria-label": "Start timer", children: /* @__PURE__ */ e(
402
+ v,
403
+ {
404
+ type: "button",
405
+ onClick: lt,
406
+ $size: o,
407
+ "aria-label": `Start ${a} second timer`,
408
+ children: /* @__PURE__ */ e(Qt, { color: c, size: o, "aria-hidden": "true" })
409
+ }
410
+ ) })
349
411
  ] });
350
412
  };
351
413
  ne.propTypes = {
@@ -2,9 +2,7 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
2
  import { useRef as f, useEffect as d } from "react";
3
3
  import s from "../../../../colors/white.js";
4
4
  import u from "styled-components";
5
- const g = u.svg``, i = 33, o = 2 * Math.PI * i, x = ({
6
- progress: t
7
- }) => {
5
+ const g = u.svg``, i = 33, o = 2 * Math.PI * i, x = ({ progress: t }) => {
8
6
  const c = f(null), l = 2 * Math.PI * t, n = 50 + i * Math.cos(l), a = 48 + i * Math.sin(l);
9
7
  return d(() => {
10
8
  const h = o * (1 - t);
@@ -31,15 +29,62 @@ const g = u.svg``, i = 33, o = 2 * Math.PI * i, x = ({
31
29
  ] })
32
30
  ] }),
33
31
  /* @__PURE__ */ r("g", { transform: "rotate(-90, 50, 48)", children: [
34
- t > 5e-3 && /* @__PURE__ */ e("circle", { cx: 50, cy: 48, r: i, stroke: "rgba(255,255,255,0.09)", strokeWidth: 6, fill: "none", strokeDasharray: o, strokeDashoffset: o * (1 - t), filter: "url(#ambient-glow)" }),
32
+ t > 5e-3 && /* @__PURE__ */ e(
33
+ "circle",
34
+ {
35
+ cx: 50,
36
+ cy: 48,
37
+ r: i,
38
+ stroke: "rgba(255,255,255,0.09)",
39
+ strokeWidth: 6,
40
+ fill: "none",
41
+ strokeDasharray: o,
42
+ strokeDashoffset: o * (1 - t),
43
+ filter: "url(#ambient-glow)"
44
+ }
45
+ ),
35
46
  /* @__PURE__ */ e("circle", { cx: 50, cy: 48, r: i, stroke: "rgba(0,0,0,0.28)", strokeWidth: 4, fill: "none" }),
36
- /* @__PURE__ */ e("circle", { cx: 50, cy: 48, r: i, stroke: "rgba(255,255,255,.14)", strokeWidth: 1.4, fill: "none" }),
37
- /* @__PURE__ */ e("circle", { ref: c, cx: 50, cy: 48, r: i, stroke: s, strokeWidth: 2, fill: "none", strokeLinecap: "round", strokeDasharray: o, strokeDashoffset: o, filter: "url(#arc-glow)", style: {
38
- transition: "stroke-dashoffset 0.2s linear"
39
- } }),
40
- t > 5e-3 && /* @__PURE__ */ e("circle", { cx: n, cy: a, r: 1.8, fill: s, filter: "url(#head-glow)", style: {
41
- transition: "cx 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), cy 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)"
42
- } })
47
+ /* @__PURE__ */ e(
48
+ "circle",
49
+ {
50
+ cx: 50,
51
+ cy: 48,
52
+ r: i,
53
+ stroke: "rgba(255,255,255,.14)",
54
+ strokeWidth: 1.4,
55
+ fill: "none"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ e(
59
+ "circle",
60
+ {
61
+ ref: c,
62
+ cx: 50,
63
+ cy: 48,
64
+ r: i,
65
+ stroke: s,
66
+ strokeWidth: 2,
67
+ fill: "none",
68
+ strokeLinecap: "round",
69
+ strokeDasharray: o,
70
+ strokeDashoffset: o,
71
+ filter: "url(#arc-glow)",
72
+ style: { transition: "stroke-dashoffset 0.2s linear" }
73
+ }
74
+ ),
75
+ t > 5e-3 && /* @__PURE__ */ e(
76
+ "circle",
77
+ {
78
+ cx: n,
79
+ cy: a,
80
+ r: 1.8,
81
+ fill: s,
82
+ filter: "url(#head-glow)",
83
+ style: {
84
+ transition: "cx 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), cy 0.35s cubic-bezier(0.34, 1.56, 0.64, 1)"
85
+ }
86
+ }
87
+ )
43
88
  ] })
44
89
  ] });
45
90
  };