@epam/ai-dial-ui-kit 0.14.0-dev.13 → 0.14.0-dev.15
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 -1
- package/dist/{JsonEditor-D1mtkska.cjs → JsonEditor-CAH5hiNi.cjs} +1 -1
- package/dist/{JsonEditor-tyUFTO3D.js → JsonEditor-DRc7un9e.js} +1 -1
- package/dist/{MarkdownEditor-xgj_5kC5.cjs → MarkdownEditor-21tIlbic.cjs} +1 -1
- package/dist/MarkdownEditor-B7pccYlb.js +69 -0
- package/dist/{MarkdownEditor-Z93ZIdbL.js → MarkdownEditor-BQyv0jqc.js} +1 -1
- package/dist/MarkdownEditor-DHoEm29d.cjs +1 -0
- package/dist/components-manifest.json +12 -6
- package/dist/dial-ui-kit.cjs.js +1 -1
- package/dist/dial-ui-kit.es.js +190 -189
- package/dist/{index-C3WPnTYF.js → index-CIDIXPOX.js} +8418 -8274
- package/dist/{index-BYbSm7ou.cjs → index-VQPGSue6.cjs} +31 -31
- package/dist/index.css +2 -2
- package/dist/migration-guides/0.14.0/shadow-token-per-step-rename.md +64 -29
- package/dist/migration-guides/README.md +1 -1
- package/dist/src/components/New/Grid/constants.d.ts +2 -0
- package/dist/src/components/New/ResizableContainer/ResizableContainer.d.ts +5 -4
- package/dist/src/components/New/constants/icon.d.ts +22 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/MarkdownEditor-5QS_Esco.js +0 -75
- package/dist/MarkdownEditor-CneT6FCo.cjs +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Icon stroke (1.5px) from the 2.0 stroke scale. Tabler renders every outline
|
|
3
|
+
* icon at `stroke={2}` unless told otherwise, so the token has to be passed
|
|
4
|
+
* explicitly — a 2.0 component that omits it draws a heavier icon than the
|
|
5
|
+
* design system asks for.
|
|
6
|
+
*
|
|
7
|
+
* It is a number rather than a Tailwind utility because an icon's weight is an
|
|
8
|
+
* SVG `stroke-width` attribute on the glyph, not a border on its box. The
|
|
9
|
+
* border half of the same scale stays on plain Tailwind widths — `border`,
|
|
10
|
+
* `border-2`, `border-4`, and `border-[0.5px]` for a table divider.
|
|
11
|
+
*
|
|
12
|
+
* Exported publicly so icons a consumer passes into a 2.0 component — a button
|
|
13
|
+
* icon, a menu item, a segmented-control segment — can match the ones the
|
|
14
|
+
* components draw themselves.
|
|
15
|
+
*
|
|
16
|
+
* Two deliberate departures inside the library: the empty-state illustrations
|
|
17
|
+
* (`NoDataContent`, the grid's no-rows overlay) use a much lighter stroke,
|
|
18
|
+
* since a 1.5px line reads as a drawing at 16px and as a fence at 100px; and
|
|
19
|
+
* the checkbox glyph uses a heavier one, because it is a control mark sized to
|
|
20
|
+
* a 14px box rather than an icon from the set.
|
|
21
|
+
*/
|
|
22
|
+
export declare const DIAL_KIT_ICON_STROKE = 1.5;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -252,5 +252,6 @@ export { DateCellRenderer } from './components/New/Grid/renderers/DateCellRender
|
|
|
252
252
|
export type { DateCellRendererProps, DateValue, } from './components/New/Grid/renderers/DateCellRenderer';
|
|
253
253
|
export { DEFAULT_DATE_FORMAT_OPTIONS, DEFAULT_LOCALE as DEFAULT_DATE_LOCALE, } from './components/New/Grid/renderers/constants';
|
|
254
254
|
export { GRID_ALIGN_RIGHT_CLASS, GRID_ROOT_CLASS, GRID_THEME_PARAMS, ROW_HEIGHT as GRID_ROW_HEIGHT, } from './components/New/Grid/constants';
|
|
255
|
+
export { DIAL_KIT_ICON_STROKE } from './components/New/constants/icon';
|
|
255
256
|
export { convertToDate } from './utils/grid-date';
|
|
256
257
|
export { baseColumnComparator, checkColDefsChanges, } from './utils/grid-comparators';
|
package/package.json
CHANGED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { j as e, D as z, E as g, m as u } from "./index-C3WPnTYF.js";
|
|
2
|
-
import { useMemo as r } from "react";
|
|
3
|
-
import h, { divider as i, group as p, heading1 as C, heading2 as E, heading3 as k, bold as L, italic as M, strikethrough as w, unorderedListCommand as b, orderedListCommand as N, quote as T, link as f, code as v, table as O, codeEdit as S, codeLive as _, codePreview as y, fullscreen as D } from "@uiw/react-md-editor";
|
|
4
|
-
import { IconTextSize as P, IconBold as A, IconItalic as R, IconStrikethrough as B, IconList as Z, IconListNumbers as q, IconQuote as F, IconLink as K, IconCode as Q, IconTable as W, IconPencil as G, IconLayoutColumns as H, IconEye as J, IconMaximize as U } from "@tabler/icons-react";
|
|
5
|
-
const o = z.SM, s = (t, n) => ({
|
|
6
|
-
...t,
|
|
7
|
-
icon: n
|
|
8
|
-
}), V = () => [
|
|
9
|
-
s(L, /* @__PURE__ */ e.jsx(A, { size: o })),
|
|
10
|
-
s(M, /* @__PURE__ */ e.jsx(R, { size: o })),
|
|
11
|
-
s(
|
|
12
|
-
w,
|
|
13
|
-
/* @__PURE__ */ e.jsx(B, { size: o })
|
|
14
|
-
),
|
|
15
|
-
i,
|
|
16
|
-
p([C, E, k], {
|
|
17
|
-
name: "heading",
|
|
18
|
-
groupName: "heading",
|
|
19
|
-
icon: /* @__PURE__ */ e.jsx(P, { size: o }),
|
|
20
|
-
buttonProps: { "aria-label": "Text style", title: "Text style" }
|
|
21
|
-
}),
|
|
22
|
-
i,
|
|
23
|
-
s(
|
|
24
|
-
b,
|
|
25
|
-
/* @__PURE__ */ e.jsx(Z, { size: o })
|
|
26
|
-
),
|
|
27
|
-
s(
|
|
28
|
-
N,
|
|
29
|
-
/* @__PURE__ */ e.jsx(q, { size: o })
|
|
30
|
-
),
|
|
31
|
-
i,
|
|
32
|
-
s(T, /* @__PURE__ */ e.jsx(F, { size: o })),
|
|
33
|
-
s(f, /* @__PURE__ */ e.jsx(K, { size: o })),
|
|
34
|
-
s(v, /* @__PURE__ */ e.jsx(Q, { size: o })),
|
|
35
|
-
i,
|
|
36
|
-
s(O, /* @__PURE__ */ e.jsx(W, { size: o }))
|
|
37
|
-
], X = () => [
|
|
38
|
-
s(S, /* @__PURE__ */ e.jsx(G, { size: o })),
|
|
39
|
-
s(_, /* @__PURE__ */ e.jsx(H, { size: o })),
|
|
40
|
-
s(y, /* @__PURE__ */ e.jsx(J, { size: o })),
|
|
41
|
-
i,
|
|
42
|
-
s(D, /* @__PURE__ */ e.jsx(U, { size: o }))
|
|
43
|
-
], se = ({
|
|
44
|
-
value: t,
|
|
45
|
-
onChange: n,
|
|
46
|
-
height: a = 300,
|
|
47
|
-
theme: d = g.light,
|
|
48
|
-
className: c,
|
|
49
|
-
placeholder: m,
|
|
50
|
-
defaultPreview: x = "edit"
|
|
51
|
-
}) => {
|
|
52
|
-
const l = r(() => V(), []), I = r(() => X(), []);
|
|
53
|
-
return /* @__PURE__ */ e.jsx(
|
|
54
|
-
"div",
|
|
55
|
-
{
|
|
56
|
-
"data-color-mode": d,
|
|
57
|
-
className: u("dial-kit-markdown-editor", c),
|
|
58
|
-
children: /* @__PURE__ */ e.jsx(
|
|
59
|
-
h,
|
|
60
|
-
{
|
|
61
|
-
value: t,
|
|
62
|
-
onChange: (j) => n?.(j || ""),
|
|
63
|
-
height: a,
|
|
64
|
-
preview: x,
|
|
65
|
-
commands: l,
|
|
66
|
-
extraCommands: I,
|
|
67
|
-
textareaProps: { placeholder: m }
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
se as MarkdownEditor
|
|
75
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-BYbSm7ou.cjs"),x=require("react"),e=require("@uiw/react-md-editor"),t=require("@tabler/icons-react"),o=s.DIAL_ICON_SIZE.SM,i=(n,r)=>({...n,icon:r}),p=()=>[i(e.bold,s.jsxRuntimeExports.jsx(t.IconBold,{size:o})),i(e.italic,s.jsxRuntimeExports.jsx(t.IconItalic,{size:o})),i(e.strikethrough,s.jsxRuntimeExports.jsx(t.IconStrikethrough,{size:o})),e.divider,e.group([e.heading1,e.heading2,e.heading3],{name:"heading",groupName:"heading",icon:s.jsxRuntimeExports.jsx(t.IconTextSize,{size:o}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),e.divider,i(e.unorderedListCommand,s.jsxRuntimeExports.jsx(t.IconList,{size:o})),i(e.orderedListCommand,s.jsxRuntimeExports.jsx(t.IconListNumbers,{size:o})),e.divider,i(e.quote,s.jsxRuntimeExports.jsx(t.IconQuote,{size:o})),i(e.link,s.jsxRuntimeExports.jsx(t.IconLink,{size:o})),i(e.code,s.jsxRuntimeExports.jsx(t.IconCode,{size:o})),e.divider,i(e.table,s.jsxRuntimeExports.jsx(t.IconTable,{size:o}))],I=()=>[i(e.codeEdit,s.jsxRuntimeExports.jsx(t.IconPencil,{size:o})),i(e.codeLive,s.jsxRuntimeExports.jsx(t.IconLayoutColumns,{size:o})),i(e.codePreview,s.jsxRuntimeExports.jsx(t.IconEye,{size:o})),e.divider,i(e.fullscreen,s.jsxRuntimeExports.jsx(t.IconMaximize,{size:o}))],R=({value:n,onChange:r,height:d=300,theme:c=s.EditorThemes.light,className:a,placeholder:m,defaultPreview:u="edit"})=>{const j=x.useMemo(()=>p(),[]),l=x.useMemo(()=>I(),[]);return s.jsxRuntimeExports.jsx("div",{"data-color-mode":c,className:s.mergeClasses("dial-kit-markdown-editor",a),children:s.jsxRuntimeExports.jsx(e,{value:n,onChange:E=>r?.(E||""),height:d,preview:u,commands:j,extraCommands:l,textareaProps:{placeholder:m}})})};exports.MarkdownEditor=R;
|