@ctlyst.id/internal-ui 3.5.0 → 3.5.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -3092,7 +3092,7 @@ var Datepicker = ({
3092
3092
  const hasMultipleMonthShow = ((_b = props == null ? void 0 : props.monthsShown) != null ? _b : 1) < 2;
3093
3093
  const component = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
3094
3094
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(styles_default, { showHeader: !hasMultipleMonthShow }),
3095
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3095
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(field_default, { label, isRequired, isError, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3096
3096
  import_react_datepicker.default,
3097
3097
  {
3098
3098
  id: id2,
@@ -3106,7 +3106,7 @@ var Datepicker = ({
3106
3106
  const { placement, y } = state;
3107
3107
  return {
3108
3108
  ...state,
3109
- y: placement.startsWith("bottom") ? y - 10 : y + 10
3109
+ y: placement.startsWith("bottom") ? y - 10 : y + 14
3110
3110
  // condition for auto placement
3111
3111
  };
3112
3112
  }
@@ -3115,8 +3115,6 @@ var Datepicker = ({
3115
3115
  customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3116
3116
  input_field_default,
3117
3117
  {
3118
- label,
3119
- isRequired,
3120
3118
  autoComplete: "off",
3121
3119
  isError,
3122
3120
  addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
@@ -3151,7 +3149,7 @@ var Datepicker = ({
3151
3149
  ...getTimeProps(),
3152
3150
  ...props
3153
3151
  }
3154
- )
3152
+ ) })
3155
3153
  ] });
3156
3154
  if (props.inline) {
3157
3155
  return component;