elcrm 1.1.25 → 1.1.26

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.25",
3
+ "version": "1.1.26",
4
4
  "description": "CLI @elcrm/*: doctor --fix (порядок проекта), update, css, docs, cursor, kit, migrate",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -26,7 +26,8 @@ import { Button } from "@elcrm/button";
26
26
  - `onSend(setDisabled, event)`: синхронный `false` — без pending; промис/`async` — pending до settle; иначе снять через `setDisabled(false)`
27
27
  - Если задан `onClick` — `onSend` **не** вызывается
28
28
  - `buttonType`: `button` \| `submit` \| `reset`
29
- - Точечно: `@elcrm/button/Button`
29
+ - **`IconButton`** — только иконка: `icon` + обязательный `label` → `aria-label`. Имя иконки + tooltip — `@elcrm/components` `IconButton`.
30
+ - Точечно: `@elcrm/button/Button`, `@elcrm/button/IconButton`
30
31
 
31
32
  ## Нельзя
32
33
 
@@ -17,6 +17,7 @@ import {
17
17
  Card, Stat, ActionGroup, Toolbar, TextGroup, ItemColumn, List, Item, PageHead, PageShell, ChatList, ChatMessages, ChatSplit, Sidebar, Popover,
18
18
  Healthmap, PanelInfo,
19
19
  Loading, EmptyState, RadioGroup, PricingGroup, PricingTable,
20
+ Table, CodeBlock, SplitPane, Banner, IconButton,
20
21
  createLazyResolver,
21
22
  } from "@elcrm/components";
22
23
  import type { PricingPlan, HealthmapData } from "@elcrm/components";
@@ -43,6 +44,11 @@ import type { PricingPlan, HealthmapData } from "@elcrm/components";
43
44
  - **TextGroup** — две строки: `title` + `description` (без аватара; с аватаром — AvatarName).
44
45
  - **Item** — строка списка. `as` button/a/li, `active`. `variant="card"` — рамка и muted-фон (идеи / тикеты / inbox). Не дублировать `.desk-row` в приложении.
45
46
  - **ItemColumn** — внутри Item: `icon` слева, столбик `title` / `description` / `footer` или `meta`, `extra` — бейджи справа сверху, `aside` — колонка справа. `unread` — жирный title. Title: `--item-column-title-size` / `--item-column-title-line` (в console = `--button-size-s` / `--button-line-height`).
47
+ - **Table** — `<table>` в обёртке со скроллом. `layout="fixed"` для фиксированной сетки. Токены `--table-*`.
48
+ - **CodeBlock** — bar + `<pre>`, `onCopy`, `children` для подсветки. Токены `--code-block-*`.
49
+ - **SplitPane** — две панели + drag handle. `direction`, `ratio`, `onRatioChange`, `minFirst` / `minSecond`. Не `ChatSplit` (только чат). Токены `--split-handle-*`.
50
+ - **Banner** — статусная полоса (`tone`: info / warning / danger / success). Не toast — не `Notice`.
51
+ - **IconButton** — `name` (`Icons.Line`) + обязательный `label` + `Tooltip` по умолчанию. `tooltip={false}` без подсказки. Низкий уровень — `@elcrm/button/IconButton` (`icon` + `label`).
46
52
 
47
53
  ## Меню
48
54
 
@@ -104,12 +104,13 @@ body[data-theme="dark"] {
104
104
  --modal-box-shadow: rgba(0, 0, 0, 0.5);
105
105
  --modal-shadow: rgba(0, 0, 0, 0.35);
106
106
  --modal-color: var(--text);
107
- --modal-text: var(--text);
107
+ --modal-text: var(--modal-color);
108
108
  --modal-exit: var(--muted);
109
109
  --modal-disabled: #5c6575;
110
110
  --modal-shade: var(--panel);
111
111
  --modal-tinge: rgba(255, 255, 255, 0.04);
112
112
  --modal-border: var(--line);
113
+ --tinge: var(--modal-tinge);
113
114
 
114
115
  --alert-color: var(--text);
115
116
  --alert-overlay: rgba(0, 0, 0, 0.55);
@@ -124,10 +125,9 @@ body[data-theme="dark"] {
124
125
  --tooltip-fg: #eaeaea;
125
126
  --tooltip-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
126
127
 
127
- --color-text: var(--text);
128
128
  --color-field-focus: var(--field-background);
129
129
 
130
- /* —— @elcrm/components: shell (общие) + узкие avatar —— */
130
+ /* —— @elcrm/components: shell (контракт пакета палитра panel) —— */
131
131
  --shell-color: var(--text);
132
132
  --shell-color-muted: var(--muted);
133
133
  --shell-color-accent: var(--accent);
@@ -104,12 +104,13 @@ body[data-theme="light"] {
104
104
  --modal-box-shadow: rgba(26, 31, 41, 0.18);
105
105
  --modal-shadow: rgba(26, 31, 41, 0.12);
106
106
  --modal-color: var(--text);
107
- --modal-text: var(--text);
107
+ --modal-text: var(--modal-color);
108
108
  --modal-exit: var(--muted);
109
109
  --modal-disabled: #9aa3af;
110
110
  --modal-shade: #f4f6f9;
111
111
  --modal-tinge: rgba(26, 31, 41, 0.04);
112
112
  --modal-border: var(--line);
113
+ --tinge: var(--modal-tinge);
113
114
 
114
115
  --alert-color: var(--text);
115
116
  --alert-overlay: rgba(26, 31, 41, 0.4);
@@ -124,10 +125,9 @@ body[data-theme="light"] {
124
125
  --tooltip-fg: #eaeaea;
125
126
  --tooltip-shadow: 0 8px 24px rgba(26, 31, 41, 0.28);
126
127
 
127
- --color-text: var(--text);
128
128
  --color-field-focus: var(--field-background);
129
129
 
130
- /* —— @elcrm/components: shell (общие) + узкие avatar —— */
130
+ /* —— @elcrm/components: shell (контракт пакета палитра panel) —— */
131
131
  --shell-color: var(--text);
132
132
  --shell-color-muted: var(--muted);
133
133
  --shell-color-accent: var(--accent);