@fountain-ui/core 1.19.1 → 2.0.0-beta.11

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 (800) hide show
  1. package/build/commonjs/Accordion/Accordion.js +5 -13
  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 +15 -9
  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.ios.js +4 -2
  30. package/build/commonjs/ButtonBase/ButtonBase.ios.js.map +1 -1
  31. package/build/commonjs/ButtonBase/ButtonBase.js +17 -17
  32. package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
  33. package/build/commonjs/ButtonBase/ButtonBaseProps.js.map +1 -1
  34. package/build/commonjs/ButtonBase/index.js.map +1 -1
  35. package/build/commonjs/ButtonBase/useDisabledReaction/index.js +2 -4
  36. package/build/commonjs/ButtonBase/useDisabledReaction/index.js.map +1 -1
  37. package/build/commonjs/ButtonBase/useDisabledReaction/index.native.js.map +1 -1
  38. package/build/commonjs/Card/Card.js +1 -1
  39. package/build/commonjs/Card/Card.js.map +1 -1
  40. package/build/commonjs/Card/CardProps.js.map +1 -1
  41. package/build/commonjs/Card/index.js.map +1 -1
  42. package/build/commonjs/CardActions/CardActions.js +1 -1
  43. package/build/commonjs/CardActions/CardActions.js.map +1 -1
  44. package/build/commonjs/CardActions/CardActionsProps.js.map +1 -1
  45. package/build/commonjs/CardActions/index.js.map +1 -1
  46. package/build/commonjs/CardContent/CardContent.js +1 -1
  47. package/build/commonjs/CardContent/CardContent.js.map +1 -1
  48. package/build/commonjs/CardContent/CardContentProps.js.map +1 -1
  49. package/build/commonjs/CardContent/index.js.map +1 -1
  50. package/build/commonjs/CardMedia/CardMedia.js +1 -1
  51. package/build/commonjs/CardMedia/CardMedia.js.map +1 -1
  52. package/build/commonjs/CardMedia/CardMediaProps.js.map +1 -1
  53. package/build/commonjs/CardMedia/index.js.map +1 -1
  54. package/build/commonjs/Checkbox/Checkbox.js +8 -3
  55. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  56. package/build/commonjs/Checkbox/CheckboxProps.js.map +1 -1
  57. package/build/commonjs/Checkbox/index.js.map +1 -1
  58. package/build/commonjs/Chip/Chip.js +11 -10
  59. package/build/commonjs/Chip/Chip.js.map +1 -1
  60. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  61. package/build/commonjs/Chip/index.js.map +1 -1
  62. package/build/commonjs/CircularProgress/CircularProgress.js +4 -7
  63. package/build/commonjs/CircularProgress/CircularProgress.js.map +1 -1
  64. package/build/commonjs/CircularProgress/index.js.map +1 -1
  65. package/build/commonjs/Column/Column.js.map +1 -1
  66. package/build/commonjs/Column/ColumnProps.js.map +1 -1
  67. package/build/commonjs/Column/index.js.map +1 -1
  68. package/build/commonjs/Dialog/Dialog.js +1 -1
  69. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  70. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  71. package/build/commonjs/Dialog/index.js.map +1 -1
  72. package/build/commonjs/DialogActions/DialogActions.js +1 -1
  73. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  74. package/build/commonjs/DialogActions/DialogActionsProps.js.map +1 -1
  75. package/build/commonjs/DialogActions/index.js.map +1 -1
  76. package/build/commonjs/DialogContent/DialogContent.js +1 -1
  77. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  78. package/build/commonjs/DialogContent/DialogContentProps.js.map +1 -1
  79. package/build/commonjs/DialogContent/index.js.map +1 -1
  80. package/build/commonjs/DialogMedia/DialogMedia.js +1 -1
  81. package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
  82. package/build/commonjs/DialogMedia/DialogMediaProps.js.map +1 -1
  83. package/build/commonjs/DialogMedia/index.js.map +1 -1
  84. package/build/commonjs/DialogTitle/DialogTitle.js +1 -1
  85. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  86. package/build/commonjs/DialogTitle/DialogTitleProps.js.map +1 -1
  87. package/build/commonjs/DialogTitle/index.js.map +1 -1
  88. package/build/commonjs/Divider/Divider.js +1 -1
  89. package/build/commonjs/Divider/Divider.js.map +1 -1
  90. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  91. package/build/commonjs/Divider/index.js.map +1 -1
  92. package/build/commonjs/Fab/Fab.js +11 -4
  93. package/build/commonjs/Fab/Fab.js.map +1 -1
  94. package/build/commonjs/Fab/FabProps.js.map +1 -1
  95. package/build/commonjs/Fab/index.js.map +1 -1
  96. package/build/commonjs/Flexbox/Flexbox.js +1 -1
  97. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  98. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  99. package/build/commonjs/Flexbox/index.js.map +1 -1
  100. package/build/commonjs/IconButton/IconButton.js +14 -4
  101. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  102. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  103. package/build/commonjs/IconButton/index.js.map +1 -1
  104. package/build/commonjs/Image/Image.js +14 -2
  105. package/build/commonjs/Image/Image.js.map +1 -1
  106. package/build/commonjs/Image/ImageProps.js.map +1 -1
  107. package/build/commonjs/Image/index.js.map +1 -1
  108. package/build/commonjs/ImageCore/ImageCoreNative.ios.js.map +1 -1
  109. package/build/commonjs/ImageCore/ImageCoreNative.js +8 -6
  110. package/build/commonjs/ImageCore/ImageCoreNative.js.map +1 -1
  111. package/build/commonjs/ImageCore/ImageCoreProps.js.map +1 -1
  112. package/build/commonjs/ImageCore/ImageCoreWeb.js.map +1 -1
  113. package/build/commonjs/ImageCore/index.js.map +1 -1
  114. package/build/commonjs/ImageCore/index.native.js.map +1 -1
  115. package/build/commonjs/Link/Link.js +5 -4
  116. package/build/commonjs/Link/Link.js.map +1 -1
  117. package/build/commonjs/Link/LinkProps.js.map +1 -1
  118. package/build/commonjs/Link/index.js.map +1 -1
  119. package/build/commonjs/List/List.js +1 -1
  120. package/build/commonjs/List/List.js.map +1 -1
  121. package/build/commonjs/List/ListProps.js.map +1 -1
  122. package/build/commonjs/List/index.js.map +1 -1
  123. package/build/commonjs/ListItem/ListItem.js +1 -1
  124. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  125. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  126. package/build/commonjs/ListItem/index.js.map +1 -1
  127. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -1
  128. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  129. package/build/commonjs/ListItemIcon/ListItemIconProps.js.map +1 -1
  130. package/build/commonjs/ListItemIcon/index.js.map +1 -1
  131. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  132. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  133. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryActionProps.js.map +1 -1
  134. package/build/commonjs/ListItemSecondaryAction/index.js.map +1 -1
  135. package/build/commonjs/ListItemText/ListItemText.js +1 -1
  136. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  137. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  138. package/build/commonjs/ListItemText/index.js.map +1 -1
  139. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  140. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  141. package/build/commonjs/ListSubheader/ListSubheaderProps.js.map +1 -1
  142. package/build/commonjs/ListSubheader/index.js.map +1 -1
  143. package/build/commonjs/Menu/Menu.js.map +1 -1
  144. package/build/commonjs/Menu/MenuProps.js.map +1 -1
  145. package/build/commonjs/Menu/index.js.map +1 -1
  146. package/build/commonjs/MenuItem/MenuItem.js.map +1 -1
  147. package/build/commonjs/MenuItem/MenuItemProps.js.map +1 -1
  148. package/build/commonjs/MenuItem/index.js.map +1 -1
  149. package/build/commonjs/Modal/Modal.js +2 -2
  150. package/build/commonjs/Modal/Modal.js.map +1 -1
  151. package/build/commonjs/Modal/ModalProps.js.map +1 -1
  152. package/build/commonjs/Modal/SimpleBackdrop.js +1 -1
  153. package/build/commonjs/Modal/SimpleBackdrop.js.map +1 -1
  154. package/build/commonjs/Modal/SimpleBackdropProps.js.map +1 -1
  155. package/build/commonjs/Modal/index.js +4 -4
  156. package/build/commonjs/Modal/index.js.map +1 -1
  157. package/build/commonjs/Pagination/Pagination.js +10 -7
  158. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  159. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  160. package/build/commonjs/Pagination/index.js.map +1 -1
  161. package/build/commonjs/PaginationItem/PaginationItem.js +1 -1
  162. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  163. package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
  164. package/build/commonjs/PaginationItem/index.js.map +1 -1
  165. package/build/commonjs/Paper/Paper.js +12 -4
  166. package/build/commonjs/Paper/Paper.js.map +1 -1
  167. package/build/commonjs/Paper/PaperProps.js.map +1 -1
  168. package/build/commonjs/Paper/PaperStylesProvider.js +14 -0
  169. package/build/commonjs/Paper/PaperStylesProvider.js.map +1 -0
  170. package/build/commonjs/Paper/index.js.map +1 -1
  171. package/build/commonjs/Paper/usePaperStyles.js +17 -0
  172. package/build/commonjs/Paper/usePaperStyles.js.map +1 -0
  173. package/build/commonjs/Portal/Portal.js.map +1 -1
  174. package/build/commonjs/Portal/PortalConsumer.js +2 -2
  175. package/build/commonjs/Portal/PortalConsumer.js.map +1 -1
  176. package/build/commonjs/Portal/PortalHost.js +2 -2
  177. package/build/commonjs/Portal/PortalHost.js.map +1 -1
  178. package/build/commonjs/Portal/PortalManager.js +11 -8
  179. package/build/commonjs/Portal/PortalManager.js.map +1 -1
  180. package/build/commonjs/Portal/PortalProps.js.map +1 -1
  181. package/build/commonjs/Portal/index.js.map +1 -1
  182. package/build/commonjs/Pressable/index.js.map +1 -1
  183. package/build/commonjs/Radio/Radio.js +15 -18
  184. package/build/commonjs/Radio/Radio.js.map +1 -1
  185. package/build/commonjs/Radio/RadioProps.js.map +1 -1
  186. package/build/commonjs/Radio/index.js.map +1 -1
  187. package/build/commonjs/RadioGroup/RadioContextProvider.js.map +1 -1
  188. package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
  189. package/build/commonjs/RadioGroup/RadioGroupProps.js.map +1 -1
  190. package/build/commonjs/RadioGroup/index.js.map +1 -1
  191. package/build/commonjs/Row/Row.js.map +1 -1
  192. package/build/commonjs/Row/RowProps.js.map +1 -1
  193. package/build/commonjs/Row/index.js.map +1 -1
  194. package/build/commonjs/Slide/Slide.js +7 -10
  195. package/build/commonjs/Slide/Slide.js.map +1 -1
  196. package/build/commonjs/Slide/SlideProps.js.map +1 -1
  197. package/build/commonjs/Slide/index.js.map +1 -1
  198. package/build/commonjs/Slider/Slider.js +1 -1
  199. package/build/commonjs/Slider/Slider.js.map +1 -1
  200. package/build/commonjs/Slider/SliderProps.js.map +1 -1
  201. package/build/commonjs/Slider/index.js.map +1 -1
  202. package/build/commonjs/Snackbar/Snackbar.js +1 -1
  203. package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
  204. package/build/commonjs/Snackbar/SnackbarProps.js.map +1 -1
  205. package/build/commonjs/Snackbar/index.js.map +1 -1
  206. package/build/commonjs/SnackbarContent/SnackbarContent.js +1 -1
  207. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  208. package/build/commonjs/SnackbarContent/SnackbarContentProps.js.map +1 -1
  209. package/build/commonjs/SnackbarContent/index.js.map +1 -1
  210. package/build/commonjs/Spacer/Spacer.js +1 -1
  211. package/build/commonjs/Spacer/Spacer.js.map +1 -1
  212. package/build/commonjs/Spacer/SpacerProps.js.map +1 -1
  213. package/build/commonjs/Spacer/index.js.map +1 -1
  214. package/build/commonjs/SvgIcon/SvgIcon.js +6 -3
  215. package/build/commonjs/SvgIcon/SvgIcon.js.map +1 -1
  216. package/build/commonjs/SvgIcon/SvgIconProps.js.map +1 -1
  217. package/build/commonjs/SvgIcon/index.js.map +1 -1
  218. package/build/commonjs/Switch/Switch.js +2 -2
  219. package/build/commonjs/Switch/Switch.js.map +1 -1
  220. package/build/commonjs/Switch/SwitchProps.js.map +1 -1
  221. package/build/commonjs/Switch/index.js.map +1 -1
  222. package/build/commonjs/Tab/Tab.js +1 -1
  223. package/build/commonjs/Tab/Tab.js.map +1 -1
  224. package/build/commonjs/Tab/TabIndicator.js.map +1 -1
  225. package/build/commonjs/Tab/TabProps.js.map +1 -1
  226. package/build/commonjs/Tab/index.js.map +1 -1
  227. package/build/commonjs/TabBase/TabBase.js +1 -1
  228. package/build/commonjs/TabBase/TabBase.js.map +1 -1
  229. package/build/commonjs/TabBase/TabBaseProps.js.map +1 -1
  230. package/build/commonjs/TabBase/index.js.map +1 -1
  231. package/build/commonjs/Tabs/TabCoordinate.js.map +1 -1
  232. package/build/commonjs/Tabs/TabIndicator.js +9 -14
  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 +46 -53
  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/useTabCoordinates.js +44 -0
  240. package/build/commonjs/Tabs/useTabCoordinates.js.map +1 -0
  241. package/build/commonjs/Tabs/useTabsWidth.js +26 -0
  242. package/build/commonjs/Tabs/useTabsWidth.js.map +1 -0
  243. package/build/commonjs/TextField/InputLabel.js +13 -6
  244. package/build/commonjs/TextField/InputLabel.js.map +1 -1
  245. package/build/commonjs/TextField/OutlinedTextField.js +1 -2
  246. package/build/commonjs/TextField/OutlinedTextField.js.map +1 -1
  247. package/build/commonjs/TextField/TextField.js.map +1 -1
  248. package/build/commonjs/TextField/TextFieldProps.js.map +1 -1
  249. package/build/commonjs/TextField/index.js.map +1 -1
  250. package/build/commonjs/TextField/utils.js +1 -1
  251. package/build/commonjs/TextField/utils.js.map +1 -1
  252. package/build/commonjs/Toolbar/Toolbar.js +1 -1
  253. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  254. package/build/commonjs/Toolbar/ToolbarProps.js.map +1 -1
  255. package/build/commonjs/Toolbar/index.js.map +1 -1
  256. package/build/commonjs/Tooltip/Tooltip.js +8 -6
  257. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  258. package/build/commonjs/Tooltip/TooltipProps.js.map +1 -1
  259. package/build/commonjs/Tooltip/UpArrow.js +6 -5
  260. package/build/commonjs/Tooltip/UpArrow.js.map +1 -1
  261. package/build/commonjs/Tooltip/UpArrowProps.js.map +1 -1
  262. package/build/commonjs/Tooltip/index.js.map +1 -1
  263. package/build/commonjs/Typography/Typography.js.map +1 -1
  264. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  265. package/build/commonjs/Typography/index.js.map +1 -1
  266. package/build/commonjs/animated/AnimatedAppBar.js.map +1 -1
  267. package/build/commonjs/animated/AnimatedFlatList.js.map +1 -1
  268. package/build/commonjs/animated/AnimatedPressable.js.map +1 -1
  269. package/build/commonjs/animated/AnimatedTypography.js.map +1 -1
  270. package/build/commonjs/animated/index.js.map +1 -1
  271. package/build/commonjs/hooks/index.js.map +1 -1
  272. package/build/commonjs/hooks/useAppbarStyles.js.map +1 -1
  273. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  274. package/build/commonjs/hooks/useCollapsibleAppBar.js +48 -43
  275. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  276. package/build/commonjs/hooks/useContentContainerStyle.js +2 -1
  277. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  278. package/build/commonjs/hooks/useElevationStyle.js.map +1 -1
  279. package/build/commonjs/hooks/useFadeInAppBar.js +41 -27
  280. package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
  281. package/build/commonjs/hooks/useThrottle.js +2 -2
  282. package/build/commonjs/hooks/useThrottle.js.map +1 -1
  283. package/build/commonjs/hooks/useValidWindowDimensions/index.ios.js.map +1 -1
  284. package/build/commonjs/hooks/useValidWindowDimensions/index.js.map +1 -1
  285. package/build/commonjs/index.js +6 -6
  286. package/build/commonjs/index.js.map +1 -1
  287. package/build/commonjs/internal/hooks/index.js +0 -8
  288. package/build/commonjs/internal/hooks/index.js.map +1 -1
  289. package/build/commonjs/internal/hooks/useHeight.js +5 -4
  290. package/build/commonjs/internal/hooks/useHeight.js.map +1 -1
  291. package/build/commonjs/internal/icons/Checkbox.js +1 -2
  292. package/build/commonjs/internal/icons/Checkbox.js.map +1 -1
  293. package/build/commonjs/internal/icons/CheckboxChecked.js +3 -7
  294. package/build/commonjs/internal/icons/CheckboxChecked.js.map +1 -1
  295. package/build/commonjs/internal/icons/ChevronDown.js +0 -2
  296. package/build/commonjs/internal/icons/ChevronDown.js.map +1 -1
  297. package/build/commonjs/internal/icons/ChevronLeft.js +0 -2
  298. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  299. package/build/commonjs/internal/icons/ChevronRight.js +0 -2
  300. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  301. package/build/commonjs/internal/icons/CircularProgress.js.map +1 -1
  302. package/build/commonjs/internal/icons/Close.js +0 -2
  303. package/build/commonjs/internal/icons/Close.js.map +1 -1
  304. package/build/commonjs/internal/icons/Radio.js.map +1 -1
  305. package/build/commonjs/internal/icons/RadioChecked.js.map +1 -1
  306. package/build/commonjs/internal/icons/index.js.map +1 -1
  307. package/build/commonjs/internal/index.js.map +1 -1
  308. package/build/commonjs/styles/EdgeInsets.js +9 -6
  309. package/build/commonjs/styles/EdgeInsets.js.map +1 -1
  310. package/build/commonjs/styles/PredefinedStyles.js.map +1 -1
  311. package/build/commonjs/styles/StyleSheet.js.map +1 -1
  312. package/build/commonjs/styles/ThemeProvider.js.map +1 -1
  313. package/build/commonjs/styles/createFontStyle.js +2 -2
  314. package/build/commonjs/styles/createFontStyle.js.map +1 -1
  315. package/build/commonjs/styles/index.js +12 -20
  316. package/build/commonjs/styles/index.js.map +1 -1
  317. package/build/commonjs/styles/styled.js +4 -4
  318. package/build/commonjs/styles/styled.js.map +1 -1
  319. package/build/commonjs/styles/useTheme.js.map +1 -1
  320. package/build/commonjs/types/index.js.map +1 -1
  321. package/build/commonjs/utils/cloneElementSafely.js +17 -0
  322. package/build/commonjs/utils/cloneElementSafely.js.map +1 -0
  323. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  324. package/build/commonjs/utils/index.js +8 -0
  325. package/build/commonjs/utils/index.js.map +1 -1
  326. package/build/module/Accordion/Accordion.js +5 -11
  327. package/build/module/Accordion/Accordion.js.map +1 -1
  328. package/build/module/Accordion/AccordionProps.js.map +1 -1
  329. package/build/module/Accordion/index.js.map +1 -1
  330. package/build/module/AppBar/AppBar.js +9 -14
  331. package/build/module/AppBar/AppBar.js.map +1 -1
  332. package/build/module/AppBar/AppBarProps.js.map +1 -1
  333. package/build/module/AppBar/index.js.map +1 -1
  334. package/build/module/AspectRatio/AspectRatioNative.js +1 -1
  335. package/build/module/AspectRatio/AspectRatioNative.js.map +1 -1
  336. package/build/module/AspectRatio/AspectRatioProps.js.map +1 -1
  337. package/build/module/AspectRatio/AspectRatioWeb.js +1 -1
  338. package/build/module/AspectRatio/AspectRatioWeb.js.map +1 -1
  339. package/build/module/AspectRatio/index.js.map +1 -1
  340. package/build/module/AspectRatio/index.native.js.map +1 -1
  341. package/build/module/AspectRatio/utils.js.map +1 -1
  342. package/build/module/Avatar/Avatar.js.map +1 -1
  343. package/build/module/Avatar/AvatarProps.js.map +1 -1
  344. package/build/module/Avatar/index.js.map +1 -1
  345. package/build/module/Badge/Badge.js +1 -1
  346. package/build/module/Badge/Badge.js.map +1 -1
  347. package/build/module/Badge/BadgeProps.js.map +1 -1
  348. package/build/module/Badge/index.js.map +1 -1
  349. package/build/module/Button/Button.js +14 -10
  350. package/build/module/Button/Button.js.map +1 -1
  351. package/build/module/Button/ButtonProps.js.map +1 -1
  352. package/build/module/Button/index.js.map +1 -1
  353. package/build/module/ButtonBase/ButtonBase.ios.js +4 -2
  354. package/build/module/ButtonBase/ButtonBase.ios.js.map +1 -1
  355. package/build/module/ButtonBase/ButtonBase.js +16 -12
  356. package/build/module/ButtonBase/ButtonBase.js.map +1 -1
  357. package/build/module/ButtonBase/ButtonBaseProps.js.map +1 -1
  358. package/build/module/ButtonBase/index.js.map +1 -1
  359. package/build/module/ButtonBase/useDisabledReaction/index.js +2 -2
  360. package/build/module/ButtonBase/useDisabledReaction/index.js.map +1 -1
  361. package/build/module/ButtonBase/useDisabledReaction/index.native.js.map +1 -1
  362. package/build/module/Card/Card.js +1 -1
  363. package/build/module/Card/Card.js.map +1 -1
  364. package/build/module/Card/CardProps.js.map +1 -1
  365. package/build/module/Card/index.js.map +1 -1
  366. package/build/module/CardActions/CardActions.js +1 -1
  367. package/build/module/CardActions/CardActions.js.map +1 -1
  368. package/build/module/CardActions/CardActionsProps.js.map +1 -1
  369. package/build/module/CardActions/index.js.map +1 -1
  370. package/build/module/CardContent/CardContent.js +1 -1
  371. package/build/module/CardContent/CardContent.js.map +1 -1
  372. package/build/module/CardContent/CardContentProps.js.map +1 -1
  373. package/build/module/CardContent/index.js.map +1 -1
  374. package/build/module/CardMedia/CardMedia.js +1 -1
  375. package/build/module/CardMedia/CardMedia.js.map +1 -1
  376. package/build/module/CardMedia/CardMediaProps.js.map +1 -1
  377. package/build/module/CardMedia/index.js.map +1 -1
  378. package/build/module/Checkbox/Checkbox.js +8 -3
  379. package/build/module/Checkbox/Checkbox.js.map +1 -1
  380. package/build/module/Checkbox/CheckboxProps.js.map +1 -1
  381. package/build/module/Checkbox/index.js.map +1 -1
  382. package/build/module/Chip/Chip.js +11 -11
  383. package/build/module/Chip/Chip.js.map +1 -1
  384. package/build/module/Chip/ChipProps.js.map +1 -1
  385. package/build/module/Chip/index.js.map +1 -1
  386. package/build/module/CircularProgress/CircularProgress.js +5 -5
  387. package/build/module/CircularProgress/CircularProgress.js.map +1 -1
  388. package/build/module/CircularProgress/index.js.map +1 -1
  389. package/build/module/Column/Column.js.map +1 -1
  390. package/build/module/Column/ColumnProps.js.map +1 -1
  391. package/build/module/Column/index.js.map +1 -1
  392. package/build/module/Dialog/Dialog.js +1 -1
  393. package/build/module/Dialog/Dialog.js.map +1 -1
  394. package/build/module/Dialog/DialogProps.js.map +1 -1
  395. package/build/module/Dialog/index.js.map +1 -1
  396. package/build/module/DialogActions/DialogActions.js +1 -1
  397. package/build/module/DialogActions/DialogActions.js.map +1 -1
  398. package/build/module/DialogActions/DialogActionsProps.js.map +1 -1
  399. package/build/module/DialogActions/index.js.map +1 -1
  400. package/build/module/DialogContent/DialogContent.js +1 -1
  401. package/build/module/DialogContent/DialogContent.js.map +1 -1
  402. package/build/module/DialogContent/DialogContentProps.js.map +1 -1
  403. package/build/module/DialogContent/index.js.map +1 -1
  404. package/build/module/DialogMedia/DialogMedia.js +1 -1
  405. package/build/module/DialogMedia/DialogMedia.js.map +1 -1
  406. package/build/module/DialogMedia/DialogMediaProps.js.map +1 -1
  407. package/build/module/DialogMedia/index.js.map +1 -1
  408. package/build/module/DialogTitle/DialogTitle.js +1 -1
  409. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  410. package/build/module/DialogTitle/DialogTitleProps.js.map +1 -1
  411. package/build/module/DialogTitle/index.js.map +1 -1
  412. package/build/module/Divider/Divider.js +1 -1
  413. package/build/module/Divider/Divider.js.map +1 -1
  414. package/build/module/Divider/DividerProps.js.map +1 -1
  415. package/build/module/Divider/index.js.map +1 -1
  416. package/build/module/Fab/Fab.js +11 -5
  417. package/build/module/Fab/Fab.js.map +1 -1
  418. package/build/module/Fab/FabProps.js.map +1 -1
  419. package/build/module/Fab/index.js.map +1 -1
  420. package/build/module/Flexbox/Flexbox.js +1 -1
  421. package/build/module/Flexbox/Flexbox.js.map +1 -1
  422. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  423. package/build/module/Flexbox/index.js.map +1 -1
  424. package/build/module/IconButton/IconButton.js +13 -5
  425. package/build/module/IconButton/IconButton.js.map +1 -1
  426. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  427. package/build/module/IconButton/index.js.map +1 -1
  428. package/build/module/Image/Image.js +14 -2
  429. package/build/module/Image/Image.js.map +1 -1
  430. package/build/module/Image/ImageProps.js.map +1 -1
  431. package/build/module/Image/index.js.map +1 -1
  432. package/build/module/ImageCore/ImageCoreNative.ios.js.map +1 -1
  433. package/build/module/ImageCore/ImageCoreNative.js +4 -4
  434. package/build/module/ImageCore/ImageCoreNative.js.map +1 -1
  435. package/build/module/ImageCore/ImageCoreProps.js.map +1 -1
  436. package/build/module/ImageCore/ImageCoreWeb.js.map +1 -1
  437. package/build/module/ImageCore/index.js.map +1 -1
  438. package/build/module/ImageCore/index.native.js.map +1 -1
  439. package/build/module/Link/Link.js +5 -4
  440. package/build/module/Link/Link.js.map +1 -1
  441. package/build/module/Link/LinkProps.js.map +1 -1
  442. package/build/module/Link/index.js.map +1 -1
  443. package/build/module/List/List.js +1 -1
  444. package/build/module/List/List.js.map +1 -1
  445. package/build/module/List/ListProps.js.map +1 -1
  446. package/build/module/List/index.js.map +1 -1
  447. package/build/module/ListItem/ListItem.js +1 -1
  448. package/build/module/ListItem/ListItem.js.map +1 -1
  449. package/build/module/ListItem/ListItemProps.js.map +1 -1
  450. package/build/module/ListItem/index.js.map +1 -1
  451. package/build/module/ListItemIcon/ListItemIcon.js +1 -1
  452. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  453. package/build/module/ListItemIcon/ListItemIconProps.js.map +1 -1
  454. package/build/module/ListItemIcon/index.js.map +1 -1
  455. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  456. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  457. package/build/module/ListItemSecondaryAction/ListItemSecondaryActionProps.js.map +1 -1
  458. package/build/module/ListItemSecondaryAction/index.js.map +1 -1
  459. package/build/module/ListItemText/ListItemText.js +1 -1
  460. package/build/module/ListItemText/ListItemText.js.map +1 -1
  461. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  462. package/build/module/ListItemText/index.js.map +1 -1
  463. package/build/module/ListSubheader/ListSubheader.js +1 -1
  464. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  465. package/build/module/ListSubheader/ListSubheaderProps.js.map +1 -1
  466. package/build/module/ListSubheader/index.js.map +1 -1
  467. package/build/module/Menu/Menu.js.map +1 -1
  468. package/build/module/Menu/MenuProps.js.map +1 -1
  469. package/build/module/Menu/index.js.map +1 -1
  470. package/build/module/MenuItem/MenuItem.js.map +1 -1
  471. package/build/module/MenuItem/MenuItemProps.js.map +1 -1
  472. package/build/module/MenuItem/index.js.map +1 -1
  473. package/build/module/Modal/Modal.js +1 -1
  474. package/build/module/Modal/Modal.js.map +1 -1
  475. package/build/module/Modal/ModalProps.js.map +1 -1
  476. package/build/module/Modal/SimpleBackdrop.js +1 -1
  477. package/build/module/Modal/SimpleBackdrop.js.map +1 -1
  478. package/build/module/Modal/SimpleBackdropProps.js.map +1 -1
  479. package/build/module/Modal/index.js.map +1 -1
  480. package/build/module/Pagination/Pagination.js +10 -7
  481. package/build/module/Pagination/Pagination.js.map +1 -1
  482. package/build/module/Pagination/PaginationProps.js.map +1 -1
  483. package/build/module/Pagination/index.js.map +1 -1
  484. package/build/module/PaginationItem/PaginationItem.js +1 -1
  485. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  486. package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
  487. package/build/module/PaginationItem/index.js.map +1 -1
  488. package/build/module/Paper/Paper.js +11 -4
  489. package/build/module/Paper/Paper.js.map +1 -1
  490. package/build/module/Paper/PaperProps.js.map +1 -1
  491. package/build/module/Paper/PaperStylesProvider.js +4 -0
  492. package/build/module/Paper/PaperStylesProvider.js.map +1 -0
  493. package/build/module/Paper/index.js.map +1 -1
  494. package/build/module/Paper/usePaperStyles.js +7 -0
  495. package/build/module/Paper/usePaperStyles.js.map +1 -0
  496. package/build/module/Portal/Portal.js.map +1 -1
  497. package/build/module/Portal/PortalConsumer.js +2 -2
  498. package/build/module/Portal/PortalConsumer.js.map +1 -1
  499. package/build/module/Portal/PortalHost.js +2 -2
  500. package/build/module/Portal/PortalHost.js.map +1 -1
  501. package/build/module/Portal/PortalManager.js +11 -8
  502. package/build/module/Portal/PortalManager.js.map +1 -1
  503. package/build/module/Portal/PortalProps.js.map +1 -1
  504. package/build/module/Portal/index.js.map +1 -1
  505. package/build/module/Pressable/index.js.map +1 -1
  506. package/build/module/Radio/Radio.js +14 -18
  507. package/build/module/Radio/Radio.js.map +1 -1
  508. package/build/module/Radio/RadioProps.js.map +1 -1
  509. package/build/module/Radio/index.js.map +1 -1
  510. package/build/module/RadioGroup/RadioContextProvider.js.map +1 -1
  511. package/build/module/RadioGroup/RadioGroup.js.map +1 -1
  512. package/build/module/RadioGroup/RadioGroupProps.js.map +1 -1
  513. package/build/module/RadioGroup/index.js.map +1 -1
  514. package/build/module/Row/Row.js.map +1 -1
  515. package/build/module/Row/RowProps.js.map +1 -1
  516. package/build/module/Row/index.js.map +1 -1
  517. package/build/module/Slide/Slide.js +8 -8
  518. package/build/module/Slide/Slide.js.map +1 -1
  519. package/build/module/Slide/SlideProps.js.map +1 -1
  520. package/build/module/Slide/index.js.map +1 -1
  521. package/build/module/Slider/Slider.js +1 -1
  522. package/build/module/Slider/Slider.js.map +1 -1
  523. package/build/module/Slider/SliderProps.js.map +1 -1
  524. package/build/module/Slider/index.js.map +1 -1
  525. package/build/module/Snackbar/Snackbar.js +1 -1
  526. package/build/module/Snackbar/Snackbar.js.map +1 -1
  527. package/build/module/Snackbar/SnackbarProps.js.map +1 -1
  528. package/build/module/Snackbar/index.js.map +1 -1
  529. package/build/module/SnackbarContent/SnackbarContent.js +1 -1
  530. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  531. package/build/module/SnackbarContent/SnackbarContentProps.js.map +1 -1
  532. package/build/module/SnackbarContent/index.js.map +1 -1
  533. package/build/module/Spacer/Spacer.js +1 -1
  534. package/build/module/Spacer/Spacer.js.map +1 -1
  535. package/build/module/Spacer/SpacerProps.js.map +1 -1
  536. package/build/module/Spacer/index.js.map +1 -1
  537. package/build/module/SvgIcon/SvgIcon.js +7 -4
  538. package/build/module/SvgIcon/SvgIcon.js.map +1 -1
  539. package/build/module/SvgIcon/SvgIconProps.js.map +1 -1
  540. package/build/module/SvgIcon/index.js.map +1 -1
  541. package/build/module/Switch/Switch.js +2 -2
  542. package/build/module/Switch/Switch.js.map +1 -1
  543. package/build/module/Switch/SwitchProps.js.map +1 -1
  544. package/build/module/Switch/index.js.map +1 -1
  545. package/build/module/Tab/Tab.js +1 -1
  546. package/build/module/Tab/Tab.js.map +1 -1
  547. package/build/module/Tab/TabIndicator.js.map +1 -1
  548. package/build/module/Tab/TabProps.js.map +1 -1
  549. package/build/module/Tab/index.js.map +1 -1
  550. package/build/module/TabBase/TabBase.js +1 -1
  551. package/build/module/TabBase/TabBase.js.map +1 -1
  552. package/build/module/TabBase/TabBaseProps.js.map +1 -1
  553. package/build/module/TabBase/index.js.map +1 -1
  554. package/build/module/Tabs/TabCoordinate.js.map +1 -1
  555. package/build/module/Tabs/TabIndicator.js +5 -11
  556. package/build/module/Tabs/TabIndicator.js.map +1 -1
  557. package/build/module/Tabs/TabIndicatorProps.js.map +1 -1
  558. package/build/module/Tabs/Tabs.js +42 -42
  559. package/build/module/Tabs/Tabs.js.map +1 -1
  560. package/build/module/Tabs/TabsProps.js.map +1 -1
  561. package/build/module/Tabs/index.js.map +1 -1
  562. package/build/module/Tabs/useTabCoordinates.js +30 -0
  563. package/build/module/Tabs/useTabCoordinates.js.map +1 -0
  564. package/build/module/Tabs/useTabsWidth.js +18 -0
  565. package/build/module/Tabs/useTabsWidth.js.map +1 -0
  566. package/build/module/TextField/InputLabel.js +11 -6
  567. package/build/module/TextField/InputLabel.js.map +1 -1
  568. package/build/module/TextField/OutlinedTextField.js +1 -2
  569. package/build/module/TextField/OutlinedTextField.js.map +1 -1
  570. package/build/module/TextField/TextField.js.map +1 -1
  571. package/build/module/TextField/TextFieldProps.js.map +1 -1
  572. package/build/module/TextField/index.js.map +1 -1
  573. package/build/module/TextField/utils.js.map +1 -1
  574. package/build/module/Toolbar/Toolbar.js +1 -1
  575. package/build/module/Toolbar/Toolbar.js.map +1 -1
  576. package/build/module/Toolbar/ToolbarProps.js.map +1 -1
  577. package/build/module/Toolbar/index.js.map +1 -1
  578. package/build/module/Tooltip/Tooltip.js +4 -4
  579. package/build/module/Tooltip/Tooltip.js.map +1 -1
  580. package/build/module/Tooltip/TooltipProps.js.map +1 -1
  581. package/build/module/Tooltip/UpArrow.js +6 -5
  582. package/build/module/Tooltip/UpArrow.js.map +1 -1
  583. package/build/module/Tooltip/UpArrowProps.js.map +1 -1
  584. package/build/module/Tooltip/index.js.map +1 -1
  585. package/build/module/Typography/Typography.js.map +1 -1
  586. package/build/module/Typography/TypographyProps.js.map +1 -1
  587. package/build/module/Typography/index.js.map +1 -1
  588. package/build/module/animated/AnimatedAppBar.js.map +1 -1
  589. package/build/module/animated/AnimatedFlatList.js.map +1 -1
  590. package/build/module/animated/AnimatedPressable.js.map +1 -1
  591. package/build/module/animated/AnimatedTypography.js.map +1 -1
  592. package/build/module/animated/index.js.map +1 -1
  593. package/build/module/hooks/index.js.map +1 -1
  594. package/build/module/hooks/useAppbarStyles.js.map +1 -1
  595. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  596. package/build/module/hooks/useCollapsibleAppBar.js +50 -37
  597. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  598. package/build/module/hooks/useContentContainerStyle.js +2 -1
  599. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  600. package/build/module/hooks/useElevationStyle.js.map +1 -1
  601. package/build/module/hooks/useFadeInAppBar.js +42 -24
  602. package/build/module/hooks/useFadeInAppBar.js.map +1 -1
  603. package/build/module/hooks/useThrottle.js +2 -2
  604. package/build/module/hooks/useThrottle.js.map +1 -1
  605. package/build/module/hooks/useValidWindowDimensions/index.ios.js.map +1 -1
  606. package/build/module/hooks/useValidWindowDimensions/index.js.map +1 -1
  607. package/build/module/index.js.map +1 -1
  608. package/build/module/internal/hooks/index.js +0 -1
  609. package/build/module/internal/hooks/index.js.map +1 -1
  610. package/build/module/internal/hooks/useHeight.js +4 -3
  611. package/build/module/internal/hooks/useHeight.js.map +1 -1
  612. package/build/module/internal/icons/Checkbox.js +1 -2
  613. package/build/module/internal/icons/Checkbox.js.map +1 -1
  614. package/build/module/internal/icons/CheckboxChecked.js +3 -7
  615. package/build/module/internal/icons/CheckboxChecked.js.map +1 -1
  616. package/build/module/internal/icons/ChevronDown.js +0 -2
  617. package/build/module/internal/icons/ChevronDown.js.map +1 -1
  618. package/build/module/internal/icons/ChevronLeft.js +0 -2
  619. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  620. package/build/module/internal/icons/ChevronRight.js +0 -2
  621. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  622. package/build/module/internal/icons/CircularProgress.js.map +1 -1
  623. package/build/module/internal/icons/Close.js +0 -2
  624. package/build/module/internal/icons/Close.js.map +1 -1
  625. package/build/module/internal/icons/Radio.js.map +1 -1
  626. package/build/module/internal/icons/RadioChecked.js.map +1 -1
  627. package/build/module/internal/icons/index.js.map +1 -1
  628. package/build/module/internal/index.js.map +1 -1
  629. package/build/module/styles/EdgeInsets.js +9 -6
  630. package/build/module/styles/EdgeInsets.js.map +1 -1
  631. package/build/module/styles/PredefinedStyles.js.map +1 -1
  632. package/build/module/styles/StyleSheet.js.map +1 -1
  633. package/build/module/styles/ThemeProvider.js.map +1 -1
  634. package/build/module/styles/createFontStyle.js +2 -2
  635. package/build/module/styles/createFontStyle.js.map +1 -1
  636. package/build/module/styles/index.js +0 -1
  637. package/build/module/styles/index.js.map +1 -1
  638. package/build/module/styles/styled.js.map +1 -1
  639. package/build/module/styles/useTheme.js.map +1 -1
  640. package/build/module/types/index.js.map +1 -1
  641. package/build/module/utils/cloneElementSafely.js +8 -0
  642. package/build/module/utils/cloneElementSafely.js.map +1 -0
  643. package/build/module/utils/createSvgIcon.js.map +1 -1
  644. package/build/module/utils/index.js +1 -0
  645. package/build/module/utils/index.js.map +1 -1
  646. package/build/typescript/Accordion/Accordion.d.ts +0 -1
  647. package/build/typescript/AppBar/AppBarProps.d.ts +1 -1
  648. package/build/typescript/AspectRatio/AspectRatioNative.d.ts +0 -1
  649. package/build/typescript/AspectRatio/AspectRatioWeb.d.ts +0 -1
  650. package/build/typescript/Avatar/Avatar.d.ts +0 -1
  651. package/build/typescript/Badge/Badge.d.ts +0 -1
  652. package/build/typescript/Button/Button.d.ts +0 -1
  653. package/build/typescript/Button/ButtonProps.d.ts +2 -2
  654. package/build/typescript/ButtonBase/ButtonBase.d.ts +0 -1
  655. package/build/typescript/ButtonBase/ButtonBase.ios.d.ts +0 -1
  656. package/build/typescript/ButtonBase/useDisabledReaction/index.d.ts +2 -2
  657. package/build/typescript/Card/Card.d.ts +0 -1
  658. package/build/typescript/CardActions/CardActions.d.ts +0 -1
  659. package/build/typescript/CardContent/CardContent.d.ts +0 -1
  660. package/build/typescript/CardMedia/CardMedia.d.ts +0 -1
  661. package/build/typescript/Checkbox/Checkbox.d.ts +0 -1
  662. package/build/typescript/Checkbox/CheckboxProps.d.ts +7 -1
  663. package/build/typescript/Chip/Chip.d.ts +0 -1
  664. package/build/typescript/CircularProgress/CircularProgress.d.ts +0 -1
  665. package/build/typescript/Column/Column.d.ts +0 -1
  666. package/build/typescript/Dialog/Dialog.d.ts +0 -1
  667. package/build/typescript/DialogActions/DialogActions.d.ts +0 -1
  668. package/build/typescript/DialogContent/DialogContent.d.ts +0 -1
  669. package/build/typescript/DialogMedia/DialogMedia.d.ts +0 -1
  670. package/build/typescript/DialogTitle/DialogTitle.d.ts +0 -1
  671. package/build/typescript/Divider/Divider.d.ts +0 -1
  672. package/build/typescript/Fab/Fab.d.ts +0 -1
  673. package/build/typescript/Fab/FabProps.d.ts +2 -2
  674. package/build/typescript/Flexbox/Flexbox.d.ts +0 -1
  675. package/build/typescript/IconButton/IconButton.d.ts +0 -1
  676. package/build/typescript/IconButton/IconButtonProps.d.ts +2 -2
  677. package/build/typescript/Image/Image.d.ts +0 -1
  678. package/build/typescript/Image/ImageProps.d.ts +8 -0
  679. package/build/typescript/ImageCore/ImageCoreNative.d.ts +0 -1
  680. package/build/typescript/ImageCore/ImageCoreNative.ios.d.ts +0 -1
  681. package/build/typescript/ImageCore/ImageCoreWeb.d.ts +0 -1
  682. package/build/typescript/Link/Link.d.ts +0 -1
  683. package/build/typescript/List/List.d.ts +0 -1
  684. package/build/typescript/ListItem/ListItem.d.ts +0 -1
  685. package/build/typescript/ListItemIcon/ListItemIcon.d.ts +0 -1
  686. package/build/typescript/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +0 -1
  687. package/build/typescript/ListItemText/ListItemText.d.ts +0 -1
  688. package/build/typescript/ListSubheader/ListSubheader.d.ts +0 -1
  689. package/build/typescript/Menu/Menu.d.ts +0 -1
  690. package/build/typescript/MenuItem/MenuItem.d.ts +0 -1
  691. package/build/typescript/Modal/Modal.d.ts +0 -1
  692. package/build/typescript/Pagination/Pagination.d.ts +0 -1
  693. package/build/typescript/Paper/PaperProps.d.ts +5 -0
  694. package/build/typescript/Paper/PaperStylesProvider.d.ts +7 -0
  695. package/build/typescript/Paper/usePaperStyles.d.ts +1 -0
  696. package/build/typescript/Portal/Portal.d.ts +0 -1
  697. package/build/typescript/Radio/Radio.d.ts +0 -1
  698. package/build/typescript/RadioGroup/RadioGroup.d.ts +0 -1
  699. package/build/typescript/Row/Row.d.ts +0 -1
  700. package/build/typescript/Slide/Slide.d.ts +0 -1
  701. package/build/typescript/Slider/Slider.d.ts +1 -1
  702. package/build/typescript/Snackbar/Snackbar.d.ts +0 -1
  703. package/build/typescript/SnackbarContent/SnackbarContent.d.ts +0 -1
  704. package/build/typescript/Spacer/Spacer.d.ts +0 -1
  705. package/build/typescript/SvgIcon/SvgIcon.d.ts +0 -1
  706. package/build/typescript/SvgIcon/SvgIconProps.d.ts +6 -5
  707. package/build/typescript/Switch/Switch.d.ts +0 -1
  708. package/build/typescript/Switch/SwitchProps.d.ts +2 -2
  709. package/build/typescript/Tab/Tab.d.ts +0 -1
  710. package/build/typescript/TabBase/TabBase.d.ts +0 -1
  711. package/build/typescript/Tabs/TabIndicator.d.ts +0 -1
  712. package/build/typescript/Tabs/TabIndicatorProps.d.ts +2 -2
  713. package/build/typescript/Tabs/Tabs.d.ts +0 -1
  714. package/build/typescript/Tabs/useTabCoordinates.d.ts +7 -0
  715. package/build/typescript/Tabs/useTabsWidth.d.ts +2 -0
  716. package/build/typescript/TextField/InputLabel.d.ts +0 -1
  717. package/build/typescript/Toolbar/Toolbar.d.ts +0 -1
  718. package/build/typescript/Tooltip/Tooltip.d.ts +0 -1
  719. package/build/typescript/hooks/useCollapsibleAppBar.d.ts +0 -1
  720. package/build/typescript/hooks/useFadeInAppBar.d.ts +3 -5
  721. package/build/typescript/internal/hooks/index.d.ts +0 -1
  722. package/build/typescript/internal/icons/Checkbox.d.ts +34 -19
  723. package/build/typescript/internal/icons/CheckboxChecked.d.ts +34 -19
  724. package/build/typescript/internal/icons/ChevronDown.d.ts +34 -19
  725. package/build/typescript/internal/icons/ChevronLeft.d.ts +34 -19
  726. package/build/typescript/internal/icons/ChevronRight.d.ts +34 -19
  727. package/build/typescript/internal/icons/CircularProgress.d.ts +0 -1
  728. package/build/typescript/internal/icons/Close.d.ts +34 -19
  729. package/build/typescript/internal/icons/Radio.d.ts +34 -19
  730. package/build/typescript/internal/icons/RadioChecked.d.ts +34 -19
  731. package/build/typescript/styles/index.d.ts +0 -1
  732. package/build/typescript/types/index.d.ts +1 -0
  733. package/build/typescript/utils/cloneElementSafely.d.ts +4 -0
  734. package/build/typescript/utils/index.d.ts +1 -0
  735. package/package.json +5 -5
  736. package/src/Accordion/Accordion.tsx +5 -8
  737. package/src/AppBar/AppBar.tsx +13 -21
  738. package/src/AppBar/AppBarProps.ts +1 -1
  739. package/src/Button/Button.tsx +18 -3
  740. package/src/Button/ButtonProps.ts +2 -7
  741. package/src/ButtonBase/ButtonBase.tsx +10 -9
  742. package/src/ButtonBase/useDisabledReaction/index.ts +5 -4
  743. package/src/Checkbox/Checkbox.tsx +3 -2
  744. package/src/Checkbox/CheckboxProps.ts +9 -1
  745. package/src/Chip/Chip.tsx +11 -4
  746. package/src/CircularProgress/CircularProgress.tsx +13 -6
  747. package/src/Fab/Fab.tsx +14 -4
  748. package/src/Fab/FabProps.ts +2 -8
  749. package/src/IconButton/IconButton.tsx +16 -4
  750. package/src/IconButton/IconButtonProps.ts +2 -7
  751. package/src/Image/Image.tsx +12 -1
  752. package/src/Image/ImageProps.ts +10 -0
  753. package/src/ImageCore/ImageCoreNative.tsx +6 -5
  754. package/src/Paper/Paper.tsx +14 -8
  755. package/src/Paper/PaperProps.ts +6 -0
  756. package/src/Paper/PaperStylesProvider.tsx +9 -0
  757. package/src/Paper/usePaperStyles.ts +6 -0
  758. package/src/Radio/Radio.tsx +7 -15
  759. package/src/Slide/Slide.tsx +10 -9
  760. package/src/SvgIcon/SvgIcon.tsx +10 -5
  761. package/src/SvgIcon/SvgIconProps.ts +7 -5
  762. package/src/Switch/Switch.tsx +1 -1
  763. package/src/Switch/SwitchProps.ts +2 -8
  764. package/src/Tabs/TabIndicator.tsx +3 -7
  765. package/src/Tabs/TabIndicatorProps.ts +2 -2
  766. package/src/Tabs/Tabs.tsx +39 -41
  767. package/src/Tabs/useTabCoordinates.ts +36 -0
  768. package/src/Tabs/useTabsWidth.ts +20 -0
  769. package/src/TextField/InputLabel.tsx +14 -4
  770. package/src/TextField/OutlinedTextField.tsx +1 -1
  771. package/src/Tooltip/Tooltip.tsx +6 -5
  772. package/src/hooks/useCollapsibleAppBar.ts +44 -28
  773. package/src/hooks/useFadeInAppBar.ts +38 -24
  774. package/src/hooks/useThrottle.ts +1 -1
  775. package/src/internal/hooks/index.ts +0 -1
  776. package/src/internal/hooks/useHeight.ts +2 -2
  777. package/src/internal/icons/Checkbox.tsx +3 -3
  778. package/src/internal/icons/CheckboxChecked.tsx +5 -11
  779. package/src/internal/icons/ChevronDown.tsx +3 -4
  780. package/src/internal/icons/ChevronLeft.tsx +3 -4
  781. package/src/internal/icons/ChevronRight.tsx +3 -4
  782. package/src/internal/icons/Close.tsx +3 -4
  783. package/src/internal/icons/Radio.tsx +4 -2
  784. package/src/internal/icons/RadioChecked.tsx +4 -2
  785. package/src/styles/index.ts +0 -1
  786. package/src/types/index.ts +7 -0
  787. package/src/utils/cloneElementSafely.ts +9 -0
  788. package/src/utils/index.ts +1 -0
  789. package/build/commonjs/internal/hooks/useWidth.js +0 -29
  790. package/build/commonjs/internal/hooks/useWidth.js.map +0 -1
  791. package/build/commonjs/styles/cloneSvgIcon.js +0 -37
  792. package/build/commonjs/styles/cloneSvgIcon.js.map +0 -1
  793. package/build/module/internal/hooks/useWidth.js +0 -15
  794. package/build/module/internal/hooks/useWidth.js.map +0 -1
  795. package/build/module/styles/cloneSvgIcon.js +0 -25
  796. package/build/module/styles/cloneSvgIcon.js.map +0 -1
  797. package/build/typescript/internal/hooks/useWidth.d.ts +0 -2
  798. package/build/typescript/styles/cloneSvgIcon.d.ts +0 -12
  799. package/src/internal/hooks/useWidth.ts +0 -17
  800. package/src/styles/cloneSvgIcon.ts +0 -39
@@ -13,7 +13,7 @@ var _styles = require("../styles");
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- 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); }
16
+ 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); }
17
17
 
18
18
  const styles = _styles.StyleSheet.create({
19
19
  container: {
@@ -1 +1 @@
1
- {"version":3,"sources":["Divider.tsx"],"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","borderBottom","borderBottomWidth","borderRight","borderRightWidth","Divider","props","children","childrenProp","inset","vertical","style","otherProps","theme","fontColor","palette","text","secondary","borderColor","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","containerStyle","undefined","dividerStyle","dividerMarginSize","startDividerStyle","endDividerStyle","fontStyle","selector","typo","caption2","color","element"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAGA,MAAMA,MAAM,GAAGC,mBAAWC,MAAX,CAAkB;AAC7BC,EAAAA,SAAS,EAAE;AACPC,IAAAA,SAAS,EAAE,SADJ;AAEPC,IAAAA,UAAU,EAAE;AAFL,GADkB;AAK7BC,EAAAA,GAAG,EAAE;AACDC,IAAAA,aAAa,EAAE;AADd,GALwB;AAQ7BC,EAAAA,MAAM,EAAE;AACJD,IAAAA,aAAa,EAAE;AADX,GARqB;AAW7BE,EAAAA,OAAO,EAAE;AACLC,IAAAA,QAAQ,EAAE;AADL,GAXoB;AAc7BC,EAAAA,YAAY,EAAE;AACVC,IAAAA,iBAAiB,EAAE;AADT,GAde;AAiB7BC,EAAAA,WAAW,EAAE;AACTC,IAAAA,gBAAgB,EAAE;AADT;AAjBgB,CAAlB,CAAf;;AAsBe,SAASC,OAAT,CAAiBC,KAAjB,EAAsC;AACjD,QAAM;AACFC,IAAAA,QAAQ,EAAEC,YADR;AAEFC,IAAAA,KAAK,GAAG,CAFN;AAGFC,IAAAA,QAAQ,GAAG,KAHT;AAIFC,IAAAA,KAJE;AAKF,OAAGC;AALD,MAMFN,KANJ;AAQA,QAAMO,KAAK,GAAG,uBAAd;AAEA,QAAMC,SAAS,GAAGD,KAAK,CAACE,OAAN,CAAcC,IAAd,CAAmBC,SAArC;AACA,QAAMC,WAAW,GAAGL,KAAK,CAACE,OAAN,CAAchB,OAAlC;AACA,QAAMoB,UAAU,GAAGN,KAAK,CAACO,OAAN,CAAc,CAAd,CAAnB;AACA,QAAMC,SAAS,GAAGR,KAAK,CAACO,OAAN,CAAcX,KAAd,CAAlB;AAEA,QAAMa,UAAU,GAAGH,UAAnB;AACA,QAAMI,WAAW,GAAGJ,UAApB;AACA,QAAMK,SAAS,GAAGL,UAAlB;AACA,QAAMM,YAAY,GAAGN,UAArB;AAE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AhB,EAAuB;AACrCwB,IAAAA,QAAQ,EAAGC,IAAD,IAAUA,IAAI,CAACC,QADY;AAErCC,IAAAA,KAAK,EAAE1B;AAF8B,GAAvB,CAAlB;AAKA,QAAM2B,OAAO,GAAG,OAAOjC,YAAP,KAAwB,QAAxB,gBACV,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAE,iBAAI4B,SAAJ;AAAb,KAA8B5B,YAA9B,CADU,GAEVA,YAFN;AAIA,QAAMD,QAAQ,GAAGC,YAAY,gBACzB,yEACI,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAE,iBAAI,CAACwB,YAAD,EAAeE,iBAAf,CAAJ;AAAb,IADJ,EAEKO,OAFL,eAGI,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAE,iBAAI,CAACT,YAAD,EAAeG,eAAf,CAAJ;AAAb,IAHJ,CADyB,GAMzB,IANJ;AAQA,sBACI,6BAAC,iBAAD;AACI,IAAA,KAAK,EAAEL;AADX,KAEQlB,UAFR,GAIKL,QAJL,CADJ;AAQH;;AAAA","sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport type DividerProps from './DividerProps';\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: 'stretch',\n alignItems: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n divider: {\n flexGrow: 1,\n },\n borderBottom: {\n borderBottomWidth: 1,\n },\n borderRight: {\n borderRightWidth: 1,\n },\n});\n\nexport default function Divider(props: DividerProps) {\n const {\n children: childrenProp,\n inset = 0,\n vertical = false,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const fontColor = theme.palette.text.secondary;\n const borderColor = theme.palette.divider;\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? styles.borderRight : styles.borderBottom);\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(2);\n const startDividerStyle = vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize };\n const endDividerStyle = vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </>\n ) : null;\n\n return (\n <View\n style={containerStyle}\n {...otherProps}\n >\n {children}\n </View>\n );\n};\n"]}
1
+ {"version":3,"names":["styles","StyleSheet","create","container","alignSelf","alignItems","row","flexDirection","column","divider","flexGrow","borderBottom","borderBottomWidth","borderRight","borderRightWidth","Divider","props","children","childrenProp","inset","vertical","style","otherProps","theme","useTheme","fontColor","palette","text","secondary","borderColor","marginSize","spacing","insetSize","marginLeft","marginRight","marginTop","marginBottom","marginStyle","insetStyle","borderColorStyle","borderWidthStyle","containerStyle","css","undefined","dividerStyle","dividerMarginSize","startDividerStyle","endDividerStyle","fontStyle","createFontStyle","selector","typo","caption2","color","element"],"sources":["Divider.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport type DividerProps from './DividerProps';\n\nconst styles = StyleSheet.create({\n container: {\n alignSelf: 'stretch',\n alignItems: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n column: {\n flexDirection: 'column',\n },\n divider: {\n flexGrow: 1,\n },\n borderBottom: {\n borderBottomWidth: 1,\n },\n borderRight: {\n borderRightWidth: 1,\n },\n});\n\nexport default function Divider(props: DividerProps) {\n const {\n children: childrenProp,\n inset = 0,\n vertical = false,\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const fontColor = theme.palette.text.secondary;\n const borderColor = theme.palette.divider;\n const marginSize = theme.spacing(1);\n const insetSize = theme.spacing(inset);\n\n const marginLeft = marginSize;\n const marginRight = marginSize;\n const marginTop = marginSize;\n const marginBottom = marginSize;\n\n const marginStyle = vertical\n ? { marginLeft, marginRight }\n : { marginTop, marginBottom };\n\n const insetStyle = vertical\n ? { marginTop: insetSize, marginBottom: insetSize }\n : { marginLeft: insetSize, marginRight: insetSize };\n\n const borderColorStyle = { borderColor };\n const borderWidthStyle = (vertical ? styles.borderRight : styles.borderBottom);\n\n const containerStyle = css([\n insetStyle,\n marginStyle,\n styles.container,\n vertical ? styles.column : styles.row,\n childrenProp ? undefined : borderColorStyle,\n childrenProp ? undefined : borderWidthStyle,\n style,\n ]);\n\n const dividerStyle = css([\n borderColorStyle,\n borderWidthStyle,\n styles.divider,\n ]);\n\n const dividerMarginSize = theme.spacing(2);\n const startDividerStyle = vertical ? { marginBottom: dividerMarginSize } : { marginRight: dividerMarginSize };\n const endDividerStyle = vertical ? { marginTop: dividerMarginSize } : { marginLeft: dividerMarginSize };\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption2,\n color: fontColor,\n });\n\n const element = typeof childrenProp === 'string'\n ? <Text style={css(fontStyle)}>{childrenProp}</Text>\n : childrenProp;\n\n const children = childrenProp ? (\n <>\n <View style={css([dividerStyle, startDividerStyle])}/>\n {element}\n <View style={css([dividerStyle, endDividerStyle])}/>\n </>\n ) : null;\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BACV,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAwB,WAAA,EAAIM,SAAJ;EAAb,GAA8B9B,YAA9B,CADU,GAEVA,YAFN;EAIA,MAAMD,QAAQ,GAAGC,YAAY,gBACzB,yEACI,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAwB,WAAA,EAAI,CAACE,YAAD,EAAeE,iBAAf,CAAJ;EAAb,EADJ,EAEKQ,OAFL,eAGI,6BAAC,iBAAD;IAAM,KAAK,EAAE,IAAAZ,WAAA,EAAI,CAACE,YAAD,EAAeG,eAAf,CAAJ;EAAb,EAHJ,CADyB,GAMzB,IANJ;EAQA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAEN;EADX,GAEQnB,UAFR,GAIKL,QAJL,CADJ;AAQH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["DividerProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface DividerProps extends OverridableComponentProps<ViewProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The size of the inset. It works as a multiplier factor based on spacing system.\n * @default 0\n */\n inset?: number;\n\n /**\n * If `true`, the divider orientation is set to vertical.\n * @default false\n */\n vertical?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Divider';\nexport type { default as DividerProps } from './DividerProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Divider';\nexport type { default as DividerProps } from './DividerProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -15,12 +15,18 @@ var _hooks = require("../hooks");
15
15
 
16
16
  var _styles = require("../styles");
17
17
 
18
+ var _utils = require("../utils");
19
+
18
20
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
21
 
20
- 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); }
22
+ 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); }
21
23
 
22
24
  const SMALL = 32;
23
25
  const MEDIUM = 48;
26
+ const iconSizes = {
27
+ small: 20,
28
+ medium: 24
29
+ };
24
30
 
25
31
  const styles = _styles.StyleSheet.create({
26
32
  medium: {
@@ -61,9 +67,10 @@ function Fab(props) {
61
67
  const theme = (0, _styles.useTheme)();
62
68
  const backgroundColor = theme.palette[color].main;
63
69
  const fontColor = theme.palette[color].contrastTextColor;
64
- const icon = (0, _styles.cloneSvgIcon)(children, {
65
- size,
66
- color: fontColor
70
+ const icon = (0, _utils.cloneElementSafely)(children, {
71
+ width: iconSizes[size],
72
+ height: iconSizes[size],
73
+ fill: fontColor
67
74
  });
68
75
  const elevationStyle = (0, _hooks.useElevationStyle)(elevation);
69
76
  const width = variant === 'circular' ? size === 'medium' ? MEDIUM : SMALL : undefined;
@@ -1 +1 @@
1
- {"version":3,"sources":["Fab.tsx"],"names":["SMALL","MEDIUM","styles","StyleSheet","create","medium","borderRadius","height","root","alignItems","justifyContent","row","flexDirection","reverse","small","Fab","props","children","color","disabled","elevation","label","numberOfLines","onPress","size","style","styleProp","variant","otherProps","theme","backgroundColor","palette","main","fontColor","contrastTextColor","icon","elevationStyle","width","undefined","paddingSize","spacing","iconPadding","paddingLeft","paddingRight","buttonBaseStyle","fontStyle","selector","typo","button2","button1","textMarginSize","textMarginStyle","marginRight","marginLeft","textStyle","handlePress"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;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AAK,EAAEe;AAF8B,GAAvB,CAAlB;AAKA,QAAMiB,cAAc,GAAG1B,IAAI,KAAK,OAAT,GAAmBK,KAAK,CAACW,OAAN,CAAc,CAAd,CAAnB,GAAsCX,KAAK,CAACW,OAAN,CAAc,CAAd,CAA7D;AACA,QAAMW,eAAe,GAAGhB,IAAI,GACrBtB,OAAO,GAAG;AAAEuC,IAAAA,WAAW,EAAEF;AAAf,GAAH,GAAqC;AAAEG,IAAAA,UAAU,EAAEH;AAAd,GADvB,GAEtBZ,SAFN;AAIA,QAAMgB,SAAS,GAAG,iBAAI,CAClBT,SADkB,EAElBM,eAFkB,CAAJ,CAAlB;;AAKA,QAAMI,WAAW,GAAG,YAAY;AAC5B,QAAIpC,QAAJ,EAAc;AACV;AACH;;AACD,QAAII,OAAJ,EAAa;AACTA,MAAAA,OAAO;AACP;AACH;AACJ,GARD;;AAUA,sBACI,6BAAC,mBAAD;AACI,IAAA,QAAQ,EAAEJ,QADd;AAEI,IAAA,OAAO,EAAEoC,WAFb;AAGI,IAAA,KAAK,EAAEX;AAHX,KAIQhB,UAJR,GAMKO,IANL,EAQKR,OAAO,KAAK,UAAZ,IAA0BN,KAA1B,gBACG,6BAAC,iBAAD;AACI,IAAA,QAAQ,EAAEA,KADd;AAEI,IAAA,aAAa,EAAEC,aAFnB;AAGI,IAAA,KAAK,EAAEgC;AAHX,IADH,GAMG,IAdR,CADJ;AAkBH;;AAAA","sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport ButtonBase from '../ButtonBase';\nimport { useElevationStyle } from '../hooks';\nimport { cloneSvgIcon, createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport type FabProps from './FabProps';\n\nconst SMALL = 32;\nconst MEDIUM = 48;\n\nconst styles = StyleSheet.create({\n medium: {\n borderRadius: MEDIUM * 0.5,\n height: MEDIUM,\n },\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n reverse: {\n flexDirection: 'row-reverse',\n },\n small: {\n borderRadius: SMALL * 0.5,\n height: SMALL,\n },\n});\n\nexport default function Fab(props: FabProps) {\n const {\n children,\n color = 'primary',\n disabled = false,\n elevation = 2,\n label,\n numberOfLines = 1,\n onPress,\n reverse,\n size = 'medium',\n style: styleProp,\n variant = 'circular',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const backgroundColor = theme.palette[color].main;\n const fontColor = theme.palette[color].contrastTextColor;\n\n const icon = cloneSvgIcon(children, {\n size,\n color: fontColor,\n });\n\n const elevationStyle = useElevationStyle(elevation);\n const width = variant === 'circular' ? (size === 'medium' ? MEDIUM : SMALL) : undefined;\n const paddingSize = size === 'medium' ? theme.spacing(5) : theme.spacing(3);\n const iconPadding = icon ? paddingSize - theme.spacing(1) : paddingSize;\n\n const paddingLeft = variant === 'circular'\n ? undefined\n : icon\n ? (reverse ? paddingSize : iconPadding)\n : paddingSize;\n\n const paddingRight = variant === 'circular'\n ? undefined\n : icon\n ? (reverse ? iconPadding : paddingSize)\n : paddingSize;\n\n const buttonBaseStyle = css([\n styles.root,\n reverse ? styles.reverse : styles.row,\n size === 'medium' ? styles.medium : styles.small,\n { width, backgroundColor, paddingLeft, paddingRight },\n elevationStyle,\n styleProp,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => size === 'small' ? typo.button2 : typo.button1,\n color: fontColor,\n });\n\n const textMarginSize = size === 'small' ? theme.spacing(1) : theme.spacing(2);\n const textMarginStyle = icon\n ? (reverse ? { marginRight: textMarginSize } : { marginLeft: textMarginSize })\n : undefined;\n\n const textStyle = css([\n fontStyle,\n textMarginStyle,\n ]);\n\n const handlePress = async () => {\n if (disabled) {\n return;\n }\n if (onPress) {\n onPress();\n return;\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={buttonBaseStyle}\n {...otherProps}\n >\n {icon}\n\n {variant === 'extended' && label ? (\n <Text\n children={label}\n numberOfLines={numberOfLines}\n style={textStyle}\n />\n ) : null}\n </ButtonBase>\n );\n};\n"]}
1
+ {"version":3,"names":["SMALL","MEDIUM","iconSizes","small","medium","styles","StyleSheet","create","borderRadius","height","root","alignItems","justifyContent","row","flexDirection","reverse","Fab","props","children","color","disabled","elevation","label","numberOfLines","onPress","size","style","styleProp","variant","otherProps","theme","useTheme","backgroundColor","palette","main","fontColor","contrastTextColor","icon","cloneElementSafely","width","fill","elevationStyle","useElevationStyle","undefined","paddingSize","spacing","iconPadding","paddingLeft","paddingRight","buttonBaseStyle","css","fontStyle","createFontStyle","selector","typo","button2","button1","textMarginSize","textMarginStyle","marginRight","marginLeft","textStyle","handlePress"],"sources":["Fab.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport ButtonBase from '../ButtonBase';\nimport { useElevationStyle } from '../hooks';\nimport { createFontStyle, css, StyleSheet, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport type FabProps from './FabProps';\nimport type { FabSize } from './FabProps';\n\nconst SMALL = 32;\nconst MEDIUM = 48;\n\ntype IconSizes = { [n in FabSize]: number };\n\nconst iconSizes: IconSizes = {\n small: 20,\n medium: 24,\n};\n\nconst styles = StyleSheet.create({\n medium: {\n borderRadius: MEDIUM * 0.5,\n height: MEDIUM,\n },\n root: {\n alignItems: 'center',\n justifyContent: 'center',\n },\n row: {\n flexDirection: 'row',\n },\n reverse: {\n flexDirection: 'row-reverse',\n },\n small: {\n borderRadius: SMALL * 0.5,\n height: SMALL,\n },\n});\n\nexport default function Fab(props: FabProps) {\n const {\n children,\n color = 'primary',\n disabled = false,\n elevation = 2,\n label,\n numberOfLines = 1,\n onPress,\n reverse,\n size = 'medium',\n style: styleProp,\n variant = 'circular',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const backgroundColor = theme.palette[color].main;\n const fontColor = theme.palette[color].contrastTextColor;\n\n const icon = cloneElementSafely(children, {\n width: iconSizes[size],\n height: iconSizes[size],\n fill: fontColor,\n });\n\n const elevationStyle = useElevationStyle(elevation);\n const width = variant === 'circular' ? (size === 'medium' ? MEDIUM : SMALL) : undefined;\n const paddingSize = size === 'medium' ? theme.spacing(5) : theme.spacing(3);\n const iconPadding = icon ? paddingSize - theme.spacing(1) : paddingSize;\n\n const paddingLeft = variant === 'circular'\n ? undefined\n : icon\n ? (reverse ? paddingSize : iconPadding)\n : paddingSize;\n\n const paddingRight = variant === 'circular'\n ? undefined\n : icon\n ? (reverse ? iconPadding : paddingSize)\n : paddingSize;\n\n const buttonBaseStyle = css([\n styles.root,\n reverse ? styles.reverse : styles.row,\n size === 'medium' ? styles.medium : styles.small,\n { width, backgroundColor, paddingLeft, paddingRight },\n elevationStyle,\n styleProp,\n ]);\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => size === 'small' ? typo.button2 : typo.button1,\n color: fontColor,\n });\n\n const textMarginSize = size === 'small' ? theme.spacing(1) : theme.spacing(2);\n const textMarginStyle = icon\n ? (reverse ? { marginRight: textMarginSize } : { marginLeft: textMarginSize })\n : undefined;\n\n const textStyle = css([\n fontStyle,\n textMarginStyle,\n ]);\n\n const handlePress = async () => {\n if (disabled) {\n return;\n }\n if (onPress) {\n onPress();\n return;\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={buttonBaseStyle}\n {...otherProps}\n >\n {icon}\n\n {variant === 'extended' && label ? (\n <Text\n children={label}\n numberOfLines={numberOfLines}\n style={textStyle}\n />\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAIA,MAAMA,KAAK,GAAG,EAAd;AACA,MAAMC,MAAM,GAAG,EAAf;AAIA,MAAMC,SAAoB,GAAG;EACzBC,KAAK,EAAE,EADkB;EAEzBC,MAAM,EAAE;AAFiB,CAA7B;;AAKA,MAAMC,MAAM,GAAGC,kBAAA,CAAWC,MAAX,CAAkB;EAC7BH,MAAM,EAAE;IACJI,YAAY,EAAEP,MAAM,GAAG,GADnB;IAEJQ,MAAM,EAA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AEG,UAAU,EAAEH;EAAd,CADvB,GAEtBd,SAFN;EAIA,MAAMkB,SAAS,GAAG,IAAAX,WAAA,EAAI,CAClBC,SADkB,EAElBO,eAFkB,CAAJ,CAAlB;;EAKA,MAAMI,WAAW,GAAG,YAAY;IAC5B,IAAI1C,QAAJ,EAAc;MACV;IACH;;IACD,IAAII,OAAJ,EAAa;MACTA,OAAO;MACP;IACH;EACJ,CARD;;EAUA,oBACI,6BAAC,mBAAD;IACI,QAAQ,EAAEJ,QADd;IAEI,OAAO,EAAE0C,WAFb;IAGI,KAAK,EAAEb;EAHX,GAIQpB,UAJR,GAMKQ,IANL,EAQKT,OAAO,KAAK,UAAZ,IAA0BN,KAA1B,gBACG,6BAAC,iBAAD;IACI,QAAQ,EAAEA,KADd;IAEI,aAAa,EAAEC,aAFnB;IAGI,KAAK,EAAEsC;EAHX,EADH,GAMG,IAdR,CADJ;AAkBH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["FabProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps, CommonComponentColor } from '../types';\nimport type { Elevation } from '@fountain-ui/styles';\n\nexport type FabColor = CommonComponentColor | 'surface';\n\nexport type FabSize = 'small' | 'medium';\n\nexport type FabVariant = 'circular' | 'extended';\n\nexport default interface FabProps extends OverridableComponentProps<ButtonBaseProps, {\n /**\n * The content of the button.\n */\n children?: React.ReactElement;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'primary'\n */\n color?: FabColor;\n\n /**\n * Shadow depth, corresponds to `dp` in the spec.\n * It accepts values between 0 and 24 inclusive.\n * @default 2\n */\n elevation?: Elevation;\n\n /**\n * If present, this is typography displayed.\n */\n label?: string;\n\n /**\n * The numberOfLines of Fab.\n * @default 1\n */\n numberOfLines?: number;\n\n /**\n If true, contents is reversed.\n */\n reverse?: boolean;\n\n /**\n * The size of Fab.\n * @default 'medium'\n */\n size?: FabSize;\n\n /**\n * The variant to use.\n * @default 'circular'\n */\n variant?: FabVariant;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Fab';\nexport type { default as FabProps } from './FabProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Fab';\nexport type { default as FabProps } from './FabProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -13,7 +13,7 @@ var _styles = require("../styles");
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- 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); }
16
+ 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); }
17
17
 
18
18
  const styles = _styles.StyleSheet.create({
19
19
  row: {
@@ -1 +1 @@
1
- {"version":3,"sources":["Flexbox.tsx"],"names":["styles","StyleSheet","create","row","flexDirection","column","rowReverse","columnReverse","createFlexbox","direction","forwardDirection","reverseDirection","Flexbox","props","theme","spacing","alignContent","alignItems","alignSelf","flexBasis","flexGrow","flexShrink","flexWrap","children","insets","justifyContent","overflow","reversed","style","otherProps","propStyles","padding","undefined","paddingLeft","left","paddingTop","top","paddingRight","right","paddingBottom","bottom","displayName"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAGA,MAAMA,MAAM,GAAGC,mBAAWC,MAAX,CAAkB;AAC7BC,EAAAA,GAAG,EAAE;AAAEC,IAAAA,aAAa,EAAE;AAAjB,GADwB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,WAAW,EAAElB,OAAO,CAACS,MAAM,CAACU,IAAR,CADtB;AAEEC,MAAAA,UAAU,EAAEpB,OAAO,CAACS,MAAM,CAACY,GAAR,CAFrB;AAGEC,MAAAA,YAAY,EAAEtB,OAAO,CAACS,MAAM,CAACc,KAAR,CAHvB;AAIEC,MAAAA,aAAa,EAAExB,OAAO,CAACS,MAAM,CAACgB,MAAR;AAJxB,KADU,GAOVR,SAPN;AASA,wBACI,6BAAC,iBAAD;AACI,MAAA,QAAQ,EAAET,QADd;AAEI,MAAA,KAAK,EAAE,iBAAI,CACPd,SADO,EAEPqB,UAFO,EAGPC,OAHO,EAIPH,KAJO,CAAJ;AAFX,OAQQC,UARR,EADJ;AAYH;;AAEDjB,EAAAA,OAAO,CAAC6B,WAAR,GAAsBhC,SAAS,KAAK,KAAd,GAAsB,KAAtB,GAA8B,QAApD;AAEA,SAAOG,OAAP;AACH","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type FlexboxProps from './FlexboxProps';\n\nconst styles = StyleSheet.create({\n row: { flexDirection: 'row' },\n column: { flexDirection: 'column' },\n rowReverse: { flexDirection: 'row-reverse' },\n columnReverse: { flexDirection: 'column-reverse' },\n});\n\nexport default function createFlexbox(direction: 'row' | 'column') {\n const forwardDirection = direction === 'row' ? styles.row : styles.column;\n const reverseDirection = direction === 'row' ? styles.rowReverse : styles.columnReverse;\n\n function Flexbox(props: FlexboxProps) {\n const theme = useTheme();\n\n const spacing = theme.spacing;\n\n const {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n children,\n insets,\n justifyContent,\n overflow,\n reversed,\n style,\n ...otherProps\n } = props;\n\n const direction = reversed ? reverseDirection : forwardDirection;\n\n const propStyles = {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n justifyContent,\n overflow,\n };\n\n const padding = insets !== undefined\n ? {\n paddingLeft: spacing(insets.left),\n paddingTop: spacing(insets.top),\n paddingRight: spacing(insets.right),\n paddingBottom: spacing(insets.bottom),\n }\n : undefined;\n\n return (\n <View\n children={children}\n style={css([\n direction,\n propStyles,\n padding,\n style,\n ])}\n {...otherProps}\n />\n );\n }\n\n Flexbox.displayName = direction === 'row' ? 'Row' : 'Column';\n\n return Flexbox;\n}\n"]}
1
+ {"version":3,"names":["styles","StyleSheet","create","row","flexDirection","column","rowReverse","columnReverse","createFlexbox","direction","forwardDirection","reverseDirection","Flexbox","props","theme","useTheme","spacing","alignContent","alignItems","alignSelf","flexBasis","flexGrow","flexShrink","flexWrap","children","insets","justifyContent","overflow","reversed","style","otherProps","propStyles","padding","undefined","paddingLeft","left","paddingTop","top","paddingRight","right","paddingBottom","bottom","css","displayName"],"sources":["Flexbox.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type FlexboxProps from './FlexboxProps';\n\nconst styles = StyleSheet.create({\n row: { flexDirection: 'row' },\n column: { flexDirection: 'column' },\n rowReverse: { flexDirection: 'row-reverse' },\n columnReverse: { flexDirection: 'column-reverse' },\n});\n\nexport default function createFlexbox(direction: 'row' | 'column') {\n const forwardDirection = direction === 'row' ? styles.row : styles.column;\n const reverseDirection = direction === 'row' ? styles.rowReverse : styles.columnReverse;\n\n function Flexbox(props: FlexboxProps) {\n const theme = useTheme();\n\n const spacing = theme.spacing;\n\n const {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n children,\n insets,\n justifyContent,\n overflow,\n reversed,\n style,\n ...otherProps\n } = props;\n\n const direction = reversed ? reverseDirection : forwardDirection;\n\n const propStyles = {\n alignContent,\n alignItems,\n alignSelf,\n flexBasis,\n flexGrow,\n flexShrink,\n flexWrap,\n justifyContent,\n overflow,\n };\n\n const padding = insets !== undefined\n ? {\n paddingLeft: spacing(insets.left),\n paddingTop: spacing(insets.top),\n paddingRight: spacing(insets.right),\n paddingBottom: spacing(insets.bottom),\n }\n : undefined;\n\n return (\n <View\n children={children}\n style={css([\n direction,\n propStyles,\n padding,\n style,\n ])}\n {...otherProps}\n />\n );\n }\n\n Flexbox.displayName = direction === 'row' ? 'Row' : 'Column';\n\n return Flexbox;\n}\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAGA,MAAMA,MAAM,GAAGC,kBAAA,CAAWC,MAAX,CAAkB;EAC7BC,GAAG,EAAE;IAAEC,aAAa,EAAE;EAAjB,CADwB;EAE7BC,MAAM,EAAE;IAAED,aAAa,EAAE;EAAjB,CAFqB;EAG7BE,UAAU,EAAE;IAAEF,aAAa,EAAE;EAAjB,CAHiB;EAI7BG,aAAa,EAAE;IAAEH,aAAa,EAAE;EAAjB;AAJc,CAAlB,CAAf;;AAOe,SAASI,aAAT,CAAuBC,SAAvB,EAAoD;EAC/D,MAAMC,gBAAgB,GAAGD,SAAS,KAAK,KAAd,GAAsBT,MAAM,CAACG,GAA7B,GAAmCH,MAAM,CAACK,MAAnE;EACA,MAAMM,gBAAgB,GAAGF,SAAS,KAAK,KAAd,GAAsBT,MAAM,CAACM,UAA7B,GAA0CN,MAAM,CAACO,aAA1E;;EAEA,SAASK,OAAT,CAAiBC,KAAjB,EAAsC;IAClC,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;IAEA,MAAMC,OAAO,GAAGF,KAAK,CAACE,OAAtB;IAEA,MAAM;MACFC,YADE;MAEFC,UAFE;MAGFC,SAHE;MAIFC,SAJE;MAKFC,QALE;MAMFC,UANE;MAOFC,QAPE;MAQFC,QARE;MASFC,MATE;MAUFC,cAVE;MAWFC,QAXE;MAYFC,QAZE;MAaFC,KAbE;MAcF,GAAGC;IAdD,IAeFjB,KAfJ;IAiBA,MAAMJ,SAAS,GAAGmB,QAAQ,GAAGjB,gBAAH,GAAsBD,gBAAhD;IAEA,MAAMqB,UAAU,GAAG;MACfd,YADe;MAEfC,UAFe;MAGfC,SAHe;MAIfC,SAJe;MAKfC,QALe;MAMfC,UANe;MAOfC,QAPe;MAQfG,cARe;MASfC;IATe,CAAnB;IAYA,MAAMK,OAAO,GAAGP,MAAM,KAAKQ,SAAX,GACV;MACEC,WAAW,EAAElB,OAAO,CAACS,MAAM,CAACU,IAAR,CADtB;MAEEC,UAAU,EAAEpB,OAAO,CAACS,MAAM,CAACY,GAAR,CAFrB;MAGEC,YAAY,EAAEtB,OAAO,CAACS,MAAM,CAACc,KAAR,CAHvB;MAIEC,aAAa,EAAExB,OAAO,CAACS,MAAM,CAACgB,MAAR;IAJxB,CADU,GAOVR,SAPN;IASA,oBACI,6BAAC,iBAAD;MACI,QAAQ,EAAET,QADd;MAEI,KAAK,EAAE,IAAAkB,WAAA,EAAI,CACPjC,SADO,EAEPsB,UAFO,EAGPC,OAHO,EAIPH,KAJO,CAAJ;IAFX,GAQQC,UARR,EADJ;EAYH;;EAEDlB,OAAO,CAAC+B,WAAR,GAAsBlC,SAAS,KAAK,KAAd,GAAsB,KAAtB,GAA8B,QAApD;EAEA,OAAOG,OAAP;AACH"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["FlexboxProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport type { EdgeInsetsType } from '../styles';\n\nexport default interface FlexboxProps extends OverridableComponentProps<ViewProps, {\n /**\n * Controls how rows align in the cross direction.\n * @default 'stretch'\n */\n alignContent?: FlexStyle['alignContent'];\n\n /**\n * Aligns children in the cross direction.\n * @default 'stretch'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * Controls how a child aligns in the cross direction,\n * overriding the `alignItems` of the parent.\n * @default 'auto'\n */\n alignSelf?: FlexStyle['alignSelf'];\n\n /**\n * Providing the default size of an item along the main axis.\n */\n flexBasis?: FlexStyle['flexBasis'];\n\n /**\n * Describes how any space within a container should be distributed\n * among its children along the main axis.\n */\n flexGrow?: FlexStyle['flexGrow'];\n\n /**\n * Describes how to shrink children along the main axis in the case\n * in which the total size of the children overflows the size of the\n * container on the main axis.\n */\n flexShrink?: FlexStyle['flexShrink'];\n\n /**\n * Controls whether children can wrap around after they hit\n * the end of a flex container.\n * @default 'nowrap'\n */\n flexWrap?: FlexStyle['flexWrap'];\n\n /**\n * Content of this component.\n */\n children: React.ReactNode;\n\n /**\n * The amount of space by which to inset the child.\n */\n insets?: EdgeInsetsType;\n\n /**\n * Aligns children in the main direction.\n * @default 'flex-start'\n */\n justifyContent?: FlexStyle['justifyContent'];\n\n /**\n * Controls how children are measured and displayed.\n * @default 'visible'\n */\n overflow?: FlexStyle['overflow'];\n\n /**\n * Reverse flex direction.\n * @default false\n */\n reversed?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default as createFlexbox } from './Flexbox';\nexport type { default as FlexboxProps } from './FlexboxProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default as createFlexbox } from './Flexbox';\nexport type { default as FlexboxProps } from './FlexboxProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -13,9 +13,18 @@ var _ButtonBase = _interopRequireDefault(require("../ButtonBase"));
13
13
 
14
14
  var _styles = require("../styles");
15
15
 
16
+ var _utils = require("../utils");
17
+
16
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
19
 
18
- 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); }
20
+ 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); }
21
+
22
+ const iconSizes = {
23
+ tiny: 16,
24
+ small: 20,
25
+ medium: 24,
26
+ large: 28
27
+ };
19
28
 
20
29
  const useStyles = function () {
21
30
  const theme = (0, _styles.useTheme)();
@@ -42,9 +51,10 @@ function IconButton(props) {
42
51
  } = props;
43
52
  const theme = (0, _styles.useTheme)();
44
53
  const styles = useStyles();
45
- const icon = (0, _styles.cloneSvgIcon)(children, {
46
- color: theme.palette[color].main,
47
- size
54
+ const icon = (0, _utils.cloneElementSafely)(children, {
55
+ width: iconSizes[size],
56
+ height: iconSizes[size],
57
+ color: color
48
58
  });
49
59
  const fontStyle = (0, _styles.createFontStyle)(theme, {
50
60
  selector: typo => typo.caption1,
@@ -1 +1 @@
1
- {"version":3,"sources":["IconButton.tsx"],"names":["useStyles","theme","root","flexDirection","justifyContent","alignItems","padding","spacing","IconButton","props","children","color","disabled","label","onPress","size","style","otherProps","styles","icon","palette","main","fontStyle","selector","typo","caption1","labelStyle","rootStyle","handlePress"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAKA,MAAMA,SAAsC,GAAG,YAA8B;AACzE,QAAMC,KAAK,GAAG,uBAAd;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,aAAa,EAAE,QADb;AAEFC,MAAAA,cAAc,EAAE,QAFd;AAGFC,MAAAA,UAAU,EAAE,QAHV;AAIFC,MAAAA,OAAO,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd;AAJP;AADH,GAAP;AAQH,CAXD;;AAae,SAASC,UAAT,CAAoBC,KAApB,EAA4C;AACvD,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,KAAK,GAAG,SAFN;AAGFC,IAAAA,QAAQ,GAAG,KAHT;AAIFC,IAAAA,KAJE;AAKFC,IAAAA,OALE;AAMFC,IAAAA,IAAI,GAAG,QANL;AAOFC,IAAAA,KAPE;AAQF,OAAGC;AARD,MASFR,KATJ;AAWA,QAAMR,KAAK,GAAG,uBAAd;AACA,QAAMiB,MAAM,GAAGlB,SAAS,EAAxB;AAEA,QAAMmB,IAAI,GAAG,0BAAaT,QAAb,EAAuB;AAChCC,IAAAA,KAAK,EAAEV,KAAK,CAACmB,OAAN,CAAcT,KAAd,EAAqBU,IADI;AAEhCN,IAAAA;AAFgC,GAAvB,CAAb;AAKA,QAAMO,SAAS,GAAG,6BAAgBrB,KAAhB,EAAuB;AACrCsB,IAAAA,QAAQ,EAAGC,IAAD,IAAUA,IAAI,CAACC,QADY;AAErCd,IAAAA,KAAK,EAAEV,KAAK,CAACmB,OAAN,CAAcT,KAAd,EAAqBU;AAFS,GAAvB,CAAlB;AAKA,QAAMK,UAAU,GAAG,iBAAI,CACnBJ,SADmB,CAAJ,CAAnB;AAIA,QAAMK,SAAS,GAAG,iBAAI,CAClBT,MAAM,CAAChB,IADW,EAElBc,KAFkB,CAAJ,CAAlB;;AAKA,QAAMY,WAAW,GAAG,YAAY;AAC5B,QAAIhB,QAAJ,EAAc;AACV;AACH;;AACD,QAAIE,OAAJ,EAAa;AACTA,MAAAA,OAAO;AACP;AACH;AACJ,GARD;;AAUA,sBACI,6BAAC,mBAAD;AACI,IAAA,QAAQ,EAAEF,QADd;AAEI,IAAA,OAAO,EAAEgB,WAFb;AAGI,IAAA,KAAK,EAAED;AAHX,KAIQV,UAJR,GAMKE,IANL,EAQKN,KAAK,gBACF,6BAAC,iBAAD;AACI,IAAA,QAAQ,EAAEA,KADd;AAEI,IAAA,KAAK,EAAEa;AAFX,IADE,GAKF,IAbR,CADJ;AAiBH;;AAAA","sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { cloneSvgIcon, createFontStyle, css, useTheme } from '../styles';\nimport type IconButtonProps from './IconButtonProps';\n\ntype IconButtonStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<IconButtonStyles> = function (): IconButtonStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n padding: theme.spacing(1),\n },\n };\n};\n\nexport default function IconButton(props: IconButtonProps) {\n const {\n children,\n color = 'primary',\n disabled = false,\n label,\n onPress,\n size = 'medium',\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n const styles = useStyles();\n\n const icon = cloneSvgIcon(children, {\n color: theme.palette[color].main,\n size,\n });\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption1,\n color: theme.palette[color].main,\n });\n\n const labelStyle = css([\n fontStyle,\n ]);\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const handlePress = async () => {\n if (disabled) {\n return;\n }\n if (onPress) {\n onPress();\n return;\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {icon}\n\n {label ? (\n <Text\n children={label}\n style={labelStyle}\n />\n ) : null}\n </ButtonBase>\n );\n};\n"]}
1
+ {"version":3,"names":["iconSizes","tiny","small","medium","large","useStyles","theme","useTheme","root","flexDirection","justifyContent","alignItems","padding","spacing","IconButton","props","children","color","disabled","label","onPress","size","style","otherProps","styles","icon","cloneElementSafely","width","height","fontStyle","createFontStyle","selector","typo","caption1","palette","main","labelStyle","css","rootStyle","handlePress"],"sources":["IconButton.tsx"],"sourcesContent":["import React from 'react';\nimport { Text } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { createFontStyle, css, useTheme } from '../styles';\nimport { cloneElementSafely } from '../utils';\nimport type IconButtonProps from './IconButtonProps';\nimport type { IconButtonSize } from './IconButtonProps';\n\ntype IconButtonStyles = NamedStylesStringUnion<'root'>;\n\ntype IconSizes = { [n in IconButtonSize]: number };\n\nconst iconSizes: IconSizes = {\n tiny: 16,\n small: 20,\n medium: 24,\n large: 28,\n};\n\nconst useStyles: UseStyles<IconButtonStyles> = function (): IconButtonStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n padding: theme.spacing(1),\n },\n };\n};\n\nexport default function IconButton(props: IconButtonProps) {\n const {\n children,\n color = 'primary',\n disabled = false,\n label,\n onPress,\n size = 'medium',\n style,\n ...otherProps\n } = props;\n\n const theme = useTheme();\n const styles = useStyles();\n\n const icon = cloneElementSafely(children, {\n width: iconSizes[size],\n height: iconSizes[size],\n color: color,\n });\n\n const fontStyle = createFontStyle(theme, {\n selector: (typo) => typo.caption1,\n color: theme.palette[color].main,\n });\n\n const labelStyle = css([\n fontStyle,\n ]);\n\n const rootStyle = css([\n styles.root,\n style,\n ]);\n\n const handlePress = async () => {\n if (disabled) {\n return;\n }\n if (onPress) {\n onPress();\n return;\n }\n };\n\n return (\n <ButtonBase\n disabled={disabled}\n onPress={handlePress}\n style={rootStyle}\n {...otherProps}\n >\n {icon}\n\n {label ? (\n <Text\n children={label}\n style={labelStyle}\n />\n ) : null}\n </ButtonBase>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;AAQA,MAAMA,SAAoB,GAAG;EACzBC,IAAI,EAAE,EADmB;EAEzBC,KAAK,EAAE,EAFkB;EAGzBC,MAAM,EAAE,EAHiB;EAIzBC,KAAK,EAAE;AAJkB,CAA7B;;AAOA,MAAMC,SAAsC,GAAG,YAA8B;EACzE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,aAAa,EAAE,QADb;MAEFC,cAAc,EAAE,QAFd;MAGFC,UAAU,EAAE,QAHV;MAIFC,OAAO,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;IAJP;EADH,CAAP;AAQH,CAXD;;AAae,SAASC,UAAT,CAAoBC,KAApB,EAA4C;EACvD,MAAM;IACFC,QADE;IAEFC,KAAK,GAAG,SAFN;IAGFC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names":[],"sources":["IconButtonProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { CommonComponentColor, OverridableComponentProps } from '../types';\n\nexport type IconButtonColor = CommonComponentColor;\n\nexport type IconButtonSize = 'medium' | 'large' | 'small' | 'tiny';\n\nexport default interface IconButtonProps extends OverridableComponentProps<ButtonBaseProps, {\n /**\n * The icon element.\n */\n children: React.ReactElement;\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * @default 'primary'\n */\n color?: IconButtonColor;\n\n /**\n * If present, this is typography displayed at the bottom of the icon.\n */\n label?: string;\n\n /**\n * The size of the button.\n * @default 'medium'\n */\n size?: IconButtonSize;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './IconButton';\nexport type { default as IconButtonProps } from './IconButtonProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -15,7 +15,7 @@ var _styles = require("../styles");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- 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); }
18
+ 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); }
19
19
 
20
20
  const useStyles = function () {
21
21
  const theme = (0, _styles.useTheme)();
@@ -47,19 +47,31 @@ function Image(props) {
47
47
  source,
48
48
  style,
49
49
  square = false,
50
+ onLoad,
51
+ onError,
50
52
  ...otherProps
51
53
  } = props;
52
54
 
53
55
  const [failed, setFailed] = _react.default.useState(false);
54
56
 
55
57
  const styles = useStyles();
58
+
59
+ const handleError = () => {
60
+ if (onError) {
61
+ onError();
62
+ }
63
+
64
+ setFailed(true);
65
+ };
66
+
56
67
  return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
57
68
  style: (0, _styles.css)([styles.root, !disableOutline ? styles.outlined : undefined, !disablePlaceholder ? styles.placeholder : undefined, !square ? styles.rounded : undefined, style])
58
69
  }, otherProps), failed ? /*#__PURE__*/_react.default.createElement(_reactNative.Text, null, alt) : /*#__PURE__*/_react.default.createElement(_ImageCore.default, {
59
70
  alt: alt,
60
71
  height: '100%',
61
72
  loading: loading,
62
- onError: () => setFailed(true),
73
+ onError: handleError,
74
+ onLoad: onLoad,
63
75
  resizeMode: resizeMode,
64
76
  source: source,
65
77
  width: '100%'
@@ -1 +1 @@
1
- {"version":3,"sources":["Image.tsx"],"names":["useStyles","theme","root","rounded","borderRadius","shape","roundness","overflow","placeholder","backgroundColor","palette","paper","grey","outlined","borderWidth","StyleSheet","hairlineWidth","borderStyle","borderColor","Image","props","alt","disableOutline","disablePlaceholder","loading","overlaidChildren","resizeMode","source","style","square","otherProps","failed","setFailed","React","useState","styles","undefined","absoluteFill"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAWA,MAAMA,SAAiC,GAAG,YAAyB;AAC/D,QAAMC,KAAK,GAAG,uBAAd;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE,EADH;AAEHC,IAAAA,OAAO,EAAE;AACLC,MAAAA,YAAY,EAAEH,KAAK,CAACI,KAAN,CAAYC,SADrB;AAELC,MAAAA,QAAQ,EAAE;AAFL,KAFN;AAMHC,IAAAA,WAAW,EAAE;AACTC,MAAAA,eAAe,EAAER,KAAK,CAACS,OAAN,CAAcC,KAAd,CAAoBC;AAD5B,KANV;AASHC,IAAAA,QAAQ,EAAE;AACNC,MA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gB,gBACb,6BAAC,iBAAD;AAAM,IAAA,KAAK,EAAEV,mBAAWsB;AAAxB,KACKZ,gBADL,CADa,GAIb,IA5BR,CADJ;AAgCH;;AAAA","sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ImageCore from '../ImageCore';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type ImageProps from './ImageProps';\n\ntype ImageStyleKeys =\n | 'root'\n | 'rounded'\n | 'placeholder'\n | 'outlined';\n\ntype ImageStyles = NamedStylesStringUnion<ImageStyleKeys>;\n\nconst useStyles: UseStyles<ImageStyles> = function (): ImageStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rounded: {\n borderRadius: theme.shape.roundness,\n overflow: 'hidden',\n },\n placeholder: {\n backgroundColor: theme.palette.paper.grey,\n },\n outlined: {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.paper.grey,\n },\n };\n};\n\nexport default function Image(props: ImageProps) {\n const {\n alt,\n disableOutline,\n disablePlaceholder,\n loading = 'lazy',\n overlaidChildren,\n resizeMode = 'cover',\n source,\n style,\n square = false,\n ...otherProps\n } = props;\n\n const [failed, setFailed] = React.useState(false);\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n !disableOutline ? styles.outlined : undefined,\n !disablePlaceholder ? styles.placeholder : undefined,\n !square ? styles.rounded : undefined,\n style,\n ])}\n {...otherProps}\n >\n {failed ? (\n <Text>{alt}</Text>\n ) : (\n <ImageCore\n alt={alt}\n height={'100%'}\n loading={loading}\n onError={() => setFailed(true)}\n resizeMode={resizeMode}\n source={source}\n width={'100%'}\n />\n )}\n\n {overlaidChildren ? (\n <View style={StyleSheet.absoluteFill}>\n {overlaidChildren}\n </View>\n ) : null}\n </View>\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","rounded","borderRadius","shape","roundness","overflow","placeholder","backgroundColor","palette","paper","grey","outlined","borderWidth","StyleSheet","hairlineWidth","borderStyle","borderColor","Image","props","alt","disableOutline","disablePlaceholder","loading","overlaidChildren","resizeMode","source","style","square","onLoad","onError","otherProps","failed","setFailed","React","useState","styles","handleError","css","undefined","absoluteFill"],"sources":["Image.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ImageCore from '../ImageCore';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport type ImageProps from './ImageProps';\n\ntype ImageStyleKeys =\n | 'root'\n | 'rounded'\n | 'placeholder'\n | 'outlined';\n\ntype ImageStyles = NamedStylesStringUnion<ImageStyleKeys>;\n\nconst useStyles: UseStyles<ImageStyles> = function (): ImageStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rounded: {\n borderRadius: theme.shape.roundness,\n overflow: 'hidden',\n },\n placeholder: {\n backgroundColor: theme.palette.paper.grey,\n },\n outlined: {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.paper.grey,\n },\n };\n};\n\nexport default function Image(props: ImageProps) {\n const {\n alt,\n disableOutline,\n disablePlaceholder,\n loading = 'lazy',\n overlaidChildren,\n resizeMode = 'cover',\n source,\n style,\n square = false,\n onLoad,\n onError,\n ...otherProps\n } = props;\n\n const [failed, setFailed] = React.useState(false);\n\n const styles = useStyles();\n\n const handleError = () => {\n if(onError){\n onError();\n }\n\n setFailed(true);\n }\n\n return (\n <View\n style={css([\n styles.root,\n !disableOutline ? styles.outlined : undefined,\n !disablePlaceholder ? styles.placeholder : undefined,\n !square ? styles.rounded : undefined,\n style,\n ])}\n {...otherProps}\n >\n {failed ? (\n <Text>{alt}</Text>\n ) : (\n <ImageCore\n alt={alt}\n height={'100%'}\n loading={loading}\n onError={handleError}\n onLoad={onLoad}\n resizeMode={resizeMode}\n source={source}\n width={'100%'}\n />\n )}\n\n {overlaidChildren ? (\n <View style={StyleSheet.absoluteFill}>\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,EAGP,CAACjB,kBAAD,GAAsBc,MAAM,CAAC7B,WAA7B,GAA2CgC,SAHpC,EAIP,CAACX,MAAD,GAAUQ,MAAM,CAAClC,OAAjB,GAA2BqC,SAJpB,EAKPZ,KALO,CAAJ;EADX,GAQQI,UARR,GAUKC,MAAM,gBACH,6BAAC,iBAAD,QAAOZ,GAAP,CADG,gBAGH,6BAAC,kBAAD;IACI,GAAG,EAAEA,GADT;IAEI,MAAM,EAAE,MAFZ;IAGI,OAAO,EAAEG,OAHb;IAII,OAAO,EAAEc,WAJb;IAKI,MAAM,EAAER,MALZ;IAMI,UAAU,EAAEJ,UANhB;IAOI,MAAM,EAAEC,MAPZ;IAQI,KAAK,EAAE;EARX,EAbR,EAyBKF,gBAAgB,gBACb,6BAAC,iBAAD;IAAM,KAAK,EAAEV,kBAAA,CAAW0B;EAAxB,GACKhB,gBADL,CADa,GAIb,IA7BR,CADJ;AAiCH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ImageProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\nimport type { ImageSource, Loading, ResizeMode } from '../ImageCore';\n\nexport default interface ImageProps extends OverridableComponentProps<ViewProps, {\n /**\n * Indicating the alternate fallback content to be displayed\n * if the image has not been loaded.\n */\n alt?: string;\n\n /**\n * If `true`, the image outline is not rendered.\n * @default false\n */\n disableOutline?: boolean;\n\n /**\n * If `true`, the placeholder is not rendered.\n * @default false\n */\n disablePlaceholder?: boolean;\n\n /**\n * Web only. Loading the document by determining whether to load\n * the image immediately (`eager`) or on an as-needed basis (`lazy`).\n * On React Native, it always works as `lazy`.\n * @default 'lazy'\n */\n loading?: Loading;\n\n /**\n * error event handler\n */\n onError?: () => void;\n\n /**\n * image loaded event handler\n */\n onLoad?: () => void;\n\n /**\n * The children on top this image.\n */\n overlaidChildren?: React.ReactNode;\n\n /**\n * Determines how to resize the image when the frame doesn't match the raw image dimensions.\n * @default 'cover'\n */\n resizeMode?: ResizeMode;\n\n /**\n * The image source.\n */\n source: ImageSource;\n\n /**\n * If `true`, rounded corners are disabled.\n * @default false\n */\n square?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Image';\nexport type { default as ImageProps } from './ImageProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Image';\nexport type { default as ImageProps } from './ImageProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageCoreNative.ios.tsx"],"names":["AnimatedFastImage","Animated","createAnimatedComponent","FastImage","ImageCore","props","height","onError","onLoad","resizeMode","source","width","style","opacity","React","useState","Value","handleLoad","timing","toValue","duration","useNativeDriver","start","uri"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAGA,MAAMA,iBAAiB,GAAGC,sBAASC,uBAAT,CAAiCC,6BAAjC,CAA1B;;AAEe,SAASC,SAAT,CAAmBC,KAAnB,EAA0C;AACrD,QAAM;AACFC,IAAAA,MADE;AAEFC,IAAAA,OAFE;AAGFC,IAAAA,MAHE;AAIFC,IAAAA,UAJE;AAKFC,IAAAA,MALE;AAMFC,IAAAA;AANE,MAOFN,KAPJ;AASA,QAAMO,KAAK,GAAG;AAAED,IAAAA,KAAF;AAASL,IAAAA;AAAT,GAAd;;AAEA,QAAM,CAACO,OAAD,IAAYC,eAAMC,QAAN,CAAe,MAAM,IAAId,sBAASe,KAAb,CAAmB,CAAnB,CAArB,CAAlB;;AAEA,QAAMC,UAAU,GAAG,MAAM;AACrBhB,0BAASiB,MAAT,CAAgBL,OAAhB,EAAyB;AACrBM,MAAAA,OAAO,EAAE,CADY;AAErBC,MAAAA,QAAQ,EAAE,GAFW;AAGrBC,MAAAA,eAAe,EAAE;AAHI,KAAzB,EAIGC,KAJH;;AAMA,QAAId,MAAJ,EAAY;AACRA,MAAAA,MAAM;AACT;AACJ,GAVD;;AAYA,sBACI,6BAAC,iBAAD;AACI,IAAA,OAAO,EAAED,OADb;AAEI,IAAA,MAAM,EAAEU,UAFZ;AAGI,IAAA,UAAU,EAAER,UAHhB;AAII,IAAA,MAAM,EAAE;AAAEc,MAAAA,GAAG,EAAEb,MAAM,CAACa;AAAd,KAJZ;AAKI,IAAA,KAAK,EAAE,CACHX,KADG,EAEH;AAAEC,MAAAA;AAAF,KAFG;AALX,IADJ;AAYH;;AAAA","sourcesContent":["import React from 'react';\nimport { Animated } from 'react-native';\nimport FastImage from 'react-native-fast-image';\nimport type ImageCoreProps from './ImageCoreProps';\n\nconst AnimatedFastImage = Animated.createAnimatedComponent(FastImage);\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n height,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const style = { width, height };\n\n const [opacity] = React.useState(() => new Animated.Value(0));\n\n const handleLoad = () => {\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200,\n useNativeDriver: true,\n }).start();\n\n if (onLoad) {\n onLoad();\n }\n };\n\n return (\n <AnimatedFastImage\n onError={onError}\n onLoad={handleLoad}\n resizeMode={resizeMode}\n source={{ uri: source.uri }}\n style={[\n style,\n { opacity },\n ]}\n />\n );\n};\n"]}
1
+ {"version":3,"names":["AnimatedFastImage","Animated","createAnimatedComponent","FastImage","ImageCore","props","height","onError","onLoad","resizeMode","source","width","style","opacity","React","useState","Value","handleLoad","timing","toValue","duration","useNativeDriver","start","uri"],"sources":["ImageCoreNative.ios.tsx"],"sourcesContent":["import React from 'react';\nimport { Animated } from 'react-native';\nimport FastImage from 'react-native-fast-image';\nimport type ImageCoreProps from './ImageCoreProps';\n\nconst AnimatedFastImage = Animated.createAnimatedComponent(FastImage);\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n height,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const style = { width, height };\n\n const [opacity] = React.useState(() => new Animated.Value(0));\n\n const handleLoad = () => {\n Animated.timing(opacity, {\n toValue: 1,\n duration: 200,\n useNativeDriver: true,\n }).start();\n\n if (onLoad) {\n onLoad();\n }\n };\n\n return (\n <AnimatedFastImage\n onError={onError}\n onLoad={handleLoad}\n resizeMode={resizeMode}\n source={{ uri: source.uri }}\n style={[\n style,\n { opacity },\n ]}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAGA,MAAMA,iBAAiB,GAAGC,qBAAA,CAASC,uBAAT,CAAiCC,6BAAjC,CAA1B;;AAEe,SAASC,SAAT,CAAmBC,KAAnB,EAA0C;EACrD,MAAM;IACFC,MADE;IAEFC,OAFE;IAGFC,MAHE;IAIFC,UAJE;IAKFC,MALE;IAMFC;EANE,IAOFN,KAPJ;EASA,MAAMO,KAAK,GAAG;IAAED,KAAF;IAASL;EAAT,CAAd;;EAEA,MAAM,CAACO,OAAD,IAAYC,cAAA,CAAMC,QAAN,CAAe,MAAM,IAAId,qBAAA,CAASe,KAAb,CAAmB,CAAnB,CAArB,CAAlB;;EAEA,MAAMC,UAAU,GAAG,MAAM;IACrBhB,qBAAA,CAASiB,MAAT,CAAgBL,OAAhB,EAAyB;MACrBM,OAAO,EAAE,CADY;MAErBC,QAAQ,EAAE,GAFW;MAGrBC,eAAe,EAAE;IAHI,CAAzB,EAIGC,KAJH;;IAMA,IAAId,MAAJ,EAAY;MACRA,MAAM;IACT;EACJ,CAVD;;EAYA,oBACI,6BAAC,iBAAD;IACI,OAAO,EAAED,OADb;IAEI,MAAM,EAAEU,UAFZ;IAGI,UAAU,EAAER,UAHhB;IAII,MAAM,EAAE;MAAEc,GAAG,EAAEb,MAAM,CAACa;IAAd,CAJZ;IAKI,KAAK,EAAE,CACHX,KADG,EAEH;MAAEC;IAAF,CAFG;EALX,EADJ;AAYH;;AAAA"}
@@ -7,10 +7,14 @@ exports.default = ImageCore;
7
7
 
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
 
10
- var _reactNativeReanimated = _interopRequireDefault(require("react-native-reanimated"));
10
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
11
11
 
12
12
  var _reactNativeFastImage = _interopRequireDefault(require("react-native-fast-image"));
13
13
 
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
+
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+
14
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
19
 
16
20
  // @ts-ignore
@@ -33,15 +37,13 @@ function ImageCore(props) {
33
37
  width,
34
38
  height
35
39
  };
36
-
37
- const opacity = _reactNativeReanimated.default.useSharedValue(0);
38
-
39
- const animatedStyle = _reactNativeReanimated.default.useAnimatedStyle(() => ({
40
+ const opacity = (0, _reactNativeReanimated.useSharedValue)(0);
41
+ const animatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => ({
40
42
  opacity: opacity.value
41
43
  }));
42
44
 
43
45
  const handleLoad = () => {
44
- opacity.value = _reactNativeReanimated.default.withTiming(1, animationConfig);
46
+ opacity.value = (0, _reactNativeReanimated.withTiming)(1, animationConfig);
45
47
 
46
48
  if (onLoad) {
47
49
  onLoad();
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageCoreNative.tsx"],"names":["AnimatedFastImage","Animated","createAnimatedComponent","FastImage","animationConfig","duration","ImageCore","props","height","onError","onLoad","resizeMode","source","width","style","opacity","useSharedValue","animatedStyle","useAnimatedStyle","value","handleLoad","withTiming","uri"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;AAGA;AACA,MAAMA,iBAAiB,GAAGC,+BAASC,uBAAT,CAAiCC,6BAAjC,CAA1B;;AAEA,MAAMC,eAA0C,GAAG;AAAEC,EAAAA,QAAQ,EAAE;AAAZ,CAAnD;;AAEe,SAASC,SAAT,CAAmBC,KAAnB,EAA0C;AACrD,QAAM;AACFC,IAAAA,MADE;AAEFC,IAAAA,OAFE;AAGFC,IAAAA,MAHE;AAIFC,IAAAA,UAJE;AAKFC,IAAAA,MALE;AAMFC,IAAAA;AANE,MAOFN,KAPJ;AASA,QAAMO,KAAK,GAAG;AAAED,IAAAA,KAAF;AAASL,IAAAA;AAAT,GAAd;;AAEA,QAAMO,OAAO,GAAGd,+BAASe,cAAT,CAAwB,CAAxB,CAAhB;;AAEA,QAAMC,aAAa,GAAGhB,+BAASiB,gBAAT,CAA0B,OAAO;AACnDH,IAAAA,OAAO,EAAEA,OAAO,CAACI;AADkC,GAAP,CAA1B,CAAtB;;AAIA,QAAMC,UAAU,GAAG,MAAM;AACrBL,IAAAA,OAAO,CAACI,KAAR,GAAgBlB,+BAASoB,UAAT,CAAoB,CAApB,EAAuBjB,eAAvB,CAAhB;;AAEA,QAAIM,MAAJ,EAAY;AACRA,MAAAA,MAAM;AACT;AACJ,GAND;;AAQA,sBACI,6BAAC,iBAAD;AACI,IAAA,OAAO,EAAED,OADb;AAEI,IAAA,MAAM,EAAEW,UAFZ;AAGI,IAAA,UAAU,EAAET,UAHhB;AAII,IAAA,MAAM,EAAE;AAAEW,MAAAA,GAAG,EAAEV,MAAM,CAACU;AAAd,KAJZ;AAKI,IAAA,KAAK,EAAE,CACHL,aADG,EAEHH,KAFG;AALX,IADJ;AAYH;;AAAA","sourcesContent":["import React from 'react';\nimport Animated from 'react-native-reanimated';\nimport FastImage from 'react-native-fast-image';\nimport type ImageCoreProps from './ImageCoreProps';\n\n// @ts-ignore\nconst AnimatedFastImage = Animated.createAnimatedComponent(FastImage);\n\nconst animationConfig: Animated.WithTimingConfig = { duration: 150 };\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n height,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const style = { width, height };\n\n const opacity = Animated.useSharedValue(0);\n\n const animatedStyle = Animated.useAnimatedStyle(() => ({\n opacity: opacity.value,\n }));\n\n const handleLoad = () => {\n opacity.value = Animated.withTiming(1, animationConfig);\n\n if (onLoad) {\n onLoad();\n }\n };\n\n return (\n <AnimatedFastImage\n onError={onError}\n onLoad={handleLoad}\n resizeMode={resizeMode}\n source={{ uri: source.uri }}\n style={[\n animatedStyle,\n style,\n ]}\n />\n );\n};\n"]}
1
+ {"version":3,"names":["AnimatedFastImage","Animated","createAnimatedComponent","FastImage","animationConfig","duration","ImageCore","props","height","onError","onLoad","resizeMode","source","width","style","opacity","useSharedValue","animatedStyle","useAnimatedStyle","value","handleLoad","withTiming","uri"],"sources":["ImageCoreNative.tsx"],"sourcesContent":["import React from 'react';\nimport type { WithTimingConfig } from 'react-native-reanimated';\nimport Animated, { useAnimatedStyle, useSharedValue, withTiming } from 'react-native-reanimated';\nimport FastImage from 'react-native-fast-image';\nimport type ImageCoreProps from './ImageCoreProps';\n\n// @ts-ignore\nconst AnimatedFastImage = Animated.createAnimatedComponent(FastImage);\n\nconst animationConfig: WithTimingConfig = { duration: 150 };\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n height,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const style = { width, height };\n\n const opacity = useSharedValue(0);\n\n const animatedStyle = useAnimatedStyle(() => ({\n opacity: opacity.value,\n }));\n\n const handleLoad = () => {\n opacity.value = withTiming(1, animationConfig);\n\n if (onLoad) {\n onLoad();\n }\n };\n\n return (\n <AnimatedFastImage\n onError={onError}\n onLoad={handleLoad}\n resizeMode={resizeMode}\n source={{ uri: source.uri }}\n style={[\n animatedStyle,\n style,\n ]}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;;;;;;;AAGA;AACA,MAAMA,iBAAiB,GAAGC,8BAAA,CAASC,uBAAT,CAAiCC,6BAAjC,CAA1B;;AAEA,MAAMC,eAAiC,GAAG;EAAEC,QAAQ,EAAE;AAAZ,CAA1C;;AAEe,SAASC,SAAT,CAAmBC,KAAnB,EAA0C;EACrD,MAAM;IACFC,MADE;IAEFC,OAFE;IAGFC,MAHE;IAIFC,UAJE;IAKFC,MALE;IAMFC;EANE,IAOFN,KAPJ;EASA,MAAMO,KAAK,GAAG;IAAED,KAAF;IAASL;EAAT,CAAd;EAEA,MAAMO,OAAO,GAAG,IAAAC,qCAAA,EAAe,CAAf,CAAhB;EAEA,MAAMC,aAAa,GAAG,IAAAC,uCAAA,EAAiB,OAAO;IAC1CH,OAAO,EAAEA,OAAO,CAACI;EADyB,CAAP,CAAjB,CAAtB;;EAIA,MAAMC,UAAU,GAAG,MAAM;IACrBL,OAAO,CAACI,KAAR,GAAgB,IAAAE,iCAAA,EAAW,CAAX,EAAcjB,eAAd,CAAhB;;IAEA,IAAIM,MAAJ,EAAY;MACRA,MAAM;IACT;EACJ,CAND;;EAQA,oBACI,6BAAC,iBAAD;IACI,OAAO,EAAED,OADb;IAEI,MAAM,EAAEW,UAFZ;IAGI,UAAU,EAAET,UAHhB;IAII,MAAM,EAAE;MAAEW,GAAG,EAAEV,MAAM,CAACU;IAAd,CAJZ;IAKI,KAAK,EAAE,CACHL,aADG,EAEHH,KAFG;EALX,EADJ;AAYH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ImageCoreProps.ts"],"sourcesContent":["export interface ImageSource {\n uri: string;\n}\n\nexport type ResizeMode = 'cover' | 'contain';\n\nexport type Loading = 'lazy' | 'eager';\n\nexport default interface ImageCoreProps extends Readonly<{\n alt?: string;\n height?: number | string;\n loading: Loading;\n onError?: () => void;\n onLoad?: () => void;\n resizeMode: ResizeMode;\n source: ImageSource;\n width?: number | string;\n}> {}"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["ImageCoreWeb.tsx"],"names":["ImageCore","props","alt","height","loading","onError","onLoad","resizeMode","source","width","style","objectFit","uri"],"mappings":";;;;;;;AAAA;;;;AAGe,SAASA,SAAT,CAAmBC,KAAnB,EAA0C;AACrD,QAAM;AACFC,IAAAA,GADE;AAEFC,IAAAA,MAFE;AAGFC,IAAAA,OAHE;AAIFC,IAAAA,OAJE;AAKFC,IAAAA,MALE;AAMFC,IAAAA,UANE;AAOFC,IAAAA,MAPE;AAQFC,IAAAA;AARE,MASFR,KATJ;AAWA,QAAMS,KAAK,GAAG;AAAEC,IAAAA,SAAS,EAAEJ;AAAb,GAAd;AAEA,sBACI;AACI,IAAA,GAAG,EAAEL,GADT;AAEI,IAAA,MAAM,EAAEC,MAFZ;AAGI,IAAA,OAAO,EAAEC,OAHb;AAII,IAAA,OAAO,EAAEC,OAJb;AAKI,IAAA,MAAM,EAAEC,MALZ;AAMI,IAAA,GAAG,EAAEE,MAAM,CAACI,GANhB;AAOI,IAAA,KAAK,EAAEF,KAPX;AAQI,IAAA,KAAK,EAAED;AARX,IADJ;AAYH;;AAAA","sourcesContent":["import React from 'react';\nimport type ImageCoreProps from './ImageCoreProps';\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n alt,\n height,\n loading,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const style = { objectFit: resizeMode };\n\n return (\n <img\n alt={alt}\n height={height}\n loading={loading}\n onError={onError}\n onLoad={onLoad}\n src={source.uri}\n style={style}\n width={width}\n />\n );\n};\n"]}
1
+ {"version":3,"names":["ImageCore","props","alt","height","loading","onError","onLoad","resizeMode","source","width","style","objectFit","uri"],"sources":["ImageCoreWeb.tsx"],"sourcesContent":["import React from 'react';\nimport type ImageCoreProps from './ImageCoreProps';\n\nexport default function ImageCore(props: ImageCoreProps) {\n const {\n alt,\n height,\n loading,\n onError,\n onLoad,\n resizeMode,\n source,\n width,\n } = props;\n\n const style = { objectFit: resizeMode };\n\n return (\n <img\n alt={alt}\n height={height}\n loading={loading}\n onError={onError}\n onLoad={onLoad}\n src={source.uri}\n style={style}\n width={width}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;;;AAGe,SAASA,SAAT,CAAmBC,KAAnB,EAA0C;EACrD,MAAM;IACFC,GADE;IAEFC,MAFE;IAGFC,OAHE;IAIFC,OAJE;IAKFC,MALE;IAMFC,UANE;IAOFC,MAPE;IAQFC;EARE,IASFR,KATJ;EAWA,MAAMS,KAAK,GAAG;IAAEC,SAAS,EAAEJ;EAAb,CAAd;EAEA,oBACI;IACI,GAAG,EAAEL,GADT;IAEI,MAAM,EAAEC,MAFZ;IAGI,OAAO,EAAEC,OAHb;IAII,OAAO,EAAEC,OAJb;IAKI,MAAM,EAAEC,MALZ;IAMI,GAAG,EAAEE,MAAM,CAACI,GANhB;IAOI,KAAK,EAAEF,KAPX;IAQI,KAAK,EAAED;EARX,EADJ;AAYH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { default } from './ImageCoreWeb';\nexport * from './ImageCoreProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ImageCoreWeb';\nexport * from './ImageCoreProps';"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.native.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './ImageCoreNative';"]}
1
+ {"version":3,"names":[],"sources":["index.native.ts"],"sourcesContent":["export { default } from './ImageCoreNative';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -17,7 +17,7 @@ var _styles = require("../styles");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- 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); }
20
+ 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); }
21
21
 
22
22
  const useStyles = function () {
23
23
  return {
@@ -58,9 +58,10 @@ function Link(props) {
58
58
  disabled: disabled,
59
59
  onPress: _reactNative.Platform.OS === 'web' ? undefined : handlePress,
60
60
  style: (0, _styles.css)([styles.root, style])
61
- }, ({
62
- hovered
63
- }) => {
61
+ }, _ref => {
62
+ let {
63
+ hovered
64
+ } = _ref;
64
65
  const underlineStyle = underline === 'always' || underline === 'hover' && hovered ? styles.underline : undefined;
65
66
  return /*#__PURE__*/_react.default.createElement(_Typography.default, _extends({
66
67
  href: href,
@@ -1 +1 @@
1
- {"version":3,"sources":["Link.tsx"],"names":["useStyles","root","underline","textDecorationLine","Link","props","disabled","href","onPress","style","otherProps","styles","handlePress","event","Platform","OS","preventDefault","Linking","canOpenURL","openURL","undefined","hovered","underlineStyle"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,S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AER,sBAASC,EAAT,KAAgB,KAAhB,GAAwBH,WAAxB,GAAsCQ;AAHnD,OAIQV,UAJR,EADJ;AAQH,GAlBL,CADJ;AAsBH;;AAAA","sourcesContent":["import React from 'react';\nimport { GestureResponderEvent, Linking, Platform } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Pressable from '../Pressable';\nimport Typography from '../Typography';\nimport { css } from '../styles';\nimport type LinkProps from './LinkProps';\n\ntype LinkStyles = NamedStylesStringUnion<'root' | 'underline'>;\n\nconst useStyles: UseStyles<LinkStyles> = function (): LinkStyles {\n return {\n root: {},\n underline: {\n textDecorationLine: 'underline',\n },\n };\n};\n\nexport default function Link(props: LinkProps) {\n const {\n disabled = false,\n href,\n onPress,\n style,\n underline = 'always',\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const handlePress = async (event: GestureResponderEvent) => {\n if (Platform.OS === 'web') {\n event.preventDefault();\n }\n\n if (onPress) {\n onPress(event);\n return;\n }\n\n if (await Linking.canOpenURL(href)) {\n await Linking.openURL(href);\n }\n };\n\n return (\n <Pressable\n disabled={disabled}\n onPress={Platform.OS === 'web' ? undefined : handlePress}\n style={css([styles.root, style])}\n >\n {({ hovered }) => {\n const underlineStyle = (underline === 'always' || (underline === 'hover' && hovered))\n ? styles.underline\n : undefined;\n\n return (\n <Typography\n href={href}\n style={underlineStyle}\n onPress={Platform.OS === 'web' ? handlePress : undefined}\n {...otherProps}\n />\n );\n }}\n </Pressable>\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","root","underline","textDecorationLine","Link","props","disabled","href","onPress","style","otherProps","styles","handlePress","event","Platform","OS","preventDefault","Linking","canOpenURL","openURL","undefined","css","hovered","underlineStyle"],"sources":["Link.tsx"],"sourcesContent":["import React from 'react';\nimport { GestureResponderEvent, Linking, Platform } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Pressable from '../Pressable';\nimport Typography from '../Typography';\nimport { css } from '../styles';\nimport type LinkProps from './LinkProps';\n\ntype LinkStyles = NamedStylesStringUnion<'root' | 'underline'>;\n\nconst useStyles: UseStyles<LinkStyles> = function (): LinkStyles {\n return {\n root: {},\n underline: {\n textDecorationLine: 'underline',\n },\n };\n};\n\nexport default function Link(props: LinkProps) {\n const {\n disabled = false,\n href,\n onPress,\n style,\n underline = 'always',\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const handlePress = async (event: GestureResponderEvent) => {\n if (Platform.OS === 'web') {\n event.preventDefault();\n }\n\n if (onPress) {\n onPress(event);\n return;\n }\n\n if (await Linking.canOpenURL(href)) {\n await Linking.openURL(href);\n }\n };\n\n return (\n <Pressable\n disabled={disabled}\n onPress={Platform.OS === 'web' ? undefined : handlePress}\n style={css([styles.root, style])}\n >\n {({ hovered }) => {\n const underlineStyle = (underline === 'always' || (underline === 'hover' && hovered))\n ? styles.underline\n : undefined;\n\n return (\n <Typography\n href={href}\n style={underlineStyle}\n onPress={Platform.OS === 'web' ? handlePress : undefined}\n {...otherProps}\n />\n );\n }}\n </Pressable>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAgC,GAAG,YAAwB;EAC7D,OAAO;IACHC,IAAI,EAAE,EADH;IAEHC,SAAS,EAAE;MACPC,kBAAkB,EAAE;IADb;EAFR,CAAP;AAMH,CAPD;;AASe,SAASC,IAAT,CAAcC,KAAd,EAAgC;EAC3C,MAAM;IACFC,QAAQ,GAAG,KADT;IAEFC,IAFE;IAGFC,OAHE;IAIFC,KAJE;IAKFP,SAAS,GAAG,QALV;IAMF,GAAGQ;EAND,IAOFL,KAPJ;EASA,MAAMM,MAAM,GAAGX,SAAS,EAAxB;;EAEA,MAAMY,WAAW,GAAG,MAAOC,KAAP,IAAwC;IACxD,IAAIC,qBAAA,CAASC,EAAT,KAAgB,KAApB,EAA2B;MACvBF,KAAK,CAACG,cAAN;IACH;;IAED,IAAIR,OAAJ,EAAa;MACTA,OAAO,CAACK,KAAD,CAAP;MACA;IACH;;IAED,IAAI,MAAMI,oBAAA,CAAQC,UAAR,CAAmBX,IAAnB,CAAV,EAAoC;MAChC,MAAMU,oBAAA,CAAQE,OAAR,CAAgBZ,IAAhB,CAAN;IACH;EACJ,CAbD;;EAeA,oBACI,6BAAC,kBAAD;IACI,QAAQ,EAAED,QADd;IAEI,OAAO,EAAEQ,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwBK,SAAxB,GAAoCR,WAFjD;IAGI,KAAK,EAAE,IAAAS,WAAA,EAAI,CAACV,MAAM,CAACV,IAAR,EAAcQ,KAAd,CAAJ;EAHX,GAKK,QAAiB;IAAA,IAAhB;MAAEa;IAAF,CAAgB;IACd,MAAMC,cAAc,GAAIrB,SAAS,KAAK,QAAd,IAA2BA,SAAS,KAAK,OAAd,IAAyBoB,OAArD,GACjBX,MAAM,CAACT,SADU,GAEjBkB,SAFN;IAIA,oBACI,6BAAC,mBAAD;MACI,IAAI,EAAEb,IADV;MAEI,KAAK,EAAEgB,cAFX;MAGI,OAAO,EAAET,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwBH,WAAxB,GAAsCQ;IAHnD,GAIQV,UAJR,EADJ;EAQH,CAlBL,CADJ;AAsBH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["LinkProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\n\nexport type LinkUnderline = 'always' | 'hover' | 'none';\n\nexport default interface LinkProps extends OverridableComponentProps<TypographyProps, {\n /**\n * If `true`, the link is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * The hyperlink of the text.\n */\n href: string;\n\n /**\n * Controls when the link should have an underline.\n * @default 'always'\n */\n underline?: LinkUnderline;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Link';\nexport type { default as LinkProps } from './LinkProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Link';\nexport type { default as LinkProps } from './LinkProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -13,7 +13,7 @@ var _Column = _interopRequireDefault(require("../Column"));
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
16
- 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); }
16
+ 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); }
17
17
 
18
18
  function List(props) {
19
19
  const {
@@ -1 +1 @@
1
- {"version":3,"sources":["List.tsx"],"names":["List","props","children","subheader","otherProps","accessibilityRole","Platform","OS","undefined"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAGe,SAASA,IAAT,CAAcC,KAAd,EAAgC;AAC3C,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,SAFE;AAGF,OAAGC;AAHD,MAIFH,KAJJ;AAMA,QAAMI,iBAAiB,GAAGC,sBAASC,EAAT,KAAgB,KAAhB,GAAwB,MAAxB,GAAiCC,SAA3D;AAEA,sBACI,6BAAC,eAAD,CACI;AADJ;AAEI,IAAA,iBAAiB,EAAEH;AAFvB,KAGQD,UAHR,GAKKD,SALL,EAMKD,QANL,CADJ;AAUH;;AAAA","sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Column from '../Column';\nimport type ListProps from './ListProps';\n\nexport default function List(props: ListProps) {\n const {\n children,\n subheader,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'list' : undefined;\n\n return (\n <Column\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n {...otherProps}\n >\n {subheader}\n {children}\n </Column>\n );\n};\n"]}
1
+ {"version":3,"names":["List","props","children","subheader","otherProps","accessibilityRole","Platform","OS","undefined"],"sources":["List.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Column from '../Column';\nimport type ListProps from './ListProps';\n\nexport default function List(props: ListProps) {\n const {\n children,\n subheader,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'list' : undefined;\n\n return (\n <Column\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n {...otherProps}\n >\n {subheader}\n {children}\n </Column>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;;;;;AAGe,SAASA,IAAT,CAAcC,KAAd,EAAgC;EAC3C,MAAM;IACFC,QADE;IAEFC,SAFE;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,MAAxB,GAAiCC,SAA3D;EAEA,oBACI,6BAAC,eAAD,CACI;EADJ;IAEI,iBAAiB,EAAEH;EAFvB,GAGQD,UAHR,GAKKD,SALL,EAMKD,QANL,CADJ;AAUH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListProps.ts"],"sourcesContent":["import React from 'react';\nimport type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\nexport default interface ListProps extends OverridableComponentProps<ColumnProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader?: React.ReactNode;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './List';\nexport type { default as ListProps } from './ListProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './List';\nexport type { default as ListProps } from './ListProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -15,7 +15,7 @@ var _styles = require("../styles");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- 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); }
18
+ 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); }
19
19
 
20
20
  const useStyles = function () {
21
21
  const theme = (0, _styles.useTheme)();
@@ -1 +1 @@
1
- {"version":3,"sources":["ListItem.tsx"],"names":["useStyles","theme","root","flexDirection","paddingVertical","spacing","paddingHorizontal","width","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","Platform","OS","undefined","rootStyle"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAKA,MAAMA,SAAoC,GAAG,YAA4B;AACrE,QAAMC,KAAK,GAAG,uBAAd;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,aAAa,EAAE,KADb;AAEFC,MAAAA,eAAe,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CAFf;AAGFC,MAAAA,iBAAiB,EAAEL,KAAK,CAACI,OAAN,CAAc,CAAd,CAHjB;AAIFE,MAAAA,KAAK,EAAE;AAJL;AADH,GAAP;AAQH,CAXD;;AAae,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;AACnD,QAAM;AACFC,IAAAA,UAAU,GAAG,QADX;AAEFC,IAAAA,MAAM,GAAG,KAFP;AAGFC,IAAAA,QAHE;AAIFC,IAAAA,QAAQ,GAAG,KAJT;AAKFC,IAAAA,OALE;AAMFC,IAAAA,KANE;AAOF,OAAGC;AAPD,MAQFP,KARJ;AAUA,QAAMQ,MAAM,GAAGjB,SAAS,EAAxB;AAEA,QAAMkB,kBAAkB,GAAG;AACvBC,IAAAA,iBAAiB,EAAEC,sBAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SADjC;AAEvB,OAAGN;AAFoB,GAA3B;AAKA,QAAMO,SAAS,GAAG,iBAAI,CAClBN,MAAM,CAACf,IADW,EAElB;AAAEQ,IAAAA;AAAF,GAFkB,EAGlBK,KAHkB,CAAJ,CAAlB;;AAMA,MAAIJ,MAAJ,EAAY;AACR;AAAA;AACI;AACA,mCAAC,iBAAD,EAAUO,kBAAV,eACI,6BAAC,mBAAD;AACI,QAAA,QAAQ,EAAEL,QADd;AAEI,QAAA,OAAO,EAAEC,OAFb;AAGI,QAAA,KAAK,EAAES;AAHX,SAKKX,QALL,CADJ;AAFJ;AAYH;;AAED;AAAA;AACI;AACA,iCAAC,iBAAD;AACI,MAAA,QAAQ,EAAEA,QADd;AAEI,MAAA,KAAK,EAAEW;AAFX,OAGQL,kBAHR;AAFJ;AAQH;;AAAA","sourcesContent":["import React from 'react';\nimport { Platform, View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { css, useTheme } from '../styles';\nimport ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'row',\n paddingVertical: theme.spacing(3),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center',\n button = false,\n children,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const rootStyle = css([\n styles.root,\n { alignItems },\n style,\n ]);\n\n if (button) {\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={rootStyle}\n >\n {children}\n </ButtonBase>\n </View>\n );\n }\n\n return (\n // @ts-ignore\n <View\n children={children}\n style={rootStyle}\n {...rootComponentProps}\n />\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","flexDirection","paddingVertical","spacing","paddingHorizontal","width","ListItem","props","alignItems","button","children","disabled","onPress","style","otherProps","styles","rootComponentProps","accessibilityRole","Platform","OS","undefined","rootStyle","css"],"sources":["ListItem.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform, View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport ButtonBase from '../ButtonBase';\nimport { css, useTheme } from '../styles';\nimport ListItemProps from './ListItemProps';\n\ntype ListItemStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemStyles> = function (): ListItemStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexDirection: 'row',\n paddingVertical: theme.spacing(3),\n paddingHorizontal: theme.spacing(4),\n width: '100%',\n },\n };\n};\n\nexport default function ListItem(props: ListItemProps) {\n const {\n alignItems = 'center',\n button = false,\n children,\n disabled = false,\n onPress,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const rootComponentProps = {\n accessibilityRole: Platform.OS === 'web' ? 'listitem' : undefined,\n ...otherProps,\n };\n\n const rootStyle = css([\n styles.root,\n { alignItems },\n style,\n ]);\n\n if (button) {\n return (\n // @ts-ignore\n <View {...rootComponentProps}>\n <ButtonBase\n disabled={disabled}\n onPress={onPress}\n style={rootStyle}\n >\n {children}\n </ButtonBase>\n </View>\n );\n }\n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;AAQH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { FlexStyle, ViewProps } from 'react-native';\nimport type { ButtonBaseProps } from '../ButtonBase';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemProps extends OverridableComponentProps<React.PropsWithChildren<ViewProps>, {\n /**\n * Aligns children vertical direction.\n * @default 'center'\n */\n alignItems?: FlexStyle['alignItems'];\n\n /**\n * If `true`, the list item is a button (using `ButtonBase`).\n * @default false\n */\n button?: boolean;\n\n /**\n * Whether to prevent interaction with the ButtonBase.\n * @default false\n */\n disabled?: ButtonBaseProps['disabled'];\n\n /**\n * Function to execute on press. If not set, will cause the ButtonBase to be disabled.\n */\n onPress?: ButtonBaseProps['onPress'];\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './ListItem';\nexport type { default as ListItemProps } from './ListItemProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ListItem';\nexport type { default as ListItemProps } from './ListItemProps';"],"mappings":";;;;;;;;;;;;AAAA"}