@skbkontur/react-ui 6.4.7-b33c6.0 → 6.4.7
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 +13 -0
- package/README.md +0 -42
- package/components/Autocomplete/Autocomplete.d.ts +3 -0
- package/components/Autocomplete/Autocomplete.js +6 -4
- package/components/Autocomplete/Autocomplete.js.map +1 -1
- package/components/Autocomplete/Autocomplete.styles.d.ts +5 -0
- package/components/Autocomplete/Autocomplete.styles.js +18 -0
- package/components/Autocomplete/Autocomplete.styles.js.map +1 -0
- package/components/Autocomplete/getAutocompleteTheme.d.ts +2 -1
- package/components/Autocomplete/getAutocompleteTheme.js +2 -3
- 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.d.ts +4 -0
- package/components/Button/Button.js +74 -73
- package/components/Button/Button.js.map +1 -1
- package/components/Button/Button.mixins.d.ts +4 -0
- package/components/Button/Button.mixins.js +21 -0
- package/components/Button/Button.mixins.js.map +1 -0
- package/components/Button/Button.styles.d.ts +95 -0
- package/components/Button/Button.styles.js +260 -0
- package/components/Button/Button.styles.js.map +1 -0
- package/components/Button/ButtonArrow.d.ts +4 -1
- package/components/Button/ButtonArrow.js +14 -10
- package/components/Button/ButtonArrow.js.map +1 -1
- package/components/Button/ButtonIcon.js +21 -9
- package/components/Button/ButtonIcon.js.map +1 -1
- package/components/Button/ButtonIcon.styles.d.ts +16 -0
- package/components/Button/ButtonIcon.styles.js +53 -0
- package/components/Button/ButtonIcon.styles.js.map +1 -0
- package/components/Button/LoadingButtonIcon.js +4 -2
- package/components/Button/LoadingButtonIcon.js.map +1 -1
- package/components/Button/getInnerLinkTheme.d.ts +2 -1
- package/components/Button/getInnerLinkTheme.js +2 -3
- package/components/Button/getInnerLinkTheme.js.map +1 -1
- package/components/Calendar/Calendar.d.ts +3 -0
- package/components/Calendar/Calendar.js +5 -5
- package/components/Calendar/Calendar.js.map +1 -1
- package/components/Calendar/Calendar.styles.d.ts +6 -0
- package/components/Calendar/Calendar.styles.js +22 -0
- package/components/Calendar/Calendar.styles.js.map +1 -0
- package/components/Calendar/CalendarDay.js +9 -7
- package/components/Calendar/CalendarDay.js.map +1 -1
- package/components/Calendar/DayCellView.js +6 -2
- package/components/Calendar/DayCellView.js.map +1 -1
- package/components/Calendar/DayCellView.styles.d.ts +9 -0
- package/components/Calendar/DayCellView.styles.js +31 -0
- package/components/Calendar/DayCellView.styles.js.map +1 -0
- package/components/Calendar/Month.js +25 -5
- package/components/Calendar/Month.js.map +1 -1
- package/components/Calendar/MonthView.js +10 -8
- package/components/Calendar/MonthView.js.map +1 -1
- package/components/Calendar/MonthView.styles.d.ts +13 -0
- package/components/Calendar/MonthView.styles.js +47 -0
- package/components/Calendar/MonthView.styles.js.map +1 -0
- package/components/Center/Center.d.ts +3 -0
- package/components/Center/Center.js +10 -8
- package/components/Center/Center.js.map +1 -1
- package/components/Center/Center.styles.d.ts +7 -0
- package/components/Center/Center.styles.js +27 -0
- package/components/Center/Center.styles.js.map +1 -0
- package/components/Checkbox/Checkbox.d.ts +3 -0
- package/components/Checkbox/Checkbox.js +33 -33
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/Checkbox/Checkbox.mixins.d.ts +4 -19
- package/components/Checkbox/Checkbox.mixins.js +15 -16
- package/components/Checkbox/Checkbox.mixins.js.map +1 -1
- package/components/Checkbox/Checkbox.styles.d.ts +34 -0
- package/components/Checkbox/Checkbox.styles.js +100 -0
- package/components/Checkbox/Checkbox.styles.js.map +1 -0
- package/components/CurrencyInput/CurrencyInput.js +10 -0
- package/components/CurrencyInput/CurrencyInput.js.map +1 -1
- package/components/DateInput/DateFragmentsView.d.ts +5 -0
- package/components/DateInput/DateFragmentsView.js +17 -9
- package/components/DateInput/DateFragmentsView.js.map +1 -1
- package/components/DateInput/DateFragmentsView.styles.d.ts +7 -0
- package/components/DateInput/DateFragmentsView.styles.js +28 -0
- package/components/DateInput/DateFragmentsView.styles.js.map +1 -0
- package/components/DateInput/DateInput.d.ts +5 -0
- package/components/DateInput/DateInput.js +18 -9
- package/components/DateInput/DateInput.js.map +1 -1
- package/components/DateInput/DateInput.styles.d.ts +11 -0
- package/components/DateInput/DateInput.styles.js +29 -0
- package/components/DateInput/DateInput.styles.js.map +1 -0
- package/components/DatePicker/DatePicker.d.ts +2 -0
- package/components/DatePicker/DatePicker.js +7 -8
- package/components/DatePicker/DatePicker.js.map +1 -1
- package/components/DatePicker/DatePicker.styles.d.ts +5 -0
- package/components/DatePicker/DatePicker.styles.js +18 -0
- package/components/DatePicker/DatePicker.styles.js.map +1 -0
- package/components/DatePicker/MobilePicker.js +4 -2
- package/components/DatePicker/MobilePicker.js.map +1 -1
- package/components/DatePicker/MobilePicker.styles.d.ts +3 -0
- package/components/DatePicker/MobilePicker.styles.js +15 -0
- package/components/DatePicker/MobilePicker.styles.js.map +1 -0
- package/components/DatePicker/getMobilePickerTheme.d.ts +2 -1
- package/components/DatePicker/getMobilePickerTheme.js +2 -3
- package/components/DatePicker/getMobilePickerTheme.js.map +1 -1
- package/components/DateRangePicker/DateRangePicker.d.ts +12 -12
- package/components/DateRangePicker/DateRangePicker.js +38 -40
- package/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/components/DateRangePicker/DateRangePicker.styles.d.ts +16 -0
- package/components/DateRangePicker/DateRangePicker.styles.js +57 -0
- package/components/DateRangePicker/DateRangePicker.styles.js.map +1 -0
- package/components/DateRangePicker/DateRangePickerTheme.d.ts +3 -2
- package/components/DateRangePicker/DateRangePickerTheme.js +4 -5
- package/components/DateRangePicker/DateRangePickerTheme.js.map +1 -1
- package/components/Dropdown/getDropdownTheme.d.ts +2 -1
- package/components/Dropdown/getDropdownTheme.js +2 -3
- package/components/Dropdown/getDropdownTheme.js.map +1 -1
- package/components/DropdownMenu/getDropdownMenuTheme.d.ts +2 -1
- package/components/DropdownMenu/getDropdownMenuTheme.js +2 -3
- package/components/DropdownMenu/getDropdownMenuTheme.js.map +1 -1
- package/components/FileUploader/FileUploader.js +46 -43
- package/components/FileUploader/FileUploader.js.map +1 -1
- package/components/FileUploader/FileUploader.mixins.d.ts +1 -6
- package/components/FileUploader/FileUploader.mixins.js +1 -6
- package/components/FileUploader/FileUploader.mixins.js.map +1 -1
- package/components/FileUploader/FileUploader.styles.d.ts +74 -0
- package/components/FileUploader/FileUploader.styles.js +221 -0
- package/components/FileUploader/FileUploader.styles.js.map +1 -0
- package/components/FileUploader/FileUploaderFile.js +40 -35
- package/components/FileUploader/FileUploaderFile.js.map +1 -1
- package/components/FileUploader/FileUploaderFile.styles.d.ts +60 -0
- package/components/FileUploader/FileUploaderFile.styles.js +184 -0
- package/components/FileUploader/FileUploaderFile.styles.js.map +1 -0
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js +28 -22
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.js.map +1 -1
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.d.ts +34 -0
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js +103 -0
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.styles.js.map +1 -0
- package/components/FileUploader/FileUploaderFileStatusIcon.js +8 -3
- package/components/FileUploader/FileUploaderFileStatusIcon.js.map +1 -1
- package/components/GlobalLoader/GlobalLoaderView.js +19 -20
- package/components/GlobalLoader/GlobalLoaderView.js.map +1 -1
- package/components/GlobalLoader/GlobalLoaderView.styles.d.ts +17 -0
- package/components/GlobalLoader/GlobalLoaderView.styles.js +70 -0
- package/components/GlobalLoader/GlobalLoaderView.styles.js.map +1 -0
- package/components/Group/Group.d.ts +3 -0
- package/components/Group/Group.js +12 -10
- package/components/Group/Group.js.map +1 -1
- package/components/Group/Group.styles.d.ts +8 -0
- package/components/Group/Group.styles.js +30 -0
- package/components/Group/Group.styles.js.map +1 -0
- package/components/Hint/Hint.d.ts +3 -0
- package/components/Hint/Hint.js +10 -10
- package/components/Hint/Hint.js.map +1 -1
- package/components/Hint/Hint.styles.d.ts +5 -0
- package/components/Hint/Hint.styles.js +18 -0
- package/components/Hint/Hint.styles.js.map +1 -0
- package/components/Input/Input.d.ts +4 -0
- package/components/Input/Input.js +28 -20
- package/components/Input/Input.js.map +1 -1
- package/components/Input/Input.styles.d.ts +21 -0
- package/components/Input/Input.styles.js +68 -0
- package/components/Input/Input.styles.js.map +1 -0
- package/components/Input/InputLayout/InputLayout.js +4 -2
- package/components/Input/InputLayout/InputLayout.js.map +1 -1
- package/components/Input/InputLayout/InputLayout.styles.d.ts +18 -0
- package/components/Input/InputLayout/InputLayout.styles.js +59 -0
- package/components/Input/InputLayout/InputLayout.styles.js.map +1 -0
- package/components/Input/InputLayout/InputLayoutAside.js +4 -2
- package/components/Input/InputLayout/InputLayoutAside.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAsideCounter.js +11 -9
- package/components/Input/InputLayout/InputLayoutAsideCounter.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAsideIcon.js +5 -3
- package/components/Input/InputLayout/InputLayoutAsideIcon.js.map +1 -1
- package/components/Input/InputLayout/InputLayoutAsideText.js +6 -4
- package/components/Input/InputLayout/InputLayoutAsideText.js.map +1 -1
- package/components/Kebab/Kebab.d.ts +3 -0
- package/components/Kebab/Kebab.js +6 -6
- package/components/Kebab/Kebab.js.map +1 -1
- package/components/Kebab/Kebab.styles.d.ts +11 -0
- package/components/Kebab/Kebab.styles.js +36 -0
- package/components/Kebab/Kebab.styles.js.map +1 -0
- package/components/Link/Link.d.ts +3 -0
- package/components/Link/Link.js +24 -25
- package/components/Link/Link.js.map +1 -1
- package/components/Link/Link.mixins.d.ts +2 -0
- package/components/Link/Link.mixins.js +7 -0
- package/components/Link/Link.mixins.js.map +1 -0
- package/components/Link/Link.styles.d.ts +24 -0
- package/components/Link/Link.styles.js +82 -0
- package/components/Link/Link.styles.js.map +1 -0
- package/components/Link/LinkIcon.js +8 -4
- package/components/Link/LinkIcon.js.map +1 -1
- package/components/Loader/Loader.d.ts +5 -0
- package/components/Loader/Loader.js +16 -8
- package/components/Loader/Loader.js.map +1 -1
- package/components/Loader/Loader.styles.d.ts +8 -0
- package/components/Loader/Loader.styles.js +27 -0
- package/components/Loader/Loader.styles.js.map +1 -0
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js +6 -4
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.js.map +1 -1
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.d.ts +6 -0
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js +18 -0
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.styles.js.map +1 -0
- package/components/MaskedInput/MaskedInput.styles.d.ts +7 -0
- package/components/MaskedInput/MaskedInput.styles.js +19 -0
- package/components/MaskedInput/MaskedInput.styles.js.map +1 -0
- package/components/MaskedInput/MaskedInputLegacy.js +8 -4
- package/components/MaskedInput/MaskedInputLegacy.js.map +1 -1
- package/components/MaskedInputV2/MaskedInputV2.js +8 -4
- package/components/MaskedInputV2/MaskedInputV2.js.map +1 -1
- package/components/MaskedInputV2/MaskedInputV2.styles.d.ts +7 -0
- package/components/MaskedInputV2/MaskedInputV2.styles.js +19 -0
- package/components/MaskedInputV2/MaskedInputV2.styles.js.map +1 -0
- package/components/MaskedInputV2/internal/MaskOverlay.js +13 -7
- package/components/MaskedInputV2/internal/MaskOverlay.js.map +1 -1
- package/components/MaskedInputV2/internal/MaskedCore.js +10 -6
- package/components/MaskedInputV2/internal/MaskedCore.js.map +1 -1
- package/components/MaskedInputV2/internal/MaskedInternal.styles.d.ts +15 -0
- package/components/MaskedInputV2/internal/MaskedInternal.styles.js +34 -0
- package/components/MaskedInputV2/internal/MaskedInternal.styles.js.map +1 -0
- package/components/MaskedInputV2/internal/useMaskedCoreHandlers.d.ts +1 -1
- package/components/MaskedInputV2/internal/useMaskedCoreHandlers.js +14 -6
- package/components/MaskedInputV2/internal/useMaskedCoreHandlers.js.map +1 -1
- package/components/MaskedInputV2/react-imask/input.d.ts +1 -1
- package/components/MenuFooter/MenuFooter.js +14 -10
- package/components/MenuFooter/MenuFooter.js.map +1 -1
- package/components/MenuFooter/MenuFooter.mixins.d.ts +2 -8
- package/components/MenuFooter/MenuFooter.mixins.js +4 -8
- package/components/MenuFooter/MenuFooter.mixins.js.map +1 -1
- package/components/MenuFooter/MenuFooter.styles.d.ts +10 -0
- package/components/MenuFooter/MenuFooter.styles.js +34 -0
- package/components/MenuFooter/MenuFooter.styles.js.map +1 -0
- package/components/MenuHeader/MenuHeader.js +13 -9
- package/components/MenuHeader/MenuHeader.js.map +1 -1
- package/components/MenuHeader/MenuHeader.mixins.d.ts +2 -8
- package/components/MenuHeader/MenuHeader.mixins.js +4 -8
- package/components/MenuHeader/MenuHeader.mixins.js.map +1 -1
- package/components/MenuHeader/MenuHeader.styles.d.ts +10 -0
- package/components/MenuHeader/MenuHeader.styles.js +34 -0
- package/components/MenuHeader/MenuHeader.styles.js.map +1 -0
- package/components/MenuItem/MenuItem.d.ts +3 -0
- package/components/MenuItem/MenuItem.js +30 -30
- package/components/MenuItem/MenuItem.js.map +1 -1
- package/components/MenuItem/MenuItem.mixins.d.ts +4 -12
- package/components/MenuItem/MenuItem.mixins.js +19 -12
- package/components/MenuItem/MenuItem.mixins.js.map +1 -1
- package/components/MenuItem/MenuItem.styles.d.ts +29 -0
- package/components/MenuItem/MenuItem.styles.js +88 -0
- package/components/MenuItem/MenuItem.styles.js.map +1 -0
- package/components/MenuSeparator/MenuSeparator.js +13 -7
- package/components/MenuSeparator/MenuSeparator.js.map +1 -1
- package/components/MenuSeparator/MenuSeparator.styles.d.ts +5 -0
- package/components/MenuSeparator/MenuSeparator.styles.js +18 -0
- package/components/MenuSeparator/MenuSeparator.styles.js.map +1 -0
- package/components/MiniModal/MiniModal.styles.d.ts +11 -0
- package/components/MiniModal/MiniModal.styles.js +37 -0
- package/components/MiniModal/MiniModal.styles.js.map +1 -0
- package/components/MiniModal/MiniModalBody.js +8 -2
- package/components/MiniModal/MiniModalBody.js.map +1 -1
- package/components/MiniModal/MiniModalFooter.js +8 -4
- package/components/MiniModal/MiniModalFooter.js.map +1 -1
- package/components/MiniModal/MiniModalHeader.js +10 -6
- package/components/MiniModal/MiniModalHeader.js.map +1 -1
- package/components/MiniModal/MiniModalIndent.js +7 -3
- package/components/MiniModal/MiniModalIndent.js.map +1 -1
- package/components/MiniModal/getMiniModalTheme.d.ts +2 -1
- package/components/MiniModal/getMiniModalTheme.js +2 -3
- package/components/MiniModal/getMiniModalTheme.js.map +1 -1
- package/components/Modal/Modal.d.ts +3 -0
- package/components/Modal/Modal.js +26 -26
- package/components/Modal/Modal.js.map +1 -1
- package/components/Modal/Modal.styles.d.ts +55 -0
- package/components/Modal/Modal.styles.js +167 -0
- package/components/Modal/Modal.styles.js.map +1 -0
- package/components/Modal/ModalBody.d.ts +3 -0
- package/components/Modal/ModalBody.js +12 -10
- package/components/Modal/ModalBody.js.map +1 -1
- package/components/Modal/ModalClose.js +19 -14
- package/components/Modal/ModalClose.js.map +1 -1
- package/components/Modal/ModalFooter.js +5 -3
- package/components/Modal/ModalFooter.js.map +1 -1
- package/components/Modal/ModalHeader.js +5 -3
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Modal/ModalSeparator.js +9 -5
- package/components/Modal/ModalSeparator.js.map +1 -1
- package/components/Modal/getModalBodyTheme.d.ts +2 -1
- package/components/Modal/getModalBodyTheme.js +2 -3
- package/components/Modal/getModalBodyTheme.js.map +1 -1
- package/components/Modal/getModalTheme.d.ts +2 -1
- package/components/Modal/getModalTheme.js +2 -3
- package/components/Modal/getModalTheme.js.map +1 -1
- package/components/Paging/Paging.d.ts +4 -0
- package/components/Paging/Paging.js +44 -36
- package/components/Paging/Paging.js.map +1 -1
- package/components/Paging/Paging.styles.d.ts +32 -0
- package/components/Paging/Paging.styles.js +99 -0
- package/components/Paging/Paging.styles.js.map +1 -0
- package/components/PasswordInput/PasswordInput.d.ts +4 -0
- package/components/PasswordInput/PasswordInput.js +17 -10
- package/components/PasswordInput/PasswordInput.js.map +1 -1
- package/components/PasswordInput/PasswordInput.styles.d.ts +11 -0
- package/components/PasswordInput/PasswordInput.styles.js +36 -0
- package/components/PasswordInput/PasswordInput.styles.js.map +1 -0
- package/components/Radio/Radio.d.ts +4 -0
- package/components/Radio/Radio.js +38 -33
- package/components/Radio/Radio.js.map +1 -1
- package/components/Radio/Radio.mixins.d.ts +7 -39
- package/components/Radio/Radio.mixins.js +23 -37
- package/components/Radio/Radio.mixins.js.map +1 -1
- package/components/Radio/Radio.styles.d.ts +34 -0
- package/components/Radio/Radio.styles.js +100 -0
- package/components/Radio/Radio.styles.js.map +1 -0
- package/components/RadioGroup/RadioGroup.d.ts +3 -0
- package/components/RadioGroup/RadioGroup.js +10 -8
- package/components/RadioGroup/RadioGroup.js.map +1 -1
- package/components/RadioGroup/RadioGroup.styles.d.ts +6 -0
- package/components/RadioGroup/RadioGroup.styles.js +24 -0
- package/components/RadioGroup/RadioGroup.styles.js.map +1 -0
- package/components/ScrollContainer/ScrollBar.d.ts +6 -1
- package/components/ScrollContainer/ScrollBar.js +33 -25
- package/components/ScrollContainer/ScrollBar.js.map +1 -1
- package/components/ScrollContainer/ScrollContainer.d.ts +3 -0
- package/components/ScrollContainer/ScrollContainer.js +4 -4
- package/components/ScrollContainer/ScrollContainer.js.map +1 -1
- package/components/ScrollContainer/ScrollContainer.styles.d.ts +21 -0
- package/components/ScrollContainer/ScrollContainer.styles.js +52 -0
- package/components/ScrollContainer/ScrollContainer.styles.js.map +1 -0
- package/components/Select/Select.d.ts +4 -0
- package/components/Select/Select.js +24 -25
- package/components/Select/Select.js.map +1 -1
- package/components/Select/Select.styles.d.ts +18 -0
- package/components/Select/Select.styles.js +57 -0
- package/components/Select/Select.styles.js.map +1 -0
- package/components/Select/selectTheme.d.ts +3 -1
- package/components/Select/selectTheme.js +7 -8
- package/components/Select/selectTheme.js.map +1 -1
- package/components/SidePage/SidePage.d.ts +5 -0
- package/components/SidePage/SidePage.js +29 -21
- package/components/SidePage/SidePage.js.map +1 -1
- package/components/SidePage/SidePage.styles.d.ts +50 -0
- package/components/SidePage/SidePage.styles.js +158 -0
- package/components/SidePage/SidePage.styles.js.map +1 -0
- package/components/SidePage/SidePageBody.d.ts +3 -0
- package/components/SidePage/SidePageBody.js +11 -5
- package/components/SidePage/SidePageBody.js.map +1 -1
- package/components/SidePage/SidePageCloseButton.js +10 -7
- package/components/SidePage/SidePageCloseButton.js.map +1 -1
- package/components/SidePage/SidePageContainer.d.ts +4 -0
- package/components/SidePage/SidePageContainer.js +17 -10
- package/components/SidePage/SidePageContainer.js.map +1 -1
- package/components/SidePage/SidePageFooter.d.ts +6 -1
- package/components/SidePage/SidePageFooter.js +18 -10
- package/components/SidePage/SidePageFooter.js.map +1 -1
- package/components/SidePage/SidePageHeader.d.ts +3 -0
- package/components/SidePage/SidePageHeader.js +16 -14
- package/components/SidePage/SidePageHeader.js.map +1 -1
- package/components/Spinner/Spinner.d.ts +5 -0
- package/components/Spinner/Spinner.js +19 -9
- package/components/Spinner/Spinner.js.map +1 -1
- package/components/Spinner/Spinner.styles.d.ts +13 -0
- package/components/Spinner/Spinner.styles.js +43 -0
- package/components/Spinner/Spinner.styles.js.map +1 -0
- package/components/Sticky/Sticky.d.ts +4 -0
- package/components/Sticky/Sticky.js +10 -7
- package/components/Sticky/Sticky.js.map +1 -1
- package/components/Sticky/Sticky.styles.d.ts +7 -0
- package/components/Sticky/Sticky.styles.js +27 -0
- package/components/Sticky/Sticky.styles.js.map +1 -0
- package/components/Switcher/Switcher.d.ts +3 -0
- package/components/Switcher/Switcher.js +13 -11
- package/components/Switcher/Switcher.js.map +1 -1
- package/components/Switcher/Switcher.styles.d.ts +12 -0
- package/components/Switcher/Switcher.styles.js +39 -0
- package/components/Switcher/Switcher.styles.js.map +1 -0
- package/components/Switcher/switcherTheme.d.ts +2 -1
- package/components/Switcher/switcherTheme.js +2 -3
- package/components/Switcher/switcherTheme.js.map +1 -1
- package/components/Tabs/Indicator.d.ts +3 -0
- package/components/Tabs/Indicator.js +3 -3
- package/components/Tabs/Indicator.js.map +1 -1
- package/components/Tabs/Indicator.styles.d.ts +8 -0
- package/components/Tabs/Indicator.styles.js +27 -0
- package/components/Tabs/Indicator.styles.js.map +1 -0
- package/components/Tabs/Tab.d.ts +8 -1
- package/components/Tabs/Tab.js +33 -23
- package/components/Tabs/Tab.js.map +1 -1
- package/components/Tabs/Tab.styles.d.ts +33 -0
- package/components/Tabs/Tab.styles.js +105 -0
- package/components/Tabs/Tab.styles.js.map +1 -0
- package/components/Tabs/Tabs.d.ts +4 -0
- package/components/Tabs/Tabs.js +30 -25
- package/components/Tabs/Tabs.js.map +1 -1
- package/components/Tabs/Tabs.styles.d.ts +7 -0
- package/components/Tabs/Tabs.styles.js +26 -0
- package/components/Tabs/Tabs.styles.js.map +1 -0
- package/components/Textarea/Textarea.d.ts +4 -1
- package/components/Textarea/Textarea.js +19 -19
- package/components/Textarea/Textarea.js.map +1 -1
- package/components/Textarea/Textarea.mixins.d.ts +2 -8
- package/components/Textarea/Textarea.mixins.js +6 -8
- package/components/Textarea/Textarea.mixins.js.map +1 -1
- package/components/Textarea/Textarea.styles.d.ts +23 -0
- package/components/Textarea/Textarea.styles.js +73 -0
- package/components/Textarea/Textarea.styles.js.map +1 -0
- package/components/Textarea/TextareaCounter.js +9 -7
- package/components/Textarea/TextareaCounter.js.map +1 -1
- package/components/TimePicker/TimePicker.js +6 -4
- package/components/TimePicker/TimePicker.js.map +1 -1
- package/components/TimePicker/TimePicker.styles.d.ts +12 -0
- package/components/TimePicker/TimePicker.styles.js +39 -0
- package/components/TimePicker/TimePicker.styles.js.map +1 -0
- package/components/TimePicker/TimePickerItems.js +16 -12
- package/components/TimePicker/TimePickerItems.js.map +1 -1
- package/components/TimePicker/TimePickerPopup.js +4 -2
- package/components/TimePicker/TimePickerPopup.js.map +1 -1
- package/components/TimePicker/helpers/TimePicker.constants.d.ts +0 -1
- package/components/TimePicker/helpers/TimePicker.constants.js +0 -3
- package/components/TimePicker/helpers/TimePicker.constants.js.map +1 -1
- package/components/TimePicker/helpers/TimePicker.value.d.ts +1 -0
- package/components/TimePicker/helpers/TimePicker.value.js +5 -0
- package/components/TimePicker/helpers/TimePicker.value.js.map +1 -1
- package/components/Toast/Toast.d.ts +2 -0
- package/components/Toast/Toast.js +10 -7
- package/components/Toast/Toast.js.map +1 -1
- package/components/Toast/Toast.styles.d.ts +6 -0
- package/components/Toast/Toast.styles.js +24 -0
- package/components/Toast/Toast.styles.js.map +1 -0
- package/components/Toast/ToastView.d.ts +3 -0
- package/components/Toast/ToastView.js +11 -9
- package/components/Toast/ToastView.js.map +1 -1
- package/components/Toast/ToastView.styles.d.ts +18 -0
- package/components/Toast/ToastView.styles.js +67 -0
- package/components/Toast/ToastView.styles.js.map +1 -0
- package/components/Toggle/Toggle.classes.js +1 -1
- package/components/Toggle/Toggle.classes.js.map +1 -1
- package/components/Toggle/Toggle.d.ts +6 -1
- package/components/Toggle/Toggle.js +60 -52
- package/components/Toggle/Toggle.js.map +1 -1
- package/components/Toggle/Toggle.mixins.d.ts +8 -0
- package/components/Toggle/Toggle.mixins.js +32 -0
- package/components/Toggle/Toggle.mixins.js.map +1 -0
- package/components/Toggle/Toggle.styles.d.ts +49 -0
- package/components/Toggle/Toggle.styles.js +147 -0
- package/components/Toggle/Toggle.styles.js.map +1 -0
- package/components/Token/Token.d.ts +5 -0
- package/components/Token/Token.js +15 -4
- package/components/Token/Token.js.map +1 -1
- package/components/Token/Token.mixins.d.ts +1 -6
- package/components/Token/Token.mixins.js +3 -6
- package/components/Token/Token.mixins.js.map +1 -1
- package/components/Token/Token.styles.d.ts +23 -0
- package/components/Token/Token.styles.js +67 -0
- package/components/Token/Token.styles.js.map +1 -0
- package/components/Token/TokenView.js +12 -8
- package/components/Token/TokenView.js.map +1 -1
- package/components/TokenInput/TextWidthHelper.d.ts +3 -0
- package/components/TokenInput/TextWidthHelper.js +17 -7
- package/components/TokenInput/TextWidthHelper.js.map +1 -1
- package/components/TokenInput/TokenInput.d.ts +3 -0
- package/components/TokenInput/TokenInput.js +23 -22
- package/components/TokenInput/TokenInput.js.map +1 -1
- package/components/TokenInput/TokenInput.mixins.d.ts +2 -8
- package/components/TokenInput/TokenInput.mixins.js +6 -8
- package/components/TokenInput/TokenInput.mixins.js.map +1 -1
- package/components/TokenInput/TokenInput.styles.d.ts +22 -0
- package/components/TokenInput/TokenInput.styles.js +71 -0
- package/components/TokenInput/TokenInput.styles.js.map +1 -0
- package/components/TokenInput/TokenInputMenu.js +3 -5
- package/components/TokenInput/TokenInputMenu.js.map +1 -1
- package/components/Tooltip/Tooltip.d.ts +3 -0
- package/components/Tooltip/Tooltip.js +41 -28
- package/components/Tooltip/Tooltip.js.map +1 -1
- package/components/Tooltip/Tooltip.styles.d.ts +11 -0
- package/components/Tooltip/Tooltip.styles.js +36 -0
- package/components/Tooltip/Tooltip.styles.js.map +1 -0
- package/components/TooltipMenu/TooltipMenu.js +6 -10
- package/components/TooltipMenu/TooltipMenu.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/index.js.map +1 -1
- package/internal/ClearCrossIcon/ClearCrossIcon.js +11 -8
- package/internal/ClearCrossIcon/ClearCrossIcon.js.map +1 -1
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.d.ts +12 -0
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.js +36 -0
- package/internal/ClearCrossIcon/ClearCrossIcon.styles.js.map +1 -0
- package/internal/CloseButtonIcon/CloseButtonIcon.js +13 -15
- package/internal/CloseButtonIcon/CloseButtonIcon.js.map +1 -1
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.d.ts +8 -0
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.js +24 -0
- package/internal/CloseButtonIcon/CloseButtonIcon.styles.js.map +1 -0
- package/internal/CommonWrapper/CommonWrapper.d.ts +2 -6
- package/internal/CommonWrapper/CommonWrapper.js +7 -29
- package/internal/CommonWrapper/CommonWrapper.js.map +1 -1
- package/internal/CustomComboBox/ComboBoxView.d.ts +4 -0
- package/internal/CustomComboBox/ComboBoxView.js +9 -6
- package/internal/CustomComboBox/ComboBoxView.js.map +1 -1
- package/internal/CustomComboBox/CustomComboBox.styles.d.ts +4 -0
- package/internal/CustomComboBox/CustomComboBox.styles.js +18 -0
- package/internal/CustomComboBox/CustomComboBox.styles.js.map +1 -0
- package/internal/CustomComboBox/getComboBoxTheme.d.ts +2 -1
- package/internal/CustomComboBox/getComboBoxTheme.js +2 -3
- package/internal/CustomComboBox/getComboBoxTheme.js.map +1 -1
- package/internal/DateSelect/DateSelect.d.ts +3 -0
- package/internal/DateSelect/DateSelect.js +7 -5
- package/internal/DateSelect/DateSelect.js.map +1 -1
- package/internal/DateSelect/DateSelect.styles.d.ts +9 -0
- package/internal/DateSelect/DateSelect.styles.js +24 -0
- package/internal/DateSelect/DateSelect.styles.js.map +1 -0
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.d.ts +2 -1
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js +13 -8
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.js.map +1 -1
- package/internal/InputLikeText/InputLikeText.d.ts +4 -0
- package/internal/InputLikeText/InputLikeText.js +29 -28
- package/internal/InputLikeText/InputLikeText.js.map +1 -1
- package/internal/InputLikeText/InputLikeText.styles.d.ts +8 -0
- package/internal/InputLikeText/InputLikeText.styles.js +30 -0
- package/internal/InputLikeText/InputLikeText.styles.js.map +1 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.d.ts +5 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js +33 -33
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.js.map +1 -1
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.d.ts +3 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js +15 -0
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.styles.js.map +1 -0
- package/internal/MaskCharLowLine/MaskCharLowLine.js +4 -2
- package/internal/MaskCharLowLine/MaskCharLowLine.js.map +1 -1
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.d.ts +3 -0
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.js +15 -0
- package/internal/MaskCharLowLine/MaskCharLowLine.styles.js.map +1 -0
- package/internal/Menu/Menu.d.ts +3 -0
- package/internal/Menu/Menu.js +24 -28
- package/internal/Menu/Menu.js.map +1 -1
- package/internal/Menu/Menu.styles.d.ts +16 -0
- package/internal/Menu/Menu.styles.js +51 -0
- package/internal/Menu/Menu.styles.js.map +1 -0
- package/internal/MenuMessage/MenuMessage.js +12 -10
- package/internal/MenuMessage/MenuMessage.js.map +1 -1
- package/internal/MenuMessage/MenuMessage.styles.d.ts +11 -0
- package/internal/MenuMessage/MenuMessage.styles.js +41 -0
- package/internal/MenuMessage/MenuMessage.styles.js.map +1 -0
- package/internal/MobilePopup/MobilePopup.d.ts +3 -0
- package/internal/MobilePopup/MobilePopup.js +19 -17
- package/internal/MobilePopup/MobilePopup.js.map +1 -1
- package/internal/MobilePopup/MobilePopup.styles.d.ts +17 -0
- package/internal/MobilePopup/MobilePopup.styles.js +57 -0
- package/internal/MobilePopup/MobilePopup.styles.js.map +1 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.d.ts +2 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js +16 -5
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.js.map +1 -1
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.d.ts +7 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js +25 -0
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.styles.js.map +1 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.d.ts +3 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js +28 -18
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.js.map +1 -1
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.d.ts +14 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js +47 -0
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.styles.js.map +1 -0
- package/internal/NativeDateInput/NativeDateInput.d.ts +2 -0
- package/internal/NativeDateInput/NativeDateInput.js +13 -2
- package/internal/NativeDateInput/NativeDateInput.js.map +1 -1
- package/internal/NativeDateInput/NativeDateInput.styles.d.ts +3 -0
- package/internal/NativeDateInput/NativeDateInput.styles.js +15 -0
- package/internal/NativeDateInput/NativeDateInput.styles.js.map +1 -0
- package/internal/NativeTimeInput/NativeTimeInput.js +4 -2
- package/internal/NativeTimeInput/NativeTimeInput.js.map +1 -1
- package/internal/NativeTimeInput/NativeTimeInput.styles.d.ts +3 -0
- package/internal/NativeTimeInput/NativeTimeInput.styles.js +15 -0
- package/internal/NativeTimeInput/NativeTimeInput.styles.js.map +1 -0
- package/internal/Popup/Popup.d.ts +3 -0
- package/internal/Popup/Popup.js +20 -22
- package/internal/Popup/Popup.js.map +1 -1
- package/internal/Popup/Popup.styles.d.ts +22 -0
- package/internal/Popup/Popup.styles.js +69 -0
- package/internal/Popup/Popup.styles.js.map +1 -0
- package/internal/Popup/PopupPin.d.ts +3 -0
- package/internal/Popup/PopupPin.js +8 -8
- package/internal/Popup/PopupPin.js.map +1 -1
- package/internal/Popup/PopupPin.styles.d.ts +9 -0
- package/internal/Popup/PopupPin.styles.js +33 -0
- package/internal/Popup/PopupPin.styles.js.map +1 -0
- package/internal/PopupMenu/PopupMenu.d.ts +2 -0
- package/internal/PopupMenu/PopupMenu.js +8 -9
- package/internal/PopupMenu/PopupMenu.js.map +1 -1
- package/internal/PopupMenu/PopupMenu.styles.d.ts +4 -0
- package/internal/PopupMenu/PopupMenu.styles.js +18 -0
- package/internal/PopupMenu/PopupMenu.styles.js.map +1 -0
- package/internal/RenderContainer/RenderContainer.d.ts +0 -2
- package/internal/RenderContainer/RenderContainer.js +3 -38
- package/internal/RenderContainer/RenderContainer.js.map +1 -1
- package/internal/RenderContainer/RenderInnerContainer.js +3 -6
- package/internal/RenderContainer/RenderInnerContainer.js.map +1 -1
- package/internal/ResizeDetector/ResizeDetector.d.ts +3 -0
- package/internal/ResizeDetector/ResizeDetector.js +18 -8
- package/internal/ResizeDetector/ResizeDetector.js.map +1 -1
- package/internal/ResizeDetector/ResizeDetector.styles.d.ts +7 -0
- package/internal/ResizeDetector/ResizeDetector.styles.js +27 -0
- package/internal/ResizeDetector/ResizeDetector.styles.js.map +1 -0
- package/internal/SpinnerIcon/SpinnerIcon.js +7 -5
- package/internal/SpinnerIcon/SpinnerIcon.js.map +1 -1
- package/internal/SpinnerIcon/SpinnerIcon.styles.d.ts +6 -0
- package/internal/SpinnerIcon/SpinnerIcon.styles.js +24 -0
- package/internal/SpinnerIcon/SpinnerIcon.styles.js.map +1 -0
- package/internal/TextWidthHelper/TextWidthHelper.d.ts +2 -0
- package/internal/TextWidthHelper/TextWidthHelper.js +14 -3
- package/internal/TextWidthHelper/TextWidthHelper.js.map +1 -1
- package/internal/TextWidthHelper/TextWidthHelper.styles.d.ts +4 -0
- package/internal/TextWidthHelper/TextWidthHelper.styles.js +18 -0
- package/internal/TextWidthHelper/TextWidthHelper.styles.js.map +1 -0
- package/internal/TimeInput/TimeFragments.js +26 -22
- package/internal/TimeInput/TimeFragments.js.map +1 -1
- package/internal/TimeInput/TimeFragments.styles.d.ts +32 -0
- package/internal/TimeInput/TimeFragments.styles.js +78 -0
- package/internal/TimeInput/TimeFragments.styles.js.map +1 -0
- package/internal/TimeInput/TimeInput.js +8 -6
- package/internal/TimeInput/TimeInput.js.map +1 -1
- package/internal/TimeInput/TimeInput.styles.d.ts +7 -0
- package/internal/TimeInput/TimeInput.styles.js +24 -0
- package/internal/TimeInput/TimeInput.styles.js.map +1 -0
- package/internal/icons2022/BaseIcon.js +4 -2
- package/internal/icons2022/BaseIcon.js.map +1 -1
- package/internal/icons2022/BaseIcon.styles.d.ts +3 -0
- package/internal/icons2022/BaseIcon.styles.js +16 -0
- package/internal/icons2022/BaseIcon.styles.js.map +1 -0
- package/internal/icons2022/LoadingIcon.js +7 -3
- package/internal/icons2022/LoadingIcon.js.map +1 -1
- package/internal/themes/BasicTheme.d.ts +5 -5
- package/internal/themes/BasicTheme.js +12 -42
- package/internal/themes/BasicTheme.js.map +1 -1
- package/internal/themes/DarkTheme6_0.js +2 -0
- package/internal/themes/DarkTheme6_0.js.map +1 -1
- package/lib/Upgrades.d.ts +6 -0
- package/lib/Upgrades.js +34 -0
- package/lib/Upgrades.js.map +1 -0
- package/lib/renderEnvironment/RenderEnvironmentContext.d.ts +4 -0
- package/lib/renderEnvironment/RenderEnvironmentContext.js +16 -21
- package/lib/renderEnvironment/RenderEnvironmentContext.js.map +1 -1
- package/lib/renderEnvironment/RenderEnvironmentDecorator.js +3 -1
- package/lib/renderEnvironment/RenderEnvironmentDecorator.js.map +1 -1
- package/lib/styles/Mixins.d.ts +2 -0
- package/lib/styles/Mixins.js +7 -0
- package/lib/styles/Mixins.js.map +1 -0
- package/lib/styles/UiFont.d.ts +3 -0
- package/lib/styles/UiFont.js +18 -0
- package/lib/styles/UiFont.js.map +1 -0
- package/lib/styles/getLabGrotesqueBaselineCompensation.d.ts +1 -6
- package/lib/styles/getLabGrotesqueBaselineCompensation.js +6 -23
- package/lib/styles/getLabGrotesqueBaselineCompensation.js.map +1 -1
- package/lib/theming/AnimationKeyframes.d.ts +7 -0
- package/lib/theming/AnimationKeyframes.js +24 -0
- package/lib/theming/AnimationKeyframes.js.map +1 -0
- package/lib/theming/Emotion.d.ts +15 -0
- package/lib/theming/Emotion.js +72 -0
- package/lib/theming/Emotion.js.map +1 -0
- package/lib/theming/ThemeFactory.d.ts +10 -1
- package/lib/theming/ThemeFactory.js +29 -1
- package/lib/theming/ThemeFactory.js.map +1 -1
- package/package.json +7 -22
- package/typings/stylis-plugin-extra-scope.d.ts +3 -0
- package/components/Autocomplete/Autocomplete.css.d.ts +0 -6
- package/components/Autocomplete/Autocomplete.css.js +0 -4
- package/components/Autocomplete/Autocomplete.css.js.map +0 -1
- package/components/Button/Button.css.d.ts +0 -166
- package/components/Button/Button.css.js +0 -77
- package/components/Button/Button.css.js.map +0 -1
- package/components/Button/ButtonIcon.css.d.ts +0 -28
- package/components/Button/ButtonIcon.css.js +0 -15
- package/components/Button/ButtonIcon.css.js.map +0 -1
- package/components/Calendar/Calendar.css.d.ts +0 -8
- package/components/Calendar/Calendar.css.js +0 -5
- package/components/Calendar/Calendar.css.js.map +0 -1
- package/components/Calendar/DayCellView.css.d.ts +0 -14
- package/components/Calendar/DayCellView.css.js +0 -8
- package/components/Calendar/DayCellView.css.js.map +0 -1
- package/components/Calendar/MonthView.css.d.ts +0 -20
- package/components/Calendar/MonthView.css.js +0 -11
- package/components/Calendar/MonthView.css.js.map +0 -1
- package/components/Center/Center.css.d.ts +0 -12
- package/components/Center/Center.css.js +0 -7
- package/components/Center/Center.css.js.map +0 -1
- package/components/Checkbox/Checkbox.css.d.ts +0 -62
- package/components/Checkbox/Checkbox.css.js +0 -32
- package/components/Checkbox/Checkbox.css.js.map +0 -1
- package/components/DateInput/DateFragmentsView.css.d.ts +0 -10
- package/components/DateInput/DateFragmentsView.css.js +0 -6
- package/components/DateInput/DateFragmentsView.css.js.map +0 -1
- package/components/DateInput/DateInput.css.d.ts +0 -16
- package/components/DateInput/DateInput.css.js +0 -9
- package/components/DateInput/DateInput.css.js.map +0 -1
- package/components/DatePicker/DatePicker.css.d.ts +0 -6
- package/components/DatePicker/DatePicker.css.js +0 -4
- package/components/DatePicker/DatePicker.css.js.map +0 -1
- package/components/DatePicker/MobilePicker.css.d.ts +0 -4
- package/components/DatePicker/MobilePicker.css.js +0 -3
- package/components/DatePicker/MobilePicker.css.js.map +0 -1
- package/components/DateRangePicker/DateRangePicker.css.d.ts +0 -34
- package/components/DateRangePicker/DateRangePicker.css.js +0 -18
- package/components/DateRangePicker/DateRangePicker.css.js.map +0 -1
- package/components/FileUploader/FileUploader.css.d.ts +0 -133
- package/components/FileUploader/FileUploader.css.js +0 -65
- package/components/FileUploader/FileUploader.css.js.map +0 -1
- package/components/FileUploader/FileUploaderFile.css.d.ts +0 -111
- package/components/FileUploader/FileUploaderFile.css.js +0 -56
- package/components/FileUploader/FileUploaderFile.css.js.map +0 -1
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.d.ts +0 -60
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.js +0 -31
- package/components/FileUploader/FileUploaderFileList/FileUploaderFileList.css.js.map +0 -1
- package/components/GlobalLoader/GlobalLoaderView.css.d.ts +0 -26
- package/components/GlobalLoader/GlobalLoaderView.css.js +0 -14
- package/components/GlobalLoader/GlobalLoaderView.css.js.map +0 -1
- package/components/Group/Group.css.d.ts +0 -14
- package/components/Group/Group.css.js +0 -8
- package/components/Group/Group.css.js.map +0 -1
- package/components/Hint/Hint.css.d.ts +0 -6
- package/components/Hint/Hint.css.js +0 -4
- package/components/Hint/Hint.css.js.map +0 -1
- package/components/Input/Input.css.d.ts +0 -73
- package/components/Input/Input.css.js +0 -22
- package/components/Input/Input.css.js.map +0 -1
- package/components/Input/InputLayout/InputLayout.css.d.ts +0 -32
- package/components/Input/InputLayout/InputLayout.css.js +0 -18
- package/components/Input/InputLayout/InputLayout.css.js.map +0 -1
- package/components/Kebab/Kebab.css.d.ts +0 -18
- package/components/Kebab/Kebab.css.js +0 -10
- package/components/Kebab/Kebab.css.js.map +0 -1
- package/components/Link/Link.css.d.ts +0 -43
- package/components/Link/Link.css.js +0 -22
- package/components/Link/Link.css.js.map +0 -1
- package/components/Loader/Loader.css.d.ts +0 -12
- package/components/Loader/Loader.css.js +0 -7
- package/components/Loader/Loader.css.js.map +0 -1
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.d.ts +0 -7
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.js +0 -4
- package/components/MaskedInput/ColorableInputElement/ColorableInputElement.css.js.map +0 -1
- package/components/MaskedInput/MaskedInput.css.d.ts +0 -7
- package/components/MaskedInput/MaskedInput.css.js +0 -5
- package/components/MaskedInput/MaskedInput.css.js.map +0 -1
- package/components/MaskedInputV2/MaskedInputV2.css.d.ts +0 -7
- package/components/MaskedInputV2/MaskedInputV2.css.js +0 -5
- package/components/MaskedInputV2/MaskedInputV2.css.js.map +0 -1
- package/components/MaskedInputV2/internal/MaskedInternal.css.d.ts +0 -19
- package/components/MaskedInputV2/internal/MaskedInternal.css.js +0 -8
- package/components/MaskedInputV2/internal/MaskedInternal.css.js.map +0 -1
- package/components/MenuFooter/MenuFooter.css.d.ts +0 -16
- package/components/MenuFooter/MenuFooter.css.js +0 -9
- package/components/MenuFooter/MenuFooter.css.js.map +0 -1
- package/components/MenuHeader/MenuHeader.css.d.ts +0 -16
- package/components/MenuHeader/MenuHeader.css.js +0 -9
- package/components/MenuHeader/MenuHeader.css.js.map +0 -1
- package/components/MenuItem/MenuItem.css.d.ts +0 -50
- package/components/MenuItem/MenuItem.css.js +0 -26
- package/components/MenuItem/MenuItem.css.js.map +0 -1
- package/components/MenuSeparator/MenuSeparator.css.d.ts +0 -6
- package/components/MenuSeparator/MenuSeparator.css.js +0 -4
- package/components/MenuSeparator/MenuSeparator.css.js.map +0 -1
- package/components/MiniModal/MiniModal.css.d.ts +0 -17
- package/components/MiniModal/MiniModal.css.js +0 -10
- package/components/MiniModal/MiniModal.css.js.map +0 -1
- package/components/Modal/Modal.css.d.ts +0 -102
- package/components/Modal/Modal.css.js +0 -51
- package/components/Modal/Modal.css.js.map +0 -1
- package/components/Paging/Paging.css.d.ts +0 -60
- package/components/Paging/Paging.css.js +0 -31
- package/components/Paging/Paging.css.js.map +0 -1
- package/components/PasswordInput/PasswordInput.css.d.ts +0 -18
- package/components/PasswordInput/PasswordInput.css.js +0 -10
- package/components/PasswordInput/PasswordInput.css.js.map +0 -1
- package/components/Radio/Radio.css.d.ts +0 -61
- package/components/Radio/Radio.css.js +0 -31
- package/components/Radio/Radio.css.js.map +0 -1
- package/components/RadioGroup/RadioGroup.css.d.ts +0 -10
- package/components/RadioGroup/RadioGroup.css.js +0 -6
- package/components/RadioGroup/RadioGroup.css.js.map +0 -1
- package/components/ScrollContainer/ScrollContainer.css.d.ts +0 -31
- package/components/ScrollContainer/ScrollContainer.css.js +0 -14
- package/components/ScrollContainer/ScrollContainer.css.js.map +0 -1
- package/components/Select/Select.css.d.ts +0 -31
- package/components/Select/Select.css.js +0 -16
- package/components/Select/Select.css.js.map +0 -1
- package/components/SidePage/SidePage.css.d.ts +0 -96
- package/components/SidePage/SidePage.css.js +0 -49
- package/components/SidePage/SidePage.css.js.map +0 -1
- package/components/Spinner/Spinner.css.d.ts +0 -22
- package/components/Spinner/Spinner.css.js +0 -12
- package/components/Spinner/Spinner.css.js.map +0 -1
- package/components/Sticky/Sticky.css.d.ts +0 -12
- package/components/Sticky/Sticky.css.js +0 -7
- package/components/Sticky/Sticky.css.js.map +0 -1
- package/components/Switcher/Switcher.css.d.ts +0 -20
- package/components/Switcher/Switcher.css.js +0 -11
- package/components/Switcher/Switcher.css.js.map +0 -1
- package/components/Tabs/Indicator.css.d.ts +0 -12
- package/components/Tabs/Indicator.css.js +0 -7
- package/components/Tabs/Indicator.css.js.map +0 -1
- package/components/Tabs/Tab.css.d.ts +0 -55
- package/components/Tabs/Tab.css.js +0 -28
- package/components/Tabs/Tab.css.js.map +0 -1
- package/components/Tabs/Tabs.css.d.ts +0 -10
- package/components/Tabs/Tabs.css.js +0 -6
- package/components/Tabs/Tabs.css.js.map +0 -1
- package/components/Textarea/Textarea.css.d.ts +0 -42
- package/components/Textarea/Textarea.css.js +0 -22
- package/components/Textarea/Textarea.css.js.map +0 -1
- package/components/ThemeContainer/ThemeContainer.d.ts +0 -16
- package/components/ThemeContainer/ThemeContainer.js +0 -46
- package/components/ThemeContainer/ThemeContainer.js.map +0 -1
- package/components/ThemeContainer/index.d.ts +0 -1
- package/components/ThemeContainer/index.js +0 -2
- package/components/ThemeContainer/index.js.map +0 -1
- package/components/TimePicker/TimePicker.css.d.ts +0 -19
- package/components/TimePicker/TimePicker.css.js +0 -10
- package/components/TimePicker/TimePicker.css.js.map +0 -1
- package/components/Toast/Toast.css.d.ts +0 -10
- package/components/Toast/Toast.css.js +0 -6
- package/components/Toast/Toast.css.js.map +0 -1
- package/components/Toast/ToastView.css.d.ts +0 -31
- package/components/Toast/ToastView.css.js +0 -16
- package/components/Toast/ToastView.css.js.map +0 -1
- package/components/Toggle/Toggle.css.d.ts +0 -93
- package/components/Toggle/Toggle.css.js +0 -48
- package/components/Toggle/Toggle.css.js.map +0 -1
- package/components/Token/Token.css.d.ts +0 -39
- package/components/Token/Token.css.js +0 -20
- package/components/Token/Token.css.js.map +0 -1
- package/components/TokenInput/TokenInput.css.d.ts +0 -40
- package/components/TokenInput/TokenInput.css.js +0 -22
- package/components/TokenInput/TokenInput.css.js.map +0 -1
- package/components/Tooltip/Tooltip.css.d.ts +0 -18
- package/components/Tooltip/Tooltip.css.js +0 -10
- package/components/Tooltip/Tooltip.css.js.map +0 -1
- package/internal/ClearCrossIcon/ClearCrossIcon.css.d.ts +0 -18
- package/internal/ClearCrossIcon/ClearCrossIcon.css.js +0 -10
- package/internal/ClearCrossIcon/ClearCrossIcon.css.js.map +0 -1
- package/internal/CloseButtonIcon/CloseButtonIcon.css.d.ts +0 -14
- package/internal/CloseButtonIcon/CloseButtonIcon.css.js +0 -8
- package/internal/CloseButtonIcon/CloseButtonIcon.css.js.map +0 -1
- package/internal/CustomComboBox/CustomComboBox.css.d.ts +0 -6
- package/internal/CustomComboBox/CustomComboBox.css.js +0 -4
- package/internal/CustomComboBox/CustomComboBox.css.js.map +0 -1
- package/internal/DateSelect/DateSelect.css.d.ts +0 -11
- package/internal/DateSelect/DateSelect.css.js +0 -6
- package/internal/DateSelect/DateSelect.css.js.map +0 -1
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.d.ts +0 -4
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.js +0 -3
- package/internal/HideBodyVerticalScroll/HideBodyVerticalScroll.css.js.map +0 -1
- package/internal/InputLikeText/InputLikeText.css.d.ts +0 -8
- package/internal/InputLikeText/InputLikeText.css.js +0 -5
- package/internal/InputLikeText/InputLikeText.css.js.map +0 -1
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.d.ts +0 -6
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.js +0 -5
- package/internal/InternalTextareaWithLayout/InternalTextareaWithLayout.css.js.map +0 -1
- package/internal/MaskCharLowLine/MaskCharLowLine.css.d.ts +0 -4
- package/internal/MaskCharLowLine/MaskCharLowLine.css.js +0 -3
- package/internal/MaskCharLowLine/MaskCharLowLine.css.js.map +0 -1
- package/internal/Menu/Menu.css.d.ts +0 -28
- package/internal/Menu/Menu.css.js +0 -15
- package/internal/Menu/Menu.css.js.map +0 -1
- package/internal/MenuMessage/MenuMessage.css.d.ts +0 -18
- package/internal/MenuMessage/MenuMessage.css.js +0 -10
- package/internal/MenuMessage/MenuMessage.css.js.map +0 -1
- package/internal/MobilePopup/MobilePopup.css.d.ts +0 -30
- package/internal/MobilePopup/MobilePopup.css.js +0 -16
- package/internal/MobilePopup/MobilePopup.css.js.map +0 -1
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.d.ts +0 -10
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.js +0 -6
- package/internal/MobilePopup/MobilePopupFooter/MobilePopupFooter.css.js.map +0 -1
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.d.ts +0 -24
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.js +0 -13
- package/internal/MobilePopup/MobilePopupHeader/MobilePopupHeader.css.js.map +0 -1
- package/internal/NativeDateInput/NativeDateInput.css.d.ts +0 -4
- package/internal/NativeDateInput/NativeDateInput.css.js +0 -3
- package/internal/NativeDateInput/NativeDateInput.css.js.map +0 -1
- package/internal/NativeTimeInput/NativeTimeInput.css.d.ts +0 -4
- package/internal/NativeTimeInput/NativeTimeInput.css.js +0 -3
- package/internal/NativeTimeInput/NativeTimeInput.css.js.map +0 -1
- package/internal/Popup/Popup.css.d.ts +0 -35
- package/internal/Popup/Popup.css.js +0 -16
- package/internal/Popup/Popup.css.js.map +0 -1
- package/internal/Popup/PopupPin.css.d.ts +0 -16
- package/internal/Popup/PopupPin.css.js +0 -9
- package/internal/Popup/PopupPin.css.js.map +0 -1
- package/internal/PopupMenu/PopupMenu.css.d.ts +0 -6
- package/internal/PopupMenu/PopupMenu.css.js +0 -4
- package/internal/PopupMenu/PopupMenu.css.js.map +0 -1
- package/internal/ResizeDetector/ResizeDetector.css.d.ts +0 -12
- package/internal/ResizeDetector/ResizeDetector.css.js +0 -7
- package/internal/ResizeDetector/ResizeDetector.css.js.map +0 -1
- package/internal/SpinnerIcon/SpinnerIcon.css.d.ts +0 -10
- package/internal/SpinnerIcon/SpinnerIcon.css.js +0 -6
- package/internal/SpinnerIcon/SpinnerIcon.css.js.map +0 -1
- package/internal/TextWidthHelper/TextWidthHelper.css.d.ts +0 -6
- package/internal/TextWidthHelper/TextWidthHelper.css.js +0 -4
- package/internal/TextWidthHelper/TextWidthHelper.css.js.map +0 -1
- package/internal/TimeInput/TimeFragments.css.d.ts +0 -47
- package/internal/TimeInput/TimeFragments.css.js +0 -18
- package/internal/TimeInput/TimeFragments.css.js.map +0 -1
- package/internal/TimeInput/TimeInput.css.d.ts +0 -10
- package/internal/TimeInput/TimeInput.css.js +0 -6
- package/internal/TimeInput/TimeInput.css.js.map +0 -1
- package/internal/icons2022/BaseIcon.css.d.ts +0 -4
- package/internal/icons2022/BaseIcon.css.js +0 -3
- package/internal/icons2022/BaseIcon.css.js.map +0 -1
- package/lib/cx.d.ts +0 -2
- package/lib/cx.js +0 -23
- package/lib/cx.js.map +0 -1
- package/lib/prefix.d.ts +0 -2
- package/lib/prefix.js +0 -22
- package/lib/prefix.js.map +0 -1
- package/lib/styles/LabGrotesqueBaseline.css.d.ts +0 -1
- package/lib/styles/LabGrotesqueBaseline.css.js +0 -0
- package/lib/styles/LabGrotesqueBaseline.css.js.map +0 -1
- package/lib/styles/UiFont.css.d.ts +0 -1
- package/lib/styles/UiFont.css.js +0 -2
- package/lib/styles/UiFont.css.js.map +0 -1
- package/lib/theming/memoizeTheme.d.ts +0 -11
- package/lib/theming/memoizeTheme.js +0 -37
- package/lib/theming/memoizeTheme.js.map +0 -1
- package/lib/theming/themeVars.d.ts +0 -37
- package/lib/theming/themeVars.js +0 -121
- package/lib/theming/themeVars.js.map +0 -1
- package/react-ui.css +0 -6096
- package/theme-loader.js +0 -51
|
@@ -19,20 +19,26 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
19
19
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
20
20
|
};
|
|
21
21
|
import React, { useContext, useRef, useState } from 'react';
|
|
22
|
-
import { cx } from '../../../lib/cx.js';
|
|
23
22
|
import { LocaleContext } from '../../../lib/locale/index.js';
|
|
24
23
|
import { pluralize } from '../../../lib/pluralize.js';
|
|
24
|
+
import { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';
|
|
25
|
+
import { ThemeContext } from '../../../lib/theming/ThemeContext.js';
|
|
25
26
|
import { FileUploaderControlContext } from '../FileUploaderControlContext.js';
|
|
26
27
|
import { FileUploaderFileStatus } from '../fileUtils.js';
|
|
27
28
|
import { useControlLocale } from '../hooks/useControlLocale.js';
|
|
28
29
|
import { useFileUploaderSize } from '../hooks/useFileUploaderSize.js';
|
|
29
|
-
import {
|
|
30
|
+
import { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFileList.styles.js';
|
|
30
31
|
export var FileUploaderFileDataTids = {
|
|
31
32
|
fileList: 'FileUploader__fileList',
|
|
32
33
|
};
|
|
33
34
|
export var FileUploaderFileList = function (props) {
|
|
34
35
|
var renderFile = props.renderFile, size = props.size, _a = props.view, view = _a === void 0 ? 'row' : _a, _b = props.validationSummary, validationSummary = _b === void 0 ? 'auto' : _b, _c = props.validationSummaryStart, validationSummaryStart = _c === void 0 ? 5 : _c, withValidationTooltip = props.withValidationTooltip, validationTooltipPosition = props.validationTooltipPosition, withWarningIcon = props.withWarningIcon, _d = props.disabled, disabled = _d === void 0 ? false : _d, onRemove = props.onRemove;
|
|
35
36
|
var files = useContext(FileUploaderControlContext).files;
|
|
37
|
+
var cx = useEmotion().cx;
|
|
38
|
+
var jsStyles = useStyles(getJsStyles);
|
|
39
|
+
var jsRowStyles = useStyles(getJsRowStyles);
|
|
40
|
+
var jsTileStyles = useStyles(getJsTileStyles);
|
|
41
|
+
var theme = useContext(ThemeContext);
|
|
36
42
|
var locale = useControlLocale();
|
|
37
43
|
var langCode = useContext(LocaleContext).langCode;
|
|
38
44
|
var _e = useState(null), focusedByTab = _e[0], setFocusedByTab = _e[1];
|
|
@@ -61,14 +67,14 @@ export var FileUploaderFileList = function (props) {
|
|
|
61
67
|
var isTileView = view === 'tile';
|
|
62
68
|
var jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;
|
|
63
69
|
var fileWrapperClass = useFileUploaderSize(size, {
|
|
64
|
-
small: jsViewStyles.fileWrapperSmall,
|
|
65
|
-
medium: jsViewStyles.fileWrapperMedium,
|
|
66
|
-
large: jsViewStyles.fileWrapperLarge,
|
|
70
|
+
small: jsViewStyles.fileWrapperSmall(theme),
|
|
71
|
+
medium: jsViewStyles.fileWrapperMedium(theme),
|
|
72
|
+
large: jsViewStyles.fileWrapperLarge(theme),
|
|
67
73
|
});
|
|
68
74
|
var summaryClass = useFileUploaderSize(size, {
|
|
69
|
-
small: jsStyles.summarySmall,
|
|
70
|
-
medium: jsStyles.summaryMedium,
|
|
71
|
-
large: jsStyles.summaryLarge,
|
|
75
|
+
small: jsStyles.summarySmall(theme),
|
|
76
|
+
medium: jsStyles.summaryMedium(theme),
|
|
77
|
+
large: jsStyles.summaryLarge(theme),
|
|
72
78
|
});
|
|
73
79
|
var renderSummary = function () {
|
|
74
80
|
if (validationSummary === 'disabled') {
|
|
@@ -82,17 +88,17 @@ export var FileUploaderFileList = function (props) {
|
|
|
82
88
|
if (!(warningLength + errorLength)) {
|
|
83
89
|
return null;
|
|
84
90
|
}
|
|
85
|
-
return (React.createElement("div", { className: cx(jsStyles.summary, summaryClass) },
|
|
86
|
-
errorLength > 0 && (React.createElement("span", { className: jsStyles.summaryErrorText },
|
|
91
|
+
return (React.createElement("div", { className: cx(jsStyles.summary(theme), summaryClass) },
|
|
92
|
+
errorLength > 0 && (React.createElement("span", { className: jsStyles.summaryErrorText(theme) },
|
|
87
93
|
errorLength,
|
|
88
94
|
"\u00A0",
|
|
89
95
|
pluralize.apply(void 0, __spreadArray([langCode, errorLength], locale.errors, false)))),
|
|
90
|
-
warningLength > 0 && (React.createElement("span", { className: jsStyles.summaryWarningText },
|
|
96
|
+
warningLength > 0 && (React.createElement("span", { className: jsStyles.summaryWarningText(theme) },
|
|
91
97
|
warningLength,
|
|
92
98
|
"\u00A0",
|
|
93
99
|
pluralize.apply(void 0, __spreadArray([langCode, warningLength], locale.warnings, false))))));
|
|
94
100
|
};
|
|
95
|
-
return (React.createElement("div", { "data-tid": FileUploaderFileDataTids.fileList, className: jsViewStyles.fileListWrapper },
|
|
101
|
+
return (React.createElement("div", { "data-tid": FileUploaderFileDataTids.fileList, className: jsViewStyles.fileListWrapper(theme) },
|
|
96
102
|
renderSummary(),
|
|
97
103
|
files.map(function (file, idx) {
|
|
98
104
|
var _a, _b, _c, _d, _e;
|
|
@@ -101,20 +107,20 @@ export var FileUploaderFileList = function (props) {
|
|
|
101
107
|
var hasHover = hovered === file.id;
|
|
102
108
|
var hasError = file.status === FileUploaderFileStatus.Error;
|
|
103
109
|
var hasWarning = file.status === FileUploaderFileStatus.Warning;
|
|
104
|
-
var fileWrapperClassNames = cx(jsStyles.fileWrapper, fileWrapperClass, __assign(__assign(__assign(__assign((_a = {}, _a[jsStyles.fileWrapperFocus] = hasFocus, _a[jsStyles.fileWrapperHover] = hasHover, _a), (hasError && (_b = {},
|
|
105
|
-
_b[jsStyles.errorFile] = !isTileView || hasHover,
|
|
106
|
-
_b[jsViewStyles.errorFileFocus] = hasFocus,
|
|
110
|
+
var fileWrapperClassNames = cx(jsStyles.fileWrapper(theme), fileWrapperClass, __assign(__assign(__assign(__assign((_a = {}, _a[jsStyles.fileWrapperFocus(theme)] = hasFocus, _a[jsStyles.fileWrapperHover(theme)] = hasHover, _a), (hasError && (_b = {},
|
|
111
|
+
_b[jsStyles.errorFile(theme)] = !isTileView || hasHover,
|
|
112
|
+
_b[jsViewStyles.errorFileFocus(theme)] = hasFocus,
|
|
107
113
|
_b))), (!isTileView &&
|
|
108
114
|
hasError && (_c = {},
|
|
109
|
-
_c[jsStyles.removeBorderTopRadius] = ((_f = files[idx - 1]) === null || _f === void 0 ? void 0 : _f.status) === FileUploaderFileStatus.Error,
|
|
110
|
-
_c[jsStyles.removeBorderBottomRadius] = ((_g = files[idx + 1]) === null || _g === void 0 ? void 0 : _g.status) === FileUploaderFileStatus.Error,
|
|
115
|
+
_c[jsStyles.removeBorderTopRadius()] = ((_f = files[idx - 1]) === null || _f === void 0 ? void 0 : _f.status) === FileUploaderFileStatus.Error,
|
|
116
|
+
_c[jsStyles.removeBorderBottomRadius()] = ((_g = files[idx + 1]) === null || _g === void 0 ? void 0 : _g.status) === FileUploaderFileStatus.Error,
|
|
111
117
|
_c))), (hasWarning && (_d = {},
|
|
112
|
-
_d[jsStyles.warningFile] = !isTileView || hasHover,
|
|
113
|
-
_d[jsViewStyles.warningFileFocus] = hasFocus,
|
|
118
|
+
_d[jsStyles.warningFile(theme)] = !isTileView || hasHover,
|
|
119
|
+
_d[jsViewStyles.warningFileFocus(theme)] = hasFocus,
|
|
114
120
|
_d))), (!isTileView &&
|
|
115
121
|
hasWarning && (_e = {},
|
|
116
|
-
_e[jsStyles.removeBorderTopRadius] = ((_h = files[idx - 1]) === null || _h === void 0 ? void 0 : _h.status) === FileUploaderFileStatus.Warning,
|
|
117
|
-
_e[jsStyles.removeBorderBottomRadius] = ((_j = files[idx + 1]) === null || _j === void 0 ? void 0 : _j.status) === FileUploaderFileStatus.Warning,
|
|
122
|
+
_e[jsStyles.removeBorderTopRadius()] = ((_h = files[idx - 1]) === null || _h === void 0 ? void 0 : _h.status) === FileUploaderFileStatus.Warning,
|
|
123
|
+
_e[jsStyles.removeBorderBottomRadius()] = ((_j = files[idx + 1]) === null || _j === void 0 ? void 0 : _j.status) === FileUploaderFileStatus.Warning,
|
|
118
124
|
_e))));
|
|
119
125
|
var fileProps = {
|
|
120
126
|
file: file,
|
|
@@ -131,7 +137,7 @@ export var FileUploaderFileList = function (props) {
|
|
|
131
137
|
};
|
|
132
138
|
var fileElement = renderFile(fileProps);
|
|
133
139
|
return (React.createElement("div", { key: file.id, className: fileWrapperClassNames, onMouseEnter: function () { return handleMouseEnter(file.id); }, onMouseLeave: function () { return handleMouseLeave(); }, onFocus: function () { return setFocusedByTab(file.id); }, onBlur: function () { return setFocusedByTab(null); } },
|
|
134
|
-
React.createElement("div", { className: jsViewStyles.file }, fileElement)));
|
|
140
|
+
React.createElement("div", { className: jsViewStyles.file() }, fileElement)));
|
|
135
141
|
})));
|
|
136
142
|
};
|
|
137
143
|
FileUploaderFileList.__KONTUR_REACT_UI__ = 'FileUploaderFileList';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploaderFileList.js","sourceRoot":"","sources":["FileUploaderFileList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAA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upPositionsType, ShortPopupPositionsType } from '../../../internal/Popup/index.js';\nimport { cx } from '../../../lib/cx.js';\nimport { LocaleContext } from '../../../lib/locale/index.js';\nimport { pluralize } from '../../../lib/pluralize.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { FileUploaderControlContext } from '../FileUploaderControlContext.js';\nimport type { FileUploaderFileProps } from '../FileUploaderFile.js';\nimport { FileUploaderFileStatus, type FileUploaderValidationSummary, type FileUploaderView } from '../fileUtils.js';\nimport { useControlLocale } from '../hooks/useControlLocale.js';\nimport { useFileUploaderSize } from '../hooks/useFileUploaderSize.js';\nimport { jsRowStyles, jsStyles, jsTileStyles } from './FileUploaderFileList.css.js';\n\ninterface FileUploaderFileListProps {\n renderFile: (props: FileUploaderFileProps) => React.ReactNode;\n size: SizeProp;\n view?: FileUploaderView;\n validationSummary?: FileUploaderValidationSummary;\n validationSummaryStart?: number;\n onRemove(fileId: string): void;\n withValidationTooltip?: boolean;\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n withWarningIcon?: boolean;\n disabled?: boolean;\n}\n\nexport const FileUploaderFileDataTids = {\n fileList: 'FileUploader__fileList',\n} as const;\n\nexport const FileUploaderFileList = (props: FileUploaderFileListProps): React.ReactElement => {\n const {\n renderFile,\n size,\n view = 'row',\n validationSummary = 'auto',\n validationSummaryStart = 5,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n disabled = false,\n onRemove,\n } = props;\n const { files } = useContext(FileUploaderControlContext);\n const locale = useControlLocale();\n const { langCode } = useContext(LocaleContext);\n\n const [focusedByTab, setFocusedByTab] = useState<string | null>(null);\n const [hovered, setHovered] = useState<string | null>(null);\n const mouseIsOverRef = useRef(false);\n\n const handleMouseEnter = (index: string | null) => {\n setHovered(index);\n mouseIsOverRef.current = true;\n };\n\n const handleMouseLeave = () => {\n setHovered(null);\n mouseIsOverRef.current = false;\n };\n\n const handleRemoveItem = (index: string) => {\n onRemove(index);\n if (hovered === index && mouseIsOverRef.current) {\n const currentIndex = files.findIndex((file) => file.id === index);\n if (currentIndex !== -1 && files[currentIndex + 1]) {\n setHovered(files[currentIndex + 1].id);\n } else {\n setHovered(null);\n }\n }\n };\n\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n\n const fileWrapperClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileWrapperSmall,\n medium: jsViewStyles.fileWrapperMedium,\n large: jsViewStyles.fileWrapperLarge,\n });\n\n const summaryClass = useFileUploaderSize(size, {\n small: jsStyles.summarySmall,\n medium: jsStyles.summaryMedium,\n large: jsStyles.summaryLarge,\n });\n\n const renderSummary = () => {\n if (validationSummary === 'disabled') {\n return null;\n }\n\n const warningLength = files.filter((file) => file.status === FileUploaderFileStatus.Warning).length;\n const errorLength = files.filter((file) => file.status === FileUploaderFileStatus.Error).length;\n\n if (validationSummary === 'auto' && files.length < validationSummaryStart) {\n return null;\n }\n\n if (!(warningLength + errorLength)) {\n return null;\n }\n\n return (\n <div className={cx(jsStyles.summary, summaryClass)}>\n {errorLength > 0 && (\n <span className={jsStyles.summaryErrorText}>\n {errorLength} {pluralize(langCode, errorLength, ...locale.errors)}\n </span>\n )}\n {warningLength > 0 && (\n <span className={jsStyles.summaryWarningText}>\n {warningLength} {pluralize(langCode, warningLength, ...locale.warnings)}\n </span>\n )}\n </div>\n );\n };\n\n return (\n <div data-tid={FileUploaderFileDataTids.fileList} className={jsViewStyles.fileListWrapper}>\n {renderSummary()}\n {files.map((file, idx) => {\n const hasFocus = focusedByTab === file.id;\n const hasHover = hovered === file.id;\n const hasError = file.status === FileUploaderFileStatus.Error;\n const hasWarning = file.status === FileUploaderFileStatus.Warning;\n\n const fileWrapperClassNames = cx(jsStyles.fileWrapper, fileWrapperClass, {\n [jsStyles.fileWrapperFocus]: hasFocus,\n [jsStyles.fileWrapperHover]: hasHover,\n ...(hasError && {\n [jsStyles.errorFile]: !isTileView || hasHover,\n [jsViewStyles.errorFileFocus]: hasFocus,\n }),\n ...(!isTileView &&\n hasError && {\n [jsStyles.removeBorderTopRadius]: files[idx - 1]?.status === FileUploaderFileStatus.Error,\n [jsStyles.removeBorderBottomRadius]: files[idx + 1]?.status === FileUploaderFileStatus.Error,\n }),\n ...(hasWarning && {\n [jsStyles.warningFile]: !isTileView || hasHover,\n [jsViewStyles.warningFileFocus]: hasFocus,\n }),\n ...(!isTileView &&\n hasWarning && {\n [jsStyles.removeBorderTopRadius]: files[idx - 1]?.status === FileUploaderFileStatus.Warning,\n [jsStyles.removeBorderBottomRadius]: files[idx + 1]?.status === FileUploaderFileStatus.Warning,\n }),\n });\n\n const fileProps: FileUploaderFileProps = {\n file,\n multiple: true,\n size,\n view,\n disabled,\n hovered: hasHover,\n focused: hasFocus,\n onRemove: handleRemoveItem,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n };\n\n const fileElement = renderFile(fileProps);\n\n return (\n <div\n key={file.id}\n className={fileWrapperClassNames}\n onMouseEnter={() => handleMouseEnter(file.id)}\n onMouseLeave={() => handleMouseLeave()}\n onFocus={() => setFocusedByTab(file.id)}\n onBlur={() => setFocusedByTab(null)}\n >\n <div className={jsViewStyles.file}>{fileElement}</div>\n </div>\n );\n })}\n </div>\n );\n};\n\nFileUploaderFileList.__KONTUR_REACT_UI__ = 'FileUploaderFileList';\nFileUploaderFileList.displayName = 'FileUploaderFileList';\n"]}
|
|
1
|
+
{"version":3,"file":"FileUploaderFileList.js","sourceRoot":"","sources":["FileUploaderFileList.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAG5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,EAAE,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,IAAI,CAAC,EAAE,EACZ,SAAS,EAAE,qBAAqB,EAChC,YAAY,EAAE,cAAM,OAAA,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC,EAAzB,CAAyB,EAC7C,YAAY,EAAE,cAAM,OAAA,gBAAgB,EAAE,EAAlB,CAAkB,EACtC,OAAO,EAAE,cAAM,OAAA,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,EAAxB,CAAwB,EACvC,MAAM,EAAE,cAAM,OAAA,eAAe,CAAC,IAAI,CAAC,EAArB,CAAqB;gBAEnC,6BAAK,SAAS,EAAE,YAAY,CAAC,IAAI,EAAE,IAAG,WAAW,CAAO,CACpD,CACP,CAAC;QACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,oBAAoB,CAAC,mBAAmB,GAAG,sBAAsB,CAAC;AAClE,oBAAoB,CAAC,WAAW,GAAG,sBAAsB,CAAC","sourcesContent":["import React, { useContext, useRef, useState } from 'react';\n\nimport type { PopupPositionsType, ShortPopupPositionsType } from '../../../internal/Popup/index.js';\nimport { LocaleContext } from '../../../lib/locale/index.js';\nimport { pluralize } from '../../../lib/pluralize.js';\nimport { useEmotion, useStyles } from '../../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../../lib/types/props.js';\nimport { FileUploaderControlContext } from '../FileUploaderControlContext.js';\nimport type { FileUploaderFileProps } from '../FileUploaderFile.js';\nimport { FileUploaderFileStatus, type FileUploaderValidationSummary, type FileUploaderView } from '../fileUtils.js';\nimport { useControlLocale } from '../hooks/useControlLocale.js';\nimport { useFileUploaderSize } from '../hooks/useFileUploaderSize.js';\nimport { getJsRowStyles, getJsStyles, getJsTileStyles } from './FileUploaderFileList.styles.js';\n\ninterface FileUploaderFileListProps {\n renderFile: (props: FileUploaderFileProps) => React.ReactNode;\n size: SizeProp;\n view?: FileUploaderView;\n validationSummary?: FileUploaderValidationSummary;\n validationSummaryStart?: number;\n onRemove(fileId: string): void;\n withValidationTooltip?: boolean;\n validationTooltipPosition?: ShortPopupPositionsType | PopupPositionsType;\n withWarningIcon?: boolean;\n disabled?: boolean;\n}\n\nexport const FileUploaderFileDataTids = {\n fileList: 'FileUploader__fileList',\n} as const;\n\nexport const FileUploaderFileList = (props: FileUploaderFileListProps): React.ReactElement => {\n const {\n renderFile,\n size,\n view = 'row',\n validationSummary = 'auto',\n validationSummaryStart = 5,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n disabled = false,\n onRemove,\n } = props;\n const { files } = useContext(FileUploaderControlContext);\n const { cx } = useEmotion();\n const jsStyles = useStyles(getJsStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n const jsTileStyles = useStyles(getJsTileStyles);\n const theme = useContext(ThemeContext);\n const locale = useControlLocale();\n const { langCode } = useContext(LocaleContext);\n\n const [focusedByTab, setFocusedByTab] = useState<string | null>(null);\n const [hovered, setHovered] = useState<string | null>(null);\n const mouseIsOverRef = useRef(false);\n\n const handleMouseEnter = (index: string | null) => {\n setHovered(index);\n mouseIsOverRef.current = true;\n };\n\n const handleMouseLeave = () => {\n setHovered(null);\n mouseIsOverRef.current = false;\n };\n\n const handleRemoveItem = (index: string) => {\n onRemove(index);\n if (hovered === index && mouseIsOverRef.current) {\n const currentIndex = files.findIndex((file) => file.id === index);\n if (currentIndex !== -1 && files[currentIndex + 1]) {\n setHovered(files[currentIndex + 1].id);\n } else {\n setHovered(null);\n }\n }\n };\n\n const isTileView = view === 'tile';\n const jsViewStyles = isTileView ? jsTileStyles : jsRowStyles;\n\n const fileWrapperClass = useFileUploaderSize(size, {\n small: jsViewStyles.fileWrapperSmall(theme),\n medium: jsViewStyles.fileWrapperMedium(theme),\n large: jsViewStyles.fileWrapperLarge(theme),\n });\n\n const summaryClass = useFileUploaderSize(size, {\n small: jsStyles.summarySmall(theme),\n medium: jsStyles.summaryMedium(theme),\n large: jsStyles.summaryLarge(theme),\n });\n\n const renderSummary = () => {\n if (validationSummary === 'disabled') {\n return null;\n }\n\n const warningLength = files.filter((file) => file.status === FileUploaderFileStatus.Warning).length;\n const errorLength = files.filter((file) => file.status === FileUploaderFileStatus.Error).length;\n\n if (validationSummary === 'auto' && files.length < validationSummaryStart) {\n return null;\n }\n\n if (!(warningLength + errorLength)) {\n return null;\n }\n\n return (\n <div className={cx(jsStyles.summary(theme), summaryClass)}>\n {errorLength > 0 && (\n <span className={jsStyles.summaryErrorText(theme)}>\n {errorLength} {pluralize(langCode, errorLength, ...locale.errors)}\n </span>\n )}\n {warningLength > 0 && (\n <span className={jsStyles.summaryWarningText(theme)}>\n {warningLength} {pluralize(langCode, warningLength, ...locale.warnings)}\n </span>\n )}\n </div>\n );\n };\n\n return (\n <div data-tid={FileUploaderFileDataTids.fileList} className={jsViewStyles.fileListWrapper(theme)}>\n {renderSummary()}\n {files.map((file, idx) => {\n const hasFocus = focusedByTab === file.id;\n const hasHover = hovered === file.id;\n const hasError = file.status === FileUploaderFileStatus.Error;\n const hasWarning = file.status === FileUploaderFileStatus.Warning;\n\n const fileWrapperClassNames = cx(jsStyles.fileWrapper(theme), fileWrapperClass, {\n [jsStyles.fileWrapperFocus(theme)]: hasFocus,\n [jsStyles.fileWrapperHover(theme)]: hasHover,\n ...(hasError && {\n [jsStyles.errorFile(theme)]: !isTileView || hasHover,\n [jsViewStyles.errorFileFocus(theme)]: hasFocus,\n }),\n ...(!isTileView &&\n hasError && {\n [jsStyles.removeBorderTopRadius()]: files[idx - 1]?.status === FileUploaderFileStatus.Error,\n [jsStyles.removeBorderBottomRadius()]: files[idx + 1]?.status === FileUploaderFileStatus.Error,\n }),\n ...(hasWarning && {\n [jsStyles.warningFile(theme)]: !isTileView || hasHover,\n [jsViewStyles.warningFileFocus(theme)]: hasFocus,\n }),\n ...(!isTileView &&\n hasWarning && {\n [jsStyles.removeBorderTopRadius()]: files[idx - 1]?.status === FileUploaderFileStatus.Warning,\n [jsStyles.removeBorderBottomRadius()]: files[idx + 1]?.status === FileUploaderFileStatus.Warning,\n }),\n });\n\n const fileProps: FileUploaderFileProps = {\n file,\n multiple: true,\n size,\n view,\n disabled,\n hovered: hasHover,\n focused: hasFocus,\n onRemove: handleRemoveItem,\n withValidationTooltip,\n validationTooltipPosition,\n withWarningIcon,\n };\n\n const fileElement = renderFile(fileProps);\n\n return (\n <div\n key={file.id}\n className={fileWrapperClassNames}\n onMouseEnter={() => handleMouseEnter(file.id)}\n onMouseLeave={() => handleMouseLeave()}\n onFocus={() => setFocusedByTab(file.id)}\n onBlur={() => setFocusedByTab(null)}\n >\n <div className={jsViewStyles.file()}>{fileElement}</div>\n </div>\n );\n })}\n </div>\n );\n};\n\nFileUploaderFileList.__KONTUR_REACT_UI__ = 'FileUploaderFileList';\nFileUploaderFileList.displayName = 'FileUploaderFileList';\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Theme } from '../../../lib/theming/Theme.js';
|
|
2
|
+
export declare const getJsStyles: import("../../../lib/theming/Emotion.js").StylesGetter<{
|
|
3
|
+
fileWrapper(t: Theme): string;
|
|
4
|
+
fileWrapperFocus(t: Theme): string;
|
|
5
|
+
fileWrapperHover(t: Theme): string;
|
|
6
|
+
warningFile(t: Theme): string;
|
|
7
|
+
errorFile(t: Theme): string;
|
|
8
|
+
removeBorderTopRadius(): string;
|
|
9
|
+
removeBorderBottomRadius(): string;
|
|
10
|
+
summary(t: Theme): string;
|
|
11
|
+
summaryErrorText(t: Theme): string;
|
|
12
|
+
summaryWarningText(t: Theme): string;
|
|
13
|
+
summarySmall(t: Theme): string;
|
|
14
|
+
summaryMedium(t: Theme): string;
|
|
15
|
+
summaryLarge(t: Theme): string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const getJsRowStyles: import("../../../lib/theming/Emotion.js").StylesGetter<{
|
|
18
|
+
file(): string;
|
|
19
|
+
fileListWrapper(t: Theme): string;
|
|
20
|
+
fileWrapperSmall(t: Theme): string;
|
|
21
|
+
fileWrapperMedium(t: Theme): string;
|
|
22
|
+
fileWrapperLarge(t: Theme): string;
|
|
23
|
+
errorFileFocus(t: Theme): string;
|
|
24
|
+
warningFileFocus(t: Theme): string;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const getJsTileStyles: import("../../../lib/theming/Emotion.js").StylesGetter<{
|
|
27
|
+
file(): string;
|
|
28
|
+
fileListWrapper(): string;
|
|
29
|
+
fileWrapperSmall(t: Theme): string;
|
|
30
|
+
fileWrapperMedium(t: Theme): string;
|
|
31
|
+
fileWrapperLarge(t: Theme): string;
|
|
32
|
+
errorFileFocus(t: Theme): string;
|
|
33
|
+
warningFileFocus(t: Theme): string;
|
|
34
|
+
}>;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
2
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
3
|
+
return cooked;
|
|
4
|
+
};
|
|
5
|
+
import { memoizeGetStyles } from '../../../lib/theming/Emotion.js';
|
|
6
|
+
export var getJsStyles = memoizeGetStyles(function (_a) {
|
|
7
|
+
var css = _a.css;
|
|
8
|
+
return {
|
|
9
|
+
fileWrapper: function (t) {
|
|
10
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: max-content;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n cursor: pointer;\n\n &::before {\n position: absolute;\n content: ' ';\n width: 100%;\n height: 100%;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n top: -1px;\n left: -1px;\n z-index: -1;\n }\n "], ["\n position: relative;\n width: 100%;\n height: max-content;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n cursor: pointer;\n\n &::before {\n position: absolute;\n content: ' ';\n width: 100%;\n height: 100%;\n border-radius: ", ";\n border: ", " solid transparent;\n box-shadow: 0 0 0 1px transparent;\n top: -1px;\n left: -1px;\n z-index: -1;\n }\n "])), t.fileUploaderBorderRadius, t.fileUploaderBorderWidth, t.fileUploaderBorderRadius, t.fileUploaderBorderWidth);
|
|
11
|
+
},
|
|
12
|
+
fileWrapperFocus: function (t) {
|
|
13
|
+
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border: ", " solid ", ";\n box-shadow: 0 0 0 1px ", ";\n "], ["\n border: ", " solid ", ";\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderBorderWidth, t.fileUploaderBorderColorFocus, t.fileUploaderBorderColorFocus);
|
|
14
|
+
},
|
|
15
|
+
fileWrapperHover: function (t) {
|
|
16
|
+
return css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background: ", ";\n border-color: ", ";\n "], ["\n background: ", ";\n border-color: ", ";\n "])), t.fileUploaderHoveredBg, t.fileUploaderHoveredBorderColor);
|
|
17
|
+
},
|
|
18
|
+
warningFile: function (t) {
|
|
19
|
+
return css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "], ["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "])), t.fileUploaderWarningBgColor, t.fileUploaderValidationTextColor, t.fileUploaderWarningBgHoverColor, t.fileUploaderBorderRadius, t.fileUploaderWarningBgColor);
|
|
20
|
+
},
|
|
21
|
+
errorFile: function (t) {
|
|
22
|
+
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "], ["\n background: ", ";\n color: ", ";\n &:hover {\n background: ", ";\n border-radius: ", ";\n }\n &::before {\n background: ", ";\n }\n "])), t.fileUploaderErrorBgColor, t.fileUploaderValidationTextColor, t.fileUploaderErrorBgHoverColor, t.fileUploaderBorderRadius, t.fileUploaderErrorBgColor);
|
|
23
|
+
},
|
|
24
|
+
removeBorderTopRadius: function () {
|
|
25
|
+
return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n &::before {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n }\n "], ["\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n &::before {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n }\n "])));
|
|
26
|
+
},
|
|
27
|
+
removeBorderBottomRadius: function () {
|
|
28
|
+
return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n &::before {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n "], ["\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n &::before {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n "])));
|
|
29
|
+
},
|
|
30
|
+
summary: function (t) {
|
|
31
|
+
return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n border-bottom: 1px solid ", ";\n margin-bottom: ", ";\n order: -1;\n width: 100%;\n box-sizing: border-box;\n "], ["\n display: flex;\n border-bottom: 1px solid ", ";\n margin-bottom: ", ";\n order: -1;\n width: 100%;\n box-sizing: border-box;\n "])), t.tabColorHover, t.fileUploaderListGap);
|
|
32
|
+
},
|
|
33
|
+
summaryErrorText: function (t) {
|
|
34
|
+
return css(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n color: ", ";\n margin-right: ", ";\n "], ["\n color: ", ";\n margin-right: ", ";\n "])), t.fileUploaderErrorTextColor, t.fileUploaderListSummaryTextGap);
|
|
35
|
+
},
|
|
36
|
+
summaryWarningText: function (t) {
|
|
37
|
+
return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), t.fileUploaderWarningTextColor);
|
|
38
|
+
},
|
|
39
|
+
summarySmall: function (t) {
|
|
40
|
+
return css(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "])), t.fileUploaderFontSizeSmall, t.fileUploaderLineHeightSmall, t.fileUploaderPaddingYSmall, t.fileUploaderPaddingXSmall);
|
|
41
|
+
},
|
|
42
|
+
summaryMedium: function (t) {
|
|
43
|
+
return css(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "])), t.fileUploaderFontSizeMedium, t.fileUploaderLineHeightMedium, t.fileUploaderPaddingYMedium, t.fileUploaderPaddingXMedium);
|
|
44
|
+
},
|
|
45
|
+
summaryLarge: function (t) {
|
|
46
|
+
return css(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n line-height: ", ";\n padding: ", " ", ";\n "])), t.fileUploaderFontSizeLarge, t.fileUploaderLineHeightLarge, t.fileUploaderPaddingYLarge, t.fileUploaderPaddingXLarge);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
export var getJsRowStyles = memoizeGetStyles(function (_a) {
|
|
51
|
+
var css = _a.css;
|
|
52
|
+
return {
|
|
53
|
+
file: function () {
|
|
54
|
+
return css(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n width: 100%;\n "], ["\n width: 100%;\n "])));
|
|
55
|
+
},
|
|
56
|
+
fileListWrapper: function (t) {
|
|
57
|
+
return css(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n width: 100%;\n margin-top: ", ";\n "], ["\n display: block;\n width: 100%;\n margin-top: ", ";\n "])), t.fileUploaderListGap);
|
|
58
|
+
},
|
|
59
|
+
fileWrapperSmall: function (t) {
|
|
60
|
+
return css(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), t.fileUploaderPaddingYSmall, t.fileUploaderPaddingXSmall);
|
|
61
|
+
},
|
|
62
|
+
fileWrapperMedium: function (t) {
|
|
63
|
+
return css(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), t.fileUploaderPaddingYMedium, t.fileUploaderPaddingXMedium);
|
|
64
|
+
},
|
|
65
|
+
fileWrapperLarge: function (t) {
|
|
66
|
+
return css(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n padding: ", " ", ";\n "], ["\n padding: ", " ", ";\n "])), t.fileUploaderPaddingYLarge, t.fileUploaderPaddingXLarge);
|
|
67
|
+
},
|
|
68
|
+
errorFileFocus: function (t) {
|
|
69
|
+
return css(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderErrorBgHoverColor, t.fileUploaderBorderWidth, t.fileUploaderBorderColorError, t.fileUploaderBorderRadius, t.fileUploaderBorderColorError);
|
|
70
|
+
},
|
|
71
|
+
warningFileFocus: function (t) {
|
|
72
|
+
return css(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n background: ", ";\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderWarningBgHoverColor, t.fileUploaderBorderWidth, t.fileUploaderBorderColorWarning, t.fileUploaderBorderRadius, t.fileUploaderBorderColorWarning);
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
});
|
|
76
|
+
export var getJsTileStyles = memoizeGetStyles(function (_a) {
|
|
77
|
+
var css = _a.css;
|
|
78
|
+
return {
|
|
79
|
+
file: function () {
|
|
80
|
+
return css(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n "], ["\n width: 100%;\n height: 100%;\n "])));
|
|
81
|
+
},
|
|
82
|
+
fileListWrapper: function () {
|
|
83
|
+
return css(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n display: contents;\n "], ["\n display: contents;\n "])));
|
|
84
|
+
},
|
|
85
|
+
fileWrapperSmall: function (t) {
|
|
86
|
+
return css(templateObject_23 || (templateObject_23 = __makeTemplateObject(["\n padding: ", ";\n width: ", ";\n "], ["\n padding: ", ";\n width: ", ";\n "])), t.fileUploaderTileFilePaddingSmall, t.fileUploaderTileWidthSmall);
|
|
87
|
+
},
|
|
88
|
+
fileWrapperMedium: function (t) {
|
|
89
|
+
return css(templateObject_24 || (templateObject_24 = __makeTemplateObject(["\n padding: ", ";\n width: ", ";\n height: ", ";\n "], ["\n padding: ", ";\n width: ", ";\n height: ", ";\n "])), t.fileUploaderTileFilePaddingMedium, t.fileUploaderTileWidthMedium, t.fileUploaderTileHeightMedium);
|
|
90
|
+
},
|
|
91
|
+
fileWrapperLarge: function (t) {
|
|
92
|
+
return css(templateObject_25 || (templateObject_25 = __makeTemplateObject(["\n padding: ", ";\n width: ", ";\n height: ", ";\n "], ["\n padding: ", ";\n width: ", ";\n height: ", ";\n "])), t.fileUploaderTileFilePaddingLarge, t.fileUploaderTileWidthLarge, t.fileUploaderTileHeightLarge);
|
|
93
|
+
},
|
|
94
|
+
errorFileFocus: function (t) {
|
|
95
|
+
return css(templateObject_26 || (templateObject_26 = __makeTemplateObject(["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderBorderWidth, t.fileUploaderBorderColorError, t.fileUploaderBorderRadius, t.fileUploaderBorderColorError);
|
|
96
|
+
},
|
|
97
|
+
warningFileFocus: function (t) {
|
|
98
|
+
return css(templateObject_27 || (templateObject_27 = __makeTemplateObject(["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "], ["\n border: ", " solid ", ";\n border-radius: ", " !important;\n box-shadow: 0 0 0 1px ", ";\n "])), t.fileUploaderBorderWidth, t.fileUploaderBorderColorWarning, t.fileUploaderBorderRadius, t.fileUploaderBorderColorWarning);
|
|
99
|
+
},
|
|
100
|
+
};
|
|
101
|
+
});
|
|
102
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24, templateObject_25, templateObject_26, templateObject_27;
|
|
103
|
+
//# sourceMappingURL=FileUploaderFileList.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploaderFileList.styles.js","sourceRoot":"","sources":["FileUploaderFileList.styles.ts"],"names":[],"mappings":";;;;AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,MAAM,CAAC,IAAM,WAAW,GAAG,gBAAgB,CAAC,UAAC,EAAgB;QAAd,GAAG,SAAA;IAChD,OAAO;QACL,WAAW,YAAC,CAAQ;YAClB,OAAO,GAAG,2sBAAA,mMAOS,EAA0B,qBACjC,EAAyB,sPAShB,EAA0B,uBACjC,EAAyB,2JAMtC,KAjBkB,CAAC,CAAC,wBAAwB,EACjC,CAAC,CAAC,uBAAuB,EAShB,CAAC,CAAC,wBAAwB,EACjC,CAAC,CAAC,uBAAuB,EAMrC;QACJ,CAAC;QAED,gBAAg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;YACb,OAAO,GAAG,2GAAA,sCAET,KAAC;QACJ,CAAC;QAED,gBAAgB,YAAC,CAAQ;YACvB,OAAO,GAAG,6HAAA,qBACG,EAAkC,oBACpC,EAA4B,WACtC,KAFY,CAAC,CAAC,gCAAgC,EACpC,CAAC,CAAC,0BAA0B,EACrC;QACJ,CAAC;QAED,iBAAiB,YAAC,CAAQ;YACxB,OAAO,GAAG,oJAAA,qBACG,EAAmC,oBACrC,EAA6B,qBAC5B,EAA8B,WACzC,KAHY,CAAC,CAAC,iCAAiC,EACrC,CAAC,CAAC,2BAA2B,EAC5B,CAAC,CAAC,4BAA4B,EACxC;QACJ,CAAC;QAED,gBAAgB,YAAC,CAAQ;YACvB,OAAO,GAAG,oJAAA,qBACG,EAAkC,oBACpC,EAA4B,qBAC3B,EAA6B,WACxC,KAHY,CAAC,CAAC,gCAAgC,EACpC,CAAC,CAAC,0BAA0B,EAC3B,CAAC,CAAC,2BAA2B,EACvC;QACJ,CAAC;QAED,cAAc,YAAC,CAAQ;YACrB,OAAO,GAAG,+LAAA,oBACE,EAAyB,SAAU,EAA8B,4BAC1D,EAA0B,8CACnB,EAA8B,WACvD,KAHW,CAAC,CAAC,uBAAuB,EAAU,CAAC,CAAC,4BAA4B,EAC1D,CAAC,CAAC,wBAAwB,EACnB,CAAC,CAAC,4BAA4B,EACtD;QACJ,CAAC;QAED,gBAAgB,YAAC,CAAQ;YACvB,OAAO,GAAG,+LAAA,oBACE,EAAyB,SAAU,EAAgC,4BAC5D,EAA0B,8CACnB,EAAgC,WACzD,KAHW,CAAC,CAAC,uBAAuB,EAAU,CAAC,CAAC,8BAA8B,EAC5D,CAAC,CAAC,wBAAwB,EACnB,CAAC,CAAC,8BAA8B,EACxD;QACJ,CAAC;KACF,CAAC;AACJ,CAAC,CAAC,CAAC","sourcesContent":["import type { Emotion } from '@emotion/css/create-instance';\n\nimport { memoizeGetStyles } from '../../../lib/theming/Emotion.js';\nimport type { Theme } from '../../../lib/theming/Theme.js';\n\nexport const getJsStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n fileWrapper(t: Theme) {\n return css`\n position: relative;\n width: 100%;\n height: max-content;\n display: flex;\n align-items: center;\n box-sizing: border-box;\n border-radius: ${t.fileUploaderBorderRadius};\n border: ${t.fileUploaderBorderWidth} solid transparent;\n box-shadow: 0 0 0 1px transparent;\n cursor: pointer;\n\n &::before {\n position: absolute;\n content: ' ';\n width: 100%;\n height: 100%;\n border-radius: ${t.fileUploaderBorderRadius};\n border: ${t.fileUploaderBorderWidth} solid transparent;\n box-shadow: 0 0 0 1px transparent;\n top: -1px;\n left: -1px;\n z-index: -1;\n }\n `;\n },\n\n fileWrapperFocus(t: Theme) {\n return css`\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorFocus};\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorFocus};\n `;\n },\n\n fileWrapperHover(t: Theme) {\n return css`\n background: ${t.fileUploaderHoveredBg};\n border-color: ${t.fileUploaderHoveredBorderColor};\n `;\n },\n\n warningFile(t: Theme) {\n return css`\n background: ${t.fileUploaderWarningBgColor};\n color: ${t.fileUploaderValidationTextColor};\n &:hover {\n background: ${t.fileUploaderWarningBgHoverColor};\n border-radius: ${t.fileUploaderBorderRadius};\n }\n &::before {\n background: ${t.fileUploaderWarningBgColor};\n }\n `;\n },\n\n errorFile(t: Theme) {\n return css`\n background: ${t.fileUploaderErrorBgColor};\n color: ${t.fileUploaderValidationTextColor};\n &:hover {\n background: ${t.fileUploaderErrorBgHoverColor};\n border-radius: ${t.fileUploaderBorderRadius};\n }\n &::before {\n background: ${t.fileUploaderErrorBgColor};\n }\n `;\n },\n\n removeBorderTopRadius() {\n return css`\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n &::before {\n border-top-right-radius: 0;\n border-top-left-radius: 0;\n }\n `;\n },\n\n removeBorderBottomRadius() {\n return css`\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n &::before {\n border-bottom-right-radius: 0;\n border-bottom-left-radius: 0;\n }\n `;\n },\n\n summary(t: Theme) {\n return css`\n display: flex;\n border-bottom: 1px solid ${t.tabColorHover};\n margin-bottom: ${t.fileUploaderListGap};\n order: -1;\n width: 100%;\n box-sizing: border-box;\n `;\n },\n\n summaryErrorText(t: Theme) {\n return css`\n color: ${t.fileUploaderErrorTextColor};\n margin-right: ${t.fileUploaderListSummaryTextGap};\n `;\n },\n\n summaryWarningText(t: Theme) {\n return css`\n color: ${t.fileUploaderWarningTextColor};\n `;\n },\n\n summarySmall(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeSmall};\n line-height: ${t.fileUploaderLineHeightSmall};\n padding: ${t.fileUploaderPaddingYSmall} ${t.fileUploaderPaddingXSmall};\n `;\n },\n\n summaryMedium(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeMedium};\n line-height: ${t.fileUploaderLineHeightMedium};\n padding: ${t.fileUploaderPaddingYMedium} ${t.fileUploaderPaddingXMedium};\n `;\n },\n\n summaryLarge(t: Theme) {\n return css`\n font-size: ${t.fileUploaderFontSizeLarge};\n line-height: ${t.fileUploaderLineHeightLarge};\n padding: ${t.fileUploaderPaddingYLarge} ${t.fileUploaderPaddingXLarge};\n `;\n },\n };\n});\n\nexport const getJsRowStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n file() {\n return css`\n width: 100%;\n `;\n },\n\n fileListWrapper(t: Theme) {\n return css`\n display: block;\n width: 100%;\n margin-top: ${t.fileUploaderListGap};\n `;\n },\n\n fileWrapperSmall(t: Theme) {\n return css`\n padding: ${t.fileUploaderPaddingYSmall} ${t.fileUploaderPaddingXSmall};\n `;\n },\n\n fileWrapperMedium(t: Theme) {\n return css`\n padding: ${t.fileUploaderPaddingYMedium} ${t.fileUploaderPaddingXMedium};\n `;\n },\n\n fileWrapperLarge(t: Theme) {\n return css`\n padding: ${t.fileUploaderPaddingYLarge} ${t.fileUploaderPaddingXLarge};\n `;\n },\n\n errorFileFocus(t: Theme) {\n return css`\n background: ${t.fileUploaderErrorBgHoverColor};\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorError};\n `;\n },\n\n warningFileFocus(t: Theme) {\n return css`\n background: ${t.fileUploaderWarningBgHoverColor};\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorWarning};\n `;\n },\n };\n});\n\nexport const getJsTileStyles = memoizeGetStyles(({ css }: Emotion) => {\n return {\n file() {\n return css`\n width: 100%;\n height: 100%;\n `;\n },\n\n fileListWrapper() {\n return css`\n display: contents;\n `;\n },\n\n fileWrapperSmall(t: Theme) {\n return css`\n padding: ${t.fileUploaderTileFilePaddingSmall};\n width: ${t.fileUploaderTileWidthSmall};\n `;\n },\n\n fileWrapperMedium(t: Theme) {\n return css`\n padding: ${t.fileUploaderTileFilePaddingMedium};\n width: ${t.fileUploaderTileWidthMedium};\n height: ${t.fileUploaderTileHeightMedium};\n `;\n },\n\n fileWrapperLarge(t: Theme) {\n return css`\n padding: ${t.fileUploaderTileFilePaddingLarge};\n width: ${t.fileUploaderTileWidthLarge};\n height: ${t.fileUploaderTileHeightLarge};\n `;\n },\n\n errorFileFocus(t: Theme) {\n return css`\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorError};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorError};\n `;\n },\n\n warningFileFocus(t: Theme) {\n return css`\n border: ${t.fileUploaderBorderWidth} solid ${t.fileUploaderBorderColorWarning};\n border-radius: ${t.fileUploaderBorderRadius} !important;\n box-shadow: 0 0 0 1px ${t.fileUploaderBorderColorWarning};\n `;\n },\n };\n});\n"]}
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useContext } from 'react';
|
|
2
2
|
import { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';
|
|
3
|
+
import { useStyles } from '../../lib/renderEnvironment/index.js';
|
|
4
|
+
import { ThemeContext } from '../../lib/theming/ThemeContext.js';
|
|
3
5
|
import { useResponsiveLayout } from '../ResponsiveLayout/index.js';
|
|
4
|
-
import {
|
|
6
|
+
import { getJsRowStyles, getJsTileStyles } from './FileUploaderFile.styles.js';
|
|
5
7
|
import { FileUploaderFileStatus } from './fileUtils.js';
|
|
6
8
|
import { DeleteIcon } from './icons/DeleteIcon.js';
|
|
7
9
|
export var FileUploaderFileStatusIcon = function (_a) {
|
|
8
10
|
var hovered = _a.hovered, isTileView = _a.isTileView, disabled = _a.disabled, focusedByTab = _a.focusedByTab, isInvalid = _a.isInvalid, status = _a.status, size = _a.size, hasValidation = _a.hasValidation;
|
|
9
11
|
var isMobile = useResponsiveLayout().isMobile;
|
|
10
|
-
var
|
|
12
|
+
var theme = useContext(ThemeContext);
|
|
13
|
+
var jsTileStyles = useStyles(getJsTileStyles);
|
|
14
|
+
var jsRowStyles = useStyles(getJsRowStyles);
|
|
15
|
+
var iconClassNames = isTileView ? jsTileStyles.iconColor(theme) : jsRowStyles.iconColor(theme);
|
|
11
16
|
var iconDelete = React.createElement(DeleteIcon, { size: size, className: iconClassNames });
|
|
12
17
|
if (status === FileUploaderFileStatus.Loading) {
|
|
13
18
|
return hovered || isTileView ? iconDelete : React.createElement(LoadingIcon, { size: size });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploaderFileStatusIcon.js","sourceRoot":"","sources":["FileUploaderFileStatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FileUploaderFileStatusIcon.js","sourceRoot":"","sources":["FileUploaderFileStatusIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OA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IACD,IAAI,QAAQ,IAAI,CAAC,CAAC,QAAQ,IAAI,CAAC,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;QACzD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,IAAI,SAAS,IAAI,aAAa,EAAE,CAAC;QAC/B,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,2FAA2F;IAC3F,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC","sourcesContent":["import React, { useContext } from 'react';\n\nimport { LoadingIcon } from '../../internal/icons2022/LoadingIcon.js';\nimport { useStyles } from '../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport type { SizeProp } from '../../lib/types/props.js';\nimport { useResponsiveLayout } from '../ResponsiveLayout/index.js';\nimport { getJsRowStyles, getJsTileStyles } from './FileUploaderFile.styles.js';\nimport { FileUploaderFileStatus } from './fileUtils.js';\nimport { DeleteIcon } from './icons/DeleteIcon.js';\n\ninterface FileUploaderFileStatusIconProps {\n hovered: boolean;\n isTileView?: boolean;\n disabled?: boolean;\n focusedByTab: boolean;\n isInvalid: boolean;\n status: FileUploaderFileStatus;\n size: SizeProp;\n hasValidation?: boolean;\n}\n\nexport const FileUploaderFileStatusIcon: React.FunctionComponent<FileUploaderFileStatusIconProps> = ({\n hovered,\n isTileView,\n disabled,\n focusedByTab,\n isInvalid,\n status,\n size,\n hasValidation,\n}) => {\n const { isMobile } = useResponsiveLayout();\n const theme = useContext(ThemeContext);\n const jsTileStyles = useStyles(getJsTileStyles);\n const jsRowStyles = useStyles(getJsRowStyles);\n\n const iconClassNames = isTileView ? jsTileStyles.iconColor(theme) : jsRowStyles.iconColor(theme);\n const iconDelete = <DeleteIcon size={size} className={iconClassNames} />;\n\n if (status === FileUploaderFileStatus.Loading) {\n return hovered || isTileView ? iconDelete : <LoadingIcon size={size} />;\n }\n if (disabled || (!isMobile && !hovered && !focusedByTab)) {\n return null;\n }\n if (isInvalid || hasValidation) {\n return iconDelete;\n }\n // TODO - IF-2270 - добавить логику для действий по наведению и клику, пока только удаление\n return iconDelete;\n};\n"]}
|
|
@@ -20,54 +20,53 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import React, { forwardRef, useRef } from 'react';
|
|
23
|
+
import React, { forwardRef, useContext, useRef } from 'react';
|
|
24
24
|
import { CommonWrapper } from '../../internal/CommonWrapper/index.js';
|
|
25
25
|
import { ZIndex } from '../../internal/ZIndex/index.js';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
26
|
+
import { useEmotion, useStyles } from '../../lib/renderEnvironment/index.js';
|
|
27
|
+
import { ThemeContext } from '../../lib/theming/ThemeContext.js';
|
|
28
|
+
import { getAnimations, getStyles } from './GlobalLoaderView.styles.js';
|
|
28
29
|
import { useGlobalLoaderPosition, useGlobalLoaderWidth } from './useParams.js';
|
|
29
30
|
export var GlobalLoaderView = forwardRef(function (_a, externalRef) {
|
|
30
31
|
var expectedResponseTime = _a.expectedResponseTime, delayBeforeHide = _a.delayBeforeHide, status = _a.status, disableAnimations = _a.disableAnimations, rest = __rest(_a, ["expectedResponseTime", "delayBeforeHide", "status", "disableAnimations"]);
|
|
31
32
|
var ref = useRef(null);
|
|
33
|
+
var theme = useContext(ThemeContext);
|
|
34
|
+
var cx = useEmotion().cx;
|
|
35
|
+
var styles = useStyles(getStyles);
|
|
36
|
+
var animations = useStyles(getAnimations);
|
|
32
37
|
var _b = useGlobalLoaderWidth(status, ref), width = _b.width, startWidth = _b.startWidth, fullWidth = _b.fullWidth;
|
|
33
38
|
var left = useGlobalLoaderPosition(ref).left;
|
|
34
39
|
var getAnimationClass = function (status) {
|
|
35
40
|
if (!disableAnimations) {
|
|
36
41
|
switch (status) {
|
|
37
42
|
case 'success':
|
|
38
|
-
return animations.successAnimation;
|
|
43
|
+
return animations.successAnimation(delayBeforeHide, width, left);
|
|
39
44
|
case 'accept':
|
|
40
45
|
if (startWidth < fullWidth * 0.8) {
|
|
41
|
-
return animations.acceptAnimation;
|
|
46
|
+
return animations.acceptAnimation(theme, startWidth, expectedResponseTime, width, left);
|
|
42
47
|
}
|
|
43
|
-
return animations.slowAcceptAnimation;
|
|
48
|
+
return animations.slowAcceptAnimation(theme, startWidth, width, left);
|
|
44
49
|
case 'error':
|
|
45
|
-
return animations.errorAnimation;
|
|
50
|
+
return animations.errorAnimation(theme);
|
|
46
51
|
case 'standard':
|
|
47
|
-
return animations.standardAnimation;
|
|
52
|
+
return animations.standardAnimation(theme, expectedResponseTime);
|
|
48
53
|
}
|
|
49
54
|
}
|
|
50
55
|
if (disableAnimations) {
|
|
51
56
|
switch (status) {
|
|
52
57
|
case 'success':
|
|
53
|
-
return styles.successWithoutAnimation;
|
|
58
|
+
return styles.successWithoutAnimation();
|
|
54
59
|
case 'accept':
|
|
55
|
-
return animations.acceptWithoutAnimation;
|
|
60
|
+
return animations.acceptWithoutAnimation(startWidth);
|
|
56
61
|
case 'error':
|
|
57
|
-
return styles.errorWithoutAnimation;
|
|
62
|
+
return styles.errorWithoutAnimation();
|
|
58
63
|
case 'standard':
|
|
59
|
-
return styles.standardWithoutAnimation;
|
|
64
|
+
return styles.standardWithoutAnimation();
|
|
60
65
|
}
|
|
61
66
|
}
|
|
62
67
|
};
|
|
63
68
|
return (React.createElement(CommonWrapper, __assign({}, rest, { "data-status": status, ref: externalRef }),
|
|
64
|
-
React.createElement(ZIndex, { priority: "GlobalLoader", className: styles.outer },
|
|
65
|
-
React.createElement("div", { ref: ref, className: cx(styles.inner, getAnimationClass(status))
|
|
66
|
-
'--react-ui-global-loader-delay-before-hide': "".concat(delayBeforeHide, "ms"),
|
|
67
|
-
'--react-ui-global-loader-expected-time': "".concat(expectedResponseTime, "ms"),
|
|
68
|
-
'--react-ui-global-loader-width': "".concat(width, "px"),
|
|
69
|
-
'--react-ui-global-loader-start-width': "".concat(startWidth, "px"),
|
|
70
|
-
'--react-ui-global-loader-left': "".concat(left, "px"),
|
|
71
|
-
} }))));
|
|
69
|
+
React.createElement(ZIndex, { priority: "GlobalLoader", className: styles.outer(theme) },
|
|
70
|
+
React.createElement("div", { ref: ref, className: cx(styles.inner(theme), getAnimationClass(status)) }))));
|
|
72
71
|
});
|
|
73
72
|
//# sourceMappingURL=GlobalLoaderView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalLoaderView.js","sourceRoot":"","sources":["GlobalLoaderView.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"GlobalLoaderView.js","sourceRoot":"","sources":["GlobalLoaderView.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG9D,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAqB/E,MAAM,CAAC,IAAM,gBAAgB,GAAG,UAAU,CACxC,UACE,EAAoG,EACpG,WAAkD;IADhD,IAAA,oBAAoB,0BAAA,EAAE,eAAe,qBAAA,EAAE,MAAM,YAAA,EAAE,iBAAiB,uBAAA,EAAK,IAAI,cAA3E,0EAA6E,CAAF;IAG3E,IAAM,GAAG,GAAG,MAAM,CAAiC,IAAI,CAAC,CAAC;IACzD,IAAM,KAAK,GAAG,UAAU,CAAC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,CAAC,UAAU,CAAC,CAAC;gBACvD,KAAK,OAAO;oBACV,OAAO,MAAM,CAAC,qBAAqB,EAAE,CAAC;gBACxC,KAAK,UAAU;oBACb,OAAO,MAAM,CAAC,wBAAwB,EAAE,CAAC;YAC7C,CAAC;QACH,CAAC;IACH,CAAC,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,eAAK,IAAI,mBAAe,MAAM,EAAE,GAAG,EAAE,WAAW;QAC5D,oBAAC,MAAM,IAAC,QAAQ,EAAC,cAAc,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC;YAC5D,6BAAK,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC,GAAI,CACzE,CACK,CACjB,CAAC;AACJ,CAAC,CACF,CAAC","sourcesContent":["import React, { forwardRef, useContext, useRef } from 'react';\n\nimport type { CommonProps } from '../../internal/CommonWrapper/index.js';\nimport { CommonWrapper } from '../../internal/CommonWrapper/index.js';\nimport { ZIndex } from '../../internal/ZIndex/index.js';\nimport { useEmotion, useStyles } from '../../lib/renderEnvironment/index.js';\nimport { ThemeContext } from '../../lib/theming/ThemeContext.js';\nimport { getAnimations, getStyles } from './GlobalLoaderView.styles.js';\nimport { useGlobalLoaderPosition, useGlobalLoaderWidth } from './useParams.js';\n\nexport interface GlobalLoaderViewProps extends Pick<CommonProps, 'data-tid'> {\n /** Устанавливает ожидаемое время(ms) ответа сервера. */\n expectedResponseTime: number;\n\n /** Устанавливает задержку в миллисекундах до исчезновения лоадера. */\n delayBeforeHide: number;\n\n /** Устанавливает статус операции. */\n status?: 'success' | 'error' | 'standard' | 'accept';\n\n /** Отключает анимацию. */\n disableAnimations: boolean;\n}\n\nexport interface GlobalLoaderViewRef {\n element: HTMLDivElement;\n refObject: React.RefObject<GlobalLoaderViewRef['element'] | null>;\n}\n\nexport const GlobalLoaderView = forwardRef(\n (\n { expectedResponseTime, delayBeforeHide, status, disableAnimations, ...rest }: GlobalLoaderViewProps,\n externalRef: React.Ref<CommonWrapper<CommonProps>>,\n ) => {\n const ref = useRef<GlobalLoaderViewRef['element']>(null);\n const theme = useContext(ThemeContext);\n const { cx } = useEmotion();\n const styles = useStyles(getStyles);\n const animations = useStyles(getAnimations);\n const { width, startWidth, fullWidth } = useGlobalLoaderWidth(status, ref);\n const { left } = useGlobalLoaderPosition(ref);\n\n const getAnimationClass = (status: GlobalLoaderViewProps['status']) => {\n if (!disableAnimations) {\n switch (status) {\n case 'success':\n return animations.successAnimation(delayBeforeHide, width, left);\n case 'accept':\n if (startWidth < fullWidth * 0.8) {\n return animations.acceptAnimation(theme, startWidth, expectedResponseTime, width, left);\n }\n return animations.slowAcceptAnimation(theme, startWidth, width, left);\n case 'error':\n return animations.errorAnimation(theme);\n case 'standard':\n return animations.standardAnimation(theme, expectedResponseTime);\n }\n }\n\n if (disableAnimations) {\n switch (status) {\n case 'success':\n return styles.successWithoutAnimation();\n case 'accept':\n return animations.acceptWithoutAnimation(startWidth);\n case 'error':\n return styles.errorWithoutAnimation();\n case 'standard':\n return styles.standardWithoutAnimation();\n }\n }\n };\n\n return (\n <CommonWrapper {...rest} data-status={status} ref={externalRef}>\n <ZIndex priority=\"GlobalLoader\" className={styles.outer(theme)}>\n <div ref={ref} className={cx(styles.inner(theme), getAnimationClass(status))} />\n </ZIndex>\n </CommonWrapper>\n );\n },\n);\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Emotion } from '@emotion/css/create-instance';
|
|
2
|
+
import type { Theme } from '../../lib/theming/Theme.js';
|
|
3
|
+
export declare const getStyles: import("../../lib/theming/Emotion.js").StylesGetter<{
|
|
4
|
+
outer(t: Theme): string;
|
|
5
|
+
inner(t: Theme): string;
|
|
6
|
+
standardWithoutAnimation(): string;
|
|
7
|
+
successWithoutAnimation(): string;
|
|
8
|
+
errorWithoutAnimation(): string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const getAnimations: (emotion: Emotion) => {
|
|
11
|
+
successAnimation(delayBeforeHide: number, width: number, left: number): string;
|
|
12
|
+
errorAnimation(t: Theme): string;
|
|
13
|
+
standardAnimation(t: Theme, expectedTime: number): string;
|
|
14
|
+
acceptAnimation(t: Theme, startWidth: number, expectedTime: number, width: number, left: number): string;
|
|
15
|
+
slowAcceptAnimation(t: Theme, startWidth: number, width: number, left: number): string;
|
|
16
|
+
acceptWithoutAnimation(startWidth: number): string;
|
|
17
|
+
};
|