@elcrm/components 0.2.6 → 0.2.8

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.
@@ -0,0 +1,81 @@
1
+ import e from "react";
2
+ import { T as b } from "./TextGroup-DmhuyMR1.js";
3
+ import { c as h } from "./cx-CcykAxZN.js";
4
+ import { a as B, r as N } from "./overlayZ-BvHbYC1x.js";
5
+ import './PanelInfo.css';const x = "pBr", g = "pBs", k = "pBh", I = "pBt", L = "pBa", O = "pBc", z = "pBb", M = "pBf", S = "pBd", n = {
6
+ r: x,
7
+ s: g,
8
+ h: k,
9
+ t: I,
10
+ a: L,
11
+ c: O,
12
+ b: z,
13
+ f: M,
14
+ d: S
15
+ }, m = "(max-width: 56rem)";
16
+ function T({
17
+ open: a,
18
+ title: s,
19
+ onClose: o,
20
+ children: f,
21
+ footer: l,
22
+ headerExtra: u,
23
+ close: v,
24
+ "aria-label": y,
25
+ className: E
26
+ }) {
27
+ const [r, p] = e.useState(
28
+ () => typeof window < "u" ? window.matchMedia(m).matches : !1
29
+ ), [i, d] = e.useState();
30
+ e.useEffect(() => {
31
+ const t = window.matchMedia(m), c = () => p(t.matches);
32
+ return c(), t.addEventListener("change", c), () => t.removeEventListener("change", c);
33
+ }, []), e.useEffect(() => {
34
+ if (!a || !r) {
35
+ d(void 0);
36
+ return;
37
+ }
38
+ const t = B();
39
+ return d(t), () => {
40
+ N(t), d(void 0);
41
+ };
42
+ }, [a, r]), e.useEffect(() => {
43
+ if (!a) return;
44
+ const t = (c) => {
45
+ c.key === "Escape" && (c.preventDefault(), o());
46
+ };
47
+ return window.addEventListener("keydown", t), () => window.removeEventListener("keydown", t);
48
+ }, [a, o]), e.useEffect(() => {
49
+ if (!a || !r) return;
50
+ const t = document.body.style.overflow;
51
+ return document.body.style.overflow = "hidden", () => {
52
+ document.body.style.overflow = t;
53
+ };
54
+ }, [a, r]);
55
+ const w = y ?? (typeof s == "string" && s.trim() ? s : "Панель");
56
+ return /* @__PURE__ */ e.createElement(
57
+ "aside",
58
+ {
59
+ className: h(n.r, E),
60
+ "data-open": a ? "true" : "false",
61
+ "data-overlay": r ? "true" : "false",
62
+ "aria-hidden": !a,
63
+ "aria-label": a ? w : void 0,
64
+ style: i != null ? { zIndex: i } : void 0
65
+ },
66
+ a && r ? /* @__PURE__ */ e.createElement("div", { className: n.d, role: "presentation", onClick: o }) : null,
67
+ /* @__PURE__ */ e.createElement("div", { className: n.s }, /* @__PURE__ */ e.createElement("div", { className: n.h }, /* @__PURE__ */ e.createElement("div", { className: n.t }, typeof s == "string" || typeof s == "number" ? /* @__PURE__ */ e.createElement(b, { title: String(s), size: "m" }) : s), /* @__PURE__ */ e.createElement("div", { className: n.a }, u, v ?? /* @__PURE__ */ e.createElement(
68
+ "button",
69
+ {
70
+ type: "button",
71
+ className: n.c,
72
+ "aria-label": "Закрыть",
73
+ onClick: o
74
+ },
75
+ "×"
76
+ ))), /* @__PURE__ */ e.createElement("div", { className: n.b }, f), l != null ? /* @__PURE__ */ e.createElement("div", { className: n.f }, l) : null)
77
+ );
78
+ }
79
+ export {
80
+ T as P
81
+ };
@@ -0,0 +1 @@
1
+ @layer elcrm-components{.pBr{flex:0 0 auto;position:relative;width:0;min-width:0;min-height:0;align-self:stretch;overflow:hidden;opacity:0;pointer-events:none;transition:width .22s ease,opacity .18s ease,min-width .22s ease}.pBr[data-open=true]{width:var(--panel-info-width);min-width:var(--panel-info-width-min);opacity:1;pointer-events:auto}.pBs{display:flex;flex-direction:column;height:100%;min-height:0;width:var(--panel-info-width);min-width:var(--panel-info-width-min);box-sizing:border-box;border:var(--chat-border);border-radius:var(--chat-radius);background:var(--chat-background);color:var(--shell-color)}.pBh{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:var(--shell-gap-sm);padding:var(--shell-gap);border-bottom:var(--chat-border)}.pBt{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pBa{flex:0 0 auto;display:flex;align-items:center;gap:.25rem}.pBc{width:2rem;height:2rem;border:0;border-radius:var(--shell-radius);background:transparent;color:var(--shell-color-muted);font-size:1.35rem;line-height:1;cursor:pointer}.pBc:hover{color:var(--shell-color);background:var(--shell-background-muted)}.pBb{flex:1 1 auto;min-height:0;overflow:auto;padding:var(--shell-gap)}.pBf{flex:0 0 auto;padding:var(--shell-gap);border-top:var(--chat-border)}.pBd{display:none}@media (max-width: 56rem){.pBr[data-open=true]{width:0;min-width:0;opacity:1;overflow:visible;pointer-events:none}.pBr[data-open=true] .pBd{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:inherit;pointer-events:auto;background:var(--panel-info-backdrop);cursor:pointer}.pBr[data-open=true] .pBs{position:fixed;top:0;right:0;bottom:0;z-index:inherit;width:min(100vw,var(--panel-info-overlay-max));min-width:0;max-width:100vw;border-radius:0;border-left:var(--chat-border);border-right:none;border-top:none;border-bottom:none;pointer-events:auto;box-shadow:var(--popup-shadow)}}}
@@ -0,0 +1,52 @@
1
+ import { default as React } from 'react';
2
+ export type PanelInfoProps = {
3
+ /** Открыта ли панель. */
4
+ open: boolean;
5
+ /** Заголовок шапки. */
6
+ title: React.ReactNode;
7
+ /** Закрытие: крестик / фон / Escape. */
8
+ onClose: () => void;
9
+ /**
10
+ * Тело — форма (`@elcrm/form` поля) или любой контент.
11
+ * Скроллится между шапкой и footer.
12
+ */
13
+ children?: React.ReactNode;
14
+ /**
15
+ * Низ вне скролла — обычно `Stack` + `@elcrm/button`
16
+ * («Отмена» / «Сохранить»).
17
+ */
18
+ footer?: React.ReactNode;
19
+ /** Доп. действия в шапке слева от крестика. */
20
+ headerExtra?: React.ReactNode;
21
+ /**
22
+ * Слот кнопки закрытия. По умолчанию — крестик.
23
+ * Приложение может подставить `@elcrm/button`.
24
+ */
25
+ close?: React.ReactNode;
26
+ /** `aria-label` для `<aside>`, если title не строка. */
27
+ "aria-label"?: string;
28
+ /** Доп. CSS-класс. */
29
+ className?: string;
30
+ };
31
+ /**
32
+ * Выезжающая панель справа: шапка / body / footer.
33
+ *
34
+ * Широкий экран — flex-колонка рядом со списком.
35
+ * Узкий (`max-width: 56rem`) — поверх контента с затемнением
36
+ * и `acquireOverlayZIndex`.
37
+ *
38
+ * @example
39
+ * ```tsx
40
+ * <PanelInfo
41
+ * open={!!row}
42
+ * title={row?.name ?? ""}
43
+ * onClose={() => setId(null)}
44
+ * footer={<Button width="l" label="Сохранить" onSend={onSave} />}
45
+ * >
46
+ * <StringField name="name" form={form} label="Название" />
47
+ * </PanelInfo>
48
+ * ```
49
+ *
50
+ * Токены: `--panel-info-width`, `--panel-info-backdrop`, `--shell-*`, `--chat-*`.
51
+ */
52
+ export declare function PanelInfo({ open, title, onClose, children, footer, headerExtra, close, "aria-label": ariaLabel, className, }: PanelInfoProps): React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { P as e } from "./PanelInfo-A5y5ysH8.js";
2
+ export {
3
+ e as PanelInfo
4
+ };
@@ -0,0 +1,135 @@
1
+ import u, { useRef as E, useId as Y, useState as N, useLayoutEffect as O, useEffect as S } from "react";
2
+ import { createPortal as _ } from "react-dom";
3
+ import { c as T } from "./cx-CcykAxZN.js";
4
+ import { a as $, r as V } from "./overlayZ-BvHbYC1x.js";
5
+ import { u as ee } from "./useControllableValue-CWqH1kpM.js";
6
+ import './Popover.css';const te = "c3r", ne = "c3t", oe = "c3p", H = {
7
+ r: te,
8
+ t: ne,
9
+ p: oe
10
+ };
11
+ function ie(t, e) {
12
+ const c = (e == null ? void 0 : e.querySelector("button, a, [role='button']")) ?? (e == null ? void 0 : e.firstElementChild);
13
+ return (c instanceof HTMLElement ? c : e ?? t).getBoundingClientRect();
14
+ }
15
+ function re(t, e) {
16
+ return t != null && t.top === e.top && t.left === e.left && t.minWidth === e.minWidth && t.maxHeight === e.maxHeight;
17
+ }
18
+ function se(t, e, c, p) {
19
+ if (!u.isValidElement(t)) return t;
20
+ const d = t.props.onClick;
21
+ return u.cloneElement(t, {
22
+ "aria-haspopup": "menu",
23
+ "aria-expanded": e,
24
+ "aria-controls": e ? c : void 0,
25
+ onClick: (h) => {
26
+ d == null || d(h), p();
27
+ }
28
+ });
29
+ }
30
+ function fe({
31
+ trigger: t,
32
+ children: e,
33
+ open: c,
34
+ defaultOpen: p = !1,
35
+ onOpenChange: d,
36
+ align: h = "end",
37
+ placement: w = "auto",
38
+ disabled: W = !1,
39
+ label: Z,
40
+ role: D = "menu",
41
+ className: F,
42
+ panelClassName: K
43
+ }) {
44
+ const x = E(null), b = E(null), g = E(null), y = Y(), [i = !1, j] = ee(
45
+ c,
46
+ p,
47
+ d
48
+ ), [m, P] = N(null), [a, k] = N(null), L = E(null);
49
+ L.current = a;
50
+ const M = (o) => {
51
+ W && o || j(o);
52
+ };
53
+ O(() => {
54
+ if (i) {
55
+ a == null && k($());
56
+ return;
57
+ }
58
+ a != null && (V(a), k(null));
59
+ }, [i, a]), S(() => () => {
60
+ L.current != null && V(L.current);
61
+ }, []);
62
+ const R = () => {
63
+ var A;
64
+ const o = x.current;
65
+ if (!o) return;
66
+ const n = ie(o, b.current), r = 8, l = 8, s = ((A = g.current) == null ? void 0 : A.offsetHeight) ?? 0, f = window.innerHeight - n.bottom - r - l, J = n.top - r - l, Q = s > 0 ? s : 160, I = w === "bottom" || w !== "top" && f >= Q, U = Math.min(
67
+ 420,
68
+ Math.max(120, I ? f : J)
69
+ ), v = Math.max(200, n.width), X = h === "end" ? Math.max(8, Math.min(n.right - v, window.innerWidth - v - 8)) : Math.max(8, Math.min(n.left, window.innerWidth - v - 8)), q = { top: I ? n.bottom + r : Math.max(l, n.top - r - (s > 0 ? s : 0)), left: X, minWidth: v, maxHeight: U };
70
+ P((B) => re(B, q) ? B : q);
71
+ };
72
+ O(() => {
73
+ if (!i) {
74
+ P(null);
75
+ return;
76
+ }
77
+ R();
78
+ const o = window.requestAnimationFrame(() => R()), n = () => R();
79
+ return window.addEventListener("resize", n), window.addEventListener("scroll", n, !0), () => {
80
+ window.cancelAnimationFrame(o), window.removeEventListener("resize", n), window.removeEventListener("scroll", n, !0);
81
+ };
82
+ }, [i, h, w, e]), S(() => {
83
+ if (!i) return;
84
+ const o = (r) => {
85
+ var s, f;
86
+ const l = r.target;
87
+ (s = x.current) != null && s.contains(l) || (f = g.current) != null && f.contains(l) || M(!1);
88
+ }, n = (r) => {
89
+ r.key === "Escape" && M(!1);
90
+ };
91
+ return document.addEventListener("mousedown", o), document.addEventListener("keydown", n), () => {
92
+ document.removeEventListener("mousedown", o), document.removeEventListener("keydown", n);
93
+ };
94
+ }, [i]);
95
+ const G = {
96
+ position: "fixed",
97
+ zIndex: a ?? 1e3,
98
+ ...m ? {
99
+ top: m.top,
100
+ bottom: "auto",
101
+ left: m.left,
102
+ minWidth: m.minWidth,
103
+ maxHeight: m.maxHeight
104
+ } : { visibility: "hidden", pointerEvents: "none" }
105
+ }, z = i ? /* @__PURE__ */ u.createElement(
106
+ "div",
107
+ {
108
+ ref: g,
109
+ id: y,
110
+ role: D,
111
+ "aria-label": Z,
112
+ className: T(H.p, K),
113
+ style: G,
114
+ onMouseDown: (o) => o.stopPropagation()
115
+ },
116
+ e
117
+ ) : null, C = () => {
118
+ W || M(!i);
119
+ };
120
+ return /* @__PURE__ */ u.createElement("div", { ref: x, className: T(H.r, F) }, /* @__PURE__ */ u.createElement(
121
+ "div",
122
+ {
123
+ ref: b,
124
+ className: H.t,
125
+ "aria-haspopup": "menu",
126
+ "aria-expanded": i,
127
+ "aria-controls": i ? y : void 0,
128
+ onClick: u.isValidElement(t) ? void 0 : C
129
+ },
130
+ se(t, i, y, C)
131
+ ), z && typeof document < "u" ? _(z, document.body) : null);
132
+ }
133
+ export {
134
+ fe as P
135
+ };
package/dist/Popover.js CHANGED
@@ -1,4 +1,4 @@
1
- import { P as e } from "./Popover-D5RymtcJ.js";
1
+ import { P as e } from "./Popover-DWdvZTuA.js";
2
2
  export {
3
3
  e as Popover
4
4
  };
@@ -1,6 +1,6 @@
1
1
  import e from "react";
2
2
  import { B as h } from "./Badge-jp-9iNNL.js";
3
- import { D as w } from "./Dropdown-B9AodUFf.js";
3
+ import { D as w } from "./Dropdown-DosvDR13.js";
4
4
  import { I as y } from "./Item-D4okhsfW.js";
5
5
  import { b as C } from "./badgeText-CRzlIzi3.js";
6
6
  import { c as u } from "./cx-CcykAxZN.js";
package/dist/Sidebar.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as e } from "./Sidebar-BSOLtF8H.js";
1
+ import { S as e } from "./Sidebar-BgZiGEDH.js";
2
2
  export {
3
3
  e as Sidebar
4
4
  };
@@ -0,0 +1,42 @@
1
+ import t from "react";
2
+ import { c as i } from "./cx-CcykAxZN.js";
3
+ import './Toolbar.css';const m = "cCr", f = {
4
+ r: m
5
+ }, a = t.createContext(null);
6
+ function x() {
7
+ return t.useContext(a);
8
+ }
9
+ function s(e, n) {
10
+ return t.Children.map(e, (r) => t.isValidElement(r) ? r.type === t.Fragment ? s(
11
+ r.props.children,
12
+ n
13
+ ) : typeof r.type == "string" || r.props.size != null ? r : t.cloneElement(r, { size: n }) : r);
14
+ }
15
+ function C({
16
+ size: e = "s",
17
+ label: n = "Тулбар",
18
+ align: r = "start",
19
+ width: o = "l",
20
+ className: l,
21
+ children: p,
22
+ ...u
23
+ }) {
24
+ return /* @__PURE__ */ t.createElement(a.Provider, { value: { size: e } }, /* @__PURE__ */ t.createElement(
25
+ "div",
26
+ {
27
+ className: i(f.r, l),
28
+ role: "toolbar",
29
+ "aria-label": n,
30
+ "data-size": e,
31
+ "data-align": r,
32
+ "data-width": o,
33
+ ...u
34
+ },
35
+ s(p, e)
36
+ ));
37
+ }
38
+ export {
39
+ C as T,
40
+ s as a,
41
+ x as u
42
+ };
@@ -0,0 +1 @@
1
+ @layer elcrm-components{.cCr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--toolbar-gap);width:100%;min-width:0;box-sizing:border-box}.cCr[data-width=s]{display:inline-flex;width:auto;max-width:100%}.cCr[data-align=center]{justify-content:center}.cCr[data-align=end]{justify-content:flex-end}.cCr[data-align=between]{justify-content:space-between}.cCr[data-size=s]{--control-height: var(--control-height-s);--field-height: var(--control-height-s);--control-font-size: 13px;--button-height: var(--button-height-s);--button-height-m: var(--button-height-s);--button-padding: var(--button-padding-s);--button-size-m: var(--button-size-s)}.cCr[data-size=l]{--control-height: var(--control-height-l);--field-height: var(--control-height-l);--button-height: var(--button-height-l);--button-height-m: var(--button-height-l);--button-size-m: var(--button-size-l)}}
@@ -0,0 +1,63 @@
1
+ import { default as React } from 'react';
2
+ import { UiSize } from './types';
3
+ /** Контекст размера тулбара — дети без своего `size` его подхватывают. */
4
+ export type ToolbarContextValue = {
5
+ size: UiSize;
6
+ };
7
+ /** Размер ближайшего {@link Toolbar}, либо `null` вне тулбара. */
8
+ export declare function useToolbar(): ToolbarContextValue | null;
9
+ export type ToolbarAlign = "start" | "center" | "end" | "between";
10
+ /** Ширина ряда: `l` — 100%, `s` — по содержимому (как `width` у Button). */
11
+ export type ToolbarWidth = "s" | "l";
12
+ export type ToolbarProps = Omit<React.HTMLAttributes<HTMLDivElement>, "children"> & {
13
+ /**
14
+ * Общий размер вложенных Field / Search / Button / Dropdown / Badge.
15
+ * Явный `size` у ребёнка важнее.
16
+ * @default "s"
17
+ */
18
+ size?: UiSize;
19
+ /** Подпись для `aria-label`. */
20
+ label?: string;
21
+ /**
22
+ * Направление ряда (`justify-content`).
23
+ * @default "start"
24
+ */
25
+ align?: ToolbarAlign;
26
+ /**
27
+ * Ширина корня: `l` — `100%` (фильтры над списком),
28
+ * `s` — по контенту (компактный ряд, не растягивать).
29
+ * @default "l"
30
+ */
31
+ width?: ToolbarWidth;
32
+ /**
33
+ * Узлы тулбара (`*Field`, `Search`, `Button`, `Dropdown`, …).
34
+ * Компонентам без `size` прокидывается размер тулбара.
35
+ */
36
+ children?: React.ReactNode;
37
+ };
38
+ /** Прокинуть `size` прямым детям-компонентам, если у них его ещё нет. */
39
+ export declare function applyToolbarSize(node: React.ReactNode, size: UiSize): React.ReactNode;
40
+ /**
41
+ * Ряд контролов одной высоты: поиск, поля, кнопки, меню.
42
+ *
43
+ * Роли: Toolbar = фильтры / действия над списком (`PageHead.children`).
44
+ * Иконки в карточке — `ActionGroup`.
45
+ *
46
+ * Пакет не зависит от `@elcrm/form` / `@elcrm/button`:
47
+ * размер уходит пропом `size` и токенами `--field-height` / `--button-height-*`.
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * <Toolbar size="s" align="end" label="Фильтры">
52
+ * <Search value={q} onValue={setQ} />
53
+ * <Button label="Создать" />
54
+ * </Toolbar>
55
+ * <Toolbar width="s" align="center">
56
+ * <Button label="Отмена" />
57
+ * <Button label="Сохранить" />
58
+ * </Toolbar>
59
+ * ```
60
+ *
61
+ * Токены: `--toolbar-gap`, `--control-height-*`, `--button-height-*`.
62
+ */
63
+ export declare function Toolbar({ size, label, align, width, className, children, ...rest }: ToolbarProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { T as r, a as l, u as s } from "./Toolbar-C1zAk9ak.js";
2
+ export {
3
+ r as Toolbar,
4
+ l as applyToolbarSize,
5
+ s as useToolbar
6
+ };
package/dist/index.css CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  @layer elcrm-components{.c8r{display:flex;flex-direction:column;box-sizing:border-box;min-width:0;min-height:0;height:100%;overflow:hidden;background:var(--chat-background);border:var(--chat-border);border-radius:var(--chat-radius)}.c8l{width:var(--chat-list-width);max-width:100%}.c8g{width:100%}.c8h{flex:0 0 auto;padding:var(--chat-header-padding);border-bottom:var(--chat-border)}.c8b{flex:1 1 auto;min-height:0;overflow:auto;padding:var(--chat-body-padding)}.c8g .c8h{padding:var(--chat-messages-header-padding)}.c8g .c8b{display:flex;flex-direction:column;padding:var(--chat-messages-body-padding)}.c8f{flex:0 0 auto;padding:var(--chat-footer-padding);border-top:var(--chat-border)}.c8g .c8f{padding:var(--chat-messages-footer-padding)}.c8p{display:flex;align-items:stretch;gap:var(--chat-split-gap);min-height:0;height:100%}.c8p>*{min-height:0}}
18
18
 
19
- @layer elcrm-components{.crr{position:relative;display:inline-flex;vertical-align:middle}.crt{display:inline-flex;align-items:center;gap:var(--shell-gap-sm);margin:0;padding:var(--shell-padding);box-sizing:border-box;font:inherit;font-size:var(--shell-font-size);font-weight:var(--shell-font-weight);color:var(--shell-color);background:var(--shell-background);border:1px solid var(--shell-border);border-radius:var(--shell-radius);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.2}.crt:hover{background:var(--shell-background-hover)}.crt[data-open=true]{border-color:var(--shell-color-accent);color:var(--shell-color-accent)}.crc{display:inline-flex;width:var(--shell-icon-size);height:var(--shell-icon-size);flex-shrink:0;color:var(--shell-color-muted)}.crt[data-open=true] .crc{color:var(--shell-color-accent)}.crp{min-width:0}.crh{margin:0;padding:var(--shell-padding);font-size:var(--shell-font-size-sm);font-weight:var(--shell-font-weight);color:var(--shell-color-muted);line-height:1.3}.crg{display:flex;flex-direction:column;gap:2px}.crd{height:0;margin:var(--shell-gap-sm) 0;border:0;border-top:1px solid var(--shell-border)}.cri{display:flex;align-items:center;gap:var(--shell-gap-sm);width:100%;margin:0;padding:var(--shell-padding);box-sizing:border-box;text-align:left;font:inherit;font-size:var(--shell-font-size);font-weight:500;color:var(--shell-color);background:transparent;border:none;border-radius:calc(var(--shell-radius) * .7);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.35}.cri:hover:not(:disabled),.cri:focus-visible:not(:disabled){background:var(--shell-background-hover);outline:none}.cri[data-checked=true]{background:var(--shell-background-selected)}.cri[data-danger=true]{color:var(--shell-color-danger)}.cri[data-danger=true] .crn,.cri[data-danger=true] .crm{color:inherit}.cri:disabled,.cri[aria-disabled=true]{opacity:var(--shell-disabled-opacity);cursor:not-allowed}.crn,.crk{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--shell-icon-size);height:var(--shell-icon-size);color:var(--shell-color-muted)}.crk{color:var(--shell-color-accent)}.crl{flex:1;min-width:0}.cru{flex-shrink:0;margin-left:auto;font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.crm{display:inline-flex;flex-shrink:0;margin-left:auto;width:var(--shell-icon-size);height:var(--shell-icon-size);color:var(--shell-color-muted)}.crb{display:inline-flex;flex-shrink:0;width:var(--shell-status-size);height:var(--shell-status-size);border-radius:50%}.cro{background:var(--shell-color-success)}.crf{background:var(--shell-color-muted)}.crx{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;box-sizing:border-box;width:var(--shell-check-size);height:var(--shell-check-size);border:1px solid var(--shell-border);border-radius:calc(var(--shell-radius) * .4);background:var(--shell-background);color:var(--avatar-color)}.cry{border-color:var(--shell-color-accent);background:var(--shell-color-accent)}.crv{width:70%;height:70%;display:block}}
19
+ @layer elcrm-components{.crr{position:relative;display:inline-flex;vertical-align:middle}.crt{display:inline-flex;align-items:center;gap:var(--shell-gap-sm);margin:0;padding:var(--shell-padding);box-sizing:border-box;font:inherit;font-size:var(--shell-font-size);font-weight:var(--shell-font-weight);color:var(--shell-color);background:var(--shell-background);border:1px solid var(--shell-border);border-radius:var(--shell-radius);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.2}.crt[data-size]{height:var(--control-height);min-height:var(--control-height);padding-block:0;box-sizing:border-box}.crt:hover{background:var(--shell-background-hover)}.crt[data-open=true]{border-color:var(--shell-color-accent);color:var(--shell-color-accent)}.crc{display:inline-flex;width:var(--shell-icon-size);height:var(--shell-icon-size);flex-shrink:0;color:var(--shell-color-muted)}.crt[data-open=true] .crc{color:var(--shell-color-accent)}.crp{min-width:0}.crh{margin:0;padding:var(--shell-padding);font-size:var(--shell-font-size-sm);font-weight:var(--shell-font-weight);color:var(--shell-color-muted);line-height:1.3}.crg{display:flex;flex-direction:column;gap:2px}.crd{height:0;margin:var(--shell-gap-sm) 0;border:0;border-top:1px solid var(--shell-border)}.cri{display:flex;align-items:center;gap:var(--shell-gap-sm);width:100%;margin:0;padding:var(--shell-padding);box-sizing:border-box;text-align:left;font:inherit;font-size:var(--shell-font-size);font-weight:500;color:var(--shell-color);background:transparent;border:none;border-radius:calc(var(--shell-radius) * .7);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.35}.cri:hover:not(:disabled),.cri:focus-visible:not(:disabled){background:var(--shell-background-hover);outline:none}.cri[data-checked=true]{background:var(--shell-background-selected)}.cri[data-danger=true]{color:var(--shell-color-danger)}.cri[data-danger=true] .crn,.cri[data-danger=true] .crm{color:inherit}.cri:disabled,.cri[aria-disabled=true]{opacity:var(--shell-disabled-opacity);cursor:not-allowed}.crn,.crk{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--shell-icon-size);height:var(--shell-icon-size);color:var(--shell-color-muted)}.crk{color:var(--shell-color-accent)}.crl{flex:1;min-width:0}.cru{flex-shrink:0;margin-left:auto;font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.crm{display:inline-flex;flex-shrink:0;margin-left:auto;width:var(--shell-icon-size);height:var(--shell-icon-size);color:var(--shell-color-muted)}.crb{display:inline-flex;flex-shrink:0;width:var(--shell-status-size);height:var(--shell-status-size);border-radius:50%}.cro{background:var(--shell-color-success)}.crf{background:var(--shell-color-muted)}.crx{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;box-sizing:border-box;width:var(--shell-check-size);height:var(--shell-check-size);border:1px solid var(--shell-border);border-radius:calc(var(--shell-radius) * .4);background:var(--shell-background);color:var(--avatar-color)}.cry{border-color:var(--shell-color-accent);background:var(--shell-color-accent)}.crv{width:70%;height:70%;display:block}}
20
20
 
21
21
  @layer elcrm-components{.cpr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--shell-gap);padding:var(--shell-padding);text-align:center;color:var(--shell-color-muted)}.cpi{display:flex;margin-bottom:var(--shell-gap-sm);color:var(--shell-color-muted)}.cpt{margin:0;font-size:var(--shell-font-size-lg);font-weight:var(--shell-font-weight);color:var(--shell-color);line-height:1.3}.cpd{margin:0;max-width:22rem;font-size:var(--shell-font-size);color:var(--shell-color-muted);line-height:1.45}.cpa{display:flex;flex-wrap:wrap;gap:var(--shell-gap-sm);justify-content:center;margin-top:var(--shell-gap)}}
22
22
 
@@ -24,15 +24,17 @@
24
24
 
25
25
  @layer elcrm-components{.chr{display:flex;align-items:center;gap:var(--shell-gap);flex-shrink:0;min-height:var(--header-height);padding:var(--shell-padding);color:var(--shell-color);background:var(--shell-background);border:var(--header-border);border-radius:var(--header-radius);box-shadow:var(--header-shadow);margin:var(--header-margin);position:relative;z-index:var(--header-z)}.chn{display:flex;flex:1;align-items:center;min-width:0;justify-content:var(--header-nav-justify)}.cha{display:flex;align-items:center;gap:var(--shell-gap-sm);flex-shrink:0;margin:auto}}
26
26
 
27
+ @layer elcrm-components{.hAr{display:flex;gap:var(--shell-gap);align-items:stretch;width:100%}.hAc,.hAa{border:1px solid var(--shell-border);border-radius:var(--shell-radius);background:var(--shell-background);box-sizing:border-box}.hAc{flex:1;min-width:0;display:flex;flex-direction:column;padding:var(--shell-gap-lg) var(--shell-padding-inline);overflow-x:auto}.hAh{margin-bottom:var(--shell-gap-sm)}.hAt{margin:0;font-size:var(--shell-font-size);font-weight:var(--shell-font-weight);color:var(--shell-color)}.hAm{position:relative;margin:0 0 4px 26px;height:16px;font-size:11px;color:var(--shell-color-muted)}.hAo{position:absolute;top:0;white-space:nowrap}.hAn{display:flex;gap:4px;align-items:flex-start;flex:1}.hAd{display:grid;grid-template-rows:repeat(7,var(--healthmap-cell));gap:var(--healthmap-gap);width:22px;font-size:10px;line-height:var(--healthmap-cell);color:var(--shell-color-muted);flex-shrink:0;align-content:center}.hAw{display:grid;gap:var(--healthmap-gap);align-content:center}.hAk{display:grid;grid-template-rows:repeat(7,var(--healthmap-cell));gap:var(--healthmap-gap)}.hAe{width:var(--healthmap-cell);height:var(--healthmap-cell);padding:0;border:0;border-radius:2px;background:var(--healthmap-l0);box-sizing:border-box;cursor:default;display:block}.hAe:focus-visible{outline:2px solid var(--shell-color-accent);outline-offset:1px}.hAe[data-level="1"]{background:var(--healthmap-l1)}.hAe[data-level="2"]{background:var(--healthmap-l2)}.hAe[data-level="3"]{background:var(--healthmap-l3)}.hAe[data-level="4"]{background:var(--healthmap-l4)}.hAf{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;margin-top:auto;padding-top:10px;margin-left:26px;font-size:11px;color:var(--shell-color-muted)}.hAi{min-width:0}.hAg{display:flex;align-items:center;gap:4px;justify-self:end}.hAa{flex:0 0 180px;display:flex;flex-direction:column;gap:var(--shell-gap-lg);padding:var(--shell-gap-lg) 18px}.hAb{display:flex;flex-direction:column;gap:2px;line-height:1.2}.hAb>span:first-child{font-size:var(--shell-font-size-lg);font-weight:700;letter-spacing:-.02em;color:var(--shell-color)}.hAb>span:last-child{font-size:11px;color:var(--shell-color-muted);text-transform:uppercase;letter-spacing:.04em}.hAp{display:flex;flex-direction:column;gap:var(--shell-gap-sm);flex:1;justify-content:center}.hAq{display:flex;flex-direction:column;gap:2px}.hAv{font-size:20px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:var(--shell-color);line-height:1.1}.hAl{font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.hAz{display:flex;align-items:center;justify-content:center;gap:4px;justify-self:center}.hAj{display:flex;align-items:center;gap:4px}.hAu{width:28px;height:28px;border:0;border-radius:var(--shell-radius);background:transparent;color:var(--shell-color-muted);font-size:18px;line-height:1;cursor:pointer}.hAu:hover:not(:disabled){color:var(--shell-color);background:var(--shell-background-muted)}.hAu:disabled{opacity:var(--shell-disabled-opacity);cursor:default}.hAx{border:0;background:transparent;color:var(--shell-color-muted);font-size:var(--shell-font-size-sm);padding:5px 11px;border-radius:999px;cursor:pointer}.hAx:hover{color:var(--shell-color)}.hAs{background:var(--shell-color-accent);color:var(--shell-background)}.hAy{position:fixed;z-index:calc(var(--shell-z) + 50);transform:translate(-50%,calc(-100% - 10px));min-width:160px;max-width:280px;padding:var(--shell-gap-sm) var(--shell-gap);border-radius:var(--shell-radius);background:var(--shell-background);border:1px solid var(--shell-border);box-shadow:var(--popup-shadow);pointer-events:none;color:var(--shell-color)}.hAy>:first-child{font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.hAy>:last-child{font-size:var(--shell-font-size);font-weight:600}@media (max-width: 720px){.hAr{flex-direction:column}.hAa{flex:none;width:100%}.hAf{grid-template-columns:1fr;margin-left:0;justify-items:start}.hAg,.hAz{justify-self:start}}}
28
+
27
29
  @layer elcrm-components{.cir{display:flex;align-items:center;gap:var(--shell-gap-sm);padding:var(--shell-padding);color:var(--shell-color);background:transparent;border:1px solid transparent;border-radius:var(--shell-radius);cursor:default}.cir:is(button,a){-webkit-appearance:none;-moz-appearance:none;appearance:none;font:inherit;text-align:left;width:100%;cursor:pointer}.cir:hover{background:var(--shell-background-hover)}.cia,.cir[aria-current=true],.cir[data-active=true]{background:var(--shell-background-selected)}.cic{align-items:flex-start;gap:var(--shell-gap);padding:var(--shell-padding);border:1px solid var(--shell-border);border-radius:var(--shell-radius);background:var(--shell-background-muted);flex-shrink:0}.cic:hover,.cic.cia,.cic[data-active=true]{background:color-mix(in srgb,var(--shell-color-accent) 12%,var(--shell-background-muted));border-color:color-mix(in srgb,var(--shell-color-accent) 35%,transparent)}}
28
30
 
29
31
  @layer elcrm-components{.c7r{display:flex;align-items:flex-start;gap:var(--item-column-gap);min-width:0;width:100%;text-align:left}.c7i{flex-shrink:0;box-sizing:border-box;width:var(--item-column-icon-size);height:var(--item-column-icon-size);border-radius:var(--item-column-icon-radius);display:inline-flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--shell-color-accent) 14%,transparent);color:var(--shell-color-accent)}.c7b{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}.c7h{display:flex;align-items:center;gap:8px;min-width:0}.c7t{flex:1;min-width:0;margin:0;font-size:var(--item-column-title-size);font-weight:var(--shell-font-weight);color:var(--shell-color);line-height:var(--item-column-title-line);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c7x{flex-shrink:0;display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px}.c7d{margin:0;font-size:var(--shell-font-size-sm);font-weight:400;color:var(--shell-color);line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.c7f{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 6px;font-size:12px;color:var(--shell-color-muted);line-height:1.35}.c7p{opacity:.5;-webkit-user-select:none;user-select:none}.c7a{flex-shrink:0;display:inline-flex;align-items:flex-start}.c7s .c7t{font-size:var(--shell-font-size-sm)}.c7s .c7d{font-size:12px}.c7l .c7t{font-size:var(--shell-font-size-lg)}.c7l .c7d{font-size:var(--shell-font-size)}.c7k .c7t{font-weight:700}}
30
32
 
31
- @layer elcrm-components{.clr{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;box-sizing:border-box;background:var(--shell-background-muted);margin:var(--layout-margin);padding:var(--layout-padding);max-width:var(--layout-max-width);gap:0}.clx{height:var(--layout-height, 100dvh);max-height:var(--layout-height, 100dvh);overflow:hidden}.clm{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.clr:not(.clx){height:auto;max-height:none;overflow:visible}.clr:not(.clx) .clm{overflow:visible;flex:0 1 auto;min-height:auto}.cls{flex-direction:row;align-items:stretch}.clb{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden}.clr:not(.clx) .clb{overflow:visible}.cla{display:flex;flex-direction:column;flex:0 0 var(--sidebar-width, 248px);width:var(--sidebar-width, 248px);min-width:0;min-height:0;align-self:stretch}.clk{overflow:hidden}.cla:not(.clk){overflow:auto}.cla>*{flex:1 1 auto;min-height:0;width:100%;height:100%;max-height:100%}@media (max-width: 900px){.cla{flex-basis:72px;width:72px}}.clh,.clf{flex:0 0 auto;min-width:0}}
33
+ @layer elcrm-components{.clr{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;box-sizing:border-box;background:var(--shell-background-muted);margin:var(--layout-margin);padding:var(--layout-padding);max-width:var(--layout-max-width);gap:0}.clx{height:var(--layout-height, 100dvh);max-height:var(--layout-height, 100dvh);overflow:hidden}.clm{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.clr:not(.clx){height:auto;max-height:none;overflow:visible}.clr:not(.clx) .clm{overflow:visible;flex:0 1 auto;min-height:auto}.cls{flex-direction:row;align-items:stretch;gap:var(--layout-gap, 0)}.clb{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;background:var(--layout-main-background, transparent);border-radius:var(--layout-main-radius, 0);box-shadow:var(--layout-main-shadow, none);border:var(--layout-main-border, none)}.clr:not(.clx) .clb{overflow:visible}.cla{display:flex;flex-direction:column;flex:0 0 var(--sidebar-width, 248px);width:var(--sidebar-width, 248px);min-width:0;min-height:0;align-self:stretch}.clk{overflow:hidden}.cla:not(.clk){overflow:auto}.cla>*{flex:1 1 auto;min-height:0;width:100%;height:100%;max-height:100%}@media (max-width: 900px){.cla{flex-basis:72px;width:72px}}.clh,.clf{flex:0 0 auto;min-width:0}}
32
34
 
33
35
  @layer elcrm-components{.csr{display:flex;flex-direction:column;gap:var(--shell-gap-sm);padding:0;margin:0;list-style:none}.csh{flex-direction:row;flex-wrap:wrap}}
34
36
 
35
- @layer elcrm-components{.cgr{display:flex;align-items:center;justify-content:center;gap:var(--shell-gap-sm);padding:var(--shell-gap-lg);color:var(--shell-color-muted)}.cgi{box-sizing:border-box;width:var(--shell-icon-size);height:var(--shell-icon-size);border:2px solid var(--shell-border);border-top-color:var(--shell-color-accent);border-radius:var(--avatar-radius);animation:cgspin .7s linear infinite}}@keyframes cgspin{to{transform:rotate(360deg)}}
37
+ @layer elcrm-components{.cgr{display:flex;align-items:center;justify-content:center;gap:var(--shell-gap-sm);padding:var(--shell-gap-lg);color:var(--shell-color-muted)}.cgi{box-sizing:border-box;width:var(--shell-icon-size);height:var(--shell-icon-size);border:2px solid var(--shell-border);border-top-color:var(--shell-color-accent);border-radius:var(--avatar-radius);animation:cgk .7s linear infinite}}@keyframes cgk{to{transform:rotate(360deg)}}
36
38
 
37
39
  @layer elcrm-components{.cmr{display:flex;align-items:center;gap:var(--shell-gap-sm);margin:0;padding:0;list-style:none}.cmv{flex-direction:column;align-items:stretch}.cmi{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--button-color-muted);padding:var(--button-padding);border-radius:var(--button-radius);font:inherit;line-height:1;cursor:pointer;text-align:left;gap:var(--shell-gap-sm)}.cmd{flex-shrink:0;min-width:16px;height:16px;padding:0 4px;font-size:10px}.cmi>svg{display:block;flex-shrink:0}.cmi:hover{background:var(--button-background-hover);color:var(--button-color)}.cma,.cmi[aria-current=page],.cmi[data-active=true]{background:var(--button-background-selected);color:var(--button-color)}.cmu{width:100%;align-items:stretch;gap:1.25rem;padding:0;border-bottom:1px solid var(--shell-border)}.cmu .cmi{border-radius:0;background:transparent;padding:.45rem .1rem .55rem;border-bottom:2px solid transparent;margin-bottom:-1px}.cmu .cmi:hover{background:transparent;color:var(--shell-color)}.cmu .cma,.cmu .cmi[aria-current=page],.cmu .cmi[data-active=true]{background:transparent;color:var(--shell-color);border-bottom-color:var(--shell-color-accent)}}
38
40
 
@@ -42,6 +44,8 @@
42
44
 
43
45
  @layer elcrm-components{.ckr{flex:1 1 auto;min-height:0;height:100%;width:100%;display:flex;flex-direction:column;box-sizing:border-box;padding:var(--shell-padding);overflow:hidden}.ckw{max-width:none}.ckb{flex:1 1 auto;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:var(--shell-gap)}.ckf{flex:0 0 auto;padding-top:var(--shell-gap-sm)}.cko{overflow:visible;height:auto}.cko .ckb{overflow:visible;flex:0 1 auto;min-height:auto}}
44
46
 
47
+ @layer elcrm-components{.pBr{flex:0 0 auto;position:relative;width:0;min-width:0;min-height:0;align-self:stretch;overflow:hidden;opacity:0;pointer-events:none;transition:width .22s ease,opacity .18s ease,min-width .22s ease}.pBr[data-open=true]{width:var(--panel-info-width);min-width:var(--panel-info-width-min);opacity:1;pointer-events:auto}.pBs{display:flex;flex-direction:column;height:100%;min-height:0;width:var(--panel-info-width);min-width:var(--panel-info-width-min);box-sizing:border-box;border:var(--chat-border);border-radius:var(--chat-radius);background:var(--chat-background);color:var(--shell-color)}.pBh{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:var(--shell-gap-sm);padding:var(--shell-gap);border-bottom:var(--chat-border)}.pBt{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pBa{flex:0 0 auto;display:flex;align-items:center;gap:.25rem}.pBc{width:2rem;height:2rem;border:0;border-radius:var(--shell-radius);background:transparent;color:var(--shell-color-muted);font-size:1.35rem;line-height:1;cursor:pointer}.pBc:hover{color:var(--shell-color);background:var(--shell-background-muted)}.pBb{flex:1 1 auto;min-height:0;overflow:auto;padding:var(--shell-gap)}.pBf{flex:0 0 auto;padding:var(--shell-gap);border-top:var(--chat-border)}.pBd{display:none}@media (max-width: 56rem){.pBr[data-open=true]{width:0;min-width:0;opacity:1;overflow:visible;pointer-events:none}.pBr[data-open=true] .pBd{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:inherit;pointer-events:auto;background:var(--panel-info-backdrop);cursor:pointer}.pBr[data-open=true] .pBs{position:fixed;top:0;right:0;bottom:0;z-index:inherit;width:min(100vw,var(--panel-info-overlay-max));min-width:0;max-width:100vw;border-radius:0;border-left:var(--chat-border);border-right:none;border-top:none;border-bottom:none;pointer-events:auto;box-shadow:var(--popup-shadow)}}}
48
+
45
49
  @layer elcrm-components{.c3r{position:relative;display:inline-flex;vertical-align:middle}.c3t{display:inline-flex;align-items:center;min-width:0;height:auto}.c3p{box-sizing:border-box;overflow:auto;padding:var(--shell-gap-sm);background:var(--shell-background);border:1px solid var(--shell-border);border-radius:var(--shell-radius);box-shadow:var(--popup-shadow);color:var(--shell-color);min-width:var(--dropdown-min-width);max-width:var(--dropdown-max-width);max-height:var(--dropdown-max-height)}}
46
50
 
47
51
  @layer elcrm-components{.cur{display:grid;grid-template-columns:repeat(auto-fit,minmax(var(--pricing-card-min-width),1fr));gap:var(--shell-gap-lg);align-items:stretch}.cui{position:relative;display:flex;flex-direction:column;gap:var(--shell-gap);padding:var(--shell-padding);box-sizing:border-box;text-align:left;font:inherit;color:var(--shell-color);background:var(--shell-background);border:1px solid var(--shell-border);border-radius:var(--shell-radius);box-shadow:var(--shell-shadow)}.cui[data-selectable=true]{cursor:pointer}.cui:disabled,.cui[aria-disabled=true]{opacity:var(--shell-disabled-opacity);cursor:not-allowed}.cus,.cui[data-selected=true],.cui[data-highlighted=true]{border-color:var(--shell-color-accent);background:var(--shell-background-selected);box-shadow:var(--shell-shadow)}.cub{display:flex;align-items:center;justify-content:center;margin:calc(-1 * var(--shell-padding-block)) calc(-1 * var(--shell-padding-inline)) 0;padding:var(--shell-gap-sm) var(--shell-padding-inline);border-radius:var(--shell-radius) var(--shell-radius) 0 0;background:var(--shell-color-accent);color:var(--avatar-color);font-size:var(--shell-font-size-sm);font-weight:var(--shell-font-weight);text-align:center}.cug{display:inline-flex;align-items:center;width:fit-content;padding:.15rem .5rem;border-radius:999px;background:var(--shell-background-hover);color:var(--shell-color-accent);font-size:var(--shell-font-size-sm);font-weight:var(--shell-font-weight);line-height:1.2}.cua{position:absolute;top:0;left:50%;transform:translate(-50%,-50%)}.cum{display:flex;flex-shrink:0;align-items:center;justify-content:center;width:calc(var(--shell-icon-size) * 1.6);height:calc(var(--shell-icon-size) * 1.6);color:var(--shell-color-accent);background:var(--shell-background-hover);border-radius:50%;overflow:hidden}.cuh{display:flex;flex-wrap:wrap;align-items:center;gap:var(--shell-gap-sm)}.cut{margin:0;font-size:var(--shell-font-size);font-weight:var(--shell-font-weight);color:var(--shell-color);line-height:1.3}.cup{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--shell-gap-sm)}.cuz{font-size:calc(var(--shell-font-size-lg) * 1.35);font-weight:700;color:var(--shell-color);line-height:1.15}.cui[data-highlighted=true] .cuz,.cui[data-selected=true] .cuz{color:var(--shell-color-accent)}.cuo{font-size:var(--shell-font-size-sm);color:var(--shell-color-muted);text-decoration:line-through}.cue{font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.cud{margin:0;font-size:var(--shell-font-size-sm);color:var(--shell-color-muted);line-height:1.45}.cux{display:flex;flex-direction:column;gap:var(--shell-gap-sm)}.cuf{display:flex;flex-direction:column;gap:var(--shell-gap-sm);margin:auto calc(-1 * var(--shell-padding-inline)) calc(-1 * var(--shell-padding-block));padding:var(--shell-padding);background:var(--shell-background-muted);border-top:1px solid var(--shell-border);border-radius:0 0 var(--shell-radius) var(--shell-radius)}.cuy{display:flex;flex-direction:column;gap:var(--shell-gap-sm);margin-top:auto}.cul{margin:0;font-size:var(--shell-font-size-sm);font-weight:var(--shell-font-weight);letter-spacing:.04em;text-transform:uppercase;color:var(--shell-color-muted)}.cuu{margin:0;font-size:var(--shell-font-size-sm);color:var(--shell-color-muted);line-height:1.4}.cun{display:flex;flex-direction:column;gap:var(--shell-gap-sm);margin:0;padding:0;list-style:none}.cuc{display:flex;align-items:flex-start;gap:var(--shell-gap-sm);font-size:var(--shell-font-size-sm);color:var(--shell-color);line-height:1.4}.cuk{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--shell-check-size);height:var(--shell-check-size);margin-top:.1em;color:var(--avatar-color);background:var(--shell-color-success);border-radius:50%}.cuw{width:60%;height:60%;display:block}}
@@ -61,3 +65,5 @@
61
65
  @layer elcrm-components{.ctr{display:flex;flex-direction:column;gap:var(--shell-gap);width:100%;min-width:0}.ctb{display:flex;align-items:flex-end;gap:var(--shell-gap);border-bottom:1px solid var(--shell-border);min-width:0}.ctn{display:flex;align-items:stretch;gap:var(--shell-gap-lg);flex:1 1 auto;min-width:0;overflow-x:auto;scrollbar-width:thin}.ctt{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:inline-flex;align-items:center;gap:var(--shell-gap-sm);flex:0 0 auto;margin:0 0 -1px;padding:var(--shell-padding-block) .15rem;border:none;border-bottom:2px solid transparent;background:transparent;color:var(--shell-color-muted);font:inherit;font-size:var(--shell-font-size);font-weight:500;white-space:nowrap;cursor:pointer}.ctt:hover:not(:disabled){color:var(--shell-color)}.cta{color:var(--shell-color);border-bottom-color:var(--shell-color-accent)}.ctt:disabled{opacity:var(--shell-disabled-opacity);cursor:not-allowed}.cte{display:inline-flex;align-items:center;justify-content:center;min-width:1.15em;height:1.15em;padding:0 .35em;border-radius:999px;background:var(--shell-color-danger);color:var(--avatar-color);font-size:var(--sidebar-group-font-size);font-style:normal;font-weight:700;line-height:1}.cts{flex:0 0 auto;display:flex;align-items:center;padding-bottom:var(--shell-gap-sm)}.ctm{min-width:0;width:100%}}
62
66
 
63
67
  @layer elcrm-components{.c6r{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}.c6t{margin:0;font-size:var(--shell-font-size);font-weight:var(--shell-font-weight);color:var(--shell-color);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c6d{margin:0;font-size:var(--shell-font-size-sm);font-weight:400;color:var(--shell-color-muted);line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c6s .c6t{font-size:var(--shell-font-size-sm)}.c6l .c6t{font-size:var(--shell-font-size-lg)}.c6l .c6d{font-size:var(--shell-font-size)}}
68
+
69
+ @layer elcrm-components{.cCr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--toolbar-gap);width:100%;min-width:0;box-sizing:border-box}.cCr[data-width=s]{display:inline-flex;width:auto;max-width:100%}.cCr[data-align=center]{justify-content:center}.cCr[data-align=end]{justify-content:flex-end}.cCr[data-align=between]{justify-content:space-between}.cCr[data-size=s]{--control-height: var(--control-height-s);--field-height: var(--control-height-s);--control-font-size: 13px;--button-height: var(--button-height-s);--button-height-m: var(--button-height-s);--button-padding: var(--button-padding-s);--button-size-m: var(--button-size-s)}.cCr[data-size=l]{--control-height: var(--control-height-l);--field-height: var(--control-height-l);--button-height: var(--button-height-l);--button-height-m: var(--button-height-l);--button-size-m: var(--button-size-l)}}
package/dist/index.d.ts CHANGED
@@ -14,6 +14,8 @@ export { Card } from './Card';
14
14
  export type { CardProps } from './Card';
15
15
  export { ActionGroup } from './ActionGroup';
16
16
  export type { ActionGroupProps } from './ActionGroup';
17
+ export { Toolbar, useToolbar, applyToolbarSize } from './Toolbar';
18
+ export type { ToolbarProps, ToolbarAlign, ToolbarWidth, ToolbarContextValue, } from './Toolbar';
17
19
  export { TextGroup } from './TextGroup';
18
20
  export type { TextGroupProps } from './TextGroup';
19
21
  export { Stat } from './Stat';
@@ -30,7 +32,7 @@ export type { StackProps, StackDirection, StackColumns } from './Stack';
30
32
  export { Menu } from './Menu';
31
33
  export type { MenuProps, MenuItem } from './Menu';
32
34
  export { Dropdown } from './Dropdown';
33
- export type { DropdownProps, DropdownItem, DropdownGroup, } from './Dropdown';
35
+ export type { DropdownProps, DropdownItem, DropdownGroup } from './Dropdown';
34
36
  export { Breadcrumb } from './Breadcrumb';
35
37
  export type { BreadcrumbProps, BreadcrumbItem, BreadcrumbSeparator, } from './Breadcrumb';
36
38
  export { Loading } from './Loading';
@@ -75,6 +77,10 @@ export { Sidebar } from './Sidebar';
75
77
  export type { SidebarProps, SidebarGroup, SidebarItem, SidebarVariant, } from './Sidebar';
76
78
  export { Popover } from './Popover';
77
79
  export type { PopoverProps, PopoverPlacement } from './Popover';
80
+ export { Healthmap } from './Healthmap';
81
+ export type { HealthmapProps, HealthmapData, HealthmapDay, HealthmapUnit, } from './Healthmap';
82
+ export { PanelInfo } from './PanelInfo';
83
+ export type { PanelInfoProps } from './PanelInfo';
78
84
  export { acquireOverlayZIndex, releaseOverlayZIndex, peekOverlayZIndex, } from './overlayZ';
79
85
  export { createLazyResolver } from './lazyRoute';
80
86
  export type { LazyRouteChunk } from './lazyRoute';
@@ -14,6 +14,8 @@ export { Card } from './Card';
14
14
  export type { CardProps } from './Card';
15
15
  export { ActionGroup } from './ActionGroup';
16
16
  export type { ActionGroupProps } from './ActionGroup';
17
+ export { Toolbar, useToolbar, applyToolbarSize } from './Toolbar';
18
+ export type { ToolbarProps, ToolbarAlign, ToolbarWidth, ToolbarContextValue, } from './Toolbar';
17
19
  export { TextGroup } from './TextGroup';
18
20
  export type { TextGroupProps } from './TextGroup';
19
21
  export { Stat } from './Stat';
@@ -30,7 +32,7 @@ export type { StackProps, StackDirection, StackColumns } from './Stack';
30
32
  export { Menu } from './Menu';
31
33
  export type { MenuProps, MenuItem } from './Menu';
32
34
  export { Dropdown } from './Dropdown';
33
- export type { DropdownProps, DropdownItem, DropdownGroup, } from './Dropdown';
35
+ export type { DropdownProps, DropdownItem, DropdownGroup } from './Dropdown';
34
36
  export { Breadcrumb } from './Breadcrumb';
35
37
  export type { BreadcrumbProps, BreadcrumbItem, BreadcrumbSeparator, } from './Breadcrumb';
36
38
  export { Loading } from './Loading';
@@ -75,6 +77,10 @@ export { Sidebar } from './Sidebar';
75
77
  export type { SidebarProps, SidebarGroup, SidebarItem, SidebarVariant, } from './Sidebar';
76
78
  export { Popover } from './Popover';
77
79
  export type { PopoverProps, PopoverPlacement } from './Popover';
80
+ export { Healthmap } from './Healthmap';
81
+ export type { HealthmapProps, HealthmapData, HealthmapDay, HealthmapUnit, } from './Healthmap';
82
+ export { PanelInfo } from './PanelInfo';
83
+ export type { PanelInfoProps } from './PanelInfo';
78
84
  export { acquireOverlayZIndex, releaseOverlayZIndex, peekOverlayZIndex, } from './overlayZ';
79
85
  export { createLazyResolver } from './lazyRoute';
80
86
  export type { LazyRouteChunk } from './lazyRoute';