dhre-ui-kit 2.0.3 → 2.0.4
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 +29 -30
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +29 -30
- 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",
|
|
@@ -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({
|
|
@@ -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
|
));
|