@true-engineering/true-react-common-ui-kit 3.45.2 → 4.0.0-alpha1
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/LICENSE +201 -201
- package/README.md +0 -40
- package/dist/components/AccountInfo/AccountInfo.d.ts +11 -11
- package/dist/components/AccountInfo/AccountInfo.stories.d.ts +6 -6
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +6 -6
- package/dist/components/AccountInfo/constants.d.ts +1 -1
- package/dist/components/AccountInfo/index.d.ts +2 -2
- package/dist/components/AddButton/AddButton.d.ts +14 -14
- package/dist/components/AddButton/AddButton.stories.d.ts +6 -6
- package/dist/components/AddButton/AddButton.styles.d.ts +3 -3
- package/dist/components/AddButton/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +41 -41
- package/dist/components/Button/Button.stories.d.ts +6 -6
- package/dist/components/Button/Button.styles.d.ts +8 -8
- package/dist/components/Button/constants.d.ts +2 -2
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/types.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.d.ts +24 -24
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/CloseButton/CloseButton.d.ts +10 -10
- package/dist/components/CloseButton/CloseButton.stories.d.ts +5 -5
- package/dist/components/CloseButton/CloseButton.styles.d.ts +3 -3
- package/dist/components/CloseButton/index.d.ts +2 -2
- package/dist/components/Colors/Colors.d.ts +2 -2
- package/dist/components/Colors/Colors.stories.d.ts +5 -5
- package/dist/components/Colors/Colors.styles.d.ts +1 -1
- package/dist/components/Colors/index.d.ts +1 -1
- package/dist/components/ControlWrapper/ControlWrapper.d.ts +27 -0
- package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +6 -0
- package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +6 -0
- package/dist/components/ControlWrapper/index.d.ts +2 -0
- package/dist/components/CssBaseline/CssBaseline.d.ts +5 -5
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -3
- package/dist/components/CssBaseline/index.d.ts +2 -2
- package/dist/components/DateInput/DateInput.d.ts +17 -17
- package/dist/components/DateInput/DateInput.stories.d.ts +7 -7
- package/dist/components/DateInput/DateInput.styles.d.ts +6 -6
- package/dist/components/DateInput/constants.d.ts +2 -2
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DatePicker/DatePicker.d.ts +26 -26
- package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -6
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +8 -8
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -7
- package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +2 -2
- package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +4 -4
- package/dist/components/DatePicker/components/PopperContainer/index.d.ts +1 -1
- package/dist/components/DatePicker/components/index.d.ts +2 -2
- package/dist/components/DatePicker/constants.d.ts +3 -3
- package/dist/components/DatePicker/helpers.d.ts +3 -3
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/types.d.ts +4 -4
- package/dist/components/Description/Description.d.ts +13 -13
- package/dist/components/Description/Description.stories.d.ts +16 -16
- package/dist/components/Description/Description.styles.d.ts +3 -3
- package/dist/components/Description/constants.d.ts +1 -1
- package/dist/components/Description/index.d.ts +2 -2
- package/dist/components/FileInput/FileInput.d.ts +25 -25
- package/dist/components/FileInput/FileInput.stories.d.ts +7 -7
- package/dist/components/FileInput/FileInput.styles.d.ts +3 -3
- package/dist/components/FileInput/helpers.d.ts +2 -2
- package/dist/components/FileInput/index.d.ts +2 -2
- package/dist/components/FileItem/FileItem.d.ts +31 -31
- package/dist/components/FileItem/FileItem.stories.d.ts +8 -8
- package/dist/components/FileItem/FileItem.styles.d.ts +11 -11
- package/dist/components/FileItem/constants.d.ts +5 -5
- package/dist/components/FileItem/helpers.d.ts +4 -4
- package/dist/components/FileItem/index.d.ts +4 -4
- package/dist/components/FileItem/types.d.ts +8 -8
- package/dist/components/FiltersPane/FiltersPane.d.ts +22 -22
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -32
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +11 -11
- package/dist/components/FiltersPane/components/Filter/Filter.d.ts +7 -7
- package/dist/components/FiltersPane/components/Filter/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +24 -24
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -15
- package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +5 -5
- package/dist/components/FiltersPane/components/FilterMultiSelect/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +30 -30
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -15
- package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +5 -5
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -3
- package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +16 -16
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -26
- package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +13 -13
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
- package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +13 -13
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +8 -8
- package/dist/components/FiltersPane/components/FilterWrapper/helpers.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +20 -21
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -10
- package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/index.d.ts +9 -9
- package/dist/components/FiltersPane/constants.d.ts +9 -9
- package/dist/components/FiltersPane/helpers.d.ts +5 -5
- package/dist/components/FiltersPane/index.d.ts +4 -4
- package/dist/components/FiltersPane/types.d.ts +108 -108
- package/dist/components/Flag/Flag.d.ts +8 -8
- package/dist/components/Flag/Flag.stories.d.ts +12 -12
- package/dist/components/Flag/Flag.styles.d.ts +3 -3
- package/dist/components/Flag/index.d.ts +2 -2
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +31 -31
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +19 -19
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -7
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +14 -14
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -3
- package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -2
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +31 -31
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -6
- package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -2
- package/dist/components/FlexibleTable/components/index.d.ts +2 -2
- package/dist/components/FlexibleTable/constants.d.ts +3 -3
- package/dist/components/FlexibleTable/helpers.d.ts +3 -3
- package/dist/components/FlexibleTable/index.d.ts +4 -4
- package/dist/components/FlexibleTable/types.d.ts +57 -57
- package/dist/components/Icon/Icon.d.ts +8 -8
- package/dist/components/Icon/Icon.stories.d.ts +6 -6
- package/dist/components/Icon/Icon.styles.d.ts +3 -3
- package/dist/components/Icon/complexIcons/icons.d.ts +10 -10
- package/dist/components/Icon/complexIcons/index.d.ts +1 -1
- package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +6 -6
- package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +1 -1
- package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +6 -6
- package/dist/components/Icon/components/IconBolerplate/index.d.ts +1 -1
- package/dist/components/Icon/components/index.d.ts +2 -2
- package/dist/components/Icon/helpers.d.ts +6 -6
- package/dist/components/Icon/icons-list.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +5 -5
- package/dist/components/Icon/snippet.d.ts +3 -3
- package/dist/components/Icon/types.d.ts +13 -13
- package/dist/components/IconButton/IconButton.d.ts +19 -19
- package/dist/components/IconButton/IconButton.stories.d.ts +6 -6
- package/dist/components/IconButton/IconButton.styles.d.ts +3 -3
- package/dist/components/IconButton/constants.d.ts +2 -2
- package/dist/components/IconButton/index.d.ts +3 -3
- package/dist/components/IconButton/types.d.ts +5 -5
- package/dist/components/IncrementInput/IncrementInput.d.ts +9 -9
- package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -6
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +9 -9
- package/dist/components/IncrementInput/index.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +5 -52
- package/dist/components/Input/Input.stories.d.ts +25 -34
- package/dist/components/Input/Input.styles.d.ts +8 -7
- package/dist/components/Input/InputBase.d.ts +24 -0
- package/dist/components/Input/index.d.ts +4 -3
- package/dist/components/Input/types.d.ts +3 -4
- package/dist/components/List/List.d.ts +9 -9
- package/dist/components/List/List.stories.d.ts +5 -5
- package/dist/components/List/List.styles.d.ts +5 -5
- package/dist/components/List/components/ListItem/ListItem.d.ts +17 -17
- package/dist/components/List/components/ListItem/ListItem.styles.d.ts +3 -3
- package/dist/components/List/components/ListItem/index.d.ts +2 -2
- package/dist/components/List/components/index.d.ts +1 -1
- package/dist/components/List/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +34 -34
- package/dist/components/Modal/Modal.stories.d.ts +29 -29
- package/dist/components/Modal/Modal.styles.d.ts +7 -7
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/types.d.ts +3 -3
- package/dist/components/MoreMenu/MoreMenu.d.ts +15 -15
- package/dist/components/MoreMenu/MoreMenu.stories.d.ts +6 -6
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -6
- package/dist/components/MoreMenu/index.d.ts +2 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts +23 -23
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +13 -13
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -7
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +12 -12
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -3
- package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +2 -2
- package/dist/components/MultiSelect/components/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts +4 -4
- package/dist/components/MultiSelect/types.d.ts +1 -1
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +25 -25
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -13
- package/dist/components/MultiSelectList/constants.d.ts +3 -3
- package/dist/components/MultiSelectList/helpers.d.ts +3 -3
- package/dist/components/MultiSelectList/index.d.ts +3 -3
- package/dist/components/MultiSelectList/types.d.ts +12 -12
- package/dist/components/NewMoreMenu/NewMoreMenu.d.ts +13 -13
- package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -12
- package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +8 -8
- package/dist/components/NewMoreMenu/index.d.ts +2 -2
- package/dist/components/Notification/Notification.d.ts +17 -17
- package/dist/components/Notification/Notification.stories.d.ts +8 -8
- package/dist/components/Notification/Notification.styles.d.ts +3 -3
- package/dist/components/Notification/index.d.ts +3 -3
- package/dist/components/Notification/types.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +18 -18
- package/dist/components/NumberInput/NumberInput.stories.d.ts +7 -7
- package/dist/components/NumberInput/helpers.d.ts +4 -4
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts +17 -17
- package/dist/components/PhoneInput/PhoneInput.stories.d.ts +28 -28
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +14 -13
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -5
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -7
- package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +2 -2
- package/dist/components/PhoneInput/components/index.d.ts +1 -1
- package/dist/components/PhoneInput/constants.d.ts +2 -2
- package/dist/components/PhoneInput/index.d.ts +4 -4
- package/dist/components/PhoneInput/types.d.ts +17 -15
- package/dist/components/RadioButton/RadioButton.d.ts +15 -15
- package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -7
- package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -3
- package/dist/components/RadioButton/index.d.ts +2 -2
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +386 -386
- package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +3 -3
- package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +6 -8
- package/dist/components/SearchInput/SearchInput.stories.d.ts +16 -6
- package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -7
- package/dist/components/SearchInput/index.d.ts +2 -2
- package/dist/components/Select/CustomSelect.stories.d.ts +11 -11
- package/dist/components/Select/MultiSelect.stories.d.ts +15 -15
- package/dist/components/Select/Select.d.ts +52 -52
- package/dist/components/Select/Select.stories.d.ts +15 -15
- package/dist/components/Select/Select.styles.d.ts +34 -33
- package/dist/components/Select/components/SelectList/SelectList.d.ts +23 -23
- package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +6 -6
- package/dist/components/Select/components/SelectList/index.d.ts +2 -2
- package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +15 -15
- package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
- package/dist/components/Select/components/SelectListItem/index.d.ts +1 -1
- package/dist/components/Select/components/index.d.ts +2 -2
- package/dist/components/Select/constants.d.ts +2 -2
- package/dist/components/Select/helpers.d.ts +4 -4
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/types.d.ts +4 -1
- package/dist/components/Selector/Selector.d.ts +22 -22
- package/dist/components/Selector/Selector.stories.d.ts +7 -7
- package/dist/components/Selector/Selector.styles.d.ts +9 -9
- package/dist/components/Selector/index.d.ts +2 -2
- package/dist/components/Selector/types.d.ts +10 -10
- package/dist/components/Skeleton/Skeleton.d.ts +7 -7
- package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -6
- package/dist/components/Skeleton/Skeleton.styles.d.ts +3 -3
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/SmartInput/SmartInput.d.ts +14 -14
- package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -18
- package/dist/components/SmartInput/constants.d.ts +16 -16
- package/dist/components/SmartInput/helpers.d.ts +2 -2
- package/dist/components/SmartInput/index.d.ts +2 -2
- package/dist/components/SmartInput/types.d.ts +6 -6
- package/dist/components/Status/Status.d.ts +16 -16
- package/dist/components/Status/Status.stories.d.ts +6 -6
- package/dist/components/Status/Status.styles.d.ts +3 -3
- package/dist/components/Status/constants.d.ts +2 -2
- package/dist/components/Status/index.d.ts +2 -2
- package/dist/components/Status/types.d.ts +3 -3
- package/dist/components/Switch/Switch.d.ts +20 -20
- package/dist/components/Switch/Switch.stories.d.ts +16 -16
- package/dist/components/Switch/Switch.styles.d.ts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/Switch/types.d.ts +4 -4
- package/dist/components/TextArea/TextArea.d.ts +29 -38
- package/dist/components/TextArea/TextArea.stories.d.ts +17 -17
- package/dist/components/TextArea/TextArea.styles.d.ts +9 -3
- package/dist/components/TextArea/index.d.ts +3 -3
- package/dist/components/TextArea/types.d.ts +2 -2
- package/dist/components/TextButton/TextButton.d.ts +31 -31
- package/dist/components/TextButton/TextButton.stories.d.ts +6 -6
- package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
- package/dist/components/TextButton/constants.d.ts +2 -2
- package/dist/components/TextButton/index.d.ts +3 -3
- package/dist/components/TextButton/types.d.ts +5 -5
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
- package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -12
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -3
- package/dist/components/TextWithInfo/index.d.ts +2 -2
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +27 -27
- package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -24
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -6
- package/dist/components/TextWithTooltip/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +11 -11
- package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +17 -17
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -7
- package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +5 -5
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -3
- package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +8 -8
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -3
- package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/index.d.ts +3 -3
- package/dist/components/ThemedPreloader/constants.d.ts +1 -1
- package/dist/components/ThemedPreloader/index.d.ts +4 -4
- package/dist/components/ThemedPreloader/types.d.ts +2 -2
- package/dist/components/Toaster/Toaster.d.ts +23 -23
- package/dist/components/Toaster/Toaster.stories.d.ts +5 -5
- package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
- package/dist/components/Toaster/constants.d.ts +1 -1
- package/dist/components/Toaster/index.d.ts +3 -3
- package/dist/components/Toaster/types.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +11 -11
- package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -5
- package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -3
- package/dist/components/Tooltip/index.d.ts +3 -3
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/WithMessages/WithMessages.d.ts +10 -0
- package/dist/components/WithMessages/WithMessages.stories.d.ts +7 -0
- package/dist/components/WithMessages/WithMessages.styles.d.ts +3 -0
- package/dist/components/WithMessages/index.d.ts +2 -0
- package/dist/components/WithPopup/WithPopup.d.ts +33 -40
- package/dist/components/WithPopup/WithPopup.stories.d.ts +16 -16
- package/dist/components/WithPopup/WithPopup.styles.d.ts +3 -3
- package/dist/components/WithPopup/constants.d.ts +2 -2
- package/dist/components/WithPopup/index.d.ts +2 -2
- package/dist/components/WithPopup/types.d.ts +19 -22
- package/dist/components/WithTooltip/WithTooltip.d.ts +18 -18
- package/dist/components/WithTooltip/WithTooltip.stories.d.ts +6 -6
- package/dist/components/WithTooltip/WithTooltip.styles.d.ts +6 -7
- package/dist/components/WithTooltip/index.d.ts +2 -2
- package/dist/components/index.d.ts +48 -46
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/mime-types.d.ts +76 -76
- package/dist/constants/phone-info.d.ts +2 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/misc.d.ts +21 -21
- package/dist/helpers/phone.d.ts +14 -14
- package/dist/helpers/popper-helpers.d.ts +2 -2
- package/dist/hooks/index.d.ts +7 -7
- package/dist/hooks/use-did-mount-effect.d.ts +2 -2
- package/dist/hooks/use-dropdown.d.ts +11 -11
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-merged-refs.d.ts +2 -2
- package/dist/hooks/use-mixed-styles.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +5 -5
- package/dist/hooks/use-tweak-styles.d.ts +21 -21
- package/dist/index.d.ts +6 -6
- package/dist/theme/Provider.d.ts +11 -11
- package/dist/theme/common.d.ts +111 -103
- package/dist/theme/helpers.d.ts +10 -10
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/types.d.ts +84 -82
- package/dist/true-react-common-ui-kit.js +1258 -1110
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +1238 -1090
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +45 -44
- package/package.json +99 -99
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.styles.ts +52 -52
- package/src/components/AccountInfo/AccountInfo.tsx +80 -80
- package/src/components/AccountInfo/constants.ts +1 -1
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/AddButton.tsx +52 -52
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.stories.tsx +50 -54
- package/src/components/Button/Button.styles.ts +200 -200
- package/src/components/Button/Button.tsx +129 -129
- package/src/components/Button/constants.ts +11 -11
- package/src/components/Button/index.ts +3 -3
- package/src/components/Button/types.ts +5 -5
- package/src/components/Checkbox/Checkbox.stories.tsx +54 -54
- package/src/components/Checkbox/Checkbox.styles.ts +49 -49
- package/src/components/Checkbox/Checkbox.tsx +84 -84
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.stories.tsx +11 -11
- package/src/components/CloseButton/CloseButton.styles.ts +34 -34
- package/src/components/CloseButton/CloseButton.tsx +35 -35
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +36 -36
- package/src/components/Colors/Colors.tsx +26 -26
- package/src/components/Colors/index.ts +1 -1
- package/src/components/ControlWrapper/ControlWrapper.stories.tsx +45 -0
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +185 -0
- package/src/components/ControlWrapper/ControlWrapper.tsx +151 -0
- package/src/components/ControlWrapper/index.ts +2 -0
- package/src/components/CssBaseline/CssBaseline.styles.ts +14 -14
- package/src/components/CssBaseline/CssBaseline.tsx +13 -13
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.stories.tsx +61 -61
- package/src/components/DateInput/DateInput.styles.ts +13 -18
- package/src/components/DateInput/DateInput.tsx +90 -90
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- package/src/components/DatePicker/DatePicker.stories.tsx +88 -88
- package/src/components/DatePicker/DatePicker.styles.ts +38 -38
- package/src/components/DatePicker/DatePicker.tsx +314 -314
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +54 -88
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +81 -89
- package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
- package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
- package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
- package/src/components/DatePicker/components/index.ts +2 -2
- package/src/components/DatePicker/constants.ts +6 -6
- package/src/components/DatePicker/helpers.ts +23 -23
- package/src/components/DatePicker/index.ts +4 -4
- package/src/components/DatePicker/types.ts +48 -48
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.styles.ts +30 -30
- package/src/components/Description/Description.tsx +61 -61
- package/src/components/Description/constants.ts +1 -1
- package/src/components/Description/index.ts +2 -2
- package/src/components/FileInput/FileInput.stories.tsx +75 -75
- package/src/components/FileInput/FileInput.styles.ts +80 -80
- package/src/components/FileInput/FileInput.tsx +147 -147
- package/src/components/FileInput/helpers.ts +6 -6
- package/src/components/FileInput/index.ts +2 -2
- package/src/components/FileItem/FileItem.stories.tsx +59 -63
- package/src/components/FileItem/FileItem.styles.ts +122 -122
- package/src/components/FileItem/FileItem.tsx +157 -157
- package/src/components/FileItem/constants.ts +29 -29
- package/src/components/FileItem/helpers.ts +27 -27
- package/src/components/FileItem/index.ts +4 -4
- package/src/components/FileItem/types.ts +11 -11
- package/src/components/FiltersPane/FiltersPane.stories.tsx +295 -299
- package/src/components/FiltersPane/FiltersPane.styles.ts +92 -92
- package/src/components/FiltersPane/FiltersPane.tsx +162 -162
- package/src/components/FiltersPane/components/Filter/Filter.tsx +114 -114
- package/src/components/FiltersPane/components/Filter/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +63 -61
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +147 -154
- package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
- package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +143 -141
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +361 -361
- package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
- package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +208 -210
- package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -21
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
- package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +99 -99
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +149 -149
- package/src/components/FiltersPane/components/FilterWrapper/helpers.ts +14 -14
- package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +124 -123
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +162 -165
- package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
- package/src/components/FiltersPane/components/index.ts +9 -9
- package/src/components/FiltersPane/constants.ts +137 -137
- package/src/components/FiltersPane/helpers.ts +26 -26
- package/src/components/FiltersPane/index.ts +5 -5
- package/src/components/FiltersPane/types.ts +157 -157
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.styles.ts +17 -17
- package/src/components/Flag/Flag.tsx +26 -26
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +300 -300
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +111 -111
- package/src/components/FlexibleTable/FlexibleTable.tsx +308 -308
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +43 -43
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +113 -113
- package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +193 -193
- package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -2
- package/src/components/FlexibleTable/components/index.ts +2 -2
- package/src/components/FlexibleTable/constants.ts +8 -8
- package/src/components/FlexibleTable/helpers.ts +16 -16
- package/src/components/FlexibleTable/index.ts +4 -4
- package/src/components/FlexibleTable/types.ts +82 -82
- package/src/components/Icon/Icon.stories.tsx +86 -86
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +26 -26
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/fileExcel.svg +10 -10
- package/src/components/Icon/complexIcons/fileImage.svg +12 -12
- package/src/components/Icon/complexIcons/fileOther.svg +9 -9
- package/src/components/Icon/complexIcons/filePdf.svg +10 -10
- package/src/components/Icon/complexIcons/fileWord.svg +10 -10
- package/src/components/Icon/complexIcons/fileXml.svg +12 -12
- package/src/components/Icon/complexIcons/fileZip.svg +15 -15
- package/src/components/Icon/complexIcons/icons.ts +19 -19
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
- package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
- package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
- package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
- package/src/components/Icon/components/index.ts +2 -2
- package/src/components/Icon/helpers.tsx +9 -9
- package/src/components/Icon/icons-list.ts +855 -855
- package/src/components/Icon/index.ts +5 -5
- package/src/components/Icon/snippet.tsx +6 -6
- package/src/components/Icon/types.ts +18 -18
- package/src/components/IconButton/IconButton.stories.tsx +32 -32
- package/src/components/IconButton/IconButton.styles.ts +84 -84
- package/src/components/IconButton/IconButton.tsx +74 -74
- package/src/components/IconButton/constants.ts +3 -3
- package/src/components/IconButton/index.ts +3 -3
- package/src/components/IconButton/types.ts +11 -11
- package/src/components/IncrementInput/IncrementInput.stories.tsx +29 -31
- package/src/components/IncrementInput/IncrementInput.styles.ts +78 -78
- package/src/components/IncrementInput/IncrementInput.tsx +105 -105
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +83 -91
- package/src/components/Input/Input.styles.ts +101 -308
- package/src/components/Input/Input.tsx +33 -296
- package/src/components/Input/InputBase.tsx +251 -0
- package/src/components/Input/index.ts +4 -3
- package/src/components/Input/types.ts +4 -33
- package/src/components/List/List.stories.tsx +90 -90
- package/src/components/List/List.styles.ts +25 -25
- package/src/components/List/List.tsx +68 -68
- package/src/components/List/components/ListItem/ListItem.styles.ts +52 -52
- package/src/components/List/components/ListItem/ListItem.tsx +68 -68
- package/src/components/List/components/ListItem/index.ts +2 -2
- package/src/components/List/components/index.ts +1 -1
- package/src/components/List/index.ts +3 -3
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/Modal/Modal.styles.ts +318 -318
- package/src/components/Modal/Modal.tsx +203 -203
- package/src/components/Modal/index.ts +3 -3
- package/src/components/Modal/types.ts +17 -17
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +69 -69
- package/src/components/MoreMenu/MoreMenu.tsx +93 -93
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
- package/src/components/MultiSelect/MultiSelect.tsx +106 -106
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
- package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
- package/src/components/MultiSelect/components/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +4 -4
- package/src/components/MultiSelect/types.ts +1 -1
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +138 -136
- package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
- package/src/components/MultiSelectList/constants.ts +21 -21
- package/src/components/MultiSelectList/helpers.ts +11 -11
- package/src/components/MultiSelectList/index.ts +3 -3
- package/src/components/MultiSelectList/types.ts +15 -15
- package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +74 -74
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +39 -39
- package/src/components/NewMoreMenu/NewMoreMenu.tsx +79 -79
- package/src/components/NewMoreMenu/index.ts +2 -2
- package/src/components/Notification/Notification.stories.tsx +51 -55
- package/src/components/Notification/Notification.styles.ts +57 -57
- package/src/components/Notification/Notification.tsx +77 -77
- package/src/components/Notification/index.ts +3 -3
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +33 -35
- package/src/components/NumberInput/NumberInput.tsx +134 -137
- package/src/components/NumberInput/helpers.ts +84 -84
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +66 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +92 -89
- package/src/components/PhoneInput/PhoneInput.tsx +211 -214
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +105 -103
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
- package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
- package/src/components/PhoneInput/components/index.ts +1 -1
- package/src/components/PhoneInput/constants.ts +3 -3
- package/src/components/PhoneInput/index.ts +4 -4
- package/src/components/PhoneInput/types.ts +20 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +57 -57
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
- package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.stories.tsx +24 -23
- package/src/components/SearchInput/SearchInput.styles.ts +44 -54
- package/src/components/SearchInput/SearchInput.tsx +49 -70
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/CustomSelect.stories.tsx +250 -253
- package/src/components/Select/MultiSelect.stories.tsx +232 -240
- package/src/components/Select/Select.stories.tsx +228 -236
- package/src/components/Select/Select.styles.ts +139 -147
- package/src/components/Select/Select.tsx +628 -658
- package/src/components/Select/components/SelectList/SelectList.styles.ts +73 -73
- package/src/components/Select/components/SelectList/SelectList.tsx +152 -152
- package/src/components/Select/components/SelectList/index.ts +2 -2
- package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
- package/src/components/Select/components/SelectListItem/SelectListItem.tsx +76 -76
- package/src/components/Select/components/SelectListItem/index.ts +1 -1
- package/src/components/Select/components/index.ts +2 -2
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/helpers.ts +20 -20
- package/src/components/Select/index.ts +4 -4
- package/src/components/Select/types.ts +6 -1
- package/src/components/Selector/Selector.stories.tsx +62 -62
- package/src/components/Selector/Selector.styles.ts +165 -165
- package/src/components/Selector/Selector.tsx +115 -115
- package/src/components/Selector/index.ts +2 -2
- package/src/components/Selector/types.ts +12 -12
- package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
- package/src/components/Skeleton/Skeleton.styles.ts +46 -46
- package/src/components/Skeleton/Skeleton.tsx +12 -12
- package/src/components/Skeleton/index.ts +2 -2
- package/src/components/SmartInput/SmartInput.stories.tsx +51 -52
- package/src/components/SmartInput/SmartInput.tsx +116 -116
- package/src/components/SmartInput/constants.ts +91 -91
- package/src/components/SmartInput/helpers.ts +26 -26
- package/src/components/SmartInput/index.ts +2 -2
- package/src/components/SmartInput/types.ts +18 -18
- package/src/components/Status/Status.stories.tsx +69 -73
- package/src/components/Status/Status.styles.ts +143 -143
- package/src/components/Status/Status.tsx +49 -49
- package/src/components/Status/constants.ts +11 -11
- package/src/components/Status/index.ts +3 -3
- package/src/components/Status/types.ts +5 -5
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/Switch/Switch.tsx +75 -75
- package/src/components/Switch/index.ts +3 -3
- package/src/components/Switch/types.ts +4 -4
- package/src/components/TextArea/TextArea.stories.tsx +35 -37
- package/src/components/TextArea/TextArea.styles.ts +82 -177
- package/src/components/TextArea/TextArea.tsx +161 -183
- package/src/components/TextArea/index.ts +3 -3
- package/src/components/TextArea/types.ts +6 -6
- package/src/components/TextButton/TextButton.stories.tsx +43 -47
- package/src/components/TextButton/TextButton.styles.ts +130 -130
- package/src/components/TextButton/TextButton.tsx +110 -110
- package/src/components/TextButton/constants.ts +3 -3
- package/src/components/TextButton/index.ts +3 -3
- package/src/components/TextButton/types.ts +11 -11
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
- package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -21
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +156 -156
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -26
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +55 -55
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -15
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -24
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/index.ts +3 -3
- package/src/components/ThemedPreloader/constants.ts +1 -1
- package/src/components/ThemedPreloader/index.ts +4 -4
- package/src/components/ThemedPreloader/types.ts +3 -3
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Toaster/Toaster.styles.ts +60 -60
- package/src/components/Toaster/Toaster.tsx +96 -96
- package/src/components/Toaster/constants.ts +1 -1
- package/src/components/Toaster/index.ts +3 -3
- package/src/components/Toaster/types.ts +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.styles.ts +49 -49
- package/src/components/Tooltip/Tooltip.tsx +35 -35
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/WithMessages/WithMessages.stories.tsx +40 -0
- package/src/components/WithMessages/WithMessages.styles.ts +47 -0
- package/src/components/WithMessages/WithMessages.tsx +59 -0
- package/src/components/WithMessages/index.ts +2 -0
- package/src/components/WithPopup/WithPopup.stories.tsx +100 -101
- package/src/components/WithPopup/WithPopup.styles.ts +45 -47
- package/src/components/WithPopup/WithPopup.tsx +184 -210
- package/src/components/WithPopup/constants.ts +3 -3
- package/src/components/WithPopup/index.ts +2 -2
- package/src/components/WithPopup/types.ts +25 -32
- package/src/components/WithTooltip/WithTooltip.stories.tsx +56 -56
- package/src/components/WithTooltip/WithTooltip.styles.ts +7 -13
- package/src/components/WithTooltip/WithTooltip.tsx +67 -72
- package/src/components/WithTooltip/index.ts +2 -2
- package/src/components/index.ts +48 -46
- package/src/constants/index.ts +2 -2
- package/src/constants/mime-types.ts +77 -77
- package/src/constants/phone-info.ts +2147 -2147
- package/src/helpers/index.ts +3 -3
- package/src/helpers/misc.ts +160 -160
- package/src/helpers/phone.ts +91 -91
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/index.ts +7 -7
- package/src/hooks/use-did-mount-effect.ts +18 -18
- package/src/hooks/use-dropdown.ts +84 -84
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-merged-refs.ts +4 -4
- package/src/hooks/use-mixed-styles.ts +14 -14
- package/src/hooks/use-on-click-outside.ts +77 -77
- package/src/hooks/use-tweak-styles.ts +57 -57
- package/src/index.ts +6 -6
- package/src/theme/Provider.tsx +21 -21
- package/src/theme/common.ts +175 -166
- package/src/theme/helpers.ts +76 -76
- package/src/theme/index.ts +4 -4
- package/src/theme/types.ts +162 -158
- package/src/types.ts +65 -62
- package/src/vite-env.d.ts +1 -1
- package/dist/components/Input/constants.d.ts +0 -1
- package/dist/components/WithPopup/helpers.d.ts +0 -2
- package/src/components/Input/constants.ts +0 -1
- package/src/components/WithPopup/helpers.ts +0 -9
|
@@ -964,7 +964,17 @@
|
|
|
964
964
|
BORDER_RADIUS_STD: 8,
|
|
965
965
|
BORDER_RADIUS_SMALL: 6,
|
|
966
966
|
BORDER_RADIUS_EXTRA_SMALL: 4,
|
|
967
|
-
|
|
967
|
+
CONTROL: {
|
|
968
|
+
HEIGHT: 48,
|
|
969
|
+
PADDING: 16,
|
|
970
|
+
ICON_SIZE: 24,
|
|
971
|
+
ICON_INNER_SIZE: 24,
|
|
972
|
+
ICON_GAP: 8
|
|
973
|
+
},
|
|
974
|
+
Z_INDEX: {
|
|
975
|
+
CONTROL_INVALID: 1,
|
|
976
|
+
CONTROL_FOCUS: 2
|
|
977
|
+
}
|
|
968
978
|
};
|
|
969
979
|
var helpers = {
|
|
970
980
|
withAngle: function() {
|
|
@@ -1035,11 +1045,9 @@
|
|
|
1035
1045
|
overflow: "auto",
|
|
1036
1046
|
// Chromium
|
|
1037
1047
|
"@supports selector(::-webkit-scrollbar)": {
|
|
1038
|
-
"--webkit-scrollbar-width": "10px",
|
|
1039
|
-
"--webkit-scrollbar-height": "10px",
|
|
1040
1048
|
"&::-webkit-scrollbar": {
|
|
1041
|
-
|
|
1042
|
-
|
|
1049
|
+
height: 10,
|
|
1050
|
+
width: 10,
|
|
1043
1051
|
"&-thumb": {
|
|
1044
1052
|
width: 6,
|
|
1045
1053
|
minHeight: 30,
|
|
@@ -1862,7 +1870,7 @@
|
|
|
1862
1870
|
baseMerge(object, source, srcIndex);
|
|
1863
1871
|
});
|
|
1864
1872
|
const merge$1 = merge;
|
|
1865
|
-
function _define_property$
|
|
1873
|
+
function _define_property$18(obj, key, value) {
|
|
1866
1874
|
if (key in obj) {
|
|
1867
1875
|
Object.defineProperty(obj, key, {
|
|
1868
1876
|
value,
|
|
@@ -1875,7 +1883,7 @@
|
|
|
1875
1883
|
}
|
|
1876
1884
|
return obj;
|
|
1877
1885
|
}
|
|
1878
|
-
function _object_spread$
|
|
1886
|
+
function _object_spread$16(target) {
|
|
1879
1887
|
for (var i = 1; i < arguments.length; i++) {
|
|
1880
1888
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
1881
1889
|
var ownKeys2 = Object.keys(source);
|
|
@@ -1885,12 +1893,12 @@
|
|
|
1885
1893
|
}));
|
|
1886
1894
|
}
|
|
1887
1895
|
ownKeys2.forEach(function(key) {
|
|
1888
|
-
_define_property$
|
|
1896
|
+
_define_property$18(target, key, source[key]);
|
|
1889
1897
|
});
|
|
1890
1898
|
}
|
|
1891
1899
|
return target;
|
|
1892
1900
|
}
|
|
1893
|
-
function ownKeys$
|
|
1901
|
+
function ownKeys$X(object, enumerableOnly) {
|
|
1894
1902
|
var keys2 = Object.keys(object);
|
|
1895
1903
|
if (Object.getOwnPropertySymbols) {
|
|
1896
1904
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -1903,12 +1911,12 @@
|
|
|
1903
1911
|
}
|
|
1904
1912
|
return keys2;
|
|
1905
1913
|
}
|
|
1906
|
-
function _object_spread_props$
|
|
1914
|
+
function _object_spread_props$X(target, source) {
|
|
1907
1915
|
source = source != null ? source : {};
|
|
1908
1916
|
if (Object.getOwnPropertyDescriptors) {
|
|
1909
1917
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
1910
1918
|
} else {
|
|
1911
|
-
ownKeys$
|
|
1919
|
+
ownKeys$X(Object(source)).forEach(function(key) {
|
|
1912
1920
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
1913
1921
|
});
|
|
1914
1922
|
}
|
|
@@ -1963,7 +1971,7 @@
|
|
|
1963
1971
|
return trueReactPlatformHelpers.mergeStyles(styles, trueReactPlatformHelpers.isNotEmpty(componentName) ? theme === null || theme === void 0 ? void 0 : (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : _theme_components[componentName] : void 0, tweakStyles);
|
|
1964
1972
|
});
|
|
1965
1973
|
return function(data) {
|
|
1966
|
-
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$
|
|
1974
|
+
return useStyles2(trueReactPlatformHelpers.isNotEmpty(data) ? _object_spread_props$X(_object_spread$16({}, data), {
|
|
1967
1975
|
theme: cleanStyles(data.theme)
|
|
1968
1976
|
}) : data);
|
|
1969
1977
|
};
|
|
@@ -6497,7 +6505,7 @@
|
|
|
6497
6505
|
if (Array.isArray(arr))
|
|
6498
6506
|
return _array_like_to_array$n(arr);
|
|
6499
6507
|
}
|
|
6500
|
-
function _define_property$
|
|
6508
|
+
function _define_property$17(obj, key, value) {
|
|
6501
6509
|
if (key in obj) {
|
|
6502
6510
|
Object.defineProperty(obj, key, {
|
|
6503
6511
|
value,
|
|
@@ -6517,7 +6525,7 @@
|
|
|
6517
6525
|
function _non_iterable_spread$8() {
|
|
6518
6526
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
6519
6527
|
}
|
|
6520
|
-
function _object_spread$
|
|
6528
|
+
function _object_spread$15(target) {
|
|
6521
6529
|
for (var i = 1; i < arguments.length; i++) {
|
|
6522
6530
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6523
6531
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6527,7 +6535,7 @@
|
|
|
6527
6535
|
}));
|
|
6528
6536
|
}
|
|
6529
6537
|
ownKeys2.forEach(function(key) {
|
|
6530
|
-
_define_property$
|
|
6538
|
+
_define_property$17(target, key, source[key]);
|
|
6531
6539
|
});
|
|
6532
6540
|
}
|
|
6533
6541
|
return target;
|
|
@@ -6583,7 +6591,7 @@
|
|
|
6583
6591
|
},
|
|
6584
6592
|
{
|
|
6585
6593
|
name: "flip",
|
|
6586
|
-
options: _object_spread$
|
|
6594
|
+
options: _object_spread$15({
|
|
6587
6595
|
fallbackPlacements: canBeFlipped ? [
|
|
6588
6596
|
"bottom-start",
|
|
6589
6597
|
"top-start"
|
|
@@ -6657,71 +6665,71 @@
|
|
|
6657
6665
|
return trueReactPlatformHelpers.mergeRefs(refs);
|
|
6658
6666
|
}, refs);
|
|
6659
6667
|
};
|
|
6660
|
-
const avatarGreen = ` <svg
|
|
6661
|
-
width="100%"
|
|
6662
|
-
height="100%"
|
|
6663
|
-
viewBox="0 0 32 32"
|
|
6664
|
-
fill="none"
|
|
6665
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6666
|
-
|
|
6667
|
-
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED"
|
|
6668
|
-
<mask
|
|
6669
|
-
id="mask0_0_12744"
|
|
6670
|
-
style="mask-type: 'alpha';"
|
|
6671
|
-
maskUnits="userSpaceOnUse"
|
|
6672
|
-
x="0"
|
|
6673
|
-
y="0"
|
|
6674
|
-
width="32"
|
|
6675
|
-
height="32"
|
|
6676
|
-
|
|
6677
|
-
<circle cx="16" cy="16" r="16" fill="white"
|
|
6678
|
-
</mask
|
|
6679
|
-
<g mask="url(#mask0_0_12744)"
|
|
6680
|
-
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)"
|
|
6681
|
-
<mask
|
|
6682
|
-
id="mask1_0_12744"
|
|
6683
|
-
style="mask-type: 'alpha';"
|
|
6684
|
-
maskUnits="userSpaceOnUse"
|
|
6685
|
-
x="3"
|
|
6686
|
-
y="16"
|
|
6687
|
-
width="26"
|
|
6688
|
-
height="26"
|
|
6689
|
-
|
|
6690
|
-
<circle cx="16" cy="29" r="13" fill="white"
|
|
6691
|
-
</mask
|
|
6692
|
-
<g mask="url(#mask1_0_12744)"
|
|
6693
|
-
<ellipse
|
|
6694
|
-
cx="16"
|
|
6695
|
-
cy="17.5"
|
|
6696
|
-
rx="6"
|
|
6697
|
-
ry="7.5"
|
|
6698
|
-
fill="#505F79"
|
|
6699
|
-
fill-opacity="0.204983"
|
|
6700
|
-
|
|
6701
|
-
</g
|
|
6702
|
-
</g
|
|
6703
|
-
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white"
|
|
6704
|
-
<defs
|
|
6705
|
-
<linearGradient
|
|
6706
|
-
id="paint0_linear_0_12744"
|
|
6707
|
-
x1="13.347"
|
|
6708
|
-
y1="46.279"
|
|
6709
|
-
x2="33.5318"
|
|
6710
|
-
y2="30.8088"
|
|
6711
|
-
gradientUnits="userSpaceOnUse"
|
|
6712
|
-
|
|
6713
|
-
<stop stop-color="#ABD229"
|
|
6714
|
-
<stop offset="1" stop-color="#9CD03F"
|
|
6715
|
-
</linearGradient
|
|
6716
|
-
</defs
|
|
6668
|
+
const avatarGreen = ` <svg
|
|
6669
|
+
width="100%"
|
|
6670
|
+
height="100%"
|
|
6671
|
+
viewBox="0 0 32 32"
|
|
6672
|
+
fill="none"
|
|
6673
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
6674
|
+
>
|
|
6675
|
+
<circle opacity="0.5" cx="16" cy="16" r="16" fill="#DDE3ED" />
|
|
6676
|
+
<mask
|
|
6677
|
+
id="mask0_0_12744"
|
|
6678
|
+
style="mask-type: 'alpha';"
|
|
6679
|
+
maskUnits="userSpaceOnUse"
|
|
6680
|
+
x="0"
|
|
6681
|
+
y="0"
|
|
6682
|
+
width="32"
|
|
6683
|
+
height="32"
|
|
6684
|
+
>
|
|
6685
|
+
<circle cx="16" cy="16" r="16" fill="white" />
|
|
6686
|
+
</mask>
|
|
6687
|
+
<g mask="url(#mask0_0_12744)">
|
|
6688
|
+
<circle cx="16" cy="29" r="13" fill="url(#paint0_linear_0_12744)" />
|
|
6689
|
+
<mask
|
|
6690
|
+
id="mask1_0_12744"
|
|
6691
|
+
style="mask-type: 'alpha';"
|
|
6692
|
+
maskUnits="userSpaceOnUse"
|
|
6693
|
+
x="3"
|
|
6694
|
+
y="16"
|
|
6695
|
+
width="26"
|
|
6696
|
+
height="26"
|
|
6697
|
+
>
|
|
6698
|
+
<circle cx="16" cy="29" r="13" fill="white" />
|
|
6699
|
+
</mask>
|
|
6700
|
+
<g mask="url(#mask1_0_12744)">
|
|
6701
|
+
<ellipse
|
|
6702
|
+
cx="16"
|
|
6703
|
+
cy="17.5"
|
|
6704
|
+
rx="6"
|
|
6705
|
+
ry="7.5"
|
|
6706
|
+
fill="#505F79"
|
|
6707
|
+
fill-opacity="0.204983"
|
|
6708
|
+
/>
|
|
6709
|
+
</g>
|
|
6710
|
+
</g>
|
|
6711
|
+
<ellipse cx="16" cy="13" rx="6" ry="7" fill="white" />
|
|
6712
|
+
<defs>
|
|
6713
|
+
<linearGradient
|
|
6714
|
+
id="paint0_linear_0_12744"
|
|
6715
|
+
x1="13.347"
|
|
6716
|
+
y1="46.279"
|
|
6717
|
+
x2="33.5318"
|
|
6718
|
+
y2="30.8088"
|
|
6719
|
+
gradientUnits="userSpaceOnUse"
|
|
6720
|
+
>
|
|
6721
|
+
<stop stop-color="#ABD229" />
|
|
6722
|
+
<stop offset="1" stop-color="#9CD03F" />
|
|
6723
|
+
</linearGradient>
|
|
6724
|
+
</defs>
|
|
6717
6725
|
</svg>`;
|
|
6718
|
-
const fileExcel = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6719
|
-
const fileImage = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6720
|
-
const fileOther = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6721
|
-
const filePdf = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6722
|
-
const fileWord = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6723
|
-
const fileXml = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6724
|
-
const fileZip = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\
|
|
6726
|
+
const fileExcel = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#21A366"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16081)" style="mix-blend-mode:overlay"/>\n <path d="M8.00342 14.5244L10.0728 11.3062L12.1357 14.5244H14.4019L11.2217 9.73828L14.1162 5.21875H11.939L10.1108 8.2085L8.24463 5.21875H6.04834L8.93018 9.66846L5.75 14.5244H8.00342Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16081" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
|
|
6727
|
+
const fileImage = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16103)" style="mix-blend-mode:overlay"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.90113 15C3.09595 15 2.62093 14.097 3.07709 13.4335L6.67606 8.19861C7.07341 7.62064 7.9268 7.62065 8.32414 8.19861L13.0001 15H3.90113Z" fill="white"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M9.53962 15L12.7076 10.2481C13.1034 9.65434 13.9758 9.65434 14.3717 10.2481L16.5031 13.4453C16.9462 14.1099 16.4698 15 15.6711 15H9.53962Z" fill="white"/>\n <path d="M16.0001 5.5C16.0001 6.32843 15.3285 7 14.5001 7C13.6717 7 13.0001 6.32843 13.0001 5.5C13.0001 4.67157 13.6717 4 14.5001 4C15.3285 4 16.0001 4.67157 16.0001 5.5Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16103" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
|
|
6728
|
+
const fileOther = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18 6.60751L11.392 -0.000488281L5 0.000113437C3.34315 0.000113437 2 1.34326 2 3.00011V17.0001C2 18.657 3.34315 20.0001 5 20.0001H15C16.6569 20.0001 18 18.657 18 17.0001V6.60751ZM17 8.00011L10 1.00011V6.00011C10 7.10468 10.8954 8.00011 12 8.00011H17Z" fill="#AABFFC"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M18 6.60751L11.392 -0.000488281L5 0.000113437C3.34315 0.000113437 2 1.34326 2 3.00011V17.0001C2 18.657 3.34315 20.0001 5 20.0001H15C16.6569 20.0001 18 18.657 18 17.0001V6.60751ZM17 8.00011L10 1.00011V6.00011C10 7.10468 10.8954 8.00011 12 8.00011H17Z" fill="url(#paint0_linear_0_16113)" style="mix-blend-mode:overlay"/>\n <defs>\n <linearGradient id="paint0_linear_0_16113" x1="-5.9615" y1="9.95168" x2="13.4572" y2="25.4862" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
|
|
6729
|
+
const filePdf = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#FF5630"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16087)" style="mix-blend-mode:overlay"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.55535 13.6488V11.0388H4.92535C5.65535 11.0388 5.93535 10.9988 6.27535 10.8688C6.97535 10.5988 7.36535 9.92876 7.36535 8.99876C7.36535 8.21876 7.07535 7.57876 6.57535 7.25876C6.27535 7.06876 5.82535 6.97876 5.09535 6.97876H2.98535V13.6488H4.55535ZM4.84535 9.90876H4.54535V8.10876H4.84535C5.51535 8.10876 5.75535 8.34876 5.75535 9.02876C5.75535 9.66876 5.51535 9.90876 4.84535 9.90876ZM11.6393 13.4388C11.2793 13.5988 10.9993 13.6488 10.4393 13.6488H8.21935V6.97876H10.2593C11.2393 6.97876 11.7193 7.11876 12.1093 7.52876C12.5993 8.02876 12.7693 8.71876 12.7693 10.1388C12.7693 10.9388 12.7093 11.6788 12.6093 12.1588C12.4893 12.7388 12.1193 13.2188 11.6393 13.4388ZM10.0793 12.5188H9.79935V8.10876H10.0193C10.9713 8.10876 11.1466 8.35839 11.1586 9.95112L11.1593 10.1488C11.1593 12.2088 11.0193 12.5188 10.0793 12.5188ZM15.3333 10.8188V13.6488H13.7533V6.97876H17.6033V8.23876H15.3333V9.58876H17.4433V10.8188H15.3333Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16087" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
|
|
6730
|
+
const fileWord = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#2C7CD3"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_0_16075)" style="mix-blend-mode:overlay"/>\n <path d="M8.0542 14.9946L9.90137 8.0376L11.7549 14.9946H13.748L16.0078 5.68896H14.1162L12.688 12.189L11.0566 5.68896H8.82227L7.12109 12.0811L5.71826 5.68896H3.79492L6.0166 14.9946H8.0542Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_0_16075" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
|
|
6731
|
+
const fileXml = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <rect width="20" height="20" rx="4" fill="#FF991F"/>\n <rect width="20" height="20" rx="4" fill="url(#paint0_linear_2163_24057)" style="mix-blend-mode:overlay"/>\n <path d="M1.97561 5.99658L3.56111 9.43008L1.84961 13.0001H3.66611L4.21211 11.6771C4.40111 11.0996 4.45361 10.8791 4.49561 10.6166H4.52711C4.54811 10.8686 4.61111 11.1101 4.77911 11.5826L5.34611 13.0001H7.20461L5.49311 9.44058L7.07861 5.99658H5.28311L4.86311 7.06758C4.85261 7.08858 4.83161 7.16208 4.80011 7.25658C4.75811 7.44558 4.70561 7.63458 4.65311 7.82358C4.60061 8.02308 4.57961 8.10708 4.56911 8.23308H4.52711C4.49561 8.02308 4.43261 7.78158 4.27511 7.23558L3.82361 5.99658H1.97561Z" fill="white"/>\n <path d="M7.53437 5.99658V13.0001H9.05687V9.78708L9.02537 9.34608L8.98337 8.41158C8.98337 8.33808 8.96237 8.00208 8.92037 7.47708H8.98337C9.05687 7.90758 9.10937 8.21208 9.18287 8.53758C9.24587 8.87358 9.34037 9.28308 9.44537 9.77658L10.1804 13.0001H11.3984L12.1544 9.59808C12.2909 8.98908 12.5324 7.79208 12.5744 7.47708H12.6374C12.6059 7.80258 12.5849 8.01258 12.5744 8.22258L12.5534 8.98908C12.5429 9.25158 12.5324 9.52458 12.5219 9.80808V13.0001H14.0444V5.99658H11.6714L11.2409 8.10708C11.0834 8.74758 10.8419 10.3751 10.8419 10.8161L10.7999 10.8266C10.7894 10.2911 10.5269 8.61108 10.3274 7.85508L9.92837 5.99658H7.53437Z" fill="white"/>\n <path d="M14.8685 5.99658V13.0001H18.89V11.6666H16.5275V5.99658H14.8685Z" fill="white"/>\n <defs>\n <linearGradient id="paint0_linear_2163_24057" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n </defs>\n</svg>';
|
|
6732
|
+
const fileZip = '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 20 20" fill="none">\n <g clip-path="url(#clip0_922_22603)">\n <path d="M16 0H4C1.79086 0 0 1.79086 0 4V16C0 18.2091 1.79086 20 4 20H16C18.2091 20 20 18.2091 20 16V4C20 1.79086 18.2091 0 16 0Z" fill="#A1D237"/>\n <path d="M16 0H4C1.79086 0 0 1.79086 0 4V16C0 18.2091 1.79086 20 4 20H16C18.2091 20 20 18.2091 20 16V4C20 1.79086 18.2091 0 16 0Z" fill="url(#paint0_linear_922_22603)" style="mix-blend-mode:overlay"/>\n <path d="M8.32086 14V12.6807H6.32086C5.92513 12.6807 5.72193 12.6927 5.58289 12.7166C5.64706 12.6207 5.68984 12.5367 5.73262 12.4528C5.7861 12.3568 5.83957 12.2609 5.89305 12.1529L8.28877 7.22339V6H4.17112V7.31934H6.20321C6.39572 7.31934 6.59893 7.30735 6.69519 7.29535C6.58824 7.47526 6.49198 7.65517 6.41711 7.81109L4 12.8246V14H8.32086ZM10.4813 14V6H9.03743V14H10.4813ZM12.9519 14V10.8096H13.4439C14.2139 10.8096 14.5241 10.7616 14.877 10.6057C15.5936 10.2699 16 9.47826 16 8.38681C16 7.45127 15.6898 6.69565 15.1444 6.32384C14.8342 6.09595 14.3743 6 13.6364 6H11.508V14H12.9519ZM13.4118 9.6102H12.9519V7.1994H13.3797C13.7219 7.1994 13.9679 7.24738 14.107 7.34333C14.385 7.53523 14.5241 7.87106 14.5241 8.38681C14.5241 8.91454 14.4064 9.25037 14.1497 9.44228C13.9893 9.57421 13.8075 9.6102 13.4118 9.6102Z" fill="white"/>\n </g>\n <defs>\n <linearGradient id="paint0_linear_922_22603" x1="-9.95187" y1="9.95187" x2="9.95187" y2="29.8556" gradientUnits="userSpaceOnUse">\n <stop stop-color="white" stop-opacity="0.245559"/>\n <stop offset="1" stop-opacity="0.498578"/>\n </linearGradient>\n <clipPath id="clip0_922_22603">\n <rect width="20" height="20" fill="white"/>\n </clipPath>\n </defs>\n</svg>';
|
|
6725
6733
|
var complexIcons = {
|
|
6726
6734
|
avatar: avatarGreen,
|
|
6727
6735
|
"file-excel": fileExcel,
|
|
@@ -6732,7 +6740,7 @@
|
|
|
6732
6740
|
"file-xml": fileXml,
|
|
6733
6741
|
"file-zip": fileZip
|
|
6734
6742
|
};
|
|
6735
|
-
function _define_property$
|
|
6743
|
+
function _define_property$16(obj, key, value) {
|
|
6736
6744
|
if (key in obj) {
|
|
6737
6745
|
Object.defineProperty(obj, key, {
|
|
6738
6746
|
value,
|
|
@@ -6745,7 +6753,7 @@
|
|
|
6745
6753
|
}
|
|
6746
6754
|
return obj;
|
|
6747
6755
|
}
|
|
6748
|
-
function _object_spread$
|
|
6756
|
+
function _object_spread$14(target) {
|
|
6749
6757
|
for (var i = 1; i < arguments.length; i++) {
|
|
6750
6758
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
6751
6759
|
var ownKeys2 = Object.keys(source);
|
|
@@ -6755,7 +6763,7 @@
|
|
|
6755
6763
|
}));
|
|
6756
6764
|
}
|
|
6757
6765
|
ownKeys2.forEach(function(key) {
|
|
6758
|
-
_define_property$
|
|
6766
|
+
_define_property$16(target, key, source[key]);
|
|
6759
6767
|
});
|
|
6760
6768
|
}
|
|
6761
6769
|
return target;
|
|
@@ -6764,7 +6772,7 @@
|
|
|
6764
6772
|
var type = param.type;
|
|
6765
6773
|
var theme = React.useContext(ThemeContext).theme;
|
|
6766
6774
|
var icons = React.useMemo(function() {
|
|
6767
|
-
return _object_spread$
|
|
6775
|
+
return _object_spread$14({}, complexIcons, theme.complexIcons);
|
|
6768
6776
|
}, []);
|
|
6769
6777
|
var ComplexIcon = icons[type];
|
|
6770
6778
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -7635,7 +7643,7 @@
|
|
|
7635
7643
|
]
|
|
7636
7644
|
}
|
|
7637
7645
|
});
|
|
7638
|
-
function _define_property$
|
|
7646
|
+
function _define_property$15(obj, key, value) {
|
|
7639
7647
|
if (key in obj) {
|
|
7640
7648
|
Object.defineProperty(obj, key, {
|
|
7641
7649
|
value,
|
|
@@ -7648,7 +7656,7 @@
|
|
|
7648
7656
|
}
|
|
7649
7657
|
return obj;
|
|
7650
7658
|
}
|
|
7651
|
-
function _object_spread$
|
|
7659
|
+
function _object_spread$13(target) {
|
|
7652
7660
|
for (var i = 1; i < arguments.length; i++) {
|
|
7653
7661
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7654
7662
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7658,12 +7666,12 @@
|
|
|
7658
7666
|
}));
|
|
7659
7667
|
}
|
|
7660
7668
|
ownKeys2.forEach(function(key) {
|
|
7661
|
-
_define_property$
|
|
7669
|
+
_define_property$15(target, key, source[key]);
|
|
7662
7670
|
});
|
|
7663
7671
|
}
|
|
7664
7672
|
return target;
|
|
7665
7673
|
}
|
|
7666
|
-
function ownKeys$
|
|
7674
|
+
function ownKeys$W(object, enumerableOnly) {
|
|
7667
7675
|
var keys2 = Object.keys(object);
|
|
7668
7676
|
if (Object.getOwnPropertySymbols) {
|
|
7669
7677
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7676,12 +7684,12 @@
|
|
|
7676
7684
|
}
|
|
7677
7685
|
return keys2;
|
|
7678
7686
|
}
|
|
7679
|
-
function _object_spread_props$
|
|
7687
|
+
function _object_spread_props$W(target, source) {
|
|
7680
7688
|
source = source != null ? source : {};
|
|
7681
7689
|
if (Object.getOwnPropertyDescriptors) {
|
|
7682
7690
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7683
7691
|
} else {
|
|
7684
|
-
ownKeys$
|
|
7692
|
+
ownKeys$W(Object(source)).forEach(function(key) {
|
|
7685
7693
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7686
7694
|
});
|
|
7687
7695
|
}
|
|
@@ -7692,7 +7700,7 @@
|
|
|
7692
7700
|
var _icon_paths, _icon_rects, _icon_circles;
|
|
7693
7701
|
var theme = React.useContext(ThemeContext).theme;
|
|
7694
7702
|
var icons = React.useMemo(function() {
|
|
7695
|
-
return _object_spread$
|
|
7703
|
+
return _object_spread$13({}, iconsList, theme.icons);
|
|
7696
7704
|
}, []);
|
|
7697
7705
|
var icon = icons[type];
|
|
7698
7706
|
var _icon_viewBox;
|
|
@@ -7705,7 +7713,7 @@
|
|
|
7705
7713
|
children: [
|
|
7706
7714
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7707
7715
|
var _path_fill, _path_stroke;
|
|
7708
|
-
return jsx("path", _object_spread$
|
|
7716
|
+
return jsx("path", _object_spread$13({
|
|
7709
7717
|
fillRule: "evenodd",
|
|
7710
7718
|
clipRule: "evenodd",
|
|
7711
7719
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -7713,25 +7721,25 @@
|
|
|
7713
7721
|
}, path), index);
|
|
7714
7722
|
}),
|
|
7715
7723
|
(_icon_rects = icon.rects) === null || _icon_rects === void 0 ? void 0 : _icon_rects.map(function(rect, index) {
|
|
7716
|
-
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$
|
|
7724
|
+
return /* @__PURE__ */ React.createElement("rect", _object_spread_props$W(_object_spread$13({}, rect), {
|
|
7717
7725
|
key: index
|
|
7718
7726
|
}));
|
|
7719
7727
|
}),
|
|
7720
7728
|
(_icon_circles = icon.circles) === null || _icon_circles === void 0 ? void 0 : _icon_circles.map(function(circle, index) {
|
|
7721
|
-
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$
|
|
7729
|
+
return /* @__PURE__ */ React.createElement("circle", _object_spread_props$W(_object_spread$13({}, circle), {
|
|
7722
7730
|
key: index
|
|
7723
7731
|
}));
|
|
7724
7732
|
})
|
|
7725
7733
|
]
|
|
7726
7734
|
});
|
|
7727
7735
|
};
|
|
7728
|
-
var useStyles$
|
|
7736
|
+
var useStyles$X = createThemedStyles("Icon", {
|
|
7729
7737
|
root: {
|
|
7730
7738
|
display: "flex",
|
|
7731
7739
|
alignItems: "center"
|
|
7732
7740
|
}
|
|
7733
7741
|
});
|
|
7734
|
-
function _define_property$
|
|
7742
|
+
function _define_property$14(obj, key, value) {
|
|
7735
7743
|
if (key in obj) {
|
|
7736
7744
|
Object.defineProperty(obj, key, {
|
|
7737
7745
|
value,
|
|
@@ -7744,7 +7752,7 @@
|
|
|
7744
7752
|
}
|
|
7745
7753
|
return obj;
|
|
7746
7754
|
}
|
|
7747
|
-
function _object_spread
|
|
7755
|
+
function _object_spread$12(target) {
|
|
7748
7756
|
for (var i = 1; i < arguments.length; i++) {
|
|
7749
7757
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7750
7758
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7754,12 +7762,12 @@
|
|
|
7754
7762
|
}));
|
|
7755
7763
|
}
|
|
7756
7764
|
ownKeys2.forEach(function(key) {
|
|
7757
|
-
_define_property$
|
|
7765
|
+
_define_property$14(target, key, source[key]);
|
|
7758
7766
|
});
|
|
7759
7767
|
}
|
|
7760
7768
|
return target;
|
|
7761
7769
|
}
|
|
7762
|
-
function ownKeys$
|
|
7770
|
+
function ownKeys$V(object, enumerableOnly) {
|
|
7763
7771
|
var keys2 = Object.keys(object);
|
|
7764
7772
|
if (Object.getOwnPropertySymbols) {
|
|
7765
7773
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7772,12 +7780,12 @@
|
|
|
7772
7780
|
}
|
|
7773
7781
|
return keys2;
|
|
7774
7782
|
}
|
|
7775
|
-
function _object_spread_props$
|
|
7783
|
+
function _object_spread_props$V(target, source) {
|
|
7776
7784
|
source = source != null ? source : {};
|
|
7777
7785
|
if (Object.getOwnPropertyDescriptors) {
|
|
7778
7786
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7779
7787
|
} else {
|
|
7780
|
-
ownKeys$
|
|
7788
|
+
ownKeys$V(Object(source)).forEach(function(key) {
|
|
7781
7789
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7782
7790
|
});
|
|
7783
7791
|
}
|
|
@@ -7785,10 +7793,10 @@
|
|
|
7785
7793
|
}
|
|
7786
7794
|
var Icon = function(param) {
|
|
7787
7795
|
var type = param.type, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
7788
|
-
var classes = useStyles$
|
|
7796
|
+
var classes = useStyles$X({
|
|
7789
7797
|
theme: tweakStyles
|
|
7790
7798
|
});
|
|
7791
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
7799
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$V(_object_spread$12({
|
|
7792
7800
|
className: classes.root
|
|
7793
7801
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
7794
7802
|
children: isComplexIcon(type) ? /* @__PURE__ */ jsx(ComplexIconBoilerplate, {
|
|
@@ -7804,15 +7812,7 @@
|
|
|
7804
7812
|
}) : icon;
|
|
7805
7813
|
};
|
|
7806
7814
|
var DEFAULT_OFFSET = 6;
|
|
7807
|
-
var
|
|
7808
|
-
apply: function apply2(param) {
|
|
7809
|
-
var rects = param.rects, elements = param.elements;
|
|
7810
|
-
Object.assign(elements.floating.style, {
|
|
7811
|
-
minWidth: "".concat(rects.reference.width, "px")
|
|
7812
|
-
});
|
|
7813
|
-
}
|
|
7814
|
-
});
|
|
7815
|
-
var useStyles$U = createThemedStyles("WithPopup", {
|
|
7815
|
+
var useStyles$W = createThemedStyles("WithPopup", {
|
|
7816
7816
|
trigger: {
|
|
7817
7817
|
width: "fit-content"
|
|
7818
7818
|
},
|
|
@@ -7827,7 +7827,6 @@
|
|
|
7827
7827
|
zIndex: 5,
|
|
7828
7828
|
outline: "none"
|
|
7829
7829
|
},
|
|
7830
|
-
arrow: {},
|
|
7831
7830
|
animationEnd: {},
|
|
7832
7831
|
animationStart: {},
|
|
7833
7832
|
"dropdown-initial": {
|
|
@@ -7859,7 +7858,7 @@
|
|
|
7859
7858
|
if (Array.isArray(arr))
|
|
7860
7859
|
return _array_like_to_array$m(arr);
|
|
7861
7860
|
}
|
|
7862
|
-
function _define_property$
|
|
7861
|
+
function _define_property$13(obj, key, value) {
|
|
7863
7862
|
if (key in obj) {
|
|
7864
7863
|
Object.defineProperty(obj, key, {
|
|
7865
7864
|
value,
|
|
@@ -7910,7 +7909,7 @@
|
|
|
7910
7909
|
function _non_iterable_spread$7() {
|
|
7911
7910
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
7912
7911
|
}
|
|
7913
|
-
function _object_spread$
|
|
7912
|
+
function _object_spread$11(target) {
|
|
7914
7913
|
for (var i = 1; i < arguments.length; i++) {
|
|
7915
7914
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
7916
7915
|
var ownKeys2 = Object.keys(source);
|
|
@@ -7920,12 +7919,12 @@
|
|
|
7920
7919
|
}));
|
|
7921
7920
|
}
|
|
7922
7921
|
ownKeys2.forEach(function(key) {
|
|
7923
|
-
_define_property$
|
|
7922
|
+
_define_property$13(target, key, source[key]);
|
|
7924
7923
|
});
|
|
7925
7924
|
}
|
|
7926
7925
|
return target;
|
|
7927
7926
|
}
|
|
7928
|
-
function ownKeys$
|
|
7927
|
+
function ownKeys$U(object, enumerableOnly) {
|
|
7929
7928
|
var keys2 = Object.keys(object);
|
|
7930
7929
|
if (Object.getOwnPropertySymbols) {
|
|
7931
7930
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -7938,12 +7937,12 @@
|
|
|
7938
7937
|
}
|
|
7939
7938
|
return keys2;
|
|
7940
7939
|
}
|
|
7941
|
-
function _object_spread_props$
|
|
7940
|
+
function _object_spread_props$U(target, source) {
|
|
7942
7941
|
source = source != null ? source : {};
|
|
7943
7942
|
if (Object.getOwnPropertyDescriptors) {
|
|
7944
7943
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
7945
7944
|
} else {
|
|
7946
|
-
ownKeys$
|
|
7945
|
+
ownKeys$U(Object(source)).forEach(function(key) {
|
|
7947
7946
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
7948
7947
|
});
|
|
7949
7948
|
}
|
|
@@ -7969,12 +7968,11 @@
|
|
|
7969
7968
|
return _array_like_to_array$m(o, minLen);
|
|
7970
7969
|
}
|
|
7971
7970
|
var WithPopup = function(param) {
|
|
7972
|
-
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset,
|
|
7973
|
-
var classes = useStyles$
|
|
7971
|
+
var trigger = param.trigger, children = param.children, _param_middlewares = param.middlewares, middlewares = _param_middlewares === void 0 ? [] : _param_middlewares, _param_eventType = param.eventType, eventType = _param_eventType === void 0 ? "click" : _param_eventType, _param_placement = param.placement, placement = _param_placement === void 0 ? eventType === "click" ? "bottom-end" : "top" : _param_placement, _param_hoverDelay = param.hoverDelay, hoverDelay = _param_hoverDelay === void 0 ? 0 : _param_hoverDelay, _param_popupOffset = param.popupOffset, popupOffset = _param_popupOffset === void 0 ? DEFAULT_OFFSET : _param_popupOffset, _param_shouldStopPropagation = param.shouldStopPropagation, shouldStopPropagation = _param_shouldStopPropagation === void 0 ? true : _param_shouldStopPropagation, _param_shouldHideOnScroll = param.shouldHideOnScroll, shouldHideOnScroll = _param_shouldHideOnScroll === void 0 ? false : _param_shouldHideOnScroll, _param_shouldRenderInBody = param.shouldRenderInBody, shouldRenderInBody = _param_shouldRenderInBody === void 0 ? true : _param_shouldRenderInBody, _param_canBeFlipped = param.canBeFlipped, canBeFlipped = _param_canBeFlipped === void 0 ? true : _param_canBeFlipped, _param_isTriggerWrapped = param.isTriggerWrapped, isTriggerWrapped = _param_isTriggerWrapped === void 0 ? eventType === "hover" : _param_isTriggerWrapped, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = param.tweakStyles, data = param.data, testId = param.testId, onToggle = param.onToggle;
|
|
7972
|
+
var classes = useStyles$W({
|
|
7974
7973
|
theme: tweakStyles
|
|
7975
7974
|
});
|
|
7976
7975
|
var _useState = _sliced_to_array$m(React.useState(false), 2), isOpen = _useState[0], setIsOpen = _useState[1];
|
|
7977
|
-
var arrowRef = React.useRef(null);
|
|
7978
7976
|
var handleToggle = function(isActive, event) {
|
|
7979
7977
|
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
|
7980
7978
|
if (!isDisabled) {
|
|
@@ -7991,13 +7989,8 @@
|
|
|
7991
7989
|
react.offset(popupOffset),
|
|
7992
7990
|
canBeFlipped && react.flip({
|
|
7993
7991
|
fallbackAxisSideDirection: "start"
|
|
7994
|
-
}),
|
|
7995
|
-
isMinWidthSameAsTrigger && minWidthRelativeToTrigger
|
|
7996
|
-
].concat(_to_consumable_array$7(middlewares), [
|
|
7997
|
-
shouldShowArrow && react.arrow({
|
|
7998
|
-
element: arrowRef
|
|
7999
7992
|
})
|
|
8000
|
-
]),
|
|
7993
|
+
].concat(_to_consumable_array$7(middlewares)),
|
|
8001
7994
|
whileElementsMounted: react.autoUpdate,
|
|
8002
7995
|
placement,
|
|
8003
7996
|
onOpenChange: handleToggle
|
|
@@ -8031,17 +8024,17 @@
|
|
|
8031
8024
|
close: 500
|
|
8032
8025
|
}
|
|
8033
8026
|
}), isMounted = _useTransitionStatus.isMounted, status = _useTransitionStatus.status;
|
|
8034
|
-
var referenceProps = getReferenceProps(_object_spread$
|
|
8027
|
+
var referenceProps = getReferenceProps(_object_spread$11({
|
|
8035
8028
|
ref: refs.setReference
|
|
8036
8029
|
}, shouldStopPropagation && {
|
|
8037
8030
|
onClick: trueReactPlatformHelpers.stopPropagation
|
|
8038
8031
|
}));
|
|
8039
8032
|
var triggerElement = trueReactPlatformHelpers.applyAction(trigger, {
|
|
8040
8033
|
referenceProps: !isTriggerWrapped ? referenceProps : void 0,
|
|
8041
|
-
triggerProps: _object_spread$
|
|
8034
|
+
triggerProps: _object_spread$11({
|
|
8042
8035
|
isActive: isOpen,
|
|
8043
8036
|
isDisabled
|
|
8044
|
-
}, !isTriggerWrapped && _object_spread$
|
|
8037
|
+
}, !isTriggerWrapped && _object_spread$11({
|
|
8045
8038
|
data,
|
|
8046
8039
|
testId
|
|
8047
8040
|
}, referenceProps))
|
|
@@ -8049,31 +8042,23 @@
|
|
|
8049
8042
|
var _obj2;
|
|
8050
8043
|
return /* @__PURE__ */ jsxs(Fragment, {
|
|
8051
8044
|
children: [
|
|
8052
|
-
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8053
|
-
className: clsx(classes.trigger, (_obj2 = {}, _define_property$
|
|
8054
|
-
}, referenceProps, trueReactPlatformHelpers.addDataAttributes(data
|
|
8045
|
+
isTriggerWrapped ? /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
|
|
8046
|
+
className: clsx(classes.trigger, (_obj2 = {}, _define_property$13(_obj2, classes.clickable, eventType === "click"), _define_property$13(_obj2, classes.disabled, isDisabled), _define_property$13(_obj2, classes.active, isOpen), _obj2))
|
|
8047
|
+
}, referenceProps, trueReactPlatformHelpers.addDataTestId(testId), trueReactPlatformHelpers.addDataAttributes(data)), {
|
|
8055
8048
|
children: triggerElement
|
|
8056
8049
|
})) : triggerElement,
|
|
8057
8050
|
isMounted && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
8058
|
-
root: shouldRenderInBody ?
|
|
8059
|
-
children: /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8060
|
-
ref: refs.setFloating,
|
|
8051
|
+
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
8052
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$U(_object_spread$11({
|
|
8061
8053
|
style: floatingStyles,
|
|
8062
|
-
className: classes.popup
|
|
8063
|
-
|
|
8064
|
-
|
|
8054
|
+
className: classes.popup,
|
|
8055
|
+
ref: refs.setFloating
|
|
8056
|
+
}, getFloatingProps()), {
|
|
8057
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
8065
8058
|
className: classes["dropdown-".concat(status)],
|
|
8066
|
-
children:
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
context,
|
|
8070
|
-
className: classes.arrow
|
|
8071
|
-
})),
|
|
8072
|
-
trueReactPlatformHelpers.applyAction(children, {
|
|
8073
|
-
floatingContext: context,
|
|
8074
|
-
onClose: handleClose
|
|
8075
|
-
})
|
|
8076
|
-
]
|
|
8059
|
+
children: trueReactPlatformHelpers.applyAction(children, {
|
|
8060
|
+
onClose: handleClose
|
|
8061
|
+
})
|
|
8077
8062
|
})
|
|
8078
8063
|
}))
|
|
8079
8064
|
})
|
|
@@ -8083,7 +8068,7 @@
|
|
|
8083
8068
|
var ITEM_HORIZONTAL_PADDING = 16;
|
|
8084
8069
|
var ICON_SIZE$1 = 20;
|
|
8085
8070
|
var ICON_GAP = 12;
|
|
8086
|
-
var useStyles$
|
|
8071
|
+
var useStyles$V = createThemedStyles("ListItem", {
|
|
8087
8072
|
root: {
|
|
8088
8073
|
display: "flex",
|
|
8089
8074
|
alignItems: "center",
|
|
@@ -8122,7 +8107,7 @@
|
|
|
8122
8107
|
flexGrow: 1
|
|
8123
8108
|
}
|
|
8124
8109
|
});
|
|
8125
|
-
function _define_property
|
|
8110
|
+
function _define_property$12(obj, key, value) {
|
|
8126
8111
|
if (key in obj) {
|
|
8127
8112
|
Object.defineProperty(obj, key, {
|
|
8128
8113
|
value,
|
|
@@ -8135,7 +8120,7 @@
|
|
|
8135
8120
|
}
|
|
8136
8121
|
return obj;
|
|
8137
8122
|
}
|
|
8138
|
-
function _object_spread$
|
|
8123
|
+
function _object_spread$10(target) {
|
|
8139
8124
|
for (var i = 1; i < arguments.length; i++) {
|
|
8140
8125
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8141
8126
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8145,12 +8130,12 @@
|
|
|
8145
8130
|
}));
|
|
8146
8131
|
}
|
|
8147
8132
|
ownKeys2.forEach(function(key) {
|
|
8148
|
-
_define_property
|
|
8133
|
+
_define_property$12(target, key, source[key]);
|
|
8149
8134
|
});
|
|
8150
8135
|
}
|
|
8151
8136
|
return target;
|
|
8152
8137
|
}
|
|
8153
|
-
function ownKeys$
|
|
8138
|
+
function ownKeys$T(object, enumerableOnly) {
|
|
8154
8139
|
var keys2 = Object.keys(object);
|
|
8155
8140
|
if (Object.getOwnPropertySymbols) {
|
|
8156
8141
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8163,12 +8148,12 @@
|
|
|
8163
8148
|
}
|
|
8164
8149
|
return keys2;
|
|
8165
8150
|
}
|
|
8166
|
-
function _object_spread_props$
|
|
8151
|
+
function _object_spread_props$T(target, source) {
|
|
8167
8152
|
source = source != null ? source : {};
|
|
8168
8153
|
if (Object.getOwnPropertyDescriptors) {
|
|
8169
8154
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8170
8155
|
} else {
|
|
8171
|
-
ownKeys$
|
|
8156
|
+
ownKeys$T(Object(source)).forEach(function(key) {
|
|
8172
8157
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8173
8158
|
});
|
|
8174
8159
|
}
|
|
@@ -8176,7 +8161,7 @@
|
|
|
8176
8161
|
}
|
|
8177
8162
|
var ListItem = function(param) {
|
|
8178
8163
|
var icon = param.icon, item = param.item, nestedItems = param.nestedItems, isDisabled = param.disabled, isFocused = param.isFocused, shouldDrawSpacerAbove = param.shouldDrawSpacerAbove, shouldDrawSpacerBelow = param.shouldDrawSpacerBelow, testId = param.testId, tweakStyles = param.tweakStyles, _param_view = param.view, view = _param_view === void 0 ? "default" : _param_view, withIconGap = param.withIconGap, data = param.data, onClick = param.onClick;
|
|
8179
|
-
var classes = useStyles$
|
|
8164
|
+
var classes = useStyles$V({
|
|
8180
8165
|
theme: tweakStyles
|
|
8181
8166
|
});
|
|
8182
8167
|
var _obj2;
|
|
@@ -8185,9 +8170,9 @@
|
|
|
8185
8170
|
shouldDrawSpacerAbove && /* @__PURE__ */ jsx("div", {
|
|
8186
8171
|
className: classes.spacer
|
|
8187
8172
|
}),
|
|
8188
|
-
/* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8189
|
-
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property
|
|
8190
|
-
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$
|
|
8173
|
+
/* @__PURE__ */ jsxs("div", _object_spread_props$T(_object_spread$10({
|
|
8174
|
+
className: clsx(classes.root, classes[view], (_obj2 = {}, _define_property$12(_obj2, classes.disabledItem, isDisabled), _define_property$12(_obj2, classes.withIconGap, withIconGap), _define_property$12(_obj2, classes.focused, isFocused), _obj2))
|
|
8175
|
+
}, trueReactPlatformHelpers.addClickHandler(onClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(_object_spread_props$T(_object_spread$10({}, data), {
|
|
8191
8176
|
disabled: isDisabled ? true : void 0
|
|
8192
8177
|
}))), {
|
|
8193
8178
|
children: [
|
|
@@ -8213,7 +8198,7 @@
|
|
|
8213
8198
|
]
|
|
8214
8199
|
});
|
|
8215
8200
|
};
|
|
8216
|
-
var useStyles$
|
|
8201
|
+
var useStyles$U = createThemedStyles("List", {
|
|
8217
8202
|
root: {
|
|
8218
8203
|
minWidth: 180,
|
|
8219
8204
|
backgroundColor: colors.CLASSIC_WHITE,
|
|
@@ -8229,12 +8214,12 @@
|
|
|
8229
8214
|
paddingLeft: 4
|
|
8230
8215
|
}
|
|
8231
8216
|
});
|
|
8232
|
-
var withPopupStyles
|
|
8217
|
+
var withPopupStyles = {
|
|
8233
8218
|
trigger: {
|
|
8234
8219
|
width: "100%"
|
|
8235
8220
|
}
|
|
8236
8221
|
};
|
|
8237
|
-
function _define_property$
|
|
8222
|
+
function _define_property$11(obj, key, value) {
|
|
8238
8223
|
if (key in obj) {
|
|
8239
8224
|
Object.defineProperty(obj, key, {
|
|
8240
8225
|
value,
|
|
@@ -8247,7 +8232,7 @@
|
|
|
8247
8232
|
}
|
|
8248
8233
|
return obj;
|
|
8249
8234
|
}
|
|
8250
|
-
function _object_spread
|
|
8235
|
+
function _object_spread$$(target) {
|
|
8251
8236
|
for (var i = 1; i < arguments.length; i++) {
|
|
8252
8237
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8253
8238
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8257,12 +8242,12 @@
|
|
|
8257
8242
|
}));
|
|
8258
8243
|
}
|
|
8259
8244
|
ownKeys2.forEach(function(key) {
|
|
8260
|
-
_define_property$
|
|
8245
|
+
_define_property$11(target, key, source[key]);
|
|
8261
8246
|
});
|
|
8262
8247
|
}
|
|
8263
8248
|
return target;
|
|
8264
8249
|
}
|
|
8265
|
-
function ownKeys$
|
|
8250
|
+
function ownKeys$S(object, enumerableOnly) {
|
|
8266
8251
|
var keys2 = Object.keys(object);
|
|
8267
8252
|
if (Object.getOwnPropertySymbols) {
|
|
8268
8253
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8275,12 +8260,12 @@
|
|
|
8275
8260
|
}
|
|
8276
8261
|
return keys2;
|
|
8277
8262
|
}
|
|
8278
|
-
function _object_spread_props$
|
|
8263
|
+
function _object_spread_props$S(target, source) {
|
|
8279
8264
|
source = source != null ? source : {};
|
|
8280
8265
|
if (Object.getOwnPropertyDescriptors) {
|
|
8281
8266
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8282
8267
|
} else {
|
|
8283
|
-
ownKeys$
|
|
8268
|
+
ownKeys$S(Object(source)).forEach(function(key) {
|
|
8284
8269
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8285
8270
|
});
|
|
8286
8271
|
}
|
|
@@ -8288,7 +8273,7 @@
|
|
|
8288
8273
|
}
|
|
8289
8274
|
var List = function(param) {
|
|
8290
8275
|
var items = param.items, testId = param.testId, data = param.data, tweakStyles = param.tweakStyles, onClick = param.onClick;
|
|
8291
|
-
var classes = useStyles$
|
|
8276
|
+
var classes = useStyles$U({
|
|
8292
8277
|
theme: tweakStyles
|
|
8293
8278
|
});
|
|
8294
8279
|
var handleItemClick = function(event, param2) {
|
|
@@ -8298,11 +8283,11 @@
|
|
|
8298
8283
|
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
8299
8284
|
}
|
|
8300
8285
|
};
|
|
8301
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8286
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$S(_object_spread$$({
|
|
8302
8287
|
className: classes.root
|
|
8303
8288
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8304
8289
|
children: items.map(function(item, i) {
|
|
8305
|
-
var itemProps = _object_spread_props$
|
|
8290
|
+
var itemProps = _object_spread_props$S(_object_spread$$({
|
|
8306
8291
|
testId: trueReactPlatformHelpers.getTestId(testId, "item-".concat(i))
|
|
8307
8292
|
}, item), {
|
|
8308
8293
|
shouldDrawSpacerAbove: item.shouldDrawSpacerAbove && i !== 0,
|
|
@@ -8314,13 +8299,13 @@
|
|
|
8314
8299
|
return /* @__PURE__ */ jsx(React.Fragment, {
|
|
8315
8300
|
children: trueReactPlatformHelpers.isArrayNotEmpty(item.nestedItems) ? /* @__PURE__ */ jsx(WithPopup, {
|
|
8316
8301
|
eventType: "hover",
|
|
8317
|
-
tweakStyles: withPopupStyles
|
|
8302
|
+
tweakStyles: withPopupStyles,
|
|
8318
8303
|
placement: "right-start",
|
|
8319
8304
|
popupOffset: 0,
|
|
8320
8305
|
shouldRenderInBody: false,
|
|
8321
8306
|
trigger: function(param2) {
|
|
8322
8307
|
var triggerProps = param2.triggerProps;
|
|
8323
|
-
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$
|
|
8308
|
+
return /* @__PURE__ */ jsx(ListItem, _object_spread_props$S(_object_spread$$({}, itemProps), {
|
|
8324
8309
|
isFocused: triggerProps.isActive
|
|
8325
8310
|
}));
|
|
8326
8311
|
},
|
|
@@ -8331,13 +8316,13 @@
|
|
|
8331
8316
|
onClick
|
|
8332
8317
|
})
|
|
8333
8318
|
})
|
|
8334
|
-
}) : /* @__PURE__ */ jsx(ListItem, _object_spread
|
|
8319
|
+
}) : /* @__PURE__ */ jsx(ListItem, _object_spread$$({}, itemProps))
|
|
8335
8320
|
}, i);
|
|
8336
8321
|
})
|
|
8337
8322
|
}));
|
|
8338
8323
|
};
|
|
8339
8324
|
var ANIMATION_TIMEOUT = 150;
|
|
8340
|
-
function _define_property$
|
|
8325
|
+
function _define_property$10(obj, key, value) {
|
|
8341
8326
|
if (key in obj) {
|
|
8342
8327
|
Object.defineProperty(obj, key, {
|
|
8343
8328
|
value,
|
|
@@ -8350,7 +8335,7 @@
|
|
|
8350
8335
|
}
|
|
8351
8336
|
return obj;
|
|
8352
8337
|
}
|
|
8353
|
-
function _object_spread$
|
|
8338
|
+
function _object_spread$_(target) {
|
|
8354
8339
|
for (var i = 1; i < arguments.length; i++) {
|
|
8355
8340
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8356
8341
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8360,12 +8345,12 @@
|
|
|
8360
8345
|
}));
|
|
8361
8346
|
}
|
|
8362
8347
|
ownKeys2.forEach(function(key) {
|
|
8363
|
-
_define_property$
|
|
8348
|
+
_define_property$10(target, key, source[key]);
|
|
8364
8349
|
});
|
|
8365
8350
|
}
|
|
8366
8351
|
return target;
|
|
8367
8352
|
}
|
|
8368
|
-
var useStyles$
|
|
8353
|
+
var useStyles$T = createThemedStyles("AccountInfo", _object_spread$_({
|
|
8369
8354
|
root: {
|
|
8370
8355
|
display: "flex"
|
|
8371
8356
|
},
|
|
@@ -8419,7 +8404,7 @@
|
|
|
8419
8404
|
if (Array.isArray(arr))
|
|
8420
8405
|
return arr;
|
|
8421
8406
|
}
|
|
8422
|
-
function _define_property
|
|
8407
|
+
function _define_property$$(obj, key, value) {
|
|
8423
8408
|
if (key in obj) {
|
|
8424
8409
|
Object.defineProperty(obj, key, {
|
|
8425
8410
|
value,
|
|
@@ -8463,7 +8448,7 @@
|
|
|
8463
8448
|
function _non_iterable_rest$l() {
|
|
8464
8449
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
8465
8450
|
}
|
|
8466
|
-
function _object_spread$
|
|
8451
|
+
function _object_spread$Z(target) {
|
|
8467
8452
|
for (var i = 1; i < arguments.length; i++) {
|
|
8468
8453
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8469
8454
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8473,12 +8458,12 @@
|
|
|
8473
8458
|
}));
|
|
8474
8459
|
}
|
|
8475
8460
|
ownKeys2.forEach(function(key) {
|
|
8476
|
-
_define_property
|
|
8461
|
+
_define_property$$(target, key, source[key]);
|
|
8477
8462
|
});
|
|
8478
8463
|
}
|
|
8479
8464
|
return target;
|
|
8480
8465
|
}
|
|
8481
|
-
function ownKeys$
|
|
8466
|
+
function ownKeys$R(object, enumerableOnly) {
|
|
8482
8467
|
var keys2 = Object.keys(object);
|
|
8483
8468
|
if (Object.getOwnPropertySymbols) {
|
|
8484
8469
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8491,12 +8476,12 @@
|
|
|
8491
8476
|
}
|
|
8492
8477
|
return keys2;
|
|
8493
8478
|
}
|
|
8494
|
-
function _object_spread_props$
|
|
8479
|
+
function _object_spread_props$R(target, source) {
|
|
8495
8480
|
source = source != null ? source : {};
|
|
8496
8481
|
if (Object.getOwnPropertyDescriptors) {
|
|
8497
8482
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8498
8483
|
} else {
|
|
8499
|
-
ownKeys$
|
|
8484
|
+
ownKeys$R(Object(source)).forEach(function(key) {
|
|
8500
8485
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8501
8486
|
});
|
|
8502
8487
|
}
|
|
@@ -8520,7 +8505,7 @@
|
|
|
8520
8505
|
}
|
|
8521
8506
|
var AccountInfo = function(param) {
|
|
8522
8507
|
var data = param.data, testId = param.testId, avatar = param.avatar, tweakStyles = param.tweakStyles, accountName = param.accountName, options = param.options;
|
|
8523
|
-
var classes = useStyles$
|
|
8508
|
+
var classes = useStyles$T({
|
|
8524
8509
|
theme: tweakStyles
|
|
8525
8510
|
});
|
|
8526
8511
|
var tweakListStyles = useTweakStyles({
|
|
@@ -8540,7 +8525,7 @@
|
|
|
8540
8525
|
useOnClickOutsideWithRef(dropdownRef, function() {
|
|
8541
8526
|
return setIsMenuOpen(false);
|
|
8542
8527
|
}, nameRef);
|
|
8543
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$
|
|
8528
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$R(_object_spread$Z({
|
|
8544
8529
|
className: classes.root
|
|
8545
8530
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8546
8531
|
children: [
|
|
@@ -8590,7 +8575,7 @@
|
|
|
8590
8575
|
]
|
|
8591
8576
|
}));
|
|
8592
8577
|
};
|
|
8593
|
-
var useStyles$
|
|
8578
|
+
var useStyles$S = createThemedStyles("AddButton", {
|
|
8594
8579
|
root: {
|
|
8595
8580
|
display: "flex",
|
|
8596
8581
|
alignItems: "center",
|
|
@@ -8616,7 +8601,7 @@
|
|
|
8616
8601
|
width: "100%"
|
|
8617
8602
|
}
|
|
8618
8603
|
});
|
|
8619
|
-
function _define_property$
|
|
8604
|
+
function _define_property$_(obj, key, value) {
|
|
8620
8605
|
if (key in obj) {
|
|
8621
8606
|
Object.defineProperty(obj, key, {
|
|
8622
8607
|
value,
|
|
@@ -8629,7 +8614,7 @@
|
|
|
8629
8614
|
}
|
|
8630
8615
|
return obj;
|
|
8631
8616
|
}
|
|
8632
|
-
function _object_spread$
|
|
8617
|
+
function _object_spread$Y(target) {
|
|
8633
8618
|
for (var i = 1; i < arguments.length; i++) {
|
|
8634
8619
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8635
8620
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8639,12 +8624,12 @@
|
|
|
8639
8624
|
}));
|
|
8640
8625
|
}
|
|
8641
8626
|
ownKeys2.forEach(function(key) {
|
|
8642
|
-
_define_property$
|
|
8627
|
+
_define_property$_(target, key, source[key]);
|
|
8643
8628
|
});
|
|
8644
8629
|
}
|
|
8645
8630
|
return target;
|
|
8646
8631
|
}
|
|
8647
|
-
function ownKeys$
|
|
8632
|
+
function ownKeys$Q(object, enumerableOnly) {
|
|
8648
8633
|
var keys2 = Object.keys(object);
|
|
8649
8634
|
if (Object.getOwnPropertySymbols) {
|
|
8650
8635
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8657,12 +8642,12 @@
|
|
|
8657
8642
|
}
|
|
8658
8643
|
return keys2;
|
|
8659
8644
|
}
|
|
8660
|
-
function _object_spread_props$
|
|
8645
|
+
function _object_spread_props$Q(target, source) {
|
|
8661
8646
|
source = source != null ? source : {};
|
|
8662
8647
|
if (Object.getOwnPropertyDescriptors) {
|
|
8663
8648
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8664
8649
|
} else {
|
|
8665
|
-
ownKeys$
|
|
8650
|
+
ownKeys$Q(Object(source)).forEach(function(key) {
|
|
8666
8651
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8667
8652
|
});
|
|
8668
8653
|
}
|
|
@@ -8670,10 +8655,10 @@
|
|
|
8670
8655
|
}
|
|
8671
8656
|
var AddButton = function(param) {
|
|
8672
8657
|
var text = param.text, _param_type = param.type, type = _param_type === void 0 ? "button" : _param_type, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, onClick = param.onClick, _param_isFullWidth = param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8673
|
-
var classes = useStyles$
|
|
8658
|
+
var classes = useStyles$S({
|
|
8674
8659
|
theme: tweakStyles
|
|
8675
8660
|
});
|
|
8676
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
8661
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$Q(_object_spread$Y({
|
|
8677
8662
|
type,
|
|
8678
8663
|
className: clsx(classes.root, isDisabled && classes.disabled, isFullWidth && classes.fullWidth),
|
|
8679
8664
|
onClick: !isDisabled ? onClick : void 0,
|
|
@@ -8692,7 +8677,7 @@
|
|
|
8692
8677
|
]
|
|
8693
8678
|
}));
|
|
8694
8679
|
};
|
|
8695
|
-
var useStyles$
|
|
8680
|
+
var useStyles$R = createThemedStyles("DotsPreloader", {
|
|
8696
8681
|
root: {
|
|
8697
8682
|
display: "flex",
|
|
8698
8683
|
gap: 4,
|
|
@@ -8738,7 +8723,7 @@
|
|
|
8738
8723
|
});
|
|
8739
8724
|
var DotsPreloader = function(param) {
|
|
8740
8725
|
var tweakStyles = param.tweakStyles;
|
|
8741
|
-
var classes = useStyles$
|
|
8726
|
+
var classes = useStyles$R({
|
|
8742
8727
|
theme: tweakStyles
|
|
8743
8728
|
});
|
|
8744
8729
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8804,7 +8789,7 @@
|
|
|
8804
8789
|
]
|
|
8805
8790
|
});
|
|
8806
8791
|
};
|
|
8807
|
-
var useStyles$
|
|
8792
|
+
var useStyles$Q = createThemedStyles("SvgPreloader", {
|
|
8808
8793
|
root: {
|
|
8809
8794
|
display: "flex",
|
|
8810
8795
|
width: "100%",
|
|
@@ -8814,7 +8799,7 @@
|
|
|
8814
8799
|
var SvgPreloader = function(param) {
|
|
8815
8800
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, tweakStyles = param.tweakStyles;
|
|
8816
8801
|
var _theme_preloaders;
|
|
8817
|
-
var classes = useStyles$
|
|
8802
|
+
var classes = useStyles$Q({
|
|
8818
8803
|
theme: tweakStyles
|
|
8819
8804
|
});
|
|
8820
8805
|
var theme = React.useContext(ThemeContext).theme;
|
|
@@ -8828,7 +8813,7 @@
|
|
|
8828
8813
|
}
|
|
8829
8814
|
}) : /* @__PURE__ */ jsx(PreloaderIcon, {});
|
|
8830
8815
|
};
|
|
8831
|
-
var useStyles$
|
|
8816
|
+
var useStyles$P = createThemedStyles("ThemedPreloader", {
|
|
8832
8817
|
root: {
|
|
8833
8818
|
display: "flex"
|
|
8834
8819
|
},
|
|
@@ -8839,7 +8824,7 @@
|
|
|
8839
8824
|
color: "currentColor"
|
|
8840
8825
|
}
|
|
8841
8826
|
});
|
|
8842
|
-
function _define_property$
|
|
8827
|
+
function _define_property$Z(obj, key, value) {
|
|
8843
8828
|
if (key in obj) {
|
|
8844
8829
|
Object.defineProperty(obj, key, {
|
|
8845
8830
|
value,
|
|
@@ -8852,7 +8837,7 @@
|
|
|
8852
8837
|
}
|
|
8853
8838
|
return obj;
|
|
8854
8839
|
}
|
|
8855
|
-
function _object_spread$
|
|
8840
|
+
function _object_spread$X(target) {
|
|
8856
8841
|
for (var i = 1; i < arguments.length; i++) {
|
|
8857
8842
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
8858
8843
|
var ownKeys2 = Object.keys(source);
|
|
@@ -8862,12 +8847,12 @@
|
|
|
8862
8847
|
}));
|
|
8863
8848
|
}
|
|
8864
8849
|
ownKeys2.forEach(function(key) {
|
|
8865
|
-
_define_property$
|
|
8850
|
+
_define_property$Z(target, key, source[key]);
|
|
8866
8851
|
});
|
|
8867
8852
|
}
|
|
8868
8853
|
return target;
|
|
8869
8854
|
}
|
|
8870
|
-
function ownKeys$
|
|
8855
|
+
function ownKeys$P(object, enumerableOnly) {
|
|
8871
8856
|
var keys2 = Object.keys(object);
|
|
8872
8857
|
if (Object.getOwnPropertySymbols) {
|
|
8873
8858
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -8880,12 +8865,12 @@
|
|
|
8880
8865
|
}
|
|
8881
8866
|
return keys2;
|
|
8882
8867
|
}
|
|
8883
|
-
function _object_spread_props$
|
|
8868
|
+
function _object_spread_props$P(target, source) {
|
|
8884
8869
|
source = source != null ? source : {};
|
|
8885
8870
|
if (Object.getOwnPropertyDescriptors) {
|
|
8886
8871
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
8887
8872
|
} else {
|
|
8888
|
-
ownKeys$
|
|
8873
|
+
ownKeys$P(Object(source)).forEach(function(key) {
|
|
8889
8874
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
8890
8875
|
});
|
|
8891
8876
|
}
|
|
@@ -8893,7 +8878,7 @@
|
|
|
8893
8878
|
}
|
|
8894
8879
|
var ThemedPreloader = function(param) {
|
|
8895
8880
|
var _param_type = param.type, type = _param_type === void 0 ? "default" : _param_type, _param_useCurrentColor = param.useCurrentColor, useCurrentColor = _param_useCurrentColor === void 0 ? false : _param_useCurrentColor, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
8896
|
-
var classes = useStyles$
|
|
8881
|
+
var classes = useStyles$P({
|
|
8897
8882
|
theme: tweakStyles
|
|
8898
8883
|
});
|
|
8899
8884
|
var tweakDotsPreloaderStyles = useTweakStyles({
|
|
@@ -8906,8 +8891,8 @@
|
|
|
8906
8891
|
className: "tweakSvgPreloader",
|
|
8907
8892
|
currentComponentName: "ThemedPreloader"
|
|
8908
8893
|
});
|
|
8909
|
-
return /* @__PURE__ */ jsx("div", _object_spread_props$
|
|
8910
|
-
className: clsx(classes.root, classes[type], _define_property$
|
|
8894
|
+
return /* @__PURE__ */ jsx("div", _object_spread_props$P(_object_spread$X({
|
|
8895
|
+
className: clsx(classes.root, classes[type], _define_property$Z({}, classes.currentColor, useCurrentColor))
|
|
8911
8896
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
8912
8897
|
children: type === "dots" ? /* @__PURE__ */ jsx(DotsPreloader, {
|
|
8913
8898
|
tweakStyles: tweakDotsPreloaderStyles
|
|
@@ -8917,7 +8902,7 @@
|
|
|
8917
8902
|
})
|
|
8918
8903
|
}));
|
|
8919
8904
|
};
|
|
8920
|
-
var useStyles$
|
|
8905
|
+
var useStyles$O = createThemedStyles("Button", {
|
|
8921
8906
|
root: {
|
|
8922
8907
|
display: "flex",
|
|
8923
8908
|
justifyContent: "center",
|
|
@@ -9088,7 +9073,7 @@
|
|
|
9088
9073
|
var getPreloaderStyles = function(size) {
|
|
9089
9074
|
return size === "s" || size === "m" ? dotsPreloaderStyles : void 0;
|
|
9090
9075
|
};
|
|
9091
|
-
function _define_property$
|
|
9076
|
+
function _define_property$Y(obj, key, value) {
|
|
9092
9077
|
if (key in obj) {
|
|
9093
9078
|
Object.defineProperty(obj, key, {
|
|
9094
9079
|
value,
|
|
@@ -9101,7 +9086,7 @@
|
|
|
9101
9086
|
}
|
|
9102
9087
|
return obj;
|
|
9103
9088
|
}
|
|
9104
|
-
function _object_spread$
|
|
9089
|
+
function _object_spread$W(target) {
|
|
9105
9090
|
for (var i = 1; i < arguments.length; i++) {
|
|
9106
9091
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9107
9092
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9111,12 +9096,12 @@
|
|
|
9111
9096
|
}));
|
|
9112
9097
|
}
|
|
9113
9098
|
ownKeys2.forEach(function(key) {
|
|
9114
|
-
_define_property$
|
|
9099
|
+
_define_property$Y(target, key, source[key]);
|
|
9115
9100
|
});
|
|
9116
9101
|
}
|
|
9117
9102
|
return target;
|
|
9118
9103
|
}
|
|
9119
|
-
function ownKeys$
|
|
9104
|
+
function ownKeys$O(object, enumerableOnly) {
|
|
9120
9105
|
var keys2 = Object.keys(object);
|
|
9121
9106
|
if (Object.getOwnPropertySymbols) {
|
|
9122
9107
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9129,21 +9114,21 @@
|
|
|
9129
9114
|
}
|
|
9130
9115
|
return keys2;
|
|
9131
9116
|
}
|
|
9132
|
-
function _object_spread_props$
|
|
9117
|
+
function _object_spread_props$O(target, source) {
|
|
9133
9118
|
source = source != null ? source : {};
|
|
9134
9119
|
if (Object.getOwnPropertyDescriptors) {
|
|
9135
9120
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9136
9121
|
} else {
|
|
9137
|
-
ownKeys$
|
|
9122
|
+
ownKeys$O(Object(source)).forEach(function(key) {
|
|
9138
9123
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9139
9124
|
});
|
|
9140
9125
|
}
|
|
9141
9126
|
return target;
|
|
9142
9127
|
}
|
|
9143
|
-
function _object_without_properties$
|
|
9128
|
+
function _object_without_properties$j(source, excluded) {
|
|
9144
9129
|
if (source == null)
|
|
9145
9130
|
return {};
|
|
9146
|
-
var target = _object_without_properties_loose$
|
|
9131
|
+
var target = _object_without_properties_loose$j(source, excluded);
|
|
9147
9132
|
var key, i;
|
|
9148
9133
|
if (Object.getOwnPropertySymbols) {
|
|
9149
9134
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -9158,7 +9143,7 @@
|
|
|
9158
9143
|
}
|
|
9159
9144
|
return target;
|
|
9160
9145
|
}
|
|
9161
|
-
function _object_without_properties_loose$
|
|
9146
|
+
function _object_without_properties_loose$j(source, excluded) {
|
|
9162
9147
|
if (source == null)
|
|
9163
9148
|
return {};
|
|
9164
9149
|
var target = {};
|
|
@@ -9173,7 +9158,7 @@
|
|
|
9173
9158
|
return target;
|
|
9174
9159
|
}
|
|
9175
9160
|
var Button = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9176
|
-
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$
|
|
9161
|
+
var _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, children = _param.children, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "primary" : _param_view, _param_isFullWidth = _param.isFullWidth, isFullWidth = _param_isFullWidth === void 0 ? false : _param_isFullWidth, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_shouldSkipTabNavigation = _param.shouldSkipTabNavigation, shouldSkipTabNavigation = _param_shouldSkipTabNavigation === void 0 ? false : _param_shouldSkipTabNavigation, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, icon = _param.icon, _param_iconPosition = _param.iconPosition, iconPosition = _param_iconPosition === void 0 ? "left" : _param_iconPosition, _param_preloaderType = _param.preloaderType, preloaderType = _param_preloaderType === void 0 ? "dots" : _param_preloaderType, interactions = _object_without_properties$j(_param, [
|
|
9177
9162
|
"type",
|
|
9178
9163
|
"children",
|
|
9179
9164
|
"size",
|
|
@@ -9191,7 +9176,7 @@
|
|
|
9191
9176
|
"iconPosition",
|
|
9192
9177
|
"preloaderType"
|
|
9193
9178
|
]);
|
|
9194
|
-
var classes = useStyles$
|
|
9179
|
+
var classes = useStyles$O({
|
|
9195
9180
|
theme: tweakStyles
|
|
9196
9181
|
});
|
|
9197
9182
|
var tweakPreloaderStyles = useTweakStyles({
|
|
@@ -9204,16 +9189,16 @@
|
|
|
9204
9189
|
var hasChildren = trueReactPlatformHelpers.isReactNodeNotEmpty(children);
|
|
9205
9190
|
var hasNoAction = isDisabled || isLoading;
|
|
9206
9191
|
var _obj2, _obj1;
|
|
9207
|
-
return /* @__PURE__ */ jsxs("button", _object_spread_props$
|
|
9192
|
+
return /* @__PURE__ */ jsxs("button", _object_spread_props$O(_object_spread$W({
|
|
9208
9193
|
ref,
|
|
9209
9194
|
type,
|
|
9210
|
-
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$
|
|
9195
|
+
className: clsx(classes.root, classes[size], classes[view], (_obj2 = {}, _define_property$Y(_obj2, classes.disabled, isDisabled), _define_property$Y(_obj2, classes.fullWidth, isFullWidth), _define_property$Y(_obj2, classes.inline, isInline), _define_property$Y(_obj2, classes.active, isActive), _define_property$Y(_obj2, classes.loading, isLoading), _define_property$Y(_obj2, classes.onlyIcon, hasIcon && !hasChildren), _obj2)),
|
|
9211
9196
|
tabIndex: shouldSkipTabNavigation ? -1 : void 0,
|
|
9212
9197
|
disabled: hasNoAction
|
|
9213
9198
|
}, interactions, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9214
9199
|
children: [
|
|
9215
9200
|
/* @__PURE__ */ jsxs("span", {
|
|
9216
|
-
className: clsx(classes.content, (_obj1 = {}, _define_property$
|
|
9201
|
+
className: clsx(classes.content, (_obj1 = {}, _define_property$Y(_obj1, classes.iconFromRight, hasChildren && hasIcon && iconPosition === "right"), _define_property$Y(_obj1, classes.iconFromLeft, hasChildren && hasIcon && iconPosition === "left"), _obj1)),
|
|
9217
9202
|
children: [
|
|
9218
9203
|
hasIcon && /* @__PURE__ */ jsx("span", {
|
|
9219
9204
|
className: classes.icon,
|
|
@@ -9236,7 +9221,7 @@
|
|
|
9236
9221
|
]
|
|
9237
9222
|
}));
|
|
9238
9223
|
});
|
|
9239
|
-
var useStyles$
|
|
9224
|
+
var useStyles$N = createThemedStyles("Checkbox", {
|
|
9240
9225
|
root: {
|
|
9241
9226
|
cursor: "pointer",
|
|
9242
9227
|
display: "flex",
|
|
@@ -9274,7 +9259,7 @@
|
|
|
9274
9259
|
flexDirection: "row-reverse"
|
|
9275
9260
|
}
|
|
9276
9261
|
});
|
|
9277
|
-
function _define_property$
|
|
9262
|
+
function _define_property$X(obj, key, value) {
|
|
9278
9263
|
if (key in obj) {
|
|
9279
9264
|
Object.defineProperty(obj, key, {
|
|
9280
9265
|
value,
|
|
@@ -9287,7 +9272,7 @@
|
|
|
9287
9272
|
}
|
|
9288
9273
|
return obj;
|
|
9289
9274
|
}
|
|
9290
|
-
function _object_spread$
|
|
9275
|
+
function _object_spread$V(target) {
|
|
9291
9276
|
for (var i = 1; i < arguments.length; i++) {
|
|
9292
9277
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9293
9278
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9297,12 +9282,12 @@
|
|
|
9297
9282
|
}));
|
|
9298
9283
|
}
|
|
9299
9284
|
ownKeys2.forEach(function(key) {
|
|
9300
|
-
_define_property$
|
|
9285
|
+
_define_property$X(target, key, source[key]);
|
|
9301
9286
|
});
|
|
9302
9287
|
}
|
|
9303
9288
|
return target;
|
|
9304
9289
|
}
|
|
9305
|
-
function ownKeys$
|
|
9290
|
+
function ownKeys$N(object, enumerableOnly) {
|
|
9306
9291
|
var keys2 = Object.keys(object);
|
|
9307
9292
|
if (Object.getOwnPropertySymbols) {
|
|
9308
9293
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9315,12 +9300,12 @@
|
|
|
9315
9300
|
}
|
|
9316
9301
|
return keys2;
|
|
9317
9302
|
}
|
|
9318
|
-
function _object_spread_props$
|
|
9303
|
+
function _object_spread_props$N(target, source) {
|
|
9319
9304
|
source = source != null ? source : {};
|
|
9320
9305
|
if (Object.getOwnPropertyDescriptors) {
|
|
9321
9306
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9322
9307
|
} else {
|
|
9323
|
-
ownKeys$
|
|
9308
|
+
ownKeys$N(Object(source)).forEach(function(key) {
|
|
9324
9309
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9325
9310
|
});
|
|
9326
9311
|
}
|
|
@@ -9328,7 +9313,7 @@
|
|
|
9328
9313
|
}
|
|
9329
9314
|
function Checkbox(param) {
|
|
9330
9315
|
var value = param.value, children = param.children, _param_isChecked = param.isChecked, isChecked = _param_isChecked === void 0 ? false : _param_isChecked, _param_isSemiChecked = param.isSemiChecked, isSemiChecked = _param_isSemiChecked === void 0 ? false : _param_isSemiChecked, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isReadonly = param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_labelPosition = param.labelPosition, labelPosition = _param_labelPosition === void 0 ? "right" : _param_labelPosition, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, onSelect = param.onSelect;
|
|
9331
|
-
var classes = useStyles$
|
|
9316
|
+
var classes = useStyles$N({
|
|
9332
9317
|
theme: tweakStyles
|
|
9333
9318
|
});
|
|
9334
9319
|
var hasAction = !isDisabled && !isReadonly;
|
|
@@ -9340,11 +9325,11 @@
|
|
|
9340
9325
|
}, event);
|
|
9341
9326
|
};
|
|
9342
9327
|
var _obj2;
|
|
9343
|
-
return /* @__PURE__ */ jsxs("label", _object_spread_props$
|
|
9344
|
-
className: clsx(classes.root, (_obj2 = {}, _define_property$
|
|
9328
|
+
return /* @__PURE__ */ jsxs("label", _object_spread_props$N(_object_spread$V({
|
|
9329
|
+
className: clsx(classes.root, (_obj2 = {}, _define_property$X(_obj2, classes.checked, isSelected), _define_property$X(_obj2, classes.invalid, isInvalid), _define_property$X(_obj2, classes.disabled, isDisabled), _define_property$X(_obj2, classes.labelPositionLeft, labelPosition === "left"), _obj2))
|
|
9345
9330
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9346
9331
|
children: [
|
|
9347
|
-
/* @__PURE__ */ jsx("input", _object_spread$
|
|
9332
|
+
/* @__PURE__ */ jsx("input", _object_spread$V({
|
|
9348
9333
|
className: classes.input,
|
|
9349
9334
|
type: "checkbox",
|
|
9350
9335
|
checked: isSelected,
|
|
@@ -9367,7 +9352,7 @@
|
|
|
9367
9352
|
]
|
|
9368
9353
|
}));
|
|
9369
9354
|
}
|
|
9370
|
-
var useStyles$
|
|
9355
|
+
var useStyles$M = createThemedStyles("CloseButton", {
|
|
9371
9356
|
root: {
|
|
9372
9357
|
width: 40,
|
|
9373
9358
|
height: 40,
|
|
@@ -9393,7 +9378,7 @@
|
|
|
9393
9378
|
}
|
|
9394
9379
|
}
|
|
9395
9380
|
});
|
|
9396
|
-
function _define_property$
|
|
9381
|
+
function _define_property$W(obj, key, value) {
|
|
9397
9382
|
if (key in obj) {
|
|
9398
9383
|
Object.defineProperty(obj, key, {
|
|
9399
9384
|
value,
|
|
@@ -9406,7 +9391,7 @@
|
|
|
9406
9391
|
}
|
|
9407
9392
|
return obj;
|
|
9408
9393
|
}
|
|
9409
|
-
function _object_spread$
|
|
9394
|
+
function _object_spread$U(target) {
|
|
9410
9395
|
for (var i = 1; i < arguments.length; i++) {
|
|
9411
9396
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9412
9397
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9416,12 +9401,12 @@
|
|
|
9416
9401
|
}));
|
|
9417
9402
|
}
|
|
9418
9403
|
ownKeys2.forEach(function(key) {
|
|
9419
|
-
_define_property$
|
|
9404
|
+
_define_property$W(target, key, source[key]);
|
|
9420
9405
|
});
|
|
9421
9406
|
}
|
|
9422
9407
|
return target;
|
|
9423
9408
|
}
|
|
9424
|
-
function ownKeys$
|
|
9409
|
+
function ownKeys$M(object, enumerableOnly) {
|
|
9425
9410
|
var keys2 = Object.keys(object);
|
|
9426
9411
|
if (Object.getOwnPropertySymbols) {
|
|
9427
9412
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -9434,33 +9419,33 @@
|
|
|
9434
9419
|
}
|
|
9435
9420
|
return keys2;
|
|
9436
9421
|
}
|
|
9437
|
-
function _object_spread_props$
|
|
9422
|
+
function _object_spread_props$M(target, source) {
|
|
9438
9423
|
source = source != null ? source : {};
|
|
9439
9424
|
if (Object.getOwnPropertyDescriptors) {
|
|
9440
9425
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9441
9426
|
} else {
|
|
9442
|
-
ownKeys$
|
|
9427
|
+
ownKeys$M(Object(source)).forEach(function(key) {
|
|
9443
9428
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9444
9429
|
});
|
|
9445
9430
|
}
|
|
9446
9431
|
return target;
|
|
9447
9432
|
}
|
|
9448
9433
|
var CloseButton = function(param) {
|
|
9449
|
-
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data,
|
|
9450
|
-
var classes = useStyles$
|
|
9434
|
+
var tweakStyles = param.tweakStyles, testId = param.testId, data = param.data, _param_icon = param.icon, icon = _param_icon === void 0 ? "close" : _param_icon, onClose = param.onClose;
|
|
9435
|
+
var classes = useStyles$M({
|
|
9451
9436
|
theme: tweakStyles
|
|
9452
9437
|
});
|
|
9453
|
-
return /* @__PURE__ */ jsx("button", _object_spread_props$
|
|
9438
|
+
return /* @__PURE__ */ jsx("button", _object_spread_props$M(_object_spread$U({
|
|
9454
9439
|
type: "button",
|
|
9455
9440
|
className: classes.root,
|
|
9456
9441
|
onClick: onClose
|
|
9457
9442
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
9458
9443
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
9459
|
-
type:
|
|
9444
|
+
type: icon
|
|
9460
9445
|
})
|
|
9461
9446
|
}));
|
|
9462
9447
|
};
|
|
9463
|
-
var useStyles$
|
|
9448
|
+
var useStyles$L = createThemedStyles({
|
|
9464
9449
|
root: {
|
|
9465
9450
|
display: "flex",
|
|
9466
9451
|
flexWrap: "wrap"
|
|
@@ -9553,7 +9538,7 @@
|
|
|
9553
9538
|
return _array_like_to_array$k(o, minLen);
|
|
9554
9539
|
}
|
|
9555
9540
|
var Colors = function() {
|
|
9556
|
-
var classes = useStyles$
|
|
9541
|
+
var classes = useStyles$L();
|
|
9557
9542
|
var theme = React.useContext(ThemeContext).theme;
|
|
9558
9543
|
var _theme_colors = theme.colors, colors2 = _theme_colors === void 0 ? {} : _theme_colors;
|
|
9559
9544
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -9583,7 +9568,7 @@
|
|
|
9583
9568
|
})
|
|
9584
9569
|
});
|
|
9585
9570
|
};
|
|
9586
|
-
var useStyles$
|
|
9571
|
+
var useStyles$K = createThemedStyles("CssBaseline", {
|
|
9587
9572
|
"@global html, body": {
|
|
9588
9573
|
fontFamily: "Arial, sans-serif",
|
|
9589
9574
|
color: colors.FONT_MAIN,
|
|
@@ -9592,7 +9577,7 @@
|
|
|
9592
9577
|
},
|
|
9593
9578
|
root: {}
|
|
9594
9579
|
});
|
|
9595
|
-
function _define_property$
|
|
9580
|
+
function _define_property$V(obj, key, value) {
|
|
9596
9581
|
if (key in obj) {
|
|
9597
9582
|
Object.defineProperty(obj, key, {
|
|
9598
9583
|
value,
|
|
@@ -9605,7 +9590,7 @@
|
|
|
9605
9590
|
}
|
|
9606
9591
|
return obj;
|
|
9607
9592
|
}
|
|
9608
|
-
function _object_spread$
|
|
9593
|
+
function _object_spread$T(target) {
|
|
9609
9594
|
for (var i = 1; i < arguments.length; i++) {
|
|
9610
9595
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9611
9596
|
var ownKeys2 = Object.keys(source);
|
|
@@ -9615,296 +9600,485 @@
|
|
|
9615
9600
|
}));
|
|
9616
9601
|
}
|
|
9617
9602
|
ownKeys2.forEach(function(key) {
|
|
9618
|
-
_define_property$
|
|
9603
|
+
_define_property$V(target, key, source[key]);
|
|
9619
9604
|
});
|
|
9620
9605
|
}
|
|
9621
9606
|
return target;
|
|
9622
9607
|
}
|
|
9623
9608
|
var CssBaseline = function(param) {
|
|
9624
9609
|
var data = param.data, testId = param.testId, tweakStyles = param.tweakStyles;
|
|
9625
|
-
var classes = useStyles$
|
|
9610
|
+
var classes = useStyles$K({
|
|
9626
9611
|
theme: tweakStyles
|
|
9627
9612
|
});
|
|
9628
|
-
return /* @__PURE__ */ jsx("div", _object_spread$
|
|
9613
|
+
return /* @__PURE__ */ jsx("div", _object_spread$T({
|
|
9629
9614
|
className: classes.root
|
|
9630
9615
|
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)));
|
|
9631
9616
|
};
|
|
9632
|
-
var
|
|
9633
|
-
|
|
9634
|
-
var AUTOSIZE_MAX_WIDTH = 480;
|
|
9635
|
-
var useStyles$H = createThemedStyles("Input", {
|
|
9636
|
-
root: {
|
|
9637
|
-
width: "100%",
|
|
9638
|
-
boxSizing: "border-box",
|
|
9639
|
-
position: "relative"
|
|
9640
|
-
},
|
|
9641
|
-
inputWrapper: {
|
|
9617
|
+
var useStyles$J = createThemedStyles("WithMessages", {
|
|
9618
|
+
withMessages: {
|
|
9642
9619
|
display: "flex",
|
|
9620
|
+
flexDirection: "column",
|
|
9643
9621
|
width: "100%",
|
|
9644
|
-
height: dimensions.CONTROL_HEIGHT,
|
|
9645
|
-
boxSizing: "border-box",
|
|
9646
|
-
transition: animations.defaultTransition,
|
|
9647
|
-
transitionProperty: "border-color",
|
|
9648
|
-
backgroundColor: "white",
|
|
9649
9622
|
position: "relative"
|
|
9650
9623
|
},
|
|
9651
|
-
|
|
9652
|
-
|
|
9653
|
-
fontFamily: "inherit",
|
|
9654
|
-
padding: [
|
|
9655
|
-
0,
|
|
9656
|
-
PADDING_X$1
|
|
9657
|
-
]
|
|
9624
|
+
error: {
|
|
9625
|
+
color: "red"
|
|
9658
9626
|
},
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
width: "100%",
|
|
9662
|
-
height: "100%",
|
|
9663
|
-
outline: "none",
|
|
9664
|
-
boxSizing: "border-box",
|
|
9665
|
-
outlineStyle: "none",
|
|
9666
|
-
transition: animations.defaultTransition,
|
|
9667
|
-
transitionProperty: "background-color",
|
|
9668
|
-
border: "none",
|
|
9669
|
-
background: "none",
|
|
9670
|
-
"&::placeholder": {
|
|
9671
|
-
opacity: 1
|
|
9672
|
-
},
|
|
9673
|
-
MozAppearance: "textfield",
|
|
9674
|
-
"&::-webkit-inner-spin-button,&::-webkit-outer-spin-button": {
|
|
9675
|
-
WebkitAppearance: "none",
|
|
9676
|
-
margin: 0
|
|
9677
|
-
}
|
|
9627
|
+
info: {
|
|
9628
|
+
color: "gray"
|
|
9678
9629
|
},
|
|
9679
|
-
|
|
9680
|
-
display: "
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9686
|
-
minWidth: "1em",
|
|
9687
|
-
gridArea: "1 / 2",
|
|
9688
|
-
font: "inherit",
|
|
9689
|
-
justifySelf: "stretch"
|
|
9690
|
-
},
|
|
9691
|
-
"&::after": {
|
|
9692
|
-
maxWidth: AUTOSIZE_MAX_WIDTH,
|
|
9693
|
-
content: 'attr(data-value) " "',
|
|
9694
|
-
visibility: "hidden",
|
|
9695
|
-
whiteSpace: "pre-wrap"
|
|
9630
|
+
horizontal: {
|
|
9631
|
+
display: "flex",
|
|
9632
|
+
"& > *": {
|
|
9633
|
+
flexGrow: 1,
|
|
9634
|
+
"&:not(:first-child)": {
|
|
9635
|
+
marginLeft: -1
|
|
9636
|
+
}
|
|
9696
9637
|
}
|
|
9697
9638
|
},
|
|
9698
|
-
|
|
9699
|
-
position: "relative",
|
|
9700
|
-
zIndex: 1
|
|
9701
|
-
},
|
|
9702
|
-
unitsWrapper: {
|
|
9703
|
-
extend: "inputContent",
|
|
9704
|
-
position: "absolute",
|
|
9705
|
-
left: 0,
|
|
9706
|
-
height: "100%",
|
|
9707
|
-
boxSizing: "border-box",
|
|
9639
|
+
vertical: {
|
|
9708
9640
|
display: "flex",
|
|
9709
|
-
|
|
9710
|
-
|
|
9641
|
+
flexDirection: "column",
|
|
9642
|
+
"& > *:not(:first-child)": {
|
|
9643
|
+
marginTop: -1
|
|
9644
|
+
}
|
|
9711
9645
|
},
|
|
9712
|
-
|
|
9713
|
-
|
|
9646
|
+
message: {
|
|
9647
|
+
fontSize: 12
|
|
9714
9648
|
},
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9649
|
+
children: {}
|
|
9650
|
+
});
|
|
9651
|
+
function _define_property$U(obj, key, value) {
|
|
9652
|
+
if (key in obj) {
|
|
9653
|
+
Object.defineProperty(obj, key, {
|
|
9654
|
+
value,
|
|
9655
|
+
enumerable: true,
|
|
9656
|
+
configurable: true,
|
|
9657
|
+
writable: true
|
|
9658
|
+
});
|
|
9659
|
+
} else {
|
|
9660
|
+
obj[key] = value;
|
|
9661
|
+
}
|
|
9662
|
+
return obj;
|
|
9663
|
+
}
|
|
9664
|
+
function _object_spread$S(target) {
|
|
9665
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9666
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9667
|
+
var ownKeys2 = Object.keys(source);
|
|
9668
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9669
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9670
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9671
|
+
}));
|
|
9672
|
+
}
|
|
9673
|
+
ownKeys2.forEach(function(key) {
|
|
9674
|
+
_define_property$U(target, key, source[key]);
|
|
9675
|
+
});
|
|
9676
|
+
}
|
|
9677
|
+
return target;
|
|
9678
|
+
}
|
|
9679
|
+
function ownKeys$L(object, enumerableOnly) {
|
|
9680
|
+
var keys2 = Object.keys(object);
|
|
9681
|
+
if (Object.getOwnPropertySymbols) {
|
|
9682
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9683
|
+
if (enumerableOnly) {
|
|
9684
|
+
symbols = symbols.filter(function(sym) {
|
|
9685
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9686
|
+
});
|
|
9687
|
+
}
|
|
9688
|
+
keys2.push.apply(keys2, symbols);
|
|
9689
|
+
}
|
|
9690
|
+
return keys2;
|
|
9691
|
+
}
|
|
9692
|
+
function _object_spread_props$L(target, source) {
|
|
9693
|
+
source = source != null ? source : {};
|
|
9694
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9695
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9696
|
+
} else {
|
|
9697
|
+
ownKeys$L(Object(source)).forEach(function(key) {
|
|
9698
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9699
|
+
});
|
|
9700
|
+
}
|
|
9701
|
+
return target;
|
|
9702
|
+
}
|
|
9703
|
+
var WithMessages = /* @__PURE__ */ React.forwardRef(function(param, ref) {
|
|
9704
|
+
var children = param.children, infoMessage = param.infoMessage, errorMessage = param.errorMessage, controlsDirection = param.controlsDirection, tweakStyles = param.tweakStyles, testId = param.testId, data = param.data;
|
|
9705
|
+
var classes = useStyles$J({
|
|
9706
|
+
theme: tweakStyles
|
|
9707
|
+
});
|
|
9708
|
+
var shouldShowError = trueReactPlatformHelpers.isReactNodeNotEmpty(errorMessage);
|
|
9709
|
+
var shouldShowInfo = trueReactPlatformHelpers.isReactNodeNotEmpty(infoMessage) && !shouldShowError;
|
|
9710
|
+
var _obj2;
|
|
9711
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$L(_object_spread$S({
|
|
9712
|
+
ref,
|
|
9713
|
+
className: classes.withMessages,
|
|
9714
|
+
"data-invalid": shouldShowError ? true : void 0
|
|
9715
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9716
|
+
children: [
|
|
9717
|
+
trueReactPlatformHelpers.isReactNodeNotEmpty(children) && /* @__PURE__ */ jsx("div", {
|
|
9718
|
+
className: clsx(classes.children, (_obj2 = {}, _define_property$U(_obj2, classes.horizontal, controlsDirection === "horizontal"), _define_property$U(_obj2, classes.vertical, controlsDirection === "vertical"), _obj2)),
|
|
9719
|
+
children
|
|
9720
|
+
}),
|
|
9721
|
+
(shouldShowError || shouldShowInfo) && /* @__PURE__ */ jsxs("div", {
|
|
9722
|
+
className: classes.message,
|
|
9723
|
+
children: [
|
|
9724
|
+
shouldShowError && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
|
|
9725
|
+
className: classes.error
|
|
9726
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "error")), {
|
|
9727
|
+
children: errorMessage
|
|
9728
|
+
})),
|
|
9729
|
+
shouldShowInfo && /* @__PURE__ */ jsx("div", _object_spread_props$L(_object_spread$S({
|
|
9730
|
+
className: classes.info
|
|
9731
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "info")), {
|
|
9732
|
+
children: infoMessage
|
|
9733
|
+
}))
|
|
9734
|
+
]
|
|
9735
|
+
})
|
|
9736
|
+
]
|
|
9737
|
+
}));
|
|
9738
|
+
});
|
|
9739
|
+
var CONTROL$1 = dimensions.CONTROL, Z_INDEX$2 = dimensions.Z_INDEX;
|
|
9740
|
+
var useStyles$I = createThemedStyles("ControlWrapper", {
|
|
9741
|
+
controlWrapper: {
|
|
9742
|
+
"--control-height": "".concat(CONTROL$1.HEIGHT - 2, "px"),
|
|
9743
|
+
// borders
|
|
9744
|
+
"--control-padding": "".concat(CONTROL$1.PADDING, "px"),
|
|
9745
|
+
"--icon-size": "".concat(CONTROL$1.ICON_SIZE, "px"),
|
|
9746
|
+
"--icon-inner-size": "".concat(CONTROL$1.ICON_INNER_SIZE, "px"),
|
|
9747
|
+
"--icon-gap": "".concat(CONTROL$1.ICON_GAP, "px"),
|
|
9748
|
+
display: "flex",
|
|
9749
|
+
width: "100%",
|
|
9750
|
+
backgroundColor: "white",
|
|
9751
|
+
position: "relative",
|
|
9752
|
+
border: [
|
|
9753
|
+
"solid",
|
|
9754
|
+
1,
|
|
9755
|
+
"gray"
|
|
9756
|
+
],
|
|
9757
|
+
borderRadius: 8,
|
|
9758
|
+
boxSizing: "border-box",
|
|
9759
|
+
zIndex: 0
|
|
9720
9760
|
},
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
paddingLeft: 0
|
|
9761
|
+
invalid: {
|
|
9762
|
+
zIndex: Z_INDEX$2.CONTROL_INVALID
|
|
9724
9763
|
},
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
display: "block",
|
|
9730
|
-
transform: "scale(0.75) translateY(-120%)"
|
|
9731
|
-
}
|
|
9764
|
+
disabled: {},
|
|
9765
|
+
focused: {
|
|
9766
|
+
position: "relative",
|
|
9767
|
+
zIndex: Z_INDEX$2.CONTROL_FOCUS
|
|
9732
9768
|
},
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9737
|
-
left: -12,
|
|
9738
|
-
top: "50%",
|
|
9739
|
-
transform: "translate(0, -50%)",
|
|
9740
|
-
width: 6,
|
|
9741
|
-
height: 6,
|
|
9742
|
-
borderRadius: "50%"
|
|
9743
|
-
}
|
|
9769
|
+
withValue: {},
|
|
9770
|
+
loading: {},
|
|
9771
|
+
minContent: {
|
|
9772
|
+
width: "min-content"
|
|
9744
9773
|
},
|
|
9745
9774
|
label: {
|
|
9746
9775
|
position: "absolute",
|
|
9747
9776
|
pointerEvents: "none",
|
|
9748
|
-
left:
|
|
9777
|
+
left: "var(--control-padding)",
|
|
9749
9778
|
top: "50%",
|
|
9750
9779
|
transformOrigin: "top left",
|
|
9751
9780
|
transform: "translateY(-50%)",
|
|
9752
9781
|
transition: animations.defaultTransition,
|
|
9753
9782
|
transitionProperty: "transform, color",
|
|
9754
|
-
fontSize: 16
|
|
9755
|
-
|
|
9756
|
-
floatingWithoutPadding: {
|
|
9757
|
-
left: 0
|
|
9783
|
+
fontSize: 16,
|
|
9784
|
+
zIndex: 1
|
|
9758
9785
|
},
|
|
9786
|
+
activeLabel: {},
|
|
9759
9787
|
requiredLabel: {
|
|
9760
9788
|
"&:after": {
|
|
9761
9789
|
content: '""',
|
|
9790
|
+
display: "block",
|
|
9762
9791
|
position: "absolute",
|
|
9792
|
+
top: 0,
|
|
9763
9793
|
right: -8,
|
|
9764
|
-
top: 4,
|
|
9765
|
-
transform: "translate(0, -50%)",
|
|
9766
9794
|
width: 6,
|
|
9767
9795
|
height: 6,
|
|
9768
|
-
borderRadius: "50%"
|
|
9796
|
+
borderRadius: "50%",
|
|
9797
|
+
backgroundColor: "orange"
|
|
9769
9798
|
}
|
|
9770
9799
|
},
|
|
9771
|
-
|
|
9772
|
-
|
|
9800
|
+
disabledLabel: {},
|
|
9801
|
+
wrapper: {
|
|
9802
|
+
display: "flex",
|
|
9803
|
+
flexGrow: 1,
|
|
9804
|
+
minWidth: 0,
|
|
9805
|
+
// Нужно для селекта
|
|
9806
|
+
textAlign: "left"
|
|
9773
9807
|
},
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
0,
|
|
9779
|
-
0,
|
|
9780
|
-
0
|
|
9781
|
-
]
|
|
9808
|
+
controls: {
|
|
9809
|
+
display: "flex",
|
|
9810
|
+
marginLeft: "auto",
|
|
9811
|
+
flexShrink: 0
|
|
9782
9812
|
},
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9813
|
+
icon: {
|
|
9814
|
+
display: "flex",
|
|
9815
|
+
alignItems: "center",
|
|
9816
|
+
justifyContent: "center",
|
|
9817
|
+
minWidth: "var(--icon-size)",
|
|
9818
|
+
width: "var(--icon-size)",
|
|
9819
|
+
height: "100%",
|
|
9820
|
+
flexShrink: 0,
|
|
9821
|
+
cursor: "default",
|
|
9822
|
+
"&:last-child": {
|
|
9823
|
+
paddingRight: 6
|
|
9824
|
+
}
|
|
9791
9825
|
},
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
borderWidth: [
|
|
9795
|
-
0,
|
|
9796
|
-
0,
|
|
9797
|
-
0,
|
|
9798
|
-
1
|
|
9799
|
-
]
|
|
9826
|
+
iconInner: {
|
|
9827
|
+
width: "var(--icon-inner-size)"
|
|
9800
9828
|
},
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
0,
|
|
9807
|
-
0
|
|
9808
|
-
]
|
|
9829
|
+
customIcon: {
|
|
9830
|
+
width: "unset",
|
|
9831
|
+
"& $iconInner": {
|
|
9832
|
+
width: "unset"
|
|
9833
|
+
}
|
|
9809
9834
|
},
|
|
9810
|
-
|
|
9835
|
+
endIcon: {},
|
|
9836
|
+
activeIcon: {
|
|
9837
|
+
cursor: "pointer",
|
|
9838
|
+
outline: "none"
|
|
9839
|
+
},
|
|
9840
|
+
clearIcon: {
|
|
9841
|
+
"& $iconInner": {
|
|
9842
|
+
width: "var(--icon-inner-size)"
|
|
9843
|
+
}
|
|
9844
|
+
},
|
|
9845
|
+
loader: {
|
|
9846
|
+
"& $iconInner": {
|
|
9847
|
+
width: "var(--icon-inner-size)"
|
|
9848
|
+
}
|
|
9849
|
+
},
|
|
9850
|
+
/* groupPositions */
|
|
9851
|
+
"placement-top": {
|
|
9811
9852
|
borderBottomLeftRadius: 0,
|
|
9812
9853
|
borderBottomRightRadius: 0
|
|
9813
9854
|
},
|
|
9814
|
-
bottom: {
|
|
9855
|
+
"placement-bottom": {
|
|
9815
9856
|
borderTopLeftRadius: 0,
|
|
9816
9857
|
borderTopRightRadius: 0
|
|
9817
9858
|
},
|
|
9818
|
-
"top-left": {
|
|
9859
|
+
"placement-top-left": {
|
|
9819
9860
|
borderTopRightRadius: 0,
|
|
9820
9861
|
borderBottomLeftRadius: 0,
|
|
9821
9862
|
borderBottomRightRadius: 0
|
|
9822
9863
|
},
|
|
9823
|
-
"top-right": {
|
|
9864
|
+
"placement-top-right": {
|
|
9824
9865
|
borderTopLeftRadius: 0,
|
|
9825
9866
|
borderBottomLeftRadius: 0,
|
|
9826
9867
|
borderBottomRightRadius: 0
|
|
9827
9868
|
},
|
|
9828
|
-
"bottom-left": {
|
|
9869
|
+
"placement-bottom-left": {
|
|
9829
9870
|
borderTopLeftRadius: 0,
|
|
9830
9871
|
borderTopRightRadius: 0,
|
|
9831
9872
|
borderBottomRightRadius: 0
|
|
9832
9873
|
},
|
|
9833
|
-
"bottom-right": {
|
|
9874
|
+
"placement-bottom-right": {
|
|
9834
9875
|
borderTopLeftRadius: 0,
|
|
9835
9876
|
borderTopRightRadius: 0,
|
|
9836
9877
|
borderBottomLeftRadius: 0
|
|
9837
9878
|
},
|
|
9838
|
-
left: {
|
|
9879
|
+
"placement-left": {
|
|
9839
9880
|
borderTopRightRadius: 0,
|
|
9840
9881
|
borderBottomRightRadius: 0
|
|
9841
9882
|
},
|
|
9842
|
-
right: {
|
|
9883
|
+
"placement-right": {
|
|
9843
9884
|
borderTopLeftRadius: 0,
|
|
9844
9885
|
borderBottomLeftRadius: 0
|
|
9845
9886
|
},
|
|
9846
|
-
middle: {
|
|
9887
|
+
"placement-middle": {
|
|
9847
9888
|
borderRadius: 0
|
|
9848
|
-
}
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9889
|
+
}
|
|
9890
|
+
});
|
|
9891
|
+
function _define_property$T(obj, key, value) {
|
|
9892
|
+
if (key in obj) {
|
|
9893
|
+
Object.defineProperty(obj, key, {
|
|
9894
|
+
value,
|
|
9895
|
+
enumerable: true,
|
|
9896
|
+
configurable: true,
|
|
9897
|
+
writable: true
|
|
9898
|
+
});
|
|
9899
|
+
} else {
|
|
9900
|
+
obj[key] = value;
|
|
9901
|
+
}
|
|
9902
|
+
return obj;
|
|
9903
|
+
}
|
|
9904
|
+
function _object_spread$R(target) {
|
|
9905
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
9906
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
9907
|
+
var ownKeys2 = Object.keys(source);
|
|
9908
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
9909
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
9910
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
9911
|
+
}));
|
|
9912
|
+
}
|
|
9913
|
+
ownKeys2.forEach(function(key) {
|
|
9914
|
+
_define_property$T(target, key, source[key]);
|
|
9915
|
+
});
|
|
9916
|
+
}
|
|
9917
|
+
return target;
|
|
9918
|
+
}
|
|
9919
|
+
function ownKeys$K(object, enumerableOnly) {
|
|
9920
|
+
var keys2 = Object.keys(object);
|
|
9921
|
+
if (Object.getOwnPropertySymbols) {
|
|
9922
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
9923
|
+
if (enumerableOnly) {
|
|
9924
|
+
symbols = symbols.filter(function(sym) {
|
|
9925
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
9926
|
+
});
|
|
9927
|
+
}
|
|
9928
|
+
keys2.push.apply(keys2, symbols);
|
|
9929
|
+
}
|
|
9930
|
+
return keys2;
|
|
9931
|
+
}
|
|
9932
|
+
function _object_spread_props$K(target, source) {
|
|
9933
|
+
source = source != null ? source : {};
|
|
9934
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
9935
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
9936
|
+
} else {
|
|
9937
|
+
ownKeys$K(Object(source)).forEach(function(key) {
|
|
9938
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
9939
|
+
});
|
|
9940
|
+
}
|
|
9941
|
+
return target;
|
|
9942
|
+
}
|
|
9943
|
+
var ControlWrapper = function(param) {
|
|
9944
|
+
var label = param.label, icon = param.icon, groupPlacement = param.groupPlacement, isInvalid = param.isInvalid, isFocused = param.isFocused, isRequired = param.isRequired, isLoading = param.isLoading, isFullWidth = param.isFullWidth, isDisabled = param.isDisabled, hasValue = param.hasValue, testId = param.testId, children = param.children, tweakStyles = param.tweakStyles, data = param.data, onIconClick = param.onIconClick, onClear = param.onClear;
|
|
9945
|
+
var classes = useStyles$I({
|
|
9946
|
+
theme: tweakStyles
|
|
9947
|
+
});
|
|
9948
|
+
var hasEndIcon = !isLoading && trueReactPlatformHelpers.isReactNodeNotEmpty(icon);
|
|
9949
|
+
var hasClearButton = !isDisabled && !isLoading && hasValue && trueReactPlatformHelpers.isNotEmpty(onClear);
|
|
9950
|
+
var hasControls = hasEndIcon || hasClearButton || isLoading;
|
|
9951
|
+
var tweakPreloaderStyles = useTweakStyles({
|
|
9952
|
+
tweakStyles,
|
|
9953
|
+
className: "tweakPreloader",
|
|
9954
|
+
currentComponentName: "ControlWrapper"
|
|
9955
|
+
});
|
|
9956
|
+
var _obj2, _obj1, _obj22;
|
|
9957
|
+
return /* @__PURE__ */ jsxs("div", _object_spread_props$K(_object_spread$R({
|
|
9958
|
+
className: clsx(classes.controlWrapper, trueReactPlatformHelpers.isNotEmpty(groupPlacement) && [
|
|
9959
|
+
classes["placement-".concat(groupPlacement)]
|
|
9960
|
+
], (_obj2 = {}, _define_property$T(_obj2, classes.invalid, isInvalid), _define_property$T(_obj2, classes.focused, isFocused), _define_property$T(_obj2, classes.withValue, hasValue), _define_property$T(_obj2, classes.disabled, isDisabled), _define_property$T(_obj2, classes.loading, isLoading), _define_property$T(_obj2, classes.minContent, !isFullWidth), _obj2))
|
|
9961
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId)), {
|
|
9962
|
+
children: [
|
|
9963
|
+
trueReactPlatformHelpers.isReactNodeNotEmpty(label) && /* @__PURE__ */ jsx("div", {
|
|
9964
|
+
className: clsx(classes.label, (_obj1 = {}, _define_property$T(_obj1, classes.requiredLabel, isRequired), _define_property$T(_obj1, classes.disabledLabel, isDisabled), _define_property$T(_obj1, classes.activeLabel, isFocused || hasValue), _obj1)),
|
|
9965
|
+
children: label
|
|
9966
|
+
}),
|
|
9967
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9968
|
+
className: classes.wrapper,
|
|
9969
|
+
children: [
|
|
9970
|
+
children,
|
|
9971
|
+
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
9972
|
+
className: classes.controls,
|
|
9973
|
+
children: [
|
|
9974
|
+
hasClearButton && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9975
|
+
className: clsx(classes.icon, classes.clearIcon, classes.activeIcon)
|
|
9976
|
+
}, trueReactPlatformHelpers.addClickHandler(onClear), trueReactPlatformHelpers.addDataTestId(testId, "clear")), {
|
|
9977
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9978
|
+
className: classes.iconInner,
|
|
9979
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
9980
|
+
type: "close"
|
|
9981
|
+
})
|
|
9982
|
+
})
|
|
9983
|
+
})),
|
|
9984
|
+
hasEndIcon && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9985
|
+
className: clsx(classes.icon, classes.endIcon, (_obj22 = {}, _define_property$T(_obj22, classes.activeIcon, !isDisabled && trueReactPlatformHelpers.isNotEmpty(onIconClick)), _define_property$T(_obj22, classes.customIcon, !trueReactPlatformHelpers.isString(icon)), _obj22))
|
|
9986
|
+
}, trueReactPlatformHelpers.addClickHandler(onIconClick, !isDisabled), trueReactPlatformHelpers.addDataTestId(testId, "icon")), {
|
|
9987
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9988
|
+
className: classes.iconInner,
|
|
9989
|
+
children: renderIcon(icon)
|
|
9990
|
+
})
|
|
9991
|
+
})),
|
|
9992
|
+
isLoading && /* @__PURE__ */ jsx("div", _object_spread_props$K(_object_spread$R({
|
|
9993
|
+
className: clsx(classes.icon, classes.loader)
|
|
9994
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "loading")), {
|
|
9995
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9996
|
+
className: classes.iconInner,
|
|
9997
|
+
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
9998
|
+
tweakStyles: tweakPreloaderStyles
|
|
9999
|
+
})
|
|
10000
|
+
})
|
|
10001
|
+
}))
|
|
10002
|
+
]
|
|
10003
|
+
})
|
|
10004
|
+
]
|
|
10005
|
+
})
|
|
10006
|
+
]
|
|
10007
|
+
}));
|
|
10008
|
+
};
|
|
10009
|
+
var PADDING_WITH_UNITS = 8;
|
|
10010
|
+
var useStyles$H = createThemedStyles("Input", {
|
|
10011
|
+
inputContent: {
|
|
10012
|
+
height: "var(--control-height)",
|
|
9856
10013
|
padding: [
|
|
9857
10014
|
0,
|
|
9858
|
-
|
|
10015
|
+
"var(--control-padding)"
|
|
9859
10016
|
],
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
"
|
|
9865
|
-
|
|
10017
|
+
fontSize: 16,
|
|
10018
|
+
fontFamily: "inherit"
|
|
10019
|
+
},
|
|
10020
|
+
input: {
|
|
10021
|
+
extend: "inputContent",
|
|
10022
|
+
width: "100%",
|
|
10023
|
+
outline: "none",
|
|
10024
|
+
outlineStyle: "none",
|
|
10025
|
+
boxSizing: "border-box",
|
|
10026
|
+
border: "none",
|
|
10027
|
+
background: "none",
|
|
10028
|
+
color: "black",
|
|
10029
|
+
"&[readonly]": {
|
|
10030
|
+
cursor: "default"
|
|
10031
|
+
},
|
|
10032
|
+
"&::placeholder": {
|
|
10033
|
+
opacity: 1
|
|
9866
10034
|
},
|
|
9867
|
-
"
|
|
9868
|
-
|
|
10035
|
+
"&::-webkit-date-and-time-value": {
|
|
10036
|
+
textAlign: "left"
|
|
10037
|
+
},
|
|
10038
|
+
MozAppearance: "textfield",
|
|
10039
|
+
"&::-webkit-inner-spin-button,&::-webkit-outer-spin-button,&::-webkit-calendar-picker-indicator": {
|
|
10040
|
+
display: "none",
|
|
10041
|
+
WebkitAppearance: "none",
|
|
10042
|
+
margin: 0
|
|
9869
10043
|
}
|
|
9870
10044
|
},
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
withIcons: {
|
|
9878
|
-
paddingRight: 4
|
|
10045
|
+
autoSizeWrapper: {
|
|
10046
|
+
position: "relative",
|
|
10047
|
+
display: "flex",
|
|
10048
|
+
minWidth: 0,
|
|
10049
|
+
zIndex: 0,
|
|
10050
|
+
flexGrow: 1
|
|
9879
10051
|
},
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
fontSize: 12
|
|
10052
|
+
autoSized: {
|
|
10053
|
+
position: "absolute",
|
|
10054
|
+
top: 0,
|
|
10055
|
+
left: 0,
|
|
10056
|
+
height: "100%"
|
|
9886
10057
|
},
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
10058
|
+
withUnits: {
|
|
10059
|
+
extend: "autoSized",
|
|
10060
|
+
paddingRight: "calc(".concat(PADDING_WITH_UNITS, "px + var(--units-width) - 1px)"),
|
|
10061
|
+
"& + $fakeValue": {
|
|
10062
|
+
paddingRight: PADDING_WITH_UNITS
|
|
10063
|
+
}
|
|
9891
10064
|
},
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
10065
|
+
withLabel: {},
|
|
10066
|
+
withValue: {},
|
|
10067
|
+
fakeValue: {
|
|
10068
|
+
extend: "inputContent",
|
|
10069
|
+
visibility: "hidden",
|
|
10070
|
+
maxWidth: "100%",
|
|
10071
|
+
overflow: "hidden",
|
|
10072
|
+
minWidth: 8,
|
|
10073
|
+
whiteSpace: "nowrap"
|
|
9901
10074
|
},
|
|
9902
|
-
|
|
9903
|
-
|
|
9904
|
-
|
|
10075
|
+
units: {
|
|
10076
|
+
alignSelf: "center",
|
|
10077
|
+
paddingRight: "var(--control-padding)"
|
|
9905
10078
|
},
|
|
9906
|
-
|
|
9907
|
-
|
|
10079
|
+
focusedInput: {},
|
|
10080
|
+
disabledInput: {},
|
|
10081
|
+
invalidInput: {}
|
|
9908
10082
|
});
|
|
9909
10083
|
function _array_like_to_array$j(arr, len) {
|
|
9910
10084
|
if (len == null || len > arr.length)
|
|
@@ -9946,7 +10120,7 @@
|
|
|
9946
10120
|
});
|
|
9947
10121
|
};
|
|
9948
10122
|
}
|
|
9949
|
-
function _define_property$
|
|
10123
|
+
function _define_property$S(obj, key, value) {
|
|
9950
10124
|
if (key in obj) {
|
|
9951
10125
|
Object.defineProperty(obj, key, {
|
|
9952
10126
|
value,
|
|
@@ -9990,7 +10164,7 @@
|
|
|
9990
10164
|
function _non_iterable_rest$j() {
|
|
9991
10165
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
9992
10166
|
}
|
|
9993
|
-
function _object_spread$
|
|
10167
|
+
function _object_spread$Q(target) {
|
|
9994
10168
|
for (var i = 1; i < arguments.length; i++) {
|
|
9995
10169
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
9996
10170
|
var ownKeys2 = Object.keys(source);
|
|
@@ -10000,12 +10174,12 @@
|
|
|
10000
10174
|
}));
|
|
10001
10175
|
}
|
|
10002
10176
|
ownKeys2.forEach(function(key) {
|
|
10003
|
-
_define_property$
|
|
10177
|
+
_define_property$S(target, key, source[key]);
|
|
10004
10178
|
});
|
|
10005
10179
|
}
|
|
10006
10180
|
return target;
|
|
10007
10181
|
}
|
|
10008
|
-
function ownKeys$
|
|
10182
|
+
function ownKeys$J(object, enumerableOnly) {
|
|
10009
10183
|
var keys2 = Object.keys(object);
|
|
10010
10184
|
if (Object.getOwnPropertySymbols) {
|
|
10011
10185
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -10018,21 +10192,21 @@
|
|
|
10018
10192
|
}
|
|
10019
10193
|
return keys2;
|
|
10020
10194
|
}
|
|
10021
|
-
function _object_spread_props$
|
|
10195
|
+
function _object_spread_props$J(target, source) {
|
|
10022
10196
|
source = source != null ? source : {};
|
|
10023
10197
|
if (Object.getOwnPropertyDescriptors) {
|
|
10024
10198
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10025
10199
|
} else {
|
|
10026
|
-
ownKeys$
|
|
10200
|
+
ownKeys$J(Object(source)).forEach(function(key) {
|
|
10027
10201
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10028
10202
|
});
|
|
10029
10203
|
}
|
|
10030
10204
|
return target;
|
|
10031
10205
|
}
|
|
10032
|
-
function _object_without_properties$
|
|
10206
|
+
function _object_without_properties$i(source, excluded) {
|
|
10033
10207
|
if (source == null)
|
|
10034
10208
|
return {};
|
|
10035
|
-
var target = _object_without_properties_loose$
|
|
10209
|
+
var target = _object_without_properties_loose$i(source, excluded);
|
|
10036
10210
|
var key, i;
|
|
10037
10211
|
if (Object.getOwnPropertySymbols) {
|
|
10038
10212
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10047,7 +10221,7 @@
|
|
|
10047
10221
|
}
|
|
10048
10222
|
return target;
|
|
10049
10223
|
}
|
|
10050
|
-
function _object_without_properties_loose$
|
|
10224
|
+
function _object_without_properties_loose$i(source, excluded) {
|
|
10051
10225
|
if (source == null)
|
|
10052
10226
|
return {};
|
|
10053
10227
|
var target = {};
|
|
@@ -10179,38 +10353,32 @@
|
|
|
10179
10353
|
};
|
|
10180
10354
|
}
|
|
10181
10355
|
}
|
|
10182
|
-
var
|
|
10183
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value,
|
|
10356
|
+
var InputBase = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10357
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, placeholder = _param.placeholder, label = _param.label, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, autoComplete = _param.autoComplete, initialInputMode = _param.inputMode, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, isActive = _param.isActive, isClearable = _param.isClearable, isAutoSized = _param.isAutoSized, name = _param.name, tweakStyles = _param.tweakStyles, maxLength = _param.maxLength, shouldFocusOnMount = _param.shouldFocusOnMount, units = _param.units, testId = _param.testId, tabIndex = _param.tabIndex, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, onKeyDown = _param.onKeyDown, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, controlProps = _object_without_properties$i(_param, [
|
|
10184
10358
|
"value",
|
|
10185
|
-
"label",
|
|
10186
10359
|
"placeholder",
|
|
10360
|
+
"label",
|
|
10187
10361
|
"type",
|
|
10188
10362
|
"isDisabled",
|
|
10363
|
+
"autoComplete",
|
|
10364
|
+
"inputMode",
|
|
10189
10365
|
"isReadonly",
|
|
10190
|
-
"hasFloatingLabel",
|
|
10191
10366
|
"isInvalid",
|
|
10192
10367
|
"isActive",
|
|
10193
10368
|
"isClearable",
|
|
10194
|
-
"
|
|
10195
|
-
"
|
|
10196
|
-
"errorPosition",
|
|
10197
|
-
"inlineStyle",
|
|
10198
|
-
"border",
|
|
10199
|
-
"isRequired",
|
|
10200
|
-
"isLoading",
|
|
10201
|
-
"isAutoSizeable",
|
|
10202
|
-
"defaultSize",
|
|
10203
|
-
"iconType",
|
|
10204
|
-
"hasRequiredLabel",
|
|
10205
|
-
"data",
|
|
10369
|
+
"isAutoSized",
|
|
10370
|
+
"name",
|
|
10206
10371
|
"tweakStyles",
|
|
10372
|
+
"maxLength",
|
|
10207
10373
|
"shouldFocusOnMount",
|
|
10208
10374
|
"units",
|
|
10209
10375
|
"testId",
|
|
10376
|
+
"tabIndex",
|
|
10210
10377
|
"onChange",
|
|
10378
|
+
"onPaste",
|
|
10211
10379
|
"onFocus",
|
|
10212
10380
|
"onBlur",
|
|
10213
|
-
"
|
|
10381
|
+
"onKeyDown",
|
|
10214
10382
|
"mask",
|
|
10215
10383
|
"maskPlaceholder",
|
|
10216
10384
|
"alwaysShowMask",
|
|
@@ -10220,13 +10388,27 @@
|
|
|
10220
10388
|
var classes = useStyles$H({
|
|
10221
10389
|
theme: tweakStyles
|
|
10222
10390
|
});
|
|
10223
|
-
var
|
|
10391
|
+
var tweakControlWrapperStyles = useTweakStyles({
|
|
10224
10392
|
tweakStyles,
|
|
10225
|
-
className: "
|
|
10393
|
+
className: "tweakControlWrapper",
|
|
10226
10394
|
currentComponentName: "Input"
|
|
10227
10395
|
});
|
|
10228
10396
|
var _useState = _sliced_to_array$j(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
10397
|
+
var _useState1 = _sliced_to_array$j(React.useState(), 2), unitsWidth = _useState1[0], setUnitsWidth = _useState1[1];
|
|
10229
10398
|
var inputRef = React.useRef(null);
|
|
10399
|
+
var mergedRef = trueReactPlatformHelpers.mergeRefs([
|
|
10400
|
+
ref,
|
|
10401
|
+
inputRef
|
|
10402
|
+
]);
|
|
10403
|
+
var inputMode = initialInputMode !== null && initialInputMode !== void 0 ? initialInputMode : [
|
|
10404
|
+
"email",
|
|
10405
|
+
"tel",
|
|
10406
|
+
"url"
|
|
10407
|
+
].includes(type) ? type : void 0;
|
|
10408
|
+
var hasFocus = isFocused || isActive;
|
|
10409
|
+
var hasValue = trueReactPlatformHelpers.isNotEmpty(value) && value !== "";
|
|
10410
|
+
var hasUnits = trueReactPlatformHelpers.isReactNodeNotEmpty(units);
|
|
10411
|
+
var hasPlaceholder = (!trueReactPlatformHelpers.isReactNodeNotEmpty(label) || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10230
10412
|
var handleChange = function(event) {
|
|
10231
10413
|
onChange(event.currentTarget.value, event);
|
|
10232
10414
|
};
|
|
@@ -10238,9 +10420,9 @@
|
|
|
10238
10420
|
setFocused(false);
|
|
10239
10421
|
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
10240
10422
|
};
|
|
10241
|
-
var
|
|
10423
|
+
var handleInputClear = function() {
|
|
10242
10424
|
var _ref = _async_to_generator$5(function(event) {
|
|
10243
|
-
var
|
|
10425
|
+
var _inputRef_current;
|
|
10244
10426
|
return _ts_generator$5(this, function(_state) {
|
|
10245
10427
|
switch (_state.label) {
|
|
10246
10428
|
case 0:
|
|
@@ -10250,114 +10432,195 @@
|
|
|
10250
10432
|
];
|
|
10251
10433
|
case 1:
|
|
10252
10434
|
_state.sent();
|
|
10253
|
-
|
|
10254
|
-
(_input_current = input.current) === null || _input_current === void 0 ? void 0 : _input_current.focus();
|
|
10435
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
10255
10436
|
return [
|
|
10256
10437
|
2
|
|
10257
10438
|
];
|
|
10258
10439
|
}
|
|
10259
10440
|
});
|
|
10260
10441
|
});
|
|
10261
|
-
return function
|
|
10442
|
+
return function handleInputClear2(event) {
|
|
10262
10443
|
return _ref.apply(this, arguments);
|
|
10263
10444
|
};
|
|
10264
10445
|
}();
|
|
10265
|
-
var
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
|
|
10271
|
-
var isLabelActive = hasFocus && !isReadonly || hasValue || shouldAlwaysShowPlaceholder;
|
|
10272
|
-
var hasPlaceholder = (!hasLabel || isLabelActive) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
10273
|
-
var shouldShowUnits = (hasValue || isFocused && !hasPlaceholder) && hasUnits;
|
|
10446
|
+
var unitsRef = React.useCallback(function(node) {
|
|
10447
|
+
setUnitsWidth(node === null || node === void 0 ? void 0 : node.clientWidth);
|
|
10448
|
+
}, [
|
|
10449
|
+
units
|
|
10450
|
+
]);
|
|
10274
10451
|
var _obj2;
|
|
10275
|
-
var props =
|
|
10276
|
-
className: clsx(classes.input, (_obj2 = {}, _define_property$
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10452
|
+
var props = _object_spread$Q({
|
|
10453
|
+
className: clsx(classes.input, (_obj2 = {}, _define_property$S(_obj2, classes.withUnits, hasUnits), _define_property$S(_obj2, classes.withValue, hasValue), _define_property$S(_obj2, classes.withLabel, trueReactPlatformHelpers.isReactNodeNotEmpty(label)), _define_property$S(_obj2, classes.autoSized, isAutoSized), _define_property$S(_obj2, classes.focusedInput, isFocused), _define_property$S(_obj2, classes.disabledInput, isDisabled), _define_property$S(_obj2, classes.invalidInput, isInvalid), _obj2)),
|
|
10454
|
+
style: hasUnits && hasValue ? {
|
|
10455
|
+
"--units-width": "".concat(unitsWidth, "px")
|
|
10456
|
+
} : void 0,
|
|
10280
10457
|
value,
|
|
10281
10458
|
type,
|
|
10459
|
+
autoComplete,
|
|
10460
|
+
inputMode,
|
|
10282
10461
|
disabled: isDisabled,
|
|
10283
10462
|
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
10284
|
-
|
|
10463
|
+
name,
|
|
10464
|
+
maxLength,
|
|
10285
10465
|
readOnly: isReadonly,
|
|
10286
|
-
|
|
10466
|
+
tabIndex,
|
|
10467
|
+
onKeyDown,
|
|
10468
|
+
onPaste,
|
|
10469
|
+
onFocus: handleFocus,
|
|
10470
|
+
onBlur: handleBlur,
|
|
10471
|
+
onChange: handleChange
|
|
10472
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "input"));
|
|
10473
|
+
React.useEffect(function() {
|
|
10474
|
+
if (shouldFocusOnMount) {
|
|
10475
|
+
var _inputRef_current;
|
|
10476
|
+
(_inputRef_current = inputRef.current) === null || _inputRef_current === void 0 ? void 0 : _inputRef_current.focus();
|
|
10477
|
+
}
|
|
10478
|
+
}, []);
|
|
10479
|
+
var inputContent = /* @__PURE__ */ jsxs(Fragment, {
|
|
10480
|
+
children: [
|
|
10481
|
+
trueReactPlatformHelpers.isNotEmpty(mask) ? /* @__PURE__ */ jsx(InputMask, _object_spread$Q({
|
|
10482
|
+
ref: mergedRef,
|
|
10483
|
+
mask,
|
|
10484
|
+
maskPlaceholder,
|
|
10485
|
+
alwaysShowMask,
|
|
10486
|
+
beforeMaskedStateChange
|
|
10487
|
+
}, props)) : /* @__PURE__ */ jsx("input", _object_spread$Q({
|
|
10488
|
+
ref: mergedRef
|
|
10489
|
+
}, props)),
|
|
10490
|
+
(hasUnits || isAutoSized) && /* @__PURE__ */ jsx("div", {
|
|
10491
|
+
className: classes.fakeValue,
|
|
10492
|
+
children: value
|
|
10493
|
+
}),
|
|
10494
|
+
hasUnits && hasValue && /* @__PURE__ */ jsx("div", {
|
|
10495
|
+
className: classes.units,
|
|
10496
|
+
ref: unitsRef,
|
|
10497
|
+
children: units
|
|
10498
|
+
})
|
|
10499
|
+
]
|
|
10500
|
+
});
|
|
10501
|
+
return /* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$J(_object_spread$Q({
|
|
10502
|
+
label,
|
|
10503
|
+
isDisabled,
|
|
10504
|
+
isFocused: hasFocus,
|
|
10505
|
+
isInvalid,
|
|
10506
|
+
hasValue: hasValue || hasPlaceholder,
|
|
10507
|
+
isFullWidth: !isAutoSized,
|
|
10508
|
+
tweakStyles: tweakControlWrapperStyles,
|
|
10509
|
+
onClear: isClearable && hasValue ? handleInputClear : void 0
|
|
10510
|
+
}, controlProps), {
|
|
10511
|
+
children: hasUnits || isAutoSized ? /* @__PURE__ */ jsx("div", {
|
|
10512
|
+
className: classes.autoSizeWrapper,
|
|
10513
|
+
children: inputContent
|
|
10514
|
+
}) : inputContent
|
|
10515
|
+
}));
|
|
10516
|
+
});
|
|
10517
|
+
function _define_property$R(obj, key, value) {
|
|
10518
|
+
if (key in obj) {
|
|
10519
|
+
Object.defineProperty(obj, key, {
|
|
10520
|
+
value,
|
|
10521
|
+
enumerable: true,
|
|
10522
|
+
configurable: true,
|
|
10523
|
+
writable: true
|
|
10524
|
+
});
|
|
10525
|
+
} else {
|
|
10526
|
+
obj[key] = value;
|
|
10527
|
+
}
|
|
10528
|
+
return obj;
|
|
10529
|
+
}
|
|
10530
|
+
function _object_spread$P(target) {
|
|
10531
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10532
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
10533
|
+
var ownKeys2 = Object.keys(source);
|
|
10534
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
10535
|
+
ownKeys2 = ownKeys2.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
10536
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
10537
|
+
}));
|
|
10538
|
+
}
|
|
10539
|
+
ownKeys2.forEach(function(key) {
|
|
10540
|
+
_define_property$R(target, key, source[key]);
|
|
10541
|
+
});
|
|
10542
|
+
}
|
|
10543
|
+
return target;
|
|
10544
|
+
}
|
|
10545
|
+
function ownKeys$I(object, enumerableOnly) {
|
|
10546
|
+
var keys2 = Object.keys(object);
|
|
10547
|
+
if (Object.getOwnPropertySymbols) {
|
|
10548
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
10549
|
+
if (enumerableOnly) {
|
|
10550
|
+
symbols = symbols.filter(function(sym) {
|
|
10551
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10552
|
+
});
|
|
10553
|
+
}
|
|
10554
|
+
keys2.push.apply(keys2, symbols);
|
|
10555
|
+
}
|
|
10556
|
+
return keys2;
|
|
10557
|
+
}
|
|
10558
|
+
function _object_spread_props$I(target, source) {
|
|
10559
|
+
source = source != null ? source : {};
|
|
10560
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
10561
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
10562
|
+
} else {
|
|
10563
|
+
ownKeys$I(Object(source)).forEach(function(key) {
|
|
10564
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10565
|
+
});
|
|
10566
|
+
}
|
|
10567
|
+
return target;
|
|
10568
|
+
}
|
|
10569
|
+
function _object_without_properties$h(source, excluded) {
|
|
10570
|
+
if (source == null)
|
|
10571
|
+
return {};
|
|
10572
|
+
var target = _object_without_properties_loose$h(source, excluded);
|
|
10573
|
+
var key, i;
|
|
10574
|
+
if (Object.getOwnPropertySymbols) {
|
|
10575
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
10576
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
10577
|
+
key = sourceSymbolKeys[i];
|
|
10578
|
+
if (excluded.indexOf(key) >= 0)
|
|
10579
|
+
continue;
|
|
10580
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
10581
|
+
continue;
|
|
10582
|
+
target[key] = source[key];
|
|
10583
|
+
}
|
|
10584
|
+
}
|
|
10585
|
+
return target;
|
|
10586
|
+
}
|
|
10587
|
+
function _object_without_properties_loose$h(source, excluded) {
|
|
10588
|
+
if (source == null)
|
|
10589
|
+
return {};
|
|
10590
|
+
var target = {};
|
|
10591
|
+
var sourceKeys = Object.keys(source);
|
|
10592
|
+
var key, i;
|
|
10593
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
10594
|
+
key = sourceKeys[i];
|
|
10595
|
+
if (excluded.indexOf(key) >= 0)
|
|
10596
|
+
continue;
|
|
10597
|
+
target[key] = source[key];
|
|
10598
|
+
}
|
|
10599
|
+
return target;
|
|
10600
|
+
}
|
|
10601
|
+
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10602
|
+
var infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, isInvalid = _param.isInvalid, testId = _param.testId, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$h(_param, [
|
|
10603
|
+
"infoMessage",
|
|
10604
|
+
"errorMessage",
|
|
10605
|
+
"isInvalid",
|
|
10606
|
+
"testId",
|
|
10607
|
+
"tweakStyles"
|
|
10608
|
+
]);
|
|
10609
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
10610
|
+
tweakStyles,
|
|
10611
|
+
className: "tweakWithMessages"
|
|
10287
10612
|
});
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
}, props)) : /* @__PURE__ */ jsx(InputMask, _object_spread$P({
|
|
10300
|
-
ref: ref !== null && ref !== void 0 ? ref : inputRef,
|
|
10301
|
-
mask,
|
|
10302
|
-
maskPlaceholder,
|
|
10303
|
-
alwaysShowMask,
|
|
10304
|
-
beforeMaskedStateChange
|
|
10305
|
-
}, props)),
|
|
10306
|
-
hasLabel && /* @__PURE__ */ jsx("span", {
|
|
10307
|
-
className: clsx(classes.label, (_obj22 = {}, _define_property$R(_obj22, classes.invalidLabel, isInvalid), _define_property$R(_obj22, classes.requiredLabel, hasRequiredLabel && !isRequired), _define_property$R(_obj22, classes.activeLabel, isLabelActive), _define_property$R(_obj22, classes.floating, hasFloatingLabel), // Обсуждаемо, сделал так, потому что не хочется создавать новую пропсу, на каждый чих в стилях
|
|
10308
|
-
_define_property$R(_obj22, classes.floatingWithoutPadding, hasFloatingLabel && border === "bottom"), _obj22)),
|
|
10309
|
-
children: label
|
|
10310
|
-
}),
|
|
10311
|
-
shouldShowUnits && /* @__PURE__ */ jsxs("div", {
|
|
10312
|
-
className: clsx(classes.unitsWrapper, _define_property$R({}, classes.withFloatingLabel, hasFloatingLabel && hasLabel)),
|
|
10313
|
-
children: [
|
|
10314
|
-
/* @__PURE__ */ jsx("span", {
|
|
10315
|
-
className: classes.fakeValue,
|
|
10316
|
-
children: value
|
|
10317
|
-
}),
|
|
10318
|
-
/* @__PURE__ */ jsx("span", {
|
|
10319
|
-
className: classes.units,
|
|
10320
|
-
children: units
|
|
10321
|
-
})
|
|
10322
|
-
]
|
|
10323
|
-
}),
|
|
10324
|
-
hasControls && /* @__PURE__ */ jsxs("div", {
|
|
10325
|
-
className: classes.controls,
|
|
10326
|
-
children: [
|
|
10327
|
-
isLoading && /* @__PURE__ */ jsx("div", {
|
|
10328
|
-
className: clsx(classes.inputIcon, classes.loading),
|
|
10329
|
-
children: /* @__PURE__ */ jsx(ThemedPreloader, {
|
|
10330
|
-
tweakStyles: tweakPreloaderStyles
|
|
10331
|
-
})
|
|
10332
|
-
}),
|
|
10333
|
-
!isDisabled && hasClearIcon && /* @__PURE__ */ jsx("div", {
|
|
10334
|
-
className: clsx(classes.clearIcon, classes.activeIcon),
|
|
10335
|
-
onMouseDown: function(event) {
|
|
10336
|
-
return event.preventDefault();
|
|
10337
|
-
},
|
|
10338
|
-
onClick: handleOnInputClear,
|
|
10339
|
-
children: /* @__PURE__ */ jsx(Icon, {
|
|
10340
|
-
type: "close"
|
|
10341
|
-
})
|
|
10342
|
-
}),
|
|
10343
|
-
trueReactPlatformHelpers.isReactNodeNotEmpty(iconType) && /* @__PURE__ */ jsx("div", {
|
|
10344
|
-
className: clsx(classes.inputIcon, _define_property$R({}, classes.activeIcon, !isDisabled && onIconClick !== void 0)),
|
|
10345
|
-
onClick: !isDisabled ? onIconClick : void 0,
|
|
10346
|
-
children: renderIcon(iconType)
|
|
10347
|
-
})
|
|
10348
|
-
]
|
|
10349
|
-
})
|
|
10350
|
-
]
|
|
10351
|
-
})),
|
|
10352
|
-
trueReactPlatformHelpers.isStringNotEmpty(infoMessage) && /* @__PURE__ */ jsx("div", {
|
|
10353
|
-
className: classes.info,
|
|
10354
|
-
children: infoMessage
|
|
10355
|
-
}),
|
|
10356
|
-
trueReactPlatformHelpers.isStringNotEmpty(errorMessage) && /* @__PURE__ */ jsx("div", {
|
|
10357
|
-
className: clsx(classes.error, classes["error-".concat(errorPosition)]),
|
|
10358
|
-
children: errorMessage
|
|
10359
|
-
})
|
|
10360
|
-
]
|
|
10613
|
+
return /* @__PURE__ */ jsx(WithMessages, {
|
|
10614
|
+
errorMessage,
|
|
10615
|
+
infoMessage,
|
|
10616
|
+
testId,
|
|
10617
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
10618
|
+
children: /* @__PURE__ */ jsx(InputBase, _object_spread_props$I(_object_spread$P({}, inputProps), {
|
|
10619
|
+
ref,
|
|
10620
|
+
testId,
|
|
10621
|
+
tweakStyles,
|
|
10622
|
+
isInvalid
|
|
10623
|
+
}))
|
|
10361
10624
|
});
|
|
10362
10625
|
});
|
|
10363
10626
|
var EMPTY_DATE_INPUT_VALUE = "__.__.____";
|
|
@@ -10422,10 +10685,10 @@
|
|
|
10422
10685
|
}
|
|
10423
10686
|
return target;
|
|
10424
10687
|
}
|
|
10425
|
-
function _object_without_properties$
|
|
10688
|
+
function _object_without_properties$g(source, excluded) {
|
|
10426
10689
|
if (source == null)
|
|
10427
10690
|
return {};
|
|
10428
|
-
var target = _object_without_properties_loose$
|
|
10691
|
+
var target = _object_without_properties_loose$g(source, excluded);
|
|
10429
10692
|
var key, i;
|
|
10430
10693
|
if (Object.getOwnPropertySymbols) {
|
|
10431
10694
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10440,7 +10703,7 @@
|
|
|
10440
10703
|
}
|
|
10441
10704
|
return target;
|
|
10442
10705
|
}
|
|
10443
|
-
function _object_without_properties_loose$
|
|
10706
|
+
function _object_without_properties_loose$g(source, excluded) {
|
|
10444
10707
|
if (source == null)
|
|
10445
10708
|
return {};
|
|
10446
10709
|
var target = {};
|
|
@@ -10455,7 +10718,7 @@
|
|
|
10455
10718
|
return target;
|
|
10456
10719
|
}
|
|
10457
10720
|
var DateInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
10458
|
-
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$
|
|
10721
|
+
var date = _param.date, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? "" : _param_startDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? "" : _param_endDate, mask = _param.mask, className = _param.className, placeholder = _param.placeholder, data = _param.data, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, tweakStyles = _param.tweakStyles, onClick = _param.onClick, onChange = _param.onChange, inputProps = _object_without_properties$g(_param, [
|
|
10459
10722
|
"date",
|
|
10460
10723
|
"startDate",
|
|
10461
10724
|
"endDate",
|
|
@@ -10511,7 +10774,7 @@
|
|
|
10511
10774
|
}));
|
|
10512
10775
|
});
|
|
10513
10776
|
const reactDatepicker = "";
|
|
10514
|
-
var
|
|
10777
|
+
var Z_INDEX$1 = dimensions.Z_INDEX;
|
|
10515
10778
|
var useStyles$F = createThemedStyles("SearchInput", {
|
|
10516
10779
|
root: {
|
|
10517
10780
|
position: "relative"
|
|
@@ -10523,33 +10786,26 @@
|
|
|
10523
10786
|
left: 12,
|
|
10524
10787
|
height: "100%",
|
|
10525
10788
|
width: 20,
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
},
|
|
10529
|
-
iconClickable: {
|
|
10530
|
-
cursor: "pointer"
|
|
10789
|
+
color: colors.GREY_ACTIVE,
|
|
10790
|
+
zIndex: Z_INDEX$1.CONTROL_FOCUS + 1
|
|
10531
10791
|
}
|
|
10532
10792
|
});
|
|
10533
10793
|
var inputStyles$4 = {
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10794
|
+
tweakControlWrapper: {
|
|
10795
|
+
controlWrapper: {
|
|
10796
|
+
borderColor: "transparent",
|
|
10797
|
+
borderRadius: 18,
|
|
10798
|
+
paddingLeft: 0,
|
|
10799
|
+
transitionProperty: "background-color, border-color"
|
|
10800
|
+
},
|
|
10801
|
+
focused: {
|
|
10802
|
+
backgroundColor: colors.CLASSIC_WHITE,
|
|
10803
|
+
borderColor: colors.BORDER_MAIN
|
|
10804
|
+
}
|
|
10545
10805
|
},
|
|
10546
|
-
|
|
10806
|
+
inputContent: {
|
|
10547
10807
|
fontSize: 14,
|
|
10548
|
-
paddingLeft:
|
|
10549
|
-
},
|
|
10550
|
-
label: {
|
|
10551
|
-
left: LEFT_PADDING,
|
|
10552
|
-
fontSize: 14
|
|
10808
|
+
paddingLeft: 44
|
|
10553
10809
|
}
|
|
10554
10810
|
};
|
|
10555
10811
|
function _define_property$P(obj, key, value) {
|
|
@@ -10604,10 +10860,10 @@
|
|
|
10604
10860
|
}
|
|
10605
10861
|
return target;
|
|
10606
10862
|
}
|
|
10607
|
-
function _object_without_properties$
|
|
10863
|
+
function _object_without_properties$f(source, excluded) {
|
|
10608
10864
|
if (source == null)
|
|
10609
10865
|
return {};
|
|
10610
|
-
var target = _object_without_properties_loose$
|
|
10866
|
+
var target = _object_without_properties_loose$f(source, excluded);
|
|
10611
10867
|
var key, i;
|
|
10612
10868
|
if (Object.getOwnPropertySymbols) {
|
|
10613
10869
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10622,7 +10878,7 @@
|
|
|
10622
10878
|
}
|
|
10623
10879
|
return target;
|
|
10624
10880
|
}
|
|
10625
|
-
function _object_without_properties_loose$
|
|
10881
|
+
function _object_without_properties_loose$f(source, excluded) {
|
|
10626
10882
|
if (source == null)
|
|
10627
10883
|
return {};
|
|
10628
10884
|
var target = {};
|
|
@@ -10637,12 +10893,13 @@
|
|
|
10637
10893
|
return target;
|
|
10638
10894
|
}
|
|
10639
10895
|
var SearchInput = function(_param) {
|
|
10640
|
-
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles,
|
|
10896
|
+
var _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? true : _param_isClearable, tweakStyles = _param.tweakStyles, placeholder = _param.placeholder, value = _param.value, testId = _param.testId, data = _param.data, props = _object_without_properties$f(_param, [
|
|
10641
10897
|
"isClearable",
|
|
10642
10898
|
"tweakStyles",
|
|
10899
|
+
"placeholder",
|
|
10900
|
+
"value",
|
|
10643
10901
|
"testId",
|
|
10644
|
-
"data"
|
|
10645
|
-
"onSearchIconClick"
|
|
10902
|
+
"data"
|
|
10646
10903
|
]);
|
|
10647
10904
|
var classes = useStyles$F({
|
|
10648
10905
|
theme: tweakStyles
|
|
@@ -10655,23 +10912,20 @@
|
|
|
10655
10912
|
});
|
|
10656
10913
|
return /* @__PURE__ */ jsxs("div", _object_spread_props$G(_object_spread$N({
|
|
10657
10914
|
className: classes.root
|
|
10658
|
-
}, trueReactPlatformHelpers.addDataAttributes(data
|
|
10915
|
+
}, trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
10659
10916
|
children: [
|
|
10660
|
-
/* @__PURE__ */ jsx("div",
|
|
10661
|
-
className:
|
|
10662
|
-
}, trueReactPlatformHelpers.addClickHandler(onSearchIconClick)), {
|
|
10917
|
+
/* @__PURE__ */ jsx("div", {
|
|
10918
|
+
className: classes.icon,
|
|
10663
10919
|
children: /* @__PURE__ */ jsx(Icon, {
|
|
10664
10920
|
type: "search"
|
|
10665
10921
|
})
|
|
10666
|
-
})
|
|
10922
|
+
}),
|
|
10667
10923
|
/* @__PURE__ */ jsx(Input, _object_spread$N({
|
|
10668
|
-
|
|
10924
|
+
value,
|
|
10925
|
+
placeholder,
|
|
10669
10926
|
isClearable,
|
|
10670
|
-
isActive: props.value !== "" && props.value !== void 0,
|
|
10671
10927
|
testId: trueReactPlatformHelpers.getTestId(testId, "input"),
|
|
10672
|
-
tweakStyles: tweakInputStyles
|
|
10673
|
-
hasFloatingLabel: false,
|
|
10674
|
-
label: props.placeholder
|
|
10928
|
+
tweakStyles: tweakInputStyles
|
|
10675
10929
|
}, props))
|
|
10676
10930
|
]
|
|
10677
10931
|
}));
|
|
@@ -10761,10 +11015,10 @@
|
|
|
10761
11015
|
}
|
|
10762
11016
|
return target;
|
|
10763
11017
|
}
|
|
10764
|
-
function _object_without_properties$
|
|
11018
|
+
function _object_without_properties$e(source, excluded) {
|
|
10765
11019
|
if (source == null)
|
|
10766
11020
|
return {};
|
|
10767
|
-
var target = _object_without_properties_loose$
|
|
11021
|
+
var target = _object_without_properties_loose$e(source, excluded);
|
|
10768
11022
|
var key, i;
|
|
10769
11023
|
if (Object.getOwnPropertySymbols) {
|
|
10770
11024
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -10779,7 +11033,7 @@
|
|
|
10779
11033
|
}
|
|
10780
11034
|
return target;
|
|
10781
11035
|
}
|
|
10782
|
-
function _object_without_properties_loose$
|
|
11036
|
+
function _object_without_properties_loose$e(source, excluded) {
|
|
10783
11037
|
if (source == null)
|
|
10784
11038
|
return {};
|
|
10785
11039
|
var target = {};
|
|
@@ -10882,7 +11136,7 @@
|
|
|
10882
11136
|
_this_props.active;
|
|
10883
11137
|
var elementType = _this_props.elementType, children = _this_props.children;
|
|
10884
11138
|
_this_props.options;
|
|
10885
|
-
var wrapperProps = _object_without_properties$
|
|
11139
|
+
var wrapperProps = _object_without_properties$e(_this_props, [
|
|
10886
11140
|
"active",
|
|
10887
11141
|
"elementType",
|
|
10888
11142
|
"children",
|
|
@@ -11244,6 +11498,7 @@
|
|
|
11244
11498
|
return trueReactPlatformHelpers.isNotEmpty(value === null || value === void 0 ? void 0 : value.id) ? String(value.id) : convertValueToString(value);
|
|
11245
11499
|
};
|
|
11246
11500
|
};
|
|
11501
|
+
var CONTROL = dimensions.CONTROL, Z_INDEX = dimensions.Z_INDEX;
|
|
11247
11502
|
var useStyles$D = createThemedStyles("Select", {
|
|
11248
11503
|
root: {
|
|
11249
11504
|
width: "100%",
|
|
@@ -11263,7 +11518,8 @@
|
|
|
11263
11518
|
},
|
|
11264
11519
|
withoutPopper: {
|
|
11265
11520
|
position: "absolute",
|
|
11266
|
-
top: "
|
|
11521
|
+
top: "100%",
|
|
11522
|
+
paddingTop: 4
|
|
11267
11523
|
},
|
|
11268
11524
|
listWrapperInBody: {
|
|
11269
11525
|
minWidth: "auto",
|
|
@@ -11273,16 +11529,17 @@
|
|
|
11273
11529
|
arrow: {
|
|
11274
11530
|
position: "absolute",
|
|
11275
11531
|
right: 12,
|
|
11276
|
-
top:
|
|
11532
|
+
top: "50%",
|
|
11277
11533
|
width: 20,
|
|
11278
11534
|
height: 20,
|
|
11279
11535
|
cursor: "pointer",
|
|
11280
|
-
|
|
11536
|
+
transform: "translateY(-50%)",
|
|
11281
11537
|
transition: animations.defaultTransition,
|
|
11282
|
-
transitionProperty: "transform"
|
|
11538
|
+
transitionProperty: "transform",
|
|
11539
|
+
zIndex: Z_INDEX.CONTROL_FOCUS + 1
|
|
11283
11540
|
},
|
|
11284
11541
|
activeArrow: {
|
|
11285
|
-
transform: "rotate(180deg)"
|
|
11542
|
+
transform: "translateY(-50%) rotate(180deg)"
|
|
11286
11543
|
},
|
|
11287
11544
|
disabled: {
|
|
11288
11545
|
"& $arrow": {
|
|
@@ -11295,21 +11552,32 @@
|
|
|
11295
11552
|
}
|
|
11296
11553
|
},
|
|
11297
11554
|
icon: {
|
|
11298
|
-
width:
|
|
11299
|
-
height:
|
|
11555
|
+
width: CONTROL.ICON_INNER_SIZE,
|
|
11556
|
+
height: CONTROL.ICON_INNER_SIZE
|
|
11557
|
+
},
|
|
11558
|
+
iconWrapper: {
|
|
11559
|
+
display: "flex",
|
|
11560
|
+
alignItems: "center"
|
|
11300
11561
|
}
|
|
11301
11562
|
});
|
|
11302
11563
|
var baseInputStyles = {
|
|
11303
|
-
|
|
11564
|
+
inputContent: {
|
|
11304
11565
|
paddingRight: 32
|
|
11305
11566
|
},
|
|
11306
|
-
|
|
11307
|
-
"&
|
|
11308
|
-
cursor: "
|
|
11567
|
+
input: {
|
|
11568
|
+
"&[readonly]": {
|
|
11569
|
+
cursor: "pointer"
|
|
11309
11570
|
}
|
|
11310
11571
|
},
|
|
11311
|
-
|
|
11312
|
-
|
|
11572
|
+
tweakControlWrapper: {
|
|
11573
|
+
controls: {
|
|
11574
|
+
paddingRight: 40
|
|
11575
|
+
},
|
|
11576
|
+
icon: {
|
|
11577
|
+
"&:last-child": {
|
|
11578
|
+
paddingRight: 0
|
|
11579
|
+
}
|
|
11580
|
+
}
|
|
11313
11581
|
}
|
|
11314
11582
|
};
|
|
11315
11583
|
var readonlyInputBaseStyles = {
|
|
@@ -11317,16 +11585,8 @@
|
|
|
11317
11585
|
cursor: "pointer"
|
|
11318
11586
|
}
|
|
11319
11587
|
};
|
|
11320
|
-
var multiSelectInputBaseStyles = {
|
|
11321
|
-
inputIcon: {
|
|
11322
|
-
"&:not($loading)": {
|
|
11323
|
-
width: "auto"
|
|
11324
|
-
}
|
|
11325
|
-
}
|
|
11326
|
-
};
|
|
11327
11588
|
var readonlyInputStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
|
|
11328
|
-
var
|
|
11329
|
-
var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles, multiSelectInputBaseStyles);
|
|
11589
|
+
var readonlyMultiSelectStyles = trueReactPlatformHelpers.mergeStyles(baseInputStyles, readonlyInputBaseStyles);
|
|
11330
11590
|
var getInputStyles = function(param) {
|
|
11331
11591
|
var hasReadonlyInput = param.hasReadonlyInput, isMultiSelect = param.isMultiSelect;
|
|
11332
11592
|
if (hasReadonlyInput && isMultiSelect) {
|
|
@@ -11335,21 +11595,8 @@
|
|
|
11335
11595
|
if (hasReadonlyInput && !isMultiSelect) {
|
|
11336
11596
|
return readonlyInputStyles;
|
|
11337
11597
|
}
|
|
11338
|
-
if (!hasReadonlyInput && isMultiSelect) {
|
|
11339
|
-
return multiSelectInputStyles;
|
|
11340
|
-
}
|
|
11341
11598
|
return baseInputStyles;
|
|
11342
11599
|
};
|
|
11343
|
-
var searchInputStyles$3 = {
|
|
11344
|
-
tweakInput: {
|
|
11345
|
-
inputWrapper: {
|
|
11346
|
-
height: 48,
|
|
11347
|
-
borderRadius: 0,
|
|
11348
|
-
border: "none",
|
|
11349
|
-
backgroundColor: "transparent"
|
|
11350
|
-
}
|
|
11351
|
-
}
|
|
11352
|
-
};
|
|
11353
11600
|
function _array_like_to_array$i(arr, len) {
|
|
11354
11601
|
if (len == null || len > arr.length)
|
|
11355
11602
|
len = arr.length;
|
|
@@ -11484,10 +11731,10 @@
|
|
|
11484
11731
|
}
|
|
11485
11732
|
return target;
|
|
11486
11733
|
}
|
|
11487
|
-
function _object_without_properties$
|
|
11734
|
+
function _object_without_properties$d(source, excluded) {
|
|
11488
11735
|
if (source == null)
|
|
11489
11736
|
return {};
|
|
11490
|
-
var target = _object_without_properties_loose$
|
|
11737
|
+
var target = _object_without_properties_loose$d(source, excluded);
|
|
11491
11738
|
var key, i;
|
|
11492
11739
|
if (Object.getOwnPropertySymbols) {
|
|
11493
11740
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -11502,7 +11749,7 @@
|
|
|
11502
11749
|
}
|
|
11503
11750
|
return target;
|
|
11504
11751
|
}
|
|
11505
|
-
function _object_without_properties_loose$
|
|
11752
|
+
function _object_without_properties_loose$d(source, excluded) {
|
|
11506
11753
|
if (source == null)
|
|
11507
11754
|
return {};
|
|
11508
11755
|
var target = {};
|
|
@@ -11639,7 +11886,7 @@
|
|
|
11639
11886
|
}
|
|
11640
11887
|
function Select(props) {
|
|
11641
11888
|
var _input_current;
|
|
11642
|
-
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput,
|
|
11889
|
+
var options = props.options, isMultiSelect = props.isMultiSelect, value = props.value, header = props.header, footer = props.footer, defaultOptionLabel = props.defaultOptionLabel, allOptionsLabel = props.allOptionsLabel, _props_debounceTime = props.debounceTime, debounceTime = _props_debounceTime === void 0 ? 400 : _props_debounceTime, _props_optionsMode = props.optionsMode, optionsMode = _props_optionsMode === void 0 ? "normal" : _props_optionsMode, noMatchesLabel = props.noMatchesLabel, loadingLabel = props.loadingLabel, tweakStyles = props.tweakStyles, testId = props.testId, isActive = props.isActive, isReadonly = props.isReadonly, isDisabled = props.isDisabled, dropdownOptions = props.dropdownOptions, _props_minSymbolsCountToOpenList = props.minSymbolsCountToOpenList, minSymbolsCountToOpenList = _props_minSymbolsCountToOpenList === void 0 ? 0 : _props_minSymbolsCountToOpenList, _props_dropdownIcon = props.dropdownIcon, dropdownIcon = _props_dropdownIcon === void 0 ? "chevron-down" : _props_dropdownIcon, _props_shouldScrollToList = props.shouldScrollToList, shouldScrollToList = _props_shouldScrollToList === void 0 ? true : _props_shouldScrollToList, searchInput = props.searchInput, icon = props.icon, onChange = props.onChange, onFocus = props.onFocus, onBlur = props.onBlur, onType = props.onType, onOpen = props.onOpen, _props_isOptionDisabled = props.isOptionDisabled, isOptionDisabled = _props_isOptionDisabled === void 0 ? defaultIsOptionDisabled : _props_isOptionDisabled, _props_compareValuesOnChange = props.compareValuesOnChange, compareValuesOnChange = _props_compareValuesOnChange === void 0 ? defaultCompareFunction : _props_compareValuesOnChange, _props_convertValueToString = props.convertValueToString, convertValueToString = _props_convertValueToString === void 0 ? defaultConvertFunction$2 : _props_convertValueToString, convertValueToId = props.convertValueToId, convertValueToReactNode = props.convertValueToReactNode, optionsFilter = props.optionsFilter, infoMessage = props.infoMessage, errorMessage = props.errorMessage, inputProps = _object_without_properties$d(props, [
|
|
11643
11890
|
"options",
|
|
11644
11891
|
"isMultiSelect",
|
|
11645
11892
|
"value",
|
|
@@ -11661,7 +11908,7 @@
|
|
|
11661
11908
|
"dropdownIcon",
|
|
11662
11909
|
"shouldScrollToList",
|
|
11663
11910
|
"searchInput",
|
|
11664
|
-
"
|
|
11911
|
+
"icon",
|
|
11665
11912
|
"onChange",
|
|
11666
11913
|
"onFocus",
|
|
11667
11914
|
"onBlur",
|
|
@@ -11672,16 +11919,23 @@
|
|
|
11672
11919
|
"convertValueToString",
|
|
11673
11920
|
"convertValueToId",
|
|
11674
11921
|
"convertValueToReactNode",
|
|
11675
|
-
"optionsFilter"
|
|
11922
|
+
"optionsFilter",
|
|
11923
|
+
"infoMessage",
|
|
11924
|
+
"errorMessage"
|
|
11676
11925
|
]);
|
|
11677
11926
|
var classes = useStyles$D({
|
|
11678
11927
|
theme: tweakStyles
|
|
11679
11928
|
});
|
|
11680
|
-
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$
|
|
11929
|
+
var _ref = searchInput !== null && searchInput !== void 0 ? searchInput : {}, tmp = _ref.shouldRenderInList, shouldRenderSearchInputInList = tmp === void 0 ? false : tmp, searchInputProps = _object_without_properties$d(_ref, [
|
|
11681
11930
|
"shouldRenderInList"
|
|
11682
11931
|
]);
|
|
11683
11932
|
var hasSearchInputInList = optionsMode !== "normal" && shouldRenderSearchInputInList;
|
|
11684
11933
|
var hasReadonlyInput = isReadonly || optionsMode === "normal" || shouldRenderSearchInputInList;
|
|
11934
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
11935
|
+
tweakStyles,
|
|
11936
|
+
className: "tweakWithMessages",
|
|
11937
|
+
currentComponentName: "Select"
|
|
11938
|
+
});
|
|
11685
11939
|
var tweakInputStyles = useTweakStyles({
|
|
11686
11940
|
innerStyles: getInputStyles({
|
|
11687
11941
|
hasReadonlyInput,
|
|
@@ -11692,7 +11946,6 @@
|
|
|
11692
11946
|
currentComponentName: "Select"
|
|
11693
11947
|
});
|
|
11694
11948
|
var tweakSearchInputStyles = useTweakStyles({
|
|
11695
|
-
innerStyles: searchInputStyles$3,
|
|
11696
11949
|
tweakStyles,
|
|
11697
11950
|
className: "tweakSearchInput",
|
|
11698
11951
|
currentComponentName: "Select"
|
|
@@ -11772,22 +12025,10 @@
|
|
|
11772
12025
|
convertValueToId,
|
|
11773
12026
|
convertValueToString
|
|
11774
12027
|
]);
|
|
11775
|
-
var getDropdownOffset = function() {
|
|
11776
|
-
var _input_current_parentElement2;
|
|
11777
|
-
if (trueReactPlatformHelpers.isEmpty(input.current) || inputProps.errorPosition === "top") {
|
|
11778
|
-
return 0;
|
|
11779
|
-
}
|
|
11780
|
-
var _input_current_parentElement_offsetHeight;
|
|
11781
|
-
return (_input_current_parentElement_offsetHeight = (_input_current_parentElement2 = input.current.parentElement) === null || _input_current_parentElement2 === void 0 ? void 0 : _input_current_parentElement2.offsetHeight) !== null && _input_current_parentElement_offsetHeight !== void 0 ? _input_current_parentElement_offsetHeight : 0;
|
|
11782
|
-
};
|
|
11783
12028
|
var closeList = React.useCallback(function() {
|
|
11784
12029
|
setIsListOpen(false);
|
|
11785
12030
|
setSearchValue("");
|
|
11786
12031
|
setShouldShowDefaultOption(true);
|
|
11787
|
-
if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
|
|
11788
|
-
var _root_current;
|
|
11789
|
-
(_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.removeProperty("--dropdown-offset");
|
|
11790
|
-
}
|
|
11791
12032
|
}, [
|
|
11792
12033
|
dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper
|
|
11793
12034
|
]);
|
|
@@ -11799,15 +12040,8 @@
|
|
|
11799
12040
|
onBlur
|
|
11800
12041
|
]);
|
|
11801
12042
|
var handleListOpen = function() {
|
|
11802
|
-
if (isReadonly) {
|
|
11803
|
-
return;
|
|
11804
|
-
}
|
|
11805
|
-
if (!isListOpen) {
|
|
12043
|
+
if (!isReadonly && !isListOpen) {
|
|
11806
12044
|
setIsListOpen(true);
|
|
11807
|
-
if (!(dropdownOptions === null || dropdownOptions === void 0 ? void 0 : dropdownOptions.shouldUsePopper)) {
|
|
11808
|
-
var _root_current;
|
|
11809
|
-
(_root_current = root2.current) === null || _root_current === void 0 ? void 0 : _root_current.style.setProperty("--dropdown-offset", "".concat(getDropdownOffset(), "px"));
|
|
11810
|
-
}
|
|
11811
12045
|
}
|
|
11812
12046
|
};
|
|
11813
12047
|
var handleFocus = function(event) {
|
|
@@ -12086,7 +12320,8 @@
|
|
|
12086
12320
|
onToggleCheckbox: handleToggleOptionCheckbox
|
|
12087
12321
|
})
|
|
12088
12322
|
}));
|
|
12089
|
-
var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(
|
|
12323
|
+
var multiSelectCounterWithIcon = shouldShowMultiSelectCounter || trueReactPlatformHelpers.isNotEmpty(icon) ? /* @__PURE__ */ jsxs("div", {
|
|
12324
|
+
className: classes.iconWrapper,
|
|
12090
12325
|
children: [
|
|
12091
12326
|
shouldShowMultiSelectCounter && /* @__PURE__ */ jsxs("div", {
|
|
12092
12327
|
className: classes.counter,
|
|
@@ -12096,59 +12331,62 @@
|
|
|
12096
12331
|
")"
|
|
12097
12332
|
]
|
|
12098
12333
|
}),
|
|
12099
|
-
trueReactPlatformHelpers.isNotEmpty(
|
|
12334
|
+
trueReactPlatformHelpers.isNotEmpty(icon) && /* @__PURE__ */ jsx("div", {
|
|
12100
12335
|
className: classes.icon,
|
|
12101
|
-
children: renderIcon(
|
|
12336
|
+
children: renderIcon(icon)
|
|
12102
12337
|
})
|
|
12103
12338
|
]
|
|
12104
12339
|
}) : void 0;
|
|
12105
|
-
return /* @__PURE__ */
|
|
12106
|
-
|
|
12107
|
-
|
|
12108
|
-
|
|
12109
|
-
children:
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12113
|
-
|
|
12114
|
-
|
|
12115
|
-
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
|
|
12119
|
-
|
|
12120
|
-
|
|
12121
|
-
|
|
12122
|
-
|
|
12123
|
-
|
|
12124
|
-
|
|
12125
|
-
|
|
12126
|
-
|
|
12127
|
-
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
},
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12340
|
+
return /* @__PURE__ */ jsx(WithMessages, {
|
|
12341
|
+
errorMessage,
|
|
12342
|
+
infoMessage,
|
|
12343
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
12344
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
12345
|
+
className: classes.root,
|
|
12346
|
+
onKeyDown: handleKeyDown,
|
|
12347
|
+
ref: root2,
|
|
12348
|
+
children: [
|
|
12349
|
+
/* @__PURE__ */ jsxs("div", {
|
|
12350
|
+
className: clsx(classes.inputWrapper, isDisabled && classes.disabled),
|
|
12351
|
+
onClick: isDisabled || isReadonly ? void 0 : handleOnClick,
|
|
12352
|
+
ref: inputWrapper,
|
|
12353
|
+
children: [
|
|
12354
|
+
/* @__PURE__ */ jsx(InputBase, _object_spread$I({
|
|
12355
|
+
value: searchValue !== "" && !shouldRenderSearchInputInList ? searchValue : showedStringValue,
|
|
12356
|
+
onChange: handleInputChange,
|
|
12357
|
+
isActive: isListOpen || isActive,
|
|
12358
|
+
isReadonly: hasReadonlyInput,
|
|
12359
|
+
onFocus: handleFocus,
|
|
12360
|
+
onBlur: handleBlur,
|
|
12361
|
+
isDisabled,
|
|
12362
|
+
ref: input,
|
|
12363
|
+
isLoading: areOptionsLoading,
|
|
12364
|
+
tweakStyles: tweakInputStyles,
|
|
12365
|
+
testId,
|
|
12366
|
+
icon: isMultiSelect ? multiSelectCounterWithIcon : icon
|
|
12367
|
+
}, inputProps)),
|
|
12368
|
+
/* @__PURE__ */ jsx("div", {
|
|
12369
|
+
onMouseDown: function(event) {
|
|
12370
|
+
event.preventDefault();
|
|
12371
|
+
},
|
|
12372
|
+
onClick: onArrowClick,
|
|
12373
|
+
className: clsx(classes.arrow, isOpen && classes.activeArrow),
|
|
12374
|
+
children: renderIcon(dropdownIcon)
|
|
12375
|
+
})
|
|
12376
|
+
]
|
|
12377
|
+
}),
|
|
12378
|
+
shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
12379
|
+
container: shouldRenderInBody ? document.body : inputWrapper.current,
|
|
12380
|
+
children: /* @__PURE__ */ jsx(Fragment, {
|
|
12381
|
+
children: listEl
|
|
12136
12382
|
})
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
shouldUsePopper ? /* @__PURE__ */ jsx(reactOverlays.Portal, {
|
|
12140
|
-
container: shouldRenderInBody ? document.body : inputWrapper.current,
|
|
12141
|
-
children: /* @__PURE__ */ jsx(Fragment, {
|
|
12142
|
-
children: listEl
|
|
12383
|
+
}) : /* @__PURE__ */ jsx(Fragment, {
|
|
12384
|
+
children: isOpen && listEl
|
|
12143
12385
|
})
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
})
|
|
12147
|
-
]
|
|
12386
|
+
]
|
|
12387
|
+
})
|
|
12148
12388
|
});
|
|
12149
12389
|
}
|
|
12150
|
-
var SELECT_PADDING_LEFT = 12;
|
|
12151
|
-
var SELECT_PADDING_RIGHT = 24;
|
|
12152
12390
|
var useStyles$C = createThemedStyles("DatePickerHeader", {
|
|
12153
12391
|
btn: {
|
|
12154
12392
|
width: 36,
|
|
@@ -12160,26 +12398,6 @@
|
|
|
12160
12398
|
cursor: "pointer",
|
|
12161
12399
|
marginLeft: 8
|
|
12162
12400
|
},
|
|
12163
|
-
select: {
|
|
12164
|
-
height: 35,
|
|
12165
|
-
fontSize: 16,
|
|
12166
|
-
position: "relative"
|
|
12167
|
-
},
|
|
12168
|
-
selectValue: {
|
|
12169
|
-
fontSize: 16,
|
|
12170
|
-
fontWeight: "bold",
|
|
12171
|
-
color: "transparent",
|
|
12172
|
-
pointerEvents: "none",
|
|
12173
|
-
paddingLeft: SELECT_PADDING_LEFT,
|
|
12174
|
-
paddingRight: SELECT_PADDING_RIGHT
|
|
12175
|
-
},
|
|
12176
|
-
selectControl: {
|
|
12177
|
-
position: "absolute",
|
|
12178
|
-
top: 0,
|
|
12179
|
-
left: 0,
|
|
12180
|
-
width: "100%",
|
|
12181
|
-
height: "100%"
|
|
12182
|
-
},
|
|
12183
12401
|
header: {
|
|
12184
12402
|
margin: 6,
|
|
12185
12403
|
display: "flex",
|
|
@@ -12197,22 +12415,16 @@
|
|
|
12197
12415
|
minHeight: 35
|
|
12198
12416
|
}
|
|
12199
12417
|
},
|
|
12200
|
-
arrow: {
|
|
12201
|
-
right: 0,
|
|
12202
|
-
top: 9,
|
|
12203
|
-
width: 16,
|
|
12204
|
-
height: 16
|
|
12205
|
-
},
|
|
12206
12418
|
tweakInput: {
|
|
12207
|
-
|
|
12208
|
-
|
|
12209
|
-
|
|
12419
|
+
tweakControlWrapper: {
|
|
12420
|
+
controlWrapper: {
|
|
12421
|
+
"--control-height": "35px",
|
|
12422
|
+
border: "none"
|
|
12423
|
+
}
|
|
12210
12424
|
},
|
|
12211
|
-
|
|
12425
|
+
inputContent: {
|
|
12212
12426
|
fontSize: 16,
|
|
12213
|
-
fontWeight: "bold"
|
|
12214
|
-
paddingRight: SELECT_PADDING_RIGHT - 8,
|
|
12215
|
-
paddingLeft: SELECT_PADDING_LEFT
|
|
12427
|
+
fontWeight: "bold"
|
|
12216
12428
|
}
|
|
12217
12429
|
}
|
|
12218
12430
|
};
|
|
@@ -12235,47 +12447,25 @@
|
|
|
12235
12447
|
return /* @__PURE__ */ jsxs("div", {
|
|
12236
12448
|
className: classes.header,
|
|
12237
12449
|
children: [
|
|
12238
|
-
/* @__PURE__ */
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
|
|
12247
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
12248
|
-
value: months[dateFns.getMonth(date)],
|
|
12249
|
-
options: months,
|
|
12250
|
-
dropdownIcon: "chevron-down-small",
|
|
12251
|
-
tweakStyles: tweakSelectStyles,
|
|
12252
|
-
onChange: function(value) {
|
|
12253
|
-
return changeMonth(months.indexOf(value));
|
|
12254
|
-
}
|
|
12255
|
-
})
|
|
12256
|
-
})
|
|
12257
|
-
]
|
|
12450
|
+
/* @__PURE__ */ jsx(Select, {
|
|
12451
|
+
value: months[dateFns.getMonth(date)],
|
|
12452
|
+
options: months,
|
|
12453
|
+
dropdownIcon: "chevron-down-small",
|
|
12454
|
+
isAutoSized: true,
|
|
12455
|
+
tweakStyles: tweakSelectStyles,
|
|
12456
|
+
onChange: function(value) {
|
|
12457
|
+
return changeMonth(months.indexOf(value));
|
|
12458
|
+
}
|
|
12258
12459
|
}),
|
|
12259
|
-
/* @__PURE__ */
|
|
12260
|
-
|
|
12261
|
-
|
|
12262
|
-
|
|
12263
|
-
|
|
12264
|
-
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12268
|
-
children: /* @__PURE__ */ jsx(Select, {
|
|
12269
|
-
value: dateFns.getYear(date),
|
|
12270
|
-
options: years,
|
|
12271
|
-
dropdownIcon: "chevron-down-small",
|
|
12272
|
-
tweakStyles: tweakSelectStyles,
|
|
12273
|
-
onChange: function(value) {
|
|
12274
|
-
return changeYear(value);
|
|
12275
|
-
}
|
|
12276
|
-
})
|
|
12277
|
-
})
|
|
12278
|
-
]
|
|
12460
|
+
/* @__PURE__ */ jsx(Select, {
|
|
12461
|
+
value: dateFns.getYear(date),
|
|
12462
|
+
options: years,
|
|
12463
|
+
dropdownIcon: "chevron-down-small",
|
|
12464
|
+
isAutoSized: true,
|
|
12465
|
+
tweakStyles: tweakSelectStyles,
|
|
12466
|
+
onChange: function(value) {
|
|
12467
|
+
return changeYear(value);
|
|
12468
|
+
}
|
|
12279
12469
|
}),
|
|
12280
12470
|
/* @__PURE__ */ jsxs("div", {
|
|
12281
12471
|
className: classes.buttons,
|
|
@@ -12444,10 +12634,10 @@
|
|
|
12444
12634
|
}
|
|
12445
12635
|
return target;
|
|
12446
12636
|
}
|
|
12447
|
-
function _object_without_properties$
|
|
12637
|
+
function _object_without_properties$c(source, excluded) {
|
|
12448
12638
|
if (source == null)
|
|
12449
12639
|
return {};
|
|
12450
|
-
var target = _object_without_properties_loose$
|
|
12640
|
+
var target = _object_without_properties_loose$c(source, excluded);
|
|
12451
12641
|
var key, i;
|
|
12452
12642
|
if (Object.getOwnPropertySymbols) {
|
|
12453
12643
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -12462,7 +12652,7 @@
|
|
|
12462
12652
|
}
|
|
12463
12653
|
return target;
|
|
12464
12654
|
}
|
|
12465
|
-
function _object_without_properties_loose$
|
|
12655
|
+
function _object_without_properties_loose$c(source, excluded) {
|
|
12466
12656
|
if (source == null)
|
|
12467
12657
|
return {};
|
|
12468
12658
|
var target = {};
|
|
@@ -12493,7 +12683,7 @@
|
|
|
12493
12683
|
return _array_like_to_array$h(o, minLen);
|
|
12494
12684
|
}
|
|
12495
12685
|
var DatePicker = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
12496
|
-
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$
|
|
12686
|
+
var data = _param.data, _param_selectedDate = _param.selectedDate, selectedDate = _param_selectedDate === void 0 ? null : _param_selectedDate, minDate = _param.minDate, maxDate = _param.maxDate, _param_endDate = _param.endDate, endDate = _param_endDate === void 0 ? null : _param_endDate, _param_startDate = _param.startDate, startDate = _param_startDate === void 0 ? null : _param_startDate, locale2 = _param.locale, months = _param.months, _param_calendarStartDay = _param.calendarStartDay, calendarStartDay = _param_calendarStartDay === void 0 ? 1 : _param_calendarStartDay, _param_dateFormat = _param.dateFormat, dateFormat = _param_dateFormat === void 0 ? DEFAULT_DATE_FORMAT$2 : _param_dateFormat, monthsShown = _param.monthsShown, placeholder = _param.placeholder, _param_isRange = _param.isRange, isRange = _param_isRange === void 0 ? false : _param_isRange, _param_isInline = _param.isInline, isInline = _param_isInline === void 0 ? false : _param_isInline, isDisabled = _param.isDisabled, isClearable = _param.isClearable, strictParsing = _param.strictParsing, fixedHeight = _param.fixedHeight, excludeScrollbar = _param.excludeScrollbar, focusSelectedMonth = _param.focusSelectedMonth, disabledKeyboardNavigation = _param.disabledKeyboardNavigation, _param_shouldRenderPopperInBody = _param.shouldRenderPopperInBody, shouldRenderPopperInBody = _param_shouldRenderPopperInBody === void 0 ? false : _param_shouldRenderPopperInBody, _param_allowSameDay = _param.allowSameDay, allowSameDay = _param_allowSameDay === void 0 ? false : _param_allowSameDay, shouldCloseOnSelect = _param.shouldCloseOnSelect, showPreviousMonths = _param.showPreviousMonths, preventOpenOnFocus = _param.preventOpenOnFocus, popperModifiers = _param.popperModifiers, popperPlacement = _param.popperPlacement, todayButton = _param.todayButton, highlightDates = _param.highlightDates, calendarContainer = _param.calendarContainer, dayClassName = _param.dayClassName, tmp = _param.customInput, CustomInput = tmp === void 0 ? DateInput : tmp, customInputRef = _param.customInputRef, renderCustomHeader = _param.renderCustomHeader, filterDate = _param.filterDate, onYearChange = _param.onYearChange, onMonthChange = _param.onMonthChange, onCalendarOpen = _param.onCalendarOpen, onCalendarClose = _param.onCalendarClose, onChangeDate = _param.onChangeDate, onChangeRange = _param.onChangeRange, onBlur = _param.onBlur, onFocus = _param.onFocus, onKeyDown = _param.onKeyDown, tweakStyles = _param.tweakStyles, inputProps = _object_without_properties$c(_param, [
|
|
12497
12687
|
"data",
|
|
12498
12688
|
"selectedDate",
|
|
12499
12689
|
"minDate",
|
|
@@ -12569,7 +12759,7 @@
|
|
|
12569
12759
|
isDisabled,
|
|
12570
12760
|
isClearable,
|
|
12571
12761
|
isActive: isOpen,
|
|
12572
|
-
|
|
12762
|
+
icon: isClearable && hasDateInputValue ? void 0 : "calendar",
|
|
12573
12763
|
tweakStyles: tweakDateInputStyles
|
|
12574
12764
|
}), isRange ? {
|
|
12575
12765
|
startDate: startDateValue,
|
|
@@ -13311,10 +13501,10 @@
|
|
|
13311
13501
|
}
|
|
13312
13502
|
return target;
|
|
13313
13503
|
}
|
|
13314
|
-
function _object_without_properties$
|
|
13504
|
+
function _object_without_properties$b(source, excluded) {
|
|
13315
13505
|
if (source == null)
|
|
13316
13506
|
return {};
|
|
13317
|
-
var target = _object_without_properties_loose$
|
|
13507
|
+
var target = _object_without_properties_loose$b(source, excluded);
|
|
13318
13508
|
var key, i;
|
|
13319
13509
|
if (Object.getOwnPropertySymbols) {
|
|
13320
13510
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -13329,7 +13519,7 @@
|
|
|
13329
13519
|
}
|
|
13330
13520
|
return target;
|
|
13331
13521
|
}
|
|
13332
|
-
function _object_without_properties_loose$
|
|
13522
|
+
function _object_without_properties_loose$b(source, excluded) {
|
|
13333
13523
|
if (source == null)
|
|
13334
13524
|
return {};
|
|
13335
13525
|
var target = {};
|
|
@@ -13344,7 +13534,7 @@
|
|
|
13344
13534
|
return target;
|
|
13345
13535
|
}
|
|
13346
13536
|
var IconButton = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13347
|
-
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$
|
|
13537
|
+
var icon = _param.icon, _param_size = _param.size, size = _param_size === void 0 ? "m" : _param_size, _param_view = _param.view, view = _param_view === void 0 ? "cancel-light" : _param_view, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_type = _param.type, type = _param_type === void 0 ? "button" : _param_type, testId = _param.testId, tweakStyles = _param.tweakStyles, data = _param.data, onClick = _param.onClick, restProps = _object_without_properties$b(_param, [
|
|
13348
13538
|
"icon",
|
|
13349
13539
|
"size",
|
|
13350
13540
|
"view",
|
|
@@ -14268,10 +14458,10 @@
|
|
|
14268
14458
|
}
|
|
14269
14459
|
return target;
|
|
14270
14460
|
}
|
|
14271
|
-
function _object_without_properties$
|
|
14461
|
+
function _object_without_properties$a(source, excluded) {
|
|
14272
14462
|
if (source == null)
|
|
14273
14463
|
return {};
|
|
14274
|
-
var target = _object_without_properties_loose$
|
|
14464
|
+
var target = _object_without_properties_loose$a(source, excluded);
|
|
14275
14465
|
var key, i;
|
|
14276
14466
|
if (Object.getOwnPropertySymbols) {
|
|
14277
14467
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -14286,7 +14476,7 @@
|
|
|
14286
14476
|
}
|
|
14287
14477
|
return target;
|
|
14288
14478
|
}
|
|
14289
|
-
function _object_without_properties_loose$
|
|
14479
|
+
function _object_without_properties_loose$a(source, excluded) {
|
|
14290
14480
|
if (source == null)
|
|
14291
14481
|
return {};
|
|
14292
14482
|
var target = {};
|
|
@@ -14419,7 +14609,7 @@
|
|
|
14419
14609
|
}
|
|
14420
14610
|
}
|
|
14421
14611
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
14422
|
-
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$
|
|
14612
|
+
var value = _param.value, _param_canBeFloat = _param.canBeFloat, canBeFloat = _param_canBeFloat === void 0 ? false : _param_canBeFloat, _param_canBeNegative = _param.canBeNegative, canBeNegative = _param_canBeNegative === void 0 ? false : _param_canBeNegative, defaultValue = _param.defaultValue, _param_precision = _param.precision, precision = _param_precision === void 0 ? 3 : _param_precision, _param_intPartPrecision = _param.intPartPrecision, intPartPrecision = _param_intPartPrecision === void 0 ? 7 : _param_intPartPrecision, onChange = _param.onChange, onBlur = _param.onBlur, min2 = _param.min, max2 = _param.max, props = _object_without_properties$a(_param, [
|
|
14423
14613
|
"value",
|
|
14424
14614
|
"canBeFloat",
|
|
14425
14615
|
"canBeNegative",
|
|
@@ -14900,11 +15090,13 @@
|
|
|
14900
15090
|
input: {
|
|
14901
15091
|
minWidth: 120
|
|
14902
15092
|
},
|
|
14903
|
-
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
15093
|
+
tweakControlWrapper: {
|
|
15094
|
+
icon: {
|
|
15095
|
+
padding: 0,
|
|
15096
|
+
width: 24,
|
|
15097
|
+
"&:last-child": {
|
|
15098
|
+
paddingRight: 0
|
|
15099
|
+
}
|
|
14908
15100
|
}
|
|
14909
15101
|
}
|
|
14910
15102
|
};
|
|
@@ -15020,7 +15212,6 @@
|
|
|
15020
15212
|
onChange: handleFromChange,
|
|
15021
15213
|
value: value === null || value === void 0 ? void 0 : value[0],
|
|
15022
15214
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.from.toLocaleLowerCase()) : translates.from,
|
|
15023
|
-
border: "bottom",
|
|
15024
15215
|
canBeFloat,
|
|
15025
15216
|
isClearable: true,
|
|
15026
15217
|
min: fromInput === null || fromInput === void 0 ? void 0 : fromInput.min,
|
|
@@ -15045,7 +15236,6 @@
|
|
|
15045
15236
|
onChange: handleToChange,
|
|
15046
15237
|
value: value === null || value === void 0 ? void 0 : value[1],
|
|
15047
15238
|
label: withFieldNameInLabel ? "".concat(labelName, " ").concat(translates.to.toLocaleLowerCase()) : translates.to,
|
|
15048
|
-
border: "bottom",
|
|
15049
15239
|
canBeFloat,
|
|
15050
15240
|
isClearable: true,
|
|
15051
15241
|
min: toInput === null || toInput === void 0 ? void 0 : toInput.min,
|
|
@@ -15220,10 +15410,12 @@
|
|
|
15220
15410
|
});
|
|
15221
15411
|
var searchInputStyles$2 = {
|
|
15222
15412
|
tweakInput: {
|
|
15223
|
-
|
|
15224
|
-
|
|
15225
|
-
|
|
15226
|
-
|
|
15413
|
+
tweakControlWrapper: {
|
|
15414
|
+
controlWrapper: {
|
|
15415
|
+
"--control-height": "40px",
|
|
15416
|
+
backgroundColor: "transparent",
|
|
15417
|
+
border: "none"
|
|
15418
|
+
}
|
|
15227
15419
|
}
|
|
15228
15420
|
}
|
|
15229
15421
|
};
|
|
@@ -16178,10 +16370,12 @@
|
|
|
16178
16370
|
});
|
|
16179
16371
|
var searchInputStyles$1 = {
|
|
16180
16372
|
tweakInput: {
|
|
16181
|
-
|
|
16182
|
-
|
|
16183
|
-
|
|
16184
|
-
|
|
16373
|
+
tweakControlWrapper: {
|
|
16374
|
+
controlWrapper: {
|
|
16375
|
+
"--control-height": "40px",
|
|
16376
|
+
backgroundColor: "transparent",
|
|
16377
|
+
border: "none"
|
|
16378
|
+
}
|
|
16185
16379
|
}
|
|
16186
16380
|
}
|
|
16187
16381
|
};
|
|
@@ -18203,7 +18397,6 @@
|
|
|
18203
18397
|
locale: dateLocale,
|
|
18204
18398
|
onChangeDate: handleChangeFrom,
|
|
18205
18399
|
tweakStyles: tweakStartDatePickerStyles,
|
|
18206
|
-
border: "bottom",
|
|
18207
18400
|
testId: trueReactPlatformHelpers.getTestId(testId, "from"),
|
|
18208
18401
|
isClearable
|
|
18209
18402
|
}, startPickerProps))
|
|
@@ -18218,7 +18411,6 @@
|
|
|
18218
18411
|
locale: dateLocale,
|
|
18219
18412
|
onChangeDate: handleChangeTo,
|
|
18220
18413
|
tweakStyles: tweakEndDatePickerStyles,
|
|
18221
|
-
border: "bottom",
|
|
18222
18414
|
testId: trueReactPlatformHelpers.getTestId(testId, "to"),
|
|
18223
18415
|
isClearable
|
|
18224
18416
|
}, endPickerProps))
|
|
@@ -18765,16 +18957,17 @@
|
|
|
18765
18957
|
});
|
|
18766
18958
|
var searchInputStyles = {
|
|
18767
18959
|
tweakInput: {
|
|
18768
|
-
|
|
18769
|
-
|
|
18770
|
-
|
|
18771
|
-
|
|
18772
|
-
|
|
18773
|
-
|
|
18774
|
-
|
|
18775
|
-
|
|
18776
|
-
|
|
18777
|
-
|
|
18960
|
+
tweakControlWrapper: {
|
|
18961
|
+
controlWrapper: {
|
|
18962
|
+
"--control-height": "".concat(FILTER_HEIGHT - 2, "px"),
|
|
18963
|
+
backgroundColor: "transparent",
|
|
18964
|
+
border: "none",
|
|
18965
|
+
minWidth: 140
|
|
18966
|
+
},
|
|
18967
|
+
focused: {
|
|
18968
|
+
backgroundColor: "transparent",
|
|
18969
|
+
border: "none"
|
|
18970
|
+
}
|
|
18778
18971
|
}
|
|
18779
18972
|
}
|
|
18780
18973
|
};
|
|
@@ -18898,7 +19091,7 @@
|
|
|
18898
19091
|
return _array_like_to_array$8(o, minLen);
|
|
18899
19092
|
}
|
|
18900
19093
|
function FiltersPaneSearch(param) {
|
|
18901
|
-
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled,
|
|
19094
|
+
var value = param.value, _param_fields = param.fields, fields = _param_fields === void 0 ? [] : _param_fields, field = param.field, onChange = param.onChange, localeKey = param.localeKey, locale2 = param.locale, getValueId = param.getValueId, getValueView = param.getValueView, getValueString = param.getValueString, hasClearSelectButton = param.hasClearSelectButton, _param_isDisabled = param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, _param_isSelectSearchEnabled = param.isSelectSearchEnabled, isSelectSearchEnabled = _param_isSelectSearchEnabled === void 0 ? true : _param_isSelectSearchEnabled, maxLength = param.maxLength, data = param.data, tweakStyles = param.tweakStyles, testId = param.testId;
|
|
18902
19095
|
var classes = useStyles$o({
|
|
18903
19096
|
theme: tweakStyles
|
|
18904
19097
|
});
|
|
@@ -18964,7 +19157,6 @@
|
|
|
18964
19157
|
},
|
|
18965
19158
|
testId: testId !== void 0 ? "".concat(testId, "-input") : void 0,
|
|
18966
19159
|
maxLength,
|
|
18967
|
-
isAutoSizeable,
|
|
18968
19160
|
isDisabled
|
|
18969
19161
|
}),
|
|
18970
19162
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -26048,10 +26240,10 @@
|
|
|
26048
26240
|
}
|
|
26049
26241
|
return target;
|
|
26050
26242
|
}
|
|
26051
|
-
function _object_without_properties$
|
|
26243
|
+
function _object_without_properties$9(source, excluded) {
|
|
26052
26244
|
if (source == null)
|
|
26053
26245
|
return {};
|
|
26054
|
-
var target = _object_without_properties_loose$
|
|
26246
|
+
var target = _object_without_properties_loose$9(source, excluded);
|
|
26055
26247
|
var key, i;
|
|
26056
26248
|
if (Object.getOwnPropertySymbols) {
|
|
26057
26249
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26066,7 +26258,7 @@
|
|
|
26066
26258
|
}
|
|
26067
26259
|
return target;
|
|
26068
26260
|
}
|
|
26069
|
-
function _object_without_properties_loose$
|
|
26261
|
+
function _object_without_properties_loose$9(source, excluded) {
|
|
26070
26262
|
if (source == null)
|
|
26071
26263
|
return {};
|
|
26072
26264
|
var target = {};
|
|
@@ -26081,7 +26273,7 @@
|
|
|
26081
26273
|
return target;
|
|
26082
26274
|
}
|
|
26083
26275
|
function FlexibleTableCell(_param) {
|
|
26084
|
-
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$
|
|
26276
|
+
var row = _param.row, columnName = _param.columnName, config = _param.config, renderMode = _param.renderMode, isSecond = _param.isSecond, isOldSticky = _param.isSticky, isLoading = _param.isLoading, tweakStyles = _param.tweakStyles, valueComponentProps = _object_without_properties$9(_param, [
|
|
26085
26277
|
"row",
|
|
26086
26278
|
"columnName",
|
|
26087
26279
|
"config",
|
|
@@ -26424,10 +26616,10 @@
|
|
|
26424
26616
|
}
|
|
26425
26617
|
return target;
|
|
26426
26618
|
}
|
|
26427
|
-
function _object_without_properties$
|
|
26619
|
+
function _object_without_properties$8(source, excluded) {
|
|
26428
26620
|
if (source == null)
|
|
26429
26621
|
return {};
|
|
26430
|
-
var target = _object_without_properties_loose$
|
|
26622
|
+
var target = _object_without_properties_loose$8(source, excluded);
|
|
26431
26623
|
var key, i;
|
|
26432
26624
|
if (Object.getOwnPropertySymbols) {
|
|
26433
26625
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26442,7 +26634,7 @@
|
|
|
26442
26634
|
}
|
|
26443
26635
|
return target;
|
|
26444
26636
|
}
|
|
26445
|
-
function _object_without_properties_loose$
|
|
26637
|
+
function _object_without_properties_loose$8(source, excluded) {
|
|
26446
26638
|
if (source == null)
|
|
26447
26639
|
return {};
|
|
26448
26640
|
var target = {};
|
|
@@ -26457,7 +26649,7 @@
|
|
|
26457
26649
|
return target;
|
|
26458
26650
|
}
|
|
26459
26651
|
function FlexibleTable(_param) {
|
|
26460
|
-
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$
|
|
26652
|
+
var content = _param.content, headerContent = _param.headerContent, config = _param.config, enabledColumns = _param.enabledColumns, activeRows = _param.activeRows, uniqueField = _param.uniqueField, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isFirstColumnSticky = _param.isFirstColumnSticky, isFirstColumnSticky = _param_isFirstColumnSticky === void 0 ? false : _param_isFirstColumnSticky, _param_isHorizontallyScrollable = _param.isHorizontallyScrollable, isHorizontallyScrollable = _param_isHorizontallyScrollable === void 0 ? false : _param_isHorizontallyScrollable, _param_isRowFocusable = _param.isRowFocusable, isRowFocusable = _param_isRowFocusable === void 0 ? false : _param_isRowFocusable, infinityScrollConfig = _param.infinityScrollConfig, _param_renderMode = _param.renderMode, renderMode = _param_renderMode === void 0 ? "table" : _param_renderMode, refForScroll = _param.refForScroll, nothingFoundContent = _param.nothingFoundContent, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, _param_shouldRenderHeader = _param.shouldRenderHeader, shouldRenderHeader = _param_shouldRenderHeader === void 0 ? true : _param_shouldRenderHeader, onHeadClick = _param.onHeadClick, restProps = _object_without_properties$8(_param, [
|
|
26461
26653
|
"content",
|
|
26462
26654
|
"headerContent",
|
|
26463
26655
|
"config",
|
|
@@ -26690,11 +26882,11 @@
|
|
|
26690
26882
|
right: BUTTONS_GAP,
|
|
26691
26883
|
top: BUTTONS_GAP,
|
|
26692
26884
|
bottom: BUTTONS_GAP,
|
|
26693
|
-
zIndex: 1
|
|
26885
|
+
zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
|
|
26694
26886
|
},
|
|
26695
26887
|
button: {
|
|
26696
26888
|
width: "100%",
|
|
26697
|
-
height: (dimensions.
|
|
26889
|
+
height: (dimensions.CONTROL.HEIGHT - 5) / 2,
|
|
26698
26890
|
border: "none",
|
|
26699
26891
|
outline: "none",
|
|
26700
26892
|
backgroundColor: colors.GREY_BACKGROUND,
|
|
@@ -26731,12 +26923,12 @@
|
|
|
26731
26923
|
});
|
|
26732
26924
|
var inputStyles$2 = {
|
|
26733
26925
|
input: {
|
|
26734
|
-
|
|
26926
|
+
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26927
|
+
},
|
|
26928
|
+
tweakControlWrapper: {
|
|
26929
|
+
controls: {
|
|
26735
26930
|
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26736
26931
|
}
|
|
26737
|
-
},
|
|
26738
|
-
controls: {
|
|
26739
|
-
paddingRight: BUTTONS_WIDTH + BUTTONS_GAP
|
|
26740
26932
|
}
|
|
26741
26933
|
};
|
|
26742
26934
|
function _define_property$k(obj, key, value) {
|
|
@@ -26791,10 +26983,10 @@
|
|
|
26791
26983
|
}
|
|
26792
26984
|
return target;
|
|
26793
26985
|
}
|
|
26794
|
-
function _object_without_properties$
|
|
26986
|
+
function _object_without_properties$7(source, excluded) {
|
|
26795
26987
|
if (source == null)
|
|
26796
26988
|
return {};
|
|
26797
|
-
var target = _object_without_properties_loose$
|
|
26989
|
+
var target = _object_without_properties_loose$7(source, excluded);
|
|
26798
26990
|
var key, i;
|
|
26799
26991
|
if (Object.getOwnPropertySymbols) {
|
|
26800
26992
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -26809,7 +27001,7 @@
|
|
|
26809
27001
|
}
|
|
26810
27002
|
return target;
|
|
26811
27003
|
}
|
|
26812
|
-
function _object_without_properties_loose$
|
|
27004
|
+
function _object_without_properties_loose$7(source, excluded) {
|
|
26813
27005
|
if (source == null)
|
|
26814
27006
|
return {};
|
|
26815
27007
|
var target = {};
|
|
@@ -26824,7 +27016,7 @@
|
|
|
26824
27016
|
return target;
|
|
26825
27017
|
}
|
|
26826
27018
|
var IncrementInput = function(_param) {
|
|
26827
|
-
var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$
|
|
27019
|
+
var value = _param.value, onChange = _param.onChange, min2 = _param.min, max2 = _param.max, _param_step = _param.step, step = _param_step === void 0 ? 1 : _param_step, intPartPrecision = _param.intPartPrecision, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, isDisabled = _param.isDisabled, isReadonly = _param.isReadonly, isInvalid = _param.isInvalid, props = _object_without_properties$7(_param, [
|
|
26828
27020
|
"value",
|
|
26829
27021
|
"onChange",
|
|
26830
27022
|
"min",
|
|
@@ -27272,10 +27464,10 @@
|
|
|
27272
27464
|
}
|
|
27273
27465
|
return target;
|
|
27274
27466
|
}
|
|
27275
|
-
function _object_without_properties$
|
|
27467
|
+
function _object_without_properties$6(source, excluded) {
|
|
27276
27468
|
if (source == null)
|
|
27277
27469
|
return {};
|
|
27278
|
-
var target = _object_without_properties_loose$
|
|
27470
|
+
var target = _object_without_properties_loose$6(source, excluded);
|
|
27279
27471
|
var key, i;
|
|
27280
27472
|
if (Object.getOwnPropertySymbols) {
|
|
27281
27473
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -27290,7 +27482,7 @@
|
|
|
27290
27482
|
}
|
|
27291
27483
|
return target;
|
|
27292
27484
|
}
|
|
27293
|
-
function _object_without_properties_loose$
|
|
27485
|
+
function _object_without_properties_loose$6(source, excluded) {
|
|
27294
27486
|
if (source == null)
|
|
27295
27487
|
return {};
|
|
27296
27488
|
var target = {};
|
|
@@ -27321,7 +27513,7 @@
|
|
|
27321
27513
|
return _array_like_to_array$6(o, minLen);
|
|
27322
27514
|
}
|
|
27323
27515
|
var Modal = function(_param) {
|
|
27324
|
-
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$
|
|
27516
|
+
var data = _param.data, tweakStyles = _param.tweakStyles, title = _param.title, _param_size = _param.size, size = _param_size === void 0 ? "l" : _param_size, _param_isFooterSticky = _param.isFooterSticky, isFooterSticky = _param_isFooterSticky === void 0 ? false : _param_isFooterSticky, footer = _param.footer, buttons = _param.buttons, _param_buttonsAlign = _param.buttonsAlign, buttonsAlign = _param_buttonsAlign === void 0 ? "right" : _param_buttonsAlign, _param_hasCloseButton = _param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? true : _param_hasCloseButton, _param_hasOverlay = _param.hasOverlay, hasOverlay = _param_hasOverlay === void 0 ? true : _param_hasOverlay, _param_isOpen = _param.isOpen, isOpen = _param_isOpen === void 0 ? false : _param_isOpen, _param_position = _param.position, position = _param_position === void 0 ? "center" : _param_position, children = _param.children, zIndex = _param.zIndex, testId = _param.testId, _param_shouldCloseOnOverlayClick = _param.shouldCloseOnOverlayClick, shouldCloseOnOverlayClick = _param_shouldCloseOnOverlayClick === void 0 ? true : _param_shouldCloseOnOverlayClick, _param_shouldCloseOnEsc = _param.shouldCloseOnEsc, shouldCloseOnEsc = _param_shouldCloseOnEsc === void 0 ? true : _param_shouldCloseOnEsc, _param_shouldBlockScroll = _param.shouldBlockScroll, shouldBlockScroll = _param_shouldBlockScroll === void 0 ? true : _param_shouldBlockScroll, _param_timeout = _param.timeout, timeout = _param_timeout === void 0 ? 150 : _param_timeout, _param_unmountOnExit = _param.unmountOnExit, unmountOnExit = _param_unmountOnExit === void 0 ? true : _param_unmountOnExit, onClose = _param.onClose, restProps = _object_without_properties$6(_param, [
|
|
27325
27517
|
"data",
|
|
27326
27518
|
"tweakStyles",
|
|
27327
27519
|
"title",
|
|
@@ -28166,7 +28358,7 @@
|
|
|
28166
28358
|
},
|
|
28167
28359
|
searchContainer: {
|
|
28168
28360
|
width: "100%",
|
|
28169
|
-
height: dimensions.
|
|
28361
|
+
height: dimensions.CONTROL.HEIGHT,
|
|
28170
28362
|
display: "flex",
|
|
28171
28363
|
alignItems: "center",
|
|
28172
28364
|
boxSizing: "border-box",
|
|
@@ -28247,9 +28439,11 @@
|
|
|
28247
28439
|
}
|
|
28248
28440
|
});
|
|
28249
28441
|
var inputStyles$1 = {
|
|
28250
|
-
|
|
28251
|
-
|
|
28252
|
-
|
|
28442
|
+
tweakControlWrapper: {
|
|
28443
|
+
controlWrapper: {
|
|
28444
|
+
border: "none",
|
|
28445
|
+
height: "calc(var(--control-height) - 2px)"
|
|
28446
|
+
}
|
|
28253
28447
|
},
|
|
28254
28448
|
input: {
|
|
28255
28449
|
fontSize: 14,
|
|
@@ -28463,14 +28657,15 @@
|
|
|
28463
28657
|
root: {
|
|
28464
28658
|
width: "100%",
|
|
28465
28659
|
position: "relative",
|
|
28466
|
-
boxSizing: "border-box"
|
|
28660
|
+
boxSizing: "border-box",
|
|
28661
|
+
zIndex: 0
|
|
28467
28662
|
},
|
|
28468
28663
|
countrySelectContainer: {
|
|
28469
28664
|
position: "absolute",
|
|
28470
28665
|
left: 1,
|
|
28471
28666
|
top: 1,
|
|
28472
28667
|
width: COUNTRY_SELECT_WIDTH,
|
|
28473
|
-
height: dimensions.
|
|
28668
|
+
height: dimensions.CONTROL.HEIGHT - 2,
|
|
28474
28669
|
display: "flex",
|
|
28475
28670
|
alignItems: "center",
|
|
28476
28671
|
justifyContent: "center",
|
|
@@ -28481,7 +28676,7 @@
|
|
|
28481
28676
|
],
|
|
28482
28677
|
transition: "border-color 0.2s ease-in",
|
|
28483
28678
|
cursor: "pointer",
|
|
28484
|
-
zIndex:
|
|
28679
|
+
zIndex: dimensions.Z_INDEX.CONTROL_FOCUS + 1
|
|
28485
28680
|
},
|
|
28486
28681
|
disabledCountrySelect: {
|
|
28487
28682
|
cursor: "default"
|
|
@@ -28513,17 +28708,19 @@
|
|
|
28513
28708
|
flagListContainer: {
|
|
28514
28709
|
position: "absolute",
|
|
28515
28710
|
width: "100%",
|
|
28516
|
-
top: dimensions.
|
|
28711
|
+
top: dimensions.CONTROL.HEIGHT + 6,
|
|
28517
28712
|
left: -1,
|
|
28518
28713
|
zIndex: 3
|
|
28519
28714
|
}
|
|
28520
28715
|
});
|
|
28521
28716
|
var inputStyles = {
|
|
28522
|
-
|
|
28523
|
-
|
|
28524
|
-
|
|
28525
|
-
|
|
28526
|
-
|
|
28717
|
+
tweakControlWrapper: {
|
|
28718
|
+
controlWrapper: {
|
|
28719
|
+
paddingLeft: COUNTRY_SELECT_WIDTH
|
|
28720
|
+
},
|
|
28721
|
+
label: {
|
|
28722
|
+
marginLeft: COUNTRY_SELECT_WIDTH
|
|
28723
|
+
}
|
|
28527
28724
|
}
|
|
28528
28725
|
};
|
|
28529
28726
|
function _array_like_to_array$2(arr, len) {
|
|
@@ -28620,10 +28817,10 @@
|
|
|
28620
28817
|
}
|
|
28621
28818
|
return target;
|
|
28622
28819
|
}
|
|
28623
|
-
function _object_without_properties$
|
|
28820
|
+
function _object_without_properties$5(source, excluded) {
|
|
28624
28821
|
if (source == null)
|
|
28625
28822
|
return {};
|
|
28626
|
-
var target = _object_without_properties_loose$
|
|
28823
|
+
var target = _object_without_properties_loose$5(source, excluded);
|
|
28627
28824
|
var key, i;
|
|
28628
28825
|
if (Object.getOwnPropertySymbols) {
|
|
28629
28826
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -28638,7 +28835,7 @@
|
|
|
28638
28835
|
}
|
|
28639
28836
|
return target;
|
|
28640
28837
|
}
|
|
28641
|
-
function _object_without_properties_loose$
|
|
28838
|
+
function _object_without_properties_loose$5(source, excluded) {
|
|
28642
28839
|
if (source == null)
|
|
28643
28840
|
return {};
|
|
28644
28841
|
var target = {};
|
|
@@ -28669,7 +28866,7 @@
|
|
|
28669
28866
|
return _array_like_to_array$2(o, minLen);
|
|
28670
28867
|
}
|
|
28671
28868
|
var PhoneInput = function(_param) {
|
|
28672
|
-
var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$
|
|
28869
|
+
var _param_locale = _param.locale, locale2 = _param_locale === void 0 ? "ru" : _param_locale, _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE$1 : _param_value, onChange = _param.onChange, data = _param.data, testId = _param.testId, isDisabled = _param.isDisabled, isInvalid = _param.isInvalid, isActive = _param.isActive, tweakStyles = _param.tweakStyles, _param_codeSearchPlaceholder = _param.codeSearchPlaceholder, codeSearchPlaceholder = _param_codeSearchPlaceholder === void 0 ? "Поиск" : _param_codeSearchPlaceholder, _param_noMatchesLabel = _param.noMatchesLabel, noMatchesLabel = _param_noMatchesLabel === void 0 ? "Ничего не найдено" : _param_noMatchesLabel, inputProps = _object_without_properties$5(_param, [
|
|
28673
28870
|
"locale",
|
|
28674
28871
|
"value",
|
|
28675
28872
|
"onChange",
|
|
@@ -29498,10 +29695,10 @@
|
|
|
29498
29695
|
}
|
|
29499
29696
|
return target;
|
|
29500
29697
|
}
|
|
29501
|
-
function _object_without_properties$
|
|
29698
|
+
function _object_without_properties$4(source, excluded) {
|
|
29502
29699
|
if (source == null)
|
|
29503
29700
|
return {};
|
|
29504
|
-
var target = _object_without_properties_loose$
|
|
29701
|
+
var target = _object_without_properties_loose$4(source, excluded);
|
|
29505
29702
|
var key, i;
|
|
29506
29703
|
if (Object.getOwnPropertySymbols) {
|
|
29507
29704
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
@@ -29516,7 +29713,7 @@
|
|
|
29516
29713
|
}
|
|
29517
29714
|
return target;
|
|
29518
29715
|
}
|
|
29519
|
-
function _object_without_properties_loose$
|
|
29716
|
+
function _object_without_properties_loose$4(source, excluded) {
|
|
29520
29717
|
if (source == null)
|
|
29521
29718
|
return {};
|
|
29522
29719
|
var target = {};
|
|
@@ -29633,7 +29830,7 @@
|
|
|
29633
29830
|
}
|
|
29634
29831
|
}
|
|
29635
29832
|
var SmartInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
29636
|
-
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$
|
|
29833
|
+
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, _param_smartType = _param.smartType, smartType = _param_smartType === void 0 ? "default" : _param_smartType, regExp = _param.regExp, maxLength = _param.maxLength, _param_isUpperCase = _param.isUpperCase, isUpperCase = _param_isUpperCase === void 0 ? false : _param_isUpperCase, _param_isTransliterationEnabled = _param.isTransliterationEnabled, isTransliterationEnabled = _param_isTransliterationEnabled === void 0 ? true : _param_isTransliterationEnabled, onChange = _param.onChange, rest = _object_without_properties$4(_param, [
|
|
29637
29834
|
"value",
|
|
29638
29835
|
"smartType",
|
|
29639
29836
|
"regExp",
|
|
@@ -30138,49 +30335,28 @@
|
|
|
30138
30335
|
}
|
|
30139
30336
|
return target;
|
|
30140
30337
|
}
|
|
30141
|
-
var PADDING_X = 12;
|
|
30142
30338
|
var useStyles$4 = createThemedStyles("TextArea", {
|
|
30143
|
-
root: {
|
|
30144
|
-
width: "100%",
|
|
30145
|
-
height: "100%",
|
|
30146
|
-
display: "flex",
|
|
30147
|
-
flexDirection: "column"
|
|
30148
|
-
},
|
|
30149
|
-
wrapper: {
|
|
30150
|
-
display: "flex",
|
|
30151
|
-
position: "relative",
|
|
30152
|
-
width: "100%",
|
|
30153
|
-
flexGrow: 1,
|
|
30154
|
-
boxSizing: "border-box",
|
|
30155
|
-
transition: animations.defaultTransition,
|
|
30156
|
-
transitionProperty: "border-color",
|
|
30157
|
-
backgroundColor: "white",
|
|
30158
|
-
border: [
|
|
30159
|
-
"solid",
|
|
30160
|
-
1,
|
|
30161
|
-
"lightgray"
|
|
30162
|
-
]
|
|
30163
|
-
},
|
|
30164
30339
|
textarea: _object_spread_props$6(_object_spread$6({}, helpers.withScrollBar), {
|
|
30165
30340
|
width: "100%",
|
|
30166
30341
|
height: "100%",
|
|
30167
|
-
outline: "none",
|
|
30168
|
-
outlineStyle: "none",
|
|
30169
30342
|
fontFamily: "inherit",
|
|
30170
30343
|
fontSize: 16,
|
|
30171
30344
|
padding: [
|
|
30172
30345
|
14,
|
|
30173
|
-
|
|
30174
|
-
8
|
|
30346
|
+
0,
|
|
30347
|
+
8,
|
|
30348
|
+
"var(--control-padding)"
|
|
30175
30349
|
],
|
|
30176
|
-
scrollPadding: "14px 0 8px",
|
|
30350
|
+
scrollPadding: "14px 0 8px var(--control-padding)",
|
|
30351
|
+
scrollbarGutter: "stable",
|
|
30352
|
+
boxSizing: "border-box",
|
|
30353
|
+
outline: "none",
|
|
30354
|
+
outlineStyle: "none",
|
|
30177
30355
|
transition: animations.defaultTransition,
|
|
30178
30356
|
transitionProperty: "background-color",
|
|
30179
30357
|
border: "none",
|
|
30180
30358
|
resize: "none",
|
|
30181
|
-
"
|
|
30182
|
-
extend: "disabled"
|
|
30183
|
-
},
|
|
30359
|
+
background: "transparent",
|
|
30184
30360
|
"&::placeholder": {
|
|
30185
30361
|
opacity: 1
|
|
30186
30362
|
},
|
|
@@ -30190,107 +30366,41 @@
|
|
|
30190
30366
|
margin: 0
|
|
30191
30367
|
}
|
|
30192
30368
|
}),
|
|
30193
|
-
|
|
30194
|
-
|
|
30369
|
+
wrapper: {
|
|
30370
|
+
width: "100%"
|
|
30371
|
+
},
|
|
30372
|
+
autoSized: {
|
|
30373
|
+
display: "grid",
|
|
30195
30374
|
gridTemplateRows: "minmax(0, 100%)",
|
|
30196
30375
|
"& > $textarea, &::after": {
|
|
30197
|
-
gridArea: "1 / 1
|
|
30376
|
+
gridArea: "1 / 1"
|
|
30198
30377
|
},
|
|
30199
30378
|
"&::after": {
|
|
30200
30379
|
extend: "textarea",
|
|
30201
30380
|
content: 'attr(data-value) " "',
|
|
30381
|
+
// Без пробела ломается!
|
|
30202
30382
|
overflowWrap: "break-word",
|
|
30203
30383
|
whiteSpace: "pre-wrap",
|
|
30204
|
-
visibility: "hidden"
|
|
30205
|
-
scrollbarGutter: "stable"
|
|
30206
|
-
}
|
|
30207
|
-
},
|
|
30208
|
-
focused: {
|
|
30209
|
-
position: "relative",
|
|
30210
|
-
zIndex: 1
|
|
30211
|
-
},
|
|
30212
|
-
withFloatingLabel: {
|
|
30213
|
-
"& $textarea, &::after": {
|
|
30214
|
-
paddingTop: 24,
|
|
30215
|
-
scrollPaddingTop: "24px"
|
|
30216
|
-
}
|
|
30217
|
-
},
|
|
30218
|
-
floating: {},
|
|
30219
|
-
activeLabel: {
|
|
30220
|
-
display: "none",
|
|
30221
|
-
"&$floating": {
|
|
30222
|
-
display: "block",
|
|
30223
|
-
transform: "scale(0.75) translateY(-120%)"
|
|
30224
|
-
}
|
|
30225
|
-
},
|
|
30226
|
-
required: {
|
|
30227
|
-
"&:before": {
|
|
30228
|
-
content: '""',
|
|
30229
|
-
position: "absolute",
|
|
30230
|
-
left: -12,
|
|
30231
|
-
top: 20,
|
|
30232
|
-
width: 6,
|
|
30233
|
-
height: 6,
|
|
30234
|
-
borderRadius: "50%",
|
|
30235
|
-
backgroundColor: "red"
|
|
30236
|
-
}
|
|
30237
|
-
},
|
|
30238
|
-
disabled: {},
|
|
30239
|
-
label: {
|
|
30240
|
-
position: "absolute",
|
|
30241
|
-
pointerEvents: "none",
|
|
30242
|
-
left: PADDING_X,
|
|
30243
|
-
top: PADDING_X * 2,
|
|
30244
|
-
transformOrigin: "top left",
|
|
30245
|
-
transform: "translateY(-50%)",
|
|
30246
|
-
transition: animations.defaultTransition,
|
|
30247
|
-
transitionProperty: "transform, color",
|
|
30248
|
-
fontSize: 16
|
|
30249
|
-
},
|
|
30250
|
-
invalid: {
|
|
30251
|
-
borderColor: "red"
|
|
30252
|
-
},
|
|
30253
|
-
invalidLabel: {},
|
|
30254
|
-
error: {
|
|
30255
|
-
fontSize: 12,
|
|
30256
|
-
paddingTop: 4,
|
|
30257
|
-
paddingLeft: 13,
|
|
30258
|
-
color: "red"
|
|
30259
|
-
},
|
|
30260
|
-
requiredLabel: {
|
|
30261
|
-
"&:after": {
|
|
30262
|
-
content: '""',
|
|
30263
|
-
position: "absolute",
|
|
30264
|
-
right: -8,
|
|
30265
|
-
top: 4,
|
|
30266
|
-
transform: "translate(0, -50%)",
|
|
30267
|
-
width: 6,
|
|
30268
|
-
height: 6,
|
|
30269
|
-
borderRadius: "50%",
|
|
30270
|
-
backgroundColor: "red"
|
|
30384
|
+
visibility: "hidden"
|
|
30271
30385
|
}
|
|
30272
30386
|
},
|
|
30273
30387
|
symbolsCount: {
|
|
30274
|
-
display: "block",
|
|
30275
30388
|
textAlign: "right",
|
|
30276
30389
|
marginTop: 4,
|
|
30277
30390
|
fontSize: 12,
|
|
30278
30391
|
marginLeft: "auto",
|
|
30279
|
-
|
|
30280
|
-
|
|
30392
|
+
whiteSpace: "nowrap",
|
|
30393
|
+
pointerEvents: "none"
|
|
30281
30394
|
},
|
|
30282
30395
|
symbolsCountError: {
|
|
30283
30396
|
color: "red"
|
|
30284
|
-
},
|
|
30285
|
-
footer: {
|
|
30286
|
-
display: "flex"
|
|
30287
|
-
},
|
|
30288
|
-
info: {
|
|
30289
|
-
fontSize: 12,
|
|
30290
|
-
paddingTop: 4,
|
|
30291
|
-
paddingLeft: 13
|
|
30292
30397
|
}
|
|
30293
30398
|
});
|
|
30399
|
+
var controlWrapperStyles = {
|
|
30400
|
+
label: {
|
|
30401
|
+
top: 16
|
|
30402
|
+
}
|
|
30403
|
+
};
|
|
30294
30404
|
function _array_like_to_array(arr, len) {
|
|
30295
30405
|
if (len == null || len > arr.length)
|
|
30296
30406
|
len = arr.length;
|
|
@@ -30385,6 +30495,38 @@
|
|
|
30385
30495
|
}
|
|
30386
30496
|
return target;
|
|
30387
30497
|
}
|
|
30498
|
+
function _object_without_properties$3(source, excluded) {
|
|
30499
|
+
if (source == null)
|
|
30500
|
+
return {};
|
|
30501
|
+
var target = _object_without_properties_loose$3(source, excluded);
|
|
30502
|
+
var key, i;
|
|
30503
|
+
if (Object.getOwnPropertySymbols) {
|
|
30504
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
30505
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
30506
|
+
key = sourceSymbolKeys[i];
|
|
30507
|
+
if (excluded.indexOf(key) >= 0)
|
|
30508
|
+
continue;
|
|
30509
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
30510
|
+
continue;
|
|
30511
|
+
target[key] = source[key];
|
|
30512
|
+
}
|
|
30513
|
+
}
|
|
30514
|
+
return target;
|
|
30515
|
+
}
|
|
30516
|
+
function _object_without_properties_loose$3(source, excluded) {
|
|
30517
|
+
if (source == null)
|
|
30518
|
+
return {};
|
|
30519
|
+
var target = {};
|
|
30520
|
+
var sourceKeys = Object.keys(source);
|
|
30521
|
+
var key, i;
|
|
30522
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
30523
|
+
key = sourceKeys[i];
|
|
30524
|
+
if (excluded.indexOf(key) >= 0)
|
|
30525
|
+
continue;
|
|
30526
|
+
target[key] = source[key];
|
|
30527
|
+
}
|
|
30528
|
+
return target;
|
|
30529
|
+
}
|
|
30388
30530
|
function _sliced_to_array(arr, i) {
|
|
30389
30531
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
30390
30532
|
}
|
|
@@ -30402,93 +30544,108 @@
|
|
|
30402
30544
|
return _array_like_to_array(o, minLen);
|
|
30403
30545
|
}
|
|
30404
30546
|
var DEFAULT_VALUE = "";
|
|
30405
|
-
var TextArea = /* @__PURE__ */ React.forwardRef(function(
|
|
30406
|
-
var _param_value =
|
|
30547
|
+
var TextArea = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
30548
|
+
var _param_value = _param.value, value = _param_value === void 0 ? DEFAULT_VALUE : _param_value, label = _param.label, placeholder = _param.placeholder, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, name = _param.name;
|
|
30549
|
+
_param.shouldFocusOnMount;
|
|
30550
|
+
var _param_hasCounter = _param.hasCounter, hasCounter = _param_hasCounter === void 0 ? true : _param_hasCounter, shouldTrimAfterMaxLength = _param.shouldTrimAfterMaxLength, _param_isAutoSized = _param.isAutoSized, isAutoSized = _param_isAutoSized === void 0 ? true : _param_isAutoSized, shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, isDisabled = _param.isDisabled, isActive = _param.isActive, maxLength = _param.maxLength, rows = _param.rows, data = _param.data, testId = _param.testId, tweakStyles = _param.tweakStyles, onChange = _param.onChange, onPaste = _param.onPaste, onFocus = _param.onFocus, onBlur = _param.onBlur, controlProps = _object_without_properties$3(_param, [
|
|
30551
|
+
"value",
|
|
30552
|
+
"label",
|
|
30553
|
+
"placeholder",
|
|
30554
|
+
"infoMessage",
|
|
30555
|
+
"errorMessage",
|
|
30556
|
+
"name",
|
|
30557
|
+
"shouldFocusOnMount",
|
|
30558
|
+
"hasCounter",
|
|
30559
|
+
"shouldTrimAfterMaxLength",
|
|
30560
|
+
"isAutoSized",
|
|
30561
|
+
"shouldAlwaysShowPlaceholder",
|
|
30562
|
+
"isDisabled",
|
|
30563
|
+
"isActive",
|
|
30564
|
+
"maxLength",
|
|
30565
|
+
"rows",
|
|
30566
|
+
"data",
|
|
30567
|
+
"testId",
|
|
30568
|
+
"tweakStyles",
|
|
30569
|
+
"onChange",
|
|
30570
|
+
"onPaste",
|
|
30571
|
+
"onFocus",
|
|
30572
|
+
"onBlur"
|
|
30573
|
+
]);
|
|
30407
30574
|
var classes = useStyles$4({
|
|
30408
30575
|
theme: tweakStyles
|
|
30409
30576
|
});
|
|
30577
|
+
var tweakWithMessagesStyles = useTweakStyles({
|
|
30578
|
+
tweakStyles,
|
|
30579
|
+
className: "tweakWithMessages",
|
|
30580
|
+
currentComponentName: "TextArea"
|
|
30581
|
+
});
|
|
30582
|
+
var tweakControlWrapperStyles = useTweakStyles({
|
|
30583
|
+
innerStyles: controlWrapperStyles,
|
|
30584
|
+
tweakStyles,
|
|
30585
|
+
className: "tweakControlWrapper",
|
|
30586
|
+
currentComponentName: "TextArea"
|
|
30587
|
+
});
|
|
30410
30588
|
var _useState = _sliced_to_array(React.useState(false), 2), isFocused = _useState[0], setFocused = _useState[1];
|
|
30411
|
-
var
|
|
30412
|
-
|
|
30413
|
-
|
|
30414
|
-
|
|
30589
|
+
var hasFocus = isFocused || isActive;
|
|
30590
|
+
var hasValue = value !== void 0 && value !== "";
|
|
30591
|
+
var hasLabel = trueReactPlatformHelpers.isReactNodeNotEmpty(label);
|
|
30592
|
+
var hasPlaceholder = (!hasLabel || hasFocus || shouldAlwaysShowPlaceholder) && trueReactPlatformHelpers.isStringNotEmpty(placeholder);
|
|
30593
|
+
var handleChange = function(event) {
|
|
30594
|
+
onChange(event.currentTarget.value, event);
|
|
30415
30595
|
};
|
|
30416
|
-
var
|
|
30596
|
+
var handleFocus = function(event) {
|
|
30417
30597
|
setFocused(true);
|
|
30418
|
-
|
|
30419
|
-
onFocus(event);
|
|
30420
|
-
}
|
|
30598
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(event);
|
|
30421
30599
|
};
|
|
30422
|
-
var
|
|
30600
|
+
var handleBlur = function(event) {
|
|
30423
30601
|
setFocused(false);
|
|
30424
|
-
|
|
30425
|
-
onBlur(event);
|
|
30426
|
-
}
|
|
30602
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(event);
|
|
30427
30603
|
};
|
|
30428
|
-
|
|
30429
|
-
|
|
30430
|
-
|
|
30431
|
-
|
|
30432
|
-
var props = _object_spread$5({
|
|
30433
|
-
className: classes.textarea,
|
|
30434
|
-
onFocus: handleOnFocus,
|
|
30435
|
-
onBlur: handleOnBlur,
|
|
30436
|
-
onChange: handleOnChange,
|
|
30437
|
-
value,
|
|
30438
|
-
onPaste,
|
|
30439
|
-
disabled: isDisabled,
|
|
30440
|
-
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
30441
|
-
name,
|
|
30442
|
-
autoFocus: shouldFocusOnMount,
|
|
30443
|
-
rows
|
|
30444
|
-
}, trueReactPlatformHelpers.addDataTestId(testId));
|
|
30445
|
-
var hasInfoMessage = trueReactPlatformHelpers.isStringNotEmpty(infoMessage);
|
|
30446
|
-
var hasErrorMessage = trueReactPlatformHelpers.isStringNotEmpty(errorMessage);
|
|
30447
|
-
var _obj2, _obj1;
|
|
30448
|
-
return /* @__PURE__ */ jsxs("div", _object_spread_props$5(_object_spread$5({
|
|
30449
|
-
className: classes.root
|
|
30450
|
-
}, addDataAttributes(data)), {
|
|
30604
|
+
return /* @__PURE__ */ jsxs(WithMessages, {
|
|
30605
|
+
errorMessage,
|
|
30606
|
+
infoMessage,
|
|
30607
|
+
tweakStyles: tweakWithMessagesStyles,
|
|
30451
30608
|
children: [
|
|
30452
|
-
/* @__PURE__ */
|
|
30453
|
-
|
|
30454
|
-
|
|
30455
|
-
|
|
30456
|
-
|
|
30457
|
-
|
|
30458
|
-
|
|
30459
|
-
|
|
30460
|
-
|
|
30461
|
-
|
|
30462
|
-
},
|
|
30463
|
-
|
|
30464
|
-
|
|
30465
|
-
|
|
30466
|
-
|
|
30609
|
+
/* @__PURE__ */ jsx(ControlWrapper, _object_spread_props$5(_object_spread$5({
|
|
30610
|
+
label,
|
|
30611
|
+
tweakStyles: tweakControlWrapperStyles,
|
|
30612
|
+
isFocused: hasFocus,
|
|
30613
|
+
isDisabled,
|
|
30614
|
+
hasValue,
|
|
30615
|
+
isFullWidth: true,
|
|
30616
|
+
testId
|
|
30617
|
+
}, controlProps), {
|
|
30618
|
+
children: /* @__PURE__ */ jsx("div", _object_spread_props$5(_object_spread$5({
|
|
30619
|
+
className: clsx(classes.wrapper, _define_property$5({}, classes.autoSized, isAutoSized))
|
|
30620
|
+
}, isAutoSized && {
|
|
30621
|
+
"data-value": value
|
|
30622
|
+
}), {
|
|
30623
|
+
children: /* @__PURE__ */ jsx("textarea", _object_spread$5({
|
|
30624
|
+
ref,
|
|
30625
|
+
className: classes.textarea,
|
|
30626
|
+
value,
|
|
30627
|
+
disabled: isDisabled,
|
|
30628
|
+
placeholder: hasPlaceholder ? placeholder : void 0,
|
|
30629
|
+
maxLength: shouldTrimAfterMaxLength ? maxLength : void 0,
|
|
30630
|
+
name,
|
|
30631
|
+
rows,
|
|
30632
|
+
onPaste,
|
|
30633
|
+
onFocus: handleFocus,
|
|
30634
|
+
onBlur: handleBlur,
|
|
30635
|
+
onChange: handleChange
|
|
30636
|
+
}, trueReactPlatformHelpers.addDataAttributes(data, testId, "control")))
|
|
30637
|
+
}))
|
|
30638
|
+
})),
|
|
30639
|
+
hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
30640
|
+
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
30467
30641
|
children: [
|
|
30468
|
-
|
|
30469
|
-
|
|
30470
|
-
|
|
30471
|
-
}),
|
|
30472
|
-
!hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
|
|
30473
|
-
className: classes.error,
|
|
30474
|
-
children: errorMessage
|
|
30475
|
-
}),
|
|
30476
|
-
hasCounter && trueReactPlatformHelpers.isNotEmpty(maxLength) && /* @__PURE__ */ jsxs("span", {
|
|
30477
|
-
className: clsx(classes.symbolsCount, _define_property$5({}, classes.symbolsCountError, value.length > maxLength)),
|
|
30478
|
-
children: [
|
|
30479
|
-
value.length,
|
|
30480
|
-
" / ",
|
|
30481
|
-
maxLength
|
|
30482
|
-
]
|
|
30483
|
-
})
|
|
30642
|
+
value.length,
|
|
30643
|
+
" / ",
|
|
30644
|
+
maxLength
|
|
30484
30645
|
]
|
|
30485
|
-
}),
|
|
30486
|
-
hasInfoMessage && hasErrorMessage && /* @__PURE__ */ jsx("div", {
|
|
30487
|
-
className: classes.error,
|
|
30488
|
-
children: errorMessage
|
|
30489
30646
|
})
|
|
30490
30647
|
]
|
|
30491
|
-
})
|
|
30648
|
+
});
|
|
30492
30649
|
});
|
|
30493
30650
|
var useStyles$3 = createThemedStyles("TextButton", {
|
|
30494
30651
|
root: {
|
|
@@ -31197,11 +31354,6 @@
|
|
|
31197
31354
|
}
|
|
31198
31355
|
}));
|
|
31199
31356
|
};
|
|
31200
|
-
var withPopupStyles = {
|
|
31201
|
-
popup: {
|
|
31202
|
-
zIndex: 9999
|
|
31203
|
-
}
|
|
31204
|
-
};
|
|
31205
31357
|
function _define_property(obj, key, value) {
|
|
31206
31358
|
if (key in obj) {
|
|
31207
31359
|
Object.defineProperty(obj, key, {
|
|
@@ -31287,7 +31439,7 @@
|
|
|
31287
31439
|
return target;
|
|
31288
31440
|
}
|
|
31289
31441
|
var WithTooltip = function(_param) {
|
|
31290
|
-
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled,
|
|
31442
|
+
var children = _param.children, _param_eventType = _param.eventType, eventType = _param_eventType === void 0 ? "hover" : _param_eventType, _param_placement = _param.placement, placement = _param_placement === void 0 ? "top" : _param_placement, tooltipText = _param.tooltipText, _param_tooltipView = _param.tooltipView, tooltipView = _param_tooltipView === void 0 ? "tooltip" : _param_tooltipView, _param_tooltipType = _param.tooltipType, tooltipType = _param_tooltipType === void 0 ? "info" : _param_tooltipType, _param_isDisabled = _param.isDisabled, isDisabled = _param_isDisabled === void 0 ? false : _param_isDisabled, tweakStyles = _param.tweakStyles, restProps = _object_without_properties(_param, [
|
|
31291
31443
|
"children",
|
|
31292
31444
|
"eventType",
|
|
31293
31445
|
"placement",
|
|
@@ -31295,29 +31447,22 @@
|
|
|
31295
31447
|
"tooltipView",
|
|
31296
31448
|
"tooltipType",
|
|
31297
31449
|
"isDisabled",
|
|
31298
|
-
"popupData",
|
|
31299
31450
|
"tweakStyles"
|
|
31300
31451
|
]);
|
|
31301
31452
|
var tweakWithPopupStyles = useTweakStyles({
|
|
31302
|
-
innerStyles: withPopupStyles,
|
|
31303
31453
|
tweakStyles,
|
|
31304
|
-
className: "tweakWithPopup"
|
|
31305
|
-
currentComponentName: "WithTooltip"
|
|
31454
|
+
className: "tweakWithPopup"
|
|
31306
31455
|
});
|
|
31307
31456
|
var tweakTooltipStyles = useTweakStyles({
|
|
31308
31457
|
tweakStyles,
|
|
31309
|
-
className: "tweakTooltip"
|
|
31310
|
-
currentComponentName: "WithTooltip"
|
|
31458
|
+
className: "tweakTooltip"
|
|
31311
31459
|
});
|
|
31312
31460
|
return /* @__PURE__ */ jsx(WithPopup, _object_spread_props(_object_spread({
|
|
31313
31461
|
trigger: children,
|
|
31314
31462
|
placement,
|
|
31315
31463
|
eventType,
|
|
31316
|
-
popupData: _object_spread_props(_object_spread({}, popupData), {
|
|
31317
|
-
tooltipView
|
|
31318
|
-
}),
|
|
31319
|
-
isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
|
|
31320
31464
|
isTriggerWrapped: true,
|
|
31465
|
+
isDisabled: isDisabled || !trueReactPlatformHelpers.isReactNodeNotEmpty(tooltipText),
|
|
31321
31466
|
tweakStyles: tweakWithPopupStyles
|
|
31322
31467
|
}, restProps), {
|
|
31323
31468
|
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
@@ -31335,6 +31480,7 @@
|
|
|
31335
31480
|
exports2.Checkbox = Checkbox;
|
|
31336
31481
|
exports2.CloseButton = CloseButton;
|
|
31337
31482
|
exports2.Colors = Colors;
|
|
31483
|
+
exports2.ControlWrapper = ControlWrapper;
|
|
31338
31484
|
exports2.CssBaseline = CssBaseline;
|
|
31339
31485
|
exports2.DEFAULT_PHONE_MASK = DEFAULT_PHONE_MASK;
|
|
31340
31486
|
exports2.DateInput = DateInput;
|
|
@@ -31360,6 +31506,7 @@
|
|
|
31360
31506
|
exports2.IconButton = IconButton;
|
|
31361
31507
|
exports2.IncrementInput = IncrementInput;
|
|
31362
31508
|
exports2.Input = Input;
|
|
31509
|
+
exports2.InputBase = InputBase;
|
|
31363
31510
|
exports2.List = List;
|
|
31364
31511
|
exports2.ListItem = ListItem;
|
|
31365
31512
|
exports2.Modal = Modal;
|
|
@@ -31389,6 +31536,7 @@
|
|
|
31389
31536
|
exports2.ThemedPreloader = ThemedPreloader;
|
|
31390
31537
|
exports2.Toaster = Toaster;
|
|
31391
31538
|
exports2.Tooltip = Tooltip;
|
|
31539
|
+
exports2.WithMessages = WithMessages;
|
|
31392
31540
|
exports2.WithPopup = WithPopup;
|
|
31393
31541
|
exports2.WithTooltip = WithTooltip;
|
|
31394
31542
|
exports2.addDataAttributes = addDataAttributes;
|