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.
Files changed (182) 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/card-detail/card-group.js +16 -22
  10. package/es/card-detail/card-item.js +15 -20
  11. package/es/card-detail/card-page.js +11 -15
  12. package/es/card-detail/card.js +24 -24
  13. package/es/card-detail/utils.js +3 -4
  14. package/es/checkbox/index.js +23 -22
  15. package/es/claim-list/index.js +51 -68
  16. package/es/confirmation/index.js +5 -7
  17. package/es/date-picker/buddhist.js +1 -1
  18. package/es/date-picker/index.js +10 -4
  19. package/es/declaration/index.js +16 -13
  20. package/es/detail-panel/index.js +67 -83
  21. package/es/documents/index.js +6 -8
  22. package/es/example/index.js +3 -4
  23. package/es/filter/checkBox.js +33 -45
  24. package/es/filter/customize.js +3 -4
  25. package/es/filter/index.js +79 -107
  26. package/es/filter/radioBox.js +23 -31
  27. package/es/filter/rangePicker.js +43 -59
  28. package/es/form/divider/index.js +7 -1
  29. package/es/form/element/index.js +28 -36
  30. package/es/form/element/style/index.less +4 -0
  31. package/es/form/index.js +9 -12
  32. package/es/form/login/index.js +14 -19
  33. package/es/form/page/index.js +17 -23
  34. package/es/form/pages/index.js +22 -30
  35. package/es/form/section/index.js +11 -14
  36. package/es/form/step/index.js +30 -41
  37. package/es/form/steps/index.js +6 -8
  38. package/es/free-form/element/index.js +21 -27
  39. package/es/free-form/element/style/index.less +4 -0
  40. package/es/free-form/index.js +9 -12
  41. package/es/free-form/page/index.js +28 -39
  42. package/es/free-form/pages/index.js +6 -8
  43. package/es/free-form/section/index.js +11 -14
  44. package/es/free-form/step/index.js +30 -41
  45. package/es/free-form/steps/index.js +6 -8
  46. package/es/home-menu/index.js +52 -71
  47. package/es/input/amount.js +10 -5
  48. package/es/input/credit-card.js +7 -1
  49. package/es/input/email.js +8 -1
  50. package/es/input/expiry-date.js +12 -16
  51. package/es/input/input-date.js +12 -16
  52. package/es/input/input-number.js +9 -2
  53. package/es/input/input.js +9 -2
  54. package/es/input/otp.js +17 -15
  55. package/es/input/password.js +12 -6
  56. package/es/input/phone-number.js +6 -8
  57. package/es/input/text-area.js +14 -10
  58. package/es/layout/defaultFooter.js +60 -82
  59. package/es/layout/defaultHeader.js +11 -15
  60. package/es/layout/footer.js +108 -148
  61. package/es/layout/header.js +50 -59
  62. package/es/layout/index.js +16 -12
  63. package/es/locale/locale-provider.js +6 -8
  64. package/es/login-page/index.js +30 -42
  65. package/es/media/index.js +20 -27
  66. package/es/media/media.js +9 -12
  67. package/es/media/preview.js +6 -8
  68. package/es/mobile-insurer-detail/index.js +74 -91
  69. package/es/mobile-insurer-list/index.js +34 -38
  70. package/es/modal/index.js +20 -25
  71. package/es/platform/platform-card/index.js +9 -12
  72. package/es/platform/switch-platform/index.js +24 -32
  73. package/es/policy-list/index.js +9 -12
  74. package/es/policy-list/policy-card.js +119 -153
  75. package/es/radio/index.js +33 -35
  76. package/es/select/attached-select.js +31 -34
  77. package/es/select/select.js +12 -8
  78. package/es/select/time-select.js +12 -16
  79. package/es/status-box/index.js +6 -8
  80. package/es/table/index.js +69 -93
  81. package/es/tabs/index.js +7 -1
  82. package/es/typography/index.js +6 -8
  83. package/es/upload/index.js +48 -66
  84. package/es/upload-photo/index.js +47 -63
  85. package/es/upload-photo/media.js +3 -4
  86. package/es/upload-preview/index.js +9 -12
  87. package/es/upload-preview/media.js +12 -16
  88. package/es/utils/form-utils.js +18 -25
  89. package/lib/admin-upload/float.js +25 -35
  90. package/lib/admin-upload/index.js +18 -25
  91. package/lib/admin-upload/job-list.js +83 -113
  92. package/lib/admin-upload/modal.js +19 -26
  93. package/lib/alert-message/index.js +11 -9
  94. package/lib/amount/index.js +10 -5
  95. package/lib/back-top/index.js +14 -10
  96. package/lib/button/index.js +22 -27
  97. package/lib/card-detail/card-group.js +16 -22
  98. package/lib/card-detail/card-item.js +15 -20
  99. package/lib/card-detail/card-page.js +11 -15
  100. package/lib/card-detail/card.js +24 -24
  101. package/lib/card-detail/index.js +6 -6
  102. package/lib/card-detail/utils.js +4 -5
  103. package/lib/checkbox/index.js +24 -23
  104. package/lib/claim-list/index.js +51 -68
  105. package/lib/confirmation/index.js +5 -7
  106. package/lib/date-picker/buddhist.js +1 -1
  107. package/lib/date-picker/index.js +11 -5
  108. package/lib/declaration/index.js +16 -13
  109. package/lib/detail-panel/index.js +67 -83
  110. package/lib/documents/index.js +6 -8
  111. package/lib/example/index.js +3 -4
  112. package/lib/filter/checkBox.js +33 -45
  113. package/lib/filter/customize.js +3 -4
  114. package/lib/filter/index.js +79 -107
  115. package/lib/filter/radioBox.js +23 -31
  116. package/lib/filter/rangePicker.js +43 -59
  117. package/lib/form/divider/index.js +7 -1
  118. package/lib/form/element/index.js +28 -36
  119. package/lib/form/element/style/index.less +4 -0
  120. package/lib/form/index.js +9 -12
  121. package/lib/form/login/index.js +14 -19
  122. package/lib/form/page/index.js +17 -23
  123. package/lib/form/pages/index.js +22 -30
  124. package/lib/form/section/index.js +11 -14
  125. package/lib/form/step/index.js +30 -41
  126. package/lib/form/steps/index.js +6 -8
  127. package/lib/free-form/element/index.js +21 -27
  128. package/lib/free-form/element/style/index.less +4 -0
  129. package/lib/free-form/index.js +9 -12
  130. package/lib/free-form/page/index.js +28 -39
  131. package/lib/free-form/pages/index.js +6 -8
  132. package/lib/free-form/section/index.js +11 -14
  133. package/lib/free-form/step/index.js +30 -41
  134. package/lib/free-form/steps/index.js +6 -8
  135. package/lib/home-menu/index.js +52 -71
  136. package/lib/index.js +132 -132
  137. package/lib/input/amount.js +10 -5
  138. package/lib/input/credit-card.js +7 -1
  139. package/lib/input/email.js +7 -1
  140. package/lib/input/expiry-date.js +12 -16
  141. package/lib/input/index.js +18 -18
  142. package/lib/input/input-date.js +12 -16
  143. package/lib/input/input-number.js +8 -2
  144. package/lib/input/input.js +8 -2
  145. package/lib/input/otp.js +17 -15
  146. package/lib/input/password.js +11 -6
  147. package/lib/input/phone-number.js +6 -8
  148. package/lib/input/text-area.js +14 -10
  149. package/lib/layout/defaultFooter.js +60 -82
  150. package/lib/layout/defaultHeader.js +11 -15
  151. package/lib/layout/footer.js +108 -148
  152. package/lib/layout/header.js +50 -59
  153. package/lib/layout/index.js +15 -12
  154. package/lib/locale/format-message.js +1 -1
  155. package/lib/locale/index.js +4 -4
  156. package/lib/locale/locale-provider.js +7 -9
  157. package/lib/login-page/index.js +30 -42
  158. package/lib/media/index.js +20 -27
  159. package/lib/media/media.js +9 -12
  160. package/lib/media/preview.js +6 -8
  161. package/lib/mobile-insurer-detail/index.js +74 -91
  162. package/lib/mobile-insurer-list/index.js +34 -38
  163. package/lib/modal/index.js +20 -25
  164. package/lib/platform/platform-card/index.js +9 -12
  165. package/lib/platform/switch-platform/index.js +24 -32
  166. package/lib/policy-list/index.js +9 -12
  167. package/lib/policy-list/policy-card.js +119 -153
  168. package/lib/radio/index.js +33 -35
  169. package/lib/select/attached-select.js +32 -35
  170. package/lib/select/select.js +13 -9
  171. package/lib/select/time-select.js +12 -16
  172. package/lib/status-box/index.js +6 -8
  173. package/lib/table/index.js +69 -93
  174. package/lib/tabs/index.js +8 -2
  175. package/lib/typography/index.js +6 -8
  176. package/lib/upload/index.js +48 -66
  177. package/lib/upload-photo/index.js +47 -63
  178. package/lib/upload-photo/media.js +3 -4
  179. package/lib/upload-preview/index.js +9 -12
  180. package/lib/upload-preview/media.js +12 -16
  181. package/lib/utils/form-utils.js +19 -26
  182. package/package.json +1 -1
@@ -45,7 +45,7 @@ var HomeMenu = function HomeMenu(props) {
45
45
  setOpen = _useState2[1];
46
46
 
47
47
  if (!md) {
48
- return _jsx(_Dropdown, Object.assign({
48
+ return _jsx(_Dropdown, {
49
49
  className: classnames(className, 'igloo-home-drop-down-mobile-container'),
50
50
  overlayStyle: style,
51
51
  onVisibleChange: function onVisibleChange(visible) {
@@ -55,64 +55,53 @@ var HomeMenu = function HomeMenu(props) {
55
55
  getPopupContainer: function getPopupContainer(trigger) {
56
56
  return trigger.parentElement || document.body;
57
57
  },
58
- overlay: _jsxs("div", Object.assign({
59
- className: "igloo-home-drop-down-mobile-overlay-container"
60
- }, {
61
- children: [_jsxs("div", Object.assign({
58
+ overlay: _jsxs("div", {
59
+ className: "igloo-home-drop-down-mobile-overlay-container",
60
+ children: [_jsxs("div", {
62
61
  className: "menu-top",
63
62
  onClick: function onClick(e) {
64
63
  return e.stopPropagation();
65
- }
66
- }, {
64
+ },
67
65
  children: [_jsx(_Avatar, {
68
66
  size: 32,
69
67
  src: userAvatar
70
- }, void 0), _jsxs("div", Object.assign({
71
- className: "top-info"
72
- }, {
73
- children: [_jsx(Typography, Object.assign({
74
- level: "body1"
75
- }, {
68
+ }, void 0), _jsxs("div", {
69
+ className: "top-info",
70
+ children: [_jsx(Typography, {
71
+ level: "body1",
76
72
  children: userName
77
- }), void 0), _jsx("div", Object.assign({
73
+ }, void 0), _jsx("div", {
78
74
  style: {
79
75
  marginTop: 4
80
- }
81
- }, {
76
+ },
82
77
  children: customInfos.map(function (info, index) {
83
- return _jsxs(Typography, Object.assign({
84
- level: "body3"
85
- }, {
78
+ return _jsxs(Typography, {
79
+ level: "body3",
86
80
  children: [info.title, " ", info.value]
87
- }), index);
81
+ }, index);
88
82
  })
89
- }), void 0)]
90
- }), void 0)]
91
- }), void 0), _jsx("div", Object.assign({
92
- className: "menu-actions"
93
- }, {
83
+ }, void 0)]
84
+ }, void 0)]
85
+ }, void 0), _jsx("div", {
86
+ className: "menu-actions",
94
87
  children: actions.map(function (action, index) {
95
88
  var _onClick = action.onClick;
96
- return _jsx("div", Object.assign({
89
+ return _jsx("div", {
97
90
  className: "action-item",
98
91
  onClick: function onClick() {
99
92
  _onClick && _onClick();
100
93
  setOpen(false);
101
- }
102
- }, {
103
- children: _jsx(Typography, Object.assign({
104
- level: "body1"
105
- }, {
94
+ },
95
+ children: _jsx(Typography, {
96
+ level: "body1",
106
97
  children: action.title
107
- }), index)
108
- }), index);
98
+ }, index)
99
+ }, index);
109
100
  })
110
- }), void 0)]
111
- }), void 0)
112
- }, {
113
- children: _jsxs("div", Object.assign({
114
- className: "arrow-container"
115
- }, {
101
+ }, void 0)]
102
+ }, void 0),
103
+ children: _jsxs("div", {
104
+ className: "arrow-container",
116
105
  children: [_jsx(CrossOutlined, {
117
106
  className: "arrow-active",
118
107
  style: {
@@ -124,11 +113,11 @@ var HomeMenu = function HomeMenu(props) {
124
113
  opacity: "".concat(open ? 0 : 1)
125
114
  }
126
115
  }, void 0)]
127
- }), void 0)
128
- }), void 0);
116
+ }, void 0)
117
+ }, void 0);
129
118
  }
130
119
 
131
- return _jsx(_Dropdown, Object.assign({
120
+ return _jsx(_Dropdown, {
132
121
  className: classnames(className, 'igloo-home-drop-down-container'),
133
122
  overlayStyle: style,
134
123
  onVisibleChange: function onVisibleChange(visible) {
@@ -139,47 +128,39 @@ var HomeMenu = function HomeMenu(props) {
139
128
  getPopupContainer: function getPopupContainer(trigger) {
140
129
  return trigger.parentElement || document.body;
141
130
  },
142
- overlay: _jsxs("div", Object.assign({
143
- className: "igloo-header-drop-down-menu"
144
- }, {
145
- children: [_jsx("div", Object.assign({
131
+ overlay: _jsxs("div", {
132
+ className: "igloo-header-drop-down-menu",
133
+ children: [_jsx("div", {
146
134
  className: "menu-top",
147
135
  onClick: function onClick(e) {
148
136
  return e.stopPropagation();
149
- }
150
- }, {
137
+ },
151
138
  children: customInfos.map(function (info, index) {
152
- return _jsxs(Typography, Object.assign({
153
- level: "body2"
154
- }, {
139
+ return _jsxs(Typography, {
140
+ level: "body2",
155
141
  children: [info.title, " ", info.value]
156
- }), index);
142
+ }, index);
157
143
  })
158
- }), void 0), _jsx("div", Object.assign({
159
- className: "menu-actions"
160
- }, {
144
+ }, void 0), _jsx("div", {
145
+ className: "menu-actions",
161
146
  children: actions.map(function (action, index) {
162
147
  var _onClick2 = action.onClick;
163
- return _jsx("div", Object.assign({
148
+ return _jsx("div", {
164
149
  className: "action-item",
165
150
  onClick: function onClick() {
166
151
  _onClick2 && _onClick2();
167
152
  setOpen(false);
168
- }
169
- }, {
170
- children: _jsx(Typography, Object.assign({
171
- level: "body1"
172
- }, {
153
+ },
154
+ children: _jsx(Typography, {
155
+ level: "body1",
173
156
  children: action.title
174
- }), index)
175
- }), index);
157
+ }, index)
158
+ }, index);
176
159
  })
177
- }), void 0)]
178
- }), void 0)
179
- }, {
180
- children: _jsxs("div", Object.assign({
181
- className: "arrow-container"
182
- }, {
160
+ }, void 0)]
161
+ }, void 0),
162
+ children: _jsxs("div", {
163
+ className: "arrow-container",
183
164
  children: [_jsx(ArrowUpOutlined, {
184
165
  className: "arrow-active",
185
166
  style: {
@@ -191,8 +172,8 @@ var HomeMenu = function HomeMenu(props) {
191
172
  opacity: "".concat(open ? 0 : 1)
192
173
  }
193
174
  }, void 0)]
194
- }), void 0)
195
- }), void 0);
175
+ }, void 0)
176
+ }, void 0);
196
177
  };
197
178
 
198
179
  export default HomeMenu;
@@ -2,6 +2,12 @@ import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
  var _excluded = ["className", "currency", "currencyProps", "amountProps", "value", "seperator", "disabled"];
4
4
 
5
+ 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; }
6
+
7
+ 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; }
8
+
9
+ 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; }
10
+
5
11
  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; }
6
12
 
7
13
  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; }
@@ -38,17 +44,16 @@ var Amount = function Amount(_ref) {
38
44
  disabled = _ref.disabled,
39
45
  rest = _objectWithoutProperties(_ref, _excluded);
40
46
 
41
- return _jsx(_Input, Object.assign({}, omit(rest, formMethods), {
47
+ return _jsx(_Input, _objectSpread(_objectSpread({}, omit(rest, formMethods)), {}, {
42
48
  disabled: disabled,
43
49
  className: classnames('igloo-input-amount', {
44
50
  'igloo-input-disable': disabled
45
51
  }, className),
46
52
  value: thousands(value),
47
- addonBefore: currency ? _jsx("span", Object.assign({
48
- className: "igloo-input-areacode"
49
- }, {
53
+ addonBefore: currency ? _jsx("span", {
54
+ className: "igloo-input-areacode",
50
55
  children: currency
51
- }), void 0) : null
56
+ }, void 0) : null
52
57
  }), void 0);
53
58
  };
54
59
 
@@ -1,6 +1,12 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
3
 
4
+ 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; }
5
+
6
+ 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; }
7
+
8
+ 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; }
9
+
4
10
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
5
11
 
6
12
  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."); }
@@ -162,7 +168,7 @@ var IglooCredit = function IglooCredit(props) {
162
168
  handleOnChange(value, [].concat(_toConsumableArray(cardConfig), defaultCheck), formChangeProps);
163
169
  }
164
170
  }, []);
165
- return _jsx(_Input, Object.assign({}, omit(props, [].concat(_toConsumableArray(formMethods), ['cardConfig'])), {
171
+ return _jsx(_Input, _objectSpread(_objectSpread({}, omit(props, [].concat(_toConsumableArray(formMethods), ['cardConfig']))), {}, {
166
172
  suffix: cardIcon,
167
173
  // type="number"
168
174
  className: classnames(className, 'igloo-input', 'igloo-input-credit-card'),
package/es/input/email.js CHANGED
@@ -1,12 +1,19 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
+
4
+ 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; }
5
+
6
+ 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; }
7
+
8
+ 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; }
9
+
3
10
  import { jsx as _jsx } from "react/jsx-runtime";
4
11
  import omit from 'omit.js';
5
12
  import formMethods from '../utils/form-methods';
6
13
  import './style/index.less';
7
14
 
8
15
  var Email = function Email(props) {
9
- return _jsx(_Input, Object.assign({
16
+ return _jsx(_Input, _objectSpread({
10
17
  className: "igloo-input"
11
18
  }, omit(props, formMethods)), void 0);
12
19
  };
@@ -170,7 +170,7 @@ var IglooExpiryDate = function IglooExpiryDate(props) {
170
170
  setInput(_objectSpread({}, refArr));
171
171
  }
172
172
 
173
- return _jsx("div", Object.assign({
173
+ return _jsx("div", {
174
174
  className: classnames('igloo-input-date-picker', {
175
175
  'igloo-input-disable': disabled
176
176
  }, "".concat(active ? 'igloo-input-date-picker-focus' : '')),
@@ -179,14 +179,12 @@ var IglooExpiryDate = function IglooExpiryDate(props) {
179
179
  },
180
180
  onBlur: function onBlur() {
181
181
  return setActive(false);
182
- }
183
- }, {
184
- children: _jsx(_Space, Object.assign({
182
+ },
183
+ children: _jsx(_Space, {
185
184
  style: {
186
185
  cursor: 'default'
187
186
  },
188
- size: 12
189
- }, {
187
+ size: 12,
190
188
  children: timeInputArr.map(function (item, index) {
191
189
  var islast = index === timeInputArr.length - 1;
192
190
  var ref = null;
@@ -220,12 +218,11 @@ var IglooExpiryDate = function IglooExpiryDate(props) {
220
218
  },
221
219
  disabled: disabled,
222
220
  type: "number"
223
- }, item) : _jsxs(_Space, Object.assign({
221
+ }, item) : _jsxs(_Space, {
224
222
  style: {
225
223
  cursor: 'default'
226
224
  },
227
- size: 12
228
- }, {
225
+ size: 12,
229
226
  children: [_jsx(_Input, {
230
227
  className: "igloo-input-date-picker-input",
231
228
  placeholder: item,
@@ -244,17 +241,16 @@ var IglooExpiryDate = function IglooExpiryDate(props) {
244
241
  },
245
242
  disabled: disabled,
246
243
  type: "number"
247
- }, item), _jsx("span", Object.assign({
244
+ }, item), _jsx("span", {
248
245
  style: {
249
246
  color: '#999999'
250
- }
251
- }, {
247
+ },
252
248
  children: delimiter
253
- }), void 0)]
254
- }), item);
249
+ }, void 0)]
250
+ }, item);
255
251
  })
256
- }), void 0)
257
- }), void 0);
252
+ }, void 0)
253
+ }, void 0);
258
254
  };
259
255
 
260
256
  function checkTime(value, check) {
@@ -176,7 +176,7 @@ var IglooInputDate = function IglooInputDate(props) {
176
176
  setInput(_toConsumableArray(refArr));
177
177
  }
178
178
 
179
- return _jsx("div", Object.assign({
179
+ return _jsx("div", {
180
180
  className: classnames('igloo-input-date-picker', {
181
181
  'igloo-input-disable': disabled
182
182
  }, "".concat(active ? 'igloo-input-date-picker-focus' : '')),
@@ -185,14 +185,12 @@ var IglooInputDate = function IglooInputDate(props) {
185
185
  },
186
186
  onBlur: function onBlur() {
187
187
  return setActive(false);
188
- }
189
- }, {
190
- children: _jsx(_Space, Object.assign({
188
+ },
189
+ children: _jsx(_Space, {
191
190
  style: {
192
191
  cursor: 'default'
193
192
  },
194
- size: 12
195
- }, {
193
+ size: 12,
196
194
  children: timeInputArr.map(function (item, index) {
197
195
  var islast = index === timeInputArr.length - 1;
198
196
  var ref = null;
@@ -230,12 +228,11 @@ var IglooInputDate = function IglooInputDate(props) {
230
228
  },
231
229
  disabled: disabled,
232
230
  type: "number"
233
- }, item) : _jsxs(_Space, Object.assign({
231
+ }, item) : _jsxs(_Space, {
234
232
  style: {
235
233
  cursor: 'default'
236
234
  },
237
- size: 12
238
- }, {
235
+ size: 12,
239
236
  children: [_jsx(_Input, {
240
237
  className: "igloo-input-date-picker-input",
241
238
  placeholder: item,
@@ -254,17 +251,16 @@ var IglooInputDate = function IglooInputDate(props) {
254
251
  },
255
252
  disabled: disabled,
256
253
  type: "number"
257
- }, item), _jsx("span", Object.assign({
254
+ }, item), _jsx("span", {
258
255
  style: {
259
256
  color: '#999999'
260
- }
261
- }, {
257
+ },
262
258
  children: delimiter
263
- }), void 0)]
264
- }), item);
259
+ }, void 0)]
260
+ }, item);
265
261
  })
266
- }), void 0)
267
- }), void 0);
262
+ }, void 0)
263
+ }, void 0);
268
264
  };
269
265
 
270
266
  function checkTime(value, format) {
@@ -1,5 +1,12 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
+
4
+ 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; }
5
+
6
+ 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; }
7
+
8
+ 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; }
9
+
3
10
  import { jsx as _jsx } from "react/jsx-runtime";
4
11
  import omit from 'omit.js';
5
12
  import formMethods from '../utils/form-methods';
@@ -16,9 +23,9 @@ var IglooInputNumber = function IglooInputNumber(props) {
16
23
  }
17
24
  };
18
25
 
19
- return _jsx(_Input, Object.assign({
26
+ return _jsx(_Input, _objectSpread(_objectSpread({
20
27
  className: "igloo-input"
21
- }, omit(props, formMethods), {
28
+ }, omit(props, formMethods)), {}, {
22
29
  onBlur: handleOnBlur,
23
30
  type: "number"
24
31
  }), void 0);
package/es/input/input.js CHANGED
@@ -1,14 +1,21 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
+
4
+ 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; }
5
+
6
+ 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; }
7
+
8
+ 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; }
9
+
3
10
  import { jsx as _jsx } from "react/jsx-runtime";
4
11
  import { forwardRef } from 'react';
5
12
  import formMethods from '../utils/form-methods';
6
13
  import omit from 'omit.js';
7
14
  import './style/index.less';
8
15
  var IglooInput = /*#__PURE__*/forwardRef(function (props, ref) {
9
- return _jsx(_Input, Object.assign({
16
+ return _jsx(_Input, _objectSpread(_objectSpread({
10
17
  className: "igloo-input"
11
- }, omit(props, formMethods), {
18
+ }, omit(props, formMethods)), {}, {
12
19
  ref: ref
13
20
  }), void 0);
14
21
  });
package/es/input/otp.js CHANGED
@@ -2,6 +2,12 @@ import "antd/es/statistic/style";
2
2
  import _Statistic from "antd/es/statistic";
3
3
  var _excluded = ["className", "dependField", "countDownSeconds", "sendOtp", "fireBaseId"];
4
4
 
5
+ 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; }
6
+
7
+ 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; }
8
+
9
+ 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; }
10
+
5
11
  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); } }
6
12
 
7
13
  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); }); }; }
@@ -100,28 +106,24 @@ var Otp = function Otp(_ref) {
100
106
  setFirst(false);
101
107
  };
102
108
 
103
- return _jsxs("div", Object.assign({
104
- className: "igloo-otp"
105
- }, {
106
- children: [!countDown && _jsx(Button, Object.assign({
109
+ return _jsxs("div", {
110
+ className: "igloo-otp",
111
+ children: [!countDown && _jsx(Button, {
107
112
  type: "link",
108
113
  className: "igloo-otp-extra",
109
114
  disabled: !dependValue,
110
115
  onClick: send,
111
- id: fireBaseId
112
- }, {
113
- children: _jsx(Typography, Object.assign({
114
- level: "h4"
115
- }, {
116
+ id: fireBaseId,
117
+ children: _jsx(Typography, {
118
+ level: "h4",
116
119
  children: first ? formatMessage({
117
120
  id: 'Send OTP'
118
121
  }) : formatMessage({
119
122
  id: 'Resend OTP'
120
123
  })
121
- }), void 0)
122
- }), void 0), countDown && _jsxs("div", Object.assign({
123
- className: "igloo-otp-extra igloo-otp-count-down"
124
- }, {
124
+ }, void 0)
125
+ }, void 0), countDown && _jsxs("div", {
126
+ className: "igloo-otp-extra igloo-otp-count-down",
125
127
  children: [formatMessage({
126
128
  id: 'Resend in'
127
129
  }), " (", _jsx(_Statistic.Countdown, {
@@ -130,10 +132,10 @@ var Otp = function Otp(_ref) {
130
132
  format: "s",
131
133
  onFinish: reset
132
134
  }, void 0), "s)"]
133
- }), void 0), _jsx(Input, Object.assign({}, omit(props, formMethods), {
135
+ }, void 0), _jsx(Input, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
134
136
  className: classNames(className)
135
137
  }), void 0)]
136
- }), void 0);
138
+ }, void 0);
137
139
  };
138
140
 
139
141
  Otp.formItemPropsHandler = function (config) {
@@ -1,5 +1,12 @@
1
1
  import "antd/es/input/style";
2
2
  import _Input from "antd/es/input";
3
+
4
+ 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; }
5
+
6
+ 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; }
7
+
8
+ 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; }
9
+
3
10
  import { jsx as _jsx } from "react/jsx-runtime";
4
11
  import formMethods from '../utils/form-methods';
5
12
  import omit from 'omit.js';
@@ -7,22 +14,21 @@ import { ShowOutlined, HideOutlined } from 'iglooicon';
7
14
  var Password = _Input.Password;
8
15
 
9
16
  var IglooPassword = function IglooPassword(props) {
10
- return _jsx(Password, Object.assign({
17
+ return _jsx(Password, _objectSpread(_objectSpread({
11
18
  className: "igloo-input"
12
- }, omit(props, formMethods), {
19
+ }, omit(props, formMethods)), {}, {
13
20
  iconRender: function iconRender(visible) {
14
21
  return visible ? _jsx(ShowOutlined, {
15
22
  style: {
16
23
  fontSize: 22,
17
24
  color: '#666666'
18
25
  }
19
- }, void 0) : _jsx("span", Object.assign({
26
+ }, void 0) : _jsx("span", {
20
27
  onClickCapture: function onClickCapture(e) {
21
28
  if (!props.value) {
22
29
  e.stopPropagation();
23
30
  }
24
- }
25
- }, {
31
+ },
26
32
  children: _jsx(HideOutlined, {
27
33
  style: {
28
34
  fontSize: 22,
@@ -30,7 +36,7 @@ var IglooPassword = function IglooPassword(props) {
30
36
  cursor: props.value ? 'pointer' : 'not-allowed'
31
37
  }
32
38
  }, void 0)
33
- }), void 0);
39
+ }, void 0);
34
40
  }
35
41
  }), void 0);
36
42
  };
@@ -67,17 +67,15 @@ var PhoneNumber = function PhoneNumber(_ref) {
67
67
  value: area
68
68
  };
69
69
  })
70
- }, void 0) : _jsx("div", Object.assign({
71
- className: "igloo-phone-number-addon-before"
72
- }, {
70
+ }, void 0) : _jsx("div", {
71
+ className: "igloo-phone-number-addon-before",
73
72
  children: areaCode
74
- }), void 0);
75
- return _jsxs("div", Object.assign({
73
+ }, void 0);
74
+ return _jsxs("div", {
76
75
  style: style,
77
76
  className: classnames('igloo-input-phone', {
78
77
  'igloo-input-phone-disabled': disabled
79
- }, className)
80
- }, {
78
+ }, className),
81
79
  children: [leftPart, _jsx(_Input, {
82
80
  type: "tel",
83
81
  defaultValue: number,
@@ -90,7 +88,7 @@ var PhoneNumber = function PhoneNumber(_ref) {
90
88
  },
91
89
  disabled: disabled
92
90
  }, void 0)]
93
- }), void 0);
91
+ }, void 0);
94
92
  };
95
93
 
96
94
  PhoneNumber.formItemPropsHandler = function (_ref2) {
@@ -9,6 +9,12 @@ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symb
9
9
 
10
10
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
11
11
 
12
+ 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; }
13
+
14
+ 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; }
15
+
16
+ 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; }
17
+
12
18
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
19
 
14
20
  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."); }
@@ -71,21 +77,19 @@ var IglooTextArea = function IglooTextArea(props) {
71
77
  }
72
78
 
73
79
  var canInputNum = maxLength ? maxLength - inputValue.length : 1;
74
- return _jsxs("div", Object.assign({
75
- className: classnames("".concat(canInputNum < 0 ? 'igloo-input-text-area-error' : ''), 'igloo-input-text-area')
76
- }, {
77
- children: [_jsx(_Input.TextArea, Object.assign({
80
+ return _jsxs("div", {
81
+ className: classnames("".concat(canInputNum < 0 ? 'igloo-input-text-area-error' : ''), 'igloo-input-text-area'),
82
+ children: [_jsx(_Input.TextArea, _objectSpread(_objectSpread({
78
83
  className: classnames('igloo-input'),
79
84
  rows: 3
80
- }, omit(props, [].concat(_toConsumableArray(formMethods), ['maxLength'])), {
85
+ }, omit(props, [].concat(_toConsumableArray(formMethods), ['maxLength']))), {}, {
81
86
  onChange: function onChange(e) {
82
87
  return handleOnChange(e, onChangeProps, maxLength);
83
88
  }
84
89
  }), void 0), _jsx("div", {
85
90
  className: "igloo-input-text-area-right-bottom-cover"
86
- }, void 0), showLeft && _jsx("div", Object.assign({
87
- className: "".concat(canInputNum < 0 ? 'igloo-input-text-area-remind-has-error' : 'igloo-input-text-area-remind')
88
- }, {
91
+ }, void 0), showLeft && _jsx("div", {
92
+ className: "".concat(canInputNum < 0 ? 'igloo-input-text-area-remind-has-error' : 'igloo-input-text-area-remind'),
89
93
  children: canInputNum < 0 ? formatMessage({
90
94
  id: '{canInputNum} characters over',
91
95
  values: {
@@ -97,8 +101,8 @@ var IglooTextArea = function IglooTextArea(props) {
97
101
  canInputNum: canInputNum
98
102
  }
99
103
  })
100
- }), void 0)]
101
- }), void 0);
104
+ }, void 0)]
105
+ }, void 0);
102
106
  };
103
107
 
104
108
  function checkNumber(value, maxLength, required) {