react-better-html 1.1.219 → 1.1.221
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.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1706,20 +1706,22 @@ DivComponent.box = forwardRef6(function Box({
|
|
|
1706
1706
|
rightElement,
|
|
1707
1707
|
lightMode,
|
|
1708
1708
|
headerBackgroundColor,
|
|
1709
|
+
activeColor,
|
|
1709
1710
|
isActive,
|
|
1710
1711
|
children,
|
|
1711
1712
|
...props
|
|
1712
1713
|
}, ref) {
|
|
1713
1714
|
const theme2 = useTheme7();
|
|
1714
1715
|
const withClick = props.onClick || props.onClickWithValue;
|
|
1716
|
+
const readyActiveColor = activeColor ?? theme2.colors.primary;
|
|
1715
1717
|
return /* @__PURE__ */ jsxs3(
|
|
1716
1718
|
DivComponent,
|
|
1717
1719
|
{
|
|
1718
1720
|
color: isActive ? theme2.colors.base : void 0,
|
|
1719
|
-
backgroundColor: isActive ?
|
|
1720
|
-
border: `1px solid ${isActive ?
|
|
1721
|
+
backgroundColor: isActive ? readyActiveColor : theme2.colors.backgroundContent,
|
|
1722
|
+
border: `1px solid ${isActive ? readyActiveColor : theme2.colors.border}`,
|
|
1721
1723
|
borderRadius: theme2.styles.borderRadius,
|
|
1722
|
-
borderColorHover: withClick && !isActive ?
|
|
1724
|
+
borderColorHover: withClick && !isActive ? readyActiveColor : void 0,
|
|
1723
1725
|
filterHover: withClick && isActive ? "brightness(0.9)" : void 0,
|
|
1724
1726
|
cursor: withClick ? "pointer" : void 0,
|
|
1725
1727
|
paddingBlock: title ? theme2.styles.space : theme2.styles.gap,
|
|
@@ -7103,18 +7105,14 @@ var FoldableComponent = forwardRef18(function Foldable({
|
|
|
7103
7105
|
observer.disconnect();
|
|
7104
7106
|
};
|
|
7105
7107
|
}, [isOpen]);
|
|
7106
|
-
useImperativeHandle5(
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
};
|
|
7115
|
-
},
|
|
7116
|
-
[open, close, toggleOpen, isOpen]
|
|
7117
|
-
);
|
|
7108
|
+
useImperativeHandle5(ref, () => {
|
|
7109
|
+
return {
|
|
7110
|
+
open,
|
|
7111
|
+
close,
|
|
7112
|
+
toggle: toggleOpen,
|
|
7113
|
+
isOpen
|
|
7114
|
+
};
|
|
7115
|
+
}, [open, close, toggleOpen, isOpen]);
|
|
7118
7116
|
return /* @__PURE__ */ jsxs22(Div_default.column, { width: "100%", ...props, children: [
|
|
7119
7117
|
renderHeader ? renderHeader(isOpen, toggleOpen) : /* @__PURE__ */ jsxs22(
|
|
7120
7118
|
Div_default.row,
|