dhre-ui-kit 0.0.326 → 0.0.328

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;
@@ -717,6 +718,7 @@ declare const _default$4: (props: CustomDocumentPickerProps) => React$1.JSX.Elem
717
718
  interface IProps$1 {
718
719
  length?: number;
719
720
  onComplete?: (otp?: string) => void;
721
+ onChangeCallback?: (otp?: string) => void;
720
722
  errorMessage?: string;
721
723
  testId?: string;
722
724
  otpContainerStyle?: ViewStyle;
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,
@@ -4078,6 +4079,7 @@ const OTPInput = React__default["default"].forwardRef(
4078
4079
  ({
4079
4080
  length = 4,
4080
4081
  onComplete,
4082
+ onChangeCallback,
4081
4083
  resendOTP,
4082
4084
  errorMessage,
4083
4085
  testId = "",
@@ -4212,6 +4214,8 @@ const OTPInput = React__default["default"].forwardRef(
4212
4214
  React.useEffect(() => {
4213
4215
  if (otp.length === length) {
4214
4216
  onComplete?.(otp);
4217
+ } else {
4218
+ onChangeCallback && onChangeCallback?.(otp);
4215
4219
  }
4216
4220
  }, [otp]);
4217
4221
  return /* @__PURE__ */ React__default["default"].createElement(ThemeProvider, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React__default["default"].createElement(