@ctlyst.id/internal-ui 4.1.4 → 4.1.5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.mjs CHANGED
@@ -2654,11 +2654,6 @@ var Styles = ({ showHeader }) => {
2654
2654
  width: 1px;
2655
2655
  white-space: nowrap;
2656
2656
  }
2657
- .react-datepicker__day.react-datepicker__day--in-range.react-datepicker__day--today{
2658
- border-radius:0px;
2659
- border-color:transparent;
2660
- background-color:var(--chakra-colors-primary-50);
2661
- }
2662
2657
  .react-datepicker__month-select,.react-datepicker__year-select {
2663
2658
  background-color:transparent;
2664
2659
  font-size:14px;
@@ -2752,6 +2747,9 @@ var Datepicker = ({
2752
2747
  {
2753
2748
  id: id2,
2754
2749
  name,
2750
+ onChangeRaw: (e) => {
2751
+ if (props.selectsRange) e == null ? void 0 : e.preventDefault();
2752
+ },
2755
2753
  selected,
2756
2754
  popperModifiers: [
2757
2755
  offset(4),
@@ -2772,9 +2770,7 @@ var Datepicker = ({
2772
2770
  {
2773
2771
  autoComplete: "off",
2774
2772
  isError,
2775
- onKeyPress: (e) => {
2776
- if (props.selectsRange) e.preventDefault();
2777
- },
2773
+ sx: props.selectsRange ? { caretColor: "transparent" } : {},
2778
2774
  addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
2779
2775
  /* @__PURE__ */ jsx27(Calendar, { size: 4, color: "neutral.400" }),
2780
2776
  value && !props.disabled && /* @__PURE__ */ jsx27(