indicator-ui 0.0.26 → 0.0.28
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.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7056,7 +7056,7 @@ function CascadeBlock({ options, onClick, label, supportingText, noWrapper = fal
|
|
|
7056
7056
|
return undefined;
|
|
7057
7057
|
}
|
|
7058
7058
|
});
|
|
7059
|
-
if (count === totalCount) {
|
|
7059
|
+
if (count === totalCount && totalCount !== 0) {
|
|
7060
7060
|
return 'all';
|
|
7061
7061
|
}
|
|
7062
7062
|
else if (count === 0) {
|
|
@@ -7078,7 +7078,7 @@ function CascadeBlock({ options, onClick, label, supportingText, noWrapper = fal
|
|
|
7078
7078
|
return getCascade();
|
|
7079
7079
|
}
|
|
7080
7080
|
const cascadeState = getCountOfActiveCheckbox();
|
|
7081
|
-
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(
|
|
7081
|
+
return ((0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_3__.Checkbox, { supportingText: supportingText, text: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", { className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_styles__WEBPACK_IMPORTED_MODULE_5__.CascadeBlockStyle?.cascadeBlockLabel, { [_styles__WEBPACK_IMPORTED_MODULE_5__.CascadeBlockStyle?.open]: isOpen }), children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", { className: _styles__WEBPACK_IMPORTED_MODULE_5__.CascadeBlockStyle?.text, children: label }), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets__WEBPACK_IMPORTED_MODULE_6__.ChevronDownSVG, {})] }), width: 'hug', checked: cascadeState === 'all', indeterminate: cascadeState === 'some', onClick: () => setIsOpen(prev => !prev) }), options && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: _styles__WEBPACK_IMPORTED_MODULE_5__.CascadeBlockStyle?.cascadeBlock, children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", { className: (0,clsx__WEBPACK_IMPORTED_MODULE_2__["default"])(_styles__WEBPACK_IMPORTED_MODULE_5__.CascadeBlockStyle.list, { [_styles__WEBPACK_IMPORTED_MODULE_5__.CascadeBlockStyle?.hide]: isOpen }), children: getCascade() }) })] }));
|
|
7082
7082
|
}
|
|
7083
7083
|
|
|
7084
7084
|
|
|
@@ -7120,7 +7120,7 @@ function CascadeSelector({ value, options, onChange, multiple }) {
|
|
|
7120
7120
|
]);
|
|
7121
7121
|
}
|
|
7122
7122
|
};
|
|
7123
|
-
return (
|
|
7123
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_CascadeBlock__WEBPACK_IMPORTED_MODULE_1__.CascadeBlock, { options: options, noWrapper: true, onClick: handleClick, value: getValue() });
|
|
7124
7124
|
}
|
|
7125
7125
|
|
|
7126
7126
|
|