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 CHANGED
@@ -370,6 +370,7 @@ interface AccordionProps {
370
370
  disabled?: boolean;
371
371
  icon?: React$1.ReactElement;
372
372
  titleVariant?: string;
373
+ slideAnimation?: boolean;
373
374
  }
374
375
 
375
376
  declare const _default$g: (props: AccordionProps) => React$1.JSX.Element;
package/lib/index.js CHANGED
@@ -2014,7 +2014,8 @@ const Accordion = ({
2014
2014
  headerComponent,
2015
2015
  disabled = false,
2016
2016
  icon,
2017
- titleVariant = "B4_REGULAR"
2017
+ titleVariant = "B4_REGULAR",
2018
+ slideAnimation = true
2018
2019
  }) => {
2019
2020
  const contentRef = React.useRef(null);
2020
2021
  const [animation] = React.useState(new reactNative.Animated.Value(0));
@@ -2073,7 +2074,7 @@ const Accordion = ({
2073
2074
  }) : null
2074
2075
  ),
2075
2076
  optionalElement ? optionalElement() : null,
2076
- isOpen && /* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.View, { style: [styles$m.content, { height: cardHeight }] }, /* @__PURE__ */ React__default["default"].createElement(
2077
+ isOpen && /* @__PURE__ */ React__default["default"].createElement(reactNative.Animated.View, { style: [styles$m.content, slideAnimation && { height: cardHeight }] }, /* @__PURE__ */ React__default["default"].createElement(
2077
2078
  reactNative.View,
2078
2079
  {
2079
2080
  ref: contentRef,