dhre-ui-kit 0.0.363 → 0.0.365
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 +3 -0
- package/lib/index.js +6 -3
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -3
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -498,6 +498,9 @@ interface CustomLoaderProps {
|
|
|
498
498
|
loading: boolean;
|
|
499
499
|
brandName?: string;
|
|
500
500
|
loadingText?: string;
|
|
501
|
+
customeContainer?: ViewStyle;
|
|
502
|
+
customeBackDrop?: ViewStyle;
|
|
503
|
+
customeBox?: ViewStyle;
|
|
501
504
|
}
|
|
502
505
|
|
|
503
506
|
declare const _default$d: (props: CustomLoaderProps) => React$1.JSX.Element;
|
package/lib/index.js
CHANGED
|
@@ -783,7 +783,7 @@ const createStyles$3 = (theme) => {
|
|
|
783
783
|
backgroundColor: "rgba(0, 0, 0, 0.3)"
|
|
784
784
|
},
|
|
785
785
|
box: {
|
|
786
|
-
width: horizontalScale(
|
|
786
|
+
width: horizontalScale(100),
|
|
787
787
|
paddingVertical: 24,
|
|
788
788
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
789
789
|
borderRadius: 16,
|
|
@@ -2367,13 +2367,16 @@ const DEFAULT_LOADER = {
|
|
|
2367
2367
|
const CustomLoader = ({
|
|
2368
2368
|
loading,
|
|
2369
2369
|
brandName = "DP",
|
|
2370
|
-
loadingText
|
|
2370
|
+
loadingText,
|
|
2371
|
+
customeContainer,
|
|
2372
|
+
customeBackDrop,
|
|
2373
|
+
customeBox
|
|
2371
2374
|
}) => {
|
|
2372
2375
|
const { theme, mode } = useTheme();
|
|
2373
2376
|
const styles = createStyles$3(theme);
|
|
2374
2377
|
if (!loading) return null;
|
|
2375
2378
|
else {
|
|
2376
|
-
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(
|
|
2379
|
+
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles.box, customeBox] }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.loader }, /* @__PURE__ */ React__default["default"].createElement(
|
|
2377
2380
|
LottieView__default["default"],
|
|
2378
2381
|
{
|
|
2379
2382
|
style: styles.loader,
|