@tamagui/demos 1.28.0 → 1.28.2
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/BuildAButtonDemo.js +67 -0
- package/dist/cjs/BuildAButtonDemo.js.map +6 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/BuildAButtonDemo.js +43 -0
- package/dist/esm/BuildAButtonDemo.js.map +6 -0
- package/dist/esm/index.js +1 -1
- package/dist/jsx/BuildAButtonDemo.js +42 -0
- package/dist/jsx/BuildAButtonDemo.js.map +6 -0
- package/dist/jsx/BuildAButtonDemo.mjs +42 -0
- package/dist/jsx/BuildAButtonDemo.mjs.map +6 -0
- package/dist/jsx/index.js +1 -1
- package/dist/jsx/index.mjs +1 -1
- package/package.json +18 -18
- package/src/BuildAButtonDemo.tsx +68 -0
- package/src/index.tsx +1 -1
- package/types/BuildAButtonDemo.d.ts +3 -0
- package/types/BuildAButtonDemo.d.ts.map +1 -0
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/src/ButtonNewDemo.tsx +0 -50
|
@@ -0,0 +1,67 @@
|
|
|
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 BuildAButtonDemo_exports = {};
|
|
20
|
+
__export(BuildAButtonDemo_exports, {
|
|
21
|
+
BuildAButtonDemo: () => BuildAButtonDemo
|
|
22
|
+
});
|
|
23
|
+
module.exports = __toCommonJS(BuildAButtonDemo_exports);
|
|
24
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
+
var import_lucide_icons = require("@tamagui/lucide-icons");
|
|
26
|
+
var import_tamagui = require("tamagui");
|
|
27
|
+
const outlined = {
|
|
28
|
+
backgroundColor: "transparent",
|
|
29
|
+
borderWidth: 2,
|
|
30
|
+
borderColor: "$background",
|
|
31
|
+
borderRadius: "$10",
|
|
32
|
+
hoverStyle: {
|
|
33
|
+
backgroundColor: "transparent",
|
|
34
|
+
borderColor: "$backgroundPress"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
function BuildAButtonDemo() {
|
|
38
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { fullscreen: true, ov: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { mah: 200, y: -100, x: -40, rotate: "-10deg", children: [
|
|
39
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { y: 35, size: "$2", ...outlined, subTheme: "alt1", borderWidth: 1 }),
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { y: 30 }),
|
|
41
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { y: -50, ...outlined }),
|
|
42
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { ...outlined, icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons.Hand, {}) }),
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { size: "$6", subTheme: "alt2" }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { size: "$6", subTheme: "alt2", ...outlined }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { size: "$8", subTheme: "alt2", iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons.Drumstick, {}), ...outlined }),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { size: "$10", subTheme: "alt1" }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ButtonCol, { size: "$8", subTheme: "alt2", ...outlined, borderRadius: 0 })
|
|
48
|
+
] }) });
|
|
49
|
+
}
|
|
50
|
+
function ButtonCol(props) {
|
|
51
|
+
const subTheme = props.subTheme ? `_${props.subTheme}` : "";
|
|
52
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { padding: "$2", space: "$3", children: [
|
|
53
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: props.subTheme, ...props, children: "Hello" }),
|
|
54
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "orange" + subTheme, ...props, children: "Hello" }),
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "yellow" + subTheme, ...props, children: "Hello" }),
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "green" + subTheme, ...props, children: "Hello" }),
|
|
57
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "blue" + subTheme, ...props, children: "Hello" }),
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "purple" + subTheme, ...props, children: "Hello" }),
|
|
59
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "pink" + subTheme, ...props, children: "Hello" }),
|
|
60
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "red" + subTheme, ...props, children: "Hello" })
|
|
61
|
+
] });
|
|
62
|
+
}
|
|
63
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
64
|
+
0 && (module.exports = {
|
|
65
|
+
BuildAButtonDemo
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=BuildAButtonDemo.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/BuildAButtonDemo.tsx"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBM;AAlBN,0BAAgE;AAChE,qBAA8E;AAE9E,MAAM,WAAW;AAAA,EACf,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,YAAY;AAAA,IACV,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AACF;AAEO,SAAS,mBAAmB;AACjC,SACE,4CAAC,yBAAO,YAAU,MAAC,IAAG,UACpB,uDAAC,yBAAO,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,QAAO,UACxC;AAAA,gDAAC,aAAU,GAAG,IAAI,MAAK,MAAM,GAAG,UAAU,UAAS,QAAO,aAAa,GAAG;AAAA,IAC1E,4CAAC,aAAU,GAAG,IAAI;AAAA,IAClB,4CAAC,aAAU,GAAG,KAAM,GAAG,UAAU;AAAA,IACjC,4CAAC,aAAW,GAAG,UAAU,MAAM,4CAAC,4BAAK,GAAI;AAAA,IACzC,4CAAC,aAAU,MAAK,MAAK,UAAS,QAAO;AAAA,IACrC,4CAAC,aAAU,MAAK,MAAK,UAAS,QAAQ,GAAG,UAAU;AAAA,IACnD,4CAAC,aAAU,MAAK,MAAK,UAAS,QAAO,WAAW,4CAAC,iCAAU,GAAK,GAAG,UAAU;AAAA,IAC7E,4CAAC,aAAU,MAAK,OAAM,UAAS,QAAO;AAAA,IACtC,4CAAC,aAAU,MAAK,MAAK,UAAS,QAAQ,GAAG,UAAU,cAAc,GAAG;AAAA,KACtE,GACF;AAEJ;AAEA,SAAS,UACP,OAGA;AACA,QAAM,WAAW,MAAM,WAAW,IAAI,MAAM,aAAa;AACzD,SACE,6CAAC,yBAAO,SAAQ,MAAK,OAAM,MACzB;AAAA,gDAAC,yBAAO,OAAO,MAAM,UAAW,GAAG,OAAO,mBAE1C;AAAA,IACA,4CAAC,yBAAO,OAAQ,WAAW,UAAyB,GAAG,OAAO,mBAE9D;AAAA,IACA,4CAAC,yBAAO,OAAQ,WAAW,UAAyB,GAAG,OAAO,mBAE9D;AAAA,IACA,4CAAC,yBAAO,OAAQ,UAAU,UAAyB,GAAG,OAAO,mBAE7D;AAAA,IACA,4CAAC,yBAAO,OAAQ,SAAS,UAAyB,GAAG,OAAO,mBAE5D;AAAA,IACA,4CAAC,yBAAO,OAAQ,WAAW,UAAyB,GAAG,OAAO,mBAE9D;AAAA,IACA,4CAAC,yBAAO,OAAQ,SAAS,UAAyB,GAAG,OAAO,mBAE5D;AAAA,IACA,4CAAC,yBAAO,OAAQ,QAAQ,UAAyB,GAAG,OAAO,mBAE3D;AAAA,KACF;AAEJ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -23,7 +23,7 @@ __reExport(src_exports, require("./AnimationsTimingDemo"), module.exports);
|
|
|
23
23
|
__reExport(src_exports, require("./AnimationsPresenceDemo"), module.exports);
|
|
24
24
|
__reExport(src_exports, require("./AvatarDemo"), module.exports);
|
|
25
25
|
__reExport(src_exports, require("./ButtonDemo"), module.exports);
|
|
26
|
-
__reExport(src_exports, require("./
|
|
26
|
+
__reExport(src_exports, require("./BuildAButtonDemo"), module.exports);
|
|
27
27
|
__reExport(src_exports, require("./CardDemo"), module.exports);
|
|
28
28
|
__reExport(src_exports, require("./DialogDemo"), module.exports);
|
|
29
29
|
__reExport(src_exports, require("./AddThemeDemo"), module.exports);
|
|
@@ -72,7 +72,7 @@ __reExport(src_exports, require("./useOnIntersecting"), module.exports);
|
|
|
72
72
|
...require("./AnimationsPresenceDemo"),
|
|
73
73
|
...require("./AvatarDemo"),
|
|
74
74
|
...require("./ButtonDemo"),
|
|
75
|
-
...require("./
|
|
75
|
+
...require("./BuildAButtonDemo"),
|
|
76
76
|
...require("./CardDemo"),
|
|
77
77
|
...require("./DialogDemo"),
|
|
78
78
|
...require("./AddThemeDemo"),
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,8BAAd;AACA,wBAAc,6BADd;AAEA,wBAAc,kCAFd;AAGA,wBAAc,kCAHd;AAIA,wBAAc,mCAJd;AAKA,wBAAc,qCALd;AAMA,wBAAc,yBANd;AAOA,wBAAc,yBAPd;AAQA,wBAAc
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,8BAAd;AACA,wBAAc,6BADd;AAEA,wBAAc,kCAFd;AAGA,wBAAc,kCAHd;AAIA,wBAAc,mCAJd;AAKA,wBAAc,qCALd;AAMA,wBAAc,yBANd;AAOA,wBAAc,yBAPd;AAQA,wBAAc,+BARd;AASA,wBAAc,uBATd;AAUA,wBAAc,yBAVd;AAWA,wBAAc,2BAXd;AAYA,wBAAc,8BAZd;AAaA,wBAAc,+BAbd;AAcA,wBAAc,wBAdd;AAeA,wBAAc,yBAfd;AAgBA,wBAAc,wBAhBd;AAiBA,wBAAc,2BAjBd;AAkBA,wBAAc,wBAlBd;AAmBA,wBAAc,wBAnBd;AAoBA,wBAAc,iCApBd;AAqBA,wBAAc,2BArBd;AAsBA,wBAAc,8BAtBd;AAuBA,wBAAc,0BAvBd;AAwBA,wBAAc,2BAxBd;AAyBA,wBAAc,6BAzBd;AA0BA,wBAAc,yBA1Bd;AA2BA,wBAAc,4BA3Bd;AA4BA,wBAAc,yBA5Bd;AA6BA,wBAAc,6BA7Bd;AA8BA,wBAAc,wBA9Bd;AA+BA,wBAAc,yBA/Bd;AAgCA,wBAAc,0BAhCd;AAiCA,wBAAc,yBAjCd;AAkCA,wBAAc,yBAlCd;AAmCA,wBAAc,2BAnCd;AAoCA,wBAAc,uBApCd;AAqCA,wBAAc,+BArCd;AAsCA,wBAAc,0BAtCd;AAuCA,wBAAc,yBAvCd;AAwCA,wBAAc,yBAxCd;AAyCA,wBAAc,wBAzCd;AA0CA,wBAAc,iCA1Cd;AA2CA,wBAAc,uBA3Cd;AA4CA,wBAAc,+BA5Cd;AA6CA,wBAAc,8BA7Cd;AA8CA,wBAAc,gCA9Cd;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Drumstick, Hand } from "@tamagui/lucide-icons";
|
|
3
|
+
import { Button, XStack, YStack } from "tamagui";
|
|
4
|
+
const outlined = {
|
|
5
|
+
backgroundColor: "transparent",
|
|
6
|
+
borderWidth: 2,
|
|
7
|
+
borderColor: "$background",
|
|
8
|
+
borderRadius: "$10",
|
|
9
|
+
hoverStyle: {
|
|
10
|
+
backgroundColor: "transparent",
|
|
11
|
+
borderColor: "$backgroundPress"
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
function BuildAButtonDemo() {
|
|
15
|
+
return /* @__PURE__ */ jsx(YStack, { fullscreen: true, ov: "hidden", children: /* @__PURE__ */ jsxs(XStack, { mah: 200, y: -100, x: -40, rotate: "-10deg", children: [
|
|
16
|
+
/* @__PURE__ */ jsx(ButtonCol, { y: 35, size: "$2", ...outlined, subTheme: "alt1", borderWidth: 1 }),
|
|
17
|
+
/* @__PURE__ */ jsx(ButtonCol, { y: 30 }),
|
|
18
|
+
/* @__PURE__ */ jsx(ButtonCol, { y: -50, ...outlined }),
|
|
19
|
+
/* @__PURE__ */ jsx(ButtonCol, { ...outlined, icon: /* @__PURE__ */ jsx(Hand, {}) }),
|
|
20
|
+
/* @__PURE__ */ jsx(ButtonCol, { size: "$6", subTheme: "alt2" }),
|
|
21
|
+
/* @__PURE__ */ jsx(ButtonCol, { size: "$6", subTheme: "alt2", ...outlined }),
|
|
22
|
+
/* @__PURE__ */ jsx(ButtonCol, { size: "$8", subTheme: "alt2", iconAfter: /* @__PURE__ */ jsx(Drumstick, {}), ...outlined }),
|
|
23
|
+
/* @__PURE__ */ jsx(ButtonCol, { size: "$10", subTheme: "alt1" }),
|
|
24
|
+
/* @__PURE__ */ jsx(ButtonCol, { size: "$8", subTheme: "alt2", ...outlined, borderRadius: 0 })
|
|
25
|
+
] }) });
|
|
26
|
+
}
|
|
27
|
+
function ButtonCol(props) {
|
|
28
|
+
const subTheme = props.subTheme ? `_${props.subTheme}` : "";
|
|
29
|
+
return /* @__PURE__ */ jsxs(YStack, { padding: "$2", space: "$3", children: [
|
|
30
|
+
/* @__PURE__ */ jsx(Button, { theme: props.subTheme, ...props, children: "Hello" }),
|
|
31
|
+
/* @__PURE__ */ jsx(Button, { theme: "orange" + subTheme, ...props, children: "Hello" }),
|
|
32
|
+
/* @__PURE__ */ jsx(Button, { theme: "yellow" + subTheme, ...props, children: "Hello" }),
|
|
33
|
+
/* @__PURE__ */ jsx(Button, { theme: "green" + subTheme, ...props, children: "Hello" }),
|
|
34
|
+
/* @__PURE__ */ jsx(Button, { theme: "blue" + subTheme, ...props, children: "Hello" }),
|
|
35
|
+
/* @__PURE__ */ jsx(Button, { theme: "purple" + subTheme, ...props, children: "Hello" }),
|
|
36
|
+
/* @__PURE__ */ jsx(Button, { theme: "pink" + subTheme, ...props, children: "Hello" }),
|
|
37
|
+
/* @__PURE__ */ jsx(Button, { theme: "red" + subTheme, ...props, children: "Hello" })
|
|
38
|
+
] });
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
BuildAButtonDemo
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=BuildAButtonDemo.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/BuildAButtonDemo.tsx"],
|
|
4
|
+
"mappings": "AAkBM,SACE,KADF;AAlBN,SAA4B,WAAwB,YAAY;AAChE,SAAS,QAA+C,QAAQ,cAAc;AAE9E,MAAM,WAAW;AAAA,EACf,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,YAAY;AAAA,IACV,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AACF;AAEO,SAAS,mBAAmB;AACjC,SACE,oBAAC,UAAO,YAAU,MAAC,IAAG,UACpB,+BAAC,UAAO,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,QAAO,UACxC;AAAA,wBAAC,aAAU,GAAG,IAAI,MAAK,MAAM,GAAG,UAAU,UAAS,QAAO,aAAa,GAAG;AAAA,IAC1E,oBAAC,aAAU,GAAG,IAAI;AAAA,IAClB,oBAAC,aAAU,GAAG,KAAM,GAAG,UAAU;AAAA,IACjC,oBAAC,aAAW,GAAG,UAAU,MAAM,oBAAC,QAAK,GAAI;AAAA,IACzC,oBAAC,aAAU,MAAK,MAAK,UAAS,QAAO;AAAA,IACrC,oBAAC,aAAU,MAAK,MAAK,UAAS,QAAQ,GAAG,UAAU;AAAA,IACnD,oBAAC,aAAU,MAAK,MAAK,UAAS,QAAO,WAAW,oBAAC,aAAU,GAAK,GAAG,UAAU;AAAA,IAC7E,oBAAC,aAAU,MAAK,OAAM,UAAS,QAAO;AAAA,IACtC,oBAAC,aAAU,MAAK,MAAK,UAAS,QAAQ,GAAG,UAAU,cAAc,GAAG;AAAA,KACtE,GACF;AAEJ;AAEA,SAAS,UACP,OAGA;AACA,QAAM,WAAW,MAAM,WAAW,IAAI,MAAM,aAAa;AACzD,SACE,qBAAC,UAAO,SAAQ,MAAK,OAAM,MACzB;AAAA,wBAAC,UAAO,OAAO,MAAM,UAAW,GAAG,OAAO,mBAE1C;AAAA,IACA,oBAAC,UAAO,OAAQ,WAAW,UAAyB,GAAG,OAAO,mBAE9D;AAAA,IACA,oBAAC,UAAO,OAAQ,WAAW,UAAyB,GAAG,OAAO,mBAE9D;AAAA,IACA,oBAAC,UAAO,OAAQ,UAAU,UAAyB,GAAG,OAAO,mBAE7D;AAAA,IACA,oBAAC,UAAO,OAAQ,SAAS,UAAyB,GAAG,OAAO,mBAE5D;AAAA,IACA,oBAAC,UAAO,OAAQ,WAAW,UAAyB,GAAG,OAAO,mBAE9D;AAAA,IACA,oBAAC,UAAO,OAAQ,SAAS,UAAyB,GAAG,OAAO,mBAE5D;AAAA,IACA,oBAAC,UAAO,OAAQ,QAAQ,UAAyB,GAAG,OAAO,mBAE3D;AAAA,KACF;AAEJ;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
package/dist/esm/index.js
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./AnimationsTimingDemo";
|
|
|
6
6
|
export * from "./AnimationsPresenceDemo";
|
|
7
7
|
export * from "./AvatarDemo";
|
|
8
8
|
export * from "./ButtonDemo";
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./BuildAButtonDemo";
|
|
10
10
|
export * from "./CardDemo";
|
|
11
11
|
export * from "./DialogDemo";
|
|
12
12
|
export * from "./AddThemeDemo";
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Drumstick, Hand } from "@tamagui/lucide-icons";
|
|
2
|
+
import { Button, XStack, YStack } from "tamagui";
|
|
3
|
+
const outlined = {
|
|
4
|
+
backgroundColor: "transparent",
|
|
5
|
+
borderWidth: 2,
|
|
6
|
+
borderColor: "$background",
|
|
7
|
+
borderRadius: "$10",
|
|
8
|
+
hoverStyle: {
|
|
9
|
+
backgroundColor: "transparent",
|
|
10
|
+
borderColor: "$backgroundPress"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
function BuildAButtonDemo() {
|
|
14
|
+
return <YStack fullscreen ov="hidden"><XStack mah={200} y={-100} x={-40} rotate="-10deg">
|
|
15
|
+
<ButtonCol y={35} size="$2" {...outlined} subTheme="alt1" borderWidth={1} />
|
|
16
|
+
<ButtonCol y={30} />
|
|
17
|
+
<ButtonCol y={-50} {...outlined} />
|
|
18
|
+
<ButtonCol {...outlined} icon={<Hand />} />
|
|
19
|
+
<ButtonCol size="$6" subTheme="alt2" />
|
|
20
|
+
<ButtonCol size="$6" subTheme="alt2" {...outlined} />
|
|
21
|
+
<ButtonCol size="$8" subTheme="alt2" iconAfter={<Drumstick />} {...outlined} />
|
|
22
|
+
<ButtonCol size="$10" subTheme="alt1" />
|
|
23
|
+
<ButtonCol size="$8" subTheme="alt2" {...outlined} borderRadius={0} />
|
|
24
|
+
</XStack></YStack>;
|
|
25
|
+
}
|
|
26
|
+
function ButtonCol(props) {
|
|
27
|
+
const subTheme = props.subTheme ? `_${props.subTheme}` : "";
|
|
28
|
+
return <YStack padding="$2" space="$3">
|
|
29
|
+
<Button theme={props.subTheme} {...props}>Hello</Button>
|
|
30
|
+
<Button theme={"orange" + subTheme} {...props}>Hello</Button>
|
|
31
|
+
<Button theme={"yellow" + subTheme} {...props}>Hello</Button>
|
|
32
|
+
<Button theme={"green" + subTheme} {...props}>Hello</Button>
|
|
33
|
+
<Button theme={"blue" + subTheme} {...props}>Hello</Button>
|
|
34
|
+
<Button theme={"purple" + subTheme} {...props}>Hello</Button>
|
|
35
|
+
<Button theme={"pink" + subTheme} {...props}>Hello</Button>
|
|
36
|
+
<Button theme={"red" + subTheme} {...props}>Hello</Button>
|
|
37
|
+
</YStack>;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
BuildAButtonDemo
|
|
41
|
+
};
|
|
42
|
+
//# source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Q,WAAW,cAA4B,OAAO,KAE9D,EAFC;AAAA,IAGD,CAAC,OAAO,OAAQ,WAAW,cAA4B,OAAO,KAE9D,EAFC;AAAA,IAGD,CAAC,OAAO,OAAQ,UAAU,cAA4B,OAAO,KAE7D,EAFC;AAAA,IAGD,CAAC,OAAO,OAAQ,SAAS,cAA4B,OAAO,KAE5D,EAFC;AAAA,IAGD,CAAC,OAAO,OAAQ,WAAW,cAA4B,OAAO,KAE9D,EAFC;AAAA,IAGD,CAAC,OAAO,OAAQ,SAAS,cAA4B,OAAO,KAE5D,EAFC;AAAA,IAGD,CAAC,OAAO,OAAQ,QAAQ,cAA4B,OAAO,KAE3D,EAFC;AAAA,EAGH,EAzBC;AA2BL;",
|
|
5
|
+
"names": []
|
|
6
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Drumstick, Hand } from "@tamagui/lucide-icons";
|
|
2
|
+
import { Button, XStack, YStack } from "tamagui";
|
|
3
|
+
const outlined = {
|
|
4
|
+
backgroundColor: "transparent",
|
|
5
|
+
borderWidth: 2,
|
|
6
|
+
borderColor: "$background",
|
|
7
|
+
borderRadius: "$10",
|
|
8
|
+
hoverStyle: {
|
|
9
|
+
backgroundColor: "transparent",
|
|
10
|
+
borderColor: "$backgroundPress"
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
function BuildAButtonDemo() {
|
|
14
|
+
return <YStack fullscreen ov="hidden"><XStack mah={200} y={-100} x={-40} rotate="-10deg">
|
|
15
|
+
<ButtonCol y={35} size="$2" {...outlined} subTheme="alt1" borderWidth={1} />
|
|
16
|
+
<ButtonCol y={30} />
|
|
17
|
+
<ButtonCol y={-50} {...outlined} />
|
|
18
|
+
<ButtonCol {...outlined} icon={<Hand />} />
|
|
19
|
+
<ButtonCol size="$6" subTheme="alt2" />
|
|
20
|
+
<ButtonCol size="$6" subTheme="alt2" {...outlined} />
|
|
21
|
+
<ButtonCol size="$8" subTheme="alt2" iconAfter={<Drumstick />} {...outlined} />
|
|
22
|
+
<ButtonCol size="$10" subTheme="alt1" />
|
|
23
|
+
<ButtonCol size="$8" subTheme="alt2" {...outlined} borderRadius={0} />
|
|
24
|
+
</XStack></YStack>;
|
|
25
|
+
}
|
|
26
|
+
function ButtonCol(props) {
|
|
27
|
+
const subTheme = props.subTheme ? `_${props.subTheme}` : "";
|
|
28
|
+
return <YStack padding="$2" space="$3">
|
|
29
|
+
<Button theme={props.subTheme} {...props}>Hello</Button>
|
|
30
|
+
<Button theme={"orange" + subTheme} {...props}>Hello</Button>
|
|
31
|
+
<Button theme={"yellow" + subTheme} {...props}>Hello</Button>
|
|
32
|
+
<Button theme={"green" + subTheme} {...props}>Hello</Button>
|
|
33
|
+
<Button theme={"blue" + subTheme} {...props}>Hello</Button>
|
|
34
|
+
<Button theme={"purple" + subTheme} {...props}>Hello</Button>
|
|
35
|
+
<Button theme={"pink" + subTheme} {...props}>Hello</Button>
|
|
36
|
+
<Button theme={"red" + subTheme} {...props}>Hello</Button>
|
|
37
|
+
</YStack>;
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
BuildAButtonDemo
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=BuildAButtonDemo.mjs.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/BuildAButtonDemo.tsx"],
|
|
4
|
+
"mappings": "AAAA,SAA4B,WAAwB,YAAY;AAChE,SAAS,QAA+C,QAAQ,cAAc;AAE9E,MAAM,WAAW;AAAA,EACf,iBAAiB;AAAA,EACjB,aAAa;AAAA,EACb,aAAa;AAAA,EACb,cAAc;AAAA,EAEd,YAAY;AAAA,IACV,iBAAiB;AAAA,IACjB,aAAa;AAAA,EACf;AACF;AAEO,SAAS,mBAAmB;AACjC,SACE,CAAC,OAAO,WAAW,GAAG,SACpB,CAAC,OAAO,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,OAAO;AAAA,IACxC,CAAC,UA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|
@@ -6,7 +6,7 @@ export * from "./AnimationsTimingDemo";
|
|
|
6
6
|
export * from "./AnimationsPresenceDemo";
|
|
7
7
|
export * from "./AvatarDemo";
|
|
8
8
|
export * from "./ButtonDemo";
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./BuildAButtonDemo";
|
|
10
10
|
export * from "./CardDemo";
|
|
11
11
|
export * from "./DialogDemo";
|
|
12
12
|
export * from "./AddThemeDemo";
|
package/dist/jsx/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ export * from "./AnimationsTimingDemo";
|
|
|
6
6
|
export * from "./AnimationsPresenceDemo";
|
|
7
7
|
export * from "./AvatarDemo";
|
|
8
8
|
export * from "./ButtonDemo";
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./BuildAButtonDemo";
|
|
10
10
|
export * from "./CardDemo";
|
|
11
11
|
export * from "./DialogDemo";
|
|
12
12
|
export * from "./AddThemeDemo";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tamagui/demos",
|
|
3
|
-
"version": "1.28.
|
|
3
|
+
"version": "1.28.2",
|
|
4
4
|
"sideEffects": [
|
|
5
5
|
"*.css"
|
|
6
6
|
],
|
|
@@ -28,29 +28,29 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@tamagui/avatar": "1.28.
|
|
32
|
-
"@tamagui/button": "1.28.
|
|
33
|
-
"@tamagui/config": "1.28.
|
|
34
|
-
"@tamagui/core": "1.28.
|
|
35
|
-
"@tamagui/list-item": "1.28.
|
|
36
|
-
"@tamagui/logo": "1.28.
|
|
37
|
-
"@tamagui/menu": "1.28.
|
|
38
|
-
"@tamagui/popover": "1.28.
|
|
39
|
-
"@tamagui/progress": "1.28.
|
|
40
|
-
"@tamagui/radio-group": "1.28.
|
|
41
|
-
"@tamagui/select": "1.28.
|
|
42
|
-
"@tamagui/sheet": "1.28.
|
|
43
|
-
"@tamagui/slider": "1.28.
|
|
44
|
-
"@tamagui/stacks": "1.28.
|
|
45
|
-
"@tamagui/toast": "1.28.
|
|
46
|
-
"tamagui": "1.28.
|
|
31
|
+
"@tamagui/avatar": "1.28.2",
|
|
32
|
+
"@tamagui/button": "1.28.2",
|
|
33
|
+
"@tamagui/config": "1.28.2",
|
|
34
|
+
"@tamagui/core": "1.28.2",
|
|
35
|
+
"@tamagui/list-item": "1.28.2",
|
|
36
|
+
"@tamagui/logo": "1.28.2",
|
|
37
|
+
"@tamagui/menu": "1.28.2",
|
|
38
|
+
"@tamagui/popover": "1.28.2",
|
|
39
|
+
"@tamagui/progress": "1.28.2",
|
|
40
|
+
"@tamagui/radio-group": "1.28.2",
|
|
41
|
+
"@tamagui/select": "1.28.2",
|
|
42
|
+
"@tamagui/sheet": "1.28.2",
|
|
43
|
+
"@tamagui/slider": "1.28.2",
|
|
44
|
+
"@tamagui/stacks": "1.28.2",
|
|
45
|
+
"@tamagui/toast": "1.28.2",
|
|
46
|
+
"tamagui": "1.28.2"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "*",
|
|
50
50
|
"react-dom": "*"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@tamagui/build": "1.28.
|
|
53
|
+
"@tamagui/build": "1.28.2",
|
|
54
54
|
"react": "^18.2.0",
|
|
55
55
|
"react-dom": "^18.2.0"
|
|
56
56
|
},
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { Activity, Airplay, Drumstick, FileWarning, Hand } from '@tamagui/lucide-icons'
|
|
2
|
+
import { Button, ButtonProps, Theme, ThemeName, XGroup, XStack, YStack } from 'tamagui'
|
|
3
|
+
|
|
4
|
+
const outlined = {
|
|
5
|
+
backgroundColor: 'transparent',
|
|
6
|
+
borderWidth: 2,
|
|
7
|
+
borderColor: '$background',
|
|
8
|
+
borderRadius: '$10',
|
|
9
|
+
|
|
10
|
+
hoverStyle: {
|
|
11
|
+
backgroundColor: 'transparent',
|
|
12
|
+
borderColor: '$backgroundPress',
|
|
13
|
+
},
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function BuildAButtonDemo() {
|
|
17
|
+
return (
|
|
18
|
+
<YStack fullscreen ov="hidden">
|
|
19
|
+
<XStack mah={200} y={-100} x={-40} rotate="-10deg">
|
|
20
|
+
<ButtonCol y={35} size="$2" {...outlined} subTheme="alt1" borderWidth={1} />
|
|
21
|
+
<ButtonCol y={30} />
|
|
22
|
+
<ButtonCol y={-50} {...outlined} />
|
|
23
|
+
<ButtonCol {...outlined} icon={<Hand />} />
|
|
24
|
+
<ButtonCol size="$6" subTheme="alt2" />
|
|
25
|
+
<ButtonCol size="$6" subTheme="alt2" {...outlined} />
|
|
26
|
+
<ButtonCol size="$8" subTheme="alt2" iconAfter={<Drumstick />} {...outlined} />
|
|
27
|
+
<ButtonCol size="$10" subTheme="alt1" />
|
|
28
|
+
<ButtonCol size="$8" subTheme="alt2" {...outlined} borderRadius={0} />
|
|
29
|
+
</XStack>
|
|
30
|
+
</YStack>
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function ButtonCol(
|
|
35
|
+
props: ButtonProps & {
|
|
36
|
+
subTheme?: any
|
|
37
|
+
}
|
|
38
|
+
) {
|
|
39
|
+
const subTheme = props.subTheme ? `_${props.subTheme}` : ''
|
|
40
|
+
return (
|
|
41
|
+
<YStack padding="$2" space="$3">
|
|
42
|
+
<Button theme={props.subTheme} {...props}>
|
|
43
|
+
Hello
|
|
44
|
+
</Button>
|
|
45
|
+
<Button theme={('orange' + subTheme) as ThemeName} {...props}>
|
|
46
|
+
Hello
|
|
47
|
+
</Button>
|
|
48
|
+
<Button theme={('yellow' + subTheme) as ThemeName} {...props}>
|
|
49
|
+
Hello
|
|
50
|
+
</Button>
|
|
51
|
+
<Button theme={('green' + subTheme) as ThemeName} {...props}>
|
|
52
|
+
Hello
|
|
53
|
+
</Button>
|
|
54
|
+
<Button theme={('blue' + subTheme) as ThemeName} {...props}>
|
|
55
|
+
Hello
|
|
56
|
+
</Button>
|
|
57
|
+
<Button theme={('purple' + subTheme) as ThemeName} {...props}>
|
|
58
|
+
Hello
|
|
59
|
+
</Button>
|
|
60
|
+
<Button theme={('pink' + subTheme) as ThemeName} {...props}>
|
|
61
|
+
Hello
|
|
62
|
+
</Button>
|
|
63
|
+
<Button theme={('red' + subTheme) as ThemeName} {...props}>
|
|
64
|
+
Hello
|
|
65
|
+
</Button>
|
|
66
|
+
</YStack>
|
|
67
|
+
)
|
|
68
|
+
}
|
package/src/index.tsx
CHANGED
|
@@ -6,7 +6,7 @@ export * from './AnimationsTimingDemo'
|
|
|
6
6
|
export * from './AnimationsPresenceDemo'
|
|
7
7
|
export * from './AvatarDemo'
|
|
8
8
|
export * from './ButtonDemo'
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './BuildAButtonDemo'
|
|
10
10
|
export * from './CardDemo'
|
|
11
11
|
export * from './DialogDemo'
|
|
12
12
|
export * from './AddThemeDemo'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BuildAButtonDemo.d.ts","sourceRoot":"","sources":["../src/BuildAButtonDemo.tsx"],"names":[],"mappings":";AAeA,wBAAgB,gBAAgB,gBAgB/B"}
|
package/types/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './AnimationsTimingDemo';
|
|
|
6
6
|
export * from './AnimationsPresenceDemo';
|
|
7
7
|
export * from './AvatarDemo';
|
|
8
8
|
export * from './ButtonDemo';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './BuildAButtonDemo';
|
|
10
10
|
export * from './CardDemo';
|
|
11
11
|
export * from './DialogDemo';
|
|
12
12
|
export * from './AddThemeDemo';
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AAC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AC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA"}
|
package/src/ButtonNewDemo.tsx
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Activity, Airplay } from '@tamagui/lucide-icons'
|
|
2
|
-
import { Button, XGroup, XStack, YStack } from 'tamagui'
|
|
3
|
-
|
|
4
|
-
export function ButtonNewDemo(props) {
|
|
5
|
-
return (
|
|
6
|
-
<YStack padding="$3" space="$3" {...props}>
|
|
7
|
-
<Button>
|
|
8
|
-
<Button.Text>Plain</Button.Text>
|
|
9
|
-
</Button>
|
|
10
|
-
<Button alignSelf="center" size="$6" space="$2">
|
|
11
|
-
<Button.Icon>
|
|
12
|
-
<Airplay />
|
|
13
|
-
</Button.Icon>
|
|
14
|
-
<Button.Text>Large</Button.Text>
|
|
15
|
-
</Button>
|
|
16
|
-
<XStack space="$2" justifyContent="center">
|
|
17
|
-
<Button size="$3" theme="alt2">
|
|
18
|
-
<Button.Text>Alt2</Button.Text>
|
|
19
|
-
</Button>
|
|
20
|
-
<Button size="$3" theme="yellow">
|
|
21
|
-
<Button.Text>Yellow</Button.Text>
|
|
22
|
-
</Button>
|
|
23
|
-
</XStack>
|
|
24
|
-
<XStack space="$2">
|
|
25
|
-
<Button themeInverse size="$3">
|
|
26
|
-
<Button.Text>Small Inverse</Button.Text>
|
|
27
|
-
</Button>
|
|
28
|
-
<Button size="$3" space="$2">
|
|
29
|
-
<Button.Text>After</Button.Text>
|
|
30
|
-
<Button.Icon>
|
|
31
|
-
<Activity />
|
|
32
|
-
</Button.Icon>
|
|
33
|
-
</Button>
|
|
34
|
-
</XStack>
|
|
35
|
-
<XGroup>
|
|
36
|
-
<XGroup.Item>
|
|
37
|
-
<Button width="50%" size="$2" disabled opacity={0.5}>
|
|
38
|
-
<Button.Text>disabled</Button.Text>
|
|
39
|
-
</Button>
|
|
40
|
-
</XGroup.Item>
|
|
41
|
-
|
|
42
|
-
<XGroup.Item>
|
|
43
|
-
<Button width="50%" size="$2" chromeless>
|
|
44
|
-
<Button.Text>chromeless</Button.Text>
|
|
45
|
-
</Button>
|
|
46
|
-
</XGroup.Item>
|
|
47
|
-
</XGroup>
|
|
48
|
-
</YStack>
|
|
49
|
-
)
|
|
50
|
-
}
|