meticulous-ui 3.7.11 → 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/cjs/colors/amber.cjs +1 -19
- package/cjs/colors/black.cjs +1 -16
- package/cjs/colors/blue.cjs +1 -20
- package/cjs/colors/blueGray.cjs +1 -15
- package/cjs/colors/brown.cjs +1 -16
- package/cjs/colors/cider.cjs +1 -15
- package/cjs/colors/colorMap.cjs +1 -51
- package/cjs/colors/cyan.cjs +1 -19
- package/cjs/colors/deepOrange.cjs +1 -19
- package/cjs/colors/deepPurple.cjs +1 -19
- package/cjs/colors/green.cjs +1 -20
- package/cjs/colors/grey.cjs +1 -16
- package/cjs/colors/indigo.cjs +1 -20
- package/cjs/colors/lightBlue.cjs +1 -19
- package/cjs/colors/lightGreen.cjs +1 -19
- package/cjs/colors/lime.cjs +1 -19
- package/cjs/colors/orange.cjs +1 -20
- package/cjs/colors/pink.cjs +1 -20
- package/cjs/colors/purple.cjs +1 -20
- package/cjs/colors/red.cjs +1 -20
- package/cjs/colors/teal.cjs +1 -20
- package/cjs/colors/violet.cjs +1 -20
- package/cjs/colors/white.cjs +1 -5
- package/cjs/colors/yellow.cjs +1 -20
- package/cjs/components/Button/Button.cjs +20 -155
- package/cjs/components/Button/constants.cjs +1 -33
- package/cjs/components/Button/index.cjs +1 -4
- package/cjs/components/Carousel/Carousel.cjs +24 -250
- package/cjs/components/Carousel/index.cjs +1 -4
- package/cjs/components/DatePicker/DatePicker.cjs +48 -373
- package/cjs/components/DatePicker/constants.cjs +1 -11
- package/cjs/components/DatePicker/index.cjs +1 -4
- package/cjs/components/DatePicker/utils.cjs +1 -44
- package/cjs/components/Dropdown/Dropdown.cjs +34 -363
- package/cjs/components/Dropdown/constants.cjs +1 -5
- package/cjs/components/Dropdown/index.cjs +1 -4
- package/cjs/components/Glass/Glass.cjs +3 -17
- package/cjs/components/Glass/index.cjs +1 -4
- package/cjs/components/Icons/Add.cjs +1 -15
- package/cjs/components/Icons/AddCircle.cjs +1 -12
- package/cjs/components/Icons/AddCircleFilled.cjs +1 -9
- package/cjs/components/Icons/ArrowDown.cjs +1 -9
- package/cjs/components/Icons/ArrowLeft.cjs +1 -9
- package/cjs/components/Icons/ArrowRight.cjs +1 -9
- package/cjs/components/Icons/ArrowUp.cjs +1 -9
- package/cjs/components/Icons/BagFilled.cjs +1 -9
- package/cjs/components/Icons/BagOutline.cjs +1 -12
- package/cjs/components/Icons/BellFilled.cjs +1 -12
- package/cjs/components/Icons/BellOffFilled.cjs +1 -13
- package/cjs/components/Icons/BellOffOutline.cjs +1 -13
- package/cjs/components/Icons/BellOutline.cjs +1 -12
- package/cjs/components/Icons/BookmarkFilled.cjs +1 -14
- package/cjs/components/Icons/BookmarkOutline.cjs +1 -9
- package/cjs/components/Icons/BoxCoveredFilled.cjs +1 -14
- package/cjs/components/Icons/BoxCoveredOutline.cjs +1 -12
- package/cjs/components/Icons/BoxFilled.cjs +1 -13
- package/cjs/components/Icons/BoxOutline.cjs +1 -12
- package/cjs/components/Icons/CalendarDays.cjs +1 -9
- package/cjs/components/Icons/CalendarLinesPen.cjs +1 -9
- package/cjs/components/Icons/CartCheckFilled.cjs +1 -13
- package/cjs/components/Icons/CartCheckOutline.cjs +1 -14
- package/cjs/components/Icons/CartCrossFilled.cjs +1 -13
- package/cjs/components/Icons/CartCrossOutline.cjs +1 -14
- package/cjs/components/Icons/CartFilled.cjs +1 -13
- package/cjs/components/Icons/CartMinusFilled.cjs +1 -13
- package/cjs/components/Icons/CartMinusOutline.cjs +1 -15
- package/cjs/components/Icons/CartOutline.cjs +1 -14
- package/cjs/components/Icons/CartPlusFilled.cjs +1 -13
- package/cjs/components/Icons/CartPlusOutline.cjs +1 -14
- package/cjs/components/Icons/Check.cjs +1 -9
- package/cjs/components/Icons/CheckDouble.cjs +1 -9
- package/cjs/components/Icons/ChevronDown.cjs +1 -9
- package/cjs/components/Icons/ChevronLeft.cjs +1 -9
- package/cjs/components/Icons/ChevronRight.cjs +1 -9
- package/cjs/components/Icons/ChevronUp.cjs +1 -9
- package/cjs/components/Icons/ClockCircleOutline.cjs +1 -12
- package/cjs/components/Icons/ClockSquareOutline.cjs +1 -12
- package/cjs/components/Icons/Close.cjs +1 -9
- package/cjs/components/Icons/CloseCircleFilled.cjs +1 -9
- package/cjs/components/Icons/CloseCircleOutline.cjs +1 -9
- package/cjs/components/Icons/CommentBubbleFilled.cjs +1 -14
- package/cjs/components/Icons/CommentBubbleOutline.cjs +1 -14
- package/cjs/components/Icons/CommentFilled.cjs +1 -14
- package/cjs/components/Icons/CommentLineFilled.cjs +1 -14
- package/cjs/components/Icons/CommentLineOutline.cjs +1 -14
- package/cjs/components/Icons/CommentOutline.cjs +1 -14
- package/cjs/components/Icons/ContactDetailsFilled.cjs +1 -12
- package/cjs/components/Icons/ContactDetailsOutline.cjs +1 -12
- package/cjs/components/Icons/DeliveryTruckFastFilled.cjs +1 -17
- package/cjs/components/Icons/DeliveryTruckFastOutline.cjs +1 -17
- package/cjs/components/Icons/DeliveryTruckLeftFilled.cjs +4 -12
- package/cjs/components/Icons/DeliveryTruckLeftOutline.cjs +5 -12
- package/cjs/components/Icons/DeliveryTruckRightFilled.cjs +1 -12
- package/cjs/components/Icons/DeliveryTruckRightOutline.cjs +1 -12
- package/cjs/components/Icons/DetailsOutline.cjs +1 -12
- package/cjs/components/Icons/DiscordConversation.cjs +1 -12
- package/cjs/components/Icons/DiscordFilled.cjs +1 -12
- package/cjs/components/Icons/DiscordOutline.cjs +1 -13
- package/cjs/components/Icons/DoorClosedFilled.cjs +1 -9
- package/cjs/components/Icons/DoorClosedOutline.cjs +1 -9
- package/cjs/components/Icons/DoorOpenFilled.cjs +1 -9
- package/cjs/components/Icons/DoorOpenOutline.cjs +1 -9
- package/cjs/components/Icons/DotsHorizontalFilled.cjs +1 -13
- package/cjs/components/Icons/DotsHorizontalOutline.cjs +1 -13
- package/cjs/components/Icons/DotsVerticalFilled.cjs +1 -13
- package/cjs/components/Icons/DotsVerticalOutline.cjs +1 -13
- package/cjs/components/Icons/Download.cjs +1 -12
- package/cjs/components/Icons/DownloadBoxFilled.cjs +1 -9
- package/cjs/components/Icons/DownloadBoxOutline.cjs +1 -13
- package/cjs/components/Icons/EditBoxThick.cjs +1 -9
- package/cjs/components/Icons/EditBoxThin.cjs +1 -12
- package/cjs/components/Icons/EmailFilled.cjs +10 -9
- package/cjs/components/Icons/EmailOutline.cjs +13 -9
- package/cjs/components/Icons/ExitArrowInOutline.cjs +1 -9
- package/cjs/components/Icons/ExitArrowOutOutline.cjs +1 -12
- package/cjs/components/Icons/ExitFullScreen.cjs +1 -9
- package/cjs/components/Icons/ExitFullScreenThick.cjs +1 -9
- package/cjs/components/Icons/EyeClosed.cjs +1 -9
- package/cjs/components/Icons/EyeFilled.cjs +1 -12
- package/cjs/components/Icons/EyeOutline.cjs +1 -12
- package/cjs/components/Icons/FacebookFilled.cjs +2 -9
- package/cjs/components/Icons/FacebookMessengerOutline.cjs +1 -12
- package/cjs/components/Icons/FacebookOutline.cjs +1 -9
- package/cjs/components/Icons/FacebookRoundFilled.cjs +1 -9
- package/cjs/components/Icons/Filter.cjs +1 -14
- package/cjs/components/Icons/FilterList.cjs +1 -9
- package/cjs/components/Icons/FilterThickFilled.cjs +1 -9
- package/cjs/components/Icons/FilterThickOutline.cjs +1 -9
- package/cjs/components/Icons/FullScreenArrowThick.cjs +1 -9
- package/cjs/components/Icons/FullScreenArrowThin.cjs +1 -9
- package/cjs/components/Icons/FullScreenExit.cjs +1 -14
- package/cjs/components/Icons/FullScreenFilled.cjs +1 -9
- package/cjs/components/Icons/FullScreenOutline.cjs +1 -9
- package/cjs/components/Icons/HamburgerMenu.cjs +1 -13
- package/cjs/components/Icons/HamburgerSpaced.cjs +1 -14
- package/cjs/components/Icons/HeartFilled.cjs +1 -9
- package/cjs/components/Icons/HeartOutline.cjs +1 -9
- package/cjs/components/Icons/Help.cjs +1 -9
- package/cjs/components/Icons/HelpCircleFilled.cjs +1 -9
- package/cjs/components/Icons/HelpCircleOutline.cjs +1 -13
- package/cjs/components/Icons/HomeFilled.cjs +1 -9
- package/cjs/components/Icons/HomeOutline.cjs +1 -9
- package/cjs/components/Icons/Info.cjs +1 -12
- package/cjs/components/Icons/InfoCircleFilled.cjs +1 -9
- package/cjs/components/Icons/InfoCircleOutline.cjs +1 -13
- package/cjs/components/Icons/InfoSquareFilled.cjs +1 -9
- package/cjs/components/Icons/InfoSquareOutline.cjs +1 -13
- package/cjs/components/Icons/InstagramOuline.cjs +1 -12
- package/cjs/components/Icons/InstagramRoundFilled.cjs +5 -14
- package/cjs/components/Icons/KeyFilled.cjs +1 -9
- package/cjs/components/Icons/KeyInSquareFilled.cjs +1 -12
- package/cjs/components/Icons/KeyInSquareOutline.cjs +1 -13
- package/cjs/components/Icons/KeyOutline.cjs +1 -12
- package/cjs/components/Icons/KeySideSquareFilled.cjs +1 -12
- package/cjs/components/Icons/KeySideSquareOutline.cjs +1 -9
- package/cjs/components/Icons/KeySquareFilled.cjs +1 -12
- package/cjs/components/Icons/KeySquareOutline.cjs +1 -9
- package/cjs/components/Icons/Link.cjs +1 -12
- package/cjs/components/Icons/LinkedinFilled.cjs +4 -9
- package/cjs/components/Icons/LinkedinOutline.cjs +1 -9
- package/cjs/components/Icons/LinkedinRoundFilled.cjs +5 -9
- package/cjs/components/Icons/Loading.cjs +1 -12
- package/cjs/components/Icons/LocationArrowFilled.cjs +1 -9
- package/cjs/components/Icons/LocationArrowOutline.cjs +1 -9
- package/cjs/components/Icons/LocationFilled.cjs +1 -14
- package/cjs/components/Icons/LocationOutline.cjs +1 -14
- package/cjs/components/Icons/LockKeyhole.cjs +1 -9
- package/cjs/components/Icons/LockKeyholeOutline.cjs +1 -13
- package/cjs/components/Icons/LockKeyholeUnlocked.cjs +1 -9
- package/cjs/components/Icons/LockKeyholeUnlockedOutline.cjs +1 -13
- package/cjs/components/Icons/MediaPauseCircleFilled.cjs +1 -9
- package/cjs/components/Icons/MediaPauseCircleOuline.cjs +1 -13
- package/cjs/components/Icons/MediaPauseFilled.cjs +1 -12
- package/cjs/components/Icons/MediaPauseOutline.cjs +1 -12
- package/cjs/components/Icons/MediaPlayCircleFilled.cjs +1 -9
- package/cjs/components/Icons/MediaPlayCircleOutline.cjs +1 -12
- package/cjs/components/Icons/MediaPlayFilled.cjs +1 -9
- package/cjs/components/Icons/MediaPlayOutline.cjs +1 -9
- package/cjs/components/Icons/MediaStopCircleFilled.cjs +1 -9
- package/cjs/components/Icons/MediaStopCircleOutline.cjs +1 -12
- package/cjs/components/Icons/MediaStopFilled.cjs +1 -9
- package/cjs/components/Icons/MediaStopOutline.cjs +1 -9
- package/cjs/components/Icons/Minus.cjs +1 -9
- package/cjs/components/Icons/MinusCircle.cjs +1 -14
- package/cjs/components/Icons/MinusCircleFilled.cjs +1 -14
- package/cjs/components/Icons/MoneyBagOutline.cjs +1 -14
- package/cjs/components/Icons/MoneyBriefcaseFilled.cjs +1 -9
- package/cjs/components/Icons/MoneyBriefcaseOutline.cjs +1 -13
- package/cjs/components/Icons/NoEntry.cjs +1 -9
- package/cjs/components/Icons/NoEntryFilled.cjs +1 -9
- package/cjs/components/Icons/NoEntryOutline.cjs +1 -12
- package/cjs/components/Icons/PaymentCardFilled.cjs +1 -13
- package/cjs/components/Icons/PaymentCardOutline.cjs +1 -13
- package/cjs/components/Icons/PhoneCallingFilled.cjs +1 -13
- package/cjs/components/Icons/PhoneCallingOutline.cjs +1 -13
- package/cjs/components/Icons/PhoneFilled.cjs +1 -9
- package/cjs/components/Icons/PhoneOutline.cjs +1 -9
- package/cjs/components/Icons/Pin.cjs +1 -9
- package/cjs/components/Icons/PinAddFilled.cjs +1 -14
- package/cjs/components/Icons/PinAddOutline.cjs +1 -14
- package/cjs/components/Icons/PinCircleFilled.cjs +1 -9
- package/cjs/components/Icons/PinCircleOutline.cjs +1 -12
- package/cjs/components/Icons/PinFilled.cjs +1 -9
- package/cjs/components/Icons/PinOutline.cjs +1 -9
- package/cjs/components/Icons/PinSubFilled.cjs +1 -14
- package/cjs/components/Icons/PinSubOutline.cjs +1 -14
- package/cjs/components/Icons/PinterestFilled.cjs +1 -14
- package/cjs/components/Icons/PinterestOutline.cjs +1 -9
- package/cjs/components/Icons/ProfileFemaleOutline.cjs +13 -9
- package/cjs/components/Icons/ProfileGroupFilled.cjs +1 -12
- package/cjs/components/Icons/ProfileMaleFilled.cjs +1 -12
- package/cjs/components/Icons/ProfileMaleOutline.cjs +14 -9
- package/cjs/components/Icons/RedditFilled.cjs +1 -14
- package/cjs/components/Icons/RedditOutline.cjs +1 -14
- package/cjs/components/Icons/RedditRoundFilled.cjs +19 -15
- package/cjs/components/Icons/RedditRoundOutline.cjs +23 -15
- package/cjs/components/Icons/RupeeOutlined.cjs +1 -9
- package/cjs/components/Icons/RupeeSign.cjs +1 -9
- package/cjs/components/Icons/SaveFilled.cjs +1 -14
- package/cjs/components/Icons/SaveOutline.cjs +1 -14
- package/cjs/components/Icons/Search.cjs +1 -14
- package/cjs/components/Icons/SettingFilled.cjs +1 -9
- package/cjs/components/Icons/SettingOutline.cjs +1 -9
- package/cjs/components/Icons/ShareAllFilled.cjs +1 -9
- package/cjs/components/Icons/ShareAllOutline.cjs +1 -15
- package/cjs/components/Icons/ShareBoxOutline.cjs +1 -9
- package/cjs/components/Icons/ShareFilled.cjs +1 -12
- package/cjs/components/Icons/ShareOutline.cjs +1 -12
- package/cjs/components/Icons/ShareThickFilled.cjs +1 -9
- package/cjs/components/Icons/ShieldCheckFilled.cjs +1 -9
- package/cjs/components/Icons/ShieldCheckOutline.cjs +1 -12
- package/cjs/components/Icons/ShieldCrossFilled.cjs +1 -9
- package/cjs/components/Icons/ShieldCrossOutline.cjs +1 -12
- package/cjs/components/Icons/ShieldFilled.cjs +1 -9
- package/cjs/components/Icons/ShieldOutline.cjs +1 -9
- package/cjs/components/Icons/ShieldWarningFilled.cjs +1 -9
- package/cjs/components/Icons/ShieldWarningOutline.cjs +1 -13
- package/cjs/components/Icons/SnapchatFilled.cjs +1 -14
- package/cjs/components/Icons/SnapchatOutline.cjs +1 -9
- package/cjs/components/Icons/SortBottomToTop.cjs +1 -14
- package/cjs/components/Icons/SortHorizontal.cjs +1 -9
- package/cjs/components/Icons/SortTopToBottom.cjs +1 -14
- package/cjs/components/Icons/SortVertical.cjs +1 -9
- package/cjs/components/Icons/StarFilled.cjs +6 -9
- package/cjs/components/Icons/StarOutline.cjs +8 -9
- package/cjs/components/Icons/TelegramFilled.cjs +3 -12
- package/cjs/components/Icons/TelegramOutline.cjs +1 -9
- package/cjs/components/Icons/TelegramRoundFilled.cjs +3 -12
- package/cjs/components/Icons/ThumbsDownFilled.cjs +1 -9
- package/cjs/components/Icons/ThumbsDownOutline.cjs +1 -9
- package/cjs/components/Icons/ThumbsUpFilled.cjs +1 -9
- package/cjs/components/Icons/ThumbsUpOutline.cjs +1 -9
- package/cjs/components/Icons/TiktokBox.cjs +1 -9
- package/cjs/components/Icons/TiktokThickFilled.cjs +1 -12
- package/cjs/components/Icons/TiktokThinFilled.cjs +1 -12
- package/cjs/components/Icons/TrashBigFilled.cjs +1 -14
- package/cjs/components/Icons/TrashBigOutline.cjs +1 -14
- package/cjs/components/Icons/TrashFilled.cjs +1 -12
- package/cjs/components/Icons/TrashLinesFilled.cjs +1 -12
- package/cjs/components/Icons/TrashLinesOutline.cjs +1 -15
- package/cjs/components/Icons/TrashOutline.cjs +1 -13
- package/cjs/components/Icons/Upload.cjs +1 -12
- package/cjs/components/Icons/UploadBoxFilled.cjs +1 -9
- package/cjs/components/Icons/UploadBoxOutline.cjs +1 -13
- package/cjs/components/Icons/VolumeFilled.cjs +1 -15
- package/cjs/components/Icons/VolumeMuteFilled.cjs +1 -15
- package/cjs/components/Icons/VolumeMuteOutline.cjs +1 -15
- package/cjs/components/Icons/VolumeOffFilled.cjs +1 -15
- package/cjs/components/Icons/VolumeOffOutline.cjs +1 -15
- package/cjs/components/Icons/VolumeOutline.cjs +1 -15
- package/cjs/components/Icons/WalletFilled.cjs +1 -14
- package/cjs/components/Icons/WalletOutline.cjs +1 -14
- package/cjs/components/Icons/Warning.cjs +1 -9
- package/cjs/components/Icons/WarningCircleFilled.cjs +1 -9
- package/cjs/components/Icons/WarningCircleOutline.cjs +1 -9
- package/cjs/components/Icons/WarningSmall.cjs +1 -9
- package/cjs/components/Icons/WarningTriangleFilled.cjs +1 -12
- package/cjs/components/Icons/WarningTriangleOutline.cjs +1 -9
- package/cjs/components/Icons/WhatsappFilled.cjs +1 -14
- package/cjs/components/Icons/WhatsappOutline.cjs +1 -9
- package/cjs/components/Icons/Youtube.cjs +1 -9
- package/cjs/components/Icons/YoutubeFilled.cjs +1 -14
- package/cjs/components/Icons/YoutubeRoundFilled.cjs +3 -12
- package/cjs/components/Icons/index.cjs +1 -740
- package/cjs/components/Image/Image.cjs +13 -69
- package/cjs/components/Image/index.cjs +1 -4
- package/cjs/components/Input/Checkbox/Checkbox.cjs +9 -130
- package/cjs/components/Input/Checkbox/index.cjs +1 -4
- package/cjs/components/Input/FileUploader/FileUploader.cjs +22 -182
- package/cjs/components/Input/FileUploader/constants.cjs +1 -33
- package/cjs/components/Input/FileUploader/index.cjs +1 -4
- package/cjs/components/Input/Input/Input.cjs +21 -186
- package/cjs/components/Input/Input/index.cjs +1 -4
- package/cjs/components/Input/Radio/Radio.cjs +11 -61
- package/cjs/components/Input/RadioGroup/RadioGroup.cjs +5 -93
- package/cjs/components/Input/RadioGroup/index.cjs +1 -4
- package/cjs/components/Input/Textarea/SvgIcon.cjs +1 -16
- package/cjs/components/Input/Textarea/Textarea.cjs +20 -199
- package/cjs/components/Input/Textarea/index.cjs +1 -4
- package/cjs/components/Loader/Loader.cjs +13 -103
- package/cjs/components/Loader/constants.cjs +1 -29
- package/cjs/components/Loader/index.cjs +1 -4
- package/cjs/components/MenuItem/MenuItem.cjs +9 -88
- package/cjs/components/Modal/Modal.cjs +31 -181
- package/cjs/components/Modal/index.cjs +1 -4
- package/cjs/components/OtpInput/OtpInput.cjs +5 -154
- package/cjs/components/OtpInput/index.cjs +1 -4
- package/cjs/components/PageLoader/PageLoader.cjs +5 -53
- package/cjs/components/PageLoader/index.cjs +1 -4
- package/cjs/components/Pagination/Pagination.cjs +25 -247
- package/cjs/components/Pagination/constants.cjs +1 -41
- package/cjs/components/Pagination/index.cjs +1 -4
- package/cjs/components/Ripple/Ripple.cjs +1 -45
- package/cjs/components/Ripple/index.cjs +1 -4
- package/cjs/components/RootComponent/RootComponent.cjs +2 -21
- package/cjs/components/RootComponent/index.cjs +1 -4
- package/cjs/components/Selectbox/Selectbox.cjs +40 -347
- package/cjs/components/Selectbox/index.cjs +1 -4
- package/cjs/components/Shimmer/Shimmer.cjs +9 -49
- package/cjs/components/Shimmer/index.cjs +1 -4
- package/cjs/components/Spinner/Spinner.cjs +7 -56
- package/cjs/components/Spinner/index.cjs +1 -4
- package/cjs/components/Timer/Timer.cjs +80 -367
- package/cjs/components/Timer/components/TimerRing/TimerRing.cjs +1 -57
- package/cjs/components/Timer/constants.cjs +1 -25
- package/cjs/components/Timer/index.cjs +1 -4
- package/cjs/components/Toast/Toast.cjs +40 -266
- package/cjs/components/Toast/constants.cjs +1 -39
- package/cjs/components/Toast/index.cjs +1 -5
- package/cjs/components/Typography/Headings/H1.cjs +3 -27
- package/cjs/components/Typography/Headings/H2.cjs +3 -27
- package/cjs/components/Typography/Headings/H3.cjs +3 -27
- package/cjs/components/Typography/Headings/H4.cjs +3 -27
- package/cjs/components/Typography/Headings/H5.cjs +3 -27
- package/cjs/components/Typography/Headings/H6.cjs +3 -27
- package/cjs/components/Typography/Headings/index.cjs +1 -23
- package/cjs/components/Typography/P/P.cjs +4 -34
- package/cjs/components/Typography/P/index.cjs +1 -4
- package/cjs/components/VideoPlayer/VideoPlayer.cjs +11 -61
- package/cjs/components/VideoPlayer/components/Volumebar/Volumebar.cjs +6 -28
- package/cjs/components/VideoPlayer/index.cjs +1 -4
- package/cjs/components/VideoPlayer/useSpacebarToggle.cjs +1 -56
- package/cjs/components/VideoPlayer/useVolumeOverlay.cjs +1 -17
- package/cjs/hooks/index.cjs +1 -38
- package/cjs/hooks/useCopyToClipboard.cjs +1 -17
- package/cjs/hooks/useDebounce.cjs +1 -12
- package/cjs/hooks/useEventListener.cjs +1 -17
- package/cjs/hooks/useFirstRender.cjs +1 -11
- package/cjs/hooks/useIntersectionObserver.cjs +1 -15
- package/cjs/hooks/useInterval.cjs +1 -15
- package/cjs/hooks/useIsMounted.cjs +1 -14
- package/cjs/hooks/useLocalStorage.cjs +1 -30
- package/cjs/hooks/useMediaQuery.cjs +1 -14
- package/cjs/hooks/useOnlineStatus.cjs +1 -18
- package/cjs/hooks/useOutsideClick.cjs +1 -17
- package/cjs/hooks/usePrevious.cjs +1 -11
- package/cjs/hooks/useSessionStorage.cjs +1 -30
- package/cjs/hooks/useThrottle.cjs +1 -17
- package/cjs/hooks/useTimeout.cjs +1 -15
- package/cjs/hooks/useToggle.cjs +1 -11
- package/cjs/hooks/useUnmount.cjs +1 -13
- package/cjs/hooks/useWindowSize.cjs +1 -19
- package/cjs/index.cjs +1 -379
- package/cjs/reactUtils/composeProviders.cjs +1 -7
- package/cjs/reactUtils/createContextHook.cjs +1 -13
- package/cjs/reactUtils/createPortalNode.cjs +1 -8
- package/cjs/reactUtils/index.cjs +1 -16
- package/cjs/reactUtils/lazyImport.cjs +1 -9
- package/cjs/reactUtils/memoCompare.cjs +1 -5
- package/cjs/reactUtils/withErrorBoundary.cjs +1 -33
- package/cjs/reactUtils/withSuspense.cjs +1 -11
- package/cjs/utils/addDays.cjs +1 -8
- package/cjs/utils/announceToScreenReader.cjs +1 -14
- package/cjs/utils/auditLog.cjs +1 -18
- package/cjs/utils/buildURL.cjs +1 -10
- package/cjs/utils/camelCase.cjs +1 -7
- package/cjs/utils/cancelablePromise.cjs +1 -19
- package/cjs/utils/capFirstLetter.cjs +1 -9
- package/cjs/utils/capitalize.cjs +1 -7
- package/cjs/utils/captureException.cjs +1 -17
- package/cjs/utils/chunk.cjs +1 -10
- package/cjs/utils/clamp.cjs +1 -4
- package/cjs/utils/clearStorage.cjs +1 -7
- package/cjs/utils/compose.cjs +1 -4
- package/cjs/utils/copyToClipboard.cjs +1 -17
- package/cjs/utils/countdown.cjs +1 -13
- package/cjs/utils/createPubSub.cjs +1 -21
- package/cjs/utils/debounce.cjs +1 -10
- package/cjs/utils/decodeJWT.cjs +1 -11
- package/cjs/utils/deepClone.cjs +1 -9
- package/cjs/utils/deepFreeze.cjs +1 -10
- package/cjs/utils/detectOutsideClick.cjs +1 -12
- package/cjs/utils/differenceInDays.cjs +1 -8
- package/cjs/utils/downloadFile.cjs +1 -11
- package/cjs/utils/fadeIn.cjs +1 -13
- package/cjs/utils/fadeOut.cjs +1 -10
- package/cjs/utils/fallback.cjs +1 -4
- package/cjs/utils/featureGate.cjs +1 -9
- package/cjs/utils/filterByKey.cjs +1 -4
- package/cjs/utils/flattenObject.cjs +1 -12
- package/cjs/utils/focusElement.cjs +1 -8
- package/cjs/utils/formatCompactNumber.cjs +1 -10
- package/cjs/utils/formatCurrency.cjs +1 -10
- package/cjs/utils/formatDate.cjs +1 -12
- package/cjs/utils/formatNumber.cjs +1 -7
- package/cjs/utils/formatTime.cjs +1 -12
- package/cjs/utils/fuzzySearch.cjs +1 -21
- package/cjs/utils/generateAriaId.cjs +1 -5
- package/cjs/utils/generateInitials.cjs +1 -7
- package/cjs/utils/getCurrentPath.cjs +1 -4
- package/cjs/utils/getGreetingByTime.cjs +1 -9
- package/cjs/utils/getLocalStorage.cjs +1 -11
- package/cjs/utils/getQueryParams.cjs +1 -10
- package/cjs/utils/getScreenSize.cjs +1 -10
- package/cjs/utils/getSessionStorage.cjs +1 -11
- package/cjs/utils/getToken.cjs +1 -4
- package/cjs/utils/getVariant.cjs +1 -12
- package/cjs/utils/groupBy.cjs +1 -9
- package/cjs/utils/handleKeyboardNavigation.cjs +1 -29
- package/cjs/utils/hasEqualProps.cjs +1 -13
- package/cjs/utils/hasPermission.cjs +1 -14
- package/cjs/utils/identity.cjs +1 -4
- package/cjs/utils/index.cjs +1 -280
- package/cjs/utils/isAadhaar.cjs +1 -8
- package/cjs/utils/isActiveRoute.cjs +1 -4
- package/cjs/utils/isAndroid.cjs +1 -6
- package/cjs/utils/isAuthenticated.cjs +1 -20
- package/cjs/utils/isDarkMode.cjs +1 -6
- package/cjs/utils/isEmail.cjs +1 -7
- package/cjs/utils/isEmpty.cjs +1 -9
- package/cjs/utils/isEqual.cjs +1 -13
- package/cjs/utils/isFeatureEnabled.cjs +1 -12
- package/cjs/utils/isGST.cjs +1 -7
- package/cjs/utils/isIOS.cjs +1 -6
- package/cjs/utils/isMobile.cjs +1 -6
- package/cjs/utils/isNonEmptyArray.cjs +1 -4
- package/cjs/utils/isOnline.cjs +1 -6
- package/cjs/utils/isPAN.cjs +1 -7
- package/cjs/utils/isPasswordStrong.cjs +1 -7
- package/cjs/utils/isPast.cjs +1 -7
- package/cjs/utils/isPhone.cjs +1 -7
- package/cjs/utils/isRequired.cjs +1 -9
- package/cjs/utils/isSafari.cjs +1 -6
- package/cjs/utils/isToday.cjs +1 -8
- package/cjs/utils/isURL.cjs +1 -12
- package/cjs/utils/kebabCase.cjs +1 -7
- package/cjs/utils/keyBy.cjs +1 -7
- package/cjs/utils/lazyLoadComponent.cjs +1 -5
- package/cjs/utils/lockBodyScroll.cjs +1 -6
- package/cjs/utils/logError.cjs +1 -11
- package/cjs/utils/logInfo.cjs +1 -18
- package/cjs/utils/logWarn.cjs +1 -18
- package/cjs/utils/maskEmail.cjs +1 -9
- package/cjs/utils/maskPhone.cjs +1 -10
- package/cjs/utils/maxLength.cjs +1 -7
- package/cjs/utils/measureElement.cjs +1 -9
- package/cjs/utils/measurePerformance.cjs +1 -19
- package/cjs/utils/memoize.cjs +1 -13
- package/cjs/utils/mergeDeep.cjs +1 -13
- package/cjs/utils/minLength.cjs +1 -7
- package/cjs/utils/multiSort.cjs +1 -15
- package/cjs/utils/noop.cjs +1 -5
- package/cjs/utils/omit.cjs +1 -7
- package/cjs/utils/once.cjs +1 -14
- package/cjs/utils/openInNewTab.cjs +1 -6
- package/cjs/utils/paginate.cjs +1 -15
- package/cjs/utils/parallel.cjs +1 -4
- package/cjs/utils/percentage.cjs +1 -11
- package/cjs/utils/permissionGuard.cjs +1 -9
- package/cjs/utils/pick.cjs +1 -4
- package/cjs/utils/pipe.cjs +1 -4
- package/cjs/utils/rafThrottle.cjs +1 -13
- package/cjs/utils/randomBetween.cjs +1 -4
- package/cjs/utils/randomInt.cjs +1 -7
- package/cjs/utils/randomValue.cjs +1 -6
- package/cjs/utils/redirectTo.cjs +1 -6
- package/cjs/utils/removeExtraSpaces.cjs +1 -7
- package/cjs/utils/removeLocalStorage.cjs +1 -6
- package/cjs/utils/removeQueryParam.cjs +1 -8
- package/cjs/utils/removeToken.cjs +1 -4
- package/cjs/utils/requestIdleTask.cjs +1 -10
- package/cjs/utils/retry.cjs +1 -14
- package/cjs/utils/roundTo.cjs +1 -8
- package/cjs/utils/safeAsync.cjs +1 -11
- package/cjs/utils/safeJSONParse.cjs +1 -10
- package/cjs/utils/safeJSONStringify.cjs +1 -10
- package/cjs/utils/scrollToElement.cjs +1 -10
- package/cjs/utils/scrollToTop.cjs +1 -9
- package/cjs/utils/sequential.cjs +1 -10
- package/cjs/utils/setLocalStorage.cjs +1 -9
- package/cjs/utils/setQueryParam.cjs +1 -8
- package/cjs/utils/setSessionStorage.cjs +1 -9
- package/cjs/utils/setToken.cjs +1 -4
- package/cjs/utils/singleton.cjs +1 -10
- package/cjs/utils/sleep.cjs +1 -4
- package/cjs/utils/slugify.cjs +1 -7
- package/cjs/utils/smoothScroll.cjs +1 -19
- package/cjs/utils/snakeCase.cjs +1 -7
- package/cjs/utils/sortBy.cjs +1 -8
- package/cjs/utils/throttle.cjs +1 -13
- package/cjs/utils/timeAgo.cjs +1 -21
- package/cjs/utils/titleCase.cjs +1 -7
- package/cjs/utils/toggleFullscreen.cjs +1 -11
- package/cjs/utils/trackEvent.cjs +1 -17
- package/cjs/utils/trackPageView.cjs +1 -17
- package/cjs/utils/trapFocus.cjs +1 -31
- package/cjs/utils/truncate.cjs +1 -7
- package/cjs/utils/uniqueBy.cjs +1 -12
- package/cjs/utils/unlockBodyScroll.cjs +1 -6
- package/cjs/utils/waitForTransitionEnd.cjs +1 -11
- package/cjs/utils/withTimeout.cjs +1 -7
- package/colors/amber.js +2 -2
- package/colors/black.js +3 -3
- package/colors/blue.js +3 -3
- package/colors/blueGray.js +2 -2
- package/colors/brown.js +3 -3
- package/colors/cider.js +2 -2
- package/colors/colorMap.js +48 -48
- package/colors/cyan.js +2 -2
- package/colors/deepOrange.js +2 -2
- package/colors/deepPurple.js +2 -2
- package/colors/green.js +3 -3
- package/colors/grey.js +3 -3
- package/colors/indigo.js +3 -3
- package/colors/lightBlue.js +2 -2
- package/colors/lightGreen.js +2 -2
- package/colors/lime.js +2 -2
- package/colors/orange.js +3 -3
- package/colors/pink.js +3 -3
- package/colors/purple.js +3 -3
- package/colors/red.js +3 -3
- package/colors/teal.js +3 -3
- package/colors/violet.js +3 -3
- package/colors/white.js +3 -3
- package/colors/yellow.js +3 -3
- package/components/Button/Button.js +89 -135
- package/components/Button/constants.js +10 -14
- package/components/Button/index.js +2 -2
- package/components/Carousel/Carousel.js +210 -241
- package/components/Carousel/index.js +2 -2
- package/components/DatePicker/DatePicker.js +273 -343
- package/components/DatePicker/constants.js +17 -6
- package/components/DatePicker/index.js +2 -2
- package/components/DatePicker/utils.js +18 -41
- package/components/Dropdown/Dropdown.js +277 -326
- package/components/Dropdown/constants.js +3 -3
- package/components/Dropdown/index.js +2 -2
- package/components/Glass/Glass.js +6 -13
- package/components/Glass/index.js +2 -2
- package/components/Icons/Add.js +46 -13
- package/components/Icons/AddCircle.js +31 -10
- package/components/Icons/AddCircleFilled.js +22 -7
- package/components/Icons/ArrowDown.js +22 -7
- package/components/Icons/ArrowLeft.js +23 -7
- package/components/Icons/ArrowRight.js +23 -7
- package/components/Icons/ArrowUp.js +22 -7
- package/components/Icons/BagFilled.js +22 -7
- package/components/Icons/BagOutline.js +32 -10
- package/components/Icons/BellFilled.js +33 -10
- package/components/Icons/BellOffFilled.js +42 -11
- package/components/Icons/BellOffOutline.js +44 -11
- package/components/Icons/BellOutline.js +35 -10
- package/components/Icons/BookmarkFilled.js +25 -12
- package/components/Icons/BookmarkOutline.js +22 -7
- package/components/Icons/BoxCoveredFilled.js +43 -12
- package/components/Icons/BoxCoveredOutline.js +33 -10
- package/components/Icons/BoxFilled.js +36 -11
- package/components/Icons/BoxOutline.js +33 -10
- package/components/Icons/CalendarDays.js +22 -7
- package/components/Icons/CalendarLinesPen.js +23 -7
- package/components/Icons/CartCheckFilled.js +38 -11
- package/components/Icons/CartCheckOutline.js +48 -12
- package/components/Icons/CartCrossFilled.js +38 -11
- package/components/Icons/CartCrossOutline.js +47 -12
- package/components/Icons/CartFilled.js +36 -11
- package/components/Icons/CartMinusFilled.js +38 -11
- package/components/Icons/CartMinusOutline.js +49 -13
- package/components/Icons/CartOutline.js +48 -12
- package/components/Icons/CartPlusFilled.js +38 -11
- package/components/Icons/CartPlusOutline.js +47 -12
- package/components/Icons/Check.js +23 -7
- package/components/Icons/CheckDouble.js +23 -7
- package/components/Icons/ChevronDown.js +23 -7
- package/components/Icons/ChevronLeft.js +23 -7
- package/components/Icons/ChevronRight.js +23 -7
- package/components/Icons/ChevronUp.js +23 -7
- package/components/Icons/ClockCircleOutline.js +26 -10
- package/components/Icons/ClockSquareOutline.js +33 -10
- package/components/Icons/Close.js +20 -7
- package/components/Icons/CloseCircleFilled.js +22 -7
- package/components/Icons/CloseCircleOutline.js +23 -7
- package/components/Icons/CommentBubbleFilled.js +25 -12
- package/components/Icons/CommentBubbleOutline.js +25 -12
- package/components/Icons/CommentFilled.js +25 -12
- package/components/Icons/CommentLineFilled.js +25 -12
- package/components/Icons/CommentLineOutline.js +25 -12
- package/components/Icons/CommentOutline.js +25 -12
- package/components/Icons/ContactDetailsFilled.js +17 -10
- package/components/Icons/ContactDetailsOutline.js +17 -10
- package/components/Icons/DeliveryTruckFastFilled.js +28 -15
- package/components/Icons/DeliveryTruckFastOutline.js +28 -15
- package/components/Icons/DeliveryTruckLeftFilled.js +26 -10
- package/components/Icons/DeliveryTruckLeftOutline.js +27 -10
- package/components/Icons/DeliveryTruckRightFilled.js +23 -10
- package/components/Icons/DeliveryTruckRightOutline.js +23 -10
- package/components/Icons/DetailsOutline.js +17 -10
- package/components/Icons/DiscordConversation.js +29 -10
- package/components/Icons/DiscordFilled.js +23 -10
- package/components/Icons/DiscordOutline.js +27 -11
- package/components/Icons/DoorClosedFilled.js +22 -7
- package/components/Icons/DoorClosedOutline.js +23 -7
- package/components/Icons/DoorOpenFilled.js +22 -7
- package/components/Icons/DoorOpenOutline.js +23 -7
- package/components/Icons/DotsHorizontalFilled.js +36 -11
- package/components/Icons/DotsHorizontalOutline.js +45 -11
- package/components/Icons/DotsVerticalFilled.js +36 -11
- package/components/Icons/DotsVerticalOutline.js +45 -11
- package/components/Icons/Download.js +29 -10
- package/components/Icons/DownloadBoxFilled.js +22 -7
- package/components/Icons/DownloadBoxOutline.js +38 -11
- package/components/Icons/EditBoxThick.js +23 -7
- package/components/Icons/EditBoxThin.js +35 -10
- package/components/Icons/EmailFilled.js +29 -7
- package/components/Icons/EmailOutline.js +32 -7
- package/components/Icons/ExitArrowInOutline.js +23 -7
- package/components/Icons/ExitArrowOutOutline.js +35 -10
- package/components/Icons/ExitFullScreen.js +21 -7
- package/components/Icons/ExitFullScreenThick.js +21 -7
- package/components/Icons/EyeClosed.js +22 -7
- package/components/Icons/EyeFilled.js +31 -10
- package/components/Icons/EyeOutline.js +35 -10
- package/components/Icons/FacebookFilled.js +21 -7
- package/components/Icons/FacebookMessengerOutline.js +31 -10
- package/components/Icons/FacebookOutline.js +22 -7
- package/components/Icons/FacebookRoundFilled.js +20 -7
- package/components/Icons/Filter.js +19 -12
- package/components/Icons/FilterList.js +23 -7
- package/components/Icons/FilterThickFilled.js +20 -7
- package/components/Icons/FilterThickOutline.js +21 -7
- package/components/Icons/FullScreenArrowThick.js +21 -7
- package/components/Icons/FullScreenArrowThin.js +21 -7
- package/components/Icons/FullScreenExit.js +43 -12
- package/components/Icons/FullScreenFilled.js +22 -7
- package/components/Icons/FullScreenOutline.js +22 -7
- package/components/Icons/HamburgerMenu.js +42 -11
- package/components/Icons/HamburgerSpaced.js +25 -12
- package/components/Icons/HeartFilled.js +20 -7
- package/components/Icons/HeartOutline.js +25 -7
- package/components/Icons/Help.js +23 -7
- package/components/Icons/HelpCircleFilled.js +22 -7
- package/components/Icons/HelpCircleOutline.js +43 -11
- package/components/Icons/HomeFilled.js +22 -7
- package/components/Icons/HomeOutline.js +22 -7
- package/components/Icons/Info.js +29 -10
- package/components/Icons/InfoCircleFilled.js +22 -7
- package/components/Icons/InfoCircleOutline.js +18 -11
- package/components/Icons/InfoSquareFilled.js +22 -7
- package/components/Icons/InfoSquareOutline.js +25 -11
- package/components/Icons/InstagramOuline.js +23 -10
- package/components/Icons/InstagramRoundFilled.js +47 -12
- package/components/Icons/KeyFilled.js +22 -7
- package/components/Icons/KeyInSquareFilled.js +31 -10
- package/components/Icons/KeyInSquareOutline.js +40 -11
- package/components/Icons/KeyOutline.js +33 -10
- package/components/Icons/KeySideSquareFilled.js +31 -10
- package/components/Icons/KeySideSquareOutline.js +22 -7
- package/components/Icons/KeySquareFilled.js +31 -10
- package/components/Icons/KeySquareOutline.js +22 -7
- package/components/Icons/Link.js +33 -10
- package/components/Icons/LinkedinFilled.js +23 -7
- package/components/Icons/LinkedinOutline.js +21 -7
- package/components/Icons/LinkedinRoundFilled.js +24 -7
- package/components/Icons/Loading.js +23 -10
- package/components/Icons/LocationArrowFilled.js +14 -7
- package/components/Icons/LocationArrowOutline.js +23 -7
- package/components/Icons/LocationFilled.js +25 -12
- package/components/Icons/LocationOutline.js +25 -12
- package/components/Icons/LockKeyhole.js +22 -7
- package/components/Icons/LockKeyholeOutline.js +33 -11
- package/components/Icons/LockKeyholeUnlocked.js +22 -7
- package/components/Icons/LockKeyholeUnlockedOutline.js +33 -11
- package/components/Icons/MediaPauseCircleFilled.js +22 -7
- package/components/Icons/MediaPauseCircleOuline.js +38 -11
- package/components/Icons/MediaPauseFilled.js +29 -10
- package/components/Icons/MediaPauseOutline.js +33 -10
- package/components/Icons/MediaPlayCircleFilled.js +22 -7
- package/components/Icons/MediaPlayCircleOutline.js +33 -10
- package/components/Icons/MediaPlayFilled.js +20 -7
- package/components/Icons/MediaPlayOutline.js +22 -7
- package/components/Icons/MediaStopCircleFilled.js +22 -7
- package/components/Icons/MediaStopCircleOutline.js +33 -10
- package/components/Icons/MediaStopFilled.js +20 -7
- package/components/Icons/MediaStopOutline.js +22 -7
- package/components/Icons/Minus.js +23 -7
- package/components/Icons/MinusCircle.js +25 -12
- package/components/Icons/MinusCircleFilled.js +25 -12
- package/components/Icons/MoneyBagOutline.js +48 -12
- package/components/Icons/MoneyBriefcaseFilled.js +22 -7
- package/components/Icons/MoneyBriefcaseOutline.js +40 -11
- package/components/Icons/NoEntry.js +21 -7
- package/components/Icons/NoEntryFilled.js +20 -7
- package/components/Icons/NoEntryOutline.js +23 -10
- package/components/Icons/PaymentCardFilled.js +18 -11
- package/components/Icons/PaymentCardOutline.js +18 -11
- package/components/Icons/PhoneCallingFilled.js +38 -11
- package/components/Icons/PhoneCallingOutline.js +40 -11
- package/components/Icons/PhoneFilled.js +20 -7
- package/components/Icons/PhoneOutline.js +20 -7
- package/components/Icons/Pin.js +23 -7
- package/components/Icons/PinAddFilled.js +19 -12
- package/components/Icons/PinAddOutline.js +19 -12
- package/components/Icons/PinCircleFilled.js +22 -7
- package/components/Icons/PinCircleOutline.js +23 -10
- package/components/Icons/PinFilled.js +20 -7
- package/components/Icons/PinOutline.js +22 -7
- package/components/Icons/PinSubFilled.js +19 -12
- package/components/Icons/PinSubOutline.js +19 -12
- package/components/Icons/PinterestFilled.js +19 -12
- package/components/Icons/PinterestOutline.js +23 -7
- package/components/Icons/ProfileFemaleOutline.js +32 -7
- package/components/Icons/ProfileGroupFilled.js +30 -10
- package/components/Icons/ProfileMaleFilled.js +30 -10
- package/components/Icons/ProfileMaleOutline.js +33 -7
- package/components/Icons/RedditFilled.js +19 -12
- package/components/Icons/RedditOutline.js +45 -12
- package/components/Icons/RedditRoundFilled.js +68 -13
- package/components/Icons/RedditRoundOutline.js +72 -13
- package/components/Icons/RupeeOutlined.js +20 -7
- package/components/Icons/RupeeSign.js +23 -7
- package/components/Icons/SaveFilled.js +25 -12
- package/components/Icons/SaveOutline.js +25 -12
- package/components/Icons/Search.js +25 -12
- package/components/Icons/SettingFilled.js +20 -7
- package/components/Icons/SettingOutline.js +20 -7
- package/components/Icons/ShareAllFilled.js +22 -7
- package/components/Icons/ShareAllOutline.js +41 -13
- package/components/Icons/ShareBoxOutline.js +20 -7
- package/components/Icons/ShareFilled.js +31 -10
- package/components/Icons/ShareOutline.js +34 -10
- package/components/Icons/ShareThickFilled.js +20 -7
- package/components/Icons/ShieldCheckFilled.js +22 -7
- package/components/Icons/ShieldCheckOutline.js +33 -10
- package/components/Icons/ShieldCrossFilled.js +22 -7
- package/components/Icons/ShieldCrossOutline.js +32 -10
- package/components/Icons/ShieldFilled.js +20 -7
- package/components/Icons/ShieldOutline.js +22 -7
- package/components/Icons/ShieldWarningFilled.js +22 -7
- package/components/Icons/ShieldWarningOutline.js +25 -11
- package/components/Icons/SnapchatFilled.js +19 -12
- package/components/Icons/SnapchatOutline.js +22 -7
- package/components/Icons/SortBottomToTop.js +28 -12
- package/components/Icons/SortHorizontal.js +22 -7
- package/components/Icons/SortTopToBottom.js +28 -12
- package/components/Icons/SortVertical.js +22 -7
- package/components/Icons/StarFilled.js +25 -7
- package/components/Icons/StarOutline.js +27 -7
- package/components/Icons/TelegramFilled.js +25 -10
- package/components/Icons/TelegramOutline.js +22 -7
- package/components/Icons/TelegramRoundFilled.js +25 -10
- package/components/Icons/ThumbsDownFilled.js +20 -7
- package/components/Icons/ThumbsDownOutline.js +20 -7
- package/components/Icons/ThumbsUpFilled.js +20 -7
- package/components/Icons/ThumbsUpOutline.js +20 -7
- package/components/Icons/TiktokBox.js +20 -7
- package/components/Icons/TiktokThickFilled.js +23 -10
- package/components/Icons/TiktokThinFilled.js +34 -10
- package/components/Icons/TrashBigFilled.js +25 -12
- package/components/Icons/TrashBigOutline.js +25 -12
- package/components/Icons/TrashFilled.js +29 -10
- package/components/Icons/TrashLinesFilled.js +31 -10
- package/components/Icons/TrashLinesOutline.js +35 -13
- package/components/Icons/TrashOutline.js +33 -11
- package/components/Icons/Upload.js +29 -10
- package/components/Icons/UploadBoxFilled.js +22 -7
- package/components/Icons/UploadBoxOutline.js +38 -11
- package/components/Icons/VolumeFilled.js +32 -13
- package/components/Icons/VolumeMuteFilled.js +32 -13
- package/components/Icons/VolumeMuteOutline.js +32 -13
- package/components/Icons/VolumeOffFilled.js +32 -13
- package/components/Icons/VolumeOffOutline.js +32 -13
- package/components/Icons/VolumeOutline.js +32 -13
- package/components/Icons/WalletFilled.js +25 -12
- package/components/Icons/WalletOutline.js +25 -12
- package/components/Icons/Warning.js +23 -7
- package/components/Icons/WarningCircleFilled.js +20 -7
- package/components/Icons/WarningCircleOutline.js +20 -7
- package/components/Icons/WarningSmall.js +23 -7
- package/components/Icons/WarningTriangleFilled.js +23 -10
- package/components/Icons/WarningTriangleOutline.js +23 -7
- package/components/Icons/WhatsappFilled.js +19 -12
- package/components/Icons/WhatsappOutline.js +22 -7
- package/components/Icons/Youtube.js +20 -7
- package/components/Icons/YoutubeFilled.js +25 -12
- package/components/Icons/YoutubeRoundFilled.js +25 -10
- package/components/Icons/index.js +737 -737
- package/components/Image/Image.js +57 -62
- package/components/Image/index.js +2 -2
- package/components/Input/Checkbox/Checkbox.js +101 -107
- package/components/Input/Checkbox/index.js +2 -2
- package/components/Input/FileUploader/FileUploader.js +125 -160
- package/components/Input/FileUploader/constants.js +10 -14
- package/components/Input/FileUploader/index.js +2 -2
- package/components/Input/Input/Input.js +115 -177
- package/components/Input/Input/index.js +2 -2
- package/components/Input/Radio/Radio.js +45 -54
- package/components/Input/RadioGroup/RadioGroup.js +86 -76
- package/components/Input/RadioGroup/index.js +2 -2
- package/components/Input/Textarea/SvgIcon.js +4 -14
- package/components/Input/Textarea/Textarea.js +126 -190
- package/components/Input/Textarea/index.js +2 -2
- package/components/Loader/Loader.js +67 -90
- package/components/Loader/constants.js +12 -27
- package/components/Loader/index.js +2 -2
- package/components/MenuItem/MenuItem.js +59 -82
- package/components/Modal/Modal.js +132 -162
- package/components/Modal/index.js +2 -2
- package/components/OtpInput/OtpInput.js +82 -138
- package/components/OtpInput/index.js +2 -2
- package/components/PageLoader/PageLoader.js +47 -48
- package/components/PageLoader/index.js +2 -2
- package/components/Pagination/Pagination.js +148 -237
- package/components/Pagination/constants.js +22 -39
- package/components/Pagination/index.js +2 -2
- package/components/Ripple/Ripple.js +36 -39
- package/components/Ripple/index.js +2 -2
- package/components/RootComponent/RootComponent.js +8 -14
- package/components/RootComponent/index.js +2 -2
- package/components/Selectbox/Selectbox.js +294 -313
- package/components/Selectbox/index.js +2 -2
- package/components/Shimmer/Shimmer.js +38 -39
- package/components/Shimmer/index.js +2 -2
- package/components/Spinner/Spinner.js +48 -47
- package/components/Spinner/index.js +2 -2
- package/components/Timer/Timer.js +278 -335
- package/components/Timer/components/TimerRing/TimerRing.js +82 -44
- package/components/Timer/constants.js +22 -22
- package/components/Timer/index.js +2 -2
- package/components/Toast/Toast.js +159 -245
- package/components/Toast/constants.js +28 -33
- package/components/Toast/index.js +4 -4
- package/components/Typography/Headings/H1.js +10 -19
- package/components/Typography/Headings/H2.js +10 -19
- package/components/Typography/Headings/H3.js +10 -19
- package/components/Typography/Headings/H4.js +10 -19
- package/components/Typography/Headings/H5.js +10 -19
- package/components/Typography/Headings/H6.js +10 -19
- package/components/Typography/Headings/index.js +14 -21
- package/components/Typography/P/P.js +13 -25
- package/components/Typography/P/index.js +2 -2
- package/components/VideoPlayer/VideoPlayer.js +43 -54
- package/components/VideoPlayer/components/Volumebar/Volumebar.js +14 -22
- package/components/VideoPlayer/index.js +2 -2
- package/components/VideoPlayer/useSpacebarToggle.js +43 -48
- package/components/VideoPlayer/useVolumeOverlay.js +6 -13
- package/hooks/index.js +36 -36
- package/hooks/useCopyToClipboard.js +9 -12
- package/hooks/useDebounce.js +8 -9
- package/hooks/useEventListener.js +12 -14
- package/hooks/useFirstRender.js +7 -8
- package/hooks/useIntersectionObserver.js +10 -12
- package/hooks/useInterval.js +11 -12
- package/hooks/useIsMounted.js +7 -11
- package/hooks/useLocalStorage.js +18 -20
- package/hooks/useMediaQuery.js +8 -11
- package/hooks/useOnlineStatus.js +9 -14
- package/hooks/useOutsideClick.js +9 -12
- package/hooks/usePrevious.js +7 -8
- package/hooks/useSessionStorage.js +18 -20
- package/hooks/useThrottle.js +13 -14
- package/hooks/useTimeout.js +11 -12
- package/hooks/useToggle.js +6 -7
- package/hooks/useUnmount.js +7 -10
- package/hooks/useWindowSize.js +8 -13
- package/index.js +377 -377
- package/package.json +1 -1
- package/reactUtils/composeProviders.js +3 -5
- package/reactUtils/createContextHook.js +8 -9
- package/reactUtils/createPortalNode.js +4 -5
- package/reactUtils/index.js +14 -14
- package/reactUtils/lazyImport.js +4 -6
- package/reactUtils/memoCompare.js +3 -3
- package/reactUtils/withErrorBoundary.js +14 -22
- package/reactUtils/withSuspense.js +7 -8
- package/utils/addDays.js +4 -5
- package/utils/announceToScreenReader.js +5 -10
- package/utils/auditLog.js +8 -13
- package/utils/buildURL.js +6 -7
- package/utils/camelCase.js +2 -5
- package/utils/cancelablePromise.js +10 -12
- package/utils/capFirstLetter.js +2 -7
- package/utils/capitalize.js +2 -5
- package/utils/captureException.js +7 -12
- package/utils/chunk.js +6 -7
- package/utils/clamp.js +2 -2
- package/utils/clearStorage.js +3 -4
- package/utils/compose.js +2 -2
- package/utils/copyToClipboard.js +7 -12
- package/utils/countdown.js +7 -8
- package/utils/createPubSub.js +11 -17
- package/utils/debounce.js +5 -6
- package/utils/decodeJWT.js +5 -5
- package/utils/deepClone.js +2 -7
- package/utils/deepFreeze.js +5 -8
- package/utils/detectOutsideClick.js +7 -8
- package/utils/differenceInDays.js +4 -5
- package/utils/downloadFile.js +4 -8
- package/utils/fadeIn.js +4 -7
- package/utils/fadeOut.js +5 -7
- package/utils/fallback.js +2 -2
- package/utils/featureGate.js +2 -7
- package/utils/filterByKey.js +2 -2
- package/utils/flattenObject.js +4 -9
- package/utils/focusElement.js +5 -5
- package/utils/formatCompactNumber.js +4 -8
- package/utils/formatCurrency.js +2 -8
- package/utils/formatDate.js +6 -9
- package/utils/formatNumber.js +2 -5
- package/utils/formatTime.js +6 -7
- package/utils/fuzzySearch.js +11 -16
- package/utils/generateAriaId.js +3 -3
- package/utils/generateInitials.js +2 -5
- package/utils/getCurrentPath.js +2 -2
- package/utils/getGreetingByTime.js +4 -6
- package/utils/getLocalStorage.js +5 -5
- package/utils/getQueryParams.js +6 -7
- package/utils/getScreenSize.js +2 -2
- package/utils/getSessionStorage.js +5 -5
- package/utils/getToken.js +2 -2
- package/utils/getVariant.js +4 -5
- package/utils/groupBy.js +5 -6
- package/utils/handleKeyboardNavigation.js +13 -25
- package/utils/hasEqualProps.js +7 -11
- package/utils/hasPermission.js +11 -11
- package/utils/identity.js +2 -2
- package/utils/index.js +278 -278
- package/utils/isAadhaar.js +5 -5
- package/utils/isActiveRoute.js +2 -2
- package/utils/isAndroid.js +2 -4
- package/utils/isAuthenticated.js +8 -14
- package/utils/isDarkMode.js +2 -4
- package/utils/isEmail.js +2 -5
- package/utils/isEmpty.js +2 -7
- package/utils/isEqual.js +7 -10
- package/utils/isFeatureEnabled.js +6 -7
- package/utils/isGST.js +2 -5
- package/utils/isIOS.js +2 -4
- package/utils/isMobile.js +2 -4
- package/utils/isNonEmptyArray.js +2 -2
- package/utils/isOnline.js +2 -4
- package/utils/isPAN.js +2 -5
- package/utils/isPasswordStrong.js +2 -5
- package/utils/isPast.js +2 -5
- package/utils/isPhone.js +2 -5
- package/utils/isRequired.js +2 -7
- package/utils/isSafari.js +2 -4
- package/utils/isToday.js +4 -5
- package/utils/isURL.js +7 -7
- package/utils/kebabCase.js +2 -5
- package/utils/keyBy.js +2 -5
- package/utils/lazyLoadComponent.js +3 -3
- package/utils/lockBodyScroll.js +2 -2
- package/utils/logError.js +4 -8
- package/utils/logInfo.js +5 -15
- package/utils/logWarn.js +5 -15
- package/utils/maskEmail.js +5 -6
- package/utils/maskPhone.js +6 -7
- package/utils/maxLength.js +2 -5
- package/utils/measureElement.js +5 -6
- package/utils/measurePerformance.js +8 -14
- package/utils/memoize.js +8 -9
- package/utils/mergeDeep.js +6 -10
- package/utils/minLength.js +2 -5
- package/utils/multiSort.js +6 -10
- package/utils/noop.js +2 -2
- package/utils/omit.js +4 -4
- package/utils/once.js +4 -11
- package/utils/openInNewTab.js +3 -3
- package/utils/paginate.js +8 -10
- package/utils/parallel.js +2 -2
- package/utils/percentage.js +4 -8
- package/utils/permissionGuard.js +2 -7
- package/utils/pick.js +2 -2
- package/utils/pipe.js +2 -2
- package/utils/rafThrottle.js +7 -9
- package/utils/randomBetween.js +2 -2
- package/utils/randomInt.js +3 -5
- package/utils/randomValue.js +2 -4
- package/utils/redirectTo.js +3 -3
- package/utils/removeExtraSpaces.js +2 -5
- package/utils/removeLocalStorage.js +3 -3
- package/utils/removeQueryParam.js +4 -5
- package/utils/removeToken.js +2 -2
- package/utils/requestIdleTask.js +3 -7
- package/utils/retry.js +8 -9
- package/utils/roundTo.js +5 -5
- package/utils/safeAsync.js +5 -6
- package/utils/safeJSONParse.js +5 -5
- package/utils/safeJSONStringify.js +4 -4
- package/utils/scrollToElement.js +4 -7
- package/utils/scrollToTop.js +3 -6
- package/utils/sequential.js +6 -7
- package/utils/setLocalStorage.js +3 -3
- package/utils/setQueryParam.js +4 -5
- package/utils/setSessionStorage.js +3 -3
- package/utils/setToken.js +2 -2
- package/utils/singleton.js +4 -7
- package/utils/sleep.js +2 -2
- package/utils/slugify.js +2 -5
- package/utils/smoothScroll.js +10 -15
- package/utils/snakeCase.js +2 -5
- package/utils/sortBy.js +4 -5
- package/utils/throttle.js +6 -9
- package/utils/timeAgo.js +12 -18
- package/utils/titleCase.js +2 -5
- package/utils/toggleFullscreen.js +4 -8
- package/utils/trackEvent.js +5 -14
- package/utils/trackPageView.js +7 -12
- package/utils/trapFocus.js +12 -26
- package/utils/truncate.js +2 -5
- package/utils/uniqueBy.js +6 -8
- package/utils/unlockBodyScroll.js +2 -2
- package/utils/waitForTransitionEnd.js +5 -7
- package/utils/withTimeout.js +6 -4
package/cjs/utils/isRequired.cjs
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const isRequired = (value) => {
|
|
4
|
-
if (value === null || value === void 0) return false;
|
|
5
|
-
if (typeof value === "string") return value.trim().length > 0;
|
|
6
|
-
if (Array.isArray(value)) return value.length > 0;
|
|
7
|
-
return true;
|
|
8
|
-
};
|
|
9
|
-
exports.default = isRequired;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=e=>e==null?!1:typeof e=="string"?e.trim().length>0:Array.isArray(e)?e.length>0:!0;exports.default=r;
|
package/cjs/utils/isSafari.cjs
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const isSafari = () => {
|
|
4
|
-
return /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
5
|
-
};
|
|
6
|
-
exports.default = isSafari;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent);exports.default=e;
|
package/cjs/utils/isToday.cjs
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const isToday = (date) => {
|
|
4
|
-
const d = date instanceof Date ? date : new Date(date);
|
|
5
|
-
const now = /* @__PURE__ */ new Date();
|
|
6
|
-
return d.getFullYear() === now.getFullYear() && d.getMonth() === now.getMonth() && d.getDate() === now.getDate();
|
|
7
|
-
};
|
|
8
|
-
exports.default = isToday;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=e=>{const t=e instanceof Date?e:new Date(e),n=new Date;return t.getFullYear()===n.getFullYear()&&t.getMonth()===n.getMonth()&&t.getDate()===n.getDate()};exports.default=o;
|
package/cjs/utils/isURL.cjs
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const isURL = (value) => {
|
|
4
|
-
if (typeof value !== "string") return false;
|
|
5
|
-
try {
|
|
6
|
-
const url = new URL(value.trim());
|
|
7
|
-
return url.protocol === "http:" || url.protocol === "https:";
|
|
8
|
-
} catch (e) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
exports.default = isURL;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=e=>{if(typeof e!="string")return!1;try{const t=new URL(e.trim());return t.protocol==="http:"||t.protocol==="https:"}catch(t){return!1}};exports.default=r;
|
package/cjs/utils/kebabCase.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const kebabCase = (str) => {
|
|
4
|
-
if (typeof str !== "string") return str;
|
|
5
|
-
return str.trim().replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[_\s]+/g, "-").toLowerCase();
|
|
6
|
-
};
|
|
7
|
-
exports.default = kebabCase;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=e=>typeof e!="string"?e:e.trim().replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase();exports.default=t;
|
package/cjs/utils/keyBy.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const keyBy = (array, key) => array.reduce((acc, item) => {
|
|
4
|
-
acc[typeof key === "function" ? key(item) : item[key]] = item;
|
|
5
|
-
return acc;
|
|
6
|
-
}, {});
|
|
7
|
-
exports.default = keyBy;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(o,e)=>o.reduce((u,t)=>(u[typeof e=="function"?e(t):t[e]]=t,u),{});exports.default=r;
|
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const react = require("react");
|
|
4
|
-
const lazyLoadComponent = (importFn) => react.lazy(importFn);
|
|
5
|
-
exports.default = lazyLoadComponent;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),o=e=>t.lazy(e);exports.default=o;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const lockBodyScroll = () => {
|
|
4
|
-
document.body.style.overflow = "hidden";
|
|
5
|
-
};
|
|
6
|
-
exports.default = lockBodyScroll;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=()=>{document.body.style.overflow="hidden"};exports.default=e;
|
package/cjs/utils/logError.cjs
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const logError = (error, context = {}) => {
|
|
4
|
-
const msg = error instanceof Error ? error.message : String(error);
|
|
5
|
-
const stack = error instanceof Error ? error.stack : void 0;
|
|
6
|
-
console.error("[logError]", msg, {
|
|
7
|
-
...context,
|
|
8
|
-
stack
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
exports.default = logError;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=(e,t={})=>{const o=e instanceof Error?e.message:String(e),s=e instanceof Error?e.stack:void 0;console.error("[logError]",o,{...t,stack:s})};exports.default=n;
|
package/cjs/utils/logInfo.cjs
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const logInfo = (message, context = {}) => {
|
|
4
|
-
var _a;
|
|
5
|
-
const entry = {
|
|
6
|
-
level: "info",
|
|
7
|
-
message,
|
|
8
|
-
...context,
|
|
9
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
10
|
-
};
|
|
11
|
-
if (typeof window !== "undefined" && typeof ((_a = window.__logger) == null ? void 0 : _a.info) === "function") {
|
|
12
|
-
window.__logger.info(entry);
|
|
13
|
-
} else {
|
|
14
|
-
console.info("[logInfo]", entry);
|
|
15
|
-
}
|
|
16
|
-
return entry;
|
|
17
|
-
};
|
|
18
|
-
exports.default = logInfo;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=(n,t={})=>{var o;const e={level:"info",message:n,...t,timestamp:new Date().toISOString()};return typeof window!="undefined"&&typeof((o=window.__logger)==null?void 0:o.info)=="function"?window.__logger.info(e):console.info("[logInfo]",e),e};exports.default=i;
|
package/cjs/utils/logWarn.cjs
CHANGED
|
@@ -1,18 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const logWarn = (message, context = {}) => {
|
|
4
|
-
var _a;
|
|
5
|
-
const entry = {
|
|
6
|
-
level: "warn",
|
|
7
|
-
message,
|
|
8
|
-
...context,
|
|
9
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
10
|
-
};
|
|
11
|
-
if (typeof window !== "undefined" && typeof ((_a = window.__logger) == null ? void 0 : _a.warn) === "function") {
|
|
12
|
-
window.__logger.warn(entry);
|
|
13
|
-
} else {
|
|
14
|
-
console.warn("[logWarn]", entry);
|
|
15
|
-
}
|
|
16
|
-
return entry;
|
|
17
|
-
};
|
|
18
|
-
exports.default = logWarn;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(o,t={})=>{var n;const e={level:"warn",message:o,...t,timestamp:new Date().toISOString()};return typeof window!="undefined"&&typeof((n=window.__logger)==null?void 0:n.warn)=="function"?window.__logger.warn(e):console.warn("[logWarn]",e),e};exports.default=r;
|
package/cjs/utils/maskEmail.cjs
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const maskEmail = (str) => {
|
|
4
|
-
if (typeof str !== "string") return str;
|
|
5
|
-
const [local, domain] = str.split("@");
|
|
6
|
-
if (!domain) return str;
|
|
7
|
-
return local.charAt(0) + "***@" + domain;
|
|
8
|
-
};
|
|
9
|
-
exports.default = maskEmail;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=e=>{if(typeof e!="string")return e;const[i,t]=e.split("@");return t?i.charAt(0)+"***@"+t:e};exports.default=l;
|
package/cjs/utils/maskPhone.cjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const maskPhone = (str) => {
|
|
4
|
-
if (typeof str !== "string") return str;
|
|
5
|
-
const digits = str.replace(/\D/g, "");
|
|
6
|
-
const maskUntil = Math.max(0, digits.length - 4);
|
|
7
|
-
let count = 0;
|
|
8
|
-
return str.replace(/\d/g, () => count++ < maskUntil ? "*" : digits[count - 1]);
|
|
9
|
-
};
|
|
10
|
-
exports.default = maskPhone;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=e=>{if(typeof e!="string")return e;const t=e.replace(/\D/g,""),l=Math.max(0,t.length-4);let n=0;return e.replace(/\d/g,()=>n++<l?"*":t[n-1])};exports.default=o;
|
package/cjs/utils/maxLength.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const maxLength = (value, n) => {
|
|
4
|
-
if (typeof value !== "string") return false;
|
|
5
|
-
return value.length <= n;
|
|
6
|
-
};
|
|
7
|
-
exports.default = maxLength;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(e,t)=>typeof e!="string"?!1:e.length<=t;exports.default=r;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const measureElement = (ref) => {
|
|
4
|
-
var _a;
|
|
5
|
-
const el = (_a = ref == null ? void 0 : ref.current) != null ? _a : ref;
|
|
6
|
-
if (!el) return null;
|
|
7
|
-
return el.getBoundingClientRect();
|
|
8
|
-
};
|
|
9
|
-
exports.default = measureElement;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=e=>{var u;const t=(u=e==null?void 0:e.current)!=null?u:e;return t?t.getBoundingClientRect():null};exports.default=n;
|
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const measurePerformance = (metric) => {
|
|
4
|
-
var _a, _b, _c;
|
|
5
|
-
const entry = typeof performance !== "undefined" ? (_a = performance.getEntriesByName(metric)[0]) != null ? _a : null : null;
|
|
6
|
-
const result = {
|
|
7
|
-
metric,
|
|
8
|
-
duration: (_b = entry == null ? void 0 : entry.duration) != null ? _b : null,
|
|
9
|
-
startTime: (_c = entry == null ? void 0 : entry.startTime) != null ? _c : null,
|
|
10
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
11
|
-
};
|
|
12
|
-
if (typeof window !== "undefined" && typeof window.__performanceReporter === "function") {
|
|
13
|
-
window.__performanceReporter(result);
|
|
14
|
-
} else {
|
|
15
|
-
console.log("[measurePerformance]", result);
|
|
16
|
-
}
|
|
17
|
-
return result;
|
|
18
|
-
};
|
|
19
|
-
exports.default = measurePerformance;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=n=>{var r,t,u;const e=typeof performance!="undefined"&&(r=performance.getEntriesByName(n)[0])!=null?r:null,o={metric:n,duration:(t=e==null?void 0:e.duration)!=null?t:null,startTime:(u=e==null?void 0:e.startTime)!=null?u:null,timestamp:new Date().toISOString()};return typeof window!="undefined"&&typeof window.__performanceReporter=="function"?window.__performanceReporter(o):console.log("[measurePerformance]",o),o};exports.default=a;
|
package/cjs/utils/memoize.cjs
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const memoize = (fn) => {
|
|
4
|
-
const cache = /* @__PURE__ */ new Map();
|
|
5
|
-
return (...args) => {
|
|
6
|
-
const key = JSON.stringify(args);
|
|
7
|
-
if (cache.has(key)) return cache.get(key);
|
|
8
|
-
const result = fn(...args);
|
|
9
|
-
cache.set(key, result);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
exports.default = memoize;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=s=>{const e=new Map;return(...r)=>{const t=JSON.stringify(r);if(e.has(t))return e.get(t);const n=s(...r);return e.set(t,n),n}};exports.default=u;
|
package/cjs/utils/mergeDeep.cjs
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const isPlainObject = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
4
|
-
const mergeDeep = (target, source) => {
|
|
5
|
-
const result = {
|
|
6
|
-
...target
|
|
7
|
-
};
|
|
8
|
-
for (const key of Object.keys(source)) {
|
|
9
|
-
result[key] = isPlainObject(target[key]) && isPlainObject(source[key]) ? mergeDeep(target[key], source[key]) : source[key];
|
|
10
|
-
}
|
|
11
|
-
return result;
|
|
12
|
-
};
|
|
13
|
-
exports.default = mergeDeep;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),r=(e,l)=>{const o={...e};for(const t of Object.keys(l))o[t]=n(e[t])&&n(l[t])?r(e[t],l[t]):l[t];return o};exports.default=r;
|
package/cjs/utils/minLength.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const minLength = (value, n) => {
|
|
4
|
-
if (typeof value !== "string") return false;
|
|
5
|
-
return value.length >= n;
|
|
6
|
-
};
|
|
7
|
-
exports.default = minLength;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(e,t)=>typeof e!="string"?!1:e.length>=t;exports.default=r;
|
package/cjs/utils/multiSort.cjs
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const multiSort = (data, config) => [...data].sort((a, b) => {
|
|
4
|
-
for (const {
|
|
5
|
-
key,
|
|
6
|
-
order = "asc"
|
|
7
|
-
} of config) {
|
|
8
|
-
const av = typeof key === "function" ? key(a) : a[key];
|
|
9
|
-
const bv = typeof key === "function" ? key(b) : b[key];
|
|
10
|
-
if (av < bv) return order === "asc" ? -1 : 1;
|
|
11
|
-
if (av > bv) return order === "asc" ? 1 : -1;
|
|
12
|
-
}
|
|
13
|
-
return 0;
|
|
14
|
-
});
|
|
15
|
-
exports.default = multiSort;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const f=(s,c)=>[...s].sort((e,o)=>{for(const{key:t,order:r="asc"}of c){const n=typeof t=="function"?t(e):e[t],u=typeof t=="function"?t(o):o[t];if(n<u)return r==="asc"?-1:1;if(n>u)return r==="asc"?1:-1}return 0});exports.default=f;
|
package/cjs/utils/noop.cjs
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const noop = () => {
|
|
4
|
-
};
|
|
5
|
-
exports.default = noop;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=()=>{};exports.default=e;
|
package/cjs/utils/omit.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const omit = (obj, keys) => {
|
|
4
|
-
const set = new Set(keys);
|
|
5
|
-
return Object.fromEntries(Object.entries(obj).filter(([k]) => !set.has(k)));
|
|
6
|
-
};
|
|
7
|
-
exports.default = omit;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=(e,t)=>{const r=new Set(t);return Object.fromEntries(Object.entries(e).filter(([s])=>!r.has(s)))};exports.default=o;
|
package/cjs/utils/once.cjs
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const once = (fn) => {
|
|
4
|
-
let called = false;
|
|
5
|
-
let result;
|
|
6
|
-
return (...args) => {
|
|
7
|
-
if (!called) {
|
|
8
|
-
called = true;
|
|
9
|
-
result = fn(...args);
|
|
10
|
-
}
|
|
11
|
-
return result;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
exports.default = once;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=l=>{let e=!1,t;return(...r)=>(e||(e=!0,t=l(...r)),t)};exports.default=u;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const openInNewTab = (url) => {
|
|
4
|
-
window.open(url, "_blank", "noopener,noreferrer");
|
|
5
|
-
};
|
|
6
|
-
exports.default = openInNewTab;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=e=>{window.open(e,"_blank","noopener,noreferrer")};exports.default=o;
|
package/cjs/utils/paginate.cjs
CHANGED
|
@@ -1,15 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const paginate = (data, page, limit) => {
|
|
4
|
-
const total = data.length;
|
|
5
|
-
const totalPages = Math.ceil(total / limit);
|
|
6
|
-
const start = (page - 1) * limit;
|
|
7
|
-
return {
|
|
8
|
-
data: data.slice(start, start + limit),
|
|
9
|
-
total,
|
|
10
|
-
page,
|
|
11
|
-
limit,
|
|
12
|
-
totalPages
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
exports.default = paginate;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=(e,o,t)=>{const s=e.length,n=Math.ceil(s/t),a=(o-1)*t;return{data:e.slice(a,a+t),total:s,page:o,limit:t,totalPages:n}};exports.default=c;
|
package/cjs/utils/parallel.cjs
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const parallel = (promises) => Promise.all(promises);
|
|
4
|
-
exports.default = parallel;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=e=>Promise.all(e);exports.default=l;
|
package/cjs/utils/percentage.cjs
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const percentage = (part, total, decimals = 2) => {
|
|
4
|
-
if (typeof part !== "number" || typeof total !== "number" || total === 0) return 0;
|
|
5
|
-
return roundTo(part / total * 100, decimals);
|
|
6
|
-
};
|
|
7
|
-
const roundTo = (num, decimals) => {
|
|
8
|
-
const factor = Math.pow(10, decimals);
|
|
9
|
-
return Math.round(num * factor) / factor;
|
|
10
|
-
};
|
|
11
|
-
exports.default = percentage;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=(r,e,t=2)=>typeof r!="number"||typeof e!="number"||e===0?0:n(r/e*100,t),n=(r,e)=>{const t=Math.pow(10,e);return Math.round(r*t)/t};exports.default=u;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const permissionGuard = (role, currentRoles = []) => {
|
|
4
|
-
if (typeof window !== "undefined" && Array.isArray(window.__userRoles)) {
|
|
5
|
-
return window.__userRoles.includes(role);
|
|
6
|
-
}
|
|
7
|
-
return Array.isArray(currentRoles) && currentRoles.includes(role);
|
|
8
|
-
};
|
|
9
|
-
exports.default = permissionGuard;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=(e,r=[])=>typeof window!="undefined"&&Array.isArray(window.__userRoles)?window.__userRoles.includes(e):Array.isArray(r)&&r.includes(e);exports.default=i;
|
package/cjs/utils/pick.cjs
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const pick = (obj, keys) => Object.fromEntries(keys.filter((k) => k in obj).map((k) => [k, obj[k]]));
|
|
4
|
-
exports.default = pick;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(t,i)=>Object.fromEntries(i.filter(e=>e in t).map(e=>[e,t[e]]));exports.default=r;
|
package/cjs/utils/pipe.cjs
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const pipe = (...fns) => (val) => fns.reduce((cv, cf) => cf(cv), val);
|
|
4
|
-
exports.default = pipe;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=(...e)=>t=>e.reduce((u,l)=>l(u),t);exports.default=o;
|
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const rafThrottle = (fn) => {
|
|
4
|
-
let rafId = null;
|
|
5
|
-
return (...args) => {
|
|
6
|
-
if (rafId !== null) return;
|
|
7
|
-
rafId = requestAnimationFrame(() => {
|
|
8
|
-
fn(...args);
|
|
9
|
-
rafId = null;
|
|
10
|
-
});
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
exports.default = rafThrottle;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=t=>{let e=null;return(...l)=>{e===null&&(e=requestAnimationFrame(()=>{t(...l),e=null}))}};exports.default=r;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const randomBetween = (min, max) => Math.random() * (max - min) + min;
|
|
4
|
-
exports.default = randomBetween;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=(e,t)=>Math.random()*(t-e)+e;exports.default=o;
|
package/cjs/utils/randomInt.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const utils_randomValue = require("./randomValue.cjs");
|
|
4
|
-
const randomInt = (min, max) => {
|
|
5
|
-
return Math.floor(utils_randomValue.default(min, max));
|
|
6
|
-
};
|
|
7
|
-
exports.default = randomInt;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./randomValue.cjs"),u=(e,t)=>Math.floor(r.default(e,t));exports.default=u;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const randomValue = (min, max) => {
|
|
4
|
-
return Math.random() * (max - min + 1) + min;
|
|
5
|
-
};
|
|
6
|
-
exports.default = randomValue;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(e,t)=>Math.random()*(t-e+1)+e;exports.default=r;
|
package/cjs/utils/redirectTo.cjs
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const redirectTo = (path) => {
|
|
4
|
-
window.location.href = path;
|
|
5
|
-
};
|
|
6
|
-
exports.default = redirectTo;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=e=>{window.location.href=e};exports.default=t;
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const removeExtraSpaces = (str) => {
|
|
4
|
-
if (typeof str !== "string") return str;
|
|
5
|
-
return str.trim().replace(/\s+/g, " ");
|
|
6
|
-
};
|
|
7
|
-
exports.default = removeExtraSpaces;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=e=>typeof e!="string"?e:e.trim().replace(/\s+/g," ");exports.default=t;
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const removeLocalStorage = (key) => {
|
|
4
|
-
localStorage.removeItem(key);
|
|
5
|
-
};
|
|
6
|
-
exports.default = removeLocalStorage;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=e=>{localStorage.removeItem(e)};exports.default=o;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const removeQueryParam = (key) => {
|
|
4
|
-
const url = new URL(window.location.href);
|
|
5
|
-
url.searchParams.delete(key);
|
|
6
|
-
window.history.pushState({}, "", url);
|
|
7
|
-
};
|
|
8
|
-
exports.default = removeQueryParam;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=t=>{const e=new URL(window.location.href);e.searchParams.delete(t),window.history.pushState({},"",e)};exports.default=o;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const removeToken = (key = "auth_token") => localStorage.removeItem(key);
|
|
4
|
-
exports.default = removeToken;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=(e="auth_token")=>localStorage.removeItem(e);exports.default=t;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const requestIdleTask = (fn) => {
|
|
4
|
-
if (typeof requestIdleCallback !== "undefined") {
|
|
5
|
-
requestIdleCallback(fn);
|
|
6
|
-
} else {
|
|
7
|
-
setTimeout(fn, 1);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.default = requestIdleTask;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=e=>{typeof requestIdleCallback!="undefined"?requestIdleCallback(e):setTimeout(e,1)};exports.default=t;
|
package/cjs/utils/retry.cjs
CHANGED
|
@@ -1,14 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const retry = async (fn, attempts = 3) => {
|
|
4
|
-
let lastError;
|
|
5
|
-
for (let i = 0; i < attempts; i++) {
|
|
6
|
-
try {
|
|
7
|
-
return await fn();
|
|
8
|
-
} catch (err) {
|
|
9
|
-
lastError = err;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
throw lastError;
|
|
13
|
-
};
|
|
14
|
-
exports.default = retry;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=async(r,a=3)=>{let e;for(let t=0;t<a;t++)try{return await r()}catch(l){e=l}throw e};exports.default=o;
|
package/cjs/utils/roundTo.cjs
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const roundTo = (num, decimals = 0) => {
|
|
4
|
-
if (typeof num !== "number") return num;
|
|
5
|
-
const factor = Math.pow(10, decimals);
|
|
6
|
-
return Math.round(num * factor) / factor;
|
|
7
|
-
};
|
|
8
|
-
exports.default = roundTo;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(e,o=0)=>{if(typeof e!="number")return e;const t=Math.pow(10,o);return Math.round(e*t)/t};exports.default=r;
|
package/cjs/utils/safeAsync.cjs
CHANGED
|
@@ -1,11 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const safeAsync = (fn) => async (...args) => {
|
|
4
|
-
try {
|
|
5
|
-
const result = await fn(...args);
|
|
6
|
-
return [null, result];
|
|
7
|
-
} catch (err) {
|
|
8
|
-
return [err, null];
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
exports.default = safeAsync;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=t=>async(...r)=>{try{return[null,await t(...r)]}catch(e){return[e,null]}};exports.default=u;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const safeJSONParse = (str, fallback = null) => {
|
|
4
|
-
try {
|
|
5
|
-
return JSON.parse(str);
|
|
6
|
-
} catch (e) {
|
|
7
|
-
return fallback;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.default = safeJSONParse;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(e,t=null)=>{try{return JSON.parse(e)}catch(u){return t}};exports.default=r;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const safeJSONStringify = (obj, fallback = "", space) => {
|
|
4
|
-
try {
|
|
5
|
-
return JSON.stringify(obj, null, space);
|
|
6
|
-
} catch (e) {
|
|
7
|
-
return fallback;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
exports.default = safeJSONStringify;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=(e,t="",r)=>{try{return JSON.stringify(e,null,r)}catch(i){return t}};exports.default=u;
|
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const scrollToElement = (id, behavior = "smooth") => {
|
|
4
|
-
const el = document.getElementById(id);
|
|
5
|
-
if (el) el.scrollIntoView({
|
|
6
|
-
behavior,
|
|
7
|
-
block: "start"
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
exports.default = scrollToElement;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=(t,o="smooth")=>{const e=document.getElementById(t);e&&e.scrollIntoView({behavior:o,block:"start"})};exports.default=l;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const scrollToTop = (behavior = "smooth") => {
|
|
4
|
-
window.scrollTo({
|
|
5
|
-
top: 0,
|
|
6
|
-
behavior
|
|
7
|
-
});
|
|
8
|
-
};
|
|
9
|
-
exports.default = scrollToTop;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=(o="smooth")=>{window.scrollTo({top:0,behavior:o})};exports.default=e;
|
package/cjs/utils/sequential.cjs
CHANGED
|
@@ -1,10 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const sequential = async (tasks) => {
|
|
4
|
-
const results = [];
|
|
5
|
-
for (const task of tasks) {
|
|
6
|
-
results.push(await task());
|
|
7
|
-
}
|
|
8
|
-
return results;
|
|
9
|
-
};
|
|
10
|
-
exports.default = sequential;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=async t=>{const e=[];for(const s of t)e.push(await s());return e};exports.default=u;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const setLocalStorage = (key, value) => {
|
|
4
|
-
try {
|
|
5
|
-
localStorage.setItem(key, JSON.stringify(value));
|
|
6
|
-
} catch (e) {
|
|
7
|
-
}
|
|
8
|
-
};
|
|
9
|
-
exports.default = setLocalStorage;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(a){}};exports.default=o;
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const setQueryParam = (key, value) => {
|
|
4
|
-
const url = new URL(window.location.href);
|
|
5
|
-
url.searchParams.set(key, value);
|
|
6
|
-
window.history.pushState({}, "", url);
|
|
7
|
-
};
|
|
8
|
-
exports.default = setQueryParam;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=(t,o)=>{const e=new URL(window.location.href);e.searchParams.set(t,o),window.history.pushState({},"",e)};exports.default=r;
|