@tamagui/demos 1.114.3 → 1.115.0
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/AccordionDemo.cjs +96 -0
- package/dist/cjs/AddThemeDemo.cjs +70 -0
- package/dist/cjs/AlertDialogDemo.cjs +96 -0
- package/dist/cjs/AnimationsDemo.cjs +100 -0
- package/dist/cjs/AnimationsEnterDemo.cjs +74 -0
- package/dist/cjs/AnimationsHoverDemo.cjs +47 -0
- package/dist/cjs/AnimationsPresenceDemo.cjs +124 -0
- package/dist/cjs/AnimationsTimingDemo.cjs +46 -0
- package/dist/cjs/AvatarDemo.cjs +53 -0
- package/dist/cjs/BuildAButtonDemo.cjs +125 -0
- package/dist/cjs/ButtonDemo.cjs +83 -0
- package/dist/cjs/{CardDemo.js → CardDemo.cjs} +67 -41
- package/dist/cjs/CheckboxDemo.cjs +70 -0
- package/dist/cjs/CheckboxHeadlessDemo.cjs +87 -0
- package/dist/cjs/CheckboxUnstyledDemo.cjs +78 -0
- package/dist/cjs/ColorsDemo.cjs +121 -0
- package/dist/cjs/DialogDemo.cjs +155 -0
- package/dist/cjs/FormsDemo.cjs +70 -0
- package/dist/cjs/Grid.cjs +71 -0
- package/dist/cjs/GroupDemo.cjs +85 -0
- package/dist/cjs/HeadingsDemo.cjs +45 -0
- package/dist/cjs/ImageDemo.cjs +36 -0
- package/dist/cjs/InputsDemo.cjs +60 -0
- package/dist/cjs/LabelDemo.cjs +60 -0
- package/dist/cjs/LinearGradientDemo.cjs +48 -0
- package/dist/cjs/ListItemDemo.cjs +100 -0
- package/dist/cjs/LucideIconsDemo.cjs +93 -0
- package/dist/cjs/NewInputsDemo.cjs +60 -0
- package/dist/cjs/PopoverDemo.cjs +145 -0
- package/dist/cjs/ProgressDemo.cjs +106 -0
- package/dist/cjs/RadioGroupDemo.cjs +71 -0
- package/dist/cjs/RadioGroupHeadlessDemo.cjs +168 -0
- package/dist/cjs/RadioGroupUnstyledDemo.cjs +142 -0
- package/dist/cjs/ReplaceThemeDemo.cjs +78 -0
- package/dist/cjs/ScrollViewDemo.cjs +74 -0
- package/dist/cjs/SelectDemo.cjs +228 -0
- package/dist/cjs/SeparatorDemo.cjs +60 -0
- package/dist/cjs/ShapesDemo.cjs +42 -0
- package/dist/cjs/SheetDemo.cjs +176 -0
- package/dist/cjs/SliderDemo.cjs +58 -0
- package/dist/cjs/SpinnerDemo.cjs +41 -0
- package/dist/cjs/StacksDemo.cjs +104 -0
- package/dist/cjs/SwitchDemo.cjs +95 -0
- package/dist/cjs/SwitchHeadlessDemo.cjs +101 -0
- package/dist/cjs/SwitchUnstyledDemo.cjs +89 -0
- package/dist/cjs/TabsAdvancedDemo.cjs +340 -0
- package/dist/cjs/TabsDemo.cjs +191 -0
- package/dist/cjs/TextDemo.cjs +52 -0
- package/dist/cjs/ThemeBuilderDemo.cjs +178 -0
- package/dist/cjs/ThemeInverseDemo.cjs +69 -0
- package/dist/cjs/ToastDemo.cjs +133 -0
- package/dist/cjs/ToastDuplicateDemo.cjs +83 -0
- package/dist/cjs/ToggleGroupDemo.cjs +97 -0
- package/dist/cjs/TokensDemo.cjs +125 -0
- package/dist/cjs/TooltipDemo.cjs +125 -0
- package/dist/cjs/UpdateThemeDemo.cjs +81 -0
- package/dist/cjs/WebNativeImageDemo.cjs +34 -0
- package/dist/cjs/index.cjs +74 -0
- package/dist/cjs/tamagui.config.cjs +29 -0
- package/dist/cjs/useOnIntersecting.cjs +66 -0
- package/package.json +22 -21
- package/dist/cjs/AccordionDemo.js +0 -43
- package/dist/cjs/AddThemeDemo.js +0 -56
- package/dist/cjs/AlertDialogDemo.js +0 -68
- package/dist/cjs/AnimationsDemo.js +0 -99
- package/dist/cjs/AnimationsEnterDemo.js +0 -55
- package/dist/cjs/AnimationsHoverDemo.js +0 -41
- package/dist/cjs/AnimationsPresenceDemo.js +0 -102
- package/dist/cjs/AnimationsTimingDemo.js +0 -40
- package/dist/cjs/AvatarDemo.js +0 -45
- package/dist/cjs/BuildAButtonDemo.js +0 -57
- package/dist/cjs/ButtonDemo.js +0 -39
- package/dist/cjs/CheckboxDemo.js +0 -40
- package/dist/cjs/CheckboxHeadlessDemo.js +0 -62
- package/dist/cjs/CheckboxUnstyledDemo.js +0 -52
- package/dist/cjs/ColorsDemo.js +0 -95
- package/dist/cjs/DialogDemo.js +0 -99
- package/dist/cjs/FormsDemo.js +0 -57
- package/dist/cjs/Grid.js +0 -58
- package/dist/cjs/GroupDemo.js +0 -39
- package/dist/cjs/HeadingsDemo.js +0 -31
- package/dist/cjs/ImageDemo.js +0 -33
- package/dist/cjs/InputsDemo.js +0 -46
- package/dist/cjs/LabelDemo.js +0 -33
- package/dist/cjs/LinearGradientDemo.js +0 -47
- package/dist/cjs/ListItemDemo.js +0 -61
- package/dist/cjs/LucideIconsDemo.js +0 -72
- package/dist/cjs/NewInputsDemo.js +0 -46
- package/dist/cjs/PopoverDemo.js +0 -126
- package/dist/cjs/ProgressDemo.js +0 -88
- package/dist/cjs/RadioGroupDemo.js +0 -36
- package/dist/cjs/RadioGroupHeadlessDemo.js +0 -117
- package/dist/cjs/RadioGroupUnstyledDemo.js +0 -107
- package/dist/cjs/ReplaceThemeDemo.js +0 -58
- package/dist/cjs/ScrollViewDemo.js +0 -43
- package/dist/cjs/SelectDemo.js +0 -190
- package/dist/cjs/SeparatorDemo.js +0 -35
- package/dist/cjs/ShapesDemo.js +0 -27
- package/dist/cjs/SheetDemo.js +0 -120
- package/dist/cjs/SliderDemo.js +0 -34
- package/dist/cjs/SpinnerDemo.js +0 -27
- package/dist/cjs/StacksDemo.js +0 -93
- package/dist/cjs/SwitchDemo.js +0 -56
- package/dist/cjs/SwitchHeadlessDemo.js +0 -87
- package/dist/cjs/SwitchUnstyledDemo.js +0 -64
- package/dist/cjs/TabsAdvancedDemo.js +0 -283
- package/dist/cjs/TabsDemo.js +0 -144
- package/dist/cjs/TextDemo.js +0 -31
- package/dist/cjs/ThemeBuilderDemo.js +0 -149
- package/dist/cjs/ThemeInverseDemo.js +0 -56
- package/dist/cjs/ToastDemo.js +0 -112
- package/dist/cjs/ToastDuplicateDemo.js +0 -64
- package/dist/cjs/ToggleGroupDemo.js +0 -63
- package/dist/cjs/TokensDemo.js +0 -100
- package/dist/cjs/TooltipDemo.js +0 -68
- package/dist/cjs/UpdateThemeDemo.js +0 -61
- package/dist/cjs/WebNativeImageDemo.js +0 -24
- package/dist/cjs/index.js +0 -71
- package/dist/cjs/tamagui.config.js +0 -22
- package/dist/cjs/useOnIntersecting.js +0 -63
- /package/dist/cjs/{AccordionDemo.js.map → AccordionDemo.cjs.map} +0 -0
- /package/dist/cjs/{AddThemeDemo.js.map → AddThemeDemo.cjs.map} +0 -0
- /package/dist/cjs/{AlertDialogDemo.js.map → AlertDialogDemo.cjs.map} +0 -0
- /package/dist/cjs/{AnimationsDemo.js.map → AnimationsDemo.cjs.map} +0 -0
- /package/dist/cjs/{AnimationsEnterDemo.js.map → AnimationsEnterDemo.cjs.map} +0 -0
- /package/dist/cjs/{AnimationsHoverDemo.js.map → AnimationsHoverDemo.cjs.map} +0 -0
- /package/dist/cjs/{AnimationsPresenceDemo.js.map → AnimationsPresenceDemo.cjs.map} +0 -0
- /package/dist/cjs/{AnimationsTimingDemo.js.map → AnimationsTimingDemo.cjs.map} +0 -0
- /package/dist/cjs/{AvatarDemo.js.map → AvatarDemo.cjs.map} +0 -0
- /package/dist/cjs/{BuildAButtonDemo.js.map → BuildAButtonDemo.cjs.map} +0 -0
- /package/dist/cjs/{ButtonDemo.js.map → ButtonDemo.cjs.map} +0 -0
- /package/dist/cjs/{CardDemo.js.map → CardDemo.cjs.map} +0 -0
- /package/dist/cjs/{CheckboxDemo.js.map → CheckboxDemo.cjs.map} +0 -0
- /package/dist/cjs/{CheckboxHeadlessDemo.js.map → CheckboxHeadlessDemo.cjs.map} +0 -0
- /package/dist/cjs/{CheckboxUnstyledDemo.js.map → CheckboxUnstyledDemo.cjs.map} +0 -0
- /package/dist/cjs/{ColorsDemo.js.map → ColorsDemo.cjs.map} +0 -0
- /package/dist/cjs/{DialogDemo.js.map → DialogDemo.cjs.map} +0 -0
- /package/dist/cjs/{FormsDemo.js.map → FormsDemo.cjs.map} +0 -0
- /package/dist/cjs/{Grid.js.map → Grid.cjs.map} +0 -0
- /package/dist/cjs/{GroupDemo.js.map → GroupDemo.cjs.map} +0 -0
- /package/dist/cjs/{HeadingsDemo.js.map → HeadingsDemo.cjs.map} +0 -0
- /package/dist/cjs/{ImageDemo.js.map → ImageDemo.cjs.map} +0 -0
- /package/dist/cjs/{InputsDemo.js.map → InputsDemo.cjs.map} +0 -0
- /package/dist/cjs/{LabelDemo.js.map → LabelDemo.cjs.map} +0 -0
- /package/dist/cjs/{LinearGradientDemo.js.map → LinearGradientDemo.cjs.map} +0 -0
- /package/dist/cjs/{ListItemDemo.js.map → ListItemDemo.cjs.map} +0 -0
- /package/dist/cjs/{LucideIconsDemo.js.map → LucideIconsDemo.cjs.map} +0 -0
- /package/dist/cjs/{NewInputsDemo.js.map → NewInputsDemo.cjs.map} +0 -0
- /package/dist/cjs/{PopoverDemo.js.map → PopoverDemo.cjs.map} +0 -0
- /package/dist/cjs/{ProgressDemo.js.map → ProgressDemo.cjs.map} +0 -0
- /package/dist/cjs/{RadioGroupDemo.js.map → RadioGroupDemo.cjs.map} +0 -0
- /package/dist/cjs/{RadioGroupHeadlessDemo.js.map → RadioGroupHeadlessDemo.cjs.map} +0 -0
- /package/dist/cjs/{RadioGroupUnstyledDemo.js.map → RadioGroupUnstyledDemo.cjs.map} +0 -0
- /package/dist/cjs/{ReplaceThemeDemo.js.map → ReplaceThemeDemo.cjs.map} +0 -0
- /package/dist/cjs/{ScrollViewDemo.js.map → ScrollViewDemo.cjs.map} +0 -0
- /package/dist/cjs/{SelectDemo.js.map → SelectDemo.cjs.map} +0 -0
- /package/dist/cjs/{SeparatorDemo.js.map → SeparatorDemo.cjs.map} +0 -0
- /package/dist/cjs/{ShapesDemo.js.map → ShapesDemo.cjs.map} +0 -0
- /package/dist/cjs/{SheetDemo.js.map → SheetDemo.cjs.map} +0 -0
- /package/dist/cjs/{SliderDemo.js.map → SliderDemo.cjs.map} +0 -0
- /package/dist/cjs/{SpinnerDemo.js.map → SpinnerDemo.cjs.map} +0 -0
- /package/dist/cjs/{StacksDemo.js.map → StacksDemo.cjs.map} +0 -0
- /package/dist/cjs/{SwitchDemo.js.map → SwitchDemo.cjs.map} +0 -0
- /package/dist/cjs/{SwitchHeadlessDemo.js.map → SwitchHeadlessDemo.cjs.map} +0 -0
- /package/dist/cjs/{SwitchUnstyledDemo.js.map → SwitchUnstyledDemo.cjs.map} +0 -0
- /package/dist/cjs/{TabsAdvancedDemo.js.map → TabsAdvancedDemo.cjs.map} +0 -0
- /package/dist/cjs/{TabsDemo.js.map → TabsDemo.cjs.map} +0 -0
- /package/dist/cjs/{TextDemo.js.map → TextDemo.cjs.map} +0 -0
- /package/dist/cjs/{ThemeBuilderDemo.js.map → ThemeBuilderDemo.cjs.map} +0 -0
- /package/dist/cjs/{ThemeInverseDemo.js.map → ThemeInverseDemo.cjs.map} +0 -0
- /package/dist/cjs/{ToastDemo.js.map → ToastDemo.cjs.map} +0 -0
- /package/dist/cjs/{ToastDuplicateDemo.js.map → ToastDuplicateDemo.cjs.map} +0 -0
- /package/dist/cjs/{ToggleGroupDemo.js.map → ToggleGroupDemo.cjs.map} +0 -0
- /package/dist/cjs/{TokensDemo.js.map → TokensDemo.cjs.map} +0 -0
- /package/dist/cjs/{TooltipDemo.js.map → TooltipDemo.cjs.map} +0 -0
- /package/dist/cjs/{UpdateThemeDemo.js.map → UpdateThemeDemo.cjs.map} +0 -0
- /package/dist/cjs/{WebNativeImageDemo.js.map → WebNativeImageDemo.cjs.map} +0 -0
- /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
- /package/dist/cjs/{tamagui.config.js.map → tamagui.config.cjs.map} +0 -0
- /package/dist/cjs/{useOnIntersecting.js.map → useOnIntersecting.cjs.map} +0 -0
package/dist/cjs/ColorsDemo.js
DELETED
|
@@ -1,95 +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 ColorsDemo_exports = {};
|
|
16
|
-
__export(ColorsDemo_exports, {
|
|
17
|
-
ColorsDemo: () => ColorsDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(ColorsDemo_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
const colorGroups = ["orange", "yellow", "green", "blue", "purple", "pink", "red"];
|
|
22
|
-
function ColorsDemo() {
|
|
23
|
-
const colors = (0, import_tamagui.getTokens)({ prefixed: !1 }).color, [colorsLight, colorsDark] = [getColors(colors), getColors(colors, !0)];
|
|
24
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { marginTop: "$4", space: "$8", children: [
|
|
25
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ColorsRow, { title: "Light", colors: colorsLight }),
|
|
26
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {}),
|
|
27
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ColorsRow, { title: "Dark", colors: colorsDark })
|
|
28
|
-
] });
|
|
29
|
-
}
|
|
30
|
-
function ColorsRow({ title, colors }) {
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { space: !0, $sm: { space: "$2" }, children: [
|
|
32
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H2, { size: "$2", children: title }),
|
|
33
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { space: !0, alignSelf: "center", children: [
|
|
34
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { space: !0, $sm: { space: "$2" }, alignSelf: "center", children: [
|
|
35
|
-
colors.map((group, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, { gap: "$2", children: group.map((color) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
36
|
-
import_tamagui.Square,
|
|
37
|
-
{
|
|
38
|
-
borderRadius: "$2",
|
|
39
|
-
size: "$4",
|
|
40
|
-
height: "$4",
|
|
41
|
-
borderWidth: 1,
|
|
42
|
-
backgroundColor: (0, import_tamagui.getVariableValue)(color),
|
|
43
|
-
borderColor: "$color7",
|
|
44
|
-
$sm: {
|
|
45
|
-
size: "$2"
|
|
46
|
-
},
|
|
47
|
-
$xs: {
|
|
48
|
-
size: "$1"
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
`${color.key}${index}`
|
|
52
|
-
)) }, index)),
|
|
53
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XStack, { gap: "$2", alignSelf: "center", children: new Array(13).fill(0).slice(1).map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
54
|
-
import_tamagui.Paragraph,
|
|
55
|
-
{
|
|
56
|
-
color: "$color10",
|
|
57
|
-
textAlign: "center",
|
|
58
|
-
width: "$4",
|
|
59
|
-
$sm: {
|
|
60
|
-
width: "$2"
|
|
61
|
-
},
|
|
62
|
-
$xs: {
|
|
63
|
-
width: "$1"
|
|
64
|
-
},
|
|
65
|
-
children: index
|
|
66
|
-
},
|
|
67
|
-
index
|
|
68
|
-
)) })
|
|
69
|
-
] }),
|
|
70
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { gap: "$4", marginTop: "$2", children: colorGroups.map((name) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
71
|
-
import_tamagui.Paragraph,
|
|
72
|
-
{
|
|
73
|
-
theme: name,
|
|
74
|
-
color: "$color10",
|
|
75
|
-
height: "$4",
|
|
76
|
-
rotate: "-10deg",
|
|
77
|
-
$sm: {
|
|
78
|
-
height: "$2"
|
|
79
|
-
},
|
|
80
|
-
$xs: {
|
|
81
|
-
height: "$1"
|
|
82
|
-
},
|
|
83
|
-
children: name
|
|
84
|
-
},
|
|
85
|
-
name
|
|
86
|
-
)) })
|
|
87
|
-
] })
|
|
88
|
-
] });
|
|
89
|
-
}
|
|
90
|
-
function getColors(colors, dark = !1) {
|
|
91
|
-
return colorGroups.map((group) => Object.keys(colors).filter(
|
|
92
|
-
(color) => color.startsWith(group) && (dark ? color.endsWith("Dark") : !color.endsWith("Dark"))
|
|
93
|
-
).map((key) => colors[key]));
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=ColorsDemo.js.map
|
package/dist/cjs/DialogDemo.js
DELETED
|
@@ -1,99 +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 DialogDemo_exports = {};
|
|
16
|
-
__export(DialogDemo_exports, {
|
|
17
|
-
DialogDemo: () => DialogDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(DialogDemo_exports);
|
|
20
|
-
var import_lucide_icons = require("@tamagui/lucide-icons"), import_tamagui = require("tamagui"), import_SelectDemo = require("./SelectDemo"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function DialogDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogInstance, {});
|
|
23
|
-
}
|
|
24
|
-
function DialogInstance() {
|
|
25
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Dialog, { modal: !0, children: [
|
|
26
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Trigger, { asChild: !0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { children: "Show Dialog" }) }),
|
|
27
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Adapt, { when: "sm", platform: "touch", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Sheet, { animation: "medium", zIndex: 2e5, modal: !0, dismissOnSnapToBottom: !0, children: [
|
|
28
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Sheet.Frame, { padding: "$4", gap: "$4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Adapt.Contents, {}) }),
|
|
29
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
30
|
-
import_tamagui.Sheet.Overlay,
|
|
31
|
-
{
|
|
32
|
-
animation: "lazy",
|
|
33
|
-
enterStyle: { opacity: 0 },
|
|
34
|
-
exitStyle: { opacity: 0 }
|
|
35
|
-
}
|
|
36
|
-
)
|
|
37
|
-
] }) }),
|
|
38
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Dialog.Portal, { children: [
|
|
39
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
-
import_tamagui.Dialog.Overlay,
|
|
41
|
-
{
|
|
42
|
-
animation: "slow",
|
|
43
|
-
opacity: 0.5,
|
|
44
|
-
enterStyle: { opacity: 0 },
|
|
45
|
-
exitStyle: { opacity: 0 }
|
|
46
|
-
},
|
|
47
|
-
"overlay"
|
|
48
|
-
),
|
|
49
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
50
|
-
import_tamagui.Dialog.Content,
|
|
51
|
-
{
|
|
52
|
-
bordered: !0,
|
|
53
|
-
elevate: !0,
|
|
54
|
-
animateOnly: ["transform", "opacity"],
|
|
55
|
-
animation: [
|
|
56
|
-
"quicker",
|
|
57
|
-
{
|
|
58
|
-
opacity: {
|
|
59
|
-
overshootClamping: !0
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
enterStyle: { x: 0, y: -20, opacity: 0, scale: 0.9 },
|
|
64
|
-
exitStyle: { x: 0, y: 10, opacity: 0, scale: 0.95 },
|
|
65
|
-
gap: "$4",
|
|
66
|
-
children: [
|
|
67
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Title, { children: "Edit profile" }),
|
|
68
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Description, { children: "Make changes to your profile here. Click save when you're done." }),
|
|
69
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Fieldset, { gap: "$4", horizontal: !0, children: [
|
|
70
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { width: 160, justifyContent: "flex-end", htmlFor: "name", children: "Name" }),
|
|
71
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Input, { flex: 1, id: "name", defaultValue: "Nate Wienert" })
|
|
72
|
-
] }),
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Fieldset, { gap: "$4", horizontal: !0, children: [
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { width: 160, justifyContent: "flex-end", htmlFor: "username", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.TooltipSimple, { label: "Pick your favorite", placement: "bottom-start", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, { children: "Food" }) }) }),
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SelectDemo.SelectDemoItem, {})
|
|
76
|
-
] }),
|
|
77
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { alignSelf: "flex-end", gap: "$4", children: [
|
|
78
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogInstance, {}),
|
|
79
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Close, { displayWhenAdapted: !0, asChild: !0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { theme: "active", "aria-label": "Close", children: "Save changes" }) })
|
|
80
|
-
] }),
|
|
81
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Unspaced, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Dialog.Close, { asChild: !0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
82
|
-
import_tamagui.Button,
|
|
83
|
-
{
|
|
84
|
-
position: "absolute",
|
|
85
|
-
top: "$3",
|
|
86
|
-
right: "$3",
|
|
87
|
-
size: "$2",
|
|
88
|
-
circular: !0,
|
|
89
|
-
icon: import_lucide_icons.X
|
|
90
|
-
}
|
|
91
|
-
) }) })
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"content"
|
|
95
|
-
)
|
|
96
|
-
] })
|
|
97
|
-
] });
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=DialogDemo.js.map
|
package/dist/cjs/FormsDemo.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var FormsDemo_exports = {};
|
|
24
|
-
__export(FormsDemo_exports, {
|
|
25
|
-
FormsDemo: () => FormsDemo
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(FormsDemo_exports);
|
|
28
|
-
var import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
function FormsDemo(props) {
|
|
30
|
-
const [status, setStatus] = import_react.default.useState("off");
|
|
31
|
-
return import_react.default.useEffect(() => {
|
|
32
|
-
if (status === "submitting") {
|
|
33
|
-
const timer = setTimeout(() => setStatus("off"), 2e3);
|
|
34
|
-
return () => {
|
|
35
|
-
clearTimeout(timer);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
}, [status]), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
39
|
-
import_tamagui.Form,
|
|
40
|
-
{
|
|
41
|
-
alignItems: "center",
|
|
42
|
-
minWidth: 300,
|
|
43
|
-
gap: "$2",
|
|
44
|
-
onSubmit: () => setStatus("submitting"),
|
|
45
|
-
borderWidth: 1,
|
|
46
|
-
borderRadius: "$4",
|
|
47
|
-
backgroundColor: "$background",
|
|
48
|
-
borderColor: "$borderColor",
|
|
49
|
-
padding: "$8",
|
|
50
|
-
children: [
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H4, { children: status[0].toUpperCase() + status.slice(1) }),
|
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Form.Trigger, { asChild: !0, disabled: status !== "off", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { icon: status === "submitting" ? () => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Spinner, {}) : void 0, children: "Submit" }) })
|
|
53
|
-
]
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
//# sourceMappingURL=FormsDemo.js.map
|
package/dist/cjs/Grid.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
9
|
-
}, __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from == "object" || typeof from == "function")
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
13
|
-
return to;
|
|
14
|
-
};
|
|
15
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
16
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
17
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
18
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
19
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
20
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: !0 }) : target,
|
|
21
|
-
mod
|
|
22
|
-
)), __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
23
|
-
var Grid_exports = {};
|
|
24
|
-
__export(Grid_exports, {
|
|
25
|
-
Grid: () => Grid
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(Grid_exports);
|
|
28
|
-
var import_core = require("@tamagui/core"), import_stacks = require("@tamagui/stacks"), import_react = __toESM(require("react")), import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
function Grid({ children, columns, itemMinWidth = 200, gap }) {
|
|
30
|
-
if (import_core.isWeb)
|
|
31
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
32
|
-
"div",
|
|
33
|
-
{
|
|
34
|
-
style: {
|
|
35
|
-
gap,
|
|
36
|
-
display: "grid",
|
|
37
|
-
justifyContent: "stretch",
|
|
38
|
-
// gridTemplateRows: 'repeat(4, 1fr)',
|
|
39
|
-
gridTemplateColumns: `repeat( auto-fit, minmax(${itemMinWidth}px, 1fr) )`
|
|
40
|
-
// gridTemplateColumns: '1fr 1fr',
|
|
41
|
-
},
|
|
42
|
-
children
|
|
43
|
-
}
|
|
44
|
-
);
|
|
45
|
-
const childrenList = import_react.default.Children.toArray(children);
|
|
46
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stacks.XStack, { alignItems: "center", justifyContent: "center", flexWrap: "wrap", children: childrenList.map((child, i) => child ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
|
-
import_stacks.XStack,
|
|
48
|
-
{
|
|
49
|
-
flex: 1,
|
|
50
|
-
minWidth: itemMinWidth,
|
|
51
|
-
marginRight: gap,
|
|
52
|
-
marginBottom: gap,
|
|
53
|
-
children: child
|
|
54
|
-
},
|
|
55
|
-
i
|
|
56
|
-
) : null) });
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=Grid.js.map
|
package/dist/cjs/GroupDemo.js
DELETED
|
@@ -1,39 +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 GroupDemo_exports = {};
|
|
16
|
-
__export(GroupDemo_exports, {
|
|
17
|
-
GroupDemo: () => GroupDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(GroupDemo_exports);
|
|
20
|
-
var import_lucide_icons = require("@tamagui/lucide-icons"), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function GroupDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { padding: "$3", space: "$2", alignItems: "center", children: [
|
|
23
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Group, { orientation: "horizontal", children: [
|
|
24
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Group.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { children: "First" }) }),
|
|
25
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Group.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { children: "Second" }) }),
|
|
26
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Group.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { children: "Third" }) })
|
|
27
|
-
] }),
|
|
28
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XGroup, { size: "$3", $gtSm: { size: "$5" }, children: [
|
|
29
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { size: "$3", icon: import_lucide_icons.Activity, children: "First" }) }),
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { size: "$3", icon: import_lucide_icons.Airplay, children: "Second" }) })
|
|
31
|
-
] }),
|
|
32
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YGroup, { separator: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {}), children: [
|
|
33
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { title: "First" }) }),
|
|
34
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { title: "Second", subTitle: "Second subtitle" }) }),
|
|
35
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { children: "Third" }) })
|
|
36
|
-
] })
|
|
37
|
-
] });
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=GroupDemo.js.map
|
package/dist/cjs/HeadingsDemo.js
DELETED
|
@@ -1,31 +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 HeadingsDemo_exports = {};
|
|
16
|
-
__export(HeadingsDemo_exports, {
|
|
17
|
-
HeadingsDemo: () => HeadingsDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(HeadingsDemo_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function HeadingsDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { alignSelf: "center", children: [
|
|
23
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H1, { children: "Heading 1" }),
|
|
24
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H2, { children: "Heading 2" }),
|
|
25
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H3, { children: "Heading 3" }),
|
|
26
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H4, { children: "Heading 4" }),
|
|
27
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { children: "Heading 5" }),
|
|
28
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H6, { children: "Heading 6" })
|
|
29
|
-
] });
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=HeadingsDemo.js.map
|
package/dist/cjs/ImageDemo.js
DELETED
|
@@ -1,33 +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 ImageDemo_exports = {};
|
|
16
|
-
__export(ImageDemo_exports, {
|
|
17
|
-
ImageDemo: () => ImageDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(ImageDemo_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function ImageDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
23
|
-
import_tamagui.Image,
|
|
24
|
-
{
|
|
25
|
-
source: {
|
|
26
|
-
uri: "https://picsum.photos/200/300",
|
|
27
|
-
width: 200,
|
|
28
|
-
height: 300
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=ImageDemo.js.map
|
package/dist/cjs/InputsDemo.js
DELETED
|
@@ -1,46 +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 InputsDemo_exports = {};
|
|
16
|
-
__export(InputsDemo_exports, {
|
|
17
|
-
InputsDemo: () => InputsDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(InputsDemo_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function InputsDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
23
|
-
import_tamagui.YStack,
|
|
24
|
-
{
|
|
25
|
-
width: 200,
|
|
26
|
-
minHeight: 250,
|
|
27
|
-
overflow: "hidden",
|
|
28
|
-
space: "$2",
|
|
29
|
-
margin: "$3",
|
|
30
|
-
padding: "$2",
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputDemo, { size: "$2" }),
|
|
33
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputDemo, { size: "$3" }),
|
|
34
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputDemo, { size: "$4" }),
|
|
35
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.TextArea, { placeholder: "Enter your details..." })
|
|
36
|
-
]
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
}
|
|
40
|
-
function InputDemo(props) {
|
|
41
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { alignItems: "center", space: "$2", children: [
|
|
42
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Input, { flex: 1, size: props.size, placeholder: `Size ${props.size}...` }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { size: props.size, children: "Go" })
|
|
44
|
-
] });
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=InputsDemo.js.map
|
package/dist/cjs/LabelDemo.js
DELETED
|
@@ -1,33 +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 LabelDemo_exports = {};
|
|
16
|
-
__export(LabelDemo_exports, {
|
|
17
|
-
LabelDemo: () => LabelDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(LabelDemo_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function LabelDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { padding: "$3", minWidth: 300, space: "$4", children: [
|
|
23
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { alignItems: "center", space: "$4", children: [
|
|
24
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { width: 90, htmlFor: "name", children: "Name" }),
|
|
25
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Input, { flex: 1, id: "name", defaultValue: "Nate Wienert" })
|
|
26
|
-
] }),
|
|
27
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { alignItems: "center", space: "$4", children: [
|
|
28
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { width: 90, htmlFor: "notify", children: "Notifications" }),
|
|
29
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Switch, { id: "notify", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Switch.Thumb, { animation: "quick" }) })
|
|
30
|
-
] })
|
|
31
|
-
] });
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=LabelDemo.js.map
|
|
@@ -1,47 +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 LinearGradientDemo_exports = {};
|
|
16
|
-
__export(LinearGradientDemo_exports, {
|
|
17
|
-
LinearGradientDemo: () => LinearGradientDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(LinearGradientDemo_exports);
|
|
20
|
-
var import_tamagui = require("tamagui"), import_linear_gradient = require("tamagui/linear-gradient"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function LinearGradientDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { space: !0, children: [
|
|
23
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
24
|
-
import_linear_gradient.LinearGradient,
|
|
25
|
-
{
|
|
26
|
-
width: "$6",
|
|
27
|
-
height: "$6",
|
|
28
|
-
borderRadius: "$4",
|
|
29
|
-
colors: ["$red10", "$yellow10"],
|
|
30
|
-
start: [0, 1],
|
|
31
|
-
end: [0, 0]
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
35
|
-
import_linear_gradient.LinearGradient,
|
|
36
|
-
{
|
|
37
|
-
width: "$6",
|
|
38
|
-
height: "$6",
|
|
39
|
-
borderRadius: "$4",
|
|
40
|
-
colors: ["$background", "$color"],
|
|
41
|
-
start: [1, 1],
|
|
42
|
-
end: [0, 0]
|
|
43
|
-
}
|
|
44
|
-
)
|
|
45
|
-
] });
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=LinearGradientDemo.js.map
|
package/dist/cjs/ListItemDemo.js
DELETED
|
@@ -1,61 +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 ListItemDemo_exports = {};
|
|
16
|
-
__export(ListItemDemo_exports, {
|
|
17
|
-
ListItemDemo: () => ListItemDemo
|
|
18
|
-
});
|
|
19
|
-
module.exports = __toCommonJS(ListItemDemo_exports);
|
|
20
|
-
var import_lucide_icons = require("@tamagui/lucide-icons"), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
|
|
21
|
-
function ListItemDemo() {
|
|
22
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { $sm: { flexDirection: "column" }, paddingHorizontal: "$4", space: !0, children: [
|
|
23
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListItemDemo1, {}),
|
|
24
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ListItemDemo2, {})
|
|
25
|
-
] });
|
|
26
|
-
}
|
|
27
|
-
function ListItemDemo1() {
|
|
28
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YGroup, { alignSelf: "center", bordered: !0, width: 240, size: "$4", children: [
|
|
29
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { hoverTheme: !0, icon: import_lucide_icons.Star, title: "Star", subTitle: "Twinkles" }) }),
|
|
30
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { hoverTheme: !0, icon: import_lucide_icons.Moon, children: "Moon" }) }),
|
|
31
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { hoverTheme: !0, icon: import_lucide_icons.Sun, children: "Sun" }) }),
|
|
32
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ListItem, { hoverTheme: !0, icon: import_lucide_icons.Cloud, children: "Cloud" }) })
|
|
33
|
-
] });
|
|
34
|
-
}
|
|
35
|
-
function ListItemDemo2() {
|
|
36
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YGroup, { alignSelf: "center", bordered: !0, width: 240, size: "$5", separator: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {}), children: [
|
|
37
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
38
|
-
import_tamagui.ListItem,
|
|
39
|
-
{
|
|
40
|
-
hoverTheme: !0,
|
|
41
|
-
pressTheme: !0,
|
|
42
|
-
title: "Star",
|
|
43
|
-
subTitle: "Subtitle",
|
|
44
|
-
icon: import_lucide_icons.Star,
|
|
45
|
-
iconAfter: import_lucide_icons.ChevronRight
|
|
46
|
-
}
|
|
47
|
-
) }),
|
|
48
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
49
|
-
import_tamagui.ListItem,
|
|
50
|
-
{
|
|
51
|
-
hoverTheme: !0,
|
|
52
|
-
pressTheme: !0,
|
|
53
|
-
title: "Moon",
|
|
54
|
-
subTitle: "Subtitle",
|
|
55
|
-
icon: import_lucide_icons.Moon,
|
|
56
|
-
iconAfter: import_lucide_icons.ChevronRight
|
|
57
|
-
}
|
|
58
|
-
) })
|
|
59
|
-
] });
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=ListItemDemo.js.map
|