@platform-blocks/ui 0.1.1

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 (533) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +44 -0
  3. package/lib/cjs/index.js +35531 -0
  4. package/lib/cjs/index.js.map +1 -0
  5. package/lib/components/Accessibility/AccessibilityDemo.d.ts +5 -0
  6. package/lib/components/Accessibility/AccessibilityHelpers.d.ts +49 -0
  7. package/lib/components/Accessibility/AccessibilityTesting.d.ts +24 -0
  8. package/lib/components/Accessibility/AccessibleComponents.d.ts +20 -0
  9. package/lib/components/Accessibility/index.d.ts +2 -0
  10. package/lib/components/Accordion/Accordion.d.ts +9 -0
  11. package/lib/components/Accordion/AccordionItem.d.ts +23 -0
  12. package/lib/components/Accordion/defaults.d.ts +13 -0
  13. package/lib/components/Accordion/hooks/useAccordionItemAnimation.d.ts +17 -0
  14. package/lib/components/Accordion/hooks/useMeasuredHeight.d.ts +8 -0
  15. package/lib/components/Accordion/index.d.ts +5 -0
  16. package/lib/components/Accordion/styles.d.ts +17 -0
  17. package/lib/components/Accordion/tokens.d.ts +12 -0
  18. package/lib/components/Accordion/types.d.ts +180 -0
  19. package/lib/components/Alert/Alert.d.ts +2 -0
  20. package/lib/components/Alert/index.d.ts +2 -0
  21. package/lib/components/Alert/types.d.ts +25 -0
  22. package/lib/components/AppShell/AppShell.d.ts +48 -0
  23. package/lib/components/AppShell/BottomAppBar.d.ts +3 -0
  24. package/lib/components/AppShell/MobileMenu.d.ts +10 -0
  25. package/lib/components/AppShell/StatusBarManager.d.ts +7 -0
  26. package/lib/components/AppShell/app-layout/AppLayoutProvider.d.ts +8 -0
  27. package/lib/components/AppShell/app-layout/AppLayoutRenderer.d.ts +5 -0
  28. package/lib/components/AppShell/app-layout/context.d.ts +4 -0
  29. package/lib/components/AppShell/app-layout/defineAppLayout.d.ts +2 -0
  30. package/lib/components/AppShell/app-layout/index.d.ts +5 -0
  31. package/lib/components/AppShell/app-layout/types.d.ts +120 -0
  32. package/lib/components/AppShell/context.d.ts +44 -0
  33. package/lib/components/AppShell/defaults.d.ts +6 -0
  34. package/lib/components/AppShell/hooks/useBreakpoint.d.ts +9 -0
  35. package/lib/components/AppShell/hooks/useResponsiveValue.d.ts +2 -0
  36. package/lib/components/AppShell/index.d.ts +12 -0
  37. package/lib/components/AppShell/meta.schema.d.ts +14 -0
  38. package/lib/components/AppShell/types.d.ts +228 -0
  39. package/lib/components/AppStoreBadge/AppStoreBadge.d.ts +5 -0
  40. package/lib/components/AppStoreBadge/ConvenienceComponents.d.ts +88 -0
  41. package/lib/components/AppStoreBadge/examples/usage-examples.d.ts +4 -0
  42. package/lib/components/AppStoreBadge/index.d.ts +3 -0
  43. package/lib/components/AppStoreBadge/types.d.ts +36 -0
  44. package/lib/components/AppStoreButton/AppStoreButton.d.ts +5 -0
  45. package/lib/components/AppStoreButton/ConvenienceComponents.d.ts +8 -0
  46. package/lib/components/AppStoreButton/index.d.ts +3 -0
  47. package/lib/components/AppStoreButton/types.d.ts +36 -0
  48. package/lib/components/AudioPlayer/AudioPlayer.d.ts +3 -0
  49. package/lib/components/AudioPlayer/AudioPlayerDemo.d.ts +2 -0
  50. package/lib/components/AudioPlayer/index.d.ts +2 -0
  51. package/lib/components/AudioPlayer/types.d.ts +232 -0
  52. package/lib/components/AutoComplete/AutoComplete.d.ts +6 -0
  53. package/lib/components/AutoComplete/index.d.ts +2 -0
  54. package/lib/components/AutoComplete/types.d.ts +120 -0
  55. package/lib/components/Avatar/Avatar.d.ts +3 -0
  56. package/lib/components/Avatar/AvatarGroup.d.ts +3 -0
  57. package/lib/components/Avatar/index.d.ts +3 -0
  58. package/lib/components/Avatar/types.d.ts +30 -0
  59. package/lib/components/Badge/Badge.d.ts +4 -0
  60. package/lib/components/Badge/index.d.ts +3 -0
  61. package/lib/components/Badge/types.d.ts +26 -0
  62. package/lib/components/Block/Block.d.ts +36 -0
  63. package/lib/components/Block/index.d.ts +2 -0
  64. package/lib/components/Block/types.d.ts +102 -0
  65. package/lib/components/Block/utils.d.ts +28 -0
  66. package/lib/components/Blockquote/Blockquote.d.ts +3 -0
  67. package/lib/components/Blockquote/BlockquoteAttribution.d.ts +3 -0
  68. package/lib/components/Blockquote/BlockquoteAuthor.d.ts +3 -0
  69. package/lib/components/Blockquote/BlockquoteMeta.d.ts +3 -0
  70. package/lib/components/Blockquote/BlockquoteSource.d.ts +3 -0
  71. package/lib/components/Blockquote/index.d.ts +6 -0
  72. package/lib/components/Blockquote/styles.d.ts +80 -0
  73. package/lib/components/Blockquote/types.d.ts +74 -0
  74. package/lib/components/BrandButton/BrandButton.d.ts +3 -0
  75. package/lib/components/BrandButton/index.d.ts +2 -0
  76. package/lib/components/BrandButton/types.d.ts +23 -0
  77. package/lib/components/BrandIcon/BrandIcon.d.ts +27 -0
  78. package/lib/components/BrandIcon/brands.d.ts +520 -0
  79. package/lib/components/BrandIcon/index.d.ts +2 -0
  80. package/lib/components/Breadcrumbs/Breadcrumbs.d.ts +6 -0
  81. package/lib/components/Breadcrumbs/index.d.ts +2 -0
  82. package/lib/components/Breadcrumbs/types.d.ts +35 -0
  83. package/lib/components/Button/Button.d.ts +3 -0
  84. package/lib/components/Button/SoundButton.d.ts +22 -0
  85. package/lib/components/Button/defaults.d.ts +7 -0
  86. package/lib/components/Button/index.d.ts +2 -0
  87. package/lib/components/Button/styles/resolver.d.ts +7 -0
  88. package/lib/components/Button/tokens.d.ts +16 -0
  89. package/lib/components/Button/types.d.ts +67 -0
  90. package/lib/components/Calendar/Calendar.d.ts +3 -0
  91. package/lib/components/Calendar/Day.d.ts +3 -0
  92. package/lib/components/Calendar/Month.d.ts +3 -0
  93. package/lib/components/Calendar/MonthPicker.d.ts +2 -0
  94. package/lib/components/Calendar/YearPicker.d.ts +2 -0
  95. package/lib/components/Calendar/index.d.ts +8 -0
  96. package/lib/components/Calendar/types.d.ts +92 -0
  97. package/lib/components/Calendar/utils.d.ts +31 -0
  98. package/lib/components/Can/Can.d.ts +30 -0
  99. package/lib/components/Can/PermissionDemo.d.ts +2 -0
  100. package/lib/components/Can/ability.d.ts +89 -0
  101. package/lib/components/Can/builder.d.ts +113 -0
  102. package/lib/components/Can/context.d.ts +25 -0
  103. package/lib/components/Can/index.d.ts +6 -0
  104. package/lib/components/Can/types.d.ts +228 -0
  105. package/lib/components/Card/Card.d.ts +3 -0
  106. package/lib/components/Card/index.d.ts +2 -0
  107. package/lib/components/Card/types.d.ts +15 -0
  108. package/lib/components/Carousel/Carousel.d.ts +4 -0
  109. package/lib/components/Carousel/index.d.ts +2 -0
  110. package/lib/components/Carousel/styles.d.ts +21 -0
  111. package/lib/components/Carousel/types.d.ts +51 -0
  112. package/lib/components/Checkbox/Checkbox.d.ts +4 -0
  113. package/lib/components/Checkbox/index.d.ts +2 -0
  114. package/lib/components/Checkbox/styles.d.ts +71 -0
  115. package/lib/components/Checkbox/types.d.ts +52 -0
  116. package/lib/components/Chip/Chip.d.ts +4 -0
  117. package/lib/components/Chip/index.d.ts +3 -0
  118. package/lib/components/Chip/types.d.ts +22 -0
  119. package/lib/components/CodeBlock/CodeBlock.d.ts +16 -0
  120. package/lib/components/CodeBlock/index.d.ts +3 -0
  121. package/lib/components/CodeBlock/type.d.ts +40 -0
  122. package/lib/components/CodeBlock/types.d.ts +44 -0
  123. package/lib/components/CodeBlock/utils.d.ts +38 -0
  124. package/lib/components/ColorPicker/ColorPicker.d.ts +8 -0
  125. package/lib/components/ColorPicker/index.d.ts +2 -0
  126. package/lib/components/ColorPicker/styles.d.ts +35 -0
  127. package/lib/components/ColorPicker/types.d.ts +69 -0
  128. package/lib/components/ColorPicker/utils.d.ts +8 -0
  129. package/lib/components/ColorSwatch/ColorSwatch.d.ts +6 -0
  130. package/lib/components/ColorSwatch/index.d.ts +2 -0
  131. package/lib/components/ColorSwatch/types.d.ts +29 -0
  132. package/lib/components/Container/Container.d.ts +3 -0
  133. package/lib/components/Container/index.d.ts +2 -0
  134. package/lib/components/Container/types.d.ts +31 -0
  135. package/lib/components/ContextMenu/ContextMenu.d.ts +5 -0
  136. package/lib/components/ContextMenu/index.d.ts +2 -0
  137. package/lib/components/ContextMenu/types.d.ts +36 -0
  138. package/lib/components/CopyButton/CopyButton.d.ts +10 -0
  139. package/lib/components/CopyButton/index.d.ts +2 -0
  140. package/lib/components/CopyButton/types.d.ts +37 -0
  141. package/lib/components/DataTable/AdvancedFilterControl.d.ts +10 -0
  142. package/lib/components/DataTable/ColumnSettings.d.ts +16 -0
  143. package/lib/components/DataTable/DataTable.d.ts +5 -0
  144. package/lib/components/DataTable/hooks/useColumnSettings.d.ts +12 -0
  145. package/lib/components/DataTable/hooks/useDataTableState.d.ts +41 -0
  146. package/lib/components/DataTable/hooks/useRowSelection.d.ts +40 -0
  147. package/lib/components/DataTable/index.d.ts +1 -0
  148. package/lib/components/DataTable/types.d.ts +223 -0
  149. package/lib/components/DatePicker/DatePicker.d.ts +4 -0
  150. package/lib/components/DatePicker/index.d.ts +8 -0
  151. package/lib/components/DatePicker/types.d.ts +47 -0
  152. package/lib/components/DatePicker/utils.d.ts +30 -0
  153. package/lib/components/DatePickerInput/DatePickerInput.d.ts +4 -0
  154. package/lib/components/DatePickerInput/index.d.ts +2 -0
  155. package/lib/components/DatePickerInput/types.d.ts +41 -0
  156. package/lib/components/Dialog/Dialog.d.ts +3 -0
  157. package/lib/components/Dialog/DialogContext.d.ts +11 -0
  158. package/lib/components/Dialog/DialogRenderer.d.ts +2 -0
  159. package/lib/components/Dialog/hooks/useSimpleDialog.d.ts +25 -0
  160. package/lib/components/Dialog/index.d.ts +6 -0
  161. package/lib/components/Dialog/types.d.ts +35 -0
  162. package/lib/components/Disclaimer/Disclaimer.d.ts +11 -0
  163. package/lib/components/Disclaimer/disclaimerUtils.d.ts +21 -0
  164. package/lib/components/Disclaimer/index.d.ts +6 -0
  165. package/lib/components/Disclaimer/withDisclaimer.d.ts +13 -0
  166. package/lib/components/Divider/Divider.d.ts +2 -0
  167. package/lib/components/Divider/index.d.ts +2 -0
  168. package/lib/components/Divider/types.d.ts +22 -0
  169. package/lib/components/EmojiPicker/EmojiPicker.d.ts +6 -0
  170. package/lib/components/EmojiPicker/index.d.ts +2 -0
  171. package/lib/components/EmojiPicker/types.d.ts +29 -0
  172. package/lib/components/FileInput/FileInput.d.ts +3 -0
  173. package/lib/components/FileInput/index.d.ts +2 -0
  174. package/lib/components/FileInput/types.d.ts +82 -0
  175. package/lib/components/Flex/Flex.d.ts +38 -0
  176. package/lib/components/Flex/helpers.d.ts +13 -0
  177. package/lib/components/Flex/index.d.ts +2 -0
  178. package/lib/components/FloatingActions/FloatingActions.d.ts +29 -0
  179. package/lib/components/FloatingActions/index.d.ts +2 -0
  180. package/lib/components/Form/FormBase.d.ts +3 -0
  181. package/lib/components/Form/FormContext.d.ts +16 -0
  182. package/lib/components/Form/FormError.d.ts +3 -0
  183. package/lib/components/Form/FormField.d.ts +3 -0
  184. package/lib/components/Form/FormInput.d.ts +3 -0
  185. package/lib/components/Form/FormLabel.d.ts +3 -0
  186. package/lib/components/Form/FormSubmit.d.ts +3 -0
  187. package/lib/components/Form/OptimizedForm.d.ts +22 -0
  188. package/lib/components/Form/index.d.ts +9 -0
  189. package/lib/components/Form/types.d.ts +104 -0
  190. package/lib/components/FormLayout/FormField.d.ts +3 -0
  191. package/lib/components/FormLayout/FormGroup.d.ts +3 -0
  192. package/lib/components/FormLayout/FormLayout.d.ts +3 -0
  193. package/lib/components/FormLayout/FormSection.d.ts +3 -0
  194. package/lib/components/FormLayout/index.d.ts +5 -0
  195. package/lib/components/FormLayout/types.d.ts +31 -0
  196. package/lib/components/Forms/ContactForm.d.ts +3 -0
  197. package/lib/components/Forms/ForgotPasswordForm.d.ts +3 -0
  198. package/lib/components/Forms/LoginForm.d.ts +3 -0
  199. package/lib/components/Forms/SignupForm.d.ts +3 -0
  200. package/lib/components/Forms/index.d.ts +5 -0
  201. package/lib/components/Forms/types.d.ts +89 -0
  202. package/lib/components/Gallery/Gallery.d.ts +3 -0
  203. package/lib/components/Gallery/GalleryControls.d.ts +3 -0
  204. package/lib/components/Gallery/GalleryMetadata.d.ts +3 -0
  205. package/lib/components/Gallery/GalleryNew.d.ts +3 -0
  206. package/lib/components/Gallery/GalleryThumbnails.d.ts +3 -0
  207. package/lib/components/Gallery/index.d.ts +5 -0
  208. package/lib/components/Gallery/types.d.ts +68 -0
  209. package/lib/components/Gauge/Gauge.d.ts +41 -0
  210. package/lib/components/Gauge/index.d.ts +9 -0
  211. package/lib/components/Gauge/styles.d.ts +57 -0
  212. package/lib/components/Gauge/types.d.ts +210 -0
  213. package/lib/components/Gauge/utils.d.ts +72 -0
  214. package/lib/components/GradientText/GradientText.d.ts +46 -0
  215. package/lib/components/GradientText/index.d.ts +2 -0
  216. package/lib/components/GradientText/types.d.ts +39 -0
  217. package/lib/components/Grid/Grid.d.ts +11 -0
  218. package/lib/components/Grid/index.d.ts +2 -0
  219. package/lib/components/Grid/types.d.ts +32 -0
  220. package/lib/components/HoverCard/HoverCard.d.ts +2 -0
  221. package/lib/components/HoverCard/index.d.ts +2 -0
  222. package/lib/components/HoverCard/types.d.ts +53 -0
  223. package/lib/components/Icon/Icon.d.ts +6 -0
  224. package/lib/components/Icon/icons/actions.d.ts +2 -0
  225. package/lib/components/Icon/icons/data.d.ts +2 -0
  226. package/lib/components/Icon/icons/multimedia.d.ts +2 -0
  227. package/lib/components/Icon/icons/navigation.d.ts +2 -0
  228. package/lib/components/Icon/icons/platforms.d.ts +2 -0
  229. package/lib/components/Icon/icons/status.d.ts +2 -0
  230. package/lib/components/Icon/icons/ui.d.ts +2 -0
  231. package/lib/components/Icon/index.d.ts +2 -0
  232. package/lib/components/Icon/registry.d.ts +6 -0
  233. package/lib/components/Icon/types.d.ts +40 -0
  234. package/lib/components/IconButton/IconButton.d.ts +3 -0
  235. package/lib/components/IconButton/index.d.ts +2 -0
  236. package/lib/components/IconButton/types.d.ts +45 -0
  237. package/lib/components/Image/Image.d.ts +3 -0
  238. package/lib/components/Image/index.d.ts +2 -0
  239. package/lib/components/Image/types.d.ts +57 -0
  240. package/lib/components/Indicator/Indicator.d.ts +7 -0
  241. package/lib/components/Indicator/index.d.ts +2 -0
  242. package/lib/components/Indicator/types.d.ts +13 -0
  243. package/lib/components/Input/Input.d.ts +6 -0
  244. package/lib/components/Input/InputBase.d.ts +17 -0
  245. package/lib/components/Input/OptimizedInput.d.ts +19 -0
  246. package/lib/components/Input/PasswordInput.d.ts +3 -0
  247. package/lib/components/Input/index.d.ts +5 -0
  248. package/lib/components/Input/styles.d.ts +85 -0
  249. package/lib/components/Input/types.d.ts +120 -0
  250. package/lib/components/Input/validation/index.d.ts +14 -0
  251. package/lib/components/Input/validation/optimized.d.ts +33 -0
  252. package/lib/components/KeyCap/KeyCap.d.ts +6 -0
  253. package/lib/components/KeyCap/index.d.ts +3 -0
  254. package/lib/components/KeyCap/styles.d.ts +11 -0
  255. package/lib/components/KeyCap/types.d.ts +54 -0
  256. package/lib/components/Layout/Layout.d.ts +18 -0
  257. package/lib/components/Layout/index.d.ts +1 -0
  258. package/lib/components/Link/Link.d.ts +31 -0
  259. package/lib/components/Link/index.d.ts +2 -0
  260. package/lib/components/ListGroup/ListGroup.d.ts +19 -0
  261. package/lib/components/ListGroup/index.d.ts +2 -0
  262. package/lib/components/ListGroup/types.d.ts +26 -0
  263. package/lib/components/Loader/Loader.d.ts +8 -0
  264. package/lib/components/Loader/index.d.ts +2 -0
  265. package/lib/components/Loader/types.d.ts +18 -0
  266. package/lib/components/LoadingOverlay/LoadingOverlay.d.ts +3 -0
  267. package/lib/components/LoadingOverlay/index.d.ts +2 -0
  268. package/lib/components/LoadingOverlay/types.d.ts +16 -0
  269. package/lib/components/Lottie/Lottie.d.ts +30 -0
  270. package/lib/components/Lottie/index.d.ts +2 -0
  271. package/lib/components/Markdown/Markdown.d.ts +66 -0
  272. package/lib/components/Markdown/index.d.ts +1 -0
  273. package/lib/components/Masonry/Masonry.d.ts +7 -0
  274. package/lib/components/Masonry/index.d.ts +2 -0
  275. package/lib/components/Masonry/types.d.ts +39 -0
  276. package/lib/components/Menu/Menu.d.ts +29 -0
  277. package/lib/components/Menu/index.d.ts +2 -0
  278. package/lib/components/Menu/styles.d.ts +13 -0
  279. package/lib/components/Menu/types.d.ts +71 -0
  280. package/lib/components/MenuItemButton/MenuItemButton.d.ts +39 -0
  281. package/lib/components/MenuItemButton/index.d.ts +2 -0
  282. package/lib/components/MiniCalendar/MiniCalendar.d.ts +3 -0
  283. package/lib/components/MiniCalendar/index.d.ts +1 -0
  284. package/lib/components/MonthPicker/MonthPicker.d.ts +3 -0
  285. package/lib/components/MonthPicker/index.d.ts +2 -0
  286. package/lib/components/MonthPicker/types.d.ts +26 -0
  287. package/lib/components/MonthPickerInput/MonthPickerInput.d.ts +4 -0
  288. package/lib/components/MonthPickerInput/index.d.ts +2 -0
  289. package/lib/components/MonthPickerInput/types.d.ts +30 -0
  290. package/lib/components/Navigation/DrawerNavigator.d.ts +7 -0
  291. package/lib/components/Navigation/NavigationContainer.d.ts +11 -0
  292. package/lib/components/Navigation/NavigationContext.d.ts +11 -0
  293. package/lib/components/Navigation/Screen.d.ts +6 -0
  294. package/lib/components/Navigation/StackNavigator.d.ts +7 -0
  295. package/lib/components/Navigation/index.d.ts +6 -0
  296. package/lib/components/Navigation/types.d.ts +70 -0
  297. package/lib/components/NavigationProgress/NavigationProgress.d.ts +4 -0
  298. package/lib/components/NavigationProgress/defaults.d.ts +8 -0
  299. package/lib/components/NavigationProgress/hooks/useNavigationProgressState.d.ts +1 -0
  300. package/lib/components/NavigationProgress/index.d.ts +2 -0
  301. package/lib/components/NavigationProgress/styles/resolver.d.ts +1 -0
  302. package/lib/components/NavigationProgress/tokens.d.ts +4 -0
  303. package/lib/components/NavigationProgress/types.d.ts +30 -0
  304. package/lib/components/NumberInput/NumberInput.d.ts +5 -0
  305. package/lib/components/NumberInput/index.d.ts +2 -0
  306. package/lib/components/NumberInput/types.d.ts +76 -0
  307. package/lib/components/Overlay/Overlay.d.ts +4 -0
  308. package/lib/components/Overlay/index.d.ts +2 -0
  309. package/lib/components/Overlay/types.d.ts +27 -0
  310. package/lib/components/Pagination/Pagination.d.ts +6 -0
  311. package/lib/components/Pagination/index.d.ts +2 -0
  312. package/lib/components/Pagination/types.d.ts +58 -0
  313. package/lib/components/PhoneInput/PhoneInput.d.ts +3 -0
  314. package/lib/components/PhoneInput/index.d.ts +2 -0
  315. package/lib/components/PhoneInput/types.d.ts +27 -0
  316. package/lib/components/PinInput/PinInput.d.ts +6 -0
  317. package/lib/components/PinInput/index.d.ts +2 -0
  318. package/lib/components/PinInput/types.d.ts +41 -0
  319. package/lib/components/PressAnimation/PressAnimation.d.ts +29 -0
  320. package/lib/components/PressAnimation/index.d.ts +2 -0
  321. package/lib/components/Progress/Progress.d.ts +11 -0
  322. package/lib/components/Progress/index.d.ts +2 -0
  323. package/lib/components/Progress/types.d.ts +48 -0
  324. package/lib/components/QRCode/QRCode.d.ts +11 -0
  325. package/lib/components/QRCode/QRCodeSVG.d.ts +6 -0
  326. package/lib/components/QRCode/core/buildMatrix.d.ts +11 -0
  327. package/lib/components/QRCode/core/encoder.d.ts +12 -0
  328. package/lib/components/QRCode/core/mask.d.ts +2 -0
  329. package/lib/components/QRCode/core/mode.d.ts +6 -0
  330. package/lib/components/QRCode/core/reedSolomon.d.ts +1 -0
  331. package/lib/components/QRCode/core/tables.d.ts +24 -0
  332. package/lib/components/QRCode/index.d.ts +3 -0
  333. package/lib/components/QRCode/optimizations.d.ts +20 -0
  334. package/lib/components/QRCode/types.d.ts +76 -0
  335. package/lib/components/Radio/Radio.d.ts +10 -0
  336. package/lib/components/Radio/index.d.ts +2 -0
  337. package/lib/components/Radio/styles.d.ts +81 -0
  338. package/lib/components/Radio/types.d.ts +79 -0
  339. package/lib/components/Rating/Rating.d.ts +2 -0
  340. package/lib/components/Rating/index.d.ts +2 -0
  341. package/lib/components/Rating/types.d.ts +35 -0
  342. package/lib/components/Reveal/Reveal.d.ts +4 -0
  343. package/lib/components/Reveal/index.d.ts +2 -0
  344. package/lib/components/Reveal/types.d.ts +53 -0
  345. package/lib/components/RichTextEditor/RichTextEditor.d.ts +3 -0
  346. package/lib/components/RichTextEditor/index.d.ts +2 -0
  347. package/lib/components/RichTextEditor/styles.d.ts +61 -0
  348. package/lib/components/RichTextEditor/types.d.ts +150 -0
  349. package/lib/components/Search/Search.d.ts +6 -0
  350. package/lib/components/Search/index.d.ts +2 -0
  351. package/lib/components/Search/test-component.d.ts +3 -0
  352. package/lib/components/Search/types.d.ts +27 -0
  353. package/lib/components/SegmentedControl/SegmentedControl.d.ts +6 -0
  354. package/lib/components/SegmentedControl/index.d.ts +2 -0
  355. package/lib/components/SegmentedControl/types.d.ts +62 -0
  356. package/lib/components/Select/Select.d.ts +6 -0
  357. package/lib/components/Select/Select.types.d.ts +31 -0
  358. package/lib/components/Select/index.d.ts +2 -0
  359. package/lib/components/Select/types.d.ts +25 -0
  360. package/lib/components/ShimmerText/ShimmerText.d.ts +33 -0
  361. package/lib/components/ShimmerText/index.d.ts +2 -0
  362. package/lib/components/ShimmerText/types.d.ts +33 -0
  363. package/lib/components/Skeleton/Skeleton.d.ts +2 -0
  364. package/lib/components/Skeleton/index.d.ts +2 -0
  365. package/lib/components/Skeleton/types.d.ts +30 -0
  366. package/lib/components/Slider/Slider.d.ts +10 -0
  367. package/lib/components/Slider/SliderCore.d.ts +57 -0
  368. package/lib/components/Slider/index.d.ts +2 -0
  369. package/lib/components/Slider/types.d.ts +133 -0
  370. package/lib/components/Space/Space.d.ts +4 -0
  371. package/lib/components/Space/index.d.ts +2 -0
  372. package/lib/components/Space/types.d.ts +17 -0
  373. package/lib/components/Spoiler/Spoiler.d.ts +5 -0
  374. package/lib/components/Spoiler/index.d.ts +2 -0
  375. package/lib/components/Spoiler/types.d.ts +40 -0
  376. package/lib/components/Spotlight/DirectSpotlightState.d.ts +41 -0
  377. package/lib/components/Spotlight/Spotlight.d.ts +19 -0
  378. package/lib/components/Spotlight/SpotlightController.d.ts +13 -0
  379. package/lib/components/Spotlight/SpotlightStore.d.ts +32 -0
  380. package/lib/components/Spotlight/SpotlightTypes.d.ts +29 -0
  381. package/lib/components/Spotlight/index.d.ts +6 -0
  382. package/lib/components/Spotlight/types.d.ts +66 -0
  383. package/lib/components/Stepper/Stepper.d.ts +12 -0
  384. package/lib/components/Stepper/index.d.ts +2 -0
  385. package/lib/components/Stepper/types.d.ts +68 -0
  386. package/lib/components/Switch/Switch.d.ts +6 -0
  387. package/lib/components/Switch/index.d.ts +2 -0
  388. package/lib/components/Switch/styles.d.ts +85 -0
  389. package/lib/components/Switch/types.d.ts +54 -0
  390. package/lib/components/Table/Table.d.ts +115 -0
  391. package/lib/components/Table/index.d.ts +1 -0
  392. package/lib/components/TableOfContents/TableOfContents.d.ts +3 -0
  393. package/lib/components/TableOfContents/index.d.ts +2 -0
  394. package/lib/components/TableOfContents/types.d.ts +77 -0
  395. package/lib/components/Tabs/Tabs.d.ts +3 -0
  396. package/lib/components/Tabs/index.d.ts +2 -0
  397. package/lib/components/Tabs/types.d.ts +182 -0
  398. package/lib/components/Text/Text.d.ts +51 -0
  399. package/lib/components/Text/aliases.d.ts +22 -0
  400. package/lib/components/Text/index.d.ts +2 -0
  401. package/lib/components/TextArea/TextArea.d.ts +6 -0
  402. package/lib/components/TextArea/index.d.ts +2 -0
  403. package/lib/components/TextArea/meta/index.d.ts +97 -0
  404. package/lib/components/TextArea/styles.d.ts +95 -0
  405. package/lib/components/TextArea/types.d.ts +33 -0
  406. package/lib/components/TimePicker/TimePicker.d.ts +3 -0
  407. package/lib/components/TimePicker/index.d.ts +2 -0
  408. package/lib/components/TimePicker/types.d.ts +32 -0
  409. package/lib/components/TimePickerInput/index.d.ts +2 -0
  410. package/lib/components/Timeline/Timeline.d.ts +13 -0
  411. package/lib/components/Timeline/index.d.ts +2 -0
  412. package/lib/components/Timeline/types.d.ts +53 -0
  413. package/lib/components/Title/Title.d.ts +10 -0
  414. package/lib/components/Title/index.d.ts +2 -0
  415. package/lib/components/Title/types.d.ts +55 -0
  416. package/lib/components/Toast/Toast.d.ts +8 -0
  417. package/lib/components/Toast/ToastProvider.d.ts +88 -0
  418. package/lib/components/Toast/index.d.ts +3 -0
  419. package/lib/components/Toast/types.d.ts +78 -0
  420. package/lib/components/Toggle/Toggle.d.ts +10 -0
  421. package/lib/components/Toggle/ToggleBar.d.ts +42 -0
  422. package/lib/components/Toggle/index.d.ts +4 -0
  423. package/lib/components/Toggle/types.d.ts +68 -0
  424. package/lib/components/Tooltip/Tooltip.d.ts +2 -0
  425. package/lib/components/Tooltip/index.d.ts +2 -0
  426. package/lib/components/Tooltip/types.d.ts +44 -0
  427. package/lib/components/Tree/Tree.d.ts +5 -0
  428. package/lib/components/Tree/index.d.ts +2 -0
  429. package/lib/components/Tree/types.d.ts +65 -0
  430. package/lib/components/Video/NativeVideoPlayer.d.ts +33 -0
  431. package/lib/components/Video/Video.d.ts +3 -0
  432. package/lib/components/Video/VideoControls.d.ts +17 -0
  433. package/lib/components/Video/VideoTimeline.d.ts +12 -0
  434. package/lib/components/Video/YouTubePlayer.d.ts +44 -0
  435. package/lib/components/Video/index.d.ts +2 -0
  436. package/lib/components/Video/types.d.ts +145 -0
  437. package/lib/components/Waveform/Waveform.d.ts +3 -0
  438. package/lib/components/Waveform/WaveformSkeleton.d.ts +9 -0
  439. package/lib/components/Waveform/index.d.ts +4 -0
  440. package/lib/components/Waveform/styles.d.ts +53 -0
  441. package/lib/components/Waveform/types.d.ts +124 -0
  442. package/lib/components/Waveform/utils.d.ts +95 -0
  443. package/lib/components/YearPicker/YearPicker.d.ts +3 -0
  444. package/lib/components/YearPicker/index.d.ts +2 -0
  445. package/lib/components/YearPicker/types.d.ts +24 -0
  446. package/lib/components/YearPickerInput/YearPickerInput.d.ts +4 -0
  447. package/lib/components/YearPickerInput/index.d.ts +2 -0
  448. package/lib/components/YearPickerInput/types.d.ts +26 -0
  449. package/lib/components/_internal/FieldHeader.d.ts +21 -0
  450. package/lib/components/index.d.ts +164 -0
  451. package/lib/components/optimized.d.ts +74 -0
  452. package/lib/components/types.d.ts +57 -0
  453. package/lib/contexts/TitleRegistryContext.d.ts +20 -0
  454. package/lib/contexts/index.d.ts +1 -0
  455. package/lib/core/accessibility/advancedHooks.d.ts +82 -0
  456. package/lib/core/accessibility/constants.d.ts +85 -0
  457. package/lib/core/accessibility/context.d.ts +5 -0
  458. package/lib/core/accessibility/hooks.d.ts +33 -0
  459. package/lib/core/accessibility/index.d.ts +6 -0
  460. package/lib/core/accessibility/types.d.ts +35 -0
  461. package/lib/core/accessibility/utils.d.ts +56 -0
  462. package/lib/core/animations/index.d.ts +2 -0
  463. package/lib/core/animations/transitions.d.ts +31 -0
  464. package/lib/core/components/ClearButton.d.ts +15 -0
  465. package/lib/core/components/InputContainer.d.ts +19 -0
  466. package/lib/core/design-tokens.d.ts +292 -0
  467. package/lib/core/factory/factory.d.ts +33 -0
  468. package/lib/core/factory/index.d.ts +4 -0
  469. package/lib/core/factory/polymorphicFactory.d.ts +38 -0
  470. package/lib/core/haptics/HapticsProvider.d.ts +14 -0
  471. package/lib/core/hooks/useDropdownPositioning.d.ts +61 -0
  472. package/lib/core/hooks/usePopoverPositioning.d.ts +33 -0
  473. package/lib/core/i18n/I18nContext.d.ts +8 -0
  474. package/lib/core/i18n/index.d.ts +2 -0
  475. package/lib/core/i18n/types.d.ts +22 -0
  476. package/lib/core/index.d.ts +15 -0
  477. package/lib/core/interactive-states.d.ts +41 -0
  478. package/lib/core/motion/ReducedMotionProvider.d.ts +10 -0
  479. package/lib/core/motion/motionTokens.d.ts +12 -0
  480. package/lib/core/providers/DirectionProvider.d.ts +88 -0
  481. package/lib/core/providers/OverlayProvider.d.ts +40 -0
  482. package/lib/core/providers/OverlayRenderer.d.ts +7 -0
  483. package/lib/core/providers/index.d.ts +5 -0
  484. package/lib/core/responsive/index.d.ts +22 -0
  485. package/lib/core/sound/context.d.ts +21 -0
  486. package/lib/core/sound/hooks.d.ts +214 -0
  487. package/lib/core/sound/index.d.ts +5 -0
  488. package/lib/core/sound/mockContext.d.ts +21 -0
  489. package/lib/core/sound/sounds.d.ts +17 -0
  490. package/lib/core/sound/types.d.ts +79 -0
  491. package/lib/core/style-factory.d.ts +23 -0
  492. package/lib/core/theme/CSSVariables.d.ts +9 -0
  493. package/lib/core/theme/PlatformBlocksProvider.d.ts +52 -0
  494. package/lib/core/theme/ThemeModeProvider.d.ts +42 -0
  495. package/lib/core/theme/ThemeProvider.d.ts +19 -0
  496. package/lib/core/theme/breakpoints.d.ts +34 -0
  497. package/lib/core/theme/darkTheme.d.ts +2 -0
  498. package/lib/core/theme/defaultTheme.d.ts +2 -0
  499. package/lib/core/theme/index.d.ts +12 -0
  500. package/lib/core/theme/radius.d.ts +132 -0
  501. package/lib/core/theme/shadow.d.ts +119 -0
  502. package/lib/core/theme/sizes.d.ts +185 -0
  503. package/lib/core/theme/types.d.ts +190 -0
  504. package/lib/core/theme/unified-sizing.d.ts +65 -0
  505. package/lib/core/theme/useColorScheme.d.ts +6 -0
  506. package/lib/core/theme/utils.d.ts +9 -0
  507. package/lib/core/unified-styles.d.ts +12 -0
  508. package/lib/core/utils/UniversalCSS.d.ts +14 -0
  509. package/lib/core/utils/debounce.d.ts +16 -0
  510. package/lib/core/utils/hash.d.ts +4 -0
  511. package/lib/core/utils/index.d.ts +38 -0
  512. package/lib/core/utils/layout.d.ts +44 -0
  513. package/lib/core/utils/performance.d.ts +30 -0
  514. package/lib/core/utils/positioning-enhanced.d.ts +88 -0
  515. package/lib/core/utils/rtl.d.ts +174 -0
  516. package/lib/core/utils/shadow.d.ts +13 -0
  517. package/lib/core/utils/spacing.d.ts +56 -0
  518. package/lib/core/utils/universal.d.ts +47 -0
  519. package/lib/core/utils/universalSimple.d.ts +37 -0
  520. package/lib/core/utils/withUniversalProps.d.ts +26 -0
  521. package/lib/esm/index.js +35209 -0
  522. package/lib/esm/index.js.map +1 -0
  523. package/lib/hooks/index.d.ts +6 -0
  524. package/lib/hooks/useClipboard.d.ts +20 -0
  525. package/lib/hooks/useHaptics.d.ts +22 -0
  526. package/lib/hooks/useHotkeys.d.ts +42 -0
  527. package/lib/hooks/useMaskedInput.d.ts +35 -0
  528. package/lib/hooks/useScrollSpy.d.ts +38 -0
  529. package/lib/hooks/useTitleRegistration.d.ts +14 -0
  530. package/lib/index.d.ts +220 -0
  531. package/lib/utils/index.d.ts +1 -0
  532. package/lib/utils/mask.d.ts +138 -0
  533. package/package.json +148 -0
@@ -0,0 +1,232 @@
1
+ import type { WaveformProps } from '../Waveform/types';
2
+ export interface AudioPlayerProps extends Omit<WaveformProps, 'peaks' | 'progress' | 'variant'> {
3
+ /** Audio source - can be URL, local file, or asset */
4
+ source?: string | number | {
5
+ uri: string;
6
+ };
7
+ /** Pre-computed waveform peaks (optional - will generate if not provided) */
8
+ peaks?: number[];
9
+ /** Whether to auto-play when loaded */
10
+ autoPlay?: boolean;
11
+ /** Whether to loop the audio */
12
+ loop?: boolean;
13
+ /** Initial volume (0-1) */
14
+ volume?: number;
15
+ /** Playback rate (0.5-2.0) */
16
+ rate?: number;
17
+ /** Whether to show player controls */
18
+ showControls?: boolean;
19
+ /** Which controls to display */
20
+ controls?: {
21
+ playPause?: boolean;
22
+ skip?: boolean;
23
+ volume?: boolean;
24
+ speed?: boolean;
25
+ download?: boolean;
26
+ share?: boolean;
27
+ waveform?: boolean;
28
+ };
29
+ /** Custom control layout */
30
+ controlsPosition?: 'top' | 'bottom' | 'overlay' | 'none';
31
+ /** Player theme variant */
32
+ variant?: 'minimal' | 'compact' | 'full' | 'soundcloud' | 'spotify';
33
+ /** Color scheme */
34
+ colorScheme?: 'light' | 'dark' | 'auto';
35
+ /** Called when audio is loaded and ready */
36
+ onLoad?: (data: AudioLoadData) => void;
37
+ /** Called when playback state changes */
38
+ onPlaybackStateChange?: (state: PlaybackState) => void;
39
+ /** Called during playback with current time */
40
+ onProgress?: (data: ProgressData) => void;
41
+ /** Called when playback finishes */
42
+ onEnd?: () => void;
43
+ /** Called on playback error */
44
+ onError?: (error: AudioError) => void;
45
+ /** Called when audio buffer updates */
46
+ onBuffer?: (data: BufferData) => void;
47
+ /** Whether to generate waveform from audio */
48
+ generateWaveform?: boolean;
49
+ /** Waveform generation options */
50
+ waveformOptions?: {
51
+ samples?: number;
52
+ precision?: number;
53
+ channel?: 'left' | 'right' | 'mix';
54
+ };
55
+ /** Show time labels */
56
+ showTime?: boolean;
57
+ /** Time format */
58
+ timeFormat?: 'mm:ss' | 'hh:mm:ss' | 'relative';
59
+ /** Show audio metadata */
60
+ showMetadata?: boolean;
61
+ /** Audio metadata */
62
+ metadata?: AudioMetadata;
63
+ /** Show spectrum analyzer */
64
+ showSpectrum?: boolean;
65
+ /** Spectrum analyzer options */
66
+ spectrumOptions?: SpectrumOptions;
67
+ /** Enable keyboard shortcuts */
68
+ enableKeyboardShortcuts?: boolean;
69
+ /** Custom keyboard shortcuts */
70
+ keyboardShortcuts?: KeyboardShortcuts;
71
+ /** Enable gesture controls */
72
+ enableGestures?: boolean;
73
+ /** Gesture configuration */
74
+ gestureConfig?: GestureConfig;
75
+ /** Enable audio effects */
76
+ enableEffects?: boolean;
77
+ /** Audio effects configuration */
78
+ effects?: AudioEffects;
79
+ /** Enable playlist support */
80
+ playlist?: PlaylistItem[];
81
+ /** Current playlist index */
82
+ currentTrack?: number;
83
+ /** Playlist callbacks */
84
+ onTrackChange?: (index: number, track: PlaylistItem) => void;
85
+ /** Enable audio export */
86
+ enableExport?: boolean;
87
+ /** Export options */
88
+ exportOptions?: {
89
+ formats?: ('mp3' | 'wav' | 'aac')[];
90
+ quality?: 'low' | 'medium' | 'high';
91
+ };
92
+ /** Custom share options */
93
+ shareOptions?: {
94
+ platforms?: ('copy' | 'email' | 'social')[];
95
+ includeTimestamp?: boolean;
96
+ };
97
+ }
98
+ export interface AudioLoadData {
99
+ duration: number;
100
+ sampleRate: number;
101
+ channels: number;
102
+ bitrate?: number;
103
+ format?: string;
104
+ peaks?: number[];
105
+ }
106
+ export interface PlaybackState {
107
+ isPlaying: boolean;
108
+ isLoading: boolean;
109
+ isBuffering: boolean;
110
+ currentTime: number;
111
+ duration: number;
112
+ volume: number;
113
+ rate: number;
114
+ loop: boolean;
115
+ }
116
+ export interface ProgressData {
117
+ currentTime: number;
118
+ duration: number;
119
+ progress: number;
120
+ position: number;
121
+ buffered: number;
122
+ }
123
+ export interface BufferData {
124
+ buffered: number;
125
+ bufferedRanges: {
126
+ start: number;
127
+ end: number;
128
+ }[];
129
+ }
130
+ export interface AudioError {
131
+ code: string;
132
+ message: string;
133
+ details?: any;
134
+ }
135
+ export interface AudioMetadata {
136
+ title?: string;
137
+ artist?: string;
138
+ album?: string;
139
+ artwork?: string;
140
+ duration?: number;
141
+ genre?: string;
142
+ year?: number;
143
+ }
144
+ export interface SpectrumOptions {
145
+ fftSize?: number;
146
+ smoothingTimeConstant?: number;
147
+ minDecibels?: number;
148
+ maxDecibels?: number;
149
+ bands?: number;
150
+ style?: 'bars' | 'line' | 'circular';
151
+ }
152
+ export interface KeyboardShortcuts {
153
+ playPause?: string;
154
+ skipForward?: string;
155
+ skipBackward?: string;
156
+ volumeUp?: string;
157
+ volumeDown?: string;
158
+ mute?: string;
159
+ seek?: string;
160
+ }
161
+ export interface GestureConfig {
162
+ doubleTapToPlay?: boolean;
163
+ swipeToSeek?: boolean;
164
+ pinchToZoom?: boolean;
165
+ longPressToScrub?: boolean;
166
+ }
167
+ export interface AudioEffects {
168
+ equalizer?: EqualizerSettings;
169
+ reverb?: ReverbSettings;
170
+ compressor?: CompressorSettings;
171
+ filters?: FilterSettings[];
172
+ }
173
+ export interface EqualizerSettings {
174
+ enabled: boolean;
175
+ bands: {
176
+ frequency: number;
177
+ gain: number;
178
+ }[];
179
+ preset?: 'rock' | 'pop' | 'jazz' | 'classical' | 'electronic' | 'custom';
180
+ }
181
+ export interface ReverbSettings {
182
+ enabled: boolean;
183
+ roomSize: number;
184
+ dampening: number;
185
+ wetLevel: number;
186
+ dryLevel: number;
187
+ }
188
+ export interface CompressorSettings {
189
+ enabled: boolean;
190
+ threshold: number;
191
+ ratio: number;
192
+ attack: number;
193
+ release: number;
194
+ }
195
+ export interface FilterSettings {
196
+ type: 'lowpass' | 'highpass' | 'bandpass' | 'notch';
197
+ frequency: number;
198
+ q: number;
199
+ gain?: number;
200
+ }
201
+ export interface PlaylistItem {
202
+ id: string;
203
+ source: string | number | {
204
+ uri: string;
205
+ };
206
+ title?: string;
207
+ artist?: string;
208
+ duration?: number;
209
+ artwork?: string;
210
+ peaks?: number[];
211
+ metadata?: AudioMetadata;
212
+ }
213
+ export interface AudioPlayerRef {
214
+ play: () => Promise<void>;
215
+ pause: () => Promise<void>;
216
+ stop: () => Promise<void>;
217
+ seek: (time: number) => Promise<void>;
218
+ setVolume: (volume: number) => Promise<void>;
219
+ setRate: (rate: number) => Promise<void>;
220
+ setLoop: (loop: boolean) => Promise<void>;
221
+ getCurrentTime: () => Promise<number>;
222
+ getDuration: () => Promise<number>;
223
+ getPlaybackState: () => PlaybackState;
224
+ load: (source: string | number | {
225
+ uri: string;
226
+ }) => Promise<void>;
227
+ unload: () => Promise<void>;
228
+ exportAudio: (format: string, options?: any) => Promise<string>;
229
+ getWaveformPeaks: () => number[];
230
+ setSelection: (start: number, end: number) => void;
231
+ clearSelection: () => void;
232
+ }
@@ -0,0 +1,6 @@
1
+ import { View } from 'react-native';
2
+ import type { AutoCompleteProps } from './types';
3
+ export declare const AutoComplete: import("../../core/factory").PlatformBlocksComponent<{
4
+ props: AutoCompleteProps;
5
+ ref: View;
6
+ }>;
@@ -0,0 +1,2 @@
1
+ export { AutoComplete } from './AutoComplete';
2
+ export type { AutoCompleteProps, AutoCompleteOption } from './types';
@@ -0,0 +1,120 @@
1
+ import React from 'react';
2
+ import { TextInputProps, ViewStyle } from 'react-native';
3
+ import { SpacingProps, LayoutProps } from '../../core/utils';
4
+ import type { SizeValue } from '../../core/theme/types';
5
+ import type { RadiusValue } from '../../core/theme/radius';
6
+ import type { ChipProps } from '../Chip/types';
7
+ export interface AutoCompleteOption {
8
+ label: string;
9
+ value: string;
10
+ group?: string;
11
+ disabled?: boolean;
12
+ data?: any;
13
+ }
14
+ export interface AutoCompleteProps extends SpacingProps, LayoutProps {
15
+ /** Input label */
16
+ label?: string;
17
+ /** Description text below the input */
18
+ description?: string;
19
+ /** Helper text displayed below the field when no error is present */
20
+ helperText?: string;
21
+ /** Whether the field is required */
22
+ required?: boolean;
23
+ /** Error message */
24
+ error?: string;
25
+ /** Input value */
26
+ value?: string;
27
+ /** Change handler */
28
+ onChangeText?: (text: string) => void;
29
+ /** Placeholder text */
30
+ placeholder?: string;
31
+ /** Whether the input is disabled */
32
+ disabled?: boolean;
33
+ /** Controls input size (affects padding and height) */
34
+ size?: SizeValue;
35
+ /** Controls border radius; accepts size tokens or numeric value */
36
+ radius?: RadiusValue;
37
+ /** Show built-in clear button when there is text */
38
+ clearable?: boolean;
39
+ /** Accessible label for the clear button */
40
+ clearButtonLabel?: string;
41
+ /** Callback when the clear button is pressed */
42
+ onClear?: () => void;
43
+ /** Custom style */
44
+ style?: ViewStyle;
45
+ /** Data source for suggestions */
46
+ data?: AutoCompleteOption[];
47
+ /** Async data fetcher */
48
+ onSearch?: (query: string) => Promise<AutoCompleteOption[]>;
49
+ /** Minimum characters to trigger search */
50
+ minSearchLength?: number;
51
+ /** Search debounce delay */
52
+ searchDelay?: number;
53
+ /** Custom item renderer */
54
+ renderItem?: (item: AutoCompleteOption, index: number, options: {
55
+ query: string;
56
+ onSelect: (item: AutoCompleteOption) => void;
57
+ isHighlighted?: boolean;
58
+ isSelected?: boolean;
59
+ }) => React.ReactNode;
60
+ /** Selection handler */
61
+ onSelect?: (item: AutoCompleteOption) => void;
62
+ /** Whether to allow custom values */
63
+ allowCustomValue?: boolean;
64
+ /** Maximum number of suggestions to display */
65
+ maxSuggestions?: number;
66
+ /** Whether to show suggestions on focus (default: true) */
67
+ showSuggestionsOnFocus?: boolean;
68
+ /** Custom empty state component */
69
+ renderEmptyState?: () => React.ReactNode;
70
+ /** Custom loading state component */
71
+ renderLoadingState?: () => React.ReactNode;
72
+ /** Filter function for local data */
73
+ filter?: (item: AutoCompleteOption, query: string) => boolean;
74
+ /** Whether to highlight matching text */
75
+ highlightMatches?: boolean;
76
+ /** Custom styles for suggestions container */
77
+ suggestionsStyle?: any;
78
+ /** Custom styles for suggestion items */
79
+ suggestionItemStyle?: any;
80
+ /** Enable multi-select mode */
81
+ multiSelect?: boolean;
82
+ /** Selected values for multi-select mode */
83
+ selectedValues?: AutoCompleteOption[];
84
+ /** Custom renderer for each selected value chip in multi-select mode */
85
+ renderSelectedValue?: (item: AutoCompleteOption, index: number, context: {
86
+ onRemove: () => void;
87
+ disabled: boolean;
88
+ isFocused: boolean;
89
+ inputValue: string;
90
+ source: 'input' | 'modal';
91
+ }) => React.ReactNode;
92
+ /** Optional style override for the selected values container */
93
+ selectedValuesContainerStyle?: ViewStyle;
94
+ /** Additional props applied to the default Chip renderer for selected values */
95
+ selectedValueChipProps?: Partial<ChipProps>;
96
+ /** Whether to allow free-form input (can add custom values) */
97
+ freeSolo?: boolean;
98
+ /** What to display in input after selection - 'label' or 'value' */
99
+ displayProperty?: 'label' | 'value';
100
+ /** Whether to render suggestions in a modal for guaranteed top layering */
101
+ useModal?: boolean;
102
+ /** Whether to render suggestions in a portal for proper z-index handling (default: true) */
103
+ usePortal?: boolean;
104
+ /** Explicit width for the input container (overrides layout width) */
105
+ inputWidth?: number | string;
106
+ /** Minimum width (particularly helpful on Android where intrinsic shrink can occur) */
107
+ minWidth?: number;
108
+ /** Additional TextInput props */
109
+ textInputProps?: Omit<TextInputProps, 'value' | 'onChangeText' | 'placeholder'>;
110
+ /** Placement preference for the suggestions dropdown (default: 'bottom-start') */
111
+ placement?: 'auto' | 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end' | 'right-start' | 'right-end';
112
+ /** Enable flipping to opposite side when dropdown would go off-screen (default: true) */
113
+ flip?: boolean;
114
+ /** Enable shifting within bounds when dropdown would go off-screen (default: true) */
115
+ shift?: boolean;
116
+ /** Distance from viewport edges in pixels (default: 12) */
117
+ boundary?: number;
118
+ /** Enable automatic repositioning on scroll/resize (default: true) */
119
+ autoReposition?: boolean;
120
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { AvatarProps } from './types';
3
+ export declare function Avatar({ size, src, fallback, backgroundColor, textColor, online, badgeColor, style, accessibilityLabel, label, description, gap, showText, }: AvatarProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { AvatarGroupProps } from './types';
3
+ export declare function AvatarGroup({ children, limit, spacing, style, size, bordered, }: AvatarGroupProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ export { Avatar } from './Avatar';
2
+ export { AvatarGroup } from './AvatarGroup';
3
+ export type { AvatarProps, AvatarGroupProps } from './types';
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { ViewStyle } from 'react-native';
3
+ export interface AvatarProps {
4
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
5
+ src?: string;
6
+ fallback?: string;
7
+ backgroundColor?: string;
8
+ textColor?: string;
9
+ online?: boolean;
10
+ badgeColor?: string;
11
+ style?: ViewStyle;
12
+ accessibilityLabel?: string;
13
+ /** Primary label displayed to the right of the avatar (string or custom React node) */
14
+ label?: React.ReactNode;
15
+ /** Secondary description/subtext under the label */
16
+ description?: React.ReactNode;
17
+ /** Spacing between avatar and text block */
18
+ gap?: number;
19
+ /** Force horizontal layout off (set false to hide label/description wrapper) */
20
+ showText?: boolean;
21
+ }
22
+ export interface AvatarGroupProps {
23
+ children: React.ReactNode;
24
+ limit?: number;
25
+ spacing?: number;
26
+ style?: ViewStyle;
27
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number;
28
+ /** Whether to add borders around avatars for separation */
29
+ bordered?: boolean;
30
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { BadgeProps } from './types';
3
+ export declare const Badge: React.FC<BadgeProps>;
4
+ export default Badge;
@@ -0,0 +1,3 @@
1
+ export { Badge } from './Badge';
2
+ export type { BadgeProps } from './types';
3
+ export { Badge as default } from './Badge';
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import { ViewStyle, TextStyle } from 'react-native';
3
+ import { SizeValue } from '../../core/theme/sizes';
4
+ import { SpacingProps } from '../../core/utils';
5
+ import { BorderRadiusProps } from '../../core/theme/radius';
6
+ import { ShadowProps } from '../../core/theme/shadow';
7
+ export interface BadgeProps extends SpacingProps, BorderRadiusProps, ShadowProps {
8
+ children: React.ReactNode;
9
+ size?: SizeValue;
10
+ variant?: 'filled' | 'outline' | 'light' | 'subtle';
11
+ /** Alias for variant */
12
+ v?: 'filled' | 'outline' | 'light' | 'subtle';
13
+ color?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'gray' | string;
14
+ /** Alias for color */
15
+ c?: 'primary' | 'secondary' | 'success' | 'warning' | 'error' | 'gray' | string;
16
+ onPress?: () => void;
17
+ startIcon?: React.ReactNode;
18
+ endIcon?: React.ReactNode;
19
+ onRemove?: () => void;
20
+ removePosition?: 'left' | 'right';
21
+ disabled?: boolean;
22
+ style?: ViewStyle;
23
+ textStyle?: TextStyle;
24
+ radius?: any;
25
+ shadow?: any;
26
+ }
@@ -0,0 +1,36 @@
1
+ import React from 'react';
2
+ import type { BlockProps } from './types';
3
+ /**
4
+ * Block - A polymorphic building block component
5
+ *
6
+ * The Block component serves as a foundational building block that can replace View components
7
+ * throughout the application. It provides a consistent API for styling, spacing, and layout
8
+ * while supporting polymorphic rendering (can render as any HTML element or React component).
9
+ *
10
+ * Key features:
11
+ * - Polymorphic: Can render as any element via the `component` prop
12
+ * - Spacing system: Supports margin/padding shorthand props (m, p, mx, py, etc.)
13
+ * - Layout utilities: Flexbox, positioning, dimensions
14
+ * - Theming: Consistent radius, shadow, and color values
15
+ * - Accessibility: Full accessibility prop support
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * // Basic usage
20
+ * <Block bg="blue.500" p="md" radius="lg">
21
+ * Content
22
+ * </Block>
23
+ *
24
+ * // As a button
25
+ * <Block component="button" bg="green.500" p="sm" radius="md">
26
+ * Click me
27
+ * </Block>
28
+ *
29
+ * // Flex layout
30
+ * <Block direction="row" justify="space-between" align="center" gap="md">
31
+ * <Block>Item 1</Block>
32
+ * <Block>Item 2</Block>
33
+ * </Block>
34
+ * ```
35
+ */
36
+ export declare const Block: React.ForwardRefExoticComponent<BlockProps & React.RefAttributes<any>>;
@@ -0,0 +1,2 @@
1
+ export { Block } from './Block';
2
+ export type { BlockProps, BlockStyleProps, BlockFactory } from './types';
@@ -0,0 +1,102 @@
1
+ import React from 'react';
2
+ import { ViewStyle } from 'react-native';
3
+ import type { SpacingProps } from '../../core/utils/spacing';
4
+ import type { PolymorphicFactory } from '../../core/factory';
5
+ /**
6
+ * Base styling props for the Block component
7
+ */
8
+ export interface BlockStyleProps {
9
+ /** Background color for the block */
10
+ bg?: string;
11
+ /** Border radius for rounded corners */
12
+ radius?: number | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
13
+ /** Border width */
14
+ borderWidth?: number;
15
+ /** Border color */
16
+ borderColor?: string;
17
+ /** Shadow depth (0-5) */
18
+ shadow?: number | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
19
+ /** Opacity (0-1) */
20
+ opacity?: number;
21
+ /** Width of the block */
22
+ w?: number | string | 'auto' | 'full';
23
+ /** Height of the block */
24
+ h?: number | string | 'auto' | 'full';
25
+ /** Whether to take full width (100%) - shorthand for w="full" */
26
+ fullWidth?: boolean;
27
+ /** Makes block take full available height (flex: 1) - useful for scrollable containers */
28
+ fluid?: boolean;
29
+ /** Minimum width */
30
+ minW?: number | string;
31
+ /** Minimum height */
32
+ minH?: number | string;
33
+ /** Maximum width */
34
+ maxW?: number | string;
35
+ /** Maximum height */
36
+ maxH?: number | string;
37
+ /** Flex grow */
38
+ grow?: boolean | number;
39
+ /** Flex shrink */
40
+ shrink?: boolean | number;
41
+ /** Flex basis */
42
+ basis?: number | string;
43
+ /** Flex direction */
44
+ direction?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
45
+ /** Align items */
46
+ align?: 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline';
47
+ /** Justify content */
48
+ justify?: 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly';
49
+ /** Flex wrap */
50
+ wrap?: boolean | 'nowrap' | 'wrap' | 'wrap-reverse';
51
+ /** Gap between children */
52
+ gap?: number | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
53
+ /** Position type */
54
+ position?: 'relative' | 'absolute';
55
+ /** Top position */
56
+ top?: number | string;
57
+ /** Right position */
58
+ right?: number | string;
59
+ /** Bottom position */
60
+ bottom?: number | string;
61
+ /** Left position */
62
+ left?: number | string;
63
+ /** Start position (logical property - becomes left in LTR, right in RTL) */
64
+ start?: number | string;
65
+ /** End position (logical property - becomes right in LTR, left in RTL) */
66
+ end?: number | string;
67
+ /** Z-index */
68
+ zIndex?: number;
69
+ /** Whether to render as a flex container */
70
+ flex?: boolean;
71
+ }
72
+ /**
73
+ * Props for the Block component.
74
+ * A polymorphic building block component that can render as any element.
75
+ */
76
+ export interface BlockProps extends SpacingProps, BlockStyleProps {
77
+ /** Child elements to render inside the block */
78
+ children?: React.ReactNode;
79
+ /** The component to render as */
80
+ component?: React.ElementType;
81
+ /** Custom style object */
82
+ style?: ViewStyle;
83
+ /** Test ID for testing purposes */
84
+ testID?: string;
85
+ /** Accessibility label */
86
+ accessibilityLabel?: string;
87
+ /** Whether the element is accessible */
88
+ accessible?: boolean;
89
+ /** Accessibility role */
90
+ accessibilityRole?: string;
91
+ /** Custom className (for web) */
92
+ className?: string;
93
+ }
94
+ /**
95
+ * Factory type for the Block component
96
+ */
97
+ export type BlockFactory = PolymorphicFactory<{
98
+ props: BlockProps;
99
+ ref: HTMLDivElement;
100
+ defaultComponent: 'div';
101
+ defaultRef: HTMLDivElement;
102
+ }>;
@@ -0,0 +1,28 @@
1
+ import { ViewStyle, DimensionValue } from 'react-native';
2
+ import type { BlockStyleProps } from './types';
3
+ /**
4
+ * Maps radius values to numeric pixels
5
+ */
6
+ export declare function getRadius(radius: BlockStyleProps['radius']): number | undefined;
7
+ /**
8
+ * Maps shadow values to shadow styles
9
+ */
10
+ export declare function getShadow(shadow: BlockStyleProps['shadow']): {
11
+ boxShadow?: undefined;
12
+ elevation?: undefined;
13
+ } | {
14
+ boxShadow: string;
15
+ elevation: number;
16
+ };
17
+ /**
18
+ * Maps width/height values to styles
19
+ */
20
+ export declare function getDimension(value: BlockStyleProps['w']): DimensionValue | undefined;
21
+ /**
22
+ * Maps gap values to numeric spacing
23
+ */
24
+ export declare function getGap(gap: BlockStyleProps['gap']): number | undefined;
25
+ /**
26
+ * Converts Block style props to React Native ViewStyle
27
+ */
28
+ export declare function getBlockStyles(props: BlockStyleProps, isRTL?: boolean): ViewStyle;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { BlockquoteProps } from './types';
3
+ export declare function Blockquote({ children, variant, size, color, quoteIcon, quoteIconPosition, quoteIconSize, author, links, date, rating, source, verified, verifiedTooltip, alignment, border, shadow, style, onPress, }: BlockquoteProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { BlockquoteAttributionProps } from './types';
3
+ export declare function BlockquoteAttribution({ author, date, rating, source, links, verified, verifiedTooltip, alignment, }: BlockquoteAttributionProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { BlockquoteAuthorProps } from './types';
3
+ export declare function BlockquoteAuthor({ author, alignment, }: BlockquoteAuthorProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { BlockquoteMetaProps } from './types';
3
+ export declare function BlockquoteMeta({ date, rating, verified, verifiedTooltip, alignment, }: BlockquoteMetaProps): React.JSX.Element;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { BlockquoteSourceProps } from './types';
3
+ export declare function BlockquoteSource({ source, alignment, }: BlockquoteSourceProps): React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ export { Blockquote } from './Blockquote';
2
+ export { BlockquoteAttribution } from './BlockquoteAttribution';
3
+ export { BlockquoteAuthor } from './BlockquoteAuthor';
4
+ export { BlockquoteSource } from './BlockquoteSource';
5
+ export { BlockquoteMeta } from './BlockquoteMeta';
6
+ export type { BlockquoteProps, BlockquoteAuthor as BlockquoteAuthorType, BlockquoteLinks, BlockquoteRating, BlockquoteSource as BlockquoteSourceType, BlockquoteAttributionProps, BlockquoteAuthorProps, BlockquoteSourceProps, BlockquoteMetaProps, } from './types';