@atlaskit/form 14.2.7 → 14.3.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/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 14.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 14.3.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`cdecdf6402143`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cdecdf6402143) -
14
+ Adds `aria-required` to input fields when `isRequired` is used on field.
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies
19
+
3
20
  ## 14.2.7
4
21
 
5
22
  ### Patch Changes
package/dist/cjs/field.js CHANGED
@@ -249,6 +249,7 @@ function Field(props) {
249
249
  isDisabled: isDisabled,
250
250
  isInvalid: Boolean(state.error),
251
251
  isRequired: Boolean(props.isRequired),
252
+ 'aria-required': String(Boolean(props.isRequired)),
252
253
  'aria-invalid': state.error ? 'true' : 'false',
253
254
  'aria-describedby': getDescribedBy(),
254
255
  'aria-labelledby': "".concat(fieldId, "-label"),
@@ -232,6 +232,7 @@ export default function Field(props) {
232
232
  isDisabled,
233
233
  isInvalid: Boolean(state.error),
234
234
  isRequired: Boolean(props.isRequired),
235
+ 'aria-required': String(Boolean(props.isRequired)),
235
236
  'aria-invalid': state.error ? 'true' : 'false',
236
237
  'aria-describedby': getDescribedBy(),
237
238
  'aria-labelledby': `${fieldId}-label`,
package/dist/esm/field.js CHANGED
@@ -240,6 +240,7 @@ export default function Field(props) {
240
240
  isDisabled: isDisabled,
241
241
  isInvalid: Boolean(state.error),
242
242
  isRequired: Boolean(props.isRequired),
243
+ 'aria-required': String(Boolean(props.isRequired)),
243
244
  'aria-invalid': state.error ? 'true' : 'false',
244
245
  'aria-describedby': getDescribedBy(),
245
246
  'aria-labelledby': "".concat(fieldId, "-label"),
@@ -40,5 +40,5 @@ export interface RangeFieldProps {
40
40
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields#rangefield-reference)
41
41
  * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields#rangefield-reference)
42
42
  */
43
- declare const RangeField: ({ children, defaultValue, id, isDisabled, label, name }: RangeFieldProps) => React.JSX.Element;
43
+ declare const RangeField: ({ children, defaultValue, id, isDisabled, label, name, }: RangeFieldProps) => React.JSX.Element;
44
44
  export default RangeField;
@@ -40,5 +40,5 @@ export interface RangeFieldProps {
40
40
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields#rangefield-reference)
41
41
  * - [Usage](https://atlaskit.atlassian.com/packages/design-system/form/docs/fields#rangefield-reference)
42
42
  */
43
- declare const RangeField: ({ children, defaultValue, id, isDisabled, label, name }: RangeFieldProps) => React.JSX.Element;
43
+ declare const RangeField: ({ children, defaultValue, id, isDisabled, label, name, }: RangeFieldProps) => React.JSX.Element;
44
44
  export default RangeField;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "14.2.7",
3
+ "version": "14.3.1",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -25,13 +25,13 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@atlaskit/css": "^0.16.0",
29
- "@atlaskit/ds-lib": "^5.2.0",
28
+ "@atlaskit/css": "^0.17.0",
29
+ "@atlaskit/ds-lib": "^5.3.0",
30
30
  "@atlaskit/heading": "^5.2.0",
31
31
  "@atlaskit/icon": "^29.0.0",
32
32
  "@atlaskit/platform-feature-flags": "^1.1.0",
33
- "@atlaskit/primitives": "^16.2.0",
34
- "@atlaskit/tokens": "^8.1.0",
33
+ "@atlaskit/primitives": "^16.3.0",
34
+ "@atlaskit/tokens": "^8.3.0",
35
35
  "@babel/runtime": "^7.0.0",
36
36
  "final-form": "^4.20.3",
37
37
  "final-form-focus": "^1.1.2",