dhre-ui-kit 0.0.253 → 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 +3 -10
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +3 -10
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface CustomTextProps extends TextProps {
|
|
|
18
18
|
style?: StyleProp<TextStyle>;
|
|
19
19
|
textColor?: string;
|
|
20
20
|
}
|
|
21
|
-
declare const _default$
|
|
21
|
+
declare const _default$k: (props: CustomTextProps) => React$1.JSX.Element;
|
|
22
22
|
|
|
23
23
|
interface BadgeProps {
|
|
24
24
|
text?: string;
|
|
@@ -28,7 +28,7 @@ interface BadgeProps {
|
|
|
28
28
|
iconStyle?: ViewStyle;
|
|
29
29
|
handleIconPress: () => void;
|
|
30
30
|
}
|
|
31
|
-
declare const _default$
|
|
31
|
+
declare const _default$j: (props: BadgeProps) => React$1.JSX.Element;
|
|
32
32
|
|
|
33
33
|
interface BottomDrawerProps {
|
|
34
34
|
isModalVisible: boolean;
|
|
@@ -74,7 +74,7 @@ interface CustomButtonProps {
|
|
|
74
74
|
isLoading?: boolean;
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
declare const _default$
|
|
77
|
+
declare const _default$i: (props: CustomButtonProps) => React$1.JSX.Element;
|
|
78
78
|
|
|
79
79
|
interface CardsProps {
|
|
80
80
|
topLeftTitle?: string;
|
|
@@ -327,7 +327,7 @@ interface Props {
|
|
|
327
327
|
onSelectionChange?: (selected: string[]) => void;
|
|
328
328
|
style?: ViewStyle;
|
|
329
329
|
}
|
|
330
|
-
declare const _default$
|
|
330
|
+
declare const _default$h: (props: Props) => React$1.JSX.Element;
|
|
331
331
|
|
|
332
332
|
interface TagsProps {
|
|
333
333
|
tags: string[];
|
|
@@ -366,7 +366,7 @@ interface AccordionProps {
|
|
|
366
366
|
titleVariant?: string;
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
-
declare const _default$
|
|
369
|
+
declare const _default$g: (props: AccordionProps) => React$1.JSX.Element;
|
|
370
370
|
|
|
371
371
|
interface ToastProps {
|
|
372
372
|
sucessIcon: React$1.ReactElement;
|
|
@@ -421,7 +421,7 @@ interface CustomHeaderProps {
|
|
|
421
421
|
onRightPress?: () => void;
|
|
422
422
|
}
|
|
423
423
|
|
|
424
|
-
declare const _default$
|
|
424
|
+
declare const _default$f: (props: CustomHeaderProps) => React$1.JSX.Element;
|
|
425
425
|
|
|
426
426
|
interface ListItem {
|
|
427
427
|
id: string;
|
|
@@ -464,7 +464,7 @@ interface SwipableListProps {
|
|
|
464
464
|
titleStyle?: TextStyle;
|
|
465
465
|
}
|
|
466
466
|
|
|
467
|
-
declare const _default$
|
|
467
|
+
declare const _default$e: (props: SwipableListProps) => React$1.JSX.Element;
|
|
468
468
|
|
|
469
469
|
interface TypoTextProps extends TextProps {
|
|
470
470
|
variant: keyof typeof FONT_STYLES;
|
|
@@ -490,9 +490,9 @@ interface CustomLoaderProps {
|
|
|
490
490
|
loadingText?: string;
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
-
declare const _default$
|
|
493
|
+
declare const _default$d: (props: CustomLoaderProps) => React$1.JSX.Element;
|
|
494
494
|
|
|
495
|
-
declare const _default$
|
|
495
|
+
declare const _default$c: (props: {
|
|
496
496
|
backgroundColor?: string;
|
|
497
497
|
style?: ViewStyle;
|
|
498
498
|
}) => React$1.JSX.Element;
|
|
@@ -507,7 +507,7 @@ interface OurOfficesButtonProps$1 {
|
|
|
507
507
|
time?: string;
|
|
508
508
|
subTitleStyle?: TextStyle;
|
|
509
509
|
}
|
|
510
|
-
declare const _default$
|
|
510
|
+
declare const _default$b: (props: OurOfficesButtonProps$1) => React$1.JSX.Element;
|
|
511
511
|
|
|
512
512
|
interface ContactModalProps {
|
|
513
513
|
phoneNumber: string;
|
|
@@ -517,14 +517,14 @@ interface ContactModalProps {
|
|
|
517
517
|
data: string;
|
|
518
518
|
emailSubject: string;
|
|
519
519
|
}
|
|
520
|
-
declare const _default$
|
|
520
|
+
declare const _default$a: (props: ContactModalProps) => React$1.JSX.Element;
|
|
521
521
|
|
|
522
522
|
interface DateRangePickerProps extends CalendarProps {
|
|
523
523
|
onButtonPress: (startDate: string, endDate: string) => void;
|
|
524
524
|
btnTitle?: string;
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
declare const _default$
|
|
527
|
+
declare const _default$9: (props: DateRangePickerProps) => React$1.JSX.Element;
|
|
528
528
|
|
|
529
529
|
interface OurOfficesButtonProps {
|
|
530
530
|
leftIcon?: ReactElement<SvgProps>;
|
|
@@ -538,7 +538,7 @@ interface OurOfficesButtonProps {
|
|
|
538
538
|
titleColor?: string;
|
|
539
539
|
descriptionColor?: string;
|
|
540
540
|
}
|
|
541
|
-
declare const _default$
|
|
541
|
+
declare const _default$8: (props: OurOfficesButtonProps) => React$1.JSX.Element;
|
|
542
542
|
|
|
543
543
|
interface NotificationBandgeProps {
|
|
544
544
|
notificationCount?: number;
|
|
@@ -564,9 +564,9 @@ interface ScrollableListProps {
|
|
|
564
564
|
activeTab?: string;
|
|
565
565
|
errorStyle?: object;
|
|
566
566
|
}
|
|
567
|
-
declare const _default$
|
|
567
|
+
declare const _default$7: (props: ScrollableListProps) => React$1.JSX.Element;
|
|
568
568
|
|
|
569
|
-
declare const _default$
|
|
569
|
+
declare const _default$6: (props: {
|
|
570
570
|
title: string;
|
|
571
571
|
feedback: string;
|
|
572
572
|
inputText: string;
|
|
@@ -681,7 +681,7 @@ interface TagsComponentProps {
|
|
|
681
681
|
selectedTagButton?: ViewStyle;
|
|
682
682
|
unselectedTagButton?: ViewStyle;
|
|
683
683
|
}
|
|
684
|
-
declare const _default$
|
|
684
|
+
declare const _default$5: (props: TagsComponentProps) => React$1.JSX.Element;
|
|
685
685
|
|
|
686
686
|
interface CustomDocumentPickerProps {
|
|
687
687
|
onDocumentUpload: (base64: string, document?: DocumentPickerResponse) => void;
|
|
@@ -697,7 +697,7 @@ interface CustomDocumentPickerProps {
|
|
|
697
697
|
deleteIcon: React$1.ReactElement;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
|
-
declare const _default$
|
|
700
|
+
declare const _default$4: (props: CustomDocumentPickerProps) => React$1.JSX.Element;
|
|
701
701
|
|
|
702
702
|
interface IProps$1 {
|
|
703
703
|
length?: number;
|
|
@@ -723,7 +723,7 @@ type OTPInputHandle = {
|
|
|
723
723
|
set?: (newOtp: string) => void;
|
|
724
724
|
};
|
|
725
725
|
|
|
726
|
-
declare const
|
|
726
|
+
declare const OTPInput: React$1.ForwardRefExoticComponent<IProps$1 & React$1.RefAttributes<OTPInputHandle>>;
|
|
727
727
|
|
|
728
728
|
type StatusType = 'Active' | 'Inactive' | 'Completed' | 'Rejected' | 'Count';
|
|
729
729
|
interface IData {
|
|
@@ -1128,4 +1128,4 @@ interface RadioButtonGroupProps {
|
|
|
1128
1128
|
|
|
1129
1129
|
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
|
1130
1130
|
|
|
1131
|
-
export { _default$
|
|
1131
|
+
export { _default$g as Accordion, _default$1 as AppointmentCard, _default$j as Badge, BottomDrawer, _default$i as Button, Cards, _default$7 as Category, Checkbox as CheckBox, _default$a as ContactModel, CountryDropDown as CountryPicker, _default$4 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, _default$f as CustomHeader, type CustomHeaderProps, CustomIcon, _default$d as CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$k as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, _default$9 as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, _default$6 as FeedbackForm, FileUpload, FontStyle, _default$c as Line, NotificationBandge, OTPInput, _default$8 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, RadioButtonGroup, ShapeType, _default$5 as SingleSelectionTags, type SlideButtonHandle, Star as StarRating, _default$3 as Stepper, _default$e as SwipableList, _default$h as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, type ToastRef, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, _default$b as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
package/lib/index.js
CHANGED
|
@@ -4011,14 +4011,8 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4011
4011
|
const [activeInput, setActiveInput] = React.useState(null);
|
|
4012
4012
|
const [resendOTPCount, setResendOTPCount] = React.useState(0);
|
|
4013
4013
|
const [errorMessageMaxReachCount, setErrorMessageMaxReachCount] = React.useState("");
|
|
4014
|
-
const filteredTheme =
|
|
4015
|
-
|
|
4016
|
-
acc[key] = theme[key][mode];
|
|
4017
|
-
return acc;
|
|
4018
|
-
},
|
|
4019
|
-
{}
|
|
4020
|
-
);
|
|
4021
|
-
const { theme: theme$1 } = mode ? { theme: filteredTheme } : useTheme();
|
|
4014
|
+
const filteredTheme = mode ? theme[mode] : theme;
|
|
4015
|
+
const { theme: theme$1 } = useTheme() || { theme: filteredTheme };
|
|
4022
4016
|
const [timeLeft, setTimeLeft] = React.useState(60);
|
|
4023
4017
|
React.useEffect(() => {
|
|
4024
4018
|
let timer;
|
|
@@ -4200,7 +4194,6 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4200
4194
|
)) : null);
|
|
4201
4195
|
}
|
|
4202
4196
|
);
|
|
4203
|
-
var index$4 = withThemeProvider(OTPInput);
|
|
4204
4197
|
OTPInput.displayName = "OTPInput";
|
|
4205
4198
|
|
|
4206
4199
|
const styles$4 = reactNative.StyleSheet.create({
|
|
@@ -4978,7 +4971,7 @@ exports.FileUpload = FileUpload;
|
|
|
4978
4971
|
exports.FontStyle = FontStyle;
|
|
4979
4972
|
exports.Line = Line;
|
|
4980
4973
|
exports.NotificationBandge = NotificationBandge;
|
|
4981
|
-
exports.OTPInput =
|
|
4974
|
+
exports.OTPInput = OTPInput;
|
|
4982
4975
|
exports.OurOfficesButton = OurOffices;
|
|
4983
4976
|
exports.PdfView = PdfView;
|
|
4984
4977
|
exports.PopUp = PopUp;
|