@true-engineering/true-react-common-ui-kit 2.7.0 → 3.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -201
- package/README.md +0 -26
- 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 +4 -6
- 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/FlexibleTable/types.d.ts +1 -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 +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 +3 -5
- package/dist/components/List/List.styles.d.ts +3 -11
- package/dist/components/List/index.d.ts +2 -1
- package/dist/components/{ListItem → List}/types.d.ts +0 -5
- 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 +4 -6
- 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/components/index.d.ts +0 -1
- package/dist/helpers/index.d.ts +0 -2
- 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 +3074 -2663
- package/dist/true-react-common-ui-kit.js.map +1 -1
- package/dist/true-react-common-ui-kit.umd.cjs +3020 -2609
- 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 +93 -93
- package/src/components/AccountInfo/AccountInfo.stories.tsx +32 -32
- package/src/components/AccountInfo/AccountInfo.styles.ts +51 -55
- package/src/components/AccountInfo/AccountInfo.tsx +79 -76
- 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 +49 -48
- package/src/components/AddButton/index.ts +2 -2
- package/src/components/Button/Button.stories.tsx +56 -56
- package/src/components/Button/Button.styles.ts +201 -196
- package/src/components/Button/Button.tsx +147 -153
- package/src/components/Button/constants.ts +9 -9
- package/src/components/Button/index.ts +3 -3
- package/src/components/Button/types.ts +5 -5
- package/src/components/Checkbox/Checkbox.stories.tsx +28 -32
- package/src/components/Checkbox/Checkbox.styles.ts +46 -62
- package/src/components/Checkbox/Checkbox.tsx +83 -105
- package/src/components/Checkbox/index.ts +2 -2
- package/src/components/CloseButton/CloseButton.styles.ts +33 -34
- package/src/components/CloseButton/CloseButton.tsx +33 -35
- package/src/components/CloseButton/index.ts +2 -2
- package/src/components/Colors/Colors.stories.tsx +7 -7
- package/src/components/Colors/Colors.styles.ts +36 -38
- package/src/components/Colors/Colors.tsx +26 -26
- package/src/components/Colors/index.ts +1 -2
- package/src/components/CssBaseline/CssBaseline.styles.ts +14 -15
- package/src/components/CssBaseline/CssBaseline.tsx +13 -15
- package/src/components/CssBaseline/index.ts +2 -2
- package/src/components/DateInput/DateInput.stories.tsx +61 -61
- package/src/components/DateInput/DateInput.styles.ts +18 -14
- package/src/components/DateInput/DateInput.tsx +95 -82
- package/src/components/DateInput/constants.ts +2 -2
- package/src/components/DateInput/index.ts +3 -3
- package/src/components/DatePicker/DatePicker.stories.tsx +87 -87
- package/src/components/DatePicker/DatePicker.styles.ts +38 -44
- package/src/components/DatePicker/DatePicker.tsx +308 -309
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.styles.ts +88 -84
- package/src/components/DatePicker/components/DatePickerHeader/DatePickerHeader.tsx +89 -79
- package/src/components/DatePicker/components/DatePickerHeader/index.ts +2 -2
- package/src/components/DatePicker/components/PopperContainer/PopperContainer.tsx +6 -6
- package/src/components/DatePicker/components/PopperContainer/index.ts +1 -1
- package/src/components/DatePicker/components/index.ts +2 -2
- package/src/components/DatePicker/constants.ts +6 -6
- package/src/components/DatePicker/helpers.ts +23 -23
- package/src/components/DatePicker/index.ts +4 -4
- package/src/components/DatePicker/types.ts +45 -45
- package/src/components/Description/Description.stories.tsx +27 -27
- package/src/components/Description/Description.styles.ts +30 -31
- package/src/components/Description/Description.tsx +59 -59
- package/src/components/Description/constants.ts +1 -1
- package/src/components/Description/index.ts +2 -2
- package/src/components/FiltersPane/FiltersPane.stories.tsx +295 -295
- package/src/components/FiltersPane/FiltersPane.styles.ts +87 -71
- package/src/components/FiltersPane/FiltersPane.tsx +155 -150
- package/src/components/FiltersPane/components/Filter/Filter.tsx +203 -203
- package/src/components/FiltersPane/components/Filter/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.styles.ts +60 -64
- package/src/components/FiltersPane/components/FilterInterval/FilterInterval.tsx +154 -141
- package/src/components/FiltersPane/components/FilterInterval/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterMultiSelect/FilterMultiSelect.tsx +10 -10
- package/src/components/FiltersPane/components/FilterMultiSelect/index.ts +1 -1
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.styles.ts +138 -143
- package/src/components/FiltersPane/components/FilterSelect/FilterSelect.tsx +359 -346
- package/src/components/FiltersPane/components/FilterSelect/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.styles.tsx +15 -15
- package/src/components/FiltersPane/components/FilterValueView/FilterValueView.tsx +165 -163
- package/src/components/FiltersPane/components/FilterValueView/index.tsx +2 -2
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.styles.ts +67 -60
- package/src/components/FiltersPane/components/FilterWithDates/FilterWithDates.tsx +210 -181
- package/src/components/FiltersPane/components/FilterWithDates/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.styles.ts +21 -17
- package/src/components/FiltersPane/components/FilterWithPeriod/FilterWithPeriod.tsx +177 -174
- package/src/components/FiltersPane/components/FilterWithPeriod/index.ts +2 -2
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.styles.ts +115 -110
- package/src/components/FiltersPane/components/FilterWrapper/FilterWrapper.tsx +167 -149
- package/src/components/FiltersPane/components/FilterWrapper/index.ts +2 -2
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.ts +116 -109
- package/src/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.tsx +168 -155
- package/src/components/FiltersPane/components/FiltersPaneSearch/index.ts +2 -2
- package/src/components/FiltersPane/components/index.ts +9 -9
- package/src/components/FiltersPane/constants.ts +137 -137
- package/src/components/FiltersPane/helpers.ts +26 -26
- package/src/components/FiltersPane/index.ts +5 -5
- package/src/components/FiltersPane/types.ts +156 -156
- package/src/components/Flag/Flag.stories.tsx +29 -29
- package/src/components/Flag/Flag.styles.ts +17 -18
- package/src/components/Flag/Flag.tsx +25 -27
- package/src/components/Flag/augment.d.ts +1 -1
- package/src/components/Flag/index.ts +2 -2
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +350 -338
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +104 -131
- package/src/components/FlexibleTable/FlexibleTable.tsx +196 -205
- package/src/components/FlexibleTable/components/FlexibleTableCell/FlexibleTableCell.styles.ts +28 -0
- package/src/components/FlexibleTable/components/{TableValue/TableValue.tsx → FlexibleTableCell/FlexibleTableCell.tsx} +73 -74
- 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} +151 -152
- package/src/components/FlexibleTable/components/FlexibleTableRow/index.ts +2 -0
- package/src/components/FlexibleTable/components/index.ts +2 -2
- package/src/components/FlexibleTable/constants.ts +1 -1
- package/src/components/FlexibleTable/index.ts +4 -3
- package/src/components/FlexibleTable/types.ts +52 -52
- package/src/components/Icon/Icon.stories.tsx +86 -86
- package/src/components/Icon/Icon.styles.ts +10 -10
- package/src/components/Icon/Icon.tsx +26 -27
- package/src/components/Icon/complexIcons/augment.d.ts +1 -1
- package/src/components/Icon/complexIcons/avatarGreen.svg +57 -57
- package/src/components/Icon/complexIcons/icons.ts +5 -5
- package/src/components/Icon/complexIcons/index.ts +1 -1
- package/src/components/Icon/components/ComplexIconBoilerplate/ComplexIconBoilerplate.tsx +16 -16
- package/src/components/Icon/components/ComplexIconBoilerplate/index.ts +1 -1
- package/src/components/Icon/components/IconBolerplate/IconBoilerplate.tsx +43 -43
- package/src/components/Icon/components/IconBolerplate/index.ts +1 -1
- package/src/components/Icon/components/index.ts +2 -2
- package/src/components/Icon/helpers.ts +9 -9
- package/src/components/Icon/icons-list.ts +826 -856
- package/src/components/Icon/index.ts +4 -4
- package/src/components/Icon/types.ts +16 -16
- package/src/components/IncrementInput/IncrementInput.stories.tsx +31 -31
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -77
- package/src/components/IncrementInput/IncrementInput.tsx +104 -80
- package/src/components/IncrementInput/index.ts +2 -2
- package/src/components/Input/Input.stories.tsx +86 -86
- package/src/components/Input/Input.styles.ts +307 -307
- package/src/components/Input/Input.tsx +311 -308
- package/src/components/Input/constants.ts +1 -1
- package/src/components/Input/index.ts +3 -3
- package/src/components/Input/types.ts +6 -6
- package/src/components/List/List.stories.tsx +63 -63
- package/src/components/List/List.styles.ts +51 -14
- package/src/components/List/List.tsx +51 -36
- package/src/components/List/index.ts +3 -2
- package/src/components/{ListItem → List}/types.ts +13 -19
- package/src/components/Modal/Modal.stories.tsx +105 -105
- package/src/components/Modal/Modal.styles.ts +303 -305
- package/src/components/Modal/Modal.tsx +186 -184
- package/src/components/Modal/index.ts +3 -3
- package/src/components/Modal/types.ts +17 -17
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -46
- package/src/components/MoreMenu/MoreMenu.styles.ts +68 -70
- package/src/components/MoreMenu/MoreMenu.tsx +93 -90
- package/src/components/MoreMenu/index.ts +2 -2
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -46
- package/src/components/MultiSelect/MultiSelect.styles.ts +59 -55
- package/src/components/MultiSelect/MultiSelect.tsx +101 -92
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.styles.ts +73 -73
- package/src/components/MultiSelect/components/MultiSelectInput/MultiSelectInput.tsx +52 -51
- package/src/components/MultiSelect/components/MultiSelectInput/index.ts +2 -2
- package/src/components/MultiSelect/components/index.ts +1 -1
- package/src/components/MultiSelect/index.ts +4 -4
- package/src/components/MultiSelect/types.ts +1 -1
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +132 -124
- package/src/components/MultiSelectList/MultiSelectList.tsx +460 -441
- package/src/components/MultiSelectList/constants.ts +21 -21
- package/src/components/MultiSelectList/helpers.ts +11 -11
- package/src/components/MultiSelectList/index.ts +3 -3
- package/src/components/MultiSelectList/types.ts +15 -15
- package/src/components/Notification/Notification.stories.tsx +46 -46
- package/src/components/Notification/Notification.styles.ts +55 -50
- package/src/components/Notification/Notification.tsx +75 -78
- package/src/components/Notification/index.ts +3 -3
- package/src/components/Notification/types.ts +1 -1
- package/src/components/NumberInput/NumberInput.stories.tsx +35 -35
- package/src/components/NumberInput/NumberInput.tsx +133 -133
- package/src/components/NumberInput/helpers.ts +86 -86
- package/src/components/NumberInput/index.ts +1 -1
- package/src/components/PhoneInput/PhoneInput.stories.tsx +70 -70
- package/src/components/PhoneInput/PhoneInput.styles.ts +89 -84
- package/src/components/PhoneInput/PhoneInput.tsx +210 -193
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -21
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.styles.ts +103 -100
- package/src/components/PhoneInput/components/PhoneInputCountryList/PhoneInputCountryList.tsx +155 -145
- package/src/components/PhoneInput/components/PhoneInputCountryList/index.ts +2 -2
- package/src/components/PhoneInput/components/index.ts +1 -1
- package/src/components/PhoneInput/constants.ts +3 -3
- package/src/components/PhoneInput/index.ts +5 -5
- package/src/components/PhoneInput/phone-info.ts +2147 -2147
- package/src/components/PhoneInput/types.ts +16 -16
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -46
- package/src/components/RadioButton/RadioButton.styles.ts +37 -37
- package/src/components/RadioButton/RadioButton.tsx +55 -55
- package/src/components/RadioButton/index.ts +2 -2
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +54 -54
- package/src/components/ScrollIntoViewIfNeeded/constants.ts +12 -12
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -1
- package/src/components/SearchInput/SearchInput.stories.tsx +23 -23
- package/src/components/SearchInput/SearchInput.styles.ts +50 -50
- package/src/components/SearchInput/SearchInput.tsx +56 -51
- package/src/components/SearchInput/index.ts +2 -2
- package/src/components/Select/MultiSelect.stories.tsx +240 -240
- package/src/components/Select/Select.stories.tsx +235 -235
- package/src/components/Select/Select.styles.ts +146 -96
- package/src/components/Select/Select.tsx +574 -574
- package/src/components/Select/components/SelectList/SelectList.styles.ts +71 -72
- package/src/components/Select/components/SelectList/SelectList.tsx +157 -158
- package/src/components/Select/components/SelectList/index.ts +2 -2
- package/src/components/Select/components/SelectListItem/SelectListItem.styles.ts +14 -14
- package/src/components/Select/components/SelectListItem/SelectListItem.tsx +68 -68
- package/src/components/Select/components/SelectListItem/index.ts +1 -1
- package/src/components/Select/components/index.ts +2 -2
- package/src/components/Select/constants.ts +2 -2
- package/src/components/Select/helpers.ts +27 -26
- package/src/components/Select/index.ts +4 -4
- package/src/components/Select/types.ts +1 -1
- package/src/components/SmartInput/SmartInput.stories.tsx +51 -51
- package/src/components/SmartInput/SmartInput.tsx +124 -124
- package/src/components/SmartInput/constants.ts +84 -84
- package/src/components/SmartInput/helpers.ts +13 -13
- package/src/components/SmartInput/index.ts +2 -2
- package/src/components/SmartInput/types.ts +11 -11
- package/src/components/Switch/Switch.stories.tsx +40 -40
- package/src/components/Switch/Switch.styles.ts +75 -75
- package/src/components/Switch/Switch.tsx +76 -79
- package/src/components/Switch/index.ts +3 -3
- package/src/components/Switch/types.ts +4 -4
- package/src/components/TextArea/TextArea.stories.tsx +35 -35
- package/src/components/TextArea/TextArea.styles.ts +153 -153
- package/src/components/TextArea/TextArea.tsx +171 -174
- package/src/components/TextArea/index.ts +2 -2
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -53
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +59 -60
- package/src/components/TextWithInfo/TextWithInfo.tsx +61 -60
- 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 +149 -143
- package/src/components/TextWithTooltip/index.ts +2 -2
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -41
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +26 -21
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +55 -47
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +29 -29
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -1
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -54
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +15 -18
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -11
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +24 -25
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -2
- package/src/components/ThemedPreloader/components/index.ts +3 -3
- package/src/components/ThemedPreloader/constants.ts +1 -1
- package/src/components/ThemedPreloader/index.ts +4 -4
- package/src/components/ThemedPreloader/types.ts +3 -3
- package/src/components/Toaster/Toaster.stories.tsx +30 -30
- package/src/components/Toaster/Toaster.styles.ts +60 -59
- package/src/components/Toaster/Toaster.tsx +114 -108
- package/src/components/Toaster/constants.ts +1 -1
- package/src/components/Toaster/index.ts +3 -3
- package/src/components/Toaster/types.ts +1 -1
- package/src/components/Tooltip/Tooltip.stories.tsx +19 -19
- package/src/components/Tooltip/Tooltip.styles.ts +49 -45
- package/src/components/Tooltip/Tooltip.tsx +39 -35
- package/src/components/Tooltip/index.ts +3 -3
- package/src/components/Tooltip/types.ts +1 -1
- package/src/components/index.ts +36 -37
- package/src/helpers/index.ts +3 -5
- package/src/helpers/misc.ts +158 -158
- package/src/helpers/phone.ts +90 -87
- package/src/helpers/popper-helpers.ts +17 -17
- package/src/helpers/snippets.tsx +6 -6
- package/src/hooks/index.ts +5 -6
- package/src/hooks/use-did-mount-effect.ts +18 -18
- package/src/hooks/use-dropdown.ts +82 -82
- package/src/hooks/use-is-mounted.ts +15 -15
- package/src/hooks/use-on-click-outside.ts +77 -77
- package/src/hooks/use-tweak-styles.ts +57 -13
- package/src/index.ts +6 -6
- package/src/theme/Provider.tsx +21 -0
- package/src/{theme.ts → theme/common.ts} +149 -149
- 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 +30 -109
- 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/components/ListItem/ListItem.d.ts +0 -6
- package/dist/components/ListItem/ListItem.styles.d.ts +0 -35
- package/dist/components/ListItem/constants.d.ts +0 -1
- package/dist/components/ListItem/index.d.ts +0 -3
- 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/components/ListItem/ListItem.stories.tsx +0 -67
- package/src/components/ListItem/ListItem.styles.ts +0 -48
- package/src/components/ListItem/ListItem.tsx +0 -44
- package/src/components/ListItem/constants.ts +0 -5
- package/src/components/ListItem/index.ts +0 -3
- package/src/helpers/deprecated.ts +0 -23
- package/src/hooks/use-theme.ts +0 -32
|
@@ -1,150 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
outline: string;
|
|
10
|
-
boxSizing: string;
|
|
11
|
-
transition: string;
|
|
12
|
-
transitionProperty: string;
|
|
13
|
-
maxWidth: string;
|
|
14
|
-
border: (string | number)[];
|
|
15
|
-
position: string;
|
|
16
|
-
boxShadow: string;
|
|
17
|
-
'&[disabled]': {
|
|
18
|
-
cursor: string;
|
|
19
|
-
pointerEvents: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
primary: {};
|
|
23
|
-
secondary: {};
|
|
24
|
-
outline: {};
|
|
25
|
-
warning: {};
|
|
26
|
-
destructive: {};
|
|
27
|
-
text: {};
|
|
28
|
-
custom: {};
|
|
29
|
-
children: {};
|
|
30
|
-
icon: {
|
|
31
|
-
width: number;
|
|
32
|
-
height: number;
|
|
33
|
-
flexShrink: number;
|
|
34
|
-
transition: string;
|
|
35
|
-
};
|
|
36
|
-
iconFromLeft: {
|
|
37
|
-
flexDirection: string;
|
|
38
|
-
gap: number;
|
|
39
|
-
'& $icon': {
|
|
40
|
-
marginLeft: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
iconFromRight: {
|
|
44
|
-
flexDirection: string;
|
|
45
|
-
gap: number;
|
|
46
|
-
'& $icon': {
|
|
47
|
-
marginRight: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
onlyIcon: {};
|
|
51
|
-
withIcon: {};
|
|
52
|
-
s: {
|
|
53
|
-
padding: number[];
|
|
54
|
-
height: number;
|
|
55
|
-
fontSize: number;
|
|
56
|
-
letterSpacing: number;
|
|
57
|
-
'&$onlyIcon': {
|
|
58
|
-
padding: number;
|
|
59
|
-
width: number;
|
|
60
|
-
};
|
|
61
|
-
'& $icon': {
|
|
62
|
-
width: number;
|
|
63
|
-
height: number;
|
|
64
|
-
};
|
|
65
|
-
'& $iconFromLeft': {
|
|
66
|
-
gap: number;
|
|
67
|
-
};
|
|
68
|
-
'& $iconFromRight': {
|
|
69
|
-
gap: number;
|
|
70
|
-
};
|
|
71
|
-
};
|
|
72
|
-
m: {
|
|
73
|
-
padding: number[];
|
|
74
|
-
height: number;
|
|
75
|
-
fontSize: number;
|
|
76
|
-
'& $iconFromLeft': {
|
|
77
|
-
gap: number;
|
|
78
|
-
};
|
|
79
|
-
'& $iconFromRight': {
|
|
80
|
-
gap: number;
|
|
81
|
-
};
|
|
82
|
-
'&$onlyIcon': {
|
|
83
|
-
padding: number;
|
|
84
|
-
width: number;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
l: {
|
|
88
|
-
padding: number[];
|
|
89
|
-
height: number;
|
|
90
|
-
fontSize: number;
|
|
91
|
-
'& $iconFromLeft': {
|
|
92
|
-
gap: number;
|
|
93
|
-
};
|
|
94
|
-
'& $iconFromRight': {
|
|
95
|
-
gap: number;
|
|
96
|
-
};
|
|
97
|
-
'&$onlyIcon': {
|
|
98
|
-
padding: number;
|
|
99
|
-
width: number;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
xl: {
|
|
103
|
-
padding: number[];
|
|
104
|
-
height: number;
|
|
105
|
-
fontSize: number;
|
|
106
|
-
'&$onlyIcon': {
|
|
107
|
-
padding: number;
|
|
108
|
-
width: number;
|
|
109
|
-
};
|
|
110
|
-
'& $iconFromLeft': {
|
|
111
|
-
gap: number;
|
|
112
|
-
};
|
|
113
|
-
'& $iconFromRight': {
|
|
114
|
-
gap: number;
|
|
115
|
-
};
|
|
116
|
-
};
|
|
117
|
-
fullWidth: {
|
|
118
|
-
minWidth: string;
|
|
119
|
-
width: string;
|
|
120
|
-
};
|
|
121
|
-
inline: {
|
|
122
|
-
borderTopLeftRadius: number;
|
|
123
|
-
borderBottomLeftRadius: number;
|
|
124
|
-
};
|
|
125
|
-
active: {};
|
|
126
|
-
content: {
|
|
127
|
-
display: string;
|
|
128
|
-
alignItems: string;
|
|
129
|
-
height: string;
|
|
130
|
-
};
|
|
131
|
-
loader: {
|
|
132
|
-
display: string;
|
|
133
|
-
position: string;
|
|
134
|
-
left: string;
|
|
135
|
-
top: string;
|
|
136
|
-
transform: string;
|
|
137
|
-
};
|
|
138
|
-
loading: {
|
|
139
|
-
'& $content': {
|
|
140
|
-
visibility: string;
|
|
141
|
-
};
|
|
142
|
-
'& $loader': {
|
|
143
|
-
display: string;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
disabled: {};
|
|
147
|
-
tweakPreloader: {};
|
|
148
|
-
};
|
|
149
|
-
export declare const dotsPreloaderStyles: ThemedPreloaderStyles;
|
|
150
|
-
export declare type ButtonStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IThemedPreloaderStyles } from '../ThemedPreloader';
|
|
3
|
+
import { IButtonSize } from './types';
|
|
4
|
+
export declare const useStyles: import("../../theme").IUseStyles<"content" | "outline" | "root" | "inline" | "text" | "icon" | "active" | "disabled" | "s" | "fullWidth" | "primary" | "secondary" | "warning" | "destructive" | "custom" | "children" | "iconFromLeft" | "iconFromRight" | "onlyIcon" | "withIcon" | "m" | "l" | "xl" | "loader" | "loading", unknown>;
|
|
5
|
+
export declare const getPreloaderStyles: (size: IButtonSize) => IThemedPreloaderStyles | undefined;
|
|
6
|
+
export declare type IButtonStyles = ITweakStyles<typeof useStyles, {
|
|
7
|
+
tweakPreloader: IThemedPreloaderStyles;
|
|
8
|
+
}>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface ICheckboxProps<V> extends ICommonProps {
|
|
5
|
-
tweakStyles?: CheckboxStyles;
|
|
3
|
+
import { ICheckboxStyles } from './Checkbox.styles';
|
|
4
|
+
export interface ICheckboxProps<V> extends ICommonProps<ICheckboxStyles> {
|
|
6
5
|
children?: ReactNode;
|
|
7
6
|
isChecked?: boolean;
|
|
8
7
|
isSemiChecked?: boolean;
|
|
@@ -10,26 +9,13 @@ export interface ICheckboxProps<V> extends ICommonProps {
|
|
|
10
9
|
isReadonly?: boolean;
|
|
11
10
|
isInvalid?: boolean;
|
|
12
11
|
value: V;
|
|
13
|
-
/**
|
|
14
|
-
* @default 18
|
|
15
|
-
*/
|
|
16
|
-
size?: number;
|
|
17
|
-
/**
|
|
18
|
-
* @default `center`
|
|
19
|
-
*/
|
|
20
|
-
alignItems?: 'top' | 'center';
|
|
21
|
-
/**
|
|
22
|
-
* @default `size - 4px`
|
|
23
|
-
*/
|
|
24
|
-
textMargin?: number;
|
|
25
12
|
/**
|
|
26
13
|
* @default `right`
|
|
27
14
|
*/
|
|
28
15
|
labelPosition?: 'right' | 'left';
|
|
29
|
-
testId?: string;
|
|
30
16
|
onSelect(value: {
|
|
31
17
|
value: V;
|
|
32
18
|
isSelected: boolean;
|
|
33
19
|
}): void;
|
|
34
20
|
}
|
|
35
|
-
export declare function Checkbox<V>({ children, isDisabled, isReadonly, isChecked, value,
|
|
21
|
+
export declare function Checkbox<V>({ children, isDisabled, isReadonly, isChecked, value, data, testId, isSemiChecked, labelPosition, tweakStyles, onSelect, }: ICheckboxProps<V>): JSX.Element;
|
|
@@ -1,50 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
size: NonNullable<ICheckboxProps<unknown>['size']>;
|
|
5
|
-
alignItems: NonNullable<ICheckboxProps<unknown>['alignItems']>;
|
|
6
|
-
textMargin: ICheckboxProps<unknown>['textMargin'];
|
|
7
|
-
}
|
|
8
|
-
export declare const styles: {
|
|
9
|
-
root: {
|
|
10
|
-
cursor: string;
|
|
11
|
-
display: string;
|
|
12
|
-
alignItems: ({ alignItems }: IStyleProps) => string;
|
|
13
|
-
};
|
|
14
|
-
disabled: {
|
|
15
|
-
cursor: string;
|
|
16
|
-
pointerEvents: string;
|
|
17
|
-
};
|
|
18
|
-
input: {
|
|
19
|
-
width: number;
|
|
20
|
-
height: number;
|
|
21
|
-
position: string;
|
|
22
|
-
opacity: number;
|
|
23
|
-
};
|
|
24
|
-
children: {
|
|
25
|
-
maxWidth: string;
|
|
26
|
-
display: string;
|
|
27
|
-
alignItems: string;
|
|
28
|
-
};
|
|
29
|
-
check: {
|
|
30
|
-
width: ({ size }: IStyleProps) => number;
|
|
31
|
-
height: ({ size }: IStyleProps) => number;
|
|
32
|
-
borderRadius: number;
|
|
33
|
-
flexShrink: number;
|
|
34
|
-
marginRight: ({ size, textMargin }: IStyleProps) => number;
|
|
35
|
-
display: string;
|
|
36
|
-
alignItems: string;
|
|
37
|
-
justifyContent: string;
|
|
38
|
-
boxSizing: string;
|
|
39
|
-
};
|
|
40
|
-
checked: {};
|
|
41
|
-
labelPositionLeft: {
|
|
42
|
-
flexDirection: string;
|
|
43
|
-
'& $check': {
|
|
44
|
-
marginRight: number;
|
|
45
|
-
marginLeft: ({ size, textMargin }: IStyleProps) => number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
export declare type CheckboxStyles = ComponentStyles<typeof styles, IStyleProps>;
|
|
50
|
-
export {};
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"check" | "root" | "disabled" | "input" | "children" | "checked" | "labelPositionLeft", unknown>;
|
|
3
|
+
export declare type ICheckboxStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Checkbox';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ICheckboxStyles } from './Checkbox.styles';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface ICloseButtonProps extends ICommonProps {
|
|
5
|
-
tweakStyles?: CloseButtonStyles;
|
|
6
|
-
testId?: string;
|
|
7
|
-
onClose?: () => void;
|
|
3
|
+
import { ICloseButtonStyles } from './CloseButton.styles';
|
|
4
|
+
export interface ICloseButtonProps extends ICommonProps<ICloseButtonStyles> {
|
|
8
5
|
iconType?: 'close' | 'close-large' | 'close-window';
|
|
6
|
+
onClose?(): void;
|
|
9
7
|
}
|
|
10
8
|
export declare const CloseButton: FC<ICloseButtonProps>;
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
width: number;
|
|
5
|
-
height: number;
|
|
6
|
-
maxWidth: string;
|
|
7
|
-
maxHeight: string;
|
|
8
|
-
padding: number;
|
|
9
|
-
color: "#505f79";
|
|
10
|
-
border: number;
|
|
11
|
-
borderRadius: string;
|
|
12
|
-
appearance: string;
|
|
13
|
-
backgroundColor: string;
|
|
14
|
-
cursor: string;
|
|
15
|
-
transition: string;
|
|
16
|
-
'&:hover': {
|
|
17
|
-
backgroundColor: string;
|
|
18
|
-
};
|
|
19
|
-
'&:focus': {
|
|
20
|
-
backgroundColor: "#eceff5";
|
|
21
|
-
};
|
|
22
|
-
'&:active': {
|
|
23
|
-
backgroundColor: string;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
export declare type CloseButtonStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root", unknown>;
|
|
3
|
+
export declare type ICloseButtonStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './CloseButton';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ICloseButtonStyles } from './CloseButton.styles';
|
|
@@ -1,32 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare const styles: {
|
|
3
|
-
root: {
|
|
4
|
-
display: string;
|
|
5
|
-
flexWrap: string;
|
|
6
|
-
};
|
|
7
|
-
colorCard: {
|
|
8
|
-
width: number;
|
|
9
|
-
border: string;
|
|
10
|
-
borderRadius: number;
|
|
11
|
-
color: string;
|
|
12
|
-
fontSize: number;
|
|
13
|
-
margin: number;
|
|
14
|
-
};
|
|
15
|
-
color: {
|
|
16
|
-
height: number;
|
|
17
|
-
borderTopLeftRadius: number;
|
|
18
|
-
borderTopRightRadius: number;
|
|
19
|
-
};
|
|
20
|
-
colorName: {
|
|
21
|
-
marginBottom: number;
|
|
22
|
-
padding: number;
|
|
23
|
-
overflow: string;
|
|
24
|
-
};
|
|
25
|
-
hex: {
|
|
26
|
-
marginTop: number;
|
|
27
|
-
textTransform: string;
|
|
28
|
-
fontWeight: string;
|
|
29
|
-
padding: number[];
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare type ColorsStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
export declare const useStyles: import("../../theme").IUseStyles<"color" | "root" | "colorCard" | "colorName" | "hex", unknown>;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export
|
|
5
|
-
tweakStyles?: CssBaselineStyles;
|
|
6
|
-
}
|
|
3
|
+
import { ICssBaselineStyles } from './CssBaseline.styles';
|
|
4
|
+
export declare type ICssBaselineProps = ICommonProps<ICssBaselineStyles>;
|
|
7
5
|
export declare const CssBaseline: FC<ICssBaselineProps>;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
fontFamily: string;
|
|
5
|
-
color: "#222a37";
|
|
6
|
-
padding: number;
|
|
7
|
-
margin: number;
|
|
8
|
-
};
|
|
9
|
-
root: {};
|
|
10
|
-
};
|
|
11
|
-
export declare type CssBaselineStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "@global html, body", unknown>;
|
|
3
|
+
export declare type ICssBaselineStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './CssBaseline';
|
|
2
|
-
export type {
|
|
2
|
+
export type { ICssBaselineStyles } from './CssBaseline.styles';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormEvent, MouseEvent } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
2
3
|
import { IInputProps } from '../Input';
|
|
3
|
-
import {
|
|
4
|
-
export interface IDateInputProps extends Omit<IInputProps, 'value' | 'beforeMaskedStateChange' | 'onChange'> {
|
|
4
|
+
import { IDateInputStyles } from './DateInput.styles';
|
|
5
|
+
export interface IDateInputProps extends Omit<IInputProps, 'value' | 'beforeMaskedStateChange' | 'onChange' | 'tweakStyles'>, ICommonProps<IDateInputStyles> {
|
|
5
6
|
date?: string;
|
|
6
7
|
startDate?: string;
|
|
7
8
|
endDate?: string;
|
|
8
9
|
className?: string;
|
|
9
10
|
isRange?: boolean;
|
|
10
|
-
tweakStyles?: DateInputStyles;
|
|
11
11
|
onClick?(event: MouseEvent<HTMLDivElement>): void;
|
|
12
12
|
onChange?(event: FormEvent<HTMLInputElement>, value: string): void;
|
|
13
13
|
}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
position: string;
|
|
8
|
-
};
|
|
9
|
-
tweakInput: {};
|
|
10
|
-
};
|
|
11
|
-
export declare type DateInputStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IInputStyles } from '../Input';
|
|
3
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root", unknown>;
|
|
4
|
+
export declare type IDateInputStyles = ITweakStyles<typeof useStyles, {
|
|
5
|
+
tweakInput: IInputStyles;
|
|
6
|
+
}>;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { FC, SyntheticEvent } from 'react';
|
|
2
2
|
import ReactDatePicker from 'react-datepicker';
|
|
3
|
+
import { ICommonProps } from '../../types';
|
|
3
4
|
import { IDateInputProps } from '../DateInput';
|
|
4
5
|
import { IDatePickerBaseProps, IRange } from './types';
|
|
5
|
-
import {
|
|
6
|
-
export interface IDatePickerProps extends IDatePickerBaseProps {
|
|
6
|
+
import { IDatePickerStyles } from './DatePicker.styles';
|
|
7
|
+
export interface IDatePickerProps extends IDatePickerBaseProps, ICommonProps<IDatePickerStyles> {
|
|
7
8
|
selectedDate?: Date | null;
|
|
8
9
|
locale: Locale;
|
|
9
10
|
months?: string[];
|
|
10
|
-
topPosition?: number;
|
|
11
|
-
leftPosition?: number;
|
|
12
11
|
/**
|
|
13
12
|
* @default `dd.MM.yyyy`
|
|
14
13
|
*/
|
|
@@ -18,8 +17,7 @@ export interface IDatePickerProps extends IDatePickerBaseProps {
|
|
|
18
17
|
isInline?: boolean;
|
|
19
18
|
shouldRenderPopperInBody?: boolean;
|
|
20
19
|
customInput?: FC<IDateInputProps>;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onChangeRange?: (date: IRange, event?: SyntheticEvent) => void;
|
|
20
|
+
onChangeDate?(date: Date | null, event?: SyntheticEvent): void;
|
|
21
|
+
onChangeRange?(date: IRange, event?: SyntheticEvent): void;
|
|
24
22
|
}
|
|
25
23
|
export declare const DatePicker: import("react").ForwardRefExoticComponent<IDatePickerProps & import("react").RefAttributes<ReactDatePicker<never, undefined>>>;
|
|
@@ -1,33 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
export declare const styles: {
|
|
8
|
-
root: {
|
|
9
|
-
width: string;
|
|
10
|
-
height: string;
|
|
11
|
-
};
|
|
12
|
-
day: {};
|
|
13
|
-
datepicker: {};
|
|
14
|
-
popper: {
|
|
15
|
-
zIndex: number;
|
|
16
|
-
marginTop: ({ topPosition }: IDatePickerStyleProps) => number;
|
|
17
|
-
marginLeft: ({ leftPosition }: IDatePickerStyleProps) => number;
|
|
18
|
-
'&[data-placement^="bottom"]': {
|
|
19
|
-
paddingTop: number;
|
|
20
|
-
};
|
|
21
|
-
'&[data-placement^="top"]': {
|
|
22
|
-
paddingBottom: number;
|
|
23
|
-
};
|
|
24
|
-
'&[data-placement^="left"]': {
|
|
25
|
-
paddingRight: number;
|
|
26
|
-
};
|
|
27
|
-
'&[data-placement^="right"]': {
|
|
28
|
-
paddingLeft: number;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
tweakDateInput: {};
|
|
32
|
-
};
|
|
33
|
-
export declare type DatePickerStyles = ComponentStyles<typeof styles, IDatePickerStyleProps>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IDateInputStyles } from '../DateInput';
|
|
3
|
+
export declare const useStyles: import("../../theme").IUseStyles<"popper" | "root" | "day" | "datepicker", unknown>;
|
|
4
|
+
export declare type IDatePickerStyles = ITweakStyles<typeof useStyles, {
|
|
5
|
+
tweakDateInput: IDateInputStyles;
|
|
6
|
+
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ReactDatePickerCustomHeaderProps as BaseProps } from 'react-datepicker';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { ICommonProps } from '../../../../types';
|
|
4
|
+
import { IDatePickerHeaderStyles } from './DatePickerHeader.styles';
|
|
5
|
+
export interface IDatePickerHeaderProps extends BaseProps, Pick<ICommonProps<IDatePickerHeaderStyles>, 'tweakStyles'> {
|
|
5
6
|
months?: string[];
|
|
6
|
-
tweakStyles?: DatePickerHeaderStyles;
|
|
7
7
|
}
|
|
8
8
|
export declare const DatePickerHeader: FC<IDatePickerHeaderProps>;
|
|
@@ -1,69 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
border: string;
|
|
9
|
-
outline: string;
|
|
10
|
-
cursor: string;
|
|
11
|
-
marginLeft: number;
|
|
12
|
-
};
|
|
13
|
-
select: {
|
|
14
|
-
height: number;
|
|
15
|
-
fontSize: number;
|
|
16
|
-
position: string;
|
|
17
|
-
};
|
|
18
|
-
selectValue: {
|
|
19
|
-
fontSize: number;
|
|
20
|
-
fontWeight: string;
|
|
21
|
-
color: string;
|
|
22
|
-
pointerEvents: string;
|
|
23
|
-
paddingLeft: number;
|
|
24
|
-
paddingRight: number;
|
|
25
|
-
};
|
|
26
|
-
selectControl: {
|
|
27
|
-
position: string;
|
|
28
|
-
top: number;
|
|
29
|
-
left: number;
|
|
30
|
-
width: string;
|
|
31
|
-
height: string;
|
|
32
|
-
};
|
|
33
|
-
header: {
|
|
34
|
-
margin: number;
|
|
35
|
-
display: string;
|
|
36
|
-
alignItems: string;
|
|
37
|
-
};
|
|
38
|
-
buttons: {
|
|
39
|
-
flexShrink: number;
|
|
40
|
-
marginLeft: string;
|
|
41
|
-
};
|
|
42
|
-
tweakSelect: {
|
|
43
|
-
list: {
|
|
44
|
-
cell: {
|
|
45
|
-
fontSize: number;
|
|
46
|
-
minHeight: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
arrow: {
|
|
50
|
-
right: number;
|
|
51
|
-
top: number;
|
|
52
|
-
width: number;
|
|
53
|
-
height: number;
|
|
54
|
-
};
|
|
55
|
-
tweakInput: {
|
|
56
|
-
inputWrapper: {
|
|
57
|
-
height: number;
|
|
58
|
-
border: string;
|
|
59
|
-
};
|
|
60
|
-
input: {
|
|
61
|
-
fontSize: number;
|
|
62
|
-
fontWeight: string;
|
|
63
|
-
paddingRight: number;
|
|
64
|
-
paddingLeft: number;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
export declare type DatePickerHeaderStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { ISelectStyles } from '../../../Select';
|
|
3
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"header" | "select" | "btn" | "selectValue" | "selectControl" | "buttons", unknown>;
|
|
4
|
+
export declare const selectStyles: ISelectStyles;
|
|
5
|
+
export declare type IDatePickerHeaderStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakSelect: ISelectStyles;
|
|
7
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './DatePickerHeader';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IDatePickerHeaderStyles } from './DatePickerHeader.styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './DatePicker';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type { IDatePickerStyles } from './DatePicker.styles';
|
|
4
|
+
export type { IDatePickerHeaderStyles } from './components';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface IDescriptionProps extends ICommonProps {
|
|
5
|
-
tweakStyles?: DescriptionStyles;
|
|
3
|
+
import { IDescriptionStyles } from './Description.styles';
|
|
4
|
+
export interface IDescriptionProps extends ICommonProps<IDescriptionStyles> {
|
|
6
5
|
text: string;
|
|
7
6
|
moreTitle?: string;
|
|
8
7
|
lessTitle?: string;
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
button: {
|
|
5
|
-
cursor: string;
|
|
6
|
-
display: string;
|
|
7
|
-
color: "#505f79";
|
|
8
|
-
marginTop: number;
|
|
9
|
-
textTransform: string;
|
|
10
|
-
borderBottom: (string | number)[];
|
|
11
|
-
'&:hover': {
|
|
12
|
-
color: "#222a37";
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
link: {
|
|
16
|
-
color: "#505f79";
|
|
17
|
-
textDecoration: string;
|
|
18
|
-
borderBottom: (string | number)[];
|
|
19
|
-
'&:hover': {
|
|
20
|
-
color: "#222a37";
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export declare type DescriptionStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"link" | "root" | "button", unknown>;
|
|
3
|
+
export declare type IDescriptionStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Description';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IDescriptionStyles } from './Description.styles';
|