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
|
@@ -1,97 +1,47 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const Spinner = require("../Spinner/Spinner.cjs");
|
|
6
|
-
const colorMap = require("../../colors/colorMap.cjs");
|
|
7
|
-
const blue = require("../../colors/blue.cjs");
|
|
8
|
-
const Ripple = require("../Ripple/Ripple.cjs");
|
|
9
|
-
const white = require("../../colors/white.cjs");
|
|
10
|
-
const grey = require("../../colors/grey.cjs");
|
|
11
|
-
const constants = require("./constants.cjs");
|
|
12
|
-
const PropTypes = require("prop-types");
|
|
13
|
-
const styled = require("styled-components");
|
|
14
|
-
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
15
|
-
const PropTypes__default = /* @__PURE__ */ _interopDefault(PropTypes);
|
|
16
|
-
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
17
|
-
const ButtonWrapper = styled__default.default.button`
|
|
18
|
-
height: ${({
|
|
19
|
-
$height
|
|
20
|
-
}) => $height}rem;
|
|
21
|
-
width: ${({
|
|
22
|
-
$width
|
|
23
|
-
}) => $width}rem;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),M=require("react"),D=require("../Spinner/Spinner.cjs"),P=require("../../colors/colorMap.cjs"),w=require("../../colors/blue.cjs"),R=require("../Ripple/Ripple.cjs"),S=require("../../colors/white.cjs"),v=require("../../colors/grey.cjs"),y=require("./constants.cjs"),z=require("prop-types"),l=require("styled-components"),x=e=>e&&e.__esModule?e:{default:e},o=x(z),d=x(l),B=d.default.button`
|
|
2
|
+
height: ${({$height:e})=>e}rem;
|
|
3
|
+
width: ${({$width:e})=>e}rem;
|
|
24
4
|
border-radius: 0.96rem;
|
|
25
5
|
border: none;
|
|
26
6
|
padding: 0.96rem 0.64rem;
|
|
27
7
|
position: relative;
|
|
28
8
|
overflow: hidden;
|
|
29
|
-
background-color: ${({
|
|
30
|
-
$
|
|
31
|
-
disabled
|
|
32
|
-
}) => disabled ? grey.default.m500 : $selectedColor};
|
|
33
|
-
cursor: ${({
|
|
34
|
-
disabled,
|
|
35
|
-
$isLoading
|
|
36
|
-
}) => disabled ? "not-allowed" : $isLoading ? "auto" : "pointer"};
|
|
9
|
+
background-color: ${({$selectedColor:e,disabled:t})=>t?v.default.m500:e};
|
|
10
|
+
cursor: ${({disabled:e,$isLoading:t})=>e?"not-allowed":t?"auto":"pointer"};
|
|
37
11
|
|
|
38
|
-
${({
|
|
39
|
-
$isLoading
|
|
40
|
-
}) => $isLoading && /*@__PURE__*/styled.css`
|
|
12
|
+
${({$isLoading:e})=>e&&l.css`
|
|
41
13
|
pointer-events: none;
|
|
42
14
|
`};
|
|
43
15
|
|
|
44
|
-
${({
|
|
45
|
-
disabled,
|
|
46
|
-
$isLoading
|
|
47
|
-
}) => !(disabled || $isLoading) && /*@__PURE__*/styled.css`
|
|
16
|
+
${({disabled:e,$isLoading:t})=>!(e||t)&&l.css`
|
|
48
17
|
&:hover {
|
|
49
|
-
background-color: ${({
|
|
50
|
-
$hoverColor
|
|
51
|
-
}) => $hoverColor};
|
|
18
|
+
background-color: ${({$hoverColor:n})=>n};
|
|
52
19
|
}
|
|
53
20
|
|
|
54
21
|
&:active {
|
|
55
|
-
background-color: ${({
|
|
56
|
-
$activeColor
|
|
57
|
-
}) => $activeColor};
|
|
22
|
+
background-color: ${({$activeColor:n})=>n};
|
|
58
23
|
}
|
|
59
24
|
`};
|
|
60
25
|
|
|
61
26
|
&:focus-visible {
|
|
62
27
|
outline: none;
|
|
63
28
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
font-size: ${({
|
|
67
|
-
$font
|
|
68
|
-
}) => $font}rem;
|
|
29
|
+
`,E=d.default.div`
|
|
30
|
+
font-size: ${({$font:e})=>e}rem;
|
|
69
31
|
font-weight: 500;
|
|
70
32
|
max-width: 100%;
|
|
71
33
|
overflow: hidden;
|
|
72
|
-
color: ${({
|
|
73
|
-
$
|
|
74
|
-
}) => $textColor};
|
|
75
|
-
opacity: ${({
|
|
76
|
-
$isLoading
|
|
77
|
-
}) => $isLoading ? 0 : 1};
|
|
34
|
+
color: ${({$textColor:e})=>e};
|
|
35
|
+
opacity: ${({$isLoading:e})=>e?0:1};
|
|
78
36
|
transition: opacity 0.3s ease;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
$height
|
|
83
|
-
}) => $height}rem;
|
|
84
|
-
width: ${({
|
|
85
|
-
$width
|
|
86
|
-
}) => $width}rem;
|
|
37
|
+
`,K=d.default.div`
|
|
38
|
+
height: ${({$height:e})=>e}rem;
|
|
39
|
+
width: ${({$width:e})=>e}rem;
|
|
87
40
|
display: inline-block;
|
|
88
41
|
position: relative;
|
|
89
42
|
border-radius: 0.96rem;
|
|
90
43
|
|
|
91
|
-
${({
|
|
92
|
-
disabled,
|
|
93
|
-
$isLoading
|
|
94
|
-
}) => !(disabled || $isLoading) && /*@__PURE__*/styled.css`
|
|
44
|
+
${({disabled:e,$isLoading:t})=>!(e||t)&&l.css`
|
|
95
45
|
box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.2);
|
|
96
46
|
transition:
|
|
97
47
|
transform 0.2s,
|
|
@@ -103,98 +53,13 @@ const ButtonContainer = styled__default.default.div`
|
|
|
103
53
|
transform: translateY(-2px);
|
|
104
54
|
}
|
|
105
55
|
`};
|
|
106
|
-
|
|
107
|
-
const SpinnerWrapper = styled__default.default.div`
|
|
56
|
+
`,O=d.default.div`
|
|
108
57
|
position: absolute;
|
|
109
58
|
inset: 0;
|
|
110
59
|
display: flex;
|
|
111
60
|
align-items: center;
|
|
112
61
|
justify-content: center;
|
|
113
|
-
opacity: ${({
|
|
114
|
-
$isLoading
|
|
115
|
-
}) => $isLoading ? 1 : 0};
|
|
62
|
+
opacity: ${({$isLoading:e})=>e?1:0};
|
|
116
63
|
transition: opacity 0.3s ease;
|
|
117
64
|
pointer-events: none;
|
|
118
|
-
|
|
119
|
-
const Rippled = ({
|
|
120
|
-
theme,
|
|
121
|
-
children
|
|
122
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(Ripple.default, { rippleColor: theme["m100"], children });
|
|
123
|
-
const Button = (props) => {
|
|
124
|
-
var _a;
|
|
125
|
-
const {
|
|
126
|
-
children,
|
|
127
|
-
theme = blue.blue,
|
|
128
|
-
size = constants.MEDIUM,
|
|
129
|
-
width,
|
|
130
|
-
leftIcon,
|
|
131
|
-
rightIcon,
|
|
132
|
-
isLoading,
|
|
133
|
-
textColor,
|
|
134
|
-
onKeyDown,
|
|
135
|
-
...rest
|
|
136
|
-
} = props || {};
|
|
137
|
-
const lastKeyPressRef = react.useRef(0);
|
|
138
|
-
const handleKeyDown = (e) => {
|
|
139
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
140
|
-
const now = Date.now();
|
|
141
|
-
if (now - lastKeyPressRef.current < 500) {
|
|
142
|
-
e.preventDefault();
|
|
143
|
-
e.stopPropagation();
|
|
144
|
-
return;
|
|
145
|
-
}
|
|
146
|
-
lastKeyPressRef.current = now;
|
|
147
|
-
}
|
|
148
|
-
onKeyDown == null ? void 0 : onKeyDown(e);
|
|
149
|
-
};
|
|
150
|
-
const {
|
|
151
|
-
m400: selectedColor,
|
|
152
|
-
m500: hoverColor,
|
|
153
|
-
m600: activeColor
|
|
154
|
-
} = (_a = colorMap.default[theme]) != null ? _a : blue.blue;
|
|
155
|
-
const {
|
|
156
|
-
height: $height,
|
|
157
|
-
width: $width,
|
|
158
|
-
font: $font
|
|
159
|
-
} = constants.SIZE[size] || {};
|
|
160
|
-
const txtClr = ["white", "yellow"].includes(theme) ? grey.default.m600 : white.default;
|
|
161
|
-
const btnChild = /* @__PURE__ */ jsxRuntime.jsxs(ButtonWrapper, { type: "button", ...rest, onKeyDown: handleKeyDown, ...{
|
|
162
|
-
$hoverColor: hoverColor,
|
|
163
|
-
$activeColor: activeColor,
|
|
164
|
-
$selectedColor: selectedColor,
|
|
165
|
-
$height,
|
|
166
|
-
$width: width || $width,
|
|
167
|
-
disabled: props.disabled,
|
|
168
|
-
$isLoading: isLoading
|
|
169
|
-
}, children: [
|
|
170
|
-
/* @__PURE__ */ jsxRuntime.jsx(SpinnerWrapper, { $isLoading: isLoading, children: /* @__PURE__ */ jsxRuntime.jsx(Spinner.default, { size: "small", color: textColor || txtClr }) }),
|
|
171
|
-
/* @__PURE__ */ jsxRuntime.jsx(Content, { $isLoading: isLoading, $textColor: textColor || txtClr, $font, children })
|
|
172
|
-
] });
|
|
173
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ButtonContainer, { ...{
|
|
174
|
-
$height,
|
|
175
|
-
$width: width || $width,
|
|
176
|
-
disabled: props.disabled,
|
|
177
|
-
$isLoading: isLoading
|
|
178
|
-
}, children: isLoading ? btnChild : /* @__PURE__ */ jsxRuntime.jsx(Rippled, { theme, children: btnChild }) });
|
|
179
|
-
};
|
|
180
|
-
Button.propTypes = {
|
|
181
|
-
/** Button label or content */
|
|
182
|
-
children: PropTypes__default.default.node,
|
|
183
|
-
/** Color theme key from the meticulous-ui color map. Defaults to `'blue'` */
|
|
184
|
-
theme: PropTypes__default.default.string,
|
|
185
|
-
/** Button size variant: `'small'`, `'medium'`, `'large'`, or `'ex-large'` */
|
|
186
|
-
size: PropTypes__default.default.string,
|
|
187
|
-
/** Override the button width */
|
|
188
|
-
width: /* @__PURE__ */ PropTypes__default.default.oneOfType([PropTypes__default.default.string, PropTypes__default.default.number]),
|
|
189
|
-
/** Icon component rendered to the left of the label */
|
|
190
|
-
leftIcon: PropTypes__default.default.elementType,
|
|
191
|
-
/** Icon component rendered to the right of the label */
|
|
192
|
-
rightIcon: PropTypes__default.default.elementType,
|
|
193
|
-
/** Shows a spinner and disables interaction while true */
|
|
194
|
-
isLoading: PropTypes__default.default.bool,
|
|
195
|
-
/** Override the label and icon color */
|
|
196
|
-
textColor: PropTypes__default.default.string,
|
|
197
|
-
/** Disables the button */
|
|
198
|
-
disabled: PropTypes__default.default.bool
|
|
199
|
-
};
|
|
200
|
-
exports.default = Button;
|
|
65
|
+
`,W=({theme:e,children:t})=>r.jsx(R.default,{rippleColor:e.m100,children:t}),C=e=>{var g;const{children:t,theme:n=w.blue,size:q=y.MEDIUM,width:c,leftIcon:U,rightIcon:Y,isLoading:i,textColor:u,onKeyDown:a,...j}=e||{},f=M.useRef(0),_=s=>{if(s.key==="Enter"||s.key===" "){const $=Date.now();if($-f.current<500){s.preventDefault(),s.stopPropagation();return}f.current=$}a==null||a(s)},{m400:T,m500:k,m600:I}=(g=P.default[n])!=null?g:w.blue,{height:h,width:p,font:L}=y.SIZE[q]||{},m=["white","yellow"].includes(n)?v.default.m600:S.default,b=r.jsxs(B,{type:"button",...j,onKeyDown:_,$hoverColor:k,$activeColor:I,$selectedColor:T,$height:h,$width:c||p,disabled:e.disabled,$isLoading:i,children:[r.jsx(O,{$isLoading:i,children:r.jsx(D.default,{size:"small",color:u||m})}),r.jsx(E,{$isLoading:i,$textColor:u||m,$font:L,children:t})]});return r.jsx(K,{$height:h,$width:c||p,disabled:e.disabled,$isLoading:i,children:i?b:r.jsx(W,{theme:n,children:b})})};C.propTypes={children:o.default.node,theme:o.default.string,size:o.default.string,width:o.default.oneOfType([o.default.string,o.default.number]),leftIcon:o.default.elementType,rightIcon:o.default.elementType,isLoading:o.default.bool,textColor:o.default.string,disabled:o.default.bool};exports.default=C;
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const SMALL = "small";
|
|
4
|
-
const MEDIUM = "medium";
|
|
5
|
-
const LARGE = "large";
|
|
6
|
-
const EX_LARGE = "ex-large";
|
|
7
|
-
const SIZE = {
|
|
8
|
-
[SMALL]: {
|
|
9
|
-
height: 4.48,
|
|
10
|
-
width: 8.4,
|
|
11
|
-
font: 1.6
|
|
12
|
-
},
|
|
13
|
-
[MEDIUM]: {
|
|
14
|
-
height: 5.12,
|
|
15
|
-
width: 9.6,
|
|
16
|
-
font: 1.92
|
|
17
|
-
},
|
|
18
|
-
[LARGE]: {
|
|
19
|
-
height: 5.76,
|
|
20
|
-
width: 10.8,
|
|
21
|
-
font: 2.24
|
|
22
|
-
},
|
|
23
|
-
[EX_LARGE]: {
|
|
24
|
-
height: 6.4,
|
|
25
|
-
width: 12,
|
|
26
|
-
font: 2.56
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.EX_LARGE = EX_LARGE;
|
|
30
|
-
exports.LARGE = LARGE;
|
|
31
|
-
exports.MEDIUM = MEDIUM;
|
|
32
|
-
exports.SIZE = SIZE;
|
|
33
|
-
exports.SMALL = SMALL;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="small",e="medium",o="large",h="ex-large",i={[t]:{height:4.48,width:8.4,font:1.6},[e]:{height:5.12,width:9.6,font:1.92},[o]:{height:5.76,width:10.8,font:2.24},[h]:{height:6.4,width:12,font:2.56}};exports.EX_LARGE=h;exports.LARGE=o;exports.MEDIUM=e;exports.SIZE=i;exports.SMALL=t;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Button = require("./Button.cjs");
|
|
4
|
-
exports.default = Button.default;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Button.cjs");exports.default=e.default;
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const react = require("react");
|
|
5
|
-
const ChevronLeft = require("../Icons/ChevronLeft.cjs");
|
|
6
|
-
const ChevronRight = require("../Icons/ChevronRight.cjs");
|
|
7
|
-
const styled = require("styled-components");
|
|
8
|
-
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
9
|
-
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
10
|
-
const Wrapper = styled__default.default.div`
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),s=require("react"),fe=require("../Icons/ChevronLeft.cjs"),he=require("../Icons/ChevronRight.cjs"),Y=require("styled-components"),pe=t=>t&&t.__esModule?t:{default:t},o=pe(Y),xe=o.default.div`
|
|
11
2
|
position: relative;
|
|
12
3
|
display: flex;
|
|
13
4
|
flex-direction: column;
|
|
@@ -15,52 +6,36 @@ const Wrapper = styled__default.default.div`
|
|
|
15
6
|
width: 100%;
|
|
16
7
|
gap: 12px;
|
|
17
8
|
outline: none;
|
|
18
|
-
|
|
19
|
-
const SlideArea = styled__default.default.div`
|
|
9
|
+
`,be=o.default.div`
|
|
20
10
|
position: relative;
|
|
21
11
|
width: 100%;
|
|
22
|
-
|
|
23
|
-
const SlideViewport = styled__default.default.div`
|
|
12
|
+
`,ge=o.default.div`
|
|
24
13
|
overflow: hidden;
|
|
25
14
|
width: 100%;
|
|
26
15
|
outline: none;
|
|
27
|
-
cursor: ${({
|
|
28
|
-
$draggable
|
|
29
|
-
}) => $draggable ? "grab" : "default"};
|
|
16
|
+
cursor: ${({$draggable:t})=>t?"grab":"default"};
|
|
30
17
|
|
|
31
18
|
&:active {
|
|
32
|
-
cursor: ${({
|
|
33
|
-
$draggable
|
|
34
|
-
}) => $draggable ? "grabbing" : "default"};
|
|
19
|
+
cursor: ${({$draggable:t})=>t?"grabbing":"default"};
|
|
35
20
|
}
|
|
36
|
-
|
|
37
|
-
const SlideTrack = styled__default.default.div`
|
|
21
|
+
`,ve=o.default.div`
|
|
38
22
|
display: flex;
|
|
39
23
|
width: 100%;
|
|
40
|
-
transform: translateX(${({
|
|
41
|
-
$
|
|
42
|
-
}) => $translateX}%);
|
|
43
|
-
transition: ${({
|
|
44
|
-
$dragging
|
|
45
|
-
}) => $dragging ? "none" : "transform 0.35s ease"};
|
|
24
|
+
transform: translateX(${({$translateX:t})=>t}%);
|
|
25
|
+
transition: ${({$dragging:t})=>t?"none":"transform 0.35s ease"};
|
|
46
26
|
|
|
47
27
|
@media (prefers-reduced-motion: reduce) {
|
|
48
28
|
transition: none;
|
|
49
29
|
}
|
|
50
30
|
|
|
51
31
|
& > * {
|
|
52
|
-
flex: 0 0 ${({
|
|
53
|
-
$visibleSlides
|
|
54
|
-
}) => 100 / $visibleSlides}%;
|
|
32
|
+
flex: 0 0 ${({$visibleSlides:t})=>100/t}%;
|
|
55
33
|
min-width: 0;
|
|
56
34
|
box-sizing: border-box;
|
|
57
35
|
}
|
|
58
|
-
|
|
59
|
-
const NavButton = styled__default.default.button`
|
|
36
|
+
`,N=o.default.button`
|
|
60
37
|
position: absolute;
|
|
61
|
-
top: ${({
|
|
62
|
-
$arrowTop
|
|
63
|
-
}) => $arrowTop != null ? $arrowTop : "50%"};
|
|
38
|
+
top: ${({$arrowTop:t})=>t!=null?t:"50%"};
|
|
64
39
|
transform: translateY(-50%);
|
|
65
40
|
z-index: 1;
|
|
66
41
|
display: flex;
|
|
@@ -78,10 +53,7 @@ const NavButton = styled__default.default.button`
|
|
|
78
53
|
opacity 0.3s;
|
|
79
54
|
padding: 0;
|
|
80
55
|
|
|
81
|
-
${({
|
|
82
|
-
$direction,
|
|
83
|
-
$overlay
|
|
84
|
-
}) => $direction === "prev" ? `left: ${$overlay ? "12px" : "-16px"};` : `right: ${$overlay ? "12px" : "-16px"};`}
|
|
56
|
+
${({$direction:t,$overlay:l})=>t==="prev"?`left: ${l?"12px":"-16px"};`:`right: ${l?"12px":"-16px"};`}
|
|
85
57
|
|
|
86
58
|
&:hover:not(:disabled) {
|
|
87
59
|
background: #f5f5f5;
|
|
@@ -98,46 +70,33 @@ const NavButton = styled__default.default.button`
|
|
|
98
70
|
border-color: #f9a8c0;
|
|
99
71
|
}
|
|
100
72
|
|
|
101
|
-
${({
|
|
102
|
-
$viewportFocused
|
|
103
|
-
}) => $viewportFocused && `
|
|
73
|
+
${({$viewportFocused:t})=>t&&`
|
|
104
74
|
border-color: #bdbdbd;
|
|
105
75
|
`}
|
|
106
76
|
|
|
107
|
-
${({
|
|
108
|
-
$overlay,
|
|
109
|
-
$visible
|
|
110
|
-
}) => $overlay && !$visible && `
|
|
77
|
+
${({$overlay:t,$visible:l})=>t&&!l&&`
|
|
111
78
|
opacity: 0;
|
|
112
79
|
pointer-events: none;
|
|
113
80
|
`}
|
|
114
|
-
|
|
115
|
-
const DotsWrapper = styled__default.default.div`
|
|
81
|
+
`,me=o.default.div`
|
|
116
82
|
display: flex;
|
|
117
83
|
gap: 6px;
|
|
118
84
|
align-items: center;
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
width: ${({
|
|
122
|
-
$active
|
|
123
|
-
}) => $active ? "20px" : "8px"};
|
|
85
|
+
`,we=o.default.button`
|
|
86
|
+
width: ${({$active:t})=>t?"20px":"8px"};
|
|
124
87
|
height: 8px;
|
|
125
88
|
border-radius: 4px;
|
|
126
89
|
border: none;
|
|
127
|
-
background: ${({
|
|
128
|
-
$active
|
|
129
|
-
}) => $active ? "#333" : "#ccc"};
|
|
90
|
+
background: ${({$active:t})=>t?"#333":"#ccc"};
|
|
130
91
|
cursor: pointer;
|
|
131
92
|
padding: 0;
|
|
132
93
|
transition:
|
|
133
94
|
width 0.2s ease,
|
|
134
95
|
background 0.2s ease;
|
|
135
|
-
|
|
136
|
-
const fillProgress = /*@__PURE__*/styled.keyframes`
|
|
96
|
+
`,$e=Y.keyframes`
|
|
137
97
|
from { width: 0%; }
|
|
138
98
|
to { width: 100%; }
|
|
139
|
-
|
|
140
|
-
const ProgressBar = styled__default.default.div`
|
|
99
|
+
`,je=o.default.div`
|
|
141
100
|
width: 100%;
|
|
142
101
|
height: 3px;
|
|
143
102
|
background: #e0e0e0;
|
|
@@ -151,20 +110,15 @@ const ProgressBar = styled__default.default.div`
|
|
|
151
110
|
inset: 0;
|
|
152
111
|
width: 0%;
|
|
153
112
|
background: #333;
|
|
154
|
-
animation: ${
|
|
155
|
-
|
|
156
|
-
}) => $duration}s linear forwards;
|
|
157
|
-
animation-play-state: ${({
|
|
158
|
-
$paused
|
|
159
|
-
}) => $paused ? "paused" : "running"};
|
|
113
|
+
animation: ${$e} ${({$duration:t})=>t}s linear forwards;
|
|
114
|
+
animation-play-state: ${({$paused:t})=>t?"paused":"running"};
|
|
160
115
|
|
|
161
116
|
@media (prefers-reduced-motion: reduce) {
|
|
162
117
|
animation: none;
|
|
163
118
|
width: 100%;
|
|
164
119
|
}
|
|
165
120
|
}
|
|
166
|
-
|
|
167
|
-
const PauseButton = styled__default.default.button`
|
|
121
|
+
`,ke=o.default.button`
|
|
168
122
|
position: absolute;
|
|
169
123
|
bottom: 8px;
|
|
170
124
|
right: 8px;
|
|
@@ -191,184 +145,4 @@ const PauseButton = styled__default.default.button`
|
|
|
191
145
|
outline: 2px solid #fff;
|
|
192
146
|
outline-offset: 2px;
|
|
193
147
|
}
|
|
194
|
-
|
|
195
|
-
const SWIPE_THRESHOLD = 50;
|
|
196
|
-
const ARROW_HIDE_DELAY = 2e3;
|
|
197
|
-
const PauseIcon = () => /* @__PURE__ */ jsxRuntime.jsxs("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true", children: [
|
|
198
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "2", y: "1", width: "3", height: "10", rx: "1" }),
|
|
199
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "7", y: "1", width: "3", height: "10", rx: "1" })
|
|
200
|
-
] });
|
|
201
|
-
const PlayIcon = () => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M2 1.5l9 4.5-9 4.5V1.5z" }) });
|
|
202
|
-
const Carousel = ({
|
|
203
|
-
data,
|
|
204
|
-
renderCarousel,
|
|
205
|
-
visibleSlides = 1,
|
|
206
|
-
hasArrow = true,
|
|
207
|
-
overlayArrows = false,
|
|
208
|
-
arrowTop,
|
|
209
|
-
areDotsHidden = false,
|
|
210
|
-
autoSlide = false,
|
|
211
|
-
autoSlideSec = 3,
|
|
212
|
-
loop = false,
|
|
213
|
-
dragToSlide = false,
|
|
214
|
-
liveDrag = false,
|
|
215
|
-
liveDragMobile = true,
|
|
216
|
-
showProgress = false,
|
|
217
|
-
defaultIndex = 0,
|
|
218
|
-
onSlideChange,
|
|
219
|
-
...rest
|
|
220
|
-
}) => {
|
|
221
|
-
var _a, _b;
|
|
222
|
-
const [currentIndex, setCurrentIndex] = react.useState(defaultIndex);
|
|
223
|
-
const [arrowsVisible, setArrowsVisible] = react.useState(true);
|
|
224
|
-
const [viewportFocused, setViewportFocused] = react.useState(false);
|
|
225
|
-
const [paused, setPaused] = react.useState(false);
|
|
226
|
-
const [dragOffsetPx, setDragOffsetPx] = react.useState(0);
|
|
227
|
-
const [dragging, setDragging] = react.useState(false);
|
|
228
|
-
const [isMobileOrTablet, setIsMobileOrTablet] = react.useState(false);
|
|
229
|
-
const touchStartX = react.useRef(null);
|
|
230
|
-
const dragStartX = react.useRef(null);
|
|
231
|
-
const hideTimer = react.useRef(null);
|
|
232
|
-
const viewportRef = react.useRef(null);
|
|
233
|
-
react.useEffect(() => {
|
|
234
|
-
const mq = window.matchMedia("(max-width: 1024px)");
|
|
235
|
-
setIsMobileOrTablet(mq.matches);
|
|
236
|
-
const handler = (e) => setIsMobileOrTablet(e.matches);
|
|
237
|
-
mq.addEventListener("change", handler);
|
|
238
|
-
return () => mq.removeEventListener("change", handler);
|
|
239
|
-
}, []);
|
|
240
|
-
const maxIndex = data.length - visibleSlides;
|
|
241
|
-
const prev = () => setCurrentIndex((i) => loop && i === 0 ? maxIndex : Math.max(i - 1, 0));
|
|
242
|
-
const next = () => setCurrentIndex((i) => loop && i >= maxIndex ? 0 : Math.min(i + 1, maxIndex));
|
|
243
|
-
react.useEffect(() => {
|
|
244
|
-
onSlideChange == null ? void 0 : onSlideChange(currentIndex);
|
|
245
|
-
}, [currentIndex]);
|
|
246
|
-
const showArrows = () => {
|
|
247
|
-
if (!overlayArrows) return;
|
|
248
|
-
clearTimeout(hideTimer.current);
|
|
249
|
-
setArrowsVisible(true);
|
|
250
|
-
hideTimer.current = setTimeout(() => setArrowsVisible(false), ARROW_HIDE_DELAY);
|
|
251
|
-
};
|
|
252
|
-
const handleMouseEnter = () => {
|
|
253
|
-
setPaused(true);
|
|
254
|
-
if (!overlayArrows) return;
|
|
255
|
-
clearTimeout(hideTimer.current);
|
|
256
|
-
setArrowsVisible(true);
|
|
257
|
-
};
|
|
258
|
-
const handleMouseLeave = () => {
|
|
259
|
-
setPaused(false);
|
|
260
|
-
if (!overlayArrows) return;
|
|
261
|
-
hideTimer.current = setTimeout(() => setArrowsVisible(false), ARROW_HIDE_DELAY);
|
|
262
|
-
};
|
|
263
|
-
react.useEffect(() => {
|
|
264
|
-
if (!overlayArrows) return;
|
|
265
|
-
hideTimer.current = setTimeout(() => setArrowsVisible(false), ARROW_HIDE_DELAY);
|
|
266
|
-
return () => clearTimeout(hideTimer.current);
|
|
267
|
-
}, [overlayArrows]);
|
|
268
|
-
react.useEffect(() => {
|
|
269
|
-
if (!autoSlide || paused) return;
|
|
270
|
-
const id = setInterval(() => {
|
|
271
|
-
setCurrentIndex((i) => i >= maxIndex ? 0 : i + 1);
|
|
272
|
-
}, autoSlideSec * 1e3);
|
|
273
|
-
return () => clearInterval(id);
|
|
274
|
-
}, [autoSlide, autoSlideSec, paused, maxIndex]);
|
|
275
|
-
const getResistantOffset = (offsetPx) => {
|
|
276
|
-
if (loop) return offsetPx;
|
|
277
|
-
if (currentIndex === 0 && offsetPx > 0) return offsetPx * 0.3;
|
|
278
|
-
if (currentIndex === maxIndex && offsetPx < 0) return offsetPx * 0.3;
|
|
279
|
-
return offsetPx;
|
|
280
|
-
};
|
|
281
|
-
const handleTouchStart = (e) => {
|
|
282
|
-
touchStartX.current = e.touches[0].clientX;
|
|
283
|
-
if (liveDragMobile && isMobileOrTablet) setDragging(true);
|
|
284
|
-
showArrows();
|
|
285
|
-
};
|
|
286
|
-
const handleTouchMove = (e) => {
|
|
287
|
-
if (!liveDragMobile || !isMobileOrTablet || touchStartX.current === null) return;
|
|
288
|
-
setDragOffsetPx(getResistantOffset(e.touches[0].clientX - touchStartX.current));
|
|
289
|
-
};
|
|
290
|
-
const handleTouchEnd = (e) => {
|
|
291
|
-
if (liveDragMobile && isMobileOrTablet) {
|
|
292
|
-
setDragging(false);
|
|
293
|
-
setDragOffsetPx(0);
|
|
294
|
-
}
|
|
295
|
-
if (touchStartX.current === null) return;
|
|
296
|
-
const delta = touchStartX.current - e.changedTouches[0].clientX;
|
|
297
|
-
if (delta > SWIPE_THRESHOLD) next();
|
|
298
|
-
else if (delta < -SWIPE_THRESHOLD) prev();
|
|
299
|
-
touchStartX.current = null;
|
|
300
|
-
};
|
|
301
|
-
const handleMouseDown = (e) => {
|
|
302
|
-
if (!dragToSlide) return;
|
|
303
|
-
dragStartX.current = e.clientX;
|
|
304
|
-
if (liveDrag) setDragging(true);
|
|
305
|
-
};
|
|
306
|
-
const handleMouseMove = (e) => {
|
|
307
|
-
if (!dragToSlide || !liveDrag || dragStartX.current === null) return;
|
|
308
|
-
setDragOffsetPx(getResistantOffset(e.clientX - dragStartX.current));
|
|
309
|
-
};
|
|
310
|
-
const handleMouseUp = (e) => {
|
|
311
|
-
if (!dragToSlide || dragStartX.current === null) return;
|
|
312
|
-
if (liveDrag) {
|
|
313
|
-
setDragging(false);
|
|
314
|
-
setDragOffsetPx(0);
|
|
315
|
-
}
|
|
316
|
-
const delta = dragStartX.current - e.clientX;
|
|
317
|
-
if (delta > SWIPE_THRESHOLD) next();
|
|
318
|
-
else if (delta < -SWIPE_THRESHOLD) prev();
|
|
319
|
-
dragStartX.current = null;
|
|
320
|
-
};
|
|
321
|
-
const handleKeyDown = (e) => {
|
|
322
|
-
if (e.key === "ArrowLeft") {
|
|
323
|
-
e.preventDefault();
|
|
324
|
-
prev();
|
|
325
|
-
} else if (e.key === "ArrowRight") {
|
|
326
|
-
e.preventDefault();
|
|
327
|
-
next();
|
|
328
|
-
}
|
|
329
|
-
};
|
|
330
|
-
const containerWidth = (_b = (_a = viewportRef.current) == null ? void 0 : _a.clientWidth) != null ? _b : 0;
|
|
331
|
-
const dragOffsetPercent = containerWidth > 0 ? dragOffsetPx / containerWidth * 100 : 0;
|
|
332
|
-
const translateX = -(currentIndex * (100 / visibleSlides)) + dragOffsetPercent;
|
|
333
|
-
const arrowTopValue = arrowTop !== void 0 ? typeof arrowTop === "number" ? `${arrowTop}px` : arrowTop : void 0;
|
|
334
|
-
const totalSlides = maxIndex + 1;
|
|
335
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(Wrapper, { onClick: showArrows, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onMouseMove: handleMouseMove, onMouseUp: handleMouseUp, onKeyDown: handleKeyDown, role: "region", "aria-label": "Carousel", ...rest, children: [
|
|
336
|
-
/* @__PURE__ */ jsxRuntime.jsxs(SlideArea, { onTouchStart: handleTouchStart, onTouchMove: handleTouchMove, onTouchEnd: handleTouchEnd, children: [
|
|
337
|
-
hasArrow && /* @__PURE__ */ jsxRuntime.jsx(NavButton, { onClick: prev, disabled: !loop && currentIndex === 0, "aria-label": "Previous slide", $direction: "prev", $overlay: overlayArrows, $visible: arrowsVisible, $arrowTop: arrowTopValue, $viewportFocused: viewportFocused, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronLeft.default, { size: 20, "aria-hidden": "true" }) }),
|
|
338
|
-
/* @__PURE__ */ jsxRuntime.jsx(SlideViewport, { ref: viewportRef, tabIndex: 0, "aria-label": "Carousel slides. Use arrow keys to navigate.", $draggable: dragToSlide, onFocus: () => {
|
|
339
|
-
setViewportFocused(true);
|
|
340
|
-
setPaused(true);
|
|
341
|
-
}, onBlur: () => {
|
|
342
|
-
setViewportFocused(false);
|
|
343
|
-
setPaused(false);
|
|
344
|
-
}, onMouseDown: handleMouseDown, onMouseLeave: (e) => {
|
|
345
|
-
if (e.buttons === 1) return;
|
|
346
|
-
if (liveDrag && dragging) {
|
|
347
|
-
setDragging(false);
|
|
348
|
-
setDragOffsetPx(0);
|
|
349
|
-
}
|
|
350
|
-
dragStartX.current = null;
|
|
351
|
-
}, children: /* @__PURE__ */ jsxRuntime.jsx(SlideTrack, { $translateX: translateX, $visibleSlides: visibleSlides, $dragging: dragging, children: data.map(renderCarousel) }) }),
|
|
352
|
-
hasArrow && /* @__PURE__ */ jsxRuntime.jsx(NavButton, { onClick: next, disabled: !loop && currentIndex === maxIndex, "aria-label": "Next slide", $direction: "next", $overlay: overlayArrows, $visible: arrowsVisible, $arrowTop: arrowTopValue, $viewportFocused: viewportFocused, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronRight.default, { size: 20, "aria-hidden": "true" }) }),
|
|
353
|
-
autoSlide && /* @__PURE__ */ jsxRuntime.jsx(PauseButton, { onClick: () => setPaused((p) => !p), "aria-label": paused ? "Play slideshow" : "Pause slideshow", children: paused ? /* @__PURE__ */ jsxRuntime.jsx(PlayIcon, {}) : /* @__PURE__ */ jsxRuntime.jsx(PauseIcon, {}) })
|
|
354
|
-
] }),
|
|
355
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { "aria-live": "polite", "aria-atomic": "true", style: {
|
|
356
|
-
position: "absolute",
|
|
357
|
-
width: 1,
|
|
358
|
-
height: 1,
|
|
359
|
-
overflow: "hidden",
|
|
360
|
-
clip: "rect(0,0,0,0)",
|
|
361
|
-
whiteSpace: "nowrap"
|
|
362
|
-
}, children: [
|
|
363
|
-
"Slide ",
|
|
364
|
-
currentIndex + 1,
|
|
365
|
-
" of ",
|
|
366
|
-
totalSlides
|
|
367
|
-
] }),
|
|
368
|
-
autoSlide && showProgress && /* @__PURE__ */ jsxRuntime.jsx(ProgressBar, { $duration: autoSlideSec, $paused: paused }, currentIndex),
|
|
369
|
-
!areDotsHidden && /* @__PURE__ */ jsxRuntime.jsx(DotsWrapper, { children: Array.from({
|
|
370
|
-
length: totalSlides
|
|
371
|
-
}).map((_, i) => /* @__PURE__ */ jsxRuntime.jsx(Dot, { $active: i === currentIndex, onClick: () => setCurrentIndex(i), "aria-label": `Slide ${i + 1} of ${totalSlides}`, "aria-current": i === currentIndex ? "true" : void 0 }, i)) })
|
|
372
|
-
] });
|
|
373
|
-
};
|
|
374
|
-
exports.default = Carousel;
|
|
148
|
+
`,E=50,D=2e3,ye=()=>n.jsxs("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:[n.jsx("rect",{x:"2",y:"1",width:"3",height:"10",rx:"1"}),n.jsx("rect",{x:"7",y:"1",width:"3",height:"10",rx:"1"})]}),Me=()=>n.jsx("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"currentColor","aria-hidden":"true",children:n.jsx("path",{d:"M2 1.5l9 4.5-9 4.5V1.5z"})}),Ee=({data:t,renderCarousel:l,visibleSlides:R=1,hasArrow:L=!0,overlayArrows:u=!1,arrowTop:m,areDotsHidden:A=!1,autoSlide:w=!1,autoSlideSec:T=3,loop:h=!1,dragToSlide:$=!1,liveDrag:j=!1,liveDragMobile:I=!0,showProgress:G=!1,defaultIndex:J=0,onSlideChange:X,...Q})=>{var U,K;const[i,k]=s.useState(J),[O,p]=s.useState(!0),[P,S]=s.useState(!1),[x,b]=s.useState(!1),[Z,g]=s.useState(0),[q,v]=s.useState(!1),[_,z]=s.useState(!1),d=s.useRef(null),c=s.useRef(null),f=s.useRef(null),B=s.useRef(null);s.useEffect(()=>{const e=window.matchMedia("(max-width: 1024px)");z(e.matches);const r=de=>z(de.matches);return e.addEventListener("change",r),()=>e.removeEventListener("change",r)},[]);const a=t.length-R,y=()=>k(e=>h&&e===0?a:Math.max(e-1,0)),M=()=>k(e=>h&&e>=a?0:Math.min(e+1,a));s.useEffect(()=>{X==null||X(i)},[i]);const V=()=>{u&&(clearTimeout(f.current),p(!0),f.current=setTimeout(()=>p(!1),D))},ee=()=>{b(!0),u&&(clearTimeout(f.current),p(!0))},te=()=>{b(!1),u&&(f.current=setTimeout(()=>p(!1),D))};s.useEffect(()=>{if(u)return f.current=setTimeout(()=>p(!1),D),()=>clearTimeout(f.current)},[u]),s.useEffect(()=>{if(!w||x)return;const e=setInterval(()=>{k(r=>r>=a?0:r+1)},T*1e3);return()=>clearInterval(e)},[w,T,x,a]);const W=e=>h?e:i===0&&e>0||i===a&&e<0?e*.3:e,ne=e=>{d.current=e.touches[0].clientX,I&&_&&v(!0),V()},re=e=>{!I||!_||d.current===null||g(W(e.touches[0].clientX-d.current))},se=e=>{if(I&&_&&(v(!1),g(0)),d.current===null)return;const r=d.current-e.changedTouches[0].clientX;r>E?M():r<-E&&y(),d.current=null},ie=e=>{$&&(c.current=e.clientX,j&&v(!0))},oe=e=>{!$||!j||c.current===null||g(W(e.clientX-c.current))},ae=e=>{if(!$||c.current===null)return;j&&(v(!1),g(0));const r=c.current-e.clientX;r>E?M():r<-E&&y(),c.current=null},ue=e=>{e.key==="ArrowLeft"?(e.preventDefault(),y()):e.key==="ArrowRight"&&(e.preventDefault(),M())},F=(K=(U=B.current)==null?void 0:U.clientWidth)!=null?K:0,ce=F>0?Z/F*100:0,le=-(i*(100/R))+ce,H=m!==void 0?typeof m=="number"?`${m}px`:m:void 0,C=a+1;return n.jsxs(xe,{onClick:V,onMouseEnter:ee,onMouseLeave:te,onMouseMove:oe,onMouseUp:ae,onKeyDown:ue,role:"region","aria-label":"Carousel",...Q,children:[n.jsxs(be,{onTouchStart:ne,onTouchMove:re,onTouchEnd:se,children:[L&&n.jsx(N,{onClick:y,disabled:!h&&i===0,"aria-label":"Previous slide",$direction:"prev",$overlay:u,$visible:O,$arrowTop:H,$viewportFocused:P,children:n.jsx(fe.default,{size:20,"aria-hidden":"true"})}),n.jsx(ge,{ref:B,tabIndex:0,"aria-label":"Carousel slides. Use arrow keys to navigate.",$draggable:$,onFocus:()=>{S(!0),b(!0)},onBlur:()=>{S(!1),b(!1)},onMouseDown:ie,onMouseLeave:e=>{e.buttons!==1&&(j&&q&&(v(!1),g(0)),c.current=null)},children:n.jsx(ve,{$translateX:le,$visibleSlides:R,$dragging:q,children:t.map(l)})}),L&&n.jsx(N,{onClick:M,disabled:!h&&i===a,"aria-label":"Next slide",$direction:"next",$overlay:u,$visible:O,$arrowTop:H,$viewportFocused:P,children:n.jsx(he.default,{size:20,"aria-hidden":"true"})}),w&&n.jsx(ke,{onClick:()=>b(e=>!e),"aria-label":x?"Play slideshow":"Pause slideshow",children:x?n.jsx(Me,{}):n.jsx(ye,{})})]}),n.jsxs("div",{"aria-live":"polite","aria-atomic":"true",style:{position:"absolute",width:1,height:1,overflow:"hidden",clip:"rect(0,0,0,0)",whiteSpace:"nowrap"},children:["Slide ",i+1," of ",C]}),w&&G&&n.jsx(je,{$duration:T,$paused:x},i),!A&&n.jsx(me,{children:Array.from({length:C}).map((e,r)=>n.jsx(we,{$active:r===i,onClick:()=>k(r),"aria-label":`Slide ${r+1} of ${C}`,"aria-current":r===i?"true":void 0},r))})]})};exports.default=Ee;
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const Carousel = require("./Carousel.cjs");
|
|
4
|
-
exports.default = Carousel.default;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./Carousel.cjs");exports.default=e.default;
|