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.mjs CHANGED
@@ -253,8 +253,8 @@ const theme = {
253
253
  dark: "#339ECF"
254
254
  },
255
255
  [Theme.ERROR]: {
256
- light: "#EB0542",
257
- dark: "#EB0542"
256
+ light: "#E8594F",
257
+ dark: "#E8594F"
258
258
  },
259
259
  [Theme.TRANSPARENT_INVERTED]: {
260
260
  light: "#68686833",
@@ -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 }, triggerElement);
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({
@@ -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
- borderWidth: moderateScale(2),
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
- borderWidth: moderateScale(2),
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
- borderWidth: moderateScale(2),
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.SURFACE_TERTIARY,
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
  ));