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 +2 -0
- package/lib/index.js +6 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -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,
|
|
@@ -4041,6 +4042,7 @@ const OTPInput = React.forwardRef(
|
|
|
4041
4042
|
({
|
|
4042
4043
|
length = 4,
|
|
4043
4044
|
onComplete,
|
|
4045
|
+
onChangeCallback,
|
|
4044
4046
|
resendOTP,
|
|
4045
4047
|
errorMessage,
|
|
4046
4048
|
testId = "",
|
|
@@ -4175,6 +4177,8 @@ const OTPInput = React.forwardRef(
|
|
|
4175
4177
|
useEffect(() => {
|
|
4176
4178
|
if (otp.length === length) {
|
|
4177
4179
|
onComplete?.(otp);
|
|
4180
|
+
} else {
|
|
4181
|
+
onChangeCallback && onChangeCallback?.(otp);
|
|
4178
4182
|
}
|
|
4179
4183
|
}, [otp]);
|
|
4180
4184
|
return /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React.createElement(
|