diff --git a/packages/react-ui/.styleguide/helpers.js b/packages/react-ui/.styleguide/helpers.js index 7095ab9a751..3e588c60e8c 100644 --- a/packages/react-ui/.styleguide/helpers.js +++ b/packages/react-ui/.styleguide/helpers.js @@ -82,6 +82,7 @@ const getCommonSections = () => { { name: 'Roadmap', content: path.join(__dirname, '../ROADMAP.md') }, { name: 'Migration', content: path.join(__dirname, '../MIGRATION.md'), exampleMode: 'expand' }, { name: 'LocaleContext', content: path.join(__dirname, '../lib/locale/LOCALECONTEXT.md') }, + { name: 'DataTids', content: path.join(__dirname, '../internal/DataTids/DATATIDS.md') }, { name: 'SSR', content: path.join(__dirname, '../SSR.md') }, { name: 'Mobiles', content: path.join(__dirname, '../MOBILES.md') }, { name: 'Accessibility', content: path.join(__dirname, '../../../accessibility.md') }, diff --git a/packages/react-ui/components/Autocomplete/Autocomplete.tsx b/packages/react-ui/components/Autocomplete/Autocomplete.tsx index d40d4bec104..3fdc8f2101f 100644 --- a/packages/react-ui/components/Autocomplete/Autocomplete.tsx +++ b/packages/react-ui/components/Autocomplete/Autocomplete.tsx @@ -80,6 +80,10 @@ export interface AutocompleteState { isMobileOpened: boolean; } +export const AutocompleteDataTids = { + root: 'Autocomplete__root', +} as const; + /** * Стандартный инпут с подсказками. * @@ -212,7 +216,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 ad87edbe088..e954792e8a1 100644 --- a/packages/react-ui/components/Button/Button.tsx +++ b/packages/react-ui/components/Button/Button.tsx @@ -163,6 +163,10 @@ export interface ButtonState { focusedByTab: boolean; } +export const ButtonDataTids = { + root: 'Button__root', +} as const; + @rootNode export class Button extends React.Component { public static __KONTUR_REACT_UI__ = 'Button'; @@ -374,7 +378,7 @@ export class Button extends React.Component { return ( -