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
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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:
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
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(
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
$
|
|
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
|
-
$
|
|
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
|
-
$
|
|
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(
|
|
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 (![
|
|
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
|
package/hooks/useThrottle.js
CHANGED
|
@@ -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
|
-
|
|
7
|
-
|
|
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
|
};
|
package/hooks/useWindowSize.js
CHANGED
|
@@ -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.
|
|
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
|
};
|
package/reactUtils/lazyImport.js
CHANGED
|
@@ -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(
|
|
6
|
-
canceled: !0
|
|
7
|
-
|
|
8
|
-
|
|
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;
|
package/utils/createPubSub.js
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
const p = () => {
|
|
2
2
|
const u = {};
|
|
3
|
-
return {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
3
|
-
|
|
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
|
};
|
package/utils/formatCurrency.js
CHANGED
|
@@ -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
|
};
|