dhre-ui-kit 0.0.128 → 0.0.130
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 +10 -8
- package/lib/index.js +28 -12
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +28 -12
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ interface CustomTextProps extends TextProps {
|
|
|
17
17
|
style?: StyleProp<TextStyle>;
|
|
18
18
|
textColor?: string;
|
|
19
19
|
}
|
|
20
|
-
declare const _default$
|
|
20
|
+
declare const _default$d: (props: CustomTextProps) => React$1.JSX.Element;
|
|
21
21
|
|
|
22
22
|
interface BadgeProps {
|
|
23
23
|
text?: string;
|
|
@@ -27,7 +27,7 @@ interface BadgeProps {
|
|
|
27
27
|
iconStyle?: ViewStyle;
|
|
28
28
|
handleIconPress: () => void;
|
|
29
29
|
}
|
|
30
|
-
declare const _default$
|
|
30
|
+
declare const _default$c: (props: BadgeProps) => React$1.JSX.Element;
|
|
31
31
|
|
|
32
32
|
interface BottomDrawerProps {
|
|
33
33
|
isModalVisible: boolean;
|
|
@@ -70,7 +70,7 @@ interface CustomButtonProps {
|
|
|
70
70
|
disableButtonTitleColor?: string;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
declare const _default$
|
|
73
|
+
declare const _default$b: (props: CustomButtonProps) => React$1.JSX.Element;
|
|
74
74
|
|
|
75
75
|
interface CardsProps {
|
|
76
76
|
topLeftTitle?: string;
|
|
@@ -317,7 +317,7 @@ interface Props {
|
|
|
317
317
|
onSelectionChange?: (selected: string[]) => void;
|
|
318
318
|
style?: ViewStyle;
|
|
319
319
|
}
|
|
320
|
-
declare const _default$
|
|
320
|
+
declare const _default$a: (props: Props) => React$1.JSX.Element;
|
|
321
321
|
|
|
322
322
|
interface TagsProps {
|
|
323
323
|
tags: string[];
|
|
@@ -479,18 +479,20 @@ interface CustomLoaderProps {
|
|
|
479
479
|
|
|
480
480
|
declare const CustomLoader: ({ loading }: CustomLoaderProps) => React$1.JSX.Element | null;
|
|
481
481
|
|
|
482
|
-
declare const _default$
|
|
482
|
+
declare const _default$9: (props: {
|
|
483
483
|
style?: ViewStyle;
|
|
484
484
|
}) => React$1.JSX.Element;
|
|
485
485
|
|
|
486
486
|
interface OurOfficesButtonProps$1 {
|
|
487
487
|
rightIcon?: ReactElement<SvgProps>;
|
|
488
488
|
onPress: () => void;
|
|
489
|
+
statusImage?: ReactElement<SvgProps>;
|
|
489
490
|
title: string;
|
|
490
491
|
subTitle?: string;
|
|
491
492
|
containterStyle?: ViewStyle;
|
|
493
|
+
time?: string;
|
|
492
494
|
}
|
|
493
|
-
declare const
|
|
495
|
+
declare const Topic: ({ rightIcon, statusImage, time, onPress, title, subTitle, containterStyle, }: OurOfficesButtonProps$1) => React$1.JSX.Element;
|
|
494
496
|
|
|
495
497
|
interface ContactModalProps {
|
|
496
498
|
phoneNumber: string;
|
|
@@ -1025,7 +1027,7 @@ interface AppointmentCardProps {
|
|
|
1025
1027
|
title: string;
|
|
1026
1028
|
headerTitle: string;
|
|
1027
1029
|
headerSubtitle: string;
|
|
1028
|
-
appointmentId:
|
|
1030
|
+
appointmentId: number;
|
|
1029
1031
|
requestId: string;
|
|
1030
1032
|
location: string;
|
|
1031
1033
|
onPress: () => void;
|
|
@@ -1047,4 +1049,4 @@ interface PropertyDetailsProps {
|
|
|
1047
1049
|
|
|
1048
1050
|
declare const _default: (props: PropertyDetailsProps) => React$1.JSX.Element;
|
|
1049
1051
|
|
|
1050
|
-
export { Accordion, _default$1 as AppointmentCard, _default$
|
|
1052
|
+
export { Accordion, _default$1 as AppointmentCard, _default$c as Badge, BottomDrawer, _default$b as Button, Cards, _default$6 as Category, Checkbox as CheckBox, _default$8 as ContactModel, CountryDropDown as CountryPicker, _default$5 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, CustomHeader, type CustomHeaderProps, CustomIcon, CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$d as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, FeedbackForm, FileUpload, FontStyle, _default$9 as Line, NotificationBandge, _default$4 as OTPInput, _default$7 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, ShapeType, TagsComponent as SingleSelectionTags, Star as StarRating, _default$3 as Stepper, SwipableList, _default$a as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, type ToastRef, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
package/lib/index.js
CHANGED
|
@@ -2451,6 +2451,8 @@ var Line = withThemeProvider(HorizontalLine);
|
|
|
2451
2451
|
|
|
2452
2452
|
const Topic = ({
|
|
2453
2453
|
rightIcon,
|
|
2454
|
+
statusImage,
|
|
2455
|
+
time,
|
|
2454
2456
|
onPress,
|
|
2455
2457
|
title,
|
|
2456
2458
|
subTitle,
|
|
@@ -2462,25 +2464,27 @@ const Topic = ({
|
|
|
2462
2464
|
{
|
|
2463
2465
|
style: [
|
|
2464
2466
|
styles$h.button,
|
|
2465
|
-
{ backgroundColor: theme[
|
|
2467
|
+
{ backgroundColor: theme[Theme.SURFACE_SECONDARY] },
|
|
2466
2468
|
containterStyle
|
|
2467
2469
|
],
|
|
2468
2470
|
onPress
|
|
2469
2471
|
},
|
|
2470
2472
|
rightIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.rightIconContainer }, React__default["default"].cloneElement(rightIcon)),
|
|
2471
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.
|
|
2473
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.timeContainer }, time && /* @__PURE__ */ React__default["default"].createElement(CustomText$1, { text: time, variant: FontStyle.L2_REGULAR })),
|
|
2474
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.textContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$h.paymentView }, statusImage && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, null, React__default["default"].cloneElement(statusImage)), subTitle && /* @__PURE__ */ React__default["default"].createElement(
|
|
2472
2475
|
CustomText$1,
|
|
2473
2476
|
{
|
|
2477
|
+
style: styles$h.subTitle,
|
|
2474
2478
|
text: subTitle,
|
|
2475
|
-
variant:
|
|
2476
|
-
textColor:
|
|
2479
|
+
variant: FontStyle.L2_REGULAR,
|
|
2480
|
+
textColor: Theme.CONTENT_PRIMARY
|
|
2477
2481
|
}
|
|
2478
|
-
), /* @__PURE__ */ React__default["default"].createElement(
|
|
2482
|
+
)), /* @__PURE__ */ React__default["default"].createElement(
|
|
2479
2483
|
CustomText$1,
|
|
2480
2484
|
{
|
|
2481
2485
|
text: title,
|
|
2482
|
-
variant:
|
|
2483
|
-
textColor:
|
|
2486
|
+
variant: FontStyle.B3_REGULAR,
|
|
2487
|
+
textColor: Theme.CONTENT_PRIMARY
|
|
2484
2488
|
}
|
|
2485
2489
|
))
|
|
2486
2490
|
);
|
|
@@ -2493,7 +2497,8 @@ const styles$h = reactNative.StyleSheet.create({
|
|
|
2493
2497
|
width: 158,
|
|
2494
2498
|
borderRadius: 10,
|
|
2495
2499
|
marginLeft: 12,
|
|
2496
|
-
marginVertical: 14
|
|
2500
|
+
marginVertical: 14,
|
|
2501
|
+
position: "relative"
|
|
2497
2502
|
},
|
|
2498
2503
|
iconContainer: {
|
|
2499
2504
|
marginHorizontal: 16
|
|
@@ -2506,16 +2511,27 @@ const styles$h = reactNative.StyleSheet.create({
|
|
|
2506
2511
|
marginHorizontal: 8,
|
|
2507
2512
|
marginTop: 20
|
|
2508
2513
|
},
|
|
2514
|
+
timeContainer: {
|
|
2515
|
+
position: "absolute",
|
|
2516
|
+
right: 16,
|
|
2517
|
+
top: 16
|
|
2518
|
+
},
|
|
2509
2519
|
titleText: {
|
|
2510
2520
|
marginBottom: 4
|
|
2511
2521
|
},
|
|
2512
2522
|
rightIconContainer: {
|
|
2513
2523
|
position: "absolute",
|
|
2514
|
-
left:
|
|
2524
|
+
left: 10,
|
|
2515
2525
|
top: 10
|
|
2526
|
+
},
|
|
2527
|
+
subTitle: {
|
|
2528
|
+
marginLeft: 8
|
|
2529
|
+
},
|
|
2530
|
+
paymentView: {
|
|
2531
|
+
flexDirection: "row",
|
|
2532
|
+
alignItems: "center"
|
|
2516
2533
|
}
|
|
2517
2534
|
});
|
|
2518
|
-
var Topic$1 = withThemeProvider(Topic);
|
|
2519
2535
|
|
|
2520
2536
|
const ContactModal = ({
|
|
2521
2537
|
phoneNumber,
|
|
@@ -4228,7 +4244,7 @@ const AppointmentCard = ({
|
|
|
4228
4244
|
), /* @__PURE__ */ React__default["default"].createElement(
|
|
4229
4245
|
CustomTypography,
|
|
4230
4246
|
{
|
|
4231
|
-
text: appointmentId,
|
|
4247
|
+
text: appointmentId?.toString(),
|
|
4232
4248
|
variant: FontStyle.L1_REGULAR,
|
|
4233
4249
|
style: { color: theme.CONTENT_PRIMARY }
|
|
4234
4250
|
}
|
|
@@ -4421,7 +4437,7 @@ exports.Toast = Toast;
|
|
|
4421
4437
|
exports.ToggleButton = CustomSwitch;
|
|
4422
4438
|
exports.ToggleButtonType = ToggleButtonType;
|
|
4423
4439
|
exports.ToggleTextType = ToggleTextType;
|
|
4424
|
-
exports.Topic = Topic
|
|
4440
|
+
exports.Topic = Topic;
|
|
4425
4441
|
exports.copyToClipboard = copyToClipboard;
|
|
4426
4442
|
exports["default"] = theme;
|
|
4427
4443
|
exports.height = height;
|