@arquimedes.co/eureka-forms 1.9.13-test → 1.9.14-test

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.
@@ -158,7 +158,7 @@ function ColumnForm(_a) {
158
158
  return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [loading && _jsx("div", { className: styles.curtain }, void 0), showConfirmation !== undefined && (_jsx(ConfirmationDialog, { formStyle: formStyle, confirmation: showConfirmation, onClose: function () {
159
159
  reload();
160
160
  setShowConfirmation(undefined);
161
- } }, void 0)), sections.map(function (idSection, index) { return (_jsx(SectionComponent, __assign({ form: form, domain: domain, postview: postview, clearErrors: clearErrors, widthStats: widthStats, control: control, getValues: getValues, originalValues: originalValues, errors: errors, index: index, setSections: setSections, section: form.sections[idSection], formStyle: formStyle, customSteps: customSteps, setDependencyStore: setDependencyStore, dependencyStore: dependencyStore, trigger: trigger }, others), index)); }), form.terms &&
161
+ } }, void 0)), sections.map(function (idSection, index) { return (_jsx(SectionComponent, __assign({ form: form, sendLabel: sendLabel, domain: domain, postview: postview, clearErrors: clearErrors, widthStats: widthStats, control: control, getValues: getValues, originalValues: originalValues, errors: errors, index: index, setSections: setSections, section: form.sections[idSection], formStyle: formStyle, customSteps: customSteps, setDependencyStore: setDependencyStore, dependencyStore: dependencyStore, trigger: trigger }, others), index)); }), form.terms &&
162
162
  (!internal || (internal && postview)) &&
163
163
  (originalValues === null || originalValues === void 0 ? void 0 : originalValues['INTERNAL_CREATING_AGENT']) === undefined && (_jsx("div", __assign({ className: styles.termsContainer, style: {
164
164
  width: (form.size.blockSize + form.size.spacingSize) *
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { SectionComponentProps } from '../Section';
3
- declare function MaterialSection({ form, section, widthStats, ...others }: SectionComponentProps): JSX.Element;
3
+ declare function MaterialSection({ form, section, widthStats, sendLabel, ...others }: SectionComponentProps): JSX.Element;
4
4
  export default MaterialSection;
@@ -25,12 +25,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
25
25
  import StepComponent from '../../Step/Step';
26
26
  import styles from './MaterialSection.module.css';
27
27
  function MaterialSection(_a) {
28
- var form = _a.form, section = _a.section, widthStats = _a.widthStats, others = __rest(_a, ["form", "section", "widthStats"]);
28
+ var form = _a.form, section = _a.section, widthStats = _a.widthStats, sendLabel = _a.sendLabel, others = __rest(_a, ["form", "section", "widthStats", "sendLabel"]);
29
29
  var postview = others.postview, partial = others.partial, originalValues = others.originalValues;
30
30
  return (_jsx("div", __assign({ className: styles.container, style: {
31
31
  width: (form.size.blockSize + form.size.spacingSize) *
32
32
  form.size.blockNum,
33
- justifyContent: widthStats.currentBreakPoint < form.size.blockNum
33
+ justifyContent: sendLabel !== undefined &&
34
+ widthStats.currentBreakPoint < form.size.blockNum
34
35
  ? 'center'
35
36
  : 'normal',
36
37
  } }, { children: section.steps.map(function (idStep, index) {
@@ -27,6 +27,8 @@ export interface RecursiveData {
27
27
  trigger: UseFormTrigger<any>;
28
28
  }
29
29
  export interface SectionComponentProps extends RecursiveData {
30
+ /** The custom send label to display */
31
+ sendLabel?: string;
30
32
  section: Section;
31
33
  setSections: Function;
32
34
  index: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"1.9.13-test",
4
+ "version":"1.9.14-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",