@zj-dynamics/components-native 0.0.0-stage → 0.2.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 (519) hide show
  1. package/LICENSE +21 -0
  2. package/NOTICE.foundation +21 -0
  3. package/README.md +20 -2
  4. package/RulnarComponentsNative.podspec +16 -0
  5. package/dist/AutoLink.d.ts +9 -0
  6. package/dist/AutoLink.js +63 -0
  7. package/dist/BottomSheetKeyboardAwareScrollView.d.ts +12 -0
  8. package/dist/BottomSheetKeyboardAwareScrollView.js +19 -0
  9. package/dist/Button.d.ts +37 -0
  10. package/dist/Button.js +24 -0
  11. package/dist/Checkbox.d.ts +37 -0
  12. package/dist/Checkbox.js +73 -0
  13. package/dist/Content.d.ts +16 -0
  14. package/dist/Content.js +17 -0
  15. package/dist/ContentOverlay.d.ts +31 -0
  16. package/dist/ContentOverlay.js +151 -0
  17. package/dist/Divider.d.ts +6 -0
  18. package/dist/Divider.js +20 -0
  19. package/dist/Flex.d.ts +10 -0
  20. package/dist/Flex.js +19 -0
  21. package/dist/Icon.d.ts +11 -0
  22. package/dist/Icon.js +17 -0
  23. package/dist/InputCurrency.d.ts +12 -0
  24. package/dist/InputCurrency.js +57 -0
  25. package/dist/InputText.d.ts +32 -0
  26. package/dist/InputText.js +103 -0
  27. package/dist/NativeTextFields.d.ts +22 -0
  28. package/dist/NativeTextFields.js +59 -0
  29. package/dist/Switch.d.ts +17 -0
  30. package/dist/Switch.js +27 -0
  31. package/dist/controlledField.d.ts +4 -0
  32. package/dist/controlledField.js +9 -0
  33. package/dist/foundationText/ActionItem/ActionItem.d.ts +42 -0
  34. package/dist/foundationText/ActionItem/ActionItem.js +31 -0
  35. package/dist/foundationText/ActionItem/ActionItem.style.d.ts +21 -0
  36. package/dist/foundationText/ActionItem/ActionItem.style.js +24 -0
  37. package/dist/foundationText/ActionItem/ActionItemGroup.d.ts +12 -0
  38. package/dist/foundationText/ActionItem/ActionItemGroup.js +18 -0
  39. package/dist/foundationText/ActionItem/components/ActionItemContainer.d.ts +10 -0
  40. package/dist/foundationText/ActionItem/components/ActionItemContainer.js +17 -0
  41. package/dist/foundationText/ActionItem/components/ActionItemContainer.style.d.ts +10 -0
  42. package/dist/foundationText/ActionItem/components/ActionItemContainer.style.js +13 -0
  43. package/dist/foundationText/ActionItem/index.d.ts +4 -0
  44. package/dist/foundationText/ActionItem/index.js +3 -0
  45. package/dist/foundationText/ActionLabel/ActionLabel.d.ts +28 -0
  46. package/dist/foundationText/ActionLabel/ActionLabel.js +22 -0
  47. package/dist/foundationText/ActionLabel/index.d.ts +2 -0
  48. package/dist/foundationText/ActionLabel/index.js +1 -0
  49. package/dist/foundationText/ActivityIndicator/ActivityIndicator.d.ts +46 -0
  50. package/dist/foundationText/ActivityIndicator/ActivityIndicator.js +191 -0
  51. package/dist/foundationText/ActivityIndicator/index.d.ts +2 -0
  52. package/dist/foundationText/ActivityIndicator/index.js +1 -0
  53. package/dist/foundationText/Banner/Banner.d.ts +3 -0
  54. package/dist/foundationText/Banner/Banner.js +64 -0
  55. package/dist/foundationText/Banner/Banner.style.d.ts +56 -0
  56. package/dist/foundationText/Banner/Banner.style.js +59 -0
  57. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.d.ts +8 -0
  58. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.js +9 -0
  59. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.style.d.ts +18 -0
  60. package/dist/foundationText/Banner/components/BannerIcon/BannerIcon.style.js +21 -0
  61. package/dist/foundationText/Banner/index.d.ts +2 -0
  62. package/dist/foundationText/Banner/index.js +1 -0
  63. package/dist/foundationText/Banner/types.d.ts +63 -0
  64. package/dist/foundationText/Banner/types.js +1 -0
  65. package/dist/foundationText/BottomSheet/BottomSheet.d.ts +32 -0
  66. package/dist/foundationText/BottomSheet/BottomSheet.js +75 -0
  67. package/dist/foundationText/BottomSheet/BottomSheet.style.d.ts +26 -0
  68. package/dist/foundationText/BottomSheet/BottomSheet.style.js +30 -0
  69. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +13 -0
  70. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.js +16 -0
  71. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.styles.d.ts +16 -0
  72. package/dist/foundationText/BottomSheet/components/BottomSheetOption/BottomSheetOption.styles.js +19 -0
  73. package/dist/foundationText/BottomSheet/components/BottomSheetOption/index.d.ts +2 -0
  74. package/dist/foundationText/BottomSheet/components/BottomSheetOption/index.js +1 -0
  75. package/dist/foundationText/BottomSheet/hooks/useBottomSheetBackHandler.d.ts +8 -0
  76. package/dist/foundationText/BottomSheet/hooks/useBottomSheetBackHandler.js +25 -0
  77. package/dist/foundationText/BottomSheet/index.d.ts +4 -0
  78. package/dist/foundationText/BottomSheet/index.js +2 -0
  79. package/dist/foundationText/ButtonGroup/ButtonGroup.d.ts +30 -0
  80. package/dist/foundationText/ButtonGroup/ButtonGroup.js +25 -0
  81. package/dist/foundationText/ButtonGroup/ButtonGroup.style.d.ts +16 -0
  82. package/dist/foundationText/ButtonGroup/ButtonGroup.style.js +19 -0
  83. package/dist/foundationText/ButtonGroup/ButtonGroupAction.d.ts +47 -0
  84. package/dist/foundationText/ButtonGroup/ButtonGroupAction.js +11 -0
  85. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +14 -0
  86. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.js +15 -0
  87. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/index.d.ts +1 -0
  88. package/dist/foundationText/ButtonGroup/components/SecondaryActionSheet/index.js +1 -0
  89. package/dist/foundationText/ButtonGroup/index.d.ts +3 -0
  90. package/dist/foundationText/ButtonGroup/index.js +2 -0
  91. package/dist/foundationText/ButtonGroup/types.d.ts +7 -0
  92. package/dist/foundationText/ButtonGroup/types.js +1 -0
  93. package/dist/foundationText/ButtonGroup/utils.d.ts +19 -0
  94. package/dist/foundationText/ButtonGroup/utils.js +41 -0
  95. package/dist/foundationText/Card/Card.d.ts +41 -0
  96. package/dist/foundationText/Card/Card.js +26 -0
  97. package/dist/foundationText/Card/Card.style.d.ts +56 -0
  98. package/dist/foundationText/Card/Card.style.js +38 -0
  99. package/dist/foundationText/Card/components/InternalCardHeader.d.ts +10 -0
  100. package/dist/foundationText/Card/components/InternalCardHeader.js +16 -0
  101. package/dist/foundationText/Card/components/InternalCardHeader.style.d.ts +14 -0
  102. package/dist/foundationText/Card/components/InternalCardHeader.style.js +17 -0
  103. package/dist/foundationText/Card/components/index.d.ts +1 -0
  104. package/dist/foundationText/Card/components/index.js +1 -0
  105. package/dist/foundationText/Card/index.d.ts +2 -0
  106. package/dist/foundationText/Card/index.js +1 -0
  107. package/dist/foundationText/Chip/Chip.d.ts +45 -0
  108. package/dist/foundationText/Chip/Chip.js +88 -0
  109. package/dist/foundationText/Chip/Chip.style.d.ts +27 -0
  110. package/dist/foundationText/Chip/Chip.style.js +31 -0
  111. package/dist/foundationText/Chip/index.d.ts +2 -0
  112. package/dist/foundationText/Chip/index.js +1 -0
  113. package/dist/foundationText/ComponentSettingsContext/ComponentSettingsContext.d.ts +57 -0
  114. package/dist/foundationText/ComponentSettingsContext/ComponentSettingsContext.js +26 -0
  115. package/dist/foundationText/ComponentSettingsContext/index.d.ts +1 -0
  116. package/dist/foundationText/ComponentSettingsContext/index.js +1 -0
  117. package/dist/foundationText/Disclosure/Disclosure.d.ts +35 -0
  118. package/dist/foundationText/Disclosure/Disclosure.js +51 -0
  119. package/dist/foundationText/Disclosure/Disclosure.style.d.ts +19 -0
  120. package/dist/foundationText/Disclosure/Disclosure.style.js +22 -0
  121. package/dist/foundationText/Disclosure/constants.d.ts +1 -0
  122. package/dist/foundationText/Disclosure/constants.js +1 -0
  123. package/dist/foundationText/Disclosure/index.d.ts +1 -0
  124. package/dist/foundationText/Disclosure/index.js +1 -0
  125. package/dist/foundationText/EmptyState/EmptyState.d.ts +35 -0
  126. package/dist/foundationText/EmptyState/EmptyState.js +18 -0
  127. package/dist/foundationText/EmptyState/EmptyState.style.d.ts +6 -0
  128. package/dist/foundationText/EmptyState/EmptyState.style.js +9 -0
  129. package/dist/foundationText/EmptyState/index.d.ts +2 -0
  130. package/dist/foundationText/EmptyState/index.js +1 -0
  131. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +22 -0
  132. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.js +35 -0
  133. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.style.d.ts +29 -0
  134. package/dist/foundationText/ErrorMessageWrapper/ErrorMessageWrapper.style.js +32 -0
  135. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +3 -0
  136. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageContext.js +11 -0
  137. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +7 -0
  138. package/dist/foundationText/ErrorMessageWrapper/context/ErrorMessageProvider.js +38 -0
  139. package/dist/foundationText/ErrorMessageWrapper/context/index.d.ts +2 -0
  140. package/dist/foundationText/ErrorMessageWrapper/context/index.js +2 -0
  141. package/dist/foundationText/ErrorMessageWrapper/context/types.d.ts +62 -0
  142. package/dist/foundationText/ErrorMessageWrapper/context/types.js +1 -0
  143. package/dist/foundationText/ErrorMessageWrapper/index.d.ts +2 -0
  144. package/dist/foundationText/ErrorMessageWrapper/index.js +2 -0
  145. package/dist/foundationText/Form/Form.d.ts +4 -0
  146. package/dist/foundationText/Form/Form.js +142 -0
  147. package/dist/foundationText/Form/Form.style.d.ts +31 -0
  148. package/dist/foundationText/Form/Form.style.js +34 -0
  149. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.d.ts +13 -0
  150. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.js +21 -0
  151. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.style.d.ts +15 -0
  152. package/dist/foundationText/Form/components/FormActionBar/FormActionBar.style.js +11 -0
  153. package/dist/foundationText/Form/components/FormActionBar/index.d.ts +2 -0
  154. package/dist/foundationText/Form/components/FormActionBar/index.js +1 -0
  155. package/dist/foundationText/Form/components/FormBody/FormBody.d.ts +10 -0
  156. package/dist/foundationText/Form/components/FormBody/FormBody.js +18 -0
  157. package/dist/foundationText/Form/components/FormBody/FormBody.style.d.ts +24 -0
  158. package/dist/foundationText/Form/components/FormBody/FormBody.style.js +27 -0
  159. package/dist/foundationText/Form/components/FormBody/index.d.ts +1 -0
  160. package/dist/foundationText/Form/components/FormBody/index.js +1 -0
  161. package/dist/foundationText/Form/components/FormCache/FormCache.d.ts +10 -0
  162. package/dist/foundationText/Form/components/FormCache/FormCache.js +28 -0
  163. package/dist/foundationText/Form/components/FormErrorBanner/FormErrorBanner.d.ts +3 -0
  164. package/dist/foundationText/Form/components/FormErrorBanner/FormErrorBanner.js +14 -0
  165. package/dist/foundationText/Form/components/FormErrorBanner/index.d.ts +1 -0
  166. package/dist/foundationText/Form/components/FormErrorBanner/index.js +1 -0
  167. package/dist/foundationText/Form/components/FormMask/FormMask.d.ts +2 -0
  168. package/dist/foundationText/Form/components/FormMask/FormMask.js +9 -0
  169. package/dist/foundationText/Form/components/FormMask/FormMask.style.d.ts +13 -0
  170. package/dist/foundationText/Form/components/FormMask/FormMask.style.js +16 -0
  171. package/dist/foundationText/Form/components/FormMask/index.d.ts +1 -0
  172. package/dist/foundationText/Form/components/FormMask/index.js +1 -0
  173. package/dist/foundationText/Form/components/FormMessage/FormMessage.d.ts +19 -0
  174. package/dist/foundationText/Form/components/FormMessage/FormMessage.js +49 -0
  175. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +8 -0
  176. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.js +27 -0
  177. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.d.ts +20 -0
  178. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.style.js +18 -0
  179. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/index.d.ts +1 -0
  180. package/dist/foundationText/Form/components/FormMessage/components/InternalFormMessage/index.js +1 -0
  181. package/dist/foundationText/Form/components/FormMessage/index.d.ts +1 -0
  182. package/dist/foundationText/Form/components/FormMessage/index.js +1 -0
  183. package/dist/foundationText/Form/components/FormMessageBanner/FormMessageBanner.d.ts +7 -0
  184. package/dist/foundationText/Form/components/FormMessageBanner/FormMessageBanner.js +16 -0
  185. package/dist/foundationText/Form/components/FormMessageBanner/index.d.ts +1 -0
  186. package/dist/foundationText/Form/components/FormMessageBanner/index.js +1 -0
  187. package/dist/foundationText/Form/components/FormSaveButton/FormSaveButton.d.ts +3 -0
  188. package/dist/foundationText/Form/components/FormSaveButton/FormSaveButton.js +55 -0
  189. package/dist/foundationText/Form/components/FormSaveButton/index.d.ts +1 -0
  190. package/dist/foundationText/Form/components/FormSaveButton/index.js +1 -0
  191. package/dist/foundationText/Form/components/IOSKeyboardAwareScrollViewSpacer/IOSKeyboardAwareScrollViewSpacer.d.ts +6 -0
  192. package/dist/foundationText/Form/components/IOSKeyboardAwareScrollViewSpacer/IOSKeyboardAwareScrollViewSpacer.js +13 -0
  193. package/dist/foundationText/Form/constants.d.ts +2 -0
  194. package/dist/foundationText/Form/constants.js +2 -0
  195. package/dist/foundationText/Form/context/FormContext.d.ts +11 -0
  196. package/dist/foundationText/Form/context/FormContext.js +16 -0
  197. package/dist/foundationText/Form/context/index.d.ts +2 -0
  198. package/dist/foundationText/Form/context/index.js +1 -0
  199. package/dist/foundationText/Form/context/types.d.ts +26 -0
  200. package/dist/foundationText/Form/context/types.js +1 -0
  201. package/dist/foundationText/Form/hooks/useFormViewRefs.d.ts +10 -0
  202. package/dist/foundationText/Form/hooks/useFormViewRefs.js +13 -0
  203. package/dist/foundationText/Form/hooks/useInternalForm.d.ts +19 -0
  204. package/dist/foundationText/Form/hooks/useInternalForm.js +43 -0
  205. package/dist/foundationText/Form/hooks/useOfflineHandler.d.ts +1 -0
  206. package/dist/foundationText/Form/hooks/useOfflineHandler.js +23 -0
  207. package/dist/foundationText/Form/hooks/useSaveButtonPosition.d.ts +12 -0
  208. package/dist/foundationText/Form/hooks/useSaveButtonPosition.js +25 -0
  209. package/dist/foundationText/Form/hooks/useScreenInformation.d.ts +8 -0
  210. package/dist/foundationText/Form/hooks/useScreenInformation.js +15 -0
  211. package/dist/foundationText/Form/hooks/useScrollToError/index.d.ts +1 -0
  212. package/dist/foundationText/Form/hooks/useScrollToError/index.js +1 -0
  213. package/dist/foundationText/Form/hooks/useScrollToError/useScrollToError.d.ts +9 -0
  214. package/dist/foundationText/Form/hooks/useScrollToError/useScrollToError.js +64 -0
  215. package/dist/foundationText/Form/index.d.ts +5 -0
  216. package/dist/foundationText/Form/index.js +4 -0
  217. package/dist/foundationText/Form/types.d.ts +215 -0
  218. package/dist/foundationText/Form/types.js +10 -0
  219. package/dist/foundationText/FormField/FormField.d.ts +24 -0
  220. package/dist/foundationText/FormField/FormField.js +11 -0
  221. package/dist/foundationText/FormField/index.d.ts +1 -0
  222. package/dist/foundationText/FormField/index.js +1 -0
  223. package/dist/foundationText/FormatFile/FormatFile.d.ts +79 -0
  224. package/dist/foundationText/FormatFile/FormatFile.js +47 -0
  225. package/dist/foundationText/FormatFile/FormatFile.style.d.ts +15 -0
  226. package/dist/foundationText/FormatFile/FormatFile.style.js +19 -0
  227. package/dist/foundationText/FormatFile/FormatFileThumbnail.d.ts +58 -0
  228. package/dist/foundationText/FormatFile/FormatFileThumbnail.js +35 -0
  229. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -0
  230. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.js +9 -0
  231. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.style.d.ts +8 -0
  232. package/dist/foundationText/FormatFile/components/ErrorIcon/ErrorIcon.style.js +11 -0
  233. package/dist/foundationText/FormatFile/components/ErrorIcon/index.d.ts +1 -0
  234. package/dist/foundationText/FormatFile/components/ErrorIcon/index.js +1 -0
  235. package/dist/foundationText/FormatFile/components/FileView/FileView.d.ts +13 -0
  236. package/dist/foundationText/FormatFile/components/FileView/FileView.js +42 -0
  237. package/dist/foundationText/FormatFile/components/FileView/FileView.style.d.ts +64 -0
  238. package/dist/foundationText/FormatFile/components/FileView/FileView.style.js +70 -0
  239. package/dist/foundationText/FormatFile/components/FileView/index.d.ts +1 -0
  240. package/dist/foundationText/FormatFile/components/FileView/index.js +1 -0
  241. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +12 -0
  242. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.js +17 -0
  243. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/index.d.ts +2 -0
  244. package/dist/foundationText/FormatFile/components/FormatFileBottomSheet/index.js +1 -0
  245. package/dist/foundationText/FormatFile/components/MediaView/MediaView.d.ts +14 -0
  246. package/dist/foundationText/FormatFile/components/MediaView/MediaView.js +108 -0
  247. package/dist/foundationText/FormatFile/components/MediaView/MediaView.style.d.ts +25 -0
  248. package/dist/foundationText/FormatFile/components/MediaView/MediaView.style.js +28 -0
  249. package/dist/foundationText/FormatFile/components/MediaView/index.d.ts +1 -0
  250. package/dist/foundationText/FormatFile/components/MediaView/index.js +1 -0
  251. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.d.ts +18 -0
  252. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.js +30 -0
  253. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.style.d.ts +13 -0
  254. package/dist/foundationText/FormatFile/components/ProgressBar/ProgressBar.style.js +16 -0
  255. package/dist/foundationText/FormatFile/components/ProgressBar/index.d.ts +1 -0
  256. package/dist/foundationText/FormatFile/components/ProgressBar/index.js +1 -0
  257. package/dist/foundationText/FormatFile/constants.d.ts +35 -0
  258. package/dist/foundationText/FormatFile/constants.js +74 -0
  259. package/dist/foundationText/FormatFile/context/FormatFileContext.d.ts +9 -0
  260. package/dist/foundationText/FormatFile/context/FormatFileContext.js +8 -0
  261. package/dist/foundationText/FormatFile/context/types.d.ts +9 -0
  262. package/dist/foundationText/FormatFile/context/types.js +1 -0
  263. package/dist/foundationText/FormatFile/index.d.ts +8 -0
  264. package/dist/foundationText/FormatFile/index.js +3 -0
  265. package/dist/foundationText/FormatFile/types.d.ts +105 -0
  266. package/dist/foundationText/FormatFile/types.js +8 -0
  267. package/dist/foundationText/FormatFile/utils/computeA11yLabel.d.ts +9 -0
  268. package/dist/foundationText/FormatFile/utils/computeA11yLabel.js +11 -0
  269. package/dist/foundationText/FormatFile/utils/createUseCreateThumbnail.d.ts +6 -0
  270. package/dist/foundationText/FormatFile/utils/createUseCreateThumbnail.js +27 -0
  271. package/dist/foundationText/FormatFile/utils/getFileCategory.d.ts +28 -0
  272. package/dist/foundationText/FormatFile/utils/getFileCategory.js +62 -0
  273. package/dist/foundationText/FormatFile/utils/index.d.ts +7 -0
  274. package/dist/foundationText/FormatFile/utils/index.js +6 -0
  275. package/dist/foundationText/FormatFile/utils/mapFileTypeToIconName.d.ts +17 -0
  276. package/dist/foundationText/FormatFile/utils/mapFileTypeToIconName.js +30 -0
  277. package/dist/foundationText/FormatFile/utils/parseFile.d.ts +3 -0
  278. package/dist/foundationText/FormatFile/utils/parseFile.js +58 -0
  279. package/dist/foundationText/FormatFile/utils/sanitizeFileName.d.ts +5 -0
  280. package/dist/foundationText/FormatFile/utils/sanitizeFileName.js +9 -0
  281. package/dist/foundationText/FormatFile/utils/truncateFileNameForLine.d.ts +24 -0
  282. package/dist/foundationText/FormatFile/utils/truncateFileNameForLine.js +58 -0
  283. package/dist/foundationText/Glimmer/Glimmer.d.ts +32 -0
  284. package/dist/foundationText/Glimmer/Glimmer.js +42 -0
  285. package/dist/foundationText/Glimmer/Glimmer.shape.style.d.ts +14 -0
  286. package/dist/foundationText/Glimmer/Glimmer.shape.style.js +17 -0
  287. package/dist/foundationText/Glimmer/Glimmer.size.style.d.ts +17 -0
  288. package/dist/foundationText/Glimmer/Glimmer.size.style.js +10 -0
  289. package/dist/foundationText/Glimmer/Glimmer.style.d.ts +26 -0
  290. package/dist/foundationText/Glimmer/Glimmer.style.js +30 -0
  291. package/dist/foundationText/Glimmer/index.d.ts +1 -0
  292. package/dist/foundationText/Glimmer/index.js +1 -0
  293. package/dist/foundationText/Heading/Heading.d.ts +38 -0
  294. package/dist/foundationText/Heading/Heading.js +53 -0
  295. package/dist/foundationText/Heading/index.d.ts +2 -0
  296. package/dist/foundationText/Heading/index.js +1 -0
  297. package/dist/foundationText/IconButton/IconButton.d.ts +35 -0
  298. package/dist/foundationText/IconButton/IconButton.js +9 -0
  299. package/dist/foundationText/IconButton/IconButton.style.d.ts +8 -0
  300. package/dist/foundationText/IconButton/IconButton.style.js +11 -0
  301. package/dist/foundationText/IconButton/index.d.ts +1 -0
  302. package/dist/foundationText/IconButton/index.js +1 -0
  303. package/dist/foundationText/InputCurrency/constants.d.ts +1 -0
  304. package/dist/foundationText/InputCurrency/constants.js +1 -0
  305. package/dist/foundationText/InputCurrency/utils.d.ts +9 -0
  306. package/dist/foundationText/InputCurrency/utils.js +57 -0
  307. package/dist/foundationText/InputDate/InputDate.d.ts +76 -0
  308. package/dist/foundationText/InputDate/InputDate.js +70 -0
  309. package/dist/foundationText/InputDate/index.d.ts +2 -0
  310. package/dist/foundationText/InputDate/index.js +1 -0
  311. package/dist/foundationText/InputFieldWrapper/CommonInputStyles.style.d.ts +10 -0
  312. package/dist/foundationText/InputFieldWrapper/CommonInputStyles.style.js +49 -0
  313. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.d.ts +92 -0
  314. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.js +99 -0
  315. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.style.d.ts +106 -0
  316. package/dist/foundationText/InputFieldWrapper/InputFieldWrapper.style.js +123 -0
  317. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +10 -0
  318. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.js +11 -0
  319. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.style.d.ts +22 -0
  320. package/dist/foundationText/InputFieldWrapper/components/ClearAction/ClearAction.style.js +26 -0
  321. package/dist/foundationText/InputFieldWrapper/components/ClearAction/index.d.ts +1 -0
  322. package/dist/foundationText/InputFieldWrapper/components/ClearAction/index.js +1 -0
  323. package/dist/foundationText/InputFieldWrapper/components/Prefix/Prefix.d.ts +22 -0
  324. package/dist/foundationText/InputFieldWrapper/components/Prefix/Prefix.js +39 -0
  325. package/dist/foundationText/InputFieldWrapper/components/Suffix/Suffix.d.ts +25 -0
  326. package/dist/foundationText/InputFieldWrapper/components/Suffix/Suffix.js +40 -0
  327. package/dist/foundationText/InputFieldWrapper/index.d.ts +4 -0
  328. package/dist/foundationText/InputFieldWrapper/index.js +3 -0
  329. package/dist/foundationText/InputPressable/InputPressable.d.ts +91 -0
  330. package/dist/foundationText/InputPressable/InputPressable.js +42 -0
  331. package/dist/foundationText/InputPressable/InputPressable.style.d.ts +21 -0
  332. package/dist/foundationText/InputPressable/InputPressable.style.js +28 -0
  333. package/dist/foundationText/InputPressable/index.d.ts +2 -0
  334. package/dist/foundationText/InputPressable/index.js +1 -0
  335. package/dist/foundationText/InputSearch/components/FilterButton.d.ts +7 -0
  336. package/dist/foundationText/InputSearch/components/FilterButton.js +10 -0
  337. package/dist/foundationText/InputText/context/InputAccessoriesContext.d.ts +3 -0
  338. package/dist/foundationText/InputText/context/InputAccessoriesContext.js +16 -0
  339. package/dist/foundationText/InputText/context/InputAccessoriesProvider.d.ts +5 -0
  340. package/dist/foundationText/InputText/context/InputAccessoriesProvider.js +68 -0
  341. package/dist/foundationText/InputText/context/InputAccessoriesProvider.style.d.ts +17 -0
  342. package/dist/foundationText/InputText/context/InputAccessoriesProvider.style.js +23 -0
  343. package/dist/foundationText/InputText/context/index.d.ts +2 -0
  344. package/dist/foundationText/InputText/context/index.js +2 -0
  345. package/dist/foundationText/InputText/context/types.d.ts +23 -0
  346. package/dist/foundationText/InputText/context/types.js +1 -0
  347. package/dist/foundationText/InputTime/InputTime.d.ts +63 -0
  348. package/dist/foundationText/InputTime/InputTime.js +76 -0
  349. package/dist/foundationText/InputTime/InputTime.style.d.ts +6 -0
  350. package/dist/foundationText/InputTime/InputTime.style.js +7 -0
  351. package/dist/foundationText/InputTime/index.d.ts +2 -0
  352. package/dist/foundationText/InputTime/index.js +2 -0
  353. package/dist/foundationText/InputTime/utils/index.d.ts +11 -0
  354. package/dist/foundationText/InputTime/utils/index.js +16 -0
  355. package/dist/foundationText/ProgressBar/ProgressBar.d.ts +6 -0
  356. package/dist/foundationText/ProgressBar/ProgressBar.js +36 -0
  357. package/dist/foundationText/ProgressBar/ProgressBar.size.style.d.ts +11 -0
  358. package/dist/foundationText/ProgressBar/ProgressBar.size.style.js +6 -0
  359. package/dist/foundationText/ProgressBar/ProgressBar.style.d.ts +34 -0
  360. package/dist/foundationText/ProgressBar/ProgressBar.style.js +37 -0
  361. package/dist/foundationText/ProgressBar/ProgressBarInner.d.ts +12 -0
  362. package/dist/foundationText/ProgressBar/ProgressBarInner.js +25 -0
  363. package/dist/foundationText/ProgressBar/ProgressBarStepped.d.ts +12 -0
  364. package/dist/foundationText/ProgressBar/ProgressBarStepped.js +32 -0
  365. package/dist/foundationText/ProgressBar/index.d.ts +2 -0
  366. package/dist/foundationText/ProgressBar/index.js +1 -0
  367. package/dist/foundationText/ProgressBar/types.d.ts +61 -0
  368. package/dist/foundationText/ProgressBar/types.js +1 -0
  369. package/dist/foundationText/ProgressIndicator/ProgressIndicator.d.ts +3 -0
  370. package/dist/foundationText/ProgressIndicator/ProgressIndicator.js +105 -0
  371. package/dist/foundationText/ProgressIndicator/ProgressIndicator.size.style.d.ts +19 -0
  372. package/dist/foundationText/ProgressIndicator/ProgressIndicator.size.style.js +15 -0
  373. package/dist/foundationText/ProgressIndicator/ProgressIndicator.style.d.ts +48 -0
  374. package/dist/foundationText/ProgressIndicator/ProgressIndicator.style.js +51 -0
  375. package/dist/foundationText/ProgressIndicator/index.d.ts +2 -0
  376. package/dist/foundationText/ProgressIndicator/index.js +1 -0
  377. package/dist/foundationText/ProgressIndicator/types.d.ts +44 -0
  378. package/dist/foundationText/ProgressIndicator/types.js +1 -0
  379. package/dist/foundationText/Select/Select.d.ts +92 -0
  380. package/dist/foundationText/Select/Select.js +102 -0
  381. package/dist/foundationText/Select/Select.style.d.ts +29 -0
  382. package/dist/foundationText/Select/Select.style.js +55 -0
  383. package/dist/foundationText/Select/SelectComposableTypes.d.ts +50 -0
  384. package/dist/foundationText/Select/SelectComposableTypes.js +1 -0
  385. package/dist/foundationText/Select/SelectRoot.d.ts +12 -0
  386. package/dist/foundationText/Select/SelectRoot.js +69 -0
  387. package/dist/foundationText/Select/SelectRoot.style.d.ts +8 -0
  388. package/dist/foundationText/Select/SelectRoot.style.js +9 -0
  389. package/dist/foundationText/Select/components/SelectContent.d.ts +8 -0
  390. package/dist/foundationText/Select/components/SelectContent.js +34 -0
  391. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +5 -0
  392. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +5 -0
  393. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.js +22 -0
  394. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.js +15 -0
  395. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.d.ts +30 -0
  396. package/dist/foundationText/Select/components/SelectDefaultPicker/SelectDefaultPicker.style.js +29 -0
  397. package/dist/foundationText/Select/components/SelectDefaultPicker/index.d.ts +1 -0
  398. package/dist/foundationText/Select/components/SelectDefaultPicker/index.js +1 -0
  399. package/dist/foundationText/Select/components/SelectFieldContext.d.ts +27 -0
  400. package/dist/foundationText/Select/components/SelectFieldContext.js +10 -0
  401. package/dist/foundationText/Select/components/SelectIOSPicker/SelectIOSPicker.d.ts +10 -0
  402. package/dist/foundationText/Select/components/SelectIOSPicker/SelectIOSPicker.js +2 -0
  403. package/dist/foundationText/Select/components/SelectIOSPicker/index.d.ts +1 -0
  404. package/dist/foundationText/Select/components/SelectIOSPicker/index.js +1 -0
  405. package/dist/foundationText/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +3 -0
  406. package/dist/foundationText/Select/components/SelectInternalPicker/SelectInternalPicker.js +14 -0
  407. package/dist/foundationText/Select/components/SelectInternalPicker/index.d.ts +1 -0
  408. package/dist/foundationText/Select/components/SelectInternalPicker/index.js +1 -0
  409. package/dist/foundationText/Select/components/SelectInternalPicker/utils.d.ts +3 -0
  410. package/dist/foundationText/Select/components/SelectInternalPicker/utils.js +13 -0
  411. package/dist/foundationText/Select/components/SelectItem.d.ts +32 -0
  412. package/dist/foundationText/Select/components/SelectItem.js +26 -0
  413. package/dist/foundationText/Select/components/SelectItem.style.d.ts +5 -0
  414. package/dist/foundationText/Select/components/SelectItem.style.js +6 -0
  415. package/dist/foundationText/Select/components/SelectLabel.d.ts +22 -0
  416. package/dist/foundationText/Select/components/SelectLabel.js +30 -0
  417. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.d.ts +11 -0
  418. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.js +17 -0
  419. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.style.d.ts +5 -0
  420. package/dist/foundationText/Select/components/SelectPressable/SelectPressable.style.js +8 -0
  421. package/dist/foundationText/Select/components/SelectPressable/index.d.ts +1 -0
  422. package/dist/foundationText/Select/components/SelectPressable/index.js +1 -0
  423. package/dist/foundationText/Select/components/SelectTrigger.d.ts +20 -0
  424. package/dist/foundationText/Select/components/SelectTrigger.js +39 -0
  425. package/dist/foundationText/Select/components/SelectTrigger.style.d.ts +25 -0
  426. package/dist/foundationText/Select/components/SelectTrigger.style.js +31 -0
  427. package/dist/foundationText/Select/index.d.ts +4 -0
  428. package/dist/foundationText/Select/index.js +4 -0
  429. package/dist/foundationText/Select/types.d.ts +38 -0
  430. package/dist/foundationText/Select/types.js +1 -0
  431. package/dist/foundationText/StatusLabel/StatusLabel.d.ts +22 -0
  432. package/dist/foundationText/StatusLabel/StatusLabel.js +20 -0
  433. package/dist/foundationText/StatusLabel/StatusLabel.style.d.ts +23 -0
  434. package/dist/foundationText/StatusLabel/StatusLabel.style.js +29 -0
  435. package/dist/foundationText/StatusLabel/index.d.ts +2 -0
  436. package/dist/foundationText/StatusLabel/index.js +1 -0
  437. package/dist/foundationText/Text/Text.d.ts +76 -0
  438. package/dist/foundationText/Text/Text.js +39 -0
  439. package/dist/foundationText/Text/index.d.ts +2 -0
  440. package/dist/foundationText/Text/index.js +1 -0
  441. package/dist/foundationText/TextList/TextList.d.ts +30 -0
  442. package/dist/foundationText/TextList/TextList.js +11 -0
  443. package/dist/foundationText/TextList/TextList.style.d.ts +14 -0
  444. package/dist/foundationText/TextList/TextList.style.js +17 -0
  445. package/dist/foundationText/TextList/index.d.ts +1 -0
  446. package/dist/foundationText/TextList/index.js +1 -0
  447. package/dist/foundationText/ThumbnailList/ThumbnailList.d.ts +5 -0
  448. package/dist/foundationText/ThumbnailList/ThumbnailList.js +32 -0
  449. package/dist/foundationText/ThumbnailList/ThumbnailList.style.d.ts +47 -0
  450. package/dist/foundationText/ThumbnailList/ThumbnailList.style.js +50 -0
  451. package/dist/foundationText/ThumbnailList/index.d.ts +2 -0
  452. package/dist/foundationText/ThumbnailList/index.js +2 -0
  453. package/dist/foundationText/ThumbnailList/types.d.ts +15 -0
  454. package/dist/foundationText/ThumbnailList/types.js +5 -0
  455. package/dist/foundationText/Toast/Toast.d.ts +28 -0
  456. package/dist/foundationText/Toast/Toast.js +64 -0
  457. package/dist/foundationText/Toast/Toast.styles.d.ts +31 -0
  458. package/dist/foundationText/Toast/Toast.styles.js +31 -0
  459. package/dist/foundationText/Toast/index.d.ts +2 -0
  460. package/dist/foundationText/Toast/index.js +1 -0
  461. package/dist/foundationText/Typography/Typography.d.ts +126 -0
  462. package/dist/foundationText/Typography/Typography.js +124 -0
  463. package/dist/foundationText/Typography/Typography.style.d.ts +16 -0
  464. package/dist/foundationText/Typography/Typography.style.js +472 -0
  465. package/dist/foundationText/Typography/TypographyGestureDetector.d.ts +8 -0
  466. package/dist/foundationText/Typography/TypographyGestureDetector.js +11 -0
  467. package/dist/foundationText/Typography/index.d.ts +5 -0
  468. package/dist/foundationText/Typography/index.js +4 -0
  469. package/dist/foundationText/Typography/webFonts.d.ts +4 -0
  470. package/dist/foundationText/Typography/webFonts.js +34 -0
  471. package/dist/foundationText/capitalize.d.ts +1 -0
  472. package/dist/foundationText/capitalize.js +6 -0
  473. package/dist/foundationText/compatTheme.d.ts +8 -0
  474. package/dist/foundationText/compatTheme.js +14 -0
  475. package/dist/foundationText/dateFormatter.d.ts +6 -0
  476. package/dist/foundationText/dateFormatter.js +19 -0
  477. package/dist/foundationText/foundationMessages.d.ts +11 -0
  478. package/dist/foundationText/foundationMessages.js +24 -0
  479. package/dist/foundationText/messages-en.d.ts +38 -0
  480. package/dist/foundationText/messages-en.js +38 -0
  481. package/dist/foundationText/messages-es.d.ts +38 -0
  482. package/dist/foundationText/messages-es.js +38 -0
  483. package/dist/foundationText/primitives/HelperText/HelperText.d.ts +15 -0
  484. package/dist/foundationText/primitives/HelperText/HelperText.js +11 -0
  485. package/dist/foundationText/primitives/HelperText/HelperText.style.d.ts +16 -0
  486. package/dist/foundationText/primitives/HelperText/HelperText.style.js +19 -0
  487. package/dist/foundationText/primitives/HelperText/index.d.ts +2 -0
  488. package/dist/foundationText/primitives/HelperText/index.js +1 -0
  489. package/dist/foundationText/primitives/Portal/index.d.ts +1 -0
  490. package/dist/foundationText/primitives/Portal/index.js +7 -0
  491. package/dist/foundationText/primitives/Select/SelectPrimitive.d.ts +69 -0
  492. package/dist/foundationText/primitives/Select/SelectPrimitive.js +160 -0
  493. package/dist/foundationText/primitives/Select/SelectPrimitive.style.d.ts +114 -0
  494. package/dist/foundationText/primitives/Select/SelectPrimitive.style.js +130 -0
  495. package/dist/foundationText/primitives/Select/index.d.ts +2 -0
  496. package/dist/foundationText/primitives/Select/index.js +1 -0
  497. package/dist/foundationText/primitives/Select/nativeTypes.d.ts +84 -0
  498. package/dist/foundationText/primitives/Select/nativeTypes.js +1 -0
  499. package/dist/foundationText/primitives/Select/types.d.ts +41 -0
  500. package/dist/foundationText/primitives/Select/types.js +1 -0
  501. package/dist/foundationText/primitives/index.d.ts +3 -0
  502. package/dist/foundationText/primitives/index.js +3 -0
  503. package/dist/foundationTokens.d.ts +388 -0
  504. package/dist/foundationTokens.js +26 -0
  505. package/dist/index.d.ts +67 -0
  506. package/dist/index.js +54 -0
  507. package/dist/legacyTheme.d.ts +18 -0
  508. package/dist/legacyTheme.js +23 -0
  509. package/dist/sheetContext.d.ts +3 -0
  510. package/dist/sheetContext.js +6 -0
  511. package/dist/theme.d.ts +29 -0
  512. package/dist/theme.js +42 -0
  513. package/dist/useFormController.d.ts +11 -0
  514. package/dist/useFormController.js +15 -0
  515. package/dist/useIsScreenReaderEnabled.d.ts +1 -0
  516. package/dist/useIsScreenReaderEnabled.js +21 -0
  517. package/ios/RulnarPickerManager.m +59 -0
  518. package/package.json +146 -4
  519. package/resources/meta.json +85 -0
@@ -0,0 +1,28 @@
1
+ import React from "react";
2
+ import type { TextAlign, TextColor } from "../Typography/index.js";
3
+ export type ActionLabelVariation = Extract<TextColor, "interactive" | "destructive" | "learning" | "interactiveSubtle" | "subtle" | "onPrimary">;
4
+ type ActionLabelType = "default" | "cardTitle";
5
+ interface ActionLabelProps {
6
+ /**
7
+ * Text to display. Supports nesting text elements.
8
+ */
9
+ readonly children?: React.ReactNode;
10
+ /**
11
+ * Set the display text to disabled color
12
+ */
13
+ readonly disabled?: boolean;
14
+ /**
15
+ * The text color
16
+ */
17
+ readonly variation?: ActionLabelVariation;
18
+ /**
19
+ * Changes the appearance to match the style of where it's getting used
20
+ */
21
+ readonly type?: ActionLabelType;
22
+ /**
23
+ * Alignment of action label
24
+ */
25
+ readonly align?: TextAlign;
26
+ }
27
+ export declare function ActionLabel({ children, variation, type, disabled, align, }: ActionLabelProps): React.JSX.Element;
28
+ export {};
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { platformTokens as tokens } from "../../foundationTokens.js";
4
+ import { Typography } from "../Typography/index.js";
5
+ export function ActionLabel({ children, variation = "interactive", type = "default", disabled = false, align = "center", }) {
6
+ return (_jsx(Typography, { color: getColor(variation, disabled), fontFamily: "base", size: "default", fontWeight: getFontWeight(type), align: align, lineHeight: "tight", maxFontScaleSize: tokens["typography--fontSize-large"], selectable: false, children: children }));
7
+ }
8
+ function getColor(variation, disabled) {
9
+ if (disabled) {
10
+ return "disabled";
11
+ }
12
+ if (variation) {
13
+ return variation;
14
+ }
15
+ return "interactive";
16
+ }
17
+ function getFontWeight(type) {
18
+ if (type === "cardTitle") {
19
+ return "bold";
20
+ }
21
+ return "semiBold";
22
+ }
@@ -0,0 +1,2 @@
1
+ export type { ActionLabelVariation } from "./ActionLabel.js";
2
+ export { ActionLabel } from "./ActionLabel.js";
@@ -0,0 +1 @@
1
+ export { ActionLabel } from "./ActionLabel.js";
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
+ /**
4
+ * The deprecated `"large"` value is preserved here as a typed alias for
5
+ * `"base"`. It will be removed in a follow-up rulnar change once
6
+ * downstream consumers (notably existing apps) migrate. New code should
7
+ * use `"base"`.
8
+ *
9
+ * @deprecated
10
+ */
11
+ type DeprecatedSize = "large";
12
+ export interface ActivityIndicatorProps {
13
+ /**
14
+ * Visual size. `"base"` renders at 44px, `"small"` renders at 28px.
15
+ * `"large"` is a deprecated alias for `"base"` and will be removed in a
16
+ * future release.
17
+ *
18
+ * @default "base"
19
+ */
20
+ readonly size?: "small" | "base" | DeprecatedSize;
21
+ /**
22
+ * Accessible label exposed to assistive technology and announced on
23
+ * mount. Defaults to a localized "Loading" string via
24
+ * `useComponentMessages("loading")`.
25
+ */
26
+ readonly accessibilityLabel?: string;
27
+ /**
28
+ * Inline styles applied to the root view.
29
+ */
30
+ readonly style?: StyleProp<ViewStyle>;
31
+ /**
32
+ * Test identifier applied to the root view. Defaults to
33
+ * `"ActivityIndicator"`.
34
+ */
35
+ readonly testID?: string;
36
+ }
37
+ /**
38
+ * `ActivityIndicator` communicates an indeterminate activity that the
39
+ * user cannot directly control or measure — loading, fetching, or
40
+ * waiting on an external system.
41
+ *
42
+ * Renders the Material Design 3 three-layer indeterminate ring,
43
+ * matching the web `ActivityIndicator`. For determinate progress, use `ProgressIndicator`.
44
+ */
45
+ export declare function ActivityIndicator({ size, accessibilityLabel, style, testID, }: ActivityIndicatorProps): React.JSX.Element;
46
+ export {};
@@ -0,0 +1,191 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React, { useEffect } from "react";
3
+ import { AccessibilityInfo } from "react-native";
4
+ import Animated, { Easing, ReduceMotion, useAnimatedProps, useAnimatedStyle, useReducedMotion, useSharedValue, withRepeat, withSequence, withTiming, } from "react-native-reanimated";
5
+ import { Svg, Circle } from "react-native-svg";
6
+ import { platformTokens as tokens } from "../../foundationTokens.js";
7
+ import { useLegacyTheme } from "../compatTheme.js";
8
+ import { useComponentMessages } from "../foundationMessages.js";
9
+ const AnimatedCircle = Animated.createAnimatedComponent(Circle);
10
+ const SIZE_PX = { small: 28, base: 44 };
11
+ // Stroke widths are expressed in viewBox units (the SVG is 48 across).
12
+ // The small variant uses a thicker stroke in viewBox units to compensate
13
+ // for its smaller rendered diameter, keeping the visual stroke thickness
14
+ // roughly constant across sizes. Matches the web component's CSS.
15
+ const STROKE_WIDTH = { small: 6, base: 4 };
16
+ const VIEWBOX = 48;
17
+ const CENTER = 24;
18
+ const RADIUS = 20;
19
+ // Circle circumference (2π·20 ≈ 125.66) drives the dasharray math below.
20
+ // "200" used as the gap value exceeds the circumference, ensuring only
21
+ // one stroke segment is visible at a time.
22
+ const GAP = 200;
23
+ /**
24
+ * Per-size motion profile. Adding a size is an additive map entry — not a
25
+ * new boolean branch. `layers: 1` is Layer 1 only (fixed arc); `layers: 3`
26
+ * runs the full Material 3 indeterminate ring (Layers 1–3).
27
+ *
28
+ * Small matches web's ActivityIndicator.module.css (`.small .svg` /
29
+ * `.small .arc`): Layer 1 only, spun ~1.8× faster. Web hardcodes 1000ms
30
+ * (≈1803ms ÷ 1.8); we match that absolute duration.
31
+ */
32
+ const MOTION_BY_SIZE = {
33
+ small: {
34
+ layers: 1,
35
+ linearRotateMs: 1000,
36
+ dasharray: `40, ${GAP}`,
37
+ },
38
+ base: {
39
+ layers: 3,
40
+ linearRotateMs: tokens["timing-indicator--linear-rotate"],
41
+ },
42
+ };
43
+ function resolveLegacySize(size) {
44
+ if (size === "large") {
45
+ if (__DEV__) {
46
+ console.warn('[ActivityIndicator] size="large" is deprecated. Use size="base" instead.');
47
+ }
48
+ return "base";
49
+ }
50
+ return size;
51
+ }
52
+ function useAnnounceOnMount(label) {
53
+ useEffect(() => {
54
+ AccessibilityInfo.announceForAccessibility(label);
55
+ }, [label]);
56
+ }
57
+ /**
58
+ * `ActivityIndicator` communicates an indeterminate activity that the
59
+ * user cannot directly control or measure — loading, fetching, or
60
+ * waiting on an external system.
61
+ *
62
+ * Renders the Material Design 3 three-layer indeterminate ring,
63
+ * matching the web `ActivityIndicator`. For determinate progress, use `ProgressIndicator`.
64
+ */
65
+ export function ActivityIndicator({ size = "base", accessibilityLabel, style, testID = "ActivityIndicator", }) {
66
+ const resolvedSize = resolveLegacySize(size);
67
+ const { tokens: themeTokens } = useLegacyTheme();
68
+ const { t } = useComponentMessages();
69
+ const resolvedLabel = accessibilityLabel ?? t("loading");
70
+ useAnnounceOnMount(resolvedLabel);
71
+ const reducedMotion = useReducedMotion();
72
+ const pixelSize = SIZE_PX[resolvedSize];
73
+ const strokeWidth = STROKE_WIDTH[resolvedSize];
74
+ const a11yProps = {
75
+ accessible: true,
76
+ accessibilityRole: "progressbar",
77
+ accessibilityState: { busy: true },
78
+ accessibilityLabel: resolvedLabel,
79
+ };
80
+ if (reducedMotion) {
81
+ return (_jsx(ReducedMotionRing, { pixelSize: pixelSize, strokeWidth: strokeWidth, ringColor: themeTokens["color-text--secondary"], style: style, testID: testID, a11yProps: a11yProps }));
82
+ }
83
+ return (_jsx(FullMotionRing, { size: resolvedSize, pixelSize: pixelSize, strokeWidth: strokeWidth, arcColor: themeTokens["color-text--secondary"], trackColor: themeTokens["color-surface--active"], style: style, testID: testID, a11yProps: a11yProps }));
84
+ }
85
+ function FullMotionRing({ size, pixelSize, strokeWidth, arcColor, trackColor, style, testID, a11yProps, }) {
86
+ const motion = MOTION_BY_SIZE[size];
87
+ // Layer 1 — outer linear rotation. Continuous, constant speed.
88
+ const outerRotate = useSharedValue(0);
89
+ // Layer 2 — inner 8-phase rotation. Eight 135° eased segments per cycle
90
+ // (totalling 1080° over `timing-indicator--cycle`) reproduce the
91
+ // canonical Material Web "8-phase" rhythm. Only when motion.layers === 3.
92
+ const innerRotate = useSharedValue(0);
93
+ // Layer 3 — arc length and dash offset. Drives the visible arc growing
94
+ // from ~1 viewBox-unit to ~90 viewBox-units and sliding around the ring.
95
+ // Only when motion.layers === 3; fixed-arc sizes use motion.dasharray.
96
+ const arcProgress = useSharedValue(0);
97
+ useEffect(() => {
98
+ outerRotate.value = withRepeat(withTiming(360, {
99
+ duration: motion.linearRotateMs,
100
+ easing: Easing.linear,
101
+ }), -1);
102
+ if (motion.layers === 1) {
103
+ return;
104
+ }
105
+ const phaseDuration = tokens["timing-indicator--cycle"] / 8;
106
+ const phaseEasing = Easing.bezier(0.4, 0, 0.2, 1);
107
+ innerRotate.value = withRepeat(withSequence(withTiming(135, { duration: phaseDuration, easing: phaseEasing }), withTiming(270, { duration: phaseDuration, easing: phaseEasing }), withTiming(405, { duration: phaseDuration, easing: phaseEasing }), withTiming(540, { duration: phaseDuration, easing: phaseEasing }), withTiming(675, { duration: phaseDuration, easing: phaseEasing }), withTiming(810, { duration: phaseDuration, easing: phaseEasing }), withTiming(945, { duration: phaseDuration, easing: phaseEasing }), withTiming(1080, { duration: phaseDuration, easing: phaseEasing })), -1);
108
+ arcProgress.value = withRepeat(withTiming(1, {
109
+ duration: tokens["timing-indicator--arc"],
110
+ easing: Easing.bezier(0.4, 0, 0.2, 1),
111
+ }), -1);
112
+ // We intentionally do not include the shared values in the dependency
113
+ // array — they are stable references created by useSharedValue.
114
+ }, [motion]);
115
+ const outerStyle = useAnimatedStyle(() => ({
116
+ transform: [{ rotate: `${outerRotate.value}deg` }],
117
+ }));
118
+ const innerStyle = useAnimatedStyle(() => ({
119
+ transform: [{ rotate: `${innerRotate.value}deg` }],
120
+ }));
121
+ const arcAnimatedProps = useAnimatedProps(() => {
122
+ "worklet";
123
+ // Follow the original Material indicator arc progression:
124
+ // 0% → dasharray (1, 200), offset 0
125
+ // 50% → dasharray (90, 200), offset -35
126
+ // 100% → dasharray (90, 200), offset -125
127
+ //
128
+ // Phase A (0 → 0.5): expand the visible arc from 1 → 90 while
129
+ // sliding it from 0 → -35.
130
+ // Phase B (0.5 → 1): hold the visible arc at 90 while sliding from
131
+ // -35 → -125.
132
+ const p = arcProgress.value;
133
+ let visible;
134
+ let offset;
135
+ if (p < 0.5) {
136
+ const phase = p * 2;
137
+ visible = 1 + (90 - 1) * phase;
138
+ offset = -35 * phase;
139
+ }
140
+ else {
141
+ const phase = (p - 0.5) * 2;
142
+ visible = 90;
143
+ offset = -35 + -90 * phase;
144
+ }
145
+ return {
146
+ strokeDasharray: `${visible}, ${GAP}`,
147
+ strokeDashoffset: offset,
148
+ };
149
+ });
150
+ const track = (_jsx(Circle, { cx: CENTER, cy: CENTER, r: RADIUS, fill: "none", stroke: trackColor, strokeWidth: strokeWidth }));
151
+ const ring = motion.layers === 1 ? (
152
+ // Fixed-length arc, Layer 1 rotation only — no Layer 2 wrapper.
153
+ _jsxs(Svg, { width: pixelSize, height: pixelSize, viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}`, children: [track, _jsx(Circle, { cx: CENTER, cy: CENTER, r: RADIUS, fill: "none", stroke: arcColor, strokeWidth: strokeWidth, strokeLinecap: "round", strokeDasharray: motion.dasharray, strokeDashoffset: 0 })] })) : (_jsx(Animated.View, { style: [{ width: pixelSize, height: pixelSize }, innerStyle], children: _jsxs(Svg, { width: pixelSize, height: pixelSize, viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}`, children: [track, _jsx(AnimatedCircle, { cx: CENTER, cy: CENTER, r: RADIUS, fill: "none", stroke: arcColor, strokeWidth: strokeWidth, strokeLinecap: "round", animatedProps: arcAnimatedProps })] }) }));
154
+ return (_jsx(Animated.View, { style: [{ justifyContent: "center", alignItems: "center" }, style], ...a11yProps, testID: testID, children: _jsx(Animated.View, { style: [{ width: pixelSize, height: pixelSize }, outerStyle], children: ring }) }));
155
+ }
156
+ function ReducedMotionRing({ pixelSize, strokeWidth, ringColor, style, testID, a11yProps, }) {
157
+ // Reduced motion: hide rotation entirely, render one static ring in the
158
+ // active foreground colour, and pulse opacity 1.0 ↔ 0.35 over a 4s
159
+ // ease-in-out alternate cycle (2s down, 2s up). This matches the web
160
+ // reduced-motion fallback's presentation and rhythm.
161
+ //
162
+ // CRITICAL: Reanimated 3 automatically suppresses `withTiming` /
163
+ // `withRepeat` when the OS reduce-motion setting is enabled, snapping
164
+ // to the target value instantly. That is the right default for most
165
+ // animations — but the pulse IS our reduce-motion fallback. We
166
+ // explicitly opt OUT of the suppression via `reduceMotion:
167
+ // ReduceMotion.Never` on each `withTiming`, so the pulse runs whenever
168
+ // this branch renders (which only happens when reduce-motion is on).
169
+ //
170
+ // We also use `withSequence(down, up)` rather than
171
+ // `withRepeat(down, -1, true)` because the `reverse` flag on
172
+ // `withRepeat` is observed to be honored inconsistently on
173
+ // react-native-reanimated's web target. `withSequence` is equivalent
174
+ // in observable behaviour and works on both web and native.
175
+ const pulse = useSharedValue(1);
176
+ useEffect(() => {
177
+ pulse.value = withRepeat(withSequence(withTiming(0.35, {
178
+ duration: 2000,
179
+ easing: Easing.inOut(Easing.ease),
180
+ reduceMotion: ReduceMotion.Never,
181
+ }), withTiming(1, {
182
+ duration: 2000,
183
+ easing: Easing.inOut(Easing.ease),
184
+ reduceMotion: ReduceMotion.Never,
185
+ })), -1, false, undefined, ReduceMotion.Never);
186
+ }, []);
187
+ const animatedStyle = useAnimatedStyle(() => ({
188
+ opacity: pulse.value,
189
+ }));
190
+ return (_jsx(Animated.View, { style: [{ justifyContent: "center", alignItems: "center" }, style], testID: testID, ...a11yProps, children: _jsx(Animated.View, { style: [{ width: pixelSize, height: pixelSize }, animatedStyle], children: _jsx(Svg, { width: pixelSize, height: pixelSize, viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}`, children: _jsx(Circle, { cx: CENTER, cy: CENTER, r: RADIUS, fill: "none", stroke: ringColor, strokeWidth: strokeWidth }) }) }) }));
191
+ }
@@ -0,0 +1,2 @@
1
+ export { ActivityIndicator } from "./ActivityIndicator.js";
2
+ export type { ActivityIndicatorProps } from "./ActivityIndicator.js";
@@ -0,0 +1 @@
1
+ export { ActivityIndicator } from "./ActivityIndicator.js";
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { BannerProps } from "./types.js";
3
+ export declare function Banner({ action, details, dismissAccessibilityLabel, dismissible, text, type, children, icon, onDismiss, }: BannerProps): React.JSX.Element | null;
@@ -0,0 +1,64 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React, { useState } from "react";
3
+ import { Pressable, Text as RNText, View } from "react-native";
4
+ import { useStyles } from "./Banner.style.js";
5
+ import { BannerIcon } from "./components/BannerIcon/BannerIcon.js";
6
+ import { Text } from "../Text/index.js";
7
+ import { TextList } from "../TextList/index.js";
8
+ import { ActionLabel } from "../ActionLabel/index.js";
9
+ import { Typography } from "../Typography/index.js";
10
+ import { useComponentMessages } from "../foundationMessages.js";
11
+ import { Icon } from "../../Icon.js";
12
+ export function Banner({ action, details, dismissAccessibilityLabel, dismissible = false, text, type, children, icon, onDismiss, }) {
13
+ const bannerIcon = icon || getBannerIcon(type);
14
+ const [isVisible, setIsVisible] = useState(true);
15
+ const { t } = useComponentMessages();
16
+ const shouldFlow = Boolean(React.Children.count(children) === 1 && !text && !details) ||
17
+ Boolean(text && !details && !children);
18
+ const styles = useStyles();
19
+ if (!isVisible)
20
+ return null;
21
+ const handleDismiss = (event) => {
22
+ event?.stopPropagation();
23
+ setIsVisible(false);
24
+ onDismiss?.();
25
+ };
26
+ const bannerContent = (_jsxs(_Fragment, { children: [bannerIcon && _jsx(BannerIcon, { icon: bannerIcon, type: type }), _jsx(View, { style: styles.contentContainer, children: _jsx(View, { style: styles.childrenContainer, children: _jsxs(WrappingElement, { shouldFlow: shouldFlow, styles: styles, children: [_jsx(BannerChildren, { children: children }), text && _jsx(Text, { level: "text", children: text }), details && _jsx(TextList, { items: details, level: "text" }), action && (_jsxs(RNText, { children: [shouldFlow && _jsx(Typography, { color: "subdued", children: " | " }), _jsx(ActionLabel, { align: "start", children: action.label })] }))] }) }) })] }));
27
+ const renderBannerMainContent = () => {
28
+ const bannerMainContentStyles = [
29
+ styles.bannerMainContent,
30
+ !dismissible && styles.bannerMainContentWithoutDismiss,
31
+ ];
32
+ if (!action) {
33
+ return (_jsx(View, { style: bannerMainContentStyles, accessibilityRole: "alert", accessible: true, testID: "ATL-Banner-Content", children: bannerContent }));
34
+ }
35
+ return (_jsx(Pressable, { style: bannerMainContentStyles, accessibilityRole: "alert", onPress: action.onPress, testID: "ATL-Banner-Pressable", children: bannerContent }));
36
+ };
37
+ return (_jsx(View, { style: [styles.container], children: _jsxs(View, { style: styles.bannerContent, children: [renderBannerMainContent(), dismissible && (_jsx(View, { style: styles.dismissContainer, children: _jsx(Pressable, { style: styles.dismissButton, onPress: handleDismiss, accessibilityLabel: dismissAccessibilityLabel ?? t("dismiss"), accessibilityRole: "button", testID: "ATL-Banner-DismissButton", children: _jsx(Icon, { name: "cross" }) }) }))] }) }));
38
+ }
39
+ function BannerChildren({ children }) {
40
+ if (!children)
41
+ return null;
42
+ if (children && typeof children === "string") {
43
+ return _jsx(Text, { level: "text", children: children });
44
+ }
45
+ return children;
46
+ }
47
+ function WrappingElement({ shouldFlow, children, styles, }) {
48
+ if (shouldFlow) {
49
+ return _jsx(RNText, { testID: "ATL-Banner-RNText", children: children });
50
+ }
51
+ return (_jsx(View, { testID: "ATL-Banner-View", style: styles.contentSpacing, children: children }));
52
+ }
53
+ function getBannerIcon(type) {
54
+ switch (type) {
55
+ case "notice":
56
+ return "info";
57
+ case "warning":
58
+ return "warning";
59
+ case "error":
60
+ return "alert";
61
+ case "success":
62
+ return "checkmark";
63
+ }
64
+ }
@@ -0,0 +1,56 @@
1
+ export declare const useStyles: () => {
2
+ container: {
3
+ width: "100%";
4
+ borderColor: string;
5
+ borderStyle: "solid";
6
+ borderBottomWidth: number;
7
+ backgroundColor: string;
8
+ };
9
+ bannerContent: {
10
+ flexDirection: "row";
11
+ alignItems: "flex-start";
12
+ gap: number;
13
+ };
14
+ bannerMainContent: {
15
+ flex: number;
16
+ flexDirection: "row";
17
+ alignItems: "flex-start";
18
+ gap: number;
19
+ paddingBottom: number;
20
+ paddingLeft: number;
21
+ paddingTop: number;
22
+ };
23
+ bannerMainContentWithoutDismiss: {
24
+ paddingRight: number;
25
+ };
26
+ contentContainer: {
27
+ flex: number;
28
+ };
29
+ dismissContainer: {
30
+ paddingBottom: number;
31
+ paddingRight: number;
32
+ paddingTop: number;
33
+ };
34
+ dismissButton: {
35
+ alignSelf: "flex-start";
36
+ alignItems: "center";
37
+ height: number;
38
+ justifyContent: "center";
39
+ width: number;
40
+ };
41
+ childrenContainer: {
42
+ marginTop: number;
43
+ };
44
+ textContainer: {
45
+ marginTop: number;
46
+ };
47
+ fullWidth: {
48
+ width: "100%";
49
+ };
50
+ bannerChildrenContent: {
51
+ marginBottom: number;
52
+ };
53
+ contentSpacing: {
54
+ gap: number;
55
+ };
56
+ };
@@ -0,0 +1,59 @@
1
+ import { buildThemedStyles } from "../compatTheme.js";
2
+ export const useStyles = buildThemedStyles(tokens => {
3
+ return {
4
+ container: {
5
+ width: "100%",
6
+ borderColor: tokens["color-border"],
7
+ borderStyle: "solid",
8
+ borderBottomWidth: tokens["border-base"],
9
+ backgroundColor: tokens["color-surface"],
10
+ },
11
+ bannerContent: {
12
+ flexDirection: "row",
13
+ alignItems: "flex-start",
14
+ gap: tokens["space-small"] + tokens["space-smaller"],
15
+ },
16
+ bannerMainContent: {
17
+ flex: 1,
18
+ flexDirection: "row",
19
+ alignItems: "flex-start",
20
+ gap: tokens["space-small"] + tokens["space-smaller"],
21
+ paddingBottom: tokens["space-base"],
22
+ paddingLeft: tokens["space-base"],
23
+ paddingTop: tokens["space-base"],
24
+ },
25
+ bannerMainContentWithoutDismiss: {
26
+ paddingRight: tokens["space-base"],
27
+ },
28
+ contentContainer: {
29
+ flex: 1,
30
+ },
31
+ dismissContainer: {
32
+ paddingBottom: tokens["space-base"],
33
+ paddingRight: tokens["space-base"],
34
+ paddingTop: tokens["space-base"],
35
+ },
36
+ dismissButton: {
37
+ alignSelf: "flex-start",
38
+ alignItems: "center",
39
+ height: tokens["space-large"],
40
+ justifyContent: "center",
41
+ width: tokens["space-large"],
42
+ },
43
+ childrenContainer: {
44
+ marginTop: tokens["space-smallest"],
45
+ },
46
+ textContainer: {
47
+ marginTop: tokens["space-minuscule"],
48
+ },
49
+ fullWidth: {
50
+ width: "100%",
51
+ },
52
+ bannerChildrenContent: {
53
+ marginBottom: tokens["space-small"],
54
+ },
55
+ contentSpacing: {
56
+ gap: tokens["space-small"],
57
+ },
58
+ };
59
+ });
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ import type { IconNames } from "@zj-dynamics/design/native";
3
+ import type { BannerTypes } from "../../types.js";
4
+ export interface BannerIconProps {
5
+ readonly icon: IconNames;
6
+ readonly type: BannerTypes;
7
+ }
8
+ export declare function BannerIcon({ icon, type }: BannerIconProps): React.JSX.Element;
@@ -0,0 +1,9 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { View } from "react-native";
4
+ import { useStyles } from "./BannerIcon.style.js";
5
+ import { Icon } from "../../../../Icon.js";
6
+ export function BannerIcon({ icon, type }) {
7
+ const styles = useStyles();
8
+ return (_jsx(View, { style: [styles.bannerIcon, styles[type]], testID: "ATL-Banner-Icon", children: _jsx(Icon, { name: icon, color: "surface", size: "small" }) }));
9
+ }
@@ -0,0 +1,18 @@
1
+ export declare const useStyles: () => {
2
+ bannerIcon: {
3
+ borderRadius: number;
4
+ padding: number;
5
+ };
6
+ error: {
7
+ backgroundColor: string;
8
+ };
9
+ warning: {
10
+ backgroundColor: string;
11
+ };
12
+ notice: {
13
+ backgroundColor: string;
14
+ };
15
+ success: {
16
+ backgroundColor: string;
17
+ };
18
+ };
@@ -0,0 +1,21 @@
1
+ import { buildThemedStyles } from "../../../compatTheme.js";
2
+ export const useStyles = buildThemedStyles(tokens => {
3
+ return {
4
+ bannerIcon: {
5
+ borderRadius: tokens["radius-circle"],
6
+ padding: tokens["space-smaller"],
7
+ },
8
+ error: {
9
+ backgroundColor: tokens["color-destructive"],
10
+ },
11
+ warning: {
12
+ backgroundColor: tokens["color-warning"],
13
+ },
14
+ notice: {
15
+ backgroundColor: tokens["color-informative"],
16
+ },
17
+ success: {
18
+ backgroundColor: tokens["color-success"],
19
+ },
20
+ };
21
+ });
@@ -0,0 +1,2 @@
1
+ export { Banner } from "./Banner.js";
2
+ export type { BannerTypes, BannerProps } from "./types.js";
@@ -0,0 +1 @@
1
+ export { Banner } from "./Banner.js";
@@ -0,0 +1,63 @@
1
+ import type { IconNames } from "@zj-dynamics/design/native";
2
+ import type { ReactElement } from "react";
3
+ import type { StyleProp, ViewStyle } from "react-native";
4
+ export type BannerTypes = "error" | "warning" | "notice" | "success";
5
+ export interface BannerStyleProps {
6
+ /**
7
+ * Styles applied to the main view of the banner. Styles are grabbed from Banner.style.ts file
8
+ */
9
+ readonly styles: StyleProp<ViewStyle>;
10
+ }
11
+ interface ActionProps {
12
+ /**
13
+ * The function that should be performed when the Banner is pressed
14
+ */
15
+ readonly onPress: () => void;
16
+ /**
17
+ * Helper text displayed for press action
18
+ */
19
+ readonly label: string;
20
+ }
21
+ export interface BannerProps {
22
+ /**
23
+ * The function that should be performed when the Banner is pressed
24
+ */
25
+ readonly action?: ActionProps;
26
+ /**
27
+ * Custom content to be displayed in the banner
28
+ */
29
+ readonly children?: ReactElement | ReactElement[] | string;
30
+ /**
31
+ * Set to true to show a dismiss button
32
+ *
33
+ * @default false
34
+ */
35
+ readonly dismissible?: boolean;
36
+ /**
37
+ * Callback to be called when the Banner is dismissed.
38
+ */
39
+ readonly onDismiss?: () => void;
40
+ /**
41
+ * Accessibility label for the dismiss button.
42
+ */
43
+ readonly dismissAccessibilityLabel?: string;
44
+ /**
45
+ * **Deprecated**: Use `children` with a `<TextList level="text" />` instead
46
+ * @deprecated
47
+ */
48
+ readonly details?: string[];
49
+ /**
50
+ * **Deprecated**: Use `children` with a `<Text level="text" />`
51
+ * @deprecated
52
+ */
53
+ readonly text?: string;
54
+ /**
55
+ * The primary theme of the banner, controls the things like the background color
56
+ */
57
+ readonly type: BannerTypes;
58
+ /**
59
+ * Adds an icon to the left of the banner content
60
+ */
61
+ readonly icon?: IconNames;
62
+ }
63
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,32 @@
1
+ import type { ReactNode } from "react";
2
+ import React from "react";
3
+ export interface BottomSheetProps {
4
+ readonly children: ReactNode;
5
+ /**
6
+ * Display a cancel button in the bottom sheet footer.
7
+ */
8
+ readonly showCancel?: boolean;
9
+ /**
10
+ * Hide or show the cancel button when loading state is provided.
11
+ */
12
+ readonly loading?: boolean;
13
+ /**
14
+ * An optional heading to display in the bottom sheet header.
15
+ */
16
+ readonly heading?: string;
17
+ /**
18
+ * Callback that is called when the overlay is opened.
19
+ */
20
+ readonly onOpen?: () => void;
21
+ /**
22
+ * Callback that is called when the overlay is closed.
23
+ */
24
+ readonly onClose?: () => void;
25
+ }
26
+ export interface BottomSheetRef {
27
+ open: () => void;
28
+ close: () => void;
29
+ }
30
+ export declare function BottomSheet({ children, showCancel, loading, heading, onOpen, onClose, ref, }: BottomSheetProps & {
31
+ readonly ref?: React.Ref<BottomSheetRef>;
32
+ }): React.JSX.Element;