@canlooks/can-ui 0.0.66 → 0.0.67
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.
|
@@ -31,7 +31,7 @@ const Button = ({ component: Component = 'button', color = 'primary', shape = 's
|
|
|
31
31
|
? actualPrefix
|
|
32
32
|
? (0, jsx_runtime_1.jsx)(loadingIndicator_1.LoadingIndicator, { color: reverseTextColor })
|
|
33
33
|
: (0, jsx_runtime_1.jsx)(transitionBase_1.Collapse, { orientation: "horizontal", in: true, children: (0, jsx_runtime_1.jsx)(loadingIndicator_1.LoadingIndicator, { color: reverseTextColor }) })
|
|
34
|
-
:
|
|
34
|
+
: actualPrefix, !!actualChildren &&
|
|
35
35
|
(0, jsx_runtime_1.jsx)("div", { className: button_style_1.classes.content, children: actualChildren }), !!suffix &&
|
|
36
36
|
(0, jsx_runtime_1.jsx)("div", { className: button_style_1.classes.suffix, children: suffix })] }));
|
|
37
37
|
};
|
|
@@ -38,7 +38,6 @@ function Popper({ ref, popperRef, anchorElement, container = document.body, cont
|
|
|
38
38
|
const unmounted = (0, utils_1.useUnmounted)();
|
|
39
39
|
const openHolding = (0, react_1.useRef)(0);
|
|
40
40
|
const hold = (open) => {
|
|
41
|
-
console.log('hold', open);
|
|
42
41
|
return open ? ++openHolding.current
|
|
43
42
|
: openHolding.current > 0 ? --openHolding.current
|
|
44
43
|
: openHolding.current;
|
|
@@ -28,7 +28,7 @@ export const Button = ({ component: Component = 'button', color = 'primary', sha
|
|
|
28
28
|
? actualPrefix
|
|
29
29
|
? _jsx(LoadingIndicator, { color: reverseTextColor })
|
|
30
30
|
: _jsx(Collapse, { orientation: "horizontal", in: true, children: _jsx(LoadingIndicator, { color: reverseTextColor }) })
|
|
31
|
-
:
|
|
31
|
+
: actualPrefix, !!actualChildren &&
|
|
32
32
|
_jsx("div", { className: classes.content, children: actualChildren }), !!suffix &&
|
|
33
33
|
_jsx("div", { className: classes.suffix, children: suffix })] }));
|
|
34
34
|
};
|
|
@@ -35,7 +35,6 @@ export function Popper({ ref, popperRef, anchorElement, container = document.bod
|
|
|
35
35
|
const unmounted = useUnmounted();
|
|
36
36
|
const openHolding = useRef(0);
|
|
37
37
|
const hold = (open) => {
|
|
38
|
-
console.log('hold', open);
|
|
39
38
|
return open ? ++openHolding.current
|
|
40
39
|
: openHolding.current > 0 ? --openHolding.current
|
|
41
40
|
: openHolding.current;
|