dhre-ui-kit 0.0.254 → 0.0.255
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 +19 -19
- package/lib/index.js +6 -15
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -15
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3975,14 +3975,8 @@ const OTPInput = React.forwardRef(
|
|
|
3975
3975
|
const [activeInput, setActiveInput] = useState(null);
|
|
3976
3976
|
const [resendOTPCount, setResendOTPCount] = useState(0);
|
|
3977
3977
|
const [errorMessageMaxReachCount, setErrorMessageMaxReachCount] = useState("");
|
|
3978
|
-
const filteredTheme =
|
|
3979
|
-
|
|
3980
|
-
acc[key] = theme[key][mode];
|
|
3981
|
-
return acc;
|
|
3982
|
-
},
|
|
3983
|
-
{}
|
|
3984
|
-
);
|
|
3985
|
-
const { theme: theme$1 } = mode ? { theme: filteredTheme } : useTheme();
|
|
3978
|
+
const filteredTheme = mode ? theme[mode] : theme;
|
|
3979
|
+
const { theme: theme$1 } = useTheme() || { theme: filteredTheme };
|
|
3986
3980
|
const [timeLeft, setTimeLeft] = useState(60);
|
|
3987
3981
|
useEffect(() => {
|
|
3988
3982
|
let timer;
|
|
@@ -4048,11 +4042,9 @@ const OTPInput = React.forwardRef(
|
|
|
4048
4042
|
setOTP("");
|
|
4049
4043
|
otpRefs.current[0]?.focus();
|
|
4050
4044
|
};
|
|
4051
|
-
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
}));
|
|
4055
|
-
}, []);
|
|
4045
|
+
React.useImperativeHandle(ref, () => ({
|
|
4046
|
+
reset
|
|
4047
|
+
}));
|
|
4056
4048
|
const handleChange = (index, value) => {
|
|
4057
4049
|
const regex = /^\d+$/;
|
|
4058
4050
|
if (value.length === 1 && regex.test(value) && index >= 0 && index < length) {
|
|
@@ -4166,7 +4158,6 @@ const OTPInput = React.forwardRef(
|
|
|
4166
4158
|
)) : null);
|
|
4167
4159
|
}
|
|
4168
4160
|
);
|
|
4169
|
-
var index$4 = withThemeProvider(OTPInput);
|
|
4170
4161
|
OTPInput.displayName = "OTPInput";
|
|
4171
4162
|
|
|
4172
4163
|
const styles$4 = StyleSheet.create({
|
|
@@ -4907,5 +4898,5 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
4907
4898
|
)));
|
|
4908
4899
|
};
|
|
4909
4900
|
|
|
4910
|
-
export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader$1 as CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge,
|
|
4901
|
+
export { Accordion$1 as Accordion, index$1 as AppointmentCard, Badge$1 as Badge, BottomDrawer, CustomButton$1 as Button, Cards, category as Category, Checkbox as CheckBox, ContactModel, CountryDropDown as CountryPicker, CustomDocumentPicker$1 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader$1 as CustomHeader, CustomIcon, CustomLoader$1 as CustomLoader, CustomProgressBar, CustomSearchBar, index$2 as CustomSlideButton, CustomSwitchBtn, CustomText$1 as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker$1 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, feedback as FeedbackForm, FileUpload, FontStyle, Line, NotificationBandge, OTPInput, OurOffices as OurOfficesButton, PdfView, PopUp, index as PropertyDetails, RadioButtonGroup, ShapeType, TagSingleSelection as SingleSelectionTags, Star as StarRating, index$3 as Stepper, SwipableList$1 as SwipableList, Tabs$1 as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic$1 as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
|
4911
4902
|
//# sourceMappingURL=index.mjs.map
|