@ix_waterford/lib 1.0.68 → 1.0.70

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.
@@ -172,7 +172,7 @@ __webpack_require__.r(__webpack_exports__);
172
172
  if(true) {
173
173
  (function() {
174
174
  var localsJsonString = undefined;
175
- // 1775907591978
175
+ // 1775927964526
176
176
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
177
177
  // only invalidate when locals change
178
178
  if (
@@ -200,7 +200,7 @@ __webpack_require__.r(__webpack_exports__);
200
200
  if(true) {
201
201
  (function() {
202
202
  var localsJsonString = undefined;
203
- // 1775907591979
203
+ // 1775927964527
204
204
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
205
205
  // only invalidate when locals change
206
206
  if (
@@ -228,7 +228,7 @@ __webpack_require__.r(__webpack_exports__);
228
228
  if(true) {
229
229
  (function() {
230
230
  var localsJsonString = undefined;
231
- // 1775907591979
231
+ // 1775927964527
232
232
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
233
233
  // only invalidate when locals change
234
234
  if (
@@ -256,7 +256,7 @@ __webpack_require__.r(__webpack_exports__);
256
256
  if(true) {
257
257
  (function() {
258
258
  var localsJsonString = undefined;
259
- // 1775907591980
259
+ // 1775927964528
260
260
  var cssReload = (__webpack_require__("./node_modules/@rspack/core/dist/cssExtractHmr.js")/* .cssReload */.cssReload)(module.id, {});
261
261
  // only invalidate when locals change
262
262
  if (
@@ -7598,11 +7598,22 @@ __webpack_require__.d(__webpack_exports__, {
7598
7598
  /* import */ var _multiSearch__rspack_import_2 = __webpack_require__("./src/components/multiSearch/multiSearch.tsx");
7599
7599
  /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
7600
7600
 
7601
+ var _s = $RefreshSig$();
7601
7602
 
7602
7603
 
7603
7604
  const MultiSearchFieldComponent = (param)=>{
7604
- let { field = '', value = [], options = [], onSearch = ()=>{} } = param;
7605
- const normalizedValue = Array.isArray(value) ? value : [];
7605
+ let { field = '', value = null, options = [], onSearch = ()=>{} } = param;
7606
+ _s();
7607
+ const normalizedValue = (0,react__rspack_import_1.useMemo)(()=>{
7608
+ if (Array.isArray(value)) return value;
7609
+ return !value ? options.map((param)=>{
7610
+ let { value } = param;
7611
+ return value;
7612
+ }) : [];
7613
+ }, [
7614
+ options,
7615
+ value
7616
+ ]);
7606
7617
  return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_multiSearch__rspack_import_2["default"], {
7607
7618
  field: field,
7608
7619
  value: normalizedValue,
@@ -7610,10 +7621,11 @@ const MultiSearchFieldComponent = (param)=>{
7610
7621
  onSearch: onSearch
7611
7622
  }, void 0, false, {
7612
7623
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/header/searchFields/MultiSearchField.tsx",
7613
- lineNumber: 28,
7624
+ lineNumber: 32,
7614
7625
  columnNumber: 5
7615
7626
  }, undefined);
7616
7627
  };
7628
+ _s(MultiSearchFieldComponent, "sAheK19jueGu3C7Ht3rVgtLI/pc=");
7617
7629
  _c = MultiSearchFieldComponent;
7618
7630
  MultiSearchFieldComponent.displayName = 'MultiSearchField';
7619
7631
  const MultiSearchField = /*#__PURE__*/ react__rspack_import_1["default"].memo(MultiSearchFieldComponent);