@dhis2-ui/field 8.15.0-alpha.3 → 8.15.1
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 +7 -10
- package/types/index.d.ts +0 -97
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/field",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.1",
|
|
4
4
|
"description": "UI Field",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"main": "./build/cjs/index.js",
|
|
14
14
|
"module": "./build/es/index.js",
|
|
15
15
|
"exports": {
|
|
16
|
-
"types": "./types/index.d.ts",
|
|
17
16
|
"import": "./build/es/index.js",
|
|
18
17
|
"require": "./build/cjs/index.js"
|
|
19
18
|
},
|
|
@@ -33,21 +32,19 @@
|
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
34
|
"@dhis2/prop-types": "^3.1.2",
|
|
36
|
-
"@dhis2-ui/box": "8.15.
|
|
37
|
-
"@dhis2-ui/help": "8.15.
|
|
38
|
-
"@dhis2-ui/label": "8.15.
|
|
39
|
-
"@dhis2/ui-constants": "8.15.
|
|
35
|
+
"@dhis2-ui/box": "8.15.1",
|
|
36
|
+
"@dhis2-ui/help": "8.15.1",
|
|
37
|
+
"@dhis2-ui/label": "8.15.1",
|
|
38
|
+
"@dhis2/ui-constants": "8.15.1",
|
|
40
39
|
"classnames": "^2.3.1",
|
|
41
40
|
"prop-types": "^15.7.2"
|
|
42
41
|
},
|
|
43
42
|
"files": [
|
|
44
|
-
"build"
|
|
45
|
-
"types"
|
|
43
|
+
"build"
|
|
46
44
|
],
|
|
47
45
|
"devDependencies": {
|
|
48
46
|
"react": "16.13",
|
|
49
47
|
"react-dom": "16.13",
|
|
50
48
|
"styled-jsx": "^4.0.1"
|
|
51
|
-
}
|
|
52
|
-
"types": "types"
|
|
49
|
+
}
|
|
53
50
|
}
|
package/types/index.d.ts
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import * as React from 'react'
|
|
2
|
-
|
|
3
|
-
export interface FieldProps {
|
|
4
|
-
children?: React.ReactNode
|
|
5
|
-
className?: string
|
|
6
|
-
dataTest?: string
|
|
7
|
-
/**
|
|
8
|
-
* Disabled status, shown when mouse is over label
|
|
9
|
-
*/
|
|
10
|
-
disabled?: boolean
|
|
11
|
-
/**
|
|
12
|
-
* Field status. Mutually exclusive with `valid` and `warning` props
|
|
13
|
-
*/
|
|
14
|
-
error?: boolean
|
|
15
|
-
/**
|
|
16
|
-
* Useful text within the field
|
|
17
|
-
*/
|
|
18
|
-
helpText?: string
|
|
19
|
-
/**
|
|
20
|
-
* Label at the top of the field
|
|
21
|
-
*/
|
|
22
|
-
label?: string
|
|
23
|
-
/**
|
|
24
|
-
* `name` will become the target of the `for`/`htmlFor` attribute on the `<label>` element
|
|
25
|
-
*/
|
|
26
|
-
name?: string
|
|
27
|
-
/**
|
|
28
|
-
* Inidcates this field is required
|
|
29
|
-
*/
|
|
30
|
-
required?: boolean
|
|
31
|
-
/**
|
|
32
|
-
* Field status. Mutually exclusive with `error` and `warning` props
|
|
33
|
-
*/
|
|
34
|
-
valid?: boolean
|
|
35
|
-
/**
|
|
36
|
-
* Feedback given related to validation status of field
|
|
37
|
-
*/
|
|
38
|
-
validationText?: string
|
|
39
|
-
/**
|
|
40
|
-
* Field status. Mutually exclusive with `valid` and `error` props
|
|
41
|
-
*/
|
|
42
|
-
warning?: boolean
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export const Field: React.FC<FieldProps>
|
|
46
|
-
|
|
47
|
-
export interface FieldGroupProps {
|
|
48
|
-
children?: React.ReactNode
|
|
49
|
-
className?: string
|
|
50
|
-
dataTest?: string
|
|
51
|
-
/**
|
|
52
|
-
* Disables the form controls within
|
|
53
|
-
*/
|
|
54
|
-
disabled?: boolean
|
|
55
|
-
/**
|
|
56
|
-
* Applies 'error' styling to validation text for feedback. Mutually exclusive with `warning` and `valid` props
|
|
57
|
-
*/
|
|
58
|
-
error?: boolean
|
|
59
|
-
/**
|
|
60
|
-
* Useful instructions for the user
|
|
61
|
-
*/
|
|
62
|
-
helpText?: string
|
|
63
|
-
/**
|
|
64
|
-
* Labels the Field Group
|
|
65
|
-
*/
|
|
66
|
-
label?: string
|
|
67
|
-
/**
|
|
68
|
-
* Name associate with the Field Group. Passed in object as argument to event handlers
|
|
69
|
-
*/
|
|
70
|
-
name?: string
|
|
71
|
-
/**
|
|
72
|
-
* Adds an asterisk to indicate this field is required
|
|
73
|
-
*/
|
|
74
|
-
required?: boolean
|
|
75
|
-
/**
|
|
76
|
-
* Applies 'valid' styling to validation text for feedback. Mutually exclusive with `warning` and `error` props
|
|
77
|
-
*/
|
|
78
|
-
valid?: boolean
|
|
79
|
-
/**
|
|
80
|
-
* Adds text at the bottom of the field to provide validation feedback. Acquires styles from `valid`, `warning` and `error` statuses
|
|
81
|
-
*/
|
|
82
|
-
validationText?: string
|
|
83
|
-
/**
|
|
84
|
-
* Applies 'warning' styling to validation text for feedback. Mutually exclusive with `valid` and `error` props
|
|
85
|
-
*/
|
|
86
|
-
warning?: boolean
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export const FieldGroup: React.FC<FieldGroupProps>
|
|
90
|
-
|
|
91
|
-
export interface FieldSetProps {
|
|
92
|
-
children?: React.ReactNode
|
|
93
|
-
className?: string
|
|
94
|
-
dataTest?: string
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
export const FieldSet: React.FC<FieldSetProps>
|