ywana-core8 0.0.915 → 0.0.916
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/widgets/kanban/Kanban.js +1 -1
package/dist/index.umd.js
CHANGED
@@ -3020,7 +3020,7 @@
|
|
3020
3020
|
*/
|
3021
3021
|
var Kanban = function Kanban(_ref) {
|
3022
3022
|
var children = _ref.children;
|
3023
|
-
React.useMemo(function () {
|
3023
|
+
var hasSwimlanes = React.useMemo(function () {
|
3024
3024
|
var found = React__default["default"].Children.map(children, function (child) {
|
3025
3025
|
if (child.type.name === KanbanSwimlane.name) {
|
3026
3026
|
return child;
|
@@ -3028,8 +3028,9 @@
|
|
3028
3028
|
});
|
3029
3029
|
return found.length > 0;
|
3030
3030
|
});
|
3031
|
+
var style = hasSwimlanes ? "with-swimlanes" : "";
|
3031
3032
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3032
|
-
className: "kanban
|
3033
|
+
className: "kanban " + style
|
3033
3034
|
}, children);
|
3034
3035
|
};
|
3035
3036
|
var KanbanHeader = function KanbanHeader(props) {
|