dhre-ui-kit 0.0.366 → 0.0.367
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.js +31 -19
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +31 -19
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -747,8 +747,6 @@ const createStyles$3 = (theme) => {
|
|
|
747
747
|
backgroundColor: "rgba(0, 0, 0, 0.3)"
|
|
748
748
|
},
|
|
749
749
|
box: {
|
|
750
|
-
width: horizontalScale(100),
|
|
751
|
-
paddingVertical: 12,
|
|
752
750
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
753
751
|
borderRadius: 16,
|
|
754
752
|
justifyContent: "center",
|
|
@@ -2338,25 +2336,40 @@ const CustomLoader = ({
|
|
|
2338
2336
|
}) => {
|
|
2339
2337
|
const { theme, mode } = useTheme();
|
|
2340
2338
|
const styles = createStyles$3(theme);
|
|
2339
|
+
const isDP = brandName === "DP";
|
|
2341
2340
|
if (!loading) return null;
|
|
2342
2341
|
else {
|
|
2343
|
-
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React.createElement(View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React.createElement(
|
|
2344
|
-
|
|
2345
|
-
{
|
|
2346
|
-
style: styles.loader,
|
|
2347
|
-
source: brandName === "DP" ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
|
|
2348
|
-
autoPlay: true,
|
|
2349
|
-
loop: true
|
|
2350
|
-
}
|
|
2351
|
-
)), loadingText && /* @__PURE__ */ React.createElement(
|
|
2352
|
-
CustomText$1,
|
|
2342
|
+
return /* @__PURE__ */ React.createElement(View, { style: [styles.container, customeContainer] }, /* @__PURE__ */ React.createElement(View, { style: [styles.backdrop, customeBackDrop] }, /* @__PURE__ */ React.createElement(
|
|
2343
|
+
View,
|
|
2353
2344
|
{
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2345
|
+
style: [
|
|
2346
|
+
styles.box,
|
|
2347
|
+
{
|
|
2348
|
+
width: horizontalScale(isDP ? 100 : 148),
|
|
2349
|
+
paddingVertical: isDP ? 12 : 24
|
|
2350
|
+
},
|
|
2351
|
+
customeBox
|
|
2352
|
+
]
|
|
2353
|
+
},
|
|
2354
|
+
/* @__PURE__ */ React.createElement(View, { style: styles.loader }, /* @__PURE__ */ React.createElement(
|
|
2355
|
+
LottieView,
|
|
2356
|
+
{
|
|
2357
|
+
style: styles.loader,
|
|
2358
|
+
source: isDP ? DEFAULT_LOADER : mode === "dark" ? LOADER_LIGHT : LOADER_DARK,
|
|
2359
|
+
autoPlay: true,
|
|
2360
|
+
loop: true
|
|
2361
|
+
}
|
|
2362
|
+
)),
|
|
2363
|
+
loadingText && /* @__PURE__ */ React.createElement(
|
|
2364
|
+
CustomText$1,
|
|
2365
|
+
{
|
|
2366
|
+
text: loadingText,
|
|
2367
|
+
style: styles.text,
|
|
2368
|
+
variant: FontStyle.B4_REGULAR,
|
|
2369
|
+
textColor: "#000000"
|
|
2370
|
+
}
|
|
2371
|
+
)
|
|
2372
|
+
)));
|
|
2360
2373
|
}
|
|
2361
2374
|
};
|
|
2362
2375
|
var CustomLoader$1 = withThemeProvider(CustomLoader);
|
|
@@ -5095,7 +5108,6 @@ const styles$9 = StyleSheet.create({
|
|
|
5095
5108
|
},
|
|
5096
5109
|
outlineStyle: {
|
|
5097
5110
|
borderWidth: 1,
|
|
5098
|
-
height: verticalScale(48),
|
|
5099
5111
|
borderRadius: moderateScale(8)
|
|
5100
5112
|
},
|
|
5101
5113
|
errorStyle: {
|