iglooform 2.4.24 → 2.4.27
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 +43 -14
- 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 +42 -13
- 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
package/lib/layout/footer.js
CHANGED
|
@@ -45,51 +45,51 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
45
45
|
style: {
|
|
46
46
|
alignItems: 'center'
|
|
47
47
|
},
|
|
48
|
-
children: [(0, _jsxRuntime.jsx)(_iglooicon.PhoneOutlined, {}
|
|
48
|
+
children: [(0, _jsxRuntime.jsx)(_iglooicon.PhoneOutlined, {}), (0, _jsxRuntime.jsx)("div", {
|
|
49
49
|
children: typeof tel === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
50
50
|
level: "body2",
|
|
51
51
|
className: "info-span",
|
|
52
52
|
children: tel
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
53
|
+
}) : tel
|
|
54
|
+
})]
|
|
55
|
+
}), email && (0, _jsxRuntime.jsxs)("div", {
|
|
56
56
|
className: "info-container",
|
|
57
57
|
style: {
|
|
58
58
|
alignItems: 'center'
|
|
59
59
|
},
|
|
60
|
-
children: [(0, _jsxRuntime.jsx)(_iglooicon.EmailOutlined, {}
|
|
60
|
+
children: [(0, _jsxRuntime.jsx)(_iglooicon.EmailOutlined, {}), (0, _jsxRuntime.jsx)("div", {
|
|
61
61
|
children: typeof email === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
62
62
|
level: "body2",
|
|
63
63
|
className: "info-span",
|
|
64
64
|
children: email
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
65
|
+
}) : email
|
|
66
|
+
})]
|
|
67
|
+
}), workTime && (0, _jsxRuntime.jsxs)("div", {
|
|
68
68
|
className: "info-container",
|
|
69
|
-
children: [(0, _jsxRuntime.jsx)(_iglooicon.TimeOutlined, {}
|
|
69
|
+
children: [(0, _jsxRuntime.jsx)(_iglooicon.TimeOutlined, {}), (0, _jsxRuntime.jsx)("div", {
|
|
70
70
|
children: typeof workTime === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
71
71
|
level: "body2",
|
|
72
72
|
className: "info-span",
|
|
73
73
|
children: workTime
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
74
|
+
}) : workTime
|
|
75
|
+
})]
|
|
76
|
+
})]
|
|
77
|
+
}), address && (0, _jsxRuntime.jsxs)(_space.default, {
|
|
78
78
|
size: 16,
|
|
79
79
|
align: "start",
|
|
80
80
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.LocationOutlined, {
|
|
81
81
|
style: {
|
|
82
82
|
fontSize: 24
|
|
83
83
|
}
|
|
84
|
-
}
|
|
84
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
85
85
|
children: typeof address === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
86
86
|
level: "body2",
|
|
87
87
|
className: "info-span",
|
|
88
88
|
children: address
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
89
|
+
}) : address
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
93
93
|
|
|
94
94
|
if (md) {
|
|
95
95
|
return (0, _jsxRuntime.jsx)("div", {
|
|
@@ -104,16 +104,16 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
104
104
|
className: "top-left",
|
|
105
105
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
106
106
|
className: "igloo-logo"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
107
|
+
})
|
|
108
|
+
}), topRightContent]
|
|
109
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
110
110
|
className: "footer-divider"
|
|
111
|
-
}
|
|
111
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
112
112
|
className: "footer-bottom",
|
|
113
113
|
children: [copyRightRender ? copyRightRender("\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")) : (0, _jsxRuntime.jsx)(_typography.default, {
|
|
114
114
|
level: "body3",
|
|
115
115
|
children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")
|
|
116
|
-
}
|
|
116
|
+
}), (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
117
117
|
level: "body3",
|
|
118
118
|
children: [(0, _jsxRuntime.jsx)(_button.default, {
|
|
119
119
|
type: "text",
|
|
@@ -123,13 +123,13 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
123
123
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
124
124
|
level: "body3",
|
|
125
125
|
children: "Privacy Policy"
|
|
126
|
-
}
|
|
127
|
-
}
|
|
126
|
+
})
|
|
127
|
+
}), ' ', (0, _jsxRuntime.jsx)("span", {
|
|
128
128
|
style: {
|
|
129
129
|
margin: '0px 16px'
|
|
130
130
|
},
|
|
131
131
|
children: "|"
|
|
132
|
-
}
|
|
132
|
+
}), (0, _jsxRuntime.jsx)(_button.default, {
|
|
133
133
|
type: "text",
|
|
134
134
|
onClick: function onClick() {
|
|
135
135
|
return window.open('https://contents.iglooinsure.com/termsofservice');
|
|
@@ -137,12 +137,12 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
137
137
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
138
138
|
level: "body3",
|
|
139
139
|
children: "Terms of Service"
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
}
|
|
140
|
+
})
|
|
141
|
+
})]
|
|
142
|
+
})]
|
|
143
|
+
})]
|
|
144
|
+
})
|
|
145
|
+
});
|
|
146
146
|
} else {
|
|
147
147
|
return (0, _jsxRuntime.jsx)("div", {
|
|
148
148
|
className: "igloo-layout-footer",
|
|
@@ -150,65 +150,65 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
150
150
|
className: "footer-content",
|
|
151
151
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
152
152
|
className: "igloo-logo"
|
|
153
|
-
}
|
|
153
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
154
154
|
className: "compony-info",
|
|
155
155
|
children: [tel && (0, _jsxRuntime.jsxs)("div", {
|
|
156
156
|
className: "info-item",
|
|
157
|
-
children: [(0, _jsxRuntime.jsx)(_iglooicon.PhoneOutlined, {}
|
|
157
|
+
children: [(0, _jsxRuntime.jsx)(_iglooicon.PhoneOutlined, {}), (0, _jsxRuntime.jsx)("div", {
|
|
158
158
|
children: typeof tel === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
159
159
|
level: "body3",
|
|
160
160
|
className: "info-span",
|
|
161
161
|
children: tel
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
162
|
+
}) : tel
|
|
163
|
+
})]
|
|
164
|
+
}), email && (0, _jsxRuntime.jsxs)("div", {
|
|
165
165
|
className: "info-item",
|
|
166
|
-
children: [(0, _jsxRuntime.jsx)(_iglooicon.EmailOutlined, {}
|
|
166
|
+
children: [(0, _jsxRuntime.jsx)(_iglooicon.EmailOutlined, {}), (0, _jsxRuntime.jsx)("div", {
|
|
167
167
|
children: typeof email === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
168
168
|
level: "body3",
|
|
169
169
|
className: "info-span",
|
|
170
170
|
children: email
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
171
|
+
}) : email
|
|
172
|
+
})]
|
|
173
|
+
}), workTime && (0, _jsxRuntime.jsxs)("div", {
|
|
174
174
|
className: "info-item",
|
|
175
|
-
children: [(0, _jsxRuntime.jsx)(_iglooicon.TimeOutlined, {}
|
|
175
|
+
children: [(0, _jsxRuntime.jsx)(_iglooicon.TimeOutlined, {}), (0, _jsxRuntime.jsx)("div", {
|
|
176
176
|
children: typeof workTime === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
177
177
|
level: "body3",
|
|
178
178
|
className: "info-span",
|
|
179
179
|
children: workTime
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|
|
180
|
+
}) : workTime
|
|
181
|
+
})]
|
|
182
|
+
}), address && (0, _jsxRuntime.jsxs)("div", {
|
|
183
183
|
className: "info-item",
|
|
184
184
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.LocationOutlined, {
|
|
185
185
|
style: {
|
|
186
186
|
fontSize: 24
|
|
187
187
|
}
|
|
188
|
-
}
|
|
188
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
189
189
|
children: typeof address === 'string' ? (0, _jsxRuntime.jsx)(_typography.default, {
|
|
190
190
|
level: "body3",
|
|
191
191
|
className: "info-span",
|
|
192
192
|
children: address
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
}
|
|
193
|
+
}) : address
|
|
194
|
+
})]
|
|
195
|
+
})]
|
|
196
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
197
197
|
className: "footer-bottom",
|
|
198
198
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
199
199
|
children: copyRightRender ? copyRightRender((0, _jsxRuntime.jsxs)("div", {
|
|
200
200
|
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
201
201
|
children: ["\xA9 ", new Date().getFullYear(), " Powered by Igloo."]
|
|
202
|
-
}
|
|
202
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
203
203
|
children: "All Rights Reserved."
|
|
204
|
-
}
|
|
205
|
-
}
|
|
204
|
+
})]
|
|
205
|
+
})) : (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
206
206
|
level: "body3",
|
|
207
207
|
children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo."), (0, _jsxRuntime.jsx)("div", {
|
|
208
208
|
children: "All Rights Reserved."
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
209
|
+
})]
|
|
210
|
+
})
|
|
211
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
212
212
|
children: (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
213
213
|
level: "body3",
|
|
214
214
|
children: [(0, _jsxRuntime.jsx)(_button.default, {
|
|
@@ -219,13 +219,13 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
219
219
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
220
220
|
level: "body3",
|
|
221
221
|
children: "Privacy Policy"
|
|
222
|
-
}
|
|
223
|
-
}
|
|
222
|
+
})
|
|
223
|
+
}), ' ', (0, _jsxRuntime.jsx)("span", {
|
|
224
224
|
style: {
|
|
225
225
|
margin: '0px 16px'
|
|
226
226
|
},
|
|
227
227
|
children: "|"
|
|
228
|
-
}
|
|
228
|
+
}), ' ', (0, _jsxRuntime.jsx)(_button.default, {
|
|
229
229
|
type: "text",
|
|
230
230
|
onClick: function onClick() {
|
|
231
231
|
return window.open('https://contents.iglooinsure.com/termsofservice');
|
|
@@ -233,13 +233,13 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
233
233
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
234
234
|
level: "body3",
|
|
235
235
|
children: "Terms of Service"
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
236
|
+
})
|
|
237
|
+
})]
|
|
238
|
+
})
|
|
239
|
+
})]
|
|
240
|
+
})]
|
|
241
|
+
})
|
|
242
|
+
});
|
|
243
243
|
}
|
|
244
244
|
};
|
|
245
245
|
|
package/lib/layout/header.js
CHANGED
|
@@ -115,11 +115,11 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
115
115
|
}),
|
|
116
116
|
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
117
117
|
children: menuInfo.title
|
|
118
|
-
}
|
|
118
|
+
}), (0, _jsxRuntime.jsx)(_badge.default, {
|
|
119
119
|
dot: true,
|
|
120
120
|
color: '#F52209'
|
|
121
|
-
}
|
|
122
|
-
}
|
|
121
|
+
})]
|
|
122
|
+
});
|
|
123
123
|
|
|
124
124
|
case 'number':
|
|
125
125
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -129,13 +129,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
129
129
|
}),
|
|
130
130
|
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
131
131
|
children: menuInfo.title
|
|
132
|
-
}
|
|
132
|
+
}), (0, _jsxRuntime.jsx)(_badge.default, {
|
|
133
133
|
count: badge,
|
|
134
134
|
style: {
|
|
135
135
|
backgroundColor: '#F52209'
|
|
136
136
|
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
137
|
+
})]
|
|
138
|
+
});
|
|
139
139
|
|
|
140
140
|
case 'object':
|
|
141
141
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -145,8 +145,8 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
145
145
|
}),
|
|
146
146
|
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
147
147
|
children: menuInfo.title
|
|
148
|
-
}
|
|
149
|
-
}
|
|
148
|
+
}), (0, _jsxRuntime.jsx)(_badge.default, _objectSpread({}, badge))]
|
|
149
|
+
});
|
|
150
150
|
|
|
151
151
|
case 'undefined':
|
|
152
152
|
return (0, _jsxRuntime.jsx)(_typography.default, {
|
|
@@ -155,7 +155,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
155
155
|
}),
|
|
156
156
|
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
157
157
|
children: menuInfo.title
|
|
158
|
-
}
|
|
158
|
+
});
|
|
159
159
|
|
|
160
160
|
case 'function':
|
|
161
161
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -165,8 +165,8 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
165
165
|
}),
|
|
166
166
|
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
167
167
|
children: menuInfo.title
|
|
168
|
-
}
|
|
169
|
-
}
|
|
168
|
+
}), badge()]
|
|
169
|
+
});
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
@@ -184,7 +184,7 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
184
184
|
className: "header-left",
|
|
185
185
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
186
186
|
className: "igloo-logo"
|
|
187
|
-
}
|
|
187
|
+
}), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && (0, _jsxRuntime.jsx)(_row.default, {
|
|
188
188
|
children: menus.map(function (menu) {
|
|
189
189
|
return (0, _jsxRuntime.jsx)(_col.default, {
|
|
190
190
|
className: (0, _classnames.default)('menu-item'),
|
|
@@ -194,22 +194,22 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
194
194
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
195
195
|
}, menu.key);
|
|
196
196
|
})
|
|
197
|
-
}
|
|
198
|
-
}
|
|
197
|
+
})]
|
|
198
|
+
}), dropMenuConfig && !children && (0, _jsxRuntime.jsxs)(_space.default, {
|
|
199
199
|
size: 8,
|
|
200
200
|
children: [(0, _jsxRuntime.jsx)(_avatar.default, {
|
|
201
201
|
size: 32,
|
|
202
202
|
src: userAvatar
|
|
203
|
-
}
|
|
203
|
+
}), (0, _jsxRuntime.jsx)(_typography.default, {
|
|
204
204
|
level: "body1",
|
|
205
205
|
style: {
|
|
206
206
|
color: '#666666'
|
|
207
207
|
},
|
|
208
208
|
children: userName
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
209
|
+
}), dropMenuConfig && (0, _jsxRuntime.jsx)(_index.default, _objectSpread({}, dropMenuConfig))]
|
|
210
|
+
}), children]
|
|
211
|
+
})
|
|
212
|
+
});
|
|
213
213
|
} else {
|
|
214
214
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
215
215
|
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
@@ -219,11 +219,11 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
219
219
|
}),
|
|
220
220
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
221
221
|
className: "igloo-logo"
|
|
222
|
-
}
|
|
222
|
+
}), dropMenuConfig && !children && (0, _jsxRuntime.jsx)(_index.default, _objectSpread({
|
|
223
223
|
userAvatar: userAvatar,
|
|
224
224
|
userName: userName
|
|
225
|
-
}, dropMenuConfig)
|
|
226
|
-
}
|
|
225
|
+
}, dropMenuConfig)), children]
|
|
226
|
+
}), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && (0, _jsxRuntime.jsx)(_row.default, {
|
|
227
227
|
className: "igloo-layout-menu",
|
|
228
228
|
children: menus.map(function (menu) {
|
|
229
229
|
var span = 24 / menus.length;
|
|
@@ -239,11 +239,11 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
239
239
|
alignItems: 'flex-start'
|
|
240
240
|
},
|
|
241
241
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
242
|
-
}
|
|
242
|
+
})
|
|
243
243
|
}, menu.key);
|
|
244
244
|
})
|
|
245
|
-
}
|
|
246
|
-
}
|
|
245
|
+
})]
|
|
246
|
+
});
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
|
package/lib/layout/index.js
CHANGED
|
@@ -111,14 +111,14 @@ var Layout = function Layout(props) {
|
|
|
111
111
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
112
112
|
style: style,
|
|
113
113
|
className: (0, _classnames.default)(layoutContainerClass, className),
|
|
114
|
-
children: [!headerDom && !headerConfig && (0, _jsxRuntime.jsx)(_defaultHeader.default, {}
|
|
114
|
+
children: [!headerDom && !headerConfig && (0, _jsxRuntime.jsx)(_defaultHeader.default, {}), headerConfig && (0, _jsxRuntime.jsx)(_header.default, _objectSpread({}, headerConfig)), headerDom, (0, _jsxRuntime.jsx)("div", {
|
|
115
115
|
className: "igloo-layout-center",
|
|
116
116
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
117
117
|
className: "igloo-layout-content",
|
|
118
118
|
children: contentDom
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
119
|
+
})
|
|
120
|
+
}), !footerDom && !footerConfig && (0, _jsxRuntime.jsx)(_defaultFooter.default, {}), footerConfig && (0, _jsxRuntime.jsx)(_footer.default, _objectSpread({}, footerConfig)), footerDom]
|
|
121
|
+
});
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
Layout.Header = _header.default;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"OK": "OK",
|
|
39
39
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.",
|
|
40
40
|
"Optional": "Optional",
|
|
41
|
+
"Other Reason": "Other Reason",
|
|
41
42
|
"Please enter a valid date.": "Please enter a valid date.",
|
|
42
43
|
"Please enter a valid time.": "Please enter a valid time.",
|
|
43
44
|
"Please select": "Please select",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"OK": "oke",
|
|
39
39
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Jika Anda puas dengan apa yang telah disampaikan, dan Anda telah memeriksa deklarasi tersebut, silakan lanjutkan dan ajukan klaim Anda.",
|
|
40
40
|
"Optional": "Pilihan",
|
|
41
|
+
"Other Reason": "",
|
|
41
42
|
"Please enter a valid date.": "Silakan tulis tanggal valid",
|
|
42
43
|
"Please enter a valid time.": "Harap masukkan waktu yang valid",
|
|
43
44
|
"Please select": "Silahkan pilih",
|
|
@@ -98,8 +98,8 @@ var LocaleProvider = function LocaleProvider(_ref) {
|
|
|
98
98
|
children: (0, _jsxRuntime.jsx)(_configProvider.default, {
|
|
99
99
|
locale: antdLocale[currentLang] || _default2.default,
|
|
100
100
|
children: children
|
|
101
|
-
}
|
|
102
|
-
}
|
|
101
|
+
})
|
|
102
|
+
});
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
var _default = LocaleProvider;
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"OK": "ตกลง",
|
|
39
39
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "หากตรวจสอบแล้วและต้องการยืนยันข้อมูลข้างต้น กรุณากดดำเนินการต่อและยืนยันการเคลมของคุณ",
|
|
40
40
|
"Optional": "ไม่จำเป็น",
|
|
41
|
+
"Other Reason": "",
|
|
41
42
|
"Please enter a valid date.": "กรุณากรอกวันที่ถูกต้อง",
|
|
42
43
|
"Please enter a valid time.": "กรุณากรอกเวลาที่ถูกต้อง",
|
|
43
44
|
"Please select": "โปรดเลือก",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"OK": "Vâng",
|
|
39
39
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "Vui lòng xác nhận và gửi yêu cầu bồi thường.",
|
|
40
40
|
"Optional": "Không bắt buộc",
|
|
41
|
+
"Other Reason": "",
|
|
41
42
|
"Please enter a valid date.": "Vui lòng nhập đúng ngày:",
|
|
42
43
|
"Please enter a valid time.": "Vui lòng nhập thời gian hợp lệ.",
|
|
43
44
|
"Please select": "Xin hãy lựa chọn",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"OK": "确定",
|
|
39
39
|
"Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "如您对上述填写内容满意,在勾选以下申明后,请继续提交您的理赔申请。",
|
|
40
40
|
"Optional": "可选",
|
|
41
|
+
"Other Reason": "",
|
|
41
42
|
"Please enter a valid date.": "请输入一个有效的日期。",
|
|
42
43
|
"Please enter a valid time.": "请输入一个有效的时间。",
|
|
43
44
|
"Please select": "请选择",
|
package/lib/login-page/index.js
CHANGED
|
@@ -30,21 +30,21 @@ var LoginPage = function LoginPage(_ref) {
|
|
|
30
30
|
className: "igloo-login-page-mobile",
|
|
31
31
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
32
32
|
className: "igloo-login-page-mobile-logo"
|
|
33
|
-
}
|
|
33
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
34
34
|
className: "igloo-login-page-mobile-child-box",
|
|
35
35
|
children: children
|
|
36
|
-
}
|
|
37
|
-
}
|
|
36
|
+
})]
|
|
37
|
+
});
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
41
41
|
className: "igloo-login-page",
|
|
42
42
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
43
43
|
className: "igloo-login-page-logo"
|
|
44
|
-
}
|
|
44
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
45
45
|
className: "igloo-login-page-child-box",
|
|
46
46
|
children: children
|
|
47
|
-
}
|
|
47
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
48
48
|
className: "igloo-login-page-text-box",
|
|
49
49
|
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
50
50
|
className: "igloo-login-page-text-box-text",
|
|
@@ -54,41 +54,41 @@ var LoginPage = function LoginPage(_ref) {
|
|
|
54
54
|
lineHeight: '88px'
|
|
55
55
|
},
|
|
56
56
|
children: "Simple."
|
|
57
|
-
}
|
|
57
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
58
58
|
style: {
|
|
59
59
|
fontSize: 80,
|
|
60
60
|
lineHeight: '88px'
|
|
61
61
|
},
|
|
62
62
|
children: "Painless."
|
|
63
|
-
}
|
|
63
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
64
64
|
style: {
|
|
65
65
|
fontSize: 80,
|
|
66
66
|
lineHeight: '88px'
|
|
67
67
|
},
|
|
68
68
|
children: "Honest."
|
|
69
|
-
}
|
|
69
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
70
70
|
style: {
|
|
71
71
|
fontSize: 48,
|
|
72
72
|
marginTop: 48
|
|
73
73
|
},
|
|
74
74
|
children: "Insurance for all."
|
|
75
|
-
}
|
|
75
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
76
76
|
style: {
|
|
77
77
|
fontSize: 26,
|
|
78
78
|
marginTop: 75
|
|
79
79
|
},
|
|
80
80
|
children: "iglooinsure.com"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
81
|
+
})]
|
|
82
|
+
}), showAppStore && (0, _jsxRuntime.jsxs)("div", {
|
|
83
83
|
className: "igloo-login-page-text-box-buttons",
|
|
84
84
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
85
85
|
className: (0, _classnames.default)('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-apple')
|
|
86
|
-
}
|
|
86
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
87
87
|
className: (0, _classnames.default)('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-google')
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
88
|
+
})]
|
|
89
|
+
})]
|
|
90
|
+
})]
|
|
91
|
+
});
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
var _default = LoginPage;
|
package/lib/media/index.js
CHANGED
|
@@ -231,7 +231,7 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
231
231
|
src: src,
|
|
232
232
|
onClick: open,
|
|
233
233
|
name: name
|
|
234
|
-
}
|
|
234
|
+
}), (0, _jsxRuntime.jsxs)(_modal.default, {
|
|
235
235
|
visible: showModal,
|
|
236
236
|
onCancel: close,
|
|
237
237
|
footer: null,
|
|
@@ -239,7 +239,7 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
239
239
|
style: {
|
|
240
240
|
fontSize: 24
|
|
241
241
|
}
|
|
242
|
-
}
|
|
242
|
+
}),
|
|
243
243
|
wrapClassName: "igloo-media-preview",
|
|
244
244
|
width: "100%",
|
|
245
245
|
destroyOnClose: true,
|
|
@@ -247,13 +247,13 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
247
247
|
className: "igloo-document-name",
|
|
248
248
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
249
249
|
children: docNames[current]
|
|
250
|
-
}
|
|
250
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
251
251
|
children: (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
252
252
|
level: "body1",
|
|
253
253
|
children: [current + 1, "/", docNames.length]
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
}
|
|
254
|
+
})
|
|
255
|
+
})]
|
|
256
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
257
257
|
className: "igloo-media-list",
|
|
258
258
|
children: [Boolean(list && !!list.length) && list.map(function (_ref2, index) {
|
|
259
259
|
var src = _ref2.src,
|
|
@@ -271,7 +271,7 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
271
271
|
src: src,
|
|
272
272
|
scale: scale,
|
|
273
273
|
isCurrent: index === current
|
|
274
|
-
}
|
|
274
|
+
})
|
|
275
275
|
}, index);
|
|
276
276
|
}), Boolean(!list || !list.length) && (0, _jsxRuntime.jsx)("div", {
|
|
277
277
|
className: "igloo-media",
|
|
@@ -280,7 +280,7 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
280
280
|
src: src,
|
|
281
281
|
scale: scale,
|
|
282
282
|
isCurrent: true
|
|
283
|
-
}
|
|
283
|
+
})
|
|
284
284
|
}, index), (0, _jsxRuntime.jsx)(_iglooicon.MinusOutlined, {
|
|
285
285
|
onClick: zoomIn,
|
|
286
286
|
className: (0, _classnames.default)({
|
|
@@ -291,7 +291,7 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
291
291
|
style: {
|
|
292
292
|
fontSize: 24
|
|
293
293
|
}
|
|
294
|
-
}
|
|
294
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.PlusOutlined, {
|
|
295
295
|
onClick: zoomOut,
|
|
296
296
|
className: (0, _classnames.default)({
|
|
297
297
|
'igloo-preview-zoom-btn': true,
|
|
@@ -301,24 +301,24 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
301
301
|
style: {
|
|
302
302
|
fontSize: 24
|
|
303
303
|
}
|
|
304
|
-
}
|
|
304
|
+
}), (list.length > 2 || list.length === 2 && current === 1) && (0, _jsxRuntime.jsx)(_iglooicon.ArrowLeftOutlined, {
|
|
305
305
|
className: "igloo-media-page-btn",
|
|
306
306
|
style: {
|
|
307
307
|
left: 24,
|
|
308
308
|
fontSize: 32
|
|
309
309
|
},
|
|
310
310
|
onClick: toLeft
|
|
311
|
-
}
|
|
311
|
+
}), (list.length > 2 || list.length === 2 && current === 0) && (0, _jsxRuntime.jsx)(_iglooicon.ArrowRightOutlined, {
|
|
312
312
|
className: "igloo-media-page-btn",
|
|
313
313
|
style: {
|
|
314
314
|
right: 24,
|
|
315
315
|
fontSize: 32
|
|
316
316
|
},
|
|
317
317
|
onClick: toRight
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
318
|
+
})]
|
|
319
|
+
})]
|
|
320
|
+
})]
|
|
321
|
+
});
|
|
322
322
|
};
|
|
323
323
|
|
|
324
324
|
var _default = MediaWithPreview;
|