@elcrm/components 0.5.4 → 0.5.5
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 +11 -0
- package/dist/{AvatarGroup-Dq-UrOaC.js → AvatarGroup-DeceOhGV.js} +29 -26
- package/dist/AvatarGroup.js +1 -1
- package/dist/{Breadcrumb-DM_hWw5n.js → Breadcrumb-BexTTfCV.js} +42 -29
- package/dist/Breadcrumb.js +1 -1
- package/dist/CodeBlock-CZFC4r35.js +37 -0
- package/dist/CodeBlock.js +1 -1
- package/dist/Dropdown-C9rbsSgR.js +190 -0
- package/dist/Dropdown.js +1 -1
- package/dist/{Healthmap-Z-LLfGW0.js → Healthmap-B4h6_9Yv.js} +130 -123
- package/dist/Healthmap.js +1 -1
- package/dist/Menu-CR2CclSe.js +76 -0
- package/dist/Menu.js +1 -1
- package/dist/PageHead-BjBvWtlk.js +33 -0
- package/dist/PageHead.d.ts +7 -1
- package/dist/PageHead.js +1 -1
- package/dist/{PanelInfo-Db5GCr-c.js → PanelInfo-BTkDUF-p.js} +61 -58
- package/dist/PanelInfo.js +1 -1
- package/dist/Popover.d.ts +1 -1
- package/dist/{PricingTable-BjpGVAhi.js → PricingTable-Dt2wsnEz.js} +56 -53
- package/dist/PricingTable.js +1 -1
- package/dist/Section-C5XfBTfd.js +48 -0
- package/dist/Section.d.ts +8 -1
- package/dist/Section.js +1 -1
- package/dist/{Sidebar-Bouhd5SS.js → Sidebar-C5vMwV9L.js} +77 -74
- package/dist/Sidebar.js +1 -1
- package/dist/TabSections-CEM_8Fjy.js +87 -0
- package/dist/TabSections.js +1 -1
- package/dist/index.es.js +12 -12
- package/dist/kit-manifest.json +12 -2
- package/package.json +1 -1
- package/dist/CodeBlock-B3wvMejv.js +0 -34
- package/dist/Dropdown-CR_XxNak.js +0 -185
- package/dist/Menu-u0WnWjT-.js +0 -73
- package/dist/PageHead-BfClTLrF.js +0 -31
- package/dist/Section-PprWjOvt.js +0 -47
- package/dist/TabSections-Dppe9wiz.js +0 -84
package/dist/Menu-u0WnWjT-.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import l from "react";
|
|
2
|
-
import { B as E } from "./Badge-BjScAXGy.js";
|
|
3
|
-
import { b as N } from "./badgeText-CRzlIzi3.js";
|
|
4
|
-
import { c as p } from "./cx-CcykAxZN.js";
|
|
5
|
-
import { h } from "./rovingKeys-Di9N1Nct.js";
|
|
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", a = {
|
|
8
|
-
root: B,
|
|
9
|
-
vertical: C,
|
|
10
|
-
item: K,
|
|
11
|
-
dot: M,
|
|
12
|
-
active: z,
|
|
13
|
-
underline: D
|
|
14
|
-
};
|
|
15
|
-
function A({
|
|
16
|
-
items: n,
|
|
17
|
-
vertical: c,
|
|
18
|
-
variant: g = "plain",
|
|
19
|
-
value: r,
|
|
20
|
-
defaultValue: s,
|
|
21
|
-
onValueChange: u,
|
|
22
|
-
children: m,
|
|
23
|
-
className: R,
|
|
24
|
-
...x
|
|
25
|
-
}) {
|
|
26
|
-
const [t, v] = w(
|
|
27
|
-
r,
|
|
28
|
-
s,
|
|
29
|
-
u
|
|
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
|
-
return /* @__PURE__ */ l.createElement(
|
|
32
|
-
"nav",
|
|
33
|
-
{
|
|
34
|
-
ref: d,
|
|
35
|
-
className: p(a.root, c && a.vertical, k && a.underline, R),
|
|
36
|
-
onKeyDown: i ? (e) => h(e, {
|
|
37
|
-
values: y,
|
|
38
|
-
value: t,
|
|
39
|
-
onSelect: v,
|
|
40
|
-
vertical: c,
|
|
41
|
-
focusRoot: d.current
|
|
42
|
-
}) : void 0,
|
|
43
|
-
...x
|
|
44
|
-
},
|
|
45
|
-
n == null ? void 0 : n.map((e) => {
|
|
46
|
-
const o = e.active ?? (t != null && e.value === t), b = N(e.badge);
|
|
47
|
-
return /* @__PURE__ */ l.createElement(
|
|
48
|
-
"button",
|
|
49
|
-
{
|
|
50
|
-
key: e.value,
|
|
51
|
-
type: "button",
|
|
52
|
-
className: p(a.item, o && a.active),
|
|
53
|
-
"data-value": e.value,
|
|
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,
|
|
58
|
-
disabled: e.disabled,
|
|
59
|
-
onClick: () => {
|
|
60
|
-
var f;
|
|
61
|
-
(f = e.onClick) == null || f.call(e), v(e.value);
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
e.label,
|
|
65
|
-
b != null ? /* @__PURE__ */ l.createElement(E, { className: a.dot, tone: "accent", size: "s" }, b) : null
|
|
66
|
-
);
|
|
67
|
-
}),
|
|
68
|
-
m
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
A as M
|
|
73
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
import { c as m } from "./cx-CcykAxZN.js";
|
|
3
|
-
import './PageHead.css';const d = "sdr", i = "sdk", u = "sdw", f = "sdt", p = "sdh", E = "sdn", N = "sdu", h = "sds", v = "sda", w = "sdc", e = {
|
|
4
|
-
root: d,
|
|
5
|
-
kept: i,
|
|
6
|
-
wrap: u,
|
|
7
|
-
textcol: f,
|
|
8
|
-
heading: p,
|
|
9
|
-
name: E,
|
|
10
|
-
usup: N,
|
|
11
|
-
subtitle: h,
|
|
12
|
-
actions: v,
|
|
13
|
-
children: w
|
|
14
|
-
};
|
|
15
|
-
function x(n) {
|
|
16
|
-
return !(n == null || n === !1 || n === "" || typeof n == "number" && n === 0 || n === "0");
|
|
17
|
-
}
|
|
18
|
-
function b({
|
|
19
|
-
title: n,
|
|
20
|
-
sup: s,
|
|
21
|
-
subtitle: a,
|
|
22
|
-
actions: l,
|
|
23
|
-
sticky: r,
|
|
24
|
-
className: o,
|
|
25
|
-
children: c
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ t.createElement("div", { className: m(e.root, r && e.kept, o) }, /* @__PURE__ */ t.createElement("div", { className: e.wrap }, /* @__PURE__ */ t.createElement("div", { className: e.textcol }, /* @__PURE__ */ t.createElement("h1", { className: e.heading }, /* @__PURE__ */ t.createElement("span", { className: e.name }, n), x(s) ? /* @__PURE__ */ t.createElement("span", { className: e.usup }, s) : null), a != null ? /* @__PURE__ */ t.createElement("p", { className: e.subtitle }, a) : null), l != null ? /* @__PURE__ */ t.createElement("div", { className: e.actions }, l) : null), c != null ? /* @__PURE__ */ t.createElement("div", { className: e.children }, c) : null);
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
b as P
|
|
31
|
-
};
|
package/dist/Section-PprWjOvt.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import t from "react";
|
|
2
|
-
import { c as l } from "./cx-CcykAxZN.js";
|
|
3
|
-
import { S as v } from "./Stack-BPTehVYc.js";
|
|
4
|
-
import './Section.css';const w = "sep", y = "seu", A = "sek", T = "seh", z = "sec", B = "sei", F = "set", H = "sed", R = "see", j = "seb", q = "ses", C = "sel", e = {
|
|
5
|
-
page: w,
|
|
6
|
-
uwrap: y,
|
|
7
|
-
kcard: A,
|
|
8
|
-
header: T,
|
|
9
|
-
center: z,
|
|
10
|
-
icon: B,
|
|
11
|
-
title: F,
|
|
12
|
-
demi: H,
|
|
13
|
-
excerpt: R,
|
|
14
|
-
body: j,
|
|
15
|
-
slot: q,
|
|
16
|
-
line: C
|
|
17
|
-
};
|
|
18
|
-
function J({
|
|
19
|
-
title: n,
|
|
20
|
-
description: s,
|
|
21
|
-
icon: c,
|
|
22
|
-
children: r,
|
|
23
|
-
actions: o,
|
|
24
|
-
variant: m = "page",
|
|
25
|
-
align: g,
|
|
26
|
-
titleSize: E = "lg",
|
|
27
|
-
direction: h = "column",
|
|
28
|
-
gap: N,
|
|
29
|
-
columns: k,
|
|
30
|
-
className: u,
|
|
31
|
-
as: b
|
|
32
|
-
}) {
|
|
33
|
-
const d = m === "auth", a = m === "block", f = g ?? (d ? "center" : "start"), i = b ?? "section", x = a ? "h2" : "h1", S = E ?? (a ? "md" : "lg"), p = /* @__PURE__ */ t.createElement(t.Fragment, null, (c != null || n != null || s != null) && /* @__PURE__ */ t.createElement("header", { className: l(e.header, f === "center" && e.center) }, c != null ? /* @__PURE__ */ t.createElement("div", { className: e.icon }, c) : null, n != null ? /* @__PURE__ */ t.createElement(x, { className: l(e.title, S === "md" && e.demi) }, n) : null, s != null ? /* @__PURE__ */ t.createElement("p", { className: e.excerpt }, s) : null), r != null ? /* @__PURE__ */ t.createElement(
|
|
34
|
-
v,
|
|
35
|
-
{
|
|
36
|
-
className: e.body,
|
|
37
|
-
direction: h,
|
|
38
|
-
gap: N,
|
|
39
|
-
columns: k
|
|
40
|
-
},
|
|
41
|
-
r
|
|
42
|
-
) : null, o != null ? /* @__PURE__ */ t.createElement("div", { className: e.slot }, o) : null);
|
|
43
|
-
return d ? /* @__PURE__ */ t.createElement("div", { className: l(e.uwrap, u) }, /* @__PURE__ */ t.createElement(i, { className: e.kcard }, p)) : /* @__PURE__ */ t.createElement(i, { className: l(a ? e.line : e.page, u) }, p);
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
J as S
|
|
47
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import a, { useMemo as k, useId as x, useRef as C, Suspense as K } from "react";
|
|
2
|
-
import { c as p } from "./cx-CcykAxZN.js";
|
|
3
|
-
import { h as S } from "./rovingKeys-Di9N1Nct.js";
|
|
4
|
-
import { u as T } from "./useControllableValue-BaE0VR5d.js";
|
|
5
|
-
import './TabSections.css';const w = "ntr", D = "ntb", M = "ntn", P = "ntt", h = "nta", j = "nte", q = "nts", z = "ntm", l = {
|
|
6
|
-
root: w,
|
|
7
|
-
bar: D,
|
|
8
|
-
nav: M,
|
|
9
|
-
tab: P,
|
|
10
|
-
active: h,
|
|
11
|
-
ember: j,
|
|
12
|
-
slot: q,
|
|
13
|
-
main: z
|
|
14
|
-
};
|
|
15
|
-
function H({
|
|
16
|
-
items: s = [],
|
|
17
|
-
resolveSection: b,
|
|
18
|
-
children: o,
|
|
19
|
-
value: f,
|
|
20
|
-
defaultValue: c,
|
|
21
|
-
onValueChange: E,
|
|
22
|
-
loading: N = null,
|
|
23
|
-
actions: u,
|
|
24
|
-
className: y,
|
|
25
|
-
navLabel: I = "Вкладки"
|
|
26
|
-
}) {
|
|
27
|
-
const R = k(() => {
|
|
28
|
-
var e;
|
|
29
|
-
return c || (((e = s.find((n) => !n.disabled)) == null ? void 0 : e.value) ?? "");
|
|
30
|
-
}, [c, s]), [t, d] = T(
|
|
31
|
-
f,
|
|
32
|
-
R,
|
|
33
|
-
E
|
|
34
|
-
), $ = s.filter((e) => !e.disabled).map((e) => e.value), r = x(), v = C(null), m = `${r}-panel`, i = o == null && t && b ? b(t) : null;
|
|
35
|
-
return /* @__PURE__ */ a.createElement("div", { className: p(l.root, y) }, /* @__PURE__ */ a.createElement("div", { className: l.bar }, /* @__PURE__ */ a.createElement(
|
|
36
|
-
"nav",
|
|
37
|
-
{
|
|
38
|
-
ref: v,
|
|
39
|
-
className: l.nav,
|
|
40
|
-
"aria-label": I,
|
|
41
|
-
role: "tablist",
|
|
42
|
-
onKeyDown: (e) => S(e, {
|
|
43
|
-
values: $,
|
|
44
|
-
value: t,
|
|
45
|
-
onSelect: d,
|
|
46
|
-
focusRoot: v.current
|
|
47
|
-
})
|
|
48
|
-
},
|
|
49
|
-
s.map((e) => {
|
|
50
|
-
const n = e.value === t, g = `${r}-tab-${e.value}`;
|
|
51
|
-
return /* @__PURE__ */ a.createElement(
|
|
52
|
-
"button",
|
|
53
|
-
{
|
|
54
|
-
key: e.value,
|
|
55
|
-
id: g,
|
|
56
|
-
type: "button",
|
|
57
|
-
role: "tab",
|
|
58
|
-
className: p(l.tab, n && l.active),
|
|
59
|
-
"data-value": e.value,
|
|
60
|
-
"data-active": n ? "true" : void 0,
|
|
61
|
-
"aria-selected": n,
|
|
62
|
-
"aria-controls": m,
|
|
63
|
-
tabIndex: n ? 0 : -1,
|
|
64
|
-
disabled: e.disabled,
|
|
65
|
-
onClick: () => d(e.value)
|
|
66
|
-
},
|
|
67
|
-
/* @__PURE__ */ a.createElement("span", null, e.label),
|
|
68
|
-
e.badge != null && e.badge !== "" ? /* @__PURE__ */ a.createElement("em", { className: l.ember }, e.badge) : null
|
|
69
|
-
);
|
|
70
|
-
})
|
|
71
|
-
), u != null ? /* @__PURE__ */ a.createElement("div", { className: l.slot }, u) : null), /* @__PURE__ */ a.createElement(
|
|
72
|
-
"div",
|
|
73
|
-
{
|
|
74
|
-
id: m,
|
|
75
|
-
className: l.main,
|
|
76
|
-
role: "tabpanel",
|
|
77
|
-
"aria-labelledby": t ? `${r}-tab-${t}` : void 0
|
|
78
|
-
},
|
|
79
|
-
o ?? (i ? /* @__PURE__ */ a.createElement(K, { fallback: N }, a.createElement(i)) : null)
|
|
80
|
-
));
|
|
81
|
-
}
|
|
82
|
-
export {
|
|
83
|
-
H as T
|
|
84
|
-
};
|