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.
- package/es/admin-upload/float.js +25 -35
- package/es/admin-upload/index.d.ts +2 -0
- package/es/admin-upload/index.js +43 -36
- package/es/admin-upload/job-list.js +85 -115
- package/es/admin-upload/modal.js +19 -26
- package/es/alert-message/index.js +11 -9
- package/es/amount/index.js +10 -5
- package/es/back-top/index.js +14 -10
- package/es/button/index.js +23 -28
- package/es/button/style/index.less +23 -19
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +16 -21
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/style/index.less +13 -0
- package/es/card-detail/utils.js +6 -7
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +53 -70
- package/es/confirmation/index.js +7 -9
- package/es/date-picker/buddhist.js +3 -3
- package/es/date-picker/index.js +10 -4
- package/es/declaration/index.js +16 -13
- package/es/detail-panel/index.js +67 -83
- package/es/documents/index.js +6 -8
- package/es/example/index.js +9 -11
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.d.ts +1 -0
- package/es/filter/index.js +88 -112
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/addable-section/index.d.ts +19 -0
- package/es/form/addable-section/index.js +211 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.js +1 -0
- package/es/form/addable-section/style/index.less +22 -0
- package/es/form/divider/index.js +7 -1
- package/es/form/element/index.js +58 -47
- package/es/form/element/style/index.less +9 -0
- package/es/form/index.js +16 -17
- package/es/form/login/index.js +15 -20
- package/es/form/page/index.js +18 -24
- package/es/form/page/style/index.less +1 -1
- package/es/form/pages/index.js +23 -32
- package/es/form/pages/style/index.less +3 -1
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +14 -17
- package/es/form/step/index.js +31 -42
- package/es/form/steps/index.js +8 -11
- package/es/{form/context.d.ts → form-context.d.ts} +1 -0
- package/es/{form/context.js → form-context.js} +0 -0
- package/es/free-form/addable-section/index.d.ts +18 -0
- package/es/free-form/addable-section/index.js +286 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.js +1 -0
- package/es/free-form/addable-section/style/index.less +22 -0
- package/es/free-form/element/index.js +43 -41
- package/es/free-form/element/style/index.less +12 -2
- package/es/free-form/index.d.ts +5 -1
- package/es/free-form/index.js +17 -17
- package/es/free-form/page/index.js +36 -46
- package/es/free-form/page/style/index.less +3 -1
- package/es/free-form/pages/index.js +8 -10
- package/es/free-form/section/index.js +20 -22
- package/es/free-form/section/style/index.less +4 -0
- package/es/free-form/step/index.js +37 -47
- package/es/free-form/steps/index.js +8 -10
- package/es/global-message/index.js +1 -1
- package/es/home-menu/index.js +52 -71
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/amount.js +10 -5
- package/es/input/credit-card.js +7 -1
- package/es/input/email.js +8 -1
- package/es/input/expiry-date.js +14 -18
- package/es/input/input-date.js +12 -16
- package/es/input/input-number.js +9 -2
- package/es/input/input.js +9 -2
- package/es/input/otp.js +17 -15
- package/es/input/password.js +12 -6
- package/es/input/phone-number.js +6 -8
- package/es/input/style/index.less +9 -1
- package/es/input/text-area.js +14 -10
- package/es/layout/defaultFooter.js +60 -82
- package/es/layout/defaultHeader.js +11 -15
- package/es/layout/footer.js +108 -148
- package/es/layout/header.js +51 -60
- package/es/layout/index.js +16 -12
- package/es/locale/en-US/messages.json +2 -0
- package/es/locale/id-ID/messages.json +2 -0
- package/es/locale/locale-provider.js +8 -10
- package/es/locale/th-TH/messages.json +2 -0
- package/es/locale/vi-VN/messages.json +2 -0
- package/es/locale/zh-CN/messages.json +2 -0
- package/es/login-page/index.js +30 -42
- package/es/media/index.js +20 -27
- package/es/media/media.js +9 -12
- package/es/media/preview.js +8 -10
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.d.ts +4 -3
- package/es/modal/index.js +25 -27
- package/es/modal/style/index.less +24 -5
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +11 -14
- package/es/policy-list/policy-card.js +119 -153
- package/es/radio/index.js +33 -35
- package/es/select/attached-select.js +31 -34
- package/es/select/select.js +12 -8
- package/es/select/style/index.less +1 -1
- package/es/select/time-select.js +12 -16
- package/es/status-box/index.js +8 -10
- package/es/table/index.js +72 -96
- package/es/tabs/index.js +7 -1
- package/es/types.d.ts +4 -2
- package/es/typography/index.js +6 -8
- package/es/upload/index.d.ts +2 -1
- package/es/upload/index.js +169 -143
- package/es/upload-photo/index.d.ts +2 -1
- package/es/upload-photo/index.js +170 -142
- package/es/upload-photo/media.js +3 -4
- package/es/upload-preview/index.js +9 -12
- package/es/upload-preview/media.js +12 -16
- package/es/upload-preview/style/index.less +2 -2
- package/es/utils/form-utils.js +49 -36
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.d.ts +2 -0
- package/lib/admin-upload/index.js +43 -36
- package/lib/admin-upload/job-list.js +85 -115
- package/lib/admin-upload/modal.js +19 -26
- package/lib/alert-message/index.js +11 -9
- package/lib/amount/index.js +10 -5
- package/lib/back-top/index.js +14 -10
- package/lib/button/index.js +24 -29
- package/lib/button/style/index.less +23 -19
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +16 -21
- package/lib/card-detail/card-page.js +11 -15
- package/lib/card-detail/card.js +24 -24
- package/lib/card-detail/index.js +6 -6
- package/lib/card-detail/style/index.less +13 -0
- package/lib/card-detail/utils.js +7 -8
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +53 -70
- package/lib/confirmation/index.js +7 -9
- package/lib/date-picker/buddhist.js +3 -3
- package/lib/date-picker/index.js +11 -5
- package/lib/declaration/index.js +16 -13
- package/lib/detail-panel/index.js +67 -83
- package/lib/documents/index.js +6 -8
- package/lib/example/index.js +10 -12
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.d.ts +1 -0
- package/lib/filter/index.js +88 -112
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/addable-section/index.d.ts +19 -0
- package/lib/form/addable-section/index.js +232 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.js +3 -0
- package/lib/form/addable-section/style/index.less +22 -0
- package/lib/form/divider/index.js +7 -1
- package/lib/form/element/index.js +60 -48
- package/lib/form/element/style/index.less +9 -0
- package/lib/form/elements.js +1 -1
- package/lib/form/index.js +16 -17
- package/lib/form/login/index.js +16 -21
- package/lib/form/page/index.js +19 -25
- package/lib/form/page/style/index.less +1 -1
- package/lib/form/pages/index.js +24 -33
- package/lib/form/pages/style/index.less +3 -1
- package/lib/form/render/index.js +2 -2
- package/lib/form/section/index.js +15 -18
- package/lib/form/step/index.js +32 -43
- package/lib/form/steps/index.js +9 -12
- package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
- package/lib/{form/context.js → form-context.js} +0 -0
- package/lib/free-form/addable-section/index.d.ts +18 -0
- package/lib/free-form/addable-section/index.js +306 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.js +3 -0
- package/lib/free-form/addable-section/style/index.less +22 -0
- package/lib/free-form/element/index.js +44 -42
- package/lib/free-form/element/style/index.less +12 -2
- package/lib/free-form/index.d.ts +5 -1
- package/lib/free-form/index.js +17 -17
- package/lib/free-form/page/index.js +37 -47
- package/lib/free-form/page/style/index.less +3 -1
- package/lib/free-form/pages/index.js +8 -10
- package/lib/free-form/section/index.js +21 -23
- package/lib/free-form/section/style/index.less +4 -0
- package/lib/free-form/step/index.js +38 -48
- package/lib/free-form/steps/index.js +9 -11
- package/lib/global-message/index.js +1 -1
- package/lib/home-menu/index.js +52 -71
- package/lib/index.d.ts +1 -0
- package/lib/index.js +141 -132
- package/lib/input/amount.js +10 -5
- package/lib/input/credit-card.js +7 -1
- package/lib/input/email.js +7 -1
- package/lib/input/expiry-date.js +14 -18
- package/lib/input/index.js +18 -18
- package/lib/input/input-date.js +12 -16
- package/lib/input/input-number.js +8 -2
- package/lib/input/input.js +8 -2
- package/lib/input/otp.js +17 -15
- package/lib/input/password.js +11 -6
- package/lib/input/phone-number.js +6 -8
- package/lib/input/style/index.less +9 -1
- package/lib/input/text-area.js +14 -10
- package/lib/layout/defaultFooter.js +60 -82
- package/lib/layout/defaultHeader.js +11 -15
- package/lib/layout/footer.js +108 -148
- package/lib/layout/header.js +51 -60
- package/lib/layout/index.js +15 -12
- package/lib/locale/en-US/messages.json +2 -0
- package/lib/locale/format-message.js +1 -1
- package/lib/locale/id-ID/messages.json +2 -0
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +9 -11
- package/lib/locale/th-TH/messages.json +2 -0
- package/lib/locale/vi-VN/messages.json +2 -0
- package/lib/locale/zh-CN/messages.json +2 -0
- package/lib/login-page/index.js +30 -42
- package/lib/media/index.js +20 -27
- package/lib/media/media.js +9 -12
- package/lib/media/preview.js +8 -10
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.d.ts +4 -3
- package/lib/modal/index.js +25 -27
- package/lib/modal/style/index.less +24 -5
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +11 -14
- package/lib/policy-list/policy-card.js +119 -153
- package/lib/radio/index.js +33 -35
- package/lib/select/attached-select.js +32 -35
- package/lib/select/select.js +13 -9
- package/lib/select/style/index.less +1 -1
- package/lib/select/time-select.js +12 -16
- package/lib/status-box/index.js +8 -10
- package/lib/table/index.js +72 -96
- package/lib/tabs/index.js +8 -2
- package/lib/types.d.ts +4 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.d.ts +2 -1
- package/lib/upload/index.js +170 -143
- package/lib/upload-photo/index.d.ts +2 -1
- package/lib/upload-photo/index.js +171 -142
- package/lib/upload-photo/media.js +3 -4
- package/lib/upload-preview/index.js +9 -12
- package/lib/upload-preview/media.js +12 -16
- package/lib/upload-preview/style/index.less +2 -2
- package/lib/utils/form-utils.js +49 -37
- package/package.json +1 -1
- package/es/free-form/context.d.ts +0 -19
- package/es/free-form/context.js +0 -7
- package/lib/free-form/context.d.ts +0 -19
- package/lib/free-form/context.js +0 -19
package/es/input/input-number.js
CHANGED
|
@@ -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,
|
|
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,
|
|
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",
|
|
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
|
-
|
|
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
|
-
}
|
|
122
|
-
}
|
|
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
|
-
}
|
|
135
|
+
}, void 0), _jsx(Input, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
|
|
134
136
|
className: classNames(className)
|
|
135
137
|
}), void 0)]
|
|
136
|
-
}
|
|
138
|
+
}, void 0);
|
|
137
139
|
};
|
|
138
140
|
|
|
139
141
|
Otp.formItemPropsHandler = function (config) {
|
package/es/input/password.js
CHANGED
|
@@ -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,
|
|
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",
|
|
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
|
-
}
|
|
39
|
+
}, void 0);
|
|
34
40
|
}
|
|
35
41
|
}), void 0);
|
|
36
42
|
};
|
package/es/input/phone-number.js
CHANGED
|
@@ -67,17 +67,15 @@ var PhoneNumber = function PhoneNumber(_ref) {
|
|
|
67
67
|
value: area
|
|
68
68
|
};
|
|
69
69
|
})
|
|
70
|
-
}, void 0) : _jsx("div",
|
|
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
|
-
}
|
|
75
|
-
return _jsxs("div",
|
|
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
|
-
}
|
|
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
|
|
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 {
|
package/es/input/text-area.js
CHANGED
|
@@ -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",
|
|
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",
|
|
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
|
-
}
|
|
101
|
-
}
|
|
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",
|
|
17
|
-
className: "igloo-layout-footer"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
-
|
|
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
|
-
}
|
|
34
|
-
}
|
|
29
|
+
}, void 0)
|
|
30
|
+
}, void 0), _jsx("div", {
|
|
35
31
|
className: "footer-divider"
|
|
36
|
-
}, void 0), _jsxs("div",
|
|
37
|
-
className: "footer-bottom"
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
}
|
|
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
|
-
|
|
53
|
-
level: "body3"
|
|
54
|
-
}, {
|
|
43
|
+
},
|
|
44
|
+
children: _jsx(Typography, {
|
|
45
|
+
level: "body3",
|
|
55
46
|
children: "Privacy Policy"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
47
|
+
}, void 0)
|
|
48
|
+
}, void 0), ' ', _jsx("span", {
|
|
58
49
|
style: {
|
|
59
50
|
margin: '0px 16px'
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
51
|
+
},
|
|
62
52
|
children: "|"
|
|
63
|
-
}
|
|
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
|
-
|
|
70
|
-
level: "body3"
|
|
71
|
-
}, {
|
|
57
|
+
},
|
|
58
|
+
children: _jsx(Typography, {
|
|
59
|
+
level: "body3",
|
|
72
60
|
children: "Terms of Service"
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
className: "igloo-layout-footer"
|
|
80
|
-
|
|
81
|
-
|
|
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",
|
|
87
|
-
className: "footer-bottom"
|
|
88
|
-
}, {
|
|
72
|
+
}, void 0), _jsxs("div", {
|
|
73
|
+
className: "footer-bottom",
|
|
89
74
|
children: [_jsx("div", {
|
|
90
|
-
children: _jsxs(Typography,
|
|
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
|
-
}
|
|
80
|
+
}, void 0)
|
|
97
81
|
}, void 0), _jsx("div", {
|
|
98
|
-
children: _jsxs(Typography,
|
|
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
|
-
|
|
108
|
-
level: "body3"
|
|
109
|
-
}, {
|
|
88
|
+
},
|
|
89
|
+
children: _jsx(Typography, {
|
|
90
|
+
level: "body3",
|
|
110
91
|
children: "Privacy Policy"
|
|
111
|
-
}
|
|
112
|
-
}
|
|
92
|
+
}, void 0)
|
|
93
|
+
}, void 0), ' ', _jsx("span", {
|
|
113
94
|
style: {
|
|
114
95
|
margin: '0px 16px'
|
|
115
|
-
}
|
|
116
|
-
}, {
|
|
96
|
+
},
|
|
117
97
|
children: "|"
|
|
118
|
-
}
|
|
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
|
-
|
|
125
|
-
level: "body3"
|
|
126
|
-
}, {
|
|
102
|
+
},
|
|
103
|
+
children: _jsx(Typography, {
|
|
104
|
+
level: "body3",
|
|
127
105
|
children: "Terms of Service"
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
106
|
+
}, void 0)
|
|
107
|
+
}, void 0)]
|
|
108
|
+
}, void 0)
|
|
131
109
|
}, void 0)]
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
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",
|
|
13
|
+
return md ? _jsx("div", {
|
|
14
14
|
className: classnames({
|
|
15
15
|
'igloo-layout-header': true
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
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
|
-
}
|
|
33
|
+
}, void 0);
|
|
38
34
|
};
|
|
39
35
|
|
|
40
36
|
export default DefaultHeader;
|