dhre-ui-kit 0.0.358 → 0.0.359

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 CHANGED
@@ -498,6 +498,7 @@ interface CustomLoaderProps {
498
498
  loading: boolean;
499
499
  brandName?: string;
500
500
  loadingText?: string;
501
+ icon?: ReactElement;
501
502
  }
502
503
 
503
504
  declare const _default$d: (props: CustomLoaderProps) => React$1.JSX.Element;
package/lib/index.js CHANGED
@@ -2381,13 +2381,14 @@ const DEFAULT_LOADER = {
2381
2381
  const CustomLoader = ({
2382
2382
  loading,
2383
2383
  brandName = "DP",
2384
- loadingText
2384
+ loadingText,
2385
+ icon
2385
2386
  }) => {
2386
2387
  const { theme, mode } = useTheme();
2387
2388
  const styles = createStyles$3(theme);
2388
2389
  if (!loading) return null;
2389
2390
  else {
2390
- 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(
2391
+ 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 }, icon, /* @__PURE__ */ React__default["default"].createElement(
2391
2392
  LottieView__default["default"],
2392
2393
  {
2393
2394
  style: styles.lottie,