@dhis2-ui/calendar 10.0.0-alpha.2 → 10.0.0-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/types/index.d.ts +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/calendar",
3
- "version": "10.0.0-alpha.2",
3
+ "version": "10.0.0-alpha.3",
4
4
  "description": "UI Calendar",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,15 +33,15 @@
33
33
  "styled-jsx": "^4"
34
34
  },
35
35
  "dependencies": {
36
- "@dhis2-ui/button": "10.0.0-alpha.2",
37
- "@dhis2-ui/card": "10.0.0-alpha.2",
38
- "@dhis2-ui/input": "10.0.0-alpha.2",
39
- "@dhis2-ui/layer": "10.0.0-alpha.2",
40
- "@dhis2-ui/popper": "10.0.0-alpha.2",
36
+ "@dhis2-ui/button": "10.0.0-alpha.3",
37
+ "@dhis2-ui/card": "10.0.0-alpha.3",
38
+ "@dhis2-ui/input": "10.0.0-alpha.3",
39
+ "@dhis2-ui/layer": "10.0.0-alpha.3",
40
+ "@dhis2-ui/popper": "10.0.0-alpha.3",
41
41
  "@dhis2/multi-calendar-dates": "2.0.0-alpha.2",
42
42
  "@dhis2/prop-types": "^3.1.2",
43
- "@dhis2/ui-constants": "10.0.0-alpha.2",
44
- "@dhis2/ui-icons": "10.0.0-alpha.2",
43
+ "@dhis2/ui-constants": "10.0.0-alpha.3",
44
+ "@dhis2/ui-icons": "10.0.0-alpha.3",
45
45
  "classnames": "^2.3.1",
46
46
  "prop-types": "^15.7.2"
47
47
  },
package/types/index.d.ts CHANGED
@@ -20,6 +20,11 @@ export interface CalendarProps {
20
20
  * the size of a single cell in the table forming the calendar
21
21
  */
22
22
  cellSize?: string
23
+
24
+ /**
25
+ * Add a "clear" button to delete the selected date
26
+ */
27
+ clearable?: boolean
23
28
  /**
24
29
  * the currently selected date using an iso-like format YYYY-MM-DD, in the calendar system provided (not iso8601)
25
30
  */
@@ -52,10 +57,7 @@ export interface CalendarProps {
52
57
 
53
58
  export const Calendar: React.FC<CalendarProps>
54
59
 
55
- export type CalendarInputProps = Omit<
56
- InputFieldProps,
57
- 'label' | 'type' | 'value'
58
- > &
60
+ export type CalendarInputProps = Omit<InputFieldProps, 'type' | 'value'> &
59
61
  CalendarProps
60
62
 
61
63
  export const CalendarInput: React.FC<CalendarInputProps>