@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/README.md +307 -65
- package/dist/index.cjs +24362 -0
- package/dist/index.cjs.js +4 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.map +1 -0
- package/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/styles/_theme.scss +561 -0
- package/dist/styles/_variables.scss +180 -0
- package/package.json +7 -1
- package/dist/index.cjs.css +0 -1
- package/dist/index.esm.css +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -850,6 +850,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
850
850
|
return action.render(row);
|
|
851
851
|
}
|
|
852
852
|
if (action.skip) return null;
|
|
853
|
+
var IconComponent = action.icon;
|
|
853
854
|
return /*#__PURE__*/jsx("button", {
|
|
854
855
|
onClick: function onClick() {
|
|
855
856
|
return action.onClick(row);
|
|
@@ -862,7 +863,7 @@ var ActionButton = function ActionButton(_ref) {
|
|
|
862
863
|
fontSize: "26px"
|
|
863
864
|
},
|
|
864
865
|
disabled: action.disabled,
|
|
865
|
-
children:
|
|
866
|
+
children: typeof IconComponent === 'function' ? /*#__PURE__*/jsx(IconComponent, {}) : IconComponent
|
|
866
867
|
}, "action-".concat(actionIndex));
|
|
867
868
|
};
|
|
868
869
|
|
|
@@ -2368,7 +2369,7 @@ var UdiTable = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2368
2369
|
children: [/*#__PURE__*/jsx(TableHeader, {
|
|
2369
2370
|
name: name,
|
|
2370
2371
|
freeActions: freeActions,
|
|
2371
|
-
getState: (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getState
|
|
2372
|
+
getState: ref === null || ref === void 0 || (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.getState
|
|
2372
2373
|
}), /*#__PURE__*/jsxs("div", {
|
|
2373
2374
|
className: "udi-table-container ".concat(className),
|
|
2374
2375
|
onMouseEnter: handleMouseEnter,
|
|
@@ -3150,7 +3151,7 @@ var useUdiTableSync = function useUdiTableSync() {
|
|
|
3150
3151
|
};
|
|
3151
3152
|
|
|
3152
3153
|
function test(name) {
|
|
3153
|
-
return "Hello, ".concat(name, "! test
|
|
3154
|
+
return "Hello, ".concat(name, "! this is a test 1208");
|
|
3154
3155
|
}
|
|
3155
3156
|
function add(a, b) {
|
|
3156
3157
|
return a + b;
|