dhre-ui-kit 2.0.3 → 2.0.5
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 +41 -40
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +41 -40
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -253,8 +253,8 @@ const theme = {
|
|
|
253
253
|
dark: "#339ECF"
|
|
254
254
|
},
|
|
255
255
|
[Theme.ERROR]: {
|
|
256
|
-
light: "#
|
|
257
|
-
dark: "#
|
|
256
|
+
light: "#E8594F",
|
|
257
|
+
dark: "#E8594F"
|
|
258
258
|
},
|
|
259
259
|
[Theme.TRANSPARENT_INVERTED]: {
|
|
260
260
|
light: "#68686833",
|
|
@@ -561,9 +561,9 @@ const DHRE_DEFAULT = {
|
|
|
561
561
|
DH_BG_GREY_900: "#6F7387",
|
|
562
562
|
DH_BG_GREY: "#F2F3F8",
|
|
563
563
|
DH_SUCESS: "#2DE3A6",
|
|
564
|
-
DH_ERROR: "#
|
|
564
|
+
DH_ERROR: "#E8594F",
|
|
565
565
|
DH_INFO: "#339ECF",
|
|
566
|
-
DH_SEMENTIC_ERROR: "#
|
|
566
|
+
DH_SEMENTIC_ERROR: "#E8594F",
|
|
567
567
|
DH_SEMENTIC_WARNING: "#EB8425"
|
|
568
568
|
};
|
|
569
569
|
const DHRE_COLORS_TEXT = {
|
|
@@ -5808,8 +5808,10 @@ const CustomTextInput = ({
|
|
|
5808
5808
|
};
|
|
5809
5809
|
|
|
5810
5810
|
const CustomTooltip = (props) => {
|
|
5811
|
-
const { triggerElement } = props;
|
|
5812
|
-
return /* @__PURE__ */ React.createElement(Tooltip, { ...props
|
|
5811
|
+
const { triggerElement, contentStyle } = props;
|
|
5812
|
+
return /* @__PURE__ */ React.createElement(Tooltip, { ...props, contentStyle: [contentStyle, {
|
|
5813
|
+
borderRadius: 0
|
|
5814
|
+
}] }, triggerElement);
|
|
5813
5815
|
};
|
|
5814
5816
|
|
|
5815
5817
|
const styles$t = StyleSheet.create({
|
|
@@ -6664,7 +6666,7 @@ const Toast = React.forwardRef(
|
|
|
6664
6666
|
style: [
|
|
6665
6667
|
styles$l.container,
|
|
6666
6668
|
{ bottom },
|
|
6667
|
-
{ backgroundColor: isSuccess ? "#00B578" : "#
|
|
6669
|
+
{ backgroundColor: isSuccess ? "#00B578" : "#E8594F" },
|
|
6668
6670
|
{ height: verticalScale(height) }
|
|
6669
6671
|
],
|
|
6670
6672
|
testID: "TOAST"
|
|
@@ -7378,7 +7380,7 @@ const DateRangePicker = (props) => {
|
|
|
7378
7380
|
startDate: "",
|
|
7379
7381
|
endDate: ""
|
|
7380
7382
|
});
|
|
7381
|
-
const { theme, mode } = useTheme();
|
|
7383
|
+
const { theme: theme$1, mode } = useTheme();
|
|
7382
7384
|
const onDayPress = (day) => {
|
|
7383
7385
|
const { dateString } = day;
|
|
7384
7386
|
const { startDate, endDate } = selectedRange;
|
|
@@ -7401,38 +7403,35 @@ const DateRangePicker = (props) => {
|
|
|
7401
7403
|
while (start < end) {
|
|
7402
7404
|
start.setDate(start.getDate() + 1);
|
|
7403
7405
|
markedDates[start.toISOString().split("T")[0]] = {
|
|
7404
|
-
color: theme.SUCCESS,
|
|
7405
|
-
textColor: theme.CONTENT_INVERTED
|
|
7406
|
+
color: theme.SUCCESS.dark,
|
|
7407
|
+
textColor: theme$1.CONTENT_INVERTED
|
|
7406
7408
|
};
|
|
7407
7409
|
}
|
|
7408
7410
|
}
|
|
7409
7411
|
if (startDate) {
|
|
7410
7412
|
markedDates[startDate] = {
|
|
7411
7413
|
startingDay: true,
|
|
7412
|
-
textColor: theme.CONTENT_INVERTED,
|
|
7413
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7414
|
-
|
|
7415
|
-
borderColor: theme.SURFACE_PRIMARY
|
|
7414
|
+
textColor: theme$1.CONTENT_INVERTED,
|
|
7415
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme$1.SURFACE_INVERTED } : {
|
|
7416
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7416
7417
|
}
|
|
7417
7418
|
};
|
|
7418
7419
|
}
|
|
7419
7420
|
if (endDate) {
|
|
7420
7421
|
markedDates[endDate] = {
|
|
7421
7422
|
endingDay: true,
|
|
7422
|
-
color: theme.SUCCESS,
|
|
7423
|
-
textColor: theme.CONTENT_INVERTED,
|
|
7424
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7425
|
-
|
|
7426
|
-
borderColor: theme.SURFACE_PRIMARY
|
|
7423
|
+
color: theme.SUCCESS.dark,
|
|
7424
|
+
textColor: theme$1.CONTENT_INVERTED,
|
|
7425
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme$1.SURFACE_INVERTED } : {
|
|
7426
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7427
7427
|
}
|
|
7428
7428
|
};
|
|
7429
7429
|
markedDates[startDate] = {
|
|
7430
7430
|
startingDay: true,
|
|
7431
|
-
color: theme.SUCCESS,
|
|
7432
|
-
textColor: theme.CONTENT_INVERTED,
|
|
7433
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7434
|
-
|
|
7435
|
-
borderColor: theme.SURFACE_PRIMARY
|
|
7431
|
+
color: theme.SUCCESS.dark,
|
|
7432
|
+
textColor: theme$1.CONTENT_INVERTED,
|
|
7433
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme$1.SURFACE_INVERTED } : {
|
|
7434
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7436
7435
|
}
|
|
7437
7436
|
};
|
|
7438
7437
|
}
|
|
@@ -7447,15 +7446,15 @@ const DateRangePicker = (props) => {
|
|
|
7447
7446
|
markingType: "period",
|
|
7448
7447
|
theme: {
|
|
7449
7448
|
calendarBackground: "transparent",
|
|
7450
|
-
arrowColor: theme.CONTENT_PRIMARY,
|
|
7451
|
-
monthTextColor: theme.CONTENT_PRIMARY,
|
|
7452
|
-
dayTextColor: theme.CONTENT_SECONDRY,
|
|
7453
|
-
todayTextColor: theme.SUCCESS,
|
|
7454
|
-
textDisabledColor: theme.CONTENT_DISABLE
|
|
7449
|
+
arrowColor: theme$1.CONTENT_PRIMARY,
|
|
7450
|
+
monthTextColor: theme$1.CONTENT_PRIMARY,
|
|
7451
|
+
dayTextColor: theme$1.CONTENT_SECONDRY,
|
|
7452
|
+
todayTextColor: theme$1.SUCCESS,
|
|
7453
|
+
textDisabledColor: theme$1.CONTENT_DISABLE
|
|
7455
7454
|
},
|
|
7456
7455
|
style: {
|
|
7457
|
-
backgroundColor: theme.
|
|
7458
|
-
color: theme.CONTENT_SECONDRY,
|
|
7456
|
+
backgroundColor: theme$1.SURFACE_SECONDARY,
|
|
7457
|
+
color: theme$1.CONTENT_SECONDRY,
|
|
7459
7458
|
borderRadius: 0
|
|
7460
7459
|
},
|
|
7461
7460
|
onDayPress,
|
|
@@ -7471,9 +7470,9 @@ const DateRangePicker = (props) => {
|
|
|
7471
7470
|
},
|
|
7472
7471
|
containerStyle: {
|
|
7473
7472
|
...styles$d.applyButton,
|
|
7474
|
-
backgroundColor: theme.SURFACE_INVERTED
|
|
7473
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7475
7474
|
},
|
|
7476
|
-
textStyle: { color: theme.CONTENT_INVERTED },
|
|
7475
|
+
textStyle: { color: theme$1.CONTENT_INVERTED },
|
|
7477
7476
|
disabled: isButtonDisabled
|
|
7478
7477
|
}
|
|
7479
7478
|
));
|
|
@@ -8935,7 +8934,7 @@ const styles$3 = StyleSheet.create({
|
|
|
8935
8934
|
},
|
|
8936
8935
|
sliderContainer: {
|
|
8937
8936
|
height: verticalScale(48),
|
|
8938
|
-
borderRadius: moderateScale(25),
|
|
8937
|
+
// borderRadius: moderateScale(25),
|
|
8939
8938
|
overflow: "hidden",
|
|
8940
8939
|
justifyContent: "center"
|
|
8941
8940
|
},
|
|
@@ -8949,7 +8948,7 @@ const styles$3 = StyleSheet.create({
|
|
|
8949
8948
|
height: verticalScale(40),
|
|
8950
8949
|
justifyContent: "center",
|
|
8951
8950
|
alignItems: "center",
|
|
8952
|
-
borderRadius: moderateScale(20),
|
|
8951
|
+
// borderRadius: moderateScale(20),
|
|
8953
8952
|
margin: 4
|
|
8954
8953
|
},
|
|
8955
8954
|
buttonTextContainer: {
|
|
@@ -8959,8 +8958,8 @@ const styles$3 = StyleSheet.create({
|
|
|
8959
8958
|
bottom: 0,
|
|
8960
8959
|
top: 0,
|
|
8961
8960
|
alignItems: "center",
|
|
8962
|
-
justifyContent: "center"
|
|
8963
|
-
borderRadius: 25
|
|
8961
|
+
justifyContent: "center"
|
|
8962
|
+
// borderRadius: 25,
|
|
8964
8963
|
}
|
|
8965
8964
|
});
|
|
8966
8965
|
|
|
@@ -9107,7 +9106,7 @@ const CustomSlideButton = React.forwardRef(
|
|
|
9107
9106
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
9108
9107
|
width: verticalScale(size),
|
|
9109
9108
|
height: verticalScale(size),
|
|
9110
|
-
borderRadius: verticalScale(size / 2),
|
|
9109
|
+
// borderRadius: verticalScale(size / 2),
|
|
9111
9110
|
...sliderStyle
|
|
9112
9111
|
}
|
|
9113
9112
|
},
|
|
@@ -9401,12 +9400,14 @@ const PropertyDetails = ({
|
|
|
9401
9400
|
...styles$1.container,
|
|
9402
9401
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
9403
9402
|
borderColor: theme.BORDER_SEPERATOR_HEADER,
|
|
9404
|
-
...containerStyle
|
|
9403
|
+
...containerStyle,
|
|
9404
|
+
...{ borderRadius: 0 }
|
|
9405
9405
|
}
|
|
9406
9406
|
},
|
|
9407
9407
|
React.cloneElement(icon, {
|
|
9408
9408
|
width: moderateScale(87),
|
|
9409
|
-
height: moderateScale(87)
|
|
9409
|
+
height: moderateScale(87),
|
|
9410
|
+
borderRadius: 0
|
|
9410
9411
|
}),
|
|
9411
9412
|
/* @__PURE__ */ React.createElement(View, { style: styles$1.propertyInfo }, brandIcon, /* @__PURE__ */ React.createElement(
|
|
9412
9413
|
CustomTypography,
|