@skalfa/skalfa-component 1.0.13 → 1.0.14

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.
@@ -92,15 +92,15 @@ function TableSupervisionComponent({ title, id, fetchControl, columnControl, for
92
92
  } }, key));
93
93
  }
94
94
  if (typeof action == "object") {
95
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(__1.ButtonComponent, { label: action?.button?.label || action?.label, variant: action?.button?.variant || "outline", paint: action?.button?.paint || "primary", size: action?.button?.size || options?.size || "xs", rounded: action?.button?.rounded || true, className: action?.button?.className, onClick: () => {
96
- if (action?.button?.onClick) {
97
- action?.button?.onClick(item);
98
- }
99
- else {
100
- setToggle(`MODAL_${_utils_1.conversion.strSnake(action?.label).toUpperCase()}_${toggleKey}`);
101
- item && setSelected?.(item);
102
- }
103
- } }, `action-object-${key}`), ...action.button] }));
95
+ return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(__1.ButtonComponent, { label: action?.button?.label || action?.label, variant: action?.button?.variant || "outline", paint: action?.button?.paint || "primary", size: action?.button?.size || options?.size || "xs", rounded: action?.button?.rounded || true, className: action?.button?.className, onClick: () => {
96
+ if (action?.button?.onClick) {
97
+ action?.button?.onClick(item);
98
+ }
99
+ else {
100
+ setToggle(`MODAL_${_utils_1.conversion.strSnake(action?.label).toUpperCase()}_${toggleKey}`);
101
+ item && setSelected?.(item);
102
+ }
103
+ }, ...action.button }, `action-object-${key}`) }));
104
104
  }
105
105
  if (typeof action == "function") {
106
106
  return ((0, jsx_runtime_1.jsx)("span", { children: action(item || {}, (type) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalfa/skalfa-component",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Reusable UI components for Skalfa App.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -240,8 +240,8 @@ export function TableSupervisionComponent({
240
240
  item && setSelected?.(item);
241
241
  }
242
242
  }}
243
+ {...action.button}
243
244
  />
244
- {...action.button}
245
245
  </>
246
246
  )
247
247
  }