@true-engineering/true-react-common-ui-kit 3.45.2 → 4.0.0-alpha1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/README.md +0 -40
- package/dist/components/AccountInfo/AccountInfo.d.ts +11 -11
- package/dist/components/AccountInfo/AccountInfo.stories.d.ts +6 -6
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +6 -6
- package/dist/components/AccountInfo/constants.d.ts +1 -1
- package/dist/components/AccountInfo/index.d.ts +2 -2
- package/dist/components/AddButton/AddButton.d.ts +14 -14
- package/dist/components/AddButton/AddButton.stories.d.ts +6 -6
- package/dist/components/AddButton/AddButton.styles.d.ts +3 -3
- package/dist/components/AddButton/index.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +41 -41
- package/dist/components/Button/Button.stories.d.ts +6 -6
- package/dist/components/Button/Button.styles.d.ts +8 -8
- package/dist/components/Button/constants.d.ts +2 -2
- package/dist/components/Button/index.d.ts +3 -3
- package/dist/components/Button/types.d.ts +3 -3
- package/dist/components/Checkbox/Checkbox.d.ts +24 -24
- package/dist/components/Checkbox/Checkbox.stories.d.ts +8 -8
- package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -3
- package/dist/components/Checkbox/index.d.ts +2 -2
- package/dist/components/CloseButton/CloseButton.d.ts +10 -10
- package/dist/components/CloseButton/CloseButton.stories.d.ts +5 -5
- package/dist/components/CloseButton/CloseButton.styles.d.ts +3 -3
- package/dist/components/CloseButton/index.d.ts +2 -2
- package/dist/components/Colors/Colors.d.ts +2 -2
- package/dist/components/Colors/Colors.stories.d.ts +5 -5
- package/dist/components/Colors/Colors.styles.d.ts +1 -1
- package/dist/components/Colors/index.d.ts +1 -1
- package/dist/components/ControlWrapper/ControlWrapper.d.ts +27 -0
- package/dist/components/ControlWrapper/ControlWrapper.stories.d.ts +6 -0
- package/dist/components/ControlWrapper/ControlWrapper.styles.d.ts +6 -0
- package/dist/components/ControlWrapper/index.d.ts +2 -0
- package/dist/components/CssBaseline/CssBaseline.d.ts +5 -5
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -3
- package/dist/components/CssBaseline/index.d.ts +2 -2
- package/dist/components/DateInput/DateInput.d.ts +17 -17
- package/dist/components/DateInput/DateInput.stories.d.ts +7 -7
- package/dist/components/DateInput/DateInput.styles.d.ts +6 -6
- package/dist/components/DateInput/constants.d.ts +2 -2
- package/dist/components/DateInput/index.d.ts +3 -3
- package/dist/components/DatePicker/DatePicker.d.ts +26 -26
- package/dist/components/DatePicker/DatePicker.stories.d.ts +7 -7
- package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -6
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +8 -8
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -7
- package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +2 -2
- package/dist/components/DatePicker/components/PopperContainer/PopperContainer.d.ts +4 -4
- package/dist/components/DatePicker/components/PopperContainer/index.d.ts +1 -1
- package/dist/components/DatePicker/components/index.d.ts +2 -2
- package/dist/components/DatePicker/constants.d.ts +3 -3
- package/dist/components/DatePicker/helpers.d.ts +3 -3
- package/dist/components/DatePicker/index.d.ts +4 -4
- package/dist/components/DatePicker/types.d.ts +4 -4
- package/dist/components/Description/Description.d.ts +13 -13
- package/dist/components/Description/Description.stories.d.ts +16 -16
- package/dist/components/Description/Description.styles.d.ts +3 -3
- package/dist/components/Description/constants.d.ts +1 -1
- package/dist/components/Description/index.d.ts +2 -2
- package/dist/components/FileInput/FileInput.d.ts +25 -25
- package/dist/components/FileInput/FileInput.stories.d.ts +7 -7
- package/dist/components/FileInput/FileInput.styles.d.ts +3 -3
- package/dist/components/FileInput/helpers.d.ts +2 -2
- package/dist/components/FileInput/index.d.ts +2 -2
- package/dist/components/FileItem/FileItem.d.ts +31 -31
- package/dist/components/FileItem/FileItem.stories.d.ts +8 -8
- package/dist/components/FileItem/FileItem.styles.d.ts +11 -11
- package/dist/components/FileItem/constants.d.ts +5 -5
- package/dist/components/FileItem/helpers.d.ts +4 -4
- package/dist/components/FileItem/index.d.ts +4 -4
- package/dist/components/FileItem/types.d.ts +8 -8
- package/dist/components/FiltersPane/FiltersPane.d.ts +22 -22
- package/dist/components/FiltersPane/FiltersPane.stories.d.ts +31 -32
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +11 -11
- package/dist/components/FiltersPane/components/Filter/Filter.d.ts +7 -7
- package/dist/components/FiltersPane/components/Filter/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +24 -24
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -15
- package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.d.ts +5 -5
- package/dist/components/FiltersPane/components/FilterMultiSelect/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +30 -30
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -15
- package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +5 -5
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -3
- package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +16 -16
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -26
- package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +13 -13
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -7
- package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +13 -13
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +8 -8
- package/dist/components/FiltersPane/components/FilterWrapper/helpers.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +20 -21
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -10
- package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +2 -2
- package/dist/components/FiltersPane/components/index.d.ts +9 -9
- package/dist/components/FiltersPane/constants.d.ts +9 -9
- package/dist/components/FiltersPane/helpers.d.ts +5 -5
- package/dist/components/FiltersPane/index.d.ts +4 -4
- package/dist/components/FiltersPane/types.d.ts +108 -108
- package/dist/components/Flag/Flag.d.ts +8 -8
- package/dist/components/Flag/Flag.stories.d.ts +12 -12
- package/dist/components/Flag/Flag.styles.d.ts +3 -3
- package/dist/components/Flag/index.d.ts +2 -2
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +31 -31
- package/dist/components/FlexibleTable/FlexibleTable.stories.d.ts +19 -19
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -7
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +14 -14
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -3
- package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -2
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +31 -31
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -6
- package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -2
- package/dist/components/FlexibleTable/components/index.d.ts +2 -2
- package/dist/components/FlexibleTable/constants.d.ts +3 -3
- package/dist/components/FlexibleTable/helpers.d.ts +3 -3
- package/dist/components/FlexibleTable/index.d.ts +4 -4
- package/dist/components/FlexibleTable/types.d.ts +57 -57
- package/dist/components/Icon/Icon.d.ts +8 -8
- package/dist/components/Icon/Icon.stories.d.ts +6 -6
- package/dist/components/Icon/Icon.styles.d.ts +3 -3
- package/dist/components/Icon/complexIcons/icons.d.ts +10 -10
- package/dist/components/Icon/complexIcons/index.d.ts +1 -1
- package/dist/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.d.ts +6 -6
- package/dist/components/Icon/components/ComplexIconBoilerplate/index.d.ts +1 -1
- package/dist/components/Icon/components/IconBolerplate/IconBoilerplate.d.ts +6 -6
- package/dist/components/Icon/components/IconBolerplate/index.d.ts +1 -1
- package/dist/components/Icon/components/index.d.ts +2 -2
- package/dist/components/Icon/helpers.d.ts +6 -6
- package/dist/components/Icon/icons-list.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +5 -5
- package/dist/components/Icon/snippet.d.ts +3 -3
- package/dist/components/Icon/types.d.ts +13 -13
- package/dist/components/IconButton/IconButton.d.ts +19 -19
- package/dist/components/IconButton/IconButton.stories.d.ts +6 -6
- package/dist/components/IconButton/IconButton.styles.d.ts +3 -3
- package/dist/components/IconButton/constants.d.ts +2 -2
- package/dist/components/IconButton/index.d.ts +3 -3
- package/dist/components/IconButton/types.d.ts +5 -5
- package/dist/components/IncrementInput/IncrementInput.d.ts +9 -9
- package/dist/components/IncrementInput/IncrementInput.stories.d.ts +6 -6
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +9 -9
- package/dist/components/IncrementInput/index.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +5 -52
- package/dist/components/Input/Input.stories.d.ts +25 -34
- package/dist/components/Input/Input.styles.d.ts +8 -7
- package/dist/components/Input/InputBase.d.ts +24 -0
- package/dist/components/Input/index.d.ts +4 -3
- package/dist/components/Input/types.d.ts +3 -4
- package/dist/components/List/List.d.ts +9 -9
- package/dist/components/List/List.stories.d.ts +5 -5
- package/dist/components/List/List.styles.d.ts +5 -5
- package/dist/components/List/components/ListItem/ListItem.d.ts +17 -17
- package/dist/components/List/components/ListItem/ListItem.styles.d.ts +3 -3
- package/dist/components/List/components/ListItem/index.d.ts +2 -2
- package/dist/components/List/components/index.d.ts +1 -1
- package/dist/components/List/index.d.ts +3 -3
- package/dist/components/Modal/Modal.d.ts +34 -34
- package/dist/components/Modal/Modal.stories.d.ts +29 -29
- package/dist/components/Modal/Modal.styles.d.ts +7 -7
- package/dist/components/Modal/index.d.ts +3 -3
- package/dist/components/Modal/types.d.ts +3 -3
- package/dist/components/MoreMenu/MoreMenu.d.ts +15 -15
- package/dist/components/MoreMenu/MoreMenu.stories.d.ts +6 -6
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -6
- package/dist/components/MoreMenu/index.d.ts +2 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts +23 -23
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +13 -13
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -7
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +12 -12
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -3
- package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +2 -2
- package/dist/components/MultiSelect/components/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts +4 -4
- package/dist/components/MultiSelect/types.d.ts +1 -1
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +25 -25
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -13
- package/dist/components/MultiSelectList/constants.d.ts +3 -3
- package/dist/components/MultiSelectList/helpers.d.ts +3 -3
- package/dist/components/MultiSelectList/index.d.ts +3 -3
- package/dist/components/MultiSelectList/types.d.ts +12 -12
- package/dist/components/NewMoreMenu/NewMoreMenu.d.ts +13 -13
- package/dist/components/NewMoreMenu/NewMoreMenu.stories.d.ts +12 -12
- package/dist/components/NewMoreMenu/NewMoreMenu.styles.d.ts +8 -8
- package/dist/components/NewMoreMenu/index.d.ts +2 -2
- package/dist/components/Notification/Notification.d.ts +17 -17
- package/dist/components/Notification/Notification.stories.d.ts +8 -8
- package/dist/components/Notification/Notification.styles.d.ts +3 -3
- package/dist/components/Notification/index.d.ts +3 -3
- package/dist/components/Notification/types.d.ts +1 -1
- package/dist/components/NumberInput/NumberInput.d.ts +18 -18
- package/dist/components/NumberInput/NumberInput.stories.d.ts +7 -7
- package/dist/components/NumberInput/helpers.d.ts +4 -4
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts +17 -17
- package/dist/components/PhoneInput/PhoneInput.stories.d.ts +28 -28
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -9
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +14 -13
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.d.ts +5 -5
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -7
- package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +2 -2
- package/dist/components/PhoneInput/components/index.d.ts +1 -1
- package/dist/components/PhoneInput/constants.d.ts +2 -2
- package/dist/components/PhoneInput/index.d.ts +4 -4
- package/dist/components/PhoneInput/types.d.ts +17 -15
- package/dist/components/RadioButton/RadioButton.d.ts +15 -15
- package/dist/components/RadioButton/RadioButton.stories.d.ts +7 -7
- package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -3
- package/dist/components/RadioButton/index.d.ts +2 -2
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +386 -386
- package/dist/components/ScrollIntoViewIfNeeded/constants.d.ts +3 -3
- package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +6 -8
- package/dist/components/SearchInput/SearchInput.stories.d.ts +16 -6
- package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -7
- package/dist/components/SearchInput/index.d.ts +2 -2
- package/dist/components/Select/CustomSelect.stories.d.ts +11 -11
- package/dist/components/Select/MultiSelect.stories.d.ts +15 -15
- package/dist/components/Select/Select.d.ts +52 -52
- package/dist/components/Select/Select.stories.d.ts +15 -15
- package/dist/components/Select/Select.styles.d.ts +34 -33
- package/dist/components/Select/components/SelectList/SelectList.d.ts +23 -23
- package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +6 -6
- package/dist/components/Select/components/SelectList/index.d.ts +2 -2
- package/dist/components/Select/components/SelectListItem/SelectListItem.d.ts +15 -15
- package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
- package/dist/components/Select/components/SelectListItem/index.d.ts +1 -1
- package/dist/components/Select/components/index.d.ts +2 -2
- package/dist/components/Select/constants.d.ts +2 -2
- package/dist/components/Select/helpers.d.ts +4 -4
- package/dist/components/Select/index.d.ts +4 -4
- package/dist/components/Select/types.d.ts +4 -1
- package/dist/components/Selector/Selector.d.ts +22 -22
- package/dist/components/Selector/Selector.stories.d.ts +7 -7
- package/dist/components/Selector/Selector.styles.d.ts +9 -9
- package/dist/components/Selector/index.d.ts +2 -2
- package/dist/components/Selector/types.d.ts +10 -10
- package/dist/components/Skeleton/Skeleton.d.ts +7 -7
- package/dist/components/Skeleton/Skeleton.stories.d.ts +6 -6
- package/dist/components/Skeleton/Skeleton.styles.d.ts +3 -3
- package/dist/components/Skeleton/index.d.ts +2 -2
- package/dist/components/SmartInput/SmartInput.d.ts +14 -14
- package/dist/components/SmartInput/SmartInput.stories.d.ts +18 -18
- package/dist/components/SmartInput/constants.d.ts +16 -16
- package/dist/components/SmartInput/helpers.d.ts +2 -2
- package/dist/components/SmartInput/index.d.ts +2 -2
- package/dist/components/SmartInput/types.d.ts +6 -6
- package/dist/components/Status/Status.d.ts +16 -16
- package/dist/components/Status/Status.stories.d.ts +6 -6
- package/dist/components/Status/Status.styles.d.ts +3 -3
- package/dist/components/Status/constants.d.ts +2 -2
- package/dist/components/Status/index.d.ts +2 -2
- package/dist/components/Status/types.d.ts +3 -3
- package/dist/components/Switch/Switch.d.ts +20 -20
- package/dist/components/Switch/Switch.stories.d.ts +16 -16
- package/dist/components/Switch/Switch.styles.d.ts +3 -3
- package/dist/components/Switch/index.d.ts +3 -3
- package/dist/components/Switch/types.d.ts +4 -4
- package/dist/components/TextArea/TextArea.d.ts +29 -38
- package/dist/components/TextArea/TextArea.stories.d.ts +17 -17
- package/dist/components/TextArea/TextArea.styles.d.ts +9 -3
- package/dist/components/TextArea/index.d.ts +3 -3
- package/dist/components/TextArea/types.d.ts +2 -2
- package/dist/components/TextButton/TextButton.d.ts +31 -31
- package/dist/components/TextButton/TextButton.stories.d.ts +6 -6
- package/dist/components/TextButton/TextButton.styles.d.ts +7 -7
- package/dist/components/TextButton/constants.d.ts +2 -2
- package/dist/components/TextButton/index.d.ts +3 -3
- package/dist/components/TextButton/types.d.ts +5 -5
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -15
- package/dist/components/TextWithInfo/TextWithInfo.stories.d.ts +12 -12
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -3
- package/dist/components/TextWithInfo/index.d.ts +2 -2
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +27 -27
- package/dist/components/TextWithTooltip/TextWithTooltip.stories.d.ts +24 -24
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -6
- package/dist/components/TextWithTooltip/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +11 -11
- package/dist/components/ThemedPreloader/ThemedPreloader.stories.d.ts +17 -17
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -7
- package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +5 -5
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -3
- package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +8 -8
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -3
- package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -2
- package/dist/components/ThemedPreloader/components/index.d.ts +3 -3
- package/dist/components/ThemedPreloader/constants.d.ts +1 -1
- package/dist/components/ThemedPreloader/index.d.ts +4 -4
- package/dist/components/ThemedPreloader/types.d.ts +2 -2
- package/dist/components/Toaster/Toaster.d.ts +23 -23
- package/dist/components/Toaster/Toaster.stories.d.ts +5 -5
- package/dist/components/Toaster/Toaster.styles.d.ts +6 -6
- package/dist/components/Toaster/constants.d.ts +1 -1
- package/dist/components/Toaster/index.d.ts +3 -3
- package/dist/components/Toaster/types.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +11 -11
- package/dist/components/Tooltip/Tooltip.stories.d.ts +5 -5
- package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -3
- package/dist/components/Tooltip/index.d.ts +3 -3
- package/dist/components/Tooltip/types.d.ts +1 -1
- package/dist/components/WithMessages/WithMessages.d.ts +10 -0
- package/dist/components/WithMessages/WithMessages.stories.d.ts +7 -0
- package/dist/components/WithMessages/WithMessages.styles.d.ts +3 -0
- package/dist/components/WithMessages/index.d.ts +2 -0
- package/dist/components/WithPopup/WithPopup.d.ts +33 -40
- package/dist/components/WithPopup/WithPopup.stories.d.ts +16 -16
- package/dist/components/WithPopup/WithPopup.styles.d.ts +3 -3
- package/dist/components/WithPopup/constants.d.ts +2 -2
- package/dist/components/WithPopup/index.d.ts +2 -2
- package/dist/components/WithPopup/types.d.ts +19 -22
- package/dist/components/WithTooltip/WithTooltip.d.ts +18 -18
- package/dist/components/WithTooltip/WithTooltip.stories.d.ts +6 -6
- package/dist/components/WithTooltip/WithTooltip.styles.d.ts +6 -7
- package/dist/components/WithTooltip/index.d.ts +2 -2
- package/dist/components/index.d.ts +48 -46
- package/dist/constants/index.d.ts +2 -2
- package/dist/constants/mime-types.d.ts +76 -76
- package/dist/constants/phone-info.d.ts +2 -2
- package/dist/helpers/index.d.ts +3 -3
- package/dist/helpers/misc.d.ts +21 -21
- package/dist/helpers/phone.d.ts +14 -14
- package/dist/helpers/popper-helpers.d.ts +2 -2
- package/dist/hooks/index.d.ts +7 -7
- package/dist/hooks/use-did-mount-effect.d.ts +2 -2
- package/dist/hooks/use-dropdown.d.ts +11 -11
- package/dist/hooks/use-is-mounted.d.ts +1 -1
- package/dist/hooks/use-merged-refs.d.ts +2 -2
- package/dist/hooks/use-mixed-styles.d.ts +1 -1
- package/dist/hooks/use-on-click-outside.d.ts +5 -5
- package/dist/hooks/use-tweak-styles.d.ts +21 -21
- package/dist/index.d.ts +6 -6
- package/dist/theme/Provider.d.ts +11 -11
- package/dist/theme/common.d.ts +111 -103
- package/dist/theme/helpers.d.ts +10 -10
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/types.d.ts +84 -82
- package/dist/true-react-common-ui-kit.js +1258 -1110
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +1238 -1090
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +45 -44
- package/package.json +99 -99
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.styles.ts +52 -52
- package/src/components/AccountInfo/AccountInfo.tsx +80 -80
- package/src/components/AccountInfo/constants.ts +1 -1
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/AddButton.tsx +52 -52
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.stories.tsx +50 -54
- package/src/components/Button/Button.styles.ts +200 -200
- package/src/components/Button/Button.tsx +129 -129
- package/src/components/Button/constants.ts +11 -11
- package/src/components/Button/index.ts +3 -3
- package/src/components/Button/types.ts +5 -5
- package/src/components/Checkbox/Checkbox.stories.tsx +54 -54
- package/src/components/Checkbox/Checkbox.styles.ts +49 -49
- package/src/components/Checkbox/Checkbox.tsx +84 -84
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.stories.tsx +11 -11
- package/src/components/CloseButton/CloseButton.styles.ts +34 -34
- package/src/components/CloseButton/CloseButton.tsx +35 -35
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +36 -36
- package/src/components/Colors/Colors.tsx +26 -26
- package/src/components/Colors/index.ts +1 -1
- package/src/components/ControlWrapper/ControlWrapper.stories.tsx +45 -0
- package/src/components/ControlWrapper/ControlWrapper.styles.ts +185 -0
- package/src/components/ControlWrapper/ControlWrapper.tsx +151 -0
- package/src/components/ControlWrapper/index.ts +2 -0
- package/src/components/CssBaseline/CssBaseline.styles.ts +14 -14
- package/src/components/CssBaseline/CssBaseline.tsx +13 -13
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.stories.tsx +61 -61
- package/src/components/DateInput/DateInput.styles.ts +13 -18
- package/src/components/DateInput/DateInput.tsx +90 -90
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- package/src/components/DatePicker/DatePicker.stories.tsx +88 -88
- package/src/components/DatePicker/DatePicker.styles.ts +38 -38
- package/src/components/DatePicker/DatePicker.tsx +314 -314
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +54 -88
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +81 -89
- package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
- package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
- package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
- package/src/components/DatePicker/components/index.ts +2 -2
- package/src/components/DatePicker/constants.ts +6 -6
- package/src/components/DatePicker/helpers.ts +23 -23
- package/src/components/DatePicker/index.ts +4 -4
- package/src/components/DatePicker/types.ts +48 -48
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.styles.ts +30 -30
- package/src/components/Description/Description.tsx +61 -61
- package/src/components/Description/constants.ts +1 -1
- package/src/components/Description/index.ts +2 -2
- package/src/components/FileInput/FileInput.stories.tsx +75 -75
- package/src/components/FileInput/FileInput.styles.ts +80 -80
- package/src/components/FileInput/FileInput.tsx +147 -147
- package/src/components/FileInput/helpers.ts +6 -6
- package/src/components/FileInput/index.ts +2 -2
- package/src/components/FileItem/FileItem.stories.tsx +59 -63
- package/src/components/FileItem/FileItem.styles.ts +122 -122
- package/src/components/FileItem/FileItem.tsx +157 -157
- package/src/components/FileItem/constants.ts +29 -29
- package/src/components/FileItem/helpers.ts +27 -27
- package/src/components/FileItem/index.ts +4 -4
- package/src/components/FileItem/types.ts +11 -11
- package/src/components/FiltersPane/FiltersPane.stories.tsx +295 -299
- package/src/components/FiltersPane/FiltersPane.styles.ts +92 -92
- package/src/components/FiltersPane/FiltersPane.tsx +162 -162
- package/src/components/FiltersPane/components/Filter/Filter.tsx +114 -114
- package/src/components/FiltersPane/components/Filter/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +63 -61
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +147 -154
- package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
- package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +143 -141
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +361 -361
- package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +166 -166
- package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +68 -68
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +208 -210
- package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -21
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -177
- package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +99 -99
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +149 -149
- package/src/components/FiltersPane/components/FilterWrapper/helpers.ts +14 -14
- package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +124 -123
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +162 -165
- package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
- package/src/components/FiltersPane/components/index.ts +9 -9
- package/src/components/FiltersPane/constants.ts +137 -137
- package/src/components/FiltersPane/helpers.ts +26 -26
- package/src/components/FiltersPane/index.ts +5 -5
- package/src/components/FiltersPane/types.ts +157 -157
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.styles.ts +17 -17
- package/src/components/Flag/Flag.tsx +26 -26
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +300 -300
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +111 -111
- package/src/components/FlexibleTable/FlexibleTable.tsx +308 -308
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +43 -43
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.tsx +113 -113
- package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -2
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +25 -25
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.tsx +193 -193
- package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -2
- package/src/components/FlexibleTable/components/index.ts +2 -2
- package/src/components/FlexibleTable/constants.ts +8 -8
- package/src/components/FlexibleTable/helpers.ts +16 -16
- package/src/components/FlexibleTable/index.ts +4 -4
- package/src/components/FlexibleTable/types.ts +82 -82
- package/src/components/Icon/Icon.stories.tsx +86 -86
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +26 -26
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/fileExcel.svg +10 -10
- package/src/components/Icon/complexIcons/fileImage.svg +12 -12
- package/src/components/Icon/complexIcons/fileOther.svg +9 -9
- package/src/components/Icon/complexIcons/filePdf.svg +10 -10
- package/src/components/Icon/complexIcons/fileWord.svg +10 -10
- package/src/components/Icon/complexIcons/fileXml.svg +12 -12
- package/src/components/Icon/complexIcons/fileZip.svg +15 -15
- package/src/components/Icon/complexIcons/icons.ts +19 -19
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
- package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
- package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
- package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
- package/src/components/Icon/components/index.ts +2 -2
- package/src/components/Icon/helpers.tsx +9 -9
- package/src/components/Icon/icons-list.ts +855 -855
- package/src/components/Icon/index.ts +5 -5
- package/src/components/Icon/snippet.tsx +6 -6
- package/src/components/Icon/types.ts +18 -18
- package/src/components/IconButton/IconButton.stories.tsx +32 -32
- package/src/components/IconButton/IconButton.styles.ts +84 -84
- package/src/components/IconButton/IconButton.tsx +74 -74
- package/src/components/IconButton/constants.ts +3 -3
- package/src/components/IconButton/index.ts +3 -3
- package/src/components/IconButton/types.ts +11 -11
- package/src/components/IncrementInput/IncrementInput.stories.tsx +29 -31
- package/src/components/IncrementInput/IncrementInput.styles.ts +78 -78
- package/src/components/IncrementInput/IncrementInput.tsx +105 -105
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +83 -91
- package/src/components/Input/Input.styles.ts +101 -308
- package/src/components/Input/Input.tsx +33 -296
- package/src/components/Input/InputBase.tsx +251 -0
- package/src/components/Input/index.ts +4 -3
- package/src/components/Input/types.ts +4 -33
- package/src/components/List/List.stories.tsx +90 -90
- package/src/components/List/List.styles.ts +25 -25
- package/src/components/List/List.tsx +68 -68
- package/src/components/List/components/ListItem/ListItem.styles.ts +52 -52
- package/src/components/List/components/ListItem/ListItem.tsx +68 -68
- package/src/components/List/components/ListItem/index.ts +2 -2
- package/src/components/List/components/index.ts +1 -1
- package/src/components/List/index.ts +3 -3
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/Modal/Modal.styles.ts +318 -318
- package/src/components/Modal/Modal.tsx +203 -203
- package/src/components/Modal/index.ts +3 -3
- package/src/components/Modal/types.ts +17 -17
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +69 -69
- package/src/components/MoreMenu/MoreMenu.tsx +93 -93
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.styles.ts +59 -59
- package/src/components/MultiSelect/MultiSelect.tsx +106 -106
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +53 -53
- package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
- package/src/components/MultiSelect/components/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +4 -4
- package/src/components/MultiSelect/types.ts +1 -1
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +138 -136
- package/src/components/MultiSelectList/MultiSelectList.tsx +461 -461
- package/src/components/MultiSelectList/constants.ts +21 -21
- package/src/components/MultiSelectList/helpers.ts +11 -11
- package/src/components/MultiSelectList/index.ts +3 -3
- package/src/components/MultiSelectList/types.ts +15 -15
- package/src/components/NewMoreMenu/NewMoreMenu.stories.tsx +74 -74
- package/src/components/NewMoreMenu/NewMoreMenu.styles.ts +39 -39
- package/src/components/NewMoreMenu/NewMoreMenu.tsx +79 -79
- package/src/components/NewMoreMenu/index.ts +2 -2
- package/src/components/Notification/Notification.stories.tsx +51 -55
- package/src/components/Notification/Notification.styles.ts +57 -57
- package/src/components/Notification/Notification.tsx +77 -77
- package/src/components/Notification/index.ts +3 -3
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +33 -35
- package/src/components/NumberInput/NumberInput.tsx +134 -137
- package/src/components/NumberInput/helpers.ts +84 -84
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +66 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +92 -89
- package/src/components/PhoneInput/PhoneInput.tsx +211 -214
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +105 -103
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -155
- package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
- package/src/components/PhoneInput/components/index.ts +1 -1
- package/src/components/PhoneInput/constants.ts +3 -3
- package/src/components/PhoneInput/index.ts +4 -4
- package/src/components/PhoneInput/types.ts +20 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +57 -57
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
- package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.stories.tsx +24 -23
- package/src/components/SearchInput/SearchInput.styles.ts +44 -54
- package/src/components/SearchInput/SearchInput.tsx +49 -70
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/CustomSelect.stories.tsx +250 -253
- package/src/components/Select/MultiSelect.stories.tsx +232 -240
- package/src/components/Select/Select.stories.tsx +228 -236
- package/src/components/Select/Select.styles.ts +139 -147
- package/src/components/Select/Select.tsx +628 -658
- package/src/components/Select/components/SelectList/SelectList.styles.ts +73 -73
- package/src/components/Select/components/SelectList/SelectList.tsx +152 -152
- package/src/components/Select/components/SelectList/index.ts +2 -2
- package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
- package/src/components/Select/components/SelectListItem/SelectListItem.tsx +76 -76
- package/src/components/Select/components/SelectListItem/index.ts +1 -1
- package/src/components/Select/components/index.ts +2 -2
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/helpers.ts +20 -20
- package/src/components/Select/index.ts +4 -4
- package/src/components/Select/types.ts +6 -1
- package/src/components/Selector/Selector.stories.tsx +62 -62
- package/src/components/Selector/Selector.styles.ts +165 -165
- package/src/components/Selector/Selector.tsx +115 -115
- package/src/components/Selector/index.ts +2 -2
- package/src/components/Selector/types.ts +12 -12
- package/src/components/Skeleton/Skeleton.stories.tsx +19 -19
- package/src/components/Skeleton/Skeleton.styles.ts +46 -46
- package/src/components/Skeleton/Skeleton.tsx +12 -12
- package/src/components/Skeleton/index.ts +2 -2
- package/src/components/SmartInput/SmartInput.stories.tsx +51 -52
- package/src/components/SmartInput/SmartInput.tsx +116 -116
- package/src/components/SmartInput/constants.ts +91 -91
- package/src/components/SmartInput/helpers.ts +26 -26
- package/src/components/SmartInput/index.ts +2 -2
- package/src/components/SmartInput/types.ts +18 -18
- package/src/components/Status/Status.stories.tsx +69 -73
- package/src/components/Status/Status.styles.ts +143 -143
- package/src/components/Status/Status.tsx +49 -49
- package/src/components/Status/constants.ts +11 -11
- package/src/components/Status/index.ts +3 -3
- package/src/components/Status/types.ts +5 -5
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/Switch/Switch.tsx +75 -75
- package/src/components/Switch/index.ts +3 -3
- package/src/components/Switch/types.ts +4 -4
- package/src/components/TextArea/TextArea.stories.tsx +35 -37
- package/src/components/TextArea/TextArea.styles.ts +82 -177
- package/src/components/TextArea/TextArea.tsx +161 -183
- package/src/components/TextArea/index.ts +3 -3
- package/src/components/TextArea/types.ts +6 -6
- package/src/components/TextButton/TextButton.stories.tsx +43 -47
- package/src/components/TextButton/TextButton.styles.ts +130 -130
- package/src/components/TextButton/TextButton.tsx +110 -110
- package/src/components/TextButton/constants.ts +3 -3
- package/src/components/TextButton/index.ts +3 -3
- package/src/components/TextButton/types.ts +11 -11
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -59
- package/src/components/TextWithInfo/TextWithInfo.tsx +62 -62
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -21
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +156 -156
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -26
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +54 -54
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +55 -55
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -15
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -24
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/index.ts +3 -3
- package/src/components/ThemedPreloader/constants.ts +1 -1
- package/src/components/ThemedPreloader/index.ts +4 -4
- package/src/components/ThemedPreloader/types.ts +3 -3
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Toaster/Toaster.styles.ts +60 -60
- package/src/components/Toaster/Toaster.tsx +96 -96
- package/src/components/Toaster/constants.ts +1 -1
- package/src/components/Toaster/index.ts +3 -3
- package/src/components/Toaster/types.ts +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.styles.ts +49 -49
- package/src/components/Tooltip/Tooltip.tsx +35 -35
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/WithMessages/WithMessages.stories.tsx +40 -0
- package/src/components/WithMessages/WithMessages.styles.ts +47 -0
- package/src/components/WithMessages/WithMessages.tsx +59 -0
- package/src/components/WithMessages/index.ts +2 -0
- package/src/components/WithPopup/WithPopup.stories.tsx +100 -101
- package/src/components/WithPopup/WithPopup.styles.ts +45 -47
- package/src/components/WithPopup/WithPopup.tsx +184 -210
- package/src/components/WithPopup/constants.ts +3 -3
- package/src/components/WithPopup/index.ts +2 -2
- package/src/components/WithPopup/types.ts +25 -32
- package/src/components/WithTooltip/WithTooltip.stories.tsx +56 -56
- package/src/components/WithTooltip/WithTooltip.styles.ts +7 -13
- package/src/components/WithTooltip/WithTooltip.tsx +67 -72
- package/src/components/WithTooltip/index.ts +2 -2
- package/src/components/index.ts +48 -46
- package/src/constants/index.ts +2 -2
- package/src/constants/mime-types.ts +77 -77
- package/src/constants/phone-info.ts +2147 -2147
- package/src/helpers/index.ts +3 -3
- package/src/helpers/misc.ts +160 -160
- package/src/helpers/phone.ts +91 -91
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/index.ts +7 -7
- package/src/hooks/use-did-mount-effect.ts +18 -18
- package/src/hooks/use-dropdown.ts +84 -84
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-merged-refs.ts +4 -4
- package/src/hooks/use-mixed-styles.ts +14 -14
- package/src/hooks/use-on-click-outside.ts +77 -77
- package/src/hooks/use-tweak-styles.ts +57 -57
- package/src/index.ts +6 -6
- package/src/theme/Provider.tsx +21 -21
- package/src/theme/common.ts +175 -166
- package/src/theme/helpers.ts +76 -76
- package/src/theme/index.ts +4 -4
- package/src/theme/types.ts +162 -158
- package/src/types.ts +65 -62
- package/src/vite-env.d.ts +1 -1
- package/dist/components/Input/constants.d.ts +0 -1
- package/dist/components/WithPopup/helpers.d.ts +0 -2
- package/src/components/Input/constants.ts +0 -1
- package/src/components/WithPopup/helpers.ts +0 -9
|
@@ -1,108 +1,108 @@
|
|
|
1
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
-
import { IDatePickerProps } from '../DatePicker';
|
|
3
|
-
import { IMultiSelectListValues } from '../MultiSelectList';
|
|
4
|
-
import type { IFilterIntervalProps, IFilterMultiSelectProps, IFilterSelectProps, IFilterWithDatesProps, IFilterWithPeriodProps } from './components';
|
|
5
|
-
import { FilterLocales, PERIODS, SelectLocales } from './constants';
|
|
6
|
-
export type IPeriodType = (typeof PERIODS)[number];
|
|
7
|
-
export type IFilterMultiSelectValues<Option = string> = IMultiSelectListValues<Option>;
|
|
8
|
-
export type IPeriodsList = Array<IPeriodType | [string, IPeriodGetter]>;
|
|
9
|
-
export interface IFiltersPaneSearchPayload<Value> {
|
|
10
|
-
value?: string;
|
|
11
|
-
field?: Value;
|
|
12
|
-
}
|
|
13
|
-
export interface IFilterValueViewProps<Value> {
|
|
14
|
-
value?: Value;
|
|
15
|
-
filter: ConfigItem<Value>;
|
|
16
|
-
}
|
|
17
|
-
export interface IDatePeriod {
|
|
18
|
-
from: Date | null;
|
|
19
|
-
to: Date | null;
|
|
20
|
-
}
|
|
21
|
-
export interface IPeriod extends IDatePeriod {
|
|
22
|
-
periodType: string;
|
|
23
|
-
label?: string;
|
|
24
|
-
}
|
|
25
|
-
export type IPeriodGetter = () => IDatePeriod;
|
|
26
|
-
export type IFilterWithDatesValue = IDatePeriod;
|
|
27
|
-
export type MultiSelectOptionType<Value> = Value | undefined extends IFilterMultiSelectValues<infer Option> | undefined ? Option : unknown;
|
|
28
|
-
export interface IConfigItemBasicBase<Value> {
|
|
29
|
-
name: string;
|
|
30
|
-
isInline?: boolean;
|
|
31
|
-
isClearable?: boolean;
|
|
32
|
-
requiredFilledFilters?: string[];
|
|
33
|
-
localeKey?: IFilterLocaleKey;
|
|
34
|
-
locale?: IPartialFilterLocale;
|
|
35
|
-
getSelectedValueView?: (v: Value) => ReactNode;
|
|
36
|
-
}
|
|
37
|
-
export type IIntervalConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
38
|
-
type: 'interval';
|
|
39
|
-
} & Omit<IFilterIntervalProps, 'value' | 'onChange' | 'labelName'>;
|
|
40
|
-
export interface IBooleanConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
41
|
-
type: 'boolean';
|
|
42
|
-
}
|
|
43
|
-
export type IMultiSelectConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
44
|
-
type: 'multiSelect';
|
|
45
|
-
} & Omit<IFilterMultiSelectProps<Value, MultiSelectOptionType<Value>>, 'value' | 'onChange'>;
|
|
46
|
-
export type ISelectConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
47
|
-
type: 'select';
|
|
48
|
-
} & Omit<IFilterSelectProps<Value>, 'value' | 'onChange'>;
|
|
49
|
-
export type IDateRangeWithoutPeriodConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
50
|
-
type: 'dateRangeWithoutPeriod';
|
|
51
|
-
dateFormat?: string;
|
|
52
|
-
} & Omit<IFilterWithDatesProps, 'value' | 'onChange' | 'onStartBtnSubmit' | 'onEndBtnSubmit'>;
|
|
53
|
-
export type IDateRangeConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
54
|
-
type: 'dateRange';
|
|
55
|
-
dateFormat?: string;
|
|
56
|
-
} & Omit<IFilterWithPeriodProps, 'value' | 'onChange' | 'setIsOpen'>;
|
|
57
|
-
export type CustomComponent<Value> = FC<{
|
|
58
|
-
value?: Value;
|
|
59
|
-
onChange: (v?: Value) => void;
|
|
60
|
-
onClose?: () => void;
|
|
61
|
-
filter: ICustomConfigItem<Value>;
|
|
62
|
-
localeKey?: IFilterLocaleKey;
|
|
63
|
-
locale?: IPartialFilterLocale;
|
|
64
|
-
}>;
|
|
65
|
-
export interface ICustomConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
66
|
-
[key: string]: any;
|
|
67
|
-
type: 'custom';
|
|
68
|
-
component: CustomComponent<Value>;
|
|
69
|
-
valueViewType?: 'range' | 'multiple';
|
|
70
|
-
}
|
|
71
|
-
export type ConfigItem<Value> = ISelectConfigItem<Value> | IMultiSelectConfigItem<Value> | ICustomConfigItem<Value> | IDateRangeWithoutPeriodConfigItem<Value> | IDateRangeConfigItem<Value> | IIntervalConfigItem<Value> | IBooleanConfigItem<Value>;
|
|
72
|
-
export type ConfigType<Values> = {
|
|
73
|
-
[K in keyof Values]: ConfigItem<Values[K]>;
|
|
74
|
-
};
|
|
75
|
-
export interface IFilterLocale {
|
|
76
|
-
clear: string;
|
|
77
|
-
all: string;
|
|
78
|
-
other: string;
|
|
79
|
-
chosen: string;
|
|
80
|
-
searchPlaceholder: string;
|
|
81
|
-
displayedFields: string;
|
|
82
|
-
nothingFound: string;
|
|
83
|
-
from: string;
|
|
84
|
-
to: string;
|
|
85
|
-
back: string;
|
|
86
|
-
months: string[];
|
|
87
|
-
periods: {
|
|
88
|
-
[key: string]: string;
|
|
89
|
-
THIS_MONTH: string;
|
|
90
|
-
LAST_MONTH: string;
|
|
91
|
-
THIS_YEAR: string;
|
|
92
|
-
LAST_YEAR: string;
|
|
93
|
-
CUSTOM: string;
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
export type IPartialFilterLocale = Partial<Omit<IFilterLocale, 'periods'>> & {
|
|
97
|
-
periods?: Partial<IFilterLocale['periods']>;
|
|
98
|
-
};
|
|
99
|
-
export type IFilterLocaleKey = keyof typeof FilterLocales;
|
|
100
|
-
export interface ISelectLocale {
|
|
101
|
-
clear: string;
|
|
102
|
-
all: string;
|
|
103
|
-
chosen: string;
|
|
104
|
-
searchPlaceholder: string;
|
|
105
|
-
nothingFound: string;
|
|
106
|
-
}
|
|
107
|
-
export type ISelectLocaleKey = keyof typeof SelectLocales;
|
|
108
|
-
export type IFilterWithDateDatePickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'locale' | 'months' | 'selectedDate' | 'tweakStyles'>;
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { IDatePickerProps } from '../DatePicker';
|
|
3
|
+
import { IMultiSelectListValues } from '../MultiSelectList';
|
|
4
|
+
import type { IFilterIntervalProps, IFilterMultiSelectProps, IFilterSelectProps, IFilterWithDatesProps, IFilterWithPeriodProps } from './components';
|
|
5
|
+
import { FilterLocales, PERIODS, SelectLocales } from './constants';
|
|
6
|
+
export type IPeriodType = (typeof PERIODS)[number];
|
|
7
|
+
export type IFilterMultiSelectValues<Option = string> = IMultiSelectListValues<Option>;
|
|
8
|
+
export type IPeriodsList = Array<IPeriodType | [string, IPeriodGetter]>;
|
|
9
|
+
export interface IFiltersPaneSearchPayload<Value> {
|
|
10
|
+
value?: string;
|
|
11
|
+
field?: Value;
|
|
12
|
+
}
|
|
13
|
+
export interface IFilterValueViewProps<Value> {
|
|
14
|
+
value?: Value;
|
|
15
|
+
filter: ConfigItem<Value>;
|
|
16
|
+
}
|
|
17
|
+
export interface IDatePeriod {
|
|
18
|
+
from: Date | null;
|
|
19
|
+
to: Date | null;
|
|
20
|
+
}
|
|
21
|
+
export interface IPeriod extends IDatePeriod {
|
|
22
|
+
periodType: string;
|
|
23
|
+
label?: string;
|
|
24
|
+
}
|
|
25
|
+
export type IPeriodGetter = () => IDatePeriod;
|
|
26
|
+
export type IFilterWithDatesValue = IDatePeriod;
|
|
27
|
+
export type MultiSelectOptionType<Value> = Value | undefined extends IFilterMultiSelectValues<infer Option> | undefined ? Option : unknown;
|
|
28
|
+
export interface IConfigItemBasicBase<Value> {
|
|
29
|
+
name: string;
|
|
30
|
+
isInline?: boolean;
|
|
31
|
+
isClearable?: boolean;
|
|
32
|
+
requiredFilledFilters?: string[];
|
|
33
|
+
localeKey?: IFilterLocaleKey;
|
|
34
|
+
locale?: IPartialFilterLocale;
|
|
35
|
+
getSelectedValueView?: (v: Value) => ReactNode;
|
|
36
|
+
}
|
|
37
|
+
export type IIntervalConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
38
|
+
type: 'interval';
|
|
39
|
+
} & Omit<IFilterIntervalProps, 'value' | 'onChange' | 'labelName'>;
|
|
40
|
+
export interface IBooleanConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
41
|
+
type: 'boolean';
|
|
42
|
+
}
|
|
43
|
+
export type IMultiSelectConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
44
|
+
type: 'multiSelect';
|
|
45
|
+
} & Omit<IFilterMultiSelectProps<Value, MultiSelectOptionType<Value>>, 'value' | 'onChange'>;
|
|
46
|
+
export type ISelectConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
47
|
+
type: 'select';
|
|
48
|
+
} & Omit<IFilterSelectProps<Value>, 'value' | 'onChange'>;
|
|
49
|
+
export type IDateRangeWithoutPeriodConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
50
|
+
type: 'dateRangeWithoutPeriod';
|
|
51
|
+
dateFormat?: string;
|
|
52
|
+
} & Omit<IFilterWithDatesProps, 'value' | 'onChange' | 'onStartBtnSubmit' | 'onEndBtnSubmit'>;
|
|
53
|
+
export type IDateRangeConfigItem<Value> = IConfigItemBasicBase<Value> & {
|
|
54
|
+
type: 'dateRange';
|
|
55
|
+
dateFormat?: string;
|
|
56
|
+
} & Omit<IFilterWithPeriodProps, 'value' | 'onChange' | 'setIsOpen'>;
|
|
57
|
+
export type CustomComponent<Value> = FC<{
|
|
58
|
+
value?: Value;
|
|
59
|
+
onChange: (v?: Value) => void;
|
|
60
|
+
onClose?: () => void;
|
|
61
|
+
filter: ICustomConfigItem<Value>;
|
|
62
|
+
localeKey?: IFilterLocaleKey;
|
|
63
|
+
locale?: IPartialFilterLocale;
|
|
64
|
+
}>;
|
|
65
|
+
export interface ICustomConfigItem<Value> extends IConfigItemBasicBase<Value> {
|
|
66
|
+
[key: string]: any;
|
|
67
|
+
type: 'custom';
|
|
68
|
+
component: CustomComponent<Value>;
|
|
69
|
+
valueViewType?: 'range' | 'multiple';
|
|
70
|
+
}
|
|
71
|
+
export type ConfigItem<Value> = ISelectConfigItem<Value> | IMultiSelectConfigItem<Value> | ICustomConfigItem<Value> | IDateRangeWithoutPeriodConfigItem<Value> | IDateRangeConfigItem<Value> | IIntervalConfigItem<Value> | IBooleanConfigItem<Value>;
|
|
72
|
+
export type ConfigType<Values> = {
|
|
73
|
+
[K in keyof Values]: ConfigItem<Values[K]>;
|
|
74
|
+
};
|
|
75
|
+
export interface IFilterLocale {
|
|
76
|
+
clear: string;
|
|
77
|
+
all: string;
|
|
78
|
+
other: string;
|
|
79
|
+
chosen: string;
|
|
80
|
+
searchPlaceholder: string;
|
|
81
|
+
displayedFields: string;
|
|
82
|
+
nothingFound: string;
|
|
83
|
+
from: string;
|
|
84
|
+
to: string;
|
|
85
|
+
back: string;
|
|
86
|
+
months: string[];
|
|
87
|
+
periods: {
|
|
88
|
+
[key: string]: string;
|
|
89
|
+
THIS_MONTH: string;
|
|
90
|
+
LAST_MONTH: string;
|
|
91
|
+
THIS_YEAR: string;
|
|
92
|
+
LAST_YEAR: string;
|
|
93
|
+
CUSTOM: string;
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
export type IPartialFilterLocale = Partial<Omit<IFilterLocale, 'periods'>> & {
|
|
97
|
+
periods?: Partial<IFilterLocale['periods']>;
|
|
98
|
+
};
|
|
99
|
+
export type IFilterLocaleKey = keyof typeof FilterLocales;
|
|
100
|
+
export interface ISelectLocale {
|
|
101
|
+
clear: string;
|
|
102
|
+
all: string;
|
|
103
|
+
chosen: string;
|
|
104
|
+
searchPlaceholder: string;
|
|
105
|
+
nothingFound: string;
|
|
106
|
+
}
|
|
107
|
+
export type ISelectLocaleKey = keyof typeof SelectLocales;
|
|
108
|
+
export type IFilterWithDateDatePickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'locale' | 'months' | 'selectedDate' | 'tweakStyles'>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ICommonProps } from '../../types';
|
|
3
|
-
import { IFlagStyles } from './Flag.styles';
|
|
4
|
-
export interface IFlagProps extends Pick<ICommonProps<IFlagStyles>, 'tweakStyles'> {
|
|
5
|
-
/** @default '' */
|
|
6
|
-
countryCode?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const Flag: FC<IFlagProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { IFlagStyles } from './Flag.styles';
|
|
4
|
+
export interface IFlagProps extends Pick<ICommonProps<IFlagStyles>, 'tweakStyles'> {
|
|
5
|
+
/** @default '' */
|
|
6
|
+
countryCode?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Flag: FC<IFlagProps>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
component: import("react").FC<import("./Flag").IFlagProps>;
|
|
4
|
-
argTypes: {
|
|
5
|
-
countryCode: {
|
|
6
|
-
control: string;
|
|
7
|
-
options: string[];
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
|
12
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./Flag").IFlagProps>;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
component: import("react").FC<import("./Flag").IFlagProps>;
|
|
4
|
+
argTypes: {
|
|
5
|
+
countryCode: {
|
|
6
|
+
control: string;
|
|
7
|
+
options: string[];
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./Flag").IFlagProps>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ITweakStyles } from '../../theme';
|
|
2
|
-
export declare const useStyles: import("../../theme").IUseStyles<"root" | "noFlag", unknown>;
|
|
3
|
-
export type IFlagStyles = ITweakStyles<typeof useStyles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "noFlag", unknown>;
|
|
3
|
+
export type IFlagStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './Flag';
|
|
2
|
-
export type { IFlagStyles } from './Flag.styles';
|
|
1
|
+
export * from './Flag';
|
|
2
|
+
export type { IFlagStyles } from './Flag.styles';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ReactNode, RefObject } from 'react';
|
|
2
|
-
import { ICommonProps } from '../../types';
|
|
3
|
-
import { IFlexibleTableRowProps } from './components';
|
|
4
|
-
import { ITableRow, IFlexibleTableConfigType, IInfinityScrollConfig, IFlexibleTableRenderMode, IHeaderContent } from './types';
|
|
5
|
-
import { IFlexibleTableStyles } from './FlexibleTable.styles';
|
|
6
|
-
export interface IFlexibleTableProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>, UniqueField extends keyof Row> extends ICommonProps<IFlexibleTableStyles>, Pick<IFlexibleTableRowProps<Row, HeaderContent, UniqueField>, 'uniqueField' | 'rowAttributes' | 'isFirstColumnSticky' | 'isExpandableRowComponentInitiallyOpen' | 'expandableRowComponent' | 'onRowClick' | 'onRowHover'> {
|
|
7
|
-
content: Row[];
|
|
8
|
-
/** @default 'table' */
|
|
9
|
-
renderMode?: IFlexibleTableRenderMode;
|
|
10
|
-
headerContent?: HeaderContent;
|
|
11
|
-
config: IFlexibleTableConfigType<Row, HeaderContent>;
|
|
12
|
-
enabledColumns?: Array<keyof Row & string>;
|
|
13
|
-
/** Индексы строк, на которые навешивается класс `active` */
|
|
14
|
-
activeRows?: number[];
|
|
15
|
-
/** @default false */
|
|
16
|
-
isLoading?: boolean;
|
|
17
|
-
/** @default false */
|
|
18
|
-
isHorizontallyScrollable?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* Добавляет строкам состояние `isFocused`, вызывает ререндер при наведении
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
|
-
isRowFocusable?: boolean;
|
|
24
|
-
infinityScrollConfig?: IInfinityScrollConfig;
|
|
25
|
-
onHeadClick?: (column: keyof Row) => void;
|
|
26
|
-
refForScroll?: RefObject<HTMLDivElement>;
|
|
27
|
-
nothingFoundContent?: ReactNode;
|
|
28
|
-
/** @default true */
|
|
29
|
-
shouldRenderHeader?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export declare function FlexibleTable<Row extends ITableRow, HeaderContent extends IHeaderContent<Row> = IHeaderContent<Row>, UniqueField extends keyof Row = keyof Row>({ content, headerContent, config, enabledColumns, activeRows, uniqueField, isLoading, isFirstColumnSticky, isHorizontallyScrollable, isRowFocusable, infinityScrollConfig, renderMode, refForScroll, nothingFoundContent, data, testId, tweakStyles, shouldRenderHeader, onHeadClick, ...restProps }: IFlexibleTableProps<Row, HeaderContent, UniqueField>): JSX.Element;
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { IFlexibleTableRowProps } from './components';
|
|
4
|
+
import { ITableRow, IFlexibleTableConfigType, IInfinityScrollConfig, IFlexibleTableRenderMode, IHeaderContent } from './types';
|
|
5
|
+
import { IFlexibleTableStyles } from './FlexibleTable.styles';
|
|
6
|
+
export interface IFlexibleTableProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>, UniqueField extends keyof Row> extends ICommonProps<IFlexibleTableStyles>, Pick<IFlexibleTableRowProps<Row, HeaderContent, UniqueField>, 'uniqueField' | 'rowAttributes' | 'isFirstColumnSticky' | 'isExpandableRowComponentInitiallyOpen' | 'expandableRowComponent' | 'onRowClick' | 'onRowHover'> {
|
|
7
|
+
content: Row[];
|
|
8
|
+
/** @default 'table' */
|
|
9
|
+
renderMode?: IFlexibleTableRenderMode;
|
|
10
|
+
headerContent?: HeaderContent;
|
|
11
|
+
config: IFlexibleTableConfigType<Row, HeaderContent>;
|
|
12
|
+
enabledColumns?: Array<keyof Row & string>;
|
|
13
|
+
/** Индексы строк, на которые навешивается класс `active` */
|
|
14
|
+
activeRows?: number[];
|
|
15
|
+
/** @default false */
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
/** @default false */
|
|
18
|
+
isHorizontallyScrollable?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Добавляет строкам состояние `isFocused`, вызывает ререндер при наведении
|
|
21
|
+
* @default false
|
|
22
|
+
*/
|
|
23
|
+
isRowFocusable?: boolean;
|
|
24
|
+
infinityScrollConfig?: IInfinityScrollConfig;
|
|
25
|
+
onHeadClick?: (column: keyof Row) => void;
|
|
26
|
+
refForScroll?: RefObject<HTMLDivElement>;
|
|
27
|
+
nothingFoundContent?: ReactNode;
|
|
28
|
+
/** @default true */
|
|
29
|
+
shouldRenderHeader?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare function FlexibleTable<Row extends ITableRow, HeaderContent extends IHeaderContent<Row> = IHeaderContent<Row>, UniqueField extends keyof Row = keyof Row>({ content, headerContent, config, enabledColumns, activeRows, uniqueField, isLoading, isFirstColumnSticky, isHorizontallyScrollable, isRowFocusable, infinityScrollConfig, renderMode, refForScroll, nothingFoundContent, data, testId, tweakStyles, shouldRenderHeader, onHeadClick, ...restProps }: IFlexibleTableProps<Row, HeaderContent, UniqueField>): JSX.Element;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./FlexibleTable").IFlexibleTableProps<import("./types").ITableRow, Partial<Record<string, unknown>>, string>>;
|
|
2
|
-
export default _default;
|
|
3
|
-
interface ITableContent {
|
|
4
|
-
contractCode: string;
|
|
5
|
-
validFrom: Date;
|
|
6
|
-
validTo: Date;
|
|
7
|
-
validTo1?: Date;
|
|
8
|
-
validTo2?: Date;
|
|
9
|
-
title: string;
|
|
10
|
-
signDate: Date;
|
|
11
|
-
partner: string;
|
|
12
|
-
partnerDescription: string;
|
|
13
|
-
parentContract: string;
|
|
14
|
-
currency: string;
|
|
15
|
-
status: string;
|
|
16
|
-
note?: string;
|
|
17
|
-
publicNote?: string;
|
|
18
|
-
}
|
|
19
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./FlexibleTable").IFlexibleTableProps<ITableContent, Partial<Record<keyof ITableContent, unknown>>, keyof ITableContent>>;
|
|
1
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("./FlexibleTable").IFlexibleTableProps<import("./types").ITableRow, Partial<Record<string, unknown>>, string>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
interface ITableContent {
|
|
4
|
+
contractCode: string;
|
|
5
|
+
validFrom: Date;
|
|
6
|
+
validTo: Date;
|
|
7
|
+
validTo1?: Date;
|
|
8
|
+
validTo2?: Date;
|
|
9
|
+
title: string;
|
|
10
|
+
signDate: Date;
|
|
11
|
+
partner: string;
|
|
12
|
+
partnerDescription: string;
|
|
13
|
+
parentContract: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
status: string;
|
|
16
|
+
note?: string;
|
|
17
|
+
publicNote?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("./FlexibleTable").IFlexibleTableProps<ITableContent, Partial<Record<keyof ITableContent, unknown>>, keyof ITableContent>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ITweakStyles } from '../../theme';
|
|
2
|
-
import type { IFlexibleTableRowStyles } from './components';
|
|
3
|
-
export declare const STICKY_SHADOW_PADDING = 12;
|
|
4
|
-
export declare const useStyles: import("../../theme").IUseStyles<"scroll" | "root" | "loader" | "header" | "nothingFound" | "head" | "body" | "loaderRow" | "loaderCell" | "headerRow" | "headerSticky" | "headerSecond" | "nothingFoundRow", unknown>;
|
|
5
|
-
export type IFlexibleTableStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
-
tweakTableRow: IFlexibleTableRowStyles;
|
|
7
|
-
}>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import type { IFlexibleTableRowStyles } from './components';
|
|
3
|
+
export declare const STICKY_SHADOW_PADDING = 12;
|
|
4
|
+
export declare const useStyles: import("../../theme").IUseStyles<"scroll" | "root" | "loader" | "header" | "nothingFound" | "head" | "body" | "loaderRow" | "loaderCell" | "headerRow" | "headerSticky" | "headerSecond" | "nothingFoundRow", unknown>;
|
|
5
|
+
export type IFlexibleTableStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakTableRow: IFlexibleTableRowStyles;
|
|
7
|
+
}>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ICommonProps } from '../../../../types';
|
|
3
|
-
import { ITableRow, IValueComponentProps, IFlexibleTableConfigType, IFlexibleTableRenderMode, IHeaderContent } from '../../types';
|
|
4
|
-
import { IFlexibleTableCellStyles } from './FlexibleTableCell.styles';
|
|
5
|
-
export interface IFlexibleTableCellProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>> extends Pick<ICommonProps<IFlexibleTableCellStyles>, 'tweakStyles'>, Pick<IValueComponentProps<Row, unknown>, 'isFocusedRow' | 'isActiveRow' | 'isNestedComponentExpanded' | 'isRowNestedComponentExpanded' | 'onSetNestedComponent'> {
|
|
6
|
-
row: Row;
|
|
7
|
-
columnName: keyof Row;
|
|
8
|
-
config: IFlexibleTableConfigType<Row, HeaderContent>;
|
|
9
|
-
renderMode: IFlexibleTableRenderMode;
|
|
10
|
-
isSecond?: boolean;
|
|
11
|
-
isSticky?: boolean;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare function FlexibleTableCell<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>>({ row, columnName, config, renderMode, isSecond, isSticky: isOldSticky, isLoading, tweakStyles, ...valueComponentProps }: IFlexibleTableCellProps<Row, HeaderContent>): JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ICommonProps } from '../../../../types';
|
|
3
|
+
import { ITableRow, IValueComponentProps, IFlexibleTableConfigType, IFlexibleTableRenderMode, IHeaderContent } from '../../types';
|
|
4
|
+
import { IFlexibleTableCellStyles } from './FlexibleTableCell.styles';
|
|
5
|
+
export interface IFlexibleTableCellProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>> extends Pick<ICommonProps<IFlexibleTableCellStyles>, 'tweakStyles'>, Pick<IValueComponentProps<Row, unknown>, 'isFocusedRow' | 'isActiveRow' | 'isNestedComponentExpanded' | 'isRowNestedComponentExpanded' | 'onSetNestedComponent'> {
|
|
6
|
+
row: Row;
|
|
7
|
+
columnName: keyof Row;
|
|
8
|
+
config: IFlexibleTableConfigType<Row, HeaderContent>;
|
|
9
|
+
renderMode: IFlexibleTableRenderMode;
|
|
10
|
+
isSecond?: boolean;
|
|
11
|
+
isSticky?: boolean;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare function FlexibleTableCell<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>>({ row, columnName, config, renderMode, isSecond, isSticky: isOldSticky, isLoading, tweakStyles, ...valueComponentProps }: IFlexibleTableCellProps<Row, HeaderContent>): JSX.Element;
|
package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ITweakStyles } from '../../../../theme';
|
|
2
|
-
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "sticky" | "loading" | "clickable" | "second" | "skeleton", unknown>;
|
|
3
|
-
export type IFlexibleTableCellStyles = ITweakStyles<typeof useStyles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "sticky" | "loading" | "clickable" | "second" | "skeleton", unknown>;
|
|
3
|
+
export type IFlexibleTableCellStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './FlexibleTableCell';
|
|
2
|
-
export type { IFlexibleTableCellStyles } from './FlexibleTableCell.styles';
|
|
1
|
+
export * from './FlexibleTableCell';
|
|
2
|
+
export type { IFlexibleTableCellStyles } from './FlexibleTableCell.styles';
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { ICommonProps } from '../../../../types';
|
|
3
|
-
import { ITableRow, IFlexibleTableConfigType, IFlexibleTableRenderMode, IHeaderContent } from '../../types';
|
|
4
|
-
import { IFlexibleTableRowStyles } from './FlexibleTableRow.styles';
|
|
5
|
-
export interface IFlexibleTableRowProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>, UniqueField extends keyof Row> extends Pick<ICommonProps<IFlexibleTableRowStyles>, 'tweakStyles'> {
|
|
6
|
-
item: Row;
|
|
7
|
-
index: number;
|
|
8
|
-
uniqueField?: UniqueField;
|
|
9
|
-
renderMode: IFlexibleTableRenderMode;
|
|
10
|
-
/** @default false */
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
/** @default false */
|
|
13
|
-
isFocusable?: boolean;
|
|
14
|
-
/** @deprecated Use {@position}
|
|
15
|
-
* @default false */
|
|
16
|
-
isFirstColumnSticky?: boolean;
|
|
17
|
-
/** @default false */
|
|
18
|
-
isLoading?: boolean;
|
|
19
|
-
config: IFlexibleTableConfigType<Row, HeaderContent>;
|
|
20
|
-
columns: Array<keyof Row & string>;
|
|
21
|
-
rowAttributes?: Array<keyof Row>;
|
|
22
|
-
/** @default false */
|
|
23
|
-
isExpandableRowComponentInitiallyOpen?: boolean | ((row: Row, index: number) => boolean);
|
|
24
|
-
/** Возвращает React-элемент, который отрисуется под строкой при нажатии на неё */
|
|
25
|
-
expandableRowComponent?: (item: Row, isOpen: boolean, close: () => void) => ReactNode;
|
|
26
|
-
onRowHover?: (id?: Row[UniqueField]) => void;
|
|
27
|
-
onRowClick?: (id: Row[UniqueField]) => void;
|
|
28
|
-
}
|
|
29
|
-
declare function FlexibleTableRowInner<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>, UniqueField extends keyof Row>({ item, index, config, columns, uniqueField, renderMode, isActive, isFocusable, isFirstColumnSticky, isLoading, rowAttributes, isExpandableRowComponentInitiallyOpen, tweakStyles, expandableRowComponent, onRowHover, onRowClick, }: IFlexibleTableRowProps<Row, HeaderContent, UniqueField>): JSX.Element;
|
|
30
|
-
export declare const FlexibleTableRow: typeof FlexibleTableRowInner;
|
|
31
|
-
export {};
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../../../types';
|
|
3
|
+
import { ITableRow, IFlexibleTableConfigType, IFlexibleTableRenderMode, IHeaderContent } from '../../types';
|
|
4
|
+
import { IFlexibleTableRowStyles } from './FlexibleTableRow.styles';
|
|
5
|
+
export interface IFlexibleTableRowProps<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>, UniqueField extends keyof Row> extends Pick<ICommonProps<IFlexibleTableRowStyles>, 'tweakStyles'> {
|
|
6
|
+
item: Row;
|
|
7
|
+
index: number;
|
|
8
|
+
uniqueField?: UniqueField;
|
|
9
|
+
renderMode: IFlexibleTableRenderMode;
|
|
10
|
+
/** @default false */
|
|
11
|
+
isActive?: boolean;
|
|
12
|
+
/** @default false */
|
|
13
|
+
isFocusable?: boolean;
|
|
14
|
+
/** @deprecated Use {@position}
|
|
15
|
+
* @default false */
|
|
16
|
+
isFirstColumnSticky?: boolean;
|
|
17
|
+
/** @default false */
|
|
18
|
+
isLoading?: boolean;
|
|
19
|
+
config: IFlexibleTableConfigType<Row, HeaderContent>;
|
|
20
|
+
columns: Array<keyof Row & string>;
|
|
21
|
+
rowAttributes?: Array<keyof Row>;
|
|
22
|
+
/** @default false */
|
|
23
|
+
isExpandableRowComponentInitiallyOpen?: boolean | ((row: Row, index: number) => boolean);
|
|
24
|
+
/** Возвращает React-элемент, который отрисуется под строкой при нажатии на неё */
|
|
25
|
+
expandableRowComponent?: (item: Row, isOpen: boolean, close: () => void) => ReactNode;
|
|
26
|
+
onRowHover?: (id?: Row[UniqueField]) => void;
|
|
27
|
+
onRowClick?: (id: Row[UniqueField]) => void;
|
|
28
|
+
}
|
|
29
|
+
declare function FlexibleTableRowInner<Row extends ITableRow, HeaderContent extends IHeaderContent<Row>, UniqueField extends keyof Row>({ item, index, config, columns, uniqueField, renderMode, isActive, isFocusable, isFirstColumnSticky, isLoading, rowAttributes, isExpandableRowComponentInitiallyOpen, tweakStyles, expandableRowComponent, onRowHover, onRowClick, }: IFlexibleTableRowProps<Row, HeaderContent, UniqueField>): JSX.Element;
|
|
30
|
+
export declare const FlexibleTableRow: typeof FlexibleTableRowInner;
|
|
31
|
+
export {};
|
package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ITweakStyles } from '../../../../theme';
|
|
2
|
-
import { IFlexibleTableCellStyles } from '../FlexibleTableCell';
|
|
3
|
-
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "active" | "editable" | "clickable" | "nestedComponent", unknown>;
|
|
4
|
-
export type IFlexibleTableRowStyles = ITweakStyles<typeof useStyles, {
|
|
5
|
-
tweakTableCell: IFlexibleTableCellStyles;
|
|
6
|
-
}>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IFlexibleTableCellStyles } from '../FlexibleTableCell';
|
|
3
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "active" | "editable" | "clickable" | "nestedComponent", unknown>;
|
|
4
|
+
export type IFlexibleTableRowStyles = ITweakStyles<typeof useStyles, {
|
|
5
|
+
tweakTableCell: IFlexibleTableCellStyles;
|
|
6
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './FlexibleTableRow';
|
|
2
|
-
export type { IFlexibleTableRowStyles } from './FlexibleTableRow.styles';
|
|
1
|
+
export * from './FlexibleTableRow';
|
|
2
|
+
export type { IFlexibleTableRowStyles } from './FlexibleTableRow.styles';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './FlexibleTableRow';
|
|
2
|
-
export * from './FlexibleTableCell';
|
|
1
|
+
export * from './FlexibleTableRow';
|
|
2
|
+
export * from './FlexibleTableCell';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IFlexibleTableRenderMode, IFlexibleTableRender } from './types';
|
|
2
|
-
export declare const DEFAULT_DATE_FORMAT = "dd.MM.yyyy";
|
|
3
|
-
export declare const TableRenders: Record<IFlexibleTableRenderMode, IFlexibleTableRender>;
|
|
1
|
+
import { IFlexibleTableRenderMode, IFlexibleTableRender } from './types';
|
|
2
|
+
export declare const DEFAULT_DATE_FORMAT = "dd.MM.yyyy";
|
|
3
|
+
export declare const TableRenders: Record<IFlexibleTableRenderMode, IFlexibleTableRender>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { IFlexibleTableConfigType, ITableRow } from './types';
|
|
2
|
-
export declare const hasHorizontalScrollBar: (el: HTMLElement | null | undefined) => boolean;
|
|
3
|
-
export declare const formatCellContent: <Values extends ITableRow, HeaderContent extends Partial<Record<keyof Values, unknown>>>(value: unknown, config?: IFlexibleTableConfigType<Values, HeaderContent>[keyof Values] | undefined) => string;
|
|
1
|
+
import { IFlexibleTableConfigType, ITableRow } from './types';
|
|
2
|
+
export declare const hasHorizontalScrollBar: (el: HTMLElement | null | undefined) => boolean;
|
|
3
|
+
export declare const formatCellContent: <Values extends ITableRow, HeaderContent extends Partial<Record<keyof Values, unknown>>>(value: unknown, config?: IFlexibleTableConfigType<Values, HeaderContent>[keyof Values] | undefined) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './FlexibleTable';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export type { IFlexibleTableStyles } from './FlexibleTable.styles';
|
|
4
|
-
export type { IFlexibleTableCellStyles, IFlexibleTableRowStyles } from './components';
|
|
1
|
+
export * from './FlexibleTable';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export type { IFlexibleTableStyles } from './FlexibleTable.styles';
|
|
4
|
+
export type { IFlexibleTableCellStyles, IFlexibleTableRowStyles } from './components';
|