iglooform 2.4.25 → 2.4.26
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 +14 -14
- package/es/admin-upload/index.js +11 -11
- package/es/admin-upload/job-list.js +47 -47
- package/es/admin-upload/modal.js +10 -10
- package/es/alert-message/index.js +7 -7
- package/es/amount/index.js +2 -2
- package/es/back-top/index.js +4 -4
- package/es/button/index.js +9 -9
- package/es/card-detail/card-group.js +6 -6
- package/es/card-detail/card-item.js +5 -5
- package/es/card-detail/card-page.js +5 -5
- package/es/card-detail/card.js +7 -7
- package/es/checkbox/index.js +6 -6
- package/es/claim-list/index.js +19 -19
- package/es/confirmation/index.js +4 -4
- package/es/date-picker/buddhist.js +2 -2
- package/es/date-picker/index.js +9 -9
- package/es/declaration/index.js +5 -5
- package/es/detail-panel/index.js +26 -26
- package/es/documents/index.js +2 -2
- package/es/example/index.js +5 -5
- package/es/filter/checkBox.js +10 -10
- package/es/filter/customize.js +1 -1
- package/es/filter/index.js +43 -43
- package/es/filter/radioBox.js +7 -7
- package/es/filter/rangePicker.js +23 -23
- package/es/filter/style/index.less +10 -2
- package/es/form/addable-section/index.js +33 -18
- package/es/form/addable-section/style/index.less +6 -10
- package/es/form/divider/index.js +1 -1
- package/es/form/element/index.js +17 -17
- package/es/form/elements.js +5 -2
- package/es/form/index.js +7 -7
- package/es/form/login/index.js +6 -6
- package/es/form/page/index.js +8 -8
- package/es/form/pages/index.js +10 -10
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +4 -4
- package/es/form/step/index.js +14 -14
- package/es/form/steps/index.js +2 -2
- package/es/free-form/addable-section/index.js +29 -14
- package/es/free-form/addable-section/style/index.less +0 -4
- package/es/free-form/element/index.js +10 -10
- package/es/free-form/index.js +3 -3
- package/es/free-form/page/index.js +15 -15
- package/es/free-form/pages/index.js +2 -2
- package/es/free-form/section/index.js +4 -4
- package/es/free-form/step/index.js +14 -14
- package/es/free-form/steps/index.js +2 -2
- package/es/global-message/index.js +12 -12
- package/es/home-menu/index.js +18 -18
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/input/amount.js +2 -2
- package/es/input/credit-card.js +4 -4
- package/es/input/email.js +1 -1
- package/es/input/expiry-date.js +3 -3
- package/es/input/input-date.js +3 -3
- package/es/input/input-number.js +1 -1
- package/es/input/input.js +1 -1
- package/es/input/otp.js +6 -6
- package/es/input/password.js +4 -4
- package/es/input/phone-number.js +4 -4
- package/es/input/text-area.js +4 -4
- package/es/layout/defaultFooter.js +28 -28
- package/es/layout/defaultHeader.js +6 -6
- package/es/layout/footer.js +66 -66
- package/es/layout/header.js +25 -25
- package/es/layout/index.js +4 -4
- package/es/locale/en-US/messages.json +1 -0
- package/es/locale/id-ID/messages.json +1 -0
- package/es/locale/locale-provider.js +2 -2
- package/es/locale/th-TH/messages.json +1 -0
- package/es/locale/vi-VN/messages.json +1 -0
- package/es/locale/zh-CN/messages.json +1 -0
- package/es/login-page/index.js +16 -16
- package/es/media/index.js +15 -15
- package/es/media/media.js +8 -8
- package/es/media/preview.js +6 -6
- package/es/mobile-insurer-detail/index.js +18 -18
- package/es/mobile-insurer-list/index.js +11 -11
- package/es/modal/index.js +8 -8
- package/es/platform/platform-card/index.js +5 -5
- package/es/platform/switch-platform/index.js +12 -12
- package/es/policy-list/index.js +4 -4
- package/es/policy-list/policy-card.js +32 -32
- package/es/radio/index.d.ts +2 -1
- package/es/radio/index.js +13 -12
- package/es/radio/radio-group-with-other.d.ts +6 -0
- package/es/radio/radio-group-with-other.js +85 -0
- package/es/select/attached-select.js +17 -20
- package/es/select/select.js +6 -9
- package/es/select/time-select.js +20 -20
- package/es/status-box/index.js +2 -2
- package/es/table/index.js +33 -33
- package/es/tabs/index.js +1 -1
- package/es/typography/index.js +10 -3
- package/es/upload/index.js +28 -28
- package/es/upload-photo/index.js +28 -28
- package/es/upload-photo/media.js +4 -4
- package/es/upload-preview/index.js +10 -10
- package/es/upload-preview/media.js +8 -8
- package/es/utils/form-utils.d.ts +1 -1
- package/es/utils/form-utils.js +11 -11
- package/lib/admin-upload/float.js +14 -14
- package/lib/admin-upload/index.js +11 -11
- package/lib/admin-upload/job-list.js +47 -47
- package/lib/admin-upload/modal.js +10 -10
- package/lib/alert-message/index.js +7 -7
- package/lib/amount/index.js +2 -2
- package/lib/back-top/index.js +4 -4
- package/lib/button/index.js +9 -9
- package/lib/card-detail/card-group.js +6 -6
- package/lib/card-detail/card-item.js +5 -5
- package/lib/card-detail/card-page.js +5 -5
- package/lib/card-detail/card.js +7 -7
- package/lib/checkbox/index.js +6 -6
- package/lib/claim-list/index.js +19 -19
- package/lib/confirmation/index.js +4 -4
- package/lib/date-picker/buddhist.js +2 -2
- package/lib/date-picker/index.js +9 -9
- package/lib/declaration/index.js +5 -5
- package/lib/detail-panel/index.js +26 -26
- package/lib/documents/index.js +2 -2
- package/lib/example/index.js +5 -5
- package/lib/filter/checkBox.js +10 -10
- package/lib/filter/customize.js +1 -1
- package/lib/filter/index.js +43 -43
- package/lib/filter/radioBox.js +7 -7
- package/lib/filter/rangePicker.js +23 -23
- package/lib/filter/style/index.less +10 -2
- package/lib/form/addable-section/index.js +37 -17
- package/lib/form/addable-section/style/index.less +6 -10
- package/lib/form/divider/index.js +1 -1
- package/lib/form/element/index.js +17 -17
- package/lib/form/elements.js +5 -1
- package/lib/form/index.js +7 -7
- package/lib/form/login/index.js +6 -6
- package/lib/form/page/index.js +8 -8
- package/lib/form/pages/index.js +10 -10
- package/lib/form/render/index.js +1 -1
- package/lib/form/section/index.js +4 -4
- package/lib/form/step/index.js +14 -14
- package/lib/form/steps/index.js +2 -2
- package/lib/free-form/addable-section/index.js +33 -13
- package/lib/free-form/addable-section/style/index.less +0 -4
- package/lib/free-form/element/index.js +10 -10
- package/lib/free-form/index.js +3 -3
- package/lib/free-form/page/index.js +15 -15
- package/lib/free-form/pages/index.js +2 -2
- package/lib/free-form/section/index.js +4 -4
- package/lib/free-form/step/index.js +14 -14
- package/lib/free-form/steps/index.js +2 -2
- package/lib/global-message/index.js +12 -12
- package/lib/home-menu/index.js +18 -18
- package/lib/index.d.ts +1 -1
- package/lib/index.js +7 -0
- package/lib/input/amount.js +2 -2
- package/lib/input/credit-card.js +4 -4
- package/lib/input/email.js +1 -1
- package/lib/input/expiry-date.js +3 -3
- package/lib/input/input-date.js +3 -3
- package/lib/input/input-number.js +1 -1
- package/lib/input/input.js +1 -1
- package/lib/input/otp.js +6 -6
- package/lib/input/password.js +4 -4
- package/lib/input/phone-number.js +4 -4
- package/lib/input/text-area.js +4 -4
- package/lib/layout/defaultFooter.js +28 -28
- package/lib/layout/defaultHeader.js +6 -6
- package/lib/layout/footer.js +66 -66
- package/lib/layout/header.js +25 -25
- package/lib/layout/index.js +4 -4
- package/lib/locale/en-US/messages.json +1 -0
- package/lib/locale/id-ID/messages.json +1 -0
- package/lib/locale/locale-provider.js +2 -2
- package/lib/locale/th-TH/messages.json +1 -0
- package/lib/locale/vi-VN/messages.json +1 -0
- package/lib/locale/zh-CN/messages.json +1 -0
- package/lib/login-page/index.js +16 -16
- package/lib/media/index.js +15 -15
- package/lib/media/media.js +8 -8
- package/lib/media/preview.js +6 -6
- package/lib/mobile-insurer-detail/index.js +18 -18
- package/lib/mobile-insurer-list/index.js +11 -11
- package/lib/modal/index.js +8 -8
- package/lib/platform/platform-card/index.js +5 -5
- package/lib/platform/switch-platform/index.js +12 -12
- package/lib/policy-list/index.js +4 -4
- package/lib/policy-list/policy-card.js +32 -32
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +21 -12
- package/lib/radio/radio-group-with-other.d.ts +6 -0
- package/lib/radio/radio-group-with-other.js +98 -0
- package/lib/select/attached-select.js +16 -19
- package/lib/select/select.js +5 -8
- package/lib/select/time-select.js +20 -20
- package/lib/status-box/index.js +2 -2
- package/lib/table/index.js +33 -33
- package/lib/tabs/index.js +1 -1
- package/lib/typography/index.js +10 -3
- package/lib/upload/index.js +28 -28
- package/lib/upload-photo/index.js +28 -28
- package/lib/upload-photo/media.js +4 -4
- package/lib/upload-preview/index.js +10 -10
- package/lib/upload-preview/media.js +8 -8
- package/lib/utils/form-utils.d.ts +1 -1
- package/lib/utils/form-utils.js +10 -10
- package/package.json +1 -1
|
@@ -29,8 +29,8 @@ IglooMessage.success = function (content, duration) {
|
|
|
29
29
|
content: (0, _jsxRuntime.jsx)(_alertMessage.default, {
|
|
30
30
|
type: "success",
|
|
31
31
|
message: content
|
|
32
|
-
}
|
|
33
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
32
|
+
}),
|
|
33
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
34
34
|
duration: duration === undefined ? 3 : duration
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -38,7 +38,7 @@ IglooMessage.success = function (content, duration) {
|
|
|
38
38
|
return _message2.default.success({
|
|
39
39
|
className: 'iglooform-global-message',
|
|
40
40
|
content: content,
|
|
41
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
41
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
42
42
|
duration: duration === undefined ? 3 : duration
|
|
43
43
|
});
|
|
44
44
|
}
|
|
@@ -52,8 +52,8 @@ IglooMessage.error = function (content, duration) {
|
|
|
52
52
|
content: (0, _jsxRuntime.jsx)(_alertMessage.default, {
|
|
53
53
|
type: "error",
|
|
54
54
|
message: content
|
|
55
|
-
}
|
|
56
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
55
|
+
}),
|
|
56
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
57
57
|
duration: duration === undefined ? 3 : duration
|
|
58
58
|
});
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ IglooMessage.error = function (content, duration) {
|
|
|
61
61
|
return _message2.default.error({
|
|
62
62
|
className: 'iglooform-global-message',
|
|
63
63
|
content: content,
|
|
64
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
64
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
65
65
|
duration: duration === undefined ? 3 : duration
|
|
66
66
|
});
|
|
67
67
|
}
|
|
@@ -75,8 +75,8 @@ IglooMessage.warning = function (content, duration) {
|
|
|
75
75
|
content: (0, _jsxRuntime.jsx)(_alertMessage.default, {
|
|
76
76
|
type: "warning",
|
|
77
77
|
message: content
|
|
78
|
-
}
|
|
79
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
78
|
+
}),
|
|
79
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
80
80
|
duration: duration === undefined ? 3 : duration
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -84,7 +84,7 @@ IglooMessage.warning = function (content, duration) {
|
|
|
84
84
|
return _message2.default.warning({
|
|
85
85
|
className: 'iglooform-global-message',
|
|
86
86
|
content: content,
|
|
87
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
87
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
88
88
|
duration: duration === undefined ? 3 : duration
|
|
89
89
|
});
|
|
90
90
|
}
|
|
@@ -98,8 +98,8 @@ IglooMessage.info = function (content, duration) {
|
|
|
98
98
|
content: (0, _jsxRuntime.jsx)(_alertMessage.default, {
|
|
99
99
|
type: "info",
|
|
100
100
|
message: content
|
|
101
|
-
}
|
|
102
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
101
|
+
}),
|
|
102
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
103
103
|
duration: duration === undefined ? 3 : duration
|
|
104
104
|
});
|
|
105
105
|
|
|
@@ -107,7 +107,7 @@ IglooMessage.info = function (content, duration) {
|
|
|
107
107
|
return _message2.default.info({
|
|
108
108
|
className: 'iglooform-global-message',
|
|
109
109
|
content: content,
|
|
110
|
-
icon: (0, _jsxRuntime.jsx)("div", {}
|
|
110
|
+
icon: (0, _jsxRuntime.jsx)("div", {}),
|
|
111
111
|
duration: duration === undefined ? 3 : duration
|
|
112
112
|
});
|
|
113
113
|
}
|
package/lib/home-menu/index.js
CHANGED
|
@@ -85,12 +85,12 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
85
85
|
children: [(0, _jsxRuntime.jsx)(_avatar.default, {
|
|
86
86
|
size: 32,
|
|
87
87
|
src: userAvatar
|
|
88
|
-
}
|
|
88
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
89
89
|
className: "top-info",
|
|
90
90
|
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
91
91
|
level: "body1",
|
|
92
92
|
children: userName
|
|
93
|
-
}
|
|
93
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
94
94
|
style: {
|
|
95
95
|
marginTop: 4
|
|
96
96
|
},
|
|
@@ -100,9 +100,9 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
100
100
|
children: [info.title, " ", info.value]
|
|
101
101
|
}, index);
|
|
102
102
|
})
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
105
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
106
106
|
className: "menu-actions",
|
|
107
107
|
children: actions.map(function (action, index) {
|
|
108
108
|
var _onClick = action.onClick;
|
|
@@ -118,8 +118,8 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
118
118
|
}, index)
|
|
119
119
|
}, index);
|
|
120
120
|
})
|
|
121
|
-
}
|
|
122
|
-
}
|
|
121
|
+
})]
|
|
122
|
+
}),
|
|
123
123
|
children: (0, _jsxRuntime.jsxs)("div", {
|
|
124
124
|
className: "arrow-container",
|
|
125
125
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.CrossOutlined, {
|
|
@@ -127,14 +127,14 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
127
127
|
style: {
|
|
128
128
|
opacity: "".concat(open ? 1 : 0)
|
|
129
129
|
}
|
|
130
|
-
}
|
|
130
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.BurgerMenuOutlined, {
|
|
131
131
|
className: "arrow-default",
|
|
132
132
|
style: {
|
|
133
133
|
opacity: "".concat(open ? 0 : 1)
|
|
134
134
|
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
135
|
+
})]
|
|
136
|
+
})
|
|
137
|
+
});
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
return (0, _jsxRuntime.jsx)(_dropdown.default, {
|
|
@@ -161,7 +161,7 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
161
161
|
children: [info.title, " ", info.value]
|
|
162
162
|
}, index);
|
|
163
163
|
})
|
|
164
|
-
}
|
|
164
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
165
165
|
className: "menu-actions",
|
|
166
166
|
children: actions.map(function (action, index) {
|
|
167
167
|
var _onClick2 = action.onClick;
|
|
@@ -177,8 +177,8 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
177
177
|
}, index)
|
|
178
178
|
}, index);
|
|
179
179
|
})
|
|
180
|
-
}
|
|
181
|
-
}
|
|
180
|
+
})]
|
|
181
|
+
}),
|
|
182
182
|
children: (0, _jsxRuntime.jsxs)("div", {
|
|
183
183
|
className: "arrow-container",
|
|
184
184
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
@@ -186,14 +186,14 @@ var HomeMenu = function HomeMenu(props) {
|
|
|
186
186
|
style: {
|
|
187
187
|
opacity: "".concat(open ? 1 : 0)
|
|
188
188
|
}
|
|
189
|
-
}
|
|
189
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
190
190
|
className: "arrow-default",
|
|
191
191
|
style: {
|
|
192
192
|
opacity: "".concat(open ? 0 : 1)
|
|
193
193
|
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
194
|
+
})]
|
|
195
|
+
})
|
|
196
|
+
});
|
|
197
197
|
};
|
|
198
198
|
|
|
199
199
|
var _default = HomeMenu;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { default as Button, GreenButton, YellowButton, RedButton, } from './butt
|
|
|
3
3
|
export { default as DatePicker, IglooBuddhistDatePicker as BuddhistDatePicker, IglooRangePicker as RangePicker, IglooWeekPicker as WeekPicker, IglooMonthPicker as MonthPicker, } from './date-picker';
|
|
4
4
|
export { default as Input, PhoneNumber, Amount, Password, Email, InputNumber, TextArea, InputDate, CreditCard, ExpiryDate, } from './input';
|
|
5
5
|
export { default as Select, TimeSelect, AttachedSelect } from './select';
|
|
6
|
-
export { default as Radio, RadioGroup } from './radio';
|
|
6
|
+
export { default as Radio, RadioGroup, RadioGroupWithOther } from './radio';
|
|
7
7
|
export { default as Example } from './example';
|
|
8
8
|
export { default as Upload } from './upload';
|
|
9
9
|
export { default as Checkbox, CheckboxGroup } from './checkbox';
|
package/lib/index.js
CHANGED
|
@@ -31,6 +31,7 @@ var _exportNames = {
|
|
|
31
31
|
AttachedSelect: true,
|
|
32
32
|
Radio: true,
|
|
33
33
|
RadioGroup: true,
|
|
34
|
+
RadioGroupWithOther: true,
|
|
34
35
|
Example: true,
|
|
35
36
|
Upload: true,
|
|
36
37
|
Checkbox: true,
|
|
@@ -386,6 +387,12 @@ Object.defineProperty(exports, "RadioGroup", {
|
|
|
386
387
|
return _radio.RadioGroup;
|
|
387
388
|
}
|
|
388
389
|
});
|
|
390
|
+
Object.defineProperty(exports, "RadioGroupWithOther", {
|
|
391
|
+
enumerable: true,
|
|
392
|
+
get: function get() {
|
|
393
|
+
return _radio.RadioGroupWithOther;
|
|
394
|
+
}
|
|
395
|
+
});
|
|
389
396
|
Object.defineProperty(exports, "RangePicker", {
|
|
390
397
|
enumerable: true,
|
|
391
398
|
get: function get() {
|
package/lib/input/amount.js
CHANGED
|
@@ -69,8 +69,8 @@ var Amount = function Amount(_ref) {
|
|
|
69
69
|
addonBefore: currency ? (0, _jsxRuntime.jsx)("span", {
|
|
70
70
|
className: "igloo-input-areacode",
|
|
71
71
|
children: currency
|
|
72
|
-
}
|
|
73
|
-
})
|
|
72
|
+
}) : null
|
|
73
|
+
}));
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
Amount.formItemPropsHandler = function (_ref2) {
|
package/lib/input/credit-card.js
CHANGED
|
@@ -60,7 +60,7 @@ var defaultCheck = [{
|
|
|
60
60
|
style: {
|
|
61
61
|
fontSize: 24
|
|
62
62
|
}
|
|
63
|
-
}
|
|
63
|
+
})
|
|
64
64
|
}, {
|
|
65
65
|
name: 'MasterCard',
|
|
66
66
|
reg: '^5[1-5][0-9]{14}$',
|
|
@@ -68,14 +68,14 @@ var defaultCheck = [{
|
|
|
68
68
|
style: {
|
|
69
69
|
fontSize: 24
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
})
|
|
72
72
|
}];
|
|
73
73
|
var defaultCardIcon = (0, _jsxRuntime.jsx)(_iglooicon.CreditCardOutlined, {
|
|
74
74
|
style: {
|
|
75
75
|
color: '#eeeeee',
|
|
76
76
|
fontSize: 24
|
|
77
77
|
}
|
|
78
|
-
}
|
|
78
|
+
});
|
|
79
79
|
|
|
80
80
|
function getErrorMessage(cardRules) {
|
|
81
81
|
var finalConfig = cardRules.pop();
|
|
@@ -206,7 +206,7 @@ var IglooCredit = function IglooCredit(props) {
|
|
|
206
206
|
onChange: function onChange(e) {
|
|
207
207
|
return handleOnChange(e.target.value, [].concat(_toConsumableArray(cardConfig), defaultCheck), formChangeProps);
|
|
208
208
|
}
|
|
209
|
-
})
|
|
209
|
+
}));
|
|
210
210
|
};
|
|
211
211
|
|
|
212
212
|
function checkCard(value, cardRules) {
|
package/lib/input/email.js
CHANGED
|
@@ -28,7 +28,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
28
28
|
var Email = function Email(props) {
|
|
29
29
|
return (0, _jsxRuntime.jsx)(_input.default, _objectSpread({
|
|
30
30
|
className: "igloo-input"
|
|
31
|
-
}, (0, _omit.default)(props, _formMethods.default))
|
|
31
|
+
}, (0, _omit.default)(props, _formMethods.default)));
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
Email.formItemPropsHandler = function () {
|
package/lib/input/expiry-date.js
CHANGED
|
@@ -268,11 +268,11 @@ var IglooExpiryDate = function IglooExpiryDate(props) {
|
|
|
268
268
|
color: '#999999'
|
|
269
269
|
},
|
|
270
270
|
children: delimiter
|
|
271
|
-
}
|
|
271
|
+
})]
|
|
272
272
|
}, item);
|
|
273
273
|
})
|
|
274
|
-
}
|
|
275
|
-
}
|
|
274
|
+
})
|
|
275
|
+
});
|
|
276
276
|
};
|
|
277
277
|
|
|
278
278
|
function checkTime(value, check) {
|
package/lib/input/input-date.js
CHANGED
|
@@ -268,11 +268,11 @@ var IglooInputDate = function IglooInputDate(props) {
|
|
|
268
268
|
color: '#999999'
|
|
269
269
|
},
|
|
270
270
|
children: delimiter
|
|
271
|
-
}
|
|
271
|
+
})]
|
|
272
272
|
}, item);
|
|
273
273
|
})
|
|
274
|
-
}
|
|
275
|
-
}
|
|
274
|
+
})
|
|
275
|
+
});
|
|
276
276
|
};
|
|
277
277
|
|
|
278
278
|
function checkTime(value, format) {
|
package/lib/input/input.js
CHANGED
|
@@ -32,7 +32,7 @@ var IglooInput = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
32
32
|
className: "igloo-input"
|
|
33
33
|
}, (0, _omit.default)(props, _formMethods.default)), {}, {
|
|
34
34
|
ref: ref
|
|
35
|
-
})
|
|
35
|
+
}));
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
IglooInput.formItemPropsHandler = function (config) {
|
package/lib/input/otp.js
CHANGED
|
@@ -141,8 +141,8 @@ var Otp = function Otp(_ref) {
|
|
|
141
141
|
}) : formatMessage({
|
|
142
142
|
id: 'Resend OTP'
|
|
143
143
|
})
|
|
144
|
-
}
|
|
145
|
-
}
|
|
144
|
+
})
|
|
145
|
+
}), countDown && (0, _jsxRuntime.jsxs)("div", {
|
|
146
146
|
className: "igloo-otp-extra igloo-otp-count-down",
|
|
147
147
|
children: [formatMessage({
|
|
148
148
|
id: 'Resend in'
|
|
@@ -151,11 +151,11 @@ var Otp = function Otp(_ref) {
|
|
|
151
151
|
value: ddl,
|
|
152
152
|
format: "s",
|
|
153
153
|
onFinish: reset
|
|
154
|
-
}
|
|
155
|
-
}
|
|
154
|
+
}), "s)"]
|
|
155
|
+
}), (0, _jsxRuntime.jsx)(_input.default, _objectSpread(_objectSpread({}, (0, _omit.default)(props, _formMethods.default)), {}, {
|
|
156
156
|
className: (0, _classnames.default)(className)
|
|
157
|
-
})
|
|
158
|
-
}
|
|
157
|
+
}))]
|
|
158
|
+
});
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
Otp.formItemPropsHandler = function (config) {
|
package/lib/input/password.js
CHANGED
|
@@ -37,7 +37,7 @@ var IglooPassword = function IglooPassword(props) {
|
|
|
37
37
|
fontSize: 22,
|
|
38
38
|
color: '#666666'
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}) : (0, _jsxRuntime.jsx)("span", {
|
|
41
41
|
onClickCapture: function onClickCapture(e) {
|
|
42
42
|
if (!props.value) {
|
|
43
43
|
e.stopPropagation();
|
|
@@ -49,10 +49,10 @@ var IglooPassword = function IglooPassword(props) {
|
|
|
49
49
|
color: props.value ? '#666666' : '#bdbdbd',
|
|
50
50
|
cursor: props.value ? 'pointer' : 'not-allowed'
|
|
51
51
|
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
54
|
}
|
|
55
|
-
})
|
|
55
|
+
}));
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
IglooPassword.formItemPropsHandler = function (config) {
|
|
@@ -85,10 +85,10 @@ var PhoneNumber = function PhoneNumber(_ref) {
|
|
|
85
85
|
value: area
|
|
86
86
|
};
|
|
87
87
|
})
|
|
88
|
-
}
|
|
88
|
+
}) : (0, _jsxRuntime.jsx)("div", {
|
|
89
89
|
className: "igloo-phone-number-addon-before",
|
|
90
90
|
children: areaCode
|
|
91
|
-
}
|
|
91
|
+
});
|
|
92
92
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
93
93
|
style: style,
|
|
94
94
|
className: (0, _classnames.default)('igloo-input-phone', {
|
|
@@ -105,8 +105,8 @@ var PhoneNumber = function PhoneNumber(_ref) {
|
|
|
105
105
|
} : undefined);
|
|
106
106
|
},
|
|
107
107
|
disabled: disabled
|
|
108
|
-
}
|
|
109
|
-
}
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
110
110
|
};
|
|
111
111
|
|
|
112
112
|
PhoneNumber.formItemPropsHandler = function (_ref2) {
|
package/lib/input/text-area.js
CHANGED
|
@@ -102,9 +102,9 @@ var IglooTextArea = function IglooTextArea(props) {
|
|
|
102
102
|
onChange: function onChange(e) {
|
|
103
103
|
return handleOnChange(e, onChangeProps, maxLength);
|
|
104
104
|
}
|
|
105
|
-
})
|
|
105
|
+
})), (0, _jsxRuntime.jsx)("div", {
|
|
106
106
|
className: "igloo-input-text-area-right-bottom-cover"
|
|
107
|
-
}
|
|
107
|
+
}), showLeft && (0, _jsxRuntime.jsx)("div", {
|
|
108
108
|
className: "".concat(canInputNum < 0 ? 'igloo-input-text-area-remind-has-error' : 'igloo-input-text-area-remind'),
|
|
109
109
|
children: canInputNum < 0 ? formatMessage({
|
|
110
110
|
id: '{canInputNum} characters over',
|
|
@@ -117,8 +117,8 @@ var IglooTextArea = function IglooTextArea(props) {
|
|
|
117
117
|
canInputNum: canInputNum
|
|
118
118
|
}
|
|
119
119
|
})
|
|
120
|
-
}
|
|
121
|
-
}
|
|
120
|
+
})]
|
|
121
|
+
});
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
function checkNumber(value, maxLength, required) {
|
|
@@ -41,16 +41,16 @@ var DefaultFooter = function DefaultFooter() {
|
|
|
41
41
|
className: "top-left",
|
|
42
42
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
43
43
|
className: "igloo-logo"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
44
|
+
})
|
|
45
|
+
})
|
|
46
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
47
47
|
className: "footer-divider"
|
|
48
|
-
}
|
|
48
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
49
49
|
className: "footer-bottom",
|
|
50
50
|
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
51
51
|
level: "body3",
|
|
52
52
|
children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd. All Rights Reserved.")
|
|
53
|
-
}
|
|
53
|
+
}), (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
54
54
|
level: "body3",
|
|
55
55
|
children: [(0, _jsxRuntime.jsx)(_button.default, {
|
|
56
56
|
type: "text",
|
|
@@ -60,13 +60,13 @@ var DefaultFooter = function DefaultFooter() {
|
|
|
60
60
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
61
61
|
level: "body3",
|
|
62
62
|
children: "Privacy Policy"
|
|
63
|
-
}
|
|
64
|
-
}
|
|
63
|
+
})
|
|
64
|
+
}), ' ', (0, _jsxRuntime.jsx)("span", {
|
|
65
65
|
style: {
|
|
66
66
|
margin: '0px 16px'
|
|
67
67
|
},
|
|
68
68
|
children: "|"
|
|
69
|
-
}
|
|
69
|
+
}), (0, _jsxRuntime.jsx)(_button.default, {
|
|
70
70
|
type: "text",
|
|
71
71
|
onClick: function onClick() {
|
|
72
72
|
return window.open('https://contents.iglooinsure.com/termsofservice');
|
|
@@ -74,27 +74,27 @@ var DefaultFooter = function DefaultFooter() {
|
|
|
74
74
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
75
75
|
level: "body3",
|
|
76
76
|
children: "Terms of Service"
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
77
|
+
})
|
|
78
|
+
})]
|
|
79
|
+
})]
|
|
80
|
+
})]
|
|
81
|
+
})
|
|
82
|
+
}) : (0, _jsxRuntime.jsx)("div", {
|
|
83
83
|
className: "igloo-layout-footer",
|
|
84
84
|
children: (0, _jsxRuntime.jsxs)("div", {
|
|
85
85
|
className: "footer-content",
|
|
86
86
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
87
87
|
className: "igloo-logo"
|
|
88
|
-
}
|
|
88
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
89
89
|
className: "footer-bottom",
|
|
90
90
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
91
91
|
children: (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
92
92
|
level: "body3",
|
|
93
93
|
children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd."), (0, _jsxRuntime.jsx)("div", {
|
|
94
94
|
children: "All Rights Reserved."
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
95
|
+
})]
|
|
96
|
+
})
|
|
97
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
98
98
|
children: (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
99
99
|
level: "body3",
|
|
100
100
|
children: [(0, _jsxRuntime.jsx)(_button.default, {
|
|
@@ -105,13 +105,13 @@ var DefaultFooter = function DefaultFooter() {
|
|
|
105
105
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
106
106
|
level: "body3",
|
|
107
107
|
children: "Privacy Policy"
|
|
108
|
-
}
|
|
109
|
-
}
|
|
108
|
+
})
|
|
109
|
+
}), ' ', (0, _jsxRuntime.jsx)("span", {
|
|
110
110
|
style: {
|
|
111
111
|
margin: '0px 16px'
|
|
112
112
|
},
|
|
113
113
|
children: "|"
|
|
114
|
-
}
|
|
114
|
+
}), ' ', (0, _jsxRuntime.jsx)(_button.default, {
|
|
115
115
|
type: "text",
|
|
116
116
|
onClick: function onClick() {
|
|
117
117
|
return window.open('https://contents.iglooinsure.com/termsofservice');
|
|
@@ -119,13 +119,13 @@ var DefaultFooter = function DefaultFooter() {
|
|
|
119
119
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
120
120
|
level: "body3",
|
|
121
121
|
children: "Terms of Service"
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
122
|
+
})
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
})]
|
|
126
|
+
})]
|
|
127
|
+
})
|
|
128
|
+
});
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
var _default = DefaultFooter;
|
|
@@ -33,17 +33,17 @@ var DefaultHeader = function DefaultHeader() {
|
|
|
33
33
|
className: "header-left",
|
|
34
34
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
35
35
|
className: "igloo-logo"
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
36
|
+
})
|
|
37
|
+
})
|
|
38
|
+
})
|
|
39
|
+
}) : (0, _jsxRuntime.jsx)("div", {
|
|
40
40
|
className: (0, _classnames.default)({
|
|
41
41
|
'igloo-layout-header': true
|
|
42
42
|
}),
|
|
43
43
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
44
44
|
className: "igloo-logo"
|
|
45
|
-
}
|
|
46
|
-
}
|
|
45
|
+
})
|
|
46
|
+
});
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
var _default = DefaultHeader;
|