@fountain-ui/core 2.0.0-beta.2 → 2.0.0-beta.22

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 (854) hide show
  1. package/build/commonjs/Accordion/Accordion.js +6 -8
  2. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  3. package/build/commonjs/Accordion/AccordionProps.js.map +1 -1
  4. package/build/commonjs/Accordion/index.js.map +1 -1
  5. package/build/commonjs/AppBar/AppBar.js +9 -14
  6. package/build/commonjs/AppBar/AppBar.js.map +1 -1
  7. package/build/commonjs/AppBar/AppBarProps.js.map +1 -1
  8. package/build/commonjs/AppBar/index.js.map +1 -1
  9. package/build/commonjs/AspectRatio/AspectRatioNative.js +1 -1
  10. package/build/commonjs/AspectRatio/AspectRatioNative.js.map +1 -1
  11. package/build/commonjs/AspectRatio/AspectRatioProps.js.map +1 -1
  12. package/build/commonjs/AspectRatio/AspectRatioWeb.js +1 -1
  13. package/build/commonjs/AspectRatio/AspectRatioWeb.js.map +1 -1
  14. package/build/commonjs/AspectRatio/index.js.map +1 -1
  15. package/build/commonjs/AspectRatio/index.native.js.map +1 -1
  16. package/build/commonjs/AspectRatio/utils.js +1 -1
  17. package/build/commonjs/AspectRatio/utils.js.map +1 -1
  18. package/build/commonjs/Avatar/Avatar.js.map +1 -1
  19. package/build/commonjs/Avatar/AvatarProps.js.map +1 -1
  20. package/build/commonjs/Avatar/index.js.map +1 -1
  21. package/build/commonjs/Badge/Badge.js +1 -1
  22. package/build/commonjs/Badge/Badge.js.map +1 -1
  23. package/build/commonjs/Badge/BadgeProps.js.map +1 -1
  24. package/build/commonjs/Badge/index.js.map +1 -1
  25. package/build/commonjs/Button/Button.js +2 -2
  26. package/build/commonjs/Button/Button.js.map +1 -1
  27. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  28. package/build/commonjs/Button/index.js.map +1 -1
  29. package/build/commonjs/ButtonBase/ButtonBase.js +64 -59
  30. package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
  31. package/build/commonjs/ButtonBase/ButtonBaseProps.js.map +1 -1
  32. package/build/commonjs/ButtonBase/index.js.map +1 -1
  33. package/build/commonjs/Card/Card.js +1 -1
  34. package/build/commonjs/Card/Card.js.map +1 -1
  35. package/build/commonjs/Card/CardProps.js.map +1 -1
  36. package/build/commonjs/Card/index.js.map +1 -1
  37. package/build/commonjs/CardActions/CardActions.js +1 -1
  38. package/build/commonjs/CardActions/CardActions.js.map +1 -1
  39. package/build/commonjs/CardActions/CardActionsProps.js.map +1 -1
  40. package/build/commonjs/CardActions/index.js.map +1 -1
  41. package/build/commonjs/CardContent/CardContent.js +1 -1
  42. package/build/commonjs/CardContent/CardContent.js.map +1 -1
  43. package/build/commonjs/CardContent/CardContentProps.js.map +1 -1
  44. package/build/commonjs/CardContent/index.js.map +1 -1
  45. package/build/commonjs/CardMedia/CardMedia.js +1 -1
  46. package/build/commonjs/CardMedia/CardMedia.js.map +1 -1
  47. package/build/commonjs/CardMedia/CardMediaProps.js.map +1 -1
  48. package/build/commonjs/CardMedia/index.js.map +1 -1
  49. package/build/commonjs/Checkbox/Checkbox.js +1 -1
  50. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  51. package/build/commonjs/Checkbox/CheckboxProps.js.map +1 -1
  52. package/build/commonjs/Checkbox/index.js.map +1 -1
  53. package/build/commonjs/Chip/Chip.js +4 -2
  54. package/build/commonjs/Chip/Chip.js.map +1 -1
  55. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  56. package/build/commonjs/Chip/index.js.map +1 -1
  57. package/build/commonjs/CircularProgress/CircularProgress.js +24 -28
  58. package/build/commonjs/CircularProgress/CircularProgress.js.map +1 -1
  59. package/build/commonjs/CircularProgress/index.js.map +1 -1
  60. package/build/commonjs/Column/Column.js.map +1 -1
  61. package/build/commonjs/Column/ColumnProps.js.map +1 -1
  62. package/build/commonjs/Column/index.js.map +1 -1
  63. package/build/commonjs/Dialog/Dialog.js +1 -1
  64. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  65. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  66. package/build/commonjs/Dialog/index.js.map +1 -1
  67. package/build/commonjs/DialogActions/DialogActions.js +1 -1
  68. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  69. package/build/commonjs/DialogActions/DialogActionsProps.js.map +1 -1
  70. package/build/commonjs/DialogActions/index.js.map +1 -1
  71. package/build/commonjs/DialogContent/DialogContent.js +1 -1
  72. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  73. package/build/commonjs/DialogContent/DialogContentProps.js.map +1 -1
  74. package/build/commonjs/DialogContent/index.js.map +1 -1
  75. package/build/commonjs/DialogMedia/DialogMedia.js +1 -1
  76. package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
  77. package/build/commonjs/DialogMedia/DialogMediaProps.js.map +1 -1
  78. package/build/commonjs/DialogMedia/index.js.map +1 -1
  79. package/build/commonjs/DialogTitle/DialogTitle.js +1 -1
  80. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  81. package/build/commonjs/DialogTitle/DialogTitleProps.js.map +1 -1
  82. package/build/commonjs/DialogTitle/index.js.map +1 -1
  83. package/build/commonjs/Divider/Divider.js +1 -1
  84. package/build/commonjs/Divider/Divider.js.map +1 -1
  85. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  86. package/build/commonjs/Divider/index.js.map +1 -1
  87. package/build/commonjs/Fab/Fab.js +2 -2
  88. package/build/commonjs/Fab/Fab.js.map +1 -1
  89. package/build/commonjs/Fab/FabProps.js.map +1 -1
  90. package/build/commonjs/Fab/index.js.map +1 -1
  91. package/build/commonjs/Flexbox/Flexbox.js +1 -1
  92. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  93. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  94. package/build/commonjs/Flexbox/index.js.map +1 -1
  95. package/build/commonjs/IconButton/IconButton.js +1 -1
  96. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  97. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  98. package/build/commonjs/IconButton/index.js.map +1 -1
  99. package/build/commonjs/Image/Image.js +1 -1
  100. package/build/commonjs/Image/Image.js.map +1 -1
  101. package/build/commonjs/Image/ImageProps.js.map +1 -1
  102. package/build/commonjs/Image/index.js.map +1 -1
  103. package/build/commonjs/ImageCore/ImageCoreNative.js +26 -26
  104. package/build/commonjs/ImageCore/ImageCoreNative.js.map +1 -1
  105. package/build/commonjs/ImageCore/ImageCoreProps.js.map +1 -1
  106. package/build/commonjs/ImageCore/ImageCoreWeb.js.map +1 -1
  107. package/build/commonjs/ImageCore/index.js.map +1 -1
  108. package/build/commonjs/ImageCore/index.native.js.map +1 -1
  109. package/build/commonjs/Link/Link.js +5 -4
  110. package/build/commonjs/Link/Link.js.map +1 -1
  111. package/build/commonjs/Link/LinkProps.js.map +1 -1
  112. package/build/commonjs/Link/index.js.map +1 -1
  113. package/build/commonjs/List/List.js +1 -1
  114. package/build/commonjs/List/List.js.map +1 -1
  115. package/build/commonjs/List/ListProps.js.map +1 -1
  116. package/build/commonjs/List/index.js.map +1 -1
  117. package/build/commonjs/ListItem/ListItem.js +1 -1
  118. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  119. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  120. package/build/commonjs/ListItem/index.js.map +1 -1
  121. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -1
  122. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  123. package/build/commonjs/ListItemIcon/ListItemIconProps.js.map +1 -1
  124. package/build/commonjs/ListItemIcon/index.js.map +1 -1
  125. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  126. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  127. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryActionProps.js.map +1 -1
  128. package/build/commonjs/ListItemSecondaryAction/index.js.map +1 -1
  129. package/build/commonjs/ListItemText/ListItemText.js +1 -1
  130. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  131. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  132. package/build/commonjs/ListItemText/index.js.map +1 -1
  133. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  134. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  135. package/build/commonjs/ListSubheader/ListSubheaderProps.js.map +1 -1
  136. package/build/commonjs/ListSubheader/index.js.map +1 -1
  137. package/build/commonjs/Menu/Menu.js.map +1 -1
  138. package/build/commonjs/Menu/MenuProps.js.map +1 -1
  139. package/build/commonjs/Menu/index.js.map +1 -1
  140. package/build/commonjs/MenuItem/MenuItem.js.map +1 -1
  141. package/build/commonjs/MenuItem/MenuItemProps.js.map +1 -1
  142. package/build/commonjs/MenuItem/index.js.map +1 -1
  143. package/build/commonjs/Modal/Modal.js +2 -2
  144. package/build/commonjs/Modal/Modal.js.map +1 -1
  145. package/build/commonjs/Modal/ModalProps.js.map +1 -1
  146. package/build/commonjs/Modal/SimpleBackdrop.js +1 -1
  147. package/build/commonjs/Modal/SimpleBackdrop.js.map +1 -1
  148. package/build/commonjs/Modal/SimpleBackdropProps.js.map +1 -1
  149. package/build/commonjs/Modal/index.js +4 -4
  150. package/build/commonjs/Modal/index.js.map +1 -1
  151. package/build/commonjs/Pagination/Pagination.js +10 -7
  152. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  153. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  154. package/build/commonjs/Pagination/index.js.map +1 -1
  155. package/build/commonjs/PaginationItem/PaginationItem.js +1 -1
  156. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  157. package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
  158. package/build/commonjs/PaginationItem/index.js.map +1 -1
  159. package/build/commonjs/Paper/Paper.js +12 -4
  160. package/build/commonjs/Paper/Paper.js.map +1 -1
  161. package/build/commonjs/Paper/PaperProps.js.map +1 -1
  162. package/build/commonjs/Paper/PaperStylesProvider.js +14 -0
  163. package/build/commonjs/Paper/PaperStylesProvider.js.map +1 -0
  164. package/build/commonjs/Paper/index.js.map +1 -1
  165. package/build/commonjs/Paper/usePaperStyles.js +17 -0
  166. package/build/commonjs/Paper/usePaperStyles.js.map +1 -0
  167. package/build/commonjs/Portal/Portal.js.map +1 -1
  168. package/build/commonjs/Portal/PortalConsumer.js +2 -2
  169. package/build/commonjs/Portal/PortalConsumer.js.map +1 -1
  170. package/build/commonjs/Portal/PortalHost.js +2 -2
  171. package/build/commonjs/Portal/PortalHost.js.map +1 -1
  172. package/build/commonjs/Portal/PortalManager.js +11 -8
  173. package/build/commonjs/Portal/PortalManager.js.map +1 -1
  174. package/build/commonjs/Portal/PortalProps.js.map +1 -1
  175. package/build/commonjs/Portal/index.js.map +1 -1
  176. package/build/commonjs/Pressable/index.js.map +1 -1
  177. package/build/commonjs/Radio/Radio.js +3 -7
  178. package/build/commonjs/Radio/Radio.js.map +1 -1
  179. package/build/commonjs/Radio/RadioProps.js.map +1 -1
  180. package/build/commonjs/Radio/index.js.map +1 -1
  181. package/build/commonjs/RadioGroup/RadioContextProvider.js.map +1 -1
  182. package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
  183. package/build/commonjs/RadioGroup/RadioGroupProps.js.map +1 -1
  184. package/build/commonjs/RadioGroup/index.js.map +1 -1
  185. package/build/commonjs/Row/Row.js.map +1 -1
  186. package/build/commonjs/Row/RowProps.js.map +1 -1
  187. package/build/commonjs/Row/index.js.map +1 -1
  188. package/build/commonjs/Slide/Slide.js +16 -20
  189. package/build/commonjs/Slide/Slide.js.map +1 -1
  190. package/build/commonjs/Slide/SlideProps.js.map +1 -1
  191. package/build/commonjs/Slide/index.js.map +1 -1
  192. package/build/commonjs/Slider/Slider.js +1 -1
  193. package/build/commonjs/Slider/Slider.js.map +1 -1
  194. package/build/commonjs/Slider/SliderProps.js.map +1 -1
  195. package/build/commonjs/Slider/index.js.map +1 -1
  196. package/build/commonjs/Snackbar/Snackbar.js +1 -1
  197. package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
  198. package/build/commonjs/Snackbar/SnackbarProps.js.map +1 -1
  199. package/build/commonjs/Snackbar/index.js.map +1 -1
  200. package/build/commonjs/SnackbarContent/SnackbarContent.js +1 -1
  201. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  202. package/build/commonjs/SnackbarContent/SnackbarContentProps.js.map +1 -1
  203. package/build/commonjs/SnackbarContent/index.js.map +1 -1
  204. package/build/commonjs/Spacer/Spacer.js +1 -1
  205. package/build/commonjs/Spacer/Spacer.js.map +1 -1
  206. package/build/commonjs/Spacer/SpacerProps.js.map +1 -1
  207. package/build/commonjs/Spacer/index.js.map +1 -1
  208. package/build/commonjs/SvgIcon/SvgIcon.js +2 -3
  209. package/build/commonjs/SvgIcon/SvgIcon.js.map +1 -1
  210. package/build/commonjs/SvgIcon/SvgIconProps.js.map +1 -1
  211. package/build/commonjs/SvgIcon/index.js.map +1 -1
  212. package/build/commonjs/Switch/Switch.js +1 -1
  213. package/build/commonjs/Switch/Switch.js.map +1 -1
  214. package/build/commonjs/Switch/SwitchProps.js.map +1 -1
  215. package/build/commonjs/Switch/index.js.map +1 -1
  216. package/build/commonjs/Tab/Tab.js +10 -6
  217. package/build/commonjs/Tab/Tab.js.map +1 -1
  218. package/build/commonjs/Tab/TabIndicator.js.map +1 -1
  219. package/build/commonjs/Tab/TabProps.js.map +1 -1
  220. package/build/commonjs/Tab/index.js.map +1 -1
  221. package/build/commonjs/TabBase/TabBase.js +1 -1
  222. package/build/commonjs/TabBase/TabBase.js.map +1 -1
  223. package/build/commonjs/TabBase/TabBaseProps.js.map +1 -1
  224. package/build/commonjs/TabBase/index.js.map +1 -1
  225. package/build/commonjs/Tabs/IndexAwareTab.js +35 -0
  226. package/build/commonjs/Tabs/IndexAwareTab.js.map +1 -0
  227. package/build/commonjs/Tabs/InternalContext.js +17 -0
  228. package/build/commonjs/Tabs/InternalContext.js.map +1 -0
  229. package/build/commonjs/Tabs/ScrollableTabsView.js +35 -0
  230. package/build/commonjs/Tabs/ScrollableTabsView.js.map +1 -0
  231. package/build/commonjs/Tabs/TabCoordinate.js.map +1 -1
  232. package/build/commonjs/Tabs/TabIndicator.js +65 -29
  233. package/build/commonjs/Tabs/TabIndicator.js.map +1 -1
  234. package/build/commonjs/Tabs/TabIndicatorProps.js.map +1 -1
  235. package/build/commonjs/Tabs/Tabs.js +64 -82
  236. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  237. package/build/commonjs/Tabs/TabsProps.js.map +1 -1
  238. package/build/commonjs/Tabs/index.js.map +1 -1
  239. package/build/commonjs/Tabs/types.js +2 -0
  240. package/build/commonjs/Tabs/types.js.map +1 -0
  241. package/build/commonjs/Tabs/useIndexStore.js +35 -0
  242. package/build/commonjs/Tabs/useIndexStore.js.map +1 -0
  243. package/build/commonjs/Tabs/useScrollViewReaction.js +69 -0
  244. package/build/commonjs/Tabs/useScrollViewReaction.js.map +1 -0
  245. package/build/commonjs/Tabs/useTabCoordinates.js +30 -0
  246. package/build/commonjs/Tabs/useTabCoordinates.js.map +1 -0
  247. package/build/commonjs/Tabs/utils.js +19 -0
  248. package/build/commonjs/Tabs/utils.js.map +1 -0
  249. package/build/commonjs/TextField/InputLabel.js +11 -7
  250. package/build/commonjs/TextField/InputLabel.js.map +1 -1
  251. package/build/commonjs/TextField/OutlinedTextField.js +1 -2
  252. package/build/commonjs/TextField/OutlinedTextField.js.map +1 -1
  253. package/build/commonjs/TextField/TextField.js.map +1 -1
  254. package/build/commonjs/TextField/TextFieldProps.js.map +1 -1
  255. package/build/commonjs/TextField/index.js.map +1 -1
  256. package/build/commonjs/TextField/utils.js +1 -1
  257. package/build/commonjs/TextField/utils.js.map +1 -1
  258. package/build/commonjs/Toolbar/Toolbar.js +1 -1
  259. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  260. package/build/commonjs/Toolbar/ToolbarProps.js.map +1 -1
  261. package/build/commonjs/Toolbar/index.js.map +1 -1
  262. package/build/commonjs/Tooltip/Tooltip.js +22 -24
  263. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  264. package/build/commonjs/Tooltip/TooltipProps.js.map +1 -1
  265. package/build/commonjs/Tooltip/UpArrow.js +6 -5
  266. package/build/commonjs/Tooltip/UpArrow.js.map +1 -1
  267. package/build/commonjs/Tooltip/UpArrowProps.js.map +1 -1
  268. package/build/commonjs/Tooltip/index.js.map +1 -1
  269. package/build/commonjs/Typography/Typography.js.map +1 -1
  270. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  271. package/build/commonjs/Typography/index.js.map +1 -1
  272. package/build/commonjs/animated/AnimatedAppBar.js.map +1 -1
  273. package/build/commonjs/animated/AnimatedFlatList.js.map +1 -1
  274. package/build/commonjs/animated/AnimatedPressable.js +2 -3
  275. package/build/commonjs/animated/AnimatedPressable.js.map +1 -1
  276. package/build/commonjs/animated/AnimatedTypography.js.map +1 -1
  277. package/build/commonjs/animated/index.js.map +1 -1
  278. package/build/commonjs/hooks/index.js +16 -0
  279. package/build/commonjs/hooks/index.js.map +1 -1
  280. package/build/commonjs/hooks/useAppbarStyles.js.map +1 -1
  281. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  282. package/build/commonjs/hooks/useCollapsibleAppBar.js +58 -59
  283. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  284. package/build/commonjs/hooks/useContentContainerStyle.js +2 -1
  285. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  286. package/build/commonjs/hooks/useElevationStyle.js.map +1 -1
  287. package/build/commonjs/hooks/useFadeInAppBar.js +45 -35
  288. package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
  289. package/build/commonjs/hooks/useImperativeState.js +26 -0
  290. package/build/commonjs/hooks/useImperativeState.js.map +1 -0
  291. package/build/commonjs/hooks/useSyncAnimatedValue.js +37 -0
  292. package/build/commonjs/hooks/useSyncAnimatedValue.js.map +1 -0
  293. package/build/commonjs/hooks/useThrottle.js +4 -8
  294. package/build/commonjs/hooks/useThrottle.js.map +1 -1
  295. package/build/commonjs/hooks/useValidWindowDimensions/index.ios.js +14 -7
  296. package/build/commonjs/hooks/useValidWindowDimensions/index.ios.js.map +1 -1
  297. package/build/commonjs/hooks/useValidWindowDimensions/index.js.map +1 -1
  298. package/build/commonjs/index.js +20 -6
  299. package/build/commonjs/index.js.map +1 -1
  300. package/build/commonjs/internal/hooks/index.js +0 -8
  301. package/build/commonjs/internal/hooks/index.js.map +1 -1
  302. package/build/commonjs/internal/hooks/useHeight.js +6 -9
  303. package/build/commonjs/internal/hooks/useHeight.js.map +1 -1
  304. package/build/commonjs/internal/icons/Checkbox.js.map +1 -1
  305. package/build/commonjs/internal/icons/CheckboxChecked.js +3 -8
  306. package/build/commonjs/internal/icons/CheckboxChecked.js.map +1 -1
  307. package/build/commonjs/internal/icons/ChevronDown.js.map +1 -1
  308. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  309. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  310. package/build/commonjs/internal/icons/CircularProgress.js.map +1 -1
  311. package/build/commonjs/internal/icons/Close.js.map +1 -1
  312. package/build/commonjs/internal/icons/Radio.js.map +1 -1
  313. package/build/commonjs/internal/icons/RadioChecked.js.map +1 -1
  314. package/build/commonjs/internal/icons/index.js.map +1 -1
  315. package/build/commonjs/internal/index.js.map +1 -1
  316. package/build/commonjs/store/MockStore.js +23 -0
  317. package/build/commonjs/store/MockStore.js.map +1 -0
  318. package/build/commonjs/store/SimpleStore.js +53 -0
  319. package/build/commonjs/store/SimpleStore.js.map +1 -0
  320. package/build/commonjs/store/index.js +24 -0
  321. package/build/commonjs/store/index.js.map +1 -0
  322. package/build/commonjs/store/types.js +2 -0
  323. package/build/commonjs/store/types.js.map +1 -0
  324. package/build/commonjs/styles/EdgeInsets.js +9 -6
  325. package/build/commonjs/styles/EdgeInsets.js.map +1 -1
  326. package/build/commonjs/styles/PredefinedStyles.js.map +1 -1
  327. package/build/commonjs/styles/StyleSheet.js.map +1 -1
  328. package/build/commonjs/styles/ThemeProvider.js.map +1 -1
  329. package/build/commonjs/styles/createFontStyle.js +2 -2
  330. package/build/commonjs/styles/createFontStyle.js.map +1 -1
  331. package/build/commonjs/styles/index.js +14 -14
  332. package/build/commonjs/styles/index.js.map +1 -1
  333. package/build/commonjs/styles/styled.js +4 -4
  334. package/build/commonjs/styles/styled.js.map +1 -1
  335. package/build/commonjs/styles/useTheme.js.map +1 -1
  336. package/build/commonjs/types/index.js.map +1 -1
  337. package/build/commonjs/utils/cloneElementSafely.js +3 -1
  338. package/build/commonjs/utils/cloneElementSafely.js.map +1 -1
  339. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  340. package/build/commonjs/utils/index.js.map +1 -1
  341. package/build/module/Accordion/Accordion.js +6 -6
  342. package/build/module/Accordion/Accordion.js.map +1 -1
  343. package/build/module/Accordion/AccordionProps.js.map +1 -1
  344. package/build/module/Accordion/index.js.map +1 -1
  345. package/build/module/AppBar/AppBar.js +9 -14
  346. package/build/module/AppBar/AppBar.js.map +1 -1
  347. package/build/module/AppBar/AppBarProps.js.map +1 -1
  348. package/build/module/AppBar/index.js.map +1 -1
  349. package/build/module/AspectRatio/AspectRatioNative.js +1 -1
  350. package/build/module/AspectRatio/AspectRatioNative.js.map +1 -1
  351. package/build/module/AspectRatio/AspectRatioProps.js.map +1 -1
  352. package/build/module/AspectRatio/AspectRatioWeb.js +1 -1
  353. package/build/module/AspectRatio/AspectRatioWeb.js.map +1 -1
  354. package/build/module/AspectRatio/index.js.map +1 -1
  355. package/build/module/AspectRatio/index.native.js.map +1 -1
  356. package/build/module/AspectRatio/utils.js.map +1 -1
  357. package/build/module/Avatar/Avatar.js.map +1 -1
  358. package/build/module/Avatar/AvatarProps.js.map +1 -1
  359. package/build/module/Avatar/index.js.map +1 -1
  360. package/build/module/Badge/Badge.js +1 -1
  361. package/build/module/Badge/Badge.js.map +1 -1
  362. package/build/module/Badge/BadgeProps.js.map +1 -1
  363. package/build/module/Badge/index.js.map +1 -1
  364. package/build/module/Button/Button.js +2 -2
  365. package/build/module/Button/Button.js.map +1 -1
  366. package/build/module/Button/ButtonProps.js.map +1 -1
  367. package/build/module/Button/index.js.map +1 -1
  368. package/build/module/ButtonBase/ButtonBase.js +61 -50
  369. package/build/module/ButtonBase/ButtonBase.js.map +1 -1
  370. package/build/module/ButtonBase/ButtonBaseProps.js.map +1 -1
  371. package/build/module/ButtonBase/index.js.map +1 -1
  372. package/build/module/Card/Card.js +1 -1
  373. package/build/module/Card/Card.js.map +1 -1
  374. package/build/module/Card/CardProps.js.map +1 -1
  375. package/build/module/Card/index.js.map +1 -1
  376. package/build/module/CardActions/CardActions.js +1 -1
  377. package/build/module/CardActions/CardActions.js.map +1 -1
  378. package/build/module/CardActions/CardActionsProps.js.map +1 -1
  379. package/build/module/CardActions/index.js.map +1 -1
  380. package/build/module/CardContent/CardContent.js +1 -1
  381. package/build/module/CardContent/CardContent.js.map +1 -1
  382. package/build/module/CardContent/CardContentProps.js.map +1 -1
  383. package/build/module/CardContent/index.js.map +1 -1
  384. package/build/module/CardMedia/CardMedia.js +1 -1
  385. package/build/module/CardMedia/CardMedia.js.map +1 -1
  386. package/build/module/CardMedia/CardMediaProps.js.map +1 -1
  387. package/build/module/CardMedia/index.js.map +1 -1
  388. package/build/module/Checkbox/Checkbox.js +1 -1
  389. package/build/module/Checkbox/Checkbox.js.map +1 -1
  390. package/build/module/Checkbox/CheckboxProps.js.map +1 -1
  391. package/build/module/Checkbox/index.js.map +1 -1
  392. package/build/module/Chip/Chip.js +4 -2
  393. package/build/module/Chip/Chip.js.map +1 -1
  394. package/build/module/Chip/ChipProps.js.map +1 -1
  395. package/build/module/Chip/index.js.map +1 -1
  396. package/build/module/CircularProgress/CircularProgress.js +23 -20
  397. package/build/module/CircularProgress/CircularProgress.js.map +1 -1
  398. package/build/module/CircularProgress/index.js.map +1 -1
  399. package/build/module/Column/Column.js.map +1 -1
  400. package/build/module/Column/ColumnProps.js.map +1 -1
  401. package/build/module/Column/index.js.map +1 -1
  402. package/build/module/Dialog/Dialog.js +1 -1
  403. package/build/module/Dialog/Dialog.js.map +1 -1
  404. package/build/module/Dialog/DialogProps.js.map +1 -1
  405. package/build/module/Dialog/index.js.map +1 -1
  406. package/build/module/DialogActions/DialogActions.js +1 -1
  407. package/build/module/DialogActions/DialogActions.js.map +1 -1
  408. package/build/module/DialogActions/DialogActionsProps.js.map +1 -1
  409. package/build/module/DialogActions/index.js.map +1 -1
  410. package/build/module/DialogContent/DialogContent.js +1 -1
  411. package/build/module/DialogContent/DialogContent.js.map +1 -1
  412. package/build/module/DialogContent/DialogContentProps.js.map +1 -1
  413. package/build/module/DialogContent/index.js.map +1 -1
  414. package/build/module/DialogMedia/DialogMedia.js +1 -1
  415. package/build/module/DialogMedia/DialogMedia.js.map +1 -1
  416. package/build/module/DialogMedia/DialogMediaProps.js.map +1 -1
  417. package/build/module/DialogMedia/index.js.map +1 -1
  418. package/build/module/DialogTitle/DialogTitle.js +1 -1
  419. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  420. package/build/module/DialogTitle/DialogTitleProps.js.map +1 -1
  421. package/build/module/DialogTitle/index.js.map +1 -1
  422. package/build/module/Divider/Divider.js +1 -1
  423. package/build/module/Divider/Divider.js.map +1 -1
  424. package/build/module/Divider/DividerProps.js.map +1 -1
  425. package/build/module/Divider/index.js.map +1 -1
  426. package/build/module/Fab/Fab.js +2 -2
  427. package/build/module/Fab/Fab.js.map +1 -1
  428. package/build/module/Fab/FabProps.js.map +1 -1
  429. package/build/module/Fab/index.js.map +1 -1
  430. package/build/module/Flexbox/Flexbox.js +1 -1
  431. package/build/module/Flexbox/Flexbox.js.map +1 -1
  432. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  433. package/build/module/Flexbox/index.js.map +1 -1
  434. package/build/module/IconButton/IconButton.js +1 -1
  435. package/build/module/IconButton/IconButton.js.map +1 -1
  436. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  437. package/build/module/IconButton/index.js.map +1 -1
  438. package/build/module/Image/Image.js +1 -1
  439. package/build/module/Image/Image.js.map +1 -1
  440. package/build/module/Image/ImageProps.js.map +1 -1
  441. package/build/module/Image/index.js.map +1 -1
  442. package/build/module/ImageCore/ImageCoreNative.js +20 -23
  443. package/build/module/ImageCore/ImageCoreNative.js.map +1 -1
  444. package/build/module/ImageCore/ImageCoreProps.js.map +1 -1
  445. package/build/module/ImageCore/ImageCoreWeb.js.map +1 -1
  446. package/build/module/ImageCore/index.js.map +1 -1
  447. package/build/module/ImageCore/index.native.js.map +1 -1
  448. package/build/module/Link/Link.js +5 -4
  449. package/build/module/Link/Link.js.map +1 -1
  450. package/build/module/Link/LinkProps.js.map +1 -1
  451. package/build/module/Link/index.js.map +1 -1
  452. package/build/module/List/List.js +1 -1
  453. package/build/module/List/List.js.map +1 -1
  454. package/build/module/List/ListProps.js.map +1 -1
  455. package/build/module/List/index.js.map +1 -1
  456. package/build/module/ListItem/ListItem.js +1 -1
  457. package/build/module/ListItem/ListItem.js.map +1 -1
  458. package/build/module/ListItem/ListItemProps.js.map +1 -1
  459. package/build/module/ListItem/index.js.map +1 -1
  460. package/build/module/ListItemIcon/ListItemIcon.js +1 -1
  461. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  462. package/build/module/ListItemIcon/ListItemIconProps.js.map +1 -1
  463. package/build/module/ListItemIcon/index.js.map +1 -1
  464. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  465. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  466. package/build/module/ListItemSecondaryAction/ListItemSecondaryActionProps.js.map +1 -1
  467. package/build/module/ListItemSecondaryAction/index.js.map +1 -1
  468. package/build/module/ListItemText/ListItemText.js +1 -1
  469. package/build/module/ListItemText/ListItemText.js.map +1 -1
  470. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  471. package/build/module/ListItemText/index.js.map +1 -1
  472. package/build/module/ListSubheader/ListSubheader.js +1 -1
  473. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  474. package/build/module/ListSubheader/ListSubheaderProps.js.map +1 -1
  475. package/build/module/ListSubheader/index.js.map +1 -1
  476. package/build/module/Menu/Menu.js.map +1 -1
  477. package/build/module/Menu/MenuProps.js.map +1 -1
  478. package/build/module/Menu/index.js.map +1 -1
  479. package/build/module/MenuItem/MenuItem.js.map +1 -1
  480. package/build/module/MenuItem/MenuItemProps.js.map +1 -1
  481. package/build/module/MenuItem/index.js.map +1 -1
  482. package/build/module/Modal/Modal.js +1 -1
  483. package/build/module/Modal/Modal.js.map +1 -1
  484. package/build/module/Modal/ModalProps.js.map +1 -1
  485. package/build/module/Modal/SimpleBackdrop.js +1 -1
  486. package/build/module/Modal/SimpleBackdrop.js.map +1 -1
  487. package/build/module/Modal/SimpleBackdropProps.js.map +1 -1
  488. package/build/module/Modal/index.js.map +1 -1
  489. package/build/module/Pagination/Pagination.js +10 -7
  490. package/build/module/Pagination/Pagination.js.map +1 -1
  491. package/build/module/Pagination/PaginationProps.js.map +1 -1
  492. package/build/module/Pagination/index.js.map +1 -1
  493. package/build/module/PaginationItem/PaginationItem.js +1 -1
  494. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  495. package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
  496. package/build/module/PaginationItem/index.js.map +1 -1
  497. package/build/module/Paper/Paper.js +11 -4
  498. package/build/module/Paper/Paper.js.map +1 -1
  499. package/build/module/Paper/PaperProps.js.map +1 -1
  500. package/build/module/Paper/PaperStylesProvider.js +4 -0
  501. package/build/module/Paper/PaperStylesProvider.js.map +1 -0
  502. package/build/module/Paper/index.js.map +1 -1
  503. package/build/module/Paper/usePaperStyles.js +7 -0
  504. package/build/module/Paper/usePaperStyles.js.map +1 -0
  505. package/build/module/Portal/Portal.js.map +1 -1
  506. package/build/module/Portal/PortalConsumer.js +2 -2
  507. package/build/module/Portal/PortalConsumer.js.map +1 -1
  508. package/build/module/Portal/PortalHost.js +2 -2
  509. package/build/module/Portal/PortalHost.js.map +1 -1
  510. package/build/module/Portal/PortalManager.js +11 -8
  511. package/build/module/Portal/PortalManager.js.map +1 -1
  512. package/build/module/Portal/PortalProps.js.map +1 -1
  513. package/build/module/Portal/index.js.map +1 -1
  514. package/build/module/Pressable/index.js.map +1 -1
  515. package/build/module/Radio/Radio.js +3 -7
  516. package/build/module/Radio/Radio.js.map +1 -1
  517. package/build/module/Radio/RadioProps.js.map +1 -1
  518. package/build/module/Radio/index.js.map +1 -1
  519. package/build/module/RadioGroup/RadioContextProvider.js.map +1 -1
  520. package/build/module/RadioGroup/RadioGroup.js.map +1 -1
  521. package/build/module/RadioGroup/RadioGroupProps.js.map +1 -1
  522. package/build/module/RadioGroup/index.js.map +1 -1
  523. package/build/module/Row/Row.js.map +1 -1
  524. package/build/module/Row/RowProps.js.map +1 -1
  525. package/build/module/Row/index.js.map +1 -1
  526. package/build/module/Slide/Slide.js +19 -15
  527. package/build/module/Slide/Slide.js.map +1 -1
  528. package/build/module/Slide/SlideProps.js.map +1 -1
  529. package/build/module/Slide/index.js.map +1 -1
  530. package/build/module/Slider/Slider.js +1 -1
  531. package/build/module/Slider/Slider.js.map +1 -1
  532. package/build/module/Slider/SliderProps.js.map +1 -1
  533. package/build/module/Slider/index.js.map +1 -1
  534. package/build/module/Snackbar/Snackbar.js +1 -1
  535. package/build/module/Snackbar/Snackbar.js.map +1 -1
  536. package/build/module/Snackbar/SnackbarProps.js.map +1 -1
  537. package/build/module/Snackbar/index.js.map +1 -1
  538. package/build/module/SnackbarContent/SnackbarContent.js +1 -1
  539. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  540. package/build/module/SnackbarContent/SnackbarContentProps.js.map +1 -1
  541. package/build/module/SnackbarContent/index.js.map +1 -1
  542. package/build/module/Spacer/Spacer.js +1 -1
  543. package/build/module/Spacer/Spacer.js.map +1 -1
  544. package/build/module/Spacer/SpacerProps.js.map +1 -1
  545. package/build/module/Spacer/index.js.map +1 -1
  546. package/build/module/SvgIcon/SvgIcon.js +2 -3
  547. package/build/module/SvgIcon/SvgIcon.js.map +1 -1
  548. package/build/module/SvgIcon/SvgIconProps.js.map +1 -1
  549. package/build/module/SvgIcon/index.js.map +1 -1
  550. package/build/module/Switch/Switch.js +1 -1
  551. package/build/module/Switch/Switch.js.map +1 -1
  552. package/build/module/Switch/SwitchProps.js.map +1 -1
  553. package/build/module/Switch/index.js.map +1 -1
  554. package/build/module/Tab/Tab.js +6 -6
  555. package/build/module/Tab/Tab.js.map +1 -1
  556. package/build/module/Tab/TabIndicator.js.map +1 -1
  557. package/build/module/Tab/TabProps.js.map +1 -1
  558. package/build/module/Tab/index.js.map +1 -1
  559. package/build/module/TabBase/TabBase.js +1 -1
  560. package/build/module/TabBase/TabBase.js.map +1 -1
  561. package/build/module/TabBase/TabBaseProps.js.map +1 -1
  562. package/build/module/TabBase/index.js.map +1 -1
  563. package/build/module/Tabs/IndexAwareTab.js +23 -0
  564. package/build/module/Tabs/IndexAwareTab.js.map +1 -0
  565. package/build/module/Tabs/InternalContext.js +7 -0
  566. package/build/module/Tabs/InternalContext.js.map +1 -0
  567. package/build/module/Tabs/ScrollableTabsView.js +22 -0
  568. package/build/module/Tabs/ScrollableTabsView.js.map +1 -0
  569. package/build/module/Tabs/TabCoordinate.js.map +1 -1
  570. package/build/module/Tabs/TabIndicator.js +58 -25
  571. package/build/module/Tabs/TabIndicator.js.map +1 -1
  572. package/build/module/Tabs/TabIndicatorProps.js.map +1 -1
  573. package/build/module/Tabs/Tabs.js +57 -70
  574. package/build/module/Tabs/Tabs.js.map +1 -1
  575. package/build/module/Tabs/TabsProps.js.map +1 -1
  576. package/build/module/Tabs/index.js.map +1 -1
  577. package/build/module/Tabs/types.js +2 -0
  578. package/build/module/Tabs/types.js.map +1 -0
  579. package/build/module/Tabs/useIndexStore.js +25 -0
  580. package/build/module/Tabs/useIndexStore.js.map +1 -0
  581. package/build/module/Tabs/useScrollViewReaction.js +57 -0
  582. package/build/module/Tabs/useScrollViewReaction.js.map +1 -0
  583. package/build/module/Tabs/useTabCoordinates.js +21 -0
  584. package/build/module/Tabs/useTabCoordinates.js.map +1 -0
  585. package/build/module/Tabs/utils.js +9 -0
  586. package/build/module/Tabs/utils.js.map +1 -0
  587. package/build/module/TextField/InputLabel.js +10 -7
  588. package/build/module/TextField/InputLabel.js.map +1 -1
  589. package/build/module/TextField/OutlinedTextField.js +1 -2
  590. package/build/module/TextField/OutlinedTextField.js.map +1 -1
  591. package/build/module/TextField/TextField.js.map +1 -1
  592. package/build/module/TextField/TextFieldProps.js.map +1 -1
  593. package/build/module/TextField/index.js.map +1 -1
  594. package/build/module/TextField/utils.js.map +1 -1
  595. package/build/module/Toolbar/Toolbar.js +1 -1
  596. package/build/module/Toolbar/Toolbar.js.map +1 -1
  597. package/build/module/Toolbar/ToolbarProps.js.map +1 -1
  598. package/build/module/Toolbar/index.js.map +1 -1
  599. package/build/module/Tooltip/Tooltip.js +17 -17
  600. package/build/module/Tooltip/Tooltip.js.map +1 -1
  601. package/build/module/Tooltip/TooltipProps.js.map +1 -1
  602. package/build/module/Tooltip/UpArrow.js +6 -5
  603. package/build/module/Tooltip/UpArrow.js.map +1 -1
  604. package/build/module/Tooltip/UpArrowProps.js.map +1 -1
  605. package/build/module/Tooltip/index.js.map +1 -1
  606. package/build/module/Typography/Typography.js.map +1 -1
  607. package/build/module/Typography/TypographyProps.js.map +1 -1
  608. package/build/module/Typography/index.js.map +1 -1
  609. package/build/module/animated/AnimatedAppBar.js.map +1 -1
  610. package/build/module/animated/AnimatedFlatList.js.map +1 -1
  611. package/build/module/animated/AnimatedPressable.js +2 -3
  612. package/build/module/animated/AnimatedPressable.js.map +1 -1
  613. package/build/module/animated/AnimatedTypography.js.map +1 -1
  614. package/build/module/animated/index.js.map +1 -1
  615. package/build/module/hooks/index.js +2 -0
  616. package/build/module/hooks/index.js.map +1 -1
  617. package/build/module/hooks/useAppbarStyles.js.map +1 -1
  618. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  619. package/build/module/hooks/useCollapsibleAppBar.js +60 -51
  620. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  621. package/build/module/hooks/useContentContainerStyle.js +2 -1
  622. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  623. package/build/module/hooks/useElevationStyle.js.map +1 -1
  624. package/build/module/hooks/useFadeInAppBar.js +48 -28
  625. package/build/module/hooks/useFadeInAppBar.js.map +1 -1
  626. package/build/module/hooks/useImperativeState.js +17 -0
  627. package/build/module/hooks/useImperativeState.js.map +1 -0
  628. package/build/module/hooks/useSyncAnimatedValue.js +27 -0
  629. package/build/module/hooks/useSyncAnimatedValue.js.map +1 -0
  630. package/build/module/hooks/useThrottle.js +4 -4
  631. package/build/module/hooks/useThrottle.js.map +1 -1
  632. package/build/module/hooks/useValidWindowDimensions/index.ios.js +15 -9
  633. package/build/module/hooks/useValidWindowDimensions/index.ios.js.map +1 -1
  634. package/build/module/hooks/useValidWindowDimensions/index.js.map +1 -1
  635. package/build/module/index.js +1 -0
  636. package/build/module/index.js.map +1 -1
  637. package/build/module/internal/hooks/index.js +0 -1
  638. package/build/module/internal/hooks/index.js.map +1 -1
  639. package/build/module/internal/hooks/useHeight.js +6 -5
  640. package/build/module/internal/hooks/useHeight.js.map +1 -1
  641. package/build/module/internal/icons/Checkbox.js.map +1 -1
  642. package/build/module/internal/icons/CheckboxChecked.js +3 -8
  643. package/build/module/internal/icons/CheckboxChecked.js.map +1 -1
  644. package/build/module/internal/icons/ChevronDown.js.map +1 -1
  645. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  646. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  647. package/build/module/internal/icons/CircularProgress.js.map +1 -1
  648. package/build/module/internal/icons/Close.js.map +1 -1
  649. package/build/module/internal/icons/Radio.js.map +1 -1
  650. package/build/module/internal/icons/RadioChecked.js.map +1 -1
  651. package/build/module/internal/icons/index.js.map +1 -1
  652. package/build/module/internal/index.js.map +1 -1
  653. package/build/module/store/MockStore.js +14 -0
  654. package/build/module/store/MockStore.js.map +1 -0
  655. package/build/module/store/SimpleStore.js +44 -0
  656. package/build/module/store/SimpleStore.js.map +1 -0
  657. package/build/module/store/index.js +3 -0
  658. package/build/module/store/index.js.map +1 -0
  659. package/build/module/store/types.js +2 -0
  660. package/build/module/store/types.js.map +1 -0
  661. package/build/module/styles/EdgeInsets.js +9 -6
  662. package/build/module/styles/EdgeInsets.js.map +1 -1
  663. package/build/module/styles/PredefinedStyles.js.map +1 -1
  664. package/build/module/styles/StyleSheet.js.map +1 -1
  665. package/build/module/styles/ThemeProvider.js.map +1 -1
  666. package/build/module/styles/createFontStyle.js +2 -2
  667. package/build/module/styles/createFontStyle.js.map +1 -1
  668. package/build/module/styles/index.js.map +1 -1
  669. package/build/module/styles/styled.js.map +1 -1
  670. package/build/module/styles/useTheme.js.map +1 -1
  671. package/build/module/types/index.js.map +1 -1
  672. package/build/module/utils/cloneElementSafely.js +3 -1
  673. package/build/module/utils/cloneElementSafely.js.map +1 -1
  674. package/build/module/utils/createSvgIcon.js.map +1 -1
  675. package/build/module/utils/index.js.map +1 -1
  676. package/build/typescript/Accordion/Accordion.d.ts +0 -1
  677. package/build/typescript/AppBar/AppBarProps.d.ts +1 -1
  678. package/build/typescript/AspectRatio/AspectRatioNative.d.ts +0 -1
  679. package/build/typescript/AspectRatio/AspectRatioWeb.d.ts +0 -1
  680. package/build/typescript/Avatar/Avatar.d.ts +0 -1
  681. package/build/typescript/Badge/Badge.d.ts +0 -1
  682. package/build/typescript/Button/Button.d.ts +0 -1
  683. package/build/typescript/ButtonBase/ButtonBase.d.ts +0 -1
  684. package/build/typescript/Card/Card.d.ts +0 -1
  685. package/build/typescript/CardActions/CardActions.d.ts +0 -1
  686. package/build/typescript/CardContent/CardContent.d.ts +0 -1
  687. package/build/typescript/CardMedia/CardMedia.d.ts +0 -1
  688. package/build/typescript/Checkbox/Checkbox.d.ts +0 -1
  689. package/build/typescript/Chip/Chip.d.ts +0 -1
  690. package/build/typescript/Chip/ChipProps.d.ts +4 -0
  691. package/build/typescript/CircularProgress/CircularProgress.d.ts +1 -2
  692. package/build/typescript/Column/Column.d.ts +0 -1
  693. package/build/typescript/Dialog/Dialog.d.ts +0 -1
  694. package/build/typescript/DialogActions/DialogActions.d.ts +0 -1
  695. package/build/typescript/DialogContent/DialogContent.d.ts +0 -1
  696. package/build/typescript/DialogMedia/DialogMedia.d.ts +0 -1
  697. package/build/typescript/DialogTitle/DialogTitle.d.ts +0 -1
  698. package/build/typescript/Divider/Divider.d.ts +0 -1
  699. package/build/typescript/Fab/Fab.d.ts +0 -1
  700. package/build/typescript/Flexbox/Flexbox.d.ts +0 -1
  701. package/build/typescript/IconButton/IconButton.d.ts +0 -1
  702. package/build/typescript/Image/Image.d.ts +0 -1
  703. package/build/typescript/ImageCore/ImageCoreNative.d.ts +0 -1
  704. package/build/typescript/ImageCore/ImageCoreWeb.d.ts +0 -1
  705. package/build/typescript/Link/Link.d.ts +0 -1
  706. package/build/typescript/List/List.d.ts +0 -1
  707. package/build/typescript/ListItem/ListItem.d.ts +0 -1
  708. package/build/typescript/ListItemIcon/ListItemIcon.d.ts +0 -1
  709. package/build/typescript/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +0 -1
  710. package/build/typescript/ListItemText/ListItemText.d.ts +0 -1
  711. package/build/typescript/ListSubheader/ListSubheader.d.ts +0 -1
  712. package/build/typescript/Menu/Menu.d.ts +0 -1
  713. package/build/typescript/MenuItem/MenuItem.d.ts +0 -1
  714. package/build/typescript/Modal/Modal.d.ts +0 -1
  715. package/build/typescript/Pagination/Pagination.d.ts +0 -1
  716. package/build/typescript/Paper/PaperProps.d.ts +5 -0
  717. package/build/typescript/Paper/PaperStylesProvider.d.ts +7 -0
  718. package/build/typescript/Paper/usePaperStyles.d.ts +1 -0
  719. package/build/typescript/Portal/Portal.d.ts +0 -1
  720. package/build/typescript/Radio/Radio.d.ts +0 -1
  721. package/build/typescript/RadioGroup/RadioGroup.d.ts +0 -1
  722. package/build/typescript/Row/Row.d.ts +0 -1
  723. package/build/typescript/Slide/Slide.d.ts +0 -1
  724. package/build/typescript/Slider/Slider.d.ts +1 -1
  725. package/build/typescript/Snackbar/Snackbar.d.ts +0 -1
  726. package/build/typescript/SnackbarContent/SnackbarContent.d.ts +0 -1
  727. package/build/typescript/Spacer/Spacer.d.ts +0 -1
  728. package/build/typescript/SvgIcon/SvgIcon.d.ts +0 -1
  729. package/build/typescript/SvgIcon/SvgIconProps.d.ts +1 -1
  730. package/build/typescript/Switch/Switch.d.ts +0 -1
  731. package/build/typescript/Tab/Tab.d.ts +0 -1
  732. package/build/typescript/TabBase/TabBase.d.ts +0 -1
  733. package/build/typescript/Tabs/IndexAwareTab.d.ts +8 -0
  734. package/build/typescript/Tabs/InternalContext.d.ts +7 -0
  735. package/build/typescript/Tabs/ScrollableTabsView.d.ts +7 -0
  736. package/build/typescript/Tabs/TabIndicator.d.ts +0 -1
  737. package/build/typescript/Tabs/TabIndicatorProps.d.ts +4 -5
  738. package/build/typescript/Tabs/Tabs.d.ts +4 -2
  739. package/build/typescript/Tabs/TabsProps.d.ts +12 -12
  740. package/build/typescript/Tabs/index.d.ts +1 -0
  741. package/build/typescript/Tabs/types.d.ts +9 -0
  742. package/build/typescript/Tabs/useIndexStore.d.ts +3 -0
  743. package/build/typescript/Tabs/useScrollViewReaction.d.ts +8 -0
  744. package/build/typescript/Tabs/useTabCoordinates.d.ts +6 -0
  745. package/build/typescript/Tabs/utils.d.ts +3 -0
  746. package/build/typescript/TextField/InputLabel.d.ts +0 -1
  747. package/build/typescript/Toolbar/Toolbar.d.ts +0 -1
  748. package/build/typescript/Tooltip/Tooltip.d.ts +0 -1
  749. package/build/typescript/animated/AnimatedPressable.d.ts +2 -2
  750. package/build/typescript/hooks/index.d.ts +2 -0
  751. package/build/typescript/hooks/useCollapsibleAppBar.d.ts +0 -1
  752. package/build/typescript/hooks/useFadeInAppBar.d.ts +3 -4
  753. package/build/typescript/hooks/useImperativeState.d.ts +6 -0
  754. package/build/typescript/hooks/useSyncAnimatedValue.d.ts +6 -0
  755. package/build/typescript/hooks/useValidWindowDimensions/index.ios.d.ts +2 -1
  756. package/build/typescript/index.d.ts +1 -0
  757. package/build/typescript/internal/hooks/index.d.ts +0 -1
  758. package/build/typescript/internal/icons/Checkbox.d.ts +18 -4
  759. package/build/typescript/internal/icons/CheckboxChecked.d.ts +18 -4
  760. package/build/typescript/internal/icons/ChevronDown.d.ts +18 -4
  761. package/build/typescript/internal/icons/ChevronLeft.d.ts +18 -4
  762. package/build/typescript/internal/icons/ChevronRight.d.ts +18 -4
  763. package/build/typescript/internal/icons/CircularProgress.d.ts +0 -1
  764. package/build/typescript/internal/icons/Close.d.ts +18 -4
  765. package/build/typescript/internal/icons/Radio.d.ts +18 -4
  766. package/build/typescript/internal/icons/RadioChecked.d.ts +18 -4
  767. package/build/typescript/store/MockStore.d.ts +6 -0
  768. package/build/typescript/store/SimpleStore.d.ts +9 -0
  769. package/build/typescript/store/index.d.ts +3 -0
  770. package/build/typescript/store/types.d.ts +8 -0
  771. package/build/typescript/types/index.d.ts +6 -0
  772. package/package.json +5 -5
  773. package/src/Accordion/Accordion.tsx +8 -6
  774. package/src/AppBar/AppBar.tsx +13 -21
  775. package/src/AppBar/AppBarProps.ts +1 -1
  776. package/src/Button/Button.tsx +1 -1
  777. package/src/ButtonBase/ButtonBase.tsx +69 -42
  778. package/src/Chip/Chip.tsx +3 -1
  779. package/src/Chip/ChipProps.ts +5 -0
  780. package/src/CircularProgress/CircularProgress.tsx +36 -27
  781. package/src/Fab/Fab.tsx +1 -1
  782. package/src/ImageCore/ImageCoreNative.tsx +17 -18
  783. package/src/Paper/Paper.tsx +14 -8
  784. package/src/Paper/PaperProps.ts +6 -0
  785. package/src/Paper/PaperStylesProvider.tsx +9 -0
  786. package/src/Paper/usePaperStyles.ts +6 -0
  787. package/src/Slide/Slide.tsx +22 -19
  788. package/src/SvgIcon/SvgIcon.tsx +1 -2
  789. package/src/SvgIcon/SvgIconProps.ts +1 -1
  790. package/src/Tab/Tab.tsx +5 -5
  791. package/src/Tabs/IndexAwareTab.tsx +29 -0
  792. package/src/Tabs/InternalContext.ts +13 -0
  793. package/src/Tabs/ScrollableTabsView.tsx +28 -0
  794. package/src/Tabs/TabIndicator.tsx +48 -24
  795. package/src/Tabs/TabIndicatorProps.ts +4 -5
  796. package/src/Tabs/Tabs.tsx +90 -97
  797. package/src/Tabs/TabsProps.ts +15 -23
  798. package/src/Tabs/index.ts +2 -1
  799. package/src/Tabs/types.ts +18 -0
  800. package/src/Tabs/useIndexStore.ts +31 -0
  801. package/src/Tabs/useScrollViewReaction.ts +62 -0
  802. package/src/Tabs/useTabCoordinates.ts +25 -0
  803. package/src/Tabs/utils.ts +14 -0
  804. package/src/TextField/InputLabel.tsx +12 -5
  805. package/src/TextField/OutlinedTextField.tsx +1 -1
  806. package/src/Tooltip/Tooltip.tsx +19 -18
  807. package/src/animated/AnimatedPressable.tsx +1 -2
  808. package/src/hooks/index.ts +2 -0
  809. package/src/hooks/useCollapsibleAppBar.ts +58 -43
  810. package/src/hooks/useFadeInAppBar.ts +44 -30
  811. package/src/hooks/useImperativeState.ts +24 -0
  812. package/src/hooks/useSyncAnimatedValue.ts +37 -0
  813. package/src/hooks/useThrottle.ts +3 -3
  814. package/src/hooks/useValidWindowDimensions/index.ios.ts +16 -10
  815. package/src/index.ts +2 -0
  816. package/src/internal/hooks/index.ts +0 -1
  817. package/src/internal/hooks/useHeight.ts +4 -4
  818. package/src/internal/icons/CheckboxChecked.tsx +3 -11
  819. package/src/store/MockStore.ts +17 -0
  820. package/src/store/SimpleStore.ts +43 -0
  821. package/src/store/index.ts +3 -0
  822. package/src/store/types.ts +9 -0
  823. package/src/types/index.ts +7 -0
  824. package/src/utils/cloneElementSafely.ts +1 -1
  825. package/build/commonjs/ButtonBase/ButtonBase.ios.js +0 -99
  826. package/build/commonjs/ButtonBase/ButtonBase.ios.js.map +0 -1
  827. package/build/commonjs/ButtonBase/useDisabledReaction/index.js +0 -23
  828. package/build/commonjs/ButtonBase/useDisabledReaction/index.js.map +0 -1
  829. package/build/commonjs/ButtonBase/useDisabledReaction/index.native.js +0 -9
  830. package/build/commonjs/ButtonBase/useDisabledReaction/index.native.js.map +0 -1
  831. package/build/commonjs/ImageCore/ImageCoreNative.ios.js +0 -60
  832. package/build/commonjs/ImageCore/ImageCoreNative.ios.js.map +0 -1
  833. package/build/commonjs/internal/hooks/useWidth.js +0 -29
  834. package/build/commonjs/internal/hooks/useWidth.js.map +0 -1
  835. package/build/module/ButtonBase/ButtonBase.ios.js +0 -80
  836. package/build/module/ButtonBase/ButtonBase.ios.js.map +0 -1
  837. package/build/module/ButtonBase/useDisabledReaction/index.js +0 -12
  838. package/build/module/ButtonBase/useDisabledReaction/index.js.map +0 -1
  839. package/build/module/ButtonBase/useDisabledReaction/index.native.js +0 -2
  840. package/build/module/ButtonBase/useDisabledReaction/index.native.js.map +0 -1
  841. package/build/module/ImageCore/ImageCoreNative.ios.js +0 -45
  842. package/build/module/ImageCore/ImageCoreNative.ios.js.map +0 -1
  843. package/build/module/internal/hooks/useWidth.js +0 -15
  844. package/build/module/internal/hooks/useWidth.js.map +0 -1
  845. package/build/typescript/ButtonBase/ButtonBase.ios.d.ts +0 -3
  846. package/build/typescript/ButtonBase/useDisabledReaction/index.d.ts +0 -2
  847. package/build/typescript/ButtonBase/useDisabledReaction/index.native.d.ts +0 -2
  848. package/build/typescript/ImageCore/ImageCoreNative.ios.d.ts +0 -3
  849. package/build/typescript/internal/hooks/useWidth.d.ts +0 -2
  850. package/src/ButtonBase/ButtonBase.ios.tsx +0 -95
  851. package/src/ButtonBase/useDisabledReaction/index.native.ts +0 -4
  852. package/src/ButtonBase/useDisabledReaction/index.ts +0 -15
  853. package/src/ImageCore/ImageCoreNative.ios.tsx +0 -46
  854. package/src/internal/hooks/useWidth.ts +0 -17
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import Column from '../Column';
@@ -1 +1 @@
1
- {"version":3,"sources":["ListItemText.tsx"],"names":["React","Column","Typography","css","useTheme","useStyles","theme","root","flexGrow","flexShrink","multiline","marginBottom","spacing","ListItemText","props","primary","secondary","style","otherProps","styles","isMultiline","undefined"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;;AAKA,MAAMC,SAAwC,GAAG,YAAgC;AAC7E,QAAMC,KAAK,GAAGF,QAAQ,EAAtB;AAEA,SAAO;AACHG,IAAAA,IAAI,EAAE;AACFC,MAAAA,QAAQ,EAAE,CADR;AAEFC,MAAAA,UAAU,EAAE;AAFV,KADH;AAKHC,IAAAA,SAAS,EAAE;AACPC,MAAAA,YAAY,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd;AADP;AALR,GAAP;AASH,CAZD;;AAcA,eAAe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;AAC3D,QAAM;AACFC,IAAAA,OADE;AAEFC,IAAAA,SAFE;AAGFC,IAAAA,KAHE;AAIF,OAAGC;AAJD,MAKFJ,KALJ;AAOA,QAAMK,MAAM,GAAGd,SAAS,EAAxB;AAEA,QAAMe,WAAW,GAAG,CAAC,EAAEL,OAAO,IAAIC,SAAb,CAArB;AAEA,sBACI,oBAAC,MAAD;AACI,IAAA,KAAK,EAAEb,GAAG,CAAC,CACPgB,MAAM,CAACZ,IADA,EAEPU,KAFO,CAAD;AADd,KAKQC,UALR,GAOKH,OAAO,gBACJ,oBAAC,UAAD;AACI,IAAA,QAAQ,EAAEA,OADd;AAEI,IAAA,KAAK,EAAE,aAFX;AAGI,IAAA,OAAO,EAAE,OAHb;AAII,IAAA,KAAK,EAAEK,WAAW,GAAGD,MAAM,CAACT,SAAV,GAAsBW;AAJ5C,IADI,GAOJ,IAdR,EAgBKL,SAAS,gBACN,oBAAC,UAAD;AACI,IAAA,QAAQ,EAAEA,SADd;AAEI,IAAA,KAAK,EAAE,eAFX;AAGI,IAAA,OAAO,EAAE;AAHb,IADM,GAMN,IAtBR,CADJ;AA0BH;AAAA","sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport Typography from '../Typography';\nimport { css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root' | 'multiline'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n multiline: {\n marginBottom: theme.spacing(1),\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n primary,\n secondary,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const isMultiline = !!(primary && secondary);\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n {primary ? (\n <Typography\n children={primary}\n color={'textPrimary'}\n variant={'body1'}\n style={isMultiline ? styles.multiline : undefined}\n />\n ) : null}\n\n {secondary ? (\n <Typography\n children={secondary}\n color={'textSecondary'}\n variant={'body2'}\n />\n ) : null}\n </Column>\n );\n};\n"]}
1
+ {"version":3,"names":["React","Column","Typography","css","useTheme","useStyles","theme","root","flexGrow","flexShrink","multiline","marginBottom","spacing","ListItemText","props","primary","secondary","style","otherProps","styles","isMultiline","undefined"],"sources":["ListItemText.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport Typography from '../Typography';\nimport { css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root' | 'multiline'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n multiline: {\n marginBottom: theme.spacing(1),\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n primary,\n secondary,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const isMultiline = !!(primary && secondary);\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n {primary ? (\n <Typography\n children={primary}\n color={'textPrimary'}\n variant={'body1'}\n style={isMultiline ? styles.multiline : undefined}\n />\n ) : null}\n\n {secondary ? (\n <Typography\n children={secondary}\n color={'textSecondary'}\n variant={'body2'}\n />\n ) : null}\n </Column>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAEA,OAAOC,MAAP,MAAmB,WAAnB;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;;AAKA,MAAMC,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAGF,QAAQ,EAAtB;EAEA,OAAO;IACHG,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE;IAFV,CADH;IAKHC,SAAS,EAAE;MACPC,YAAY,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd;IADP;EALR,CAAP;AASH,CAZD;;AAcA,eAAe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,OADE;IAEFC,SAFE;IAGFC,KAHE;IAIF,GAAGC;EAJD,IAKFJ,KALJ;EAOA,MAAMK,MAAM,GAAGd,SAAS,EAAxB;EAEA,MAAMe,WAAW,GAAG,CAAC,EAAEL,OAAO,IAAIC,SAAb,CAArB;EAEA,oBACI,oBAAC,MAAD;IACI,KAAK,EAAEb,GAAG,CAAC,CACPgB,MAAM,CAACZ,IADA,EAEPU,KAFO,CAAD;EADd,GAKQC,UALR,GAOKH,OAAO,gBACJ,oBAAC,UAAD;IACI,QAAQ,EAAEA,OADd;IAEI,KAAK,EAAE,aAFX;IAGI,OAAO,EAAE,OAHb;IAII,KAAK,EAAEK,WAAW,GAAGD,MAAM,CAACT,SAAV,GAAsBW;EAJ5C,EADI,GAOJ,IAdR,EAgBKL,SAAS,gBACN,oBAAC,UAAD;IACI,QAAQ,EAAEA,SADd;IAEI,KAAK,EAAE,eAFX;IAGI,OAAO,EAAE;EAHb,EADM,GAMN,IAtBR,CADJ;AA0BH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListItemTextProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\ntype BaseProps = Omit<ColumnProps, 'children'>;\n\nexport default interface ListItemTextProps extends OverridableComponentProps<BaseProps, {\n /**\n * The main content element.\n */\n primary?: TypographyProps['children'];\n\n /**\n * The secondary content element.\n */\n secondary?: TypographyProps['children'];\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,gBAAxB","sourcesContent":["export { default } from './ListItemText';\nexport type { default as ListItemTextProps } from './ListItemTextProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './ListItemText';\nexport type { default as ListItemTextProps } from './ListItemTextProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,gBAAxB"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { Platform } from 'react-native';
@@ -1 +1 @@
1
- {"version":3,"sources":["ListSubheader.tsx"],"names":["React","Platform","Row","Typography","EdgeInsets","ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","OS","undefined","horizontal"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,QAAyB,cAAzB;AACA,OAAOC,GAAP,MAAgB,QAAhB;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,UAAT,QAA2B,WAA3B;AAGA,eAAe,SAASC,aAAT,CAAuBC,KAAvB,EAAkD;AAC7D,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,iBAAiB,GAAG,KAFlB;AAGF,OAAGC;AAHD,MAIFH,KAJJ;AAMA,QAAMI,iBAAiB,GAAGT,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;AAEA,sBACI,oBAAC,GAAD,CACI;AADJ;AAEI,IAAA,iBAAiB,EAAEF,iBAFvB;AAGI,IAAA,MAAM,EAAEN,UAAU,CAACS,UAAX,CAAsB,CAAtB;AAHZ,KAIQJ,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,oBAAC,UAAD;AACI,IAAA,QAAQ,EAAEA,QADd;AAEI,IAAA,KAAK,EAAE,eAFX;AAGI,IAAA,OAAO,EAAE;AAHb,IATR,CADJ;AAkBH;AAAA","sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'textSecondary'}\n variant={'caption1'}\n />\n )}\n </Row>\n );\n};\n"]}
1
+ {"version":3,"names":["React","Platform","Row","Typography","EdgeInsets","ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","OS","undefined","horizontal"],"sources":["ListSubheader.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'textSecondary'}\n variant={'caption1'}\n />\n )}\n </Row>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,QAAT,QAAyB,cAAzB;AACA,OAAOC,GAAP,MAAgB,QAAhB;AACA,OAAOC,UAAP,MAAuB,eAAvB;AACA,SAASC,UAAT,QAA2B,WAA3B;AAGA,eAAe,SAASC,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,iBAAiB,GAAG,KAFlB;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGT,QAAQ,CAACU,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;EAEA,oBACI,oBAAC,GAAD,CACI;EADJ;IAEI,iBAAiB,EAAEF,iBAFvB;IAGI,MAAM,EAAEN,UAAU,CAACS,UAAX,CAAsB,CAAtB;EAHZ,GAIQJ,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,oBAAC,UAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAE,eAFX;IAGI,OAAO,EAAE;EAHb,EATR,CADJ;AAkBH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListSubheaderProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\nimport type { RowProps } from '../Row';\n\nexport default interface ListSubheaderProps extends OverridableComponentProps<RowProps, {\n /**\n * The content of the component.\n */\n children?: TypographyProps['children'];\n\n /**\n * If `true`, the children won't be wrapped by a typography component.\n * @default false\n */\n disableTypography?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,iBAAxB","sourcesContent":["export { default } from './ListSubheader';\nexport type { default as ListSubheaderProps } from './ListSubheaderProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './ListSubheader';\nexport type { default as ListSubheaderProps } from './ListSubheaderProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,iBAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Menu.tsx"],"names":["React","Menu","props","children","onClose","visible","otherProps"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAgC;AAC3C,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,OAFE;AAGFC,IAAAA,OAAO,GAAG,KAHR;AAIF,OAAGC;AAJD,MAKFJ,KALJ;AAOA,sBACI,gCADJ;AAGH;AAAA","sourcesContent":["import React from 'react';\nimport type MenuProps from './MenuProps';\n\nexport default function Menu(props: MenuProps) {\n const {\n children,\n onClose,\n visible = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"]}
1
+ {"version":3,"names":["React","Menu","props","children","onClose","visible","otherProps"],"sources":["Menu.tsx"],"sourcesContent":["import React from 'react';\nimport type MenuProps from './MenuProps';\n\nexport default function Menu(props: MenuProps) {\n const {\n children,\n onClose,\n visible = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,eAAe,SAASC,IAAT,CAAcC,KAAd,EAAgC;EAC3C,MAAM;IACFC,QADE;IAEFC,OAFE;IAGFC,OAAO,GAAG,KAHR;IAIF,GAAGC;EAJD,IAKFJ,KALJ;EAOA,oBACI,gCADJ;AAGH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["MenuProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ComponentProps } from '../types';\n\nexport default interface MenuProps extends ComponentProps<{\n /**\n * Menu contents, normally `MenuItem`s.\n */\n children?: React.ReactNode;\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose?: () => void,\n\n /**\n * If `true`, the menu is shown.\n */\n visible: boolean,\n}> {}"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,QAAxB","sourcesContent":["export { default } from './Menu';\nexport type { default as MenuProps } from './MenuProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './Menu';\nexport type { default as MenuProps } from './MenuProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,QAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuItem.tsx"],"names":["React","MenuItem","props","children","disabled","onPress","selected","otherProps"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,eAAe,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;AACnD,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,QAAQ,GAAG,KAFT;AAGFC,IAAAA,OAHE;AAIFC,IAAAA,QAAQ,GAAG,KAJT;AAKF,OAAGC;AALD,MAMFL,KANJ;AAQA,sBACI,gCADJ;AAGH;AAAA","sourcesContent":["import React from 'react';\nimport type MenuItemProps from './MenuItemProps';\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"]}
1
+ {"version":3,"names":["React","MenuItem","props","children","disabled","onPress","selected","otherProps"],"sources":["MenuItem.tsx"],"sourcesContent":["import React from 'react';\nimport type MenuItemProps from './MenuItemProps';\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAGA,eAAe,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,QADE;IAEFC,QAAQ,GAAG,KAFT;IAGFC,OAHE;IAIFC,QAAQ,GAAG,KAJT;IAKF,GAAGC;EALD,IAMFL,KANJ;EAQA,oBACI,gCADJ;AAGH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["MenuItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ComponentProps } from '../types';\n\nexport default interface MenuItemProps extends ComponentProps<{\n /**\n * Menu item contents.\n */\n children?: React.ReactNode;\n\n /**\n * If `true`, the menu item is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Callback fired when the component is pressed.\n */\n onPress?: () => void;\n\n /**\n * If `true`, the menu item is selected.\n * @default false\n */\n selected?: boolean;\n}> {}"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,YAAxB","sourcesContent":["export { default } from './MenuItem';\nexport type { default as MenuItemProps } from './MenuItemProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './MenuItem';\nexport type { default as MenuItemProps } from './MenuItemProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,YAAxB"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { View } from 'react-native';
@@ -1 +1 @@
1
- {"version":3,"sources":["Modal.tsx"],"names":["React","View","css","StyleSheet","useElevationStyle","Slide","SimpleBackdrop","createModalCloseEvent","reason","metadata","Modal","props","animationStyle","backdropOpacity","children","disableAnimation","hideBackdrop","onClose","style","visible","otherProps","handleBackdropPress","exited","setExited","useState","elevationStyle","absoluteFill"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,GAAT,EAAcC,UAAd,QAAgC,WAAhC;AACA,SAASC,iBAAT,QAAkC,UAAlC;AACA,OAAOC,KAAP,MAAkB,UAAlB;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AAWA,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AAMA,SAAS,CAAC,IAAD,CAJ7B;AAKI,IAAA,KAAK,EAAEX;AALX,KAOKE,QAPL,CADH,GAUGA,QAzBR,CADJ;AA6BH;AAAA","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport Slide from '../Slide';\nimport SimpleBackdrop from './SimpleBackdrop';\nimport type ModalProps from './ModalProps';\n\nexport type ModalCloseReasonType = 'OUTSIDE_PRESS' | 'HARDWARE_BACK_PRESS' | 'CLOSE_BUTTON_PRESS' | 'UNKNOWN';\n\nexport interface ModalCloseEvent {\n metadata: {\n reason: ModalCloseReasonType\n };\n}\n\nexport const createModalCloseEvent = (reason: ModalCloseReasonType) => ({\n metadata: {\n reason,\n },\n});\n\nexport default function Modal(props: ModalProps) {\n const {\n animationStyle,\n backdropOpacity = 0.5,\n children,\n disableAnimation = false,\n hideBackdrop = false,\n onClose,\n style,\n visible,\n ...otherProps\n } = props;\n\n const handleBackdropPress = () => {\n if (onClose) {\n onClose(createModalCloseEvent('OUTSIDE_PRESS'));\n }\n };\n\n const [exited, setExited] = React.useState(true);\n\n const elevationStyle = useElevationStyle(6);\n\n if (!visible) {\n if (disableAnimation || exited) {\n return null;\n }\n }\n\n return (\n <View\n style={css([\n StyleSheet.absoluteFill,\n elevationStyle,\n style,\n ])}\n {...otherProps}\n >\n {(hideBackdrop || !visible) ? null : (\n <SimpleBackdrop\n onPress={handleBackdropPress}\n opacity={backdropOpacity}\n />\n )}\n\n {!disableAnimation ? (\n <Slide\n appear={visible}\n exitDuration={150}\n onEnter={() => setExited(false)}\n onExited={() => setExited(true)}\n style={animationStyle}\n >\n {children}\n </Slide>\n ) : children}\n </View>\n );\n};\n"]}
1
+ {"version":3,"names":["React","View","css","StyleSheet","useElevationStyle","Slide","SimpleBackdrop","createModalCloseEvent","reason","metadata","Modal","props","animationStyle","backdropOpacity","children","disableAnimation","hideBackdrop","onClose","style","visible","otherProps","handleBackdropPress","exited","setExited","useState","elevationStyle","absoluteFill"],"sources":["Modal.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport Slide from '../Slide';\nimport SimpleBackdrop from './SimpleBackdrop';\nimport type ModalProps from './ModalProps';\n\nexport type ModalCloseReasonType = 'OUTSIDE_PRESS' | 'HARDWARE_BACK_PRESS' | 'CLOSE_BUTTON_PRESS' | 'UNKNOWN';\n\nexport interface ModalCloseEvent {\n metadata: {\n reason: ModalCloseReasonType\n };\n}\n\nexport const createModalCloseEvent = (reason: ModalCloseReasonType) => ({\n metadata: {\n reason,\n },\n});\n\nexport default function Modal(props: ModalProps) {\n const {\n animationStyle,\n backdropOpacity = 0.5,\n children,\n disableAnimation = false,\n hideBackdrop = false,\n onClose,\n style,\n visible,\n ...otherProps\n } = props;\n\n const handleBackdropPress = () => {\n if (onClose) {\n onClose(createModalCloseEvent('OUTSIDE_PRESS'));\n }\n };\n\n const [exited, setExited] = React.useState(true);\n\n const elevationStyle = useElevationStyle(6);\n\n if (!visible) {\n if (disableAnimation || exited) {\n return null;\n }\n }\n\n return (\n <View\n style={css([\n StyleSheet.absoluteFill,\n elevationStyle,\n style,\n ])}\n {...otherProps}\n >\n {(hideBackdrop || !visible) ? null : (\n <SimpleBackdrop\n onPress={handleBackdropPress}\n opacity={backdropOpacity}\n />\n )}\n\n {!disableAnimation ? (\n <Slide\n appear={visible}\n exitDuration={150}\n onEnter={() => setExited(false)}\n onExited={() => setExited(true)}\n style={animationStyle}\n >\n {children}\n </Slide>\n ) : children}\n </View>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,GAAT,EAAcC,UAAd,QAAgC,WAAhC;AACA,SAASC,iBAAT,QAAkC,UAAlC;AACA,OAAOC,KAAP,MAAkB,UAAlB;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AA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+1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ModalProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { ComponentProps, OverridableComponentProps } from '../types';\nimport { ModalCloseEvent } from './Modal';\n\nexport default interface ModalProps extends OverridableComponentProps<ViewProps, {\n /**\n * Style object provided to animation component.\n */\n animationStyle?: ComponentProps['style'];\n\n /**\n * Opacity for backdrop.\n * @default 0.5\n */\n backdropOpacity?: number;\n\n /**\n * A single child content element.\n */\n children: React.ReactElement;\n\n /**\n * If `true`, the animation is disabled.\n * @default false\n */\n disableAnimation?: boolean;\n\n /**\n * If `true`, the backdrop is not rendered.\n * @default false\n */\n hideBackdrop?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose?: (event?: ModalCloseEvent) => void,\n\n /**\n * If `true`, the modal is visible.\n */\n visible: boolean;\n}> {}\n"],"mappings":""}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { Pressable } from 'react-native';
@@ -1 +1 @@
1
- {"version":3,"sources":["SimpleBackdrop.tsx"],"names":["React","Pressable","css","StyleSheet","useStyles","opacity","root","absoluteFillObject","backgroundColor","invisible","SimpleBackdrop","forwardRef","props","ref","style","otherProps","styles","undefined"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAAgC,cAAhC;AAEA,SAASC,GAAT,EAAcC,UAAd,QAAgC,WAAhC;;AAKA,MAAMC,SAAoD,GAAG,UAAUC,OAAV,EAAiD;AAC1G,SAAO;AACHC,IAAAA,IAAI,EAAE,EACF,GAAGH,UAAU,CAACI,kBADZ;AAEFC,MAAAA,eAAe,EAAG,iBAAgBH,OAAQ;AAFxC,KADH;AAKHI,IAAAA,SAAS,EAAE;AACPD,MAAAA,eAAe,EAAE;AADV;AALR,GAAP;AASH,CAVD;;AAYA,MAAME,cAAc,gBAAGV,KAAK,CAACW,UAAN,CAA4C,SAASD,cAAT,CAAwBE,KAAxB,EAA+BC,GAA/B,EAAoC;AACnG,QAAM;AACFJ,IAAAA,SAAS,GAAG,KADV;AAEFJ,IAAAA,OAAO,GAAG,GAFR;AAGFS,IAAAA,KAHE;AAIF,OAAGC;AAJD,MAKFH,KALJ;AAOA,QAAMI,MAAM,GAAGZ,SAAS,CAACC,OAAD,CAAxB;AAEA,sBACI,oBAAC,SAAD;AACI,IAAA,GAAG,EAAEQ,GADT;AAEI,IAAA,KAAK,EAAEX,GAAG,CAAC,CACPc,MAAM,CAACV,IADA,EAEPG,SAAS,GAAGO,MAAM,CAACP,SAAV,GAAsBQ,SAFxB,EAGPH,KAHO,CAAD;AAFd,KAOQC,UAPR,EADJ;AAWH,CArBsB,CAAvB;AAuBA,eAAeL,cAAf","sourcesContent":["import React from 'react';\nimport { Pressable, View } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { css, StyleSheet } from '../styles';\nimport type SimpleBackdropProps from './SimpleBackdropProps';\n\ntype SimpleBackdropStyles = NamedStylesStringUnion<'root' | 'invisible'>;\n\nconst useStyles: (opacity: number) => SimpleBackdropStyles = function (opacity: number): SimpleBackdropStyles {\n return {\n root: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: `rgba(0, 0, 0, ${opacity})`,\n },\n invisible: {\n backgroundColor: 'transparent',\n },\n };\n};\n\nconst SimpleBackdrop = React.forwardRef<View, SimpleBackdropProps>(function SimpleBackdrop(props, ref) {\n const {\n invisible = false,\n opacity = 0.5,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles(opacity);\n\n return (\n <Pressable\n ref={ref}\n style={css([\n styles.root,\n invisible ? styles.invisible : undefined,\n style,\n ])}\n {...otherProps}\n />\n );\n});\n\nexport default SimpleBackdrop;\n"]}
1
+ {"version":3,"names":["React","Pressable","css","StyleSheet","useStyles","opacity","root","absoluteFillObject","backgroundColor","invisible","SimpleBackdrop","forwardRef","props","ref","style","otherProps","styles","undefined"],"sources":["SimpleBackdrop.tsx"],"sourcesContent":["import React from 'react';\nimport { Pressable, View } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { css, StyleSheet } from '../styles';\nimport type SimpleBackdropProps from './SimpleBackdropProps';\n\ntype SimpleBackdropStyles = NamedStylesStringUnion<'root' | 'invisible'>;\n\nconst useStyles: (opacity: number) => SimpleBackdropStyles = function (opacity: number): SimpleBackdropStyles {\n return {\n root: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: `rgba(0, 0, 0, ${opacity})`,\n },\n invisible: {\n backgroundColor: 'transparent',\n },\n };\n};\n\nconst SimpleBackdrop = React.forwardRef<View, SimpleBackdropProps>(function SimpleBackdrop(props, ref) {\n const {\n invisible = false,\n opacity = 0.5,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles(opacity);\n\n return (\n <Pressable\n ref={ref}\n style={css([\n styles.root,\n invisible ? styles.invisible : undefined,\n style,\n ])}\n {...otherProps}\n />\n );\n});\n\nexport default SimpleBackdrop;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,SAAT,QAAgC,cAAhC;AAEA,SAASC,GAAT,EAAcC,UAAd,QAAgC,WAAhC;;AAKA,MAAMC,SAAoD,GAAG,UAAUC,OAAV,EAAiD;EAC1G,OAAO;IACHC,IAAI,EAAE,EACF,GAAGH,UAAU,CAACI,kBADZ;MAEFC,eAAe,EAAG,iBAAgBH,OAAQ;IAFxC,CADH;IAKHI,SAAS,EAAE;MACPD,eAAe,EAAE;IADV;EALR,CAAP;AASH,CAVD;;AAYA,MAAME,cAAc,gBAAGV,KAAK,CAACW,UAAN,CAA4C,SAASD,cAAT,CAAwBE,KAAxB,EAA+BC,GAA/B,EAAoC;EACnG,MAAM;IACFJ,SAAS,GAAG,KADV;IAEFJ,OAAO,GAAG,GAFR;IAGFS,KAHE;IAIF,GAAGC;EAJD,IAKFH,KALJ;EAOA,MAAMI,MAAM,GAAGZ,SAAS,CAACC,OAAD,CAAxB;EAEA,oBACI,oBAAC,SAAD;IACI,GAAG,EAAEQ,GADT;IAEI,KAAK,EAAEX,GAAG,CAAC,CACPc,MAAM,CAACV,IADA,EAEPG,SAAS,GAAGO,MAAM,CAACP,SAAV,GAAsBQ,SAFxB,EAGPH,KAHO,CAAD;EAFd,GAOQC,UAPR,EADJ;AAWH,CArBsB,CAAvB;AAuBA,eAAeL,cAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["SimpleBackdropProps.ts"],"sourcesContent":["import type { OverridableComponentProps } from '../types';\nimport type { PressableProps } from '../Pressable';\n\nexport default interface SimpleBackdropProps extends OverridableComponentProps<PressableProps, {\n /**\n * If `true`, the modal is visible.\n * @default false\n */\n invisible?: boolean;\n\n /**\n * Opacity to backgroundColor.\n * @default 0.5\n */\n opacity?: number;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default","createModalCloseEvent"],"mappings":"AAAA,SAASA,OAAT,EAAkBC,qBAAlB,QAA+C,SAA/C","sourcesContent":["export { default, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport type { default as ModalProps } from './ModalProps';\n"]}
1
+ {"version":3,"names":["default","createModalCloseEvent"],"sources":["index.ts"],"sourcesContent":["export { default, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport type { default as ModalProps } from './ModalProps';\n"],"mappings":"AAAA,SAASA,OAAT,EAAkBC,qBAAlB,QAA+C,SAA/C"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { View } from 'react-native';
@@ -57,12 +57,15 @@ export default function Pagination(props) {
57
57
  infinite = false,
58
58
  onChange,
59
59
  page,
60
- renderItem = ({
61
- index,
62
- ...rest
63
- }) => /*#__PURE__*/React.createElement(PaginationItem, _extends({
64
- key: `${index}`
65
- }, rest)),
60
+ renderItem = _ref => {
61
+ let {
62
+ index,
63
+ ...rest
64
+ } = _ref;
65
+ return /*#__PURE__*/React.createElement(PaginationItem, _extends({
66
+ key: `${index}`
67
+ }, rest));
68
+ },
66
69
  style,
67
70
  ...otherProps
68
71
  } = props;
@@ -1 +1 @@
1
- {"version":3,"sources":["Pagination.tsx"],"names":["React","View","times","ChevronLeft","ChevronRight","css","useTheme","IconButton","PaginationItem","useStyles","theme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","i","selected","containerProps"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,S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B,OAAGC;AANgB,GAAvB;;AASA,MAAIb,QAAJ,EAAc;AACV,wBACI,oBAAC,IAAD,EAAU0B,cAAV,eACI,oBAAC,IAAD;AAAM,MAAA,KAAK,EAAEtD,GAAG,CAAC0C,MAAM,CAAC3B,cAAR;AAAhB,OACKa,QADL,EAEKsB,UAFL,EAGKC,UAHL,CADJ,eAOI,oBAAC,IAAD;AAAM,MAAA,KAAK,EAAEnD,GAAG,CAAC0C,MAAM,CAAC/B,KAAR;AAAhB,OACKA,KADL,CAPJ,CADJ;AAaH;;AAED,sBACI,oBAAC,IAAD,EAAU2C,cAAV,EACKJ,UADL,EAEKvC,KAFL,EAGKwC,UAHL,CADJ;AAOH;AAAA","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem';\nimport type PaginationProps from './PaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n children={<ChevronLeft/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n size={'small'}\n style={children ? styles.prevAnchor : styles.prevInline}\n />\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n children={<ChevronRight/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n size={'small'}\n style={children ? styles.nextAnchor : styles.nextInline}\n />\n ) : null;\n\n const items = !hideIndicator ? (\n times(i => renderItem({ index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"]}
1
+ {"version":3,"names":["React","View","times","ChevronLeft","ChevronRight","css","useTheme","IconButton","PaginationItem","useStyles","theme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","i","selected","containerProps"],"sources":["Pagination.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem';\nimport type PaginationProps from './PaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n children={<ChevronLeft/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n size={'small'}\n style={children ? styles.prevAnchor : styles.prevInline}\n />\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n children={<ChevronRight/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n size={'small'}\n style={children ? styles.nextAnchor : styles.nextInline}\n />\n ) : null;\n\n const items = !hideIndicator ? (\n times(i => renderItem({ index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SAASC,KAAT,Q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EAEKvC,KAFL,EAGKwC,UAHL,CADJ;AAOH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PaginationProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport interface PaginationRenderItemParams {\n /**\n * Index of the pagination item.\n */\n index: number;\n\n /**\n * If `true`, the pagination item is disabled.\n */\n disabled: boolean;\n\n /**\n * If `true` the pagination item is selected.\n */\n selected: boolean;\n}\n\nexport default interface PaginationProps extends OverridableComponentProps<ViewProps, {\n /**\n * The Number of pages that change when the button is pressed\n * @default 1\n */\n bundleSize?: number,\n\n /**\n * The pagination will be added relative to this node.\n */\n children?: React.ReactNode;\n\n /**\n * The total number of pages.\n */\n count: number,\n\n /**\n * If `true`, the pagination is disabled.\n * @default false\n */\n disabled?: boolean;\n\n\n /**\n * If `true`, hide the page indicator.\n * @default false\n */\n hideIndicator?: boolean,\n\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton?: boolean,\n\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton?: boolean,\n\n /**\n * If `true`, pagination is infinite.\n * @default false\n */\n infinite?: boolean,\n\n /**\n * Callback fired when the page is changed.\n */\n onChange?: (page: number) => void,\n\n /**\n * The current page number.\n */\n page: number;\n\n /**\n * Render the item.\n * @default (item) => <PaginationItem {...item} />\n */\n renderItem?: (params: PaginationRenderItemParams) => React.ReactNode;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB","sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,cAAxB"}
@@ -1,4 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { View } from 'react-native';
@@ -1 +1 @@
1
- {"version":3,"sources":["PaginationItem.tsx"],"names":["React","View","css","useTheme","useStyles","theme","size","root","width","height","borderRadius","marginHorizontal","spacing","selected","backgroundColor","palette","secondary","main","unselected","PaginationItem","props","disabled","style","otherProps","styles","memo"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;;AAKA,MAAMC,SAA0C,GAAG,YAAkC;AACjF,QAAMC,KAAK,GAAGF,QAAQ,EAAtB;AAEA,QAAMG,IAAI,GAAG,CAAb;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,KAAK,EAAEF,IADL;AAEFG,MAAAA,MAAM,EAAEH,IAFN;AAGFI,MAAAA,YAAY,EAAEJ,IAAI,GAAG,GAHnB;AAIFK,MAAAA,gBAAgB,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;AAJhB,KADH;AAOHC,IAAAA,QAAQ,EAAE;AACNC,MAAAA,eAAe,EAAET,KAAK,CAACU,OAAN,CAAcC,SAAd,CAAwBC;AADnC,KAPP;AAUHC,IAAAA,UAAU,EAAE;AACRJ,MAAAA,eAAe,EAAE;AADT;AAVT,GAAP;AAcH,CAnBD;;AAqBA,SAASK,cAAT,CAAwBC,KAAxB,EAAoD;AAChD,QAAM;AACFC,IAAAA,QADE;AAEFR,IAAAA,QAFE;AAGFS,IAAAA,KAHE;AAIF,OAAGC;AAJD,MAKFH,KALJ;AAOA,QAAMI,MAAM,GAAGpB,SAAS,EAAxB;AAEA,sBACI,oBAAC,IAAD;AACI,IAAA,KAAK,EAAEF,GAAG,CAAC,CACPsB,MAAM,CAACjB,IADA,EAEPM,QAAQ,GAAGW,MAAM,CAACX,QAAV,GAAqBW,MAAM,CAACN,UAF7B,EAGPI,KAHO,CAAD;AADd,KAMQC,UANR,EADJ;AAUH;;AAED,4BAAevB,KAAK,CAACyB,IAAN,CAAWN,cAAX,CAAf","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\ntype PaginationItemStyles = NamedStylesStringUnion<'root' | 'selected' | 'unselected'>;\n\nconst useStyles: UseStyles<PaginationItemStyles> = function (): PaginationItemStyles {\n const theme = useTheme();\n\n const size = 6;\n\n return {\n root: {\n width: size,\n height: size,\n borderRadius: size * 0.5,\n marginHorizontal: theme.spacing(1),\n },\n selected: {\n backgroundColor: theme.palette.secondary.main,\n },\n unselected: {\n backgroundColor: '#D1D1D1',\n },\n };\n};\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n disabled,\n selected,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n selected ? styles.selected : styles.unselected,\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"]}
1
+ {"version":3,"names":["React","View","css","useTheme","useStyles","theme","size","root","width","height","borderRadius","marginHorizontal","spacing","selected","backgroundColor","palette","secondary","main","unselected","PaginationItem","props","disabled","style","otherProps","styles","memo"],"sources":["PaginationItem.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\ntype PaginationItemStyles = NamedStylesStringUnion<'root' | 'selected' | 'unselected'>;\n\nconst useStyles: UseStyles<PaginationItemStyles> = function (): PaginationItemStyles {\n const theme = useTheme();\n\n const size = 6;\n\n return {\n root: {\n width: size,\n height: size,\n borderRadius: size * 0.5,\n marginHorizontal: theme.spacing(1),\n },\n selected: {\n backgroundColor: theme.palette.secondary.main,\n },\n unselected: {\n backgroundColor: '#D1D1D1',\n },\n };\n};\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n disabled,\n selected,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n selected ? styles.selected : styles.unselected,\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AAEA,SAASC,GAAT,EAAcC,QAAd,QAA8B,WAA9B;;AAKA,MAAMC,SAA0C,GAAG,YAAkC;EACjF,MAAMC,KAAK,GAAGF,QAAQ,EAAtB;EAEA,MAAMG,IAAI,GAAG,CAAb;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,KAAK,EAAEF,IADL;MAEFG,MAAM,EAAEH,IAFN;MAGFI,YAAY,EAAEJ,IAAI,GAAG,GAHnB;MAIFK,gBAAgB,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;IAJhB,CADH;IAOHC,QAAQ,EAAE;MACNC,eAAe,EAAET,KAAK,CAACU,OAAN,CAAcC,SAAd,CAAwBC;IADnC,CAPP;IAUHC,UAAU,EAAE;MACRJ,eAAe,EAAE;IADT;EAVT,CAAP;AAcH,CAnBD;;AAqBA,SAASK,cAAT,CAAwBC,KAAxB,EAAoD;EAChD,MAAM;IACFC,QADE;IAEFR,QAFE;IAGFS,KAHE;IAIF,GAAGC;EAJD,IAKFH,KALJ;EAOA,MAAMI,MAAM,GAAGpB,SAAS,EAAxB;EAEA,oBACI,oBAAC,IAAD;IACI,KAAK,EAAEF,GAAG,CAAC,CACPsB,MAAM,CAACjB,IADA,EAEPM,QAAQ,GAAGW,MAAM,CAACX,QAAV,GAAqBW,MAAM,CAACN,UAF7B,EAGPI,KAHO,CAAD;EADd,GAMQC,UANR,EADJ;AAUH;;AAED,4BAAevB,KAAK,CAACyB,IAAN,CAAWN,cAAX,CAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PaginationItemProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {\n /**\n * If `true`, the pagination item is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * If `true` the pagination item is selected.\n * @default false\n */\n selected?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,kBAAxB","sourcesContent":["export { default } from './PaginationItem';\nexport type { default as PaginationItemProps } from './PaginationItemProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './PaginationItem';\nexport type { default as PaginationItemProps } from './PaginationItemProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,kBAAxB"}
@@ -1,12 +1,14 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import React from 'react';
4
4
  import { View } from 'react-native';
5
5
  import { css, StyleSheet, useTheme } from '../styles';
6
6
  import { useElevationStyle } from '../hooks';
7
+ import PaperStylesProvider from './PaperStylesProvider';
7
8
  const Paper = /*#__PURE__*/React.forwardRef(function Paper(props, ref) {
8
9
  const {
9
10
  color = 'default',
11
+ colorValue,
10
12
  elevation = 1,
11
13
  style: styleProp,
12
14
  square = false,
@@ -14,8 +16,9 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(props, ref) {
14
16
  ...otherProps
15
17
  } = props;
16
18
  const theme = useTheme();
19
+ const backgroundColor = colorValue ?? theme.palette.paper[color];
17
20
  const rootStyle = {
18
- backgroundColor: theme.palette.paper[color]
21
+ backgroundColor
19
22
  };
20
23
  const roundedStyle = {
21
24
  borderRadius: theme.shape.roundness
@@ -27,10 +30,14 @@ const Paper = /*#__PURE__*/React.forwardRef(function Paper(props, ref) {
27
30
  borderColor: theme.palette.divider
28
31
  };
29
32
  const style = css([rootStyle, variant === 'elevation' ? elevationStyle : outlinedStyle, !square ? roundedStyle : undefined, styleProp]);
30
- return /*#__PURE__*/React.createElement(View, _extends({
33
+ return /*#__PURE__*/React.createElement(PaperStylesProvider, {
34
+ value: {
35
+ backgroundColor
36
+ }
37
+ }, /*#__PURE__*/React.createElement(View, _extends({
31
38
  ref: ref,
32
39
  style: style
33
- }, otherProps));
40
+ }, otherProps)));
34
41
  });
35
42
  export default Paper;
36
43
  //# sourceMappingURL=Paper.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["Paper.tsx"],"names":["React","View","css","StyleSheet","useTheme","useElevationStyle","Paper","forwardRef","props","ref","color","elevation","style","styleProp","square","variant","otherProps","theme","rootStyle","backgroundColor","palette","paper","roundedStyle","borderRadius","shape","roundness","elevationStyle","outlinedStyle","borderWidth","hairlineWidth","borderStyle","borderColor","divider","undefined"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA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port { css, StyleSheet, useTheme } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport type PaperProps from './PaperProps';\n\nconst Paper = React.forwardRef<View, PaperProps>(function Paper(props, ref) {\n const {\n color = 'default',\n elevation = 1,\n style: styleProp,\n square = false,\n variant = 'elevation',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const rootStyle = {\n backgroundColor: theme.palette.paper[color],\n };\n\n const roundedStyle = {\n borderRadius: theme.shape.roundness,\n };\n\n const elevationStyle = useElevationStyle(elevation);\n\n const outlinedStyle = {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.divider,\n };\n\n const style = css([\n rootStyle,\n variant === 'elevation' ? elevationStyle : outlinedStyle,\n !square ? roundedStyle : undefined,\n styleProp,\n ]);\n\n return (\n <View\n ref={ref}\n style={style}\n {...otherProps}\n />\n );\n});\n\nexport default Paper;\n"]}
1
+ {"version":3,"names":["React","View","css","StyleSheet","useTheme","useElevationStyle","PaperStylesProvider","Paper","forwardRef","props","ref","color","colorValue","elevation","style","styleProp","square","variant","otherProps","theme","backgroundColor","palette","paper","rootStyle","roundedStyle","borderRadius","shape","roundness","elevationStyle","outlinedStyle","borderWidth","hairlineWidth","borderStyle","borderColor","divider","undefined"],"sources":["Paper.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport type PaperProps from './PaperProps';\nimport PaperStylesProvider from './PaperStylesProvider';\n\nconst Paper = React.forwardRef<View, PaperProps>(function Paper(props, ref) {\n const {\n color = 'default',\n colorValue,\n elevation = 1,\n style: styleProp,\n square = false,\n variant = 'elevation',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const backgroundColor = colorValue ?? theme.palette.paper[color];\n\n const rootStyle = { backgroundColor };\n\n const roundedStyle = {\n borderRadius: theme.shape.roundness,\n };\n\n const elevationStyle = useElevationStyle(elevation);\n\n const outlinedStyle = {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.divider,\n };\n\n const style = css([\n rootStyle,\n variant === 'elevation' ? elevationStyle : outlinedStyle,\n !square ? roundedStyle : undefined,\n styleProp,\n ]);\n\n return (\n <PaperStylesProvider\n value={{ backgroundColor }}\n >\n <View\n ref={ref}\n style={style}\n {...otherProps}\n />\n </PaperStylesProvider>\n );\n});\n\nexport default Paper;\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,SAASC,IAAT,QAAqB,cAArB;AACA,SAASC,GAAT,EAAcC,UAAd,EAA0BC,QAA1B,QAA0C,WAA1C;AACA,SAASC,iBAAT,QAAkC,UAAlC;AAEA,OAAOC,mBAAP,MAAgC,uBAAhC;AAEA,MAAMC,KAAK,gBAAGP,KAAK,CAACQ,UAAN,CAAmC,SAASD,KAAT,CAAeE,KAAf,EAAsBC,GAAtB,EAA2B;EACxE,MAAM;IACFC,KAAK,GAAG,SADN;IAEFC,UAFE;IAGFC,SAAS,GAAG,CAHV;IAIFC,KAAK,EAAEC,SAJL;IAKFC,MAAM,GAAG,KALP;IAMFC,OAAO,GAAG,WANR;IAOF,GAAGC;EAPD,IAQFT,KARJ;EAUA,MAAMU,KAAK,GAAGf,QAAQ,EAAtB;EAEA,MAAMgB,eAAe,GAAGR,UAAU,IAAIO,KAAK,CAACE,OAAN,CAAcC,KAAd,CAAoBX,KAApB,CAAtC;EAEA,MAAMY,SAAS,GAAG;IAAEH;EAAF,CAAlB;EAEA,MAAMI,YAAY,GAAG;IACjBC,YAAY,EAAEN,KAAK,CAACO,KAAN,CAAYC;EADT,CAArB;EAIA,MAAMC,cAAc,GAAGvB,iBAAiB,CAACQ,SAAD,CAAxC;EAEA,MAAMgB,aAAa,GAAG;IAClBC,WAAW,EAAE3B,UAAU,CAAC4B,aADN;IAElBC,WAAW,EAAE,OAFK;IAGlBC,WAAW,EAAEd,KAAK,CAACE,OAAN,CAAca;EAHT,CAAtB;EAMA,MAAMpB,KAAK,GAAGZ,GAAG,CAAC,CACdqB,SADc,EAEdN,OAAO,KAAK,WAAZ,GAA0BW,cAA1B,GAA2CC,aAF7B,EAGd,CAACb,MAAD,GAAUQ,YAAV,GAAyBW,SAHX,EAIdpB,SAJc,CAAD,CAAjB;EAOA,oBACI,oBAAC,mBAAD;IACI,KAAK,EAAE;MAAEK;IAAF;EADX,gBAGI,oBAAC,IAAD;IACI,GAAG,EAAEV,GADT;IAEI,KAAK,EAAEI;EAFX,GAGQI,UAHR,EAHJ,CADJ;AAWH,CA/Ca,CAAd;AAiDA,eAAeX,KAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PaperProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { Elevation } from '@fountain-ui/styles';\nimport type { OverridableComponentProps } from '../types';\n\nexport type PaperColor = 'default' | 'grey';\n\nexport type PaperVariant = 'elevation' | 'outlined';\n\nexport default interface PaperProps extends OverridableComponentProps<ViewProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The color of Paper.\n * @default 'default'\n */\n color?: PaperColor;\n\n /**\n * The hex color value of Paper.\n * It has higher priority than `color` prop.\n */\n colorValue?: string;\n\n /**\n * Shadow depth, corresponds to `dp` in the spec.\n * It accepts values between 0 and 24 inclusive.\n * @default 1\n */\n elevation?: Elevation;\n\n /**\n * If `true`, rounded corners are disabled.\n * @default false\n */\n square?: boolean;\n\n /**\n * The variant to use.\n * @default 'elevation'\n */\n variant?: PaperVariant;\n}> {}\n"],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { createContext } from 'react';
2
+ export const PaperStylesContext = /*#__PURE__*/createContext(null);
3
+ export default PaperStylesContext.Provider;
4
+ //# sourceMappingURL=PaperStylesProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createContext","PaperStylesContext","Provider"],"sources":["PaperStylesProvider.tsx"],"sourcesContent":["import { createContext } from 'react';\n\nexport type PaperStyles = {\n backgroundColor: string;\n}\n\nexport const PaperStylesContext = createContext<PaperStyles | null>(null);\n\nexport default PaperStylesContext.Provider;\n"],"mappings":"AAAA,SAASA,aAAT,QAA8B,OAA9B;AAMA,OAAO,MAAMC,kBAAkB,gBAAGD,aAAa,CAAqB,IAArB,CAAxC;AAEP,eAAeC,kBAAkB,CAACC,QAAlC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,SAAxB","sourcesContent":["export { default } from './Paper';\nexport type { default as PaperProps } from './PaperProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './Paper';\nexport type { default as PaperProps } from './PaperProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,SAAxB"}
@@ -0,0 +1,7 @@
1
+ import { useContext } from 'react';
2
+ import { PaperStylesContext } from './PaperStylesProvider';
3
+ export default function usePaperStyles() {
4
+ return useContext(PaperStylesContext);
5
+ }
6
+ ;
7
+ //# sourceMappingURL=usePaperStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["useContext","PaperStylesContext","usePaperStyles"],"sources":["usePaperStyles.ts"],"sourcesContent":["import { useContext } from 'react';\nimport { PaperStylesContext } from './PaperStylesProvider';\n\nexport default function usePaperStyles() {\n return useContext(PaperStylesContext);\n};\n"],"mappings":"AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,kBAAT,QAAmC,uBAAnC;AAEA,eAAe,SAASC,cAAT,GAA0B;EACrC,OAAOF,UAAU,CAACC,kBAAD,CAAjB;AACH;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Portal.tsx"],"names":["React","PortalConsumer","PortalHost","PortalContext","Portal","props","children","manager","Host"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AACA,OAAOC,UAAP,IAAqBC,aAArB,QAA0C,cAA1C;;AAGA,SAASC,MAAT,CAAgBC,KAAhB,EAAoC;AAChC,QAAM;AAAEC,IAAAA;AAAF,MAAeD,KAArB;AAEA,sBACI,oBAAC,aAAD,CAAe,QAAf,QACME,OAAD,iBACG,oBAAC,cAAD;AAAgB,IAAA,OAAO,EAAEA;AAAzB,KACKD,QADL,CAFR,CADJ;AASH;;AAEDF,MAAM,CAACI,IAAP,GAAcN,UAAd;AAEA,eAAeE,MAAf","sourcesContent":["import React from 'react';\nimport PortalConsumer from './PortalConsumer';\nimport PortalHost, { PortalContext } from './PortalHost';\nimport type PortalProps from './PortalProps';\n\nfunction Portal(props: PortalProps) {\n const { children } = props;\n\n return (\n <PortalContext.Consumer>\n {(manager) => (\n <PortalConsumer manager={manager}>\n {children}\n </PortalConsumer>\n )}\n </PortalContext.Consumer>\n );\n}\n\nPortal.Host = PortalHost;\n\nexport default Portal;"]}
1
+ {"version":3,"names":["React","PortalConsumer","PortalHost","PortalContext","Portal","props","children","manager","Host"],"sources":["Portal.tsx"],"sourcesContent":["import React from 'react';\nimport PortalConsumer from './PortalConsumer';\nimport PortalHost, { PortalContext } from './PortalHost';\nimport type PortalProps from './PortalProps';\n\nfunction Portal(props: PortalProps) {\n const { children } = props;\n\n return (\n <PortalContext.Consumer>\n {(manager) => (\n <PortalConsumer manager={manager}>\n {children}\n </PortalConsumer>\n )}\n </PortalContext.Consumer>\n );\n}\n\nPortal.Host = PortalHost;\n\nexport default Portal;"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,cAAP,MAA2B,kBAA3B;AACA,OAAOC,UAAP,IAAqBC,aAArB,QAA0C,cAA1C;;AAGA,SAASC,MAAT,CAAgBC,KAAhB,EAAoC;EAChC,MAAM;IAAEC;EAAF,IAAeD,KAArB;EAEA,oBACI,oBAAC,aAAD,CAAe,QAAf,QACME,OAAD,iBACG,oBAAC,cAAD;IAAgB,OAAO,EAAEA;EAAzB,GACKD,QADL,CAFR,CADJ;AASH;;AAEDF,MAAM,CAACI,IAAP,GAAcN,UAAd;AAEA,eAAeE,MAAf"}
@@ -2,8 +2,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
2
2
 
3
3
  import React from 'react';
4
4
  export default class PortalConsumer extends React.Component {
5
- constructor(...args) {
6
- super(...args);
5
+ constructor() {
6
+ super(...arguments);
7
7
 
8
8
  _defineProperty(this, "key", -1);
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["PortalConsumer.tsx"],"names":["React","PortalConsumer","Component","requireManagerOrFail","props","manager","Error","componentDidMount","Promise","resolve","key","mount","children","componentDidUpdate","update","componentWillUnmount","unmount","render"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAQA,eAAe,MAAMC,cAAN,SAA6BD,KAAK,CAACE,SAAnC,CAAkE;AAAA;AAAA;;AAAA,iCAEvD,CAAC,CAFsD;AAAA;;AAIrEC,EAAAA,oBAAoB,GAAG;AAC3B,QAAI,CAAC,KAAKC,KAAL,CAAWC,OAAhB,EAAyB;AACrB,YAAM,IAAIC,KAAJ,CACF,kFADE,CAAN;AAGH;AACJ;;AAEsB,QAAjBC,iBAAiB,GAAG;AACtB,SAAKJ,oBAAL,GADsB,CAGtB;;AACA,UAAMK,OAAO,CAACC,OAAR,EAAN;AAEA,SAAKC,GAAL,GAAW,KAAKN,KAAL,CAAWC,OAAX,CAAmBM,KAAnB,CAAyB,KAAKP,KAAL,CAAWQ,QAApC,CAAX;AACH;;AAEDC,EAAAA,kBAAkB,GAAG;AACjB,SAAKV,oBAAL;AAEA,SAAKC,KAAL,CAAWC,OAAX,CAAmBS,MAAnB,CAA0B,KAAKJ,GAA/B,EAAoC,KAAKN,KAAL,CAAWQ,QAA/C;AACH;;AAEDG,EAAAA,oBAAoB,GAAG;AACnB,SAAKZ,oBAAL;AAEA,SAAKC,KAAL,CAAWC,OAAX,CAAmBW,OAAnB,CAA2B,KAAKN,GAAhC;AACH;;AAEDO,EAAAA,MAAM,GAAG;AACL,WAAO,IAAP;AACH;;AAnC4E;AAqChF","sourcesContent":["import React from 'react';\nimport type { PortalMethods } from './PortalHost';\n\nexport interface PortalConsumerProps {\n manager: PortalMethods;\n children: React.ReactElement;\n}\n\nexport default class PortalConsumer extends React.Component<PortalConsumerProps> {\n\n private key: number = -1;\n\n private requireManagerOrFail() {\n if (!this.props.manager) {\n throw new Error(\n 'Looks like you forgot to wrap your root component with `Portal.Host` component`.',\n );\n }\n }\n\n async componentDidMount() {\n this.requireManagerOrFail();\n\n // Delay updating to prevent React from going to infinite loop\n await Promise.resolve();\n\n this.key = this.props.manager.mount(this.props.children);\n }\n\n componentDidUpdate() {\n this.requireManagerOrFail();\n\n this.props.manager.update(this.key, this.props.children);\n }\n\n componentWillUnmount() {\n this.requireManagerOrFail();\n\n this.props.manager.unmount(this.key);\n }\n\n render() {\n return null;\n }\n\n};\n"]}
1
+ {"version":3,"names":["React","PortalConsumer","Component","requireManagerOrFail","props","manager","Error","componentDidMount","Promise","resolve","key","mount","children","componentDidUpdate","update","componentWillUnmount","unmount","render"],"sources":["PortalConsumer.tsx"],"sourcesContent":["import React from 'react';\nimport type { PortalMethods } from './PortalHost';\n\nexport interface PortalConsumerProps {\n manager: PortalMethods;\n children: React.ReactElement;\n}\n\nexport default class PortalConsumer extends React.Component<PortalConsumerProps> {\n\n private key: number = -1;\n\n private requireManagerOrFail() {\n if (!this.props.manager) {\n throw new Error(\n 'Looks like you forgot to wrap your root component with `Portal.Host` component`.',\n );\n }\n }\n\n async componentDidMount() {\n this.requireManagerOrFail();\n\n // Delay updating to prevent React from going to infinite loop\n await Promise.resolve();\n\n this.key = this.props.manager.mount(this.props.children);\n }\n\n componentDidUpdate() {\n this.requireManagerOrFail();\n\n this.props.manager.update(this.key, this.props.children);\n }\n\n componentWillUnmount() {\n this.requireManagerOrFail();\n\n this.props.manager.unmount(this.key);\n }\n\n render() {\n return null;\n }\n\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAQA,eAAe,MAAMC,cAAN,SAA6BD,KAAK,CAACE,SAAnC,CAAkE;EAAA;IAAA;;IAAA,6BAEvD,CAAC,CAFsD;EAAA;;EAIrEC,oBAAoB,GAAG;IAC3B,IAAI,CAAC,KAAKC,KAAL,CAAWC,OAAhB,EAAyB;MACrB,MAAM,IAAIC,KAAJ,CACF,kFADE,CAAN;IAGH;EACJ;;EAEsB,MAAjBC,iBAAiB,GAAG;IACtB,KAAKJ,oBAAL,GADsB,CAGtB;;IACA,MAAMK,OAAO,CAACC,OAAR,EAAN;IAEA,KAAKC,GAAL,GAAW,KAAKN,KAAL,CAAWC,OAAX,CAAmBM,KAAnB,CAAyB,KAAKP,KAAL,CAAWQ,QAApC,CAAX;EACH;;EAEDC,kBAAkB,GAAG;IACjB,KAAKV,oBAAL;IAEA,KAAKC,KAAL,CAAWC,OAAX,CAAmBS,MAAnB,CAA0B,KAAKJ,GAA/B,EAAoC,KAAKN,KAAL,CAAWQ,QAA/C;EACH;;EAEDG,oBAAoB,GAAG;IACnB,KAAKZ,oBAAL;IAEA,KAAKC,KAAL,CAAWC,OAAX,CAAmBW,OAAnB,CAA2B,KAAKN,GAAhC;EACH;;EAEDO,MAAM,GAAG;IACL,OAAO,IAAP;EACH;;AAnC4E;AAqChF"}
@@ -4,8 +4,8 @@ import React from 'react';
4
4
  import PortalManager from './PortalManager';
5
5
  export const PortalContext = /*#__PURE__*/React.createContext(null);
6
6
  export default class PortalHost extends React.Component {
7
- constructor(...args) {
8
- super(...args);
7
+ constructor() {
8
+ super(...arguments);
9
9
 
10
10
  _defineProperty(this, "manager", void 0);
11
11
 
@@ -1 +1 @@
1
- {"version":3,"sources":["PortalHost.tsx"],"names":["React","PortalManager","PortalContext","createContext","PortalHost","Component","manager","children","key","nextKey","mount","queue","push","type","update","operation","index","findIndex","op","unmount","componentDidMount","length","action","pop","render","props","setManager"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,aAAP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;AAYH;;AArFoE;;gBAApDtB,U,iBAEI,a;;AAqFxB","sourcesContent":["import React from 'react';\nimport PortalManager from './PortalManager';\n\nexport interface PortalHostProps {\n children: React.ReactElement;\n}\n\nexport interface PortalMethods {\n mount: (children: React.ReactElement) => number;\n update: (key: number, children: React.ReactElement) => void;\n unmount: (key: number) => void;\n}\n\nexport type Operation =\n | { type: 'mount'; key: number; children: React.ReactElement }\n | { type: 'update'; key: number; children: React.ReactElement }\n | { type: 'unmount'; key: number };\n\nexport const PortalContext = React.createContext<PortalMethods>(null as any);\n\nexport default class PortalHost extends React.Component<PortalHostProps> {\n\n static displayName = 'Portal.Host';\n\n private manager?: PortalManager | null;\n private queue: Operation[] = [];\n private nextKey = 0;\n\n private setManager = (manager?: PortalManager | null) => {\n this.manager = manager;\n };\n\n private mount = (children: React.ReactElement) => {\n const key = this.nextKey++;\n\n if (this.manager) {\n this.manager.mount(key, children);\n } else {\n this.queue.push({ type: 'mount', key, children });\n }\n\n return key;\n };\n\n private update = (key: number, children: React.ReactElement) => {\n if (this.manager) {\n this.manager.update(key, children);\n } else {\n const operation: Operation = { type: 'mount', key, children };\n\n const index = this.queue.findIndex(\n (op) => op.type === 'mount' || (op.type === 'update' && op.key === key),\n );\n\n if (index > -1) {\n this.queue[index] = operation;\n } else {\n this.queue.push(operation);\n }\n }\n };\n\n private unmount = (key: number) => {\n if (this.manager) {\n this.manager.unmount(key);\n } else {\n this.queue.push({ type: 'unmount', key });\n }\n };\n\n componentDidMount() {\n const manager = this.manager;\n const queue = this.queue;\n\n while (queue.length > 0 && manager) {\n const action = queue.pop();\n if (action) {\n switch (action.type) {\n case 'mount':\n manager.mount(action.key, action.children);\n break;\n case 'update':\n manager.update(action.key, action.children);\n break;\n case 'unmount':\n manager.unmount(action.key);\n break;\n }\n }\n }\n }\n\n render() {\n return (\n <PortalContext.Provider\n value={{\n mount: this.mount,\n update: this.update,\n unmount: this.unmount,\n }}\n >\n {this.props.children}\n <PortalManager ref={this.setManager}/>\n </PortalContext.Provider>\n );\n }\n\n};\n"]}
1
+ {"version":3,"names":["React","PortalManager","PortalContext","createContext","PortalHost","Component","manager","children","key","nextKey","mount","queue","push","type","update","operation","index","findIndex","op","unmount","componentDidMount","length","action","pop","render","props","setManager"],"sources":["PortalHost.tsx"],"sourcesContent":["import React from 'react';\nimport PortalManager from './PortalManager';\n\nexport interface PortalHostProps {\n children: React.ReactElement;\n}\n\nexport interface PortalMethods {\n mount: (children: React.ReactElement) => number;\n update: (key: number, children: React.ReactElement) => void;\n unmount: (key: number) => void;\n}\n\nexport type Operation =\n | { type: 'mount'; key: number; children: React.ReactElement }\n | { type: 'update'; key: number; children: React.ReactElement }\n | { type: 'unmount'; key: number };\n\nexport const PortalContext = React.createContext<PortalMethods>(null as any);\n\nexport default class PortalHost extends React.Component<PortalHostProps> {\n\n static displayName = 'Portal.Host';\n\n private manager?: PortalManager | null;\n private queue: Operation[] = [];\n private nextKey = 0;\n\n private setManager = (manager?: PortalManager | null) => {\n this.manager = manager;\n };\n\n private mount = (children: React.ReactElement) => {\n const key = this.nextKey++;\n\n if (this.manager) {\n this.manager.mount(key, children);\n } else {\n this.queue.push({ type: 'mount', key, children });\n }\n\n return key;\n };\n\n private update = (key: number, children: React.ReactElement) => {\n if (this.manager) {\n this.manager.update(key, children);\n } else {\n const operation: Operation = { type: 'mount', key, children };\n\n const index = this.queue.findIndex(\n (op) => op.type === 'mount' || (op.type === 'update' && op.key === key),\n );\n\n if (index > -1) {\n this.queue[index] = operation;\n } else {\n this.queue.push(operation);\n }\n }\n };\n\n private unmount = (key: number) => {\n if (this.manager) {\n this.manager.unmount(key);\n } else {\n this.queue.push({ type: 'unmount', key });\n }\n };\n\n componentDidMount() {\n const manager = this.manager;\n const queue = this.queue;\n\n while (queue.length > 0 && manager) {\n const action = queue.pop();\n if (action) {\n switch (action.type) {\n case 'mount':\n manager.mount(action.key, action.children);\n break;\n case 'update':\n manager.update(action.key, action.children);\n break;\n case 'unmount':\n manager.unmount(action.key);\n break;\n }\n }\n }\n }\n\n render() {\n return (\n <PortalContext.Provider\n value={{\n mount: this.mount,\n update: this.update,\n unmount: this.unmount,\n }}\n >\n {this.props.children}\n <PortalManager ref={this.setManager}/>\n </PortalContext.Provider>\n );\n }\n\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,aAAP,MAA0B,iBAA1B;AAiBA,OAAO,MAAMC,aAAa,gBAAGF,KAAK,CAACG,aAAN,CAAmC,IAAnC,CAAtB;AAEP,eAAe,MAAMC,UAAN,SAAyBJ,KAAK,CAACK,SAA/B,CAA0D;EAAA;IAAA;;IAAA;;IAAA,+BAKxC,EALwC;;IAAA,iCAMnD,CANmD;;IAAA,oCAQ/CC,OAAD,IAAoC;MACrD,KAAKA,OAAL,GAAeA,OAAf;IACH,CAVoE;;IAAA,+BAYpDC,QAAD,IAAkC;MAC9C,MAAMC,GAAG,GAAG,KAAKC,OAAL,EAAZ;;MAEA,IAAI,KAAKH,OAAT,EAAkB;QACd,KAAKA,OAAL,CAAaI,KAAb,CAAmBF,GAAnB,EAAwBD,QAAxB;MACH,CAFD,MAEO;QACH,KAAKI,KAAL,CAAWC,IAAX,CAAgB;UAAEC,IAAI,EAAE,OAAR;UAAiBL,GAAjB;UAAsBD;QAAtB,CAAhB;MACH;;MAED,OAAOC,GAAP;IACH,CAtBoE;;IAAA,gCAwBpD,CAACA,GAAD,EAAcD,QAAd,KAA+C;MAC5D,IAAI,KAAKD,OAAT,EAAkB;QACd,KAAKA,OAAL,CAAaQ,MAAb,CAAoBN,GAApB,EAAyBD,QAAzB;MACH,CAFD,MAEO;QACH,MAAMQ,SAAoB,GAAG;UAAEF,IAAI,EAAE,OAAR;UAAiBL,GAAjB;UAAsBD;QAAtB,CAA7B;QAEA,MAAMS,KAAK,GAAG,KAAKL,KAAL,CAAWM,SAAX,CACTC,EAAD,IAAQA,EAAE,CAACL,IAAH,KAAY,OAAZ,IAAwBK,EAAE,CAACL,IAAH,KA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,GAOK,KAAKM,KAAL,CAAWlB,QAPhB,eAQI,oBAAC,aAAD;MAAe,GAAG,EAAE,KAAKmB;IAAzB,EARJ,CADJ;EAYH;;AArFoE;;gBAApDtB,U,iBAEI,a;;AAqFxB"}
@@ -2,8 +2,8 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
2
2
 
3
3
  import React from 'react';
4
4
  export default class PortalManager extends React.PureComponent {
5
- constructor(...args) {
6
- super(...args);
5
+ constructor() {
6
+ super(...arguments);
7
7
 
8
8
  _defineProperty(this, "state", {
9
9
  portals: []
@@ -40,12 +40,15 @@ export default class PortalManager extends React.PureComponent {
40
40
  }
41
41
 
42
42
  render() {
43
- return this.state.portals.map(({
44
- key,
45
- children
46
- }) => /*#__PURE__*/React.cloneElement(children, {
47
- key
48
- }));
43
+ return this.state.portals.map(_ref => {
44
+ let {
45
+ key,
46
+ children
47
+ } = _ref;
48
+ return /*#__PURE__*/React.cloneElement(children, {
49
+ key
50
+ });
51
+ });
49
52
  }
50
53
 
51
54
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["PortalManager.tsx"],"names":["React","PortalManager","PureComponent","portals","key","children","setState","state","map","item","filter","render","cloneElement"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAWA,eAAe,MAAMC,aAAN,SAA4BD,KAAK,CAACE,aAAlC,CAAwE;AAAA;AAAA;;AAAA,mCAEvD;AACxBC,MAAAA,OAAO,EAAE;AADe,KAFuD;;AAAA,mCAM3E,CAACC,GAAD,EAAcC,QAAd,KAA+C;AACnD,WAAKC,QAAL,CAAeC,KAAD,KAAY;AACtBJ,QAAAA,OAAO,EAAE,CACL,GAAGI,KAAK,CAACJ,OADJ,EAEL;AAAEC,UAAAA,GAAF;AAAOC,UAAAA;AAAP,SAFK;AADa,OAAZ,CAAd;AAMH,KAbkF;;AAAA,oCAe1E,CAACD,GAAD,EAAcC,QAAd,KAA+C;AACpD,WAAKC,QAAL,CAAeC,KAAD,KAAY;AACtBJ,QAAAA,OAAO,EAAEI,KAAK,CAACJ,OAAN,CAAcK,GAAd,CAAmBC,IAAD,IAAU;AACjC,cAAIA,IAAI,CAACL,GAAL,KAAaA,GAAjB,EAAsB;AAClB,mBAAO,EAAE,GAAGK,IAAL;AAAWJ,cAAAA;AAAX,aAAP;AACH;;AACD,iBAAOI,IAAP;AACH,SALQ;AADa,OAAZ,CAAd;AAQH,KAxBkF;;AAAA,qCA0BxEL,GAAD,IAAiB;AACvB,WAAKE,QAAL,CAAeC,KAAD,KAAY;AACtBJ,QAAAA,OAAO,EAAEI,KAAK,CAACJ,OAAN,CAAcO,MAAd,CAAsBD,IAAD,IAAUA,IAAI,CAACL,GAAL,KAAaA,GAA5C;AADa,OAAZ,CAAd;AAGH,KA9BkF;AAAA;;AAgCnFO,EAAAA,MAAM,GAAG;AACL,WAAO,KAAKJ,KAAL,CAAWJ,OAAX,CAAmBK,GAAnB,CAAuB,CAAC;AAAEJ,MAAAA,GAAF;AAAOC,MAAAA;AAAP,KAAD,kBAAuBL,KAAK,CAACY,YAAN,CAAmBP,QAAnB,EAA6B;AAAED,MAAAA;AAAF,KAA7B,CAA9C,CAAP;AACH;;AAlCkF;AAoCtF","sourcesContent":["import React from 'react';\n\ninterface Portal {\n key: number;\n children: React.ReactElement;\n}\n\ninterface PortalManagerState {\n portals: ReadonlyArray<Portal>\n}\n\nexport default class PortalManager extends React.PureComponent<{}, PortalManagerState> {\n\n state: PortalManagerState = {\n portals: [],\n };\n\n mount = (key: number, children: React.ReactElement) => {\n this.setState((state) => ({\n portals: [\n ...state.portals,\n { key, children },\n ],\n }));\n };\n\n update = (key: number, children: React.ReactElement) => {\n this.setState((state) => ({\n portals: state.portals.map((item) => {\n if (item.key === key) {\n return { ...item, children };\n }\n return item;\n }),\n }));\n };\n\n unmount = (key: number) => {\n this.setState((state) => ({\n portals: state.portals.filter((item) => item.key !== key),\n }));\n };\n\n render() {\n return this.state.portals.map(({ key, children }) => React.cloneElement(children, { key }));\n }\n\n};\n"]}
1
+ {"version":3,"names":["React","PortalManager","PureComponent","portals","key","children","setState","state","map","item","filter","render","cloneElement"],"sources":["PortalManager.tsx"],"sourcesContent":["import React from 'react';\n\ninterface Portal {\n key: number;\n children: React.ReactElement;\n}\n\ninterface PortalManagerState {\n portals: ReadonlyArray<Portal>\n}\n\nexport default class PortalManager extends React.PureComponent<{}, PortalManagerState> {\n\n state: PortalManagerState = {\n portals: [],\n };\n\n mount = (key: number, children: React.ReactElement) => {\n this.setState((state) => ({\n portals: [\n ...state.portals,\n { key, children },\n ],\n }));\n };\n\n update = (key: number, children: React.ReactElement) => {\n this.setState((state) => ({\n portals: state.portals.map((item) => {\n if (item.key === key) {\n return { ...item, children };\n }\n return item;\n }),\n }));\n };\n\n unmount = (key: number) => {\n this.setState((state) => ({\n portals: state.portals.filter((item) => item.key !== key),\n }));\n };\n\n render() {\n return this.state.portals.map(({ key, children }) => React.cloneElement(children, { key }));\n }\n\n};\n"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AAWA,eAAe,MAAMC,aAAN,SAA4BD,KAAK,CAACE,aAAlC,CAAwE;EAAA;IAAA;;IAAA,+BAEvD;MACxBC,OAAO,EAAE;IADe,CAFuD;;IAAA,+BAM3E,CAACC,GAAD,EAAcC,QAAd,KAA+C;MACnD,KAAKC,QAAL,CAAeC,KAAD,KAAY;QACtBJ,OAAO,EAAE,CACL,GAAGI,KAAK,CAACJ,OADJ,EAEL;UAAEC,GAAF;UAAOC;QAAP,CAFK;MADa,CAAZ,CAAd;IAMH,CAbkF;;IAAA,gCAe1E,CAACD,GAAD,EAAcC,QAAd,KAA+C;MACpD,KAAKC,QAAL,CAAeC,KAAD,KAAY;QACtBJ,OAAO,EAAEI,KAAK,CAACJ,OAAN,CAAcK,GAAd,CAAmBC,IAAD,IAAU;UACjC,IAAIA,IAAI,CAACL,GAAL,KAAaA,GAAjB,EAAsB;YAClB,OAAO,EAAE,GAAGK,IAAL;cAAWJ;YAAX,CAAP;UACH;;UACD,OAAOI,IAAP;QACH,CALQ;MADa,CAAZ,CAAd;IAQH,CAxBkF;;IAAA,iCA0BxEL,GAAD,IAAiB;MACvB,KAAKE,QAAL,CAAeC,KAAD,KAAY;QACtBJ,OAAO,EAAEI,KAAK,CAACJ,OAAN,CAAcO,MAAd,CAAsBD,IAAD,IAAUA,IAAI,CAACL,GAAL,KAAaA,GAA5C;MADa,CAAZ,CAAd;IAGH,CA9BkF;EAAA;;EAgCnFO,MAAM,GAAG;IACL,OAAO,KAAKJ,KAAL,CAAWJ,OAAX,CAAmBK,GAAnB,CAAuB;MAAA,IAAC;QAAEJ,GAAF;QAAOC;MAAP,CAAD;MAAA,oBAAuBL,KAAK,CAACY,YAAN,CAAmBP,QAAnB,EAA6B;QAAED;MAAF,CAA7B,CAAvB;IAAA,CAAvB,CAAP;EACH;;AAlCkF;AAoCtF"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PortalProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ComponentProps } from '../types';\n\nexport default interface PortalProps extends ComponentProps<{\n /**\n * The children to render into the `container`.\n */\n children: React.ReactElement;\n}> {}"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,UAAxB","sourcesContent":["export { default } from './Portal';\nexport type { default as PortalProps } from './PortalProps';"]}
1
+ {"version":3,"names":["default"],"sources":["index.ts"],"sourcesContent":["export { default } from './Portal';\nexport type { default as PortalProps } from './PortalProps';"],"mappings":"AAAA,SAASA,OAAT,QAAwB,UAAxB"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.tsx"],"names":["Pressable","NativePressable"],"mappings":"AAKA,SAASA,SAAS,IAAIC,eAAtB,QAA6C,cAA7C;AAeA,MAAMD,SAA8C,GAAGC,eAAvD;AAEA,eAAeD,SAAf","sourcesContent":["import React from 'react';\nimport type {\n PressableProps as PressableBaseProps,\n PressableStateCallbackType as PressableStateCallbackBaseType,\n} from 'react-native';\nimport { Pressable as NativePressable } from 'react-native';\n\ninterface PressableStateCallbackType extends PressableStateCallbackBaseType {\n readonly hovered?: boolean;\n readonly focused?: boolean;\n}\n\nexport interface PressableProps extends PressableBaseProps {\n /**\n * Either children or a render prop that receives a boolean reflecting whether\n * the component is currently pressed.\n */\n children?: React.ReactNode | ((state: PressableStateCallbackType) => React.ReactNode);\n}\n\nconst Pressable: React.ComponentType<PressableProps> = NativePressable;\n\nexport default Pressable;\n"]}
1
+ {"version":3,"names":["Pressable","NativePressable"],"sources":["index.tsx"],"sourcesContent":["import React from 'react';\nimport type {\n PressableProps as PressableBaseProps,\n PressableStateCallbackType as PressableStateCallbackBaseType,\n} from 'react-native';\nimport { Pressable as NativePressable } from 'react-native';\n\ninterface PressableStateCallbackType extends PressableStateCallbackBaseType {\n readonly hovered?: boolean;\n readonly focused?: boolean;\n}\n\nexport interface PressableProps extends PressableBaseProps {\n /**\n * Either children or a render prop that receives a boolean reflecting whether\n * the component is currently pressed.\n */\n children?: React.ReactNode | ((state: PressableStateCallbackType) => React.ReactNode);\n}\n\nconst Pressable: React.ComponentType<PressableProps> = NativePressable;\n\nexport default Pressable;\n"],"mappings":"AAKA,SAASA,SAAS,IAAIC,eAAtB,QAA6C,cAA7C;AAeA,MAAMD,SAA8C,GAAGC,eAAvD;AAEA,eAAeD,SAAf"}