@pgcorp/ui-kit 0.7.2 → 0.7.3
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.
- package/README.md +4 -0
- package/docs/theming.md +16 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -276,6 +276,10 @@ Do not combine it with manual shifts of individual layer tokens. The complete
|
|
|
276
276
|
owner map, dynamic-stack contract, and verification checklist are published in
|
|
277
277
|
`docs/theming.md` inside the npm package.
|
|
278
278
|
|
|
279
|
+
CodeMirror autocomplete in `SCodeEditor` and the overlay `SResizeHandle` stay
|
|
280
|
+
inside their positioned component owners. They intentionally use the local
|
|
281
|
+
`--s-layer-floating` anchor and are not shifted by `--s-layer-host-offset`.
|
|
282
|
+
|
|
279
283
|
## Публичный контракт / Public contract
|
|
280
284
|
|
|
281
285
|
`package.json#exports` — источник истины для импортов. Публичный контракт
|
package/docs/theming.md
CHANGED
|
@@ -55,6 +55,14 @@ drawer телепортируются в `document.body`. `SToastContainer` та
|
|
|
55
55
|
интеграции проверьте tooltip/menu/select, toast, drag, modal/drawer и floating
|
|
56
56
|
surface внутри modal. Не меняйте `z-index` внутренних элементов компонентов.
|
|
57
57
|
|
|
58
|
+
Локальные floating-элементы не входят в root-level bridge. Autocomplete-tooltip
|
|
59
|
+
`SCodeEditor` остаётся потомком `.cm-editor`, а overlay-вариант
|
|
60
|
+
`SResizeHandle` — абсолютным потомком своего positioned owner. Они используют
|
|
61
|
+
`--s-layer-floating` внутри локального stacking context и не получают
|
|
62
|
+
`--s-layer-host-offset`. Конфигурация CodeMirror с переносом tooltip в
|
|
63
|
+
`document.body` не входит в публичный контракт `SCodeEditor`; root-level surface
|
|
64
|
+
обязана использовать зарегистрированный root layer UI-kit.
|
|
65
|
+
|
|
58
66
|
## English
|
|
59
67
|
|
|
60
68
|
`tokens.css` contains primitive and semantic tokens. `style.css` includes tokens,
|
|
@@ -108,3 +116,11 @@ sticky, affordance, and navigation anchors are not shifted.
|
|
|
108
116
|
`--s-layer-host-offset` with manual shifts of individual UI-kit layer tokens.
|
|
109
117
|
Verify tooltip/menu/select, toast, drag, modal/drawer, and a floating surface
|
|
110
118
|
inside a modal. Do not override internal component `z-index` values.
|
|
119
|
+
|
|
120
|
+
Local floating elements are outside the root-level bridge. The `SCodeEditor`
|
|
121
|
+
autocomplete tooltip remains a descendant of `.cm-editor`, and the overlay
|
|
122
|
+
`SResizeHandle` remains an absolutely positioned child of its positioned owner.
|
|
123
|
+
They use `--s-layer-floating` inside a local stacking context and do not receive
|
|
124
|
+
`--s-layer-host-offset`. A CodeMirror configuration that reparents tooltips into
|
|
125
|
+
`document.body` is outside the public `SCodeEditor` contract; a root-level
|
|
126
|
+
surface must use a registered UI-kit root layer.
|