iglooform 2.4.6 → 2.4.10

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.
Files changed (225) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.js +18 -25
  3. package/es/admin-upload/job-list.js +83 -113
  4. package/es/admin-upload/modal.js +19 -26
  5. package/es/alert-message/index.js +11 -9
  6. package/es/amount/index.js +10 -5
  7. package/es/back-top/index.js +14 -10
  8. package/es/button/index.js +21 -26
  9. package/es/button/style/index.less +11 -25
  10. package/es/card-detail/card-group.js +16 -22
  11. package/es/card-detail/card-item.js +15 -20
  12. package/es/card-detail/card-page.js +11 -15
  13. package/es/card-detail/card.js +24 -24
  14. package/es/card-detail/style/index.less +13 -0
  15. package/es/card-detail/utils.js +3 -4
  16. package/es/checkbox/index.js +23 -22
  17. package/es/claim-list/index.js +51 -68
  18. package/es/confirmation/index.js +5 -7
  19. package/es/date-picker/buddhist.js +1 -1
  20. package/es/date-picker/index.js +10 -4
  21. package/es/declaration/index.js +16 -13
  22. package/es/detail-panel/index.js +67 -83
  23. package/es/documents/index.js +6 -8
  24. package/es/example/index.js +3 -4
  25. package/es/filter/checkBox.js +33 -45
  26. package/es/filter/customize.js +3 -4
  27. package/es/filter/index.js +79 -107
  28. package/es/filter/radioBox.js +23 -31
  29. package/es/filter/rangePicker.js +43 -59
  30. package/es/form/addable-section/index.d.ts +14 -0
  31. package/es/form/addable-section/index.js +188 -0
  32. package/es/form/addable-section/style/index.d.ts +1 -0
  33. package/es/form/addable-section/style/index.js +1 -0
  34. package/es/form/addable-section/style/index.less +22 -0
  35. package/es/form/divider/index.js +7 -1
  36. package/es/form/element/index.js +39 -36
  37. package/es/form/element/style/index.less +4 -0
  38. package/es/form/index.js +9 -12
  39. package/es/form/login/index.js +14 -19
  40. package/es/form/page/index.js +17 -23
  41. package/es/form/pages/index.js +22 -30
  42. package/es/form/section/index.js +11 -14
  43. package/es/form/step/index.js +30 -41
  44. package/es/form/steps/index.js +9 -9
  45. package/es/free-form/addable-section/index.d.ts +13 -0
  46. package/es/free-form/addable-section/index.js +263 -0
  47. package/es/free-form/addable-section/style/index.d.ts +1 -0
  48. package/es/free-form/addable-section/style/index.js +1 -0
  49. package/es/free-form/addable-section/style/index.less +22 -0
  50. package/es/free-form/element/index.js +21 -27
  51. package/es/free-form/element/style/index.less +4 -0
  52. package/es/free-form/index.js +9 -12
  53. package/es/free-form/page/index.js +28 -39
  54. package/es/free-form/pages/index.js +6 -8
  55. package/es/free-form/section/index.js +11 -14
  56. package/es/free-form/step/index.js +30 -41
  57. package/es/free-form/steps/index.d.ts +1 -0
  58. package/es/free-form/steps/index.js +8 -8
  59. package/es/home-menu/index.js +52 -71
  60. package/es/index.d.ts +1 -0
  61. package/es/index.js +2 -1
  62. package/es/input/amount.js +10 -5
  63. package/es/input/credit-card.js +7 -1
  64. package/es/input/email.js +8 -1
  65. package/es/input/expiry-date.js +12 -16
  66. package/es/input/input-date.js +12 -16
  67. package/es/input/input-number.js +9 -2
  68. package/es/input/input.js +9 -2
  69. package/es/input/otp.js +17 -15
  70. package/es/input/password.js +12 -6
  71. package/es/input/phone-number.js +6 -8
  72. package/es/input/style/index.less +9 -1
  73. package/es/input/text-area.js +14 -10
  74. package/es/layout/defaultFooter.js +60 -82
  75. package/es/layout/defaultHeader.js +11 -15
  76. package/es/layout/footer.js +108 -148
  77. package/es/layout/header.js +50 -59
  78. package/es/layout/index.js +16 -12
  79. package/es/locale/en-US/messages.json +2 -0
  80. package/es/locale/id-ID/messages.json +2 -0
  81. package/es/locale/locale-provider.js +6 -8
  82. package/es/locale/th-TH/messages.json +2 -0
  83. package/es/locale/vi-VN/messages.json +2 -0
  84. package/es/locale/zh-CN/messages.json +2 -0
  85. package/es/login-page/index.js +30 -42
  86. package/es/media/index.js +20 -27
  87. package/es/media/media.js +9 -12
  88. package/es/media/preview.js +6 -8
  89. package/es/mobile-insurer-detail/index.js +74 -91
  90. package/es/mobile-insurer-list/index.js +34 -38
  91. package/es/modal/index.js +20 -25
  92. package/es/platform/platform-card/index.js +9 -12
  93. package/es/platform/switch-platform/index.js +24 -32
  94. package/es/policy-list/index.js +9 -12
  95. package/es/policy-list/policy-card.js +119 -153
  96. package/es/radio/index.js +33 -35
  97. package/es/select/attached-select.js +31 -34
  98. package/es/select/select.js +12 -8
  99. package/es/select/time-select.js +12 -16
  100. package/es/status-box/index.js +6 -8
  101. package/es/table/index.js +69 -93
  102. package/es/tabs/index.js +7 -1
  103. package/es/typography/index.js +6 -8
  104. package/es/upload/index.js +48 -66
  105. package/es/upload-photo/index.js +47 -63
  106. package/es/upload-photo/media.js +3 -4
  107. package/es/upload-preview/index.js +9 -12
  108. package/es/upload-preview/media.js +12 -16
  109. package/es/upload-preview/style/index.less +2 -2
  110. package/es/utils/form-utils.js +19 -26
  111. package/lib/admin-upload/float.js +25 -35
  112. package/lib/admin-upload/index.js +18 -25
  113. package/lib/admin-upload/job-list.js +83 -113
  114. package/lib/admin-upload/modal.js +19 -26
  115. package/lib/alert-message/index.js +11 -9
  116. package/lib/amount/index.js +10 -5
  117. package/lib/back-top/index.js +14 -10
  118. package/lib/button/index.js +22 -27
  119. package/lib/button/style/index.less +11 -25
  120. package/lib/card-detail/card-group.js +16 -22
  121. package/lib/card-detail/card-item.js +15 -20
  122. package/lib/card-detail/card-page.js +11 -15
  123. package/lib/card-detail/card.js +24 -24
  124. package/lib/card-detail/index.js +6 -6
  125. package/lib/card-detail/style/index.less +13 -0
  126. package/lib/card-detail/utils.js +4 -5
  127. package/lib/checkbox/index.js +24 -23
  128. package/lib/claim-list/index.js +51 -68
  129. package/lib/confirmation/index.js +5 -7
  130. package/lib/date-picker/buddhist.js +1 -1
  131. package/lib/date-picker/index.js +11 -5
  132. package/lib/declaration/index.js +16 -13
  133. package/lib/detail-panel/index.js +67 -83
  134. package/lib/documents/index.js +6 -8
  135. package/lib/example/index.js +3 -4
  136. package/lib/filter/checkBox.js +33 -45
  137. package/lib/filter/customize.js +3 -4
  138. package/lib/filter/index.js +79 -107
  139. package/lib/filter/radioBox.js +23 -31
  140. package/lib/filter/rangePicker.js +43 -59
  141. package/lib/form/addable-section/index.d.ts +14 -0
  142. package/lib/form/addable-section/index.js +209 -0
  143. package/lib/form/addable-section/style/index.d.ts +1 -0
  144. package/lib/form/addable-section/style/index.js +3 -0
  145. package/lib/form/addable-section/style/index.less +22 -0
  146. package/lib/form/divider/index.js +7 -1
  147. package/lib/form/element/index.js +40 -36
  148. package/lib/form/element/style/index.less +4 -0
  149. package/lib/form/index.js +9 -12
  150. package/lib/form/login/index.js +14 -19
  151. package/lib/form/page/index.js +17 -23
  152. package/lib/form/pages/index.js +22 -30
  153. package/lib/form/section/index.js +11 -14
  154. package/lib/form/step/index.js +30 -41
  155. package/lib/form/steps/index.js +9 -9
  156. package/lib/free-form/addable-section/index.d.ts +13 -0
  157. package/lib/free-form/addable-section/index.js +283 -0
  158. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  159. package/lib/free-form/addable-section/style/index.js +3 -0
  160. package/lib/free-form/addable-section/style/index.less +22 -0
  161. package/lib/free-form/element/index.js +21 -27
  162. package/lib/free-form/element/style/index.less +4 -0
  163. package/lib/free-form/index.js +9 -12
  164. package/lib/free-form/page/index.js +28 -39
  165. package/lib/free-form/pages/index.js +6 -8
  166. package/lib/free-form/section/index.js +11 -14
  167. package/lib/free-form/step/index.js +30 -41
  168. package/lib/free-form/steps/index.d.ts +1 -0
  169. package/lib/free-form/steps/index.js +8 -8
  170. package/lib/home-menu/index.js +52 -71
  171. package/lib/index.d.ts +1 -0
  172. package/lib/index.js +140 -131
  173. package/lib/input/amount.js +10 -5
  174. package/lib/input/credit-card.js +7 -1
  175. package/lib/input/email.js +7 -1
  176. package/lib/input/expiry-date.js +12 -16
  177. package/lib/input/index.js +18 -18
  178. package/lib/input/input-date.js +12 -16
  179. package/lib/input/input-number.js +8 -2
  180. package/lib/input/input.js +8 -2
  181. package/lib/input/otp.js +17 -15
  182. package/lib/input/password.js +11 -6
  183. package/lib/input/phone-number.js +6 -8
  184. package/lib/input/style/index.less +9 -1
  185. package/lib/input/text-area.js +14 -10
  186. package/lib/layout/defaultFooter.js +60 -82
  187. package/lib/layout/defaultHeader.js +11 -15
  188. package/lib/layout/footer.js +108 -148
  189. package/lib/layout/header.js +50 -59
  190. package/lib/layout/index.js +15 -12
  191. package/lib/locale/en-US/messages.json +2 -0
  192. package/lib/locale/format-message.js +1 -1
  193. package/lib/locale/id-ID/messages.json +2 -0
  194. package/lib/locale/index.js +4 -4
  195. package/lib/locale/locale-provider.js +7 -9
  196. package/lib/locale/th-TH/messages.json +2 -0
  197. package/lib/locale/vi-VN/messages.json +2 -0
  198. package/lib/locale/zh-CN/messages.json +2 -0
  199. package/lib/login-page/index.js +30 -42
  200. package/lib/media/index.js +20 -27
  201. package/lib/media/media.js +9 -12
  202. package/lib/media/preview.js +6 -8
  203. package/lib/mobile-insurer-detail/index.js +74 -91
  204. package/lib/mobile-insurer-list/index.js +34 -38
  205. package/lib/modal/index.js +20 -25
  206. package/lib/platform/platform-card/index.js +9 -12
  207. package/lib/platform/switch-platform/index.js +24 -32
  208. package/lib/policy-list/index.js +9 -12
  209. package/lib/policy-list/policy-card.js +119 -153
  210. package/lib/radio/index.js +33 -35
  211. package/lib/select/attached-select.js +32 -35
  212. package/lib/select/select.js +13 -9
  213. package/lib/select/time-select.js +12 -16
  214. package/lib/status-box/index.js +6 -8
  215. package/lib/table/index.js +69 -93
  216. package/lib/tabs/index.js +8 -2
  217. package/lib/typography/index.js +6 -8
  218. package/lib/upload/index.js +48 -66
  219. package/lib/upload-photo/index.js +47 -63
  220. package/lib/upload-photo/media.js +3 -4
  221. package/lib/upload-preview/index.js +9 -12
  222. package/lib/upload-preview/media.js +12 -16
  223. package/lib/upload-preview/style/index.less +2 -2
  224. package/lib/utils/form-utils.js +20 -27
  225. 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 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", Object.assign({
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", Object.assign({
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
- children: [_jsxs("div", Object.assign({
33
- className: "mobile-tag-left"
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
- }), void 0), _jsxs("div", Object.assign({
40
- className: "left-insurer-info-container"
41
- }, {
42
- children: [_jsxs("div", Object.assign({
43
- className: "left-insurer-title"
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
- }), void 0), mobileRedDot && _jsx("div", {
48
+ }, void 0), mobileRedDot && _jsx("div", {
50
49
  className: "left-insurer-title-red-dot"
51
50
  }, void 0)]
52
- }), void 0), mobileSubTitle && _jsx("div", Object.assign({
53
- className: "left-insurer-sub-title"
54
- }, {
55
- children: _jsx(Typography, Object.assign({
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
- }), void 0)
60
- }), void 0), statusProps && _jsx("div", Object.assign({
61
- className: "left-insurer-status"
62
- }, {
63
- children: _jsx(StatusBox, Object.assign({}, statusProps), void 0)
64
- }), void 0)]
65
- }), void 0)]
66
- }), void 0), _jsx(ArrowRightOutlined, {}, void 0)]
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
- }), void 0);
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, Object.assign({}, props, {
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", Object.assign({
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, Object.assign({
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
- }), void 0) : footer,
151
+ }, void 0) : footer,
155
152
  width: width || 'noStyleWidth',
156
- children: formConfig ? _jsx(Form, Object.assign({
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, Object.assign({
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
- }), void 0), ele);
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", Object.assign({
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", Object.assign({
47
- className: "igloo-platform-name"
48
- }, {
44
+ }, void 0), _jsx("div", {
45
+ className: "igloo-platform-name",
49
46
  children: platform
50
- }), void 0)]
51
- }), void 0), !showDefault && _jsx(_Image, {
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
- }), void 0);
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, Object.assign({
43
+ return _jsx(_Dropdown, {
44
44
  className: "igloo-switch-platform",
45
45
  trigger: ['click'],
46
- overlay: _jsx(_Menu, Object.assign({
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, Object.assign({
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", Object.assign({
59
- className: "igloo-switch-platform-name"
60
- }, {
56
+ }, void 0), _jsx("span", {
57
+ className: "igloo-switch-platform-name",
61
58
  children: name
62
- }), void 0)]
63
- }), name);
59
+ }, void 0)]
60
+ }, name);
64
61
  })
65
- }), void 0),
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
- children: [_jsx("div", Object.assign({
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, Object.assign({
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", Object.assign({
93
- className: "igloo-switch-platform-name"
94
- }, {
85
+ }, void 0), _jsx("span", {
86
+ className: "igloo-switch-platform-name",
95
87
  children: currentPlatform
96
- }), void 0)]
97
- }), void 0)
98
- }), void 0), _jsx(ArrowDownOutlined, {
88
+ }, void 0)]
89
+ }, void 0)
90
+ }, void 0), _jsx(ArrowDownOutlined, {
99
91
  className: "igloo-switch-platform-arrow"
100
92
  }, void 0)]
101
- }), void 0)
102
- }), void 0);
93
+ }, void 0)
94
+ }, void 0);
103
95
  };
104
96
 
105
97
  export default SwitchPlatform;
@@ -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", Object.assign({
31
+ return _jsx("div", {
32
32
  className: classnames('igloo-policy-list-empty', className),
33
- style: style
34
- }, {
35
- children: _jsx(Typography, Object.assign({
36
- level: "body1"
37
- }, {
33
+ style: style,
34
+ children: _jsx(Typography, {
35
+ level: "body1",
38
36
  children: emptyText
39
- }), void 0)
40
- }), void 0);
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", Object.assign({
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
- }), void 0);
57
+ }, void 0);
61
58
  };
62
59
 
63
60
  export default PolicyList;