dhre-ui-kit 0.0.337 → 0.0.339
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 +1 -0
- package/lib/index.js +19 -6
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +18 -5
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var reactNative = require('react-native');
|
|
|
8
8
|
var Modal = require('react-native-modal');
|
|
9
9
|
var Clipboard = require('@react-native-clipboard/clipboard');
|
|
10
10
|
var LottieView = require('lottie-react-native');
|
|
11
|
+
var loading = require('src/assets/images/loading');
|
|
11
12
|
var Tooltip = require('react-native-walkthrough-tooltip');
|
|
12
13
|
var Pdf = require('react-native-pdf');
|
|
13
14
|
var Progress = require('react-native-progress');
|
|
@@ -722,6 +723,7 @@ const BottomDrawer = ({
|
|
|
722
723
|
showBlurView = true,
|
|
723
724
|
backdropColor,
|
|
724
725
|
backdropOpacity = 0.9,
|
|
726
|
+
footer,
|
|
725
727
|
propagateSwipe = true,
|
|
726
728
|
swipeDirection = "down"
|
|
727
729
|
}) => {
|
|
@@ -761,7 +763,8 @@ const BottomDrawer = ({
|
|
|
761
763
|
style: styles$z.rightIconStyle,
|
|
762
764
|
onPress: toggleModal
|
|
763
765
|
}) : null)), children))
|
|
764
|
-
)
|
|
766
|
+
),
|
|
767
|
+
footer ? /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, footer) : null
|
|
765
768
|
);
|
|
766
769
|
};
|
|
767
770
|
|
|
@@ -809,13 +812,23 @@ const createStyles$3 = (theme) => {
|
|
|
809
812
|
});
|
|
810
813
|
};
|
|
811
814
|
|
|
812
|
-
const
|
|
813
|
-
|
|
815
|
+
const CustomLoader = ({
|
|
816
|
+
loading: loading$1,
|
|
817
|
+
loadingText = "Loading..."
|
|
818
|
+
}) => {
|
|
814
819
|
const { theme, mode } = useTheme();
|
|
815
820
|
const styles = createStyles$3(theme);
|
|
816
|
-
if (!loading) return null;
|
|
821
|
+
if (!loading$1) return null;
|
|
817
822
|
else {
|
|
818
|
-
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.container }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.backdrop }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.box }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.loader }, /* @__PURE__ */ React__default["default"].createElement(
|
|
823
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.container }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.backdrop }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.box }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.loader }, /* @__PURE__ */ React__default["default"].createElement(
|
|
824
|
+
LottieView__default["default"],
|
|
825
|
+
{
|
|
826
|
+
style: styles.loader,
|
|
827
|
+
source: loading.LOADER_JSON,
|
|
828
|
+
autoPlay: true,
|
|
829
|
+
loop: true
|
|
830
|
+
}
|
|
831
|
+
)), /* @__PURE__ */ React__default["default"].createElement(
|
|
819
832
|
CustomText$1,
|
|
820
833
|
{
|
|
821
834
|
text: loadingText,
|
|
@@ -2992,7 +3005,7 @@ const DateRangePicker = (props) => {
|
|
|
2992
3005
|
textDisabledColor: theme.CONTENT_DISABLE
|
|
2993
3006
|
},
|
|
2994
3007
|
style: {
|
|
2995
|
-
backgroundColor: theme.
|
|
3008
|
+
backgroundColor: theme.SURFACE_TERTIARY,
|
|
2996
3009
|
color: theme.CONTENT_SECONDRY,
|
|
2997
3010
|
borderRadius: 24
|
|
2998
3011
|
},
|