@atlaskit/visually-hidden 3.0.3 → 3.0.5
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 +15 -0
- package/dist/cjs/visually-hidden.js +3 -3
- package/dist/es2019/visually-hidden.js +2 -1
- package/dist/esm/visually-hidden.js +2 -1
- package/offerings.json +34 -0
- package/package.json +20 -17
- package/visually-hidden.docs.tsx +46 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/visually-hidden
|
|
2
2
|
|
|
3
|
+
## 3.0.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`02483200273ec`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/02483200273ec) -
|
|
8
|
+
Enrol all Design System UI packages into the React Compiler with platform gating via
|
|
9
|
+
isReactCompilerActivePlatform.
|
|
10
|
+
|
|
11
|
+
## 3.0.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a60a82196851a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a60a82196851a) -
|
|
16
|
+
Internal refactors to remove unused variables. No functional or public changes.
|
|
17
|
+
|
|
3
18
|
## 3.0.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* visually-hidden.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* visually-hidden.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
4
|
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
@@ -9,8 +9,7 @@ exports.default = void 0;
|
|
|
9
9
|
require("./visually-hidden.compiled.css");
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _runtime = require("@compiled/react/runtime");
|
|
12
|
-
function
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
14
13
|
var visuallyHiddenStyles = null;
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -43,4 +42,5 @@ var VisuallyHidden = function VisuallyHidden(_ref) {
|
|
|
43
42
|
className: (0, _runtime.ax)(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19itidpf _1reo15vq _18m915vq _1bsbt94y _4t3it94y _kqswstnw _ogto7mnp _uiztglyw _o5721q9c"])
|
|
44
43
|
}, children);
|
|
45
44
|
};
|
|
45
|
+
VisuallyHidden.displayName = 'VisuallyHidden';
|
|
46
46
|
var _default = exports.default = VisuallyHidden;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* visually-hidden.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* visually-hidden.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./visually-hidden.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -35,4 +35,5 @@ const VisuallyHidden = ({
|
|
|
35
35
|
className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19itidpf _1reo15vq _18m915vq _1bsbt94y _4t3it94y _kqswstnw _ogto7mnp _uiztglyw _o5721q9c"])
|
|
36
36
|
}, children);
|
|
37
37
|
};
|
|
38
|
+
VisuallyHidden.displayName = 'VisuallyHidden';
|
|
38
39
|
export default VisuallyHidden;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* visually-hidden.tsx generated by @compiled/babel-plugin v0.
|
|
1
|
+
/* visually-hidden.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
import "./visually-hidden.compiled.css";
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ax, ix } from "@compiled/react/runtime";
|
|
@@ -34,4 +34,5 @@ var VisuallyHidden = function VisuallyHidden(_ref) {
|
|
|
34
34
|
className: ax(["_ca0qidpf _u5f3idpf _n3tdidpf _19bvidpf _19itidpf _1reo15vq _18m915vq _1bsbt94y _4t3it94y _kqswstnw _ogto7mnp _uiztglyw _o5721q9c"])
|
|
35
35
|
}, children);
|
|
36
36
|
};
|
|
37
|
+
VisuallyHidden.displayName = 'VisuallyHidden';
|
|
37
38
|
export default VisuallyHidden;
|
package/offerings.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "VisuallyHidden",
|
|
4
|
+
"package": "@atlaskit/visually-hidden",
|
|
5
|
+
"import": {
|
|
6
|
+
"name": "VisuallyHidden",
|
|
7
|
+
"package": "@atlaskit/visually-hidden",
|
|
8
|
+
"type": "default"
|
|
9
|
+
},
|
|
10
|
+
"keywords": ["hidden", "accessibility", "screen-reader", "aria", "utility"],
|
|
11
|
+
"categories": ["utility"],
|
|
12
|
+
"shortDescription": "A utility component for accessibility.",
|
|
13
|
+
"status": "general-availability",
|
|
14
|
+
"accessibilityGuidelines": [
|
|
15
|
+
"Use for screen reader only content",
|
|
16
|
+
"Ensure content is meaningful for assistive technology",
|
|
17
|
+
"Use appropriate ARIA roles when needed",
|
|
18
|
+
"Consider content context and purpose"
|
|
19
|
+
],
|
|
20
|
+
"usageGuidelines": [
|
|
21
|
+
"Use for screen reader only content",
|
|
22
|
+
"Provide meaningful hidden content",
|
|
23
|
+
"Use for accessibility enhancements",
|
|
24
|
+
"Consider content context and purpose"
|
|
25
|
+
],
|
|
26
|
+
"contentGuidelines": [
|
|
27
|
+
"Use clear, descriptive hidden content",
|
|
28
|
+
"Ensure content adds value for screen readers",
|
|
29
|
+
"Use appropriate language and tone",
|
|
30
|
+
"Keep content concise but meaningful"
|
|
31
|
+
],
|
|
32
|
+
"examples": ["./examples/00-basic.tsx"]
|
|
33
|
+
}
|
|
34
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/visually-hidden",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.5",
|
|
4
4
|
"description": "A utility that hides content from the screen while retaining readability by screen readers for accessibility.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -17,8 +17,14 @@
|
|
|
17
17
|
],
|
|
18
18
|
"atlaskit:src": "src/index.tsx",
|
|
19
19
|
"atlassian": {
|
|
20
|
+
"react-compiler": {
|
|
21
|
+
"enabled": true,
|
|
22
|
+
"gating": {
|
|
23
|
+
"source": "@atlassian/react-compiler-gating",
|
|
24
|
+
"importSpecifierName": "isReactCompilerActivePlatform"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
20
27
|
"team": "Design System Team",
|
|
21
|
-
"runReact18": true,
|
|
22
28
|
"website": {
|
|
23
29
|
"name": "Visually hidden",
|
|
24
30
|
"category": "Text and data display"
|
|
@@ -26,7 +32,7 @@
|
|
|
26
32
|
},
|
|
27
33
|
"dependencies": {
|
|
28
34
|
"@babel/runtime": "^7.0.0",
|
|
29
|
-
"@compiled/react": "^0.
|
|
35
|
+
"@compiled/react": "^0.20.0"
|
|
30
36
|
},
|
|
31
37
|
"peerDependencies": {
|
|
32
38
|
"react": "^18.2.0"
|
|
@@ -35,17 +41,17 @@
|
|
|
35
41
|
"@af/accessibility-testing": "workspace:^",
|
|
36
42
|
"@af/integration-testing": "workspace:^",
|
|
37
43
|
"@af/visual-regression": "workspace:^",
|
|
38
|
-
"@atlaskit/button": "^23.
|
|
39
|
-
"@atlaskit/docs": "^
|
|
40
|
-
"@atlaskit/
|
|
41
|
-
"@atlaskit/
|
|
42
|
-
"@atlaskit/
|
|
43
|
-
"@atlaskit/
|
|
44
|
-
"@
|
|
45
|
-
"@atlassian/ssr-tests": "
|
|
46
|
-
"@
|
|
47
|
-
"react
|
|
48
|
-
"
|
|
44
|
+
"@atlaskit/button": "^23.10.0",
|
|
45
|
+
"@atlaskit/docs": "^11.7.0",
|
|
46
|
+
"@atlaskit/link": "^3.3.0",
|
|
47
|
+
"@atlaskit/section-message": "^8.12.0",
|
|
48
|
+
"@atlaskit/toggle": "^15.2.0",
|
|
49
|
+
"@atlaskit/tokens": "^11.4.0",
|
|
50
|
+
"@atlassian/react-compiler-gating": "workspace:^",
|
|
51
|
+
"@atlassian/ssr-tests": "workspace:^",
|
|
52
|
+
"@atlassian/structured-docs-types": "workspace:^",
|
|
53
|
+
"@testing-library/react": "^16.3.0",
|
|
54
|
+
"react-dom": "^18.2.0"
|
|
49
55
|
},
|
|
50
56
|
"techstack": {
|
|
51
57
|
"@atlassian/frontend": {
|
|
@@ -76,8 +82,5 @@
|
|
|
76
82
|
]
|
|
77
83
|
}
|
|
78
84
|
},
|
|
79
|
-
"af:exports": {
|
|
80
|
-
".": "./src/index.tsx"
|
|
81
|
-
},
|
|
82
85
|
"homepage": "https://atlassian.design/components/visually-hidden/"
|
|
83
86
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
|
|
4
|
+
|
|
5
|
+
const documentation: ComponentStructuredContentSource[] = [
|
|
6
|
+
{
|
|
7
|
+
name: 'VisuallyHidden',
|
|
8
|
+
description:
|
|
9
|
+
'Content hidden from sight but available to screen readers. Use when meaning is clear visually but not to assistive technology.',
|
|
10
|
+
status: 'general-availability',
|
|
11
|
+
import: {
|
|
12
|
+
name: 'VisuallyHidden',
|
|
13
|
+
package: '@atlaskit/visually-hidden',
|
|
14
|
+
type: 'default',
|
|
15
|
+
packagePath: path.resolve(__dirname),
|
|
16
|
+
packageJson: require('./package.json'),
|
|
17
|
+
},
|
|
18
|
+
usageGuidelines: [
|
|
19
|
+
'Use when meaning is clear visually but not to assistive technology',
|
|
20
|
+
'Avoid clutter—verbose screen-reader-only text can be more harmful than helpful',
|
|
21
|
+
'Use the role prop for semantic meaning when needed',
|
|
22
|
+
],
|
|
23
|
+
contentGuidelines: [
|
|
24
|
+
'Use clear, descriptive hidden content',
|
|
25
|
+
'Ensure content adds value for screen readers',
|
|
26
|
+
'Keep content concise but meaningful',
|
|
27
|
+
],
|
|
28
|
+
accessibilityGuidelines: [
|
|
29
|
+
'Use for screen reader only content when visual context is insufficient for AT',
|
|
30
|
+
'Use role prop for semantic meaning when appropriate',
|
|
31
|
+
'Balance clarity with brevity—avoid overwhelming screen reader users',
|
|
32
|
+
'Prefer over aria-label in some cases when screen readers need to translate or announce full phrasing',
|
|
33
|
+
],
|
|
34
|
+
examples: [
|
|
35
|
+
{
|
|
36
|
+
name: '00 Basic',
|
|
37
|
+
description: '00 Basic example',
|
|
38
|
+
source: path.resolve(__dirname, './examples/00-basic.tsx'),
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
keywords: ['hidden', 'accessibility', 'screen-reader', 'aria', 'utility'],
|
|
42
|
+
categories: ['utility'],
|
|
43
|
+
},
|
|
44
|
+
];
|
|
45
|
+
|
|
46
|
+
export default documentation;
|