@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,96 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
border: (string | number)[];
|
|
8
|
-
borderRadius: number;
|
|
9
|
-
boxSizing: string;
|
|
10
|
-
height: number;
|
|
11
|
-
minWidth: number;
|
|
12
|
-
};
|
|
13
|
-
item: {
|
|
14
|
-
display: string;
|
|
15
|
-
padding: number[];
|
|
16
|
-
cursor: string;
|
|
17
|
-
};
|
|
18
|
-
booleanItem: {
|
|
19
|
-
padding: number;
|
|
20
|
-
};
|
|
21
|
-
name: {
|
|
22
|
-
fontSize: number;
|
|
23
|
-
lineHeight: string;
|
|
24
|
-
whiteSpace: string;
|
|
25
|
-
};
|
|
26
|
-
boolean: {
|
|
27
|
-
padding: number[];
|
|
28
|
-
};
|
|
29
|
-
noValue: {};
|
|
30
|
-
openNoValue: {};
|
|
31
|
-
openWithValue: {};
|
|
32
|
-
disabled: {
|
|
33
|
-
'& > $item': {
|
|
34
|
-
cursor: string;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
withValue: {};
|
|
38
|
-
iconContainer: {
|
|
39
|
-
width: number;
|
|
40
|
-
height: number;
|
|
41
|
-
transition: string;
|
|
42
|
-
alignSelf: string;
|
|
43
|
-
marginLeft: number;
|
|
44
|
-
marginRight: number;
|
|
45
|
-
flexShrink: number;
|
|
46
|
-
};
|
|
47
|
-
open: {
|
|
48
|
-
transform: string;
|
|
49
|
-
};
|
|
50
|
-
dropdown: {
|
|
51
|
-
position: string;
|
|
52
|
-
zIndex: number;
|
|
53
|
-
marginTop: number;
|
|
54
|
-
border: (string | number)[];
|
|
55
|
-
};
|
|
56
|
-
left: {
|
|
57
|
-
left: number;
|
|
58
|
-
};
|
|
59
|
-
right: {
|
|
60
|
-
right: number;
|
|
61
|
-
};
|
|
62
|
-
value: {
|
|
63
|
-
alignSelf: string;
|
|
64
|
-
fontSize: number;
|
|
65
|
-
lineHeight: string;
|
|
66
|
-
margin: number[];
|
|
67
|
-
fontWeight: string;
|
|
68
|
-
display: string;
|
|
69
|
-
minWidth: number;
|
|
70
|
-
};
|
|
71
|
-
animationEnd: {
|
|
72
|
-
opacity: number;
|
|
73
|
-
transform: string;
|
|
74
|
-
transition: string;
|
|
75
|
-
transitionProperty: string;
|
|
76
|
-
};
|
|
77
|
-
animationStart: {
|
|
78
|
-
opacity: number;
|
|
79
|
-
transform: string;
|
|
80
|
-
transition: string;
|
|
81
|
-
transitionProperty: string;
|
|
82
|
-
};
|
|
83
|
-
'dropdown-enter': {
|
|
84
|
-
extend: string;
|
|
85
|
-
};
|
|
86
|
-
'dropdown-enter-active': {
|
|
87
|
-
extend: string;
|
|
88
|
-
};
|
|
89
|
-
'dropdown-exit-active': {
|
|
90
|
-
extend: string;
|
|
91
|
-
};
|
|
92
|
-
'dropdown-exit': {
|
|
93
|
-
extend: string;
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
export declare type FilterWrapperStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IFilterValueViewStyles } from '../FilterValueView';
|
|
3
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"boolean" | "right" | "left" | "item" | "value" | "name" | "root" | "open" | "disabled" | "booleanItem" | "noValue" | "openNoValue" | "openWithValue" | "withValue" | "iconContainer" | "dropdown" | "animationEnd" | "animationStart" | "dropdown-enter" | "dropdown-enter-active" | "dropdown-exit-active" | "dropdown-exit", unknown>;
|
|
4
|
+
export declare type IFilterWrapperStyles = ITweakStyles<typeof useStyles, {
|
|
5
|
+
tweakValueView: IFilterValueViewStyles;
|
|
6
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FilterWrapper';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFilterWrapperStyles } from './FilterWrapper.styles';
|
|
@@ -2,16 +2,14 @@ import { ReactNode } from 'react';
|
|
|
2
2
|
import { ICommonProps } from '../../../../types';
|
|
3
3
|
import { IFilterLocaleKey, IFiltersPaneSearchPayload, IPartialFilterLocale } from '../../types';
|
|
4
4
|
import { IFilterSelectProps } from '../FilterSelect';
|
|
5
|
-
import {
|
|
6
|
-
export interface IFiltersPaneSearchProps<Value> extends ICommonProps {
|
|
7
|
-
tweakStyles?: FiltersPaneSearchStyles;
|
|
5
|
+
import { IFiltersPaneSearchStyles } from './FiltersPaneSearch.styles';
|
|
6
|
+
export interface IFiltersPaneSearchProps<Value> extends ICommonProps<IFiltersPaneSearchStyles> {
|
|
8
7
|
field?: Value;
|
|
9
8
|
fields?: Value[];
|
|
10
9
|
value?: string;
|
|
11
10
|
onChange: (v: IFiltersPaneSearchPayload<Value>) => void;
|
|
12
11
|
localeKey?: IFilterLocaleKey;
|
|
13
12
|
locale?: IPartialFilterLocale;
|
|
14
|
-
testId?: string;
|
|
15
13
|
maxLength?: number;
|
|
16
14
|
getValueView?: (value: Value) => ReactNode;
|
|
17
15
|
getValueId?: (value: Value) => string;
|
package/dist/components/FiltersPane/components/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts
CHANGED
|
@@ -1,91 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
transitionProperty: string;
|
|
12
|
-
};
|
|
13
|
-
focused: {
|
|
14
|
-
backgroundColor: "#ffffff";
|
|
15
|
-
borderColor: "#d0d6e1";
|
|
16
|
-
};
|
|
17
|
-
disabled: {
|
|
18
|
-
'& $selectBlock': {
|
|
19
|
-
cursor: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
selectWrapper: {
|
|
23
|
-
position: string;
|
|
24
|
-
display: string;
|
|
25
|
-
flexShrink: number;
|
|
26
|
-
};
|
|
27
|
-
selectBlock: {
|
|
28
|
-
display: string;
|
|
29
|
-
alignItems: string;
|
|
30
|
-
gap: number;
|
|
31
|
-
cursor: string;
|
|
32
|
-
height: string;
|
|
33
|
-
};
|
|
34
|
-
selectLabel: {
|
|
35
|
-
flexShrink: number;
|
|
36
|
-
fontSize: number;
|
|
37
|
-
userSelect: string;
|
|
38
|
-
};
|
|
39
|
-
chevronIcon: {
|
|
40
|
-
flexShrink: number;
|
|
41
|
-
width: number;
|
|
42
|
-
height: number;
|
|
43
|
-
marginRight: number;
|
|
44
|
-
transition: string;
|
|
45
|
-
opacity: number;
|
|
46
|
-
};
|
|
47
|
-
open: {
|
|
48
|
-
transform: string;
|
|
49
|
-
};
|
|
50
|
-
dropdown: {
|
|
51
|
-
position: string;
|
|
52
|
-
top: number;
|
|
53
|
-
right: number;
|
|
54
|
-
zIndex: number;
|
|
55
|
-
minWidth: number;
|
|
56
|
-
marginTop: number;
|
|
57
|
-
borderRadius: 6;
|
|
58
|
-
backgroundColor: "#ffffff";
|
|
59
|
-
overflow: string;
|
|
60
|
-
};
|
|
61
|
-
dropdownInput: {
|
|
62
|
-
borderBottom: (string | number)[];
|
|
63
|
-
};
|
|
64
|
-
active: {
|
|
65
|
-
fontWeight: string;
|
|
66
|
-
};
|
|
67
|
-
tweakSearchInput: {
|
|
68
|
-
tweakInput: {
|
|
69
|
-
inputWrapper: {
|
|
70
|
-
backgroundColor: string;
|
|
71
|
-
border: string;
|
|
72
|
-
height: number;
|
|
73
|
-
fontSize: number;
|
|
74
|
-
minWidth: number;
|
|
75
|
-
};
|
|
76
|
-
focused: {
|
|
77
|
-
backgroundColor: string;
|
|
78
|
-
border: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
tweakSelect: {
|
|
83
|
-
root: {
|
|
84
|
-
borderRadius: number;
|
|
85
|
-
borderBottomLeftRadius: number;
|
|
86
|
-
borderBottomRightRadius: number;
|
|
87
|
-
boxShadow: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
export declare type FiltersPaneSearchStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { ISearchInputStyles } from '../../../SearchInput';
|
|
3
|
+
import { ISelectStyles } from '../../../Select';
|
|
4
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "open" | "active" | "disabled" | "dropdownInput" | "dropdown" | "focused" | "selectWrapper" | "selectBlock" | "selectLabel" | "chevronIcon", unknown>;
|
|
5
|
+
export declare const searchInputStyles: ISearchInputStyles;
|
|
6
|
+
export declare const selectStyles: ISelectStyles;
|
|
7
|
+
export declare type IFiltersPaneSearchStyles = ITweakStyles<typeof useStyles, {
|
|
8
|
+
tweakSearchInput: ISearchInputStyles;
|
|
9
|
+
tweakSelect: ISelectStyles;
|
|
10
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './FiltersPaneSearch';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFiltersPaneSearchStyles } from './FiltersPaneSearch.styles';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type IFilterLocale, type IFilterLocaleKey, type IPartialFilterLocale, ISelectLocale, ISelectLocaleKey } from './types';
|
|
2
2
|
export declare const getLocale: (key?: IFilterLocaleKey, custom?: IPartialFilterLocale, custom2?: IPartialFilterLocale) => IFilterLocale;
|
|
3
3
|
export declare const getSelectLocale: (key?: ISelectLocaleKey, custom?: Partial<ISelectLocale>, custom2?: Partial<ISelectLocale>) => ISelectLocale;
|
|
4
|
-
export declare const sortValues: (arr: Array<number | undefined>) =>
|
|
4
|
+
export declare const sortValues: (arr: Array<number | undefined>) => Array<number | undefined>;
|
|
5
5
|
export declare const defaultConvertFunction: (val: unknown) => string;
|
|
@@ -104,4 +104,4 @@ export interface ISelectLocale {
|
|
|
104
104
|
nothingFound: string;
|
|
105
105
|
}
|
|
106
106
|
export declare type ISelectLocaleKey = keyof typeof SelectLocales;
|
|
107
|
-
export declare type IFilterWithDateDatePickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'locale' | 'months' | 'selectedDate'>;
|
|
107
|
+
export declare type IFilterWithDateDatePickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'locale' | 'months' | 'selectedDate' | 'tweakStyles'>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export interface IFlagProps extends ICommonProps {
|
|
5
|
-
tweakStyles?: FlagStyles;
|
|
3
|
+
import { IFlagStyles } from './Flag.styles';
|
|
4
|
+
export interface IFlagProps extends Pick<ICommonProps<IFlagStyles>, 'tweakStyles'> {
|
|
6
5
|
countryCode?: string;
|
|
7
6
|
}
|
|
8
7
|
export declare const Flag: FC<IFlagProps>;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
border: (string | number)[];
|
|
5
|
-
borderRadius: number;
|
|
6
|
-
};
|
|
7
|
-
noFlag: {
|
|
8
|
-
width: number;
|
|
9
|
-
color: "#505f79";
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare type FlagStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "noFlag", unknown>;
|
|
3
|
+
export declare type IFlagStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
declare module 'country-flag-icons/react/3x2';
|
|
1
|
+
declare module 'country-flag-icons/react/3x2';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './Flag';
|
|
2
|
-
export type {
|
|
2
|
+
export type { IFlagStyles } from './Flag.styles';
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ReactNode, RefObject } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export interface IFlexibleTableProps<Values extends Record<string, any>> extends ICommonProps {
|
|
6
|
-
tweakStyles?: FlexibleTableStyles;
|
|
3
|
+
import { IFlexibleTableConfigType, IInfinityScrollConfig } from './types';
|
|
4
|
+
import { IFlexibleTableStyles } from './FlexibleTable.styles';
|
|
5
|
+
export interface IFlexibleTableProps<Values extends Record<string, any>> extends ICommonProps<IFlexibleTableStyles> {
|
|
7
6
|
content: Values[];
|
|
8
7
|
headerContent?: Partial<Record<keyof Values, any>>;
|
|
9
8
|
enabledColumns?: Array<keyof Values>;
|
|
10
9
|
activeRows?: number[];
|
|
11
|
-
config?:
|
|
10
|
+
config?: IFlexibleTableConfigType<Values>;
|
|
12
11
|
isHorizontallyScrollable?: boolean;
|
|
13
12
|
isFirstColumnSticky?: boolean;
|
|
14
13
|
infinityScrollConfig?: IInfinityScrollConfig;
|
|
@@ -20,6 +19,5 @@ export interface IFlexibleTableProps<Values extends Record<string, any>> extends
|
|
|
20
19
|
refForScroll?: RefObject<HTMLDivElement>;
|
|
21
20
|
nothingFoundContent?: ReactNode;
|
|
22
21
|
expandableRowComponent?: (item: Values, isOpen: boolean, close: () => void) => ReactNode;
|
|
23
|
-
testId?: string;
|
|
24
22
|
}
|
|
25
23
|
export declare function FlexibleTable<Values extends Record<string, any>>({ data, tweakStyles, content, headerContent, config, activeRows, enabledColumns, isHorizontallyScrollable, isFirstColumnSticky, infinityScrollConfig, uniqueField, onHeadClick, onRowHover, onRowClick, refForScroll, rowAttributes, nothingFoundContent, testId, expandableRowComponent, }: IFlexibleTableProps<Values>): JSX.Element;
|
|
@@ -1,101 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
row: {
|
|
10
|
-
position: string;
|
|
11
|
-
};
|
|
12
|
-
scroll: {
|
|
13
|
-
overflow: string;
|
|
14
|
-
maxHeight: string;
|
|
15
|
-
};
|
|
16
|
-
horizontallyScrolled: {
|
|
17
|
-
'& $cellSticky': {
|
|
18
|
-
boxShadow: string;
|
|
19
|
-
};
|
|
20
|
-
'& $headerSticky::before': {
|
|
21
|
-
boxShadow: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
loader: {
|
|
25
|
-
position: string;
|
|
26
|
-
left: number;
|
|
27
|
-
maxWidth: string;
|
|
28
|
-
height: number;
|
|
29
|
-
display: string;
|
|
30
|
-
justifyContent: string;
|
|
31
|
-
alignItems: string;
|
|
32
|
-
};
|
|
33
|
-
headerRow: {
|
|
34
|
-
verticalAlign: string;
|
|
35
|
-
};
|
|
36
|
-
activeRow: {};
|
|
37
|
-
cell: {
|
|
38
|
-
position: string;
|
|
39
|
-
boxSizing: string;
|
|
40
|
-
padding: number[];
|
|
41
|
-
fontSize: number;
|
|
42
|
-
lineHeight: number;
|
|
43
|
-
zIndex: number;
|
|
44
|
-
verticalAlign: string;
|
|
45
|
-
};
|
|
46
|
-
cellSticky: {
|
|
47
|
-
zIndex: number;
|
|
48
|
-
paddingLeft: number;
|
|
49
|
-
paddingRight: number;
|
|
50
|
-
transition: string[];
|
|
51
|
-
};
|
|
52
|
-
cellSecond: {
|
|
53
|
-
paddingLeft: number;
|
|
54
|
-
};
|
|
55
|
-
header: {
|
|
56
|
-
position: string;
|
|
57
|
-
boxSizing: string;
|
|
58
|
-
top: number;
|
|
59
|
-
zIndex: number;
|
|
60
|
-
fontSize: number;
|
|
61
|
-
fontWeight: string;
|
|
62
|
-
padding: number[];
|
|
63
|
-
};
|
|
64
|
-
headerSticky: {
|
|
65
|
-
zIndex: number;
|
|
66
|
-
left: number;
|
|
67
|
-
paddingLeft: number;
|
|
68
|
-
paddingRight: number;
|
|
69
|
-
'&::before': {
|
|
70
|
-
content: string;
|
|
71
|
-
display: string;
|
|
72
|
-
width: string;
|
|
73
|
-
height: string;
|
|
74
|
-
position: string;
|
|
75
|
-
left: number;
|
|
76
|
-
top: number;
|
|
77
|
-
background: string;
|
|
78
|
-
pointerEvents: string;
|
|
79
|
-
zIndex: number;
|
|
80
|
-
transition: string[];
|
|
81
|
-
};
|
|
82
|
-
'&::after': {
|
|
83
|
-
content: string;
|
|
84
|
-
display: string;
|
|
85
|
-
width: number;
|
|
86
|
-
height: string;
|
|
87
|
-
position: string;
|
|
88
|
-
left: string;
|
|
89
|
-
top: number;
|
|
90
|
-
background: string;
|
|
91
|
-
zIndex: number;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
headerSecond: {
|
|
95
|
-
paddingLeft: number;
|
|
96
|
-
};
|
|
97
|
-
editableRow: {
|
|
98
|
-
cursor: string;
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
|
-
export declare type FlexibleTableStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IFlexibleTableRowStyles } from './components';
|
|
3
|
+
export declare const STICKY_SHADOW_PADDING = 12;
|
|
4
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "scroll" | "header" | "loader" | "horizontallyScrolled" | "headerRow" | "headerSticky" | "headerSecond", unknown>;
|
|
5
|
+
export declare type IFlexibleTableStyles = ITweakStyles<typeof useStyles, {
|
|
6
|
+
tweakTableRow: IFlexibleTableRowStyles;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { ICommonProps } from '../../../../types';
|
|
3
|
+
import type { IFlexibleTableConfigType } from '../../types';
|
|
4
|
+
import { IFlexibleTableCellStyles } from './FlexibleTableCell.styles';
|
|
5
|
+
export interface IFlexibleTableCellProps<Values extends Record<string, any>> extends Pick<ICommonProps<IFlexibleTableCellStyles>, 'tweakStyles'> {
|
|
6
|
+
item: Values;
|
|
7
|
+
columnName: keyof Values;
|
|
8
|
+
config?: IFlexibleTableConfigType<Values>;
|
|
9
|
+
isFocusedRow?: boolean;
|
|
10
|
+
isSecond?: boolean;
|
|
11
|
+
isSticky?: boolean;
|
|
12
|
+
isNestedComponentExpanded: boolean;
|
|
13
|
+
isRowNestedComponentExpanded: boolean;
|
|
14
|
+
onSetNestedComponent(component?: ReactNode): void;
|
|
15
|
+
}
|
|
16
|
+
declare function FlexibleTableCell<Values extends Record<string, any>>({ item, columnName, config, isFocusedRow, isSecond, isSticky, isNestedComponentExpanded, isRowNestedComponentExpanded, tweakStyles, onSetNestedComponent, }: IFlexibleTableCellProps<Values>): JSX.Element;
|
|
17
|
+
export default FlexibleTableCell;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../../../types';
|
|
3
|
+
import { IFlexibleTableConfigType } from '../../types';
|
|
4
|
+
import { IFlexibleTableRowStyles } from './FlexibleTableRow.styles';
|
|
5
|
+
export interface IFlexibleTableRowProps<Values extends Record<string, any>> extends Pick<ICommonProps<IFlexibleTableRowStyles>, 'tweakStyles'> {
|
|
6
|
+
item: Values;
|
|
7
|
+
uniqueField?: keyof Values;
|
|
8
|
+
isFirstColumnSticky?: boolean;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
config?: IFlexibleTableConfigType<Values>;
|
|
11
|
+
enabledColumns?: Array<keyof Values>;
|
|
12
|
+
rowAttributes?: Array<keyof Values>;
|
|
13
|
+
expandableRowComponent?(item: Values, isOpen: boolean, close: () => void): ReactNode;
|
|
14
|
+
onRowHover?(id?: string): void;
|
|
15
|
+
onRowClick?(id: string): void;
|
|
16
|
+
}
|
|
17
|
+
declare function FlexibleTableRowInner<Values extends Record<string, any>>({ item, uniqueField, isFirstColumnSticky, isActive, config, enabledColumns, rowAttributes, tweakStyles, expandableRowComponent, onRowHover, onRowClick, }: IFlexibleTableRowProps<Values>): JSX.Element;
|
|
18
|
+
export declare const FlexibleTableRow: typeof FlexibleTableRowInner;
|
|
19
|
+
export {};
|
package/dist/components/FlexibleTable/components/FlexibleTableRow/FlexibleTableRow.styles.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ITweakStyles } from '../../../../theme';
|
|
2
|
+
import { IFlexibleTableCellStyles } from '../FlexibleTableCell';
|
|
3
|
+
export declare const useStyles: import("../../../../theme").IUseStyles<"root" | "active" | "editable", unknown>;
|
|
4
|
+
export declare type IFlexibleTableRowStyles = ITweakStyles<typeof useStyles, {
|
|
5
|
+
tweakTableCell: IFlexibleTableCellStyles;
|
|
6
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './FlexibleTableRow';
|
|
2
|
+
export * from './FlexibleTableCell';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export * from './FlexibleTable';
|
|
2
2
|
export * from './types';
|
|
3
|
-
export type {
|
|
3
|
+
export type { IFlexibleTableStyles } from './FlexibleTable.styles';
|
|
4
|
+
export type { IFlexibleTableCellStyles, IFlexibleTableRowStyles } from './components';
|
|
@@ -13,7 +13,7 @@ export declare type IValueComponent<Values, Value> = (props: {
|
|
|
13
13
|
isRowNestedComponentExpanded: boolean;
|
|
14
14
|
onSetNestedComponent: (component?: ReactNode) => void;
|
|
15
15
|
}) => JSX.Element | ReactNode;
|
|
16
|
-
export declare type
|
|
16
|
+
export declare type IFlexibleTableConfigType<Values> = {
|
|
17
17
|
[Key in keyof Values]?: {
|
|
18
18
|
title?: ReactNode;
|
|
19
19
|
titleComponent?: ITitleComponent<unknown>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { ICommonProps } from '../../types';
|
|
3
3
|
import { IIconType } from './types';
|
|
4
|
-
import {
|
|
5
|
-
export interface IIconProps extends ICommonProps {
|
|
6
|
-
tweakStyles?: IconStyles;
|
|
4
|
+
import { IIconStyles } from './Icon.styles';
|
|
5
|
+
export interface IIconProps extends ICommonProps<IIconStyles> {
|
|
7
6
|
type: IIconType;
|
|
8
7
|
}
|
|
9
8
|
export declare const Icon: FC<IIconProps>;
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
display: string;
|
|
5
|
-
alignItems: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare type IconStyles = ComponentStyles<typeof styles>;
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root", unknown>;
|
|
3
|
+
export declare type IIconStyles = ITweakStyles<typeof useStyles>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
declare module '*.svg?raw';
|
|
1
|
+
declare module '*.svg?raw';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const iconsList: Record<"
|
|
1
|
+
export declare const iconsList: Record<"document" | "vendor-service" | "aircraft-takeoff" | "archive" | "arrow" | "arrow-right" | "baggage" | "balloon" | "bluetooth" | "bonus" | "book" | "box" | "business" | "calendar" | "cancel" | "check" | "check-big" | "check-all" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chevron-down-small" | "chevron-left-small" | "chevron-right-small" | "chevron-up-small" | "circle-check" | "close" | "close-large" | "close-window" | "copy" | "copy-outline" | "crane" | "danger" | "direction" | "download" | "email" | "eye" | "eye-closed" | "female" | "filter" | "food" | "information" | "insurance" | "link" | "list" | "lock" | "lock-open" | "male" | "menu" | "minus" | "burger-menu" | "pencil" | "pin" | "plane" | "plane-circle" | "plus" | "print" | "question" | "refresh" | "repeat" | "rocket" | "round-trip" | "vendor-logo" | "scan" | "search" | "send-email" | "settings" | "sign-out" | "size" | "sort" | "sort-asc" | "sort-desc" | "sort-list-asc" | "sort-list-desc" | "star" | "status-error" | "status-info" | "status-not-ok" | "status-ok" | "status-warning" | "three-circles" | "ticket-revert" | "ticket" | "time" | "trash-can" | "upgrade" | "user" | "user-group" | "voucher", import("./types").ISvgIcon>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
2
3
|
import { INumberInputProps } from '../NumberInput';
|
|
3
|
-
import {
|
|
4
|
-
export interface IIncrementInputProps extends Omit<INumberInputProps, 'canBeFloat' | 'precision'> {
|
|
5
|
-
tweakStyles?: IncrementInputStyles;
|
|
4
|
+
import { IIncrementInputStyles } from './IncrementInput.styles';
|
|
5
|
+
export interface IIncrementInputProps extends Omit<INumberInputProps, 'canBeFloat' | 'precision' | 'tweakStyles'>, ICommonProps<IIncrementInputStyles> {
|
|
6
6
|
step?: number;
|
|
7
7
|
}
|
|
8
8
|
export declare const IncrementInput: FC<IIncrementInputProps>;
|
|
@@ -1,63 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ITweakStyles } from '../../theme';
|
|
2
|
+
import { IInputStyles } from '../Input';
|
|
2
3
|
export declare const BUTTONS_WIDTH = 36;
|
|
3
4
|
export declare const BUTTONS_GAP = 2;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
buttons: {
|
|
11
|
-
display: string;
|
|
12
|
-
flexDirection: string;
|
|
13
|
-
width: number;
|
|
14
|
-
position: string;
|
|
15
|
-
right: number;
|
|
16
|
-
top: number;
|
|
17
|
-
bottom: number;
|
|
18
|
-
zIndex: number;
|
|
19
|
-
};
|
|
20
|
-
button: {
|
|
21
|
-
width: string;
|
|
22
|
-
height: number;
|
|
23
|
-
border: string;
|
|
24
|
-
outline: string;
|
|
25
|
-
backgroundColor: "#f6f8fc";
|
|
26
|
-
transition: string;
|
|
27
|
-
color: "#505f79";
|
|
28
|
-
cursor: string;
|
|
29
|
-
display: string;
|
|
30
|
-
alignItems: string;
|
|
31
|
-
justifyContent: string;
|
|
32
|
-
padding: number[];
|
|
33
|
-
'&:hover, &:focus': {
|
|
34
|
-
backgroundColor: "#dde3ed";
|
|
35
|
-
};
|
|
36
|
-
'&:active': {
|
|
37
|
-
backgroundColor: "#95a0b3";
|
|
38
|
-
};
|
|
39
|
-
'&:first-child': {
|
|
40
|
-
marginBottom: number;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
disabledButton: {
|
|
44
|
-
backgroundColor: "#ffffff";
|
|
45
|
-
color: "#95a0b3";
|
|
46
|
-
cursor: string;
|
|
47
|
-
'&:hover': {
|
|
48
|
-
backgroundColor: "#ffffff";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
errorButton: {};
|
|
52
|
-
tweakInput: {
|
|
53
|
-
input: {
|
|
54
|
-
'&:not($withControls)': {
|
|
55
|
-
paddingRight: number;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
controls: {
|
|
59
|
-
paddingRight: number;
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
export declare type IncrementInputStyles = ComponentStyles<typeof styles>;
|
|
5
|
+
export declare const useStyles: import("../../theme").IUseStyles<"root" | "button" | "buttons" | "disabledButton" | "errorButton", unknown>;
|
|
6
|
+
export declare const inputStyles: IInputStyles;
|
|
7
|
+
export declare type IIncrementInputStyles = ITweakStyles<typeof useStyles, {
|
|
8
|
+
tweakInput: IInputStyles;
|
|
9
|
+
}>;
|