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
@@ -0,0 +1,85 @@
1
+ var _excluded = ["value", "onChange", "options", "otherOptionLabel"];
2
+
3
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
+
5
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+
7
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
8
+
9
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
10
+
11
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
12
+
13
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
14
+
15
+ 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; }
16
+
17
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+
19
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
20
+
21
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
22
+
23
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
24
+
25
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
26
+
27
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
28
+
29
+ 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; }
30
+
31
+ 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; }
32
+
33
+ import { jsx as _jsx } from "react/jsx-runtime";
34
+ import { useContext, useState } from 'react';
35
+ import { RadioGroup } from './index';
36
+ import { TextArea } from '../input';
37
+ import { LocaleContext } from '../locale';
38
+ var otherKey = 'iglooRadioGroupOther';
39
+
40
+ var RadioGroupWithOther = function RadioGroupWithOther(_ref) {
41
+ var value = _ref.value,
42
+ onChange = _ref.onChange,
43
+ options = _ref.options,
44
+ otherOptionLabel = _ref.otherOptionLabel,
45
+ rest = _objectWithoutProperties(_ref, _excluded);
46
+
47
+ var _useState = useState(false),
48
+ _useState2 = _slicedToArray(_useState, 2),
49
+ otherEnabled = _useState2[0],
50
+ enableOther = _useState2[1];
51
+
52
+ var handleChange = function handleChange(e) {
53
+ onChange && onChange(e);
54
+ };
55
+
56
+ var handleRadioChange = function handleRadioChange(e) {
57
+ enableOther(e.target.value === otherKey);
58
+ onChange && onChange(e);
59
+ };
60
+
61
+ var _useContext = useContext(LocaleContext),
62
+ formatMessage = _useContext.formatMessage;
63
+
64
+ return _jsx("div", {
65
+ className: "igloo-reason-selector",
66
+ children: _jsx(RadioGroup, _objectSpread({
67
+ value: otherEnabled ? otherKey : value,
68
+ onChange: handleRadioChange,
69
+ options: [].concat(_toConsumableArray(options), [{
70
+ label: otherOptionLabel || formatMessage({
71
+ id: 'Other Reason'
72
+ }),
73
+ value: otherKey,
74
+ extraInfo: {
75
+ content: _jsx(TextArea, {
76
+ onChange: handleChange
77
+ }),
78
+ shownTrigger: 'checked'
79
+ }
80
+ }])
81
+ }, rest))
82
+ });
83
+ };
84
+
85
+ export default RadioGroupWithOther;
@@ -32,7 +32,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
32
32
 
33
33
  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; }
34
34
 
35
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
35
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
36
36
  import { useEffect, useState, useContext } from 'react';
37
37
  import omit from 'omit.js';
38
38
  import formMethods from '../utils/form-methods';
@@ -223,10 +223,7 @@ var IglooSelect = function IglooSelect(_ref) {
223
223
  }
224
224
  }, omit(rest, formMethods)), {}, {
225
225
  value: selected,
226
- suffixIcon: _jsxs("div", {
227
- style: {
228
- position: 'relative'
229
- },
226
+ suffixIcon: _jsxs(_Fragment, {
230
227
  children: [_jsx(ArrowDownOutlined, {
231
228
  className: classnames({
232
229
  'igloo-select-arrow': true,
@@ -235,7 +232,7 @@ var IglooSelect = function IglooSelect(_ref) {
235
232
  style: {
236
233
  opacity: dropVisible ? 0 : 1
237
234
  }
238
- }, void 0), _jsx(ArrowUpOutlined, {
235
+ }), _jsx(ArrowUpOutlined, {
239
236
  className: classnames({
240
237
  'igloo-select-arrow': true,
241
238
  'igloo-select-arrow-active': dropVisible
@@ -243,8 +240,8 @@ var IglooSelect = function IglooSelect(_ref) {
243
240
  style: {
244
241
  opacity: dropVisible ? 1 : 0
245
242
  }
246
- }, void 0)]
247
- }, void 0),
243
+ })]
244
+ }),
248
245
  className: classnames('igloo-attached-select', {
249
246
  'igloo-attached-select-open-status': dropVisible
250
247
  }),
@@ -274,12 +271,12 @@ var IglooSelect = function IglooSelect(_ref) {
274
271
  style: {
275
272
  fontSize: 24
276
273
  }
277
- }, void 0),
274
+ }),
278
275
  onKeyDown: function onKeyDown(e) {
279
276
  return e.stopPropagation();
280
277
  }
281
- }, void 0)
282
- }, void 0), _jsxs("div", {
278
+ })
279
+ }), _jsxs("div", {
283
280
  className: "igloo-attached-select-multiple-dropdown-buttons",
284
281
  children: [_jsx(Button, {
285
282
  type: "link",
@@ -291,7 +288,7 @@ var IglooSelect = function IglooSelect(_ref) {
291
288
  children: formatMessage({
292
289
  id: 'Select All'
293
290
  })
294
- }, void 0), _jsx(Button, {
291
+ }), _jsx(Button, {
295
292
  type: "link",
296
293
  onClick: clearAll,
297
294
  disabled: displayOptions.every(function (_ref7) {
@@ -301,9 +298,9 @@ var IglooSelect = function IglooSelect(_ref) {
301
298
  children: formatMessage({
302
299
  id: 'Clear All'
303
300
  })
304
- }, void 0)]
305
- }, void 0), originNode]
306
- }, void 0);
301
+ })]
302
+ }), originNode]
303
+ });
307
304
  },
308
305
  maxTagCount: 0,
309
306
  maxTagPlaceholder: function maxTagPlaceholder(values) {
@@ -333,8 +330,8 @@ var IglooSelect = function IglooSelect(_ref) {
333
330
  style: {
334
331
  marginRight: 8
335
332
  }
336
- }, void 0), label]
337
- }, void 0) : label, _jsx("div", {
333
+ }), label]
334
+ }) : label, _jsx("div", {
338
335
  style: {
339
336
  position: 'absolute',
340
337
  width: '100%',
@@ -343,11 +340,11 @@ var IglooSelect = function IglooSelect(_ref) {
343
340
  top: 0,
344
341
  left: 0
345
342
  }
346
- }, void 0)]
343
+ })]
347
344
  }, value);
348
345
  })
349
- }), void 0)
350
- }, void 0);
346
+ }))
347
+ });
351
348
  };
352
349
 
353
350
  IglooSelect.formItemPropsHandler = function (config) {
@@ -24,7 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
24
24
 
25
25
  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; }
26
26
 
27
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
27
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
28
28
  import { useContext, useState } from 'react';
29
29
  import omit from 'omit.js';
30
30
  import formMethods from '../utils/form-methods';
@@ -63,10 +63,7 @@ var IglooSelect = function IglooSelect(_ref) {
63
63
  }, omit(rest, formMethods)), {}, {
64
64
  options: children ? void 0 : options,
65
65
  value: value,
66
- suffixIcon: _jsxs("div", {
67
- style: {
68
- position: 'relative'
69
- },
66
+ suffixIcon: _jsxs(_Fragment, {
70
67
  children: [_jsx(ArrowDownOutlined, {
71
68
  className: classnames({
72
69
  'igloo-select-arrow': true,
@@ -75,7 +72,7 @@ var IglooSelect = function IglooSelect(_ref) {
75
72
  style: {
76
73
  opacity: isOpen ? 0 : 1
77
74
  }
78
- }, void 0), _jsx(ArrowUpOutlined, {
75
+ }), _jsx(ArrowUpOutlined, {
79
76
  className: classnames({
80
77
  'igloo-select-arrow': true,
81
78
  'igloo-select-arrow-active': isOpen
@@ -83,8 +80,8 @@ var IglooSelect = function IglooSelect(_ref) {
83
80
  style: {
84
81
  opacity: isOpen ? 1 : 0
85
82
  }
86
- }, void 0)]
87
- }, void 0),
83
+ })]
84
+ }),
88
85
  getPopupContainer: function getPopupContainer(trigger) {
89
86
  return trigger.parentNode;
90
87
  },
@@ -101,7 +98,7 @@ var IglooSelect = function IglooSelect(_ref) {
101
98
  } : void 0),
102
99
  mode: undefined,
103
100
  children: children
104
- }), void 0);
101
+ }));
105
102
  };
106
103
 
107
104
  IglooSelect.OptGroup = OptGroup;
@@ -201,57 +201,57 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
201
201
  onClick: function onClick() {
202
202
  return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'down');
203
203
  }
204
- }, void 0), _jsx(Input, {
204
+ }), _jsx(Input, {
205
205
  onChange: function onChange(e) {
206
206
  return handleTimeInput(hourRange, e.target.value, setHourVale);
207
207
  },
208
208
  value: hourValue
209
- }, void 0), _jsx(ArrowDownOutlined, {
209
+ }), _jsx(ArrowDownOutlined, {
210
210
  onClick: function onClick() {
211
211
  return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'up');
212
212
  }
213
- }, void 0)]
214
- }, void 0), _jsx("span", {
213
+ })]
214
+ }), _jsx("span", {
215
215
  children: ":"
216
- }, void 0), _jsxs("div", {
216
+ }), _jsxs("div", {
217
217
  children: [_jsx(ArrowUpOutlined, {
218
218
  onClick: function onClick() {
219
219
  return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'down');
220
220
  }
221
- }, void 0), _jsx(Input, {
221
+ }), _jsx(Input, {
222
222
  ref: secondInputRef,
223
223
  onChange: function onChange(e) {
224
224
  return handleTimeInput(minuteRange, e.target.value, setMinuteVale);
225
225
  },
226
226
  value: minuteValue
227
- }, void 0), _jsx(ArrowDownOutlined, {
227
+ }), _jsx(ArrowDownOutlined, {
228
228
  onClick: function onClick() {
229
229
  return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'up');
230
230
  }
231
- }, void 0)]
232
- }, void 0), _jsxs("div", {
231
+ })]
232
+ }), _jsxs("div", {
233
233
  children: [_jsx(ArrowUpOutlined, {
234
234
  className: classnames({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
235
235
  }),
236
236
  onClick: function onClick() {
237
237
  return meridiemSwitch(hourValue);
238
238
  }
239
- }, void 0), _jsx("span", {
239
+ }), _jsx("span", {
240
240
  children: _jsx(Typography, {
241
241
  level: "body1",
242
242
  children: meridiem ? 'AM' : 'PM'
243
- }, void 0)
244
- }, void 0), _jsx(ArrowDownOutlined, {
243
+ })
244
+ }), _jsx(ArrowDownOutlined, {
245
245
  className: classnames({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
246
246
  }),
247
247
  onClick: function onClick() {
248
248
  return meridiemSwitch(hourValue);
249
249
  }
250
- }, void 0)]
251
- }, void 0)]
252
- }, void 0)
250
+ })]
251
+ })]
252
+ })
253
253
  }, '0')
254
- }, void 0);
254
+ });
255
255
 
256
256
  return _jsxs("div", {
257
257
  className: "igloo-hour-select",
@@ -272,13 +272,13 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
272
272
  className: classnames('igloo-input', {
273
273
  'igloo-hour-select-input-active': dropDownVisible
274
274
  })
275
- }, void 0)
276
- }, void 0), _jsx(TimeOutlined, {
275
+ })
276
+ }), _jsx(TimeOutlined, {
277
277
  className: classnames({
278
278
  'igloo-hour-select-active': dropDownVisible
279
279
  })
280
- }, void 0)]
281
- }, void 0);
280
+ })]
281
+ });
282
282
  };
283
283
 
284
284
  function checkCard(value) {
@@ -25,8 +25,8 @@ var IglooStatusBox = function IglooStatusBox(props) {
25
25
  children: _jsx(Typography, {
26
26
  level: "status",
27
27
  children: children
28
- }, void 0)
29
- }, void 0);
28
+ })
29
+ });
30
30
  };
31
31
 
32
32
  export default IglooStatusBox;
package/es/table/index.js CHANGED
@@ -92,7 +92,7 @@ var getDropDownMenu = function getDropDownMenu(allButtons, rowData, actionButton
92
92
  children: _jsx(Typography, {
93
93
  level: "body1",
94
94
  children: item.text
95
- }, void 0)
95
+ })
96
96
  }, index);
97
97
  })
98
98
  }, actionIndex);
@@ -146,7 +146,7 @@ function paginationItem(page, type, originalElement) {
146
146
  verticalAlign: 'middle'
147
147
  },
148
148
  className: "ant-btn-link"
149
- }, void 0);
149
+ });
150
150
  }
151
151
 
152
152
  if (type === 'next') {
@@ -156,13 +156,13 @@ function paginationItem(page, type, originalElement) {
156
156
  verticalAlign: 'middle'
157
157
  },
158
158
  className: "ant-btn-link"
159
- }, void 0);
159
+ });
160
160
  }
161
161
 
162
162
  return _jsx("span", {
163
163
  className: "ant-btn-link",
164
164
  children: originalElement
165
- }, void 0);
165
+ });
166
166
  }
167
167
 
168
168
  function actionListChange(state, action) {
@@ -271,11 +271,11 @@ var IglooTable = function IglooTable(_ref) {
271
271
  children: _jsx(Typography, {
272
272
  level: "body1",
273
273
  children: item.title
274
- }, void 0)
275
- }, void 0)
274
+ })
275
+ })
276
276
  }, item.key);
277
277
  })
278
- }, void 0);
278
+ });
279
279
  };
280
280
 
281
281
  var actionCol = {
@@ -312,8 +312,8 @@ var IglooTable = function IglooTable(_ref) {
312
312
  return e.stopPropagation();
313
313
  },
314
314
  className: "igloo-table-action-icon"
315
- }, void 0)
316
- }, void 0);
315
+ })
316
+ });
317
317
  }
318
318
  };
319
319
  return _jsxs("div", {
@@ -326,13 +326,13 @@ var IglooTable = function IglooTable(_ref) {
326
326
  className: "igloo-table-top-content",
327
327
  children: [hasFilterOptions ? _jsx(Filter, _objectSpread(_objectSpread({}, filterConfig), {}, {
328
328
  parentFilterCallBack: setFilterOptions
329
- }), void 0) : _jsx(_Col, {
329
+ })) : _jsx(_Col, {
330
330
  span: 8
331
- }, void 0), _jsx(_Col, {
331
+ }), _jsx(_Col, {
332
332
  children: _jsxs(_Space, {
333
333
  className: 'igloo-table-button-cantainer',
334
334
  children: [!noCustomize && _jsx(Button, {
335
- icon: _jsx(SettingOutlined, {}, void 0),
335
+ icon: _jsx(SettingOutlined, {}),
336
336
  onClick: function onClick() {
337
337
  return setModalVisible(true);
338
338
  },
@@ -341,8 +341,8 @@ var IglooTable = function IglooTable(_ref) {
341
341
  children: formatMessage({
342
342
  id: 'Customize Columns'
343
343
  })
344
- }, void 0)
345
- }, void 0), extraButtons && extraButtons.map(function (item, index) {
344
+ })
345
+ }), extraButtons && extraButtons.map(function (item, index) {
346
346
  return item.render ? /*#__PURE__*/React.cloneElement(item.render(), {
347
347
  key: index
348
348
  }) : _jsx(Button, {
@@ -353,12 +353,12 @@ var IglooTable = function IglooTable(_ref) {
353
353
  children: _jsx(Typography, {
354
354
  level: "h4",
355
355
  children: item.text
356
- }, void 0)
356
+ })
357
357
  }, index);
358
358
  })]
359
- }, void 0)
360
- }, void 0)]
361
- }, void 0), _jsx(_Table, _objectSpread({
359
+ })
360
+ })]
361
+ }), _jsx(_Table, _objectSpread({
362
362
  className: "".concat(className || ''),
363
363
  rowClassName: function rowClassName(record, index, indent) {
364
364
  if (typeof _rowClassName === 'function') {
@@ -400,7 +400,7 @@ var IglooTable = function IglooTable(_ref) {
400
400
  id: 'Click to cancel sorting'
401
401
  })
402
402
  }, locale)
403
- }, rest), void 0), bottomExtra, !noPagination && _jsx(_Row, {
403
+ }, rest)), bottomExtra, !noPagination && _jsx(_Row, {
404
404
  justify: "end",
405
405
  style: {
406
406
  marginTop: 24
@@ -427,7 +427,7 @@ var IglooTable = function IglooTable(_ref) {
427
427
  total: total
428
428
  }
429
429
  })
430
- }, void 0), ' ', _jsx(Typography, {
430
+ }), ' ', _jsx(Typography, {
431
431
  level: "body1",
432
432
  style: {
433
433
  color: '#666666'
@@ -435,14 +435,14 @@ var IglooTable = function IglooTable(_ref) {
435
435
  children: formatMessage({
436
436
  id: 'Rows per page'
437
437
  })
438
- }, void 0), ' ', _jsx(_Select, {
438
+ }), ' ', _jsx(_Select, {
439
439
  value: pageSize,
440
440
  suffixIcon: _jsx(ArrowDownOutlined, {
441
441
  style: {
442
442
  fontSize: 24,
443
443
  color: '#666666'
444
444
  }
445
- }, void 0),
445
+ }),
446
446
  onChange: function onChange(value) {
447
447
  return onPagination(page, value);
448
448
  },
@@ -452,12 +452,12 @@ var IglooTable = function IglooTable(_ref) {
452
452
  value: item
453
453
  };
454
454
  })
455
- }, void 0)]
456
- }, void 0);
455
+ })]
456
+ });
457
457
  },
458
458
  onChange: onPagination
459
- }, void 0)
460
- }, void 0), !noCustomize && _jsxs(Modal, {
459
+ })
460
+ }), !noCustomize && _jsxs(Modal, {
461
461
  width: 430,
462
462
  closable: true,
463
463
  destroyOnClose: true,
@@ -467,7 +467,7 @@ var IglooTable = function IglooTable(_ref) {
467
467
  children: formatMessage({
468
468
  id: 'Customize Columns'
469
469
  })
470
- }, void 0),
470
+ }),
471
471
  cancelButtonProps: {
472
472
  type: 'link',
473
473
  onClick: function onClick() {
@@ -491,7 +491,7 @@ var IglooTable = function IglooTable(_ref) {
491
491
  children: formatMessage({
492
492
  id: 'Apply Columns'
493
493
  })
494
- }, void 0),
494
+ }),
495
495
  children: [_jsx("div", {
496
496
  className: 'modal-describe',
497
497
  children: _jsx(Typography, {
@@ -502,15 +502,15 @@ var IglooTable = function IglooTable(_ref) {
502
502
  colMax: colMax
503
503
  }
504
504
  })
505
- }, void 0)
506
- }, void 0), _jsx(Typography, {
505
+ })
506
+ }), _jsx(Typography, {
507
507
  level: "body1",
508
508
  children: modalContent(columns, modalSelectedCol, function (item) {
509
509
  setModalSelectedCol(item);
510
510
  }, colMax, colDisable)
511
- }, void 0)]
512
- }, void 0)]
513
- }, void 0);
511
+ })]
512
+ })]
513
+ });
514
514
  };
515
515
 
516
516
  export default IglooTable;
package/es/tabs/index.js CHANGED
@@ -27,6 +27,6 @@ export default function Tabs(props) {
27
27
 
28
28
  return _jsx(_Tabs, _objectSpread({
29
29
  className: "container ".concat(className)
30
- }, restProps), void 0);
30
+ }, restProps));
31
31
  }
32
32
  Tabs.TabPane = TabPane;
@@ -29,7 +29,7 @@ var IglooTypography = function IglooTypography(_ref) {
29
29
  title: title,
30
30
  onClick: onClick,
31
31
  children: children
32
- }, void 0);
32
+ });
33
33
  }
34
34
 
35
35
  return _jsx("span", {
@@ -38,7 +38,14 @@ var IglooTypography = function IglooTypography(_ref) {
38
38
  title: title,
39
39
  onClick: onClick,
40
40
  children: children
41
- }, void 0);
41
+ });
42
42
  };
43
43
 
44
- export default IglooTypography;
44
+ export default IglooTypography;
45
+
46
+ IglooTypography.formItemPropsHandler = function () {
47
+ return {
48
+ withoutForm: true,
49
+ fullRow: true
50
+ };
51
+ };