@elcrm/components 0.5.2 → 0.5.4

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 CHANGED
@@ -795,7 +795,7 @@ const resolve = createLazyResolver(
795
795
  **Узкие (только если нужно иначе)**
796
796
 
797
797
  ```
798
- --layout-height / --layout-padding / --layout-margin / --layout-max-width
798
+ --layout-height / --layout-padding / --layout-main-padding / --layout-margin / --layout-max-width
799
799
  --header-height / --header-z / --header-margin / --header-shadow / --header-radius / --header-border / --header-nav-justify
800
800
  --section-padding / --section-title-size / --section-title-size-md / --section-auth-card-max-width
801
801
  --nav-sections-padding / --nav-sections-nav-width / --nav-sections-main-max-width
@@ -0,0 +1,22 @@
1
+ import e from "react";
2
+ import { c as m } from "./cx-CcykAxZN.js";
3
+ import './Header.css';const u = "shr", i = "shn", h = "shs", v = "sha", s = {
4
+ root: u,
5
+ nav: i,
6
+ search: h,
7
+ actions: v
8
+ };
9
+ function N({
10
+ brand: l,
11
+ nav: n,
12
+ search: t,
13
+ actions: a,
14
+ children: c,
15
+ className: o,
16
+ ...r
17
+ }) {
18
+ return /* @__PURE__ */ e.createElement("header", { className: m(s.root, o), ...r }, l ?? null, n != null ? /* @__PURE__ */ e.createElement("div", { className: s.nav }, n) : null, t != null ? /* @__PURE__ */ e.createElement("div", { className: s.search }, t) : null, a != null ? /* @__PURE__ */ e.createElement("div", { className: s.actions }, a) : null, c);
19
+ }
20
+ export {
21
+ N as H
22
+ };
package/dist/Header.css CHANGED
@@ -1 +1 @@
1
- @layer elcrm-components{.shr{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)}.shn{display:flex;flex:1;align-items:center;min-width:0;justify-content:var(--header-nav-justify)}.sha{display:flex;align-items:center;gap:var(--shell-gap-sm);flex-shrink:0;margin:auto}}
1
+ @layer elcrm-components{.shr{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)}.shn{display:flex;flex:1;align-items:center;min-width:0;justify-content:var(--header-nav-justify)}.shs{flex:0 1 var(--field-search-min-width, 12rem);min-width:min(12rem,40vw);max-width:22rem;display:flex;align-items:center}.shs>*{width:100%;min-width:0}.sha{display:flex;align-items:center;gap:var(--shell-gap-sm);flex-shrink:0;margin-left:auto}}
package/dist/Header.js CHANGED
@@ -1,4 +1,4 @@
1
- import { H as a } from "./Header-BMDIi3u2.js";
1
+ import { H as a } from "./Header-B9jMY03c.js";
2
2
  export {
3
3
  a as Header
4
4
  };
package/dist/Layout.css CHANGED
@@ -1 +1 @@
1
- @layer elcrm-components{.slr{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}.slx{height:var(--layout-height);max-height:var(--layout-height);overflow:hidden}.slm{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.slr:not(.slx){height:auto;max-height:none;overflow:visible}.slr:not(.slx) .slm{overflow:visible;flex:0 1 auto;min-height:auto}.sls{flex-direction:row;align-items:stretch;gap:var(--layout-gap)}.slb{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;background:var(--layout-main-background);border-radius:var(--layout-main-radius);box-shadow:var(--layout-main-shadow);border:var(--layout-main-border)}.slr:not(.slx) .slb{overflow:visible}.sla{display:flex;flex-direction:column;flex:0 0 var(--sidebar-width);width:var(--sidebar-width);min-width:0;min-height:0;align-self:stretch}.slk{overflow:hidden}.sla:not(.slk){overflow:auto}.sla>*{flex:1 1 auto;min-height:0;width:100%;height:100%;max-height:100%}@media (max-width: 900px){.sla{flex-basis:72px;width:72px}}.slh,.slf{flex:0 0 auto;min-width:0}}
1
+ @layer elcrm-components{.slr{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}.slx{height:var(--layout-height);max-height:var(--layout-height);overflow:hidden}.slm{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:var(--layout-main-padding)}.slr:not(.slx){height:auto;max-height:none;overflow:visible}.slr:not(.slx) .slm{overflow:visible;flex:0 1 auto;min-height:auto}.sls{flex-direction:row;align-items:stretch;gap:var(--layout-gap)}.slb{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;background:var(--layout-main-background);border-radius:var(--layout-main-radius);box-shadow:var(--layout-main-shadow);border:var(--layout-main-border)}.slr:not(.slx) .slb{overflow:visible}.sla{display:flex;flex-direction:column;flex:0 0 var(--sidebar-width);width:var(--sidebar-width);min-width:0;min-height:0;align-self:stretch}.slk{overflow:hidden}.sla:not(.slk){overflow:auto}.sla>*{flex:1 1 auto;min-height:0;width:100%;height:100%;max-height:100%}@media (max-width: 900px){.sla{flex-basis:72px;width:72px}}.slh,.slf{flex:0 0 auto;min-width:0}}
package/dist/Layout.d.ts CHANGED
@@ -26,7 +26,9 @@ export type LayoutFixedSlot = "header" | "footer" | "sidebar";
26
26
  * </Layout>
27
27
  * ```
28
28
  *
29
- * Токены: `--layout-height`, `--layout-padding`, `--layout-margin`, `--layout-max-width`, `--shell-*`.
29
+ * Токены: `--layout-height`, `--layout-padding`, `--layout-main-padding`,
30
+ * `--layout-margin`, `--layout-max-width`, `--shell-*`.
31
+ * `--layout-main-padding` — отступ внутри `<main>` (между шапкой и контентом).
30
32
  */
31
33
  export type LayoutProps = React.HTMLAttributes<HTMLDivElement> & {
32
34
  /** Левая колонка (обычно `<Sidebar />`) — ряд: сайдбар + контент */
@@ -4,7 +4,7 @@ import { b as N } from "./badgeText-CRzlIzi3.js";
4
4
  import { c as p } from "./cx-CcykAxZN.js";
5
5
  import { h } from "./rovingKeys-Di9N1Nct.js";
6
6
  import { u as w } from "./useControllableValue-BaE0VR5d.js";
7
- import './Menu.css';const B = "lnr", C = "lnv", K = "lni", M = "lnd", z = "lna", D = "lnu", n = {
7
+ import './Menu.css';const B = "lnr", C = "lnv", K = "lni", M = "lnd", z = "lna", D = "lnu", a = {
8
8
  root: B,
9
9
  vertical: C,
10
10
  item: K,
@@ -12,14 +12,14 @@ import './Menu.css';const B = "lnr", C = "lnv", K = "lni", M = "lnd", z = "lna",
12
12
  active: z,
13
13
  underline: D
14
14
  };
15
- function F({
16
- items: o,
15
+ function A({
16
+ items: n,
17
17
  vertical: c,
18
- variant: m = "plain",
18
+ variant: g = "plain",
19
19
  value: r,
20
20
  defaultValue: s,
21
21
  onValueChange: u,
22
- children: g,
22
+ children: m,
23
23
  className: R,
24
24
  ...x
25
25
  }) {
@@ -27,12 +27,12 @@ function F({
27
27
  r,
28
28
  s,
29
29
  u
30
- ), y = (o ?? []).filter((e) => !e.disabled).map((e) => e.value), k = m === "line", d = l.useRef(null), i = u || r !== void 0 || s !== void 0;
30
+ ), y = (n ?? []).filter((e) => !e.disabled).map((e) => e.value), k = g === "line", d = l.useRef(null), i = u || r !== void 0 || s !== void 0;
31
31
  return /* @__PURE__ */ l.createElement(
32
32
  "nav",
33
33
  {
34
34
  ref: d,
35
- className: p(n.root, c && n.vertical, k && n.underline, R),
35
+ className: p(a.root, c && a.vertical, k && a.underline, R),
36
36
  onKeyDown: i ? (e) => h(e, {
37
37
  values: y,
38
38
  value: t,
@@ -42,18 +42,19 @@ function F({
42
42
  }) : void 0,
43
43
  ...x
44
44
  },
45
- o == null ? void 0 : o.map((e) => {
46
- const a = e.active ?? (t != null && e.value === t), b = N(e.badge);
45
+ n == null ? void 0 : n.map((e) => {
46
+ const o = e.active ?? (t != null && e.value === t), b = N(e.badge);
47
47
  return /* @__PURE__ */ l.createElement(
48
48
  "button",
49
49
  {
50
50
  key: e.value,
51
51
  type: "button",
52
- className: p(n.item, a && n.active),
52
+ className: p(a.item, o && a.active),
53
53
  "data-value": e.value,
54
- "data-active": a ? "true" : void 0,
55
- "aria-current": a ? "page" : void 0,
56
- tabIndex: i ? a ? 0 : -1 : void 0,
54
+ "data-active": o ? "true" : void 0,
55
+ "aria-current": o ? "page" : void 0,
56
+ "aria-label": e.ariaLabel,
57
+ tabIndex: i ? o ? 0 : -1 : void 0,
57
58
  disabled: e.disabled,
58
59
  onClick: () => {
59
60
  var f;
@@ -61,12 +62,12 @@ function F({
61
62
  }
62
63
  },
63
64
  e.label,
64
- b != null ? /* @__PURE__ */ l.createElement(E, { className: n.dot, tone: "accent", size: "s" }, b) : null
65
+ b != null ? /* @__PURE__ */ l.createElement(E, { className: a.dot, tone: "accent", size: "s" }, b) : null
65
66
  );
66
67
  }),
67
- g
68
+ m
68
69
  );
69
70
  }
70
71
  export {
71
- F as M
72
+ A as M
72
73
  };
package/dist/Menu.d.ts CHANGED
@@ -24,6 +24,11 @@ export type MenuItem = {
24
24
  * `0`, `null`, `""` — не рендерим.
25
25
  */
26
26
  badge?: number | string | null;
27
+ /**
28
+ * Подпись для скринридера, если `label` — иконка без текста.
29
+ * Попадает в `aria-label` кнопки пункта.
30
+ */
31
+ ariaLabel?: string;
27
32
  };
28
33
  /**
29
34
  * Props компонента {@link Menu}.
package/dist/Menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as r } from "./Menu-D2kf7fN_.js";
1
+ import { M as r } from "./Menu-u0WnWjT-.js";
2
2
  export {
3
3
  r as Menu
4
4
  };
package/dist/Toolbar.css CHANGED
@@ -1 +1 @@
1
- @layer elcrm-components{.kwr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--toolbar-gap);width:100%;min-width:0;box-sizing:border-box;--field-width: auto}.kwr>[data-field]{flex:0 1 auto;width:auto;min-width:0;max-width:100%}.kwr>[data-field=search]{flex:1 1 var(--field-search-min-width, 10rem);width:auto;max-width:none}.kwr[data-width=s]{display:inline-flex;width:auto;max-width:100%}.kwr[data-align=center]{justify-content:center}.kwr[data-align=end]{justify-content:flex-end}.kwr[data-align=between]{justify-content:space-between}.kwr[data-size=s]{--control-height: var(--control-height-s);--field-height: var(--control-height-s);--select-height: var(--control-height-s);--control-font-size: var(--control-font-size-s, .8125rem);--button-height: var(--button-height-s)}.kwr[data-size=l]{--control-height: var(--control-height-l);--field-height: var(--control-height-l);--select-height: var(--control-height-l);--button-height: var(--button-height-l)}}
1
+ @layer elcrm-components{.kwr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--toolbar-gap);width:100%;min-width:0;box-sizing:border-box;--field-width: auto}.kwr>[data-field]{flex:0 1 auto;width:auto;min-width:0;max-width:100%;align-self:center}.kwr>[data-field=search]{flex:1 1 var(--field-search-min-width, 10rem);width:auto!important;min-width:var(--field-search-min-width, 10rem);max-width:none}.kwr[data-width=s]{display:inline-flex;width:auto;max-width:100%}.kwr[data-align=center]{justify-content:center}.kwr[data-align=end]{justify-content:flex-end}.kwr[data-align=between]{justify-content:space-between}.kwr[data-size=s]{--control-height: var(--control-height-s);--field-height: var(--control-height-s);--select-height: var(--control-height-s);--control-font-size: var(--control-font-size-s, .8125rem);--button-height: var(--button-height-s)}.kwr[data-size=l]{--control-height: var(--control-height-l);--field-height: var(--control-height-l);--select-height: var(--control-height-l);--button-height: var(--button-height-l)}}
package/dist/index.css CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  @layer elcrm-components{.sfr{flex-shrink:0;padding:var(--shell-padding);color:var(--shell-color-muted);background:transparent;border-top:1px solid var(--shell-border);font-size:var(--shell-font-size-sm)}}
28
28
 
29
- @layer elcrm-components{.shr{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)}.shn{display:flex;flex:1;align-items:center;min-width:0;justify-content:var(--header-nav-justify)}.sha{display:flex;align-items:center;gap:var(--shell-gap-sm);flex-shrink:0;margin:auto}}
29
+ @layer elcrm-components{.shr{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)}.shn{display:flex;flex:1;align-items:center;min-width:0;justify-content:var(--header-nav-justify)}.shs{flex:0 1 var(--field-search-min-width, 12rem);min-width:min(12rem,40vw);max-width:22rem;display:flex;align-items:center}.shs>*{width:100%;min-width:0}.sha{display:flex;align-items:center;gap:var(--shell-gap-sm);flex-shrink:0;margin-left:auto}}
30
30
 
31
31
  @layer elcrm-components{.hhr{display:flex;gap:var(--shell-gap);align-items:stretch;width:100%}.hhc,.hha{border:1px solid var(--shell-border);border-radius:var(--shell-radius);background:var(--shell-background);box-sizing:border-box}.hhc{flex:1;min-width:0;display:flex;flex-direction:column;padding:var(--shell-gap-lg) var(--shell-padding-inline);overflow-x:auto}.hhh{margin-bottom:var(--shell-gap-sm)}.hht{margin:0;font-size:var(--shell-font-size);font-weight:var(--shell-font-weight);color:var(--shell-color)}.hhm{position:relative;margin:0 0 var(--shell-gap-sm, .25rem) 26px;height:16px;font-size:var(--shell-font-size-sm, .6875rem);color:var(--shell-color-muted)}.hho{position:absolute;top:0;white-space:nowrap}.hhn{display:flex;gap:var(--shell-gap-sm, .25rem);align-items:flex-start;flex:1}.hhd{display:grid;grid-template-rows:repeat(7,var(--healthmap-cell));gap:var(--healthmap-gap);width:22px;font-size:var(--shell-font-size-sm, .6875rem);line-height:var(--healthmap-cell);color:var(--shell-color-muted);flex-shrink:0;align-content:center}.hhw{display:grid;gap:var(--healthmap-gap);align-content:center}.hhk{display:grid;grid-template-rows:repeat(7,var(--healthmap-cell));gap:var(--healthmap-gap)}.hhe{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}.hhe:focus-visible{outline:2px solid var(--shell-color-accent);outline-offset:1px}.hhe[data-level="1"]{background:var(--healthmap-l1)}.hhe[data-level="2"]{background:var(--healthmap-l2)}.hhe[data-level="3"]{background:var(--healthmap-l3)}.hhe[data-level="4"]{background:var(--healthmap-l4)}.hhf{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--shell-gap-sm);margin-top:auto;padding-top:var(--shell-gap-sm);margin-left:26px;font-size:var(--shell-font-size-sm, .6875rem);color:var(--shell-color-muted)}.hhi{min-width:0}.hhg{display:flex;align-items:center;gap:var(--shell-gap-sm, .25rem);justify-self:end}.hha{flex:0 0 180px;display:flex;flex-direction:column;gap:var(--shell-gap-lg);padding:var(--shell-gap-lg) 18px}.hhb{display:flex;flex-direction:column;gap:2px;line-height:1.2}.hhb>span:first-child{font-size:var(--shell-font-size-lg);font-weight:700;letter-spacing:-.02em;color:var(--shell-color)}.hhb>span:last-child{font-size:var(--shell-font-size-sm, .6875rem);color:var(--shell-color-muted);text-transform:uppercase;letter-spacing:.04em}.hhp{display:flex;flex-direction:column;gap:var(--shell-gap-sm);flex:1;justify-content:center}.hhq{display:flex;flex-direction:column;gap:2px}.hhv{font-size:20px;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.03em;color:var(--shell-color);line-height:1.1}.hhl{font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.hhz{display:flex;align-items:center;justify-content:center;gap:var(--shell-gap-sm, .25rem);justify-self:center}.hhj{display:flex;align-items:center;gap:var(--shell-gap-sm, .25rem)}.hhu{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}.hhu:hover:not(:disabled){color:var(--shell-color);background:var(--shell-background-muted)}.hhu:disabled{opacity:var(--shell-disabled-opacity);cursor:default}.hhx{border:0;background:transparent;color:var(--shell-color-muted);font-size:var(--shell-font-size-sm);padding:5px 11px;border-radius:999px;cursor:pointer}.hhx:hover{color:var(--shell-color)}.hhs{background:var(--shell-color-accent);color:var(--shell-background)}.hhy{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)}.hhy>:first-child{font-size:var(--shell-font-size-sm);color:var(--shell-color-muted)}.hhy>:last-child{font-size:var(--shell-font-size);font-weight:600}@media (max-width: 720px){.hhr{flex-direction:column}.hha{flex:none;width:100%}.hhf{grid-template-columns:1fr;margin-left:0;justify-items:start}.hhg,.hhz{justify-self:start}}}
32
32
 
@@ -34,7 +34,7 @@
34
34
 
35
35
  @layer elcrm-components{.lcr{display:flex;align-items:flex-start;gap:var(--item-column-gap);min-width:0;width:100%;text-align:left}.lci{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)}.lcb{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--shell-gap-sm)}.lch{display:flex;align-items:center;gap:var(--shell-gap-sm);min-width:0}.lct{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}.lcx{flex-shrink:0;display:inline-flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--shell-gap-sm)}.lcd{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}.lcf{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--shell-gap-sm);font-size:var(--item-column-meta-size);color:var(--shell-color-muted);line-height:1.35}.lcp{opacity:.5;-webkit-user-select:none;user-select:none}.lca{flex-shrink:0;display:inline-flex;align-items:flex-start}.lcs .lct{font-size:var(--shell-font-size-sm)}.lcs .lcd{font-size:var(--item-column-meta-size)}.lcl .lct{font-size:var(--shell-font-size-lg)}.lcl .lcd{font-size:var(--shell-font-size)}.lck .lct{font-weight:700}}
36
36
 
37
- @layer elcrm-components{.slr{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}.slx{height:var(--layout-height);max-height:var(--layout-height);overflow:hidden}.slm{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.slr:not(.slx){height:auto;max-height:none;overflow:visible}.slr:not(.slx) .slm{overflow:visible;flex:0 1 auto;min-height:auto}.sls{flex-direction:row;align-items:stretch;gap:var(--layout-gap)}.slb{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;background:var(--layout-main-background);border-radius:var(--layout-main-radius);box-shadow:var(--layout-main-shadow);border:var(--layout-main-border)}.slr:not(.slx) .slb{overflow:visible}.sla{display:flex;flex-direction:column;flex:0 0 var(--sidebar-width);width:var(--sidebar-width);min-width:0;min-height:0;align-self:stretch}.slk{overflow:hidden}.sla:not(.slk){overflow:auto}.sla>*{flex:1 1 auto;min-height:0;width:100%;height:100%;max-height:100%}@media (max-width: 900px){.sla{flex-basis:72px;width:72px}}.slh,.slf{flex:0 0 auto;min-width:0}}
37
+ @layer elcrm-components{.slr{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}.slx{height:var(--layout-height);max-height:var(--layout-height);overflow:hidden}.slm{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:var(--layout-main-padding)}.slr:not(.slx){height:auto;max-height:none;overflow:visible}.slr:not(.slx) .slm{overflow:visible;flex:0 1 auto;min-height:auto}.sls{flex-direction:row;align-items:stretch;gap:var(--layout-gap)}.slb{display:flex;flex-direction:column;flex:1 1 auto;min-width:0;min-height:0;overflow:hidden;background:var(--layout-main-background);border-radius:var(--layout-main-radius);box-shadow:var(--layout-main-shadow);border:var(--layout-main-border)}.slr:not(.slx) .slb{overflow:visible}.sla{display:flex;flex-direction:column;flex:0 0 var(--sidebar-width);width:var(--sidebar-width);min-width:0;min-height:0;align-self:stretch}.slk{overflow:hidden}.sla:not(.slk){overflow:auto}.sla>*{flex:1 1 auto;min-height:0;width:100%;height:100%;max-height:100%}@media (max-width: 900px){.sla{flex-basis:72px;width:72px}}.slh,.slf{flex:0 0 auto;min-width:0}}
38
38
 
39
39
  @layer elcrm-components{.llr{display:flex;flex-direction:column;gap:var(--shell-gap-sm);padding:0;margin:0;list-style:none}.llh{flex-direction:row;flex-wrap:wrap}}
40
40
 
@@ -76,4 +76,4 @@
76
76
 
77
77
  @layer elcrm-components{.tgr{display:flex;flex-direction:column;gap:2px;min-width:0;text-align:left}.tgt{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}.tgd{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}.tgs .tgt{font-size:var(--shell-font-size-sm)}.tgl .tgt{font-size:var(--shell-font-size-lg)}.tgl .tgd{font-size:var(--shell-font-size)}}
78
78
 
79
- @layer elcrm-components{.kwr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--toolbar-gap);width:100%;min-width:0;box-sizing:border-box;--field-width: auto}.kwr>[data-field]{flex:0 1 auto;width:auto;min-width:0;max-width:100%}.kwr>[data-field=search]{flex:1 1 var(--field-search-min-width, 10rem);width:auto;max-width:none}.kwr[data-width=s]{display:inline-flex;width:auto;max-width:100%}.kwr[data-align=center]{justify-content:center}.kwr[data-align=end]{justify-content:flex-end}.kwr[data-align=between]{justify-content:space-between}.kwr[data-size=s]{--control-height: var(--control-height-s);--field-height: var(--control-height-s);--select-height: var(--control-height-s);--control-font-size: var(--control-font-size-s, .8125rem);--button-height: var(--button-height-s)}.kwr[data-size=l]{--control-height: var(--control-height-l);--field-height: var(--control-height-l);--select-height: var(--control-height-l);--button-height: var(--button-height-l)}}
79
+ @layer elcrm-components{.kwr{display:flex;flex-wrap:wrap;align-items:center;gap:var(--toolbar-gap);width:100%;min-width:0;box-sizing:border-box;--field-width: auto}.kwr>[data-field]{flex:0 1 auto;width:auto;min-width:0;max-width:100%;align-self:center}.kwr>[data-field=search]{flex:1 1 var(--field-search-min-width, 10rem);width:auto!important;min-width:var(--field-search-min-width, 10rem);max-width:none}.kwr[data-width=s]{display:inline-flex;width:auto;max-width:100%}.kwr[data-align=center]{justify-content:center}.kwr[data-align=end]{justify-content:flex-end}.kwr[data-align=between]{justify-content:space-between}.kwr[data-size=s]{--control-height: var(--control-height-s);--field-height: var(--control-height-s);--select-height: var(--control-height-s);--control-font-size: var(--control-font-size-s, .8125rem);--button-height: var(--button-height-s)}.kwr[data-size=l]{--control-height: var(--control-height-l);--field-height: var(--control-height-l);--select-height: var(--control-height-l);--button-height: var(--button-height-l)}}
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { L as l } from "./Layout-CzEGKl9s.js";
2
- import { H as i } from "./Header-BMDIi3u2.js";
2
+ import { H as i } from "./Header-B9jMY03c.js";
3
3
  import { F as u } from "./Footer-Bgh_JCUe.js";
4
4
  import { L as S } from "./List-D13pqaUY.js";
5
5
  import { I as T } from "./Item-CGpkMJu0.js";
@@ -11,7 +11,7 @@ import { T as G } from "./TextGroup-236jHxdT.js";
11
11
  import { T as R } from "./Text-Bo1u7gVC.js";
12
12
  import { S as O } from "./Stat-p8j4PjrC.js";
13
13
  import { S as M, s as Z } from "./Stack-BPTehVYc.js";
14
- import { M as w } from "./Menu-D2kf7fN_.js";
14
+ import { M as w } from "./Menu-u0WnWjT-.js";
15
15
  import { D } from "./Dropdown-CR_XxNak.js";
16
16
  import { B as j } from "./Breadcrumb-DM_hWw5n.js";
17
17
  import { L as J } from "./Loading-C_CKD-zt.js";
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "format": "elcrm-kit-manifest-v1",
3
3
  "package": "@elcrm/components",
4
- "version": "0.5.2",
4
+ "version": "0.5.4",
5
5
  "pkg": "components",
6
- "generatedAt": "2026-08-30T02:34:28.296Z",
6
+ "generatedAt": "2026-09-11T00:17:51.201Z",
7
7
  "components": [
8
8
  {
9
9
  "slug": "ActionGroup",
package/dist/tokens.css CHANGED
@@ -34,6 +34,8 @@
34
34
  --layout-main-background: transparent;
35
35
  --layout-main-shadow: none;
36
36
  --layout-main-border: none;
37
+ /* padding у <main> (.slm): сверху/снизу между шапкой, контентом и футером */
38
+ --layout-main-padding: 0;
37
39
  /* none — без ограничения; иначе например 1440px */
38
40
  --layout-max-width: none;
39
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elcrm/components",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Shell UI elCRM: Layout, Header, Sidebar, Popover, Healthmap, PanelInfo, PageHead, PageShell, Section, Stack, Stat и др.",
5
5
  "type": "module",
6
6
  "author": "MaSkal <dev@elcrm.online>",
@@ -1,21 +0,0 @@
1
- import l from "react";
2
- import { c as m } from "./cx-CcykAxZN.js";
3
- import './Header.css';const u = "shr", i = "shn", v = "sha", n = {
4
- root: u,
5
- nav: i,
6
- actions: v
7
- };
8
- function h({
9
- brand: e,
10
- nav: t,
11
- search: o,
12
- actions: a,
13
- children: s,
14
- className: c,
15
- ...r
16
- }) {
17
- return /* @__PURE__ */ l.createElement("header", { className: m(n.root, c), ...r }, e ?? null, t != null ? /* @__PURE__ */ l.createElement("div", { className: n.nav }, t) : null, o ?? null, a != null ? /* @__PURE__ */ l.createElement("div", { className: n.actions }, a) : null, s);
18
- }
19
- export {
20
- h as H
21
- };