@radix-ui/react-visually-hidden 1.0.3-rc.5 → 1.0.3-rc.6

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.
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ import * as Radix from "@radix-ui/react-primitive";
3
+ import { Primitive } from "@radix-ui/react-primitive";
4
+ type PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;
5
+ export interface VisuallyHiddenProps extends PrimitiveSpanProps {
6
+ }
7
+ export const VisuallyHidden: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>>;
8
+ export const Root: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLSpanElement>>;
9
+
10
+ //# sourceMappingURL=index.d.ts.map
@@ -36,4 +36,4 @@ const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ $kVwnw$forwardRe
36
36
 
37
37
 
38
38
  export {$ea1ef594cf570d83$export$439d29a4e110a164 as VisuallyHidden, $ea1ef594cf570d83$export$be92b6f5f03c0fe9 as Root};
39
- //# sourceMappingURL=index.module.js.map
39
+ //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"mappings":";;;;A;;;ACKA;;oGAEA,CAEA,MAAMI,0BAAI,GAAG,gBAAb,AAAA;AAMA,MAAMJ,yCAAc,GAAA,aAAGE,CAAAA,iBAAA,CACrB,CAACI,KAAD,EAAQC,YAAR,GAAyB;IACvB,OAAA,aACE,CAAA,oBAAA,CAAC,gBAAD,CAAW,IAAX,EAAA,oCAAA,CAAA,EAAA,EACMD,KADN,EADF;QAGI,GAAG,EAAEC,YAFP;QAGE,KAAK,EAAE;YACL,qFAAA;YACAC,QAAQ,EAAE,UAFL;YAGLC,MAAM,EAAE,CAHH;YAILC,KAAK,EAAE,CAJF;YAKLC,MAAM,EAAE,CALH;YAMLC,OAAO,EAAE,CANJ;YAOLC,MAAM,EAAE,EAPH;YAQLC,QAAQ,EAAE,QARL;YASLC,IAAI,EAAE,kBATD;YAULC,UAAU,EAAE,QAVP;YAWLC,QAAQ,EAAE,QAXL;YAYL,GAAGX,KAAK,CAACY,KAAT;SAZK;KAHT,CAAA,CADF,CACE;CAHiB,CAAvB,AAsBG;AAGH,aAAA,CAAA,MAAA,CAAA,MAAA,CAAA,yCAAA,EAAA;IAAA,WAAA,EAAA,0BAAA;CAAA,CAAA,CAAA;AAEA,oGAAA,CAEA,MAAMjB,yCAAI,GAAGD,yCAAb,AAAA;;AD5CA","sources":["packages/react/visually-hidden/src/index.ts","packages/react/visually-hidden/src/VisuallyHidden.tsx"],"sourcesContent":["export {\n VisuallyHidden,\n //\n Root,\n} from './VisuallyHidden';\nexport type { VisuallyHiddenProps } from './VisuallyHidden';\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * VisuallyHidden\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'VisuallyHidden';\n\ntype VisuallyHiddenElement = React.ElementRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;\ninterface VisuallyHiddenProps extends PrimitiveSpanProps {}\n\nconst VisuallyHidden = React.forwardRef<VisuallyHiddenElement, VisuallyHiddenProps>(\n (props, forwardedRef) => {\n return (\n <Primitive.span\n {...props}\n ref={forwardedRef}\n style={{\n // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss\n position: 'absolute',\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n whiteSpace: 'nowrap',\n wordWrap: 'normal',\n ...props.style,\n }}\n />\n );\n }\n);\n\nVisuallyHidden.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = VisuallyHidden;\n\nexport {\n VisuallyHidden,\n //\n Root,\n};\nexport type { VisuallyHiddenProps };\n"],"names":["VisuallyHidden","Root","React","Primitive","NAME","forwardRef","props","forwardedRef","position","border","width","height","padding","margin","overflow","clip","whiteSpace","wordWrap","style"],"version":3,"file":"index.module.js.map"}
1
+ {"mappings":";;;;A;;;ACKA;;oGAEA,CAEA,MAAMI,0BAAI,GAAG,gBAAb,AAAA;AAMA,MAAMJ,yCAAc,GAAA,aAAGE,CAAAA,iBAAA,CACrB,CAACI,KAAD,EAAQC,YAAR,GAAyB;IACvB,OAAA,aACE,CAAA,oBAAA,CAAC,gBAAD,CAAW,IAAX,EAAA,oCAAA,CAAA,EAAA,EACMD,KADN,EADF;QAGI,GAAG,EAAEC,YAFP;QAGE,KAAK,EAAE;YACL,qFAAA;YACAC,QAAQ,EAAE,UAFL;YAGLC,MAAM,EAAE,CAHH;YAILC,KAAK,EAAE,CAJF;YAKLC,MAAM,EAAE,CALH;YAMLC,OAAO,EAAE,CANJ;YAOLC,MAAM,EAAE,EAPH;YAQLC,QAAQ,EAAE,QARL;YASLC,IAAI,EAAE,kBATD;YAULC,UAAU,EAAE,QAVP;YAWLC,QAAQ,EAAE,QAXL;YAYL,GAAGX,KAAK,CAACY,KAAT;SAZK;KAHT,CAAA,CADF,CACE;CAHiB,CAAvB,AAsBG;AAGH,aAAA,CAAA,MAAA,CAAA,MAAA,CAAA,yCAAA,EAAA;IAAA,WAAA,EAAA,0BAAA;CAAA,CAAA,CAAA;AAEA,oGAAA,CAEA,MAAMjB,yCAAI,GAAGD,yCAAb,AAAA;;AD5CA","sources":["packages/react/visually-hidden/src/index.ts","packages/react/visually-hidden/src/VisuallyHidden.tsx"],"sourcesContent":["export {\n VisuallyHidden,\n //\n Root,\n} from './VisuallyHidden';\nexport type { VisuallyHiddenProps } from './VisuallyHidden';\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * VisuallyHidden\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'VisuallyHidden';\n\ntype VisuallyHiddenElement = React.ElementRef<typeof Primitive.span>;\ntype PrimitiveSpanProps = Radix.ComponentPropsWithoutRef<typeof Primitive.span>;\ninterface VisuallyHiddenProps extends PrimitiveSpanProps {}\n\nconst VisuallyHidden = React.forwardRef<VisuallyHiddenElement, VisuallyHiddenProps>(\n (props, forwardedRef) => {\n return (\n <Primitive.span\n {...props}\n ref={forwardedRef}\n style={{\n // See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss\n position: 'absolute',\n border: 0,\n width: 1,\n height: 1,\n padding: 0,\n margin: -1,\n overflow: 'hidden',\n clip: 'rect(0, 0, 0, 0)',\n whiteSpace: 'nowrap',\n wordWrap: 'normal',\n ...props.style,\n }}\n />\n );\n }\n);\n\nVisuallyHidden.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = VisuallyHidden;\n\nexport {\n VisuallyHidden,\n //\n Root,\n};\nexport type { VisuallyHiddenProps };\n"],"names":["VisuallyHidden","Root","React","Primitive","NAME","forwardRef","props","forwardedRef","position","border","width","height","padding","margin","overflow","clip","whiteSpace","wordWrap","style"],"version":3,"file":"index.mjs.map"}
package/package.json CHANGED
@@ -1,11 +1,23 @@
1
1
  {
2
2
  "name": "@radix-ui/react-visually-hidden",
3
- "version": "1.0.3-rc.5",
3
+ "version": "1.0.3-rc.6",
4
4
  "license": "MIT",
5
- "source": "src/index.ts",
6
- "main": "dist/index.js",
7
- "module": "dist/index.module.js",
8
- "types": "dist/index.d.ts",
5
+ "exports": {
6
+ ".": {
7
+ "import": {
8
+ "types": "./dist/index.d.mts",
9
+ "default": "./dist/index.mjs"
10
+ },
11
+ "require": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ }
15
+ }
16
+ },
17
+ "source": "./src/index.ts",
18
+ "main": "./dist/index.js",
19
+ "module": "./dist/index.mjs",
20
+ "types": "./dist/index.d.ts",
9
21
  "files": [
10
22
  "dist",
11
23
  "README.md"
@@ -17,7 +29,7 @@
17
29
  },
18
30
  "dependencies": {
19
31
  "@babel/runtime": "^7.13.10",
20
- "@radix-ui/react-primitive": "1.0.3-rc.5"
32
+ "@radix-ui/react-primitive": "1.0.3-rc.6"
21
33
  },
22
34
  "peerDependencies": {
23
35
  "react": "^16.8 || ^17.0 || ^18.0",