dhre-ui-kit 0.0.281 → 0.0.283
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 +26 -26
- package/lib/index.js +16 -22
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +16 -22
- 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,30 +28,30 @@ interface BadgeProps {
|
|
|
28
28
|
iconStyle?: ViewStyle;
|
|
29
29
|
handleIconPress: () => void;
|
|
30
30
|
}
|
|
31
|
-
declare const _default$
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
isModalVisible:
|
|
35
|
-
toggleModal:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
declare const _default$k: (props: BadgeProps) => React$1.JSX.Element;
|
|
32
|
+
|
|
33
|
+
interface BottomDrawerProps {
|
|
34
|
+
isModalVisible: boolean;
|
|
35
|
+
toggleModal: () => void;
|
|
36
|
+
isFullScreen?: boolean;
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
title: string;
|
|
39
|
+
testID?: string;
|
|
40
|
+
style?: ViewStyle;
|
|
41
|
+
modalContainerStyle?: ViewStyle;
|
|
42
|
+
showBlurView?: boolean;
|
|
43
|
+
leftIcon?: React.ReactElement;
|
|
44
|
+
rightIcon?: React.ReactElement;
|
|
45
|
+
showLeftIcon?: boolean;
|
|
46
|
+
showRightIcon?: boolean;
|
|
47
|
+
onLeftIconPress?: () => void;
|
|
48
|
+
titleStyle?: TextStyle;
|
|
49
|
+
titleVariant?: string;
|
|
50
|
+
showHeader?: boolean;
|
|
51
|
+
showSeparator?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare const _default$j: (props: BottomDrawerProps) => React$1.JSX.Element;
|
|
55
55
|
|
|
56
56
|
interface CustomButtonProps {
|
|
57
57
|
title: string;
|
|
@@ -1126,4 +1126,4 @@ interface RadioButtonGroupProps {
|
|
|
1126
1126
|
|
|
1127
1127
|
declare const RadioButtonGroup: React$1.FC<RadioButtonGroupProps>;
|
|
1128
1128
|
|
|
1129
|
-
export { _default$g as Accordion, _default$1 as AppointmentCard, _default$
|
|
1129
|
+
export { _default$g as Accordion, _default$1 as AppointmentCard, _default$k as Badge, _default$j as 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$l 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
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var reactRedux = require('react-redux');
|
|
7
7
|
var reactNative = require('react-native');
|
|
8
|
-
var blur = require('@react-native-community/blur');
|
|
9
8
|
var Modal = require('react-native-modal');
|
|
9
|
+
var Clipboard = require('@react-native-clipboard/clipboard');
|
|
10
10
|
var LottieView = require('lottie-react-native');
|
|
11
11
|
var Tooltip = require('react-native-walkthrough-tooltip');
|
|
12
12
|
var Pdf = require('react-native-pdf');
|
|
@@ -20,7 +20,6 @@ var reactNativeElementDropdown = require('react-native-element-dropdown');
|
|
|
20
20
|
var DocumentPicker = require('react-native-document-picker');
|
|
21
21
|
var RNFS = require('react-native-fs');
|
|
22
22
|
var OTPVerify = require('react-native-otp-verify');
|
|
23
|
-
var Clipboard = require('@react-native-clipboard/clipboard');
|
|
24
23
|
|
|
25
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
26
25
|
|
|
@@ -44,6 +43,7 @@ function _interopNamespace(e) {
|
|
|
44
43
|
|
|
45
44
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
46
45
|
var Modal__default = /*#__PURE__*/_interopDefaultLegacy(Modal);
|
|
46
|
+
var Clipboard__default = /*#__PURE__*/_interopDefaultLegacy(Clipboard);
|
|
47
47
|
var LottieView__default = /*#__PURE__*/_interopDefaultLegacy(LottieView);
|
|
48
48
|
var Tooltip__default = /*#__PURE__*/_interopDefaultLegacy(Tooltip);
|
|
49
49
|
var Pdf__default = /*#__PURE__*/_interopDefaultLegacy(Pdf);
|
|
@@ -53,7 +53,6 @@ var CountryPicker__default = /*#__PURE__*/_interopDefaultLegacy(CountryPicker);
|
|
|
53
53
|
var DocumentPicker__default = /*#__PURE__*/_interopDefaultLegacy(DocumentPicker);
|
|
54
54
|
var RNFS__default = /*#__PURE__*/_interopDefaultLegacy(RNFS);
|
|
55
55
|
var OTPVerify__default = /*#__PURE__*/_interopDefaultLegacy(OTPVerify);
|
|
56
|
-
var Clipboard__default = /*#__PURE__*/_interopDefaultLegacy(Clipboard);
|
|
57
56
|
|
|
58
57
|
var ShapeType = /* @__PURE__ */ ((ShapeType2) => {
|
|
59
58
|
ShapeType2["LINE"] = "line";
|
|
@@ -675,6 +674,11 @@ const styles$z = reactNative.StyleSheet.create({
|
|
|
675
674
|
rightIconStyle: { marginLeft: 8 }
|
|
676
675
|
});
|
|
677
676
|
|
|
677
|
+
const isIos = () => reactNative.Platform.OS === "ios" /* ios */;
|
|
678
|
+
const copyToClipboard = (textToCopy) => {
|
|
679
|
+
Clipboard__default["default"].setString(textToCopy);
|
|
680
|
+
};
|
|
681
|
+
|
|
678
682
|
const BottomDrawer = ({
|
|
679
683
|
isModalVisible,
|
|
680
684
|
toggleModal,
|
|
@@ -683,9 +687,6 @@ const BottomDrawer = ({
|
|
|
683
687
|
testID = "BOTTOM-DRAWER",
|
|
684
688
|
style,
|
|
685
689
|
modalContainerStyle,
|
|
686
|
-
blurAmount = 10,
|
|
687
|
-
blurViewStyle,
|
|
688
|
-
showBlurView = true,
|
|
689
690
|
showLeftIcon = false,
|
|
690
691
|
showRightIcon = true,
|
|
691
692
|
leftIcon,
|
|
@@ -694,31 +695,27 @@ const BottomDrawer = ({
|
|
|
694
695
|
titleStyle,
|
|
695
696
|
titleVariant = "B2_REGULAR",
|
|
696
697
|
showHeader = true,
|
|
697
|
-
|
|
698
|
-
|
|
698
|
+
showSeparator = true,
|
|
699
|
+
showBlurView
|
|
699
700
|
}) => {
|
|
701
|
+
const { theme } = useTheme();
|
|
700
702
|
return /* @__PURE__ */ React__default["default"].createElement(
|
|
701
703
|
Modal__default["default"],
|
|
702
704
|
{
|
|
703
705
|
isVisible: isModalVisible,
|
|
704
706
|
swipeDirection: "down",
|
|
705
707
|
onSwipeComplete: toggleModal,
|
|
708
|
+
backdropColor: theme.SURFACE_PRIMARY,
|
|
709
|
+
hasBackdrop: showBlurView,
|
|
706
710
|
style: { margin: 0 }
|
|
707
711
|
},
|
|
708
712
|
/* @__PURE__ */ React__default["default"].createElement(
|
|
709
713
|
reactNative.KeyboardAvoidingView,
|
|
710
714
|
{
|
|
711
|
-
behavior:
|
|
715
|
+
behavior: isIos() ? "padding" : "height",
|
|
712
716
|
style: { flex: 1 }
|
|
713
717
|
},
|
|
714
|
-
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.mainContainer, style], testID },
|
|
715
|
-
blur.BlurView,
|
|
716
|
-
{
|
|
717
|
-
style: [styles$z.blurView, blurViewStyle],
|
|
718
|
-
blurType,
|
|
719
|
-
blurAmount
|
|
720
|
-
}
|
|
721
|
-
) : null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, showSeparator && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.separator }), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
|
|
718
|
+
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.mainContainer, style], testID }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, showSeparator && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.separator }), /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React__default["default"].cloneElement(leftIcon, {
|
|
722
719
|
width: moderateScale(24),
|
|
723
720
|
height: moderateScale(24),
|
|
724
721
|
style: styles$z.leftIconStyle,
|
|
@@ -739,6 +736,7 @@ const BottomDrawer = ({
|
|
|
739
736
|
)
|
|
740
737
|
);
|
|
741
738
|
};
|
|
739
|
+
var BottomDrawer$1 = withThemeProvider(BottomDrawer);
|
|
742
740
|
|
|
743
741
|
const createStyles$3 = (theme) => {
|
|
744
742
|
return reactNative.StyleSheet.create({
|
|
@@ -4576,10 +4574,6 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
4576
4574
|
);
|
|
4577
4575
|
var index$2 = withThemeProvider(CustomSlideButton);
|
|
4578
4576
|
|
|
4579
|
-
const copyToClipboard = (textToCopy) => {
|
|
4580
|
-
Clipboard__default["default"].setString(textToCopy);
|
|
4581
|
-
};
|
|
4582
|
-
|
|
4583
4577
|
const styles$2 = reactNative.StyleSheet.create({
|
|
4584
4578
|
accordionContainer: {
|
|
4585
4579
|
gap: verticalScale(8),
|
|
@@ -4965,7 +4959,7 @@ const RadioButtonGroup = ({ data, onSelect, containerStyle, labelStyle, optionCo
|
|
|
4965
4959
|
exports.Accordion = Accordion$1;
|
|
4966
4960
|
exports.AppointmentCard = index$1;
|
|
4967
4961
|
exports.Badge = Badge$1;
|
|
4968
|
-
exports.BottomDrawer = BottomDrawer;
|
|
4962
|
+
exports.BottomDrawer = BottomDrawer$1;
|
|
4969
4963
|
exports.Button = CustomButton$1;
|
|
4970
4964
|
exports.Cards = Cards;
|
|
4971
4965
|
exports.Category = category;
|