@tamagui/demos 1.116.1 → 1.116.3

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.
Files changed (121) hide show
  1. package/dist/cjs/AccordionDemo.js +43 -0
  2. package/dist/cjs/AddThemeDemo.js +56 -0
  3. package/dist/cjs/AlertDialogDemo.js +68 -0
  4. package/dist/cjs/AnimationsDemo.js +99 -0
  5. package/dist/cjs/AnimationsEnterDemo.js +55 -0
  6. package/dist/cjs/AnimationsHoverDemo.js +41 -0
  7. package/dist/cjs/AnimationsPresenceDemo.js +102 -0
  8. package/dist/cjs/AnimationsTimingDemo.js +40 -0
  9. package/dist/cjs/AvatarDemo.js +45 -0
  10. package/dist/cjs/BuildAButtonDemo.js +57 -0
  11. package/dist/cjs/ButtonDemo.js +39 -0
  12. package/dist/cjs/CardDemo.js +63 -0
  13. package/dist/cjs/CheckboxDemo.js +40 -0
  14. package/dist/cjs/CheckboxHeadlessDemo.js +62 -0
  15. package/dist/cjs/CheckboxUnstyledDemo.js +52 -0
  16. package/dist/cjs/ColorsDemo.js +95 -0
  17. package/dist/cjs/DialogDemo.js +99 -0
  18. package/dist/cjs/FormsDemo.js +57 -0
  19. package/dist/cjs/Grid.js +58 -0
  20. package/dist/cjs/GroupDemo.js +39 -0
  21. package/dist/cjs/HeadingsDemo.js +31 -0
  22. package/dist/cjs/ImageDemo.js +33 -0
  23. package/dist/cjs/InputsDemo.js +46 -0
  24. package/dist/cjs/LabelDemo.js +33 -0
  25. package/dist/cjs/LinearGradientDemo.js +47 -0
  26. package/dist/cjs/ListItemDemo.js +61 -0
  27. package/dist/cjs/LucideIconsDemo.js +72 -0
  28. package/dist/cjs/NewInputsDemo.js +46 -0
  29. package/dist/cjs/PopoverDemo.js +126 -0
  30. package/dist/cjs/ProgressDemo.js +88 -0
  31. package/dist/cjs/RadioGroupDemo.js +36 -0
  32. package/dist/cjs/RadioGroupHeadlessDemo.js +117 -0
  33. package/dist/cjs/RadioGroupUnstyledDemo.js +107 -0
  34. package/dist/cjs/ReplaceThemeDemo.js +58 -0
  35. package/dist/cjs/ScrollViewDemo.js +43 -0
  36. package/dist/cjs/SelectDemo.js +190 -0
  37. package/dist/cjs/SeparatorDemo.js +35 -0
  38. package/dist/cjs/ShapesDemo.js +27 -0
  39. package/dist/cjs/SheetDemo.js +120 -0
  40. package/dist/cjs/SliderDemo.js +34 -0
  41. package/dist/cjs/SpinnerDemo.js +27 -0
  42. package/dist/cjs/StacksDemo.js +93 -0
  43. package/dist/cjs/SwitchDemo.js +56 -0
  44. package/dist/cjs/SwitchHeadlessDemo.js +87 -0
  45. package/dist/cjs/SwitchUnstyledDemo.js +64 -0
  46. package/dist/cjs/TabsAdvancedDemo.js +283 -0
  47. package/dist/cjs/TabsDemo.js +144 -0
  48. package/dist/cjs/TextDemo.js +31 -0
  49. package/dist/cjs/ThemeBuilderDemo.js +149 -0
  50. package/dist/cjs/ThemeInverseDemo.js +56 -0
  51. package/dist/cjs/ToastDemo.js +112 -0
  52. package/dist/cjs/ToastDuplicateDemo.js +64 -0
  53. package/dist/cjs/ToggleGroupDemo.js +63 -0
  54. package/dist/cjs/TokensDemo.js +100 -0
  55. package/dist/cjs/TooltipDemo.js +68 -0
  56. package/dist/cjs/UpdateThemeDemo.js +61 -0
  57. package/dist/cjs/WebNativeImageDemo.js +24 -0
  58. package/dist/cjs/index.js +71 -0
  59. package/dist/cjs/tamagui.config.js +22 -0
  60. package/dist/cjs/useOnIntersecting.js +63 -0
  61. package/package.json +19 -19
  62. /package/dist/cjs/{AccordionDemo.cjs.map → AccordionDemo.js.map} +0 -0
  63. /package/dist/cjs/{AddThemeDemo.cjs.map → AddThemeDemo.js.map} +0 -0
  64. /package/dist/cjs/{AlertDialogDemo.cjs.map → AlertDialogDemo.js.map} +0 -0
  65. /package/dist/cjs/{AnimationsDemo.cjs.map → AnimationsDemo.js.map} +0 -0
  66. /package/dist/cjs/{AnimationsEnterDemo.cjs.map → AnimationsEnterDemo.js.map} +0 -0
  67. /package/dist/cjs/{AnimationsHoverDemo.cjs.map → AnimationsHoverDemo.js.map} +0 -0
  68. /package/dist/cjs/{AnimationsPresenceDemo.cjs.map → AnimationsPresenceDemo.js.map} +0 -0
  69. /package/dist/cjs/{AnimationsTimingDemo.cjs.map → AnimationsTimingDemo.js.map} +0 -0
  70. /package/dist/cjs/{AvatarDemo.cjs.map → AvatarDemo.js.map} +0 -0
  71. /package/dist/cjs/{BuildAButtonDemo.cjs.map → BuildAButtonDemo.js.map} +0 -0
  72. /package/dist/cjs/{ButtonDemo.cjs.map → ButtonDemo.js.map} +0 -0
  73. /package/dist/cjs/{CardDemo.cjs.map → CardDemo.js.map} +0 -0
  74. /package/dist/cjs/{CheckboxDemo.cjs.map → CheckboxDemo.js.map} +0 -0
  75. /package/dist/cjs/{CheckboxHeadlessDemo.cjs.map → CheckboxHeadlessDemo.js.map} +0 -0
  76. /package/dist/cjs/{CheckboxUnstyledDemo.cjs.map → CheckboxUnstyledDemo.js.map} +0 -0
  77. /package/dist/cjs/{ColorsDemo.cjs.map → ColorsDemo.js.map} +0 -0
  78. /package/dist/cjs/{DialogDemo.cjs.map → DialogDemo.js.map} +0 -0
  79. /package/dist/cjs/{FormsDemo.cjs.map → FormsDemo.js.map} +0 -0
  80. /package/dist/cjs/{Grid.cjs.map → Grid.js.map} +0 -0
  81. /package/dist/cjs/{GroupDemo.cjs.map → GroupDemo.js.map} +0 -0
  82. /package/dist/cjs/{HeadingsDemo.cjs.map → HeadingsDemo.js.map} +0 -0
  83. /package/dist/cjs/{ImageDemo.cjs.map → ImageDemo.js.map} +0 -0
  84. /package/dist/cjs/{InputsDemo.cjs.map → InputsDemo.js.map} +0 -0
  85. /package/dist/cjs/{LabelDemo.cjs.map → LabelDemo.js.map} +0 -0
  86. /package/dist/cjs/{LinearGradientDemo.cjs.map → LinearGradientDemo.js.map} +0 -0
  87. /package/dist/cjs/{ListItemDemo.cjs.map → ListItemDemo.js.map} +0 -0
  88. /package/dist/cjs/{LucideIconsDemo.cjs.map → LucideIconsDemo.js.map} +0 -0
  89. /package/dist/cjs/{NewInputsDemo.cjs.map → NewInputsDemo.js.map} +0 -0
  90. /package/dist/cjs/{PopoverDemo.cjs.map → PopoverDemo.js.map} +0 -0
  91. /package/dist/cjs/{ProgressDemo.cjs.map → ProgressDemo.js.map} +0 -0
  92. /package/dist/cjs/{RadioGroupDemo.cjs.map → RadioGroupDemo.js.map} +0 -0
  93. /package/dist/cjs/{RadioGroupHeadlessDemo.cjs.map → RadioGroupHeadlessDemo.js.map} +0 -0
  94. /package/dist/cjs/{RadioGroupUnstyledDemo.cjs.map → RadioGroupUnstyledDemo.js.map} +0 -0
  95. /package/dist/cjs/{ReplaceThemeDemo.cjs.map → ReplaceThemeDemo.js.map} +0 -0
  96. /package/dist/cjs/{ScrollViewDemo.cjs.map → ScrollViewDemo.js.map} +0 -0
  97. /package/dist/cjs/{SelectDemo.cjs.map → SelectDemo.js.map} +0 -0
  98. /package/dist/cjs/{SeparatorDemo.cjs.map → SeparatorDemo.js.map} +0 -0
  99. /package/dist/cjs/{ShapesDemo.cjs.map → ShapesDemo.js.map} +0 -0
  100. /package/dist/cjs/{SheetDemo.cjs.map → SheetDemo.js.map} +0 -0
  101. /package/dist/cjs/{SliderDemo.cjs.map → SliderDemo.js.map} +0 -0
  102. /package/dist/cjs/{SpinnerDemo.cjs.map → SpinnerDemo.js.map} +0 -0
  103. /package/dist/cjs/{StacksDemo.cjs.map → StacksDemo.js.map} +0 -0
  104. /package/dist/cjs/{SwitchDemo.cjs.map → SwitchDemo.js.map} +0 -0
  105. /package/dist/cjs/{SwitchHeadlessDemo.cjs.map → SwitchHeadlessDemo.js.map} +0 -0
  106. /package/dist/cjs/{SwitchUnstyledDemo.cjs.map → SwitchUnstyledDemo.js.map} +0 -0
  107. /package/dist/cjs/{TabsAdvancedDemo.cjs.map → TabsAdvancedDemo.js.map} +0 -0
  108. /package/dist/cjs/{TabsDemo.cjs.map → TabsDemo.js.map} +0 -0
  109. /package/dist/cjs/{TextDemo.cjs.map → TextDemo.js.map} +0 -0
  110. /package/dist/cjs/{ThemeBuilderDemo.cjs.map → ThemeBuilderDemo.js.map} +0 -0
  111. /package/dist/cjs/{ThemeInverseDemo.cjs.map → ThemeInverseDemo.js.map} +0 -0
  112. /package/dist/cjs/{ToastDemo.cjs.map → ToastDemo.js.map} +0 -0
  113. /package/dist/cjs/{ToastDuplicateDemo.cjs.map → ToastDuplicateDemo.js.map} +0 -0
  114. /package/dist/cjs/{ToggleGroupDemo.cjs.map → ToggleGroupDemo.js.map} +0 -0
  115. /package/dist/cjs/{TokensDemo.cjs.map → TokensDemo.js.map} +0 -0
  116. /package/dist/cjs/{TooltipDemo.cjs.map → TooltipDemo.js.map} +0 -0
  117. /package/dist/cjs/{UpdateThemeDemo.cjs.map → UpdateThemeDemo.js.map} +0 -0
  118. /package/dist/cjs/{WebNativeImageDemo.cjs.map → WebNativeImageDemo.js.map} +0 -0
  119. /package/dist/cjs/{index.cjs.map → index.js.map} +0 -0
  120. /package/dist/cjs/{tamagui.config.cjs.map → tamagui.config.js.map} +0 -0
  121. /package/dist/cjs/{useOnIntersecting.cjs.map → useOnIntersecting.js.map} +0 -0
@@ -0,0 +1,283 @@
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 TabsAdvancedDemo_exports = {};
24
+ __export(TabsAdvancedDemo_exports, {
25
+ TabsAdvancedDemo: () => TabsAdvancedDemo
26
+ });
27
+ module.exports = __toCommonJS(TabsAdvancedDemo_exports);
28
+ var import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
29
+ const demos = ["background", "underline"], demosTitle = {
30
+ background: "Background Indicator",
31
+ underline: "Underline Indicator"
32
+ }, TabsAdvancedDemo = () => {
33
+ const [demoIndex, setDemoIndex] = import_react.default.useState(0), demo = demos[demoIndex];
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
35
+ demo === "underline" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsAdvancedUnderline, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsAdvancedBackground, {}),
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
37
+ import_tamagui.XStack,
38
+ {
39
+ alignItems: "center",
40
+ gap: "$4",
41
+ position: "absolute",
42
+ bottom: "$3",
43
+ left: "$4",
44
+ $xxs: { display: "none" },
45
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { size: "$2", onPress: () => setDemoIndex((x) => (x + 1) % demos.length), children: demosTitle[demo] })
46
+ }
47
+ )
48
+ ] });
49
+ }, TabsAdvancedBackground = () => {
50
+ const [tabState, setTabState] = import_react.default.useState({
51
+ activeAt: null,
52
+ currentTab: "tab1",
53
+ intentAt: null,
54
+ prevActiveAt: null
55
+ }), setCurrentTab = (currentTab2) => setTabState({ ...tabState, currentTab: currentTab2 }), setIntentIndicator = (intentAt2) => setTabState({ ...tabState, intentAt: intentAt2 }), setActiveIndicator = (activeAt2) => setTabState({ ...tabState, prevActiveAt: tabState.activeAt, activeAt: activeAt2 }), { activeAt, intentAt, prevActiveAt, currentTab } = tabState, direction = !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1, handleOnInteraction = (type, layout) => {
56
+ type === "select" ? setActiveIndicator(layout) : setIntentIndicator(layout);
57
+ };
58
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
59
+ import_tamagui.Tabs,
60
+ {
61
+ value: currentTab,
62
+ onValueChange: setCurrentTab,
63
+ orientation: "horizontal",
64
+ size: "$4",
65
+ padding: "$2",
66
+ height: 150,
67
+ flexDirection: "column",
68
+ activationMode: "manual",
69
+ backgroundColor: "$background",
70
+ borderRadius: "$4",
71
+ position: "relative",
72
+ children: [
73
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { children: [
74
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { children: intentAt && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
75
+ TabsRovingIndicator,
76
+ {
77
+ borderRadius: "$4",
78
+ width: intentAt.width,
79
+ height: intentAt.height,
80
+ x: intentAt.x,
81
+ y: intentAt.y
82
+ }
83
+ ) }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { children: activeAt && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ TabsRovingIndicator,
86
+ {
87
+ borderRadius: "$4",
88
+ theme: "active",
89
+ width: activeAt.width,
90
+ height: activeAt.height,
91
+ x: activeAt.x,
92
+ y: activeAt.y
93
+ }
94
+ ) }),
95
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
96
+ import_tamagui.Tabs.List,
97
+ {
98
+ disablePassBorderRadius: !0,
99
+ loop: !1,
100
+ "aria-label": "Manage your account",
101
+ gap: "$2",
102
+ backgroundColor: "transparent",
103
+ children: [
104
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
105
+ import_tamagui.Tabs.Tab,
106
+ {
107
+ unstyled: !0,
108
+ paddingVertical: "$2",
109
+ paddingHorizontal: "$3",
110
+ value: "tab1",
111
+ onInteraction: handleOnInteraction,
112
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Profile" })
113
+ }
114
+ ),
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
116
+ import_tamagui.Tabs.Tab,
117
+ {
118
+ unstyled: !0,
119
+ paddingVertical: "$2",
120
+ paddingHorizontal: "$3",
121
+ value: "tab2",
122
+ onInteraction: handleOnInteraction,
123
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Connections" })
124
+ }
125
+ ),
126
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
127
+ import_tamagui.Tabs.Tab,
128
+ {
129
+ unstyled: !0,
130
+ paddingVertical: "$2",
131
+ paddingHorizontal: "$3",
132
+ value: "tab3",
133
+ onInteraction: handleOnInteraction,
134
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Notifications" })
135
+ }
136
+ )
137
+ ]
138
+ }
139
+ )
140
+ ] }),
141
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { exitBeforeEnter: !0, custom: { direction }, initial: !1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnimatedYStack, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Content, { value: currentTab, forceMount: !0, flex: 1, justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { textAlign: "center", children: currentTab }) }) }, currentTab) })
142
+ ]
143
+ }
144
+ );
145
+ }, TabsAdvancedUnderline = () => {
146
+ const [tabState, setTabState] = import_react.default.useState({
147
+ activeAt: null,
148
+ currentTab: "tab1",
149
+ intentAt: null,
150
+ prevActiveAt: null
151
+ }), setCurrentTab = (currentTab2) => setTabState({ ...tabState, currentTab: currentTab2 }), setIntentIndicator = (intentAt2) => setTabState({ ...tabState, intentAt: intentAt2 }), setActiveIndicator = (activeAt2) => setTabState({ ...tabState, prevActiveAt: tabState.activeAt, activeAt: activeAt2 }), { activeAt, intentAt, prevActiveAt, currentTab } = tabState, direction = !activeAt || !prevActiveAt || activeAt.x === prevActiveAt.x ? 0 : activeAt.x > prevActiveAt.x ? -1 : 1, handleOnInteraction = (type, layout) => {
152
+ type === "select" ? setActiveIndicator(layout) : setIntentIndicator(layout);
153
+ };
154
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
155
+ import_tamagui.Tabs,
156
+ {
157
+ value: currentTab,
158
+ onValueChange: setCurrentTab,
159
+ orientation: "horizontal",
160
+ size: "$4",
161
+ height: 150,
162
+ flexDirection: "column",
163
+ activationMode: "manual",
164
+ backgroundColor: "$background",
165
+ borderRadius: "$4",
166
+ children: [
167
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { children: [
168
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { children: intentAt && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
169
+ TabsRovingIndicator,
170
+ {
171
+ width: intentAt.width,
172
+ height: "$0.5",
173
+ x: intentAt.x,
174
+ bottom: 0
175
+ }
176
+ ) }),
177
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { children: activeAt && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
178
+ TabsRovingIndicator,
179
+ {
180
+ theme: "active",
181
+ active: !0,
182
+ width: activeAt.width,
183
+ height: "$0.5",
184
+ x: activeAt.x,
185
+ bottom: 0
186
+ }
187
+ ) }),
188
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
189
+ import_tamagui.Tabs.List,
190
+ {
191
+ disablePassBorderRadius: !0,
192
+ loop: !1,
193
+ "aria-label": "Manage your account",
194
+ borderBottomLeftRadius: 0,
195
+ borderBottomRightRadius: 0,
196
+ paddingBottom: "$1.5",
197
+ borderColor: "$color3",
198
+ borderBottomWidth: "$0.5",
199
+ backgroundColor: "transparent",
200
+ children: [
201
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
202
+ import_tamagui.Tabs.Tab,
203
+ {
204
+ unstyled: !0,
205
+ paddingHorizontal: "$3",
206
+ paddingVertical: "$2",
207
+ value: "tab1",
208
+ onInteraction: handleOnInteraction,
209
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Profile" })
210
+ }
211
+ ),
212
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
213
+ import_tamagui.Tabs.Tab,
214
+ {
215
+ unstyled: !0,
216
+ paddingHorizontal: "$3",
217
+ paddingVertical: "$2",
218
+ value: "tab2",
219
+ onInteraction: handleOnInteraction,
220
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Connections" })
221
+ }
222
+ ),
223
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
224
+ import_tamagui.Tabs.Tab,
225
+ {
226
+ unstyled: !0,
227
+ paddingHorizontal: "$3",
228
+ paddingVertical: "$2",
229
+ value: "tab3",
230
+ onInteraction: handleOnInteraction,
231
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Notifications" })
232
+ }
233
+ )
234
+ ]
235
+ }
236
+ )
237
+ ] }),
238
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.AnimatePresence, { exitBeforeEnter: !0, custom: { direction }, initial: !1, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AnimatedYStack, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Content, { value: currentTab, forceMount: !0, flex: 1, justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { textAlign: "center", children: currentTab }) }) }, currentTab) })
239
+ ]
240
+ }
241
+ );
242
+ }, TabsRovingIndicator = ({ active, ...props }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
243
+ import_tamagui.YStack,
244
+ {
245
+ position: "absolute",
246
+ backgroundColor: "$color5",
247
+ opacity: 0.7,
248
+ animation: "100ms",
249
+ enterStyle: {
250
+ opacity: 0
251
+ },
252
+ exitStyle: {
253
+ opacity: 0
254
+ },
255
+ ...active && {
256
+ backgroundColor: "$color8",
257
+ opacity: 0.6
258
+ },
259
+ ...props
260
+ }
261
+ ), AnimatedYStack = (0, import_tamagui.styled)(import_tamagui.YStack, {
262
+ flex: 1,
263
+ x: 0,
264
+ opacity: 1,
265
+ animation: "100ms",
266
+ variants: {
267
+ // 1 = right, 0 = nowhere, -1 = left
268
+ direction: {
269
+ ":number": (direction) => ({
270
+ enterStyle: {
271
+ x: direction > 0 ? -25 : 25,
272
+ opacity: 0
273
+ },
274
+ exitStyle: {
275
+ zIndex: 0,
276
+ x: direction < 0 ? -25 : 25,
277
+ opacity: 0
278
+ }
279
+ })
280
+ }
281
+ }
282
+ });
283
+ //# sourceMappingURL=TabsAdvancedDemo.js.map
@@ -0,0 +1,144 @@
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 TabsDemo_exports = {};
24
+ __export(TabsDemo_exports, {
25
+ TabsDemo: () => TabsDemo
26
+ });
27
+ module.exports = __toCommonJS(TabsDemo_exports);
28
+ var import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_jsx_runtime = (
29
+ // web only fix for position relative
30
+ require("react/jsx-runtime")
31
+ );
32
+ const demos = ["horizontal", "vertical"], demosTitle = {
33
+ horizontal: "Horizontal",
34
+ vertical: "Vertical"
35
+ };
36
+ function TabsDemo() {
37
+ const [demoIndex, setDemoIndex] = import_react.default.useState(0), demo = demos[demoIndex];
38
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
39
+ import_tamagui.YStack,
40
+ {
41
+ paddingHorizontal: "$4",
42
+ ...import_tamagui.isWeb && {
43
+ position: "unset"
44
+ },
45
+ children: [
46
+ demo === "horizontal" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HorizontalTabs, {}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(VerticalTabs, {}),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
48
+ import_tamagui.XStack,
49
+ {
50
+ alignItems: "center",
51
+ space: !0,
52
+ position: "absolute",
53
+ bottom: "$3",
54
+ left: "$4",
55
+ $xxs: { display: "none" },
56
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { size: "$2", onPress: () => setDemoIndex((x) => (x + 1) % demos.length), children: demosTitle[demo] })
57
+ }
58
+ )
59
+ ]
60
+ }
61
+ );
62
+ }
63
+ const HorizontalTabs = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
64
+ import_tamagui.Tabs,
65
+ {
66
+ defaultValue: "tab1",
67
+ orientation: "horizontal",
68
+ flexDirection: "column",
69
+ width: 400,
70
+ height: 150,
71
+ borderRadius: "$4",
72
+ borderWidth: "$0.25",
73
+ overflow: "hidden",
74
+ borderColor: "$borderColor",
75
+ children: [
76
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
77
+ import_tamagui.Tabs.List,
78
+ {
79
+ separator: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, { vertical: !0 }),
80
+ disablePassBorderRadius: "bottom",
81
+ "aria-label": "Manage your account",
82
+ children: [
83
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Tab, { flex: 1, value: "tab1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { fontFamily: "$body", children: "Profile" }) }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Tab, { flex: 1, value: "tab2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { fontFamily: "$body", children: "Connections" }) }),
85
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Tab, { flex: 1, value: "tab3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { fontFamily: "$body", children: "Notifications" }) })
86
+ ]
87
+ }
88
+ ),
89
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {}),
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsContent, { value: "tab1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { children: "Profile" }) }),
91
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsContent, { value: "tab2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { children: "Connections" }) }),
92
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsContent, { value: "tab3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { children: "Notifications" }) })
93
+ ]
94
+ }
95
+ ), VerticalTabs = () => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
96
+ import_tamagui.Tabs,
97
+ {
98
+ defaultValue: "tab1",
99
+ flexDirection: "row",
100
+ orientation: "vertical",
101
+ width: 400,
102
+ borderRadius: "$4",
103
+ borderWidth: "$0.25",
104
+ overflow: "hidden",
105
+ borderColor: "$borderColor",
106
+ children: [
107
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
108
+ import_tamagui.Tabs.List,
109
+ {
110
+ disablePassBorderRadius: "end",
111
+ "aria-label": "Manage your account",
112
+ separator: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {}),
113
+ children: [
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Tab, { value: "tab1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Profile" }) }),
115
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Tab, { value: "tab2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Connections" }) }),
116
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tabs.Tab, { value: "tab3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { children: "Notifications" }) })
117
+ ]
118
+ }
119
+ ),
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, { vertical: !0 }),
121
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsContent, { value: "tab1", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { textAlign: "center", children: "Profile" }) }),
122
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsContent, { value: "tab2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { textAlign: "center", children: "Connections" }) }),
123
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TabsContent, { value: "tab3", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { textAlign: "center", children: "Notifications" }) })
124
+ ]
125
+ }
126
+ ), TabsContent = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
127
+ import_tamagui.Tabs.Content,
128
+ {
129
+ backgroundColor: "$background",
130
+ padding: "$2",
131
+ alignItems: "center",
132
+ justifyContent: "center",
133
+ flex: 1,
134
+ borderColor: "$background",
135
+ borderRadius: "$2",
136
+ borderTopLeftRadius: 0,
137
+ borderTopRightRadius: 0,
138
+ borderWidth: "$2",
139
+ ...props,
140
+ children: props.children
141
+ },
142
+ "tab3"
143
+ );
144
+ //# sourceMappingURL=TabsDemo.js.map
@@ -0,0 +1,31 @@
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 TextDemo_exports = {};
16
+ __export(TextDemo_exports, {
17
+ TextDemo: () => TextDemo
18
+ });
19
+ module.exports = __toCommonJS(TextDemo_exports);
20
+ var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
21
+ function TextDemo() {
22
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { gap: "$2", alignItems: "center", children: [
23
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { size: "$3", children: "SizableText" }),
24
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { space: !0, children: [
25
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { theme: "alt1", size: "$3", children: "alt1" }),
26
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.SizableText, { theme: "alt2", size: "$3", children: "alt2" })
27
+ ] }),
28
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, { size: "$2", fontWeight: "800", children: "Paragraph" })
29
+ ] });
30
+ }
31
+ //# sourceMappingURL=TextDemo.js.map
@@ -0,0 +1,149 @@
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 ThemeBuilderDemo_exports = {};
16
+ __export(ThemeBuilderDemo_exports, {
17
+ ThemeBuilderDemo: () => ThemeBuilderDemo
18
+ });
19
+ module.exports = __toCommonJS(ThemeBuilderDemo_exports);
20
+ var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
21
+ function ThemeBuilderDemo() {
22
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { fullscreen: !0, ov: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { mah: 200, y: -100, x: -50, rotate: "-10deg", children: [
23
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { y: 35, bg: "$color9" }),
24
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$8", y: 30, bg: "$color7" }),
25
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$6", y: -50, bg: "$color5" }),
26
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$4", bg: "$color3" }),
27
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$2", bg: "$color1" }),
28
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$4", y: 50, bg: "$color3" }),
29
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$6", y: 80, bg: "$color5" }),
30
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$8", bg: "$color7" }),
31
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { bg: "$color9" }),
32
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$8", bg: "$color7" }),
33
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$6", y: 80, bg: "$color5" }),
34
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$4", y: 50, bg: "$color3" }),
35
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$2", bg: "$color1" }),
36
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$4", bg: "$color3" }),
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$6", y: -50, bg: "$color5" }),
38
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { size: "$8", y: 30, bg: "$color7" }),
39
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Col, { y: 35, bg: "$color9" })
40
+ ] }) });
41
+ }
42
+ function Col(props) {
43
+ const subTheme = props.subTheme ? `_${props.subTheme}` : "";
44
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { padding: "$2.5", space: "$3.5", children: [
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, { br: "$6", size: "$10", theme: props.subTheme, bg: "$background", ...props }),
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
47
+ import_tamagui.Square,
48
+ {
49
+ br: "$6",
50
+ size: "$10",
51
+ theme: "orange" + subTheme,
52
+ bg: "$background",
53
+ ...props
54
+ }
55
+ ),
56
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
57
+ import_tamagui.Square,
58
+ {
59
+ br: "$6",
60
+ size: "$10",
61
+ theme: "yellow" + subTheme,
62
+ bg: "$background",
63
+ ...props
64
+ }
65
+ ),
66
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ import_tamagui.Square,
68
+ {
69
+ br: "$6",
70
+ size: "$10",
71
+ theme: "green" + subTheme,
72
+ bg: "$background",
73
+ ...props
74
+ }
75
+ ),
76
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
+ import_tamagui.Square,
78
+ {
79
+ br: "$6",
80
+ size: "$10",
81
+ theme: "blue" + subTheme,
82
+ bg: "$background",
83
+ ...props
84
+ }
85
+ ),
86
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
+ import_tamagui.Square,
88
+ {
89
+ br: "$6",
90
+ size: "$10",
91
+ theme: "purple" + subTheme,
92
+ bg: "$background",
93
+ ...props
94
+ }
95
+ ),
96
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
97
+ import_tamagui.Square,
98
+ {
99
+ br: "$6",
100
+ size: "$10",
101
+ theme: "pink" + subTheme,
102
+ bg: "$background",
103
+ ...props
104
+ }
105
+ ),
106
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
+ import_tamagui.Square,
108
+ {
109
+ br: "$6",
110
+ size: "$10",
111
+ theme: "red" + subTheme,
112
+ bg: "$background",
113
+ ...props
114
+ }
115
+ ),
116
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Square, { br: "$6", size: "$10", theme: props.subTheme, bg: "$background", ...props }),
117
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
118
+ import_tamagui.Square,
119
+ {
120
+ br: "$6",
121
+ size: "$10",
122
+ theme: "orange" + subTheme,
123
+ bg: "$background",
124
+ ...props
125
+ }
126
+ ),
127
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
128
+ import_tamagui.Square,
129
+ {
130
+ br: "$6",
131
+ size: "$10",
132
+ theme: "yellow" + subTheme,
133
+ bg: "$background",
134
+ ...props
135
+ }
136
+ ),
137
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
138
+ import_tamagui.Square,
139
+ {
140
+ br: "$6",
141
+ size: "$10",
142
+ theme: "green" + subTheme,
143
+ bg: "$background",
144
+ ...props
145
+ }
146
+ )
147
+ ] });
148
+ }
149
+ //# sourceMappingURL=ThemeBuilderDemo.js.map
@@ -0,0 +1,56 @@
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 ThemeInverseDemo_exports = {};
16
+ __export(ThemeInverseDemo_exports, {
17
+ ThemeInverseDemo: () => ThemeInverseDemo
18
+ });
19
+ module.exports = __toCommonJS(ThemeInverseDemo_exports);
20
+ var import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
21
+ function ThemeInverseDemo() {
22
+ const themeName = (0, import_tamagui.useThemeName)(), opposite = themeName.includes("dark") ? "light" : "dark";
23
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { space: !0, children: [
24
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Buttons, { title: "Normal", name: themeName }),
25
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { inverse: !0, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
26
+ Buttons,
27
+ {
28
+ title: "Inversed",
29
+ name: themeName.replace(themeName.split("_")[0], opposite)
30
+ }
31
+ ) })
32
+ ] });
33
+ }
34
+ function Buttons(props) {
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
36
+ import_tamagui.YStack,
37
+ {
38
+ elevation: "$4",
39
+ backgroundColor: "$background",
40
+ padding: "$4",
41
+ borderRadius: "$4",
42
+ space: "$3",
43
+ children: [
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H5, { children: props.title }),
45
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { children: props.name }),
46
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { themeInverse: !0, children: "inversed" }),
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Button, { theme: "alt1", children: [
48
+ props.name,
49
+ "_alt1"
50
+ ] }),
51
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Theme, { name: "yellow", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { children: props.name.split("_")[0] + "_yellow" }) })
52
+ ]
53
+ }
54
+ );
55
+ }
56
+ //# sourceMappingURL=ThemeInverseDemo.js.map