@elcrm/components 0.2.11 → 0.2.14
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 +20 -2
- package/dist/Banner-B72lcEMo.js +34 -0
- package/dist/Banner.css +1 -0
- package/dist/Banner.d.ts +19 -0
- package/dist/Banner.js +4 -0
- package/dist/CodeBlock-CRzVopIv.js +25 -0
- package/dist/CodeBlock.css +1 -0
- package/dist/CodeBlock.d.ts +26 -0
- package/dist/CodeBlock.js +4 -0
- package/dist/EmptyState.css +1 -1
- package/dist/EmptyState.d.ts +1 -1
- package/dist/IconButton-DPjpBKJn.js +32 -0
- package/dist/IconButton.d.ts +27 -0
- package/dist/IconButton.js +4 -0
- package/dist/Loading.css +1 -1
- package/dist/Loading.d.ts +1 -1
- package/dist/SplitPane-DR7PCZ8f.js +74 -0
- package/dist/SplitPane.css +1 -0
- package/dist/SplitPane.d.ts +29 -0
- package/dist/SplitPane.js +5 -0
- package/dist/Table-BoDr3X2d.js +25 -0
- package/dist/Table.css +1 -0
- package/dist/Table.d.ts +29 -0
- package/dist/Table.js +4 -0
- package/dist/Text-zHK2wmsw.js +25 -0
- package/dist/Text.css +1 -0
- package/dist/Text.d.ts +19 -0
- package/dist/Text.js +4 -0
- package/dist/index.css +12 -2
- package/dist/index.d.ts +12 -0
- package/dist/index.es.d.ts +12 -0
- package/dist/index.es.js +97 -84
- package/dist/tokens.css +35 -2
- package/package.json +4 -1
- package/dist/kit-manifest.json +0 -1523
package/dist/index.es.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export { Toolbar, useToolbar, applyToolbarSize } from './Toolbar';
|
|
|
18
18
|
export type { ToolbarProps, ToolbarAlign, ToolbarWidth, ToolbarContextValue, } from './Toolbar';
|
|
19
19
|
export { TextGroup } from './TextGroup';
|
|
20
20
|
export type { TextGroupProps } from './TextGroup';
|
|
21
|
+
export { Text } from './Text';
|
|
22
|
+
export type { TextProps, TextTone } from './Text';
|
|
21
23
|
export { Stat } from './Stat';
|
|
22
24
|
export type { StatProps, StatTone } from './Stat';
|
|
23
25
|
export { Block } from './Block';
|
|
@@ -81,6 +83,16 @@ export { Healthmap } from './Healthmap';
|
|
|
81
83
|
export type { HealthmapProps, HealthmapData, HealthmapDay, HealthmapUnit, } from './Healthmap';
|
|
82
84
|
export { PanelInfo } from './PanelInfo';
|
|
83
85
|
export type { PanelInfoProps } from './PanelInfo';
|
|
86
|
+
export { Table } from './Table';
|
|
87
|
+
export type { TableProps } from './Table';
|
|
88
|
+
export { CodeBlock } from './CodeBlock';
|
|
89
|
+
export type { CodeBlockProps } from './CodeBlock';
|
|
90
|
+
export { SplitPane, clampSplitRatio } from './SplitPane';
|
|
91
|
+
export type { SplitPaneProps, SplitPaneDirection } from './SplitPane';
|
|
92
|
+
export { Banner } from './Banner';
|
|
93
|
+
export type { BannerProps, BannerTone } from './Banner';
|
|
94
|
+
export { IconButton } from './IconButton';
|
|
95
|
+
export type { IconButtonProps } from './IconButton';
|
|
84
96
|
export { acquireOverlayZIndex, releaseOverlayZIndex, peekOverlayZIndex, } from './overlayZ';
|
|
85
97
|
export { createLazyResolver } from './lazyRoute';
|
|
86
98
|
export type { LazyRouteChunk } from './lazyRoute';
|
package/dist/index.es.js
CHANGED
|
@@ -1,100 +1,113 @@
|
|
|
1
1
|
import { L as x } from "./Layout-mi6Ghayv.js";
|
|
2
|
-
import { H as
|
|
2
|
+
import { H as l } from "./Header-DZQopVNy.js";
|
|
3
3
|
import { F as n } from "./Footer-qxUlnPR9.js";
|
|
4
4
|
import { L as u } from "./List-BgKkYaGO.js";
|
|
5
5
|
import { I as d } from "./Item-D4okhsfW.js";
|
|
6
|
-
import { I as
|
|
7
|
-
import { C as
|
|
8
|
-
import { A } from "./ActionGroup-ChKFW0mt.js";
|
|
9
|
-
import { T as
|
|
6
|
+
import { I as T } from "./ItemColumn-M7a9L8CI.js";
|
|
7
|
+
import { C as B } from "./Card-hn37Opo3.js";
|
|
8
|
+
import { A as I } from "./ActionGroup-ChKFW0mt.js";
|
|
9
|
+
import { T as b, a as A, u as L } from "./Toolbar-C1zAk9ak.js";
|
|
10
10
|
import { T as R } from "./TextGroup-DmhuyMR1.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { A as
|
|
25
|
-
import { A as
|
|
26
|
-
import {
|
|
27
|
-
import { B as
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { P as
|
|
32
|
-
import { P as
|
|
33
|
-
import { P as
|
|
34
|
-
import {
|
|
35
|
-
import { C as
|
|
36
|
-
import { C as
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
11
|
+
import { T as G } from "./Text-zHK2wmsw.js";
|
|
12
|
+
import { S as g } from "./Stat-sKXJwz5L.js";
|
|
13
|
+
import { B as N } from "./Block-Bu7NEA0g.js";
|
|
14
|
+
import { R as M } from "./Row-DsQOVn18.js";
|
|
15
|
+
import { C as Z } from "./Column-BiogBDf8.js";
|
|
16
|
+
import { S as D, s as E } from "./Stack-XkmPSswj.js";
|
|
17
|
+
import { M as j } from "./Menu-DuXQv-zT.js";
|
|
18
|
+
import { D as K } from "./Dropdown-DosvDR13.js";
|
|
19
|
+
import { B as U } from "./Breadcrumb-CAM_e9LN.js";
|
|
20
|
+
import { L as W } from "./Loading-DkkG7RcE.js";
|
|
21
|
+
import { S as Y } from "./Section-Crxk2J-E.js";
|
|
22
|
+
import { N as $ } from "./NavSections-D6rDEtT1.js";
|
|
23
|
+
import { T as ro } from "./TabSections-DN7yVJoF.js";
|
|
24
|
+
import { A as eo, a as to, i as so } from "./Avatar-loGgFt72.js";
|
|
25
|
+
import { A as mo } from "./AvatarGroup-D1gnT3Od.js";
|
|
26
|
+
import { A as fo } from "./AvatarName-0BzyfpMq.js";
|
|
27
|
+
import { B as io } from "./Badge-jp-9iNNL.js";
|
|
28
|
+
import { B as co } from "./Brand-Zq-Idks4.js";
|
|
29
|
+
import { E as So } from "./EmptyState-mBiWtMIM.js";
|
|
30
|
+
import { R as To } from "./RadioGroup-fcXzhvMu.js";
|
|
31
|
+
import { P as Bo } from "./PricingGroup-Czuhe81Z.js";
|
|
32
|
+
import { P as Io } from "./PricingTable-BuLC0opK.js";
|
|
33
|
+
import { P as bo } from "./PageHead-DgaJ1mXY.js";
|
|
34
|
+
import { P as Lo } from "./PageShell-D9EZiO8o.js";
|
|
35
|
+
import { C as Ro, a as ko } from "./ChatSplit-DNnu3TNq.js";
|
|
36
|
+
import { C as Ho } from "./ChatFrame-BW2TmCkZ.js";
|
|
37
|
+
import { C as Fo } from "./ChatMessages-B8rdXiK-.js";
|
|
38
|
+
import { S as zo } from "./Sidebar-CYFaPqdC.js";
|
|
39
|
+
import { P as Oo } from "./Popover-DWdvZTuA.js";
|
|
40
|
+
import { H as wo } from "./Healthmap-B6cdiLUl.js";
|
|
41
|
+
import { P as Eo } from "./PanelInfo-A5y5ysH8.js";
|
|
42
|
+
import { T as jo } from "./Table-BoDr3X2d.js";
|
|
43
|
+
import { C as Ko } from "./CodeBlock-CRzVopIv.js";
|
|
44
|
+
import { S as Uo, c as Vo } from "./SplitPane-DR7PCZ8f.js";
|
|
45
|
+
import { B as Xo } from "./Banner-B72lcEMo.js";
|
|
46
|
+
import { I as _o } from "./IconButton-DPjpBKJn.js";
|
|
47
|
+
import { a as or, p as rr, r as ar } from "./overlayZ-BvHbYC1x.js";
|
|
42
48
|
import { lazy as e } from "react";
|
|
43
|
-
import { c as
|
|
49
|
+
import { c as tr } from "./cx-CcykAxZN.js";
|
|
44
50
|
function s(a) {
|
|
45
|
-
const
|
|
46
|
-
return (
|
|
51
|
+
const r = {};
|
|
52
|
+
return (o) => (r[o] || (r[o] = e(() => a(o))), r[o]);
|
|
47
53
|
}
|
|
48
54
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
I as ActionGroup,
|
|
56
|
+
eo as Avatar,
|
|
57
|
+
mo as AvatarGroup,
|
|
58
|
+
fo as AvatarName,
|
|
59
|
+
io as Badge,
|
|
60
|
+
Xo as Banner,
|
|
61
|
+
N as Block,
|
|
62
|
+
co as Brand,
|
|
63
|
+
U as Breadcrumb,
|
|
64
|
+
B as Card,
|
|
65
|
+
Ho as ChatFrame,
|
|
66
|
+
Ro as ChatList,
|
|
67
|
+
Fo as ChatMessages,
|
|
68
|
+
ko as ChatSplit,
|
|
69
|
+
Ko as CodeBlock,
|
|
70
|
+
Z as Column,
|
|
71
|
+
K as Dropdown,
|
|
72
|
+
So as EmptyState,
|
|
65
73
|
n as Footer,
|
|
66
|
-
|
|
67
|
-
|
|
74
|
+
l as Header,
|
|
75
|
+
wo as Healthmap,
|
|
76
|
+
_o as IconButton,
|
|
68
77
|
d as Item,
|
|
69
|
-
|
|
78
|
+
T as ItemColumn,
|
|
70
79
|
x as Layout,
|
|
71
80
|
u as List,
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
W as Loading,
|
|
82
|
+
j as Menu,
|
|
83
|
+
$ as NavSections,
|
|
84
|
+
bo as PageHead,
|
|
85
|
+
Lo as PageShell,
|
|
86
|
+
Eo as PanelInfo,
|
|
87
|
+
Oo as Popover,
|
|
88
|
+
Bo as PricingGroup,
|
|
89
|
+
Io as PricingTable,
|
|
90
|
+
To as RadioGroup,
|
|
91
|
+
M as Row,
|
|
92
|
+
Y as Section,
|
|
93
|
+
zo as Sidebar,
|
|
94
|
+
Uo as SplitPane,
|
|
95
|
+
D as Stack,
|
|
96
|
+
g as Stat,
|
|
97
|
+
ro as TabSections,
|
|
98
|
+
jo as Table,
|
|
99
|
+
G as Text,
|
|
88
100
|
R as TextGroup,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
101
|
+
b as Toolbar,
|
|
102
|
+
or as acquireOverlayZIndex,
|
|
103
|
+
A as applyToolbarSize,
|
|
104
|
+
to as avatarRadiusStyle,
|
|
105
|
+
Vo as clampSplitRatio,
|
|
93
106
|
s as createLazyResolver,
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
107
|
+
tr as cx,
|
|
108
|
+
so as initialsFromName,
|
|
109
|
+
rr as peekOverlayZIndex,
|
|
110
|
+
ar as releaseOverlayZIndex,
|
|
111
|
+
E as stackColumnsTemplate,
|
|
112
|
+
L as useToolbar
|
|
100
113
|
};
|
package/dist/tokens.css
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
--header-height: 52px;
|
|
42
42
|
--header-shadow: none;
|
|
43
43
|
--header-margin: 0;
|
|
44
|
-
--header-z:
|
|
44
|
+
--header-z: 30;
|
|
45
45
|
/* shorthand: толщина + стиль + цвет, все стороны. Только снизу — `none` и линия через --header-shadow */
|
|
46
46
|
--header-border: 1px solid var(--shell-border);
|
|
47
47
|
/* выравнивание nav в оставшейся ширине шапки: flex-start | center | flex-end */
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
--sidebar-width: 248px;
|
|
109
109
|
--sidebar-pad-x: var(--shell-gap);
|
|
110
110
|
--sidebar-pad-y: var(--shell-gap-lg);
|
|
111
|
-
--sidebar-block-radius:
|
|
111
|
+
--sidebar-block-radius: 14px;
|
|
112
112
|
--sidebar-item-font-size: var(--shell-font-size-sm);
|
|
113
113
|
--sidebar-item-padding: 6px 10px;
|
|
114
114
|
--sidebar-icon-size: 16px;
|
|
@@ -125,4 +125,37 @@
|
|
|
125
125
|
--chat-messages-header-padding: 14px 16px;
|
|
126
126
|
--chat-messages-body-padding: 16px 16px 20px;
|
|
127
127
|
--chat-messages-footer-padding: 10px 12px 12px;
|
|
128
|
+
|
|
129
|
+
/* —— table —— */
|
|
130
|
+
--table-font-size: 0.9rem;
|
|
131
|
+
--table-cell-padding: 0.55rem 0.7rem;
|
|
132
|
+
--table-head-font-size: 0.75rem;
|
|
133
|
+
--table-code-font-size: 0.8rem;
|
|
134
|
+
|
|
135
|
+
/* —— code-block —— */
|
|
136
|
+
--code-block-bg: var(--shell-background);
|
|
137
|
+
--code-block-bar-padding: 0.4rem 0.75rem;
|
|
138
|
+
--code-block-padding: 0.85rem 1rem;
|
|
139
|
+
--code-block-font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
140
|
+
--code-block-font-size: 0.8rem;
|
|
141
|
+
--code-block-line-height: 1.55;
|
|
142
|
+
|
|
143
|
+
/* —— split-pane —— */
|
|
144
|
+
--split-handle-size: 6px;
|
|
145
|
+
--split-handle-bg: var(--shell-border);
|
|
146
|
+
--split-handle-bg-hover: color-mix(
|
|
147
|
+
in srgb,
|
|
148
|
+
var(--shell-color-accent) 25%,
|
|
149
|
+
var(--shell-border)
|
|
150
|
+
);
|
|
151
|
+
|
|
152
|
+
/* —— banner —— */
|
|
153
|
+
--banner-padding: 0.55rem 0.85rem;
|
|
154
|
+
--banner-bg: color-mix(in srgb, var(--shell-color-accent) 8%, var(--shell-bg));
|
|
155
|
+
--banner-border: color-mix(in srgb, var(--shell-color-accent) 35%, var(--shell-border));
|
|
156
|
+
|
|
157
|
+
/* —— loading / empty —— */
|
|
158
|
+
--loading-min-height: min(50vh, 24rem);
|
|
159
|
+
--empty-max-width: 36rem;
|
|
160
|
+
--empty-padding: 2rem;
|
|
128
161
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elcrm/components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.14",
|
|
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>",
|
|
@@ -85,6 +85,9 @@
|
|
|
85
85
|
"./package.json": "./package.json"
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
|
+
"@elcrm/button": "1.2.0",
|
|
89
|
+
"@elcrm/icons": "0.1.5",
|
|
90
|
+
"@elcrm/tooltip": "0.1.2",
|
|
88
91
|
"@types/react": ">=18.0.0",
|
|
89
92
|
"react": ">=18.0.0",
|
|
90
93
|
"react-dom": ">=18.0.0"
|