@tamagui/demos 1.114.4 → 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.
Files changed (180) hide show
  1. package/dist/cjs/AccordionDemo.cjs +96 -0
  2. package/dist/cjs/AddThemeDemo.cjs +70 -0
  3. package/dist/cjs/AlertDialogDemo.cjs +96 -0
  4. package/dist/cjs/AnimationsDemo.cjs +100 -0
  5. package/dist/cjs/AnimationsEnterDemo.cjs +74 -0
  6. package/dist/cjs/AnimationsHoverDemo.cjs +47 -0
  7. package/dist/cjs/AnimationsPresenceDemo.cjs +124 -0
  8. package/dist/cjs/AnimationsTimingDemo.cjs +46 -0
  9. package/dist/cjs/AvatarDemo.cjs +53 -0
  10. package/dist/cjs/BuildAButtonDemo.cjs +125 -0
  11. package/dist/cjs/ButtonDemo.cjs +83 -0
  12. package/dist/cjs/{CardDemo.js → CardDemo.cjs} +67 -41
  13. package/dist/cjs/CheckboxDemo.cjs +70 -0
  14. package/dist/cjs/CheckboxHeadlessDemo.cjs +87 -0
  15. package/dist/cjs/CheckboxUnstyledDemo.cjs +78 -0
  16. package/dist/cjs/ColorsDemo.cjs +121 -0
  17. package/dist/cjs/DialogDemo.cjs +155 -0
  18. package/dist/cjs/FormsDemo.cjs +70 -0
  19. package/dist/cjs/Grid.cjs +71 -0
  20. package/dist/cjs/GroupDemo.cjs +85 -0
  21. package/dist/cjs/HeadingsDemo.cjs +45 -0
  22. package/dist/cjs/ImageDemo.cjs +36 -0
  23. package/dist/cjs/InputsDemo.cjs +60 -0
  24. package/dist/cjs/LabelDemo.cjs +60 -0
  25. package/dist/cjs/LinearGradientDemo.cjs +48 -0
  26. package/dist/cjs/ListItemDemo.cjs +100 -0
  27. package/dist/cjs/LucideIconsDemo.cjs +93 -0
  28. package/dist/cjs/NewInputsDemo.cjs +60 -0
  29. package/dist/cjs/PopoverDemo.cjs +145 -0
  30. package/dist/cjs/ProgressDemo.cjs +106 -0
  31. package/dist/cjs/RadioGroupDemo.cjs +71 -0
  32. package/dist/cjs/RadioGroupHeadlessDemo.cjs +168 -0
  33. package/dist/cjs/RadioGroupUnstyledDemo.cjs +142 -0
  34. package/dist/cjs/ReplaceThemeDemo.cjs +78 -0
  35. package/dist/cjs/ScrollViewDemo.cjs +74 -0
  36. package/dist/cjs/SelectDemo.cjs +228 -0
  37. package/dist/cjs/SeparatorDemo.cjs +60 -0
  38. package/dist/cjs/ShapesDemo.cjs +42 -0
  39. package/dist/cjs/SheetDemo.cjs +176 -0
  40. package/dist/cjs/SliderDemo.cjs +58 -0
  41. package/dist/cjs/SpinnerDemo.cjs +41 -0
  42. package/dist/cjs/StacksDemo.cjs +104 -0
  43. package/dist/cjs/SwitchDemo.cjs +95 -0
  44. package/dist/cjs/SwitchHeadlessDemo.cjs +101 -0
  45. package/dist/cjs/SwitchUnstyledDemo.cjs +89 -0
  46. package/dist/cjs/TabsAdvancedDemo.cjs +340 -0
  47. package/dist/cjs/TabsDemo.cjs +191 -0
  48. package/dist/cjs/TextDemo.cjs +52 -0
  49. package/dist/cjs/ThemeBuilderDemo.cjs +178 -0
  50. package/dist/cjs/ThemeInverseDemo.cjs +69 -0
  51. package/dist/cjs/ToastDemo.cjs +133 -0
  52. package/dist/cjs/ToastDuplicateDemo.cjs +83 -0
  53. package/dist/cjs/ToggleGroupDemo.cjs +97 -0
  54. package/dist/cjs/TokensDemo.cjs +125 -0
  55. package/dist/cjs/TooltipDemo.cjs +125 -0
  56. package/dist/cjs/UpdateThemeDemo.cjs +81 -0
  57. package/dist/cjs/WebNativeImageDemo.cjs +34 -0
  58. package/dist/cjs/index.cjs +74 -0
  59. package/dist/cjs/tamagui.config.cjs +29 -0
  60. package/dist/cjs/useOnIntersecting.cjs +66 -0
  61. package/package.json +22 -21
  62. package/dist/cjs/AccordionDemo.js +0 -43
  63. package/dist/cjs/AddThemeDemo.js +0 -56
  64. package/dist/cjs/AlertDialogDemo.js +0 -68
  65. package/dist/cjs/AnimationsDemo.js +0 -99
  66. package/dist/cjs/AnimationsEnterDemo.js +0 -55
  67. package/dist/cjs/AnimationsHoverDemo.js +0 -41
  68. package/dist/cjs/AnimationsPresenceDemo.js +0 -102
  69. package/dist/cjs/AnimationsTimingDemo.js +0 -40
  70. package/dist/cjs/AvatarDemo.js +0 -45
  71. package/dist/cjs/BuildAButtonDemo.js +0 -57
  72. package/dist/cjs/ButtonDemo.js +0 -39
  73. package/dist/cjs/CheckboxDemo.js +0 -40
  74. package/dist/cjs/CheckboxHeadlessDemo.js +0 -62
  75. package/dist/cjs/CheckboxUnstyledDemo.js +0 -52
  76. package/dist/cjs/ColorsDemo.js +0 -95
  77. package/dist/cjs/DialogDemo.js +0 -99
  78. package/dist/cjs/FormsDemo.js +0 -57
  79. package/dist/cjs/Grid.js +0 -58
  80. package/dist/cjs/GroupDemo.js +0 -39
  81. package/dist/cjs/HeadingsDemo.js +0 -31
  82. package/dist/cjs/ImageDemo.js +0 -33
  83. package/dist/cjs/InputsDemo.js +0 -46
  84. package/dist/cjs/LabelDemo.js +0 -33
  85. package/dist/cjs/LinearGradientDemo.js +0 -47
  86. package/dist/cjs/ListItemDemo.js +0 -61
  87. package/dist/cjs/LucideIconsDemo.js +0 -72
  88. package/dist/cjs/NewInputsDemo.js +0 -46
  89. package/dist/cjs/PopoverDemo.js +0 -126
  90. package/dist/cjs/ProgressDemo.js +0 -88
  91. package/dist/cjs/RadioGroupDemo.js +0 -36
  92. package/dist/cjs/RadioGroupHeadlessDemo.js +0 -117
  93. package/dist/cjs/RadioGroupUnstyledDemo.js +0 -107
  94. package/dist/cjs/ReplaceThemeDemo.js +0 -58
  95. package/dist/cjs/ScrollViewDemo.js +0 -43
  96. package/dist/cjs/SelectDemo.js +0 -190
  97. package/dist/cjs/SeparatorDemo.js +0 -35
  98. package/dist/cjs/ShapesDemo.js +0 -27
  99. package/dist/cjs/SheetDemo.js +0 -120
  100. package/dist/cjs/SliderDemo.js +0 -34
  101. package/dist/cjs/SpinnerDemo.js +0 -27
  102. package/dist/cjs/StacksDemo.js +0 -93
  103. package/dist/cjs/SwitchDemo.js +0 -56
  104. package/dist/cjs/SwitchHeadlessDemo.js +0 -87
  105. package/dist/cjs/SwitchUnstyledDemo.js +0 -64
  106. package/dist/cjs/TabsAdvancedDemo.js +0 -283
  107. package/dist/cjs/TabsDemo.js +0 -144
  108. package/dist/cjs/TextDemo.js +0 -31
  109. package/dist/cjs/ThemeBuilderDemo.js +0 -149
  110. package/dist/cjs/ThemeInverseDemo.js +0 -56
  111. package/dist/cjs/ToastDemo.js +0 -112
  112. package/dist/cjs/ToastDuplicateDemo.js +0 -64
  113. package/dist/cjs/ToggleGroupDemo.js +0 -63
  114. package/dist/cjs/TokensDemo.js +0 -100
  115. package/dist/cjs/TooltipDemo.js +0 -68
  116. package/dist/cjs/UpdateThemeDemo.js +0 -61
  117. package/dist/cjs/WebNativeImageDemo.js +0 -24
  118. package/dist/cjs/index.js +0 -71
  119. package/dist/cjs/tamagui.config.js +0 -22
  120. package/dist/cjs/useOnIntersecting.js +0 -63
  121. /package/dist/cjs/{AccordionDemo.js.map → AccordionDemo.cjs.map} +0 -0
  122. /package/dist/cjs/{AddThemeDemo.js.map → AddThemeDemo.cjs.map} +0 -0
  123. /package/dist/cjs/{AlertDialogDemo.js.map → AlertDialogDemo.cjs.map} +0 -0
  124. /package/dist/cjs/{AnimationsDemo.js.map → AnimationsDemo.cjs.map} +0 -0
  125. /package/dist/cjs/{AnimationsEnterDemo.js.map → AnimationsEnterDemo.cjs.map} +0 -0
  126. /package/dist/cjs/{AnimationsHoverDemo.js.map → AnimationsHoverDemo.cjs.map} +0 -0
  127. /package/dist/cjs/{AnimationsPresenceDemo.js.map → AnimationsPresenceDemo.cjs.map} +0 -0
  128. /package/dist/cjs/{AnimationsTimingDemo.js.map → AnimationsTimingDemo.cjs.map} +0 -0
  129. /package/dist/cjs/{AvatarDemo.js.map → AvatarDemo.cjs.map} +0 -0
  130. /package/dist/cjs/{BuildAButtonDemo.js.map → BuildAButtonDemo.cjs.map} +0 -0
  131. /package/dist/cjs/{ButtonDemo.js.map → ButtonDemo.cjs.map} +0 -0
  132. /package/dist/cjs/{CardDemo.js.map → CardDemo.cjs.map} +0 -0
  133. /package/dist/cjs/{CheckboxDemo.js.map → CheckboxDemo.cjs.map} +0 -0
  134. /package/dist/cjs/{CheckboxHeadlessDemo.js.map → CheckboxHeadlessDemo.cjs.map} +0 -0
  135. /package/dist/cjs/{CheckboxUnstyledDemo.js.map → CheckboxUnstyledDemo.cjs.map} +0 -0
  136. /package/dist/cjs/{ColorsDemo.js.map → ColorsDemo.cjs.map} +0 -0
  137. /package/dist/cjs/{DialogDemo.js.map → DialogDemo.cjs.map} +0 -0
  138. /package/dist/cjs/{FormsDemo.js.map → FormsDemo.cjs.map} +0 -0
  139. /package/dist/cjs/{Grid.js.map → Grid.cjs.map} +0 -0
  140. /package/dist/cjs/{GroupDemo.js.map → GroupDemo.cjs.map} +0 -0
  141. /package/dist/cjs/{HeadingsDemo.js.map → HeadingsDemo.cjs.map} +0 -0
  142. /package/dist/cjs/{ImageDemo.js.map → ImageDemo.cjs.map} +0 -0
  143. /package/dist/cjs/{InputsDemo.js.map → InputsDemo.cjs.map} +0 -0
  144. /package/dist/cjs/{LabelDemo.js.map → LabelDemo.cjs.map} +0 -0
  145. /package/dist/cjs/{LinearGradientDemo.js.map → LinearGradientDemo.cjs.map} +0 -0
  146. /package/dist/cjs/{ListItemDemo.js.map → ListItemDemo.cjs.map} +0 -0
  147. /package/dist/cjs/{LucideIconsDemo.js.map → LucideIconsDemo.cjs.map} +0 -0
  148. /package/dist/cjs/{NewInputsDemo.js.map → NewInputsDemo.cjs.map} +0 -0
  149. /package/dist/cjs/{PopoverDemo.js.map → PopoverDemo.cjs.map} +0 -0
  150. /package/dist/cjs/{ProgressDemo.js.map → ProgressDemo.cjs.map} +0 -0
  151. /package/dist/cjs/{RadioGroupDemo.js.map → RadioGroupDemo.cjs.map} +0 -0
  152. /package/dist/cjs/{RadioGroupHeadlessDemo.js.map → RadioGroupHeadlessDemo.cjs.map} +0 -0
  153. /package/dist/cjs/{RadioGroupUnstyledDemo.js.map → RadioGroupUnstyledDemo.cjs.map} +0 -0
  154. /package/dist/cjs/{ReplaceThemeDemo.js.map → ReplaceThemeDemo.cjs.map} +0 -0
  155. /package/dist/cjs/{ScrollViewDemo.js.map → ScrollViewDemo.cjs.map} +0 -0
  156. /package/dist/cjs/{SelectDemo.js.map → SelectDemo.cjs.map} +0 -0
  157. /package/dist/cjs/{SeparatorDemo.js.map → SeparatorDemo.cjs.map} +0 -0
  158. /package/dist/cjs/{ShapesDemo.js.map → ShapesDemo.cjs.map} +0 -0
  159. /package/dist/cjs/{SheetDemo.js.map → SheetDemo.cjs.map} +0 -0
  160. /package/dist/cjs/{SliderDemo.js.map → SliderDemo.cjs.map} +0 -0
  161. /package/dist/cjs/{SpinnerDemo.js.map → SpinnerDemo.cjs.map} +0 -0
  162. /package/dist/cjs/{StacksDemo.js.map → StacksDemo.cjs.map} +0 -0
  163. /package/dist/cjs/{SwitchDemo.js.map → SwitchDemo.cjs.map} +0 -0
  164. /package/dist/cjs/{SwitchHeadlessDemo.js.map → SwitchHeadlessDemo.cjs.map} +0 -0
  165. /package/dist/cjs/{SwitchUnstyledDemo.js.map → SwitchUnstyledDemo.cjs.map} +0 -0
  166. /package/dist/cjs/{TabsAdvancedDemo.js.map → TabsAdvancedDemo.cjs.map} +0 -0
  167. /package/dist/cjs/{TabsDemo.js.map → TabsDemo.cjs.map} +0 -0
  168. /package/dist/cjs/{TextDemo.js.map → TextDemo.cjs.map} +0 -0
  169. /package/dist/cjs/{ThemeBuilderDemo.js.map → ThemeBuilderDemo.cjs.map} +0 -0
  170. /package/dist/cjs/{ThemeInverseDemo.js.map → ThemeInverseDemo.cjs.map} +0 -0
  171. /package/dist/cjs/{ToastDemo.js.map → ToastDemo.cjs.map} +0 -0
  172. /package/dist/cjs/{ToastDuplicateDemo.js.map → ToastDuplicateDemo.cjs.map} +0 -0
  173. /package/dist/cjs/{ToggleGroupDemo.js.map → ToggleGroupDemo.cjs.map} +0 -0
  174. /package/dist/cjs/{TokensDemo.js.map → TokensDemo.cjs.map} +0 -0
  175. /package/dist/cjs/{TooltipDemo.js.map → TooltipDemo.cjs.map} +0 -0
  176. /package/dist/cjs/{UpdateThemeDemo.js.map → UpdateThemeDemo.cjs.map} +0 -0
  177. /package/dist/cjs/{WebNativeImageDemo.js.map → WebNativeImageDemo.cjs.map} +0 -0
  178. /package/dist/cjs/{index.js.map → index.cjs.map} +0 -0
  179. /package/dist/cjs/{tamagui.config.js.map → tamagui.config.cjs.map} +0 -0
  180. /package/dist/cjs/{useOnIntersecting.js.map → useOnIntersecting.cjs.map} +0 -0
@@ -1,149 +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 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
@@ -1,56 +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 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
@@ -1,112 +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 ToastDemo_exports = {};
24
- __export(ToastDemo_exports, {
25
- ToastDemo: () => ToastDemo
26
- });
27
- module.exports = __toCommonJS(ToastDemo_exports);
28
- var import_toast = require("@tamagui/toast"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
29
- const ToastDemo = () => {
30
- const [native, setNative] = import_react.default.useState(!1);
31
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { space: !0, alignItems: "center", children: [
32
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToastControl, { native }),
33
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CurrentToast, {}),
34
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeOptions, { native, setNative })
35
- ] });
36
- }, CurrentToast = () => {
37
- const currentToast = (0, import_toast.useToastState)();
38
- return !currentToast || currentToast.isHandledNatively ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
39
- import_toast.Toast,
40
- {
41
- duration: currentToast.duration,
42
- enterStyle: { opacity: 0, scale: 0.5, y: -25 },
43
- exitStyle: { opacity: 0, scale: 1, y: -20 },
44
- y: 0,
45
- opacity: 1,
46
- scale: 1,
47
- animation: "100ms",
48
- viewportName: currentToast.viewportName,
49
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { children: [
50
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Title, { children: currentToast.title }),
51
- !!currentToast.message && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Description, { children: currentToast.message })
52
- ] })
53
- },
54
- currentToast.id
55
- );
56
- }, ToastControl = ({ native }) => {
57
- const toast = (0, import_toast.useToastController)();
58
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { gap: "$2", justifyContent: "center", children: [
59
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
60
- import_tamagui.Button,
61
- {
62
- onPress: () => {
63
- toast.show("Successfully saved!", {
64
- message: "Don't worry, we've got your data.",
65
- native
66
- });
67
- },
68
- children: "Show"
69
- }
70
- ),
71
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
- import_tamagui.Button,
73
- {
74
- onPress: () => {
75
- toast.hide();
76
- },
77
- children: "Hide"
78
- }
79
- )
80
- ] });
81
- }, NativeOptions = ({
82
- native,
83
- setNative
84
- }) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { gap: "$3", children: [
85
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { size: "$1", onPress: () => setNative(!1), children: "Custom" }),
86
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
87
- import_tamagui.Switch,
88
- {
89
- id: "native-toggle",
90
- nativeID: "native-toggle",
91
- theme: "active",
92
- size: "$1",
93
- checked: !!native,
94
- onCheckedChange: (val) => setNative(val),
95
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
- import_tamagui.Switch.Thumb,
97
- {
98
- animation: [
99
- "quick",
100
- {
101
- transform: {
102
- overshootClamping: !0
103
- }
104
- }
105
- ]
106
- }
107
- )
108
- }
109
- ),
110
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { size: "$1", onPress: () => setNative(!0), children: "Native" })
111
- ] });
112
- //# sourceMappingURL=ToastDemo.js.map
@@ -1,64 +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 ToastDuplicateDemo_exports = {};
24
- __export(ToastDuplicateDemo_exports, {
25
- ToastDuplicateDemo: () => ToastDuplicateDemo
26
- });
27
- module.exports = __toCommonJS(ToastDuplicateDemo_exports);
28
- var import_lucide_icons = require("@tamagui/lucide-icons"), import_toast = require("@tamagui/toast"), import_react = __toESM(require("react")), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
29
- const ToastDuplicateDemo = () => {
30
- const [savedCount, setSavedCount] = import_react.default.useState(0);
31
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { alignItems: "center", children: [
32
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
- import_tamagui.Button,
34
- {
35
- onPress: () => {
36
- setSavedCount((old) => old + 1);
37
- },
38
- children: "Show toast"
39
- }
40
- ),
41
- [...Array(savedCount)].map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
- import_toast.Toast,
43
- {
44
- viewportName: "viewport-multiple",
45
- duration: 4e3,
46
- enterStyle: { opacity: 0, scale: 0.5, y: -25 },
47
- exitStyle: { opacity: 0, scale: 1, y: -20 },
48
- y: 0,
49
- opacity: 1,
50
- scale: 1,
51
- animation: "100ms",
52
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { space: !0, alignItems: "center", children: [
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons.CheckCircle2, {}) }),
54
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { children: [
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Title, { children: "Successfully saved!" }),
56
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_toast.Toast.Description, { children: "Don't worry... We've got your data." })
57
- ] })
58
- ] })
59
- },
60
- index
61
- ))
62
- ] });
63
- };
64
- //# sourceMappingURL=ToastDuplicateDemo.js.map
@@ -1,63 +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 ToggleGroupDemo_exports = {};
16
- __export(ToggleGroupDemo_exports, {
17
- ToggleGroupDemo: () => ToggleGroupDemo
18
- });
19
- module.exports = __toCommonJS(ToggleGroupDemo_exports);
20
- var import_lucide_icons = require("@tamagui/lucide-icons"), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
21
- function ToggleGroupDemo() {
22
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { paddingHorizontal: "$4", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { alignItems: "center", space: "$10", children: [
23
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { alignItems: "center", space: "$6", children: [
24
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupComponent, { type: "single", size: "$3", orientation: "horizontal" }),
25
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupComponent, { type: "multiple", size: "$4", orientation: "horizontal" })
26
- ] }),
27
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { alignItems: "center", space: "$6", children: [
28
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupComponent, { type: "single", size: "$3", orientation: "vertical" }),
29
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ToggleGroupComponent, { type: "multiple", size: "$4", orientation: "vertical" })
30
- ] })
31
- ] }) });
32
- }
33
- function ToggleGroupComponent(props) {
34
- const id = `switch-${props.size.toString().slice(1)}-${props.type}`;
35
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
36
- import_tamagui.XStack,
37
- {
38
- flexDirection: props.orientation === "horizontal" ? "row" : "column",
39
- alignItems: "center",
40
- justifyContent: "center",
41
- space: "$4",
42
- children: [
43
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Label, { paddingRight: "$0", justifyContent: "flex-end", size: props.size, htmlFor: id, children: props.type === "single" ? "Single" : "Multiple" }),
44
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
45
- import_tamagui.ToggleGroup,
46
- {
47
- orientation: props.orientation,
48
- id,
49
- type: props.type,
50
- size: props.size,
51
- disableDeactivation: props.type === "single" ? !0 : void 0,
52
- children: [
53
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ToggleGroup.Item, { value: "left", "aria-label": "Left aligned", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons.AlignLeft, {}) }),
54
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ToggleGroup.Item, { value: "center", "aria-label": "Center aligned", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons.AlignCenter, {}) }),
55
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.ToggleGroup.Item, { value: "right", "aria-label": "Right aligned", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_icons.AlignRight, {}) })
56
- ]
57
- }
58
- )
59
- ]
60
- }
61
- );
62
- }
63
- //# sourceMappingURL=ToggleGroupDemo.js.map
@@ -1,100 +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 TokensDemo_exports = {};
24
- __export(TokensDemo_exports, {
25
- TokensDemo: () => TokensDemo
26
- });
27
- module.exports = __toCommonJS(TokensDemo_exports);
28
- var import_react = __toESM(require("react")), import_core = require("@tamagui/core"), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
29
- const sections = [
30
- {
31
- name: "Size",
32
- key: "size"
33
- },
34
- {
35
- name: "Space",
36
- key: "space"
37
- },
38
- {
39
- name: "Space (-)",
40
- key: "spaceNegative"
41
- },
42
- {
43
- name: "Radius",
44
- key: "radius"
45
- }
46
- ];
47
- function TokensDemo() {
48
- const [section, setSection] = import_react.default.useState("size");
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { space: !0, children: [
50
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup, { alignItems: "center", alignSelf: "center", children: sections.map(({ name, key }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.XGroup.Item, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
51
- import_tamagui.Button,
52
- {
53
- size: "$3",
54
- theme: section === key ? "active" : null,
55
- fontFamily: "$silkscreen",
56
- onPress: () => setSection(key),
57
- children: name
58
- }
59
- ) }, key)) }),
60
- (section === "size" || section === "spaceNegative" || section === "space" || section === "radius") && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SizeSection, { section })
61
- ] });
62
- }
63
- function SizeSection({ section }) {
64
- const allTokens = (0, import_core.getConfig)().tokens, tokens = allTokens[section.startsWith("space") ? "space" : section], st = Object.keys(tokens).sort(
65
- (a, b) => Number.parseFloat(a) > Number.parseFloat(b) ? 1 : -1
66
- ), spaceTokens = st.filter((t) => Number.parseFloat(t) >= 0), spaceTokensNegative = st.filter((t) => Number.parseFloat(t) < 0).sort((a, b) => Number.parseFloat(a) > Number.parseFloat(b) ? -1 : 1);
67
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { flex: 1, space: !0, children: [
68
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.H2, { children: "Sizes" }),
69
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { width: "100%", space: "$2", separator: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Separator, {}), children: (section === "spaceNegative" ? spaceTokensNegative : spaceTokens).map(
70
- (token) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { width: "100%", alignItems: "center", children: [
71
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { width: "25%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.H3, { size: "$6", children: [
72
- "$",
73
- token
74
- ] }) }),
75
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { width: "20%", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.H4, { size: "$5", children: [
76
- tokens[token]?.val,
77
- "px"
78
- ] }) }),
79
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
80
- import_tamagui.Square,
81
- {
82
- size: tokens[token]?.val,
83
- backgroundColor: "$color5",
84
- ...section === "spaceNegative" && {
85
- backgroundColor: "$red5",
86
- size: -tokens[spaceTokensNegative.find(
87
- (t) => Number.parseFloat(t) === -Number.parseFloat(token)
88
- ) ?? token]?.val
89
- },
90
- ...section === "radius" && {
91
- size: allTokens.size[token]?.val,
92
- borderRadius: tokens[token]?.val
93
- }
94
- }
95
- )
96
- ] }, token)
97
- ) })
98
- ] });
99
- }
100
- //# sourceMappingURL=TokensDemo.js.map
@@ -1,68 +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 TooltipDemo_exports = {};
16
- __export(TooltipDemo_exports, {
17
- TooltipDemo: () => TooltipDemo
18
- });
19
- module.exports = __toCommonJS(TooltipDemo_exports);
20
- var import_lucide_icons = require("@tamagui/lucide-icons"), import_tamagui = require("tamagui"), import_jsx_runtime = require("react/jsx-runtime");
21
- function TooltipDemo() {
22
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.TooltipGroup, { delay: { open: 3e3, close: 100 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.YStack, { gap: "$2", alignSelf: "center", children: [
23
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { gap: "$2", children: [
24
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "0", placement: "top-end", Icon: import_lucide_icons.Circle }),
25
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "1", placement: "top", Icon: import_lucide_icons.ChevronUp }),
26
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "2", placement: "top-start", Icon: import_lucide_icons.Circle })
27
- ] }),
28
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { gap: "$2", children: [
29
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "3", placement: "left", Icon: import_lucide_icons.ChevronLeft }),
30
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.YStack, { flex: 1 }),
31
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "4", placement: "right", Icon: import_lucide_icons.ChevronRight })
32
- ] }),
33
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.XStack, { gap: "$2", children: [
34
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "5", placement: "bottom-end", Icon: import_lucide_icons.Circle }),
35
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "6", placement: "bottom", Icon: import_lucide_icons.ChevronDown }),
36
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Demo, { groupId: "7", placement: "bottom-start", Icon: import_lucide_icons.Circle })
37
- ] })
38
- ] }) });
39
- }
40
- function Demo({ Icon, ...props }) {
41
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_tamagui.Tooltip, { ...props, children: [
42
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tooltip.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Button, { icon: Icon, circular: !0 }) }),
43
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
44
- import_tamagui.Tooltip.Content,
45
- {
46
- enterStyle: { x: 0, y: -5, opacity: 0, scale: 0.9 },
47
- exitStyle: { x: 0, y: -5, opacity: 0, scale: 0.9 },
48
- scale: 1,
49
- x: 0,
50
- y: 0,
51
- opacity: 1,
52
- animation: [
53
- "quick",
54
- {
55
- opacity: {
56
- overshootClamping: !0
57
- }
58
- }
59
- ],
60
- children: [
61
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Tooltip.Arrow, {}),
62
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_tamagui.Paragraph, { size: "$2", lineHeight: "$1", children: "Hello world" })
63
- ]
64
- }
65
- )
66
- ] });
67
- }
68
- //# sourceMappingURL=TooltipDemo.js.map