@atlaskit/form 14.4.0 → 15.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/form
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`903d3e8f3b8ad`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/903d3e8f3b8ad) -
8
+ Removes `aria-required` from use directly on field. It is automatically applied via `fieldProps`
9
+ when using `isRequired`, so this change is purely to ensure people appropriately apply
10
+ accessibility props to their fields without the false sense of security of an invalid use of
11
+ `aria-required`.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 14.4.0
4
18
 
5
19
  ### Minor Changes
@@ -97,6 +97,10 @@ export type FieldComponentProps<FieldValue, Element extends SupportedElements> =
97
97
  * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
98
98
  */
99
99
  testId?: string;
100
+ /**
101
+ * The `aria-required` prop is disallowed. It is automatically applied when using `isRequired` via `fieldProps`.
102
+ */
103
+ 'aria-required'?: never;
100
104
  };
101
105
  export default function Field<FieldValue = string, Element extends SupportedElements = HTMLInputElement>(props: FieldComponentProps<FieldValue, Element>): JSX.Element;
102
106
  export {};
@@ -97,6 +97,10 @@ export type FieldComponentProps<FieldValue, Element extends SupportedElements> =
97
97
  * A `testId` prop is provided for specified elements, which is a unique string that appears as a data attribute `data-testid` in the rendered code, serving as a hook for automated tests
98
98
  */
99
99
  testId?: string;
100
+ /**
101
+ * The `aria-required` prop is disallowed. It is automatically applied when using `isRequired` via `fieldProps`.
102
+ */
103
+ 'aria-required'?: never;
100
104
  };
101
105
  export default function Field<FieldValue = string, Element extends SupportedElements = HTMLInputElement>(props: FieldComponentProps<FieldValue, Element>): JSX.Element;
102
106
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/form",
3
- "version": "14.4.0",
3
+ "version": "15.0.0",
4
4
  "description": "A form allows users to input information.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"