@true-engineering/true-react-common-ui-kit 2.6.0 → 3.0.0-alpha.0
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/dist/components/AccountInfo/AccountInfo.d.ts +2 -3
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +6 -64
- package/dist/components/AccountInfo/index.d.ts +1 -1
- package/dist/components/AddButton/AddButton.d.ts +2 -3
- package/dist/components/AddButton/AddButton.styles.d.ts +3 -28
- package/dist/components/AddButton/index.d.ts +1 -1
- package/dist/components/Button/Button.d.ts +2 -4
- package/dist/components/Button/Button.styles.d.ts +8 -150
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +3 -17
- package/dist/components/Checkbox/Checkbox.styles.d.ts +3 -50
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/CloseButton/CloseButton.d.ts +3 -5
- package/dist/components/CloseButton/CloseButton.styles.d.ts +3 -27
- package/dist/components/CloseButton/index.d.ts +1 -1
- package/dist/components/Colors/Colors.styles.d.ts +1 -32
- package/dist/components/Colors/index.d.ts +0 -1
- package/dist/components/CssBaseline/CssBaseline.d.ts +2 -4
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +3 -11
- package/dist/components/CssBaseline/index.d.ts +1 -1
- package/dist/components/DateInput/DateInput.d.ts +3 -3
- package/dist/components/DateInput/DateInput.styles.d.ts +6 -11
- package/dist/components/DateInput/index.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +5 -7
- package/dist/components/DatePicker/DatePicker.styles.d.ts +6 -33
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.d.ts +3 -3
- package/dist/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.d.ts +7 -69
- package/dist/components/DatePicker/components/DatePickerHeader/index.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +2 -2
- package/dist/components/Description/Description.d.ts +2 -3
- package/dist/components/Description/Description.styles.d.ts +3 -24
- package/dist/components/Description/index.d.ts +1 -1
- package/dist/components/FiltersPane/FiltersPane.d.ts +6 -8
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +8 -56
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.d.ts +2 -4
- package/dist/components/FiltersPane/components/FilterInterval/FilterInterval.styles.d.ts +15 -52
- package/dist/components/FiltersPane/components/FilterInterval/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.d.ts +2 -4
- package/dist/components/FiltersPane/components/FilterSelect/FilterSelect.styles.d.ts +15 -124
- package/dist/components/FiltersPane/components/FilterSelect/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.d.ts +3 -1
- package/dist/components/FiltersPane/components/FilterValueView/FilterValueView.styles.d.ts +3 -12
- package/dist/components/FiltersPane/components/FilterValueView/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.d.ts +5 -7
- package/dist/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.d.ts +26 -47
- package/dist/components/FiltersPane/components/FilterWithDates/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.d.ts +4 -6
- package/dist/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.d.ts +7 -12
- package/dist/components/FiltersPane/components/FilterWithPeriod/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.d.ts +5 -6
- package/dist/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.d.ts +6 -96
- package/dist/components/FiltersPane/components/FilterWrapper/index.d.ts +1 -1
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.d.ts +2 -4
- package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +10 -91
- package/dist/components/FiltersPane/components/FiltersPaneSearch/index.d.ts +1 -1
- package/dist/components/FiltersPane/helpers.d.ts +1 -1
- package/dist/components/FiltersPane/index.d.ts +1 -1
- package/dist/components/FiltersPane/types.d.ts +1 -1
- package/dist/components/Flag/Flag.d.ts +2 -3
- package/dist/components/Flag/Flag.styles.d.ts +3 -12
- package/dist/components/Flag/index.d.ts +1 -1
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +2 -4
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +7 -101
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.d.ts +17 -0
- package/dist/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.d.ts +3 -0
- package/dist/components/FlexibleTable/components/FlexibleTableCell/index.d.ts +2 -0
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.d.ts +19 -0
- package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts +6 -0
- package/dist/components/FlexibleTable/components/FlexibleTableRow/index.d.ts +2 -0
- package/dist/components/FlexibleTable/components/index.d.ts +2 -2
- package/dist/components/FlexibleTable/index.d.ts +2 -1
- package/dist/components/Icon/Icon.d.ts +2 -3
- package/dist/components/Icon/Icon.styles.d.ts +3 -8
- package/dist/components/Icon/icons-list.d.ts +1 -1
- package/dist/components/Icon/index.d.ts +1 -1
- package/dist/components/IncrementInput/IncrementInput.d.ts +3 -3
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +7 -61
- package/dist/components/IncrementInput/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +2 -4
- package/dist/components/Input/Input.styles.d.ts +6 -247
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/List/List.d.ts +2 -4
- package/dist/components/List/List.styles.d.ts +3 -39
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +2 -4
- package/dist/components/Modal/Modal.styles.d.ts +6 -239
- package/dist/components/Modal/index.d.ts +1 -1
- package/dist/components/MoreMenu/MoreMenu.d.ts +2 -4
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +6 -54
- package/dist/components/MoreMenu/index.d.ts +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +8 -8
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +7 -44
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.d.ts +4 -4
- package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts +3 -62
- package/dist/components/MultiSelect/components/MultiSelectInput/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts +2 -2
- package/dist/components/MultiSelect/types.d.ts +1 -1
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +2 -4
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +13 -105
- package/dist/components/MultiSelectList/index.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts +4 -6
- package/dist/components/Notification/Notification.styles.d.ts +3 -37
- package/dist/components/Notification/index.d.ts +1 -1
- package/dist/components/Notification/types.d.ts +1 -1
- package/dist/components/PhoneInput/PhoneInput.d.ts +3 -3
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +9 -66
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts +2 -3
- package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +7 -83
- package/dist/components/PhoneInput/components/PhoneInputCountryList/index.d.ts +1 -1
- package/dist/components/PhoneInput/index.d.ts +2 -2
- package/dist/components/RadioButton/RadioButton.d.ts +3 -4
- package/dist/components/RadioButton/RadioButton.styles.d.ts +3 -30
- package/dist/components/RadioButton/index.d.ts +1 -1
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +4 -4
- package/dist/components/SearchInput/SearchInput.d.ts +3 -4
- package/dist/components/SearchInput/SearchInput.styles.d.ts +7 -39
- package/dist/components/SearchInput/index.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +3 -4
- package/dist/components/Select/Select.styles.d.ts +33 -80
- package/dist/components/Select/components/SelectList/SelectList.d.ts +2 -4
- package/dist/components/Select/components/SelectList/SelectList.styles.d.ts +3 -57
- package/dist/components/Select/components/SelectList/index.d.ts +1 -1
- package/dist/components/Select/components/SelectListItem/SelectListItem.styles.d.ts +2 -2
- package/dist/components/Select/index.d.ts +2 -2
- package/dist/components/SmartInput/SmartInput.d.ts +2 -2
- package/dist/components/SmartInput/helpers.d.ts +2 -2
- package/dist/components/SmartInput/types.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +2 -4
- package/dist/components/Switch/Switch.styles.d.ts +3 -62
- package/dist/components/Switch/index.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +2 -4
- package/dist/components/TextArea/TextArea.styles.d.ts +3 -128
- package/dist/components/TextArea/index.d.ts +1 -1
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +2 -3
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +3 -48
- package/dist/components/TextWithInfo/index.d.ts +1 -1
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +2 -3
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +6 -14
- package/dist/components/TextWithTooltip/index.d.ts +1 -1
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +2 -3
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +7 -14
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +2 -4
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +3 -43
- package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +1 -1
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +2 -3
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +3 -9
- package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +1 -1
- package/dist/components/ThemedPreloader/index.d.ts +2 -2
- package/dist/components/Toaster/Toaster.d.ts +4 -5
- package/dist/components/Toaster/Toaster.styles.d.ts +6 -45
- package/dist/components/Toaster/index.d.ts +1 -1
- package/dist/components/Toaster/types.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +2 -3
- package/dist/components/Tooltip/Tooltip.styles.d.ts +3 -35
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/phone.d.ts +3 -0
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/use-tweak-styles.d.ts +21 -2
- package/dist/index.d.ts +1 -1
- package/dist/theme/Provider.d.ts +11 -0
- package/dist/{theme.d.ts → theme/common.d.ts} +6 -10
- package/dist/theme/helpers.d.ts +10 -0
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/types.d.ts +72 -0
- package/dist/true-react-common-ui-kit.js +2980 -2471
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +2912 -2403
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +4 -22
- package/package.json +2 -2
- package/src/components/AccountInfo/AccountInfo.styles.ts +5 -9
- package/src/components/AccountInfo/AccountInfo.tsx +13 -10
- package/src/components/AccountInfo/constants.ts +1 -1
- package/src/components/AccountInfo/index.ts +1 -1
- package/src/components/AddButton/AddButton.styles.ts +4 -4
- package/src/components/AddButton/AddButton.tsx +7 -6
- package/src/components/AddButton/index.ts +1 -1
- package/src/components/Button/Button.styles.ts +14 -9
- package/src/components/Button/Button.tsx +12 -19
- package/src/components/Button/index.ts +1 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +5 -9
- package/src/components/Checkbox/Checkbox.styles.ts +8 -24
- package/src/components/Checkbox/Checkbox.tsx +3 -25
- package/src/components/Checkbox/index.ts +1 -1
- package/src/components/CloseButton/CloseButton.styles.ts +4 -5
- package/src/components/CloseButton/CloseButton.tsx +6 -8
- package/src/components/CloseButton/index.ts +1 -1
- package/src/components/Colors/Colors.styles.ts +3 -5
- package/src/components/Colors/Colors.tsx +3 -3
- package/src/components/Colors/index.ts +0 -1
- package/src/components/CssBaseline/CssBaseline.styles.ts +4 -5
- package/src/components/CssBaseline/CssBaseline.tsx +6 -8
- package/src/components/CssBaseline/index.ts +1 -1
- package/src/components/DateInput/DateInput.styles.ts +10 -6
- package/src/components/DateInput/DateInput.tsx +20 -7
- package/src/components/DateInput/index.ts +1 -1
- package/src/components/DatePicker/DatePicker.styles.ts +8 -14
- package/src/components/DatePicker/DatePicker.tsx +15 -16
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +30 -26
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +17 -7
- package/src/components/DatePicker/components/DatePickerHeader/index.ts +1 -1
- package/src/components/DatePicker/index.ts +2 -2
- package/src/components/Description/Description.styles.ts +4 -5
- package/src/components/Description/Description.tsx +6 -6
- package/src/components/Description/index.ts +1 -1
- package/src/components/FiltersPane/FiltersPane.styles.ts +38 -22
- package/src/components/FiltersPane/FiltersPane.tsx +23 -18
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +23 -27
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +25 -12
- package/src/components/FiltersPane/components/FilterInterval/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +21 -26
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +27 -14
- package/src/components/FiltersPane/components/FilterSelect/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +4 -4
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +6 -4
- package/src/components/FiltersPane/components/FilterValueView/index.tsx +1 -1
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +33 -26
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +54 -25
- package/src/components/FiltersPane/components/FilterWithDates/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +11 -7
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +12 -9
- package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +11 -6
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +28 -10
- package/src/components/FiltersPane/components/FilterWrapper/index.ts +1 -1
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +31 -24
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +23 -10
- package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +1 -1
- package/src/components/FiltersPane/helpers.ts +1 -1
- package/src/components/FiltersPane/index.ts +1 -1
- package/src/components/FiltersPane/types.ts +1 -1
- package/src/components/Flag/Flag.styles.ts +4 -5
- package/src/components/Flag/Flag.tsx +3 -5
- package/src/components/Flag/index.ts +1 -1
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +12 -0
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +10 -37
- package/src/components/FlexibleTable/FlexibleTable.tsx +19 -28
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +28 -0
- package/src/components/FlexibleTable/components/{TableValue/TableValue.tsx → FlexibleTableCell/FlexibleTableCell.tsx} +11 -12
- package/src/components/FlexibleTable/components/FlexibleTableCell/index.ts +2 -0
- package/src/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.ts +19 -0
- package/src/components/FlexibleTable/components/{TableRow/TableRow.tsx → FlexibleTableRow/FlexibleTableRow.tsx} +24 -25
- package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -0
- package/src/components/FlexibleTable/components/index.ts +2 -2
- package/src/components/FlexibleTable/index.ts +2 -1
- package/src/components/Icon/Icon.styles.ts +4 -4
- package/src/components/Icon/Icon.tsx +6 -7
- package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +1 -1
- package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +1 -1
- package/src/components/Icon/helpers.ts +1 -1
- package/src/components/Icon/index.ts +1 -1
- package/src/components/IncrementInput/IncrementInput.styles.ts +12 -12
- package/src/components/IncrementInput/IncrementInput.tsx +59 -35
- package/src/components/IncrementInput/index.ts +1 -1
- package/src/components/Input/Input.styles.ts +8 -8
- package/src/components/Input/Input.tsx +10 -8
- package/src/components/Input/index.ts +1 -1
- package/src/components/List/List.styles.ts +4 -5
- package/src/components/List/List.tsx +3 -6
- package/src/components/List/index.ts +1 -1
- package/src/components/Modal/Modal.styles.ts +5 -7
- package/src/components/Modal/Modal.tsx +10 -8
- package/src/components/Modal/index.ts +1 -1
- package/src/components/MoreMenu/MoreMenu.styles.ts +5 -7
- package/src/components/MoreMenu/MoreMenu.tsx +10 -7
- package/src/components/MoreMenu/index.ts +1 -1
- package/src/components/MultiSelect/MultiSelect.styles.ts +11 -7
- package/src/components/MultiSelect/MultiSelect.tsx +24 -15
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +4 -4
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +7 -6
- package/src/components/MultiSelect/components/MultiSelectInput/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +2 -2
- package/src/components/MultiSelect/types.ts +1 -1
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +37 -29
- package/src/components/MultiSelectList/MultiSelectList.tsx +36 -17
- package/src/components/MultiSelectList/helpers.ts +1 -1
- package/src/components/MultiSelectList/index.ts +1 -1
- package/src/components/Notification/Notification.styles.ts +14 -9
- package/src/components/Notification/Notification.tsx +6 -9
- package/src/components/Notification/index.ts +1 -1
- package/src/components/Notification/types.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.styles.ts +18 -13
- package/src/components/PhoneInput/PhoneInput.tsx +34 -17
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +18 -15
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +16 -6
- package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +1 -1
- package/src/components/PhoneInput/index.ts +2 -2
- package/src/components/RadioButton/RadioButton.styles.ts +4 -4
- package/src/components/RadioButton/RadioButton.tsx +6 -6
- package/src/components/RadioButton/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.styles.ts +28 -28
- package/src/components/SearchInput/SearchInput.tsx +12 -7
- package/src/components/SearchInput/index.ts +1 -1
- package/src/components/Select/Select.styles.ts +71 -23
- package/src/components/Select/Select.tsx +33 -34
- package/src/components/Select/components/SelectList/SelectList.styles.ts +4 -5
- package/src/components/Select/components/SelectList/SelectList.tsx +6 -7
- package/src/components/Select/components/SelectList/index.ts +1 -1
- package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +2 -2
- package/src/components/Select/components/SelectListItem/SelectListItem.tsx +1 -1
- package/src/components/Select/helpers.ts +3 -2
- package/src/components/Select/index.ts +2 -2
- package/src/components/SmartInput/SmartInput.stories.tsx +2 -2
- package/src/components/SmartInput/SmartInput.tsx +2 -2
- package/src/components/SmartInput/helpers.ts +2 -2
- package/src/components/SmartInput/types.ts +1 -1
- package/src/components/Switch/Switch.styles.ts +4 -4
- package/src/components/Switch/Switch.tsx +3 -6
- package/src/components/Switch/index.ts +1 -1
- package/src/components/TextArea/TextArea.styles.ts +4 -4
- package/src/components/TextArea/TextArea.tsx +3 -6
- package/src/components/TextArea/index.ts +1 -1
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +4 -5
- package/src/components/TextWithInfo/TextWithInfo.tsx +6 -5
- package/src/components/TextWithInfo/index.ts +1 -1
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +8 -6
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +15 -9
- package/src/components/TextWithTooltip/index.ts +1 -1
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +11 -6
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +19 -11
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +4 -4
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +3 -6
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +4 -4
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +5 -6
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/index.ts +2 -2
- package/src/components/Toaster/Toaster.styles.ts +8 -7
- package/src/components/Toaster/Toaster.tsx +15 -9
- package/src/components/Toaster/index.ts +1 -1
- package/src/components/Toaster/types.ts +1 -1
- package/src/components/Tooltip/Tooltip.styles.ts +20 -16
- package/src/components/Tooltip/Tooltip.tsx +10 -6
- package/src/components/Tooltip/index.ts +1 -1
- package/src/helpers/index.ts +0 -1
- package/src/helpers/misc.ts +1 -1
- package/src/helpers/phone.ts +4 -1
- package/src/hooks/index.ts +0 -1
- package/src/hooks/use-tweak-styles.ts +56 -12
- package/src/index.ts +1 -1
- package/src/theme/Provider.tsx +21 -0
- package/src/{theme.ts → theme/common.ts} +6 -6
- package/src/theme/helpers.ts +74 -0
- package/src/theme/index.ts +4 -0
- package/src/theme/types.ts +137 -0
- package/src/types.ts +4 -82
- package/dist/components/FlexibleTable/components/TableRow/TableRow.d.ts +0 -28
- package/dist/components/FlexibleTable/components/TableRow/index.d.ts +0 -1
- package/dist/components/FlexibleTable/components/TableValue/TableValue.d.ts +0 -21
- package/dist/components/FlexibleTable/components/TableValue/index.d.ts +0 -1
- package/dist/components/IncrementInput/components/ChangeButton/ChangeButton.d.ts +0 -10
- package/dist/components/IncrementInput/components/ChangeButton/index.d.ts +0 -1
- package/dist/components/IncrementInput/components/index.d.ts +0 -1
- package/dist/helpers/deprecated.d.ts +0 -12
- package/dist/hooks/use-theme.d.ts +0 -9
- package/src/components/FlexibleTable/components/TableRow/index.ts +0 -1
- package/src/components/FlexibleTable/components/TableValue/index.ts +0 -1
- package/src/components/IncrementInput/components/ChangeButton/ChangeButton.tsx +0 -33
- package/src/components/IncrementInput/components/ChangeButton/index.ts +0 -1
- package/src/components/IncrementInput/components/index.ts +0 -1
- package/src/helpers/deprecated.ts +0 -23
- package/src/hooks/use-theme.ts +0 -32
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ReactDatePickerCustomHeaderProps as BaseProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { ICommonProps } from '../../../../types';
|
|
4
|
+
import { IDatePickerHeaderStyles } from './DatePickerHeader.styles';
|
|
5
|
+
export interface IDatePickerHeaderProps extends BaseProps, Pick<ICommonProps<IDatePickerHeaderStyles>, 'tweakStyles'> {
|
|
5
6
|
months?: string[];
|
|
6
|
-
tweakStyles?: DatePickerHeaderStyles;
|
|
7
7
|
}
|
|
8
8
|
export declare const DatePickerHeader: FC<IDatePickerHeaderProps>;
|
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
border: string;
|
|
9
|
-
outline: string;
|
|
10
|
-
cursor: string;
|
|
11
|
-
marginLeft: number;
|
|
12
|
-
};
|
|
13
|
-
select: {
|
|
14
|
-
height: number;
|
|
15
|
-
fontSize: number;
|
|
16
|
-
position: string;
|
|
17
|
-
};
|
|
18
|
-
selectValue: {
|
|
19
|
-
fontSize: number;
|
|
20
|
-
fontWeight: string;
|
|
21
|
-
color: string;
|
|
22
|
-
pointerEvents: string;
|
|
23
|
-
paddingLeft: number;
|
|
24
|
-
paddingRight: number;
|
|
25
|
-
};
|
|
26
|
-
selectControl: {
|
|
27
|
-
position: string;
|
|
28
|
-
top: number;
|
|
29
|
-
left: number;
|
|
30
|
-
width: string;
|
|
31
|
-
height: string;
|
|
32
|
-
};
|
|
33
|
-
header: {
|
|
34
|
-
margin: number;
|
|
35
|
-
display: string;
|
|
36
|
-
alignItems: string;
|
|
37
|
-
};
|
|
38
|
-
buttons: {
|
|
39
|
-
flexShrink: number;
|
|
40
|
-
marginLeft: string;
|
|
41
|
-
};
|
|
42
|
-
tweakSelect: {
|
|
43
|
-
list: {
|
|
44
|
-
cell: {
|
|
45
|
-
fontSize: number;
|
|
46
|
-
minHeight: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
arrow: {
|
|
50
|
-
right: number;
|
|
51
|
-
top: number;
|
|
52
|
-
width: number;
|
|
53
|
-
height: number;
|
|
54
|
-
};
|
|
55
|
-
tweakInput: {
|
|
56
|
-
inputWrapper: {
|
|
57
|
-
height: number;
|
|
58
|
-
border: string;
|
|
59
|
-
};
|
|
60
|
-
input: {
|
|
61
|
-
fontSize: number;
|
|
62
|
-
fontWeight: string;
|
|
63
|
-
paddingRight: number;
|
|
64
|
-
paddingLeft: number;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare type DatePickerHeaderStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { ISelectStyles } from '../../../Select';
|
|
3
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"header" | "select" | "btn" | "selectValue" | "selectControl" | "buttons", unknown>;
|
|
4
|
+
export declare const selectStyles: ISelectStyles;
|
|
5
|
+
export declare type IDatePickerHeaderStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakSelect: ISelectStyles;
|
|
7
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './DatePickerHeader';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IDatePickerHeaderStyles } from './DatePickerHeader.styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './DatePicker';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type { IDatePickerStyles } from './DatePicker.styles';
|
|
4
|
+
export type { IDatePickerHeaderStyles } from './components';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface IDescriptionProps extends ICommonProps {
|
|
5
|
-
tweakStyles?: DescriptionStyles;
|
|
3
|
+
import { IDescriptionStyles } from './Description.styles';
|
|
4
|
+
export interface IDescriptionProps extends ICommonProps<IDescriptionStyles> {
|
|
6
5
|
text: string;
|
|
7
6
|
moreTitle?: string;
|
|
8
7
|
lessTitle?: string;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
button: {
|
|
5
|
-
cursor: string;
|
|
6
|
-
display: string;
|
|
7
|
-
color: "#505f79";
|
|
8
|
-
marginTop: number;
|
|
9
|
-
textTransform: string;
|
|
10
|
-
borderBottom: (string | number)[];
|
|
11
|
-
'&:hover': {
|
|
12
|
-
color: "#222a37";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
link: {
|
|
16
|
-
color: "#505f79";
|
|
17
|
-
textDecoration: string;
|
|
18
|
-
borderBottom: (string | number)[];
|
|
19
|
-
'&:hover': {
|
|
20
|
-
color: "#222a37";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare type DescriptionStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"link" | "root" | "button", unknown>;
|
|
3
|
+
export declare type IDescriptionStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Description';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IDescriptionStyles } from './Description.styles';
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { IFiltersPaneSearchProps } from './components';
|
|
4
4
|
import { ConfigType, IFilterLocaleKey, IPartialFilterLocale } from './types';
|
|
5
|
-
import {
|
|
6
|
-
export interface IFiltersPaneProps<Values, Content = Values> extends ICommonProps {
|
|
7
|
-
tweakStyles?: FiltersPaneStyles;
|
|
5
|
+
import { IFiltersPaneStyles } from './FiltersPane.styles';
|
|
6
|
+
export interface IFiltersPaneProps<Values, Content = Values> extends ICommonProps<IFiltersPaneStyles> {
|
|
8
7
|
filtersConfig: ConfigType<Values>;
|
|
9
8
|
enabledFilters?: Array<keyof ConfigType<Values>>;
|
|
10
9
|
values?: Partial<Values>;
|
|
@@ -13,9 +12,8 @@ export interface IFiltersPaneProps<Values, Content = Values> extends ICommonProp
|
|
|
13
12
|
locale?: IPartialFilterLocale;
|
|
14
13
|
isDisabled?: boolean;
|
|
15
14
|
hasClearButton?: boolean;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
testId?: string;
|
|
15
|
+
onChangeFilters(values: Partial<Values>): void;
|
|
16
|
+
onSettingsButtonClick?(): void;
|
|
17
|
+
onClear?(): void;
|
|
20
18
|
}
|
|
21
|
-
export declare function FiltersPane<Values extends Record<string, unknown>, Content = Values>({ data, tweakStyles, filtersConfig, enabledFilters, values, localeKey, locale, search, isDisabled, hasClearButton, onChangeFilters, onSettingsButtonClick, onClear,
|
|
19
|
+
export declare function FiltersPane<Values extends Record<string, unknown>, Content = Values>({ data, tweakStyles, filtersConfig, enabledFilters, values, localeKey, locale, search, isDisabled, hasClearButton, testId, onChangeFilters, onSettingsButtonClick, onClear, }: IFiltersPaneProps<Values, Content>): JSX.Element;
|
|
@@ -1,57 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IButtonStyles } from '../Button';
|
|
2
3
|
export declare const FILTER_HEIGHT = 36;
|
|
3
|
-
export declare const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
settings: {
|
|
11
|
-
display: string;
|
|
12
|
-
alignItems: string;
|
|
13
|
-
justifyContent: string;
|
|
14
|
-
borderRadius: number;
|
|
15
|
-
boxSizing: string;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
cursor: string;
|
|
19
|
-
transition: string;
|
|
20
|
-
};
|
|
21
|
-
settingsIcon: {
|
|
22
|
-
width: number;
|
|
23
|
-
height: number;
|
|
24
|
-
};
|
|
25
|
-
clear: {
|
|
26
|
-
display: string;
|
|
27
|
-
alignItems: string;
|
|
28
|
-
height: number;
|
|
29
|
-
};
|
|
30
|
-
filterWithClearButton: {
|
|
31
|
-
display: string;
|
|
32
|
-
gap: number;
|
|
33
|
-
minWidth: number;
|
|
34
|
-
};
|
|
35
|
-
tweakClearButton: {
|
|
36
|
-
s: {
|
|
37
|
-
paddingLeft: number;
|
|
38
|
-
paddingRight: number;
|
|
39
|
-
minWidth: string;
|
|
40
|
-
};
|
|
41
|
-
text: {
|
|
42
|
-
background: string;
|
|
43
|
-
color: "#95a0b3";
|
|
44
|
-
'&:hover, &:focus': {
|
|
45
|
-
color: "#505f79";
|
|
46
|
-
};
|
|
47
|
-
'&:active': {
|
|
48
|
-
color: "#222a37";
|
|
49
|
-
};
|
|
50
|
-
'&:hover, &:focus, &:active': {
|
|
51
|
-
background: string;
|
|
52
|
-
borderColor: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
export declare type FiltersPaneStyles = ComponentStyles<typeof styles>;
|
|
4
|
+
export declare const useStyles: import("../../theme").IUseStyles<"settings" | "clear" | "root" | "settingsIcon" | "filterWithClearButton", unknown>;
|
|
5
|
+
export declare const clearButtonStyles: IButtonStyles;
|
|
6
|
+
export declare const innerTextButtonStyles: IButtonStyles;
|
|
7
|
+
export declare type IFiltersPaneStyles = ITweakStyles<typeof useStyles, {
|
|
8
|
+
tweakClearButton: IButtonStyles;
|
|
9
|
+
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
3
|
import { IFilterLocaleKey, IPartialFilterLocale } from '../../types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IFilterIntervalProps extends ICommonProps {
|
|
6
|
-
tweakStyles?: FilterIntervalStyles;
|
|
4
|
+
import { IFilterIntervalStyles } from './FilterInterval.styles';
|
|
5
|
+
export interface IFilterIntervalProps extends ICommonProps<IFilterIntervalStyles> {
|
|
7
6
|
value?: Array<number | undefined>;
|
|
8
7
|
onChange: (value?: Array<number | undefined>) => void;
|
|
9
8
|
labelName: string;
|
|
@@ -21,6 +20,5 @@ export interface IFilterIntervalProps extends ICommonProps {
|
|
|
21
20
|
max?: number;
|
|
22
21
|
maxLength?: number;
|
|
23
22
|
};
|
|
24
|
-
testId?: string;
|
|
25
23
|
}
|
|
26
24
|
export declare const FilterInterval: FC<IFilterIntervalProps>;
|
|
@@ -1,52 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
height: number;
|
|
17
|
-
opacity: number;
|
|
18
|
-
paddingRight: number;
|
|
19
|
-
fontSize: number;
|
|
20
|
-
whiteSpace: string;
|
|
21
|
-
userSelect: string;
|
|
22
|
-
pointerEvents: string;
|
|
23
|
-
};
|
|
24
|
-
clear: {
|
|
25
|
-
display: string;
|
|
26
|
-
justifyContent: string;
|
|
27
|
-
};
|
|
28
|
-
tweakInput: {
|
|
29
|
-
input: {
|
|
30
|
-
minWidth: number;
|
|
31
|
-
};
|
|
32
|
-
icon: {
|
|
33
|
-
padding: number;
|
|
34
|
-
width: number;
|
|
35
|
-
'&:last-child': {
|
|
36
|
-
paddingRight: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
tweakClearButton: {
|
|
41
|
-
text: {
|
|
42
|
-
color: "#95a0b3";
|
|
43
|
-
'&:hover, &:focus': {
|
|
44
|
-
color: "#505f79";
|
|
45
|
-
};
|
|
46
|
-
'&:active': {
|
|
47
|
-
color: "#505f79";
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
export declare type FilterIntervalStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IButtonStyles } from '../../../Button';
|
|
3
|
+
import { IInputStyles } from '../../../Input';
|
|
4
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"clear" | "root" | "inputWrapper" | "autosize", unknown>;
|
|
5
|
+
export declare const inputStyles: IInputStyles;
|
|
6
|
+
export declare const clearButtonStyles: Partial<import("jss").Styles<"content" | "outline" | "root" | "inline" | "text" | "icon" | "active" | "disabled" | "s" | "fullWidth" | "primary" | "secondary" | "warning" | "destructive" | "custom" | "children" | "iconFromLeft" | "iconFromRight" | "onlyIcon" | "withIcon" | "m" | "l" | "xl" | "loader" | "loading", unknown, undefined>> & Partial<{
|
|
7
|
+
tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
|
|
8
|
+
tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
|
|
9
|
+
tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare type IFilterIntervalStyles = ITweakStyles<typeof useStyles, {
|
|
13
|
+
tweakInput: IInputStyles;
|
|
14
|
+
tweakClearButton: IButtonStyles;
|
|
15
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FilterInterval';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFilterIntervalStyles } from './FilterInterval.styles';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
3
|
import { IFilterLocaleKey, ISelectLocale } from '../../types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IFilterSelectProps<Value> extends ICommonProps {
|
|
6
|
-
tweakStyles?: FilterSelectStyles;
|
|
4
|
+
import { IFilterSelectStyles } from './FilterSelect.styles';
|
|
5
|
+
export interface IFilterSelectProps<Value> extends ICommonProps<IFilterSelectStyles> {
|
|
7
6
|
value?: Value;
|
|
8
7
|
onChange: (value?: Value) => void;
|
|
9
8
|
/**
|
|
@@ -30,6 +29,5 @@ export interface IFilterSelectProps<Value> extends ICommonProps {
|
|
|
30
29
|
* @default true
|
|
31
30
|
*/
|
|
32
31
|
hasClearButton?: boolean;
|
|
33
|
-
testId?: string;
|
|
34
32
|
}
|
|
35
33
|
export declare function FilterSelect<Value>({ data, tweakStyles, value, isSearchEnabled, isGroupingEnabled, width, localeKey, locale, onChange, options, fetchOptions, footer, getValueView, getValueId, getValueString, hasClearButton, testId, }: IFilterSelectProps<Value>): JSX.Element;
|
|
@@ -1,124 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
padding: number[];
|
|
17
|
-
maxHeight: number;
|
|
18
|
-
overscrollBehavior: string;
|
|
19
|
-
};
|
|
20
|
-
label: {
|
|
21
|
-
boxSizing: string;
|
|
22
|
-
fontSize: number;
|
|
23
|
-
padding: number[];
|
|
24
|
-
userSelect: string;
|
|
25
|
-
display: string;
|
|
26
|
-
alignItems: string;
|
|
27
|
-
color: "#7a869a";
|
|
28
|
-
};
|
|
29
|
-
labelChosen: {
|
|
30
|
-
fontWeight: string;
|
|
31
|
-
color: "#222a37";
|
|
32
|
-
padding: number[];
|
|
33
|
-
};
|
|
34
|
-
withoutTopGap: {
|
|
35
|
-
paddingTop: number;
|
|
36
|
-
};
|
|
37
|
-
withClearButton: {
|
|
38
|
-
paddingBottom: number;
|
|
39
|
-
maxHeight: number;
|
|
40
|
-
};
|
|
41
|
-
item: {
|
|
42
|
-
display: string;
|
|
43
|
-
alignItems: string;
|
|
44
|
-
justifyContent: string;
|
|
45
|
-
padding: number[];
|
|
46
|
-
maxWidth: string;
|
|
47
|
-
cursor: string;
|
|
48
|
-
fontSize: number;
|
|
49
|
-
minHeight: number;
|
|
50
|
-
transition: string;
|
|
51
|
-
boxSizing: string;
|
|
52
|
-
};
|
|
53
|
-
option: {
|
|
54
|
-
display: string;
|
|
55
|
-
userSelect: string;
|
|
56
|
-
width: string;
|
|
57
|
-
overflow: string;
|
|
58
|
-
whiteSpace: string;
|
|
59
|
-
textOverflow: string;
|
|
60
|
-
};
|
|
61
|
-
icon: {
|
|
62
|
-
width: number;
|
|
63
|
-
height: number;
|
|
64
|
-
marginRight: number;
|
|
65
|
-
alignSelf: string;
|
|
66
|
-
flexShrink: number;
|
|
67
|
-
};
|
|
68
|
-
panel: {
|
|
69
|
-
display: string;
|
|
70
|
-
padding: number[];
|
|
71
|
-
gap: number;
|
|
72
|
-
};
|
|
73
|
-
panelWithFooter: {
|
|
74
|
-
borderTop: (string | number)[];
|
|
75
|
-
padding: number[];
|
|
76
|
-
};
|
|
77
|
-
footer: {
|
|
78
|
-
wordBreak: string;
|
|
79
|
-
alignSelf: string;
|
|
80
|
-
};
|
|
81
|
-
clear: {
|
|
82
|
-
marginLeft: string;
|
|
83
|
-
alignSelf: string;
|
|
84
|
-
};
|
|
85
|
-
preloader: {
|
|
86
|
-
width: number;
|
|
87
|
-
height: number;
|
|
88
|
-
margin: string;
|
|
89
|
-
display: string;
|
|
90
|
-
alignItems: string;
|
|
91
|
-
justifyContent: string;
|
|
92
|
-
};
|
|
93
|
-
dropdownInput: {
|
|
94
|
-
borderBottom: (string | number)[];
|
|
95
|
-
};
|
|
96
|
-
nothingFound: {
|
|
97
|
-
display: string;
|
|
98
|
-
alignItems: string;
|
|
99
|
-
textAlign: string;
|
|
100
|
-
padding: number;
|
|
101
|
-
fontSize: number;
|
|
102
|
-
};
|
|
103
|
-
tweakSearchInput: {
|
|
104
|
-
tweakInput: {
|
|
105
|
-
inputWrapper: {
|
|
106
|
-
backgroundColor: string;
|
|
107
|
-
border: string;
|
|
108
|
-
height: number;
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
};
|
|
112
|
-
tweakClearButton: {
|
|
113
|
-
text: {
|
|
114
|
-
color: "#95a0b3";
|
|
115
|
-
'&:hover, &:focus': {
|
|
116
|
-
color: "#505f79";
|
|
117
|
-
};
|
|
118
|
-
'&:active': {
|
|
119
|
-
color: "#505f79";
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
};
|
|
123
|
-
};
|
|
124
|
-
export declare type FilterSelectStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IButtonStyles } from '../../../Button';
|
|
3
|
+
import { ISearchInputStyles } from '../../../SearchInput';
|
|
4
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"list" | "clear" | "item" | "root" | "icon" | "footer" | "label" | "option" | "labelChosen" | "withoutTopGap" | "withClearButton" | "panel" | "panelWithFooter" | "preloader" | "dropdownInput" | "nothingFound", unknown>;
|
|
5
|
+
export declare const searchInputStyles: ISearchInputStyles;
|
|
6
|
+
export declare const clearButtonStyles: Partial<import("jss").Styles<"content" | "outline" | "root" | "inline" | "text" | "icon" | "active" | "disabled" | "s" | "fullWidth" | "primary" | "secondary" | "warning" | "destructive" | "custom" | "children" | "iconFromLeft" | "iconFromRight" | "onlyIcon" | "withIcon" | "m" | "l" | "xl" | "loader" | "loading", unknown, undefined>> & Partial<{
|
|
7
|
+
tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
|
|
8
|
+
tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
|
|
9
|
+
tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
|
|
10
|
+
}>;
|
|
11
|
+
}>;
|
|
12
|
+
export declare type IFilterSelectStyles = ITweakStyles<typeof useStyles, {
|
|
13
|
+
tweakSearchInput: ISearchInputStyles;
|
|
14
|
+
tweakClearButton: IButtonStyles;
|
|
15
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FilterSelect';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFilterSelectStyles } from './FilterSelect.styles';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ICommonProps } from '../../../../types';
|
|
2
3
|
import { IFilterWrapperProps } from '../FilterWrapper';
|
|
3
|
-
|
|
4
|
+
import { IFilterValueViewStyles } from './FilterValueView.styles';
|
|
5
|
+
export declare function FilterValueView<Values, Key extends keyof Values>({ locale, localeKey, filter, value, tweakStyles, }: Omit<IFilterWrapperProps<Values, Key>, 'onChange' | 'filtersPaneRef' | 'tweakStyles'> & ICommonProps<IFilterValueViewStyles>): JSX.Element;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
overflow: string;
|
|
5
|
-
textOverflow: string;
|
|
6
|
-
whiteSpace: string;
|
|
7
|
-
};
|
|
8
|
-
count: {
|
|
9
|
-
whiteSpace: string;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare type FilterValueViewStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"text" | "count", unknown>;
|
|
3
|
+
export declare type IFilterValueViewStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FilterValueView';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFilterValueViewStyles } from './FilterValueView.styles';
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
3
|
import { IFilterWithDateDatePickerProps, IFilterLocaleKey, IFilterWithDatesValue, IPartialFilterLocale } from '../../types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IFilterWithDatesProps extends ICommonProps {
|
|
6
|
-
tweakStyles?: FilterWithDatesStyles;
|
|
4
|
+
import { IFilterWithDatesStyles } from './FilterWithDates.styles';
|
|
5
|
+
export interface IFilterWithDatesProps extends ICommonProps<IFilterWithDatesStyles> {
|
|
7
6
|
value?: IFilterWithDatesValue;
|
|
8
|
-
onChange: (val: IFilterWithDatesValue) => void;
|
|
9
7
|
localeKey?: IFilterLocaleKey;
|
|
10
8
|
locale?: IPartialFilterLocale;
|
|
11
|
-
onStartBtnSubmit?: () => void;
|
|
12
|
-
onEndBtnSubmit: () => void;
|
|
13
|
-
testId?: string;
|
|
14
9
|
isClearable?: boolean;
|
|
15
10
|
startPickerProps?: IFilterWithDateDatePickerProps;
|
|
16
11
|
endPickerProps?: IFilterWithDateDatePickerProps;
|
|
12
|
+
onChange(val: IFilterWithDatesValue): void;
|
|
13
|
+
onStartBtnSubmit?(): void;
|
|
14
|
+
onEndBtnSubmit(): void;
|
|
17
15
|
}
|
|
18
16
|
export declare const FilterWithDates: FC<IFilterWithDatesProps>;
|
|
@@ -1,47 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
'&:hover, &:focus': {
|
|
28
|
-
color: "#505f79";
|
|
29
|
-
};
|
|
30
|
-
'&:active': {
|
|
31
|
-
color: "#505f79";
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
tweakBackButton: {
|
|
36
|
-
text: {
|
|
37
|
-
color: "#95a0b3";
|
|
38
|
-
'&:hover, &:focus': {
|
|
39
|
-
color: "#505f79";
|
|
40
|
-
};
|
|
41
|
-
'&:active': {
|
|
42
|
-
color: "#505f79";
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
export declare type FilterWithDatesStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IButtonStyles } from '../../../Button';
|
|
3
|
+
import { IDatePickerStyles } from '../../../DatePicker';
|
|
4
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "datepicker" | "container" | "containerItem" | "btnRow", unknown>;
|
|
5
|
+
export declare const clearButtonStyles: Partial<import("jss").Styles<"content" | "outline" | "root" | "inline" | "text" | "icon" | "active" | "disabled" | "s" | "fullWidth" | "primary" | "secondary" | "warning" | "destructive" | "custom" | "children" | "iconFromLeft" | "iconFromRight" | "onlyIcon" | "withIcon" | "m" | "l" | "xl" | "loader" | "loading", unknown, undefined>> & Partial<{
|
|
6
|
+
tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
|
|
7
|
+
tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
|
|
8
|
+
tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
|
|
9
|
+
}>;
|
|
10
|
+
}>;
|
|
11
|
+
export declare const backButtonStyles: Partial<import("jss").Styles<"content" | "outline" | "root" | "inline" | "text" | "icon" | "active" | "disabled" | "s" | "fullWidth" | "primary" | "secondary" | "warning" | "destructive" | "custom" | "children" | "iconFromLeft" | "iconFromRight" | "onlyIcon" | "withIcon" | "m" | "l" | "xl" | "loader" | "loading", unknown, undefined>> & Partial<{
|
|
12
|
+
tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
|
|
13
|
+
tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
|
|
14
|
+
tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
|
|
15
|
+
}>;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const startDatePickerStyles: IDatePickerStyles;
|
|
18
|
+
export declare const startDatePickerWithButtonStyles: IDatePickerStyles;
|
|
19
|
+
export declare const endDatePickerStyles: IDatePickerStyles;
|
|
20
|
+
export declare const endDatePickerWithButtonStyles: IDatePickerStyles;
|
|
21
|
+
export declare type IFilterWithDatesStyles = ITweakStyles<typeof useStyles, {
|
|
22
|
+
tweakClearButton: IButtonStyles;
|
|
23
|
+
tweakBackButton: IButtonStyles;
|
|
24
|
+
tweakStartDatePicker: IDatePickerStyles;
|
|
25
|
+
tweakEndDatePicker: IDatePickerStyles;
|
|
26
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FilterWithDates';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFilterWithDatesStyles } from './FilterWithDates.styles';
|