@nascentdigital/funnel-ui 4.4.18 → 4.4.20
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.
|
@@ -66,7 +66,7 @@ function Outcome(_a) {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
// render block
|
|
69
|
-
return ((0, jsx_runtime_1.jsx)(Block_1.Block, Object.assign({ className: "nd-Outcome", config: outcome.config, layout: layout, renderPanel: getPanel }, props)));
|
|
69
|
+
return ((0, jsx_runtime_1.jsx)(Block_1.Block, Object.assign({ className: (0, classnames_1.default)("nd-Outcome", className), config: outcome.config, layout: layout, renderPanel: getPanel }, props)));
|
|
70
70
|
}
|
|
71
71
|
// extension
|
|
72
72
|
(function (Outcome) {
|
|
@@ -112,7 +112,7 @@ function Outcome(_a) {
|
|
|
112
112
|
.setDefault('md')
|
|
113
113
|
.optional(), detailsWidth: schema_1.ItemSize.schema
|
|
114
114
|
.modify({ semantics: 'segmented', name: 'Details Width' })
|
|
115
|
-
.keepOptions('md', 'lg')
|
|
115
|
+
.keepOptions('sm', 'md', 'lg')
|
|
116
116
|
.setDefault('md')
|
|
117
117
|
.optional(), detailsPosition: schema_1.ItemAlignment.Horizontal.schema.rename('Details Position').optional(), visualPosition: schema_1.ItemPosition.schema
|
|
118
118
|
.modify({ name: 'Visual Position' })
|
|
@@ -160,7 +160,7 @@ function getOutcomeConfig(args) {
|
|
|
160
160
|
const hasVisual = ((_a = fields === null || fields === void 0 ? void 0 : fields.visual) === null || _a === void 0 ? void 0 : _a.value) !== undefined;
|
|
161
161
|
const hasDetails = !!((_c = (_b = fields === null || fields === void 0 ? void 0 : fields.details) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.length);
|
|
162
162
|
const visualConfig = panels_1.VisualPanel.getConfig({ visual, config, aspectKey: 'visualAspect', anchorKey: 'visualAnchor' });
|
|
163
|
-
const defaultConfig = Object.assign(Object.assign(Object.assign(Object.assign({}, config), { theme: funnel_core_1.Schema.EnumField.Value.toData('default'), introPosition: funnel_core_1.Schema.EnumField.Value.toData('left'), introTextAlignment: funnel_core_1.Schema.EnumField.Value.toData('left'), introWidth: funnel_core_1.Schema.EnumField.Value.toData('md'), detailsPosition: funnel_core_1.Schema.EnumField.Value.toData('start'), detailsWidth: funnel_core_1.Schema.EnumField.Value.toData('
|
|
163
|
+
const defaultConfig = Object.assign(Object.assign(Object.assign(Object.assign({}, config), { theme: funnel_core_1.Schema.EnumField.Value.toData('default'), introPosition: funnel_core_1.Schema.EnumField.Value.toData('left'), introTextAlignment: funnel_core_1.Schema.EnumField.Value.toData('left'), introWidth: funnel_core_1.Schema.EnumField.Value.toData('md'), detailsPosition: funnel_core_1.Schema.EnumField.Value.toData('start'), detailsWidth: funnel_core_1.Schema.EnumField.Value.toData('sm'), visualPosition: funnel_core_1.Schema.EnumField.Value.toData('left') }), visualConfig.defaultConfig), { contentAlignment: funnel_core_1.Schema.EnumField.Value.toData('start') });
|
|
164
164
|
// current values or fallback to a valid value
|
|
165
165
|
const introPosition = (_d = funnel_core_1.Schema.EnumField.Value.fromData(config.introPosition)) !== null && _d !== void 0 ? _d : (_e = defaultConfig.introPosition) === null || _e === void 0 ? void 0 : _e.value;
|
|
166
166
|
const introTextAlignment = (_f = funnel_core_1.Schema.EnumField.Value.fromData(config.introTextAlignment)) !== null && _f !== void 0 ? _f : (_g = defaultConfig.introTextAlignment) === null || _g === void 0 ? void 0 : _g.value;
|
|
@@ -485,5 +485,5 @@ function renderDetails({ className, panel, details, detailsTag, detailTag }) {
|
|
|
485
485
|
return undefined;
|
|
486
486
|
}
|
|
487
487
|
// render details
|
|
488
|
-
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(className, 'nd-Outcome-detailsWrap'), children: (0, react_1.createElement)(detailsTag, { className: 'nd-Outcome-details' }, details.map(detail => ((0, jsx_runtime_1.jsx)(OutcomeDetail_1.OutcomeDetail, { as: detailTag, detail: detail }, detail.id)))) }));
|
|
488
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(className, panels_1.BlockPanel.getClassNames({ panel }), 'nd-Outcome-detailsWrap'), children: (0, react_1.createElement)(detailsTag, { className: 'nd-BlockPanel-content nd-Outcome-details' }, details.map(detail => ((0, jsx_runtime_1.jsx)(OutcomeDetail_1.OutcomeDetail, { as: detailTag, detail: detail }, detail.id)))) }));
|
|
489
489
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nascentdigital/funnel-ui",
|
|
3
3
|
"description": "UI components for funnel",
|
|
4
|
-
"version": "4.4.
|
|
4
|
+
"version": "4.4.20",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/",
|
|
7
7
|
"access": "restricted"
|
|
@@ -69,5 +69,5 @@
|
|
|
69
69
|
"react-dom": "^19",
|
|
70
70
|
"ts-jest": "^29.3.2"
|
|
71
71
|
},
|
|
72
|
-
"gitHead": "
|
|
73
|
-
}
|
|
72
|
+
"gitHead": "1e8d8289152d4ce68091e38773c0d766b6f289c3"
|
|
73
|
+
}
|