@tamagui/demos 1.0.1-beta.49

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.
@@ -0,0 +1,127 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
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 Demos_exports = {};
20
+ __export(Demos_exports, {
21
+ AvatarDemo: () => AvatarDemo,
22
+ ButtonDemo: () => ButtonDemo,
23
+ Demos: () => Demos,
24
+ GroupListItemDemo: () => GroupListItemDemo,
25
+ SeparatorDemo: () => SeparatorDemo,
26
+ ShapesDemo: () => ShapesDemo,
27
+ TooltipDemo: () => TooltipDemo
28
+ });
29
+ module.exports = __toCommonJS(Demos_exports);
30
+ var import_feather_icons = require("@tamagui/feather-icons");
31
+ var import_tamagui = require("tamagui");
32
+ function Demos() {
33
+ return /* @__PURE__ */ React.createElement(import_tamagui.YStack, {
34
+ space: true
35
+ });
36
+ }
37
+ __name(Demos, "Demos");
38
+ function ButtonDemo() {
39
+ return /* @__PURE__ */ React.createElement(import_tamagui.Button, {
40
+ alignSelf: "center",
41
+ size: "$2",
42
+ icon: import_feather_icons.Check,
43
+ iconAfter: import_feather_icons.X
44
+ }, "Hello wrold");
45
+ }
46
+ __name(ButtonDemo, "ButtonDemo");
47
+ function TooltipDemo() {
48
+ return /* @__PURE__ */ React.createElement(import_tamagui.TooltipSimple, {
49
+ label: "test tooltip"
50
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Button, {
51
+ size: "$6",
52
+ icon: import_feather_icons.Check,
53
+ iconAfter: import_feather_icons.X
54
+ }, "Hello wrold"));
55
+ }
56
+ __name(TooltipDemo, "TooltipDemo");
57
+ function GroupListItemDemo() {
58
+ return /* @__PURE__ */ React.createElement(import_tamagui.Group, {
59
+ width: 250,
60
+ size: "$4",
61
+ vertical: true,
62
+ separator: /* @__PURE__ */ React.createElement(import_tamagui.Separator, {
63
+ marginLeft: "$4"
64
+ })
65
+ }, /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
66
+ icon: import_feather_icons.Check,
67
+ subTitle: "test 123"
68
+ }, "Bye world"), /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
69
+ iconAfter: import_feather_icons.Check
70
+ }, "Hello world"), /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
71
+ iconAfter: import_feather_icons.Check
72
+ }, "Hello world"), /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
73
+ iconAfter: import_feather_icons.Check
74
+ }, "Hello world"));
75
+ }
76
+ __name(GroupListItemDemo, "GroupListItemDemo");
77
+ function AvatarDemo() {
78
+ return /* @__PURE__ */ React.createElement(import_tamagui.Avatar, {
79
+ circular: true,
80
+ size: "$10"
81
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Avatar.Image, {
82
+ src: "http://placekitten.com/150/150",
83
+ width: 150,
84
+ height: 150
85
+ }), /* @__PURE__ */ React.createElement(import_tamagui.Avatar.Fallback, {
86
+ backgroundColor: "red"
87
+ }));
88
+ }
89
+ __name(AvatarDemo, "AvatarDemo");
90
+ function ShapesDemo() {
91
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_tamagui.Square, {
92
+ size: "$8"
93
+ }));
94
+ }
95
+ __name(ShapesDemo, "ShapesDemo");
96
+ function SeparatorDemo() {
97
+ return /* @__PURE__ */ React.createElement(import_tamagui.YStack, {
98
+ width: "100%",
99
+ maxWidth: 300,
100
+ marginHorizontal: 15
101
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, {
102
+ fontWeight: "800"
103
+ }, "Tamagui"), /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "An cross-platform component library."), /* @__PURE__ */ React.createElement(import_tamagui.Separator, {
104
+ marginVertical: 15
105
+ }), /* @__PURE__ */ React.createElement(import_tamagui.XStack, {
106
+ height: 20,
107
+ alignItems: "center",
108
+ space: true,
109
+ separator: /* @__PURE__ */ React.createElement(import_tamagui.Separator, {
110
+ debug: "verbose",
111
+ alignSelf: "stretch",
112
+ vertical: true
113
+ })
114
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "Blog"), /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "Docs"), /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "Source")));
115
+ }
116
+ __name(SeparatorDemo, "SeparatorDemo");
117
+ // Annotate the CommonJS export names for ESM import in node:
118
+ 0 && (module.exports = {
119
+ AvatarDemo,
120
+ ButtonDemo,
121
+ Demos,
122
+ GroupListItemDemo,
123
+ SeparatorDemo,
124
+ ShapesDemo,
125
+ TooltipDemo
126
+ });
127
+ //# sourceMappingURL=Demos.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Demos.tsx"],
4
+ "sourcesContent": ["import { Check, X } from '@tamagui/feather-icons'\nimport {\n Avatar,\n Button,\n Group,\n ListItem,\n Paragraph,\n Separator,\n Square,\n TooltipSimple,\n XStack,\n YStack,\n} from 'tamagui'\n\nexport function Demos() {\n return <YStack space></YStack>\n}\n\nexport function ButtonDemo() {\n return (\n <Button alignSelf=\"center\" size=\"$2\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n )\n}\n\nexport function TooltipDemo() {\n return (\n <TooltipSimple label=\"test tooltip\">\n <Button size=\"$6\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n </TooltipSimple>\n )\n}\n\nexport function GroupListItemDemo() {\n return (\n <Group width={250} size=\"$4\" vertical separator={<Separator marginLeft=\"$4\" />}>\n <ListItem icon={Check} subTitle=\"test 123\">\n Bye world\n </ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n </Group>\n )\n}\n\nexport function AvatarDemo() {\n return (\n <Avatar circular size=\"$10\">\n <Avatar.Image src=\"http://placekitten.com/150/150\" width={150} height={150} />\n <Avatar.Fallback backgroundColor=\"red\" />\n </Avatar>\n )\n}\n\nexport function ShapesDemo() {\n return (\n <>\n <Square size=\"$8\" />\n </>\n )\n}\n\nexport function SeparatorDemo() {\n return (\n <YStack width=\"100%\" maxWidth={300} marginHorizontal={15}>\n <Paragraph fontWeight=\"800\">Tamagui</Paragraph>\n <Paragraph>An cross-platform component library.</Paragraph>\n <Separator marginVertical={15} />\n <XStack\n height={20}\n alignItems=\"center\"\n space\n separator={<Separator debug=\"verbose\" alignSelf=\"stretch\" vertical />}\n >\n <Paragraph>Blog</Paragraph>\n <Paragraph>Docs</Paragraph>\n <Paragraph>Source</Paragraph>\n </XStack>\n </YStack>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAyB;AACzB,qBAWO;AAEA,iBAAiB;AACtB,SAAO,oCAAC;AAAA,IAAO,OAAK;AAAA,GAAC;AACvB;AAFgB;AAIT,sBAAsB;AAC3B,SACE,oCAAC;AAAA,IAAO,WAAU;AAAA,IAAS,MAAK;AAAA,IAAK,MAAM;AAAA,IAAO,WAAW;AAAA,KAAG,aAEhE;AAEJ;AANgB;AAQT,uBAAuB;AAC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UAAQ;AAAA,KAAC;AAAA,KAEnE,oCAAC,gCAAU,MAAI,GACf,oCAAC,gCAAU,MAAI,GACf,oCAAC,gCAAU,QAAM,CACnB,CACF;AAEJ;AAlBgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,127 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
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 KitchenSink_exports = {};
20
+ __export(KitchenSink_exports, {
21
+ AvatarDemo: () => AvatarDemo,
22
+ ButtonDemo: () => ButtonDemo,
23
+ GroupListItemDemo: () => GroupListItemDemo,
24
+ KitchenSink: () => KitchenSink,
25
+ SeparatorDemo: () => SeparatorDemo,
26
+ ShapesDemo: () => ShapesDemo,
27
+ TooltipDemo: () => TooltipDemo
28
+ });
29
+ module.exports = __toCommonJS(KitchenSink_exports);
30
+ var import_feather_icons = require("@tamagui/feather-icons");
31
+ var import_tamagui = require("tamagui");
32
+ function KitchenSink() {
33
+ return /* @__PURE__ */ React.createElement(import_tamagui.YStack, {
34
+ space: true
35
+ });
36
+ }
37
+ __name(KitchenSink, "KitchenSink");
38
+ function ButtonDemo() {
39
+ return /* @__PURE__ */ React.createElement(import_tamagui.Button, {
40
+ alignSelf: "center",
41
+ size: "$2",
42
+ icon: import_feather_icons.Check,
43
+ iconAfter: import_feather_icons.X
44
+ }, "Hello wrold");
45
+ }
46
+ __name(ButtonDemo, "ButtonDemo");
47
+ function TooltipDemo() {
48
+ return /* @__PURE__ */ React.createElement(import_tamagui.TooltipSimple, {
49
+ label: "test tooltip"
50
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Button, {
51
+ size: "$6",
52
+ icon: import_feather_icons.Check,
53
+ iconAfter: import_feather_icons.X
54
+ }, "Hello wrold"));
55
+ }
56
+ __name(TooltipDemo, "TooltipDemo");
57
+ function GroupListItemDemo() {
58
+ return /* @__PURE__ */ React.createElement(import_tamagui.Group, {
59
+ width: 250,
60
+ size: "$4",
61
+ vertical: true,
62
+ separator: /* @__PURE__ */ React.createElement(import_tamagui.Separator, {
63
+ marginLeft: "$4"
64
+ })
65
+ }, /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
66
+ icon: import_feather_icons.Check,
67
+ subTitle: "test 123"
68
+ }, "Bye world"), /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
69
+ iconAfter: import_feather_icons.Check
70
+ }, "Hello world"), /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
71
+ iconAfter: import_feather_icons.Check
72
+ }, "Hello world"), /* @__PURE__ */ React.createElement(import_tamagui.ListItem, {
73
+ iconAfter: import_feather_icons.Check
74
+ }, "Hello world"));
75
+ }
76
+ __name(GroupListItemDemo, "GroupListItemDemo");
77
+ function AvatarDemo() {
78
+ return /* @__PURE__ */ React.createElement(import_tamagui.Avatar, {
79
+ circular: true,
80
+ size: "$10"
81
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Avatar.Image, {
82
+ src: "http://placekitten.com/150/150",
83
+ width: 150,
84
+ height: 150
85
+ }), /* @__PURE__ */ React.createElement(import_tamagui.Avatar.Fallback, {
86
+ backgroundColor: "red"
87
+ }));
88
+ }
89
+ __name(AvatarDemo, "AvatarDemo");
90
+ function ShapesDemo() {
91
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_tamagui.Square, {
92
+ size: "$8"
93
+ }));
94
+ }
95
+ __name(ShapesDemo, "ShapesDemo");
96
+ function SeparatorDemo() {
97
+ return /* @__PURE__ */ React.createElement(import_tamagui.YStack, {
98
+ width: "100%",
99
+ maxWidth: 300,
100
+ marginHorizontal: 15
101
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, {
102
+ fontWeight: "800"
103
+ }, "Tamagui"), /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "An cross-platform component library."), /* @__PURE__ */ React.createElement(import_tamagui.Separator, {
104
+ marginVertical: 15
105
+ }), /* @__PURE__ */ React.createElement(import_tamagui.XStack, {
106
+ height: 20,
107
+ alignItems: "center",
108
+ space: true,
109
+ separator: /* @__PURE__ */ React.createElement(import_tamagui.Separator, {
110
+ debug: "verbose",
111
+ alignSelf: "stretch",
112
+ vertical: true
113
+ })
114
+ }, /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "Blog"), /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "Docs"), /* @__PURE__ */ React.createElement(import_tamagui.Paragraph, null, "Source")));
115
+ }
116
+ __name(SeparatorDemo, "SeparatorDemo");
117
+ // Annotate the CommonJS export names for ESM import in node:
118
+ 0 && (module.exports = {
119
+ AvatarDemo,
120
+ ButtonDemo,
121
+ GroupListItemDemo,
122
+ KitchenSink,
123
+ SeparatorDemo,
124
+ ShapesDemo,
125
+ TooltipDemo
126
+ });
127
+ //# sourceMappingURL=KitchenSink.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/KitchenSink.tsx"],
4
+ "sourcesContent": ["import { Check, X } from '@tamagui/feather-icons'\nimport {\n Avatar,\n Button,\n Group,\n ListItem,\n Paragraph,\n Separator,\n Square,\n TooltipSimple,\n XStack,\n YStack,\n} from 'tamagui'\n\nexport function KitchenSink() {\n return <YStack space></YStack>\n}\n\nexport function ButtonDemo() {\n return (\n <Button alignSelf=\"center\" size=\"$2\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n )\n}\n\nexport function TooltipDemo() {\n return (\n <TooltipSimple label=\"test tooltip\">\n <Button size=\"$6\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n </TooltipSimple>\n )\n}\n\nexport function GroupListItemDemo() {\n return (\n <Group width={250} size=\"$4\" vertical separator={<Separator marginLeft=\"$4\" />}>\n <ListItem icon={Check} subTitle=\"test 123\">\n Bye world\n </ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n </Group>\n )\n}\n\nexport function AvatarDemo() {\n return (\n <Avatar circular size=\"$10\">\n <Avatar.Image src=\"http://placekitten.com/150/150\" width={150} height={150} />\n <Avatar.Fallback backgroundColor=\"red\" />\n </Avatar>\n )\n}\n\nexport function ShapesDemo() {\n return (\n <>\n <Square size=\"$8\" />\n </>\n )\n}\n\nexport function SeparatorDemo() {\n return (\n <YStack width=\"100%\" maxWidth={300} marginHorizontal={15}>\n <Paragraph fontWeight=\"800\">Tamagui</Paragraph>\n <Paragraph>An cross-platform component library.</Paragraph>\n <Separator marginVertical={15} />\n <XStack\n height={20}\n alignItems=\"center\"\n space\n separator={<Separator debug=\"verbose\" alignSelf=\"stretch\" vertical />}\n >\n <Paragraph>Blog</Paragraph>\n <Paragraph>Docs</Paragraph>\n <Paragraph>Source</Paragraph>\n </XStack>\n </YStack>\n )\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,2BAAyB;AACzB,qBAWO;AAEA,uBAAuB;AAC5B,SAAO,oCAAC;AAAA,IAAO,OAAK;AAAA,GAAC;AACvB;AAFgB;AAIT,sBAAsB;AAC3B,SACE,oCAAC;AAAA,IAAO,WAAU;AAAA,IAAS,MAAK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AAA,IACX,OAAK;AAAA,IACL,WAAW,oCAAC;AAAA,MAAU,OAAM;AAAA,MAAU,WAAU;AAAA,MAAU,UAAQ;AAAA,KAAC;AAAA,KAEnE,oCAAC,gCAAU,MAAI,GACf,oCAAC,gCAAU,MAAI,GACf,oCAAC,gCAAU,QAAM,CACnB,CACF;AAEJ;AAlBgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,18 @@
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
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
14
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
15
+ var src_exports = {};
16
+ module.exports = __toCommonJS(src_exports);
17
+ __reExport(src_exports, require("./Demos"), module.exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "sourcesContent": ["export * from './Demos'\n"],
5
+ "mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,oBAAd;",
6
+ "names": []
7
+ }
@@ -0,0 +1,110 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { Check, X } from "@tamagui/feather-icons";
4
+ import {
5
+ Avatar,
6
+ Button,
7
+ Group,
8
+ ListItem,
9
+ Paragraph,
10
+ Separator,
11
+ Square,
12
+ TooltipSimple,
13
+ XStack,
14
+ YStack
15
+ } from "tamagui";
16
+ function Demos() {
17
+ return /* @__PURE__ */ React.createElement(YStack, {
18
+ space: true
19
+ });
20
+ }
21
+ __name(Demos, "Demos");
22
+ function ButtonDemo() {
23
+ return /* @__PURE__ */ React.createElement(Button, {
24
+ alignSelf: "center",
25
+ size: "$2",
26
+ icon: Check,
27
+ iconAfter: X
28
+ }, "Hello wrold");
29
+ }
30
+ __name(ButtonDemo, "ButtonDemo");
31
+ function TooltipDemo() {
32
+ return /* @__PURE__ */ React.createElement(TooltipSimple, {
33
+ label: "test tooltip"
34
+ }, /* @__PURE__ */ React.createElement(Button, {
35
+ size: "$6",
36
+ icon: Check,
37
+ iconAfter: X
38
+ }, "Hello wrold"));
39
+ }
40
+ __name(TooltipDemo, "TooltipDemo");
41
+ function GroupListItemDemo() {
42
+ return /* @__PURE__ */ React.createElement(Group, {
43
+ width: 250,
44
+ size: "$4",
45
+ vertical: true,
46
+ separator: /* @__PURE__ */ React.createElement(Separator, {
47
+ marginLeft: "$4"
48
+ })
49
+ }, /* @__PURE__ */ React.createElement(ListItem, {
50
+ icon: Check,
51
+ subTitle: "test 123"
52
+ }, "Bye world"), /* @__PURE__ */ React.createElement(ListItem, {
53
+ iconAfter: Check
54
+ }, "Hello world"), /* @__PURE__ */ React.createElement(ListItem, {
55
+ iconAfter: Check
56
+ }, "Hello world"), /* @__PURE__ */ React.createElement(ListItem, {
57
+ iconAfter: Check
58
+ }, "Hello world"));
59
+ }
60
+ __name(GroupListItemDemo, "GroupListItemDemo");
61
+ function AvatarDemo() {
62
+ return /* @__PURE__ */ React.createElement(Avatar, {
63
+ circular: true,
64
+ size: "$10"
65
+ }, /* @__PURE__ */ React.createElement(Avatar.Image, {
66
+ src: "http://placekitten.com/150/150",
67
+ width: 150,
68
+ height: 150
69
+ }), /* @__PURE__ */ React.createElement(Avatar.Fallback, {
70
+ backgroundColor: "red"
71
+ }));
72
+ }
73
+ __name(AvatarDemo, "AvatarDemo");
74
+ function ShapesDemo() {
75
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Square, {
76
+ size: "$8"
77
+ }));
78
+ }
79
+ __name(ShapesDemo, "ShapesDemo");
80
+ function SeparatorDemo() {
81
+ return /* @__PURE__ */ React.createElement(YStack, {
82
+ width: "100%",
83
+ maxWidth: 300,
84
+ marginHorizontal: 15
85
+ }, /* @__PURE__ */ React.createElement(Paragraph, {
86
+ fontWeight: "800"
87
+ }, "Tamagui"), /* @__PURE__ */ React.createElement(Paragraph, null, "An cross-platform component library."), /* @__PURE__ */ React.createElement(Separator, {
88
+ marginVertical: 15
89
+ }), /* @__PURE__ */ React.createElement(XStack, {
90
+ height: 20,
91
+ alignItems: "center",
92
+ space: true,
93
+ separator: /* @__PURE__ */ React.createElement(Separator, {
94
+ debug: "verbose",
95
+ alignSelf: "stretch",
96
+ vertical: true
97
+ })
98
+ }, /* @__PURE__ */ React.createElement(Paragraph, null, "Blog"), /* @__PURE__ */ React.createElement(Paragraph, null, "Docs"), /* @__PURE__ */ React.createElement(Paragraph, null, "Source")));
99
+ }
100
+ __name(SeparatorDemo, "SeparatorDemo");
101
+ export {
102
+ AvatarDemo,
103
+ ButtonDemo,
104
+ Demos,
105
+ GroupListItemDemo,
106
+ SeparatorDemo,
107
+ ShapesDemo,
108
+ TooltipDemo
109
+ };
110
+ //# sourceMappingURL=Demos.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/Demos.tsx"],
4
+ "sourcesContent": ["import { Check, X } from '@tamagui/feather-icons'\nimport {\n Avatar,\n Button,\n Group,\n ListItem,\n Paragraph,\n Separator,\n Square,\n TooltipSimple,\n XStack,\n YStack,\n} from 'tamagui'\n\nexport function Demos() {\n return <YStack space></YStack>\n}\n\nexport function ButtonDemo() {\n return (\n <Button alignSelf=\"center\" size=\"$2\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n )\n}\n\nexport function TooltipDemo() {\n return (\n <TooltipSimple label=\"test tooltip\">\n <Button size=\"$6\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n </TooltipSimple>\n )\n}\n\nexport function GroupListItemDemo() {\n return (\n <Group width={250} size=\"$4\" vertical separator={<Separator marginLeft=\"$4\" />}>\n <ListItem icon={Check} subTitle=\"test 123\">\n Bye world\n </ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n </Group>\n )\n}\n\nexport function AvatarDemo() {\n return (\n <Avatar circular size=\"$10\">\n <Avatar.Image src=\"http://placekitten.com/150/150\" width={150} height={150} />\n <Avatar.Fallback backgroundColor=\"red\" />\n </Avatar>\n )\n}\n\nexport function ShapesDemo() {\n return (\n <>\n <Square size=\"$8\" />\n </>\n )\n}\n\nexport function SeparatorDemo() {\n return (\n <YStack width=\"100%\" maxWidth={300} marginHorizontal={15}>\n <Paragraph fontWeight=\"800\">Tamagui</Paragraph>\n <Paragraph>An cross-platform component library.</Paragraph>\n <Separator marginVertical={15} />\n <XStack\n height={20}\n alignItems=\"center\"\n space\n separator={<Separator debug=\"verbose\" alignSelf=\"stretch\" vertical />}\n >\n <Paragraph>Blog</Paragraph>\n <Paragraph>Docs</Paragraph>\n <Paragraph>Source</Paragraph>\n </XStack>\n </YStack>\n )\n}\n"],
5
+ "mappings": ";;AAAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAaO,iBAAiB;AACtB,SAAO,oCAAC;AAAA,IAAO,OAAK;AAAA,GAAC;AACvB;AAFgB;AAIT,sBAAsB;AAC3B,SACE,oCAAC;AAAA,IAAO,WAAU;AAAA,IAAS,MAAK;AAAA,IAAK,MAAM;AAAA,IAAO,WAAW;AAAA,KAAG,aAEhE;AAEJ;AANgB;AAQT,uBAAuB;AAC5B,SACE,oCAAC;AAAA,IAAc,OAAM;AAAA,KAC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U,MAAI,GACf,oCAAC,iBAAU,MAAI,GACf,oCAAC,iBAAU,QAAM,CACnB,CACF;AAEJ;AAlBgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,110 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { Check, X } from "@tamagui/feather-icons";
4
+ import {
5
+ Avatar,
6
+ Button,
7
+ Group,
8
+ ListItem,
9
+ Paragraph,
10
+ Separator,
11
+ Square,
12
+ TooltipSimple,
13
+ XStack,
14
+ YStack
15
+ } from "tamagui";
16
+ function KitchenSink() {
17
+ return /* @__PURE__ */ React.createElement(YStack, {
18
+ space: true
19
+ });
20
+ }
21
+ __name(KitchenSink, "KitchenSink");
22
+ function ButtonDemo() {
23
+ return /* @__PURE__ */ React.createElement(Button, {
24
+ alignSelf: "center",
25
+ size: "$2",
26
+ icon: Check,
27
+ iconAfter: X
28
+ }, "Hello wrold");
29
+ }
30
+ __name(ButtonDemo, "ButtonDemo");
31
+ function TooltipDemo() {
32
+ return /* @__PURE__ */ React.createElement(TooltipSimple, {
33
+ label: "test tooltip"
34
+ }, /* @__PURE__ */ React.createElement(Button, {
35
+ size: "$6",
36
+ icon: Check,
37
+ iconAfter: X
38
+ }, "Hello wrold"));
39
+ }
40
+ __name(TooltipDemo, "TooltipDemo");
41
+ function GroupListItemDemo() {
42
+ return /* @__PURE__ */ React.createElement(Group, {
43
+ width: 250,
44
+ size: "$4",
45
+ vertical: true,
46
+ separator: /* @__PURE__ */ React.createElement(Separator, {
47
+ marginLeft: "$4"
48
+ })
49
+ }, /* @__PURE__ */ React.createElement(ListItem, {
50
+ icon: Check,
51
+ subTitle: "test 123"
52
+ }, "Bye world"), /* @__PURE__ */ React.createElement(ListItem, {
53
+ iconAfter: Check
54
+ }, "Hello world"), /* @__PURE__ */ React.createElement(ListItem, {
55
+ iconAfter: Check
56
+ }, "Hello world"), /* @__PURE__ */ React.createElement(ListItem, {
57
+ iconAfter: Check
58
+ }, "Hello world"));
59
+ }
60
+ __name(GroupListItemDemo, "GroupListItemDemo");
61
+ function AvatarDemo() {
62
+ return /* @__PURE__ */ React.createElement(Avatar, {
63
+ circular: true,
64
+ size: "$10"
65
+ }, /* @__PURE__ */ React.createElement(Avatar.Image, {
66
+ src: "http://placekitten.com/150/150",
67
+ width: 150,
68
+ height: 150
69
+ }), /* @__PURE__ */ React.createElement(Avatar.Fallback, {
70
+ backgroundColor: "red"
71
+ }));
72
+ }
73
+ __name(AvatarDemo, "AvatarDemo");
74
+ function ShapesDemo() {
75
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Square, {
76
+ size: "$8"
77
+ }));
78
+ }
79
+ __name(ShapesDemo, "ShapesDemo");
80
+ function SeparatorDemo() {
81
+ return /* @__PURE__ */ React.createElement(YStack, {
82
+ width: "100%",
83
+ maxWidth: 300,
84
+ marginHorizontal: 15
85
+ }, /* @__PURE__ */ React.createElement(Paragraph, {
86
+ fontWeight: "800"
87
+ }, "Tamagui"), /* @__PURE__ */ React.createElement(Paragraph, null, "An cross-platform component library."), /* @__PURE__ */ React.createElement(Separator, {
88
+ marginVertical: 15
89
+ }), /* @__PURE__ */ React.createElement(XStack, {
90
+ height: 20,
91
+ alignItems: "center",
92
+ space: true,
93
+ separator: /* @__PURE__ */ React.createElement(Separator, {
94
+ debug: "verbose",
95
+ alignSelf: "stretch",
96
+ vertical: true
97
+ })
98
+ }, /* @__PURE__ */ React.createElement(Paragraph, null, "Blog"), /* @__PURE__ */ React.createElement(Paragraph, null, "Docs"), /* @__PURE__ */ React.createElement(Paragraph, null, "Source")));
99
+ }
100
+ __name(SeparatorDemo, "SeparatorDemo");
101
+ export {
102
+ AvatarDemo,
103
+ ButtonDemo,
104
+ GroupListItemDemo,
105
+ KitchenSink,
106
+ SeparatorDemo,
107
+ ShapesDemo,
108
+ TooltipDemo
109
+ };
110
+ //# sourceMappingURL=KitchenSink.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/KitchenSink.tsx"],
4
+ "sourcesContent": ["import { Check, X } from '@tamagui/feather-icons'\nimport {\n Avatar,\n Button,\n Group,\n ListItem,\n Paragraph,\n Separator,\n Square,\n TooltipSimple,\n XStack,\n YStack,\n} from 'tamagui'\n\nexport function KitchenSink() {\n return <YStack space></YStack>\n}\n\nexport function ButtonDemo() {\n return (\n <Button alignSelf=\"center\" size=\"$2\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n )\n}\n\nexport function TooltipDemo() {\n return (\n <TooltipSimple label=\"test tooltip\">\n <Button size=\"$6\" icon={Check} iconAfter={X}>\n Hello wrold\n </Button>\n </TooltipSimple>\n )\n}\n\nexport function GroupListItemDemo() {\n return (\n <Group width={250} size=\"$4\" vertical separator={<Separator marginLeft=\"$4\" />}>\n <ListItem icon={Check} subTitle=\"test 123\">\n Bye world\n </ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n <ListItem iconAfter={Check}>Hello world</ListItem>\n </Group>\n )\n}\n\nexport function AvatarDemo() {\n return (\n <Avatar circular size=\"$10\">\n <Avatar.Image src=\"http://placekitten.com/150/150\" width={150} height={150} />\n <Avatar.Fallback backgroundColor=\"red\" />\n </Avatar>\n )\n}\n\nexport function ShapesDemo() {\n return (\n <>\n <Square size=\"$8\" />\n </>\n )\n}\n\nexport function SeparatorDemo() {\n return (\n <YStack width=\"100%\" maxWidth={300} marginHorizontal={15}>\n <Paragraph fontWeight=\"800\">Tamagui</Paragraph>\n <Paragraph>An cross-platform component library.</Paragraph>\n <Separator marginVertical={15} />\n <XStack\n height={20}\n alignItems=\"center\"\n space\n separator={<Separator debug=\"verbose\" alignSelf=\"stretch\" vertical />}\n >\n <Paragraph>Blog</Paragraph>\n <Paragraph>Docs</Paragraph>\n <Paragraph>Source</Paragraph>\n </XStack>\n </YStack>\n )\n}\n"],
5
+ "mappings": ";;AAAA;AACA;AAAA;AA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AAAA,IAAK,kBAAkB;AAAA,KACpD,oCAAC;AAAA,IAAU,YAAW;AAAA,KAAM,SAAO,GACnC,oCAAC,iBAAU,sCAAoC,GAC/C,oCAAC;AAAA,IAAU,gBAAgB;AAAA,GAAI,GAC/B,oCAAC;AAAA,IACC,QAAQ;AAAA,IACR,YAAW;AAAA,IACX,OAAK;AAAA,IACL,WAAW,oCAAC;AAAA,MAAU,OAAM;AAAA,MAAU,WAAU;AAAA,MAAU,UAAQ;AAAA,KAAC;AAAA,KAEnE,oCAAC,iBAAU,MAAI,GACf,oCAAC,iBAAU,MAAI,GACf,oCAAC,iBAAU,QAAM,CACnB,CACF;AAEJ;AAlBgB;",
6
+ "names": []
7
+ }
@@ -0,0 +1,2 @@
1
+ export * from "./Demos";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/index.tsx"],
4
+ "sourcesContent": ["export * from './Demos'\n"],
5
+ "mappings": "AAAA;",
6
+ "names": []
7
+ }
@@ -0,0 +1,69 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { Check, X } from "@tamagui/feather-icons";
4
+ import {
5
+ Avatar,
6
+ Button,
7
+ Group,
8
+ ListItem,
9
+ Paragraph,
10
+ Separator,
11
+ Square,
12
+ TooltipSimple,
13
+ XStack,
14
+ YStack
15
+ } from "tamagui";
16
+ function Demos() {
17
+ return <YStack space />;
18
+ }
19
+ __name(Demos, "Demos");
20
+ function ButtonDemo() {
21
+ return <Button alignSelf="center" size="$2" icon={Check} iconAfter={X}>Hello wrold</Button>;
22
+ }
23
+ __name(ButtonDemo, "ButtonDemo");
24
+ function TooltipDemo() {
25
+ return <TooltipSimple label="test tooltip"><Button size="$6" icon={Check} iconAfter={X}>Hello wrold</Button></TooltipSimple>;
26
+ }
27
+ __name(TooltipDemo, "TooltipDemo");
28
+ function GroupListItemDemo() {
29
+ return <Group width={250} size="$4" vertical separator={<Separator marginLeft="$4" />}>
30
+ <ListItem icon={Check} subTitle="test 123">Bye world</ListItem>
31
+ <ListItem iconAfter={Check}>Hello world</ListItem>
32
+ <ListItem iconAfter={Check}>Hello world</ListItem>
33
+ <ListItem iconAfter={Check}>Hello world</ListItem>
34
+ </Group>;
35
+ }
36
+ __name(GroupListItemDemo, "GroupListItemDemo");
37
+ function AvatarDemo() {
38
+ return <Avatar circular size="$10">
39
+ <Avatar.Image src="http://placekitten.com/150/150" width={150} height={150} />
40
+ <Avatar.Fallback backgroundColor="red" />
41
+ </Avatar>;
42
+ }
43
+ __name(AvatarDemo, "AvatarDemo");
44
+ function ShapesDemo() {
45
+ return <><Square size="$8" /></>;
46
+ }
47
+ __name(ShapesDemo, "ShapesDemo");
48
+ function SeparatorDemo() {
49
+ return <YStack width="100%" maxWidth={300} marginHorizontal={15}>
50
+ <Paragraph fontWeight="800">Tamagui</Paragraph>
51
+ <Paragraph>An cross-platform component library.</Paragraph>
52
+ <Separator marginVertical={15} />
53
+ <XStack height={20} alignItems="center" space separator={<Separator debug="verbose" alignSelf="stretch" vertical />}>
54
+ <Paragraph>Blog</Paragraph>
55
+ <Paragraph>Docs</Paragraph>
56
+ <Paragraph>Source</Paragraph>
57
+ </XStack>
58
+ </YStack>;
59
+ }
60
+ __name(SeparatorDemo, "SeparatorDemo");
61
+ export {
62
+ AvatarDemo,
63
+ ButtonDemo,
64
+ Demos,
65
+ GroupListItemDemo,
66
+ SeparatorDemo,
67
+ ShapesDemo,
68
+ TooltipDemo
69
+ };
@@ -0,0 +1,69 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
+ import { Check, X } from "@tamagui/feather-icons";
4
+ import {
5
+ Avatar,
6
+ Button,
7
+ Group,
8
+ ListItem,
9
+ Paragraph,
10
+ Separator,
11
+ Square,
12
+ TooltipSimple,
13
+ XStack,
14
+ YStack
15
+ } from "tamagui";
16
+ function KitchenSink() {
17
+ return <YStack space />;
18
+ }
19
+ __name(KitchenSink, "KitchenSink");
20
+ function ButtonDemo() {
21
+ return <Button alignSelf="center" size="$2" icon={Check} iconAfter={X}>Hello wrold</Button>;
22
+ }
23
+ __name(ButtonDemo, "ButtonDemo");
24
+ function TooltipDemo() {
25
+ return <TooltipSimple label="test tooltip"><Button size="$6" icon={Check} iconAfter={X}>Hello wrold</Button></TooltipSimple>;
26
+ }
27
+ __name(TooltipDemo, "TooltipDemo");
28
+ function GroupListItemDemo() {
29
+ return <Group width={250} size="$4" vertical separator={<Separator marginLeft="$4" />}>
30
+ <ListItem icon={Check} subTitle="test 123">Bye world</ListItem>
31
+ <ListItem iconAfter={Check}>Hello world</ListItem>
32
+ <ListItem iconAfter={Check}>Hello world</ListItem>
33
+ <ListItem iconAfter={Check}>Hello world</ListItem>
34
+ </Group>;
35
+ }
36
+ __name(GroupListItemDemo, "GroupListItemDemo");
37
+ function AvatarDemo() {
38
+ return <Avatar circular size="$10">
39
+ <Avatar.Image src="http://placekitten.com/150/150" width={150} height={150} />
40
+ <Avatar.Fallback backgroundColor="red" />
41
+ </Avatar>;
42
+ }
43
+ __name(AvatarDemo, "AvatarDemo");
44
+ function ShapesDemo() {
45
+ return <><Square size="$8" /></>;
46
+ }
47
+ __name(ShapesDemo, "ShapesDemo");
48
+ function SeparatorDemo() {
49
+ return <YStack width="100%" maxWidth={300} marginHorizontal={15}>
50
+ <Paragraph fontWeight="800">Tamagui</Paragraph>
51
+ <Paragraph>An cross-platform component library.</Paragraph>
52
+ <Separator marginVertical={15} />
53
+ <XStack height={20} alignItems="center" space separator={<Separator debug="verbose" alignSelf="stretch" vertical />}>
54
+ <Paragraph>Blog</Paragraph>
55
+ <Paragraph>Docs</Paragraph>
56
+ <Paragraph>Source</Paragraph>
57
+ </XStack>
58
+ </YStack>;
59
+ }
60
+ __name(SeparatorDemo, "SeparatorDemo");
61
+ export {
62
+ AvatarDemo,
63
+ ButtonDemo,
64
+ GroupListItemDemo,
65
+ KitchenSink,
66
+ SeparatorDemo,
67
+ ShapesDemo,
68
+ TooltipDemo
69
+ };
@@ -0,0 +1 @@
1
+ export * from "./Demos";
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "@tamagui/demos",
3
+ "version": "1.0.1-beta.49",
4
+ "sideEffects": false,
5
+ "source": "src/index.ts",
6
+ "types": "./types/index.d.ts",
7
+ "main": "dist/cjs",
8
+ "module": "dist/esm",
9
+ "module:jsx": "dist/jsx",
10
+ "files": [
11
+ "types",
12
+ "dist"
13
+ ],
14
+ "scripts": {
15
+ "build": "tamagui-build",
16
+ "watch": "tamagui-build --watch"
17
+ },
18
+ "dependencies": {
19
+ "tamagui": "^1.0.1-beta.49"
20
+ },
21
+ "peerDependencies": {
22
+ "react": "*",
23
+ "react-dom": "*"
24
+ },
25
+ "devDependencies": {
26
+ "@tamagui/build": "^1.0.1-beta.49",
27
+ "react": "*",
28
+ "react-dom": "*"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ }
33
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare function Demos(): JSX.Element;
3
+ export declare function ButtonDemo(): JSX.Element;
4
+ export declare function TooltipDemo(): JSX.Element;
5
+ export declare function GroupListItemDemo(): JSX.Element;
6
+ export declare function AvatarDemo(): JSX.Element;
7
+ export declare function ShapesDemo(): JSX.Element;
8
+ export declare function SeparatorDemo(): JSX.Element;
9
+ //# sourceMappingURL=Demos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Demos.d.ts","sourceRoot":"","sources":["../src/Demos.tsx"],"names":[],"mappings":";AAcA,wBAAgB,KAAK,gBAEpB;AAED,wBAAgB,UAAU,gBAMzB;AAED,wBAAgB,WAAW,gBAQ1B;AAED,wBAAgB,iBAAiB,gBAWhC;AAED,wBAAgB,UAAU,gBAOzB;AAED,wBAAgB,UAAU,gBAMzB;AAED,wBAAgB,aAAa,gBAkB5B"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare function KitchenSink(): JSX.Element;
3
+ export declare function ButtonDemo(): JSX.Element;
4
+ export declare function TooltipDemo(): JSX.Element;
5
+ export declare function GroupListItemDemo(): JSX.Element;
6
+ export declare function AvatarDemo(): JSX.Element;
7
+ export declare function ShapesDemo(): JSX.Element;
8
+ export declare function SeparatorDemo(): JSX.Element;
9
+ //# sourceMappingURL=KitchenSink.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KitchenSink.d.ts","sourceRoot":"","sources":["../src/KitchenSink.tsx"],"names":[],"mappings":";AAcA,wBAAgB,WAAW,gBAE1B;AAED,wBAAgB,UAAU,gBAMzB;AAED,wBAAgB,WAAW,gBAQ1B;AAED,wBAAgB,iBAAiB,gBAWhC;AAED,wBAAgB,UAAU,gBAOzB;AAED,wBAAgB,UAAU,gBAMzB;AAED,wBAAgB,aAAa,gBAkB5B"}
@@ -0,0 +1,2 @@
1
+ export * from './Demos';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}