@ix_waterford/lib 1.0.77 → 1.0.78

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
- // 1776755568174
175
+ // 1776775112935
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
- // 1776755568177
203
+ // 1776775112937
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
- // 1776755568176
231
+ // 1776775112937
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
- // 1776755568176
259
+ // 1776775112938
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 (
@@ -3213,8 +3213,8 @@ __webpack_require__.d(__webpack_exports__, {
3213
3213
  /* import */ var react_jsx_dev_runtime__rspack_import_0 = __webpack_require__("./node_modules/react/jsx-dev-runtime.js");
3214
3214
  /* import */ var _mui_material__rspack_import_1 = __webpack_require__("@mui/material");
3215
3215
  /* import */ var _style__rspack_import_4 = __webpack_require__("./src/components/avatarStatusDot/style.tsx");
3216
- /* import */ var _toolTip__rspack_import_3 = __webpack_require__("./src/components/toolTip/toolTip.tsx");
3217
3216
  /* import */ var _avatarTitle_avatarTitle__rspack_import_2 = __webpack_require__("./src/components/avatarTitle/avatarTitle.tsx");
3217
+ /* import */ var _toolTip__rspack_import_3 = __webpack_require__("./src/components/toolTip/toolTip.tsx");
3218
3218
  /* provided dependency */ var $ReactRefreshRuntime$ = __webpack_require__("./node_modules/@rspack/plugin-react-refresh/client/reactRefresh.js");
3219
3219
 
3220
3220
 
@@ -3222,21 +3222,21 @@ __webpack_require__.d(__webpack_exports__, {
3222
3222
 
3223
3223
 
3224
3224
  const Avatar = (param)=>{
3225
- let { className = '', tooltipTitle = '', background = '', statusDotColor = '', name = '', nameColor = '', children, sx = {}, ...restProps } = param;
3225
+ let { className = '', tooltipTitle = '', background = '', statusDotColor = '', name = '', nameColor = '', children: _children, sx = {}, ...restProps } = param;
3226
3226
  return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_mui_material__rspack_import_1.Box, {
3227
3227
  className: `avatarContainer ${className}`,
3228
3228
  children: [
3229
3229
  /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_avatarTitle_avatarTitle__rspack_import_2["default"], {
3230
- img: (restProps === null || restProps === void 0 ? void 0 : restProps.src) || '',
3230
+ img: typeof restProps.src === 'string' ? restProps.src : '',
3231
3231
  background: background,
3232
3232
  name: name || '',
3233
3233
  color: nameColor,
3234
3234
  sx: sx,
3235
- onClick: (restProps === null || restProps === void 0 ? void 0 : restProps.onClick) || (()=>{})
3235
+ onClick: restProps.onClick
3236
3236
  }, void 0, false, {
3237
3237
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/avatarStatusDot/avatar.tsx",
3238
3238
  lineNumber: 38,
3239
- columnNumber: 6
3239
+ columnNumber: 7
3240
3240
  }, undefined),
3241
3241
  /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_mui_material__rspack_import_1.Box, {
3242
3242
  className: `statusDotContainer ${className}`,
@@ -6885,31 +6885,35 @@ const TableActions = (props)=>{
6885
6885
  return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_mui_material__rspack_import_2.Box, {
6886
6886
  className: "tableActions",
6887
6887
  children: actions.length > 0 && actions.map((item)=>{
6888
+ const entry = actionIcon[item];
6888
6889
  // eslint-disable-next-line
6889
- if (actionIcon[item]) {
6890
- return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_toolTip__rspack_import_6["default"], {
6891
- title: actionLabels[item] ?? item,
6892
- arrow: true,
6893
- children: /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_iconButton__rspack_import_7["default"], {
6894
- size: "small",
6895
- className: "actionIconBtn",
6896
- onClick: (e)=>{
6897
- handleAction(item, rowData, e);
6898
- },
6899
- children: typeof actionIcon[item] === 'function' ? actionIcon[item](rowData, item) : actionIcon[item]
6900
- }, void 0, false, {
6901
- fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6902
- lineNumber: 31,
6903
- columnNumber: 29
6904
- }, undefined)
6905
- }, item, false, {
6906
- fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6907
- lineNumber: 30,
6908
- columnNumber: 25
6909
- }, undefined);
6910
- } else {
6890
+ if (!entry) {
6911
6891
  return null;
6912
6892
  }
6893
+ const content = typeof entry === 'function' ? entry(rowData, item) : entry;
6894
+ if (!content) {
6895
+ return null;
6896
+ }
6897
+ return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_toolTip__rspack_import_6["default"], {
6898
+ title: actionLabels[item] ?? item,
6899
+ arrow: true,
6900
+ children: /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_iconButton__rspack_import_7["default"], {
6901
+ size: "small",
6902
+ className: "actionIconBtn",
6903
+ onClick: (e)=>{
6904
+ handleAction(item, rowData, e);
6905
+ },
6906
+ children: content
6907
+ }, void 0, false, {
6908
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6909
+ lineNumber: 40,
6910
+ columnNumber: 25
6911
+ }, undefined)
6912
+ }, item, false, {
6913
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6914
+ lineNumber: 39,
6915
+ columnNumber: 21
6916
+ }, undefined);
6913
6917
  })
6914
6918
  }, void 0, false, {
6915
6919
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",