iglooform 2.4.25 → 2.4.26

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 (209) hide show
  1. package/es/admin-upload/float.js +14 -14
  2. package/es/admin-upload/index.js +11 -11
  3. package/es/admin-upload/job-list.js +47 -47
  4. package/es/admin-upload/modal.js +10 -10
  5. package/es/alert-message/index.js +7 -7
  6. package/es/amount/index.js +2 -2
  7. package/es/back-top/index.js +4 -4
  8. package/es/button/index.js +9 -9
  9. package/es/card-detail/card-group.js +6 -6
  10. package/es/card-detail/card-item.js +5 -5
  11. package/es/card-detail/card-page.js +5 -5
  12. package/es/card-detail/card.js +7 -7
  13. package/es/checkbox/index.js +6 -6
  14. package/es/claim-list/index.js +19 -19
  15. package/es/confirmation/index.js +4 -4
  16. package/es/date-picker/buddhist.js +2 -2
  17. package/es/date-picker/index.js +9 -9
  18. package/es/declaration/index.js +5 -5
  19. package/es/detail-panel/index.js +26 -26
  20. package/es/documents/index.js +2 -2
  21. package/es/example/index.js +5 -5
  22. package/es/filter/checkBox.js +10 -10
  23. package/es/filter/customize.js +1 -1
  24. package/es/filter/index.js +43 -43
  25. package/es/filter/radioBox.js +7 -7
  26. package/es/filter/rangePicker.js +23 -23
  27. package/es/filter/style/index.less +10 -2
  28. package/es/form/addable-section/index.js +33 -18
  29. package/es/form/addable-section/style/index.less +6 -10
  30. package/es/form/divider/index.js +1 -1
  31. package/es/form/element/index.js +17 -17
  32. package/es/form/elements.js +5 -2
  33. package/es/form/index.js +7 -7
  34. package/es/form/login/index.js +6 -6
  35. package/es/form/page/index.js +8 -8
  36. package/es/form/pages/index.js +10 -10
  37. package/es/form/render/index.js +1 -1
  38. package/es/form/section/index.js +4 -4
  39. package/es/form/step/index.js +14 -14
  40. package/es/form/steps/index.js +2 -2
  41. package/es/free-form/addable-section/index.js +29 -14
  42. package/es/free-form/addable-section/style/index.less +0 -4
  43. package/es/free-form/element/index.js +10 -10
  44. package/es/free-form/index.js +3 -3
  45. package/es/free-form/page/index.js +15 -15
  46. package/es/free-form/pages/index.js +2 -2
  47. package/es/free-form/section/index.js +4 -4
  48. package/es/free-form/step/index.js +14 -14
  49. package/es/free-form/steps/index.js +2 -2
  50. package/es/global-message/index.js +12 -12
  51. package/es/home-menu/index.js +18 -18
  52. package/es/index.d.ts +1 -1
  53. package/es/index.js +1 -1
  54. package/es/input/amount.js +2 -2
  55. package/es/input/credit-card.js +4 -4
  56. package/es/input/email.js +1 -1
  57. package/es/input/expiry-date.js +3 -3
  58. package/es/input/input-date.js +3 -3
  59. package/es/input/input-number.js +1 -1
  60. package/es/input/input.js +1 -1
  61. package/es/input/otp.js +6 -6
  62. package/es/input/password.js +4 -4
  63. package/es/input/phone-number.js +4 -4
  64. package/es/input/text-area.js +4 -4
  65. package/es/layout/defaultFooter.js +28 -28
  66. package/es/layout/defaultHeader.js +6 -6
  67. package/es/layout/footer.js +66 -66
  68. package/es/layout/header.js +25 -25
  69. package/es/layout/index.js +4 -4
  70. package/es/locale/en-US/messages.json +1 -0
  71. package/es/locale/id-ID/messages.json +1 -0
  72. package/es/locale/locale-provider.js +2 -2
  73. package/es/locale/th-TH/messages.json +1 -0
  74. package/es/locale/vi-VN/messages.json +1 -0
  75. package/es/locale/zh-CN/messages.json +1 -0
  76. package/es/login-page/index.js +16 -16
  77. package/es/media/index.js +15 -15
  78. package/es/media/media.js +8 -8
  79. package/es/media/preview.js +6 -6
  80. package/es/mobile-insurer-detail/index.js +18 -18
  81. package/es/mobile-insurer-list/index.js +11 -11
  82. package/es/modal/index.js +8 -8
  83. package/es/platform/platform-card/index.js +5 -5
  84. package/es/platform/switch-platform/index.js +12 -12
  85. package/es/policy-list/index.js +4 -4
  86. package/es/policy-list/policy-card.js +32 -32
  87. package/es/radio/index.d.ts +2 -1
  88. package/es/radio/index.js +13 -12
  89. package/es/radio/radio-group-with-other.d.ts +6 -0
  90. package/es/radio/radio-group-with-other.js +85 -0
  91. package/es/select/attached-select.js +17 -20
  92. package/es/select/select.js +6 -9
  93. package/es/select/time-select.js +20 -20
  94. package/es/status-box/index.js +2 -2
  95. package/es/table/index.js +33 -33
  96. package/es/tabs/index.js +1 -1
  97. package/es/typography/index.js +10 -3
  98. package/es/upload/index.js +28 -28
  99. package/es/upload-photo/index.js +28 -28
  100. package/es/upload-photo/media.js +4 -4
  101. package/es/upload-preview/index.js +10 -10
  102. package/es/upload-preview/media.js +8 -8
  103. package/es/utils/form-utils.d.ts +1 -1
  104. package/es/utils/form-utils.js +11 -11
  105. package/lib/admin-upload/float.js +14 -14
  106. package/lib/admin-upload/index.js +11 -11
  107. package/lib/admin-upload/job-list.js +47 -47
  108. package/lib/admin-upload/modal.js +10 -10
  109. package/lib/alert-message/index.js +7 -7
  110. package/lib/amount/index.js +2 -2
  111. package/lib/back-top/index.js +4 -4
  112. package/lib/button/index.js +9 -9
  113. package/lib/card-detail/card-group.js +6 -6
  114. package/lib/card-detail/card-item.js +5 -5
  115. package/lib/card-detail/card-page.js +5 -5
  116. package/lib/card-detail/card.js +7 -7
  117. package/lib/checkbox/index.js +6 -6
  118. package/lib/claim-list/index.js +19 -19
  119. package/lib/confirmation/index.js +4 -4
  120. package/lib/date-picker/buddhist.js +2 -2
  121. package/lib/date-picker/index.js +9 -9
  122. package/lib/declaration/index.js +5 -5
  123. package/lib/detail-panel/index.js +26 -26
  124. package/lib/documents/index.js +2 -2
  125. package/lib/example/index.js +5 -5
  126. package/lib/filter/checkBox.js +10 -10
  127. package/lib/filter/customize.js +1 -1
  128. package/lib/filter/index.js +43 -43
  129. package/lib/filter/radioBox.js +7 -7
  130. package/lib/filter/rangePicker.js +23 -23
  131. package/lib/filter/style/index.less +10 -2
  132. package/lib/form/addable-section/index.js +37 -17
  133. package/lib/form/addable-section/style/index.less +6 -10
  134. package/lib/form/divider/index.js +1 -1
  135. package/lib/form/element/index.js +17 -17
  136. package/lib/form/elements.js +5 -1
  137. package/lib/form/index.js +7 -7
  138. package/lib/form/login/index.js +6 -6
  139. package/lib/form/page/index.js +8 -8
  140. package/lib/form/pages/index.js +10 -10
  141. package/lib/form/render/index.js +1 -1
  142. package/lib/form/section/index.js +4 -4
  143. package/lib/form/step/index.js +14 -14
  144. package/lib/form/steps/index.js +2 -2
  145. package/lib/free-form/addable-section/index.js +33 -13
  146. package/lib/free-form/addable-section/style/index.less +0 -4
  147. package/lib/free-form/element/index.js +10 -10
  148. package/lib/free-form/index.js +3 -3
  149. package/lib/free-form/page/index.js +15 -15
  150. package/lib/free-form/pages/index.js +2 -2
  151. package/lib/free-form/section/index.js +4 -4
  152. package/lib/free-form/step/index.js +14 -14
  153. package/lib/free-form/steps/index.js +2 -2
  154. package/lib/global-message/index.js +12 -12
  155. package/lib/home-menu/index.js +18 -18
  156. package/lib/index.d.ts +1 -1
  157. package/lib/index.js +7 -0
  158. package/lib/input/amount.js +2 -2
  159. package/lib/input/credit-card.js +4 -4
  160. package/lib/input/email.js +1 -1
  161. package/lib/input/expiry-date.js +3 -3
  162. package/lib/input/input-date.js +3 -3
  163. package/lib/input/input-number.js +1 -1
  164. package/lib/input/input.js +1 -1
  165. package/lib/input/otp.js +6 -6
  166. package/lib/input/password.js +4 -4
  167. package/lib/input/phone-number.js +4 -4
  168. package/lib/input/text-area.js +4 -4
  169. package/lib/layout/defaultFooter.js +28 -28
  170. package/lib/layout/defaultHeader.js +6 -6
  171. package/lib/layout/footer.js +66 -66
  172. package/lib/layout/header.js +25 -25
  173. package/lib/layout/index.js +4 -4
  174. package/lib/locale/en-US/messages.json +1 -0
  175. package/lib/locale/id-ID/messages.json +1 -0
  176. package/lib/locale/locale-provider.js +2 -2
  177. package/lib/locale/th-TH/messages.json +1 -0
  178. package/lib/locale/vi-VN/messages.json +1 -0
  179. package/lib/locale/zh-CN/messages.json +1 -0
  180. package/lib/login-page/index.js +16 -16
  181. package/lib/media/index.js +15 -15
  182. package/lib/media/media.js +8 -8
  183. package/lib/media/preview.js +6 -6
  184. package/lib/mobile-insurer-detail/index.js +18 -18
  185. package/lib/mobile-insurer-list/index.js +11 -11
  186. package/lib/modal/index.js +8 -8
  187. package/lib/platform/platform-card/index.js +5 -5
  188. package/lib/platform/switch-platform/index.js +12 -12
  189. package/lib/policy-list/index.js +4 -4
  190. package/lib/policy-list/policy-card.js +32 -32
  191. package/lib/radio/index.d.ts +2 -1
  192. package/lib/radio/index.js +21 -12
  193. package/lib/radio/radio-group-with-other.d.ts +6 -0
  194. package/lib/radio/radio-group-with-other.js +98 -0
  195. package/lib/select/attached-select.js +16 -19
  196. package/lib/select/select.js +5 -8
  197. package/lib/select/time-select.js +20 -20
  198. package/lib/status-box/index.js +2 -2
  199. package/lib/table/index.js +33 -33
  200. package/lib/tabs/index.js +1 -1
  201. package/lib/typography/index.js +10 -3
  202. package/lib/upload/index.js +28 -28
  203. package/lib/upload-photo/index.js +28 -28
  204. package/lib/upload-photo/media.js +4 -4
  205. package/lib/upload-preview/index.js +10 -10
  206. package/lib/upload-preview/media.js +8 -8
  207. package/lib/utils/form-utils.d.ts +1 -1
  208. package/lib/utils/form-utils.js +10 -10
  209. package/package.json +1 -1
package/es/media/media.js CHANGED
@@ -16,7 +16,7 @@ var MediaItem = function MediaItem(_ref) {
16
16
  maxHeight: 80
17
17
  },
18
18
  autoPlay: false
19
- }, void 0);
19
+ });
20
20
 
21
21
  case 'pdf':
22
22
  return _jsx("div", {
@@ -28,8 +28,8 @@ var MediaItem = function MediaItem(_ref) {
28
28
  children: _jsx(PDF, {
29
29
  file: src,
30
30
  scale: 0.1
31
- }, void 0)
32
- }, void 0);
31
+ })
32
+ });
33
33
 
34
34
  default:
35
35
  return _jsx("img", {
@@ -39,7 +39,7 @@ var MediaItem = function MediaItem(_ref) {
39
39
  maxHeight: 80,
40
40
  position: 'absolute'
41
41
  }
42
- }, void 0);
42
+ });
43
43
  }
44
44
  };
45
45
 
@@ -66,7 +66,7 @@ var Media = function Media(_ref2) {
66
66
  children: [_jsx(MediaItem, {
67
67
  type: type,
68
68
  src: src
69
- }, void 0), _jsx("div", {
69
+ }), _jsx("div", {
70
70
  style: {
71
71
  position: 'absolute',
72
72
  width: '100%',
@@ -74,9 +74,9 @@ var Media = function Media(_ref2) {
74
74
  cursor: 'pointer'
75
75
  },
76
76
  onClick: onClick
77
- }, void 0)]
78
- }, void 0)
79
- }, void 0);
77
+ })]
78
+ })
79
+ });
80
80
  };
81
81
 
82
82
  export default Media;
@@ -62,7 +62,7 @@ var PdfViewer = function PdfViewer(_ref) {
62
62
  position: 'absolute'
63
63
  },
64
64
  children: pages
65
- }, void 0);
65
+ });
66
66
  };
67
67
 
68
68
  var MediaItem = function MediaItem(_ref3) {
@@ -83,7 +83,7 @@ var MediaItem = function MediaItem(_ref3) {
83
83
  maxHeight: '100%'
84
84
  },
85
85
  autoPlay: true
86
- }, void 0);
86
+ });
87
87
 
88
88
  case 'pdf':
89
89
  return _jsx(PdfViewer, {
@@ -92,7 +92,7 @@ var MediaItem = function MediaItem(_ref3) {
92
92
  left: left,
93
93
  scale: scale,
94
94
  isCurrent: isCurrent
95
- }, void 0);
95
+ });
96
96
 
97
97
  default:
98
98
  return _jsx("img", {
@@ -103,7 +103,7 @@ var MediaItem = function MediaItem(_ref3) {
103
103
  transform: "scale(".concat(scale, ") translate(").concat(left, "px, ").concat(top, "px)"),
104
104
  position: 'absolute'
105
105
  }
106
- }, void 0);
106
+ });
107
107
  }
108
108
  };
109
109
 
@@ -213,8 +213,8 @@ var Media = function Media(_ref4) {
213
213
  scale: scale,
214
214
  offset: offset,
215
215
  isCurrent: isCurrent
216
- }, void 0)
217
- }, void 0);
216
+ })
217
+ });
218
218
  };
219
219
 
220
220
  export default Media;
@@ -31,22 +31,22 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
31
31
  style: {
32
32
  marginBottom: 24
33
33
  }
34
- }), void 0), _jsxs("div", {
34
+ })), _jsxs("div", {
35
35
  className: "mobile-detail-top",
36
36
  children: [insurerLogo && _jsx("div", {
37
37
  className: "mobile-detail-top-insurer-logo",
38
38
  children: insurerLogo
39
- }, void 0), _jsxs("div", {
39
+ }), _jsxs("div", {
40
40
  className: "mobile-detail-top-insurer-info",
41
41
  children: [_jsx("div", {
42
42
  className: "insurer-name",
43
43
  children: _jsxs(Typography, {
44
44
  level: "h4",
45
45
  children: [insurerName, " ", insurerType]
46
- }, void 0)
47
- }, void 0), _jsx(StatusBox, _objectSpread({}, statusProps), void 0)]
48
- }, void 0)]
49
- }, void 0), buttons && buttons.map(function (item, index) {
46
+ })
47
+ }), _jsx(StatusBox, _objectSpread({}, statusProps))]
48
+ })]
49
+ }), buttons && buttons.map(function (item, index) {
50
50
  return item.render ? item.render() : _jsx(Button, {
51
51
  icon: item.icon,
52
52
  onClick: function onClick() {
@@ -60,11 +60,11 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
60
60
  children: _jsx(Typography, {
61
61
  level: "h4",
62
62
  children: item.label
63
- }, void 0)
63
+ })
64
64
  }, String(item) + index);
65
65
  }), _jsx("div", {
66
66
  className: "dividing-line"
67
- }, void 0), infoGroups.map(function (group, index) {
67
+ }), infoGroups.map(function (group, index) {
68
68
  var sectionName = group.sectionName,
69
69
  infoItems = group.infoItems,
70
70
  hideBottomLine = group.hideBottomLine;
@@ -77,8 +77,8 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
77
77
  children: _jsx(Typography, {
78
78
  level: "h4",
79
79
  children: sectionName
80
- }, void 0)
81
- }, void 0), infoItems.map(function (item, index) {
80
+ })
81
+ }), infoItems.map(function (item, index) {
82
82
  var title = item.title,
83
83
  info = item.info,
84
84
  hide = item.hide;
@@ -95,8 +95,8 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
95
95
  children: _jsx(Typography, {
96
96
  level: "body1",
97
97
  children: title
98
- }, void 0)
99
- }, void 0), textArr.map(function (textItem, index) {
98
+ })
99
+ }), textArr.map(function (textItem, index) {
100
100
  var text = textItem.text,
101
101
  link = textItem.link;
102
102
 
@@ -106,7 +106,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
106
106
  children: _jsx(Typography, {
107
107
  level: "body1",
108
108
  children: textItem
109
- }, void 0)
109
+ })
110
110
  }, index);
111
111
  }
112
112
 
@@ -120,13 +120,13 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
120
120
  children: [_jsx(Typography, {
121
121
  level: "body1",
122
122
  children: text
123
- }, void 0), _jsx(Button, {
123
+ }), _jsx(Button, {
124
124
  onClick: onClick ? function () {
125
125
  return onClick(props);
126
126
  } : function () {},
127
127
  type: "link",
128
128
  children: link.linkText
129
- }, void 0)]
129
+ })]
130
130
  }, index);
131
131
  }
132
132
 
@@ -135,7 +135,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
135
135
  children: [_jsx(Typography, {
136
136
  level: "body1",
137
137
  children: text
138
- }, void 0), linkArr.map(function (linkObj, index) {
138
+ }), linkArr.map(function (linkObj, index) {
139
139
  var onClick = linkObj.onClick;
140
140
  return _jsx("div", {
141
141
  style: {
@@ -147,7 +147,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
147
147
  } : function () {},
148
148
  type: "link",
149
149
  children: linkObj.linkText
150
- }, void 0)
150
+ })
151
151
  }, index);
152
152
  })]
153
153
  }, index);
@@ -156,7 +156,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
156
156
  })]
157
157
  }, index);
158
158
  })]
159
- }, void 0);
159
+ });
160
160
  };
161
161
 
162
162
  export default MobileInsurerDetail;
@@ -38,31 +38,31 @@ var MobileInsurerList = function MobileInsurerList(props) {
38
38
  children: [insurerLogo && _jsx("div", {
39
39
  className: "left-insurer-icon",
40
40
  children: insurerLogo
41
- }, void 0), _jsxs("div", {
41
+ }), _jsxs("div", {
42
42
  className: "left-insurer-info-container",
43
43
  children: [_jsxs("div", {
44
44
  className: "left-insurer-title",
45
45
  children: [_jsxs(Typography, {
46
46
  level: "h4",
47
47
  children: [insurerName, " ", insurerType]
48
- }, void 0), mobileRedDot && _jsx("div", {
48
+ }), mobileRedDot && _jsx("div", {
49
49
  className: "left-insurer-title-red-dot"
50
- }, void 0)]
51
- }, void 0), mobileSubTitle && _jsx("div", {
50
+ })]
51
+ }), mobileSubTitle && _jsx("div", {
52
52
  className: "left-insurer-sub-title",
53
53
  children: _jsx(Typography, {
54
54
  level: "body2",
55
55
  children: mobileSubTitle
56
- }, void 0)
57
- }, void 0), statusProps && _jsx("div", {
56
+ })
57
+ }), statusProps && _jsx("div", {
58
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)]
59
+ children: _jsx(StatusBox, _objectSpread({}, statusProps))
60
+ })]
61
+ })]
62
+ }), _jsx(ArrowRightOutlined, {})]
63
63
  }, index);
64
64
  })
65
- }, void 0);
65
+ });
66
66
  };
67
67
 
68
68
  export default MobileInsurerList;
package/es/modal/index.js CHANGED
@@ -136,7 +136,7 @@ var IglooModal = function IglooModal(props) {
136
136
  fontSize: 24,
137
137
  color: '#666666'
138
138
  }
139
- }, void 0),
139
+ }),
140
140
  footer: footer === undefined ? _jsxs("div", {
141
141
  className: "igloo-modal-footer-btns",
142
142
  children: [_jsx(Button, _objectSpread(_objectSpread({
@@ -144,21 +144,21 @@ var IglooModal = function IglooModal(props) {
144
144
  }, cancelButtonProps), {}, {
145
145
  className: classnames('igloo-modal-footer-button', cancelButtonProps.className),
146
146
  children: cancelText
147
- }), void 0), _jsx(Button, _objectSpread(_objectSpread({
147
+ })), _jsx(Button, _objectSpread(_objectSpread({
148
148
  type: okType
149
149
  }, okButtonProps), {}, {
150
150
  className: classnames('igloo-modal-footer-button', okButtonProps.className),
151
151
  onClick: handleOk,
152
152
  children: okText
153
- }), void 0)]
154
- }, void 0) : footer,
153
+ }))]
154
+ }) : footer,
155
155
  width: width || 'noStyleWidth',
156
156
  children: formConfig ? _jsx(Form, _objectSpread({
157
157
  config: formConfig,
158
158
  showSubmitButton: false,
159
159
  ref: formRef
160
- }, formProps), void 0) : children
161
- }), void 0);
160
+ }, formProps)) : children
161
+ }));
162
162
  };
163
163
 
164
164
  var modalFunction = function modalFunction(_ref2) {
@@ -214,8 +214,8 @@ var modalFunction = function modalFunction(_ref2) {
214
214
  return rst;
215
215
  },
216
216
  children: content
217
- }), void 0)
218
- }, void 0), ele);
217
+ }))
218
+ }), ele);
219
219
  };
220
220
 
221
221
  var destroy = function destroy() {
@@ -43,11 +43,11 @@ var PlatformCard = function PlatformCard(_ref) {
43
43
  children: [_jsx("img", {
44
44
  src: defaultIcon,
45
45
  className: "igloo-platform-defaultLogo"
46
- }, void 0), _jsx("div", {
46
+ }), _jsx("div", {
47
47
  className: "igloo-platform-name",
48
48
  children: name
49
- }, void 0)]
50
- }, void 0), !showDefault && _jsx(_Image, {
49
+ })]
50
+ }), !showDefault && _jsx(_Image, {
51
51
  width: 200,
52
52
  height: 200,
53
53
  src: "https://static.iglooinsure.com/partner/normal/".concat(key.toLowerCase(), ".svg"),
@@ -55,8 +55,8 @@ var PlatformCard = function PlatformCard(_ref) {
55
55
  return setShowDefault(true);
56
56
  },
57
57
  preview: false
58
- }, void 0)]
59
- }, void 0);
58
+ })]
59
+ });
60
60
  };
61
61
 
62
62
  export default PlatformCard;
@@ -84,17 +84,17 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
84
84
  className: "igloo-switch-platform-default-logo",
85
85
  fallback: defaultIcon,
86
86
  preview: false
87
- }, void 0), _jsx("span", {
87
+ }), _jsx("span", {
88
88
  className: "igloo-switch-platform-name",
89
89
  children: name
90
- }, void 0)]
90
+ })]
91
91
  }, key);
92
92
  })
93
- }, void 0),
93
+ }),
94
94
  getPopupContainer: function getPopupContainer(trigger) {
95
95
  return trigger.parentElement;
96
96
  },
97
- placement: "bottomCenter",
97
+ placement: "bottom",
98
98
  children: _jsxs(_Space, {
99
99
  size: 8,
100
100
  align: "center",
@@ -107,22 +107,22 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
107
107
  return setShowDefault(true);
108
108
  },
109
109
  preview: false
110
- }, void 0) : _jsxs(_Space, {
110
+ }) : _jsxs(_Space, {
111
111
  size: 8,
112
112
  align: "center",
113
113
  children: [_jsx("img", {
114
114
  src: defaultIcon,
115
115
  className: "igloo-switch-platform-default-logo"
116
- }, void 0), _jsx("span", {
116
+ }), _jsx("span", {
117
117
  className: "igloo-switch-platform-name",
118
118
  children: currentName
119
- }, void 0)]
120
- }, void 0)
121
- }, void 0), _jsx(ArrowDownOutlined, {
119
+ })]
120
+ })
121
+ }), _jsx(ArrowDownOutlined, {
122
122
  className: "igloo-switch-platform-arrow"
123
- }, void 0)]
124
- }, void 0)
125
- }, void 0);
123
+ })]
124
+ })
125
+ });
126
126
  };
127
127
 
128
128
  export default SwitchPlatform;
@@ -34,8 +34,8 @@ var PolicyList = function PolicyList(props) {
34
34
  children: _jsx(Typography, {
35
35
  level: "body1",
36
36
  children: emptyText
37
- }, void 0)
38
- }, void 0);
37
+ })
38
+ });
39
39
  }
40
40
 
41
41
  if (!md) {
@@ -43,7 +43,7 @@ var PolicyList = function PolicyList(props) {
43
43
  dataList: dataList,
44
44
  style: style,
45
45
  className: className
46
- }, void 0);
46
+ });
47
47
  }
48
48
 
49
49
  return _jsx("div", {
@@ -54,7 +54,7 @@ var PolicyList = function PolicyList(props) {
54
54
  key: index
55
55
  }));
56
56
  })
57
- }, void 0);
57
+ });
58
58
  };
59
59
 
60
60
  export default PolicyList;
@@ -112,23 +112,23 @@ var PolicyCard = function PolicyCard(props) {
112
112
  className: classnames({
113
113
  'hide-icon': !extend
114
114
  })
115
- }, void 0), _jsx(ArrowDownOutlined, {
115
+ }), _jsx(ArrowDownOutlined, {
116
116
  className: classnames({
117
117
  'hide-icon': extend
118
118
  })
119
- }, void 0)]
120
- }, void 0), _jsx("div", {
119
+ })]
120
+ }), _jsx("div", {
121
121
  className: "left-logo-container",
122
122
  children: insurerLogo
123
- }, void 0), _jsxs(Typography, {
123
+ }), _jsxs(Typography, {
124
124
  level: "h4",
125
125
  className: "left-title-container",
126
126
  children: [insurerName, " ", insurerType]
127
- }, void 0), _jsx("div", {
127
+ }), _jsx("div", {
128
128
  className: "left-status",
129
- children: _jsx(StatusBox, _objectSpread({}, statusProps), void 0)
130
- }, void 0)]
131
- }, void 0), buttons && buttons.map(function (item, index) {
129
+ children: _jsx(StatusBox, _objectSpread({}, statusProps))
130
+ })]
131
+ }), buttons && buttons.map(function (item, index) {
132
132
  return item.render ? item.render() : _jsx(Button, {
133
133
  icon: item.icon,
134
134
  onClick: function onClick(e) {
@@ -142,13 +142,13 @@ var PolicyCard = function PolicyCard(props) {
142
142
  children: _jsx(Typography, {
143
143
  level: "h4",
144
144
  children: item.label
145
- }, void 0)
145
+ })
146
146
  }, String(item) + index);
147
147
  })]
148
- }, void 0), messageBar && _jsx("div", {
148
+ }), messageBar && _jsx("div", {
149
149
  className: "message-container",
150
- children: _jsx(AlertMessage, _objectSpread({}, messageBar), void 0)
151
- }, void 0), defaultItems && _jsx("div", {
150
+ children: _jsx(AlertMessage, _objectSpread({}, messageBar))
151
+ }), defaultItems && _jsx("div", {
152
152
  className: "container-bottom",
153
153
  children: _jsx(_Row, {
154
154
  gutter: [24, 32],
@@ -172,8 +172,8 @@ var PolicyCard = function PolicyCard(props) {
172
172
  children: _jsx(Typography, {
173
173
  level: "body1",
174
174
  children: title
175
- }, void 0)
176
- }, void 0), textArr.map(function (textItem, index) {
175
+ })
176
+ }), textArr.map(function (textItem, index) {
177
177
  var text = textItem.text,
178
178
  link = textItem.link;
179
179
 
@@ -183,7 +183,7 @@ var PolicyCard = function PolicyCard(props) {
183
183
  children: _jsx(Typography, {
184
184
  level: "body1",
185
185
  children: textItem
186
- }, void 0)
186
+ })
187
187
  }, index);
188
188
  } // 处理link (一个or多个,换行or不换行)
189
189
 
@@ -198,13 +198,13 @@ var PolicyCard = function PolicyCard(props) {
198
198
  children: [_jsx(Typography, {
199
199
  level: "body1",
200
200
  children: text
201
- }, void 0), _jsx(Button, {
201
+ }), _jsx(Button, {
202
202
  onClick: onClick ? function () {
203
203
  return onClick(props);
204
204
  } : function () {},
205
205
  type: "link",
206
206
  children: link.linkText
207
- }, void 0)]
207
+ })]
208
208
  }, index);
209
209
  }
210
210
 
@@ -213,7 +213,7 @@ var PolicyCard = function PolicyCard(props) {
213
213
  children: [_jsx(Typography, {
214
214
  level: "body1",
215
215
  children: text
216
- }, void 0), linkArr.map(function (linkObj, index) {
216
+ }), linkArr.map(function (linkObj, index) {
217
217
  var onClick = linkObj.onClick;
218
218
  return _jsx("div", {
219
219
  style: {
@@ -225,15 +225,15 @@ var PolicyCard = function PolicyCard(props) {
225
225
  } : function () {},
226
226
  type: "link",
227
227
  children: linkObj.linkText
228
- }, void 0)
228
+ })
229
229
  }, index);
230
230
  })]
231
231
  }, index);
232
232
  })]
233
233
  }, index);
234
234
  })
235
- }, void 0)
236
- }, void 0), _jsx(_Collapse, {
235
+ })
236
+ }), _jsx(_Collapse, {
237
237
  className: "igloo-policy-collapse-container",
238
238
  activeKey: extend ? allActiveKeys : [],
239
239
  children: infoGroups.map(function (group, index) {
@@ -247,7 +247,7 @@ var PolicyCard = function PolicyCard(props) {
247
247
  level: "h4",
248
248
  className: "panel-group-section-name",
249
249
  children: sectionName
250
- }, void 0), _jsx(_Row, {
250
+ }), _jsx(_Row, {
251
251
  gutter: [24, 16],
252
252
  children: infoItems.map(function (item, index) {
253
253
  var _item$span = item.span,
@@ -268,8 +268,8 @@ var PolicyCard = function PolicyCard(props) {
268
268
  children: _jsx(Typography, {
269
269
  level: "body1",
270
270
  children: title
271
- }, void 0)
272
- }, void 0), textArr.map(function (textItem, index) {
271
+ })
272
+ }), textArr.map(function (textItem, index) {
273
273
  var text = textItem.text,
274
274
  link = textItem.link;
275
275
 
@@ -279,7 +279,7 @@ var PolicyCard = function PolicyCard(props) {
279
279
  children: _jsx(Typography, {
280
280
  level: "body1",
281
281
  children: textItem
282
- }, void 0)
282
+ })
283
283
  }, index);
284
284
  } // 处理link (一个or多个,换行or不换行)
285
285
 
@@ -294,13 +294,13 @@ var PolicyCard = function PolicyCard(props) {
294
294
  children: [_jsx(Typography, {
295
295
  level: "body1",
296
296
  children: text
297
- }, void 0), _jsx(Button, {
297
+ }), _jsx(Button, {
298
298
  onClick: onClick ? function () {
299
299
  return onClick(props);
300
300
  } : function () {},
301
301
  type: "link",
302
302
  children: link.linkText
303
- }, void 0)]
303
+ })]
304
304
  }, index);
305
305
  }
306
306
 
@@ -309,7 +309,7 @@ var PolicyCard = function PolicyCard(props) {
309
309
  children: [_jsx(Typography, {
310
310
  level: "body1",
311
311
  children: text
312
- }, void 0), linkArr.map(function (linkObj, index) {
312
+ }), linkArr.map(function (linkObj, index) {
313
313
  var onClick = linkObj.onClick;
314
314
  return _jsx("div", {
315
315
  style: {
@@ -321,18 +321,18 @@ var PolicyCard = function PolicyCard(props) {
321
321
  } : function () {},
322
322
  type: "link",
323
323
  children: linkObj.linkText
324
- }, void 0)
324
+ })
325
325
  }, index);
326
326
  })]
327
327
  }, index);
328
328
  })]
329
329
  }, index);
330
330
  })
331
- }, void 0)]
331
+ })]
332
332
  }, index);
333
333
  })
334
- }, void 0)]
335
- }, void 0);
334
+ })]
335
+ });
336
336
  };
337
337
 
338
338
  export default PolicyCard;
@@ -4,7 +4,7 @@ import './style/index.less';
4
4
  import { FormInstance } from 'antd/es/form';
5
5
  declare type Props = RadioProps & IglooComponentProps;
6
6
  declare const IglooRadio: FC<Props>;
7
- interface Option extends RadioProps {
7
+ export interface Option extends RadioProps {
8
8
  extraInfo?: {
9
9
  content: any;
10
10
  shownTrigger: 'unchecked' | 'checked' | 'all';
@@ -19,3 +19,4 @@ export interface IProps extends IglooComponentProps, Omit<RadioGroupProps, 'opti
19
19
  }
20
20
  export declare const RadioGroup: FC<IProps>;
21
21
  export default IglooRadio;
22
+ export { default as RadioGroupWithOther } from './radio-group-with-other';
package/es/radio/index.js CHANGED
@@ -26,7 +26,7 @@ import './style/index.less';
26
26
  import Typography from '../typography';
27
27
 
28
28
  var IglooRadio = function IglooRadio(props) {
29
- return _jsx(_Radio, _objectSpread({}, omit(props, formMethods)), void 0);
29
+ return _jsx(_Radio, _objectSpread({}, omit(props, formMethods)));
30
30
  };
31
31
 
32
32
  IglooRadio.formItemPropsHandler = function () {
@@ -81,11 +81,11 @@ export var RadioGroup = function RadioGroup(_ref) {
81
81
  children: _jsx(Typography, {
82
82
  level: "body1",
83
83
  children: label
84
- }, void 0)
85
- }), void 0), _jsx("div", {
84
+ })
85
+ })), _jsx("div", {
86
86
  className: "igloo-radio-extra",
87
87
  children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
88
- }, void 0)]
88
+ })]
89
89
  }, key) : _jsx(_Col, {
90
90
  span: 12,
91
91
  className: 'igloo-radio-group-button',
@@ -99,21 +99,22 @@ export var RadioGroup = function RadioGroup(_ref) {
99
99
  children: _jsx(Typography, {
100
100
  level: "body1",
101
101
  children: label
102
- }, void 0)
103
- }, void 0), _jsx(_Radio, {
102
+ })
103
+ }), _jsx(_Radio, {
104
104
  value: key,
105
105
  className: 'igloo-radio-inner-radio'
106
- }, void 0)]
107
- }, void 0)
108
- }), void 0)
106
+ })]
107
+ })
108
+ }))
109
109
  }, key);
110
110
  })
111
- }, void 0)
112
- }), void 0);
111
+ })
112
+ }));
113
113
  };
114
114
 
115
115
  RadioGroup.formItemPropsHandler = function () {
116
116
  return {};
117
117
  };
118
118
 
119
- export default IglooRadio;
119
+ export default IglooRadio;
120
+ export { default as RadioGroupWithOther } from './radio-group-with-other';
@@ -0,0 +1,6 @@
1
+ import { IProps as RadioGroupProps } from './index';
2
+ import { FC } from '../types';
3
+ declare const RadioGroupWithOther: FC<RadioGroupProps & {
4
+ otherOptionLabel: string;
5
+ }>;
6
+ export default RadioGroupWithOther;