@sberbusiness/triplex-next-mcp-server 1.44.0-beta → 1.46.0-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/README.md +7 -6
  2. package/bundle/components/AlertContext.md +11 -8
  3. package/bundle/components/AlertProcess.md +13 -10
  4. package/bundle/components/Badge.md +6 -3
  5. package/bundle/components/Button.md +46 -43
  6. package/bundle/components/ButtonDropdownExtended.md +3 -2
  7. package/bundle/components/ButtonIcon.md +7 -4
  8. package/bundle/components/Calendar.md +62 -59
  9. package/bundle/components/Caption.md +26 -23
  10. package/bundle/components/CardAction.md +615 -0
  11. package/bundle/components/Checkbox.md +32 -29
  12. package/bundle/components/CheckboxTreeExtended.md +9 -5
  13. package/bundle/components/Chip.md +51 -47
  14. package/bundle/components/ChipMonthYearPicker.md +344 -0
  15. package/bundle/components/ChipMultiselect.md +1251 -0
  16. package/bundle/components/ChipOptions.md +329 -0
  17. package/bundle/components/ChipSort.md +333 -0
  18. package/bundle/components/ChipSuggest.md +587 -0
  19. package/bundle/components/CodeText.md +26 -23
  20. package/bundle/components/Col.md +1 -2
  21. package/bundle/components/CollapsibleTree.md +8 -5
  22. package/bundle/components/DateField.md +222 -303
  23. package/bundle/components/DatePickerExtended.md +3 -1
  24. package/bundle/components/Dropdown.md +33 -28
  25. package/bundle/components/EmptyView.md +12 -5
  26. package/bundle/components/FooterPage.md +6 -2
  27. package/bundle/components/FormField.md +47 -42
  28. package/bundle/components/FormGroup.md +192 -52
  29. package/bundle/components/Header.md +491 -211
  30. package/bundle/components/HeaderPage.md +6 -2
  31. package/bundle/components/HelpBox.md +7 -1
  32. package/bundle/components/ImageGallery.md +33 -34
  33. package/bundle/components/ImageGalleryExtended.md +33 -34
  34. package/bundle/components/Island.md +16 -13
  35. package/bundle/components/IslandAccordion.md +443 -152
  36. package/bundle/components/IslandWidget.md +622 -157
  37. package/bundle/components/LightBox.md +14 -12
  38. package/bundle/components/Link.md +211 -96
  39. package/bundle/components/ListActionItem.md +7 -4
  40. package/bundle/components/ListItem.md +11 -8
  41. package/bundle/components/ListItemControlsButton.md +16 -13
  42. package/bundle/components/ListItemControlsButtonDropdown.md +9 -6
  43. package/bundle/components/ListItemSelectable.md +7 -4
  44. package/bundle/components/ListMasterFooter.md +8 -5
  45. package/bundle/components/ListMasterHeader.md +8 -5
  46. package/bundle/components/ListSortableItem.md +11 -8
  47. package/bundle/components/ListTableItem.md +7 -4
  48. package/bundle/components/LoaderMiddle.md +7 -4
  49. package/bundle/components/LoaderScreen.md +11 -8
  50. package/bundle/components/LoaderSmall.md +7 -4
  51. package/bundle/components/Marker.md +184 -69
  52. package/bundle/components/MarkerStatus.md +206 -88
  53. package/bundle/components/MaskedField.md +4 -5
  54. package/bundle/components/MasterTable.md +602 -0
  55. package/bundle/components/ModalWindow.md +7 -4
  56. package/bundle/components/MonthYearField.md +3 -1
  57. package/bundle/components/MultiselectField.md +2183 -132
  58. package/bundle/components/Notification.md +12 -9
  59. package/bundle/components/Overlay.md +9 -4
  60. package/bundle/components/Page.md +2 -2
  61. package/bundle/components/Pagination.md +15 -8
  62. package/bundle/components/Row.md +1 -1
  63. package/bundle/components/SelectExtendedField.md +3 -3
  64. package/bundle/components/SelectField.md +466 -148
  65. package/bundle/components/SliderExtended.md +39 -36
  66. package/bundle/components/SmallInput.md +194 -51
  67. package/bundle/components/Suggest.md +535 -99
  68. package/bundle/components/SwipeableArea.md +428 -79
  69. package/bundle/components/TableBasic.md +19 -11
  70. package/bundle/components/TabsExtended.md +24 -21
  71. package/bundle/components/Tag.md +6 -2
  72. package/bundle/components/Text.md +28 -25
  73. package/bundle/components/TextField.md +3 -4
  74. package/bundle/components/ThemeProvider.md +50 -1
  75. package/bundle/components/Title.md +26 -23
  76. package/bundle/components/Tooltip.md +24 -21
  77. package/bundle/components/TopOverlay.md +7 -4
  78. package/bundle/guides/codestyle.md +3 -0
  79. package/bundle/guides/context.md +84 -12
  80. package/bundle/guides/guidelines.md +321 -0
  81. package/bundle/guides/template.md +22 -12
  82. package/bundle/manifest.json +75 -17
  83. package/bundle/release-notes/1.45.0.mdx +117 -0
  84. package/bundle/release-notes/1.46.0.mdx +66 -0
  85. package/bundle/release-notes/1.47.0.mdx +7 -0
  86. package/bundle/tokens.json +6362 -0
  87. package/dist/index.js +177 -28
  88. package/dist/index.js.map +1 -1
  89. package/package.json +1 -1
package/README.md CHANGED
@@ -38,12 +38,13 @@ MCP-сервер для дизайн-системы Triplex. Предостав
38
38
 
39
39
  ## Доступные tools
40
40
 
41
- | Tool | Описание |
42
- | ----------------------------------- | ------------------------------------------------------------------------------------------------------------- |
43
- | `list_components` | Список всех компонентов с кратким описанием и флагом `ai_ready` |
44
- | `get_component(name)` | Полная документация компонента: props, токены, примеры, ограничения |
45
- | `get_tokens(component?)` | Дизайн-токены — все или для конкретного компонента |
46
- | `list_icons(query?, size?, limit?)` | Иконки из `@sberbusiness/icons-next` с фильтрами по подстроке в имени и размеру (защита от галлюцинаций имён) |
41
+ | Tool | Описание |
42
+ | ----------------------------------- | --------------------------------------------------------------------------------------------------------------- |
43
+ | `list_components` | Список всех компонентов с кратким описанием и флагом `ai_ready` |
44
+ | `get_component(name)` | Полная документация компонента: props, токены, примеры, ограничения |
45
+ | `get_tokens(component?, group?)` | Дизайн-токены: индекс групп, токены компонента или группа целиком — с путями `Группа.Токен` и значениями тем |
46
+ | `list_icons(query?, size?, limit?)` | Иконки из `@sberbusiness/icons-next` с фильтрами по подстроке в имени и размеру (защита от галлюцинаций имён) |
47
+ | `get_guidelines` | Гайдлайны кодогенерации на Triplex для ИИ-агентов (правила `TPX-G-NN` из `docs/mcp/guidelines.md` triplex-next) |
47
48
 
48
49
  Флаг `ai_ready: true` означает, что у компонента есть полноценная AI-документация
49
50
  (`*-AI.md` с frontmatter, секциями и примерами). Для остальных компонентов сервер
@@ -3,10 +3,10 @@ component: AlertContext
3
3
  category: Alert
4
4
  related: [AlertProcess]
5
5
  tokens:
6
- - --triplex-next-AlertContext-Info_Color
7
- - --triplex-next-AlertContext-Warning_Color
8
- - --triplex-next-AlertContext-Error_Color
9
- - --triplex-next-AlertContext-System_Color
6
+ - AlertContext.Info_Color
7
+ - AlertContext.Warning_Color
8
+ - AlertContext.Error_Color
9
+ - AlertContext.System_Color
10
10
  stories: stories/Alerts/AlertContext.stories.tsx
11
11
  version: "1.0"
12
12
  ---
@@ -61,11 +61,14 @@ version: "1.0"
61
61
 
62
62
  ## Дизайн-токены
63
63
 
64
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
65
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/AlertContext.ts`.
66
+
64
67
  ```text
65
- --triplex-next-AlertContext-Info_Color // цвет текста для type=INFO
66
- --triplex-next-AlertContext-Warning_Color // цвет текста для type=WARNING
67
- --triplex-next-AlertContext-Error_Color // цвет текста для type=ERROR
68
- --triplex-next-AlertContext-System_Color // цвет текста для type=SYSTEM
68
+ AlertContext.Info_Color // цвет текста для type=INFO
69
+ AlertContext.Warning_Color // цвет текста для type=WARNING
70
+ AlertContext.Error_Color // цвет текста для type=ERROR
71
+ AlertContext.System_Color // цвет текста для type=SYSTEM
69
72
  ```
70
73
 
71
74
  Значения — в `src/components/DesignTokens/components/AlertContext.ts`. Обрати
@@ -3,11 +3,11 @@ component: AlertProcess
3
3
  category: Alert
4
4
  related: [AlertContext]
5
5
  tokens:
6
- - --triplex-next-AlertProcess-Info_Background
7
- - --triplex-next-AlertProcess-Warning_Background
8
- - --triplex-next-AlertProcess-Error_Background
9
- - --triplex-next-AlertProcess-System_Background
10
- - --triplex-next-AlertProcess-Feature_Background
6
+ - AlertProcess.Info_Background
7
+ - AlertProcess.Warning_Background
8
+ - AlertProcess.Error_Background
9
+ - AlertProcess.System_Background
10
+ - AlertProcess.Feature_Background
11
11
  stories: stories/Alerts/AlertProcess.stories.tsx
12
12
  version: "1.0"
13
13
  ---
@@ -69,12 +69,15 @@ ARIA-роли не выставляет.
69
69
 
70
70
  ## Дизайн-токены
71
71
 
72
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
73
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/AlertProcess.ts`.
74
+
72
75
  ```text
73
- --triplex-next-AlertProcess-Info_Background // фон для type=INFO
74
- --triplex-next-AlertProcess-Warning_Background // фон для type=WARNING
75
- --triplex-next-AlertProcess-Error_Background // фон для type=ERROR
76
- --triplex-next-AlertProcess-System_Background // фон для type=SYSTEM
77
- --triplex-next-AlertProcess-Feature_Background // фон для type=FEATURE
76
+ AlertProcess.Info_Background // фон для type=INFO
77
+ AlertProcess.Warning_Background // фон для type=WARNING
78
+ AlertProcess.Error_Background // фон для type=ERROR
79
+ AlertProcess.System_Background // фон для type=SYSTEM
80
+ AlertProcess.Feature_Background // фон для type=FEATURE
78
81
  ```
79
82
 
80
83
  Значения — в `src/components/DesignTokens/components/AlertProcess.ts`. Компонент
@@ -3,7 +3,7 @@ component: Badge
3
3
  category: Badge
4
4
  related: [Marker, Chip, DropdownListItem, DropdownMobileListItem, TabsLineItem, TabsExtendedTabButton, Text, Caption]
5
5
  tokens:
6
- - --triplex-next-Badge-Background
6
+ - Badge.Background
7
7
  stories: stories/Badge/Badge.stories.tsx
8
8
  version: "1.0"
9
9
  ---
@@ -77,7 +77,7 @@ version: "1.0"
77
77
 
78
78
  ### Цвет и текст
79
79
 
80
- - Фон обоих компонентов — единственный токен `--triplex-next-Badge-Background`
80
+ - Фон обоих компонентов — единственный токен `Badge.Background`
81
81
  (`ColorWarning.70` в обеих темах). Вариантов/статусов у компонента нет.
82
82
  - Цвет и размер текста задаёт потребитель, вкладывая внутрь `Text` / `Caption`
83
83
  с нужным `type` (в примерах — `EFontType.PRIMARY_INVERT`). Своей типографики
@@ -90,8 +90,11 @@ version: "1.0"
90
90
 
91
91
  ## Дизайн-токены
92
92
 
93
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
94
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/Badge.ts`.
95
+
93
96
  ```text
94
- --triplex-next-Badge-Background
97
+ Badge.Background
95
98
  ```
96
99
 
97
100
  Один токен на всё семейство: фон `Badge` (`styles/Badge.module.less`) и цвет точки
@@ -3,48 +3,48 @@ component: Button
3
3
  category: Buttons
4
4
  related: [ButtonIcon, ButtonDropdown, ButtonDropdownExtended]
5
5
  tokens:
6
- - --triplex-next-Button-General_Background_Default
7
- - --triplex-next-Button-General_Color_Default
8
- - --triplex-next-Button-General_Background_Hover
9
- - --triplex-next-Button-General_Color_Hover
10
- - --triplex-next-Button-General_Background_Active
11
- - --triplex-next-Button-General_Color_Active
12
- - --triplex-next-Button-General_Shadow_Focus
13
- - --triplex-next-Button-General_Background_Disabled
14
- - --triplex-next-Button-General_Color_Disabled
15
- - --triplex-next-Button-Secondary_Background_Default
16
- - --triplex-next-Button-Secondary_Color_Default
17
- - --triplex-next-Button-Secondary_Background_Hover
18
- - --triplex-next-Button-Secondary_Color_Hover
19
- - --triplex-next-Button-Secondary_Background_Active
20
- - --triplex-next-Button-Secondary_Color_Active
21
- - --triplex-next-Button-Secondary_Shadow_Focus
22
- - --triplex-next-Button-Secondary_Background_Disabled
23
- - --triplex-next-Button-Secondary_Color_Disabled
24
- - --triplex-next-Button-SecondaryLight_Background_Default
25
- - --triplex-next-Button-SecondaryLight_Color_Default
26
- - --triplex-next-Button-SecondaryLight_Background_Hover
27
- - --triplex-next-Button-SecondaryLight_Color_Hover
28
- - --triplex-next-Button-SecondaryLight_Background_Active
29
- - --triplex-next-Button-SecondaryLight_Color_Active
30
- - --triplex-next-Button-SecondaryLight_Shadow_Focus
31
- - --triplex-next-Button-SecondaryLight_Background_Disabled
32
- - --triplex-next-Button-SecondaryLight_Color_Disabled
33
- - --triplex-next-Button-Danger_Background_Default
34
- - --triplex-next-Button-Danger_Color_Default
35
- - --triplex-next-Button-Danger_Background_Hover
36
- - --triplex-next-Button-Danger_Color_Hover
37
- - --triplex-next-Button-Danger_Background_Active
38
- - --triplex-next-Button-Danger_Color_Active
39
- - --triplex-next-Button-Danger_Shadow_Focus
40
- - --triplex-next-Button-Danger_Background_Disabled
41
- - --triplex-next-Button-Danger_Color_Disabled
42
- - --triplex-next-Button-Link_Color_Default
43
- - --triplex-next-Button-Link_Color_Hover
44
- - --triplex-next-Button-Link_Color_Active
45
- - --triplex-next-Button-Link_Shadow_Focus
46
- - --triplex-next-Button-Link_Color_Disabled
47
- - --triplex-next-Button-Icon_Shadow_Focus
6
+ - Button.General_Background_Default
7
+ - Button.General_Color_Default
8
+ - Button.General_Background_Hover
9
+ - Button.General_Color_Hover
10
+ - Button.General_Background_Active
11
+ - Button.General_Color_Active
12
+ - Button.General_Shadow_Focus
13
+ - Button.General_Background_Disabled
14
+ - Button.General_Color_Disabled
15
+ - Button.Secondary_Background_Default
16
+ - Button.Secondary_Color_Default
17
+ - Button.Secondary_Background_Hover
18
+ - Button.Secondary_Color_Hover
19
+ - Button.Secondary_Background_Active
20
+ - Button.Secondary_Color_Active
21
+ - Button.Secondary_Shadow_Focus
22
+ - Button.Secondary_Background_Disabled
23
+ - Button.Secondary_Color_Disabled
24
+ - Button.SecondaryLight_Background_Default
25
+ - Button.SecondaryLight_Color_Default
26
+ - Button.SecondaryLight_Background_Hover
27
+ - Button.SecondaryLight_Color_Hover
28
+ - Button.SecondaryLight_Background_Active
29
+ - Button.SecondaryLight_Color_Active
30
+ - Button.SecondaryLight_Shadow_Focus
31
+ - Button.SecondaryLight_Background_Disabled
32
+ - Button.SecondaryLight_Color_Disabled
33
+ - Button.Danger_Background_Default
34
+ - Button.Danger_Color_Default
35
+ - Button.Danger_Background_Hover
36
+ - Button.Danger_Color_Hover
37
+ - Button.Danger_Background_Active
38
+ - Button.Danger_Color_Active
39
+ - Button.Danger_Shadow_Focus
40
+ - Button.Danger_Background_Disabled
41
+ - Button.Danger_Color_Disabled
42
+ - Button.Link_Color_Default
43
+ - Button.Link_Color_Hover
44
+ - Button.Link_Color_Active
45
+ - Button.Link_Shadow_Focus
46
+ - Button.Link_Color_Disabled
47
+ - Button.Icon_Shadow_Focus
48
48
  stories: stories/Buttons/Button.stories.tsx
49
49
  version: "1.0"
50
50
  ---
@@ -117,7 +117,10 @@ version: "1.0"
117
117
 
118
118
  ## Дизайн-токены
119
119
 
120
- Паттерн: `--triplex-next-Button-{Theme}_{Property}_{State}`
120
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
121
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/Button.ts`.
122
+
123
+ Паттерн: `Button.{Theme}_{Property}_{State}`
121
124
 
122
125
  Каждая тема (кроме `LINK`) имеет полный набор:
123
126
  - `_Background_Default/Hover/Active/Disabled`
@@ -61,12 +61,12 @@ version: "1.0"
61
61
 
62
62
  ## Инварианты
63
63
 
64
- - Компонент объявлен как `IButtonDropdownExtendedComponent extends React.FC<IButtonDropdownExtendedProps>`, `forwardRef` **не используется**: ref на корневой `<div>` не пробрасывается. Добавление `forwardRef` меняет базовый тип экспортируемого интерфейса — это breaking change, требует отдельного решения.
64
+ - `forwardRef` на компоненте — не убирать. Ref идёт на корневой `<div>` (`HTMLDivElement`) и мерджится с внутренним `containerRef` через callback-ref: `containerRef` отвечает за определение «клик внутри триггера», поэтому подменять его форвардом нельзя — нужны оба.
65
65
  - Публичные имена `ButtonDropdownExtended`, `IButtonDropdownExtendedProps`, `IButtonDropdownExtendedButtonProvideProps`, `IButtonDropdownExtendedDropdownProvideProps`, `IButtonDropdownExtendedComponent` экспортируются из `src/components/Button/index.ts` — сохранять.
66
66
  - Статические свойства `Dropdown` и `DropdownList` — часть публичного API.
67
67
  - Фиксация режима управления на монтировании — наблюдаемое поведение, на него опираются потребители. Менять только осознанно.
68
68
  - `renderDropdown` обязан применить переданный `className` к выпадающему блоку. Но не считай, что на нём держится раскладка: стили этого класса объявлены вложенным селектором внутри `.buttonDropdownExtended` и при рендере блока в портале (штатный путь через `ButtonDropdownExtended.Dropdown`) не применяются — см. раздел «Дизайн-токены».
69
- - Корневой DOM-элемент — `<div>` с классом `buttonDropdownExtended`; на нём же живёт `containerRef`, по которому определяется «клик внутри триггера».
69
+ - Корневой DOM-элемент — `<div>` с классом `buttonDropdownExtended`; на нём же живут `containerRef` и forwarded ref.
70
70
  - Слушатели `keydown` / `mousedown` / `touchstart` вешаются на `document` только пока блок открыт.
71
71
 
72
72
  ---
@@ -115,6 +115,7 @@ version: "1.0"
115
115
 
116
116
  | Дата | Изменение |
117
117
  |---|---|
118
+ | 2026-08-31 | Компонент переведён с `React.FC` на `Object.assign(forwardRef(...), {...})` — теперь пробрасывает `ref` на корневой `<div>`, форвард мерджится с внутренним `containerRef`. Базовый тип `IButtonDropdownExtendedComponent` изменился с `React.FC` на `React.ForwardRefExoticComponent`; набор props, статики и DOM не изменились. Понадобилось для `TableBasicSettings`, который рендерит `ButtonDropdownExtended` корнем. |
118
119
  | 2026-07-29 | Создан документ AI-ready для `ButtonDropdownExtended`. AI-рефакторинг без изменения публичного API: режим управления переведён с ref на `useState` (устранены ошибки `react-hooks/refs`), убраны вырожденный тернарник в `useState` и мёртвые проверки `opened` внутри обработчиков, `setOpened && setOpened(...)` заменён на опциональный вызов, добавлены JSDoc. Добавлены unit-тесты и stories по modern pattern. |
119
120
 
120
121
  ---
@@ -3,7 +3,7 @@ component: ButtonIcon
3
3
  category: Buttons
4
4
  related: [Button]
5
5
  tokens:
6
- - --triplex-next-Button-Icon_Shadow_Focus
6
+ - Button.Icon_Shadow_Focus
7
7
  stories: stories/Buttons/ButtonIcon.stories.tsx
8
8
  version: "1.0"
9
9
  ---
@@ -46,8 +46,11 @@ version: "1.0"
46
46
 
47
47
  ## Дизайн-токены
48
48
 
49
- ```
50
- --triplex-next-Button-Icon_Shadow_Focus
49
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
50
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/Button.ts`.
51
+
52
+ ```text
53
+ Button.Icon_Shadow_Focus
51
54
  ```
52
55
 
53
56
  ---
@@ -65,7 +68,7 @@ version: "1.0"
65
68
 
66
69
  - Компонент рендерит нативный `<button>`, поэтому базовая keyboard-навигация доступна из коробки.
67
70
  - Компонент **не хардкодит** `aria-label` (библиотека мультиязычная). Для иконки без текста потребитель **обязан** передать `aria-label` через `...rest`.
68
- - Фокусное состояние реализовано через `:focus-visible` и токен `--triplex-next-Button-Icon_Shadow_Focus`.
71
+ - Фокусное состояние реализовано через `:focus-visible` и токен `Button.Icon_Shadow_Focus`.
69
72
 
70
73
  ---
71
74
 
@@ -3,35 +3,35 @@ component: Calendar
3
3
  category: Date components
4
4
  related: [DatePickerExtended, DateField, DateRange, MonthYearField, MonthYearRange, ChipDatePicker]
5
5
  tokens:
6
- - --triplex-next-Calendar-Background
7
- - --triplex-next-Calendar-View_Header_Color
8
- - --triplex-next-Calendar-View_Item_Background_Default
9
- - --triplex-next-Calendar-View_Item_Background_Hover
10
- - --triplex-next-Calendar-View_Item_Background_Selected_Default
11
- - --triplex-next-Calendar-View_Item_Background_Selected_Hover
12
- - --triplex-next-Calendar-View_Item_Background_Selected_Muted_Default
13
- - --triplex-next-Calendar-View_Item_Background_Selected_Muted_Hover
14
- - --triplex-next-Calendar-View_Item_BorderColor_Default
15
- - --triplex-next-Calendar-View_Item_BorderColor_Focus
16
- - --triplex-next-Calendar-View_Item_Color_Default
17
- - --triplex-next-Calendar-View_Item_Color_Disabled
18
- - --triplex-next-Calendar-View_Item_Color_Hover
19
- - --triplex-next-Calendar-View_Item_Color_Muted
20
- - --triplex-next-Calendar-View_Item_Color_Selected
21
- - --triplex-next-Calendar-View_Item_Color_Selected_Muted_Default
22
- - --triplex-next-Calendar-View_Item_Color_Selected_Muted_Hover
23
- - --triplex-next-Calendar-View_Item_Mark_Basic_Background_Default
24
- - --triplex-next-Calendar-View_Item_Mark_Basic_Background_Selected_Default
25
- - --triplex-next-Calendar-View_Item_Mark_Basic_Background_Selected_Hover
26
- - --triplex-next-Calendar-View_Item_Mark_Standard_Background_Default
27
- - --triplex-next-Calendar-View_Item_Mark_Standard_Background_Selected_Default
28
- - --triplex-next-Calendar-View_Item_Mark_Standard_Background_Selected_Hover
29
- - --triplex-next-Calendar-View_Item_Mark_Attention_Background_Default
30
- - --triplex-next-Calendar-View_Item_Mark_Attention_Background_Selected_Default
31
- - --triplex-next-Calendar-View_Item_Mark_Attention_Background_Selected_Hover
32
- - --triplex-next-Calendar-View_Item_Mark_Critical_Background_Default
33
- - --triplex-next-Calendar-View_Item_Mark_Critical_Background_Selected_Default
34
- - --triplex-next-Calendar-View_Item_Mark_Critical_Background_Selected_Hover
6
+ - Calendar.Background
7
+ - Calendar.View_Header_Color
8
+ - Calendar.View_Item_Background_Default
9
+ - Calendar.View_Item_Background_Hover
10
+ - Calendar.View_Item_Background_Selected_Default
11
+ - Calendar.View_Item_Background_Selected_Hover
12
+ - Calendar.View_Item_Background_Selected_Muted_Default
13
+ - Calendar.View_Item_Background_Selected_Muted_Hover
14
+ - Calendar.View_Item_BorderColor_Default
15
+ - Calendar.View_Item_BorderColor_Focus
16
+ - Calendar.View_Item_Color_Default
17
+ - Calendar.View_Item_Color_Disabled
18
+ - Calendar.View_Item_Color_Hover
19
+ - Calendar.View_Item_Color_Muted
20
+ - Calendar.View_Item_Color_Selected
21
+ - Calendar.View_Item_Color_Selected_Muted_Default
22
+ - Calendar.View_Item_Color_Selected_Muted_Hover
23
+ - Calendar.View_Item_Mark_Basic_Background_Default
24
+ - Calendar.View_Item_Mark_Basic_Background_Selected_Default
25
+ - Calendar.View_Item_Mark_Basic_Background_Selected_Hover
26
+ - Calendar.View_Item_Mark_Standard_Background_Default
27
+ - Calendar.View_Item_Mark_Standard_Background_Selected_Default
28
+ - Calendar.View_Item_Mark_Standard_Background_Selected_Hover
29
+ - Calendar.View_Item_Mark_Attention_Background_Default
30
+ - Calendar.View_Item_Mark_Attention_Background_Selected_Default
31
+ - Calendar.View_Item_Mark_Attention_Background_Selected_Hover
32
+ - Calendar.View_Item_Mark_Critical_Background_Default
33
+ - Calendar.View_Item_Mark_Critical_Background_Selected_Default
34
+ - Calendar.View_Item_Mark_Critical_Background_Selected_Hover
35
35
  stories: stories/Calendar/Calendar.stories.tsx
36
36
  version: "1.0"
37
37
  ---
@@ -92,36 +92,39 @@ version: "1.0"
92
92
 
93
93
  ## Дизайн-токены
94
94
 
95
- ```
96
- --triplex-next-Calendar-Background
97
- --triplex-next-Calendar-View_Header_Color
98
- --triplex-next-Calendar-View_Item_Background_Default
99
- --triplex-next-Calendar-View_Item_Background_Hover
100
- --triplex-next-Calendar-View_Item_Background_Selected_Default
101
- --triplex-next-Calendar-View_Item_Background_Selected_Hover
102
- --triplex-next-Calendar-View_Item_Background_Selected_Muted_Default
103
- --triplex-next-Calendar-View_Item_Background_Selected_Muted_Hover
104
- --triplex-next-Calendar-View_Item_BorderColor_Default
105
- --triplex-next-Calendar-View_Item_BorderColor_Focus
106
- --triplex-next-Calendar-View_Item_Color_Default
107
- --triplex-next-Calendar-View_Item_Color_Disabled
108
- --triplex-next-Calendar-View_Item_Color_Hover
109
- --triplex-next-Calendar-View_Item_Color_Muted
110
- --triplex-next-Calendar-View_Item_Color_Selected
111
- --triplex-next-Calendar-View_Item_Color_Selected_Muted_Default
112
- --triplex-next-Calendar-View_Item_Color_Selected_Muted_Hover
113
- --triplex-next-Calendar-View_Item_Mark_Basic_Background_Default
114
- --triplex-next-Calendar-View_Item_Mark_Basic_Background_Selected_Default
115
- --triplex-next-Calendar-View_Item_Mark_Basic_Background_Selected_Hover
116
- --triplex-next-Calendar-View_Item_Mark_Standard_Background_Default
117
- --triplex-next-Calendar-View_Item_Mark_Standard_Background_Selected_Default
118
- --triplex-next-Calendar-View_Item_Mark_Standard_Background_Selected_Hover
119
- --triplex-next-Calendar-View_Item_Mark_Attention_Background_Default
120
- --triplex-next-Calendar-View_Item_Mark_Attention_Background_Selected_Default
121
- --triplex-next-Calendar-View_Item_Mark_Attention_Background_Selected_Hover
122
- --triplex-next-Calendar-View_Item_Mark_Critical_Background_Default
123
- --triplex-next-Calendar-View_Item_Mark_Critical_Background_Selected_Default
124
- --triplex-next-Calendar-View_Item_Mark_Critical_Background_Selected_Hover
95
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
96
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/Calendar.ts`.
97
+
98
+ ```text
99
+ Calendar.Background
100
+ Calendar.View_Header_Color
101
+ Calendar.View_Item_Background_Default
102
+ Calendar.View_Item_Background_Hover
103
+ Calendar.View_Item_Background_Selected_Default
104
+ Calendar.View_Item_Background_Selected_Hover
105
+ Calendar.View_Item_Background_Selected_Muted_Default
106
+ Calendar.View_Item_Background_Selected_Muted_Hover
107
+ Calendar.View_Item_BorderColor_Default
108
+ Calendar.View_Item_BorderColor_Focus
109
+ Calendar.View_Item_Color_Default
110
+ Calendar.View_Item_Color_Disabled
111
+ Calendar.View_Item_Color_Hover
112
+ Calendar.View_Item_Color_Muted
113
+ Calendar.View_Item_Color_Selected
114
+ Calendar.View_Item_Color_Selected_Muted_Default
115
+ Calendar.View_Item_Color_Selected_Muted_Hover
116
+ Calendar.View_Item_Mark_Basic_Background_Default
117
+ Calendar.View_Item_Mark_Basic_Background_Selected_Default
118
+ Calendar.View_Item_Mark_Basic_Background_Selected_Hover
119
+ Calendar.View_Item_Mark_Standard_Background_Default
120
+ Calendar.View_Item_Mark_Standard_Background_Selected_Default
121
+ Calendar.View_Item_Mark_Standard_Background_Selected_Hover
122
+ Calendar.View_Item_Mark_Attention_Background_Default
123
+ Calendar.View_Item_Mark_Attention_Background_Selected_Default
124
+ Calendar.View_Item_Mark_Attention_Background_Selected_Hover
125
+ Calendar.View_Item_Mark_Critical_Background_Default
126
+ Calendar.View_Item_Mark_Critical_Background_Selected_Default
127
+ Calendar.View_Item_Mark_Critical_Background_Selected_Hover
125
128
  ```
126
129
 
127
130
  Кнопки заголовка и футера используют токены `Button` / `ButtonIcon`.
@@ -3,28 +3,28 @@ component: Caption
3
3
  category: Typography
4
4
  related: [Text, Title, CodeText]
5
5
  tokens:
6
- - --triplex-next-Typography-Primary_Color
7
- - --triplex-next-Typography-PrimaryInvert_Color
8
- - --triplex-next-Typography-Complementary_Color
9
- - --triplex-next-Typography-ComplementaryInvert_Color
10
- - --triplex-next-Typography-Secondary_Color
11
- - --triplex-next-Typography-SecondaryInvert_Color
12
- - --triplex-next-Typography-Tertiary_Color
13
- - --triplex-next-Typography-TertiaryInvert_Color
14
- - --triplex-next-Typography-Disabled_Color
15
- - --triplex-next-Typography-DisabledInvert_Color
16
- - --triplex-next-Typography-Brand_Color
17
- - --triplex-next-Typography-BrandInvert_Color
18
- - --triplex-next-Typography-Info_Color
19
- - --triplex-next-Typography-InfoInvert_Color
20
- - --triplex-next-Typography-Success_Color
21
- - --triplex-next-Typography-SuccessInvert_Color
22
- - --triplex-next-Typography-Warning_Color
23
- - --triplex-next-Typography-WarningInvert_Color
24
- - --triplex-next-Typography-Error_Color
25
- - --triplex-next-Typography-ErrorInvert_Color
26
- - --triplex-next-Typography-System_Color
27
- - --triplex-next-Typography-SystemInvert_Color
6
+ - Typography.Primary_Color
7
+ - Typography.PrimaryInvert_Color
8
+ - Typography.Complementary_Color
9
+ - Typography.ComplementaryInvert_Color
10
+ - Typography.Secondary_Color
11
+ - Typography.SecondaryInvert_Color
12
+ - Typography.Tertiary_Color
13
+ - Typography.TertiaryInvert_Color
14
+ - Typography.Disabled_Color
15
+ - Typography.DisabledInvert_Color
16
+ - Typography.Brand_Color
17
+ - Typography.BrandInvert_Color
18
+ - Typography.Info_Color
19
+ - Typography.InfoInvert_Color
20
+ - Typography.Success_Color
21
+ - Typography.SuccessInvert_Color
22
+ - Typography.Warning_Color
23
+ - Typography.WarningInvert_Color
24
+ - Typography.Error_Color
25
+ - Typography.ErrorInvert_Color
26
+ - Typography.System_Color
27
+ - Typography.SystemInvert_Color
28
28
  stories: stories/Typography/Caption.stories.tsx
29
29
  version: "1.0"
30
30
  ---
@@ -73,7 +73,10 @@ version: "1.0"
73
73
 
74
74
  ## Дизайн-токены
75
75
 
76
- Цвета — общие CSS-переменные семейства Typography (см. frontmatter): `--triplex-next-Typography-{Type}_Color` и `--triplex-next-Typography-{Type}Invert_Color`.
76
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
77
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/Typography.ts`.
78
+
79
+ Цвета — общие токены группы `Typography` (см. frontmatter): `Typography.{Type}_Color` и `Typography.{Type}Invert_Color`.
77
80
 
78
81
  Размеры шрифта и line-height — фиксированные пиксельные значения в `styles/Caption.module.less` (токенов для них нет).
79
82