@tamagui/visually-hidden 1.2.9 → 1.2.11

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,37 @@
1
+ import { Stack, styled } from "@tamagui/core";
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
+ };
37
+ //# sourceMappingURL=VisuallyHidden.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/VisuallyHidden.tsx"],
4
+ "sourcesContent": ["import { Stack, styled } from '@tamagui/core'\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 } as const,\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 } as const,\n },\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
5
+ "mappings": "AAAA,SAAS,OAAO,cAAc;AAEvB,MAAM,iBAAiB,OAAO,OAAO;AAAA,EAC1C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,oBAAoB;AAAA,MAClB,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,SAAS;AAAA,MACP,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAGD,eAAe,kBAAkB,IAAI;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./VisuallyHidden";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './VisuallyHidden'\n"],
5
+ "mappings": "AAAA,cAAc;",
6
+ "names": []
7
+ }
@@ -0,0 +1,37 @@
1
+ import { Stack, styled } from "@tamagui/core";
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
+ };
37
+ //# sourceMappingURL=VisuallyHidden.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/VisuallyHidden.tsx"],
4
+ "sourcesContent": ["import { Stack, styled } from '@tamagui/core'\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 } as const,\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 } as const,\n },\n})\n\n// @tamgui/core checks for this in spacing\nVisuallyHidden['isVisuallyHidden'] = true\n"],
5
+ "mappings": "AAAA,SAAS,OAAO,cAAc;AAEvB,MAAM,iBAAiB,OAAO,OAAO;AAAA,EAC1C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,UAAU;AAAA,EACV,SAAS;AAAA,EACT,eAAe;AAAA,EAEf,UAAU;AAAA,IACR,oBAAoB;AAAA,MAClB,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,IAEA,SAAS;AAAA,MACP,MAAM;AAAA,QACJ,UAAU;AAAA,QACV,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,QAAQ;AAAA,QACR,UAAU;AAAA,QACV,SAAS;AAAA,QACT,eAAe;AAAA,MACjB;AAAA,IACF;AAAA,EACF;AACF,CAAC;AAGD,eAAe,kBAAkB,IAAI;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./VisuallyHidden";
2
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["export * from './VisuallyHidden'\n"],
5
+ "mappings": "AAAA,cAAc;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/visually-hidden",
3
- "version": "1.2.9",
3
+ "version": "1.2.11",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -23,14 +23,14 @@
23
23
  "clean:build": "tamagui-build clean:build"
24
24
  },
25
25
  "dependencies": {
26
- "@tamagui/core": "^1.2.9"
26
+ "@tamagui/core": "^1.2.11"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "react": "*",
30
30
  "react-dom": "*"
31
31
  },
32
32
  "devDependencies": {
33
- "@tamagui/build": "^1.2.9",
33
+ "@tamagui/build": "^1.2.11",
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0"
36
36
  },