From cd0e41802ecf6a6c9292e871e67f077187c9995e Mon Sep 17 00:00:00 2001 From: HelenaIsh Date: Thu, 26 May 2022 11:33:15 +0300 Subject: [PATCH 01/40] chore: add data-tid and export --- .../components/Autocomplete/Autocomplete.tsx | 11 +++++++- .../react-ui/components/Button/Button.tsx | 6 +++- .../react-ui/components/Center/Center.tsx | 5 ++++ .../react-ui/components/Checkbox/Checkbox.tsx | 5 ++++ .../react-ui/components/ComboBox/ComboBox.tsx | 6 +++- .../CurrencyInput/CurrencyInput.tsx | 5 ++++ .../CurrencyLabel/CurrencyLabel.tsx | 6 +++- .../components/DateInput/DateInput.tsx | 5 +++- .../components/DatePicker/DatePicker.tsx | 11 +++++++- .../react-ui/components/DatePicker/Picker.tsx | 9 ++++-- .../react-ui/components/Dropdown/Dropdown.tsx | 5 ++++ .../components/DropdownMenu/DropdownMenu.tsx | 6 +++- .../components/FileUploader/FileUploader.tsx | 12 ++++++-- .../react-ui/components/FxInput/FxInput.tsx | 6 +++- .../react-ui/components/Gapped/Gapped.tsx | 9 ++++-- .../components/GlobalLoader/GlobalLoader.tsx | 6 +++- packages/react-ui/components/Group/Group.tsx | 6 +++- packages/react-ui/components/Hint/Hint.tsx | 9 ++++-- packages/react-ui/components/Input/Input.tsx | 6 +++- packages/react-ui/components/Kebab/Kebab.tsx | 6 +++- packages/react-ui/components/Link/Link.tsx | 6 +++- .../react-ui/components/Loader/Loader.tsx | 12 ++++++-- .../components/MenuHeader/MenuHeader.tsx | 5 ++++ .../react-ui/components/MenuItem/MenuItem.tsx | 8 +++++- .../MenuSeparator/MenuSeparator.tsx | 6 +++- packages/react-ui/components/Modal/Modal.tsx | 12 ++++++-- .../react-ui/components/Modal/ModalBody.tsx | 6 +++- .../react-ui/components/Modal/ModalClose.tsx | 6 +++- .../react-ui/components/Modal/ModalFooter.tsx | 5 ++++ .../react-ui/components/Modal/ModalHeader.tsx | 6 ++++ .../react-ui/components/Paging/Paging.tsx | 18 ++++++++---- .../PasswordInput/PasswordInput.tsx | 14 ++++++++-- packages/react-ui/components/Radio/Radio.tsx | 6 +++- .../components/RadioGroup/RadioGroup.tsx | 6 +++- .../ResponsiveLayout/ResponsiveLayout.tsx | 6 +++- .../ScrollContainer/ScrollContainer.tsx | 14 ++++++++-- .../react-ui/components/Select/Select.tsx | 10 ++++++- .../react-ui/components/SidePage/SidePage.tsx | 9 ++++-- .../components/SidePage/SidePageBody.tsx | 6 +++- .../components/SidePage/SidePageContainer.tsx | 6 +++- .../components/SidePage/SidePageFooter.tsx | 6 +++- .../components/SidePage/SidePageHeader.tsx | 9 ++++-- .../react-ui/components/Spinner/Spinner.tsx | 6 +++- .../react-ui/components/Sticky/Sticky.tsx | 6 +++- .../react-ui/components/Switcher/Switcher.tsx | 6 +++- .../react-ui/components/Tabs/Indicator.tsx | 5 ++++ packages/react-ui/components/Tabs/Tab.tsx | 6 +++- packages/react-ui/components/Tabs/Tabs.tsx | 6 +++- .../react-ui/components/Textarea/Textarea.tsx | 6 +++- .../components/Textarea/TextareaCounter.tsx | 6 +++- packages/react-ui/components/Toast/Toast.tsx | 6 +++- .../react-ui/components/Toast/ToastStatic.tsx | 6 +++- .../react-ui/components/Toast/ToastView.tsx | 12 ++++++-- .../react-ui/components/Toggle/Toggle.tsx | 6 +++- packages/react-ui/components/Token/Token.tsx | 6 +++- .../components/TokenInput/TokenInput.tsx | 6 +++- .../components/TokenInput/TokenInputMenu.tsx | 5 ++++ .../react-ui/components/Tooltip/Tooltip.tsx | 6 +++- .../components/TooltipMenu/TooltipMenu.tsx | 6 +++- .../react-ui/internal/Calendar/Calendar.tsx | 14 +++++----- .../react-ui/internal/Calendar/MonthView.tsx | 12 ++++++-- .../internal/CustomComboBox/ComboBoxMenu.tsx | 28 +++++++++++++++---- .../internal/DateSelect/DateSelect.tsx | 9 ++++-- .../FileUploaderFile/FileUploaderFile.tsx | 18 ++++++++---- .../FileUploaderFileList.tsx | 6 +++- .../internal/InputLikeText/InputLikeText.tsx | 8 +++++- .../internal/InternalMenu/InternalMenu.tsx | 5 ++++ .../internal/MaskedInput/MaskedInput.tsx | 6 +++- packages/react-ui/internal/Menu/Menu.tsx | 5 ++++ .../internal/MobilePopup/MobilePopup.tsx | 7 +++++ packages/react-ui/internal/Popup/Popup.tsx | 12 ++++++-- packages/react-ui/internal/Popup/PopupPin.tsx | 6 +++- .../react-ui/internal/PopupMenu/PopupMenu.tsx | 11 ++++++-- 73 files changed, 473 insertions(+), 102 deletions(-) diff --git a/packages/react-ui/components/Autocomplete/Autocomplete.tsx b/packages/react-ui/components/Autocomplete/Autocomplete.tsx index c045bfe4e3f..dcaad53ad74 100644 --- a/packages/react-ui/components/Autocomplete/Autocomplete.tsx +++ b/packages/react-ui/components/Autocomplete/Autocomplete.tsx @@ -77,6 +77,10 @@ export interface AutocompleteState { isMobileOpened: boolean; } +export const autocompleteDataTid = { + root: 'Autocomplete__root', +}; + /** * Стандартный инпут с подсказками. * @@ -209,7 +213,12 @@ export class Autocomplete extends React.Component - + {isMobile ? this.renderMobileMenu() : this.renderMenu()} diff --git a/packages/react-ui/components/Button/Button.tsx b/packages/react-ui/components/Button/Button.tsx index d236856ff88..96805c093a4 100644 --- a/packages/react-ui/components/Button/Button.tsx +++ b/packages/react-ui/components/Button/Button.tsx @@ -164,6 +164,10 @@ export interface ButtonState { focusedByTab: boolean; } +export const buttonDataTid = { + root: 'Button__root', +}; + @rootNode export class Button extends React.Component { public static __KONTUR_REACT_UI__ = 'Button'; @@ -382,7 +386,7 @@ export class Button extends React.Component { return ( -