@dhis2-ui/switch 10.1.6 → 10.1.8

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.
@@ -111,12 +111,12 @@ SwitchField.propTypes = {
111
111
  value: _propTypes.default.string,
112
112
  /** Applies 'warning' styling to switch and validation text for feedback. Mutually exclusive with `valid` and `error` props */
113
113
  warning: _uiConstants.sharedPropTypes.statusPropType,
114
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
114
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
115
115
  onBlur: _propTypes.default.func,
116
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
116
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
117
117
  onChange: _propTypes.default.func,
118
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
118
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
119
119
  onFocus: _propTypes.default.func,
120
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
120
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
121
121
  onKeyDown: _propTypes.default.func
122
122
  };
@@ -103,13 +103,13 @@ SwitchField.propTypes = {
103
103
  value: PropTypes.string,
104
104
  /** Applies 'warning' styling to switch and validation text for feedback. Mutually exclusive with `valid` and `error` props */
105
105
  warning: sharedPropTypes.statusPropType,
106
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
106
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
107
107
  onBlur: PropTypes.func,
108
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
108
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
109
109
  onChange: PropTypes.func,
110
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
110
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
111
111
  onFocus: PropTypes.func,
112
- /** Called with signature ({ name: string, value: string, checked: bool }, event) */
112
+ /** Called with signature `({ name: string, value: string, checked: bool }, event)` */
113
113
  onKeyDown: PropTypes.func
114
114
  };
115
115
  export { SwitchField };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/switch",
3
- "version": "10.1.6",
3
+ "version": "10.1.8",
4
4
  "description": "UI Switch",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,9 +33,9 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/field": "10.1.6",
37
- "@dhis2-ui/required": "10.1.6",
38
- "@dhis2/ui-constants": "10.1.6",
36
+ "@dhis2-ui/field": "10.1.8",
37
+ "@dhis2-ui/required": "10.1.8",
38
+ "@dhis2/ui-constants": "10.1.8",
39
39
  "classnames": "^2.3.1",
40
40
  "prop-types": "^15.7.2"
41
41
  },
package/types/index.d.ts CHANGED
@@ -141,19 +141,19 @@ export interface SwitchFieldProps {
141
141
  */
142
142
  warning?: boolean
143
143
  /**
144
- * Called with signature ({ name: string, value: string, checked: bool }, event)
144
+ * Called with signature `({ name: string, value: string, checked: bool }, event)`
145
145
  */
146
146
  onBlur?: SwitchFocusHandler
147
147
  /**
148
- * Called with signature ({ name: string, value: string, checked: bool }, event)
148
+ * Called with signature `({ name: string, value: string, checked: bool }, event)`
149
149
  */
150
150
  onChange?: SwitchChangeHandler
151
151
  /**
152
- * Called with signature ({ name: string, value: string, checked: bool }, event)
152
+ * Called with signature `({ name: string, value: string, checked: bool }, event)`
153
153
  */
154
154
  onFocus?: SwitchFocusHandler
155
155
  /**
156
- * Called with signature ({ name: string, value: string, checked: bool }, event)
156
+ * Called with signature `({ name: string, value: string, checked: bool }, event)`
157
157
  */
158
158
  onKeyDown?: SwitchKeyHandler
159
159
  }