@itcase/ui 1.1.15 → 1.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Accordion-DyOfdiGd.js → Accordion-uWRXripc.js} +17 -11
- package/dist/{Avatar-DLNS2LBo.js → Avatar-APOOlMd3.js} +2 -2
- package/dist/{Badge-BBbMdbjo.js → Badge-DtYgQu3L.js} +2 -3
- package/dist/{Breadcrumbs-Dz-WcAoT.js → Breadcrumbs-rRMuYnWJ.js} +2 -2
- package/dist/{Button-ULZVVxWC.js → Button-DxZUKQ8I.js} +7 -7
- package/dist/{Card-DPGgzPuD.js → Card-DEs1Rr88.js} +1 -1
- package/dist/{Cell-DftU408q.js → Cell-BJThS4YS.js} +7 -4
- package/dist/{Checkbox-C-H_Z4S_.js → Checkbox-BmQo6ByV.js} +9 -8
- package/dist/{Chips-BR_EPV82.js → Chips-CBPMHkdw.js} +19 -11
- package/dist/{Choice-BT6xwc_a.js → Choice-DVU4k0tu.js} +11 -14
- package/dist/{Code-DkWVSDOy.js → Code-1WUXVzfb.js} +0 -1
- package/dist/{ContextMenuItem--304_MdY.js → ContextMenuItem-xssbnviQ.js} +2 -2
- package/dist/{CookiesWarning-CDlz4Rfl.js → CookiesWarning-Dcon4SS4.js} +3 -3
- package/dist/{DadataHintField-QzDwYdF1.js → DadataHintField-CHJLsVjJ.js} +1 -1
- package/dist/{DatePicker-CUmrPZZ-.js → DatePicker-D9UgOcue.js} +6 -6
- package/dist/{Drawer-CgJX3Utw.js → Drawer-DkLkFSmD.js} +3 -3
- package/dist/{DropdownItem-Cf5vBgDu.js → DropdownItem-DB5nPIdl.js} +1 -1
- package/dist/{Group-C2kJKhWJ.js → Group-DuHn_z2p.js} +1 -2
- package/dist/HTMLContent-CgbJTAy4.js +85 -0
- package/dist/{Icon-DWnG-4KG.js → Icon-C0gtkmdU.js} +1 -1
- package/dist/{Input-CYMKQ0qF.js → Input-CYDtAlO-.js} +14 -12
- package/dist/{InputPassword-BOdsE_Yd.js → InputPassword-D6OLQrVC.js} +2 -4
- package/dist/{Label-VHbRKztj.js → Label-0lMH0-AK.js} +4 -4
- package/dist/{LanguageSelector-CzIV_gnd.js → LanguageSelector-uOmIj9mJ.js} +1 -1
- package/dist/{Loader-YZrWGaNy.js → Loader-DhgIcSY1.js} +2 -3
- package/dist/Logo-dRWwDqj-.js +37 -0
- package/dist/{Menu-Cd-XlUmJ.js → Menu-9u6BoWRL.js} +1 -1
- package/dist/{MenuItem-COZ-C9K2.js → MenuItem-CXxL099U.js} +3 -3
- package/dist/{ModalLoader-8l8YtIvz.js → ModalLoader-DHOpJqE3.js} +7 -2
- package/dist/{NotificationList-C2OCJkY5.js → NotificationList-B48jz206.js} +5 -8
- package/dist/{Pagination-QfVqvSbE.js → Pagination-Ch75clod.js} +3 -3
- package/dist/{Radio-Ca2-2PPF.js → Radio-CmejVeSJ.js} +2 -3
- package/dist/{Response-DzfL5Sy8.js → Response-CgE3B1JS.js} +7 -7
- package/dist/{SearchResult-DbhHiNmy.js → SearchResult-vA2t-ZGx.js} +4 -4
- package/dist/{Segmented-pa7MGnor.js → Segmented-BoROz9LW.js} +3 -2
- package/dist/{SiteMenuButton-BwyPO-2_.js → SiteMenuButton-CFPtqh_i.js} +2 -2
- package/dist/{Swiper-CL9zCKXE.js → Swiper-CP2ph4S3.js} +20 -5
- package/dist/{SwitchField-nmu255b8.js → SwitchField-Cj0B7JdE.js} +3 -3
- package/dist/{TabGroup-CK6ndAuh.js → TabGroup-C4CbZgr7.js} +5 -5
- package/dist/{Text-CxrzHFN1.js → Text-Dn0X1zxN.js} +1 -2
- package/dist/{Textarea-Cie6SPyp.js → Textarea-D3XSuMEm.js} +1 -1
- package/dist/{Tile-qiXVUf-t.js → Tile-B2HwgBDH.js} +3 -3
- package/dist/{Title-BhJcCgdK.js → Title-BAdU2oW_.js} +1 -1
- package/dist/{Tooltip-CpEQOh9v.js → Tooltip-D46EmkZq.js} +4 -4
- package/dist/cjs/{Accordion-UbOVpiO4.js → Accordion-OI5oLjJY.js} +17 -11
- package/dist/cjs/{Avatar-Bj5BiStx.js → Avatar-BBAt1cKM.js} +2 -2
- package/dist/cjs/{Badge-D7W3B9G5.js → Badge-Cn73E3GI.js} +2 -3
- package/dist/cjs/{Breadcrumbs-xj-c6cUH.js → Breadcrumbs-DLTpOh1T.js} +2 -2
- package/dist/cjs/{Button-DfUQ11Hs.js → Button-C-K_KVjd.js} +6 -6
- package/dist/cjs/{Card--te6xVsm.js → Card-D9Eh3qLN.js} +1 -1
- package/dist/cjs/{Cell-BhsGTfV-.js → Cell-DpzvSs16.js} +7 -4
- package/dist/cjs/{Checkbox-B-1dwjii.js → Checkbox-BE9LWRTC.js} +9 -8
- package/dist/cjs/{Chips-BcJttN22.js → Chips-cdORW7eM.js} +19 -11
- package/dist/cjs/{Choice-Cm_1ke3H.js → Choice-nMRlWkpF.js} +11 -14
- package/dist/cjs/{Code-ByEr4h2R.js → Code-BJFoJBYh.js} +0 -1
- package/dist/cjs/{ContextMenuItem-D6dUiYw7.js → ContextMenuItem-D2wjhhzg.js} +2 -2
- package/dist/cjs/{CookiesWarning-BfkNifW2.js → CookiesWarning--Edz7Gcv.js} +3 -3
- package/dist/cjs/{DadataHintField-DQHPRLs0.js → DadataHintField-z7Mw-xDn.js} +1 -1
- package/dist/cjs/{DatePicker-DOmOhaU3.js → DatePicker-vgeb1SWe.js} +6 -6
- package/dist/cjs/{Drawer-BGZBaR2Q.js → Drawer-AQqI18ra.js} +3 -3
- package/dist/cjs/{DropdownItem-BhpFr7Z0.js → DropdownItem-CCuDjUjH.js} +1 -1
- package/dist/cjs/{Group-C9BxTKs-.js → Group-CtseVj34.js} +1 -2
- package/dist/cjs/HTMLContent-4vI2pdQC.js +91 -0
- package/dist/cjs/{Icon-2rv_L0yY.js → Icon-BUwWk_dS.js} +1 -1
- package/dist/cjs/{Input-BqKlyvEt.js → Input-vwyG3XF0.js} +13 -11
- package/dist/cjs/{InputPassword-BXCwerW2.js → InputPassword-BqbSnWDE.js} +2 -4
- package/dist/cjs/{Label-EFoxH21m.js → Label-Bc4u2NRI.js} +3 -3
- package/dist/cjs/{LanguageSelector-CFKki1Sr.js → LanguageSelector-BswZL8dZ.js} +1 -1
- package/dist/cjs/{Loader-2vQxF_aO.js → Loader-2CPNhu-4.js} +2 -3
- package/dist/cjs/Logo-BjDQjs3w.js +44 -0
- package/dist/cjs/{Menu-rXCCn52A.js → Menu-Bn0hqLr-.js} +1 -1
- package/dist/cjs/{MenuItem-C__OMtEI.js → MenuItem-C-0vQBaj.js} +2 -2
- package/dist/cjs/{ModalLoader-A2KkSC3x.js → ModalLoader-DJWtjEvf.js} +7 -2
- package/dist/cjs/{NotificationList-CKd0PxLU.js → NotificationList-D7rD4PAW.js} +5 -8
- package/dist/cjs/{Pagination-D6thfJMP.js → Pagination-XAVYtca1.js} +3 -3
- package/dist/cjs/{Radio-Cvbuwkx3.js → Radio-BH3uHZDb.js} +2 -3
- package/dist/cjs/{Response-DOQQr9jP.js → Response-BmR09awR.js} +7 -7
- package/dist/cjs/{SearchResult-BnIZD8lL.js → SearchResult-gHEwq0ay.js} +3 -3
- package/dist/cjs/{Segmented-BHblcvck.js → Segmented-BtzSR0xB.js} +3 -2
- package/dist/cjs/{SiteMenuButton-B2wBLVOJ.js → SiteMenuButton-B6QISdea.js} +2 -2
- package/dist/cjs/{Swiper-DrXdHybn.js → Swiper--idB5Ci6.js} +20 -5
- package/dist/cjs/{SwitchField-B0N-28Ne.js → SwitchField-CCHC2ZHS.js} +3 -3
- package/dist/cjs/{TabGroup-BCw7IKuz.js → TabGroup-CYaefMap.js} +4 -4
- package/dist/cjs/{Text-C8vlKWNN.js → Text-D2YDVhGJ.js} +1 -2
- package/dist/cjs/{Textarea-WIGhhrgu.js → Textarea-tng0D_n7.js} +1 -1
- package/dist/cjs/{Tile-2VY0LzsE.js → Tile-By9iqne7.js} +3 -3
- package/dist/cjs/{Title-DZn77tSl.js → Title-BzopkHQY.js} +1 -1
- package/dist/cjs/{Tooltip-DRsL77n1.js → Tooltip-VrKQ8W1G.js} +3 -3
- package/dist/cjs/components/Accordion/Accordion.d.ts +2 -2
- package/dist/cjs/components/Accordion/Accordion.interface.d.ts +52 -52
- package/dist/cjs/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/cjs/components/Accordion.js +5 -5
- package/dist/cjs/components/Avatar/Avatar.interface.d.ts +12 -12
- package/dist/cjs/components/Avatar.js +5 -5
- package/dist/cjs/components/Badge/Badge.interface.d.ts +13 -13
- package/dist/cjs/components/Badge.js +2 -2
- package/dist/cjs/components/Breadcrumbs/Breadcrumbs.interface.d.ts +35 -35
- package/dist/cjs/components/Breadcrumbs.js +5 -5
- package/dist/cjs/components/Button/Button.interface.d.ts +27 -26
- package/dist/cjs/components/Button.js +6 -6
- package/dist/cjs/components/Caption/Caption.interface.d.ts +7 -7
- package/dist/cjs/components/Card/Card.interface.d.ts +13 -13
- package/dist/cjs/components/Card.js +2 -2
- package/dist/cjs/components/Cell/Cell.interface.d.ts +27 -27
- package/dist/cjs/components/Cell.js +6 -6
- package/dist/cjs/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/cjs/components/Checkbox/Checkbox.interface.d.ts +43 -44
- package/dist/cjs/components/Checkbox.js +2 -2
- package/dist/cjs/components/Chips/Chips.d.ts +3 -8
- package/dist/cjs/components/Chips/Chips.interface.d.ts +26 -24
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice/Choice.d.ts +3 -3
- package/dist/cjs/components/Choice/Choice.interface.d.ts +34 -34
- package/dist/cjs/components/Choice.js +6 -5
- package/dist/cjs/components/Code/Code.d.ts +0 -1
- package/dist/cjs/components/Code/Code.interface.d.ts +16 -16
- package/dist/cjs/components/Code.js +1 -1
- package/dist/cjs/components/ContextMenu/ContextMenu.interface.d.ts +18 -18
- package/dist/cjs/components/ContextMenu.js +5 -5
- package/dist/cjs/components/CookiesWarning/CookiesWarning.interface.d.ts +9 -9
- package/dist/cjs/components/CookiesWarning.js +8 -8
- package/dist/cjs/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/cjs/components/DadataHintField.js +2 -2
- package/dist/cjs/components/DatePicker/DatePicker.interface.d.ts +46 -46
- package/dist/cjs/components/DatePicker.js +10 -10
- package/dist/cjs/components/Divider/Divider.interface.d.ts +23 -23
- package/dist/cjs/components/Dot/Dot.interface.d.ts +16 -16
- package/dist/cjs/components/Drawer/Drawer.d.ts +2 -2
- package/dist/cjs/components/Drawer/Drawer.interface.d.ts +6 -6
- package/dist/cjs/components/Drawer.js +1 -1
- package/dist/cjs/components/Dropdown/Dropdown.interface.d.ts +26 -26
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/Flex/Flex.interface.d.ts +30 -30
- package/dist/cjs/components/FormField/FormFiled.interface.d.ts +45 -45
- package/dist/cjs/components/FormField.js +9 -9
- package/dist/cjs/components/Grid/Grid.interface.d.ts +31 -31
- package/dist/cjs/components/Group/Group.interface.d.ts +17 -17
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/HTMLContent/HTMLContent.d.ts +3 -0
- package/dist/cjs/components/HTMLContent/HTMLContent.interface.d.ts +30 -0
- package/dist/cjs/components/HTMLContent/index.d.ts +1 -0
- package/dist/cjs/components/HTMLContent.js +21 -0
- package/dist/cjs/components/Icon/Icon.interface.d.ts +29 -29
- package/dist/cjs/components/Icon.js +4 -4
- package/dist/cjs/components/Image/Image.interface.d.ts +8 -8
- package/dist/cjs/components/Input/Input.d.ts +3 -3
- package/dist/cjs/components/Input/Input.interface.d.ts +40 -42
- package/dist/cjs/components/Input.js +1 -1
- package/dist/cjs/components/InputMask/Input.d.ts +3 -3
- package/dist/cjs/components/InputMask/Input.interface.d.ts +32 -32
- package/dist/cjs/components/InputMask.js +1 -1
- package/dist/cjs/components/InputPassword/InputPassword.interface.d.ts +30 -30
- package/dist/cjs/components/InputPassword.js +5 -5
- package/dist/cjs/components/Label/Label.interface.d.ts +15 -15
- package/dist/cjs/components/Label.js +4 -4
- package/dist/cjs/components/LanguageSelector.js +5 -5
- package/dist/cjs/components/Link/Link.interface.d.ts +21 -21
- package/dist/cjs/components/List/List.interface.d.ts +11 -11
- package/dist/cjs/components/Loader/Loader.interface.d.ts +11 -11
- package/dist/cjs/components/Loader.js +2 -2
- package/dist/cjs/components/Logo/Logo.d.ts +3 -2
- package/dist/cjs/components/Logo/Logo.interface.d.ts +20 -6
- package/dist/cjs/components/Logo/index.d.ts +1 -1
- package/dist/cjs/components/Logo.js +4 -3
- package/dist/cjs/components/Menu/Menu.interface.d.ts +5 -5
- package/dist/cjs/components/Menu.js +3 -3
- package/dist/cjs/components/MenuItem/MenuItem.interface.d.ts +21 -21
- package/dist/cjs/components/MenuItem.js +2 -2
- package/dist/cjs/components/Modal/Modal.interface.d.ts +4 -4
- package/dist/cjs/components/Modal.js +3 -3
- package/dist/cjs/components/Notification/Notification.interface.d.ts +16 -16
- package/dist/cjs/components/Notification.js +3 -3
- package/dist/cjs/components/Overlay/Overlay.interface.d.ts +4 -4
- package/dist/cjs/components/Pagination/Pagination.interface.d.ts +20 -20
- package/dist/cjs/components/Pagination.js +6 -6
- package/dist/cjs/components/Panel/Panel.interface.d.ts +22 -22
- package/dist/cjs/components/Panel.js +4 -4
- package/dist/cjs/components/Radio/Radio.interface.d.ts +25 -25
- package/dist/cjs/components/Radio.js +2 -2
- package/dist/cjs/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/cjs/components/Response/Response.interface.d.ts +30 -28
- package/dist/cjs/components/Response.js +8 -8
- package/dist/cjs/components/SVGContent/SVGContent.d.ts +3 -0
- package/dist/cjs/components/SVGContent/SVGContent.interface.d.ts +11 -0
- package/dist/cjs/components/SVGContent/index.d.ts +1 -0
- package/dist/cjs/components/SVGContent.js +37 -0
- package/dist/cjs/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +9 -9
- package/dist/cjs/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/cjs/components/Search/Search.interface.d.ts +23 -23
- package/dist/cjs/components/Search.js +5 -5
- package/dist/cjs/components/Segmented/Segmented.interface.d.ts +14 -14
- package/dist/cjs/components/Segmented.js +2 -2
- package/dist/cjs/components/Select.js +223 -836
- package/dist/cjs/components/SiteMenu/SiteMenu.interface.d.ts +9 -9
- package/dist/cjs/components/SiteMenu.js +5 -5
- package/dist/cjs/components/Swiper/Swiper.interface.d.ts +7 -7
- package/dist/cjs/components/Swiper.js +2 -2
- package/dist/cjs/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/cjs/components/Tab/Tab.d.ts +3 -3
- package/dist/cjs/components/Tab/Tab.interface.d.ts +43 -44
- package/dist/cjs/components/Tab/TabGroup.d.ts +2 -2
- package/dist/cjs/components/Tab.js +3 -3
- package/dist/cjs/components/Text/Text.d.ts +3 -3
- package/dist/cjs/components/Text/Text.interface.d.ts +34 -35
- package/dist/cjs/components/Text.js +1 -1
- package/dist/cjs/components/Textarea/Textarea.interface.d.ts +17 -17
- package/dist/cjs/components/Textarea.js +1 -1
- package/dist/cjs/components/Tile/Tile.interface.d.ts +15 -15
- package/dist/cjs/components/Tile.js +4 -4
- package/dist/cjs/components/Title/Title.interface.d.ts +12 -12
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.interface.d.ts +13 -13
- package/dist/cjs/components/Tooltip.js +3 -3
- package/dist/cjs/components/Video/Video.interface.d.ts +2 -2
- package/dist/cjs/components/Wrapper/Wrapper.interface.d.ts +4 -4
- package/dist/cjs/components/index.d.ts +2 -1
- package/dist/cjs/components.js +47 -44
- package/dist/cjs/constants/componentProps/textColor.js +1 -1
- package/dist/cjs/constants/componentProps/textColorActive.js +1 -1
- package/dist/cjs/constants/componentProps/textColorHover.js +1 -1
- package/dist/cjs/{floating-ui.dom-D1St6qnn.js → floating-ui.dom-ma2MDAMT.js} +4 -5
- package/dist/cjs/hooks/styleAttributes.interface.d.ts +4 -4
- package/dist/cjs/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/cjs/types/componentProps/borderColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/cjs/types/componentProps/direction.d.ts +1 -1
- package/dist/cjs/types/componentProps/fill.d.ts +1 -1
- package/dist/cjs/types/componentProps/fillHover.d.ts +1 -1
- package/dist/cjs/types/componentProps/height.d.ts +1 -1
- package/dist/cjs/types/componentProps/itemColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/shape.d.ts +1 -1
- package/dist/cjs/types/componentProps/size.d.ts +1 -1
- package/dist/cjs/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/cjs/types/componentProps/textColor.d.ts +1 -1
- package/dist/cjs/types/componentProps/textColorActive.d.ts +2 -1
- package/dist/cjs/types/componentProps/textSize.d.ts +1 -1
- package/dist/cjs/types/componentProps/textWeight.d.ts +1 -1
- package/dist/cjs/types/componentProps/width.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +13 -13
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Accordion/Accordion.interface.d.ts +52 -52
- package/dist/components/Accordion/AccordionItem.d.ts +2 -2
- package/dist/components/Accordion.js +5 -5
- package/dist/components/Avatar/Avatar.interface.d.ts +12 -12
- package/dist/components/Avatar.js +5 -5
- package/dist/components/Badge/Badge.interface.d.ts +13 -13
- package/dist/components/Badge.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.interface.d.ts +35 -35
- package/dist/components/Breadcrumbs.js +5 -5
- package/dist/components/Button/Button.interface.d.ts +27 -26
- package/dist/components/Button.js +6 -6
- package/dist/components/Caption/Caption.interface.d.ts +7 -7
- package/dist/components/Card/Card.interface.d.ts +13 -13
- package/dist/components/Card.js +2 -2
- package/dist/components/Cell/Cell.interface.d.ts +27 -27
- package/dist/components/Cell.js +6 -6
- package/dist/components/Checkbox/Checkbox.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.interface.d.ts +43 -44
- package/dist/components/Checkbox.js +2 -2
- package/dist/components/Chips/Chips.d.ts +3 -8
- package/dist/components/Chips/Chips.interface.d.ts +26 -24
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice/Choice.d.ts +3 -3
- package/dist/components/Choice/Choice.interface.d.ts +34 -34
- package/dist/components/Choice.js +6 -5
- package/dist/components/Code/Code.d.ts +0 -1
- package/dist/components/Code/Code.interface.d.ts +16 -16
- package/dist/components/Code.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.interface.d.ts +18 -18
- package/dist/components/ContextMenu.js +5 -5
- package/dist/components/CookiesWarning/CookiesWarning.interface.d.ts +9 -9
- package/dist/components/CookiesWarning.js +8 -8
- package/dist/components/DadataHintField/DadataHintField.interface.d.ts +3 -3
- package/dist/components/DadataHintField.js +2 -2
- package/dist/components/DatePicker/DatePicker.interface.d.ts +46 -46
- package/dist/components/DatePicker.js +10 -10
- package/dist/components/Divider/Divider.interface.d.ts +23 -23
- package/dist/components/Dot/Dot.interface.d.ts +16 -16
- package/dist/components/Drawer/Drawer.d.ts +2 -2
- package/dist/components/Drawer/Drawer.interface.d.ts +6 -6
- package/dist/components/Drawer.js +1 -1
- package/dist/components/Dropdown/Dropdown.interface.d.ts +26 -26
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Flex/Flex.interface.d.ts +30 -30
- package/dist/components/FormField/FormFiled.interface.d.ts +45 -45
- package/dist/components/FormField.js +9 -9
- package/dist/components/Grid/Grid.interface.d.ts +31 -31
- package/dist/components/Group/Group.interface.d.ts +17 -17
- package/dist/components/Group.js +1 -1
- package/dist/components/HTMLContent/HTMLContent.d.ts +3 -0
- package/dist/components/HTMLContent/HTMLContent.interface.d.ts +30 -0
- package/dist/components/HTMLContent/index.d.ts +1 -0
- package/dist/components/HTMLContent.js +15 -0
- package/dist/components/Icon/Icon.interface.d.ts +29 -29
- package/dist/components/Icon.js +4 -4
- package/dist/components/Image/Image.interface.d.ts +8 -8
- package/dist/components/Input/Input.d.ts +3 -3
- package/dist/components/Input/Input.interface.d.ts +40 -42
- package/dist/components/Input.js +1 -1
- package/dist/components/InputMask/Input.d.ts +3 -3
- package/dist/components/InputMask/Input.interface.d.ts +32 -32
- package/dist/components/InputMask.js +1 -1
- package/dist/components/InputPassword/InputPassword.interface.d.ts +30 -30
- package/dist/components/InputPassword.js +5 -5
- package/dist/components/Label/Label.interface.d.ts +15 -15
- package/dist/components/Label.js +4 -4
- package/dist/components/LanguageSelector.js +5 -5
- package/dist/components/Link/Link.interface.d.ts +21 -21
- package/dist/components/List/List.interface.d.ts +11 -11
- package/dist/components/Loader/Loader.interface.d.ts +11 -11
- package/dist/components/Loader.js +2 -2
- package/dist/components/Logo/Logo.d.ts +3 -2
- package/dist/components/Logo/Logo.interface.d.ts +20 -6
- package/dist/components/Logo/index.d.ts +1 -1
- package/dist/components/Logo.js +3 -3
- package/dist/components/Menu/Menu.interface.d.ts +5 -5
- package/dist/components/Menu.js +3 -3
- package/dist/components/MenuItem/MenuItem.interface.d.ts +21 -21
- package/dist/components/MenuItem.js +2 -2
- package/dist/components/Modal/Modal.interface.d.ts +4 -4
- package/dist/components/Modal.js +3 -3
- package/dist/components/Notification/Notification.interface.d.ts +16 -16
- package/dist/components/Notification.js +3 -3
- package/dist/components/Overlay/Overlay.interface.d.ts +4 -4
- package/dist/components/Pagination/Pagination.interface.d.ts +20 -20
- package/dist/components/Pagination.js +6 -6
- package/dist/components/Panel/Panel.interface.d.ts +22 -22
- package/dist/components/Panel.js +4 -4
- package/dist/components/Radio/Radio.interface.d.ts +25 -25
- package/dist/components/Radio.js +2 -2
- package/dist/components/RangeSlider/RangeSlider.interface.d.ts +12 -12
- package/dist/components/Response/Response.interface.d.ts +30 -28
- package/dist/components/Response.js +8 -8
- package/dist/components/SVGContent/SVGContent.d.ts +3 -0
- package/dist/components/SVGContent/SVGContent.interface.d.ts +11 -0
- package/dist/components/SVGContent/index.d.ts +1 -0
- package/dist/components/SVGContent.js +31 -0
- package/dist/components/ScrollOnDrag/ScrollOnDrag.interface.d.ts +9 -9
- package/dist/components/Scrollbar/Scrollbar.interface.d.ts +2 -2
- package/dist/components/Search/Search.interface.d.ts +23 -23
- package/dist/components/Search.js +5 -5
- package/dist/components/Segmented/Segmented.interface.d.ts +14 -14
- package/dist/components/Segmented.js +2 -2
- package/dist/components/Select.js +223 -836
- package/dist/components/SiteMenu/SiteMenu.interface.d.ts +9 -9
- package/dist/components/SiteMenu.js +5 -5
- package/dist/components/Swiper/Swiper.interface.d.ts +7 -7
- package/dist/components/Swiper.js +2 -2
- package/dist/components/Switch/Switch.interface.d.ts +2 -2
- package/dist/components/Tab/Tab.d.ts +3 -3
- package/dist/components/Tab/Tab.interface.d.ts +43 -44
- package/dist/components/Tab/TabGroup.d.ts +2 -2
- package/dist/components/Tab.js +3 -3
- package/dist/components/Text/Text.d.ts +3 -3
- package/dist/components/Text/Text.interface.d.ts +34 -35
- package/dist/components/Text.js +1 -1
- package/dist/components/Textarea/Textarea.interface.d.ts +17 -17
- package/dist/components/Textarea.js +1 -1
- package/dist/components/Tile/Tile.interface.d.ts +15 -15
- package/dist/components/Tile.js +4 -4
- package/dist/components/Title/Title.interface.d.ts +12 -12
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip/Tooltip.interface.d.ts +13 -13
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/Video/Video.interface.d.ts +2 -2
- package/dist/components/Wrapper/Wrapper.interface.d.ts +4 -4
- package/dist/components/index.d.ts +2 -1
- package/dist/components.js +45 -44
- package/dist/constants/componentProps/textColor.js +1 -1
- package/dist/constants/componentProps/textColorActive.js +1 -1
- package/dist/constants/componentProps/textColorHover.js +1 -1
- package/dist/css/components/Accordion/Accordion.css +11 -87
- package/dist/css/components/Avatar/Avatar.css +7 -102
- package/dist/css/components/Badge/Badge.css +8 -66
- package/dist/css/components/Button/Button.css +16 -335
- package/dist/css/components/Caption/Caption.css +4 -22
- package/dist/css/components/Card/Card.css +3 -18
- package/dist/css/components/Cell/Cell.css +13 -119
- package/dist/css/components/Checkbox/Checkbox.css +5 -95
- package/dist/css/components/Chips/Chips.css +5 -59
- package/dist/css/components/Choice/Choice.css +6 -84
- package/dist/css/components/Choice/css/__item/choice__item.css +2 -0
- package/dist/css/components/Code/Code.css +6 -34
- package/dist/css/components/ContextMenu/ContextMenu.css +5 -36
- package/dist/css/components/ContextMenu/css/__item/context-menu__item.css +2 -0
- package/dist/css/components/CookiesWarning/CookiesWarning.css +2 -36
- package/dist/css/components/DadataHintField/DadataHintField.css +6 -36
- package/dist/css/components/DatePicker/DatePicker.css +8 -1175
- package/dist/css/components/Divider/Divider.css +6 -48
- package/dist/css/components/Dot/Dot.css +5 -25
- package/dist/css/components/Drawer/Drawer.css +4 -52
- package/dist/css/components/Dropdown/Dropdown.css +13 -129
- package/dist/css/components/Flex/Flex.css +17 -178
- package/dist/css/components/Flex/css/__item/flex__item.css +2 -0
- package/dist/css/components/Flex/css/__item/flex__item_align.css +2 -0
- package/dist/css/components/Flex/css/__item/flex__item_direction.css +2 -0
- package/dist/css/components/Flex/css/__item/flex__item_grow.css +2 -0
- package/dist/css/components/Flex/css/__item/flex__item_justify-content.css +2 -0
- package/dist/css/components/Flex/css/__item/flex__item_shape.css +2 -0
- package/dist/css/components/Flex/css/__item/flex__item_wrap.css +2 -0
- package/dist/css/components/Grid/Grid.css +22 -218
- package/dist/css/components/Grid/css/__item/grid__item.css +2 -0
- package/dist/css/components/Grid/css/__item/grid__item_align-self.css +2 -0
- package/dist/css/components/Grid/css/__item/grid__item_column.css +2 -0
- package/dist/css/components/Grid/css/__item/grid__item_justify-self.css +2 -0
- package/dist/css/components/Grid/css/__item/grid__item_row.css +2 -0
- package/dist/css/components/Grid/css/__row/grid__row.css +2 -0
- package/dist/css/components/Group/Group.css +9 -94
- package/dist/css/components/HTMLContent/HTMLContent.css +7 -0
- package/dist/css/components/Icon/Icon.css +12 -123
- package/dist/css/components/Image/Image.css +9 -132
- package/dist/css/components/Input/Input.css +6 -85
- package/dist/css/components/InputMask/Input.css +6 -77
- package/dist/css/components/InputPassword/InputPassword.css +5 -68
- package/dist/css/components/Label/Label.css +8 -83
- package/dist/css/components/Link/Link.css +5 -32
- package/dist/css/components/List/List.css +9 -112
- package/dist/css/components/Loader/Loader.css +4 -44
- package/dist/css/components/Logo/Logo.css +7 -55
- package/dist/css/components/Menu/Menu.css +6 -56
- package/dist/css/components/MenuItem/MenuItem.css +9 -81
- package/dist/css/components/Modal/Modal.css +5 -39
- package/dist/css/components/Notification/Notification.css +11 -143
- package/dist/css/components/Notification/css/__item/notification__item_set_float.css +2 -0
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +2 -0
- package/dist/css/components/Notification/css/__item/notification__item_set_toast.css +2 -0
- package/dist/css/components/Notification/css/__item/notification__item_set_top.css +2 -0
- package/dist/css/components/Notification/css/__item/notification__item_status.css +2 -0
- package/dist/css/components/Notification/css/__item/notification__item_type_close-button.css +2 -0
- package/dist/css/components/Overlay/Overlay.css +5 -43
- package/dist/css/components/Page/Page.css +3 -8
- package/dist/css/components/Pagination/Pagination.css +8 -107
- package/dist/css/components/Pagination/css/__item/pagination__item.css +2 -0
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +2 -0
- package/dist/css/components/Pagination/css/__item/pagination__item_state_disabled.css +2 -0
- package/dist/css/components/Panel/Panel.css +10 -107
- package/dist/css/components/Radio/Radio.css +6 -113
- package/dist/css/components/RangeSlider/RangeSlider.css +15 -414
- package/dist/css/components/Response/Response.css +4 -29
- package/dist/css/components/SVGContent/SVGContent.css +3 -0
- package/dist/css/components/ScrollOnDrag/ScrollOnDrag.css +2 -30
- package/dist/css/components/Scrollbar/Scrollbar.css +3 -58
- package/dist/css/components/Search/Search.css +10 -114
- package/dist/css/components/Search/css/search-input/search-input.css +2 -0
- package/dist/css/components/Search/css/search-input/search-input_shape.css +2 -0
- package/dist/css/components/Search/css/search-input/search-input_size.css +2 -0
- package/dist/css/components/Search/css/search-result/search-result.css +2 -0
- package/dist/css/components/Search/css/search-result/search-result_shape.css +2 -0
- package/dist/css/components/Segmented/Segmented.css +6 -117
- package/dist/css/components/Select/Select.css +22 -373
- package/dist/css/components/Select/css/__control/select__control.css +2 -0
- package/dist/css/components/Select/css/__control/select__control_fill.css +2 -0
- package/dist/css/components/Select/css/__control/select__control_shape.css +2 -0
- package/dist/css/components/Select/css/__indicators/select__indicators.css +2 -0
- package/dist/css/components/Select/css/__input-container/select__input-container.css +2 -0
- package/dist/css/components/Select/css/__menu/select__menu-list-item_size.css +2 -0
- package/dist/css/components/Select/css/__menu/select__menu-notice.css +2 -0
- package/dist/css/components/Select/css/__menu/select__menu.css +2 -0
- package/dist/css/components/Select/css/__multi-value/select__multi-value.css +2 -0
- package/dist/css/components/Select/css/__option/select__option.css +2 -0
- package/dist/css/components/Select/css/__placeholder/select__placeholder.css +2 -0
- package/dist/css/components/Select/css/__single-value/select__single-value.css +2 -0
- package/dist/css/components/Select/css/__value-container/select__value-container.css +2 -0
- package/dist/css/components/SiteMenu/SiteMenu.css +3 -37
- package/dist/css/components/Swiper/Swiper.css +7 -973
- package/dist/css/components/Swiper/css/__item/swiper-block__item.css +2 -0
- package/dist/css/components/Switch/Switch.css +5 -68
- package/dist/css/components/Tab/Tab.css +9 -69
- package/dist/css/components/Text/Text.css +6 -57
- package/dist/css/components/Textarea/Textarea.css +5 -40
- package/dist/css/components/Tile/Tile.css +6 -47
- package/dist/css/components/Title/Title.css +7 -59
- package/dist/css/components/Tooltip/Tooltip.css +9 -121
- package/dist/css/components/Video/Video.css +7 -37
- package/dist/css/components/Wrapper/Wrapper.css +4 -35
- package/dist/css/styles/align/align.css +2 -0
- package/dist/css/styles/align/align_horizontal-reverse.css +2 -0
- package/dist/css/styles/align/align_horizontal.css +2 -0
- package/dist/css/styles/align/align_vertical-reverse.css +2 -0
- package/dist/css/styles/align/align_vertical.css +2 -0
- package/dist/css/styles/alignment/alignment.css +2 -0
- package/dist/css/styles/border-color/border-color.css +2 -0
- package/dist/css/styles/border-color/border-color_focus.css +2 -0
- package/dist/css/styles/border-color/border-color_hover.css +2 -0
- package/dist/css/styles/border-type/border-type.css +2 -0
- package/dist/css/styles/border-width/border-width.css +2 -0
- package/dist/css/styles/caret-color/caret-color.css +2 -0
- package/dist/css/styles/column-gap/column-gap.css +2 -0
- package/dist/css/styles/constraints/constraints.css +2 -0
- package/dist/css/styles/cursor/cursor.css +2 -0
- package/dist/css/styles/direction/direction.css +2 -0
- package/dist/css/styles/elevation/elevation.css +2 -0
- package/dist/css/styles/elevation/elevation_hover.css +2 -0
- package/dist/css/styles/fill/fill.css +2 -0
- package/dist/css/styles/fill/fill_active.css +2 -0
- package/dist/css/styles/fill/fill_active_hover.css +2 -0
- package/dist/css/styles/fill/fill_disabled.css +2 -0
- package/dist/css/styles/fill/fill_hover.css +2 -0
- package/dist/css/styles/fill-gradient/fill-gradient.css +2 -0
- package/dist/css/styles/flex/flex-grow.css +2 -0
- package/dist/css/styles/gap/gap.css +2 -0
- package/dist/css/styles/height/height.css +2 -0
- package/dist/css/styles/hover/hover-fill-color.css +2 -0
- package/dist/css/styles/hover/hover-item-color.css +2 -0
- package/dist/css/styles/hover/hover-text-color.css +2 -0
- package/dist/css/styles/justify-content/justify-content.css +2 -0
- package/dist/css/styles/mediaqueries.css +2 -24
- package/dist/css/styles/mixin_elevation.css +2 -0
- package/dist/css/styles/mixin_fill-gradient.css +2 -0
- package/dist/css/styles/mixin_global.css +2 -0
- package/dist/css/styles/opacity/opacity.css +2 -0
- package/dist/css/styles/placeholder-text-color/placeholder-text-color.css +2 -0
- package/dist/css/styles/position/position.css +2 -0
- package/dist/css/styles/resize-horizontal/resize-horizontal.css +2 -0
- package/dist/css/styles/resize-vertical/resize-vertical.css +2 -0
- package/dist/css/styles/row-gap/row-gap.css +2 -0
- package/dist/css/styles/shape/shape.css +2 -0
- package/dist/css/styles/svg-color/svg_fill.css +2 -1
- package/dist/css/styles/svg-color/svg_fill_hover.css +2 -0
- package/dist/css/styles/text-align/text-align.css +2 -0
- package/dist/css/styles/text-color/text-color.css +2 -0
- package/dist/css/styles/text-color/text-color_active.css +2 -0
- package/dist/css/styles/text-color/text-color_hover.css +2 -0
- package/dist/css/styles/text-decoration/text-decoration.css +2 -0
- package/dist/css/styles/text-gradient/text-gradient.css +2 -0
- package/dist/css/styles/text-style/text-style.css +2 -0
- package/dist/css/styles/text-truncate/text-truncate.css +2 -0
- package/dist/css/styles/text-weight/text-weight.css +2 -0
- package/dist/css/styles/width/width.css +2 -0
- package/dist/css/styles/word-wrap/word-wrap.css +2 -0
- package/dist/{floating-ui.dom-_PBQLJcF.js → floating-ui.dom-BV5qw-HP.js} +4 -5
- package/dist/hooks/styleAttributes.interface.d.ts +4 -4
- package/dist/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/types/componentProps/borderColor.d.ts +1 -1
- package/dist/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/types/componentProps/direction.d.ts +1 -1
- package/dist/types/componentProps/fill.d.ts +1 -1
- package/dist/types/componentProps/fillHover.d.ts +1 -1
- package/dist/types/componentProps/height.d.ts +1 -1
- package/dist/types/componentProps/itemColor.d.ts +1 -1
- package/dist/types/componentProps/shape.d.ts +1 -1
- package/dist/types/componentProps/size.d.ts +1 -1
- package/dist/types/componentProps/stateKeys.d.ts +1 -1
- package/dist/types/componentProps/textColor.d.ts +1 -1
- package/dist/types/componentProps/textColorActive.d.ts +2 -1
- package/dist/types/componentProps/textSize.d.ts +1 -1
- package/dist/types/componentProps/textWeight.d.ts +1 -1
- package/dist/types/componentProps/width.d.ts +1 -1
- package/dist/types/index.d.ts +13 -13
- package/package.json +14 -29
- package/dist/Logo-D6UNcO5P.js +0 -30
- package/dist/cjs/Logo-De74wmbt.js +0 -36
|
@@ -5,8 +5,8 @@ import clsx from 'clsx';
|
|
|
5
5
|
import castArray from 'lodash/castArray';
|
|
6
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from './hooks/useStyles.js';
|
|
8
|
-
import { I as Icon } from './Icon-
|
|
9
|
-
import { T as Text } from './Text-
|
|
8
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
9
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
10
10
|
|
|
11
11
|
var ChevronDown16 = function ChevronDown16(props) {
|
|
12
12
|
return /*#__PURE__*/React__default.createElement("svg", props, /*#__PURE__*/React__default.createElement("path", {
|
|
@@ -38,12 +38,17 @@ const icon16 = {
|
|
|
38
38
|
};
|
|
39
39
|
|
|
40
40
|
function AccordionItem(props) {
|
|
41
|
-
var
|
|
41
|
+
var id = props.id, children = props.children, isExpanded = props.isExpanded, afterContent = props.afterContent, beforeContent = props.beforeContent, className = props.className, content = props.content, contentTextColor = props.contentTextColor, contentTextSize = props.contentTextSize, contentTextWeight = props.contentTextWeight, icon = props.icon, _a = props.iconFill, iconFill = _a === void 0 ? 'surfaceItemAccent' : _a, size = props.size, title = props.title, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextWeight = props.titleTextWeight, onClick = props.onClick;
|
|
42
42
|
var onClickTitle = useCallback(function () {
|
|
43
|
-
// !isExpanded - is next state of expanded
|
|
44
|
-
var thisItemData = {
|
|
43
|
+
// "!isExpanded" - is next state of expanded
|
|
44
|
+
var thisItemData = {
|
|
45
|
+
id: id,
|
|
46
|
+
isExpanded: !isExpanded,
|
|
47
|
+
content: content,
|
|
48
|
+
title: title,
|
|
49
|
+
};
|
|
45
50
|
onClick && onClick(thisItemData);
|
|
46
|
-
}, [
|
|
51
|
+
}, [id, title, content, isExpanded, onClick]);
|
|
47
52
|
var borderColorClass = useDeviceTargetClass(props, {
|
|
48
53
|
prefix: 'border-color_',
|
|
49
54
|
propsKey: 'borderColor',
|
|
@@ -82,7 +87,7 @@ function AccordionItem(props) {
|
|
|
82
87
|
});
|
|
83
88
|
// @ts-expect-error
|
|
84
89
|
var styles = useStyles(props).styles;
|
|
85
|
-
return (jsxRuntimeExports.jsxs("div", { className: clsx('accordion-item', className, borderColorClass, fillClass, fillHoverClass, shapeClass, size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'),
|
|
90
|
+
return (jsxRuntimeExports.jsxs("div", { style: styles, className: clsx('accordion-item', className, borderColorClass, fillClass, fillHoverClass, shapeClass, size && "accordion-item_size_".concat(size), isExpanded && 'accordion-item_state_open'), children: [jsxRuntimeExports.jsx(Text, { size: titleTextSize, textColor: titleTextColor, textWeight: titleTextWeight, className: clsx('accordion-item__title', titleBorderColorClass, titleFillClass, titleFillHoverClass, 'cursor_type_pointer'), onClick: onClickTitle, children: title }), jsxRuntimeExports.jsx("div", { className: clsx('accordion-item__icon', 'cursor_type_pointer'), onClick: onClickTitle, children: icon || jsxRuntimeExports.jsx(Icon, { SvgImage: icon16.ChevronDown, iconFill: iconFill, size: "16" }) }), beforeContent && beforeContent, isExpanded && (jsxRuntimeExports.jsx("div", { className: clsx('accordion-item__content', contentBorderColorClass, contentFillClass, fillHoverClass), children: children ||
|
|
86
91
|
(content && (jsxRuntimeExports.jsx(Text, { size: contentTextSize, textColor: contentTextColor, textWeight: contentTextWeight, children: content }))) })), afterContent && afterContent] }));
|
|
87
92
|
}
|
|
88
93
|
AccordionItem.defaultProps = {
|
|
@@ -90,7 +95,7 @@ AccordionItem.defaultProps = {
|
|
|
90
95
|
};
|
|
91
96
|
|
|
92
97
|
function Accordion(props) {
|
|
93
|
-
var children = props.children,
|
|
98
|
+
var children = props.children, isMultiple = props.isMultiple, className = props.className, _a = props.initial, initial = _a === void 0 ? [] : _a, items = props.items, onClickItem = props.onClickItem;
|
|
94
99
|
var _b = useState(castArray(initial)), expandedItems = _b[0], setExpandedItems = _b[1];
|
|
95
100
|
var onClickAccordionItem = useCallback(function (targetItem) {
|
|
96
101
|
setExpandedItems(function (prevState) {
|
|
@@ -115,12 +120,13 @@ function Accordion(props) {
|
|
|
115
120
|
}
|
|
116
121
|
});
|
|
117
122
|
onClickItem && onClickItem(targetItem);
|
|
118
|
-
}, [onClickItem]);
|
|
123
|
+
}, [isMultiple, onClickItem]);
|
|
119
124
|
var accordionItemsList = useMemo(function () {
|
|
120
125
|
if (items) {
|
|
121
|
-
return items.map(function (item, i) { return (jsxRuntimeExports.jsx(AccordionItem, { content: item.content, id: item.id, isExpanded: expandedItems.includes(item.id),
|
|
126
|
+
return items.map(function (item, i) { return (jsxRuntimeExports.jsx(AccordionItem, { content: item.content, id: item.id, title: item.title, isExpanded: expandedItems.includes(item.id), onClick: onClickAccordionItem }, "accordionItem_".concat(item.id || i + 1))); });
|
|
122
127
|
}
|
|
123
128
|
if (children) {
|
|
129
|
+
// @ts-ignore
|
|
124
130
|
return React__default.Children.toArray(children).map(function (child) {
|
|
125
131
|
if (React__default.isValidElement(child)) {
|
|
126
132
|
var childID = child.props.id || child.key;
|
|
@@ -162,7 +168,7 @@ function Accordion(props) {
|
|
|
162
168
|
*/
|
|
163
169
|
// @ts-expect-error
|
|
164
170
|
var _c = useStyles(props), accordionStyles = _c.styles, accordionWrapperStyles = _c.wrapper;
|
|
165
|
-
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'accordion', borderColorClass, directionClass, fillClass, shapeClass, widthClass),
|
|
171
|
+
return (jsxRuntimeExports.jsx("div", { style: accordionStyles, className: clsx(className, 'accordion', borderColorClass, directionClass, fillClass, shapeClass, widthClass), children: jsxRuntimeExports.jsx("div", { className: "accordion__wrapper", style: accordionWrapperStyles, children: accordionItemsList }) }));
|
|
166
172
|
}
|
|
167
173
|
Accordion.defaultProps = {
|
|
168
174
|
initial: [],
|
|
@@ -2,9 +2,9 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
5
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
6
6
|
import { I as Image } from './Image-Bz4Fo3eB.js';
|
|
7
|
-
import { T as Text } from './Text-
|
|
7
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
8
8
|
|
|
9
9
|
function Avatar(props) {
|
|
10
10
|
var className = props.className, Dot = props.Dot, icon = props.icon, _a = props.size, size = _a === void 0 ? '96' : _a, after = props.after, before = props.before, src = props.src, type = props.type, mode = props.mode, onClick = props.onClick, _b = props.textSize, textSize = _b === void 0 ? 'l' : _b, _c = props.textColor, textColor = _c === void 0 ? 'surfaceTextTertiary' : _c, _d = props.textWeight, textWeight = _d === void 0 ? '600' : _d, iconSrc = props.iconSrc, iconItemFill = props.iconItemFill, iconShape = props.iconShape, iconSize = props.iconSize, iconFill = props.iconFill, iconFillHover = props.iconFillHover, iconFillSize = props.iconFillSize, _e = props.firstName, firstName = _e === void 0 ? '' : _e, _f = props.secondName, secondName = _f === void 0 ? '' : _f;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
4
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
7
6
|
|
|
8
7
|
var badgeConfig = {
|
|
9
8
|
appearance: undefined,
|
|
@@ -52,7 +51,7 @@ function Badge(props) {
|
|
|
52
51
|
});
|
|
53
52
|
// @ts-expect-error
|
|
54
53
|
var badgeStyles = useStyles(props).styles;
|
|
55
|
-
var appearanceConfig =
|
|
54
|
+
var appearanceConfig = appearance && badgeConfig.appearance && badgeConfig.appearance[appearance];
|
|
56
55
|
return (jsxRuntimeExports.jsx("div", { className: clsx(className, 'badge', !value && 'badge_type_status', mode && "badge_mode_".concat(mode), borderColorClass, borderColorHoverClass, borderWidthClass, borderTypeClass, fillClass ||
|
|
57
56
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
58
57
|
((_a = "fill_".concat(appearanceConfig.fill)) === null || _a === void 0 ? void 0 : _a.replace(/([A-Z])/g, '-$1').toLowerCase())), fillHoverClass ||
|
|
@@ -5,9 +5,9 @@ import clsx from 'clsx';
|
|
|
5
5
|
import camelCase from 'lodash/camelCase';
|
|
6
6
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
7
7
|
import { useStyles } from './hooks/useStyles.js';
|
|
8
|
-
import { I as Icon } from './Icon-
|
|
8
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
9
9
|
import { a as LinkWrapper } from './Link-Co6uspFK.js';
|
|
10
|
-
import { T as Text } from './Text-
|
|
10
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
11
11
|
|
|
12
12
|
function BreadcrumbsItem(props) {
|
|
13
13
|
var children = props.children, className = props.className, cursor = props.cursor, _a = props.set, set = _a === void 0 ? 'default' : _a, text = props.text, textSize = props.textSize, textColor = props.textColor, textColorHover = props.textColorHover, href = props.href, iconAfter = props.iconAfter, iconAfterSize = props.iconAfterSize, iconAfterBgFill = props.iconAfterBgFill, iconAfterFill = props.iconAfterFill, onClick = props.onClick;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
-
import React__default
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
-
import { I as Icon } from './Icon-
|
|
6
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
7
7
|
import { a as LinkWrapper } from './Link-Co6uspFK.js';
|
|
8
|
-
import { L as Loader } from './Loader-
|
|
9
|
-
import { T as Text } from './Text-
|
|
8
|
+
import { L as Loader } from './Loader-DhgIcSY1.js';
|
|
9
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
10
10
|
|
|
11
11
|
var buttonConfig = {
|
|
12
12
|
appearance: undefined,
|
|
@@ -15,7 +15,7 @@ var buttonConfig = {
|
|
|
15
15
|
},
|
|
16
16
|
};
|
|
17
17
|
var Button = React__default.forwardRef(function Button(props, ref) {
|
|
18
|
-
var before = props.before, appearance = props.appearance, after = props.after, className = props.className, dataTour = props.dataTour, dataTestId = props.dataTestId, Badge = props.Badge, children = props.children, fillIcon = props.fillIcon, fillIconAfter = props.fillIconAfter, fillIconBefore = props.fillIconBefore, iconAfter = props.iconAfter, iconAfterSize = props.iconAfterSize, iconBefore = props.iconBefore, iconBeforeSize = props.iconBeforeSize, label = props.label, labelTextColor = props.labelTextColor, labelTextColorHover = props.labelTextColorHover, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, _a = props.loaderSet, loaderSet = _a === void 0 ? 'simple' : _a, loaderFill = props.loaderFill, loaderItemFill = props.loaderItemFill, link = props.link, href = props.href, target = props.target, rel = props.rel; props.size; var icon = props.icon, iconShape = props.iconShape, iconAfterShape = props.iconAfterShape, iconBeforeShape = props.iconBeforeShape, iconSize = props.iconSize, iconFill = props.iconFill, iconFillSize = props.iconFillSize, iconBeforeFill = props.iconBeforeFill, iconBeforeFillSize = props.iconBeforeFillSize, iconAfterFill = props.iconAfterFill, iconAfterFillSize = props.iconAfterFillSize, iconAfterSrc = props.iconAfterSrc, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, set = props.set, _c = props.loading, loading = _c === void 0 ? false : _c, _d = props.htmlType, htmlType = _d === void 0 ? 'button' : _d; props.width; var isDisabled = props.isDisabled, onClick = props.onClick, onMouseDown = props.onMouseDown;
|
|
18
|
+
var before = props.before, appearance = props.appearance, after = props.after, className = props.className, dataTour = props.dataTour, dataTestId = props.dataTestId, Badge = props.Badge, children = props.children, fillIcon = props.fillIcon, fillIconAfter = props.fillIconAfter, fillIconBefore = props.fillIconBefore, iconAfter = props.iconAfter, iconAfterSize = props.iconAfterSize, iconBefore = props.iconBefore, iconBeforeSize = props.iconBeforeSize, label = props.label, labelTextColor = props.labelTextColor, labelTextColorHover = props.labelTextColorHover, labelTextSize = props.labelTextSize, labelTextSizeMobile = props.labelTextSizeMobile, labelTextWeight = props.labelTextWeight, labelTextWrap = props.labelTextWrap, _a = props.loaderSet, loaderSet = _a === void 0 ? 'simple' : _a, loaderFill = props.loaderFill, loaderItemFill = props.loaderItemFill, link = props.link, href = props.href, target = props.target, rel = props.rel; props.size; var icon = props.icon, iconShape = props.iconShape, iconAfterShape = props.iconAfterShape, iconBeforeShape = props.iconBeforeShape, iconSize = props.iconSize, iconFill = props.iconFill, iconFillSize = props.iconFillSize, iconBeforeFill = props.iconBeforeFill, iconBeforeFillSize = props.iconBeforeFillSize, iconAfterFill = props.iconAfterFill, iconAfterFillSize = props.iconAfterFillSize, iconAfterSrc = props.iconAfterSrc, iconBeforeSrc = props.iconBeforeSrc, iconSrc = props.iconSrc, set = props.set, _c = props.loading, loading = _c === void 0 ? false : _c, _d = props.htmlType, htmlType = _d === void 0 ? 'button' : _d; props.width; var isDisabled = props.isDisabled, onClick = props.onClick, onMouseDown = props.onMouseDown;
|
|
19
19
|
var widthClass = useDeviceTargetClass(props, {
|
|
20
20
|
prefix: 'button_width_',
|
|
21
21
|
propsKey: 'width',
|
|
@@ -54,7 +54,7 @@ var Button = React__default.forwardRef(function Button(props, ref) {
|
|
|
54
54
|
});
|
|
55
55
|
// @ts-expect-error
|
|
56
56
|
var _f = useStyles(props), buttonStyles = _f.styles, labelStyles = _f.label;
|
|
57
|
-
var appearanceConfig =
|
|
57
|
+
var appearanceConfig = appearance && buttonConfig.appearance && buttonConfig.appearance[appearance];
|
|
58
58
|
return (jsxRuntimeExports.jsx(LinkWrapper, { className: clsx(className, 'button', label && 'button_type_label', borderColorClass ? 'button_set_outlined' : set ? "button_set_".concat(set) : 'button_set_filled', borderWidthClass ||
|
|
59
59
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderWidth) &&
|
|
60
60
|
"border-width_".concat(appearanceConfig.borderWidth)
|
|
@@ -80,7 +80,7 @@ var Button = React__default.forwardRef(function Button(props, ref) {
|
|
|
80
80
|
iconBefore ||
|
|
81
81
|
iconBeforeSrc ||
|
|
82
82
|
iconSrc) &&
|
|
83
|
-
'button_type_with-icon', loading && 'button_state_loading button_type_loader'), "data-test-id": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, DefaultComponent: "button", disabled: isDisabled, href: link || href, rel: rel, style: buttonStyles, target: target, type: htmlType, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntimeExports.jsxs("div", { className: "button__wrapper", ref: ref, children: [loading && (jsxRuntimeExports.jsx(Loader, { className: "button__loader", fill: loaderFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.loaderFill), itemFill: loaderItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.loaderItemFill), set: loaderSet })), before, (iconBefore || iconBeforeSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon_before", fill: fillIconBefore, fillSize: iconBeforeFillSize, iconFill: iconBeforeFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeFill), imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon", fill: fillIcon, fillSize: iconFillSize, iconFill: iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFill), imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsxRuntimeExports.jsx(Text, { className: "button__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize) || undefined, style: labelStyles, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorHover: labelTextColorHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColorHover), textWrap: labelTextWrap, textWeight: labelTextWeight, children: children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label) })), (iconAfter || iconAfterSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon_after", fill: fillIconAfter, fillSize: iconAfterFillSize, iconFill: iconAfterFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterFill), imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
|
|
83
|
+
'button_type_with-icon', loading && 'button_state_loading button_type_loader'), "data-test-id": dataTestId && "".concat(dataTestId, "Button"), "data-tour": dataTour, DefaultComponent: "button", disabled: isDisabled, href: link || href, rel: rel, style: buttonStyles, target: target, type: htmlType, onClick: onClick, onMouseDown: onMouseDown, children: jsxRuntimeExports.jsxs("div", { className: "button__wrapper", ref: ref, children: [loading && (jsxRuntimeExports.jsx(Loader, { className: "button__loader", fill: loaderFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.loaderFill), itemFill: loaderItemFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.loaderItemFill), set: loaderSet })), before, (iconBefore || iconBeforeSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon_before", fill: fillIconBefore, fillSize: iconBeforeFillSize, iconFill: iconBeforeFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconBeforeFill), imageSrc: iconBeforeSrc, shape: iconBeforeShape, size: iconBeforeSize, SvgImage: iconBefore })), (icon || iconSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon", fill: fillIcon, fillSize: iconFillSize, iconFill: iconFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconFill), imageSrc: iconSrc, shape: iconShape, size: iconSize, SvgImage: icon })), (children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label)) && (jsxRuntimeExports.jsx(Text, { className: "button__label", size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize) || undefined, sizeMobile: labelTextSizeMobile, style: labelStyles, textColor: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), textColorHover: labelTextColorHover || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColorHover), textWrap: labelTextWrap, textWeight: labelTextWeight, children: children || label || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.label) })), (iconAfter || iconAfterSrc) && (jsxRuntimeExports.jsx(Icon, { className: "button__icon_after", fill: fillIconAfter, fillSize: iconAfterFillSize, iconFill: iconAfterFill || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.iconAfterFill), imageSrc: iconAfterSrc, shape: iconAfterShape, size: iconAfterSize, SvgImage: iconAfter })), Badge, after] }) }));
|
|
84
84
|
});
|
|
85
85
|
Button.defaultProps = {
|
|
86
86
|
// Button with a `type="submit"` attribute is a form control by default.
|
|
@@ -2,7 +2,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { I as Image } from './Image-Bz4Fo3eB.js';
|
|
5
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
6
6
|
|
|
7
7
|
function Card(props) {
|
|
8
8
|
var children = props.children, className = props.className, size = props.size, src = props.src, text = props.text, textSize = props.textSize, textColor = props.textColor, textTag = props.textTag, title = props.title, titleSize = props.titleSize, titleTag = props.titleTag, titleColor = props.titleColor, image = props.image, imageShape = props.imageShape, type = props.type, onClick = props.onClick;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
|
-
import { I as Icon } from './Icon-
|
|
5
|
-
import { L as Label } from './Label-
|
|
6
|
-
import { T as Text } from './Text-
|
|
4
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
5
|
+
import { L as Label } from './Label-0lMH0-AK.js';
|
|
6
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
7
|
+
import { useStyles } from './hooks/useStyles.js';
|
|
7
8
|
|
|
8
9
|
function Cell(props) {
|
|
9
10
|
var after = props.after, before = props.before, className = props.className, isActive = props.isActive, isDisabled = props.isDisabled, mode = props.mode, reverse = props.reverse, set = props.set, showTitleLabel = props.showTitleLabel, showValueLabel = props.showValueLabel, size = props.size, title = props.title, titleIcon = props.titleIcon, titleIconFill = props.titleIconFill, titleIconFillHover = props.titleIconFillHover, titleIconFillSize = props.titleIconFillSize, titleIconItemFill = props.titleIconItemFill, titleIconShape = props.titleIconShape, titleIconSrc = props.titleIconSrc, titleLabel = props.titleLabel, titleLabelAppearance = props.titleLabelAppearance, titleLabelShape = props.titleLabelShape, titleLabelSize = props.titleLabelSize, titleLabelTextSize = props.titleLabelTextSize, titleTag = props.titleTag, titleTextColor = props.titleTextColor, titleTextSize = props.titleTextSize, titleTextTruncate = props.titleTextTruncate, titleTextWeight = props.titleTextWeight, titleTextWrap = props.titleTextWrap, value = props.value, valueIcon = props.valueIcon, valueIconFill = props.valueIconFill, valueIconFillHover = props.valueIconFillHover, valueIconFillSize = props.valueIconFillSize, valueIconItemFill = props.valueIconItemFill, valueIconShape = props.valueIconShape, valueIconSrc = props.valueIconSrc, valueLabel = props.valueLabel, valueLabelAppearance = props.valueLabelAppearance, valueLabelShape = props.valueLabelShape, valueLabelSize = props.valueLabelSize, valueLabelTextSize = props.valueLabelTextSize, valueTag = props.valueTag, valueTextAlign = props.valueTextAlign, valueTextColor = props.valueTextColor, valueTextSize = props.valueTextSize, valueTextWeight = props.valueTextWeight, valueTextWrap = props.valueTextWrap, zeroGap = props.zeroGap, zeroPadding = props.zeroPadding, onClick = props.onClick, onMouseEnter = props.onMouseEnter;
|
|
@@ -55,7 +56,9 @@ function Cell(props) {
|
|
|
55
56
|
prefix: 'width_',
|
|
56
57
|
propsKey: 'width',
|
|
57
58
|
});
|
|
58
|
-
|
|
59
|
+
// @ts-expect-error
|
|
60
|
+
var cellStyles = useStyles(props).styles;
|
|
61
|
+
return (jsxRuntimeExports.jsxs("div", { className: clsx(className, 'cell', mode && "cell_mode_".concat(mode), size && "cell_size_".concat(size), set && "cell_set_".concat(set), bgFillClass, bgFillHoverClass, isActive && bgFillActiveClass, isDisabled && bgFillDisabledClass, bgShapeClass, widthClass, zeroPadding && 'cell_reset-padding', zeroGap && 'cell_reset-gap', reverse && 'cell_reverse'), onClick: onClick, onMouseEnter: onMouseEnter, style: cellStyles, children: [before && jsxRuntimeExports.jsx("div", { className: "cell__before", children: before }), jsxRuntimeExports.jsxs("div", { className: clsx('cell__wrapper', directionClass, fillClass, fillHoverClass, isActive && fillActiveClass, isDisabled && fillDisabledClass, shapeClass), children: [title && (jsxRuntimeExports.jsxs("div", { className: "cell__data", children: [jsxRuntimeExports.jsx(Text, { className: "cell__title", size: titleTextSize, tag: titleTag, textColor: titleTextColor, textTruncate: titleTextTruncate, textWeight: titleTextWeight, textWrap: titleTextWrap, children: title }), (titleIcon || titleIconSrc) && (jsxRuntimeExports.jsx(Icon, { className: "cell__icon", fill: titleIconFill, fillSize: titleIconFillSize, iconFill: titleIconItemFill, iconFillHover: titleIconFillHover, imageSrc: titleIconSrc, shape: titleIconShape, SvgImage: titleIcon })), showTitleLabel && (jsxRuntimeExports.jsx(Label, { appearance: titleLabelAppearance, label: titleLabel, labelTextSize: titleLabelTextSize, shape: titleLabelShape, size: titleLabelSize }))] })), value && (jsxRuntimeExports.jsxs("div", { className: "cell__data", children: [jsxRuntimeExports.jsx(Text, { className: "cell__value", size: valueTextSize, tag: valueTag, textAlign: valueTextAlign, textColor: valueTextColor, textWeight: valueTextWeight, textWrap: valueTextWrap, children: value }), (valueIcon || valueIconSrc) && (jsxRuntimeExports.jsx(Icon, { className: "cell__icon", fill: valueIconFill, fillSize: valueIconFillSize, iconFill: valueIconItemFill, iconFillHover: valueIconFillHover, imageSrc: valueIconSrc, shape: valueIconShape, SvgImage: valueIcon })), showValueLabel && (jsxRuntimeExports.jsx(Label, { appearance: valueLabelAppearance, label: valueLabel, labelTextSize: valueLabelTextSize, shape: valueLabelShape, size: valueLabelSize }))] }))] }), after && jsxRuntimeExports.jsx("div", { className: "cell__after", children: after })] }));
|
|
59
62
|
}
|
|
60
63
|
Cell.defaultProps = {
|
|
61
64
|
isDisabled: false,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { T as Text } from './Text-
|
|
4
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
6
5
|
|
|
7
6
|
var checkboxConfig = {
|
|
8
|
-
state: undefined,
|
|
9
|
-
setState: function (newComponent) {
|
|
10
|
-
checkboxConfig.state = newComponent;
|
|
11
|
-
},
|
|
12
7
|
appearance: undefined,
|
|
13
8
|
setAppearance: function (newComponent) {
|
|
14
9
|
checkboxConfig.appearance = newComponent;
|
|
15
10
|
},
|
|
11
|
+
state: undefined,
|
|
12
|
+
// eslint-disable-next-line perfectionist/sort-objects
|
|
13
|
+
setState: function (newComponent) {
|
|
14
|
+
checkboxConfig.state = newComponent;
|
|
15
|
+
},
|
|
16
16
|
};
|
|
17
17
|
function Checkbox(props) {
|
|
18
|
-
var
|
|
18
|
+
var id = props.id, _a = props.Tag, Tag = _a === void 0 ? 'label' : _a, after = props.after, appearance = props.appearance, before = props.before, checked = props.checked, className = props.className, desc = props.desc, descTextColor = props.descTextColor, descTextSize = props.descTextSize, descTextWeight = props.descTextWeight, disabled = props.disabled, label = props.label, labelTextColor = props.labelTextColor, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, value = props.value, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
19
19
|
var fillClass = useDeviceTargetClass(props, {
|
|
20
20
|
prefix: 'fill_',
|
|
21
21
|
propsKey: 'fill',
|
|
@@ -56,7 +56,8 @@ function Checkbox(props) {
|
|
|
56
56
|
prefix: 'width_',
|
|
57
57
|
propsKey: 'width',
|
|
58
58
|
});
|
|
59
|
-
|
|
59
|
+
// prettier-ignore
|
|
60
|
+
var appearanceConfig = (appearance && checkboxConfig.appearance && checkboxConfig.appearance[appearance]);
|
|
60
61
|
return (jsxRuntimeExports.jsxs(Tag, { className: clsx(className, 'checkbox', fillClass, shapeClass, widthClass), htmlFor: Tag === 'label' && id, children: [before, jsxRuntimeExports.jsxs("div", { className: clsx('checkbox__item', stateCheckmarkFillClass ||
|
|
61
62
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.stateCheckmarkFill) &&
|
|
62
63
|
"checkbox_checkmark_fill_".concat(appearanceConfig.stateCheckmarkFill)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
4
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
7
6
|
|
|
8
7
|
var chipsConfig = {
|
|
9
8
|
appearance: undefined,
|
|
@@ -12,7 +11,8 @@ var chipsConfig = {
|
|
|
12
11
|
},
|
|
13
12
|
};
|
|
14
13
|
function Chips(props) {
|
|
15
|
-
var
|
|
14
|
+
var children = props.children, isActive = props.isActive, appearance = props.appearance, className = props.className, _a = props.label, label = _a === void 0 ? '' : _a, labelSize = props.labelSize, // labelTextSize,
|
|
15
|
+
labelTextActiveColor = props.labelTextActiveColor, labelTextColor = props.labelTextColor, labelTextWeight = props.labelTextWeight, type = props.type, onClick = props.onClick;
|
|
16
16
|
var alignDirectionClass = useDeviceTargetClass(props, {
|
|
17
17
|
prefix: 'align_',
|
|
18
18
|
propsKey: 'alignDirection',
|
|
@@ -29,6 +29,10 @@ function Chips(props) {
|
|
|
29
29
|
prefix: 'fill_hover_',
|
|
30
30
|
propsKey: 'fillHover',
|
|
31
31
|
});
|
|
32
|
+
var fillActiveClass = useDeviceTargetClass(props, {
|
|
33
|
+
prefix: 'fill_active_',
|
|
34
|
+
propsKey: 'fillActive',
|
|
35
|
+
});
|
|
32
36
|
var sizeClass = useDeviceTargetClass(props, {
|
|
33
37
|
prefix: 'chips_size_',
|
|
34
38
|
propsKey: 'size',
|
|
@@ -51,19 +55,23 @@ function Chips(props) {
|
|
|
51
55
|
});
|
|
52
56
|
// @ts-expect-error
|
|
53
57
|
var chipsStyles = useStyles(props).styles;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
// prettier-ignore
|
|
59
|
+
var appearanceConfig = (appearance && chipsConfig.appearance && chipsConfig.appearance[appearance]);
|
|
60
|
+
return (jsxRuntimeExports.jsx("div", { style: chipsStyles, className: clsx(className, 'chips', isActive && 'chips_state_active', isActive
|
|
61
|
+
? fillActiveClass ||
|
|
62
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillActive) &&
|
|
63
|
+
"fill_".concat(appearanceConfig.fillActive).replace(/([A-Z])/g, '-$1').toLowerCase())
|
|
64
|
+
: fillClass ||
|
|
65
|
+
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fill) &&
|
|
66
|
+
"fill_".concat(appearanceConfig.fill).replace(/([A-Z])/g, '-$1').toLowerCase()), fillHoverClass ||
|
|
58
67
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
59
68
|
"fill_hover_".concat(appearanceConfig.fillHover).replace(/([A-Z])/g, '-$1').toLowerCase()), shapeClass, borderColorClass ||
|
|
60
69
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
61
70
|
"border-color_".concat(appearanceConfig.borderColor)
|
|
62
71
|
.replace(/([A-Z])/g, '-$1')
|
|
63
|
-
.toLowerCase()), borderTypeClass, sizeClass, alignDirectionClass, alignClass, type && "chips_type_".concat(type), cursorClass
|
|
72
|
+
.toLowerCase()), borderTypeClass, sizeClass, alignDirectionClass, alignClass, type && "chips_type_".concat(type), cursorClass, onClick && 'cursor_type_pointer'), onClick: onClick, children: jsxRuntimeExports.jsxs("div", { className: "chips__inner", children: [typeof label === 'string' ? (jsxRuntimeExports.jsx(Text, { className: "chips__label", size: labelSize, textWeight: labelTextWeight, textColor: isActive
|
|
73
|
+
? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
|
|
74
|
+
: labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor), children: label })) : (jsxRuntimeExports.jsx("div", { className: "chips__label", children: label })), children] }) }));
|
|
64
75
|
}
|
|
65
|
-
Chips.defaultProps = {
|
|
66
|
-
label: 'Chips',
|
|
67
|
-
};
|
|
68
76
|
|
|
69
77
|
export { Chips as C, chipsConfig as c };
|
|
@@ -2,8 +2,9 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import React__default, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
6
|
-
import {
|
|
5
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
6
|
+
import { L as Loader } from './Loader-DhgIcSY1.js';
|
|
7
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
7
8
|
|
|
8
9
|
var choiceConfig = {
|
|
9
10
|
appearance: {},
|
|
@@ -12,7 +13,7 @@ var choiceConfig = {
|
|
|
12
13
|
},
|
|
13
14
|
};
|
|
14
15
|
var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
15
|
-
var
|
|
16
|
+
var _a = props.isCheckbox, isCheckbox = _a === void 0 ? false : _a, _b = props.isDisabled, isDisabled = _b === void 0 ? false : _b, _c = props.isLoading, isLoading = _c === void 0 ? false : _c, _d = props.active, active = _d === void 0 ? { value: undefined } : _d, activeIcon = props.activeIcon, activeIconItemFill = props.activeIconItemFill, after = props.after, appearance = props.appearance, before = props.before, className = props.className, icon = props.icon, iconFillDisabled = props.iconFillDisabled, iconItemFill = props.iconItemFill, iconSize = props.iconSize, labelTextActiveColor = props.labelTextActiveColor, labelTextActiveColorDisabled = props.labelTextActiveColorDisabled, labelTextColor = props.labelTextColor, labelTextColorDisabled = props.labelTextColorDisabled, labelTextSize = props.labelTextSize, labelTextWeight = props.labelTextWeight, name = props.name, _e = props.options, options = _e === void 0 ? [] : _e, set = props.set, setActiveSegment = props.setActiveSegment, _f = props.size, size = _f === void 0 ? 'normal' : _f, type = props.type;
|
|
16
17
|
var controlRef = useRef(null);
|
|
17
18
|
var optionsRefs = useMemo(function () { return new Map(options.map(function (item) { return [item.value, createRef()]; })); }, [options]);
|
|
18
19
|
var onChange = useCallback(function (event, item) {
|
|
@@ -55,8 +56,9 @@ var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
|
55
56
|
prefix: 'fill_active_disabled_',
|
|
56
57
|
propsKey: 'fillActiveDisabled',
|
|
57
58
|
});
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
// prettier-ignore
|
|
60
|
+
var appearanceConfig = (appearance && choiceConfig.appearance && choiceConfig.appearance[appearance]);
|
|
61
|
+
return (jsxRuntimeExports.jsx("div", { ref: controlRef, className: clsx(className, 'choice', shapeClass ||
|
|
60
62
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.shape) &&
|
|
61
63
|
"choice_shape_".concat(appearanceConfig.shape).replace(/([A-Z])/g, '-$1').toLowerCase()), !isDisabled
|
|
62
64
|
? fillClass ||
|
|
@@ -66,7 +68,7 @@ var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
|
66
68
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.borderColor) &&
|
|
67
69
|
"border-color_".concat(appearanceConfig.borderColor)
|
|
68
70
|
.replace(/([A-Z])/g, '-$1')
|
|
69
|
-
.toLowerCase()), borderWidthClass, borderTypeClass, set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type)),
|
|
71
|
+
.toLowerCase()), borderWidthClass, borderTypeClass, set && "choice_set_".concat(set), size && "choice_size_".concat(size), type && "choice_type_".concat(type)), children: isLoading ? (jsxRuntimeExports.jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent", set: "simple" })) : (jsxRuntimeExports.jsx("div", { className: "choice__wrapper", children: options.map(function (item) { return (jsxRuntimeExports.jsxs("div", { ref: optionsRefs.get(item.value), className: clsx('choice__item', !isDisabled &&
|
|
70
72
|
(fillHoverClass ||
|
|
71
73
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.fillHover) &&
|
|
72
74
|
"fill_active_".concat(appearanceConfig.fillHover)
|
|
@@ -81,20 +83,15 @@ var Choice = React__default.forwardRef(function Choice(props, ref) {
|
|
|
81
83
|
: fillActiveDisabledClass
|
|
82
84
|
: !isDisabled
|
|
83
85
|
? fillClass
|
|
84
|
-
: fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'),
|
|
86
|
+
: fillDisabledClass, item.value === active.value && isDisabled && 'choice__item_active_state_disabled', item.value === active.value && 'choice__item_active'), children: [jsxRuntimeExports.jsx("input", { checked: item.value === active.value, className: "choice__item-radio", disabled: isDisabled, id: "".concat(name, "-").concat(item.value), name: name, type: isCheckbox ? 'checkbox' : 'radio', value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxRuntimeExports.jsxs("label", { htmlFor: "".concat(name, "-").concat(item.value), className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), children: [before, item.label && (jsxRuntimeExports.jsx(Text, { size: labelTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextSize), textWeight: labelTextWeight, textColor: item.value === active.value
|
|
85
87
|
? !isDisabled
|
|
86
88
|
? labelTextActiveColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextActiveColor)
|
|
87
89
|
: labelTextActiveColorDisabled
|
|
88
90
|
: !isDisabled
|
|
89
91
|
? labelTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.labelTextColor)
|
|
90
|
-
: labelTextColorDisabled,
|
|
92
|
+
: labelTextColorDisabled, children: item.label })), (icon || activeIcon) && (jsxRuntimeExports.jsx(Icon, { SvgImage: item.value === active.value ? activeIcon : icon, className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconSize: iconSize, iconFill: item.value === active.value
|
|
91
93
|
? activeIconItemFill || item.activeIconItemFill
|
|
92
|
-
: iconItemFill || item.iconItemFill
|
|
94
|
+
: iconItemFill || item.iconItemFill })), after] })] }, item.value)); }) })) }));
|
|
93
95
|
});
|
|
94
|
-
Choice.defaultProps = {
|
|
95
|
-
active: { value: undefined },
|
|
96
|
-
options: [],
|
|
97
|
-
size: 'normal',
|
|
98
|
-
};
|
|
99
96
|
|
|
100
97
|
export { Choice as C, choiceConfig as c };
|
|
@@ -2,8 +2,8 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
4
4
|
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
5
|
-
import { I as Icon } from './Icon-
|
|
6
|
-
import { T as Text } from './Text-
|
|
5
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
6
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
7
7
|
|
|
8
8
|
function ContextMenu(props) {
|
|
9
9
|
var id = props.id, children = props.children, className = props.className, set = props.set, onClick = props.onClick;
|
|
@@ -3,9 +3,9 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import Cookies from 'js-cookie';
|
|
5
5
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
6
|
-
import { B as Button } from './Button-
|
|
7
|
-
import { G as Group } from './Group-
|
|
8
|
-
import { T as Text } from './Text-
|
|
6
|
+
import { B as Button } from './Button-DxZUKQ8I.js';
|
|
7
|
+
import { G as Group } from './Group-DuHn_z2p.js';
|
|
8
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
9
9
|
|
|
10
10
|
function CookiesWarning(props) {
|
|
11
11
|
var _a = props.message, message = _a === void 0 ? 'The site uses cookies to collect technical information, to optimize the design and improvement of the website, and to provide certain functions. By using the website, you agree to the use of «cookies».' : _a, className = props.className, buttonFill = props.buttonFill, buttonFillHover = props.buttonFillHover, _b = props.buttonLabel, buttonLabel = _b === void 0 ? 'I agree' : _b, buttonLabelSize = props.buttonLabelSize, buttonLabelTextColor = props.buttonLabelTextColor, buttonShape = props.buttonShape, buttonSize = props.buttonSize, textSize = props.textSize, textColor = props.textColor, buttonWidth = props.buttonWidth, _c = props.isHideOnScroll, isHideOnScroll = _c === void 0 ? false : _c;
|
|
@@ -3,7 +3,7 @@ import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
|
3
3
|
import React__default, { PureComponent, useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import crypto from 'crypto';
|
|
6
|
-
import { I as Input } from './Input-
|
|
6
|
+
import { I as Input } from './Input-CYDtAlO-.js';
|
|
7
7
|
|
|
8
8
|
function getDefaultExportFromCjs (x) {
|
|
9
9
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -5,13 +5,13 @@ import React__default, { createElement, Component, useLayoutEffect, useEffect, c
|
|
|
5
5
|
import clsx$1, { clsx } from 'clsx';
|
|
6
6
|
import * as ReactDOM from 'react-dom';
|
|
7
7
|
import ReactDOM__default, { findDOMNode } from 'react-dom';
|
|
8
|
-
import { o as offset$1, f as flip$1, c as computePosition, b as arrow$2, g as getComputedStyle, i as isElement, a as autoUpdate } from './floating-ui.dom-
|
|
8
|
+
import { o as offset$1, f as flip$1, c as computePosition, b as arrow$2, g as getComputedStyle, i as isElement, a as autoUpdate } from './floating-ui.dom-BV5qw-HP.js';
|
|
9
9
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
10
|
-
import { B as Button } from './Button-
|
|
11
|
-
import { I as Icon } from './Icon-
|
|
12
|
-
import { I as Input } from './Input-
|
|
13
|
-
import { L as Label } from './Label-
|
|
14
|
-
import { T as Text } from './Text-
|
|
10
|
+
import { B as Button } from './Button-DxZUKQ8I.js';
|
|
11
|
+
import { I as Icon } from './Icon-C0gtkmdU.js';
|
|
12
|
+
import { I as Input } from './Input-CYDtAlO-.js';
|
|
13
|
+
import { L as Label } from './Label-0lMH0-AK.js';
|
|
14
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
15
15
|
|
|
16
16
|
function buildFormatLongFn(args) {
|
|
17
17
|
return (options = {}) => {
|
|
@@ -130,10 +130,10 @@ var EZDrawer = function EZDrawer(props) {
|
|
|
130
130
|
};
|
|
131
131
|
|
|
132
132
|
function Drawer(props) {
|
|
133
|
-
var after = props.after, before = props.before,
|
|
134
|
-
return (jsxRuntimeExports.jsxs(EZDrawer, {
|
|
133
|
+
var children = props.children, isOpenModal = props.isOpenModal, after = props.after, before = props.before, className = props.className, closeModal = props.closeModal, dataTour = props.dataTour, direction = props.direction, enableOverlay = props.enableOverlay, size = props.size, type = props.type;
|
|
134
|
+
return (jsxRuntimeExports.jsxs(EZDrawer, { direction: direction || 'right', enableOverlay: enableOverlay, lockBackgroundScroll: false,
|
|
135
135
|
// @ts-expect-error
|
|
136
|
-
open: isOpenModal, overlayClassName: "drawer__overlay", size: size || 600,
|
|
136
|
+
open: isOpenModal, overlayClassName: "drawer__overlay", size: size || 600, className: clsx('drawer', type && "drawer_type_".concat(type), className, dataTour && "data-tour-".concat(dataTour)), onClose: closeModal, children: [before && jsxRuntimeExports.jsx("div", { className: "drawer__before", children: before }), children && jsxRuntimeExports.jsx("div", { className: "drawer__wrapper", children: children }), after && jsxRuntimeExports.jsx("div", { className: "drawer__after", children: after })] }));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export { Drawer as D };
|
|
@@ -5,7 +5,7 @@ import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
|
5
5
|
import { useStyles } from './hooks/useStyles.js';
|
|
6
6
|
import { D as Divider } from './Divider-Dhj6sMWd.js';
|
|
7
7
|
import { L as Link } from './Link-Co6uspFK.js';
|
|
8
|
-
import { T as Text } from './Text-
|
|
8
|
+
import { T as Text } from './Text-Dn0X1zxN.js';
|
|
9
9
|
|
|
10
10
|
function Dropdown(props) {
|
|
11
11
|
var after = props.after, before = props.before, animationClose = props.animationClose, animationOpen = props.animationOpen, children = props.children, className = props.className, set = props.set, isOpen = props.isOpen, setIsOpen = props.setIsOpen;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from './jsx-runtime-C2uP7l8s.js';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
2
|
import clsx from 'clsx';
|
|
4
3
|
import { useDeviceTargetClass } from './hooks/useDeviceTargetClass.js';
|
|
5
4
|
import { useStyles } from './hooks/useStyles.js';
|
|
@@ -86,7 +85,7 @@ function Group(props) {
|
|
|
86
85
|
});
|
|
87
86
|
// @ts-expect-error
|
|
88
87
|
var _b = useStyles(props), groupStyles = _b.styles, groupWrapperStyles = _b.wrapper;
|
|
89
|
-
var appearanceConfig =
|
|
88
|
+
var appearanceConfig = appearance && groupConfig.appearance && groupConfig.appearance[appearance];
|
|
90
89
|
return (jsxRuntimeExports.jsx(Tag, { className: clsx(className, 'group', widthClass, heightClass, columnsClass, contentAlignClass, alignDirectionClass, directionClass ||
|
|
91
90
|
((appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.direction) &&
|
|
92
91
|
"group_direction_".concat(appearanceConfig.direction)
|