@epam/ai-dial-ui-kit 0.10.0-dev.36 → 0.10.0-dev.43

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.
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-BJdrse-M.cjs"),o=require("./editor-Ba3vCFHk.cjs"),u=require("@monaco-editor/react"),c={[o.EditorThemes.dark]:{base:"vs-dark",inherit:!1,rules:[{token:"string.key.json",foreground:"#37BABC"},{token:"string.value.json",foreground:"#5C8DEA"},{token:"number",foreground:"#D97C27"},{token:"keyword.json",foreground:"#F4CE46"},{token:"delimiter",foreground:"##EEF1F7"},{token:"delimiter.bracket.json",foreground:"#A972FF"},{token:"delimiter.parenthesis",foreground:"#A972FF"}],colors:{"editor.foreground":"#F76464","editor.background":"#161B2D","editorCursor.foreground":"##EEF1F7","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}},[o.EditorThemes.light]:{base:"vs",inherit:!1,rules:[{token:"string.key.json",foreground:"#009D9F"},{token:"string.value.json",foreground:"#2764D9"},{token:"number",foreground:"#B25500"},{token:"keyword.json",foreground:"#3F3D25"},{token:"delimiter",foreground:"#161B2D"},{token:"delimiter.bracket.json",foreground:"#7E39EC"},{token:"delimiter.parenthesis",foreground:"#7E39EC"}],colors:{"editor.foreground":"#AE2F2F","editor.background":"##EEF1F7","editorCursor.foreground":"#161B2D","editor.selectionBackground":"#5C8DEA2B","editorLineNumber.foreground":"#242C42","scrollbarSlider.background":"#242C42","scrollbarSlider.hoverBackground":"#242C42","scrollbarSlider.activeBackground":"#242C42"}}},g=({value:t,onChange:n,onValidateJSON:i,options:s,currentTheme:e,themesConfig:d=c})=>{function a(r){r?.editor?.defineTheme(e,d[e]),r.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,enableSchemaRequest:!1,schemas:[{uri:"http://custom-schema/object-required.json",fileMatch:["*"],schema:{type:"object",description:"Top-level value must be an object",additionalProperties:!0}}]})}return l.jsxRuntimeExports.jsx(u.Editor,{beforeMount:a,height:"100%",defaultLanguage:"json",value:t,onChange:n,theme:e,onValidate:i,options:{minimap:{enabled:!1},formatOnType:!0,formatOnPaste:!0,selectOnLineNumbers:!1,automaticLayout:!0,scrollBeyondLastLine:!1,wordWrap:"on",smoothScrolling:!0,overviewRulerLanes:0,scrollbar:{horizontal:"hidden",verticalScrollbarSize:4,verticalSliderSize:4},...s??{}}})};exports.DialJsonEditor=g;
@@ -0,0 +1,111 @@
1
+ import { j as l } from "./index-_IhGoLVm.js";
2
+ import { E as o } from "./editor-Cu1dRT39.js";
3
+ import { Editor as u } from "@monaco-editor/react";
4
+ const c = {
5
+ [o.dark]: {
6
+ base: "vs-dark",
7
+ inherit: !1,
8
+ rules: [
9
+ { token: "string.key.json", foreground: "#37BABC" },
10
+ { token: "string.value.json", foreground: "#5C8DEA" },
11
+ { token: "number", foreground: "#D97C27" },
12
+ { token: "keyword.json", foreground: "#F4CE46" },
13
+ { token: "delimiter", foreground: "##EEF1F7" },
14
+ { token: "delimiter.bracket.json", foreground: "#A972FF" },
15
+ { token: "delimiter.parenthesis", foreground: "#A972FF" }
16
+ ],
17
+ colors: {
18
+ "editor.foreground": "#F76464",
19
+ "editor.background": "#161B2D",
20
+ "editorCursor.foreground": "##EEF1F7",
21
+ "editor.selectionBackground": "#5C8DEA2B",
22
+ "editorLineNumber.foreground": "#242C42",
23
+ "scrollbarSlider.background": "#242C42",
24
+ "scrollbarSlider.hoverBackground": "#242C42",
25
+ "scrollbarSlider.activeBackground": "#242C42"
26
+ }
27
+ },
28
+ [o.light]: {
29
+ base: "vs",
30
+ inherit: !1,
31
+ rules: [
32
+ { token: "string.key.json", foreground: "#009D9F" },
33
+ { token: "string.value.json", foreground: "#2764D9" },
34
+ { token: "number", foreground: "#B25500" },
35
+ { token: "keyword.json", foreground: "#3F3D25" },
36
+ { token: "delimiter", foreground: "#161B2D" },
37
+ { token: "delimiter.bracket.json", foreground: "#7E39EC" },
38
+ { token: "delimiter.parenthesis", foreground: "#7E39EC" }
39
+ ],
40
+ colors: {
41
+ "editor.foreground": "#AE2F2F",
42
+ "editor.background": "##EEF1F7",
43
+ "editorCursor.foreground": "#161B2D",
44
+ "editor.selectionBackground": "#5C8DEA2B",
45
+ "editorLineNumber.foreground": "#242C42",
46
+ "scrollbarSlider.background": "#242C42",
47
+ "scrollbarSlider.hoverBackground": "#242C42",
48
+ "scrollbarSlider.activeBackground": "#242C42"
49
+ }
50
+ }
51
+ }, m = ({
52
+ value: n,
53
+ onChange: t,
54
+ onValidateJSON: i,
55
+ options: s,
56
+ currentTheme: e,
57
+ themesConfig: d = c
58
+ }) => {
59
+ function a(r) {
60
+ r?.editor?.defineTheme(
61
+ e,
62
+ d[e]
63
+ ), r.languages.json.jsonDefaults.setDiagnosticsOptions({
64
+ validate: !0,
65
+ enableSchemaRequest: !1,
66
+ schemas: [
67
+ {
68
+ uri: "http://custom-schema/object-required.json",
69
+ fileMatch: ["*"],
70
+ schema: {
71
+ type: "object",
72
+ description: "Top-level value must be an object",
73
+ additionalProperties: !0
74
+ }
75
+ }
76
+ ]
77
+ });
78
+ }
79
+ return /* @__PURE__ */ l.jsx(
80
+ u,
81
+ {
82
+ beforeMount: a,
83
+ height: "100%",
84
+ defaultLanguage: "json",
85
+ value: n,
86
+ onChange: t,
87
+ theme: e,
88
+ onValidate: i,
89
+ options: {
90
+ minimap: { enabled: !1 },
91
+ formatOnType: !0,
92
+ formatOnPaste: !0,
93
+ selectOnLineNumbers: !1,
94
+ automaticLayout: !0,
95
+ scrollBeyondLastLine: !1,
96
+ wordWrap: "on",
97
+ smoothScrolling: !0,
98
+ overviewRulerLanes: 0,
99
+ scrollbar: {
100
+ horizontal: "hidden",
101
+ verticalScrollbarSize: 4,
102
+ verticalSliderSize: 4
103
+ },
104
+ ...s ?? {}
105
+ }
106
+ }
107
+ );
108
+ };
109
+ export {
110
+ m as DialJsonEditor
111
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BJdrse-M.cjs"),a=require("./editor-Ba3vCFHk.cjs"),u=require("@uiw/react-md-editor"),c=({value:r,onChange:t,height:o=300,preview:i="edit",theme:d=a.EditorThemes.dark,className:n})=>e.jsxRuntimeExports.jsx("div",{"data-color-mode":d,className:n,children:e.jsxRuntimeExports.jsx(u,{value:r,onChange:s=>t?.(s||""),height:o,preview:i})});exports.DialMarkdownEditor=c;
@@ -0,0 +1,22 @@
1
+ import { j as o } from "./index-_IhGoLVm.js";
2
+ import { E as s } from "./editor-Cu1dRT39.js";
3
+ import n from "@uiw/react-md-editor";
4
+ const j = ({
5
+ value: r,
6
+ onChange: t,
7
+ height: i = 300,
8
+ preview: d = "edit",
9
+ theme: e = s.dark,
10
+ className: m
11
+ }) => /* @__PURE__ */ o.jsx("div", { "data-color-mode": e, className: m, children: /* @__PURE__ */ o.jsx(
12
+ n,
13
+ {
14
+ value: r,
15
+ onChange: (a) => t?.(a || ""),
16
+ height: i,
17
+ preview: d
18
+ }
19
+ ) });
20
+ export {
21
+ j as DialMarkdownEditor
22
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.10.0-dev.36",
3
- "generatedAt": "2026-05-14T05:25:25.890Z",
2
+ "version": "0.10.0-dev.43",
3
+ "generatedAt": "2026-05-15T09:14:32.250Z",
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",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  {
111
111
  "name": "DialAlert",
112
- "category": "Feedback",
112
+ "category": "Elements",
113
113
  "description": "A contextual feedback component for displaying important messages.\naliases: Notification|StatusBanner\n\nRenders a colored container with an icon, message text, and an optional\nclose button.",
114
114
  "props": [
115
115
  {
@@ -119,6 +119,12 @@
119
119
  "defaultValue": "AlertVariant.Info",
120
120
  "description": "Defines the visual style and icon of the alert"
121
121
  },
122
+ {
123
+ "name": "title",
124
+ "type": "ReactNode",
125
+ "required": false,
126
+ "description": "Optional heading displayed above the message in semibold"
127
+ },
122
128
  {
123
129
  "name": "message",
124
130
  "type": "ReactNode",
@@ -154,7 +160,7 @@
154
160
  }
155
161
  ],
156
162
  "examples": [
157
- "<DialAlert\n variant={AlertVariant.Info}\n message=\"This is an info alert.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Success}\n message=\"Changes saved successfully.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Error}\n closable\n message=\"Something went wrong.\"\n onClose={(e) => console.log('closed', e)}\n/>\n\n<DialAlert\n variant={AlertVariant.Warning}\n message=\"Custom alert\"\n aria-live=\"polite\"\n id=\"warning-alert\"\n/>"
163
+ "<DialAlert\n variant={AlertVariant.Info}\n message=\"This is an info alert.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Success}\n title=\"Saved\"\n message=\"Changes saved successfully.\"\n/>\n\n<DialAlert\n variant={AlertVariant.Error}\n closable\n message=\"Something went wrong.\"\n onClose={(e) => console.log('closed', e)}\n/>\n\n<DialAlert\n variant={AlertVariant.Loading}\n title=\"Processing\"\n message=\"Please wait...\"\n/>"
158
164
  ],
159
165
  "sourceFile": "components/Alert/Alert.tsx"
160
166
  },
@@ -3825,6 +3831,10 @@
3825
3831
  {
3826
3832
  "name": "Error",
3827
3833
  "value": "'error'"
3834
+ },
3835
+ {
3836
+ "name": "Loading",
3837
+ "value": "'loading'"
3828
3838
  }
3829
3839
  ],
3830
3840
  "sourceFile": "types/alert.ts"