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
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
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; }
|
|
4
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
1
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
8
|
import classnames from 'classnames';
|
|
3
9
|
import Button from '../button';
|
|
@@ -18,36 +24,30 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
18
24
|
style = props.style,
|
|
19
25
|
className = props.className,
|
|
20
26
|
messageBar = props.messageBar;
|
|
21
|
-
return _jsxs("div",
|
|
27
|
+
return _jsxs("div", {
|
|
22
28
|
className: classnames('igloo-policy-mobile-detail-container', className),
|
|
23
|
-
style: style
|
|
24
|
-
|
|
25
|
-
children: [messageBar && _jsx(AlertMessage, Object.assign({}, messageBar, {
|
|
29
|
+
style: style,
|
|
30
|
+
children: [messageBar && _jsx(AlertMessage, _objectSpread(_objectSpread({}, messageBar), {}, {
|
|
26
31
|
style: {
|
|
27
32
|
marginBottom: 24
|
|
28
33
|
}
|
|
29
|
-
}), void 0), _jsxs("div",
|
|
30
|
-
className: "mobile-detail-top"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className: "mobile-detail-top-insurer-logo"
|
|
34
|
-
}, {
|
|
34
|
+
}), void 0), _jsxs("div", {
|
|
35
|
+
className: "mobile-detail-top",
|
|
36
|
+
children: [insurerLogo && _jsx("div", {
|
|
37
|
+
className: "mobile-detail-top-insurer-logo",
|
|
35
38
|
children: insurerLogo
|
|
36
|
-
}
|
|
37
|
-
className: "mobile-detail-top-insurer-info"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: _jsxs(Typography, Object.assign({
|
|
43
|
-
level: "h4"
|
|
44
|
-
}, {
|
|
39
|
+
}, void 0), _jsxs("div", {
|
|
40
|
+
className: "mobile-detail-top-insurer-info",
|
|
41
|
+
children: [_jsx("div", {
|
|
42
|
+
className: "insurer-name",
|
|
43
|
+
children: _jsxs(Typography, {
|
|
44
|
+
level: "h4",
|
|
45
45
|
children: [insurerName, " ", insurerType]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return item.render ? item.render() : _jsx(Button,
|
|
46
|
+
}, void 0)
|
|
47
|
+
}, void 0), _jsx(StatusBox, _objectSpread({}, statusProps), void 0)]
|
|
48
|
+
}, void 0)]
|
|
49
|
+
}, void 0), buttons && buttons.map(function (item, index) {
|
|
50
|
+
return item.render ? item.render() : _jsx(Button, {
|
|
51
51
|
icon: item.icon,
|
|
52
52
|
onClick: function onClick() {
|
|
53
53
|
return item.onClick && item.onClick(props);
|
|
@@ -56,34 +56,29 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
56
56
|
style: {
|
|
57
57
|
width: '100%',
|
|
58
58
|
marginBottom: "".concat(index === buttons.length - 1 ? 0 : 16, "px")
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
level: "h4"
|
|
63
|
-
}, {
|
|
59
|
+
},
|
|
60
|
+
children: _jsx(Typography, {
|
|
61
|
+
level: "h4",
|
|
64
62
|
children: item.label
|
|
65
|
-
}
|
|
66
|
-
}
|
|
63
|
+
}, void 0)
|
|
64
|
+
}, String(item) + index);
|
|
67
65
|
}), _jsx("div", {
|
|
68
66
|
className: "dividing-line"
|
|
69
67
|
}, void 0), infoGroups.map(function (group, index) {
|
|
70
68
|
var sectionName = group.sectionName,
|
|
71
69
|
infoItems = group.infoItems,
|
|
72
70
|
hideBottomLine = group.hideBottomLine;
|
|
73
|
-
return _jsxs("div",
|
|
71
|
+
return _jsxs("div", {
|
|
74
72
|
className: classnames('policy-info-group-container', {
|
|
75
73
|
'policy-info-group-container-no-bottom-line': hideBottomLine
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
children: _jsx(Typography, Object.assign({
|
|
82
|
-
level: "h4"
|
|
83
|
-
}, {
|
|
74
|
+
}),
|
|
75
|
+
children: [sectionName && _jsx("div", {
|
|
76
|
+
className: "group-section-name",
|
|
77
|
+
children: _jsx(Typography, {
|
|
78
|
+
level: "h4",
|
|
84
79
|
children: sectionName
|
|
85
|
-
}
|
|
86
|
-
}
|
|
80
|
+
}, void 0)
|
|
81
|
+
}, void 0), infoItems.map(function (item, index) {
|
|
87
82
|
var title = item.title,
|
|
88
83
|
info = item.info,
|
|
89
84
|
hide = item.hide;
|
|
@@ -93,31 +88,26 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
93
88
|
return;
|
|
94
89
|
}
|
|
95
90
|
|
|
96
|
-
return _jsxs("div",
|
|
97
|
-
className: "group-policy-info"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
children: _jsx(Typography, Object.assign({
|
|
103
|
-
level: "body1"
|
|
104
|
-
}, {
|
|
91
|
+
return _jsxs("div", {
|
|
92
|
+
className: "group-policy-info",
|
|
93
|
+
children: [_jsx("div", {
|
|
94
|
+
className: "group-policy-info-title",
|
|
95
|
+
children: _jsx(Typography, {
|
|
96
|
+
level: "body1",
|
|
105
97
|
children: title
|
|
106
|
-
}
|
|
107
|
-
}
|
|
98
|
+
}, void 0)
|
|
99
|
+
}, void 0), textArr.map(function (textItem, index) {
|
|
108
100
|
var text = textItem.text,
|
|
109
101
|
link = textItem.link;
|
|
110
102
|
|
|
111
103
|
if (typeof textItem === 'string' || link === undefined || link.length === 0) {
|
|
112
|
-
return _jsx("div",
|
|
113
|
-
className: "group-policy-info-text"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
level: "body1"
|
|
117
|
-
}, {
|
|
104
|
+
return _jsx("div", {
|
|
105
|
+
className: "group-policy-info-text",
|
|
106
|
+
children: _jsx(Typography, {
|
|
107
|
+
level: "body1",
|
|
118
108
|
children: textItem
|
|
119
|
-
}
|
|
120
|
-
}
|
|
109
|
+
}, void 0)
|
|
110
|
+
}, index);
|
|
121
111
|
}
|
|
122
112
|
|
|
123
113
|
var linkArr = Array.isArray(link) ? link : [link];
|
|
@@ -125,55 +115,48 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
125
115
|
|
|
126
116
|
if (onlyOneLink) {
|
|
127
117
|
var onClick = link.onClick;
|
|
128
|
-
return _jsxs("div",
|
|
129
|
-
className: "group-policy-info-text"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
level: "body1"
|
|
133
|
-
}, {
|
|
118
|
+
return _jsxs("div", {
|
|
119
|
+
className: "group-policy-info-text",
|
|
120
|
+
children: [_jsx(Typography, {
|
|
121
|
+
level: "body1",
|
|
134
122
|
children: text
|
|
135
|
-
}
|
|
123
|
+
}, void 0), _jsx(Button, {
|
|
136
124
|
onClick: onClick ? function () {
|
|
137
125
|
return onClick(props);
|
|
138
126
|
} : function () {},
|
|
139
|
-
type: "link"
|
|
140
|
-
}, {
|
|
127
|
+
type: "link",
|
|
141
128
|
children: link.linkText
|
|
142
|
-
}
|
|
143
|
-
}
|
|
129
|
+
}, void 0)]
|
|
130
|
+
}, index);
|
|
144
131
|
}
|
|
145
132
|
|
|
146
|
-
return _jsxs("div",
|
|
147
|
-
className: "group-text-and-link-mult-link"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
level: "body1"
|
|
151
|
-
}, {
|
|
133
|
+
return _jsxs("div", {
|
|
134
|
+
className: "group-text-and-link-mult-link",
|
|
135
|
+
children: [_jsx(Typography, {
|
|
136
|
+
level: "body1",
|
|
152
137
|
children: text
|
|
153
|
-
}
|
|
138
|
+
}, void 0), linkArr.map(function (linkObj, index) {
|
|
154
139
|
var onClick = linkObj.onClick;
|
|
155
|
-
return _jsx("div",
|
|
140
|
+
return _jsx("div", {
|
|
156
141
|
style: {
|
|
157
142
|
marginTop: 2
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
children: _jsx(Button, Object.assign({
|
|
143
|
+
},
|
|
144
|
+
children: _jsx(Button, {
|
|
161
145
|
onClick: onClick ? function () {
|
|
162
146
|
return onClick(props);
|
|
163
147
|
} : function () {},
|
|
164
|
-
type: "link"
|
|
165
|
-
}, {
|
|
148
|
+
type: "link",
|
|
166
149
|
children: linkObj.linkText
|
|
167
|
-
}
|
|
168
|
-
}
|
|
150
|
+
}, void 0)
|
|
151
|
+
}, index);
|
|
169
152
|
})]
|
|
170
|
-
}
|
|
153
|
+
}, index);
|
|
171
154
|
})]
|
|
172
|
-
}
|
|
155
|
+
}, index);
|
|
173
156
|
})]
|
|
174
|
-
}
|
|
157
|
+
}, index);
|
|
175
158
|
})]
|
|
176
|
-
}
|
|
159
|
+
}, void 0);
|
|
177
160
|
};
|
|
178
161
|
|
|
179
162
|
export default MobileInsurerDetail;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
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; }
|
|
2
|
+
|
|
3
|
+
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; }
|
|
4
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
1
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
8
|
import classnames from 'classnames';
|
|
3
9
|
import invariant from 'invariant';
|
|
@@ -10,10 +16,9 @@ var MobileInsurerList = function MobileInsurerList(props) {
|
|
|
10
16
|
var dataList = props.dataList,
|
|
11
17
|
style = props.style,
|
|
12
18
|
className = props.className;
|
|
13
|
-
return _jsx("div",
|
|
19
|
+
return _jsx("div", {
|
|
14
20
|
className: classnames('mobile-card-list', className),
|
|
15
|
-
style: style
|
|
16
|
-
}, {
|
|
21
|
+
style: style,
|
|
17
22
|
children: dataList.map(function (cardInfo, index) {
|
|
18
23
|
var insurerLogo = cardInfo.insurerLogo,
|
|
19
24
|
insurerName = cardInfo.insurerName,
|
|
@@ -23,50 +28,41 @@ var MobileInsurerList = function MobileInsurerList(props) {
|
|
|
23
28
|
mobileTagOnClick = cardInfo.mobileTagOnClick,
|
|
24
29
|
mobileRedDot = cardInfo.mobileRedDot;
|
|
25
30
|
invariant(mobileTagOnClick == undefined || typeof mobileTagOnClick === 'function', 'mobileTagOnClick must be a function');
|
|
26
|
-
return _jsxs("div",
|
|
31
|
+
return _jsxs("div", {
|
|
27
32
|
className: "mobile-tag-container",
|
|
28
33
|
onClick: function onClick(e) {
|
|
29
34
|
return mobileTagOnClick && mobileTagOnClick(cardInfo, e);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
children: [insurerLogo && _jsx("div", Object.assign({
|
|
36
|
-
className: "left-insurer-icon"
|
|
37
|
-
}, {
|
|
35
|
+
},
|
|
36
|
+
children: [_jsxs("div", {
|
|
37
|
+
className: "mobile-tag-left",
|
|
38
|
+
children: [insurerLogo && _jsx("div", {
|
|
39
|
+
className: "left-insurer-icon",
|
|
38
40
|
children: insurerLogo
|
|
39
|
-
}
|
|
40
|
-
className: "left-insurer-info-container"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
children: [_jsxs(Typography, Object.assign({
|
|
46
|
-
level: "h4"
|
|
47
|
-
}, {
|
|
41
|
+
}, void 0), _jsxs("div", {
|
|
42
|
+
className: "left-insurer-info-container",
|
|
43
|
+
children: [_jsxs("div", {
|
|
44
|
+
className: "left-insurer-title",
|
|
45
|
+
children: [_jsxs(Typography, {
|
|
46
|
+
level: "h4",
|
|
48
47
|
children: [insurerName, " ", insurerType]
|
|
49
|
-
}
|
|
48
|
+
}, void 0), mobileRedDot && _jsx("div", {
|
|
50
49
|
className: "left-insurer-title-red-dot"
|
|
51
50
|
}, void 0)]
|
|
52
|
-
}
|
|
53
|
-
className: "left-insurer-sub-title"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
level: "body2"
|
|
57
|
-
}, {
|
|
51
|
+
}, void 0), mobileSubTitle && _jsx("div", {
|
|
52
|
+
className: "left-insurer-sub-title",
|
|
53
|
+
children: _jsx(Typography, {
|
|
54
|
+
level: "body2",
|
|
58
55
|
children: mobileSubTitle
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
className: "left-insurer-status"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}), index);
|
|
56
|
+
}, void 0)
|
|
57
|
+
}, void 0), statusProps && _jsx("div", {
|
|
58
|
+
className: "left-insurer-status",
|
|
59
|
+
children: _jsx(StatusBox, _objectSpread({}, statusProps), void 0)
|
|
60
|
+
}, void 0)]
|
|
61
|
+
}, void 0)]
|
|
62
|
+
}, void 0), _jsx(ArrowRightOutlined, {}, void 0)]
|
|
63
|
+
}, index);
|
|
68
64
|
})
|
|
69
|
-
}
|
|
65
|
+
}, void 0);
|
|
70
66
|
};
|
|
71
67
|
|
|
72
68
|
export default MobileInsurerList;
|
package/es/modal/index.js
CHANGED
|
@@ -3,16 +3,16 @@ import _Modal from "antd/es/modal";
|
|
|
3
3
|
var _excluded = ["getContainer"],
|
|
4
4
|
_excluded2 = ["content", "onCancel", "onOk"];
|
|
5
5
|
|
|
6
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
7
|
+
|
|
8
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9
|
+
|
|
6
10
|
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; }
|
|
7
11
|
|
|
8
12
|
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; }
|
|
9
13
|
|
|
10
14
|
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; }
|
|
11
15
|
|
|
12
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
13
|
-
|
|
14
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
15
|
-
|
|
16
16
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
17
17
|
|
|
18
18
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -123,7 +123,7 @@ var IglooModal = function IglooModal(props) {
|
|
|
123
123
|
};
|
|
124
124
|
}();
|
|
125
125
|
|
|
126
|
-
return _jsx(_Modal,
|
|
126
|
+
return _jsx(_Modal, _objectSpread(_objectSpread({}, props), {}, {
|
|
127
127
|
className: classnames('igloo-modal', props.className, {
|
|
128
128
|
'igloo-modal-no-footer': footer === null,
|
|
129
129
|
'igloo-modal-limit-height': mode !== 'form'
|
|
@@ -134,26 +134,23 @@ var IglooModal = function IglooModal(props) {
|
|
|
134
134
|
color: '#666666'
|
|
135
135
|
}
|
|
136
136
|
}, void 0),
|
|
137
|
-
footer: footer === undefined ? _jsxs("div",
|
|
138
|
-
className: "igloo-modal-footer-btns"
|
|
139
|
-
|
|
140
|
-
children: [_jsx(Button, Object.assign({
|
|
137
|
+
footer: footer === undefined ? _jsxs("div", {
|
|
138
|
+
className: "igloo-modal-footer-btns",
|
|
139
|
+
children: [_jsx(Button, _objectSpread(_objectSpread({
|
|
141
140
|
onClick: onCancel
|
|
142
|
-
}, cancelButtonProps, {
|
|
143
|
-
className: classnames('igloo-modal-footer-button', cancelButtonProps.className)
|
|
144
|
-
}, {
|
|
141
|
+
}, cancelButtonProps), {}, {
|
|
142
|
+
className: classnames('igloo-modal-footer-button', cancelButtonProps.className),
|
|
145
143
|
children: cancelText
|
|
146
|
-
}), void 0), _jsx(Button,
|
|
144
|
+
}), void 0), _jsx(Button, _objectSpread(_objectSpread({
|
|
147
145
|
type: okType
|
|
148
|
-
}, okButtonProps, {
|
|
146
|
+
}, okButtonProps), {}, {
|
|
149
147
|
className: classnames('igloo-modal-footer-button', okButtonProps.className),
|
|
150
|
-
onClick: handleOk
|
|
151
|
-
}, {
|
|
148
|
+
onClick: handleOk,
|
|
152
149
|
children: okText
|
|
153
150
|
}), void 0)]
|
|
154
|
-
}
|
|
151
|
+
}, void 0) : footer,
|
|
155
152
|
width: width || 'noStyleWidth',
|
|
156
|
-
children: formConfig ? _jsx(Form,
|
|
153
|
+
children: formConfig ? _jsx(Form, _objectSpread({
|
|
157
154
|
config: formConfig,
|
|
158
155
|
showSubmitButton: false,
|
|
159
156
|
ref: formRef
|
|
@@ -192,10 +189,9 @@ var modalFunction = function modalFunction(_ref2) {
|
|
|
192
189
|
_onOk = _ref3.onOk,
|
|
193
190
|
rest = _objectWithoutProperties(_ref3, _excluded2);
|
|
194
191
|
|
|
195
|
-
render(_jsx(LocaleProvider,
|
|
196
|
-
currentLang: staticLang.current
|
|
197
|
-
|
|
198
|
-
children: _jsx(IglooModal, Object.assign({}, rest, {
|
|
192
|
+
render(_jsx(LocaleProvider, {
|
|
193
|
+
currentLang: staticLang.current,
|
|
194
|
+
children: _jsx(IglooModal, _objectSpread(_objectSpread({}, rest), {}, {
|
|
199
195
|
visible: true,
|
|
200
196
|
onCancel: function onCancel() {
|
|
201
197
|
_onCancel && _onCancel.apply(void 0, arguments);
|
|
@@ -213,11 +209,10 @@ var modalFunction = function modalFunction(_ref2) {
|
|
|
213
209
|
}
|
|
214
210
|
|
|
215
211
|
return rst;
|
|
216
|
-
}
|
|
217
|
-
}, {
|
|
212
|
+
},
|
|
218
213
|
children: content
|
|
219
214
|
}), void 0)
|
|
220
|
-
}
|
|
215
|
+
}, void 0), ele);
|
|
221
216
|
};
|
|
222
217
|
|
|
223
218
|
var destroy = function destroy() {
|
|
@@ -30,25 +30,22 @@ var PlatformCard = function PlatformCard(_ref) {
|
|
|
30
30
|
showDefault = _useState2[0],
|
|
31
31
|
setShowDefault = _useState2[1];
|
|
32
32
|
|
|
33
|
-
return _jsxs("div",
|
|
33
|
+
return _jsxs("div", {
|
|
34
34
|
className: classnames('igloo-platform', className),
|
|
35
35
|
onClick: onClick,
|
|
36
|
-
style: style
|
|
37
|
-
|
|
38
|
-
children: [showDefault && _jsxs("div", Object.assign({
|
|
36
|
+
style: style,
|
|
37
|
+
children: [showDefault && _jsxs("div", {
|
|
39
38
|
style: {
|
|
40
39
|
textAlign: 'center'
|
|
41
|
-
}
|
|
42
|
-
}, {
|
|
40
|
+
},
|
|
43
41
|
children: [_jsx("img", {
|
|
44
42
|
src: defaultIcon,
|
|
45
43
|
className: "igloo-platform-defaultLogo"
|
|
46
|
-
}, void 0), _jsx("div",
|
|
47
|
-
className: "igloo-platform-name"
|
|
48
|
-
}, {
|
|
44
|
+
}, void 0), _jsx("div", {
|
|
45
|
+
className: "igloo-platform-name",
|
|
49
46
|
children: platform
|
|
50
|
-
}
|
|
51
|
-
}
|
|
47
|
+
}, void 0)]
|
|
48
|
+
}, void 0), !showDefault && _jsx(_Image, {
|
|
52
49
|
width: 200,
|
|
53
50
|
height: 200,
|
|
54
51
|
src: "https://static.iglooinsure.com/partner/normal/".concat(platform.toLowerCase(), ".svg"),
|
|
@@ -57,7 +54,7 @@ var PlatformCard = function PlatformCard(_ref) {
|
|
|
57
54
|
},
|
|
58
55
|
preview: false
|
|
59
56
|
}, void 0)]
|
|
60
|
-
}
|
|
57
|
+
}, void 0);
|
|
61
58
|
};
|
|
62
59
|
|
|
63
60
|
export default PlatformCard;
|
|
@@ -40,41 +40,35 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
|
|
|
40
40
|
onChange(e.key);
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
return _jsx(_Dropdown,
|
|
43
|
+
return _jsx(_Dropdown, {
|
|
44
44
|
className: "igloo-switch-platform",
|
|
45
45
|
trigger: ['click'],
|
|
46
|
-
overlay: _jsx(_Menu,
|
|
47
|
-
onClick: handleChange
|
|
48
|
-
}, {
|
|
46
|
+
overlay: _jsx(_Menu, {
|
|
47
|
+
onClick: handleChange,
|
|
49
48
|
children: platforms === null || platforms === void 0 ? void 0 : platforms.map(function (name) {
|
|
50
|
-
return _jsxs(_Menu.Item,
|
|
51
|
-
className: "igloo-switch-platform-option"
|
|
52
|
-
}, {
|
|
49
|
+
return _jsxs(_Menu.Item, {
|
|
50
|
+
className: "igloo-switch-platform-option",
|
|
53
51
|
children: [_jsx(_Image, {
|
|
54
52
|
src: "https://static.iglooinsure.com/partner/square/".concat(name.toLowerCase(), ".svg"),
|
|
55
53
|
className: "igloo-switch-platform-default-logo",
|
|
56
54
|
fallback: defaultIcon,
|
|
57
55
|
preview: false
|
|
58
|
-
}, void 0), _jsx("span",
|
|
59
|
-
className: "igloo-switch-platform-name"
|
|
60
|
-
}, {
|
|
56
|
+
}, void 0), _jsx("span", {
|
|
57
|
+
className: "igloo-switch-platform-name",
|
|
61
58
|
children: name
|
|
62
|
-
}
|
|
63
|
-
}
|
|
59
|
+
}, void 0)]
|
|
60
|
+
}, name);
|
|
64
61
|
})
|
|
65
|
-
}
|
|
62
|
+
}, void 0),
|
|
66
63
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
67
64
|
return trigger.parentElement;
|
|
68
65
|
},
|
|
69
|
-
placement: "bottomCenter"
|
|
70
|
-
|
|
71
|
-
children: _jsxs(_Space, Object.assign({
|
|
66
|
+
placement: "bottomCenter",
|
|
67
|
+
children: _jsxs(_Space, {
|
|
72
68
|
size: 8,
|
|
73
|
-
align: "center"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
className: "igloo-switch-platform-nav"
|
|
77
|
-
}, {
|
|
69
|
+
align: "center",
|
|
70
|
+
children: [_jsx("div", {
|
|
71
|
+
className: "igloo-switch-platform-nav",
|
|
78
72
|
children: !showDefault ? _jsx(_Image, {
|
|
79
73
|
src: "https://static.iglooinsure.com/partner/nav/".concat(currentPlatform.toLowerCase(), ".svg"),
|
|
80
74
|
className: "igloo-switch-platform-nav-logo",
|
|
@@ -82,24 +76,22 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
|
|
|
82
76
|
return setShowDefault(true);
|
|
83
77
|
},
|
|
84
78
|
preview: false
|
|
85
|
-
}, void 0) : _jsxs(_Space,
|
|
79
|
+
}, void 0) : _jsxs(_Space, {
|
|
86
80
|
size: 8,
|
|
87
|
-
align: "center"
|
|
88
|
-
}, {
|
|
81
|
+
align: "center",
|
|
89
82
|
children: [_jsx("img", {
|
|
90
83
|
src: defaultIcon,
|
|
91
84
|
className: "igloo-switch-platform-default-logo"
|
|
92
|
-
}, void 0), _jsx("span",
|
|
93
|
-
className: "igloo-switch-platform-name"
|
|
94
|
-
}, {
|
|
85
|
+
}, void 0), _jsx("span", {
|
|
86
|
+
className: "igloo-switch-platform-name",
|
|
95
87
|
children: currentPlatform
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
88
|
+
}, void 0)]
|
|
89
|
+
}, void 0)
|
|
90
|
+
}, void 0), _jsx(ArrowDownOutlined, {
|
|
99
91
|
className: "igloo-switch-platform-arrow"
|
|
100
92
|
}, void 0)]
|
|
101
|
-
}
|
|
102
|
-
}
|
|
93
|
+
}, void 0)
|
|
94
|
+
}, void 0);
|
|
103
95
|
};
|
|
104
96
|
|
|
105
97
|
export default SwitchPlatform;
|
package/es/policy-list/index.js
CHANGED
|
@@ -28,16 +28,14 @@ var PolicyList = function PolicyList(props) {
|
|
|
28
28
|
emptyText = _props$emptyText === void 0 ? 'There is currently no expired policy.' : _props$emptyText;
|
|
29
29
|
|
|
30
30
|
if (dataList.length === 0) {
|
|
31
|
-
return _jsx("div",
|
|
31
|
+
return _jsx("div", {
|
|
32
32
|
className: classnames('igloo-policy-list-empty', className),
|
|
33
|
-
style: style
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
level: "body1"
|
|
37
|
-
}, {
|
|
33
|
+
style: style,
|
|
34
|
+
children: _jsx(Typography, {
|
|
35
|
+
level: "body1",
|
|
38
36
|
children: emptyText
|
|
39
|
-
}
|
|
40
|
-
}
|
|
37
|
+
}, void 0)
|
|
38
|
+
}, void 0);
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
if (!md) {
|
|
@@ -48,16 +46,15 @@ var PolicyList = function PolicyList(props) {
|
|
|
48
46
|
}, void 0);
|
|
49
47
|
}
|
|
50
48
|
|
|
51
|
-
return _jsx("div",
|
|
49
|
+
return _jsx("div", {
|
|
52
50
|
className: classnames('igloo-policy-list', className),
|
|
53
|
-
style: style
|
|
54
|
-
}, {
|
|
51
|
+
style: style,
|
|
55
52
|
children: dataList.map(function (policyProps, index) {
|
|
56
53
|
return /*#__PURE__*/_createElement(PolicyCard, _objectSpread(_objectSpread({}, policyProps), {}, {
|
|
57
54
|
key: index
|
|
58
55
|
}));
|
|
59
56
|
})
|
|
60
|
-
}
|
|
57
|
+
}, void 0);
|
|
61
58
|
};
|
|
62
59
|
|
|
63
60
|
export default PolicyList;
|