@tamagui/separator 1.14.1 → 1.14.3

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.
@@ -1,2 +1,57 @@
1
- "use strict";var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var b=(r,t)=>{for(var e in t)a(r,e,{get:t[e],enumerable:!0})},n=(r,t,e,h)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of l(t))!m.call(r,i)&&i!==e&&a(r,i,{get:()=>t[i],enumerable:!(h=d(t,i))||h.enumerable});return r};var x=r=>n(a({},"__esModule",{value:!0}),r);var W={};b(W,{Separator:()=>s});module.exports=x(W);var o=require("@tamagui/core");const s=(0,o.styled)(o.Stack,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:o.isWeb?"initial":"auto",maxHeight:o.isWeb?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}});0&&(module.exports={Separator});
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 Separator_exports = {};
20
+ __export(Separator_exports, {
21
+ Separator: () => Separator
22
+ });
23
+ module.exports = __toCommonJS(Separator_exports);
24
+ var import_core = require("@tamagui/core");
25
+ const Separator = (0, import_core.styled)(import_core.Stack, {
26
+ name: "Separator",
27
+ borderColor: "$borderColor",
28
+ flexShrink: 0,
29
+ borderWidth: 0,
30
+ flex: 1,
31
+ height: 0,
32
+ maxHeight: 0,
33
+ borderBottomWidth: 1,
34
+ y: -0.5,
35
+ variants: {
36
+ vertical: {
37
+ true: {
38
+ y: 0,
39
+ x: -0.5,
40
+ height: import_core.isWeb ? "initial" : "auto",
41
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
42
+ // almost seems like a react or browser bug, but for now `initial` works
43
+ // also, it doesn't happen for `height`, but for consistency using the same values
44
+ maxHeight: import_core.isWeb ? "initial" : "auto",
45
+ width: 0,
46
+ maxWidth: 0,
47
+ borderBottomWidth: 0,
48
+ borderRightWidth: 1
49
+ }
50
+ }
51
+ }
52
+ });
53
+ // Annotate the CommonJS export names for ESM import in node:
54
+ 0 && (module.exports = {
55
+ Separator
56
+ });
2
57
  //# sourceMappingURL=Separator.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
4
  "sourcesContent": ["import { Stack, isWeb, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColor',\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? 'initial' : 'auto',\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? 'initial' : 'auto',\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n } as const,\n})\n"],
5
- "mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,eAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAqC,yBAE9B,MAAMF,KAAY,UAAO,QAAO,CACrC,KAAM,YACN,YAAa,eACb,WAAY,EACZ,YAAa,EACb,KAAM,EACN,OAAQ,EACR,UAAW,EACX,kBAAmB,EACnB,EAAG,IAEH,SAAU,CACR,SAAU,CACR,KAAM,CACJ,EAAG,EACH,EAAG,IACH,OAAQ,QAAQ,UAAY,OAI5B,UAAW,QAAQ,UAAY,OAC/B,MAAO,EACP,SAAU,EACV,kBAAmB,EACnB,iBAAkB,CACpB,CACF,CACF,CACF,CAAC",
6
- "names": ["Separator_exports", "__export", "Separator", "__toCommonJS", "import_core"]
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqC;AAE9B,MAAM,gBAAY,oBAAO,mBAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,QAAQ,oBAAQ,YAAY;AAAA;AAAA;AAAA;AAAA,QAI5B,WAAW,oBAAQ,YAAY;AAAA,QAC/B,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,19 @@
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("./Separator"),module.exports);
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("./Separator"), module.exports);
2
19
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './Separator'\n"],
5
- "mappings": "iaAAA,IAAAA,EAAA,kBAAAC,EAAAD,GAAAE,EAAAF,EAAc,uBAAd",
6
- "names": ["src_exports", "__toCommonJS", "__reExport"]
5
+ "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,wBAAd;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,33 @@
1
- import{Stack as r,isWeb as t,styled as o}from"@tamagui/core";const e=o(r,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:t?"initial":"auto",maxHeight:t?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}});export{e as Separator};
1
+ import { Stack, isWeb, styled } from "@tamagui/core";
2
+ const Separator = styled(Stack, {
3
+ name: "Separator",
4
+ borderColor: "$borderColor",
5
+ flexShrink: 0,
6
+ borderWidth: 0,
7
+ flex: 1,
8
+ height: 0,
9
+ maxHeight: 0,
10
+ borderBottomWidth: 1,
11
+ y: -0.5,
12
+ variants: {
13
+ vertical: {
14
+ true: {
15
+ y: 0,
16
+ x: -0.5,
17
+ height: isWeb ? "initial" : "auto",
18
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
19
+ // almost seems like a react or browser bug, but for now `initial` works
20
+ // also, it doesn't happen for `height`, but for consistency using the same values
21
+ maxHeight: isWeb ? "initial" : "auto",
22
+ width: 0,
23
+ maxWidth: 0,
24
+ borderBottomWidth: 0,
25
+ borderRightWidth: 1
26
+ }
27
+ }
28
+ }
29
+ });
30
+ export {
31
+ Separator
32
+ };
2
33
  //# sourceMappingURL=Separator.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
4
  "sourcesContent": ["import { Stack, isWeb, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColor',\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? 'initial' : 'auto',\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? 'initial' : 'auto',\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n } as const,\n})\n"],
5
- "mappings": "AAAA,OAAS,SAAAA,EAAO,SAAAC,EAAO,UAAAC,MAAc,gBAE9B,MAAMC,EAAYD,EAAOF,EAAO,CACrC,KAAM,YACN,YAAa,eACb,WAAY,EACZ,YAAa,EACb,KAAM,EACN,OAAQ,EACR,UAAW,EACX,kBAAmB,EACnB,EAAG,IAEH,SAAU,CACR,SAAU,CACR,KAAM,CACJ,EAAG,EACH,EAAG,IACH,OAAQC,EAAQ,UAAY,OAI5B,UAAWA,EAAQ,UAAY,OAC/B,MAAO,EACP,SAAU,EACV,kBAAmB,EACnB,iBAAkB,CACpB,CACF,CACF,CACF,CAAC",
6
- "names": ["Stack", "isWeb", "styled", "Separator"]
5
+ "mappings": "AAAA,SAAS,OAAO,OAAO,cAAc;AAE9B,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,QAAQ,QAAQ,YAAY;AAAA;AAAA;AAAA;AAAA,QAI5B,WAAW,QAAQ,YAAY;AAAA,QAC/B,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,33 @@
1
- import{Stack as r,isWeb as t,styled as o}from"@tamagui/core";const e=o(r,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:t?"initial":"auto",maxHeight:t?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}});export{e as Separator};
1
+ import { Stack, isWeb, styled } from "@tamagui/core";
2
+ const Separator = styled(Stack, {
3
+ name: "Separator",
4
+ borderColor: "$borderColor",
5
+ flexShrink: 0,
6
+ borderWidth: 0,
7
+ flex: 1,
8
+ height: 0,
9
+ maxHeight: 0,
10
+ borderBottomWidth: 1,
11
+ y: -0.5,
12
+ variants: {
13
+ vertical: {
14
+ true: {
15
+ y: 0,
16
+ x: -0.5,
17
+ height: isWeb ? "initial" : "auto",
18
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
19
+ // almost seems like a react or browser bug, but for now `initial` works
20
+ // also, it doesn't happen for `height`, but for consistency using the same values
21
+ maxHeight: isWeb ? "initial" : "auto",
22
+ width: 0,
23
+ maxWidth: 0,
24
+ borderBottomWidth: 0,
25
+ borderRightWidth: 1
26
+ }
27
+ }
28
+ }
29
+ });
30
+ export {
31
+ Separator
32
+ };
2
33
  //# sourceMappingURL=Separator.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
4
  "sourcesContent": ["import { Stack, isWeb, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColor',\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? 'initial' : 'auto',\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? 'initial' : 'auto',\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n } as const,\n})\n"],
5
- "mappings": "AAAA,OAAS,SAAAA,EAAO,SAAAC,EAAO,UAAAC,MAAc,gBAE9B,MAAMC,EAAYD,EAAOF,EAAO,CACrC,KAAM,YACN,YAAa,eACb,WAAY,EACZ,YAAa,EACb,KAAM,EACN,OAAQ,EACR,UAAW,EACX,kBAAmB,EACnB,EAAG,IAEH,SAAU,CACR,SAAU,CACR,KAAM,CACJ,EAAG,EACH,EAAG,IACH,OAAQC,EAAQ,UAAY,OAI5B,UAAWA,EAAQ,UAAY,OAC/B,MAAO,EACP,SAAU,EACV,kBAAmB,EACnB,iBAAkB,CACpB,CACF,CACF,CACF,CAAC",
6
- "names": ["Stack", "isWeb", "styled", "Separator"]
5
+ "mappings": "AAAA,SAAS,OAAO,OAAO,cAAc;AAE9B,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,QAAQ,QAAQ,YAAY;AAAA;AAAA;AAAA;AAAA,QAI5B,WAAW,QAAQ,YAAY;AAAA,QAC/B,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export*from"./Separator";
1
+ export * from "./Separator";
2
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './Separator'\n"],
5
- "mappings": "AAAA,WAAc",
5
+ "mappings": "AAAA,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export*from"./Separator";
1
+ export * from "./Separator";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './Separator'\n"],
5
- "mappings": "AAAA,WAAc",
5
+ "mappings": "AAAA,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,33 @@
1
- import{Stack as r,isWeb as t,styled as o}from"@tamagui/core";const e=o(r,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:t?"initial":"auto",maxHeight:t?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}});export{e as Separator};
1
+ import { Stack, isWeb, styled } from "@tamagui/core";
2
+ const Separator = styled(Stack, {
3
+ name: "Separator",
4
+ borderColor: "$borderColor",
5
+ flexShrink: 0,
6
+ borderWidth: 0,
7
+ flex: 1,
8
+ height: 0,
9
+ maxHeight: 0,
10
+ borderBottomWidth: 1,
11
+ y: -0.5,
12
+ variants: {
13
+ vertical: {
14
+ true: {
15
+ y: 0,
16
+ x: -0.5,
17
+ height: isWeb ? "initial" : "auto",
18
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
19
+ // almost seems like a react or browser bug, but for now `initial` works
20
+ // also, it doesn't happen for `height`, but for consistency using the same values
21
+ maxHeight: isWeb ? "initial" : "auto",
22
+ width: 0,
23
+ maxWidth: 0,
24
+ borderBottomWidth: 0,
25
+ borderRightWidth: 1
26
+ }
27
+ }
28
+ }
29
+ });
30
+ export {
31
+ Separator
32
+ };
2
33
  //# sourceMappingURL=Separator.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
4
  "sourcesContent": ["import { Stack, isWeb, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColor',\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? 'initial' : 'auto',\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? 'initial' : 'auto',\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n } as const,\n})\n"],
5
- "mappings": "AAAA,OAAS,SAAAA,EAAO,SAAAC,EAAO,UAAAC,MAAc,gBAE9B,MAAMC,EAAYD,EAAOF,EAAO,CACrC,KAAM,YACN,YAAa,eACb,WAAY,EACZ,YAAa,EACb,KAAM,EACN,OAAQ,EACR,UAAW,EACX,kBAAmB,EACnB,EAAG,IAEH,SAAU,CACR,SAAU,CACR,KAAM,CACJ,EAAG,EACH,EAAG,IACH,OAAQC,EAAQ,UAAY,OAI5B,UAAWA,EAAQ,UAAY,OAC/B,MAAO,EACP,SAAU,EACV,kBAAmB,EACnB,iBAAkB,CACpB,CACF,CACF,CACF,CAAC",
6
- "names": ["Stack", "isWeb", "styled", "Separator"]
5
+ "mappings": "AAAA,SAAS,OAAO,OAAO,cAAc;AAE9B,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,QAAQ,QAAQ,YAAY;AAAA;AAAA;AAAA;AAAA,QAI5B,WAAW,QAAQ,YAAY;AAAA,QAC/B,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
7
  }
@@ -1,2 +1,33 @@
1
- import{Stack as r,isWeb as t,styled as o}from"@tamagui/core";const e=o(r,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:t?"initial":"auto",maxHeight:t?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}});export{e as Separator};
1
+ import { Stack, isWeb, styled } from "@tamagui/core";
2
+ const Separator = styled(Stack, {
3
+ name: "Separator",
4
+ borderColor: "$borderColor",
5
+ flexShrink: 0,
6
+ borderWidth: 0,
7
+ flex: 1,
8
+ height: 0,
9
+ maxHeight: 0,
10
+ borderBottomWidth: 1,
11
+ y: -0.5,
12
+ variants: {
13
+ vertical: {
14
+ true: {
15
+ y: 0,
16
+ x: -0.5,
17
+ height: isWeb ? "initial" : "auto",
18
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
19
+ // almost seems like a react or browser bug, but for now `initial` works
20
+ // also, it doesn't happen for `height`, but for consistency using the same values
21
+ maxHeight: isWeb ? "initial" : "auto",
22
+ width: 0,
23
+ maxWidth: 0,
24
+ borderBottomWidth: 0,
25
+ borderRightWidth: 1
26
+ }
27
+ }
28
+ }
29
+ });
30
+ export {
31
+ Separator
32
+ };
2
33
  //# sourceMappingURL=Separator.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
4
  "sourcesContent": ["import { Stack, isWeb, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColor',\n flexShrink: 0,\n borderWidth: 0,\n flex: 1,\n height: 0,\n maxHeight: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n height: isWeb ? 'initial' : 'auto',\n // maxHeight auto WILL BE passed to style attribute, but for some reason not used?\n // almost seems like a react or browser bug, but for now `initial` works\n // also, it doesn't happen for `height`, but for consistency using the same values\n maxHeight: isWeb ? 'initial' : 'auto',\n width: 0,\n maxWidth: 0,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n } as const,\n})\n"],
5
- "mappings": "AAAA,OAAS,SAAAA,EAAO,SAAAC,EAAO,UAAAC,MAAc,gBAE9B,MAAMC,EAAYD,EAAOF,EAAO,CACrC,KAAM,YACN,YAAa,eACb,WAAY,EACZ,YAAa,EACb,KAAM,EACN,OAAQ,EACR,UAAW,EACX,kBAAmB,EACnB,EAAG,IAEH,SAAU,CACR,SAAU,CACR,KAAM,CACJ,EAAG,EACH,EAAG,IACH,OAAQC,EAAQ,UAAY,OAI5B,UAAWA,EAAQ,UAAY,OAC/B,MAAO,EACP,SAAU,EACV,kBAAmB,EACnB,iBAAkB,CACpB,CACF,CACF,CACF,CAAC",
6
- "names": ["Stack", "isWeb", "styled", "Separator"]
5
+ "mappings": "AAAA,SAAS,OAAO,OAAO,cAAc;AAE9B,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,QAAQ,QAAQ,YAAY;AAAA;AAAA;AAAA;AAAA,QAI5B,WAAW,QAAQ,YAAY;AAAA,QAC/B,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
6
+ "names": []
7
7
  }
package/dist/jsx/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export*from"./Separator";
1
+ export * from "./Separator";
2
2
  //# sourceMappingURL=index.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './Separator'\n"],
5
- "mappings": "AAAA,WAAc",
5
+ "mappings": "AAAA,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,2 +1,2 @@
1
- export*from"./Separator";
1
+ export * from "./Separator";
2
2
  //# sourceMappingURL=index.mjs.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
4
  "sourcesContent": ["export * from './Separator'\n"],
5
- "mappings": "AAAA,WAAc",
5
+ "mappings": "AAAA,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tamagui/separator",
3
- "version": "1.14.1",
3
+ "version": "1.14.3",
4
4
  "sideEffects": [
5
5
  "*.css"
6
6
  ],
@@ -29,13 +29,13 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@tamagui/core": "1.14.1"
32
+ "@tamagui/core": "1.14.3"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "*"
36
36
  },
37
37
  "devDependencies": {
38
- "@tamagui/build": "1.14.1",
38
+ "@tamagui/build": "1.14.3",
39
39
  "react": "^18.2.0"
40
40
  },
41
41
  "publishConfig": {