@basic-ui/material 1.0.0-alpha.0 → 1.0.0-alpha.1

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 (477) hide show
  1. package/build/cjs/index.js +21 -17
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/esm/Alert/Alert.d.ts +2 -2
  4. package/build/esm/Alert/Alert.js +8 -8
  5. package/build/esm/Alert/Alert.js.map +1 -1
  6. package/build/esm/Alert/index.js +0 -0
  7. package/build/esm/AppBar/AppBar.d.ts +3 -3
  8. package/build/esm/AppBar/AppBar.js +24 -16
  9. package/build/esm/AppBar/AppBar.js.map +1 -1
  10. package/build/esm/AppBar/AppBarButton.d.ts +2 -2
  11. package/build/esm/AppBar/AppBarButton.js +8 -9
  12. package/build/esm/AppBar/AppBarButton.js.map +1 -1
  13. package/build/esm/AppBar/context.d.ts +1 -1
  14. package/build/esm/AppBar/context.js +6 -5
  15. package/build/esm/AppBar/context.js.map +1 -1
  16. package/build/esm/AppBar/index.js +0 -0
  17. package/build/esm/Badge/Badge.d.ts +2 -2
  18. package/build/esm/Badge/Badge.js +2 -2
  19. package/build/esm/Badge/Badge.js.map +1 -1
  20. package/build/esm/Badge/index.js +0 -0
  21. package/build/esm/BaseLine/BaseLine.js +4 -4
  22. package/build/esm/BaseLine/BaseLine.js.map +1 -1
  23. package/build/esm/BaseLine/index.js +0 -0
  24. package/build/esm/BottomSheet/BottomSheet.d.ts +2 -2
  25. package/build/esm/BottomSheet/BottomSheet.js +11 -13
  26. package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
  27. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +4 -4
  28. package/build/esm/BottomSheet/BottomSheetSurface.js +7 -8
  29. package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
  30. package/build/esm/BottomSheet/index.js +0 -0
  31. package/build/esm/Box/Box.d.ts +5 -5
  32. package/build/esm/Box/Box.js +27 -19
  33. package/build/esm/Box/Box.js.map +1 -1
  34. package/build/esm/Box/index.js +0 -0
  35. package/build/esm/Button/BaseButton.d.ts +3 -3
  36. package/build/esm/Button/BaseButton.js +11 -12
  37. package/build/esm/Button/BaseButton.js.map +1 -1
  38. package/build/esm/Button/Button.d.ts +3 -3
  39. package/build/esm/Button/Button.js +27 -22
  40. package/build/esm/Button/Button.js.map +1 -1
  41. package/build/esm/Button/ButtonGroup.d.ts +3 -3
  42. package/build/esm/Button/ButtonGroup.js +15 -12
  43. package/build/esm/Button/ButtonGroup.js.map +1 -1
  44. package/build/esm/Button/FilledButton.d.ts +2 -2
  45. package/build/esm/Button/FilledButton.js +57 -49
  46. package/build/esm/Button/FilledButton.js.map +1 -1
  47. package/build/esm/Button/FloatingActionButton.d.ts +1 -1
  48. package/build/esm/Button/FloatingActionButton.js +0 -0
  49. package/build/esm/Button/FloatingActionButton.js.map +1 -1
  50. package/build/esm/Button/IconButton.d.ts +1 -1
  51. package/build/esm/Button/IconButton.js +0 -0
  52. package/build/esm/Button/IconButton.js.map +1 -1
  53. package/build/esm/Button/OutlinedButton.d.ts +1 -1
  54. package/build/esm/Button/OutlinedButton.js +27 -25
  55. package/build/esm/Button/OutlinedButton.js.map +1 -1
  56. package/build/esm/Button/TransparentButton.d.ts +2 -2
  57. package/build/esm/Button/TransparentButton.js +45 -41
  58. package/build/esm/Button/TransparentButton.js.map +1 -1
  59. package/build/esm/Button/context.d.ts +0 -0
  60. package/build/esm/Button/context.js +4 -2
  61. package/build/esm/Button/context.js.map +1 -1
  62. package/build/esm/Button/index.js +0 -0
  63. package/build/esm/CheckBox/CheckBox.d.ts +3 -3
  64. package/build/esm/CheckBox/CheckBox.js +42 -35
  65. package/build/esm/CheckBox/CheckBox.js.map +1 -1
  66. package/build/esm/CheckBox/CheckBoxIcon.d.ts +3 -3
  67. package/build/esm/CheckBox/CheckBoxIcon.js +15 -13
  68. package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
  69. package/build/esm/CheckBox/CheckPath.js +15 -14
  70. package/build/esm/CheckBox/CheckPath.js.map +1 -1
  71. package/build/esm/CheckBox/IndeterminatePath.js +14 -13
  72. package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
  73. package/build/esm/CheckBox/index.js +0 -0
  74. package/build/esm/Chip/ButtonChip.d.ts +3 -3
  75. package/build/esm/Chip/ButtonChip.js +15 -15
  76. package/build/esm/Chip/ButtonChip.js.map +1 -1
  77. package/build/esm/Chip/Chip.js +0 -0
  78. package/build/esm/Chip/ChipBase.d.ts +3 -3
  79. package/build/esm/Chip/ChipBase.js +24 -19
  80. package/build/esm/Chip/ChipBase.js.map +1 -1
  81. package/build/esm/Chip/ChoiceChip.d.ts +3 -3
  82. package/build/esm/Chip/ChoiceChip.js +25 -26
  83. package/build/esm/Chip/ChoiceChip.js.map +1 -1
  84. package/build/esm/Chip/index.js +0 -0
  85. package/build/esm/ColorMode/ColorModeProvider.d.ts +1 -1
  86. package/build/esm/ColorMode/ColorModeProvider.js +32 -19
  87. package/build/esm/ColorMode/ColorModeProvider.js.map +1 -1
  88. package/build/esm/ColorMode/color-mode.js +3 -3
  89. package/build/esm/ColorMode/color-mode.js.map +1 -1
  90. package/build/esm/ColorMode/color-vars.js +20 -12
  91. package/build/esm/ColorMode/color-vars.js.map +1 -1
  92. package/build/esm/ColorMode/constants.js +3 -3
  93. package/build/esm/ColorMode/constants.js.map +1 -1
  94. package/build/esm/ColorMode/index.js +0 -0
  95. package/build/esm/Combobox/Combobox.d.ts +15 -15
  96. package/build/esm/Combobox/Combobox.js +50 -56
  97. package/build/esm/Combobox/Combobox.js.map +1 -1
  98. package/build/esm/Combobox/index.js +0 -0
  99. package/build/esm/Dialog/Dialog.d.ts +5 -5
  100. package/build/esm/Dialog/Dialog.js +22 -23
  101. package/build/esm/Dialog/Dialog.js.map +1 -1
  102. package/build/esm/Dialog/DialogBackdrop.d.ts +4 -4
  103. package/build/esm/Dialog/DialogBackdrop.js +10 -11
  104. package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
  105. package/build/esm/Dialog/DialogContainer.d.ts +2 -2
  106. package/build/esm/Dialog/DialogContainer.js +4 -6
  107. package/build/esm/Dialog/DialogContainer.js.map +1 -1
  108. package/build/esm/Dialog/DialogSurface.d.ts +4 -4
  109. package/build/esm/Dialog/DialogSurface.js +14 -14
  110. package/build/esm/Dialog/DialogSurface.js.map +1 -1
  111. package/build/esm/Dialog/Scrim.d.ts +2 -2
  112. package/build/esm/Dialog/Scrim.js +4 -6
  113. package/build/esm/Dialog/Scrim.js.map +1 -1
  114. package/build/esm/Dialog/index.js +0 -0
  115. package/build/esm/Dialog/useDialogAnimation.js +19 -20
  116. package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
  117. package/build/esm/Divider/Divider.d.ts +3 -3
  118. package/build/esm/Divider/Divider.js +9 -8
  119. package/build/esm/Divider/Divider.js.map +1 -1
  120. package/build/esm/Divider/index.js +0 -0
  121. package/build/esm/FloatingLabel/FloatingLabel.d.ts +1 -1
  122. package/build/esm/FloatingLabel/FloatingLabel.js +26 -22
  123. package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
  124. package/build/esm/FloatingLabel/index.js +0 -0
  125. package/build/esm/LineRipple/LineRipple.d.ts +3 -3
  126. package/build/esm/LineRipple/LineRipple.js +27 -18
  127. package/build/esm/LineRipple/LineRipple.js.map +1 -1
  128. package/build/esm/LineRipple/index.js +0 -0
  129. package/build/esm/Link/Link.d.ts +3 -3
  130. package/build/esm/Link/Link.js +10 -9
  131. package/build/esm/Link/Link.js.map +1 -1
  132. package/build/esm/Link/index.js +0 -0
  133. package/build/esm/List/List.d.ts +3 -3
  134. package/build/esm/List/List.js +20 -13
  135. package/build/esm/List/List.js.map +1 -1
  136. package/build/esm/List/index.js +0 -0
  137. package/build/esm/ListItem/ListItem.d.ts +3 -3
  138. package/build/esm/ListItem/ListItem.js +24 -21
  139. package/build/esm/ListItem/ListItem.js.map +1 -1
  140. package/build/esm/ListItem/ListItemText.d.ts +1 -1
  141. package/build/esm/ListItem/ListItemText.js +8 -8
  142. package/build/esm/ListItem/ListItemText.js.map +1 -1
  143. package/build/esm/ListItem/context.js +0 -0
  144. package/build/esm/ListItem/index.js +0 -0
  145. package/build/esm/Menu/Menu.d.ts +10 -10
  146. package/build/esm/Menu/Menu.js +22 -25
  147. package/build/esm/Menu/Menu.js.map +1 -1
  148. package/build/esm/Menu/animation.d.ts +1 -1
  149. package/build/esm/Menu/animation.js +1 -1
  150. package/build/esm/Menu/animation.js.map +1 -1
  151. package/build/esm/Menu/index.js +0 -0
  152. package/build/esm/NotchedOutline/NotchedOutline.d.ts +1 -1
  153. package/build/esm/NotchedOutline/NotchedOutline.js +25 -21
  154. package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
  155. package/build/esm/NotchedOutline/context.js +6 -5
  156. package/build/esm/NotchedOutline/context.js.map +1 -1
  157. package/build/esm/NotchedOutline/index.js +0 -0
  158. package/build/esm/NotchedOutline/styledComponents.js +53 -58
  159. package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
  160. package/build/esm/Paper/Paper.d.ts +4 -3
  161. package/build/esm/Paper/Paper.js +15 -13
  162. package/build/esm/Paper/Paper.js.map +1 -1
  163. package/build/esm/Paper/index.js +0 -0
  164. package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
  165. package/build/esm/ProgressSpinner/ProgressSpinner.js +16 -16
  166. package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
  167. package/build/esm/ProgressSpinner/index.js +0 -0
  168. package/build/esm/RadioButton/RadioButton.d.ts +1 -1
  169. package/build/esm/RadioButton/RadioButton.js +16 -19
  170. package/build/esm/RadioButton/RadioButton.js.map +1 -1
  171. package/build/esm/RadioButton/RadioButtonIcon.d.ts +1 -1
  172. package/build/esm/RadioButton/RadioButtonIcon.js +5 -6
  173. package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
  174. package/build/esm/RadioButton/RadioGroup.d.ts +3 -3
  175. package/build/esm/RadioButton/RadioGroup.js +5 -4
  176. package/build/esm/RadioButton/RadioGroup.js.map +1 -1
  177. package/build/esm/RadioButton/index.js +0 -0
  178. package/build/esm/Ripple/Ripple.d.ts +1 -1
  179. package/build/esm/Ripple/Ripple.js +21 -20
  180. package/build/esm/Ripple/Ripple.js.map +1 -1
  181. package/build/esm/Ripple/RippleBox.d.ts +4 -4
  182. package/build/esm/Ripple/RippleBox.js +22 -15
  183. package/build/esm/Ripple/RippleBox.js.map +1 -1
  184. package/build/esm/Ripple/constants.js +7 -7
  185. package/build/esm/Ripple/constants.js.map +1 -1
  186. package/build/esm/Ripple/index.js +0 -0
  187. package/build/esm/Ripple/keyframes.d.ts +1 -1
  188. package/build/esm/Ripple/keyframes.js +3 -3
  189. package/build/esm/Ripple/keyframes.js.map +1 -1
  190. package/build/esm/Ripple/useRipple.js +55 -48
  191. package/build/esm/Ripple/useRipple.js.map +1 -1
  192. package/build/esm/Ripple/useRippleHandlers.d.ts +1 -1
  193. package/build/esm/Ripple/useRippleHandlers.js +13 -15
  194. package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
  195. package/build/esm/Ripple/useRippleSurface.d.ts +1 -1
  196. package/build/esm/Ripple/useRippleSurface.js +39 -38
  197. package/build/esm/Ripple/useRippleSurface.js.map +1 -1
  198. package/build/esm/Select/Select.d.ts +4 -4
  199. package/build/esm/Select/Select.js +69 -47
  200. package/build/esm/Select/Select.js.map +1 -1
  201. package/build/esm/Select/SelectIcon.d.ts +3 -3
  202. package/build/esm/Select/SelectIcon.js +6 -7
  203. package/build/esm/Select/SelectIcon.js.map +1 -1
  204. package/build/esm/Select/context.js +7 -6
  205. package/build/esm/Select/context.js.map +1 -1
  206. package/build/esm/Select/defaultRender.js +12 -10
  207. package/build/esm/Select/defaultRender.js.map +1 -1
  208. package/build/esm/Select/index.js +0 -0
  209. package/build/esm/Select/styledComponents.d.ts +2 -2
  210. package/build/esm/Select/styledComponents.js +16 -19
  211. package/build/esm/Select/styledComponents.js.map +1 -1
  212. package/build/esm/SelectItem/SelectItem.d.ts +2 -2
  213. package/build/esm/SelectItem/SelectItem.js +18 -19
  214. package/build/esm/SelectItem/SelectItem.js.map +1 -1
  215. package/build/esm/SelectItem/index.js +0 -0
  216. package/build/esm/SelectionControl/SelectionControlLabel.d.ts +3 -3
  217. package/build/esm/SelectionControl/SelectionControlLabel.js +7 -7
  218. package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
  219. package/build/esm/SelectionControl/SelectionControlText.d.ts +3 -3
  220. package/build/esm/SelectionControl/SelectionControlText.js +8 -8
  221. package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
  222. package/build/esm/SelectionControl/index.js +0 -0
  223. package/build/esm/Skeleton/DelayAppearance.d.ts +4 -4
  224. package/build/esm/Skeleton/DelayAppearance.js +9 -9
  225. package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
  226. package/build/esm/Skeleton/Skeleton.d.ts +3 -3
  227. package/build/esm/Skeleton/Skeleton.js +11 -10
  228. package/build/esm/Skeleton/Skeleton.js.map +1 -1
  229. package/build/esm/Skeleton/animation.d.ts +2 -2
  230. package/build/esm/Skeleton/animation.js +25 -22
  231. package/build/esm/Skeleton/animation.js.map +1 -1
  232. package/build/esm/Skeleton/index.js +0 -0
  233. package/build/esm/Snackbar/Snackbar.d.ts +3 -3
  234. package/build/esm/Snackbar/Snackbar.js +21 -21
  235. package/build/esm/Snackbar/Snackbar.js.map +1 -1
  236. package/build/esm/Snackbar/Stack.d.ts +2 -3
  237. package/build/esm/Snackbar/Stack.js +78 -65
  238. package/build/esm/Snackbar/Stack.js.map +1 -1
  239. package/build/esm/Snackbar/index.js +0 -0
  240. package/build/esm/Snackbar/useSnackbarAnimation.d.ts +1 -1
  241. package/build/esm/Snackbar/useSnackbarAnimation.js +113 -78
  242. package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
  243. package/build/esm/Switch/Switch.d.ts +3 -3
  244. package/build/esm/Switch/Switch.js +21 -22
  245. package/build/esm/Switch/Switch.js.map +1 -1
  246. package/build/esm/Switch/index.js +0 -0
  247. package/build/esm/Switch/styledComponents.js +23 -25
  248. package/build/esm/Switch/styledComponents.js.map +1 -1
  249. package/build/esm/Tab/Tab.d.ts +4 -4
  250. package/build/esm/Tab/Tab.js +17 -19
  251. package/build/esm/Tab/Tab.js.map +1 -1
  252. package/build/esm/Tab/TabList.d.ts +3 -3
  253. package/build/esm/Tab/TabList.js +18 -19
  254. package/build/esm/Tab/TabList.js.map +1 -1
  255. package/build/esm/Tab/TabPanel.d.ts +3 -3
  256. package/build/esm/Tab/TabPanel.js +8 -11
  257. package/build/esm/Tab/TabPanel.js.map +1 -1
  258. package/build/esm/Tab/TabPanels.js +0 -0
  259. package/build/esm/Tab/Tabs.js +0 -0
  260. package/build/esm/Tab/context.js +6 -5
  261. package/build/esm/Tab/context.js.map +1 -1
  262. package/build/esm/Tab/index.js +0 -0
  263. package/build/esm/TabIndicator/TabIndicator.d.ts +2 -2
  264. package/build/esm/TabIndicator/TabIndicator.js +22 -21
  265. package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
  266. package/build/esm/TabIndicator/context.js +6 -5
  267. package/build/esm/TabIndicator/context.js.map +1 -1
  268. package/build/esm/TabIndicator/index.js +0 -0
  269. package/build/esm/Table/Table.d.ts +2 -2
  270. package/build/esm/Table/Table.js +8 -8
  271. package/build/esm/Table/Table.js.map +1 -1
  272. package/build/esm/Table/TableBody.d.ts +2 -2
  273. package/build/esm/Table/TableBody.js +4 -6
  274. package/build/esm/Table/TableBody.js.map +1 -1
  275. package/build/esm/Table/TableCell.d.ts +2 -2
  276. package/build/esm/Table/TableCell.js +6 -8
  277. package/build/esm/Table/TableCell.js.map +1 -1
  278. package/build/esm/Table/TableHead.d.ts +2 -2
  279. package/build/esm/Table/TableHead.js +5 -7
  280. package/build/esm/Table/TableHead.js.map +1 -1
  281. package/build/esm/Table/TableRow.d.ts +2 -2
  282. package/build/esm/Table/TableRow.js +5 -7
  283. package/build/esm/Table/TableRow.js.map +1 -1
  284. package/build/esm/Table/context.js +6 -5
  285. package/build/esm/Table/context.js.map +1 -1
  286. package/build/esm/Table/index.js +0 -0
  287. package/build/esm/Text/LoremIpsum.d.ts +1 -1
  288. package/build/esm/Text/LoremIpsum.js +6 -6
  289. package/build/esm/Text/LoremIpsum.js.map +1 -1
  290. package/build/esm/Text/Text.d.ts +3 -3
  291. package/build/esm/Text/Text.js +9 -9
  292. package/build/esm/Text/Text.js.map +1 -1
  293. package/build/esm/Text/index.js +0 -0
  294. package/build/esm/TextField/FilledContainer.d.ts +3 -3
  295. package/build/esm/TextField/FilledContainer.js +56 -53
  296. package/build/esm/TextField/FilledContainer.js.map +1 -1
  297. package/build/esm/TextField/HelperText.d.ts +3 -3
  298. package/build/esm/TextField/HelperText.js +14 -13
  299. package/build/esm/TextField/HelperText.js.map +1 -1
  300. package/build/esm/TextField/IconContainer.d.ts +2 -2
  301. package/build/esm/TextField/IconContainer.js +15 -23
  302. package/build/esm/TextField/IconContainer.js.map +1 -1
  303. package/build/esm/TextField/Input.d.ts +3 -3
  304. package/build/esm/TextField/Input.js +13 -13
  305. package/build/esm/TextField/Input.js.map +1 -1
  306. package/build/esm/TextField/OutlinedContainer.d.ts +4 -4
  307. package/build/esm/TextField/OutlinedContainer.js +28 -22
  308. package/build/esm/TextField/OutlinedContainer.js.map +1 -1
  309. package/build/esm/TextField/TextField.d.ts +4 -4
  310. package/build/esm/TextField/TextField.js +59 -41
  311. package/build/esm/TextField/TextField.js.map +1 -1
  312. package/build/esm/TextField/consts.d.ts +0 -0
  313. package/build/esm/TextField/consts.js +5 -5
  314. package/build/esm/TextField/consts.js.map +1 -1
  315. package/build/esm/TextField/index.js +0 -0
  316. package/build/esm/ThemeExplorer/ColorPicker.d.ts +4 -4
  317. package/build/esm/ThemeExplorer/ColorPicker.js +14 -14
  318. package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
  319. package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +2 -2
  320. package/build/esm/ThemeExplorer/TextFieldColorPicker.js +44 -24
  321. package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
  322. package/build/esm/ThemeExplorer/ThemeColors.d.ts +1 -1
  323. package/build/esm/ThemeExplorer/ThemeColors.js +3 -3
  324. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
  325. package/build/esm/ThemeExplorer/components.d.ts +2 -1
  326. package/build/esm/ThemeExplorer/components.js +64 -56
  327. package/build/esm/ThemeExplorer/components.js.map +1 -1
  328. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +1 -1
  329. package/build/esm/ThemeExplorer/makeColorScheme.js +0 -0
  330. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
  331. package/build/esm/ThemeExplorer/useDeferredColor.d.ts +1 -1
  332. package/build/esm/ThemeExplorer/useDeferredColor.js +10 -3
  333. package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
  334. package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +0 -0
  335. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +9 -2
  336. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
  337. package/build/esm/Tooltip/Tooltip.d.ts +3 -3
  338. package/build/esm/Tooltip/Tooltip.js +7 -8
  339. package/build/esm/Tooltip/Tooltip.js.map +1 -1
  340. package/build/esm/Tooltip/index.js +0 -0
  341. package/build/esm/color.d.ts +3 -3
  342. package/build/esm/color.js +19 -13
  343. package/build/esm/color.js.map +1 -1
  344. package/build/esm/css.js +0 -0
  345. package/build/esm/hooks/useAnimation.d.ts +1 -1
  346. package/build/esm/hooks/useAnimation.js +54 -41
  347. package/build/esm/hooks/useAnimation.js.map +1 -1
  348. package/build/esm/index.js +0 -0
  349. package/build/esm/theme/index.js +0 -0
  350. package/build/esm/theme/theme.js +1 -1
  351. package/build/esm/theme/theme.js.map +1 -1
  352. package/build/esm/theme/typography-raleway.js +1 -1
  353. package/build/esm/theme/typography-raleway.js.map +1 -1
  354. package/build/esm/theme/typography-roboto.js +1 -1
  355. package/build/esm/theme/typography-roboto.js.map +1 -1
  356. package/build/esm/theme/useTheme.d.ts +2 -472
  357. package/build/esm/theme/useTheme.js +1 -1
  358. package/build/esm/theme/useTheme.js.map +1 -1
  359. package/build/tsconfig.tsbuildinfo +1 -1
  360. package/package.json +6 -5
  361. package/src/Alert/Alert.tsx +3 -1
  362. package/src/AppBar/AppBar.story.tsx +7 -6
  363. package/src/AppBar/AppBar.tsx +5 -3
  364. package/src/AppBar/AppBarButton.tsx +3 -1
  365. package/src/AppBar/context.ts +2 -1
  366. package/src/Badge/Badge.tsx +3 -1
  367. package/src/BaseLine/BaseLine.tsx +15 -11
  368. package/src/BottomSheet/BottomSheet.story.tsx +1 -0
  369. package/src/BottomSheet/BottomSheet.tsx +2 -1
  370. package/src/BottomSheet/BottomSheetSurface.tsx +7 -4
  371. package/src/Box/Box.tsx +21 -18
  372. package/src/Button/BaseButton.tsx +4 -2
  373. package/src/Button/Button.story.tsx +1 -0
  374. package/src/Button/Button.tsx +3 -2
  375. package/src/Button/ButtonGroup.tsx +4 -2
  376. package/src/Button/FilledButton.tsx +3 -2
  377. package/src/Button/FloatingActionButton.tsx +1 -1
  378. package/src/Button/IconButton.tsx +1 -1
  379. package/src/Button/OutlinedButton.tsx +3 -2
  380. package/src/Button/SpinnerButton.story.tsx +9 -10
  381. package/src/Button/TransparentButton.tsx +4 -4
  382. package/src/Button/context.tsx +1 -0
  383. package/src/CheckBox/CheckBox.story.tsx +3 -2
  384. package/src/CheckBox/CheckBox.tsx +9 -5
  385. package/src/CheckBox/CheckBoxIcon.tsx +4 -2
  386. package/src/Chip/ButtonChip.tsx +6 -4
  387. package/src/Chip/Chip.story.tsx +0 -1
  388. package/src/Chip/ChipBase.tsx +7 -5
  389. package/src/Chip/ChoiceChip.tsx +10 -7
  390. package/src/ColorMode/ColorModeProvider.tsx +4 -2
  391. package/src/Combobox/Combobox.story.tsx +2 -1
  392. package/src/Combobox/Combobox.tsx +29 -17
  393. package/src/Dialog/Dialog.story.tsx +3 -1
  394. package/src/Dialog/Dialog.tsx +9 -4
  395. package/src/Dialog/DialogBackdrop.tsx +6 -6
  396. package/src/Dialog/DialogContainer.tsx +3 -1
  397. package/src/Dialog/DialogSurface.tsx +8 -6
  398. package/src/Dialog/Scrim.tsx +3 -1
  399. package/src/Divider/Divider.tsx +4 -2
  400. package/src/FloatingLabel/FloatingLabel.story.tsx +1 -0
  401. package/src/FloatingLabel/FloatingLabel.tsx +3 -2
  402. package/src/LineRipple/LineRipple.story.tsx +1 -0
  403. package/src/LineRipple/LineRipple.tsx +6 -3
  404. package/src/Link/Link.tsx +4 -2
  405. package/src/List/List.tsx +5 -2
  406. package/src/ListItem/ListItem.story.tsx +1 -0
  407. package/src/ListItem/ListItem.tsx +5 -3
  408. package/src/ListItem/ListItemText.tsx +2 -1
  409. package/src/Menu/Menu.tsx +20 -12
  410. package/src/Menu/animation.ts +1 -1
  411. package/src/NotchedOutline/NotchedOutline.story.tsx +2 -1
  412. package/src/NotchedOutline/NotchedOutline.tsx +2 -1
  413. package/src/NotchedOutline/styledComponents.ts +3 -2
  414. package/src/Paper/Paper.story.tsx +2 -1
  415. package/src/Paper/Paper.tsx +22 -9
  416. package/src/ProgressSpinner/ProgressSpinner.story.tsx +1 -0
  417. package/src/ProgressSpinner/ProgressSpinner.tsx +5 -2
  418. package/src/RadioButton/RadioButton.story.tsx +2 -1
  419. package/src/RadioButton/RadioButton.tsx +9 -7
  420. package/src/RadioButton/RadioButtonIcon.tsx +2 -1
  421. package/src/RadioButton/RadioGroup.tsx +5 -5
  422. package/src/Ripple/Ripple.story.tsx +8 -2
  423. package/src/Ripple/Ripple.tsx +2 -1
  424. package/src/Ripple/RippleBox.tsx +8 -4
  425. package/src/Ripple/keyframes.ts +2 -1
  426. package/src/Ripple/useRipple.ts +1 -0
  427. package/src/Ripple/useRippleHandlers.ts +3 -1
  428. package/src/Ripple/useRippleSurface.ts +9 -7
  429. package/src/Select/PaymentMethodSelect.story.tsx +3 -1
  430. package/src/Select/Select.story.tsx +1 -0
  431. package/src/Select/Select.tsx +6 -4
  432. package/src/Select/SelectIcon.tsx +6 -3
  433. package/src/Select/defaultRender.ts +13 -13
  434. package/src/Select/styledComponents.tsx +5 -3
  435. package/src/SelectItem/SelectItem.tsx +4 -2
  436. package/src/SelectionControl/SelectionControlLabel.tsx +6 -3
  437. package/src/SelectionControl/SelectionControlText.tsx +4 -2
  438. package/src/Skeleton/DelayAppearance.tsx +5 -3
  439. package/src/Skeleton/Skeleton.tsx +4 -2
  440. package/src/Skeleton/animation.ts +3 -2
  441. package/src/Snackbar/Snackbar.story.tsx +1 -0
  442. package/src/Snackbar/Snackbar.tsx +5 -3
  443. package/src/Snackbar/Stack.tsx +3 -3
  444. package/src/Snackbar/useSnackbarAnimation.ts +3 -1
  445. package/src/Switch/Switch.tsx +9 -5
  446. package/src/Switch/styledComponents.tsx +14 -11
  447. package/src/Tab/Tab.tsx +8 -4
  448. package/src/Tab/TabList.tsx +5 -5
  449. package/src/Tab/TabPanel.tsx +5 -5
  450. package/src/TabIndicator/TabIndicator.tsx +6 -3
  451. package/src/Table/Table.tsx +4 -1
  452. package/src/Table/TableBody.tsx +3 -1
  453. package/src/Table/TableCell.tsx +3 -1
  454. package/src/Table/TableHead.tsx +4 -2
  455. package/src/Table/TableRow.tsx +4 -2
  456. package/src/Text/LoremIpsum.tsx +2 -1
  457. package/src/Text/Text.tsx +4 -2
  458. package/src/TextField/FilledContainer.tsx +5 -3
  459. package/src/TextField/HelperText.tsx +3 -2
  460. package/src/TextField/IconContainer.tsx +3 -2
  461. package/src/TextField/Input.tsx +5 -3
  462. package/src/TextField/OutlinedContainer.tsx +5 -3
  463. package/src/TextField/TextField.story.tsx +1 -0
  464. package/src/TextField/TextField.tsx +6 -3
  465. package/src/ThemeExplorer/ColorPicker.tsx +19 -16
  466. package/src/ThemeExplorer/TextFieldColorPicker.tsx +5 -2
  467. package/src/ThemeExplorer/ThemeBuilder.story.tsx +8 -12
  468. package/src/ThemeExplorer/ThemeColors.tsx +2 -1
  469. package/src/ThemeExplorer/ThemeExplorer.story.tsx +1 -0
  470. package/src/ThemeExplorer/components.tsx +5 -18
  471. package/src/ThemeExplorer/makeColorScheme.tsx +2 -1
  472. package/src/ThemeExplorer/useDeferredColor.tsx +2 -1
  473. package/src/Tooltip/Tooltip.story.tsx +1 -0
  474. package/src/Tooltip/Tooltip.tsx +8 -4
  475. package/src/color.ts +18 -16
  476. package/src/hooks/useAnimation.ts +2 -1
  477. package/src/theme/useTheme.ts +3 -1
@@ -1,13 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import { forwardRef } from 'react';
4
+ import * as React from 'react';
4
5
  import { Box } from '../Box';
5
6
  import { jsx as _jsx } from "react/jsx-runtime";
6
- export const RadioButtonIcon = /*#__PURE__*/forwardRef(function RadioButtonIcon(props, forwardedRef) {
7
- const {
8
- checked
9
- } = props,
10
- otherProps = _objectWithoutPropertiesLoose(props, ["checked"]);
7
+ export var RadioButtonIcon = /*#__PURE__*/forwardRef(function RadioButtonIcon(props, forwardedRef) {
8
+ var checked = props.checked,
9
+ otherProps = _objectWithoutProperties(props, ["checked"]);
11
10
 
12
11
  return /*#__PURE__*/_jsx(Box, _extends({
13
12
  ref: forwardedRef,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/RadioButton/RadioButtonIcon.tsx"],"names":["forwardRef","Box","RadioButtonIcon","props","forwardedRef","checked","otherProps","borderColor","borderStyle","borderRadius","borderWidth","width","height","p","backgroundColor","transition","transform"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAQA,OAAO,MAAMC,eAAe,gBAAGF,UAAU,CACvC,SAASE,eAAT,CAAyBC,KAAzB,EAAgCC,YAAhC,EAA8C;AAC5C,QAAM;AAAEC,IAAAA;AAAF,MAA6BF,KAAnC;AAAA,QAAoBG,UAApB,iCAAmCH,KAAnC;;AAEA,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,KAAK,EAAE;AACLG,MAAAA,WAAW,EAAE,cADR;AAELC,MAAAA,WAAW,EAAE,OAFR;AAGLC,MAAAA,YAAY,EAAE,MAHT;AAILC,MAAAA,WAAW,YAJN;AAKLC,MAAAA,KAAK,EAAE,MALF;AAMLC,MAAAA,MAAM,EAAE,MANH;AAOLC,MAAAA,CAAC;AAPI;AAFT,KAWMP,UAXN;AAAA,2BAaE,KAAC,GAAD;AACE,MAAA,KAAK,EAAE;AACLQ,QAAAA,eAAe,EAAE,cADZ;AAELL,QAAAA,YAAY,EAAE,MAFT;AAGLE,QAAAA,KAAK,EAAE,MAHF;AAILC,QAAAA,MAAM,EAAE,MAJH;AAKLG,QAAAA,UAAU,EACR,4FANG;AAOLC,QAAAA,SAAS,EAAEX,OAAO,GAAG,UAAH,GAAgB;AAP7B;AADT;AAbF,KADF;AA2BD,CA/BsC,CAAlC","sourcesContent":["import { forwardRef } from 'react';\nimport type * as React from 'react';\nimport { rem } from 'polished';\nimport { Box } from '../Box';\n\nexport interface RadioButtonIconProps\n extends React.HTMLAttributes<HTMLDivElement> {\n checked?: boolean;\n disabled?: boolean;\n}\n\nexport const RadioButtonIcon = forwardRef<HTMLDivElement, RadioButtonIconProps>(\n function RadioButtonIcon(props, forwardedRef) {\n const { checked, ...otherProps } = props;\n\n return (\n <Box\n ref={forwardedRef}\n __css={{\n borderColor: 'currentColor',\n borderStyle: 'solid',\n borderRadius: 'full',\n borderWidth: rem(2),\n width: '100%',\n height: '100%',\n p: rem(3),\n }}\n {...otherProps}\n >\n <Box\n __css={{\n backgroundColor: 'currentColor',\n borderRadius: 'full',\n width: '100%',\n height: '100%',\n transition:\n 'transform .12s cubic-bezier(0,0,.2,1) 0ms,background-color .12s cubic-bezier(0,0,.2,1) 0ms',\n transform: checked ? 'scale(1)' : 'scale(0)',\n }}\n />\n </Box>\n );\n }\n);\n"],"file":"RadioButtonIcon.js"}
1
+ {"version":3,"sources":["../../../src/RadioButton/RadioButtonIcon.tsx"],"names":["forwardRef","React","Box","RadioButtonIcon","props","forwardedRef","checked","otherProps","borderColor","borderStyle","borderRadius","borderWidth","width","height","p","backgroundColor","transition","transform"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAQA,OAAO,IAAMC,eAAe,gBAAGH,UAAU,CACvC,SAASG,eAAT,CAAyBC,KAAzB,EAAgCC,YAAhC,EAA8C;AAAA,MACpCC,OADoC,GACTF,KADS,CACpCE,OADoC;AAAA,MACxBC,UADwB,4BACTH,KADS;;AAG5C,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,KAAK,EAAE;AACLG,MAAAA,WAAW,EAAE,cADR;AAELC,MAAAA,WAAW,EAAE,OAFR;AAGLC,MAAAA,YAAY,EAAE,MAHT;AAILC,MAAAA,WAAW,YAJN;AAKLC,MAAAA,KAAK,EAAE,MALF;AAMLC,MAAAA,MAAM,EAAE,MANH;AAOLC,MAAAA,CAAC;AAPI;AAFT,KAWMP,UAXN;AAAA,2BAaE,KAAC,GAAD;AACE,MAAA,KAAK,EAAE;AACLQ,QAAAA,eAAe,EAAE,cADZ;AAELL,QAAAA,YAAY,EAAE,MAFT;AAGLE,QAAAA,KAAK,EAAE,MAHF;AAILC,QAAAA,MAAM,EAAE,MAJH;AAKLG,QAAAA,UAAU,EACR,4FANG;AAOLC,QAAAA,SAAS,EAAEX,OAAO,GAAG,UAAH,GAAgB;AAP7B;AADT;AAbF,KADF;AA2BD,CA/BsC,CAAlC","sourcesContent":["import { forwardRef } from 'react';\nimport * as React from 'react';\nimport { rem } from 'polished';\n\nimport { Box } from '../Box';\n\nexport interface RadioButtonIconProps\n extends React.HTMLAttributes<HTMLDivElement> {\n checked?: boolean;\n disabled?: boolean;\n}\n\nexport const RadioButtonIcon = forwardRef<HTMLDivElement, RadioButtonIconProps>(\n function RadioButtonIcon(props, forwardedRef) {\n const { checked, ...otherProps } = props;\n\n return (\n <Box\n ref={forwardedRef}\n __css={{\n borderColor: 'currentColor',\n borderStyle: 'solid',\n borderRadius: 'full',\n borderWidth: rem(2),\n width: '100%',\n height: '100%',\n p: rem(3),\n }}\n {...otherProps}\n >\n <Box\n __css={{\n backgroundColor: 'currentColor',\n borderRadius: 'full',\n width: '100%',\n height: '100%',\n transition:\n 'transform .12s cubic-bezier(0,0,.2,1) 0ms,background-color .12s cubic-bezier(0,0,.2,1) 0ms',\n transform: checked ? 'scale(1)' : 'scale(0)',\n }}\n />\n </Box>\n );\n }\n);\n"],"file":"RadioButtonIcon.js"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '../Box';
3
- import { RadioGroupProps as RadioGroupCoreProps } from '@basic-ui/core';
2
+ import type { RadioGroupProps as RadioGroupCoreProps } from '@basic-ui/core';
3
+ import type { BoxProps } from '../Box';
4
4
  export declare type RadioGroupProps = Omit<BoxProps, 'onChange' | 'value' | 'defaultValue'> & RadioGroupCoreProps;
5
- export declare const RadioGroup: import("react").ForwardRefExoticComponent<Pick<RadioGroupProps, "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxShadow" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "gridColumnGap" | "gridGap" | "gridRowGap" | "hidden" | "as" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "bg" | "borderX" | "borderY" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "innerAs" | "name" | "value"> & import("react").RefAttributes<HTMLDivElement>>;
5
+ export declare const RadioGroup: import("react").ForwardRefExoticComponent<Pick<RadioGroupProps, "children" | "p" | "slot" | "style" | "title" | "alignContent" | "alignItems" | "alignSelf" | "backgroundColor" | "backgroundImage" | "backgroundPosition" | "backgroundRepeat" | "backgroundSize" | "borderBottomColor" | "borderBottomLeftRadius" | "borderBottomRightRadius" | "borderBottomStyle" | "borderBottomWidth" | "borderLeftColor" | "borderLeftStyle" | "borderLeftWidth" | "borderRightColor" | "borderRightStyle" | "borderRightWidth" | "borderTopColor" | "borderTopLeftRadius" | "borderTopRightRadius" | "borderTopStyle" | "borderTopWidth" | "bottom" | "boxShadow" | "color" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBottom" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "opacity" | "order" | "overflowX" | "overflowY" | "paddingBottom" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "textAlign" | "textShadow" | "top" | "translate" | "verticalAlign" | "width" | "zIndex" | "background" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderStyle" | "borderTop" | "borderWidth" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "overflow" | "padding" | "gridColumnGap" | "gridGap" | "gridRowGap" | "value" | "hidden" | "as" | "sx" | "__css" | "variant" | "tx" | "theme" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "size" | "bg" | "borderX" | "borderY" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "innerAs" | "name"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,12 +1,13 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import { forwardRef } from 'react';
4
- import { Box } from '../Box';
5
4
  import { RadioGroup as RadioGroupCore } from '@basic-ui/core';
5
+ import { Box } from '../Box';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const RadioGroup = /*#__PURE__*/forwardRef(function RadioGroup(props, forwardedRef) {
7
+ export var RadioGroup = /*#__PURE__*/forwardRef(function RadioGroup(props, forwardedRef) {
8
8
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9
- const otherProps = _objectWithoutPropertiesLoose(props, ["as"]);
9
+ var as = props.as,
10
+ otherProps = _objectWithoutProperties(props, ["as"]);
10
11
 
11
12
  return /*#__PURE__*/_jsx(Box, _extends({
12
13
  as: RadioGroupCore,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/RadioButton/RadioGroup.tsx"],"names":["forwardRef","Box","RadioGroup","RadioGroupCore","props","forwardedRef","otherProps"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAA8B,QAA9B;AACA,SACEC,UAAU,IAAIC,cADhB,QAGO,gBAHP;;AAWA,OAAO,MAAMD,UAAU,gBAAGF,UAAU,CAClC,SAASE,UAAT,CAAoBE,KAApB,EAA2BC,YAA3B,EAAyC;AACvC;AACA,QAAeC,UAAf,iCAA8BF,KAA9B;;AAEA,sBACE,KAAC,GAAD;AACE,IAAA,EAAE,EAAED,cADN;AAEE,IAAA,GAAG,EAAEE;AAFP,KAGMC,UAHN,EADF;AAOD,CAZiC,CAA7B","sourcesContent":["import { forwardRef } from 'react';\nimport { Box, BoxProps } from '../Box';\nimport {\n RadioGroup as RadioGroupCore,\n RadioGroupProps as RadioGroupCoreProps,\n} from '@basic-ui/core';\n\nexport type RadioGroupProps = Omit<\n BoxProps,\n 'onChange' | 'value' | 'defaultValue'\n> &\n RadioGroupCoreProps;\n\nexport const RadioGroup = forwardRef<HTMLDivElement, RadioGroupProps>(\n function RadioGroup(props, forwardedRef) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { as, ...otherProps } = props;\n\n return (\n <Box<RadioGroupProps>\n as={RadioGroupCore}\n ref={forwardedRef}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"RadioGroup.js"}
1
+ {"version":3,"sources":["../../../src/RadioButton/RadioGroup.tsx"],"names":["forwardRef","RadioGroup","RadioGroupCore","Box","props","forwardedRef","as","otherProps"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAEA,SAASC,UAAU,IAAIC,cAAvB,QAA6C,gBAA7C;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAQA,OAAO,IAAMF,UAAU,gBAAGD,UAAU,CAClC,SAASC,UAAT,CAAoBG,KAApB,EAA2BC,YAA3B,EAAyC;AACvC;AADuC,MAE/BC,EAF+B,GAETF,KAFS,CAE/BE,EAF+B;AAAA,MAExBC,UAFwB,4BAETH,KAFS;;AAIvC,sBACE,KAAC,GAAD;AACE,IAAA,EAAE,EAAEF,cADN;AAEE,IAAA,GAAG,EAAEG;AAFP,KAGME,UAHN,EADF;AAOD,CAZiC,CAA7B","sourcesContent":["import { forwardRef } from 'react';\nimport type { RadioGroupProps as RadioGroupCoreProps } from '@basic-ui/core';\nimport { RadioGroup as RadioGroupCore } from '@basic-ui/core';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\n\nexport type RadioGroupProps = Omit<\n BoxProps,\n 'onChange' | 'value' | 'defaultValue'\n> &\n RadioGroupCoreProps;\n\nexport const RadioGroup = forwardRef<HTMLDivElement, RadioGroupProps>(\n function RadioGroup(props, forwardedRef) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const { as, ...otherProps } = props;\n\n return (\n <Box<RadioGroupProps>\n as={RadioGroupCore}\n ref={forwardedRef}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"RadioGroup.js"}
File without changes
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CSSObject } from '@emotion/react';
2
+ import type { CSSObject } from '@emotion/react';
3
3
  export declare const rippleStyle: ({ animation, }: {
4
4
  animation?: string | undefined;
5
5
  }) => CSSObject;
@@ -1,27 +1,28 @@
1
1
  import _styled from "@emotion/styled/base";
2
2
  import { RIPPLE_BACKGROUND_COLOR, RIPPLE_SIZE, RIPPLE_POSITION } from './constants';
3
- export const rippleStyle = ({
4
- animation
5
- }) => ({
6
- position: 'absolute',
7
- boxSizing: 'content-box',
8
- display: 'block',
9
- content: '""',
10
- width: "var(".concat(RIPPLE_SIZE, ")"),
11
- height: "var(".concat(RIPPLE_SIZE, ")"),
12
- top: "var(".concat(RIPPLE_POSITION, ")"),
13
- left: "var(".concat(RIPPLE_POSITION, ")"),
14
- backgroundColor: "var(".concat(RIPPLE_BACKGROUND_COLOR, ")"),
15
- transformOrigin: 'center center',
16
- opacity: 0,
17
- borderRadius: '999999px',
18
- animation,
19
- willChange: 'opacity,transform'
20
- });
21
- export const Ripple = _styled("div", process.env.NODE_ENV === "production" ? {
3
+ export var rippleStyle = function rippleStyle(_ref) {
4
+ var animation = _ref.animation;
5
+ return {
6
+ position: 'absolute',
7
+ boxSizing: 'content-box',
8
+ display: 'block',
9
+ content: '""',
10
+ width: "var(".concat(RIPPLE_SIZE, ")"),
11
+ height: "var(".concat(RIPPLE_SIZE, ")"),
12
+ top: "var(".concat(RIPPLE_POSITION, ")"),
13
+ left: "var(".concat(RIPPLE_POSITION, ")"),
14
+ backgroundColor: "var(".concat(RIPPLE_BACKGROUND_COLOR, ")"),
15
+ transformOrigin: 'center center',
16
+ opacity: 0,
17
+ borderRadius: '999999px',
18
+ animation: animation,
19
+ willChange: 'opacity,transform'
20
+ };
21
+ };
22
+ export var Ripple = _styled("div", process.env.NODE_ENV === "production" ? {
22
23
  target: "ebk8cct0"
23
24
  } : {
24
25
  target: "ebk8cct0",
25
26
  label: "Ripple"
26
- })(rippleStyle, "pointer-events:none;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9SaXBwbGUvUmlwcGxlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE2QnNCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9SaXBwbGUvUmlwcGxlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB7IENTU09iamVjdCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcbmltcG9ydCB7XG4gIFJJUFBMRV9CQUNLR1JPVU5EX0NPTE9SLFxuICBSSVBQTEVfU0laRSxcbiAgUklQUExFX1BPU0lUSU9OLFxufSBmcm9tICcuL2NvbnN0YW50cyc7XG5cbmV4cG9ydCBjb25zdCByaXBwbGVTdHlsZSA9ICh7XG4gIGFuaW1hdGlvbixcbn06IHtcbiAgYW5pbWF0aW9uPzogc3RyaW5nO1xufSk6IENTU09iamVjdCA9PiAoe1xuICBwb3NpdGlvbjogJ2Fic29sdXRlJyxcbiAgYm94U2l6aW5nOiAnY29udGVudC1ib3gnLFxuICBkaXNwbGF5OiAnYmxvY2snLFxuICBjb250ZW50OiAnXCJcIicsXG4gIHdpZHRoOiBgdmFyKCR7UklQUExFX1NJWkV9KWAsXG4gIGhlaWdodDogYHZhcigke1JJUFBMRV9TSVpFfSlgLFxuICB0b3A6IGB2YXIoJHtSSVBQTEVfUE9TSVRJT059KWAsXG4gIGxlZnQ6IGB2YXIoJHtSSVBQTEVfUE9TSVRJT059KWAsXG4gIGJhY2tncm91bmRDb2xvcjogYHZhcigke1JJUFBMRV9CQUNLR1JPVU5EX0NPTE9SfSlgLFxuICB0cmFuc2Zvcm1PcmlnaW46ICdjZW50ZXIgY2VudGVyJyxcbiAgb3BhY2l0eTogMCxcbiAgYm9yZGVyUmFkaXVzOiAnOTk5OTk5cHgnLFxuICBhbmltYXRpb24sXG4gIHdpbGxDaGFuZ2U6ICdvcGFjaXR5LHRyYW5zZm9ybScsXG59KTtcblxuZXhwb3J0IGNvbnN0IFJpcHBsZSA9IHN0eWxlZC5kaXY8eyBhbmltYXRpb24/OiBzdHJpbmcgfT4ocmlwcGxlU3R5bGUsIHtcbiAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxufSk7XG4iXX0= */"));
27
+ })(rippleStyle, "pointer-events:none;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9SaXBwbGUvUmlwcGxlLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUE4QnNCIiwiZmlsZSI6Ii4uLy4uLy4uL3NyYy9SaXBwbGUvUmlwcGxlLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcbmltcG9ydCB0eXBlIHsgQ1NTT2JqZWN0IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuXG5pbXBvcnQge1xuICBSSVBQTEVfQkFDS0dST1VORF9DT0xPUixcbiAgUklQUExFX1NJWkUsXG4gIFJJUFBMRV9QT1NJVElPTixcbn0gZnJvbSAnLi9jb25zdGFudHMnO1xuXG5leHBvcnQgY29uc3QgcmlwcGxlU3R5bGUgPSAoe1xuICBhbmltYXRpb24sXG59OiB7XG4gIGFuaW1hdGlvbj86IHN0cmluZztcbn0pOiBDU1NPYmplY3QgPT4gKHtcbiAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gIGJveFNpemluZzogJ2NvbnRlbnQtYm94JyxcbiAgZGlzcGxheTogJ2Jsb2NrJyxcbiAgY29udGVudDogJ1wiXCInLFxuICB3aWR0aDogYHZhcigke1JJUFBMRV9TSVpFfSlgLFxuICBoZWlnaHQ6IGB2YXIoJHtSSVBQTEVfU0laRX0pYCxcbiAgdG9wOiBgdmFyKCR7UklQUExFX1BPU0lUSU9OfSlgLFxuICBsZWZ0OiBgdmFyKCR7UklQUExFX1BPU0lUSU9OfSlgLFxuICBiYWNrZ3JvdW5kQ29sb3I6IGB2YXIoJHtSSVBQTEVfQkFDS0dST1VORF9DT0xPUn0pYCxcbiAgdHJhbnNmb3JtT3JpZ2luOiAnY2VudGVyIGNlbnRlcicsXG4gIG9wYWNpdHk6IDAsXG4gIGJvcmRlclJhZGl1czogJzk5OTk5OXB4JyxcbiAgYW5pbWF0aW9uLFxuICB3aWxsQ2hhbmdlOiAnb3BhY2l0eSx0cmFuc2Zvcm0nLFxufSk7XG5cbmV4cG9ydCBjb25zdCBSaXBwbGUgPSBzdHlsZWQuZGl2PHsgYW5pbWF0aW9uPzogc3RyaW5nIH0+KHJpcHBsZVN0eWxlLCB7XG4gIHBvaW50ZXJFdmVudHM6ICdub25lJyxcbn0pO1xuIl19 */"));
27
28
  //# sourceMappingURL=Ripple.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Ripple/Ripple.tsx"],"names":["RIPPLE_BACKGROUND_COLOR","RIPPLE_SIZE","RIPPLE_POSITION","rippleStyle","animation","position","boxSizing","display","content","width","height","top","left","backgroundColor","transformOrigin","opacity","borderRadius","willChange","Ripple"],"mappings":";AAEA,SACEA,uBADF,EAEEC,WAFF,EAGEC,eAHF,QAIO,aAJP;AAMA,OAAO,MAAMC,WAAW,GAAG,CAAC;AAC1BC,EAAAA;AAD0B,CAAD,MAIT;AAChBC,EAAAA,QAAQ,EAAE,UADM;AAEhBC,EAAAA,SAAS,EAAE,aAFK;AAGhBC,EAAAA,OAAO,EAAE,OAHO;AAIhBC,EAAAA,OAAO,EAAE,IAJO;AAKhBC,EAAAA,KAAK,gBAASR,WAAT,MALW;AAMhBS,EAAAA,MAAM,gBAAST,WAAT,MANU;AAOhBU,EAAAA,GAAG,gBAAST,eAAT,MAPa;AAQhBU,EAAAA,IAAI,gBAASV,eAAT,MARY;AAShBW,EAAAA,eAAe,gBAASb,uBAAT,MATC;AAUhBc,EAAAA,eAAe,EAAE,eAVD;AAWhBC,EAAAA,OAAO,EAAE,CAXO;AAYhBC,EAAAA,YAAY,EAAE,UAZE;AAahBZ,EAAAA,SAbgB;AAchBa,EAAAA,UAAU,EAAE;AAdI,CAJS,CAApB;AAqBP,OAAO,MAAMC,MAAM,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,GAAmCf,WAAnC,g5CAAf","sourcesContent":["import styled from '@emotion/styled';\nimport { CSSObject } from '@emotion/react';\nimport {\n RIPPLE_BACKGROUND_COLOR,\n RIPPLE_SIZE,\n RIPPLE_POSITION,\n} from './constants';\n\nexport const rippleStyle = ({\n animation,\n}: {\n animation?: string;\n}): CSSObject => ({\n position: 'absolute',\n boxSizing: 'content-box',\n display: 'block',\n content: '\"\"',\n width: `var(${RIPPLE_SIZE})`,\n height: `var(${RIPPLE_SIZE})`,\n top: `var(${RIPPLE_POSITION})`,\n left: `var(${RIPPLE_POSITION})`,\n backgroundColor: `var(${RIPPLE_BACKGROUND_COLOR})`,\n transformOrigin: 'center center',\n opacity: 0,\n borderRadius: '999999px',\n animation,\n willChange: 'opacity,transform',\n});\n\nexport const Ripple = styled.div<{ animation?: string }>(rippleStyle, {\n pointerEvents: 'none',\n});\n"],"file":"Ripple.js"}
1
+ {"version":3,"sources":["../../../src/Ripple/Ripple.tsx"],"names":["RIPPLE_BACKGROUND_COLOR","RIPPLE_SIZE","RIPPLE_POSITION","rippleStyle","animation","position","boxSizing","display","content","width","height","top","left","backgroundColor","transformOrigin","opacity","borderRadius","willChange","Ripple"],"mappings":";AAGA,SACEA,uBADF,EAEEC,WAFF,EAGEC,eAHF,QAIO,aAJP;AAMA,OAAO,IAAMC,WAAW,GAAG,SAAdA,WAAc;AAAA,MACzBC,SADyB,QACzBA,SADyB;AAAA,SAIT;AAChBC,IAAAA,QAAQ,EAAE,UADM;AAEhBC,IAAAA,SAAS,EAAE,aAFK;AAGhBC,IAAAA,OAAO,EAAE,OAHO;AAIhBC,IAAAA,OAAO,EAAE,IAJO;AAKhBC,IAAAA,KAAK,gBAASR,WAAT,MALW;AAMhBS,IAAAA,MAAM,gBAAST,WAAT,MANU;AAOhBU,IAAAA,GAAG,gBAAST,eAAT,MAPa;AAQhBU,IAAAA,IAAI,gBAASV,eAAT,MARY;AAShBW,IAAAA,eAAe,gBAASb,uBAAT,MATC;AAUhBc,IAAAA,eAAe,EAAE,eAVD;AAWhBC,IAAAA,OAAO,EAAE,CAXO;AAYhBC,IAAAA,YAAY,EAAE,UAZE;AAahBZ,IAAAA,SAAS,EAATA,SAbgB;AAchBa,IAAAA,UAAU,EAAE;AAdI,GAJS;AAAA,CAApB;AAqBP,OAAO,IAAMC,MAAM,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA,GAAmCf,WAAnC,w5CAAf","sourcesContent":["import styled from '@emotion/styled';\nimport type { CSSObject } from '@emotion/react';\n\nimport {\n RIPPLE_BACKGROUND_COLOR,\n RIPPLE_SIZE,\n RIPPLE_POSITION,\n} from './constants';\n\nexport const rippleStyle = ({\n animation,\n}: {\n animation?: string;\n}): CSSObject => ({\n position: 'absolute',\n boxSizing: 'content-box',\n display: 'block',\n content: '\"\"',\n width: `var(${RIPPLE_SIZE})`,\n height: `var(${RIPPLE_SIZE})`,\n top: `var(${RIPPLE_POSITION})`,\n left: `var(${RIPPLE_POSITION})`,\n backgroundColor: `var(${RIPPLE_BACKGROUND_COLOR})`,\n transformOrigin: 'center center',\n opacity: 0,\n borderRadius: '999999px',\n animation,\n willChange: 'opacity,transform',\n});\n\nexport const Ripple = styled.div<{ animation?: string }>(rippleStyle, {\n pointerEvents: 'none',\n});\n"],"file":"Ripple.js"}
@@ -1,6 +1,6 @@
1
- import { HTMLAttributes } from 'react';
2
- import type * as React from 'react';
3
- import { UseRippleSurfaceOptions } from './useRippleSurface';
4
- import { BoxProps } from '../Box';
1
+ import type { HTMLAttributes } from 'react';
2
+ import * as React from 'react';
3
+ import type { UseRippleSurfaceOptions } from './useRippleSurface';
4
+ import type { BoxProps } from '../Box';
5
5
  export declare type RippleBoxProps<H extends HTMLElement = HTMLDivElement, Attr = React.HTMLAttributes<H>> = BoxProps<H, Attr> & UseRippleSurfaceOptions<H>;
6
6
  export declare const RippleBox: <Props = RippleBoxProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>>(props: Props) => JSX.Element;
@@ -1,29 +1,36 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
3
  import { forwardRef } from 'react';
4
+ import * as React from 'react';
4
5
  import { useRippleSurface } from './useRippleSurface';
5
6
  import { Box } from '../Box';
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const RippleBox = /*#__PURE__*/forwardRef(function RippleBox(props, forwardedRef) {
8
- const {
9
- as = 'div',
10
- __css,
11
- // eslint-disable-line @typescript-eslint/no-unused-vars
12
- disabled
13
- } = props,
14
- otherProps = _objectWithoutPropertiesLoose(props, ["as", "__css", "onKeyDown", "onPointerDown", "baseOpacity", "hoverOpacity", "focusOpacity", "pressedOpacity", "rippleColor", "center", "disabled", "rippleEnabled", "style"]);
8
+ export var RippleBox = /*#__PURE__*/forwardRef(function RippleBox(props, forwardedRef) {
9
+ var _props$as = props.as,
10
+ as = _props$as === void 0 ? 'div' : _props$as,
11
+ __css = props.__css,
12
+ onKeyDown = props.onKeyDown,
13
+ onPointerDown = props.onPointerDown,
14
+ baseOpacity = props.baseOpacity,
15
+ hoverOpacity = props.hoverOpacity,
16
+ focusOpacity = props.focusOpacity,
17
+ pressedOpacity = props.pressedOpacity,
18
+ rippleColor = props.rippleColor,
19
+ center = props.center,
20
+ disabled = props.disabled,
21
+ rippleEnabled = props.rippleEnabled,
22
+ style = props.style,
23
+ otherProps = _objectWithoutProperties(props, ["as", "__css", "onKeyDown", "onPointerDown", "baseOpacity", "hoverOpacity", "focusOpacity", "pressedOpacity", "rippleColor", "center", "disabled", "rippleEnabled", "style"]);
15
24
 
16
- const _useRippleSurface = useRippleSurface(props),
17
- {
18
- __css: rippleCss
19
- } = _useRippleSurface,
20
- rippleProps = _objectWithoutPropertiesLoose(_useRippleSurface, ["__css"]);
25
+ var _useRippleSurface = useRippleSurface(props),
26
+ rippleCss = _useRippleSurface.__css,
27
+ rippleProps = _objectWithoutProperties(_useRippleSurface, ["__css"]);
21
28
 
22
29
  return /*#__PURE__*/_jsx(Box, _extends({
23
30
  as: as,
24
31
  ref: forwardedRef,
25
32
  __css: _extends({}, rippleCss, __css),
26
- disabled
33
+ disabled: disabled
27
34
  }, otherProps, rippleProps));
28
35
  });
29
36
  //# sourceMappingURL=RippleBox.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Ripple/RippleBox.tsx"],"names":["forwardRef","useRippleSurface","Box","RippleBox","props","forwardedRef","as","__css","disabled","otherProps","rippleCss","rippleProps"],"mappings":";;AAAA,SAASA,UAAT,QAA2C,OAA3C;AAEA,SAAkCC,gBAAlC,QAA0D,oBAA1D;AACA,SAASC,GAAT,QAA8B,QAA9B;;AAOA,OAAO,MAAMC,SAIG,gBAAGH,UAAU,CAC3B,SAASG,SAAT,CAAmBC,KAAnB,EAA0BC,YAA1B,EAAwC;AACtC,QAAM;AACJC,IAAAA,EAAE,GAAG,KADD;AAEJC,IAAAA,KAFI;AAYI;AACRC,IAAAA;AAbI,MAiBFJ,KAjBJ;AAAA,QAgBKK,UAhBL,iCAiBIL,KAjBJ;;AAmBA,4BAA6CH,gBAAgB,CAACG,KAAD,CAA7D;AAAA,QAAM;AAAEG,IAAAA,KAAK,EAAEG;AAAT,GAAN;AAAA,QAA6BC,WAA7B;;AAEA,sBACE,KAAC,GAAD;AACE,IAAA,EAAE,EAAEL,EADN;AAEE,IAAA,GAAG,EAAED,YAFP;AAGE,IAAA,KAAK,eAAOK,SAAP,EAAqBH,KAArB,CAHP;AAIQC,IAAAA;AAJR,KAKMC,UALN,EAMME,WANN,EADF;AAUD,CAjC0B,CAJtB","sourcesContent":["import { forwardRef, HTMLAttributes } from 'react';\nimport type * as React from 'react';\nimport { UseRippleSurfaceOptions, useRippleSurface } from './useRippleSurface';\nimport { Box, BoxProps } from '../Box';\n\nexport type RippleBoxProps<\n H extends HTMLElement = HTMLDivElement,\n Attr = React.HTMLAttributes<H>\n> = BoxProps<H, Attr> & UseRippleSurfaceOptions<H>;\n\nexport const RippleBox: <\n Props = RippleBoxProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>\n>(\n props: Props\n) => JSX.Element = forwardRef<HTMLDivElement, RippleBoxProps>(\n function RippleBox(props, forwardedRef) {\n const {\n as = 'div',\n __css,\n // Cherry picking the ripple props to prevent it from falling down to\n // the Box component\n onKeyDown, // eslint-disable-line @typescript-eslint/no-unused-vars\n onPointerDown, // eslint-disable-line @typescript-eslint/no-unused-vars\n baseOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n hoverOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n focusOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n pressedOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n rippleColor, // eslint-disable-line @typescript-eslint/no-unused-vars\n center, // eslint-disable-line @typescript-eslint/no-unused-vars\n disabled, // eslint-disable-line @typescript-eslint/no-unused-vars\n rippleEnabled, // eslint-disable-line @typescript-eslint/no-unused-vars\n style, // eslint-disable-line @typescript-eslint/no-unused-vars\n ...otherProps\n } = props;\n\n const { __css: rippleCss, ...rippleProps } = useRippleSurface(props);\n\n return (\n <Box\n as={as}\n ref={forwardedRef}\n __css={{ ...rippleCss, ...__css }}\n {...{ disabled }}\n {...otherProps}\n {...rippleProps}\n />\n );\n }\n) as any;\n"],"file":"RippleBox.js"}
1
+ {"version":3,"sources":["../../../src/Ripple/RippleBox.tsx"],"names":["forwardRef","React","useRippleSurface","Box","RippleBox","props","forwardedRef","as","__css","onKeyDown","onPointerDown","baseOpacity","hoverOpacity","focusOpacity","pressedOpacity","rippleColor","center","disabled","rippleEnabled","style","otherProps","rippleCss","rippleProps"],"mappings":";;AACA,SAASA,UAAT,QAA2B,OAA3B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AAGA,SAASC,gBAAT,QAAiC,oBAAjC;AAEA,SAASC,GAAT,QAAoB,QAApB;;AAOA,OAAO,IAAMC,SAIG,gBAAGJ,UAAU,CAC3B,SAASI,SAAT,CAAmBC,KAAnB,EAA0BC,YAA1B,EAAwC;AAAA,kBAkBlCD,KAlBkC,CAEpCE,EAFoC;AAAA,MAEpCA,EAFoC,0BAE/B,KAF+B;AAAA,MAGpCC,KAHoC,GAkBlCH,KAlBkC,CAGpCG,KAHoC;AAAA,MAMpCC,SANoC,GAkBlCJ,KAlBkC,CAMpCI,SANoC;AAAA,MAOpCC,aAPoC,GAkBlCL,KAlBkC,CAOpCK,aAPoC;AAAA,MAQpCC,WARoC,GAkBlCN,KAlBkC,CAQpCM,WARoC;AAAA,MASpCC,YAToC,GAkBlCP,KAlBkC,CASpCO,YAToC;AAAA,MAUpCC,YAVoC,GAkBlCR,KAlBkC,CAUpCQ,YAVoC;AAAA,MAWpCC,cAXoC,GAkBlCT,KAlBkC,CAWpCS,cAXoC;AAAA,MAYpCC,WAZoC,GAkBlCV,KAlBkC,CAYpCU,WAZoC;AAAA,MAapCC,MAboC,GAkBlCX,KAlBkC,CAapCW,MAboC;AAAA,MAcpCC,QAdoC,GAkBlCZ,KAlBkC,CAcpCY,QAdoC;AAAA,MAepCC,aAfoC,GAkBlCb,KAlBkC,CAepCa,aAfoC;AAAA,MAgBpCC,KAhBoC,GAkBlCd,KAlBkC,CAgBpCc,KAhBoC;AAAA,MAiBjCC,UAjBiC,4BAkBlCf,KAlBkC;;AAAA,0BAoBOH,gBAAgB,CAACG,KAAD,CApBvB;AAAA,MAoBvBgB,SApBuB,qBAoB9Bb,KApB8B;AAAA,MAoBTc,WApBS;;AAsBtC,sBACE,KAAC,GAAD;AACE,IAAA,EAAE,EAAEf,EADN;AAEE,IAAA,GAAG,EAAED,YAFP;AAGE,IAAA,KAAK,eAAOe,SAAP,EAAqBb,KAArB,CAHP;AAIQS,IAAAA,QAAQ,EAARA;AAJR,KAKMG,UALN,EAMME,WANN,EADF;AAUD,CAjC0B,CAJtB","sourcesContent":["import type { HTMLAttributes } from 'react';\nimport { forwardRef } from 'react';\nimport * as React from 'react';\n\nimport type { UseRippleSurfaceOptions } from './useRippleSurface';\nimport { useRippleSurface } from './useRippleSurface';\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\n\nexport type RippleBoxProps<\n H extends HTMLElement = HTMLDivElement,\n Attr = React.HTMLAttributes<H>\n> = BoxProps<H, Attr> & UseRippleSurfaceOptions<H>;\n\nexport const RippleBox: <\n Props = RippleBoxProps<HTMLDivElement, HTMLAttributes<HTMLDivElement>>\n>(\n props: Props\n) => JSX.Element = forwardRef<HTMLDivElement, RippleBoxProps>(\n function RippleBox(props, forwardedRef) {\n const {\n as = 'div',\n __css,\n // Cherry picking the ripple props to prevent it from falling down to\n // the Box component\n onKeyDown, // eslint-disable-line @typescript-eslint/no-unused-vars\n onPointerDown, // eslint-disable-line @typescript-eslint/no-unused-vars\n baseOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n hoverOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n focusOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n pressedOpacity, // eslint-disable-line @typescript-eslint/no-unused-vars\n rippleColor, // eslint-disable-line @typescript-eslint/no-unused-vars\n center, // eslint-disable-line @typescript-eslint/no-unused-vars\n disabled, // eslint-disable-line @typescript-eslint/no-unused-vars\n rippleEnabled, // eslint-disable-line @typescript-eslint/no-unused-vars\n style, // eslint-disable-line @typescript-eslint/no-unused-vars\n ...otherProps\n } = props;\n\n const { __css: rippleCss, ...rippleProps } = useRippleSurface(props);\n\n return (\n <Box\n as={as}\n ref={forwardedRef}\n __css={{ ...rippleCss, ...__css }}\n {...{ disabled }}\n {...otherProps}\n {...rippleProps}\n />\n );\n }\n) as any;\n"],"file":"RippleBox.js"}
@@ -1,9 +1,9 @@
1
1
  import hash from '@emotion/hash';
2
- export const RIPPLE_BACKGROUND_COLOR = "--css-".concat(hash('basic-ui-ripple-fg-bg-color'));
3
- export const RIPPLE_TRANSLATE_START = "--css-".concat(hash('basic-ui-ripple-fg-translate-start'));
4
- export const RIPPLE_TRANSLATE_END = "--css-".concat(hash('basic-ui-ripple-fg-translate-end'));
5
- export const RIPPLE_SCALE_END = "--css-".concat(hash('basic-ui-ripple-fg-scale'));
6
- export const RIPPLE_OPACITY_END = "--css-".concat(hash('basic-ui-ripple-fg-opacity'));
7
- export const RIPPLE_SIZE = "--css-".concat(hash('basic-ui-ripple-fg-size'));
8
- export const RIPPLE_POSITION = "--css-".concat(hash('basic-ui-ripple-fg-position'));
2
+ export var RIPPLE_BACKGROUND_COLOR = "--css-".concat(hash('basic-ui-ripple-fg-bg-color'));
3
+ export var RIPPLE_TRANSLATE_START = "--css-".concat(hash('basic-ui-ripple-fg-translate-start'));
4
+ export var RIPPLE_TRANSLATE_END = "--css-".concat(hash('basic-ui-ripple-fg-translate-end'));
5
+ export var RIPPLE_SCALE_END = "--css-".concat(hash('basic-ui-ripple-fg-scale'));
6
+ export var RIPPLE_OPACITY_END = "--css-".concat(hash('basic-ui-ripple-fg-opacity'));
7
+ export var RIPPLE_SIZE = "--css-".concat(hash('basic-ui-ripple-fg-size'));
8
+ export var RIPPLE_POSITION = "--css-".concat(hash('basic-ui-ripple-fg-position'));
9
9
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Ripple/constants.ts"],"names":["hash","RIPPLE_BACKGROUND_COLOR","RIPPLE_TRANSLATE_START","RIPPLE_TRANSLATE_END","RIPPLE_SCALE_END","RIPPLE_OPACITY_END","RIPPLE_SIZE","RIPPLE_POSITION"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,eAAjB;AAEA,OAAO,MAAMC,uBAAuB,mBAAYD,IAAI,CAClD,6BADkD,CAAhB,CAA7B;AAGP,OAAO,MAAME,sBAAsB,mBAAYF,IAAI,CACjD,oCADiD,CAAhB,CAA5B;AAGP,OAAO,MAAMG,oBAAoB,mBAAYH,IAAI,CAC/C,kCAD+C,CAAhB,CAA1B;AAGP,OAAO,MAAMI,gBAAgB,mBAAYJ,IAAI,CAAC,0BAAD,CAAhB,CAAtB;AACP,OAAO,MAAMK,kBAAkB,mBAAYL,IAAI,CAAC,4BAAD,CAAhB,CAAxB;AACP,OAAO,MAAMM,WAAW,mBAAYN,IAAI,CAAC,yBAAD,CAAhB,CAAjB;AACP,OAAO,MAAMO,eAAe,mBAAYP,IAAI,CAAC,6BAAD,CAAhB,CAArB","sourcesContent":["import hash from '@emotion/hash';\n\nexport const RIPPLE_BACKGROUND_COLOR = `--css-${hash(\n 'basic-ui-ripple-fg-bg-color'\n)}`;\nexport const RIPPLE_TRANSLATE_START = `--css-${hash(\n 'basic-ui-ripple-fg-translate-start'\n)}`;\nexport const RIPPLE_TRANSLATE_END = `--css-${hash(\n 'basic-ui-ripple-fg-translate-end'\n)}`;\nexport const RIPPLE_SCALE_END = `--css-${hash('basic-ui-ripple-fg-scale')}`;\nexport const RIPPLE_OPACITY_END = `--css-${hash('basic-ui-ripple-fg-opacity')}`;\nexport const RIPPLE_SIZE = `--css-${hash('basic-ui-ripple-fg-size')}`;\nexport const RIPPLE_POSITION = `--css-${hash('basic-ui-ripple-fg-position')}`;\n"],"file":"constants.js"}
1
+ {"version":3,"sources":["../../../src/Ripple/constants.ts"],"names":["hash","RIPPLE_BACKGROUND_COLOR","RIPPLE_TRANSLATE_START","RIPPLE_TRANSLATE_END","RIPPLE_SCALE_END","RIPPLE_OPACITY_END","RIPPLE_SIZE","RIPPLE_POSITION"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,eAAjB;AAEA,OAAO,IAAMC,uBAAuB,mBAAYD,IAAI,CAClD,6BADkD,CAAhB,CAA7B;AAGP,OAAO,IAAME,sBAAsB,mBAAYF,IAAI,CACjD,oCADiD,CAAhB,CAA5B;AAGP,OAAO,IAAMG,oBAAoB,mBAAYH,IAAI,CAC/C,kCAD+C,CAAhB,CAA1B;AAGP,OAAO,IAAMI,gBAAgB,mBAAYJ,IAAI,CAAC,0BAAD,CAAhB,CAAtB;AACP,OAAO,IAAMK,kBAAkB,mBAAYL,IAAI,CAAC,4BAAD,CAAhB,CAAxB;AACP,OAAO,IAAMM,WAAW,mBAAYN,IAAI,CAAC,yBAAD,CAAhB,CAAjB;AACP,OAAO,IAAMO,eAAe,mBAAYP,IAAI,CAAC,6BAAD,CAAhB,CAArB","sourcesContent":["import hash from '@emotion/hash';\n\nexport const RIPPLE_BACKGROUND_COLOR = `--css-${hash(\n 'basic-ui-ripple-fg-bg-color'\n)}`;\nexport const RIPPLE_TRANSLATE_START = `--css-${hash(\n 'basic-ui-ripple-fg-translate-start'\n)}`;\nexport const RIPPLE_TRANSLATE_END = `--css-${hash(\n 'basic-ui-ripple-fg-translate-end'\n)}`;\nexport const RIPPLE_SCALE_END = `--css-${hash('basic-ui-ripple-fg-scale')}`;\nexport const RIPPLE_OPACITY_END = `--css-${hash('basic-ui-ripple-fg-opacity')}`;\nexport const RIPPLE_SIZE = `--css-${hash('basic-ui-ripple-fg-size')}`;\nexport const RIPPLE_POSITION = `--css-${hash('basic-ui-ripple-fg-position')}`;\n"],"file":"constants.js"}
File without changes
@@ -1,4 +1,4 @@
1
- import { Keyframes } from '@emotion/serialize';
1
+ import type { Keyframes } from '@emotion/serialize';
2
2
  export declare const radiusIn: Keyframes;
3
3
  export declare const opacityIn: Keyframes;
4
4
  export declare const opacityOut: Keyframes;
@@ -1,6 +1,6 @@
1
1
  import { keyframes } from '@emotion/react';
2
2
  import { RIPPLE_TRANSLATE_START, RIPPLE_TRANSLATE_END, RIPPLE_OPACITY_END, RIPPLE_SCALE_END } from './constants';
3
- export const radiusIn = keyframes({
3
+ export var radiusIn = keyframes({
4
4
  from: {
5
5
  transform: "translate(var(".concat(RIPPLE_TRANSLATE_START, ", 0)) scale(1)")
6
6
  },
@@ -8,7 +8,7 @@ export const radiusIn = keyframes({
8
8
  transform: "translate(var(".concat(RIPPLE_TRANSLATE_END, ", 0)) scale(var(").concat(RIPPLE_SCALE_END, ", 1))")
9
9
  }
10
10
  });
11
- export const opacityIn = keyframes({
11
+ export var opacityIn = keyframes({
12
12
  from: {
13
13
  opacity: '0'
14
14
  },
@@ -16,7 +16,7 @@ export const opacityIn = keyframes({
16
16
  opacity: "var(".concat(RIPPLE_OPACITY_END, ")")
17
17
  }
18
18
  });
19
- export const opacityOut = keyframes({
19
+ export var opacityOut = keyframes({
20
20
  from: {
21
21
  opacity: "var(".concat(RIPPLE_OPACITY_END, ")")
22
22
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Ripple/keyframes.ts"],"names":["keyframes","RIPPLE_TRANSLATE_START","RIPPLE_TRANSLATE_END","RIPPLE_OPACITY_END","RIPPLE_SCALE_END","radiusIn","from","transform","to","opacityIn","opacity","opacityOut"],"mappings":"AAAA,SAASA,SAAT,QAA0B,gBAA1B;AAEA,SACEC,sBADF,EAEEC,oBAFF,EAGEC,kBAHF,EAIEC,gBAJF,QAKO,aALP;AAOA,OAAO,MAAMC,QAAmB,GAAGL,SAAS,CAAC;AAC3CM,EAAAA,IAAI,EAAE;AACJC,IAAAA,SAAS,0BAAmBN,sBAAnB;AADL,GADqC;AAI3CO,EAAAA,EAAE,EAAE;AACFD,IAAAA,SAAS,0BAAmBL,oBAAnB,6BAA0DE,gBAA1D;AADP;AAJuC,CAAD,CAArC;AASP,OAAO,MAAMK,SAAoB,GAAGT,SAAS,CAAC;AAC5CM,EAAAA,IAAI,EAAE;AACJI,IAAAA,OAAO,EAAE;AADL,GADsC;AAI5CF,EAAAA,EAAE,EAAE;AACFE,IAAAA,OAAO,gBAASP,kBAAT;AADL;AAJwC,CAAD,CAAtC;AASP,OAAO,MAAMQ,UAAqB,GAAGX,SAAS,CAAC;AAC7CM,EAAAA,IAAI,EAAE;AACJI,IAAAA,OAAO,gBAASP,kBAAT;AADH,GADuC;AAI7CK,EAAAA,EAAE,EAAE;AACFE,IAAAA,OAAO,EAAE;AADP;AAJyC,CAAD,CAAvC","sourcesContent":["import { keyframes } from '@emotion/react';\nimport { Keyframes } from '@emotion/serialize';\nimport {\n RIPPLE_TRANSLATE_START,\n RIPPLE_TRANSLATE_END,\n RIPPLE_OPACITY_END,\n RIPPLE_SCALE_END,\n} from './constants';\n\nexport const radiusIn: Keyframes = keyframes({\n from: {\n transform: `translate(var(${RIPPLE_TRANSLATE_START}, 0)) scale(1)`,\n },\n to: {\n transform: `translate(var(${RIPPLE_TRANSLATE_END}, 0)) scale(var(${RIPPLE_SCALE_END}, 1))`,\n },\n});\n\nexport const opacityIn: Keyframes = keyframes({\n from: {\n opacity: '0',\n },\n to: {\n opacity: `var(${RIPPLE_OPACITY_END})`,\n },\n});\n\nexport const opacityOut: Keyframes = keyframes({\n from: {\n opacity: `var(${RIPPLE_OPACITY_END})`,\n },\n to: {\n opacity: '0',\n },\n});\n"],"file":"keyframes.js"}
1
+ {"version":3,"sources":["../../../src/Ripple/keyframes.ts"],"names":["keyframes","RIPPLE_TRANSLATE_START","RIPPLE_TRANSLATE_END","RIPPLE_OPACITY_END","RIPPLE_SCALE_END","radiusIn","from","transform","to","opacityIn","opacity","opacityOut"],"mappings":"AAAA,SAASA,SAAT,QAA0B,gBAA1B;AAGA,SACEC,sBADF,EAEEC,oBAFF,EAGEC,kBAHF,EAIEC,gBAJF,QAKO,aALP;AAOA,OAAO,IAAMC,QAAmB,GAAGL,SAAS,CAAC;AAC3CM,EAAAA,IAAI,EAAE;AACJC,IAAAA,SAAS,0BAAmBN,sBAAnB;AADL,GADqC;AAI3CO,EAAAA,EAAE,EAAE;AACFD,IAAAA,SAAS,0BAAmBL,oBAAnB,6BAA0DE,gBAA1D;AADP;AAJuC,CAAD,CAArC;AASP,OAAO,IAAMK,SAAoB,GAAGT,SAAS,CAAC;AAC5CM,EAAAA,IAAI,EAAE;AACJI,IAAAA,OAAO,EAAE;AADL,GADsC;AAI5CF,EAAAA,EAAE,EAAE;AACFE,IAAAA,OAAO,gBAASP,kBAAT;AADL;AAJwC,CAAD,CAAtC;AASP,OAAO,IAAMQ,UAAqB,GAAGX,SAAS,CAAC;AAC7CM,EAAAA,IAAI,EAAE;AACJI,IAAAA,OAAO,gBAASP,kBAAT;AADH,GADuC;AAI7CK,EAAAA,EAAE,EAAE;AACFE,IAAAA,OAAO,EAAE;AADP;AAJyC,CAAD,CAAvC","sourcesContent":["import { keyframes } from '@emotion/react';\nimport type { Keyframes } from '@emotion/serialize';\n\nimport {\n RIPPLE_TRANSLATE_START,\n RIPPLE_TRANSLATE_END,\n RIPPLE_OPACITY_END,\n RIPPLE_SCALE_END,\n} from './constants';\n\nexport const radiusIn: Keyframes = keyframes({\n from: {\n transform: `translate(var(${RIPPLE_TRANSLATE_START}, 0)) scale(1)`,\n },\n to: {\n transform: `translate(var(${RIPPLE_TRANSLATE_END}, 0)) scale(var(${RIPPLE_SCALE_END}, 1))`,\n },\n});\n\nexport const opacityIn: Keyframes = keyframes({\n from: {\n opacity: '0',\n },\n to: {\n opacity: `var(${RIPPLE_OPACITY_END})`,\n },\n});\n\nexport const opacityOut: Keyframes = keyframes({\n from: {\n opacity: `var(${RIPPLE_OPACITY_END})`,\n },\n to: {\n opacity: '0',\n },\n});\n"],"file":"keyframes.js"}
@@ -1,8 +1,10 @@
1
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
1
3
  import _extends from "@babel/runtime/helpers/extends";
2
4
  import { useState, useRef, useEffect } from 'react';
3
5
  import { radiusIn, opacityIn, opacityOut } from './keyframes';
4
6
  import { RIPPLE_TRANSLATE_START, RIPPLE_TRANSLATE_END, RIPPLE_OPACITY_END, RIPPLE_SCALE_END, RIPPLE_SIZE, RIPPLE_BACKGROUND_COLOR, RIPPLE_POSITION } from './constants';
5
- const defaultRipple = {
7
+ var defaultRipple = {
6
8
  x: 0,
7
9
  y: 0,
8
10
  size: 0,
@@ -16,18 +18,18 @@ const defaultRipple = {
16
18
  // (calculated based on the diagonal plus a constant padding), and are clipped at the surface's border via
17
19
  // `overflow: hidden`.
18
20
 
19
- const getBoundedRadius = (rect, padding) => {
20
- const hypotenuse = Math.sqrt(Math.pow(rect.width, 2) + Math.pow(rect.height, 2));
21
+ var getBoundedRadius = function getBoundedRadius(rect, padding) {
22
+ var hypotenuse = Math.sqrt(Math.pow(rect.width, 2) + Math.pow(rect.height, 2));
21
23
  return hypotenuse + padding;
22
24
  };
23
25
 
24
26
  function getScale(rect) {
25
- const maxDim = Math.max(rect.height, rect.width);
26
- const padding = 10;
27
- const initialOriginScale = 0.6;
28
- const maxRadius = getBoundedRadius(rect, padding); // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform
27
+ var maxDim = Math.max(rect.height, rect.width);
28
+ var padding = 10;
29
+ var initialOriginScale = 0.6;
30
+ var maxRadius = getBoundedRadius(rect, padding); // Ripple is sized as a fraction of the largest dimension of the surface, then scales up using a CSS scale transform
29
31
 
30
- const initialSize = Math.floor(maxDim * initialOriginScale);
32
+ var initialSize = Math.floor(maxDim * initialOriginScale);
31
33
  return {
32
34
  size: initialSize,
33
35
  scale: maxRadius / initialSize,
@@ -36,8 +38,9 @@ function getScale(rect) {
36
38
  };
37
39
  }
38
40
 
39
- function calculateRipplePosition(rect, clientX, clientY, center = false) {
40
- const rippleStart = center ? {
41
+ function calculateRipplePosition(rect, clientX, clientY) {
42
+ var center = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
43
+ var rippleStart = center ? {
41
44
  x: rect.width / 2,
42
45
  y: rect.height / 2
43
46
  } : {
@@ -49,53 +52,64 @@ function calculateRipplePosition(rect, clientX, clientY, center = false) {
49
52
  }, rippleStart, getScale(rect));
50
53
  }
51
54
 
52
- export const useRipple = opts => {
53
- const {
54
- opacity,
55
- backgroundColor,
56
- enterDuration = 225,
57
- leaveDuration = 150
58
- } = opts; // rippleState must be a ref, because it accesses the current value
55
+ export var useRipple = function useRipple(opts) {
56
+ var _style;
57
+
58
+ var opacity = opts.opacity,
59
+ backgroundColor = opts.backgroundColor,
60
+ _opts$enterDuration = opts.enterDuration,
61
+ enterDuration = _opts$enterDuration === void 0 ? 225 : _opts$enterDuration,
62
+ _opts$leaveDuration = opts.leaveDuration,
63
+ leaveDuration = _opts$leaveDuration === void 0 ? 150 : _opts$leaveDuration; // rippleState must be a ref, because it accesses the current value
59
64
  // inside closures... if we use state, it's gonna recapture
60
65
  // the state variable and won't work correctly
61
66
 
62
- const rippleState = useRef('left');
63
- const [ripple, setRipple] = useState(defaultRipple);
64
- const leavingTimeout = useRef();
65
- const enteringTimeout = useRef();
66
- const restartTimeout = useRef();
67
- const shouldLeave = useRef(false); // clear timeouts to avoid setting state on unmounted component
67
+ var rippleState = useRef('left');
68
+
69
+ var _useState = useState(defaultRipple),
70
+ _useState2 = _slicedToArray(_useState, 2),
71
+ ripple = _useState2[0],
72
+ setRipple = _useState2[1];
73
+
74
+ var leavingTimeout = useRef();
75
+ var enteringTimeout = useRef();
76
+ var restartTimeout = useRef();
77
+ var shouldLeave = useRef(false); // clear timeouts to avoid setting state on unmounted component
68
78
 
69
- useEffect(() => {
70
- return () => {
79
+ useEffect(function () {
80
+ return function () {
71
81
  restartTimeout.current && cancelAnimationFrame(restartTimeout.current);
72
82
  clearTimeout(enteringTimeout.current);
73
83
  clearTimeout(leavingTimeout.current);
74
84
  };
75
85
  }, []); // State handling
76
86
 
77
- const setLeft = () => {
87
+ var setLeft = function setLeft() {
78
88
  rippleState.current = 'left';
79
89
  setRipple(_extends({}, defaultRipple));
80
90
  };
81
91
 
82
- const setLeaving = () => {
92
+ var setLeaving = function setLeaving() {
83
93
  clearTimeout(enteringTimeout.current);
84
94
  rippleState.current = 'leaving';
85
- setRipple(ripple => _extends({}, ripple));
95
+ setRipple(function (ripple) {
96
+ return _extends({}, ripple);
97
+ });
86
98
  leavingTimeout.current = window.setTimeout(setLeft, leaveDuration);
87
99
  };
88
100
 
89
- const setEntered = () => {
101
+ var setEntered = function setEntered() {
90
102
  rippleState.current = 'entered';
91
- setRipple(ripple => _extends({}, ripple));
103
+ setRipple(function (ripple) {
104
+ return _extends({}, ripple);
105
+ });
92
106
 
93
107
  if (shouldLeave.current) {
94
108
  setLeaving();
95
109
  }
96
110
  };
97
111
 
98
- const deactivate = () => {
112
+ var deactivate = function deactivate() {
99
113
  shouldLeave.current = true;
100
114
 
101
115
  if (rippleState.current === 'entered') {
@@ -103,13 +117,14 @@ export const useRipple = opts => {
103
117
  }
104
118
  };
105
119
 
106
- const activate = (rect, clientX, clientY, center = false) => {
120
+ var activate = function activate(rect, clientX, clientY) {
121
+ var center = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
107
122
  clearTimeout(leavingTimeout.current);
108
123
  clearTimeout(enteringTimeout.current);
109
124
  shouldLeave.current = false;
110
125
  rippleState.current = 'restart';
111
126
  setRipple(_extends({}, defaultRipple));
112
- restartTimeout.current = requestAnimationFrame(() => {
127
+ restartTimeout.current = requestAnimationFrame(function () {
113
128
  rippleState.current = 'entering';
114
129
  setRipple(calculateRipplePosition(rect, clientX, clientY, center));
115
130
  enteringTimeout.current = window.setTimeout(setEntered, enterDuration);
@@ -117,7 +132,7 @@ export const useRipple = opts => {
117
132
  }; // Styling
118
133
 
119
134
 
120
- let animation = undefined;
135
+ var animation = undefined;
121
136
 
122
137
  switch (rippleState.current) {
123
138
  case 'entering':
@@ -130,29 +145,21 @@ export const useRipple = opts => {
130
145
  break;
131
146
  }
132
147
 
133
- let style = {};
148
+ var style = {};
134
149
 
135
150
  switch (rippleState.current) {
136
151
  case 'entering':
137
152
  case 'entered':
138
153
  case 'leaving':
139
- style = {
140
- [RIPPLE_SIZE]: "".concat(ripple.size, "px"),
141
- [RIPPLE_POSITION]: "".concat(-ripple.size / 2, "px"),
142
- [RIPPLE_BACKGROUND_COLOR]: backgroundColor,
143
- [RIPPLE_TRANSLATE_START]: "".concat(ripple.x, "px, ").concat(ripple.y, "px"),
144
- [RIPPLE_TRANSLATE_END]: "".concat(ripple.centerX, "px, ").concat(ripple.centerY, "px"),
145
- [RIPPLE_OPACITY_END]: opacity,
146
- [RIPPLE_SCALE_END]: "".concat(ripple.scale)
147
- };
154
+ style = (_style = {}, _defineProperty(_style, RIPPLE_SIZE, "".concat(ripple.size, "px")), _defineProperty(_style, RIPPLE_POSITION, "".concat(-ripple.size / 2, "px")), _defineProperty(_style, RIPPLE_BACKGROUND_COLOR, backgroundColor), _defineProperty(_style, RIPPLE_TRANSLATE_START, "".concat(ripple.x, "px, ").concat(ripple.y, "px")), _defineProperty(_style, RIPPLE_TRANSLATE_END, "".concat(ripple.centerX, "px, ").concat(ripple.centerY, "px")), _defineProperty(_style, RIPPLE_OPACITY_END, opacity), _defineProperty(_style, RIPPLE_SCALE_END, "".concat(ripple.scale)), _style);
148
155
  break;
149
156
  }
150
157
 
151
158
  return {
152
- activate,
153
- deactivate,
154
- style,
155
- animation // key: counter,
159
+ activate: activate,
160
+ deactivate: deactivate,
161
+ style: style,
162
+ animation: animation // key: counter,
156
163
 
157
164
  };
158
165
  };