iglooform 2.4.8 → 2.4.9
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.js +18 -25
- package/es/admin-upload/job-list.js +83 -113
- 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 +21 -26
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +15 -20
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/utils.js +3 -4
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +51 -68
- package/es/confirmation/index.js +5 -7
- package/es/date-picker/buddhist.js +1 -1
- 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 +3 -4
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.js +79 -107
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/divider/index.js +7 -1
- package/es/form/element/index.js +28 -36
- package/es/form/element/style/index.less +4 -0
- package/es/form/index.js +9 -12
- package/es/form/login/index.js +14 -19
- package/es/form/page/index.js +17 -23
- package/es/form/pages/index.js +22 -30
- package/es/form/section/index.js +11 -14
- package/es/form/step/index.js +30 -41
- package/es/form/steps/index.js +6 -8
- package/es/free-form/element/index.js +21 -27
- package/es/free-form/element/style/index.less +4 -0
- package/es/free-form/index.js +9 -12
- package/es/free-form/page/index.js +28 -39
- package/es/free-form/pages/index.js +6 -8
- package/es/free-form/section/index.js +11 -14
- package/es/free-form/step/index.js +30 -41
- package/es/free-form/steps/index.js +6 -8
- package/es/home-menu/index.js +52 -71
- 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 +12 -16
- 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/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 +50 -59
- package/es/layout/index.js +16 -12
- package/es/locale/locale-provider.js +6 -8
- 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 +6 -8
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.js +20 -25
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +9 -12
- 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/time-select.js +12 -16
- package/es/status-box/index.js +6 -8
- package/es/table/index.js +69 -93
- package/es/tabs/index.js +7 -1
- package/es/typography/index.js +6 -8
- package/es/upload/index.js +48 -66
- package/es/upload-photo/index.js +47 -63
- 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/utils/form-utils.js +18 -25
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.js +18 -25
- package/lib/admin-upload/job-list.js +83 -113
- 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 +22 -27
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +15 -20
- 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/utils.js +4 -5
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +51 -68
- package/lib/confirmation/index.js +5 -7
- package/lib/date-picker/buddhist.js +1 -1
- 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 +3 -4
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.js +79 -107
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/divider/index.js +7 -1
- package/lib/form/element/index.js +28 -36
- package/lib/form/element/style/index.less +4 -0
- package/lib/form/index.js +9 -12
- package/lib/form/login/index.js +14 -19
- package/lib/form/page/index.js +17 -23
- package/lib/form/pages/index.js +22 -30
- package/lib/form/section/index.js +11 -14
- package/lib/form/step/index.js +30 -41
- package/lib/form/steps/index.js +6 -8
- package/lib/free-form/element/index.js +21 -27
- package/lib/free-form/element/style/index.less +4 -0
- package/lib/free-form/index.js +9 -12
- package/lib/free-form/page/index.js +28 -39
- package/lib/free-form/pages/index.js +6 -8
- package/lib/free-form/section/index.js +11 -14
- package/lib/free-form/step/index.js +30 -41
- package/lib/free-form/steps/index.js +6 -8
- package/lib/home-menu/index.js +52 -71
- package/lib/index.js +132 -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 +12 -16
- 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/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 +50 -59
- package/lib/layout/index.js +15 -12
- package/lib/locale/format-message.js +1 -1
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +7 -9
- 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 +6 -8
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.js +20 -25
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +9 -12
- 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/time-select.js +12 -16
- package/lib/status-box/index.js +6 -8
- package/lib/table/index.js +69 -93
- package/lib/tabs/index.js +8 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.js +48 -66
- package/lib/upload-photo/index.js +47 -63
- 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/utils/form-utils.js +19 -26
- package/package.json +1 -1
package/es/layout/header.js
CHANGED
|
@@ -11,6 +11,12 @@ import _Badge from "antd/es/badge";
|
|
|
11
11
|
import "antd/es/grid/style";
|
|
12
12
|
import _Grid from "antd/es/grid";
|
|
13
13
|
|
|
14
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
+
|
|
16
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
14
20
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
15
21
|
|
|
16
22
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -77,14 +83,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
77
83
|
switch (_typeof(badge)) {
|
|
78
84
|
case 'string':
|
|
79
85
|
return _jsxs(_Fragment, {
|
|
80
|
-
children: [_jsx(Typography,
|
|
86
|
+
children: [_jsx(Typography, {
|
|
81
87
|
className: classnames({
|
|
82
88
|
'active-menu': activeMenu === menuInfo.key
|
|
83
89
|
}),
|
|
84
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
85
|
-
}, {
|
|
90
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
86
91
|
children: menuInfo.title
|
|
87
|
-
}
|
|
92
|
+
}, void 0), _jsx(_Badge, {
|
|
88
93
|
dot: true,
|
|
89
94
|
color: '#F52209'
|
|
90
95
|
}, void 0)]
|
|
@@ -92,14 +97,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
92
97
|
|
|
93
98
|
case 'number':
|
|
94
99
|
return _jsxs(_Fragment, {
|
|
95
|
-
children: [_jsx(Typography,
|
|
100
|
+
children: [_jsx(Typography, {
|
|
96
101
|
className: classnames({
|
|
97
102
|
'active-menu': activeMenu === menuInfo.key
|
|
98
103
|
}),
|
|
99
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
100
|
-
}, {
|
|
104
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
101
105
|
children: menuInfo.title
|
|
102
|
-
}
|
|
106
|
+
}, void 0), _jsx(_Badge, {
|
|
103
107
|
count: badge,
|
|
104
108
|
style: {
|
|
105
109
|
backgroundColor: '#F52209'
|
|
@@ -109,123 +113,110 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
109
113
|
|
|
110
114
|
case 'object':
|
|
111
115
|
return _jsxs(_Fragment, {
|
|
112
|
-
children: [_jsx(Typography,
|
|
116
|
+
children: [_jsx(Typography, {
|
|
113
117
|
className: classnames({
|
|
114
118
|
'active-menu': activeMenu === menuInfo.key
|
|
115
119
|
}),
|
|
116
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
117
|
-
}, {
|
|
120
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
118
121
|
children: menuInfo.title
|
|
119
|
-
}
|
|
122
|
+
}, void 0), _jsx(_Badge, _objectSpread({}, badge), void 0)]
|
|
120
123
|
}, void 0);
|
|
121
124
|
|
|
122
125
|
case 'undefined':
|
|
123
|
-
return _jsx(Typography,
|
|
126
|
+
return _jsx(Typography, {
|
|
124
127
|
className: classnames({
|
|
125
128
|
'active-menu': activeMenu === menuInfo.key
|
|
126
129
|
}),
|
|
127
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
128
|
-
}, {
|
|
130
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
129
131
|
children: menuInfo.title
|
|
130
|
-
}
|
|
132
|
+
}, void 0);
|
|
131
133
|
|
|
132
134
|
case 'function':
|
|
133
135
|
return _jsxs(_Fragment, {
|
|
134
|
-
children: [_jsx(Typography,
|
|
136
|
+
children: [_jsx(Typography, {
|
|
135
137
|
className: classnames({
|
|
136
138
|
'active-menu': activeMenu === menuInfo.key
|
|
137
139
|
}),
|
|
138
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
139
|
-
}, {
|
|
140
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
140
141
|
children: menuInfo.title
|
|
141
|
-
}
|
|
142
|
+
}, void 0), badge()]
|
|
142
143
|
}, void 0);
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
if (md) {
|
|
147
|
-
return _jsx("div",
|
|
148
|
+
return _jsx("div", {
|
|
148
149
|
className: classnames({
|
|
149
150
|
'igloo-layout-header': true,
|
|
150
151
|
'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
|
|
151
|
-
})
|
|
152
|
-
|
|
153
|
-
children: _jsxs("div", Object.assign({
|
|
152
|
+
}),
|
|
153
|
+
children: _jsxs("div", {
|
|
154
154
|
className: classnames('header-content', {
|
|
155
155
|
'header-content-noSpaceBetween': children
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
className: "header-left"
|
|
160
|
-
}, {
|
|
156
|
+
}),
|
|
157
|
+
children: [_jsxs("div", {
|
|
158
|
+
className: "header-left",
|
|
161
159
|
children: [_jsx("div", {
|
|
162
160
|
className: "igloo-logo"
|
|
163
161
|
}, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && _jsx(_Row, {
|
|
164
162
|
children: menus.map(function (menu) {
|
|
165
|
-
return _jsx(_Col,
|
|
163
|
+
return _jsx(_Col, {
|
|
166
164
|
className: classnames('menu-item'),
|
|
167
165
|
onClick: function onClick() {
|
|
168
166
|
onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
|
|
169
|
-
}
|
|
170
|
-
}, {
|
|
167
|
+
},
|
|
171
168
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
172
|
-
}
|
|
169
|
+
}, menu.key);
|
|
173
170
|
})
|
|
174
171
|
}, void 0)]
|
|
175
|
-
}
|
|
176
|
-
size: 8
|
|
177
|
-
}, {
|
|
172
|
+
}, void 0), dropMenuConfig && !children && _jsxs(_Space, {
|
|
173
|
+
size: 8,
|
|
178
174
|
children: [_jsx(_Avatar, {
|
|
179
175
|
size: 32,
|
|
180
176
|
src: userAvatar
|
|
181
|
-
}, void 0), _jsx(Typography,
|
|
177
|
+
}, void 0), _jsx(Typography, {
|
|
182
178
|
level: "body1",
|
|
183
179
|
style: {
|
|
184
180
|
color: '#666666'
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
181
|
+
},
|
|
187
182
|
children: userName
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
183
|
+
}, void 0), dropMenuConfig && _jsx(HomeMenu, _objectSpread({}, dropMenuConfig), void 0)]
|
|
184
|
+
}, void 0), children]
|
|
185
|
+
}, void 0)
|
|
186
|
+
}, void 0);
|
|
192
187
|
} else {
|
|
193
188
|
return _jsxs(_Fragment, {
|
|
194
|
-
children: [_jsxs("div",
|
|
189
|
+
children: [_jsxs("div", {
|
|
195
190
|
className: classnames({
|
|
196
191
|
'igloo-layout-header': true,
|
|
197
192
|
'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
|
|
198
|
-
})
|
|
199
|
-
}, {
|
|
193
|
+
}),
|
|
200
194
|
children: [_jsx("div", {
|
|
201
195
|
className: "igloo-logo"
|
|
202
|
-
}, void 0), dropMenuConfig && !children && _jsx(HomeMenu,
|
|
196
|
+
}, void 0), dropMenuConfig && !children && _jsx(HomeMenu, _objectSpread({
|
|
203
197
|
userAvatar: userAvatar,
|
|
204
198
|
userName: userName
|
|
205
199
|
}, dropMenuConfig), void 0), children]
|
|
206
|
-
}
|
|
207
|
-
className: "igloo-layout-menu"
|
|
208
|
-
}, {
|
|
200
|
+
}, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, {
|
|
201
|
+
className: "igloo-layout-menu",
|
|
209
202
|
children: menus.map(function (menu) {
|
|
210
203
|
var span = 24 / menus.length;
|
|
211
|
-
return _jsx(_Col,
|
|
204
|
+
return _jsx(_Col, {
|
|
212
205
|
span: span,
|
|
213
206
|
className: classnames('menu-item'),
|
|
214
207
|
onClick: function onClick() {
|
|
215
208
|
onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
children: _jsx("div", Object.assign({
|
|
209
|
+
},
|
|
210
|
+
children: _jsx("div", {
|
|
219
211
|
style: {
|
|
220
212
|
display: 'flex',
|
|
221
213
|
alignItems: 'flex-start'
|
|
222
|
-
}
|
|
223
|
-
}, {
|
|
214
|
+
},
|
|
224
215
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
225
|
-
}
|
|
226
|
-
}
|
|
216
|
+
}, void 0)
|
|
217
|
+
}, menu.key);
|
|
227
218
|
})
|
|
228
|
-
}
|
|
219
|
+
}, void 0)]
|
|
229
220
|
}, void 0);
|
|
230
221
|
}
|
|
231
222
|
};
|
package/es/layout/index.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import "antd/es/grid/style";
|
|
2
2
|
import _Grid from "antd/es/grid";
|
|
3
|
+
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7
|
+
|
|
8
|
+
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; }
|
|
9
|
+
|
|
3
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
11
|
import classnames from 'classnames';
|
|
5
12
|
import LayoutHeader from './header';
|
|
@@ -85,20 +92,17 @@ var Layout = function Layout(props) {
|
|
|
85
92
|
contentDom = children;
|
|
86
93
|
}
|
|
87
94
|
|
|
88
|
-
return _jsxs("div",
|
|
95
|
+
return _jsxs("div", {
|
|
89
96
|
style: style,
|
|
90
|
-
className: classnames(layoutContainerClass, className)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
children: _jsx("div", Object.assign({
|
|
96
|
-
className: "igloo-layout-content"
|
|
97
|
-
}, {
|
|
97
|
+
className: classnames(layoutContainerClass, className),
|
|
98
|
+
children: [!headerDom && !headerConfig && _jsx(DefaultHeader, {}, void 0), headerConfig && _jsx(LayoutHeader, _objectSpread({}, headerConfig), void 0), headerDom, _jsx("div", {
|
|
99
|
+
className: "igloo-layout-center",
|
|
100
|
+
children: _jsx("div", {
|
|
101
|
+
className: "igloo-layout-content",
|
|
98
102
|
children: contentDom
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
103
|
+
}, void 0)
|
|
104
|
+
}, void 0), !footerDom && !footerConfig && _jsx(DefaultFooter, {}, void 0), footerConfig && _jsx(LayoutFooter, _objectSpread({}, footerConfig), void 0), footerDom]
|
|
105
|
+
}, void 0);
|
|
102
106
|
};
|
|
103
107
|
|
|
104
108
|
Layout.Header = LayoutHeader;
|
|
@@ -58,18 +58,16 @@ var LocaleProvider = function LocaleProvider(_ref) {
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
return _jsx(LocaleContext.Provider,
|
|
61
|
+
return _jsx(LocaleContext.Provider, {
|
|
62
62
|
value: {
|
|
63
63
|
formatMessage: formatMessage,
|
|
64
64
|
currentLang: currentLang
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
locale: antdLocale[currentLang] || antdDefault
|
|
69
|
-
}, {
|
|
65
|
+
},
|
|
66
|
+
children: _jsx(_ConfigProvider, {
|
|
67
|
+
locale: antdLocale[currentLang] || antdDefault,
|
|
70
68
|
children: children
|
|
71
|
-
}
|
|
72
|
-
}
|
|
69
|
+
}, void 0)
|
|
70
|
+
}, void 0);
|
|
73
71
|
};
|
|
74
72
|
|
|
75
73
|
export default LocaleProvider;
|
package/es/login-page/index.js
CHANGED
|
@@ -13,81 +13,69 @@ var LoginPage = function LoginPage(_ref) {
|
|
|
13
13
|
md = _Grid$useBreakpoint.md;
|
|
14
14
|
|
|
15
15
|
if (!md) {
|
|
16
|
-
return _jsxs("div",
|
|
17
|
-
className: "igloo-login-page-mobile"
|
|
18
|
-
}, {
|
|
16
|
+
return _jsxs("div", {
|
|
17
|
+
className: "igloo-login-page-mobile",
|
|
19
18
|
children: [_jsx("div", {
|
|
20
19
|
className: "igloo-login-page-mobile-logo"
|
|
21
|
-
}, void 0), _jsx("div",
|
|
22
|
-
className: "igloo-login-page-mobile-child-box"
|
|
23
|
-
}, {
|
|
20
|
+
}, void 0), _jsx("div", {
|
|
21
|
+
className: "igloo-login-page-mobile-child-box",
|
|
24
22
|
children: children
|
|
25
|
-
}
|
|
26
|
-
}
|
|
23
|
+
}, void 0)]
|
|
24
|
+
}, void 0);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
return _jsxs("div",
|
|
30
|
-
className: "igloo-login-page"
|
|
31
|
-
}, {
|
|
27
|
+
return _jsxs("div", {
|
|
28
|
+
className: "igloo-login-page",
|
|
32
29
|
children: [_jsx("div", {
|
|
33
30
|
className: "igloo-login-page-logo"
|
|
34
|
-
}, void 0), _jsx("div",
|
|
35
|
-
className: "igloo-login-page-child-box"
|
|
36
|
-
}, {
|
|
31
|
+
}, void 0), _jsx("div", {
|
|
32
|
+
className: "igloo-login-page-child-box",
|
|
37
33
|
children: children
|
|
38
|
-
}
|
|
39
|
-
className: "igloo-login-page-text-box"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, {
|
|
44
|
-
children: [_jsx("div", Object.assign({
|
|
34
|
+
}, void 0), _jsxs("div", {
|
|
35
|
+
className: "igloo-login-page-text-box",
|
|
36
|
+
children: [_jsxs("div", {
|
|
37
|
+
className: "igloo-login-page-text-box-text",
|
|
38
|
+
children: [_jsx("div", {
|
|
45
39
|
style: {
|
|
46
40
|
fontSize: 80,
|
|
47
41
|
lineHeight: '88px'
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
42
|
+
},
|
|
50
43
|
children: "Simple."
|
|
51
|
-
}
|
|
44
|
+
}, void 0), _jsx("div", {
|
|
52
45
|
style: {
|
|
53
46
|
fontSize: 80,
|
|
54
47
|
lineHeight: '88px'
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
48
|
+
},
|
|
57
49
|
children: "Painless."
|
|
58
|
-
}
|
|
50
|
+
}, void 0), _jsx("div", {
|
|
59
51
|
style: {
|
|
60
52
|
fontSize: 80,
|
|
61
53
|
lineHeight: '88px'
|
|
62
|
-
}
|
|
63
|
-
}, {
|
|
54
|
+
},
|
|
64
55
|
children: "Honest."
|
|
65
|
-
}
|
|
56
|
+
}, void 0), _jsx("div", {
|
|
66
57
|
style: {
|
|
67
58
|
fontSize: 48,
|
|
68
59
|
marginTop: 48
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
60
|
+
},
|
|
71
61
|
children: "Insurance for all."
|
|
72
|
-
}
|
|
62
|
+
}, void 0), _jsx("div", {
|
|
73
63
|
style: {
|
|
74
64
|
fontSize: 26,
|
|
75
65
|
marginTop: 75
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
66
|
+
},
|
|
78
67
|
children: "iglooinsure.com"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
className: "igloo-login-page-text-box-buttons"
|
|
82
|
-
}, {
|
|
68
|
+
}, void 0)]
|
|
69
|
+
}, void 0), showAppStore && _jsxs("div", {
|
|
70
|
+
className: "igloo-login-page-text-box-buttons",
|
|
83
71
|
children: [_jsx("div", {
|
|
84
72
|
className: classnames('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-apple')
|
|
85
73
|
}, void 0), _jsx("div", {
|
|
86
74
|
className: classnames('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-google')
|
|
87
75
|
}, void 0)]
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
76
|
+
}, void 0)]
|
|
77
|
+
}, void 0)]
|
|
78
|
+
}, void 0);
|
|
91
79
|
};
|
|
92
80
|
|
|
93
81
|
export default LoginPage;
|
package/es/media/index.js
CHANGED
|
@@ -206,16 +206,15 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
return _jsxs("div",
|
|
209
|
+
return _jsxs("div", {
|
|
210
210
|
className: className,
|
|
211
|
-
style: style
|
|
212
|
-
}, {
|
|
211
|
+
style: style,
|
|
213
212
|
children: [_jsx(Media, {
|
|
214
213
|
type: mediaType,
|
|
215
214
|
src: src,
|
|
216
215
|
onClick: open,
|
|
217
216
|
name: name
|
|
218
|
-
}, void 0), _jsxs(_Modal,
|
|
217
|
+
}, void 0), _jsxs(_Modal, {
|
|
219
218
|
visible: showModal,
|
|
220
219
|
onCancel: close,
|
|
221
220
|
footer: null,
|
|
@@ -226,52 +225,46 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
226
225
|
}, void 0),
|
|
227
226
|
wrapClassName: "igloo-media-preview",
|
|
228
227
|
width: "100%",
|
|
229
|
-
destroyOnClose: true
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
className: "igloo-document-name"
|
|
233
|
-
}, {
|
|
228
|
+
destroyOnClose: true,
|
|
229
|
+
children: [Boolean(docNames && docNames.length) && _jsxs("div", {
|
|
230
|
+
className: "igloo-document-name",
|
|
234
231
|
children: [_jsx("div", {
|
|
235
232
|
children: docNames[current]
|
|
236
233
|
}, void 0), _jsx("div", {
|
|
237
|
-
children: _jsxs(Typography,
|
|
238
|
-
level: "body1"
|
|
239
|
-
}, {
|
|
234
|
+
children: _jsxs(Typography, {
|
|
235
|
+
level: "body1",
|
|
240
236
|
children: [current + 1, "/", docNames.length]
|
|
241
|
-
}
|
|
237
|
+
}, void 0)
|
|
242
238
|
}, void 0)]
|
|
243
|
-
}
|
|
244
|
-
className: "igloo-media-list"
|
|
245
|
-
}, {
|
|
239
|
+
}, void 0), _jsxs("div", {
|
|
240
|
+
className: "igloo-media-list",
|
|
246
241
|
children: [Boolean(list && !!list.length) && list.map(function (_ref2, index) {
|
|
247
242
|
var src = _ref2.src,
|
|
248
243
|
type = _ref2.type;
|
|
249
|
-
return _jsx("div",
|
|
244
|
+
return _jsx("div", {
|
|
250
245
|
className: classnames({
|
|
251
246
|
'igloo-media-animating': needShowAnimation(index),
|
|
252
247
|
'igloo-media': true
|
|
253
248
|
}),
|
|
254
249
|
style: {
|
|
255
250
|
transform: "translateX(".concat(getTranslateX(index) * 100, "vw)")
|
|
256
|
-
}
|
|
257
|
-
}, {
|
|
251
|
+
},
|
|
258
252
|
children: _jsx(PreviewMedia, {
|
|
259
253
|
type: type,
|
|
260
254
|
src: src,
|
|
261
255
|
scale: scale,
|
|
262
256
|
isCurrent: index === current
|
|
263
257
|
}, void 0)
|
|
264
|
-
}
|
|
265
|
-
}), Boolean(!list || !list.length) && _jsx("div",
|
|
266
|
-
className: "igloo-media"
|
|
267
|
-
}, {
|
|
258
|
+
}, index);
|
|
259
|
+
}), Boolean(!list || !list.length) && _jsx("div", {
|
|
260
|
+
className: "igloo-media",
|
|
268
261
|
children: _jsx(PreviewMedia, {
|
|
269
262
|
type: mediaType,
|
|
270
263
|
src: src,
|
|
271
264
|
scale: scale,
|
|
272
265
|
isCurrent: true
|
|
273
266
|
}, void 0)
|
|
274
|
-
}
|
|
267
|
+
}, index), _jsx(MinusOutlined, {
|
|
275
268
|
onClick: zoomIn,
|
|
276
269
|
className: classnames({
|
|
277
270
|
'igloo-preview-zoom-btn': true,
|
|
@@ -306,9 +299,9 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
306
299
|
},
|
|
307
300
|
onClick: toRight
|
|
308
301
|
}, void 0)]
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
302
|
+
}, void 0)]
|
|
303
|
+
}, void 0)]
|
|
304
|
+
}, void 0);
|
|
312
305
|
};
|
|
313
306
|
|
|
314
307
|
export default MediaWithPreview;
|
package/es/media/media.js
CHANGED
|
@@ -19,18 +19,17 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
19
19
|
}, void 0);
|
|
20
20
|
|
|
21
21
|
case 'pdf':
|
|
22
|
-
return _jsx("div",
|
|
22
|
+
return _jsx("div", {
|
|
23
23
|
style: {
|
|
24
24
|
maxWidth: 80,
|
|
25
25
|
maxHeight: 80,
|
|
26
26
|
position: 'absolute'
|
|
27
|
-
}
|
|
28
|
-
}, {
|
|
27
|
+
},
|
|
29
28
|
children: _jsx(PDF, {
|
|
30
29
|
file: src,
|
|
31
30
|
scale: 0.1
|
|
32
31
|
}, void 0)
|
|
33
|
-
}
|
|
32
|
+
}, void 0);
|
|
34
33
|
|
|
35
34
|
default:
|
|
36
35
|
return _jsx("img", {
|
|
@@ -49,11 +48,10 @@ var Media = function Media(_ref2) {
|
|
|
49
48
|
name = _ref2.name,
|
|
50
49
|
type = _ref2.type,
|
|
51
50
|
onClick = _ref2.onClick;
|
|
52
|
-
return _jsx(_Tooltip,
|
|
51
|
+
return _jsx(_Tooltip, {
|
|
53
52
|
title: name,
|
|
54
|
-
placement: "bottom"
|
|
55
|
-
|
|
56
|
-
children: _jsxs("div", Object.assign({
|
|
53
|
+
placement: "bottom",
|
|
54
|
+
children: _jsxs("div", {
|
|
57
55
|
onClick: onClick,
|
|
58
56
|
style: {
|
|
59
57
|
position: 'relative',
|
|
@@ -64,8 +62,7 @@ var Media = function Media(_ref2) {
|
|
|
64
62
|
alignItems: 'center',
|
|
65
63
|
overflow: 'hidden',
|
|
66
64
|
border: '1px solid #EEEEEE'
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
65
|
+
},
|
|
69
66
|
children: [_jsx(MediaItem, {
|
|
70
67
|
type: type,
|
|
71
68
|
src: src
|
|
@@ -78,8 +75,8 @@ var Media = function Media(_ref2) {
|
|
|
78
75
|
},
|
|
79
76
|
onClick: onClick
|
|
80
77
|
}, void 0)]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
78
|
+
}, void 0)
|
|
79
|
+
}, void 0);
|
|
83
80
|
};
|
|
84
81
|
|
|
85
82
|
export default Media;
|
package/es/media/preview.js
CHANGED
|
@@ -52,7 +52,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
52
52
|
}, i));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
return _jsx("div",
|
|
55
|
+
return _jsx("div", {
|
|
56
56
|
style: {
|
|
57
57
|
display: 'flex',
|
|
58
58
|
flexDirection: 'column',
|
|
@@ -60,10 +60,9 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
60
60
|
maxHeight: '100%',
|
|
61
61
|
transform: "translate(".concat(left, "px, ").concat(top, "px)"),
|
|
62
62
|
position: 'absolute'
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
63
|
+
},
|
|
65
64
|
children: pages
|
|
66
|
-
}
|
|
65
|
+
}, void 0);
|
|
67
66
|
};
|
|
68
67
|
|
|
69
68
|
var MediaItem = function MediaItem(_ref3) {
|
|
@@ -195,7 +194,7 @@ var Media = function Media(_ref4) {
|
|
|
195
194
|
});
|
|
196
195
|
};
|
|
197
196
|
|
|
198
|
-
return _jsx("div",
|
|
197
|
+
return _jsx("div", {
|
|
199
198
|
style: {
|
|
200
199
|
position: 'relative',
|
|
201
200
|
width: '100%',
|
|
@@ -207,8 +206,7 @@ var Media = function Media(_ref4) {
|
|
|
207
206
|
},
|
|
208
207
|
onMouseDown: handleMouseDown,
|
|
209
208
|
onMouseUp: handleMouseUp,
|
|
210
|
-
onMouseMove: handleMouseMove
|
|
211
|
-
}, {
|
|
209
|
+
onMouseMove: handleMouseMove,
|
|
212
210
|
children: _jsx(MediaItem, {
|
|
213
211
|
type: type,
|
|
214
212
|
src: src,
|
|
@@ -216,7 +214,7 @@ var Media = function Media(_ref4) {
|
|
|
216
214
|
offset: offset,
|
|
217
215
|
isCurrent: isCurrent
|
|
218
216
|
}, void 0)
|
|
219
|
-
}
|
|
217
|
+
}, void 0);
|
|
220
218
|
};
|
|
221
219
|
|
|
222
220
|
export default Media;
|