@sproutsocial/seeds-react-visually-hidden 1.0.0 → 1.0.2
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/.turbo/turbo-build.log +10 -10
- package/CHANGELOG.md +16 -0
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +3 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/VisuallyHidden.tsx +9 -6
- package/src/__tests__/VisuallyHidden.typetest.tsx +2 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ CLI Target: es2022
|
|
|
8
8
|
CLI Cleaning output folder
|
|
9
9
|
CJS Build start
|
|
10
10
|
ESM Build start
|
|
11
|
-
CJS dist/index.js 2.
|
|
12
|
-
CJS dist/index.js.map
|
|
13
|
-
CJS ⚡️ Build success in
|
|
14
|
-
ESM dist/esm/index.js
|
|
15
|
-
ESM dist/esm/index.js.map
|
|
16
|
-
ESM ⚡️ Build success in
|
|
11
|
+
CJS dist/index.js 2.11 KB
|
|
12
|
+
CJS dist/index.js.map 961.00 B
|
|
13
|
+
CJS ⚡️ Build success in 111ms
|
|
14
|
+
ESM dist/esm/index.js 402.00 B
|
|
15
|
+
ESM dist/esm/index.js.map 842.00 B
|
|
16
|
+
ESM ⚡️ Build success in 118ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
19
|
-
DTS dist/index.d.ts
|
|
20
|
-
DTS dist/index.d.mts
|
|
21
|
-
Done in
|
|
18
|
+
DTS ⚡️ Build success in 32617ms
|
|
19
|
+
DTS dist/index.d.ts 481.00 B
|
|
20
|
+
DTS dist/index.d.mts 481.00 B
|
|
21
|
+
Done in 37.57s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-visually-hidden
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9fd8bac: Update dependencies to use semantic package version instead of wildcards
|
|
8
|
+
- Updated dependencies [9fd8bac]
|
|
9
|
+
- @sproutsocial/seeds-react-system-props@3.0.2
|
|
10
|
+
- @sproutsocial/seeds-react-mixins@4.1.1
|
|
11
|
+
- @sproutsocial/seeds-react-theme@2.2.1
|
|
12
|
+
|
|
13
|
+
## 1.0.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 753d7c9: Fix various ts issues for Menu.Item, Collapsible, and VisuallyHidden
|
|
18
|
+
|
|
3
19
|
## 1.0.0
|
|
4
20
|
|
|
5
21
|
### Major Changes
|
package/dist/esm/index.js
CHANGED
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":["import styled from \"styled-components\";\nimport { visuallyHidden } from \"@sproutsocial/seeds-react-mixins\";\nimport type {
|
|
1
|
+
{"version":3,"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":["import styled from \"styled-components\";\nimport { visuallyHidden } from \"@sproutsocial/seeds-react-mixins\";\nimport type { ComponentPropsWithRef } from \"react\";\n\nconst StyledVisuallyHidden = styled.span`\n ${visuallyHidden}\n`;\n\nexport type VisuallyHiddenProps = ComponentPropsWithRef<\n typeof StyledVisuallyHidden\n>;\n\n// This wrapper component is needed for react-docgen to work.\n// It has issues with generating docs for the styled component directly.\nexport const VisuallyHidden = (props: VisuallyHiddenProps) => {\n return <StyledVisuallyHidden {...props} />;\n};\n"],"mappings":";AAAA,OAAO,YAAY;AACnB,SAAS,sBAAsB;AActB;AAXT,IAAM,uBAAuB,OAAO;AAAA,IAChC,cAAc;AAAA;AASX,IAAM,iBAAiB,CAAC,UAA+B;AAC5D,SAAO,oBAAC,wBAAsB,GAAG,OAAO;AAC1C;","names":[]}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as styled_components from 'styled-components';
|
|
3
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const VisuallyHidden:
|
|
5
|
+
declare const StyledVisuallyHidden: styled_components.StyledComponent<"span", any, {}, never>;
|
|
6
|
+
type VisuallyHiddenProps = ComponentPropsWithRef<typeof StyledVisuallyHidden>;
|
|
7
|
+
declare const VisuallyHidden: (props: VisuallyHiddenProps) => react_jsx_runtime.JSX.Element;
|
|
6
8
|
|
|
7
9
|
export { VisuallyHidden, type VisuallyHiddenProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as styled_components from 'styled-components';
|
|
3
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
4
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare const VisuallyHidden:
|
|
5
|
+
declare const StyledVisuallyHidden: styled_components.StyledComponent<"span", any, {}, never>;
|
|
6
|
+
type VisuallyHiddenProps = ComponentPropsWithRef<typeof StyledVisuallyHidden>;
|
|
7
|
+
declare const VisuallyHidden: (props: VisuallyHiddenProps) => react_jsx_runtime.JSX.Element;
|
|
6
8
|
|
|
7
9
|
export { VisuallyHidden, type VisuallyHiddenProps };
|
package/dist/index.js
CHANGED
|
@@ -28,16 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
VisuallyHidden: () => VisuallyHidden
|
|
34
34
|
});
|
|
35
|
-
module.exports = __toCommonJS(
|
|
35
|
+
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
|
|
37
37
|
// src/VisuallyHidden.tsx
|
|
38
38
|
var import_styled_components = __toESM(require("styled-components"));
|
|
39
39
|
var import_seeds_react_mixins = require("@sproutsocial/seeds-react-mixins");
|
|
40
|
-
var import_react = require("react");
|
|
41
40
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
42
41
|
var StyledVisuallyHidden = import_styled_components.default.span`
|
|
43
42
|
${import_seeds_react_mixins.visuallyHidden}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/VisuallyHidden.tsx"],"sourcesContent":["export * from \"./VisuallyHidden\";\n","import styled from \"styled-components\";\nimport { visuallyHidden } from \"@sproutsocial/seeds-react-mixins\";\nimport type {
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/VisuallyHidden.tsx"],"sourcesContent":["export * from \"./VisuallyHidden\";\n","import styled from \"styled-components\";\nimport { visuallyHidden } from \"@sproutsocial/seeds-react-mixins\";\nimport type { ComponentPropsWithRef } from \"react\";\n\nconst StyledVisuallyHidden = styled.span`\n ${visuallyHidden}\n`;\n\nexport type VisuallyHiddenProps = ComponentPropsWithRef<\n typeof StyledVisuallyHidden\n>;\n\n// This wrapper component is needed for react-docgen to work.\n// It has issues with generating docs for the styled component directly.\nexport const VisuallyHidden = (props: VisuallyHiddenProps) => {\n return <StyledVisuallyHidden {...props} />;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,+BAAmB;AACnB,gCAA+B;AActB;AAXT,IAAM,uBAAuB,yBAAAA,QAAO;AAAA,IAChC,wCAAc;AAAA;AASX,IAAM,iBAAiB,CAAC,UAA+B;AAC5D,SAAO,4CAAC,wBAAsB,GAAG,OAAO;AAC1C;","names":["styled"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sproutsocial/seeds-react-visually-hidden",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Seeds React VisuallyHidden",
|
|
5
5
|
"author": "Sprout Social, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"test:watch": "jest --watch --coverage=false"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sproutsocial/seeds-react-theme": "
|
|
22
|
-
"@sproutsocial/seeds-react-system-props": "
|
|
23
|
-
"@sproutsocial/seeds-react-mixins": "
|
|
21
|
+
"@sproutsocial/seeds-react-theme": "^2.2.0",
|
|
22
|
+
"@sproutsocial/seeds-react-system-props": "^3.0.1",
|
|
23
|
+
"@sproutsocial/seeds-react-mixins": "^4.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.0.0",
|
package/src/VisuallyHidden.tsx
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import styled from "styled-components";
|
|
2
2
|
import { visuallyHidden } from "@sproutsocial/seeds-react-mixins";
|
|
3
|
-
import type {
|
|
4
|
-
import React from "react";
|
|
3
|
+
import type { ComponentPropsWithRef } from "react";
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const StyledVisuallyHidden = styled.span<VisuallyHiddenProps>`
|
|
5
|
+
const StyledVisuallyHidden = styled.span`
|
|
9
6
|
${visuallyHidden}
|
|
10
7
|
`;
|
|
11
8
|
|
|
12
|
-
export
|
|
9
|
+
export type VisuallyHiddenProps = ComponentPropsWithRef<
|
|
10
|
+
typeof StyledVisuallyHidden
|
|
11
|
+
>;
|
|
12
|
+
|
|
13
|
+
// This wrapper component is needed for react-docgen to work.
|
|
14
|
+
// It has issues with generating docs for the styled component directly.
|
|
15
|
+
export const VisuallyHidden = (props: VisuallyHiddenProps) => {
|
|
13
16
|
return <StyledVisuallyHidden {...props} />;
|
|
14
17
|
};
|
|
@@ -6,7 +6,8 @@ function VisuallyHiddenTypes() {
|
|
|
6
6
|
return (
|
|
7
7
|
<>
|
|
8
8
|
<VisuallyHidden>Content</VisuallyHidden>
|
|
9
|
-
{/*
|
|
9
|
+
{/* This is allowed _for now_ since style.span component can accept anything */}
|
|
10
|
+
{/* In a future major release, consider making VisuallyHidden's prop more restrictive */}
|
|
10
11
|
<VisuallyHidden invalidProp="invalid">Content</VisuallyHidden>
|
|
11
12
|
</>
|
|
12
13
|
);
|