@epam/ai-dial-builder-form 1.2.0-dev.11 → 1.2.0-dev.112

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.
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderFormBody.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormBody/BuilderFormBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAOjF,8GAA8G;AAC9G,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAsBpD,CAAC"}
1
+ {"version":3,"file":"BuilderFormBody.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormBody/BuilderFormBody.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,EAAE,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAOjF,8GAA8G;AAC9G,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2DpD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderFormContainer.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormContainer/BuilderFormContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAM3F,uIAAuI;AACvI,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAqE9D,CAAC"}
1
+ {"version":3,"file":"BuilderFormContainer.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormContainer/BuilderFormContainer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AAM3F,uIAAuI;AACvI,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA0E9D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"BuilderFormHeader.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormHeader/BuilderFormHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAIrF,uOAAuO;AACvO,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAyExD,CAAC"}
1
+ {"version":3,"file":"BuilderFormHeader.d.ts","sourceRoot":"","sources":["../../../src/components/BuilderFormHeader/BuilderFormHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAIrF,uOAAuO;AACvO,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CA8ExD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorLayout.d.ts","sourceRoot":"","sources":["../../../src/components/EditorLayout/EditorLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CA+F9C,CAAC"}
1
+ {"version":3,"file":"EditorLayout.d.ts","sourceRoot":"","sources":["../../../src/components/EditorLayout/EditorLayout.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAS,MAAM,OAAO,CAAC;AAElC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAG1E;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAsG9C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorSection.d.ts","sourceRoot":"","sources":["../../../src/components/EditorSection/EditorSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAChC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAG5E,yEAAyE;AACzE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA0BhD,CAAC"}
1
+ {"version":3,"file":"EditorSection.d.ts","sourceRoot":"","sources":["../../../src/components/EditorSection/EditorSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAG5E,yEAAyE;AACzE,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA2BhD,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const BUILDER_FORM_CLASS: {
2
+ /** The editor layout root, which holds the header and the content columns. */
3
+ readonly layout: "dial-builder-form-layout";
4
+ /** Every `EditorSection` box, whatever a caller puts inside it. */
5
+ readonly section: "dial-builder-form-section";
6
+ };
7
+ //# sourceMappingURL=public-class-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-class-names.d.ts","sourceRoot":"","sources":["../../src/constants/public-class-names.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,kBAAkB;IAC7B,8EAA8E;;IAE9E,mEAAmE;;CAE3D,CAAC"}
package/index.css CHANGED
@@ -1,2 +1,2 @@
1
- ._header_8b0ws_4{border-color:var(--bfh-border,var(--stroke-tertiary,#e0e6f0))}._title_8b0ws_8{font-family:var(--bfh-font-family,inherit)}._container_d8tdv_1{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa))}._footer_d8tdv_10{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa));box-shadow:0 2px 12px 0 var(--shadow-xs-2,#161b2d08), 0 2px 6px 0 var(--shadow-xs-1,#2764d933)}._section_l1mnx_1{border-color:var(--es-border-color,var(--stroke-tertiary,#e0e6f0))}._title_l1mnx_5{color:var(--es-title-color,var(--text-primary,#161b2d))}._headerBorder_1kidu_1{border-bottom-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._footerBorder_1kidu_5{border-top-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._sidebarBorder_1kidu_9{border-inline-end-color:var(--el-sidebar-border-color,var(--stroke-tertiary,#e0e6f0))}._box_c9as8_1{background:var(--aa-box-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--aa-box-border,var(--stroke-tertiary,#e0e6f0))}._icon_c9as8_6{color:var(--aa-icon,var(--text-secondary,#57647a))}._caption_c9as8_10{color:var(--aa-caption,var(--text-tertiary,#848e9c))}
2
- /*$vite$:1*/
1
+ ._body_m2y60_2._body_m2y60_2{flex-direction:column}._sideColumn_m2y60_6._sideColumn_m2y60_6{width:100%}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:none}@media (width>=1280px){._body_m2y60_2._body_m2y60_2{flex-direction:row}._sideColumn_m2y60_6._sideColumn_m2y60_6{flex-shrink:0;width:400px}._reservedColumn_m2y60_10._reservedColumn_m2y60_10{display:block}}._header_oo757_4._header_oo757_4{border-block-width:1px 0;padding-inline:16px}@media (width>=1280px){._header_oo757_4._header_oo757_4{border-block-width:0 1px;padding-inline:32px}}._header_oo757_4._header_oo757_4{border-color:var(--bfh-border,var(--stroke-tertiary,#e0e6f0))}._actions_oo757_20._actions_oo757_20{display:none}@media (width>=1280px){._actions_oo757_20._actions_oo757_20{display:flex}}._title_oo757_29{font-family:var(--bfh-font-family,inherit)}._container_k1awi_1{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa))}._footer_k1awi_10._footer_k1awi_10{display:flex}@media (width>=1280px){._footer_k1awi_10._footer_k1awi_10{display:none}}._footer_k1awi_10._footer_k1awi_10{background:var(--bfc-bg,var(--bg-layer-base,#f5f7fa));box-shadow:0 2px 12px 0 var(--shadow-xs-2,#161b2d08), 0 2px 6px 0 var(--shadow-xs-1,#2764d933)}._section_l1mnx_1{border-color:var(--es-border-color,var(--stroke-tertiary,#e0e6f0))}._title_l1mnx_5{color:var(--es-title-color,var(--text-primary,#161b2d))}._headerBorder_1kidu_1{border-bottom-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._footerBorder_1kidu_5{border-top-color:var(--el-header-border-color,var(--stroke-tertiary,#e0e6f0))}._sidebarBorder_1kidu_9{border-inline-end-color:var(--el-sidebar-border-color,var(--stroke-tertiary,#e0e6f0))}._box_c9as8_1{background:var(--aa-box-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--aa-box-border,var(--stroke-tertiary,#e0e6f0))}._icon_c9as8_6{color:var(--aa-icon,var(--text-secondary,#57647a))}._caption_c9as8_10{color:var(--aa-caption,var(--text-tertiary,#848e9c))}
2
+ /*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.absolute{position:absolute}.sticky{position:sticky}.bottom-0{bottom:0}.z-10{z-index:10}.mb-3{margin-bottom:.75rem}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-16{height:4rem}.h-full{height:100%}.min-h-0{min-height:0}.w-16{width:4rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-0{min-width:0}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.grow-\[1\]{flex-grow:1}.grow-\[2\]{flex-grow:2}.basis-0{flex-basis:0px}.resize{resize:both}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.object-cover{-o-object-fit:cover;object-fit:cover}.p-3{padding:.75rem}.p-6{padding:1.5rem}.\!px-0{padding-left:0!important;padding-right:0!important}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:1280px){.desktop\:flex{display:flex}.desktop\:hidden{display:none}.desktop\:w-\[360px\]{width:360px}.desktop\:flex-1{flex:1 1 0%}.desktop\:shrink-0{flex-shrink:0}.desktop\:basis-40{flex-basis:10rem}.desktop\:flex-row{flex-direction:row}.desktop\:items-start{align-items:flex-start}.desktop\:overflow-hidden{overflow:hidden}.desktop\:overflow-y-auto{overflow-y:auto}.desktop\:border-e{border-inline-end-width:1px}.desktop\:px-8{padding-left:2rem;padding-right:2rem}.desktop\:pb-3{padding-bottom:.75rem}.desktop\:pt-3{padding-top:.75rem}}.rtl\:scale-x-\[-1\]:where([dir=rtl],[dir=rtl] *){--tw-scale-x:-1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>\*\]\:flex-1>*{flex:1 1 0%}
package/index.d.ts CHANGED
@@ -17,4 +17,5 @@ export type { DeploymentCreationFormFieldErrors, DeploymentCreationFormFieldLabe
17
17
  export type { DeploymentCreationFormErrorCodes, DeploymentCreationFormValidationOptions, } from './models/validation';
18
18
  export { DeploymentCreationFieldErrorCode } from './models/validation';
19
19
  export { NAME_PATTERN, SEMVER_VERSION_PATTERN, VERSION_PATTERN, validateDeploymentCreationFields, } from './utils/validate-deployment-creation-fields';
20
+ export { BUILDER_FORM_CLASS } from './constants/public-class-names';
20
21
  //# sourceMappingURL=index.d.ts.map
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACpG,YAAY,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAC9G,YAAY,EACV,iCAAiC,EACjC,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,gCAAgC,EAChC,uCAAuC,GACxC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,gCAAgC,GACjC,MAAM,6CAA6C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AAC9F,YAAY,EACV,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,uCAAuC,CAAC;AAC/C,YAAY,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AACpF,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,oCAAoC,CAAC;AAC5C,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,+BAA+B,CAAC;AACvC,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,kDAAkD,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACpG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4DAA4D,CAAC;AACpG,YAAY,EAAE,2BAA2B,EAAE,MAAM,4DAA4D,CAAC;AAC9G,YAAY,EACV,iCAAiC,EACjC,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EACV,iCAAiC,EACjC,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,EAC5B,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,2BAA2B,EAC3B,4BAA4B,EAC5B,4BAA4B,GAC7B,MAAM,mCAAmC,CAAC;AAC3C,YAAY,EACV,gCAAgC,EAChC,uCAAuC,GACxC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,gCAAgC,GACjC,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC"}
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { RESIZABLE_TEXTAREA_CLASS_NAME as e, TAG_INPUT_TAG_CLASS_NAME as t, buildCssVars as n, mergeClasses as r } from "@epam/ai-dial-chat-shared";
2
2
  import { ButtonAppearance as i, ButtonVariant as a, DIAL_ICON_SIZE as o, DIAL_KIT_ICON_STROKE as s, DangerIconButton as c, ElementSize as l, GhostIconButton as u, Input as d, Label as f, LinkButton as p, NeutralButton as m, Popup as h, PrimaryButton as g, Select as _, Spinner as v, TagInput as y, Textarea as b, TextareaResize as x } from "@epam/ai-dial-ui-kit";
3
3
  import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
4
- import { IconArrowLeft as T, IconArrowNarrowLeft as E, IconPhoto as D, IconPlus as O, IconTrashX as ee } from "@tabler/icons-react";
5
- import { Suspense as k, useCallback as A, useEffect as j, useId as M, useRef as N, useState as P } from "react";
4
+ import { IconArrowLeft as ee, IconArrowNarrowLeft as T, IconPhoto as E, IconPlus as D, IconTrashX as te } from "@tabler/icons-react";
5
+ import { Suspense as O, useCallback as k, useEffect as A, useId as j, useRef as M, useState as N } from "react";
6
6
  //#region src/components/BuilderFormActions/BuilderFormActions.tsx
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, {
7
+ var P = ({ 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,
10
10
  disabled: r,
@@ -19,57 +19,83 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
19
19
  "aria-hidden": !0,
20
20
  children: /* @__PURE__ */ C(v, { size: o.SM })
21
21
  }) : void 0
22
- })] }), I = "flex w-full flex-col desktop:w-[360px] desktop:shrink-0", L = ({ left: e, children: t, metadata: n }) => /* @__PURE__ */ w("div", {
23
- className: "flex flex-1 flex-col desktop:flex-row",
24
- children: [
25
- e != null && /* @__PURE__ */ C("div", {
26
- className: I,
27
- children: e
28
- }),
29
- /* @__PURE__ */ C("div", {
30
- className: "flex w-full min-w-0 flex-1 flex-col",
31
- children: t
32
- }),
33
- n != null && /* @__PURE__ */ C("div", {
34
- className: I,
35
- children: n
36
- }),
37
- e != null && n == null && /* @__PURE__ */ C("div", {
38
- "aria-hidden": !0,
39
- className: "hidden desktop:block desktop:w-[360px] desktop:shrink-0"
40
- })
41
- ]
42
- }), R = {
43
- header: "_header_8b0ws_4",
44
- title: "_title_8b0ws_8"
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;
22
+ })] }), F = {
23
+ body: "_body_m2y60_2",
24
+ sideColumn: "_sideColumn_m2y60_6",
25
+ reservedColumn: "_reservedColumn_m2y60_10"
26
+ }, I = r("flex flex-col", F.sideColumn), L = ({ left: e, children: t, metadata: n, layout: i }) => {
27
+ let a = e != null && n == null && i?.reserveEndColumn !== !1, o = i ? {
28
+ flex: `0 1 ${i.sideColumnWidth ?? "400px"}`,
29
+ width: "100%",
30
+ minWidth: `min(100%, ${i.sideColumnWidth ?? "400px"})`,
31
+ maxWidth: "100%"
32
+ } : void 0, s = i ? {
33
+ flexDirection: "row",
34
+ flexWrap: "wrap",
35
+ columnGap: i.columnGap ?? "0px",
36
+ alignItems: "stretch"
37
+ } : void 0;
38
+ return /* @__PURE__ */ w("div", {
39
+ className: r("flex min-w-0 flex-1", F.body),
40
+ style: s,
41
+ children: [
42
+ e != null && /* @__PURE__ */ C("div", {
43
+ className: I,
44
+ style: o,
45
+ children: e
46
+ }),
47
+ /* @__PURE__ */ C("div", {
48
+ className: "flex w-full min-w-0 flex-1 flex-col",
49
+ style: i ? {
50
+ flex: "1 1 320px",
51
+ minWidth: "min(100%, 320px)"
52
+ } : void 0,
53
+ children: t
54
+ }),
55
+ n != null && /* @__PURE__ */ C("div", {
56
+ className: I,
57
+ style: o,
58
+ children: n
59
+ }),
60
+ a && /* @__PURE__ */ C("div", {
61
+ "aria-hidden": !0,
62
+ style: o,
63
+ className: r(F.reservedColumn, F.sideColumn)
64
+ })
65
+ ]
66
+ });
67
+ }, R = {
68
+ header: "_header_oo757_4",
69
+ actions: "_actions_oo757_20",
70
+ title: "_title_oo757_29"
71
+ }, z = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: c = !1, isSubmitDisabled: l = !1, isSubmitting: d = !1, backIcon: f, styles: p }) => {
72
+ let { colors: m, typography: h } = p ?? {}, g = h?.fontClassName ?? "dial-h1-text", _ = !!h?.fontClassName;
47
73
  return /* @__PURE__ */ w("div", {
48
74
  style: n({
49
- "--bfh-border": p?.borderColor,
50
- "--bfh-font-family": g ? void 0 : m?.fontFamily
75
+ "--bfh-border": m?.borderColor,
76
+ "--bfh-font-family": _ ? void 0 : h?.fontFamily
51
77
  }),
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),
78
+ className: r("flex h-16 items-center justify-between gap-6", R.header),
53
79
  children: [
54
80
  /* @__PURE__ */ w("div", {
55
81
  className: "flex min-w-0 flex-1 items-center gap-2",
56
82
  children: [/* @__PURE__ */ C(u, {
57
- icon: /* @__PURE__ */ C(T, {
83
+ icon: f === void 0 ? /* @__PURE__ */ C(ee, {
58
84
  size: o.LG,
59
85
  className: "rtl:scale-x-[-1]",
60
86
  "aria-hidden": !0,
61
87
  stroke: s
62
- }),
88
+ }) : f,
63
89
  "aria-label": e.backButtonLabel,
64
90
  onClick: t
65
91
  }), /* @__PURE__ */ C("h1", {
66
- className: r("truncate", R.title, h),
92
+ className: r("truncate", R.title, g),
67
93
  children: e.title
68
94
  })]
69
95
  }),
70
96
  /* @__PURE__ */ C("div", {
71
- className: "hidden items-center gap-2 desktop:flex",
72
- children: /* @__PURE__ */ C(F, {
97
+ className: r("items-center gap-2", R.actions),
98
+ children: /* @__PURE__ */ C(P, {
73
99
  labels: e,
74
100
  onCancel: i,
75
101
  onSubmit: a,
@@ -87,16 +113,16 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
87
113
  ]
88
114
  });
89
115
  }, B = {
90
- container: "_container_d8tdv_1",
91
- footer: "_footer_d8tdv_10"
92
- }, V = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: o = !1, isSubmitDisabled: s = !1, isSubmitting: c = !1, left: l, children: u, metadata: d, styles: f }) => {
93
- let { colors: p, header: m, cssVars: h } = f ?? {};
116
+ container: "_container_k1awi_1",
117
+ footer: "_footer_k1awi_10"
118
+ }, V = ({ labels: e, onBack: t, onCancel: i, onSubmit: a, isCancelDisabled: o = !1, isSubmitDisabled: s = !1, isSubmitting: c = !1, backIcon: l, className: u, left: d, children: f, metadata: p, layout: m, styles: h }) => {
119
+ let { colors: g, header: _, cssVars: v } = h ?? {};
94
120
  return /* @__PURE__ */ w("div", {
95
121
  style: {
96
- ...n({ "--bfc-bg": p?.background }),
97
- ...h
122
+ ...n({ "--bfc-bg": g?.background }),
123
+ ...v
98
124
  },
99
- className: r("flex h-full w-full flex-col overflow-y-auto", B.container),
125
+ className: r("flex h-full w-full flex-col overflow-y-auto", u, B.container),
100
126
  children: [
101
127
  /* @__PURE__ */ C(z, {
102
128
  labels: e,
@@ -106,16 +132,18 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
106
132
  isCancelDisabled: o,
107
133
  isSubmitDisabled: s,
108
134
  isSubmitting: c,
109
- styles: m
135
+ backIcon: l,
136
+ styles: _
110
137
  }),
111
138
  /* @__PURE__ */ C(L, {
112
- left: l,
113
- metadata: d,
114
- children: u
139
+ left: d,
140
+ metadata: p,
141
+ layout: m,
142
+ children: f
115
143
  }),
116
144
  /* @__PURE__ */ C("div", {
117
- className: r("sticky bottom-0 z-10 flex items-center gap-2 p-3 desktop:hidden", B.footer),
118
- children: /* @__PURE__ */ C(F, {
145
+ className: r("sticky bottom-0 z-10 items-center gap-2 p-3", B.footer),
146
+ children: /* @__PURE__ */ C(P, {
119
147
  labels: e,
120
148
  onCancel: i,
121
149
  onSubmit: a,
@@ -128,34 +156,37 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
128
156
  ]
129
157
  });
130
158
  }, H = {
159
+ layout: "dial-builder-form-layout",
160
+ section: "dial-builder-form-section"
161
+ }, U = {
131
162
  section: "_section_l1mnx_1",
132
163
  title: "_title_l1mnx_5"
133
- }, U = ({ title: e, children: t, styles: i, className: a }) => {
164
+ }, W = ({ title: e, children: t, styles: i, className: a }) => {
134
165
  let o = n({
135
166
  "--es-border-color": i?.colors?.borderColor,
136
167
  "--es-title-color": i?.colors?.titleColor
137
168
  });
138
169
  return /* @__PURE__ */ w("section", {
139
- className: r("flex flex-col gap-4 rounded border p-6", H.section, a),
170
+ className: r("flex flex-col gap-4 rounded border p-6", U.section, a, H.section),
140
171
  style: o,
141
172
  children: [e != null && /* @__PURE__ */ C("h2", {
142
- className: r("dial-h3-text", H.title),
173
+ className: r("dial-h3-text", U.title),
143
174
  children: e
144
175
  }), t]
145
176
  });
146
- }, W = {
177
+ }, G = {
147
178
  headerBorder: "_headerBorder_1kidu_1",
148
179
  footerBorder: "_footerBorder_1kidu_5",
149
180
  sidebarBorder: "_sidebarBorder_1kidu_9"
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" : "";
181
+ }, K = ({ title: e, onBack: t, backAriaLabel: i = "Back", actions: a, leftContent: c, rightContent: l, isSaving: d = !1, labels: f, styles: p, dir: m }) => {
182
+ let h = j(), g = d ? f?.savingStatusLabel ?? "Saving" : "", _ = n({
183
+ "--el-header-border-color": p?.colors?.headerBorderColor,
184
+ "--el-sidebar-border-color": p?.colors?.sidebarBorderColor
185
+ });
152
186
  return /* @__PURE__ */ w("div", {
153
187
  dir: m,
154
- className: "flex min-h-0 flex-1 flex-col",
155
- style: n({
156
- "--el-header-border-color": p?.colors?.headerBorderColor,
157
- "--el-sidebar-border-color": p?.colors?.sidebarBorderColor
158
- }),
188
+ className: r("flex min-h-0 flex-1 flex-col", H.layout),
189
+ style: _,
159
190
  children: [
160
191
  /* @__PURE__ */ C("span", {
161
192
  role: "status",
@@ -165,11 +196,11 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
165
196
  children: g
166
197
  }),
167
198
  /* @__PURE__ */ w("div", {
168
- className: r("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", W.headerBorder),
199
+ className: r("flex items-center justify-between gap-2 border-b px-4 py-2 desktop:px-8 desktop:pb-3 desktop:pt-3", G.headerBorder),
169
200
  children: [/* @__PURE__ */ w("div", {
170
201
  className: "flex min-w-0 flex-1 items-center gap-2",
171
202
  children: [/* @__PURE__ */ C(u, {
172
- icon: /* @__PURE__ */ C(E, {
203
+ icon: /* @__PURE__ */ C(T, {
173
204
  size: o.LG,
174
205
  stroke: s,
175
206
  "aria-hidden": !0,
@@ -189,7 +220,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
189
220
  /* @__PURE__ */ w("div", {
190
221
  className: "flex flex-1 flex-col overflow-y-auto desktop:flex-row desktop:overflow-hidden",
191
222
  children: [/* @__PURE__ */ C("div", {
192
- className: r(l == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", l == null ? void 0 : W.sidebarBorder),
223
+ className: r(l == null ? "desktop:flex-1" : "desktop:w-[360px] desktop:shrink-0 desktop:overflow-y-auto desktop:border-e", "desktop:overflow-y-auto", l == null ? void 0 : G.sidebarBorder),
193
224
  children: c
194
225
  }), l != null && /* @__PURE__ */ C("div", {
195
226
  className: "desktop:flex-1 desktop:overflow-y-auto",
@@ -197,16 +228,16 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
197
228
  })]
198
229
  }),
199
230
  a != null && /* @__PURE__ */ C("div", {
200
- className: r("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", W.footerBorder),
231
+ className: r("flex shrink-0 flex-row-reverse items-center gap-2 border-t px-4 py-2 desktop:hidden [&>*]:flex-1", G.footerBorder),
201
232
  children: a
202
233
  })
203
234
  ]
204
235
  });
205
- }, K = {
236
+ }, q = {
206
237
  box: "_box_c9as8_1",
207
238
  icon: "_icon_c9as8_6",
208
239
  caption: "_caption_c9as8_10"
209
- }, q = ({ label: e, avatarUrl: t, avatarAlt: i = "", addAvatarLabel: a = "Add avatar", captionText: c = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: u, styles: d, className: m }) => {
240
+ }, J = ({ label: e, avatarUrl: t, avatarAlt: i = "", addAvatarLabel: a = "Add avatar", captionText: c = "PNG, JPG or SVG (max 1 MB)", onAddAvatarClick: u, styles: d, className: m }) => {
210
241
  let h = n({
211
242
  "--aa-box-bg": d?.colors?.boxBackgroundColor,
212
243
  "--aa-box-border": d?.colors?.boxBorderColor,
@@ -219,22 +250,22 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
219
250
  children: [/* @__PURE__ */ C(f, { label: e }), /* @__PURE__ */ w("div", {
220
251
  className: "flex items-start gap-3",
221
252
  children: [/* @__PURE__ */ C("div", {
222
- className: r("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", K.box),
253
+ className: r("flex h-16 w-16 shrink-0 items-center justify-center overflow-hidden rounded-lg border", q.box),
223
254
  children: t ? /* @__PURE__ */ C("img", {
224
255
  src: t,
225
256
  alt: i,
226
257
  className: "h-16 w-16 object-cover"
227
- }) : /* @__PURE__ */ C(D, {
258
+ }) : /* @__PURE__ */ C(E, {
228
259
  size: o.LG,
229
260
  stroke: s,
230
261
  "aria-hidden": !0,
231
- className: K.icon
262
+ className: q.icon
232
263
  })
233
264
  }), /* @__PURE__ */ w("div", {
234
265
  className: "flex flex-col gap-3",
235
266
  children: [/* @__PURE__ */ C(p, {
236
267
  size: l.Small,
237
- iconBefore: /* @__PURE__ */ C(O, {
268
+ iconBefore: /* @__PURE__ */ C(D, {
238
269
  size: o.SM,
239
270
  stroke: s,
240
271
  "aria-hidden": !0
@@ -243,14 +274,14 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
243
274
  label: a,
244
275
  onClick: u
245
276
  }), /* @__PURE__ */ C("span", {
246
- className: r("dial-tiny-text", K.caption),
277
+ className: r("dial-tiny-text", q.caption),
247
278
  children: c
248
279
  })]
249
280
  })]
250
281
  })]
251
282
  });
252
- }, J = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
253
- let c = A((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = A((e) => /* @__PURE__ */ C("div", {
283
+ }, Y = ({ isOpen: e, onClose: t, onAttach: n, bucket: r, FileManagerModal: i, allowedMimeTypes: a, maxFileSizeBytes: o, labels: s }) => {
284
+ let c = k((e) => e.length === 1 ? s.deleteConfirmTitleSingle : s.deleteConfirmTitleMultiple, [s.deleteConfirmTitleSingle, s.deleteConfirmTitleMultiple]), l = k((e) => /* @__PURE__ */ C("div", {
254
285
  className: "dial-small-text px-6 py-3",
255
286
  children: /* @__PURE__ */ C("p", {
256
287
  className: "mb-3 text-secondary",
@@ -283,7 +314,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
283
314
  s.deleteConfirmMultipleText,
284
315
  s.deleteConfirmItemsLabel
285
316
  ]);
286
- return /* @__PURE__ */ C(k, {
317
+ return /* @__PURE__ */ C(O, {
287
318
  fallback: null,
288
319
  children: e && /* @__PURE__ */ C(i, {
289
320
  isOpen: e,
@@ -318,33 +349,33 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
318
349
  cancelLabel: s.cancelLabel
319
350
  })
320
351
  });
321
- }, te = (e, t, n) => ({
352
+ }, X = (e, t, n) => ({
322
353
  id: e,
323
354
  language: n.find((e) => !t.has(e.code))?.code ?? "",
324
355
  name: "",
325
356
  description: ""
326
- }), Y = ({ value: t, onChange: n, availableLocaleOptions: u = [], labels: f, className: m, summaryClassName: g = "dial-body-text text-secondary", rowLabelClassName: v = "dial-tiny-lead-text text-secondary" }) => {
327
- let { summaryLabel: y, addLabel: S, editLabel: T, popupTitle: E, addLocaleLabel: D, localeRowLabel: k = "Locale", languageLabel: A, nameLabel: M, namePlaceholder: F, descriptionLabel: I, descriptionPlaceholder: L, deleteAriaLabel: R, cancelLabel: z = "Cancel", saveLabel: B = "Save" } = f, [V, H] = P(!1), [U, W] = P([]), G = N(0);
328
- j(() => {
329
- V && W(t.length > 0 ? t : [te(`locale-row-${++G.current}`, /* @__PURE__ */ new Set(), u)]);
357
+ }), Z = ({ value: t, onChange: n, availableLocaleOptions: u = [], labels: f, className: m, summaryClassName: g = "dial-body-text text-secondary", rowLabelClassName: v = "dial-tiny-lead-text text-secondary" }) => {
358
+ let { summaryLabel: y, addLabel: S, editLabel: ee, popupTitle: T, addLocaleLabel: E, localeRowLabel: O = "Locale", languageLabel: k, nameLabel: j, namePlaceholder: P, descriptionLabel: F, descriptionPlaceholder: I, deleteAriaLabel: L, cancelLabel: R = "Cancel", saveLabel: z = "Save" } = f, [B, V] = N(!1), [H, U] = N([]), W = M(0);
359
+ A(() => {
360
+ B && U(t.length > 0 ? t : [X(`locale-row-${++W.current}`, /* @__PURE__ */ new Set(), u)]);
330
361
  }, [
331
- V,
362
+ B,
332
363
  t,
333
364
  u
334
365
  ]);
335
- let K = () => H(!0), q = () => H(!1), J = () => {
336
- n(U.filter((e) => e.language && e.name)), H(!1);
337
- }, Y = () => {
338
- let e = new Set(U.map((e) => e.language).filter(Boolean));
339
- W((t) => [...t, te(`locale-row-${++G.current}`, e, u)]);
340
- }, X = (e, t) => {
341
- W((n) => n.map((n) => n.id === e ? {
366
+ let G = () => V(!0), K = () => V(!1), q = () => {
367
+ n(H.filter((e) => e.language && e.name)), V(!1);
368
+ }, J = () => {
369
+ let e = new Set(H.map((e) => e.language).filter(Boolean));
370
+ U((t) => [...t, X(`locale-row-${++W.current}`, e, u)]);
371
+ }, Y = (e, t) => {
372
+ U((n) => n.map((n) => n.id === e ? {
342
373
  ...n,
343
374
  ...t
344
375
  } : n));
345
376
  }, Z = (e) => {
346
- W((t) => t.filter((t) => t.id !== e));
347
- }, Q = (e) => u.find((t) => t.code === e)?.label ?? e.toUpperCase(), $ = U.some((e) => !e.language || !e.name);
377
+ U((t) => t.filter((t) => t.id !== e));
378
+ }, Q = (e) => u.find((t) => t.code === e)?.label ?? e.toUpperCase(), $ = H.some((e) => !e.language || !e.name);
348
379
  return u.length === 0 ? null : /* @__PURE__ */ w("div", {
349
380
  className: r("flex items-center gap-2", m),
350
381
  children: [
@@ -353,32 +384,32 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
353
384
  children: `${y}: ${t.map((e) => `[${Q(e.language)}]`).join(", ")}`
354
385
  }),
355
386
  /* @__PURE__ */ C(p, {
356
- label: t.length > 0 ? T : S,
357
- iconBefore: /* @__PURE__ */ C(O, {
387
+ label: t.length > 0 ? ee : S,
388
+ iconBefore: /* @__PURE__ */ C(D, {
358
389
  size: o.SM,
359
390
  "aria-hidden": !0,
360
391
  stroke: s
361
392
  }),
362
393
  className: "!px-0",
363
- onClick: K
394
+ onClick: G
364
395
  }),
365
396
  /* @__PURE__ */ C(h, {
366
- open: V,
367
- header: E,
368
- onClose: q,
397
+ open: B,
398
+ header: T,
399
+ onClose: K,
369
400
  mainButtons: [{
370
- label: z,
371
- onClick: q
401
+ label: R,
402
+ onClick: K
372
403
  }, {
373
- label: B,
404
+ label: z,
374
405
  variant: a.Primary,
375
406
  disabled: $,
376
- onClick: J
407
+ onClick: q
377
408
  }],
378
409
  children: /* @__PURE__ */ w("div", {
379
410
  className: "flex flex-col gap-8 px-6 py-3",
380
- children: [U.map((t, n) => {
381
- let r = new Set(U.filter((e) => e.id !== t.id).map((e) => e.language).filter(Boolean));
411
+ children: [H.map((t, n) => {
412
+ let r = new Set(H.filter((e) => e.id !== t.id).map((e) => e.language).filter(Boolean));
382
413
  return /* @__PURE__ */ w("div", {
383
414
  className: "flex flex-col gap-2",
384
415
  children: [/* @__PURE__ */ w("div", {
@@ -386,31 +417,31 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
386
417
  children: [/* @__PURE__ */ w("span", {
387
418
  className: v,
388
419
  children: [
389
- k,
420
+ O,
390
421
  " ",
391
422
  n + 1
392
423
  ]
393
424
  }), /* @__PURE__ */ C(c, {
394
425
  appearance: i.Ghost,
395
426
  size: l.Small,
396
- icon: /* @__PURE__ */ C(ee, {
427
+ icon: /* @__PURE__ */ C(te, {
397
428
  size: o.SM,
398
429
  "aria-hidden": !0,
399
430
  stroke: s
400
431
  }),
401
- "aria-label": `${R} ${n + 1}`,
432
+ "aria-label": `${L} ${n + 1}`,
402
433
  onClick: () => Z(t.id)
403
434
  })]
404
435
  }), /* @__PURE__ */ w("div", {
405
436
  role: "group",
406
- "aria-label": `${k} ${n + 1}`,
437
+ "aria-label": `${O} ${n + 1}`,
407
438
  className: "flex flex-col gap-5",
408
439
  children: [/* @__PURE__ */ w("div", {
409
440
  className: "flex flex-col gap-5 desktop:flex-row desktop:items-start",
410
441
  children: [/* @__PURE__ */ C(_, {
411
442
  id: `${t.id}-language`,
412
443
  labelProps: {
413
- label: A,
444
+ label: k,
414
445
  required: !0
415
446
  },
416
447
  className: "desktop:shrink-0 desktop:basis-40",
@@ -420,48 +451,48 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
420
451
  disabled: r.has(e.code)
421
452
  })),
422
453
  value: t.language,
423
- onChange: (e) => X(t.id, { language: e })
454
+ onChange: (e) => Y(t.id, { language: e })
424
455
  }), /* @__PURE__ */ C(d, {
425
456
  id: `${t.id}-name`,
426
457
  containerClassName: "min-w-0 flex-1",
427
458
  required: !0,
428
459
  value: t.name,
429
- onChange: (e) => X(t.id, { name: e ?? "" }),
460
+ onChange: (e) => Y(t.id, { name: e ?? "" }),
430
461
  labelProps: {
431
- label: M,
462
+ label: j,
432
463
  required: !0
433
464
  },
434
- placeholder: F
465
+ placeholder: P
435
466
  })]
436
467
  }), /* @__PURE__ */ C(b, {
437
468
  id: `${t.id}-description`,
438
469
  className: e,
439
470
  resize: x.Vertical,
440
471
  value: t.description,
441
- onChange: (e) => X(t.id, { description: e }),
442
- labelProps: { label: I },
443
- placeholder: L
472
+ onChange: (e) => Y(t.id, { description: e }),
473
+ labelProps: { label: F },
474
+ placeholder: I
444
475
  })]
445
476
  })]
446
477
  }, t.id);
447
478
  }), /* @__PURE__ */ C(p, {
448
- label: D,
449
- iconBefore: /* @__PURE__ */ C(O, {
479
+ label: E,
480
+ iconBefore: /* @__PURE__ */ C(D, {
450
481
  size: o.SM,
451
482
  "aria-hidden": !0,
452
483
  stroke: s
453
484
  }),
454
485
  className: "self-start",
455
- onClick: Y,
456
- disabled: U.length >= u.length
486
+ onClick: J,
487
+ disabled: H.length >= u.length
457
488
  })]
458
489
  })
459
490
  })
460
491
  ]
461
492
  });
462
- }, X = ({ values: n, errors: i, onChange: a, onNameBlur: o, onVersionBlur: s, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: f, availableLocaleOptions: p = [] }) => {
463
- let m = N(null), h = N(null), g = N(!1), _ = !!(i.name || i.version);
464
- return j(() => {
493
+ }, Q = ({ values: n, errors: i, onChange: a, onNameBlur: o, onVersionBlur: s, iconPreviewUrl: c, onAddAvatarClick: l, labels: u, styles: f, availableLocaleOptions: p = [] }) => {
494
+ let m = M(null), h = M(null), g = M(!1), _ = !!(i.name || i.version);
495
+ return A(() => {
465
496
  _ && !g.current && (i.name ? m : h).current?.focus(), g.current = _;
466
497
  }, [
467
498
  _,
@@ -472,7 +503,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
472
503
  "aria-label": u.ariaLabel,
473
504
  className: r("flex flex-col gap-4", f?.root),
474
505
  children: [
475
- /* @__PURE__ */ C(q, {
506
+ /* @__PURE__ */ C(J, {
476
507
  label: u.iconUrl.label,
477
508
  avatarUrl: c,
478
509
  addAvatarLabel: u.iconUrl.addAvatarLabel,
@@ -519,7 +550,7 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
519
550
  className: e,
520
551
  resize: x.Vertical
521
552
  }),
522
- /* @__PURE__ */ C(Y, {
553
+ /* @__PURE__ */ C(Z, {
523
554
  value: n.otherLocales,
524
555
  onChange: (e) => a({ otherLocales: e }),
525
556
  availableLocaleOptions: p,
@@ -539,13 +570,13 @@ var F = ({ labels: e, onCancel: t, onSubmit: n, isCancelDisabled: r = !1, isSubm
539
570
  })
540
571
  ]
541
572
  });
542
- }, Z = /* @__PURE__ */ function(e) {
573
+ }, $ = /* @__PURE__ */ function(e) {
543
574
  return e.Required = "required", e.InvalidFormat = "invalid-format", e.TooLong = "too-long", e;
544
- }({}), Q = /^[a-zA-Z0-9 _.-]+$/, $ = /^[a-zA-Z0-9._-]+$/, ne = /^\d+(\.\d+)*$/, re = (e, t = {}) => {
575
+ }({}), ne = /^[a-zA-Z0-9 _.-]+$/, re = /^[a-zA-Z0-9._-]+$/, ie = /^\d+(\.\d+)*$/, ae = (e, t = {}) => {
545
576
  let n = {}, r = e.name.trim();
546
- r ? t.validateNamePattern && !Q.test(r) && (n.name = Z.InvalidFormat) : n.name = Z.Required;
577
+ r ? t.validateNamePattern && !ne.test(r) && (n.name = $.InvalidFormat) : n.name = $.Required;
547
578
  let i = e.version.trim();
548
- return t.validateVersionPattern && i && ((t.validateVersionPattern instanceof RegExp ? t.validateVersionPattern : $).test(i) || (n.version = Z.InvalidFormat)), n;
579
+ return t.validateVersionPattern && i && ((t.validateVersionPattern instanceof RegExp ? t.validateVersionPattern : re).test(i) || (n.version = $.InvalidFormat)), n;
549
580
  };
550
581
  //#endregion
551
- 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 };
582
+ export { J as AddAvatar, Y as AvatarPickerModal, H as BUILDER_FORM_CLASS, V as BuilderFormContainer, $ as DeploymentCreationFieldErrorCode, Q as DeploymentCreationForm, Z as DeploymentLocalesField, K as EditorLayout, W as EditorSection, ne as NAME_PATTERN, ie as SEMVER_VERSION_PATTERN, re as VERSION_PATTERN, ae as validateDeploymentCreationFields };
@@ -7,5 +7,14 @@ export interface BuilderFormBodyProps {
7
7
  children: ReactNode;
8
8
  /** End-edge column, matching `left`'s width. When omitted while `left` is set, an empty column of the same width is reserved so the main column stays optically centered. */
9
9
  metadata?: ReactNode;
10
+ /** Optional container-responsive column sizing; omitted preserves the existing desktop layout. */
11
+ layout?: {
12
+ /** Width of side columns. Defaults to '400px'. */
13
+ sideColumnWidth?: string;
14
+ /** Gap between columns. Defaults to '0px'. */
15
+ columnGap?: string;
16
+ /** Reserve an empty end column for centering. Defaults to true. */
17
+ reserveEndColumn?: boolean;
18
+ };
10
19
  }
11
20
  //# sourceMappingURL=builder-form-body-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder-form-body-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-body-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,gFAAgF;IAChF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oEAAoE;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,6KAA6K;IAC7K,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB"}
1
+ {"version":3,"file":"builder-form-body-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-body-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,gFAAgF;IAChF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oEAAoE;IACpE,QAAQ,EAAE,SAAS,CAAC;IACpB,6KAA6K;IAC7K,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,kGAAkG;IAClG,MAAM,CAAC,EAAE;QACP,kDAAkD;QAClD,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,8CAA8C;QAC9C,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,mEAAmE;QACnE,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACH"}
@@ -37,6 +37,10 @@ export interface BuilderFormContainerProps {
37
37
  isSubmitDisabled?: boolean;
38
38
  /** When `true`, the submit action shows a spinner and reports `aria-busy` on both surfaces. Defaults to `false`. */
39
39
  isSubmitting?: boolean;
40
+ /** Optional replacement for the header's default back icon. */
41
+ backIcon?: ReactNode;
42
+ /** Additional class name for the container root. */
43
+ className?: string;
40
44
  /** Body's start-edge column. Full width on mobile, a fixed-width column on desktop. */
41
45
  left?: ReactNode;
42
46
  /** Body's main column, filling the space left by `left` and `metadata`. */
@@ -45,5 +49,7 @@ export interface BuilderFormContainerProps {
45
49
  metadata?: ReactNode;
46
50
  /** Style overrides. */
47
51
  styles?: BuilderFormContainerStyles;
52
+ /** Optional container-responsive body sizing. */
53
+ layout?: import('./builder-form-body-props').BuilderFormBodyProps['layout'];
48
54
  }
49
55
  //# sourceMappingURL=builder-form-container-props.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"builder-form-container-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-container-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,gEAAgE;IAChE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,oLAAoL;IACpL,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC"}
1
+ {"version":3,"file":"builder-form-container-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-container-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,6BAA6B,CAAC;AAErC;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,sEAAsE;AACtE,MAAM,WAAW,0BAA0B;IACzC,wDAAwD;IACxD,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC;;;;OAIG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,WAAW,yBAAyB;IACxC,uCAAuC;IACvC,MAAM,EAAE,uBAAuB,CAAC;IAChC,gEAAgE;IAChE,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,4GAA4G;IAC5G,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,oHAAoH;IACpH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uFAAuF;IACvF,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,2EAA2E;IAC3E,QAAQ,EAAE,SAAS,CAAC;IACpB,oLAAoL;IACpL,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,0BAA0B,CAAC;IACpC,iDAAiD;IACjD,MAAM,CAAC,EAAE,OAAO,2BAA2B,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC;CAC7E"}
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  import { BuilderFormActionsLabels } from './builder-form-actions-props';
2
3
  /** Localized labels used by the {@link BuilderFormHeader} component. */
3
4
  export interface BuilderFormHeaderLabels extends BuilderFormActionsLabels {
@@ -46,6 +47,8 @@ export interface BuilderFormHeaderProps {
46
47
  isSubmitDisabled?: boolean;
47
48
  /** When `true`, the submit action shows a spinner and reports `aria-busy`. Defaults to `false`. */
48
49
  isSubmitting?: boolean;
50
+ /** Optional replacement for the default back icon; `null` suppresses it. */
51
+ backIcon?: ReactNode;
49
52
  /** Style overrides. */
50
53
  styles?: BuilderFormHeaderStyles;
51
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"builder-form-header-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-header-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,wEAAwE;AACxE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,iDAAiD;IACjD,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
1
+ {"version":3,"file":"builder-form-header-props.d.ts","sourceRoot":"","sources":["../../src/models/builder-form-header-props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,wEAAwE;AACxE,MAAM,WAAW,uBAAwB,SAAQ,wBAAwB;IACvE,4CAA4C;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,eAAe,EAAE,MAAM,CAAC;IACxB,oIAAoI;IACpI,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wEAAwE;AACxE,MAAM,WAAW,2BAA2B;IAC1C,oEAAoE;IACpE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,CAAC,EAAE,uBAAuB,CAAC;IACjC,iDAAiD;IACjD,UAAU,CAAC,EAAE,2BAA2B,CAAC;CAC1C;AAED,yDAAyD;AACzD,MAAM,WAAW,sBAAsB;IACrC,wBAAwB;IACxB,MAAM,EAAE,uBAAuB,CAAC;IAChC,uDAAuD;IACvD,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mGAAmG;IACnG,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uBAAuB;IACvB,MAAM,CAAC,EAAE,uBAAuB,CAAC;CAClC"}
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.0-dev.11",
4
+ "version": "1.2.0-dev.112",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -20,8 +20,8 @@
20
20
  "@tabler/icons-react": "^3.44.0"
21
21
  },
22
22
  "peerDependencies": {
23
- "@epam/ai-dial-chat-shared": "1.2.0-dev.11",
24
- "@epam/ai-dial-ui-kit": "^0.14.2",
23
+ "@epam/ai-dial-chat-shared": "1.2.0-dev.112",
24
+ "@epam/ai-dial-ui-kit": "^0.15.0-dev.15",
25
25
  "react": "^19.2.8"
26
26
  },
27
27
  "repository": {