iglooform 2.3.9 → 2.3.13

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.
@@ -4,7 +4,7 @@ import './style';
4
4
  interface Menu {
5
5
  title: string;
6
6
  key: string;
7
- badge?: 'dot' | number | BadgeProps | (() => any);
7
+ badge?: 'dot' | number | string | BadgeProps | (() => any) | string;
8
8
  }
9
9
  interface Info {
10
10
  title: string;
@@ -14,30 +14,38 @@ interface Action {
14
14
  title: string;
15
15
  onClick?: () => void;
16
16
  }
17
- interface ILayout {
17
+ interface HeaderConfig {
18
+ menus?: Menu[];
19
+ defaultSelected?: string;
20
+ selectedKey?: string;
21
+ onMenuChange?: (menuItem: any) => any;
22
+ dropMenuConfig?: {
23
+ customInfos: Info[];
24
+ actions: Action[];
25
+ };
26
+ userName?: string;
27
+ userAvatar?: string;
28
+ }
29
+ interface FooterConfig {
30
+ companyInfoRender?: () => any;
31
+ copyRightRender?: (origin: ReactNode) => any;
32
+ tel?: string;
33
+ email?: string;
34
+ workTime?: any;
35
+ address?: string;
36
+ }
37
+ interface layoutType {
18
38
  className?: string;
19
39
  style?: CSSProperties;
20
- headerConfig?: {
21
- menus?: Menu[];
22
- defaultSelected?: string;
23
- selectedKey?: string;
24
- onMenuChange?: (mentItem: any) => any;
25
- dropMenuConfig?: {
26
- customInfos: Info[];
27
- actions: Action[];
28
- };
29
- userName?: string;
30
- userAvatar?: string;
31
- };
32
- footerConfig?: {
33
- companyInfoRender?: () => any;
34
- copyRightRender?: (origin: ReactNode) => any;
35
- tel?: string;
36
- email?: string;
37
- workTime?: any;
38
- address?: string;
39
- };
40
40
  withFixedPanel?: boolean;
41
+ headerConfig?: HeaderConfig;
42
+ footerConfig?: FooterConfig;
43
+ }
44
+ declare type HeaderFunction = (props: HeaderConfig) => any;
45
+ declare type FooterFunction = (props: FooterConfig) => any;
46
+ interface ILayout extends FC<layoutType> {
47
+ Header: HeaderFunction;
48
+ Footer: FooterFunction;
41
49
  }
42
- declare const Layout: FC<ILayout>;
50
+ declare const Layout: ILayout;
43
51
  export default Layout;
@@ -1,65 +1,18 @@
1
- import "antd/es/avatar/style";
2
- import _Avatar from "antd/es/avatar";
3
- import "antd/es/col/style";
4
- import _Col from "antd/es/col";
5
- import "antd/es/row/style";
6
- import _Row from "antd/es/row";
7
- import "antd/es/space/style";
8
- import _Space from "antd/es/space";
9
- import "antd/es/badge/style";
10
- import _Badge from "antd/es/badge";
11
1
  import "antd/es/grid/style";
12
2
  import _Grid from "antd/es/grid";
13
-
14
- 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
-
16
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
17
-
18
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
-
20
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
21
-
22
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
23
-
24
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
25
-
26
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
27
-
28
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
29
- import { useState, useEffect } from 'react';
30
- import Typography from '../typography';
3
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
31
4
  import classnames from 'classnames';
32
- import { EmailOutlined, LocationOutlined, TimeOutlined, PhoneOutlined } from 'iglooicon';
33
- import HomeMenu from '../home-menu/index';
34
- import defaultAvatar from './style/avatar.svg';
35
- import Button from '../button';
5
+ import LayoutHeader from './header';
6
+ import LayoutFooter from './footer';
36
7
  import './style';
37
8
 
38
9
  var Layout = function Layout(props) {
39
10
  var className = props.className,
40
11
  style = props.style,
41
- _props$headerConfig = props.headerConfig,
42
- headerConfig = _props$headerConfig === void 0 ? {} : _props$headerConfig,
43
- _props$footerConfig = props.footerConfig,
44
- footerConfig = _props$footerConfig === void 0 ? {} : _props$footerConfig,
45
- children = props.children,
46
- withFixedPanel = props.withFixedPanel;
47
- var _headerConfig$menus = headerConfig.menus,
48
- menus = _headerConfig$menus === void 0 ? [] : _headerConfig$menus,
49
- userName = headerConfig.userName,
50
- _headerConfig$userAva = headerConfig.userAvatar,
51
- userAvatar = _headerConfig$userAva === void 0 ? defaultAvatar : _headerConfig$userAva,
52
- _headerConfig$default = headerConfig.defaultSelected,
53
- defaultSelected = _headerConfig$default === void 0 ? '' : _headerConfig$default,
54
- onMenuChange = headerConfig.onMenuChange,
55
- dropMenuConfig = headerConfig.dropMenuConfig,
56
- selectedKey = headerConfig.selectedKey;
57
- var companyInfoRender = footerConfig.companyInfoRender,
58
- copyRightRender = footerConfig.copyRightRender,
59
- tel = footerConfig.tel,
60
- email = footerConfig.email,
61
- workTime = footerConfig.workTime,
62
- address = footerConfig.address;
12
+ headerConfig = props.headerConfig,
13
+ footerConfig = props.footerConfig,
14
+ withFixedPanel = props.withFixedPanel,
15
+ children = props.children;
63
16
  var useBreakpoint = _Grid.useBreakpoint;
64
17
 
65
18
  var _useBreakpoint = useBreakpoint(),
@@ -67,32 +20,14 @@ var Layout = function Layout(props) {
67
20
  lg = _useBreakpoint.lg,
68
21
  xl = _useBreakpoint.xl;
69
22
 
70
- var _useState = useState(defaultSelected),
71
- _useState2 = _slicedToArray(_useState, 2),
72
- activeMenu = _useState2[0],
73
- setActiveMenu = _useState2[1];
74
-
75
- var _useState3 = useState(selectedKey),
76
- _useState4 = _slicedToArray(_useState3, 2),
77
- selectedMenu = _useState4[0],
78
- setSelectedMenu = _useState4[1];
79
-
80
- useEffect(function () {
81
- if (selectedKey) {
82
- setSelectedMenu(selectedKey);
83
- }
84
- }, [selectedKey]);
85
-
86
- var defaultMenuOnClick = function defaultMenuOnClick(menuConfig) {
87
- var key = menuConfig.key;
88
- setActiveMenu(key);
89
- };
90
-
91
23
  var mobile = !md;
92
24
  var smallPC = !lg && md;
93
25
  var middlePC = !xl && lg;
94
26
  var bigPC = xl;
95
27
  var layoutContainerClass = '';
28
+ var contentDom = null;
29
+ var headerDom = null;
30
+ var footerDom = null;
96
31
 
97
32
  if (mobile) {
98
33
  layoutContainerClass = classnames({
@@ -113,303 +48,55 @@ var Layout = function Layout(props) {
113
48
  layoutContainerClass = 'igloo-customer-layout-big';
114
49
  }
115
50
 
116
- function getMenuDom(activeMenu, menuInfo) {
117
- var badge = menuInfo.badge;
51
+ switch (Object.prototype.toString.call(children)) {
52
+ case '[object Object]':
53
+ // @ts-ignore
54
+ if ((children === null || children === void 0 ? void 0 : children.type.displayName) === 'LayoutHeader') {
55
+ headerDom = children;
56
+ break;
57
+ } //@ts-ignore
118
58
 
119
- switch (_typeof(badge)) {
120
- case 'string':
121
- return _jsxs(_Fragment, {
122
- children: [_jsx(Typography, Object.assign({
123
- className: classnames({
124
- 'active-menu': activeMenu === menuInfo.key
125
- }),
126
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
127
- }, {
128
- children: menuInfo.title
129
- }), void 0), _jsx(_Badge, {
130
- dot: true,
131
- color: '#F52209'
132
- }, void 0)]
133
- }, void 0);
134
59
 
135
- case 'number':
136
- return _jsxs(_Fragment, {
137
- children: [_jsx(Typography, Object.assign({
138
- className: classnames({
139
- 'active-menu': activeMenu === menuInfo.key
140
- }),
141
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
142
- }, {
143
- children: menuInfo.title
144
- }), void 0), _jsx(_Badge, {
145
- count: badge,
146
- style: {
147
- backgroundColor: '#F52209'
148
- }
149
- }, void 0)]
150
- }, void 0);
60
+ if ((children === null || children === void 0 ? void 0 : children.type.displayName) === 'LayoutFooter') {
61
+ footerDom = children;
62
+ break;
63
+ }
151
64
 
152
- case 'object':
153
- return _jsxs(_Fragment, {
154
- children: [_jsx(Typography, Object.assign({
155
- className: classnames({
156
- 'active-menu': activeMenu === menuInfo.key
157
- }),
158
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
159
- }, {
160
- children: menuInfo.title
161
- }), void 0), _jsx(_Badge, Object.assign({}, badge), void 0)]
162
- }, void 0);
65
+ contentDom = children;
66
+ break;
163
67
 
164
- case 'undefined':
165
- return _jsx(Typography, Object.assign({
166
- className: classnames({
167
- 'active-menu': activeMenu === menuInfo.key
168
- }),
169
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
170
- }, {
171
- children: menuInfo.title
172
- }), void 0);
68
+ case '[object Array]':
69
+ //@ts-ignore
70
+ contentDom = children.filter(function (dom) {
71
+ if (dom.type) {
72
+ if (dom.type.displayName === 'LayoutHeader') headerDom = dom;
73
+ if (dom.type.displayName === 'LayoutFooter') footerDom = dom;
74
+ return dom.type.displayName !== 'LayoutHeader' && dom.type.displayName !== 'LayoutFooter';
75
+ } // 希望所有的dom都被返回,处理一下dom=数字0这种情况
173
76
 
174
- case 'function':
175
- return _jsxs(_Fragment, {
176
- children: [_jsx(Typography, Object.assign({
177
- className: classnames({
178
- 'active-menu': activeMenu === menuInfo.key
179
- }),
180
- level: activeMenu === menuInfo.key ? 'h4' : 'body1'
181
- }, {
182
- children: menuInfo.title
183
- }), void 0), badge()]
184
- }, void 0);
185
- }
186
- }
187
77
 
188
- var topRightContent = companyInfoRender ? companyInfoRender() : _jsxs(_Fragment, {
189
- children: [_jsxs("div", Object.assign({
190
- className: "no-address-info"
191
- }, {
192
- children: [tel && _jsxs("div", Object.assign({
193
- className: "info-container",
194
- style: {
195
- alignItems: 'center'
196
- }
197
- }, {
198
- children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
199
- children: typeof tel === 'string' ? _jsx(Typography, Object.assign({
200
- level: "body2",
201
- className: "info-span"
202
- }, {
203
- children: tel
204
- }), void 0) : tel
205
- }, void 0)]
206
- }), void 0), email && _jsxs("div", Object.assign({
207
- className: "info-container",
208
- style: {
209
- alignItems: 'center'
210
- }
211
- }, {
212
- children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
213
- children: typeof email === 'string' ? _jsx(Typography, Object.assign({
214
- level: "body2",
215
- className: "info-span"
216
- }, {
217
- children: email
218
- }), void 0) : email
219
- }, void 0)]
220
- }), void 0), workTime && _jsxs("div", Object.assign({
221
- className: "info-container"
222
- }, {
223
- children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
224
- children: typeof workTime === 'string' ? _jsx(Typography, Object.assign({
225
- level: "body2",
226
- className: "info-span"
227
- }, {
228
- children: workTime
229
- }), void 0) : workTime
230
- }, void 0)]
231
- }), void 0)]
232
- }), void 0), address && _jsxs(_Space, Object.assign({
233
- size: 16,
234
- align: "start"
235
- }, {
236
- children: [_jsx(LocationOutlined, {
237
- style: {
238
- fontSize: 24
239
- }
240
- }, void 0), _jsx("div", {
241
- children: typeof address === 'string' ? _jsx(Typography, Object.assign({
242
- level: "body2",
243
- className: "info-span"
244
- }, {
245
- children: address
246
- }), void 0) : address
247
- }, void 0)]
248
- }), void 0)]
249
- }, void 0);
78
+ return dom !== false;
79
+ });
80
+ break;
81
+
82
+ default:
83
+ contentDom = children;
84
+ }
250
85
 
251
86
  if (!md) {
252
87
  return _jsxs("div", Object.assign({
253
88
  style: style,
254
89
  className: classnames(layoutContainerClass, className)
255
90
  }, {
256
- children: [_jsxs("div", Object.assign({
257
- className: classnames({
258
- 'igloo-layout-header': true,
259
- 'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
260
- })
261
- }, {
262
- children: [_jsx("div", {
263
- className: "igloo-logo"
264
- }, void 0), dropMenuConfig && _jsx(HomeMenu, Object.assign({
265
- userAvatar: userAvatar,
266
- userName: userName
267
- }, dropMenuConfig), void 0)]
268
- }), void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, Object.assign({
269
- className: "igloo-layout-menu"
270
- }, {
271
- children: menus.map(function (menu) {
272
- var span = 24 / menus.length;
273
- return _jsx(_Col, Object.assign({
274
- span: span,
275
- className: classnames('menu-item'),
276
- onClick: function onClick() {
277
- onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
278
- }
279
- }, {
280
- children: _jsx("div", Object.assign({
281
- style: {
282
- display: 'flex',
283
- alignItems: 'flex-start'
284
- }
285
- }, {
286
- children: getMenuDom(selectedMenu || activeMenu, menu)
287
- }), void 0)
288
- }), menu.key);
289
- })
290
- }), void 0), _jsx("div", Object.assign({
91
+ children: [headerConfig && _jsx(LayoutHeader, Object.assign({}, headerConfig), void 0), headerDom, _jsx("div", Object.assign({
291
92
  className: "igloo-layout-center"
292
93
  }, {
293
94
  children: _jsx("div", Object.assign({
294
95
  className: "igloo-layout-content"
295
96
  }, {
296
- children: children
97
+ children: contentDom
297
98
  }), void 0)
298
- }), void 0), _jsx("div", Object.assign({
299
- className: "igloo-layout-footer"
300
- }, {
301
- children: _jsxs("div", Object.assign({
302
- className: "footer-content"
303
- }, {
304
- children: [_jsx("div", {
305
- className: "igloo-logo"
306
- }, void 0), _jsxs("div", Object.assign({
307
- className: "compony-info"
308
- }, {
309
- children: [tel && _jsxs("div", Object.assign({
310
- className: "info-item"
311
- }, {
312
- children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
313
- children: typeof tel === 'string' ? _jsx(Typography, Object.assign({
314
- level: "body3",
315
- className: "info-span"
316
- }, {
317
- children: tel
318
- }), void 0) : tel
319
- }, void 0)]
320
- }), void 0), email && _jsxs("div", Object.assign({
321
- className: "info-item"
322
- }, {
323
- children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
324
- children: typeof email === 'string' ? _jsx(Typography, Object.assign({
325
- level: "body3",
326
- className: "info-span"
327
- }, {
328
- children: email
329
- }), void 0) : email
330
- }, void 0)]
331
- }), void 0), workTime && _jsxs("div", Object.assign({
332
- className: "info-item"
333
- }, {
334
- children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
335
- children: typeof workTime === 'string' ? _jsx(Typography, Object.assign({
336
- level: "body3",
337
- className: "info-span"
338
- }, {
339
- children: workTime
340
- }), void 0) : workTime
341
- }, void 0)]
342
- }), void 0), address && _jsxs("div", Object.assign({
343
- className: "info-item"
344
- }, {
345
- children: [_jsx(LocationOutlined, {
346
- style: {
347
- fontSize: 24
348
- }
349
- }, void 0), _jsx("div", {
350
- children: typeof address === 'string' ? _jsx(Typography, Object.assign({
351
- level: "body3",
352
- className: "info-span"
353
- }, {
354
- children: address
355
- }), void 0) : address
356
- }, void 0)]
357
- }), void 0)]
358
- }), void 0), _jsxs("div", Object.assign({
359
- className: "footer-bottom"
360
- }, {
361
- children: [_jsx("div", {
362
- children: copyRightRender ? copyRightRender(_jsxs("div", {
363
- children: [_jsxs("div", {
364
- children: ["\xA9 ", new Date().getFullYear(), " Powered by Axinan Pte Ltd."]
365
- }, void 0), _jsx("div", {
366
- children: "All Rights Reserved."
367
- }, void 0)]
368
- }, void 0)) : _jsxs(Typography, Object.assign({
369
- level: "body3"
370
- }, {
371
- children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd."), _jsx("div", {
372
- children: "All Rights Reserved."
373
- }, void 0)]
374
- }), void 0)
375
- }, void 0), _jsx("div", {
376
- children: _jsxs(Typography, Object.assign({
377
- level: "body3"
378
- }, {
379
- children: [_jsx(Button, Object.assign({
380
- type: "text",
381
- onClick: function onClick() {
382
- return window.open('https://contents.iglooinsure.com/privacypolicy');
383
- }
384
- }, {
385
- children: _jsx(Typography, Object.assign({
386
- level: "body3"
387
- }, {
388
- children: "Privacy Policy"
389
- }), void 0)
390
- }), void 0), ' ', _jsx("span", Object.assign({
391
- style: {
392
- margin: '0px 16px'
393
- }
394
- }, {
395
- children: "|"
396
- }), void 0), ' ', _jsx(Button, Object.assign({
397
- type: "text",
398
- onClick: function onClick() {
399
- return window.open('https://contents.iglooinsure.com/termsofservice');
400
- }
401
- }, {
402
- children: _jsx(Typography, Object.assign({
403
- level: "body3"
404
- }, {
405
- children: "Terms of Service"
406
- }), void 0)
407
- }), void 0)]
408
- }), void 0)
409
- }, void 0)]
410
- }), void 0)]
411
- }), void 0)
412
- }), void 0)]
99
+ }), void 0), footerConfig && _jsx(LayoutFooter, Object.assign({}, footerConfig), void 0), footerDom]
413
100
  }), void 0);
414
101
  }
415
102
 
@@ -417,120 +104,18 @@ var Layout = function Layout(props) {
417
104
  style: style,
418
105
  className: classnames(layoutContainerClass, className)
419
106
  }, {
420
- children: [_jsx("div", Object.assign({
421
- className: classnames({
422
- 'igloo-layout-header': true,
423
- 'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
424
- })
425
- }, {
426
- children: _jsxs("div", Object.assign({
427
- className: "header-content"
428
- }, {
429
- children: [_jsxs("div", Object.assign({
430
- className: "header-left"
431
- }, {
432
- children: [_jsx("div", {
433
- className: "igloo-logo"
434
- }, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, {
435
- children: menus.map(function (menu) {
436
- return _jsx(_Col, Object.assign({
437
- className: classnames('menu-item'),
438
- onClick: function onClick() {
439
- onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
440
- }
441
- }, {
442
- children: getMenuDom(selectedMenu || activeMenu, menu)
443
- }), menu.key);
444
- })
445
- }, void 0)]
446
- }), void 0), dropMenuConfig && _jsxs(_Space, Object.assign({
447
- size: 8
448
- }, {
449
- children: [_jsx(_Avatar, {
450
- size: 32,
451
- src: userAvatar
452
- }, void 0), _jsx(Typography, Object.assign({
453
- level: "body1",
454
- style: {
455
- color: '#666666'
456
- }
457
- }, {
458
- children: userName
459
- }), void 0), dropMenuConfig && _jsx(HomeMenu, Object.assign({}, dropMenuConfig), void 0)]
460
- }), void 0)]
461
- }), void 0)
462
- }), void 0), _jsx("div", Object.assign({
107
+ children: [headerConfig && _jsx(LayoutHeader, Object.assign({}, headerConfig), void 0), headerDom, _jsx("div", Object.assign({
463
108
  className: "igloo-layout-center"
464
109
  }, {
465
110
  children: _jsx("div", Object.assign({
466
111
  className: "igloo-layout-content"
467
112
  }, {
468
- children: children
469
- }), void 0)
470
- }), void 0), _jsx("div", Object.assign({
471
- className: "igloo-layout-footer"
472
- }, {
473
- children: _jsxs("div", Object.assign({
474
- className: "footer-content"
475
- }, {
476
- children: [_jsxs(_Space, Object.assign({
477
- size: 32,
478
- align: "start",
479
- className: "footer-top"
480
- }, {
481
- children: [_jsx("div", Object.assign({
482
- className: "top-left"
483
- }, {
484
- children: _jsx("div", {
485
- className: "igloo-logo"
486
- }, void 0)
487
- }), void 0), topRightContent]
488
- }), void 0), _jsx("div", {
489
- className: "footer-divider"
490
- }, void 0), _jsxs("div", Object.assign({
491
- className: "footer-bottom"
492
- }, {
493
- children: [copyRightRender ? copyRightRender("\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd. All Rights Reserved.")) : _jsx(Typography, Object.assign({
494
- level: "body3"
495
- }, {
496
- children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd. All Rights Reserved.")
497
- }), void 0), _jsxs(Typography, Object.assign({
498
- level: "body3"
499
- }, {
500
- children: [_jsx(Button, Object.assign({
501
- type: "text",
502
- onClick: function onClick() {
503
- return window.open('https://contents.iglooinsure.com/privacypolicy');
504
- }
505
- }, {
506
- children: _jsx(Typography, Object.assign({
507
- level: "body3"
508
- }, {
509
- children: "Privacy Policy"
510
- }), void 0)
511
- }), void 0), ' ', _jsx("span", Object.assign({
512
- style: {
513
- margin: '0px 16px'
514
- }
515
- }, {
516
- children: "|"
517
- }), void 0), _jsx(Button, Object.assign({
518
- type: "text",
519
- onClick: function onClick() {
520
- return window.open('https://contents.iglooinsure.com/termsofservice');
521
- }
522
- }, {
523
- children: _jsx(Typography, Object.assign({
524
- level: "body3"
525
- }, {
526
- children: "Terms of Service"
527
- }), void 0)
528
- }), void 0)]
529
- }), void 0)]
530
- }), void 0)]
113
+ children: contentDom
531
114
  }), void 0)
532
- }), void 0)]
115
+ }), void 0), footerConfig && _jsx(LayoutFooter, Object.assign({}, footerConfig), void 0), footerDom]
533
116
  }), void 0);
534
117
  };
535
118
 
119
+ Layout.Header = LayoutHeader;
120
+ Layout.Footer = LayoutFooter;
536
121
  export default Layout;
@@ -316,18 +316,30 @@ var IglooSelect = function IglooSelect(_ref) {
316
316
  children: displayOptions.map(function (_ref10) {
317
317
  var label = _ref10.label,
318
318
  value = _ref10.value;
319
- return _jsx(Option, Object.assign({
319
+ return _jsxs(Option, Object.assign({
320
320
  value: value,
321
- label: label
321
+ label: label,
322
+ style: {
323
+ position: 'relative'
324
+ }
322
325
  }, {
323
- children: multiple ? _jsxs("div", {
326
+ children: [multiple ? _jsxs("div", {
324
327
  children: [_jsx(Checkbox, {
325
328
  checked: Array.isArray(selected) && selected.includes(value),
326
329
  style: {
327
330
  marginRight: 8
328
331
  }
329
332
  }, void 0), label]
330
- }, void 0) : label
333
+ }, void 0) : label, _jsx("div", {
334
+ style: {
335
+ position: 'absolute',
336
+ width: '100%',
337
+ height: '100%',
338
+ zIndex: 2,
339
+ top: 0,
340
+ left: 0
341
+ }
342
+ }, void 0)]
331
343
  }), value);
332
344
  })
333
345
  }), void 0)
@@ -20,6 +20,10 @@
20
20
 
21
21
  .ant-table-wrapper {
22
22
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.16);
23
+
24
+ .ant-table {
25
+ overflow-x: scroll;
26
+ }
23
27
  }
24
28
 
25
29
  & table > thead > tr:first-child {
@@ -284,6 +288,7 @@
284
288
  color: @primary-color;
285
289
  }
286
290
  }
291
+
287
292
  .ant-dropdown-arrow {
288
293
  right: 11px;
289
294
  }