@epam/ai-dial-builder-form 1.1.15 → 1.1.17
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/index.js +11 -12
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ButtonAppearance as i, ButtonVariant as a, DIAL_ICON_SIZE as o, DIAL_KI
|
|
|
3
3
|
import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
|
|
4
4
|
import { IconArrowLeft as T, IconArrowNarrowLeft as E, IconPhoto as D, IconPlus as O, IconTrashX as ee } from "@tabler/icons-react";
|
|
5
5
|
import { Suspense as k, useCallback as A, useEffect as j, useId as M, useRef as N, useState as P } from "react";
|
|
6
|
-
|
|
6
|
+
// src/components/BuilderFormActions/BuilderFormActions.tsx
|
|
7
7
|
var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubmitDisabled: i = !1, isSubmitting: a = !1, buttonClassName: s }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(m, {
|
|
8
8
|
label: e.cancelButtonLabel,
|
|
9
9
|
onClick: t,
|
|
@@ -43,12 +43,12 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
43
43
|
header: "_header_8b0ws_4",
|
|
44
44
|
title: "_title_8b0ws_8"
|
|
45
45
|
}, z = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: c = !1, isSubmitDisabled: l = !1, isSubmitting: d = !1, styles: f }) => {
|
|
46
|
-
let { colors: p, typography: m } = f ?? {}, h = m?.fontClassName ?? "dial-h1-text", g = !!m?.fontClassName
|
|
46
|
+
let { colors: p, typography: m } = f ?? {}, h = m?.fontClassName ?? "dial-h1-text", g = !!m?.fontClassName, _ = n({
|
|
47
|
+
"--bfh-border": p?.borderColor,
|
|
48
|
+
"--bfh-font-family": g ? void 0 : m?.fontFamily
|
|
49
|
+
});
|
|
47
50
|
return /* @__PURE__ */ w("div", {
|
|
48
|
-
style:
|
|
49
|
-
"--bfh-border": p?.borderColor,
|
|
50
|
-
"--bfh-font-family": g ? void 0 : m?.fontFamily
|
|
51
|
-
}),
|
|
51
|
+
style: _,
|
|
52
52
|
className: r("flex h-16 items-center justify-between gap-6 border-t px-4 desktop:border-b desktop:border-t-0 desktop:px-8", R.header),
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ w("div", {
|
|
@@ -148,14 +148,14 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
148
148
|
footerBorder: "_footerBorder_1kidu_5",
|
|
149
149
|
sidebarBorder: "_sidebarBorder_1kidu_9"
|
|
150
150
|
}, G = ({ title: e, onBack: t, backAriaLabel: i = "Back", actions: a, leftContent: c, rightContent: l, isSaving: d = !1, labels: f, styles: p, dir: m }) => {
|
|
151
|
-
let h = M(), g = d ? f?.savingStatusLabel ?? "Saving" : ""
|
|
151
|
+
let h = M(), g = d ? f?.savingStatusLabel ?? "Saving" : "", _ = n({
|
|
152
|
+
"--el-header-border-color": p?.colors?.headerBorderColor,
|
|
153
|
+
"--el-sidebar-border-color": p?.colors?.sidebarBorderColor
|
|
154
|
+
});
|
|
152
155
|
return /* @__PURE__ */ w("div", {
|
|
153
156
|
dir: m,
|
|
154
157
|
className: "flex min-h-0 flex-1 flex-col",
|
|
155
|
-
style:
|
|
156
|
-
"--el-header-border-color": p?.colors?.headerBorderColor,
|
|
157
|
-
"--el-sidebar-border-color": p?.colors?.sidebarBorderColor
|
|
158
|
-
}),
|
|
158
|
+
style: _,
|
|
159
159
|
children: [
|
|
160
160
|
/* @__PURE__ */ C("span", {
|
|
161
161
|
role: "status",
|
|
@@ -547,5 +547,4 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
|
|
|
547
547
|
let i = e.version.trim();
|
|
548
548
|
return t.validateVersionPattern && i && ((t.validateVersionPattern instanceof RegExp ? t.validateVersionPattern : $).test(i) || (n.version = Z.InvalidFormat)), n;
|
|
549
549
|
};
|
|
550
|
-
//#endregion
|
|
551
550
|
export { q as AddAvatar, J as AvatarPickerModal, V as BuilderFormContainer, Z as DeploymentCreationFieldErrorCode, X as DeploymentCreationForm, Y as DeploymentLocalesField, G as EditorLayout, U as EditorSection, Q as NAME_PATTERN, ne as SEMVER_VERSION_PATTERN, $ as VERSION_PATTERN, re as validateDeploymentCreationFields };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-builder-form",
|
|
3
3
|
"description": "Presentational builder form shells, editor layouts, and shared deployment field sets for composing and editing DIAL entities",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.17",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@tabler/icons-react": "^3.44.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@epam/ai-dial-chat-shared": "1.1.
|
|
23
|
+
"@epam/ai-dial-chat-shared": "1.1.17",
|
|
24
24
|
"@epam/ai-dial-ui-kit": "^0.14.2",
|
|
25
25
|
"react": "^19.2.8"
|
|
26
26
|
},
|