elcrm 1.1.23 → 1.1.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "elcrm",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "CLI @elcrm/*: doctor --fix (порядок проекта), update, css, docs, cursor, kit, migrate",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -16,9 +16,21 @@ import { Tooltip } from "@elcrm/tooltip";
16
16
 
17
17
  - `placement`: `top` \| `bottom` \| `left` \| `right` (не `orientation` — deprecated).
18
18
  - `delay` / `delayHide`, `disabled`, `textAlign`, `open` (отладка).
19
- - Токены `--tooltip-*` в теме.
19
+ - Токены `--tooltip-*` в теме (см. ниже).
20
20
  - z-index сам: `acquireOverlayZIndex` вручную не нужен.
21
21
 
22
+ ## Токены темы
23
+
24
+ Геометрия в `theme.css`: `--tooltip-radius`, `--tooltip-max-width`, `--tooltip-font-size`, `--tooltip-padding`, `--tooltip-gap`.
25
+
26
+ Цвета в `theme-light.css` / `theme-dark.css`:
27
+
28
+ - `--tooltip-bg` — фон пузыря **и стрелки**
29
+ - `--tooltip-fg` — текст
30
+ - `--tooltip-shadow`
31
+
32
+ Пакет читает именно `bg` / `fg`. Имена `--tooltip-background` и `--tooltip-color` не работают.
33
+
22
34
  ## Нельзя
23
35
 
24
36
  - Атрибут `title` на контролах UI как единственная подсказка.
@@ -125,14 +125,14 @@
125
125
  --dropdown-max-height: 20rem;
126
126
 
127
127
  /* —— tooltip (@elcrm/tooltip: геометрия без цвета) —— */
128
- --tooltip-radius: 10px;
128
+ --tooltip-radius: 8px;
129
129
  --tooltip-max-width: 280px;
130
130
  --tooltip-font-size: 13px;
131
- --tooltip-padding: 8px 10px;
132
- --tooltip-gap: 8px;
133
- --tooltip-arrow-x: 0px;
134
- --tooltip-arrow-y: 0px;
135
- --tooltip-arrow-r: none;
131
+ --tooltip-padding-block: 6px;
132
+ --tooltip-padding-inline: 12px;
133
+ --tooltip-padding: var(--tooltip-padding-block) var(--tooltip-padding-inline);
134
+ --tooltip-gap: 10px;
135
+ --tooltip-arrow-offset: 0px;
136
136
 
137
137
  --card-pointer: auto;
138
138
  --stack-grid-min: 180px;