@tamagui/visually-hidden 2.0.0-rc.4 → 2.0.0-rc.40

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.
@@ -3,20 +3,22 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: !0
9
- });
10
- },
11
- __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ for (var name in all) __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
13
14
  get: () => from[key],
14
15
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15
16
  });
16
- return to;
17
- };
17
+ }
18
+ return to;
19
+ };
18
20
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
19
- value: !0
21
+ value: true
20
22
  }), mod);
21
23
  var VisuallyHidden_exports = {};
22
24
  __export(VisuallyHidden_exports, {
@@ -55,4 +57,4 @@ const VisuallyHidden = (0, import_web.styled)(import_web.Text, {
55
57
  }
56
58
  }
57
59
  });
58
- VisuallyHidden.isVisuallyHidden = !0;
60
+ VisuallyHidden["isVisuallyHidden"] = true;
@@ -5,57 +5,59 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: !0
11
- });
12
- },
13
- __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
+ };
13
+ var __copyProps = (to, from, except, desc) => {
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
16
  get: () => from[key],
16
17
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
18
  });
18
- return to;
19
- };
19
+ }
20
+ return to;
21
+ };
20
22
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: !0
23
+ value: true
22
24
  }), mod);
23
25
  var VisuallyHidden_exports = {};
24
26
  __export(VisuallyHidden_exports, {
25
27
  VisuallyHidden: () => VisuallyHidden
26
28
  });
27
29
  module.exports = __toCommonJS(VisuallyHidden_exports);
28
- var import_web = require("@tamagui/web"),
29
- VisuallyHidden = (0, import_web.styled)(import_web.Text, {
30
- position: "absolute",
31
- width: 1,
32
- height: 1,
33
- margin: -1,
34
- zIndex: -1e4,
35
- overflow: "hidden",
36
- opacity: 1e-8,
37
- pointerEvents: "none",
38
- variants: {
39
- preserveDimensions: {
40
- true: {
41
- position: "relative",
42
- width: "auto",
43
- height: "auto"
44
- }
45
- },
46
- visible: {
47
- true: {
48
- position: "relative",
49
- width: "auto",
50
- height: "auto",
51
- margin: 0,
52
- zIndex: 1,
53
- overflow: "visible",
54
- opacity: 1,
55
- pointerEvents: "auto"
56
- }
30
+ var import_web = require("@tamagui/web");
31
+ var VisuallyHidden = (0, import_web.styled)(import_web.Text, {
32
+ position: "absolute",
33
+ width: 1,
34
+ height: 1,
35
+ margin: -1,
36
+ zIndex: -1e4,
37
+ overflow: "hidden",
38
+ opacity: 1e-8,
39
+ pointerEvents: "none",
40
+ variants: {
41
+ preserveDimensions: {
42
+ true: {
43
+ position: "relative",
44
+ width: "auto",
45
+ height: "auto"
46
+ }
47
+ },
48
+ visible: {
49
+ true: {
50
+ position: "relative",
51
+ width: "auto",
52
+ height: "auto",
53
+ margin: 0,
54
+ zIndex: 1,
55
+ overflow: "visible",
56
+ opacity: 1,
57
+ pointerEvents: "auto"
57
58
  }
58
59
  }
59
- });
60
- VisuallyHidden.isVisuallyHidden = !0;
60
+ }
61
+ });
62
+ VisuallyHidden["isVisuallyHidden"] = true;
61
63
  //# sourceMappingURL=VisuallyHidden.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","VisuallyHidden_exports","__export","VisuallyHidden","module","exports","import_web","require","styled","Text","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible","isVisuallyHidden"],"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAQOT,YAAA,CAAAK,sBAAA;AAEA,IAAAK,UAAM,GAAAC,OAAA,eAST;EAAAJ,cAAO,OAAMG,UAAA,CAAAE,MAAA,EAAAF,UAAA,CAAAG,IAAA;IACfC,QAAA,EAAU;IACVC,KAAA,EAAO;IACPC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,MAAA,EAAQ;IACRC,QAAA,EAAU;IACVC,OAAA,EAAS;IACTC,aAAA,EAAe;IAEfC,QAAA,EAAU;MACRC,kBAAA,EAAoB;QAClBC,IAAA,EAAM;UACJV,QAAA,EAAU;UACVC,KAAA,EAAO;UACPC,MAAA,EAAQ;QACV;MACF;MAEAS,OAAA,EAAS;QACPD,IAAA,EAAM;UACJV,QAAA,EAAU;UACVC,KAAA,EAAO;UACPC,MAAA,EAAQ;UACRC,MAAA,EAAQ;UACRC,MAAA,EAAQ;UACRC,QAAA,EAAU;UACVC,OAAA,EAAS;UACTC,aAAA,EAAe;QACjB;MACF;IACF;EACF,CAAC;AAGDd,cAAA,CAAemB,gBAAA,GAAsB","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","VisuallyHidden_exports","__export","VisuallyHidden","module","exports","import_web","require","styled","Text","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible"],"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,sBAAA;AAAAC,QAAA,CAAAD,sBAAA;EAAAE,cAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAQOT,YAAA,CAAAK,sBAAA;AAEA,IAAAK,UAAM,GAAAC,OAAA,eAST;AAAa,IACfJ,cAAU,OAAAG,UAAA,CAAAE,MAAA,EAAAF,UAAA,CAAAG,IAAA;EACVC,QAAO;EACPC,KAAA,GAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,MAAU;EACVC,QAAA,EAAS;EACTC,OAAA;EAEAC,aAAU;EAAAC,QACR;IAAoBC,kBACZ;MAAAC,IACJ;QACAV,QAAO;QACPC,KAAA,QAAQ;QACVC,MAAA;MACF;IAEA;IAASS,OACP,EAAM;MAAAD,IACJ;QACAV,QAAO;QACPC,KAAA,QAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA;QACAC,QAAA,EAAS;QACTC,OAAA;QACFC,aAAA;MACF;IACF;EACD;AAGD","ignoreList":[]}
@@ -3,15 +3,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
5
  var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
7
8
  get: () => from[key],
8
9
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
10
  });
10
- return to;
11
- },
12
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
15
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
- value: !0
16
+ value: true
15
17
  }), mod);
16
18
  var index_exports = {};
17
19
  module.exports = __toCommonJS(index_exports);
@@ -5,15 +5,17 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __copyProps = (to, from, except, desc) => {
8
- if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
8
+ if (from && typeof from === "object" || typeof from === "function") {
9
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
9
10
  get: () => from[key],
10
11
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
11
12
  });
12
- return to;
13
- },
14
- __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ }
14
+ return to;
15
+ };
16
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
17
  var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
16
- value: !0
18
+ value: true
17
19
  }), mod);
18
20
  var index_exports = {};
19
21
  module.exports = __toCommonJS(index_exports);
@@ -1 +1 @@
1
- {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
1
+ {"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","index_exports","module","exports"],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,aAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAP,YAAc,CAAAK,aAAA","ignoreList":[]}
@@ -30,6 +30,6 @@ const VisuallyHidden = styled(Text, {
30
30
  }
31
31
  }
32
32
  });
33
- VisuallyHidden.isVisuallyHidden = !0;
33
+ VisuallyHidden["isVisuallyHidden"] = true;
34
34
  export { VisuallyHidden };
35
35
  //# sourceMappingURL=VisuallyHidden.mjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["Text","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible","isVisuallyHidden"],"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAIEA,IAAA,EAGAC,MAAA,QACK;AAEA,MAAMC,cAAA,GASTD,MAAA,CAAOD,IAAA,EAAM;EACfG,QAAA,EAAU;EACVC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,OAAA,EAAS;EACTC,aAAA,EAAe;EAEfC,QAAA,EAAU;IACRC,kBAAA,EAAoB;MAClBC,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;MACV;IACF;IAEAS,OAAA,EAAS;MACPD,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,QAAA,EAAU;QACVC,OAAA,EAAS;QACTC,aAAA,EAAe;MACjB;IACF;EACF;AACF,CAAC;AAGDR,cAAA,CAAea,gBAAA,GAAsB","ignoreList":[]}
1
+ {"version":3,"names":["Text","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible"],"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAIEA,IAAA,EAGAC,MAAA,QACK;AAEA,MAAMC,cAAA,GASTD,MAAA,CAAOD,IAAA,EAAM;EACfG,QAAA,EAAU;EACVC,KAAA,EAAO;EACPC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,MAAA,EAAQ;EACRC,QAAA,EAAU;EACVC,OAAA,EAAS;EACTC,aAAA,EAAe;EAEfC,QAAA,EAAU;IACRC,kBAAA,EAAoB;MAClBC,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;MACV;IACF;IAEAS,OAAA,EAAS;MACPD,IAAA,EAAM;QACJV,QAAA,EAAU;QACVC,KAAA,EAAO;QACPC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,MAAA,EAAQ;QACRC,QAAA,EAAU;QACVC,OAAA,EAAS;QACTC,aAAA,EAAe;MACjB;IACF;EACF;AACF,CAAC;AAGDR,cAAA,CAAe,kBAAkB,IAAI","ignoreList":[]}
@@ -30,6 +30,6 @@ var VisuallyHidden = styled(Text, {
30
30
  }
31
31
  }
32
32
  });
33
- VisuallyHidden.isVisuallyHidden = !0;
33
+ VisuallyHidden["isVisuallyHidden"] = true;
34
34
  export { VisuallyHidden };
35
35
  //# sourceMappingURL=VisuallyHidden.native.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Text","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible","isVisuallyHidden"],"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAAA,IAAA,EAAAC,MAAA;AAAA,IAIEC,cAAA,GAAAD,MAAA,CAAAD,IAAA;EAGAG,QAAA;EAAAC,KACK;EAEAC,MAAM;EAUXC,MAAA,IAAU;EACVC,MAAA,EAAO;EACPC,QAAQ;EACRC,OAAA,EAAQ;EACRC,aAAQ;EACRC,QAAA,EAAU;IACVC,kBAAS;MACTC,IAAA;QAEAV,QAAU;QACRC,KAAA;QACEC,MAAM;MAAA;IACM;IACHS,OACP;MACFD,IAAA;QACFV,QAAA;QAEAC,KAAS;QACPC,MAAM;QACJC,MAAA;QACAC,MAAA,EAAO;QACPC,QAAQ;QACRC,OAAA,EAAQ;QACRC,aAAQ;MAAA;IACE;EACD;AACM;AACjBR,cACF,CAAAa,gBAAA;AAAA,SAEHb,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["Text","styled","VisuallyHidden","position","width","height","margin","zIndex","overflow","opacity","pointerEvents","variants","preserveDimensions","true","visible"],"sources":["../../src/VisuallyHidden.tsx"],"sourcesContent":[null],"mappings":"AAAA,SAAAA,IAAA,EAAAC,MAAA;AAAA,IAIEC,cAAA,GAAAD,MAAA,CAAAD,IAAA;EAGAG,QAAA;EAAAC,KACK;EAEAC,MAAM;EAUXC,MAAA,IAAU;EACVC,MAAA,EAAO;EACPC,QAAQ;EACRC,OAAA,EAAQ;EACRC,aAAQ;EACRC,QAAA,EAAU;IACVC,kBAAS;MACTC,IAAA;QAEAV,QAAU;QACRC,KAAA;QACEC,MAAM;MAAA;IACM;IACHS,OACP;MACFD,IAAA;QACFV,QAAA;QAEAC,KAAS;QACPC,MAAM;QACJC,MAAA;QACAC,MAAA,EAAO;QACPC,QAAQ;QACRC,OAAA,EAAQ;QACRC,aAAQ;MAAA;IACE;EACD;AACM;AACjBR,cACF;AAAA,SAEHA,cAAA","ignoreList":[]}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./VisuallyHidden";
1
+ export * from "./VisuallyHidden.mjs";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,6 +1 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": "AAAA,cAAc;",
5
- "names": []
6
- }
1
+ {"version":3,"names":[],"sources":["../../src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,cAAc","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/visually-hidden",
3
- "version": "2.0.0-rc.4",
3
+ "version": "2.0.0-rc.40",
4
4
  "source": "src/index.ts",
5
5
  "files": [
6
6
  "src",
@@ -18,15 +18,12 @@
18
18
  "./package.json": "./package.json",
19
19
  ".": {
20
20
  "types": "./types/index.d.ts",
21
- "react-native": {
22
- "module": "./dist/esm/index.native.js",
23
- "import": "./dist/esm/index.native.js",
24
- "require": "./dist/cjs/index.native.js"
25
- },
21
+ "react-native": "./dist/esm/index.native.js",
22
+ "browser": "./dist/esm/index.mjs",
26
23
  "module": "./dist/esm/index.mjs",
27
24
  "import": "./dist/esm/index.mjs",
28
25
  "require": "./dist/cjs/index.cjs",
29
- "default": "./dist/cjs/index.native.js"
26
+ "default": "./dist/esm/index.mjs"
30
27
  }
31
28
  },
32
29
  "publishConfig": {
@@ -39,10 +36,10 @@
39
36
  "clean:build": "tamagui-build clean:build"
40
37
  },
41
38
  "dependencies": {
42
- "@tamagui/web": "2.0.0-rc.4"
39
+ "@tamagui/web": "2.0.0-rc.40"
43
40
  },
44
41
  "devDependencies": {
45
- "@tamagui/build": "2.0.0-rc.4",
42
+ "@tamagui/build": "2.0.0-rc.40",
46
43
  "react": ">=19"
47
44
  },
48
45
  "peerDependencies": {
@@ -1,13 +1,11 @@
1
1
  {
2
- "mappings": "AAAA,cACO,gBACA,uBACA,yBAEA,wBACA,0BAEA;AAEP,OAAO,cAAMA,gBAAgB,iBAC3B,WACA,oBACA,mBACA,oBACA;CACE;CACA",
3
- "names": [
4
- "VisuallyHidden: TamaguiComponent<\n TamaDefer,\n TamaguiTextElement,\n TextNonStyleProps,\n TextStylePropsBase,\n {\n visible?: boolean | undefined\n preserveDimensions?: boolean | undefined\n }\n>"
5
- ],
2
+ "mappings": "AAAA,cACO,gBACA,uBACA,yBAEA,wBACA,0BAEA;AAEP,OAAO,cAAM,gBAAgB,iBAC3B,WACA,oBACA,mBACA,oBACA;CACE;CACA",
3
+ "names": [],
6
4
  "sources": [
7
5
  "src/VisuallyHidden.tsx"
8
6
  ],
7
+ "version": 3,
9
8
  "sourcesContent": [
10
9
  "import {\n type TamaDefer,\n type TamaguiComponent,\n type TamaguiTextElement,\n Text,\n type TextNonStyleProps,\n type TextStylePropsBase,\n styled,\n} from '@tamagui/web'\n\nexport const VisuallyHidden: TamaguiComponent<\n TamaDefer,\n TamaguiTextElement,\n TextNonStyleProps,\n TextStylePropsBase,\n {\n visible?: boolean | undefined\n preserveDimensions?: boolean | undefined\n }\n> = styled(Text, {\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"
11
- ],
12
- "version": 3
10
+ ]
13
11
  }
@@ -4,8 +4,8 @@
4
4
  "sources": [
5
5
  "src/index.ts"
6
6
  ],
7
+ "version": 3,
7
8
  "sourcesContent": [
8
9
  "export * from './VisuallyHidden'\n"
9
- ],
10
- "version": 3
10
+ ]
11
11
  }
@@ -1,53 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name in all)
7
- __defProp(target, name, { get: all[name], enumerable: !0 });
8
- }, __copyProps = (to, from, except, desc) => {
9
- if (from && typeof from == "object" || typeof from == "function")
10
- for (let key of __getOwnPropNames(from))
11
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
12
- return to;
13
- };
14
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
15
- var VisuallyHidden_exports = {};
16
- __export(VisuallyHidden_exports, {
17
- VisuallyHidden: () => VisuallyHidden
18
- });
19
- module.exports = __toCommonJS(VisuallyHidden_exports);
20
- var import_web = require("@tamagui/web");
21
- const VisuallyHidden = (0, import_web.styled)(import_web.Text, {
22
- position: "absolute",
23
- width: 1,
24
- height: 1,
25
- margin: -1,
26
- zIndex: -1e4,
27
- overflow: "hidden",
28
- opacity: 1e-8,
29
- pointerEvents: "none",
30
- variants: {
31
- preserveDimensions: {
32
- true: {
33
- position: "relative",
34
- width: "auto",
35
- height: "auto"
36
- }
37
- },
38
- visible: {
39
- true: {
40
- position: "relative",
41
- width: "auto",
42
- height: "auto",
43
- margin: 0,
44
- zIndex: 1,
45
- overflow: "visible",
46
- opacity: 1,
47
- pointerEvents: "auto"
48
- }
49
- }
50
- }
51
- });
52
- VisuallyHidden.isVisuallyHidden = !0;
53
- //# sourceMappingURL=VisuallyHidden.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/VisuallyHidden.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAQO;AAEA,MAAM,qBAST,mBAAO,iBAAM;AAAA,EACf,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,mBAAsB;",
5
- "names": []
6
- }
package/dist/cjs/index.js DELETED
@@ -1,15 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __copyProps = (to, from, except, desc) => {
6
- if (from && typeof from == "object" || typeof from == "function")
7
- for (let key of __getOwnPropNames(from))
8
- !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
9
- return to;
10
- }, __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
11
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
12
- var index_exports = {};
13
- module.exports = __toCommonJS(index_exports);
14
- __reExport(index_exports, require("./VisuallyHidden"), module.exports);
15
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/index.ts"],
4
- "mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,0BAAc,6BAAd;",
5
- "names": []
6
- }
@@ -1,40 +0,0 @@
1
- import {
2
- Text,
3
- styled
4
- } from "@tamagui/web";
5
- const VisuallyHidden = styled(Text, {
6
- position: "absolute",
7
- width: 1,
8
- height: 1,
9
- margin: -1,
10
- zIndex: -1e4,
11
- overflow: "hidden",
12
- opacity: 1e-8,
13
- pointerEvents: "none",
14
- variants: {
15
- preserveDimensions: {
16
- true: {
17
- position: "relative",
18
- width: "auto",
19
- height: "auto"
20
- }
21
- },
22
- visible: {
23
- true: {
24
- position: "relative",
25
- width: "auto",
26
- height: "auto",
27
- margin: 0,
28
- zIndex: 1,
29
- overflow: "visible",
30
- opacity: 1,
31
- pointerEvents: "auto"
32
- }
33
- }
34
- }
35
- });
36
- VisuallyHidden.isVisuallyHidden = !0;
37
- export {
38
- VisuallyHidden
39
- };
40
- //# sourceMappingURL=VisuallyHidden.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/VisuallyHidden.tsx"],
4
- "mappings": "AAAA;AAAA,EAIE;AAAA,EAGA;AAAA,OACK;AAEA,MAAM,iBAST,OAAO,MAAM;AAAA,EACf,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,mBAAsB;",
5
- "names": []
6
- }