@dhis2/ui 8.11.1 → 8.12.0
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/API.md +27 -0
- package/package.json +49 -49
package/API.md
CHANGED
|
@@ -204,6 +204,33 @@ import { SplitButton } from '@dhis2/ui'
|
|
|
204
204
|
|value|string|||Value associated with the button. Passed in object to onClick handler|
|
|
205
205
|
|onClick|function||||
|
|
206
206
|
|
|
207
|
+
### Calendar
|
|
208
|
+
|
|
209
|
+
#### Usage
|
|
210
|
+
|
|
211
|
+
**Note**: If possible, import the component from the main UI (`@dhis2/ui`) package.
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
```js
|
|
215
|
+
import { Calendar } from '@dhis2/ui'
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
#### Props
|
|
220
|
+
|
|
221
|
+
|Name|Type|Default|Required|Description|
|
|
222
|
+
|---|---|---|---|---|
|
|
223
|
+
|calendar|any||*|the calendar to use such gregory, ethiopic, nepali - full supported list here: https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/calendars.ts|
|
|
224
|
+
|onDateSelect|function||*|Called with signature `(null)` \|\| `({ dateCalendarString: string, dateCalendar: Temporal.ZonedDateTime })` with `dateCalendarString` being the stringified date in the specified calendar in the format `yyyy-MM-dd`|
|
|
225
|
+
|cellSize|string|`'32px'`||the size of a single cell in the table forming the calendar|
|
|
226
|
+
|date|string|||the currently selected date using an iso-like format YYYY-MM-DD, in the calendar system provided (not iso8601)|
|
|
227
|
+
|dir|'ltr' │ 'rtl'|||the direction of the library - internally the library will use rtl for rtl-languages but this can be overridden here for more control|
|
|
228
|
+
|locale|string|||any valid locale - if none provided, the internal library will fallback to the user locale (more info here: https://github.com/dhis2/multi-calendar-dates/blob/main/src/hooks/internal/useResolvedLocaleOptions.ts#L15)|
|
|
229
|
+
|numberingSystem|string|||numbering system to use - full list here https://github.com/dhis2/multi-calendar-dates/blob/main/src/constants/numberingSystems.ts|
|
|
230
|
+
|timeZone|string|||the timeZone to use|
|
|
231
|
+
|weekDayFormat|'narrow' │ 'short' │ 'long'|`'narrow'`||the format to display for the week day, i.e. Monday (long), Mon (short), M (narrow)|
|
|
232
|
+
|width|string|`'240px'`||the width of the calendar component|
|
|
233
|
+
|
|
207
234
|
### Card
|
|
208
235
|
|
|
209
236
|
#### Usage
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2/ui",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.12.0",
|
|
4
4
|
"main": "./build/cjs/index.js",
|
|
5
5
|
"module": "./build/es/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -20,54 +20,54 @@
|
|
|
20
20
|
"build": "d2-app-scripts build"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@dhis2-ui/alert": "8.
|
|
24
|
-
"@dhis2-ui/box": "8.
|
|
25
|
-
"@dhis2-ui/button": "8.
|
|
26
|
-
"@dhis2-ui/calendar": "8.
|
|
27
|
-
"@dhis2-ui/card": "8.
|
|
28
|
-
"@dhis2-ui/center": "8.
|
|
29
|
-
"@dhis2-ui/checkbox": "8.
|
|
30
|
-
"@dhis2-ui/chip": "8.
|
|
31
|
-
"@dhis2-ui/cover": "8.
|
|
32
|
-
"@dhis2-ui/css": "8.
|
|
33
|
-
"@dhis2-ui/divider": "8.
|
|
34
|
-
"@dhis2-ui/field": "8.
|
|
35
|
-
"@dhis2-ui/file-input": "8.
|
|
36
|
-
"@dhis2-ui/header-bar": "8.
|
|
37
|
-
"@dhis2-ui/help": "8.
|
|
38
|
-
"@dhis2-ui/input": "8.
|
|
39
|
-
"@dhis2-ui/intersection-detector": "8.
|
|
40
|
-
"@dhis2-ui/label": "8.
|
|
41
|
-
"@dhis2-ui/layer": "8.
|
|
42
|
-
"@dhis2-ui/legend": "8.
|
|
43
|
-
"@dhis2-ui/loader": "8.
|
|
44
|
-
"@dhis2-ui/logo": "8.
|
|
45
|
-
"@dhis2-ui/menu": "8.
|
|
46
|
-
"@dhis2-ui/modal": "8.
|
|
47
|
-
"@dhis2-ui/node": "8.
|
|
48
|
-
"@dhis2-ui/notice-box": "8.
|
|
49
|
-
"@dhis2-ui/organisation-unit-tree": "8.
|
|
50
|
-
"@dhis2-ui/pagination": "8.
|
|
51
|
-
"@dhis2-ui/popover": "8.
|
|
52
|
-
"@dhis2-ui/popper": "8.
|
|
53
|
-
"@dhis2-ui/portal": "8.
|
|
54
|
-
"@dhis2-ui/radio": "8.
|
|
55
|
-
"@dhis2-ui/required": "8.
|
|
56
|
-
"@dhis2-ui/segmented-control": "8.
|
|
57
|
-
"@dhis2-ui/select": "8.
|
|
58
|
-
"@dhis2-ui/selector-bar": "8.
|
|
59
|
-
"@dhis2-ui/sharing-dialog": "8.
|
|
60
|
-
"@dhis2-ui/switch": "8.
|
|
61
|
-
"@dhis2-ui/tab": "8.
|
|
62
|
-
"@dhis2-ui/table": "8.
|
|
63
|
-
"@dhis2-ui/tag": "8.
|
|
64
|
-
"@dhis2-ui/text-area": "8.
|
|
65
|
-
"@dhis2-ui/tooltip": "8.
|
|
66
|
-
"@dhis2-ui/transfer": "8.
|
|
67
|
-
"@dhis2-ui/user-avatar": "8.
|
|
68
|
-
"@dhis2/ui-constants": "8.
|
|
69
|
-
"@dhis2/ui-forms": "8.
|
|
70
|
-
"@dhis2/ui-icons": "8.
|
|
23
|
+
"@dhis2-ui/alert": "8.12.0",
|
|
24
|
+
"@dhis2-ui/box": "8.12.0",
|
|
25
|
+
"@dhis2-ui/button": "8.12.0",
|
|
26
|
+
"@dhis2-ui/calendar": "8.12.0",
|
|
27
|
+
"@dhis2-ui/card": "8.12.0",
|
|
28
|
+
"@dhis2-ui/center": "8.12.0",
|
|
29
|
+
"@dhis2-ui/checkbox": "8.12.0",
|
|
30
|
+
"@dhis2-ui/chip": "8.12.0",
|
|
31
|
+
"@dhis2-ui/cover": "8.12.0",
|
|
32
|
+
"@dhis2-ui/css": "8.12.0",
|
|
33
|
+
"@dhis2-ui/divider": "8.12.0",
|
|
34
|
+
"@dhis2-ui/field": "8.12.0",
|
|
35
|
+
"@dhis2-ui/file-input": "8.12.0",
|
|
36
|
+
"@dhis2-ui/header-bar": "8.12.0",
|
|
37
|
+
"@dhis2-ui/help": "8.12.0",
|
|
38
|
+
"@dhis2-ui/input": "8.12.0",
|
|
39
|
+
"@dhis2-ui/intersection-detector": "8.12.0",
|
|
40
|
+
"@dhis2-ui/label": "8.12.0",
|
|
41
|
+
"@dhis2-ui/layer": "8.12.0",
|
|
42
|
+
"@dhis2-ui/legend": "8.12.0",
|
|
43
|
+
"@dhis2-ui/loader": "8.12.0",
|
|
44
|
+
"@dhis2-ui/logo": "8.12.0",
|
|
45
|
+
"@dhis2-ui/menu": "8.12.0",
|
|
46
|
+
"@dhis2-ui/modal": "8.12.0",
|
|
47
|
+
"@dhis2-ui/node": "8.12.0",
|
|
48
|
+
"@dhis2-ui/notice-box": "8.12.0",
|
|
49
|
+
"@dhis2-ui/organisation-unit-tree": "8.12.0",
|
|
50
|
+
"@dhis2-ui/pagination": "8.12.0",
|
|
51
|
+
"@dhis2-ui/popover": "8.12.0",
|
|
52
|
+
"@dhis2-ui/popper": "8.12.0",
|
|
53
|
+
"@dhis2-ui/portal": "8.12.0",
|
|
54
|
+
"@dhis2-ui/radio": "8.12.0",
|
|
55
|
+
"@dhis2-ui/required": "8.12.0",
|
|
56
|
+
"@dhis2-ui/segmented-control": "8.12.0",
|
|
57
|
+
"@dhis2-ui/select": "8.12.0",
|
|
58
|
+
"@dhis2-ui/selector-bar": "8.12.0",
|
|
59
|
+
"@dhis2-ui/sharing-dialog": "8.12.0",
|
|
60
|
+
"@dhis2-ui/switch": "8.12.0",
|
|
61
|
+
"@dhis2-ui/tab": "8.12.0",
|
|
62
|
+
"@dhis2-ui/table": "8.12.0",
|
|
63
|
+
"@dhis2-ui/tag": "8.12.0",
|
|
64
|
+
"@dhis2-ui/text-area": "8.12.0",
|
|
65
|
+
"@dhis2-ui/tooltip": "8.12.0",
|
|
66
|
+
"@dhis2-ui/transfer": "8.12.0",
|
|
67
|
+
"@dhis2-ui/user-avatar": "8.12.0",
|
|
68
|
+
"@dhis2/ui-constants": "8.12.0",
|
|
69
|
+
"@dhis2/ui-forms": "8.12.0",
|
|
70
|
+
"@dhis2/ui-icons": "8.12.0",
|
|
71
71
|
"prop-types": "^15.7.2"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|