@epam/ai-dial-ui-kit 0.15.0-dev.20 → 0.15.0-dev.21
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 +2 -0
- package/dist/JsonEditor-BDe6elKO.cjs +1 -0
- package/dist/{MarkdownEditor-NYMcKLJy.cjs → MarkdownEditor-C7BONfsl.cjs} +1 -1
- package/dist/{MarkdownEditor-CPzMv3lE.cjs → MarkdownEditor-FVzYMdkC.cjs} +1 -1
- package/dist/MarkdownEditorContainer-BA94ffC4.cjs +1 -0
- package/dist/components/MarkdownEditor/MarkdownEditorContainer.js +16 -18
- package/dist/components/New/Accordion/Accordion.js +71 -67
- package/dist/components-manifest.json +27 -2
- package/dist/dial-ui-kit.cjs +2 -2
- package/dist/dial-ui-kit.js +132 -130
- package/dist/editors.cjs +1 -1
- package/dist/lazy-BEsZqouS.cjs +1 -0
- package/dist/src/components/New/Accordion/Accordion.d.ts +4 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/types/accordion.d.ts +7 -0
- package/dist/types/accordion.js +4 -0
- package/package.json +1 -1
- package/dist/JsonEditor-CpSpVa0v.cjs +0 -1
- package/dist/MarkdownEditorContainer-DSL5-_hG.cjs +0 -1
- package/dist/editor-Bc9xzKuR.cjs +0 -1
- package/dist/lazy-Cy9WobJf.cjs +0 -1
package/dist/CHANGELOG.md
CHANGED
|
@@ -31,6 +31,8 @@ Versions match the git tags on the `development` branch.
|
|
|
31
31
|
|
|
32
32
|
- **`TransferQueue` (2.0)** — the floating "Importing 5 files" panel for an upload, download, import or export, moved into the kit from `@epam/ai-dial-conversation-panel`'s `ImportExportQueue` so the file manager can use it for uploads too. It is generic: `items` are `{ id, name, status, percent?, message? }` with `TransferQueueItemStatus` (`InProgress`, `Success`, `Warning`, `Failed`, `Canceled`), not the conversation-transfer job the chat library used. Each row draws the 2.0 `FileIcon` for its name, a truncating name, and a trailing status: a named spinner with a cancel control on hover or focus (only when `onCancelItem` is passed; the spinner never takes the pointer, so the control stays clickable in the same cell), a named check, a warning or error icon whose `message` is both its tooltip and its focusable accessible name — a tooltip alone renders nothing on touch — or "Canceled". The header has the caller's `title` verbatim, a failed-item count badge, and collapse (`aria-expanded`/`aria-controls`) and close controls. Collapsed while work runs, the rows give way to one aggregate `ProgressBar` whose `aria-valuetext` counts settled items rather than a percentage. Closing with work in progress or a failure unread asks for confirmation first; once every item succeeds the queue calls `onClose` by itself after `autoCloseDelay` (8000 ms by default, `0` disables), and a warned or canceled row keeps it open. The root is a polite `role="status"` region carrying `dial-kit-transfer-queue` (`DIAL_KIT_CLASS.transferQueue`); positioning is the host's. Every string has an English default in `DEFAULT_TRANSFER_QUEUE_LABELS` and takes an override through `labels`.
|
|
33
33
|
|
|
34
|
+
- **`Accordion` (2.0) — `caretPosition`** — the header always drew its caret after the title, pushed to the far edge, and a caller whose design puts it beside the title had no way to ask for that. `caretPosition` takes `AccordionCaretPosition.Start` (before the title, with a gap) or `AccordionCaretPosition.End` (the default, today's placement). A non-collapsible panel still draws no caret. Additive; nothing renders differently without it. Requested in [ai-dial-chat](https://github.com/epam/ai-dial-chat) while moving its hand-rolled disclosures onto `Accordion`.
|
|
35
|
+
|
|
34
36
|
### Fixed
|
|
35
37
|
|
|
36
38
|
- **`Select` and `Dropdown` (2.0) — rows are 2px apart, and every option list and submenu has the same vertical inset** — rows were stacked edge to edge, so a selected row's tint and a hovered neighbour's merged into one block; every option list, menu and kit-rendered submenu now stacks its rows with `gap-0.5` (the shared `overlayListClassName`). Separately, the `Dropdown` menu wraps its rows in `py-1` inside the panel's `p-1`, but the `Select` option list and the submenus of both components rendered their rows straight into the panel, so the first and last rows (and the focus ring of a keyboard-focused one) sat flush against its top and bottom edge. The `Select` option list now carries the same `py-1`, and a submenu panel of kit-rendered rows takes `py-2` — the same 8px in total. A `Dropdown` submenu drawn through `renderSubMenu` keeps the plain panel, as a `renderOverlay` body does at the top level.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),a=require("./lazy-BEsZqouS.cjs"),c=require("@monaco-editor/react");function g(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const f=g(c),b={[a.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"}},[a.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"}}},k=({value:e,onChange:o,onValidateJSON:r,options:t,currentTheme:n,themesConfig:s=b})=>{function d(i){i?.editor?.defineTheme(n,s[n]),i.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}}]})}const{Editor:l}=f;return u.jsx(l,{beforeMount:d,height:"100%",defaultLanguage:"json",value:e,onChange:o,theme:n,onValidate:r,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},...t??{}}})};exports.DialJsonEditor=k;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),O=require("@uiw/react-md-editor"),_=require("./lazy-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),j=require("react"),O=require("@uiw/react-md-editor"),_=require("./lazy-BEsZqouS.cjs"),k=require("./merge-classes-BEJXjzkx.cjs"),o=require("@tabler/icons-react"),p=require("./icon-DhjrDQ8I.cjs"),f=require("./icon-CrGVkVpG.cjs");function E(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const r in n)if(r!=="default"){const c=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(i,r,c.get?c:{enumerable:!0,get:()=>n[r]})}}return i.default=n,Object.freeze(i)}const b=E(O),L=f.DIAL_ICON_SIZE.SM,t={size:L,stroke:p.DIAL_KIT_ICON_STROKE},s=(n,i)=>({...n,icon:i}),M=()=>{const{bold:n,code:i,divider:r,group:c,heading1:a,heading2:d,heading3:u,italic:l,link:m,orderedListCommand:I,quote:x,strikethrough:g,table:h,unorderedListCommand:C}=b;return[s(n,e.jsx(o.IconBold,{...t})),s(l,e.jsx(o.IconItalic,{...t})),s(g,e.jsx(o.IconStrikethrough,{...t})),r,c([a,d,u],{name:"heading",groupName:"heading",icon:e.jsx(o.IconTextSize,{...t}),buttonProps:{"aria-label":"Text style",title:"Text style"}}),r,s(C,e.jsx(o.IconList,{...t})),s(I,e.jsx(o.IconListNumbers,{...t})),r,s(x,e.jsx(o.IconQuote,{...t})),s(m,e.jsx(o.IconLink,{...t})),s(i,e.jsx(o.IconCode,{...t})),r,s(h,e.jsx(o.IconTable,{...t}))]},S=()=>{const{codeEdit:n,codeLive:i,codePreview:r,divider:c,fullscreen:a}=b;return[s(n,e.jsx(o.IconPencil,{...t})),s(i,e.jsx(o.IconLayoutColumns,{...t})),s(r,e.jsx(o.IconEye,{...t})),c,s(a,e.jsx(o.IconMaximize,{...t}))]},T=({value:n,onChange:i,height:r=300,theme:c=_.EditorThemes.light,className:a,placeholder:d,defaultPreview:u="edit",id:l,ariaLabel:m})=>{const I=j.useMemo(()=>M(),[]),x=j.useMemo(()=>S(),[]);return e.jsx("div",{"data-color-mode":c,className:k.mergeClasses("dial-kit-markdown-editor",a),children:e.jsx(O,{value:n,onChange:g=>i?.(g||""),height:r,preview:u,commands:I,extraCommands:x,textareaProps:{placeholder:d,id:l,"aria-label":m}})})};exports.MarkdownEditor=T;
|
|
@@ -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-BEsZqouS.cjs"),u=require("./merge-classes-BEJXjzkx.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;
|
|
@@ -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-CfxMs3AZ.cjs"),E=require("./lazy-BEsZqouS.cjs"),N=require("./MarkdownEditor-FVzYMdkC.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-BDe6elKO.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,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
|
};
|
|
@@ -1,99 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IconChevronRight as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { DIAL_KIT_ICON_STROKE as
|
|
5
|
-
import { DIAL_ICON_SIZE as
|
|
6
|
-
import { resolveAccessibleName as
|
|
1
|
+
import { jsx as t, jsxs as s, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { IconChevronRight as T } from "@tabler/icons-react";
|
|
3
|
+
import { useState as k, useId as D } from "react";
|
|
4
|
+
import { DIAL_KIT_ICON_STROKE as K } from "../constants/icon.js";
|
|
5
|
+
import { DIAL_ICON_SIZE as O } from "../../../constants/icon.js";
|
|
6
|
+
import { resolveAccessibleName as R } from "../../../utils/accessible-name.js";
|
|
7
7
|
import { mergeClasses as r } from "../../../utils/merge-classes.js";
|
|
8
|
-
import { DIAL_KIT_CLASS as
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
8
|
+
import { DIAL_KIT_CLASS as $ } from "../../../constants/public-class-names.js";
|
|
9
|
+
import { AccordionCaretPosition as I } from "../../../types/accordion.js";
|
|
10
|
+
const J = ({
|
|
11
|
+
title: v,
|
|
12
|
+
description: c,
|
|
13
|
+
children: g,
|
|
14
|
+
expanded: l,
|
|
15
|
+
defaultExpanded: N = !1,
|
|
16
|
+
disabled: o,
|
|
17
|
+
nonCollapsible: n,
|
|
18
|
+
ariaLabel: b,
|
|
19
|
+
onToggle: A,
|
|
20
|
+
caretPosition: C = I.End,
|
|
21
|
+
className: S,
|
|
22
|
+
headerClassName: d,
|
|
23
|
+
contentClassName: _
|
|
22
24
|
}) => {
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
25
|
+
const m = l !== void 0, [w, E] = k(N), e = n ? !0 : m ? l : w, f = D(), a = `accordion-header-${f}`, u = `accordion-content-${f}`, L = () => {
|
|
26
|
+
if (o) return;
|
|
27
|
+
const y = !e;
|
|
28
|
+
m || E(y), A?.(y);
|
|
29
|
+
}, i = C === I.Start, x = n ? null : /* @__PURE__ */ t(
|
|
30
|
+
T,
|
|
31
|
+
{
|
|
32
|
+
size: O.SM,
|
|
33
|
+
stroke: K,
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
className: r(
|
|
36
|
+
"shrink-0 text-secondary transition-transform motion-reduce:transition-none",
|
|
37
|
+
e && "rotate-90"
|
|
38
|
+
)
|
|
39
|
+
}
|
|
40
|
+
), p = /* @__PURE__ */ s(j, { children: [
|
|
41
|
+
i && x,
|
|
42
|
+
/* @__PURE__ */ s("span", { className: "flex min-w-0 flex-col", children: [
|
|
43
|
+
/* @__PURE__ */ t("span", { className: "truncate dial-body-text text-primary", children: v }),
|
|
44
|
+
c ? /* @__PURE__ */ t("span", { className: "truncate dial-tiny-text text-secondary", children: c }) : null
|
|
31
45
|
] }),
|
|
32
|
-
!
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{
|
|
36
|
-
size: L.SM,
|
|
37
|
-
stroke: j,
|
|
38
|
-
"aria-hidden": "true",
|
|
39
|
-
className: r(
|
|
40
|
-
"shrink-0 text-secondary transition-transform motion-reduce:transition-none",
|
|
41
|
-
t && "rotate-90"
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] });
|
|
46
|
-
return /* @__PURE__ */ a(
|
|
46
|
+
!i && x
|
|
47
|
+
] }), h = i ? "justify-start gap-2" : "justify-between";
|
|
48
|
+
return /* @__PURE__ */ s(
|
|
47
49
|
"div",
|
|
48
50
|
{
|
|
49
51
|
className: r(
|
|
50
52
|
"flex flex-col gap-3 py-3 overflow-hidden bg-transparent ",
|
|
51
|
-
|
|
52
|
-
|
|
53
|
+
S,
|
|
54
|
+
$.accordion
|
|
53
55
|
),
|
|
54
56
|
children: [
|
|
55
|
-
|
|
57
|
+
n ? /* @__PURE__ */ t(
|
|
56
58
|
"div",
|
|
57
59
|
{
|
|
58
|
-
id:
|
|
60
|
+
id: a,
|
|
59
61
|
className: r(
|
|
60
|
-
"flex w-full px-4 rounded-xl items-center
|
|
61
|
-
|
|
62
|
+
"flex w-full px-4 rounded-xl items-center dial-tiny-text",
|
|
63
|
+
h,
|
|
64
|
+
d
|
|
62
65
|
),
|
|
63
|
-
children:
|
|
66
|
+
children: p
|
|
64
67
|
}
|
|
65
|
-
) : /* @__PURE__ */
|
|
68
|
+
) : /* @__PURE__ */ t(
|
|
66
69
|
"button",
|
|
67
70
|
{
|
|
68
|
-
id:
|
|
71
|
+
id: a,
|
|
69
72
|
type: "button",
|
|
70
|
-
"aria-expanded":
|
|
71
|
-
"aria-controls":
|
|
72
|
-
"aria-label":
|
|
73
|
-
disabled:
|
|
74
|
-
onClick:
|
|
73
|
+
"aria-expanded": e,
|
|
74
|
+
"aria-controls": e ? u : void 0,
|
|
75
|
+
"aria-label": R(b),
|
|
76
|
+
disabled: o,
|
|
77
|
+
onClick: L,
|
|
75
78
|
className: r(
|
|
76
|
-
"flex w-full px-4 rounded-xl items-center
|
|
77
|
-
|
|
79
|
+
"flex w-full px-4 rounded-xl items-center dial-tiny-text",
|
|
80
|
+
h,
|
|
81
|
+
o ? "cursor-not-allowed opacity-75" : (
|
|
78
82
|
// Applied only to a header that can actually be operated.
|
|
79
83
|
"cursor-pointer hover:bg-control-accent-alpha-hover focus-visible:outline focus-visible:outline-focus"
|
|
80
84
|
),
|
|
81
|
-
|
|
85
|
+
d
|
|
82
86
|
),
|
|
83
|
-
children:
|
|
87
|
+
children: p
|
|
84
88
|
}
|
|
85
89
|
),
|
|
86
|
-
|
|
90
|
+
e && /* @__PURE__ */ t(
|
|
87
91
|
"div",
|
|
88
92
|
{
|
|
89
|
-
id:
|
|
93
|
+
id: u,
|
|
90
94
|
role: "region",
|
|
91
|
-
"aria-labelledby":
|
|
95
|
+
"aria-labelledby": a,
|
|
92
96
|
className: r(
|
|
93
97
|
"px-4 dial-small-text text-primary",
|
|
94
|
-
|
|
98
|
+
_
|
|
95
99
|
),
|
|
96
|
-
children:
|
|
100
|
+
children: g
|
|
97
101
|
}
|
|
98
102
|
)
|
|
99
103
|
]
|
|
@@ -101,5 +105,5 @@ const Z = ({
|
|
|
101
105
|
);
|
|
102
106
|
};
|
|
103
107
|
export {
|
|
104
|
-
|
|
108
|
+
J as Accordion
|
|
105
109
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.15.0-dev.
|
|
3
|
-
"generatedAt": "2026-09-
|
|
2
|
+
"version": "0.15.0-dev.21",
|
|
3
|
+
"generatedAt": "2026-09-27T13:45:56.317Z",
|
|
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",
|
|
@@ -2333,6 +2333,13 @@
|
|
|
2333
2333
|
"required": false,
|
|
2334
2334
|
"description": "Fired when the header is clicked. Receives the next expanded state."
|
|
2335
2335
|
},
|
|
2336
|
+
{
|
|
2337
|
+
"name": "caretPosition",
|
|
2338
|
+
"type": "AccordionCaretPosition",
|
|
2339
|
+
"required": false,
|
|
2340
|
+
"defaultValue": "AccordionCaretPosition.End",
|
|
2341
|
+
"description": "Where the header draws its caret: before or after the title."
|
|
2342
|
+
},
|
|
2336
2343
|
{
|
|
2337
2344
|
"name": "className",
|
|
2338
2345
|
"type": "string",
|
|
@@ -10931,6 +10938,24 @@
|
|
|
10931
10938
|
],
|
|
10932
10939
|
"sourceFile": "components/New/Textarea/Textarea.tsx"
|
|
10933
10940
|
},
|
|
10941
|
+
{
|
|
10942
|
+
"name": "AccordionCaretPosition",
|
|
10943
|
+
"kind": "enum",
|
|
10944
|
+
"members": [
|
|
10945
|
+
{
|
|
10946
|
+
"name": "Start",
|
|
10947
|
+
"value": "'start'",
|
|
10948
|
+
"comment": "Before the title, at the header's leading edge."
|
|
10949
|
+
},
|
|
10950
|
+
{
|
|
10951
|
+
"name": "End",
|
|
10952
|
+
"value": "'end'",
|
|
10953
|
+
"comment": "After the title, at the header's trailing edge."
|
|
10954
|
+
}
|
|
10955
|
+
],
|
|
10956
|
+
"sourceFile": "types/accordion.ts",
|
|
10957
|
+
"description": "Where an `Accordion` header draws its caret."
|
|
10958
|
+
},
|
|
10934
10959
|
{
|
|
10935
10960
|
"name": "RadioGroupItem",
|
|
10936
10961
|
"kind": "interface",
|