@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,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { ICommonProps } from '../../types';
|
|
3
|
+
import type { FlexibleTableConfigType } from './types';
|
|
4
|
+
interface ITableValueProps<Values extends Record<string, any>> extends ICommonProps {
|
|
5
|
+
item: Values;
|
|
6
|
+
columnName: keyof Values;
|
|
7
|
+
config?: FlexibleTableConfigType<Values>;
|
|
8
|
+
classes: {
|
|
9
|
+
root: string;
|
|
10
|
+
sticky: string;
|
|
11
|
+
second: string;
|
|
12
|
+
};
|
|
13
|
+
isFocusedRow?: boolean;
|
|
14
|
+
isSecond?: boolean;
|
|
15
|
+
isSticky?: boolean;
|
|
16
|
+
isNestedComponentExpanded: boolean;
|
|
17
|
+
isRowNestedComponentExpanded: boolean;
|
|
18
|
+
onSetNestedComponent: (component?: ReactNode) => void;
|
|
19
|
+
}
|
|
20
|
+
declare function TableValue<Values extends Record<string, any>>({ item, columnName, config, classes, isFocusedRow, isSecond, isSticky, isNestedComponentExpanded, isRowNestedComponentExpanded, onSetNestedComponent, }: ITableValueProps<Values>): JSX.Element;
|
|
21
|
+
export default TableValue;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
export declare type ITextAlignment = 'left' | 'center' | 'right';
|
|
3
|
+
export declare type IVerticalAlignment = 'middle' | 'top' | 'bottom' | 'baseline' | 'sub' | string;
|
|
4
|
+
export declare type IPosition = 'sticky' | 'absolute' | 'relative' | 'static';
|
|
5
|
+
export declare type ITitleComponent<Value> = FC<{
|
|
6
|
+
value?: Value;
|
|
7
|
+
}>;
|
|
8
|
+
export declare type IValueComponent<Values, Value> = FC<{
|
|
9
|
+
value?: Value;
|
|
10
|
+
row: Values;
|
|
11
|
+
isFocusedRow?: boolean;
|
|
12
|
+
isNestedComponentExpanded: boolean;
|
|
13
|
+
isRowNestedComponentExpanded: boolean;
|
|
14
|
+
onSetNestedComponent: (component?: ReactNode) => void;
|
|
15
|
+
}>;
|
|
16
|
+
export declare type FlexibleTableConfigType<Values> = {
|
|
17
|
+
[Key in keyof Values]?: {
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
titleComponent?: ITitleComponent<any>;
|
|
20
|
+
component?: IValueComponent<Values, Values[Key]>;
|
|
21
|
+
dateFormat?: string;
|
|
22
|
+
minWidth?: string | number;
|
|
23
|
+
width?: string | number;
|
|
24
|
+
maxWidth?: string | number;
|
|
25
|
+
titleAlign?: ITextAlignment;
|
|
26
|
+
cellAlign?: ITextAlignment;
|
|
27
|
+
cellVerticalAlign?: IVerticalAlignment;
|
|
28
|
+
position?: IPosition;
|
|
29
|
+
right?: number;
|
|
30
|
+
left?: number;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export interface IInfinityScrollConfig {
|
|
34
|
+
activePage: number;
|
|
35
|
+
totalPages: number;
|
|
36
|
+
isLoading: boolean;
|
|
37
|
+
isLastPage: boolean;
|
|
38
|
+
onInfinityScroll: (skip: number) => void;
|
|
39
|
+
}
|
|
40
|
+
export interface INestedComponent {
|
|
41
|
+
isOpen: boolean;
|
|
42
|
+
component?: ReactNode;
|
|
43
|
+
cellKey?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { ICommonIcon } from './icons';
|
|
4
|
+
import { IComplexIcon } from './complexIcons';
|
|
5
|
+
import { IconStyles } from './Icon.styles';
|
|
6
|
+
export declare type IIconType = ICommonIcon | IComplexIcon;
|
|
7
|
+
export interface IIconProps extends ICommonProps {
|
|
8
|
+
tweakStyles?: IconStyles;
|
|
9
|
+
type: IIconType;
|
|
10
|
+
}
|
|
11
|
+
export declare const Icon: React.FC<IIconProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '*.svg?raw';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icons';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SVGAttributes } from 'react';
|
|
2
|
+
export interface ISvgIcon {
|
|
3
|
+
viewBox?: string;
|
|
4
|
+
paths?: Array<SVGAttributes<never>>;
|
|
5
|
+
circles?: Array<SVGAttributes<never>>;
|
|
6
|
+
rects?: Array<SVGAttributes<never>>;
|
|
7
|
+
}
|
|
8
|
+
export declare const icons: Record<"direction" | "filter" | "search" | "repeat" | "link" | "sort" | "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" | "download" | "email" | "eye" | "eye-closed" | "female" | "food" | "information" | "insurance" | "list" | "lock" | "lock-open" | "male" | "menu" | "minus" | "burger-menu" | "pencil" | "pin" | "plane" | "plane-circle" | "plus" | "print" | "question" | "refresh" | "rocket" | "round-trip" | "vendor-logo" | "scan" | "send-email" | "settings" | "sign-out" | "size" | "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", ISvgIcon>;
|
|
9
|
+
export declare type ICommonIcon = keyof typeof icons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icons';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Classes } from 'jss';
|
|
3
|
+
interface IChangeButtonProps {
|
|
4
|
+
type: 'plus' | 'minus';
|
|
5
|
+
isButtonDisabled: boolean;
|
|
6
|
+
isInvalid?: boolean;
|
|
7
|
+
classes: Classes<'button' | 'disabledButton' | 'errorButton'>;
|
|
8
|
+
onClick: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ChangeButton: FC<IChangeButtonProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { INumberInputProps } from '../NumberInput';
|
|
3
|
+
import { IncrementInputStyles } from './IncrementInput.styles';
|
|
4
|
+
export interface IIncrementInputProps extends Omit<INumberInputProps, 'canBeFloat' | 'precision'> {
|
|
5
|
+
tweakStyles?: IncrementInputStyles;
|
|
6
|
+
step?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare const IncrementInput: FC<IIncrementInputProps>;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const BUTTONS_WIDTH = 36;
|
|
3
|
+
export declare const BUTTONS_GAP = 2;
|
|
4
|
+
export declare const styles: {
|
|
5
|
+
root: {
|
|
6
|
+
display: string;
|
|
7
|
+
alignItems: string;
|
|
8
|
+
position: string;
|
|
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>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FormEvent, FocusEvent, KeyboardEvent, ClipboardEvent } from 'react';
|
|
2
|
+
import { Props as ReactInputMaskProps } from 'react-input-mask';
|
|
3
|
+
import { IIconProps } from '../Icon';
|
|
4
|
+
import { ICommonProps } from '../../types';
|
|
5
|
+
import { InputStyles } from './Input.styles';
|
|
6
|
+
export declare const DEFAULT_SIZE = 6;
|
|
7
|
+
export interface IInputProps extends ICommonProps {
|
|
8
|
+
tweakStyles?: InputStyles;
|
|
9
|
+
value?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
type?: 'text' | 'password' | 'email' | 'number';
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
hasFloatingLabel?: boolean;
|
|
15
|
+
isReadonly?: boolean;
|
|
16
|
+
isInvalid?: boolean;
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
isClearable?: boolean;
|
|
19
|
+
infoMessage?: string;
|
|
20
|
+
errorMessage?: string;
|
|
21
|
+
errorPosition?: 'top' | 'bottom';
|
|
22
|
+
inlineStyle?: 'top' | 'bottom' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'left' | 'right' | 'middle';
|
|
23
|
+
border?: 'top' | 'bottom' | 'left' | 'right';
|
|
24
|
+
isRequired?: boolean;
|
|
25
|
+
isLoading?: boolean;
|
|
26
|
+
isAutoSizeable?: boolean;
|
|
27
|
+
defaultSize?: number;
|
|
28
|
+
iconType?: IIconProps['type'];
|
|
29
|
+
units?: string;
|
|
30
|
+
name?: string;
|
|
31
|
+
mask?: ReactInputMaskProps['mask'];
|
|
32
|
+
maskPlaceholder?: ReactInputMaskProps['maskPlaceholder'];
|
|
33
|
+
hasRequiredLabel?: boolean;
|
|
34
|
+
shouldFocusOnMount?: boolean;
|
|
35
|
+
maxLength?: number;
|
|
36
|
+
testId?: string;
|
|
37
|
+
tabIndex?: number;
|
|
38
|
+
onChange(value: string, event: FormEvent<HTMLInputElement>): void;
|
|
39
|
+
onFocus?(event: FocusEvent<HTMLInputElement>): void;
|
|
40
|
+
onBlur?(event: FocusEvent<HTMLInputElement>): void;
|
|
41
|
+
onPaste?(event: ClipboardEvent<HTMLInputElement>): void;
|
|
42
|
+
onIconClick?(): void;
|
|
43
|
+
onKeyDown?(event: KeyboardEvent<HTMLInputElement>): void;
|
|
44
|
+
}
|
|
45
|
+
export declare const Input: import("react").ForwardRefExoticComponent<IInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const AUTOSIZE_MAX_WIDTH = 480;
|
|
3
|
+
export declare const styles: {
|
|
4
|
+
root: {
|
|
5
|
+
width: string;
|
|
6
|
+
boxSizing: string;
|
|
7
|
+
position: string;
|
|
8
|
+
};
|
|
9
|
+
inputWrapper: {
|
|
10
|
+
display: string;
|
|
11
|
+
width: string;
|
|
12
|
+
height: 48;
|
|
13
|
+
boxSizing: string;
|
|
14
|
+
transition: string;
|
|
15
|
+
transitionProperty: string;
|
|
16
|
+
backgroundColor: string;
|
|
17
|
+
position: string;
|
|
18
|
+
};
|
|
19
|
+
inputContent: {
|
|
20
|
+
fontSize: number;
|
|
21
|
+
fontFamily: string;
|
|
22
|
+
padding: number[];
|
|
23
|
+
};
|
|
24
|
+
input: {
|
|
25
|
+
extend: string;
|
|
26
|
+
width: string;
|
|
27
|
+
height: string;
|
|
28
|
+
outline: string;
|
|
29
|
+
boxSizing: string;
|
|
30
|
+
outlineStyle: string;
|
|
31
|
+
transition: string;
|
|
32
|
+
transitionProperty: string;
|
|
33
|
+
border: string;
|
|
34
|
+
background: string;
|
|
35
|
+
'&::placeholder': {
|
|
36
|
+
opacity: number;
|
|
37
|
+
};
|
|
38
|
+
MozAppearance: string;
|
|
39
|
+
'&::-webkit-inner-spin-button,&::-webkit-outer-spin-button': {
|
|
40
|
+
WebkitAppearance: string;
|
|
41
|
+
margin: number;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
autosize: {
|
|
45
|
+
display: string;
|
|
46
|
+
verticalAlign: string;
|
|
47
|
+
alignItems: string;
|
|
48
|
+
justifyContent: string;
|
|
49
|
+
'&::after, input': {
|
|
50
|
+
width: string;
|
|
51
|
+
minWidth: string;
|
|
52
|
+
gridArea: string;
|
|
53
|
+
font: string;
|
|
54
|
+
justifySelf: string;
|
|
55
|
+
};
|
|
56
|
+
'&::after': {
|
|
57
|
+
maxWidth: number;
|
|
58
|
+
content: string;
|
|
59
|
+
visibility: string;
|
|
60
|
+
whiteSpace: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
focused: {
|
|
64
|
+
position: string;
|
|
65
|
+
zIndex: number;
|
|
66
|
+
};
|
|
67
|
+
unitsWrapper: {
|
|
68
|
+
extend: string;
|
|
69
|
+
position: string;
|
|
70
|
+
left: number;
|
|
71
|
+
height: string;
|
|
72
|
+
boxSizing: string;
|
|
73
|
+
display: string;
|
|
74
|
+
alignItems: string;
|
|
75
|
+
pointerEvents: string;
|
|
76
|
+
};
|
|
77
|
+
fakeValue: {
|
|
78
|
+
visibility: string;
|
|
79
|
+
};
|
|
80
|
+
units: {
|
|
81
|
+
paddingLeft: number;
|
|
82
|
+
};
|
|
83
|
+
withFloatingLabel: {
|
|
84
|
+
paddingTop: number;
|
|
85
|
+
};
|
|
86
|
+
floatingLabelWithoutPadding: {
|
|
87
|
+
paddingTop: number;
|
|
88
|
+
paddingLeft: number;
|
|
89
|
+
};
|
|
90
|
+
floating: {};
|
|
91
|
+
activeLabel: {
|
|
92
|
+
display: string;
|
|
93
|
+
'&$floating': {
|
|
94
|
+
display: string;
|
|
95
|
+
transform: string;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
required: {
|
|
99
|
+
'&:before': {
|
|
100
|
+
content: string;
|
|
101
|
+
position: string;
|
|
102
|
+
left: number;
|
|
103
|
+
top: string;
|
|
104
|
+
transform: string;
|
|
105
|
+
width: number;
|
|
106
|
+
height: number;
|
|
107
|
+
borderRadius: string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
label: {
|
|
111
|
+
position: string;
|
|
112
|
+
pointerEvents: string;
|
|
113
|
+
left: number;
|
|
114
|
+
top: string;
|
|
115
|
+
transformOrigin: string;
|
|
116
|
+
transform: string;
|
|
117
|
+
transition: string;
|
|
118
|
+
transitionProperty: string;
|
|
119
|
+
fontSize: number;
|
|
120
|
+
};
|
|
121
|
+
floatingWithoutPadding: {
|
|
122
|
+
left: number;
|
|
123
|
+
};
|
|
124
|
+
requiredLabel: {
|
|
125
|
+
'&:after': {
|
|
126
|
+
content: string;
|
|
127
|
+
position: string;
|
|
128
|
+
right: number;
|
|
129
|
+
top: number;
|
|
130
|
+
transform: string;
|
|
131
|
+
width: number;
|
|
132
|
+
height: number;
|
|
133
|
+
borderRadius: string;
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
activeIcon: {
|
|
137
|
+
cursor: string;
|
|
138
|
+
};
|
|
139
|
+
'border-top': {
|
|
140
|
+
borderRadius: number;
|
|
141
|
+
borderWidth: number[];
|
|
142
|
+
};
|
|
143
|
+
'border-bottom': {
|
|
144
|
+
borderRadius: number;
|
|
145
|
+
borderWidth: number[];
|
|
146
|
+
};
|
|
147
|
+
'border-left': {
|
|
148
|
+
borderRadius: number;
|
|
149
|
+
borderWidth: number[];
|
|
150
|
+
};
|
|
151
|
+
'border-right': {
|
|
152
|
+
borderRadius: number;
|
|
153
|
+
borderWidth: number[];
|
|
154
|
+
};
|
|
155
|
+
top: {
|
|
156
|
+
borderBottomLeftRadius: number;
|
|
157
|
+
borderBottomRightRadius: number;
|
|
158
|
+
};
|
|
159
|
+
bottom: {
|
|
160
|
+
borderTopLeftRadius: number;
|
|
161
|
+
borderTopRightRadius: number;
|
|
162
|
+
};
|
|
163
|
+
'top-left': {
|
|
164
|
+
borderTopRightRadius: number;
|
|
165
|
+
borderBottomLeftRadius: number;
|
|
166
|
+
borderBottomRightRadius: number;
|
|
167
|
+
};
|
|
168
|
+
'top-right': {
|
|
169
|
+
borderTopLeftRadius: number;
|
|
170
|
+
borderBottomLeftRadius: number;
|
|
171
|
+
borderBottomRightRadius: number;
|
|
172
|
+
};
|
|
173
|
+
'bottom-left': {
|
|
174
|
+
borderTopLeftRadius: number;
|
|
175
|
+
borderTopRightRadius: number;
|
|
176
|
+
borderBottomRightRadius: number;
|
|
177
|
+
};
|
|
178
|
+
'bottom-right': {
|
|
179
|
+
borderTopLeftRadius: number;
|
|
180
|
+
borderTopRightRadius: number;
|
|
181
|
+
borderBottomLeftRadius: number;
|
|
182
|
+
};
|
|
183
|
+
left: {
|
|
184
|
+
borderTopRightRadius: number;
|
|
185
|
+
borderBottomRightRadius: number;
|
|
186
|
+
};
|
|
187
|
+
right: {
|
|
188
|
+
borderTopLeftRadius: number;
|
|
189
|
+
borderBottomLeftRadius: number;
|
|
190
|
+
};
|
|
191
|
+
middle: {
|
|
192
|
+
borderRadius: number;
|
|
193
|
+
};
|
|
194
|
+
controls: {
|
|
195
|
+
display: string;
|
|
196
|
+
gridArea: string;
|
|
197
|
+
};
|
|
198
|
+
icon: {
|
|
199
|
+
display: string;
|
|
200
|
+
alignItems: string;
|
|
201
|
+
padding: number[];
|
|
202
|
+
width: number;
|
|
203
|
+
transition: string;
|
|
204
|
+
boxSizing: string;
|
|
205
|
+
'&:last-child': {
|
|
206
|
+
paddingRight: number;
|
|
207
|
+
};
|
|
208
|
+
'& + $units': {
|
|
209
|
+
marginLeft: number;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
clearIcon: {
|
|
213
|
+
extend: string;
|
|
214
|
+
};
|
|
215
|
+
inputIcon: {
|
|
216
|
+
extend: string;
|
|
217
|
+
};
|
|
218
|
+
withIcons: {
|
|
219
|
+
paddingRight: number;
|
|
220
|
+
};
|
|
221
|
+
withControls: {};
|
|
222
|
+
invalid: {};
|
|
223
|
+
disabled: {};
|
|
224
|
+
invalidLabel: {};
|
|
225
|
+
error: {
|
|
226
|
+
fontSize: number;
|
|
227
|
+
};
|
|
228
|
+
info: {
|
|
229
|
+
fontSize: number;
|
|
230
|
+
paddingTop: number;
|
|
231
|
+
paddingLeft: number;
|
|
232
|
+
};
|
|
233
|
+
'error-top': {
|
|
234
|
+
position: string;
|
|
235
|
+
top: number;
|
|
236
|
+
left: number;
|
|
237
|
+
padding: number[];
|
|
238
|
+
zIndex: number;
|
|
239
|
+
};
|
|
240
|
+
'error-bottom': {
|
|
241
|
+
paddingTop: number;
|
|
242
|
+
paddingLeft: number;
|
|
243
|
+
};
|
|
244
|
+
loading: {};
|
|
245
|
+
tweakPreloader: {};
|
|
246
|
+
};
|
|
247
|
+
export declare type InputStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FC, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { IIconType } from '../Icon';
|
|
4
|
+
import { ListStyles } from './List.styles';
|
|
5
|
+
export interface IListItem {
|
|
6
|
+
item: ReactNode;
|
|
7
|
+
icon?: IIconType | ReactElement;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
shouldDrawSpacerAbove?: boolean;
|
|
10
|
+
shouldDrawSpacerBelow?: boolean;
|
|
11
|
+
withIconGap?: boolean;
|
|
12
|
+
testId?: string;
|
|
13
|
+
onClick(): void;
|
|
14
|
+
}
|
|
15
|
+
export interface IListProps extends ICommonProps {
|
|
16
|
+
tweakStyles?: ListStyles;
|
|
17
|
+
items: IListItem[];
|
|
18
|
+
testId?: string;
|
|
19
|
+
onClick?(): void;
|
|
20
|
+
}
|
|
21
|
+
export declare const List: FC<IListProps>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentStyles } from '../../types';
|
|
2
|
+
export declare const styles: {
|
|
3
|
+
root: {
|
|
4
|
+
minWidth: number;
|
|
5
|
+
backgroundColor: "#ffffff";
|
|
6
|
+
padding: number[];
|
|
7
|
+
listStyle: string;
|
|
8
|
+
margin: number;
|
|
9
|
+
};
|
|
10
|
+
item: {
|
|
11
|
+
display: string;
|
|
12
|
+
alignItems: string;
|
|
13
|
+
boxSizing: string;
|
|
14
|
+
fontSize: number;
|
|
15
|
+
whiteSpace: string;
|
|
16
|
+
minHeight: number;
|
|
17
|
+
padding: number[];
|
|
18
|
+
transition: string;
|
|
19
|
+
cursor: string;
|
|
20
|
+
};
|
|
21
|
+
disabledItem: {
|
|
22
|
+
cursor: string;
|
|
23
|
+
};
|
|
24
|
+
spacer: {
|
|
25
|
+
height: number;
|
|
26
|
+
backgroundColor: "#dde3ed";
|
|
27
|
+
};
|
|
28
|
+
withIconGap: {
|
|
29
|
+
paddingLeft: number;
|
|
30
|
+
};
|
|
31
|
+
icon: {
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
marginRight: number;
|
|
35
|
+
flexShrink: number;
|
|
36
|
+
};
|
|
37
|
+
content: {};
|
|
38
|
+
};
|
|
39
|
+
export declare type ListStyles = ComponentStyles<typeof styles>;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { ICommonProps } from '../../types';
|
|
3
|
+
import { ModalStyles } from './Modal.styles';
|
|
4
|
+
export declare type IModalPosition = 'center' | 'left' | 'right' | 'static';
|
|
5
|
+
export interface IModalProps extends ICommonProps {
|
|
6
|
+
tweakStyles?: ModalStyles;
|
|
7
|
+
title?: string;
|
|
8
|
+
size?: 'l' | 'm' | 's';
|
|
9
|
+
isFooterSticky?: boolean;
|
|
10
|
+
buttons?: ReactNode[];
|
|
11
|
+
buttonsAlign?: 'left' | 'center' | 'right';
|
|
12
|
+
children?: ReactNode | ReactNode[];
|
|
13
|
+
position?: IModalPosition;
|
|
14
|
+
hasCloseButton?: boolean;
|
|
15
|
+
hasOverlay?: boolean;
|
|
16
|
+
shouldCloseOnOverlayClick?: boolean;
|
|
17
|
+
shouldCloseOnEsc?: boolean;
|
|
18
|
+
shouldBlockScroll?: boolean;
|
|
19
|
+
isOpen?: boolean;
|
|
20
|
+
zIndex?: number;
|
|
21
|
+
testId?: string;
|
|
22
|
+
onEnter?(): void;
|
|
23
|
+
onClose?(): void;
|
|
24
|
+
onCompletelyHidden?(): void;
|
|
25
|
+
}
|
|
26
|
+
export declare const Modal: FC<IModalProps>;
|