@true-engineering/true-react-common-ui-kit 2.5.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/LICENSE +201 -201
- 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/augment.d.ts +1 -1
- 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/complexIcons/augment.d.ts +1 -1
- 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 +4 -6
- 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 +3038 -2529
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +2970 -2461
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -1
- package/dist/types.d.ts +4 -22
- package/dist/vite-env.d.ts +1 -1
- package/package.json +2 -2
- package/src/components/AccountInfo/AccountInfo.styles.ts +51 -55
- package/src/components/AccountInfo/AccountInfo.tsx +13 -10
- package/src/components/AccountInfo/constants.ts +1 -1
- package/src/components/AccountInfo/index.ts +2 -2
- package/src/components/AddButton/AddButton.stories.tsx +21 -21
- package/src/components/AddButton/AddButton.styles.ts +34 -34
- package/src/components/AddButton/AddButton.tsx +7 -6
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.styles.ts +201 -196
- 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 +46 -62
- package/src/components/Checkbox/Checkbox.tsx +3 -25
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.styles.ts +4 -5
- package/src/components/CloseButton/CloseButton.tsx +6 -8
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +36 -38
- package/src/components/Colors/Colors.tsx +3 -3
- package/src/components/Colors/index.ts +1 -2
- package/src/components/CssBaseline/CssBaseline.styles.ts +14 -15
- package/src/components/CssBaseline/CssBaseline.tsx +6 -8
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.styles.ts +18 -14
- package/src/components/DateInput/DateInput.tsx +20 -7
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- 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 +30 -31
- package/src/components/Description/Description.tsx +6 -6
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FiltersPane.styles.ts +87 -71
- 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 +17 -18
- package/src/components/Flag/Flag.tsx +3 -5
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- 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 +4 -3
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +6 -7
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/index.ts +1 -1
- 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 +77 -77
- package/src/components/IncrementInput/IncrementInput.tsx +59 -35
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/Input.tsx +13 -10
- package/src/components/Input/index.ts +1 -1
- package/src/components/List/List.styles.ts +51 -52
- 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.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +5 -7
- package/src/components/MoreMenu/MoreMenu.tsx +10 -7
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.styles.ts +59 -55
- 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/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.styles.ts +89 -84
- 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/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +6 -6
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/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 +2 -2
- package/src/components/Select/Select.styles.ts +144 -96
- 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/constants.ts +2 -2
- package/src/components/Select/helpers.ts +3 -2
- package/src/components/Select/index.ts +2 -2
- package/src/components/Select/types.ts +1 -1
- 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 +75 -75
- package/src/components/Switch/Switch.tsx +3 -6
- package/src/components/Switch/index.ts +1 -1
- package/src/components/TextArea/TextArea.styles.ts +153 -153
- package/src/components/TextArea/TextArea.tsx +3 -6
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -60
- package/src/components/TextWithInfo/TextWithInfo.tsx +6 -5
- package/src/components/TextWithInfo/index.ts +2 -2
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -58
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +21 -19
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +15 -9
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -21
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +19 -11
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +3 -6
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +5 -6
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/index.ts +2 -2
- package/src/components/Toaster/Toaster.styles.ts +60 -59
- 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/components/Tooltip/types.ts +1 -1
- package/src/components/index.ts +36 -36
- package/src/helpers/index.ts +0 -1
- package/src/helpers/misc.ts +1 -1
- package/src/helpers/phone.ts +4 -1
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/hooks/index.ts +5 -6
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-tweak-styles.ts +56 -12
- package/src/index.ts +6 -6
- 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/src/vite-env.d.ts +1 -1
- 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,2 +1,2 @@
|
|
|
1
1
|
export * from './MoreMenu';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IMoreMenuStyles } from './MoreMenu.styles';
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
2
3
|
import { IMultiSelectListValues, IMultiSelectLocale, IMultiSelectLocaleKey } from '../MultiSelectList';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export interface IMultiSelectProps<Value = string> {
|
|
6
|
-
tweakStyles?: MultiSelectStyles;
|
|
4
|
+
import { IHorizontalCornerConnection } from './types';
|
|
5
|
+
import { IMultiSelectStyles } from './MultiSelect.styles';
|
|
6
|
+
export interface IMultiSelectProps<Value = string> extends ICommonProps<IMultiSelectStyles> {
|
|
7
7
|
value?: IMultiSelectListValues<Value>;
|
|
8
|
-
corners?:
|
|
8
|
+
corners?: IHorizontalCornerConnection;
|
|
9
9
|
isInvalid?: boolean;
|
|
10
10
|
isRequired?: boolean;
|
|
11
11
|
isDisabled?: boolean;
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
localeKey?: IMultiSelectLocaleKey;
|
|
14
14
|
locale?: IMultiSelectLocale;
|
|
15
|
-
onChange
|
|
16
|
-
fetchOptions
|
|
15
|
+
onChange(value?: IMultiSelectListValues<Value>): void;
|
|
16
|
+
fetchOptions(value?: string, page?: number): Promise<Value[]>;
|
|
17
17
|
}
|
|
18
|
-
export declare function MultiSelect<Value = string>({ value, corners, isInvalid, isRequired, isDisabled, placeholder, localeKey, locale, onChange, fetchOptions, tweakStyles, }: IMultiSelectProps<Value>): JSX.Element;
|
|
18
|
+
export declare function MultiSelect<Value = string>({ value, corners, isInvalid, isRequired, isDisabled, placeholder, localeKey, locale, testId, data, onChange, fetchOptions, tweakStyles, }: IMultiSelectProps<Value>): JSX.Element;
|
|
@@ -1,44 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
cursor: string;
|
|
9
|
-
fontSize: number;
|
|
10
|
-
};
|
|
11
|
-
required: {
|
|
12
|
-
'&:before': {
|
|
13
|
-
content: string;
|
|
14
|
-
position: string;
|
|
15
|
-
left: number;
|
|
16
|
-
top: string;
|
|
17
|
-
transform: string;
|
|
18
|
-
width: number;
|
|
19
|
-
height: number;
|
|
20
|
-
borderRadius: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
disabled: {
|
|
24
|
-
cursor: string;
|
|
25
|
-
};
|
|
26
|
-
listContainer: {
|
|
27
|
-
position: string;
|
|
28
|
-
top: string;
|
|
29
|
-
left: number;
|
|
30
|
-
right: number;
|
|
31
|
-
zIndex: number;
|
|
32
|
-
};
|
|
33
|
-
invalid: {};
|
|
34
|
-
open: {};
|
|
35
|
-
full: {};
|
|
36
|
-
left: {};
|
|
37
|
-
right: {};
|
|
38
|
-
tweakMultiSelectList: {
|
|
39
|
-
root: {
|
|
40
|
-
width: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export declare type MultiSelectStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IMultiSelectListStyles } from '../MultiSelectList';
|
|
3
|
+
export declare const useStyles: import("../../theme").IUseStyles<"right" | "left" | "root" | "open" | "disabled" | "invalid" | "required" | "listContainer" | "full", unknown>;
|
|
4
|
+
export declare const multiSelectListStyles: IMultiSelectListStyles;
|
|
5
|
+
export declare type IMultiSelectStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakMultiSelectList: IMultiSelectListStyles;
|
|
7
|
+
}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
|
-
import { IMultiSelectListValues } from '../../../index';
|
|
4
|
-
export interface IMultiSelectInputProps<Value> extends ICommonProps {
|
|
3
|
+
import { IMultiSelectInputStyles, IMultiSelectListValues } from '../../../index';
|
|
4
|
+
export interface IMultiSelectInputProps<Value> extends Pick<ICommonProps<IMultiSelectInputStyles>, 'tweakStyles'> {
|
|
5
5
|
value?: IMultiSelectListValues<Value>;
|
|
6
6
|
isOpen: boolean;
|
|
7
7
|
isDisabled: boolean;
|
|
8
8
|
placeholder: string;
|
|
9
|
-
onToggle
|
|
9
|
+
onToggle(state: boolean): void;
|
|
10
10
|
}
|
|
11
|
-
export declare function MultiSelectInput<Value>({ value: v, isOpen, isDisabled, placeholder, onToggle, }: IMultiSelectInputProps<Value>): ReactElement | null;
|
|
11
|
+
export declare function MultiSelectInput<Value>({ value: v, isOpen, isDisabled, placeholder, tweakStyles, onToggle, }: IMultiSelectInputProps<Value>): ReactElement | null;
|
package/dist/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.d.ts
CHANGED
|
@@ -1,62 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
display: string;
|
|
5
|
-
justifyContent: string;
|
|
6
|
-
flexDirection: string;
|
|
7
|
-
height: string;
|
|
8
|
-
padding: number[];
|
|
9
|
-
overflow: string;
|
|
10
|
-
whiteSpace: string;
|
|
11
|
-
};
|
|
12
|
-
placeholder: {
|
|
13
|
-
fontSize: number;
|
|
14
|
-
userSelect: string;
|
|
15
|
-
};
|
|
16
|
-
placeholderSmall: {
|
|
17
|
-
fontSize: number;
|
|
18
|
-
marginBottom: number;
|
|
19
|
-
position: string;
|
|
20
|
-
};
|
|
21
|
-
values: {
|
|
22
|
-
width: string;
|
|
23
|
-
};
|
|
24
|
-
value: {
|
|
25
|
-
width: string;
|
|
26
|
-
overflow: string;
|
|
27
|
-
textOverflow: string;
|
|
28
|
-
};
|
|
29
|
-
amount: {
|
|
30
|
-
boxSizing: string;
|
|
31
|
-
position: string;
|
|
32
|
-
top: string;
|
|
33
|
-
right: number;
|
|
34
|
-
height: number;
|
|
35
|
-
minWidth: number;
|
|
36
|
-
fontSize: number;
|
|
37
|
-
lineHeight: string;
|
|
38
|
-
textAlign: string;
|
|
39
|
-
padding: number[];
|
|
40
|
-
};
|
|
41
|
-
indicator: {
|
|
42
|
-
position: string;
|
|
43
|
-
top: number;
|
|
44
|
-
right: number;
|
|
45
|
-
height: string;
|
|
46
|
-
width: number;
|
|
47
|
-
borderRadius: number;
|
|
48
|
-
display: string;
|
|
49
|
-
alignItems: string;
|
|
50
|
-
justifyContent: string;
|
|
51
|
-
};
|
|
52
|
-
arrow: {
|
|
53
|
-
width: number;
|
|
54
|
-
height: number;
|
|
55
|
-
transition: string;
|
|
56
|
-
};
|
|
57
|
-
arrowUp: {
|
|
58
|
-
transform: string;
|
|
59
|
-
};
|
|
60
|
-
indicatorDisabled: {};
|
|
61
|
-
};
|
|
62
|
-
export declare type MultiSelectInputStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"arrow" | "value" | "root" | "values" | "placeholder" | "placeholderSmall" | "amount" | "indicator" | "arrowUp" | "indicatorDisabled", unknown>;
|
|
3
|
+
export declare type IMultiSelectInputStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './MultiSelectInput';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IMultiSelectInputStyles } from './MultiSelectInput.styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './MultiSelect';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type { IMultiSelectStyles } from './MultiSelect.styles';
|
|
4
|
+
export type { IMultiSelectInputStyles } from './components';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type IHorizontalCornerConnection = 'full' | 'left' | 'right';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { IMultiSelectListValues, IMultiSelectLocale, IMultiSelectLocaleKey } from './types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IMultiSelectListProps<Value, Option> extends ICommonProps {
|
|
6
|
-
tweakStyles?: MultiSelectListStyles;
|
|
4
|
+
import { IMultiSelectListStyles } from './MultiSelectList.styles';
|
|
5
|
+
export interface IMultiSelectListProps<Value, Option> extends ICommonProps<IMultiSelectListStyles> {
|
|
7
6
|
value?: Value;
|
|
8
7
|
isSearchEnabled?: boolean;
|
|
9
8
|
width?: number | string;
|
|
@@ -20,6 +19,5 @@ export interface IMultiSelectListProps<Value, Option> extends ICommonProps {
|
|
|
20
19
|
checkboxPosition?: 'left' | 'right';
|
|
21
20
|
pageSize?: number;
|
|
22
21
|
searchMaxLength?: number;
|
|
23
|
-
testId?: string;
|
|
24
22
|
}
|
|
25
23
|
export declare function MultiSelectList<Value extends IMultiSelectListValues<Option>, Option = string>({ value, tweakStyles, data, isSearchEnabled, width, localeKey, locale, onChange, onClose, options, fetchOptions, isGroupingEnabled, getValueView, getValueId, getValueString, checkboxPosition, pageSize, searchMaxLength, testId, }: IMultiSelectListProps<Value, Option>): JSX.Element;
|
|
@@ -1,105 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
paddingTop: number;
|
|
15
|
-
maxHeight: number;
|
|
16
|
-
overscrollBehavior: string;
|
|
17
|
-
};
|
|
18
|
-
label: {
|
|
19
|
-
boxSizing: string;
|
|
20
|
-
fontSize: number;
|
|
21
|
-
padding: number[];
|
|
22
|
-
userSelect: string;
|
|
23
|
-
display: string;
|
|
24
|
-
alignItems: string;
|
|
25
|
-
color: "#7a869a";
|
|
26
|
-
};
|
|
27
|
-
labelChosen: {
|
|
28
|
-
fontWeight: string;
|
|
29
|
-
color: "#222a37";
|
|
30
|
-
padding: number[];
|
|
31
|
-
};
|
|
32
|
-
withoutTopGap: {
|
|
33
|
-
paddingTop: number;
|
|
34
|
-
};
|
|
35
|
-
item: {
|
|
36
|
-
boxSizing: string;
|
|
37
|
-
padding: number;
|
|
38
|
-
maxWidth: string;
|
|
39
|
-
fontSize: number;
|
|
40
|
-
};
|
|
41
|
-
option: {
|
|
42
|
-
display: string;
|
|
43
|
-
userSelect: string;
|
|
44
|
-
maxWidth: string;
|
|
45
|
-
overflow: string;
|
|
46
|
-
whiteSpace: string;
|
|
47
|
-
textOverflow: string;
|
|
48
|
-
};
|
|
49
|
-
panel: {
|
|
50
|
-
display: string;
|
|
51
|
-
padding: number[];
|
|
52
|
-
};
|
|
53
|
-
clear: {
|
|
54
|
-
marginLeft: string;
|
|
55
|
-
};
|
|
56
|
-
selectedItem: {};
|
|
57
|
-
preloader: {
|
|
58
|
-
width: number;
|
|
59
|
-
height: number;
|
|
60
|
-
margin: string;
|
|
61
|
-
display: string;
|
|
62
|
-
alignItems: string;
|
|
63
|
-
justifyContent: string;
|
|
64
|
-
};
|
|
65
|
-
dropdownInput: {
|
|
66
|
-
borderBottom: (string | number)[];
|
|
67
|
-
};
|
|
68
|
-
nothingFound: {
|
|
69
|
-
display: string;
|
|
70
|
-
alignItems: string;
|
|
71
|
-
justifyContent: string;
|
|
72
|
-
textAlign: string;
|
|
73
|
-
padding: number;
|
|
74
|
-
fontSize: number;
|
|
75
|
-
};
|
|
76
|
-
tweakSearchInput: {
|
|
77
|
-
tweakInput: {
|
|
78
|
-
inputWrapper: {
|
|
79
|
-
backgroundColor: string;
|
|
80
|
-
border: string;
|
|
81
|
-
height: number;
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
tweakCheckbox: {
|
|
86
|
-
root: {
|
|
87
|
-
padding: number[];
|
|
88
|
-
};
|
|
89
|
-
children: {
|
|
90
|
-
marginRight: string;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
tweakClearButton: {
|
|
94
|
-
text: {
|
|
95
|
-
color: "#95a0b3";
|
|
96
|
-
'&:hover, &:focus': {
|
|
97
|
-
color: "#505f79";
|
|
98
|
-
};
|
|
99
|
-
'&:active': {
|
|
100
|
-
color: "#505f79";
|
|
101
|
-
};
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
export declare type MultiSelectListStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IButtonStyles } from '../Button';
|
|
3
|
+
import { ICheckboxStyles } from '../Checkbox';
|
|
4
|
+
import { ISearchInputStyles } from '../SearchInput';
|
|
5
|
+
export declare const useStyles: import("../../theme").IUseStyles<"list" | "clear" | "item" | "root" | "label" | "option" | "labelChosen" | "withoutTopGap" | "panel" | "preloader" | "dropdownInput" | "nothingFound" | "selectedItem", unknown>;
|
|
6
|
+
export declare const searchInputStyles: ISearchInputStyles;
|
|
7
|
+
export declare const checkboxStyles: ICheckboxStyles;
|
|
8
|
+
export declare const clearButtonStyles: IButtonStyles;
|
|
9
|
+
export declare type IMultiSelectListStyles = ITweakStyles<typeof useStyles, {
|
|
10
|
+
tweakSearchInput: ISearchInputStyles;
|
|
11
|
+
tweakCheckbox: ICheckboxStyles;
|
|
12
|
+
tweakClearButton: IButtonStyles;
|
|
13
|
+
}>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export interface INotificationProps extends ICommonProps {
|
|
6
|
-
|
|
7
|
-
type: NotificationType;
|
|
3
|
+
import { INotificationType } from './types';
|
|
4
|
+
import { INotificationStyles } from './Notification.styles';
|
|
5
|
+
export interface INotificationProps extends ICommonProps<INotificationStyles> {
|
|
6
|
+
type: INotificationType;
|
|
8
7
|
/**
|
|
9
8
|
* @default true
|
|
10
9
|
*/
|
|
@@ -15,7 +14,6 @@ export interface INotificationProps extends ICommonProps {
|
|
|
15
14
|
* @default `s`
|
|
16
15
|
*/
|
|
17
16
|
size?: 's' | 'm' | 'l';
|
|
18
|
-
testId?: string;
|
|
19
17
|
children?: ReactNode;
|
|
20
18
|
}
|
|
21
19
|
export declare const Notification: FC<INotificationProps>;
|
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
type: NotificationType;
|
|
5
|
-
}
|
|
6
|
-
export declare const styles: {
|
|
7
|
-
root: {
|
|
8
|
-
display: string;
|
|
9
|
-
};
|
|
10
|
-
inline: {
|
|
11
|
-
width: string;
|
|
12
|
-
};
|
|
13
|
-
icon: {
|
|
14
|
-
width: number;
|
|
15
|
-
height: number;
|
|
16
|
-
marginRight: number;
|
|
17
|
-
flexShrink: number;
|
|
18
|
-
};
|
|
19
|
-
body: {
|
|
20
|
-
flexGrow: number;
|
|
21
|
-
};
|
|
22
|
-
title: {
|
|
23
|
-
display: string;
|
|
24
|
-
fontWeight: string;
|
|
25
|
-
};
|
|
26
|
-
text: {
|
|
27
|
-
display: string;
|
|
28
|
-
};
|
|
29
|
-
content: {};
|
|
30
|
-
s: {};
|
|
31
|
-
m: {};
|
|
32
|
-
l: {};
|
|
33
|
-
withText: {};
|
|
34
|
-
withTitle: {};
|
|
35
|
-
};
|
|
36
|
-
export declare type NotificationStyles = ComponentStyles<typeof styles, IStyleProps>;
|
|
37
|
-
export {};
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"content" | "root" | "inline" | "text" | "icon" | "body" | "s" | "title" | "error" | "warning" | "m" | "l" | "info" | "withText" | "withTitle" | "ok" | "not-ok", unknown>;
|
|
3
|
+
export declare type INotificationStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type
|
|
1
|
+
export declare type INotificationType = 'error' | 'info' | 'warning' | 'ok' | 'not-ok';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FC, MouseEvent, FormEvent } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
2
3
|
import { IInputProps } from '../Input';
|
|
3
4
|
import { IPhoneValue } from './types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IPhoneInputProps extends Omit<IInputProps, 'value' | 'onChange' | 'type' | 'mask' | 'units' | 'placeholder'> {
|
|
6
|
-
tweakStyles?: PhoneInputStyles;
|
|
5
|
+
import { IPhoneInputStyles } from './PhoneInput.styles';
|
|
6
|
+
export interface IPhoneInputProps extends Omit<IInputProps, 'value' | 'onChange' | 'type' | 'mask' | 'units' | 'placeholder' | 'tweakStyles'>, ICommonProps<IPhoneInputStyles> {
|
|
7
7
|
locale?: string;
|
|
8
8
|
codeSearchPlaceholder?: string;
|
|
9
9
|
noMatchesLabel?: string;
|
|
@@ -1,66 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
left: number;
|
|
11
|
-
top: number;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
display: string;
|
|
15
|
-
alignItems: string;
|
|
16
|
-
justifyContent: string;
|
|
17
|
-
borderRight: (string | number)[];
|
|
18
|
-
transition: string;
|
|
19
|
-
cursor: string;
|
|
20
|
-
zIndex: number;
|
|
21
|
-
};
|
|
22
|
-
disabledCountrySelect: {
|
|
23
|
-
cursor: string;
|
|
24
|
-
};
|
|
25
|
-
flag: {
|
|
26
|
-
width: number;
|
|
27
|
-
height: number;
|
|
28
|
-
};
|
|
29
|
-
arrow: {
|
|
30
|
-
width: number;
|
|
31
|
-
color: "#95a0b3";
|
|
32
|
-
marginLeft: number;
|
|
33
|
-
transition: string;
|
|
34
|
-
};
|
|
35
|
-
up: {
|
|
36
|
-
transform: string;
|
|
37
|
-
};
|
|
38
|
-
invalidArrow: {
|
|
39
|
-
color: "#f14d56";
|
|
40
|
-
};
|
|
41
|
-
focusedBorder: {};
|
|
42
|
-
invalidBorder: {
|
|
43
|
-
borderColor: "#f14d56";
|
|
44
|
-
};
|
|
45
|
-
inputContainer: {
|
|
46
|
-
position: string;
|
|
47
|
-
flex: number;
|
|
48
|
-
};
|
|
49
|
-
flagListContainer: {
|
|
50
|
-
position: string;
|
|
51
|
-
width: string;
|
|
52
|
-
top: number;
|
|
53
|
-
left: number;
|
|
54
|
-
zIndex: number;
|
|
55
|
-
};
|
|
56
|
-
tweakInput: {
|
|
57
|
-
inputWrapper: {
|
|
58
|
-
paddingLeft: number;
|
|
59
|
-
};
|
|
60
|
-
label: {
|
|
61
|
-
marginLeft: number;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
tweakCountryList: {};
|
|
65
|
-
};
|
|
66
|
-
export declare type PhoneInputStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IInputStyles } from '../Input';
|
|
3
|
+
import { IPhoneInputCountryListStyles } from './components';
|
|
4
|
+
export declare const useStyles: import("../../theme").IUseStyles<"arrow" | "root" | "countrySelectContainer" | "disabledCountrySelect" | "flag" | "up" | "invalidArrow" | "focusedBorder" | "invalidBorder" | "inputContainer" | "flagListContainer", unknown>;
|
|
5
|
+
export declare const inputStyles: IInputStyles;
|
|
6
|
+
export declare type IPhoneInputStyles = ITweakStyles<typeof useStyles, {
|
|
7
|
+
tweakInput: IInputStyles;
|
|
8
|
+
tweakCountryList: IPhoneInputCountryListStyles;
|
|
9
|
+
}>;
|
package/dist/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC, MouseEvent } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
3
|
import { IPhoneInfo } from '../../types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IPhoneInputCountryListProps extends ICommonProps {
|
|
6
|
-
tweakStyles?: PhoneInputCountryListStyles;
|
|
4
|
+
import { IPhoneInputCountryListStyles } from './PhoneInputCountryList.styles';
|
|
5
|
+
export interface IPhoneInputCountryListProps extends Pick<ICommonProps<IPhoneInputCountryListStyles>, 'tweakStyles'> {
|
|
7
6
|
selectedCountryCode?: string;
|
|
8
7
|
locale: string;
|
|
9
8
|
placeholder: string;
|
|
@@ -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;
|