@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,83 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
overflow: string;
|
|
9
|
-
};
|
|
10
|
-
searchContainer: {
|
|
11
|
-
width: string;
|
|
12
|
-
height: 48;
|
|
13
|
-
display: string;
|
|
14
|
-
alignItems: string;
|
|
15
|
-
boxSizing: string;
|
|
16
|
-
padding: number[];
|
|
17
|
-
borderBottom: (string | number)[];
|
|
18
|
-
};
|
|
19
|
-
icon: {
|
|
20
|
-
width: number;
|
|
21
|
-
height: number;
|
|
22
|
-
};
|
|
23
|
-
searchIcon: {
|
|
24
|
-
extend: string;
|
|
25
|
-
color: "#7a869a";
|
|
26
|
-
flexShrink: number;
|
|
27
|
-
};
|
|
28
|
-
flagList: {
|
|
29
|
-
maxHeight: number;
|
|
30
|
-
padding: number[];
|
|
31
|
-
} | {
|
|
32
|
-
maxHeight: number;
|
|
33
|
-
padding: number[];
|
|
34
|
-
};
|
|
35
|
-
listItem: {
|
|
36
|
-
height: number;
|
|
37
|
-
padding: number[];
|
|
38
|
-
display: string;
|
|
39
|
-
alignItems: string;
|
|
40
|
-
cursor: string;
|
|
41
|
-
fontSize: number;
|
|
42
|
-
lineHeight: string;
|
|
43
|
-
letterSpacing: number;
|
|
44
|
-
whiteSpace: string;
|
|
45
|
-
boxSizing: string;
|
|
46
|
-
};
|
|
47
|
-
selectedCountry: {
|
|
48
|
-
backgroundColor: "#f6f8fc";
|
|
49
|
-
};
|
|
50
|
-
activeCountry: {
|
|
51
|
-
backgroundColor: "#eceff5";
|
|
52
|
-
};
|
|
53
|
-
flag: {
|
|
54
|
-
width: number;
|
|
55
|
-
height: number;
|
|
56
|
-
flexShrink: number;
|
|
57
|
-
};
|
|
58
|
-
countryName: {
|
|
59
|
-
color: "#222a37";
|
|
60
|
-
overflowX: string;
|
|
61
|
-
textOverflow: string;
|
|
62
|
-
margin: number[];
|
|
63
|
-
};
|
|
64
|
-
dialCode: {
|
|
65
|
-
color: "#95a0b3";
|
|
66
|
-
};
|
|
67
|
-
emptyResult: {
|
|
68
|
-
color: "#7a869a";
|
|
69
|
-
padding: number[];
|
|
70
|
-
};
|
|
71
|
-
tweakInput: {
|
|
72
|
-
inputWrapper: {
|
|
73
|
-
border: string;
|
|
74
|
-
height: string;
|
|
75
|
-
};
|
|
76
|
-
input: {
|
|
77
|
-
fontSize: number;
|
|
78
|
-
lineHeight: string;
|
|
79
|
-
letterSpacing: number;
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
export declare type PhoneInputCountryListStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IInputStyles } from '../../../Input';
|
|
3
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"dialCode" | "root" | "icon" | "flag" | "searchContainer" | "searchIcon" | "flagList" | "listItem" | "selectedCountry" | "activeCountry" | "countryName" | "emptyResult", unknown>;
|
|
4
|
+
export declare const inputStyles: IInputStyles;
|
|
5
|
+
export declare type IPhoneInputCountryListStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakInput: IInputStyles;
|
|
7
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './PhoneInputCountryList';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IPhoneInputCountryListStyles } from './PhoneInputCountryList.styles';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from './PhoneInput';
|
|
2
2
|
export { phoneInfo } from './phone-info';
|
|
3
3
|
export * from './types';
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
4
|
+
export type { IPhoneInputStyles } from './PhoneInput.styles';
|
|
5
|
+
export type { IPhoneInputCountryListStyles } from './components';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface IRadioButtonProps<Value extends string> extends ICommonProps {
|
|
5
|
-
tweakStyles?: RadioButtonStyles;
|
|
3
|
+
import { IRadioButtonStyles } from './RadioButton.styles';
|
|
4
|
+
export interface IRadioButtonProps<Value extends string> extends ICommonProps<IRadioButtonStyles> {
|
|
6
5
|
children?: ReactNode;
|
|
7
6
|
value: Value;
|
|
8
7
|
groupName: string;
|
|
@@ -11,4 +10,4 @@ export interface IRadioButtonProps<Value extends string> extends ICommonProps {
|
|
|
11
10
|
isInvalid?: boolean;
|
|
12
11
|
onChange(value: Value): void | Promise<void>;
|
|
13
12
|
}
|
|
14
|
-
export declare function RadioButton<Value extends string>({ children, value, groupName, isChecked, isDisabled, isInvalid, data, tweakStyles, onChange, }: IRadioButtonProps<Value>): JSX.Element;
|
|
13
|
+
export declare function RadioButton<Value extends string>({ children, value, groupName, isChecked, isDisabled, isInvalid, data, testId, tweakStyles, onChange, }: IRadioButtonProps<Value>): JSX.Element;
|
|
@@ -1,30 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
appearance: string;
|
|
5
|
-
cursor: string;
|
|
6
|
-
borderRadius: string;
|
|
7
|
-
width: number;
|
|
8
|
-
height: number;
|
|
9
|
-
outline: string;
|
|
10
|
-
transition: string;
|
|
11
|
-
margin: number;
|
|
12
|
-
border: (string | number)[];
|
|
13
|
-
'&:checked': {
|
|
14
|
-
border: (string | number)[];
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
label: {
|
|
18
|
-
display: string;
|
|
19
|
-
alignItems: string;
|
|
20
|
-
cursor: string;
|
|
21
|
-
};
|
|
22
|
-
content: {
|
|
23
|
-
marginLeft: number;
|
|
24
|
-
};
|
|
25
|
-
isDisabled: {
|
|
26
|
-
cursor: string;
|
|
27
|
-
};
|
|
28
|
-
isInvalid: {};
|
|
29
|
-
};
|
|
30
|
-
export declare type RadioButtonStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"content" | "input" | "label" | "isDisabled" | "isInvalid", unknown>;
|
|
3
|
+
export declare type IRadioButtonStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './RadioButton';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IRadioButtonStyles } from './RadioButton.styles';
|
|
@@ -160,11 +160,11 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
|
|
|
160
160
|
results?: number | undefined;
|
|
161
161
|
security?: string | undefined;
|
|
162
162
|
unselectable?: "on" | "off" | undefined;
|
|
163
|
-
inputMode?: "
|
|
163
|
+
inputMode?: "none" | "email" | "search" | "text" | "tel" | "url" | "numeric" | "decimal" | undefined;
|
|
164
164
|
is?: string | undefined;
|
|
165
165
|
'aria-activedescendant'?: string | undefined;
|
|
166
166
|
'aria-atomic'?: (boolean | "false" | "true") | undefined;
|
|
167
|
-
'aria-autocomplete'?: "none" | "list" | "
|
|
167
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
168
168
|
'aria-busy'?: (boolean | "false" | "true") | undefined;
|
|
169
169
|
'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
|
|
170
170
|
'aria-colcount'?: number | undefined;
|
|
@@ -175,12 +175,12 @@ export declare class ScrollIntoViewIfNeeded extends PureComponent<IScrollIntoVie
|
|
|
175
175
|
'aria-describedby'?: string | undefined;
|
|
176
176
|
'aria-details'?: string | undefined;
|
|
177
177
|
'aria-disabled'?: (boolean | "false" | "true") | undefined;
|
|
178
|
-
'aria-dropeffect'?: "
|
|
178
|
+
'aria-dropeffect'?: "none" | "copy" | "link" | "move" | "execute" | "popup" | undefined;
|
|
179
179
|
'aria-errormessage'?: string | undefined;
|
|
180
180
|
'aria-expanded'?: (boolean | "false" | "true") | undefined;
|
|
181
181
|
'aria-flowto'?: string | undefined;
|
|
182
182
|
'aria-grabbed'?: (boolean | "false" | "true") | undefined;
|
|
183
|
-
'aria-haspopup'?: boolean | "
|
|
183
|
+
'aria-haspopup'?: boolean | "menu" | "grid" | "listbox" | "false" | "true" | "dialog" | "tree" | undefined;
|
|
184
184
|
'aria-hidden'?: (boolean | "false" | "true") | undefined;
|
|
185
185
|
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
186
186
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
2
3
|
import { IInputProps } from '../Input';
|
|
3
|
-
import {
|
|
4
|
-
export declare type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border' | 'tweakStyles'> &
|
|
5
|
-
tweakStyles?: SearchInputStyles;
|
|
6
|
-
};
|
|
4
|
+
import { ISearchInputStyles } from './SearchInput.styles';
|
|
5
|
+
export declare type ISearchInputProps = Omit<IInputProps, 'type' | 'isInvalid' | 'errorMessage' | 'label' | 'isActive' | 'errorPosition' | 'hasFloatingLabel' | 'border' | 'tweakStyles'> & ICommonProps<ISearchInputStyles>;
|
|
7
6
|
export declare const SearchInput: FC<ISearchInputProps>;
|
|
@@ -1,39 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
alignItems: string;
|
|
9
|
-
position: string;
|
|
10
|
-
left: number;
|
|
11
|
-
height: string;
|
|
12
|
-
width: number;
|
|
13
|
-
zIndex: number;
|
|
14
|
-
color: "#95a0b3";
|
|
15
|
-
};
|
|
16
|
-
tweakInput: {
|
|
17
|
-
inputWrapper: {
|
|
18
|
-
height: number;
|
|
19
|
-
borderColor: string;
|
|
20
|
-
backgroundColor: string;
|
|
21
|
-
borderRadius: number;
|
|
22
|
-
paddingLeft: number;
|
|
23
|
-
transitionProperty: string;
|
|
24
|
-
};
|
|
25
|
-
focused: {
|
|
26
|
-
backgroundColor: "#ffffff";
|
|
27
|
-
borderColor: "#d0d6e1";
|
|
28
|
-
};
|
|
29
|
-
input: {
|
|
30
|
-
fontSize: number;
|
|
31
|
-
paddingLeft: number;
|
|
32
|
-
};
|
|
33
|
-
label: {
|
|
34
|
-
left: number;
|
|
35
|
-
fontSize: number;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export declare type SearchInputStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IInputStyles } from '../Input';
|
|
3
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "icon", unknown>;
|
|
4
|
+
export declare const inputStyles: IInputStyles;
|
|
5
|
+
export declare type ISearchInputStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakInput: IInputStyles;
|
|
7
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './SearchInput';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ISearchInputStyles } from './SearchInput.styles';
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
-
import { IDropdownWithPopperOptions, IIcon } from '../../types';
|
|
2
|
+
import { ICommonProps, IDropdownWithPopperOptions, IIcon } from '../../types';
|
|
3
3
|
import { IInputProps } from '../Input';
|
|
4
4
|
import { ISearchInputProps } from '../SearchInput';
|
|
5
5
|
import { IMultipleSelectValue } from './types';
|
|
6
|
-
import {
|
|
7
|
-
export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'onBlur' | 'type'> {
|
|
8
|
-
tweakStyles?: SelectStyles;
|
|
6
|
+
import { ISelectStyles } from './Select.styles';
|
|
7
|
+
export interface ISelectProps<Value> extends Omit<IInputProps, 'value' | 'onChange' | 'onBlur' | 'type' | 'tweakStyles'>, ICommonProps<ISelectStyles> {
|
|
9
8
|
defaultOptionLabel?: string;
|
|
10
9
|
allOptionsLabel?: string;
|
|
11
10
|
noMatchesLabel?: string;
|
|
@@ -1,80 +1,33 @@
|
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
cursor: string;
|
|
35
|
-
zIndex: number;
|
|
36
|
-
transition: string;
|
|
37
|
-
};
|
|
38
|
-
activeArrow: {
|
|
39
|
-
transform: string;
|
|
40
|
-
};
|
|
41
|
-
disabled: {
|
|
42
|
-
'& $arrow': {
|
|
43
|
-
cursor: string;
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
counter: {
|
|
47
|
-
'&:not(:last-child)': {
|
|
48
|
-
paddingRight: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
icon: {
|
|
52
|
-
width: number;
|
|
53
|
-
height: number;
|
|
54
|
-
};
|
|
55
|
-
tweakInput: {
|
|
56
|
-
input: {
|
|
57
|
-
paddingRight: number;
|
|
58
|
-
};
|
|
59
|
-
disabled: {
|
|
60
|
-
'& $input': {
|
|
61
|
-
cursor: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
controls: {
|
|
65
|
-
paddingRight: number;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
tweakSelectList: {};
|
|
69
|
-
tweakSearchInput: {
|
|
70
|
-
tweakInput: {
|
|
71
|
-
inputWrapper: {
|
|
72
|
-
height: number;
|
|
73
|
-
borderRadius: number;
|
|
74
|
-
border: string;
|
|
75
|
-
backgroundColor: string;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
export declare type SelectStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IInputStyles } from '../Input';
|
|
3
|
+
import { ISearchInputStyles } from '../SearchInput';
|
|
4
|
+
import { ISelectListStyles } from './components';
|
|
5
|
+
export declare const useStyles: import("../../theme").IUseStyles<"arrow" | "root" | "icon" | "disabled" | "inputWrapper" | "listWrapper" | "withoutPopper" | "listWrapperInBody" | "activeArrow" | "counter", unknown>;
|
|
6
|
+
export declare const readonlyInputStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "root" | "middle" | "icon" | "disabled" | "input" | "label" | "error" | "invalid" | "loading" | "inputWrapper" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", 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 const multiSelectInputStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "root" | "middle" | "icon" | "disabled" | "input" | "label" | "error" | "invalid" | "loading" | "inputWrapper" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
|
|
13
|
+
tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
|
|
14
|
+
tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
|
|
15
|
+
tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
|
|
16
|
+
}>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare const readonlyMultiSelectStyles: Partial<import("jss").Styles<"top" | "bottom" | "right" | "left" | "root" | "middle" | "icon" | "disabled" | "input" | "label" | "error" | "invalid" | "loading" | "inputWrapper" | "autosize" | "focused" | "inputContent" | "unitsWrapper" | "fakeValue" | "units" | "withFloatingLabel" | "floatingLabelWithoutPadding" | "floating" | "activeLabel" | "required" | "floatingWithoutPadding" | "requiredLabel" | "activeIcon" | "border-top" | "border-bottom" | "border-left" | "border-right" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "controls" | "clearIcon" | "inputIcon" | "withIcons" | "withControls" | "invalidLabel" | "info" | "error-top" | "error-bottom" | "withUnits", unknown, undefined>> & Partial<{
|
|
19
|
+
tweakPreloader: Partial<import("jss").Styles<"currentColor" | "root" | "default" | "dots" | "logo", unknown, undefined>> & Partial<{
|
|
20
|
+
tweakDotsPreloader: Partial<import("jss").Styles<"root" | "dot" | "fadedDot" | "@keyframes FadedDots", unknown, undefined>> & Partial<unknown>;
|
|
21
|
+
tweakSvgPreloader: Partial<import("jss").Styles<"root", unknown, undefined>> & Partial<unknown>;
|
|
22
|
+
}>;
|
|
23
|
+
}>;
|
|
24
|
+
export declare const getInputStyles: ({ hasReadonlyInput, isMultiSelect, }: {
|
|
25
|
+
hasReadonlyInput: boolean;
|
|
26
|
+
isMultiSelect: boolean;
|
|
27
|
+
}) => IInputStyles;
|
|
28
|
+
export declare const searchInputStyles: ISearchInputStyles;
|
|
29
|
+
export declare type ISelectStyles = ITweakStyles<typeof useStyles, {
|
|
30
|
+
tweakInput: IInputStyles;
|
|
31
|
+
tweakSelectList: ISelectListStyles;
|
|
32
|
+
tweakSearchInput: ISearchInputStyles;
|
|
33
|
+
}>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReactNode, MouseEvent } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface ISelectListProps<Value> extends ICommonProps {
|
|
5
|
-
tweakStyles?: SelectListStyles;
|
|
3
|
+
import { ISelectListStyles } from './SelectList.styles';
|
|
4
|
+
export interface ISelectListProps<Value> extends ICommonProps<ISelectListStyles> {
|
|
6
5
|
options: Value[];
|
|
7
6
|
focusedIndex?: number;
|
|
8
7
|
activeValue?: Value | Value[];
|
|
@@ -10,7 +9,6 @@ export interface ISelectListProps<Value> extends ICommonProps {
|
|
|
10
9
|
isLoading?: boolean;
|
|
11
10
|
loadingLabel?: ReactNode;
|
|
12
11
|
defaultOptionLabel?: string;
|
|
13
|
-
testId?: string;
|
|
14
12
|
allOptionsLabel?: string;
|
|
15
13
|
areAllOptionsSelected?: boolean;
|
|
16
14
|
shouldScrollToList?: boolean;
|
|
@@ -1,60 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
2
|
export declare const ROW_HEIGHT = 40;
|
|
3
3
|
export declare const CONTAINER_PADDING = 10;
|
|
4
4
|
export declare const CELL_PADDING: number[];
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
borderRadius: 6;
|
|
8
|
-
boxShadow: string;
|
|
9
|
-
boxSizing: string;
|
|
10
|
-
padding: number[];
|
|
11
|
-
fontSize: number;
|
|
12
|
-
overflow: string;
|
|
13
|
-
};
|
|
14
|
-
withListHeader: {
|
|
15
|
-
paddingTop: number;
|
|
16
|
-
};
|
|
17
|
-
listHeader: {
|
|
18
|
-
'& + $list': {
|
|
19
|
-
borderTop: (string | number)[];
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
list: {
|
|
23
|
-
height: string;
|
|
24
|
-
maxHeight: number;
|
|
25
|
-
cursor: string;
|
|
26
|
-
backgroundColor: "#ffffff";
|
|
27
|
-
} | {
|
|
28
|
-
height: string;
|
|
29
|
-
maxHeight: number;
|
|
30
|
-
cursor: string;
|
|
31
|
-
backgroundColor: "#ffffff";
|
|
32
|
-
};
|
|
33
|
-
cell: {
|
|
34
|
-
display: string;
|
|
35
|
-
cursor: string;
|
|
36
|
-
minHeight: number;
|
|
37
|
-
width: string;
|
|
38
|
-
padding: number[];
|
|
39
|
-
alignItems: string;
|
|
40
|
-
boxSizing: string;
|
|
41
|
-
fontSize: number;
|
|
42
|
-
};
|
|
43
|
-
cellWithCheckbox: {
|
|
44
|
-
padding: number;
|
|
45
|
-
};
|
|
46
|
-
noMatchesLabel: {
|
|
47
|
-
pointerEvents: string;
|
|
48
|
-
};
|
|
49
|
-
focused: {};
|
|
50
|
-
active: {};
|
|
51
|
-
disabled: {
|
|
52
|
-
cursor: string;
|
|
53
|
-
};
|
|
54
|
-
loading: {
|
|
55
|
-
cursor: string;
|
|
56
|
-
pointerEvents: string;
|
|
57
|
-
};
|
|
58
|
-
defaultCell: {};
|
|
59
|
-
};
|
|
60
|
-
export declare type SelectListStyles = ComponentStyles<typeof styles>;
|
|
5
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"list" | "root" | "cell" | "active" | "disabled" | "loading" | "focused" | "withListHeader" | "listHeader" | "cellWithCheckbox" | "noMatchesLabel" | "defaultCell", unknown>;
|
|
6
|
+
export declare type ISelectListStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './SelectList';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ISelectListStyles } from './SelectList.styles';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const checkboxStyles:
|
|
1
|
+
import { ICheckboxStyles } from '../../../Checkbox';
|
|
2
|
+
export declare const checkboxStyles: ICheckboxStyles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './Select';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type { ISelectStyles } from './Select.styles';
|
|
4
|
+
export type { ISelectListStyles } from './components';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IInputProps } from '../Input';
|
|
3
|
-
import {
|
|
3
|
+
import { ISmartType } from './types';
|
|
4
4
|
export interface ISmartInputProps extends IInputProps {
|
|
5
5
|
isUpperCase?: boolean;
|
|
6
|
-
smartType?:
|
|
6
|
+
smartType?: ISmartType;
|
|
7
7
|
regExp?: RegExp;
|
|
8
8
|
onChange: (value: string) => void;
|
|
9
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const transformCaseSensitive: (smartType:
|
|
1
|
+
import { ISmartType } from './types';
|
|
2
|
+
export declare const transformCaseSensitive: (smartType: ISmartType, map: {
|
|
3
3
|
[key: string]: string;
|
|
4
4
|
}, symbol: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type ISmartType = 'name' | 'nameRuEn' | 'surname' | 'surnameRuEn' | 'email' | 'agencyName' | 'default' | 'digits' | 'docNumber' | 'benefitCert';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { ISwitchState } from './types';
|
|
4
|
-
import {
|
|
5
|
-
export interface ISwitchProps<V extends string> extends ICommonProps {
|
|
6
|
-
tweakStyles?: SwitchStyles;
|
|
4
|
+
import { ISwitchStyles } from './Switch.styles';
|
|
5
|
+
export interface ISwitchProps<V extends string> extends ICommonProps<ISwitchStyles> {
|
|
7
6
|
children?: ReactNode;
|
|
8
7
|
value: V;
|
|
9
8
|
isChecked: boolean;
|
|
@@ -17,7 +16,6 @@ export interface ISwitchProps<V extends string> extends ICommonProps {
|
|
|
17
16
|
* @default `primary`
|
|
18
17
|
*/
|
|
19
18
|
color?: 'primary' | 'secondary';
|
|
20
|
-
testId?: string;
|
|
21
19
|
onChange(state: ISwitchState<V>): void;
|
|
22
20
|
}
|
|
23
21
|
export declare const Switch: <V extends string>({ isDisabled, isChecked, isInvalid, value, children, labelPosition, color, data, tweakStyles, testId, onChange, }: ISwitchProps<V>) => JSX.Element;
|
|
@@ -1,62 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
display: string;
|
|
5
|
-
alignItems: string;
|
|
6
|
-
cursor: string;
|
|
7
|
-
};
|
|
8
|
-
primary: {};
|
|
9
|
-
secondary: {};
|
|
10
|
-
invalid: {};
|
|
11
|
-
disabled: {
|
|
12
|
-
pointerEvents: string;
|
|
13
|
-
cursor: string;
|
|
14
|
-
};
|
|
15
|
-
checked: {
|
|
16
|
-
'& $switch::before': {
|
|
17
|
-
left: number;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
switch: {
|
|
21
|
-
position: string;
|
|
22
|
-
flexShrink: number;
|
|
23
|
-
display: string;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
backgroundColor: string;
|
|
27
|
-
borderRadius: number;
|
|
28
|
-
boxSizing: string;
|
|
29
|
-
transitionProperty: string;
|
|
30
|
-
transition: string;
|
|
31
|
-
'&::before': {
|
|
32
|
-
content: string;
|
|
33
|
-
position: string;
|
|
34
|
-
top: number;
|
|
35
|
-
left: number;
|
|
36
|
-
right: string;
|
|
37
|
-
display: string;
|
|
38
|
-
width: number;
|
|
39
|
-
height: number;
|
|
40
|
-
backgroundColor: string;
|
|
41
|
-
borderRadius: string;
|
|
42
|
-
zIndex: number;
|
|
43
|
-
transitionProperty: string;
|
|
44
|
-
transition: string;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
input: {
|
|
48
|
-
display: string;
|
|
49
|
-
};
|
|
50
|
-
label: {
|
|
51
|
-
transitionProperty: string;
|
|
52
|
-
transition: string;
|
|
53
|
-
};
|
|
54
|
-
labelLeft: {
|
|
55
|
-
order: number;
|
|
56
|
-
marginRight: number;
|
|
57
|
-
};
|
|
58
|
-
labelRight: {
|
|
59
|
-
marginLeft: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export declare type SwitchStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "disabled" | "input" | "label" | "switch" | "invalid" | "primary" | "secondary" | "checked" | "labelLeft" | "labelRight", unknown>;
|
|
3
|
+
export declare type ISwitchStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC, FormEvent, FocusEvent, ClipboardEvent } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface ITextAreaProps extends ICommonProps {
|
|
5
|
-
tweakStyles?: TextAreaStyles;
|
|
3
|
+
import { ITextAreaStyles } from './TextArea.styles';
|
|
4
|
+
export interface ITextAreaProps extends ICommonProps<ITextAreaStyles> {
|
|
6
5
|
value?: string;
|
|
7
6
|
label?: string;
|
|
8
7
|
placeholder?: string;
|
|
@@ -20,7 +19,6 @@ export interface ITextAreaProps extends ICommonProps {
|
|
|
20
19
|
shouldTrimAfterMaxLength?: boolean;
|
|
21
20
|
maxLength?: number;
|
|
22
21
|
rows?: number;
|
|
23
|
-
testId?: string;
|
|
24
22
|
onChange(value: string, event?: FormEvent<HTMLTextAreaElement>): void;
|
|
25
23
|
onFocus?(event: FocusEvent<HTMLTextAreaElement>): void;
|
|
26
24
|
onBlur?(event: FocusEvent<HTMLTextAreaElement>): void;
|