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.
- package/components/Button/Button.js +46 -67
- package/components/Carousel/Carousel.js +127 -72
- package/components/DatePicker/DatePicker.js +181 -142
- package/components/DatePicker/constants.js +14 -1
- package/components/DatePicker/utils.js +1 -5
- package/components/Dropdown/Dropdown.js +114 -80
- package/components/Glass/Glass.js +2 -8
- package/components/Icons/Add.js +44 -11
- package/components/Icons/AddCircle.js +29 -8
- package/components/Icons/AddCircleFilled.js +20 -5
- package/components/Icons/ArrowDown.js +20 -5
- package/components/Icons/ArrowLeft.js +21 -5
- package/components/Icons/ArrowRight.js +21 -5
- package/components/Icons/ArrowUp.js +20 -5
- package/components/Icons/BagFilled.js +20 -5
- package/components/Icons/BagOutline.js +30 -8
- package/components/Icons/BellFilled.js +31 -8
- package/components/Icons/BellOffFilled.js +40 -9
- package/components/Icons/BellOffOutline.js +42 -9
- package/components/Icons/BellOutline.js +33 -8
- package/components/Icons/BookmarkFilled.js +23 -10
- package/components/Icons/BookmarkOutline.js +20 -5
- package/components/Icons/BoxCoveredFilled.js +41 -10
- package/components/Icons/BoxCoveredOutline.js +31 -8
- package/components/Icons/BoxFilled.js +34 -9
- package/components/Icons/BoxOutline.js +31 -8
- package/components/Icons/CalendarDays.js +20 -5
- package/components/Icons/CalendarLinesPen.js +21 -5
- package/components/Icons/CartCheckFilled.js +36 -9
- package/components/Icons/CartCheckOutline.js +46 -10
- package/components/Icons/CartCrossFilled.js +36 -9
- package/components/Icons/CartCrossOutline.js +45 -10
- package/components/Icons/CartFilled.js +34 -9
- package/components/Icons/CartMinusFilled.js +36 -9
- package/components/Icons/CartMinusOutline.js +47 -11
- package/components/Icons/CartOutline.js +46 -10
- package/components/Icons/CartPlusFilled.js +36 -9
- package/components/Icons/CartPlusOutline.js +45 -10
- package/components/Icons/Check.js +21 -5
- package/components/Icons/CheckDouble.js +21 -5
- package/components/Icons/ChevronDown.js +21 -5
- package/components/Icons/ChevronLeft.js +21 -5
- package/components/Icons/ChevronRight.js +21 -5
- package/components/Icons/ChevronUp.js +21 -5
- package/components/Icons/ClockCircleOutline.js +24 -8
- package/components/Icons/ClockSquareOutline.js +31 -8
- package/components/Icons/Close.js +18 -5
- package/components/Icons/CloseCircleFilled.js +20 -5
- package/components/Icons/CloseCircleOutline.js +21 -5
- package/components/Icons/CommentBubbleFilled.js +23 -10
- package/components/Icons/CommentBubbleOutline.js +23 -10
- package/components/Icons/CommentFilled.js +23 -10
- package/components/Icons/CommentLineFilled.js +23 -10
- package/components/Icons/CommentLineOutline.js +23 -10
- package/components/Icons/CommentOutline.js +23 -10
- package/components/Icons/ContactDetailsFilled.js +15 -8
- package/components/Icons/ContactDetailsOutline.js +15 -8
- package/components/Icons/DeliveryTruckFastFilled.js +26 -13
- package/components/Icons/DeliveryTruckFastOutline.js +26 -13
- package/components/Icons/DeliveryTruckLeftFilled.js +22 -9
- package/components/Icons/DeliveryTruckLeftOutline.js +22 -9
- package/components/Icons/DeliveryTruckRightFilled.js +21 -8
- package/components/Icons/DeliveryTruckRightOutline.js +21 -8
- package/components/Icons/DetailsOutline.js +15 -8
- package/components/Icons/DiscordConversation.js +27 -8
- package/components/Icons/DiscordFilled.js +21 -8
- package/components/Icons/DiscordOutline.js +25 -9
- package/components/Icons/DoorClosedFilled.js +20 -5
- package/components/Icons/DoorClosedOutline.js +21 -5
- package/components/Icons/DoorOpenFilled.js +20 -5
- package/components/Icons/DoorOpenOutline.js +21 -5
- package/components/Icons/DotsHorizontalFilled.js +34 -9
- package/components/Icons/DotsHorizontalOutline.js +43 -9
- package/components/Icons/DotsVerticalFilled.js +34 -9
- package/components/Icons/DotsVerticalOutline.js +43 -9
- package/components/Icons/Download.js +27 -8
- package/components/Icons/DownloadBoxFilled.js +20 -5
- package/components/Icons/DownloadBoxOutline.js +36 -9
- package/components/Icons/EditBoxThick.js +21 -5
- package/components/Icons/EditBoxThin.js +33 -8
- package/components/Icons/EmailFilled.js +19 -6
- package/components/Icons/EmailOutline.js +19 -6
- package/components/Icons/ExitArrowInOutline.js +21 -5
- package/components/Icons/ExitArrowOutOutline.js +33 -8
- package/components/Icons/ExitFullScreen.js +19 -5
- package/components/Icons/ExitFullScreenThick.js +19 -5
- package/components/Icons/EyeClosed.js +20 -5
- package/components/Icons/EyeFilled.js +29 -8
- package/components/Icons/EyeOutline.js +33 -8
- package/components/Icons/FacebookFilled.js +19 -6
- package/components/Icons/FacebookMessengerOutline.js +29 -8
- package/components/Icons/FacebookOutline.js +20 -5
- package/components/Icons/FacebookRoundFilled.js +18 -5
- package/components/Icons/Filter.js +17 -10
- package/components/Icons/FilterList.js +21 -5
- package/components/Icons/FilterThickFilled.js +18 -5
- package/components/Icons/FilterThickOutline.js +19 -5
- package/components/Icons/FullScreenArrowThick.js +19 -5
- package/components/Icons/FullScreenArrowThin.js +19 -5
- package/components/Icons/FullScreenExit.js +41 -10
- package/components/Icons/FullScreenFilled.js +20 -5
- package/components/Icons/FullScreenOutline.js +20 -5
- package/components/Icons/HamburgerMenu.js +40 -9
- package/components/Icons/HamburgerSpaced.js +23 -10
- package/components/Icons/HeartFilled.js +18 -5
- package/components/Icons/HeartOutline.js +23 -5
- package/components/Icons/Help.js +21 -5
- package/components/Icons/HelpCircleFilled.js +20 -5
- package/components/Icons/HelpCircleOutline.js +41 -9
- package/components/Icons/HomeFilled.js +20 -5
- package/components/Icons/HomeOutline.js +20 -5
- package/components/Icons/Info.js +27 -8
- package/components/Icons/InfoCircleFilled.js +20 -5
- package/components/Icons/InfoCircleOutline.js +16 -9
- package/components/Icons/InfoSquareFilled.js +20 -5
- package/components/Icons/InfoSquareOutline.js +23 -9
- package/components/Icons/InstagramOuline.js +21 -8
- package/components/Icons/InstagramRoundFilled.js +44 -13
- package/components/Icons/KeyFilled.js +20 -5
- package/components/Icons/KeyInSquareFilled.js +29 -8
- package/components/Icons/KeyInSquareOutline.js +38 -9
- package/components/Icons/KeyOutline.js +31 -8
- package/components/Icons/KeySideSquareFilled.js +29 -8
- package/components/Icons/KeySideSquareOutline.js +20 -5
- package/components/Icons/KeySquareFilled.js +29 -8
- package/components/Icons/KeySquareOutline.js +20 -5
- package/components/Icons/Link.js +31 -8
- package/components/Icons/LinkedinFilled.js +19 -6
- package/components/Icons/LinkedinOutline.js +19 -5
- package/components/Icons/LinkedinRoundFilled.js +19 -6
- package/components/Icons/Loading.js +21 -8
- package/components/Icons/LocationArrowFilled.js +12 -5
- package/components/Icons/LocationArrowOutline.js +21 -5
- package/components/Icons/LocationFilled.js +23 -10
- package/components/Icons/LocationOutline.js +23 -10
- package/components/Icons/LockKeyhole.js +20 -5
- package/components/Icons/LockKeyholeOutline.js +31 -9
- package/components/Icons/LockKeyholeUnlocked.js +20 -5
- package/components/Icons/LockKeyholeUnlockedOutline.js +31 -9
- package/components/Icons/MediaPauseCircleFilled.js +20 -5
- package/components/Icons/MediaPauseCircleOuline.js +36 -9
- package/components/Icons/MediaPauseFilled.js +27 -8
- package/components/Icons/MediaPauseOutline.js +31 -8
- package/components/Icons/MediaPlayCircleFilled.js +20 -5
- package/components/Icons/MediaPlayCircleOutline.js +31 -8
- package/components/Icons/MediaPlayFilled.js +18 -5
- package/components/Icons/MediaPlayOutline.js +20 -5
- package/components/Icons/MediaStopCircleFilled.js +20 -5
- package/components/Icons/MediaStopCircleOutline.js +31 -8
- package/components/Icons/MediaStopFilled.js +18 -5
- package/components/Icons/MediaStopOutline.js +20 -5
- package/components/Icons/Minus.js +21 -5
- package/components/Icons/MinusCircle.js +23 -10
- package/components/Icons/MinusCircleFilled.js +23 -10
- package/components/Icons/MoneyBagOutline.js +46 -10
- package/components/Icons/MoneyBriefcaseFilled.js +20 -5
- package/components/Icons/MoneyBriefcaseOutline.js +38 -9
- package/components/Icons/NoEntry.js +19 -5
- package/components/Icons/NoEntryFilled.js +18 -5
- package/components/Icons/NoEntryOutline.js +21 -8
- package/components/Icons/PaymentCardFilled.js +16 -9
- package/components/Icons/PaymentCardOutline.js +16 -9
- package/components/Icons/PhoneCallingFilled.js +36 -9
- package/components/Icons/PhoneCallingOutline.js +38 -9
- package/components/Icons/PhoneFilled.js +18 -5
- package/components/Icons/PhoneOutline.js +18 -5
- package/components/Icons/Pin.js +21 -5
- package/components/Icons/PinAddFilled.js +17 -10
- package/components/Icons/PinAddOutline.js +17 -10
- package/components/Icons/PinCircleFilled.js +20 -5
- package/components/Icons/PinCircleOutline.js +21 -8
- package/components/Icons/PinFilled.js +18 -5
- package/components/Icons/PinOutline.js +20 -5
- package/components/Icons/PinSubFilled.js +17 -10
- package/components/Icons/PinSubOutline.js +17 -10
- package/components/Icons/PinterestFilled.js +17 -10
- package/components/Icons/PinterestOutline.js +21 -5
- package/components/Icons/ProfileFemaleOutline.js +19 -6
- package/components/Icons/ProfileGroupFilled.js +28 -8
- package/components/Icons/ProfileMaleFilled.js +28 -8
- package/components/Icons/ProfileMaleOutline.js +19 -6
- package/components/Icons/RedditFilled.js +17 -10
- package/components/Icons/RedditOutline.js +43 -10
- package/components/Icons/RedditRoundFilled.js +52 -15
- package/components/Icons/RedditRoundOutline.js +53 -16
- package/components/Icons/RupeeOutlined.js +18 -5
- package/components/Icons/RupeeSign.js +21 -5
- package/components/Icons/SaveFilled.js +23 -10
- package/components/Icons/SaveOutline.js +23 -10
- package/components/Icons/Search.js +23 -10
- package/components/Icons/SettingFilled.js +18 -5
- package/components/Icons/SettingOutline.js +18 -5
- package/components/Icons/ShareAllFilled.js +20 -5
- package/components/Icons/ShareAllOutline.js +39 -11
- package/components/Icons/ShareBoxOutline.js +18 -5
- package/components/Icons/ShareFilled.js +29 -8
- package/components/Icons/ShareOutline.js +32 -8
- package/components/Icons/ShareThickFilled.js +18 -5
- package/components/Icons/ShieldCheckFilled.js +20 -5
- package/components/Icons/ShieldCheckOutline.js +31 -8
- package/components/Icons/ShieldCrossFilled.js +20 -5
- package/components/Icons/ShieldCrossOutline.js +30 -8
- package/components/Icons/ShieldFilled.js +18 -5
- package/components/Icons/ShieldOutline.js +20 -5
- package/components/Icons/ShieldWarningFilled.js +20 -5
- package/components/Icons/ShieldWarningOutline.js +23 -9
- package/components/Icons/SnapchatFilled.js +17 -10
- package/components/Icons/SnapchatOutline.js +20 -5
- package/components/Icons/SortBottomToTop.js +26 -10
- package/components/Icons/SortHorizontal.js +20 -5
- package/components/Icons/SortTopToBottom.js +26 -10
- package/components/Icons/SortVertical.js +20 -5
- package/components/Icons/StarFilled.js +19 -6
- package/components/Icons/StarOutline.js +19 -6
- package/components/Icons/TelegramFilled.js +22 -9
- package/components/Icons/TelegramOutline.js +20 -5
- package/components/Icons/TelegramRoundFilled.js +22 -9
- package/components/Icons/ThumbsDownFilled.js +18 -5
- package/components/Icons/ThumbsDownOutline.js +18 -5
- package/components/Icons/ThumbsUpFilled.js +18 -5
- package/components/Icons/ThumbsUpOutline.js +18 -5
- package/components/Icons/TiktokBox.js +18 -5
- package/components/Icons/TiktokThickFilled.js +21 -8
- package/components/Icons/TiktokThinFilled.js +32 -8
- package/components/Icons/TrashBigFilled.js +23 -10
- package/components/Icons/TrashBigOutline.js +23 -10
- package/components/Icons/TrashFilled.js +27 -8
- package/components/Icons/TrashLinesFilled.js +29 -8
- package/components/Icons/TrashLinesOutline.js +33 -11
- package/components/Icons/TrashOutline.js +31 -9
- package/components/Icons/Upload.js +27 -8
- package/components/Icons/UploadBoxFilled.js +20 -5
- package/components/Icons/UploadBoxOutline.js +36 -9
- package/components/Icons/VolumeFilled.js +30 -11
- package/components/Icons/VolumeMuteFilled.js +30 -11
- package/components/Icons/VolumeMuteOutline.js +30 -11
- package/components/Icons/VolumeOffFilled.js +30 -11
- package/components/Icons/VolumeOffOutline.js +30 -11
- package/components/Icons/VolumeOutline.js +30 -11
- package/components/Icons/WalletFilled.js +23 -10
- package/components/Icons/WalletOutline.js +23 -10
- package/components/Icons/Warning.js +21 -5
- package/components/Icons/WarningCircleFilled.js +18 -5
- package/components/Icons/WarningCircleOutline.js +18 -5
- package/components/Icons/WarningSmall.js +21 -5
- package/components/Icons/WarningTriangleFilled.js +21 -8
- package/components/Icons/WarningTriangleOutline.js +21 -5
- package/components/Icons/WhatsappFilled.js +17 -10
- package/components/Icons/WhatsappOutline.js +20 -5
- package/components/Icons/Youtube.js +18 -5
- package/components/Icons/YoutubeFilled.js +23 -10
- package/components/Icons/YoutubeRoundFilled.js +22 -9
- package/components/Image/Image.js +33 -27
- package/components/Input/Checkbox/Checkbox.js +30 -20
- package/components/Input/FileUploader/FileUploader.js +73 -82
- package/components/Input/Input/Input.js +49 -47
- package/components/Input/Radio/Radio.js +18 -17
- package/components/Input/RadioGroup/RadioGroup.js +33 -16
- package/components/Input/Textarea/SvgIcon.js +1 -7
- package/components/Input/Textarea/Textarea.js +54 -54
- package/components/Loader/Loader.js +18 -29
- package/components/Loader/constants.js +3 -12
- package/components/MenuItem/MenuItem.js +30 -28
- package/components/Modal/Modal.js +58 -37
- package/components/OtpInput/OtpInput.js +28 -28
- package/components/PageLoader/PageLoader.js +13 -9
- package/components/Pagination/Pagination.js +87 -95
- package/components/Ripple/Ripple.js +12 -2
- package/components/RootComponent/RootComponent.js +1 -4
- package/components/Selectbox/Selectbox.js +143 -101
- package/components/Shimmer/Shimmer.js +17 -13
- package/components/Spinner/Spinner.js +29 -22
- package/components/Timer/Timer.js +154 -92
- package/components/Timer/components/TimerRing/TimerRing.js +56 -11
- package/components/Toast/Toast.js +76 -81
- package/components/Typography/Headings/H1.js +2 -8
- package/components/Typography/Headings/H2.js +2 -8
- package/components/Typography/Headings/H3.js +2 -8
- package/components/Typography/Headings/H4.js +2 -8
- package/components/Typography/Headings/H5.js +2 -8
- package/components/Typography/Headings/H6.js +2 -8
- package/components/Typography/Headings/index.js +1 -8
- package/components/Typography/P/P.js +3 -12
- package/components/VideoPlayer/VideoPlayer.js +19 -23
- package/components/VideoPlayer/components/Volumebar/Volumebar.js +2 -6
- package/components/VideoPlayer/useSpacebarToggle.js +11 -1
- package/components/VideoPlayer/useVolumeOverlay.js +1 -4
- package/hooks/useThrottle.js +6 -3
- package/hooks/useWindowSize.js +1 -4
- package/package.json +1 -1
- package/reactUtils/composeProviders.js +1 -3
- package/reactUtils/lazyImport.js +1 -3
- package/reactUtils/withErrorBoundary.js +2 -8
- package/utils/cancelablePromise.js +4 -5
- package/utils/createPubSub.js +9 -12
- package/utils/formatCompactNumber.js +3 -4
- package/utils/formatCurrency.js +1 -4
- package/utils/formatDate.js +3 -5
- package/utils/handleKeyboardNavigation.js +1 -5
- package/utils/isAuthenticated.js +1 -3
- package/utils/logError.js +1 -4
- package/utils/logInfo.js +1 -6
- package/utils/logWarn.js +1 -6
- package/utils/mergeDeep.js +1 -3
- package/utils/multiSort.js +1 -4
- package/utils/scrollToElement.js +1 -4
- package/utils/scrollToTop.js +1 -4
- package/utils/timeAgo.js +1 -3
- package/utils/trackEvent.js +1 -5
- 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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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: ${
|
|
30
|
-
width: ${
|
|
31
|
-
border-radius: ${
|
|
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: ${
|
|
38
|
-
height: ${
|
|
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: ${
|
|
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: ${
|
|
57
|
-
height: ${
|
|
52
|
+
width: ${t(120)}rem;
|
|
53
|
+
height: ${t(120)}rem;
|
|
58
54
|
background: rgba(255, 255, 255, 0.4);
|
|
59
|
-
transform-origin: ${
|
|
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: ${
|
|
67
|
-
height: ${
|
|
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: ${
|
|
73
|
-
height: ${
|
|
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: ${
|
|
88
|
-
height: ${
|
|
81
|
+
width: ${t(50)}rem;
|
|
82
|
+
height: ${t(5.33)}rem;
|
|
89
83
|
background: ${c};
|
|
90
84
|
`, Lt = r.div`
|
|
91
85
|
${_};
|
|
92
|
-
width: ${
|
|
93
|
-
height: ${
|
|
86
|
+
width: ${t(80)}rem;
|
|
87
|
+
height: ${t(4)}rem;
|
|
94
88
|
background: ${kt.m200};
|
|
95
89
|
`, Yt = r.div`
|
|
96
90
|
${_};
|
|
97
|
-
width: ${
|
|
98
|
-
height: ${
|
|
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(${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
165
|
+
border-radius: ${t(50)}rem;
|
|
178
166
|
`, v = r.button`
|
|
179
167
|
position: relative;
|
|
180
|
-
height: ${
|
|
181
|
-
width: ${
|
|
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: ${
|
|
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: ${
|
|
224
|
-
height: ${
|
|
211
|
+
width: ${t(35)}rem;
|
|
212
|
+
height: ${t(35)}rem;
|
|
225
213
|
border-radius: 50%;
|
|
226
214
|
background-color: ${c};
|
|
227
|
-
left: calc(-${
|
|
228
|
-
top: calc(-${
|
|
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(
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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(
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
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(
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
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(
|
|
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(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
};
|