Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
09f5db8
Merge branch 'docs/repin-b654-d7c4' into repin/ui-9cee-pro-f6c4
zabarov Nov 21, 2026
158ab57
Repin to pair ui-9ceecc24c988 and Pro pro-f6c43828e5f2
zabarov Nov 21, 2026
b872419
Pro pages and the standards map name the ports the pair and Pro carry
zabarov Nov 21, 2026
085ba50
Pro property view: an example of the record panel with sections
zabarov Nov 21, 2026
ab47106
Examples write what the pair reads: no console warnings on three pages
zabarov Nov 21, 2026
10e87d5
Record panel example: the page answers the star and says when the col…
zabarov Nov 21, 2026
efca02b
Fab: live back-to-top example in place of the code block
zabarov Nov 21, 2026
c8d5e06
Drawer: live example of a close refused while edits are unsaved
zabarov Nov 21, 2026
caca01c
Form fields guide: the signup form runs live
zabarov Nov 21, 2026
fa2b35b
Fab: drop the pressed state the component does not draw
zabarov Nov 21, 2026
ec351b8
Fab: the report block plays the page in the back-to-top example
zabarov Nov 21, 2026
590e083
Settings: theme and colour in one menu (C85), a live example of the c…
zabarov Nov 21, 2026
376716a
Badges in palette colours (R237): an example on the badges page and o…
zabarov Nov 21, 2026
ed77ad5
Guide: an accessibility section of six pages (C196)
zabarov Nov 21, 2026
bdf2e35
Filter drawer recipe: a price range with the from and to boxes under …
zabarov Nov 21, 2026
e91547b
Guide accessibility: an introduction on the standards page
zabarov Nov 21, 2026
034a9e0
Recipe «Остаток тарифа»: the tariff card and the row form of the mete…
zabarov Nov 21, 2026
894bf1e
Settings theme and colour example: the theme class one level above th…
zabarov Nov 21, 2026
e448888
Filter drawer example: a taller block so the price boxes clear the st…
zabarov Nov 21, 2026
4ebc039
Quota recipe: the row-form example in a sandbox frame like the card
zabarov Nov 21, 2026
ee49f8b
Merge remote-tracking branch 'origin/main' into release/docs-9cee-live
zabarov Nov 21, 2026
b166390
Drawer sizes and sides: widths that differ in the column, the close a…
zabarov Nov 21, 2026
1d28bfc
Filter drawer: the price boxes stay under the track in a phone-wide p…
zabarov Nov 21, 2026
30c7dcb
Filter drawer: the measure block around the price slider, not root-class
zabarov Nov 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion config/example-contrast-roles.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"schema": "ui-doc.example-contrast-roles.v1",
"runtime_revision": "b654460cad2ac1ffe146261f6c301be334d8e24d",
"runtime_revision": "9ceecc24c988209abc7d09e22522eeb7b73f485e",
"note": "Written by scripts/audit-example-contrast.mjs --refresh-roles from the pinned SIMAI Framework distribution (core.css and utility.full.css), in .theme-light and .theme-dark. Refresh with every repin.",
"themes": {
"light": {
Expand Down
12 changes: 6 additions & 6 deletions config/guide-release-values.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"schema": "ui-doc.guide-release-values.v1",
"why": "The release values the guide's pages name in its examples and tables, as last written. scripts/sync-framework-documentation-versions.php replaces each with the pinned value from scripts/materialize-framework-runtime.php and records the new set here; --check fails while a page still names an old one. `keep` lists the exact spans that name a past release on purpose; the sync leaves them as written.",
"values": {
"ui_runtime": "b654460cad2ac1ffe146261f6c301be334d8e24d",
"ui_record": "d2a771f662d609dee30557168b571e9d4ee8dab8",
"source": "049a2ba3dc7d35cbec5c95eb495fab71eddac6f2",
"ui_runtime": "9ceecc24c988209abc7d09e22522eeb7b73f485e",
"ui_record": "a5dd8d224895d24812f278734e86daf337bad93a",
"source": "e7ea89e07a3a6494cd2e6d4b4dd2dfa3a4d560cf",
"builder": "0ec5196b35aea0251abed7af4c60f498e1a3e411",
"pro": "d7c4cf661de08eee88ada0f292f805bdbd15aab3",
"pro": "f6c43828e5f22e65bc377806473007f01a0a51b8",
"pro_builder": "0ec5196b35aea0251abed7af4c60f498e1a3e411",
"release": "ui-b654460cad2a",
"npm_version": "5.20261120.1816"
"release": "ui-9ceecc24c988",
"npm_version": "5.20261121.928"
},
"keep": [
{
Expand Down
37 changes: 37 additions & 0 deletions config/guide-structure.json
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,43 @@
}
]
},
{
"slug": "accessibility",
"title": "Доступность",
"order": 85,
"pages": [
{
"slug": "what-framework-does",
"title": "Что SIMAI Framework делает за вас",
"order": 10
},
{
"slug": "standards",
"title": "Стандарты и заявление о соответствии",
"order": 20
},
{
"slug": "author-checklist",
"title": "Чек-лист автора",
"order": 30
},
{
"slug": "components",
"title": "Компоненты",
"order": 40
},
{
"slug": "display-settings",
"title": "Настройки отображения",
"order": 50
},
{
"slug": "statement-template",
"title": "Образец заявления о доступности",
"order": 60
}
]
},
{
"slug": "standards",
"title": "Стандарты, качество и ИИ",
Expand Down
12 changes: 11 additions & 1 deletion config/smart-reference.ru.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions content/en/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ Framework is open under Apache-2.0.
3. Open the page — the loader fetches what the page uses.

```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@simai-studio/ui@5.20261120.1816/distr/core/css/core.min.css">
<script>window.sfPath = 'https://cdn.jsdelivr.net/npm/@simai-studio/ui@5.20261120.1816/distr/';</script>
<script src="https://cdn.jsdelivr.net/npm/@simai-studio/ui@5.20261120.1816/distr/core/js/core.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@simai-studio/ui@5.20261121.928/distr/core/css/core.min.css">
<script>window.sfPath = 'https://cdn.jsdelivr.net/npm/@simai-studio/ui@5.20261121.928/distr/';</script>
<script src="https://cdn.jsdelivr.net/npm/@simai-studio/ui@5.20261121.928/distr/core/js/core.min.js"></script>

<sf-button text="Save"></sf-button>
```
Expand Down Expand Up @@ -80,7 +80,7 @@ Russian).

---

**SIMAI Framework** · release `ui-b654460cad2a` ·
**SIMAI Framework** · release `ui-9ceecc24c988` ·
[GitHub](https://github.com/simai/ui-source) ·
[Report a problem](https://github.com/simai/ui-source/issues) ·
[Versions](/ru/guide/connection/versions/) ·
Expand Down
2 changes: 1 addition & 1 deletion content/ru/components/actions/buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Кнопки

:badge[sf-button]{variant=outline scheme=on-surface size=1/2} :badge[1.22.1]{variant=outline scheme=on-surface size=1/2}
:badge[sf-button]{variant=outline scheme=on-surface size=1/2} :badge[1.22.2]{variant=outline scheme=on-surface size=1/2}

Кнопка запускает действие на текущей странице: сохраняет изменения, отправляет
форму или подтверждает выбор. Для перехода на другую страницу берите ссылку, для
Expand Down
2 changes: 1 addition & 1 deletion content/ru/components/actions/clipboard.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Копирование

:badge[sf-clipboard]{variant=outline scheme=on-surface size=1/2} :badge[1.6.0]{variant=outline scheme=on-surface size=1/2}
:badge[sf-clipboard]{variant=outline scheme=on-surface size=1/2} :badge[1.7.0]{variant=outline scheme=on-surface size=1/2}

Любая кнопка может положить в буфер обмена готовое значение или текст другого
элемента: команду, ключ, код заказа. Ставьте её рядом с текстом, который
Expand Down
34 changes: 14 additions & 20 deletions content/ru/components/actions/fab.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,12 @@ profile: reference

## Состояния

Наведение и нажатие кнопка показывает сама.

### Нажата

Класс `active` оставляет кнопке тон нажатия. Для кнопки-переключателя
сообщайте состояние атрибутом `aria-pressed`: класс меняет только вид.

:::example {id="components/fab/state-active" label="Нажата"}
:::
Наведение и нажатие кнопка показывает сама. Нажатого состояния у неё нет:
плавающая кнопка с заливкой не бывает переключателем, и класс `active` или
`aria-pressed` на ней ничего не рисуют (Framework пишет об этом в консоль).
Переключатель делают из [кнопки](/ru/components/actions/buttons/) или
[кнопки с иконкой](/ru/components/actions/icon-buttons/) вида `outline` или
`ghost`.

### Недоступна

Expand Down Expand Up @@ -98,21 +95,18 @@ profile: reference
нижнем конечном углу кнопку, показывает её после прокрутки страницы больше
чем на 200 пикселей и по нажатию возвращает страницу к началу (без анимации
при системной настройке уменьшения движения). Параметры: `icon` (по
умолчанию `chevron_left`, повёрнутая стрелка), `size`, `type`, `scheme`;
`attrs` переносятся на кнопку. Задайте кнопке `aria-label`, например «Наверх».
Событий компонент не отправляет.
умолчанию `arrow_upward`, стрелка вверх), `size`, `type`, `scheme`;
`attrs` переносятся на кнопку. Без `aria-label` кнопка называется словом
«Наверх» на языке страницы. Событий компонент не отправляет.

`SF.Loader` появляется к событию `sf-loader-init` на `window`;
`SF.Loader.ready('Fab', callback)` передаёт класс, когда он зарегистрирован.
Прокрутите текст в примере: кнопка появится в его нижнем углу. Код — на
вкладке JavaScript; первая его часть нужна только рамке документации: рамка
не прокручивается как страница, и страницу в ней играет блок с текстом.

```js
const whenLoader = (run) => (window.SF?.Loader ? run() : window.addEventListener('sf-loader-init', run, {once: true}));

whenLoader(() => SF.Loader.ready('Fab', (Fab) => {
const fab = new Fab({attrs: {'aria-label': 'Наверх'}});
document.body.append(fab.render());
}));
```
:::example {id="components/fab/back-to-top" label="Кнопка «Наверх»"}
:::

## Классы

Expand Down
23 changes: 21 additions & 2 deletions content/ru/components/actions/icon-buttons.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Кнопки с иконкой

:badge[sf-icon-button]{variant=outline scheme=on-surface size=1/2} :badge[1.19.0]{variant=outline scheme=on-surface size=1/2}
:badge[sf-icon-button]{variant=outline scheme=on-surface size=1/2} :badge[1.20.0]{variant=outline scheme=on-surface size=1/2}

Кнопка с иконкой запускает действие без видимой подписи: редактировать,
удалить, открыть настройки. Берите её, когда иконка общепринята и места мало;
Expand Down Expand Up @@ -67,6 +67,24 @@ profile: reference
:::example {id="components/icon-buttons/plain" label="Кнопки без фона"}
:::

### Переключатель

`sf-icon-button--toggle` • [справочник](#классы)

Тихая кнопка «включено — выключено» в ряду управления: переключатель вида,
панели, избранного. Состояние показывает подложка, а не значок: значок в обоих
состояниях остаётся контурным. Выключенная — без заливки и рамки, значок
`--sf-on-surface-icon`, при наведении появляется ступень контейнера
поверхности. Включённая (`aria-pressed="true"` или
`sf-icon-button--pressed`) — мягкая заливка `--sf-primary-container` и тонкая
рамка `--sf-primary` 1 px внутри кнопки, размер не меняется. Два признака
вместо одного цвета: включённую видно и без различения цветов. Вид всегда
нейтральный, классы схемы и статуса на него не действуют. В смарт-компоненте
это `appearance="toggle"` у [sf-button-icon](/ru/smart/actions/icon-buttons/).

:::example {id="components/icon-buttons/toggle" label="Переключатели"}
:::

### Схема

`sf-icon-button--primary`, `sf-icon-button--on-surface`, `sf-icon-button--on-surface-variant`, `sf-icon-button--danger` • [справочник](#классы)
Expand Down Expand Up @@ -245,7 +263,7 @@ whenLoader(() => SF.Loader.ready('IconButtons', (IconButtons) => {
|:---|:---|
| Блок | `sf-icon-button` |
| Части | `sf-icon-button-spinner`, `sf-icon-button-state-loading` |
| Модификаторы | `sf-icon-button--close`, `sf-icon-button--default`, `sf-icon-button--height-high`, `sf-icon-button--height-highest`, `sf-icon-button--height-low`, `sf-icon-button--icon`, `sf-icon-button--outline`, `sf-icon-button--plain`, `sf-icon-button--pressed`, `sf-icon-button--primary` |
| Модификаторы | `sf-icon-button--close`, `sf-icon-button--default`, `sf-icon-button--height-high`, `sf-icon-button--height-highest`, `sf-icon-button--height-low`, `sf-icon-button--icon`, `sf-icon-button--outline`, `sf-icon-button--plain`, `sf-icon-button--pressed`, `sf-icon-button--primary`, `sf-icon-button--toggle` |
| Размеры | `sf-icon-button--size-1`, `sf-icon-button--size-1/2`, `sf-icon-button--size-1/3`, `sf-icon-button--size-2`, `sf-icon-button--size-3` |

Классы и переменные собраны из CSS выпуска и обновляются вместе с ним.
Expand Down Expand Up @@ -293,6 +311,7 @@ whenLoader(() => SF.Loader.ready('IconButtons', (IconButtons) => {
| `--sf-icon-button--border-top-right-radius` | не задана; задают модификаторы, например `.sf-icon-button.segment-start`: `var(--sf-radius-square)` | `border-start-end-radius` |
| `--sf-icon-button--border-top-width` | `var(--sf-icon-button-border-width, 0)` | `padding-top`, `border-top-width` |
| `--sf-icon-button--border-width` | не задана; задают модификаторы, например `.sf-icon-button--outline:where(:not(.sf-icon-button--close))`: `var(--sf-icon-button-border-width, var(--sf-px))` | `border-width` |
| `--sf-icon-button--box-shadow` | не задана; задают модификаторы, например `.sf-icon-button.sf-icon-button.sf-icon-button.sf-icon-button.sf-icon-button.sf-icon-button--toggle:is(.sf-icon-button--pressed, [aria-pressed=true]):not(:disabled):not([aria-disabled=true]):not(.disabled)`: `inset 0 0 0 var(--sf-px) var(--sf-primary)` | `box-shadow` |
| `--sf-icon-button--focus-ink` | не задана; задают модификаторы, например `.sf-icon-button.sf-icon-button--default.sf-icon-button--primary:where(:not(.sf-icon-button--close))`: `var(--sf-on-primary)` | `--sf-icon-button--focus-inset` |
| `--sf-icon-button--focus-inset` | не задана; задают модификаторы, например `.sf-icon-button:not(:disabled):not(.disabled).focus-visible`: `inset 0 0 0 var(--sf-focus--offset) var(--sf-icon-button--focus-ink, transparent)` | `box-shadow` |
| `--sf-icon-button--on-place-ink` | не задана; задают модификаторы, например `.sf-icon-button.sf-icon-button--default:is(.sf-icon-button--on-surface, .sf-icon-button--on-surface-variant, .sf-icon-button--secondary).sf-icon-button--icon`: `color-mix(in srgb, var(--sf-on-primary), var(--sf-place--ink) 0%)` | `--sf-icon--color` |
Expand Down
2 changes: 1 addition & 1 deletion content/ru/components/content/tags.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Теги

:badge[sf-tag]{variant=outline scheme=on-surface size=1/2} :badge[1.9.0]{variant=outline scheme=on-surface size=1/2}
:badge[sf-tag]{variant=outline scheme=on-surface size=1/2} :badge[1.10.0]{variant=outline scheme=on-surface size=1/2}

Тег компактно показывает категорию, выбранное значение, фильтр или статус.
Сам по себе тег — надпись, а не действие: кнопкой становится только тег, который
Expand Down
15 changes: 15 additions & 0 deletions content/ru/components/feedback/badges.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,21 @@ profile: reference
:::example {id="components/badges/overview" label="Цвета бейджа в каждом виде"}
:::

### Цвет из палитры

`--sf-badge-background-color`, `--sf-badge-color` • [справочник](#переменные)

Цвет, который приходит из данных, — раздел каталога, метка проекта, — берите
только из статической палитры, по имени оттенка: `teal`, `pink`, `violet`.
Бейдж получает его через две публичные переменные: заливка — оттенок 50 на
ступени заливки 24 (`--sf-teal-50--alfa-24`), текст — `--sf-on-surface`.
Так бейдж читается одинаково в светлой и тёмной теме. Свой код цвета
(`#00838f`) в бейдж не ставьте, а статусы — успех, ошибку — оставьте классам
статуса. Разметка — на вкладке HTML.

:::example {id="components/badges/palette" label="Бейджи цветом из палитры"}
:::

### Размер

`sf-badge--size-1/3`, `sf-badge--size-1/2`, `sf-badge--size-1` • [справочник](#классы)
Expand Down
2 changes: 1 addition & 1 deletion content/ru/components/feedback/toast.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Всплывающие сообщения

:badge[sf-toast]{variant=outline scheme=on-surface size=1/2} :badge[1.8.0]{variant=outline scheme=on-surface size=1/2}
:badge[sf-toast]{variant=outline scheme=on-surface size=1/2} :badge[1.9.0]{variant=outline scheme=on-surface size=1/2}

Всплывающее сообщение коротко сообщает результат действия поверх интерфейса
и не блокирует дальнейшую работу. Для постоянного текста внутри страницы
Expand Down
2 changes: 1 addition & 1 deletion content/ru/components/forms/country-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Код страны

:badge[sf-country-code]{variant=outline scheme=on-surface size=1/2} :badge[1.12.1]{variant=outline scheme=on-surface size=1/2}
:badge[sf-country-code]{variant=outline scheme=on-surface size=1/2} :badge[1.13.0]{variant=outline scheme=on-surface size=1/2}

Поле кода страны принимает номер телефона вместе с международным кодом: флаг
показывает страну, список позволяет её сменить, маска форматирует номер по
Expand Down
18 changes: 17 additions & 1 deletion content/ru/components/forms/inputs.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ profile: reference

# Текстовые поля

:badge[sf-input]{variant=outline scheme=on-surface size=1/2} :badge[1.14.1]{variant=outline scheme=on-surface size=1/2}
:badge[sf-input]{variant=outline scheme=on-surface size=1/2} :badge[1.14.2]{variant=outline scheme=on-surface size=1/2}

Текстовое поле принимает короткое значение в одну строку: имя, адрес почты,
пароль или поисковый запрос. Для текста с переносами строк берите
Expand Down Expand Up @@ -71,6 +71,22 @@ profile: reference
:::example {id="components/inputs/sizes" label="Размеры текстового поля"}
:::

### Ширина

`sf-field--width-short`, `sf-field--width-medium`, `sf-field--width-long` • [справочник](#классы)

Ширину поля задают по значению, для которого оно сделано: `short` — 20 знаков
лестницы ширин (дата, число, код), `medium` — 28 (имя, телефон), `long` — 44
(путь, e-mail, адрес). Класс ставят на корень поля (`.sf-input`): поле не шире
этой ступени и не шире своего контейнера. Знаки следуют размеру текста,
плотности и телефону: 160, 224 и 352 px при тексте 16, 140, 196 и 308 px в
компактной плотности и на телефоне. Без класса поле занимает всю ширину
контейнера. Смарт-компонент `sf-input` пишет тот же класс настройкой
`width="short | medium | long"`, поэтому ширина одинакова с первого кадра.

:::example {id="components/inputs/width" label="Ширина поля по значению"}
:::

### Тип значения

Тип задаёт нативный атрибут `type`: `text`, `email`, `password`, `search`,
Expand Down
Loading
Loading