@atlaskit/focus-ring 1.3.6 → 1.3.7
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 +31 -25
- package/README.md +0 -2
- package/constellation/index/examples.mdx +0 -2
- package/dist/cjs/focus-ring.js +1 -5
- package/dist/cjs/use-focus-ring.js +1 -5
- package/dist/es2019/focus-ring.js +0 -3
- package/dist/es2019/use-focus-ring.js +0 -3
- package/dist/esm/focus-ring.js +0 -3
- package/dist/esm/use-focus-ring.js +0 -3
- package/dist/types/focus-ring.d.ts +0 -3
- package/dist/types/use-focus-ring.d.ts +0 -3
- package/dist/types-ts4.5/focus-ring.d.ts +0 -3
- package/dist/types-ts4.5/use-focus-ring.d.ts +0 -3
- package/package.json +3 -3
- package/tmp/api-report-tmp.d.ts +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,46 +1,52 @@
|
|
|
1
1
|
# @atlaskit/focus-ring
|
|
2
2
|
|
|
3
|
+
## 1.3.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#72130](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72130) [`b037e5451037`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b037e5451037) - Update new button text color fallback for default theme (non-token) to match that of old button current text color
|
|
8
|
+
|
|
3
9
|
## 1.3.6
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
6
12
|
|
|
7
|
-
- [`1e90520801a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e90520801a) - Added this package into push model consumption.
|
|
13
|
+
- [#39309](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39309) [`1e90520801a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e90520801a) - Added this package into push model consumption.
|
|
8
14
|
|
|
9
15
|
## 1.3.5
|
|
10
16
|
|
|
11
17
|
### Patch Changes
|
|
12
18
|
|
|
13
|
-
- [`63ee052ee1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63ee052ee1b) - Fix focus-ring border width token with `border.width.outline`
|
|
19
|
+
- [#38098](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38098) [`63ee052ee1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63ee052ee1b) - Fix focus-ring border width token with `border.width.outline`
|
|
14
20
|
|
|
15
21
|
## 1.3.4
|
|
16
22
|
|
|
17
23
|
### Patch Changes
|
|
18
24
|
|
|
19
|
-
- [`ce22a54e852`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce22a54e852) - [ux] update focus ring outline border.focused fallback to B200 to meet contrast
|
|
25
|
+
- [#37186](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37186) [`ce22a54e852`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce22a54e852) - [ux] update focus ring outline border.focused fallback to B200 to meet contrast
|
|
20
26
|
|
|
21
27
|
## 1.3.3
|
|
22
28
|
|
|
23
29
|
### Patch Changes
|
|
24
30
|
|
|
25
|
-
- [`b1bdec7cce2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1bdec7cce2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
31
|
+
- [#32935](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32935) [`b1bdec7cce2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b1bdec7cce2) - Internal change to enforce token usage for spacing properties. There is no expected visual or behaviour change.
|
|
26
32
|
|
|
27
33
|
## 1.3.2
|
|
28
34
|
|
|
29
35
|
### Patch Changes
|
|
30
36
|
|
|
31
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
37
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
32
38
|
|
|
33
39
|
## 1.3.1
|
|
34
40
|
|
|
35
41
|
### Patch Changes
|
|
36
42
|
|
|
37
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
43
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
38
44
|
|
|
39
45
|
## 1.3.0
|
|
40
46
|
|
|
41
47
|
### Minor Changes
|
|
42
48
|
|
|
43
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
49
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
44
50
|
|
|
45
51
|
### Patch Changes
|
|
46
52
|
|
|
@@ -50,13 +56,13 @@
|
|
|
50
56
|
|
|
51
57
|
### Patch Changes
|
|
52
58
|
|
|
53
|
-
- [`c23cf0b085d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c23cf0b085d) - Adds display name to component for React devtools debugging.
|
|
59
|
+
- [#31299](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31299) [`c23cf0b085d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c23cf0b085d) - Adds display name to component for React devtools debugging.
|
|
54
60
|
|
|
55
61
|
## 1.2.5
|
|
56
62
|
|
|
57
63
|
### Patch Changes
|
|
58
64
|
|
|
59
|
-
- [`7f5f23dcb68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f5f23dcb68) - Introduce shape tokens to some packages.
|
|
65
|
+
- [#30125](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30125) [`7f5f23dcb68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f5f23dcb68) - Introduce shape tokens to some packages.
|
|
60
66
|
|
|
61
67
|
## 1.2.4
|
|
62
68
|
|
|
@@ -86,25 +92,25 @@
|
|
|
86
92
|
|
|
87
93
|
### Minor Changes
|
|
88
94
|
|
|
89
|
-
- [`71bf011db22`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71bf011db22) - Focus ring inset styles are now applied via outline - consistent with offset styles.
|
|
95
|
+
- [#26244](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26244) [`71bf011db22`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71bf011db22) - Focus ring inset styles are now applied via outline - consistent with offset styles.
|
|
90
96
|
|
|
91
97
|
## 1.1.0
|
|
92
98
|
|
|
93
99
|
### Minor Changes
|
|
94
100
|
|
|
95
|
-
- [`b5d79ded842`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5d79ded842) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
101
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`b5d79ded842`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5d79ded842) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
96
102
|
|
|
97
103
|
## 1.0.7
|
|
98
104
|
|
|
99
105
|
### Patch Changes
|
|
100
106
|
|
|
101
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
107
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
102
108
|
|
|
103
109
|
## 1.0.6
|
|
104
110
|
|
|
105
111
|
### Patch Changes
|
|
106
112
|
|
|
107
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
113
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
108
114
|
|
|
109
115
|
## 1.0.5
|
|
110
116
|
|
|
@@ -116,7 +122,7 @@
|
|
|
116
122
|
|
|
117
123
|
### Patch Changes
|
|
118
124
|
|
|
119
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
125
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
120
126
|
|
|
121
127
|
## 1.0.3
|
|
122
128
|
|
|
@@ -140,7 +146,7 @@
|
|
|
140
146
|
|
|
141
147
|
### Major Changes
|
|
142
148
|
|
|
143
|
-
- [`3e1a93c6b67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3e1a93c6b67) - Releases FocusRing to v1.
|
|
149
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`3e1a93c6b67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3e1a93c6b67) - Releases FocusRing to v1.
|
|
144
150
|
|
|
145
151
|
### Minor Changes
|
|
146
152
|
|
|
@@ -164,21 +170,21 @@
|
|
|
164
170
|
|
|
165
171
|
### Patch Changes
|
|
166
172
|
|
|
167
|
-
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
173
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
168
174
|
- Updated dependencies
|
|
169
175
|
|
|
170
176
|
## 0.2.4
|
|
171
177
|
|
|
172
178
|
### Patch Changes
|
|
173
179
|
|
|
174
|
-
- [`6c1c909296d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c1c909296d) - [ux] When composing elements that define class name they will now be correctly retained.
|
|
180
|
+
- [#14777](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14777) [`6c1c909296d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c1c909296d) - [ux] When composing elements that define class name they will now be correctly retained.
|
|
175
181
|
- Updated dependencies
|
|
176
182
|
|
|
177
183
|
## 0.2.3
|
|
178
184
|
|
|
179
185
|
### Patch Changes
|
|
180
186
|
|
|
181
|
-
- [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
|
|
187
|
+
- [#15632](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15632) [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
|
|
182
188
|
|
|
183
189
|
## 0.2.2
|
|
184
190
|
|
|
@@ -196,7 +202,7 @@
|
|
|
196
202
|
|
|
197
203
|
### Minor Changes
|
|
198
204
|
|
|
199
|
-
- [`c765dce3afb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c765dce3afb) - [ux] Focus Ring now exposes an additional prop `isInset` to support inset focus states; for example on inputs, or textfields.
|
|
205
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`c765dce3afb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c765dce3afb) - [ux] Focus Ring now exposes an additional prop `isInset` to support inset focus states; for example on inputs, or textfields.
|
|
200
206
|
- [`0dac09c47b6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dac09c47b6) - [ux] Colors are now sourced through tokens.
|
|
201
207
|
|
|
202
208
|
### Patch Changes
|
|
@@ -207,13 +213,13 @@
|
|
|
207
213
|
|
|
208
214
|
### Patch Changes
|
|
209
215
|
|
|
210
|
-
- [`9c9296f2959`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c9296f2959) - Fix bug where the package was being exported from the wrong file.
|
|
216
|
+
- [#13232](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13232) [`9c9296f2959`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c9296f2959) - Fix bug where the package was being exported from the wrong file.
|
|
211
217
|
|
|
212
218
|
## 0.1.0
|
|
213
219
|
|
|
214
220
|
### Minor Changes
|
|
215
221
|
|
|
216
|
-
- [`5ab09801cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ab09801cfa) - [ux] Updates focus-ring to use an offset box-shadow for its focus state.
|
|
222
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`5ab09801cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ab09801cfa) - [ux] Updates focus-ring to use an offset box-shadow for its focus state.
|
|
217
223
|
- [`adaa7913de0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/adaa7913de0) - Initial release for the package. A Focus Ring can be used to compose focusable elements with a simple composable API.
|
|
218
224
|
|
|
219
225
|
### Patch Changes
|
|
@@ -224,19 +230,19 @@
|
|
|
224
230
|
|
|
225
231
|
### Patch Changes
|
|
226
232
|
|
|
227
|
-
- [`229b32842b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/229b32842b5) - Fix .npmignore and tsconfig.json for **tests**
|
|
233
|
+
- [#8306](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8306) [`229b32842b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/229b32842b5) - Fix .npmignore and tsconfig.json for **tests**
|
|
228
234
|
|
|
229
235
|
## 0.0.3
|
|
230
236
|
|
|
231
237
|
### Patch Changes
|
|
232
238
|
|
|
233
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
239
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
234
240
|
|
|
235
241
|
## 0.0.2
|
|
236
242
|
|
|
237
243
|
### Patch Changes
|
|
238
244
|
|
|
239
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
245
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
240
246
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
241
247
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
242
248
|
|
|
@@ -244,4 +250,4 @@
|
|
|
244
250
|
|
|
245
251
|
### Patch Changes
|
|
246
252
|
|
|
247
|
-
- [`b443b5a60f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b443b5a60f) - Renamed template package
|
|
253
|
+
- [#4967](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4967) [`b443b5a60f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b443b5a60f) - Renamed template package
|
package/README.md
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
A focus ring is used to visually indicate the currently focused item.
|
|
4
4
|
|
|
5
|
-
This component has accessibility issues that we are working to resolve. Do not use without support from the Atlassian Design System accessibility team.
|
|
6
|
-
|
|
7
5
|
## Usage
|
|
8
6
|
|
|
9
7
|
`import FocusRing from '@atlaskit/focus-ring';`
|
package/dist/cjs/focus-ring.js
CHANGED
|
@@ -48,9 +48,6 @@ var insetFocusRingStyles = (0, _react2.css)({
|
|
|
48
48
|
*
|
|
49
49
|
* A focus ring visually indicates the currently focused item.
|
|
50
50
|
*
|
|
51
|
-
* There are known accessibility issues with this component.
|
|
52
|
-
* Do not use without assistance from the Design System accessibility team.
|
|
53
|
-
*
|
|
54
51
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/focus-ring)
|
|
55
52
|
*
|
|
56
53
|
* @example
|
|
@@ -85,5 +82,4 @@ var FocusRing = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
85
82
|
});
|
|
86
83
|
});
|
|
87
84
|
FocusRing.displayName = 'FocusRing';
|
|
88
|
-
var _default = FocusRing;
|
|
89
|
-
exports.default = _default;
|
|
85
|
+
var _default = exports.default = FocusRing;
|
|
@@ -10,9 +10,6 @@ var _react = require("react");
|
|
|
10
10
|
/**
|
|
11
11
|
* __Use focus ring__
|
|
12
12
|
*
|
|
13
|
-
* This component has accessibility issues that we are working to resolve.
|
|
14
|
-
* Do not use without support from the Atlassian Design System accessibility team.
|
|
15
|
-
*
|
|
16
13
|
* The useFocusRing hook manages focus in the rare cases where the focus ring’s visual application and the element that takes focus differ.
|
|
17
14
|
* This is not typically a good practice for accessibility, so don’t do this unless you’ve consulted with the accessibility team.
|
|
18
15
|
*
|
|
@@ -36,5 +33,4 @@ var useFocusRing = function useFocusRing() {
|
|
|
36
33
|
focusProps: focusProps.current
|
|
37
34
|
};
|
|
38
35
|
};
|
|
39
|
-
var _default = useFocusRing;
|
|
40
|
-
exports.default = _default;
|
|
36
|
+
var _default = exports.default = useFocusRing;
|
|
@@ -41,9 +41,6 @@ const insetFocusRingStyles = css({
|
|
|
41
41
|
*
|
|
42
42
|
* A focus ring visually indicates the currently focused item.
|
|
43
43
|
*
|
|
44
|
-
* There are known accessibility issues with this component.
|
|
45
|
-
* Do not use without assistance from the Design System accessibility team.
|
|
46
|
-
*
|
|
47
44
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/focus-ring)
|
|
48
45
|
*
|
|
49
46
|
* @example
|
|
@@ -2,9 +2,6 @@ import { useRef, useState } from 'react';
|
|
|
2
2
|
/**
|
|
3
3
|
* __Use focus ring__
|
|
4
4
|
*
|
|
5
|
-
* This component has accessibility issues that we are working to resolve.
|
|
6
|
-
* Do not use without support from the Atlassian Design System accessibility team.
|
|
7
|
-
*
|
|
8
5
|
* The useFocusRing hook manages focus in the rare cases where the focus ring’s visual application and the element that takes focus differ.
|
|
9
6
|
* This is not typically a good practice for accessibility, so don’t do this unless you’ve consulted with the accessibility team.
|
|
10
7
|
*
|
package/dist/esm/focus-ring.js
CHANGED
|
@@ -41,9 +41,6 @@ var insetFocusRingStyles = css({
|
|
|
41
41
|
*
|
|
42
42
|
* A focus ring visually indicates the currently focused item.
|
|
43
43
|
*
|
|
44
|
-
* There are known accessibility issues with this component.
|
|
45
|
-
* Do not use without assistance from the Design System accessibility team.
|
|
46
|
-
*
|
|
47
44
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/focus-ring)
|
|
48
45
|
*
|
|
49
46
|
* @example
|
|
@@ -3,9 +3,6 @@ import { useRef, useState } from 'react';
|
|
|
3
3
|
/**
|
|
4
4
|
* __Use focus ring__
|
|
5
5
|
*
|
|
6
|
-
* This component has accessibility issues that we are working to resolve.
|
|
7
|
-
* Do not use without support from the Atlassian Design System accessibility team.
|
|
8
|
-
*
|
|
9
6
|
* The useFocusRing hook manages focus in the rare cases where the focus ring’s visual application and the element that takes focus differ.
|
|
10
7
|
* This is not typically a good practice for accessibility, so don’t do this unless you’ve consulted with the accessibility team.
|
|
11
8
|
*
|
|
@@ -6,9 +6,6 @@ import type { FocusRingProps } from './types';
|
|
|
6
6
|
*
|
|
7
7
|
* A focus ring visually indicates the currently focused item.
|
|
8
8
|
*
|
|
9
|
-
* There are known accessibility issues with this component.
|
|
10
|
-
* Do not use without assistance from the Design System accessibility team.
|
|
11
|
-
*
|
|
12
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/focus-ring)
|
|
13
10
|
*
|
|
14
11
|
* @example
|
|
@@ -2,9 +2,6 @@ import type { FocusEventHandlers, FocusState } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* __Use focus ring__
|
|
4
4
|
*
|
|
5
|
-
* This component has accessibility issues that we are working to resolve.
|
|
6
|
-
* Do not use without support from the Atlassian Design System accessibility team.
|
|
7
|
-
*
|
|
8
5
|
* The useFocusRing hook manages focus in the rare cases where the focus ring’s visual application and the element that takes focus differ.
|
|
9
6
|
* This is not typically a good practice for accessibility, so don’t do this unless you’ve consulted with the accessibility team.
|
|
10
7
|
*
|
|
@@ -6,9 +6,6 @@ import type { FocusRingProps } from './types';
|
|
|
6
6
|
*
|
|
7
7
|
* A focus ring visually indicates the currently focused item.
|
|
8
8
|
*
|
|
9
|
-
* There are known accessibility issues with this component.
|
|
10
|
-
* Do not use without assistance from the Design System accessibility team.
|
|
11
|
-
*
|
|
12
9
|
* - [Code](https://atlaskit.atlassian.com/packages/design-system/focus-ring)
|
|
13
10
|
*
|
|
14
11
|
* @example
|
|
@@ -2,9 +2,6 @@ import type { FocusEventHandlers, FocusState } from './types';
|
|
|
2
2
|
/**
|
|
3
3
|
* __Use focus ring__
|
|
4
4
|
*
|
|
5
|
-
* This component has accessibility issues that we are working to resolve.
|
|
6
|
-
* Do not use without support from the Atlassian Design System accessibility team.
|
|
7
|
-
*
|
|
8
5
|
* The useFocusRing hook manages focus in the rare cases where the focus ring’s visual application and the element that takes focus differ.
|
|
9
6
|
* This is not typically a good practice for accessibility, so don’t do this unless you’ve consulted with the accessibility team.
|
|
10
7
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/focus-ring",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"description": "A focus ring is used to indicate the currently focused item.",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
".": "./src/index.tsx"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.37.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
43
43
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@af/accessibility-testing": "*",
|
|
49
|
-
"@
|
|
49
|
+
"@af/visual-regression": "*",
|
|
50
50
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
51
51
|
"@testing-library/react": "^12.1.5",
|
|
52
52
|
"react-dom": "^16.8.0",
|
package/tmp/api-report-tmp.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
## API Report File for "@atlaskit/focus-ring"
|
|
2
|
-
|
|
3
|
-
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
-
|
|
5
|
-
```ts
|
|
6
|
-
|
|
7
|
-
import { FC } from 'react';
|
|
8
|
-
import type { FocusEventHandler } from 'react';
|
|
9
|
-
import type { ReactElement } from 'react';
|
|
10
|
-
|
|
11
|
-
// @public (undocumented)
|
|
12
|
-
export interface FocusEventHandlers {
|
|
13
|
-
// (undocumented)
|
|
14
|
-
onBlur: FocusEventHandler;
|
|
15
|
-
// (undocumented)
|
|
16
|
-
onFocus: FocusEventHandler;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// @public
|
|
20
|
-
const FocusRing: FC<FocusRingProps>;
|
|
21
|
-
export default FocusRing;
|
|
22
|
-
|
|
23
|
-
// @public (undocumented)
|
|
24
|
-
export interface FocusRingProps {
|
|
25
|
-
children: ReactElement;
|
|
26
|
-
focus?: FocusState;
|
|
27
|
-
isInset?: boolean;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// @public (undocumented)
|
|
31
|
-
export type FocusState = 'off' | 'on';
|
|
32
|
-
|
|
33
|
-
// @public
|
|
34
|
-
export const useFocusRing: (initialState?: FocusState) => {
|
|
35
|
-
readonly focusState: "off" | "on";
|
|
36
|
-
readonly focusProps: FocusEventHandlers;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// (No @packageDocumentation comment for this package)
|
|
40
|
-
|
|
41
|
-
```
|