@app-studio/components 0.10.18 → 0.10.20

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 (325) hide show
  1. package/dist/fonts/mulish-subset.woff2 +0 -0
  2. package/dist/illustrations/cross-platform.svg +37 -0
  3. package/dist/index.d.ts +276 -6
  4. package/dist/native/components/Accordion/Accordion/Accordion.view.native.js +72 -8
  5. package/dist/native/components/Accordion/Accordion/Accordion.view.native.js.map +1 -1
  6. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.props.d.ts +36 -0
  7. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.props.js +2 -0
  8. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.props.js.map +1 -0
  9. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.state.d.ts +8 -0
  10. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.state.js +33 -0
  11. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.state.js.map +1 -0
  12. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.style.d.ts +17 -0
  13. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.style.js +39 -0
  14. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.style.js.map +1 -0
  15. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.type.d.ts +37 -0
  16. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.type.js +2 -0
  17. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.type.js.map +1 -0
  18. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.d.ts +4 -0
  19. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.js +122 -0
  20. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.js.map +1 -0
  21. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.d.ts +4 -0
  22. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js +173 -0
  23. package/dist/native/components/ActionSheet/ActionSheet/ActionSheet.view.native.js.map +1 -0
  24. package/dist/native/components/ActionSheet/ActionSheet.d.ts +3 -0
  25. package/dist/native/components/ActionSheet/ActionSheet.js +9 -0
  26. package/dist/native/components/ActionSheet/ActionSheet.js.map +1 -0
  27. package/dist/native/components/ActionSheet/index.d.ts +3 -0
  28. package/dist/native/components/ActionSheet/index.js +4 -0
  29. package/dist/native/components/ActionSheet/index.js.map +1 -0
  30. package/dist/native/components/AppRoot/AppRoot.d.ts +17 -0
  31. package/dist/native/components/AppRoot/AppRoot.js +25 -0
  32. package/dist/native/components/AppRoot/AppRoot.js.map +1 -0
  33. package/dist/native/components/AppRoot/AppRoot.native.d.ts +9 -0
  34. package/dist/native/components/AppRoot/AppRoot.native.js +33 -0
  35. package/dist/native/components/AppRoot/AppRoot.native.js.map +1 -0
  36. package/dist/native/components/AppRoot/AppRoot.types.d.ts +22 -0
  37. package/dist/native/components/AppRoot/AppRoot.types.js +2 -0
  38. package/dist/native/components/AppRoot/AppRoot.types.js.map +1 -0
  39. package/dist/native/components/AppRoot/index.d.ts +2 -0
  40. package/dist/native/components/AppRoot/index.js +2 -0
  41. package/dist/native/components/AppRoot/index.js.map +1 -0
  42. package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.js +8 -1
  43. package/dist/native/components/AttachmentGroup/AttachmentGroup/AttachmentGroup.js.map +1 -1
  44. package/dist/native/components/AudioInput/AudioInput/AudioInput.state.d.ts +1 -1
  45. package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js +1 -1
  46. package/dist/native/components/AudioInput/AudioInput/AudioInput.view.js.map +1 -1
  47. package/dist/native/components/AudioInput/useAudioRecording.native.d.ts +25 -0
  48. package/dist/native/components/AudioInput/useAudioRecording.native.js +96 -0
  49. package/dist/native/components/AudioInput/useAudioRecording.native.js.map +1 -0
  50. package/dist/native/components/Background/Background/Background.view.native.js +279 -24
  51. package/dist/native/components/Background/Background/Background.view.native.js.map +1 -1
  52. package/dist/native/components/Badge/Badge/Badge.view.js +4 -0
  53. package/dist/native/components/Badge/Badge/Badge.view.js.map +1 -1
  54. package/dist/native/components/Button/Button/Button.view.js +4 -1
  55. package/dist/native/components/Button/Button/Button.view.js.map +1 -1
  56. package/dist/native/components/Button/Button/Button.view.native.js +13 -4
  57. package/dist/native/components/Button/Button/Button.view.native.js.map +1 -1
  58. package/dist/native/components/Carousel/Carousel/Carousel.view.native.js +32 -5
  59. package/dist/native/components/Carousel/Carousel/Carousel.view.native.js.map +1 -1
  60. package/dist/native/components/Chart/Chart/BarChart.native.d.ts +15 -0
  61. package/dist/native/components/Chart/Chart/BarChart.native.js +47 -0
  62. package/dist/native/components/Chart/Chart/BarChart.native.js.map +1 -0
  63. package/dist/native/components/Chart/Chart/ChartTooltip.js +6 -0
  64. package/dist/native/components/Chart/Chart/ChartTooltip.js.map +1 -1
  65. package/dist/native/components/Chart/Chart/LineChart.native.d.ts +15 -0
  66. package/dist/native/components/Chart/Chart/LineChart.native.js +44 -0
  67. package/dist/native/components/Chart/Chart/LineChart.native.js.map +1 -0
  68. package/dist/native/components/Chart/Chart/PieChart.native.d.ts +15 -0
  69. package/dist/native/components/Chart/Chart/PieChart.native.js +231 -0
  70. package/dist/native/components/Chart/Chart/PieChart.native.js.map +1 -0
  71. package/dist/native/components/ChatInput/EditableInput.native.d.ts +48 -0
  72. package/dist/native/components/ChatInput/EditableInput.native.js +122 -0
  73. package/dist/native/components/ChatInput/EditableInput.native.js.map +1 -0
  74. package/dist/native/components/ChatInput/MessageInput.native.d.ts +46 -0
  75. package/dist/native/components/ChatInput/MessageInput.native.js +55 -0
  76. package/dist/native/components/ChatInput/MessageInput.native.js.map +1 -0
  77. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.d.ts +14 -0
  78. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.js +89 -0
  79. package/dist/native/components/ChatWidget/ChatWidget/ChatWidget.view.native.js.map +1 -0
  80. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.d.ts +18 -0
  81. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.js +91 -0
  82. package/dist/native/components/ChatWidget/Widget/ChatWidgetWidget.native.js.map +1 -0
  83. package/dist/native/components/ChatWidget/Widget/useContextSelector.js +3 -0
  84. package/dist/native/components/ChatWidget/Widget/useContextSelector.js.map +1 -1
  85. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.js +10 -2
  86. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.state.js.map +1 -1
  87. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.style.js +5 -0
  88. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.style.js.map +1 -1
  89. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js +20 -13
  90. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.js.map +1 -1
  91. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.d.ts +4 -0
  92. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js +88 -0
  93. package/dist/native/components/ColorPicker/ColorPicker/ColorPicker.view.native.js.map +1 -0
  94. package/dist/native/components/Command/Command/Command.state.js +13 -3
  95. package/dist/native/components/Command/Command/Command.state.js.map +1 -1
  96. package/dist/native/components/Command/Command/Command.view.js +6 -4
  97. package/dist/native/components/Command/Command/Command.view.js.map +1 -1
  98. package/dist/native/components/Command/Command/Command.view.native.d.ts +31 -0
  99. package/dist/native/components/Command/Command/Command.view.native.js +184 -0
  100. package/dist/native/components/Command/Command/Command.view.native.js.map +1 -0
  101. package/dist/native/components/Command/Command/CommandOverlay.d.ts +10 -0
  102. package/dist/native/components/Command/Command/CommandOverlay.js +13 -0
  103. package/dist/native/components/Command/Command/CommandOverlay.js.map +1 -0
  104. package/dist/native/components/Command/Command/CommandOverlay.native.d.ts +12 -0
  105. package/dist/native/components/Command/Command/CommandOverlay.native.js +12 -0
  106. package/dist/native/components/Command/Command/CommandOverlay.native.js.map +1 -0
  107. package/dist/native/components/Command/Command/CommandTextInput.d.ts +8 -0
  108. package/dist/native/components/Command/Command/CommandTextInput.js +7 -0
  109. package/dist/native/components/Command/Command/CommandTextInput.js.map +1 -0
  110. package/dist/native/components/Command/Command/CommandTextInput.native.d.ts +13 -0
  111. package/dist/native/components/Command/Command/CommandTextInput.native.js +27 -0
  112. package/dist/native/components/Command/Command/CommandTextInput.native.js.map +1 -0
  113. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.props.d.ts +1 -0
  114. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.js +8 -0
  115. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.state.js.map +1 -1
  116. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.d.ts +3 -1
  117. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.js +38 -22
  118. package/dist/native/components/ContextMenu/ContextMenu/ContextMenu.view.native.js.map +1 -1
  119. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.js +12 -6
  120. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.state.js.map +1 -1
  121. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.style.js +8 -8
  122. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.style.js.map +1 -1
  123. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.js +1 -1
  124. package/dist/native/components/CookieConsent/CookieConsent/CookieConsent.view.js.map +1 -1
  125. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.js +4 -0
  126. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.js.map +1 -1
  127. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.d.ts +18 -0
  128. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.js +23 -0
  129. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.state.native.js.map +1 -0
  130. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.d.ts +17 -0
  131. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.js +49 -0
  132. package/dist/native/components/DragAndDrop/DragAndDrop/DragAndDrop.view.native.js.map +1 -0
  133. package/dist/native/components/Drawer/Drawer/Drawer.view.native.js +54 -14
  134. package/dist/native/components/Drawer/Drawer/Drawer.view.native.js.map +1 -1
  135. package/dist/native/components/DropZone/DropZone/DropZone.view.native.d.ts +14 -0
  136. package/dist/native/components/DropZone/DropZone/DropZone.view.native.js +33 -0
  137. package/dist/native/components/DropZone/DropZone/DropZone.view.native.js.map +1 -0
  138. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.js +7 -0
  139. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.state.js.map +1 -1
  140. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.js +20 -16
  141. package/dist/native/components/DropdownMenu/DropdownMenu/DropdownMenu.view.native.js.map +1 -1
  142. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js +6 -2
  143. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.state.js.map +1 -1
  144. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.js +9 -0
  145. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.style.js.map +1 -1
  146. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.d.ts +4 -0
  147. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js +108 -0
  148. package/dist/native/components/EmojiPicker/EmojiPicker/EmojiPicker.view.native.js.map +1 -0
  149. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.js +11 -4
  150. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.state.js.map +1 -1
  151. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.d.ts +4 -0
  152. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js +92 -0
  153. package/dist/native/components/Form/ColorInput/ColorInput/ColorInput.view.native.js.map +1 -0
  154. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.d.ts +13 -0
  155. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.js +118 -0
  156. package/dist/native/components/Form/ComboBox/ComboBox/ComboBox.view.native.js.map +1 -0
  157. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.d.ts +3 -0
  158. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.js +88 -0
  159. package/dist/native/components/Form/CountryPicker/CountryPicker/CountryPicker.view.native.js.map +1 -0
  160. package/dist/native/components/Form/Password/Password/Password.state.d.ts +26 -0
  161. package/dist/native/components/Form/Select/Select/Select.view.native.d.ts +2 -2
  162. package/dist/native/components/Form/Select/Select/Select.view.native.js +19 -33
  163. package/dist/native/components/Form/Select/Select/Select.view.native.js.map +1 -1
  164. package/dist/native/components/Form/Selector/Selector/Selector.view.native.d.ts +12 -0
  165. package/dist/native/components/Form/Selector/Selector/Selector.view.native.js +44 -0
  166. package/dist/native/components/Form/Selector/Selector/Selector.view.native.js.map +1 -0
  167. package/dist/native/components/Form/Switch/Switch/Switch.view.js +2 -2
  168. package/dist/native/components/Form/Switch/Switch/Switch.view.js.map +1 -1
  169. package/dist/native/components/Form/TextArea/TextArea/TextArea.props.d.ts +3 -0
  170. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.js +2 -2
  171. package/dist/native/components/Form/TextArea/TextArea/TextArea.view.js.map +1 -1
  172. package/dist/native/components/Form/TextField/TextField/TextField.props.d.ts +3 -0
  173. package/dist/native/components/Form/TextField/TextField/TextField.view.js +2 -2
  174. package/dist/native/components/Form/TextField/TextField/TextField.view.js.map +1 -1
  175. package/dist/native/components/Formik/Formik.Form.d.ts +4 -10
  176. package/dist/native/components/Formik/Formik.Form.js +6 -3
  177. package/dist/native/components/Formik/Formik.Form.js.map +1 -1
  178. package/dist/native/components/Formik/Formik.Hook.d.ts +5 -1
  179. package/dist/native/components/Formik/Formik.Hook.js +27 -3
  180. package/dist/native/components/Formik/Formik.Hook.js.map +1 -1
  181. package/dist/native/components/Formik/Formik.OTPInput.js +63 -7
  182. package/dist/native/components/Formik/Formik.OTPInput.js.map +1 -1
  183. package/dist/native/components/Formik/Formik.Password.js +1 -1
  184. package/dist/native/components/Formik/Formik.Password.js.map +1 -1
  185. package/dist/native/components/Formik/Formik.TextField.js +1 -1
  186. package/dist/native/components/Formik/Formik.TextField.js.map +1 -1
  187. package/dist/native/components/Gradient/Gradient/Gradient.view.native.js +83 -11
  188. package/dist/native/components/Gradient/Gradient/Gradient.view.native.js.map +1 -1
  189. package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.js +39 -5
  190. package/dist/native/components/HoverCard/HoverCard/HoverCard.view.native.js.map +1 -1
  191. package/dist/native/components/Icon/Icon.native.js +9 -1
  192. package/dist/native/components/Icon/Icon.native.js.map +1 -1
  193. package/dist/native/components/IconPicker/IconPicker/IconPicker.state.js +4 -0
  194. package/dist/native/components/IconPicker/IconPicker/IconPicker.state.js.map +1 -1
  195. package/dist/native/components/IconPicker/IconPicker/IconPicker.style.js +5 -0
  196. package/dist/native/components/IconPicker/IconPicker/IconPicker.style.js.map +1 -1
  197. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.d.ts +4 -0
  198. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js +73 -0
  199. package/dist/native/components/IconPicker/IconPicker/IconPicker.view.native.js.map +1 -0
  200. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.d.ts +12 -0
  201. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.js +17 -0
  202. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.js.map +1 -0
  203. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.d.ts +12 -0
  204. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.js +24 -0
  205. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.native.js.map +1 -0
  206. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.types.d.ts +24 -0
  207. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.types.js +2 -0
  208. package/dist/native/components/KeyboardAvoidingView/KeyboardAvoidingView.types.js.map +1 -0
  209. package/dist/native/components/KeyboardAvoidingView/index.d.ts +2 -0
  210. package/dist/native/components/KeyboardAvoidingView/index.js +2 -0
  211. package/dist/native/components/KeyboardAvoidingView/index.js.map +1 -0
  212. package/dist/native/components/Menubar/Menubar/Menubar.props.d.ts +4 -1
  213. package/dist/native/components/Menubar/Menubar/Menubar.state.js +6 -0
  214. package/dist/native/components/Menubar/Menubar/Menubar.state.js.map +1 -1
  215. package/dist/native/components/Menubar/Menubar/Menubar.view.native.d.ts +4 -1
  216. package/dist/native/components/Menubar/Menubar/Menubar.view.native.js +29 -23
  217. package/dist/native/components/Menubar/Menubar/Menubar.view.native.js.map +1 -1
  218. package/dist/native/components/Message/Message/Message.layout.native.d.ts +3 -0
  219. package/dist/native/components/Message/Message/Message.layout.native.js +26 -0
  220. package/dist/native/components/Message/Message/Message.layout.native.js.map +1 -0
  221. package/dist/native/components/Modal/Modal/Modal.store.js +0 -1
  222. package/dist/native/components/Modal/Modal/Modal.store.js.map +1 -1
  223. package/dist/native/components/Modal/Modal.d.ts +2 -0
  224. package/dist/native/components/Modal/Modal.js +6 -0
  225. package/dist/native/components/Modal/Modal.js.map +1 -1
  226. package/dist/native/components/OTPInput/OTPInput/OTPInput.state.d.ts +2 -2
  227. package/dist/native/components/OTPInput/OTPInput/OTPInput.state.js +92 -14
  228. package/dist/native/components/OTPInput/OTPInput/OTPInput.state.js.map +1 -1
  229. package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.js +64 -11
  230. package/dist/native/components/OTPInput/OTPInput/OTPInput.view.native.js.map +1 -1
  231. package/dist/native/components/OTPInput/OTPInput.js +34 -2
  232. package/dist/native/components/OTPInput/OTPInput.js.map +1 -1
  233. package/dist/native/components/PageLayout/PageLayout.d.ts +16 -0
  234. package/dist/native/components/PageLayout/PageLayout.js +49 -0
  235. package/dist/native/components/PageLayout/PageLayout.js.map +1 -0
  236. package/dist/native/components/PageLayout/PageLayout.types.d.ts +30 -0
  237. package/dist/native/components/PageLayout/PageLayout.types.js +2 -0
  238. package/dist/native/components/PageLayout/PageLayout.types.js.map +1 -0
  239. package/dist/native/components/PageLayout/index.d.ts +2 -0
  240. package/dist/native/components/PageLayout/index.js +2 -0
  241. package/dist/native/components/PageLayout/index.js.map +1 -0
  242. package/dist/native/components/Pagination/Pagination/Pagination.view.native.js +12 -1
  243. package/dist/native/components/Pagination/Pagination/Pagination.view.native.js.map +1 -1
  244. package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.js +48 -1
  245. package/dist/native/components/ProgressBar/ProgressBar/ProgressBar.view.native.js.map +1 -1
  246. package/dist/native/components/Resizable/Resizable/Resizable.state.js +6 -0
  247. package/dist/native/components/Resizable/Resizable/Resizable.state.js.map +1 -1
  248. package/dist/native/components/Router/Router.d.ts +11 -0
  249. package/dist/native/components/Router/Router.js +51 -0
  250. package/dist/native/components/Router/Router.js.map +1 -0
  251. package/dist/native/components/Router/Router.match.d.ts +15 -0
  252. package/dist/native/components/Router/Router.match.js +45 -0
  253. package/dist/native/components/Router/Router.match.js.map +1 -0
  254. package/dist/native/components/Router/Router.native.d.ts +11 -0
  255. package/dist/native/components/Router/Router.native.js +27 -0
  256. package/dist/native/components/Router/Router.native.js.map +1 -0
  257. package/dist/native/components/Router/Router.store.d.ts +28 -0
  258. package/dist/native/components/Router/Router.store.js +38 -0
  259. package/dist/native/components/Router/Router.store.js.map +1 -0
  260. package/dist/native/components/Router/Router.types.d.ts +16 -0
  261. package/dist/native/components/Router/Router.types.js +2 -0
  262. package/dist/native/components/Router/Router.types.js.map +1 -0
  263. package/dist/native/components/Router/index.d.ts +5 -0
  264. package/dist/native/components/Router/index.js +5 -0
  265. package/dist/native/components/Router/index.js.map +1 -0
  266. package/dist/native/components/Router/useHistory.d.ts +21 -0
  267. package/dist/native/components/Router/useHistory.js +34 -0
  268. package/dist/native/components/Router/useHistory.js.map +1 -0
  269. package/dist/native/components/ShareButton/ShareButton/ShareButton.state.native.d.ts +15 -0
  270. package/dist/native/components/ShareButton/ShareButton/ShareButton.state.native.js +55 -0
  271. package/dist/native/components/ShareButton/ShareButton/ShareButton.state.native.js.map +1 -0
  272. package/dist/native/components/Slider/Slider/Slider.state.js +14 -2
  273. package/dist/native/components/Slider/Slider/Slider.state.js.map +1 -1
  274. package/dist/native/components/Slider/Slider/Slider.view.native.js +6 -2
  275. package/dist/native/components/Slider/Slider/Slider.view.native.js.map +1 -1
  276. package/dist/native/components/SplashScreen/SplashScreen.d.ts +14 -0
  277. package/dist/native/components/SplashScreen/SplashScreen.js +49 -0
  278. package/dist/native/components/SplashScreen/SplashScreen.js.map +1 -0
  279. package/dist/native/components/SplashScreen/SplashScreen.store.d.ts +18 -0
  280. package/dist/native/components/SplashScreen/SplashScreen.store.js +13 -0
  281. package/dist/native/components/SplashScreen/SplashScreen.store.js.map +1 -0
  282. package/dist/native/components/SplashScreen/SplashScreen.types.d.ts +23 -0
  283. package/dist/native/components/SplashScreen/SplashScreen.types.js +2 -0
  284. package/dist/native/components/SplashScreen/SplashScreen.types.js.map +1 -0
  285. package/dist/native/components/SplashScreen/index.d.ts +3 -0
  286. package/dist/native/components/SplashScreen/index.js +3 -0
  287. package/dist/native/components/SplashScreen/index.js.map +1 -0
  288. package/dist/native/components/Table/Table/Table.style.js +10 -0
  289. package/dist/native/components/Table/Table/Table.style.js.map +1 -1
  290. package/dist/native/components/Table/Table/Table.view.js +27 -20
  291. package/dist/native/components/Table/Table/Table.view.js.map +1 -1
  292. package/dist/native/components/Table/Table/TableScroll.d.ts +8 -0
  293. package/dist/native/components/Table/Table/TableScroll.js +10 -0
  294. package/dist/native/components/Table/Table/TableScroll.js.map +1 -0
  295. package/dist/native/components/Table/Table/TableScroll.native.d.ts +9 -0
  296. package/dist/native/components/Table/Table/TableScroll.native.js +11 -0
  297. package/dist/native/components/Table/Table/TableScroll.native.js.map +1 -0
  298. package/dist/native/components/TextArea/TextArea.native.d.ts +21 -0
  299. package/dist/native/components/TextArea/TextArea.native.js +15 -0
  300. package/dist/native/components/TextArea/TextArea.native.js.map +1 -0
  301. package/dist/native/components/Toast/Toast/Toast.view.native.js +6 -1
  302. package/dist/native/components/Toast/Toast/Toast.view.native.js.map +1 -1
  303. package/dist/native/components/Toggle/Toggle/Toggle.view.native.js +11 -3
  304. package/dist/native/components/Toggle/Toggle/Toggle.view.native.js.map +1 -1
  305. package/dist/native/components/Tooltip/Tooltip/Tooltip.state.js +3 -0
  306. package/dist/native/components/Tooltip/Tooltip/Tooltip.state.js.map +1 -1
  307. package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.js +84 -7
  308. package/dist/native/components/Tooltip/Tooltip/Tooltip.view.native.js.map +1 -1
  309. package/dist/native/components/Uploader/Uploader/Uploader.state.d.ts +1 -1
  310. package/dist/native/components/Uploader/Uploader/Uploader.state.js +18 -5
  311. package/dist/native/components/Uploader/Uploader/Uploader.state.js.map +1 -1
  312. package/dist/native/components/index.d.ts +7 -0
  313. package/dist/native/components/index.js +7 -0
  314. package/dist/native/components/index.js.map +1 -1
  315. package/dist/orange.webp +0 -0
  316. package/dist/web.cjs.js +9 -9
  317. package/dist/web.cjs.js.map +1 -1
  318. package/dist/web.esm.js +8266 -7578
  319. package/dist/web.esm.js.map +1 -1
  320. package/dist/web.umd.js +9 -9
  321. package/dist/web.umd.js.map +1 -1
  322. package/docs/LIGHTHOUSE_100_GUIDE.md +277 -0
  323. package/docs/app-studio/Design.md +1 -1
  324. package/docs/app-studio/Theming.md +3 -3
  325. package/package.json +5 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionSheet.state.js","sourceRoot":"","sources":["../../../../../src/components/ActionSheet/ActionSheet/ActionSheet.state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,mB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AW,CACxC,CAAC,SAA2B,EAAE,EAAE;QAC9B,IAAI,CAAC,iBAAiB;YAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACtD,CAAC,EACD,CAAC,iBAAiB,CAAC,CACpB,CAAC;IAEF,OAAO;QACL,WAAW;QACX,aAAa;QACb,gBAAgB;QAChB,UAAU;KACX,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import { ActionSheetSize } from './ActionSheet.type';
3
+ export declare const ActionSheetItemSizes: Record<ActionSheetSize, ViewProps>;
4
+ export declare const ActionSheetTextSizes: Record<ActionSheetSize, {
5
+ label: number;
6
+ description: number;
7
+ }>;
8
+ export declare const actionSheetShadow: {
9
+ elevation: number;
10
+ shadowColor: string;
11
+ shadowOpacity: number;
12
+ shadowOffset: {
13
+ width: number;
14
+ height: number;
15
+ };
16
+ shadowRadius: number;
17
+ };
@@ -0,0 +1,39 @@
1
+ export const ActionSheetItemSizes = {
2
+ sm: {
3
+ minHeight: 44,
4
+ paddingVertical: 10,
5
+ paddingHorizontal: 16,
6
+ },
7
+ md: {
8
+ minHeight: 52,
9
+ paddingVertical: 12,
10
+ paddingHorizontal: 18,
11
+ },
12
+ lg: {
13
+ minHeight: 60,
14
+ paddingVertical: 14,
15
+ paddingHorizontal: 20,
16
+ },
17
+ };
18
+ export const ActionSheetTextSizes = {
19
+ sm: {
20
+ label: 14,
21
+ description: 12,
22
+ },
23
+ md: {
24
+ label: 16,
25
+ description: 13,
26
+ },
27
+ lg: {
28
+ label: 18,
29
+ description: 14,
30
+ },
31
+ };
32
+ export const actionSheetShadow = {
33
+ elevation: 10,
34
+ shadowColor: '#0F172A',
35
+ shadowOpacity: 0.16,
36
+ shadowOffset: { width: 0, height: -8 },
37
+ shadowRadius: 28,
38
+ };
39
+ //# sourceMappingURL=ActionSheet.style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionSheet.style.js","sourceRoot":"","sources":["../../../../../src/components/ActionSheet/ActionSheet/ActionSheet.style.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,oBAAoB,GAAuC;IACtE,EAAE,EAAE;QACF,SAAS,EAAE,EAAE;QACb,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;KACtB;IACD,EAAE,EAAE;QACF,SAAS,EAAE,EAAE;QACb,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;KACtB;IACD,EAAE,EAAE;QACF,SAAS,EAAE,EAAE;QACb,eAAe,EAAE,EAAE;QACnB,iBAAiB,EAAE,EAAE;KACtB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAG7B;IACF,EAAE,EAAE;QACF,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;KAChB;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;KAChB;IACD,EAAE,EAAE;QACF,KAAK,EAAE,EAAE;QACT,WAAW,EAAE,EAAE;KAChB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,SAAS,EAAE,EAAE;IACb,WAAW,EAAE,SAAS;IACtB,aAAa,EAAE,IAAI;IACnB,YAAY,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE;IACtC,YAAY,EAAE,EAAE;CACjB,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { ViewProps } from 'app-studio';
2
+ import React from 'react';
3
+ export type ActionSheetSize = 'sm' | 'md' | 'lg';
4
+ export type ActionSheetValue = string | string[];
5
+ export type ActionSheetAnimation = 'none' | 'slide' | 'fade';
6
+ export interface ActionSheetItem {
7
+ id?: string;
8
+ value?: string;
9
+ label?: React.ReactNode;
10
+ description?: React.ReactNode;
11
+ icon?: React.ReactNode;
12
+ selected?: boolean;
13
+ disabled?: boolean;
14
+ isDisabled?: boolean;
15
+ destructive?: boolean;
16
+ divider?: boolean;
17
+ closeOnSelect?: boolean;
18
+ onPress?: (item: ActionSheetItem) => void;
19
+ }
20
+ export type ActionSheetStyles = {
21
+ overlay?: ViewProps;
22
+ container?: ViewProps;
23
+ sheet?: ViewProps;
24
+ handle?: ViewProps;
25
+ header?: ViewProps;
26
+ title?: ViewProps;
27
+ description?: ViewProps;
28
+ content?: ViewProps;
29
+ item?: ViewProps;
30
+ itemIcon?: ViewProps;
31
+ itemLabel?: ViewProps;
32
+ itemDescription?: ViewProps;
33
+ itemIndicator?: ViewProps;
34
+ divider?: ViewProps;
35
+ cancelButton?: ViewProps;
36
+ cancelLabel?: ViewProps;
37
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ActionSheet.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionSheet.type.js","sourceRoot":"","sources":["../../../../../src/components/ActionSheet/ActionSheet/ActionSheet.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ActionSheetViewProps } from './ActionSheet.props';
3
+ declare const ActionSheetView: React.FC<ActionSheetViewProps>;
4
+ export default ActionSheetView;
@@ -0,0 +1,122 @@
1
+ import React from 'react';
2
+ import { Horizontal, Text, Vertical, View } from 'app-studio';
3
+ import { Portal } from '../../Portal/Portal';
4
+ import { TickIcon } from '../../Icon/Icon';
5
+ import { ActionSheetItemSizes, ActionSheetTextSizes, } from './ActionSheet.style';
6
+ const getItemKey = (item, index) => item.id ?? item.value ?? `action-sheet-item-${index}`;
7
+ const getItemValue = (item) => item.value ?? item.id;
8
+ const isItemDisabled = (item) => item.disabled || item.isDisabled || item.divider;
9
+ const isItemSelected = (item, selectedValue) => {
10
+ if (typeof item.selected === 'boolean')
11
+ return item.selected;
12
+ const itemValue = getItemValue(item);
13
+ if (!itemValue)
14
+ return false;
15
+ if (Array.isArray(selectedValue))
16
+ return selectedValue.includes(itemValue);
17
+ return selectedValue === itemValue;
18
+ };
19
+ const ActionSheetView = ({ isSheetOpen, closeSheet, selectedValue, setSelectedValue, isClosePrevented = false, dismissOnBackdropPress = true, title, description, header, children, items = [], isMulti = false, closeOnSelect, onSelect, onChange, showCancel = false, cancelLabel = 'Cancel', onCancel, showHandle = true, size = 'md', maxHeight = '88vh', views, animationType: _animationType, ...props }) => {
20
+ if (!isSheetOpen)
21
+ return null;
22
+ const handleClose = () => {
23
+ if (!isClosePrevented)
24
+ closeSheet();
25
+ };
26
+ const handleBackdropClick = () => {
27
+ if (dismissOnBackdropPress)
28
+ handleClose();
29
+ };
30
+ const handleCancel = () => {
31
+ onCancel?.();
32
+ handleClose();
33
+ };
34
+ const handleItemPress = (item) => {
35
+ if (isItemDisabled(item))
36
+ return;
37
+ const itemValue = getItemValue(item);
38
+ let nextValue = selectedValue;
39
+ if (itemValue) {
40
+ if (isMulti) {
41
+ const currentValue = Array.isArray(selectedValue)
42
+ ? selectedValue
43
+ : selectedValue
44
+ ? [selectedValue]
45
+ : [];
46
+ nextValue = currentValue.includes(itemValue)
47
+ ? currentValue.filter((value) => value !== itemValue)
48
+ : [...currentValue, itemValue];
49
+ }
50
+ else {
51
+ nextValue = itemValue;
52
+ }
53
+ setSelectedValue(nextValue);
54
+ onSelect?.(itemValue, item);
55
+ onChange?.(nextValue, item);
56
+ }
57
+ item.onPress?.(item);
58
+ const shouldClose = item.closeOnSelect ?? closeOnSelect ?? !isMulti;
59
+ if (shouldClose)
60
+ handleClose();
61
+ };
62
+ return (<Portal>
63
+ <View position="fixed" top={0} right={0} bottom={0} left={0} zIndex={9999} backgroundColor="color-blackAlpha-500" display="flex" justifyContent="flex-end" onClick={handleBackdropClick} {...views?.overlay}>
64
+ <Vertical width="100%" maxWidth={520} maxHeight={maxHeight} marginHorizontal="auto" backgroundColor="color-white" borderTopLeftRadius={24} borderTopRightRadius={24} paddingTop={8} paddingBottom={12} overflow="hidden" boxShadow="0 -18px 48px rgba(15, 23, 42, 0.18)" onClick={(event) => event.stopPropagation()} {...views?.container} {...views?.sheet} {...props}>
65
+ {showHandle && (<View width={36} height={4} borderRadius={999} backgroundColor="color-gray-300" alignSelf="center" marginTop={4} marginBottom={8} {...views?.handle}/>)}
66
+
67
+ {(title || description) && (<Vertical paddingHorizontal={20} paddingTop={6} paddingBottom={12} gap={4} {...views?.header}>
68
+ {title && (<Text fontSize={18} lineHeight={24} fontWeight="600" color="color-gray-900" {...views?.title}>
69
+ {title}
70
+ </Text>)}
71
+ {description && (<Text fontSize={13} lineHeight={18} color="color-gray-500" {...views?.description}>
72
+ {description}
73
+ </Text>)}
74
+ </Vertical>)}
75
+
76
+ {header}
77
+
78
+ <Vertical overflowY="auto" paddingBottom={4} {...views?.content}>
79
+ {items.map((item, index) => {
80
+ if (item.divider) {
81
+ return (<View key={getItemKey(item, index)} height={1} backgroundColor="color-gray-200" marginVertical={6} {...views?.divider}/>);
82
+ }
83
+ const selected = isItemSelected(item, selectedValue);
84
+ const disabled = isItemDisabled(item);
85
+ const textColor = disabled
86
+ ? 'color-gray-400'
87
+ : item.destructive
88
+ ? 'color-red-600'
89
+ : selected
90
+ ? 'theme-primary'
91
+ : 'color-gray-900';
92
+ return (<Horizontal key={getItemKey(item, index)} alignItems="center" gap={12} opacity={disabled ? 0.5 : 1} cursor={disabled ? 'not-allowed' : 'pointer'} onClick={() => handleItemPress(item)} {...ActionSheetItemSizes[size]} {...views?.item}>
93
+ {item.icon && (<View flexShrink={0} {...views?.itemIcon}>
94
+ {item.icon}
95
+ </View>)}
96
+ <Vertical flex={1} gap={2}>
97
+ {typeof item.label === 'string' ? (<Text fontSize={ActionSheetTextSizes[size].label} lineHeight={ActionSheetTextSizes[size].label + 6} fontWeight={selected ? '600' : '400'} color={textColor} {...views?.itemLabel}>
98
+ {item.label}
99
+ </Text>) : (item.label)}
100
+ {item.description && (<Text fontSize={ActionSheetTextSizes[size].description} lineHeight={ActionSheetTextSizes[size].description + 5} color="color-gray-500" {...views?.itemDescription}>
101
+ {item.description}
102
+ </Text>)}
103
+ </Vertical>
104
+ {selected && (<TickIcon widthHeight={18} color="theme-primary" {...views?.itemIndicator}/>)}
105
+ </Horizontal>);
106
+ })}
107
+ {children}
108
+ </Vertical>
109
+
110
+ {showCancel && (<View marginTop={8} paddingHorizontal={12} paddingTop={8} borderTopWidth={1} borderTopColor="color-gray-200">
111
+ <Horizontal minHeight={52} alignItems="center" justifyContent="center" borderRadius={14} backgroundColor="color-gray-100" cursor="pointer" onClick={handleCancel} {...views?.cancelButton}>
112
+ <Text fontSize={ActionSheetTextSizes[size].label} lineHeight={ActionSheetTextSizes[size].label + 6} fontWeight="600" color="color-gray-900" {...views?.cancelLabel}>
113
+ {cancelLabel}
114
+ </Text>
115
+ </Horizontal>
116
+ </View>)}
117
+ </Vertical>
118
+ </View>
119
+ </Portal>);
120
+ };
121
+ export default ActionSheetView;
122
+ //# sourceMappingURL=ActionSheet.view.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionSheet.view.js","sourceRoot":"","sources":["../../../../../src/components/ActionSheet/ActionSheet/ActionSheet.view.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,OAAO,EACL,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,UAAU,GAAG,CAAC,IAAqB,EAAE,KAAa,EAAE,EAAE,CAC1D,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,KAAK,IAAI,qBAAqB,KAAK,EAAE,CAAC;AAExD,MAAM,YAAY,GAAG,CAAC,IAAqB,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,EAAE,CAAC;AAEtE,MAAM,cAAc,GAAG,CAAC,IAAqB,EAAE,EAAE,C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AC,CAAC,CAAC,CACd,cAAc,CAAC,CAAC,CAAC,CAAC,CAClB,cAAc,CAAC,gBAAgB,CAE/B;cAAA,CAAC,UAAU,CACT,SAAS,CAAC,CAAC,EAAE,CAAC,CACd,UAAU,CAAC,QAAQ,CACnB,cAAc,CAAC,QAAQ,CACvB,YAAY,CAAC,CAAC,EAAE,CAAC,CACjB,eAAe,CAAC,gBAAgB,CAChC,MAAM,CAAC,SAAS,CAChB,OAAO,CAAC,CAAC,YAAY,CAAC,CACtB,IAAI,KAAK,EAAE,YAAY,CAAC,CAExB;gBAAA,CAAC,IAAI,CACH,QAAQ,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAC3C,UAAU,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CACjD,UAAU,CAAC,KAAK,CAChB,KAAK,CAAC,gBAAgB,CACtB,IAAI,KAAK,EAAE,WAAW,CAAC,CAEvB;kBAAA,CAAC,WAAW,CACd;gBAAA,EAAE,IAAI,CACR;cAAA,EAAE,UAAU,CACd;YAAA,EAAE,IAAI,CAAC,CACR,CACH;QAAA,EAAE,QAAQ,CACZ;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ActionSheetViewProps } from './ActionSheet.props';
3
+ declare const ActionSheetView: React.FC<ActionSheetViewProps>;
4
+ export default ActionSheetView;
@@ -0,0 +1,173 @@
1
+ import React from 'react';
2
+ import { Keyboard, KeyboardAvoidingView, Modal as RNModal, Platform, ScrollView, TouchableWithoutFeedback, useWindowDimensions, } from 'react-native';
3
+ import { Horizontal, Text, Vertical, View } from 'app-studio';
4
+ import { TickIcon } from '../../Icon/Icon';
5
+ import { actionSheetShadow, ActionSheetItemSizes, ActionSheetTextSizes, } from './ActionSheet.style';
6
+ const getItemKey = (item, index) => item.id ?? item.value ?? `action-sheet-item-${index}`;
7
+ const getItemValue = (item) => item.value ?? item.id;
8
+ const isItemDisabled = (item) => item.disabled || item.isDisabled || item.divider;
9
+ const isItemSelected = (item, selectedValue) => {
10
+ if (typeof item.selected === 'boolean')
11
+ return item.selected;
12
+ const itemValue = getItemValue(item);
13
+ if (!itemValue)
14
+ return false;
15
+ if (Array.isArray(selectedValue))
16
+ return selectedValue.includes(itemValue);
17
+ return selectedValue === itemValue;
18
+ };
19
+ const resolveMaxHeight = (maxHeight, windowHeight) => {
20
+ if (typeof maxHeight === 'number')
21
+ return maxHeight;
22
+ if (typeof maxHeight === 'string') {
23
+ const trimmed = maxHeight.trim();
24
+ if (trimmed.endsWith('%')) {
25
+ const ratio = parseFloat(trimmed) / 100;
26
+ if (!Number.isNaN(ratio))
27
+ return Math.round(windowHeight * ratio);
28
+ }
29
+ const parsed = parseFloat(trimmed.replace('px', ''));
30
+ if (!Number.isNaN(parsed))
31
+ return parsed;
32
+ }
33
+ return Math.round(windowHeight * 0.88);
34
+ };
35
+ const ActionSheetView = ({ isSheetOpen, closeSheet, selectedValue, setSelectedValue, isClosePrevented = false, dismissOnBackdropPress = true, title, description, header, children, items = [], isMulti = false, closeOnSelect, onSelect, onChange, showCancel = false, cancelLabel = 'Cancel', onCancel, showHandle = true, size = 'md', maxHeight, animationType = 'slide', views, ...props }) => {
36
+ const { height: windowHeight } = useWindowDimensions();
37
+ const [keyboardHeight, setKeyboardHeight] = React.useState(0);
38
+ React.useEffect(() => {
39
+ if (!isSheetOpen) {
40
+ setKeyboardHeight(0);
41
+ return;
42
+ }
43
+ const handleKeyboardShow = (event) => {
44
+ const screenY = event.endCoordinates?.screenY;
45
+ const eventHeight = event.endCoordinates?.height ?? 0;
46
+ const nextHeight = typeof screenY === 'number' && screenY > 0 && screenY < windowHeight
47
+ ? windowHeight - screenY
48
+ : eventHeight;
49
+ setKeyboardHeight(Math.max(0, nextHeight));
50
+ };
51
+ const handleKeyboardHide = () => setKeyboardHeight(0);
52
+ const showSub = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillShow' : 'keyboardDidShow', handleKeyboardShow);
53
+ const hideSub = Keyboard.addListener(Platform.OS === 'ios' ? 'keyboardWillHide' : 'keyboardDidHide', handleKeyboardHide);
54
+ return () => {
55
+ showSub.remove();
56
+ hideSub.remove();
57
+ };
58
+ }, [isSheetOpen, windowHeight]);
59
+ const baseMaxHeight = resolveMaxHeight(maxHeight, windowHeight);
60
+ const keyboardGap = keyboardHeight > 0 ? 12 : 0;
61
+ const visibleMaxHeight = keyboardHeight > 0
62
+ ? Math.max(220, windowHeight - keyboardHeight - keyboardGap)
63
+ : windowHeight;
64
+ const resolvedMaxHeight = Math.min(baseMaxHeight, visibleMaxHeight);
65
+ const handleClose = () => {
66
+ if (!isClosePrevented)
67
+ closeSheet();
68
+ };
69
+ const handleBackdropPress = () => {
70
+ if (dismissOnBackdropPress)
71
+ handleClose();
72
+ };
73
+ const handleCancel = () => {
74
+ onCancel?.();
75
+ handleClose();
76
+ };
77
+ const handleItemPress = (item) => {
78
+ if (isItemDisabled(item))
79
+ return;
80
+ const itemValue = getItemValue(item);
81
+ let nextValue = selectedValue;
82
+ if (itemValue) {
83
+ if (isMulti) {
84
+ const currentValue = Array.isArray(selectedValue)
85
+ ? selectedValue
86
+ : selectedValue
87
+ ? [selectedValue]
88
+ : [];
89
+ nextValue = currentValue.includes(itemValue)
90
+ ? currentValue.filter((value) => value !== itemValue)
91
+ : [...currentValue, itemValue];
92
+ }
93
+ else {
94
+ nextValue = itemValue;
95
+ }
96
+ setSelectedValue(nextValue);
97
+ onSelect?.(itemValue, item);
98
+ onChange?.(nextValue, item);
99
+ }
100
+ item.onPress?.(item);
101
+ const shouldClose = item.closeOnSelect ?? closeOnSelect ?? !isMulti;
102
+ if (shouldClose)
103
+ handleClose();
104
+ };
105
+ return (<RNModal visible={isSheetOpen} transparent animationType={animationType} onRequestClose={handleClose}>
106
+ <TouchableWithoutFeedback onPress={handleBackdropPress}>
107
+ <View flex={1} backgroundColor="color-blackAlpha-500" {...views?.overlay}>
108
+ <KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'} keyboardVerticalOffset={0} style={{ flex: 1, justifyContent: 'flex-end' }}>
109
+ <TouchableWithoutFeedback>
110
+ <Vertical width="100%" maxHeight={resolvedMaxHeight} backgroundColor="color-white" borderTopLeftRadius={24} borderTopRightRadius={24} paddingTop={8} paddingBottom={Platform.OS === 'ios' ? 18 : 12} overflow="hidden" style={actionSheetShadow} {...views?.container} {...views?.sheet} {...props}>
111
+ {showHandle && (<View width={36} height={4} borderRadius={999} backgroundColor="color-gray-300" alignSelf="center" marginTop={4} marginBottom={8} {...views?.handle}/>)}
112
+
113
+ {(title || description) && (<Vertical paddingHorizontal={20} paddingTop={6} paddingBottom={12} gap={4} {...views?.header}>
114
+ {title && (<Text fontSize={18} lineHeight={24} fontWeight="600" color="color-gray-900" {...views?.title}>
115
+ {title}
116
+ </Text>)}
117
+ {description && (<Text fontSize={13} lineHeight={18} color="color-gray-500" {...views?.description}>
118
+ {description}
119
+ </Text>)}
120
+ </Vertical>)}
121
+
122
+ {header}
123
+
124
+ <ScrollView keyboardShouldPersistTaps="handled" showsVerticalScrollIndicator={false} contentContainerStyle={{ paddingBottom: 4 }}>
125
+ <Vertical {...views?.content}>
126
+ {items.map((item, index) => {
127
+ if (item.divider) {
128
+ return (<View key={getItemKey(item, index)} height={1} backgroundColor="color-gray-200" marginVertical={6} {...views?.divider}/>);
129
+ }
130
+ const selected = isItemSelected(item, selectedValue);
131
+ const disabled = isItemDisabled(item);
132
+ const textColor = disabled
133
+ ? 'color-gray-400'
134
+ : item.destructive
135
+ ? 'color-red-600'
136
+ : selected
137
+ ? 'theme-primary'
138
+ : 'color-gray-900';
139
+ return (<Horizontal key={getItemKey(item, index)} alignItems="center" gap={12} opacity={disabled ? 0.5 : 1} onPress={() => handleItemPress(item)} onClick={() => handleItemPress(item)} {...ActionSheetItemSizes[size]} {...views?.item}>
140
+ {item.icon && (<View flexShrink={0} {...views?.itemIcon}>
141
+ {item.icon}
142
+ </View>)}
143
+ <Vertical flex={1} gap={2}>
144
+ {typeof item.label === 'string' ? (<Text fontSize={ActionSheetTextSizes[size].label} lineHeight={ActionSheetTextSizes[size].label + 6} fontWeight={selected ? '600' : '400'} color={textColor} {...views?.itemLabel}>
145
+ {item.label}
146
+ </Text>) : (item.label)}
147
+ {item.description && (<Text fontSize={ActionSheetTextSizes[size].description} lineHeight={ActionSheetTextSizes[size].description + 5} color="color-gray-500" {...views?.itemDescription}>
148
+ {item.description}
149
+ </Text>)}
150
+ </Vertical>
151
+ {selected && (<TickIcon widthHeight={18} color="theme-primary" {...views?.itemIndicator}/>)}
152
+ </Horizontal>);
153
+ })}
154
+ {children}
155
+ </Vertical>
156
+ </ScrollView>
157
+
158
+ {showCancel && (<View marginTop={8} paddingHorizontal={12} paddingTop={8} borderTopWidth={1} borderTopColor="color-gray-200">
159
+ <Horizontal minHeight={52} alignItems="center" justifyContent="center" borderRadius={14} backgroundColor="color-gray-100" onPress={handleCancel} onClick={handleCancel} {...views?.cancelButton}>
160
+ <Text fontSize={ActionSheetTextSizes[size].label} lineHeight={ActionSheetTextSizes[size].label + 6} fontWeight="600" color="color-gray-900" {...views?.cancelLabel}>
161
+ {cancelLabel}
162
+ </Text>
163
+ </Horizontal>
164
+ </View>)}
165
+ </Vertical>
166
+ </TouchableWithoutFeedback>
167
+ </KeyboardAvoidingView>
168
+ </View>
169
+ </TouchableWithoutFeedback>
170
+ </RNModal>);
171
+ };
172
+ export default ActionSheetView;
173
+ //# sourceMappingURL=ActionSheet.view.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionSheet.view.native.js","sourceRoot":"","sources":["../../../../../src/components/ActionSheet/ActionSheet/ActionSheet.view.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,QAAQ,EACR,oBA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C,CAExB;sBAAA,CAAC,IAAI,CACH,QAAQ,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAC3C,UAAU,CAAC,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC,KAAK,GAAG,CAAC,CAAC,CACjD,UAAU,CAAC,KAAK,CAChB,KAAK,CAAC,gBAAgB,CACtB,IAAI,KAAK,EAAE,WAAW,CAAC,CAEvB;wBAAA,CAAC,WAAW,CACd;sBAAA,EAAE,IAAI,CACR;oBAAA,EAAE,UAAU,CACd;kBAAA,EAAE,IAAI,CAAC,CACR,CACH;cAAA,EAAE,QAAQ,CACZ;YAAA,EAAE,wBAAwB,CAC5B;UAAA,EAAE,oBAAoB,CACxB;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,wBAAwB,CAC5B;IAAA,EAAE,OAAO,CAAC,CACX,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { ActionSheetProps } from './ActionSheet/ActionSheet.props';
3
+ export declare const ActionSheet: React.FC<ActionSheetProps>;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { useActionSheetState } from './ActionSheet/ActionSheet.state';
3
+ import ActionSheetView from './ActionSheet/ActionSheet.view';
4
+ const ActionSheetComponent = (props) => {
5
+ const actionSheetState = useActionSheetState(props);
6
+ return <ActionSheetView {...props} {...actionSheetState}/>;
7
+ };
8
+ export const ActionSheet = ActionSheetComponent;
9
+ //# sourceMappingURL=ActionSheet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionSheet.js","sourceRoot":"","sources":["../../../../src/components/ActionSheet/ActionSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAE7D,MAAM,oBAAoB,GAA+B,CAAC,KAAK,EAAE,EAAE;IACjE,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC;IAEpD,OAAO,CAAC,eAAe,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,gBAAgB,CAAC,EAAG,CAAC;AAC9D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './ActionSheet';
2
+ export * from './ActionSheet/ActionSheet.props';
3
+ export * from './ActionSheet/ActionSheet.type';
@@ -0,0 +1,4 @@
1
+ export * from './ActionSheet';
2
+ export * from './ActionSheet/ActionSheet.props';
3
+ export * from './ActionSheet/ActionSheet.type';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/ActionSheet/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import { AppRootProps } from './AppRoot.types';
3
+ export type { AppRootProps };
4
+ /**
5
+ * AppRoot — one entry point that mounts every App Studio provider in the right
6
+ * order, so apps don't wire them by hand.
7
+ *
8
+ * Web build: Theme → Responsive → WindowSize. The native build
9
+ * (`AppRoot.native.tsx`) additionally wraps `SafeAreaProvider` so `safeArea*`
10
+ * props / `<SafeArea>` resolve to real device insets. Mount it once at the root:
11
+ *
12
+ * ```tsx
13
+ * import { AppRoot } from '@app-studio/components';
14
+ * export default () => <AppRoot><Screens /></AppRoot>;
15
+ * ```
16
+ */
17
+ export declare const AppRoot: React.FC<AppRootProps>;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { ThemeProvider, ResponsiveProvider, WindowSizeProvider, } from 'app-studio';
3
+ import { ModalRouter } from '../Modal/Modal';
4
+ /**
5
+ * AppRoot — one entry point that mounts every App Studio provider in the right
6
+ * order, so apps don't wire them by hand.
7
+ *
8
+ * Web build: Theme → Responsive → WindowSize. The native build
9
+ * (`AppRoot.native.tsx`) additionally wraps `SafeAreaProvider` so `safeArea*`
10
+ * props / `<SafeArea>` resolve to real device insets. Mount it once at the root:
11
+ *
12
+ * ```tsx
13
+ * import { AppRoot } from '@app-studio/components';
14
+ * export default () => <AppRoot><Screens /></AppRoot>;
15
+ * ```
16
+ */
17
+ export const AppRoot = ({ children, modals, onModalShow, onModalHide, ...themeProps }) => (<ThemeProvider {...themeProps}>
18
+ <ResponsiveProvider>
19
+ <WindowSizeProvider>
20
+ {children}
21
+ {modals && (<ModalRouter modals={modals} onShow={onModalShow} onHide={onModalHide}/>)}
22
+ </WindowSizeProvider>
23
+ </ResponsiveProvider>
24
+ </ThemeProvider>);
25
+ //# sourceMappingURL=AppRoot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppRoot.js","sourceRoot":"","sources":["../../../../src/components/AppRoot/AppRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,EAC9C,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,UAAU,EACd,EAAE,EAAE,CAAC,CACJ,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,CAC5B;IAAA,CAAC,kBAAkB,CACjB;MAAA,CAAC,kBAAkB,CACjB;QAAA,CAAC,QAAQ,CACT;QAAA,CAAC,MAAM,IAAI,CACT,CAAC,WAAW,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,EACpB,CACH,CACH;MAAA,EAAE,kBAAkB,CACtB;IAAA,EAAE,kBAAkB,CACtB;EAAA,EAAE,aAAa,CAAC,CACjB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { AppRootProps } from './AppRoot.types';
3
+ export type { AppRootProps };
4
+ /**
5
+ * AppRoot (native) — SafeAreaProvider → Theme → Responsive → WindowSize.
6
+ * Falls back to no SafeAreaProvider when the peer isn't installed (safe-area
7
+ * props then resolve to zero insets instead of crashing).
8
+ */
9
+ export declare const AppRoot: React.FC<AppRootProps>;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { ThemeProvider, ResponsiveProvider, WindowSizeProvider, } from 'app-studio';
3
+ import { ModalRouter } from '../Modal/Modal';
4
+ // `react-native-safe-area-context` is an OPTIONAL peer — lazy-require so apps
5
+ // that don't use safe-area props don't need the dependency. When present, its
6
+ // SafeAreaProvider measures device insets and feeds them to every `safeArea*`
7
+ // prop / `<SafeArea>` rendered below.
8
+ let SafeAreaProvider = null;
9
+ try {
10
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
11
+ SafeAreaProvider = require('react-native-safe-area-context').SafeAreaProvider;
12
+ }
13
+ catch {
14
+ SafeAreaProvider = null;
15
+ }
16
+ /**
17
+ * AppRoot (native) — SafeAreaProvider → Theme → Responsive → WindowSize.
18
+ * Falls back to no SafeAreaProvider when the peer isn't installed (safe-area
19
+ * props then resolve to zero insets instead of crashing).
20
+ */
21
+ export const AppRoot = ({ children, modals, onModalShow, onModalHide, ...themeProps }) => {
22
+ const tree = (<ThemeProvider {...themeProps}>
23
+ <ResponsiveProvider>
24
+ <WindowSizeProvider>
25
+ {children}
26
+ {modals && (<ModalRouter modals={modals} onShow={onModalShow} onHide={onModalHide}/>)}
27
+ </WindowSizeProvider>
28
+ </ResponsiveProvider>
29
+ </ThemeProvider>);
30
+ const Provider = SafeAreaProvider;
31
+ return Provider ? <Provider>{tree}</Provider> : tree;
32
+ };
33
+ //# sourceMappingURL=AppRoot.native.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppRoot.native.js","sourceRoot":"","sources":["../../../../src/components/AppRoot/AppRoot.native.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACL,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAI7C,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,sCAAsC;AACtC,IAAI,gBAAgB,GAER,IAAI,CAAC;AACjB,IAAI,CAAC;IACH,8DAA8D;IAC9D,gBAAgB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC,gBAAgB,CAAC;AAChF,CAAC;AAAC,MAAM,CAAC;IACP,gBAAgB,GAAG,IAAI,CAAC;AAC1B,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAA2B,CAAC,EAC9C,QAAQ,EACR,MAAM,EACN,WAAW,EACX,WAAW,EACX,GAAG,UAAU,EACd,EAAE,EAAE;IACH,MAAM,IAAI,GAAG,CACX,CAAC,aAAa,CAAC,IAAI,UAAU,CAAC,CAC5B;MAAA,CAAC,kBAAkB,CACjB;QAAA,CAAC,kBAAkB,CACjB;UAAA,CAAC,QAAQ,CACT;UAAA,CAAC,MAAM,IAAI,CACT,CAAC,WAAW,CACV,MAAM,CAAC,CAAC,MAAM,CAAC,CACf,MAAM,CAAC,CAAC,WAAW,CAAC,CACpB,MAAM,CAAC,CAAC,WAAW,CAAC,EACpB,CACH,CACH;QAAA,EAAE,kBAAkB,CACtB;MAAA,EAAE,kBAAkB,CACtB;IAAA,EAAE,aAAa,CAAC,CACjB,CAAC;IAEF,MAAM,QAAQ,GAAG,gBAAgB,CAAC;IAClC,OAAO,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACvD,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ export interface AppRootProps {
3
+ children: React.ReactNode;
4
+ /**
5
+ * Optional registry of named modals (`{ Name: ModalComponent }`). When
6
+ * provided, AppRoot mounts the `ModalRouter` once at the root so any code can
7
+ * drive them with `showModal('Name', props)` / `hideModal('Name')`.
8
+ */
9
+ modals?: {
10
+ [name: string]: React.FC<any>;
11
+ };
12
+ /** Called whenever a modal is shown (forwarded to the ModalRouter). */
13
+ onModalShow?: (name: string, props?: any) => void;
14
+ /** Called whenever a modal is hidden (forwarded to the ModalRouter). */
15
+ onModalHide?: (name?: string, props?: any) => void;
16
+ /**
17
+ * Extra props forwarded to app-studio's `ThemeProvider` (e.g. `theme`,
18
+ * `themeMode`). Kept permissive so AppRoot tracks ThemeProvider without
19
+ * re-declaring its surface.
20
+ */
21
+ [key: string]: any;
22
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=AppRoot.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppRoot.types.js","sourceRoot":"","sources":["../../../../src/components/AppRoot/AppRoot.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './AppRoot';
2
+ export type { AppRootProps } from './AppRoot.types';