@udi-organization/udi-package 1.0.50 → 1.0.55

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.cjs.js CHANGED
@@ -852,6 +852,7 @@ var ActionButton = function ActionButton(_ref) {
852
852
  return action.render(row);
853
853
  }
854
854
  if (action.skip) return null;
855
+ var IconComponent = action.icon;
855
856
  return /*#__PURE__*/jsxRuntime.jsx("button", {
856
857
  onClick: function onClick() {
857
858
  return action.onClick(row);
@@ -864,7 +865,7 @@ var ActionButton = function ActionButton(_ref) {
864
865
  fontSize: "26px"
865
866
  },
866
867
  disabled: action.disabled,
867
- children: action.icon
868
+ children: typeof IconComponent === 'function' ? /*#__PURE__*/jsxRuntime.jsx(IconComponent, {}) : IconComponent
868
869
  }, "action-".concat(actionIndex));
869
870
  };
870
871
 
@@ -2370,7 +2371,7 @@ var UdiTable = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
2370
2371
  children: [/*#__PURE__*/jsxRuntime.jsx(TableHeader, {
2371
2372
  name: name,
2372
2373
  freeActions: freeActions,
2373
- getState: (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getState
2374
+ getState: ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getState
2374
2375
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
2375
2376
  className: "udi-table-container ".concat(className),
2376
2377
  onMouseEnter: handleMouseEnter,
@@ -3152,7 +3153,7 @@ var useUdiTableSync = function useUdiTableSync() {
3152
3153
  };
3153
3154
 
3154
3155
  function test(name) {
3155
- return "Hello, ".concat(name, "! test danny04233592");
3156
+ return "Hello, ".concat(name, "! this is a test 1208");
3156
3157
  }
3157
3158
  function add(a, b) {
3158
3159
  return a + b;