dhre-ui-kit 0.0.349 → 0.0.351

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
@@ -497,6 +497,7 @@ declare const CustomIcon: ({ icon, title, titleVariant, testId, onPress, contain
497
497
  interface CustomLoaderProps {
498
498
  loading: boolean;
499
499
  brandName?: string;
500
+ loadingText?: string;
500
501
  }
501
502
 
502
503
  declare const _default$d: (props: CustomLoaderProps) => React$1.JSX.Element;
package/lib/index.js CHANGED
@@ -2520,7 +2520,11 @@ const DEFAULT_LOADER = {
2520
2520
  assets: []
2521
2521
  };
2522
2522
 
2523
- const CustomLoader = ({ loading, brandName }) => {
2523
+ const CustomLoader = ({
2524
+ loading,
2525
+ brandName = "DP",
2526
+ loadingText
2527
+ }) => {
2524
2528
  const { theme, mode } = useTheme();
2525
2529
  const styles = createStyles$3(theme);
2526
2530
  if (!loading) return null;
@@ -2533,7 +2537,16 @@ const CustomLoader = ({ loading, brandName }) => {
2533
2537
  autoPlay: true,
2534
2538
  loop: true
2535
2539
  }
2536
- )))));
2540
+ )), loadingText && /* @__PURE__ */ React__default["default"].createElement(
2541
+ CustomText$1,
2542
+ {
2543
+ text: loadingText,
2544
+ style: styles.text,
2545
+ variant: FontStyle.B4_REGULAR,
2546
+ textColor: "#000000",
2547
+ numberOfLines: 2
2548
+ }
2549
+ ))));
2537
2550
  }
2538
2551
  };
2539
2552
  var CustomLoader$1 = withThemeProvider(CustomLoader);