@true-engineering/true-react-common-ui-kit 3.9.0 → 3.9.2
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/README.md +13 -1
- package/dist/components/AccountInfo/AccountInfo.d.ts +11 -11
- package/dist/components/AccountInfo/AccountInfo.stories.d.ts +6 -8
- 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 -8
- 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 +1 -1
- 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 +23 -23
- package/dist/components/Checkbox/Checkbox.stories.d.ts +5 -5
- 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 +9 -9
- 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/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 -8
- 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 -8
- 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 -18
- 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/FiltersPane/FiltersPane.d.ts +22 -22
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -33
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +9 -9
- package/dist/components/FiltersPane/components/Filter/Filter.d.ts +12 -12
- 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 +29 -29
- 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 +14 -14
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +6 -6
- package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +21 -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 +107 -107
- package/dist/components/Flag/Flag.d.ts +8 -8
- package/dist/components/Flag/Flag.stories.d.ts +12 -14
- 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 +22 -22
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +15 -18
- 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 +28 -28
- 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 +1 -1
- 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 +44 -44
- 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 +3 -3
- 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/IncrementInput/IncrementInput.d.ts +9 -9
- package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -8
- 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 +52 -52
- package/dist/components/Input/Input.stories.d.ts +34 -35
- package/dist/components/Input/Input.styles.d.ts +7 -7
- package/dist/components/Input/constants.d.ts +1 -1
- package/dist/components/Input/index.d.ts +3 -3
- package/dist/components/Input/types.d.ts +4 -4
- package/dist/components/List/List.d.ts +9 -9
- package/dist/components/List/List.stories.d.ts +5 -6
- package/dist/components/List/List.styles.d.ts +3 -3
- package/dist/components/List/components/ListItem/ListItem.d.ts +15 -15
- 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 +32 -32
- package/dist/components/Modal/Modal.stories.d.ts +29 -30
- package/dist/components/Modal/Modal.styles.d.ts +6 -6
- 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 -8
- 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 -14
- 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 +15 -15
- package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -14
- 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 +15 -15
- 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 -8
- 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 -30
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +13 -13
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -6
- 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 +15 -15
- package/dist/components/RadioButton/RadioButton.d.ts +15 -15
- package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -8
- 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 -382
- 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 -6
- package/dist/components/SearchInput/SearchInput.stories.d.ts +13 -8
- 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 -14
- package/dist/components/Select/MultiSelect.stories.d.ts +15 -18
- package/dist/components/Select/Select.d.ts +47 -47
- package/dist/components/Select/Select.stories.d.ts +15 -18
- package/dist/components/Select/Select.styles.d.ts +33 -33
- package/dist/components/Select/components/SelectList/SelectList.d.ts +22 -22
- 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 +14 -14
- 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 +7 -7
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/types.d.ts +1 -1
- package/dist/components/Selector/Selector.d.ts +22 -22
- package/dist/components/Selector/Selector.stories.d.ts +7 -8
- 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 -8
- 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 +12 -12
- package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -19
- package/dist/components/SmartInput/constants.d.ts +18 -18
- package/dist/components/SmartInput/helpers.d.ts +4 -4
- package/dist/components/SmartInput/index.d.ts +2 -2
- package/dist/components/SmartInput/types.d.ts +1 -1
- package/dist/components/Status/Status.d.ts +16 -16
- package/dist/components/Status/Status.stories.d.ts +6 -8
- 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 -17
- 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 +36 -36
- package/dist/components/TextArea/TextArea.stories.d.ts +16 -18
- package/dist/components/TextArea/TextArea.styles.d.ts +3 -3
- package/dist/components/TextArea/index.d.ts +2 -2
- package/dist/components/TextButton/TextButton.d.ts +30 -30
- package/dist/components/TextButton/TextButton.stories.d.ts +5 -6
- package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
- package/dist/components/TextButton/index.d.ts +3 -3
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
- package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -13
- 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 +26 -26
- package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -26
- 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 -18
- 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 -6
- 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 -6
- 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/WithPopup/WithPopup.d.ts +30 -30
- package/dist/components/WithPopup/WithPopup.stories.d.ts +16 -18
- 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 +2 -2
- package/dist/components/index.d.ts +42 -42
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/phone-info.d.ts +2 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/misc.d.ts +19 -19
- 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 +98 -98
- package/dist/theme/helpers.d.ts +10 -10
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/types.d.ts +79 -79
- package/dist/true-react-common-ui-kit.js +75 -212
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +82 -219
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +19 -19
- package/package.json +97 -96
- package/src/components/AccountInfo/AccountInfo.styles.ts +51 -51
- package/src/components/AccountInfo/constants.ts +1 -1
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.styles.ts +200 -200
- package/src/components/Button/constants.ts +9 -9
- package/src/components/Button/index.ts +3 -3
- package/src/components/Button/types.ts +5 -5
- package/src/components/Checkbox/Checkbox.styles.ts +47 -47
- package/src/components/Checkbox/Checkbox.tsx +88 -88
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.styles.ts +33 -33
- package/src/components/CloseButton/index.ts +2 -2
- 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/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 +18 -18
- 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/components/DatePickerHeader/DatePickerHeader.styles.ts +88 -88
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +89 -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 +45 -45
- package/src/components/Description/Description.styles.ts +30 -30
- package/src/components/Description/constants.ts +1 -1
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FiltersPane.stories.tsx +287 -287
- package/src/components/FiltersPane/FiltersPane.styles.ts +87 -87
- package/src/components/FiltersPane/components/Filter/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +61 -61
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +154 -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 +140 -140
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +354 -354
- 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/index.tsx +2 -2
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
- 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/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +115 -115
- package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +117 -117
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +165 -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 +156 -156
- package/src/components/Flag/Flag.styles.ts +17 -17
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
- 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 +1 -1
- package/src/components/FlexibleTable/index.ts +4 -4
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +26 -26
- package/src/components/Icon/complexIcons/icons.ts +5 -5
- 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 +856 -856
- 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/IncrementInput/IncrementInput.stories.tsx +31 -31
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +86 -86
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/constants.ts +1 -1
- package/src/components/Input/index.ts +3 -3
- package/src/components/List/List.styles.ts +51 -51
- package/src/components/List/components/ListItem/ListItem.styles.ts +47 -47
- 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.styles.ts +303 -303
- 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.tsx +93 -93
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- 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 +136 -136
- 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 +73 -73
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +38 -38
- package/src/components/NewMoreMenu/NewMoreMenu.tsx +80 -80
- package/src/components/NewMoreMenu/index.ts +2 -2
- package/src/components/Notification/Notification.styles.ts +55 -55
- package/src/components/Notification/index.ts +3 -3
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +35 -35
- package/src/components/NumberInput/helpers.ts +86 -86
- package/src/components/PhoneInput/PhoneInput.stories.tsx +70 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +89 -89
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +103 -103
- 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/RadioButton/RadioButton.styles.ts +37 -37
- 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/SearchInput/SearchInput.stories.tsx +23 -23
- package/src/components/SearchInput/SearchInput.styles.ts +50 -50
- package/src/components/SearchInput/SearchInput.tsx +56 -56
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/Select.styles.ts +146 -146
- package/src/components/Select/Select.tsx +609 -609
- package/src/components/Select/components/SelectList/SelectList.styles.ts +71 -71
- package/src/components/Select/components/SelectList/SelectList.tsx +156 -156
- 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 +72 -72
- package/src/components/Select/components/SelectListItem/index.ts +1 -1
- package/src/components/Select/components/index.ts +2 -2
- package/src/components/Select/helpers.ts +27 -27
- package/src/components/Select/index.ts +4 -4
- 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 -51
- package/src/components/SmartInput/constants.ts +84 -84
- package/src/components/SmartInput/helpers.ts +13 -13
- package/src/components/SmartInput/index.ts +2 -2
- package/src/components/SmartInput/types.ts +11 -11
- package/src/components/Switch/Switch.styles.ts +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 -35
- package/src/components/TextArea/TextArea.styles.ts +157 -157
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
- package/src/components/TextWithInfo/index.ts +2 -2
- 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.styles.ts +26 -26
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- 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.styles.ts +60 -60
- 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.styles.ts +49 -49
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/WithPopup/WithPopup.stories.tsx +77 -77
- package/src/components/WithPopup/WithPopup.styles.ts +21 -21
- package/src/components/WithPopup/WithPopup.tsx +130 -129
- package/src/components/WithPopup/constants.ts +3 -3
- package/src/components/WithPopup/index.ts +2 -2
- package/src/components/WithPopup/types.ts +3 -3
- package/src/components/index.ts +42 -42
- package/src/constants/index.ts +1 -1
- package/src/constants/phone-info.ts +2147 -2147
- package/src/helpers/index.ts +3 -3
- package/src/helpers/misc.ts +158 -158
- package/src/helpers/phone.ts +91 -91
- package/src/hooks/index.ts +7 -7
- package/src/hooks/use-did-mount-effect.ts +18 -18
- 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 +161 -161
- package/src/theme/index.ts +4 -4
- package/src/theme/types.ts +151 -151
- package/src/types.ts +26 -26
|
@@ -80,28 +80,28 @@
|
|
|
80
80
|
return null;
|
|
81
81
|
}
|
|
82
82
|
var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
83
|
-
function error(
|
|
83
|
+
function error(format) {
|
|
84
84
|
{
|
|
85
85
|
{
|
|
86
86
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
87
87
|
args[_key2 - 1] = arguments[_key2];
|
|
88
88
|
}
|
|
89
|
-
printWarning("error",
|
|
89
|
+
printWarning("error", format, args);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function printWarning(level,
|
|
93
|
+
function printWarning(level, format, args) {
|
|
94
94
|
{
|
|
95
95
|
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
96
96
|
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
97
97
|
if (stack !== "") {
|
|
98
|
-
|
|
98
|
+
format += "%s";
|
|
99
99
|
args = args.concat([stack]);
|
|
100
100
|
}
|
|
101
101
|
var argsWithFormat = args.map(function(item) {
|
|
102
102
|
return String(item);
|
|
103
103
|
});
|
|
104
|
-
argsWithFormat.unshift("Warning: " +
|
|
104
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
105
105
|
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -4656,8 +4656,8 @@
|
|
|
4656
4656
|
return v.startsWith(checkValue);
|
|
4657
4657
|
});
|
|
4658
4658
|
};
|
|
4659
|
-
var _phone_dialCode, _phone_phoneNumber;
|
|
4660
4659
|
var getFullPhone = function(phone) {
|
|
4660
|
+
var _phone_dialCode, _phone_phoneNumber;
|
|
4661
4661
|
return ((_phone_dialCode = phone === null || phone === void 0 ? void 0 : phone.dialCode) !== null && _phone_dialCode !== void 0 ? _phone_dialCode : "") + ((_phone_phoneNumber = phone === null || phone === void 0 ? void 0 : phone.phoneNumber) !== null && _phone_phoneNumber !== void 0 ? _phone_phoneNumber : "");
|
|
4662
4662
|
};
|
|
4663
4663
|
var getCountryCodeFromPhone = function(phoneWithCode) {
|
|
@@ -4669,10 +4669,10 @@
|
|
|
4669
4669
|
})) === null || _phoneInfo_find === void 0 ? void 0 : _phoneInfo_find.countryCode;
|
|
4670
4670
|
if (trueReactPlatformHelpers.isEmpty(countryCode) && trueReactPlatformHelpers.isNotEmpty(phoneWithCode)) {
|
|
4671
4671
|
var _phoneInfo_filter_sort_;
|
|
4672
|
-
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4673
4672
|
countryCode = (_phoneInfo_filter_sort_ = phoneInfo.filter(function(info) {
|
|
4674
4673
|
return phoneWithCode.startsWith(info.dialCode);
|
|
4675
4674
|
}).sort(function(infoA, infoB) {
|
|
4675
|
+
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4676
4676
|
return ((_infoA_dialCodePriority = infoA.dialCodePriority) !== null && _infoA_dialCodePriority !== void 0 ? _infoA_dialCodePriority : 1e3) - ((_infoB_dialCodePriority = infoB.dialCodePriority) !== null && _infoB_dialCodePriority !== void 0 ? _infoB_dialCodePriority : 1e3);
|
|
4677
4677
|
})[0]) === null || _phoneInfo_filter_sort_ === void 0 ? void 0 : _phoneInfo_filter_sort_.countryCode;
|
|
4678
4678
|
}
|
|
@@ -4783,8 +4783,8 @@
|
|
|
4783
4783
|
}
|
|
4784
4784
|
return hasExactParent(parentNode, parent);
|
|
4785
4785
|
};
|
|
4786
|
-
var _element_parentNode;
|
|
4787
4786
|
var getParentNode$1 = function(element) {
|
|
4787
|
+
var _element_parentNode;
|
|
4788
4788
|
return element.nodeName === "HTML" || element === document ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host;
|
|
4789
4789
|
};
|
|
4790
4790
|
var getStyleComputedProperty = function(element) {
|
|
@@ -4980,21 +4980,19 @@
|
|
|
4980
4980
|
return target;
|
|
4981
4981
|
}
|
|
4982
4982
|
function useMounted() {
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
});
|
|
4987
|
-
React.useEffect(function() {
|
|
4983
|
+
const mounted = React.useRef(true);
|
|
4984
|
+
const isMounted = React.useRef(() => mounted.current);
|
|
4985
|
+
React.useEffect(() => {
|
|
4988
4986
|
mounted.current = true;
|
|
4989
|
-
return
|
|
4987
|
+
return () => {
|
|
4990
4988
|
mounted.current = false;
|
|
4991
4989
|
};
|
|
4992
4990
|
}, []);
|
|
4993
4991
|
return isMounted.current;
|
|
4994
4992
|
}
|
|
4995
4993
|
function useSafeState(state) {
|
|
4996
|
-
|
|
4997
|
-
return [state[0], React.useCallback(
|
|
4994
|
+
const isMounted = useMounted();
|
|
4995
|
+
return [state[0], React.useCallback((nextState) => {
|
|
4998
4996
|
if (!isMounted())
|
|
4999
4997
|
return;
|
|
5000
4998
|
return state[1](nextState);
|
|
@@ -5278,15 +5276,7 @@
|
|
|
5278
5276
|
return;
|
|
5279
5277
|
}
|
|
5280
5278
|
}
|
|
5281
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5282
|
-
if (!isHTMLElement(arrowElement)) {
|
|
5283
|
-
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', "To use an SVG arrow, wrap it in an HTMLElement that will be used as", "the arrow."].join(" "));
|
|
5284
|
-
}
|
|
5285
|
-
}
|
|
5286
5279
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
5287
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5288
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
5289
|
-
}
|
|
5290
5280
|
return;
|
|
5291
5281
|
}
|
|
5292
5282
|
state.elements.arrow = arrowElement;
|
|
@@ -5387,14 +5377,6 @@
|
|
|
5387
5377
|
function computeStyles(_ref5) {
|
|
5388
5378
|
var state = _ref5.state, options = _ref5.options;
|
|
5389
5379
|
var _options$gpuAccelerat = options.gpuAcceleration, gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat, _options$adaptive = options.adaptive, adaptive = _options$adaptive === void 0 ? true : _options$adaptive, _options$roundOffsets = options.roundOffsets, roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
5390
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5391
|
-
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || "";
|
|
5392
|
-
if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function(property) {
|
|
5393
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
5394
|
-
})) {
|
|
5395
|
-
console.warn(["Popper: Detected CSS transitions on at least one of the following", 'CSS properties: "transform", "top", "right", "bottom", "left".', "\n\n", 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', "for smooth transitions, or remove these properties from the CSS", "transition declaration on the popper element if only transitioning", "opacity or background-color for example.", "\n\n", "We recommend using the popper element as a wrapper around an inner", "element that can have any CSS property transitioned for animations."].join(" "));
|
|
5396
|
-
}
|
|
5397
|
-
}
|
|
5398
5380
|
var commonStyles = {
|
|
5399
5381
|
placement: getBasePlacement(state.placement),
|
|
5400
5382
|
variation: getVariation(state.placement),
|
|
@@ -5723,9 +5705,6 @@
|
|
|
5723
5705
|
});
|
|
5724
5706
|
if (allowedPlacements.length === 0) {
|
|
5725
5707
|
allowedPlacements = placements$1;
|
|
5726
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5727
|
-
console.error(["Popper: The `allowedAutoPlacements` option did not allow any", "placements. Ensure the `placement` option matches the variation", "of the allowed placements.", 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(" "));
|
|
5728
|
-
}
|
|
5729
5708
|
}
|
|
5730
5709
|
var overflows = allowedPlacements.reduce(function(acc, placement2) {
|
|
5731
5710
|
acc[placement2] = detectOverflow(state, {
|
|
@@ -6147,86 +6126,6 @@
|
|
|
6147
6126
|
return pending;
|
|
6148
6127
|
};
|
|
6149
6128
|
}
|
|
6150
|
-
function format(str) {
|
|
6151
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6152
|
-
args[_key - 1] = arguments[_key];
|
|
6153
|
-
}
|
|
6154
|
-
return [].concat(args).reduce(function(p, c) {
|
|
6155
|
-
return p.replace(/%s/, c);
|
|
6156
|
-
}, str);
|
|
6157
|
-
}
|
|
6158
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
6159
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
6160
|
-
var VALID_PROPERTIES = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
6161
|
-
function validateModifiers(modifiers) {
|
|
6162
|
-
modifiers.forEach(function(modifier) {
|
|
6163
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES).filter(function(value, index, self2) {
|
|
6164
|
-
return self2.indexOf(value) === index;
|
|
6165
|
-
}).forEach(function(key) {
|
|
6166
|
-
switch (key) {
|
|
6167
|
-
case "name":
|
|
6168
|
-
if (typeof modifier.name !== "string") {
|
|
6169
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', '"' + String(modifier.name) + '"'));
|
|
6170
|
-
}
|
|
6171
|
-
break;
|
|
6172
|
-
case "enabled":
|
|
6173
|
-
if (typeof modifier.enabled !== "boolean") {
|
|
6174
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', '"' + String(modifier.enabled) + '"'));
|
|
6175
|
-
}
|
|
6176
|
-
break;
|
|
6177
|
-
case "phase":
|
|
6178
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
6179
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(", "), '"' + String(modifier.phase) + '"'));
|
|
6180
|
-
}
|
|
6181
|
-
break;
|
|
6182
|
-
case "fn":
|
|
6183
|
-
if (typeof modifier.fn !== "function") {
|
|
6184
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6185
|
-
}
|
|
6186
|
-
break;
|
|
6187
|
-
case "effect":
|
|
6188
|
-
if (modifier.effect != null && typeof modifier.effect !== "function") {
|
|
6189
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6190
|
-
}
|
|
6191
|
-
break;
|
|
6192
|
-
case "requires":
|
|
6193
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
6194
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', '"' + String(modifier.requires) + '"'));
|
|
6195
|
-
}
|
|
6196
|
-
break;
|
|
6197
|
-
case "requiresIfExists":
|
|
6198
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
6199
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', '"' + String(modifier.requiresIfExists) + '"'));
|
|
6200
|
-
}
|
|
6201
|
-
break;
|
|
6202
|
-
case "options":
|
|
6203
|
-
case "data":
|
|
6204
|
-
break;
|
|
6205
|
-
default:
|
|
6206
|
-
console.error('PopperJS: an invalid property has been provided to the "' + modifier.name + '" modifier, valid properties are ' + VALID_PROPERTIES.map(function(s) {
|
|
6207
|
-
return '"' + s + '"';
|
|
6208
|
-
}).join(", ") + '; but "' + key + '" was provided.');
|
|
6209
|
-
}
|
|
6210
|
-
modifier.requires && modifier.requires.forEach(function(requirement) {
|
|
6211
|
-
if (modifiers.find(function(mod) {
|
|
6212
|
-
return mod.name === requirement;
|
|
6213
|
-
}) == null) {
|
|
6214
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
6215
|
-
}
|
|
6216
|
-
});
|
|
6217
|
-
});
|
|
6218
|
-
});
|
|
6219
|
-
}
|
|
6220
|
-
function uniqueBy(arr, fn) {
|
|
6221
|
-
var identifiers = /* @__PURE__ */ new Set();
|
|
6222
|
-
return arr.filter(function(item) {
|
|
6223
|
-
var identifier = fn(item);
|
|
6224
|
-
if (!identifiers.has(identifier)) {
|
|
6225
|
-
identifiers.add(identifier);
|
|
6226
|
-
return true;
|
|
6227
|
-
}
|
|
6228
|
-
});
|
|
6229
|
-
}
|
|
6230
6129
|
function mergeByName(modifiers) {
|
|
6231
6130
|
var merged = modifiers.reduce(function(merged2, current) {
|
|
6232
6131
|
var existing = merged2[current.name];
|
|
@@ -6240,8 +6139,6 @@
|
|
|
6240
6139
|
return merged[key];
|
|
6241
6140
|
});
|
|
6242
6141
|
}
|
|
6243
|
-
var INVALID_ELEMENT_ERROR = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";
|
|
6244
|
-
var INFINITE_LOOP_ERROR = "Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.";
|
|
6245
6142
|
var DEFAULT_OPTIONS = {
|
|
6246
6143
|
placement: "bottom",
|
|
6247
6144
|
modifiers: [],
|
|
@@ -6292,28 +6189,6 @@
|
|
|
6292
6189
|
state.orderedModifiers = orderedModifiers.filter(function(m) {
|
|
6293
6190
|
return m.enabled;
|
|
6294
6191
|
});
|
|
6295
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6296
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function(_ref) {
|
|
6297
|
-
var name = _ref.name;
|
|
6298
|
-
return name;
|
|
6299
|
-
});
|
|
6300
|
-
validateModifiers(modifiers);
|
|
6301
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
6302
|
-
var flipModifier = state.orderedModifiers.find(function(_ref2) {
|
|
6303
|
-
var name = _ref2.name;
|
|
6304
|
-
return name === "flip";
|
|
6305
|
-
});
|
|
6306
|
-
if (!flipModifier) {
|
|
6307
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
6308
|
-
}
|
|
6309
|
-
}
|
|
6310
|
-
var _getComputedStyle = getComputedStyle$1(popper2), marginTop = _getComputedStyle.marginTop, marginRight = _getComputedStyle.marginRight, marginBottom = _getComputedStyle.marginBottom, marginLeft = _getComputedStyle.marginLeft;
|
|
6311
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function(margin) {
|
|
6312
|
-
return parseFloat(margin);
|
|
6313
|
-
})) {
|
|
6314
|
-
console.warn(['Popper: CSS "margin" styles cannot be used to apply padding', "between the popper and its reference element or boundary.", "To replicate margin, use the `offset` modifier, as well as", "the `padding` option in the `preventOverflow` and `flip`", "modifiers."].join(" "));
|
|
6315
|
-
}
|
|
6316
|
-
}
|
|
6317
6192
|
runModifierEffects();
|
|
6318
6193
|
return instance.update();
|
|
6319
6194
|
},
|
|
@@ -6328,9 +6203,6 @@
|
|
|
6328
6203
|
}
|
|
6329
6204
|
var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
|
|
6330
6205
|
if (!areValidElements(reference3, popper3)) {
|
|
6331
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6332
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6333
|
-
}
|
|
6334
6206
|
return;
|
|
6335
6207
|
}
|
|
6336
6208
|
state.rects = {
|
|
@@ -6342,15 +6214,7 @@
|
|
|
6342
6214
|
state.orderedModifiers.forEach(function(modifier) {
|
|
6343
6215
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
6344
6216
|
});
|
|
6345
|
-
var __debug_loops__ = 0;
|
|
6346
6217
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
6347
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6348
|
-
__debug_loops__ += 1;
|
|
6349
|
-
if (__debug_loops__ > 100) {
|
|
6350
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
6351
|
-
break;
|
|
6352
|
-
}
|
|
6353
|
-
}
|
|
6354
6218
|
if (state.reset === true) {
|
|
6355
6219
|
state.reset = false;
|
|
6356
6220
|
index = -1;
|
|
@@ -6381,9 +6245,6 @@
|
|
|
6381
6245
|
}
|
|
6382
6246
|
};
|
|
6383
6247
|
if (!areValidElements(reference2, popper2)) {
|
|
6384
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6385
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6386
|
-
}
|
|
6387
6248
|
return instance;
|
|
6388
6249
|
}
|
|
6389
6250
|
instance.setOptions(options).then(function(state2) {
|
|
@@ -6392,8 +6253,8 @@
|
|
|
6392
6253
|
}
|
|
6393
6254
|
});
|
|
6394
6255
|
function runModifierEffects() {
|
|
6395
|
-
state.orderedModifiers.forEach(function(
|
|
6396
|
-
var name =
|
|
6256
|
+
state.orderedModifiers.forEach(function(_ref) {
|
|
6257
|
+
var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect2 = _ref.effect;
|
|
6397
6258
|
if (typeof effect2 === "function") {
|
|
6398
6259
|
var cleanupFn = effect2({
|
|
6399
6260
|
state,
|
|
@@ -6666,7 +6527,7 @@
|
|
|
6666
6527
|
var useTweakStyles = function(param) {
|
|
6667
6528
|
var innerStyles = param.innerStyles, currentComponentTweakStyles = param.tweakStyles, className = param.className, currentComponentName = param.currentComponentName;
|
|
6668
6529
|
return React.useMemo(function() {
|
|
6669
|
-
var
|
|
6530
|
+
var _theme_components_currentComponentName, _theme_components;
|
|
6670
6531
|
var theme = getTheme();
|
|
6671
6532
|
var themeStyles = trueReactPlatformHelpers.isNotEmpty(currentComponentName) ? (_theme_components = theme.components) === null || _theme_components === void 0 ? void 0 : (_theme_components_currentComponentName = _theme_components[currentComponentName]) === null || _theme_components_currentComponentName === void 0 ? void 0 : _theme_components_currentComponentName[className] : void 0;
|
|
6672
6533
|
var tweakStyles = currentComponentTweakStyles === null || currentComponentTweakStyles === void 0 ? void 0 : currentComponentTweakStyles[className];
|
|
@@ -7743,7 +7604,7 @@
|
|
|
7743
7604
|
return _object_spread$W({}, iconsList, theme.icons);
|
|
7744
7605
|
}, []);
|
|
7745
7606
|
var icon = icons[type];
|
|
7746
|
-
var _icon_viewBox
|
|
7607
|
+
var _icon_viewBox;
|
|
7747
7608
|
return /* @__PURE__ */ jsxs("svg", {
|
|
7748
7609
|
width: "100%",
|
|
7749
7610
|
height: "100%",
|
|
@@ -7752,7 +7613,8 @@
|
|
|
7752
7613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7753
7614
|
children: [
|
|
7754
7615
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7755
|
-
|
|
7616
|
+
var _path_fill, _path_stroke;
|
|
7617
|
+
return jsx("path", _object_spread$W({
|
|
7756
7618
|
fillRule: "evenodd",
|
|
7757
7619
|
clipRule: "evenodd",
|
|
7758
7620
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -9848,7 +9710,7 @@
|
|
|
9848
9710
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9849
9711
|
return _array_like_to_array$m(o, minLen);
|
|
9850
9712
|
}
|
|
9851
|
-
|
|
9713
|
+
function _ts_generator$5(thisArg, body) {
|
|
9852
9714
|
var f, y, t, g, _ = {
|
|
9853
9715
|
label: 0,
|
|
9854
9716
|
sent: function() {
|
|
@@ -9949,7 +9811,7 @@
|
|
|
9949
9811
|
done: true
|
|
9950
9812
|
};
|
|
9951
9813
|
}
|
|
9952
|
-
}
|
|
9814
|
+
}
|
|
9953
9815
|
var Input = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
9954
9816
|
var _param_value = _param.value, value = _param_value === void 0 ? "" : _param_value, label = _param.label, placeholder = _param.placeholder, _param_type = _param.type, type = _param_type === void 0 ? "text" : _param_type, isDisabled = _param.isDisabled, _param_isReadonly = _param.isReadonly, isReadonly = _param_isReadonly === void 0 ? false : _param_isReadonly, _param_hasFloatingLabel = _param.hasFloatingLabel, hasFloatingLabel = _param_hasFloatingLabel === void 0 ? true : _param_hasFloatingLabel, _param_isInvalid = _param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isActive = _param.isActive, isActive = _param_isActive === void 0 ? false : _param_isActive, _param_isClearable = _param.isClearable, isClearable = _param_isClearable === void 0 ? false : _param_isClearable, infoMessage = _param.infoMessage, errorMessage = _param.errorMessage, _param_errorPosition = _param.errorPosition, errorPosition = _param_errorPosition === void 0 ? "bottom" : _param_errorPosition, inlineStyle = _param.inlineStyle, border = _param.border, _param_isRequired = _param.isRequired, isRequired = _param_isRequired === void 0 ? false : _param_isRequired, _param_isLoading = _param.isLoading, isLoading = _param_isLoading === void 0 ? false : _param_isLoading, _param_isAutoSizeable = _param.isAutoSizeable, isAutoSizeable = _param_isAutoSizeable === void 0 ? false : _param_isAutoSizeable, _param_defaultSize = _param.defaultSize, defaultSize = _param_defaultSize === void 0 ? DEFAULT_SIZE : _param_defaultSize, iconType = _param.iconType, hasRequiredLabel = _param.hasRequiredLabel, data = _param.data, tweakStyles = _param.tweakStyles, _param_shouldFocusOnMount = _param.shouldFocusOnMount, shouldFocusOnMount = _param_shouldFocusOnMount === void 0 ? false : _param_shouldFocusOnMount, units = _param.units, testId = _param.testId, onChange = _param.onChange, onFocus = _param.onFocus, onBlur = _param.onBlur, onIconClick = _param.onIconClick, mask = _param.mask, maskPlaceholder = _param.maskPlaceholder, alwaysShowMask = _param.alwaysShowMask, _param_shouldAlwaysShowPlaceholder = _param.shouldAlwaysShowPlaceholder, shouldAlwaysShowPlaceholder = _param_shouldAlwaysShowPlaceholder === void 0 ? false : _param_shouldAlwaysShowPlaceholder, beforeMaskedStateChange = _param.beforeMaskedStateChange, inputProps = _object_without_properties$d(_param, [
|
|
9955
9817
|
"value",
|
|
@@ -10012,7 +9874,7 @@
|
|
|
10012
9874
|
var handleOnInputClear = function() {
|
|
10013
9875
|
var _ref = _async_to_generator$5(function(event) {
|
|
10014
9876
|
var _input_current, input;
|
|
10015
|
-
return
|
|
9877
|
+
return _ts_generator$5(this, function(_state) {
|
|
10016
9878
|
switch (_state.label) {
|
|
10017
9879
|
case 0:
|
|
10018
9880
|
return [
|
|
@@ -10908,8 +10770,8 @@
|
|
|
10908
10770
|
var multiSelectValue = activeValue;
|
|
10909
10771
|
var _multiSelectValue_length;
|
|
10910
10772
|
var selectedOptionsCount = (_multiSelectValue_length = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.length) !== null && _multiSelectValue_length !== void 0 ? _multiSelectValue_length : 0;
|
|
10911
|
-
var _multiSelectValue_map;
|
|
10912
10773
|
var activeOptionsIdMap = React.useMemo(function() {
|
|
10774
|
+
var _multiSelectValue_map;
|
|
10913
10775
|
return isMultiSelect ? (_multiSelectValue_map = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.map(convertValueToId)) !== null && _multiSelectValue_map !== void 0 ? _multiSelectValue_map : [] : [];
|
|
10914
10776
|
}, [
|
|
10915
10777
|
isMultiSelect,
|
|
@@ -10999,8 +10861,8 @@
|
|
|
10999
10861
|
]
|
|
11000
10862
|
});
|
|
11001
10863
|
}
|
|
11002
|
-
var _option_isDisabled;
|
|
11003
10864
|
var defaultIsOptionDisabled = function(option) {
|
|
10865
|
+
var _option_isDisabled;
|
|
11004
10866
|
return typeof option === "object" && option !== null && ((_option_isDisabled = option === null || option === void 0 ? void 0 : option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : false);
|
|
11005
10867
|
};
|
|
11006
10868
|
var defaultConvertFunction$2 = function(v) {
|
|
@@ -11307,7 +11169,7 @@
|
|
|
11307
11169
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
11308
11170
|
return _array_like_to_array$l(o, minLen);
|
|
11309
11171
|
}
|
|
11310
|
-
|
|
11172
|
+
function _ts_generator$4(thisArg, body) {
|
|
11311
11173
|
var f, y, t, g, _ = {
|
|
11312
11174
|
label: 0,
|
|
11313
11175
|
sent: function() {
|
|
@@ -11408,7 +11270,7 @@
|
|
|
11408
11270
|
done: true
|
|
11409
11271
|
};
|
|
11410
11272
|
}
|
|
11411
|
-
}
|
|
11273
|
+
}
|
|
11412
11274
|
function Select(props) {
|
|
11413
11275
|
var options = props.options, value = props.value, 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, 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, iconType = props.iconType, 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, inputProps = _object_without_properties$9(props, [
|
|
11414
11276
|
"options",
|
|
@@ -11486,8 +11348,8 @@
|
|
|
11486
11348
|
if (optionsMode !== "search") {
|
|
11487
11349
|
return options;
|
|
11488
11350
|
}
|
|
11489
|
-
var _convertValueToString;
|
|
11490
11351
|
var filter = optionsFilter !== null && optionsFilter !== void 0 ? optionsFilter : trueReactPlatformHelpers.createFilter(function(option) {
|
|
11352
|
+
var _convertValueToString;
|
|
11491
11353
|
return [
|
|
11492
11354
|
(_convertValueToString = convertValueToString(option)) !== null && _convertValueToString !== void 0 ? _convertValueToString : ""
|
|
11493
11355
|
];
|
|
@@ -11625,7 +11487,7 @@
|
|
|
11625
11487
|
]);
|
|
11626
11488
|
var handleOnType = React.useCallback(function() {
|
|
11627
11489
|
var _ref2 = _async_to_generator$4(function(v) {
|
|
11628
|
-
return
|
|
11490
|
+
return _ts_generator$4(this, function(_state) {
|
|
11629
11491
|
switch (_state.label) {
|
|
11630
11492
|
case 0:
|
|
11631
11493
|
if (onType === void 0) {
|
|
@@ -12960,7 +12822,7 @@
|
|
|
12960
12822
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
12961
12823
|
return _array_like_to_array$i(o, minLen);
|
|
12962
12824
|
}
|
|
12963
|
-
|
|
12825
|
+
function _ts_generator$3(thisArg, body) {
|
|
12964
12826
|
var f, y, t, g, _ = {
|
|
12965
12827
|
label: 0,
|
|
12966
12828
|
sent: function() {
|
|
@@ -13061,7 +12923,7 @@
|
|
|
13061
12923
|
done: true
|
|
13062
12924
|
};
|
|
13063
12925
|
}
|
|
13064
|
-
}
|
|
12926
|
+
}
|
|
13065
12927
|
var NumberInput = /* @__PURE__ */ React.forwardRef(function(_param, ref) {
|
|
13066
12928
|
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$7(_param, [
|
|
13067
12929
|
"value",
|
|
@@ -13088,7 +12950,7 @@
|
|
|
13088
12950
|
var handleChange = function() {
|
|
13089
12951
|
var _ref = _async_to_generator$3(function(inputValue, event) {
|
|
13090
12952
|
var oldValue, target, _target_selectionStart, defaultCaretPos, numString, numberRegexp, hasDot, formattedValue, newValue;
|
|
13091
|
-
return
|
|
12953
|
+
return _ts_generator$3(this, function(_state) {
|
|
13092
12954
|
switch (_state.label) {
|
|
13093
12955
|
case 0:
|
|
13094
12956
|
oldValue = showedValue;
|
|
@@ -14048,7 +13910,7 @@
|
|
|
14048
13910
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14049
13911
|
return _array_like_to_array$h(o, minLen);
|
|
14050
13912
|
}
|
|
14051
|
-
|
|
13913
|
+
function _ts_generator$2(thisArg, body) {
|
|
14052
13914
|
var f, y, t, g, _ = {
|
|
14053
13915
|
label: 0,
|
|
14054
13916
|
sent: function() {
|
|
@@ -14149,23 +14011,9 @@
|
|
|
14149
14011
|
done: true
|
|
14150
14012
|
};
|
|
14151
14013
|
}
|
|
14152
|
-
}
|
|
14014
|
+
}
|
|
14153
14015
|
function MultiSelectList(param) {
|
|
14154
14016
|
var value = param.value, tweakStyles = param.tweakStyles, data = param.data, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_localeKey = param.localeKey, localeKey = _param_localeKey === void 0 ? DEFAULT_LOCALE : _param_localeKey, _param_locale = param.locale, locale2 = _param_locale === void 0 ? MultiSelectLocales[localeKey] : _param_locale, onChange = param.onChange, onClose = param.onClose, options = param.options, fetchOptions = param.fetchOptions, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? isSearchEnabled : _param_isGroupingEnabled, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction : _param_getValueString, _param_checkboxPosition = param.checkboxPosition, checkboxPosition = _param_checkboxPosition === void 0 ? "left" : _param_checkboxPosition, pageSize = param.pageSize, searchMaxLength = param.searchMaxLength, testId = param.testId;
|
|
14155
|
-
var handleOnChange = function handleOnChange2(inputValue) {
|
|
14156
|
-
setSearchValue(inputValue);
|
|
14157
|
-
if (fetchOptions === void 0) {
|
|
14158
|
-
if (options !== void 0) {
|
|
14159
|
-
var lowerSearchValue = inputValue.toLowerCase();
|
|
14160
|
-
setAllOptions(options.filter(function(o) {
|
|
14161
|
-
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14162
|
-
}));
|
|
14163
|
-
}
|
|
14164
|
-
} else {
|
|
14165
|
-
setIsLoading(true);
|
|
14166
|
-
changeSearchValue(inputValue);
|
|
14167
|
-
}
|
|
14168
|
-
};
|
|
14169
14017
|
var isMounted = useIsMounted();
|
|
14170
14018
|
var classes = useStyles$v({
|
|
14171
14019
|
theme: tweakStyles
|
|
@@ -14221,7 +14069,7 @@
|
|
|
14221
14069
|
var handleSearchInputChange = React.useCallback(function() {
|
|
14222
14070
|
var _ref = _async_to_generator$2(function(inputValue) {
|
|
14223
14071
|
var _inputValue_trim, response;
|
|
14224
|
-
return
|
|
14072
|
+
return _ts_generator$2(this, function(_state) {
|
|
14225
14073
|
switch (_state.label) {
|
|
14226
14074
|
case 0:
|
|
14227
14075
|
if (fetchOptions === void 0) {
|
|
@@ -14277,6 +14125,20 @@
|
|
|
14277
14125
|
var changeSearchValue = React.useCallback(tsDebounce.debounce(handleSearchInputChange), [
|
|
14278
14126
|
handleSearchInputChange
|
|
14279
14127
|
]);
|
|
14128
|
+
function handleOnChange(inputValue) {
|
|
14129
|
+
setSearchValue(inputValue);
|
|
14130
|
+
if (fetchOptions === void 0) {
|
|
14131
|
+
if (options !== void 0) {
|
|
14132
|
+
var lowerSearchValue = inputValue.toLowerCase();
|
|
14133
|
+
setAllOptions(options.filter(function(o) {
|
|
14134
|
+
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14135
|
+
}));
|
|
14136
|
+
}
|
|
14137
|
+
} else {
|
|
14138
|
+
setIsLoading(true);
|
|
14139
|
+
changeSearchValue(inputValue);
|
|
14140
|
+
}
|
|
14141
|
+
}
|
|
14280
14142
|
var handleSelectValue = function(val) {
|
|
14281
14143
|
if (val.length === 0) {
|
|
14282
14144
|
onChange(void 0);
|
|
@@ -14351,7 +14213,7 @@
|
|
|
14351
14213
|
var handleLoadItemsOnScroll = React.useCallback(function() {
|
|
14352
14214
|
var _ref = _async_to_generator$2(function(inputValue, page) {
|
|
14353
14215
|
var response;
|
|
14354
|
-
return
|
|
14216
|
+
return _ts_generator$2(this, function(_state) {
|
|
14355
14217
|
switch (_state.label) {
|
|
14356
14218
|
case 0:
|
|
14357
14219
|
if (fetchOptions === void 0) {
|
|
@@ -14418,7 +14280,7 @@
|
|
|
14418
14280
|
}
|
|
14419
14281
|
observer.current = new IntersectionObserver(function() {
|
|
14420
14282
|
var _ref = _async_to_generator$2(function(entries) {
|
|
14421
|
-
return
|
|
14283
|
+
return _ts_generator$2(this, function(_state) {
|
|
14422
14284
|
switch (_state.label) {
|
|
14423
14285
|
case 0:
|
|
14424
14286
|
if (!entries[0].isIntersecting)
|
|
@@ -14467,7 +14329,7 @@
|
|
|
14467
14329
|
var doFetchOptions = function() {
|
|
14468
14330
|
var _ref = _async_to_generator$2(function() {
|
|
14469
14331
|
var response;
|
|
14470
|
-
return
|
|
14332
|
+
return _ts_generator$2(this, function(_state) {
|
|
14471
14333
|
switch (_state.label) {
|
|
14472
14334
|
case 0:
|
|
14473
14335
|
setIsLoading(true);
|
|
@@ -14978,7 +14840,7 @@
|
|
|
14978
14840
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14979
14841
|
return _array_like_to_array$g(o, minLen);
|
|
14980
14842
|
}
|
|
14981
|
-
|
|
14843
|
+
function _ts_generator$1(thisArg, body) {
|
|
14982
14844
|
var f, y, t, g, _ = {
|
|
14983
14845
|
label: 0,
|
|
14984
14846
|
sent: function() {
|
|
@@ -15079,7 +14941,7 @@
|
|
|
15079
14941
|
done: true
|
|
15080
14942
|
};
|
|
15081
14943
|
}
|
|
15082
|
-
}
|
|
14944
|
+
}
|
|
15083
14945
|
function FilterSelect(param) {
|
|
15084
14946
|
var data = param.data, tweakStyles = param.tweakStyles, value = param.value, _param_isSearchEnabled = param.isSearchEnabled, isSearchEnabled = _param_isSearchEnabled === void 0 ? false : _param_isSearchEnabled, _param_isGroupingEnabled = param.isGroupingEnabled, isGroupingEnabled = _param_isGroupingEnabled === void 0 ? false : _param_isGroupingEnabled, localeKey = param.localeKey, locale2 = param.locale, onChange = param.onChange, options = param.options, fetchOptions = param.fetchOptions, footer = param.footer, _param_getValueView = param.getValueView, getValueView = _param_getValueView === void 0 ? defaultConvertFunction$1 : _param_getValueView, _param_getValueId = param.getValueId, getValueId = _param_getValueId === void 0 ? defaultConvertFunction$1 : _param_getValueId, _param_getValueString = param.getValueString, getValueString = _param_getValueString === void 0 ? defaultConvertFunction$1 : _param_getValueString, _param_hasClearButton = param.hasClearButton, hasClearButton = _param_hasClearButton === void 0 ? true : _param_hasClearButton, testId = param.testId;
|
|
15085
14947
|
var classes = useStyles$u({
|
|
@@ -15116,7 +14978,7 @@
|
|
|
15116
14978
|
var handleSearchInputChange = React.useCallback(function() {
|
|
15117
14979
|
var _ref = _async_to_generator$1(function(inputValue) {
|
|
15118
14980
|
var _inputValue_trim, response;
|
|
15119
|
-
return
|
|
14981
|
+
return _ts_generator$1(this, function(_state) {
|
|
15120
14982
|
switch (_state.label) {
|
|
15121
14983
|
case 0:
|
|
15122
14984
|
if (fetchOptions === void 0) {
|
|
@@ -15196,7 +15058,7 @@
|
|
|
15196
15058
|
var handleLoadItemsOnScroll = React.useCallback(function() {
|
|
15197
15059
|
var _ref = _async_to_generator$1(function(inputValue, page) {
|
|
15198
15060
|
var _inputValue_trim, response;
|
|
15199
|
-
return
|
|
15061
|
+
return _ts_generator$1(this, function(_state) {
|
|
15200
15062
|
switch (_state.label) {
|
|
15201
15063
|
case 0:
|
|
15202
15064
|
if (fetchOptions === void 0) {
|
|
@@ -15261,7 +15123,7 @@
|
|
|
15261
15123
|
}
|
|
15262
15124
|
observer.current = new IntersectionObserver(function() {
|
|
15263
15125
|
var _ref = _async_to_generator$1(function(entries) {
|
|
15264
|
-
return
|
|
15126
|
+
return _ts_generator$1(this, function(_state) {
|
|
15265
15127
|
switch (_state.label) {
|
|
15266
15128
|
case 0:
|
|
15267
15129
|
if (!entries[0].isIntersecting)
|
|
@@ -15310,7 +15172,7 @@
|
|
|
15310
15172
|
var doFetchOptions = function() {
|
|
15311
15173
|
var _ref = _async_to_generator$1(function() {
|
|
15312
15174
|
var response;
|
|
15313
|
-
return
|
|
15175
|
+
return _ts_generator$1(this, function(_state) {
|
|
15314
15176
|
switch (_state.label) {
|
|
15315
15177
|
case 0:
|
|
15316
15178
|
setIsLoading(true);
|
|
@@ -15570,8 +15432,8 @@
|
|
|
15570
15432
|
return function() {
|
|
15571
15433
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
15572
15434
|
var width = options.width ? String(options.width) : args.defaultWidth;
|
|
15573
|
-
var
|
|
15574
|
-
return
|
|
15435
|
+
var format = args.formats[width] || args.formats[args.defaultWidth];
|
|
15436
|
+
return format;
|
|
15575
15437
|
};
|
|
15576
15438
|
}
|
|
15577
15439
|
var dateFormats$1 = {
|
|
@@ -16315,11 +16177,11 @@
|
|
|
16315
16177
|
other: "P"
|
|
16316
16178
|
};
|
|
16317
16179
|
var formatRelative = function formatRelative2(token, date, baseDate, options) {
|
|
16318
|
-
var
|
|
16319
|
-
if (typeof
|
|
16320
|
-
return
|
|
16180
|
+
var format = formatRelativeLocale[token];
|
|
16181
|
+
if (typeof format === "function") {
|
|
16182
|
+
return format(date, baseDate, options);
|
|
16321
16183
|
}
|
|
16322
|
-
return
|
|
16184
|
+
return format;
|
|
16323
16185
|
};
|
|
16324
16186
|
const formatRelative$1 = formatRelative;
|
|
16325
16187
|
var eraValues = {
|
|
@@ -17070,8 +16932,8 @@
|
|
|
17070
16932
|
}, [
|
|
17071
16933
|
periods
|
|
17072
16934
|
]);
|
|
17073
|
-
var _translates_periods_val;
|
|
17074
16935
|
var getPeriodTranslate = React.useCallback(function(val) {
|
|
16936
|
+
var _translates_periods_val;
|
|
17075
16937
|
return (_translates_periods_val = translates.periods[val]) !== null && _translates_periods_val !== void 0 ? _translates_periods_val : val;
|
|
17076
16938
|
}, [
|
|
17077
16939
|
translates.periods
|
|
@@ -18148,12 +18010,6 @@
|
|
|
18148
18010
|
}
|
|
18149
18011
|
function FilterWrapper(param) {
|
|
18150
18012
|
var filter = param.filter, value = param.value, isDisabled = param.isDisabled, locale2 = param.locale, localeKey = param.localeKey, data = param.data, testId = param.testId, filtersPaneRef = param.filtersPaneRef, tweakStyles = param.tweakStyles, onChange = param.onChange;
|
|
18151
|
-
var handleChange = function handleChange2(v) {
|
|
18152
|
-
if (type === "select") {
|
|
18153
|
-
setIsOpen(false);
|
|
18154
|
-
}
|
|
18155
|
-
onChange(v);
|
|
18156
|
-
};
|
|
18157
18013
|
var classes = useStyles$p({
|
|
18158
18014
|
theme: tweakStyles
|
|
18159
18015
|
});
|
|
@@ -18175,6 +18031,12 @@
|
|
|
18175
18031
|
} else if (!Array.isArray(value) && typeof value !== "object") {
|
|
18176
18032
|
hasValue = Boolean(value);
|
|
18177
18033
|
}
|
|
18034
|
+
function handleChange(v) {
|
|
18035
|
+
if (type === "select") {
|
|
18036
|
+
setIsOpen(false);
|
|
18037
|
+
}
|
|
18038
|
+
onChange(v);
|
|
18039
|
+
}
|
|
18178
18040
|
var handleLabelClick = function() {
|
|
18179
18041
|
if (!isBoolean && !isDisabled) {
|
|
18180
18042
|
setIsOpen(!isOpen);
|
|
@@ -24615,8 +24477,8 @@
|
|
|
24615
24477
|
var hasHorizontalScrollBar = function(el) {
|
|
24616
24478
|
return trueReactPlatformHelpers.isNotEmpty(el) && el.scrollWidth !== el.clientWidth;
|
|
24617
24479
|
};
|
|
24618
|
-
var _config_dateFormat;
|
|
24619
24480
|
var formatCellContent = function(value, config) {
|
|
24481
|
+
var _config_dateFormat;
|
|
24620
24482
|
return _instanceof(value, Date) ? dateFns.format(value, (_config_dateFormat = config === null || config === void 0 ? void 0 : config.dateFormat) !== null && _config_dateFormat !== void 0 ? _config_dateFormat : DEFAULT_DATE_FORMAT) : String(value);
|
|
24621
24483
|
};
|
|
24622
24484
|
var STICKY_SHADOW_PADDING = 12;
|
|
@@ -27458,8 +27320,8 @@
|
|
|
27458
27320
|
var inputWrapper = React.useRef(null);
|
|
27459
27321
|
var inputRef = React.useRef(null);
|
|
27460
27322
|
var phoneWithCode = getFullPhone(value);
|
|
27461
|
-
var _value_countryCode;
|
|
27462
27323
|
var countryCode = React.useMemo(function() {
|
|
27324
|
+
var _value_countryCode;
|
|
27463
27325
|
return (_value_countryCode = value === null || value === void 0 ? void 0 : value.countryCode) !== null && _value_countryCode !== void 0 ? _value_countryCode : getCountryCodeFromPhone(phoneWithCode);
|
|
27464
27326
|
}, [
|
|
27465
27327
|
value.dialCode,
|
|
@@ -27989,8 +27851,8 @@
|
|
|
27989
27851
|
}),
|
|
27990
27852
|
options.map(function(option) {
|
|
27991
27853
|
var optionId = option.value.toString();
|
|
27992
|
-
var
|
|
27993
|
-
var isDisabledOption = (
|
|
27854
|
+
var _option_isDisabled;
|
|
27855
|
+
var isDisabledOption = (_option_isDisabled = option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : isDisabled;
|
|
27994
27856
|
var isActiveOption = option.value === value;
|
|
27995
27857
|
var _obj2;
|
|
27996
27858
|
return /* @__PURE__ */ jsx("div", _object_spread_props$b(_object_spread$b({
|
|
@@ -29889,7 +29751,7 @@
|
|
|
29889
29751
|
}
|
|
29890
29752
|
return target;
|
|
29891
29753
|
}
|
|
29892
|
-
|
|
29754
|
+
function _ts_generator(thisArg, body) {
|
|
29893
29755
|
var f, y, t, g, _ = {
|
|
29894
29756
|
label: 0,
|
|
29895
29757
|
sent: function() {
|
|
@@ -29990,7 +29852,7 @@
|
|
|
29990
29852
|
done: true
|
|
29991
29853
|
};
|
|
29992
29854
|
}
|
|
29993
|
-
}
|
|
29855
|
+
}
|
|
29994
29856
|
var Toaster = function(param) {
|
|
29995
29857
|
var title = param.title, _param_type = param.type, type = _param_type === void 0 ? "error" : _param_type, text = param.text, _param_timeout = param.timeout, timeout = _param_timeout === void 0 ? DEFAULT_TIMEOUT : _param_timeout, data = param.data, testId = param.testId, tweakStyles = param.tweakStyles, _param_hasCloseButton = param.hasCloseButton, hasCloseButton = _param_hasCloseButton === void 0 ? false : _param_hasCloseButton, _param_shouldCloseOnClick = param.shouldCloseOnClick, shouldCloseOnClick = _param_shouldCloseOnClick === void 0 ? false : _param_shouldCloseOnClick, children = param.children, onClose = param.onClose, onTimeEnd = param.onTimeEnd;
|
|
29996
29858
|
var classes = useStyles$2({
|
|
@@ -30008,7 +29870,7 @@
|
|
|
30008
29870
|
}
|
|
30009
29871
|
var disappear = function() {
|
|
30010
29872
|
var _ref = _async_to_generator(function() {
|
|
30011
|
-
return
|
|
29873
|
+
return _ts_generator(this, function(_state) {
|
|
30012
29874
|
switch (_state.label) {
|
|
30013
29875
|
case 0:
|
|
30014
29876
|
return [
|
|
@@ -30267,15 +30129,16 @@
|
|
|
30267
30129
|
className: clsx(classes.root, _define_property$1({}, classes.disabled, isDisabled))
|
|
30268
30130
|
}), trueReactPlatformHelpers.addDataTestId(testId), addDataAttributes(data)), {
|
|
30269
30131
|
children: [
|
|
30270
|
-
/* @__PURE__ */ jsx("div", {
|
|
30132
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$1(_object_spread$1({
|
|
30271
30133
|
className: classes.trigger,
|
|
30272
30134
|
onClick: eventType === "click" ? function(e) {
|
|
30273
30135
|
return handleToggle(!isOpen, e);
|
|
30274
|
-
} : void 0
|
|
30136
|
+
} : void 0
|
|
30137
|
+
}, trueReactPlatformHelpers.addDataTestId(testId, "trigger")), {
|
|
30275
30138
|
children: trueReactPlatformHelpers.isFunction(Trigger) ? /* @__PURE__ */ jsx(Trigger, {
|
|
30276
30139
|
isActive: isOpen
|
|
30277
30140
|
}) : Trigger
|
|
30278
|
-
}),
|
|
30141
|
+
})),
|
|
30279
30142
|
isOpen && /* @__PURE__ */ jsx(react.FloatingPortal, {
|
|
30280
30143
|
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
30281
30144
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$1(_object_spread$1({
|