@epam/ai-dial-ui-kit 0.14.0-dev.40 → 0.14.0-dev.44
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-B_oow9gn.cjs +1 -0
- package/dist/{DateCellRenderer-p6k-mVZt.cjs → DateCellRenderer-CS8ZbiFh.cjs} +5 -5
- package/dist/JsonEditor-BlaSMX26.cjs +1 -0
- package/dist/{MarkdownEditor-CBH7ILah.cjs → MarkdownEditor-5kljDPcm.cjs} +1 -1
- package/dist/{MarkdownEditor-CMRC_XsQ.cjs → MarkdownEditor-C0_gU7Fi.cjs} +1 -1
- package/dist/MarkdownEditorContainer-BqTGQArV.cjs +1 -0
- package/dist/components/Analytics/BarGroup/BarGroup.js +60 -58
- package/dist/components/Grid/constants.js +2 -2
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- package/dist/components/New/Dropdown/Dropdown.js +163 -152
- package/dist/components/New/Dropdown/DropdownSubMenuItem.js +75 -55
- package/dist/components/New/InteractiveTooltip/InteractiveTooltip.js +102 -0
- package/dist/components/New/InteractiveTooltip/constants.js +6 -0
- package/dist/components/New/Select/Select.js +178 -167
- package/dist/components/New/Select/SelectSubMenuItem.js +84 -54
- package/dist/components-manifest.json +87 -3
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +65 -63
- package/dist/editors.cjs +1 -1
- package/dist/file-manager.cjs +1 -1
- package/dist/grid.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/lazy-B1eG0EeX.cjs +1 -0
- package/dist/src/components/Analytics/BarGroup/BarGroup.d.ts +9 -2
- package/dist/src/components/New/InteractiveTooltip/InteractiveTooltip.d.ts +74 -0
- package/dist/src/components/New/InteractiveTooltip/constants.d.ts +26 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/models/dropdown.d.ts +23 -0
- package/dist/src/models/select.d.ts +24 -0
- package/dist/src/utils/sub-menu-floating.d.ts +1 -0
- package/dist/{use-file-manager-tabs-CIQjiyK-.cjs → use-file-manager-tabs-D0RFLbl1.cjs} +1 -1
- package/dist/utils/sub-menu-floating.js +45 -38
- package/package.json +1 -1
- package/dist/DateCellRenderer-DNPEX0I7.cjs +0 -1
- package/dist/JsonEditor-BZCyPc2D.cjs +0 -1
- package/dist/MarkdownEditorContainer-B_6-Gd-T.cjs +0 -1
- package/dist/editor-BKQqPhwX.cjs +0 -1
- package/dist/lazy-CJ-0Pjkj.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),o=require("./lazy-B1eG0EeX.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:n,onChange:t,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.jsx(u.Editor,{beforeMount:a,height:"100%",defaultLanguage:"json",value:n,onChange:t,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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@uiw/react-md-editor"),m=require("./lazy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@uiw/react-md-editor"),m=require("./lazy-B1eG0EeX.cjs"),u=require("./merge-classes-Dipy1Ih1.cjs"),x=({value:t,onChange:s,height:o=300,preview:i="edit",theme:a=m.EditorThemes.dark,className:n,placeholder:r})=>{const d=r!==void 0&&!t;return e.jsxs("div",{"data-color-mode":a,className:u.mergeClasses("relative",n),children:[e.jsx(c,{value:t,onChange:l=>s?.(l||""),height:o,preview:i}),d&&e.jsx("div",{className:"pointer-events-none absolute left-0 top-8 px-2 dial-small-text text-secondary opacity-40",children:r})]})};exports.DialMarkdownEditor=x;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("react"),e=require("@uiw/react-md-editor"),C=require("./lazy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),c=require("react"),e=require("@uiw/react-md-editor"),C=require("./lazy-B1eG0EeX.cjs"),O=require("./merge-classes-Dipy1Ih1.cjs"),t=require("@tabler/icons-react"),k=require("./icon-DhjrDQ8I.cjs"),L=require("./icon-CrGVkVpG.cjs"),M=L.DIAL_ICON_SIZE.SM,i={size:M,stroke:k.DIAL_KIT_ICON_STROKE},n=(s,r)=>({...s,icon:r}),v=()=>[n(e.bold,o.jsx(t.IconBold,{...i})),n(e.italic,o.jsx(t.IconItalic,{...i})),n(e.strikethrough,o.jsx(t.IconStrikethrough,{...i})),e.divider,e.group([e.heading1,e.heading2,e.heading3],{name:"heading",groupName:"heading",icon:o.jsx(t.IconTextSize,{...i}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),e.divider,n(e.unorderedListCommand,o.jsx(t.IconList,{...i})),n(e.orderedListCommand,o.jsx(t.IconListNumbers,{...i})),e.divider,n(e.quote,o.jsx(t.IconQuote,{...i})),n(e.link,o.jsx(t.IconLink,{...i})),n(e.code,o.jsx(t.IconCode,{...i})),e.divider,n(e.table,o.jsx(t.IconTable,{...i}))],E=()=>[n(e.codeEdit,o.jsx(t.IconPencil,{...i})),n(e.codeLive,o.jsx(t.IconLayoutColumns,{...i})),n(e.codePreview,o.jsx(t.IconEye,{...i})),e.divider,n(e.fullscreen,o.jsx(t.IconMaximize,{...i}))],T=({value:s,onChange:r,height:d=300,theme:a=C.EditorThemes.light,className:l,placeholder:m,defaultPreview:u="edit",id:I,ariaLabel:x})=>{const g=c.useMemo(()=>v(),[]),j=c.useMemo(()=>E(),[]);return o.jsx("div",{"data-color-mode":a,className:O.mergeClasses("dial-kit-markdown-editor",l),children:o.jsx(e,{value:s,onChange:h=>r?.(h||""),height:d,preview:u,commands:g,extraCommands:j,textareaProps:{placeholder:m,id:I,"aria-label":x}})})};exports.MarkdownEditor=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),m=require("./Switch-CUKClcEz.cjs"),E=require("./lazy-B1eG0EeX.cjs"),N=require("./MarkdownEditor-5kljDPcm.cjs"),b=({value:r,onChangeValue:l,label:i,headerContent:a,switcherLabel:d,height:c=300,theme:u=E.EditorThemes.dark,onValidateJSON:x,preview:j="edit"})=>{const w=n.useId(),[t,C]=n.useState(!1),[f,p]=n.useState(null);n.useEffect(()=>{t&&typeof window<"u"&&Promise.resolve().then(()=>require("./JsonEditor-BlaSMX26.cjs")).then(s=>{p(()=>s.DialJsonEditor)})},[t]);const h=n.useCallback(s=>{l?.(s)},[l]),S=n.useCallback(s=>{x?.(s)},[x]),o=!!d;return e.jsx("div",{className:"size-full flex flex-col",children:e.jsx("div",{className:"flex flex-col gap-8",children:e.jsxs("div",{children:[(i||a||o)&&e.jsxs("div",{className:"flex justify-between items-center mb-2",children:[i&&e.jsx(m.DialLabel,{label:i}),e.jsxs("div",{className:"flex items-center gap-2 flex-1 justify-end",children:[a,o&&e.jsx("label",{className:"flex items-center gap-2 cursor-pointer",children:e.jsx(m.DialSwitch,{isOn:t,label:d,switchId:w,onChange:s=>C(s)})})]})]}),o&&t?e.jsx("div",{className:"border border-primary rounded",style:{height:`${c}px`},children:f&&e.jsx(f,{value:r,onChange:h,onValidateJSON:S,currentTheme:u})}):e.jsx(N.DialMarkdownEditor,{value:r,onChange:h,height:c,preview:j,theme:u})]})})})};exports.DialMarkdownEditorContainer=b;
|
|
@@ -1,37 +1,41 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Fragment as
|
|
3
|
-
import { DialAccordion as
|
|
1
|
+
import { jsx as t, jsxs as f, Fragment as J } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as Q } from "react";
|
|
3
|
+
import { DialAccordion as R } from "../../Accordion/Accordion.js";
|
|
4
4
|
import { DialAnalyticsBar as b } from "../Bar/Bar.js";
|
|
5
|
-
import { DialLoader as
|
|
5
|
+
import { DialLoader as U } from "../../Loader/Loader.js";
|
|
6
6
|
import { DialTooltip as g } from "../../Tooltip/Tooltip.js";
|
|
7
7
|
import { mergeClasses as a } from "../../../utils/merge-classes.js";
|
|
8
|
-
const
|
|
9
|
-
title:
|
|
10
|
-
titleTooltip:
|
|
11
|
-
description:
|
|
12
|
-
data:
|
|
13
|
-
compareData:
|
|
8
|
+
const k = ({
|
|
9
|
+
title: x,
|
|
10
|
+
titleTooltip: h,
|
|
11
|
+
description: S,
|
|
12
|
+
data: i,
|
|
13
|
+
compareData: r,
|
|
14
14
|
compareLabels: m,
|
|
15
|
-
maxValue:
|
|
16
|
-
colorMap:
|
|
17
|
-
defaultExpanded:
|
|
15
|
+
maxValue: p,
|
|
16
|
+
colorMap: u,
|
|
17
|
+
defaultExpanded: E = !0,
|
|
18
18
|
nonCollapsible: G,
|
|
19
19
|
isLoading: K,
|
|
20
|
-
onBarClick:
|
|
21
|
-
inline:
|
|
22
|
-
barTitleClassName:
|
|
20
|
+
onBarClick: o,
|
|
21
|
+
inline: c,
|
|
22
|
+
barTitleClassName: N,
|
|
23
23
|
barValueClassName: P,
|
|
24
|
-
barClassName:
|
|
24
|
+
barClassName: v,
|
|
25
25
|
barDescriptions: C,
|
|
26
26
|
className: T
|
|
27
27
|
}) => {
|
|
28
|
-
const W = Object.entries(
|
|
28
|
+
const W = Object.entries(i), q = c ? a("text-secondary", N) : N, j = m ? "dial-tiny-text text-secondary" : void 0, z = h ? /* @__PURE__ */ t(g, { tooltip: h, children: x }) : x, H = r ? [.../* @__PURE__ */ new Set([...Object.keys(i), ...Object.keys(r)])] : [], y = "cursor-pointer rounded-sm text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-accent-primary", F = "group flex flex-col gap-1.5", I = a(
|
|
29
|
+
"flex flex-col gap-1.5 pl-2",
|
|
30
|
+
o && "group-hover:bg-accent-primary-alpha group-focus-visible:bg-accent-primary-alpha",
|
|
31
|
+
v
|
|
32
|
+
);
|
|
29
33
|
return /* @__PURE__ */ t(
|
|
30
|
-
|
|
34
|
+
R,
|
|
31
35
|
{
|
|
32
36
|
title: z,
|
|
33
|
-
description:
|
|
34
|
-
defaultExpanded:
|
|
37
|
+
description: S,
|
|
38
|
+
defaultExpanded: E,
|
|
35
39
|
nonCollapsible: G,
|
|
36
40
|
className: T,
|
|
37
41
|
children: /* @__PURE__ */ t(
|
|
@@ -39,11 +43,11 @@ const V = ({
|
|
|
39
43
|
{
|
|
40
44
|
className: a(
|
|
41
45
|
"flex flex-col",
|
|
42
|
-
|
|
46
|
+
r ? "gap-4" : c ? "gap-2" : "gap-3"
|
|
43
47
|
),
|
|
44
|
-
children: K ? /* @__PURE__ */ t(
|
|
45
|
-
const
|
|
46
|
-
/* @__PURE__ */
|
|
48
|
+
children: K ? /* @__PURE__ */ t(U, { fullWidth: !1, className: "self-center" }) : r ? H.map((e) => {
|
|
49
|
+
const l = e in i ? i[e] : null, n = e in r ? r[e] : null, s = typeof l == "number" && typeof n == "number" ? parseFloat((n - l).toFixed(3)) : null, L = s != null && s !== 0, A = L && s > 0, D = L ? A ? `+${s}` : String(s) : null, O = C?.[e], $ = /* @__PURE__ */ t("span", { className: "dial-small-text text-secondary", children: e }), w = /* @__PURE__ */ f(J, { children: [
|
|
50
|
+
/* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
|
|
47
51
|
O ? /* @__PURE__ */ t(g, { tooltip: O, children: $ }) : $,
|
|
48
52
|
D != null && /* @__PURE__ */ t(
|
|
49
53
|
"span",
|
|
@@ -56,17 +60,16 @@ const V = ({
|
|
|
56
60
|
}
|
|
57
61
|
)
|
|
58
62
|
] }),
|
|
59
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ f("div", { className: I, children: [
|
|
60
64
|
/* @__PURE__ */ t(
|
|
61
65
|
b,
|
|
62
66
|
{
|
|
63
67
|
title: m?.[0],
|
|
64
|
-
value:
|
|
65
|
-
maxValue:
|
|
66
|
-
colorMap:
|
|
67
|
-
inline:
|
|
68
|
+
value: l,
|
|
69
|
+
maxValue: p,
|
|
70
|
+
colorMap: u,
|
|
71
|
+
inline: c,
|
|
68
72
|
titleClassName: j,
|
|
69
|
-
className: u,
|
|
70
73
|
ariaLabel: e
|
|
71
74
|
}
|
|
72
75
|
),
|
|
@@ -74,61 +77,60 @@ const V = ({
|
|
|
74
77
|
b,
|
|
75
78
|
{
|
|
76
79
|
title: m?.[1],
|
|
77
|
-
value:
|
|
78
|
-
maxValue:
|
|
79
|
-
colorMap:
|
|
80
|
-
inline:
|
|
80
|
+
value: n,
|
|
81
|
+
maxValue: p,
|
|
82
|
+
colorMap: u,
|
|
83
|
+
inline: c,
|
|
81
84
|
titleClassName: j,
|
|
82
|
-
className: u,
|
|
83
85
|
ariaLabel: `${e} compare`
|
|
84
86
|
}
|
|
85
87
|
)
|
|
86
88
|
] })
|
|
87
89
|
] });
|
|
88
|
-
return
|
|
90
|
+
return o ? /* @__PURE__ */ t(
|
|
89
91
|
"button",
|
|
90
92
|
{
|
|
91
93
|
type: "button",
|
|
92
|
-
onClick: () =>
|
|
94
|
+
onClick: () => o(e, l),
|
|
93
95
|
className: a(
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
F,
|
|
97
|
+
y
|
|
96
98
|
),
|
|
97
99
|
children: w
|
|
98
100
|
},
|
|
99
101
|
e
|
|
100
|
-
) : /* @__PURE__ */ t("div", { className:
|
|
101
|
-
}) : W.map(([e,
|
|
102
|
-
const
|
|
102
|
+
) : /* @__PURE__ */ t("div", { className: F, children: w }, e);
|
|
103
|
+
}) : W.map(([e, l]) => {
|
|
104
|
+
const n = /* @__PURE__ */ t(
|
|
103
105
|
b,
|
|
104
106
|
{
|
|
105
107
|
title: e,
|
|
106
|
-
value:
|
|
107
|
-
maxValue:
|
|
108
|
-
colorMap:
|
|
109
|
-
inline:
|
|
108
|
+
value: l,
|
|
109
|
+
maxValue: p,
|
|
110
|
+
colorMap: u,
|
|
111
|
+
inline: c,
|
|
110
112
|
titleClassName: q,
|
|
111
113
|
valueClassName: P,
|
|
112
|
-
className:
|
|
114
|
+
className: v
|
|
113
115
|
}
|
|
114
|
-
),
|
|
116
|
+
), d = o ? /* @__PURE__ */ t(
|
|
115
117
|
"button",
|
|
116
118
|
{
|
|
117
119
|
type: "button",
|
|
118
|
-
onClick: () =>
|
|
119
|
-
className:
|
|
120
|
-
children:
|
|
120
|
+
onClick: () => o(e, l),
|
|
121
|
+
className: y,
|
|
122
|
+
children: n
|
|
121
123
|
}
|
|
122
|
-
) :
|
|
123
|
-
return
|
|
124
|
+
) : n, s = C?.[e];
|
|
125
|
+
return s ? /* @__PURE__ */ t(
|
|
124
126
|
g,
|
|
125
127
|
{
|
|
126
|
-
tooltip:
|
|
128
|
+
tooltip: s,
|
|
127
129
|
triggerClassName: "flex flex-col",
|
|
128
|
-
children:
|
|
130
|
+
children: d
|
|
129
131
|
},
|
|
130
132
|
e
|
|
131
|
-
) : /* @__PURE__ */ t(
|
|
133
|
+
) : /* @__PURE__ */ t(Q, { children: d }, e);
|
|
132
134
|
})
|
|
133
135
|
}
|
|
134
136
|
)
|
|
@@ -136,5 +138,5 @@ const V = ({
|
|
|
136
138
|
);
|
|
137
139
|
};
|
|
138
140
|
export {
|
|
139
|
-
|
|
141
|
+
k as DialAnalyticsBarGroup
|
|
140
142
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const o = "h-full w-full", e = ".ag-checkbox-input", t = {
|
|
2
2
|
accentColor: "var(--bg-control-accent, var(--bg-accent-primary, #5C8DEA))",
|
|
3
|
-
backgroundColor: "var(--bg-layer-
|
|
4
|
-
oddRowBackgroundColor: "var(--bg-layer-
|
|
3
|
+
backgroundColor: "var(--bg-layer-3, #FCFCFC)",
|
|
4
|
+
oddRowBackgroundColor: "var(--bg-layer-2, #EEF1F7)",
|
|
5
5
|
// The row tint has to stay translucent: the row it paints carries body text
|
|
6
6
|
// and a checkbox filled with `accentColor`, so an opaque accent hides both.
|
|
7
7
|
// `--bg-accent-primary-alpha` is the tint every other 1.0 control hovers
|
|
@@ -1,28 +1,26 @@
|
|
|
1
1
|
import { jsx as e, jsxs as r } from "react/jsx-runtime";
|
|
2
2
|
import { useId as g, useState as x, useEffect as J, useCallback as u } from "react";
|
|
3
|
-
import "
|
|
4
|
-
import { EditorThemes as
|
|
5
|
-
import "@monaco-editor/react";
|
|
6
|
-
import { DialSwitch as b } from "../Switch/Switch.js";
|
|
3
|
+
import { DialSwitch as S } from "../Switch/Switch.js";
|
|
4
|
+
import { EditorThemes as b } from "../../types/editor.js";
|
|
7
5
|
import { DialMarkdownEditor as v } from "./MarkdownEditor.js";
|
|
8
6
|
import { DialLabel as y } from "../Label/Label.js";
|
|
9
|
-
const
|
|
7
|
+
const z = ({
|
|
10
8
|
value: s,
|
|
11
9
|
onChangeValue: l,
|
|
12
|
-
label:
|
|
10
|
+
label: i,
|
|
13
11
|
headerContent: d,
|
|
14
12
|
switcherLabel: a,
|
|
15
13
|
height: c = 300,
|
|
16
|
-
theme: m =
|
|
14
|
+
theme: m = b.dark,
|
|
17
15
|
onValidateJSON: f,
|
|
18
16
|
preview: C = "edit"
|
|
19
17
|
}) => {
|
|
20
|
-
const N = g(), [
|
|
18
|
+
const N = g(), [n, w] = x(!1), [p, D] = x(null);
|
|
21
19
|
J(() => {
|
|
22
|
-
|
|
20
|
+
n && typeof window < "u" && import("../JsonEditor/JsonEditor.js").then((o) => {
|
|
23
21
|
D(() => o.DialJsonEditor);
|
|
24
22
|
});
|
|
25
|
-
}, [
|
|
23
|
+
}, [n]);
|
|
26
24
|
const h = u(
|
|
27
25
|
(o) => {
|
|
28
26
|
l?.(o);
|
|
@@ -33,16 +31,16 @@ const $ = ({
|
|
|
33
31
|
f?.(o);
|
|
34
32
|
},
|
|
35
33
|
[f]
|
|
36
|
-
),
|
|
34
|
+
), t = !!a;
|
|
37
35
|
return /* @__PURE__ */ e("div", { className: "size-full flex flex-col", children: /* @__PURE__ */ e("div", { className: "flex flex-col gap-8", children: /* @__PURE__ */ r("div", { children: [
|
|
38
|
-
(
|
|
39
|
-
|
|
36
|
+
(i || d || t) && /* @__PURE__ */ r("div", { className: "flex justify-between items-center mb-2", children: [
|
|
37
|
+
i && /* @__PURE__ */ e(y, { label: i }),
|
|
40
38
|
/* @__PURE__ */ r("div", { className: "flex items-center gap-2 flex-1 justify-end", children: [
|
|
41
39
|
d,
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
t && /* @__PURE__ */ e("label", { className: "flex items-center gap-2 cursor-pointer", children: /* @__PURE__ */ e(
|
|
41
|
+
S,
|
|
44
42
|
{
|
|
45
|
-
isOn:
|
|
43
|
+
isOn: n,
|
|
46
44
|
label: a,
|
|
47
45
|
switchId: N,
|
|
48
46
|
onChange: (o) => w(o)
|
|
@@ -50,7 +48,7 @@ const $ = ({
|
|
|
50
48
|
) })
|
|
51
49
|
] })
|
|
52
50
|
] }),
|
|
53
|
-
|
|
51
|
+
t && n ? /* @__PURE__ */ e(
|
|
54
52
|
"div",
|
|
55
53
|
{
|
|
56
54
|
className: "border border-primary rounded",
|
|
@@ -78,5 +76,5 @@ const $ = ({
|
|
|
78
76
|
] }) }) });
|
|
79
77
|
};
|
|
80
78
|
export {
|
|
81
|
-
|
|
79
|
+
z as DialMarkdownEditorContainer
|
|
82
80
|
};
|