@melv1c/ui-kit 1.5.0 → 1.5.1

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.cjs CHANGED
@@ -4404,6 +4404,7 @@ function DateTimePicker({
4404
4404
  placeholder = "Select date and time",
4405
4405
  showClear = true,
4406
4406
  disabled = false,
4407
+ disabledDates,
4407
4408
  className,
4408
4409
  formatDateTime
4409
4410
  }) {
@@ -4496,7 +4497,7 @@ function DateTimePicker({
4496
4497
  selected: date,
4497
4498
  captionLayout: "dropdown",
4498
4499
  onSelect: handleDateChange,
4499
- disabled
4500
+ disabled: disabledDates
4500
4501
  }
4501
4502
  ),
4502
4503
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-t p-3", children: [
@@ -4509,7 +4510,7 @@ function DateTimePicker({
4509
4510
  step: "60",
4510
4511
  value: formatTimeValue(date),
4511
4512
  onChange: handleTimeChange,
4512
- disabled,
4513
+ disabled: !date || disabled,
4513
4514
  className: "bg-background h-8 appearance-none [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
4514
4515
  }
4515
4516
  )