Skip to content

Conversation

@ivancheprasov
Copy link

Added proper docs for the landing page in terms of https://st.yandex-team.ru/DATAUI-3464

@gravity-ui
Copy link
Contributor

gravity-ui bot commented Nov 18, 2025

🎭 Component Tests Report is ready.

@ivancheprasov ivancheprasov marked this pull request as draft November 18, 2025 17:14
@ivancheprasov ivancheprasov force-pushed the feat-disclosure-landing-docs branch from 61307ed to 543da49 Compare November 18, 2025 17:20
@ivancheprasov ivancheprasov marked this pull request as ready for review November 18, 2025 17:24
`left`: Стрелка расположена слева от заголовка (используется по умолчанию).

### Свойства Disclosure.Details
`right`: Стрелка расположена справа от заголовка.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right and left props are deprecated. Let's not mention them in docs.

| disabled | Отключенное состояние | `boolean` | `false` |
| defaultExpanded | Состояние раскрытия по умолчанию | `boolean` | `false` |
| expanded | Контролируемое состояние раскрытия | `boolean` | |
| arrowPosition | Положение контрола | `"start"` `"end"` `"left"` `"right"` | `"left"` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please, fix the default - correct is start

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Turns out it has already been changed https://github.com/gravity-ui/uikit/blob/main/src/components/Disclosure/Disclosure.tsx#L57. The docs were outdated


| Имя | Описание |
| :----------------------------------- | :------------------------------------- |
| `--g-disclosure-text-color` | Цвет текста заголовка trigger |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Цвет текста краткого описания контента

| Имя | Описание |
| :----------------------------------- | :------------------------------------- |
| `--g-disclosure-text-color` | Цвет текста заголовка trigger |
| `--g-disclosure-text-color-disabled` | Цвет текста заблокированного заголовка |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Цвет текста краткого описания контента в заблокированном состоянии


| Имя | Описание | Тип | Значение по умолчанию |
| :--------------- | :-------------------------------------------------------------- | :---------------------------------------------------- | :-------------------- |
| size | Размер раскрытия | `"m"` `"l"` `"xl"` | `"m"` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Размер компонента

| expanded | Контролируемое состояние раскрытия | `boolean` | |
| arrowPosition | Положение контрола | `"start"` `"end"` `"left"` `"right"` | `"left"` |
| summary | Краткое описание контента | `React.ReactNode` | |
| keepMounted | Сохранение контента в DOM | `boolean` | `true` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Сохранение контента в DOM при скрытии

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants