@atlaskit/focus-ring 1.3.5 → 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 +36 -24
- 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 +6 -3
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
- package/tmp/api-report-tmp.d.ts +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,40 +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
|
+
|
|
9
|
+
## 1.3.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
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.
|
|
14
|
+
|
|
3
15
|
## 1.3.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`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`
|
|
8
20
|
|
|
9
21
|
## 1.3.4
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`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
|
|
14
26
|
|
|
15
27
|
## 1.3.3
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`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.
|
|
20
32
|
|
|
21
33
|
## 1.3.2
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
25
|
-
- [`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
|
|
26
38
|
|
|
27
39
|
## 1.3.1
|
|
28
40
|
|
|
29
41
|
### Patch Changes
|
|
30
42
|
|
|
31
|
-
- [`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`
|
|
32
44
|
|
|
33
45
|
## 1.3.0
|
|
34
46
|
|
|
35
47
|
### Minor Changes
|
|
36
48
|
|
|
37
|
-
- [`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
|
|
38
50
|
|
|
39
51
|
### Patch Changes
|
|
40
52
|
|
|
@@ -44,13 +56,13 @@
|
|
|
44
56
|
|
|
45
57
|
### Patch Changes
|
|
46
58
|
|
|
47
|
-
- [`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.
|
|
48
60
|
|
|
49
61
|
## 1.2.5
|
|
50
62
|
|
|
51
63
|
### Patch Changes
|
|
52
64
|
|
|
53
|
-
- [`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.
|
|
54
66
|
|
|
55
67
|
## 1.2.4
|
|
56
68
|
|
|
@@ -80,25 +92,25 @@
|
|
|
80
92
|
|
|
81
93
|
### Minor Changes
|
|
82
94
|
|
|
83
|
-
- [`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.
|
|
84
96
|
|
|
85
97
|
## 1.1.0
|
|
86
98
|
|
|
87
99
|
### Minor Changes
|
|
88
100
|
|
|
89
|
-
- [`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.
|
|
90
102
|
|
|
91
103
|
## 1.0.7
|
|
92
104
|
|
|
93
105
|
### Patch Changes
|
|
94
106
|
|
|
95
|
-
- [`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`
|
|
96
108
|
|
|
97
109
|
## 1.0.6
|
|
98
110
|
|
|
99
111
|
### Patch Changes
|
|
100
112
|
|
|
101
|
-
- [`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`.
|
|
102
114
|
|
|
103
115
|
## 1.0.5
|
|
104
116
|
|
|
@@ -110,7 +122,7 @@
|
|
|
110
122
|
|
|
111
123
|
### Patch Changes
|
|
112
124
|
|
|
113
|
-
- [`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
|
|
114
126
|
|
|
115
127
|
## 1.0.3
|
|
116
128
|
|
|
@@ -134,7 +146,7 @@
|
|
|
134
146
|
|
|
135
147
|
### Major Changes
|
|
136
148
|
|
|
137
|
-
- [`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.
|
|
138
150
|
|
|
139
151
|
### Minor Changes
|
|
140
152
|
|
|
@@ -158,21 +170,21 @@
|
|
|
158
170
|
|
|
159
171
|
### Patch Changes
|
|
160
172
|
|
|
161
|
-
- [`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.
|
|
162
174
|
- Updated dependencies
|
|
163
175
|
|
|
164
176
|
## 0.2.4
|
|
165
177
|
|
|
166
178
|
### Patch Changes
|
|
167
179
|
|
|
168
|
-
- [`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.
|
|
169
181
|
- Updated dependencies
|
|
170
182
|
|
|
171
183
|
## 0.2.3
|
|
172
184
|
|
|
173
185
|
### Patch Changes
|
|
174
186
|
|
|
175
|
-
- [`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.
|
|
176
188
|
|
|
177
189
|
## 0.2.2
|
|
178
190
|
|
|
@@ -190,7 +202,7 @@
|
|
|
190
202
|
|
|
191
203
|
### Minor Changes
|
|
192
204
|
|
|
193
|
-
- [`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.
|
|
194
206
|
- [`0dac09c47b6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dac09c47b6) - [ux] Colors are now sourced through tokens.
|
|
195
207
|
|
|
196
208
|
### Patch Changes
|
|
@@ -201,13 +213,13 @@
|
|
|
201
213
|
|
|
202
214
|
### Patch Changes
|
|
203
215
|
|
|
204
|
-
- [`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.
|
|
205
217
|
|
|
206
218
|
## 0.1.0
|
|
207
219
|
|
|
208
220
|
### Minor Changes
|
|
209
221
|
|
|
210
|
-
- [`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.
|
|
211
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.
|
|
212
224
|
|
|
213
225
|
### Patch Changes
|
|
@@ -218,19 +230,19 @@
|
|
|
218
230
|
|
|
219
231
|
### Patch Changes
|
|
220
232
|
|
|
221
|
-
- [`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**
|
|
222
234
|
|
|
223
235
|
## 0.0.3
|
|
224
236
|
|
|
225
237
|
### Patch Changes
|
|
226
238
|
|
|
227
|
-
- [`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
|
|
228
240
|
|
|
229
241
|
## 0.0.2
|
|
230
242
|
|
|
231
243
|
### Patch Changes
|
|
232
244
|
|
|
233
|
-
- [`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.
|
|
234
246
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
235
247
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
236
248
|
|
|
@@ -238,4 +250,4 @@
|
|
|
238
250
|
|
|
239
251
|
### Patch Changes
|
|
240
252
|
|
|
241
|
-
- [`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",
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
"atlassian": {
|
|
11
11
|
"team": "Design System Team",
|
|
12
12
|
"releaseModel": "continuous",
|
|
13
|
+
"productPushConsumption": [
|
|
14
|
+
"jira"
|
|
15
|
+
],
|
|
13
16
|
"website": {
|
|
14
17
|
"name": "Focus ring",
|
|
15
18
|
"category": "Components"
|
|
@@ -34,7 +37,7 @@
|
|
|
34
37
|
".": "./src/index.tsx"
|
|
35
38
|
},
|
|
36
39
|
"dependencies": {
|
|
37
|
-
"@atlaskit/tokens": "^1.
|
|
40
|
+
"@atlaskit/tokens": "^1.37.0",
|
|
38
41
|
"@babel/runtime": "^7.0.0",
|
|
39
42
|
"@emotion/react": "^11.7.1"
|
|
40
43
|
},
|
|
@@ -43,7 +46,7 @@
|
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
48
|
"@af/accessibility-testing": "*",
|
|
46
|
-
"@
|
|
49
|
+
"@af/visual-regression": "*",
|
|
47
50
|
"@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
|
|
48
51
|
"@testing-library/react": "^12.1.5",
|
|
49
52
|
"react-dom": "^16.8.0",
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED
package/dist/esm/version.json
DELETED
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
|
-
```
|