@true-engineering/true-react-common-ui-kit 1.0.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 -0
- package/README.md +13 -0
- package/dist/components/AccountInfo/AccountInfo.d.ts +11 -0
- package/dist/components/AccountInfo/AccountInfo.styles.d.ts +64 -0
- package/dist/components/AccountInfo/index.d.ts +2 -0
- package/dist/components/AddButton/AddButton.d.ts +12 -0
- package/dist/components/AddButton/AddButton.styles.d.ts +28 -0
- package/dist/components/AddButton/index.d.ts +2 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/Button/Button.styles.d.ts +150 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +21 -0
- package/dist/components/Checkbox/Checkbox.styles.d.ts +47 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/CloseButton/CloseButton.d.ts +10 -0
- package/dist/components/CloseButton/CloseButton.styles.d.ts +27 -0
- package/dist/components/CloseButton/index.d.ts +2 -0
- package/dist/components/Colors/Colors.d.ts +2 -0
- package/dist/components/Colors/Colors.styles.d.ts +32 -0
- package/dist/components/Colors/index.d.ts +2 -0
- package/dist/components/CssBaseline/CssBaseline.d.ts +7 -0
- package/dist/components/CssBaseline/CssBaseline.styles.d.ts +11 -0
- package/dist/components/CssBaseline/index.d.ts +2 -0
- package/dist/components/DateInput/DateInput.d.ts +14 -0
- package/dist/components/DateInput/DateInput.styles.d.ts +11 -0
- package/dist/components/DateInput/index.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts +34 -0
- package/dist/components/DatePicker/DatePicker.styles.d.ts +46 -0
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.d.ts +14 -0
- package/dist/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.d.ts +69 -0
- package/dist/components/DatePicker/DatePickerHeader/index.d.ts +1 -0
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.d.ts +11 -0
- package/dist/components/DatePicker/DatePickerInput/DatePickerInput.styles.d.ts +20 -0
- package/dist/components/DatePicker/DatePickerInput/index.d.ts +1 -0
- package/dist/components/DatePicker/index.d.ts +4 -0
- package/dist/components/Description/Description.d.ts +12 -0
- package/dist/components/Description/Description.styles.d.ts +24 -0
- package/dist/components/Description/index.d.ts +2 -0
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.d.ts +26 -0
- package/dist/components/FiltersPane/FilterInterval/FilterInterval.styles.d.ts +52 -0
- package/dist/components/FiltersPane/FilterInterval/index.d.ts +1 -0
- package/dist/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.d.ts +5 -0
- package/dist/components/FiltersPane/FilterMultiSelect/index.d.ts +1 -0
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.d.ts +25 -0
- package/dist/components/FiltersPane/FilterSelect/FilterSelect.styles.d.ts +124 -0
- package/dist/components/FiltersPane/FilterSelect/index.d.ts +1 -0
- package/dist/components/FiltersPane/FilterSelect/locales.d.ts +11 -0
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.d.ts +3 -0
- package/dist/components/FiltersPane/FilterValueView/FilterValueView.styles.d.ts +12 -0
- package/dist/components/FiltersPane/FilterValueView/index.d.ts +1 -0
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.d.ts +23 -0
- package/dist/components/FiltersPane/FilterWithDates/FilterWithDates.styles.d.ts +47 -0
- package/dist/components/FiltersPane/FilterWithDates/index.d.ts +1 -0
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.d.ts +16 -0
- package/dist/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.d.ts +12 -0
- package/dist/components/FiltersPane/FilterWithPeriod/index.d.ts +1 -0
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.d.ts +27 -0
- package/dist/components/FiltersPane/FilterWrapper/FilterWrapper.styles.d.ts +96 -0
- package/dist/components/FiltersPane/FilterWrapper/index.d.ts +1 -0
- package/dist/components/FiltersPane/FiltersPane.d.ts +22 -0
- package/dist/components/FiltersPane/FiltersPane.styles.d.ts +57 -0
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.d.ts +26 -0
- package/dist/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.d.ts +91 -0
- package/dist/components/FiltersPane/FiltersPaneSearch/index.d.ts +1 -0
- package/dist/components/FiltersPane/index.d.ts +16 -0
- package/dist/components/FiltersPane/locales.d.ts +28 -0
- package/dist/components/FiltersPane/types.d.ts +77 -0
- package/dist/components/Flag/Flag.d.ts +8 -0
- package/dist/components/Flag/Flag.styles.d.ts +12 -0
- package/dist/components/Flag/augment.d.ts +1 -0
- package/dist/components/Flag/index.d.ts +2 -0
- package/dist/components/FlexibleTable/FlexibleTable.d.ts +25 -0
- package/dist/components/FlexibleTable/FlexibleTable.styles.d.ts +101 -0
- package/dist/components/FlexibleTable/TableRow.d.ts +28 -0
- package/dist/components/FlexibleTable/TableValue.d.ts +21 -0
- package/dist/components/FlexibleTable/index.d.ts +3 -0
- package/dist/components/FlexibleTable/types.d.ts +44 -0
- package/dist/components/Icon/ComplexIconBoilerplate.d.ts +7 -0
- package/dist/components/Icon/Icon.d.ts +11 -0
- package/dist/components/Icon/Icon.styles.d.ts +8 -0
- package/dist/components/Icon/IconBoilerplate.d.ts +6 -0
- package/dist/components/Icon/complexIcons/augment.d.ts +1 -0
- package/dist/components/Icon/complexIcons/icons.d.ts +4 -0
- package/dist/components/Icon/complexIcons/index.d.ts +1 -0
- package/dist/components/Icon/icons/icons.d.ts +9 -0
- package/dist/components/Icon/icons/index.d.ts +1 -0
- package/dist/components/Icon/index.d.ts +4 -0
- package/dist/components/IncrementInput/ChangeButton.d.ts +11 -0
- package/dist/components/IncrementInput/IncrementInput.d.ts +8 -0
- package/dist/components/IncrementInput/IncrementInput.styles.d.ts +63 -0
- package/dist/components/IncrementInput/index.d.ts +2 -0
- package/dist/components/Input/Input.d.ts +45 -0
- package/dist/components/Input/Input.styles.d.ts +247 -0
- package/dist/components/Input/index.d.ts +2 -0
- package/dist/components/List/List.d.ts +21 -0
- package/dist/components/List/List.styles.d.ts +39 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/Modal/Modal.d.ts +26 -0
- package/dist/components/Modal/Modal.styles.d.ts +239 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/MoreMenu/MoreMenu.d.ts +14 -0
- package/dist/components/MoreMenu/MoreMenu.styles.d.ts +53 -0
- package/dist/components/MoreMenu/index.d.ts +2 -0
- package/dist/components/MultiSelect/MultiSelect.d.ts +19 -0
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +44 -0
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.d.ts +11 -0
- package/dist/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.d.ts +62 -0
- package/dist/components/MultiSelect/MultiSelectInput/index.d.ts +1 -0
- package/dist/components/MultiSelect/index.d.ts +3 -0
- package/dist/components/MultiSelectList/MultiSelectList.d.ts +28 -0
- package/dist/components/MultiSelectList/MultiSelectList.styles.d.ts +105 -0
- package/dist/components/MultiSelectList/index.d.ts +2 -0
- package/dist/components/MultiSelectList/locales.d.ts +11 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.styles.d.ts +37 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/NumberInput/NumberInput.d.ts +13 -0
- package/dist/components/NumberInput/helpers.d.ts +2 -0
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/PhoneInput/PhoneInput.d.ts +13 -0
- package/dist/components/PhoneInput/PhoneInput.styles.d.ts +66 -0
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.d.ts +15 -0
- package/dist/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.d.ts +83 -0
- package/dist/components/PhoneInput/PhoneInputCountryList/index.d.ts +2 -0
- package/dist/components/PhoneInput/index.d.ts +5 -0
- package/dist/components/PhoneInput/phone-info.d.ts +2 -0
- package/dist/components/PhoneInput/types.d.ts +15 -0
- package/dist/components/RadioButton/RadioButton.d.ts +13 -0
- package/dist/components/RadioButton/RadioButton.styles.d.ts +30 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.d.ts +382 -0
- package/dist/components/ScrollIntoViewIfNeeded/index.d.ts +1 -0
- package/dist/components/SearchInput/SearchInput.d.ts +7 -0
- package/dist/components/SearchInput/SearchInput.styles.d.ts +39 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +27 -0
- package/dist/components/Select/Select.styles.d.ts +61 -0
- package/dist/components/Select/SelectList/SelectList.d.ts +21 -0
- package/dist/components/Select/SelectList/SelectList.styles.d.ts +46 -0
- package/dist/components/Select/SelectList/index.d.ts +1 -0
- package/dist/components/Select/helpers.d.ts +3 -0
- package/dist/components/Select/index.d.ts +3 -0
- package/dist/components/SmartInput/SmartInput.d.ts +22 -0
- package/dist/components/SmartInput/helpers.d.ts +10 -0
- package/dist/components/SmartInput/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +20 -0
- package/dist/components/Switch/Switch.styles.d.ts +62 -0
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/TextArea/TextArea.d.ts +29 -0
- package/dist/components/TextArea/TextArea.styles.d.ts +128 -0
- package/dist/components/TextArea/index.d.ts +2 -0
- package/dist/components/TextWithInfo/TextWithInfo.d.ts +15 -0
- package/dist/components/TextWithInfo/TextWithInfo.styles.d.ts +48 -0
- package/dist/components/TextWithInfo/index.d.ts +2 -0
- package/dist/components/TextWithTooltip/TextWithTooltip.d.ts +20 -0
- package/dist/components/TextWithTooltip/TextWithTooltip.styles.d.ts +14 -0
- package/dist/components/TextWithTooltip/index.d.ts +2 -0
- package/dist/components/ThemedPreloader/ThemedPreloader.d.ts +12 -0
- package/dist/components/ThemedPreloader/ThemedPreloader.styles.d.ts +14 -0
- package/dist/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.d.ts +2 -0
- package/dist/components/ThemedPreloader/components/DefaultPreloader/index.d.ts +1 -0
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.d.ts +7 -0
- package/dist/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.d.ts +43 -0
- package/dist/components/ThemedPreloader/components/DotsPreloader/index.d.ts +2 -0
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.d.ts +9 -0
- package/dist/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.d.ts +9 -0
- package/dist/components/ThemedPreloader/components/SvgPreloader/index.d.ts +2 -0
- package/dist/components/ThemedPreloader/components/index.d.ts +2 -0
- package/dist/components/ThemedPreloader/index.d.ts +2 -0
- package/dist/components/Toaster/Toaster.d.ts +17 -0
- package/dist/components/Toaster/Toaster.styles.d.ts +45 -0
- package/dist/components/Toaster/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.d.ts +10 -0
- package/dist/components/Tooltip/Tooltip.styles.d.ts +35 -0
- package/dist/components/Tooltip/index.d.ts +3 -0
- package/dist/components/Tooltip/types.d.ts +1 -0
- package/dist/components/index.d.ts +36 -0
- package/dist/helpers/colors.d.ts +2 -0
- package/dist/helpers/data-attributes.d.ts +5 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/phone.d.ts +11 -0
- package/dist/helpers/popper-helpers.d.ts +2 -0
- package/dist/helpers/utils.d.ts +17 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/use-did-mount-effect.d.ts +2 -0
- package/dist/hooks/use-dropdown.d.ts +11 -0
- package/dist/hooks/use-is-mounted.d.ts +1 -0
- package/dist/hooks/use-on-click-outside.d.ts +5 -0
- package/dist/hooks/use-theme.d.ts +9 -0
- package/dist/hooks/use-tweak-styles.d.ts +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/style.css +745 -0
- package/dist/theme.d.ts +67 -0
- package/dist/true-react-common-ui-kit.js +26961 -0
- package/dist/true-react-common-ui-kit.js.map +1 -0
- package/dist/true-react-common-ui-kit.umd.cjs +26951 -0
- package/dist/true-react-common-ui-kit.umd.cjs.map +1 -0
- package/dist/types.d.ts +35 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +90 -0
- package/src/components/AccountInfo/AccountInfo.stories.tsx +35 -0
- package/src/components/AccountInfo/AccountInfo.styles.ts +55 -0
- package/src/components/AccountInfo/AccountInfo.tsx +106 -0
- package/src/components/AccountInfo/index.ts +2 -0
- package/src/components/AddButton/AddButton.stories.tsx +21 -0
- package/src/components/AddButton/AddButton.styles.ts +34 -0
- package/src/components/AddButton/AddButton.tsx +49 -0
- package/src/components/AddButton/index.ts +2 -0
- package/src/components/Button/Button.stories.tsx +61 -0
- package/src/components/Button/Button.styles.ts +196 -0
- package/src/components/Button/Button.tsx +195 -0
- package/src/components/Button/index.ts +2 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +35 -0
- package/src/components/Checkbox/Checkbox.styles.ts +59 -0
- package/src/components/Checkbox/Checkbox.tsx +93 -0
- package/src/components/Checkbox/index.ts +2 -0
- package/src/components/CloseButton/CloseButton.styles.ts +34 -0
- package/src/components/CloseButton/CloseButton.tsx +37 -0
- package/src/components/CloseButton/index.ts +2 -0
- package/src/components/Colors/Colors.stories.tsx +7 -0
- package/src/components/Colors/Colors.styles.ts +38 -0
- package/src/components/Colors/Colors.tsx +34 -0
- package/src/components/Colors/index.ts +2 -0
- package/src/components/CssBaseline/CssBaseline.styles.ts +15 -0
- package/src/components/CssBaseline/CssBaseline.tsx +17 -0
- package/src/components/CssBaseline/index.ts +2 -0
- package/src/components/DateInput/DateInput.stories.tsx +63 -0
- package/src/components/DateInput/DateInput.styles.ts +14 -0
- package/src/components/DateInput/DateInput.tsx +60 -0
- package/src/components/DateInput/index.ts +2 -0
- package/src/components/DatePicker/DatePicker.stories.tsx +96 -0
- package/src/components/DatePicker/DatePicker.styles.ts +54 -0
- package/src/components/DatePicker/DatePicker.tsx +358 -0
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.styles.ts +84 -0
- package/src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx +94 -0
- package/src/components/DatePicker/DatePickerHeader/index.ts +1 -0
- package/src/components/DatePicker/DatePickerInput/DatePickerInput.styles.ts +25 -0
- package/src/components/DatePicker/DatePickerInput/DatePickerInput.tsx +31 -0
- package/src/components/DatePicker/DatePickerInput/index.ts +1 -0
- package/src/components/DatePicker/index.ts +4 -0
- package/src/components/Description/Description.stories.tsx +29 -0
- package/src/components/Description/Description.styles.ts +31 -0
- package/src/components/Description/Description.tsx +69 -0
- package/src/components/Description/index.ts +2 -0
- package/src/components/FiltersPane/FilterInterval/FilterInterval.styles.ts +64 -0
- package/src/components/FiltersPane/FilterInterval/FilterInterval.tsx +162 -0
- package/src/components/FiltersPane/FilterInterval/index.ts +1 -0
- package/src/components/FiltersPane/FilterMultiSelect/FilterMultiSelect.tsx +14 -0
- package/src/components/FiltersPane/FilterMultiSelect/index.ts +1 -0
- package/src/components/FiltersPane/FilterSelect/FilterSelect.styles.ts +144 -0
- package/src/components/FiltersPane/FilterSelect/FilterSelect.tsx +397 -0
- package/src/components/FiltersPane/FilterSelect/index.ts +1 -0
- package/src/components/FiltersPane/FilterSelect/locales.ts +37 -0
- package/src/components/FiltersPane/FilterValueView/FilterValueView.styles.tsx +15 -0
- package/src/components/FiltersPane/FilterValueView/FilterValueView.tsx +186 -0
- package/src/components/FiltersPane/FilterValueView/index.tsx +1 -0
- package/src/components/FiltersPane/FilterWithDates/FilterWithDates.styles.ts +60 -0
- package/src/components/FiltersPane/FilterWithDates/FilterWithDates.tsx +222 -0
- package/src/components/FiltersPane/FilterWithDates/index.ts +1 -0
- package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.styles.ts +17 -0
- package/src/components/FiltersPane/FilterWithPeriod/FilterWithPeriod.tsx +231 -0
- package/src/components/FiltersPane/FilterWithPeriod/index.ts +1 -0
- package/src/components/FiltersPane/FilterWrapper/FilterWrapper.styles.ts +110 -0
- package/src/components/FiltersPane/FilterWrapper/FilterWrapper.tsx +360 -0
- package/src/components/FiltersPane/FilterWrapper/index.ts +1 -0
- package/src/components/FiltersPane/FiltersPane.stories.tsx +307 -0
- package/src/components/FiltersPane/FiltersPane.styles.ts +71 -0
- package/src/components/FiltersPane/FiltersPane.tsx +193 -0
- package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.styles.ts +109 -0
- package/src/components/FiltersPane/FiltersPaneSearch/FiltersPaneSearch.tsx +175 -0
- package/src/components/FiltersPane/FiltersPaneSearch/index.ts +1 -0
- package/src/components/FiltersPane/index.ts +20 -0
- package/src/components/FiltersPane/locales.ts +107 -0
- package/src/components/FiltersPane/types.ts +126 -0
- package/src/components/Flag/Flag.stories.tsx +29 -0
- package/src/components/Flag/Flag.styles.ts +18 -0
- package/src/components/Flag/Flag.tsx +28 -0
- package/src/components/Flag/augment.d.ts +1 -0
- package/src/components/Flag/index.ts +2 -0
- package/src/components/FlexibleTable/FlexibleTable.stories.tsx +80 -0
- package/src/components/FlexibleTable/FlexibleTable.styles.ts +131 -0
- package/src/components/FlexibleTable/FlexibleTable.tsx +241 -0
- package/src/components/FlexibleTable/TableRow.tsx +164 -0
- package/src/components/FlexibleTable/TableValue.tsx +86 -0
- package/src/components/FlexibleTable/fixture-test.ts +254 -0
- package/src/components/FlexibleTable/index.ts +3 -0
- package/src/components/FlexibleTable/types.ts +58 -0
- package/src/components/Icon/ComplexIconBoilerplate.tsx +17 -0
- package/src/components/Icon/Icon.stories.tsx +88 -0
- package/src/components/Icon/Icon.styles.ts +10 -0
- package/src/components/Icon/Icon.tsx +34 -0
- package/src/components/Icon/IconBoilerplate.tsx +42 -0
- package/src/components/Icon/complexIcons/augment.d.ts +1 -0
- package/src/components/Icon/complexIcons/avatarGreen.svg +58 -0
- package/src/components/Icon/complexIcons/icons.ts +7 -0
- package/src/components/Icon/complexIcons/index.ts +1 -0
- package/src/components/Icon/icons/icons.ts +838 -0
- package/src/components/Icon/icons/index.ts +1 -0
- package/src/components/Icon/index.ts +4 -0
- package/src/components/IncrementInput/ChangeButton.tsx +34 -0
- package/src/components/IncrementInput/IncrementInput.stories.tsx +34 -0
- package/src/components/IncrementInput/IncrementInput.styles.ts +77 -0
- package/src/components/IncrementInput/IncrementInput.tsx +95 -0
- package/src/components/IncrementInput/index.ts +2 -0
- package/src/components/Input/Input.stories.tsx +92 -0
- package/src/components/Input/Input.styles.ts +305 -0
- package/src/components/Input/Input.tsx +308 -0
- package/src/components/Input/index.ts +2 -0
- package/src/components/List/List.stories.tsx +62 -0
- package/src/components/List/List.styles.ts +52 -0
- package/src/components/List/List.tsx +75 -0
- package/src/components/List/index.ts +2 -0
- package/src/components/Modal/Modal.stories.tsx +113 -0
- package/src/components/Modal/Modal.styles.ts +308 -0
- package/src/components/Modal/Modal.tsx +210 -0
- package/src/components/Modal/index.ts +2 -0
- package/src/components/MoreMenu/MoreMenu.stories.tsx +46 -0
- package/src/components/MoreMenu/MoreMenu.styles.ts +68 -0
- package/src/components/MoreMenu/MoreMenu.tsx +91 -0
- package/src/components/MoreMenu/index.ts +2 -0
- package/src/components/MultiSelect/MultiSelect.stories.tsx +46 -0
- package/src/components/MultiSelect/MultiSelect.styles.ts +55 -0
- package/src/components/MultiSelect/MultiSelect.tsx +98 -0
- package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.styles.ts +73 -0
- package/src/components/MultiSelect/MultiSelectInput/MultiSelectInput.tsx +62 -0
- package/src/components/MultiSelect/MultiSelectInput/index.ts +1 -0
- package/src/components/MultiSelect/index.ts +3 -0
- package/src/components/MultiSelectList/MultiSelectList.styles.ts +125 -0
- package/src/components/MultiSelectList/MultiSelectList.tsx +519 -0
- package/src/components/MultiSelectList/index.ts +2 -0
- package/src/components/MultiSelectList/locales.ts +37 -0
- package/src/components/Notification/Notification.stories.tsx +51 -0
- package/src/components/Notification/Notification.styles.ts +50 -0
- package/src/components/Notification/Notification.tsx +84 -0
- package/src/components/Notification/index.ts +2 -0
- package/src/components/NumberInput/NumberInput.stories.tsx +35 -0
- package/src/components/NumberInput/NumberInput.tsx +142 -0
- package/src/components/NumberInput/helpers.ts +68 -0
- package/src/components/NumberInput/index.ts +1 -0
- package/src/components/PhoneInput/PhoneInput.stories.tsx +71 -0
- package/src/components/PhoneInput/PhoneInput.styles.ts +84 -0
- package/src/components/PhoneInput/PhoneInput.tsx +223 -0
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.stories.tsx +21 -0
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.styles.ts +100 -0
- package/src/components/PhoneInput/PhoneInputCountryList/PhoneInputCountryList.tsx +171 -0
- package/src/components/PhoneInput/PhoneInputCountryList/index.ts +2 -0
- package/src/components/PhoneInput/index.ts +6 -0
- package/src/components/PhoneInput/phone-info.ts +2167 -0
- package/src/components/PhoneInput/types.ts +16 -0
- package/src/components/RadioButton/RadioButton.stories.tsx +46 -0
- package/src/components/RadioButton/RadioButton.styles.ts +37 -0
- package/src/components/RadioButton/RadioButton.tsx +56 -0
- package/src/components/RadioButton/index.ts +2 -0
- package/src/components/ScrollIntoViewIfNeeded/ScrollIntoViewIfNeeded.ts +66 -0
- package/src/components/ScrollIntoViewIfNeeded/index.ts +1 -0
- package/src/components/SearchInput/SearchInput.stories.tsx +24 -0
- package/src/components/SearchInput/SearchInput.styles.ts +50 -0
- package/src/components/SearchInput/SearchInput.tsx +63 -0
- package/src/components/SearchInput/index.ts +2 -0
- package/src/components/Select/Select.stories.tsx +230 -0
- package/src/components/Select/Select.styles.ts +74 -0
- package/src/components/Select/Select.tsx +440 -0
- package/src/components/Select/SelectList/SelectList.styles.ts +57 -0
- package/src/components/Select/SelectList/SelectList.tsx +135 -0
- package/src/components/Select/SelectList/index.ts +1 -0
- package/src/components/Select/helpers.ts +13 -0
- package/src/components/Select/index.ts +3 -0
- package/src/components/SmartInput/SmartInput.stories.tsx +63 -0
- package/src/components/SmartInput/SmartInput.tsx +177 -0
- package/src/components/SmartInput/helpers.ts +85 -0
- package/src/components/SmartInput/index.ts +1 -0
- package/src/components/Switch/Switch.stories.tsx +40 -0
- package/src/components/Switch/Switch.styles.ts +75 -0
- package/src/components/Switch/Switch.tsx +89 -0
- package/src/components/Switch/index.ts +2 -0
- package/src/components/TextArea/TextArea.stories.tsx +35 -0
- package/src/components/TextArea/TextArea.styles.ts +153 -0
- package/src/components/TextArea/TextArea.tsx +178 -0
- package/src/components/TextArea/index.ts +2 -0
- package/src/components/TextWithInfo/TextWithInfo.stories.tsx +53 -0
- package/src/components/TextWithInfo/TextWithInfo.styles.ts +60 -0
- package/src/components/TextWithInfo/TextWithInfo.tsx +67 -0
- package/src/components/TextWithInfo/index.ts +2 -0
- package/src/components/TextWithTooltip/TextWithTooltip.stories.tsx +58 -0
- package/src/components/TextWithTooltip/TextWithTooltip.styles.ts +19 -0
- package/src/components/TextWithTooltip/TextWithTooltip.tsx +163 -0
- package/src/components/TextWithTooltip/index.ts +2 -0
- package/src/components/ThemedPreloader/ThemedPreloader.stories.tsx +41 -0
- package/src/components/ThemedPreloader/ThemedPreloader.styles.ts +21 -0
- package/src/components/ThemedPreloader/ThemedPreloader.tsx +56 -0
- package/src/components/ThemedPreloader/components/DefaultPreloader/DefaultPreloader.tsx +34 -0
- package/src/components/ThemedPreloader/components/DefaultPreloader/index.ts +1 -0
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.styles.ts +54 -0
- package/src/components/ThemedPreloader/components/DotsPreloader/DotsPreloader.tsx +18 -0
- package/src/components/ThemedPreloader/components/DotsPreloader/index.ts +2 -0
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.styles.ts +11 -0
- package/src/components/ThemedPreloader/components/SvgPreloader/SvgPreloader.tsx +32 -0
- package/src/components/ThemedPreloader/components/SvgPreloader/index.ts +2 -0
- package/src/components/ThemedPreloader/components/index.ts +2 -0
- package/src/components/ThemedPreloader/index.ts +2 -0
- package/src/components/Toaster/Toaster.stories.tsx +34 -0
- package/src/components/Toaster/Toaster.styles.ts +59 -0
- package/src/components/Toaster/Toaster.tsx +113 -0
- package/src/components/Toaster/index.ts +2 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +21 -0
- package/src/components/Tooltip/Tooltip.styles.ts +45 -0
- package/src/components/Tooltip/Tooltip.tsx +40 -0
- package/src/components/Tooltip/index.ts +3 -0
- package/src/components/Tooltip/types.ts +1 -0
- package/src/components/index.ts +36 -0
- package/src/helpers/colors.ts +2 -0
- package/src/helpers/data-attributes.ts +18 -0
- package/src/helpers/dateHelpers/date-helpers.ts +9 -0
- package/src/helpers/index.ts +5 -0
- package/src/helpers/phone.ts +106 -0
- package/src/helpers/popper-helpers.ts +17 -0
- package/src/helpers/utils.ts +164 -0
- package/src/hooks/index.ts +6 -0
- package/src/hooks/use-did-mount-effect.ts +21 -0
- package/src/hooks/use-dropdown.ts +85 -0
- package/src/hooks/use-is-mounted.ts +15 -0
- package/src/hooks/use-on-click-outside.ts +92 -0
- package/src/hooks/use-theme.ts +36 -0
- package/src/hooks/use-tweak-styles.ts +14 -0
- package/src/index.ts +5 -0
- package/src/theme.ts +155 -0
- package/src/types.ts +106 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { CssBaselineStyles } from './CssBaseline.styles';
|
|
4
|
+
export interface ICssBaselineProps extends ICommonProps {
|
|
5
|
+
tweakStyles?: CssBaselineStyles;
|
|
6
|
+
}
|
|
7
|
+
export declare const CssBaseline: FC<ICssBaselineProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
'@global html, body': {
|
|
4
|
+
fontFamily: string;
|
|
5
|
+
color: "#222a37";
|
|
6
|
+
padding: number;
|
|
7
|
+
margin: number;
|
|
8
|
+
};
|
|
9
|
+
root: {};
|
|
10
|
+
};
|
|
11
|
+
export declare type CssBaselineStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { IDataAttributes } from '../../types';
|
|
3
|
+
import { IInputProps } from '../Input';
|
|
4
|
+
import { DateInputStyles } from './DateInput.styles';
|
|
5
|
+
export interface IDateInputProps extends Omit<IInputProps, 'onChange' | 'value'> {
|
|
6
|
+
tweakStyles?: DateInputStyles;
|
|
7
|
+
isRange?: boolean;
|
|
8
|
+
date?: string;
|
|
9
|
+
startDate?: string;
|
|
10
|
+
endDate?: string;
|
|
11
|
+
data?: IDataAttributes;
|
|
12
|
+
onChange: (date: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const DateInput: FC<IDateInputProps>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {
|
|
4
|
+
cursor: string;
|
|
5
|
+
position: string;
|
|
6
|
+
width: string;
|
|
7
|
+
height: string;
|
|
8
|
+
};
|
|
9
|
+
tweakInput: {};
|
|
10
|
+
};
|
|
11
|
+
export declare type DateInputStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import { ReactDatePickerCustomHeaderProps, ReactDatePickerProps } from 'react-datepicker';
|
|
3
|
+
import { IInputProps } from '../Input';
|
|
4
|
+
import { DatePickerStyles } from './DatePicker.styles';
|
|
5
|
+
export interface IDatePickerProps extends Omit<IInputProps, 'onChange' | 'value'> {
|
|
6
|
+
selectedDate: Date | null;
|
|
7
|
+
locale: Locale;
|
|
8
|
+
months: string[];
|
|
9
|
+
tweakStyles?: DatePickerStyles;
|
|
10
|
+
minDate?: Date | null;
|
|
11
|
+
maxDate?: Date | null;
|
|
12
|
+
endDate?: Date | null;
|
|
13
|
+
startDate?: Date | null;
|
|
14
|
+
size?: 's' | 'm' | 'full';
|
|
15
|
+
isRange?: boolean;
|
|
16
|
+
calendarStartDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
17
|
+
leftPosition?: number;
|
|
18
|
+
topPosition?: number;
|
|
19
|
+
isInline?: boolean;
|
|
20
|
+
isNeedClearSelectedDate?: boolean;
|
|
21
|
+
dateFormat?: string;
|
|
22
|
+
shouldGiveValueOnType?: boolean;
|
|
23
|
+
disabledKeyboardNavigation?: boolean;
|
|
24
|
+
monthsShown?: number;
|
|
25
|
+
showPreviousMonths?: boolean;
|
|
26
|
+
customHeader?: (params: ReactDatePickerCustomHeaderProps) => React.ReactNode;
|
|
27
|
+
filterDate?: (date: Date) => boolean;
|
|
28
|
+
onChangeDate?: (date: Date | null, dateVal?: string) => void;
|
|
29
|
+
onChangeRange?: (date: [Date, Date] | null, event?: React.SyntheticEvent<any>) => void;
|
|
30
|
+
shouldRenderPopperInBody?: boolean;
|
|
31
|
+
popperModifiers?: ReactDatePickerProps['popperModifiers'];
|
|
32
|
+
popperPlacement?: ReactDatePickerProps['popperPlacement'];
|
|
33
|
+
}
|
|
34
|
+
export declare const DatePicker: FC<IDatePickerProps>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
};
|
|
7
|
+
day: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
lineHeight: string;
|
|
11
|
+
boxSizing: string;
|
|
12
|
+
paddingTop: number;
|
|
13
|
+
fontSize: number;
|
|
14
|
+
};
|
|
15
|
+
datepicker: {
|
|
16
|
+
display: string;
|
|
17
|
+
padding: number[];
|
|
18
|
+
width: number;
|
|
19
|
+
boxSizing: string;
|
|
20
|
+
};
|
|
21
|
+
btnText: {
|
|
22
|
+
marginLeft: string;
|
|
23
|
+
};
|
|
24
|
+
popper: {
|
|
25
|
+
zIndex: number;
|
|
26
|
+
marginLeft: ({ leftPosition }: {
|
|
27
|
+
leftPosition: number;
|
|
28
|
+
}) => number;
|
|
29
|
+
marginTop: ({ topPosition }: {
|
|
30
|
+
topPosition: number;
|
|
31
|
+
}) => number;
|
|
32
|
+
'&[data-placement^="bottom"]': {
|
|
33
|
+
paddingTop: number;
|
|
34
|
+
};
|
|
35
|
+
'&[data-placement^="top"]': {
|
|
36
|
+
paddingBottom: number;
|
|
37
|
+
};
|
|
38
|
+
'&[data-placement^="left"]': {
|
|
39
|
+
paddingRight: number;
|
|
40
|
+
};
|
|
41
|
+
'&[data-placement^="right"]': {
|
|
42
|
+
paddingLeft: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare type DatePickerStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { DatePickerHeaderStyles } from './DatePickerHeader.styles';
|
|
3
|
+
export interface IDatePickerHeaderProps {
|
|
4
|
+
tweakStyles?: DatePickerHeaderStyles;
|
|
5
|
+
date: Date;
|
|
6
|
+
changeYear: (year: number) => void;
|
|
7
|
+
changeMonth: (month: number) => void;
|
|
8
|
+
decreaseMonth: () => void;
|
|
9
|
+
increaseMonth: () => void;
|
|
10
|
+
isPrevMonthButtonDisabled: boolean;
|
|
11
|
+
isNextMonthButtonDisabled: boolean;
|
|
12
|
+
months: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare const DatePickerHeader: FC<IDatePickerHeaderProps>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
btn: {
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
padding: number;
|
|
7
|
+
boxSizing: string;
|
|
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>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePickerHeader';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { DatePickerInputStyles } from './DatePickerInput.styles';
|
|
3
|
+
export interface IDatePickerInputProps {
|
|
4
|
+
tweakStyles?: DatePickerInputStyles;
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
children: ReactElement;
|
|
7
|
+
className?: string;
|
|
8
|
+
size?: 's' | 'm' | 'full';
|
|
9
|
+
isOpen?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const DatePickerInput: import("react").ForwardRefExoticComponent<IDatePickerInputProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
customInput: {
|
|
4
|
+
width: string;
|
|
5
|
+
height: string;
|
|
6
|
+
};
|
|
7
|
+
s: {
|
|
8
|
+
width: number;
|
|
9
|
+
height: string;
|
|
10
|
+
};
|
|
11
|
+
m: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: string;
|
|
14
|
+
};
|
|
15
|
+
full: {
|
|
16
|
+
width: string;
|
|
17
|
+
height: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
export declare type DatePickerInputStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DatePickerInput';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { DescriptionStyles } from './Description.styles';
|
|
4
|
+
export interface IDescriptionProps extends ICommonProps {
|
|
5
|
+
tweakStyles?: DescriptionStyles;
|
|
6
|
+
text: string;
|
|
7
|
+
moreTitle?: string;
|
|
8
|
+
lessTitle?: string;
|
|
9
|
+
truncateIndex?: number;
|
|
10
|
+
isAlwaysOpen?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const Description: FC<IDescriptionProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {};
|
|
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>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../../types';
|
|
3
|
+
import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
|
|
4
|
+
import { FilterIntervalStyles } from './FilterInterval.styles';
|
|
5
|
+
export interface IFilterIntervalProps extends ICommonProps {
|
|
6
|
+
tweakStyles?: FilterIntervalStyles;
|
|
7
|
+
value?: Array<number | undefined>;
|
|
8
|
+
onChange: (value?: Array<number | undefined>) => void;
|
|
9
|
+
labelName: string;
|
|
10
|
+
localeKey?: IFilterLocaleKey;
|
|
11
|
+
locale?: IPartialFilterLocale;
|
|
12
|
+
withFieldNameInLabel?: boolean;
|
|
13
|
+
canBeFloat?: boolean;
|
|
14
|
+
fromInput?: {
|
|
15
|
+
min?: number;
|
|
16
|
+
max?: number;
|
|
17
|
+
maxLength?: number;
|
|
18
|
+
};
|
|
19
|
+
toInput?: {
|
|
20
|
+
min?: number;
|
|
21
|
+
max?: number;
|
|
22
|
+
maxLength?: number;
|
|
23
|
+
};
|
|
24
|
+
testId?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare const FilterInterval: FC<IFilterIntervalProps>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {
|
|
4
|
+
padding: number;
|
|
5
|
+
background: "#ffffff";
|
|
6
|
+
};
|
|
7
|
+
inputWrapper: {
|
|
8
|
+
padding: number[];
|
|
9
|
+
display: string;
|
|
10
|
+
gridTemplateColumns: string;
|
|
11
|
+
gap: number;
|
|
12
|
+
marginBottom: number;
|
|
13
|
+
};
|
|
14
|
+
autosize: {
|
|
15
|
+
minWidth: number;
|
|
16
|
+
height: number;
|
|
17
|
+
opacity: number;
|
|
18
|
+
paddingRight: number;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
whiteSpace: string;
|
|
21
|
+
userSelect: string;
|
|
22
|
+
pointerEvents: string;
|
|
23
|
+
};
|
|
24
|
+
clear: {
|
|
25
|
+
display: string;
|
|
26
|
+
justifyContent: string;
|
|
27
|
+
};
|
|
28
|
+
tweakInput: {
|
|
29
|
+
input: {
|
|
30
|
+
minWidth: number;
|
|
31
|
+
};
|
|
32
|
+
icon: {
|
|
33
|
+
padding: number;
|
|
34
|
+
width: number;
|
|
35
|
+
'&:last-child': {
|
|
36
|
+
paddingRight: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
tweakClearButton: {
|
|
41
|
+
text: {
|
|
42
|
+
color: "#95a0b3";
|
|
43
|
+
'&:hover, &:focus': {
|
|
44
|
+
color: "#505f79";
|
|
45
|
+
};
|
|
46
|
+
'&:active': {
|
|
47
|
+
color: "#505f79";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare type FilterIntervalStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterInterval';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IFilterMultiSelectValues } from '../types';
|
|
3
|
+
import { IMultiSelectListProps } from '../../MultiSelectList';
|
|
4
|
+
export declare type IFilterMultiSelectProps<Value, Option = string> = IMultiSelectListProps<Value, Option>;
|
|
5
|
+
export declare function FilterMultiSelect<Value extends IFilterMultiSelectValues<Option>, Option = string>(props: IFilterMultiSelectProps<Value, Option>): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterMultiSelect';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../../types';
|
|
3
|
+
import { IFilterLocaleKey } from '../locales';
|
|
4
|
+
import { ISelectLocale } from './locales';
|
|
5
|
+
import { FilterSelectStyles } from './FilterSelect.styles';
|
|
6
|
+
export interface IFilterSelectProps<Value> extends ICommonProps {
|
|
7
|
+
tweakStyles?: FilterSelectStyles;
|
|
8
|
+
value?: Value;
|
|
9
|
+
onChange: (value?: Value) => void;
|
|
10
|
+
isSearchEnabled?: boolean;
|
|
11
|
+
isGroupingEnabled?: boolean;
|
|
12
|
+
width?: string | number;
|
|
13
|
+
localeKey?: IFilterLocaleKey;
|
|
14
|
+
locale?: Partial<ISelectLocale>;
|
|
15
|
+
options?: Value[];
|
|
16
|
+
footer?: ReactNode;
|
|
17
|
+
fetchOptions?: (value?: string, page?: number) => Promise<Value[]>;
|
|
18
|
+
getValueString?: (value: Value) => string;
|
|
19
|
+
getValueView?: (value: Value) => ReactNode;
|
|
20
|
+
getValueId?: (value: Value) => string;
|
|
21
|
+
hasClearButton?: boolean;
|
|
22
|
+
testId?: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const defaultConvertFunction: (val: unknown) => string;
|
|
25
|
+
export declare function FilterSelect<Value>({ data, tweakStyles, value, isSearchEnabled, isGroupingEnabled, width, localeKey, locale, onChange, options, fetchOptions, footer, getValueView, getValueId, getValueString, hasClearButton, testId, }: IFilterSelectProps<Value>): JSX.Element;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {
|
|
4
|
+
width: ({ width }: {
|
|
5
|
+
width: string | number;
|
|
6
|
+
}) => string | number;
|
|
7
|
+
background: "#ffffff";
|
|
8
|
+
};
|
|
9
|
+
list: {
|
|
10
|
+
paddingTop: number;
|
|
11
|
+
padding: number[];
|
|
12
|
+
maxHeight: number;
|
|
13
|
+
overscrollBehavior: string;
|
|
14
|
+
} | {
|
|
15
|
+
paddingTop: number;
|
|
16
|
+
padding: number[];
|
|
17
|
+
maxHeight: number;
|
|
18
|
+
overscrollBehavior: string;
|
|
19
|
+
};
|
|
20
|
+
label: {
|
|
21
|
+
boxSizing: string;
|
|
22
|
+
fontSize: number;
|
|
23
|
+
padding: number[];
|
|
24
|
+
userSelect: string;
|
|
25
|
+
display: string;
|
|
26
|
+
alignItems: string;
|
|
27
|
+
color: "#7a869a";
|
|
28
|
+
};
|
|
29
|
+
labelChosen: {
|
|
30
|
+
fontWeight: string;
|
|
31
|
+
color: "#222a37";
|
|
32
|
+
padding: number[];
|
|
33
|
+
};
|
|
34
|
+
withoutTopGap: {
|
|
35
|
+
paddingTop: number;
|
|
36
|
+
};
|
|
37
|
+
withClearButton: {
|
|
38
|
+
paddingBottom: number;
|
|
39
|
+
maxHeight: number;
|
|
40
|
+
};
|
|
41
|
+
item: {
|
|
42
|
+
display: string;
|
|
43
|
+
alignItems: string;
|
|
44
|
+
justifyContent: string;
|
|
45
|
+
padding: number[];
|
|
46
|
+
maxWidth: string;
|
|
47
|
+
cursor: string;
|
|
48
|
+
fontSize: number;
|
|
49
|
+
minHeight: number;
|
|
50
|
+
transition: string;
|
|
51
|
+
boxSizing: string;
|
|
52
|
+
};
|
|
53
|
+
option: {
|
|
54
|
+
display: string;
|
|
55
|
+
userSelect: string;
|
|
56
|
+
width: string;
|
|
57
|
+
overflow: string;
|
|
58
|
+
whiteSpace: string;
|
|
59
|
+
textOverflow: string;
|
|
60
|
+
};
|
|
61
|
+
icon: {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
marginRight: number;
|
|
65
|
+
alignSelf: string;
|
|
66
|
+
flexShrink: number;
|
|
67
|
+
};
|
|
68
|
+
panel: {
|
|
69
|
+
display: string;
|
|
70
|
+
padding: number[];
|
|
71
|
+
gap: number;
|
|
72
|
+
};
|
|
73
|
+
panelWithFooter: {
|
|
74
|
+
borderTop: (string | number)[];
|
|
75
|
+
padding: number[];
|
|
76
|
+
};
|
|
77
|
+
footer: {
|
|
78
|
+
wordBreak: string;
|
|
79
|
+
alignSelf: string;
|
|
80
|
+
};
|
|
81
|
+
clear: {
|
|
82
|
+
marginLeft: string;
|
|
83
|
+
alignSelf: string;
|
|
84
|
+
};
|
|
85
|
+
preloader: {
|
|
86
|
+
width: number;
|
|
87
|
+
height: number;
|
|
88
|
+
margin: string;
|
|
89
|
+
display: string;
|
|
90
|
+
alignItems: string;
|
|
91
|
+
justifyContent: string;
|
|
92
|
+
};
|
|
93
|
+
dropdownInput: {
|
|
94
|
+
borderBottom: (string | number)[];
|
|
95
|
+
};
|
|
96
|
+
nothingFound: {
|
|
97
|
+
display: string;
|
|
98
|
+
alignItems: string;
|
|
99
|
+
textAlign: string;
|
|
100
|
+
padding: number;
|
|
101
|
+
fontSize: number;
|
|
102
|
+
};
|
|
103
|
+
tweakSearchInput: {
|
|
104
|
+
tweakInput: {
|
|
105
|
+
inputWrapper: {
|
|
106
|
+
backgroundColor: string;
|
|
107
|
+
border: string;
|
|
108
|
+
height: number;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
tweakClearButton: {
|
|
113
|
+
text: {
|
|
114
|
+
color: "#95a0b3";
|
|
115
|
+
'&:hover, &:focus': {
|
|
116
|
+
color: "#505f79";
|
|
117
|
+
};
|
|
118
|
+
'&:active': {
|
|
119
|
+
color: "#505f79";
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
export declare type FilterSelectStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterSelect';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface ISelectLocale {
|
|
2
|
+
clear: string;
|
|
3
|
+
all: string;
|
|
4
|
+
chosen: string;
|
|
5
|
+
searchPlaceholder: string;
|
|
6
|
+
nothingFound: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const SelectLocales: Record<string, ISelectLocale>;
|
|
9
|
+
export declare type ISelectLocaleKey = keyof typeof SelectLocales;
|
|
10
|
+
export declare const DEFAULT_LOCALE: ISelectLocaleKey;
|
|
11
|
+
export declare const getLocale: (key?: ISelectLocaleKey, custom?: Partial<ISelectLocale>, custom2?: Partial<ISelectLocale>) => ISelectLocale;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IFilterWrapperProps } from '../FilterWrapper';
|
|
3
|
+
export declare function FilterValueView<Values, Key extends keyof Values>({ locale, localeKey, filter, value, }: Omit<IFilterWrapperProps<Values, Key>, 'onChange' | 'filtersPaneRef'>): JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
text: {
|
|
4
|
+
overflow: string;
|
|
5
|
+
textOverflow: string;
|
|
6
|
+
whiteSpace: string;
|
|
7
|
+
};
|
|
8
|
+
count: {
|
|
9
|
+
whiteSpace: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export declare type FilterValueViewStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FilterValueView';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../../types';
|
|
3
|
+
import { IDatePickerProps } from '../../DatePicker';
|
|
4
|
+
import { IFilterWithDatesValue } from '../types';
|
|
5
|
+
import { IFilterLocaleKey, IPartialFilterLocale } from '../locales';
|
|
6
|
+
import { FilterWithDatesStyles } from './FilterWithDates.styles';
|
|
7
|
+
declare type PickerProps = Omit<IDatePickerProps, 'onChange' | 'value' | 'isNeedClearSelectedDate' | 'locale' | 'months' | 'selectedDate'>;
|
|
8
|
+
export interface IFilterWithDatesProps extends ICommonProps {
|
|
9
|
+
tweakStyles?: FilterWithDatesStyles;
|
|
10
|
+
value?: IFilterWithDatesValue;
|
|
11
|
+
onChange: (val: IFilterWithDatesValue) => void;
|
|
12
|
+
localeKey?: IFilterLocaleKey;
|
|
13
|
+
locale?: IPartialFilterLocale;
|
|
14
|
+
onStartBtnSubmit?: () => void;
|
|
15
|
+
onEndBtnSubmit: () => void;
|
|
16
|
+
testId?: string;
|
|
17
|
+
isClearable?: boolean;
|
|
18
|
+
startPickerProps?: PickerProps;
|
|
19
|
+
endPickerProps?: PickerProps;
|
|
20
|
+
}
|
|
21
|
+
export declare const DATE_FORMAT = "dd.MM.yyyy";
|
|
22
|
+
export declare const FilterWithDates: FC<IFilterWithDatesProps>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {
|
|
4
|
+
background: "#ffffff";
|
|
5
|
+
position: string;
|
|
6
|
+
zIndex: number;
|
|
7
|
+
};
|
|
8
|
+
container: {
|
|
9
|
+
display: string;
|
|
10
|
+
gap: number;
|
|
11
|
+
padding: number[];
|
|
12
|
+
};
|
|
13
|
+
containerItem: {
|
|
14
|
+
width: string;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
btnRow: {
|
|
18
|
+
display: string;
|
|
19
|
+
flexDirection: string;
|
|
20
|
+
justifyContent: string;
|
|
21
|
+
padding: number;
|
|
22
|
+
};
|
|
23
|
+
datepicker: {};
|
|
24
|
+
tweakClearButton: {
|
|
25
|
+
text: {
|
|
26
|
+
color: "#95a0b3";
|
|
27
|
+
'&:hover, &:focus': {
|
|
28
|
+
color: "#505f79";
|
|
29
|
+
};
|
|
30
|
+
'&:active': {
|
|
31
|
+
color: "#505f79";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
tweakBackButton: {
|
|
36
|
+
text: {
|
|
37
|
+
color: "#95a0b3";
|
|
38
|
+
'&:hover, &:focus': {
|
|
39
|
+
color: "#505f79";
|
|
40
|
+
};
|
|
41
|
+
'&:active': {
|
|
42
|
+
color: "#505f79";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export declare type FilterWithDatesStyles = ComponentStyles<typeof styles>;
|