@epam/ai-dial-ui-kit 0.14.0-dev.12 → 0.14.0-dev.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-ui-kit",
3
- "version": "0.14.0-dev.12",
3
+ "version": "0.14.0-dev.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",
@@ -1,75 +0,0 @@
1
- import { j as e, D as z, E as g, m as u } from "./index-BLzC7Z4I.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-CCLX8BoI.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;