@tamagui/test-design-system 2.7.7 → 3.0.0-beta.643.1

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,72 +1,43 @@
1
+
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
5
6
  var __export = (target, all) => {
6
- for (var name in all) __defProp(target, name, {
7
- get: all[name],
8
- enumerable: true
9
- });
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
10
11
  };
11
12
  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, {
14
- get: () => from[key],
15
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
16
- });
17
- }
18
- return to;
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
15
+ get: () => from[key],
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ return to;
19
20
  };
20
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
21
- value: true
22
- }), mod);
21
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
22
  var index_exports = {};
24
23
  __export(index_exports, {
25
- MyMediaVariantText: () => MyMediaVariantText,
26
- MySizableText: () => MySizableText,
27
- MyStack: () => MyStack
24
+ MyMediaVariantText: () => MyMediaVariantText,
25
+ MySizableText: () => MySizableText,
26
+ MyStack: () => MyStack
28
27
  });
29
28
  module.exports = __toCommonJS(index_exports);
30
29
  var import_core = require("@tamagui/core");
31
- const MyStack = (0, import_core.styled)(import_core.View, {
32
- backgroundColor: "green"
33
- });
30
+ const MyStack = (0, import_core.styled)(import_core.View, { backgroundColor: "green" });
34
31
  const MySizableText = (0, import_core.styled)(import_core.Text, {
35
- name: "MySizableText",
36
- backgroundColor: "green"
32
+ displayName: "MySizableText",
33
+ backgroundColor: "green"
37
34
  });
38
- const MyScaledText = (0, import_core.styled)(import_core.Text, {
39
- variants: {
40
- scale: {
41
- sm: {
42
- fontSize: 24
43
- },
44
- md: {
45
- fontSize: 35
46
- },
47
- lg: {
48
- fontSize: 58
49
- }
50
- }
51
- }
35
+ const MyMediaVariantText = (0, import_core.styled)(import_core.Text, {
36
+ displayName: "MyMediaVariantText",
37
+ fontWeight: "200",
38
+ fontSize: "24px lg:35px",
39
+ variants: { strength: { large: {
40
+ fontSize: "35px lg:58px",
41
+ fontWeight: "800"
42
+ } } }
52
43
  });
53
- const MyMediaVariantText = (0, import_core.styled)(MyScaledText, {
54
- name: "MyMediaVariantText",
55
- fontWeight: "200",
56
- scale: "sm",
57
- $lg: {
58
- scale: "md"
59
- },
60
- variants: {
61
- strength: {
62
- large: {
63
- scale: "md",
64
- fontWeight: "800",
65
- $lg: {
66
- scale: "lg",
67
- fontWeight: "800"
68
- }
69
- }
70
- }
71
- }
72
- });
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, {
26
+ MyMediaVariantText: () => MyMediaVariantText,
27
+ MySizableText: () => MySizableText,
28
+ MyStack: () => MyStack
29
+ });
30
+ module.exports = __toCommonJS(index_exports);
31
+ var import_core = require("@tamagui/core");
32
+ var MyStack = (0, import_core.styled)(import_core.View, { backgroundColor: "green" });
33
+ var MySizableText = (0, import_core.styled)(import_core.Text, {
34
+ displayName: "MySizableText",
35
+ backgroundColor: "green"
36
+ });
37
+ var MyMediaVariantText = (0, import_core.styled)(import_core.Text, {
38
+ displayName: "MyMediaVariantText",
39
+ fontWeight: "200",
40
+ fontSize: "24px lg:35px",
41
+ variants: { strength: { large: {
42
+ fontSize: "35px lg:58px",
43
+ fontWeight: "800"
44
+ } } }
45
+ });
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
20
+ }
21
+ return to;
22
+ };
23
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
24
+ var index_exports = {};
25
+ __export(index_exports, {
26
+ MyMediaVariantText: () => MyMediaVariantText,
27
+ MySizableText: () => MySizableText,
28
+ MyStack: () => MyStack
29
+ });
30
+ module.exports = __toCommonJS(index_exports);
31
+ var import_core = require("@tamagui/core");
32
+ var MyStack = (0, import_core.styled)(import_core.View, { backgroundColor: "green" });
33
+ var MySizableText = (0, import_core.styled)(import_core.Text, {
34
+ displayName: "MySizableText",
35
+ backgroundColor: "green"
36
+ });
37
+ var MyMediaVariantText = (0, import_core.styled)(import_core.Text, {
38
+ displayName: "MyMediaVariantText",
39
+ fontWeight: "200",
40
+ fontSize: "24px lg:35px",
41
+ variants: { strength: { large: {
42
+ fontSize: "35px lg:58px",
43
+ fontWeight: "800"
44
+ } } }
45
+ });
46
+
47
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["cjs/index.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar index_exports = {};\n__export(index_exports, {\n MyMediaVariantText: () => MyMediaVariantText,\n MySizableText: () => MySizableText,\n MyStack: () => MyStack\n});\nmodule.exports = __toCommonJS(index_exports);\nvar import_core = require(\"@tamagui/core\");\nvar MyStack = (0, import_core.styled)(import_core.View, {\n backgroundColor: \"green\"\n});\nvar MySizableText = (0, import_core.styled)(import_core.Text, {\n displayName: \"MySizableText\",\n backgroundColor: \"green\"\n});\nvar MyMediaVariantText = (0, import_core.styled)(import_core.Text, {\n displayName: \"MyMediaVariantText\",\n fontWeight: \"200\",\n fontSize: \"24px lg:35px\",\n variants: {\n strength: {\n large: {\n fontSize: \"35px lg:58px\",\n fontWeight: \"800\"\n }\n }\n }\n});\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,gBAAgB,CAAC;AACrB,SAAS,eAAe;CACtB,0BAA0B;CAC1B,qBAAqB;CACrB,eAAe;AACjB,CAAC;AACD,OAAO,UAAU,aAAa,aAAa;AAC3C,IAAI,cAAc,QAAQ,eAAe;AACzC,IAAI,WAAW,GAAG,YAAY,QAAQ,YAAY,MAAM,EACtD,iBAAiB,QACnB,CAAC;AACD,IAAI,iBAAiB,GAAG,YAAY,QAAQ,YAAY,MAAM;CAC5D,aAAa;CACb,iBAAiB;AACnB,CAAC;AACD,IAAI,sBAAsB,GAAG,YAAY,QAAQ,YAAY,MAAM;CACjE,aAAa;CACb,YAAY;CACZ,UAAU;CACV,UAAU,EACR,UAAU,EACR,OAAO;EACL,UAAU;EACV,YAAY;CACd,EACF,EACF;AACF,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Text, View, styled } from "@tamagui/core";
2
+
3
+ const MyStack = styled(View, { backgroundColor: "green" });
4
+ const MySizableText = styled(Text, {
5
+ displayName: "MySizableText",
6
+ backgroundColor: "green"
7
+ });
8
+ const MyMediaVariantText = styled(Text, {
9
+ displayName: "MyMediaVariantText",
10
+ fontWeight: "200",
11
+ fontSize: "24px lg:35px",
12
+ variants: { strength: { large: {
13
+ fontSize: "35px lg:58px",
14
+ fontWeight: "800"
15
+ } } }
16
+ });
17
+
18
+ export { MyMediaVariantText, MySizableText, MyStack };
19
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["esm/index.js"],"sourcesContent":["import { View, styled, Text } from \"@tamagui/core\";\nconst MyStack = styled(View, {\n backgroundColor: \"green\"\n});\nconst MySizableText = styled(Text, {\n displayName: \"MySizableText\",\n backgroundColor: \"green\"\n});\nconst MyMediaVariantText = styled(Text, {\n displayName: \"MyMediaVariantText\",\n fontWeight: \"200\",\n fontSize: \"24px lg:35px\",\n variants: {\n strength: {\n large: {\n fontSize: \"35px lg:58px\",\n fontWeight: \"800\"\n }\n }\n }\n});\nexport {\n MyMediaVariantText,\n MySizableText,\n MyStack\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,MAAM,UAAU,OAAO,MAAM,EAC3B,iBAAiB,QACnB,CAAC;AACD,MAAM,gBAAgB,OAAO,MAAM;CACjC,aAAa;CACb,iBAAiB;AACnB,CAAC;AACD,MAAM,qBAAqB,OAAO,MAAM;CACtC,aAAa;CACb,YAAY;CACZ,UAAU;CACV,UAAU,EACR,UAAU,EACR,OAAO;EACL,UAAU;EACV,YAAY;CACd,EACF,EACF;AACF,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Text, View, styled } from "@tamagui/core";
2
+
3
+ var MyStack = styled(View, { backgroundColor: "green" });
4
+ var MySizableText = styled(Text, {
5
+ displayName: "MySizableText",
6
+ backgroundColor: "green"
7
+ });
8
+ var MyMediaVariantText = styled(Text, {
9
+ displayName: "MyMediaVariantText",
10
+ fontWeight: "200",
11
+ fontSize: "24px lg:35px",
12
+ variants: { strength: { large: {
13
+ fontSize: "35px lg:58px",
14
+ fontWeight: "800"
15
+ } } }
16
+ });
17
+
18
+ export { MyMediaVariantText, MySizableText, MyStack };
19
+ //# sourceMappingURL=index.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.native.js","names":[],"sources":["esm/index.native.js"],"sourcesContent":["import { View, styled, Text } from \"@tamagui/core\";\nvar MyStack = styled(View, {\n backgroundColor: \"green\"\n});\nvar MySizableText = styled(Text, {\n displayName: \"MySizableText\",\n backgroundColor: \"green\"\n});\nvar MyMediaVariantText = styled(Text, {\n displayName: \"MyMediaVariantText\",\n fontWeight: \"200\",\n fontSize: \"24px lg:35px\",\n variants: {\n strength: {\n large: {\n fontSize: \"35px lg:58px\",\n fontWeight: \"800\"\n }\n }\n }\n});\nexport {\n MyMediaVariantText,\n MySizableText,\n MyStack\n};\n//# sourceMappingURL=index.js.map\n"],"mappings":";;;AACA,IAAI,UAAU,OAAO,MAAM,EACzB,iBAAiB,QACnB,CAAC;AACD,IAAI,gBAAgB,OAAO,MAAM;CAC/B,aAAa;CACb,iBAAiB;AACnB,CAAC;AACD,IAAI,qBAAqB,OAAO,MAAM;CACpC,aAAa;CACb,YAAY;CACZ,UAAU;CACV,UAAU,EACR,UAAU,EACR,OAAO;EACL,UAAU;EACV,YAAY;CACd,EACF,EACF;AACF,CAAC"}
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@tamagui/test-design-system",
3
- "version": "2.7.7",
3
+ "version": "3.0.0-beta.643.1",
4
4
  "source": "src/index.ts",
5
- "files": [],
5
+ "files": [
6
+ "src",
7
+ "types",
8
+ "dist"
9
+ ],
6
10
  "sideEffects": false,
7
11
  "main": "dist/cjs/index.cjs",
8
12
  "module": "dist/esm/index.mjs",
@@ -17,10 +21,10 @@
17
21
  "clean:build": "tamagui-build clean:build"
18
22
  },
19
23
  "dependencies": {
20
- "@tamagui/core": "2.7.7"
24
+ "@tamagui/core": "3.0.0-beta.643.1"
21
25
  },
22
26
  "devDependencies": {
23
- "@tamagui/build": "2.7.7"
27
+ "@tamagui/build": "3.0.0-beta.643.1"
24
28
  },
25
29
  "repository": {
26
30
  "type": "git",
package/src/index.ts ADDED
@@ -0,0 +1,27 @@
1
+ import { View, styled, Text } from '@tamagui/core'
2
+
3
+ export const MyStack = styled(View, {
4
+ backgroundColor: 'green',
5
+ })
6
+
7
+ export const MySizableText = styled(Text, {
8
+ displayName: 'MySizableText',
9
+ backgroundColor: 'green',
10
+ })
11
+
12
+ // a variant whose value carries a media clause. this is the v3 flat-value form
13
+ // of the nested media object used by the v2 regression fixture.
14
+ export const MyMediaVariantText = styled(Text, {
15
+ displayName: 'MyMediaVariantText',
16
+ fontWeight: '200',
17
+ fontSize: '24px lg:35px',
18
+
19
+ variants: {
20
+ strength: {
21
+ large: {
22
+ fontSize: '35px lg:58px',
23
+ fontWeight: '800',
24
+ },
25
+ },
26
+ } as const,
27
+ })
@@ -0,0 +1,22 @@
1
+ export declare const MyStack: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiViewNonStyleProps, keyof import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & {
2
+ ref?: import("react").Ref<import("@tamagui/core").TamaguiElement> | undefined;
3
+ }> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
4
+ __tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {}, import("@tamagui/core").StaticConfigPublic];
5
+ };
6
+ export declare const MySizableText: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, keyof import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & {
7
+ ref?: import("react").Ref<import("@tamagui/core").TamaguiTextElement> | undefined;
8
+ }> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/core").TextStylePropsBase, {}, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
9
+ __tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/core").TextStylePropsBase, {}, import("@tamagui/core").StaticConfigPublic];
10
+ };
11
+ export declare const MyMediaVariantText: import("react").FunctionComponent<Omit<import("@tamagui/core").RNTamaguiTextNonStyleProps, "strength" | keyof import("@tamagui/core").TextStylePropsBase> & import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase> & {
12
+ strength?: "large" | undefined;
13
+ } & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").TextStylePropsBase>> & {
14
+ ref?: import("react").Ref<import("@tamagui/core").TamaguiTextElement> | undefined;
15
+ }> & import("@tamagui/core").StaticComponentObject<import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/core").TextStylePropsBase, {
16
+ strength?: "large" | undefined;
17
+ }, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig"> & {
18
+ __tama: [import("@tamagui/core").TamaDefer, import("@tamagui/core").TamaguiTextElement, import("@tamagui/core").RNTamaguiTextNonStyleProps, import("@tamagui/core").TextStylePropsBase, {
19
+ strength?: "large" | undefined;
20
+ }, import("@tamagui/core").StaticConfigPublic];
21
+ };
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;CAElB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;CAGxB,CAAA;AAIF,eAAO,MAAM,kBAAkB;;;;;;;;;;CAa7B,CAAA"}