Skip to content

Commit 7ff68c8

Browse files
committed
fix: fixed the linter issues
1 parent d8844c5 commit 7ff68c8

File tree

2 files changed

+54
-57
lines changed

2 files changed

+54
-57
lines changed

src/components/Disclosure/README-ru.md

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ code={`
258258
<UIKit.Disclosure.Details>
259259
Custom Details
260260
</UIKit.Disclosure.Details>
261-
</UIKit.Disclosure>
261+
</UIKit.Disclosure>
262262
</UIKit.Flex>
263263
</ExampleBlock>
264264
@@ -292,9 +292,7 @@ LANDING_BLOCK-->
292292
</Flex>
293293
)}
294294
</Disclosure.Summary>
295-
<Disclosure.Details>
296-
Custom Details
297-
</Disclosure.Details>
295+
<Disclosure.Details>Custom Details</Disclosure.Details>
298296
</Disclosure>
299297
```
300298

@@ -334,38 +332,38 @@ LANDING_BLOCK-->
334332

335333
### Disclosure
336334

337-
| Имя | Описание |Тип | Значение по умолчанию |
338-
| :-------------- | :------------------------------------------------------------- | :--------------------------------- | :-------------------- |
339-
| size | Размер раскрытия |`"m"` `"l"` `"xl"` | `"m"` |
340-
| className | Имя CSS-класса корневого элемента |`string` | |
341-
| disabled | Отключенное состояние |`boolean` | `false` |
342-
| defaultExpanded | Состояние раскрытия по умолчанию |`boolean` | `false` |
343-
| expanded | Контролируемое состояние раскрытия | `boolean` | |
344-
| arrowPosition | Положение контрола |`"start"` `"end"` `"left"` `"right"`| `"left"` |
345-
| summary | Краткое описание контента |`React.ReactNode` | |
346-
| keepMounted | Сохранение контента в DOM | `boolean` | `true` |
347-
| onUpdate | Обратный вызов, срабатывающий при изменении состояния раскрытия | `(expanded: boolean) => void` | |
348-
| onSummaryKeyDown| Обратный вызов, срабатывающий при фокусе заголовка |`(e: React.KeyboardEvent<HTMLButtonElement>) => void`| |
349-
| children | Контент | `React.ReactNode` | |
350-
| qa | Идентификатор для тестирования | `string` | |
335+
| Имя | Описание | Тип | Значение по умолчанию |
336+
| :--------------- | :-------------------------------------------------------------- | :---------------------------------------------------- | :-------------------- |
337+
| size | Размер раскрытия | `"m"` `"l"` `"xl"` | `"m"` |
338+
| className | Имя CSS-класса корневого элемента | `string` | |
339+
| disabled | Отключенное состояние | `boolean` | `false` |
340+
| defaultExpanded | Состояние раскрытия по умолчанию | `boolean` | `false` |
341+
| expanded | Контролируемое состояние раскрытия | `boolean` | |
342+
| arrowPosition | Положение контрола | `"start"` `"end"` `"left"` `"right"` | `"left"` |
343+
| summary | Краткое описание контента | `React.ReactNode` | |
344+
| keepMounted | Сохранение контента в DOM | `boolean` | `true` |
345+
| onUpdate | Обратный вызов, срабатывающий при изменении состояния раскрытия | `(expanded: boolean) => void` | |
346+
| onSummaryKeyDown | Обратный вызов, срабатывающий при фокусе заголовка | `(e: React.KeyboardEvent<HTMLButtonElement>) => void` | |
347+
| children | Контент | `React.ReactNode` | |
348+
| qa | Идентификатор для тестирования | `string` | |
351349

352350
### Disclosure.Summary
353351

354-
| Имя | Описание | Тип | Значение по умолчанию |
355-
| :------- | :------------------------------ |:---------------------------------------------- | :-------------------- |
356-
| children | Функция рендеринга |`(props, defaultSummary) => React.ReactElement` | |
357-
| qa | Идентификатор для тестирования |`string` | `disclosure-summary` |
352+
| Имя | Описание | Тип | Значение по умолчанию |
353+
| :------- | :----------------------------- | :---------------------------------------------- | :-------------------- |
354+
| children | Функция рендеринга | `(props, defaultSummary) => React.ReactElement` | |
355+
| qa | Идентификатор для тестирования | `string` | `disclosure-summary` |
358356

359357
### Disclosure.Details
360358

361-
| Имя | Описание | Тип | Значение по умолчанию |
362-
| :------- | :------------------------------ | :---------------- | :-------------------- |
363-
| children | Контент | `React.ReactNode` | |
364-
| qa | Идентификатор для тестирования | `string` | `disclosure-details` |
359+
| Имя | Описание | Тип | Значение по умолчанию |
360+
| :------- | :----------------------------- | :---------------- | :-------------------- |
361+
| children | Контент | `React.ReactNode` | |
362+
| qa | Идентификатор для тестирования | `string` | `disclosure-details` |
365363

366364
## CSS API
367365

368-
| Name | Description |
369-
| :----------------------------------- | :------------------------------------------ |
370-
| `--g-disclosure-text-color` | Цвет текста заголовка trigger |
371-
| `--g-disclosure-text-color-disabled` | Цвет текста заблокированного заголовка |
366+
| Name | Description |
367+
| :----------------------------------- | :------------------------------------- |
368+
| `--g-disclosure-text-color` | Цвет текста заголовка trigger |
369+
| `--g-disclosure-text-color-disabled` | Цвет текста заблокированного заголовка |

src/components/Disclosure/README.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ LANDING_BLOCK-->
119119

120120
`right`: Arrow is positioned on the right of the header.
121121

122-
`start`: Arrow is positioned at the start of the header (differs from `left` when using RTL).
122+
`start`: Arrow is positioned at the start of the header (differs from `left` when using RTL).
123123

124124
`end`: Arrow is positioned at the end of the header (differs from `right` when using RTL).
125125

@@ -258,7 +258,7 @@ code={`
258258
<UIKit.Disclosure.Details>
259259
Custom Details
260260
</UIKit.Disclosure.Details>
261-
</UIKit.Disclosure>
261+
</UIKit.Disclosure>
262262
</UIKit.Flex>
263263
</ExampleBlock>
264264
@@ -292,9 +292,7 @@ LANDING_BLOCK-->
292292
</Flex>
293293
)}
294294
</Disclosure.Summary>
295-
<Disclosure.Details>
296-
Custom Details
297-
</Disclosure.Details>
295+
<Disclosure.Details>Custom Details</Disclosure.Details>
298296
</Disclosure>
299297
```
300298

@@ -334,33 +332,34 @@ LANDING_BLOCK-->
334332

335333
### Disclosure
336334

337-
| Name | Description | Type | Default |
338-
| :-------------- | :-------------------------------------------------------------- | :--------------------------------- | :-------------------- |
339-
| size | Disclosure size |`"m"` `"l"` `"xl"` | `"m"` |
340-
| className | CSS class name of the root element |`string` | |
341-
| disabled | Disabled state |`boolean` | `false` |
342-
| defaultExpanded | Default opening state |`boolean` | `false` |
343-
| expanded | Controlled opening state | `boolean` | |
344-
| arrowPosition | Control position |`"start"` `"end"` `"left"` `"right"`| `"left"` |
345-
| summary | Content summary |`React.ReactNode` | |
346-
| keepMounted | Keep content in DOM | `boolean` | `true` |
347-
| onUpdate | Callback is fired when the expand/collapse state is changed. | `(expanded: boolean) => void` | |
348-
| onSummaryKeyDown| Callback fires on keyboard events when summary is focused. |`(e: React.KeyboardEvent<HTMLButtonElement>) => void`| |
349-
| children | Content | `React.ReactNode` | |
350-
| qa | Test identifier | `string` | |
335+
| Name | Description | Type | Default |
336+
| :--------------- | :----------------------------------------------------------- | :---------------------------------------------------- | :------- |
337+
| size | Disclosure size | `"m"` `"l"` `"xl"` | `"m"` |
338+
| className | CSS class name of the root element | `string` | |
339+
| disabled | Disabled state | `boolean` | `false` |
340+
| defaultExpanded | Default opening state | `boolean` | `false` |
341+
| expanded | Controlled opening state | `boolean` | |
342+
| arrowPosition | Control position | `"start"` `"end"` `"left"` `"right"` | `"left"` |
343+
| summary | Content summary | `React.ReactNode` | |
344+
| keepMounted | Keep content in DOM | `boolean` | `true` |
345+
| onUpdate | Callback is fired when the expand/collapse state is changed. | `(expanded: boolean) => void` | |
346+
| onSummaryKeyDown | Callback fires on keyboard events when summary is focused. | `(e: React.KeyboardEvent<HTMLButtonElement>) => void` | |
347+
| children | Content | `React.ReactNode` | |
348+
| qa | Test identifier | `string` | |
351349

352350
### Disclosure.Summary
353-
| Name | Description | Type | Default |
354-
| :------- | :------------------------------ |:---------------------------------------------- | :-------------------- |
355-
| children | Render function |`(props, defaultSummary) => React.ReactElement` | |
356-
| qa | Test identifier |`string` | `disclosure-summary` |
351+
352+
| Name | Description | Type | Default |
353+
| :------- | :-------------- | :---------------------------------------------- | :------------------- |
354+
| children | Render function | `(props, defaultSummary) => React.ReactElement` | |
355+
| qa | Test identifier | `string` | `disclosure-summary` |
357356

358357
### Disclosure.Details
359358

360-
| Name | Description | Type | Default |
361-
| :------- | :------------------------------ | :---------------- | :-------------------- |
362-
| children | Content | `React.ReactNode` | |
363-
| qa | Test identifier | `string` | `disclosure-details` |
359+
| Name | Description | Type | Default |
360+
| :------- | :-------------- | :---------------- | :------------------- |
361+
| children | Content | `React.ReactNode` | |
362+
| qa | Test identifier | `string` | `disclosure-details` |
364363

365364
## CSS API
366365

0 commit comments

Comments
 (0)