@tamagui/visually-hidden 1.13.3 → 1.14.0
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/dist/cjs/VisuallyHidden.js +1 -60
- package/dist/cjs/VisuallyHidden.js.map +2 -2
- package/dist/cjs/index.js +1 -18
- package/dist/cjs/index.js.map +2 -2
- package/dist/esm/VisuallyHidden.js +1 -36
- package/dist/esm/VisuallyHidden.js.map +2 -2
- package/dist/esm/VisuallyHidden.mjs +1 -36
- package/dist/esm/VisuallyHidden.mjs.map +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/jsx/VisuallyHidden.js +1 -36
- package/dist/jsx/VisuallyHidden.js.map +2 -2
- package/dist/jsx/VisuallyHidden.mjs +1 -36
- package/dist/jsx/VisuallyHidden.mjs.map +2 -2
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +1 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var VisuallyHidden_exports = {};
|
|
20
|
-
__export(VisuallyHidden_exports, {
|
|
21
|
-
VisuallyHidden: () => VisuallyHidden
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(VisuallyHidden_exports);
|
|
24
|
-
var import_web = require("@tamagui/web");
|
|
25
|
-
const VisuallyHidden = (0, import_web.styled)(import_web.Stack, {
|
|
26
|
-
position: "absolute",
|
|
27
|
-
width: 1,
|
|
28
|
-
height: 1,
|
|
29
|
-
margin: -1,
|
|
30
|
-
zIndex: -1e4,
|
|
31
|
-
overflow: "hidden",
|
|
32
|
-
opacity: 1e-8,
|
|
33
|
-
pointerEvents: "none",
|
|
34
|
-
variants: {
|
|
35
|
-
preserveDimensions: {
|
|
36
|
-
true: {
|
|
37
|
-
position: "relative",
|
|
38
|
-
width: "auto",
|
|
39
|
-
height: "auto"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
visible: {
|
|
43
|
-
true: {
|
|
44
|
-
position: "relative",
|
|
45
|
-
width: "auto",
|
|
46
|
-
height: "auto",
|
|
47
|
-
margin: 0,
|
|
48
|
-
zIndex: 1,
|
|
49
|
-
overflow: "visible",
|
|
50
|
-
opacity: 1,
|
|
51
|
-
pointerEvents: "auto"
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {
|
|
59
|
-
VisuallyHidden
|
|
60
|
-
});
|
|
1
|
+
"use strict";var s=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var h=(t,i)=>{for(var o in i)s(t,o,{get:i[o],enumerable:!0})},p=(t,i,o,a)=>{if(i&&typeof i=="object"||typeof i=="function")for(let e of l(i))!u.call(t,e)&&e!==o&&s(t,e,{get:()=>i[e],enumerable:!(a=d(i,e))||a.enumerable});return t};var v=t=>p(s({},"__esModule",{value:!0}),t);var c={};h(c,{VisuallyHidden:()=>r});module.exports=v(c);var n=require("@tamagui/web");const r=(0,n.styled)(n.Stack,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});r.isVisuallyHidden=!0;0&&(module.exports={VisuallyHidden});
|
|
61
2
|
//# sourceMappingURL=VisuallyHidden.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/VisuallyHidden.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Stack, styled } from '@tamagui/web'\n\nexport const VisuallyHidden = styled(Stack, {\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n zIndex: -10000,\n overflow: 'hidden',\n opacity: 0.00000001,\n pointerEvents: 'none',\n\n variants: {\n preserveDimensions: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n },\n },\n\n visible: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n margin: 0,\n zIndex: 1,\n overflow: 'visible',\n opacity: 1,\n pointerEvents: 'auto',\n },\n },\n } as const,\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,oBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA8B,wBAEvB,MAAMF,KAAiB,UAAO,QAAO,CAC1C,SAAU,WACV,MAAO,EACP,OAAQ,EACR,OAAQ,GACR,OAAQ,KACR,SAAU,SACV,QAAS,KACT,cAAe,OAEf,SAAU,CACR,mBAAoB,CAClB,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,MACV,CACF,EAEA,QAAS,CACP,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,OACR,OAAQ,EACR,OAAQ,EACR,SAAU,UACV,QAAS,EACT,cAAe,MACjB,CACF,CACF,CACF,CAAC,EAGDA,EAAe,iBAAsB",
|
|
6
|
+
"names": ["VisuallyHidden_exports", "__export", "VisuallyHidden", "__toCommonJS", "import_web"]
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var src_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(src_exports);
|
|
18
|
-
__reExport(src_exports, require("./VisuallyHidden"), module.exports);
|
|
1
|
+
"use strict";var a=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(r,o,f,x)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of c(o))!d.call(r,e)&&e!==f&&a(r,e,{get:()=>o[e],enumerable:!(x=b(o,e))||x.enumerable});return r},t=(r,o,f)=>(p(r,o,"default"),f&&p(f,o,"default"));var g=r=>p(a({},"__esModule",{value:!0}),r);var m={};module.exports=g(m);t(m,require("./VisuallyHidden"),module.exports);
|
|
19
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.ts"],
|
|
4
4
|
"sourcesContent": ["export * from './VisuallyHidden'\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,4BAAd",
|
|
6
|
+
"names": ["src_exports", "__toCommonJS", "__reExport"]
|
|
7
7
|
}
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const VisuallyHidden = styled(Stack, {
|
|
3
|
-
position: "absolute",
|
|
4
|
-
width: 1,
|
|
5
|
-
height: 1,
|
|
6
|
-
margin: -1,
|
|
7
|
-
zIndex: -1e4,
|
|
8
|
-
overflow: "hidden",
|
|
9
|
-
opacity: 1e-8,
|
|
10
|
-
pointerEvents: "none",
|
|
11
|
-
variants: {
|
|
12
|
-
preserveDimensions: {
|
|
13
|
-
true: {
|
|
14
|
-
position: "relative",
|
|
15
|
-
width: "auto",
|
|
16
|
-
height: "auto"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
true: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "auto",
|
|
23
|
-
height: "auto",
|
|
24
|
-
margin: 0,
|
|
25
|
-
zIndex: 1,
|
|
26
|
-
overflow: "visible",
|
|
27
|
-
opacity: 1,
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
34
|
-
export {
|
|
35
|
-
VisuallyHidden
|
|
36
|
-
};
|
|
1
|
+
import{Stack as i,styled as t}from"@tamagui/web";const e=t(i,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});e.isVisuallyHidden=!0;export{e as VisuallyHidden};
|
|
37
2
|
//# sourceMappingURL=VisuallyHidden.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/VisuallyHidden.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Stack, styled } from '@tamagui/web'\n\nexport const VisuallyHidden = styled(Stack, {\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n zIndex: -10000,\n overflow: 'hidden',\n opacity: 0.00000001,\n pointerEvents: 'none',\n\n variants: {\n preserveDimensions: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n },\n },\n\n visible: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n margin: 0,\n zIndex: 1,\n overflow: 'visible',\n opacity: 1,\n pointerEvents: 'auto',\n },\n },\n } as const,\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,EAAO,UAAAC,MAAc,eAEvB,MAAMC,EAAiBD,EAAOD,EAAO,CAC1C,SAAU,WACV,MAAO,EACP,OAAQ,EACR,OAAQ,GACR,OAAQ,KACR,SAAU,SACV,QAAS,KACT,cAAe,OAEf,SAAU,CACR,mBAAoB,CAClB,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,MACV,CACF,EAEA,QAAS,CACP,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,OACR,OAAQ,EACR,OAAQ,EACR,SAAU,UACV,QAAS,EACT,cAAe,MACjB,CACF,CACF,CACF,CAAC,EAGDE,EAAe,iBAAsB",
|
|
6
|
+
"names": ["Stack", "styled", "VisuallyHidden"]
|
|
7
7
|
}
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const VisuallyHidden = styled(Stack, {
|
|
3
|
-
position: "absolute",
|
|
4
|
-
width: 1,
|
|
5
|
-
height: 1,
|
|
6
|
-
margin: -1,
|
|
7
|
-
zIndex: -1e4,
|
|
8
|
-
overflow: "hidden",
|
|
9
|
-
opacity: 1e-8,
|
|
10
|
-
pointerEvents: "none",
|
|
11
|
-
variants: {
|
|
12
|
-
preserveDimensions: {
|
|
13
|
-
true: {
|
|
14
|
-
position: "relative",
|
|
15
|
-
width: "auto",
|
|
16
|
-
height: "auto"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
true: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "auto",
|
|
23
|
-
height: "auto",
|
|
24
|
-
margin: 0,
|
|
25
|
-
zIndex: 1,
|
|
26
|
-
overflow: "visible",
|
|
27
|
-
opacity: 1,
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
34
|
-
export {
|
|
35
|
-
VisuallyHidden
|
|
36
|
-
};
|
|
1
|
+
import{Stack as i,styled as t}from"@tamagui/web";const e=t(i,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});e.isVisuallyHidden=!0;export{e as VisuallyHidden};
|
|
37
2
|
//# sourceMappingURL=VisuallyHidden.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/VisuallyHidden.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Stack, styled } from '@tamagui/web'\n\nexport const VisuallyHidden = styled(Stack, {\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n zIndex: -10000,\n overflow: 'hidden',\n opacity: 0.00000001,\n pointerEvents: 'none',\n\n variants: {\n preserveDimensions: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n },\n },\n\n visible: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n margin: 0,\n zIndex: 1,\n overflow: 'visible',\n opacity: 1,\n pointerEvents: 'auto',\n },\n },\n } as const,\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,EAAO,UAAAC,MAAc,eAEvB,MAAMC,EAAiBD,EAAOD,EAAO,CAC1C,SAAU,WACV,MAAO,EACP,OAAQ,EACR,OAAQ,GACR,OAAQ,KACR,SAAU,SACV,QAAS,KACT,cAAe,OAEf,SAAU,CACR,mBAAoB,CAClB,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,MACV,CACF,EAEA,QAAS,CACP,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,OACR,OAAQ,EACR,OAAQ,EACR,SAAU,UACV,QAAS,EACT,cAAe,MACjB,CACF,CACF,CACF,CAAC,EAGDE,EAAe,iBAAsB",
|
|
6
|
+
"names": ["Stack", "styled", "VisuallyHidden"]
|
|
7
7
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./VisuallyHidden";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./VisuallyHidden";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const VisuallyHidden = styled(Stack, {
|
|
3
|
-
position: "absolute",
|
|
4
|
-
width: 1,
|
|
5
|
-
height: 1,
|
|
6
|
-
margin: -1,
|
|
7
|
-
zIndex: -1e4,
|
|
8
|
-
overflow: "hidden",
|
|
9
|
-
opacity: 1e-8,
|
|
10
|
-
pointerEvents: "none",
|
|
11
|
-
variants: {
|
|
12
|
-
preserveDimensions: {
|
|
13
|
-
true: {
|
|
14
|
-
position: "relative",
|
|
15
|
-
width: "auto",
|
|
16
|
-
height: "auto"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
true: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "auto",
|
|
23
|
-
height: "auto",
|
|
24
|
-
margin: 0,
|
|
25
|
-
zIndex: 1,
|
|
26
|
-
overflow: "visible",
|
|
27
|
-
opacity: 1,
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
34
|
-
export {
|
|
35
|
-
VisuallyHidden
|
|
36
|
-
};
|
|
1
|
+
import{Stack as i,styled as t}from"@tamagui/web";const e=t(i,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});e.isVisuallyHidden=!0;export{e as VisuallyHidden};
|
|
37
2
|
//# sourceMappingURL=VisuallyHidden.js.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/VisuallyHidden.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Stack, styled } from '@tamagui/web'\n\nexport const VisuallyHidden = styled(Stack, {\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n zIndex: -10000,\n overflow: 'hidden',\n opacity: 0.00000001,\n pointerEvents: 'none',\n\n variants: {\n preserveDimensions: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n },\n },\n\n visible: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n margin: 0,\n zIndex: 1,\n overflow: 'visible',\n opacity: 1,\n pointerEvents: 'auto',\n },\n },\n } as const,\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,EAAO,UAAAC,MAAc,eAEvB,MAAMC,EAAiBD,EAAOD,EAAO,CAC1C,SAAU,WACV,MAAO,EACP,OAAQ,EACR,OAAQ,GACR,OAAQ,KACR,SAAU,SACV,QAAS,KACT,cAAe,OAEf,SAAU,CACR,mBAAoB,CAClB,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,MACV,CACF,EAEA,QAAS,CACP,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,OACR,OAAQ,EACR,OAAQ,EACR,SAAU,UACV,QAAS,EACT,cAAe,MACjB,CACF,CACF,CACF,CAAC,EAGDE,EAAe,iBAAsB",
|
|
6
|
+
"names": ["Stack", "styled", "VisuallyHidden"]
|
|
7
7
|
}
|
|
@@ -1,37 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
const VisuallyHidden = styled(Stack, {
|
|
3
|
-
position: "absolute",
|
|
4
|
-
width: 1,
|
|
5
|
-
height: 1,
|
|
6
|
-
margin: -1,
|
|
7
|
-
zIndex: -1e4,
|
|
8
|
-
overflow: "hidden",
|
|
9
|
-
opacity: 1e-8,
|
|
10
|
-
pointerEvents: "none",
|
|
11
|
-
variants: {
|
|
12
|
-
preserveDimensions: {
|
|
13
|
-
true: {
|
|
14
|
-
position: "relative",
|
|
15
|
-
width: "auto",
|
|
16
|
-
height: "auto"
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
visible: {
|
|
20
|
-
true: {
|
|
21
|
-
position: "relative",
|
|
22
|
-
width: "auto",
|
|
23
|
-
height: "auto",
|
|
24
|
-
margin: 0,
|
|
25
|
-
zIndex: 1,
|
|
26
|
-
overflow: "visible",
|
|
27
|
-
opacity: 1,
|
|
28
|
-
pointerEvents: "auto"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
VisuallyHidden["isVisuallyHidden"] = true;
|
|
34
|
-
export {
|
|
35
|
-
VisuallyHidden
|
|
36
|
-
};
|
|
1
|
+
import{Stack as i,styled as t}from"@tamagui/web";const e=t(i,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});e.isVisuallyHidden=!0;export{e as VisuallyHidden};
|
|
37
2
|
//# sourceMappingURL=VisuallyHidden.mjs.map
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/VisuallyHidden.tsx"],
|
|
4
4
|
"sourcesContent": ["import { Stack, styled } from '@tamagui/web'\n\nexport const VisuallyHidden = styled(Stack, {\n position: 'absolute',\n width: 1,\n height: 1,\n margin: -1,\n zIndex: -10000,\n overflow: 'hidden',\n opacity: 0.00000001,\n pointerEvents: 'none',\n\n variants: {\n preserveDimensions: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n },\n },\n\n visible: {\n true: {\n position: 'relative',\n width: 'auto',\n height: 'auto',\n margin: 0,\n zIndex: 1,\n overflow: 'visible',\n opacity: 1,\n pointerEvents: 'auto',\n },\n },\n } as const,\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
|
|
5
|
-
"mappings": "AAAA,
|
|
6
|
-
"names": []
|
|
5
|
+
"mappings": "AAAA,OAAS,SAAAA,EAAO,UAAAC,MAAc,eAEvB,MAAMC,EAAiBD,EAAOD,EAAO,CAC1C,SAAU,WACV,MAAO,EACP,OAAQ,EACR,OAAQ,GACR,OAAQ,KACR,SAAU,SACV,QAAS,KACT,cAAe,OAEf,SAAU,CACR,mBAAoB,CAClB,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,MACV,CACF,EAEA,QAAS,CACP,KAAM,CACJ,SAAU,WACV,MAAO,OACP,OAAQ,OACR,OAAQ,EACR,OAAQ,EACR,SAAU,UACV,QAAS,EACT,cAAe,MACjB,CACF,CACF,CACF,CAAC,EAGDE,EAAe,iBAAsB",
|
|
6
|
+
"names": ["Stack", "styled", "VisuallyHidden"]
|
|
7
7
|
}
|
package/dist/jsx/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./VisuallyHidden";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/jsx/index.js.map
CHANGED
package/dist/jsx/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export*from"./VisuallyHidden";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/jsx/index.mjs.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/visually-hidden",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@tamagui/web": "1.
|
|
34
|
+
"@tamagui/web": "1.14.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": "*"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@tamagui/build": "1.
|
|
40
|
+
"@tamagui/build": "1.14.0",
|
|
41
41
|
"react": "^18.2.0"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|