@skbkontur/react-ui 6.4.6-b246a.0 → 6.4.7-25ce4.0
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/CHANGELOG.md +11 -0
- package/README.md +42 -0
- package/components/Autocomplete/Autocomplete.css.d.ts +6 -0
- package/components/Autocomplete/Autocomplete.css.js +4 -0
- package/components/Autocomplete/Autocomplete.css.js.map +1 -0
- package/components/Autocomplete/Autocomplete.d.ts +0 -3
- package/components/Autocomplete/Autocomplete.js +4 -6
- package/components/Autocomplete/Autocomplete.js.map +1 -1
- package/components/Autocomplete/getAutocompleteTheme.d.ts +1 -2
- package/components/Autocomplete/getAutocompleteTheme.js +3 -2
- package/components/Autocomplete/getAutocompleteTheme.js.map +1 -1
- package/components/Button/Button.classes.js +1 -1
- package/components/Button/Button.classes.js.map +1 -1
- package/components/Button/Button.css.d.ts +166 -0
- package/components/Button/Button.css.js +77 -0
- package/components/Button/Button.css.js.map +1 -0
- package/components/Button/Button.d.ts +0 -4
- package/components/Button/Button.js +73 -74
- package/components/Button/Button.js.map +1 -1
- package/components/Button/ButtonArrow.d.ts +1 -4
- package/components/Button/ButtonArrow.js +10 -14
- package/components/Button/ButtonArrow.js.map +1 -1
- package/components/Button/ButtonIcon.css.d.ts +28 -0
- package/components/Button/ButtonIcon.css.js +15 -0
- package/components/Button/ButtonIcon.css.js.map +1 -0
- package/components/Button/ButtonIcon.js +9 -21
- package/components/Button/ButtonIcon.js.map +1 -1
- package/components/Button/LoadingButtonIcon.js +2 -4
- package/components/Button/LoadingButtonIcon.js.map +1 -1
- package/components/Button/getInnerLinkTheme.d.ts +1 -2
- package/components/Button/getInnerLinkTheme.js +3 -2
- package/components/Button/getInnerLinkTheme.js.map +1 -1
- package/components/Calendar/Calendar.css.d.ts +8 -0
- package/components/Calendar/Calendar.css.js +5 -0
- package/components/Calendar/Calendar.css.js.map +1 -0
- package/components/Calendar/Calendar.d.ts +0 -3
- package/components/Calendar/Calendar.js +5 -5
- package/components/Calendar/Calendar.js.map +1 -1
- package/components/Calendar/CalendarDay.js +7 -9
- package/components/Calendar/CalendarDay.js.map +1 -1
- package/components/Calendar/DayCellView.css.d.ts +14 -0
- package/components/Calendar/DayCellView.css.js +8 -0
- package/components/Calendar/DayCellView.css.js.map +1 -0
- package/components/Calendar/DayCellView.js +2 -6
- package/components/Calendar/DayCellView.js.map +1 -1
- package/components/Calendar/Month.js +5 -25
- package/components/Calendar/Month.js.map +1 -1
- package/components/Calendar/MonthView.css.d.ts +20 -0
- package/components/Calendar/MonthView.css.js +11 -0
- package/components/Calendar/MonthView.css.js.map +1 -0
- package/components/Calendar/MonthView.js +8 -10
- package/components/Calendar/MonthView.js.map +1 -1
- package/components/Center/Center.css.d.ts +12 -0
- package/components/Center/Center.css.js +7 -0
- package/components/Center/Center.css.js.map +1 -0
- package/components/Center/Center.d.ts +0 -3
- package/components/Center/Center.js +8 -10
- package/components/Center/Center.js.map +1 -1
- package/components/Checkbox/Checkbox.css.d.ts +62 -0
- package/components/Checkbox/Checkbox.css.js +32 -0
- package/components/Checkbox/Checkbox.css.js.map +1 -0
- package/components/Checkbox/Checkbox.d.ts +0 -3
- package/components/Checkbox/Checkbox.js +33 -33
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/Checkbox/Checkbox.mixins.d.ts +19 -4
- package/components/Checkbox/Checkbox.mixins.js +16 -15
- package/components/Checkbox/Checkbox.mixins.js.map +1 -1
- package/components/DateInput/DateFragmentsView.css.d.ts +10 -0
- package/components/DateInput/DateFragmentsView.css.js +6 -0
- package/components/DateInput/DateFragmentsView.css.js.map +1 -0
- package/components/DateInput/DateFragmentsView.d.ts +0 -5
- package/components/DateInput/DateFragmentsView.js +9 -17
- package/components/DateInput/DateFragmentsView.js.map +1 -1
- package/components/DateInput/DateInput.css.d.ts +16 -0
- package/components/DateInput/DateInput.css.js +9 -0
- package/components/DateInput/DateInput.css.js.map +1 -0
- package/components/DateInput/DateInput.d.ts +0 -5
- package/components/DateInput/DateInput.js +9 -18
- package/components/DateInput/DateInput.js.map +1 -1
- package/components/DatePicker/DatePicker.css.d.ts +6 -0
- package/components/DatePicker/DatePicker.css.js +4 -0
- package/components/DatePicker/DatePicker.css.js.map +1 -0
- package/components/DatePicker/DatePicker.d.ts +0 -2
- package/components/DatePicker/DatePicker.js +8 -7
- package/components/DatePicker/DatePicker.js.map +1 -1
- package/components/DatePicker/MobilePicker.css.d.ts +4 -0
- package/components/DatePicker/MobilePicker.css.js +3 -0
- package/components/DatePicker/MobilePicker.css.js.map +1 -0
- package/components/DatePicker/MobilePicker.js +2 -4
- package/components/DatePicker/MobilePicker.js.map +1 -1
- package/components/DatePicker/getMobilePickerTheme.d.ts +1 -2
- package/components/DatePicker/getMobilePickerTheme.js +3 -2
- package/components/DatePicker/getMobilePickerTheme.js.map +1 -1
- package/components/DateRangePicker/DateRangePicker.css.d.ts +34 -0
- package/components/DateRangePicker/DateRangePicker.css.js +18 -0
- package/components/DateRangePicker/DateRangePicker.css.js.map +1 -0
- package/components/DateRangePicker/DateRangePicker.d.ts +12 -12
- package/components/DateRangePicker/DateRangePicker.js +40 -38
- package/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/components/DateRangePicker/DateRangePickerTheme.d.ts +2 -3
- package/components/DateRangePicker/DateRangePickerTheme.js +5 -4
- package/components/DateRangePicker/DateRangePickerTheme.js.map +1 -1
- package/components/Dropdown/getDropdownTheme.d.ts +1 -2
- package/components/Dropdown/getDropdownTheme.js +3 -2
- package/components/Dropdown/getDropdownTheme.js.map +1 -1
- package/components/DropdownMenu/getDropdownMenuTheme.d.ts +1 -2
- package/components/DropdownMenu/getDropdownMenuTheme.js +3 -2
- package/components/DropdownMenu/getDropdownMenuTheme.js.map +1 -1
- package/components/FileUploader/FileUploader.css.d.ts +133 -0
- package/components/FileUploader/FileUploader.css.js +65 -0
- package/components/FileUploader/FileUploader.css.js.map +1 -0
- package/components/FileUploader/FileUploader.js +43 -46
- package/components/FileUploader/FileUploader.js.map +1 -1
- package/components/FileUploader/FileUploader.mixins.d.ts +6 -1
- package/components/FileUploader/FileUploader.mixins.js +6 -1
- package/components/FileUploader/FileUploader.mixins.js.map +1 -1
- package/components/FileUploader/FileUploaderFile.css.d.ts +111 -0
- package/components/FileUploader/FileUploaderFile.css.js +56 -0
- package/components/FileUploader/FileUploaderFile.css.js.map +1 -0
- package/components/FileUploader/FileUploaderFile.js +35 -40
- package/components/FileUploader/FileUploaderFile.js.map +1 -1
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.d.ts +60 -0
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.js +31 -0
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.js.map +1 -0
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js +22 -28
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
- package/components/FileUploader/FileUploaderFileStatusIcon.js +3 -8
- package/components/FileUploader/FileUploaderFileStatusIcon.js.map +1 -1
- package/components/GlobalLoader/GlobalLoaderView.css.d.ts +26 -0
- package/components/GlobalLoader/GlobalLoaderView.css.js +14 -0
- package/components/GlobalLoader/GlobalLoaderView.css.js.map +1 -0
- package/components/GlobalLoader/GlobalLoaderView.js +20 -19
- package/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
- package/components/Group/Group.css.d.ts +14 -0
- package/components/Group/Group.css.js +8 -0
- package/components/Group/Group.css.js.map +1 -0
- package/components/Group/Group.d.ts +0 -3
- package/components/Group/Group.js +10 -12
- package/components/Group/Group.js.map +1 -1
- package/components/Hint/Hint.css.d.ts +6 -0
- package/components/Hint/Hint.css.js +4 -0
- package/components/Hint/Hint.css.js.map +1 -0
- package/components/Hint/Hint.d.ts +0 -3
- package/components/Hint/Hint.js +10 -10
- package/components/Hint/Hint.js.map +1 -1
- package/components/Input/Input.css.d.ts +73 -0
- package/components/Input/Input.css.js +22 -0
- package/components/Input/Input.css.js.map +1 -0
- package/components/Input/Input.d.ts +0 -3
- package/components/Input/Input.js +18 -18
- package/components/Input/Input.js.map +1 -1
- package/components/Input/InputLayout/InputLayout.css.d.ts +32 -0
- package/components/Input/InputLayout/InputLayout.css.js +18 -0
- package/components/Input/InputLayout/InputLayout.css.js.map +1 -0
- package/components/Input/InputLayout/InputLayout.js +2 -4
- package/components/Input/InputLayout/InputLayout.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAside.js +2 -4
- package/components/Input/InputLayout/InputLayoutAside.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAsideCounter.js +9 -11
- package/components/Input/InputLayout/InputLayoutAsideCounter.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAsideIcon.js +3 -5
- package/components/Input/InputLayout/InputLayoutAsideIcon.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAsideText.js +4 -6
- package/components/Input/InputLayout/InputLayoutAsideText.js.map +1 -1
- package/components/Kebab/Kebab.css.d.ts +18 -0
- package/components/Kebab/Kebab.css.js +10 -0
- package/components/Kebab/Kebab.css.js.map +1 -0
- package/components/Kebab/Kebab.d.ts +0 -3
- package/components/Kebab/Kebab.js +6 -6
- package/components/Kebab/Kebab.js.map +1 -1
- package/components/Link/Link.css.d.ts +43 -0
- package/components/Link/Link.css.js +22 -0
- package/components/Link/Link.css.js.map +1 -0
- package/components/Link/Link.d.ts +0 -3
- package/components/Link/Link.js +25 -24
- package/components/Link/Link.js.map +1 -1
- package/components/Link/LinkIcon.js +4 -8
- package/components/Link/LinkIcon.js.map +1 -1
- package/components/Loader/Loader.css.d.ts +12 -0
- package/components/Loader/Loader.css.js +7 -0
- package/components/Loader/Loader.css.js.map +1 -0
- package/components/Loader/Loader.d.ts +0 -5
- package/components/Loader/Loader.js +8 -16
- package/components/Loader/Loader.js.map +1 -1
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.d.ts +7 -0
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.js +4 -0
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.js.map +1 -0
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +4 -6
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
- package/components/MaskedInput/MaskedInput.css.d.ts +7 -0
- package/components/MaskedInput/MaskedInput.css.js +5 -0
- package/components/MaskedInput/MaskedInput.css.js.map +1 -0
- package/components/MaskedInput/MaskedInputLegacy.js +4 -8
- package/components/MaskedInput/MaskedInputLegacy.js.map +1 -1
- package/components/MaskedInputV2/MaskedInputV2.css.d.ts +7 -0
- package/components/MaskedInputV2/MaskedInputV2.css.js +5 -0
- package/components/MaskedInputV2/MaskedInputV2.css.js.map +1 -0
- package/components/MaskedInputV2/MaskedInputV2.js +4 -8
- package/components/MaskedInputV2/MaskedInputV2.js.map +1 -1
- package/components/MaskedInputV2/internal/MaskOverlay.js +7 -13
- package/components/MaskedInputV2/internal/MaskOverlay.js.map +1 -1
- package/components/MaskedInputV2/internal/MaskedCore.js +5 -8
- package/components/MaskedInputV2/internal/MaskedCore.js.map +1 -1
- package/components/MaskedInputV2/internal/MaskedInternal.css.d.ts +19 -0
- package/components/MaskedInputV2/internal/MaskedInternal.css.js +8 -0
- package/components/MaskedInputV2/internal/MaskedInternal.css.js.map +1 -0
- package/components/MaskedInputV2/react-imask/input.d.ts +1 -1
- package/components/MenuFooter/MenuFooter.css.d.ts +16 -0
- package/components/MenuFooter/MenuFooter.css.js +9 -0
- package/components/MenuFooter/MenuFooter.css.js.map +1 -0
- package/components/MenuFooter/MenuFooter.js +10 -14
- package/components/MenuFooter/MenuFooter.js.map +1 -1
- package/components/MenuFooter/MenuFooter.mixins.d.ts +8 -2
- package/components/MenuFooter/MenuFooter.mixins.js +8 -4
- package/components/MenuFooter/MenuFooter.mixins.js.map +1 -1
- package/components/MenuHeader/MenuHeader.css.d.ts +16 -0
- package/components/MenuHeader/MenuHeader.css.js +9 -0
- package/components/MenuHeader/MenuHeader.css.js.map +1 -0
- package/components/MenuHeader/MenuHeader.js +9 -13
- package/components/MenuHeader/MenuHeader.js.map +1 -1
- package/components/MenuHeader/MenuHeader.mixins.d.ts +8 -2
- package/components/MenuHeader/MenuHeader.mixins.js +8 -4
- package/components/MenuHeader/MenuHeader.mixins.js.map +1 -1
- package/components/MenuItem/MenuItem.css.d.ts +50 -0
- package/components/MenuItem/MenuItem.css.js +26 -0
- package/components/MenuItem/MenuItem.css.js.map +1 -0
- package/components/MenuItem/MenuItem.d.ts +0 -3
- package/components/MenuItem/MenuItem.js +30 -30
- package/components/MenuItem/MenuItem.js.map +1 -1
- package/components/MenuItem/MenuItem.mixins.d.ts +12 -4
- package/components/MenuItem/MenuItem.mixins.js +12 -19
- package/components/MenuItem/MenuItem.mixins.js.map +1 -1
- package/components/MenuSeparator/MenuSeparator.css.d.ts +6 -0
- package/components/MenuSeparator/MenuSeparator.css.js +4 -0
- package/components/MenuSeparator/MenuSeparator.css.js.map +1 -0
- package/components/MenuSeparator/MenuSeparator.js +7 -13
- package/components/MenuSeparator/MenuSeparator.js.map +1 -1
- package/components/MiniModal/MiniModal.css.d.ts +17 -0
- package/components/MiniModal/MiniModal.css.js +10 -0
- package/components/MiniModal/MiniModal.css.js.map +1 -0
- package/components/MiniModal/MiniModalBody.js +2 -8
- package/components/MiniModal/MiniModalBody.js.map +1 -1
- package/components/MiniModal/MiniModalFooter.js +4 -8
- package/components/MiniModal/MiniModalFooter.js.map +1 -1
- package/components/MiniModal/MiniModalHeader.js +6 -10
- package/components/MiniModal/MiniModalHeader.js.map +1 -1
- package/components/MiniModal/MiniModalIndent.js +3 -7
- package/components/MiniModal/MiniModalIndent.js.map +1 -1
- package/components/MiniModal/getMiniModalTheme.d.ts +1 -2
- package/components/MiniModal/getMiniModalTheme.js +3 -2
- package/components/MiniModal/getMiniModalTheme.js.map +1 -1
- package/components/Modal/Modal.css.d.ts +102 -0
- package/components/Modal/Modal.css.js +51 -0
- package/components/Modal/Modal.css.js.map +1 -0
- package/components/Modal/Modal.d.ts +0 -3
- package/components/Modal/Modal.js +26 -26
- package/components/Modal/Modal.js.map +1 -1
- package/components/Modal/ModalBody.d.ts +0 -3
- package/components/Modal/ModalBody.js +10 -12
- package/components/Modal/ModalBody.js.map +1 -1
- package/components/Modal/ModalClose.js +14 -19
- package/components/Modal/ModalClose.js.map +1 -1
- package/components/Modal/ModalFooter.js +3 -5
- package/components/Modal/ModalFooter.js.map +1 -1
- package/components/Modal/ModalHeader.js +3 -5
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Modal/ModalSeparator.js +5 -9
- package/components/Modal/ModalSeparator.js.map +1 -1
- package/components/Modal/getModalBodyTheme.d.ts +1 -2
- package/components/Modal/getModalBodyTheme.js +3 -2
- package/components/Modal/getModalBodyTheme.js.map +1 -1
- package/components/Modal/getModalTheme.d.ts +1 -2
- package/components/Modal/getModalTheme.js +3 -2
- package/components/Modal/getModalTheme.js.map +1 -1
- package/components/Paging/Paging.css.d.ts +60 -0
- package/components/Paging/Paging.css.js +31 -0
- package/components/Paging/Paging.css.js.map +1 -0
- package/components/Paging/Paging.d.ts +0 -4
- package/components/Paging/Paging.js +36 -44
- package/components/Paging/Paging.js.map +1 -1
- package/components/PasswordInput/PasswordInput.css.d.ts +18 -0
- package/components/PasswordInput/PasswordInput.css.js +10 -0
- package/components/PasswordInput/PasswordInput.css.js.map +1 -0
- package/components/PasswordInput/PasswordInput.d.ts +0 -4
- package/components/PasswordInput/PasswordInput.js +10 -17
- package/components/PasswordInput/PasswordInput.js.map +1 -1
- package/components/PasswordInput/locale/locales/en.js +2 -2
- package/components/PasswordInput/locale/locales/en.js.map +1 -1
- package/components/PasswordInput/locale/locales/ru.js +2 -2
- package/components/PasswordInput/locale/locales/ru.js.map +1 -1
- package/components/Radio/Radio.css.d.ts +61 -0
- package/components/Radio/Radio.css.js +31 -0
- package/components/Radio/Radio.css.js.map +1 -0
- package/components/Radio/Radio.d.ts +0 -4
- package/components/Radio/Radio.js +33 -38
- package/components/Radio/Radio.js.map +1 -1
- package/components/Radio/Radio.mixins.d.ts +39 -7
- package/components/Radio/Radio.mixins.js +37 -23
- package/components/Radio/Radio.mixins.js.map +1 -1
- package/components/RadioGroup/RadioGroup.css.d.ts +10 -0
- package/components/RadioGroup/RadioGroup.css.js +6 -0
- package/components/RadioGroup/RadioGroup.css.js.map +1 -0
- package/components/RadioGroup/RadioGroup.d.ts +0 -3
- package/components/RadioGroup/RadioGroup.js +8 -10
- package/components/RadioGroup/RadioGroup.js.map +1 -1
- package/components/ScrollContainer/ScrollBar.d.ts +1 -6
- package/components/ScrollContainer/ScrollBar.js +25 -33
- package/components/ScrollContainer/ScrollBar.js.map +1 -1
- package/components/ScrollContainer/ScrollContainer.css.d.ts +31 -0
- package/components/ScrollContainer/ScrollContainer.css.js +14 -0
- package/components/ScrollContainer/ScrollContainer.css.js.map +1 -0
- package/components/ScrollContainer/ScrollContainer.d.ts +0 -3
- package/components/ScrollContainer/ScrollContainer.js +4 -4
- package/components/ScrollContainer/ScrollContainer.js.map +1 -1
- package/components/Select/Select.css.d.ts +31 -0
- package/components/Select/Select.css.js +16 -0
- package/components/Select/Select.css.js.map +1 -0
- package/components/Select/Select.d.ts +0 -4
- package/components/Select/Select.js +25 -24
- package/components/Select/Select.js.map +1 -1
- package/components/Select/selectTheme.d.ts +1 -3
- package/components/Select/selectTheme.js +8 -7
- package/components/Select/selectTheme.js.map +1 -1
- package/components/SidePage/SidePage.css.d.ts +96 -0
- package/components/SidePage/SidePage.css.js +49 -0
- package/components/SidePage/SidePage.css.js.map +1 -0
- package/components/SidePage/SidePage.d.ts +0 -5
- package/components/SidePage/SidePage.js +21 -29
- package/components/SidePage/SidePage.js.map +1 -1
- package/components/SidePage/SidePageBody.d.ts +0 -3
- package/components/SidePage/SidePageBody.js +5 -11
- package/components/SidePage/SidePageBody.js.map +1 -1
- package/components/SidePage/SidePageCloseButton.js +7 -10
- package/components/SidePage/SidePageCloseButton.js.map +1 -1
- package/components/SidePage/SidePageContainer.d.ts +0 -4
- package/components/SidePage/SidePageContainer.js +10 -17
- package/components/SidePage/SidePageContainer.js.map +1 -1
- package/components/SidePage/SidePageFooter.d.ts +1 -6
- package/components/SidePage/SidePageFooter.js +10 -18
- package/components/SidePage/SidePageFooter.js.map +1 -1
- package/components/SidePage/SidePageHeader.d.ts +0 -3
- package/components/SidePage/SidePageHeader.js +14 -16
- package/components/SidePage/SidePageHeader.js.map +1 -1
- package/components/Spinner/Spinner.css.d.ts +22 -0
- package/components/Spinner/Spinner.css.js +12 -0
- package/components/Spinner/Spinner.css.js.map +1 -0
- package/components/Spinner/Spinner.d.ts +0 -5
- package/components/Spinner/Spinner.js +9 -19
- package/components/Spinner/Spinner.js.map +1 -1
- package/components/Sticky/Sticky.css.d.ts +12 -0
- package/components/Sticky/Sticky.css.js +7 -0
- package/components/Sticky/Sticky.css.js.map +1 -0
- package/components/Sticky/Sticky.d.ts +0 -4
- package/components/Sticky/Sticky.js +7 -10
- package/components/Sticky/Sticky.js.map +1 -1
- package/components/Switcher/Switcher.css.d.ts +20 -0
- package/components/Switcher/Switcher.css.js +11 -0
- package/components/Switcher/Switcher.css.js.map +1 -0
- package/components/Switcher/Switcher.d.ts +0 -3
- package/components/Switcher/Switcher.js +11 -13
- package/components/Switcher/Switcher.js.map +1 -1
- package/components/Switcher/switcherTheme.d.ts +1 -2
- package/components/Switcher/switcherTheme.js +3 -2
- package/components/Switcher/switcherTheme.js.map +1 -1
- package/components/Tabs/Indicator.css.d.ts +12 -0
- package/components/Tabs/Indicator.css.js +7 -0
- package/components/Tabs/Indicator.css.js.map +1 -0
- package/components/Tabs/Indicator.d.ts +0 -3
- package/components/Tabs/Indicator.js +3 -3
- package/components/Tabs/Indicator.js.map +1 -1
- package/components/Tabs/Tab.css.d.ts +55 -0
- package/components/Tabs/Tab.css.js +28 -0
- package/components/Tabs/Tab.css.js.map +1 -0
- package/components/Tabs/Tab.d.ts +1 -8
- package/components/Tabs/Tab.js +23 -33
- package/components/Tabs/Tab.js.map +1 -1
- package/components/Tabs/Tabs.css.d.ts +10 -0
- package/components/Tabs/Tabs.css.js +6 -0
- package/components/Tabs/Tabs.css.js.map +1 -0
- package/components/Tabs/Tabs.d.ts +0 -4
- package/components/Tabs/Tabs.js +25 -30
- package/components/Tabs/Tabs.js.map +1 -1
- package/components/Textarea/Textarea.css.d.ts +42 -0
- package/components/Textarea/Textarea.css.js +22 -0
- package/components/Textarea/Textarea.css.js.map +1 -0
- package/components/Textarea/Textarea.d.ts +1 -4
- package/components/Textarea/Textarea.js +19 -19
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Textarea/Textarea.mixins.d.ts +8 -2
- package/components/Textarea/Textarea.mixins.js +8 -6
- package/components/Textarea/Textarea.mixins.js.map +1 -1
- package/components/Textarea/TextareaCounter.js +7 -9
- package/components/Textarea/TextareaCounter.js.map +1 -1
- package/components/ThemeContainer/ThemeContainer.d.ts +16 -0
- package/components/ThemeContainer/ThemeContainer.js +46 -0
- package/components/ThemeContainer/ThemeContainer.js.map +1 -0
- package/components/ThemeContainer/index.d.ts +1 -0
- package/components/ThemeContainer/index.js +2 -0
- package/components/ThemeContainer/index.js.map +1 -0
- package/components/TimePicker/TimePicker.css.d.ts +19 -0
- package/components/TimePicker/TimePicker.css.js +10 -0
- package/components/TimePicker/TimePicker.css.js.map +1 -0
- package/components/TimePicker/TimePicker.js +4 -6
- package/components/TimePicker/TimePicker.js.map +1 -1
- package/components/TimePicker/TimePickerItems.js +12 -16
- package/components/TimePicker/TimePickerItems.js.map +1 -1
- package/components/TimePicker/TimePickerPopup.js +2 -4
- package/components/TimePicker/TimePickerPopup.js.map +1 -1
- package/components/TimePicker/helpers/TimePicker.constants.d.ts +1 -0
- package/components/TimePicker/helpers/TimePicker.constants.js +3 -0
- package/components/TimePicker/helpers/TimePicker.constants.js.map +1 -1
- package/components/TimePicker/helpers/TimePicker.value.d.ts +0 -1
- package/components/TimePicker/helpers/TimePicker.value.js +0 -5
- package/components/TimePicker/helpers/TimePicker.value.js.map +1 -1
- package/components/Toast/Toast.css.d.ts +10 -0
- package/components/Toast/Toast.css.js +6 -0
- package/components/Toast/Toast.css.js.map +1 -0
- package/components/Toast/Toast.d.ts +0 -2
- package/components/Toast/Toast.js +7 -10
- package/components/Toast/Toast.js.map +1 -1
- package/components/Toast/ToastView.css.d.ts +31 -0
- package/components/Toast/ToastView.css.js +16 -0
- package/components/Toast/ToastView.css.js.map +1 -0
- package/components/Toast/ToastView.d.ts +0 -3
- package/components/Toast/ToastView.js +9 -11
- package/components/Toast/ToastView.js.map +1 -1
- package/components/Toggle/Toggle.classes.js +1 -1
- package/components/Toggle/Toggle.classes.js.map +1 -1
- package/components/Toggle/Toggle.css.d.ts +93 -0
- package/components/Toggle/Toggle.css.js +48 -0
- package/components/Toggle/Toggle.css.js.map +1 -0
- package/components/Toggle/Toggle.d.ts +1 -6
- package/components/Toggle/Toggle.js +52 -60
- package/components/Toggle/Toggle.js.map +1 -1
- package/components/Token/Token.css.d.ts +39 -0
- package/components/Token/Token.css.js +20 -0
- package/components/Token/Token.css.js.map +1 -0
- package/components/Token/Token.d.ts +0 -5
- package/components/Token/Token.js +4 -15
- package/components/Token/Token.js.map +1 -1
- package/components/Token/Token.mixins.d.ts +6 -1
- package/components/Token/Token.mixins.js +6 -3
- package/components/Token/Token.mixins.js.map +1 -1
- package/components/Token/TokenView.js +8 -12
- package/components/Token/TokenView.js.map +1 -1
- package/components/TokenInput/TextWidthHelper.d.ts +0 -3
- package/components/TokenInput/TextWidthHelper.js +7 -17
- package/components/TokenInput/TextWidthHelper.js.map +1 -1
- package/components/TokenInput/TokenInput.css.d.ts +40 -0
- package/components/TokenInput/TokenInput.css.js +22 -0
- package/components/TokenInput/TokenInput.css.js.map +1 -0
- package/components/TokenInput/TokenInput.d.ts +0 -3
- package/components/TokenInput/TokenInput.js +22 -23
- package/components/TokenInput/TokenInput.js.map +1 -1
- package/components/TokenInput/TokenInput.mixins.d.ts +8 -2
- package/components/TokenInput/TokenInput.mixins.js +8 -6
- package/components/TokenInput/TokenInput.mixins.js.map +1 -1
- package/components/TokenInput/TokenInputMenu.js +5 -3
- package/components/TokenInput/TokenInputMenu.js.map +1 -1
- package/components/Tooltip/Tooltip.css.d.ts +18 -0
- package/components/Tooltip/Tooltip.css.js +10 -0
- package/components/Tooltip/Tooltip.css.js.map +1 -0
- package/components/Tooltip/Tooltip.d.ts +1 -12
- package/components/Tooltip/Tooltip.js +29 -42
- package/components/Tooltip/Tooltip.js.map +1 -1
- package/components/TooltipMenu/TooltipMenu.js +10 -6
- package/components/TooltipMenu/TooltipMenu.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/internal/ClearCrossIcon/ClearCrossIcon.css.d.ts +18 -0
- package/internal/ClearCrossIcon/ClearCrossIcon.css.js +10 -0
- package/internal/ClearCrossIcon/ClearCrossIcon.css.js.map +1 -0
- package/internal/ClearCrossIcon/ClearCrossIcon.js +8 -11
- package/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
- package/internal/CloseButtonIcon/CloseButtonIcon.css.d.ts +14 -0
- package/internal/CloseButtonIcon/CloseButtonIcon.css.js +8 -0
- package/internal/CloseButtonIcon/CloseButtonIcon.css.js.map +1 -0
- package/internal/CloseButtonIcon/CloseButtonIcon.js +15 -13
- package/internal/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
- package/internal/CommonWrapper/CommonWrapper.d.ts +6 -2
- package/internal/CommonWrapper/CommonWrapper.js +29 -7
- package/internal/CommonWrapper/CommonWrapper.js.map +1 -1
- package/internal/CustomComboBox/ComboBoxView.d.ts +0 -4
- package/internal/CustomComboBox/ComboBoxView.js +6 -9
- package/internal/CustomComboBox/ComboBoxView.js.map +1 -1
- package/internal/CustomComboBox/CustomComboBox.css.d.ts +6 -0
- package/internal/CustomComboBox/CustomComboBox.css.js +4 -0
- package/internal/CustomComboBox/CustomComboBox.css.js.map +1 -0
- package/internal/CustomComboBox/getComboBoxTheme.d.ts +1 -2
- package/internal/CustomComboBox/getComboBoxTheme.js +3 -2
- package/internal/CustomComboBox/getComboBoxTheme.js.map +1 -1
- package/internal/DateSelect/DateSelect.css.d.ts +11 -0
- package/internal/DateSelect/DateSelect.css.js +6 -0
- package/internal/DateSelect/DateSelect.css.js.map +1 -0
- package/internal/DateSelect/DateSelect.d.ts +0 -3
- package/internal/DateSelect/DateSelect.js +5 -7
- package/internal/DateSelect/DateSelect.js.map +1 -1
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.d.ts +4 -0
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.js +3 -0
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.js.map +1 -0
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +1 -2
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js +8 -13
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
- package/internal/InputLikeText/InputLikeText.css.d.ts +8 -0
- package/internal/InputLikeText/InputLikeText.css.js +5 -0
- package/internal/InputLikeText/InputLikeText.css.js.map +1 -0
- package/internal/InputLikeText/InputLikeText.d.ts +0 -4
- package/internal/InputLikeText/InputLikeText.js +28 -29
- package/internal/InputLikeText/InputLikeText.js.map +1 -1
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.d.ts +6 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.js +5 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.js.map +1 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.d.ts +0 -5
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js +33 -33
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js.map +1 -1
- package/internal/MaskCharLowLine/MaskCharLowLine.css.d.ts +4 -0
- package/internal/MaskCharLowLine/MaskCharLowLine.css.js +3 -0
- package/internal/MaskCharLowLine/MaskCharLowLine.css.js.map +1 -0
- package/internal/MaskCharLowLine/MaskCharLowLine.js +2 -4
- package/internal/MaskCharLowLine/MaskCharLowLine.js.map +1 -1
- package/internal/Menu/Menu.css.d.ts +28 -0
- package/internal/Menu/Menu.css.js +15 -0
- package/internal/Menu/Menu.css.js.map +1 -0
- package/internal/Menu/Menu.d.ts +0 -3
- package/internal/Menu/Menu.js +28 -24
- package/internal/Menu/Menu.js.map +1 -1
- package/internal/MenuMessage/MenuMessage.css.d.ts +18 -0
- package/internal/MenuMessage/MenuMessage.css.js +10 -0
- package/internal/MenuMessage/MenuMessage.css.js.map +1 -0
- package/internal/MenuMessage/MenuMessage.js +10 -12
- package/internal/MenuMessage/MenuMessage.js.map +1 -1
- package/internal/MobilePopup/MobilePopup.css.d.ts +30 -0
- package/internal/MobilePopup/MobilePopup.css.js +16 -0
- package/internal/MobilePopup/MobilePopup.css.js.map +1 -0
- package/internal/MobilePopup/MobilePopup.d.ts +0 -3
- package/internal/MobilePopup/MobilePopup.js +17 -19
- package/internal/MobilePopup/MobilePopup.js.map +1 -1
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.d.ts +10 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.js +6 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.js.map +1 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.d.ts +0 -2
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js +5 -16
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.d.ts +24 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.js +13 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.js.map +1 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.d.ts +0 -3
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js +18 -28
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
- package/internal/NativeDateInput/NativeDateInput.css.d.ts +4 -0
- package/internal/NativeDateInput/NativeDateInput.css.js +3 -0
- package/internal/NativeDateInput/NativeDateInput.css.js.map +1 -0
- package/internal/NativeDateInput/NativeDateInput.d.ts +0 -2
- package/internal/NativeDateInput/NativeDateInput.js +2 -13
- package/internal/NativeDateInput/NativeDateInput.js.map +1 -1
- package/internal/NativeTimeInput/NativeTimeInput.css.d.ts +4 -0
- package/internal/NativeTimeInput/NativeTimeInput.css.js +3 -0
- package/internal/NativeTimeInput/NativeTimeInput.css.js.map +1 -0
- package/internal/NativeTimeInput/NativeTimeInput.js +2 -4
- package/internal/NativeTimeInput/NativeTimeInput.js.map +1 -1
- package/internal/Popup/Popup.css.d.ts +35 -0
- package/internal/Popup/Popup.css.js +16 -0
- package/internal/Popup/Popup.css.js.map +1 -0
- package/internal/Popup/Popup.d.ts +0 -11
- package/internal/Popup/Popup.js +26 -40
- package/internal/Popup/Popup.js.map +1 -1
- package/internal/Popup/PopupPin.css.d.ts +16 -0
- package/internal/Popup/PopupPin.css.js +9 -0
- package/internal/Popup/PopupPin.css.js.map +1 -0
- package/internal/Popup/PopupPin.d.ts +0 -3
- package/internal/Popup/PopupPin.js +8 -8
- package/internal/Popup/PopupPin.js.map +1 -1
- package/internal/PopupMenu/PopupMenu.css.d.ts +6 -0
- package/internal/PopupMenu/PopupMenu.css.js +4 -0
- package/internal/PopupMenu/PopupMenu.css.js.map +1 -0
- package/internal/PopupMenu/PopupMenu.d.ts +0 -2
- package/internal/PopupMenu/PopupMenu.js +9 -8
- package/internal/PopupMenu/PopupMenu.js.map +1 -1
- package/internal/RenderContainer/RenderContainer.d.ts +2 -0
- package/internal/RenderContainer/RenderContainer.js +38 -3
- package/internal/RenderContainer/RenderContainer.js.map +1 -1
- package/internal/RenderContainer/RenderInnerContainer.js +6 -3
- package/internal/RenderContainer/RenderInnerContainer.js.map +1 -1
- package/internal/ResizeDetector/ResizeDetector.css.d.ts +12 -0
- package/internal/ResizeDetector/ResizeDetector.css.js +7 -0
- package/internal/ResizeDetector/ResizeDetector.css.js.map +1 -0
- package/internal/ResizeDetector/ResizeDetector.d.ts +0 -3
- package/internal/ResizeDetector/ResizeDetector.js +8 -18
- package/internal/ResizeDetector/ResizeDetector.js.map +1 -1
- package/internal/SpinnerIcon/SpinnerIcon.css.d.ts +10 -0
- package/internal/SpinnerIcon/SpinnerIcon.css.js +6 -0
- package/internal/SpinnerIcon/SpinnerIcon.css.js.map +1 -0
- package/internal/SpinnerIcon/SpinnerIcon.js +5 -7
- package/internal/SpinnerIcon/SpinnerIcon.js.map +1 -1
- package/internal/TextWidthHelper/TextWidthHelper.css.d.ts +6 -0
- package/internal/TextWidthHelper/TextWidthHelper.css.js +4 -0
- package/internal/TextWidthHelper/TextWidthHelper.css.js.map +1 -0
- package/internal/TextWidthHelper/TextWidthHelper.d.ts +0 -2
- package/internal/TextWidthHelper/TextWidthHelper.js +3 -14
- package/internal/TextWidthHelper/TextWidthHelper.js.map +1 -1
- package/internal/TimeInput/TimeFragments.css.d.ts +47 -0
- package/internal/TimeInput/TimeFragments.css.js +18 -0
- package/internal/TimeInput/TimeFragments.css.js.map +1 -0
- package/internal/TimeInput/TimeFragments.js +22 -26
- package/internal/TimeInput/TimeFragments.js.map +1 -1
- package/internal/TimeInput/TimeInput.css.d.ts +10 -0
- package/internal/TimeInput/TimeInput.css.js +6 -0
- package/internal/TimeInput/TimeInput.css.js.map +1 -0
- package/internal/TimeInput/TimeInput.js +6 -8
- package/internal/TimeInput/TimeInput.js.map +1 -1
- package/internal/icons2022/BaseIcon.css.d.ts +4 -0
- package/internal/icons2022/BaseIcon.css.js +3 -0
- package/internal/icons2022/BaseIcon.css.js.map +1 -0
- package/internal/icons2022/BaseIcon.js +2 -4
- package/internal/icons2022/BaseIcon.js.map +1 -1
- package/internal/icons2022/LoadingIcon.js +3 -7
- package/internal/icons2022/LoadingIcon.js.map +1 -1
- package/internal/themes/BasicTheme.d.ts +5 -5
- package/internal/themes/BasicTheme.js +42 -12
- package/internal/themes/BasicTheme.js.map +1 -1
- package/internal/themes/DarkTheme6_0.js +0 -2
- package/internal/themes/DarkTheme6_0.js.map +1 -1
- package/lib/cx.d.ts +2 -0
- package/lib/cx.js +23 -0
- package/lib/cx.js.map +1 -0
- package/lib/prefix.d.ts +2 -0
- package/lib/prefix.js +22 -0
- package/lib/prefix.js.map +1 -0
- package/lib/renderEnvironment/RenderEnvironmentContext.d.ts +1 -1
- package/lib/renderEnvironment/RenderEnvironmentContext.js +23 -14
- package/lib/renderEnvironment/RenderEnvironmentContext.js.map +1 -1
- package/lib/renderEnvironment/RenderEnvironmentDecorator.js.map +1 -1
- package/lib/styles/LabGrotesqueBaseline.css.d.ts +1 -0
- package/lib/styles/LabGrotesqueBaseline.css.js +0 -0
- package/lib/styles/LabGrotesqueBaseline.css.js.map +1 -0
- package/lib/styles/Mixins.d.ts +29 -1
- package/lib/styles/Mixins.js +33 -4
- package/lib/styles/Mixins.js.map +1 -1
- package/lib/styles/UiFont.css.d.ts +1 -0
- package/lib/styles/UiFont.css.js +2 -0
- package/lib/styles/UiFont.css.js.map +1 -0
- package/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +6 -1
- package/lib/styles/getLabGrotesqueBaselineCompensation.js +23 -6
- package/lib/styles/getLabGrotesqueBaselineCompensation.js.map +1 -1
- package/lib/theming/Emotion.d.ts +5 -14
- package/lib/theming/Emotion.js +12 -68
- package/lib/theming/Emotion.js.map +1 -1
- package/lib/theming/ThemeFactory.d.ts +1 -10
- package/lib/theming/ThemeFactory.js +1 -29
- package/lib/theming/ThemeFactory.js.map +1 -1
- package/lib/theming/memoizeTheme.d.ts +11 -0
- package/lib/theming/memoizeTheme.js +37 -0
- package/lib/theming/memoizeTheme.js.map +1 -0
- package/lib/theming/themeVars.d.ts +37 -0
- package/lib/theming/themeVars.js +121 -0
- package/lib/theming/themeVars.js.map +1 -0
- package/package.json +21 -6
- package/react-ui.css +6096 -0
- package/theme-loader.js +51 -0
- package/components/Autocomplete/Autocomplete.styles.d.ts +0 -5
- package/components/Autocomplete/Autocomplete.styles.js +0 -18
- package/components/Autocomplete/Autocomplete.styles.js.map +0 -1
- package/components/Button/Button.mixins.d.ts +0 -4
- package/components/Button/Button.mixins.js +0 -21
- package/components/Button/Button.mixins.js.map +0 -1
- package/components/Button/Button.styles.d.ts +0 -95
- package/components/Button/Button.styles.js +0 -260
- package/components/Button/Button.styles.js.map +0 -1
- package/components/Button/ButtonIcon.styles.d.ts +0 -16
- package/components/Button/ButtonIcon.styles.js +0 -53
- package/components/Button/ButtonIcon.styles.js.map +0 -1
- package/components/Calendar/Calendar.styles.d.ts +0 -6
- package/components/Calendar/Calendar.styles.js +0 -22
- package/components/Calendar/Calendar.styles.js.map +0 -1
- package/components/Calendar/DayCellView.styles.d.ts +0 -9
- package/components/Calendar/DayCellView.styles.js +0 -31
- package/components/Calendar/DayCellView.styles.js.map +0 -1
- package/components/Calendar/MonthView.styles.d.ts +0 -13
- package/components/Calendar/MonthView.styles.js +0 -47
- package/components/Calendar/MonthView.styles.js.map +0 -1
- package/components/Center/Center.styles.d.ts +0 -7
- package/components/Center/Center.styles.js +0 -27
- package/components/Center/Center.styles.js.map +0 -1
- package/components/Checkbox/Checkbox.styles.d.ts +0 -34
- package/components/Checkbox/Checkbox.styles.js +0 -100
- package/components/Checkbox/Checkbox.styles.js.map +0 -1
- package/components/DateInput/DateFragmentsView.styles.d.ts +0 -7
- package/components/DateInput/DateFragmentsView.styles.js +0 -28
- package/components/DateInput/DateFragmentsView.styles.js.map +0 -1
- package/components/DateInput/DateInput.styles.d.ts +0 -11
- package/components/DateInput/DateInput.styles.js +0 -29
- package/components/DateInput/DateInput.styles.js.map +0 -1
- package/components/DatePicker/DatePicker.styles.d.ts +0 -5
- package/components/DatePicker/DatePicker.styles.js +0 -18
- package/components/DatePicker/DatePicker.styles.js.map +0 -1
- package/components/DatePicker/MobilePicker.styles.d.ts +0 -3
- package/components/DatePicker/MobilePicker.styles.js +0 -15
- package/components/DatePicker/MobilePicker.styles.js.map +0 -1
- package/components/DateRangePicker/DateRangePicker.styles.d.ts +0 -16
- package/components/DateRangePicker/DateRangePicker.styles.js +0 -57
- package/components/DateRangePicker/DateRangePicker.styles.js.map +0 -1
- package/components/FileUploader/FileUploader.styles.d.ts +0 -74
- package/components/FileUploader/FileUploader.styles.js +0 -221
- package/components/FileUploader/FileUploader.styles.js.map +0 -1
- package/components/FileUploader/FileUploaderFile.styles.d.ts +0 -60
- package/components/FileUploader/FileUploaderFile.styles.js +0 -184
- package/components/FileUploader/FileUploaderFile.styles.js.map +0 -1
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.d.ts +0 -34
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js +0 -103
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js.map +0 -1
- package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +0 -17
- package/components/GlobalLoader/GlobalLoaderView.styles.js +0 -70
- package/components/GlobalLoader/GlobalLoaderView.styles.js.map +0 -1
- package/components/Group/Group.styles.d.ts +0 -8
- package/components/Group/Group.styles.js +0 -30
- package/components/Group/Group.styles.js.map +0 -1
- package/components/Hint/Hint.styles.d.ts +0 -5
- package/components/Hint/Hint.styles.js +0 -18
- package/components/Hint/Hint.styles.js.map +0 -1
- package/components/Input/Input.styles.d.ts +0 -21
- package/components/Input/Input.styles.js +0 -68
- package/components/Input/Input.styles.js.map +0 -1
- package/components/Input/InputLayout/InputLayout.styles.d.ts +0 -18
- package/components/Input/InputLayout/InputLayout.styles.js +0 -59
- package/components/Input/InputLayout/InputLayout.styles.js.map +0 -1
- package/components/Kebab/Kebab.styles.d.ts +0 -11
- package/components/Kebab/Kebab.styles.js +0 -36
- package/components/Kebab/Kebab.styles.js.map +0 -1
- package/components/Link/Link.mixins.d.ts +0 -2
- package/components/Link/Link.mixins.js +0 -7
- package/components/Link/Link.mixins.js.map +0 -1
- package/components/Link/Link.styles.d.ts +0 -24
- package/components/Link/Link.styles.js +0 -82
- package/components/Link/Link.styles.js.map +0 -1
- package/components/Loader/Loader.styles.d.ts +0 -8
- package/components/Loader/Loader.styles.js +0 -27
- package/components/Loader/Loader.styles.js.map +0 -1
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +0 -6
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js +0 -18
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js.map +0 -1
- package/components/MaskedInput/MaskedInput.styles.d.ts +0 -7
- package/components/MaskedInput/MaskedInput.styles.js +0 -19
- package/components/MaskedInput/MaskedInput.styles.js.map +0 -1
- package/components/MaskedInputV2/MaskedInputV2.styles.d.ts +0 -7
- package/components/MaskedInputV2/MaskedInputV2.styles.js +0 -19
- package/components/MaskedInputV2/MaskedInputV2.styles.js.map +0 -1
- package/components/MaskedInputV2/internal/MaskedInternal.styles.d.ts +0 -15
- package/components/MaskedInputV2/internal/MaskedInternal.styles.js +0 -34
- package/components/MaskedInputV2/internal/MaskedInternal.styles.js.map +0 -1
- package/components/MenuFooter/MenuFooter.styles.d.ts +0 -10
- package/components/MenuFooter/MenuFooter.styles.js +0 -34
- package/components/MenuFooter/MenuFooter.styles.js.map +0 -1
- package/components/MenuHeader/MenuHeader.styles.d.ts +0 -10
- package/components/MenuHeader/MenuHeader.styles.js +0 -34
- package/components/MenuHeader/MenuHeader.styles.js.map +0 -1
- package/components/MenuItem/MenuItem.styles.d.ts +0 -29
- package/components/MenuItem/MenuItem.styles.js +0 -88
- package/components/MenuItem/MenuItem.styles.js.map +0 -1
- package/components/MenuSeparator/MenuSeparator.styles.d.ts +0 -5
- package/components/MenuSeparator/MenuSeparator.styles.js +0 -18
- package/components/MenuSeparator/MenuSeparator.styles.js.map +0 -1
- package/components/MiniModal/MiniModal.styles.d.ts +0 -11
- package/components/MiniModal/MiniModal.styles.js +0 -37
- package/components/MiniModal/MiniModal.styles.js.map +0 -1
- package/components/Modal/Modal.styles.d.ts +0 -55
- package/components/Modal/Modal.styles.js +0 -167
- package/components/Modal/Modal.styles.js.map +0 -1
- package/components/Paging/Paging.styles.d.ts +0 -32
- package/components/Paging/Paging.styles.js +0 -99
- package/components/Paging/Paging.styles.js.map +0 -1
- package/components/PasswordInput/PasswordInput.styles.d.ts +0 -11
- package/components/PasswordInput/PasswordInput.styles.js +0 -36
- package/components/PasswordInput/PasswordInput.styles.js.map +0 -1
- package/components/Radio/Radio.styles.d.ts +0 -34
- package/components/Radio/Radio.styles.js +0 -100
- package/components/Radio/Radio.styles.js.map +0 -1
- package/components/RadioGroup/RadioGroup.styles.d.ts +0 -6
- package/components/RadioGroup/RadioGroup.styles.js +0 -24
- package/components/RadioGroup/RadioGroup.styles.js.map +0 -1
- package/components/ScrollContainer/ScrollContainer.styles.d.ts +0 -21
- package/components/ScrollContainer/ScrollContainer.styles.js +0 -52
- package/components/ScrollContainer/ScrollContainer.styles.js.map +0 -1
- package/components/Select/Select.styles.d.ts +0 -18
- package/components/Select/Select.styles.js +0 -57
- package/components/Select/Select.styles.js.map +0 -1
- package/components/SidePage/SidePage.styles.d.ts +0 -50
- package/components/SidePage/SidePage.styles.js +0 -158
- package/components/SidePage/SidePage.styles.js.map +0 -1
- package/components/Spinner/Spinner.styles.d.ts +0 -13
- package/components/Spinner/Spinner.styles.js +0 -43
- package/components/Spinner/Spinner.styles.js.map +0 -1
- package/components/Sticky/Sticky.styles.d.ts +0 -7
- package/components/Sticky/Sticky.styles.js +0 -27
- package/components/Sticky/Sticky.styles.js.map +0 -1
- package/components/Switcher/Switcher.styles.d.ts +0 -12
- package/components/Switcher/Switcher.styles.js +0 -39
- package/components/Switcher/Switcher.styles.js.map +0 -1
- package/components/Tabs/Indicator.styles.d.ts +0 -8
- package/components/Tabs/Indicator.styles.js +0 -27
- package/components/Tabs/Indicator.styles.js.map +0 -1
- package/components/Tabs/Tab.styles.d.ts +0 -33
- package/components/Tabs/Tab.styles.js +0 -105
- package/components/Tabs/Tab.styles.js.map +0 -1
- package/components/Tabs/Tabs.styles.d.ts +0 -7
- package/components/Tabs/Tabs.styles.js +0 -26
- package/components/Tabs/Tabs.styles.js.map +0 -1
- package/components/Textarea/Textarea.styles.d.ts +0 -23
- package/components/Textarea/Textarea.styles.js +0 -73
- package/components/Textarea/Textarea.styles.js.map +0 -1
- package/components/TimePicker/TimePicker.styles.d.ts +0 -12
- package/components/TimePicker/TimePicker.styles.js +0 -39
- package/components/TimePicker/TimePicker.styles.js.map +0 -1
- package/components/Toast/Toast.styles.d.ts +0 -6
- package/components/Toast/Toast.styles.js +0 -24
- package/components/Toast/Toast.styles.js.map +0 -1
- package/components/Toast/ToastView.styles.d.ts +0 -18
- package/components/Toast/ToastView.styles.js +0 -67
- package/components/Toast/ToastView.styles.js.map +0 -1
- package/components/Toggle/Toggle.mixins.d.ts +0 -8
- package/components/Toggle/Toggle.mixins.js +0 -32
- package/components/Toggle/Toggle.mixins.js.map +0 -1
- package/components/Toggle/Toggle.styles.d.ts +0 -49
- package/components/Toggle/Toggle.styles.js +0 -147
- package/components/Toggle/Toggle.styles.js.map +0 -1
- package/components/Token/Token.styles.d.ts +0 -23
- package/components/Token/Token.styles.js +0 -67
- package/components/Token/Token.styles.js.map +0 -1
- package/components/TokenInput/TokenInput.styles.d.ts +0 -22
- package/components/TokenInput/TokenInput.styles.js +0 -71
- package/components/TokenInput/TokenInput.styles.js.map +0 -1
- package/components/Tooltip/Tooltip.styles.d.ts +0 -11
- package/components/Tooltip/Tooltip.styles.js +0 -36
- package/components/Tooltip/Tooltip.styles.js.map +0 -1
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +0 -12
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.js +0 -36
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +0 -1
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +0 -8
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.js +0 -24
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.js.map +0 -1
- package/internal/CustomComboBox/CustomComboBox.styles.d.ts +0 -4
- package/internal/CustomComboBox/CustomComboBox.styles.js +0 -18
- package/internal/CustomComboBox/CustomComboBox.styles.js.map +0 -1
- package/internal/DateSelect/DateSelect.styles.d.ts +0 -9
- package/internal/DateSelect/DateSelect.styles.js +0 -24
- package/internal/DateSelect/DateSelect.styles.js.map +0 -1
- package/internal/InputLikeText/InputLikeText.styles.d.ts +0 -8
- package/internal/InputLikeText/InputLikeText.styles.js +0 -30
- package/internal/InputLikeText/InputLikeText.styles.js.map +0 -1
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.d.ts +0 -3
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js +0 -15
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js.map +0 -1
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +0 -3
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.js +0 -15
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.js.map +0 -1
- package/internal/Menu/Menu.styles.d.ts +0 -16
- package/internal/Menu/Menu.styles.js +0 -51
- package/internal/Menu/Menu.styles.js.map +0 -1
- package/internal/MenuMessage/MenuMessage.styles.d.ts +0 -11
- package/internal/MenuMessage/MenuMessage.styles.js +0 -41
- package/internal/MenuMessage/MenuMessage.styles.js.map +0 -1
- package/internal/MobilePopup/MobilePopup.styles.d.ts +0 -17
- package/internal/MobilePopup/MobilePopup.styles.js +0 -57
- package/internal/MobilePopup/MobilePopup.styles.js.map +0 -1
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +0 -7
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js +0 -25
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js.map +0 -1
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +0 -14
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js +0 -47
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js.map +0 -1
- package/internal/NativeDateInput/NativeDateInput.styles.d.ts +0 -3
- package/internal/NativeDateInput/NativeDateInput.styles.js +0 -15
- package/internal/NativeDateInput/NativeDateInput.styles.js.map +0 -1
- package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +0 -3
- package/internal/NativeTimeInput/NativeTimeInput.styles.js +0 -15
- package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +0 -1
- package/internal/Popup/Popup.styles.d.ts +0 -22
- package/internal/Popup/Popup.styles.js +0 -69
- package/internal/Popup/Popup.styles.js.map +0 -1
- package/internal/Popup/PopupPin.styles.d.ts +0 -9
- package/internal/Popup/PopupPin.styles.js +0 -33
- package/internal/Popup/PopupPin.styles.js.map +0 -1
- package/internal/PopupMenu/PopupMenu.styles.d.ts +0 -4
- package/internal/PopupMenu/PopupMenu.styles.js +0 -18
- package/internal/PopupMenu/PopupMenu.styles.js.map +0 -1
- package/internal/ResizeDetector/ResizeDetector.styles.d.ts +0 -7
- package/internal/ResizeDetector/ResizeDetector.styles.js +0 -27
- package/internal/ResizeDetector/ResizeDetector.styles.js.map +0 -1
- package/internal/SpinnerIcon/SpinnerIcon.styles.d.ts +0 -6
- package/internal/SpinnerIcon/SpinnerIcon.styles.js +0 -24
- package/internal/SpinnerIcon/SpinnerIcon.styles.js.map +0 -1
- package/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +0 -4
- package/internal/TextWidthHelper/TextWidthHelper.styles.js +0 -18
- package/internal/TextWidthHelper/TextWidthHelper.styles.js.map +0 -1
- package/internal/TimeInput/TimeFragments.styles.d.ts +0 -32
- package/internal/TimeInput/TimeFragments.styles.js +0 -78
- package/internal/TimeInput/TimeFragments.styles.js.map +0 -1
- package/internal/TimeInput/TimeInput.styles.d.ts +0 -7
- package/internal/TimeInput/TimeInput.styles.js +0 -24
- package/internal/TimeInput/TimeInput.styles.js.map +0 -1
- package/internal/icons2022/BaseIcon.styles.d.ts +0 -3
- package/internal/icons2022/BaseIcon.styles.js +0 -16
- package/internal/icons2022/BaseIcon.styles.js.map +0 -1
- package/lib/Upgrades.d.ts +0 -6
- package/lib/Upgrades.js +0 -34
- package/lib/Upgrades.js.map +0 -1
- package/lib/styles/UiFont.d.ts +0 -3
- package/lib/styles/UiFont.js +0 -18
- package/lib/styles/UiFont.js.map +0 -1
- package/lib/theming/AnimationKeyframes.d.ts +0 -7
- package/lib/theming/AnimationKeyframes.js +0 -24
- package/lib/theming/AnimationKeyframes.js.map +0 -1
- package/typings/stylis-plugin-extra-scope.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.mixins.js","sourceRoot":"","sources":["FileUploader.mixins.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,qBAAqB,GAAG,
|
|
1
|
+
{"version":3,"file":"FileUploader.mixins.js","sourceRoot":"","sources":["FileUploader.mixins.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,QAAgB,EAAE,UAAkB,EAAE,QAAgB,EAAE,QAAgB;IAC5G,OAAA,CAAC;QACC,QAAQ,UAAA;QACR,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAG,QAAQ,cAAI,QAAQ,CAAE;QAClC,UAAU,YAAA;KACX,CAAU;AALX,CAKW,CAAC","sourcesContent":["export const fileUploaderSizeMixin = (fontSize: string, lineHeight: string, paddingX: string, paddingY: string) =>\n ({\n fontSize,\n boxSizing: 'border-box',\n padding: `${paddingY} ${paddingX}`,\n lineHeight,\n }) as const;\n"]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export declare const root: string;
|
|
2
|
+
export declare const content: string;
|
|
3
|
+
export declare const nameBlock: string;
|
|
4
|
+
export declare const size: string;
|
|
5
|
+
export declare const sizeSmall: string;
|
|
6
|
+
export declare const sizeMedium: string;
|
|
7
|
+
export declare const sizeLarge: string;
|
|
8
|
+
export declare const icon: string;
|
|
9
|
+
export declare const disabledFileTypeIconSvg: string;
|
|
10
|
+
export declare const fileTypeIconMultiple: string;
|
|
11
|
+
export declare const contentSmall: string;
|
|
12
|
+
export declare const contentMedium: string;
|
|
13
|
+
export declare const contentLarge: string;
|
|
14
|
+
export declare const rowContent: string;
|
|
15
|
+
export declare const rowContentSmall: string;
|
|
16
|
+
export declare const rowContentMedium: string;
|
|
17
|
+
export declare const iconSmall: string;
|
|
18
|
+
export declare const iconMedium: string;
|
|
19
|
+
export declare const iconLarge: string;
|
|
20
|
+
export declare const fileTypeIconSmall: string;
|
|
21
|
+
export declare const fileTypeIconMedium: string;
|
|
22
|
+
export declare const fileTypeIconLarge: string;
|
|
23
|
+
export declare const iconColor: string;
|
|
24
|
+
export declare const rowSize: string;
|
|
25
|
+
export declare const name: string;
|
|
26
|
+
export declare const rowNameBlock: string;
|
|
27
|
+
export declare const disabled: string;
|
|
28
|
+
export declare const tileContent: string;
|
|
29
|
+
export declare const iconAction: string;
|
|
30
|
+
export declare const iconActionShow: string;
|
|
31
|
+
export declare const tileIconSmall: string;
|
|
32
|
+
export declare const tileIconMedium: string;
|
|
33
|
+
export declare const tileIconLarge: string;
|
|
34
|
+
export declare const fileTypeIcon: string;
|
|
35
|
+
export declare const fileTypeIconPreview: string;
|
|
36
|
+
export declare const tileFileTypeIconSmall: string;
|
|
37
|
+
export declare const tileFileTypeIconMedium: string;
|
|
38
|
+
export declare const tileFileTypeIconLarge: string;
|
|
39
|
+
export declare const tileIconColor: string;
|
|
40
|
+
export declare const tileSize: string;
|
|
41
|
+
export declare const tileName: string;
|
|
42
|
+
export declare const tileNameBlock: string;
|
|
43
|
+
export declare const tileContentSmall: string;
|
|
44
|
+
export declare const tileContentMedium: string;
|
|
45
|
+
export declare const tileContentLarge: string;
|
|
46
|
+
export declare const tileDisabled: string;
|
|
47
|
+
export declare const validationTextWarning: string;
|
|
48
|
+
export declare const validationTextError: string;
|
|
49
|
+
export declare const disabledFileTypeIcon: string;
|
|
50
|
+
export declare const warningFileTypeIcon: string;
|
|
51
|
+
export declare const errorFileTypeIcon: string;
|
|
52
|
+
export declare const sizeDisabled: string;
|
|
53
|
+
export declare const jsStyles: {
|
|
54
|
+
root: string;
|
|
55
|
+
content: string;
|
|
56
|
+
validationTextError: string;
|
|
57
|
+
validationTextWarning: string;
|
|
58
|
+
nameBlock: string;
|
|
59
|
+
size: string;
|
|
60
|
+
sizeSmall: string;
|
|
61
|
+
sizeMedium: string;
|
|
62
|
+
sizeLarge: string;
|
|
63
|
+
icon: string;
|
|
64
|
+
disabledFileTypeIconSvg: string;
|
|
65
|
+
fileTypeIconMultiple: string;
|
|
66
|
+
contentSmall: string;
|
|
67
|
+
contentMedium: string;
|
|
68
|
+
contentLarge: string;
|
|
69
|
+
};
|
|
70
|
+
export declare const jsRowStyles: {
|
|
71
|
+
content: string;
|
|
72
|
+
contentSmall: string;
|
|
73
|
+
contentMedium: string;
|
|
74
|
+
contentLarge: string;
|
|
75
|
+
iconSmall: string;
|
|
76
|
+
iconMedium: string;
|
|
77
|
+
iconLarge: string;
|
|
78
|
+
fileTypeIconSmall: string;
|
|
79
|
+
fileTypeIconMedium: string;
|
|
80
|
+
fileTypeIconLarge: string;
|
|
81
|
+
iconColor: string;
|
|
82
|
+
size: string;
|
|
83
|
+
name: string;
|
|
84
|
+
nameBlock: string;
|
|
85
|
+
disabled: string;
|
|
86
|
+
};
|
|
87
|
+
export declare const jsTileStyles: {
|
|
88
|
+
content: string;
|
|
89
|
+
iconAction: string;
|
|
90
|
+
iconActionShow: string;
|
|
91
|
+
iconSmall: string;
|
|
92
|
+
iconMedium: string;
|
|
93
|
+
iconLarge: string;
|
|
94
|
+
fileTypeIcon: string;
|
|
95
|
+
fileTypeIconPreview: string;
|
|
96
|
+
fileTypeIconSmall: string;
|
|
97
|
+
fileTypeIconMedium: string;
|
|
98
|
+
fileTypeIconLarge: string;
|
|
99
|
+
disabledFileTypeIcon: string;
|
|
100
|
+
sizeDisabled: string;
|
|
101
|
+
errorFileTypeIcon: string;
|
|
102
|
+
warningFileTypeIcon: string;
|
|
103
|
+
iconColor: string;
|
|
104
|
+
size: string;
|
|
105
|
+
name: string;
|
|
106
|
+
nameBlock: string;
|
|
107
|
+
contentSmall: string;
|
|
108
|
+
contentMedium: string;
|
|
109
|
+
contentLarge: string;
|
|
110
|
+
disabled: string;
|
|
111
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
|
|
2
|
+
export var content = 'react-ui-FileUploaderFile__content';
|
|
3
|
+
export var contentLarge = 'react-ui-FileUploaderFile__contentLarge';
|
|
4
|
+
export var contentMedium = 'react-ui-FileUploaderFile__contentMedium';
|
|
5
|
+
export var contentSmall = 'react-ui-FileUploaderFile__contentSmall';
|
|
6
|
+
export var disabled = 'react-ui-FileUploaderFile__disabled';
|
|
7
|
+
export var disabledFileTypeIcon = 'react-ui-FileUploaderFile__disabledFileTypeIcon';
|
|
8
|
+
export var disabledFileTypeIconSvg = 'react-ui-FileUploaderFile__disabledFileTypeIconSvg';
|
|
9
|
+
export var errorFileTypeIcon = 'react-ui-FileUploaderFile__errorFileTypeIcon';
|
|
10
|
+
export var fileTypeIcon = 'react-ui-FileUploaderFile__fileTypeIcon';
|
|
11
|
+
export var fileTypeIconLarge = 'react-ui-FileUploaderFile__fileTypeIconLarge';
|
|
12
|
+
export var fileTypeIconMedium = 'react-ui-FileUploaderFile__fileTypeIconMedium';
|
|
13
|
+
export var fileTypeIconMultiple = 'react-ui-FileUploaderFile__fileTypeIconMultiple';
|
|
14
|
+
export var fileTypeIconPreview = 'react-ui-FileUploaderFile__fileTypeIconPreview';
|
|
15
|
+
export var fileTypeIconSmall = 'react-ui-FileUploaderFile__fileTypeIconSmall';
|
|
16
|
+
export var icon = 'react-ui-FileUploaderFile__icon';
|
|
17
|
+
export var iconAction = 'react-ui-FileUploaderFile__iconAction';
|
|
18
|
+
export var iconActionShow = 'react-ui-FileUploaderFile__iconActionShow';
|
|
19
|
+
export var iconColor = 'react-ui-FileUploaderFile__iconColor';
|
|
20
|
+
export var iconLarge = 'react-ui-FileUploaderFile__iconLarge';
|
|
21
|
+
export var iconMedium = 'react-ui-FileUploaderFile__iconMedium';
|
|
22
|
+
export var iconSmall = 'react-ui-FileUploaderFile__iconSmall';
|
|
23
|
+
export var jsRowStyles = {content:'react-ui-FileUploaderFile__content-2',contentSmall:'react-ui-FileUploaderFile__contentSmall-2',contentMedium:'react-ui-FileUploaderFile__contentMedium-2',contentLarge:'react-ui-FileUploaderFile__contentMedium-2',iconSmall:'react-ui-FileUploaderFile__iconSmall',iconMedium:'react-ui-FileUploaderFile__iconMedium',iconLarge:'react-ui-FileUploaderFile__iconLarge',fileTypeIconSmall:'react-ui-FileUploaderFile__fileTypeIconSmall',fileTypeIconMedium:'react-ui-FileUploaderFile__fileTypeIconMedium',fileTypeIconLarge:'react-ui-FileUploaderFile__fileTypeIconLarge',iconColor:'react-ui-FileUploaderFile__iconColor',size:'react-ui-FileUploaderFile__size-2',name:'react-ui-FileUploaderFile__name',nameBlock:'react-ui-FileUploaderFile__nameBlock-2',disabled:'react-ui-FileUploaderFile__disabled'};
|
|
24
|
+
export var jsStyles = {root:'react-ui-FileUploaderFile__root',content:'react-ui-FileUploaderFile__content',validationTextError:'react-ui-FileUploaderFile__validationTextError',validationTextWarning:'react-ui-FileUploaderFile__validationTextWarning',nameBlock:'react-ui-FileUploaderFile__nameBlock',size:'react-ui-FileUploaderFile__size',sizeSmall:'react-ui-FileUploaderFile__sizeSmall',sizeMedium:'react-ui-FileUploaderFile__sizeMedium',sizeLarge:'react-ui-FileUploaderFile__sizeLarge',icon:'react-ui-FileUploaderFile__icon',disabledFileTypeIconSvg:'react-ui-FileUploaderFile__disabledFileTypeIconSvg',fileTypeIconMultiple:'react-ui-FileUploaderFile__fileTypeIconMultiple',contentSmall:'react-ui-FileUploaderFile__contentSmall',contentMedium:'react-ui-FileUploaderFile__contentMedium',contentLarge:'react-ui-FileUploaderFile__contentLarge'};
|
|
25
|
+
export var jsTileStyles = {content:'react-ui-FileUploaderFile__content-3',iconAction:'react-ui-FileUploaderFile__iconAction',iconActionShow:'react-ui-FileUploaderFile__iconActionShow',iconSmall:'react-ui-FileUploaderFile__iconSmall-2',iconMedium:'react-ui-FileUploaderFile__iconMedium-2',iconLarge:'react-ui-FileUploaderFile__iconLarge-2',fileTypeIcon:'react-ui-FileUploaderFile__fileTypeIcon',fileTypeIconPreview:'react-ui-FileUploaderFile__fileTypeIconPreview',fileTypeIconSmall:'react-ui-FileUploaderFile__fileTypeIconSmall-2',fileTypeIconMedium:'react-ui-FileUploaderFile__fileTypeIconMedium-2',fileTypeIconLarge:'react-ui-FileUploaderFile__fileTypeIconLarge-2',disabledFileTypeIcon:'react-ui-FileUploaderFile__disabledFileTypeIcon',sizeDisabled:'react-ui-FileUploaderFile__sizeDisabled',errorFileTypeIcon:'react-ui-FileUploaderFile__errorFileTypeIcon',warningFileTypeIcon:'react-ui-FileUploaderFile__warningFileTypeIcon',iconColor:'react-ui-FileUploaderFile__iconColor-2',size:'react-ui-FileUploaderFile__size-3',name:'react-ui-FileUploaderFile__name-2',nameBlock:'react-ui-FileUploaderFile__nameBlock-3',contentSmall:'react-ui-FileUploaderFile__contentSmall-3',contentMedium:'react-ui-FileUploaderFile__contentMedium-3',contentLarge:'react-ui-FileUploaderFile__contentLarge-2',disabled:'react-ui-FileUploaderFile__disabled-2'};
|
|
26
|
+
export var name = 'react-ui-FileUploaderFile__name';
|
|
27
|
+
export var nameBlock = 'react-ui-FileUploaderFile__nameBlock';
|
|
28
|
+
export var root = 'react-ui-FileUploaderFile__root';
|
|
29
|
+
export var rowContent = 'react-ui-FileUploaderFile__content-2';
|
|
30
|
+
export var rowContentMedium = 'react-ui-FileUploaderFile__contentMedium-2';
|
|
31
|
+
export var rowContentSmall = 'react-ui-FileUploaderFile__contentSmall-2';
|
|
32
|
+
export var rowNameBlock = 'react-ui-FileUploaderFile__nameBlock-2';
|
|
33
|
+
export var rowSize = 'react-ui-FileUploaderFile__size-2';
|
|
34
|
+
export var size = 'react-ui-FileUploaderFile__size';
|
|
35
|
+
export var sizeDisabled = 'react-ui-FileUploaderFile__sizeDisabled';
|
|
36
|
+
export var sizeLarge = 'react-ui-FileUploaderFile__sizeLarge';
|
|
37
|
+
export var sizeMedium = 'react-ui-FileUploaderFile__sizeMedium';
|
|
38
|
+
export var sizeSmall = 'react-ui-FileUploaderFile__sizeSmall';
|
|
39
|
+
export var tileContent = 'react-ui-FileUploaderFile__content-3';
|
|
40
|
+
export var tileContentLarge = 'react-ui-FileUploaderFile__contentLarge-2';
|
|
41
|
+
export var tileContentMedium = 'react-ui-FileUploaderFile__contentMedium-3';
|
|
42
|
+
export var tileContentSmall = 'react-ui-FileUploaderFile__contentSmall-3';
|
|
43
|
+
export var tileDisabled = 'react-ui-FileUploaderFile__disabled-2';
|
|
44
|
+
export var tileFileTypeIconLarge = 'react-ui-FileUploaderFile__fileTypeIconLarge-2';
|
|
45
|
+
export var tileFileTypeIconMedium = 'react-ui-FileUploaderFile__fileTypeIconMedium-2';
|
|
46
|
+
export var tileFileTypeIconSmall = 'react-ui-FileUploaderFile__fileTypeIconSmall-2';
|
|
47
|
+
export var tileIconColor = 'react-ui-FileUploaderFile__iconColor-2';
|
|
48
|
+
export var tileIconLarge = 'react-ui-FileUploaderFile__iconLarge-2';
|
|
49
|
+
export var tileIconMedium = 'react-ui-FileUploaderFile__iconMedium-2';
|
|
50
|
+
export var tileIconSmall = 'react-ui-FileUploaderFile__iconSmall-2';
|
|
51
|
+
export var tileName = 'react-ui-FileUploaderFile__name-2';
|
|
52
|
+
export var tileNameBlock = 'react-ui-FileUploaderFile__nameBlock-3';
|
|
53
|
+
export var tileSize = 'react-ui-FileUploaderFile__size-3';
|
|
54
|
+
export var validationTextError = 'react-ui-FileUploaderFile__validationTextError';
|
|
55
|
+
export var validationTextWarning = 'react-ui-FileUploaderFile__validationTextWarning';
|
|
56
|
+
export var warningFileTypeIcon = 'react-ui-FileUploaderFile__warningFileTypeIcon';
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Y,GAAG;IAC1B,OAAO,EAAE,WAAW;IACpB,UAAU,YAAA;IACV,cAAc,gBAAA;IACd,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,aAAa;IACxB,YAAY,cAAA;IACZ,mBAAmB,qBAAA;IACnB,iBAAiB,EAAE,qBAAqB;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,iBAAiB,EAAE,qBAAqB;IACxC,oBAAoB,sBAAA;IACpB,YAAY,cAAA;IACZ,iBAAiB,mBAAA;IACjB,mBAAmB,qBAAA;IACnB,SAAS,EAAE,aAAa;IACxB,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,gBAAgB;IAC9B,aAAa,EAAE,iBAAiB;IAChC,YAAY,EAAE,gBAAgB;IAC9B,QAAQ,EAAE,YAAY;CACvB,CAAC","sourcesContent":["import { globalStyle, style } from '@vanilla-extract/css';\n\nimport { t } from '../../lib/theming/vanilla.js';\n\nexport const root = style({\n width: '100%',\n height: 'inherit',\n});\n\nexport const content = style({\n display: 'flex',\n width: '100%',\n alignItems: 'baseline',\n});\n\nexport const nameBlock = style({\n display: 'flex',\n flexWrap: 'wrap',\n flex: '1 1 100%',\n width: '100%',\n});\n\nexport const size = style({\n marginLeft: t.fileUploaderFileSizeMarginLeft,\n flex: '1 0 auto',\n});\n\nexport const sizeSmall = style({\n width: t.fileUploaderFileSizeWidthSmall,\n marginRight: t.fileUploaderFileSizeMarginSmall,\n fontSize: t.fileUploaderFontSizeSmall,\n lineHeight: t.fileUploaderLineHeightSmall,\n});\n\nexport const sizeMedium = style({\n width: t.fileUploaderFileSizeWidthMedium,\n marginRight: t.fileUploaderFileSizeMarginMedium,\n fontSize: t.fileUploaderFontSizeMedium,\n lineHeight: t.fileUploaderLineHeightMedium,\n});\n\nexport const sizeLarge = style({\n width: t.fileUploaderFileSizeWidthLarge,\n marginRight: t.fileUploaderFileSizeMarginLarge,\n fontSize: t.fileUploaderFontSizeLarge,\n lineHeight: t.fileUploaderLineHeightLarge,\n});\n\nexport const icon = style({\n position: 'absolute',\n top: t.fileUploaderIconGapSmall,\n right: t.fileUploaderIconGapSmall,\n display: 'flex',\n flex: '1 0 auto',\n alignItems: 'center',\n justifyContent: 'center',\n width: t.fileUploaderTileIconSizeSmall,\n borderRadius: t.fileUploaderBorderRadius,\n cursor: 'pointer',\n textAlign: 'center',\n outline: 'none',\n});\n\n// только вложенное правило для svg\nexport const disabledFileTypeIconSvg = style({});\n\nexport const fileTypeIconMultiple = style({ marginLeft: 0 });\n\nexport const contentSmall = style({\n fontSize: t.fileUploaderFontSizeSmall,\n lineHeight: t.fileUploaderLineHeightSmall,\n});\n\nexport const contentMedium = style({\n fontSize: t.fileUploaderFontSizeMedium,\n lineHeight: t.fileUploaderLineHeightMedium,\n});\n\nexport const contentLarge = style({\n fontSize: t.fileUploaderFontSizeLarge,\n lineHeight: t.fileUploaderLineHeightLarge,\n});\n\n// ---------- строки (getJsRowStyles): одноимённые классы получают суффикс, как раньше ----------\n\nexport const rowContent = style({ flexDirection: 'row' }, 'content-2');\n\nexport const rowContentSmall = style({ marginRight: t.fileUploaderFileIconSizeSmall }, 'contentSmall-2');\n\n// у contentLarge строки те же стили, Emotion отдавал ему этот же класс\nexport const rowContentMedium = style({ marginRight: t.fileUploaderFileIconSizeMedium }, 'contentMedium-2');\n\nexport const iconSmall = style({\n height: t.fileUploaderFileIconSizeSmall,\n width: t.fileUploaderFileIconSizeSmall,\n});\n\nexport const iconMedium = style({\n height: t.fileUploaderFileIconSizeMedium,\n width: t.fileUploaderFileIconSizeMedium,\n});\n\nexport const iconLarge = style({\n height: t.fileUploaderFileIconSizeLarge,\n width: t.fileUploaderFileIconSizeLarge,\n});\n\nexport const fileTypeIconSmall = style({ marginRight: t.fileUploaderIconGapSmall });\n\nexport const fileTypeIconMedium = style({ marginRight: t.fileUploaderIconGapMedium });\n\nexport const fileTypeIconLarge = style({ marginRight: t.fileUploaderIconGapLarge });\n\nexport const iconColor = style({ color: t.fileUploaderIconColor });\n\nexport const rowSize = style(\n {\n marginLeft: t.fileUploaderIconGapSmall,\n color: t.fileUploaderDisabledColor,\n },\n 'size-2',\n);\n\nexport const name = style({\n flex: '1 1 100%',\n overflow: 'hidden',\n});\n\nexport const rowNameBlock = style({ flex: '1 1 100%' }, 'nameBlock-2');\n\nexport const disabled = style({\n cursor: 'default',\n color: t.fileUploaderDisabledTextColor,\n});\n\n// ---------- плитки (getJsTileStyles) ----------\n\nexport const tileContent = style(\n {\n flexDirection: 'column',\n alignItems: 'center',\n height: 'inherit',\n },\n 'content-3',\n);\n\nexport const iconAction = style({\n borderRadius: t.fileUploaderBorderRadius,\n opacity: 0,\n background: t.fileUploaderTileIconColorBg,\n});\n\nexport const iconActionShow = style({ opacity: 1 });\n\nexport const tileIconSmall = style(\n {\n width: t.fileUploaderTileIconSizeSmall,\n height: t.fileUploaderTileIconSizeSmall,\n padding: t.fileUploaderTileIconActionPaddingSmall,\n top: t.fileUploaderTileIconActionPositionSmall,\n right: t.fileUploaderTileIconActionPositionSmall,\n },\n 'iconSmall-2',\n);\n\nexport const tileIconMedium = style(\n {\n width: t.fileUploaderTileIconSizeMedium,\n height: t.fileUploaderTileIconSizeMedium,\n padding: t.fileUploaderTileIconActionPaddingMedium,\n top: t.fileUploaderTileIconActionPositionMedium,\n right: t.fileUploaderTileIconActionPositionMedium,\n },\n 'iconMedium-2',\n);\n\nexport const tileIconLarge = style(\n {\n width: t.fileUploaderTileIconSizeLarge,\n height: t.fileUploaderTileIconSizeLarge,\n padding: t.fileUploaderTileIconActionPaddingLarge,\n top: t.fileUploaderTileIconActionPositionLarge,\n right: t.fileUploaderTileIconActionPositionLarge,\n },\n 'iconLarge-2',\n);\n\nexport const fileTypeIcon = style({\n width: '100%',\n border: `1px solid ${t.fileUploaderDisabledBorderColor}`,\n borderRadius: t.fileUploaderBorderRadius,\n boxSizing: 'border-box',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n});\n\nexport const fileTypeIconPreview = style({\n backgroundPosition: 'top',\n backgroundSize: 'cover',\n backgroundRepeat: 'no-repeat',\n});\n\nexport const tileFileTypeIconSmall = style(\n {\n marginBottom: t.fileUploaderIconGapSmall,\n height: t.fileUploaderTileTypeIconHeightSmall,\n },\n 'fileTypeIconSmall-2',\n);\n\nexport const tileFileTypeIconMedium = style(\n {\n marginBottom: t.fileUploaderIconGapMedium,\n height: t.fileUploaderTileTypeIconHeightMedium,\n },\n 'fileTypeIconMedium-2',\n);\n\nexport const tileFileTypeIconLarge = style(\n {\n marginBottom: t.fileUploaderIconGapLarge,\n height: t.fileUploaderTileTypeIconHeightLarge,\n },\n 'fileTypeIconLarge-2',\n);\n\nexport const tileIconColor = style({ color: t.fileUploaderTileIconColor }, 'iconColor-2');\n\nexport const tileSize = style(\n {\n width: '100%',\n margin: `${t.fileUploaderIconGapSmall} 0 0`,\n overflow: 'hidden',\n textAlign: 'center',\n color: t.clearCrossIconColor,\n },\n 'size-3',\n);\n\nexport const tileName = style(\n {\n flex: '1 1 100%',\n wordBreak: 'break-all',\n height: '100%',\n },\n 'name-2',\n);\n\nexport const tileNameBlock = style(\n {\n flex: 0,\n textAlign: 'center',\n },\n 'nameBlock-3',\n);\n\nexport const tileContentSmall = style({ maxHeight: `calc(${t.fileUploaderLineHeightSmall} * 2)` }, 'contentSmall-3');\n\nexport const tileContentMedium = style({ maxHeight: `calc(${t.fileUploaderLineHeightMedium} * 2)` }, 'contentMedium-3');\n\nexport const tileContentLarge = style({ maxHeight: `calc(${t.fileUploaderLineHeightLarge} * 2)` }, 'contentLarge-2');\n\nexport const tileDisabled = style(\n {\n cursor: 'default',\n color: t.fileUploaderDisabledIconColor,\n },\n 'disabled-2',\n);\n\n// модификаторы — после базовых, как в порядке вызова cx(...)\nexport const validationTextWarning = style({ color: t.fileUploaderWarningTextColor });\n\nexport const validationTextError = style({ color: t.fileUploaderErrorTextColor });\n\nexport const disabledFileTypeIcon = style({\n boxShadow: 'none',\n background: t.fileUploaderDisabledBg,\n});\n\nexport const warningFileTypeIcon = style({\n background: t.fileUploaderWarningBgColor,\n border: `1px solid ${t.fileUploaderWarningBgColor}`,\n});\n\nexport const errorFileTypeIcon = style({\n background: t.fileUploaderErrorBgColor,\n border: `1px solid ${t.fileUploaderErrorBgColor}`,\n});\n\nexport const sizeDisabled = style({ color: t.fileUploaderDisabledIconColor });\n\n// вложенные правила — после баз всех классов файла, как было в склеенном CSS Emotion\nglobalStyle(`${icon}:hover`, { background: t.fileUploaderHoveredBg });\nglobalStyle(`${icon}:active`, { background: t.fileUploaderActiveBg });\n\nglobalStyle(`${disabledFileTypeIconSvg} svg`, { fill: `${t.fileUploaderDisabledFileTypeIcon} !important` });\n\nglobalStyle(`${iconColor}:hover`, { color: t.fileUploaderIconHoverColor });\n\nglobalStyle(`${iconAction}:hover`, { background: t.fileUploaderTileIconHoverColorBg });\nglobalStyle(`${iconAction}:active`, { background: t.fileUploaderTileIconActiveColorBg });\n\nglobalStyle(`${tileIconColor}:hover`, { color: t.fileUploaderTileIconHoverColor });\n\nglobalStyle(`${tileName} span`, { wordBreak: 'break-word' });\n\nexport const jsStyles = {\n root,\n content,\n validationTextError,\n validationTextWarning,\n nameBlock,\n size,\n sizeSmall,\n sizeMedium,\n sizeLarge,\n icon,\n disabledFileTypeIconSvg,\n fileTypeIconMultiple,\n contentSmall,\n contentMedium,\n contentLarge,\n};\n\nexport const jsRowStyles = {\n content: rowContent,\n contentSmall: rowContentSmall,\n contentMedium: rowContentMedium,\n contentLarge: rowContentMedium,\n iconSmall,\n iconMedium,\n iconLarge,\n fileTypeIconSmall,\n fileTypeIconMedium,\n fileTypeIconLarge,\n iconColor,\n size: rowSize,\n name,\n nameBlock: rowNameBlock,\n disabled,\n};\n\nexport const jsTileStyles = {\n content: tileContent,\n iconAction,\n iconActionShow,\n iconSmall: tileIconSmall,\n iconMedium: tileIconMedium,\n iconLarge: tileIconLarge,\n fileTypeIcon,\n fileTypeIconPreview,\n fileTypeIconSmall: tileFileTypeIconSmall,\n fileTypeIconMedium: tileFileTypeIconMedium,\n fileTypeIconLarge: tileFileTypeIconLarge,\n disabledFileTypeIcon,\n sizeDisabled,\n errorFileTypeIcon,\n warningFileTypeIcon,\n iconColor: tileIconColor,\n size: tileSize,\n name: tileName,\n nameBlock: tileNameBlock,\n contentSmall: tileContentSmall,\n contentMedium: tileContentMedium,\n contentLarge: tileContentLarge,\n disabled: tileDisabled,\n};\n"]}
|
|
@@ -24,18 +24,18 @@ import React, { useCallback, useContext, useEffect, useMemo, useRef, useState }
|
|
|
24
24
|
import { CommonWrapper } from '../../internal/CommonWrapper/index.js';
|
|
25
25
|
import { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';
|
|
26
26
|
import { TextWidthHelper } from '../../internal/TextWidthHelper/TextWidthHelper.js';
|
|
27
|
+
import { cx } from '../../lib/cx.js';
|
|
27
28
|
import { getDOMRect } from '../../lib/dom/getDOMRect.js';
|
|
28
29
|
import { isKeyEnter } from '../../lib/events/keyboard/identifiers.js';
|
|
29
30
|
import { useKeyListener } from '../../lib/events/keyListener.js';
|
|
30
31
|
import { forwardRefAndName } from '../../lib/forwardRefAndName.js';
|
|
31
32
|
import { LocaleContext } from '../../lib/locale/LocaleContext.js';
|
|
32
|
-
import {
|
|
33
|
+
import { useGlobal } from '../../lib/renderEnvironment/index.js';
|
|
33
34
|
import { truncate } from '../../lib/stringUtils.js';
|
|
34
|
-
import { ThemeContext } from '../../lib/theming/ThemeContext.js';
|
|
35
35
|
import { formatBytes } from '../../lib/utils.js';
|
|
36
36
|
import { Hint } from '../Hint/index.js';
|
|
37
37
|
import { Tooltip } from '../Tooltip/index.js';
|
|
38
|
-
import {
|
|
38
|
+
import { jsRowStyles, jsStyles, jsTileStyles } from './FileUploaderFile.css.js';
|
|
39
39
|
import { FileUploaderFileStatusIcon } from './FileUploaderFileStatusIcon.js';
|
|
40
40
|
import { FileUploaderFileTypeIcon } from './FileUploaderFileTypeIcon.js';
|
|
41
41
|
import { FileUploaderFileStatus, getFileUploaderTypeIcon } from './fileUtils.js';
|
|
@@ -97,13 +97,8 @@ export var FileUploaderFile = forwardRefAndName('FileUploaderFile', function (pr
|
|
|
97
97
|
var textHelperRef = useRef(null);
|
|
98
98
|
var fileNameElementRef = useRef(null);
|
|
99
99
|
var langCode = useContext(LocaleContext).langCode;
|
|
100
|
-
var theme = useContext(ThemeContext);
|
|
101
100
|
var globalObject = useGlobal();
|
|
102
|
-
var cx = useEmotion().cx;
|
|
103
101
|
var keyListener = useKeyListener();
|
|
104
|
-
var jsStyles = useStyles(getJsStyles);
|
|
105
|
-
var jsRowStyles = useStyles(getJsRowStyles);
|
|
106
|
-
var jsTileStyles = useStyles(getJsTileStyles);
|
|
107
102
|
var isLoading = status === FileUploaderFileStatus.Loading;
|
|
108
103
|
var isTileView = view === 'tile';
|
|
109
104
|
var jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;
|
|
@@ -123,29 +118,29 @@ export var FileUploaderFile = forwardRefAndName('FileUploaderFile', function (pr
|
|
|
123
118
|
var isWarning = file.status === FileUploaderFileStatus.Warning || warning;
|
|
124
119
|
var isInvalid = isError || !isValid;
|
|
125
120
|
var sizeIconClass = useFileUploaderSize(size, {
|
|
126
|
-
small: jsViewStyles.iconSmall
|
|
127
|
-
medium: jsViewStyles.iconMedium
|
|
128
|
-
large: jsViewStyles.iconLarge
|
|
121
|
+
small: jsViewStyles.iconSmall,
|
|
122
|
+
medium: jsViewStyles.iconMedium,
|
|
123
|
+
large: jsViewStyles.iconLarge,
|
|
129
124
|
});
|
|
130
125
|
var renderTooltipContent = useCallback(function () {
|
|
131
126
|
return !isValid && !error && message ? message : null;
|
|
132
127
|
}, [isValid, error, message]);
|
|
133
128
|
var sizeNameBlockClass = useFileUploaderSize(size, {
|
|
134
|
-
small: jsStyles.contentSmall
|
|
135
|
-
medium: jsStyles.contentMedium
|
|
136
|
-
large: jsStyles.contentLarge
|
|
129
|
+
small: jsStyles.contentSmall,
|
|
130
|
+
medium: jsStyles.contentMedium,
|
|
131
|
+
large: jsStyles.contentLarge,
|
|
137
132
|
});
|
|
138
133
|
var sizeViewNameBlockClass = useFileUploaderSize(size, {
|
|
139
|
-
small: jsViewStyles.contentSmall
|
|
140
|
-
medium: jsViewStyles.contentMedium
|
|
141
|
-
large: jsViewStyles.contentLarge
|
|
134
|
+
small: jsViewStyles.contentSmall,
|
|
135
|
+
medium: jsViewStyles.contentMedium,
|
|
136
|
+
large: jsViewStyles.contentLarge,
|
|
142
137
|
});
|
|
143
138
|
var validationTextClassName = cx((_a = {},
|
|
144
|
-
_a[jsStyles.validationTextWarning
|
|
145
|
-
_a[jsStyles.validationTextError
|
|
139
|
+
_a[jsStyles.validationTextWarning] = isWarning,
|
|
140
|
+
_a[jsStyles.validationTextError] = isError,
|
|
146
141
|
_a));
|
|
147
|
-
var contentClassNames = cx(jsStyles.content
|
|
148
|
-
var nameTextClassNames = cx(jsViewStyles.name
|
|
142
|
+
var contentClassNames = cx(jsStyles.content, jsViewStyles.content);
|
|
143
|
+
var nameTextClassNames = cx(jsViewStyles.name, isTileView && !disabled && validationTextClassName);
|
|
149
144
|
var handleMouseEnter = useCallback(function () {
|
|
150
145
|
setHoveredFile(true);
|
|
151
146
|
}, []);
|
|
@@ -170,36 +165,36 @@ export var FileUploaderFile = forwardRefAndName('FileUploaderFile', function (pr
|
|
|
170
165
|
onRemove(id);
|
|
171
166
|
}
|
|
172
167
|
}, [onRemove, id]);
|
|
173
|
-
var iconClassNames = cx(jsStyles.icon
|
|
168
|
+
var iconClassNames = cx(jsStyles.icon, (_b = {},
|
|
174
169
|
_b[sizeIconClass] = true,
|
|
175
|
-
_b[jsTileStyles.iconAction
|
|
176
|
-
_b[jsTileStyles.iconActionShow
|
|
170
|
+
_b[jsTileStyles.iconAction] = isTileView,
|
|
171
|
+
_b[jsTileStyles.iconActionShow] = isTileView && !disabled && (hovered || hoveredFile || focused || focusedByTab),
|
|
177
172
|
_b));
|
|
178
173
|
var sizeClassName = useFileUploaderSize(size, {
|
|
179
|
-
small: jsStyles.sizeSmall
|
|
180
|
-
medium: jsStyles.sizeMedium
|
|
181
|
-
large: jsStyles.sizeLarge
|
|
174
|
+
small: jsStyles.sizeSmall,
|
|
175
|
+
medium: jsStyles.sizeMedium,
|
|
176
|
+
large: jsStyles.sizeLarge,
|
|
182
177
|
});
|
|
183
|
-
var sizeClassNames = cx(jsStyles.size
|
|
178
|
+
var sizeClassNames = cx(jsStyles.size, sizeClassName, jsViewStyles.size, isTileView && (disabled || isLoading) && jsTileStyles.sizeDisabled);
|
|
184
179
|
var sizeFileTypeIconClass = useFileUploaderSize(size, {
|
|
185
|
-
small: jsViewStyles.fileTypeIconSmall
|
|
186
|
-
medium: jsViewStyles.fileTypeIconMedium
|
|
187
|
-
large: jsViewStyles.fileTypeIconLarge
|
|
180
|
+
small: jsViewStyles.fileTypeIconSmall,
|
|
181
|
+
medium: jsViewStyles.fileTypeIconMedium,
|
|
182
|
+
large: jsViewStyles.fileTypeIconLarge,
|
|
188
183
|
});
|
|
189
184
|
var isTruncated = truncatedFileName !== name;
|
|
190
|
-
var fileTypeIconClassName = cx(sizeFileTypeIconClass, disabled && jsStyles.disabledFileTypeIconSvg
|
|
191
|
-
_c[jsTileStyles.fileTypeIcon
|
|
192
|
-
_c[jsTileStyles.fileTypeIconPreview
|
|
193
|
-
_c[jsTileStyles.disabledFileTypeIcon
|
|
194
|
-
_c[jsTileStyles.warningFileTypeIcon
|
|
195
|
-
_c[jsTileStyles.errorFileTypeIcon
|
|
196
|
-
_c), multiple && jsStyles.fileTypeIconMultiple
|
|
197
|
-
var nameBlockClassNames = cx(sizeNameBlockClass, sizeViewNameBlockClass, jsStyles.nameBlock
|
|
185
|
+
var fileTypeIconClassName = cx(sizeFileTypeIconClass, disabled && jsStyles.disabledFileTypeIconSvg, isTileView && (_c = {},
|
|
186
|
+
_c[jsTileStyles.fileTypeIcon] = true,
|
|
187
|
+
_c[jsTileStyles.fileTypeIconPreview] = !!previewImg,
|
|
188
|
+
_c[jsTileStyles.disabledFileTypeIcon] = disabled,
|
|
189
|
+
_c[jsTileStyles.warningFileTypeIcon] = isWarning,
|
|
190
|
+
_c[jsTileStyles.errorFileTypeIcon] = isError,
|
|
191
|
+
_c), multiple && jsStyles.fileTypeIconMultiple);
|
|
192
|
+
var nameBlockClassNames = cx(sizeNameBlockClass, sizeViewNameBlockClass, jsStyles.nameBlock, (disabled || isLoading) && jsViewStyles.disabled, jsViewStyles.nameBlock);
|
|
198
193
|
var fileType = getFileUploaderTypeIcon(file.originalFile, isError, isWarning && !!withWarningIcon);
|
|
199
194
|
var icon = isTileView && isLoading ? (React.createElement(LoadingIcon, { size: size })) : ((fileTypeIcon !== null && fileTypeIcon !== void 0 ? fileTypeIcon : React.createElement(FileUploaderFileTypeIcon, { type: fileType, size: size, view: view })));
|
|
200
195
|
var splitTruncatedFileName = truncatedFileName && splitFileNameAndExtension(truncatedFileName);
|
|
201
196
|
return (React.createElement(CommonWrapper, __assign({}, rest),
|
|
202
|
-
React.createElement("div", { "data-tid": FileUploaderFileDataTids.file, className: jsStyles.root
|
|
197
|
+
React.createElement("div", { "data-tid": FileUploaderFileDataTids.file, className: jsStyles.root, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ref: ref },
|
|
203
198
|
React.createElement(Tooltip, { "data-tid": FileUploaderFileDataTids.fileTooltip, pos: validationTooltipPositionByView, render: function () { return (withValidationTooltip || isTileView ? renderTooltipContent() : null); } },
|
|
204
199
|
React.createElement("div", { className: contentClassNames },
|
|
205
200
|
React.createElement("div", { "data-tid": FileUploaderFileDataTids.fileTypeIcon, className: fileTypeIconClassName, style: previewImg ? { backgroundImage: "url(".concat(previewImg, ")") } : undefined }, (!isTileView || !previewImg) && icon),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploaderFile.js","sourceRoot":"","sources":["FileUploaderFile.tsx"],"names":[],"mappings":";;;;;;;;;;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OAAO,IAAI,YAAY,EACrC,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,OAAO,IAAI,SAAS,EACnC,IAAI,EAAE,IAAI,GACV,CACE,CACF,CACE,CACN,CACQ,CACjB,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport type { ReactNode } from 'react';\n\nimport { type CommonProps, CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../internal/Popup/index.js';\nimport { TextWidthHelper } from '../../internal/TextWidthHelper/TextWidthHelper.js';\nimport { getDOMRect } from '../../lib/dom/getDOMRect.js';\nimport { isKeyEnter } from '../../lib/events/keyboard/identifiers.js';\nimport { useKeyListener } from '../../lib/events/keyListener.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { LocaleContext } from '../../lib/locale/LocaleContext.js';\nimport { useEmotion, useGlobal, useStyles } from '../../lib/renderEnvironment/index.js';\nimport { truncate } from '../../lib/stringUtils.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { formatBytes } from '../../lib/utils.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { Hint } from '../Hint/index.js';\nimport { Tooltip } from '../Tooltip/index.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFile.styles.js';\nimport { FileUploaderFileStatusIcon } from './FileUploaderFileStatusIcon.js';\nimport { FileUploaderFileTypeIcon } from './FileUploaderFileTypeIcon.js';\nimport type { FileUploaderAttachedFile, FileUploaderIconType, FileUploaderView } from './fileUtils.js';\nimport { FileUploaderFileStatus, getFileUploaderTypeIcon } from './fileUtils.js';\nimport { useFileUploaderSize } from './hooks/useFileUploaderSize.js';\n\nexport interface FileUploaderFileProps extends CommonProps {\n /** Данные файла и статусы из контекста `FileUploader`. */\n file: FileUploaderAttachedFile;\n /** Включает отображение размера файла рядом с именем. */\n showSize?: boolean;\n /** Фон превью в плиточном виде (URL изображения). */\n previewImg?: string;\n /** Включает мультивыбор файлов. */\n multiple?: boolean;\n /** Блокирует строку файла. */\n disabled?: boolean;\n /** Переводит строку файла в состояние \"наведенное\". */\n hovered?: boolean;\n /** Переводит строку файла в состояние \"фокус\". */\n focused?: boolean;\n /** Размер контрола и вложенных элементов.\n * @default small */\n size: SizeProp;\n /** Внешний вид: строка (`row`) или плитка (`tile`).\n * @default row\n */\n view?: FileUploaderView;\n /** Переводит строку файла в состояние ошибки. */\n error?: boolean;\n /** Переводит строку файла в состояние предупреждения. */\n warning?: boolean;\n /** Включает отображение текста валидации во всплывающей подсказке (и в плитке по умолчанию). */\n withValidationTooltip?: boolean;\n /** Расположение тултипа с текстом валидации. */\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n /** Включает отображение иконки предупреждения (восклицательный знак) при статусе предупреждения у файла. */\n withWarningIcon?: boolean;\n /** Удаляет файл по `id`. */\n onRemove(id: string): void;\n /**\n * Замена стандартной иконки типа файла.\n */\n fileTypeIcon?: React.ReactElement;\n /**\n * Включает отображение подсказки с полным именем при обрезке текста (через `Hint`).\n * @default true\n */\n showFilenameHint?: boolean;\n}\n\nconst splitFileNameAndExtension = (filename: string): { name: string; extension: string } => {\n const lastDotIndex = filename.lastIndexOf('.');\n if (lastDotIndex === -1) {\n return { name: filename, extension: '' };\n }\n const name = filename.substring(0, lastDotIndex);\n const extension = filename.substring(lastDotIndex + 1);\n return { name, extension };\n};\n\nconst getTruncatedName = (fileNameWidth: number, fileNameElementWidth: number, name: string, isTileView = false) => {\n if (!fileNameWidth && !fileNameElementWidth) {\n return null;\n }\n\n if (fileNameWidth <= fileNameElementWidth) {\n return name;\n }\n\n const charWidth = Math.ceil(fileNameWidth / name.length);\n const maxCharsCountInSpan = Math.ceil(fileNameElementWidth / charWidth);\n\n if (isTileView) {\n const splitFileName = splitFileNameAndExtension(name);\n return `${truncate(splitFileName.name, maxCharsCountInSpan)}.${splitFileName.extension}`;\n }\n\n return truncate(name, maxCharsCountInSpan);\n};\n\nconst calcTruncatedName = (\n textHelperRef: React.RefObject<TextWidthHelper | null>,\n fileNameElementRef: React.RefObject<HTMLSpanElement | null>,\n name: string,\n isTileView = false,\n) => {\n const fileNameWidth = textHelperRef.current?.getTextWidth() || 0;\n const fileNameElementWidth = isTileView\n ? // даем возможность занять 2 строки с погрешностью в 50%\n getDOMRect(fileNameElementRef.current).width * 1.5\n : getDOMRect(fileNameElementRef.current).width;\n\n return getTruncatedName(fileNameWidth, fileNameElementWidth, name, isTileView);\n};\n\nexport const FileUploaderFileDataTids = {\n file: 'FileUploader__file',\n fileTooltip: 'FileUploader__fileTooltip',\n fileName: 'FileUploader__fileName',\n fileSize: 'FileUploader__fileSize',\n fileIcon: 'FileUploader__fileIcon',\n fileTypeIcon: 'FileUploader__fileTypeIcon',\n} as const;\n\n/**\n * `FileUploaderFile` показывает одну строку файла внутри `FileUploader`: имя, тип, размер, статусы и удаление.\n */\nexport const FileUploaderFile = forwardRefAndName<HTMLDivElement, FileUploaderFileProps>(\n 'FileUploaderFile',\n (props, ref) => {\n const {\n file,\n showSize = false,\n previewImg,\n error,\n warning,\n multiple,\n disabled = false,\n hovered = false,\n focused = false,\n size,\n view = 'row',\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n onRemove,\n showFilenameHint: showFullFilename = true,\n fileTypeIcon,\n ...rest\n } = props;\n const { id, originalFile, status, validationResult } = file;\n const { name, size: fileSize } = originalFile;\n\n const [hoveredFile, setHoveredFile] = useState<boolean>(hovered || false);\n const [focusedByTab, setFocusedByTab] = useState(focused || false);\n const [truncatedFileName, setTruncatedFileName] = useState<Nullable<string>>(null);\n\n const textHelperRef = useRef<TextWidthHelper>(null);\n const fileNameElementRef = useRef<HTMLSpanElement>(null);\n\n const { langCode } = useContext(LocaleContext);\n const theme = useContext(ThemeContext);\n const globalObject = useGlobal();\n\n const { cx } = useEmotion();\n const keyListener = useKeyListener();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n\n const isLoading = status === FileUploaderFileStatus.Loading;\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n const validationTooltipPositionByView = validationTooltipPosition || (isTileView ? 'top center' : 'top left');\n\n const formattedSize = useMemo(() => formatBytes(fileSize, 1, langCode), [fileSize, langCode]);\n\n useEffect(() => {\n const truncatedName = calcTruncatedName(textHelperRef, fileNameElementRef, name, isTileView);\n\n setTruncatedFileName(truncatedName);\n });\n\n const handleRemove = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.preventDefault();\n event.stopPropagation();\n onRemove(id);\n },\n [id, onRemove],\n );\n\n const { isValid, message } = validationResult;\n\n const isError = file.status === FileUploaderFileStatus.Error || error;\n const isWarning = file.status === FileUploaderFileStatus.Warning || warning;\n const isInvalid = isError || !isValid;\n\n const sizeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.iconSmall(theme),\n medium: jsViewStyles.iconMedium(theme),\n large: jsViewStyles.iconLarge(theme),\n });\n\n const renderTooltipContent = useCallback((): ReactNode => {\n return !isValid && !error && message ? message : null;\n }, [isValid, error, message]);\n\n const sizeNameBlockClass = useFileUploaderSize(size, {\n small: jsStyles.contentSmall(theme),\n medium: jsStyles.contentMedium(theme),\n large: jsStyles.contentLarge(theme),\n });\n\n const sizeViewNameBlockClass = useFileUploaderSize(size, {\n small: jsViewStyles.contentSmall(theme),\n medium: jsViewStyles.contentMedium(theme),\n large: jsViewStyles.contentLarge(theme),\n });\n\n const validationTextClassName = cx({\n [jsStyles.validationTextWarning(theme)]: isWarning,\n [jsStyles.validationTextError(theme)]: isError,\n });\n\n const contentClassNames = cx(jsStyles.content(), jsViewStyles.content());\n const nameTextClassNames = cx(jsViewStyles.name(), isTileView && !disabled && validationTextClassName);\n\n const handleMouseEnter = useCallback(() => {\n setHoveredFile(true);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setHoveredFile(false);\n }, []);\n\n const handleFocus = useCallback(() => {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n setFocusedByTab(true);\n }\n });\n }, []);\n\n const handleBlur = useCallback(() => {\n setFocusedByTab(false);\n }, []);\n\n const handleIconKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (isKeyEnter(e)) {\n onRemove(id);\n }\n },\n [onRemove, id],\n );\n\n const iconClassNames = cx(jsStyles.icon(theme), {\n [sizeIconClass]: true,\n [jsTileStyles.iconAction(theme)]: isTileView,\n [jsTileStyles.iconActionShow()]: isTileView && !disabled && (hovered || hoveredFile || focused || focusedByTab),\n });\n\n const sizeClassName = useFileUploaderSize(size, {\n small: jsStyles.sizeSmall(theme),\n medium: jsStyles.sizeMedium(theme),\n large: jsStyles.sizeLarge(theme),\n });\n\n const sizeClassNames = cx(\n jsStyles.size(theme),\n sizeClassName,\n jsViewStyles.size(theme),\n isTileView && (disabled || isLoading) && jsTileStyles.sizeDisabled(theme),\n );\n\n const sizeFileTypeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileTypeIconSmall(theme),\n medium: jsViewStyles.fileTypeIconMedium(theme),\n large: jsViewStyles.fileTypeIconLarge(theme),\n });\n\n const isTruncated = truncatedFileName !== name;\n\n const fileTypeIconClassName = cx(\n sizeFileTypeIconClass,\n disabled && jsStyles.disabledFileTypeIconSvg(theme),\n isTileView && {\n [jsTileStyles.fileTypeIcon(theme)]: true,\n [jsTileStyles.fileTypeIconPreview()]: !!previewImg,\n [jsTileStyles.disabledFileTypeIcon(theme)]: disabled,\n [jsTileStyles.warningFileTypeIcon(theme)]: isWarning,\n [jsTileStyles.errorFileTypeIcon(theme)]: isError,\n },\n multiple && jsStyles.fileTypeIconMultiple(),\n );\n\n const nameBlockClassNames = cx(\n sizeNameBlockClass,\n sizeViewNameBlockClass,\n jsStyles.nameBlock(),\n (disabled || isLoading) && jsViewStyles.disabled(theme),\n jsViewStyles.nameBlock(),\n );\n\n const fileType: FileUploaderIconType = getFileUploaderTypeIcon(\n file.originalFile,\n isError,\n isWarning && !!withWarningIcon,\n );\n const icon =\n isTileView && isLoading ? (\n <LoadingIcon size={size} />\n ) : (\n (fileTypeIcon ?? <FileUploaderFileTypeIcon type={fileType} size={size} view={view} />)\n );\n\n const splitTruncatedFileName = truncatedFileName && splitFileNameAndExtension(truncatedFileName);\n\n return (\n <CommonWrapper {...rest}>\n <div\n data-tid={FileUploaderFileDataTids.file}\n className={jsStyles.root()}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n ref={ref}\n >\n <Tooltip\n data-tid={FileUploaderFileDataTids.fileTooltip}\n pos={validationTooltipPositionByView}\n render={() => (withValidationTooltip || isTileView ? renderTooltipContent() : null)}\n >\n <div className={contentClassNames}>\n {\n <div\n data-tid={FileUploaderFileDataTids.fileTypeIcon}\n className={fileTypeIconClassName}\n style={previewImg ? { backgroundImage: `url(${previewImg})` } : undefined}\n >\n {(!isTileView || !previewImg) && icon}\n </div>\n }\n <div className={nameBlockClassNames}>\n <TextWidthHelper ref={textHelperRef} text={name} />\n <Hint maxWidth={'100%'} text={showFullFilename && isTruncated ? name : null}>\n <span\n data-tid={FileUploaderFileDataTids.fileName}\n ref={fileNameElementRef}\n className={nameTextClassNames}\n >\n {splitTruncatedFileName && (\n <>\n {splitTruncatedFileName.name}\n {splitTruncatedFileName.extension && <span>.{splitTruncatedFileName.extension}</span>}\n </>\n )}\n </span>\n </Hint>\n {!(withValidationTooltip || isTileView) && (\n <span className={validationTextClassName}>{renderTooltipContent()}</span>\n )}\n </div>\n {showSize && formattedSize && (\n <span data-tid={FileUploaderFileDataTids.fileSize} className={sizeClassNames}>\n {formattedSize}\n </span>\n )}\n <div\n className={iconClassNames}\n data-tid={FileUploaderFileDataTids.fileIcon}\n tabIndex={0}\n onClick={handleRemove}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleIconKeyDown}\n >\n <FileUploaderFileStatusIcon\n isTileView={isTileView}\n status={status}\n disabled={disabled}\n hovered={hovered || hoveredFile}\n focusedByTab={focused || focusedByTab}\n isInvalid={isInvalid}\n hasValidation={isError || isWarning}\n size={size}\n />\n </div>\n </div>\n </Tooltip>\n </div>\n </CommonWrapper>\n );\n },\n);\n"]}
|
|
1
|
+
{"version":3,"file":"FileUploaderFile.js","sourceRoot":"","sources":["FileUploaderFile.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG7F,OAAO,EAAoB,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mDAAmD,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAq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,GAAG,EAAE,kBAAkB,EACvB,SAAS,EAAE,kBAAkB,IAE5B,sBAAsB,IAAI,CACzB;gCACG,sBAAsB,CAAC,IAAI;gCAC3B,sBAAsB,CAAC,SAAS,IAAI;;oCAAQ,sBAAsB,CAAC,SAAS,CAAQ,CACpF,CACJ,CACI,CACF;wBACN,CAAC,CAAC,qBAAqB,IAAI,UAAU,CAAC,IAAI,CACzC,8BAAM,SAAS,EAAE,uBAAuB,IAAG,oBAAoB,EAAE,CAAQ,CAC1E,CACG;oBACL,QAAQ,IAAI,aAAa,IAAI,CAC5B,0CAAgB,wBAAwB,CAAC,QAAQ,EAAE,SAAS,EAAE,cAAc,IACzE,aAAa,CACT,CACR;oBACD,6BACE,SAAS,EAAE,cAAc,cACf,wBAAwB,CAAC,QAAQ,EAC3C,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,YAAY,EACrB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,EAClB,SAAS,EAAE,iBAAiB;wBAE5B,oBAAC,0BAA0B,IACzB,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,IAAI,WAAW,EAC/B,YAAY,EAAE,OAAO,IAAI,YAAY,EACrC,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,OAAO,IAAI,SAAS,EACnC,IAAI,EAAE,IAAI,GACV,CACE,CACF,CACE,CACN,CACQ,CACjB,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport type { ReactNode } from 'react';\n\nimport { type CommonProps, CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../internal/Popup/index.js';\nimport { TextWidthHelper } from '../../internal/TextWidthHelper/TextWidthHelper.js';\nimport { cx } from '../../lib/cx.js';\nimport { getDOMRect } from '../../lib/dom/getDOMRect.js';\nimport { isKeyEnter } from '../../lib/events/keyboard/identifiers.js';\nimport { useKeyListener } from '../../lib/events/keyListener.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { LocaleContext } from '../../lib/locale/LocaleContext.js';\nimport { useGlobal } from '../../lib/renderEnvironment/index.js';\nimport { truncate } from '../../lib/stringUtils.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { formatBytes } from '../../lib/utils.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { Hint } from '../Hint/index.js';\nimport { Tooltip } from '../Tooltip/index.js';\nimport { jsRowStyles, jsStyles, jsTileStyles } from './FileUploaderFile.css.js';\nimport { FileUploaderFileStatusIcon } from './FileUploaderFileStatusIcon.js';\nimport { FileUploaderFileTypeIcon } from './FileUploaderFileTypeIcon.js';\nimport type { FileUploaderAttachedFile, FileUploaderIconType, FileUploaderView } from './fileUtils.js';\nimport { FileUploaderFileStatus, getFileUploaderTypeIcon } from './fileUtils.js';\nimport { useFileUploaderSize } from './hooks/useFileUploaderSize.js';\n\nexport interface FileUploaderFileProps extends CommonProps {\n /** Данные файла и статусы из контекста `FileUploader`. */\n file: FileUploaderAttachedFile;\n /** Включает отображение размера файла рядом с именем. */\n showSize?: boolean;\n /** Фон превью в плиточном виде (URL изображения). */\n previewImg?: string;\n /** Включает мультивыбор файлов. */\n multiple?: boolean;\n /** Блокирует строку файла. */\n disabled?: boolean;\n /** Переводит строку файла в состояние \"наведенное\". */\n hovered?: boolean;\n /** Переводит строку файла в состояние \"фокус\". */\n focused?: boolean;\n /** Размер контрола и вложенных элементов.\n * @default small */\n size: SizeProp;\n /** Внешний вид: строка (`row`) или плитка (`tile`).\n * @default row\n */\n view?: FileUploaderView;\n /** Переводит строку файла в состояние ошибки. */\n error?: boolean;\n /** Переводит строку файла в состояние предупреждения. */\n warning?: boolean;\n /** Включает отображение текста валидации во всплывающей подсказке (и в плитке по умолчанию). */\n withValidationTooltip?: boolean;\n /** Расположение тултипа с текстом валидации. */\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n /** Включает отображение иконки предупреждения (восклицательный знак) при статусе предупреждения у файла. */\n withWarningIcon?: boolean;\n /** Удаляет файл по `id`. */\n onRemove(id: string): void;\n /**\n * Замена стандартной иконки типа файла.\n */\n fileTypeIcon?: React.ReactElement;\n /**\n * Включает отображение подсказки с полным именем при обрезке текста (через `Hint`).\n * @default true\n */\n showFilenameHint?: boolean;\n}\n\nconst splitFileNameAndExtension = (filename: string): { name: string; extension: string } => {\n const lastDotIndex = filename.lastIndexOf('.');\n if (lastDotIndex === -1) {\n return { name: filename, extension: '' };\n }\n const name = filename.substring(0, lastDotIndex);\n const extension = filename.substring(lastDotIndex + 1);\n return { name, extension };\n};\n\nconst getTruncatedName = (fileNameWidth: number, fileNameElementWidth: number, name: string, isTileView = false) => {\n if (!fileNameWidth && !fileNameElementWidth) {\n return null;\n }\n\n if (fileNameWidth <= fileNameElementWidth) {\n return name;\n }\n\n const charWidth = Math.ceil(fileNameWidth / name.length);\n const maxCharsCountInSpan = Math.ceil(fileNameElementWidth / charWidth);\n\n if (isTileView) {\n const splitFileName = splitFileNameAndExtension(name);\n return `${truncate(splitFileName.name, maxCharsCountInSpan)}.${splitFileName.extension}`;\n }\n\n return truncate(name, maxCharsCountInSpan);\n};\n\nconst calcTruncatedName = (\n textHelperRef: React.RefObject<TextWidthHelper | null>,\n fileNameElementRef: React.RefObject<HTMLSpanElement | null>,\n name: string,\n isTileView = false,\n) => {\n const fileNameWidth = textHelperRef.current?.getTextWidth() || 0;\n const fileNameElementWidth = isTileView\n ? // даем возможность занять 2 строки с погрешностью в 50%\n getDOMRect(fileNameElementRef.current).width * 1.5\n : getDOMRect(fileNameElementRef.current).width;\n\n return getTruncatedName(fileNameWidth, fileNameElementWidth, name, isTileView);\n};\n\nexport const FileUploaderFileDataTids = {\n file: 'FileUploader__file',\n fileTooltip: 'FileUploader__fileTooltip',\n fileName: 'FileUploader__fileName',\n fileSize: 'FileUploader__fileSize',\n fileIcon: 'FileUploader__fileIcon',\n fileTypeIcon: 'FileUploader__fileTypeIcon',\n} as const;\n\n/**\n * `FileUploaderFile` показывает одну строку файла внутри `FileUploader`: имя, тип, размер, статусы и удаление.\n */\nexport const FileUploaderFile = forwardRefAndName<HTMLDivElement, FileUploaderFileProps>(\n 'FileUploaderFile',\n (props, ref) => {\n const {\n file,\n showSize = false,\n previewImg,\n error,\n warning,\n multiple,\n disabled = false,\n hovered = false,\n focused = false,\n size,\n view = 'row',\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n onRemove,\n showFilenameHint: showFullFilename = true,\n fileTypeIcon,\n ...rest\n } = props;\n const { id, originalFile, status, validationResult } = file;\n const { name, size: fileSize } = originalFile;\n\n const [hoveredFile, setHoveredFile] = useState<boolean>(hovered || false);\n const [focusedByTab, setFocusedByTab] = useState(focused || false);\n const [truncatedFileName, setTruncatedFileName] = useState<Nullable<string>>(null);\n\n const textHelperRef = useRef<TextWidthHelper>(null);\n const fileNameElementRef = useRef<HTMLSpanElement>(null);\n\n const { langCode } = useContext(LocaleContext);\n const globalObject = useGlobal();\n\n const keyListener = useKeyListener();\n\n const isLoading = status === FileUploaderFileStatus.Loading;\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n const validationTooltipPositionByView = validationTooltipPosition || (isTileView ? 'top center' : 'top left');\n\n const formattedSize = useMemo(() => formatBytes(fileSize, 1, langCode), [fileSize, langCode]);\n\n useEffect(() => {\n const truncatedName = calcTruncatedName(textHelperRef, fileNameElementRef, name, isTileView);\n\n setTruncatedFileName(truncatedName);\n });\n\n const handleRemove = useCallback(\n (event: React.MouseEvent<HTMLElement>) => {\n event.preventDefault();\n event.stopPropagation();\n onRemove(id);\n },\n [id, onRemove],\n );\n\n const { isValid, message } = validationResult;\n\n const isError = file.status === FileUploaderFileStatus.Error || error;\n const isWarning = file.status === FileUploaderFileStatus.Warning || warning;\n const isInvalid = isError || !isValid;\n\n const sizeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.iconSmall,\n medium: jsViewStyles.iconMedium,\n large: jsViewStyles.iconLarge,\n });\n\n const renderTooltipContent = useCallback((): ReactNode => {\n return !isValid && !error && message ? message : null;\n }, [isValid, error, message]);\n\n const sizeNameBlockClass = useFileUploaderSize(size, {\n small: jsStyles.contentSmall,\n medium: jsStyles.contentMedium,\n large: jsStyles.contentLarge,\n });\n\n const sizeViewNameBlockClass = useFileUploaderSize(size, {\n small: jsViewStyles.contentSmall,\n medium: jsViewStyles.contentMedium,\n large: jsViewStyles.contentLarge,\n });\n\n const validationTextClassName = cx({\n [jsStyles.validationTextWarning]: isWarning,\n [jsStyles.validationTextError]: isError,\n });\n\n const contentClassNames = cx(jsStyles.content, jsViewStyles.content);\n const nameTextClassNames = cx(jsViewStyles.name, isTileView && !disabled && validationTextClassName);\n\n const handleMouseEnter = useCallback(() => {\n setHoveredFile(true);\n }, []);\n\n const handleMouseLeave = useCallback(() => {\n setHoveredFile(false);\n }, []);\n\n const handleFocus = useCallback(() => {\n // focus event fires before keyDown eventlistener\n // so we should check tabPressed in async way\n globalObject.requestAnimationFrame?.(() => {\n if (keyListener.isTabPressed) {\n setFocusedByTab(true);\n }\n });\n }, []);\n\n const handleBlur = useCallback(() => {\n setFocusedByTab(false);\n }, []);\n\n const handleIconKeyDown = useCallback(\n (e: React.KeyboardEvent<HTMLElement>) => {\n if (isKeyEnter(e)) {\n onRemove(id);\n }\n },\n [onRemove, id],\n );\n\n const iconClassNames = cx(jsStyles.icon, {\n [sizeIconClass]: true,\n [jsTileStyles.iconAction]: isTileView,\n [jsTileStyles.iconActionShow]: isTileView && !disabled && (hovered || hoveredFile || focused || focusedByTab),\n });\n\n const sizeClassName = useFileUploaderSize(size, {\n small: jsStyles.sizeSmall,\n medium: jsStyles.sizeMedium,\n large: jsStyles.sizeLarge,\n });\n\n const sizeClassNames = cx(\n jsStyles.size,\n sizeClassName,\n jsViewStyles.size,\n isTileView && (disabled || isLoading) && jsTileStyles.sizeDisabled,\n );\n\n const sizeFileTypeIconClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileTypeIconSmall,\n medium: jsViewStyles.fileTypeIconMedium,\n large: jsViewStyles.fileTypeIconLarge,\n });\n\n const isTruncated = truncatedFileName !== name;\n\n const fileTypeIconClassName = cx(\n sizeFileTypeIconClass,\n disabled && jsStyles.disabledFileTypeIconSvg,\n isTileView && {\n [jsTileStyles.fileTypeIcon]: true,\n [jsTileStyles.fileTypeIconPreview]: !!previewImg,\n [jsTileStyles.disabledFileTypeIcon]: disabled,\n [jsTileStyles.warningFileTypeIcon]: isWarning,\n [jsTileStyles.errorFileTypeIcon]: isError,\n },\n multiple && jsStyles.fileTypeIconMultiple,\n );\n\n const nameBlockClassNames = cx(\n sizeNameBlockClass,\n sizeViewNameBlockClass,\n jsStyles.nameBlock,\n (disabled || isLoading) && jsViewStyles.disabled,\n jsViewStyles.nameBlock,\n );\n\n const fileType: FileUploaderIconType = getFileUploaderTypeIcon(\n file.originalFile,\n isError,\n isWarning && !!withWarningIcon,\n );\n const icon =\n isTileView && isLoading ? (\n <LoadingIcon size={size} />\n ) : (\n (fileTypeIcon ?? <FileUploaderFileTypeIcon type={fileType} size={size} view={view} />)\n );\n\n const splitTruncatedFileName = truncatedFileName && splitFileNameAndExtension(truncatedFileName);\n\n return (\n <CommonWrapper {...rest}>\n <div\n data-tid={FileUploaderFileDataTids.file}\n className={jsStyles.root}\n onMouseEnter={handleMouseEnter}\n onMouseLeave={handleMouseLeave}\n ref={ref}\n >\n <Tooltip\n data-tid={FileUploaderFileDataTids.fileTooltip}\n pos={validationTooltipPositionByView}\n render={() => (withValidationTooltip || isTileView ? renderTooltipContent() : null)}\n >\n <div className={contentClassNames}>\n {\n <div\n data-tid={FileUploaderFileDataTids.fileTypeIcon}\n className={fileTypeIconClassName}\n style={previewImg ? { backgroundImage: `url(${previewImg})` } : undefined}\n >\n {(!isTileView || !previewImg) && icon}\n </div>\n }\n <div className={nameBlockClassNames}>\n <TextWidthHelper ref={textHelperRef} text={name} />\n <Hint maxWidth={'100%'} text={showFullFilename && isTruncated ? name : null}>\n <span\n data-tid={FileUploaderFileDataTids.fileName}\n ref={fileNameElementRef}\n className={nameTextClassNames}\n >\n {splitTruncatedFileName && (\n <>\n {splitTruncatedFileName.name}\n {splitTruncatedFileName.extension && <span>.{splitTruncatedFileName.extension}</span>}\n </>\n )}\n </span>\n </Hint>\n {!(withValidationTooltip || isTileView) && (\n <span className={validationTextClassName}>{renderTooltipContent()}</span>\n )}\n </div>\n {showSize && formattedSize && (\n <span data-tid={FileUploaderFileDataTids.fileSize} className={sizeClassNames}>\n {formattedSize}\n </span>\n )}\n <div\n className={iconClassNames}\n data-tid={FileUploaderFileDataTids.fileIcon}\n tabIndex={0}\n onClick={handleRemove}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onKeyDown={handleIconKeyDown}\n >\n <FileUploaderFileStatusIcon\n isTileView={isTileView}\n status={status}\n disabled={disabled}\n hovered={hovered || hoveredFile}\n focusedByTab={focused || focusedByTab}\n isInvalid={isInvalid}\n hasValidation={isError || isWarning}\n size={size}\n />\n </div>\n </div>\n </Tooltip>\n </div>\n </CommonWrapper>\n );\n },\n);\n"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export declare const fileWrapper: string;
|
|
2
|
+
export declare const fileWrapperFocus: string;
|
|
3
|
+
export declare const fileWrapperHover: string;
|
|
4
|
+
export declare const warningFile: string;
|
|
5
|
+
export declare const errorFile: string;
|
|
6
|
+
export declare const removeBorderTopRadius: string;
|
|
7
|
+
export declare const removeBorderBottomRadius: string;
|
|
8
|
+
export declare const summary: string;
|
|
9
|
+
export declare const summaryErrorText: string;
|
|
10
|
+
export declare const summaryWarningText: string;
|
|
11
|
+
export declare const summarySmall: string;
|
|
12
|
+
export declare const summaryMedium: string;
|
|
13
|
+
export declare const summaryLarge: string;
|
|
14
|
+
export declare const file: string;
|
|
15
|
+
export declare const fileListWrapper: string;
|
|
16
|
+
export declare const fileWrapperSmall: string;
|
|
17
|
+
export declare const fileWrapperMedium: string;
|
|
18
|
+
export declare const fileWrapperLarge: string;
|
|
19
|
+
export declare const errorFileFocus: string;
|
|
20
|
+
export declare const warningFileFocus: string;
|
|
21
|
+
export declare const tileFile: string;
|
|
22
|
+
export declare const tileFileListWrapper: string;
|
|
23
|
+
export declare const tileFileWrapperSmall: string;
|
|
24
|
+
export declare const tileFileWrapperMedium: string;
|
|
25
|
+
export declare const tileFileWrapperLarge: string;
|
|
26
|
+
export declare const tileErrorFileFocus: string;
|
|
27
|
+
export declare const tileWarningFileFocus: string;
|
|
28
|
+
export declare const jsStyles: {
|
|
29
|
+
fileWrapper: string;
|
|
30
|
+
fileWrapperFocus: string;
|
|
31
|
+
fileWrapperHover: string;
|
|
32
|
+
warningFile: string;
|
|
33
|
+
errorFile: string;
|
|
34
|
+
removeBorderTopRadius: string;
|
|
35
|
+
removeBorderBottomRadius: string;
|
|
36
|
+
summary: string;
|
|
37
|
+
summaryErrorText: string;
|
|
38
|
+
summaryWarningText: string;
|
|
39
|
+
summarySmall: string;
|
|
40
|
+
summaryMedium: string;
|
|
41
|
+
summaryLarge: string;
|
|
42
|
+
};
|
|
43
|
+
export declare const jsRowStyles: {
|
|
44
|
+
file: string;
|
|
45
|
+
fileListWrapper: string;
|
|
46
|
+
fileWrapperSmall: string;
|
|
47
|
+
fileWrapperMedium: string;
|
|
48
|
+
fileWrapperLarge: string;
|
|
49
|
+
errorFileFocus: string;
|
|
50
|
+
warningFileFocus: string;
|
|
51
|
+
};
|
|
52
|
+
export declare const jsTileStyles: {
|
|
53
|
+
file: string;
|
|
54
|
+
fileListWrapper: string;
|
|
55
|
+
fileWrapperSmall: string;
|
|
56
|
+
fileWrapperMedium: string;
|
|
57
|
+
fileWrapperLarge: string;
|
|
58
|
+
errorFileFocus: string;
|
|
59
|
+
warningFileFocus: string;
|
|
60
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
export var errorFile = 'react-ui-FileUploaderFileList__errorFile';
|
|
3
|
+
export var errorFileFocus = 'react-ui-FileUploaderFileList__errorFileFocus';
|
|
4
|
+
export var file = 'react-ui-FileUploaderFileList__file';
|
|
5
|
+
export var fileListWrapper = 'react-ui-FileUploaderFileList__fileListWrapper';
|
|
6
|
+
export var fileWrapper = 'react-ui-FileUploaderFileList__fileWrapper';
|
|
7
|
+
export var fileWrapperFocus = 'react-ui-FileUploaderFileList__fileWrapperFocus';
|
|
8
|
+
export var fileWrapperHover = 'react-ui-FileUploaderFileList__fileWrapperHover';
|
|
9
|
+
export var fileWrapperLarge = 'react-ui-FileUploaderFileList__fileWrapperLarge';
|
|
10
|
+
export var fileWrapperMedium = 'react-ui-FileUploaderFileList__fileWrapperMedium';
|
|
11
|
+
export var fileWrapperSmall = 'react-ui-FileUploaderFileList__fileWrapperSmall';
|
|
12
|
+
export var jsRowStyles = {file:'react-ui-FileUploaderFileList__file',fileListWrapper:'react-ui-FileUploaderFileList__fileListWrapper',fileWrapperSmall:'react-ui-FileUploaderFileList__fileWrapperSmall',fileWrapperMedium:'react-ui-FileUploaderFileList__fileWrapperMedium',fileWrapperLarge:'react-ui-FileUploaderFileList__fileWrapperLarge',errorFileFocus:'react-ui-FileUploaderFileList__errorFileFocus',warningFileFocus:'react-ui-FileUploaderFileList__warningFileFocus'};
|
|
13
|
+
export var jsStyles = {fileWrapper:'react-ui-FileUploaderFileList__fileWrapper',fileWrapperFocus:'react-ui-FileUploaderFileList__fileWrapperFocus',fileWrapperHover:'react-ui-FileUploaderFileList__fileWrapperHover',warningFile:'react-ui-FileUploaderFileList__warningFile',errorFile:'react-ui-FileUploaderFileList__errorFile',removeBorderTopRadius:'react-ui-FileUploaderFileList__removeBorderTopRadius',removeBorderBottomRadius:'react-ui-FileUploaderFileList__removeBorderBottomRadius',summary:'react-ui-FileUploaderFileList__summary',summaryErrorText:'react-ui-FileUploaderFileList__summaryErrorText',summaryWarningText:'react-ui-FileUploaderFileList__summaryWarningText',summarySmall:'react-ui-FileUploaderFileList__summarySmall',summaryMedium:'react-ui-FileUploaderFileList__summaryMedium',summaryLarge:'react-ui-FileUploaderFileList__summaryLarge'};
|
|
14
|
+
export var jsTileStyles = {file:'react-ui-FileUploaderFileList__file-2',fileListWrapper:'react-ui-FileUploaderFileList__fileListWrapper-2',fileWrapperSmall:'react-ui-FileUploaderFileList__fileWrapperSmall-2',fileWrapperMedium:'react-ui-FileUploaderFileList__fileWrapperMedium-2',fileWrapperLarge:'react-ui-FileUploaderFileList__fileWrapperLarge-2',errorFileFocus:'react-ui-FileUploaderFileList__errorFileFocus-2',warningFileFocus:'react-ui-FileUploaderFileList__warningFileFocus-2'};
|
|
15
|
+
export var removeBorderBottomRadius = 'react-ui-FileUploaderFileList__removeBorderBottomRadius';
|
|
16
|
+
export var removeBorderTopRadius = 'react-ui-FileUploaderFileList__removeBorderTopRadius';
|
|
17
|
+
export var summary = 'react-ui-FileUploaderFileList__summary';
|
|
18
|
+
export var summaryErrorText = 'react-ui-FileUploaderFileList__summaryErrorText';
|
|
19
|
+
export var summaryLarge = 'react-ui-FileUploaderFileList__summaryLarge';
|
|
20
|
+
export var summaryMedium = 'react-ui-FileUploaderFileList__summaryMedium';
|
|
21
|
+
export var summarySmall = 'react-ui-FileUploaderFileList__summarySmall';
|
|
22
|
+
export var summaryWarningText = 'react-ui-FileUploaderFileList__summaryWarningText';
|
|
23
|
+
export var tileErrorFileFocus = 'react-ui-FileUploaderFileList__errorFileFocus-2';
|
|
24
|
+
export var tileFile = 'react-ui-FileUploaderFileList__file-2';
|
|
25
|
+
export var tileFileListWrapper = 'react-ui-FileUploaderFileList__fileListWrapper-2';
|
|
26
|
+
export var tileFileWrapperLarge = 'react-ui-FileUploaderFileList__fileWrapperLarge-2';
|
|
27
|
+
export var tileFileWrapperMedium = 'react-ui-FileUploaderFileList__fileWrapperMedium-2';
|
|
28
|
+
export var tileFileWrapperSmall = 'react-ui-FileUploaderFileList__fileWrapperSmall-2';
|
|
29
|
+
export var tileWarningFileFocus = 'react-ui-FileUploaderFileList__warningFileFocus-2';
|
|
30
|
+
export var warningFile = 'react-ui-FileUploaderFileList__warningFile';
|
|
31
|
+
export var warningFileFocus = 'react-ui-FileUploaderFileList__warningFileFocus';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploaderFileList.css.js","sourceRoot":"","sources":["FileUploaderFileList.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,CAAC,EAAE,MAAM,iCAAiC,CAAC;AAEpD,MAAM,CAAC,IAAM,WAAW,GAAG,KAAK,CAAC;IAC/B,QAAQ,EAAE,UAAU;IACpB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,aAAa;IACrB,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,YAAY;IACvB,YAAY,EAAE,CAAC,CAAC,wBAAwB;IACxC,MAAM,EAAE,UAAG,CAAC,CAAC,uBAAuB,uBAAoB;IACxD,SAAS,EAAE,uBAAuB;IAClC,MAAM,EAAE,SAAS;CAClB,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,gBAAgB,GAAG,KAAK,CAAC;IACpC,MAAM,EAAE,UAAG,CAAC,CAAC,uBAAuB,oBAAU,CAAC,CAAC,4BAA4B,CAAE;IAC9E,SAAS,EAAE,oBAAa,CAAC,CAAC,4BAA4B,CAAE;CACzD,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,gBAAgB,GAAG,KAAK,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,qBAAqB;IACnC,WAAW,EAAE,CAAC,CAAC,8BAA8B;CAC9C,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,WAAW,GAAG,KAAK,CAAC;IAC/B,UAAU,EAAE,CAAC,CAAC,0BAA0B;IACxC,KAAK,EAAE,CAAC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,CAAC,wBAAwB;CACzC,CAAC,CAAC;AACH,WAAW,CAAC,UAAG,SAAS,aAAU,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC,wBAAwB,EAAE,CAAC,CAAC;AAEhF,WAAW,CAAC,UAAG,qBAAqB,aAAU,EAAE;IAC9C,oBAAoB,EAAE,CAAC;IACvB,mBAAmB,EAAE,CAAC;CACvB,CAAC,CAAC;AAEH,WAAW,CAAC,UAAG,wBAAwB,aAAU,EAAE;IACjD,uBAAuB,EAAE,CAAC;IAC1B,sBAAsB,EAAE,CAAC;CAC1B,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,QAAQ,GAAG;IACtB,WAAW,aAAA;IACX,gBAAgB,kBAAA;IAChB,gBAAgB,kBAAA;IAChB,WAAW,aAAA;IACX,SAAS,WAAA;IACT,qBAAqB,uBAAA;IACrB,wBAAwB,0BAAA;IACxB,OAAO,SAAA;IACP,gBAAgB,kBAAA;IAChB,kBAAkB,oBAAA;IAClB,YAAY,cAAA;IACZ,aAAa,eAAA;IACb,YAAY,cAAA;CACb,CAAC;AAEF,MAAM,CAAC,IAAM,WAAW,GAAG;IACzB,IAAI,MAAA;IACJ,eAAe,iBAAA;IACf,gBAAgB,kBAAA;IAChB,iBAAiB,mBAAA;IACjB,gBAAgB,kBAAA;IAChB,cAAc,gBAAA;IACd,gBAAgB,kBAAA;CACjB,CAAC;AAEF,MAAM,CAAC,IAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,QAAQ;IACd,eAAe,EAAE,mBAAmB;IACpC,gBAAgB,EAAE,oBAAoB;IACtC,iBAAiB,EAAE,qBAAqB;IACxC,gBAAgB,EAAE,oBAAoB;IACtC,cAAc,EAAE,kBAAkB;IAClC,gBAAgB,EAAE,oBAAoB;CACvC,CAAC","sourcesContent":["import { globalStyle, style } from '@vanilla-extract/css';\n\nimport { t } from '../../../lib/theming/vanilla.js';\n\nexport const fileWrapper = style({\n position: 'relative',\n width: '100%',\n height: 'max-content',\n display: 'flex',\n alignItems: 'center',\n boxSizing: 'border-box',\n borderRadius: t.fileUploaderBorderRadius,\n border: `${t.fileUploaderBorderWidth} solid transparent`,\n boxShadow: '0 0 0 1px transparent',\n cursor: 'pointer',\n});\n\nexport const fileWrapperFocus = style({\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorFocus}`,\n boxShadow: `0 0 0 1px ${t.fileUploaderBorderColorFocus}`,\n});\n\nexport const fileWrapperHover = style({\n background: t.fileUploaderHoveredBg,\n borderColor: t.fileUploaderHoveredBorderColor,\n});\n\nexport const warningFile = style({\n background: t.fileUploaderWarningBgColor,\n color: t.fileUploaderValidationTextColor,\n});\n\nexport const errorFile = style({\n background: t.fileUploaderErrorBgColor,\n color: t.fileUploaderValidationTextColor,\n});\n\nexport const removeBorderTopRadius = style({\n borderTopRightRadius: 0,\n borderTopLeftRadius: 0,\n});\n\nexport const removeBorderBottomRadius = style({\n borderBottomRightRadius: 0,\n borderBottomLeftRadius: 0,\n});\n\nexport const summary = style({\n display: 'flex',\n borderBottom: `1px solid ${t.tabColorHover}`,\n marginBottom: t.fileUploaderListGap,\n order: -1,\n width: '100%',\n boxSizing: 'border-box',\n});\n\nexport const summaryErrorText = style({\n color: t.fileUploaderErrorTextColor,\n marginRight: t.fileUploaderListSummaryTextGap,\n});\n\nexport const summaryWarningText = style({ color: t.fileUploaderWarningTextColor });\n\nexport const summarySmall = style({\n fontSize: t.fileUploaderFontSizeSmall,\n lineHeight: t.fileUploaderLineHeightSmall,\n padding: `${t.fileUploaderPaddingYSmall} ${t.fileUploaderPaddingXSmall}`,\n});\n\nexport const summaryMedium = style({\n fontSize: t.fileUploaderFontSizeMedium,\n lineHeight: t.fileUploaderLineHeightMedium,\n padding: `${t.fileUploaderPaddingYMedium} ${t.fileUploaderPaddingXMedium}`,\n});\n\nexport const summaryLarge = style({\n fontSize: t.fileUploaderFontSizeLarge,\n lineHeight: t.fileUploaderLineHeightLarge,\n padding: `${t.fileUploaderPaddingYLarge} ${t.fileUploaderPaddingXLarge}`,\n});\n\n// ---------- строки (getJsRowStyles) ----------\n\nexport const file = style({ width: '100%' });\n\nexport const fileListWrapper = style({\n display: 'block',\n width: '100%',\n marginTop: t.fileUploaderListGap,\n});\n\nexport const fileWrapperSmall = style({\n padding: `${t.fileUploaderPaddingYSmall} ${t.fileUploaderPaddingXSmall}`,\n});\n\nexport const fileWrapperMedium = style({\n padding: `${t.fileUploaderPaddingYMedium} ${t.fileUploaderPaddingXMedium}`,\n});\n\nexport const fileWrapperLarge = style({\n padding: `${t.fileUploaderPaddingYLarge} ${t.fileUploaderPaddingXLarge}`,\n});\n\nexport const errorFileFocus = style({\n background: t.fileUploaderErrorBgHoverColor,\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError}`,\n borderRadius: `${t.fileUploaderBorderRadius} !important`,\n boxShadow: `0 0 0 1px ${t.fileUploaderBorderColorError}`,\n});\n\nexport const warningFileFocus = style({\n background: t.fileUploaderWarningBgHoverColor,\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning}`,\n borderRadius: `${t.fileUploaderBorderRadius} !important`,\n boxShadow: `0 0 0 1px ${t.fileUploaderBorderColorWarning}`,\n});\n\n// ---------- плитки (getJsTileStyles): одноимённые классы получают суффикс, как раньше ----------\n\nexport const tileFile = style({ width: '100%', height: '100%' }, 'file-2');\n\nexport const tileFileListWrapper = style({ display: 'contents' }, 'fileListWrapper-2');\n\nexport const tileFileWrapperSmall = style(\n {\n padding: t.fileUploaderTileFilePaddingSmall,\n width: t.fileUploaderTileWidthSmall,\n },\n 'fileWrapperSmall-2',\n);\n\nexport const tileFileWrapperMedium = style(\n {\n padding: t.fileUploaderTileFilePaddingMedium,\n width: t.fileUploaderTileWidthMedium,\n height: t.fileUploaderTileHeightMedium,\n },\n 'fileWrapperMedium-2',\n);\n\nexport const tileFileWrapperLarge = style(\n {\n padding: t.fileUploaderTileFilePaddingLarge,\n width: t.fileUploaderTileWidthLarge,\n height: t.fileUploaderTileHeightLarge,\n },\n 'fileWrapperLarge-2',\n);\n\nexport const tileErrorFileFocus = style(\n {\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError}`,\n borderRadius: `${t.fileUploaderBorderRadius} !important`,\n boxShadow: `0 0 0 1px ${t.fileUploaderBorderColorError}`,\n },\n 'errorFileFocus-2',\n);\n\nexport const tileWarningFileFocus = style(\n {\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning}`,\n borderRadius: `${t.fileUploaderBorderRadius} !important`,\n boxShadow: `0 0 0 1px ${t.fileUploaderBorderColorWarning}`,\n },\n 'warningFileFocus-2',\n);\n\n// вложенные правила — после баз всех классов файла, как было в склеенном CSS Emotion\nglobalStyle(`${fileWrapper}::before`, {\n position: 'absolute',\n content: \"' '\",\n width: '100%',\n height: '100%',\n borderRadius: t.fileUploaderBorderRadius,\n border: `${t.fileUploaderBorderWidth} solid transparent`,\n boxShadow: '0 0 0 1px transparent',\n top: -1,\n left: -1,\n zIndex: -1,\n});\n\nglobalStyle(`${warningFile}:hover`, {\n background: t.fileUploaderWarningBgHoverColor,\n borderRadius: t.fileUploaderBorderRadius,\n});\nglobalStyle(`${warningFile}::before`, { background: t.fileUploaderWarningBgColor });\n\nglobalStyle(`${errorFile}:hover`, {\n background: t.fileUploaderErrorBgHoverColor,\n borderRadius: t.fileUploaderBorderRadius,\n});\nglobalStyle(`${errorFile}::before`, { background: t.fileUploaderErrorBgColor });\n\nglobalStyle(`${removeBorderTopRadius}::before`, {\n borderTopRightRadius: 0,\n borderTopLeftRadius: 0,\n});\n\nglobalStyle(`${removeBorderBottomRadius}::before`, {\n borderBottomRightRadius: 0,\n borderBottomLeftRadius: 0,\n});\n\nexport const jsStyles = {\n fileWrapper,\n fileWrapperFocus,\n fileWrapperHover,\n warningFile,\n errorFile,\n removeBorderTopRadius,\n removeBorderBottomRadius,\n summary,\n summaryErrorText,\n summaryWarningText,\n summarySmall,\n summaryMedium,\n summaryLarge,\n};\n\nexport const jsRowStyles = {\n file,\n fileListWrapper,\n fileWrapperSmall,\n fileWrapperMedium,\n fileWrapperLarge,\n errorFileFocus,\n warningFileFocus,\n};\n\nexport const jsTileStyles = {\n file: tileFile,\n fileListWrapper: tileFileListWrapper,\n fileWrapperSmall: tileFileWrapperSmall,\n fileWrapperMedium: tileFileWrapperMedium,\n fileWrapperLarge: tileFileWrapperLarge,\n errorFileFocus: tileErrorFileFocus,\n warningFileFocus: tileWarningFileFocus,\n};\n"]}
|