@mirohq/design-system-calendar 0.1.48 → 0.1.50

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +12 -1
  2. package/package.json +3 -3
package/dist/types.d.ts CHANGED
@@ -552,4 +552,15 @@ interface CalendarProps extends Omit<StyledCalendarProps, 'defaultValue' | 'onCh
552
552
  }
553
553
  declare const Calendar: React.ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
554
554
 
555
- export { Calendar, PredefinedRange as CalendarPredefinedRange, CalendarProps };
555
+ interface RangePickerProps extends Omit<CalendarProps, 'picker' | 'defaultValue' | 'onChange'> {
556
+ /**
557
+ * Value given for already pre-selected date
558
+ */
559
+ defaultValue?: DateRange$1;
560
+ /**
561
+ * Event handler called when the date value changes
562
+ */
563
+ onChange?: (value: DateRange$1) => void;
564
+ }
565
+
566
+ export { Calendar, PredefinedRange as CalendarPredefinedRange, CalendarProps, RangePickerProps as CalendarRangePickerProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mirohq/design-system-calendar",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
4
4
  "description": "",
5
5
  "author": "Miro",
6
6
  "source": "src/index.ts",
@@ -30,9 +30,9 @@
30
30
  "@react-types/datepicker": "^3.4.0",
31
31
  "react-aria": "^3.25.0",
32
32
  "react-stately": "^3.23.0",
33
- "@mirohq/design-system-button": "^3.1.32",
33
+ "@mirohq/design-system-button": "^3.1.34",
34
34
  "@mirohq/design-system-flex": "^2.1.34",
35
- "@mirohq/design-system-icons": "^0.33.0",
35
+ "@mirohq/design-system-icons": "^0.33.2",
36
36
  "@mirohq/design-system-stitches": "^2.6.0",
37
37
  "@mirohq/design-system-primitive": "^1.1.1"
38
38
  },