iglooform 2.5.4 → 2.5.5

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 (65) hide show
  1. package/es/checkbox/index.d.ts +7 -7
  2. package/es/checkbox/index.js +85 -5
  3. package/es/form/elements.js +3 -1
  4. package/es/index.d.ts +1 -0
  5. package/es/index.js +1 -0
  6. package/es/input/amount.js +14 -3
  7. package/es/input/input-number.js +14 -3
  8. package/es/locale/en-US/messages.json +4 -0
  9. package/es/locale/id-ID/messages.json +4 -0
  10. package/es/locale/th-TH/messages.json +4 -0
  11. package/es/locale/vi-VN/messages.json +4 -0
  12. package/es/locale/zh-CN/messages.json +4 -0
  13. package/es/locale/zh-TW/messages.json +5 -0
  14. package/es/media/media.js +6 -3
  15. package/es/media/preview.js +13 -13
  16. package/es/radio/index.d.ts +6 -6
  17. package/es/radio/index.js +79 -22
  18. package/es/radio/radio-group-with-other.d.ts +1 -1
  19. package/es/radio/radio-group-with-other.js +41 -4
  20. package/es/radio/style/empty.svg +12 -0
  21. package/es/search-box/index.d.ts +19 -0
  22. package/es/search-box/index.js +266 -0
  23. package/es/search-box/style/index.d.ts +1 -0
  24. package/es/search-box/style/index.js +1 -0
  25. package/es/search-box/style/index.less +162 -0
  26. package/es/select/attached-select.d.ts +2 -12
  27. package/es/select/attached-select.js +27 -186
  28. package/es/upload-photo/index.js +33 -32
  29. package/es/upload-photo/media.js +6 -7
  30. package/es/upload-preview/media.js +13 -13
  31. package/es/utils/option-utils.d.ts +24 -0
  32. package/es/utils/option-utils.js +233 -0
  33. package/lib/checkbox/index.d.ts +7 -7
  34. package/lib/checkbox/index.js +87 -5
  35. package/lib/form/elements.js +4 -1
  36. package/lib/index.d.ts +1 -0
  37. package/lib/index.js +9 -0
  38. package/lib/input/amount.js +14 -3
  39. package/lib/input/input-number.js +14 -3
  40. package/lib/locale/en-US/messages.json +4 -0
  41. package/lib/locale/id-ID/messages.json +4 -0
  42. package/lib/locale/th-TH/messages.json +4 -0
  43. package/lib/locale/vi-VN/messages.json +4 -0
  44. package/lib/locale/zh-CN/messages.json +4 -0
  45. package/lib/locale/zh-TW/messages.json +5 -0
  46. package/lib/media/media.js +6 -3
  47. package/lib/media/preview.js +13 -15
  48. package/lib/radio/index.d.ts +6 -6
  49. package/lib/radio/index.js +83 -22
  50. package/lib/radio/radio-group-with-other.d.ts +1 -1
  51. package/lib/radio/radio-group-with-other.js +41 -3
  52. package/lib/radio/style/empty.svg +12 -0
  53. package/lib/search-box/index.d.ts +19 -0
  54. package/lib/search-box/index.js +287 -0
  55. package/lib/search-box/style/index.d.ts +1 -0
  56. package/lib/search-box/style/index.js +3 -0
  57. package/lib/search-box/style/index.less +162 -0
  58. package/lib/select/attached-select.d.ts +2 -12
  59. package/lib/select/attached-select.js +26 -186
  60. package/lib/upload-photo/index.js +33 -32
  61. package/lib/upload-photo/media.js +6 -9
  62. package/lib/upload-preview/media.js +13 -13
  63. package/lib/utils/option-utils.d.ts +24 -0
  64. package/lib/utils/option-utils.js +250 -0
  65. package/package.json +1 -1
@@ -21,6 +21,7 @@
21
21
  "Data Processed": "數據已處理",
22
22
  "Data Processing...": "數據處理中。。。",
23
23
  "Date": "日期",
24
+ "Done": "完成",
24
25
  "Drag and drop a file here": "拖放文件至此",
25
26
  "Edit": "編輯",
26
27
  "Error Report": "錯誤報告",
@@ -38,6 +39,7 @@
38
39
  "OK": "好",
39
40
  "Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.": "一旦您對上述內容感到滿意,您已檢查聲明,請繼續並提交您的索賠。",
40
41
  "Optional": "可選項",
42
+ "Other Reason": "其他原因",
41
43
  "Please enter a valid date.": "請輸入有效的日期。",
42
44
  "Please enter a valid time.": "請輸入有效的時間。",
43
45
  "Please select": "請選擇",
@@ -55,10 +57,13 @@
55
57
  "Result": "結果",
56
58
  "Result: Success {success_num}; Error {fail_num}": "結果:成功{success_num};錯誤{fail_num}",
57
59
  "Rows per page": "每頁行數",
60
+ "Search": "檢索",
61
+ "Searching...": "正在檢索...",
58
62
  "Select All": "全選",
59
63
  "Send OTP": "發送OTP.",
60
64
  "Submit": "提交",
61
65
  "The file type is not supported.": "不支持文件類型。",
66
+ "There are no options available currently": "當前沒有可用的選項",
62
67
  "This Month": "本月",
63
68
  "Unselect All": "全部取消選擇",
64
69
  "Uploading": "上傳",
@@ -11,7 +11,7 @@ var _tooltip = _interopRequireDefault(require("antd/es/tooltip"));
11
11
 
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
 
14
- var _reactPdf = _interopRequireDefault(require("@mikecousins/react-pdf"));
14
+ var _entry = require("react-pdf/dist/esm/entry.webpack");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -37,9 +37,12 @@ var MediaItem = function MediaItem(_ref) {
37
37
  maxHeight: 80,
38
38
  position: 'absolute'
39
39
  },
40
- children: (0, _jsxRuntime.jsx)(_reactPdf.default, {
40
+ children: (0, _jsxRuntime.jsx)(_entry.Document, {
41
41
  file: src,
42
- scale: 0.1
42
+ children: (0, _jsxRuntime.jsx)(_entry.Page, {
43
+ pageNumber: 1,
44
+ scale: 0.1
45
+ })
43
46
  })
44
47
  });
45
48
 
@@ -9,9 +9,7 @@ var _jsxRuntime = require("react/jsx-runtime");
9
9
 
10
10
  var _react = require("react");
11
11
 
12
- var _reactPdf = _interopRequireDefault(require("@mikecousins/react-pdf"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+ var _entry = require("react-pdf/dist/esm/entry.webpack");
15
13
 
16
14
  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; }
17
15
 
@@ -52,17 +50,6 @@ var PdfViewer = function PdfViewer(_ref) {
52
50
  }
53
51
  };
54
52
 
55
- var pages = [];
56
-
57
- for (var i = 1; i <= pageSize; i++) {
58
- pages.push((0, _jsxRuntime.jsx)(_reactPdf.default, {
59
- file: src,
60
- page: i,
61
- onDocumentLoadSuccess: handlePageInit,
62
- scale: scale
63
- }, i));
64
- }
65
-
66
53
  return (0, _jsxRuntime.jsx)("div", {
67
54
  style: {
68
55
  display: 'flex',
@@ -72,7 +59,18 @@ var PdfViewer = function PdfViewer(_ref) {
72
59
  transform: "translate(".concat(left, "px, ").concat(top, "px)"),
73
60
  position: 'absolute'
74
61
  },
75
- children: pages
62
+ children: (0, _jsxRuntime.jsx)(_entry.Document, {
63
+ file: src,
64
+ onLoadSuccess: handlePageInit,
65
+ children: Array.from({
66
+ length: pageSize
67
+ }).map(function (_, index) {
68
+ return (0, _jsxRuntime.jsx)(_entry.Page, {
69
+ pageNumber: index + 1,
70
+ scale: scale
71
+ }, index);
72
+ })
73
+ })
76
74
  });
77
75
  };
78
76
 
@@ -1,22 +1,22 @@
1
1
  import { RadioProps, RadioGroupProps } from 'antd/es/radio';
2
2
  import { FC, IglooComponentProps } from '../types';
3
3
  import './style/index.less';
4
- import { FormInstance } from 'antd/es/form';
4
+ import { ComponentProps } from '../utils/option-utils';
5
+ import { DefaultOptionType } from 'rc-select/lib/Select';
5
6
  declare type Props = RadioProps & IglooComponentProps;
6
7
  declare const IglooRadio: FC<Props>;
7
- export interface Option extends RadioProps {
8
+ export interface Option extends DefaultOptionType {
8
9
  extraInfo?: {
9
10
  content: any;
10
11
  shownTrigger: 'unchecked' | 'checked' | 'all';
11
12
  };
12
- label: any;
13
13
  }
14
- export interface IProps extends IglooComponentProps, Omit<RadioGroupProps, 'options'> {
14
+ export interface IProps extends IglooComponentProps, Omit<RadioGroupProps, 'options'>, ComponentProps {
15
15
  className?: string;
16
16
  radioType?: string;
17
- getOptions?: (form: FormInstance) => Option[];
18
17
  options: Option[];
19
18
  }
20
- export declare const RadioGroup: FC<IProps>;
19
+ export declare const InnerRadioGroup: FC<IProps>;
20
+ export declare const RadioGroup: FC<import("../utils/option-utils").HOCProps & IProps>;
21
21
  export default IglooRadio;
22
22
  export { default as RadioGroupWithOther } from './radio-group-with-other';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.RadioGroup = void 0;
6
+ exports.RadioGroup = exports.InnerRadioGroup = void 0;
7
7
  Object.defineProperty(exports, "RadioGroupWithOther", {
8
8
  enumerable: true,
9
9
  get: function get() {
@@ -38,13 +38,31 @@ require("./style/index.less");
38
38
 
39
39
  var _typography = _interopRequireDefault(require("../typography"));
40
40
 
41
+ var _localeContext = _interopRequireDefault(require("../locale/locale-context"));
42
+
43
+ var _empty = _interopRequireDefault(require("./style/empty.svg"));
44
+
45
+ var _optionUtils = require("../utils/option-utils");
46
+
41
47
  var _radioGroupWithOther = _interopRequireDefault(require("./radio-group-with-other"));
42
48
 
43
- var _excluded = ["className", "options", "radioType", "getOptions", "value"],
49
+ var _excluded = ["className", "options", "radioType", "value", "clearWhenOptionsUpdated"],
44
50
  _excluded2 = ["label", "value", "extraInfo"];
45
51
 
46
52
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
47
53
 
54
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
55
+
56
+ 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."); }
57
+
58
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
59
+
60
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
61
+
62
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
63
+
64
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
65
+
48
66
  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; }
49
67
 
50
68
  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; }
@@ -63,38 +81,55 @@ IglooRadio.formItemPropsHandler = function () {
63
81
  return {};
64
82
  };
65
83
 
66
- var RadioGroup = function RadioGroup(_ref) {
84
+ var InnerRadioGroup = function InnerRadioGroup(_ref) {
67
85
  var className = _ref.className,
68
- optionsProp = _ref.options,
86
+ options = _ref.options,
69
87
  _ref$radioType = _ref.radioType,
70
88
  radioType = _ref$radioType === void 0 ? 'normal' : _ref$radioType,
71
- getOptionsProp = _ref.getOptions,
72
89
  value = _ref.value,
90
+ _ref$clearWhenOptions = _ref.clearWhenOptionsUpdated,
91
+ clearWhenOptionsUpdated = _ref$clearWhenOptions === void 0 ? false : _ref$clearWhenOptions,
73
92
  rest = _objectWithoutProperties(_ref, _excluded);
74
93
 
75
- var getOptions = function getOptions() {
76
- var getFormInstance = rest.getFormInstance;
77
- var form = typeof getFormInstance === 'function' && getFormInstance();
78
- if (!form) return [];
79
- var options = typeof getOptionsProp === 'function' && getOptionsProp(form);
80
- return options || [];
81
- };
94
+ var _useState = (0, _react.useState)(value),
95
+ _useState2 = _slicedToArray(_useState, 2),
96
+ selected = _useState2[0],
97
+ setSelected = _useState2[1];
98
+
99
+ var originOptions = (0, _react.useRef)(options);
82
100
 
83
- var options = optionsProp || getOptions();
101
+ var _useContext = (0, _react.useContext)(_localeContext.default),
102
+ formatMessage = _useContext.formatMessage;
103
+
104
+ (0, _react.useEffect)(function () {
105
+ typeof rest.onChange === 'function' && value !== selected && rest.onChange(selected);
106
+ }, [selected]);
107
+ (0, _react.useEffect)(function () {
108
+ setSelected(value);
109
+ }, [value]);
84
110
  (0, _react.useEffect)(function () {
85
111
  var setFieldValue = rest.setFieldValue;
86
- var foundValue = options.find(function (option) {
87
- return option.value === value;
88
- });
89
112
 
90
- if (!foundValue) {
91
- typeof setFieldValue === 'function' && setFieldValue(undefined);
113
+ if ((0, _optionUtils.compareOptions)(options, originOptions.current)) {
114
+ if (clearWhenOptionsUpdated) {
115
+ typeof setFieldValue === 'function' && setFieldValue();
116
+ } else {
117
+ var foundValue = options.find(function (option) {
118
+ return Array.isArray(value) ? value.includes(option.value) : option.value === value;
119
+ });
120
+
121
+ if (!foundValue && value !== undefined) {
122
+ typeof setFieldValue === 'function' && setFieldValue();
123
+ }
124
+ }
125
+
126
+ originOptions.current = options;
92
127
  }
93
- }, [value, options]);
94
- return (0, _jsxRuntime.jsx)(_radio.default.Group, _objectSpread(_objectSpread({}, (0, _omit.default)(rest, _formMethods.default)), {}, {
128
+ }, [options]);
129
+ return (0, _jsxRuntime.jsxs)(_radio.default.Group, _objectSpread(_objectSpread({}, (0, _omit.default)(rest, _formMethods.default)), {}, {
95
130
  className: (0, _classnames.default)('igloo-radio-group', className),
96
131
  value: value,
97
- children: (0, _jsxRuntime.jsx)(_row.default, {
132
+ children: [(0, _jsxRuntime.jsx)(_row.default, {
98
133
  gutter: [8, 8],
99
134
  children: options.map(function (_ref2) {
100
135
  var label = _ref2.label,
@@ -138,10 +173,36 @@ var RadioGroup = function RadioGroup(_ref) {
138
173
  }))
139
174
  }, key);
140
175
  })
141
- })
176
+ }), !options.length && (0, _jsxRuntime.jsxs)("div", {
177
+ style: {
178
+ display: 'flex',
179
+ flexDirection: 'column',
180
+ background: '#f9f9f9',
181
+ padding: 16,
182
+ alignItems: 'center'
183
+ },
184
+ children: [(0, _jsxRuntime.jsx)("img", {
185
+ src: _empty.default,
186
+ style: {
187
+ width: 32,
188
+ height: 24
189
+ }
190
+ }), (0, _jsxRuntime.jsx)(_typography.default, {
191
+ level: "h5",
192
+ style: {
193
+ color: '#212121',
194
+ marginTop: 8
195
+ },
196
+ children: formatMessage({
197
+ id: 'There are no options available currently'
198
+ })
199
+ })]
200
+ })]
142
201
  }));
143
202
  };
144
203
 
204
+ exports.InnerRadioGroup = InnerRadioGroup;
205
+ var RadioGroup = (0, _optionUtils.optionsHOC)(InnerRadioGroup);
145
206
  exports.RadioGroup = RadioGroup;
146
207
 
147
208
  RadioGroup.formItemPropsHandler = function () {
@@ -1,6 +1,6 @@
1
1
  import { IProps as RadioGroupProps } from './index';
2
2
  import { FC } from '../types';
3
- declare const RadioGroupWithOther: FC<RadioGroupProps & {
3
+ declare const RadioGroupWithOther: FC<import("../utils/option-utils").HOCProps & RadioGroupProps & {
4
4
  otherOptionLabel: string;
5
5
  }>;
6
6
  export default RadioGroupWithOther;
@@ -15,7 +15,9 @@ var _input = require("../input");
15
15
 
16
16
  var _locale = require("../locale");
17
17
 
18
- var _excluded = ["value", "onChange", "options", "otherOptionLabel"];
18
+ var _optionUtils = require("../utils/option-utils");
19
+
20
+ var _excluded = ["value", "onChange", "options", "otherOptionLabel", "clearWhenOptionsUpdated"];
19
21
 
20
22
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
21
23
 
@@ -49,11 +51,14 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
49
51
 
50
52
  var otherKey = 'iglooRadioGroupOther';
51
53
 
52
- var RadioGroupWithOther = function RadioGroupWithOther(_ref) {
54
+ var InnerRadioGroupWithOther = function InnerRadioGroupWithOther(_ref) {
53
55
  var value = _ref.value,
54
56
  onChange = _ref.onChange,
55
- options = _ref.options,
57
+ _ref$options = _ref.options,
58
+ options = _ref$options === void 0 ? [] : _ref$options,
56
59
  otherOptionLabel = _ref.otherOptionLabel,
60
+ _ref$clearWhenOptions = _ref.clearWhenOptionsUpdated,
61
+ clearWhenOptionsUpdated = _ref$clearWhenOptions === void 0 ? false : _ref$clearWhenOptions,
57
62
  rest = _objectWithoutProperties(_ref, _excluded);
58
63
 
59
64
  var _useState = (0, _react.useState)(false),
@@ -61,6 +66,38 @@ var RadioGroupWithOther = function RadioGroupWithOther(_ref) {
61
66
  otherEnabled = _useState2[0],
62
67
  enableOther = _useState2[1];
63
68
 
69
+ var _useState3 = (0, _react.useState)(value),
70
+ _useState4 = _slicedToArray(_useState3, 2),
71
+ selected = _useState4[0],
72
+ setSelected = _useState4[1];
73
+
74
+ var originOptions = (0, _react.useRef)(options);
75
+ (0, _react.useEffect)(function () {
76
+ typeof onChange === 'function' && value !== selected && onChange(selected);
77
+ }, [selected]);
78
+ (0, _react.useEffect)(function () {
79
+ setSelected(value);
80
+ }, [value]);
81
+ (0, _react.useEffect)(function () {
82
+ var setFieldValue = rest.setFieldValue;
83
+
84
+ if ((0, _optionUtils.compareOptions)(options, originOptions.current)) {
85
+ if (clearWhenOptionsUpdated) {
86
+ typeof setFieldValue === 'function' && setFieldValue();
87
+ } else {
88
+ var foundValue = options.find(function (option) {
89
+ return Array.isArray(value) ? value.includes(option.value) : option.value === value;
90
+ });
91
+
92
+ if (!foundValue && value !== undefined) {
93
+ typeof setFieldValue === 'function' && setFieldValue();
94
+ }
95
+ }
96
+
97
+ originOptions.current = options;
98
+ }
99
+ }, [options]);
100
+
64
101
  var handleChange = function handleChange(e) {
65
102
  onChange && onChange(e);
66
103
  };
@@ -94,5 +131,6 @@ var RadioGroupWithOther = function RadioGroupWithOther(_ref) {
94
131
  });
95
132
  };
96
133
 
134
+ var RadioGroupWithOther = (0, _optionUtils.optionsHOC)(InnerRadioGroupWithOther);
97
135
  var _default = RadioGroupWithOther;
98
136
  exports.default = _default;
@@ -0,0 +1,12 @@
1
+ <svg width="32" height="25" viewBox="0 0 32 25" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path
3
+ d="M30.6663 18.3333V12.5846C30.6663 12.0654 30.5316 11.5551 30.2752 11.1035L25.4017 2.51891C24.8687 1.58006 23.8724 1 22.7928 1H8.99351C7.89503 1 6.88439 1.60036 6.35896 2.56503L1.69846 11.1215C1.45865 11.5618 1.33301 12.0551 1.33301 12.5565V18.3333"
4
+ stroke="#212121" stroke-width="2" />
5
+ <mask id="path-2-inside-1_8603_29999" fill="white">
6
+ <path fill-rule="evenodd" clip-rule="evenodd"
7
+ d="M9.22038 11.3468C9.22038 10.5263 8.5552 9.86108 7.73467 9.86108H3C1.34315 9.86108 0 11.2042 0 12.8611V22C0 23.6568 1.34315 25 3 25H29C30.6569 25 32 23.6568 32 22V12.8611C32 11.2042 30.6569 9.86108 29 9.86108H24.2654C23.4449 9.86108 22.7797 10.5263 22.7797 11.3468C22.7797 13.0036 21.4366 14.3468 19.7797 14.3468H12.2204C10.5635 14.3468 9.22038 13.0036 9.22038 11.3468Z" />
8
+ </mask>
9
+ <path
10
+ d="M3 11.8611H7.73467V7.86108H3V11.8611ZM2 22V12.8611H-2V22H2ZM29 23H3V27H29V23ZM30 12.8611V22H34V12.8611H30ZM24.2654 11.8611H29V7.86108H24.2654V11.8611ZM20.7797 11.3468C20.7797 11.8991 20.332 12.3468 19.7797 12.3468V16.3468C22.5411 16.3468 24.7797 14.1082 24.7797 11.3468H20.7797ZM19.7797 12.3468H12.2204V16.3468H19.7797V12.3468ZM12.2204 12.3468C11.6681 12.3468 11.2204 11.8991 11.2204 11.3468H7.22038C7.22038 14.1082 9.45895 16.3468 12.2204 16.3468V12.3468ZM24.2654 7.86108C22.3403 7.86108 20.7797 9.42169 20.7797 11.3468H24.7797C24.7797 11.6308 24.5494 11.8611 24.2654 11.8611V7.86108ZM34 12.8611C34 10.0997 31.7614 7.86108 29 7.86108V11.8611C29.5523 11.8611 30 12.3088 30 12.8611H34ZM29 27C31.7614 27 34 24.7614 34 22H30C30 22.5523 29.5523 23 29 23V27ZM-2 22C-2 24.7614 0.238576 27 3 27V23C2.44772 23 2 22.5523 2 22H-2ZM7.73467 11.8611C7.45064 11.8611 7.22038 11.6308 7.22038 11.3468H11.2204C11.2204 9.42168 9.65977 7.86108 7.73467 7.86108V11.8611ZM3 7.86108C0.238578 7.86108 -2 10.0997 -2 12.8611H2C2 12.3088 2.44771 11.8611 3 11.8611V7.86108Z"
11
+ fill="#212121" mask="url(#path-2-inside-1_8603_29999)" />
12
+ </svg>
@@ -0,0 +1,19 @@
1
+ import { ButtonProps } from 'antd/lib/button';
2
+ import { FC, IglooComponentProps } from '../types';
3
+ import './style';
4
+ import { ComponentProps } from '../utils/option-utils';
5
+ declare type IProps = IglooComponentProps & {
6
+ className?: string;
7
+ onSearch?: any;
8
+ value?: any;
9
+ multiple?: boolean;
10
+ modalTitle?: string;
11
+ placeHolder?: string;
12
+ modalPlaceHolder?: string;
13
+ optionsUpdating?: boolean;
14
+ onChange?: any;
15
+ okButtonProps?: ButtonProps;
16
+ cancelButtonProps?: ButtonProps;
17
+ } & ComponentProps;
18
+ declare const SearchBox: FC<IProps>;
19
+ export default SearchBox;