@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
@@ -2,7 +2,8 @@
2
2
  component: HeaderPage
3
3
  category: Page
4
4
  related: [Page, BodyPage, FooterPage, Header, Island, LightBox]
5
- tokens: [--triplex-next-HeaderPage-StickyShadow]
5
+ tokens:
6
+ - HeaderPage.StickyShadow
6
7
  stories: stories/Page/HeaderPage/HeaderPage.stories.tsx
7
8
  version: "1.0"
8
9
  ---
@@ -52,9 +53,12 @@ version: "1.0"
52
53
 
53
54
  ## Дизайн-токены
54
55
 
56
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
57
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/HeaderPage.ts`.
58
+
55
59
  | Токен | Назначение |
56
60
  |---|---|
57
- | `--triplex-next-HeaderPage-StickyShadow` | Тень прилипшего заголовка (когда `sticky` и заголовок коснулся верхней границы, `data-stuck="true"`). |
61
+ | `HeaderPage.StickyShadow` | Тень прилипшего заголовка (когда `sticky` и заголовок коснулся верхней границы, `data-stuck="true"`). |
58
62
 
59
63
  Внешний вид карточки наследуется от `Island` (`EIslandType.TYPE_1`). Радиус верхних углов при
60
64
  прилипании плавно обнуляется через CSS-переменную `--r-top` (управляется хуком
@@ -39,7 +39,7 @@ version: "1.0"
39
39
  | `focusTrapProps` | `FocusTrapProps` | — | Свойства `focus-trap-react` для ловушки фокуса |
40
40
  | `tooltipAriaAttributes` | `TAriaHTMLAttributes` | — | Aria-атрибуты, пробрасываемые в Tooltip-контейнер |
41
41
  | `tooltipDataAttributes` | `TDataHTMLAttributes` | — | Data-атрибуты, пробрасываемые в Tooltip-контейнер |
42
- | `iconProps` | `ISingleColorIconProps` | — | Свойства иконки вопроса (например, `paletteIndex`) |
42
+ | `iconProps` | `ISingleColorIconProps` | — | Свойства иконки вопроса (например, `paletteIndex`; по умолчанию `paletteIndex` равен `5`) |
43
43
  | `tooltipXButtonProps` | `ITooltipXButtonProps` | — | Свойства кнопки закрытия Tooltip (включая `aria-label`) |
44
44
  | `className` | `string` | — | CSS-класс, пробрасывается на кнопку-триггер |
45
45
  | `...rest` | `React.HTMLAttributes<HTMLButtonElement>` | — | Все стандартные атрибуты `<button>`, включая `aria-label`, пробрасываются на кнопку-триггер |
@@ -65,6 +65,9 @@ version: "1.0"
65
65
  - **`tooltipSize` prop** — обязательный, не делать optional.
66
66
  - **Barrel export в `index.ts`** — не удалять.
67
67
  - **`toggleType="hover"`** — Tooltip реагирует на наведение, не менять без согласования.
68
+ - **Ловушка фокуса не активируется при hover-открытии** — фокус пользователя не должен переезжать в подсказку от одного наведения курсора.
69
+ - **`uniqueId()` из `lodash-es`, а не `React.useId`** — код должен собираться в ветке
70
+ `release-0` под React 17.
68
71
 
69
72
  ---
70
73
 
@@ -75,6 +78,7 @@ version: "1.0"
75
78
  - **`aria-label` кнопки закрытия** — передаётся через `tooltipXButtonProps={{ "aria-label": "Закрыть" }}`. Потребитель **обязан** указать значение на своём языке.
76
79
  - Tooltip открывается с `role="dialog"`, `tabIndex={-1}`.
77
80
  - FocusTrap удерживает фокус внутри открытого тултипа на desktop. При активации: `initialFocus` — элемент Tooltip (по ID), `clickOutsideDeactivates: true` — клик за пределами закрывает, `preventScroll: true`. Потребитель может расширить настройки через `focusTrapProps.focusTrapOptions`.
81
+ - **Ловушка фокуса не ставится, когда подсказку открыли мышью.** Признак вычисляется в момент открытия (`needFocusTrap`): ловушка нужна, если кнопка-триггер держит фокус (клавиатура) либо курсора над ней нет (программное открытие через `isOpen`). Клик мышью ловушку тоже не ставит — `mouseenter` открывает подсказку раньше клика, и второго `onShow` не происходит. Фокус при этом всё равно переходит на кнопку-триггер: это нативное поведение браузера при клике по `<button>`, к ловушке отношения не имеет.
78
82
  - `tooltipAriaAttributes` позволяет добавить aria-атрибуты к контейнеру Tooltip.
79
83
 
80
84
  ---
@@ -113,6 +117,8 @@ version: "1.0"
113
117
  | 2026-04-08 | Создан документ. Добавлен `forwardRef`. |
114
118
  | 2026-04-27 | Приведён в соответствие с `docs/ai/template-ai.md`: убраны секции «Файловая структура» и «Ключевые особенности реализации», их содержимое перенесено в `Ограничения использования` и `Accessibility`, переставлены секции, добавлена колонка `Example file`. |
115
119
  | 2026-07-08 | Актуализирована колонка `Example file`: имена файлов примеров приведены к фактическим (без постфикса `Example`). |
120
+ | 2026-09-08 | AI-рефакторинг: `useId` заменён на `uniqueId` (совместимость с React 17), callback-`ref` стабилизирован через `useCallback`, убраны `!` и `as`-каст в работе с `ref`, `TooltipMobileHeader` берётся из composition-API `Tooltip.MobileHeader`, `paletteIndex` иконки вынесен в константу. Добавлены unit-тесты (25 кейсов, включая мобильную версию). |
121
+ | 2026-09-10 | Ловушка фокуса больше не активируется при открытии подсказки наведением мыши (`needFocusTrap`): фокус остаётся в элементе, с которым работает пользователь. Добавлены unit-тесты на hover- и клавиатурный сценарии. |
116
122
 
117
123
  ---
118
124
 
@@ -2,21 +2,18 @@
2
2
  component: ImageGallery
3
3
  category: ImageGallery
4
4
  related: [ImageGalleryExtended, MobileView, LightBox]
5
- tokens: [
6
- "--triplex-next-ImageGallery-Accent_Color",
7
- "--triplex-next-ImageGallery-Arrow_Background_Default",
8
- "--triplex-next-ImageGallery-Arrow_Background_Hover",
9
- "--triplex-next-ImageGallery-Arrow_Background_Active",
10
- "--triplex-next-ImageGallery-Arrow_Background_Disabled",
11
- "--triplex-next-ImageGallery-Arrow_BorderColor_Default",
12
- "--triplex-next-ImageGallery-Arrow_BorderColor_Hover",
13
- "--triplex-next-ImageGallery-Arrow_BorderColor_Active",
14
- "--triplex-next-ImageGallery-Arrow_BorderColor_Disabled",
15
- "--triplex-next-ImageGallery-Dot_Background_Default",
16
- "--triplex-next-ImageGallery-Dot_Background_Hover",
17
- "--triplex-next-ImageGallery-Dot_Background_Active",
18
- "--triplex-next-ImageGallery-Thumb_Mask_Background"
19
- ]
5
+ tokens:
6
+ - ImageGallery.Accent_Color
7
+ - ImageGallery.Arrow_Background_Default
8
+ - ImageGallery.Arrow_Background_Hover
9
+ - ImageGallery.Arrow_Background_Active
10
+ - ImageGallery.Arrow_BorderColor_Default
11
+ - ImageGallery.Arrow_BorderColor_Hover
12
+ - ImageGallery.Arrow_BorderColor_Active
13
+ - ImageGallery.Dot_Background_Default
14
+ - ImageGallery.Dot_Background_Hover
15
+ - ImageGallery.Dot_Background_Active
16
+ - ImageGallery.Thumb_Mask_Background
20
17
  stories: stories/ImageGallery/ImageGallery.stories.tsx
21
18
  version: "1.0"
22
19
  ---
@@ -88,28 +85,29 @@ controlled-only контейнера `ImageGalleryExtended`. Изображен
88
85
 
89
86
  ## Дизайн-токены
90
87
 
88
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
89
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/ImageGallery.ts`.
90
+
91
91
  Собственных стилей и `.less`-файлов у `ImageGallery` нет — вся отрисовка
92
92
  делегируется частям `ImageGalleryExtended`. Перечисленные токены принадлежат
93
- семейству и используются через эти части (общий префикс
94
- `--triplex-next-ImageGallery-` намеренно делится обоими семействами).
93
+ семейству и используются через эти части — группа `ImageGallery` намеренно
94
+ делится обоими семействами.
95
95
 
96
- ```
97
- --triplex-next-ImageGallery-Accent_Color
98
-
99
- --triplex-next-ImageGallery-Arrow_Background_Default
100
- --triplex-next-ImageGallery-Arrow_Background_Hover
101
- --triplex-next-ImageGallery-Arrow_Background_Active
102
- --triplex-next-ImageGallery-Arrow_Background_Disabled
103
- --triplex-next-ImageGallery-Arrow_BorderColor_Default
104
- --triplex-next-ImageGallery-Arrow_BorderColor_Hover
105
- --triplex-next-ImageGallery-Arrow_BorderColor_Active
106
- --triplex-next-ImageGallery-Arrow_BorderColor_Disabled
107
-
108
- --triplex-next-ImageGallery-Dot_Background_Default
109
- --triplex-next-ImageGallery-Dot_Background_Hover
110
- --triplex-next-ImageGallery-Dot_Background_Active
111
-
112
- --triplex-next-ImageGallery-Thumb_Mask_Background
96
+ ```text
97
+ ImageGallery.Accent_Color
98
+
99
+ ImageGallery.Arrow_Background_Default
100
+ ImageGallery.Arrow_Background_Hover
101
+ ImageGallery.Arrow_Background_Active
102
+ ImageGallery.Arrow_BorderColor_Default
103
+ ImageGallery.Arrow_BorderColor_Hover
104
+ ImageGallery.Arrow_BorderColor_Active
105
+
106
+ ImageGallery.Dot_Background_Default
107
+ ImageGallery.Dot_Background_Hover
108
+ ImageGallery.Dot_Background_Active
109
+
110
+ ImageGallery.Thumb_Mask_Background
113
111
  ```
114
112
 
115
113
  Runtime CSS-переменная высоты крупной картинки
@@ -195,6 +193,7 @@ Runtime CSS-переменная высоты крупной картинки
195
193
  | Дата | Изменение |
196
194
  |---|---|
197
195
  | 2026-05-28 | Создан документ |
196
+ | 2026-08-31 | Удалены неиспользуемые токены `Arrow_Background_Disabled` и `Arrow_BorderColor_Disabled`: неактивная стрелка скрывается (`display: none`), красить нечем |
198
197
 
199
198
  ---
200
199
 
@@ -2,21 +2,18 @@
2
2
  component: ImageGalleryExtended
3
3
  category: ImageGalleryExtended
4
4
  related: [ImageGallery, MobileView, LightBox]
5
- tokens: [
6
- "--triplex-next-ImageGallery-Accent_Color",
7
- "--triplex-next-ImageGallery-Arrow_Background_Default",
8
- "--triplex-next-ImageGallery-Arrow_Background_Hover",
9
- "--triplex-next-ImageGallery-Arrow_Background_Active",
10
- "--triplex-next-ImageGallery-Arrow_Background_Disabled",
11
- "--triplex-next-ImageGallery-Arrow_BorderColor_Default",
12
- "--triplex-next-ImageGallery-Arrow_BorderColor_Hover",
13
- "--triplex-next-ImageGallery-Arrow_BorderColor_Active",
14
- "--triplex-next-ImageGallery-Arrow_BorderColor_Disabled",
15
- "--triplex-next-ImageGallery-Dot_Background_Default",
16
- "--triplex-next-ImageGallery-Dot_Background_Hover",
17
- "--triplex-next-ImageGallery-Dot_Background_Active",
18
- "--triplex-next-ImageGallery-Thumb_Mask_Background"
19
- ]
5
+ tokens:
6
+ - ImageGallery.Accent_Color
7
+ - ImageGallery.Arrow_Background_Default
8
+ - ImageGallery.Arrow_Background_Hover
9
+ - ImageGallery.Arrow_Background_Active
10
+ - ImageGallery.Arrow_BorderColor_Default
11
+ - ImageGallery.Arrow_BorderColor_Hover
12
+ - ImageGallery.Arrow_BorderColor_Active
13
+ - ImageGallery.Dot_Background_Default
14
+ - ImageGallery.Dot_Background_Hover
15
+ - ImageGallery.Dot_Background_Active
16
+ - ImageGallery.Thumb_Mask_Background
20
17
  stories: stories/ImageGalleryExtended/ImageGalleryExtended.stories.tsx
21
18
  version: "1.0"
22
19
  ---
@@ -123,26 +120,27 @@ child `.Main`, чтобы стрелки позиционировались по
123
120
 
124
121
  ## Дизайн-токены
125
122
 
126
- Токены используют общий с `ImageGallery` префикс `--triplex-next-ImageGallery-`
123
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
124
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/ImageGallery.ts`.
125
+
126
+ Токены живут в общей с `ImageGallery` группе `ImageGallery`
127
127
  (семейства делят визуальный язык).
128
128
 
129
- ```
130
- --triplex-next-ImageGallery-Accent_Color
131
-
132
- --triplex-next-ImageGallery-Arrow_Background_Default
133
- --triplex-next-ImageGallery-Arrow_Background_Hover
134
- --triplex-next-ImageGallery-Arrow_Background_Active
135
- --triplex-next-ImageGallery-Arrow_Background_Disabled
136
- --triplex-next-ImageGallery-Arrow_BorderColor_Default
137
- --triplex-next-ImageGallery-Arrow_BorderColor_Hover
138
- --triplex-next-ImageGallery-Arrow_BorderColor_Active
139
- --triplex-next-ImageGallery-Arrow_BorderColor_Disabled
140
-
141
- --triplex-next-ImageGallery-Dot_Background_Default
142
- --triplex-next-ImageGallery-Dot_Background_Hover
143
- --triplex-next-ImageGallery-Dot_Background_Active
144
-
145
- --triplex-next-ImageGallery-Thumb_Mask_Background
129
+ ```text
130
+ ImageGallery.Accent_Color
131
+
132
+ ImageGallery.Arrow_Background_Default
133
+ ImageGallery.Arrow_Background_Hover
134
+ ImageGallery.Arrow_Background_Active
135
+ ImageGallery.Arrow_BorderColor_Default
136
+ ImageGallery.Arrow_BorderColor_Hover
137
+ ImageGallery.Arrow_BorderColor_Active
138
+
139
+ ImageGallery.Dot_Background_Default
140
+ ImageGallery.Dot_Background_Hover
141
+ ImageGallery.Dot_Background_Active
142
+
143
+ ImageGallery.Thumb_Mask_Background
146
144
  ```
147
145
 
148
146
  Runtime CSS-переменные (задаются компонентом через `style`, **не** дизайн-токены,
@@ -172,7 +170,7 @@ Runtime CSS-переменные (задаются компонентом чер
172
170
  change при изменении.
173
171
  - **Render-функции** `.Nav` и `.Thumbnails` — контракт; форма объекта состояния
174
172
  фиксирована.
175
- - Токены используют префикс `ImageGallery-`, а не `ImageGalleryExtended-` —
173
+ - Токены лежат в группе `ImageGallery`, а не `ImageGalleryExtended` —
176
174
  переименование сломает темизацию у потребителей обоих семейств.
177
175
 
178
176
  ---
@@ -248,6 +246,7 @@ API (экспортируются из barrel ради композиции, н
248
246
  | Дата | Изменение |
249
247
  |---|---|
250
248
  | 2026-05-28 | Создан документ |
249
+ | 2026-08-31 | Удалены неиспользуемые токены `Arrow_Background_Disabled` и `Arrow_BorderColor_Disabled`: неактивная стрелка скрывается (`display: none`), красить нечем |
251
250
 
252
251
  ---
253
252
 
@@ -3,12 +3,12 @@ component: Island
3
3
  category: Layout
4
4
  related: [IslandAccordion, IslandWidget, LoaderScreen, ModalWindow]
5
5
  tokens:
6
- - --triplex-next-Island-Type1_Background
7
- - --triplex-next-Island-Type1_Shadow
8
- - --triplex-next-Island-Type2_Background
9
- - --triplex-next-Island-Type2_Shadow
10
- - --triplex-next-Island-Type3_Background
11
- - --triplex-next-Island-Type3_Shadow
6
+ - Island.Type1_Background
7
+ - Island.Type1_Shadow
8
+ - Island.Type2_Background
9
+ - Island.Type2_Shadow
10
+ - Island.Type3_Background
11
+ - Island.Type3_Shadow
12
12
  stories: stories/Island/Island.stories.tsx
13
13
  version: "1.0"
14
14
  ---
@@ -126,13 +126,16 @@ version: "1.0"
126
126
 
127
127
  ## Дизайн-токены
128
128
 
129
- ```
130
- --triplex-next-Island-Type1_Background
131
- --triplex-next-Island-Type1_Shadow
132
- --triplex-next-Island-Type2_Background
133
- --triplex-next-Island-Type2_Shadow
134
- --triplex-next-Island-Type3_Background
135
- --triplex-next-Island-Type3_Shadow
129
+ Переопределяются через `ThemeProvider` (prop `tokens`) — см. `ThemeProvider-ai.md` →
130
+ «Как переопределять токены». Значения по умолчанию — `src/components/DesignTokens/components/Island.ts`.
131
+
132
+ ```text
133
+ Island.Type1_Background
134
+ Island.Type1_Shadow
135
+ Island.Type2_Background
136
+ Island.Type2_Shadow
137
+ Island.Type3_Background
138
+ Island.Type3_Shadow
136
139
  ```
137
140
 
138
141
  Значения задаются в `src/components/DesignTokens/components/Island.ts`. `Type1_Shadow` и