@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 +14 -0
- package/dist/types/field.d.ts +4 -0
- package/dist/types-ts4.5/field.d.ts +4 -0
- package/package.json +1 -1
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
|
package/dist/types/field.d.ts
CHANGED
|
@@ -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 {};
|