@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.
package/dist/index.js CHANGED
@@ -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}`,
@@ -6729,31 +6729,35 @@ const TableActions = (props)=>{
6729
6729
  return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_mui_material__rspack_import_2.Box, {
6730
6730
  className: "tableActions",
6731
6731
  children: actions.length > 0 && actions.map((item)=>{
6732
+ const entry = actionIcon[item];
6732
6733
  // eslint-disable-next-line
6733
- if (actionIcon[item]) {
6734
- return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_toolTip__rspack_import_6["default"], {
6735
- title: actionLabels[item] ?? item,
6736
- arrow: true,
6737
- children: /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_iconButton__rspack_import_7["default"], {
6738
- size: "small",
6739
- className: "actionIconBtn",
6740
- onClick: (e)=>{
6741
- handleAction(item, rowData, e);
6742
- },
6743
- children: typeof actionIcon[item] === 'function' ? actionIcon[item](rowData, item) : actionIcon[item]
6744
- }, void 0, false, {
6745
- fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6746
- lineNumber: 31,
6747
- columnNumber: 29
6748
- }, undefined)
6749
- }, item, false, {
6750
- fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6751
- lineNumber: 30,
6752
- columnNumber: 25
6753
- }, undefined);
6754
- } else {
6734
+ if (!entry) {
6755
6735
  return null;
6756
6736
  }
6737
+ const content = typeof entry === 'function' ? entry(rowData, item) : entry;
6738
+ if (!content) {
6739
+ return null;
6740
+ }
6741
+ return /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_toolTip__rspack_import_6["default"], {
6742
+ title: actionLabels[item] ?? item,
6743
+ arrow: true,
6744
+ children: /*#__PURE__*/ (0,react_jsx_dev_runtime__rspack_import_0.jsxDEV)(_components_iconButton__rspack_import_7["default"], {
6745
+ size: "small",
6746
+ className: "actionIconBtn",
6747
+ onClick: (e)=>{
6748
+ handleAction(item, rowData, e);
6749
+ },
6750
+ children: content
6751
+ }, void 0, false, {
6752
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6753
+ lineNumber: 40,
6754
+ columnNumber: 25
6755
+ }, undefined)
6756
+ }, item, false, {
6757
+ fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",
6758
+ lineNumber: 39,
6759
+ columnNumber: 21
6760
+ }, undefined);
6757
6761
  })
6758
6762
  }, void 0, false, {
6759
6763
  fileName: "/Users/kirubakaran.r/Documents/projects/hub/components/waterford_library/src/components/table/body/tableActions.tsx",