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.cjs
CHANGED
@@ -3027,7 +3027,7 @@ var Viewer = function Viewer(_ref) {
|
|
3027
3027
|
*/
|
3028
3028
|
var Kanban = function Kanban(_ref) {
|
3029
3029
|
var children = _ref.children;
|
3030
|
-
React.useMemo(function () {
|
3030
|
+
var hasSwimlanes = React.useMemo(function () {
|
3031
3031
|
var found = React__default["default"].Children.map(children, function (child) {
|
3032
3032
|
if (child.type.name === KanbanSwimlane.name) {
|
3033
3033
|
return child;
|
@@ -3035,8 +3035,9 @@ var Kanban = function Kanban(_ref) {
|
|
3035
3035
|
});
|
3036
3036
|
return found.length > 0;
|
3037
3037
|
});
|
3038
|
+
var style = hasSwimlanes ? "with-swimlanes" : "";
|
3038
3039
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
3039
|
-
className: "kanban
|
3040
|
+
className: "kanban " + style
|
3040
3041
|
}, children);
|
3041
3042
|
};
|
3042
3043
|
var KanbanHeader = function KanbanHeader(props) {
|