dhre-ui-kit 0.0.326 → 0.0.327
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/lib/index.d.ts +1 -0
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -1977,7 +1977,8 @@ const Accordion = ({
|
|
|
1977
1977
|
headerComponent,
|
|
1978
1978
|
disabled = false,
|
|
1979
1979
|
icon,
|
|
1980
|
-
titleVariant = "B4_REGULAR"
|
|
1980
|
+
titleVariant = "B4_REGULAR",
|
|
1981
|
+
slideAnimation = true
|
|
1981
1982
|
}) => {
|
|
1982
1983
|
const contentRef = useRef(null);
|
|
1983
1984
|
const [animation] = useState(new Animated.Value(0));
|
|
@@ -2036,7 +2037,7 @@ const Accordion = ({
|
|
|
2036
2037
|
}) : null
|
|
2037
2038
|
),
|
|
2038
2039
|
optionalElement ? optionalElement() : null,
|
|
2039
|
-
isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.content, { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
|
|
2040
|
+
isOpen && /* @__PURE__ */ React.createElement(Animated.View, { style: [styles$m.content, slideAnimation && { height: cardHeight }] }, /* @__PURE__ */ React.createElement(
|
|
2040
2041
|
View,
|
|
2041
2042
|
{
|
|
2042
2043
|
ref: contentRef,
|