@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
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { StyleSheet, useUnistyles } from 'react-native-unistyles';
5
+ import { hitSlopFor } from "../../utils/hitSlop.js";
6
+ import { disabledOpacity } from "../../utils/styles.js";
7
+ import { buttonColors } from "../core/buttonColors.js";
8
+ import { renderIcon } from "../core/Icon.js";
9
+ import { Text } from "../core/Text.js";
10
+ import { Touchable } from "../core/Touchable.js";
11
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
12
+ const chipHeight = (theme, size) => theme.components.chip?.height?.[size] ?? Math.round(theme.sizes.control[size] * 0.75);
13
+ export const Chip = ({
14
+ ref,
15
+ children,
16
+ tone = 'neutral',
17
+ variant = 'soft',
18
+ size = 'md',
19
+ selected = false,
20
+ disabled = false,
21
+ onPress,
22
+ onRemove,
23
+ removeLabel,
24
+ leftIcon,
25
+ leftElement,
26
+ style,
27
+ styles
28
+ }) => {
29
+ const {
30
+ theme
31
+ } = useUnistyles();
32
+ const colors = buttonColors(theme, selected ? 'solid' : variant, tone);
33
+ const iconSize = size === 'lg' ? 'md' : 'sm';
34
+ const leading = leftElement ?? renderIcon(leftIcon, {
35
+ size: iconSize,
36
+ color: colors.content
37
+ });
38
+ const body = /*#__PURE__*/_jsxs(_Fragment, {
39
+ children: [leading ? /*#__PURE__*/_jsx(View, {
40
+ style: [stylesheet.element, styles?.leftElement],
41
+ children: leading
42
+ }) : null, /*#__PURE__*/_jsx(Text, {
43
+ variant: size === 'sm' ? 'caption' : 'label',
44
+ weight: "medium",
45
+ numberOfLines: 1,
46
+ style: [stylesheet.label(colors.content), styles?.label],
47
+ children: children
48
+ })]
49
+ });
50
+ return /*#__PURE__*/_jsxs(View, {
51
+ ref: ref,
52
+ style: [stylesheet.container(size, colors.background, colors.border, disabled), style, styles?.container],
53
+ children: [onPress ? /*#__PURE__*/_jsx(Touchable, {
54
+ feedback: disabled ? 'none' : 'opacity',
55
+ accessibilityRole: "button",
56
+ accessibilityLabel: children,
57
+ accessibilityState: {
58
+ selected,
59
+ disabled
60
+ },
61
+ disabled: disabled,
62
+ onPress: onPress,
63
+ hitSlop: hitSlopFor(chipHeight(theme, size), undefined, theme.sizes.minTouchTarget),
64
+ style: stylesheet.body,
65
+ children: body
66
+ }) : /*#__PURE__*/_jsx(View, {
67
+ style: stylesheet.body,
68
+ accessible: true,
69
+ accessibilityLabel: children,
70
+ children: body
71
+ }), onRemove ? /*#__PURE__*/_jsx(Touchable, {
72
+ feedback: disabled ? 'none' : 'opacity',
73
+ accessibilityRole: "button",
74
+ accessibilityLabel: removeLabel ?? `Remove ${children}`,
75
+ disabled: disabled,
76
+ onPress: onRemove,
77
+ hitSlop: hitSlopFor(chipHeight(theme, size), 24, theme.sizes.minTouchTarget),
78
+ style: [stylesheet.remove, styles?.remove],
79
+ children: renderIcon('close', {
80
+ size: iconSize,
81
+ color: colors.content
82
+ })
83
+ }) : null]
84
+ });
85
+ };
86
+ const stylesheet = StyleSheet.create(theme => ({
87
+ container: (size, background, border, disabled) => ({
88
+ flexDirection: 'row',
89
+ alignItems: 'center',
90
+ alignSelf: 'flex-start',
91
+ height: chipHeight(theme, size),
92
+ borderRadius: theme.components.chip?.radius ?? theme.radius.full,
93
+ backgroundColor: background,
94
+ borderColor: border,
95
+ borderWidth: theme.sizes.borderWidth,
96
+ opacity: disabledOpacity(theme, disabled)
97
+ }),
98
+ body: {
99
+ flexDirection: 'row',
100
+ alignItems: 'center',
101
+ gap: theme.space(0.5),
102
+ paddingLeft: theme.space(1.25),
103
+ paddingRight: theme.space(1.25),
104
+ height: '100%',
105
+ flexShrink: 1
106
+ },
107
+ remove: {
108
+ height: '100%',
109
+ alignItems: 'center',
110
+ justifyContent: 'center',
111
+ paddingRight: theme.space(1),
112
+ marginLeft: -theme.space(0.75)
113
+ },
114
+ element: {
115
+ alignItems: 'center',
116
+ justifyContent: 'center'
117
+ },
118
+ label: color => ({
119
+ color
120
+ })
121
+ }));
122
+ //# sourceMappingURL=Chip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","StyleSheet","useUnistyles","hitSlopFor","disabledOpacity","buttonColors","renderIcon","Text","Touchable","jsx","_jsx","Fragment","_Fragment","jsxs","_jsxs","chipHeight","theme","size","components","chip","height","Math","round","sizes","control","Chip","ref","children","tone","variant","selected","disabled","onPress","onRemove","removeLabel","leftIcon","leftElement","style","styles","colors","iconSize","leading","color","content","body","stylesheet","element","weight","numberOfLines","label","container","background","border","feedback","accessibilityRole","accessibilityLabel","accessibilityState","hitSlop","undefined","minTouchTarget","accessible","remove","create","flexDirection","alignItems","alignSelf","borderRadius","radius","full","backgroundColor","borderColor","borderWidth","opacity","gap","space","paddingLeft","paddingRight","flexShrink","justifyContent","marginLeft"],"sourceRoot":"../../../../src","sources":["components/display/Chip.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,UAAU,QAAQ,wBAAqB;AAChD,SAASC,eAAe,QAAQ,uBAAoB;AAEpD,SAASC,YAAY,QAAQ,yBAAsB;AAEnD,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,IAAI,QAAQ,iBAAc;AACnC,SAASC,SAAS,QAAQ,sBAAmB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,QAAA,IAAAC,SAAA,EAAAC,IAAA,IAAAC,KAAA;AAkC7C,MAAMC,UAAU,GAAGA,CAACC,KAAgB,EAAEC,IAAiB,KACpDD,KAAK,CAACE,UAAU,CAACC,IAAI,EAAEC,MAAM,GAAGH,IAAI,CAAC,IAAII,IAAI,CAACC,KAAK,CAACN,KAAK,CAACO,KAAK,CAACC,OAAO,CAACP,IAAI,CAAC,GAAG,IAAI,CAAC;AAExF,OAAO,MAAMQ,IAAI,GAAGA,CAAC;EAClBC,GAAG;EACHC,QAAQ;EACRC,IAAI,GAAG,SAAS;EAChBC,OAAO,GAAG,MAAM;EAChBZ,IAAI,GAAG,IAAI;EACXa,QAAQ,GAAG,KAAK;EAChBC,QAAQ,GAAG,KAAK;EAChBC,OAAO;EACPC,QAAQ;EACRC,WAAW;EACXC,QAAQ;EACRC,WAAW;EACXC,KAAK;EACLC;AACQ,CAAC,KAAK;EACd,MAAM;IAAEtB;EAAM,CAAC,GAAGd,YAAY,CAAC,C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View } from 'react-native';
4
+ import { StyleSheet } from 'react-native-unistyles';
5
+ import { KeyValue } from "./KeyValue.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ export const DescriptionList = ({
8
+ ref,
9
+ items,
10
+ orientation = 'horizontal',
11
+ separators = true,
12
+ style,
13
+ styles
14
+ }) => /*#__PURE__*/_jsx(View, {
15
+ ref: ref,
16
+ style: [stylesheet.container, style, styles?.container],
17
+ children: items.map((item, index) => /*#__PURE__*/_jsxs(View, {
18
+ children: [separators && index > 0 ? /*#__PURE__*/_jsx(View, {
19
+ style: [stylesheet.separator, styles?.separator]
20
+ }) : null, /*#__PURE__*/_jsx(KeyValue, {
21
+ label: item.label,
22
+ value: item.value,
23
+ orientation: orientation,
24
+ style: [stylesheet.item, styles?.item]
25
+ })]
26
+ }, item.label))
27
+ });
28
+ const stylesheet = StyleSheet.create(theme => ({
29
+ container: {
30
+ alignSelf: 'stretch'
31
+ },
32
+ item: {
33
+ paddingVertical: theme.space(1.25)
34
+ },
35
+ separator: {
36
+ height: theme.sizes.borderWidth,
37
+ backgroundColor: theme.colors.border
38
+ }
39
+ }));
40
+ //# sourceMappingURL=DescriptionList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","StyleSheet","KeyValue","jsx","_jsx","jsxs","_jsxs","DescriptionList","ref","items","orientation","separators","style","styles","stylesheet","container","children","map","item","index","separator","label","value","create","theme","alignSelf","paddingVertical","space","height","sizes","borderWidth","backgroundColor","colors","border"],"sourceRoot":"../../../../src","sources":["components/display/DescriptionList.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,QAAQ,QAAQ,eAAY;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAsBrC,OAAO,MAAMC,eAAe,GAAGA,CAAC;EAC7BC,GAAG;EACHC,KAAK;EACLC,WAAW,GAAG,YAAY;EAC1BC,UAAU,GAAG,IAAI;EACjBC,KAAK;EACLC;AACmB,CAAC,kBACpBT,IAAA,CAACJ,IAAI;EAACQ,GAAG,EAAEA,GAAI;EAACI,KAAK,EAAE,CAACE,UAAU,CAACC,SAAS,EAAEH,KAAK,EAAEC,MAAM,EAAEE,SAAS,CAAE;EAAAC,QAAA,EACpEP,KAAK,CAACQ,GAAG,CAAC,CAACC,IAAI,EAAEC,KAAK,kBACpBb,KAAA,CAACN,IAAI;IAAAgB,QAAA,GACDL,UAAU,IAAIQ,KAAK,GAAG,CAAC,gBACrBf,IAAA,CAACJ,IAAI;MAACY,KAAK,EAAE,CAACE,UAAU,CAACM,SAAS,EAAEP,MAAM,EAAEO,SAAS;IAAE,CAAE,CAAC,GACzD,IAAI,eACRhB,IAAA,CAACF,QAAQ;MACNmB,KAAK,EAAEH,IAAI,CAACG,KAAM;MAClBC,KAAK,EAAEJ,IAAI,CAACI,KAAM;MAClBZ,WAAW,EAAEA,WAAY;MACzBE,KAAK,EAAE,CAACE,UAAU,CAACI,IAAI,EAAEL,MAAM,EAAEK,IAAI;IAAE,CACzC,CAAC;EAAA,GATMA,IAAI,CAACG,KAUV,CACR;AAAC,CACC,CACR;AAED,MAAMP,UAAU,GAAGb,UAAU,CAACsB,MAAM,CAAEC,KAAK,KAAM;EAC9CT,SAAS,EAAE;IACRU,SAAS,EAAE;EACd,CAAC;EACDP,IAAI,EAAE;IACHQ,eAAe,EAAEF,KAAK,CAACG,KAAK,CAAC,IAAI;EACpC,CAAC;EACDP,SAAS,EAAE;IACRQ,MAAM,EAAEJ,KAAK,CAACK,KAAK,CAACC,WAAW;IAC/BC,eAAe,EAAEP,KAAK,CAACQ,MAAM,CAACC;EACjC;AACH,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { StyleSheet } from 'react-native-unistyles';
5
+ import { Text } from "../core/Text.js";
6
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
+ export const Divider = ({
8
+ ref,
9
+ orientation = 'horizontal',
10
+ label,
11
+ inset = 0,
12
+ strong = false,
13
+ style,
14
+ styles
15
+ }) => {
16
+ if (label && orientation === 'horizontal') {
17
+ return /*#__PURE__*/_jsxs(View, {
18
+ ref: ref,
19
+ accessible: true,
20
+ accessibilityLabel: label,
21
+ style: [stylesheet.labeled(inset), style],
22
+ children: [/*#__PURE__*/_jsx(View, {
23
+ style: [stylesheet.line('horizontal', strong), stylesheet.grow, styles?.line]
24
+ }), /*#__PURE__*/_jsx(Text, {
25
+ variant: "caption",
26
+ tone: "muted",
27
+ style: styles?.label,
28
+ children: label
29
+ }), /*#__PURE__*/_jsx(View, {
30
+ style: [stylesheet.line('horizontal', strong), stylesheet.grow, styles?.line]
31
+ })]
32
+ });
33
+ }
34
+ return /*#__PURE__*/_jsx(View, {
35
+ ref: ref,
36
+ accessible: false,
37
+ importantForAccessibility: "no-hide-descendants",
38
+ style: [stylesheet.line(orientation, strong), orientation === 'horizontal' ? stylesheet.horizontalInset(inset) : undefined, style, styles?.line]
39
+ });
40
+ };
41
+ const stylesheet = StyleSheet.create(theme => ({
42
+ line: (orientation, strong) => ({
43
+ backgroundColor: strong ? theme.colors.borderStrong : theme.colors.border,
44
+ ...(orientation === 'horizontal' ? {
45
+ height: theme.sizes.borderWidth,
46
+ alignSelf: 'stretch'
47
+ } : {
48
+ width: theme.sizes.borderWidth,
49
+ alignSelf: 'stretch'
50
+ })
51
+ }),
52
+ grow: {
53
+ flex: 1
54
+ },
55
+ horizontalInset: inset => ({
56
+ marginHorizontal: inset
57
+ }),
58
+ labeled: inset => ({
59
+ flexDirection: 'row',
60
+ alignItems: 'center',
61
+ gap: theme.space(1.5),
62
+ marginHorizontal: inset
63
+ })
64
+ }));
65
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","StyleSheet","Text","jsx","_jsx","jsxs","_jsxs","Divider","ref","orientation","label","inset","strong","style","styles","accessible","accessibilityLabel","stylesheet","labeled","children","line","grow","variant","tone","importantForAccessibility","horizontalInset","undefined","create","theme","backgroundColor","colors","borderStrong","border","height","sizes","borderWidth","alignSelf","width","flex","marginHorizontal","flexDirection","alignItems","gap","space"],"sourceRoot":"../../../../src","sources":["components/display/Divider.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,IAAI,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiBnC,OAAO,MAAMC,OAAO,GAAGA,CAAC;EACrBC,GAAG;EACHC,WAAW,GAAG,YAAY;EAC1BC,KAAK;EACLC,KAAK,GAAG,CAAC;EACTC,MAAM,GAAG,KAAK;EACdC,KAAK;EACLC;AACW,CAAC,KAAK;EACjB,IAAIJ,KAAK,IAAID,WAAW,KAAK,YAAY,EAAE;IACxC,oBACGH,KAAA,CAACN,IAAI;MACFQ,GAAG,EAAEA,GAAI;MACTO,UAAU;MACVC,kBAAkB,EAAEN,KAAM;MAC1BG,KAAK,EAAE,CAACI,UAAU,CAACC,OAAO,CAACP,KAAK,CAAC,EAAEE,KAAK,CAAE;MAAAM,QAAA,gBAE1Cf,IAAA,CAACJ,IAAI;QAACa,KAAK,EAAE,CAACI,UAAU,CAACG,IAAI,CAAC,YAAY,EAAER,MAAM,CAAC,EAAEK,UAAU,CAACI,IAAI,EAAEP,MAAM,EAAEM,IAAI;MAAE,CAAE,CAAC,eACvFhB,IAAA,CAACF,IAAI;QAACoB,OAAO,EAAC,SAAS;QAACC,IAAI,EAAC,OAAO;QAACV,KAAK,EAAEC,MAAM,EAAEJ,KAAM;QAAAS,QAAA,EACtDT;MAAK,CACH,CAAC,eACPN,IAAA,CAACJ,IAAI;QAACa,KAAK,EAAE,CAACI,UAAU,CAACG,IAAI,CAAC,YAAY,EAAER,MAAM,CAAC,EAAEK,UAAU,CAACI,I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 "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { StyleSheet, useUnistyles } from 'react-native-unistyles';
5
+ import { renderIcon } from "../core/Icon.js";
6
+ import { Text } from "../core/Text.js";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ export const EmptyState = ({
9
+ ref,
10
+ title,
11
+ description,
12
+ icon,
13
+ illustration,
14
+ action,
15
+ style,
16
+ styles
17
+ }) => {
18
+ const {
19
+ theme
20
+ } = useUnistyles();
21
+ return /*#__PURE__*/_jsxs(View, {
22
+ ref: ref,
23
+ accessible: true,
24
+ accessibilityLabel: description ? `${title}. ${description}` : title,
25
+ style: [stylesheet.container, style, styles?.container],
26
+ children: [illustration ?? (icon ? /*#__PURE__*/_jsx(View, {
27
+ style: [stylesheet.icon, styles?.icon],
28
+ children: renderIcon(icon, {
29
+ size: 'lg',
30
+ color: theme.colors.textMuted
31
+ })
32
+ }) : null), /*#__PURE__*/_jsx(Text, {
33
+ variant: "heading",
34
+ align: "center",
35
+ accessibilityRole: "header",
36
+ style: styles?.title,
37
+ children: title
38
+ }), description ? /*#__PURE__*/_jsx(Text, {
39
+ variant: "body",
40
+ tone: "muted",
41
+ align: "center",
42
+ style: styles?.description,
43
+ children: description
44
+ }) : null, action ? /*#__PURE__*/_jsx(View, {
45
+ style: [stylesheet.action, styles?.action],
46
+ children: action
47
+ }) : null]
48
+ });
49
+ };
50
+ const stylesheet = StyleSheet.create(theme => ({
51
+ container: {
52
+ alignItems: 'center',
53
+ gap: theme.space(1),
54
+ padding: theme.space(3)
55
+ },
56
+ icon: {
57
+ width: theme.sizes.control.lg + theme.space(2),
58
+ height: theme.sizes.control.lg + theme.space(2),
59
+ borderRadius: theme.radius.full,
60
+ alignItems: 'center',
61
+ justifyContent: 'center',
62
+ backgroundColor: theme.colors.surfaceSunken,
63
+ marginBottom: theme.space(0.5)
64
+ },
65
+ action: {
66
+ marginTop: theme.space(1)
67
+ }
68
+ }));
69
+ //# sourceMappingURL=EmptyState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","StyleSheet","useUnistyles","renderIcon","Text","jsx","_jsx","jsxs","_jsxs","EmptyState","ref","title","description","icon","illustration","action","style","styles","theme","accessible","accessibilityLabel","stylesheet","container","children","size","color","colors","textMuted","variant","align","accessibilityRole","tone","create","alignItems","gap","space","padding","width","sizes","control","lg","height","borderRadius","radius","full","justifyContent","backgroundColor","surfaceSunken","marginBottom","marginTop"],"sourceRoot":"../../../../src","sources":["components/display/EmptyState.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,EAAEC,YAAY,QAAQ,wBAAwB;AAEjE,SAASC,UAAU,QAAQ,iBAAc;AACzC,SAASC,IAAI,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAqBnC,OAAO,MAAMC,UAAU,GAAGA,CAAC;EACxBC,GAAG;EACHC,KAAK;EACLC,WAAW;EACXC,IAAI;EACJC,YAAY;EACZC,MAAM;EACNC,KAAK;EACLC;AACc,CAAC,KAAK;EACpB,MAAM;IAAEC;EAAM,CAAC,GAAGhB,YAAY,CAAC,CAAC;EAEhC,oBACGM,KAAA,CAACR,IAAI;IACFU,GAAG,EAAEA,GAAI;IACTS,UAAU;IACVC,kBAAkB,EAAER,WAAW,GAAG,GAAGD,KAAK,KAAKC,WAAW,EAAE,GAAGD,KAAM;IACrEK,KAAK,EAAE,CAACK,UAAU,CAACC,SAAS,EAAEN,KAAK,EAAEC,MAAM,EAAEK,SAAS,CAAE;IAAAC,QAAA,GAEvDT,YAAY,KACTD,IAAI,gBACFP,IAAA,CAACN,IAAI;MAACgB,KAAK,EAAE,CAACK,UAAU,CAACR,IAAI,EAAEI,MAAM,EAAEJ,IAAI,CAAE;MAAAU,QAAA,EACzCpB,UAAU,CAACU,IAAI,EAAE;QAAEW,IAAI,EAAE,IAAI;QAAEC,KAAK,EAAEP,KAAK,CAACQ,MAAM,CA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KAAK,CAACQ,MAAM,CAACqB,aAAa;IAC3CC,YAAY,EAAE9B,KAAK,CAACiB,KAAK,CAAC,GAAG;EAChC,CAAC;EACDpB,MAAM,EAAE;IACLkC,SAAS,EAAE/B,KAAK,CAACiB,KAAK,CAAC,CAAC;EAC3B;AACH,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { StyleSheet } from 'react-native-unistyles';
5
+ import { joinLabel } from "../../utils/a11y.js";
6
+ import { Text } from "../core/Text.js";
7
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
+ export const KeyValue = ({
9
+ ref,
10
+ label,
11
+ value,
12
+ orientation = 'horizontal',
13
+ style,
14
+ styles
15
+ }) => {
16
+ const textValue = typeof value === 'string' || typeof value === 'number';
17
+ return /*#__PURE__*/_jsxs(View, {
18
+ ref: ref,
19
+ accessible: textValue,
20
+ accessibilityLabel: textValue ? joinLabel(label, value) : undefined,
21
+ style: [stylesheet.container(orientation), style, styles?.container],
22
+ children: [/*#__PURE__*/_jsx(Text, {
23
+ variant: "label",
24
+ tone: "muted",
25
+ style: [stylesheet.label(orientation), styles?.label],
26
+ children: label
27
+ }), textValue ? /*#__PURE__*/_jsx(Text, {
28
+ variant: "body",
29
+ align: orientation === 'horizontal' ? 'right' : 'left',
30
+ style: [stylesheet.value(orientation), styles?.value],
31
+ children: value
32
+ }) : /*#__PURE__*/_jsx(View, {
33
+ style: stylesheet.value(orientation),
34
+ children: value
35
+ })]
36
+ });
37
+ };
38
+ const stylesheet = StyleSheet.create(theme => ({
39
+ container: orientation => ({
40
+ flexDirection: orientation === 'horizontal' ? 'row' : 'column',
41
+ alignItems: orientation === 'horizontal' ? 'flex-start' : 'stretch',
42
+ justifyContent: 'space-between',
43
+ gap: theme.space(orientation === 'horizontal' ? 2 : 0.25)
44
+ }),
45
+ label: orientation => ({
46
+ flexShrink: orientation === 'horizontal' ? 0 : 1
47
+ }),
48
+ value: orientation => ({
49
+ flexShrink: 1,
50
+ alignItems: orientation === 'horizontal' ? 'flex-end' : 'flex-start'
51
+ })
52
+ }));
53
+ //# sourceMappingURL=KeyValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["View","StyleSheet","joinLabel","Text","jsx","_jsx","jsxs","_jsxs","KeyValue","ref","label","value","orientation","style","styles","textValue","accessible","accessibilityLabel","undefined","stylesheet","container","children","variant","tone","align","create","theme","flexDirection","alignItems","justifyContent","gap","space","flexShrink"],"sourceRoot":"../../../../src","sources":["components/display/KeyValue.tsx"],"mappings":";;AACA,SAASA,IAAI,QAAQ,cAAc;AAEnC,SAASC,UAAU,QAAQ,wBAAwB;AACnD,SAASC,SAAS,QAAQ,qBAAkB;AAE5C,SAASC,IAAI,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAiBnC,OAAO,MAAMC,QAAQ,GAAGA,CAAC;EACtBC,GAAG;EACHC,KAAK;EACLC,KAAK;EACLC,WAAW,GAAG,YAAY;EAC1BC,KAAK;EACLC;AACY,CAAC,KAAK;EAClB,MAAMC,SAAS,GAAG,OAAOJ,KAAK,KAAK,QAAQ,IAAI,OAAOA,KAAK,KAAK,QAAQ;EACxE,oBACGJ,KAAA,CAACP,IAAI;IACFS,GAAG,EAAEA,GAAI;IACTO,UAAU,EAAED,SAAU;IACtBE,kBAAkB,EAAEF,SAAS,GAAGb,SAAS,CAACQ,KAAK,EAAEC,KAAK,CAAC,GAAGO,SAAU;IACpEL,KAAK,EAAE,CAACM,UAAU,CAACC,SAAS,CAACR,WAAW,CAAC,EAAEC,KAAK,EAAEC,MAAM,EAAEM,SAAS,CAAE;IAAAC,QAAA,gBAErEhB,IAAA,CAACF,IAAI;MAACmB,OAAO,EAAC,OAAO;MAACC,IAAI,EAAC,OAAO;MAACV,KAAK,EAAE,CAACM,UAAU,CAACT,KAAK,CAACE,WAAW,CAAC,EAAEE,MAAM,EAAEJ,KAAK,CAAE;MAAAW,QAAA,EACrFX;IAAK,CACH,CAAC,EACNK,SAAS,gBACPV,IAAA,CAACF,IAAI;MACFmB,OAAO,EAAC,MAAM;MACdE,KAAK,EAAEZ,WAAW,KAAK,YAAY,GAAG,OAAO,GAAG,MAAO;MACvDC,KAAK,EAAE,CAACM,UAAU,CAACR,KAAK,CAACC,WAAW,CAAC,EAAEE,MAAM,EAAEH,KAAK,CAAE;MAAAU,QAAA,EAErDV;IAAK,CACH,CAAC,gBAEPN,IAAA,CAACL,IAAI;MAACa,KAAK,EAAEM,UAAU,CAACR,KAAK,CAACC,WAAW,CAAE;MAAAS,QAAA,EAAEV;IAAK,CAAO,CAC3D;EAAA,CACE,CAAC;AAEb,CAAC;AAED,MAAMQ,UAAU,GAAGlB,UAAU,CAACwB,MAAM,CAAEC,KAAK,KAAM;EAC9CN,SAAS,EAAGR,WAAsC,KAAM;IACrDe,aAAa,EAAEf,WAAW,KAAK,YAAY,GAAG,KAAK,GAAG,QAAQ;IAC9DgB,UAAU,EAAEhB,WAAW,KAAK,YAAY,GAAG,YAAY,GAAG,SAAS;IACnEiB,cAAc,EAAE,eAAe;IAC/BC,GAAG,EAAEJ,KAAK,CAACK,KAAK,CAACnB,WAAW,KAAK,YAAY,GAAG,CAAC,GAAG,IAAI;EAC3D,CAAC,CAAC;EACFF,KAAK,EAAGE,WAAsC,KAAM;IACjDoB,UAAU,EAAEpB,WAAW,KAAK,YAAY,GAAG,CAAC,GAAG;EAClD,CAAC,CAAC;EACFD,KAAK,EAAGC,WAAsC,KAAM;IACjDoB,UAAU,EAAE,CAAC;IACbJ,UAAU,EAAEhB,WAAW,KAAK,YAAY,GAAG,UAAU,GAAG;EAC3D,CAAC;AACJ,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,156 @@
1
+ "use strict";
2
+
3
+ import { FlatList, SectionList, View } from 'react-native';
4
+ import { StyleSheet } from 'react-native-unistyles';
5
+ import { Text } from "../core/Text.js";
6
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
7
+ const ListRow = ({
8
+ first,
9
+ last,
10
+ inset,
11
+ separators,
12
+ separatorInset,
13
+ rowStyle,
14
+ separatorStyle,
15
+ children
16
+ }) => /*#__PURE__*/_jsxs(View, {
17
+ style: [stylesheet.row(inset, first, last), rowStyle],
18
+ children: [!first && separators ? /*#__PURE__*/_jsx(View, {
19
+ style: [stylesheet.separator(separatorInset), separatorStyle]
20
+ }) : null, children]
21
+ });
22
+ const defaultKeyExtractor = (_item, index) => String(index);
23
+ export const List = ({
24
+ ref,
25
+ data,
26
+ sections,
27
+ renderItem,
28
+ keyExtractor,
29
+ inset = false,
30
+ separators = true,
31
+ separatorInset = 0,
32
+ header,
33
+ footer,
34
+ emptyState,
35
+ scrollEnabled,
36
+ refreshing,
37
+ onRefresh,
38
+ onEndReached,
39
+ accessibilityLabel,
40
+ style,
41
+ styles
42
+ }) => {
43
+ const empty = emptyState ? /*#__PURE__*/_jsx(View, {
44
+ style: [stylesheet.empty, styles?.empty],
45
+ children: emptyState
46
+ }) : null;
47
+ const listProps = {
48
+ keyExtractor: keyExtractor ?? defaultKeyExtractor,
49
+ ListHeaderComponent: header ? /*#__PURE__*/_jsx(_Fragment, {
50
+ children: header
51
+ }) : undefined,
52
+ ListFooterComponent: footer ? /*#__PURE__*/_jsx(_Fragment, {
53
+ children: footer
54
+ }) : undefined,
55
+ ListEmptyComponent: empty,
56
+ scrollEnabled,
57
+ refreshing,
58
+ onRefresh,
59
+ onEndReached,
60
+ accessibilityLabel,
61
+ style: [stylesheet.container, style, styles?.container],
62
+ contentContainerStyle: [stylesheet.content(inset), styles?.content]
63
+ };
64
+ const rowProps = {
65
+ inset,
66
+ separators,
67
+ separatorInset,
68
+ rowStyle: styles?.row,
69
+ separatorStyle: styles?.separator
70
+ };
71
+ if (sections) {
72
+ return /*#__PURE__*/_jsx(SectionList, {
73
+ ...listProps,
74
+ sections: sections,
75
+ renderItem: ({
76
+ item,
77
+ index,
78
+ section
79
+ }) => /*#__PURE__*/_jsx(ListRow, {
80
+ first: index === 0,
81
+ last: index === section.data.length - 1,
82
+ ...rowProps,
83
+ children: renderItem({
84
+ item,
85
+ index
86
+ })
87
+ }),
88
+ renderSectionHeader: ({
89
+ section
90
+ }) => section.title ? /*#__PURE__*/_jsx(Text, {
91
+ variant: "caption",
92
+ weight: "semibold",
93
+ tone: "muted",
94
+ accessibilityRole: "header",
95
+ style: [stylesheet.sectionTitle(inset), styles?.sectionTitle],
96
+ children: section.title
97
+ }) : null,
98
+ stickySectionHeadersEnabled: false
99
+ });
100
+ }
101
+ const items = data ?? [];
102
+ return /*#__PURE__*/_jsx(FlatList, {
103
+ ...listProps,
104
+ ref: ref,
105
+ data: items,
106
+ renderItem: ({
107
+ item,
108
+ index
109
+ }) => /*#__PURE__*/_jsx(ListRow, {
110
+ first: index === 0,
111
+ last: index === items.length - 1,
112
+ ...rowProps,
113
+ children: renderItem({
114
+ item,
115
+ index
116
+ })
117
+ })
118
+ });
119
+ };
120
+ const stylesheet = StyleSheet.create(theme => ({
121
+ container: {
122
+ alignSelf: 'stretch'
123
+ },
124
+ content: inset => ({
125
+ paddingHorizontal: inset ? theme.space(2) : 0,
126
+ paddingVertical: inset ? theme.space(1) : 0
127
+ }),
128
+ row: (inset, first, last) => ({
129
+ backgroundColor: inset ? theme.colors.surfaceRaised : 'transparent',
130
+ borderTopLeftRadius: inset && first ? theme.radius.lg : 0,
131
+ borderTopRightRadius: inset && first ? theme.radius.lg : 0,
132
+ borderBottomLeftRadius: inset && last ? theme.radius.lg : 0,
133
+ borderBottomRightRadius: inset && last ? theme.radius.lg : 0,
134
+ borderLeftWidth: inset ? theme.sizes.borderWidth : 0,
135
+ borderRightWidth: inset ? theme.sizes.borderWidth : 0,
136
+ borderTopWidth: inset && first ? theme.sizes.borderWidth : 0,
137
+ borderBottomWidth: inset && last ? theme.sizes.borderWidth : 0,
138
+ borderColor: theme.colors.border,
139
+ overflow: 'hidden'
140
+ }),
141
+ separator: inset => ({
142
+ height: theme.sizes.borderWidth,
143
+ marginLeft: inset,
144
+ backgroundColor: theme.colors.border
145
+ }),
146
+ sectionTitle: inset => ({
147
+ paddingHorizontal: inset ? theme.space(0.5) : theme.space(2),
148
+ paddingTop: theme.space(2),
149
+ paddingBottom: theme.space(0.75),
150
+ textTransform: 'uppercase'
151
+ }),
152
+ empty: {
153
+ paddingVertical: theme.space(3)
154
+ }
155
+ }));
156
+ //# sourceMappingURL=List.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["FlatList","SectionList","View","StyleSheet","Text","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","ListRow","first","last","inset","separators","separatorInset","rowStyle","separatorStyle","children","style","stylesheet","row","separator","defaultKeyExtractor","_item","index","String","List","ref","data","sections","renderItem","keyExtractor","header","footer","emptyState","scrollEnabled","refreshing","onRefresh","onEndReached","accessibilityLabel","styles","empty","listProps","ListHeaderComponent","undefined","ListFooterComponent","ListEmptyComponent","container","contentContainerStyle","content","rowProps","item","section","length","renderSectionHeader","title","variant","weight","tone","accessibilityRole","sectionTitle","stickySectionHeadersEnabled","items","create","theme","alignSelf","paddingHorizontal","space","paddingVertical","backgroundColor","colors","surfaceRaised","borderTopLeftRadius","radius","lg","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","borderLeftWidth","sizes","borderWidth","borderRightWidth","borderTopWidth","borderBottomWidth","borderColor","border","overflow","height","marginLeft","paddingTop","paddingBottom","textTransform"],"sourceRoot":"../../../../src","sources":["components/display/List.tsx"],"mappings":";;AACA,SAASA,QAAQ,EAAEC,WAAW,EAAEC,IAAI,QAAQ,cAAc;AAE1D,SAASC,UAAU,QAAQ,wBAAwB;AAEnD,SAASC,IAAI,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA,EAAAC,QAAA,IAAAC,SAAA;AAiDnC,MAAMC,OAAO,GAAGA,CAAC;EACdC,KA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EACjC;AACH,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+
3
+ import { View } from 'react-native';
4
+ import { StyleSheet, useUnistyles } from 'react-native-unistyles';
5
+ import { joinLabel } from "../../utils/a11y.js";
6
+ import { disabledOpacity } from "../../utils/styles.js";
7
+ import { renderIcon } from "../core/Icon.js";
8
+ import { Text } from "../core/Text.js";
9
+ import { Touchable } from "../core/Touchable.js";
10
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
11
+ export const ListItem = ({
12
+ ref,
13
+ title,
14
+ subtitle,
15
+ leftElement,
16
+ rightElement,
17
+ chevron = false,
18
+ destructive = false,
19
+ selected = false,
20
+ disabled = false,
21
+ onPress,
22
+ accessibilityLabel,
23
+ accessibilityHint,
24
+ style,
25
+ styles
26
+ }) => {
27
+ const {
28
+ theme
29
+ } = useUnistyles();
30
+ const label = accessibilityLabel ?? joinLabel(title, subtitle);
31
+ const body = /*#__PURE__*/_jsxs(_Fragment, {
32
+ children: [leftElement ? /*#__PURE__*/_jsx(View, {
33
+ style: [stylesheet.element, styles?.leftElement],
34
+ children: leftElement
35
+ }) : null, /*#__PURE__*/_jsxs(View, {
36
+ style: [stylesheet.content, styles?.content],
37
+ children: [/*#__PURE__*/_jsx(Text, {
38
+ variant: "body",
39
+ tone: destructive ? 'danger' : 'default',
40
+ numberOfLines: 1,
41
+ style: styles?.title,
42
+ children: title
43
+ }), subtitle ? /*#__PURE__*/_jsx(Text, {
44
+ variant: "caption",
45
+ tone: "muted",
46
+ numberOfLines: 2,
47
+ style: styles?.subtitle,
48
+ children: subtitle
49
+ }) : null]
50
+ }), rightElement ? /*#__PURE__*/_jsx(View, {
51
+ style: [stylesheet.element, styles?.rightElement],
52
+ children: rightElement
53
+ }) : null, chevron ? /*#__PURE__*/_jsx(View, {
54
+ style: stylesheet.element,
55
+ children: renderIcon('chevron-right', {
56
+ size: 'sm',
57
+ color: theme.colors.textDimmed
58
+ })
59
+ }) : null]
60
+ });
61
+ if (onPress) {
62
+ return /*#__PURE__*/_jsx(Touchable, {
63
+ ref: ref,
64
+ feedback: "opacity",
65
+ accessibilityRole: "button",
66
+ accessibilityLabel: label,
67
+ accessibilityHint: accessibilityHint,
68
+ accessibilityState: {
69
+ disabled,
70
+ selected
71
+ },
72
+ disabled: disabled,
73
+ onPress: onPress,
74
+ style: [stylesheet.container(selected, disabled), style, styles?.container],
75
+ children: body
76
+ });
77
+ }
78
+ return /*#__PURE__*/_jsx(View, {
79
+ ref: ref,
80
+ accessible: true,
81
+ accessibilityLabel: label,
82
+ style: [stylesheet.container(selected, disabled), style, styles?.container],
83
+ children: body
84
+ });
85
+ };
86
+ const stylesheet = StyleSheet.create(theme => ({
87
+ container: (selected, disabled) => ({
88
+ flexDirection: 'row',
89
+ alignItems: 'center',
90
+ gap: theme.space(1.5),
91
+ minHeight: theme.components.listItem?.minHeight ?? theme.sizes.control.lg + 4,
92
+ paddingHorizontal: theme.components.listItem?.paddingX ?? theme.space(2),
93
+ paddingVertical: theme.space(1),
94
+ backgroundColor: selected ? theme.colors.primarySoft : 'transparent',
95
+ opacity: disabledOpacity(theme, disabled)
96
+ }),
97
+ element: {
98
+ alignItems: 'center',
99
+ justifyContent: 'center'
100
+ },
101
+ content: {
102
+ flex: 1,
103
+ gap: theme.space(0.25)
104
+ }
105
+ }));
106
+ //# sourceMappingURL=ListItem.js.map