@dhis2-ui/calendar 10.1.1 → 10.1.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.
Files changed (2) hide show
  1. package/package.json +8 -8
  2. package/types/index.d.ts +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/calendar",
3
- "version": "10.1.1",
3
+ "version": "10.1.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.1.1",
37
- "@dhis2-ui/card": "10.1.1",
38
- "@dhis2-ui/input": "10.1.1",
39
- "@dhis2-ui/layer": "10.1.1",
40
- "@dhis2-ui/popper": "10.1.1",
36
+ "@dhis2-ui/button": "10.1.3",
37
+ "@dhis2-ui/card": "10.1.3",
38
+ "@dhis2-ui/input": "10.1.3",
39
+ "@dhis2-ui/layer": "10.1.3",
40
+ "@dhis2-ui/popper": "10.1.3",
41
41
  "@dhis2/multi-calendar-dates": "2.0.0",
42
42
  "@dhis2/prop-types": "^3.1.2",
43
- "@dhis2/ui-constants": "10.1.1",
44
- "@dhis2/ui-icons": "10.1.1",
43
+ "@dhis2/ui-constants": "10.1.3",
44
+ "@dhis2/ui-icons": "10.1.3",
45
45
  "classnames": "^2.3.1",
46
46
  "prop-types": "^15.7.2"
47
47
  },
package/types/index.d.ts CHANGED
@@ -58,6 +58,12 @@ export interface CalendarProps {
58
58
  export const Calendar: React.FC<CalendarProps>
59
59
 
60
60
  export type CalendarInputProps = Omit<InputFieldProps, 'type' | 'value'> &
61
- CalendarProps
61
+ CalendarProps & {
62
+ /**
63
+ * Optional format for the date. Determines how the date is displayed
64
+ * or processed. If not provided it supports both formats
65
+ */
66
+ format?: 'YYYY-MM-DD' | 'DD-MM-YYYY'
67
+ }
62
68
 
63
69
  export const CalendarInput: React.FC<CalendarInputProps>