@wise/dynamic-flow-client 3.15.2-experimental-9ab778d → 3.15.2-experimental-1d9c70f
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/build/legacy/jsonSchemaForm/allOfSchema/AllOfSchema.js +1 -1
- package/build/legacy/jsonSchemaForm/arrayTypeSchema/arrayListSchema/repeatableSchema/RepeatableSchema.js +1 -1
- package/build/legacy/jsonSchemaForm/objectSchema/ObjectSchema.js +1 -1
- package/build/legacy/jsonSchemaForm/oneOfSchema/OneOfSchema.js +1 -1
- package/build/legacy/layout/decision/DynamicDecision.js +1 -1
- package/build/legacy/layout/instructions/DynamicInstructions.js +1 -1
- package/build/legacy/layout/list/DynamicStatusList.js +1 -1
- package/build/legacy/layout/review/DynamicReview.js +1 -1
- package/build/main.js +22 -14
- package/build/main.min.js +1 -1
- package/build/main.mjs +22 -14
- package/build/types/index.d.ts +2 -1
- package/build/types/legacy/layout/search/useSearch.d.ts +1 -1
- package/package.json +2 -2
|
@@ -36,7 +36,7 @@ function AllOfSchema(props) {
|
|
|
36
36
|
props.onChange(__assign(__assign({}, onChangeProps), { model: combineModels(models) }));
|
|
37
37
|
};
|
|
38
38
|
var _a = useState(splitModel(props.model, props.schema.allOf)), models = _a[0], setModels = _a[1];
|
|
39
|
-
return (_jsxs(_Fragment, { children: [props.schema.title && _jsx(Header, { title: props.schema.title }), props.schema.description && _jsx("p", { children: props.schema.description }), _jsx("div", { className: "row", children: props.schema.allOf.map(function (schema, index) { return (
|
|
39
|
+
return (_jsxs(_Fragment, { children: [props.schema.title && _jsx(Header, { title: props.schema.title, className: "m-b-2" }), props.schema.description && _jsx("p", { children: props.schema.description }), _jsx("div", { className: "row", children: props.schema.allOf.map(function (schema, index) { return (
|
|
40
40
|
// eslint-disable-next-line react/no-array-index-key
|
|
41
41
|
_jsx("div", { className: classNames(getSchemaColumnClasses(schema.width)), children: _jsx(GenericSchema, { schema: schema, model: models[index], errors: props.errors, submitted: props.submitted, disabled: props.disabled, onChange: function (onChangeProps) {
|
|
42
42
|
return onChangeModelIndex(index, __assign(__assign({}, onChangeProps), {
|
|
@@ -106,7 +106,7 @@ function RepeatableSchema(_a) {
|
|
|
106
106
|
var formGroupClasses = {
|
|
107
107
|
'has-error': (_b = (errors && !isEmpty(errors))) !== null && _b !== void 0 ? _b : (submitted && validations.length),
|
|
108
108
|
};
|
|
109
|
-
return (_jsxs("div", { id: id, className: classNames(formGroupClasses), children: [schema.title && _jsx(Header, { title: schema.title }), itemSummaries === null || itemSummaries === void 0 ? void 0 : itemSummaries.map(function (itemSummary) { return (_jsx(ItemSummaryOption, { item: itemSummary, onClick: function () { return onEditItem(itemSummary); } }, JSON.stringify(itemSummary))); }), _jsx(NavigationOption, { media: _jsx(Plus, {}), title: schema.addItemTitle || formatMessage(messages.addItemTitle), showMediaAtAllSizes: true, onClick: onAddItem }), _jsx(Modal, { open: openModalType !== null, title: (openModalType === 'add' ? schema.addItemTitle : schema.editItemTitle) ||
|
|
109
|
+
return (_jsxs("div", { id: id, className: classNames(formGroupClasses), children: [schema.title && _jsx(Header, { title: schema.title, className: "m-b-2" }), itemSummaries === null || itemSummaries === void 0 ? void 0 : itemSummaries.map(function (itemSummary) { return (_jsx(ItemSummaryOption, { item: itemSummary, onClick: function () { return onEditItem(itemSummary); } }, JSON.stringify(itemSummary))); }), _jsx(NavigationOption, { media: _jsx(Plus, {}), title: schema.addItemTitle || formatMessage(messages.addItemTitle), showMediaAtAllSizes: true, onClick: onAddItem }), _jsx(Modal, { open: openModalType !== null, title: (openModalType === 'add' ? schema.addItemTitle : schema.editItemTitle) ||
|
|
110
110
|
formatMessage(messages.addItemTitle), body: _jsx(RepeatableSchemaStep, { type: openModalType !== null && openModalType !== void 0 ? openModalType : 'add', schema: schema, model: editableItem.model, errors: errors, submitted: submitted, onAction: onSaveItem, onModelChange: function (_a) {
|
|
111
111
|
var model = _a.model;
|
|
112
112
|
return setEditableItem(__assign(__assign({}, editableItem), { model: model }));
|
|
@@ -68,7 +68,7 @@ function ObjectSchema(props) {
|
|
|
68
68
|
var orderedPropertyNames = Array.from(allorderedPropertiesSet).filter(isPropertyDefined);
|
|
69
69
|
// TODO: LOW avoid type assertion -- what happens when props.errors is not an object?
|
|
70
70
|
var propsErrors = props.errors;
|
|
71
|
-
return (_jsxs(_Fragment, { children: [props.schema.alert && _jsx(DynamicAlert, { component: props.schema.alert }), _jsxs("fieldset", { children: [props.schema.title && !props.hideTitle && (_jsx(Header, { title: props.schema.title, as: "legend" })), props.schema.description && !props.hideTitle && _jsxs("p", { children: [" ", props.schema.description, " "] }), _jsx("div", { className: "row", children: orderedPropertyNames.map(function (propertyName) { return (_jsx("div", { className: classNames(getSchemaColumnClasses(props.schema.properties[propertyName].width)), children: _jsx(GenericSchema, { schema: props.schema.properties[propertyName], model: props.model && props.model[propertyName], errors: propsErrors === null || propsErrors === void 0 ? void 0 : propsErrors[propertyName], submitted: props.submitted, required: isRequired(propertyName), disabled: props.disabled, onChange: function (onChangeProps) { return onChangeProperty(propertyName, onChangeProps); }, onPersistAsync: props.onPersistAsync }) }, propertyName)); }) })] })] }));
|
|
71
|
+
return (_jsxs(_Fragment, { children: [props.schema.alert && _jsx(DynamicAlert, { component: props.schema.alert }), _jsxs("fieldset", { children: [props.schema.title && !props.hideTitle && (_jsx(Header, { title: props.schema.title, as: "legend", className: "m-b-2" })), props.schema.description && !props.hideTitle && _jsxs("p", { children: [" ", props.schema.description, " "] }), _jsx("div", { className: "row", children: orderedPropertyNames.map(function (propertyName) { return (_jsx("div", { className: classNames(getSchemaColumnClasses(props.schema.properties[propertyName].width)), children: _jsx(GenericSchema, { schema: props.schema.properties[propertyName], model: props.model && props.model[propertyName], errors: propsErrors === null || propsErrors === void 0 ? void 0 : propsErrors[propertyName], submitted: props.submitted, required: isRequired(propertyName), disabled: props.disabled, onChange: function (onChangeProps) { return onChangeProperty(propertyName, onChangeProps); }, onPersistAsync: props.onPersistAsync }) }, propertyName)); }) })] })] }));
|
|
72
72
|
}
|
|
73
73
|
ObjectSchema.defaultProps = {
|
|
74
74
|
hideTitle: false,
|
|
@@ -116,7 +116,7 @@ function OneOfSchema(props) {
|
|
|
116
116
|
function getTitleAndHelp(schema, forId) {
|
|
117
117
|
var _a;
|
|
118
118
|
var helpElement = schema.help ? _jsx(Help, { help: schema.help }) : null;
|
|
119
|
-
var titleElement = isConstSchema(schema.oneOf[0]) ? (_jsx("div", { className: "m-b-1", children: _jsxs("label", { className: "control-label d-inline", htmlFor: forId, children: [schema.title, " ", helpElement] }) })) : (_jsx(_Fragment, { children: helpElement ? (_jsxs("h4", { className: "m-b-2", children: [schema.title, " ", helpElement] })) : (_jsx(Header, { title: (_a = schema.title) !== null && _a !== void 0 ? _a : '' })) }));
|
|
119
|
+
var titleElement = isConstSchema(schema.oneOf[0]) ? (_jsx("div", { className: "m-b-1", children: _jsxs("label", { className: "control-label d-inline", htmlFor: forId, children: [schema.title, " ", helpElement] }) })) : (_jsx(_Fragment, { children: helpElement ? (_jsxs("h4", { className: "m-b-2", children: [schema.title, " ", helpElement] })) : (_jsx(Header, { title: (_a = schema.title) !== null && _a !== void 0 ? _a : '', className: "m-b-2" })) }));
|
|
120
120
|
return schema.title ? titleElement : helpElement;
|
|
121
121
|
}
|
|
122
122
|
function getValidations(props, schemaIndex) {
|
|
@@ -6,6 +6,6 @@ function DynamicDecision(_a) {
|
|
|
6
6
|
var component = _a.component, onAction = _a.onAction;
|
|
7
7
|
var loading = useDynamicFlow().loading;
|
|
8
8
|
var margin = component.margin, options = component.options, title = component.title;
|
|
9
|
-
return (_jsxs("div", { className: getMargin(margin), children: [title && _jsx(Header, { as: "h2", title: title }), _jsx(NavigationOptionsList, { children: options.map(function (option) { return (_jsx(NavigationOption, { title: option.title, content: option.description, disabled: loading || option.disabled, media: getNavigationOptionMedia(option), showMediaCircle: false, showMediaAtAllSizes: true, onClick: function () { return onAction(option.action); } }, JSON.stringify(option))); }) })] }));
|
|
9
|
+
return (_jsxs("div", { className: getMargin(margin), children: [title && _jsx(Header, { as: "h2", title: title, className: "m-b-2" }), _jsx(NavigationOptionsList, { children: options.map(function (option) { return (_jsx(NavigationOption, { title: option.title, content: option.description, disabled: loading || option.disabled, media: getNavigationOptionMedia(option), showMediaCircle: false, showMediaAtAllSizes: true, onClick: function () { return onAction(option.action); } }, JSON.stringify(option))); }) })] }));
|
|
10
10
|
}
|
|
11
11
|
export default DynamicDecision;
|
|
@@ -14,6 +14,6 @@ var DynamicInstructions = function (_a) {
|
|
|
14
14
|
var text = _a.text;
|
|
15
15
|
return text;
|
|
16
16
|
});
|
|
17
|
-
return (_jsxs("div", { className: getMargin(component.margin || 'md'), children: [component.title ? _jsx(Header, { title: component.title }) : null, _jsx(InstructionsList, { dos: dos, donts: donts })] }));
|
|
17
|
+
return (_jsxs("div", { className: getMargin(component.margin || 'md'), children: [component.title ? _jsx(Header, { title: component.title, className: "m-b-2" }) : null, _jsx(InstructionsList, { dos: dos, donts: donts })] }));
|
|
18
18
|
};
|
|
19
19
|
export default DynamicInstructions;
|
|
@@ -16,7 +16,7 @@ import { DynamicIcon } from '..';
|
|
|
16
16
|
import { getMargin } from '../utils';
|
|
17
17
|
var DynamicStatusList = function (_a) {
|
|
18
18
|
var component = _a.component;
|
|
19
|
-
return (_jsxs("div", { className: getMargin(component.margin || 'md'), children: [component.title ? _jsx(Header, { title: component.title }) : null, component.items.map(mapListItemToSummary)] }));
|
|
19
|
+
return (_jsxs("div", { className: getMargin(component.margin || 'md'), children: [component.title ? _jsx(Header, { title: component.title, className: "m-b-2" }) : null, component.items.map(mapListItemToSummary)] }));
|
|
20
20
|
};
|
|
21
21
|
var mapListItemToSummary = function (_a) {
|
|
22
22
|
var title = _a.title, description = _a.description, icon = _a.icon, status = _a.status;
|
|
@@ -54,6 +54,6 @@ function DynamicReview(props) {
|
|
|
54
54
|
var legacyCallToAction = !callToAction && review.action
|
|
55
55
|
? getReviewAction(review.action.title || '', review.action)
|
|
56
56
|
: null;
|
|
57
|
-
return (_jsxs("div", { className: margin, children: [review.title && (_jsx(Header, { title: review.title, action: callToAction || legacyCallToAction || undefined })), _jsx("div", { className: margin, children: _jsx(DefinitionList, { layout: orientation, definitions: getDefinitions(orientation, review) }) })] }));
|
|
57
|
+
return (_jsxs("div", { className: margin, children: [review.title && (_jsx(Header, { title: review.title, action: callToAction || legacyCallToAction || undefined, className: "m-b-2" })), _jsx("div", { className: margin, children: _jsx(DefinitionList, { layout: orientation, definitions: getDefinitions(orientation, review) }) })] }));
|
|
58
58
|
}
|
|
59
59
|
export default DynamicReview;
|
package/build/main.js
CHANGED
|
@@ -11290,7 +11290,7 @@ var DecisionRenderer_default = DecisionRenderer;
|
|
|
11290
11290
|
function DecisionRendererComponent({ margin, options, title }) {
|
|
11291
11291
|
const { isLoading } = useLoadingContext();
|
|
11292
11292
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: getMargin(margin), children: [
|
|
11293
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components9.Header, { as: "h2", title }),
|
|
11293
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components9.Header, { as: "h2", title, className: "m-b-2" }),
|
|
11294
11294
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_components9.NavigationOptionsList, { children: options.map(({ description, disabled, icon, image, title: title2, onClick }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
11295
11295
|
import_components9.NavigationOption,
|
|
11296
11296
|
{
|
|
@@ -11334,7 +11334,8 @@ var FormSectionRenderer = {
|
|
|
11334
11334
|
import_components10.Header,
|
|
11335
11335
|
{
|
|
11336
11336
|
as: "h2",
|
|
11337
|
-
title
|
|
11337
|
+
title,
|
|
11338
|
+
className: "m-b-2"
|
|
11338
11339
|
}
|
|
11339
11340
|
),
|
|
11340
11341
|
description && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { children: description }),
|
|
@@ -11471,7 +11472,7 @@ var InstructionsRenderer = {
|
|
|
11471
11472
|
const dos = items.filter((item) => doContext.includes(item.context)).map(({ text }) => text);
|
|
11472
11473
|
const donts = items.filter((item) => dontContext.includes(item.context)).map(({ text }) => text);
|
|
11473
11474
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: getMargin(margin), children: [
|
|
11474
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components13.Header, { title }) : null,
|
|
11475
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components13.Header, { title, className: "m-b-2" }) : null,
|
|
11475
11476
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_components13.InstructionsList, { dos, donts })
|
|
11476
11477
|
] });
|
|
11477
11478
|
}
|
|
@@ -11961,7 +11962,7 @@ function Repeatable(props) {
|
|
|
11961
11962
|
setOpenModalType(null);
|
|
11962
11963
|
};
|
|
11963
11964
|
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
|
|
11964
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.Header, { title }),
|
|
11965
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_components25.Header, { title, className: "m-b-2" }),
|
|
11965
11966
|
description && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { children: description }),
|
|
11966
11967
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
11967
11968
|
"div",
|
|
@@ -12444,7 +12445,7 @@ var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
|
12444
12445
|
var StatusListRenderer = {
|
|
12445
12446
|
canRenderType: "status-list",
|
|
12446
12447
|
render: ({ margin, items, title }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: getMargin(margin), children: [
|
|
12447
|
-
title ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Header, { title }) : null,
|
|
12448
|
+
title ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_components33.Header, { title, className: "m-b-2" }) : null,
|
|
12448
12449
|
items.map(({ description, icon, status, title: itemTitle }) => /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
12449
12450
|
import_components33.Summary,
|
|
12450
12451
|
{
|
|
@@ -12666,7 +12667,7 @@ var ReviewRenderer = {
|
|
|
12666
12667
|
}
|
|
12667
12668
|
} : void 0;
|
|
12668
12669
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: getMargin(margin), children: [
|
|
12669
|
-
(title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components36.Header, { title: title != null ? title : "", action }),
|
|
12670
|
+
(title || callToAction) && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_components36.Header, { title: title != null ? title : "", action, className: "m-b-2" }),
|
|
12670
12671
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
12671
12672
|
import_components36.DefinitionList,
|
|
12672
12673
|
{
|
|
@@ -14588,7 +14589,7 @@ function DynamicDecision({ component, onAction }) {
|
|
|
14588
14589
|
const { loading } = useDynamicFlow();
|
|
14589
14590
|
const { margin, options, title } = component;
|
|
14590
14591
|
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)("div", { className: getMargin2(margin), children: [
|
|
14591
|
-
title && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components43.Header, { as: "h2", title }),
|
|
14592
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components43.Header, { as: "h2", title, className: "m-b-2" }),
|
|
14592
14593
|
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_components43.NavigationOptionsList, { children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
14593
14594
|
import_components43.NavigationOption,
|
|
14594
14595
|
{
|
|
@@ -14678,7 +14679,7 @@ function AllOfSchema(props) {
|
|
|
14678
14679
|
};
|
|
14679
14680
|
const [models, setModels] = (0, import_react33.useState)(splitModel(props.model, props.schema.allOf));
|
|
14680
14681
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsxs)(import_jsx_runtime78.Fragment, { children: [
|
|
14681
|
-
props.schema.title && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_components45.Header, { title: props.schema.title }),
|
|
14682
|
+
props.schema.title && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_components45.Header, { title: props.schema.title, className: "m-b-2" }),
|
|
14682
14683
|
props.schema.description && /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("p", { children: props.schema.description }),
|
|
14683
14684
|
/* @__PURE__ */ (0, import_jsx_runtime78.jsx)("div", { className: "row", children: props.schema.allOf.map((schema, index) => (
|
|
14684
14685
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -15558,7 +15559,7 @@ function RepeatableSchema({
|
|
|
15558
15559
|
"has-error": (_a = errors && !isEmpty(errors)) != null ? _a : submitted && validations.length
|
|
15559
15560
|
};
|
|
15560
15561
|
return /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)("div", { id, className: (0, import_classnames9.default)(formGroupClasses), children: [
|
|
15561
|
-
schema.title && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_components51.Header, { title: schema.title }),
|
|
15562
|
+
schema.title && /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_components51.Header, { title: schema.title, className: "m-b-2" }),
|
|
15562
15563
|
itemSummaries == null ? void 0 : itemSummaries.map((itemSummary) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
15563
15564
|
ItemSummaryOption2,
|
|
15564
15565
|
{
|
|
@@ -15715,7 +15716,7 @@ function ObjectSchema(props) {
|
|
|
15715
15716
|
return /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_jsx_runtime88.Fragment, { children: [
|
|
15716
15717
|
props.schema.alert && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DynamicAlert_default, { component: props.schema.alert }),
|
|
15717
15718
|
/* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("fieldset", { children: [
|
|
15718
|
-
props.schema.title && !props.hideTitle && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_components52.Header, { title: props.schema.title, as: "legend" }),
|
|
15719
|
+
props.schema.title && !props.hideTitle && /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(import_components52.Header, { title: props.schema.title, as: "legend", className: "m-b-2" }),
|
|
15719
15720
|
props.schema.description && !props.hideTitle && /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)("p", { children: [
|
|
15720
15721
|
" ",
|
|
15721
15722
|
props.schema.description,
|
|
@@ -16687,7 +16688,7 @@ function getTitleAndHelp(schema, forId) {
|
|
|
16687
16688
|
schema.title,
|
|
16688
16689
|
" ",
|
|
16689
16690
|
helpElement
|
|
16690
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_components55.Header, { title: (_a = schema.title) != null ? _a : "" }) });
|
|
16691
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime92.jsx)(import_components55.Header, { title: (_a = schema.title) != null ? _a : "", className: "m-b-2" }) });
|
|
16691
16692
|
return schema.title ? titleElement : helpElement;
|
|
16692
16693
|
}
|
|
16693
16694
|
function getValidations(props, schemaIndex) {
|
|
@@ -17400,7 +17401,7 @@ var DynamicInstructions = ({ component }) => {
|
|
|
17400
17401
|
const dos = items.filter((item) => doContext2.includes(item.context)).map(({ text }) => text);
|
|
17401
17402
|
const donts = items.filter((item) => dontContext2.includes(item.context)).map(({ text }) => text);
|
|
17402
17403
|
return /* @__PURE__ */ (0, import_jsx_runtime107.jsxs)("div", { className: getMargin2(component.margin || "md"), children: [
|
|
17403
|
-
component.title ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components63.Header, { title: component.title }) : null,
|
|
17404
|
+
component.title ? /* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components63.Header, { title: component.title, className: "m-b-2" }) : null,
|
|
17404
17405
|
/* @__PURE__ */ (0, import_jsx_runtime107.jsx)(import_components63.InstructionsList, { dos, donts })
|
|
17405
17406
|
] });
|
|
17406
17407
|
};
|
|
@@ -17515,7 +17516,7 @@ var import_components64 = require("@transferwise/components");
|
|
|
17515
17516
|
var import_jsx_runtime109 = require("react/jsx-runtime");
|
|
17516
17517
|
var DynamicStatusList = ({ component }) => {
|
|
17517
17518
|
return /* @__PURE__ */ (0, import_jsx_runtime109.jsxs)("div", { className: getMargin2(component.margin || "md"), children: [
|
|
17518
|
-
component.title ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components64.Header, { title: component.title }) : null,
|
|
17519
|
+
component.title ? /* @__PURE__ */ (0, import_jsx_runtime109.jsx)(import_components64.Header, { title: component.title, className: "m-b-2" }) : null,
|
|
17519
17520
|
component.items.map(mapListItemToSummary)
|
|
17520
17521
|
] });
|
|
17521
17522
|
};
|
|
@@ -17684,7 +17685,14 @@ function DynamicReview(props) {
|
|
|
17684
17685
|
const callToAction = review.callToAction ? getReviewAction2(review.callToAction.title, review.callToAction.action) : null;
|
|
17685
17686
|
const legacyCallToAction = !callToAction && review.action ? getReviewAction2(review.action.title || "", review.action) : null;
|
|
17686
17687
|
return /* @__PURE__ */ (0, import_jsx_runtime112.jsxs)("div", { className: margin, children: [
|
|
17687
|
-
review.title && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
17688
|
+
review.title && /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(
|
|
17689
|
+
import_components68.Header,
|
|
17690
|
+
{
|
|
17691
|
+
title: review.title,
|
|
17692
|
+
action: callToAction || legacyCallToAction || void 0,
|
|
17693
|
+
className: "m-b-2"
|
|
17694
|
+
}
|
|
17695
|
+
),
|
|
17688
17696
|
/* @__PURE__ */ (0, import_jsx_runtime112.jsx)("div", { className: margin, children: /* @__PURE__ */ (0, import_jsx_runtime112.jsx)(import_components68.DefinitionList, { layout: orientation, definitions: getDefinitions(orientation, review) }) })
|
|
17689
17697
|
] });
|
|
17690
17698
|
}
|