iglooform 2.4.7 → 2.4.11

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 (262) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.d.ts +2 -0
  3. package/es/admin-upload/index.js +43 -36
  4. package/es/admin-upload/job-list.js +85 -115
  5. package/es/admin-upload/modal.js +19 -26
  6. package/es/alert-message/index.js +11 -9
  7. package/es/amount/index.js +10 -5
  8. package/es/back-top/index.js +14 -10
  9. package/es/button/index.js +23 -28
  10. package/es/button/style/index.less +23 -19
  11. package/es/card-detail/card-group.js +16 -22
  12. package/es/card-detail/card-item.js +16 -21
  13. package/es/card-detail/card-page.js +11 -15
  14. package/es/card-detail/card.js +24 -24
  15. package/es/card-detail/style/index.less +13 -0
  16. package/es/card-detail/utils.js +6 -7
  17. package/es/checkbox/index.js +23 -22
  18. package/es/claim-list/index.js +53 -70
  19. package/es/confirmation/index.js +7 -9
  20. package/es/date-picker/buddhist.js +3 -3
  21. package/es/date-picker/index.js +10 -4
  22. package/es/declaration/index.js +16 -13
  23. package/es/detail-panel/index.js +67 -83
  24. package/es/documents/index.js +6 -8
  25. package/es/example/index.js +9 -11
  26. package/es/filter/checkBox.js +33 -45
  27. package/es/filter/customize.js +3 -4
  28. package/es/filter/index.d.ts +1 -0
  29. package/es/filter/index.js +88 -112
  30. package/es/filter/radioBox.js +23 -31
  31. package/es/filter/rangePicker.js +43 -59
  32. package/es/form/addable-section/index.d.ts +19 -0
  33. package/es/form/addable-section/index.js +211 -0
  34. package/es/form/addable-section/style/index.d.ts +1 -0
  35. package/es/form/addable-section/style/index.js +1 -0
  36. package/es/form/addable-section/style/index.less +22 -0
  37. package/es/form/divider/index.js +7 -1
  38. package/es/form/element/index.js +58 -47
  39. package/es/form/element/style/index.less +9 -0
  40. package/es/form/index.js +16 -17
  41. package/es/form/login/index.js +15 -20
  42. package/es/form/page/index.js +18 -24
  43. package/es/form/page/style/index.less +1 -1
  44. package/es/form/pages/index.js +23 -32
  45. package/es/form/pages/style/index.less +3 -1
  46. package/es/form/render/index.js +1 -1
  47. package/es/form/section/index.js +14 -17
  48. package/es/form/step/index.js +31 -42
  49. package/es/form/steps/index.js +8 -11
  50. package/es/{form/context.d.ts → form-context.d.ts} +1 -0
  51. package/es/{form/context.js → form-context.js} +0 -0
  52. package/es/free-form/addable-section/index.d.ts +18 -0
  53. package/es/free-form/addable-section/index.js +286 -0
  54. package/es/free-form/addable-section/style/index.d.ts +1 -0
  55. package/es/free-form/addable-section/style/index.js +1 -0
  56. package/es/free-form/addable-section/style/index.less +22 -0
  57. package/es/free-form/element/index.js +43 -41
  58. package/es/free-form/element/style/index.less +12 -2
  59. package/es/free-form/index.d.ts +5 -1
  60. package/es/free-form/index.js +17 -17
  61. package/es/free-form/page/index.js +36 -46
  62. package/es/free-form/page/style/index.less +3 -1
  63. package/es/free-form/pages/index.js +8 -10
  64. package/es/free-form/section/index.js +20 -22
  65. package/es/free-form/section/style/index.less +4 -0
  66. package/es/free-form/step/index.js +37 -47
  67. package/es/free-form/steps/index.js +8 -10
  68. package/es/global-message/index.js +1 -1
  69. package/es/home-menu/index.js +52 -71
  70. package/es/index.d.ts +1 -0
  71. package/es/index.js +2 -1
  72. package/es/input/amount.js +10 -5
  73. package/es/input/credit-card.js +7 -1
  74. package/es/input/email.js +8 -1
  75. package/es/input/expiry-date.js +14 -18
  76. package/es/input/input-date.js +12 -16
  77. package/es/input/input-number.js +9 -2
  78. package/es/input/input.js +9 -2
  79. package/es/input/otp.js +17 -15
  80. package/es/input/password.js +12 -6
  81. package/es/input/phone-number.js +6 -8
  82. package/es/input/style/index.less +9 -1
  83. package/es/input/text-area.js +14 -10
  84. package/es/layout/defaultFooter.js +60 -82
  85. package/es/layout/defaultHeader.js +11 -15
  86. package/es/layout/footer.js +108 -148
  87. package/es/layout/header.js +51 -60
  88. package/es/layout/index.js +16 -12
  89. package/es/locale/en-US/messages.json +2 -0
  90. package/es/locale/id-ID/messages.json +2 -0
  91. package/es/locale/locale-provider.js +8 -10
  92. package/es/locale/th-TH/messages.json +2 -0
  93. package/es/locale/vi-VN/messages.json +2 -0
  94. package/es/locale/zh-CN/messages.json +2 -0
  95. package/es/login-page/index.js +30 -42
  96. package/es/media/index.js +20 -27
  97. package/es/media/media.js +9 -12
  98. package/es/media/preview.js +8 -10
  99. package/es/mobile-insurer-detail/index.js +74 -91
  100. package/es/mobile-insurer-list/index.js +34 -38
  101. package/es/modal/index.d.ts +4 -3
  102. package/es/modal/index.js +25 -27
  103. package/es/modal/style/index.less +24 -5
  104. package/es/platform/platform-card/index.js +9 -12
  105. package/es/platform/switch-platform/index.js +24 -32
  106. package/es/policy-list/index.js +11 -14
  107. package/es/policy-list/policy-card.js +119 -153
  108. package/es/radio/index.js +33 -35
  109. package/es/select/attached-select.js +31 -34
  110. package/es/select/select.js +12 -8
  111. package/es/select/style/index.less +1 -1
  112. package/es/select/time-select.js +12 -16
  113. package/es/status-box/index.js +8 -10
  114. package/es/table/index.js +72 -96
  115. package/es/tabs/index.js +7 -1
  116. package/es/types.d.ts +4 -2
  117. package/es/typography/index.js +6 -8
  118. package/es/upload/index.d.ts +2 -1
  119. package/es/upload/index.js +169 -143
  120. package/es/upload-photo/index.d.ts +2 -1
  121. package/es/upload-photo/index.js +170 -142
  122. package/es/upload-photo/media.js +3 -4
  123. package/es/upload-preview/index.js +9 -12
  124. package/es/upload-preview/media.js +12 -16
  125. package/es/upload-preview/style/index.less +2 -2
  126. package/es/utils/form-utils.js +49 -36
  127. package/lib/admin-upload/float.js +25 -35
  128. package/lib/admin-upload/index.d.ts +2 -0
  129. package/lib/admin-upload/index.js +43 -36
  130. package/lib/admin-upload/job-list.js +85 -115
  131. package/lib/admin-upload/modal.js +19 -26
  132. package/lib/alert-message/index.js +11 -9
  133. package/lib/amount/index.js +10 -5
  134. package/lib/back-top/index.js +14 -10
  135. package/lib/button/index.js +24 -29
  136. package/lib/button/style/index.less +23 -19
  137. package/lib/card-detail/card-group.js +16 -22
  138. package/lib/card-detail/card-item.js +16 -21
  139. package/lib/card-detail/card-page.js +11 -15
  140. package/lib/card-detail/card.js +24 -24
  141. package/lib/card-detail/index.js +6 -6
  142. package/lib/card-detail/style/index.less +13 -0
  143. package/lib/card-detail/utils.js +7 -8
  144. package/lib/checkbox/index.js +24 -23
  145. package/lib/claim-list/index.js +53 -70
  146. package/lib/confirmation/index.js +7 -9
  147. package/lib/date-picker/buddhist.js +3 -3
  148. package/lib/date-picker/index.js +11 -5
  149. package/lib/declaration/index.js +16 -13
  150. package/lib/detail-panel/index.js +67 -83
  151. package/lib/documents/index.js +6 -8
  152. package/lib/example/index.js +10 -12
  153. package/lib/filter/checkBox.js +33 -45
  154. package/lib/filter/customize.js +3 -4
  155. package/lib/filter/index.d.ts +1 -0
  156. package/lib/filter/index.js +88 -112
  157. package/lib/filter/radioBox.js +23 -31
  158. package/lib/filter/rangePicker.js +43 -59
  159. package/lib/form/addable-section/index.d.ts +19 -0
  160. package/lib/form/addable-section/index.js +232 -0
  161. package/lib/form/addable-section/style/index.d.ts +1 -0
  162. package/lib/form/addable-section/style/index.js +3 -0
  163. package/lib/form/addable-section/style/index.less +22 -0
  164. package/lib/form/divider/index.js +7 -1
  165. package/lib/form/element/index.js +60 -48
  166. package/lib/form/element/style/index.less +9 -0
  167. package/lib/form/elements.js +1 -1
  168. package/lib/form/index.js +16 -17
  169. package/lib/form/login/index.js +16 -21
  170. package/lib/form/page/index.js +19 -25
  171. package/lib/form/page/style/index.less +1 -1
  172. package/lib/form/pages/index.js +24 -33
  173. package/lib/form/pages/style/index.less +3 -1
  174. package/lib/form/render/index.js +2 -2
  175. package/lib/form/section/index.js +15 -18
  176. package/lib/form/step/index.js +32 -43
  177. package/lib/form/steps/index.js +9 -12
  178. package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
  179. package/lib/{form/context.js → form-context.js} +0 -0
  180. package/lib/free-form/addable-section/index.d.ts +18 -0
  181. package/lib/free-form/addable-section/index.js +306 -0
  182. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  183. package/lib/free-form/addable-section/style/index.js +3 -0
  184. package/lib/free-form/addable-section/style/index.less +22 -0
  185. package/lib/free-form/element/index.js +44 -42
  186. package/lib/free-form/element/style/index.less +12 -2
  187. package/lib/free-form/index.d.ts +5 -1
  188. package/lib/free-form/index.js +17 -17
  189. package/lib/free-form/page/index.js +37 -47
  190. package/lib/free-form/page/style/index.less +3 -1
  191. package/lib/free-form/pages/index.js +8 -10
  192. package/lib/free-form/section/index.js +21 -23
  193. package/lib/free-form/section/style/index.less +4 -0
  194. package/lib/free-form/step/index.js +38 -48
  195. package/lib/free-form/steps/index.js +9 -11
  196. package/lib/global-message/index.js +1 -1
  197. package/lib/home-menu/index.js +52 -71
  198. package/lib/index.d.ts +1 -0
  199. package/lib/index.js +141 -132
  200. package/lib/input/amount.js +10 -5
  201. package/lib/input/credit-card.js +7 -1
  202. package/lib/input/email.js +7 -1
  203. package/lib/input/expiry-date.js +14 -18
  204. package/lib/input/index.js +18 -18
  205. package/lib/input/input-date.js +12 -16
  206. package/lib/input/input-number.js +8 -2
  207. package/lib/input/input.js +8 -2
  208. package/lib/input/otp.js +17 -15
  209. package/lib/input/password.js +11 -6
  210. package/lib/input/phone-number.js +6 -8
  211. package/lib/input/style/index.less +9 -1
  212. package/lib/input/text-area.js +14 -10
  213. package/lib/layout/defaultFooter.js +60 -82
  214. package/lib/layout/defaultHeader.js +11 -15
  215. package/lib/layout/footer.js +108 -148
  216. package/lib/layout/header.js +51 -60
  217. package/lib/layout/index.js +15 -12
  218. package/lib/locale/en-US/messages.json +2 -0
  219. package/lib/locale/format-message.js +1 -1
  220. package/lib/locale/id-ID/messages.json +2 -0
  221. package/lib/locale/index.js +4 -4
  222. package/lib/locale/locale-provider.js +9 -11
  223. package/lib/locale/th-TH/messages.json +2 -0
  224. package/lib/locale/vi-VN/messages.json +2 -0
  225. package/lib/locale/zh-CN/messages.json +2 -0
  226. package/lib/login-page/index.js +30 -42
  227. package/lib/media/index.js +20 -27
  228. package/lib/media/media.js +9 -12
  229. package/lib/media/preview.js +8 -10
  230. package/lib/mobile-insurer-detail/index.js +74 -91
  231. package/lib/mobile-insurer-list/index.js +34 -38
  232. package/lib/modal/index.d.ts +4 -3
  233. package/lib/modal/index.js +25 -27
  234. package/lib/modal/style/index.less +24 -5
  235. package/lib/platform/platform-card/index.js +9 -12
  236. package/lib/platform/switch-platform/index.js +24 -32
  237. package/lib/policy-list/index.js +11 -14
  238. package/lib/policy-list/policy-card.js +119 -153
  239. package/lib/radio/index.js +33 -35
  240. package/lib/select/attached-select.js +32 -35
  241. package/lib/select/select.js +13 -9
  242. package/lib/select/style/index.less +1 -1
  243. package/lib/select/time-select.js +12 -16
  244. package/lib/status-box/index.js +8 -10
  245. package/lib/table/index.js +72 -96
  246. package/lib/tabs/index.js +8 -2
  247. package/lib/types.d.ts +4 -2
  248. package/lib/typography/index.js +6 -8
  249. package/lib/upload/index.d.ts +2 -1
  250. package/lib/upload/index.js +170 -143
  251. package/lib/upload-photo/index.d.ts +2 -1
  252. package/lib/upload-photo/index.js +171 -142
  253. package/lib/upload-photo/media.js +3 -4
  254. package/lib/upload-preview/index.js +9 -12
  255. package/lib/upload-preview/media.js +12 -16
  256. package/lib/upload-preview/style/index.less +2 -2
  257. package/lib/utils/form-utils.js +49 -37
  258. package/package.json +1 -1
  259. package/es/free-form/context.d.ts +0 -19
  260. package/es/free-form/context.js +0 -7
  261. package/lib/free-form/context.d.ts +0 -19
  262. package/lib/free-form/context.js +0 -19
@@ -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); 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 = 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; }
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); 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 = 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; }
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); 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 = 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; }
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); 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 = 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; }
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,7 +9,7 @@ input[type='number'] {
9
9
  line-height: 24px;
10
10
  width: 100%;
11
11
  height: 48px;
12
- border-color: #bdbdbd !important;
12
+ border-color: #bdbdbd;
13
13
  padding: 12px 16px;
14
14
  color: #212121;
15
15
 
@@ -337,6 +337,14 @@ input[type='number'] {
337
337
 
338
338
  .ant-input:not(.ant-input-disabled) {
339
339
  border-color: #bdbdbd;
340
+
341
+ &:hover {
342
+ border-color: @primary-color;
343
+ }
344
+
345
+ &:active {
346
+ border-color: @active-color;
347
+ }
340
348
  }
341
349
 
342
350
  .igloo-otp-extra {
@@ -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); 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 = 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; }
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) {
@@ -13,125 +13,103 @@ var DefaultFooter = function DefaultFooter() {
13
13
  var _useBreakpoint = useBreakpoint(),
14
14
  md = _useBreakpoint.md;
15
15
 
16
- return md ? _jsx("div", Object.assign({
17
- className: "igloo-layout-footer"
18
- }, {
19
- children: _jsxs("div", Object.assign({
20
- className: "footer-content"
21
- }, {
22
- children: [_jsx(_Space, Object.assign({
16
+ return md ? _jsx("div", {
17
+ className: "igloo-layout-footer",
18
+ children: _jsxs("div", {
19
+ className: "footer-content",
20
+ children: [_jsx(_Space, {
23
21
  size: 32,
24
22
  align: "start",
25
- className: "footer-top"
26
- }, {
27
- children: _jsx("div", Object.assign({
28
- className: "top-left"
29
- }, {
23
+ className: "footer-top",
24
+ children: _jsx("div", {
25
+ className: "top-left",
30
26
  children: _jsx("div", {
31
27
  className: "igloo-logo"
32
28
  }, void 0)
33
- }), void 0)
34
- }), void 0), _jsx("div", {
29
+ }, void 0)
30
+ }, void 0), _jsx("div", {
35
31
  className: "footer-divider"
36
- }, void 0), _jsxs("div", Object.assign({
37
- className: "footer-bottom"
38
- }, {
39
- children: [_jsx(Typography, Object.assign({
40
- level: "body3"
41
- }, {
32
+ }, void 0), _jsxs("div", {
33
+ className: "footer-bottom",
34
+ children: [_jsx(Typography, {
35
+ level: "body3",
42
36
  children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd. All Rights Reserved.")
43
- }), void 0), _jsxs(Typography, Object.assign({
44
- level: "body3"
45
- }, {
46
- children: [_jsx(Button, Object.assign({
37
+ }, void 0), _jsxs(Typography, {
38
+ level: "body3",
39
+ children: [_jsx(Button, {
47
40
  type: "text",
48
41
  onClick: function onClick() {
49
42
  return window.open('https://contents.iglooinsure.com/privacypolicy');
50
- }
51
- }, {
52
- children: _jsx(Typography, Object.assign({
53
- level: "body3"
54
- }, {
43
+ },
44
+ children: _jsx(Typography, {
45
+ level: "body3",
55
46
  children: "Privacy Policy"
56
- }), void 0)
57
- }), void 0), ' ', _jsx("span", Object.assign({
47
+ }, void 0)
48
+ }, void 0), ' ', _jsx("span", {
58
49
  style: {
59
50
  margin: '0px 16px'
60
- }
61
- }, {
51
+ },
62
52
  children: "|"
63
- }), void 0), _jsx(Button, Object.assign({
53
+ }, void 0), _jsx(Button, {
64
54
  type: "text",
65
55
  onClick: function onClick() {
66
56
  return window.open('https://contents.iglooinsure.com/termsofservice');
67
- }
68
- }, {
69
- children: _jsx(Typography, Object.assign({
70
- level: "body3"
71
- }, {
57
+ },
58
+ children: _jsx(Typography, {
59
+ level: "body3",
72
60
  children: "Terms of Service"
73
- }), void 0)
74
- }), void 0)]
75
- }), void 0)]
76
- }), void 0)]
77
- }), void 0)
78
- }), void 0) : _jsx("div", Object.assign({
79
- className: "igloo-layout-footer"
80
- }, {
81
- children: _jsxs("div", Object.assign({
82
- className: "footer-content"
83
- }, {
61
+ }, void 0)
62
+ }, void 0)]
63
+ }, void 0)]
64
+ }, void 0)]
65
+ }, void 0)
66
+ }, void 0) : _jsx("div", {
67
+ className: "igloo-layout-footer",
68
+ children: _jsxs("div", {
69
+ className: "footer-content",
84
70
  children: [_jsx("div", {
85
71
  className: "igloo-logo"
86
- }, void 0), _jsxs("div", Object.assign({
87
- className: "footer-bottom"
88
- }, {
72
+ }, void 0), _jsxs("div", {
73
+ className: "footer-bottom",
89
74
  children: [_jsx("div", {
90
- children: _jsxs(Typography, Object.assign({
91
- level: "body3"
92
- }, {
75
+ children: _jsxs(Typography, {
76
+ level: "body3",
93
77
  children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Axinan Pte Ltd."), _jsx("div", {
94
78
  children: "All Rights Reserved."
95
79
  }, void 0)]
96
- }), void 0)
80
+ }, void 0)
97
81
  }, void 0), _jsx("div", {
98
- children: _jsxs(Typography, Object.assign({
99
- level: "body3"
100
- }, {
101
- children: [_jsx(Button, Object.assign({
82
+ children: _jsxs(Typography, {
83
+ level: "body3",
84
+ children: [_jsx(Button, {
102
85
  type: "text",
103
86
  onClick: function onClick() {
104
87
  return window.open('https://contents.iglooinsure.com/privacypolicy');
105
- }
106
- }, {
107
- children: _jsx(Typography, Object.assign({
108
- level: "body3"
109
- }, {
88
+ },
89
+ children: _jsx(Typography, {
90
+ level: "body3",
110
91
  children: "Privacy Policy"
111
- }), void 0)
112
- }), void 0), ' ', _jsx("span", Object.assign({
92
+ }, void 0)
93
+ }, void 0), ' ', _jsx("span", {
113
94
  style: {
114
95
  margin: '0px 16px'
115
- }
116
- }, {
96
+ },
117
97
  children: "|"
118
- }), void 0), ' ', _jsx(Button, Object.assign({
98
+ }, void 0), ' ', _jsx(Button, {
119
99
  type: "text",
120
100
  onClick: function onClick() {
121
101
  return window.open('https://contents.iglooinsure.com/termsofservice');
122
- }
123
- }, {
124
- children: _jsx(Typography, Object.assign({
125
- level: "body3"
126
- }, {
102
+ },
103
+ children: _jsx(Typography, {
104
+ level: "body3",
127
105
  children: "Terms of Service"
128
- }), void 0)
129
- }), void 0)]
130
- }), void 0)
106
+ }, void 0)
107
+ }, void 0)]
108
+ }, void 0)
131
109
  }, void 0)]
132
- }), void 0)]
133
- }), void 0)
134
- }), void 0);
110
+ }, void 0)]
111
+ }, void 0)
112
+ }, void 0);
135
113
  };
136
114
 
137
115
  export default DefaultFooter;
@@ -10,31 +10,27 @@ var DefaultHeader = function DefaultHeader() {
10
10
  var _useBreakpoint = useBreakpoint(),
11
11
  md = _useBreakpoint.md;
12
12
 
13
- return md ? _jsx("div", Object.assign({
13
+ return md ? _jsx("div", {
14
14
  className: classnames({
15
15
  'igloo-layout-header': true
16
- })
17
- }, {
18
- children: _jsx("div", Object.assign({
19
- className: "header-content"
20
- }, {
21
- children: _jsx("div", Object.assign({
22
- className: "header-left"
23
- }, {
16
+ }),
17
+ children: _jsx("div", {
18
+ className: "header-content",
19
+ children: _jsx("div", {
20
+ className: "header-left",
24
21
  children: _jsx("div", {
25
22
  className: "igloo-logo"
26
23
  }, void 0)
27
- }), void 0)
28
- }), void 0)
29
- }), void 0) : _jsx("div", Object.assign({
24
+ }, void 0)
25
+ }, void 0)
26
+ }, void 0) : _jsx("div", {
30
27
  className: classnames({
31
28
  'igloo-layout-header': true
32
- })
33
- }, {
29
+ }),
34
30
  children: _jsx("div", {
35
31
  className: "igloo-logo"
36
32
  }, void 0)
37
- }), void 0);
33
+ }, void 0);
38
34
  };
39
35
 
40
36
  export default DefaultHeader;