@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
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export declare const globalClasses: {
|
|
2
|
+
afterLinkText: string;
|
|
3
|
+
};
|
|
4
|
+
export declare const root: string;
|
|
5
|
+
export declare const uploadButton: string;
|
|
6
|
+
export declare const uploadButtonWithFile: string;
|
|
7
|
+
export declare const uploadButtonIconGapSmall: string;
|
|
8
|
+
export declare const uploadButtonIconGapMedium: string;
|
|
9
|
+
export declare const uploadButtonIconGapLarge: string;
|
|
10
|
+
export declare const dragOver: string;
|
|
11
|
+
export declare const windowDragOver: string;
|
|
12
|
+
export declare const contentInnerSmall: string;
|
|
13
|
+
export declare const contentInnerMedium: string;
|
|
14
|
+
export declare const contentInnerLarge: string;
|
|
15
|
+
export declare const visuallyHidden: string;
|
|
16
|
+
export declare const afterLinkText: string;
|
|
17
|
+
export declare const afterLinkText_HasFiles: string;
|
|
18
|
+
export declare const linkHovered: string;
|
|
19
|
+
export declare const icon: string;
|
|
20
|
+
export declare const iconDisabled: string;
|
|
21
|
+
export declare const link: string;
|
|
22
|
+
export declare const linkDisabled: string;
|
|
23
|
+
export declare const singleFile: string;
|
|
24
|
+
export declare const iconSmall: string;
|
|
25
|
+
export declare const iconMedium: string;
|
|
26
|
+
export declare const iconLarge: string;
|
|
27
|
+
export declare const rowRoot: string;
|
|
28
|
+
export declare const rowUploadButton: string;
|
|
29
|
+
export declare const uploadButtonWrapper: string;
|
|
30
|
+
export declare const sizeSmall: string;
|
|
31
|
+
export declare const sizeMedium: string;
|
|
32
|
+
export declare const sizeLarge: string;
|
|
33
|
+
export declare const content: string;
|
|
34
|
+
export declare const contentWithFiles: string;
|
|
35
|
+
export declare const tileUploadButton: string;
|
|
36
|
+
export declare const tileUploadButtonWrapper: string;
|
|
37
|
+
export declare const uploadButtonWrapperSmall: string;
|
|
38
|
+
export declare const uploadButtonWrapperMedium: string;
|
|
39
|
+
export declare const uploadButtonWrapperLarge: string;
|
|
40
|
+
export declare const uploadButtonWrapperEmptyFileSmall: string;
|
|
41
|
+
export declare const uploadButtonWrapperEmptyFileMedium: string;
|
|
42
|
+
export declare const uploadButtonWrapperEmptyFileLarge: string;
|
|
43
|
+
export declare const tileUploadButtonWithFile: string;
|
|
44
|
+
export declare const tileUploadButtonIconGapSmall: string;
|
|
45
|
+
export declare const tileUploadButtonIconGapMedium: string;
|
|
46
|
+
export declare const tileUploadButtonIconGapLarge: string;
|
|
47
|
+
export declare const tileSizeSmall: string;
|
|
48
|
+
export declare const tileSizeMedium: string;
|
|
49
|
+
export declare const tileSizeLarge: string;
|
|
50
|
+
export declare const tileContent: string;
|
|
51
|
+
export declare const tileContentWithFiles: string;
|
|
52
|
+
export declare const uploadButtonFocus: string;
|
|
53
|
+
export declare const disabled: string;
|
|
54
|
+
export declare const disabledBackground: string;
|
|
55
|
+
export declare const warningButton: string;
|
|
56
|
+
export declare const errorButton: string;
|
|
57
|
+
export declare const uploadButtonTileWithFileSmall: string;
|
|
58
|
+
export declare const uploadButtonTileWithFileMedium: string;
|
|
59
|
+
export declare const uploadButtonTileWithFileLarge: string;
|
|
60
|
+
export declare const verticalAlign: string;
|
|
61
|
+
export declare const warningFile: string;
|
|
62
|
+
export declare const errorFile: string;
|
|
63
|
+
export declare const hovered: string;
|
|
64
|
+
export declare const jsStyles: {
|
|
65
|
+
root: string;
|
|
66
|
+
uploadButton: string;
|
|
67
|
+
uploadButtonFocus: string;
|
|
68
|
+
uploadButtonWithFile: string;
|
|
69
|
+
uploadButtonIconGapSmall: string;
|
|
70
|
+
uploadButtonIconGapMedium: string;
|
|
71
|
+
uploadButtonIconGapLarge: string;
|
|
72
|
+
dragOver: string;
|
|
73
|
+
windowDragOver: string;
|
|
74
|
+
contentInnerSmall: string;
|
|
75
|
+
contentInnerMedium: string;
|
|
76
|
+
contentInnerLarge: string;
|
|
77
|
+
visuallyHidden: string;
|
|
78
|
+
afterLinkText: string;
|
|
79
|
+
afterLinkText_HasFiles: string;
|
|
80
|
+
warningButton: string;
|
|
81
|
+
warningFile: string;
|
|
82
|
+
errorButton: string;
|
|
83
|
+
errorFile: string;
|
|
84
|
+
hovered: string;
|
|
85
|
+
linkHovered: string;
|
|
86
|
+
disabled: string;
|
|
87
|
+
disabledBackground: string;
|
|
88
|
+
icon: string;
|
|
89
|
+
iconDisabled: string;
|
|
90
|
+
link: string;
|
|
91
|
+
linkDisabled: string;
|
|
92
|
+
singleFile: string;
|
|
93
|
+
iconSmall: string;
|
|
94
|
+
iconMedium: string;
|
|
95
|
+
iconLarge: string;
|
|
96
|
+
};
|
|
97
|
+
export declare const jsRowStyles: {
|
|
98
|
+
root: string;
|
|
99
|
+
uploadButtonWithFile: string;
|
|
100
|
+
uploadButton: string;
|
|
101
|
+
uploadButtonWrapper: string;
|
|
102
|
+
uploadButtonIconGapSmall: string;
|
|
103
|
+
uploadButtonIconGapMedium: string;
|
|
104
|
+
uploadButtonIconGapLarge: string;
|
|
105
|
+
sizeSmall: string;
|
|
106
|
+
sizeMedium: string;
|
|
107
|
+
sizeLarge: string;
|
|
108
|
+
content: string;
|
|
109
|
+
contentWithFiles: string;
|
|
110
|
+
};
|
|
111
|
+
export declare const jsTileStyles: {
|
|
112
|
+
uploadButton: string;
|
|
113
|
+
uploadButtonWrapper: string;
|
|
114
|
+
uploadButtonWrapperSmall: string;
|
|
115
|
+
uploadButtonWrapperMedium: string;
|
|
116
|
+
uploadButtonWrapperLarge: string;
|
|
117
|
+
uploadButtonWrapperEmptyFileSmall: string;
|
|
118
|
+
uploadButtonWrapperEmptyFileMedium: string;
|
|
119
|
+
uploadButtonWrapperEmptyFileLarge: string;
|
|
120
|
+
uploadButtonWithFile: string;
|
|
121
|
+
uploadButtonIconGapSmall: string;
|
|
122
|
+
uploadButtonIconGapMedium: string;
|
|
123
|
+
uploadButtonIconGapLarge: string;
|
|
124
|
+
uploadButtonTileWithFileSmall: string;
|
|
125
|
+
uploadButtonTileWithFileMedium: string;
|
|
126
|
+
uploadButtonTileWithFileLarge: string;
|
|
127
|
+
sizeSmall: string;
|
|
128
|
+
sizeMedium: string;
|
|
129
|
+
sizeLarge: string;
|
|
130
|
+
verticalAlign: string;
|
|
131
|
+
content: string;
|
|
132
|
+
contentWithFiles: string;
|
|
133
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
|
|
2
|
+
export var afterLinkText = 'react-ui-FileUploader__afterLinkText';
|
|
3
|
+
export var afterLinkText_HasFiles = 'react-ui-FileUploader__afterLinkText_HasFiles';
|
|
4
|
+
export var content = 'react-ui-FileUploader__content';
|
|
5
|
+
export var contentInnerLarge = 'react-ui-FileUploader__contentInnerLarge';
|
|
6
|
+
export var contentInnerMedium = 'react-ui-FileUploader__contentInnerMedium';
|
|
7
|
+
export var contentInnerSmall = 'react-ui-FileUploader__contentInnerSmall';
|
|
8
|
+
export var contentWithFiles = 'react-ui-FileUploader__contentWithFiles';
|
|
9
|
+
export var disabled = 'react-ui-FileUploader__disabled';
|
|
10
|
+
export var disabledBackground = 'react-ui-FileUploader__disabledBackground';
|
|
11
|
+
export var dragOver = 'react-ui-FileUploader__dragOver';
|
|
12
|
+
export var errorButton = 'react-ui-FileUploader__errorButton';
|
|
13
|
+
export var errorFile = 'react-ui-FileUploader__errorFile';
|
|
14
|
+
export var globalClasses = {afterLinkText:'react-ui-file-uploader-after-link-text'};
|
|
15
|
+
export var hovered = 'react-ui-FileUploader__hovered';
|
|
16
|
+
export var icon = 'react-ui-FileUploader__icon';
|
|
17
|
+
export var iconDisabled = 'react-ui-FileUploader__iconDisabled';
|
|
18
|
+
export var iconLarge = 'react-ui-FileUploader__iconLarge';
|
|
19
|
+
export var iconMedium = 'react-ui-FileUploader__iconMedium';
|
|
20
|
+
export var iconSmall = 'react-ui-FileUploader__iconSmall';
|
|
21
|
+
export var jsRowStyles = {root:'react-ui-FileUploader__root-2',uploadButtonWithFile:'react-ui-FileUploader__uploadButtonWithFile',uploadButton:'react-ui-FileUploader__uploadButton-2',uploadButtonWrapper:'react-ui-FileUploader__uploadButtonWrapper',uploadButtonIconGapSmall:'react-ui-FileUploader__uploadButtonIconGapSmall',uploadButtonIconGapMedium:'react-ui-FileUploader__uploadButtonIconGapMedium',uploadButtonIconGapLarge:'react-ui-FileUploader__uploadButtonIconGapLarge',sizeSmall:'react-ui-FileUploader__sizeSmall',sizeMedium:'react-ui-FileUploader__sizeMedium',sizeLarge:'react-ui-FileUploader__sizeLarge',content:'react-ui-FileUploader__content',contentWithFiles:'react-ui-FileUploader__contentWithFiles'};
|
|
22
|
+
export var jsStyles = {root:'react-ui-FileUploader__root',uploadButton:'react-ui-FileUploader__uploadButton',uploadButtonFocus:'react-ui-FileUploader__uploadButtonFocus',uploadButtonWithFile:'react-ui-FileUploader__uploadButtonWithFile',uploadButtonIconGapSmall:'react-ui-FileUploader__uploadButtonIconGapSmall',uploadButtonIconGapMedium:'react-ui-FileUploader__uploadButtonIconGapMedium',uploadButtonIconGapLarge:'react-ui-FileUploader__uploadButtonIconGapLarge',dragOver:'react-ui-FileUploader__dragOver',windowDragOver:'react-ui-FileUploader__windowDragOver',contentInnerSmall:'react-ui-FileUploader__contentInnerSmall',contentInnerMedium:'react-ui-FileUploader__contentInnerMedium',contentInnerLarge:'react-ui-FileUploader__contentInnerLarge',visuallyHidden:'react-ui-FileUploader__visuallyHidden',afterLinkText:'react-ui-FileUploader__afterLinkText',afterLinkText_HasFiles:'react-ui-FileUploader__afterLinkText_HasFiles',warningButton:'react-ui-FileUploader__warningButton',warningFile:'react-ui-FileUploader__warningFile',errorButton:'react-ui-FileUploader__errorButton',errorFile:'react-ui-FileUploader__errorFile',hovered:'react-ui-FileUploader__hovered',linkHovered:'react-ui-FileUploader__linkHovered',disabled:'react-ui-FileUploader__disabled',disabledBackground:'react-ui-FileUploader__disabledBackground',icon:'react-ui-FileUploader__icon',iconDisabled:'react-ui-FileUploader__iconDisabled',link:'react-ui-FileUploader__link',linkDisabled:'react-ui-FileUploader__linkDisabled',singleFile:'react-ui-FileUploader__singleFile',iconSmall:'react-ui-FileUploader__iconSmall',iconMedium:'react-ui-FileUploader__iconMedium',iconLarge:'react-ui-FileUploader__iconLarge'};
|
|
23
|
+
export var jsTileStyles = {uploadButton:'react-ui-FileUploader__uploadButton-3',uploadButtonWrapper:'react-ui-FileUploader__uploadButtonWrapper-2',uploadButtonWrapperSmall:'react-ui-FileUploader__uploadButtonWrapperSmall',uploadButtonWrapperMedium:'react-ui-FileUploader__uploadButtonWrapperMedium',uploadButtonWrapperLarge:'react-ui-FileUploader__uploadButtonWrapperLarge',uploadButtonWrapperEmptyFileSmall:'react-ui-FileUploader__uploadButtonWrapperEmptyFileSmall',uploadButtonWrapperEmptyFileMedium:'react-ui-FileUploader__uploadButtonWrapperEmptyFileMedium',uploadButtonWrapperEmptyFileLarge:'react-ui-FileUploader__uploadButtonWrapperEmptyFileLarge',uploadButtonWithFile:'react-ui-FileUploader__uploadButtonWithFile-2',uploadButtonIconGapSmall:'react-ui-FileUploader__uploadButtonIconGapSmall-2',uploadButtonIconGapMedium:'react-ui-FileUploader__uploadButtonIconGapMedium-2',uploadButtonIconGapLarge:'react-ui-FileUploader__uploadButtonIconGapLarge-2',uploadButtonTileWithFileSmall:'react-ui-FileUploader__uploadButtonTileWithFileSmall',uploadButtonTileWithFileMedium:'react-ui-FileUploader__uploadButtonTileWithFileMedium',uploadButtonTileWithFileLarge:'react-ui-FileUploader__uploadButtonTileWithFileLarge',sizeSmall:'react-ui-FileUploader__sizeSmall-2',sizeMedium:'react-ui-FileUploader__sizeMedium-2',sizeLarge:'react-ui-FileUploader__sizeLarge-2',verticalAlign:'react-ui-FileUploader__verticalAlign',content:'react-ui-FileUploader__content-2',contentWithFiles:'react-ui-FileUploader__contentWithFiles-2'};
|
|
24
|
+
export var link = 'react-ui-FileUploader__link';
|
|
25
|
+
export var linkDisabled = 'react-ui-FileUploader__linkDisabled';
|
|
26
|
+
export var linkHovered = 'react-ui-FileUploader__linkHovered';
|
|
27
|
+
export var root = 'react-ui-FileUploader__root';
|
|
28
|
+
export var rowRoot = 'react-ui-FileUploader__root-2';
|
|
29
|
+
export var rowUploadButton = 'react-ui-FileUploader__uploadButton-2';
|
|
30
|
+
export var singleFile = 'react-ui-FileUploader__singleFile';
|
|
31
|
+
export var sizeLarge = 'react-ui-FileUploader__sizeLarge';
|
|
32
|
+
export var sizeMedium = 'react-ui-FileUploader__sizeMedium';
|
|
33
|
+
export var sizeSmall = 'react-ui-FileUploader__sizeSmall';
|
|
34
|
+
export var tileContent = 'react-ui-FileUploader__content-2';
|
|
35
|
+
export var tileContentWithFiles = 'react-ui-FileUploader__contentWithFiles-2';
|
|
36
|
+
export var tileSizeLarge = 'react-ui-FileUploader__sizeLarge-2';
|
|
37
|
+
export var tileSizeMedium = 'react-ui-FileUploader__sizeMedium-2';
|
|
38
|
+
export var tileSizeSmall = 'react-ui-FileUploader__sizeSmall-2';
|
|
39
|
+
export var tileUploadButton = 'react-ui-FileUploader__uploadButton-3';
|
|
40
|
+
export var tileUploadButtonIconGapLarge = 'react-ui-FileUploader__uploadButtonIconGapLarge-2';
|
|
41
|
+
export var tileUploadButtonIconGapMedium = 'react-ui-FileUploader__uploadButtonIconGapMedium-2';
|
|
42
|
+
export var tileUploadButtonIconGapSmall = 'react-ui-FileUploader__uploadButtonIconGapSmall-2';
|
|
43
|
+
export var tileUploadButtonWithFile = 'react-ui-FileUploader__uploadButtonWithFile-2';
|
|
44
|
+
export var tileUploadButtonWrapper = 'react-ui-FileUploader__uploadButtonWrapper-2';
|
|
45
|
+
export var uploadButton = 'react-ui-FileUploader__uploadButton';
|
|
46
|
+
export var uploadButtonFocus = 'react-ui-FileUploader__uploadButtonFocus';
|
|
47
|
+
export var uploadButtonIconGapLarge = 'react-ui-FileUploader__uploadButtonIconGapLarge';
|
|
48
|
+
export var uploadButtonIconGapMedium = 'react-ui-FileUploader__uploadButtonIconGapMedium';
|
|
49
|
+
export var uploadButtonIconGapSmall = 'react-ui-FileUploader__uploadButtonIconGapSmall';
|
|
50
|
+
export var uploadButtonTileWithFileLarge = 'react-ui-FileUploader__uploadButtonTileWithFileLarge';
|
|
51
|
+
export var uploadButtonTileWithFileMedium = 'react-ui-FileUploader__uploadButtonTileWithFileMedium';
|
|
52
|
+
export var uploadButtonTileWithFileSmall = 'react-ui-FileUploader__uploadButtonTileWithFileSmall';
|
|
53
|
+
export var uploadButtonWithFile = 'react-ui-FileUploader__uploadButtonWithFile';
|
|
54
|
+
export var uploadButtonWrapper = 'react-ui-FileUploader__uploadButtonWrapper';
|
|
55
|
+
export var uploadButtonWrapperEmptyFileLarge = 'react-ui-FileUploader__uploadButtonWrapperEmptyFileLarge';
|
|
56
|
+
export var uploadButtonWrapperEmptyFileMedium = 'react-ui-FileUploader__uploadButtonWrapperEmptyFileMedium';
|
|
57
|
+
export var uploadButtonWrapperEmptyFileSmall = 'react-ui-FileUploader__uploadButtonWrapperEmptyFileSmall';
|
|
58
|
+
export var uploadButtonWrapperLarge = 'react-ui-FileUploader__uploadButtonWrapperLarge';
|
|
59
|
+
export var uploadButtonWrapperMedium = 'react-ui-FileUploader__uploadButtonWrapperMedium';
|
|
60
|
+
export var uploadButtonWrapperSmall = 'react-ui-FileUploader__uploadButtonWrapperSmall';
|
|
61
|
+
export var verticalAlign = 'react-ui-FileUploader__verticalAlign';
|
|
62
|
+
export var visuallyHidden = 'react-ui-FileUploader__visuallyHidden';
|
|
63
|
+
export var warningButton = 'react-ui-FileUploader__warningButton';
|
|
64
|
+
export var warningFile = 'react-ui-FileUploader__warningFile';
|
|
65
|
+
export var windowDragOver = 'react-ui-FileUploader__windowDragOver';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploader.css.js","sourceRoot":"","sources":["FileUploader.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAErE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,CAAC,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAEjE,MAAM,CAAC,IAAM,aAAa,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;IACnD,aAAa,EAAE,iBAAiB;CACjC,CAAC,CAAC;AAEH,IAAM,KAAK,GAAG,SAAS,CAAC;IACtB,IAAI,EAAE,EAAE,SAAS,EAAE,oBAAa,CAAC,CAAC,eAAe,CAAE,EAAE;IACrD,KAAK,EAAE,EAAE,SAAS,EAAE,qBAAc,CAAC,CAAC,eAAe,CAAE,EAAE;IACvD,MAAM,EAAE,EAAE,SAAS,EAAE,oBAAa,CAAC,CAAC,eAAe,CAAE,EAAE;CACxD,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,IAAI,GAAG,KAAK,CAAC;IACxB,OAAO,EAAE,aAAa;IACtB,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,UAAU;IACpB,YAAY,EAAE,CAAC,CAAC,wBAAwB;IACxC,UAAU,EAAE,CAAC,CAAC,2BAA2B;IACzC,QAAQ,EAAE,CAAC,CAAC,yBAAyB;IACrC,KAAK,EAAE,CAAC,CAAC,4BAA4B;CACtC,CAAC,CAAC;AAEH,MAAM,CAAC,IAAM,YAAY,GAAG,KAAK,CAAC;IAChC,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,aAAa;IACtB,UAA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IAC7B,8BAA8B,gCAAA;IAC9B,6BAA6B,+BAAA;IAC7B,SAAS,EAAE,aAAa;IACxB,UAAU,EAAE,cAAc;IAC1B,SAAS,EAAE,aAAa;IACxB,aAAa,eAAA;IACb,OAAO,EAAE,WAAW;IACpB,gBAAgB,EAAE,oBAAoB;CACvC,CAAC","sourcesContent":["import { globalStyle, keyframes, style } from '@vanilla-extract/css';\n\nimport { prefix } from '../../lib/prefix.js';\nimport { t, whenThemeSets } from '../../lib/theming/vanilla.js';\nimport { fileUploaderSizeMixin } from './FileUploader.mixins.js';\n\nexport const globalClasses = prefix('file-uploader')({\n afterLinkText: 'after-link-text',\n});\n\nconst pulse = keyframes({\n '0%': { boxShadow: `0 0 0 1px ${t.inputBlinkColor}` },\n '95%': { boxShadow: `0 0 0 10px ${t.inputBlinkColor}` },\n '100%': { boxShadow: `0 0 0 1px ${t.inputBlinkColor}` },\n});\n\nexport const root = style({\n display: 'inline-flex',\n flexWrap: 'wrap',\n position: 'relative',\n borderRadius: t.fileUploaderBorderRadius,\n lineHeight: t.fileUploaderLineHeightSmall,\n fontSize: t.fileUploaderFontSizeSmall,\n color: t.fileUploaderTextColorDefault,\n});\n\nexport const uploadButton = style({\n width: '100%',\n position: 'relative',\n display: 'inline-flex',\n alignItems: 'center',\n border: `${t.fileUploaderBorderWidth} ${t.fileUploaderBorderStyle} ${t.fileUploaderBorderColor}`,\n boxSizing: 'border-box',\n borderRadius: t.fileUploaderBorderRadius,\n outline: 'none',\n cursor: 'pointer',\n transition: [\n `background-color ${t.transitionDuration} ${t.transitionTimingFunction}`,\n `border-color ${t.transitionDuration} ${t.transitionTimingFunction}`,\n ].join(','),\n backgroundColor: t.fileUploaderUploadButtonBg,\n});\n\n// одинаковые стили у строки: Emotion отдавал ей эти же классы\nexport const uploadButtonWithFile = style({\n border: `${t.fileUploaderBorderWidth} solid transparent`,\n background: 'none',\n});\n\nexport const uploadButtonIconGapSmall = style({ marginRight: t.inputIconGapSmall });\n\nexport const uploadButtonIconGapMedium = style({ marginRight: t.inputIconGapMedium });\n\nexport const uploadButtonIconGapLarge = style({ marginRight: t.inputIconGapLarge });\n\nexport const dragOver = style({\n border: `1px solid ${t.fileUploaderDragOverBorderColor}`,\n borderRadius: t.fileUploaderBorderRadius,\n boxShadow: t.fileUploaderDragOverShadow,\n});\n\nexport const windowDragOver = style({\n borderRadius: t.fileUploaderBorderRadius,\n animation: `${pulse} 1.5s infinite`,\n});\n\nexport const contentInnerSmall = style({\n width: `calc(100% - ${t.inputIconSizeSmall} - ${t.fileUploaderIconGapSmall})`,\n});\n\nexport const contentInnerMedium = style({\n width: `calc(100% - ${t.inputIconSizeMedium} - ${t.fileUploaderIconGapMedium})`,\n});\n\nexport const contentInnerLarge = style({\n width: `calc(100% - ${t.inputIconSizeLarge} - ${t.fileUploaderIconGapLarge})`,\n});\n\nexport const visuallyHidden = style({\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n border: 0,\n padding: 0,\n whiteSpace: 'nowrap',\n clipPath: 'inset(100%)',\n clip: 'rect(0 0 0 0)',\n overflow: 'hidden',\n});\n\nexport const afterLinkText = style({ display: 'inline' });\n\nexport const afterLinkText_HasFiles = style({\n display: 'flex',\n justifyContent: 'space-between',\n flex: '1 1 auto',\n height: '100%',\n});\n\nexport const linkHovered = style({ textDecoration: t.fileUploaderLinkHoverTextDecoration });\n\nexport const icon = style({\n display: 'inline-block',\n color: t.fileUploaderIconColor,\n});\n\nexport const iconDisabled = style({ color: t.fileUploaderDisabledIconColor });\n\nexport const link = style({\n outline: 'none',\n textDecoration: 'none',\n color: t.fileUploaderLinkColor,\n});\n\nexport const linkDisabled = style({ color: t.fileUploaderDisabledLinkColor });\n\nexport const singleFile = style({\n width: '100%',\n height: 'inherit',\n});\n\nexport const iconSmall = style({\n fontSize: t.fileUploaderFontSizeSmall,\n lineHeight: t.fileUploaderLineHeightSmall,\n});\n\nexport const iconMedium = style({\n fontSize: t.fileUploaderFontSizeMedium,\n lineHeight: t.fileUploaderLineHeightMedium,\n});\n\nexport const iconLarge = style({\n fontSize: t.fileUploaderFontSizeLarge,\n lineHeight: t.fileUploaderLineHeightLarge,\n});\n\n// ---------- строки (getJsRowStyles): одноимённые классы получают суффикс, как раньше ----------\n\nexport const rowRoot = style({ width: '100%' }, 'root-2');\n\nexport const rowUploadButton = style({ justifyContent: 'space-between' }, 'uploadButton-2');\n\nexport const uploadButtonWrapper = style({\n height: 'inherit',\n width: '100%',\n});\n\nexport const sizeSmall = style(\n fileUploaderSizeMixin(\n t.fileUploaderFontSizeSmall,\n t.fileUploaderLineHeightSmall,\n t.fileUploaderPaddingXSmall,\n t.fileUploaderPaddingYSmall,\n ),\n);\n\nexport const sizeMedium = style(\n fileUploaderSizeMixin(\n t.fileUploaderFontSizeMedium,\n t.fileUploaderLineHeightMedium,\n t.fileUploaderPaddingXMedium,\n t.fileUploaderPaddingYMedium,\n ),\n);\n\nexport const sizeLarge = style(\n fileUploaderSizeMixin(\n t.fileUploaderFontSizeLarge,\n t.fileUploaderLineHeightLarge,\n t.fileUploaderPaddingXLarge,\n t.fileUploaderPaddingYLarge,\n ),\n);\n\nexport const content = style({\n display: 'block',\n width: '100%',\n height: '100%',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n});\n\nexport const contentWithFiles = style({\n display: 'flex',\n alignItems: 'center',\n});\n\n// ---------- плитки (getJsTileStyles) ----------\n\nexport const tileUploadButton = style(\n {\n height: '100%',\n justifyContent: 'center',\n flexDirection: 'column',\n },\n 'uploadButton-3',\n);\n\nexport const tileUploadButtonWrapper = style({ boxSizing: 'border-box' }, 'uploadButtonWrapper-2');\n\nexport const uploadButtonWrapperSmall = style({\n width: t.fileUploaderTileWidthSmall,\n minHeight: t.fileUploaderTileMinHeightSmall,\n height: 'auto',\n});\n\nexport const uploadButtonWrapperMedium = style({\n width: t.fileUploaderTileWidthMedium,\n minHeight: t.fileUploaderTileMinHeightMedium,\n height: 'auto',\n});\n\nexport const uploadButtonWrapperLarge = style({\n width: t.fileUploaderTileWidthLarge,\n minHeight: t.fileUploaderTileMinHeightLarge,\n height: 'auto',\n});\n\nexport const uploadButtonWrapperEmptyFileSmall = style({\n padding: t.fileUploaderTileFilePaddingSmall,\n height: t.fileUploaderTileMinHeightSmall,\n});\n\nexport const uploadButtonWrapperEmptyFileMedium = style({\n padding: t.fileUploaderTileFilePaddingMedium,\n height: t.fileUploaderTileMinHeightMedium,\n});\n\nexport const uploadButtonWrapperEmptyFileLarge = style({\n padding: t.fileUploaderTileFilePaddingLarge,\n height: t.fileUploaderTileMinHeightLarge,\n});\n\nexport const tileUploadButtonWithFile = style(\n {\n border: `${t.fileUploaderBorderWidth} solid transparent`,\n background: 'none',\n justifyContent: 'start',\n },\n 'uploadButtonWithFile-2',\n);\n\nexport const tileUploadButtonIconGapSmall = style({ marginBottom: t.inputIconGapSmall }, 'uploadButtonIconGapSmall-2');\n\nexport const tileUploadButtonIconGapMedium = style(\n { marginBottom: t.inputIconGapMedium },\n 'uploadButtonIconGapMedium-2',\n);\n\nexport const tileUploadButtonIconGapLarge = style({ marginBottom: t.inputIconGapLarge }, 'uploadButtonIconGapLarge-2');\n\nexport const tileSizeSmall = style(\n fileUploaderSizeMixin(\n t.fileUploaderFontSizeSmall,\n t.fileUploaderLineHeightSmall,\n t.fileUploaderTilePaddingSmall,\n t.fileUploaderTilePaddingSmall,\n ),\n 'sizeSmall-2',\n);\n\nexport const tileSizeMedium = style(\n fileUploaderSizeMixin(\n t.fileUploaderFontSizeMedium,\n t.fileUploaderLineHeightMedium,\n t.fileUploaderTilePaddingMedium,\n t.fileUploaderTilePaddingMedium,\n ),\n 'sizeMedium-2',\n);\n\nexport const tileSizeLarge = style(\n fileUploaderSizeMixin(\n t.fileUploaderFontSizeLarge,\n t.fileUploaderLineHeightLarge,\n t.fileUploaderTilePaddingLarge,\n t.fileUploaderTilePaddingLarge,\n ),\n 'sizeLarge-2',\n);\n\nexport const tileContent = style(\n {\n display: 'block',\n width: '100%',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'normal',\n overflowWrap: 'break-word',\n wordWrap: 'break-word',\n textAlign: 'center',\n },\n 'content-2',\n);\n\nexport const tileContentWithFiles = style(\n {\n display: 'flex',\n alignItems: 'flex-start',\n height: '100%',\n },\n 'contentWithFiles-2',\n);\n\n// порядок вызова в cx(...) у кнопки загрузки: состояния после размера, валидация после disabled\nexport const uploadButtonFocus = style({\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorFocus}`,\n boxShadow: `0px 0px 0px 1px ${t.fileUploaderBorderColorFocus}`,\n});\n\nexport const disabled = style({\n cursor: 'default',\n color: t.fileUploaderDisabledTextColor,\n boxShadow: 'none',\n backgroundClip: t.fileUploaderDisabledBgClip,\n});\n\nexport const disabledBackground = style({\n background: t.fileUploaderDisabledBg,\n border: t.fileUploaderDisabledBorder,\n});\n\nexport const warningButton = style({\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning}`,\n boxShadow: `0px 0px 0px 1px ${t.fileUploaderBorderColorWarning}`,\n});\n\nexport const errorButton = style({\n border: `${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError}`,\n boxShadow: `0px 0px 0px 1px ${t.fileUploaderBorderColorError}`,\n});\n\nexport const uploadButtonTileWithFileSmall = style({ padding: t.fileUploaderTileFilePaddingSmall });\n\nexport const uploadButtonTileWithFileMedium = style({ padding: t.fileUploaderTileFilePaddingMedium });\n\nexport const uploadButtonTileWithFileLarge = style({ padding: t.fileUploaderTileFilePaddingLarge });\n\nexport const verticalAlign = style({ verticalAlign: 'middle' });\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 hovered = style({ background: t.fileUploaderHoveredBg });\n\n// вложенные правила — после баз всех классов файла, как было в склеенном CSS Emotion\nwhenThemeSets('fileUploaderBg', root, (value) => ({ backgroundColor: value }));\n\nglobalStyle(`${linkDisabled}:hover`, { textDecoration: 'none' });\n\nglobalStyle(`${disabled} .${globalClasses.afterLinkText}`, { color: t.fileUploaderDisabledTextColor });\n\nglobalStyle(`${warningFile}:hover`, { background: t.fileUploaderWarningBgHoverColor });\n\nglobalStyle(`${errorFile}:hover`, { background: t.fileUploaderErrorBgHoverColor });\n\nexport const jsStyles = {\n root,\n uploadButton,\n uploadButtonFocus,\n uploadButtonWithFile,\n uploadButtonIconGapSmall,\n uploadButtonIconGapMedium,\n uploadButtonIconGapLarge,\n dragOver,\n windowDragOver,\n contentInnerSmall,\n contentInnerMedium,\n contentInnerLarge,\n visuallyHidden,\n afterLinkText,\n afterLinkText_HasFiles,\n warningButton,\n warningFile,\n errorButton,\n errorFile,\n hovered,\n linkHovered,\n disabled,\n disabledBackground,\n icon,\n iconDisabled,\n link,\n linkDisabled,\n singleFile,\n iconSmall,\n iconMedium,\n iconLarge,\n};\n\nexport const jsRowStyles = {\n root: rowRoot,\n uploadButtonWithFile,\n uploadButton: rowUploadButton,\n uploadButtonWrapper,\n uploadButtonIconGapSmall,\n uploadButtonIconGapMedium,\n uploadButtonIconGapLarge,\n sizeSmall,\n sizeMedium,\n sizeLarge,\n content,\n contentWithFiles,\n};\n\nexport const jsTileStyles = {\n uploadButton: tileUploadButton,\n uploadButtonWrapper: tileUploadButtonWrapper,\n uploadButtonWrapperSmall,\n uploadButtonWrapperMedium,\n uploadButtonWrapperLarge,\n uploadButtonWrapperEmptyFileSmall,\n uploadButtonWrapperEmptyFileMedium,\n uploadButtonWrapperEmptyFileLarge,\n uploadButtonWithFile: tileUploadButtonWithFile,\n uploadButtonIconGapSmall: tileUploadButtonIconGapSmall,\n uploadButtonIconGapMedium: tileUploadButtonIconGapMedium,\n uploadButtonIconGapLarge: tileUploadButtonIconGapLarge,\n uploadButtonTileWithFileSmall,\n uploadButtonTileWithFileMedium,\n uploadButtonTileWithFileLarge,\n sizeSmall: tileSizeSmall,\n sizeMedium: tileSizeMedium,\n sizeLarge: tileSizeLarge,\n verticalAlign,\n content: tileContent,\n contentWithFiles: tileContentWithFiles,\n};\n"]}
|
|
@@ -61,13 +61,14 @@ import { useDrop } from '../../hooks/useDrop.js';
|
|
|
61
61
|
import { useMemoObject } from '../../hooks/useMemoObject.js';
|
|
62
62
|
import { CommonWrapper } from '../../internal/CommonWrapper/index.js';
|
|
63
63
|
import { FocusControlWrapper } from '../../internal/FocusControlWrapper/index.js';
|
|
64
|
+
import { cx } from '../../lib/cx.js';
|
|
64
65
|
import { useKeyListener } from '../../lib/events/keyListener.js';
|
|
65
66
|
import { forwardRefAndName } from '../../lib/forwardRefAndName.js';
|
|
66
67
|
import { isBrowser } from '../../lib/globalObject.js';
|
|
67
|
-
import {
|
|
68
|
+
import { useGlobal } from '../../lib/renderEnvironment/index.js';
|
|
68
69
|
import { useSizeControl } from '../../lib/size/useSizeControl.js';
|
|
69
70
|
import { ThemeContext } from '../../lib/theming/ThemeContext.js';
|
|
70
|
-
import {
|
|
71
|
+
import { jsRowStyles, jsStyles, jsTileStyles, globalClasses } from './FileUploader.css.js';
|
|
71
72
|
import { FileUploaderControlContext } from './FileUploaderControlContext.js';
|
|
72
73
|
import { FileUploaderFile } from './FileUploaderFile.js';
|
|
73
74
|
import { FileUploaderFileList } from './FileUploaderFileList/FileUploaderFileList.js';
|
|
@@ -91,10 +92,6 @@ var _FileUploader = forwardRefAndName('FileUploader', function (props, ref) {
|
|
|
91
92
|
var _g, _h;
|
|
92
93
|
var theme = useContext(ThemeContext);
|
|
93
94
|
var globalObject = useGlobal();
|
|
94
|
-
var cx = useEmotion().cx;
|
|
95
|
-
var jsStyles = useStyles(getJsStyles);
|
|
96
|
-
var jsRowStyles = useStyles(getJsRowStyles);
|
|
97
|
-
var jsTileStyles = useStyles(getJsTileStyles);
|
|
98
95
|
var keyListener = useKeyListener();
|
|
99
96
|
var disabled = props.disabled, error = props.error, warning = props.warning, _j = props.withValidationTooltip, withValidationTooltip = _j === void 0 ? false : _j, validationTooltipPosition = props.validationTooltipPosition, _k = props.withWarningIcon, withWarningIcon = _k === void 0 ? false : _k, _l = props.multiple, multiple = _l === void 0 ? false : _l, uploaderText = props.uploaderText, uploaderIcon = props.uploaderIcon, _m = props.view, view = _m === void 0 ? 'row' : _m, _o = props.uploadButtonPosition, uploadButtonPosition = _o === void 0 ? 'start' : _o, _p = props.validationSummary, validationSummary = _p === void 0 ? 'auto' : _p, _q = props.validationSummaryStart, validationSummaryStart = _q === void 0 ? 5 : _q, _r = props.width, width = _r === void 0 ? theme.fileUploaderWidth : _r, _s = props.hideFiles, hideFiles = _s === void 0 ? false : _s, onBlur = props.onBlur, onFocus = props.onFocus, onChange = props.onChange, request = props.request, validateBeforeUpload = props.validateBeforeUpload, onRequestSuccess = props.onRequestSuccess, onRequestError = props.onRequestError, sizeProp = props.size, _t = props.renderFile, renderFile = _t === void 0 ? defaultRenderFile : _t, inputProps = __rest(props, ["disabled", "error", "warning", "withValidationTooltip", "validationTooltipPosition", "withWarningIcon", "multiple", "uploaderText", "uploaderIcon", "view", "uploadButtonPosition", "validationSummary", "validationSummaryStart", "width", "hideFiles", "onBlur", "onFocus", "onChange", "request", "validateBeforeUpload", "onRequestSuccess", "onRequestError", "size", "renderFile"]);
|
|
100
97
|
var size = useSizeControl(sizeProp);
|
|
@@ -137,39 +134,39 @@ var _FileUploader = forwardRefAndName('FileUploader', function (props, ref) {
|
|
|
137
134
|
var isTileView = view === 'tile';
|
|
138
135
|
var jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;
|
|
139
136
|
var sizeClassName = useFileUploaderSize(size, {
|
|
140
|
-
small: jsViewStyles.sizeSmall
|
|
141
|
-
medium: jsViewStyles.sizeMedium
|
|
142
|
-
large: jsViewStyles.sizeLarge
|
|
137
|
+
small: jsViewStyles.sizeSmall,
|
|
138
|
+
medium: jsViewStyles.sizeMedium,
|
|
139
|
+
large: jsViewStyles.sizeLarge,
|
|
143
140
|
});
|
|
144
141
|
var uploadButtonTileWithFileClassName = useFileUploaderSize(size, {
|
|
145
|
-
small: jsTileStyles.uploadButtonTileWithFileSmall
|
|
146
|
-
medium: jsTileStyles.uploadButtonTileWithFileMedium
|
|
147
|
-
large: jsTileStyles.uploadButtonTileWithFileLarge
|
|
142
|
+
small: jsTileStyles.uploadButtonTileWithFileSmall,
|
|
143
|
+
medium: jsTileStyles.uploadButtonTileWithFileMedium,
|
|
144
|
+
large: jsTileStyles.uploadButtonTileWithFileLarge,
|
|
148
145
|
});
|
|
149
146
|
var uploadButtonIconGapClass = useFileUploaderSize(size, {
|
|
150
|
-
small: jsViewStyles.uploadButtonIconGapSmall
|
|
151
|
-
medium: jsViewStyles.uploadButtonIconGapMedium
|
|
152
|
-
large: jsViewStyles.uploadButtonIconGapLarge
|
|
147
|
+
small: jsViewStyles.uploadButtonIconGapSmall,
|
|
148
|
+
medium: jsViewStyles.uploadButtonIconGapMedium,
|
|
149
|
+
large: jsViewStyles.uploadButtonIconGapLarge,
|
|
153
150
|
});
|
|
154
151
|
var sizeIconClass = useFileUploaderSize(size, {
|
|
155
|
-
small: jsStyles.iconSmall
|
|
156
|
-
medium: jsStyles.iconMedium
|
|
157
|
-
large: jsStyles.iconLarge
|
|
152
|
+
small: jsStyles.iconSmall,
|
|
153
|
+
medium: jsStyles.iconMedium,
|
|
154
|
+
large: jsStyles.iconLarge,
|
|
158
155
|
});
|
|
159
156
|
var sizeWrapperClass = useFileUploaderSize(size, {
|
|
160
|
-
small: jsTileStyles.uploadButtonWrapperSmall
|
|
161
|
-
medium: jsTileStyles.uploadButtonWrapperMedium
|
|
162
|
-
large: jsTileStyles.uploadButtonWrapperLarge
|
|
157
|
+
small: jsTileStyles.uploadButtonWrapperSmall,
|
|
158
|
+
medium: jsTileStyles.uploadButtonWrapperMedium,
|
|
159
|
+
large: jsTileStyles.uploadButtonWrapperLarge,
|
|
163
160
|
});
|
|
164
161
|
var sizeWrapperEmptyFileClass = useFileUploaderSize(size, {
|
|
165
|
-
small: jsTileStyles.uploadButtonWrapperEmptyFileSmall
|
|
166
|
-
medium: jsTileStyles.uploadButtonWrapperEmptyFileMedium
|
|
167
|
-
large: jsTileStyles.uploadButtonWrapperEmptyFileLarge
|
|
162
|
+
small: jsTileStyles.uploadButtonWrapperEmptyFileSmall,
|
|
163
|
+
medium: jsTileStyles.uploadButtonWrapperEmptyFileMedium,
|
|
164
|
+
large: jsTileStyles.uploadButtonWrapperEmptyFileLarge,
|
|
168
165
|
});
|
|
169
166
|
var contentInnerClass = useFileUploaderSize(size, {
|
|
170
|
-
small: jsStyles.contentInnerSmall
|
|
171
|
-
medium: jsStyles.contentInnerMedium
|
|
172
|
-
large: jsStyles.contentInnerLarge
|
|
167
|
+
small: jsStyles.contentInnerSmall,
|
|
168
|
+
medium: jsStyles.contentInnerMedium,
|
|
169
|
+
large: jsStyles.contentInnerLarge,
|
|
173
170
|
});
|
|
174
171
|
/** common part **/
|
|
175
172
|
var handleChange = useCallback(function (newFiles) {
|
|
@@ -275,34 +272,34 @@ var _FileUploader = forwardRefAndName('FileUploader', function (props, ref) {
|
|
|
275
272
|
var hasOneFileForSingle = isSingleMode && hasOneFile && !hideFiles;
|
|
276
273
|
var hasError = !!error || ((_g = files[0]) === null || _g === void 0 ? void 0 : _g.status) === FileUploaderFileStatus.Error;
|
|
277
274
|
var hasWarning = !!warning || ((_h = files[0]) === null || _h === void 0 ? void 0 : _h.status) === FileUploaderFileStatus.Warning;
|
|
278
|
-
var uploadButtonClassNames = cx(jsStyles.uploadButton
|
|
279
|
-
_a[jsStyles.disabled
|
|
280
|
-
_a[jsStyles.disabledBackground
|
|
275
|
+
var uploadButtonClassNames = cx(jsStyles.uploadButton, jsViewStyles.uploadButton, sizeClassName, hasOneFileForSingle && jsViewStyles.uploadButtonWithFile, focusedByTab && jsStyles.uploadButtonFocus, disabled && (_a = {},
|
|
276
|
+
_a[jsStyles.disabled] = true,
|
|
277
|
+
_a[jsStyles.disabledBackground] = !hasFiles,
|
|
281
278
|
_a), (focusedByTab || !hasOneFileForSingle) && (_b = {},
|
|
282
|
-
_b[jsStyles.warningButton
|
|
283
|
-
_b[jsStyles.errorButton
|
|
279
|
+
_b[jsStyles.warningButton] = hasWarning,
|
|
280
|
+
_b[jsStyles.errorButton] = hasError,
|
|
284
281
|
_b), hasOneFileForSingle && (_c = {},
|
|
285
282
|
_c[uploadButtonTileWithFileClassName] = isTileView,
|
|
286
|
-
_c[jsTileStyles.verticalAlign
|
|
287
|
-
_c[jsStyles.warningFile
|
|
288
|
-
_c[jsStyles.errorFile
|
|
283
|
+
_c[jsTileStyles.verticalAlign] = isTileView,
|
|
284
|
+
_c[jsStyles.warningFile] = (!isTileView || hovered) && hasWarning,
|
|
285
|
+
_c[jsStyles.errorFile] = (!isTileView || hovered) && hasError,
|
|
289
286
|
_c), !disabled &&
|
|
290
287
|
hovered && (_d = {},
|
|
291
|
-
_d[jsStyles.hovered
|
|
292
|
-
_d), isDraggable && !disabled && jsStyles.dragOver
|
|
288
|
+
_d[jsStyles.hovered] = true,
|
|
289
|
+
_d), isDraggable && !disabled && jsStyles.dragOver);
|
|
293
290
|
var canDrop = isWindowDraggable && !disabled;
|
|
294
291
|
var uploadButtonWrapperClassNames = cx(isTileView && (_e = {},
|
|
295
292
|
_e[sizeWrapperClass] = true,
|
|
296
293
|
_e[sizeWrapperEmptyFileClass] = !hasOneFileForSingle,
|
|
297
|
-
_e), jsViewStyles.uploadButtonWrapper
|
|
298
|
-
var uploadButtonIconClassNames = cx(jsStyles.icon
|
|
299
|
-
var rootClassNames = cx(jsStyles.root
|
|
300
|
-
var contentClassNames = cx(jsViewStyles.content
|
|
301
|
-
_f[jsViewStyles.contentWithFiles
|
|
294
|
+
_e), jsViewStyles.uploadButtonWrapper, canDrop && jsStyles.windowDragOver);
|
|
295
|
+
var uploadButtonIconClassNames = cx(jsStyles.icon, sizeIconClass, disabled && jsStyles.iconDisabled, uploadButtonIconGapClass);
|
|
296
|
+
var rootClassNames = cx(jsStyles.root, !isTileView && jsRowStyles.root);
|
|
297
|
+
var contentClassNames = cx(jsViewStyles.content, (_f = {},
|
|
298
|
+
_f[jsViewStyles.contentWithFiles] = hasOneFileForSingle,
|
|
302
299
|
_f[contentInnerClass] = !isTileView && (!files.length || !isSingleMode),
|
|
303
300
|
_f));
|
|
304
|
-
var afterLinkTextClassNames = cx(globalClasses.afterLinkText, hasOneFileForSingle ? jsStyles.afterLinkText_HasFiles
|
|
305
|
-
var linkClassNames = cx(jsStyles.link
|
|
301
|
+
var afterLinkTextClassNames = cx(globalClasses.afterLinkText, hasOneFileForSingle ? jsStyles.afterLinkText_HasFiles : jsStyles.afterLinkText);
|
|
302
|
+
var linkClassNames = cx(jsStyles.link, !disabled && hovered && jsStyles.linkHovered, disabled && jsStyles.linkDisabled);
|
|
306
303
|
useEffect(function () {
|
|
307
304
|
if (!files || !files.length || !inputRef.current) {
|
|
308
305
|
return;
|
|
@@ -346,9 +343,9 @@ var _FileUploader = forwardRefAndName('FileUploader', function (props, ref) {
|
|
|
346
343
|
!hasOneFileForSingle && React.createElement("div", { className: uploadButtonIconClassNames }, icon),
|
|
347
344
|
React.createElement("div", { "data-tid": FileUploaderDataTids.content, className: contentClassNames },
|
|
348
345
|
renderChooseFileText(),
|
|
349
|
-
React.createElement("div", { className: afterLinkTextClassNames }, hasOneFileForSingle && (React.createElement("div", { ref: fileDivRef, className: jsStyles.singleFile
|
|
346
|
+
React.createElement("div", { className: afterLinkTextClassNames }, hasOneFileForSingle && (React.createElement("div", { ref: fileDivRef, className: jsStyles.singleFile }, fileElement)))),
|
|
350
347
|
React.createElement(FocusControlWrapper, { onBlurWhenDisabled: function () { return setFocusedByTab(false); } },
|
|
351
|
-
React.createElement("input", __assign({}, inputProps, { "data-tid": FileUploaderDataTids.input, ref: inputRef, tabIndex: disabled ? -1 : 0, type: "file", disabled: disabled, multiple: multiple, className: jsStyles.visuallyHidden
|
|
348
|
+
React.createElement("input", __assign({}, inputProps, { "data-tid": FileUploaderDataTids.input, ref: inputRef, tabIndex: disabled ? -1 : 0, type: "file", disabled: disabled, multiple: multiple, className: jsStyles.visuallyHidden, onClick: stopPropagation, onChange: handleInputChange, onFocus: handleFocus, onBlur: handleBlur }))))),
|
|
352
349
|
uploadButtonPosition === 'start' && renderFileList())));
|
|
353
350
|
});
|
|
354
351
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploader.js","sourceRoot":"","sources":["FileUploader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OA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G,EAAE,QAAQ,EACb,SAAS,EAAE,sBAAsB;oBAEhC,CAAC,mBAAmB,IAAI,6BAAK,SAAS,EAAE,0BAA0B,IAAG,IAAI,CAAO;oBACjF,yCAAe,oBAAoB,CAAC,OAAO,EAAE,SAAS,EAAE,iBAAiB;wBACtE,oBAAoB,EAAE;wBACvB,6BAAK,SAAS,EAAE,uBAAuB,IACpC,mBAAmB,IAAI,CACtB,6BAAK,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,CAAC,UAAU,EAAE,IACnD,WAAW,CACR,CACP,CACG,CACF;oBACN,oBAAC,mBAAmB,IAAC,kBAAkB,EAAE,cAAM,OAAA,eAAe,CAAC,KAAK,CAAC,EAAtB,CAAsB;wBACnE,0CACM,UAAU,gBACJ,oBAAoB,CAAC,KAAK,EACpC,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3B,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,QAAQ,CAAC,cAAc,EAAE,EACpC,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,iBAAiB,EAC3B,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,IAClB,CACkB,CAChB,CACJ;YACL,oBAAoB,KAAK,OAAO,IAAI,cAAc,EAAE,CACjD,CACQ,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,IAAM,YAAY,GAAG,+BAA+B,CACzD,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAC1B,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { useDrop } from '../../hooks/useDrop.js';\nimport { useMemoObject } from '../../hooks/useMemoObject.js';\nimport type { CommonProps } from '../../internal/CommonWrapper/index.js';\nimport { CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { FocusControlWrapper } from '../../internal/FocusControlWrapper/index.js';\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../internal/Popup/index.js';\nimport { useKeyListener } from '../../lib/events/keyListener.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { isBrowser } from '../../lib/globalObject.js';\nimport { useEmotion, useGlobal, useStyles } from '../../lib/renderEnvironment/index.js';\nimport type { InstanceWithRootNode } from '../../lib/rootNode/index.js';\nimport { useSizeControl } from '../../lib/size/useSizeControl.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles, globalClasses } from './FileUploader.styles.js';\nimport { FileUploaderControlContext } from './FileUploaderControlContext.js';\nimport type { FileUploaderControlProviderProps } from './FileUploaderControlProvider.js';\nimport { FileUploaderFile } from './FileUploaderFile.js';\nimport type { FileUploaderFileProps } from './FileUploaderFile.js';\nimport { FileUploaderFileList } from './FileUploaderFileList/FileUploaderFileList.js';\nimport { FileUploaderFileValidationResult } from './FileUploaderFileValidationResult.js';\nimport type {\n FileUploaderAttachedFile,\n FileUploaderUploadButtonPosition,\n FileUploaderValidationSummary,\n FileUploaderView,\n} from './fileUtils.js';\nimport { FileUploaderFileStatus, getAttachedFile } from './fileUtils.js';\nimport { useControlLocale } from './hooks/useControlLocale.js';\nimport { useFileUploaderSize } from './hooks/useFileUploaderSize.js';\nimport { useUpload } from './hooks/useUpload.js';\nimport { UploadIcon } from './icons/UploadIcon.js';\nimport { withFileUploaderControlProvider } from './withFileUploaderControlProvider.js';\n\nconst stopPropagation: React.ReactEventHandler = (e) => e.stopPropagation();\n\ntype FileUploaderOverriddenProps = 'size';\n\ninterface _FileUploaderProps\n extends CommonProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, FileUploaderOverriddenProps> {\n /** Переводит контрол в состояние ошибки. */\n /** Состояние ошибки всего контрола */\n error?: boolean;\n\n /** Переводит контрол в состояние предупреждения. */\n /** Состояние предупреждения всего контрола. */\n warning?: boolean;\n\n /** Расположение тултипа с текстом валидации файла.\n * @default 'top left' */\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n\n /** Включает отображение текста валидации файла во всплывающей подсказке вместо строки рядом с именем.\n * @default false */\n withValidationTooltip?: boolean;\n\n /** Включает отображение иконки предупреждения (восклицательный знак) при статусе предупреждения у файла.\n * @default false */\n withWarningIcon?: boolean;\n\n /** Ширина контрола. */\n width?: React.CSSProperties['width'];\n\n /** Размер контрола и вложенных элементов.\n * @default small */\n size?: SizeProp;\n\n /** Скрывает встроенный список файлов.\n * @default false */\n hideFiles?: boolean;\n\n /** Текст ссылки выбора файла.\n * @default \"Выберите файл\"\n */\n uploaderText?: string;\n\n /** Иконка в кнопке загрузки.\n */\n uploaderIcon?: React.ReactNode;\n\n /** Режим отображения списка файлов: строка (`row`) или плитка (`tile`).\n * @default row\n */\n view?: FileUploaderView;\n\n /** Режим блока-саммари по ошибкам и предупреждениям:\n * - `auto` — от порога `validationSummaryStart`,\n * - `enabled` / `disabled` — всегда или никогда.\n * @default auto\n */\n validationSummary?: FileUploaderValidationSummary;\n\n /** Порог числа файлов для показа саммари при `validationSummary=\"auto\"`.\n * @default 5 */\n validationSummaryStart?: number;\n\n /** Расположение кнопки загрузки относительно списка: в начале или в конце.\n * @default start */\n uploadButtonPosition?: FileUploaderUploadButtonPosition;\n\n /** Включает асинхронный режим загрузки файлов.\n * Отклонённый промис помечает файл(ы) ошибкой загрузки.\n */\n request?: (file: FileUploaderAttachedFile) => Promise<void>;\n\n /** Колбэк после успешного завершения `request` для файла. */\n onRequestSuccess?: (fileId: string) => void;\n\n /** Колбэк после ошибки `request` для файла. */\n onRequestError?: (fileId: string) => void;\n\n /** Проверка файла после выбора и до `request`: строка или `{ message, status }` — ошибка/предупреждение. Пустой результат — файл проходит.\n */\n validateBeforeUpload?: (\n file: FileUploaderAttachedFile,\n ) => Promise<Nullable<string | { message: string; status: FileUploaderFileStatus }>>;\n\n /**\n * Задаёт метод отрисовки файлов.\n * @default (props: FileUploaderFileProps) => <FileUploaderFile {...props} />\n */\n renderFile?: (props: FileUploaderFileProps) => React.ReactNode;\n}\n\nexport interface FileUploaderRef extends InstanceWithRootNode {\n /** Устанавливает фокус на скрытом `input` выбора файла. */\n focus: () => void;\n /** Снимает фокус с `input` выбора файла. */\n blur: () => void;\n /** Очищает список файлов и значения `input`. */\n reset: () => void;\n /** Удаляет файл по id с вызовом `onRemove` и `onValueChange`. */\n removeFile: (fileId: string) => void;\n}\n\nexport type FileUploader = FileUploaderRef;\n\nexport const FileUploaderDataTids = {\n root: 'FileUploader__root',\n content: 'FileUploader__content',\n link: 'FileUploader__link',\n input: 'FileUploader__input',\n} as const;\n\nconst defaultRenderFile = (props: FileUploaderFileProps) => <FileUploaderFile {...props} />;\n\nconst _FileUploader = forwardRefAndName<FileUploaderRef, _FileUploaderProps>('FileUploader', (props, ref) => {\n const theme = useContext(ThemeContext);\n const globalObject = useGlobal();\n const { cx } = useEmotion();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n const keyListener = useKeyListener();\n\n const {\n disabled,\n error,\n warning,\n withValidationTooltip = false,\n validationTooltipPosition,\n withWarningIcon = false,\n multiple = false,\n uploaderText,\n uploaderIcon,\n view = 'row',\n uploadButtonPosition = 'start',\n validationSummary = 'auto',\n validationSummaryStart = 5,\n width = theme.fileUploaderWidth,\n hideFiles = false,\n onBlur,\n onFocus,\n onChange,\n request,\n validateBeforeUpload,\n onRequestSuccess,\n onRequestError,\n size: sizeProp,\n renderFile = defaultRenderFile,\n ...inputProps\n } = props;\n const size = useSizeControl(sizeProp);\n\n const { files, setFiles, removeFile, reset, setFileValidationResult } = useContext(FileUploaderControlContext);\n\n const locale = useControlLocale();\n\n const inputRef = useRef<HTMLInputElement>(null);\n const fileDivRef = useRef<HTMLDivElement>(null);\n\n const isAsync = !!request;\n const isSingleMode = !multiple;\n\n const [hovered, setHovered] = useState(false);\n const upload = useUpload(request, onRequestSuccess, onRequestError);\n\n const tryValidateAndUpload = useCallback(\n (files: FileUploaderAttachedFile[]) => {\n files.forEach(async (file) => {\n const validationMessage = validateBeforeUpload && (await validateBeforeUpload(file));\n\n if (!validationMessage) {\n isAsync && upload(file);\n } else if (typeof validationMessage === 'object') {\n setFileValidationResult(\n file.id,\n FileUploaderFileValidationResult.error(validationMessage.message),\n validationMessage.status,\n );\n } else {\n setFileValidationResult(\n file.id,\n FileUploaderFileValidationResult.error(validationMessage),\n FileUploaderFileStatus.Error,\n );\n }\n });\n },\n [validateBeforeUpload, isAsync, upload, setFileValidationResult],\n );\n\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n\n const sizeClassName = useFileUploaderSize(size, {\n small: jsViewStyles.sizeSmall(theme),\n medium: jsViewStyles.sizeMedium(theme),\n large: jsViewStyles.sizeLarge(theme),\n });\n\n const uploadButtonTileWithFileClassName = useFileUploaderSize(size, {\n small: jsTileStyles.uploadButtonTileWithFileSmall(theme),\n medium: jsTileStyles.uploadButtonTileWithFileMedium(theme),\n large: jsTileStyles.uploadButtonTileWithFileLarge(theme),\n });\n\n const uploadButtonIconGapClass = useFileUploaderSize(size, {\n small: jsViewStyles.uploadButtonIconGapSmall(theme),\n medium: jsViewStyles.uploadButtonIconGapMedium(theme),\n large: jsViewStyles.uploadButtonIconGapLarge(theme),\n });\n\n const sizeIconClass = useFileUploaderSize(size, {\n small: jsStyles.iconSmall(theme),\n medium: jsStyles.iconMedium(theme),\n large: jsStyles.iconLarge(theme),\n });\n\n const sizeWrapperClass = useFileUploaderSize(size, {\n small: jsTileStyles.uploadButtonWrapperSmall(theme),\n medium: jsTileStyles.uploadButtonWrapperMedium(theme),\n large: jsTileStyles.uploadButtonWrapperLarge(theme),\n });\n\n const sizeWrapperEmptyFileClass = useFileUploaderSize(size, {\n small: jsTileStyles.uploadButtonWrapperEmptyFileSmall(theme),\n medium: jsTileStyles.uploadButtonWrapperEmptyFileMedium(theme),\n large: jsTileStyles.uploadButtonWrapperEmptyFileLarge(theme),\n });\n\n const contentInnerClass = useFileUploaderSize(size, {\n small: jsStyles.contentInnerSmall(theme),\n medium: jsStyles.contentInnerMedium(theme),\n large: jsStyles.contentInnerLarge(theme),\n });\n\n /** common part **/\n const handleChange = useCallback(\n (newFiles: FileList | null) => {\n if (!newFiles || !newFiles.length) {\n return;\n }\n\n let filesArray = Array.from(newFiles);\n\n if (isSingleMode) {\n filesArray = [filesArray[0]];\n }\n\n const attachedFiles = filesArray.map(getAttachedFile);\n\n if (isSingleMode && attachedFiles.length && files.length) {\n removeFile(files[0].id);\n }\n\n if (attachedFiles.length) {\n setFiles(attachedFiles);\n tryValidateAndUpload(attachedFiles);\n }\n },\n [tryValidateAndUpload, setFiles, isSingleMode, files, removeFile],\n );\n\n const handleDrop = useCallback(\n (event: DragEvent) => {\n if (disabled) {\n return;\n }\n\n const { dataTransfer } = event;\n if (dataTransfer) {\n if (isSingleMode && dataTransfer.files.length > 1) {\n dataTransfer.dropEffect = 'none';\n return;\n }\n if (dataTransfer.files?.length > 0) {\n inputRef.current && (inputRef.current.files = dataTransfer.files);\n handleChange(dataTransfer.files);\n }\n }\n },\n [handleChange, disabled],\n );\n\n const { isDraggable, ref: labelRef } = useDrop<HTMLLabelElement>({ onDrop: handleDrop });\n const { isDraggable: isWindowDraggable, ref: windowRef } = useDrop<Document>();\n\n if (isBrowser(globalObject)) {\n windowRef.current = globalObject.document;\n }\n\n const focus = useCallback(() => {\n keyListener.isTabPressed = true;\n inputRef.current?.focus();\n }, []);\n\n const blur = useCallback(() => {\n inputRef.current?.blur();\n }, []);\n\n const removeFileFromNativeInput = useCallback(\n (fileId: string) => {\n const dataTransfer = new DataTransfer();\n files\n .filter((f) => f.id !== fileId)\n .forEach((file) => {\n dataTransfer.items.add(file.originalFile);\n });\n inputRef.current && (inputRef.current.files = dataTransfer.files);\n },\n [files],\n );\n\n const handleRemoveFile = useCallback(\n (fileId: string) => {\n removeFile(fileId);\n removeFileFromNativeInput(fileId);\n },\n [removeFileFromNativeInput, removeFile],\n );\n\n const handleReset = useCallback(() => {\n reset();\n const dataTransfer = new DataTransfer();\n inputRef.current && (inputRef.current.files = dataTransfer.files);\n }, [reset, handleRemoveFile]);\n\n useImperativeHandle(\n ref,\n () => ({\n focus,\n blur,\n reset: handleReset,\n removeFile: handleRemoveFile,\n getRootNode: () => rootNodeRef.current,\n }),\n [ref, blur, focus, handleReset, handleRemoveFile],\n );\n\n const [focusedByTab, setFocusedByTab] = useState(false);\n const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(event);\n handleChange(event.target.files);\n setHovered(false);\n };\n\n const handleFocus = (e: React.FocusEvent<HTMLInputElement>) => {\n if (!disabled) {\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 onFocus?.(e);\n }\n };\n\n const handleBlur = (e: React.FocusEvent<HTMLInputElement>) => {\n setFocusedByTab(false);\n if (!disabled) {\n onBlur?.(e);\n }\n };\n\n const hasFiles = files.length > 0;\n const hasOneFile = files.length === 1;\n const hasOneFileForSingle = isSingleMode && hasOneFile && !hideFiles;\n\n const hasError = !!error || files[0]?.status === FileUploaderFileStatus.Error;\n const hasWarning = !!warning || files[0]?.status === FileUploaderFileStatus.Warning;\n\n const uploadButtonClassNames = cx(\n jsStyles.uploadButton(theme),\n jsViewStyles.uploadButton(),\n sizeClassName,\n hasOneFileForSingle && jsViewStyles.uploadButtonWithFile(theme),\n focusedByTab && jsStyles.uploadButtonFocus(theme),\n disabled && {\n [jsStyles.disabled(theme)]: true,\n [jsStyles.disabledBackground(theme)]: !hasFiles,\n },\n (focusedByTab || !hasOneFileForSingle) && {\n [jsStyles.warningButton(theme)]: hasWarning,\n [jsStyles.errorButton(theme)]: hasError,\n },\n hasOneFileForSingle && {\n [uploadButtonTileWithFileClassName]: isTileView,\n [jsTileStyles.verticalAlign()]: isTileView,\n [jsStyles.warningFile(theme)]: (!isTileView || hovered) && hasWarning,\n [jsStyles.errorFile(theme)]: (!isTileView || hovered) && hasError,\n },\n !disabled &&\n hovered && {\n [jsStyles.hovered(theme)]: true,\n },\n isDraggable && !disabled && jsStyles.dragOver(theme),\n );\n\n const canDrop = isWindowDraggable && !disabled;\n const uploadButtonWrapperClassNames = cx(\n isTileView && {\n [sizeWrapperClass]: true,\n [sizeWrapperEmptyFileClass]: !hasOneFileForSingle,\n },\n jsViewStyles.uploadButtonWrapper(),\n canDrop && jsStyles.windowDragOver(theme),\n );\n\n const uploadButtonIconClassNames = cx(\n jsStyles.icon(theme),\n sizeIconClass,\n disabled && jsStyles.iconDisabled(theme),\n uploadButtonIconGapClass,\n );\n\n const rootClassNames = cx(jsStyles.root(theme), !isTileView && jsRowStyles.root());\n\n const contentClassNames = cx(jsViewStyles.content(), {\n [jsViewStyles.contentWithFiles()]: hasOneFileForSingle,\n [contentInnerClass]: !isTileView && (!files.length || !isSingleMode),\n });\n\n const afterLinkTextClassNames = cx(\n globalClasses.afterLinkText,\n hasOneFileForSingle ? jsStyles.afterLinkText_HasFiles() : jsStyles.afterLinkText(),\n );\n\n const linkClassNames = cx(\n jsStyles.link(theme),\n !disabled && hovered && jsStyles.linkHovered(theme),\n disabled && jsStyles.linkDisabled(theme),\n );\n\n useEffect(() => {\n if (!files || !files.length || !inputRef.current) {\n return;\n }\n\n const dataTransfer = new DataTransfer();\n files.forEach((file) => dataTransfer.items.add(file.originalFile));\n inputRef.current.files = dataTransfer.files;\n }, []);\n\n const rootNodeRef = useRef(null);\n\n const icon = uploaderIcon ?? <UploadIcon size={size} view={view} />;\n const chooseFileText = uploaderText ?? locale.chooseFile;\n const chooseFileLocale = `${chooseFileText}${String.fromCharCode(0xa0)}`; /* */\n const hideUploaderText = isTileView && uploaderText === '';\n const renderChooseFileText = () =>\n !hideUploaderText && (\n <span data-tid={FileUploaderDataTids.link} className={linkClassNames}>\n {!hasOneFileForSingle && chooseFileLocale}\n </span>\n );\n\n const renderFileList = () => {\n return (\n !hideFiles &&\n !isSingleMode &&\n !!files.length && (\n <FileUploaderFileList\n renderFile={renderFile}\n size={size}\n view={view}\n onRemove={handleRemoveFile}\n validationTooltipPosition={validationTooltipPosition}\n withValidationTooltip={withValidationTooltip}\n validationSummary={validationSummary}\n validationSummaryStart={validationSummaryStart}\n withWarningIcon={withWarningIcon}\n disabled={disabled}\n />\n )\n );\n };\n\n const fileProps: FileUploaderFileProps = {\n file: files[0],\n size,\n view,\n onRemove: handleRemoveFile,\n error,\n warning,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n hovered,\n disabled,\n };\n\n const fileElement = renderFile(fileProps);\n\n return (\n <CommonWrapper {...props}>\n <div\n data-tid={FileUploaderDataTids.root}\n className={rootClassNames}\n style={useMemoObject({ width: isTileView && !multiple ? theme.fileUploaderTileWidth : width })}\n ref={rootNodeRef}\n >\n {uploadButtonPosition === 'end' && renderFileList()}\n <div className={uploadButtonWrapperClassNames}>\n <label\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n ref={labelRef}\n className={uploadButtonClassNames}\n >\n {!hasOneFileForSingle && <div className={uploadButtonIconClassNames}>{icon}</div>}\n <div data-tid={FileUploaderDataTids.content} className={contentClassNames}>\n {renderChooseFileText()}\n <div className={afterLinkTextClassNames}>\n {hasOneFileForSingle && (\n <div ref={fileDivRef} className={jsStyles.singleFile()}>\n {fileElement}\n </div>\n )}\n </div>\n </div>\n <FocusControlWrapper onBlurWhenDisabled={() => setFocusedByTab(false)}>\n <input\n {...inputProps}\n data-tid={FileUploaderDataTids.input}\n ref={inputRef}\n tabIndex={disabled ? -1 : 0}\n type=\"file\"\n disabled={disabled}\n multiple={multiple}\n className={jsStyles.visuallyHidden()}\n onClick={stopPropagation}\n onChange={handleInputChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </FocusControlWrapper>\n </label>\n </div>\n {uploadButtonPosition === 'start' && renderFileList()}\n </div>\n </CommonWrapper>\n );\n});\n\nexport interface FileUploaderProps extends _FileUploaderProps, FileUploaderControlProviderProps {}\n\n/**\n * Контрол для выбора пользователем файла на компьютере и отображения статуса его отправки на сервер.\n */\nexport const FileUploader = withFileUploaderControlProvider<FileUploaderProps, FileUploaderRef>(\n React.memo(_FileUploader),\n);\n\nFileUploader.displayName = 'FileUploader';\n"]}
|
|
1
|
+
{"version":3,"file":"FileUploader.js","sourceRoot":"","sources":["FileUploader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEzG,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,6CAA6C,CAAC;AAElF,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAEjE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AA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AAiB,EAC3B,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,UAAU,IAClB,CACkB,CAChB,CACJ;YACL,oBAAoB,KAAK,OAAO,IAAI,cAAc,EAAE,CACjD,CACQ,CACjB,CAAC;AACJ,CAAC,CAAC,CAAC;AAIH;;GAEG;AACH,MAAM,CAAC,IAAM,YAAY,GAAG,+BAA+B,CACzD,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,CAC1B,CAAC;AAEF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import React, { useCallback, useContext, useEffect, useImperativeHandle, useRef, useState } from 'react';\n\nimport { useDrop } from '../../hooks/useDrop.js';\nimport { useMemoObject } from '../../hooks/useMemoObject.js';\nimport type { CommonProps } from '../../internal/CommonWrapper/index.js';\nimport { CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { FocusControlWrapper } from '../../internal/FocusControlWrapper/index.js';\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../internal/Popup/index.js';\nimport { cx } from '../../lib/cx.js';\nimport { useKeyListener } from '../../lib/events/keyListener.js';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName.js';\nimport { isBrowser } from '../../lib/globalObject.js';\nimport { useGlobal } from '../../lib/renderEnvironment/index.js';\nimport type { InstanceWithRootNode } from '../../lib/rootNode/index.js';\nimport { useSizeControl } from '../../lib/size/useSizeControl.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport type { Nullable } from '../../typings/utility-types.js';\nimport { jsRowStyles, jsStyles, jsTileStyles, globalClasses } from './FileUploader.css.js';\nimport { FileUploaderControlContext } from './FileUploaderControlContext.js';\nimport type { FileUploaderControlProviderProps } from './FileUploaderControlProvider.js';\nimport { FileUploaderFile } from './FileUploaderFile.js';\nimport type { FileUploaderFileProps } from './FileUploaderFile.js';\nimport { FileUploaderFileList } from './FileUploaderFileList/FileUploaderFileList.js';\nimport { FileUploaderFileValidationResult } from './FileUploaderFileValidationResult.js';\nimport type {\n FileUploaderAttachedFile,\n FileUploaderUploadButtonPosition,\n FileUploaderValidationSummary,\n FileUploaderView,\n} from './fileUtils.js';\nimport { FileUploaderFileStatus, getAttachedFile } from './fileUtils.js';\nimport { useControlLocale } from './hooks/useControlLocale.js';\nimport { useFileUploaderSize } from './hooks/useFileUploaderSize.js';\nimport { useUpload } from './hooks/useUpload.js';\nimport { UploadIcon } from './icons/UploadIcon.js';\nimport { withFileUploaderControlProvider } from './withFileUploaderControlProvider.js';\n\nconst stopPropagation: React.ReactEventHandler = (e) => e.stopPropagation();\n\ntype FileUploaderOverriddenProps = 'size';\n\ninterface _FileUploaderProps\n extends CommonProps, Omit<React.InputHTMLAttributes<HTMLInputElement>, FileUploaderOverriddenProps> {\n /** Переводит контрол в состояние ошибки. */\n /** Состояние ошибки всего контрола */\n error?: boolean;\n\n /** Переводит контрол в состояние предупреждения. */\n /** Состояние предупреждения всего контрола. */\n warning?: boolean;\n\n /** Расположение тултипа с текстом валидации файла.\n * @default 'top left' */\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n\n /** Включает отображение текста валидации файла во всплывающей подсказке вместо строки рядом с именем.\n * @default false */\n withValidationTooltip?: boolean;\n\n /** Включает отображение иконки предупреждения (восклицательный знак) при статусе предупреждения у файла.\n * @default false */\n withWarningIcon?: boolean;\n\n /** Ширина контрола. */\n width?: React.CSSProperties['width'];\n\n /** Размер контрола и вложенных элементов.\n * @default small */\n size?: SizeProp;\n\n /** Скрывает встроенный список файлов.\n * @default false */\n hideFiles?: boolean;\n\n /** Текст ссылки выбора файла.\n * @default \"Выберите файл\"\n */\n uploaderText?: string;\n\n /** Иконка в кнопке загрузки.\n */\n uploaderIcon?: React.ReactNode;\n\n /** Режим отображения списка файлов: строка (`row`) или плитка (`tile`).\n * @default row\n */\n view?: FileUploaderView;\n\n /** Режим блока-саммари по ошибкам и предупреждениям:\n * - `auto` — от порога `validationSummaryStart`,\n * - `enabled` / `disabled` — всегда или никогда.\n * @default auto\n */\n validationSummary?: FileUploaderValidationSummary;\n\n /** Порог числа файлов для показа саммари при `validationSummary=\"auto\"`.\n * @default 5 */\n validationSummaryStart?: number;\n\n /** Расположение кнопки загрузки относительно списка: в начале или в конце.\n * @default start */\n uploadButtonPosition?: FileUploaderUploadButtonPosition;\n\n /** Включает асинхронный режим загрузки файлов.\n * Отклонённый промис помечает файл(ы) ошибкой загрузки.\n */\n request?: (file: FileUploaderAttachedFile) => Promise<void>;\n\n /** Колбэк после успешного завершения `request` для файла. */\n onRequestSuccess?: (fileId: string) => void;\n\n /** Колбэк после ошибки `request` для файла. */\n onRequestError?: (fileId: string) => void;\n\n /** Проверка файла после выбора и до `request`: строка или `{ message, status }` — ошибка/предупреждение. Пустой результат — файл проходит.\n */\n validateBeforeUpload?: (\n file: FileUploaderAttachedFile,\n ) => Promise<Nullable<string | { message: string; status: FileUploaderFileStatus }>>;\n\n /**\n * Задаёт метод отрисовки файлов.\n * @default (props: FileUploaderFileProps) => <FileUploaderFile {...props} />\n */\n renderFile?: (props: FileUploaderFileProps) => React.ReactNode;\n}\n\nexport interface FileUploaderRef extends InstanceWithRootNode {\n /** Устанавливает фокус на скрытом `input` выбора файла. */\n focus: () => void;\n /** Снимает фокус с `input` выбора файла. */\n blur: () => void;\n /** Очищает список файлов и значения `input`. */\n reset: () => void;\n /** Удаляет файл по id с вызовом `onRemove` и `onValueChange`. */\n removeFile: (fileId: string) => void;\n}\n\nexport type FileUploader = FileUploaderRef;\n\nexport const FileUploaderDataTids = {\n root: 'FileUploader__root',\n content: 'FileUploader__content',\n link: 'FileUploader__link',\n input: 'FileUploader__input',\n} as const;\n\nconst defaultRenderFile = (props: FileUploaderFileProps) => <FileUploaderFile {...props} />;\n\nconst _FileUploader = forwardRefAndName<FileUploaderRef, _FileUploaderProps>('FileUploader', (props, ref) => {\n const theme = useContext(ThemeContext);\n const globalObject = useGlobal();\n const keyListener = useKeyListener();\n\n const {\n disabled,\n error,\n warning,\n withValidationTooltip = false,\n validationTooltipPosition,\n withWarningIcon = false,\n multiple = false,\n uploaderText,\n uploaderIcon,\n view = 'row',\n uploadButtonPosition = 'start',\n validationSummary = 'auto',\n validationSummaryStart = 5,\n width = theme.fileUploaderWidth,\n hideFiles = false,\n onBlur,\n onFocus,\n onChange,\n request,\n validateBeforeUpload,\n onRequestSuccess,\n onRequestError,\n size: sizeProp,\n renderFile = defaultRenderFile,\n ...inputProps\n } = props;\n const size = useSizeControl(sizeProp);\n\n const { files, setFiles, removeFile, reset, setFileValidationResult } = useContext(FileUploaderControlContext);\n\n const locale = useControlLocale();\n\n const inputRef = useRef<HTMLInputElement>(null);\n const fileDivRef = useRef<HTMLDivElement>(null);\n\n const isAsync = !!request;\n const isSingleMode = !multiple;\n\n const [hovered, setHovered] = useState(false);\n const upload = useUpload(request, onRequestSuccess, onRequestError);\n\n const tryValidateAndUpload = useCallback(\n (files: FileUploaderAttachedFile[]) => {\n files.forEach(async (file) => {\n const validationMessage = validateBeforeUpload && (await validateBeforeUpload(file));\n\n if (!validationMessage) {\n isAsync && upload(file);\n } else if (typeof validationMessage === 'object') {\n setFileValidationResult(\n file.id,\n FileUploaderFileValidationResult.error(validationMessage.message),\n validationMessage.status,\n );\n } else {\n setFileValidationResult(\n file.id,\n FileUploaderFileValidationResult.error(validationMessage),\n FileUploaderFileStatus.Error,\n );\n }\n });\n },\n [validateBeforeUpload, isAsync, upload, setFileValidationResult],\n );\n\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n\n const sizeClassName = useFileUploaderSize(size, {\n small: jsViewStyles.sizeSmall,\n medium: jsViewStyles.sizeMedium,\n large: jsViewStyles.sizeLarge,\n });\n\n const uploadButtonTileWithFileClassName = useFileUploaderSize(size, {\n small: jsTileStyles.uploadButtonTileWithFileSmall,\n medium: jsTileStyles.uploadButtonTileWithFileMedium,\n large: jsTileStyles.uploadButtonTileWithFileLarge,\n });\n\n const uploadButtonIconGapClass = useFileUploaderSize(size, {\n small: jsViewStyles.uploadButtonIconGapSmall,\n medium: jsViewStyles.uploadButtonIconGapMedium,\n large: jsViewStyles.uploadButtonIconGapLarge,\n });\n\n const sizeIconClass = useFileUploaderSize(size, {\n small: jsStyles.iconSmall,\n medium: jsStyles.iconMedium,\n large: jsStyles.iconLarge,\n });\n\n const sizeWrapperClass = useFileUploaderSize(size, {\n small: jsTileStyles.uploadButtonWrapperSmall,\n medium: jsTileStyles.uploadButtonWrapperMedium,\n large: jsTileStyles.uploadButtonWrapperLarge,\n });\n\n const sizeWrapperEmptyFileClass = useFileUploaderSize(size, {\n small: jsTileStyles.uploadButtonWrapperEmptyFileSmall,\n medium: jsTileStyles.uploadButtonWrapperEmptyFileMedium,\n large: jsTileStyles.uploadButtonWrapperEmptyFileLarge,\n });\n\n const contentInnerClass = useFileUploaderSize(size, {\n small: jsStyles.contentInnerSmall,\n medium: jsStyles.contentInnerMedium,\n large: jsStyles.contentInnerLarge,\n });\n\n /** common part **/\n const handleChange = useCallback(\n (newFiles: FileList | null) => {\n if (!newFiles || !newFiles.length) {\n return;\n }\n\n let filesArray = Array.from(newFiles);\n\n if (isSingleMode) {\n filesArray = [filesArray[0]];\n }\n\n const attachedFiles = filesArray.map(getAttachedFile);\n\n if (isSingleMode && attachedFiles.length && files.length) {\n removeFile(files[0].id);\n }\n\n if (attachedFiles.length) {\n setFiles(attachedFiles);\n tryValidateAndUpload(attachedFiles);\n }\n },\n [tryValidateAndUpload, setFiles, isSingleMode, files, removeFile],\n );\n\n const handleDrop = useCallback(\n (event: DragEvent) => {\n if (disabled) {\n return;\n }\n\n const { dataTransfer } = event;\n if (dataTransfer) {\n if (isSingleMode && dataTransfer.files.length > 1) {\n dataTransfer.dropEffect = 'none';\n return;\n }\n if (dataTransfer.files?.length > 0) {\n inputRef.current && (inputRef.current.files = dataTransfer.files);\n handleChange(dataTransfer.files);\n }\n }\n },\n [handleChange, disabled],\n );\n\n const { isDraggable, ref: labelRef } = useDrop<HTMLLabelElement>({ onDrop: handleDrop });\n const { isDraggable: isWindowDraggable, ref: windowRef } = useDrop<Document>();\n\n if (isBrowser(globalObject)) {\n windowRef.current = globalObject.document;\n }\n\n const focus = useCallback(() => {\n keyListener.isTabPressed = true;\n inputRef.current?.focus();\n }, []);\n\n const blur = useCallback(() => {\n inputRef.current?.blur();\n }, []);\n\n const removeFileFromNativeInput = useCallback(\n (fileId: string) => {\n const dataTransfer = new DataTransfer();\n files\n .filter((f) => f.id !== fileId)\n .forEach((file) => {\n dataTransfer.items.add(file.originalFile);\n });\n inputRef.current && (inputRef.current.files = dataTransfer.files);\n },\n [files],\n );\n\n const handleRemoveFile = useCallback(\n (fileId: string) => {\n removeFile(fileId);\n removeFileFromNativeInput(fileId);\n },\n [removeFileFromNativeInput, removeFile],\n );\n\n const handleReset = useCallback(() => {\n reset();\n const dataTransfer = new DataTransfer();\n inputRef.current && (inputRef.current.files = dataTransfer.files);\n }, [reset, handleRemoveFile]);\n\n useImperativeHandle(\n ref,\n () => ({\n focus,\n blur,\n reset: handleReset,\n removeFile: handleRemoveFile,\n getRootNode: () => rootNodeRef.current,\n }),\n [ref, blur, focus, handleReset, handleRemoveFile],\n );\n\n const [focusedByTab, setFocusedByTab] = useState(false);\n const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {\n onChange?.(event);\n handleChange(event.target.files);\n setHovered(false);\n };\n\n const handleFocus = (e: React.FocusEvent<HTMLInputElement>) => {\n if (!disabled) {\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 onFocus?.(e);\n }\n };\n\n const handleBlur = (e: React.FocusEvent<HTMLInputElement>) => {\n setFocusedByTab(false);\n if (!disabled) {\n onBlur?.(e);\n }\n };\n\n const hasFiles = files.length > 0;\n const hasOneFile = files.length === 1;\n const hasOneFileForSingle = isSingleMode && hasOneFile && !hideFiles;\n\n const hasError = !!error || files[0]?.status === FileUploaderFileStatus.Error;\n const hasWarning = !!warning || files[0]?.status === FileUploaderFileStatus.Warning;\n\n const uploadButtonClassNames = cx(\n jsStyles.uploadButton,\n jsViewStyles.uploadButton,\n sizeClassName,\n hasOneFileForSingle && jsViewStyles.uploadButtonWithFile,\n focusedByTab && jsStyles.uploadButtonFocus,\n disabled && {\n [jsStyles.disabled]: true,\n [jsStyles.disabledBackground]: !hasFiles,\n },\n (focusedByTab || !hasOneFileForSingle) && {\n [jsStyles.warningButton]: hasWarning,\n [jsStyles.errorButton]: hasError,\n },\n hasOneFileForSingle && {\n [uploadButtonTileWithFileClassName]: isTileView,\n [jsTileStyles.verticalAlign]: isTileView,\n [jsStyles.warningFile]: (!isTileView || hovered) && hasWarning,\n [jsStyles.errorFile]: (!isTileView || hovered) && hasError,\n },\n !disabled &&\n hovered && {\n [jsStyles.hovered]: true,\n },\n isDraggable && !disabled && jsStyles.dragOver,\n );\n\n const canDrop = isWindowDraggable && !disabled;\n const uploadButtonWrapperClassNames = cx(\n isTileView && {\n [sizeWrapperClass]: true,\n [sizeWrapperEmptyFileClass]: !hasOneFileForSingle,\n },\n jsViewStyles.uploadButtonWrapper,\n canDrop && jsStyles.windowDragOver,\n );\n\n const uploadButtonIconClassNames = cx(\n jsStyles.icon,\n sizeIconClass,\n disabled && jsStyles.iconDisabled,\n uploadButtonIconGapClass,\n );\n\n const rootClassNames = cx(jsStyles.root, !isTileView && jsRowStyles.root);\n\n const contentClassNames = cx(jsViewStyles.content, {\n [jsViewStyles.contentWithFiles]: hasOneFileForSingle,\n [contentInnerClass]: !isTileView && (!files.length || !isSingleMode),\n });\n\n const afterLinkTextClassNames = cx(\n globalClasses.afterLinkText,\n hasOneFileForSingle ? jsStyles.afterLinkText_HasFiles : jsStyles.afterLinkText,\n );\n\n const linkClassNames = cx(\n jsStyles.link,\n !disabled && hovered && jsStyles.linkHovered,\n disabled && jsStyles.linkDisabled,\n );\n\n useEffect(() => {\n if (!files || !files.length || !inputRef.current) {\n return;\n }\n\n const dataTransfer = new DataTransfer();\n files.forEach((file) => dataTransfer.items.add(file.originalFile));\n inputRef.current.files = dataTransfer.files;\n }, []);\n\n const rootNodeRef = useRef(null);\n\n const icon = uploaderIcon ?? <UploadIcon size={size} view={view} />;\n const chooseFileText = uploaderText ?? locale.chooseFile;\n const chooseFileLocale = `${chooseFileText}${String.fromCharCode(0xa0)}`; /* */\n const hideUploaderText = isTileView && uploaderText === '';\n const renderChooseFileText = () =>\n !hideUploaderText && (\n <span data-tid={FileUploaderDataTids.link} className={linkClassNames}>\n {!hasOneFileForSingle && chooseFileLocale}\n </span>\n );\n\n const renderFileList = () => {\n return (\n !hideFiles &&\n !isSingleMode &&\n !!files.length && (\n <FileUploaderFileList\n renderFile={renderFile}\n size={size}\n view={view}\n onRemove={handleRemoveFile}\n validationTooltipPosition={validationTooltipPosition}\n withValidationTooltip={withValidationTooltip}\n validationSummary={validationSummary}\n validationSummaryStart={validationSummaryStart}\n withWarningIcon={withWarningIcon}\n disabled={disabled}\n />\n )\n );\n };\n\n const fileProps: FileUploaderFileProps = {\n file: files[0],\n size,\n view,\n onRemove: handleRemoveFile,\n error,\n warning,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n hovered,\n disabled,\n };\n\n const fileElement = renderFile(fileProps);\n\n return (\n <CommonWrapper {...props}>\n <div\n data-tid={FileUploaderDataTids.root}\n className={rootClassNames}\n style={useMemoObject({ width: isTileView && !multiple ? theme.fileUploaderTileWidth : width })}\n ref={rootNodeRef}\n >\n {uploadButtonPosition === 'end' && renderFileList()}\n <div className={uploadButtonWrapperClassNames}>\n <label\n onMouseEnter={() => setHovered(true)}\n onMouseLeave={() => setHovered(false)}\n ref={labelRef}\n className={uploadButtonClassNames}\n >\n {!hasOneFileForSingle && <div className={uploadButtonIconClassNames}>{icon}</div>}\n <div data-tid={FileUploaderDataTids.content} className={contentClassNames}>\n {renderChooseFileText()}\n <div className={afterLinkTextClassNames}>\n {hasOneFileForSingle && (\n <div ref={fileDivRef} className={jsStyles.singleFile}>\n {fileElement}\n </div>\n )}\n </div>\n </div>\n <FocusControlWrapper onBlurWhenDisabled={() => setFocusedByTab(false)}>\n <input\n {...inputProps}\n data-tid={FileUploaderDataTids.input}\n ref={inputRef}\n tabIndex={disabled ? -1 : 0}\n type=\"file\"\n disabled={disabled}\n multiple={multiple}\n className={jsStyles.visuallyHidden}\n onClick={stopPropagation}\n onChange={handleInputChange}\n onFocus={handleFocus}\n onBlur={handleBlur}\n />\n </FocusControlWrapper>\n </label>\n </div>\n {uploadButtonPosition === 'start' && renderFileList()}\n </div>\n </CommonWrapper>\n );\n});\n\nexport interface FileUploaderProps extends _FileUploaderProps, FileUploaderControlProviderProps {}\n\n/**\n * Контрол для выбора пользователем файла на компьютере и отображения статуса его отправки на сервер.\n */\nexport const FileUploader = withFileUploaderControlProvider<FileUploaderProps, FileUploaderRef>(\n React.memo(_FileUploader),\n);\n\nFileUploader.displayName = 'FileUploader';\n"]}
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
export declare const fileUploaderSizeMixin: (fontSize: string, lineHeight: string, paddingX: string, paddingY: string) =>
|
|
1
|
+
export declare const fileUploaderSizeMixin: (fontSize: string, lineHeight: string, paddingX: string, paddingY: string) => {
|
|
2
|
+
readonly fontSize: string;
|
|
3
|
+
readonly boxSizing: "border-box";
|
|
4
|
+
readonly padding: `${string} ${string}`;
|
|
5
|
+
readonly lineHeight: string;
|
|
6
|
+
};
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
export var fileUploaderSizeMixin = function (fontSize, lineHeight, paddingX, paddingY) {
|
|
2
|
-
return
|
|
2
|
+
return ({
|
|
3
|
+
fontSize: fontSize,
|
|
4
|
+
boxSizing: 'border-box',
|
|
5
|
+
padding: "".concat(paddingY, " ").concat(paddingX),
|
|
6
|
+
lineHeight: lineHeight,
|
|
7
|
+
});
|
|
3
8
|
};
|
|
4
9
|
//# sourceMappingURL=FileUploader.mixins.js.map
|