@epam/ai-dial-ui-kit 0.14.0-dev.34 → 0.14.0-dev.36
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/dist/CHANGELOG.md +1 -0
- package/dist/{DateCellRenderer-B41xNX7a.cjs → DateCellRenderer-CPm5auvF.cjs} +1 -1
- package/dist/{DateCellRenderer-B0o0BqbW.cjs → DateCellRenderer-s9DQ6Fjk.cjs} +19 -19
- package/dist/JsonEditor-BlaSMX26.cjs +1 -0
- package/dist/MarkdownEditor-5kljDPcm.cjs +1 -0
- package/dist/MarkdownEditor-C0_gU7Fi.cjs +1 -0
- package/dist/MarkdownEditorContainer-D4bI2w3-.cjs +1 -0
- package/dist/components/Grid/Grid.js +111 -111
- package/dist/components/JsonEditor/lazy.js +4 -0
- package/dist/components/MarkdownEditor/lazy.js +4 -0
- package/dist/components/New/Grid/Grid.js +129 -129
- package/dist/components/New/MarkdownEditor/lazy.js +4 -0
- package/dist/components-manifest.json +3 -3
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +410 -408
- package/dist/editors.cjs +1 -1
- package/dist/editors.js +10 -7
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +2 -2
- package/dist/lazy-B1eG0EeX.cjs +1 -0
- package/dist/src/components/JsonEditor/lazy.d.ts +14 -0
- package/dist/src/components/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/components/New/MarkdownEditor/lazy.d.ts +7 -0
- package/dist/src/index.d.ts +3 -3
- package/dist/src/subpaths/editors.d.ts +13 -12
- package/dist/src/utils/grid-registration.d.ts +16 -0
- package/dist/src/utils/grid-registration.spec.d.ts +1 -0
- package/dist/{use-file-manager-tabs-CkYH0CvF.cjs → use-file-manager-tabs-3AM-Fjrr.cjs} +1 -1
- package/dist/utils/grid-registration.js +8 -0
- package/package.json +1 -1
- package/dist/JsonEditor-pdzI3xkJ.cjs +0 -1
- package/dist/MarkdownEditor-CNEY8i7O.cjs +0 -1
- package/dist/MarkdownEditor-Dea4eQpw.cjs +0 -1
- package/dist/MarkdownEditorContainer-BO6PafCS.cjs +0 -1
- package/dist/editor-Ba3vCFHk.cjs +0 -1
|
@@ -1,37 +1,36 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { themeBalham as ge, colorSchemeLight as _e
|
|
3
|
-
import { AgGridReact as
|
|
4
|
-
import { IconZoomCancel as
|
|
5
|
-
import { useState as
|
|
6
|
-
import { useIsMobileScreen as
|
|
7
|
-
import { useIsTabletScreen as
|
|
8
|
-
import { GridSelectionMode as
|
|
9
|
-
import { DropdownTrigger as
|
|
10
|
-
import { debounceFn as
|
|
11
|
-
import { baseColumnComparator as
|
|
2
|
+
import { themeBalham as ge, colorSchemeLight as _e } from "../../../node_modules/ag-grid-community/dist/package/main.esm.js";
|
|
3
|
+
import { AgGridReact as Ne } from "../../../node_modules/ag-grid-react/dist/package/index.esm.js";
|
|
4
|
+
import { IconZoomCancel as Ie } from "@tabler/icons-react";
|
|
5
|
+
import { useState as Te, useRef as D, useId as Ae, useCallback as s, useMemo as m, useEffect as g } from "react";
|
|
6
|
+
import { useIsMobileScreen as Ge } from "../../../hooks/use-is-mobile-screen.js";
|
|
7
|
+
import { useIsTabletScreen as De } from "../../../hooks/use-is-tablet-screen.js";
|
|
8
|
+
import { GridSelectionMode as Q } from "../../../models/selection-mode.js";
|
|
9
|
+
import { DropdownTrigger as be } from "../../../types/dropdown.js";
|
|
10
|
+
import { debounceFn as Le } from "../../../utils/debounce.js";
|
|
11
|
+
import { baseColumnComparator as Oe, omitUndefined as we } from "../../../utils/grid-comparators.js";
|
|
12
|
+
import { registerAgGridModulesOnce as ye } from "../../../utils/grid-registration.js";
|
|
12
13
|
import { mergeClasses as X } from "../../../utils/merge-classes.js";
|
|
13
|
-
import { Dropdown as
|
|
14
|
-
import { EllipsisTooltip as
|
|
15
|
-
import { NoDataContent as
|
|
16
|
-
import { SelectionCell as
|
|
17
|
-
import { SelectionHeader as
|
|
18
|
-
import { GRID_THEME_PARAMS as
|
|
19
|
-
import { SELECTION_COL_DEF as
|
|
20
|
-
|
|
21
|
-
Ie.registerModules([Te]);
|
|
22
|
-
const Qe = "dial-kit-grid-selection", Ze = 150, $e = 100, pt = ({
|
|
14
|
+
import { Dropdown as ve } from "../Dropdown/Dropdown.js";
|
|
15
|
+
import { EllipsisTooltip as xe } from "../EllipsisTooltip/EllipsisTooltip.js";
|
|
16
|
+
import { NoDataContent as He } from "../NoDataContent/NoDataContent.js";
|
|
17
|
+
import { SelectionCell as We } from "./components/SelectionCell.js";
|
|
18
|
+
import { SelectionHeader as ke } from "./components/SelectionHeader.js";
|
|
19
|
+
import { GRID_THEME_PARAMS as b, SelectionEventSourceType as S, GRID_ROW_SELECT_CLASS as ze, GRID_HEADER_SELECT_CLASS as Pe, ROW_HEIGHT as Y, GRID_WITHOUT_HEADER_BORDERS_CLASS as Fe, GRID_SELECTION_VISIBLE_CLASS as Ue, GRID_WITH_SELECTION_CLASS as Me, GRID_ROOT_CLASS as Be } from "./constants.js";
|
|
20
|
+
import { SELECTION_COL_DEF as Ve } from "./renderers/constants.js";
|
|
21
|
+
const je = "dial-kit-grid-selection", Je = 150, Ze = 100, Sr = ({
|
|
23
22
|
columnDefs: _,
|
|
24
23
|
rowData: c,
|
|
25
24
|
additionalGridOptions: L,
|
|
26
25
|
getContextMenuItems: N,
|
|
27
26
|
className: ee,
|
|
28
|
-
ariaLabel:
|
|
27
|
+
ariaLabel: re = "Data grid",
|
|
29
28
|
wrapCustomCellRenderers: I = !0,
|
|
30
29
|
disabledRowIds: p,
|
|
31
|
-
selectedRowIds:
|
|
32
|
-
onSelectionChange:
|
|
33
|
-
onGridApiChange:
|
|
34
|
-
getRowId:
|
|
30
|
+
selectedRowIds: l,
|
|
31
|
+
onSelectionChange: O,
|
|
32
|
+
onGridApiChange: te,
|
|
33
|
+
getRowId: w,
|
|
35
34
|
alternateOddRowColors: y = !1,
|
|
36
35
|
filterPlaceholder: v = "Enter value",
|
|
37
36
|
emptyStateIcon: x,
|
|
@@ -42,46 +41,47 @@ const Qe = "dial-kit-grid-selection", Ze = 150, $e = 100, pt = ({
|
|
|
42
41
|
withoutHeaderBorders: oe = !1,
|
|
43
42
|
allowDisabledContextMenu: P = !1,
|
|
44
43
|
selectionMode: n,
|
|
45
|
-
selectRowLabel:
|
|
46
|
-
selectAllLabel:
|
|
44
|
+
selectRowLabel: F,
|
|
45
|
+
selectAllLabel: U = "Select all rows"
|
|
47
46
|
}) => {
|
|
48
|
-
|
|
47
|
+
ye();
|
|
48
|
+
const [t, ne] = Te(), ie = Ge(), se = De(), T = D(/* @__PURE__ */ new Set()), M = D(
|
|
49
49
|
void 0
|
|
50
|
-
), B = `dial-kit-grid-selection-${
|
|
51
|
-
getRowId:
|
|
50
|
+
), B = `dial-kit-grid-selection-${Ae()}`, d = D({
|
|
51
|
+
getRowId: w,
|
|
52
52
|
getContextMenuItems: N,
|
|
53
|
-
onSelectionChange:
|
|
54
|
-
selectRowLabel:
|
|
53
|
+
onSelectionChange: O,
|
|
54
|
+
selectRowLabel: F,
|
|
55
55
|
wrapCustomCellRenderers: I
|
|
56
56
|
});
|
|
57
|
-
|
|
58
|
-
getRowId:
|
|
57
|
+
d.current = {
|
|
58
|
+
getRowId: w,
|
|
59
59
|
getContextMenuItems: N,
|
|
60
|
-
onSelectionChange:
|
|
61
|
-
selectRowLabel:
|
|
60
|
+
onSelectionChange: O,
|
|
61
|
+
selectRowLabel: F,
|
|
62
62
|
wrapCustomCellRenderers: I
|
|
63
63
|
};
|
|
64
|
-
const
|
|
65
|
-
const
|
|
66
|
-
return
|
|
67
|
-
}, []), V = !!N, j = !!I,
|
|
64
|
+
const a = s((e) => {
|
|
65
|
+
const r = d.current.getRowId;
|
|
66
|
+
return r ? r(e) : String(e.id ?? JSON.stringify(e));
|
|
67
|
+
}, []), V = !!N, j = !!I, ae = m(
|
|
68
68
|
() => ge.withPart(_e).withParams({
|
|
69
|
-
...
|
|
70
|
-
oddRowBackgroundColor: y ?
|
|
69
|
+
...b,
|
|
70
|
+
oddRowBackgroundColor: y ? b.oddRowBackgroundColor : b.backgroundColor,
|
|
71
71
|
wrapperBorder: z
|
|
72
72
|
}),
|
|
73
73
|
[y, z]
|
|
74
|
-
),
|
|
74
|
+
), le = s((e) => {
|
|
75
75
|
e.api.sizeColumnsToFit();
|
|
76
|
-
}, []), ce = ie || se || (
|
|
77
|
-
(e) => !!e && !!p?.has(
|
|
78
|
-
[p,
|
|
76
|
+
}, []), ce = ie || se || (l?.size ?? 0) > 0, u = s(
|
|
77
|
+
(e) => !!e && !!p?.has(a(e)),
|
|
78
|
+
[p, a]
|
|
79
79
|
), C = s(
|
|
80
|
-
(e,
|
|
81
|
-
|
|
80
|
+
(e, r, i) => V ? /* @__PURE__ */ o(
|
|
81
|
+
ve,
|
|
82
82
|
{
|
|
83
|
-
trigger: [
|
|
84
|
-
items: e.data ?
|
|
83
|
+
trigger: [be.ContextMenu],
|
|
84
|
+
items: e.data ? d.current.getContextMenuItems?.(e.data) ?? [] : [],
|
|
85
85
|
anchorToMouse: !0,
|
|
86
86
|
matchReferenceWidth: !0,
|
|
87
87
|
className: X(
|
|
@@ -89,93 +89,93 @@ const Qe = "dial-kit-grid-selection", Ze = 150, $e = 100, pt = ({
|
|
|
89
89
|
i && "cursor-not-allowed opacity-75"
|
|
90
90
|
),
|
|
91
91
|
disabled: i && !P,
|
|
92
|
-
children: /* @__PURE__ */ o("span", { className: "block min-w-0 max-w-full flex-1", children:
|
|
92
|
+
children: /* @__PURE__ */ o("span", { className: "block min-w-0 max-w-full flex-1", children: r })
|
|
93
93
|
}
|
|
94
|
-
) :
|
|
94
|
+
) : r,
|
|
95
95
|
[V, P]
|
|
96
96
|
), A = s(
|
|
97
97
|
(e) => {
|
|
98
98
|
if (!e.data) return null;
|
|
99
|
-
const
|
|
99
|
+
const r = u(e.data);
|
|
100
100
|
return C(
|
|
101
101
|
e,
|
|
102
102
|
/* @__PURE__ */ o(
|
|
103
|
-
|
|
103
|
+
xe,
|
|
104
104
|
{
|
|
105
105
|
text: e.value == null ? "" : String(e.value),
|
|
106
106
|
className: "max-w-full dial-small-text text-primary",
|
|
107
|
-
hideTooltip:
|
|
107
|
+
hideTooltip: r
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
|
|
110
|
+
r
|
|
111
111
|
);
|
|
112
112
|
},
|
|
113
|
-
[
|
|
113
|
+
[u, C]
|
|
114
114
|
), R = s(
|
|
115
115
|
(e) => e === S.API || e === S.ROW_DATA_CHANGED,
|
|
116
116
|
[]
|
|
117
|
-
),
|
|
118
|
-
() =>
|
|
119
|
-
const i = (e.selectedNodes ?? []).map((
|
|
120
|
-
T.current = f,
|
|
121
|
-
},
|
|
122
|
-
[R,
|
|
123
|
-
),
|
|
117
|
+
), de = m(
|
|
118
|
+
() => Le((e) => {
|
|
119
|
+
const i = (e.selectedNodes ?? []).map((q) => q.data), f = new Set(i.map(a));
|
|
120
|
+
T.current = f, M.current = e.source, !R(e.source) && d.current.onSelectionChange?.(f, i);
|
|
121
|
+
}, Ze),
|
|
122
|
+
[R, a]
|
|
123
|
+
), G = m(() => {
|
|
124
124
|
if (n)
|
|
125
125
|
return {
|
|
126
|
-
...
|
|
127
|
-
colId:
|
|
126
|
+
...Ve,
|
|
127
|
+
colId: je,
|
|
128
128
|
headerName: "",
|
|
129
|
-
headerClass:
|
|
130
|
-
cellClass:
|
|
131
|
-
headerComponent: n ===
|
|
132
|
-
headerComponentParams: { label:
|
|
129
|
+
headerClass: Pe,
|
|
130
|
+
cellClass: ze,
|
|
131
|
+
headerComponent: n === Q.MULTIPLE ? ke : void 0,
|
|
132
|
+
headerComponentParams: { label: U },
|
|
133
133
|
cellRenderer: (e) => {
|
|
134
134
|
if (!e.data) return null;
|
|
135
|
-
const
|
|
135
|
+
const r = a(e.data);
|
|
136
136
|
return /* @__PURE__ */ o(
|
|
137
|
-
|
|
137
|
+
We,
|
|
138
138
|
{
|
|
139
139
|
params: e,
|
|
140
140
|
mode: n,
|
|
141
|
-
rowId:
|
|
141
|
+
rowId: r,
|
|
142
142
|
radioName: B,
|
|
143
|
-
label:
|
|
144
|
-
disabled: p?.has(
|
|
143
|
+
label: d.current.selectRowLabel?.(e.data) ?? "Select row",
|
|
144
|
+
disabled: p?.has(r)
|
|
145
145
|
}
|
|
146
146
|
);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
149
|
}, [
|
|
150
150
|
n,
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
U,
|
|
152
|
+
a,
|
|
153
153
|
p,
|
|
154
154
|
B
|
|
155
155
|
]), J = s(
|
|
156
156
|
(e) => {
|
|
157
157
|
if (!e.cellRenderer)
|
|
158
158
|
return { ...e, cellRenderer: A };
|
|
159
|
-
const
|
|
160
|
-
if (!(typeof
|
|
159
|
+
const r = d.current.wrapCustomCellRenderers;
|
|
160
|
+
if (!(typeof r == "function" ? r(e) : !!r))
|
|
161
161
|
return e;
|
|
162
162
|
const f = e.cellRenderer;
|
|
163
163
|
return { ...e, cellRenderer: (E) => {
|
|
164
|
-
const he =
|
|
164
|
+
const he = u(E.data), K = typeof f == "function" ? f : void 0, Ee = K ? /* @__PURE__ */ o(K, { ...E }) : A(E);
|
|
165
165
|
return C(E, Ee, he);
|
|
166
166
|
} };
|
|
167
167
|
},
|
|
168
|
-
[
|
|
169
|
-
),
|
|
168
|
+
[u, A, C]
|
|
169
|
+
), ue = m(() => {
|
|
170
170
|
const e = j ? (_ ?? []).map(J) : _ ?? [];
|
|
171
|
-
return
|
|
172
|
-
}, [_, j, J,
|
|
173
|
-
defaultColDef:
|
|
171
|
+
return G ? [G, ...e] : e;
|
|
172
|
+
}, [_, j, J, G]), {
|
|
173
|
+
defaultColDef: Z,
|
|
174
174
|
rowSelection: h,
|
|
175
175
|
...me
|
|
176
176
|
} = L ?? {}, fe = m(
|
|
177
177
|
() => ({
|
|
178
|
-
minWidth:
|
|
178
|
+
minWidth: Je,
|
|
179
179
|
resizable: !0,
|
|
180
180
|
sortable: !0,
|
|
181
181
|
floatingFilter: !0,
|
|
@@ -184,102 +184,102 @@ const Qe = "dial-kit-grid-selection", Ze = 150, $e = 100, pt = ({
|
|
|
184
184
|
filterPlaceholder: v,
|
|
185
185
|
buttons: ["reset"]
|
|
186
186
|
},
|
|
187
|
-
comparator:
|
|
188
|
-
...
|
|
187
|
+
comparator: Oe,
|
|
188
|
+
...we(Z)
|
|
189
189
|
}),
|
|
190
|
-
[v,
|
|
190
|
+
[v, Z]
|
|
191
191
|
), Se = (e) => {
|
|
192
|
-
e.api.sizeColumnsToFit(), ne(e.api), L?.onGridReady?.(e),
|
|
192
|
+
e.api.sizeColumnsToFit(), ne(e.api), L?.onGridReady?.(e), te?.(e.api);
|
|
193
193
|
};
|
|
194
194
|
g(() => {
|
|
195
|
-
|
|
196
|
-
}, [
|
|
195
|
+
t && c && t.setGridOption("rowData", c);
|
|
196
|
+
}, [t, c]);
|
|
197
197
|
const pe = s(
|
|
198
198
|
() => /* @__PURE__ */ o(
|
|
199
|
-
|
|
199
|
+
He,
|
|
200
200
|
{
|
|
201
201
|
live: !0,
|
|
202
202
|
title: H,
|
|
203
203
|
description: W,
|
|
204
|
-
icon: x ?? /* @__PURE__ */ o(
|
|
204
|
+
icon: x ?? /* @__PURE__ */ o(Ie, { size: 100, stroke: 0.5, "aria-hidden": "true" })
|
|
205
205
|
}
|
|
206
206
|
),
|
|
207
207
|
[H, W, x]
|
|
208
|
-
),
|
|
209
|
-
isRowSelectable: (e) => !
|
|
208
|
+
), $ = typeof h == "object" ? h : void 0, Ce = m(() => n ? {
|
|
209
|
+
isRowSelectable: (e) => !u(e.data),
|
|
210
210
|
/*
|
|
211
211
|
Merged, not replaced, the way `defaultColDef` is: a consumer reaching
|
|
212
212
|
for `isRowSelectable` alone would otherwise hand ag-Grid a whole new
|
|
213
213
|
object and lose the three settings below with it.
|
|
214
214
|
*/
|
|
215
|
-
|
|
215
|
+
...$,
|
|
216
216
|
/*
|
|
217
217
|
`selectionMode` owns the mode, because it also decides whether the
|
|
218
218
|
selection column draws checkboxes or radios.
|
|
219
219
|
*/
|
|
220
|
-
mode: n ===
|
|
220
|
+
mode: n === Q.SINGLE ? "singleRow" : "multiRow",
|
|
221
221
|
// The controls live in this component's own selection column, so
|
|
222
222
|
// ag-Grid's inputs are switched off and only its behaviour is used.
|
|
223
223
|
checkboxes: !1,
|
|
224
224
|
headerCheckbox: !1
|
|
225
225
|
} : h, [
|
|
226
226
|
h,
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
$,
|
|
228
|
+
u,
|
|
229
229
|
n
|
|
230
230
|
]);
|
|
231
231
|
g(() => {
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
|
|
232
|
+
t && c && T.current.size && T.current.forEach((e) => {
|
|
233
|
+
const r = t.getRowNode(e);
|
|
234
|
+
r && !r.isSelected() && r.setSelected(!0, !1, S.API);
|
|
235
235
|
});
|
|
236
|
-
}, [
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
|
|
236
|
+
}, [t, c]), g(() => {
|
|
237
|
+
t && l && (t.deselectAll("all", S.API), l.forEach((e) => {
|
|
238
|
+
const r = t.getRowNode(e);
|
|
239
|
+
r && !r.isSelected() && r.setSelected(!0, !1, S.API);
|
|
240
240
|
}));
|
|
241
|
-
}, [
|
|
241
|
+
}, [t, l]);
|
|
242
242
|
const Re = s(
|
|
243
|
-
(e) => e.data ?
|
|
244
|
-
[
|
|
243
|
+
(e) => e.data ? a(e.data) : "",
|
|
244
|
+
[a]
|
|
245
245
|
);
|
|
246
246
|
return g(() => {
|
|
247
247
|
const e = R(
|
|
248
|
-
|
|
248
|
+
M.current
|
|
249
249
|
);
|
|
250
|
-
if (
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
const i =
|
|
254
|
-
i &&
|
|
250
|
+
if (t && l?.size && e) {
|
|
251
|
+
const r = Array.from(l)[0];
|
|
252
|
+
if (r) {
|
|
253
|
+
const i = t.getRowNode(r);
|
|
254
|
+
i && t.ensureNodeVisible(i);
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
|
-
}, [
|
|
257
|
+
}, [t, R, l]), /* @__PURE__ */ o(
|
|
258
258
|
"div",
|
|
259
259
|
{
|
|
260
260
|
className: X(
|
|
261
|
-
|
|
261
|
+
Be,
|
|
262
262
|
"size-full",
|
|
263
|
-
n &&
|
|
264
|
-
n && ce &&
|
|
265
|
-
oe &&
|
|
263
|
+
n && Me,
|
|
264
|
+
n && ce && Ue,
|
|
265
|
+
oe && Fe,
|
|
266
266
|
ee
|
|
267
267
|
),
|
|
268
268
|
role: "region",
|
|
269
|
-
"aria-label":
|
|
269
|
+
"aria-label": re,
|
|
270
270
|
"aria-busy": k,
|
|
271
271
|
children: /* @__PURE__ */ o("div", { className: "h-full overflow-x-auto", children: /* @__PURE__ */ o(
|
|
272
|
-
|
|
272
|
+
Ne,
|
|
273
273
|
{
|
|
274
274
|
rowModelType: "clientSide",
|
|
275
275
|
headerHeight: Y,
|
|
276
276
|
rowHeight: Y,
|
|
277
277
|
cellSelection: !1,
|
|
278
|
-
theme:
|
|
278
|
+
theme: ae,
|
|
279
279
|
autoSizeStrategy: { type: "fitGridWidth" },
|
|
280
|
-
columnDefs:
|
|
280
|
+
columnDefs: ue,
|
|
281
281
|
defaultColDef: fe,
|
|
282
|
-
onGridSizeChanged:
|
|
282
|
+
onGridSizeChanged: le,
|
|
283
283
|
onGridReady: Se,
|
|
284
284
|
loading: k,
|
|
285
285
|
suppressCellFocus: !0,
|
|
@@ -287,7 +287,7 @@ const Qe = "dial-kit-grid-selection", Ze = 150, $e = 100, pt = ({
|
|
|
287
287
|
noRowsOverlayComponent: pe,
|
|
288
288
|
rowData: c,
|
|
289
289
|
rowSelection: Ce,
|
|
290
|
-
onSelectionChanged:
|
|
290
|
+
onSelectionChanged: de,
|
|
291
291
|
getRowId: Re,
|
|
292
292
|
...me
|
|
293
293
|
}
|
|
@@ -296,6 +296,6 @@ const Qe = "dial-kit-grid-selection", Ze = 150, $e = 100, pt = ({
|
|
|
296
296
|
);
|
|
297
297
|
};
|
|
298
298
|
export {
|
|
299
|
-
|
|
300
|
-
|
|
299
|
+
je as GRID_SELECTION_COLUMN_ID,
|
|
300
|
+
Sr as Grid
|
|
301
301
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.14.0-dev.
|
|
3
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"version": "0.14.0-dev.36",
|
|
3
|
+
"generatedAt": "2026-09-08T13:07:17.129Z",
|
|
4
4
|
"kit": {
|
|
5
5
|
"name": "@epam/ai-dial-ui-kit",
|
|
6
6
|
"description": "A modern UI kit for building AI DIAL interfaces with React",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"setupNotes": "## Next.js Integration\n1. Install the package and peer dependencies that are not currently in your project\n``` bash\nnpm install @epam/ai-dial-ui-kit\nnpm install react react-dom @tabler/icons-react classnames\nnpm install @floating-ui/react monaco-editor @monaco-editor/react\n```\n\n2. Import style in the root layout of the project:\n\n```tsx\n// app/layout.tsx\nimport \"@epam/ai-dial-ui-kit/styles.css\";\n```\n\n3. Usage example\n\n```tsx\n// app/page.tsx\n\"use client\";\nimport { DialPrimaryButton } from \"@epam/ai-dial-ui-kit\";\n\nexport default function Home() {\n return (\n <div className=\"w-full h-full flex flex-col gap-3 items-center justify-center\">\n <h1>Test library</h1>\n <DialPrimaryButton onClick={() => alert('Hello AI DIAL!')} />\n </div>\n );\n}\n```\nSee \"🎨 Theming & Customization\" section in README."
|
|
22
22
|
},
|
|
23
|
-
"styles": "# Typography CSS Utility Classes\n\n## Design-system-compliant classes (`dial-*-text`)\n\nUse these by default. They follow the design system type scale.\n\n| Class | Design name | Weight | Size / Line-height |\n| --------------------------------- | --------------------------- | -------- | ----------------------------------- |\n| `.dial-display1-text` | Display 1 | semibold | 32px / 48px |\n| `.dial-display2-text` | Display 2 | semibold | 28px / 40px |\n| `.dial-display3-text` | Display 3 | semibold | 22px / 32px |\n| `.dial-h1-text` | Heading 1 | semibold | 20px / 28px |\n| `.dial-h2-text` | Heading 2 | semibold | 18px / 26px |\n| `.dial-h3-text` | Heading 3 | semibold | 16px / 24px |\n| `.dial-body-text` | Body Text | normal | 16px / 24px |\n| `.dial-body-semi-text` | Body Text (Semi Bold) | semibold | 16px / 24px |\n| `.dial-body-paragraph-text` | Body Paragraph | normal | 16px / 26px |\n| `.dial-body-paragraph-semi-text` | Body Paragraph (Semi Bold) | semibold | 16px / 26px |\n| `.dial-small-text` | Small Text | normal | 14px / 20px |\n| `.dial-small-semi-text` | Small Text (Semi Bold) | semibold | 14px / 20px |\n| `.dial-small-paragraph-text` | Small Paragraph | normal | 14px / 24px |\n| `.dial-small-paragraph-semi-text` | Small Paragraph (Semi Bold) | semibold | 14px / 24px |\n| `.dial-tiny-text` | Tiny Text | normal | 12px / 16px |\n| `.dial-tiny-lead-text` | Tiny Text Lead | normal | 12px / 16px (+0.03em, uppercase) |\n| `.dial-tiny-semi-text` | Tiny Text (Semi Bold) | semibold | 12px / 16px |\n| `.dial-tiny-lead-semi-text` | Tiny Text Lead (Semi Bold) | semibold | 12px / 16px (+0.03em, uppercase) |\n| `.dial-caption-text` | Caption | normal | 10px / 12px |\n| `.dial-caption-lead-semi-text` | Caption Lead (Semi Bold) | semibold | 10px / 12px (+0.06em, uppercase) |\n| `.dial-code-text` | Code | normal | 14px / 20px (Fira Code / monospace) |\n\nThe three `*-lead-*` classes apply `text-transform: uppercase` themselves — pass them the sentence-case string, not a pre-uppercased one, so the accessible name stays readable.\n\n`.dial-code-text` resolves its family through `var(--theme-font-mono, var(--font-fira-code, 'Fira Code'))` before falling back to the system monospace stack. The kit ships no font file; the host provides the face.\n\n## Legacy classes (avoid in new code)\n\nClasses like `dial-h1`, `dial-h2`, `dial-body`, `dial-small*`, `dial-tiny*`, `dial-caption` are legacy. They can be used in legacy projects if user explicidly specify they need legacy typography.\n\n## Raw SCSS source\n",
|
|
23
|
+
"styles": "# Typography CSS Utility Classes\n\n## Design-system-compliant classes (`dial-*-text`)\n\nUse these by default. They follow the design system type scale.\n\n| Class | Design name | Weight | Size / Line-height |\n| --------------------------------- | --------------------------- | -------- | ----------------------------------- |\n| `.dial-display1-text` | Display 1 | semibold | 32px / 48px |\n| `.dial-display2-text` | Display 2 | semibold | 28px / 40px |\n| `.dial-display3-text` | Display 3 | semibold | 22px / 32px |\n| `.dial-h1-text` | Heading 1 | semibold | 20px / 28px |\n| `.dial-h2-text` | Heading 2 | semibold | 18px / 26px |\n| `.dial-h3-text` | Heading 3 | semibold | 16px / 24px |\n| `.dial-body-text` | Body Text | normal | 16px / 24px |\n| `.dial-body-semi-text` | Body Text (Semi Bold) | semibold | 16px / 24px |\n| `.dial-body-paragraph-text` | Body Paragraph | normal | 16px / 26px |\n| `.dial-body-paragraph-semi-text` | Body Paragraph (Semi Bold) | semibold | 16px / 26px |\n| `.dial-small-text` | Small Text | normal | 14px / 20px |\n| `.dial-small-semi-text` | Small Text (Semi Bold) | semibold | 14px / 20px |\n| `.dial-small-paragraph-text` | Small Paragraph | normal | 14px / 24px |\n| `.dial-small-paragraph-semi-text` | Small Paragraph (Semi Bold) | semibold | 14px / 24px |\n| `.dial-tiny-text` | Tiny Text | normal | 12px / 16px |\n| `.dial-tiny-lead-text` | Tiny Text Lead | normal | 12px / 16px (+0.03em, uppercase) |\n| `.dial-tiny-semi-text` | Tiny Text (Semi Bold) | semibold | 12px / 16px |\n| `.dial-tiny-lead-semi-text` | Tiny Text Lead (Semi Bold) | semibold | 12px / 16px (+0.03em, uppercase) |\n| `.dial-caption-text` | Caption | normal | 10px / 12px |\n| `.dial-caption-lead-semi-text` | Caption Lead (Semi Bold) | semibold | 10px / 12px (+0.06em, uppercase) |\n| `.dial-code-text` | Code | normal | 14px / 20px (Fira Code / monospace) |\n| `.dial-italic-text` | Italic | normal | 18px / 22px (serif, italic) |\n| `.dial-small-italic-text` | Small Italic | normal | 14px / 20px (serif, italic) |\n| `.dial-tiny-italic-text` | Tiny Italic | normal | 12px / 16px (serif, italic) |\n| `.dial-caption-italic-text` | Caption Italic | normal | 10px / 12px (serif, italic) |\n\nThe three `*-lead-*` classes apply `text-transform: uppercase` themselves — pass them the sentence-case string, not a pre-uppercased one, so the accessible name stays readable.\n\n`.dial-code-text` resolves its family through `var(--theme-font-mono, var(--font-fira-code, 'Fira Code'))` before falling back to the system monospace stack. The kit ships no font file; the host provides the face.\n\nThe `*-italic-text` classes use a serif italic face and are intended for mathematical and formula symbols. Their line-heights follow the corresponding typography size; the default 18px variant uses a fixed 22px line-height to keep standalone symbols vertically aligned without changing their container's height.\n\n## Legacy classes (avoid in new code)\n\nClasses like `dial-h1`, `dial-h2`, `dial-body`, `dial-small*`, `dial-tiny*`, `dial-caption` are legacy. They can be used in legacy projects if user explicidly specify they need legacy typography.\n\n## Raw SCSS source\n",
|
|
24
24
|
"theming": "# Theming & CSS Variable Tokens\n\nAI DIAL UI Kit uses CSS custom properties (variables) for theming.\nDark and light themes are switched by setting different values for these variables on `:root` or a theme wrapper element.\n\n## Usage in Tailwind\n\nThe Tailwind config maps CSS variables to utility classes.\nUse these classes in your components:\n\n```tsx\n// Backgrounds\n<div className=\"bg-layer-0\" /> // darkest background\n<div className=\"bg-layer-1\" /> // main content area\n<div className=\"bg-layer-2\" /> // elevated panels\n\n// Text\n<span className=\"text-primary\" /> // main text color\n<span className=\"text-secondary\" /> // muted text\n<span className=\"text-error\" /> // error state\n\n// Borders\n<div className=\"border border-primary\" /> // standard border\n<div className=\"border border-error\" /> // error border\n```\n\n## Override CSS Variables\n\n```css\n:root {\n --bg-layer-0: #000000;\n --bg-layer-1: #0c101d;\n --bg-layer-2: #161b2d;\n --bg-layer-3: #1d2439;\n --text-primary: #eef1f7;\n --text-secondary: #9fa6bd;\n --text-error: #f76464;\n --stroke-primary: #696e7c;\n --controls-bg-accent-primary: #3664e2;\n /* ... see tailwind.config.js for full list */\n}\n```\n\n## Token Reference\n\n\n### backgroundsColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-sunken` | `var(--bg-layer-sunken)` | `#EEF1F7` |\n| `layer-base` | `var(--bg-layer-base)` | `#F5F7FA` |\n| `layer-raised` | `var(--bg-layer-raised)` | `#FCFCFC` |\n| `gradient-1` | `var(--bg-gradient-1)` | `#1D4ED8` |\n| `gradient-1-hover` | `var(--bg-gradient-1-hover)` | `#6785FB` |\n| `gradient-1-active` | `var(--bg-gradient-1-active)` | `#1D4ED8` |\n| `gradient-2` | `var(--bg-gradient-2)` | `#885DF2` |\n| `gradient-2-hover` | `var(--bg-gradient-2-hover)` | `#885DF2` |\n| `gradient-2-active` | `var(--bg-gradient-2-active)` | `#7C3AED` |\n| `control-accent-alpha` | `var(--bg-control-accent-alpha)` | `#2764D90F` |\n| `control-accent-alpha-hover` | `var(--bg-control-accent-alpha-hover)` | `#2764D924` |\n| `control-accent-alpha-active` | `var(--bg-control-accent-alpha-active)` | `#2764D933` |\n| `control-accent` | `var(--bg-control-accent)` | `#1D4ED8` |\n| `control-accent-hover` | `var(--bg-control-accent-hover)` | `#5976E9` |\n| `control-neutral` | `var(--bg-control-neutral)` | `#FCFCFC` |\n| `control-neutral-hover-strong` | `var(--bg-control-neutral-hover-strong)` | `#848E9C` |\n| `control-neutral-active` | `var(--bg-control-neutral-active)` | `#D1DBEA` |\n| `control-neutral-default` | `var(--bg-control-neutral-default)` | `#ACB3C3` |\n| `control-inverted` | `var(--bg-control-inverted)` | `#57647A` |\n| `control-error` | `var(--bg-control-error)` | `#AE2F2F` |\n| `control-error-hover` | `var(--bg-control-error-hover)` | `#BF3939` |\n| `control-error-active` | `var(--bg-control-error-active)` | `#CC4545` |\n| `control-error-alpha-hover` | `var(--bg-control-error-alpha-hover)` | `#F764641A` |\n| `control-error-alpha-active` | `var(--bg-control-error-alpha-active)` | `#F7646433` |\n| `control-disable-primary` | `var(--bg-control-disable-primary)` | `#DCE0E8` |\n| `control-disable-secondary` | `var(--bg-control-disable-secondary)` | `#ACB3C3` |\n| `green-1` | `var(--bg-visual-green-1)` | `#CDE8E5` |\n| `green-2` | `var(--bg-visual-green-2)` | `#D1F0DC` |\n| `violet-1` | `var(--bg-visual-violet-1)` | `#DDE3F9` |\n| `violet-2` | `var(--bg-visual-violet-2)` | `#F1E9FF` |\n\n### shadowColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `xs-1` | `var(--shadow-xs-1)` | `#2764D933` |\n| `xs-2` | `var(--shadow-xs-2)` | `#161B2D08` |\n\n### borderColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-alpha` | `var(--stroke-accent-alpha)` | `#2764D933` |\n| `gradient-1` | `var(--stroke-gradient-1)` | `#5976E9` |\n| `gradient-2` | `var(--stroke-gradient-2)` | `#885DF2` |\n| `accent-focus` | `var(--stroke-accent-focus)` | `#6785FB` |\n| `error-alpha` | `var(--stroke-error-alpha)` | `#AE2F2F73` |\n| `control-disable-primary` | `var(--stroke-control-disable-primary)` | `#848E9C` |\n\n### textColors\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `warning-icon` | `var(--text-warning-icon)` | `#EEC840` |\n| `green-1` | `var(--text-visual-green-1)` | `#059669` |\n| `green-2` | `var(--text-visual-green-2)` | `#0D6E72` |\n| `green-3` | `var(--text-visual-green-3)` | `#065F46` |\n| `brown-1` | `var(--text-visual-brown-1)` | `#D36817` |\n| `brown-2` | `var(--text-visual-brown-2)` | `#B45309` |\n| `violet-1` | `var(--text-visual-violet-1)` | `#7C3AED` |\n| `violet-2` | `var(--text-visual-violet-2)` | `#3730B7` |\n| `control-permanent` | `var(--text-control-permanent)` | `#FCFCFC` |\n| `control-inverted` | `var(--text-control-inverted)` | `#FCFCFC` |\n| `control-disable-primary` | `var(--text-control-disable-primary)` | `#848E9C` |\n| `control-disable-secondary` | `var(--text-control-disable-secondary)` | `#DCE0E8` |\n| `control-accent-hover` | `var(--text-control-accent-hover)` | `#5976E9` |\n| `control-accent-active` | `var(--text-control-accent-active)` | `#6785FB` |\n\n### backgroundsColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `layer-0` | `var(--bg-layer-0)` | `#FCFCFC` |\n| `layer-1` | `var(--bg-layer-1)` | `#E0E6F0` |\n| `layer-2` | `var(--bg-layer-2)` | `#EEF1F7` |\n| `layer-3` | `var(--bg-layer-3)` | `#FCFCFC` |\n| `layer-4` | `var(--bg-layer-4)` | `#D1DBEA` |\n| `accent-primary-alpha` | `var(--bg-accent-primary-alpha)` | `#7DA4FF26` |\n| `accent-secondary-alpha` | `var(--bg-accent-secondary-alpha)` | `#37BABC2E` |\n| `accent-tertiary-alpha` | `var(--bg-accent-tertiary-alpha)` | `#A972FF2E` |\n| `accent-primary` | `var(--bg-accent-primary)` | `#5C8DEA` |\n| `accent-secondary` | `var(--bg-accent-secondary)` | `#37BABC` |\n| `red-400` | `var(--bg-red-400)` | `#F76464` |\n| `controls-accent-primary` | `var(--controls-bg-accent-primary)` | `#124ACE` |\n| `controls-accent-primary-hover` | `var(--controls-bg-accent-primary-hover)` | `#2656D9` |\n| `controls-accent-primary-active` | `var(--controls-bg-accent-primary-active)` | `#3664E2` |\n| `controls-accent-primary-alpha-active` | `var(--controls-bg-accent-primary-alpha-active)` | `#7DA4FF5C` |\n| `controls-accent-secondary-alpha-active` | `var(--controls-bg-accent-secondary-alpha-active)` | `#37BABC5C` |\n| `controls-accent-tertiary-alpha-active` | `var(--controls-bg-accent-tertiary-alpha-active)` | `#A972FF5C` |\n| `controls-error` | `var(--controls-bg-error)` | `#AE2F2F` |\n| `controls-error-hover` | `var(--controls-bg-error-hover)` | `#BF3939` |\n| `controls-error-active` | `var(--controls-bg-error-active)` | `#CC4545` |\n| `controls-error-alpha-active` | `var(--controls-bg-error-alpha-active)` | `#F764645C` |\n| `controls-disable-accent` | `var(--controls-bg-disable-accent)` | `#7C8293` |\n| `controls-disable` | `var(--controls-bg-disable)` | `#D1DBEA` |\n| `controls-neutral-hover` | `var(--controls-bg-neutral-hover)` | `#D1DBEA` |\n| `controls-neutral-active` | `var(--controls-bg-neutral-active)` | `#9FA6BD` |\n| `controls-accent-success-alpha-hover` | `var(--controls-bg-accent-success-alpha-hover)` | `#37BABC2E` |\n| `controls-accent-success-alpha-active` | `var(--controls-bg-accent-success-alpha-active)` | `#37BABC5C` |\n| `controls-enable-primary` | `var(--controls-enable-primary)` | `#FCFCFC` |\n\n### borderColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-primary` | `var(--stroke-accent-primary)` | `#124ACE` |\n| `accent-secondary` | `var(--stroke-accent-secondary)` | `#007274` |\n| `controls-accent` | `var(--controls-bg-accent)` | `#5C8DEA` |\n| `red-900` | `var(--red-900)` | `#402027` |\n\n### textColorsToRemove\n| Tailwind class suffix | CSS variable | Default value |\n|---|---|---|\n| `accent-primary` | `var(--text-accent-primary)` | `#7DA4FF` |\n| `accent-secondary` | `var(--text-accent-secondary)` | `#37BABC` |\n| `accent-tertiary` | `var(--text-accent-tertiary)` | `#A972FF` |\n| `controls-permanent` | `var(--controls-text-permanent)` | `#FCFCFC` |\n| `controls-accent-disable` | `var(--controls-text-accent-disable)` | `#D1DBEA` |\n| `controls-primary-disable` | `var(--controls-text-primary-disable)` | `#696E7C` |\n| `controls-secondary-disable` | `var(--controls-text-secondary-disable)` | `#9FA6BD` |\n| `controls-neutral` | `var(--controls-text-neutral)` | `#161B2D` |\n| `controls-accent-primary-hover` | `var(--controls-text-accent-primary-hover)` | `#3664E2` |\n| `controls-accent-primary-active` | `var(--controls-text-accent-primary-active)` | `#7DA4FF` |",
|
|
25
25
|
"components": [
|
|
26
26
|
{
|