dhre-ui-kit 2.0.2 → 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",
@@ -5314,6 +5314,7 @@ const CustomButton = ({
5314
5314
  style: [
5315
5315
  styles$y.buttonContainer,
5316
5316
  containerStyle,
5317
+ { borderRadius: 0 },
5317
5318
  isLoading && {
5318
5319
  paddingVertical: verticalScale(22)
5319
5320
  },
@@ -5807,8 +5808,10 @@ const CustomTextInput = ({
5807
5808
  };
5808
5809
 
5809
5810
  const CustomTooltip = (props) => {
5810
- const { triggerElement } = props;
5811
- 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);
5812
5815
  };
5813
5816
 
5814
5817
  const styles$t = StyleSheet.create({
@@ -6502,11 +6505,12 @@ const Accordion = ({
6502
6505
  return /* @__PURE__ */ React.createElement(
6503
6506
  View,
6504
6507
  {
6505
- style: {
6508
+ style: [{
6506
6509
  ...styles$m.container,
6507
6510
  borderBottomColor: theme.BORDER_SEPRATOR,
6508
- ...containerStyle
6509
- },
6511
+ ...containerStyle,
6512
+ borderRadius: 0
6513
+ }],
6510
6514
  testID: testId
6511
6515
  },
6512
6516
  /* @__PURE__ */ React.createElement(
@@ -7376,7 +7380,7 @@ const DateRangePicker = (props) => {
7376
7380
  startDate: "",
7377
7381
  endDate: ""
7378
7382
  });
7379
- const { theme, mode } = useTheme();
7383
+ const { theme: theme$1, mode } = useTheme();
7380
7384
  const onDayPress = (day) => {
7381
7385
  const { dateString } = day;
7382
7386
  const { startDate, endDate } = selectedRange;
@@ -7399,38 +7403,35 @@ const DateRangePicker = (props) => {
7399
7403
  while (start < end) {
7400
7404
  start.setDate(start.getDate() + 1);
7401
7405
  markedDates[start.toISOString().split("T")[0]] = {
7402
- color: theme.SUCCESS,
7403
- textColor: theme.CONTENT_INVERTED
7406
+ color: theme.SUCCESS.dark,
7407
+ textColor: theme$1.CONTENT_INVERTED
7404
7408
  };
7405
7409
  }
7406
7410
  }
7407
7411
  if (startDate) {
7408
7412
  markedDates[startDate] = {
7409
7413
  startingDay: true,
7410
- textColor: theme.CONTENT_INVERTED,
7411
- customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
7412
- borderWidth: moderateScale(2),
7413
- 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
7414
7417
  }
7415
7418
  };
7416
7419
  }
7417
7420
  if (endDate) {
7418
7421
  markedDates[endDate] = {
7419
7422
  endingDay: true,
7420
- color: theme.SUCCESS,
7421
- textColor: theme.CONTENT_INVERTED,
7422
- customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
7423
- borderWidth: moderateScale(2),
7424
- 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
7425
7427
  }
7426
7428
  };
7427
7429
  markedDates[startDate] = {
7428
7430
  startingDay: true,
7429
- color: theme.SUCCESS,
7430
- textColor: theme.CONTENT_INVERTED,
7431
- customContainerStyle: mode === "dark" ? { backgroundColor: theme.SURFACE_INVERTED } : {
7432
- borderWidth: moderateScale(2),
7433
- 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
7434
7435
  }
7435
7436
  };
7436
7437
  }
@@ -7445,15 +7446,15 @@ const DateRangePicker = (props) => {
7445
7446
  markingType: "period",
7446
7447
  theme: {
7447
7448
  calendarBackground: "transparent",
7448
- arrowColor: theme.CONTENT_PRIMARY,
7449
- monthTextColor: theme.CONTENT_PRIMARY,
7450
- dayTextColor: theme.CONTENT_SECONDRY,
7451
- todayTextColor: theme.SUCCESS,
7452
- 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
7453
7454
  },
7454
7455
  style: {
7455
- backgroundColor: theme.SURFACE_TERTIARY,
7456
- color: theme.CONTENT_SECONDRY,
7456
+ backgroundColor: theme$1.SURFACE_SECONDARY,
7457
+ color: theme$1.CONTENT_SECONDRY,
7457
7458
  borderRadius: 0
7458
7459
  },
7459
7460
  onDayPress,
@@ -7469,9 +7470,9 @@ const DateRangePicker = (props) => {
7469
7470
  },
7470
7471
  containerStyle: {
7471
7472
  ...styles$d.applyButton,
7472
- backgroundColor: theme.SURFACE_INVERTED
7473
+ backgroundColor: theme$1.SURFACE_INVERTED
7473
7474
  },
7474
- textStyle: { color: theme.CONTENT_INVERTED },
7475
+ textStyle: { color: theme$1.CONTENT_INVERTED },
7475
7476
  disabled: isButtonDisabled
7476
7477
  }
7477
7478
  ));