@fountain-ui/core 1.19.0 → 2.0.0-beta.10

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 (781) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/build/commonjs/Accordion/Accordion.js +5 -13
  3. package/build/commonjs/Accordion/Accordion.js.map +1 -1
  4. package/build/commonjs/Accordion/AccordionProps.js.map +1 -1
  5. package/build/commonjs/Accordion/index.js.map +1 -1
  6. package/build/commonjs/AppBar/AppBar.js +9 -14
  7. package/build/commonjs/AppBar/AppBar.js.map +1 -1
  8. package/build/commonjs/AppBar/AppBarProps.js.map +1 -1
  9. package/build/commonjs/AppBar/index.js.map +1 -1
  10. package/build/commonjs/AspectRatio/AspectRatioNative.js +1 -1
  11. package/build/commonjs/AspectRatio/AspectRatioNative.js.map +1 -1
  12. package/build/commonjs/AspectRatio/AspectRatioProps.js.map +1 -1
  13. package/build/commonjs/AspectRatio/AspectRatioWeb.js +1 -1
  14. package/build/commonjs/AspectRatio/AspectRatioWeb.js.map +1 -1
  15. package/build/commonjs/AspectRatio/index.js.map +1 -1
  16. package/build/commonjs/AspectRatio/index.native.js.map +1 -1
  17. package/build/commonjs/AspectRatio/utils.js +1 -1
  18. package/build/commonjs/AspectRatio/utils.js.map +1 -1
  19. package/build/commonjs/Avatar/Avatar.js.map +1 -1
  20. package/build/commonjs/Avatar/AvatarProps.js.map +1 -1
  21. package/build/commonjs/Avatar/index.js.map +1 -1
  22. package/build/commonjs/Badge/Badge.js +1 -1
  23. package/build/commonjs/Badge/Badge.js.map +1 -1
  24. package/build/commonjs/Badge/BadgeProps.js.map +1 -1
  25. package/build/commonjs/Badge/index.js.map +1 -1
  26. package/build/commonjs/Button/Button.js +15 -9
  27. package/build/commonjs/Button/Button.js.map +1 -1
  28. package/build/commonjs/Button/ButtonProps.js.map +1 -1
  29. package/build/commonjs/Button/index.js.map +1 -1
  30. package/build/commonjs/ButtonBase/ButtonBase.ios.js +4 -2
  31. package/build/commonjs/ButtonBase/ButtonBase.ios.js.map +1 -1
  32. package/build/commonjs/ButtonBase/ButtonBase.js +17 -17
  33. package/build/commonjs/ButtonBase/ButtonBase.js.map +1 -1
  34. package/build/commonjs/ButtonBase/ButtonBaseProps.js.map +1 -1
  35. package/build/commonjs/ButtonBase/index.js.map +1 -1
  36. package/build/commonjs/ButtonBase/useDisabledReaction/index.js +2 -4
  37. package/build/commonjs/ButtonBase/useDisabledReaction/index.js.map +1 -1
  38. package/build/commonjs/ButtonBase/useDisabledReaction/index.native.js.map +1 -1
  39. package/build/commonjs/Card/Card.js +1 -1
  40. package/build/commonjs/Card/Card.js.map +1 -1
  41. package/build/commonjs/Card/CardProps.js.map +1 -1
  42. package/build/commonjs/Card/index.js.map +1 -1
  43. package/build/commonjs/CardActions/CardActions.js +1 -1
  44. package/build/commonjs/CardActions/CardActions.js.map +1 -1
  45. package/build/commonjs/CardActions/CardActionsProps.js.map +1 -1
  46. package/build/commonjs/CardActions/index.js.map +1 -1
  47. package/build/commonjs/CardContent/CardContent.js +1 -1
  48. package/build/commonjs/CardContent/CardContent.js.map +1 -1
  49. package/build/commonjs/CardContent/CardContentProps.js.map +1 -1
  50. package/build/commonjs/CardContent/index.js.map +1 -1
  51. package/build/commonjs/CardMedia/CardMedia.js +1 -1
  52. package/build/commonjs/CardMedia/CardMedia.js.map +1 -1
  53. package/build/commonjs/CardMedia/CardMediaProps.js.map +1 -1
  54. package/build/commonjs/CardMedia/index.js.map +1 -1
  55. package/build/commonjs/Checkbox/Checkbox.js +8 -3
  56. package/build/commonjs/Checkbox/Checkbox.js.map +1 -1
  57. package/build/commonjs/Checkbox/CheckboxProps.js.map +1 -1
  58. package/build/commonjs/Checkbox/index.js.map +1 -1
  59. package/build/commonjs/Chip/Chip.js +11 -10
  60. package/build/commonjs/Chip/Chip.js.map +1 -1
  61. package/build/commonjs/Chip/ChipProps.js.map +1 -1
  62. package/build/commonjs/Chip/index.js.map +1 -1
  63. package/build/commonjs/CircularProgress/CircularProgress.js +4 -7
  64. package/build/commonjs/CircularProgress/CircularProgress.js.map +1 -1
  65. package/build/commonjs/CircularProgress/index.js.map +1 -1
  66. package/build/commonjs/Column/Column.js.map +1 -1
  67. package/build/commonjs/Column/ColumnProps.js.map +1 -1
  68. package/build/commonjs/Column/index.js.map +1 -1
  69. package/build/commonjs/Dialog/Dialog.js +1 -1
  70. package/build/commonjs/Dialog/Dialog.js.map +1 -1
  71. package/build/commonjs/Dialog/DialogProps.js.map +1 -1
  72. package/build/commonjs/Dialog/index.js.map +1 -1
  73. package/build/commonjs/DialogActions/DialogActions.js +1 -1
  74. package/build/commonjs/DialogActions/DialogActions.js.map +1 -1
  75. package/build/commonjs/DialogActions/DialogActionsProps.js.map +1 -1
  76. package/build/commonjs/DialogActions/index.js.map +1 -1
  77. package/build/commonjs/DialogContent/DialogContent.js +1 -1
  78. package/build/commonjs/DialogContent/DialogContent.js.map +1 -1
  79. package/build/commonjs/DialogContent/DialogContentProps.js.map +1 -1
  80. package/build/commonjs/DialogContent/index.js.map +1 -1
  81. package/build/commonjs/DialogMedia/DialogMedia.js +1 -1
  82. package/build/commonjs/DialogMedia/DialogMedia.js.map +1 -1
  83. package/build/commonjs/DialogMedia/DialogMediaProps.js.map +1 -1
  84. package/build/commonjs/DialogMedia/index.js.map +1 -1
  85. package/build/commonjs/DialogTitle/DialogTitle.js +1 -1
  86. package/build/commonjs/DialogTitle/DialogTitle.js.map +1 -1
  87. package/build/commonjs/DialogTitle/DialogTitleProps.js.map +1 -1
  88. package/build/commonjs/DialogTitle/index.js.map +1 -1
  89. package/build/commonjs/Divider/Divider.js +1 -1
  90. package/build/commonjs/Divider/Divider.js.map +1 -1
  91. package/build/commonjs/Divider/DividerProps.js.map +1 -1
  92. package/build/commonjs/Divider/index.js.map +1 -1
  93. package/build/commonjs/Fab/Fab.js +11 -4
  94. package/build/commonjs/Fab/Fab.js.map +1 -1
  95. package/build/commonjs/Fab/FabProps.js.map +1 -1
  96. package/build/commonjs/Fab/index.js.map +1 -1
  97. package/build/commonjs/Flexbox/Flexbox.js +1 -1
  98. package/build/commonjs/Flexbox/Flexbox.js.map +1 -1
  99. package/build/commonjs/Flexbox/FlexboxProps.js.map +1 -1
  100. package/build/commonjs/Flexbox/index.js.map +1 -1
  101. package/build/commonjs/IconButton/IconButton.js +14 -4
  102. package/build/commonjs/IconButton/IconButton.js.map +1 -1
  103. package/build/commonjs/IconButton/IconButtonProps.js.map +1 -1
  104. package/build/commonjs/IconButton/index.js.map +1 -1
  105. package/build/commonjs/Image/Image.js +14 -2
  106. package/build/commonjs/Image/Image.js.map +1 -1
  107. package/build/commonjs/Image/ImageProps.js.map +1 -1
  108. package/build/commonjs/Image/index.js.map +1 -1
  109. package/build/commonjs/ImageCore/ImageCoreNative.ios.js.map +1 -1
  110. package/build/commonjs/ImageCore/ImageCoreNative.js +8 -6
  111. package/build/commonjs/ImageCore/ImageCoreNative.js.map +1 -1
  112. package/build/commonjs/ImageCore/ImageCoreProps.js.map +1 -1
  113. package/build/commonjs/ImageCore/ImageCoreWeb.js.map +1 -1
  114. package/build/commonjs/ImageCore/index.js.map +1 -1
  115. package/build/commonjs/ImageCore/index.native.js.map +1 -1
  116. package/build/commonjs/Link/Link.js +5 -4
  117. package/build/commonjs/Link/Link.js.map +1 -1
  118. package/build/commonjs/Link/LinkProps.js.map +1 -1
  119. package/build/commonjs/Link/index.js.map +1 -1
  120. package/build/commonjs/List/List.js +1 -1
  121. package/build/commonjs/List/List.js.map +1 -1
  122. package/build/commonjs/List/ListProps.js.map +1 -1
  123. package/build/commonjs/List/index.js.map +1 -1
  124. package/build/commonjs/ListItem/ListItem.js +1 -1
  125. package/build/commonjs/ListItem/ListItem.js.map +1 -1
  126. package/build/commonjs/ListItem/ListItemProps.js.map +1 -1
  127. package/build/commonjs/ListItem/index.js.map +1 -1
  128. package/build/commonjs/ListItemIcon/ListItemIcon.js +1 -1
  129. package/build/commonjs/ListItemIcon/ListItemIcon.js.map +1 -1
  130. package/build/commonjs/ListItemIcon/ListItemIconProps.js.map +1 -1
  131. package/build/commonjs/ListItemIcon/index.js.map +1 -1
  132. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  133. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  134. package/build/commonjs/ListItemSecondaryAction/ListItemSecondaryActionProps.js.map +1 -1
  135. package/build/commonjs/ListItemSecondaryAction/index.js.map +1 -1
  136. package/build/commonjs/ListItemText/ListItemText.js +1 -1
  137. package/build/commonjs/ListItemText/ListItemText.js.map +1 -1
  138. package/build/commonjs/ListItemText/ListItemTextProps.js.map +1 -1
  139. package/build/commonjs/ListItemText/index.js.map +1 -1
  140. package/build/commonjs/ListSubheader/ListSubheader.js +1 -1
  141. package/build/commonjs/ListSubheader/ListSubheader.js.map +1 -1
  142. package/build/commonjs/ListSubheader/ListSubheaderProps.js.map +1 -1
  143. package/build/commonjs/ListSubheader/index.js.map +1 -1
  144. package/build/commonjs/Menu/Menu.js.map +1 -1
  145. package/build/commonjs/Menu/MenuProps.js.map +1 -1
  146. package/build/commonjs/Menu/index.js.map +1 -1
  147. package/build/commonjs/MenuItem/MenuItem.js.map +1 -1
  148. package/build/commonjs/MenuItem/MenuItemProps.js.map +1 -1
  149. package/build/commonjs/MenuItem/index.js.map +1 -1
  150. package/build/commonjs/Modal/Modal.js +2 -2
  151. package/build/commonjs/Modal/Modal.js.map +1 -1
  152. package/build/commonjs/Modal/ModalProps.js.map +1 -1
  153. package/build/commonjs/Modal/SimpleBackdrop.js +1 -1
  154. package/build/commonjs/Modal/SimpleBackdrop.js.map +1 -1
  155. package/build/commonjs/Modal/SimpleBackdropProps.js.map +1 -1
  156. package/build/commonjs/Modal/index.js +4 -4
  157. package/build/commonjs/Modal/index.js.map +1 -1
  158. package/build/commonjs/Pagination/Pagination.js +10 -7
  159. package/build/commonjs/Pagination/Pagination.js.map +1 -1
  160. package/build/commonjs/Pagination/PaginationProps.js.map +1 -1
  161. package/build/commonjs/Pagination/index.js.map +1 -1
  162. package/build/commonjs/PaginationItem/PaginationItem.js +1 -1
  163. package/build/commonjs/PaginationItem/PaginationItem.js.map +1 -1
  164. package/build/commonjs/PaginationItem/PaginationItemProps.js.map +1 -1
  165. package/build/commonjs/PaginationItem/index.js.map +1 -1
  166. package/build/commonjs/Paper/Paper.js +12 -4
  167. package/build/commonjs/Paper/Paper.js.map +1 -1
  168. package/build/commonjs/Paper/PaperProps.js.map +1 -1
  169. package/build/commonjs/Paper/PaperStylesProvider.js +14 -0
  170. package/build/commonjs/Paper/PaperStylesProvider.js.map +1 -0
  171. package/build/commonjs/Paper/index.js.map +1 -1
  172. package/build/commonjs/Paper/usePaperStyles.js +17 -0
  173. package/build/commonjs/Paper/usePaperStyles.js.map +1 -0
  174. package/build/commonjs/Portal/Portal.js.map +1 -1
  175. package/build/commonjs/Portal/PortalConsumer.js +2 -2
  176. package/build/commonjs/Portal/PortalConsumer.js.map +1 -1
  177. package/build/commonjs/Portal/PortalHost.js +2 -2
  178. package/build/commonjs/Portal/PortalHost.js.map +1 -1
  179. package/build/commonjs/Portal/PortalManager.js +11 -8
  180. package/build/commonjs/Portal/PortalManager.js.map +1 -1
  181. package/build/commonjs/Portal/PortalProps.js.map +1 -1
  182. package/build/commonjs/Portal/index.js.map +1 -1
  183. package/build/commonjs/Pressable/index.js.map +1 -1
  184. package/build/commonjs/Radio/Radio.js +15 -18
  185. package/build/commonjs/Radio/Radio.js.map +1 -1
  186. package/build/commonjs/Radio/RadioProps.js.map +1 -1
  187. package/build/commonjs/Radio/index.js.map +1 -1
  188. package/build/commonjs/RadioGroup/RadioContextProvider.js.map +1 -1
  189. package/build/commonjs/RadioGroup/RadioGroup.js.map +1 -1
  190. package/build/commonjs/RadioGroup/RadioGroupProps.js.map +1 -1
  191. package/build/commonjs/RadioGroup/index.js.map +1 -1
  192. package/build/commonjs/Row/Row.js.map +1 -1
  193. package/build/commonjs/Row/RowProps.js.map +1 -1
  194. package/build/commonjs/Row/index.js.map +1 -1
  195. package/build/commonjs/Slide/Slide.js +7 -10
  196. package/build/commonjs/Slide/Slide.js.map +1 -1
  197. package/build/commonjs/Slide/SlideProps.js.map +1 -1
  198. package/build/commonjs/Slide/index.js.map +1 -1
  199. package/build/commonjs/Slider/Slider.js +1 -1
  200. package/build/commonjs/Slider/Slider.js.map +1 -1
  201. package/build/commonjs/Slider/SliderProps.js.map +1 -1
  202. package/build/commonjs/Slider/index.js.map +1 -1
  203. package/build/commonjs/Snackbar/Snackbar.js +1 -1
  204. package/build/commonjs/Snackbar/Snackbar.js.map +1 -1
  205. package/build/commonjs/Snackbar/SnackbarProps.js.map +1 -1
  206. package/build/commonjs/Snackbar/index.js.map +1 -1
  207. package/build/commonjs/SnackbarContent/SnackbarContent.js +1 -1
  208. package/build/commonjs/SnackbarContent/SnackbarContent.js.map +1 -1
  209. package/build/commonjs/SnackbarContent/SnackbarContentProps.js.map +1 -1
  210. package/build/commonjs/SnackbarContent/index.js.map +1 -1
  211. package/build/commonjs/Spacer/Spacer.js +1 -1
  212. package/build/commonjs/Spacer/Spacer.js.map +1 -1
  213. package/build/commonjs/Spacer/SpacerProps.js.map +1 -1
  214. package/build/commonjs/Spacer/index.js.map +1 -1
  215. package/build/commonjs/SvgIcon/SvgIcon.js +6 -3
  216. package/build/commonjs/SvgIcon/SvgIcon.js.map +1 -1
  217. package/build/commonjs/SvgIcon/SvgIconProps.js.map +1 -1
  218. package/build/commonjs/SvgIcon/index.js.map +1 -1
  219. package/build/commonjs/Switch/Switch.js +2 -2
  220. package/build/commonjs/Switch/Switch.js.map +1 -1
  221. package/build/commonjs/Switch/SwitchProps.js.map +1 -1
  222. package/build/commonjs/Switch/index.js.map +1 -1
  223. package/build/commonjs/Tab/Tab.js +1 -1
  224. package/build/commonjs/Tab/Tab.js.map +1 -1
  225. package/build/commonjs/Tab/TabIndicator.js.map +1 -1
  226. package/build/commonjs/Tab/TabProps.js.map +1 -1
  227. package/build/commonjs/Tab/index.js.map +1 -1
  228. package/build/commonjs/TabBase/TabBase.js +1 -1
  229. package/build/commonjs/TabBase/TabBase.js.map +1 -1
  230. package/build/commonjs/TabBase/TabBaseProps.js.map +1 -1
  231. package/build/commonjs/TabBase/index.js.map +1 -1
  232. package/build/commonjs/Tabs/TabCoordinate.js.map +1 -1
  233. package/build/commonjs/Tabs/TabIndicator.js +10 -11
  234. package/build/commonjs/Tabs/TabIndicator.js.map +1 -1
  235. package/build/commonjs/Tabs/TabIndicatorProps.js.map +1 -1
  236. package/build/commonjs/Tabs/Tabs.js +4 -9
  237. package/build/commonjs/Tabs/Tabs.js.map +1 -1
  238. package/build/commonjs/Tabs/TabsProps.js.map +1 -1
  239. package/build/commonjs/Tabs/index.js.map +1 -1
  240. package/build/commonjs/TextField/InputLabel.js +13 -6
  241. package/build/commonjs/TextField/InputLabel.js.map +1 -1
  242. package/build/commonjs/TextField/OutlinedTextField.js +2 -2
  243. package/build/commonjs/TextField/OutlinedTextField.js.map +1 -1
  244. package/build/commonjs/TextField/TextField.js.map +1 -1
  245. package/build/commonjs/TextField/TextFieldProps.js.map +1 -1
  246. package/build/commonjs/TextField/index.js.map +1 -1
  247. package/build/commonjs/TextField/utils.js +1 -1
  248. package/build/commonjs/TextField/utils.js.map +1 -1
  249. package/build/commonjs/Toolbar/Toolbar.js +1 -1
  250. package/build/commonjs/Toolbar/Toolbar.js.map +1 -1
  251. package/build/commonjs/Toolbar/ToolbarProps.js.map +1 -1
  252. package/build/commonjs/Toolbar/index.js.map +1 -1
  253. package/build/commonjs/Tooltip/Tooltip.js +8 -6
  254. package/build/commonjs/Tooltip/Tooltip.js.map +1 -1
  255. package/build/commonjs/Tooltip/TooltipProps.js.map +1 -1
  256. package/build/commonjs/Tooltip/UpArrow.js +6 -5
  257. package/build/commonjs/Tooltip/UpArrow.js.map +1 -1
  258. package/build/commonjs/Tooltip/UpArrowProps.js.map +1 -1
  259. package/build/commonjs/Tooltip/index.js.map +1 -1
  260. package/build/commonjs/Typography/Typography.js.map +1 -1
  261. package/build/commonjs/Typography/TypographyProps.js.map +1 -1
  262. package/build/commonjs/Typography/index.js.map +1 -1
  263. package/build/commonjs/animated/AnimatedAppBar.js.map +1 -1
  264. package/build/commonjs/animated/AnimatedFlatList.js.map +1 -1
  265. package/build/commonjs/animated/AnimatedPressable.js.map +1 -1
  266. package/build/commonjs/animated/AnimatedTypography.js.map +1 -1
  267. package/build/commonjs/animated/index.js.map +1 -1
  268. package/build/commonjs/hooks/index.js.map +1 -1
  269. package/build/commonjs/hooks/useAppbarStyles.js.map +1 -1
  270. package/build/commonjs/hooks/useBreakpointUp.js.map +1 -1
  271. package/build/commonjs/hooks/useCollapsibleAppBar.js +19 -30
  272. package/build/commonjs/hooks/useCollapsibleAppBar.js.map +1 -1
  273. package/build/commonjs/hooks/useContentContainerStyle.js +2 -1
  274. package/build/commonjs/hooks/useContentContainerStyle.js.map +1 -1
  275. package/build/commonjs/hooks/useElevationStyle.js.map +1 -1
  276. package/build/commonjs/hooks/useFadeInAppBar.js +18 -22
  277. package/build/commonjs/hooks/useFadeInAppBar.js.map +1 -1
  278. package/build/commonjs/hooks/useThrottle.js +2 -2
  279. package/build/commonjs/hooks/useThrottle.js.map +1 -1
  280. package/build/commonjs/hooks/useValidWindowDimensions/index.ios.js.map +1 -1
  281. package/build/commonjs/hooks/useValidWindowDimensions/index.js.map +1 -1
  282. package/build/commonjs/index.js +6 -6
  283. package/build/commonjs/index.js.map +1 -1
  284. package/build/commonjs/internal/hooks/index.js.map +1 -1
  285. package/build/commonjs/internal/hooks/useHeight.js +5 -4
  286. package/build/commonjs/internal/hooks/useHeight.js.map +1 -1
  287. package/build/commonjs/internal/hooks/useWidth.js.map +1 -1
  288. package/build/commonjs/internal/icons/Checkbox.js +1 -2
  289. package/build/commonjs/internal/icons/Checkbox.js.map +1 -1
  290. package/build/commonjs/internal/icons/CheckboxChecked.js +3 -7
  291. package/build/commonjs/internal/icons/CheckboxChecked.js.map +1 -1
  292. package/build/commonjs/internal/icons/ChevronDown.js +0 -2
  293. package/build/commonjs/internal/icons/ChevronDown.js.map +1 -1
  294. package/build/commonjs/internal/icons/ChevronLeft.js +0 -2
  295. package/build/commonjs/internal/icons/ChevronLeft.js.map +1 -1
  296. package/build/commonjs/internal/icons/ChevronRight.js +0 -2
  297. package/build/commonjs/internal/icons/ChevronRight.js.map +1 -1
  298. package/build/commonjs/internal/icons/CircularProgress.js.map +1 -1
  299. package/build/commonjs/internal/icons/Close.js +0 -2
  300. package/build/commonjs/internal/icons/Close.js.map +1 -1
  301. package/build/commonjs/internal/icons/Radio.js.map +1 -1
  302. package/build/commonjs/internal/icons/RadioChecked.js.map +1 -1
  303. package/build/commonjs/internal/icons/index.js.map +1 -1
  304. package/build/commonjs/internal/index.js.map +1 -1
  305. package/build/commonjs/styles/EdgeInsets.js +9 -6
  306. package/build/commonjs/styles/EdgeInsets.js.map +1 -1
  307. package/build/commonjs/styles/PredefinedStyles.js.map +1 -1
  308. package/build/commonjs/styles/StyleSheet.js.map +1 -1
  309. package/build/commonjs/styles/ThemeProvider.js.map +1 -1
  310. package/build/commonjs/styles/createFontStyle.js +2 -2
  311. package/build/commonjs/styles/createFontStyle.js.map +1 -1
  312. package/build/commonjs/styles/index.js +12 -20
  313. package/build/commonjs/styles/index.js.map +1 -1
  314. package/build/commonjs/styles/styled.js +4 -4
  315. package/build/commonjs/styles/styled.js.map +1 -1
  316. package/build/commonjs/styles/useTheme.js.map +1 -1
  317. package/build/commonjs/types/index.js.map +1 -1
  318. package/build/commonjs/utils/cloneElementSafely.js +17 -0
  319. package/build/commonjs/utils/cloneElementSafely.js.map +1 -0
  320. package/build/commonjs/utils/createSvgIcon.js.map +1 -1
  321. package/build/commonjs/utils/index.js +8 -0
  322. package/build/commonjs/utils/index.js.map +1 -1
  323. package/build/module/Accordion/Accordion.js +5 -11
  324. package/build/module/Accordion/Accordion.js.map +1 -1
  325. package/build/module/Accordion/AccordionProps.js.map +1 -1
  326. package/build/module/Accordion/index.js.map +1 -1
  327. package/build/module/AppBar/AppBar.js +9 -14
  328. package/build/module/AppBar/AppBar.js.map +1 -1
  329. package/build/module/AppBar/AppBarProps.js.map +1 -1
  330. package/build/module/AppBar/index.js.map +1 -1
  331. package/build/module/AspectRatio/AspectRatioNative.js +1 -1
  332. package/build/module/AspectRatio/AspectRatioNative.js.map +1 -1
  333. package/build/module/AspectRatio/AspectRatioProps.js.map +1 -1
  334. package/build/module/AspectRatio/AspectRatioWeb.js +1 -1
  335. package/build/module/AspectRatio/AspectRatioWeb.js.map +1 -1
  336. package/build/module/AspectRatio/index.js.map +1 -1
  337. package/build/module/AspectRatio/index.native.js.map +1 -1
  338. package/build/module/AspectRatio/utils.js.map +1 -1
  339. package/build/module/Avatar/Avatar.js.map +1 -1
  340. package/build/module/Avatar/AvatarProps.js.map +1 -1
  341. package/build/module/Avatar/index.js.map +1 -1
  342. package/build/module/Badge/Badge.js +1 -1
  343. package/build/module/Badge/Badge.js.map +1 -1
  344. package/build/module/Badge/BadgeProps.js.map +1 -1
  345. package/build/module/Badge/index.js.map +1 -1
  346. package/build/module/Button/Button.js +14 -10
  347. package/build/module/Button/Button.js.map +1 -1
  348. package/build/module/Button/ButtonProps.js.map +1 -1
  349. package/build/module/Button/index.js.map +1 -1
  350. package/build/module/ButtonBase/ButtonBase.ios.js +4 -2
  351. package/build/module/ButtonBase/ButtonBase.ios.js.map +1 -1
  352. package/build/module/ButtonBase/ButtonBase.js +16 -12
  353. package/build/module/ButtonBase/ButtonBase.js.map +1 -1
  354. package/build/module/ButtonBase/ButtonBaseProps.js.map +1 -1
  355. package/build/module/ButtonBase/index.js.map +1 -1
  356. package/build/module/ButtonBase/useDisabledReaction/index.js +2 -2
  357. package/build/module/ButtonBase/useDisabledReaction/index.js.map +1 -1
  358. package/build/module/ButtonBase/useDisabledReaction/index.native.js.map +1 -1
  359. package/build/module/Card/Card.js +1 -1
  360. package/build/module/Card/Card.js.map +1 -1
  361. package/build/module/Card/CardProps.js.map +1 -1
  362. package/build/module/Card/index.js.map +1 -1
  363. package/build/module/CardActions/CardActions.js +1 -1
  364. package/build/module/CardActions/CardActions.js.map +1 -1
  365. package/build/module/CardActions/CardActionsProps.js.map +1 -1
  366. package/build/module/CardActions/index.js.map +1 -1
  367. package/build/module/CardContent/CardContent.js +1 -1
  368. package/build/module/CardContent/CardContent.js.map +1 -1
  369. package/build/module/CardContent/CardContentProps.js.map +1 -1
  370. package/build/module/CardContent/index.js.map +1 -1
  371. package/build/module/CardMedia/CardMedia.js +1 -1
  372. package/build/module/CardMedia/CardMedia.js.map +1 -1
  373. package/build/module/CardMedia/CardMediaProps.js.map +1 -1
  374. package/build/module/CardMedia/index.js.map +1 -1
  375. package/build/module/Checkbox/Checkbox.js +8 -3
  376. package/build/module/Checkbox/Checkbox.js.map +1 -1
  377. package/build/module/Checkbox/CheckboxProps.js.map +1 -1
  378. package/build/module/Checkbox/index.js.map +1 -1
  379. package/build/module/Chip/Chip.js +11 -11
  380. package/build/module/Chip/Chip.js.map +1 -1
  381. package/build/module/Chip/ChipProps.js.map +1 -1
  382. package/build/module/Chip/index.js.map +1 -1
  383. package/build/module/CircularProgress/CircularProgress.js +5 -5
  384. package/build/module/CircularProgress/CircularProgress.js.map +1 -1
  385. package/build/module/CircularProgress/index.js.map +1 -1
  386. package/build/module/Column/Column.js.map +1 -1
  387. package/build/module/Column/ColumnProps.js.map +1 -1
  388. package/build/module/Column/index.js.map +1 -1
  389. package/build/module/Dialog/Dialog.js +1 -1
  390. package/build/module/Dialog/Dialog.js.map +1 -1
  391. package/build/module/Dialog/DialogProps.js.map +1 -1
  392. package/build/module/Dialog/index.js.map +1 -1
  393. package/build/module/DialogActions/DialogActions.js +1 -1
  394. package/build/module/DialogActions/DialogActions.js.map +1 -1
  395. package/build/module/DialogActions/DialogActionsProps.js.map +1 -1
  396. package/build/module/DialogActions/index.js.map +1 -1
  397. package/build/module/DialogContent/DialogContent.js +1 -1
  398. package/build/module/DialogContent/DialogContent.js.map +1 -1
  399. package/build/module/DialogContent/DialogContentProps.js.map +1 -1
  400. package/build/module/DialogContent/index.js.map +1 -1
  401. package/build/module/DialogMedia/DialogMedia.js +1 -1
  402. package/build/module/DialogMedia/DialogMedia.js.map +1 -1
  403. package/build/module/DialogMedia/DialogMediaProps.js.map +1 -1
  404. package/build/module/DialogMedia/index.js.map +1 -1
  405. package/build/module/DialogTitle/DialogTitle.js +1 -1
  406. package/build/module/DialogTitle/DialogTitle.js.map +1 -1
  407. package/build/module/DialogTitle/DialogTitleProps.js.map +1 -1
  408. package/build/module/DialogTitle/index.js.map +1 -1
  409. package/build/module/Divider/Divider.js +1 -1
  410. package/build/module/Divider/Divider.js.map +1 -1
  411. package/build/module/Divider/DividerProps.js.map +1 -1
  412. package/build/module/Divider/index.js.map +1 -1
  413. package/build/module/Fab/Fab.js +11 -5
  414. package/build/module/Fab/Fab.js.map +1 -1
  415. package/build/module/Fab/FabProps.js.map +1 -1
  416. package/build/module/Fab/index.js.map +1 -1
  417. package/build/module/Flexbox/Flexbox.js +1 -1
  418. package/build/module/Flexbox/Flexbox.js.map +1 -1
  419. package/build/module/Flexbox/FlexboxProps.js.map +1 -1
  420. package/build/module/Flexbox/index.js.map +1 -1
  421. package/build/module/IconButton/IconButton.js +13 -5
  422. package/build/module/IconButton/IconButton.js.map +1 -1
  423. package/build/module/IconButton/IconButtonProps.js.map +1 -1
  424. package/build/module/IconButton/index.js.map +1 -1
  425. package/build/module/Image/Image.js +14 -2
  426. package/build/module/Image/Image.js.map +1 -1
  427. package/build/module/Image/ImageProps.js.map +1 -1
  428. package/build/module/Image/index.js.map +1 -1
  429. package/build/module/ImageCore/ImageCoreNative.ios.js.map +1 -1
  430. package/build/module/ImageCore/ImageCoreNative.js +4 -4
  431. package/build/module/ImageCore/ImageCoreNative.js.map +1 -1
  432. package/build/module/ImageCore/ImageCoreProps.js.map +1 -1
  433. package/build/module/ImageCore/ImageCoreWeb.js.map +1 -1
  434. package/build/module/ImageCore/index.js.map +1 -1
  435. package/build/module/ImageCore/index.native.js.map +1 -1
  436. package/build/module/Link/Link.js +5 -4
  437. package/build/module/Link/Link.js.map +1 -1
  438. package/build/module/Link/LinkProps.js.map +1 -1
  439. package/build/module/Link/index.js.map +1 -1
  440. package/build/module/List/List.js +1 -1
  441. package/build/module/List/List.js.map +1 -1
  442. package/build/module/List/ListProps.js.map +1 -1
  443. package/build/module/List/index.js.map +1 -1
  444. package/build/module/ListItem/ListItem.js +1 -1
  445. package/build/module/ListItem/ListItem.js.map +1 -1
  446. package/build/module/ListItem/ListItemProps.js.map +1 -1
  447. package/build/module/ListItem/index.js.map +1 -1
  448. package/build/module/ListItemIcon/ListItemIcon.js +1 -1
  449. package/build/module/ListItemIcon/ListItemIcon.js.map +1 -1
  450. package/build/module/ListItemIcon/ListItemIconProps.js.map +1 -1
  451. package/build/module/ListItemIcon/index.js.map +1 -1
  452. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  453. package/build/module/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  454. package/build/module/ListItemSecondaryAction/ListItemSecondaryActionProps.js.map +1 -1
  455. package/build/module/ListItemSecondaryAction/index.js.map +1 -1
  456. package/build/module/ListItemText/ListItemText.js +1 -1
  457. package/build/module/ListItemText/ListItemText.js.map +1 -1
  458. package/build/module/ListItemText/ListItemTextProps.js.map +1 -1
  459. package/build/module/ListItemText/index.js.map +1 -1
  460. package/build/module/ListSubheader/ListSubheader.js +1 -1
  461. package/build/module/ListSubheader/ListSubheader.js.map +1 -1
  462. package/build/module/ListSubheader/ListSubheaderProps.js.map +1 -1
  463. package/build/module/ListSubheader/index.js.map +1 -1
  464. package/build/module/Menu/Menu.js.map +1 -1
  465. package/build/module/Menu/MenuProps.js.map +1 -1
  466. package/build/module/Menu/index.js.map +1 -1
  467. package/build/module/MenuItem/MenuItem.js.map +1 -1
  468. package/build/module/MenuItem/MenuItemProps.js.map +1 -1
  469. package/build/module/MenuItem/index.js.map +1 -1
  470. package/build/module/Modal/Modal.js +1 -1
  471. package/build/module/Modal/Modal.js.map +1 -1
  472. package/build/module/Modal/ModalProps.js.map +1 -1
  473. package/build/module/Modal/SimpleBackdrop.js +1 -1
  474. package/build/module/Modal/SimpleBackdrop.js.map +1 -1
  475. package/build/module/Modal/SimpleBackdropProps.js.map +1 -1
  476. package/build/module/Modal/index.js.map +1 -1
  477. package/build/module/Pagination/Pagination.js +10 -7
  478. package/build/module/Pagination/Pagination.js.map +1 -1
  479. package/build/module/Pagination/PaginationProps.js.map +1 -1
  480. package/build/module/Pagination/index.js.map +1 -1
  481. package/build/module/PaginationItem/PaginationItem.js +1 -1
  482. package/build/module/PaginationItem/PaginationItem.js.map +1 -1
  483. package/build/module/PaginationItem/PaginationItemProps.js.map +1 -1
  484. package/build/module/PaginationItem/index.js.map +1 -1
  485. package/build/module/Paper/Paper.js +11 -4
  486. package/build/module/Paper/Paper.js.map +1 -1
  487. package/build/module/Paper/PaperProps.js.map +1 -1
  488. package/build/module/Paper/PaperStylesProvider.js +4 -0
  489. package/build/module/Paper/PaperStylesProvider.js.map +1 -0
  490. package/build/module/Paper/index.js.map +1 -1
  491. package/build/module/Paper/usePaperStyles.js +7 -0
  492. package/build/module/Paper/usePaperStyles.js.map +1 -0
  493. package/build/module/Portal/Portal.js.map +1 -1
  494. package/build/module/Portal/PortalConsumer.js +2 -2
  495. package/build/module/Portal/PortalConsumer.js.map +1 -1
  496. package/build/module/Portal/PortalHost.js +2 -2
  497. package/build/module/Portal/PortalHost.js.map +1 -1
  498. package/build/module/Portal/PortalManager.js +11 -8
  499. package/build/module/Portal/PortalManager.js.map +1 -1
  500. package/build/module/Portal/PortalProps.js.map +1 -1
  501. package/build/module/Portal/index.js.map +1 -1
  502. package/build/module/Pressable/index.js.map +1 -1
  503. package/build/module/Radio/Radio.js +14 -18
  504. package/build/module/Radio/Radio.js.map +1 -1
  505. package/build/module/Radio/RadioProps.js.map +1 -1
  506. package/build/module/Radio/index.js.map +1 -1
  507. package/build/module/RadioGroup/RadioContextProvider.js.map +1 -1
  508. package/build/module/RadioGroup/RadioGroup.js.map +1 -1
  509. package/build/module/RadioGroup/RadioGroupProps.js.map +1 -1
  510. package/build/module/RadioGroup/index.js.map +1 -1
  511. package/build/module/Row/Row.js.map +1 -1
  512. package/build/module/Row/RowProps.js.map +1 -1
  513. package/build/module/Row/index.js.map +1 -1
  514. package/build/module/Slide/Slide.js +8 -8
  515. package/build/module/Slide/Slide.js.map +1 -1
  516. package/build/module/Slide/SlideProps.js.map +1 -1
  517. package/build/module/Slide/index.js.map +1 -1
  518. package/build/module/Slider/Slider.js +1 -1
  519. package/build/module/Slider/Slider.js.map +1 -1
  520. package/build/module/Slider/SliderProps.js.map +1 -1
  521. package/build/module/Slider/index.js.map +1 -1
  522. package/build/module/Snackbar/Snackbar.js +1 -1
  523. package/build/module/Snackbar/Snackbar.js.map +1 -1
  524. package/build/module/Snackbar/SnackbarProps.js.map +1 -1
  525. package/build/module/Snackbar/index.js.map +1 -1
  526. package/build/module/SnackbarContent/SnackbarContent.js +1 -1
  527. package/build/module/SnackbarContent/SnackbarContent.js.map +1 -1
  528. package/build/module/SnackbarContent/SnackbarContentProps.js.map +1 -1
  529. package/build/module/SnackbarContent/index.js.map +1 -1
  530. package/build/module/Spacer/Spacer.js +1 -1
  531. package/build/module/Spacer/Spacer.js.map +1 -1
  532. package/build/module/Spacer/SpacerProps.js.map +1 -1
  533. package/build/module/Spacer/index.js.map +1 -1
  534. package/build/module/SvgIcon/SvgIcon.js +7 -4
  535. package/build/module/SvgIcon/SvgIcon.js.map +1 -1
  536. package/build/module/SvgIcon/SvgIconProps.js.map +1 -1
  537. package/build/module/SvgIcon/index.js.map +1 -1
  538. package/build/module/Switch/Switch.js +2 -2
  539. package/build/module/Switch/Switch.js.map +1 -1
  540. package/build/module/Switch/SwitchProps.js.map +1 -1
  541. package/build/module/Switch/index.js.map +1 -1
  542. package/build/module/Tab/Tab.js +1 -1
  543. package/build/module/Tab/Tab.js.map +1 -1
  544. package/build/module/Tab/TabIndicator.js.map +1 -1
  545. package/build/module/Tab/TabProps.js.map +1 -1
  546. package/build/module/Tab/index.js.map +1 -1
  547. package/build/module/TabBase/TabBase.js +1 -1
  548. package/build/module/TabBase/TabBase.js.map +1 -1
  549. package/build/module/TabBase/TabBaseProps.js.map +1 -1
  550. package/build/module/TabBase/index.js.map +1 -1
  551. package/build/module/Tabs/TabCoordinate.js.map +1 -1
  552. package/build/module/Tabs/TabIndicator.js +6 -8
  553. package/build/module/Tabs/TabIndicator.js.map +1 -1
  554. package/build/module/Tabs/TabIndicatorProps.js.map +1 -1
  555. package/build/module/Tabs/Tabs.js +4 -4
  556. package/build/module/Tabs/Tabs.js.map +1 -1
  557. package/build/module/Tabs/TabsProps.js.map +1 -1
  558. package/build/module/Tabs/index.js.map +1 -1
  559. package/build/module/TextField/InputLabel.js +11 -6
  560. package/build/module/TextField/InputLabel.js.map +1 -1
  561. package/build/module/TextField/OutlinedTextField.js +2 -2
  562. package/build/module/TextField/OutlinedTextField.js.map +1 -1
  563. package/build/module/TextField/TextField.js.map +1 -1
  564. package/build/module/TextField/TextFieldProps.js.map +1 -1
  565. package/build/module/TextField/index.js.map +1 -1
  566. package/build/module/TextField/utils.js.map +1 -1
  567. package/build/module/Toolbar/Toolbar.js +1 -1
  568. package/build/module/Toolbar/Toolbar.js.map +1 -1
  569. package/build/module/Toolbar/ToolbarProps.js.map +1 -1
  570. package/build/module/Toolbar/index.js.map +1 -1
  571. package/build/module/Tooltip/Tooltip.js +4 -4
  572. package/build/module/Tooltip/Tooltip.js.map +1 -1
  573. package/build/module/Tooltip/TooltipProps.js.map +1 -1
  574. package/build/module/Tooltip/UpArrow.js +6 -5
  575. package/build/module/Tooltip/UpArrow.js.map +1 -1
  576. package/build/module/Tooltip/UpArrowProps.js.map +1 -1
  577. package/build/module/Tooltip/index.js.map +1 -1
  578. package/build/module/Typography/Typography.js.map +1 -1
  579. package/build/module/Typography/TypographyProps.js.map +1 -1
  580. package/build/module/Typography/index.js.map +1 -1
  581. package/build/module/animated/AnimatedAppBar.js.map +1 -1
  582. package/build/module/animated/AnimatedFlatList.js.map +1 -1
  583. package/build/module/animated/AnimatedPressable.js.map +1 -1
  584. package/build/module/animated/AnimatedTypography.js.map +1 -1
  585. package/build/module/animated/index.js.map +1 -1
  586. package/build/module/hooks/index.js.map +1 -1
  587. package/build/module/hooks/useAppbarStyles.js.map +1 -1
  588. package/build/module/hooks/useBreakpointUp.js.map +1 -1
  589. package/build/module/hooks/useCollapsibleAppBar.js +19 -22
  590. package/build/module/hooks/useCollapsibleAppBar.js.map +1 -1
  591. package/build/module/hooks/useContentContainerStyle.js +2 -1
  592. package/build/module/hooks/useContentContainerStyle.js.map +1 -1
  593. package/build/module/hooks/useElevationStyle.js.map +1 -1
  594. package/build/module/hooks/useFadeInAppBar.js +17 -17
  595. package/build/module/hooks/useFadeInAppBar.js.map +1 -1
  596. package/build/module/hooks/useThrottle.js +2 -2
  597. package/build/module/hooks/useThrottle.js.map +1 -1
  598. package/build/module/hooks/useValidWindowDimensions/index.ios.js.map +1 -1
  599. package/build/module/hooks/useValidWindowDimensions/index.js.map +1 -1
  600. package/build/module/index.js.map +1 -1
  601. package/build/module/internal/hooks/index.js.map +1 -1
  602. package/build/module/internal/hooks/useHeight.js +4 -3
  603. package/build/module/internal/hooks/useHeight.js.map +1 -1
  604. package/build/module/internal/hooks/useWidth.js.map +1 -1
  605. package/build/module/internal/icons/Checkbox.js +1 -2
  606. package/build/module/internal/icons/Checkbox.js.map +1 -1
  607. package/build/module/internal/icons/CheckboxChecked.js +3 -7
  608. package/build/module/internal/icons/CheckboxChecked.js.map +1 -1
  609. package/build/module/internal/icons/ChevronDown.js +0 -2
  610. package/build/module/internal/icons/ChevronDown.js.map +1 -1
  611. package/build/module/internal/icons/ChevronLeft.js +0 -2
  612. package/build/module/internal/icons/ChevronLeft.js.map +1 -1
  613. package/build/module/internal/icons/ChevronRight.js +0 -2
  614. package/build/module/internal/icons/ChevronRight.js.map +1 -1
  615. package/build/module/internal/icons/CircularProgress.js.map +1 -1
  616. package/build/module/internal/icons/Close.js +0 -2
  617. package/build/module/internal/icons/Close.js.map +1 -1
  618. package/build/module/internal/icons/Radio.js.map +1 -1
  619. package/build/module/internal/icons/RadioChecked.js.map +1 -1
  620. package/build/module/internal/icons/index.js.map +1 -1
  621. package/build/module/internal/index.js.map +1 -1
  622. package/build/module/styles/EdgeInsets.js +9 -6
  623. package/build/module/styles/EdgeInsets.js.map +1 -1
  624. package/build/module/styles/PredefinedStyles.js.map +1 -1
  625. package/build/module/styles/StyleSheet.js.map +1 -1
  626. package/build/module/styles/ThemeProvider.js.map +1 -1
  627. package/build/module/styles/createFontStyle.js +2 -2
  628. package/build/module/styles/createFontStyle.js.map +1 -1
  629. package/build/module/styles/index.js +0 -1
  630. package/build/module/styles/index.js.map +1 -1
  631. package/build/module/styles/styled.js.map +1 -1
  632. package/build/module/styles/useTheme.js.map +1 -1
  633. package/build/module/types/index.js.map +1 -1
  634. package/build/module/utils/cloneElementSafely.js +8 -0
  635. package/build/module/utils/cloneElementSafely.js.map +1 -0
  636. package/build/module/utils/createSvgIcon.js.map +1 -1
  637. package/build/module/utils/index.js +1 -0
  638. package/build/module/utils/index.js.map +1 -1
  639. package/build/typescript/Accordion/Accordion.d.ts +0 -1
  640. package/build/typescript/AppBar/AppBarProps.d.ts +1 -1
  641. package/build/typescript/AspectRatio/AspectRatioNative.d.ts +0 -1
  642. package/build/typescript/AspectRatio/AspectRatioWeb.d.ts +0 -1
  643. package/build/typescript/Avatar/Avatar.d.ts +0 -1
  644. package/build/typescript/Badge/Badge.d.ts +0 -1
  645. package/build/typescript/Button/Button.d.ts +0 -1
  646. package/build/typescript/Button/ButtonProps.d.ts +2 -2
  647. package/build/typescript/ButtonBase/ButtonBase.d.ts +0 -1
  648. package/build/typescript/ButtonBase/ButtonBase.ios.d.ts +0 -1
  649. package/build/typescript/ButtonBase/useDisabledReaction/index.d.ts +2 -2
  650. package/build/typescript/Card/Card.d.ts +0 -1
  651. package/build/typescript/CardActions/CardActions.d.ts +0 -1
  652. package/build/typescript/CardContent/CardContent.d.ts +0 -1
  653. package/build/typescript/CardMedia/CardMedia.d.ts +0 -1
  654. package/build/typescript/Checkbox/Checkbox.d.ts +0 -1
  655. package/build/typescript/Checkbox/CheckboxProps.d.ts +7 -1
  656. package/build/typescript/Chip/Chip.d.ts +0 -1
  657. package/build/typescript/CircularProgress/CircularProgress.d.ts +0 -1
  658. package/build/typescript/Column/Column.d.ts +0 -1
  659. package/build/typescript/Dialog/Dialog.d.ts +0 -1
  660. package/build/typescript/DialogActions/DialogActions.d.ts +0 -1
  661. package/build/typescript/DialogContent/DialogContent.d.ts +0 -1
  662. package/build/typescript/DialogMedia/DialogMedia.d.ts +0 -1
  663. package/build/typescript/DialogTitle/DialogTitle.d.ts +0 -1
  664. package/build/typescript/Divider/Divider.d.ts +0 -1
  665. package/build/typescript/Fab/Fab.d.ts +0 -1
  666. package/build/typescript/Fab/FabProps.d.ts +2 -2
  667. package/build/typescript/Flexbox/Flexbox.d.ts +0 -1
  668. package/build/typescript/IconButton/IconButton.d.ts +0 -1
  669. package/build/typescript/IconButton/IconButtonProps.d.ts +2 -2
  670. package/build/typescript/Image/Image.d.ts +0 -1
  671. package/build/typescript/Image/ImageProps.d.ts +8 -0
  672. package/build/typescript/ImageCore/ImageCoreNative.d.ts +0 -1
  673. package/build/typescript/ImageCore/ImageCoreNative.ios.d.ts +0 -1
  674. package/build/typescript/ImageCore/ImageCoreWeb.d.ts +0 -1
  675. package/build/typescript/Link/Link.d.ts +0 -1
  676. package/build/typescript/List/List.d.ts +0 -1
  677. package/build/typescript/ListItem/ListItem.d.ts +0 -1
  678. package/build/typescript/ListItemIcon/ListItemIcon.d.ts +0 -1
  679. package/build/typescript/ListItemSecondaryAction/ListItemSecondaryAction.d.ts +0 -1
  680. package/build/typescript/ListItemText/ListItemText.d.ts +0 -1
  681. package/build/typescript/ListSubheader/ListSubheader.d.ts +0 -1
  682. package/build/typescript/Menu/Menu.d.ts +0 -1
  683. package/build/typescript/MenuItem/MenuItem.d.ts +0 -1
  684. package/build/typescript/Modal/Modal.d.ts +0 -1
  685. package/build/typescript/Pagination/Pagination.d.ts +0 -1
  686. package/build/typescript/Paper/PaperProps.d.ts +5 -0
  687. package/build/typescript/Paper/PaperStylesProvider.d.ts +7 -0
  688. package/build/typescript/Paper/usePaperStyles.d.ts +1 -0
  689. package/build/typescript/Portal/Portal.d.ts +0 -1
  690. package/build/typescript/Radio/Radio.d.ts +0 -1
  691. package/build/typescript/RadioGroup/RadioGroup.d.ts +0 -1
  692. package/build/typescript/Row/Row.d.ts +0 -1
  693. package/build/typescript/Slide/Slide.d.ts +0 -1
  694. package/build/typescript/Slider/Slider.d.ts +1 -1
  695. package/build/typescript/Snackbar/Snackbar.d.ts +0 -1
  696. package/build/typescript/SnackbarContent/SnackbarContent.d.ts +0 -1
  697. package/build/typescript/Spacer/Spacer.d.ts +0 -1
  698. package/build/typescript/SvgIcon/SvgIcon.d.ts +0 -1
  699. package/build/typescript/SvgIcon/SvgIconProps.d.ts +6 -5
  700. package/build/typescript/Switch/Switch.d.ts +0 -1
  701. package/build/typescript/Switch/SwitchProps.d.ts +2 -2
  702. package/build/typescript/Tab/Tab.d.ts +0 -1
  703. package/build/typescript/TabBase/TabBase.d.ts +0 -1
  704. package/build/typescript/Tabs/TabIndicator.d.ts +0 -1
  705. package/build/typescript/Tabs/TabIndicatorProps.d.ts +2 -2
  706. package/build/typescript/Tabs/Tabs.d.ts +0 -1
  707. package/build/typescript/TextField/InputLabel.d.ts +0 -1
  708. package/build/typescript/Toolbar/Toolbar.d.ts +0 -1
  709. package/build/typescript/Tooltip/Tooltip.d.ts +0 -1
  710. package/build/typescript/hooks/useCollapsibleAppBar.d.ts +0 -1
  711. package/build/typescript/hooks/useFadeInAppBar.d.ts +3 -5
  712. package/build/typescript/internal/icons/Checkbox.d.ts +34 -19
  713. package/build/typescript/internal/icons/CheckboxChecked.d.ts +34 -19
  714. package/build/typescript/internal/icons/ChevronDown.d.ts +34 -19
  715. package/build/typescript/internal/icons/ChevronLeft.d.ts +34 -19
  716. package/build/typescript/internal/icons/ChevronRight.d.ts +34 -19
  717. package/build/typescript/internal/icons/CircularProgress.d.ts +0 -1
  718. package/build/typescript/internal/icons/Close.d.ts +34 -19
  719. package/build/typescript/internal/icons/Radio.d.ts +34 -19
  720. package/build/typescript/internal/icons/RadioChecked.d.ts +34 -19
  721. package/build/typescript/styles/index.d.ts +0 -1
  722. package/build/typescript/types/index.d.ts +1 -0
  723. package/build/typescript/utils/cloneElementSafely.d.ts +4 -0
  724. package/build/typescript/utils/index.d.ts +1 -0
  725. package/package.json +5 -5
  726. package/src/Accordion/Accordion.tsx +5 -8
  727. package/src/AppBar/AppBar.tsx +13 -21
  728. package/src/AppBar/AppBarProps.ts +1 -1
  729. package/src/Button/Button.tsx +18 -3
  730. package/src/Button/ButtonProps.ts +2 -7
  731. package/src/ButtonBase/ButtonBase.tsx +10 -9
  732. package/src/ButtonBase/useDisabledReaction/index.ts +5 -4
  733. package/src/Checkbox/Checkbox.tsx +3 -2
  734. package/src/Checkbox/CheckboxProps.ts +9 -1
  735. package/src/Chip/Chip.tsx +11 -4
  736. package/src/CircularProgress/CircularProgress.tsx +13 -6
  737. package/src/Fab/Fab.tsx +14 -4
  738. package/src/Fab/FabProps.ts +2 -8
  739. package/src/IconButton/IconButton.tsx +16 -4
  740. package/src/IconButton/IconButtonProps.ts +2 -7
  741. package/src/Image/Image.tsx +12 -1
  742. package/src/Image/ImageProps.ts +10 -0
  743. package/src/ImageCore/ImageCoreNative.tsx +6 -5
  744. package/src/Paper/Paper.tsx +14 -8
  745. package/src/Paper/PaperProps.ts +6 -0
  746. package/src/Paper/PaperStylesProvider.tsx +9 -0
  747. package/src/Paper/usePaperStyles.ts +6 -0
  748. package/src/Radio/Radio.tsx +7 -15
  749. package/src/Slide/Slide.tsx +10 -9
  750. package/src/SvgIcon/SvgIcon.tsx +10 -5
  751. package/src/SvgIcon/SvgIconProps.ts +7 -5
  752. package/src/Switch/Switch.tsx +1 -1
  753. package/src/Switch/SwitchProps.ts +2 -8
  754. package/src/Tabs/TabIndicator.tsx +3 -3
  755. package/src/Tabs/TabIndicatorProps.ts +2 -2
  756. package/src/Tabs/Tabs.tsx +3 -3
  757. package/src/TextField/InputLabel.tsx +14 -4
  758. package/src/TextField/OutlinedTextField.tsx +2 -1
  759. package/src/Tooltip/Tooltip.tsx +6 -5
  760. package/src/hooks/useCollapsibleAppBar.ts +22 -17
  761. package/src/hooks/useFadeInAppBar.ts +16 -17
  762. package/src/hooks/useThrottle.ts +1 -1
  763. package/src/internal/hooks/useHeight.ts +2 -2
  764. package/src/internal/icons/Checkbox.tsx +3 -3
  765. package/src/internal/icons/CheckboxChecked.tsx +5 -11
  766. package/src/internal/icons/ChevronDown.tsx +3 -4
  767. package/src/internal/icons/ChevronLeft.tsx +3 -4
  768. package/src/internal/icons/ChevronRight.tsx +3 -4
  769. package/src/internal/icons/Close.tsx +3 -4
  770. package/src/internal/icons/Radio.tsx +4 -2
  771. package/src/internal/icons/RadioChecked.tsx +4 -2
  772. package/src/styles/index.ts +0 -1
  773. package/src/types/index.ts +7 -0
  774. package/src/utils/cloneElementSafely.ts +9 -0
  775. package/src/utils/index.ts +1 -0
  776. package/build/commonjs/styles/cloneSvgIcon.js +0 -37
  777. package/build/commonjs/styles/cloneSvgIcon.js.map +0 -1
  778. package/build/module/styles/cloneSvgIcon.js +0 -25
  779. package/build/module/styles/cloneSvgIcon.js.map +0 -1
  780. package/build/typescript/styles/cloneSvgIcon.d.ts +0 -12
  781. package/src/styles/cloneSvgIcon.ts +0 -39
@@ -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\n return (\n // @ts-ignore\n <View\n children={children}\n style={rootStyle}\n {...rootComponentProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;;;;;AAKA,MAAMA,SAAoC,GAAG,YAA4B;EACrE,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,aAAa,EAAE,KADb;MAEFC,eAAe,EAAEJ,KAAK,CAACK,OAAN,CAAc,CAAd,CAFf;MAGFC,iBAAiB,EAAEN,KAAK,CAACK,OAAN,CAAc,CAAd,CAHjB;MAIFE,KAAK,EAAE;IAJL;EADH,CAAP;AAQH,CAXD;;AAae,SAASC,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,UAAU,GAAG,QADX;IAEFC,MAAM,GAAG,KAFP;IAGFC,QAHE;IAIFC,QAAQ,GAAG,KAJT;IAKFC,OALE;IAMFC,KANE;IAOF,GAAGC;EAPD,IAQFP,KARJ;EAUA,MAAMQ,MAAM,GAAGlB,SAAS,EAAxB;EAEA,MAAMmB,kBAAkB,GAAG;IACvBC,iBAAiB,EAAEC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SADjC;IAEvB,GAAGN;EAFoB,CAA3B;EAKA,MAAMO,SAAS,GAAG,IAAAC,WAAA,EAAI,CAClBP,MAAM,CAACf,IADW,EAElB;IAAEQ;EAAF,CAFkB,EAGlBK,KAHkB,CAAJ,CAAlB;;EAMA,IAAIJ,MAAJ,EAAY;IACR;MAAA;MACI;MACA,6BAAC,iBAAD,EAAUO,kBAAV,eACI,6BAAC,mBAAD;QACI,QAAQ,EAAEL,QADd;QAEI,OAAO,EAAEC,OAFb;QAGI,KAAK,EAAES;MAHX,GAKKX,QALL,CADJ;IAFJ;EAYH;;EAED;IAAA;IACI;IACA,6BAAC,iBAAD;MACI,QAAQ,EAAEA,QADd;MAEI,KAAK,EAAEW;IAFX,GAGQL,kBAHR;EAFJ;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"}
@@ -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 useStyles = function () {
19
19
  const theme = (0, _styles.useTheme)();
@@ -1 +1 @@
1
- {"version":3,"sources":["ListItemIcon.tsx"],"names":["useStyles","theme","root","marginRight","spacing","minWidth","flexShrink","ListItemIcon","props","style","otherProps","styles"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;AAC7E,QAAMC,KAAK,GAAG,uBAAd;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,WAAW,EAAEF,KAAK,CAACG,OAAN,CAAc,CAAd,CADX;AAEFC,MAAAA,QAAQ,EAAE,EAFR;AAGFC,MAAAA,UAAU,EAAE;AAHV;AADH,GAAP;AAOH,CAVD;;AAYe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;AAC3D,QAAM;AACFC,IAAAA,KADE;AAEF,OAAGC;AAFD,MAGFF,KAHJ;AAKA,QAAMG,MAAM,GAAGX,SAAS,EAAxB;AAEA,sBACI,6BAAC,iBAAD;AACI,IAAA,KAAK,EAAE,iBAAI,CACPW,MAAM,CAACT,IADA,EAEPO,KAFO,CAAJ;AADX,KAKQC,UALR,EADJ;AASH;;AAAA","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ListItemIconProps from './ListItemIconProps';\n\ntype ListItemIconStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemIconStyles> = function (): ListItemIconStyles {\n const theme = useTheme();\n\n return {\n root: {\n marginRight: theme.spacing(2),\n minWidth: 24,\n flexShrink: 0,\n },\n };\n};\n\nexport default function ListItemIcon(props: ListItemIconProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","marginRight","spacing","minWidth","flexShrink","ListItemIcon","props","style","otherProps","styles","css"],"sources":["ListItemIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type ListItemIconProps from './ListItemIconProps';\n\ntype ListItemIconStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemIconStyles> = function (): ListItemIconStyles {\n const theme = useTheme();\n\n return {\n root: {\n marginRight: theme.spacing(2),\n minWidth: 24,\n flexShrink: 0,\n },\n };\n};\n\nexport default function ListItemIcon(props: ListItemIconProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,WAAW,EAAEH,KAAK,CAACI,OAAN,CAAc,CAAd,CADX;MAEFC,QAAQ,EAAE,EAFR;MAGFC,UAAU,EAAE;IAHV;EADH,CAAP;AAOH,CAVD;;AAYe,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGZ,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAa,WAAA,EAAI,CACPD,MAAM,CAACT,IADA,EAEPO,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListItemIconProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemIconProps extends OverridableComponentProps<React.PropsWithChildren<ViewProps>> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './ListItemIcon';\nexport type { default as ListItemIconProps } from './ListItemIconProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ListItemIcon';\nexport type { default as ListItemIconProps } from './ListItemIconProps';"],"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 useStyles = function () {
19
19
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["ListItemSecondaryAction.tsx"],"names":["useStyles","root","flexShrink","marginLeft","ListItemSecondaryAction","props","style","otherProps","styles"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAmD,GAAG,YAA2C;AACnG,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,UAAU,EAAE,CADV;AAEFC,MAAAA,UAAU,EAAE;AAFV;AADH,GAAP;AAMH,CAPD;;AASe,SAASC,uBAAT,CAAiCC,KAAjC,EAAsE;AACjF,QAAM;AACFC,IAAAA,KADE;AAEF,OAAGC;AAFD,MAGFF,KAHJ;AAKA,QAAMG,MAAM,GAAGR,SAAS,EAAxB;AAEA,sBACI,6BAAC,iBAAD;AACI,IAAA,KAAK,EAAE,iBAAI,CACPQ,MAAM,CAACP,IADA,EAEPK,KAFO,CAAJ;AADX,KAKQC,UALR,EADJ;AASH;;AAAA","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css } from '../styles';\nimport ListItemSecondaryActionProps from './ListItemSecondaryActionProps';\n\ntype ListItemSecondaryActionStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemSecondaryActionStyles> = function (): ListItemSecondaryActionStyles {\n return {\n root: {\n flexShrink: 0,\n marginLeft: 'auto',\n },\n };\n};\n\nexport default function ListItemSecondaryAction(props: ListItemSecondaryActionProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","root","flexShrink","marginLeft","ListItemSecondaryAction","props","style","otherProps","styles","css"],"sources":["ListItemSecondaryAction.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css } from '../styles';\nimport ListItemSecondaryActionProps from './ListItemSecondaryActionProps';\n\ntype ListItemSecondaryActionStyles = NamedStylesStringUnion<'root'>;\n\nconst useStyles: UseStyles<ListItemSecondaryActionStyles> = function (): ListItemSecondaryActionStyles {\n return {\n root: {\n flexShrink: 0,\n marginLeft: 'auto',\n },\n };\n};\n\nexport default function ListItemSecondaryAction(props: ListItemSecondaryActionProps) {\n const {\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n />\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAmD,GAAG,YAA2C;EACnG,OAAO;IACHC,IAAI,EAAE;MACFC,UAAU,EAAE,CADV;MAEFC,UAAU,EAAE;IAFV;EADH,CAAP;AAMH,CAPD;;AASe,SAASC,uBAAT,CAAiCC,KAAjC,EAAsE;EACjF,MAAM;IACFC,KADE;IAEF,GAAGC;EAFD,IAGFF,KAHJ;EAKA,MAAMG,MAAM,GAAGR,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAS,WAAA,EAAI,CACPD,MAAM,CAACP,IADA,EAEPK,KAFO,CAAJ;EADX,GAKQC,UALR,EADJ;AASH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListItemSecondaryActionProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface ListItemSecondaryActionProps\n extends OverridableComponentProps<React.PropsWithChildren<ViewProps>> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './ListItemSecondaryAction';\nexport type { default as ListItemSecondaryActionProps } from './ListItemSecondaryActionProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ListItemSecondaryAction';\nexport type { default as ListItemSecondaryActionProps } from './ListItemSecondaryActionProps';"],"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":["ListItemText.tsx"],"names":["useStyles","theme","root","flexGrow","flexShrink","multiline","marginBottom","spacing","ListItemText","props","primary","secondary","style","otherProps","styles","isMultiline","undefined"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;AAC7E,QAAMC,KAAK,GAAG,uBAAd;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,QAAQ,EAAE,CADR;AAEFC,MAAAA,UAAU,EAAE;AAFV,KADH;AAKHC,IAAAA,SAAS,EAAE;AACPC,MAAAA,YAAY,EAAEL,KAAK,CAACM,OAAN,CAAc,CAAd;AADP;AALR,GAAP;AASH,CAZD;;AAce,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;AAC3D,QAAM;AACFC,IAAAA,OADE;AAEFC,IAAAA,SAFE;AAGFC,IAAAA,KAHE;AAIF,OAAGC;AAJD,MAKFJ,KALJ;AAOA,QAAMK,MAAM,GAAGd,SAAS,EAAxB;AAEA,QAAMe,WAAW,GAAG,CAAC,EAAEL,OAAO,IAAIC,SAAb,CAArB;AAEA,sBACI,6BAAC,eAAD;AACI,IAAA,KAAK,EAAE,iBAAI,CACPG,MAAM,CAACZ,IADA,EAEPU,KAFO,CAAJ;AADX,KAKQC,UALR,GAOKH,OAAO,gBACJ,6BAAC,mBAAD;AACI,IAAA,QAAQ,EAAEA,OADd;AAEI,IAAA,KAAK,EAAE,aAFX;AAGI,IAAA,OAAO,EAAE,OAHb;AAII,IAAA,KAAK,EAAEK,WAAW,GAAGD,MAAM,CAACT,SAAV,GAAsBW;AAJ5C,IADI,GAOJ,IAdR,EAgBKL,SAAS,gBACN,6BAAC,mBAAD;AACI,IAAA,QAAQ,EAAEA,SADd;AAEI,IAAA,KAAK,EAAE,eAFX;AAGI,IAAA,OAAO,EAAE;AAHb,IADM,GAMN,IAtBR,CADJ;AA0BH;;AAAA","sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport Typography from '../Typography';\nimport { css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root' | 'multiline'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n multiline: {\n marginBottom: theme.spacing(1),\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n primary,\n secondary,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const isMultiline = !!(primary && secondary);\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n {primary ? (\n <Typography\n children={primary}\n color={'textPrimary'}\n variant={'body1'}\n style={isMultiline ? styles.multiline : undefined}\n />\n ) : null}\n\n {secondary ? (\n <Typography\n children={secondary}\n color={'textSecondary'}\n variant={'body2'}\n />\n ) : null}\n </Column>\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","flexGrow","flexShrink","multiline","marginBottom","spacing","ListItemText","props","primary","secondary","style","otherProps","styles","isMultiline","css","undefined"],"sources":["ListItemText.tsx"],"sourcesContent":["import React from 'react';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport Column from '../Column';\nimport Typography from '../Typography';\nimport { css, useTheme } from '../styles';\nimport type ListItemTextProps from './ListItemTextProps';\n\ntype ListItemTextStyles = NamedStylesStringUnion<'root' | 'multiline'>;\n\nconst useStyles: UseStyles<ListItemTextStyles> = function (): ListItemTextStyles {\n const theme = useTheme();\n\n return {\n root: {\n flexGrow: 1,\n flexShrink: 1,\n },\n multiline: {\n marginBottom: theme.spacing(1),\n },\n };\n};\n\nexport default function ListItemText(props: ListItemTextProps) {\n const {\n primary,\n secondary,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const isMultiline = !!(primary && secondary);\n\n return (\n <Column\n style={css([\n styles.root,\n style,\n ])}\n {...otherProps}\n >\n {primary ? (\n <Typography\n children={primary}\n color={'textPrimary'}\n variant={'body1'}\n style={isMultiline ? styles.multiline : undefined}\n />\n ) : null}\n\n {secondary ? (\n <Typography\n children={secondary}\n color={'textSecondary'}\n variant={'body2'}\n />\n ) : null}\n </Column>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;AACA;;;;;;AAKA,MAAMA,SAAwC,GAAG,YAAgC;EAC7E,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,QAAQ,EAAE,CADR;MAEFC,UAAU,EAAE;IAFV,CADH;IAKHC,SAAS,EAAE;MACPC,YAAY,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;IADP;EALR,CAAP;AASH,CAZD;;AAce,SAASC,YAAT,CAAsBC,KAAtB,EAAgD;EAC3D,MAAM;IACFC,OADE;IAEFC,SAFE;IAGFC,KAHE;IAIF,GAAGC;EAJD,IAKFJ,KALJ;EAOA,MAAMK,MAAM,GAAGf,SAAS,EAAxB;EAEA,MAAMgB,WAAW,GAAG,CAAC,EAAEL,OAAO,IAAIC,SAAb,CAArB;EAEA,oBACI,6BAAC,eAAD;IACI,KAAK,EAAE,IAAAK,WAAA,EAAI,CACPF,MAAM,CAACZ,IADA,EAEPU,KAFO,CAAJ;EADX,GAKQC,UALR,GAOKH,OAAO,gBACJ,6BAAC,mBAAD;IACI,QAAQ,EAAEA,OADd;IAEI,KAAK,EAAE,aAFX;IAGI,OAAO,EAAE,OAHb;IAII,KAAK,EAAEK,WAAW,GAAGD,MAAM,CAACT,SAAV,GAAsBY;EAJ5C,EADI,GAOJ,IAdR,EAgBKN,SAAS,gBACN,6BAAC,mBAAD;IACI,QAAQ,EAAEA,SADd;IAEI,KAAK,EAAE,eAFX;IAGI,OAAO,EAAE;EAHb,EADM,GAMN,IAtBR,CADJ;AA0BH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListItemTextProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\nimport type { ColumnProps } from '../Column';\n\ntype BaseProps = Omit<ColumnProps, 'children'>;\n\nexport default interface ListItemTextProps extends OverridableComponentProps<BaseProps, {\n /**\n * The main content element.\n */\n primary?: TypographyProps['children'];\n\n /**\n * The secondary content element.\n */\n secondary?: TypographyProps['children'];\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './ListItemText';\nexport type { default as ListItemTextProps } from './ListItemTextProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ListItemText';\nexport type { default as ListItemTextProps } from './ListItemTextProps';"],"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
  function ListSubheader(props) {
23
23
  const {
@@ -1 +1 @@
1
- {"version":3,"sources":["ListSubheader.tsx"],"names":["ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","Platform","OS","undefined","EdgeInsets","horizontal"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGe,SAASA,aAAT,CAAuBC,KAAvB,EAAkD;AAC7D,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,iBAAiB,GAAG,KAFlB;AAGF,OAAGC;AAHD,MAIFH,KAJJ;AAMA,QAAMI,iBAAiB,GAAGC,sBAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;AAEA,sBACI,6BAAC,YAAD,CACI;AADJ;AAEI,IAAA,iBAAiB,EAAEH,iBAFvB;AAGI,IAAA,MAAM,EAAEI,mBAAWC,UAAX,CAAsB,CAAtB;AAHZ,KAIQN,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,6BAAC,mBAAD;AACI,IAAA,QAAQ,EAAEA,QADd;AAEI,IAAA,KAAK,EAAE,eAFX;AAGI,IAAA,OAAO,EAAE;AAHb,IATR,CADJ;AAkBH;;AAAA","sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'textSecondary'}\n variant={'caption1'}\n />\n )}\n </Row>\n );\n};\n"]}
1
+ {"version":3,"names":["ListSubheader","props","children","disableTypography","otherProps","accessibilityRole","Platform","OS","undefined","EdgeInsets","horizontal"],"sources":["ListSubheader.tsx"],"sourcesContent":["import React from 'react';\nimport { Platform } from 'react-native';\nimport Row from '../Row';\nimport Typography from '../Typography';\nimport { EdgeInsets } from '../styles';\nimport type ListSubheaderProps from './ListSubheaderProps';\n\nexport default function ListSubheader(props: ListSubheaderProps) {\n const {\n children,\n disableTypography = false,\n ...otherProps\n } = props;\n\n const accessibilityRole = Platform.OS === 'web' ? 'listitem' : undefined;\n\n return (\n <Row\n // @ts-ignore\n accessibilityRole={accessibilityRole}\n insets={EdgeInsets.horizontal(4)}\n {...otherProps}\n >\n {disableTypography ? (\n children\n ) : (\n <Typography\n children={children}\n color={'textSecondary'}\n variant={'caption1'}\n />\n )}\n </Row>\n );\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;AAGe,SAASA,aAAT,CAAuBC,KAAvB,EAAkD;EAC7D,MAAM;IACFC,QADE;IAEFC,iBAAiB,GAAG,KAFlB;IAGF,GAAGC;EAHD,IAIFH,KAJJ;EAMA,MAAMI,iBAAiB,GAAGC,qBAAA,CAASC,EAAT,KAAgB,KAAhB,GAAwB,UAAxB,GAAqCC,SAA/D;EAEA,oBACI,6BAAC,YAAD,CACI;EADJ;IAEI,iBAAiB,EAAEH,iBAFvB;IAGI,MAAM,EAAEI,kBAAA,CAAWC,UAAX,CAAsB,CAAtB;EAHZ,GAIQN,UAJR,GAMKD,iBAAiB,GACdD,QADc,gBAGd,6BAAC,mBAAD;IACI,QAAQ,EAAEA,QADd;IAEI,KAAK,EAAE,eAFX;IAGI,OAAO,EAAE;EAHb,EATR,CADJ;AAkBH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ListSubheaderProps.ts"],"sourcesContent":["import type { TypographyProps } from '../Typography';\nimport type { OverridableComponentProps } from '../types';\nimport type { RowProps } from '../Row';\n\nexport default interface ListSubheaderProps extends OverridableComponentProps<RowProps, {\n /**\n * The content of the component.\n */\n children?: TypographyProps['children'];\n\n /**\n * If `true`, the children won't be wrapped by a typography component.\n * @default false\n */\n disableTypography?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './ListSubheader';\nexport type { default as ListSubheaderProps } from './ListSubheaderProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './ListSubheader';\nexport type { default as ListSubheaderProps } from './ListSubheaderProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["Menu.tsx"],"names":["Menu","props","children","onClose","visible","otherProps"],"mappings":";;;;;;;AAAA;;;;AAGe,SAASA,IAAT,CAAcC,KAAd,EAAgC;AAC3C,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,OAFE;AAGFC,IAAAA,OAAO,GAAG,KAHR;AAIF,OAAGC;AAJD,MAKFJ,KALJ;AAOA,sBACI,yCADJ;AAGH;;AAAA","sourcesContent":["import React from 'react';\nimport type MenuProps from './MenuProps';\n\nexport default function Menu(props: MenuProps) {\n const {\n children,\n onClose,\n visible = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"]}
1
+ {"version":3,"names":["Menu","props","children","onClose","visible","otherProps"],"sources":["Menu.tsx"],"sourcesContent":["import React from 'react';\nimport type MenuProps from './MenuProps';\n\nexport default function Menu(props: MenuProps) {\n const {\n children,\n onClose,\n visible = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"],"mappings":";;;;;;;AAAA;;;;AAGe,SAASA,IAAT,CAAcC,KAAd,EAAgC;EAC3C,MAAM;IACFC,QADE;IAEFC,OAFE;IAGFC,OAAO,GAAG,KAHR;IAIF,GAAGC;EAJD,IAKFJ,KALJ;EAOA,oBACI,yCADJ;AAGH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["MenuProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ComponentProps } from '../types';\n\nexport default interface MenuProps extends ComponentProps<{\n /**\n * Menu contents, normally `MenuItem`s.\n */\n children?: React.ReactNode;\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose?: () => void,\n\n /**\n * If `true`, the menu is shown.\n */\n visible: boolean,\n}> {}"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Menu';\nexport type { default as MenuProps } from './MenuProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Menu';\nexport type { default as MenuProps } from './MenuProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":["MenuItem.tsx"],"names":["MenuItem","props","children","disabled","onPress","selected","otherProps"],"mappings":";;;;;;;AAAA;;;;AAGe,SAASA,QAAT,CAAkBC,KAAlB,EAAwC;AACnD,QAAM;AACFC,IAAAA,QADE;AAEFC,IAAAA,QAAQ,GAAG,KAFT;AAGFC,IAAAA,OAHE;AAIFC,IAAAA,QAAQ,GAAG,KAJT;AAKF,OAAGC;AALD,MAMFL,KANJ;AAQA,sBACI,yCADJ;AAGH;;AAAA","sourcesContent":["import React from 'react';\nimport type MenuItemProps from './MenuItemProps';\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"]}
1
+ {"version":3,"names":["MenuItem","props","children","disabled","onPress","selected","otherProps"],"sources":["MenuItem.tsx"],"sourcesContent":["import React from 'react';\nimport type MenuItemProps from './MenuItemProps';\n\nexport default function MenuItem(props: MenuItemProps) {\n const {\n children,\n disabled = false,\n onPress,\n selected = false,\n ...otherProps\n } = props;\n\n return (\n <div/>\n );\n};\n"],"mappings":";;;;;;;AAAA;;;;AAGe,SAASA,QAAT,CAAkBC,KAAlB,EAAwC;EACnD,MAAM;IACFC,QADE;IAEFC,QAAQ,GAAG,KAFT;IAGFC,OAHE;IAIFC,QAAQ,GAAG,KAJT;IAKF,GAAGC;EALD,IAMFL,KANJ;EAQA,oBACI,yCADJ;AAGH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["MenuItemProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ComponentProps } from '../types';\n\nexport default interface MenuItemProps extends ComponentProps<{\n /**\n * Menu item contents.\n */\n children?: React.ReactNode;\n\n /**\n * If `true`, the menu item is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Callback fired when the component is pressed.\n */\n onPress?: () => void;\n\n /**\n * If `true`, the menu item is selected.\n * @default false\n */\n selected?: boolean;\n}> {}"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './MenuItem';\nexport type { default as MenuItemProps } from './MenuItemProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './MenuItem';\nexport type { default as MenuItemProps } from './MenuItemProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = Modal;
7
6
  exports.createModalCloseEvent = void 0;
7
+ exports.default = Modal;
8
8
 
9
9
  var _react = _interopRequireDefault(require("react"));
10
10
 
@@ -20,7 +20,7 @@ var _SimpleBackdrop = _interopRequireDefault(require("./SimpleBackdrop"));
20
20
 
21
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
22
 
23
- 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); }
23
+ 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); }
24
24
 
25
25
  const createModalCloseEvent = reason => ({
26
26
  metadata: {
@@ -1 +1 @@
1
- {"version":3,"sources":["Modal.tsx"],"names":["createModalCloseEvent","reason","metadata","Modal","props","animationStyle","backdropOpacity","children","disableAnimation","hideBackdrop","onClose","style","visible","otherProps","handleBackdropPress","exited","setExited","React","useState","elevationStyle","StyleSheet","absoluteFill"],"mappings":";;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAWO,MAAMA,qBAAqB,GAAIC,MAAD,KAAmC;AACpEC,EAAAA,QAAQ,EAAE;AACND,IAAAA;AADM;AAD0D,CAAnC,CAA9B;;;;AAMQ,SAASE,KAAT,CAAeC,KAAf,EAAkC;AAC7C,QAAM;AACFC,IAAAA,cADE;AAEFC,IAAAA,eAAe,GAAG,GAFhB;AAGFC,IAAAA,QAHE;AAIFC,IAAAA,gBAAgB,GAAG,KAJjB;AAKFC,IAAAA,YAAY,GAAG,KALb;AAMFC,IAAAA,OANE;AAOFC,IAAAA,KAPE;AAQFC,IAAAA,OARE;AASF,OAAGC;AATD,MAUFT,KAVJ;;AAYA,QAAMU,mBAAmB,GAAG,MAAM;AAC9B,QAAIJ,OAAJ,EAAa;AACTA,MAAAA,OAAO,CAACV,qBAAqB,CAAC,eAAD,CAAtB,CAAP;AACH;AACJ,GAJD;;AAMA,QAAM,CAACe,MAAD,EAASC,SAAT,IAAsBC,eAAMC,QAAN,CAAe,IAAf,CAA5B;;AAEA,QAAMC,cAAc,GAAG,8BAAkB,CAAlB,CAAvB;;AAEA,MAAI,CAACP,OAAL,EAAc;AACV,QAAIJ,gBAAgB,IAAIO,MAAxB,EAAgC;AAC5B,aAAO,IAAP;AACH;AACJ;;AAED,sBACI,6BAAC,iBAAD;AACI,IAAA,KAAK,EAAE,iBAAI,CACPK,mBAAWC,YADJ,EAEPF,cAFO,EAGPR,KAHO,CAAJ;AADX,KAMQE,UANR,GAQMJ,YAAY,IAAI,CAACG,OAAlB,GAA6B,IAA7B,gBACG,6BAAC,uBAAD;AACI,IAAA,OAAO,EAAEE,mBADb;AAEI,IAAA,OAAO,EAAER;AAFb,IATR,EAeK,CAACE,gBAAD,gBACG,6BAAC,cAAD;AACI,IAAA,MAAM,EAAEI,OADZ;AAEI,IAAA,YAAY,EAAE,GAFlB;AAGI,IAAA,OAAO,EAAE,MAAMI,SAAS,CAAC,KAAD,CAH5B;AAII,IAAA,QAAQ,EAAE,MAAMA,SAAS,CAAC,IAAD,CAJ7B;AAKI,IAAA,KAAK,EAAEX;AALX,KAOKE,QAPL,CADH,GAUGA,QAzBR,CADJ;AA6BH;;AAAA","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport Slide from '../Slide';\nimport SimpleBackdrop from './SimpleBackdrop';\nimport type ModalProps from './ModalProps';\n\nexport type ModalCloseReasonType = 'OUTSIDE_PRESS' | 'HARDWARE_BACK_PRESS' | 'CLOSE_BUTTON_PRESS' | 'UNKNOWN';\n\nexport interface ModalCloseEvent {\n metadata: {\n reason: ModalCloseReasonType\n };\n}\n\nexport const createModalCloseEvent = (reason: ModalCloseReasonType) => ({\n metadata: {\n reason,\n },\n});\n\nexport default function Modal(props: ModalProps) {\n const {\n animationStyle,\n backdropOpacity = 0.5,\n children,\n disableAnimation = false,\n hideBackdrop = false,\n onClose,\n style,\n visible,\n ...otherProps\n } = props;\n\n const handleBackdropPress = () => {\n if (onClose) {\n onClose(createModalCloseEvent('OUTSIDE_PRESS'));\n }\n };\n\n const [exited, setExited] = React.useState(true);\n\n const elevationStyle = useElevationStyle(6);\n\n if (!visible) {\n if (disableAnimation || exited) {\n return null;\n }\n }\n\n return (\n <View\n style={css([\n StyleSheet.absoluteFill,\n elevationStyle,\n style,\n ])}\n {...otherProps}\n >\n {(hideBackdrop || !visible) ? null : (\n <SimpleBackdrop\n onPress={handleBackdropPress}\n opacity={backdropOpacity}\n />\n )}\n\n {!disableAnimation ? (\n <Slide\n appear={visible}\n exitDuration={150}\n onEnter={() => setExited(false)}\n onExited={() => setExited(true)}\n style={animationStyle}\n >\n {children}\n </Slide>\n ) : children}\n </View>\n );\n};\n"]}
1
+ {"version":3,"names":["createModalCloseEvent","reason","metadata","Modal","props","animationStyle","backdropOpacity","children","disableAnimation","hideBackdrop","onClose","style","visible","otherProps","handleBackdropPress","exited","setExited","React","useState","elevationStyle","useElevationStyle","css","StyleSheet","absoluteFill"],"sources":["Modal.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport Slide from '../Slide';\nimport SimpleBackdrop from './SimpleBackdrop';\nimport type ModalProps from './ModalProps';\n\nexport type ModalCloseReasonType = 'OUTSIDE_PRESS' | 'HARDWARE_BACK_PRESS' | 'CLOSE_BUTTON_PRESS' | 'UNKNOWN';\n\nexport interface ModalCloseEvent {\n metadata: {\n reason: ModalCloseReasonType\n };\n}\n\nexport const createModalCloseEvent = (reason: ModalCloseReasonType) => ({\n metadata: {\n reason,\n },\n});\n\nexport default function Modal(props: ModalProps) {\n const {\n animationStyle,\n backdropOpacity = 0.5,\n children,\n disableAnimation = false,\n hideBackdrop = false,\n onClose,\n style,\n visible,\n ...otherProps\n } = props;\n\n const handleBackdropPress = () => {\n if (onClose) {\n onClose(createModalCloseEvent('OUTSIDE_PRESS'));\n }\n };\n\n const [exited, setExited] = React.useState(true);\n\n const elevationStyle = useElevationStyle(6);\n\n if (!visible) {\n if (disableAnimation || exited) {\n return null;\n }\n }\n\n return (\n <View\n style={css([\n StyleSheet.absoluteFill,\n elevationStyle,\n style,\n ])}\n {...otherProps}\n >\n {(hideBackdrop || !visible) ? null : (\n <SimpleBackdrop\n onPress={handleBackdropPress}\n opacity={backdropOpacity}\n />\n )}\n\n {!disableAnimation ? (\n <Slide\n appear={visible}\n exitDuration={150}\n onEnter={() => setExited(false)}\n onExited={() => setExited(true)}\n style={animationStyle}\n >\n {children}\n </Slide>\n ) : children}\n </View>\n );\n};\n"],"mappings":";;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAWO,MAAMA,qBAAqB,GAAIC,MAAD,KAAmC;EACpEC,QAAQ,EAAE;IACND;EADM;AAD0D,CAAnC,CAA9B;;;;AAMQ,SAASE,KAAT,CAAeC,KAAf,EAAkC;EAC7C,MAAM;IACFC,cADE;IAEFC,eAAe,GAAG,GAFhB;IAGFC,QAHE;IAIFC,gBAAgB,GAAG,KAJjB;IAKFC,YAAY,GAAG,KALb;IAMFC,OANE;IAOFC,KAPE;IAQFC,OARE;IASF,GAAGC;EATD,IAUFT,KAVJ;;EAYA,MAAMU,mBAAmB,GAAG,MAAM;IAC9B,IAAIJ,OAAJ,EAAa;MACTA,OAAO,CAACV,qBAAqB,CAAC,eAAD,CAAtB,CAAP;IACH;EACJ,CAJD;;EAMA,MAAM,CAACe,MAAD,EAASC,SAAT,IAAsBC,cAAA,CAAMC,QAAN,CAAe,IAAf,CAA5B;;EAEA,MAAMC,cAAc,GAAG,IAAAC,wBAAA,EAAkB,CAAlB,CAAvB;;EAEA,IAAI,CAACR,OAAL,EAAc;IACV,IAAIJ,gBAAgB,IAAIO,MAAxB,EAAgC;MAC5B,OAAO,IAAP;IACH;EACJ;;EAED,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAM,WAAA,EAAI,CACPC,kBAAA,CAAWC,YADJ,EAEPJ,cAFO,EAGPR,KAHO,CAAJ;EADX,GAMQE,UANR,GAQMJ,YAAY,IAAI,CAACG,OAAlB,GAA6B,IAA7B,gBACG,6BAAC,uBAAD;IACI,OAAO,EAAEE,mBADb;IAEI,OAAO,EAAER;EAFb,EATR,EAeK,CAACE,gBAAD,gBACG,6BAAC,cAAD;IACI,MAAM,EAAEI,OADZ;IAEI,YAAY,EAAE,GAFlB;IAGI,OAAO,EAAE,MAAMI,SAAS,CAAC,KAAD,CAH5B;IAII,QAAQ,EAAE,MAAMA,SAAS,CAAC,IAAD,CAJ7B;IAKI,KAAK,EAAEX;EALX,GAOKE,QAPL,CADH,GAUGA,QAzBR,CADJ;AA6BH;;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["ModalProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { ComponentProps, OverridableComponentProps } from '../types';\nimport { ModalCloseEvent } from './Modal';\n\nexport default interface ModalProps extends OverridableComponentProps<ViewProps, {\n /**\n * Style object provided to animation component.\n */\n animationStyle?: ComponentProps['style'];\n\n /**\n * Opacity for backdrop.\n * @default 0.5\n */\n backdropOpacity?: number;\n\n /**\n * A single child content element.\n */\n children: React.ReactElement;\n\n /**\n * If `true`, the animation is disabled.\n * @default false\n */\n disableAnimation?: boolean;\n\n /**\n * If `true`, the backdrop is not rendered.\n * @default false\n */\n hideBackdrop?: boolean;\n\n /**\n * Callback fired when the component requests to be closed.\n */\n onClose?: (event?: ModalCloseEvent) => void,\n\n /**\n * If `true`, the modal is visible.\n */\n visible: boolean;\n}> {}\n"],"mappings":""}
@@ -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 useStyles = function (opacity) {
19
19
  return {
@@ -1 +1 @@
1
- {"version":3,"sources":["SimpleBackdrop.tsx"],"names":["useStyles","opacity","root","StyleSheet","absoluteFillObject","backgroundColor","invisible","SimpleBackdrop","React","forwardRef","props","ref","style","otherProps","styles","undefined"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAoD,GAAG,UAAUC,OAAV,EAAiD;AAC1G,SAAO;AACHC,IAAAA,IAAI,EAAE,EACF,GAAGC,mBAAWC,kBADZ;AAEFC,MAAAA,eAAe,EAAG,iBAAgBJ,OAAQ;AAFxC,KADH;AAKHK,IAAAA,SAAS,EAAE;AACPD,MAAAA,eAAe,EAAE;AADV;AALR,GAAP;AASH,CAVD;;AAYA,MAAME,cAAc,gBAAGC,eAAMC,UAAN,CAA4C,SAASF,cAAT,CAAwBG,KAAxB,EAA+BC,GAA/B,EAAoC;AACnG,QAAM;AACFL,IAAAA,SAAS,GAAG,KADV;AAEFL,IAAAA,OAAO,GAAG,GAFR;AAGFW,IAAAA,KAHE;AAIF,OAAGC;AAJD,MAKFH,KALJ;AAOA,QAAMI,MAAM,GAAGd,SAAS,CAACC,OAAD,CAAxB;AAEA,sBACI,6BAAC,sBAAD;AACI,IAAA,GAAG,EAAEU,GADT;AAEI,IAAA,KAAK,EAAE,iBAAI,CACPG,MAAM,CAACZ,IADA,EAEPI,SAAS,GAAGQ,MAAM,CAACR,SAAV,GAAsBS,SAFxB,EAGPH,KAHO,CAAJ;AAFX,KAOQC,UAPR,EADJ;AAWH,CArBsB,CAAvB;;eAuBeN,c","sourcesContent":["import React from 'react';\nimport { Pressable, View } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { css, StyleSheet } from '../styles';\nimport type SimpleBackdropProps from './SimpleBackdropProps';\n\ntype SimpleBackdropStyles = NamedStylesStringUnion<'root' | 'invisible'>;\n\nconst useStyles: (opacity: number) => SimpleBackdropStyles = function (opacity: number): SimpleBackdropStyles {\n return {\n root: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: `rgba(0, 0, 0, ${opacity})`,\n },\n invisible: {\n backgroundColor: 'transparent',\n },\n };\n};\n\nconst SimpleBackdrop = React.forwardRef<View, SimpleBackdropProps>(function SimpleBackdrop(props, ref) {\n const {\n invisible = false,\n opacity = 0.5,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles(opacity);\n\n return (\n <Pressable\n ref={ref}\n style={css([\n styles.root,\n invisible ? styles.invisible : undefined,\n style,\n ])}\n {...otherProps}\n />\n );\n});\n\nexport default SimpleBackdrop;\n"]}
1
+ {"version":3,"names":["useStyles","opacity","root","StyleSheet","absoluteFillObject","backgroundColor","invisible","SimpleBackdrop","React","forwardRef","props","ref","style","otherProps","styles","css","undefined"],"sources":["SimpleBackdrop.tsx"],"sourcesContent":["import React from 'react';\nimport { Pressable, View } from 'react-native';\nimport { NamedStylesStringUnion } from '@fountain-ui/styles';\nimport { css, StyleSheet } from '../styles';\nimport type SimpleBackdropProps from './SimpleBackdropProps';\n\ntype SimpleBackdropStyles = NamedStylesStringUnion<'root' | 'invisible'>;\n\nconst useStyles: (opacity: number) => SimpleBackdropStyles = function (opacity: number): SimpleBackdropStyles {\n return {\n root: {\n ...StyleSheet.absoluteFillObject,\n backgroundColor: `rgba(0, 0, 0, ${opacity})`,\n },\n invisible: {\n backgroundColor: 'transparent',\n },\n };\n};\n\nconst SimpleBackdrop = React.forwardRef<View, SimpleBackdropProps>(function SimpleBackdrop(props, ref) {\n const {\n invisible = false,\n opacity = 0.5,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles(opacity);\n\n return (\n <Pressable\n ref={ref}\n style={css([\n styles.root,\n invisible ? styles.invisible : undefined,\n style,\n ])}\n {...otherProps}\n />\n );\n});\n\nexport default SimpleBackdrop;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAAoD,GAAG,UAAUC,OAAV,EAAiD;EAC1G,OAAO;IACHC,IAAI,EAAE,EACF,GAAGC,kBAAA,CAAWC,kBADZ;MAEFC,eAAe,EAAG,iBAAgBJ,OAAQ;IAFxC,CADH;IAKHK,SAAS,EAAE;MACPD,eAAe,EAAE;IADV;EALR,CAAP;AASH,CAVD;;AAYA,MAAME,cAAc,gBAAGC,cAAA,CAAMC,UAAN,CAA4C,SAASF,cAAT,CAAwBG,KAAxB,EAA+BC,GAA/B,EAAoC;EACnG,MAAM;IACFL,SAAS,GAAG,KADV;IAEFL,OAAO,GAAG,GAFR;IAGFW,KAHE;IAIF,GAAGC;EAJD,IAKFH,KALJ;EAOA,MAAMI,MAAM,GAAGd,SAAS,CAACC,OAAD,CAAxB;EAEA,oBACI,6BAAC,sBAAD;IACI,GAAG,EAAEU,GADT;IAEI,KAAK,EAAE,IAAAI,WAAA,EAAI,CACPD,MAAM,CAACZ,IADA,EAEPI,SAAS,GAAGQ,MAAM,CAACR,SAAV,GAAsBU,SAFxB,EAGPJ,KAHO,CAAJ;EAFX,GAOQC,UAPR,EADJ;AAWH,CArBsB,CAAvB;;eAuBeN,c"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["SimpleBackdropProps.ts"],"sourcesContent":["import type { OverridableComponentProps } from '../types';\nimport type { PressableProps } from '../Pressable';\n\nexport default interface SimpleBackdropProps extends OverridableComponentProps<PressableProps, {\n /**\n * If `true`, the modal is visible.\n * @default false\n */\n invisible?: boolean;\n\n /**\n * Opacity to backgroundColor.\n * @default 0.5\n */\n opacity?: number;\n}> {}\n"],"mappings":""}
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- Object.defineProperty(exports, "default", {
6
+ Object.defineProperty(exports, "createModalCloseEvent", {
7
7
  enumerable: true,
8
8
  get: function () {
9
- return _Modal.default;
9
+ return _Modal.createModalCloseEvent;
10
10
  }
11
11
  });
12
- Object.defineProperty(exports, "createModalCloseEvent", {
12
+ Object.defineProperty(exports, "default", {
13
13
  enumerable: true,
14
14
  get: function () {
15
- return _Modal.createModalCloseEvent;
15
+ return _Modal.default;
16
16
  }
17
17
  });
18
18
 
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA","sourcesContent":["export { default, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport type { default as ModalProps } from './ModalProps';\n"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default, createModalCloseEvent } from './Modal';\nexport type { ModalCloseEvent } from './Modal';\nexport type { default as ModalProps } from './ModalProps';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA"}
@@ -21,7 +21,7 @@ var _PaginationItem = _interopRequireDefault(require("../PaginationItem"));
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
- 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); }
24
+ 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); }
25
25
 
26
26
  const useStyles = function () {
27
27
  const theme = (0, _styles.useTheme)();
@@ -72,12 +72,15 @@ function Pagination(props) {
72
72
  infinite = false,
73
73
  onChange,
74
74
  page,
75
- renderItem = ({
76
- index,
77
- ...rest
78
- }) => /*#__PURE__*/_react.default.createElement(_PaginationItem.default, _extends({
79
- key: `${index}`
80
- }, rest)),
75
+ renderItem = _ref => {
76
+ let {
77
+ index,
78
+ ...rest
79
+ } = _ref;
80
+ return /*#__PURE__*/_react.default.createElement(_PaginationItem.default, _extends({
81
+ key: `${index}`
82
+ }, rest));
83
+ },
81
84
  style,
82
85
  ...otherProps
83
86
  } = props;
@@ -1 +1 @@
1
- {"version":3,"sources":["Pagination.tsx"],"names":["useStyles","theme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","i","selected","containerProps"],"mappings":"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","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem';\nimport type PaginationProps from './PaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n children={<ChevronLeft/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n size={'small'}\n style={children ? styles.prevAnchor : styles.prevInline}\n />\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n children={<ChevronRight/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n size={'small'}\n style={children ? styles.nextAnchor : styles.nextInline}\n />\n ) : null;\n\n const items = !hideIndicator ? (\n times(i => renderItem({ index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"]}
1
+ {"version":3,"names":["useStyles","theme","useTheme","root","rootInline","flexDirection","alignItems","rootAnchor","items","justifyContent","marginTop","spacing","arrowContainer","prevInline","marginRight","prevAnchor","position","left","nextInline","marginLeft","nextAnchor","right","Pagination","props","bundleSize","children","count","disabled","hideIndicator","hideNextButton","hidePrevButton","infinite","onChange","page","renderItem","index","rest","style","otherProps","styles","firstPage","lastPage","handleChange","nextPage","handlePrevPress","prevPage","handleNextPress","prevButton","nextButton","times","i","selected","containerProps","css"],"sources":["Pagination.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { times } from '@fountain-ui/utils';\nimport { ChevronLeft, ChevronRight } from '../internal/icons';\nimport { css, useTheme } from '../styles';\nimport IconButton from '../IconButton';\nimport PaginationItem from '../PaginationItem';\nimport type PaginationProps from './PaginationProps';\n\ntype PaginationStyleKeys =\n | 'root'\n | 'rootInline'\n | 'rootAnchor'\n | 'items'\n | 'arrowContainer'\n | 'prevInline'\n | 'prevAnchor'\n | 'nextInline'\n | 'nextAnchor';\n\ntype PaginationStyles = NamedStylesStringUnion<PaginationStyleKeys>;\n\nconst useStyles: UseStyles<PaginationStyles> = function (): PaginationStyles {\n const theme = useTheme();\n\n return {\n root: {},\n rootInline: {\n flexDirection: 'row',\n alignItems: 'center',\n },\n rootAnchor: {\n flexDirection: 'column',\n },\n items: {\n flexDirection: 'row',\n justifyContent: 'center',\n marginTop: theme.spacing(2),\n },\n arrowContainer: {\n flexDirection: 'column',\n justifyContent: 'center',\n },\n prevInline: {\n marginRight: theme.spacing(1),\n },\n prevAnchor: {\n position: 'absolute',\n left: -24,\n },\n nextInline: {\n marginLeft: theme.spacing(1),\n },\n nextAnchor: {\n position: 'absolute',\n right: -24,\n },\n };\n};\n\nexport default function Pagination(props: PaginationProps) {\n const {\n bundleSize = 1,\n children,\n count,\n disabled = false,\n hideIndicator = false,\n hideNextButton = false,\n hidePrevButton = false,\n infinite = false,\n onChange,\n page,\n renderItem = ({ index, ...rest }) => <PaginationItem key={`${index}`} {...rest}/>,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n const firstPage = 0;\n const lastPage = count - 1;\n\n const handleChange = (nextPage: number) => {\n if (nextPage >= firstPage && nextPage <= lastPage) {\n if (onChange) {\n onChange(nextPage);\n }\n }\n };\n\n const handlePrevPress = () => {\n const prevPage = page - bundleSize >= firstPage\n ? page - bundleSize\n : (infinite ? count - bundleSize + page : firstPage);\n\n handleChange(prevPage);\n };\n\n const handleNextPress = () => {\n const nextPage = page + bundleSize <= lastPage\n ? page + bundleSize\n : (infinite ? page + bundleSize - count : lastPage);\n\n handleChange(nextPage);\n };\n\n const prevButton = !hidePrevButton ? (\n <IconButton\n children={<ChevronLeft/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page <= firstPage)}\n onPress={handlePrevPress}\n size={'small'}\n style={children ? styles.prevAnchor : styles.prevInline}\n />\n ) : null;\n\n const nextButton = !hideNextButton ? (\n <IconButton\n children={<ChevronRight/>}\n color={'tertiary'}\n disabled={disabled || (!infinite && page + bundleSize > lastPage)}\n onPress={handleNextPress}\n size={'small'}\n style={children ? styles.nextAnchor : styles.nextInline}\n />\n ) : null;\n\n const items = !hideIndicator ? (\n times(i => renderItem({ index: i, disabled, selected: i === page }), count)\n ) : null;\n\n const containerProps = {\n style: css([\n styles.root,\n children ? styles.rootAnchor : styles.rootInline,\n style,\n ]),\n ...otherProps,\n };\n\n if (children) {\n return (\n <View {...containerProps}>\n <View style={css(styles.arrowContainer)}>\n {children}\n {prevButton}\n {nextButton}\n </View>\n\n <View style={css(styles.items)}>\n {items}\n </View>\n </View>\n );\n }\n\n return (\n <View {...containerProps}>\n {prevButton}\n {items}\n {nextButton}\n </View>\n );\n};\n"],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PaginationProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport interface PaginationRenderItemParams {\n /**\n * Index of the pagination item.\n */\n index: number;\n\n /**\n * If `true`, the pagination item is disabled.\n */\n disabled: boolean;\n\n /**\n * If `true` the pagination item is selected.\n */\n selected: boolean;\n}\n\nexport default interface PaginationProps extends OverridableComponentProps<ViewProps, {\n /**\n * The Number of pages that change when the button is pressed\n * @default 1\n */\n bundleSize?: number,\n\n /**\n * The pagination will be added relative to this node.\n */\n children?: React.ReactNode;\n\n /**\n * The total number of pages.\n */\n count: number,\n\n /**\n * If `true`, the pagination is disabled.\n * @default false\n */\n disabled?: boolean;\n\n\n /**\n * If `true`, hide the page indicator.\n * @default false\n */\n hideIndicator?: boolean,\n\n /**\n * If `true`, hide the next-page button.\n * @default false\n */\n hideNextButton?: boolean,\n\n /**\n * If `true`, hide the previous-page button.\n * @default false\n */\n hidePrevButton?: boolean,\n\n /**\n * If `true`, pagination is infinite.\n * @default false\n */\n infinite?: boolean,\n\n /**\n * Callback fired when the page is changed.\n */\n onChange?: (page: number) => void,\n\n /**\n * The current page number.\n */\n page: number;\n\n /**\n * Render the item.\n * @default (item) => <PaginationItem {...item} />\n */\n renderItem?: (params: PaginationRenderItemParams) => React.ReactNode;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Pagination';\nexport type { default as PaginationProps } from './PaginationProps';"],"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 useStyles = function () {
19
19
  const theme = (0, _styles.useTheme)();
@@ -1 +1 @@
1
- {"version":3,"sources":["PaginationItem.tsx"],"names":["useStyles","theme","size","root","width","height","borderRadius","marginHorizontal","spacing","selected","backgroundColor","palette","secondary","main","unselected","PaginationItem","props","disabled","style","otherProps","styles","React","memo"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAA0C,GAAG,YAAkC;AACjF,QAAMC,KAAK,GAAG,uBAAd;AAEA,QAAMC,IAAI,GAAG,CAAb;AAEA,SAAO;AACHC,IAAAA,IAAI,EAAE;AACFC,MAAAA,KAAK,EAAEF,IADL;AAEFG,MAAAA,MAAM,EAAEH,IAFN;AAGFI,MAAAA,YAAY,EAAEJ,IAAI,GAAG,GAHnB;AAIFK,MAAAA,gBAAgB,EAAEN,KAAK,CAACO,OAAN,CAAc,CAAd;AAJhB,KADH;AAOHC,IAAAA,QAAQ,EAAE;AACNC,MAAAA,eAAe,EAAET,KAAK,CAACU,OAAN,CAAcC,SAAd,CAAwBC;AADnC,KAPP;AAUHC,IAAAA,UAAU,EAAE;AACRJ,MAAAA,eAAe,EAAE;AADT;AAVT,GAAP;AAcH,CAnBD;;AAqBA,SAASK,cAAT,CAAwBC,KAAxB,EAAoD;AAChD,QAAM;AACFC,IAAAA,QADE;AAEFR,IAAAA,QAFE;AAGFS,IAAAA,KAHE;AAIF,OAAGC;AAJD,MAKFH,KALJ;AAOA,QAAMI,MAAM,GAAGpB,SAAS,EAAxB;AAEA,sBACI,6BAAC,iBAAD;AACI,IAAA,KAAK,EAAE,iBAAI,CACPoB,MAAM,CAACjB,IADA,EAEPM,QAAQ,GAAGW,MAAM,CAACX,QAAV,GAAqBW,MAAM,CAACN,UAF7B,EAGPI,KAHO,CAAJ;AADX,KAMQC,UANR,EADJ;AAUH;;4BAEcE,eAAMC,IAAN,CAAWP,cAAX,C","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\ntype PaginationItemStyles = NamedStylesStringUnion<'root' | 'selected' | 'unselected'>;\n\nconst useStyles: UseStyles<PaginationItemStyles> = function (): PaginationItemStyles {\n const theme = useTheme();\n\n const size = 6;\n\n return {\n root: {\n width: size,\n height: size,\n borderRadius: size * 0.5,\n marginHorizontal: theme.spacing(1),\n },\n selected: {\n backgroundColor: theme.palette.secondary.main,\n },\n unselected: {\n backgroundColor: '#D1D1D1',\n },\n };\n};\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n disabled,\n selected,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n selected ? styles.selected : styles.unselected,\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"]}
1
+ {"version":3,"names":["useStyles","theme","useTheme","size","root","width","height","borderRadius","marginHorizontal","spacing","selected","backgroundColor","palette","secondary","main","unselected","PaginationItem","props","disabled","style","otherProps","styles","css","React","memo"],"sources":["PaginationItem.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { NamedStylesStringUnion, UseStyles } from '@fountain-ui/styles';\nimport { css, useTheme } from '../styles';\nimport type PaginationItemProps from './PaginationItemProps';\n\ntype PaginationItemStyles = NamedStylesStringUnion<'root' | 'selected' | 'unselected'>;\n\nconst useStyles: UseStyles<PaginationItemStyles> = function (): PaginationItemStyles {\n const theme = useTheme();\n\n const size = 6;\n\n return {\n root: {\n width: size,\n height: size,\n borderRadius: size * 0.5,\n marginHorizontal: theme.spacing(1),\n },\n selected: {\n backgroundColor: theme.palette.secondary.main,\n },\n unselected: {\n backgroundColor: '#D1D1D1',\n },\n };\n};\n\nfunction PaginationItem(props: PaginationItemProps) {\n const {\n disabled,\n selected,\n style,\n ...otherProps\n } = props;\n\n const styles = useStyles();\n\n return (\n <View\n style={css([\n styles.root,\n selected ? styles.selected : styles.unselected,\n style,\n ])}\n {...otherProps}\n />\n );\n}\n\nexport default React.memo(PaginationItem);\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;;;;;AAKA,MAAMA,SAA0C,GAAG,YAAkC;EACjF,MAAMC,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMC,IAAI,GAAG,CAAb;EAEA,OAAO;IACHC,IAAI,EAAE;MACFC,KAAK,EAAEF,IADL;MAEFG,MAAM,EAAEH,IAFN;MAGFI,YAAY,EAAEJ,IAAI,GAAG,GAHnB;MAIFK,gBAAgB,EAAEP,KAAK,CAACQ,OAAN,CAAc,CAAd;IAJhB,CADH;IAOHC,QAAQ,EAAE;MACNC,eAAe,EAAEV,KAAK,CAACW,OAAN,CAAcC,SAAd,CAAwBC;IADnC,CAPP;IAUHC,UAAU,EAAE;MACRJ,eAAe,EAAE;IADT;EAVT,CAAP;AAcH,CAnBD;;AAqBA,SAASK,cAAT,CAAwBC,KAAxB,EAAoD;EAChD,MAAM;IACFC,QADE;IAEFR,QAFE;IAGFS,KAHE;IAIF,GAAGC;EAJD,IAKFH,KALJ;EAOA,MAAMI,MAAM,GAAGrB,SAAS,EAAxB;EAEA,oBACI,6BAAC,iBAAD;IACI,KAAK,EAAE,IAAAsB,WAAA,EAAI,CACPD,MAAM,CAACjB,IADA,EAEPM,QAAQ,GAAGW,MAAM,CAACX,QAAV,GAAqBW,MAAM,CAACN,UAF7B,EAGPI,KAHO,CAAJ;EADX,GAMQC,UANR,EADJ;AAUH;;4BAEcG,cAAA,CAAMC,IAAN,CAAWR,cAAX,C"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PaginationItemProps.ts"],"sourcesContent":["import type { ViewProps } from 'react-native';\nimport type { OverridableComponentProps } from '../types';\n\nexport default interface PaginationItemProps extends OverridableComponentProps<ViewProps, {\n /**\n * If `true`, the pagination item is disabled.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * If `true` the pagination item is selected.\n * @default false\n */\n selected?: boolean;\n}> {}\n"],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './PaginationItem';\nexport type { default as PaginationItemProps } from './PaginationItemProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './PaginationItem';\nexport type { default as PaginationItemProps } from './PaginationItemProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -13,13 +13,16 @@ var _styles = require("../styles");
13
13
 
14
14
  var _hooks = require("../hooks");
15
15
 
16
+ var _PaperStylesProvider = _interopRequireDefault(require("./PaperStylesProvider"));
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); }
19
21
 
20
22
  const Paper = /*#__PURE__*/_react.default.forwardRef(function Paper(props, ref) {
21
23
  const {
22
24
  color = 'default',
25
+ colorValue,
23
26
  elevation = 1,
24
27
  style: styleProp,
25
28
  square = false,
@@ -27,8 +30,9 @@ const Paper = /*#__PURE__*/_react.default.forwardRef(function Paper(props, ref)
27
30
  ...otherProps
28
31
  } = props;
29
32
  const theme = (0, _styles.useTheme)();
33
+ const backgroundColor = colorValue ?? theme.palette.paper[color];
30
34
  const rootStyle = {
31
- backgroundColor: theme.palette.paper[color]
35
+ backgroundColor
32
36
  };
33
37
  const roundedStyle = {
34
38
  borderRadius: theme.shape.roundness
@@ -40,10 +44,14 @@ const Paper = /*#__PURE__*/_react.default.forwardRef(function Paper(props, ref)
40
44
  borderColor: theme.palette.divider
41
45
  };
42
46
  const style = (0, _styles.css)([rootStyle, variant === 'elevation' ? elevationStyle : outlinedStyle, !square ? roundedStyle : undefined, styleProp]);
43
- return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
47
+ return /*#__PURE__*/_react.default.createElement(_PaperStylesProvider.default, {
48
+ value: {
49
+ backgroundColor
50
+ }
51
+ }, /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
44
52
  ref: ref,
45
53
  style: style
46
- }, otherProps));
54
+ }, otherProps)));
47
55
  });
48
56
 
49
57
  var _default = Paper;
@@ -1 +1 @@
1
- {"version":3,"sources":["Paper.tsx"],"names":["Paper","React","forwardRef","props","ref","color","elevation","style","styleProp","square","variant","otherProps","theme","rootStyle","backgroundColor","palette","paper","roundedStyle","borderRadius","shape","roundness","elevationStyle","outlinedStyle","borderWidth","StyleSheet","hairlineWidth","borderStyle","borderColor","divider","undefined"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAGA,MAAMA,KAAK,gBAAGC,eAAMC,UAAN,CAAmC,SAASF,KAAT,CAAeG,KAAf,EAAsBC,GAAtB,EAA2B;AACxE,QAAM;AACFC,IAAAA,KAAK,GAAG,SADN;AAEFC,IAAAA,SAAS,GAAG,CAFV;AAGFC,IAAAA,KAAK,EAAEC,SAHL;AAIFC,IAAAA,MAAM,GAAG,KAJP;AAKFC,IAAAA,OAAO,GAAG,WALR;AAMF,OAAGC;AAND,MAOFR,KAPJ;AASA,QAAMS,KAAK,GAAG,uBAAd;AAEA,QAAMC,SAAS,GAAG;AACdC,IAAAA,eAAe,EAAEF,KAAK,CAACG,OAAN,CAAcC,KAAd,CAAoBX,KAApB;AADH,GAAlB;AAIA,QAAMY,YAAY,GAAG;AACjBC,IAAAA,YAAY,EAAEN,KAAK,CAACO,KAAN,CAAYC;AADT,GAArB;AAIA,QAAMC,cAAc,GAAG,8BAAkBf,SAAlB,CAAvB;AAEA,QAAMgB,aAAa,GAAG;AAClBC,IAAAA,WAAW,EAAEC,mBAAWC,aADN;AAElBC,IAAAA,WAAW,EAAE,OAFK;AAGlBC,IAAAA,WAAW,EAAEf,KAAK,CAACG,OAAN,CAAca;AAHT,GAAtB;AAMA,QAAMrB,KAAK,GAAG,iBAAI,CACdM,SADc,EAEdH,OAAO,KAAK,WAAZ,GAA0BW,cAA1B,GAA2CC,aAF7B,EAGd,CAACb,MAAD,GAAUQ,YAAV,GAAyBY,SAHX,EAIdrB,SAJc,CAAJ,CAAd;AAOA,sBACI,6BAAC,iBAAD;AACI,IAAA,GAAG,EAAEJ,GADT;AAEI,IAAA,KAAK,EAAEG;AAFX,KAGQI,UAHR,EADJ;AAOH,CA1Ca,CAAd;;eA4CeX,K","sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport type PaperProps from './PaperProps';\n\nconst Paper = React.forwardRef<View, PaperProps>(function Paper(props, ref) {\n const {\n color = 'default',\n elevation = 1,\n style: styleProp,\n square = false,\n variant = 'elevation',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const rootStyle = {\n backgroundColor: theme.palette.paper[color],\n };\n\n const roundedStyle = {\n borderRadius: theme.shape.roundness,\n };\n\n const elevationStyle = useElevationStyle(elevation);\n\n const outlinedStyle = {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.divider,\n };\n\n const style = css([\n rootStyle,\n variant === 'elevation' ? elevationStyle : outlinedStyle,\n !square ? roundedStyle : undefined,\n styleProp,\n ]);\n\n return (\n <View\n ref={ref}\n style={style}\n {...otherProps}\n />\n );\n});\n\nexport default Paper;\n"]}
1
+ {"version":3,"names":["Paper","React","forwardRef","props","ref","color","colorValue","elevation","style","styleProp","square","variant","otherProps","theme","useTheme","backgroundColor","palette","paper","rootStyle","roundedStyle","borderRadius","shape","roundness","elevationStyle","useElevationStyle","outlinedStyle","borderWidth","StyleSheet","hairlineWidth","borderStyle","borderColor","divider","css","undefined"],"sources":["Paper.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\nimport { css, StyleSheet, useTheme } from '../styles';\nimport { useElevationStyle } from '../hooks';\nimport type PaperProps from './PaperProps';\nimport PaperStylesProvider from './PaperStylesProvider';\n\nconst Paper = React.forwardRef<View, PaperProps>(function Paper(props, ref) {\n const {\n color = 'default',\n colorValue,\n elevation = 1,\n style: styleProp,\n square = false,\n variant = 'elevation',\n ...otherProps\n } = props;\n\n const theme = useTheme();\n\n const backgroundColor = colorValue ?? theme.palette.paper[color];\n\n const rootStyle = { backgroundColor };\n\n const roundedStyle = {\n borderRadius: theme.shape.roundness,\n };\n\n const elevationStyle = useElevationStyle(elevation);\n\n const outlinedStyle = {\n borderWidth: StyleSheet.hairlineWidth,\n borderStyle: 'solid',\n borderColor: theme.palette.divider,\n };\n\n const style = css([\n rootStyle,\n variant === 'elevation' ? elevationStyle : outlinedStyle,\n !square ? roundedStyle : undefined,\n styleProp,\n ]);\n\n return (\n <PaperStylesProvider\n value={{ backgroundColor }}\n >\n <View\n ref={ref}\n style={style}\n {...otherProps}\n />\n </PaperStylesProvider>\n );\n});\n\nexport default Paper;\n"],"mappings":";;;;;;;AAAA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,KAAK,gBAAGC,cAAA,CAAMC,UAAN,CAAmC,SAASF,KAAT,CAAeG,KAAf,EAAsBC,GAAtB,EAA2B;EACxE,MAAM;IACFC,KAAK,GAAG,SADN;IAEFC,UAFE;IAGFC,SAAS,GAAG,CAHV;IAIFC,KAAK,EAAEC,SAJL;IAKFC,MAAM,GAAG,KALP;IAMFC,OAAO,GAAG,WANR;IAOF,GAAGC;EAPD,IAQFT,KARJ;EAUA,MAAMU,KAAK,GAAG,IAAAC,gBAAA,GAAd;EAEA,MAAMC,eAAe,GAAGT,UAAU,IAAIO,KAAK,CAACG,OAAN,CAAcC,KAAd,CAAoBZ,KAApB,CAAtC;EAEA,MAAMa,SAAS,GAAG;IAAEH;EAAF,CAAlB;EAEA,MAAMI,YAAY,GAAG;IACjBC,YAAY,EAAEP,KAAK,CAACQ,KAAN,CAAYC;EADT,CAArB;EAIA,MAAMC,cAAc,GAAG,IAAAC,wBAAA,EAAkBjB,SAAlB,CAAvB;EAEA,MAAMkB,aAAa,GAAG;IAClBC,WAAW,EAAEC,kBAAA,CAAWC,aADN;IAElBC,WAAW,EAAE,OAFK;IAGlBC,WAAW,EAAEjB,KAAK,CAACG,OAAN,CAAce;EAHT,CAAtB;EAMA,MAAMvB,KAAK,GAAG,IAAAwB,WAAA,EAAI,CACdd,SADc,EAEdP,OAAO,KAAK,WAAZ,GAA0BY,cAA1B,GAA2CE,aAF7B,EAGd,CAACf,MAAD,GAAUS,YAAV,GAAyBc,SAHX,EAIdxB,SAJc,CAAJ,CAAd;EAOA,oBACI,6BAAC,4BAAD;IACI,KAAK,EAAE;MAAEM;IAAF;EADX,gBAGI,6BAAC,iBAAD;IACI,GAAG,EAAEX,GADT;IAEI,KAAK,EAAEI;EAFX,GAGQI,UAHR,EAHJ,CADJ;AAWH,CA/Ca,CAAd;;eAiDeZ,K"}
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
1
+ {"version":3,"names":[],"sources":["PaperProps.ts"],"sourcesContent":["import React from 'react';\nimport type { ViewProps } from 'react-native';\nimport type { Elevation } from '@fountain-ui/styles';\nimport type { OverridableComponentProps } from '../types';\n\nexport type PaperColor = 'default' | 'grey';\n\nexport type PaperVariant = 'elevation' | 'outlined';\n\nexport default interface PaperProps extends OverridableComponentProps<ViewProps, {\n /**\n * The content of the component.\n */\n children?: React.ReactNode;\n\n /**\n * The color of Paper.\n * @default 'default'\n */\n color?: PaperColor;\n\n /**\n * The hex color value of Paper.\n * It has higher priority than `color` prop.\n */\n colorValue?: string;\n\n /**\n * Shadow depth, corresponds to `dp` in the spec.\n * It accepts values between 0 and 24 inclusive.\n * @default 1\n */\n elevation?: Elevation;\n\n /**\n * If `true`, rounded corners are disabled.\n * @default false\n */\n square?: boolean;\n\n /**\n * The variant to use.\n * @default 'elevation'\n */\n variant?: PaperVariant;\n}> {}\n"],"mappings":""}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = exports.PaperStylesContext = void 0;
7
+
8
+ var _react = require("react");
9
+
10
+ const PaperStylesContext = /*#__PURE__*/(0, _react.createContext)(null);
11
+ exports.PaperStylesContext = PaperStylesContext;
12
+ var _default = PaperStylesContext.Provider;
13
+ exports.default = _default;
14
+ //# sourceMappingURL=PaperStylesProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["PaperStylesContext","createContext","Provider"],"sources":["PaperStylesProvider.tsx"],"sourcesContent":["import { createContext } from 'react';\n\nexport type PaperStyles = {\n backgroundColor: string;\n}\n\nexport const PaperStylesContext = createContext<PaperStyles | null>(null);\n\nexport default PaperStylesContext.Provider;\n"],"mappings":";;;;;;;AAAA;;AAMO,MAAMA,kBAAkB,gBAAG,IAAAC,oBAAA,EAAkC,IAAlC,CAA3B;;eAEQD,kBAAkB,CAACE,Q"}
@@ -1 +1 @@
1
- {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA","sourcesContent":["export { default } from './Paper';\nexport type { default as PaperProps } from './PaperProps';"]}
1
+ {"version":3,"names":[],"sources":["index.ts"],"sourcesContent":["export { default } from './Paper';\nexport type { default as PaperProps } from './PaperProps';"],"mappings":";;;;;;;;;;;;AAAA"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = usePaperStyles;
7
+
8
+ var _react = require("react");
9
+
10
+ var _PaperStylesProvider = require("./PaperStylesProvider");
11
+
12
+ function usePaperStyles() {
13
+ return (0, _react.useContext)(_PaperStylesProvider.PaperStylesContext);
14
+ }
15
+
16
+ ;
17
+ //# sourceMappingURL=usePaperStyles.js.map