@xleddyl/443-components-native 0.0.0-stage → 0.1.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 (727) hide show
  1. package/README.md +454 -2
  2. package/assets/fonts/funnel-display/FunnelDisplay-Bold.ttf +0 -0
  3. package/assets/fonts/funnel-display/OFL.txt +93 -0
  4. package/assets/fonts/funnel-sans/FunnelSans-Bold.ttf +0 -0
  5. package/assets/fonts/funnel-sans/FunnelSans-Medium.ttf +0 -0
  6. package/assets/fonts/funnel-sans/FunnelSans-Regular.ttf +0 -0
  7. package/assets/fonts/funnel-sans/FunnelSans-SemiBold.ttf +0 -0
  8. package/assets/fonts/funnel-sans/OFL.txt +93 -0
  9. package/assets/fonts/index.d.ts +16 -0
  10. package/assets/fonts/index.js +18 -0
  11. package/assets/fonts/unbounded/OFL.txt +93 -0
  12. package/assets/fonts/unbounded/Unbounded-SemiBold.ttf +0 -0
  13. package/lib/module/components/core/Button.js +124 -0
  14. package/lib/module/components/core/Button.js.map +1 -0
  15. package/lib/module/components/core/DefaultIcon.js +541 -0
  16. package/lib/module/components/core/DefaultIcon.js.map +1 -0
  17. package/lib/module/components/core/FieldLabel.js +52 -0
  18. package/lib/module/components/core/FieldLabel.js.map +1 -0
  19. package/lib/module/components/core/Icon.js +67 -0
  20. package/lib/module/components/core/Icon.js.map +1 -0
  21. package/lib/module/components/core/IconButton.js +63 -0
  22. package/lib/module/components/core/IconButton.js.map +1 -0
  23. package/lib/module/components/core/Screen.js +140 -0
  24. package/lib/module/components/core/Screen.js.map +1 -0
  25. package/lib/module/components/core/Spinner.js +60 -0
  26. package/lib/module/components/core/Spinner.js.map +1 -0
  27. package/lib/module/components/core/Stack.js +60 -0
  28. package/lib/module/components/core/Stack.js.map +1 -0
  29. package/lib/module/components/core/Text.js +69 -0
  30. package/lib/module/components/core/Text.js.map +1 -0
  31. package/lib/module/components/core/TextField.js +191 -0
  32. package/lib/module/components/core/TextField.js.map +1 -0
  33. package/lib/module/components/core/Touchable.js +51 -0
  34. package/lib/module/components/core/Touchable.js.map +1 -0
  35. package/lib/module/components/core/buttonColors.js +33 -0
  36. package/lib/module/components/core/buttonColors.js.map +1 -0
  37. package/lib/module/components/core/field.js +41 -0
  38. package/lib/module/components/core/field.js.map +1 -0
  39. package/lib/module/components/core/index.js +14 -0
  40. package/lib/module/components/core/index.js.map +1 -0
  41. package/lib/module/components/display/Avatar.js +78 -0
  42. package/lib/module/components/display/Avatar.js.map +1 -0
  43. package/lib/module/components/display/AvatarGroup.js +55 -0
  44. package/lib/module/components/display/AvatarGroup.js.map +1 -0
  45. package/lib/module/components/display/Badge.js +77 -0
  46. package/lib/module/components/display/Badge.js.map +1 -0
  47. package/lib/module/components/display/Banner.js +91 -0
  48. package/lib/module/components/display/Banner.js.map +1 -0
  49. package/lib/module/components/display/Card.js +84 -0
  50. package/lib/module/components/display/Card.js.map +1 -0
  51. package/lib/module/components/display/Chip.js +122 -0
  52. package/lib/module/components/display/Chip.js.map +1 -0
  53. package/lib/module/components/display/DescriptionList.js +40 -0
  54. package/lib/module/components/display/DescriptionList.js.map +1 -0
  55. package/lib/module/components/display/Divider.js +65 -0
  56. package/lib/module/components/display/Divider.js.map +1 -0
  57. package/lib/module/components/display/EmptyState.js +69 -0
  58. package/lib/module/components/display/EmptyState.js.map +1 -0
  59. package/lib/module/components/display/KeyValue.js +53 -0
  60. package/lib/module/components/display/KeyValue.js.map +1 -0
  61. package/lib/module/components/display/List.js +156 -0
  62. package/lib/module/components/display/List.js.map +1 -0
  63. package/lib/module/components/display/ListItem.js +106 -0
  64. package/lib/module/components/display/ListItem.js.map +1 -0
  65. package/lib/module/components/display/ProgressBar.js +121 -0
  66. package/lib/module/components/display/ProgressBar.js.map +1 -0
  67. package/lib/module/components/display/ProgressRing.js +104 -0
  68. package/lib/module/components/display/ProgressRing.js.map +1 -0
  69. package/lib/module/components/display/Skeleton.js +146 -0
  70. package/lib/module/components/display/Skeleton.js.map +1 -0
  71. package/lib/module/components/display/Stat.js +112 -0
  72. package/lib/module/components/display/Stat.js.map +1 -0
  73. package/lib/module/components/display/Tag.js +14 -0
  74. package/lib/module/components/display/Tag.js.map +1 -0
  75. package/lib/module/components/display/index.js +20 -0
  76. package/lib/module/components/display/index.js.map +1 -0
  77. package/lib/module/components/forms/Calendar.js +162 -0
  78. package/lib/module/components/forms/Calendar.js.map +1 -0
  79. package/lib/module/components/forms/Checkbox.js +131 -0
  80. package/lib/module/components/forms/Checkbox.js.map +1 -0
  81. package/lib/module/components/forms/CheckboxGroup.js +59 -0
  82. package/lib/module/components/forms/CheckboxGroup.js.map +1 -0
  83. package/lib/module/components/forms/ChipInput.js +167 -0
  84. package/lib/module/components/forms/ChipInput.js.map +1 -0
  85. package/lib/module/components/forms/ControlLabel.js +37 -0
  86. package/lib/module/components/forms/ControlLabel.js.map +1 -0
  87. package/lib/module/components/forms/DateField.js +138 -0
  88. package/lib/module/components/forms/DateField.js.map +1 -0
  89. package/lib/module/components/forms/Field.js +61 -0
  90. package/lib/module/components/forms/Field.js.map +1 -0
  91. package/lib/module/components/forms/MonthPicker.js +124 -0
  92. package/lib/module/components/forms/MonthPicker.js.map +1 -0
  93. package/lib/module/components/forms/PeriodHeader.js +53 -0
  94. package/lib/module/components/forms/PeriodHeader.js.map +1 -0
  95. package/lib/module/components/forms/PinInput.js +167 -0
  96. package/lib/module/components/forms/PinInput.js.map +1 -0
  97. package/lib/module/components/forms/PinPad.js +147 -0
  98. package/lib/module/components/forms/PinPad.js.map +1 -0
  99. package/lib/module/components/forms/Radio.js +95 -0
  100. package/lib/module/components/forms/Radio.js.map +1 -0
  101. package/lib/module/components/forms/RadioGroup.js +59 -0
  102. package/lib/module/components/forms/RadioGroup.js.map +1 -0
  103. package/lib/module/components/forms/SegmentedControl.js +124 -0
  104. package/lib/module/components/forms/SegmentedControl.js.map +1 -0
  105. package/lib/module/components/forms/Slider.js +188 -0
  106. package/lib/module/components/forms/Slider.js.map +1 -0
  107. package/lib/module/components/forms/Stepper.js +103 -0
  108. package/lib/module/components/forms/Stepper.js.map +1 -0
  109. package/lib/module/components/forms/Switch.js +117 -0
  110. package/lib/module/components/forms/Switch.js.map +1 -0
  111. package/lib/module/components/forms/checkboxGroupContext.js +6 -0
  112. package/lib/module/components/forms/checkboxGroupContext.js.map +1 -0
  113. package/lib/module/components/forms/dateUtils.js +37 -0
  114. package/lib/module/components/forms/dateUtils.js.map +1 -0
  115. package/lib/module/components/forms/fieldContext.js +24 -0
  116. package/lib/module/components/forms/fieldContext.js.map +1 -0
  117. package/lib/module/components/forms/groupLayout.js +8 -0
  118. package/lib/module/components/forms/groupLayout.js.map +1 -0
  119. package/lib/module/components/forms/index.js +19 -0
  120. package/lib/module/components/forms/index.js.map +1 -0
  121. package/lib/module/components/forms/radioGroupContext.js +6 -0
  122. package/lib/module/components/forms/radioGroupContext.js.map +1 -0
  123. package/lib/module/components/navigation/BackButton.js +70 -0
  124. package/lib/module/components/navigation/BackButton.js.map +1 -0
  125. package/lib/module/components/navigation/Header.js +216 -0
  126. package/lib/module/components/navigation/Header.js.map +1 -0
  127. package/lib/module/components/navigation/TabBar.js +165 -0
  128. package/lib/module/components/navigation/TabBar.js.map +1 -0
  129. package/lib/module/components/navigation/TabBarItem.js +96 -0
  130. package/lib/module/components/navigation/TabBarItem.js.map +1 -0
  131. package/lib/module/components/navigation/Tabs.js +276 -0
  132. package/lib/module/components/navigation/Tabs.js.map +1 -0
  133. package/lib/module/components/navigation/index.js +9 -0
  134. package/lib/module/components/navigation/index.js.map +1 -0
  135. package/lib/module/components/navigation/tabBarStore.js +11 -0
  136. package/lib/module/components/navigation/tabBarStore.js.map +1 -0
  137. package/lib/module/components/navigation/tabBarUtils.js +19 -0
  138. package/lib/module/components/navigation/tabBarUtils.js.map +1 -0
  139. package/lib/module/components/navigation/useScrollOffset.js +14 -0
  140. package/lib/module/components/navigation/useScrollOffset.js.map +1 -0
  141. package/lib/module/components/overlays/ActionSheet.js +134 -0
  142. package/lib/module/components/overlays/ActionSheet.js.map +1 -0
  143. package/lib/module/components/overlays/ActionSheetHost.js +41 -0
  144. package/lib/module/components/overlays/ActionSheetHost.js.map +1 -0
  145. package/lib/module/components/overlays/Backdrop.js +53 -0
  146. package/lib/module/components/overlays/Backdrop.js.map +1 -0
  147. package/lib/module/components/overlays/Dialog.js +140 -0
  148. package/lib/module/components/overlays/Dialog.js.map +1 -0
  149. package/lib/module/components/overlays/DialogHost.js +116 -0
  150. package/lib/module/components/overlays/DialogHost.js.map +1 -0
  151. package/lib/module/components/overlays/LoadingHost.js +13 -0
  152. package/lib/module/components/overlays/LoadingHost.js.map +1 -0
  153. package/lib/module/components/overlays/LoadingOverlay.js +74 -0
  154. package/lib/module/components/overlays/LoadingOverlay.js.map +1 -0
  155. package/lib/module/components/overlays/Menu.js +40 -0
  156. package/lib/module/components/overlays/Menu.js.map +1 -0
  157. package/lib/module/components/overlays/MenuItem.js +89 -0
  158. package/lib/module/components/overlays/MenuItem.js.map +1 -0
  159. package/lib/module/components/overlays/Overlay.js +160 -0
  160. package/lib/module/components/overlays/Overlay.js.map +1 -0
  161. package/lib/module/components/overlays/OverlayHeader.js +55 -0
  162. package/lib/module/components/overlays/OverlayHeader.js.map +1 -0
  163. package/lib/module/components/overlays/OverlayHost.js +69 -0
  164. package/lib/module/components/overlays/OverlayHost.js.map +1 -0
  165. package/lib/module/components/overlays/Popover.js +149 -0
  166. package/lib/module/components/overlays/Popover.js.map +1 -0
  167. package/lib/module/components/overlays/Portal.js +101 -0
  168. package/lib/module/components/overlays/Portal.js.map +1 -0
  169. package/lib/module/components/overlays/Select.js +241 -0
  170. package/lib/module/components/overlays/Select.js.map +1 -0
  171. package/lib/module/components/overlays/SelectOptionRow.js +91 -0
  172. package/lib/module/components/overlays/SelectOptionRow.js.map +1 -0
  173. package/lib/module/components/overlays/Sheet.js +371 -0
  174. package/lib/module/components/overlays/Sheet.js.map +1 -0
  175. package/lib/module/components/overlays/Toast.js +311 -0
  176. package/lib/module/components/overlays/Toast.js.map +1 -0
  177. package/lib/module/components/overlays/ToastHost.js +94 -0
  178. package/lib/module/components/overlays/ToastHost.js.map +1 -0
  179. package/lib/module/components/overlays/UiProvider.js +68 -0
  180. package/lib/module/components/overlays/UiProvider.js.map +1 -0
  181. package/lib/module/components/overlays/actionColor.js +5 -0
  182. package/lib/module/components/overlays/actionColor.js.map +1 -0
  183. package/lib/module/components/overlays/actionSheetStore.js +21 -0
  184. package/lib/module/components/overlays/actionSheetStore.js.map +1 -0
  185. package/lib/module/components/overlays/anchorPosition.js +42 -0
  186. package/lib/module/components/overlays/anchorPosition.js.map +1 -0
  187. package/lib/module/components/overlays/dialogStore.js +27 -0
  188. package/lib/module/components/overlays/dialogStore.js.map +1 -0
  189. package/lib/module/components/overlays/index.js +24 -0
  190. package/lib/module/components/overlays/index.js.map +1 -0
  191. package/lib/module/components/overlays/loadingStore.js +61 -0
  192. package/lib/module/components/overlays/loadingStore.js.map +1 -0
  193. package/lib/module/components/overlays/overlayA11y.js +203 -0
  194. package/lib/module/components/overlays/overlayA11y.js.map +1 -0
  195. package/lib/module/components/overlays/overlayStore.js +48 -0
  196. package/lib/module/components/overlays/overlayStore.js.map +1 -0
  197. package/lib/module/components/overlays/portalStore.js +25 -0
  198. package/lib/module/components/overlays/portalStore.js.map +1 -0
  199. package/lib/module/components/overlays/sheetRegistry.js +15 -0
  200. package/lib/module/components/overlays/sheetRegistry.js.map +1 -0
  201. package/lib/module/components/overlays/sheetSnaps.js +27 -0
  202. package/lib/module/components/overlays/sheetSnaps.js.map +1 -0
  203. package/lib/module/components/overlays/toastStore.js +120 -0
  204. package/lib/module/components/overlays/toastStore.js.map +1 -0
  205. package/lib/module/components/overlays/useKeyboardOffset.js +29 -0
  206. package/lib/module/components/overlays/useKeyboardOffset.js.map +1 -0
  207. package/lib/module/hooks/index.js +7 -0
  208. package/lib/module/hooks/index.js.map +1 -0
  209. package/lib/module/hooks/useControllableState.js +25 -0
  210. package/lib/module/hooks/useControllableState.js.map +1 -0
  211. package/lib/module/hooks/useLoop.js +31 -0
  212. package/lib/module/hooks/useLoop.js.map +1 -0
  213. package/lib/module/hooks/usePressFeedback.js +46 -0
  214. package/lib/module/hooks/usePressFeedback.js.map +1 -0
  215. package/lib/module/hooks/useSafeSpacing.js +13 -0
  216. package/lib/module/hooks/useSafeSpacing.js.map +1 -0
  217. package/lib/module/hooks/useSlidingIndicator.js +61 -0
  218. package/lib/module/hooks/useSlidingIndicator.js.map +1 -0
  219. package/lib/module/hooks/useToggleProgress.js +28 -0
  220. package/lib/module/hooks/useToggleProgress.js.map +1 -0
  221. package/lib/module/hooks/useWebThemeName.js +8 -0
  222. package/lib/module/hooks/useWebThemeName.js.map +1 -0
  223. package/lib/module/icons/SvgIcon.js +24 -0
  224. package/lib/module/icons/SvgIcon.js.map +1 -0
  225. package/lib/module/icons/createSvgIconRenderer.js +33 -0
  226. package/lib/module/icons/createSvgIconRenderer.js.map +1 -0
  227. package/lib/module/icons/heroicons.js +70 -0
  228. package/lib/module/icons/heroicons.js.map +1 -0
  229. package/lib/module/icons/index.js +6 -0
  230. package/lib/module/icons/index.js.map +1 -0
  231. package/lib/module/index.js +11 -0
  232. package/lib/module/index.js.map +1 -0
  233. package/lib/module/native/GlassGroup.js +33 -0
  234. package/lib/module/native/GlassGroup.js.map +1 -0
  235. package/lib/module/native/GlassSurface.js +64 -0
  236. package/lib/module/native/GlassSurface.js.map +1 -0
  237. package/lib/module/native/NativeBottomSheet.js +103 -0
  238. package/lib/module/native/NativeBottomSheet.js.map +1 -0
  239. package/lib/module/native/NativeButton.js +49 -0
  240. package/lib/module/native/NativeButton.js.map +1 -0
  241. package/lib/module/native/NativeContextMenu.js +99 -0
  242. package/lib/module/native/NativeContextMenu.js.map +1 -0
  243. package/lib/module/native/NativeDatePicker.js +184 -0
  244. package/lib/module/native/NativeDatePicker.js.map +1 -0
  245. package/lib/module/native/NativeForm.js +90 -0
  246. package/lib/module/native/NativeForm.js.map +1 -0
  247. package/lib/module/native/NativePicker.js +180 -0
  248. package/lib/module/native/NativePicker.js.map +1 -0
  249. package/lib/module/native/NativeProgress.android.js +45 -0
  250. package/lib/module/native/NativeProgress.android.js.map +1 -0
  251. package/lib/module/native/NativeProgress.ios.js +41 -0
  252. package/lib/module/native/NativeProgress.ios.js.map +1 -0
  253. package/lib/module/native/NativeProgress.js +8 -0
  254. package/lib/module/native/NativeProgress.js.map +1 -0
  255. package/lib/module/native/NativeProgress.types.js +4 -0
  256. package/lib/module/native/NativeProgress.types.js.map +1 -0
  257. package/lib/module/native/NativeSlider.js +98 -0
  258. package/lib/module/native/NativeSlider.js.map +1 -0
  259. package/lib/module/native/NativeSwitch.js +53 -0
  260. package/lib/module/native/NativeSwitch.js.map +1 -0
  261. package/lib/module/native/NativeTextField.js +124 -0
  262. package/lib/module/native/NativeTextField.js.map +1 -0
  263. package/lib/module/native/fallbacks/FallbackDatePicker.js +126 -0
  264. package/lib/module/native/fallbacks/FallbackDatePicker.js.map +1 -0
  265. package/lib/module/native/fallbacks/FallbackForm.js +85 -0
  266. package/lib/module/native/fallbacks/FallbackForm.js.map +1 -0
  267. package/lib/module/native/fallbacks/dateFormat.js +63 -0
  268. package/lib/module/native/fallbacks/dateFormat.js.map +1 -0
  269. package/lib/module/native/fromMaterialColors.js +42 -0
  270. package/lib/module/native/fromMaterialColors.js.map +1 -0
  271. package/lib/module/native/index.js +19 -0
  272. package/lib/module/native/index.js.map +1 -0
  273. package/lib/module/native/internal/BaseProgress.js +35 -0
  274. package/lib/module/native/internal/BaseProgress.js.map +1 -0
  275. package/lib/module/native/internal/ControlHost.js +62 -0
  276. package/lib/module/native/internal/ControlHost.js.map +1 -0
  277. package/lib/module/native/internal/IosDatePicker.ios.js +50 -0
  278. package/lib/module/native/internal/IosDatePicker.ios.js.map +1 -0
  279. package/lib/module/native/internal/IosDatePicker.js +4 -0
  280. package/lib/module/native/internal/IosDatePicker.js.map +1 -0
  281. package/lib/module/native/internal/IosDatePicker.types.js +4 -0
  282. package/lib/module/native/internal/IosDatePicker.types.js.map +1 -0
  283. package/lib/module/native/internal/LabeledControl.js +42 -0
  284. package/lib/module/native/internal/LabeledControl.js.map +1 -0
  285. package/lib/module/native/internal/NativeHostContext.js +6 -0
  286. package/lib/module/native/internal/NativeHostContext.js.map +1 -0
  287. package/lib/module/native/internal/availability.js +12 -0
  288. package/lib/module/native/internal/availability.js.map +1 -0
  289. package/lib/module/native/internal/hostTheme.js +6 -0
  290. package/lib/module/native/internal/hostTheme.js.map +1 -0
  291. package/lib/module/native/internal/platformModifiers.android.js +8 -0
  292. package/lib/module/native/internal/platformModifiers.android.js.map +1 -0
  293. package/lib/module/native/internal/platformModifiers.ios.js +6 -0
  294. package/lib/module/native/internal/platformModifiers.ios.js.map +1 -0
  295. package/lib/module/native/internal/platformModifiers.js +5 -0
  296. package/lib/module/native/internal/platformModifiers.js.map +1 -0
  297. package/lib/module/native/internal/platformModifiers.types.js +4 -0
  298. package/lib/module/native/internal/platformModifiers.types.js.map +1 -0
  299. package/lib/module/native/internal/withNativeFallback.js +13 -0
  300. package/lib/module/native/internal/withNativeFallback.js.map +1 -0
  301. package/lib/module/native/materialColors.types.js +4 -0
  302. package/lib/module/native/materialColors.types.js.map +1 -0
  303. package/lib/module/native/menuTypes.js +2 -0
  304. package/lib/module/native/menuTypes.js.map +1 -0
  305. package/lib/module/native/tabs/index.js +5 -0
  306. package/lib/module/native/tabs/index.js.map +1 -0
  307. package/lib/module/native/tabs/useNativeTabsTheme.js +41 -0
  308. package/lib/module/native/tabs/useNativeTabsTheme.js.map +1 -0
  309. package/lib/module/native/useLiquidGlass.js +42 -0
  310. package/lib/module/native/useLiquidGlass.js.map +1 -0
  311. package/lib/module/native/useNativeColors.android.js +9 -0
  312. package/lib/module/native/useNativeColors.android.js.map +1 -0
  313. package/lib/module/native/useNativeColors.js +5 -0
  314. package/lib/module/native/useNativeColors.js.map +1 -0
  315. package/lib/module/package.json +1 -0
  316. package/lib/module/presets/controller.js +52 -0
  317. package/lib/module/presets/controller.js.map +1 -0
  318. package/lib/module/presets/default.js +174 -0
  319. package/lib/module/presets/default.js.map +1 -0
  320. package/lib/module/presets/definePreset.js +39 -0
  321. package/lib/module/presets/definePreset.js.map +1 -0
  322. package/lib/module/presets/funnel.js +83 -0
  323. package/lib/module/presets/funnel.js.map +1 -0
  324. package/lib/module/presets/index.js +8 -0
  325. package/lib/module/presets/index.js.map +1 -0
  326. package/lib/module/presets/presets.js +31 -0
  327. package/lib/module/presets/presets.js.map +1 -0
  328. package/lib/module/presets/spotfish.js +103 -0
  329. package/lib/module/presets/spotfish.js.map +1 -0
  330. package/lib/module/presets/suedtirol.js +101 -0
  331. package/lib/module/presets/suedtirol.js.map +1 -0
  332. package/lib/module/presets/types.js +4 -0
  333. package/lib/module/presets/types.js.map +1 -0
  334. package/lib/module/presets/usePreset.js +38 -0
  335. package/lib/module/presets/usePreset.js.map +1 -0
  336. package/lib/module/theme/configureUi.js +35 -0
  337. package/lib/module/theme/configureUi.js.map +1 -0
  338. package/lib/module/theme/createTheme.js +21 -0
  339. package/lib/module/theme/createTheme.js.map +1 -0
  340. package/lib/module/theme/defaults.js +184 -0
  341. package/lib/module/theme/defaults.js.map +1 -0
  342. package/lib/module/theme/index.js +8 -0
  343. package/lib/module/theme/index.js.map +1 -0
  344. package/lib/module/theme/settings.js +40 -0
  345. package/lib/module/theme/settings.js.map +1 -0
  346. package/lib/module/theme/tones.js +24 -0
  347. package/lib/module/theme/tones.js.map +1 -0
  348. package/lib/module/theme/types.js +4 -0
  349. package/lib/module/theme/types.js.map +1 -0
  350. package/lib/module/utils/a11y.js +25 -0
  351. package/lib/module/utils/a11y.js.map +1 -0
  352. package/lib/module/utils/createStore.js +27 -0
  353. package/lib/module/utils/createStore.js.map +1 -0
  354. package/lib/module/utils/fonts.js +39 -0
  355. package/lib/module/utils/fonts.js.map +1 -0
  356. package/lib/module/utils/hitSlop.js +13 -0
  357. package/lib/module/utils/hitSlop.js.map +1 -0
  358. package/lib/module/utils/index.js +4 -0
  359. package/lib/module/utils/index.js.map +1 -0
  360. package/lib/module/utils/math.js +20 -0
  361. package/lib/module/utils/math.js.map +1 -0
  362. package/lib/module/utils/refs.js +14 -0
  363. package/lib/module/utils/refs.js.map +1 -0
  364. package/lib/module/utils/statusIcon.js +10 -0
  365. package/lib/module/utils/statusIcon.js.map +1 -0
  366. package/lib/module/utils/styles.js +50 -0
  367. package/lib/module/utils/styles.js.map +1 -0
  368. package/lib/module/utils/types.js +4 -0
  369. package/lib/module/utils/types.js.map +1 -0
  370. package/lib/typescript/components/core/Button.d.ts +30 -0
  371. package/lib/typescript/components/core/Button.d.ts.map +1 -0
  372. package/lib/typescript/components/core/DefaultIcon.d.ts +11 -0
  373. package/lib/typescript/components/core/DefaultIcon.d.ts.map +1 -0
  374. package/lib/typescript/components/core/FieldLabel.d.ts +19 -0
  375. package/lib/typescript/components/core/FieldLabel.d.ts.map +1 -0
  376. package/lib/typescript/components/core/Icon.d.ts +21 -0
  377. package/lib/typescript/components/core/Icon.d.ts.map +1 -0
  378. package/lib/typescript/components/core/IconButton.d.ts +19 -0
  379. package/lib/typescript/components/core/IconButton.d.ts.map +1 -0
  380. package/lib/typescript/components/core/Screen.d.ts +36 -0
  381. package/lib/typescript/components/core/Screen.d.ts.map +1 -0
  382. package/lib/typescript/components/core/Spinner.d.ts +11 -0
  383. package/lib/typescript/components/core/Spinner.d.ts.map +1 -0
  384. package/lib/typescript/components/core/Stack.d.ts +22 -0
  385. package/lib/typescript/components/core/Stack.d.ts.map +1 -0
  386. package/lib/typescript/components/core/Text.d.ts +16 -0
  387. package/lib/typescript/components/core/Text.d.ts.map +1 -0
  388. package/lib/typescript/components/core/TextField.d.ts +34 -0
  389. package/lib/typescript/components/core/TextField.d.ts.map +1 -0
  390. package/lib/typescript/components/core/Touchable.d.ts +15 -0
  391. package/lib/typescript/components/core/Touchable.d.ts.map +1 -0
  392. package/lib/typescript/components/core/buttonColors.d.ts +9 -0
  393. package/lib/typescript/components/core/buttonColors.d.ts.map +1 -0
  394. package/lib/typescript/components/core/field.d.ts +23 -0
  395. package/lib/typescript/components/core/field.d.ts.map +1 -0
  396. package/lib/typescript/components/core/index.d.ts +22 -0
  397. package/lib/typescript/components/core/index.d.ts.map +1 -0
  398. package/lib/typescript/components/display/Avatar.d.ts +33 -0
  399. package/lib/typescript/components/display/Avatar.d.ts.map +1 -0
  400. package/lib/typescript/components/display/AvatarGroup.d.ts +14 -0
  401. package/lib/typescript/components/display/AvatarGroup.d.ts.map +1 -0
  402. package/lib/typescript/components/display/Badge.d.ts +34 -0
  403. package/lib/typescript/components/display/Badge.d.ts.map +1 -0
  404. package/lib/typescript/components/display/Banner.d.ts +29 -0
  405. package/lib/typescript/components/display/Banner.d.ts.map +1 -0
  406. package/lib/typescript/components/display/Card.d.ts +35 -0
  407. package/lib/typescript/components/display/Card.d.ts.map +1 -0
  408. package/lib/typescript/components/display/Chip.d.ts +39 -0
  409. package/lib/typescript/components/display/Chip.d.ts.map +1 -0
  410. package/lib/typescript/components/display/DescriptionList.d.ts +23 -0
  411. package/lib/typescript/components/display/DescriptionList.d.ts.map +1 -0
  412. package/lib/typescript/components/display/Divider.d.ts +19 -0
  413. package/lib/typescript/components/display/Divider.d.ts.map +1 -0
  414. package/lib/typescript/components/display/EmptyState.d.ts +23 -0
  415. package/lib/typescript/components/display/EmptyState.d.ts.map +1 -0
  416. package/lib/typescript/components/display/KeyValue.d.ts +19 -0
  417. package/lib/typescript/components/display/KeyValue.d.ts.map +1 -0
  418. package/lib/typescript/components/display/List.d.ts +47 -0
  419. package/lib/typescript/components/display/List.d.ts.map +1 -0
  420. package/lib/typescript/components/display/ListItem.d.ts +38 -0
  421. package/lib/typescript/components/display/ListItem.d.ts.map +1 -0
  422. package/lib/typescript/components/display/ProgressBar.d.ts +27 -0
  423. package/lib/typescript/components/display/ProgressBar.d.ts.map +1 -0
  424. package/lib/typescript/components/display/ProgressRing.d.ts +24 -0
  425. package/lib/typescript/components/display/ProgressRing.d.ts.map +1 -0
  426. package/lib/typescript/components/display/Skeleton.d.ts +18 -0
  427. package/lib/typescript/components/display/Skeleton.d.ts.map +1 -0
  428. package/lib/typescript/components/display/Stat.d.ts +29 -0
  429. package/lib/typescript/components/display/Stat.d.ts.map +1 -0
  430. package/lib/typescript/components/display/Tag.d.ts +4 -0
  431. package/lib/typescript/components/display/Tag.d.ts.map +1 -0
  432. package/lib/typescript/components/display/index.d.ts +35 -0
  433. package/lib/typescript/components/display/index.d.ts.map +1 -0
  434. package/lib/typescript/components/forms/Calendar.d.ts +45 -0
  435. package/lib/typescript/components/forms/Calendar.d.ts.map +1 -0
  436. package/lib/typescript/components/forms/Checkbox.d.ts +40 -0
  437. package/lib/typescript/components/forms/Checkbox.d.ts.map +1 -0
  438. package/lib/typescript/components/forms/CheckboxGroup.d.ts +27 -0
  439. package/lib/typescript/components/forms/CheckboxGroup.d.ts.map +1 -0
  440. package/lib/typescript/components/forms/ChipInput.d.ts +33 -0
  441. package/lib/typescript/components/forms/ChipInput.d.ts.map +1 -0
  442. package/lib/typescript/components/forms/ControlLabel.d.ts +11 -0
  443. package/lib/typescript/components/forms/ControlLabel.d.ts.map +1 -0
  444. package/lib/typescript/components/forms/DateField.d.ts +34 -0
  445. package/lib/typescript/components/forms/DateField.d.ts.map +1 -0
  446. package/lib/typescript/components/forms/Field.d.ts +24 -0
  447. package/lib/typescript/components/forms/Field.d.ts.map +1 -0
  448. package/lib/typescript/components/forms/MonthPicker.d.ts +32 -0
  449. package/lib/typescript/components/forms/MonthPicker.d.ts.map +1 -0
  450. package/lib/typescript/components/forms/PeriodHeader.d.ts +15 -0
  451. package/lib/typescript/components/forms/PeriodHeader.d.ts.map +1 -0
  452. package/lib/typescript/components/forms/PinInput.d.ts +38 -0
  453. package/lib/typescript/components/forms/PinInput.d.ts.map +1 -0
  454. package/lib/typescript/components/forms/PinPad.d.ts +45 -0
  455. package/lib/typescript/components/forms/PinPad.d.ts.map +1 -0
  456. package/lib/typescript/components/forms/Radio.d.ts +27 -0
  457. package/lib/typescript/components/forms/Radio.d.ts.map +1 -0
  458. package/lib/typescript/components/forms/RadioGroup.d.ts +27 -0
  459. package/lib/typescript/components/forms/RadioGroup.d.ts.map +1 -0
  460. package/lib/typescript/components/forms/SegmentedControl.d.ts +32 -0
  461. package/lib/typescript/components/forms/SegmentedControl.d.ts.map +1 -0
  462. package/lib/typescript/components/forms/Slider.d.ts +29 -0
  463. package/lib/typescript/components/forms/Slider.d.ts.map +1 -0
  464. package/lib/typescript/components/forms/Stepper.d.ts +29 -0
  465. package/lib/typescript/components/forms/Stepper.d.ts.map +1 -0
  466. package/lib/typescript/components/forms/Switch.d.ts +37 -0
  467. package/lib/typescript/components/forms/Switch.d.ts.map +1 -0
  468. package/lib/typescript/components/forms/checkboxGroupContext.d.ts +8 -0
  469. package/lib/typescript/components/forms/checkboxGroupContext.d.ts.map +1 -0
  470. package/lib/typescript/components/forms/dateUtils.d.ts +14 -0
  471. package/lib/typescript/components/forms/dateUtils.d.ts.map +1 -0
  472. package/lib/typescript/components/forms/fieldContext.d.ts +32 -0
  473. package/lib/typescript/components/forms/fieldContext.d.ts.map +1 -0
  474. package/lib/typescript/components/forms/groupLayout.d.ts +8 -0
  475. package/lib/typescript/components/forms/groupLayout.d.ts.map +1 -0
  476. package/lib/typescript/components/forms/index.d.ts +33 -0
  477. package/lib/typescript/components/forms/index.d.ts.map +1 -0
  478. package/lib/typescript/components/forms/radioGroupContext.d.ts +11 -0
  479. package/lib/typescript/components/forms/radioGroupContext.d.ts.map +1 -0
  480. package/lib/typescript/components/navigation/BackButton.d.ts +24 -0
  481. package/lib/typescript/components/navigation/BackButton.d.ts.map +1 -0
  482. package/lib/typescript/components/navigation/Header.d.ts +48 -0
  483. package/lib/typescript/components/navigation/Header.d.ts.map +1 -0
  484. package/lib/typescript/components/navigation/TabBar.d.ts +93 -0
  485. package/lib/typescript/components/navigation/TabBar.d.ts.map +1 -0
  486. package/lib/typescript/components/navigation/TabBarItem.d.ts +40 -0
  487. package/lib/typescript/components/navigation/TabBarItem.d.ts.map +1 -0
  488. package/lib/typescript/components/navigation/Tabs.d.ts +48 -0
  489. package/lib/typescript/components/navigation/Tabs.d.ts.map +1 -0
  490. package/lib/typescript/components/navigation/index.d.ts +11 -0
  491. package/lib/typescript/components/navigation/index.d.ts.map +1 -0
  492. package/lib/typescript/components/navigation/tabBarStore.d.ts +3 -0
  493. package/lib/typescript/components/navigation/tabBarStore.d.ts.map +1 -0
  494. package/lib/typescript/components/navigation/tabBarUtils.d.ts +16 -0
  495. package/lib/typescript/components/navigation/tabBarUtils.d.ts.map +1 -0
  496. package/lib/typescript/components/navigation/useScrollOffset.d.ts +5 -0
  497. package/lib/typescript/components/navigation/useScrollOffset.d.ts.map +1 -0
  498. package/lib/typescript/components/overlays/ActionSheet.d.ts +28 -0
  499. package/lib/typescript/components/overlays/ActionSheet.d.ts.map +1 -0
  500. package/lib/typescript/components/overlays/ActionSheetHost.d.ts +2 -0
  501. package/lib/typescript/components/overlays/ActionSheetHost.d.ts.map +1 -0
  502. package/lib/typescript/components/overlays/Backdrop.d.ts +12 -0
  503. package/lib/typescript/components/overlays/Backdrop.d.ts.map +1 -0
  504. package/lib/typescript/components/overlays/Dialog.d.ts +38 -0
  505. package/lib/typescript/components/overlays/Dialog.d.ts.map +1 -0
  506. package/lib/typescript/components/overlays/DialogHost.d.ts +2 -0
  507. package/lib/typescript/components/overlays/DialogHost.d.ts.map +1 -0
  508. package/lib/typescript/components/overlays/LoadingHost.d.ts +2 -0
  509. package/lib/typescript/components/overlays/LoadingHost.d.ts.map +1 -0
  510. package/lib/typescript/components/overlays/LoadingOverlay.d.ts +16 -0
  511. package/lib/typescript/components/overlays/LoadingOverlay.d.ts.map +1 -0
  512. package/lib/typescript/components/overlays/Menu.d.ts +20 -0
  513. package/lib/typescript/components/overlays/Menu.d.ts.map +1 -0
  514. package/lib/typescript/components/overlays/MenuItem.d.ts +24 -0
  515. package/lib/typescript/components/overlays/MenuItem.d.ts.map +1 -0
  516. package/lib/typescript/components/overlays/Overlay.d.ts +34 -0
  517. package/lib/typescript/components/overlays/Overlay.d.ts.map +1 -0
  518. package/lib/typescript/components/overlays/OverlayHeader.d.ts +18 -0
  519. package/lib/typescript/components/overlays/OverlayHeader.d.ts.map +1 -0
  520. package/lib/typescript/components/overlays/OverlayHost.d.ts +2 -0
  521. package/lib/typescript/components/overlays/OverlayHost.d.ts.map +1 -0
  522. package/lib/typescript/components/overlays/Popover.d.ts +47 -0
  523. package/lib/typescript/components/overlays/Popover.d.ts.map +1 -0
  524. package/lib/typescript/components/overlays/Portal.d.ts +13 -0
  525. package/lib/typescript/components/overlays/Portal.d.ts.map +1 -0
  526. package/lib/typescript/components/overlays/Select.d.ts +72 -0
  527. package/lib/typescript/components/overlays/Select.d.ts.map +1 -0
  528. package/lib/typescript/components/overlays/SelectOptionRow.d.ts +17 -0
  529. package/lib/typescript/components/overlays/SelectOptionRow.d.ts.map +1 -0
  530. package/lib/typescript/components/overlays/Sheet.d.ts +64 -0
  531. package/lib/typescript/components/overlays/Sheet.d.ts.map +1 -0
  532. package/lib/typescript/components/overlays/Toast.d.ts +57 -0
  533. package/lib/typescript/components/overlays/Toast.d.ts.map +1 -0
  534. package/lib/typescript/components/overlays/ToastHost.d.ts +13 -0
  535. package/lib/typescript/components/overlays/ToastHost.d.ts.map +1 -0
  536. package/lib/typescript/components/overlays/UiProvider.d.ts +14 -0
  537. package/lib/typescript/components/overlays/UiProvider.d.ts.map +1 -0
  538. package/lib/typescript/components/overlays/actionColor.d.ts +3 -0
  539. package/lib/typescript/components/overlays/actionColor.d.ts.map +1 -0
  540. package/lib/typescript/components/overlays/actionSheetStore.d.ts +25 -0
  541. package/lib/typescript/components/overlays/actionSheetStore.d.ts.map +1 -0
  542. package/lib/typescript/components/overlays/anchorPosition.d.ts +36 -0
  543. package/lib/typescript/components/overlays/anchorPosition.d.ts.map +1 -0
  544. package/lib/typescript/components/overlays/dialogStore.d.ts +48 -0
  545. package/lib/typescript/components/overlays/dialogStore.d.ts.map +1 -0
  546. package/lib/typescript/components/overlays/index.d.ts +40 -0
  547. package/lib/typescript/components/overlays/index.d.ts.map +1 -0
  548. package/lib/typescript/components/overlays/loadingStore.d.ts +27 -0
  549. package/lib/typescript/components/overlays/loadingStore.d.ts.map +1 -0
  550. package/lib/typescript/components/overlays/overlayA11y.d.ts +18 -0
  551. package/lib/typescript/components/overlays/overlayA11y.d.ts.map +1 -0
  552. package/lib/typescript/components/overlays/overlayStore.d.ts +50 -0
  553. package/lib/typescript/components/overlays/overlayStore.d.ts.map +1 -0
  554. package/lib/typescript/components/overlays/portalStore.d.ts +17 -0
  555. package/lib/typescript/components/overlays/portalStore.d.ts.map +1 -0
  556. package/lib/typescript/components/overlays/sheetRegistry.d.ts +5 -0
  557. package/lib/typescript/components/overlays/sheetRegistry.d.ts.map +1 -0
  558. package/lib/typescript/components/overlays/sheetSnaps.d.ts +4 -0
  559. package/lib/typescript/components/overlays/sheetSnaps.d.ts.map +1 -0
  560. package/lib/typescript/components/overlays/toastStore.d.ts +63 -0
  561. package/lib/typescript/components/overlays/toastStore.d.ts.map +1 -0
  562. package/lib/typescript/components/overlays/useKeyboardOffset.d.ts +2 -0
  563. package/lib/typescript/components/overlays/useKeyboardOffset.d.ts.map +1 -0
  564. package/lib/typescript/hooks/index.d.ts +6 -0
  565. package/lib/typescript/hooks/index.d.ts.map +1 -0
  566. package/lib/typescript/hooks/useControllableState.d.ts +9 -0
  567. package/lib/typescript/hooks/useControllableState.d.ts.map +1 -0
  568. package/lib/typescript/hooks/useLoop.d.ts +15 -0
  569. package/lib/typescript/hooks/useLoop.d.ts.map +1 -0
  570. package/lib/typescript/hooks/usePressFeedback.d.ts +18 -0
  571. package/lib/typescript/hooks/usePressFeedback.d.ts.map +1 -0
  572. package/lib/typescript/hooks/useSafeSpacing.d.ts +7 -0
  573. package/lib/typescript/hooks/useSafeSpacing.d.ts.map +1 -0
  574. package/lib/typescript/hooks/useSlidingIndicator.d.ts +14 -0
  575. package/lib/typescript/hooks/useSlidingIndicator.d.ts.map +1 -0
  576. package/lib/typescript/hooks/useToggleProgress.d.ts +3 -0
  577. package/lib/typescript/hooks/useToggleProgress.d.ts.map +1 -0
  578. package/lib/typescript/hooks/useWebThemeName.d.ts +2 -0
  579. package/lib/typescript/hooks/useWebThemeName.d.ts.map +1 -0
  580. package/lib/typescript/icons/SvgIcon.d.ts +9 -0
  581. package/lib/typescript/icons/SvgIcon.d.ts.map +1 -0
  582. package/lib/typescript/icons/createSvgIconRenderer.d.ts +10 -0
  583. package/lib/typescript/icons/createSvgIconRenderer.d.ts.map +1 -0
  584. package/lib/typescript/icons/heroicons.d.ts +3 -0
  585. package/lib/typescript/icons/heroicons.d.ts.map +1 -0
  586. package/lib/typescript/icons/index.d.ts +6 -0
  587. package/lib/typescript/icons/index.d.ts.map +1 -0
  588. package/lib/typescript/index.d.ts +9 -0
  589. package/lib/typescript/index.d.ts.map +1 -0
  590. package/lib/typescript/native/GlassGroup.d.ts +11 -0
  591. package/lib/typescript/native/GlassGroup.d.ts.map +1 -0
  592. package/lib/typescript/native/GlassSurface.d.ts +18 -0
  593. package/lib/typescript/native/GlassSurface.d.ts.map +1 -0
  594. package/lib/typescript/native/NativeBottomSheet.d.ts +16 -0
  595. package/lib/typescript/native/NativeBottomSheet.d.ts.map +1 -0
  596. package/lib/typescript/native/NativeButton.d.ts +17 -0
  597. package/lib/typescript/native/NativeButton.d.ts.map +1 -0
  598. package/lib/typescript/native/NativeContextMenu.d.ts +17 -0
  599. package/lib/typescript/native/NativeContextMenu.d.ts.map +1 -0
  600. package/lib/typescript/native/NativeDatePicker.d.ts +23 -0
  601. package/lib/typescript/native/NativeDatePicker.d.ts.map +1 -0
  602. package/lib/typescript/native/NativeForm.d.ts +21 -0
  603. package/lib/typescript/native/NativeForm.d.ts.map +1 -0
  604. package/lib/typescript/native/NativePicker.d.ts +22 -0
  605. package/lib/typescript/native/NativePicker.d.ts.map +1 -0
  606. package/lib/typescript/native/NativeProgress.android.d.ts +4 -0
  607. package/lib/typescript/native/NativeProgress.android.d.ts.map +1 -0
  608. package/lib/typescript/native/NativeProgress.d.ts +4 -0
  609. package/lib/typescript/native/NativeProgress.d.ts.map +1 -0
  610. package/lib/typescript/native/NativeProgress.ios.d.ts +4 -0
  611. package/lib/typescript/native/NativeProgress.ios.d.ts.map +1 -0
  612. package/lib/typescript/native/NativeProgress.types.d.ts +11 -0
  613. package/lib/typescript/native/NativeProgress.types.d.ts.map +1 -0
  614. package/lib/typescript/native/NativeSlider.d.ts +18 -0
  615. package/lib/typescript/native/NativeSlider.d.ts.map +1 -0
  616. package/lib/typescript/native/NativeSwitch.d.ts +15 -0
  617. package/lib/typescript/native/NativeSwitch.d.ts.map +1 -0
  618. package/lib/typescript/native/NativeTextField.d.ts +21 -0
  619. package/lib/typescript/native/NativeTextField.d.ts.map +1 -0
  620. package/lib/typescript/native/fallbacks/FallbackDatePicker.d.ts +14 -0
  621. package/lib/typescript/native/fallbacks/FallbackDatePicker.d.ts.map +1 -0
  622. package/lib/typescript/native/fallbacks/FallbackForm.d.ts +17 -0
  623. package/lib/typescript/native/fallbacks/FallbackForm.d.ts.map +1 -0
  624. package/lib/typescript/native/fallbacks/dateFormat.d.ts +7 -0
  625. package/lib/typescript/native/fallbacks/dateFormat.d.ts.map +1 -0
  626. package/lib/typescript/native/fromMaterialColors.d.ts +8 -0
  627. package/lib/typescript/native/fromMaterialColors.d.ts.map +1 -0
  628. package/lib/typescript/native/index.d.ts +32 -0
  629. package/lib/typescript/native/index.d.ts.map +1 -0
  630. package/lib/typescript/native/internal/BaseProgress.d.ts +3 -0
  631. package/lib/typescript/native/internal/BaseProgress.d.ts.map +1 -0
  632. package/lib/typescript/native/internal/ControlHost.d.ts +17 -0
  633. package/lib/typescript/native/internal/ControlHost.d.ts.map +1 -0
  634. package/lib/typescript/native/internal/IosDatePicker.d.ts +3 -0
  635. package/lib/typescript/native/internal/IosDatePicker.d.ts.map +1 -0
  636. package/lib/typescript/native/internal/IosDatePicker.ios.d.ts +3 -0
  637. package/lib/typescript/native/internal/IosDatePicker.ios.d.ts.map +1 -0
  638. package/lib/typescript/native/internal/IosDatePicker.types.d.ts +15 -0
  639. package/lib/typescript/native/internal/IosDatePicker.types.d.ts.map +1 -0
  640. package/lib/typescript/native/internal/LabeledControl.d.ts +14 -0
  641. package/lib/typescript/native/internal/LabeledControl.d.ts.map +1 -0
  642. package/lib/typescript/native/internal/NativeHostContext.d.ts +3 -0
  643. package/lib/typescript/native/internal/NativeHostContext.d.ts.map +1 -0
  644. package/lib/typescript/native/internal/availability.d.ts +2 -0
  645. package/lib/typescript/native/internal/availability.d.ts.map +1 -0
  646. package/lib/typescript/native/internal/hostTheme.d.ts +4 -0
  647. package/lib/typescript/native/internal/hostTheme.d.ts.map +1 -0
  648. package/lib/typescript/native/internal/platformModifiers.android.d.ts +4 -0
  649. package/lib/typescript/native/internal/platformModifiers.android.d.ts.map +1 -0
  650. package/lib/typescript/native/internal/platformModifiers.d.ts +4 -0
  651. package/lib/typescript/native/internal/platformModifiers.d.ts.map +1 -0
  652. package/lib/typescript/native/internal/platformModifiers.ios.d.ts +4 -0
  653. package/lib/typescript/native/internal/platformModifiers.ios.d.ts.map +1 -0
  654. package/lib/typescript/native/internal/platformModifiers.types.d.ts +3 -0
  655. package/lib/typescript/native/internal/platformModifiers.types.d.ts.map +1 -0
  656. package/lib/typescript/native/internal/withNativeFallback.d.ts +3 -0
  657. package/lib/typescript/native/internal/withNativeFallback.d.ts.map +1 -0
  658. package/lib/typescript/native/materialColors.types.d.ts +4 -0
  659. package/lib/typescript/native/materialColors.types.d.ts.map +1 -0
  660. package/lib/typescript/native/menuTypes.d.ts +9 -0
  661. package/lib/typescript/native/menuTypes.d.ts.map +1 -0
  662. package/lib/typescript/native/tabs/index.d.ts +5 -0
  663. package/lib/typescript/native/tabs/index.d.ts.map +1 -0
  664. package/lib/typescript/native/tabs/useNativeTabsTheme.d.ts +10 -0
  665. package/lib/typescript/native/tabs/useNativeTabsTheme.d.ts.map +1 -0
  666. package/lib/typescript/native/useLiquidGlass.d.ts +8 -0
  667. package/lib/typescript/native/useLiquidGlass.d.ts.map +1 -0
  668. package/lib/typescript/native/useNativeColors.android.d.ts +4 -0
  669. package/lib/typescript/native/useNativeColors.android.d.ts.map +1 -0
  670. package/lib/typescript/native/useNativeColors.d.ts +4 -0
  671. package/lib/typescript/native/useNativeColors.d.ts.map +1 -0
  672. package/lib/typescript/package.json +1 -0
  673. package/lib/typescript/presets/controller.d.ts +10 -0
  674. package/lib/typescript/presets/controller.d.ts.map +1 -0
  675. package/lib/typescript/presets/default.d.ts +2 -0
  676. package/lib/typescript/presets/default.d.ts.map +1 -0
  677. package/lib/typescript/presets/definePreset.d.ts +16 -0
  678. package/lib/typescript/presets/definePreset.d.ts.map +1 -0
  679. package/lib/typescript/presets/funnel.d.ts +11 -0
  680. package/lib/typescript/presets/funnel.d.ts.map +1 -0
  681. package/lib/typescript/presets/index.d.ts +7 -0
  682. package/lib/typescript/presets/index.d.ts.map +1 -0
  683. package/lib/typescript/presets/presets.d.ts +11 -0
  684. package/lib/typescript/presets/presets.d.ts.map +1 -0
  685. package/lib/typescript/presets/spotfish.d.ts +2 -0
  686. package/lib/typescript/presets/spotfish.d.ts.map +1 -0
  687. package/lib/typescript/presets/suedtirol.d.ts +2 -0
  688. package/lib/typescript/presets/suedtirol.d.ts.map +1 -0
  689. package/lib/typescript/presets/types.d.ts +22 -0
  690. package/lib/typescript/presets/types.d.ts.map +1 -0
  691. package/lib/typescript/presets/usePreset.d.ts +16 -0
  692. package/lib/typescript/presets/usePreset.d.ts.map +1 -0
  693. package/lib/typescript/theme/configureUi.d.ts +27 -0
  694. package/lib/typescript/theme/configureUi.d.ts.map +1 -0
  695. package/lib/typescript/theme/createTheme.d.ts +5 -0
  696. package/lib/typescript/theme/createTheme.d.ts.map +1 -0
  697. package/lib/typescript/theme/defaults.d.ts +4 -0
  698. package/lib/typescript/theme/defaults.d.ts.map +1 -0
  699. package/lib/typescript/theme/index.d.ts +11 -0
  700. package/lib/typescript/theme/index.d.ts.map +1 -0
  701. package/lib/typescript/theme/settings.d.ts +19 -0
  702. package/lib/typescript/theme/settings.d.ts.map +1 -0
  703. package/lib/typescript/theme/tones.d.ts +9 -0
  704. package/lib/typescript/theme/tones.d.ts.map +1 -0
  705. package/lib/typescript/theme/types.d.ts +147 -0
  706. package/lib/typescript/theme/types.d.ts.map +1 -0
  707. package/lib/typescript/utils/a11y.d.ts +20 -0
  708. package/lib/typescript/utils/a11y.d.ts.map +1 -0
  709. package/lib/typescript/utils/createStore.d.ts +8 -0
  710. package/lib/typescript/utils/createStore.d.ts.map +1 -0
  711. package/lib/typescript/utils/fonts.d.ts +13 -0
  712. package/lib/typescript/utils/fonts.d.ts.map +1 -0
  713. package/lib/typescript/utils/hitSlop.d.ts +3 -0
  714. package/lib/typescript/utils/hitSlop.d.ts.map +1 -0
  715. package/lib/typescript/utils/index.d.ts +3 -0
  716. package/lib/typescript/utils/index.d.ts.map +1 -0
  717. package/lib/typescript/utils/math.d.ts +6 -0
  718. package/lib/typescript/utils/math.d.ts.map +1 -0
  719. package/lib/typescript/utils/refs.d.ts +4 -0
  720. package/lib/typescript/utils/refs.d.ts.map +1 -0
  721. package/lib/typescript/utils/statusIcon.d.ts +3 -0
  722. package/lib/typescript/utils/statusIcon.d.ts.map +1 -0
  723. package/lib/typescript/utils/styles.d.ts +34 -0
  724. package/lib/typescript/utils/styles.d.ts.map +1 -0
  725. package/lib/typescript/utils/types.d.ts +11 -0
  726. package/lib/typescript/utils/types.d.ts.map +1 -0
  727. package/package.json +155 -3
package/README.md CHANGED
@@ -1,3 +1,455 @@
1
- # Temporary Holding Version
1
+ # @xleddyl/443-components-native
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Bare-bones, theme-driven React Native components for Expo apps, built on Unistyles 3. Every color,
4
+ radius, size and spacing comes from a typed theme, so one component set can look like Textreme
5
+ (clear blue, tall touch targets) or Suedtirol Fishing (deep green, round corners) without forks.
6
+ An opt-in native layer renders SwiftUI, Jetpack Compose and Liquid Glass controls with the same
7
+ props (see [NATIVE.md](./NATIVE.md)).
8
+
9
+ Built and checked against Expo SDK 57, React Native 0.86, React 19.2 and Unistyles 3.5.
10
+
11
+ ## Install
12
+
13
+ ```sh
14
+ pnpm add @xleddyl/443-components-native
15
+ npx expo install react-native-unistyles react-native-nitro-modules react-native-reanimated \
16
+ react-native-worklets react-native-gesture-handler react-native-safe-area-context
17
+ ```
18
+
19
+ | Peer | Required | Used by |
20
+ | ------------------------------------------------------ | -------- | -------------------------------------------------- |
21
+ | `react`, `react-native` | yes | everything |
22
+ | `react-native-unistyles`, `react-native-nitro-modules` | yes | styling and theming |
23
+ | `react-native-reanimated`, `react-native-worklets` | yes | animations, sheets, sliders |
24
+ | `react-native-gesture-handler` | yes | sheets, sliders, swipe gestures |
25
+ | `react-native-safe-area-context` | yes | `Screen`, overlays, tab bars |
26
+ | `react-native-svg` | optional | `@xleddyl/443-components-native/icons` (Heroicons svg glyph set) |
27
+ | `expo-haptics` | optional | only through your `haptics` adapter |
28
+ | `@expo/ui`, `expo-glass-effect`, `expo-router`, `expo` | optional | `@xleddyl/443-components-native/native` and `@xleddyl/443-components-native/native-tabs` |
29
+
30
+ The root entry never imports an optional peer. Apps that skip them never load them.
31
+
32
+ ## App setup
33
+
34
+ ### Babel
35
+
36
+ The Unistyles babel plugin must process this package, because it ships TypeScript source and
37
+ `StyleSheet.create` calls that need dependency tracking.
38
+
39
+ ```js
40
+ module.exports = function (api) {
41
+ api.cache(true)
42
+ return {
43
+ presets: ['babel-preset-expo'],
44
+ plugins: [
45
+ [
46
+ 'react-native-unistyles/plugin',
47
+ { root: 'src', autoProcessPaths: ['/node_modules/@xleddyl/443-components-native/'] },
48
+ ],
49
+ ],
50
+ }
51
+ }
52
+ ```
53
+
54
+ In a pnpm workspace that links the package from source, also add its source folder (the
55
+ playground uses `'/packages/native/src/'`).
56
+
57
+ ### Metro
58
+
59
+ Keep `inlineRequires` on (Expo default in recent SDKs). The barrel relies on it so that unused
60
+ components cost nothing at startup and so the native layer can fall back when a native module is
61
+ missing.
62
+
63
+ ```js
64
+ const { getDefaultConfig } = require('expo/metro-config')
65
+ const config = getDefaultConfig(__dirname)
66
+ config.transformer.getTransformOptions = async () => ({
67
+ transform: { experimentalImportSupport: true, inlineRequires: true },
68
+ })
69
+ module.exports = config
70
+ ```
71
+
72
+ ### Unistyles configuration file
73
+
74
+ Create `src/unistyles.ts` and import it first from `index.ts`, before `expo-router/entry`. Import
75
+ only from `@xleddyl/443-components-native/theme` here: the root barrel evaluates every `StyleSheet.create`, and
76
+ Unistyles throws on native when that happens before `StyleSheet.configure`.
77
+
78
+ ```ts
79
+ import { configureUi } from '@xleddyl/443-components-native/theme'
80
+ import type { defaultBreakpoints } from '@xleddyl/443-components-native/theme'
81
+ import { svgIconRenderer } from '@xleddyl/443-components-native/icons'
82
+ import * as Haptics from 'expo-haptics'
83
+ import { themes } from './themes'
84
+
85
+ configureUi({
86
+ themes,
87
+ initialTheme: 'light',
88
+ icons: svgIconRenderer,
89
+ haptics: (kind) => {
90
+ if (kind === 'selection') {
91
+ Haptics.selectionAsync()
92
+ return
93
+ }
94
+ Haptics.impactAsync(Haptics.ImpactFeedbackStyle.Light)
95
+ },
96
+ })
97
+
98
+ type AppThemes = typeof themes
99
+ type AppBreakpoints = typeof defaultBreakpoints
100
+
101
+ declare module 'react-native-unistyles' {
102
+ export interface UnistylesThemes extends AppThemes {}
103
+ export interface UnistylesBreakpoints extends AppBreakpoints {}
104
+ }
105
+ ```
106
+
107
+ ```ts
108
+ import './src/unistyles'
109
+ import 'expo-router/entry'
110
+ ```
111
+
112
+ `configureUi` also accepts `adaptiveThemes: true` (follow the system light and dark scheme),
113
+ `breakpoints`, `text` (`allowFontScaling`, `maxFontSizeMultiplier`) and `cssVars` (off by default:
114
+ with CSS variables on, Unistyles web skips recomputing styles on theme change and numeric tokens
115
+ break).
116
+
117
+ ### Root layout
118
+
119
+ Mount `UiProvider` once. It hosts portals (sheets, dialogs, popovers, menus), the imperative
120
+ `dialog` API and toasts.
121
+
122
+ ```tsx
123
+ export default function RootLayout() {
124
+ return (
125
+ <GestureHandlerRootView style={{ flex: 1 }}>
126
+ <UiProvider>
127
+ <Stack screenOptions={{ headerShown: false }} />
128
+ </UiProvider>
129
+ </GestureHandlerRootView>
130
+ )
131
+ }
132
+ ```
133
+
134
+ ## Theme
135
+
136
+ `BaseTheme` is the contract every component reads:
137
+
138
+ - `colors`: surfaces (`background`, `surface`, `surfaceRaised`, `surfaceSunken`), borders, text
139
+ (`text`, `textMuted`, `textDimmed`), and for each tone (`primary`, `secondary`, `neutral`,
140
+ `danger`, `success`, `warning`, `info`) a solid, a `*Soft` and an `on*` color, plus `overlay`,
141
+ `focus`, `shadow`. Each tone also takes an optional `*Text` color (`primaryText`, ...) for text
142
+ and icons drawn in that tone on a surface (soft, outline and ghost buttons, badges, banners,
143
+ links, active tabs). It defaults to the solid color (`text` for `secondary` and `neutral`), so a
144
+ bright brand color such as a yellow primary can stay the fill while text stays readable.
145
+ - `radius` (`none` to `full`), `space(n)` (n \* 8), `typography` (`fonts`, `variants`: display,
146
+ title, heading, body, label, caption), `motion` (durations, springs, press scale, `pressedOpacity`, `disabledOpacity`),
147
+ `sizes` (`control` and `icon` per `sm` / `md` / `lg`, `minTouchTarget`, `borderWidth`).
148
+ - Typography: `fonts` maps weights to font families for the text face. A variant can set its own
149
+ `fontFamily` (for example a display face on `display`, `title` and `heading`), and every text in
150
+ that variant uses it, including button labels (variant `label`). A weight override on such a
151
+ variant keeps its family. Font family and weight are always set together, so switching to a
152
+ theme without custom fonts resets to the system font.
153
+ - `components`: optional per-component tokens (`button.radius`, `textField.height.md`,
154
+ `sheet.radius`, `tabBar.background`, ...). Each component falls back to base tokens when its
155
+ entry is missing.
156
+
157
+ `createTheme(overrides, base = lightTheme)` deep merges a partial theme. A type parameter adds
158
+ app-specific keys.
159
+
160
+ ```ts
161
+ import { createTheme, darkTheme, lightTheme } from '@xleddyl/443-components-native/theme'
162
+
163
+ type Brand = { brand: { name: string } }
164
+
165
+ export const textreme = createTheme<Brand>(
166
+ {
167
+ brand: { name: 'Textreme' },
168
+ colors: {
169
+ background: '#F4F8FC',
170
+ text: '#0F2A4A',
171
+ primary: '#1D6FE0',
172
+ primarySoft: '#E3EEFC',
173
+ onPrimary: '#FFFFFF',
174
+ },
175
+ radius: { sm: 10, md: 16, lg: 24 },
176
+ sizes: { control: { sm: 40, md: 56, lg: 64 }, icon: { sm: 18, md: 22, lg: 26 } },
177
+ typography: {
178
+ variants: { body: { fontSize: 18, lineHeight: 24, letterSpacing: 0, weight: 'regular' } },
179
+ },
180
+ },
181
+ lightTheme
182
+ )
183
+
184
+ export const suedtirol = createTheme<Brand>(
185
+ {
186
+ brand: { name: 'Suedtirol Fishing' },
187
+ colors: {
188
+ background: '#f5f8f3',
189
+ primary: '#0d4631',
190
+ primarySoft: '#dcecdf',
191
+ secondary: '#bde68f',
192
+ onSecondary: '#0d4631',
193
+ },
194
+ radius: { xs: 8, sm: 12, md: 18, lg: 24, xl: 32 },
195
+ components: { button: { radius: 9999 }, textField: { radius: 16 } },
196
+ },
197
+ lightTheme
198
+ )
199
+
200
+ export const suedtirolDark = createTheme<Brand>({ brand: { name: 'Suedtirol dark' } }, darkTheme)
201
+
202
+ export const themes = { textreme, suedtirol, suedtirolDark }
203
+ ```
204
+
205
+ Switch at runtime with `UnistylesRuntime.setTheme('suedtirol')`. Read the theme in components with
206
+ `useUnistyles()` or in `StyleSheet.create((theme) => ...)`.
207
+
208
+ ## Presets
209
+
210
+ `@xleddyl/443-components-native/presets` ships three ready-made looks, each with a light and a dark theme built with
211
+ `createTheme`. They are pure theme data: every component works the same with them.
212
+
213
+ | Preset | Label | Look | Fonts |
214
+ | ----------- | -------- | ----------------------------------------------------------------------- | --------------------------------------------------------- |
215
+ | `default` | Default | Textreme Access Control: clear blue accent, cool surfaces, tall targets | system font |
216
+ | `suedtirol` | Südtirol | deep green and lime, round compact controls | Funnel Sans, Funnel Display on display, title and heading |
217
+ | `spotfish` | Spotfish | signal yellow on white or graphite, `primaryText` keeps text readable | Funnel Sans, Unbounded on display, title and heading |
218
+
219
+ The brand colors match the presets of `@xleddyl/443-components-vue`, so web and mobile stay consistent.
220
+
221
+ ```ts
222
+ import { configureUi } from '@xleddyl/443-components-native/theme'
223
+ import { presetInitialTheme, presetThemes } from '@xleddyl/443-components-native/presets'
224
+
225
+ const themes = presetThemes()
226
+ configureUi({ themes, initialTheme: presetInitialTheme('suedtirol', 'system') })
227
+
228
+ type AppThemes = typeof themes
229
+ declare module 'react-native-unistyles' {
230
+ export interface UnistylesThemes extends AppThemes {}
231
+ }
232
+ ```
233
+
234
+ Load the fonts in the root layout (see below), then switch anywhere with `usePreset()`:
235
+
236
+ ```tsx
237
+ const { preset, mode, setPreset, setMode } = usePreset()
238
+ ```
239
+
240
+ - `presets.default.light`, `presets.suedtirol.dark`, ...: the `PresetTheme` objects (a `BaseTheme`
241
+ plus `preset: { name, label, description, scheme }`). Extend one with
242
+ `createTheme(overrides, presets.suedtirol.light)`.
243
+ - `presetThemes()` returns the Unistyles themes map: `default-light`, `default-dark`,
244
+ `suedtirol-light`, `suedtirol-dark`, `spotfish-light`, `spotfish-dark`.
245
+ - `presetInitialTheme(preset, mode)` returns the theme name to start with. `mode` is `light`,
246
+ `dark` or `system`.
247
+ - `usePreset()` returns `{ preset, scheme, mode, label, description, setPreset, setMode }`;
248
+ `useThemeMode()` returns `{ mode, scheme, setMode }`. `setPreset` and `setThemeMode` also work
249
+ outside React.
250
+ - Mode `system` follows the device scheme and keeps following it while the app runs. On iOS and
251
+ Android, `light` and `dark` also set `Appearance.setColorScheme`, so native tabs, Liquid Glass,
252
+ `@expo/ui` controls, alerts and the keyboard match the theme (`system` resets it to
253
+ `unspecified`). Do not combine presets with `adaptiveThemes`, which needs themes named `light`
254
+ and `dark`.
255
+
256
+ ### Preset fonts
257
+
258
+ The OFL font files ship in `assets/fonts` (each folder has its `OFL.txt`), and
259
+ `@xleddyl/443-components-native/fonts` exports `presetFonts` (also `suedtirolFonts`, `spotfishFonts`), keyed by the
260
+ family names the presets use. Load them at runtime with `expo-font`:
261
+
262
+ ```tsx
263
+ import { presetFonts } from '@xleddyl/443-components-native/fonts'
264
+ import { useFonts } from 'expo-font'
265
+
266
+ const [loaded, error] = useFonts(presetFonts)
267
+ if (!loaded && !error) return null
268
+ ```
269
+
270
+ Or embed them at build time with the `expo-font` config plugin (the file names match the
271
+ PostScript names, so the same family names work on iOS and Android):
272
+
273
+ ```json
274
+ [
275
+ "expo-font",
276
+ {
277
+ "fonts": [
278
+ "node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-Regular.ttf",
279
+ "node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-Medium.ttf",
280
+ "node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-SemiBold.ttf",
281
+ "node_modules/@xleddyl/443-components-native/assets/fonts/funnel-sans/FunnelSans-Bold.ttf",
282
+ "node_modules/@xleddyl/443-components-native/assets/fonts/funnel-display/FunnelDisplay-Bold.ttf",
283
+ "node_modules/@xleddyl/443-components-native/assets/fonts/unbounded/Unbounded-SemiBold.ttf"
284
+ ]
285
+ }
286
+ ]
287
+ ```
288
+
289
+ Only `suedtirol` and `spotfish` need fonts. Until they are loaded (or if they never are), text
290
+ falls back to the platform font (on web the system font stack is appended to every custom
291
+ family), and switching to `default` always resets to the system font.
292
+
293
+ ## Icons
294
+
295
+ Components take `IconSource`: a registry name (`'close'`, `'home'`, `'fingerprint'`, ...) or a
296
+ React element. Names are rendered by the configured icon renderer and fall back to built-in glyphs
297
+ drawn with plain Views.
298
+
299
+ - `@xleddyl/443-components-native/icons` (needs `react-native-svg`) ships `svgIconRenderer`, the Heroicons outline
300
+ set (MIT) for every `BuiltinIconName`: arrows, chevrons, status icons, `home`, `user`, `users`,
301
+ `settings`, `bell`, `backspace`, `fingerprint`, `calendar`, `clock`, `trash`, `edit`, `share`,
302
+ `more`, `filter`, `star`, `heart`, `lock`, `mail`, `image`, `camera`, `qr-code`, `map-pin` and
303
+ more.
304
+ - Without a renderer, the View glyphs cover what the base components use (close, check, chevrons,
305
+ arrows, status icons, backspace, fingerprint, calendar, clock, user, menu, more, grid). Other
306
+ names draw a neutral placeholder and warn once in development.
307
+
308
+ Add app icons by augmenting `IconRegistry` and passing paths or your own renderer:
309
+
310
+ ```ts
311
+ import { composeIconRenderers } from '@xleddyl/443-components-native/theme'
312
+ import { createSvgIconRenderer } from '@xleddyl/443-components-native/icons'
313
+
314
+ declare module '@xleddyl/443-components-native' {
315
+ interface IconRegistry {
316
+ fish: true
317
+ }
318
+ }
319
+
320
+ configureUi({
321
+ themes,
322
+ initialTheme: 'suedtirol-light',
323
+ icons: composeIconRenderers(
324
+ myBrandIcons,
325
+ createSvgIconRenderer({ fish: ['M3 12c3-4 9-6 14-2l4-3v10l-4-3c-5 4-11 2-14-2Z'] })
326
+ ),
327
+ })
328
+ ```
329
+
330
+ `configureIcons(renderer)` swaps the renderer at runtime. A renderer returns `undefined` for names
331
+ it does not know, so the next one (or the View glyphs) takes over.
332
+
333
+ ## Components
334
+
335
+ Import from `@xleddyl/443-components-native` or from a group subpath (`@xleddyl/443-components-native/forms`, ...).
336
+
337
+ - **core**: `Text`, `Stack`, `Touchable`, `Icon`, `Button`, `IconButton`, `TextField`, `Screen`,
338
+ `Spinner`
339
+ - **forms**: `Field`, `Checkbox`, `CheckboxGroup`, `Radio`, `RadioGroup`, `Switch`,
340
+ `SegmentedControl`, `Slider`, `Stepper`, `PinInput`, `PinPad`, `ChipInput` (`TokenInput`),
341
+ `DateField`, `Calendar`, `MonthPicker`
342
+ - **display**: `Avatar`, `AvatarGroup`, `Badge`, `Banner`, `Card`, `Chip`, `Tag`, `Divider`,
343
+ `EmptyState`, `KeyValue`, `DescriptionList`, `List`, `ListItem`, `ProgressBar`, `ProgressRing`,
344
+ `Skeleton`, `Stat`
345
+ - **overlays**: `UiProvider`, `Portal`, `PortalHost`, `Overlay`, `Backdrop`, `Sheet`, `Dialog`,
346
+ `ActionSheet`, `Menu`, `MenuItem`, `Popover`, `Select`, `Toast`, `LoadingOverlay`, and the
347
+ imperative hooks below
348
+ - **navigation**: `Header`, `BackButton`, `Tabs`, `TabBar` (for expo-router `Tabs`),
349
+ `useTabBarHeight`, `useScrollOffset`
350
+ - **hooks and utils**: `useControllableState`, `usePressFeedback`, `useSafeSpacing`,
351
+ `useReducedMotion`, `hitSlopFor`, `toneColors`, `buttonColors`, `textToneColor`
352
+
353
+ Shared vocabulary: `size` (`sm` / `md` / `lg`), `tone`, `variant` (`solid`, `soft`, `outline`,
354
+ `ghost`), `value` / `defaultValue` / `onValueChange`, `open` / `defaultOpen` / `onOpenChange`,
355
+ `disabled`, `invalid` or `error` (string shows a message), `style` for the root and `styles` for
356
+ per-part overrides, slots (`leftElement`, `rightElement`, `header`, `footer`, `emptyState`).
357
+ Inputs placed inside `Field` read its label, error, disabled and required state.
358
+
359
+ ### Overlays and React context
360
+
361
+ By default sheets, dialogs and popovers render into the root `PortalHost`, above everything, so
362
+ providers declared inside a screen are not visible to their content. Pass `portal={false}` to
363
+ `Sheet`, `Dialog`, `ActionSheet`, `Popover`, `Menu` or `Overlay` to render in place through a
364
+ React Native `Modal` (transparent, full screen): screen context is kept, at the cost of the
365
+ limits listed below.
366
+
367
+ ### Imperative overlays
368
+
369
+ `UiProvider` mounts a host for every imperative API, so each one works from any component and,
370
+ except `useLoadingState`, from plain functions too (stores, API clients, navigation guards). The
371
+ names match the `@xleddyl/443-components-vue` composables.
372
+
373
+ | Hook | Plain object | Returns |
374
+ | ---------------------------- | --------------------------------- | ---------------------------------------------------------------------------------------- |
375
+ | `useToast()` | `toast` | `show`, `success`, `error`, `warning`, `info`, `loading`, `update`, `dismiss`, `promise` |
376
+ | `useConfirm()`, `useAlert()` | `dialog.confirm`, `dialog.alert` | `Promise<boolean>`, `Promise<void>` |
377
+ | `usePrompt()` | `dialog.prompt` | `Promise<string \| null>` (text field, optional `validate`, `secure`) |
378
+ | `useSheet()`, `useModal()` | `overlay.sheet`, `overlay.dialog` | `open(Component, props, options)`: `Promise<Result \| null>` |
379
+ | `useActionSheet()` | `actionSheet.show` | `Promise<key \| null>` |
380
+ | `useLoading()` | `loading` | `show(message)` (returns a release function), `hide`, `wrap`, `active` |
381
+ | `useLoadingState()` | | `{ loading, run }`, scoped to one component (buttons, forms) |
382
+
383
+ ```tsx
384
+ const PickSpecies = ({ overlay, current }: OverlayComponentProps<string> & { current?: string }) => (
385
+ <Button onPress={() => overlay.resolve('Grayling')}>Grayling</Button>
386
+ )
387
+
388
+ const sheet = useSheet()
389
+ const species = await sheet.open(PickSpecies, { current }, { title: 'Species' })
390
+ const prompt = usePrompt()
391
+ const name = await prompt({ title: 'Rename', defaultValue: 'Upper Adige' })
392
+ await loading.wrap(api.sync(), 'Syncing')
393
+ const save = useLoadingState()
394
+ <Button loading={save.loading} onPress={() => save.run(api.save)}>Save</Button>
395
+ ```
396
+
397
+ - A component opened with `sheet.open` or `modal.open` gets an `overlay` prop (`resolve(result)`,
398
+ `close()`); nested components read the same controls with `useOverlayContext<Result>()`.
399
+ Dismissing (swipe, backdrop, back button, `close`) resolves `null`. Overlays stack: a sheet can
400
+ open another sheet and await it. `options` takes `title`, `description`, `dismissible`,
401
+ `showClose`, `snapPoints`, `scrollable`.
402
+ - `toast.promise(task, { loading, success, error })` shows a loading toast and turns it into a
403
+ success or error toast; `success` and `error` may be functions of the result or the error.
404
+ - Global loading is ref counted: overlapping `wrap` calls keep one `LoadingOverlay` up until the
405
+ last finishes, showing the newest message.
406
+ - Toasts stack like a deck (the newest in front, older ones peeking behind). Tap one to expand
407
+ the stack; timers pause while it is expanded or being dragged. Each toast shows a tone icon in
408
+ a soft circle, title, description, optional action and close button, and a timer bar
409
+ (`showTimer` on `ToastHost` / `UiProvider toast`, or the `toast.timer` component token).
410
+ - Turn hosts off with `UiProvider` props `toast={false}`, `dialogs={false}`, `overlays={false}`,
411
+ `loading={false}`.
412
+
413
+ ## Native layer
414
+
415
+ `@xleddyl/443-components-native/native` wraps `@expo/ui` (SwiftUI, Jetpack Compose) and `expo-glass-effect`:
416
+ `NativeSwitch`, `NativeSlider`, `NativePicker`, `NativeDatePicker`, `NativeTextField`,
417
+ `NativeButton`, `NativeForm` / `NativeSection`, `NativeContextMenu`, `NativeBottomSheet`,
418
+ `NativeProgress`, `GlassSurface`, `GlassGroup`, `useLiquidGlass`, `useNativeColors` and
419
+ `fromMaterialColors` (Material You colors into a theme). `@xleddyl/443-components-native/native-tabs` themes
420
+ expo-router `NativeTabs`. Every wrapper falls back to the base component on web or without the
421
+ native module. Details, platform mapping and limits: [NATIVE.md](./NATIVE.md).
422
+
423
+ ## React Compiler
424
+
425
+ The package is written for the React Compiler (no manual `useMemo`, `useCallback` or `memo`), and
426
+ every component compiles. One finding shaped the styling rules: the Unistyles babel plugin
427
+ rewrites `stylesheet.useVariants()` in a way the compiler cannot lower ("Could not find binding
428
+ for declaration"), and the whole component silently stays uncompiled. Components therefore never
429
+ use Unistyles `variants`; they pass variant values as arguments to dynamic style functions. Apply
430
+ the same rule in app code that runs under the compiler.
431
+
432
+ Three more Unistyles rules surfaced on device, and the components follow them:
433
+
434
+ - A dynamic style function must return an object literal. A function whose body is a ternary
435
+ between two objects gets no theme dependencies from the babel plugin, so its views keep the old
436
+ colors after `UnistylesRuntime.setTheme`. Spread the ternary into one literal instead.
437
+ - Content rendered later into a portal (dialog cards, action sheet rows, loading cards) lives in
438
+ its own small component. The compiler caches JSX built while the overlay is closed, and a view
439
+ first mounted with styles cached under the previous theme stays stale.
440
+ - `contentContainerStyle` is not updated on theme change. Put backgrounds on the scroll view
441
+ `style`.
442
+
443
+ ## Known limits
444
+
445
+ - Overlays rendered with `portal={false}` sit in a native `Modal`: toasts and portal overlays
446
+ opened while it is visible render underneath it on iOS and Android. Use one mode per flow.
447
+ - Focus is trapped inside `Sheet`, `Dialog` and other modal overlays on web; native relies on
448
+ `accessibilityViewIsModal` (iOS) and hidden siblings (Android), which is what the platforms
449
+ offer.
450
+ - The View glyphs are approximations. Ship `@xleddyl/443-components-native/icons` or your own renderer in production.
451
+ - Native wrappers follow platform styling: only tint, color scheme and a few colors reach them.
452
+ - `NativeDatePicker` `time` / `datetime` fall back to a stepper or a browser input: there is no
453
+ base-layer time field yet.
454
+ - Native rendering (SwiftUI, Compose, Liquid Glass) is not covered by the typecheck or by
455
+ `expo export`. Check it on a simulator or device build.
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Funnel Project Authors (https://github.com/Dicotype/Funnel)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Funnel Project Authors (https://github.com/Dicotype/Funnel)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://openfontlicense.org
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,16 @@
1
+ type FontAsset = number
2
+
3
+ export declare const funnelSansFonts: {
4
+ 'FunnelSans-Regular': FontAsset
5
+ 'FunnelSans-Medium': FontAsset
6
+ 'FunnelSans-SemiBold': FontAsset
7
+ 'FunnelSans-Bold': FontAsset
8
+ }
9
+
10
+ export declare const suedtirolFonts: typeof funnelSansFonts & { 'FunnelDisplay-Bold': FontAsset }
11
+
12
+ export declare const spotfishFonts: typeof funnelSansFonts & { 'Unbounded-SemiBold': FontAsset }
13
+
14
+ export declare const presetFonts: typeof suedtirolFonts & typeof spotfishFonts
15
+
16
+ export type PresetFontFamily = keyof typeof presetFonts