@epam/ai-dial-builder-form 1.3.0-dev.118 → 1.3.0-dev.126

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 V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
55
55
  actions: "_actions_lon83_18",
56
56
  title: "_title_lon83_27"
57
57
  }, ie = ({ 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", W.header),
65
65
  children: [
66
66
  /* @__PURE__ */ k("div", {
@@ -499,11 +499,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
499
499
  let e = () => {
500
500
  t.name ? x.current?.focus() : t.version ? S.current?.focus() : t.description && C.current?.focus();
501
501
  };
502
- if (b !== void 0) {
503
- b !== ee.current && (ee.current = b, e());
504
- return;
505
- }
506
- N && !D.current && e(), D.current = N;
502
+ b === void 0 ? (N && !D.current && e(), D.current = N) : b !== ee.current && (ee.current = b, e());
507
503
  }, [
508
504
  b,
509
505
  N,
@@ -745,7 +741,7 @@ var V = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
745
741
  s ? a(s, t) ? i.name = $.TooLong : r.validateNamePattern && !we.test(s) ? i.name = $.InvalidFormat : o(s) && (i.name = $.ControlCharacters) : i.name = $.Required, a(n.description, e) && (i.description = $.TooLong);
746
742
  let c = n.version.trim();
747
743
  return r.validateVersionPattern && c && ((r.validateVersionPattern instanceof RegExp ? r.validateVersionPattern : Te).test(c) || (i.version = $.InvalidFormat)), i;
748
- }, ke = new Set([$.TooLong, $.ControlCharacters]), Ae = (e, t) => ({
744
+ }, ke = /* @__PURE__ */ new Set([$.TooLong, $.ControlCharacters]), Ae = (e, t) => ({
749
745
  reseedKey: t,
750
746
  values: e,
751
747
  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.3.0-dev.118",
4
+ "version": "1.3.0-dev.126",
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.3.0-dev.118",
23
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.126",
24
24
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.20",
25
25
  "react": "^19.2.8"
26
26
  },