mimir-ui-kit 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/Button.css +1 -1
- package/dist/assets/ListPhotos.css +1 -0
- package/dist/assets/Uploader.css +1 -0
- package/dist/assets/UploaderPhotos.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Button/Button.js +23 -22
- package/dist/components/Button/constants.d.ts +2 -1
- package/dist/components/Button/constants.js +1 -0
- package/dist/components/ListPhotos/ListPhotos.d.ts +23 -0
- package/dist/components/ListPhotos/ListPhotos.js +33 -0
- package/dist/components/ListPhotos/constants.d.ts +3 -0
- package/dist/components/ListPhotos/constants.js +21 -0
- package/dist/components/ListPhotos/index.d.ts +2 -0
- package/dist/components/ListPhotos/index.js +4 -0
- package/dist/components/RadioGroup/RadioGroup.js +2 -5
- package/dist/components/SelectSearch/SelectSearch.js +194 -105
- package/dist/components/Switch/Switch.js +2 -4
- package/dist/components/Uploader/Uploader.d.ts +30 -0
- package/dist/components/Uploader/Uploader.js +90 -0
- package/dist/components/Uploader/constants.d.ts +5 -0
- package/dist/components/Uploader/constants.js +16 -0
- package/dist/components/Uploader/index.d.ts +2 -0
- package/dist/components/Uploader/index.js +4 -0
- package/dist/components/UploaderPhotos/UploaderPhotos.d.ts +29 -0
- package/dist/components/UploaderPhotos/UploaderPhotos.js +46 -0
- package/dist/components/UploaderPhotos/index.d.ts +2 -0
- package/dist/components/UploaderPhotos/index.js +4 -0
- package/dist/components/index.d.ts +0 -4
- package/dist/components/index.js +0 -10
- package/dist/{focus-management-1rQPII7Z.js → focus-management-CFDo6ZSc.js} +26 -12
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/12px/Close12px.d.ts +4 -0
- package/dist/icons/components/12px/Close12px.js +18 -0
- package/dist/icons/components/index.d.ts +1 -0
- package/dist/icons/components/index.js +560 -559
- package/dist/{index-_ACzPKPw.js → index-Cxiikb7g.js} +561 -558
- package/dist/index.js +0 -10
- package/dist/{keyboard-B256ZoM-.js → label-BXAcSLy0.js} +342 -174
- package/dist/{use-active-press-B6yeSopF.js → use-active-press-9MCrfRZk.js} +1 -1
- package/dist/utils/UUID4.d.ts +1 -0
- package/dist/utils/UUID4.js +9 -0
- package/dist/utils/formating/Date.d.ts +1 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +3 -1
- package/package.json +1 -1
- package/dist/ACE-Dh-PnKV7.js +0 -23
- package/dist/Acceleration-GBCZC6x6.js +0 -34
- package/dist/Accept16px-CzM0Df91.js +0 -27
- package/dist/Accept24px-D2GGOEFK.js +0 -29
- package/dist/Accept32px-0cvrOUlB.js +0 -28
- package/dist/Acts16px-WrO5Razf.js +0 -40
- package/dist/Acts16pxF-tbac65nP.js +0 -35
- package/dist/Acts24px-DaszJ-oP.js +0 -41
- package/dist/Acts24pxF-D0aNSZ14.js +0 -34
- package/dist/Acts32px-Dk5XyG2F.js +0 -41
- package/dist/AdditionalServicess16px-ClYhS7AD.js +0 -33
- package/dist/AdditionalServicess16pxF-D_Cr5Ti3.js +0 -22
- package/dist/AdditionalServicess24px-B-GU8ljs.js +0 -34
- package/dist/AdditionalServicess24pxF-CcIv7u6B.js +0 -23
- package/dist/AdditionalServicess32px-CnkKKa5B.js +0 -25
- package/dist/AdditionalServicess32pxF-BJ7nNuJu.js +0 -23
- package/dist/Agents16px-CKtXJGgS.js +0 -24
- package/dist/Agents16pxF-MHuxLKdT.js +0 -22
- package/dist/Agents24px-Dmv9UkOs.js +0 -25
- package/dist/Agents24pxF-cCOGLyS0.js +0 -32
- package/dist/Agents32px-utYx_RfH.js +0 -37
- package/dist/Alarm16px-oU7xa_Pe.js +0 -25
- package/dist/Alarm24px-BwED0kCm.js +0 -26
- package/dist/Alarm32px-CzWKWxBo.js +0 -26
- package/dist/Alim-DUwhLV2k.js +0 -25
- package/dist/AllMetal-lsgMk2J1.js +0 -34
- package/dist/AllMetalCargoAndPassenger-BP6Rmi-A.js +0 -34
- package/dist/Amur-p-z-0MiH.js +0 -25
- package/dist/Ankai-CSfa2TEH.js +0 -25
- package/dist/ArrowDown16px-DTCW-Omg.js +0 -24
- package/dist/ArrowDown24px-BR0m3fU9.js +0 -25
- package/dist/ArrowDown32px-DLadIoFl.js +0 -25
- package/dist/ArrowLeft16px-CtInbI-A.js +0 -24
- package/dist/ArrowLeft24px-BWfU2AT7.js +0 -25
- package/dist/ArrowLeft32px-CklmCz2b.js +0 -25
- package/dist/ArrowRight16px-Cg_RnVkX.js +0 -24
- package/dist/ArrowRight24px-BMgowqrc.js +0 -25
- package/dist/ArrowRight32px-D7wPM6KT.js +0 -25
- package/dist/ArrowUp16px-DzX1aOjg.js +0 -24
- package/dist/ArrowUp24px-BOdGtGw-.js +0 -25
- package/dist/ArrowUp32px-BS3NXexJ.js +0 -25
- package/dist/ArrowUpright16px-BHoe8_IK.js +0 -24
- package/dist/ArrowUpright24px-grrXzBha.js +0 -25
- package/dist/ArrowUpright32px-DIsDrXTa.js +0 -25
- package/dist/AsphaltPaver-DVob-3UC.js +0 -37
- package/dist/AttachFile16px-CdnjRea_.js +0 -24
- package/dist/AttachFile24px-B3X67SsA.js +0 -25
- package/dist/AttachFile32px-B0tLm9XH.js +0 -25
- package/dist/Audi-9GskTRhO.js +0 -22
- package/dist/Autotower-C-yESqcn.js +0 -34
- package/dist/Awning-BYuoZpCu.js +0 -35
- package/dist/BMW-CNOj2fIU.js +0 -43
- package/dist/BRP-BwnKfFMU.js +0 -34
- package/dist/BackhoeLoader-Bas9aSQY.js +0 -41
- package/dist/Bell16px-kVv729Pi.js +0 -44
- package/dist/Bell16pxF-Dk7ukIHs.js +0 -34
- package/dist/Bell24px-DPKhmZSS.js +0 -45
- package/dist/Bell24pxF-CBBf_vwg.js +0 -28
- package/dist/Bell32px-CItSevhh.js +0 -45
- package/dist/Bell32pxF-CgdrAD-I.js +0 -28
- package/dist/Berths-fF7tVlVU.js +0 -39
- package/dist/Bike-ziBFLp4B.js +0 -25
- package/dist/Bucket-DOH0oMUM.js +0 -23
- package/dist/BucketLoadingCapacity-Wlbdjby5.js +0 -25
- package/dist/BucketVolume-CqdlsL3c.js +0 -32
- package/dist/Buggy-28YVK3gG.js +0 -34
- package/dist/Bulldozer-DiFvl6FQ.js +0 -36
- package/dist/Bus-DGeGG_Bn.js +0 -25
- package/dist/BusBus-Cd5CUveV.js +0 -34
- package/dist/BusMinibus-GLCo1rli.js +0 -34
- package/dist/BusShiftBuses-NRkdVtdF.js +0 -44
- package/dist/CabinTurn-Cj7h1hyS.js +0 -34
- package/dist/Calculator16px-DcyHx-IB.js +0 -24
- package/dist/Calculator24px-D7iXuH67.js +0 -25
- package/dist/Calculator32px-Bq6qy9LU.js +0 -25
- package/dist/CalculatorLkk16px-DTikpTVt.js +0 -35
- package/dist/CalculatorLkk16pxF-D_T7LJU1.js +0 -24
- package/dist/CalculatorLkk24px-Cx7gKN3F.js +0 -34
- package/dist/CalculatorLkk24pxF-BafBDJwM.js +0 -25
- package/dist/CalculatorLkk32px-eLK9ex6W.js +0 -34
- package/dist/CalculatorLkk32pxF-Dlt-EnxA.js +0 -25
- package/dist/Calendar16px-DlbVwhhr.js +0 -24
- package/dist/Calendar24px-B-wIv0Yr.js +0 -25
- package/dist/Calendar32px-lCelTHGL.js +0 -25
- package/dist/Camera16px-BwC_X-Lb.js +0 -36
- package/dist/Camera24px-DudduAtV.js +0 -25
- package/dist/Camera32px-DuwqnTg-.js +0 -37
- package/dist/Car-BJNp4xd5.js +0 -25
- package/dist/Car16px-BOQe5A9r.js +0 -35
- package/dist/Car16pxF-C8hXfwfl.js +0 -24
- package/dist/Car24px-DoDPcfCB.js +0 -36
- package/dist/Car24pxF-CxsC0qvq.js +0 -34
- package/dist/Car32px-B0kZCSIO.js +0 -36
- package/dist/Car32pxF-C9jSDHsv.js +0 -28
- package/dist/CarBodySize-CgpL5emG.js +0 -34
- package/dist/CarBodyType-BrJnDn1D.js +0 -25
- package/dist/CarColor-BSgbchb0.js +0 -34
- package/dist/CargoAScrapTruckFromTheCmu-visqbcbs.js +0 -41
- package/dist/CargoAutotower-CRTnX-z1.js +0 -34
- package/dist/CargoAwning-Du0lEh3W.js +0 -41
- package/dist/CargoConcreteMixerTruck-Ctc7aonB.js +0 -41
- package/dist/CargoDrillingRig-DJziKPfA.js +0 -34
- package/dist/CargoDumpTruck-B8oPJa3-.js +0 -41
- package/dist/CargoGarbageTruck-BKjnRTK3.js +0 -41
- package/dist/CargoGrainCarrier-dvNuEvJ8.js +0 -41
- package/dist/CargoIsothermal-BjBVaYw_.js +0 -41
- package/dist/CargoOnBoard-ZyK8rL3U.js +0 -41
- package/dist/CargoOnBoardWithCmu-BDROtl87.js +0 -41
- package/dist/CargoPromotionalItem-BC0nyDQZ.js +0 -41
- package/dist/CargoSortingTruck-D7fhqXha.js +0 -41
- package/dist/CargoTankerTruck-YOBCdvTS.js +0 -41
- package/dist/CargoTowTruck-DnopQ_Xj.js +0 -34
- package/dist/CargoTruckCrane-Bz3ve1nq.js +0 -43
- package/dist/CargoVacuumMachine-B9Tlsf1r.js +0 -34
- package/dist/Case-Ba1UVzLu.js +0 -25
- package/dist/Catalog16px-D5Yt-qH0.js +0 -24
- package/dist/Catalog24px-CbZg3Wd-.js +0 -25
- package/dist/Catalog32px-DEiqWdKw.js +0 -25
- package/dist/Certs16px-DLkV0erM.js +0 -33
- package/dist/Certs16pxF-Ch3Z_P-O.js +0 -33
- package/dist/Certs24px-Do5yPDqw.js +0 -34
- package/dist/Certs24pxF-Cv--w2Vo.js +0 -34
- package/dist/Certs32px-BtQpjGU1.js +0 -34
- package/dist/Certs32pxF-8Y-y5UOZ.js +0 -34
- package/dist/ChMZAP-wSHBGtdL.js +0 -48
- package/dist/ChTZ-PAVxMyHL.js +0 -34
- package/dist/Change16px-Dbr1Q8TY.js +0 -22
- package/dist/Change24px-DpIQOuUu.js +0 -25
- package/dist/Change32px-BobIrvEg.js +0 -25
- package/dist/Chat16px-DqarMh06.js +0 -33
- package/dist/Chat16pxF-BEr-Lqm2.js +0 -24
- package/dist/Chat24px-B07p4Fw1.js +0 -30
- package/dist/Chat24pxF-BhOEvhHa.js +0 -25
- package/dist/Chat32px-CVmTlFnb.js +0 -34
- package/dist/Chat32pxF-VLA-KrO8.js +0 -25
- package/dist/Chatbot16px-D7hmpHj8.js +0 -264
- package/dist/Chatbot24px-Xw6Km457.js +0 -265
- package/dist/Chatbot32px-JVrcxH1h.js +0 -265
- package/dist/Cherry-Brt0vTmK.js +0 -34
- package/dist/Citroen-B3-VBgfm.js +0 -25
- package/dist/Clearance-BdftjoaH.js +0 -25
- package/dist/Close16px-yncu3S1c.js +0 -24
- package/dist/Close24px-DLCl1anV.js +0 -25
- package/dist/Close32px-BUBxuA5k.js +0 -25
- package/dist/CloseFloatMenuArrow16px-BLuE9jUZ.js +0 -22
- package/dist/CloseFloatMenuArrow24px-DC2uXU5d.js +0 -25
- package/dist/CloseFloatMenuArrow32px-D6Yvw40h.js +0 -23
- package/dist/CloseFloatMenuMobileArrow16px-DiNBwNl1.js +0 -22
- package/dist/CloseFloatMenuMobileArrow24px-BEmt9mUk.js +0 -23
- package/dist/CloseFloatMenuMobileArrow32px-CyvwICDy.js +0 -23
- package/dist/Coin16px-GcAZwMd3.js +0 -35
- package/dist/Coin16pxF-BpBYLvKq.js +0 -42
- package/dist/Coin24px-BwvEPTOg.js +0 -26
- package/dist/Coin24pxF-C-23vx72.js +0 -43
- package/dist/Coin32px-BU5-H__H.js +0 -36
- package/dist/Coin32pxF-DJYZt9UJ.js +0 -34
- package/dist/CombineHarvester-BUiaszfW.js +0 -41
- package/dist/Compartment-Cve8sS0j.js +0 -34
- package/dist/ConcreteMixerTruck-D43EZPWI.js +0 -41
- package/dist/ConcretePump-aI6bfyE5.js +0 -42
- package/dist/Contracts16px-P-c8btCq.js +0 -35
- package/dist/Contracts16pxF-CpE-U_nV.js +0 -33
- package/dist/Contracts24px-DhC2VuZY.js +0 -36
- package/dist/Contracts24pxF-D99YdzWK.js +0 -34
- package/dist/Contracts32px-CTpoKmDS.js +0 -36
- package/dist/Contracts32pxF-C2N-DqSO.js +0 -34
- package/dist/CopyClipboard16px-CIAYNRb8.js +0 -27
- package/dist/CopyClipboard24px-C8MSBeW_.js +0 -28
- package/dist/CopyClipboard32px-BAEG5-rL.js +0 -34
- package/dist/Crossover-CnJjL1nR.js +0 -34
- package/dist/Cylinders-DPwb5yAG.js +0 -37
- package/dist/DaewooFull-DEhEPVc0.js +0 -60
- package/dist/DaewooSymbol-S5JjIyXx.js +0 -53
- package/dist/Daf-BLi-jvO7.js +0 -25
- package/dist/Dayun-DoRa_Bot.js +0 -25
- package/dist/Dimensions-D9vGycAr.js +0 -34
- package/dist/Done16px-BMgPTw68.js +0 -24
- package/dist/Done24px-BGMr2Ua0.js +0 -25
- package/dist/Done32px-QEOVlh9a.js +0 -25
- package/dist/DongFeng-D4bL6sDT.js +0 -25
- package/dist/Download16px-jVDc1H41.js +0 -31
- package/dist/Download24px-Dukxu87S.js +0 -32
- package/dist/Download32px-CUwBsHAz.js +0 -32
- package/dist/DragHandle16px-CMq5289r.js +0 -22
- package/dist/DragHandle24px-DHr905OK.js +0 -23
- package/dist/DragHandle32px-DgLRWYeT.js +0 -23
- package/dist/DragHandleHorizontal16px-DHFulbcY.js +0 -22
- package/dist/DragHandleHorizontal24px-_8e9iXNb.js +0 -23
- package/dist/DragHandleHorizontal32px-Cts1nMvt.js +0 -23
- package/dist/DragHandleVertical16px-E-_vKtAw.js +0 -22
- package/dist/DragHandleVertical24px-B8h4wqMw.js +0 -23
- package/dist/DragHandleVertical32px-CZaRHILC.js +0 -23
- package/dist/DrillingRigg-BQYdG37w.js +0 -34
- package/dist/DropdownArrowBottom16px-SThQoOWF.js +0 -24
- package/dist/DropdownArrowDown24px-D7HJu36H.js +0 -25
- package/dist/DropdownArrowDown32px-CoDpmPzb.js +0 -25
- package/dist/DropdownArrowLeft16px-vnfocUlF.js +0 -24
- package/dist/DropdownArrowLeft24px-CFIXhmYY.js +0 -25
- package/dist/DropdownArrowLeft32px-CrkV9DDk.js +0 -25
- package/dist/DropdownArrowRight16px-Rcl2Mdts.js +0 -24
- package/dist/DropdownArrowRight24px-BD5_Asbu.js +0 -25
- package/dist/DropdownArrowRight32px-Dl_TroXx.js +0 -25
- package/dist/DropdownArrowUp16px-9sX1aEWz.js +0 -24
- package/dist/DropdownArrowUp24px-Bru3PFd8.js +0 -25
- package/dist/DropdownArrowUp32px-Dix3CXLP.js +0 -17
- package/dist/Ducati-Bv7LcQfF.js +0 -34
- package/dist/DumpTruck-D5dhirQp.js +0 -41
- package/dist/Dzen16px-BhMZW8CQ.js +0 -22
- package/dist/Dzen24px-_4CZzwoe.js +0 -23
- package/dist/Dzen32px-Mp1ZYoFU.js +0 -23
- package/dist/EngineType-Dy3UEg8u.js +0 -23
- package/dist/Equipment-Dg2QMiKV.js +0 -25
- package/dist/Euro16px-DRrmEaHQ.js +0 -25
- package/dist/Euro24px-3OVC1BYQ.js +0 -26
- package/dist/Euro32px-1t3kvGR1.js +0 -26
- package/dist/Excavator-CKvI8Ld4.js +0 -25
- package/dist/Exeed-DvZ2upDV.js +0 -34
- package/dist/Eye16px-BnE52y-8.js +0 -35
- package/dist/Eye24px-BICxF_bD.js +0 -36
- package/dist/Eye32px-Bufwk59n.js +0 -36
- package/dist/Failure16px-CCLjItGs.js +0 -27
- package/dist/Failure24px-DF1Nx0eS.js +0 -28
- package/dist/Failure32px-2_DqYqLc.js +0 -28
- package/dist/Favorite16px-krp3rAcr.js +0 -24
- package/dist/Favorite16pxF-2l04IgLp.js +0 -22
- package/dist/Favorite24px-BrPVQNsC.js +0 -25
- package/dist/Favorite24pxF-qpmxGfdQ.js +0 -23
- package/dist/Favorite32px-B-1H6r80.js +0 -25
- package/dist/Favorite32pxF-CkdkHRaO.js +0 -23
- package/dist/Faw-CSEL1fGW.js +0 -36
- package/dist/Fenix-DM8r2D3D.js +0 -116
- package/dist/Fiat-D7CZ3Ckc.js +0 -39
- package/dist/Filter16px-BJ-x2rye.js +0 -24
- package/dist/Filter24px-DNJl9PUU.js +0 -23
- package/dist/Filter32px-ByqmaAVm.js +0 -23
- package/dist/Flag16pxF-iGv2y1Qi.js +0 -16
- package/dist/Flag24pxF-D6qYw5Xt.js +0 -17
- package/dist/Flag32pxF-oohlMmD7.js +0 -17
- package/dist/Folder16px-3KP0YySu.js +0 -24
- package/dist/Folder24px-BVZCIkEb.js +0 -25
- package/dist/Folder32px-BeLtJ6Qd.js +0 -25
- package/dist/Ford-D1V-_kFJ.js +0 -43
- package/dist/ForestPreparationEquipment-CzEBCRwV.js +0 -41
- package/dist/ForkliftTruck-CAfIFf0B.js +0 -34
- package/dist/Foton-Civb8Wym.js +0 -34
- package/dist/FrontLoader-CzZO8jqV.js +0 -41
- package/dist/FuelConsumption-DTLxpPes.js +0 -23
- package/dist/Fullscreen16px-CVa431PU.js +0 -24
- package/dist/Fullscreen24px-DfNRblKi.js +0 -25
- package/dist/Fullscreen32px-B2vAHZ8F.js +0 -25
- package/dist/Gac-BW4JUbjs.js +0 -23
- package/dist/Galery16px-S39B6Tbe.js +0 -27
- package/dist/Galery24px-B70Grc0U.js +0 -28
- package/dist/Galery32px-C7_L61cy.js +0 -28
- package/dist/Gaz-B_glod8E.js +0 -61
- package/dist/Gear16px-6LYCHNL-.js +0 -35
- package/dist/Gear24px-CsBWqeA7.js +0 -36
- package/dist/Gear32px-CtKlK6CH.js +0 -36
- package/dist/GearType-DGWbicya.js +0 -26
- package/dist/Geely-CFxLEtwE.js +0 -27
- package/dist/Genesis-7Ml8lPh1.js +0 -32
- package/dist/Gift16px-BZls-H_P.js +0 -33
- package/dist/Gift24px-DCRL_k44.js +0 -25
- package/dist/Gift32px-B9wx9_Nq.js +0 -25
- package/dist/Gitte-DBx1BJ0u.js +0 -25
- package/dist/Grunwald-BcES_oht.js +0 -25
- package/dist/HartungFull-DquRU8Xf.js +0 -34
- package/dist/HartungSymbol-BuaV-nn-.js +0 -34
- package/dist/Hatchback-Cr7cMM9l.js +0 -34
- package/dist/Haval-DwhOzaEd.js +0 -25
- package/dist/Higer-Bl2UgfCY.js +0 -25
- package/dist/Hint16px-jWHRB48x.js +0 -25
- package/dist/Hint24px-DYo08JCd.js +0 -28
- package/dist/Hint32px-lYPKPiUL.js +0 -28
- package/dist/Hitachi-zuMU7Wia.js +0 -23
- package/dist/Home16px-nf6BhuOH.js +0 -33
- package/dist/Home16pxF-ftr5z4yo.js +0 -24
- package/dist/Home24px-CJCjBHEr.js +0 -36
- package/dist/Home24pxF-qmdy9kwq.js +0 -25
- package/dist/Home32px-DxOVdW-j.js +0 -28
- package/dist/Home32pxF-D64UqJwi.js +0 -25
- package/dist/Honda-CWySTVed.js +0 -39
- package/dist/Hongqi-Dq1js33w.js +0 -32
- package/dist/Hongyan-BXHhgVMj.js +0 -25
- package/dist/Hot16pxF-B8gO0bZ4.js +0 -22
- package/dist/Hot24pxF-DmNyJCUv.js +0 -23
- package/dist/Hot32pxF-CM462_Xh.js +0 -23
- package/dist/Howo-CgERgVQf.js +0 -48
- package/dist/Hyundai-DW03vn5K.js +0 -25
- package/dist/IceRink-CXDcHn-o.js +0 -36
- package/dist/Improvements24px-BkSwmsJi.js +0 -43
- package/dist/Improvements24pxF-we-rw6ER.js +0 -37
- package/dist/Infiniti-DDZI7IUo.js +0 -23
- package/dist/Isothermal-BEv2n2uE.js +0 -41
- package/dist/Isuzu-BmYgjvDZ.js +0 -25
- package/dist/Iveco-BtAdscJd.js +0 -25
- package/dist/JCB-C5eowOn2.js +0 -34
- package/dist/Jac-D2cZV6Lk.js +0 -23
- package/dist/Juterborg-BTbo0Y2B.js +0 -59
- package/dist/KIA-Qk43TWFW.js +0 -25
- package/dist/Kaiyi-B7eA7eWh.js +0 -25
- package/dist/Kamaz-b6jHf99q.js +0 -37
- package/dist/Kassbohrer-IUn8MLcw.js +0 -25
- package/dist/Kebab16px-DfTPykAQ.js +0 -16
- package/dist/Kebab24px-BYolM7Lq.js +0 -23
- package/dist/Kebab32px-CDhlgcwj.js +0 -17
- package/dist/Komatsu-Ch4Q2bal.js +0 -23
- package/dist/Ktm-C2TLHVi8.js +0 -23
- package/dist/LCCE-B2S1Vwq5.js +0 -39
- package/dist/Lada-BTO9WBD7.js +0 -25
- package/dist/Lexus-CSnfKaB2.js +0 -25
- package/dist/Liftback-Bx_7-7fO.js +0 -25
- package/dist/LiftingHeight-CPHHgiKu.js +0 -23
- package/dist/List16px-BrwtUFgP.js +0 -22
- package/dist/List24px-CmENxvos.js +0 -23
- package/dist/List32px-ChDSXkFX.js +0 -23
- package/dist/LiuGong-DODz6x68.js +0 -32
- package/dist/LoadingCapacity-DDMbkIqV.js +0 -25
- package/dist/Location16px-BlLMaJvo.js +0 -35
- package/dist/Location24px-wPb9L50t.js +0 -36
- package/dist/Location32px-BoUvkB03.js +0 -36
- package/dist/Lonking-C5gBWh9S.js +0 -32
- package/dist/Lovol-BT_sP9Wd.js +0 -23
- package/dist/MTZBelarus-uprKopHJ.js +0 -36
- package/dist/Man-CD_0Sgqr.js +0 -23
- package/dist/Mans-BVm-vWA3.js +0 -21
- package/dist/Map16px-t8-9n8WE.js +0 -24
- package/dist/Map24px-BYoh_iPr.js +0 -25
- package/dist/Map32px-C4a9oUDP.js +0 -25
- package/dist/Maz-BYlKxE50.js +0 -34
- package/dist/Menu16px-DdE3Br07.js +0 -22
- package/dist/Menu24px-DBawOXMG.js +0 -23
- package/dist/Menu32px-ft8Xb8HO.js +0 -23
- package/dist/MenuMobile16px-B3ig9ai4.js +0 -24
- package/dist/MenuMobile24px-Dnuim2QB.js +0 -25
- package/dist/MenuMobile32px-DDLE5aRr.js +0 -25
- package/dist/MercedesBenz-DgVdOc5E.js +0 -25
- package/dist/Meusburger-5-bQL8UM.js +0 -25
- package/dist/MiniEscalator-DXtvdBtj.js +0 -43
- package/dist/MiniLoader-CgR-mjRs.js +0 -34
- package/dist/MiningDumpTruck-B6hJdZJu.js +0 -41
- package/dist/Minitractor-BMeJ-ZlO.js +0 -34
- package/dist/Minivan-BLrD96qN.js +0 -34
- package/dist/Minus16px-BsaSPrpm.js +0 -16
- package/dist/Minus24px-Cd4e6TzW.js +0 -25
- package/dist/Minus32px-D7xvjBJN.js +0 -25
- package/dist/Mitsubishi-BnT44Xoa.js +0 -23
- package/dist/MotorGrader-C6LK1V7h.js +0 -34
- package/dist/MotorVehiclesBike-UyntCPvQ.js +0 -26
- package/dist/MotorVehiclesQuadBike-7Wo4TANl.js +0 -32
- package/dist/Navigation16px-p9fAt-hP.js +0 -24
- package/dist/Navigation24px-CtJtnmhL.js +0 -25
- package/dist/Navigation32px-DNwrWMZE.js +0 -25
- package/dist/NefAZ-CYGovIEN.js +0 -32
- package/dist/News16px-CAJU2_p_.js +0 -33
- package/dist/News16pxF-7dNhfaU6.js +0 -24
- package/dist/News24px-QXFy8Y05.js +0 -34
- package/dist/News24pxF-CWFmlSru.js +0 -25
- package/dist/News32px-pJmYmKJ_.js +0 -34
- package/dist/News32pxF-BVjsHGm0.js +0 -25
- package/dist/Number16px-CijeDCqH.js +0 -33
- package/dist/Number24px-pDsuFcRN.js +0 -34
- package/dist/Number32px-Bp13_oDL.js +0 -34
- package/dist/NumberOfAxes-DAXQVVdk.js +0 -25
- package/dist/NumberOfSeats-DPuDLZw9.js +0 -23
- package/dist/NursanTrailer-zfpX_rJ5.js +0 -23
- package/dist/OffRoadVehicle-PcPhm4DC.js +0 -34
- package/dist/Omoda-CBWH_Ago.js +0 -39
- package/dist/OnBoard-0OYYMig3.js +0 -41
- package/dist/OnBoardCargoAndPassengerTransport-Bp9HcA-A.js +0 -41
- package/dist/OnBoardWithCmu-JBgrZGDm.js +0 -41
- package/dist/OpenFloatMenuArrow16px-CCqP46NH.js +0 -22
- package/dist/OpenFloatMenuArrow24px-DcV5bned.js +0 -23
- package/dist/OpenFloatMenuArrow32px-BL6HnNSl.js +0 -23
- package/dist/OpenFloatMenuMobileArrow16px-COMRCn5i.js +0 -22
- package/dist/OpenFloatMenuMobileArrow24px-D1wx7mh5.js +0 -25
- package/dist/OpenFloatMenuMobileArrow32px-CE6fDiO1.js +0 -25
- package/dist/Orders16px-Tkvhpk4W.js +0 -33
- package/dist/Orders16pxF-Dy1_IqA6.js +0 -27
- package/dist/Orders24px-BHWftVdQ.js +0 -34
- package/dist/Orders24pxF-DgwXbktU.js +0 -28
- package/dist/Orders32px-CTrpwXog.js +0 -43
- package/dist/Orders32pxF-DTyNKvnT.js +0 -34
- package/dist/OtherAgriculturalMachinery-9dGJTrMc.js +0 -50
- package/dist/OtherCareerTechniques-Dgr-LaXF.js +0 -41
- package/dist/PSATss-FH4_WoDx.js +0 -39
- package/dist/Pause16px-DrUHTQOp.js +0 -16
- package/dist/Pause24px-BDg2ApPJ.js +0 -17
- package/dist/Pause32px-D9KVeh8H.js +0 -17
- package/dist/Paz-Cz0iePw3.js +0 -25
- package/dist/Pen16px-BpvsshJ0.js +0 -35
- package/dist/Pen16pxF-D0Ot2_xX.js +0 -24
- package/dist/Pen24px-BC3_Lho-.js +0 -36
- package/dist/Pen24pxF-955o6GU-.js +0 -25
- package/dist/Pen32px-B169eyA7.js +0 -24
- package/dist/Pen32pxF-IYe01ej4.js +0 -25
- package/dist/Peugeot-DGGCgccX.js +0 -23
- package/dist/Phone16px-BTNcqkMT.js +0 -24
- package/dist/Phone24px-D1IgTWqO.js +0 -25
- package/dist/Phone32px-CP_IYGW7.js +0 -23
- package/dist/Pickup-C1vLK8Ds.js +0 -25
- package/dist/PickupTruck-DfMFIU5J.js +0 -34
- package/dist/PilingInstallation-DkktOtHW.js +0 -36
- package/dist/Play16pxF-DlflH6dC.js +0 -22
- package/dist/Play24px-DIeywBv3.js +0 -23
- package/dist/Play32px-CDOSEnVI.js +0 -23
- package/dist/Plus16px-DQ1CV6pu.js +0 -24
- package/dist/Plus24px-DN2J9UW_.js +0 -25
- package/dist/Plus32px-BnNzwYFx.js +0 -25
- package/dist/Pound16px-BI-TmzN3.js +0 -25
- package/dist/Pound24px-DyqVyAmG.js +0 -26
- package/dist/Pound32px-DOVd40fL.js +0 -26
- package/dist/PriceDown16px-C-cNQZW0.js +0 -35
- package/dist/PriceDown24px-PVTMb32v.js +0 -34
- package/dist/PriceDown32px-BnvMqfiD.js +0 -45
- package/dist/PriceUp16px-CYzIn1JK.js +0 -35
- package/dist/PriceUp24px-DhvCeTuT.js +0 -34
- package/dist/PriceUp32px-DXmbyQYE.js +0 -36
- package/dist/PromotionalItem-dcrkAiPD.js +0 -41
- package/dist/PublicUtilityVehicle-DhKmayVl.js +0 -48
- package/dist/QuarryExcavator-Cpw_k1y-.js +0 -28
- package/dist/Question16px-tzofmGkO.js +0 -24
- package/dist/Question16pxF-DSNmwd8C.js +0 -24
- package/dist/Question24px-eueJiFdF.js +0 -34
- package/dist/Question24pxF-CT9X-eEh.js +0 -25
- package/dist/Question32px-DocfaHkH.js +0 -34
- package/dist/Question32pxF-DREzHjSx.js +0 -25
- package/dist/Raskat-Dt9ZmFxF.js +0 -39
- package/dist/Renault-Ch74xcFm.js +0 -32
- package/dist/RussianCarsEmblem-Db6Bh8Bb.js +0 -34
- package/dist/RussianCarsKremlin-DoBsxn2Y.js +0 -43
- package/dist/Rutube16px-BMJ84Pid.js +0 -22
- package/dist/Rutube24px-CagkcqE2.js +0 -23
- package/dist/Rutube32px-DfSUkwlK.js +0 -23
- package/dist/Sany-DWj6_gDd.js +0 -52
- package/dist/Scan16px-y7KrBIJ7.js +0 -22
- package/dist/Scan24px-uYfvDHxJ.js +0 -23
- package/dist/Scan32px-XteDey6o.js +0 -23
- package/dist/Scania-BfRIErvN.js +0 -59
- package/dist/Schmitz-NM386tH6.js +0 -25
- package/dist/Scooter-ke7XINzD.js +0 -32
- package/dist/Search16px-D1uxbOTI.js +0 -24
- package/dist/Search24px-CL-9fhxx.js +0 -25
- package/dist/Search32px-Ci3in43W.js +0 -25
- package/dist/Sedan-BL07imjo.js +0 -34
- package/dist/Shacman-KOaW_Q-7.js +0 -32
- package/dist/Shantui-Bt2wnL1m.js +0 -23
- package/dist/Share16pxF-vtMj_7yk.js +0 -22
- package/dist/Share24pxF-uceRx-El.js +0 -23
- package/dist/Share32pxF-4ugq9kEJ.js +0 -23
- package/dist/ShopimgCard32px-iCGLjLtQ.js +0 -25
- package/dist/ShopingCard16px-XZLluJXh.js +0 -24
- package/dist/ShopingCard24px-L7CyQPVo.js +0 -25
- package/dist/Sinanli-DzqtzgDP.js +0 -73
- package/dist/Sitrak-DIUjfUpS.js +0 -36
- package/dist/Snowmobile-CbcOnsu2.js +0 -41
- package/dist/SobolIztechmash-C5dyz5Mb.js +0 -62
- package/dist/Sokol-D2pl6dSo.js +0 -23
- package/dist/Sollers-DdR7XX6w.js +0 -25
- package/dist/Sort16px-CBh69rcA.js +0 -24
- package/dist/Sort24px-B2CSwjt0.js +0 -23
- package/dist/Sort32px-BlrSI5hs.js +0 -23
- package/dist/Star16px-D9rd0Y2r.js +0 -24
- package/dist/Star16pxF-6345ObwP.js +0 -22
- package/dist/Star24px-Q9q-1A_S.js +0 -25
- package/dist/Star24pxF-DfniFNB1.js +0 -23
- package/dist/Star32px-DxQPQSMB.js +0 -25
- package/dist/Star32pxF-DYoBooDi.js +0 -23
- package/dist/StarHalf16pxF-BnS_DmI6.js +0 -24
- package/dist/StarHalf24pxF-DNqRfb03.js +0 -25
- package/dist/StarHalf32pxF-CiZCPnYl.js +0 -25
- package/dist/Step-IwkI6e-d.js +0 -22
- package/dist/TankerTruck-1D1cDEZV.js +0 -41
- package/dist/Telegram16pxF-CCMcUa6i.js +0 -22
- package/dist/Telegram24pxF-CNj1SGgA.js +0 -23
- package/dist/Telegram32pxF-C1Uvx9Qa.js +0 -23
- package/dist/TelegramPlane16pxF-f9kA7Rd5.js +0 -22
- package/dist/TelegramPlane24pxF-DOUaZ9RK.js +0 -23
- package/dist/TelegramPlane32pxF-CLaYnwuK.js +0 -23
- package/dist/TelescopicLoader-DxIQUBqy.js +0 -34
- package/dist/TheLift-BO2_aQm3.js +0 -39
- package/dist/Timer16px-DlqpvnY4.js +0 -40
- package/dist/Timer24px-CigoYjNV.js +0 -41
- package/dist/Timer32px--MNiQ70L.js +0 -35
- package/dist/TitanLipetskiyZavodPricepcenter-CX6tq7HL.js +0 -23
- package/dist/Tonar-DHMDqF89.js +0 -25
- package/dist/TowTruck-CgOd-TeZ.js +0 -34
- package/dist/Toyota-BLLYLpfp.js +0 -23
- package/dist/Tractor-CFVJfhOe.js +0 -34
- package/dist/TractorTruck-zY1F8Izn.js +0 -41
- package/dist/TrailerType-BAyMPr4C.js +0 -32
- package/dist/Trailerr-D0dFKerE.js +0 -25
- package/dist/TrailersCarCarrier-CGVWZnOD.js +0 -43
- package/dist/TrailersCattleTruck-Q-wf1wvI.js +0 -34
- package/dist/TrailersContainerShip-Bu7lNdXo.js +0 -42
- package/dist/TrailersCurtainSide-TzavyUiE.js +0 -41
- package/dist/TrailersDumpTruck-NyZQ82XD.js +0 -41
- package/dist/TrailersGrainTruck-CIhh4KB-.js +0 -41
- package/dist/TrailersHeavyTruck-CSGGqIBP.js +0 -41
- package/dist/TrailersIsothermal-DqNtO4CP.js +0 -41
- package/dist/TrailersOther-DrN3LDSc.js +0 -41
- package/dist/TrailersTankerTruck-DBQT2y32.js +0 -41
- package/dist/Trash16px-CrO1bSUC.js +0 -24
- package/dist/Trash24px-CSWDACv3.js +0 -45
- package/dist/Trash32px-Dsm9A0qb.js +0 -45
- package/dist/Trekol-zGkTKbbH.js +0 -36
- package/dist/Truck-VN9eRSGy.js +0 -25
- package/dist/TruckCrane-B9Gj09Ac.js +0 -43
- package/dist/TwinArrowLeft16px-CDGT5xd_.js +0 -22
- package/dist/TwinArrowLeft24px-CQIvnNbJ.js +0 -23
- package/dist/TwinArrowLeft32px-WGUdCm5V.js +0 -23
- package/dist/TwinArrowRight16px-C_M-ndWU.js +0 -22
- package/dist/TwinArrowRight24px-AJ6BESZj.js +0 -25
- package/dist/TwinArrowRight32px-CnM_Ncq0.js +0 -23
- package/dist/UAT-DBEtif_4.js +0 -23
- package/dist/USDollar16px-CIU1XDKE.js +0 -25
- package/dist/USDollar24px-BnowCnVm.js +0 -26
- package/dist/USDollar32px-DcFUaBXJ.js +0 -26
- package/dist/Uaz-p36RmoN2.js +0 -72
- package/dist/Umbrella16px-BWSAXn5N.js +0 -24
- package/dist/Umbrella16pxF-BRITAZUo.js +0 -22
- package/dist/Umbrella24px-AVixUdjO.js +0 -25
- package/dist/Umbrella24pxF-TsE9ph3B.js +0 -23
- package/dist/Umbrella32px-DKZ4AEWh.js +0 -25
- package/dist/Umbrella32pxF-BuM67_J_.js +0 -25
- package/dist/UnionIcon16px-DUou2SKn.js +0 -24
- package/dist/UnionIcon24px-DYZy73hR.js +0 -25
- package/dist/UnionIcon32px-C8oevJyK.js +0 -25
- package/dist/Universal--Hli-Fyc.js +0 -34
- package/dist/UnloadingType-DZ4BqmZv.js +0 -32
- package/dist/Ural-DKvJyedl.js +0 -23
- package/dist/User16px-B850i1hY.js +0 -33
- package/dist/User16pxF-C5WUBFEF.js +0 -22
- package/dist/User24px-ySYZdsWl.js +0 -34
- package/dist/User24pxF-Cu5ubeXY.js +0 -23
- package/dist/User32px-B49WiqJ8.js +0 -34
- package/dist/User32pxF-DD9wxfsd.js +0 -23
- package/dist/Users16px-B8FKM1pN.js +0 -33
- package/dist/Users16pxF-DHpV4xF9.js +0 -22
- package/dist/Users24px-hfCew_Yp.js +0 -25
- package/dist/Users24pxF-Krb9uIO9.js +0 -32
- package/dist/Users32px-jGZqJWDj.js +0 -25
- package/dist/Users32pxF-DOS0mO4M.js +0 -26
- package/dist/VIS-CCPWCRNN.js +0 -23
- package/dist/VK16pxF-QT0bicYh.js +0 -24
- package/dist/VK24pxF-BPZRP4Jz.js +0 -25
- package/dist/VK32pxF-TVYTWPoL.js +0 -25
- package/dist/VKR-Byq5h89A.js +0 -34
- package/dist/Van-CPAg1VRa.js +0 -25
- package/dist/Volkswagen-nMYNUfXZ.js +0 -25
- package/dist/Volvo-B-hmKU3t.js +0 -23
- package/dist/Waiting16px-BM1YdA8q.js +0 -24
- package/dist/Waiting24px-BH6FG4XU.js +0 -25
- package/dist/Waiting32px-Blp1lCt3.js +0 -25
- package/dist/Weight-Cpq4eaB8.js +0 -36
- package/dist/Whatsapp16px-BP6hKOaP.js +0 -33
- package/dist/Whatsapp24px-Bojsg4-5.js +0 -34
- package/dist/Whatsapp32px-_CC3IlMm.js +0 -34
- package/dist/WheelDriveType-BG5kZmSC.js +0 -32
- package/dist/WheelSheme-BGx779XP.js +0 -34
- package/dist/Wielton-DYfwDIYZ.js +0 -23
- package/dist/WriteUs16px-NFud1QiL.js +0 -27
- package/dist/WriteUs24px-C6p0fbp2.js +0 -28
- package/dist/WriteUs32px-mCAj6d-T.js +0 -28
- package/dist/XCMG-BwcL8g8n.js +0 -39
- package/dist/Ycles-CeloY3Ev.js +0 -44
- package/dist/Youtube16pxF-DSqMksVi.js +0 -22
- package/dist/Youtube24pxF-1HIRYumU.js +0 -23
- package/dist/Youtube32pxF-DavJD7E5.js +0 -23
- package/dist/Yuan16px-Bphe1lty.js +0 -25
- package/dist/Yuan24px-t7tRgewo.js +0 -26
- package/dist/Yuan32px-DkbPyZ4p.js +0 -26
- package/dist/Yutong-0CbTrUPe.js +0 -74
- package/dist/Zoomlion-DCGC9msz.js +0 -23
- package/dist/assets/Accordion.css +0 -1
- package/dist/assets/AccordionItem.css +0 -1
- package/dist/assets/TabTrail.css +0 -1
- package/dist/bugs-CSBdWk0R.js +0 -18
- package/dist/components/Accordion/Accordion.d.ts +0 -10
- package/dist/components/Accordion/Accordion.js +0 -1599
- package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +0 -8
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +0 -16
- package/dist/components/Accordion/AccordionItem/index.d.ts +0 -1
- package/dist/components/Accordion/AccordionItem/index.js +0 -4
- package/dist/components/Accordion/constants.d.ts +0 -4
- package/dist/components/Accordion/constants.js +0 -8
- package/dist/components/Accordion/index.d.ts +0 -3
- package/dist/components/Accordion/index.js +0 -8
- package/dist/components/TabTrail/TabButtons/TabButtons.d.ts +0 -8
- package/dist/components/TabTrail/TabButtons/TabButtons.js +0 -28
- package/dist/components/TabTrail/TabButtons/index.d.ts +0 -1
- package/dist/components/TabTrail/TabButtons/index.js +0 -4
- package/dist/components/TabTrail/TabTrail.d.ts +0 -11
- package/dist/components/TabTrail/TabTrail.js +0 -281
- package/dist/components/TabTrail/constants.d.ts +0 -4
- package/dist/components/TabTrail/constants.js +0 -8
- package/dist/components/TabTrail/index.d.ts +0 -2
- package/dist/components/TabTrail/index.js +0 -6
- package/dist/hidden-BuVoeHNy.js +0 -13
- package/dist/label-C_5Syaoj.js +0 -159
- package/dist/open-closed-CbXq00et.js +0 -93
- package/dist/use-by-comparator-BUO78DGe.js +0 -16
- package/dist/use-resolve-button-type-B6LE6gU3.js +0 -19
@@ -0,0 +1,30 @@
|
|
1
|
+
import { imageTypesArr } from './constants';
|
2
|
+
|
3
|
+
export type TUploader = {
|
4
|
+
/**
|
5
|
+
* Массив разрешенных типов файлов для настройки валидации
|
6
|
+
* 'jpeg' | 'png' | 'tiff'|'gif'|'doc'|'xls'|'pdf'|'docx' |'txt' | 'xlsx'
|
7
|
+
*/
|
8
|
+
filesType: imageTypesArr[];
|
9
|
+
/**
|
10
|
+
* Наименование передаваемого массива файлов
|
11
|
+
*/
|
12
|
+
name: string;
|
13
|
+
/**
|
14
|
+
* Функция - callback, которая вызывается при изменении значения и передает имя и новое значение
|
15
|
+
*/
|
16
|
+
onChangeValue: (e: TUploadValue) => void;
|
17
|
+
/**
|
18
|
+
* Максимальный размер файлов.
|
19
|
+
*/
|
20
|
+
maxSize: number;
|
21
|
+
};
|
22
|
+
export type TUploadValue = {
|
23
|
+
value: TFileItem[];
|
24
|
+
name?: string;
|
25
|
+
};
|
26
|
+
export type TFileItem = {
|
27
|
+
id: number;
|
28
|
+
file: File;
|
29
|
+
};
|
30
|
+
export declare function Uploader({ filesType, onChangeValue, name, maxSize }: TUploader): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,90 @@
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { useId, useRef } from "react";
|
3
|
+
import { Icon } from "../../icons/Icon.js";
|
4
|
+
import { Button } from "../Button/Button.js";
|
5
|
+
import '../../assets/Uploader.css';const cls = {
|
6
|
+
"upload-file__wrapper": "_upload-file__wrapper_165vi_2",
|
7
|
+
"upload-text": "_upload-text_165vi_25",
|
8
|
+
"upload-file-input": "_upload-file-input_165vi_35"
|
9
|
+
};
|
10
|
+
const MIME = {
|
11
|
+
jpeg: "image/jpeg",
|
12
|
+
png: "image/png",
|
13
|
+
tiff: "image/tiff",
|
14
|
+
gif: "image/gif",
|
15
|
+
webp: "image/webp",
|
16
|
+
doc: "application/msword",
|
17
|
+
docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
18
|
+
pdf: "application/pdf",
|
19
|
+
xls: "application/excel",
|
20
|
+
txt: "text/plain",
|
21
|
+
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
22
|
+
};
|
23
|
+
const filesTyps = ["jpeg", "png", "tiff", "gif"];
|
24
|
+
const generateId = (min, max) => {
|
25
|
+
return Math.random() * (max - min) + min;
|
26
|
+
};
|
27
|
+
function Uploader({
|
28
|
+
filesType = filesTyps,
|
29
|
+
onChangeValue,
|
30
|
+
name,
|
31
|
+
maxSize = 15
|
32
|
+
}) {
|
33
|
+
const idImg = useId();
|
34
|
+
const ref = useRef(null);
|
35
|
+
const onChange = (e) => {
|
36
|
+
if (e.target.files && e.target.files[0]) {
|
37
|
+
const list = [];
|
38
|
+
Array.from(e.target.files).forEach((el) => {
|
39
|
+
if (filesType.map((name2) => MIME[name2]).includes(el.type) && el.size / 1024 ** 2 <= maxSize) {
|
40
|
+
list.push({ file: el, id: generateId(1, 100) });
|
41
|
+
}
|
42
|
+
});
|
43
|
+
onChangeValue({ name, value: list });
|
44
|
+
}
|
45
|
+
};
|
46
|
+
const onOpen = () => {
|
47
|
+
var _a;
|
48
|
+
(_a = ref.current) == null ? void 0 : _a.click();
|
49
|
+
};
|
50
|
+
return /* @__PURE__ */ jsxs("div", { className: cls["upload-file__wrapper"], children: [
|
51
|
+
/* @__PURE__ */ jsx(
|
52
|
+
"input",
|
53
|
+
{
|
54
|
+
type: "file",
|
55
|
+
className: cls["upload-file-input"],
|
56
|
+
"aria-label": "Upload",
|
57
|
+
name: "image[]",
|
58
|
+
multiple: true,
|
59
|
+
onChange,
|
60
|
+
title: "",
|
61
|
+
id: idImg,
|
62
|
+
accept: filesType.map((i) => MIME[i]).join()
|
63
|
+
}
|
64
|
+
),
|
65
|
+
/* @__PURE__ */ jsxs("label", { htmlFor: idImg, ref, children: [
|
66
|
+
/* @__PURE__ */ jsx(
|
67
|
+
Button,
|
68
|
+
{
|
69
|
+
size: "m",
|
70
|
+
variant: "secondary-asphalt",
|
71
|
+
leftIcon: /* @__PURE__ */ jsx(Icon, { iconName: "UnionIcon16px" }),
|
72
|
+
onClick: onOpen,
|
73
|
+
children: "Выберите файлы"
|
74
|
+
}
|
75
|
+
),
|
76
|
+
/* @__PURE__ */ jsx("b", { children: "Или перетащие сюда" }),
|
77
|
+
/* @__PURE__ */ jsxs("span", { className: cls["upload-text"], children: [
|
78
|
+
"Максимальный размер одного файла – ",
|
79
|
+
maxSize,
|
80
|
+
" Мб",
|
81
|
+
/* @__PURE__ */ jsx("br", {}),
|
82
|
+
"Загрузить можно файлы следующих форматов: ",
|
83
|
+
filesType.join(", ")
|
84
|
+
] })
|
85
|
+
] })
|
86
|
+
] });
|
87
|
+
}
|
88
|
+
export {
|
89
|
+
Uploader
|
90
|
+
};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
const imageFileTypes = ["jpeg", "png", "tiff", "gif"];
|
2
|
+
const docsFileTypes = [
|
3
|
+
"doc",
|
4
|
+
"xls",
|
5
|
+
"pdf",
|
6
|
+
"docx",
|
7
|
+
"txt",
|
8
|
+
"xlsx"
|
9
|
+
];
|
10
|
+
const TypeFilesArray = {
|
11
|
+
images: imageFileTypes,
|
12
|
+
docs: docsFileTypes
|
13
|
+
};
|
14
|
+
export {
|
15
|
+
TypeFilesArray
|
16
|
+
};
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { imageTypesArr } from '../Uploader/constants';
|
2
|
+
import { TFileItem } from '../Uploader/Uploader';
|
3
|
+
|
4
|
+
export type TUploaderPhotos = {
|
5
|
+
/**
|
6
|
+
* Массив разрешенных типов файлов для настройки валидации
|
7
|
+
* 'jpeg' | 'png' | 'tiff' | 'gif' | 'doc' | 'xls' | 'pdf' |'docx' | 'txt'
|
8
|
+
*/
|
9
|
+
filesType: imageTypesArr[];
|
10
|
+
/**
|
11
|
+
* Наименование передаваемого массива файлов
|
12
|
+
*/
|
13
|
+
name: string;
|
14
|
+
/**
|
15
|
+
* Максимальный размер файлов.
|
16
|
+
*/
|
17
|
+
maxSize: number;
|
18
|
+
/**
|
19
|
+
* Функция обратного вызова, передает параметры type и data,
|
20
|
+
* type 'add' в data передает массив файлов,
|
21
|
+
* type:'delete' в data передает id удаленного файла
|
22
|
+
*/
|
23
|
+
onChange: (j: TOnChangePhotosUpdate) => void;
|
24
|
+
};
|
25
|
+
export type TOnChangePhotosUpdate = {
|
26
|
+
type: string;
|
27
|
+
data: TFileItem[] | number;
|
28
|
+
};
|
29
|
+
export declare function UploaderPhotos({ filesType, name, maxSize, onChange }: TUploaderPhotos): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { useState } from "react";
|
3
|
+
import { ListPhotos } from "../ListPhotos/ListPhotos.js";
|
4
|
+
import { Uploader } from "../Uploader/Uploader.js";
|
5
|
+
import '../../assets/UploaderPhotos.css';const cls = {
|
6
|
+
"upload-file__wrapper": "_upload-file__wrapper_udscq_2"
|
7
|
+
};
|
8
|
+
function UploaderPhotos({
|
9
|
+
filesType,
|
10
|
+
name,
|
11
|
+
maxSize,
|
12
|
+
onChange
|
13
|
+
}) {
|
14
|
+
const [photos, setPhotos] = useState([]);
|
15
|
+
const onChangeValue = (e) => {
|
16
|
+
setPhotos([
|
17
|
+
...photos,
|
18
|
+
...e.value.map((el) => {
|
19
|
+
return {
|
20
|
+
url: URL.createObjectURL(el.file),
|
21
|
+
id: el.id
|
22
|
+
};
|
23
|
+
})
|
24
|
+
]);
|
25
|
+
onChange == null ? void 0 : onChange({ type: "add", data: e.value });
|
26
|
+
};
|
27
|
+
const onDelete = (j) => {
|
28
|
+
setPhotos(j.list);
|
29
|
+
if (j.deleteId) onChange == null ? void 0 : onChange({ type: "delete", data: j.deleteId });
|
30
|
+
};
|
31
|
+
return /* @__PURE__ */ jsxs("div", { className: cls["upload-file__wrapper"], children: [
|
32
|
+
/* @__PURE__ */ jsx(
|
33
|
+
Uploader,
|
34
|
+
{
|
35
|
+
filesType,
|
36
|
+
name,
|
37
|
+
maxSize,
|
38
|
+
onChangeValue
|
39
|
+
}
|
40
|
+
),
|
41
|
+
/* @__PURE__ */ jsx(ListPhotos, { value: photos, onChange: onDelete })
|
42
|
+
] });
|
43
|
+
}
|
44
|
+
export {
|
45
|
+
UploaderPhotos
|
46
|
+
};
|
@@ -25,7 +25,3 @@ export { Switch } from './Switch';
|
|
25
25
|
export type { TSwitchProps } from './Switch';
|
26
26
|
export { Tag, ETagSize, ETagType } from './Tag';
|
27
27
|
export { Timer } from './Timer';
|
28
|
-
export { Accordion, AccordionItem, EAccordionSize } from './Accordion';
|
29
|
-
export type { TAccordionProps, TAccordionItemProps } from './Accordion';
|
30
|
-
export { TabTrail, ETabTrailSize } from './TabTrail';
|
31
|
-
export type { TTabTrailProps, TCategoryTab } from './TabTrail';
|
package/dist/components/index.js
CHANGED
@@ -25,18 +25,10 @@ import { Switch } from "./Switch/Switch.js";
|
|
25
25
|
import { Tag } from "./Tag/Tag.js";
|
26
26
|
import { ETagSize, ETagType } from "./Tag/constants.js";
|
27
27
|
import { Timer } from "./Timer/Timer.js";
|
28
|
-
import { Accordion } from "./Accordion/Accordion.js";
|
29
|
-
import { EAccordionSize } from "./Accordion/constants.js";
|
30
|
-
import { AccordionItem } from "./Accordion/AccordionItem/AccordionItem.js";
|
31
|
-
import { TabTrail } from "./TabTrail/TabTrail.js";
|
32
|
-
import { ETabTrailSize } from "./TabTrail/constants.js";
|
33
28
|
export {
|
34
|
-
Accordion,
|
35
|
-
AccordionItem,
|
36
29
|
Button,
|
37
30
|
DatePicker,
|
38
31
|
Drawer,
|
39
|
-
EAccordionSize,
|
40
32
|
EButtonForm,
|
41
33
|
EButtonSize,
|
42
34
|
EButtonVariantDefault,
|
@@ -49,7 +41,6 @@ export {
|
|
49
41
|
EStepsPrimaryColor,
|
50
42
|
EStepsSecondaryColor,
|
51
43
|
EStepsSize,
|
52
|
-
ETabTrailSize,
|
53
44
|
ETagSize,
|
54
45
|
ETagType,
|
55
46
|
EVoteSize,
|
@@ -65,7 +56,6 @@ export {
|
|
65
56
|
Slider,
|
66
57
|
Steps,
|
67
58
|
Switch,
|
68
|
-
TabTrail,
|
69
59
|
Tag,
|
70
60
|
Timer,
|
71
61
|
Vote,
|
@@ -1,4 +1,17 @@
|
|
1
|
-
import {
|
1
|
+
import { useCallback } from "react";
|
2
|
+
import { u as u$1, a as u$2 } from "./label-BXAcSLy0.js";
|
3
|
+
function l(e, r) {
|
4
|
+
return e !== null && r !== null && typeof e == "object" && typeof r == "object" && "id" in e && "id" in r ? e.id === r.id : e === r;
|
5
|
+
}
|
6
|
+
function u(e = l) {
|
7
|
+
return useCallback((r, t) => {
|
8
|
+
if (typeof e == "string") {
|
9
|
+
let o = e;
|
10
|
+
return (r == null ? void 0 : r[o]) === (t == null ? void 0 : t[o]);
|
11
|
+
}
|
12
|
+
return e(r, t);
|
13
|
+
}, [e]);
|
14
|
+
}
|
2
15
|
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
16
|
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
17
|
function b(e = document.body) {
|
@@ -10,7 +23,7 @@ function S(e = document.body) {
|
|
10
23
|
var h = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(h || {});
|
11
24
|
function A(e, r = 0) {
|
12
25
|
var t;
|
13
|
-
return e === ((t = u(e)) == null ? void 0 : t.body) ? false : u$
|
26
|
+
return e === ((t = u$1(e)) == null ? void 0 : t.body) ? false : u$2(r, { [0]() {
|
14
27
|
return e.matches(f);
|
15
28
|
}, [1]() {
|
16
29
|
let u2 = e;
|
@@ -36,24 +49,24 @@ function _(e, r = (t) => t) {
|
|
36
49
|
return e.slice().sort((t, u2) => {
|
37
50
|
let o = r(t), c = r(u2);
|
38
51
|
if (o === null || c === null) return 0;
|
39
|
-
let
|
40
|
-
return
|
52
|
+
let l2 = o.compareDocumentPosition(c);
|
53
|
+
return l2 & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : l2 & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
41
54
|
});
|
42
55
|
}
|
43
56
|
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,
|
45
|
-
o.length > 0 &&
|
57
|
+
let c = Array.isArray(e) ? e.length > 0 ? e[0].ownerDocument : document : e.ownerDocument, l2 = Array.isArray(e) ? t ? _(e) : e : r & 64 ? S(e) : b(e);
|
58
|
+
o.length > 0 && l2.length > 1 && (l2 = l2.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
59
|
let n = (() => {
|
47
60
|
if (r & 5) return 1;
|
48
61
|
if (r & 10) return -1;
|
49
62
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
50
63
|
})(), x = (() => {
|
51
64
|
if (r & 1) return 0;
|
52
|
-
if (r & 2) return Math.max(0,
|
53
|
-
if (r & 4) return Math.max(0,
|
54
|
-
if (r & 8) return
|
65
|
+
if (r & 2) return Math.max(0, l2.indexOf(u2)) - 1;
|
66
|
+
if (r & 4) return Math.max(0, l2.indexOf(u2)) + 1;
|
67
|
+
if (r & 8) return l2.length - 1;
|
55
68
|
throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last");
|
56
|
-
})(), M = r & 32 ? { preventScroll: true } : {}, m = 0, d =
|
69
|
+
})(), M = r & 32 ? { preventScroll: true } : {}, m = 0, d = l2.length, i;
|
57
70
|
do {
|
58
71
|
if (m >= d || m + d <= 0) return 0;
|
59
72
|
let s = x + m;
|
@@ -62,7 +75,7 @@ function P(e, r, { sorted: t = true, relativeTo: u2 = null, skipElements: o = []
|
|
62
75
|
if (s < 0) return 3;
|
63
76
|
if (s >= d) return 1;
|
64
77
|
}
|
65
|
-
i =
|
78
|
+
i = l2[s], i == null || i.focus(M), m += n;
|
66
79
|
} while (i !== c.activeElement);
|
67
80
|
return r & 6 && O(i) && i.select(), 2;
|
68
81
|
}
|
@@ -73,5 +86,6 @@ export {
|
|
73
86
|
T,
|
74
87
|
_,
|
75
88
|
f,
|
76
|
-
h
|
89
|
+
h,
|
90
|
+
u
|
77
91
|
};
|
package/dist/icons/Icon.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Suspense } from "react";
|
3
|
-
import { i as icons } from "../index-
|
3
|
+
import { i as icons } from "../index-Cxiikb7g.js";
|
4
4
|
const Icon = ({ iconName, ...props }) => {
|
5
5
|
const Component = icons[iconName];
|
6
6
|
if (!Component) {
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
const Close12px = (props) => {
|
3
|
+
return /* @__PURE__ */ jsx(
|
4
|
+
"svg",
|
5
|
+
{
|
6
|
+
width: "12",
|
7
|
+
height: "12",
|
8
|
+
viewBox: "0 0 12 12",
|
9
|
+
fill: "none",
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
11
|
+
...props,
|
12
|
+
children: /* @__PURE__ */ jsx("path", { d: "M3 9L8.99991 3M9 9L3 3", stroke: "#333333", "stroke-width": "1.5" })
|
13
|
+
}
|
14
|
+
);
|
15
|
+
};
|
16
|
+
export {
|
17
|
+
Close12px as default
|
18
|
+
};
|
@@ -1,3 +1,4 @@
|
|
1
|
+
export declare const Close12px: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
1
2
|
export declare const Accept16px: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
2
3
|
export declare const Acts16px: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|
3
4
|
export declare const Acts16pxF: import('react').LazyExoticComponent<(props: import('react').SVGProps<SVGSVGElement>) => import("react/jsx-runtime").JSX.Element>;
|