@melv1c/ui-kit 1.5.0 → 1.5.3

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/README.md CHANGED
@@ -23,13 +23,13 @@ This library provides a collection of reusable, accessible UI components that fo
23
23
  ### Prerequisites
24
24
 
25
25
  - Node.js 22+
26
- - npm
26
+ - Bun
27
27
 
28
28
  ### Setup
29
29
 
30
30
  ```bash
31
- npm install
32
- npm run dev
31
+ bun install
32
+ bun run dev
33
33
  ```
34
34
 
35
35
  This starts the Storybook dev server on `http://localhost:6006`.
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
  )