@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
|
@@ -5,7 +5,7 @@ import { CSSTransition } from "react-transition-group";
|
|
|
5
5
|
import clsx from "clsx";
|
|
6
6
|
import hexToRgba from "hex-to-rgba";
|
|
7
7
|
import InputMask from "react-input-mask";
|
|
8
|
-
import { getYear, getMonth, format
|
|
8
|
+
import { getYear, getMonth, format, parse, isSameDay, isValid, isAfter, isBefore, startOfMonth, endOfMonth, sub, startOfYear, endOfYear } from "date-fns";
|
|
9
9
|
import { Portal } from "react-overlays";
|
|
10
10
|
import { debounce as debounce$1 } from "ts-debounce";
|
|
11
11
|
import scrollIntoViewIfNeeded from "scroll-into-view-if-needed";
|
|
@@ -4667,8 +4667,8 @@ var checkSearchStringInCountry = function(country, searchString) {
|
|
|
4667
4667
|
return v.startsWith(checkValue);
|
|
4668
4668
|
});
|
|
4669
4669
|
};
|
|
4670
|
-
var _phone_dialCode, _phone_phoneNumber;
|
|
4671
4670
|
var getFullPhone = function(phone) {
|
|
4671
|
+
var _phone_dialCode, _phone_phoneNumber;
|
|
4672
4672
|
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 : "");
|
|
4673
4673
|
};
|
|
4674
4674
|
var getCountryCodeFromPhone = function(phoneWithCode) {
|
|
@@ -4680,10 +4680,10 @@ var getCountryCodeFromPhone = function(phoneWithCode) {
|
|
|
4680
4680
|
})) === null || _phoneInfo_find === void 0 ? void 0 : _phoneInfo_find.countryCode;
|
|
4681
4681
|
if (isEmpty(countryCode) && isNotEmpty(phoneWithCode)) {
|
|
4682
4682
|
var _phoneInfo_filter_sort_;
|
|
4683
|
-
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4684
4683
|
countryCode = (_phoneInfo_filter_sort_ = phoneInfo.filter(function(info) {
|
|
4685
4684
|
return phoneWithCode.startsWith(info.dialCode);
|
|
4686
4685
|
}).sort(function(infoA, infoB) {
|
|
4686
|
+
var _infoA_dialCodePriority, _infoB_dialCodePriority;
|
|
4687
4687
|
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);
|
|
4688
4688
|
})[0]) === null || _phoneInfo_filter_sort_ === void 0 ? void 0 : _phoneInfo_filter_sort_.countryCode;
|
|
4689
4689
|
}
|
|
@@ -4794,8 +4794,8 @@ var hasExactParent = function(element, parent) {
|
|
|
4794
4794
|
}
|
|
4795
4795
|
return hasExactParent(parentNode, parent);
|
|
4796
4796
|
};
|
|
4797
|
-
var _element_parentNode;
|
|
4798
4797
|
var getParentNode$1 = function(element) {
|
|
4798
|
+
var _element_parentNode;
|
|
4799
4799
|
return element.nodeName === "HTML" || element === document ? element : (_element_parentNode = element.parentNode) !== null && _element_parentNode !== void 0 ? _element_parentNode : element.host;
|
|
4800
4800
|
};
|
|
4801
4801
|
var getStyleComputedProperty = function(element) {
|
|
@@ -4991,21 +4991,19 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
4991
4991
|
return target;
|
|
4992
4992
|
}
|
|
4993
4993
|
function useMounted() {
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
});
|
|
4998
|
-
useEffect(function() {
|
|
4994
|
+
const mounted = useRef(true);
|
|
4995
|
+
const isMounted = useRef(() => mounted.current);
|
|
4996
|
+
useEffect(() => {
|
|
4999
4997
|
mounted.current = true;
|
|
5000
|
-
return
|
|
4998
|
+
return () => {
|
|
5001
4999
|
mounted.current = false;
|
|
5002
5000
|
};
|
|
5003
5001
|
}, []);
|
|
5004
5002
|
return isMounted.current;
|
|
5005
5003
|
}
|
|
5006
5004
|
function useSafeState(state) {
|
|
5007
|
-
|
|
5008
|
-
return [state[0], useCallback(
|
|
5005
|
+
const isMounted = useMounted();
|
|
5006
|
+
return [state[0], useCallback((nextState) => {
|
|
5009
5007
|
if (!isMounted())
|
|
5010
5008
|
return;
|
|
5011
5009
|
return state[1](nextState);
|
|
@@ -5289,15 +5287,7 @@ function effect$1(_ref2) {
|
|
|
5289
5287
|
return;
|
|
5290
5288
|
}
|
|
5291
5289
|
}
|
|
5292
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5293
|
-
if (!isHTMLElement(arrowElement)) {
|
|
5294
|
-
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(" "));
|
|
5295
|
-
}
|
|
5296
|
-
}
|
|
5297
5290
|
if (!contains(state.elements.popper, arrowElement)) {
|
|
5298
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5299
|
-
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', "element."].join(" "));
|
|
5300
|
-
}
|
|
5301
5291
|
return;
|
|
5302
5292
|
}
|
|
5303
5293
|
state.elements.arrow = arrowElement;
|
|
@@ -5398,14 +5388,6 @@ function mapToStyles(_ref2) {
|
|
|
5398
5388
|
function computeStyles(_ref5) {
|
|
5399
5389
|
var state = _ref5.state, options = _ref5.options;
|
|
5400
5390
|
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;
|
|
5401
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5402
|
-
var transitionProperty = getComputedStyle$1(state.elements.popper).transitionProperty || "";
|
|
5403
|
-
if (adaptive && ["transform", "top", "right", "bottom", "left"].some(function(property) {
|
|
5404
|
-
return transitionProperty.indexOf(property) >= 0;
|
|
5405
|
-
})) {
|
|
5406
|
-
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(" "));
|
|
5407
|
-
}
|
|
5408
|
-
}
|
|
5409
5391
|
var commonStyles = {
|
|
5410
5392
|
placement: getBasePlacement(state.placement),
|
|
5411
5393
|
variation: getVariation(state.placement),
|
|
@@ -5734,9 +5716,6 @@ function computeAutoPlacement(state, options) {
|
|
|
5734
5716
|
});
|
|
5735
5717
|
if (allowedPlacements.length === 0) {
|
|
5736
5718
|
allowedPlacements = placements$1;
|
|
5737
|
-
if (process.env.NODE_ENV !== "production") {
|
|
5738
|
-
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(" "));
|
|
5739
|
-
}
|
|
5740
5719
|
}
|
|
5741
5720
|
var overflows = allowedPlacements.reduce(function(acc, placement2) {
|
|
5742
5721
|
acc[placement2] = detectOverflow(state, {
|
|
@@ -6158,86 +6137,6 @@ function debounce(fn3) {
|
|
|
6158
6137
|
return pending;
|
|
6159
6138
|
};
|
|
6160
6139
|
}
|
|
6161
|
-
function format(str) {
|
|
6162
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
6163
|
-
args[_key - 1] = arguments[_key];
|
|
6164
|
-
}
|
|
6165
|
-
return [].concat(args).reduce(function(p, c) {
|
|
6166
|
-
return p.replace(/%s/, c);
|
|
6167
|
-
}, str);
|
|
6168
|
-
}
|
|
6169
|
-
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
|
|
6170
|
-
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
|
|
6171
|
-
var VALID_PROPERTIES = ["name", "enabled", "phase", "fn", "effect", "requires", "options"];
|
|
6172
|
-
function validateModifiers(modifiers) {
|
|
6173
|
-
modifiers.forEach(function(modifier) {
|
|
6174
|
-
[].concat(Object.keys(modifier), VALID_PROPERTIES).filter(function(value, index, self2) {
|
|
6175
|
-
return self2.indexOf(value) === index;
|
|
6176
|
-
}).forEach(function(key) {
|
|
6177
|
-
switch (key) {
|
|
6178
|
-
case "name":
|
|
6179
|
-
if (typeof modifier.name !== "string") {
|
|
6180
|
-
console.error(format(INVALID_MODIFIER_ERROR, String(modifier.name), '"name"', '"string"', '"' + String(modifier.name) + '"'));
|
|
6181
|
-
}
|
|
6182
|
-
break;
|
|
6183
|
-
case "enabled":
|
|
6184
|
-
if (typeof modifier.enabled !== "boolean") {
|
|
6185
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"enabled"', '"boolean"', '"' + String(modifier.enabled) + '"'));
|
|
6186
|
-
}
|
|
6187
|
-
break;
|
|
6188
|
-
case "phase":
|
|
6189
|
-
if (modifierPhases.indexOf(modifier.phase) < 0) {
|
|
6190
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"phase"', "either " + modifierPhases.join(", "), '"' + String(modifier.phase) + '"'));
|
|
6191
|
-
}
|
|
6192
|
-
break;
|
|
6193
|
-
case "fn":
|
|
6194
|
-
if (typeof modifier.fn !== "function") {
|
|
6195
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"fn"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6196
|
-
}
|
|
6197
|
-
break;
|
|
6198
|
-
case "effect":
|
|
6199
|
-
if (modifier.effect != null && typeof modifier.effect !== "function") {
|
|
6200
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"effect"', '"function"', '"' + String(modifier.fn) + '"'));
|
|
6201
|
-
}
|
|
6202
|
-
break;
|
|
6203
|
-
case "requires":
|
|
6204
|
-
if (modifier.requires != null && !Array.isArray(modifier.requires)) {
|
|
6205
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requires"', '"array"', '"' + String(modifier.requires) + '"'));
|
|
6206
|
-
}
|
|
6207
|
-
break;
|
|
6208
|
-
case "requiresIfExists":
|
|
6209
|
-
if (!Array.isArray(modifier.requiresIfExists)) {
|
|
6210
|
-
console.error(format(INVALID_MODIFIER_ERROR, modifier.name, '"requiresIfExists"', '"array"', '"' + String(modifier.requiresIfExists) + '"'));
|
|
6211
|
-
}
|
|
6212
|
-
break;
|
|
6213
|
-
case "options":
|
|
6214
|
-
case "data":
|
|
6215
|
-
break;
|
|
6216
|
-
default:
|
|
6217
|
-
console.error('PopperJS: an invalid property has been provided to the "' + modifier.name + '" modifier, valid properties are ' + VALID_PROPERTIES.map(function(s) {
|
|
6218
|
-
return '"' + s + '"';
|
|
6219
|
-
}).join(", ") + '; but "' + key + '" was provided.');
|
|
6220
|
-
}
|
|
6221
|
-
modifier.requires && modifier.requires.forEach(function(requirement) {
|
|
6222
|
-
if (modifiers.find(function(mod) {
|
|
6223
|
-
return mod.name === requirement;
|
|
6224
|
-
}) == null) {
|
|
6225
|
-
console.error(format(MISSING_DEPENDENCY_ERROR, String(modifier.name), requirement, requirement));
|
|
6226
|
-
}
|
|
6227
|
-
});
|
|
6228
|
-
});
|
|
6229
|
-
});
|
|
6230
|
-
}
|
|
6231
|
-
function uniqueBy(arr, fn3) {
|
|
6232
|
-
var identifiers = /* @__PURE__ */ new Set();
|
|
6233
|
-
return arr.filter(function(item) {
|
|
6234
|
-
var identifier = fn3(item);
|
|
6235
|
-
if (!identifiers.has(identifier)) {
|
|
6236
|
-
identifiers.add(identifier);
|
|
6237
|
-
return true;
|
|
6238
|
-
}
|
|
6239
|
-
});
|
|
6240
|
-
}
|
|
6241
6140
|
function mergeByName(modifiers) {
|
|
6242
6141
|
var merged = modifiers.reduce(function(merged2, current) {
|
|
6243
6142
|
var existing = merged2[current.name];
|
|
@@ -6251,8 +6150,6 @@ function mergeByName(modifiers) {
|
|
|
6251
6150
|
return merged[key];
|
|
6252
6151
|
});
|
|
6253
6152
|
}
|
|
6254
|
-
var INVALID_ELEMENT_ERROR = "Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.";
|
|
6255
|
-
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.";
|
|
6256
6153
|
var DEFAULT_OPTIONS = {
|
|
6257
6154
|
placement: "bottom",
|
|
6258
6155
|
modifiers: [],
|
|
@@ -6303,28 +6200,6 @@ function popperGenerator(generatorOptions) {
|
|
|
6303
6200
|
state.orderedModifiers = orderedModifiers.filter(function(m) {
|
|
6304
6201
|
return m.enabled;
|
|
6305
6202
|
});
|
|
6306
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6307
|
-
var modifiers = uniqueBy([].concat(orderedModifiers, state.options.modifiers), function(_ref) {
|
|
6308
|
-
var name = _ref.name;
|
|
6309
|
-
return name;
|
|
6310
|
-
});
|
|
6311
|
-
validateModifiers(modifiers);
|
|
6312
|
-
if (getBasePlacement(state.options.placement) === auto) {
|
|
6313
|
-
var flipModifier = state.orderedModifiers.find(function(_ref2) {
|
|
6314
|
-
var name = _ref2.name;
|
|
6315
|
-
return name === "flip";
|
|
6316
|
-
});
|
|
6317
|
-
if (!flipModifier) {
|
|
6318
|
-
console.error(['Popper: "auto" placements require the "flip" modifier be', "present and enabled to work."].join(" "));
|
|
6319
|
-
}
|
|
6320
|
-
}
|
|
6321
|
-
var _getComputedStyle = getComputedStyle$1(popper2), marginTop = _getComputedStyle.marginTop, marginRight = _getComputedStyle.marginRight, marginBottom = _getComputedStyle.marginBottom, marginLeft = _getComputedStyle.marginLeft;
|
|
6322
|
-
if ([marginTop, marginRight, marginBottom, marginLeft].some(function(margin) {
|
|
6323
|
-
return parseFloat(margin);
|
|
6324
|
-
})) {
|
|
6325
|
-
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(" "));
|
|
6326
|
-
}
|
|
6327
|
-
}
|
|
6328
6203
|
runModifierEffects();
|
|
6329
6204
|
return instance.update();
|
|
6330
6205
|
},
|
|
@@ -6339,9 +6214,6 @@ function popperGenerator(generatorOptions) {
|
|
|
6339
6214
|
}
|
|
6340
6215
|
var _state$elements = state.elements, reference3 = _state$elements.reference, popper3 = _state$elements.popper;
|
|
6341
6216
|
if (!areValidElements(reference3, popper3)) {
|
|
6342
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6343
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6344
|
-
}
|
|
6345
6217
|
return;
|
|
6346
6218
|
}
|
|
6347
6219
|
state.rects = {
|
|
@@ -6353,15 +6225,7 @@ function popperGenerator(generatorOptions) {
|
|
|
6353
6225
|
state.orderedModifiers.forEach(function(modifier) {
|
|
6354
6226
|
return state.modifiersData[modifier.name] = Object.assign({}, modifier.data);
|
|
6355
6227
|
});
|
|
6356
|
-
var __debug_loops__ = 0;
|
|
6357
6228
|
for (var index = 0; index < state.orderedModifiers.length; index++) {
|
|
6358
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6359
|
-
__debug_loops__ += 1;
|
|
6360
|
-
if (__debug_loops__ > 100) {
|
|
6361
|
-
console.error(INFINITE_LOOP_ERROR);
|
|
6362
|
-
break;
|
|
6363
|
-
}
|
|
6364
|
-
}
|
|
6365
6229
|
if (state.reset === true) {
|
|
6366
6230
|
state.reset = false;
|
|
6367
6231
|
index = -1;
|
|
@@ -6392,9 +6256,6 @@ function popperGenerator(generatorOptions) {
|
|
|
6392
6256
|
}
|
|
6393
6257
|
};
|
|
6394
6258
|
if (!areValidElements(reference2, popper2)) {
|
|
6395
|
-
if (process.env.NODE_ENV !== "production") {
|
|
6396
|
-
console.error(INVALID_ELEMENT_ERROR);
|
|
6397
|
-
}
|
|
6398
6259
|
return instance;
|
|
6399
6260
|
}
|
|
6400
6261
|
instance.setOptions(options).then(function(state2) {
|
|
@@ -6403,8 +6264,8 @@ function popperGenerator(generatorOptions) {
|
|
|
6403
6264
|
}
|
|
6404
6265
|
});
|
|
6405
6266
|
function runModifierEffects() {
|
|
6406
|
-
state.orderedModifiers.forEach(function(
|
|
6407
|
-
var name =
|
|
6267
|
+
state.orderedModifiers.forEach(function(_ref) {
|
|
6268
|
+
var name = _ref.name, _ref$options = _ref.options, options2 = _ref$options === void 0 ? {} : _ref$options, effect3 = _ref.effect;
|
|
6408
6269
|
if (typeof effect3 === "function") {
|
|
6409
6270
|
var cleanupFn = effect3({
|
|
6410
6271
|
state,
|
|
@@ -6677,7 +6538,7 @@ var useDropdown = function(param) {
|
|
|
6677
6538
|
var useTweakStyles = function(param) {
|
|
6678
6539
|
var innerStyles = param.innerStyles, currentComponentTweakStyles = param.tweakStyles, className = param.className, currentComponentName = param.currentComponentName;
|
|
6679
6540
|
return useMemo(function() {
|
|
6680
|
-
var
|
|
6541
|
+
var _theme_components_currentComponentName, _theme_components;
|
|
6681
6542
|
var theme = getTheme();
|
|
6682
6543
|
var themeStyles = 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;
|
|
6683
6544
|
var tweakStyles = currentComponentTweakStyles === null || currentComponentTweakStyles === void 0 ? void 0 : currentComponentTweakStyles[className];
|
|
@@ -7754,7 +7615,7 @@ var IconBoilerplate = function(param) {
|
|
|
7754
7615
|
return _object_spread$W({}, iconsList, theme.icons);
|
|
7755
7616
|
}, []);
|
|
7756
7617
|
var icon = icons[type];
|
|
7757
|
-
var _icon_viewBox
|
|
7618
|
+
var _icon_viewBox;
|
|
7758
7619
|
return /* @__PURE__ */ jsxs("svg", {
|
|
7759
7620
|
width: "100%",
|
|
7760
7621
|
height: "100%",
|
|
@@ -7763,7 +7624,8 @@ var IconBoilerplate = function(param) {
|
|
|
7763
7624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7764
7625
|
children: [
|
|
7765
7626
|
(_icon_paths = icon.paths) === null || _icon_paths === void 0 ? void 0 : _icon_paths.map(function(path, index) {
|
|
7766
|
-
|
|
7627
|
+
var _path_fill, _path_stroke;
|
|
7628
|
+
return jsx("path", _object_spread$W({
|
|
7767
7629
|
fillRule: "evenodd",
|
|
7768
7630
|
clipRule: "evenodd",
|
|
7769
7631
|
fill: (_path_fill = path.fill) !== null && _path_fill !== void 0 ? _path_fill : "currentColor",
|
|
@@ -9859,7 +9721,7 @@ function _unsupported_iterable_to_array$m(o, minLen) {
|
|
|
9859
9721
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
9860
9722
|
return _array_like_to_array$m(o, minLen);
|
|
9861
9723
|
}
|
|
9862
|
-
|
|
9724
|
+
function _ts_generator$5(thisArg, body) {
|
|
9863
9725
|
var f, y, t, g, _ = {
|
|
9864
9726
|
label: 0,
|
|
9865
9727
|
sent: function() {
|
|
@@ -9960,7 +9822,7 @@ var __generator$5 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
9960
9822
|
done: true
|
|
9961
9823
|
};
|
|
9962
9824
|
}
|
|
9963
|
-
}
|
|
9825
|
+
}
|
|
9964
9826
|
var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
9965
9827
|
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, [
|
|
9966
9828
|
"value",
|
|
@@ -10023,7 +9885,7 @@ var Input = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
10023
9885
|
var handleOnInputClear = function() {
|
|
10024
9886
|
var _ref = _async_to_generator$5(function(event) {
|
|
10025
9887
|
var _input_current, input;
|
|
10026
|
-
return
|
|
9888
|
+
return _ts_generator$5(this, function(_state) {
|
|
10027
9889
|
switch (_state.label) {
|
|
10028
9890
|
case 0:
|
|
10029
9891
|
return [
|
|
@@ -10919,8 +10781,8 @@ function SelectList(param) {
|
|
|
10919
10781
|
var multiSelectValue = activeValue;
|
|
10920
10782
|
var _multiSelectValue_length;
|
|
10921
10783
|
var selectedOptionsCount = (_multiSelectValue_length = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.length) !== null && _multiSelectValue_length !== void 0 ? _multiSelectValue_length : 0;
|
|
10922
|
-
var _multiSelectValue_map;
|
|
10923
10784
|
var activeOptionsIdMap = useMemo(function() {
|
|
10785
|
+
var _multiSelectValue_map;
|
|
10924
10786
|
return isMultiSelect ? (_multiSelectValue_map = multiSelectValue === null || multiSelectValue === void 0 ? void 0 : multiSelectValue.map(convertValueToId)) !== null && _multiSelectValue_map !== void 0 ? _multiSelectValue_map : [] : [];
|
|
10925
10787
|
}, [
|
|
10926
10788
|
isMultiSelect,
|
|
@@ -11010,8 +10872,8 @@ function SelectList(param) {
|
|
|
11010
10872
|
]
|
|
11011
10873
|
});
|
|
11012
10874
|
}
|
|
11013
|
-
var _option_isDisabled;
|
|
11014
10875
|
var defaultIsOptionDisabled = function(option) {
|
|
10876
|
+
var _option_isDisabled;
|
|
11015
10877
|
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);
|
|
11016
10878
|
};
|
|
11017
10879
|
var defaultConvertFunction$2 = function(v) {
|
|
@@ -11318,7 +11180,7 @@ function _unsupported_iterable_to_array$l(o, minLen) {
|
|
|
11318
11180
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
11319
11181
|
return _array_like_to_array$l(o, minLen);
|
|
11320
11182
|
}
|
|
11321
|
-
|
|
11183
|
+
function _ts_generator$4(thisArg, body) {
|
|
11322
11184
|
var f, y, t, g, _ = {
|
|
11323
11185
|
label: 0,
|
|
11324
11186
|
sent: function() {
|
|
@@ -11419,7 +11281,7 @@ var __generator$4 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
11419
11281
|
done: true
|
|
11420
11282
|
};
|
|
11421
11283
|
}
|
|
11422
|
-
}
|
|
11284
|
+
}
|
|
11423
11285
|
function Select(props) {
|
|
11424
11286
|
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, [
|
|
11425
11287
|
"options",
|
|
@@ -11497,8 +11359,8 @@ function Select(props) {
|
|
|
11497
11359
|
if (optionsMode !== "search") {
|
|
11498
11360
|
return options;
|
|
11499
11361
|
}
|
|
11500
|
-
var _convertValueToString;
|
|
11501
11362
|
var filter = optionsFilter !== null && optionsFilter !== void 0 ? optionsFilter : createFilter(function(option) {
|
|
11363
|
+
var _convertValueToString;
|
|
11502
11364
|
return [
|
|
11503
11365
|
(_convertValueToString = convertValueToString(option)) !== null && _convertValueToString !== void 0 ? _convertValueToString : ""
|
|
11504
11366
|
];
|
|
@@ -11636,7 +11498,7 @@ function Select(props) {
|
|
|
11636
11498
|
]);
|
|
11637
11499
|
var handleOnType = useCallback(function() {
|
|
11638
11500
|
var _ref2 = _async_to_generator$4(function(v) {
|
|
11639
|
-
return
|
|
11501
|
+
return _ts_generator$4(this, function(_state) {
|
|
11640
11502
|
switch (_state.label) {
|
|
11641
11503
|
case 0:
|
|
11642
11504
|
if (onType === void 0) {
|
|
@@ -12051,7 +11913,7 @@ var _ReactDatePicker_default;
|
|
|
12051
11913
|
var DatePickerComponent = (_ReactDatePicker_default = ReactDatePicker.default) !== null && _ReactDatePicker_default !== void 0 ? _ReactDatePicker_default : ReactDatePicker;
|
|
12052
11914
|
var getDateFormatter = function(dateFormat) {
|
|
12053
11915
|
return function(date) {
|
|
12054
|
-
return isNotEmpty(date) ? format
|
|
11916
|
+
return isNotEmpty(date) ? format(date, dateFormat) : "";
|
|
12055
11917
|
};
|
|
12056
11918
|
};
|
|
12057
11919
|
var getDateValueParser = function(dateFormat) {
|
|
@@ -12971,7 +12833,7 @@ function _unsupported_iterable_to_array$i(o, minLen) {
|
|
|
12971
12833
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
12972
12834
|
return _array_like_to_array$i(o, minLen);
|
|
12973
12835
|
}
|
|
12974
|
-
|
|
12836
|
+
function _ts_generator$3(thisArg, body) {
|
|
12975
12837
|
var f, y, t, g, _ = {
|
|
12976
12838
|
label: 0,
|
|
12977
12839
|
sent: function() {
|
|
@@ -13072,7 +12934,7 @@ var __generator$3 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
13072
12934
|
done: true
|
|
13073
12935
|
};
|
|
13074
12936
|
}
|
|
13075
|
-
}
|
|
12937
|
+
}
|
|
13076
12938
|
var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
13077
12939
|
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, [
|
|
13078
12940
|
"value",
|
|
@@ -13099,7 +12961,7 @@ var NumberInput = /* @__PURE__ */ forwardRef(function(_param, ref) {
|
|
|
13099
12961
|
var handleChange = function() {
|
|
13100
12962
|
var _ref = _async_to_generator$3(function(inputValue, event) {
|
|
13101
12963
|
var oldValue, target, _target_selectionStart, defaultCaretPos, numString, numberRegexp, hasDot, formattedValue, newValue;
|
|
13102
|
-
return
|
|
12964
|
+
return _ts_generator$3(this, function(_state) {
|
|
13103
12965
|
switch (_state.label) {
|
|
13104
12966
|
case 0:
|
|
13105
12967
|
oldValue = showedValue;
|
|
@@ -14059,7 +13921,7 @@ function _unsupported_iterable_to_array$h(o, minLen) {
|
|
|
14059
13921
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14060
13922
|
return _array_like_to_array$h(o, minLen);
|
|
14061
13923
|
}
|
|
14062
|
-
|
|
13924
|
+
function _ts_generator$2(thisArg, body) {
|
|
14063
13925
|
var f, y, t, g, _ = {
|
|
14064
13926
|
label: 0,
|
|
14065
13927
|
sent: function() {
|
|
@@ -14160,23 +14022,9 @@ var __generator$2 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
14160
14022
|
done: true
|
|
14161
14023
|
};
|
|
14162
14024
|
}
|
|
14163
|
-
}
|
|
14025
|
+
}
|
|
14164
14026
|
function MultiSelectList(param) {
|
|
14165
14027
|
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;
|
|
14166
|
-
var handleOnChange = function handleOnChange2(inputValue) {
|
|
14167
|
-
setSearchValue(inputValue);
|
|
14168
|
-
if (fetchOptions === void 0) {
|
|
14169
|
-
if (options !== void 0) {
|
|
14170
|
-
var lowerSearchValue = inputValue.toLowerCase();
|
|
14171
|
-
setAllOptions(options.filter(function(o) {
|
|
14172
|
-
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14173
|
-
}));
|
|
14174
|
-
}
|
|
14175
|
-
} else {
|
|
14176
|
-
setIsLoading(true);
|
|
14177
|
-
changeSearchValue(inputValue);
|
|
14178
|
-
}
|
|
14179
|
-
};
|
|
14180
14028
|
var isMounted = useIsMounted();
|
|
14181
14029
|
var classes = useStyles$v({
|
|
14182
14030
|
theme: tweakStyles
|
|
@@ -14232,7 +14080,7 @@ function MultiSelectList(param) {
|
|
|
14232
14080
|
var handleSearchInputChange = useCallback(function() {
|
|
14233
14081
|
var _ref = _async_to_generator$2(function(inputValue) {
|
|
14234
14082
|
var _inputValue_trim, response;
|
|
14235
|
-
return
|
|
14083
|
+
return _ts_generator$2(this, function(_state) {
|
|
14236
14084
|
switch (_state.label) {
|
|
14237
14085
|
case 0:
|
|
14238
14086
|
if (fetchOptions === void 0) {
|
|
@@ -14288,6 +14136,20 @@ function MultiSelectList(param) {
|
|
|
14288
14136
|
var changeSearchValue = useCallback(debounce$1(handleSearchInputChange), [
|
|
14289
14137
|
handleSearchInputChange
|
|
14290
14138
|
]);
|
|
14139
|
+
function handleOnChange(inputValue) {
|
|
14140
|
+
setSearchValue(inputValue);
|
|
14141
|
+
if (fetchOptions === void 0) {
|
|
14142
|
+
if (options !== void 0) {
|
|
14143
|
+
var lowerSearchValue = inputValue.toLowerCase();
|
|
14144
|
+
setAllOptions(options.filter(function(o) {
|
|
14145
|
+
return getValueString(o).toLowerCase().includes(lowerSearchValue);
|
|
14146
|
+
}));
|
|
14147
|
+
}
|
|
14148
|
+
} else {
|
|
14149
|
+
setIsLoading(true);
|
|
14150
|
+
changeSearchValue(inputValue);
|
|
14151
|
+
}
|
|
14152
|
+
}
|
|
14291
14153
|
var handleSelectValue = function(val) {
|
|
14292
14154
|
if (val.length === 0) {
|
|
14293
14155
|
onChange(void 0);
|
|
@@ -14362,7 +14224,7 @@ function MultiSelectList(param) {
|
|
|
14362
14224
|
var handleLoadItemsOnScroll = useCallback(function() {
|
|
14363
14225
|
var _ref = _async_to_generator$2(function(inputValue, page) {
|
|
14364
14226
|
var response;
|
|
14365
|
-
return
|
|
14227
|
+
return _ts_generator$2(this, function(_state) {
|
|
14366
14228
|
switch (_state.label) {
|
|
14367
14229
|
case 0:
|
|
14368
14230
|
if (fetchOptions === void 0) {
|
|
@@ -14429,7 +14291,7 @@ function MultiSelectList(param) {
|
|
|
14429
14291
|
}
|
|
14430
14292
|
observer.current = new IntersectionObserver(function() {
|
|
14431
14293
|
var _ref = _async_to_generator$2(function(entries) {
|
|
14432
|
-
return
|
|
14294
|
+
return _ts_generator$2(this, function(_state) {
|
|
14433
14295
|
switch (_state.label) {
|
|
14434
14296
|
case 0:
|
|
14435
14297
|
if (!entries[0].isIntersecting)
|
|
@@ -14478,7 +14340,7 @@ function MultiSelectList(param) {
|
|
|
14478
14340
|
var doFetchOptions = function() {
|
|
14479
14341
|
var _ref = _async_to_generator$2(function() {
|
|
14480
14342
|
var response;
|
|
14481
|
-
return
|
|
14343
|
+
return _ts_generator$2(this, function(_state) {
|
|
14482
14344
|
switch (_state.label) {
|
|
14483
14345
|
case 0:
|
|
14484
14346
|
setIsLoading(true);
|
|
@@ -14989,7 +14851,7 @@ function _unsupported_iterable_to_array$g(o, minLen) {
|
|
|
14989
14851
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
|
14990
14852
|
return _array_like_to_array$g(o, minLen);
|
|
14991
14853
|
}
|
|
14992
|
-
|
|
14854
|
+
function _ts_generator$1(thisArg, body) {
|
|
14993
14855
|
var f, y, t, g, _ = {
|
|
14994
14856
|
label: 0,
|
|
14995
14857
|
sent: function() {
|
|
@@ -15090,7 +14952,7 @@ var __generator$1 = globalThis && globalThis.__generator || function(thisArg, bo
|
|
|
15090
14952
|
done: true
|
|
15091
14953
|
};
|
|
15092
14954
|
}
|
|
15093
|
-
}
|
|
14955
|
+
}
|
|
15094
14956
|
function FilterSelect(param) {
|
|
15095
14957
|
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;
|
|
15096
14958
|
var classes = useStyles$u({
|
|
@@ -15127,7 +14989,7 @@ function FilterSelect(param) {
|
|
|
15127
14989
|
var handleSearchInputChange = useCallback(function() {
|
|
15128
14990
|
var _ref = _async_to_generator$1(function(inputValue) {
|
|
15129
14991
|
var _inputValue_trim, response;
|
|
15130
|
-
return
|
|
14992
|
+
return _ts_generator$1(this, function(_state) {
|
|
15131
14993
|
switch (_state.label) {
|
|
15132
14994
|
case 0:
|
|
15133
14995
|
if (fetchOptions === void 0) {
|
|
@@ -15207,7 +15069,7 @@ function FilterSelect(param) {
|
|
|
15207
15069
|
var handleLoadItemsOnScroll = useCallback(function() {
|
|
15208
15070
|
var _ref = _async_to_generator$1(function(inputValue, page) {
|
|
15209
15071
|
var _inputValue_trim, response;
|
|
15210
|
-
return
|
|
15072
|
+
return _ts_generator$1(this, function(_state) {
|
|
15211
15073
|
switch (_state.label) {
|
|
15212
15074
|
case 0:
|
|
15213
15075
|
if (fetchOptions === void 0) {
|
|
@@ -15272,7 +15134,7 @@ function FilterSelect(param) {
|
|
|
15272
15134
|
}
|
|
15273
15135
|
observer.current = new IntersectionObserver(function() {
|
|
15274
15136
|
var _ref = _async_to_generator$1(function(entries) {
|
|
15275
|
-
return
|
|
15137
|
+
return _ts_generator$1(this, function(_state) {
|
|
15276
15138
|
switch (_state.label) {
|
|
15277
15139
|
case 0:
|
|
15278
15140
|
if (!entries[0].isIntersecting)
|
|
@@ -15321,7 +15183,7 @@ function FilterSelect(param) {
|
|
|
15321
15183
|
var doFetchOptions = function() {
|
|
15322
15184
|
var _ref = _async_to_generator$1(function() {
|
|
15323
15185
|
var response;
|
|
15324
|
-
return
|
|
15186
|
+
return _ts_generator$1(this, function(_state) {
|
|
15325
15187
|
switch (_state.label) {
|
|
15326
15188
|
case 0:
|
|
15327
15189
|
setIsLoading(true);
|
|
@@ -17081,8 +16943,8 @@ var FilterWithPeriod = function(param) {
|
|
|
17081
16943
|
}, [
|
|
17082
16944
|
periods
|
|
17083
16945
|
]);
|
|
17084
|
-
var _translates_periods_val;
|
|
17085
16946
|
var getPeriodTranslate = useCallback(function(val) {
|
|
16947
|
+
var _translates_periods_val;
|
|
17086
16948
|
return (_translates_periods_val = translates.periods[val]) !== null && _translates_periods_val !== void 0 ? _translates_periods_val : val;
|
|
17087
16949
|
}, [
|
|
17088
16950
|
translates.periods
|
|
@@ -17810,7 +17672,7 @@ function FilterValueView(param) {
|
|
|
17810
17672
|
return "";
|
|
17811
17673
|
}
|
|
17812
17674
|
if (_instanceof$1(v, Date)) {
|
|
17813
|
-
return format
|
|
17675
|
+
return format(v, filter.dateFormat || DEFAULT_DATE_FORMAT$1);
|
|
17814
17676
|
}
|
|
17815
17677
|
if (typeof v === "object" && "value" in v && isNotEmpty(v.value)) {
|
|
17816
17678
|
return String(v.value);
|
|
@@ -18159,12 +18021,6 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
18159
18021
|
}
|
|
18160
18022
|
function FilterWrapper(param) {
|
|
18161
18023
|
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;
|
|
18162
|
-
var handleChange = function handleChange2(v) {
|
|
18163
|
-
if (type === "select") {
|
|
18164
|
-
setIsOpen(false);
|
|
18165
|
-
}
|
|
18166
|
-
onChange(v);
|
|
18167
|
-
};
|
|
18168
18024
|
var classes = useStyles$p({
|
|
18169
18025
|
theme: tweakStyles
|
|
18170
18026
|
});
|
|
@@ -18186,6 +18042,12 @@ function FilterWrapper(param) {
|
|
|
18186
18042
|
} else if (!Array.isArray(value) && typeof value !== "object") {
|
|
18187
18043
|
hasValue = Boolean(value);
|
|
18188
18044
|
}
|
|
18045
|
+
function handleChange(v) {
|
|
18046
|
+
if (type === "select") {
|
|
18047
|
+
setIsOpen(false);
|
|
18048
|
+
}
|
|
18049
|
+
onChange(v);
|
|
18050
|
+
}
|
|
18189
18051
|
var handleLabelClick = function() {
|
|
18190
18052
|
if (!isBoolean && !isDisabled) {
|
|
18191
18053
|
setIsOpen(!isOpen);
|
|
@@ -24626,9 +24488,9 @@ function _instanceof(left2, right2) {
|
|
|
24626
24488
|
var hasHorizontalScrollBar = function(el) {
|
|
24627
24489
|
return isNotEmpty(el) && el.scrollWidth !== el.clientWidth;
|
|
24628
24490
|
};
|
|
24629
|
-
var _config_dateFormat;
|
|
24630
24491
|
var formatCellContent = function(value, config) {
|
|
24631
|
-
|
|
24492
|
+
var _config_dateFormat;
|
|
24493
|
+
return _instanceof(value, Date) ? 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);
|
|
24632
24494
|
};
|
|
24633
24495
|
var STICKY_SHADOW_PADDING = 12;
|
|
24634
24496
|
var useStyles$m = createThemedStyles("FlexibleTable", {
|
|
@@ -27469,8 +27331,8 @@ var PhoneInput = function(_param) {
|
|
|
27469
27331
|
var inputWrapper = useRef(null);
|
|
27470
27332
|
var inputRef = useRef(null);
|
|
27471
27333
|
var phoneWithCode = getFullPhone(value);
|
|
27472
|
-
var _value_countryCode;
|
|
27473
27334
|
var countryCode = useMemo(function() {
|
|
27335
|
+
var _value_countryCode;
|
|
27474
27336
|
return (_value_countryCode = value === null || value === void 0 ? void 0 : value.countryCode) !== null && _value_countryCode !== void 0 ? _value_countryCode : getCountryCodeFromPhone(phoneWithCode);
|
|
27475
27337
|
}, [
|
|
27476
27338
|
value.dialCode,
|
|
@@ -28000,8 +27862,8 @@ function Selector(param) {
|
|
|
28000
27862
|
}),
|
|
28001
27863
|
options.map(function(option) {
|
|
28002
27864
|
var optionId = option.value.toString();
|
|
28003
|
-
var
|
|
28004
|
-
var isDisabledOption = (
|
|
27865
|
+
var _option_isDisabled;
|
|
27866
|
+
var isDisabledOption = (_option_isDisabled = option.isDisabled) !== null && _option_isDisabled !== void 0 ? _option_isDisabled : isDisabled;
|
|
28005
27867
|
var isActiveOption = option.value === value;
|
|
28006
27868
|
var _obj2;
|
|
28007
27869
|
return /* @__PURE__ */ jsx("div", _object_spread_props$b(_object_spread$b({
|
|
@@ -29900,7 +29762,7 @@ function _object_spread_props$2(target, source) {
|
|
|
29900
29762
|
}
|
|
29901
29763
|
return target;
|
|
29902
29764
|
}
|
|
29903
|
-
|
|
29765
|
+
function _ts_generator(thisArg, body) {
|
|
29904
29766
|
var f, y, t, g, _ = {
|
|
29905
29767
|
label: 0,
|
|
29906
29768
|
sent: function() {
|
|
@@ -30001,7 +29863,7 @@ var __generator = globalThis && globalThis.__generator || function(thisArg, body
|
|
|
30001
29863
|
done: true
|
|
30002
29864
|
};
|
|
30003
29865
|
}
|
|
30004
|
-
}
|
|
29866
|
+
}
|
|
30005
29867
|
var Toaster = function(param) {
|
|
30006
29868
|
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;
|
|
30007
29869
|
var classes = useStyles$2({
|
|
@@ -30019,7 +29881,7 @@ var Toaster = function(param) {
|
|
|
30019
29881
|
}
|
|
30020
29882
|
var disappear = function() {
|
|
30021
29883
|
var _ref = _async_to_generator(function() {
|
|
30022
|
-
return
|
|
29884
|
+
return _ts_generator(this, function(_state) {
|
|
30023
29885
|
switch (_state.label) {
|
|
30024
29886
|
case 0:
|
|
30025
29887
|
return [
|
|
@@ -30278,15 +30140,16 @@ var WithPopup = function(param) {
|
|
|
30278
30140
|
className: clsx(classes.root, _define_property$1({}, classes.disabled, isDisabled))
|
|
30279
30141
|
}), addDataTestId(testId), addDataAttributes(data)), {
|
|
30280
30142
|
children: [
|
|
30281
|
-
/* @__PURE__ */ jsx("div", {
|
|
30143
|
+
/* @__PURE__ */ jsx("div", _object_spread_props$1(_object_spread$1({
|
|
30282
30144
|
className: classes.trigger,
|
|
30283
30145
|
onClick: eventType === "click" ? function(e) {
|
|
30284
30146
|
return handleToggle(!isOpen, e);
|
|
30285
|
-
} : void 0
|
|
30147
|
+
} : void 0
|
|
30148
|
+
}, addDataTestId(testId, "trigger")), {
|
|
30286
30149
|
children: isFunction$1(Trigger) ? /* @__PURE__ */ jsx(Trigger, {
|
|
30287
30150
|
isActive: isOpen
|
|
30288
30151
|
}) : Trigger
|
|
30289
|
-
}),
|
|
30152
|
+
})),
|
|
30290
30153
|
isOpen && /* @__PURE__ */ jsx(FloatingPortal, {
|
|
30291
30154
|
root: !shouldRenderInBody ? refs.reference.current : void 0,
|
|
30292
30155
|
children: /* @__PURE__ */ jsx("div", _object_spread_props$1(_object_spread$1({
|