@true-engineering/true-react-common-ui-kit 3.45.2 → 3.45.3
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 +7 -1
- 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/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 +32 -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 +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 +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/customFlags/customFlags.d.ts +10 -0
- package/dist/components/Flag/customFlags/index.d.ts +1 -0
- 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 +52 -52
- package/dist/components/Input/Input.stories.d.ts +34 -34
- 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 -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 +13 -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 +15 -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 +8 -8
- package/dist/components/SearchInput/SearchInput.stories.d.ts +6 -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 +33 -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 +1 -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 +38 -38
- package/dist/components/TextArea/TextArea.stories.d.ts +17 -17
- package/dist/components/TextArea/TextArea.styles.d.ts +3 -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/WithPopup/WithPopup.d.ts +40 -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/helpers.d.ts +2 -2
- package/dist/components/WithPopup/index.d.ts +2 -2
- package/dist/components/WithPopup/types.d.ts +22 -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 +7 -7
- package/dist/components/WithTooltip/index.d.ts +2 -2
- package/dist/components/index.d.ts +46 -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 +103 -103
- package/dist/theme/helpers.d.ts +10 -10
- package/dist/theme/index.d.ts +4 -4
- package/dist/theme/types.d.ts +82 -82
- package/dist/true-react-common-ui-kit.js +127 -73
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +127 -73
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +44 -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 +54 -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/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/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 +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 +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 +63 -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 +299 -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 +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 +141 -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 +210 -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 +123 -123
- 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 +157 -157
- package/src/components/Flag/Flag.stories.tsx +30 -29
- package/src/components/Flag/Flag.styles.ts +21 -17
- package/src/components/Flag/Flag.tsx +40 -26
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/customFlags/AB.svg +1 -0
- package/src/components/Flag/customFlags/OS.svg +1 -0
- package/src/components/Flag/customFlags/augment.d.ts +1 -0
- package/src/components/Flag/customFlags/customFlags.ts +13 -0
- package/src/components/Flag/customFlags/index.ts +1 -0
- 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 +31 -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 +91 -91
- package/src/components/Input/Input.styles.ts +308 -308
- package/src/components/Input/Input.tsx +296 -296
- package/src/components/Input/constants.ts +1 -1
- package/src/components/Input/index.ts +3 -3
- package/src/components/Input/types.ts +33 -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 +136 -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 +55 -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 +35 -35
- package/src/components/NumberInput/NumberInput.tsx +137 -137
- package/src/components/NumberInput/helpers.ts +84 -84
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +71 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +89 -89
- package/src/components/PhoneInput/PhoneInput.tsx +214 -214
- 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/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 +16 -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 +23 -23
- package/src/components/SearchInput/SearchInput.styles.ts +54 -54
- package/src/components/SearchInput/SearchInput.tsx +70 -70
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/CustomSelect.stories.tsx +253 -253
- package/src/components/Select/MultiSelect.stories.tsx +240 -240
- package/src/components/Select/Select.stories.tsx +236 -236
- package/src/components/Select/Select.styles.ts +147 -147
- package/src/components/Select/Select.tsx +658 -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 +1 -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 +52 -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 +73 -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 +37 -37
- package/src/components/TextArea/TextArea.styles.ts +177 -177
- package/src/components/TextArea/TextArea.tsx +183 -183
- package/src/components/TextArea/index.ts +3 -3
- package/src/components/TextArea/types.ts +6 -6
- package/src/components/TextButton/TextButton.stories.tsx +47 -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/WithPopup/WithPopup.stories.tsx +101 -101
- package/src/components/WithPopup/WithPopup.styles.ts +47 -47
- package/src/components/WithPopup/WithPopup.tsx +210 -210
- package/src/components/WithPopup/constants.ts +3 -3
- package/src/components/WithPopup/helpers.ts +9 -9
- package/src/components/WithPopup/index.ts +2 -2
- package/src/components/WithPopup/types.ts +32 -32
- package/src/components/WithTooltip/WithTooltip.stories.tsx +56 -56
- package/src/components/WithTooltip/WithTooltip.styles.ts +13 -13
- package/src/components/WithTooltip/WithTooltip.tsx +72 -72
- package/src/components/WithTooltip/index.ts +2 -2
- package/src/components/index.ts +46 -46
- package/src/constants/index.ts +2 -2
- package/src/constants/mime-types.ts +77 -77
- package/src/constants/phone-info.ts +2164 -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 +166 -166
- package/src/theme/helpers.ts +76 -76
- package/src/theme/index.ts +4 -4
- package/src/theme/types.ts +158 -158
- package/src/types.ts +62 -62
- package/src/vite-env.d.ts +1 -1
|
@@ -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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './customFlags';
|
|
@@ -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';
|
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
-
import { IRenderNode } from '../../types';
|
|
3
|
-
export type IFlexibleTableRenderMode = 'table' | 'divs';
|
|
4
|
-
export type IFlexibleTableRender = Record<'Root' | 'Head' | 'Body' | 'Row' | 'Header' | 'Cell', keyof JSX.IntrinsicElements>;
|
|
5
|
-
export type ITableRow = Record<string, any>;
|
|
6
|
-
export type IHeaderContent<T extends ITableRow> = Partial<Record<keyof T, unknown>>;
|
|
7
|
-
export interface ITitleComponentProps<Value> {
|
|
8
|
-
value?: Value;
|
|
9
|
-
}
|
|
10
|
-
export interface IValueComponentProps<Values, Value> {
|
|
11
|
-
value: Value;
|
|
12
|
-
row: Values;
|
|
13
|
-
isFocusedRow?: boolean;
|
|
14
|
-
isActiveRow?: boolean;
|
|
15
|
-
isNestedComponentExpanded: boolean;
|
|
16
|
-
isRowNestedComponentExpanded: boolean;
|
|
17
|
-
onSetNestedComponent: (component?: ReactNode) => void;
|
|
18
|
-
}
|
|
19
|
-
export type ICellClickHandler<Values, Value> = (event: MouseEvent, cellComponentProps: IValueComponentProps<Values, Value>) => void;
|
|
20
|
-
export interface IFlexibleTableRowConfig<Values extends ITableRow, Key extends keyof Values, HeaderContent extends IHeaderContent<Values> = IHeaderContent<Values>> {
|
|
21
|
-
title?: IRenderNode<ITitleComponentProps<HeaderContent[Key]>>;
|
|
22
|
-
component?: IRenderNode<IValueComponentProps<Values, NonNullable<Values[Key]>>>;
|
|
23
|
-
dateFormat?: string;
|
|
24
|
-
minWidth?: string | number;
|
|
25
|
-
width?: string | number;
|
|
26
|
-
maxWidth?: string | number;
|
|
27
|
-
/** @default 'left' */
|
|
28
|
-
titleAlign?: CSSProperties['textAlign'];
|
|
29
|
-
cellAlign?: CSSProperties['textAlign'];
|
|
30
|
-
cellVerticalAlign?: CSSProperties['verticalAlign'];
|
|
31
|
-
position?: CSSProperties['position'];
|
|
32
|
-
right?: number;
|
|
33
|
-
left?: number;
|
|
34
|
-
shouldRenderDataId?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Проверка, нужно ли отрисовать component
|
|
37
|
-
* @description **Не влияет на типизацию `component`, лучше использовать `row`**
|
|
38
|
-
* @default isNotEmpty
|
|
39
|
-
*/
|
|
40
|
-
shouldRenderComponent?: boolean | ((value: Values[Key], values: Values, key: Key) => boolean);
|
|
41
|
-
onCellClick?: ICellClickHandler<Values, Values[Key]>;
|
|
42
|
-
}
|
|
43
|
-
export type IFlexibleTableConfigType<Values extends ITableRow, HeaderContent extends IHeaderContent<Values> = IHeaderContent<Values>> = {
|
|
44
|
-
[Key in keyof Values]?: IFlexibleTableRowConfig<Values, Key, HeaderContent>;
|
|
45
|
-
};
|
|
46
|
-
export interface IInfinityScrollConfig {
|
|
47
|
-
activePage: number;
|
|
48
|
-
totalPages: number;
|
|
49
|
-
isLoading: boolean;
|
|
50
|
-
isLastPage: boolean;
|
|
51
|
-
onInfinityScroll: (skip: number) => void;
|
|
52
|
-
}
|
|
53
|
-
export interface INestedComponent {
|
|
54
|
-
isOpen: boolean;
|
|
55
|
-
component?: ReactNode;
|
|
56
|
-
cellKey?: string;
|
|
57
|
-
}
|
|
1
|
+
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { IRenderNode } from '../../types';
|
|
3
|
+
export type IFlexibleTableRenderMode = 'table' | 'divs';
|
|
4
|
+
export type IFlexibleTableRender = Record<'Root' | 'Head' | 'Body' | 'Row' | 'Header' | 'Cell', keyof JSX.IntrinsicElements>;
|
|
5
|
+
export type ITableRow = Record<string, any>;
|
|
6
|
+
export type IHeaderContent<T extends ITableRow> = Partial<Record<keyof T, unknown>>;
|
|
7
|
+
export interface ITitleComponentProps<Value> {
|
|
8
|
+
value?: Value;
|
|
9
|
+
}
|
|
10
|
+
export interface IValueComponentProps<Values, Value> {
|
|
11
|
+
value: Value;
|
|
12
|
+
row: Values;
|
|
13
|
+
isFocusedRow?: boolean;
|
|
14
|
+
isActiveRow?: boolean;
|
|
15
|
+
isNestedComponentExpanded: boolean;
|
|
16
|
+
isRowNestedComponentExpanded: boolean;
|
|
17
|
+
onSetNestedComponent: (component?: ReactNode) => void;
|
|
18
|
+
}
|
|
19
|
+
export type ICellClickHandler<Values, Value> = (event: MouseEvent, cellComponentProps: IValueComponentProps<Values, Value>) => void;
|
|
20
|
+
export interface IFlexibleTableRowConfig<Values extends ITableRow, Key extends keyof Values, HeaderContent extends IHeaderContent<Values> = IHeaderContent<Values>> {
|
|
21
|
+
title?: IRenderNode<ITitleComponentProps<HeaderContent[Key]>>;
|
|
22
|
+
component?: IRenderNode<IValueComponentProps<Values, NonNullable<Values[Key]>>>;
|
|
23
|
+
dateFormat?: string;
|
|
24
|
+
minWidth?: string | number;
|
|
25
|
+
width?: string | number;
|
|
26
|
+
maxWidth?: string | number;
|
|
27
|
+
/** @default 'left' */
|
|
28
|
+
titleAlign?: CSSProperties['textAlign'];
|
|
29
|
+
cellAlign?: CSSProperties['textAlign'];
|
|
30
|
+
cellVerticalAlign?: CSSProperties['verticalAlign'];
|
|
31
|
+
position?: CSSProperties['position'];
|
|
32
|
+
right?: number;
|
|
33
|
+
left?: number;
|
|
34
|
+
shouldRenderDataId?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Проверка, нужно ли отрисовать component
|
|
37
|
+
* @description **Не влияет на типизацию `component`, лучше использовать `row`**
|
|
38
|
+
* @default isNotEmpty
|
|
39
|
+
*/
|
|
40
|
+
shouldRenderComponent?: boolean | ((value: Values[Key], values: Values, key: Key) => boolean);
|
|
41
|
+
onCellClick?: ICellClickHandler<Values, Values[Key]>;
|
|
42
|
+
}
|
|
43
|
+
export type IFlexibleTableConfigType<Values extends ITableRow, HeaderContent extends IHeaderContent<Values> = IHeaderContent<Values>> = {
|
|
44
|
+
[Key in keyof Values]?: IFlexibleTableRowConfig<Values, Key, HeaderContent>;
|
|
45
|
+
};
|
|
46
|
+
export interface IInfinityScrollConfig {
|
|
47
|
+
activePage: number;
|
|
48
|
+
totalPages: number;
|
|
49
|
+
isLoading: boolean;
|
|
50
|
+
isLastPage: boolean;
|
|
51
|
+
onInfinityScroll: (skip: number) => void;
|
|
52
|
+
}
|
|
53
|
+
export interface INestedComponent {
|
|
54
|
+
isOpen: boolean;
|
|
55
|
+
component?: ReactNode;
|
|
56
|
+
cellKey?: string;
|
|
57
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ICommonProps } from '../../types';
|
|
3
|
-
import { IIconType } from './types';
|
|
4
|
-
import { IIconStyles } from './Icon.styles';
|
|
5
|
-
export interface IIconProps extends ICommonProps<IIconStyles> {
|
|
6
|
-
type: IIconType;
|
|
7
|
-
}
|
|
8
|
-
export declare const Icon: FC<IIconProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { IIconType } from './types';
|
|
4
|
+
import { IIconStyles } from './Icon.styles';
|
|
5
|
+
export interface IIconProps extends ICommonProps<IIconStyles> {
|
|
6
|
+
type: IIconType;
|
|
7
|
+
}
|
|
8
|
+
export declare const Icon: FC<IIconProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
title: string;
|
|
3
|
-
};
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export declare const Gallery: () => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
declare const _default: {
|
|
2
|
+
title: string;
|
|
3
|
+
};
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Default: () => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const Gallery: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ITweakStyles } from '../../theme';
|
|
2
|
-
export declare const useStyles: import("../../theme").IUseStyles<"root", unknown>;
|
|
3
|
-
export type IIconStyles = ITweakStyles<typeof useStyles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root", unknown>;
|
|
3
|
+
export type IIconStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const complexIcons: {
|
|
2
|
-
avatar: string;
|
|
3
|
-
'file-excel': string;
|
|
4
|
-
'file-image': string;
|
|
5
|
-
'file-other': string;
|
|
6
|
-
'file-pdf': string;
|
|
7
|
-
'file-word': string;
|
|
8
|
-
'file-xml': string;
|
|
9
|
-
'file-zip': string;
|
|
10
|
-
};
|
|
1
|
+
export declare const complexIcons: {
|
|
2
|
+
avatar: string;
|
|
3
|
+
'file-excel': string;
|
|
4
|
+
'file-image': string;
|
|
5
|
+
'file-other': string;
|
|
6
|
+
'file-pdf': string;
|
|
7
|
+
'file-word': string;
|
|
8
|
+
'file-xml': string;
|
|
9
|
+
'file-zip': string;
|
|
10
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './icons';
|
|
1
|
+
export * from './icons';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IComplexIcon } from '../../types';
|
|
3
|
-
export interface IComplexIconBoilerplateProps {
|
|
4
|
-
type: IComplexIcon;
|
|
5
|
-
}
|
|
6
|
-
export declare const ComplexIconBoilerplate: FC<IComplexIconBoilerplateProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IComplexIcon } from '../../types';
|
|
3
|
+
export interface IComplexIconBoilerplateProps {
|
|
4
|
+
type: IComplexIcon;
|
|
5
|
+
}
|
|
6
|
+
export declare const ComplexIconBoilerplate: FC<IComplexIconBoilerplateProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './ComplexIconBoilerplate';
|
|
1
|
+
export * from './ComplexIconBoilerplate';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { ICommonIcon } from '../../types';
|
|
3
|
-
export interface IIconBoilerplateProps {
|
|
4
|
-
type: ICommonIcon;
|
|
5
|
-
}
|
|
6
|
-
export declare const IconBoilerplate: FC<IIconBoilerplateProps>;
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonIcon } from '../../types';
|
|
3
|
+
export interface IIconBoilerplateProps {
|
|
4
|
+
type: ICommonIcon;
|
|
5
|
+
}
|
|
6
|
+
export declare const IconBoilerplate: FC<IIconBoilerplateProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './IconBoilerplate';
|
|
1
|
+
export * from './IconBoilerplate';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ComplexIconBoilerplate';
|
|
2
|
-
export * from './IconBolerplate';
|
|
1
|
+
export * from './ComplexIconBoilerplate';
|
|
2
|
+
export * from './IconBolerplate';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { IIconType, ISvgIcon } from './types';
|
|
2
|
-
export declare const isComplexIcon: (type: IIconType) => type is "avatar" | "file-excel" | "file-image" | "file-other" | "file-pdf" | "file-word" | "file-xml" | "file-zip";
|
|
3
|
-
/**
|
|
4
|
-
* Эта функция позволяет корректно определить ключи в типе
|
|
5
|
-
*/
|
|
6
|
-
export declare const checkIcons: <P extends string>(ico: Record<P, ISvgIcon>) => Record<P, ISvgIcon>;
|
|
1
|
+
import type { IIconType, ISvgIcon } from './types';
|
|
2
|
+
export declare const isComplexIcon: (type: IIconType) => type is "avatar" | "file-excel" | "file-image" | "file-other" | "file-pdf" | "file-word" | "file-xml" | "file-zip";
|
|
3
|
+
/**
|
|
4
|
+
* Эта функция позволяет корректно определить ключи в типе
|
|
5
|
+
*/
|
|
6
|
+
export declare const checkIcons: <P extends string>(ico: Record<P, ISvgIcon>) => Record<P, ISvgIcon>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const iconsList: Record<"direction" | "filter" | "document" | "copy" | "cancel" | "close" | "search" | "repeat" | "link" | "sort" | "size" | "menu" | "check" | "settings" | "list" | "arrow" | "vendor-service" | "aircraft-takeoff" | "archive" | "arrow-right" | "baggage" | "balloon" | "bluetooth" | "bonus" | "book" | "box" | "business" | "calendar" | "check-big" | "check-all" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down-small" | "chevron-left-small" | "chevron-right-small" | "chevron-up-small" | "circle-check" | "close-large" | "close-window" | "copy-outline" | "crane" | "danger" | "download" | "email" | "eye" | "eye-closed" | "female" | "folder" | "folder-add" | "food" | "import" | "information" | "insurance" | "lock" | "lock-open" | "male" | "minus" | "burger-menu" | "pencil" | "pin" | "plane" | "plane-circle" | "plus" | "presentation" | "print" | "question" | "refresh" | "rocket" | "round-trip" | "vendor-logo" | "scan" | "send-email" | "sign-out" | "sort-asc" | "sort-desc" | "sort-list-asc" | "sort-list-desc" | "star" | "status-error" | "status-info" | "status-not-ok" | "status-ok" | "status-warning" | "three-circles" | "ticket-revert" | "ticket" | "time" | "trash-can" | "upgrade" | "user" | "user-group" | "voucher" | "upload", import("./types").ISvgIcon>;
|
|
1
|
+
export declare const iconsList: Record<"direction" | "filter" | "document" | "copy" | "cancel" | "close" | "search" | "repeat" | "link" | "sort" | "size" | "menu" | "check" | "settings" | "list" | "arrow" | "vendor-service" | "aircraft-takeoff" | "archive" | "arrow-right" | "baggage" | "balloon" | "bluetooth" | "bonus" | "book" | "box" | "business" | "calendar" | "check-big" | "check-all" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down-small" | "chevron-left-small" | "chevron-right-small" | "chevron-up-small" | "circle-check" | "close-large" | "close-window" | "copy-outline" | "crane" | "danger" | "download" | "email" | "eye" | "eye-closed" | "female" | "folder" | "folder-add" | "food" | "import" | "information" | "insurance" | "lock" | "lock-open" | "male" | "minus" | "burger-menu" | "pencil" | "pin" | "plane" | "plane-circle" | "plus" | "presentation" | "print" | "question" | "refresh" | "rocket" | "round-trip" | "vendor-logo" | "scan" | "send-email" | "sign-out" | "sort-asc" | "sort-desc" | "sort-list-asc" | "sort-list-desc" | "star" | "status-error" | "status-info" | "status-not-ok" | "status-ok" | "status-warning" | "three-circles" | "ticket-revert" | "ticket" | "time" | "trash-can" | "upgrade" | "user" | "user-group" | "voucher" | "upload", import("./types").ISvgIcon>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './Icon';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export { iconsList } from './icons-list';
|
|
4
|
-
export type { IIconStyles } from './Icon.styles';
|
|
5
|
-
export * from './snippet';
|
|
1
|
+
export * from './Icon';
|
|
2
|
+
export * from './types';
|
|
3
|
+
export { iconsList } from './icons-list';
|
|
4
|
+
export type { IIconStyles } from './Icon.styles';
|
|
5
|
+
export * from './snippet';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { IIcon } from './types';
|
|
3
|
-
export declare const renderIcon: (icon: IIcon) => ReactNode;
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { IIcon } from './types';
|
|
3
|
+
export declare const renderIcon: (icon: IIcon) => ReactNode;
|