react-better-html 1.1.263 → 1.1.265
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 +3 -13
- package/dist/index.d.ts +3 -13
- package/dist/index.js +38 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -7665,17 +7665,27 @@ var animationDurationOpen = animationDurationClose * 2;
|
|
|
7665
7665
|
var FoldableComponent = forwardRef18(function Foldable({
|
|
7666
7666
|
isOpen: controlledIsOpen,
|
|
7667
7667
|
defaultOpen = false,
|
|
7668
|
+
icon,
|
|
7669
|
+
iconColor,
|
|
7670
|
+
iconSize,
|
|
7671
|
+
image,
|
|
7672
|
+
imageUrl,
|
|
7673
|
+
imageSize,
|
|
7674
|
+
imageAzProfileImage,
|
|
7668
7675
|
title,
|
|
7669
7676
|
titleAs = "h3",
|
|
7677
|
+
titleFontSize,
|
|
7670
7678
|
titleColor,
|
|
7671
7679
|
titleRightElement,
|
|
7672
7680
|
description,
|
|
7681
|
+
descriptionFontSize,
|
|
7673
7682
|
descriptionColor,
|
|
7683
|
+
textAlign,
|
|
7674
7684
|
rightElement,
|
|
7675
|
-
|
|
7676
|
-
image,
|
|
7685
|
+
lightMode,
|
|
7677
7686
|
headerPaddingBlock,
|
|
7678
7687
|
headerPaddingInline,
|
|
7688
|
+
arrowPosition = "right",
|
|
7679
7689
|
renderHeader,
|
|
7680
7690
|
onOpenChange,
|
|
7681
7691
|
children,
|
|
@@ -7729,6 +7739,7 @@ var FoldableComponent = forwardRef18(function Foldable({
|
|
|
7729
7739
|
isOpen
|
|
7730
7740
|
};
|
|
7731
7741
|
}, [open, close, toggleOpen, isOpen]);
|
|
7742
|
+
const arrow = /* @__PURE__ */ jsx26(Icon_default, { name: "chevronDown", transform: `rotate(${isOpen ? 180 : 0}deg)`, transition: theme2.styles.transition });
|
|
7732
7743
|
return /* @__PURE__ */ jsxs23(Div_default.column, { width: "100%", ...props, children: [
|
|
7733
7744
|
renderHeader ? renderHeader(isOpen, toggleOpen) : /* @__PURE__ */ jsxs23(
|
|
7734
7745
|
Div_default.row,
|
|
@@ -7742,35 +7753,33 @@ var FoldableComponent = forwardRef18(function Foldable({
|
|
|
7742
7753
|
onClick: toggleOpen,
|
|
7743
7754
|
userSelect: "none",
|
|
7744
7755
|
children: [
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
/* @__PURE__ */ jsxs23(Div_default.column, { gap: theme2.styles.gap / 2, children: [
|
|
7749
|
-
title && /* @__PURE__ */ jsxs23(Div_default.row, { alignItems: "center", gap: theme2.styles.space, children: [
|
|
7750
|
-
/* @__PURE__ */ jsx26(
|
|
7751
|
-
Text_default,
|
|
7752
|
-
{
|
|
7753
|
-
as: titleAs,
|
|
7754
|
-
fontWeight: 700,
|
|
7755
|
-
lineHeight: "20px",
|
|
7756
|
-
color: titleColor ?? theme2.colors.textPrimary,
|
|
7757
|
-
children: title
|
|
7758
|
-
}
|
|
7759
|
-
),
|
|
7760
|
-
titleRightElement
|
|
7761
|
-
] }),
|
|
7762
|
-
description && /* @__PURE__ */ jsx26(Text_default, { color: descriptionColor ?? theme2.colors.textSecondary, children: description })
|
|
7763
|
-
] })
|
|
7764
|
-
] }),
|
|
7765
|
-
rightElement,
|
|
7766
|
-
/* @__PURE__ */ jsx26(
|
|
7767
|
-
Icon_default,
|
|
7756
|
+
arrowPosition === "left" && arrow,
|
|
7757
|
+
/* @__PURE__ */ jsx26(Div_default, { flex: 1, children: /* @__PURE__ */ jsx26(
|
|
7758
|
+
PageHeader_default,
|
|
7768
7759
|
{
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7760
|
+
icon,
|
|
7761
|
+
iconColor,
|
|
7762
|
+
iconSize,
|
|
7763
|
+
image,
|
|
7764
|
+
imageUrl,
|
|
7765
|
+
imageSize,
|
|
7766
|
+
imageAzProfileImage,
|
|
7767
|
+
title,
|
|
7768
|
+
titleAs,
|
|
7769
|
+
titleFontSize,
|
|
7770
|
+
titleColor,
|
|
7771
|
+
titleRightElement,
|
|
7772
|
+
description,
|
|
7773
|
+
descriptionFontSize,
|
|
7774
|
+
descriptionColor,
|
|
7775
|
+
textAlign,
|
|
7776
|
+
rightElement,
|
|
7777
|
+
lightMode,
|
|
7778
|
+
marginBottom: 0
|
|
7772
7779
|
}
|
|
7773
|
-
)
|
|
7780
|
+
) }),
|
|
7781
|
+
rightElement,
|
|
7782
|
+
arrowPosition === "right" && arrow
|
|
7774
7783
|
]
|
|
7775
7784
|
}
|
|
7776
7785
|
),
|