@epam/ai-dial-builder-form 1.2.8 → 1.2.9

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.
Files changed (2) hide show
  1. package/index.js +7 -11
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -55,12 +55,12 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
55
55
  actions: "_actions_lon83_18",
56
56
  title: "_title_lon83_27"
57
57
  }, re = ({ labels: e, onBack: t, onCancel: n, onSubmit: r, isCancelDisabled: a = !1, isSubmitDisabled: o = !1, isSubmitting: c = !1, backIcon: l, styles: f }) => {
58
- let { colors: p, typography: m } = f ?? {}, g = m?.fontClassName ?? "dial-h1-text", _ = !!m?.fontClassName;
58
+ let { colors: p, typography: m } = f ?? {}, g = m?.fontClassName ?? "dial-h1-text", _ = !!m?.fontClassName, v = i({
59
+ "--bfh-border": p?.borderColor,
60
+ "--bfh-font-family": _ ? void 0 : m?.fontFamily
61
+ });
59
62
  return /* @__PURE__ */ k("div", {
60
- style: i({
61
- "--bfh-border": p?.borderColor,
62
- "--bfh-font-family": _ ? void 0 : m?.fontFamily
63
- }),
63
+ style: v,
64
64
  className: s("flex min-h-16 shrink-0 items-center justify-between gap-2 px-4 py-2 desktop:h-16 desktop:flex-nowrap desktop:px-8 desktop:py-0", G.header),
65
65
  children: [
66
66
  /* @__PURE__ */ k("div", {
@@ -499,11 +499,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
499
499
  let e = () => {
500
500
  t.name ? S.current?.focus() : t.version ? C.current?.focus() : t.description && D.current?.focus();
501
501
  };
502
- if (x !== void 0) {
503
- x !== F.current && (F.current = x, e());
504
- return;
505
- }
506
- P && !A.current && e(), A.current = P;
502
+ x === void 0 ? (P && !A.current && e(), A.current = P) : x !== F.current && (F.current = x, e());
507
503
  }, [
508
504
  x,
509
505
  P,
@@ -747,7 +743,7 @@ var H = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
747
743
  s ? a(s, t) ? i.name = Q.TooLong : r.validateNamePattern && !Te.test(s) ? i.name = Q.InvalidFormat : o(s) && (i.name = Q.ControlCharacters) : i.name = Q.Required, a(n.description, e) && (i.description = Q.TooLong);
748
744
  let c = n.version.trim();
749
745
  return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Ee).test(c) || (i.version = Q.InvalidFormat)), i;
750
- }, ke = new Set([Q.TooLong, Q.ControlCharacters]), $ = (e, t) => ({
746
+ }, ke = /* @__PURE__ */ new Set([Q.TooLong, Q.ControlCharacters]), $ = (e, t) => ({
751
747
  reseedKey: t,
752
748
  values: e,
753
749
  baseline: e,
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.2.8",
4
+ "version": "1.2.9",
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.2.8",
23
+ "@epam/ai-dial-chat-shared": "1.2.9",
24
24
  "@epam/ai-dial-ui-kit": "^0.15.4",
25
25
  "react": "^19.2.8"
26
26
  },