@ctlyst.id/internal-ui 3.5.0 → 3.5.2

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/dist/index.mjs CHANGED
@@ -2746,7 +2746,7 @@ var Datepicker = ({
2746
2746
  const hasMultipleMonthShow = ((_b = props == null ? void 0 : props.monthsShown) != null ? _b : 1) < 2;
2747
2747
  const component = /* @__PURE__ */ jsxs10(Fragment2, { children: [
2748
2748
  /* @__PURE__ */ jsx27(styles_default, { showHeader: !hasMultipleMonthShow }),
2749
- /* @__PURE__ */ jsx27(
2749
+ /* @__PURE__ */ jsx27(field_default, { label, isRequired, isError, children: /* @__PURE__ */ jsx27(
2750
2750
  ReactDatePicker,
2751
2751
  {
2752
2752
  id: id2,
@@ -2760,7 +2760,7 @@ var Datepicker = ({
2760
2760
  const { placement, y } = state;
2761
2761
  return {
2762
2762
  ...state,
2763
- y: placement.startsWith("bottom") ? y - 10 : y + 10
2763
+ y: placement.startsWith("bottom") ? y - 10 : y + 14
2764
2764
  // condition for auto placement
2765
2765
  };
2766
2766
  }
@@ -2769,8 +2769,6 @@ var Datepicker = ({
2769
2769
  customInput: /* @__PURE__ */ jsx27(
2770
2770
  input_field_default,
2771
2771
  {
2772
- label,
2773
- isRequired,
2774
2772
  autoComplete: "off",
2775
2773
  isError,
2776
2774
  addOnRight: /* @__PURE__ */ jsxs10(InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
@@ -2805,7 +2803,7 @@ var Datepicker = ({
2805
2803
  ...getTimeProps(),
2806
2804
  ...props
2807
2805
  }
2808
- )
2806
+ ) })
2809
2807
  ] });
2810
2808
  if (props.inline) {
2811
2809
  return component;