@rovula/ui 0.0.60 → 0.0.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovula/ui",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "main": "dist/cjs/bundle.js",
5
5
  "module": "dist/esm/bundle.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,6 +8,7 @@ import { Popover, PopoverContent, PopoverTrigger } from "../Popover/Popover";
8
8
  import { Modifiers } from "react-day-picker";
9
9
  import { InputProps, TextInput } from "../TextInput/TextInput";
10
10
  import { format } from "date-fns/format";
11
+ import { cn } from "@/utils/cn";
11
12
 
12
13
  type DatePickerProps = {
13
14
  date: Date | undefined;
@@ -37,7 +38,7 @@ const DatePicker: FC<DatePickerProps> = ({
37
38
  <div className="flex">
38
39
  <TextInput
39
40
  fullwidth
40
- id="2" // TODO
41
+ id="date-picker"
41
42
  readOnly
42
43
  label="Date"
43
44
  size="md"
@@ -47,6 +48,10 @@ const DatePicker: FC<DatePickerProps> = ({
47
48
  <CalendarIcon fill="inherit" className="cursor-pointer" />
48
49
  }
49
50
  {...textInputProps}
51
+ labelClassName={cn(
52
+ "pointer-events-none",
53
+ textInputProps?.labelClassName
54
+ )}
50
55
  />
51
56
  </div>
52
57
  </PopoverTrigger>