@atlaskit/focus-ring 1.3.6 → 1.3.8
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 +37 -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 +5 -5
- package/tmp/api-report-tmp.d.ts +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,46 +1,58 @@
|
|
|
1
1
|
# @atlaskit/focus-ring
|
|
2
2
|
|
|
3
|
+
## 1.3.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
|
+
|
|
9
|
+
## 1.3.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#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
|
|
14
|
+
|
|
3
15
|
## 1.3.6
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`1e90520801a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1e90520801a) - Added this package into push model consumption.
|
|
19
|
+
- [#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
20
|
|
|
9
21
|
## 1.3.5
|
|
10
22
|
|
|
11
23
|
### Patch Changes
|
|
12
24
|
|
|
13
|
-
- [`63ee052ee1b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/63ee052ee1b) - Fix focus-ring border width token with `border.width.outline`
|
|
25
|
+
- [#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
26
|
|
|
15
27
|
## 1.3.4
|
|
16
28
|
|
|
17
29
|
### Patch Changes
|
|
18
30
|
|
|
19
|
-
- [`ce22a54e852`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ce22a54e852) - [ux] update focus ring outline border.focused fallback to B200 to meet contrast
|
|
31
|
+
- [#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
32
|
|
|
21
33
|
## 1.3.3
|
|
22
34
|
|
|
23
35
|
### Patch Changes
|
|
24
36
|
|
|
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.
|
|
37
|
+
- [#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
38
|
|
|
27
39
|
## 1.3.2
|
|
28
40
|
|
|
29
41
|
### Patch Changes
|
|
30
42
|
|
|
31
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
43
|
+
- [#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
44
|
|
|
33
45
|
## 1.3.1
|
|
34
46
|
|
|
35
47
|
### Patch Changes
|
|
36
48
|
|
|
37
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
49
|
+
- [#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
50
|
|
|
39
51
|
## 1.3.0
|
|
40
52
|
|
|
41
53
|
### Minor Changes
|
|
42
54
|
|
|
43
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
55
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
44
56
|
|
|
45
57
|
### Patch Changes
|
|
46
58
|
|
|
@@ -50,13 +62,13 @@
|
|
|
50
62
|
|
|
51
63
|
### Patch Changes
|
|
52
64
|
|
|
53
|
-
- [`c23cf0b085d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c23cf0b085d) - Adds display name to component for React devtools debugging.
|
|
65
|
+
- [#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
66
|
|
|
55
67
|
## 1.2.5
|
|
56
68
|
|
|
57
69
|
### Patch Changes
|
|
58
70
|
|
|
59
|
-
- [`7f5f23dcb68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f5f23dcb68) - Introduce shape tokens to some packages.
|
|
71
|
+
- [#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
72
|
|
|
61
73
|
## 1.2.4
|
|
62
74
|
|
|
@@ -86,25 +98,25 @@
|
|
|
86
98
|
|
|
87
99
|
### Minor Changes
|
|
88
100
|
|
|
89
|
-
- [`71bf011db22`](https://bitbucket.org/atlassian/atlassian-frontend/commits/71bf011db22) - Focus ring inset styles are now applied via outline - consistent with offset styles.
|
|
101
|
+
- [#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
102
|
|
|
91
103
|
## 1.1.0
|
|
92
104
|
|
|
93
105
|
### Minor Changes
|
|
94
106
|
|
|
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.
|
|
107
|
+
- [#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
108
|
|
|
97
109
|
## 1.0.7
|
|
98
110
|
|
|
99
111
|
### Patch Changes
|
|
100
112
|
|
|
101
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
113
|
+
- [#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
114
|
|
|
103
115
|
## 1.0.6
|
|
104
116
|
|
|
105
117
|
### Patch Changes
|
|
106
118
|
|
|
107
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
119
|
+
- [#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
120
|
|
|
109
121
|
## 1.0.5
|
|
110
122
|
|
|
@@ -116,7 +128,7 @@
|
|
|
116
128
|
|
|
117
129
|
### Patch Changes
|
|
118
130
|
|
|
119
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
131
|
+
- [#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
132
|
|
|
121
133
|
## 1.0.3
|
|
122
134
|
|
|
@@ -140,7 +152,7 @@
|
|
|
140
152
|
|
|
141
153
|
### Major Changes
|
|
142
154
|
|
|
143
|
-
- [`3e1a93c6b67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3e1a93c6b67) - Releases FocusRing to v1.
|
|
155
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`3e1a93c6b67`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3e1a93c6b67) - Releases FocusRing to v1.
|
|
144
156
|
|
|
145
157
|
### Minor Changes
|
|
146
158
|
|
|
@@ -164,21 +176,21 @@
|
|
|
164
176
|
|
|
165
177
|
### Patch Changes
|
|
166
178
|
|
|
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.
|
|
179
|
+
- [#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
180
|
- Updated dependencies
|
|
169
181
|
|
|
170
182
|
## 0.2.4
|
|
171
183
|
|
|
172
184
|
### Patch Changes
|
|
173
185
|
|
|
174
|
-
- [`6c1c909296d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c1c909296d) - [ux] When composing elements that define class name they will now be correctly retained.
|
|
186
|
+
- [#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
187
|
- Updated dependencies
|
|
176
188
|
|
|
177
189
|
## 0.2.3
|
|
178
190
|
|
|
179
191
|
### Patch Changes
|
|
180
192
|
|
|
181
|
-
- [`34282240102`](https://bitbucket.org/atlassian/atlassian-frontend/commits/34282240102) - Adds explicit type to button usages components.
|
|
193
|
+
- [#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
194
|
|
|
183
195
|
## 0.2.2
|
|
184
196
|
|
|
@@ -196,7 +208,7 @@
|
|
|
196
208
|
|
|
197
209
|
### Minor Changes
|
|
198
210
|
|
|
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.
|
|
211
|
+
- [#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
212
|
- [`0dac09c47b6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0dac09c47b6) - [ux] Colors are now sourced through tokens.
|
|
201
213
|
|
|
202
214
|
### Patch Changes
|
|
@@ -207,13 +219,13 @@
|
|
|
207
219
|
|
|
208
220
|
### Patch Changes
|
|
209
221
|
|
|
210
|
-
- [`9c9296f2959`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c9296f2959) - Fix bug where the package was being exported from the wrong file.
|
|
222
|
+
- [#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
223
|
|
|
212
224
|
## 0.1.0
|
|
213
225
|
|
|
214
226
|
### Minor Changes
|
|
215
227
|
|
|
216
|
-
- [`5ab09801cfa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5ab09801cfa) - [ux] Updates focus-ring to use an offset box-shadow for its focus state.
|
|
228
|
+
- [#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
229
|
- [`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
230
|
|
|
219
231
|
### Patch Changes
|
|
@@ -224,19 +236,19 @@
|
|
|
224
236
|
|
|
225
237
|
### Patch Changes
|
|
226
238
|
|
|
227
|
-
- [`229b32842b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/229b32842b5) - Fix .npmignore and tsconfig.json for **tests**
|
|
239
|
+
- [#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
240
|
|
|
229
241
|
## 0.0.3
|
|
230
242
|
|
|
231
243
|
### Patch Changes
|
|
232
244
|
|
|
233
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
245
|
+
- [#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
246
|
|
|
235
247
|
## 0.0.2
|
|
236
248
|
|
|
237
249
|
### Patch Changes
|
|
238
250
|
|
|
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.
|
|
251
|
+
- [#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
252
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
241
253
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
242
254
|
|
|
@@ -244,4 +256,4 @@
|
|
|
244
256
|
|
|
245
257
|
### Patch Changes
|
|
246
258
|
|
|
247
|
-
- [`b443b5a60f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b443b5a60f) - Renamed template package
|
|
259
|
+
- [#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.8",
|
|
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.42.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
43
43
|
},
|
|
@@ -46,11 +46,11 @@
|
|
|
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",
|
|
53
|
-
"typescript": "~4.
|
|
53
|
+
"typescript": "~5.4.2",
|
|
54
54
|
"wait-for-expect": "^1.2.0"
|
|
55
55
|
},
|
|
56
56
|
"techstack": {
|
|
@@ -76,4 +76,4 @@
|
|
|
76
76
|
},
|
|
77
77
|
"homepage": "https://atlaskit.atlassian.com/packages/design-system/focus-ring",
|
|
78
78
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.0"
|
|
79
|
-
}
|
|
79
|
+
}
|
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
|
-
```
|