iglooform 2.4.7 → 2.4.11
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/es/admin-upload/float.js +25 -35
- package/es/admin-upload/index.d.ts +2 -0
- package/es/admin-upload/index.js +43 -36
- package/es/admin-upload/job-list.js +85 -115
- package/es/admin-upload/modal.js +19 -26
- package/es/alert-message/index.js +11 -9
- package/es/amount/index.js +10 -5
- package/es/back-top/index.js +14 -10
- package/es/button/index.js +23 -28
- package/es/button/style/index.less +23 -19
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +16 -21
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/style/index.less +13 -0
- package/es/card-detail/utils.js +6 -7
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +53 -70
- package/es/confirmation/index.js +7 -9
- package/es/date-picker/buddhist.js +3 -3
- package/es/date-picker/index.js +10 -4
- package/es/declaration/index.js +16 -13
- package/es/detail-panel/index.js +67 -83
- package/es/documents/index.js +6 -8
- package/es/example/index.js +9 -11
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.d.ts +1 -0
- package/es/filter/index.js +88 -112
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/addable-section/index.d.ts +19 -0
- package/es/form/addable-section/index.js +211 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.js +1 -0
- package/es/form/addable-section/style/index.less +22 -0
- package/es/form/divider/index.js +7 -1
- package/es/form/element/index.js +58 -47
- package/es/form/element/style/index.less +9 -0
- package/es/form/index.js +16 -17
- package/es/form/login/index.js +15 -20
- package/es/form/page/index.js +18 -24
- package/es/form/page/style/index.less +1 -1
- package/es/form/pages/index.js +23 -32
- package/es/form/pages/style/index.less +3 -1
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +14 -17
- package/es/form/step/index.js +31 -42
- package/es/form/steps/index.js +8 -11
- package/es/{form/context.d.ts → form-context.d.ts} +1 -0
- package/es/{form/context.js → form-context.js} +0 -0
- package/es/free-form/addable-section/index.d.ts +18 -0
- package/es/free-form/addable-section/index.js +286 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.js +1 -0
- package/es/free-form/addable-section/style/index.less +22 -0
- package/es/free-form/element/index.js +43 -41
- package/es/free-form/element/style/index.less +12 -2
- package/es/free-form/index.d.ts +5 -1
- package/es/free-form/index.js +17 -17
- package/es/free-form/page/index.js +36 -46
- package/es/free-form/page/style/index.less +3 -1
- package/es/free-form/pages/index.js +8 -10
- package/es/free-form/section/index.js +20 -22
- package/es/free-form/section/style/index.less +4 -0
- package/es/free-form/step/index.js +37 -47
- package/es/free-form/steps/index.js +8 -10
- package/es/global-message/index.js +1 -1
- package/es/home-menu/index.js +52 -71
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/amount.js +10 -5
- package/es/input/credit-card.js +7 -1
- package/es/input/email.js +8 -1
- package/es/input/expiry-date.js +14 -18
- package/es/input/input-date.js +12 -16
- package/es/input/input-number.js +9 -2
- package/es/input/input.js +9 -2
- package/es/input/otp.js +17 -15
- package/es/input/password.js +12 -6
- package/es/input/phone-number.js +6 -8
- package/es/input/style/index.less +9 -1
- package/es/input/text-area.js +14 -10
- package/es/layout/defaultFooter.js +60 -82
- package/es/layout/defaultHeader.js +11 -15
- package/es/layout/footer.js +108 -148
- package/es/layout/header.js +51 -60
- package/es/layout/index.js +16 -12
- package/es/locale/en-US/messages.json +2 -0
- package/es/locale/id-ID/messages.json +2 -0
- package/es/locale/locale-provider.js +8 -10
- package/es/locale/th-TH/messages.json +2 -0
- package/es/locale/vi-VN/messages.json +2 -0
- package/es/locale/zh-CN/messages.json +2 -0
- package/es/login-page/index.js +30 -42
- package/es/media/index.js +20 -27
- package/es/media/media.js +9 -12
- package/es/media/preview.js +8 -10
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.d.ts +4 -3
- package/es/modal/index.js +25 -27
- package/es/modal/style/index.less +24 -5
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +11 -14
- package/es/policy-list/policy-card.js +119 -153
- package/es/radio/index.js +33 -35
- package/es/select/attached-select.js +31 -34
- package/es/select/select.js +12 -8
- package/es/select/style/index.less +1 -1
- package/es/select/time-select.js +12 -16
- package/es/status-box/index.js +8 -10
- package/es/table/index.js +72 -96
- package/es/tabs/index.js +7 -1
- package/es/types.d.ts +4 -2
- package/es/typography/index.js +6 -8
- package/es/upload/index.d.ts +2 -1
- package/es/upload/index.js +169 -143
- package/es/upload-photo/index.d.ts +2 -1
- package/es/upload-photo/index.js +170 -142
- package/es/upload-photo/media.js +3 -4
- package/es/upload-preview/index.js +9 -12
- package/es/upload-preview/media.js +12 -16
- package/es/upload-preview/style/index.less +2 -2
- package/es/utils/form-utils.js +49 -36
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.d.ts +2 -0
- package/lib/admin-upload/index.js +43 -36
- package/lib/admin-upload/job-list.js +85 -115
- package/lib/admin-upload/modal.js +19 -26
- package/lib/alert-message/index.js +11 -9
- package/lib/amount/index.js +10 -5
- package/lib/back-top/index.js +14 -10
- package/lib/button/index.js +24 -29
- package/lib/button/style/index.less +23 -19
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +16 -21
- package/lib/card-detail/card-page.js +11 -15
- package/lib/card-detail/card.js +24 -24
- package/lib/card-detail/index.js +6 -6
- package/lib/card-detail/style/index.less +13 -0
- package/lib/card-detail/utils.js +7 -8
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +53 -70
- package/lib/confirmation/index.js +7 -9
- package/lib/date-picker/buddhist.js +3 -3
- package/lib/date-picker/index.js +11 -5
- package/lib/declaration/index.js +16 -13
- package/lib/detail-panel/index.js +67 -83
- package/lib/documents/index.js +6 -8
- package/lib/example/index.js +10 -12
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.d.ts +1 -0
- package/lib/filter/index.js +88 -112
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/addable-section/index.d.ts +19 -0
- package/lib/form/addable-section/index.js +232 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.js +3 -0
- package/lib/form/addable-section/style/index.less +22 -0
- package/lib/form/divider/index.js +7 -1
- package/lib/form/element/index.js +60 -48
- package/lib/form/element/style/index.less +9 -0
- package/lib/form/elements.js +1 -1
- package/lib/form/index.js +16 -17
- package/lib/form/login/index.js +16 -21
- package/lib/form/page/index.js +19 -25
- package/lib/form/page/style/index.less +1 -1
- package/lib/form/pages/index.js +24 -33
- package/lib/form/pages/style/index.less +3 -1
- package/lib/form/render/index.js +2 -2
- package/lib/form/section/index.js +15 -18
- package/lib/form/step/index.js +32 -43
- package/lib/form/steps/index.js +9 -12
- package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
- package/lib/{form/context.js → form-context.js} +0 -0
- package/lib/free-form/addable-section/index.d.ts +18 -0
- package/lib/free-form/addable-section/index.js +306 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.js +3 -0
- package/lib/free-form/addable-section/style/index.less +22 -0
- package/lib/free-form/element/index.js +44 -42
- package/lib/free-form/element/style/index.less +12 -2
- package/lib/free-form/index.d.ts +5 -1
- package/lib/free-form/index.js +17 -17
- package/lib/free-form/page/index.js +37 -47
- package/lib/free-form/page/style/index.less +3 -1
- package/lib/free-form/pages/index.js +8 -10
- package/lib/free-form/section/index.js +21 -23
- package/lib/free-form/section/style/index.less +4 -0
- package/lib/free-form/step/index.js +38 -48
- package/lib/free-form/steps/index.js +9 -11
- package/lib/global-message/index.js +1 -1
- package/lib/home-menu/index.js +52 -71
- package/lib/index.d.ts +1 -0
- package/lib/index.js +141 -132
- package/lib/input/amount.js +10 -5
- package/lib/input/credit-card.js +7 -1
- package/lib/input/email.js +7 -1
- package/lib/input/expiry-date.js +14 -18
- package/lib/input/index.js +18 -18
- package/lib/input/input-date.js +12 -16
- package/lib/input/input-number.js +8 -2
- package/lib/input/input.js +8 -2
- package/lib/input/otp.js +17 -15
- package/lib/input/password.js +11 -6
- package/lib/input/phone-number.js +6 -8
- package/lib/input/style/index.less +9 -1
- package/lib/input/text-area.js +14 -10
- package/lib/layout/defaultFooter.js +60 -82
- package/lib/layout/defaultHeader.js +11 -15
- package/lib/layout/footer.js +108 -148
- package/lib/layout/header.js +51 -60
- package/lib/layout/index.js +15 -12
- package/lib/locale/en-US/messages.json +2 -0
- package/lib/locale/format-message.js +1 -1
- package/lib/locale/id-ID/messages.json +2 -0
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +9 -11
- package/lib/locale/th-TH/messages.json +2 -0
- package/lib/locale/vi-VN/messages.json +2 -0
- package/lib/locale/zh-CN/messages.json +2 -0
- package/lib/login-page/index.js +30 -42
- package/lib/media/index.js +20 -27
- package/lib/media/media.js +9 -12
- package/lib/media/preview.js +8 -10
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.d.ts +4 -3
- package/lib/modal/index.js +25 -27
- package/lib/modal/style/index.less +24 -5
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +11 -14
- package/lib/policy-list/policy-card.js +119 -153
- package/lib/radio/index.js +33 -35
- package/lib/select/attached-select.js +32 -35
- package/lib/select/select.js +13 -9
- package/lib/select/style/index.less +1 -1
- package/lib/select/time-select.js +12 -16
- package/lib/status-box/index.js +8 -10
- package/lib/table/index.js +72 -96
- package/lib/tabs/index.js +8 -2
- package/lib/types.d.ts +4 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.d.ts +2 -1
- package/lib/upload/index.js +170 -143
- package/lib/upload-photo/index.d.ts +2 -1
- package/lib/upload-photo/index.js +171 -142
- package/lib/upload-photo/media.js +3 -4
- package/lib/upload-preview/index.js +9 -12
- package/lib/upload-preview/media.js +12 -16
- package/lib/upload-preview/style/index.less +2 -2
- package/lib/utils/form-utils.js +49 -37
- package/package.json +1 -1
- package/es/free-form/context.d.ts +0 -19
- package/es/free-form/context.js +0 -7
- package/lib/free-form/context.d.ts +0 -19
- package/lib/free-form/context.js +0 -19
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.igloo-addable-section-container {
|
|
2
|
+
.igloo-addable-section {
|
|
3
|
+
.igloo-addable-section-label {
|
|
4
|
+
.igloo-addable-section-label-remove {
|
|
5
|
+
height: auto;
|
|
6
|
+
border: none;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.igloo-addable-section-content {
|
|
11
|
+
margin-top: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& + .igloo-addable-section {
|
|
15
|
+
margin-top: 24px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.igloo-addable-section-button {
|
|
20
|
+
min-width: 221px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -25,11 +25,11 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
25
25
|
|
|
26
26
|
var _react = require("react");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _iglooicon = require("iglooicon");
|
|
29
29
|
|
|
30
30
|
var _formUtils = require("../../utils/form-utils");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _formContext = _interopRequireDefault(require("../../form-context"));
|
|
33
33
|
|
|
34
34
|
var _omit = _interopRequireDefault(require("omit.js"));
|
|
35
35
|
|
|
@@ -39,18 +39,18 @@ require("./style/index.less");
|
|
|
39
39
|
|
|
40
40
|
var _invariant = _interopRequireDefault(require("invariant"));
|
|
41
41
|
|
|
42
|
-
var _excluded = ["parentName", "preview", "
|
|
42
|
+
var _excluded = ["parentName", "preview", "disabledFromParent", "children"],
|
|
43
43
|
_excluded2 = ["halfRow"];
|
|
44
44
|
|
|
45
45
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
46
46
|
|
|
47
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
47
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
48
48
|
|
|
49
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
49
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
50
50
|
|
|
51
51
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
52
52
|
|
|
53
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
53
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
54
54
|
|
|
55
55
|
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
56
56
|
|
|
@@ -81,14 +81,13 @@ var useBreakpoint = _grid.default.useBreakpoint;
|
|
|
81
81
|
var Element = function Element(props) {
|
|
82
82
|
var parentName = props.parentName,
|
|
83
83
|
preview = props.preview,
|
|
84
|
-
disabled = props.disabled,
|
|
85
84
|
disabledFromParent = props.disabledFromParent,
|
|
86
85
|
children = props.children,
|
|
87
86
|
rest = _objectWithoutProperties(props, _excluded);
|
|
88
87
|
|
|
89
88
|
(0, _invariant.default)(!(rest.selectValue || rest.copyValue || rest.initialValue) || rest.name, 'Form item with selectValue/copyValue/initialValue should have a name.');
|
|
90
89
|
|
|
91
|
-
var _useContext = (0, _react.useContext)(
|
|
90
|
+
var _useContext = (0, _react.useContext)(_formContext.default),
|
|
92
91
|
form = _useContext.form,
|
|
93
92
|
requiredMark = _useContext.requiredMark,
|
|
94
93
|
registerDependencies = _useContext.registerDependencies;
|
|
@@ -109,7 +108,9 @@ var Element = function Element(props) {
|
|
|
109
108
|
dependField = props.dependField,
|
|
110
109
|
getOptions = props.getOptions,
|
|
111
110
|
subscribedFields = props.subscribedFields,
|
|
112
|
-
extraLabel = props.extraLabel
|
|
111
|
+
extraLabel = props.extraLabel,
|
|
112
|
+
disabled = props.disabled,
|
|
113
|
+
requiredAsserts = props.requiredAsserts;
|
|
113
114
|
var dependentField = dependencies || [];
|
|
114
115
|
|
|
115
116
|
if (Array.isArray(subscribedFields)) {
|
|
@@ -123,13 +124,20 @@ var Element = function Element(props) {
|
|
|
123
124
|
});
|
|
124
125
|
}
|
|
125
126
|
|
|
127
|
+
if (requiredAsserts && requiredAsserts.length) {
|
|
128
|
+
requiredAsserts.forEach(function (_ref2) {
|
|
129
|
+
var field = _ref2.field;
|
|
130
|
+
return dependentField.push(field);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
126
134
|
if (copyValue) {
|
|
127
135
|
dependentField.push(copyValue.assert.field);
|
|
128
136
|
}
|
|
129
137
|
|
|
130
138
|
if (selectValue && selectValue.length) {
|
|
131
|
-
selectValue.forEach(function (
|
|
132
|
-
var assert =
|
|
139
|
+
selectValue.forEach(function (_ref3) {
|
|
140
|
+
var assert = _ref3.assert;
|
|
133
141
|
return dependentField.push(assert.field);
|
|
134
142
|
});
|
|
135
143
|
}
|
|
@@ -143,8 +151,8 @@ var Element = function Element(props) {
|
|
|
143
151
|
}
|
|
144
152
|
|
|
145
153
|
if (Array.isArray(disabled)) {
|
|
146
|
-
disabled.forEach(function (
|
|
147
|
-
var field =
|
|
154
|
+
disabled.forEach(function (_ref4) {
|
|
155
|
+
var field = _ref4.field;
|
|
148
156
|
return dependentField.push(field);
|
|
149
157
|
});
|
|
150
158
|
} else if (_typeof(disabled) === 'object') {
|
|
@@ -232,7 +240,7 @@ var Element = function Element(props) {
|
|
|
232
240
|
var transformChildren = function transformChildren() {
|
|
233
241
|
if (! /*#__PURE__*/(0, _react.isValidElement)(children)) return children;
|
|
234
242
|
return /*#__PURE__*/(0, _react.cloneElement)(children, _objectSpread(_objectSpread(_objectSpread({}, children.props), elementProps), {}, {
|
|
235
|
-
disabled: elementProps.disabled || disabledFromParent,
|
|
243
|
+
disabled: children.props.disabled || elementProps.disabled || disabledFromParent,
|
|
236
244
|
containerRef: ref,
|
|
237
245
|
setFieldError: setFieldError,
|
|
238
246
|
setFieldValue: setFieldValue,
|
|
@@ -244,75 +252,69 @@ var Element = function Element(props) {
|
|
|
244
252
|
if (!display) return null;
|
|
245
253
|
|
|
246
254
|
if (preview) {
|
|
247
|
-
return (0, _jsxRuntime.jsx)(_col.default,
|
|
255
|
+
return (0, _jsxRuntime.jsx)(_col.default, {
|
|
248
256
|
span: 24,
|
|
249
257
|
className: (0, _classnames.default)('igloo-freeform-element-preview', {
|
|
250
258
|
'igloo-freeform-element-preview-hide': props.hideWhenPreview,
|
|
251
259
|
'igloo-freeform-element-preview-hide-divider': props.hidePreviewDivider
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
children: (0, _jsxRuntime.jsx)(_form.default.Item, Object.assign({}, (0, _omit.default)(formItemProps, ['copiedValue', 'selectedValue']), {
|
|
260
|
+
}),
|
|
261
|
+
children: (0, _jsxRuntime.jsx)(_form.default.Item, _objectSpread(_objectSpread({}, (0, _omit.default)(formItemProps, ['copiedValue', 'selectedValue'])), {}, {
|
|
255
262
|
labelCol: {
|
|
256
263
|
span: 24
|
|
257
264
|
},
|
|
258
265
|
wrapperCol: {
|
|
259
266
|
span: 24
|
|
260
267
|
},
|
|
261
|
-
label: null
|
|
262
|
-
|
|
263
|
-
children: (0, _jsxRuntime.jsxs)(_row.default, Object.assign({
|
|
268
|
+
label: null,
|
|
269
|
+
children: (0, _jsxRuntime.jsxs)(_row.default, {
|
|
264
270
|
className: "igloo-freeform-element-preview-item",
|
|
265
271
|
gutter: {
|
|
266
272
|
md: 32,
|
|
267
273
|
sm: 0,
|
|
268
274
|
xs: 0
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
children: [(rest.previewLabel || rest.label) && (0, _jsxRuntime.jsx)(_col.default, Object.assign({
|
|
275
|
+
},
|
|
276
|
+
children: [(rest.previewLabel || rest.label) && (0, _jsxRuntime.jsx)(_col.default, {
|
|
272
277
|
span: 12,
|
|
273
278
|
md: 12,
|
|
274
279
|
sm: 24,
|
|
275
280
|
xs: 24,
|
|
276
|
-
className: "igloo-freeform-element-preview-label"
|
|
277
|
-
}, {
|
|
281
|
+
className: "igloo-freeform-element-preview-label",
|
|
278
282
|
children: rest.previewLabel || rest.label
|
|
279
|
-
}
|
|
283
|
+
}, void 0), (0, _jsxRuntime.jsxs)(_col.default, {
|
|
280
284
|
span: rest.previewLabel || rest.label ? 12 : 24,
|
|
281
285
|
md: rest.previewLabel || rest.label ? 12 : 24,
|
|
282
286
|
sm: 24,
|
|
283
287
|
xs: 24,
|
|
284
|
-
className: "igloo-freeform-element-preview-value"
|
|
285
|
-
|
|
286
|
-
children: [error && !!error.length && (0, _jsxRuntime.jsx)(_icons.CloseCircleFilled, {
|
|
288
|
+
className: "igloo-freeform-element-preview-value",
|
|
289
|
+
children: [error && !!error.length && (0, _jsxRuntime.jsx)(_iglooicon.AlertFilled, {
|
|
287
290
|
className: "igloo-freeform-element-preview-value-icon"
|
|
288
291
|
}, void 0), previewFormater ? previewFormater(value, form) : value || '-']
|
|
289
|
-
}
|
|
290
|
-
}
|
|
292
|
+
}, void 0)]
|
|
293
|
+
}, void 0)
|
|
291
294
|
}), void 0)
|
|
292
|
-
}
|
|
295
|
+
}, void 0);
|
|
293
296
|
}
|
|
294
297
|
|
|
295
|
-
return props.hideWhenEdit ? null : (0, _jsxRuntime.jsx)(_col.default,
|
|
296
|
-
className: "igloo-freeform-item"
|
|
297
|
-
|
|
298
|
-
children: (0, _jsxRuntime.jsx)("div", Object.assign({
|
|
298
|
+
return props.hideWhenEdit ? null : (0, _jsxRuntime.jsx)(_col.default, _objectSpread(_objectSpread({}, restColProps), {}, {
|
|
299
|
+
className: "igloo-freeform-item",
|
|
300
|
+
children: (0, _jsxRuntime.jsx)("div", {
|
|
299
301
|
ref: ref,
|
|
300
302
|
style: {
|
|
301
303
|
width: halfRow && md ? '50%' : '100%',
|
|
302
304
|
paddingRight: halfRow && md ? 16 : 0
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
children: (0, _jsxRuntime.jsx)(_form.default.Item, Object.assign({
|
|
305
|
+
},
|
|
306
|
+
children: (0, _jsxRuntime.jsx)(_form.default.Item, _objectSpread(_objectSpread({
|
|
306
307
|
labelCol: {
|
|
307
308
|
span: 24
|
|
308
309
|
},
|
|
309
310
|
wrapperCol: {
|
|
310
311
|
span: 24
|
|
311
312
|
}
|
|
312
|
-
}, (0, _omit.default)(formItemProps, ['copiedValue', 'selectedValue']), {
|
|
313
|
+
}, (0, _omit.default)(formItemProps, ['copiedValue', 'selectedValue'])), {}, {
|
|
314
|
+
className: "igloo-freeform-element-edit",
|
|
313
315
|
children: transformChildren()
|
|
314
316
|
}), void 0)
|
|
315
|
-
}
|
|
317
|
+
}, void 0)
|
|
316
318
|
}), void 0);
|
|
317
319
|
};
|
|
318
320
|
|
|
@@ -20,12 +20,17 @@
|
|
|
20
20
|
white-space: pre-wrap;
|
|
21
21
|
word-break: break-word;
|
|
22
22
|
line-height: 24px;
|
|
23
|
+
|
|
24
|
+
.igloo-freeform-element-preview-value-icon {
|
|
25
|
+
color: @error-color;
|
|
26
|
+
margin-right: 8px;
|
|
27
|
+
}
|
|
23
28
|
}
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
.ant-form-item-explain-error {
|
|
27
32
|
margin-top: 0;
|
|
28
|
-
margin-left: 50
|
|
33
|
+
margin-left: calc(~'50%' + 16px);
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
.ant-form-item-extra,
|
|
@@ -33,7 +38,8 @@
|
|
|
33
38
|
display: none;
|
|
34
39
|
}
|
|
35
40
|
|
|
36
|
-
.ant-form-item-explain-error
|
|
41
|
+
.ant-form-item-explain-error,
|
|
42
|
+
.ant-form-item-explain-connected {
|
|
37
43
|
display: block;
|
|
38
44
|
}
|
|
39
45
|
}
|
|
@@ -71,6 +77,10 @@
|
|
|
71
77
|
}
|
|
72
78
|
}
|
|
73
79
|
|
|
80
|
+
.igloo-freeform-element-edit {
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
}
|
|
83
|
+
|
|
74
84
|
.ant-form-item-control-input {
|
|
75
85
|
min-height: unset;
|
|
76
86
|
}
|
package/lib/free-form/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
|
+
import { Form } from 'antd';
|
|
2
3
|
import { FormBasicConfig } from '../types';
|
|
3
4
|
import './style/index.less';
|
|
4
5
|
interface FreeFormProps extends Omit<FormBasicConfig, 'config'> {
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
+
interface FreeFormType extends FC<FreeFormProps> {
|
|
8
|
+
useForm: typeof Form.useForm;
|
|
9
|
+
}
|
|
10
|
+
declare const FreeForm: FreeFormType;
|
|
7
11
|
export default FreeForm;
|
package/lib/free-form/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
|
|
14
14
|
var _react = require("react");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _formContext = _interopRequireDefault(require("../form-context"));
|
|
17
17
|
|
|
18
18
|
var _messages = _interopRequireDefault(require("./messages"));
|
|
19
19
|
|
|
@@ -25,9 +25,9 @@ var _excluded = ["validateMessages"];
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
28
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
29
29
|
|
|
30
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
30
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
31
31
|
|
|
32
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
33
33
|
|
|
@@ -70,7 +70,8 @@ var FreeForm = function FreeForm(props) {
|
|
|
70
70
|
return window;
|
|
71
71
|
} : _props$getScrollConta,
|
|
72
72
|
_props$onFirstModifie = props.onFirstModified,
|
|
73
|
-
onFirstModified = _props$onFirstModifie === void 0 ? function () {} : _props$onFirstModifie
|
|
73
|
+
onFirstModified = _props$onFirstModifie === void 0 ? function () {} : _props$onFirstModifie,
|
|
74
|
+
uploadApi = props.uploadApi;
|
|
74
75
|
|
|
75
76
|
var _Form$useForm = _form.default.useForm(),
|
|
76
77
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -197,13 +198,12 @@ var FreeForm = function FreeForm(props) {
|
|
|
197
198
|
}
|
|
198
199
|
};
|
|
199
200
|
|
|
200
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
201
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
201
202
|
className: (0, _classnames.default)(className, {
|
|
202
203
|
'igloo-freeform-without-button': !showSubmitButton
|
|
203
204
|
}),
|
|
204
|
-
style: style
|
|
205
|
-
|
|
206
|
-
children: (0, _jsxRuntime.jsx)(_context2.default.Provider, Object.assign({
|
|
205
|
+
style: style,
|
|
206
|
+
children: (0, _jsxRuntime.jsx)(_formContext.default.Provider, {
|
|
207
207
|
value: _objectSpread({
|
|
208
208
|
form: form,
|
|
209
209
|
onCancel: onCancel,
|
|
@@ -211,23 +211,23 @@ var FreeForm = function FreeForm(props) {
|
|
|
211
211
|
requiredMark: requiredMark,
|
|
212
212
|
showSubmitButton: showSubmitButton,
|
|
213
213
|
getScrollContainer: getScrollContainer,
|
|
214
|
-
registerDependencies: registerDependencies
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
children: (0, _jsxRuntime.jsx)(_form.default,
|
|
214
|
+
registerDependencies: registerDependencies,
|
|
215
|
+
uploadApi: uploadApi
|
|
216
|
+
}, locales),
|
|
217
|
+
children: (0, _jsxRuntime.jsx)(_form.default, {
|
|
218
218
|
form: form,
|
|
219
219
|
onFinish: handleSubmit,
|
|
220
220
|
onFieldsChange: handleValuesChange,
|
|
221
221
|
colon: false,
|
|
222
222
|
validateMessages: validateMessages || _messages.default,
|
|
223
223
|
initialValues: initialValues,
|
|
224
|
-
scrollToFirstError: true
|
|
225
|
-
}, {
|
|
224
|
+
scrollToFirstError: true,
|
|
226
225
|
children: children
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
226
|
+
}, void 0)
|
|
227
|
+
}, void 0)
|
|
228
|
+
}, void 0);
|
|
230
229
|
};
|
|
231
230
|
|
|
231
|
+
FreeForm.useForm = _form.default.useForm;
|
|
232
232
|
var _default = FreeForm;
|
|
233
233
|
exports.default = _default;
|
|
@@ -21,7 +21,7 @@ var _button = _interopRequireDefault(require("../../button"));
|
|
|
21
21
|
|
|
22
22
|
var _formUtils = require("../../utils/form-utils");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _formContext = _interopRequireDefault(require("../../form-context"));
|
|
25
25
|
|
|
26
26
|
var _locale = require("../../locale");
|
|
27
27
|
|
|
@@ -35,9 +35,9 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try
|
|
|
35
35
|
|
|
36
36
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
37
37
|
|
|
38
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
38
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
39
39
|
|
|
40
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
40
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
41
41
|
|
|
42
42
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
43
|
|
|
@@ -74,7 +74,7 @@ var Page = function Page(_ref) {
|
|
|
74
74
|
shouldRender = _ref.shouldRender,
|
|
75
75
|
subscribedFields = _ref.subscribedFields;
|
|
76
76
|
|
|
77
|
-
var _useContext = (0, _react.useContext)(
|
|
77
|
+
var _useContext = (0, _react.useContext)(_formContext.default),
|
|
78
78
|
submitText = _useContext.submitText,
|
|
79
79
|
previewText = _useContext.previewText,
|
|
80
80
|
nextText = _useContext.nextText,
|
|
@@ -112,10 +112,11 @@ var Page = function Page(_ref) {
|
|
|
112
112
|
return children.map(function (c, index) {
|
|
113
113
|
var _c$type;
|
|
114
114
|
|
|
115
|
-
if (['Igloo_Free_Form_Item', 'Igloo_Free_Form_Section'].includes(c === null || c === void 0 ? void 0 : (_c$type = c.type) === null || _c$type === void 0 ? void 0 : _c$type.displayName)) {
|
|
116
|
-
return /*#__PURE__*/(0, _react.cloneElement)(c, _objectSpread(_objectSpread({
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
if (['Igloo_Free_Form_Item', 'Igloo_Free_Form_Section', 'Igloo_Free_Form_AddabledSection'].includes(c === null || c === void 0 ? void 0 : (_c$type = c.type) === null || _c$type === void 0 ? void 0 : _c$type.displayName)) {
|
|
116
|
+
return /*#__PURE__*/(0, _react.cloneElement)(c, _objectSpread(_objectSpread({
|
|
117
|
+
key: index
|
|
118
|
+
}, c.props), {}, {
|
|
119
|
+
parentName: pName
|
|
119
120
|
}));
|
|
120
121
|
}
|
|
121
122
|
|
|
@@ -200,90 +201,79 @@ var Page = function Page(_ref) {
|
|
|
200
201
|
};
|
|
201
202
|
}();
|
|
202
203
|
|
|
203
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
204
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
204
205
|
className: 'igloo-freeform-page-container',
|
|
205
206
|
style: {
|
|
206
207
|
display: current === index ? 'block' : 'none'
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
children: [(0, _jsxRuntime.jsx)(_typography.default, Object.assign({
|
|
208
|
+
},
|
|
209
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
210
210
|
level: "h3b",
|
|
211
211
|
wrapElement: "div",
|
|
212
212
|
style: {
|
|
213
213
|
marginBottom: 8
|
|
214
|
-
}
|
|
215
|
-
}, {
|
|
214
|
+
},
|
|
216
215
|
children: label
|
|
217
|
-
}
|
|
216
|
+
}, void 0), (0, _jsxRuntime.jsx)(_typography.default, {
|
|
218
217
|
level: "body1",
|
|
219
218
|
wrapElement: "div",
|
|
220
219
|
style: {
|
|
221
220
|
marginBottom: 24,
|
|
222
221
|
color: '#666666'
|
|
223
|
-
}
|
|
224
|
-
}, {
|
|
222
|
+
},
|
|
225
223
|
children: description
|
|
226
|
-
}
|
|
227
|
-
className: 'igloo-freeform-page-content'
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
gutter: [32, 24]
|
|
231
|
-
}, {
|
|
224
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
225
|
+
className: 'igloo-freeform-page-content',
|
|
226
|
+
children: (0, _jsxRuntime.jsx)(_row.default, {
|
|
227
|
+
gutter: [32, 24],
|
|
232
228
|
children: tranformChildren()
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
className: 'igloo-freeform-page-footer'
|
|
236
|
-
}, {
|
|
229
|
+
}, void 0)
|
|
230
|
+
}, void 0), showFooter && showSubmitButton && (current === undefined || index === undefined || total === undefined ? (0, _jsxRuntime.jsxs)("div", {
|
|
231
|
+
className: 'igloo-freeform-page-footer',
|
|
237
232
|
children: [buttonPlacement === 'right' && (0, _jsxRuntime.jsx)("div", {}, void 0), (0, _jsxRuntime.jsx)(_form.default.Item, {
|
|
238
|
-
children: (0, _jsxRuntime.jsx)(_button.default,
|
|
233
|
+
children: (0, _jsxRuntime.jsx)(_button.default, {
|
|
239
234
|
type: "primary",
|
|
240
235
|
htmlType: "submit",
|
|
241
236
|
className: 'igloo-freeform-page-submit-button',
|
|
242
237
|
loading: submitting,
|
|
243
|
-
disabled: buttonDisabled
|
|
244
|
-
}, {
|
|
238
|
+
disabled: buttonDisabled,
|
|
245
239
|
children: submitText || formatMessage({
|
|
246
240
|
id: 'Submit'
|
|
247
241
|
})
|
|
248
|
-
}
|
|
242
|
+
}, void 0)
|
|
249
243
|
}, void 0), buttonPlacement === 'left' && (0, _jsxRuntime.jsx)("div", {}, void 0)]
|
|
250
|
-
}
|
|
251
|
-
className: 'igloo-freeform-page-footer'
|
|
252
|
-
|
|
253
|
-
children: [index === 0 && (0, _jsxRuntime.jsx)("div", {}, void 0), index > 0 && total > 1 && (0, _jsxRuntime.jsx)(_button.default, Object.assign({
|
|
244
|
+
}, void 0) : (0, _jsxRuntime.jsxs)("div", {
|
|
245
|
+
className: 'igloo-freeform-page-footer',
|
|
246
|
+
children: [index === 0 && (0, _jsxRuntime.jsx)("div", {}, void 0), index > 0 && total > 1 && (0, _jsxRuntime.jsx)(_button.default, {
|
|
254
247
|
className: 'igloo-freeform-page-preview-button',
|
|
255
248
|
onClick: function onClick() {
|
|
256
249
|
return handlePreviousPage && handlePreviousPage(index);
|
|
257
250
|
},
|
|
258
|
-
disabled: previousDisabled
|
|
259
|
-
}, {
|
|
251
|
+
disabled: previousDisabled,
|
|
260
252
|
children: previewText || formatMessage({
|
|
261
253
|
id: 'Previous'
|
|
262
254
|
})
|
|
263
|
-
}
|
|
255
|
+
}, void 0), index < total - 1 && (0, _jsxRuntime.jsx)(_button.default, {
|
|
264
256
|
className: 'igloo-freeform-page-next-button',
|
|
265
257
|
onClick: handleNext,
|
|
266
258
|
disabled: buttonDisabled,
|
|
267
|
-
type: "primary"
|
|
268
|
-
}, {
|
|
259
|
+
type: "primary",
|
|
269
260
|
children: nextText || formatMessage({
|
|
270
261
|
id: 'Next'
|
|
271
262
|
})
|
|
272
|
-
}
|
|
273
|
-
children: (0, _jsxRuntime.jsx)(_button.default,
|
|
263
|
+
}, void 0), current === total - 1 && (0, _jsxRuntime.jsx)(_form.default.Item, {
|
|
264
|
+
children: (0, _jsxRuntime.jsx)(_button.default, {
|
|
274
265
|
type: "primary",
|
|
275
266
|
htmlType: "submit",
|
|
276
267
|
className: 'igloo-freeform-page-submit-button',
|
|
277
268
|
loading: submitting,
|
|
278
|
-
disabled: buttonDisabled
|
|
279
|
-
}, {
|
|
269
|
+
disabled: buttonDisabled,
|
|
280
270
|
children: submitText || formatMessage({
|
|
281
271
|
id: 'Submit'
|
|
282
272
|
})
|
|
283
|
-
}
|
|
273
|
+
}, void 0)
|
|
284
274
|
}, void 0)]
|
|
285
|
-
}
|
|
286
|
-
}
|
|
275
|
+
}, void 0))]
|
|
276
|
+
}, void 0);
|
|
287
277
|
};
|
|
288
278
|
|
|
289
279
|
Page.displayName = 'Igloo_Free_Form_Page';
|
|
@@ -47,21 +47,23 @@
|
|
|
47
47
|
.igloo-freeform-page-footer {
|
|
48
48
|
display: flex;
|
|
49
49
|
flex-direction: column-reverse;
|
|
50
|
-
row-gap: 16px;
|
|
51
50
|
|
|
52
51
|
.igloo-freeform-page-preview-button {
|
|
53
52
|
min-width: none;
|
|
54
53
|
width: 100%;
|
|
54
|
+
margin-top: 16px;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
.igloo-freeform-page-next-button {
|
|
58
58
|
min-width: none;
|
|
59
59
|
width: 100%;
|
|
60
|
+
margin-top: 16px;
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
.igloo-freeform-page-cancel-button {
|
|
63
64
|
min-width: none;
|
|
64
65
|
width: 100%;
|
|
66
|
+
margin-top: 16px;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.igloo-freeform-page-submit-button {
|
|
@@ -13,9 +13,9 @@ var _formUtils = require("../../utils/form-utils");
|
|
|
13
13
|
|
|
14
14
|
require("./style/index.less");
|
|
15
15
|
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
16
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
17
17
|
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
19
19
|
|
|
20
20
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
21
21
|
|
|
@@ -90,15 +90,13 @@ var Pages = function Pages(_ref) {
|
|
|
90
90
|
})) : children;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
94
|
-
className: 'igloo-freeform-pages-container'
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
className: 'igloo-freeform-pages-content'
|
|
98
|
-
}, {
|
|
93
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
94
|
+
className: 'igloo-freeform-pages-container',
|
|
95
|
+
children: (0, _jsxRuntime.jsx)("div", {
|
|
96
|
+
className: 'igloo-freeform-pages-content',
|
|
99
97
|
children: transformChildren()
|
|
100
|
-
}
|
|
101
|
-
}
|
|
98
|
+
}, void 0)
|
|
99
|
+
}, void 0);
|
|
102
100
|
};
|
|
103
101
|
|
|
104
102
|
var _default = Pages;
|