mimir-ui-kit 1.34.4-t → 1.34.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Input-DspsU5F4.js +249 -0
- package/dist/NavigationButtons-DuOoqaPo.js +4907 -0
- package/dist/ProgressBar-DWKyrXzd.js +77 -0
- package/dist/assets/ProgressBar.css +1 -1
- package/dist/assets/ProgressBar2.css +1 -0
- package/dist/assets/Slider.css +1 -1
- package/dist/bugs-CSBdWk0R.js +18 -0
- package/dist/components/Accordion/Accordion.js +212 -187
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +14 -8
- package/dist/components/Accordion/AccordionItem/index.js +2 -2
- package/dist/components/Accordion/constants.js +36 -7
- package/dist/components/Accordion/index.js +6 -6
- package/dist/components/AnchorLink/Link.js +50 -39
- package/dist/components/AnchorLink/constants.js +14 -3
- package/dist/components/AnchorLink/index.js +5 -5
- package/dist/components/Avatar/Avatar.js +42 -37
- package/dist/components/Avatar/constants.js +7 -2
- package/dist/components/Avatar/index.js +4 -4
- package/dist/components/Button/Button.js +75 -59
- package/dist/components/Button/constants.js +52 -7
- package/dist/components/Button/index.js +9 -9
- package/dist/components/CheckboxMimir/CheckboxMimir.js +59 -48
- package/dist/components/CheckboxMimir/index.js +2 -2
- package/dist/components/Chip/Chip.js +47 -35
- package/dist/components/Chip/constants.js +17 -3
- package/dist/components/Chip/index.js +5 -5
- package/dist/components/DatePicker/DatePicker.js +162 -106
- package/dist/components/DatePicker/DatePickerModal.js +151 -99
- package/dist/components/DatePicker/MonthPickerModal.js +90 -61
- package/dist/components/DatePicker/YearPickerModal.js +86 -55
- package/dist/components/DatePicker/constants.js +18 -7
- package/dist/components/DatePicker/index.js +2 -2
- package/dist/components/DatePicker/utils.js +13 -5
- package/dist/components/Drawer/Drawer.js +140 -98
- package/dist/components/Drawer/constants.js +8 -2
- package/dist/components/Drawer/index.js +4 -4
- package/dist/components/GosZnak/GosZnak.js +71 -58
- package/dist/components/GosZnak/constants.js +15 -3
- package/dist/components/GosZnak/index.js +5 -5
- package/dist/components/Image/Image.js +54 -38
- package/dist/components/Image/index.js +2 -2
- package/dist/components/Input/Input.js +3 -3
- package/dist/components/Input/constants.js +20 -4
- package/dist/components/Input/index.js +6 -6
- package/dist/components/InputPassword/InputPassword.js +43 -36
- package/dist/components/InputPassword/index.js +2 -2
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +26 -23
- package/dist/components/InputPhoneNumber/index.js +5 -5
- package/dist/components/InputPhoneNumber/utils.js +24 -7
- package/dist/components/InputRangeSlider/InputRangeSlider.js +158 -110
- package/dist/components/InputRangeSlider/constants.js +16 -6
- package/dist/components/InputRangeSlider/index.js +5 -5
- package/dist/components/ListFiles/ListFiles.js +26 -25
- package/dist/components/ListFiles/constants.js +2 -2
- package/dist/components/ListFiles/index.js +2 -2
- package/dist/components/ListPhotos/ListPhotos.js +22 -21
- package/dist/components/ListPhotos/constants.js +2 -2
- package/dist/components/ListPhotos/index.js +2 -2
- package/dist/components/Loader/Loader.js +16 -10
- package/dist/components/Loader/index.js +2 -2
- package/dist/components/MergedButton/MergedButton.js +49 -41
- package/dist/components/MergedButton/constants.js +7 -2
- package/dist/components/MergedButton/index.js +4 -4
- package/dist/components/NotificationBadge/NotificationBadge.js +25 -22
- package/dist/components/NotificationBadge/constants.js +6 -2
- package/dist/components/NotificationBadge/index.js +4 -4
- package/dist/components/OtpInput/OtpInput.js +51 -45
- package/dist/components/OtpInput/constants.js +6 -4
- package/dist/components/OtpInput/hooks.js +111 -74
- package/dist/components/OtpInput/index.js +2 -2
- package/dist/components/Pagination/Pagination.js +157 -115
- package/dist/components/Pagination/constants.js +4 -3
- package/dist/components/Pagination/index.js +2 -2
- package/dist/components/Portal/Portal.js +8 -6
- package/dist/components/Portal/index.js +2 -2
- package/dist/components/RadioGroup/RadioGroup.js +141 -134
- package/dist/components/RadioGroup/index.js +2 -2
- package/dist/components/SelectSearch/SelectSearch.js +3345 -2412
- package/dist/components/SelectSearch/constants.js +6 -2
- package/dist/components/SelectSearch/index.js +4 -4
- package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.js +31 -29
- package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.js +27 -24
- package/dist/components/Skeleton/SkeletonText/SkeletonText.js +32 -26
- package/dist/components/Skeleton/constants.js +7 -2
- package/dist/components/Skeleton/index.js +8 -8
- package/dist/components/Slider/NavigationButtons/NavigationButtons.d.ts +1 -0
- package/dist/components/Slider/NavigationButtons/NavigationButtons.js +7 -0
- package/dist/components/Slider/NavigationButtons/index.d.ts +1 -0
- package/dist/components/Slider/NavigationButtons/index.js +4 -0
- package/dist/components/Slider/ProgressBar/ProgressBar.d.ts +1 -0
- package/dist/components/Slider/ProgressBar/ProgressBar.js +15 -0
- package/dist/components/Slider/ProgressBar/index.d.ts +1 -0
- package/dist/components/Slider/ProgressBar/index.js +4 -0
- package/dist/components/Slider/Slider.d.ts +4 -1
- package/dist/components/Slider/Slider.js +343 -2938
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.js +2 -3
- package/dist/components/Steps/Steps.js +142 -96
- package/dist/components/Steps/constants.js +54 -18
- package/dist/components/Steps/index.js +5 -5
- package/dist/components/Switcher/Switcher.js +86 -75
- package/dist/components/Switcher/constants.js +6 -2
- package/dist/components/Switcher/index.js +4 -4
- package/dist/components/TabTrail/TabButtons/TabButtons.js +18 -18
- package/dist/components/TabTrail/TabButtons/constants.js +12 -3
- package/dist/components/TabTrail/TabButtons/index.js +2 -2
- package/dist/components/TabTrail/TabTrail.js +245 -227
- package/dist/components/TabTrail/constants.js +6 -2
- package/dist/components/TabTrail/index.js +4 -4
- package/dist/components/Tag/Tag.js +43 -35
- package/dist/components/Tag/constants.js +13 -3
- package/dist/components/Tag/index.js +5 -5
- package/dist/components/TextArea/TextArea.js +175 -134
- package/dist/components/TextArea/hooks.js +14 -12
- package/dist/components/TextArea/index.js +2 -2
- package/dist/components/Timer/Timer.js +21 -17
- package/dist/components/Timer/index.js +2 -2
- package/dist/components/Toasts/ProgressBar.js +3 -3
- package/dist/components/Toasts/Toast.js +48 -47
- package/dist/components/Toasts/ToastList.js +38 -28
- package/dist/components/Toasts/ToastsProvider.js +33 -29
- package/dist/components/Toasts/constants.js +47 -13
- package/dist/components/Toasts/hooks.js +6 -5
- package/dist/components/Toasts/index.js +7 -7
- package/dist/components/Toasts/store.js +34 -24
- package/dist/components/TwinSwitcher/TwinSwitcher.js +55 -51
- package/dist/components/TwinSwitcher/index.js +2 -2
- package/dist/components/UniversalUploader/UniversalUploader.js +89 -61
- package/dist/components/UniversalUploader/constants.js +9 -4
- package/dist/components/UniversalUploader/index.js +4 -4
- package/dist/components/Uploader/Uploader.js +74 -52
- package/dist/components/Uploader/constants.js +13 -10
- package/dist/components/Uploader/index.js +4 -4
- package/dist/components/UploaderFiles/UploaderFiles.js +47 -39
- package/dist/components/UploaderFiles/index.js +2 -2
- package/dist/components/UploaderPhotos/UploaderPhotos.js +52 -44
- package/dist/components/UploaderPhotos/index.js +2 -2
- package/dist/components/Vote/Vote.js +100 -76
- package/dist/components/Vote/constants.js +13 -7
- package/dist/components/Vote/index.js +4 -4
- package/dist/components/index.js +135 -135
- package/dist/field-bS4z9Sdl.js +12 -0
- package/dist/focus-management-1rQPII7Z.js +77 -0
- package/dist/hidden-BuVoeHNy.js +13 -0
- package/dist/hooks/index.js +17 -17
- package/dist/hooks/useClickOutside/index.js +2 -2
- package/dist/hooks/useClickOutside/useClickOutside.js +20 -11
- package/dist/hooks/useCopyToClipboard/index.js +2 -2
- package/dist/hooks/useCopyToClipboard/useCopyToClipboard.js +17 -10
- package/dist/hooks/useInterval/index.js +2 -2
- package/dist/hooks/useInterval/useInterval.js +13 -11
- package/dist/hooks/useLockBodyScroll/index.js +2 -2
- package/dist/hooks/useLockBodyScroll/useLockBodyScroll.js +14 -10
- package/dist/hooks/useMediaQuery/constants.js +24 -3
- package/dist/hooks/useMediaQuery/index.js +5 -5
- package/dist/hooks/useMediaQuery/useMediaQuery.js +13 -10
- package/dist/hooks/useMergeRefs/index.js +2 -2
- package/dist/hooks/useMergeRefs/useMergeRefs.js +20 -21
- package/dist/hooks/useResizeObserver/getElement.js +16 -2
- package/dist/hooks/useResizeObserver/index.js +2 -2
- package/dist/hooks/useResizeObserver/useResizeObserver.js +40 -27
- package/dist/hooks/useTimer/index.js +77 -44
- package/dist/hooks/useTimer/useTimer.js +74 -45
- package/dist/hooks/useTimer/utils.js +67 -50
- package/dist/hooks/useWindowSize/index.js +19 -13
- package/dist/icons/Icon.js +10 -7
- package/dist/icons/components/12px/Close12px.js +16 -14
- package/dist/icons/components/12px/MessageRead12px.js +35 -33
- package/dist/icons/components/16px/Accept16px.js +25 -23
- package/dist/icons/components/16px/Acts16px.js +38 -36
- package/dist/icons/components/16px/Acts16pxF.js +33 -31
- package/dist/icons/components/16px/AdditionalServicess16px.js +31 -29
- package/dist/icons/components/16px/AdditionalServicess16pxF.js +20 -18
- package/dist/icons/components/16px/Agents16px.js +22 -20
- package/dist/icons/components/16px/Agents16pxF.js +20 -18
- package/dist/icons/components/16px/Alarm16px.js +23 -21
- package/dist/icons/components/16px/ArrowDown16px.js +22 -20
- package/dist/icons/components/16px/ArrowLeft16px.js +22 -20
- package/dist/icons/components/16px/ArrowRight16px.js +22 -20
- package/dist/icons/components/16px/ArrowUp16px.js +22 -20
- package/dist/icons/components/16px/ArrowUpright16px.js +22 -20
- package/dist/icons/components/16px/AttachFile16px.js +22 -20
- package/dist/icons/components/16px/Bell16px.js +42 -40
- package/dist/icons/components/16px/Bell16pxF.js +32 -30
- package/dist/icons/components/16px/Calculator16px.js +22 -20
- package/dist/icons/components/16px/CalculatorLkk16px.js +33 -31
- package/dist/icons/components/16px/CalculatorLkk16pxF.js +22 -20
- package/dist/icons/components/16px/Calendar16px.js +22 -20
- package/dist/icons/components/16px/Camera16px.js +34 -32
- package/dist/icons/components/16px/Car16px.js +33 -31
- package/dist/icons/components/16px/Car16pxF.js +22 -20
- package/dist/icons/components/16px/Catalog16px.js +22 -20
- package/dist/icons/components/16px/Certs16px.js +31 -29
- package/dist/icons/components/16px/Certs16pxF.js +31 -29
- package/dist/icons/components/16px/Change16px.js +20 -18
- package/dist/icons/components/16px/Chat16px.js +31 -29
- package/dist/icons/components/16px/Chat16pxF.js +22 -20
- package/dist/icons/components/16px/Chatbot16px.js +262 -260
- package/dist/icons/components/16px/Close16px.js +22 -20
- package/dist/icons/components/16px/CloseFloatMenuArrow16px.js +20 -18
- package/dist/icons/components/16px/CloseFloatMenuMobileArrow16px.js +20 -18
- package/dist/icons/components/16px/Coin16px.js +33 -31
- package/dist/icons/components/16px/Coin16pxF.js +40 -38
- package/dist/icons/components/16px/Contracts16px.js +33 -31
- package/dist/icons/components/16px/Contracts16pxF.js +31 -29
- package/dist/icons/components/16px/CopyClipboard16px.js +25 -23
- package/dist/icons/components/16px/Done16px.js +22 -20
- package/dist/icons/components/16px/Download16px.js +29 -27
- package/dist/icons/components/16px/DragHandle16px.js +20 -18
- package/dist/icons/components/16px/DragHandleHorizontal16px.js +20 -18
- package/dist/icons/components/16px/DragHandleVertical16px.js +20 -18
- package/dist/icons/components/16px/DropdownArrowBottom16px.js +22 -20
- package/dist/icons/components/16px/DropdownArrowLeft16px.js +22 -20
- package/dist/icons/components/16px/DropdownArrowRight16px.js +22 -20
- package/dist/icons/components/16px/DropdownArrowUp16px.js +22 -20
- package/dist/icons/components/16px/Dzen16px.js +20 -18
- package/dist/icons/components/16px/Euro16px.js +23 -21
- package/dist/icons/components/16px/Eye16px.js +33 -31
- package/dist/icons/components/16px/Failure16px.js +25 -23
- package/dist/icons/components/16px/Favorite16px.js +22 -20
- package/dist/icons/components/16px/Favorite16pxF.js +20 -18
- package/dist/icons/components/16px/Filter16px.js +22 -20
- package/dist/icons/components/16px/Flag16pxF.js +14 -12
- package/dist/icons/components/16px/Folder16px.js +22 -20
- package/dist/icons/components/16px/Fullscreen16px.js +22 -20
- package/dist/icons/components/16px/Galery16px.js +25 -23
- package/dist/icons/components/16px/Gear16px.js +33 -31
- package/dist/icons/components/16px/Gift16px.js +31 -29
- package/dist/icons/components/16px/Hint16px.js +23 -21
- package/dist/icons/components/16px/Home16px.js +31 -29
- package/dist/icons/components/16px/Home16pxF.js +22 -20
- package/dist/icons/components/16px/Hot16pxF.js +20 -18
- package/dist/icons/components/16px/Kebab16px.js +14 -12
- package/dist/icons/components/16px/List16px.js +20 -18
- package/dist/icons/components/16px/Location16px.js +33 -31
- package/dist/icons/components/16px/Map16px.js +22 -20
- package/dist/icons/components/16px/Menu16px.js +20 -18
- package/dist/icons/components/16px/MenuMobile16px.js +22 -20
- package/dist/icons/components/16px/Minus16px.js +14 -12
- package/dist/icons/components/16px/Navigation16px.js +22 -20
- package/dist/icons/components/16px/News16px.js +31 -29
- package/dist/icons/components/16px/News16pxF.js +22 -20
- package/dist/icons/components/16px/Number16px.js +31 -29
- package/dist/icons/components/16px/OpenFloatMenuArrow16px.js +20 -18
- package/dist/icons/components/16px/OpenFloatMenuMobileArrow16px.js +20 -18
- package/dist/icons/components/16px/Orders16px.js +31 -29
- package/dist/icons/components/16px/Orders16pxF.js +25 -23
- package/dist/icons/components/16px/Pause16px.js +14 -12
- package/dist/icons/components/16px/Pen16px.js +33 -31
- package/dist/icons/components/16px/Pen16pxF.js +22 -20
- package/dist/icons/components/16px/Phone16px.js +22 -20
- package/dist/icons/components/16px/Play16pxF.js +20 -18
- package/dist/icons/components/16px/Plus16px.js +22 -20
- package/dist/icons/components/16px/Pound16px.js +23 -21
- package/dist/icons/components/16px/PriceDown16px.js +33 -31
- package/dist/icons/components/16px/PriceUp16px.js +33 -31
- package/dist/icons/components/16px/Question16px.js +22 -20
- package/dist/icons/components/16px/Question16pxF.js +22 -20
- package/dist/icons/components/16px/Rutube16px.js +20 -18
- package/dist/icons/components/16px/Scan16px.js +20 -18
- package/dist/icons/components/16px/Search16px.js +22 -20
- package/dist/icons/components/16px/Share16pxF.js +20 -18
- package/dist/icons/components/16px/ShopingCard16px.js +22 -20
- package/dist/icons/components/16px/Sort16px.js +22 -20
- package/dist/icons/components/16px/Star16px.js +22 -20
- package/dist/icons/components/16px/Star16pxF.js +20 -18
- package/dist/icons/components/16px/StarHalf16pxF.js +22 -20
- package/dist/icons/components/16px/Telegram16pxF.js +20 -18
- package/dist/icons/components/16px/TelegramPlane16pxF.js +20 -18
- package/dist/icons/components/16px/Timer16px.js +38 -36
- package/dist/icons/components/16px/Trash16px.js +22 -20
- package/dist/icons/components/16px/TwinArrowLeft16px.js +20 -18
- package/dist/icons/components/16px/TwinArrowRight16px.js +20 -18
- package/dist/icons/components/16px/USDollar16px.js +23 -21
- package/dist/icons/components/16px/Umbrella16px.js +22 -20
- package/dist/icons/components/16px/Umbrella16pxF.js +20 -18
- package/dist/icons/components/16px/UnionIcon16px.js +22 -20
- package/dist/icons/components/16px/User16px.js +31 -29
- package/dist/icons/components/16px/User16pxF.js +20 -18
- package/dist/icons/components/16px/Users16px.js +31 -29
- package/dist/icons/components/16px/Users16pxF.js +20 -18
- package/dist/icons/components/16px/VK16pxF.js +22 -20
- package/dist/icons/components/16px/Waiting16px.js +22 -20
- package/dist/icons/components/16px/Whatsapp16px.js +31 -29
- package/dist/icons/components/16px/WriteUs16px.js +25 -23
- package/dist/icons/components/16px/Youtube16pxF.js +20 -18
- package/dist/icons/components/16px/Yuan16px.js +23 -21
- package/dist/icons/components/24px/Accept24px.js +27 -25
- package/dist/icons/components/24px/Acts24px.js +39 -37
- package/dist/icons/components/24px/Acts24pxF.js +32 -30
- package/dist/icons/components/24px/AdditionalServicess24px.js +32 -30
- package/dist/icons/components/24px/AdditionalServicess24pxF.js +21 -19
- package/dist/icons/components/24px/Agents24px.js +23 -21
- package/dist/icons/components/24px/Agents24pxF.js +30 -28
- package/dist/icons/components/24px/Alarm24px.js +24 -22
- package/dist/icons/components/24px/ArrowDown24px.js +23 -21
- package/dist/icons/components/24px/ArrowLeft24px.js +23 -21
- package/dist/icons/components/24px/ArrowRight24px.js +23 -21
- package/dist/icons/components/24px/ArrowUp24px.js +23 -21
- package/dist/icons/components/24px/ArrowUpright24px.js +23 -21
- package/dist/icons/components/24px/AttachFile24px.js +23 -21
- package/dist/icons/components/24px/Bell24px.js +43 -41
- package/dist/icons/components/24px/Bell24pxF.js +26 -24
- package/dist/icons/components/24px/Calculator24px.js +23 -21
- package/dist/icons/components/24px/CalculatorLkk24px.js +32 -30
- package/dist/icons/components/24px/CalculatorLkk24pxF.js +23 -21
- package/dist/icons/components/24px/Calendar24px.js +23 -21
- package/dist/icons/components/24px/Camera24px.js +23 -21
- package/dist/icons/components/24px/Car24px.js +34 -32
- package/dist/icons/components/24px/Car24pxF.js +32 -30
- package/dist/icons/components/24px/Catalog24px.js +23 -21
- package/dist/icons/components/24px/Certs24px.js +32 -30
- package/dist/icons/components/24px/Certs24pxF.js +32 -30
- package/dist/icons/components/24px/Change24px.js +23 -21
- package/dist/icons/components/24px/Chat24px.js +28 -26
- package/dist/icons/components/24px/Chat24pxF.js +23 -21
- package/dist/icons/components/24px/Chatbot24px.js +263 -261
- package/dist/icons/components/24px/Close24px.js +23 -21
- package/dist/icons/components/24px/CloseFloatMenuArrow24px.js +23 -21
- package/dist/icons/components/24px/CloseFloatMenuMobileArrow24px.js +21 -19
- package/dist/icons/components/24px/Coin24px.js +24 -22
- package/dist/icons/components/24px/Coin24pxF.js +41 -39
- package/dist/icons/components/24px/Contracts24px.js +34 -32
- package/dist/icons/components/24px/Contracts24pxF.js +32 -30
- package/dist/icons/components/24px/CopyClipboard24px.js +26 -24
- package/dist/icons/components/24px/Done24px.js +23 -21
- package/dist/icons/components/24px/Download24px.js +30 -28
- package/dist/icons/components/24px/DragHandle24px.js +21 -19
- package/dist/icons/components/24px/DragHandleHorizontal24px.js +21 -19
- package/dist/icons/components/24px/DragHandleVertical24px.js +21 -19
- package/dist/icons/components/24px/DropdownArrowDown24px.js +23 -21
- package/dist/icons/components/24px/DropdownArrowLeft24px.js +23 -21
- package/dist/icons/components/24px/DropdownArrowRight24px.js +23 -21
- package/dist/icons/components/24px/DropdownArrowUp24px.js +23 -21
- package/dist/icons/components/24px/Dzen24px.js +21 -19
- package/dist/icons/components/24px/Euro24px.js +24 -22
- package/dist/icons/components/24px/Eye24px.js +34 -32
- package/dist/icons/components/24px/Failure24px.js +26 -24
- package/dist/icons/components/24px/Favorite24px.js +23 -21
- package/dist/icons/components/24px/Favorite24pxF.js +21 -19
- package/dist/icons/components/24px/Filter24px.js +21 -19
- package/dist/icons/components/24px/Flag24pxF.js +15 -13
- package/dist/icons/components/24px/Folder24px.js +23 -21
- package/dist/icons/components/24px/Fullscreen24px.js +23 -21
- package/dist/icons/components/24px/Galery24px.js +26 -24
- package/dist/icons/components/24px/Gear24px.js +34 -32
- package/dist/icons/components/24px/Gift24px.js +23 -21
- package/dist/icons/components/24px/Hint24px.js +26 -24
- package/dist/icons/components/24px/Home24px.js +34 -32
- package/dist/icons/components/24px/Home24pxF.js +23 -21
- package/dist/icons/components/24px/Hot24pxF.js +21 -19
- package/dist/icons/components/24px/Improvements24px.js +41 -39
- package/dist/icons/components/24px/Improvements24pxF.js +35 -33
- package/dist/icons/components/24px/Kebab24px.js +21 -19
- package/dist/icons/components/24px/List24px.js +21 -19
- package/dist/icons/components/24px/Location24px.js +34 -32
- package/dist/icons/components/24px/Map24px.js +23 -21
- package/dist/icons/components/24px/Menu24px.js +21 -19
- package/dist/icons/components/24px/MenuMobile24px.js +23 -21
- package/dist/icons/components/24px/Minus24px.js +23 -21
- package/dist/icons/components/24px/Navigation24px.js +23 -21
- package/dist/icons/components/24px/News24px.js +32 -30
- package/dist/icons/components/24px/News24pxF.js +23 -21
- package/dist/icons/components/24px/Number24px.js +32 -30
- package/dist/icons/components/24px/OpenFloatMenuArrow24px.js +21 -19
- package/dist/icons/components/24px/OpenFloatMenuMobileArrow24px.js +23 -21
- package/dist/icons/components/24px/Orders24px.js +32 -30
- package/dist/icons/components/24px/Orders24pxF.js +26 -24
- package/dist/icons/components/24px/Pause24px.js +15 -13
- package/dist/icons/components/24px/Pen24px.js +34 -32
- package/dist/icons/components/24px/Pen24pxF.js +23 -21
- package/dist/icons/components/24px/Phone24px.js +23 -21
- package/dist/icons/components/24px/Play24px.js +21 -19
- package/dist/icons/components/24px/Plus24px.js +23 -21
- package/dist/icons/components/24px/Pound24px.js +24 -22
- package/dist/icons/components/24px/PriceDown24px.js +32 -30
- package/dist/icons/components/24px/PriceUp24px.js +32 -30
- package/dist/icons/components/24px/Question24px.js +32 -30
- package/dist/icons/components/24px/Question24pxF.js +23 -21
- package/dist/icons/components/24px/Rutube24px.js +21 -19
- package/dist/icons/components/24px/Scan24px.js +21 -19
- package/dist/icons/components/24px/Search24px.js +23 -21
- package/dist/icons/components/24px/Share24pxF.js +21 -19
- package/dist/icons/components/24px/ShopingCard24px.js +23 -21
- package/dist/icons/components/24px/Sort24px.js +21 -19
- package/dist/icons/components/24px/Star24px.js +23 -21
- package/dist/icons/components/24px/Star24pxF.js +21 -19
- package/dist/icons/components/24px/StarHalf24pxF.js +23 -21
- package/dist/icons/components/24px/Telegram24pxF.js +21 -19
- package/dist/icons/components/24px/TelegramPlane24pxF.js +21 -19
- package/dist/icons/components/24px/Timer24px.js +39 -37
- package/dist/icons/components/24px/Trash24px.js +43 -41
- package/dist/icons/components/24px/TwinArrowLeft24px.js +21 -19
- package/dist/icons/components/24px/TwinArrowRight24px.js +23 -21
- package/dist/icons/components/24px/USDollar24px.js +24 -22
- package/dist/icons/components/24px/Umbrella24px.js +23 -21
- package/dist/icons/components/24px/Umbrella24pxF.js +21 -19
- package/dist/icons/components/24px/UnionIcon24px.js +23 -21
- package/dist/icons/components/24px/User24px.js +32 -30
- package/dist/icons/components/24px/User24pxF.js +21 -19
- package/dist/icons/components/24px/Users24px.js +23 -21
- package/dist/icons/components/24px/Users24pxF.js +30 -28
- package/dist/icons/components/24px/VK24pxF.js +23 -21
- package/dist/icons/components/24px/Waiting24px.js +23 -21
- package/dist/icons/components/24px/Whatsapp24px.js +32 -30
- package/dist/icons/components/24px/WriteUs24px.js +26 -24
- package/dist/icons/components/24px/Youtube24pxF.js +21 -19
- package/dist/icons/components/24px/Yuan24px.js +24 -22
- package/dist/icons/components/32px/Accept32px.js +26 -24
- package/dist/icons/components/32px/Acts32px.js +39 -37
- package/dist/icons/components/32px/AdditionalServicess32px.js +23 -21
- package/dist/icons/components/32px/AdditionalServicess32pxF.js +21 -19
- package/dist/icons/components/32px/Agents32px.js +35 -33
- package/dist/icons/components/32px/Alarm32px.js +24 -22
- package/dist/icons/components/32px/ArrowDown32px.js +23 -21
- package/dist/icons/components/32px/ArrowLeft32px.js +23 -21
- package/dist/icons/components/32px/ArrowRight32px.js +23 -21
- package/dist/icons/components/32px/ArrowUp32px.js +23 -21
- package/dist/icons/components/32px/ArrowUpright32px.js +23 -21
- package/dist/icons/components/32px/AttachFile32px.js +23 -21
- package/dist/icons/components/32px/Bell32px.js +43 -41
- package/dist/icons/components/32px/Bell32pxF.js +26 -24
- package/dist/icons/components/32px/Calculator32px.js +23 -21
- package/dist/icons/components/32px/CalculatorLkk32px.js +32 -30
- package/dist/icons/components/32px/CalculatorLkk32pxF.js +23 -21
- package/dist/icons/components/32px/Calendar32px.js +23 -21
- package/dist/icons/components/32px/Camera32px.js +35 -33
- package/dist/icons/components/32px/Car32px.js +34 -32
- package/dist/icons/components/32px/Car32pxF.js +26 -24
- package/dist/icons/components/32px/Catalog32px.js +23 -21
- package/dist/icons/components/32px/Certs32px.js +32 -30
- package/dist/icons/components/32px/Certs32pxF.js +32 -30
- package/dist/icons/components/32px/Change32px.js +23 -21
- package/dist/icons/components/32px/Chat32px.js +32 -30
- package/dist/icons/components/32px/Chat32pxF.js +23 -21
- package/dist/icons/components/32px/Chatbot32px.js +263 -261
- package/dist/icons/components/32px/Close32px.js +23 -21
- package/dist/icons/components/32px/CloseFloatMenuArrow32px.js +21 -19
- package/dist/icons/components/32px/CloseFloatMenuMobileArrow32px.js +21 -19
- package/dist/icons/components/32px/Coin32px.js +34 -32
- package/dist/icons/components/32px/Coin32pxF.js +32 -30
- package/dist/icons/components/32px/Contracts32px.js +34 -32
- package/dist/icons/components/32px/Contracts32pxF.js +32 -30
- package/dist/icons/components/32px/CopyClipboard32px.js +32 -30
- package/dist/icons/components/32px/Done32px.js +23 -21
- package/dist/icons/components/32px/Download32px.js +30 -28
- package/dist/icons/components/32px/DragHandle32px.js +21 -19
- package/dist/icons/components/32px/DragHandleHorizontal32px.js +21 -19
- package/dist/icons/components/32px/DragHandleVertical32px.js +21 -19
- package/dist/icons/components/32px/DropdownArrowDown32px.js +23 -21
- package/dist/icons/components/32px/DropdownArrowLeft32px.js +23 -21
- package/dist/icons/components/32px/DropdownArrowRight32px.js +23 -21
- package/dist/icons/components/32px/DropdownArrowUp32px.js +15 -13
- package/dist/icons/components/32px/Dzen32px.js +21 -19
- package/dist/icons/components/32px/Euro32px.js +24 -22
- package/dist/icons/components/32px/Eye32px.js +34 -32
- package/dist/icons/components/32px/Failure32px.js +26 -24
- package/dist/icons/components/32px/Favorite32px.js +23 -21
- package/dist/icons/components/32px/Favorite32pxF.js +21 -19
- package/dist/icons/components/32px/Filter32px.js +21 -19
- package/dist/icons/components/32px/Flag32pxF.js +15 -13
- package/dist/icons/components/32px/Folder32px.js +23 -21
- package/dist/icons/components/32px/Fullscreen32px.js +23 -21
- package/dist/icons/components/32px/Galery32px.js +26 -24
- package/dist/icons/components/32px/Gear32px.js +34 -32
- package/dist/icons/components/32px/Gift32px.js +23 -21
- package/dist/icons/components/32px/Hint32px.js +26 -24
- package/dist/icons/components/32px/Home32px.js +26 -24
- package/dist/icons/components/32px/Home32pxF.js +23 -21
- package/dist/icons/components/32px/Hot32pxF.js +21 -19
- package/dist/icons/components/32px/Kebab32px.js +15 -13
- package/dist/icons/components/32px/List32px.js +21 -19
- package/dist/icons/components/32px/Location32px.js +34 -32
- package/dist/icons/components/32px/Map32px.js +23 -21
- package/dist/icons/components/32px/Menu32px.js +21 -19
- package/dist/icons/components/32px/MenuMobile32px.js +23 -21
- package/dist/icons/components/32px/Minus32px.js +23 -21
- package/dist/icons/components/32px/Navigation32px.js +23 -21
- package/dist/icons/components/32px/News32px.js +32 -30
- package/dist/icons/components/32px/News32pxF.js +23 -21
- package/dist/icons/components/32px/Number32px.js +32 -30
- package/dist/icons/components/32px/OpenFloatMenuArrow32px.js +21 -19
- package/dist/icons/components/32px/OpenFloatMenuMobileArrow32px.js +23 -21
- package/dist/icons/components/32px/Orders32px.js +41 -39
- package/dist/icons/components/32px/Orders32pxF.js +32 -30
- package/dist/icons/components/32px/Pause32px.js +15 -13
- package/dist/icons/components/32px/Pen32px.js +22 -20
- package/dist/icons/components/32px/Pen32pxF.js +23 -21
- package/dist/icons/components/32px/PersonalManager32px.js +110 -108
- package/dist/icons/components/32px/Phone32px.js +21 -19
- package/dist/icons/components/32px/Play32px.js +21 -19
- package/dist/icons/components/32px/Plus32px.js +23 -21
- package/dist/icons/components/32px/Pound32px.js +24 -22
- package/dist/icons/components/32px/PriceDown32px.js +43 -41
- package/dist/icons/components/32px/PriceUp32px.js +34 -32
- package/dist/icons/components/32px/Question32px.js +32 -30
- package/dist/icons/components/32px/Question32pxF.js +23 -21
- package/dist/icons/components/32px/Rutube32px.js +21 -19
- package/dist/icons/components/32px/Scan32px.js +21 -19
- package/dist/icons/components/32px/Search32px.js +23 -21
- package/dist/icons/components/32px/Share32pxF.js +21 -19
- package/dist/icons/components/32px/ShopimgCard32px.js +23 -21
- package/dist/icons/components/32px/Sort32px.js +21 -19
- package/dist/icons/components/32px/Star32px.js +23 -21
- package/dist/icons/components/32px/Star32pxF.js +21 -19
- package/dist/icons/components/32px/StarHalf32pxF.js +23 -21
- package/dist/icons/components/32px/Telegram32pxF.js +21 -19
- package/dist/icons/components/32px/TelegramPlane32pxF.js +21 -19
- package/dist/icons/components/32px/Timer32px.js +33 -31
- package/dist/icons/components/32px/Trash32px.js +43 -41
- package/dist/icons/components/32px/TwinArrowLeft32px.js +21 -19
- package/dist/icons/components/32px/TwinArrowRight32px.js +21 -19
- package/dist/icons/components/32px/USDollar32px.js +24 -22
- package/dist/icons/components/32px/Umbrella32px.js +23 -21
- package/dist/icons/components/32px/Umbrella32pxF.js +23 -21
- package/dist/icons/components/32px/UnionIcon32px.js +23 -21
- package/dist/icons/components/32px/User32px.js +32 -30
- package/dist/icons/components/32px/User32pxF.js +21 -19
- package/dist/icons/components/32px/Users32px.js +23 -21
- package/dist/icons/components/32px/Users32pxF.js +24 -22
- package/dist/icons/components/32px/VK32pxF.js +23 -21
- package/dist/icons/components/32px/Waiting32px.js +23 -21
- package/dist/icons/components/32px/Whatsapp32px.js +32 -30
- package/dist/icons/components/32px/WriteUs32px.js +26 -24
- package/dist/icons/components/32px/Youtube32pxF.js +21 -19
- package/dist/icons/components/32px/Yuan32px.js +24 -22
- package/dist/icons/components/Mans.js +5 -5
- package/dist/icons/components/Step.js +5 -5
- package/dist/icons/components/StepXL.js +7 -7
- package/dist/icons/components/auto-logo/ACE.js +21 -19
- package/dist/icons/components/auto-logo/Alim.js +23 -21
- package/dist/icons/components/auto-logo/Amur.js +23 -21
- package/dist/icons/components/auto-logo/Ankai.js +23 -21
- package/dist/icons/components/auto-logo/ArrowLength.js +21 -19
- package/dist/icons/components/auto-logo/Audi.js +20 -18
- package/dist/icons/components/auto-logo/BMW.js +41 -39
- package/dist/icons/components/auto-logo/BRP.js +32 -30
- package/dist/icons/components/auto-logo/Bomag.js +32 -30
- package/dist/icons/components/auto-logo/Case.js +23 -21
- package/dist/icons/components/auto-logo/Caterpillar.js +37 -35
- package/dist/icons/components/auto-logo/ChMZAP.js +46 -44
- package/dist/icons/components/auto-logo/ChTZ.js +32 -30
- package/dist/icons/components/auto-logo/Changan.js +21 -19
- package/dist/icons/components/auto-logo/Cherry.js +32 -30
- package/dist/icons/components/auto-logo/Citroen.js +23 -21
- package/dist/icons/components/auto-logo/DaewooFull.js +58 -56
- package/dist/icons/components/auto-logo/DaewooSymbol.js +51 -49
- package/dist/icons/components/auto-logo/Daf.js +23 -21
- package/dist/icons/components/auto-logo/Dayun.js +23 -21
- package/dist/icons/components/auto-logo/DongFeng.js +23 -21
- package/dist/icons/components/auto-logo/Ducati.js +32 -30
- package/dist/icons/components/auto-logo/Exeed.js +32 -30
- package/dist/icons/components/auto-logo/Faw.js +34 -32
- package/dist/icons/components/auto-logo/Fenix.js +114 -112
- package/dist/icons/components/auto-logo/Fiat.js +37 -35
- package/dist/icons/components/auto-logo/Ford.js +41 -39
- package/dist/icons/components/auto-logo/Foton.js +32 -30
- package/dist/icons/components/auto-logo/Gac.js +21 -19
- package/dist/icons/components/auto-logo/Gaz.js +59 -57
- package/dist/icons/components/auto-logo/Geely.js +25 -23
- package/dist/icons/components/auto-logo/Genesis.js +30 -28
- package/dist/icons/components/auto-logo/Gitte.js +23 -21
- package/dist/icons/components/auto-logo/Grunwald.js +23 -21
- package/dist/icons/components/auto-logo/HartungFull.js +32 -30
- package/dist/icons/components/auto-logo/HartungSymbol.js +32 -30
- package/dist/icons/components/auto-logo/Haval.js +23 -21
- package/dist/icons/components/auto-logo/Higer.js +23 -21
- package/dist/icons/components/auto-logo/Hitachi.js +21 -19
- package/dist/icons/components/auto-logo/Honda.js +37 -35
- package/dist/icons/components/auto-logo/Hongqi.js +30 -28
- package/dist/icons/components/auto-logo/Hongyan.js +23 -21
- package/dist/icons/components/auto-logo/Howo.js +46 -44
- package/dist/icons/components/auto-logo/Hyundai.js +23 -21
- package/dist/icons/components/auto-logo/Infiniti.js +21 -19
- package/dist/icons/components/auto-logo/Isuzu.js +23 -21
- package/dist/icons/components/auto-logo/Iveco.js +23 -21
- package/dist/icons/components/auto-logo/JCB.js +32 -30
- package/dist/icons/components/auto-logo/Jac.js +21 -19
- package/dist/icons/components/auto-logo/Juterborg.js +57 -55
- package/dist/icons/components/auto-logo/KIA.js +23 -21
- package/dist/icons/components/auto-logo/Kaiyi.js +23 -21
- package/dist/icons/components/auto-logo/Kamaz.js +35 -33
- package/dist/icons/components/auto-logo/Kassbohrer.js +23 -21
- package/dist/icons/components/auto-logo/Komatsu.js +21 -19
- package/dist/icons/components/auto-logo/Ktm.js +21 -19
- package/dist/icons/components/auto-logo/LCCE.js +37 -35
- package/dist/icons/components/auto-logo/Lada.js +23 -21
- package/dist/icons/components/auto-logo/Lexus.js +23 -21
- package/dist/icons/components/auto-logo/LiuGong.js +30 -28
- package/dist/icons/components/auto-logo/Lonking.js +30 -28
- package/dist/icons/components/auto-logo/Lovol.js +21 -19
- package/dist/icons/components/auto-logo/MTZBelarus.js +34 -32
- package/dist/icons/components/auto-logo/Man.js +21 -19
- package/dist/icons/components/auto-logo/Maz.js +32 -30
- package/dist/icons/components/auto-logo/MercedesBenz.js +23 -21
- package/dist/icons/components/auto-logo/Meusburger.js +23 -21
- package/dist/icons/components/auto-logo/Mitsubishi.js +21 -19
- package/dist/icons/components/auto-logo/NefAZ.js +30 -28
- package/dist/icons/components/auto-logo/NursanTrailer.js +21 -19
- package/dist/icons/components/auto-logo/Omoda.js +37 -35
- package/dist/icons/components/auto-logo/PSATss.js +37 -35
- package/dist/icons/components/auto-logo/Paz.js +23 -21
- package/dist/icons/components/auto-logo/Peugeot.js +21 -19
- package/dist/icons/components/auto-logo/Raskat.js +37 -35
- package/dist/icons/components/auto-logo/Renault.js +30 -28
- package/dist/icons/components/auto-logo/RussianCarsEmblem.js +32 -30
- package/dist/icons/components/auto-logo/RussianCarsKremlin.js +41 -39
- package/dist/icons/components/auto-logo/Sany.js +50 -48
- package/dist/icons/components/auto-logo/Scania.js +57 -55
- package/dist/icons/components/auto-logo/Schmitz.js +23 -21
- package/dist/icons/components/auto-logo/Shacman.js +30 -28
- package/dist/icons/components/auto-logo/Shantui.js +21 -19
- package/dist/icons/components/auto-logo/Sinanli.js +71 -69
- package/dist/icons/components/auto-logo/Sitrak.js +34 -32
- package/dist/icons/components/auto-logo/SobolIztechmash.js +60 -58
- package/dist/icons/components/auto-logo/Sokol.js +21 -19
- package/dist/icons/components/auto-logo/Sollers.js +23 -21
- package/dist/icons/components/auto-logo/TitanLipetskiyZavodPricepcenter.js +21 -19
- package/dist/icons/components/auto-logo/Tonar.js +23 -21
- package/dist/icons/components/auto-logo/Toyota.js +21 -19
- package/dist/icons/components/auto-logo/Trekol.js +34 -32
- package/dist/icons/components/auto-logo/UAT.js +21 -19
- package/dist/icons/components/auto-logo/Uaz.js +70 -68
- package/dist/icons/components/auto-logo/Ural.js +21 -19
- package/dist/icons/components/auto-logo/VIS.js +21 -19
- package/dist/icons/components/auto-logo/VKR.js +32 -30
- package/dist/icons/components/auto-logo/Volkswagen.js +23 -21
- package/dist/icons/components/auto-logo/Volvo.js +21 -19
- package/dist/icons/components/auto-logo/Wielton.js +21 -19
- package/dist/icons/components/auto-logo/XCMG.js +37 -35
- package/dist/icons/components/auto-logo/Yutong.js +72 -70
- package/dist/icons/components/auto-logo/Zoomlion.js +21 -19
- package/dist/icons/components/car-icons/AllMetal.js +32 -30
- package/dist/icons/components/car-icons/AllMetalCargoAndPassenger.js +32 -30
- package/dist/icons/components/car-icons/AsphaltPaver.js +35 -33
- package/dist/icons/components/car-icons/Autotower.js +32 -30
- package/dist/icons/components/car-icons/Awning.js +33 -31
- package/dist/icons/components/car-icons/BackhoeLoader.js +39 -37
- package/dist/icons/components/car-icons/Buggy.js +32 -30
- package/dist/icons/components/car-icons/Bulldozer.js +34 -32
- package/dist/icons/components/car-icons/Bus.js +23 -21
- package/dist/icons/components/car-icons/BusBus.js +32 -30
- package/dist/icons/components/car-icons/BusMinibus.js +32 -30
- package/dist/icons/components/car-icons/BusShiftBuses.js +42 -40
- package/dist/icons/components/car-icons/CargoAScrapTruckFromTheCmu.js +39 -37
- package/dist/icons/components/car-icons/CargoAutotower.js +32 -30
- package/dist/icons/components/car-icons/CargoAwning.js +39 -37
- package/dist/icons/components/car-icons/CargoConcreteMixerTruck.js +39 -37
- package/dist/icons/components/car-icons/CargoDrillingRig.js +32 -30
- package/dist/icons/components/car-icons/CargoDumpTruck.js +39 -37
- package/dist/icons/components/car-icons/CargoGarbageTruck.js +39 -37
- package/dist/icons/components/car-icons/CargoGrainCarrier.js +39 -37
- package/dist/icons/components/car-icons/CargoIsothermal.js +39 -37
- package/dist/icons/components/car-icons/CargoOnBoard.js +39 -37
- package/dist/icons/components/car-icons/CargoOnBoardWithCmu.js +39 -37
- package/dist/icons/components/car-icons/CargoPromotionalItem.js +39 -37
- package/dist/icons/components/car-icons/CargoSortingTruck.js +39 -37
- package/dist/icons/components/car-icons/CargoTankerTruck.js +39 -37
- package/dist/icons/components/car-icons/CargoTowTruck.js +32 -30
- package/dist/icons/components/car-icons/CargoTruckCrane.js +41 -39
- package/dist/icons/components/car-icons/CargoVacuumMachine.js +32 -30
- package/dist/icons/components/car-icons/Clearance.js +23 -21
- package/dist/icons/components/car-icons/CombineHarvester.js +39 -37
- package/dist/icons/components/car-icons/Compartment.js +32 -30
- package/dist/icons/components/car-icons/ConcreteMixerTruck.js +39 -37
- package/dist/icons/components/car-icons/ConcretePump.js +40 -38
- package/dist/icons/components/car-icons/Crossover.js +32 -30
- package/dist/icons/components/car-icons/DrillingRigg.js +32 -30
- package/dist/icons/components/car-icons/DumpTruck.js +39 -37
- package/dist/icons/components/car-icons/Excavator.js +23 -21
- package/dist/icons/components/car-icons/ForestPreparationEquipment.js +39 -37
- package/dist/icons/components/car-icons/ForkliftTruck.js +32 -30
- package/dist/icons/components/car-icons/FrontLoader.js +39 -37
- package/dist/icons/components/car-icons/Hatchback.js +32 -30
- package/dist/icons/components/car-icons/IceRink.js +34 -32
- package/dist/icons/components/car-icons/Isothermal.js +39 -37
- package/dist/icons/components/car-icons/Liftback.js +23 -21
- package/dist/icons/components/car-icons/MiniEscalator.js +41 -39
- package/dist/icons/components/car-icons/MiniLoader.js +32 -30
- package/dist/icons/components/car-icons/MiningDumpTruck.js +39 -37
- package/dist/icons/components/car-icons/Minitractor.js +32 -30
- package/dist/icons/components/car-icons/Minivan.js +32 -30
- package/dist/icons/components/car-icons/MotorGrader.js +32 -30
- package/dist/icons/components/car-icons/MotorVehiclesBike.js +24 -22
- package/dist/icons/components/car-icons/MotorVehiclesQuadBike.js +30 -28
- package/dist/icons/components/car-icons/OffRoadVehicle.js +32 -30
- package/dist/icons/components/car-icons/OnBoard.js +39 -37
- package/dist/icons/components/car-icons/OnBoardCargoAndPassengerTransport.js +39 -37
- package/dist/icons/components/car-icons/OnBoardWithCmu.js +39 -37
- package/dist/icons/components/car-icons/OtherAgriculturalMachinery.js +48 -46
- package/dist/icons/components/car-icons/OtherCareerTechniques.js +39 -37
- package/dist/icons/components/car-icons/Pickup.js +23 -21
- package/dist/icons/components/car-icons/PickupTruck.js +32 -30
- package/dist/icons/components/car-icons/PilingInstallation.js +34 -32
- package/dist/icons/components/car-icons/PromotionalItem.js +39 -37
- package/dist/icons/components/car-icons/PublicUtilityVehicle.js +46 -44
- package/dist/icons/components/car-icons/QuarryExcavator.js +26 -24
- package/dist/icons/components/car-icons/Scooter.js +30 -28
- package/dist/icons/components/car-icons/Sedan.js +32 -30
- package/dist/icons/components/car-icons/Snowmobile.js +39 -37
- package/dist/icons/components/car-icons/TankerTruck.js +39 -37
- package/dist/icons/components/car-icons/TelescopicLoader.js +32 -30
- package/dist/icons/components/car-icons/TheLift.js +37 -35
- package/dist/icons/components/car-icons/TowTruck.js +32 -30
- package/dist/icons/components/car-icons/Tractor.js +32 -30
- package/dist/icons/components/car-icons/TractorTruck.js +39 -37
- package/dist/icons/components/car-icons/Trailerr.js +23 -21
- package/dist/icons/components/car-icons/TrailersCarCarrier.js +41 -39
- package/dist/icons/components/car-icons/TrailersCattleTruck.js +32 -30
- package/dist/icons/components/car-icons/TrailersContainerShip.js +40 -38
- package/dist/icons/components/car-icons/TrailersCurtainSide.js +39 -37
- package/dist/icons/components/car-icons/TrailersDumpTruck.js +39 -37
- package/dist/icons/components/car-icons/TrailersGrainTruck.js +39 -37
- package/dist/icons/components/car-icons/TrailersHeavyTruck.js +39 -37
- package/dist/icons/components/car-icons/TrailersIsothermal.js +39 -37
- package/dist/icons/components/car-icons/TrailersOther.js +39 -37
- package/dist/icons/components/car-icons/TrailersTankerTruck.js +39 -37
- package/dist/icons/components/car-icons/TruckCrane.js +41 -39
- package/dist/icons/components/car-icons/Universal.js +32 -30
- package/dist/icons/components/car-icons/Van.js +23 -21
- package/dist/icons/components/car-icons/Ycles.js +42 -40
- package/dist/icons/components/car-parameters-icons/Acceleration.js +32 -30
- package/dist/icons/components/car-parameters-icons/Berths.js +37 -35
- package/dist/icons/components/car-parameters-icons/Bucket.js +21 -19
- package/dist/icons/components/car-parameters-icons/BucketLoadingCapacity.js +23 -21
- package/dist/icons/components/car-parameters-icons/BucketVolume.js +30 -28
- package/dist/icons/components/car-parameters-icons/CabinTurn.js +32 -30
- package/dist/icons/components/car-parameters-icons/CarBodySize.js +32 -30
- package/dist/icons/components/car-parameters-icons/CarBodyType.js +23 -21
- package/dist/icons/components/car-parameters-icons/CarColor.js +32 -30
- package/dist/icons/components/car-parameters-icons/Cylinders.js +35 -33
- package/dist/icons/components/car-parameters-icons/Dimensions.js +32 -30
- package/dist/icons/components/car-parameters-icons/EngineType.js +21 -19
- package/dist/icons/components/car-parameters-icons/FuelConsumption.js +21 -19
- package/dist/icons/components/car-parameters-icons/GearType.js +24 -22
- package/dist/icons/components/car-parameters-icons/LiftingHeight.js +21 -19
- package/dist/icons/components/car-parameters-icons/LoadingCapacity.js +23 -21
- package/dist/icons/components/car-parameters-icons/NumberOfAxes.js +23 -21
- package/dist/icons/components/car-parameters-icons/NumberOfSeats.js +21 -19
- package/dist/icons/components/car-parameters-icons/TrailerType.js +30 -28
- package/dist/icons/components/car-parameters-icons/UnloadingType.js +30 -28
- package/dist/icons/components/car-parameters-icons/Weight.js +34 -32
- package/dist/icons/components/car-parameters-icons/WheelDriveType.js +30 -28
- package/dist/icons/components/car-parameters-icons/WheelSheme.js +32 -30
- package/dist/icons/components/cars-stubus/Bike.js +23 -21
- package/dist/icons/components/cars-stubus/Car.js +23 -21
- package/dist/icons/components/cars-stubus/Equipment.js +23 -21
- package/dist/icons/components/cars-stubus/Truck.js +23 -21
- package/dist/icons/components/index.js +579 -579
- package/dist/icons/index.js +2 -2
- package/dist/index-CweZ_OcN.js +65 -0
- package/dist/index-FDVpKRvA.js +2010 -0
- package/dist/index.js +158 -158
- package/dist/keyboard-B256ZoM-.js +745 -0
- package/dist/label-P7Xsi5N7.js +172 -0
- package/dist/open-closed-CbXq00et.js +93 -0
- package/dist/styles.module-B9L4B63y.js +40 -0
- package/dist/use-active-press-B6yeSopF.js +31 -0
- package/dist/use-by-comparator-BUO78DGe.js +16 -0
- package/dist/use-resolve-button-type-B6LE6gU3.js +19 -0
- package/dist/utils/UUID4.js +4 -4
- package/dist/utils/formating/Date.js +27 -19
- package/dist/utils/formating/FileSize.js +12 -9
- package/dist/utils/formating/Month.js +5 -4
- package/dist/utils/formating/Numbers.js +5 -5
- package/dist/utils/index.js +14 -14
- package/dist/variant.module-BinTBzAV.js +15 -0
- package/package.json +1 -1
- package/dist/Input-BQldEv37.js +0 -198
- package/dist/ProgressBar-C0dC7o7N.js +0 -55
- package/dist/bugs-diTMAGNw.js +0 -18
- package/dist/field-FJ34aSs4.js +0 -12
- package/dist/focus-management-XwV-9qkO.js +0 -77
- package/dist/hidden-DbgtYPOH.js +0 -13
- package/dist/index-DIxK0V-G.js +0 -44
- package/dist/index-DzVMAmli.js +0 -1431
- package/dist/keyboard-B0lm_zyn.js +0 -573
- package/dist/label-y3ANLTNC.js +0 -171
- package/dist/open-closed-Cy6VDfYc.js +0 -93
- package/dist/styles.module-CaPkyXYQ.js +0 -25
- package/dist/use-active-press-86hajhdd.js +0 -31
- package/dist/use-by-comparator-CVuf9KBq.js +0 -16
- package/dist/use-resolve-button-type-BAxjHhds.js +0 -19
- package/dist/variant.module-BXn4N1h0.js +0 -12
@@ -0,0 +1,77 @@
|
|
1
|
+
import { u, a as u$1 } from "./keyboard-B256ZoM-.js";
|
2
|
+
let f = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((e) => `${e}:not([tabindex='-1'])`).join(","), p = ["[data-autofocus]"].map((e) => `${e}:not([tabindex='-1'])`).join(",");
|
3
|
+
var F = ((n) => (n[n.First = 1] = "First", n[n.Previous = 2] = "Previous", n[n.Next = 4] = "Next", n[n.Last = 8] = "Last", n[n.WrapAround = 16] = "WrapAround", n[n.NoScroll = 32] = "NoScroll", n[n.AutoFocus = 64] = "AutoFocus", n))(F || {}), T = ((o) => (o[o.Error = 0] = "Error", o[o.Overflow = 1] = "Overflow", o[o.Success = 2] = "Success", o[o.Underflow = 3] = "Underflow", o))(T || {}), y = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(y || {});
|
4
|
+
function b(e = document.body) {
|
5
|
+
return e == null ? [] : Array.from(e.querySelectorAll(f)).sort((r, t) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (t.tabIndex || Number.MAX_SAFE_INTEGER)));
|
6
|
+
}
|
7
|
+
function S(e = document.body) {
|
8
|
+
return e == null ? [] : Array.from(e.querySelectorAll(p)).sort((r, t) => Math.sign((r.tabIndex || Number.MAX_SAFE_INTEGER) - (t.tabIndex || Number.MAX_SAFE_INTEGER)));
|
9
|
+
}
|
10
|
+
var h = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(h || {});
|
11
|
+
function A(e, r = 0) {
|
12
|
+
var t;
|
13
|
+
return e === ((t = u(e)) == null ? void 0 : t.body) ? false : u$1(r, { [0]() {
|
14
|
+
return e.matches(f);
|
15
|
+
}, [1]() {
|
16
|
+
let u2 = e;
|
17
|
+
for (; u2 !== null; ) {
|
18
|
+
if (u2.matches(f)) return true;
|
19
|
+
u2 = u2.parentElement;
|
20
|
+
}
|
21
|
+
return false;
|
22
|
+
} });
|
23
|
+
}
|
24
|
+
var H = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(H || {});
|
25
|
+
typeof window != "undefined" && typeof document != "undefined" && (document.addEventListener("keydown", (e) => {
|
26
|
+
e.metaKey || e.altKey || e.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
27
|
+
}, true), document.addEventListener("click", (e) => {
|
28
|
+
e.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : e.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
29
|
+
}, true));
|
30
|
+
let w = ["textarea", "input"].join(",");
|
31
|
+
function O(e) {
|
32
|
+
var r, t;
|
33
|
+
return (t = (r = e == null ? void 0 : e.matches) == null ? void 0 : r.call(e, w)) != null ? t : false;
|
34
|
+
}
|
35
|
+
function _(e, r = (t) => t) {
|
36
|
+
return e.slice().sort((t, u2) => {
|
37
|
+
let o = r(t), c = r(u2);
|
38
|
+
if (o === null || c === null) return 0;
|
39
|
+
let l = o.compareDocumentPosition(c);
|
40
|
+
return l & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
41
|
+
});
|
42
|
+
}
|
43
|
+
function P(e, r, { sorted: t = true, relativeTo: u2 = null, skipElements: o = [] } = {}) {
|
44
|
+
let c = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, l = Array.isArray(e) ? t ? _(e) : e : r & 64 ? S(e) : b(e);
|
45
|
+
o.length > 0 && l.length > 1 && (l = l.filter((s) => !o.some((a) => a != null && "current" in a ? (a == null ? void 0 : a.current) === s : a === s))), u2 = u2 != null ? u2 : c.activeElement;
|
46
|
+
let n = (() => {
|
47
|
+
if (r & 5) return 1;
|
48
|
+
if (r & 10) return -1;
|
49
|
+
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
50
|
+
})(), x = (() => {
|
51
|
+
if (r & 1) return 0;
|
52
|
+
if (r & 2) return Math.max(0, l.indexOf(u2)) - 1;
|
53
|
+
if (r & 4) return Math.max(0, l.indexOf(u2)) + 1;
|
54
|
+
if (r & 8) return l.length - 1;
|
55
|
+
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
56
|
+
})(), M = r & 32 ? { preventScroll: true } : {}, m = 0, d = l.length, i;
|
57
|
+
do {
|
58
|
+
if (m >= d || m + d <= 0) return 0;
|
59
|
+
let s = x + m;
|
60
|
+
if (r & 16) s = (s + d) % d;
|
61
|
+
else {
|
62
|
+
if (s < 0) return 3;
|
63
|
+
if (s >= d) return 1;
|
64
|
+
}
|
65
|
+
i = l[s], i == null || i.focus(M), m += n;
|
66
|
+
} while (i !== c.activeElement);
|
67
|
+
return r & 6 && O(i) && i.select(), 2;
|
68
|
+
}
|
69
|
+
export {
|
70
|
+
A,
|
71
|
+
F,
|
72
|
+
P,
|
73
|
+
T,
|
74
|
+
_,
|
75
|
+
f,
|
76
|
+
h
|
77
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { W, H } from "./keyboard-B256ZoM-.js";
|
2
|
+
let a = "span";
|
3
|
+
var s = ((e) => (e[e.None = 1] = "None", e[e.Focusable = 2] = "Focusable", e[e.Hidden = 4] = "Hidden", e))(s || {});
|
4
|
+
function l(t, r) {
|
5
|
+
var n;
|
6
|
+
let { features: d = 1, ...e } = t, o = { ref: r, "aria-hidden": (d & 2) === 2 ? true : (n = e["aria-hidden"]) != null ? n : void 0, hidden: (d & 4) === 4 ? true : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(d & 4) === 4 && (d & 2) !== 2 && { display: "none" } } };
|
7
|
+
return H({ ourProps: o, theirProps: e, slot: {}, defaultTag: a, name: "Hidden" });
|
8
|
+
}
|
9
|
+
let T = W(l);
|
10
|
+
export {
|
11
|
+
T,
|
12
|
+
s
|
13
|
+
};
|
package/dist/hooks/index.js
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import { useMediaQuery
|
2
|
-
import { EMediaQuery
|
3
|
-
import { useLockBodyScroll
|
4
|
-
import { useInterval
|
5
|
-
import { useTimer
|
6
|
-
import { useCopyToClipboard
|
7
|
-
import { useMergeRefs
|
8
|
-
import { useResizeObserver
|
1
|
+
import { useMediaQuery } from "./useMediaQuery/useMediaQuery.js";
|
2
|
+
import { EMediaQuery, EMinMediaQuery } from "./useMediaQuery/constants.js";
|
3
|
+
import { useLockBodyScroll } from "./useLockBodyScroll/useLockBodyScroll.js";
|
4
|
+
import { useInterval } from "./useInterval/useInterval.js";
|
5
|
+
import { useTimer } from "./useTimer/index.js";
|
6
|
+
import { useCopyToClipboard } from "./useCopyToClipboard/useCopyToClipboard.js";
|
7
|
+
import { useMergeRefs } from "./useMergeRefs/useMergeRefs.js";
|
8
|
+
import { useResizeObserver } from "./useResizeObserver/useResizeObserver.js";
|
9
9
|
export {
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
10
|
+
EMediaQuery,
|
11
|
+
EMinMediaQuery,
|
12
|
+
useCopyToClipboard,
|
13
|
+
useInterval,
|
14
|
+
useLockBodyScroll,
|
15
|
+
useMediaQuery,
|
16
|
+
useMergeRefs,
|
17
|
+
useResizeObserver,
|
18
|
+
useTimer
|
19
19
|
};
|
@@ -1,16 +1,25 @@
|
|
1
|
-
import { useEffect
|
2
|
-
function
|
3
|
-
isActive
|
4
|
-
setActive
|
5
|
-
className
|
1
|
+
import { useEffect } from "react";
|
2
|
+
function useClickOutside({
|
3
|
+
isActive,
|
4
|
+
setActive,
|
5
|
+
className
|
6
6
|
}) {
|
7
|
-
|
8
|
-
const
|
9
|
-
|
7
|
+
useEffect(() => {
|
8
|
+
const handleClickOtside = (e) => {
|
9
|
+
if (e.target) {
|
10
|
+
if (!e.target.closest("." + className)) {
|
11
|
+
setActive(false);
|
12
|
+
window.removeEventListener("click", handleClickOtside, true);
|
13
|
+
}
|
14
|
+
}
|
10
15
|
};
|
11
|
-
|
12
|
-
|
16
|
+
if (isActive) {
|
17
|
+
window.addEventListener("click", handleClickOtside, true);
|
18
|
+
} else {
|
19
|
+
window.removeEventListener("click", handleClickOtside, true);
|
20
|
+
}
|
21
|
+
}, [isActive]);
|
13
22
|
}
|
14
23
|
export {
|
15
|
-
|
24
|
+
useClickOutside
|
16
25
|
};
|
@@ -1,16 +1,23 @@
|
|
1
|
-
import { useState
|
2
|
-
function
|
3
|
-
const [
|
4
|
-
|
5
|
-
|
1
|
+
import { useState, useCallback } from "react";
|
2
|
+
function useCopyToClipboard() {
|
3
|
+
const [copiedText, setCopiedText] = useState(null);
|
4
|
+
const copy = useCallback(async (text) => {
|
5
|
+
if (!(navigator == null ? void 0 : navigator.clipboard)) {
|
6
|
+
console.warn("Clipboard not supported");
|
7
|
+
return false;
|
8
|
+
}
|
6
9
|
try {
|
7
|
-
|
8
|
-
|
9
|
-
return
|
10
|
+
await navigator.clipboard.writeText(text);
|
11
|
+
setCopiedText(text);
|
12
|
+
return true;
|
13
|
+
} catch (error) {
|
14
|
+
console.warn("Copy failed", error);
|
15
|
+
setCopiedText(null);
|
16
|
+
return false;
|
10
17
|
}
|
11
18
|
}, []);
|
12
|
-
return [
|
19
|
+
return [copiedText, copy];
|
13
20
|
}
|
14
21
|
export {
|
15
|
-
|
22
|
+
useCopyToClipboard
|
16
23
|
};
|
@@ -1,15 +1,17 @@
|
|
1
|
-
import { useRef
|
2
|
-
function
|
3
|
-
const
|
4
|
-
|
5
|
-
|
1
|
+
import { useRef, useEffect } from "react";
|
2
|
+
function useInterval(callback, delay) {
|
3
|
+
const callbackRef = useRef();
|
4
|
+
callbackRef.current = callback;
|
5
|
+
useEffect(() => {
|
6
|
+
if (!delay) {
|
6
7
|
return;
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
}
|
9
|
+
const interval = setInterval(() => {
|
10
|
+
callbackRef.current && callbackRef.current();
|
11
|
+
}, delay);
|
12
|
+
return () => clearInterval(interval);
|
13
|
+
}, [delay]);
|
12
14
|
}
|
13
15
|
export {
|
14
|
-
|
16
|
+
useInterval
|
15
17
|
};
|
@@ -1,16 +1,20 @@
|
|
1
|
-
import { useLayoutEffect
|
2
|
-
function
|
3
|
-
|
4
|
-
const
|
5
|
-
if (!
|
6
|
-
const
|
1
|
+
import { useLayoutEffect } from "react";
|
2
|
+
function useLockBodyScroll({ on, paddingRight }) {
|
3
|
+
useLayoutEffect(() => {
|
4
|
+
const hasVerticalScrollbar = document.documentElement.scrollHeight > document.documentElement.clientHeight;
|
5
|
+
if (!on || !hasVerticalScrollbar) return;
|
6
|
+
const originalStyle = window.getComputedStyle(document.body).overflow;
|
7
|
+
const originalPaddingStyle = window.getComputedStyle(
|
7
8
|
document.body
|
8
9
|
).paddingRight;
|
9
|
-
|
10
|
-
|
10
|
+
document.body.style.overflow = "hidden";
|
11
|
+
document.body.style.paddingRight = `${paddingRight}px`;
|
12
|
+
return () => {
|
13
|
+
document.body.style.overflow = originalStyle;
|
14
|
+
document.body.style.paddingRight = originalPaddingStyle;
|
11
15
|
};
|
12
|
-
}, [
|
16
|
+
}, [on, paddingRight]);
|
13
17
|
}
|
14
18
|
export {
|
15
|
-
|
19
|
+
useLockBodyScroll
|
16
20
|
};
|
@@ -1,5 +1,26 @@
|
|
1
|
-
var
|
1
|
+
var EMediaQuery = /* @__PURE__ */ ((EMediaQuery2) => {
|
2
|
+
EMediaQuery2["XSS"] = "(max-width: 375px)";
|
3
|
+
EMediaQuery2["XS"] = "(max-width: 600px)";
|
4
|
+
EMediaQuery2["XS1"] = "(max-width: 767px)";
|
5
|
+
EMediaQuery2["S"] = "(max-width: 768px)";
|
6
|
+
EMediaQuery2["M"] = "(max-width: 960px)";
|
7
|
+
EMediaQuery2["L"] = "(max-width: 1280px)";
|
8
|
+
EMediaQuery2["XL"] = "(max-width: 1440px)";
|
9
|
+
EMediaQuery2["XXL"] = "(max-width: 1920px)";
|
10
|
+
return EMediaQuery2;
|
11
|
+
})(EMediaQuery || {});
|
12
|
+
var EMinMediaQuery = /* @__PURE__ */ ((EMinMediaQuery2) => {
|
13
|
+
EMinMediaQuery2["XSS"] = "(min-width: 375px)";
|
14
|
+
EMinMediaQuery2["XS"] = "(min-width: 600px)";
|
15
|
+
EMinMediaQuery2["XS1"] = "(min-width: 767px)";
|
16
|
+
EMinMediaQuery2["S"] = "(min-width: 768px)";
|
17
|
+
EMinMediaQuery2["M"] = "(min-width: 960px)";
|
18
|
+
EMinMediaQuery2["L"] = "(min-width: 1280px)";
|
19
|
+
EMinMediaQuery2["XL"] = "(min-width: 1440px)";
|
20
|
+
EMinMediaQuery2["XXL"] = "(min-width: 1920px)";
|
21
|
+
return EMinMediaQuery2;
|
22
|
+
})(EMinMediaQuery || {});
|
2
23
|
export {
|
3
|
-
|
4
|
-
|
24
|
+
EMediaQuery,
|
25
|
+
EMinMediaQuery
|
5
26
|
};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { useMediaQuery
|
2
|
-
import { EMediaQuery
|
1
|
+
import { useMediaQuery } from "./useMediaQuery.js";
|
2
|
+
import { EMediaQuery, EMinMediaQuery } from "./constants.js";
|
3
3
|
export {
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
EMediaQuery,
|
5
|
+
EMinMediaQuery,
|
6
|
+
useMediaQuery
|
7
7
|
};
|
@@ -1,16 +1,19 @@
|
|
1
|
-
import { useCallback
|
2
|
-
const
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { useCallback, useSyncExternalStore } from "react";
|
2
|
+
const getServerSnapshot = () => false;
|
3
|
+
const useMediaQuery = (query) => {
|
4
|
+
const subscribe = useCallback(
|
5
|
+
(callback) => {
|
6
|
+
const matchMedia = window.matchMedia(query);
|
7
|
+
matchMedia.addEventListener("change", callback);
|
8
|
+
return () => {
|
9
|
+
matchMedia.removeEventListener("change", callback);
|
8
10
|
};
|
9
11
|
},
|
10
|
-
[
|
12
|
+
[query]
|
11
13
|
);
|
12
|
-
|
14
|
+
const getSnapshot = () => window.matchMedia(query).matches;
|
15
|
+
return useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
13
16
|
};
|
14
17
|
export {
|
15
|
-
|
18
|
+
useMediaQuery
|
16
19
|
};
|
@@ -1,29 +1,28 @@
|
|
1
|
-
import { useMemo
|
2
|
-
function
|
3
|
-
if (
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
1
|
+
import { useMemo } from "react";
|
2
|
+
function assignRef(ref, value) {
|
3
|
+
if (ref == null) return;
|
4
|
+
if (typeof ref === "function") {
|
5
|
+
ref(value);
|
6
|
+
return;
|
7
|
+
}
|
8
|
+
try {
|
9
|
+
ref.current = value;
|
10
|
+
} catch (error) {
|
11
|
+
throw new Error(`Cannot assign value '${value}' to ref '${ref}'`);
|
13
12
|
}
|
14
13
|
}
|
15
|
-
function
|
16
|
-
return (
|
17
|
-
|
18
|
-
|
14
|
+
function mergeRefs(...refs) {
|
15
|
+
return (node) => {
|
16
|
+
refs.forEach((ref) => {
|
17
|
+
assignRef(ref, node);
|
19
18
|
});
|
20
19
|
};
|
21
20
|
}
|
22
|
-
function
|
23
|
-
return
|
21
|
+
function useMergeRefs(...refs) {
|
22
|
+
return useMemo(() => mergeRefs(...refs), refs);
|
24
23
|
}
|
25
24
|
export {
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
assignRef,
|
26
|
+
mergeRefs,
|
27
|
+
useMergeRefs
|
29
28
|
};
|
@@ -1,4 +1,18 @@
|
|
1
|
-
const
|
1
|
+
const getElement = (target) => {
|
2
|
+
if (typeof target === "function") {
|
3
|
+
return target();
|
4
|
+
}
|
5
|
+
if (target instanceof Document) {
|
6
|
+
return target;
|
7
|
+
}
|
8
|
+
if (target instanceof Window) {
|
9
|
+
return target;
|
10
|
+
}
|
11
|
+
if (target instanceof Element) {
|
12
|
+
return target;
|
13
|
+
}
|
14
|
+
return target.current;
|
15
|
+
};
|
2
16
|
export {
|
3
|
-
|
17
|
+
getElement
|
4
18
|
};
|
@@ -1,36 +1,49 @@
|
|
1
|
-
import { useState
|
2
|
-
import { getElement
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
import { useState, useRef, useEffect } from "react";
|
2
|
+
import { getElement } from "./getElement.js";
|
3
|
+
const useResizeObserver = (...params) => {
|
4
|
+
const target = typeof params[0] === "object" && !("current" in params[0]) ? void 0 : params[0];
|
5
|
+
const options = target ? params[1] : params[0];
|
6
|
+
const enabled = (options == null ? void 0 : options.enabled) ?? true;
|
7
|
+
const [entries, setEntries] = useState([]);
|
8
|
+
const [internalRef, setInternalRef] = useState();
|
9
|
+
const internalOnChangeRef = useRef();
|
10
|
+
internalOnChangeRef.current = options == null ? void 0 : options.onChange;
|
11
|
+
useEffect(() => {
|
12
|
+
if (!enabled && !target && !internalRef) return;
|
13
|
+
if (Array.isArray(target)) {
|
14
|
+
if (!target.length) return;
|
15
|
+
const observer2 = new ResizeObserver((entries2) => {
|
16
|
+
var _a;
|
17
|
+
setEntries(entries2);
|
18
|
+
(_a = internalOnChangeRef.current) == null ? void 0 : _a.call(internalOnChangeRef, entries2, observer2);
|
12
19
|
});
|
13
|
-
|
14
|
-
const
|
15
|
-
|
16
|
-
|
17
|
-
|
20
|
+
target.forEach((target2) => {
|
21
|
+
const element2 = getElement(target2);
|
22
|
+
if (!element2) return;
|
23
|
+
observer2.observe(element2, options);
|
24
|
+
});
|
25
|
+
return () => {
|
26
|
+
observer2.disconnect();
|
18
27
|
};
|
19
28
|
}
|
20
|
-
const
|
21
|
-
if (!
|
22
|
-
const
|
23
|
-
var
|
24
|
-
|
29
|
+
const element = target ? getElement(target) : internalRef;
|
30
|
+
if (!element) return;
|
31
|
+
const observer = new ResizeObserver((entries2) => {
|
32
|
+
var _a;
|
33
|
+
setEntries(entries2);
|
34
|
+
(_a = internalOnChangeRef.current) == null ? void 0 : _a.call(internalOnChangeRef, entries2, observer);
|
25
35
|
});
|
26
|
-
|
27
|
-
|
36
|
+
observer.observe(element, options);
|
37
|
+
return () => {
|
38
|
+
observer.disconnect();
|
28
39
|
};
|
29
|
-
}, [
|
30
|
-
|
31
|
-
|
40
|
+
}, [internalRef, target, options == null ? void 0 : options.box, enabled]);
|
41
|
+
if (target) return { entries };
|
42
|
+
return {
|
43
|
+
ref: setInternalRef,
|
44
|
+
entries
|
32
45
|
};
|
33
46
|
};
|
34
47
|
export {
|
35
|
-
|
48
|
+
useResizeObserver
|
36
49
|
};
|