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.js
CHANGED
|
@@ -289,8 +289,8 @@ const theme = {
|
|
|
289
289
|
dark: "#339ECF"
|
|
290
290
|
},
|
|
291
291
|
[Theme.ERROR]: {
|
|
292
|
-
light: "#
|
|
293
|
-
dark: "#
|
|
292
|
+
light: "#E8594F",
|
|
293
|
+
dark: "#E8594F"
|
|
294
294
|
},
|
|
295
295
|
[Theme.TRANSPARENT_INVERTED]: {
|
|
296
296
|
light: "#68686833",
|
|
@@ -597,9 +597,9 @@ const DHRE_DEFAULT = {
|
|
|
597
597
|
DH_BG_GREY_900: "#6F7387",
|
|
598
598
|
DH_BG_GREY: "#F2F3F8",
|
|
599
599
|
DH_SUCESS: "#2DE3A6",
|
|
600
|
-
DH_ERROR: "#
|
|
600
|
+
DH_ERROR: "#E8594F",
|
|
601
601
|
DH_INFO: "#339ECF",
|
|
602
|
-
DH_SEMENTIC_ERROR: "#
|
|
602
|
+
DH_SEMENTIC_ERROR: "#E8594F",
|
|
603
603
|
DH_SEMENTIC_WARNING: "#EB8425"
|
|
604
604
|
};
|
|
605
605
|
const DHRE_COLORS_TEXT = {
|
|
@@ -5844,8 +5844,10 @@ const CustomTextInput = ({
|
|
|
5844
5844
|
};
|
|
5845
5845
|
|
|
5846
5846
|
const CustomTooltip = (props) => {
|
|
5847
|
-
const { triggerElement } = props;
|
|
5848
|
-
return /* @__PURE__ */ React__default["default"].createElement(Tooltip__default["default"], { ...props
|
|
5847
|
+
const { triggerElement, contentStyle } = props;
|
|
5848
|
+
return /* @__PURE__ */ React__default["default"].createElement(Tooltip__default["default"], { ...props, contentStyle: [contentStyle, {
|
|
5849
|
+
borderRadius: 0
|
|
5850
|
+
}] }, triggerElement);
|
|
5849
5851
|
};
|
|
5850
5852
|
|
|
5851
5853
|
const styles$t = reactNative.StyleSheet.create({
|
|
@@ -6700,7 +6702,7 @@ const Toast = React__default["default"].forwardRef(
|
|
|
6700
6702
|
style: [
|
|
6701
6703
|
styles$l.container,
|
|
6702
6704
|
{ bottom },
|
|
6703
|
-
{ backgroundColor: isSuccess ? "#00B578" : "#
|
|
6705
|
+
{ backgroundColor: isSuccess ? "#00B578" : "#E8594F" },
|
|
6704
6706
|
{ height: verticalScale(height) }
|
|
6705
6707
|
],
|
|
6706
6708
|
testID: "TOAST"
|
|
@@ -7414,7 +7416,7 @@ const DateRangePicker = (props) => {
|
|
|
7414
7416
|
startDate: "",
|
|
7415
7417
|
endDate: ""
|
|
7416
7418
|
});
|
|
7417
|
-
const { theme, mode } = useTheme();
|
|
7419
|
+
const { theme: theme$1, mode } = useTheme();
|
|
7418
7420
|
const onDayPress = (day) => {
|
|
7419
7421
|
const { dateString } = day;
|
|
7420
7422
|
const { startDate, endDate } = selectedRange;
|
|
@@ -7437,38 +7439,35 @@ const DateRangePicker = (props) => {
|
|
|
7437
7439
|
while (start < end) {
|
|
7438
7440
|
start.setDate(start.getDate() + 1);
|
|
7439
7441
|
markedDates[start.toISOString().split("T")[0]] = {
|
|
7440
|
-
color: theme.SUCCESS,
|
|
7441
|
-
textColor: theme.CONTENT_INVERTED
|
|
7442
|
+
color: theme.SUCCESS.dark,
|
|
7443
|
+
textColor: theme$1.CONTENT_INVERTED
|
|
7442
7444
|
};
|
|
7443
7445
|
}
|
|
7444
7446
|
}
|
|
7445
7447
|
if (startDate) {
|
|
7446
7448
|
markedDates[startDate] = {
|
|
7447
7449
|
startingDay: true,
|
|
7448
|
-
textColor: theme.CONTENT_INVERTED,
|
|
7449
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7450
|
-
|
|
7451
|
-
borderColor: theme.SURFACE_PRIMARY
|
|
7450
|
+
textColor: theme$1.CONTENT_INVERTED,
|
|
7451
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme$1.SURFACE_INVERTED } : {
|
|
7452
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7452
7453
|
}
|
|
7453
7454
|
};
|
|
7454
7455
|
}
|
|
7455
7456
|
if (endDate) {
|
|
7456
7457
|
markedDates[endDate] = {
|
|
7457
7458
|
endingDay: true,
|
|
7458
|
-
color: theme.SUCCESS,
|
|
7459
|
-
textColor: theme.CONTENT_INVERTED,
|
|
7460
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7461
|
-
|
|
7462
|
-
borderColor: theme.SURFACE_PRIMARY
|
|
7459
|
+
color: theme.SUCCESS.dark,
|
|
7460
|
+
textColor: theme$1.CONTENT_INVERTED,
|
|
7461
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme$1.SURFACE_INVERTED } : {
|
|
7462
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7463
7463
|
}
|
|
7464
7464
|
};
|
|
7465
7465
|
markedDates[startDate] = {
|
|
7466
7466
|
startingDay: true,
|
|
7467
|
-
color: theme.SUCCESS,
|
|
7468
|
-
textColor: theme.CONTENT_INVERTED,
|
|
7469
|
-
customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
|
|
7470
|
-
|
|
7471
|
-
borderColor: theme.SURFACE_PRIMARY
|
|
7467
|
+
color: theme.SUCCESS.dark,
|
|
7468
|
+
textColor: theme$1.CONTENT_INVERTED,
|
|
7469
|
+
customContainerStyle: mode === "dark" ? { backgroundColor: theme$1.SURFACE_INVERTED } : {
|
|
7470
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7472
7471
|
}
|
|
7473
7472
|
};
|
|
7474
7473
|
}
|
|
@@ -7483,15 +7482,15 @@ const DateRangePicker = (props) => {
|
|
|
7483
7482
|
markingType: "period",
|
|
7484
7483
|
theme: {
|
|
7485
7484
|
calendarBackground: "transparent",
|
|
7486
|
-
arrowColor: theme.CONTENT_PRIMARY,
|
|
7487
|
-
monthTextColor: theme.CONTENT_PRIMARY,
|
|
7488
|
-
dayTextColor: theme.CONTENT_SECONDRY,
|
|
7489
|
-
todayTextColor: theme.SUCCESS,
|
|
7490
|
-
textDisabledColor: theme.CONTENT_DISABLE
|
|
7485
|
+
arrowColor: theme$1.CONTENT_PRIMARY,
|
|
7486
|
+
monthTextColor: theme$1.CONTENT_PRIMARY,
|
|
7487
|
+
dayTextColor: theme$1.CONTENT_SECONDRY,
|
|
7488
|
+
todayTextColor: theme$1.SUCCESS,
|
|
7489
|
+
textDisabledColor: theme$1.CONTENT_DISABLE
|
|
7491
7490
|
},
|
|
7492
7491
|
style: {
|
|
7493
|
-
backgroundColor: theme.
|
|
7494
|
-
color: theme.CONTENT_SECONDRY,
|
|
7492
|
+
backgroundColor: theme$1.SURFACE_SECONDARY,
|
|
7493
|
+
color: theme$1.CONTENT_SECONDRY,
|
|
7495
7494
|
borderRadius: 0
|
|
7496
7495
|
},
|
|
7497
7496
|
onDayPress,
|
|
@@ -7507,9 +7506,9 @@ const DateRangePicker = (props) => {
|
|
|
7507
7506
|
},
|
|
7508
7507
|
containerStyle: {
|
|
7509
7508
|
...styles$d.applyButton,
|
|
7510
|
-
backgroundColor: theme.SURFACE_INVERTED
|
|
7509
|
+
backgroundColor: theme$1.SURFACE_INVERTED
|
|
7511
7510
|
},
|
|
7512
|
-
textStyle: { color: theme.CONTENT_INVERTED },
|
|
7511
|
+
textStyle: { color: theme$1.CONTENT_INVERTED },
|
|
7513
7512
|
disabled: isButtonDisabled
|
|
7514
7513
|
}
|
|
7515
7514
|
));
|
|
@@ -8971,7 +8970,7 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
8971
8970
|
},
|
|
8972
8971
|
sliderContainer: {
|
|
8973
8972
|
height: verticalScale(48),
|
|
8974
|
-
borderRadius: moderateScale(25),
|
|
8973
|
+
// borderRadius: moderateScale(25),
|
|
8975
8974
|
overflow: "hidden",
|
|
8976
8975
|
justifyContent: "center"
|
|
8977
8976
|
},
|
|
@@ -8985,7 +8984,7 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
8985
8984
|
height: verticalScale(40),
|
|
8986
8985
|
justifyContent: "center",
|
|
8987
8986
|
alignItems: "center",
|
|
8988
|
-
borderRadius: moderateScale(20),
|
|
8987
|
+
// borderRadius: moderateScale(20),
|
|
8989
8988
|
margin: 4
|
|
8990
8989
|
},
|
|
8991
8990
|
buttonTextContainer: {
|
|
@@ -8995,8 +8994,8 @@ const styles$3 = reactNative.StyleSheet.create({
|
|
|
8995
8994
|
bottom: 0,
|
|
8996
8995
|
top: 0,
|
|
8997
8996
|
alignItems: "center",
|
|
8998
|
-
justifyContent: "center"
|
|
8999
|
-
borderRadius: 25
|
|
8997
|
+
justifyContent: "center"
|
|
8998
|
+
// borderRadius: 25,
|
|
9000
8999
|
}
|
|
9001
9000
|
});
|
|
9002
9001
|
|
|
@@ -9143,7 +9142,7 @@ const CustomSlideButton = React__default["default"].forwardRef(
|
|
|
9143
9142
|
backgroundColor: theme.SURFACE_PRIMARY,
|
|
9144
9143
|
width: verticalScale(size),
|
|
9145
9144
|
height: verticalScale(size),
|
|
9146
|
-
borderRadius: verticalScale(size / 2),
|
|
9145
|
+
// borderRadius: verticalScale(size / 2),
|
|
9147
9146
|
...sliderStyle
|
|
9148
9147
|
}
|
|
9149
9148
|
},
|
|
@@ -9437,12 +9436,14 @@ const PropertyDetails = ({
|
|
|
9437
9436
|
...styles$1.container,
|
|
9438
9437
|
backgroundColor: theme.SURFACE_SECONDARY,
|
|
9439
9438
|
borderColor: theme.BORDER_SEPERATOR_HEADER,
|
|
9440
|
-
...containerStyle
|
|
9439
|
+
...containerStyle,
|
|
9440
|
+
...{ borderRadius: 0 }
|
|
9441
9441
|
}
|
|
9442
9442
|
},
|
|
9443
9443
|
React__default["default"].cloneElement(icon, {
|
|
9444
9444
|
width: moderateScale(87),
|
|
9445
|
-
height: moderateScale(87)
|
|
9445
|
+
height: moderateScale(87),
|
|
9446
|
+
borderRadius: 0
|
|
9446
9447
|
}),
|
|
9447
9448
|
/* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$1.propertyInfo }, brandIcon, /* @__PURE__ */ React__default["default"].createElement(
|
|
9448
9449
|
CustomTypography,
|