@tamagui/demos 1.89.0-1706360676826 → 1.89.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 (331) hide show
  1. package/dist/cjs/CheckboxHeadlessDemo.js +54 -0
  2. package/dist/cjs/CheckboxHeadlessDemo.js.map +6 -0
  3. package/dist/cjs/CheckboxHeadlessDemo.native.js +59 -0
  4. package/dist/cjs/CheckboxHeadlessDemo.native.js.map +6 -0
  5. package/dist/cjs/CheckboxUnstyledDemo.js +52 -0
  6. package/dist/cjs/CheckboxUnstyledDemo.js.map +6 -0
  7. package/dist/cjs/CheckboxUnstyledDemo.native.js +58 -0
  8. package/dist/cjs/CheckboxUnstyledDemo.native.js.map +6 -0
  9. package/dist/cjs/DialogDemo.js +72 -82
  10. package/dist/cjs/DialogDemo.js.map +2 -2
  11. package/dist/cjs/DialogDemo.native.js +72 -82
  12. package/dist/cjs/DialogDemo.native.js.map +2 -2
  13. package/dist/cjs/SelectDemo.js +122 -132
  14. package/dist/cjs/SelectDemo.js.map +1 -1
  15. package/dist/cjs/SelectDemo.native.js +122 -132
  16. package/dist/cjs/SelectDemo.native.js.map +1 -1
  17. package/dist/cjs/SwitchDemo.js +5 -9
  18. package/dist/cjs/SwitchDemo.js.map +1 -1
  19. package/dist/cjs/SwitchDemo.native.js +5 -9
  20. package/dist/cjs/SwitchDemo.native.js.map +1 -1
  21. package/dist/cjs/SwitchHeadlessDemo.js +79 -0
  22. package/dist/cjs/SwitchHeadlessDemo.js.map +6 -0
  23. package/dist/cjs/SwitchHeadlessDemo.native.js +84 -0
  24. package/dist/cjs/SwitchHeadlessDemo.native.js.map +6 -0
  25. package/dist/cjs/SwitchUnstyledDemo.js +68 -0
  26. package/dist/cjs/SwitchUnstyledDemo.js.map +6 -0
  27. package/dist/cjs/SwitchUnstyledDemo.native.js +74 -0
  28. package/dist/cjs/SwitchUnstyledDemo.native.js.map +6 -0
  29. package/dist/cjs/ThemeBuilderDemo.js +17 -17
  30. package/dist/cjs/ThemeBuilderDemo.native.js +17 -17
  31. package/dist/cjs/index.js +4 -0
  32. package/dist/cjs/index.js.map +1 -1
  33. package/dist/cjs/index.native.js +8 -0
  34. package/dist/cjs/index.native.js.map +1 -1
  35. package/dist/esm/AccordionDemo.native.js +16 -35
  36. package/dist/esm/AccordionDemo.native.js.map +1 -1
  37. package/dist/esm/AddThemeDemo.native.js +13 -31
  38. package/dist/esm/AddThemeDemo.native.js.map +1 -1
  39. package/dist/esm/AlertDialogDemo.native.js +17 -37
  40. package/dist/esm/AlertDialogDemo.native.js.map +1 -1
  41. package/dist/esm/AnimationsDemo.native.js +15 -34
  42. package/dist/esm/AnimationsDemo.native.js.map +1 -1
  43. package/dist/esm/AnimationsEnterDemo.native.js +14 -31
  44. package/dist/esm/AnimationsEnterDemo.native.js.map +1 -1
  45. package/dist/esm/AnimationsHoverDemo.native.js +8 -27
  46. package/dist/esm/AnimationsHoverDemo.native.js.map +1 -1
  47. package/dist/esm/AnimationsPresenceDemo.native.js +21 -44
  48. package/dist/esm/AnimationsPresenceDemo.native.js.map +2 -2
  49. package/dist/esm/AnimationsTimingDemo.native.js +8 -27
  50. package/dist/esm/AnimationsTimingDemo.native.js.map +1 -1
  51. package/dist/esm/AvatarDemo.native.js +13 -33
  52. package/dist/esm/AvatarDemo.native.js.map +1 -1
  53. package/dist/esm/BuildAButtonDemo.native.js +24 -43
  54. package/dist/esm/BuildAButtonDemo.native.js.map +1 -1
  55. package/dist/esm/ButtonDemo.native.js +17 -36
  56. package/dist/esm/ButtonDemo.native.js.map +1 -1
  57. package/dist/esm/CardDemo.native.js +16 -37
  58. package/dist/esm/CardDemo.native.js.map +1 -1
  59. package/dist/esm/CheckboxDemo.native.js +12 -32
  60. package/dist/esm/CheckboxDemo.native.js.map +2 -2
  61. package/dist/esm/CheckboxHeadlessDemo.js +43 -0
  62. package/dist/esm/CheckboxHeadlessDemo.js.map +6 -0
  63. package/dist/esm/CheckboxHeadlessDemo.mjs +52 -0
  64. package/dist/esm/CheckboxHeadlessDemo.native.js +43 -0
  65. package/dist/esm/CheckboxHeadlessDemo.native.js.map +6 -0
  66. package/dist/esm/CheckboxUnstyledDemo.js +40 -0
  67. package/dist/esm/CheckboxUnstyledDemo.js.map +6 -0
  68. package/dist/esm/CheckboxUnstyledDemo.mjs +53 -0
  69. package/dist/esm/CheckboxUnstyledDemo.native.js +40 -0
  70. package/dist/esm/CheckboxUnstyledDemo.native.js.map +6 -0
  71. package/dist/esm/ColorsDemo.native.js +29 -40
  72. package/dist/esm/ColorsDemo.native.js.map +1 -1
  73. package/dist/esm/DialogDemo.js +71 -82
  74. package/dist/esm/DialogDemo.js.map +2 -2
  75. package/dist/esm/DialogDemo.mjs +2 -7
  76. package/dist/esm/DialogDemo.native.js +90 -106
  77. package/dist/esm/DialogDemo.native.js.map +2 -2
  78. package/dist/esm/FormsDemo.native.js +11 -30
  79. package/dist/esm/FormsDemo.native.js.map +1 -1
  80. package/dist/esm/Grid.native.js +11 -37
  81. package/dist/esm/Grid.native.js.map +2 -2
  82. package/dist/esm/GroupDemo.native.js +17 -36
  83. package/dist/esm/GroupDemo.native.js.map +1 -1
  84. package/dist/esm/HeadingsDemo.native.js +11 -31
  85. package/dist/esm/HeadingsDemo.native.js.map +1 -1
  86. package/dist/esm/ImageDemo.native.js +6 -26
  87. package/dist/esm/ImageDemo.native.js.map +1 -1
  88. package/dist/esm/InputsDemo.native.js +13 -33
  89. package/dist/esm/InputsDemo.native.js.map +1 -1
  90. package/dist/esm/LabelDemo.native.js +11 -31
  91. package/dist/esm/LabelDemo.native.js.map +1 -1
  92. package/dist/esm/LinearGradientDemo.native.js +10 -29
  93. package/dist/esm/LinearGradientDemo.native.js.map +1 -1
  94. package/dist/esm/ListItemDemo.native.js +22 -41
  95. package/dist/esm/ListItemDemo.native.js.map +1 -1
  96. package/dist/esm/LucideIconsDemo.native.js +18 -42
  97. package/dist/esm/LucideIconsDemo.native.js.map +1 -1
  98. package/dist/esm/PopoverDemo.native.js +25 -45
  99. package/dist/esm/PopoverDemo.native.js.map +1 -1
  100. package/dist/esm/ProgressDemo.native.js +18 -37
  101. package/dist/esm/ProgressDemo.native.js.map +1 -1
  102. package/dist/esm/RadioGroupDemo.native.js +11 -32
  103. package/dist/esm/RadioGroupDemo.native.js.map +1 -1
  104. package/dist/esm/ReplaceThemeDemo.native.js +22 -32
  105. package/dist/esm/ReplaceThemeDemo.native.js.map +1 -1
  106. package/dist/esm/ScrollViewDemo.native.js +15 -35
  107. package/dist/esm/ScrollViewDemo.native.js.map +1 -1
  108. package/dist/esm/SelectDemo.js +122 -132
  109. package/dist/esm/SelectDemo.js.map +1 -1
  110. package/dist/esm/SelectDemo.mjs +11 -7
  111. package/dist/esm/SelectDemo.native.js +130 -158
  112. package/dist/esm/SelectDemo.native.js.map +1 -1
  113. package/dist/esm/SeparatorDemo.native.js +14 -34
  114. package/dist/esm/SeparatorDemo.native.js.map +1 -1
  115. package/dist/esm/ShapesDemo.native.js +7 -27
  116. package/dist/esm/ShapesDemo.native.js.map +1 -1
  117. package/dist/esm/SheetDemo.native.js +39 -56
  118. package/dist/esm/SheetDemo.native.js.map +1 -1
  119. package/dist/esm/SliderDemo.native.js +10 -30
  120. package/dist/esm/SliderDemo.native.js.map +1 -1
  121. package/dist/esm/SpinnerDemo.native.js +7 -27
  122. package/dist/esm/SpinnerDemo.native.js.map +1 -1
  123. package/dist/esm/StacksDemo.native.js +22 -42
  124. package/dist/esm/StacksDemo.native.js.map +1 -1
  125. package/dist/esm/SwitchDemo.js +5 -9
  126. package/dist/esm/SwitchDemo.js.map +1 -1
  127. package/dist/esm/SwitchDemo.mjs +5 -16
  128. package/dist/esm/SwitchDemo.native.js +19 -44
  129. package/dist/esm/SwitchDemo.native.js.map +1 -1
  130. package/dist/esm/SwitchHeadlessDemo.js +67 -0
  131. package/dist/esm/SwitchHeadlessDemo.js.map +6 -0
  132. package/dist/esm/SwitchHeadlessDemo.mjs +66 -0
  133. package/dist/esm/SwitchHeadlessDemo.native.js +67 -0
  134. package/dist/esm/SwitchHeadlessDemo.native.js.map +6 -0
  135. package/dist/esm/SwitchUnstyledDemo.js +55 -0
  136. package/dist/esm/SwitchUnstyledDemo.js.map +6 -0
  137. package/dist/esm/SwitchUnstyledDemo.mjs +68 -0
  138. package/dist/esm/SwitchUnstyledDemo.native.js +55 -0
  139. package/dist/esm/SwitchUnstyledDemo.native.js.map +6 -0
  140. package/dist/esm/TabsAdvancedDemo.native.js +57 -67
  141. package/dist/esm/TabsAdvancedDemo.native.js.map +1 -1
  142. package/dist/esm/TabsDemo.native.js +58 -77
  143. package/dist/esm/TabsDemo.native.js.map +1 -1
  144. package/dist/esm/TextDemo.native.js +10 -30
  145. package/dist/esm/TextDemo.native.js.map +1 -1
  146. package/dist/esm/ThemeBuilderDemo.js +17 -17
  147. package/dist/esm/ThemeBuilderDemo.native.js +45 -65
  148. package/dist/esm/ThemeBuilderDemo.native.js.map +1 -1
  149. package/dist/esm/ThemeInverseDemo.native.js +15 -35
  150. package/dist/esm/ThemeInverseDemo.native.js.map +1 -1
  151. package/dist/esm/ToastDemo.native.js +30 -56
  152. package/dist/esm/ToastDemo.native.js.map +2 -2
  153. package/dist/esm/ToastDuplicateDemo.native.js +18 -43
  154. package/dist/esm/ToastDuplicateDemo.native.js.map +2 -2
  155. package/dist/esm/ToggleGroupDemo.native.js +20 -39
  156. package/dist/esm/ToggleGroupDemo.native.js.map +1 -1
  157. package/dist/esm/TokensDemo.native.js +20 -38
  158. package/dist/esm/TokensDemo.native.js.map +1 -1
  159. package/dist/esm/TooltipDemo.native.js +30 -43
  160. package/dist/esm/TooltipDemo.native.js.map +1 -1
  161. package/dist/esm/UpdateThemeDemo.native.js +25 -41
  162. package/dist/esm/UpdateThemeDemo.native.js.map +1 -1
  163. package/dist/esm/index.js +4 -0
  164. package/dist/esm/index.js.map +1 -1
  165. package/dist/esm/index.mjs +4 -0
  166. package/dist/esm/index.native.js +53 -115
  167. package/dist/esm/index.native.js.map +1 -1
  168. package/dist/esm/tamagui.config.native.js +6 -25
  169. package/dist/esm/tamagui.config.native.js.map +2 -2
  170. package/dist/esm/useOnIntersecting.native.js +8 -29
  171. package/dist/esm/useOnIntersecting.native.js.map +1 -1
  172. package/dist/jsx/AccordionDemo.native.js +16 -35
  173. package/dist/jsx/AccordionDemo.native.js.map +1 -1
  174. package/dist/jsx/AddThemeDemo.native.js +13 -31
  175. package/dist/jsx/AddThemeDemo.native.js.map +1 -1
  176. package/dist/jsx/AlertDialogDemo.native.js +17 -37
  177. package/dist/jsx/AlertDialogDemo.native.js.map +1 -1
  178. package/dist/jsx/AnimationsDemo.native.js +15 -34
  179. package/dist/jsx/AnimationsDemo.native.js.map +1 -1
  180. package/dist/jsx/AnimationsEnterDemo.native.js +14 -31
  181. package/dist/jsx/AnimationsEnterDemo.native.js.map +1 -1
  182. package/dist/jsx/AnimationsHoverDemo.native.js +8 -27
  183. package/dist/jsx/AnimationsHoverDemo.native.js.map +1 -1
  184. package/dist/jsx/AnimationsPresenceDemo.native.js +21 -44
  185. package/dist/jsx/AnimationsPresenceDemo.native.js.map +2 -2
  186. package/dist/jsx/AnimationsTimingDemo.native.js +8 -27
  187. package/dist/jsx/AnimationsTimingDemo.native.js.map +1 -1
  188. package/dist/jsx/AvatarDemo.native.js +13 -33
  189. package/dist/jsx/AvatarDemo.native.js.map +1 -1
  190. package/dist/jsx/BuildAButtonDemo.native.js +24 -43
  191. package/dist/jsx/BuildAButtonDemo.native.js.map +1 -1
  192. package/dist/jsx/ButtonDemo.native.js +17 -36
  193. package/dist/jsx/ButtonDemo.native.js.map +1 -1
  194. package/dist/jsx/CardDemo.native.js +16 -37
  195. package/dist/jsx/CardDemo.native.js.map +1 -1
  196. package/dist/jsx/CheckboxDemo.native.js +12 -32
  197. package/dist/jsx/CheckboxDemo.native.js.map +2 -2
  198. package/dist/jsx/CheckboxHeadlessDemo.js +43 -0
  199. package/dist/jsx/CheckboxHeadlessDemo.js.map +6 -0
  200. package/dist/jsx/CheckboxHeadlessDemo.mjs +52 -0
  201. package/dist/jsx/CheckboxHeadlessDemo.native.js +43 -0
  202. package/dist/jsx/CheckboxHeadlessDemo.native.js.map +6 -0
  203. package/dist/jsx/CheckboxUnstyledDemo.js +40 -0
  204. package/dist/jsx/CheckboxUnstyledDemo.js.map +6 -0
  205. package/dist/jsx/CheckboxUnstyledDemo.mjs +53 -0
  206. package/dist/jsx/CheckboxUnstyledDemo.native.js +40 -0
  207. package/dist/jsx/CheckboxUnstyledDemo.native.js.map +6 -0
  208. package/dist/jsx/ColorsDemo.native.js +29 -40
  209. package/dist/jsx/ColorsDemo.native.js.map +1 -1
  210. package/dist/jsx/DialogDemo.js +71 -82
  211. package/dist/jsx/DialogDemo.js.map +2 -2
  212. package/dist/jsx/DialogDemo.mjs +2 -7
  213. package/dist/jsx/DialogDemo.native.js +90 -106
  214. package/dist/jsx/DialogDemo.native.js.map +2 -2
  215. package/dist/jsx/FormsDemo.native.js +11 -30
  216. package/dist/jsx/FormsDemo.native.js.map +1 -1
  217. package/dist/jsx/Grid.native.js +11 -37
  218. package/dist/jsx/Grid.native.js.map +2 -2
  219. package/dist/jsx/GroupDemo.native.js +17 -36
  220. package/dist/jsx/GroupDemo.native.js.map +1 -1
  221. package/dist/jsx/HeadingsDemo.native.js +11 -31
  222. package/dist/jsx/HeadingsDemo.native.js.map +1 -1
  223. package/dist/jsx/ImageDemo.native.js +6 -26
  224. package/dist/jsx/ImageDemo.native.js.map +1 -1
  225. package/dist/jsx/InputsDemo.native.js +13 -33
  226. package/dist/jsx/InputsDemo.native.js.map +1 -1
  227. package/dist/jsx/LabelDemo.native.js +11 -31
  228. package/dist/jsx/LabelDemo.native.js.map +1 -1
  229. package/dist/jsx/LinearGradientDemo.native.js +10 -29
  230. package/dist/jsx/LinearGradientDemo.native.js.map +1 -1
  231. package/dist/jsx/ListItemDemo.native.js +22 -41
  232. package/dist/jsx/ListItemDemo.native.js.map +1 -1
  233. package/dist/jsx/LucideIconsDemo.native.js +18 -42
  234. package/dist/jsx/LucideIconsDemo.native.js.map +1 -1
  235. package/dist/jsx/PopoverDemo.native.js +25 -45
  236. package/dist/jsx/PopoverDemo.native.js.map +1 -1
  237. package/dist/jsx/ProgressDemo.native.js +18 -37
  238. package/dist/jsx/ProgressDemo.native.js.map +1 -1
  239. package/dist/jsx/RadioGroupDemo.native.js +11 -32
  240. package/dist/jsx/RadioGroupDemo.native.js.map +1 -1
  241. package/dist/jsx/ReplaceThemeDemo.native.js +22 -32
  242. package/dist/jsx/ReplaceThemeDemo.native.js.map +1 -1
  243. package/dist/jsx/ScrollViewDemo.native.js +15 -35
  244. package/dist/jsx/ScrollViewDemo.native.js.map +1 -1
  245. package/dist/jsx/SelectDemo.js +122 -132
  246. package/dist/jsx/SelectDemo.js.map +1 -1
  247. package/dist/jsx/SelectDemo.mjs +11 -7
  248. package/dist/jsx/SelectDemo.native.js +130 -158
  249. package/dist/jsx/SelectDemo.native.js.map +1 -1
  250. package/dist/jsx/SeparatorDemo.native.js +14 -34
  251. package/dist/jsx/SeparatorDemo.native.js.map +1 -1
  252. package/dist/jsx/ShapesDemo.native.js +7 -27
  253. package/dist/jsx/ShapesDemo.native.js.map +1 -1
  254. package/dist/jsx/SheetDemo.native.js +39 -56
  255. package/dist/jsx/SheetDemo.native.js.map +1 -1
  256. package/dist/jsx/SliderDemo.native.js +10 -30
  257. package/dist/jsx/SliderDemo.native.js.map +1 -1
  258. package/dist/jsx/SpinnerDemo.native.js +7 -27
  259. package/dist/jsx/SpinnerDemo.native.js.map +1 -1
  260. package/dist/jsx/StacksDemo.native.js +22 -42
  261. package/dist/jsx/StacksDemo.native.js.map +1 -1
  262. package/dist/jsx/SwitchDemo.js +5 -9
  263. package/dist/jsx/SwitchDemo.js.map +1 -1
  264. package/dist/jsx/SwitchDemo.mjs +5 -16
  265. package/dist/jsx/SwitchDemo.native.js +19 -44
  266. package/dist/jsx/SwitchDemo.native.js.map +1 -1
  267. package/dist/jsx/SwitchHeadlessDemo.js +67 -0
  268. package/dist/jsx/SwitchHeadlessDemo.js.map +6 -0
  269. package/dist/jsx/SwitchHeadlessDemo.mjs +66 -0
  270. package/dist/jsx/SwitchHeadlessDemo.native.js +67 -0
  271. package/dist/jsx/SwitchHeadlessDemo.native.js.map +6 -0
  272. package/dist/jsx/SwitchUnstyledDemo.js +55 -0
  273. package/dist/jsx/SwitchUnstyledDemo.js.map +6 -0
  274. package/dist/jsx/SwitchUnstyledDemo.mjs +68 -0
  275. package/dist/jsx/SwitchUnstyledDemo.native.js +55 -0
  276. package/dist/jsx/SwitchUnstyledDemo.native.js.map +6 -0
  277. package/dist/jsx/TabsAdvancedDemo.native.js +57 -67
  278. package/dist/jsx/TabsAdvancedDemo.native.js.map +1 -1
  279. package/dist/jsx/TabsDemo.native.js +58 -77
  280. package/dist/jsx/TabsDemo.native.js.map +1 -1
  281. package/dist/jsx/TextDemo.native.js +10 -30
  282. package/dist/jsx/TextDemo.native.js.map +1 -1
  283. package/dist/jsx/ThemeBuilderDemo.js +17 -17
  284. package/dist/jsx/ThemeBuilderDemo.native.js +45 -65
  285. package/dist/jsx/ThemeBuilderDemo.native.js.map +1 -1
  286. package/dist/jsx/ThemeInverseDemo.native.js +15 -35
  287. package/dist/jsx/ThemeInverseDemo.native.js.map +1 -1
  288. package/dist/jsx/ToastDemo.native.js +30 -56
  289. package/dist/jsx/ToastDemo.native.js.map +2 -2
  290. package/dist/jsx/ToastDuplicateDemo.native.js +18 -43
  291. package/dist/jsx/ToastDuplicateDemo.native.js.map +2 -2
  292. package/dist/jsx/ToggleGroupDemo.native.js +20 -39
  293. package/dist/jsx/ToggleGroupDemo.native.js.map +1 -1
  294. package/dist/jsx/TokensDemo.native.js +20 -38
  295. package/dist/jsx/TokensDemo.native.js.map +1 -1
  296. package/dist/jsx/TooltipDemo.native.js +30 -43
  297. package/dist/jsx/TooltipDemo.native.js.map +1 -1
  298. package/dist/jsx/UpdateThemeDemo.native.js +25 -41
  299. package/dist/jsx/UpdateThemeDemo.native.js.map +1 -1
  300. package/dist/jsx/index.js +4 -0
  301. package/dist/jsx/index.js.map +1 -1
  302. package/dist/jsx/index.mjs +4 -0
  303. package/dist/jsx/index.native.js +53 -115
  304. package/dist/jsx/index.native.js.map +1 -1
  305. package/dist/jsx/tamagui.config.native.js +6 -25
  306. package/dist/jsx/tamagui.config.native.js.map +2 -2
  307. package/dist/jsx/useOnIntersecting.native.js +8 -29
  308. package/dist/jsx/useOnIntersecting.native.js.map +1 -1
  309. package/package.json +18 -18
  310. package/src/CheckboxHeadlessDemo.tsx +47 -0
  311. package/src/CheckboxUnstyledDemo.tsx +49 -0
  312. package/src/DialogDemo.tsx +3 -11
  313. package/src/SelectDemo.tsx +8 -14
  314. package/src/SwitchDemo.tsx +5 -9
  315. package/src/SwitchHeadlessDemo.tsx +73 -0
  316. package/src/SwitchUnstyledDemo.tsx +63 -0
  317. package/src/ThemeBuilderDemo.tsx +17 -17
  318. package/src/index.tsx +4 -0
  319. package/types/CheckboxHeadlessDemo.d.ts +3 -0
  320. package/types/CheckboxHeadlessDemo.d.ts.map +1 -0
  321. package/types/CheckboxUnstyledDemo.d.ts +157 -0
  322. package/types/CheckboxUnstyledDemo.d.ts.map +1 -0
  323. package/types/DialogDemo.d.ts.map +1 -1
  324. package/types/SelectDemo.d.ts.map +1 -1
  325. package/types/SwitchDemo.d.ts.map +1 -1
  326. package/types/SwitchHeadlessDemo.d.ts +3 -0
  327. package/types/SwitchHeadlessDemo.d.ts.map +1 -0
  328. package/types/SwitchUnstyledDemo.d.ts +111 -0
  329. package/types/SwitchUnstyledDemo.d.ts.map +1 -0
  330. package/types/index.d.ts +4 -0
  331. package/types/index.d.ts.map +1 -1
@@ -1,5 +1,4 @@
1
1
  import { X } from '@tamagui/lucide-icons'
2
- import { useState } from 'react'
3
2
  import {
4
3
  Adapt,
5
4
  Button,
@@ -21,15 +20,8 @@ export function DialogDemo() {
21
20
  }
22
21
 
23
22
  function DialogInstance() {
24
- const [open, setOpen] = useState(false)
25
-
26
23
  return (
27
- <Dialog
28
- modal
29
- onOpenChange={(open) => {
30
- setOpen(open)
31
- }}
32
- >
24
+ <Dialog modal>
33
25
  <Dialog.Trigger asChild>
34
26
  <Button>Show Dialog</Button>
35
27
  </Dialog.Trigger>
@@ -50,7 +42,7 @@ function DialogInstance() {
50
42
  <Dialog.Portal>
51
43
  <Dialog.Overlay
52
44
  key="overlay"
53
- animation="quick"
45
+ animation="slow"
54
46
  opacity={0.5}
55
47
  enterStyle={{ opacity: 0 }}
56
48
  exitStyle={{ opacity: 0 }}
@@ -62,7 +54,7 @@ function DialogInstance() {
62
54
  key="content"
63
55
  animateOnly={['transform', 'opacity']}
64
56
  animation={[
65
- 'quick',
57
+ 'quicker',
66
58
  {
67
59
  opacity: {
68
60
  overshootClamping: true,
@@ -6,19 +6,19 @@ import { LinearGradient } from 'tamagui/linear-gradient'
6
6
 
7
7
  export function SelectDemo() {
8
8
  return (
9
- <YStack space>
10
- <XStack ai="center" space>
11
- <Label f={1} fb={0}>
9
+ <YStack gap="$4">
10
+ <XStack ai="center" gap="$4">
11
+ <Label htmlFor="select-demo-1" f={1} miw={80}>
12
12
  Custom
13
13
  </Label>
14
- <SelectDemoItem />
14
+ <SelectDemoItem id="select-demo-1" />
15
15
  </XStack>
16
16
 
17
- <XStack ai="center" space>
18
- <Label f={1} fb={0}>
17
+ <XStack ai="center" gap="$4">
18
+ <Label htmlFor="select-demo-2" f={1} miw={80}>
19
19
  Native
20
20
  </Label>
21
- <SelectDemoItem native />
21
+ <SelectDemoItem id="select-demo-2" native />
22
22
  </XStack>
23
23
  </YStack>
24
24
  )
@@ -28,13 +28,7 @@ export function SelectDemoItem(props: SelectProps) {
28
28
  const [val, setVal] = useState('apple')
29
29
 
30
30
  return (
31
- <Select
32
- id="food"
33
- value={val}
34
- onValueChange={setVal}
35
- disablePreventBodyScroll
36
- {...props}
37
- >
31
+ <Select value={val} onValueChange={setVal} disablePreventBodyScroll {...props}>
38
32
  <Select.Trigger width={220} iconAfter={ChevronDown}>
39
33
  <Select.Value placeholder="Something" />
40
34
  </Select.Trigger>
@@ -3,23 +3,19 @@ import { Label, Separator, Switch, XStack, YStack, styled } from 'tamagui'
3
3
 
4
4
  export function SwitchDemo() {
5
5
  return (
6
- <YStack width={200} alignItems="center" space="$3">
7
- <XStack space="$3" $xs={{ flexDirection: 'column' }}>
6
+ <YStack width={200} alignItems="center" gap="$3">
7
+ <XStack gap="$3" $xs={{ flexDirection: 'column' }}>
8
8
  <SwitchWithLabel size="$2" />
9
9
  <SwitchWithLabel size="$2" defaultChecked />
10
10
  </XStack>
11
- <XStack space="$3" $xs={{ flexDirection: 'column' }}>
11
+ <XStack gap="$3" $xs={{ flexDirection: 'column' }}>
12
12
  <SwitchWithLabel size="$3" />
13
13
  <SwitchWithLabel size="$3" defaultChecked />
14
14
  </XStack>
15
- <XStack space="$3" $xs={{ flexDirection: 'column' }}>
15
+ <XStack gap="$3" $xs={{ flexDirection: 'column' }}>
16
16
  <SwitchWithLabel size="$4" />
17
17
  <SwitchWithLabel size="$4" defaultChecked />
18
18
  </XStack>
19
- <XStack space="$3" $xs={{ flexDirection: 'column' }}>
20
- <SwitchWithLabel size="$5" />
21
- <SwitchWithLabel size="$5" defaultChecked />
22
- </XStack>
23
19
  </YStack>
24
20
  )
25
21
  }
@@ -27,7 +23,7 @@ export function SwitchDemo() {
27
23
  export function SwitchWithLabel(props: { size: SizeTokens; defaultChecked?: boolean }) {
28
24
  const id = `switch-${props.size.toString().slice(1)}-${props.defaultChecked ?? ''}}`
29
25
  return (
30
- <XStack width={200} alignItems="center" space="$4">
26
+ <XStack width={200} alignItems="center" gap="$4">
31
27
  <Label
32
28
  paddingRight="$0"
33
29
  minWidth={90}
@@ -0,0 +1,73 @@
1
+ import type { SwitchProps as SwitchHeadlessProps } from '@tamagui/switch-headless'
2
+ import { useSwitch } from '@tamagui/switch-headless'
3
+ import { forwardRef, useEffect, useRef, useState } from 'react'
4
+ import type { View } from 'react-native'
5
+ import { Animated, Pressable } from 'react-native'
6
+ import { Label, XStack, YStack } from 'tamagui'
7
+
8
+ export function SwitchHeadlessDemo() {
9
+ return (
10
+ <YStack width={200} alignItems="center" space="$3">
11
+ <XStack space="$3" alignItems="center">
12
+ <Label htmlFor="headless">Headless</Label>
13
+ <HeadlessSwitch defaultChecked id="headless" />
14
+ </XStack>
15
+ </YStack>
16
+ )
17
+ }
18
+
19
+ const HeadlessSwitch = forwardRef<View, SwitchHeadlessProps>((props, ref) => {
20
+ const [checked, setChecked] = useState(props.defaultChecked || false)
21
+ const { switchProps, switchRef, bubbleInput } = useSwitch(
22
+ props,
23
+ [checked, setChecked],
24
+ ref
25
+ )
26
+
27
+ const animation = useRef(new Animated.Value(checked ? 1 : 0)).current
28
+
29
+ useEffect(() => {
30
+ Animated.timing(animation, {
31
+ toValue: checked ? 1 : 0,
32
+ duration: 100,
33
+ useNativeDriver: true,
34
+ }).start()
35
+ }, [checked])
36
+
37
+ return (
38
+ <>
39
+ <Pressable
40
+ style={{
41
+ width: 40,
42
+ height: 20,
43
+ borderRadius: 100,
44
+ backgroundColor: checked ? 'lightblue' : 'silver',
45
+ }}
46
+ ref={switchRef}
47
+ {...switchProps}
48
+ >
49
+ <Animated.View
50
+ style={[
51
+ {
52
+ backgroundColor: 'black',
53
+ borderRadius: 100,
54
+ width: 20,
55
+ height: 20,
56
+ },
57
+ {
58
+ transform: [
59
+ {
60
+ translateX: animation.interpolate({
61
+ inputRange: [0, 1],
62
+ outputRange: [0, 20],
63
+ }),
64
+ },
65
+ ],
66
+ },
67
+ ]}
68
+ />
69
+ </Pressable>
70
+ {bubbleInput}
71
+ </>
72
+ )
73
+ })
@@ -0,0 +1,63 @@
1
+ import { Stack, styled } from '@tamagui/core'
2
+ import { SwitchStyledContext, createSwitch } from '@tamagui/switch'
3
+ import { Label, XStack, YStack } from 'tamagui'
4
+
5
+ const Frame = styled(Stack, {
6
+ context: SwitchStyledContext,
7
+ width: 40,
8
+ height: 20,
9
+ borderRadius: 20,
10
+ variants: {
11
+ checked: {
12
+ true: {
13
+ backgroundColor: 'lightblue',
14
+ },
15
+ false: {
16
+ backgroundColor: 'silver',
17
+ },
18
+ },
19
+ } as const,
20
+ defaultVariants: {
21
+ checked: false,
22
+ },
23
+ })
24
+
25
+ const Thumb = styled(Stack, {
26
+ context: SwitchStyledContext,
27
+ width: 20,
28
+ height: 20,
29
+ backgroundColor: 'black',
30
+ borderRadius: 20,
31
+
32
+ variants: {
33
+ checked: {
34
+ true: {
35
+ opacity: 0.8,
36
+ },
37
+ false: {
38
+ opacity: 0.5,
39
+ },
40
+ },
41
+ } as const,
42
+ })
43
+
44
+ // TODO: remove ts-ignores
45
+ export const Switch = createSwitch({
46
+ // @ts-ignore
47
+ Frame,
48
+ // @ts-ignore
49
+ Thumb,
50
+ })
51
+
52
+ export function SwitchUnstyledDemo() {
53
+ return (
54
+ <YStack width={200} alignItems="center" space="$3">
55
+ <XStack space="$3" alignItems="center">
56
+ <Label htmlFor="unstyled-switch">Unstyled</Label>
57
+ <Switch defaultChecked id="unstyled-switch">
58
+ <Switch.Thumb animation="quick" />
59
+ </Switch>
60
+ </XStack>
61
+ </YStack>
62
+ )
63
+ }
@@ -5,23 +5,23 @@ export function ThemeBuilderDemo() {
5
5
  return (
6
6
  <YStack fullscreen ov="hidden">
7
7
  <XStack mah={200} y={-100} x={-50} rotate="-10deg">
8
- <Col y={35} bc="$color9" />
9
- <Col size="$8" y={30} bc="$color7" />
10
- <Col size="$6" y={-50} bc="$color5" />
11
- <Col size="$4" bc="$color3" />
12
- <Col size="$2" bc="$color1" />
13
- <Col size="$4" y={50} bc="$color3" />
14
- <Col size="$6" y={80} bc="$color5" />
15
- <Col size="$8" bc="$color7" />
16
- <Col bc="$color9" />
17
- <Col size="$8" bc="$color7" />
18
- <Col size="$6" y={80} bc="$color5" />
19
- <Col size="$4" y={50} bc="$color3" />
20
- <Col size="$2" bc="$color1" />
21
- <Col size="$4" bc="$color3" />
22
- <Col size="$6" y={-50} bc="$color5" />
23
- <Col size="$8" y={30} bc="$color7" />
24
- <Col y={35} bc="$color9" />
8
+ <Col y={35} bg="$color9" />
9
+ <Col size="$8" y={30} bg="$color7" />
10
+ <Col size="$6" y={-50} bg="$color5" />
11
+ <Col size="$4" bg="$color3" />
12
+ <Col size="$2" bg="$color1" />
13
+ <Col size="$4" y={50} bg="$color3" />
14
+ <Col size="$6" y={80} bg="$color5" />
15
+ <Col size="$8" bg="$color7" />
16
+ <Col bg="$color9" />
17
+ <Col size="$8" bg="$color7" />
18
+ <Col size="$6" y={80} bg="$color5" />
19
+ <Col size="$4" y={50} bg="$color3" />
20
+ <Col size="$2" bg="$color1" />
21
+ <Col size="$4" bg="$color3" />
22
+ <Col size="$6" y={-50} bg="$color5" />
23
+ <Col size="$8" y={30} bg="$color7" />
24
+ <Col y={35} bg="$color9" />
25
25
  </XStack>
26
26
  </YStack>
27
27
  )
package/src/index.tsx CHANGED
@@ -12,6 +12,8 @@ export * from './ButtonDemo'
12
12
  export * from './ThemeBuilderDemo'
13
13
  export * from './CardDemo'
14
14
  export * from './CheckboxDemo'
15
+ export * from './CheckboxHeadlessDemo'
16
+ export * from './CheckboxUnstyledDemo'
15
17
  export * from './ColorsDemo'
16
18
  export * from './DialogDemo'
17
19
  export * from './FormsDemo'
@@ -36,6 +38,8 @@ export * from './SliderDemo'
36
38
  export * from './SpinnerDemo'
37
39
  export * from './StacksDemo'
38
40
  export * from './SwitchDemo'
41
+ export * from './SwitchHeadlessDemo'
42
+ export * from './SwitchUnstyledDemo'
39
43
  export * from './TabsAdvancedDemo'
40
44
  export * from './TabsDemo'
41
45
  export * from './TextDemo'
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare function CheckboxHeadlessDemo(): JSX.Element;
3
+ //# sourceMappingURL=CheckboxHeadlessDemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxHeadlessDemo.d.ts","sourceRoot":"","sources":["../src/CheckboxHeadlessDemo.tsx"],"names":[],"mappings":";AAQA,wBAAgB,oBAAoB,gBAUnC"}
@@ -0,0 +1,157 @@
1
+ /// <reference types="react" />
2
+ export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
3
+ size?: import("tamagui").SizeTokens | undefined;
4
+ unstyled?: boolean | undefined;
5
+ disabled?: boolean | undefined;
6
+ elevation?: number | import("tamagui").SizeTokens | undefined;
7
+ transparent?: boolean | undefined;
8
+ fullscreen?: boolean | undefined;
9
+ circular?: boolean | undefined;
10
+ hoverTheme?: boolean | undefined;
11
+ pressTheme?: boolean | undefined;
12
+ focusTheme?: boolean | undefined;
13
+ elevate?: boolean | undefined;
14
+ bordered?: number | boolean | undefined;
15
+ backgrounded?: boolean | undefined;
16
+ radiused?: boolean | undefined;
17
+ padded?: boolean | undefined;
18
+ chromeless?: boolean | "all" | undefined;
19
+ }>, "borderColor" | "outlineColor" | "shadowColor" | "native" | "display" | "x" | "y" | "perspective" | "scale" | "scaleX" | "scaleY" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "contain" | "touchAction" | "cursor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "pointerEvents" | "userSelect" | "space" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "rowGap" | "gap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "position" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "children" | "style" | "hitSlop" | "id" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "role" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "theme" | "target" | "asChild" | "dangerouslySetInnerHTML" | "debug" | "disabled" | "className" | "themeShallow" | "themeInverse" | "tag" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "disableOptimization" | "forceStyle" | "disableClassName" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onFocus" | "onBlur" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "value" | "name" | "scaleIcon" | "checked" | "defaultChecked" | "required" | "onCheckedChange" | "labelledBy" | "scaleSize" | "sizeAdjust" | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}`> & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & import("@tamagui/checkbox-headless").CheckboxExtraProps & {
20
+ scaleIcon?: number | undefined;
21
+ scaleSize?: number | undefined;
22
+ sizeAdjust?: number | undefined;
23
+ native?: import("tamagui").NativeValue<"web"> | undefined;
24
+ } & import("react").RefAttributes<import("tamagui").TamaguiElement>> & import("@tamagui/core").StaticComponentObject<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
25
+ size?: import("tamagui").SizeTokens | undefined;
26
+ unstyled?: boolean | undefined;
27
+ disabled?: boolean | undefined;
28
+ elevation?: number | import("tamagui").SizeTokens | undefined;
29
+ transparent?: boolean | undefined;
30
+ fullscreen?: boolean | undefined;
31
+ circular?: boolean | undefined;
32
+ hoverTheme?: boolean | undefined;
33
+ pressTheme?: boolean | undefined;
34
+ focusTheme?: boolean | undefined;
35
+ elevate?: boolean | undefined;
36
+ bordered?: number | boolean | undefined;
37
+ backgrounded?: boolean | undefined;
38
+ radiused?: boolean | undefined;
39
+ padded?: boolean | undefined;
40
+ chromeless?: boolean | "all" | undefined;
41
+ }>, "borderColor" | "outlineColor" | "shadowColor" | "native" | "display" | "x" | "y" | "perspective" | "scale" | "scaleX" | "scaleY" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "contain" | "touchAction" | "cursor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "pointerEvents" | "userSelect" | "space" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "rowGap" | "gap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "position" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "children" | "style" | "hitSlop" | "id" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "role" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "theme" | "target" | "asChild" | "dangerouslySetInnerHTML" | "debug" | "disabled" | "className" | "themeShallow" | "themeInverse" | "tag" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "disableOptimization" | "forceStyle" | "disableClassName" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onFocus" | "onBlur" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "value" | "name" | "scaleIcon" | "checked" | "defaultChecked" | "required" | "onCheckedChange" | "labelledBy" | "scaleSize" | "sizeAdjust" | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}`> & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & import("@tamagui/checkbox-headless").CheckboxExtraProps & {
42
+ scaleIcon?: number | undefined;
43
+ scaleSize?: number | undefined;
44
+ sizeAdjust?: number | undefined;
45
+ native?: import("tamagui").NativeValue<"web"> | undefined;
46
+ }, import("tamagui").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & import("@tamagui/checkbox-headless").CheckboxExtraProps & {
47
+ scaleIcon?: number | undefined;
48
+ scaleSize?: number | undefined;
49
+ sizeAdjust?: number | undefined;
50
+ native?: import("tamagui").NativeValue<"web"> | undefined;
51
+ }, import("@tamagui/core").StackStyleBase, {
52
+ size?: import("tamagui").SizeTokens | undefined;
53
+ unstyled?: boolean | undefined;
54
+ disabled?: boolean | undefined;
55
+ elevation?: number | import("tamagui").SizeTokens | undefined;
56
+ transparent?: boolean | undefined;
57
+ fullscreen?: boolean | undefined;
58
+ circular?: boolean | undefined;
59
+ hoverTheme?: boolean | undefined;
60
+ pressTheme?: boolean | undefined;
61
+ focusTheme?: boolean | undefined;
62
+ elevate?: boolean | undefined;
63
+ bordered?: number | boolean | undefined;
64
+ backgrounded?: boolean | undefined;
65
+ radiused?: boolean | undefined;
66
+ padded?: boolean | undefined;
67
+ chromeless?: boolean | "all" | undefined;
68
+ }, import("@tamagui/core").StaticConfigPublic> & Omit<import("@tamagui/core").StaticConfigPublic, "staticConfig" | "extractable" | "styleable"> & {
69
+ __tama: [Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
70
+ size?: import("tamagui").SizeTokens | undefined;
71
+ unstyled?: boolean | undefined;
72
+ disabled?: boolean | undefined;
73
+ elevation?: number | import("tamagui").SizeTokens | undefined;
74
+ transparent?: boolean | undefined;
75
+ fullscreen?: boolean | undefined;
76
+ circular?: boolean | undefined;
77
+ hoverTheme?: boolean | undefined;
78
+ pressTheme?: boolean | undefined;
79
+ focusTheme?: boolean | undefined;
80
+ elevate?: boolean | undefined;
81
+ bordered?: number | boolean | undefined;
82
+ backgrounded?: boolean | undefined;
83
+ radiused?: boolean | undefined;
84
+ padded?: boolean | undefined;
85
+ chromeless?: boolean | "all" | undefined;
86
+ }>, "borderColor" | "outlineColor" | "shadowColor" | "native" | "display" | "x" | "y" | "perspective" | "scale" | "scaleX" | "scaleY" | "skewX" | "skewY" | "matrix" | "rotate" | "rotateY" | "rotateX" | "rotateZ" | "contain" | "touchAction" | "cursor" | "outlineOffset" | "outlineStyle" | "outlineWidth" | "pointerEvents" | "userSelect" | "space" | "spaceDirection" | "separator" | "animation" | "animateOnly" | "transformOrigin" | "backfaceVisibility" | "backgroundColor" | "borderBlockColor" | "borderBlockEndColor" | "borderBlockStartColor" | "borderBottomColor" | "borderBottomEndRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStartRadius" | "borderCurve" | "borderEndColor" | "borderEndEndRadius" | "borderEndStartRadius" | "borderLeftColor" | "borderRadius" | "borderRightColor" | "borderStartColor" | "borderStartEndRadius" | "borderStartStartRadius" | "borderStyle" | "borderTopColor" | "borderTopEndRadius" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStartRadius" | "opacity" | "alignContent" | "alignItems" | "alignSelf" | "aspectRatio" | "borderBottomWidth" | "borderEndWidth" | "borderLeftWidth" | "borderRightWidth" | "borderStartWidth" | "borderTopWidth" | "borderWidth" | "bottom" | "end" | "flex" | "flexBasis" | "flexDirection" | "rowGap" | "gap" | "columnGap" | "flexGrow" | "flexShrink" | "flexWrap" | "height" | "justifyContent" | "left" | "margin" | "marginBottom" | "marginEnd" | "marginHorizontal" | "marginLeft" | "marginRight" | "marginStart" | "marginTop" | "marginVertical" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "overflow" | "padding" | "paddingBottom" | "paddingEnd" | "paddingHorizontal" | "paddingLeft" | "paddingRight" | "paddingStart" | "paddingTop" | "paddingVertical" | "position" | "right" | "start" | "top" | "width" | "zIndex" | "direction" | "shadowOffset" | "shadowOpacity" | "shadowRadius" | "transform" | "transformMatrix" | "rotation" | "translateX" | "translateY" | "children" | "style" | "hitSlop" | "id" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerUp" | "onPointerUpCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "aria-label" | "accessibilityRole" | "accessibilityState" | "aria-busy" | "aria-checked" | "aria-disabled" | "aria-expanded" | "aria-selected" | "aria-labelledby" | "accessibilityHint" | "accessibilityValue" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onAccessibilityAction" | "importantForAccessibility" | "aria-hidden" | "aria-live" | "aria-modal" | "role" | "accessibilityLiveRegion" | "accessibilityLabelledBy" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "accessibilityLanguage" | "theme" | "target" | "asChild" | "dangerouslySetInnerHTML" | "debug" | "disabled" | "className" | "themeShallow" | "themeInverse" | "tag" | "group" | "untilMeasured" | "componentName" | "tabIndex" | "disableOptimization" | "forceStyle" | "disableClassName" | "onPress" | "onLongPress" | "onPressIn" | "onPressOut" | "onHoverIn" | "onHoverOut" | "onMouseEnter" | "onMouseLeave" | "onMouseDown" | "onMouseUp" | "onFocus" | "onBlur" | "hoverStyle" | "pressStyle" | "focusStyle" | "exitStyle" | "enterStyle" | "value" | "name" | "scaleIcon" | "checked" | "defaultChecked" | "required" | "onCheckedChange" | "labelledBy" | "scaleSize" | "sizeAdjust" | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}`> & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & import("@tamagui/checkbox-headless").CheckboxExtraProps & {
87
+ scaleIcon?: number | undefined;
88
+ scaleSize?: number | undefined;
89
+ sizeAdjust?: number | undefined;
90
+ native?: import("tamagui").NativeValue<"web"> | undefined;
91
+ }, import("tamagui").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & import("@tamagui/checkbox-headless").CheckboxExtraProps & {
92
+ scaleIcon?: number | undefined;
93
+ scaleSize?: number | undefined;
94
+ sizeAdjust?: number | undefined;
95
+ native?: import("tamagui").NativeValue<"web"> | undefined;
96
+ }, import("@tamagui/core").StackStyleBase, {
97
+ size?: import("tamagui").SizeTokens | undefined;
98
+ unstyled?: boolean | undefined;
99
+ disabled?: boolean | undefined;
100
+ elevation?: number | import("tamagui").SizeTokens | undefined;
101
+ transparent?: boolean | undefined;
102
+ fullscreen?: boolean | undefined;
103
+ circular?: boolean | undefined;
104
+ hoverTheme?: boolean | undefined;
105
+ pressTheme?: boolean | undefined;
106
+ focusTheme?: boolean | undefined;
107
+ elevate?: boolean | undefined;
108
+ bordered?: number | boolean | undefined;
109
+ backgrounded?: boolean | undefined;
110
+ radiused?: boolean | undefined;
111
+ padded?: boolean | undefined;
112
+ chromeless?: boolean | "all" | undefined;
113
+ }, import("@tamagui/core").StaticConfigPublic];
114
+ } & {
115
+ Indicator: import("tamagui").TamaguiComponent<Omit<import("@tamagui/core").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/core").StackStyleBase, {
116
+ unstyled?: boolean | undefined;
117
+ elevation?: number | import("tamagui").SizeTokens | undefined;
118
+ transparent?: boolean | undefined;
119
+ fullscreen?: boolean | undefined;
120
+ circular?: boolean | undefined;
121
+ hoverTheme?: boolean | undefined;
122
+ pressTheme?: boolean | undefined;
123
+ focusTheme?: boolean | undefined;
124
+ elevate?: boolean | undefined;
125
+ bordered?: number | boolean | undefined;
126
+ backgrounded?: boolean | undefined;
127
+ radiused?: boolean | undefined;
128
+ padded?: boolean | undefined;
129
+ chromeless?: boolean | "all" | undefined;
130
+ }>, keyof import("@tamagui/core").StackStyleBase | keyof import("tamagui").StackNonStyleProps | keyof import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> | `$${string}` | `$${number}` | `$theme-${string}` | `$theme-${number}` | keyof {
131
+ forceMount?: boolean | undefined;
132
+ disablePassStyles?: boolean | undefined;
133
+ }> & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
134
+ forceMount?: boolean | undefined;
135
+ disablePassStyles?: boolean | undefined;
136
+ }, import("tamagui").TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps & import("tamagui").StackNonStyleProps & import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>> & import("@tamagui/core").WithPseudoProps<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase> & import("@tamagui/core").WithShorthands<import("@tamagui/core").WithThemeValues<import("@tamagui/core").StackStyleBase>>> & import("@tamagui/core").WithMediaProps<import("@tamagui/core").WithThemeShorthandsAndPseudos<import("@tamagui/core").StackStyleBase, {}>> & {
137
+ forceMount?: boolean | undefined;
138
+ disablePassStyles?: boolean | undefined;
139
+ }, import("@tamagui/core").StackStyleBase, {
140
+ unstyled?: boolean | undefined;
141
+ elevation?: number | import("tamagui").SizeTokens | undefined;
142
+ transparent?: boolean | undefined;
143
+ fullscreen?: boolean | undefined;
144
+ circular?: boolean | undefined;
145
+ hoverTheme?: boolean | undefined;
146
+ pressTheme?: boolean | undefined;
147
+ focusTheme?: boolean | undefined;
148
+ elevate?: boolean | undefined;
149
+ bordered?: number | boolean | undefined;
150
+ backgrounded?: boolean | undefined;
151
+ radiused?: boolean | undefined;
152
+ padded?: boolean | undefined;
153
+ chromeless?: boolean | "all" | undefined;
154
+ }, import("@tamagui/core").StaticConfigPublic>;
155
+ };
156
+ export declare function CheckboxUnstyledDemo(): JSX.Element;
157
+ //# sourceMappingURL=CheckboxUnstyledDemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxUnstyledDemo.d.ts","sourceRoot":"","sources":["../src/CheckboxUnstyledDemo.tsx"],"names":[],"mappings":";AA8BA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAA;AAEF,wBAAgB,oBAAoB,gBAanC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DialogDemo.d.ts","sourceRoot":"","sources":["../src/DialogDemo.tsx"],"names":[],"mappings":";AAkBA,wBAAgB,UAAU,gBAEzB"}
1
+ {"version":3,"file":"DialogDemo.d.ts","sourceRoot":"","sources":["../src/DialogDemo.tsx"],"names":[],"mappings":";AAiBA,wBAAgB,UAAU,gBAEzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"SelectDemo.d.ts","sourceRoot":"","sources":["../src/SelectDemo.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1D,wBAAgB,UAAU,gBAkBzB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,eAkIhD"}
1
+ {"version":3,"file":"SelectDemo.d.ts","sourceRoot":"","sources":["../src/SelectDemo.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,EAAkB,WAAW,EAAE,MAAM,SAAS,CAAA;AAI1D,wBAAgB,UAAU,gBAkBzB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,WAAW,eA4HhD"}
@@ -1 +1 @@
1
- {"version":3,"file":"SwitchDemo.d.ts","sourceRoot":"","sources":["../src/SwitchDemo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,wBAAgB,UAAU,gBAqBzB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,eAmBpF"}
1
+ {"version":3,"file":"SwitchDemo.d.ts","sourceRoot":"","sources":["../src/SwitchDemo.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAGzC,wBAAgB,UAAU,gBAiBzB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,cAAc,CAAC,EAAE,OAAO,CAAA;CAAE,eAmBpF"}
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare function SwitchHeadlessDemo(): JSX.Element;
3
+ //# sourceMappingURL=SwitchHeadlessDemo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SwitchHeadlessDemo.d.ts","sourceRoot":"","sources":["../src/SwitchHeadlessDemo.tsx"],"names":[],"mappings":";AAOA,wBAAgB,kBAAkB,gBASjC"}