dhre-ui-kit 0.0.223 → 0.0.225
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 -9
- package/lib/index.js +6 -4
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -4
- 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$l: (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$k: (props: BadgeProps) => React$1.JSX.Element;
|
|
32
32
|
|
|
33
33
|
interface BottomDrawerProps {
|
|
34
34
|
isModalVisible: boolean;
|
|
@@ -73,7 +73,7 @@ interface CustomButtonProps {
|
|
|
73
73
|
isLoading?: boolean;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
declare const _default$
|
|
76
|
+
declare const _default$j: (props: CustomButtonProps) => React$1.JSX.Element;
|
|
77
77
|
|
|
78
78
|
interface CardsProps {
|
|
79
79
|
topLeftTitle?: string;
|
|
@@ -325,7 +325,7 @@ interface Props {
|
|
|
325
325
|
onSelectionChange?: (selected: string[]) => void;
|
|
326
326
|
style?: ViewStyle;
|
|
327
327
|
}
|
|
328
|
-
declare const _default$
|
|
328
|
+
declare const _default$i: (props: Props) => React$1.JSX.Element;
|
|
329
329
|
|
|
330
330
|
interface TagsProps {
|
|
331
331
|
tags: string[];
|
|
@@ -364,7 +364,7 @@ interface AccordionProps {
|
|
|
364
364
|
titleVariant?: string;
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
declare const _default$
|
|
367
|
+
declare const _default$h: (props: AccordionProps) => React$1.JSX.Element;
|
|
368
368
|
|
|
369
369
|
interface ToastProps {
|
|
370
370
|
sucessIcon: React$1.ReactElement;
|
|
@@ -419,7 +419,7 @@ interface CustomHeaderProps {
|
|
|
419
419
|
onRightPress?: () => void;
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
declare const _default$
|
|
422
|
+
declare const _default$g: (props: CustomHeaderProps) => React$1.JSX.Element;
|
|
423
423
|
|
|
424
424
|
interface ListItem {
|
|
425
425
|
id: string;
|
|
@@ -462,7 +462,7 @@ interface SwipableListProps {
|
|
|
462
462
|
titleStyle?: TextStyle;
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
declare const _default$
|
|
465
|
+
declare const _default$f: (props: SwipableListProps) => React$1.JSX.Element;
|
|
466
466
|
|
|
467
467
|
interface TypoTextProps extends TextProps {
|
|
468
468
|
variant: keyof typeof FONT_STYLES;
|
|
@@ -487,7 +487,7 @@ interface CustomLoaderProps {
|
|
|
487
487
|
loading: boolean;
|
|
488
488
|
}
|
|
489
489
|
|
|
490
|
-
declare const
|
|
490
|
+
declare const _default$e: (props: CustomLoaderProps) => React$1.JSX.Element;
|
|
491
491
|
|
|
492
492
|
declare const _default$d: (props: {
|
|
493
493
|
backgroundColor?: string;
|
|
@@ -558,6 +558,7 @@ interface ScrollableListProps {
|
|
|
558
558
|
selectedItemTextColor?: string;
|
|
559
559
|
defaultItemTextColor?: string;
|
|
560
560
|
activeTab?: string;
|
|
561
|
+
errorStyle?: object;
|
|
561
562
|
}
|
|
562
563
|
declare const _default$8: (props: ScrollableListProps) => React$1.JSX.Element;
|
|
563
564
|
|
|
@@ -1116,4 +1117,4 @@ interface RadioButtonGroupProps {
|
|
|
1116
1117
|
|
|
1117
1118
|
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
|
1118
1119
|
|
|
1119
|
-
export { _default$
|
|
1120
|
+
export { _default$h as Accordion, _default$1 as AppointmentCard, _default$k as Badge, BottomDrawer, _default$j as Button, Cards, _default$8 as Category, Checkbox as CheckBox, _default$b as ContactModel, CountryDropDown as CountryPicker, _default$5 as CustomDocumentPicker, CustomDropdown$1 as CustomDropdown, _default$g as CustomHeader, type CustomHeaderProps, CustomIcon, _default$e as CustomLoader, CustomProgressBar, CustomSearchBar, _default$2 as CustomSlideButton, CustomSwitchBtn, _default$l as CustomText, CustomTextInput, CustomTooltip, CustomTypography, DHRE_COLORS_ALERT, DHRE_COLORS_BG, DHRE_COLORS_PRIMARY, DHRE_COLORS_SECONDARY, DHRE_COLORS_TEXT, DHRE_DEFAULT, _default$a as DateRangePicker, CustomDropdown as DropDown, FONT_STYLES, _default$7 as FeedbackForm, FileUpload, FontStyle, _default$d as Line, NotificationBandge, _default$4 as OTPInput, _default$9 as OurOfficesButton, PdfView, PopUp, _default as PropertyDetails, RadioButtonGroup, ShapeType, _default$6 as SingleSelectionTags, type SlideButtonHandle, Star as StarRating, _default$3 as Stepper, _default$f as SwipableList, _default$i as Tabs, Tags, TextDirectType, CommonTextInput as TextInput, Theme, Toast, type ToastRef, CustomSwitch as ToggleButton, ToggleButtonType, ToggleTextType, _default$c as Topic, copyToClipboard, theme as default, height, horizontalScale, moderateScale, toastService, verticalScale, width };
|
package/lib/index.js
CHANGED
|
@@ -839,6 +839,7 @@ const CustomLoader = ({ loading }) => {
|
|
|
839
839
|
}
|
|
840
840
|
))));
|
|
841
841
|
};
|
|
842
|
+
var CustomLoader$1 = withThemeProvider(CustomLoader);
|
|
842
843
|
|
|
843
844
|
const CustomButton = ({
|
|
844
845
|
title,
|
|
@@ -876,7 +877,7 @@ const CustomButton = ({
|
|
|
876
877
|
disabled
|
|
877
878
|
},
|
|
878
879
|
imagePosition === "left" && leftIcon && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: iconStyle }, React__default["default"].cloneElement(leftIcon, { width: 20, height: 20 })),
|
|
879
|
-
isLoading ? /* @__PURE__ */ React__default["default"].createElement(CustomLoader, { loading: isLoading }) : /* @__PURE__ */ React__default["default"].createElement(
|
|
880
|
+
isLoading ? /* @__PURE__ */ React__default["default"].createElement(CustomLoader$1, { loading: isLoading }) : /* @__PURE__ */ React__default["default"].createElement(
|
|
880
881
|
CustomText$1,
|
|
881
882
|
{
|
|
882
883
|
text: title,
|
|
@@ -3089,7 +3090,8 @@ const ScrollableList = ({
|
|
|
3089
3090
|
selectedItemStyle,
|
|
3090
3091
|
selectedItemTextColor = "CONTENT_PRIMARY",
|
|
3091
3092
|
defaultItemTextColor = "CONTENT_SECONDRY",
|
|
3092
|
-
activeTab
|
|
3093
|
+
activeTab,
|
|
3094
|
+
errorStyle
|
|
3093
3095
|
}) => {
|
|
3094
3096
|
const [selectedItem, setSelectedItem] = React.useState(
|
|
3095
3097
|
data && data.length > 0 ? data[0].name : null
|
|
@@ -3131,7 +3133,7 @@ const ScrollableList = ({
|
|
|
3131
3133
|
textColor: (activeTab ?? selectedItem) === item.name ? selectedItemTextColor : defaultItemTextColor
|
|
3132
3134
|
}
|
|
3133
3135
|
),
|
|
3134
|
-
item?.isError && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle] })
|
|
3136
|
+
item?.isError && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.errorViewStyle, errorStyle] })
|
|
3135
3137
|
))
|
|
3136
3138
|
));
|
|
3137
3139
|
};
|
|
@@ -4886,7 +4888,7 @@ exports.CustomDocumentPicker = CustomDocumentPicker$1;
|
|
|
4886
4888
|
exports.CustomDropdown = CustomDropdown$1;
|
|
4887
4889
|
exports.CustomHeader = CustomHeader$1;
|
|
4888
4890
|
exports.CustomIcon = CustomIcon;
|
|
4889
|
-
exports.CustomLoader = CustomLoader;
|
|
4891
|
+
exports.CustomLoader = CustomLoader$1;
|
|
4890
4892
|
exports.CustomProgressBar = CustomProgressBar;
|
|
4891
4893
|
exports.CustomSearchBar = CustomSearchBar;
|
|
4892
4894
|
exports.CustomSlideButton = index$2;
|