@tamagui/separator 1.0.0-beta.16 → 1.0.1-beta.101

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.
@@ -23,10 +23,12 @@ module.exports = __toCommonJS(Separator_exports);
23
23
  var import_core = require("@tamagui/core");
24
24
  const Separator = (0, import_core.styled)(import_core.Stack, {
25
25
  name: "Separator",
26
- borderColor: "$borderColorHover",
26
+ borderColor: "$borderColor",
27
27
  flexShrink: 0,
28
- alignSelf: "stretch",
29
28
  borderWidth: 0,
29
+ flex: 1,
30
+ height: 0,
31
+ maxHeight: 0,
30
32
  borderBottomWidth: 1,
31
33
  y: -0.5,
32
34
  variants: {
@@ -34,6 +36,10 @@ const Separator = (0, import_core.styled)(import_core.Stack, {
34
36
  true: {
35
37
  y: 0,
36
38
  x: -0.5,
39
+ height: import_core.isWeb ? "initial" : "auto",
40
+ maxHeight: import_core.isWeb ? "initial" : "auto",
41
+ width: 0,
42
+ maxWidth: 0,
37
43
  borderBottomWidth: 0,
38
44
  borderRightWidth: 1
39
45
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
- "sourcesContent": ["import { Stack, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColorHover',\n flexShrink: 0,\n alignSelf: 'stretch',\n borderWidth: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n },\n})\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA8B;AAEvB,MAAM,YAAY,wBAAO,mBAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
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 },\n})\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAAqC;AAE9B,MAAM,YAAY,wBAAO,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,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
6
  "names": []
7
7
  }
@@ -1,10 +1,12 @@
1
- import { Stack, styled } from "@tamagui/core";
1
+ import { Stack, isWeb, styled } from "@tamagui/core";
2
2
  const Separator = styled(Stack, {
3
3
  name: "Separator",
4
- borderColor: "$borderColorHover",
4
+ borderColor: "$borderColor",
5
5
  flexShrink: 0,
6
- alignSelf: "stretch",
7
6
  borderWidth: 0,
7
+ flex: 1,
8
+ height: 0,
9
+ maxHeight: 0,
8
10
  borderBottomWidth: 1,
9
11
  y: -0.5,
10
12
  variants: {
@@ -12,6 +14,10 @@ const Separator = styled(Stack, {
12
14
  true: {
13
15
  y: 0,
14
16
  x: -0.5,
17
+ height: isWeb ? "initial" : "auto",
18
+ maxHeight: isWeb ? "initial" : "auto",
19
+ width: 0,
20
+ maxWidth: 0,
15
21
  borderBottomWidth: 0,
16
22
  borderRightWidth: 1
17
23
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/Separator.tsx"],
4
- "sourcesContent": ["import { Stack, styled } from '@tamagui/core'\n\nexport const Separator = styled(Stack, {\n name: 'Separator',\n borderColor: '$borderColorHover',\n flexShrink: 0,\n alignSelf: 'stretch',\n borderWidth: 0,\n borderBottomWidth: 1,\n y: -0.5,\n\n variants: {\n vertical: {\n true: {\n y: 0,\n x: -0.5,\n borderBottomWidth: 0,\n borderRightWidth: 1,\n },\n },\n },\n})\n"],
5
- "mappings": "AAAA;AAEO,MAAM,YAAY,OAAO,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,aAAa;AAAA,EACb,mBAAmB;AAAA,EACnB,GAAG;AAAA,EAEH,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AACF,CAAC;",
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 },\n})\n"],
5
+ "mappings": "AAAA;AAEO,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,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
6
  "names": []
7
7
  }
@@ -1,10 +1,12 @@
1
- import { Stack, styled } from "@tamagui/core";
1
+ import { Stack, isWeb, styled } from "@tamagui/core";
2
2
  const Separator = styled(Stack, {
3
3
  name: "Separator",
4
- borderColor: "$borderColorHover",
4
+ borderColor: "$borderColor",
5
5
  flexShrink: 0,
6
- alignSelf: "stretch",
7
6
  borderWidth: 0,
7
+ flex: 1,
8
+ height: 0,
9
+ maxHeight: 0,
8
10
  borderBottomWidth: 1,
9
11
  y: -0.5,
10
12
  variants: {
@@ -12,6 +14,10 @@ const Separator = styled(Stack, {
12
14
  true: {
13
15
  y: 0,
14
16
  x: -0.5,
17
+ height: isWeb ? "initial" : "auto",
18
+ maxHeight: isWeb ? "initial" : "auto",
19
+ width: 0,
20
+ maxWidth: 0,
15
21
  borderBottomWidth: 0,
16
22
  borderRightWidth: 1
17
23
  }
@@ -21,3 +27,4 @@ const Separator = styled(Stack, {
21
27
  export {
22
28
  Separator
23
29
  };
30
+ //# sourceMappingURL=Separator.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Separator.tsx"],
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 },\n})\n"],
5
+ "mappings": "AAAA;AAEO,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,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
+ }
package/dist/jsx/index.js CHANGED
@@ -1 +1,2 @@
1
1
  export * from "./Separator";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "sourcesContent": ["export * from './Separator'\n"],
5
+ "mappings": "AAAA;",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@tamagui/separator",
3
- "version": "1.0.0-beta.16",
4
- "sideEffects": false,
3
+ "version": "1.0.1-beta.101",
4
+ "sideEffects": [
5
+ "*.css"
6
+ ],
5
7
  "source": "src/index.ts",
6
- "typings": "types",
8
+ "types": "./types/index.d.ts",
7
9
  "main": "dist/cjs",
8
10
  "module": "dist/esm",
9
11
  "module:jsx": "dist/jsx",
10
12
  "files": [
13
+ "src",
11
14
  "types",
12
15
  "dist"
13
16
  ],
@@ -16,14 +19,14 @@
16
19
  "watch": "tamagui-build --watch"
17
20
  },
18
21
  "dependencies": {
19
- "@tamagui/core": "^1.0.0-beta.16"
22
+ "@tamagui/core": "^1.0.1-beta.101"
20
23
  },
21
24
  "peerDependencies": {
22
25
  "react": "*",
23
26
  "react-dom": "*"
24
27
  },
25
28
  "devDependencies": {
26
- "@tamagui/build": "^1.0.0-beta.16",
29
+ "@tamagui/build": "^1.0.1-beta.101",
27
30
  "react": "*",
28
31
  "react-dom": "*"
29
32
  },
@@ -0,0 +1,31 @@
1
+ import { Stack, isWeb, styled } from '@tamagui/core'
2
+
3
+ export const Separator = styled(Stack, {
4
+ name: 'Separator',
5
+ borderColor: '$borderColor',
6
+ flexShrink: 0,
7
+ borderWidth: 0,
8
+ flex: 1,
9
+ height: 0,
10
+ maxHeight: 0,
11
+ borderBottomWidth: 1,
12
+ y: -0.5,
13
+
14
+ variants: {
15
+ vertical: {
16
+ true: {
17
+ y: 0,
18
+ x: -0.5,
19
+ height: isWeb ? 'initial' : 'auto',
20
+ // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
21
+ // almost seems like a react or browser bug, but for now `initial` works
22
+ // also, it doesn't happen for `height`, but for consistency using the same values
23
+ maxHeight: isWeb ? 'initial' : 'auto',
24
+ width: 0,
25
+ maxWidth: 0,
26
+ borderBottomWidth: 0,
27
+ borderRightWidth: 1,
28
+ },
29
+ },
30
+ },
31
+ })
package/src/index.tsx ADDED
@@ -0,0 +1 @@
1
+ export * from './Separator'
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;EAmBpB,CAAA"}
1
+ {"version":3,"file":"Separator.d.ts","sourceRoot":"","sources":["../src/Separator.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;EA4BpB,CAAA"}
package/types/index.d.ts CHANGED
File without changes
File without changes