@tamagui/separator 2.0.0-rc.3 → 2.0.0-rc.30

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/index.js CHANGED
@@ -3,13 +3,16 @@ 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")
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);
6
+ if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
7
+ get: () => from[key],
8
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
9
+ });
10
+ return to;
11
+ },
12
+ __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
13
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
14
+ value: !0
15
+ }), mod);
12
16
  var index_exports = {};
13
17
  module.exports = __toCommonJS(index_exports);
14
- __reExport(index_exports, require("./Separator"), module.exports);
15
- //# sourceMappingURL=index.js.map
18
+ __reExport(index_exports, require("./Separator.cjs"), module.exports);
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Separator";
1
+ export * from "./Separator.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/dist/jsx/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export * from "./Separator";
1
+ export * from "./Separator.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/separator",
3
- "version": "2.0.0-rc.3",
3
+ "version": "2.0.0-rc.30",
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,11 +36,11 @@
39
36
  "clean:build": "tamagui-build clean:build"
40
37
  },
41
38
  "dependencies": {
42
- "@tamagui/constants": "2.0.0-rc.3",
43
- "@tamagui/core": "2.0.0-rc.3"
39
+ "@tamagui/constants": "2.0.0-rc.30",
40
+ "@tamagui/core": "2.0.0-rc.30"
44
41
  },
45
42
  "devDependencies": {
46
- "@tamagui/build": "2.0.0-rc.3",
43
+ "@tamagui/build": "2.0.0-rc.30",
47
44
  "react": ">=19"
48
45
  },
49
46
  "peerDependencies": {
@@ -1,56 +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 Separator_exports = {};
16
- __export(Separator_exports, {
17
- Separator: () => Separator
18
- });
19
- module.exports = __toCommonJS(Separator_exports);
20
- var import_constants = require("@tamagui/constants"), import_core = require("@tamagui/core");
21
- const Separator = (0, import_core.styled)(import_core.View, {
22
- name: "Separator",
23
- variants: {
24
- unstyled: {
25
- false: {
26
- borderColor: "$backgroundFocus",
27
- flexShrink: 0,
28
- borderWidth: 0,
29
- flex: 1,
30
- height: 0,
31
- maxHeight: 0,
32
- borderBottomWidth: 1,
33
- y: -0.5
34
- }
35
- },
36
- vertical: {
37
- true: {
38
- y: 0,
39
- x: -0.5,
40
- height: import_constants.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_constants.isWeb ? "initial" : "auto",
45
- width: 0,
46
- maxWidth: 0,
47
- borderBottomWidth: 0,
48
- borderRightWidth: 1
49
- }
50
- }
51
- },
52
- defaultVariants: {
53
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
54
- }
55
- });
56
- //# sourceMappingURL=Separator.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Separator.tsx"],
4
- "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAAsB,+BACtB,cAA6B;AAEtB,MAAM,gBAAY,oBAAO,kBAAM;AAAA,EACpC,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,aAAa;AAAA,QACb,YAAY;AAAA,QACZ,aAAa;AAAA,QACb,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,mBAAmB;AAAA,QACnB,GAAG;AAAA,MACL;AAAA,IACF;AAAA,IAEA,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,GAAG;AAAA,QACH,GAAG;AAAA,QACH,QAAQ,yBAAQ,YAAY;AAAA;AAAA;AAAA;AAAA,QAI5B,WAAW,yBAAQ,YAAY;AAAA,QAC/B,OAAO;AAAA,QACP,UAAU;AAAA,QACV,mBAAmB;AAAA,QACnB,kBAAkB;AAAA,MACpB;AAAA,IACF;AAAA,EACF;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
5
- "names": []
6
- }
@@ -1,41 +0,0 @@
1
- import { isWeb } from "@tamagui/constants";
2
- import { View, styled } from "@tamagui/core";
3
- const Separator = styled(View, {
4
- name: "Separator",
5
- variants: {
6
- unstyled: {
7
- false: {
8
- borderColor: "$backgroundFocus",
9
- flexShrink: 0,
10
- borderWidth: 0,
11
- flex: 1,
12
- height: 0,
13
- maxHeight: 0,
14
- borderBottomWidth: 1,
15
- y: -0.5
16
- }
17
- },
18
- vertical: {
19
- true: {
20
- y: 0,
21
- x: -0.5,
22
- height: isWeb ? "initial" : "auto",
23
- // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
24
- // almost seems like a react or browser bug, but for now `initial` works
25
- // also, it doesn't happen for `height`, but for consistency using the same values
26
- maxHeight: isWeb ? "initial" : "auto",
27
- width: 0,
28
- maxWidth: 0,
29
- borderBottomWidth: 0,
30
- borderRightWidth: 1
31
- }
32
- }
33
- },
34
- defaultVariants: {
35
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
36
- }
37
- });
38
- export {
39
- Separator
40
- };
41
- //# sourceMappingURL=Separator.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Separator.tsx"],
4
- "mappings": "AAAA,SAAS,aAAa;AACtB,SAAS,MAAM,cAAc;AAEtB,MAAM,YAAY,OAAO,MAAM;AAAA,EACpC,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,aAAa;AAAA,QACb,YAAY;AAAA,QACZ,aAAa;AAAA,QACb,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,mBAAmB;AAAA,QACnB,GAAG;AAAA,MACL;AAAA,IACF;AAAA,IAEA,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;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
5
- "names": []
6
- }
@@ -1,41 +0,0 @@
1
- import { isWeb } from "@tamagui/constants";
2
- import { View, styled } from "@tamagui/core";
3
- const Separator = styled(View, {
4
- name: "Separator",
5
- variants: {
6
- unstyled: {
7
- false: {
8
- borderColor: "$backgroundFocus",
9
- flexShrink: 0,
10
- borderWidth: 0,
11
- flex: 1,
12
- height: 0,
13
- maxHeight: 0,
14
- borderBottomWidth: 1,
15
- y: -0.5
16
- }
17
- },
18
- vertical: {
19
- true: {
20
- y: 0,
21
- x: -0.5,
22
- height: isWeb ? "initial" : "auto",
23
- // maxHeight auto WILL BE passed to style attribute, but for some reason not used?
24
- // almost seems like a react or browser bug, but for now `initial` works
25
- // also, it doesn't happen for `height`, but for consistency using the same values
26
- maxHeight: isWeb ? "initial" : "auto",
27
- width: 0,
28
- maxWidth: 0,
29
- borderBottomWidth: 0,
30
- borderRightWidth: 1
31
- }
32
- }
33
- },
34
- defaultVariants: {
35
- unstyled: process.env.TAMAGUI_HEADLESS === "1"
36
- }
37
- });
38
- export {
39
- Separator
40
- };
41
- //# sourceMappingURL=Separator.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/Separator.tsx"],
4
- "mappings": "AAAA,SAAS,aAAa;AACtB,SAAS,MAAM,cAAc;AAEtB,MAAM,YAAY,OAAO,MAAM;AAAA,EACpC,MAAM;AAAA,EAEN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,OAAO;AAAA,QACL,aAAa;AAAA,QACb,YAAY;AAAA,QACZ,aAAa;AAAA,QACb,MAAM;AAAA,QACN,QAAQ;AAAA,QACR,WAAW;AAAA,QACX,mBAAmB;AAAA,QACnB,GAAG;AAAA,MACL;AAAA,IACF;AAAA,IAEA,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;AAAA,EAEA,iBAAiB;AAAA,IACf,UAAU,QAAQ,IAAI,qBAAqB;AAAA,EAC7C;AACF,CAAC;",
5
- "names": []
6
- }