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

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 (534) hide show
  1. package/build/cjs/index.js +24 -18
  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.d.ts +0 -0
  7. package/build/esm/Alert/index.js.map +0 -0
  8. package/build/esm/AppBar/AppBar.d.ts +3 -3
  9. package/build/esm/AppBar/AppBar.js +24 -16
  10. package/build/esm/AppBar/AppBar.js.map +1 -1
  11. package/build/esm/AppBar/AppBarButton.d.ts +2 -2
  12. package/build/esm/AppBar/AppBarButton.js +8 -9
  13. package/build/esm/AppBar/AppBarButton.js.map +1 -1
  14. package/build/esm/AppBar/context.d.ts +1 -1
  15. package/build/esm/AppBar/context.js +6 -5
  16. package/build/esm/AppBar/context.js.map +1 -1
  17. package/build/esm/AppBar/index.d.ts +0 -0
  18. package/build/esm/AppBar/index.js.map +0 -0
  19. package/build/esm/Badge/Badge.d.ts +2 -2
  20. package/build/esm/Badge/Badge.js +2 -2
  21. package/build/esm/Badge/Badge.js.map +1 -1
  22. package/build/esm/Badge/index.d.ts +0 -0
  23. package/build/esm/Badge/index.js.map +0 -0
  24. package/build/esm/BaseLine/BaseLine.d.ts +0 -0
  25. package/build/esm/BaseLine/BaseLine.js +4 -4
  26. package/build/esm/BaseLine/BaseLine.js.map +1 -1
  27. package/build/esm/BaseLine/index.d.ts +0 -0
  28. package/build/esm/BaseLine/index.js.map +0 -0
  29. package/build/esm/BottomSheet/BottomSheet.d.ts +2 -2
  30. package/build/esm/BottomSheet/BottomSheet.js +11 -13
  31. package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
  32. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +4 -4
  33. package/build/esm/BottomSheet/BottomSheetSurface.js +9 -9
  34. package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
  35. package/build/esm/BottomSheet/index.d.ts +0 -0
  36. package/build/esm/BottomSheet/index.js.map +0 -0
  37. package/build/esm/Box/Box.d.ts +5 -5
  38. package/build/esm/Box/Box.js +27 -19
  39. package/build/esm/Box/Box.js.map +1 -1
  40. package/build/esm/Box/index.d.ts +0 -0
  41. package/build/esm/Box/index.js.map +0 -0
  42. package/build/esm/Button/BaseButton.d.ts +3 -3
  43. package/build/esm/Button/BaseButton.js +11 -12
  44. package/build/esm/Button/BaseButton.js.map +1 -1
  45. package/build/esm/Button/Button.d.ts +3 -3
  46. package/build/esm/Button/Button.js +27 -22
  47. package/build/esm/Button/Button.js.map +1 -1
  48. package/build/esm/Button/ButtonGroup.d.ts +3 -3
  49. package/build/esm/Button/ButtonGroup.js +15 -12
  50. package/build/esm/Button/ButtonGroup.js.map +1 -1
  51. package/build/esm/Button/FilledButton.d.ts +2 -2
  52. package/build/esm/Button/FilledButton.js +57 -49
  53. package/build/esm/Button/FilledButton.js.map +1 -1
  54. package/build/esm/Button/FloatingActionButton.d.ts +1 -1
  55. package/build/esm/Button/FloatingActionButton.js.map +1 -1
  56. package/build/esm/Button/IconButton.d.ts +1 -1
  57. package/build/esm/Button/IconButton.js.map +1 -1
  58. package/build/esm/Button/OutlinedButton.d.ts +1 -1
  59. package/build/esm/Button/OutlinedButton.js +27 -25
  60. package/build/esm/Button/OutlinedButton.js.map +1 -1
  61. package/build/esm/Button/TransparentButton.d.ts +2 -2
  62. package/build/esm/Button/TransparentButton.js +45 -41
  63. package/build/esm/Button/TransparentButton.js.map +1 -1
  64. package/build/esm/Button/context.js +4 -2
  65. package/build/esm/Button/context.js.map +1 -1
  66. package/build/esm/Button/index.d.ts +0 -0
  67. package/build/esm/Button/index.js.map +0 -0
  68. package/build/esm/CheckBox/CheckBox.d.ts +3 -3
  69. package/build/esm/CheckBox/CheckBox.js +42 -35
  70. package/build/esm/CheckBox/CheckBox.js.map +1 -1
  71. package/build/esm/CheckBox/CheckBoxIcon.d.ts +3 -3
  72. package/build/esm/CheckBox/CheckBoxIcon.js +15 -13
  73. package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
  74. package/build/esm/CheckBox/CheckPath.d.ts +0 -0
  75. package/build/esm/CheckBox/CheckPath.js +15 -14
  76. package/build/esm/CheckBox/CheckPath.js.map +1 -1
  77. package/build/esm/CheckBox/IndeterminatePath.d.ts +0 -0
  78. package/build/esm/CheckBox/IndeterminatePath.js +14 -13
  79. package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
  80. package/build/esm/CheckBox/index.d.ts +0 -0
  81. package/build/esm/CheckBox/index.js.map +0 -0
  82. package/build/esm/Chip/ButtonChip.d.ts +3 -3
  83. package/build/esm/Chip/ButtonChip.js +15 -15
  84. package/build/esm/Chip/ButtonChip.js.map +1 -1
  85. package/build/esm/Chip/Chip.d.ts +0 -0
  86. package/build/esm/Chip/Chip.js.map +0 -0
  87. package/build/esm/Chip/ChipBase.d.ts +3 -3
  88. package/build/esm/Chip/ChipBase.js +24 -19
  89. package/build/esm/Chip/ChipBase.js.map +1 -1
  90. package/build/esm/Chip/ChoiceChip.d.ts +3 -3
  91. package/build/esm/Chip/ChoiceChip.js +25 -26
  92. package/build/esm/Chip/ChoiceChip.js.map +1 -1
  93. package/build/esm/Chip/index.d.ts +0 -0
  94. package/build/esm/Chip/index.js.map +0 -0
  95. package/build/esm/ColorMode/ColorModeProvider.d.ts +1 -1
  96. package/build/esm/ColorMode/ColorModeProvider.js +32 -19
  97. package/build/esm/ColorMode/ColorModeProvider.js.map +1 -1
  98. package/build/esm/ColorMode/color-mode.d.ts +0 -0
  99. package/build/esm/ColorMode/color-mode.js +3 -3
  100. package/build/esm/ColorMode/color-mode.js.map +1 -1
  101. package/build/esm/ColorMode/color-vars.d.ts +0 -0
  102. package/build/esm/ColorMode/color-vars.js +20 -12
  103. package/build/esm/ColorMode/color-vars.js.map +1 -1
  104. package/build/esm/ColorMode/constants.d.ts +0 -0
  105. package/build/esm/ColorMode/constants.js +3 -3
  106. package/build/esm/ColorMode/constants.js.map +1 -1
  107. package/build/esm/ColorMode/index.d.ts +0 -0
  108. package/build/esm/ColorMode/index.js.map +0 -0
  109. package/build/esm/Combobox/Combobox.d.ts +15 -15
  110. package/build/esm/Combobox/Combobox.js +50 -56
  111. package/build/esm/Combobox/Combobox.js.map +1 -1
  112. package/build/esm/Combobox/index.d.ts +0 -0
  113. package/build/esm/Combobox/index.js.map +0 -0
  114. package/build/esm/Dialog/Dialog.d.ts +5 -5
  115. package/build/esm/Dialog/Dialog.js +22 -23
  116. package/build/esm/Dialog/Dialog.js.map +1 -1
  117. package/build/esm/Dialog/DialogBackdrop.d.ts +4 -4
  118. package/build/esm/Dialog/DialogBackdrop.js +10 -11
  119. package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
  120. package/build/esm/Dialog/DialogContainer.d.ts +2 -2
  121. package/build/esm/Dialog/DialogContainer.js +4 -6
  122. package/build/esm/Dialog/DialogContainer.js.map +1 -1
  123. package/build/esm/Dialog/DialogSurface.d.ts +4 -4
  124. package/build/esm/Dialog/DialogSurface.js +14 -14
  125. package/build/esm/Dialog/DialogSurface.js.map +1 -1
  126. package/build/esm/Dialog/Scrim.d.ts +2 -2
  127. package/build/esm/Dialog/Scrim.js +4 -6
  128. package/build/esm/Dialog/Scrim.js.map +1 -1
  129. package/build/esm/Dialog/index.d.ts +0 -0
  130. package/build/esm/Dialog/index.js.map +0 -0
  131. package/build/esm/Dialog/useDialogAnimation.d.ts +0 -0
  132. package/build/esm/Dialog/useDialogAnimation.js +19 -20
  133. package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
  134. package/build/esm/Divider/Divider.d.ts +3 -3
  135. package/build/esm/Divider/Divider.js +9 -8
  136. package/build/esm/Divider/Divider.js.map +1 -1
  137. package/build/esm/Divider/index.d.ts +0 -0
  138. package/build/esm/Divider/index.js.map +0 -0
  139. package/build/esm/FloatingLabel/FloatingLabel.d.ts +1 -1
  140. package/build/esm/FloatingLabel/FloatingLabel.js +26 -22
  141. package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
  142. package/build/esm/FloatingLabel/index.d.ts +0 -0
  143. package/build/esm/FloatingLabel/index.js.map +0 -0
  144. package/build/esm/LineRipple/LineRipple.d.ts +3 -3
  145. package/build/esm/LineRipple/LineRipple.js +27 -18
  146. package/build/esm/LineRipple/LineRipple.js.map +1 -1
  147. package/build/esm/LineRipple/index.d.ts +0 -0
  148. package/build/esm/LineRipple/index.js.map +0 -0
  149. package/build/esm/Link/Link.d.ts +3 -3
  150. package/build/esm/Link/Link.js +10 -9
  151. package/build/esm/Link/Link.js.map +1 -1
  152. package/build/esm/Link/index.d.ts +0 -0
  153. package/build/esm/Link/index.js.map +0 -0
  154. package/build/esm/List/List.d.ts +3 -3
  155. package/build/esm/List/List.js +20 -13
  156. package/build/esm/List/List.js.map +1 -1
  157. package/build/esm/List/index.d.ts +0 -0
  158. package/build/esm/List/index.js.map +0 -0
  159. package/build/esm/ListItem/ListItem.d.ts +3 -3
  160. package/build/esm/ListItem/ListItem.js +25 -21
  161. package/build/esm/ListItem/ListItem.js.map +1 -1
  162. package/build/esm/ListItem/ListItemText.d.ts +1 -1
  163. package/build/esm/ListItem/ListItemText.js +8 -8
  164. package/build/esm/ListItem/ListItemText.js.map +1 -1
  165. package/build/esm/ListItem/context.d.ts +0 -0
  166. package/build/esm/ListItem/context.js.map +0 -0
  167. package/build/esm/ListItem/index.d.ts +0 -0
  168. package/build/esm/ListItem/index.js.map +0 -0
  169. package/build/esm/Menu/Menu.d.ts +10 -10
  170. package/build/esm/Menu/Menu.js +22 -25
  171. package/build/esm/Menu/Menu.js.map +1 -1
  172. package/build/esm/Menu/animation.d.ts +1 -1
  173. package/build/esm/Menu/animation.js +1 -1
  174. package/build/esm/Menu/animation.js.map +1 -1
  175. package/build/esm/Menu/index.d.ts +0 -0
  176. package/build/esm/Menu/index.js.map +0 -0
  177. package/build/esm/NotchedOutline/NotchedOutline.d.ts +1 -1
  178. package/build/esm/NotchedOutline/NotchedOutline.js +25 -21
  179. package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
  180. package/build/esm/NotchedOutline/context.d.ts +0 -0
  181. package/build/esm/NotchedOutline/context.js +6 -5
  182. package/build/esm/NotchedOutline/context.js.map +1 -1
  183. package/build/esm/NotchedOutline/index.d.ts +0 -0
  184. package/build/esm/NotchedOutline/index.js.map +0 -0
  185. package/build/esm/NotchedOutline/styledComponents.d.ts +0 -0
  186. package/build/esm/NotchedOutline/styledComponents.js +53 -58
  187. package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
  188. package/build/esm/Paper/Paper.d.ts +4 -3
  189. package/build/esm/Paper/Paper.js +15 -13
  190. package/build/esm/Paper/Paper.js.map +1 -1
  191. package/build/esm/Paper/index.d.ts +0 -0
  192. package/build/esm/Paper/index.js.map +0 -0
  193. package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +2 -2
  194. package/build/esm/ProgressSpinner/ProgressSpinner.js +16 -16
  195. package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
  196. package/build/esm/ProgressSpinner/index.d.ts +0 -0
  197. package/build/esm/ProgressSpinner/index.js.map +0 -0
  198. package/build/esm/RadioButton/RadioButton.d.ts +1 -1
  199. package/build/esm/RadioButton/RadioButton.js +16 -19
  200. package/build/esm/RadioButton/RadioButton.js.map +1 -1
  201. package/build/esm/RadioButton/RadioButtonIcon.d.ts +1 -1
  202. package/build/esm/RadioButton/RadioButtonIcon.js +5 -6
  203. package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
  204. package/build/esm/RadioButton/RadioGroup.d.ts +3 -3
  205. package/build/esm/RadioButton/RadioGroup.js +5 -4
  206. package/build/esm/RadioButton/RadioGroup.js.map +1 -1
  207. package/build/esm/RadioButton/index.d.ts +0 -0
  208. package/build/esm/RadioButton/index.js.map +0 -0
  209. package/build/esm/Ripple/Ripple.d.ts +1 -1
  210. package/build/esm/Ripple/Ripple.js +21 -20
  211. package/build/esm/Ripple/Ripple.js.map +1 -1
  212. package/build/esm/Ripple/RippleBox.d.ts +4 -4
  213. package/build/esm/Ripple/RippleBox.js +22 -15
  214. package/build/esm/Ripple/RippleBox.js.map +1 -1
  215. package/build/esm/Ripple/constants.d.ts +0 -0
  216. package/build/esm/Ripple/constants.js +7 -7
  217. package/build/esm/Ripple/constants.js.map +1 -1
  218. package/build/esm/Ripple/index.d.ts +0 -0
  219. package/build/esm/Ripple/index.js.map +0 -0
  220. package/build/esm/Ripple/keyframes.d.ts +1 -1
  221. package/build/esm/Ripple/keyframes.js +3 -3
  222. package/build/esm/Ripple/keyframes.js.map +1 -1
  223. package/build/esm/Ripple/useRipple.d.ts +0 -0
  224. package/build/esm/Ripple/useRipple.js +55 -48
  225. package/build/esm/Ripple/useRipple.js.map +1 -1
  226. package/build/esm/Ripple/useRippleHandlers.d.ts +1 -1
  227. package/build/esm/Ripple/useRippleHandlers.js +13 -15
  228. package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
  229. package/build/esm/Ripple/useRippleSurface.d.ts +1 -1
  230. package/build/esm/Ripple/useRippleSurface.js +39 -38
  231. package/build/esm/Ripple/useRippleSurface.js.map +1 -1
  232. package/build/esm/Select/Select.d.ts +4 -4
  233. package/build/esm/Select/Select.js +69 -47
  234. package/build/esm/Select/Select.js.map +1 -1
  235. package/build/esm/Select/SelectIcon.d.ts +3 -3
  236. package/build/esm/Select/SelectIcon.js +6 -7
  237. package/build/esm/Select/SelectIcon.js.map +1 -1
  238. package/build/esm/Select/context.d.ts +0 -0
  239. package/build/esm/Select/context.js +7 -6
  240. package/build/esm/Select/context.js.map +1 -1
  241. package/build/esm/Select/defaultRender.d.ts +0 -0
  242. package/build/esm/Select/defaultRender.js +12 -10
  243. package/build/esm/Select/defaultRender.js.map +1 -1
  244. package/build/esm/Select/index.d.ts +0 -0
  245. package/build/esm/Select/index.js.map +0 -0
  246. package/build/esm/Select/styledComponents.d.ts +2 -2
  247. package/build/esm/Select/styledComponents.js +16 -19
  248. package/build/esm/Select/styledComponents.js.map +1 -1
  249. package/build/esm/SelectItem/SelectItem.d.ts +2 -2
  250. package/build/esm/SelectItem/SelectItem.js +18 -19
  251. package/build/esm/SelectItem/SelectItem.js.map +1 -1
  252. package/build/esm/SelectItem/index.d.ts +0 -0
  253. package/build/esm/SelectItem/index.js.map +0 -0
  254. package/build/esm/SelectionControl/SelectionControlLabel.d.ts +3 -3
  255. package/build/esm/SelectionControl/SelectionControlLabel.js +7 -7
  256. package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
  257. package/build/esm/SelectionControl/SelectionControlText.d.ts +3 -3
  258. package/build/esm/SelectionControl/SelectionControlText.js +8 -8
  259. package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
  260. package/build/esm/SelectionControl/index.d.ts +0 -0
  261. package/build/esm/SelectionControl/index.js.map +0 -0
  262. package/build/esm/Skeleton/DelayAppearance.d.ts +4 -4
  263. package/build/esm/Skeleton/DelayAppearance.js +9 -9
  264. package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
  265. package/build/esm/Skeleton/Skeleton.d.ts +3 -3
  266. package/build/esm/Skeleton/Skeleton.js +11 -10
  267. package/build/esm/Skeleton/Skeleton.js.map +1 -1
  268. package/build/esm/Skeleton/animation.d.ts +2 -2
  269. package/build/esm/Skeleton/animation.js +25 -22
  270. package/build/esm/Skeleton/animation.js.map +1 -1
  271. package/build/esm/Skeleton/index.d.ts +0 -0
  272. package/build/esm/Skeleton/index.js.map +0 -0
  273. package/build/esm/Snackbar/Snackbar.d.ts +3 -3
  274. package/build/esm/Snackbar/Snackbar.js +21 -21
  275. package/build/esm/Snackbar/Snackbar.js.map +1 -1
  276. package/build/esm/Snackbar/Stack.d.ts +2 -3
  277. package/build/esm/Snackbar/Stack.js +78 -65
  278. package/build/esm/Snackbar/Stack.js.map +1 -1
  279. package/build/esm/Snackbar/index.d.ts +0 -0
  280. package/build/esm/Snackbar/index.js.map +0 -0
  281. package/build/esm/Snackbar/useSnackbarAnimation.d.ts +1 -1
  282. package/build/esm/Snackbar/useSnackbarAnimation.js +113 -78
  283. package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
  284. package/build/esm/Switch/Switch.d.ts +3 -3
  285. package/build/esm/Switch/Switch.js +21 -22
  286. package/build/esm/Switch/Switch.js.map +1 -1
  287. package/build/esm/Switch/index.d.ts +0 -0
  288. package/build/esm/Switch/index.js.map +0 -0
  289. package/build/esm/Switch/styledComponents.d.ts +0 -0
  290. package/build/esm/Switch/styledComponents.js +23 -25
  291. package/build/esm/Switch/styledComponents.js.map +1 -1
  292. package/build/esm/Tab/Tab.d.ts +4 -4
  293. package/build/esm/Tab/Tab.js +17 -19
  294. package/build/esm/Tab/Tab.js.map +1 -1
  295. package/build/esm/Tab/TabList.d.ts +3 -3
  296. package/build/esm/Tab/TabList.js +18 -19
  297. package/build/esm/Tab/TabList.js.map +1 -1
  298. package/build/esm/Tab/TabPanel.d.ts +3 -3
  299. package/build/esm/Tab/TabPanel.js +8 -11
  300. package/build/esm/Tab/TabPanel.js.map +1 -1
  301. package/build/esm/Tab/TabPanels.d.ts +0 -0
  302. package/build/esm/Tab/TabPanels.js.map +0 -0
  303. package/build/esm/Tab/Tabs.d.ts +0 -0
  304. package/build/esm/Tab/Tabs.js.map +0 -0
  305. package/build/esm/Tab/context.d.ts +0 -0
  306. package/build/esm/Tab/context.js +6 -5
  307. package/build/esm/Tab/context.js.map +1 -1
  308. package/build/esm/Tab/index.d.ts +0 -0
  309. package/build/esm/Tab/index.js.map +0 -0
  310. package/build/esm/TabIndicator/TabIndicator.d.ts +2 -2
  311. package/build/esm/TabIndicator/TabIndicator.js +22 -21
  312. package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
  313. package/build/esm/TabIndicator/context.d.ts +0 -0
  314. package/build/esm/TabIndicator/context.js +6 -5
  315. package/build/esm/TabIndicator/context.js.map +1 -1
  316. package/build/esm/TabIndicator/index.d.ts +0 -0
  317. package/build/esm/TabIndicator/index.js.map +0 -0
  318. package/build/esm/Table/Table.d.ts +2 -2
  319. package/build/esm/Table/Table.js +8 -8
  320. package/build/esm/Table/Table.js.map +1 -1
  321. package/build/esm/Table/TableBody.d.ts +2 -2
  322. package/build/esm/Table/TableBody.js +4 -6
  323. package/build/esm/Table/TableBody.js.map +1 -1
  324. package/build/esm/Table/TableCell.d.ts +2 -2
  325. package/build/esm/Table/TableCell.js +6 -8
  326. package/build/esm/Table/TableCell.js.map +1 -1
  327. package/build/esm/Table/TableHead.d.ts +2 -2
  328. package/build/esm/Table/TableHead.js +5 -7
  329. package/build/esm/Table/TableHead.js.map +1 -1
  330. package/build/esm/Table/TableRow.d.ts +2 -2
  331. package/build/esm/Table/TableRow.js +5 -7
  332. package/build/esm/Table/TableRow.js.map +1 -1
  333. package/build/esm/Table/context.d.ts +0 -0
  334. package/build/esm/Table/context.js +6 -5
  335. package/build/esm/Table/context.js.map +1 -1
  336. package/build/esm/Table/index.d.ts +0 -0
  337. package/build/esm/Table/index.js.map +0 -0
  338. package/build/esm/Text/LoremIpsum.d.ts +1 -1
  339. package/build/esm/Text/LoremIpsum.js +6 -6
  340. package/build/esm/Text/LoremIpsum.js.map +1 -1
  341. package/build/esm/Text/Text.d.ts +3 -3
  342. package/build/esm/Text/Text.js +9 -9
  343. package/build/esm/Text/Text.js.map +1 -1
  344. package/build/esm/Text/index.d.ts +0 -0
  345. package/build/esm/Text/index.js.map +0 -0
  346. package/build/esm/TextField/FilledContainer.d.ts +3 -3
  347. package/build/esm/TextField/FilledContainer.js +56 -53
  348. package/build/esm/TextField/FilledContainer.js.map +1 -1
  349. package/build/esm/TextField/HelperText.d.ts +3 -3
  350. package/build/esm/TextField/HelperText.js +14 -13
  351. package/build/esm/TextField/HelperText.js.map +1 -1
  352. package/build/esm/TextField/IconContainer.d.ts +2 -2
  353. package/build/esm/TextField/IconContainer.js +15 -23
  354. package/build/esm/TextField/IconContainer.js.map +1 -1
  355. package/build/esm/TextField/Input.d.ts +3 -3
  356. package/build/esm/TextField/Input.js +13 -13
  357. package/build/esm/TextField/Input.js.map +1 -1
  358. package/build/esm/TextField/OutlinedContainer.d.ts +4 -4
  359. package/build/esm/TextField/OutlinedContainer.js +28 -22
  360. package/build/esm/TextField/OutlinedContainer.js.map +1 -1
  361. package/build/esm/TextField/TextField.d.ts +4 -4
  362. package/build/esm/TextField/TextField.js +59 -41
  363. package/build/esm/TextField/TextField.js.map +1 -1
  364. package/build/esm/TextField/consts.js +5 -5
  365. package/build/esm/TextField/consts.js.map +1 -1
  366. package/build/esm/TextField/index.d.ts +0 -0
  367. package/build/esm/TextField/index.js.map +0 -0
  368. package/build/esm/ThemeExplorer/ColorPicker.d.ts +4 -4
  369. package/build/esm/ThemeExplorer/ColorPicker.js +14 -14
  370. package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
  371. package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +2 -2
  372. package/build/esm/ThemeExplorer/TextFieldColorPicker.js +44 -24
  373. package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
  374. package/build/esm/ThemeExplorer/ThemeColors.d.ts +1 -1
  375. package/build/esm/ThemeExplorer/ThemeColors.js +3 -3
  376. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
  377. package/build/esm/ThemeExplorer/components.d.ts +2 -1
  378. package/build/esm/ThemeExplorer/components.js +64 -56
  379. package/build/esm/ThemeExplorer/components.js.map +1 -1
  380. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +1 -1
  381. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
  382. package/build/esm/ThemeExplorer/useDeferredColor.d.ts +1 -1
  383. package/build/esm/ThemeExplorer/useDeferredColor.js +10 -3
  384. package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
  385. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +9 -2
  386. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
  387. package/build/esm/Tooltip/Tooltip.d.ts +3 -3
  388. package/build/esm/Tooltip/Tooltip.js +7 -8
  389. package/build/esm/Tooltip/Tooltip.js.map +1 -1
  390. package/build/esm/Tooltip/index.d.ts +0 -0
  391. package/build/esm/Tooltip/index.js.map +0 -0
  392. package/build/esm/color.d.ts +3 -3
  393. package/build/esm/color.js +19 -13
  394. package/build/esm/color.js.map +1 -1
  395. package/build/esm/css.d.ts +0 -0
  396. package/build/esm/css.js.map +0 -0
  397. package/build/esm/hooks/useAnimation.d.ts +1 -1
  398. package/build/esm/hooks/useAnimation.js +54 -41
  399. package/build/esm/hooks/useAnimation.js.map +1 -1
  400. package/build/esm/index.d.ts +0 -0
  401. package/build/esm/index.js.map +0 -0
  402. package/build/esm/theme/index.d.ts +0 -0
  403. package/build/esm/theme/index.js.map +0 -0
  404. package/build/esm/theme/theme.d.ts +0 -0
  405. package/build/esm/theme/theme.js +1 -1
  406. package/build/esm/theme/theme.js.map +1 -1
  407. package/build/esm/theme/typography-raleway.d.ts +0 -0
  408. package/build/esm/theme/typography-raleway.js +1 -1
  409. package/build/esm/theme/typography-raleway.js.map +1 -1
  410. package/build/esm/theme/typography-roboto.d.ts +0 -0
  411. package/build/esm/theme/typography-roboto.js +1 -1
  412. package/build/esm/theme/typography-roboto.js.map +1 -1
  413. package/build/esm/theme/useTheme.d.ts +2 -472
  414. package/build/esm/theme/useTheme.js +1 -1
  415. package/build/esm/theme/useTheme.js.map +1 -1
  416. package/build/tsconfig.tsbuildinfo +1 -1
  417. package/package.json +6 -5
  418. package/src/Alert/Alert.tsx +3 -1
  419. package/src/AppBar/AppBar.story.tsx +7 -6
  420. package/src/AppBar/AppBar.tsx +5 -3
  421. package/src/AppBar/AppBarButton.tsx +3 -1
  422. package/src/AppBar/context.ts +2 -1
  423. package/src/Badge/Badge.tsx +3 -1
  424. package/src/BaseLine/BaseLine.tsx +15 -11
  425. package/src/BottomSheet/BottomSheet.story.tsx +1 -0
  426. package/src/BottomSheet/BottomSheet.tsx +2 -1
  427. package/src/BottomSheet/BottomSheetSurface.tsx +9 -5
  428. package/src/Box/Box.tsx +21 -18
  429. package/src/Button/BaseButton.tsx +4 -2
  430. package/src/Button/Button.story.tsx +16 -3
  431. package/src/Button/Button.tsx +3 -2
  432. package/src/Button/ButtonGroup.tsx +4 -2
  433. package/src/Button/FilledButton.tsx +3 -2
  434. package/src/Button/FloatingActionButton.tsx +1 -1
  435. package/src/Button/IconButton.tsx +1 -1
  436. package/src/Button/OutlinedButton.tsx +3 -2
  437. package/src/Button/SpinnerButton.story.tsx +9 -10
  438. package/src/Button/TransparentButton.tsx +4 -4
  439. package/src/Button/context.tsx +1 -0
  440. package/src/CheckBox/CheckBox.story.tsx +3 -2
  441. package/src/CheckBox/CheckBox.tsx +9 -5
  442. package/src/CheckBox/CheckBoxIcon.tsx +4 -2
  443. package/src/Chip/ButtonChip.tsx +6 -4
  444. package/src/Chip/Chip.story.tsx +0 -1
  445. package/src/Chip/ChipBase.tsx +7 -5
  446. package/src/Chip/ChoiceChip.tsx +10 -7
  447. package/src/ColorMode/ColorModeProvider.tsx +4 -2
  448. package/src/Combobox/Combobox.story.tsx +2 -1
  449. package/src/Combobox/Combobox.tsx +29 -17
  450. package/src/Dialog/Dialog.story.tsx +3 -1
  451. package/src/Dialog/Dialog.tsx +9 -4
  452. package/src/Dialog/DialogBackdrop.tsx +6 -6
  453. package/src/Dialog/DialogContainer.tsx +3 -1
  454. package/src/Dialog/DialogSurface.tsx +8 -6
  455. package/src/Dialog/Scrim.tsx +3 -1
  456. package/src/Divider/Divider.tsx +4 -2
  457. package/src/FloatingLabel/FloatingLabel.story.tsx +1 -0
  458. package/src/FloatingLabel/FloatingLabel.tsx +3 -2
  459. package/src/LineRipple/LineRipple.story.tsx +1 -0
  460. package/src/LineRipple/LineRipple.tsx +6 -3
  461. package/src/Link/Link.tsx +4 -2
  462. package/src/List/List.tsx +5 -2
  463. package/src/ListItem/ListItem.story.tsx +1 -0
  464. package/src/ListItem/ListItem.tsx +6 -3
  465. package/src/ListItem/ListItemText.tsx +2 -1
  466. package/src/Menu/Menu.tsx +20 -12
  467. package/src/Menu/animation.ts +1 -1
  468. package/src/NotchedOutline/NotchedOutline.story.tsx +2 -1
  469. package/src/NotchedOutline/NotchedOutline.tsx +2 -1
  470. package/src/NotchedOutline/styledComponents.ts +3 -2
  471. package/src/Paper/Paper.story.tsx +2 -1
  472. package/src/Paper/Paper.tsx +22 -9
  473. package/src/ProgressSpinner/ProgressSpinner.story.tsx +1 -0
  474. package/src/ProgressSpinner/ProgressSpinner.tsx +5 -2
  475. package/src/RadioButton/RadioButton.story.tsx +2 -1
  476. package/src/RadioButton/RadioButton.tsx +9 -7
  477. package/src/RadioButton/RadioButtonIcon.tsx +2 -1
  478. package/src/RadioButton/RadioGroup.tsx +5 -5
  479. package/src/Ripple/Ripple.story.tsx +8 -2
  480. package/src/Ripple/Ripple.tsx +2 -1
  481. package/src/Ripple/RippleBox.tsx +8 -4
  482. package/src/Ripple/keyframes.ts +2 -1
  483. package/src/Ripple/useRipple.ts +1 -0
  484. package/src/Ripple/useRippleHandlers.ts +3 -1
  485. package/src/Ripple/useRippleSurface.ts +9 -7
  486. package/src/Select/PaymentMethodSelect.story.tsx +3 -1
  487. package/src/Select/Select.story.tsx +1 -0
  488. package/src/Select/Select.tsx +6 -4
  489. package/src/Select/SelectIcon.tsx +6 -3
  490. package/src/Select/defaultRender.ts +13 -13
  491. package/src/Select/styledComponents.tsx +5 -3
  492. package/src/SelectItem/SelectItem.tsx +4 -2
  493. package/src/SelectionControl/SelectionControlLabel.tsx +6 -3
  494. package/src/SelectionControl/SelectionControlText.tsx +4 -2
  495. package/src/Skeleton/DelayAppearance.tsx +5 -3
  496. package/src/Skeleton/Skeleton.tsx +4 -2
  497. package/src/Skeleton/animation.ts +3 -2
  498. package/src/Snackbar/Snackbar.story.tsx +1 -0
  499. package/src/Snackbar/Snackbar.tsx +5 -3
  500. package/src/Snackbar/Stack.tsx +3 -3
  501. package/src/Snackbar/useSnackbarAnimation.ts +3 -1
  502. package/src/Switch/Switch.tsx +9 -5
  503. package/src/Switch/styledComponents.tsx +14 -11
  504. package/src/Tab/Tab.tsx +8 -4
  505. package/src/Tab/TabList.tsx +5 -5
  506. package/src/Tab/TabPanel.tsx +5 -5
  507. package/src/TabIndicator/TabIndicator.tsx +6 -3
  508. package/src/Table/Table.tsx +4 -1
  509. package/src/Table/TableBody.tsx +3 -1
  510. package/src/Table/TableCell.tsx +3 -1
  511. package/src/Table/TableHead.tsx +4 -2
  512. package/src/Table/TableRow.tsx +4 -2
  513. package/src/Text/LoremIpsum.tsx +2 -1
  514. package/src/Text/Text.tsx +4 -2
  515. package/src/TextField/FilledContainer.tsx +5 -3
  516. package/src/TextField/HelperText.tsx +3 -2
  517. package/src/TextField/IconContainer.tsx +3 -2
  518. package/src/TextField/Input.tsx +5 -3
  519. package/src/TextField/OutlinedContainer.tsx +5 -3
  520. package/src/TextField/TextField.story.tsx +1 -0
  521. package/src/TextField/TextField.tsx +6 -3
  522. package/src/ThemeExplorer/ColorPicker.tsx +19 -16
  523. package/src/ThemeExplorer/TextFieldColorPicker.tsx +5 -2
  524. package/src/ThemeExplorer/ThemeBuilder.story.tsx +8 -12
  525. package/src/ThemeExplorer/ThemeColors.tsx +2 -1
  526. package/src/ThemeExplorer/ThemeExplorer.story.tsx +1 -0
  527. package/src/ThemeExplorer/components.tsx +5 -18
  528. package/src/ThemeExplorer/makeColorScheme.tsx +2 -1
  529. package/src/ThemeExplorer/useDeferredColor.tsx +2 -1
  530. package/src/Tooltip/Tooltip.story.tsx +1 -0
  531. package/src/Tooltip/Tooltip.tsx +8 -4
  532. package/src/color.ts +18 -16
  533. package/src/hooks/useAnimation.ts +2 -1
  534. package/src/theme/useTheme.ts +3 -1
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { ScrimProps } from './Scrim';
3
- import { DialogContainerProps } from './DialogContainer';
4
- import { DialogSurfaceProps } from './DialogSurface';
5
- import { DialogBackdropProps } from './DialogBackdrop';
2
+ import type { ScrimProps } from './Scrim';
3
+ import type { DialogContainerProps } from './DialogContainer';
4
+ import type { DialogSurfaceProps } from './DialogSurface';
5
+ import type { DialogBackdropProps } from './DialogBackdrop';
6
6
  import type { DialogAnimationModes } from './useDialogAnimation';
7
7
  export type { DialogAnimationModes } from './useDialogAnimation';
8
8
  export interface DialogProps extends DialogSurfaceProps {
@@ -17,4 +17,4 @@ export interface DialogProps extends DialogSurfaceProps {
17
17
  containerProps?: DialogContainerProps;
18
18
  scrimProps?: ScrimProps;
19
19
  }
20
- export declare const Dialog: import("react").ForwardRefExoticComponent<Pick<DialogProps, "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" | "open" | "innerAs" | "elevation" | "outlined" | "backgroundOverlay" | "containerProps" | "trapFocus" | "onClose" | "disableBackdropClick" | "disableEscapeKeyDown" | "animationMode" | "openTimeoutInMilliseconds" | "closeTimeoutInMilliseconds" | "backdropProps" | "scrimProps"> & import("react").RefAttributes<HTMLDivElement>>;
20
+ export declare const Dialog: import("react").ForwardRefExoticComponent<Pick<DialogProps, "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" | "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" | "open" | "innerAs" | "elevation" | "outlined" | "backgroundOverlay" | "darkThemeBackgroundOverlay" | "containerProps" | "onClose" | "disableBackdropClick" | "disableEscapeKeyDown" | "animationMode" | "openTimeoutInMilliseconds" | "closeTimeoutInMilliseconds" | "backdropProps" | "scrimProps" | "trapFocus"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
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
4
  import { Portal } from '@basic-ui/core';
5
5
  import { Scrim } from './Scrim';
@@ -9,31 +9,30 @@ import { useDialogAnimation } from './useDialogAnimation';
9
9
  import { DialogBackdrop } from './DialogBackdrop';
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import { jsxs as _jsxs } from "react/jsx-runtime";
12
- export const Dialog = /*#__PURE__*/forwardRef(function Dialog(props, forwardedRef) {
13
- const {
14
- open: openProp = false,
15
- animationMode = 'grow',
16
- onClose,
17
- disableBackdropClick,
18
- disableEscapeKeyDown,
19
- backdropProps,
20
- containerProps,
21
- scrimProps,
22
- openTimeoutInMilliseconds,
23
- closeTimeoutInMilliseconds
24
- } = props,
25
- otherProps = _objectWithoutPropertiesLoose(props, ["open", "animationMode", "onClose", "disableBackdropClick", "disableEscapeKeyDown", "backdropProps", "containerProps", "scrimProps", "openTimeoutInMilliseconds", "closeTimeoutInMilliseconds"]);
12
+ export var Dialog = /*#__PURE__*/forwardRef(function Dialog(props, forwardedRef) {
13
+ var _props$open = props.open,
14
+ openProp = _props$open === void 0 ? false : _props$open,
15
+ _props$animationMode = props.animationMode,
16
+ animationMode = _props$animationMode === void 0 ? 'grow' : _props$animationMode,
17
+ onClose = props.onClose,
18
+ disableBackdropClick = props.disableBackdropClick,
19
+ disableEscapeKeyDown = props.disableEscapeKeyDown,
20
+ backdropProps = props.backdropProps,
21
+ containerProps = props.containerProps,
22
+ scrimProps = props.scrimProps,
23
+ openTimeoutInMilliseconds = props.openTimeoutInMilliseconds,
24
+ closeTimeoutInMilliseconds = props.closeTimeoutInMilliseconds,
25
+ otherProps = _objectWithoutProperties(props, ["open", "animationMode", "onClose", "disableBackdropClick", "disableEscapeKeyDown", "backdropProps", "containerProps", "scrimProps", "openTimeoutInMilliseconds", "closeTimeoutInMilliseconds"]);
26
26
 
27
- const {
28
- containerStyle,
29
- scrimStyle,
30
- open
31
- } = useDialogAnimation({
27
+ var _useDialogAnimation = useDialogAnimation({
32
28
  open: openProp,
33
29
  mode: animationMode,
34
- openTimeoutInMilliseconds,
35
- closeTimeoutInMilliseconds
36
- });
30
+ openTimeoutInMilliseconds: openTimeoutInMilliseconds,
31
+ closeTimeoutInMilliseconds: closeTimeoutInMilliseconds
32
+ }),
33
+ containerStyle = _useDialogAnimation.containerStyle,
34
+ scrimStyle = _useDialogAnimation.scrimStyle,
35
+ open = _useDialogAnimation.open;
37
36
 
38
37
  if (!open) {
39
38
  return null;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Dialog/Dialog.tsx"],"names":["forwardRef","Portal","Scrim","DialogContainer","DialogSurface","useDialogAnimation","DialogBackdrop","Dialog","props","forwardedRef","open","openProp","animationMode","onClose","disableBackdropClick","disableEscapeKeyDown","backdropProps","containerProps","scrimProps","openTimeoutInMilliseconds","closeTimeoutInMilliseconds","otherProps","containerStyle","scrimStyle","mode"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,MAAT,QAAuB,gBAAvB;AACA,SAASC,KAAT,QAAkC,SAAlC;AACA,SAASC,eAAT,QAAsD,mBAAtD;AACA,SAASC,aAAT,QAAkD,iBAAlD;AACA,SAASC,kBAAT,QAAmC,sBAAnC;AACA,SAASC,cAAT,QAAoD,kBAApD;;;AAiBA,OAAO,MAAMC,MAAM,gBAAGP,UAAU,CAA8B,SAASO,MAAT,CAC5DC,KAD4D,EAE5DC,YAF4D,EAG5D;AACA,QAAM;AACJC,IAAAA,IAAI,EAAEC,QAAQ,GAAG,KADb;AAEJC,IAAAA,aAAa,GAAG,MAFZ;AAGJC,IAAAA,OAHI;AAIJC,IAAAA,oBAJI;AAKJC,IAAAA,oBALI;AAMJC,IAAAA,aANI;AAOJC,IAAAA,cAPI;AAQJC,IAAAA,UARI;AASJC,IAAAA,yBATI;AAUJC,IAAAA;AAVI,MAYFZ,KAZJ;AAAA,QAWKa,UAXL,iCAYIb,KAZJ;;AAaA,QAAM;AAAEc,IAAAA,cAAF;AAAkBC,IAAAA,UAAlB;AAA8Bb,IAAAA;AAA9B,MAAuCL,kBAAkB,CAAC;AAC9DK,IAAAA,IAAI,EAAEC,QADwD;AAE9Da,IAAAA,IAAI,EAAEZ,aAFwD;AAG9DO,IAAAA,yBAH8D;AAI9DC,IAAAA;AAJ8D,GAAD,CAA/D;;AAOA,MAAI,CAACV,IAAL,EAAW;AACT,WAAO,IAAP;AACD;;AAED,sBACE,KAAC,MAAD;AAAA,2BACE,MAAC,cAAD;AACE,MAAA,OAAO,EAAEG,OADX;AAEE,MAAA,IAAI,EAAEF,QAFR;AAGE,MAAA,mBAAmB,EAAEG,oBAHvB;AAIE,MAAA,oBAAoB,EAAEC;AAJxB,OAKMC,aALN;AAAA,8BAOE,KAAC,KAAD;AAAO,QAAA,KAAK,EAAEO;AAAd,SAA8BL,UAA9B,EAPF,eAQE,KAAC,eAAD;AAAiB,QAAA,KAAK,EAAEI;AAAxB,SAA4CL,cAA5C;AAAA,+BACE,KAAC,aAAD;AAAe,UAAA,GAAG,EAAER;AAApB,WAAsCY,UAAtC;AADF,SARF;AAAA;AADF,IADF;AAgBD,CA5C+B,CAAzB","sourcesContent":["import { forwardRef } from 'react';\nimport { Portal } from '@basic-ui/core';\nimport { Scrim, ScrimProps } from './Scrim';\nimport { DialogContainer, DialogContainerProps } from './DialogContainer';\nimport { DialogSurface, DialogSurfaceProps } from './DialogSurface';\nimport { useDialogAnimation } from './useDialogAnimation';\nimport { DialogBackdrop, DialogBackdropProps } from './DialogBackdrop';\nimport type { DialogAnimationModes } from './useDialogAnimation';\nexport type { DialogAnimationModes } from './useDialogAnimation';\n\nexport interface DialogProps extends DialogSurfaceProps {\n open?: boolean;\n onClose: () => void;\n disableBackdropClick?: boolean;\n disableEscapeKeyDown?: boolean;\n animationMode?: DialogAnimationModes;\n openTimeoutInMilliseconds?: number;\n closeTimeoutInMilliseconds?: number;\n backdropProps?: DialogBackdropProps;\n containerProps?: DialogContainerProps;\n scrimProps?: ScrimProps;\n}\n\nexport const Dialog = forwardRef<HTMLDivElement, DialogProps>(function Dialog(\n props,\n forwardedRef\n) {\n const {\n open: openProp = false,\n animationMode = 'grow',\n onClose,\n disableBackdropClick,\n disableEscapeKeyDown,\n backdropProps,\n containerProps,\n scrimProps,\n openTimeoutInMilliseconds,\n closeTimeoutInMilliseconds,\n ...otherProps\n } = props;\n const { containerStyle, scrimStyle, open } = useDialogAnimation({\n open: openProp,\n mode: animationMode,\n openTimeoutInMilliseconds,\n closeTimeoutInMilliseconds,\n });\n\n if (!open) {\n return null;\n }\n\n return (\n <Portal>\n <DialogBackdrop\n onClose={onClose}\n open={openProp}\n disableCloseOnClick={disableBackdropClick}\n disableEscapeKeyDown={disableEscapeKeyDown}\n {...backdropProps}\n >\n <Scrim __css={scrimStyle} {...scrimProps} />\n <DialogContainer __css={containerStyle} {...containerProps}>\n <DialogSurface ref={forwardedRef} {...otherProps} />\n </DialogContainer>\n </DialogBackdrop>\n </Portal>\n );\n});\n"],"file":"Dialog.js"}
1
+ {"version":3,"sources":["../../../src/Dialog/Dialog.tsx"],"names":["forwardRef","Portal","Scrim","DialogContainer","DialogSurface","useDialogAnimation","DialogBackdrop","Dialog","props","forwardedRef","open","openProp","animationMode","onClose","disableBackdropClick","disableEscapeKeyDown","backdropProps","containerProps","scrimProps","openTimeoutInMilliseconds","closeTimeoutInMilliseconds","otherProps","mode","containerStyle","scrimStyle"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,MAAT,QAAuB,gBAAvB;AAGA,SAASC,KAAT,QAAsB,SAAtB;AAEA,SAASC,eAAT,QAAgC,mBAAhC;AAEA,SAASC,aAAT,QAA8B,iBAA9B;AACA,SAASC,kBAAT,QAAmC,sBAAnC;AAEA,SAASC,cAAT,QAA+B,kBAA/B;;;AAiBA,OAAO,IAAMC,MAAM,gBAAGP,UAAU,CAA8B,SAASO,MAAT,CAC5DC,KAD4D,EAE5DC,YAF4D,EAG5D;AAAA,oBAaID,KAbJ,CAEEE,IAFF;AAAA,MAEQC,QAFR,4BAEmB,KAFnB;AAAA,6BAaIH,KAbJ,CAGEI,aAHF;AAAA,MAGEA,aAHF,qCAGkB,MAHlB;AAAA,MAIEC,OAJF,GAaIL,KAbJ,CAIEK,OAJF;AAAA,MAKEC,oBALF,GAaIN,KAbJ,CAKEM,oBALF;AAAA,MAMEC,oBANF,GAaIP,KAbJ,CAMEO,oBANF;AAAA,MAOEC,aAPF,GAaIR,KAbJ,CAOEQ,aAPF;AAAA,MAQEC,cARF,GAaIT,KAbJ,CAQES,cARF;AAAA,MASEC,UATF,GAaIV,KAbJ,CASEU,UATF;AAAA,MAUEC,yBAVF,GAaIX,KAbJ,CAUEW,yBAVF;AAAA,MAWEC,0BAXF,GAaIZ,KAbJ,CAWEY,0BAXF;AAAA,MAYKC,UAZL,4BAaIb,KAbJ;;AAAA,4BAc6CH,kBAAkB,CAAC;AAC9DK,IAAAA,IAAI,EAAEC,QADwD;AAE9DW,IAAAA,IAAI,EAAEV,aAFwD;AAG9DO,IAAAA,yBAAyB,EAAzBA,yBAH8D;AAI9DC,IAAAA,0BAA0B,EAA1BA;AAJ8D,GAAD,CAd/D;AAAA,MAcQG,cAdR,uBAcQA,cAdR;AAAA,MAcwBC,UAdxB,uBAcwBA,UAdxB;AAAA,MAcoCd,IAdpC,uBAcoCA,IAdpC;;AAqBA,MAAI,CAACA,IAAL,EAAW;AACT,WAAO,IAAP;AACD;;AAED,sBACE,KAAC,MAAD;AAAA,2BACE,MAAC,cAAD;AACE,MAAA,OAAO,EAAEG,OADX;AAEE,MAAA,IAAI,EAAEF,QAFR;AAGE,MAAA,mBAAmB,EAAEG,oBAHvB;AAIE,MAAA,oBAAoB,EAAEC;AAJxB,OAKMC,aALN;AAAA,8BAOE,KAAC,KAAD;AAAO,QAAA,KAAK,EAAEQ;AAAd,SAA8BN,UAA9B,EAPF,eAQE,KAAC,eAAD;AAAiB,QAAA,KAAK,EAAEK;AAAxB,SAA4CN,cAA5C;AAAA,+BACE,KAAC,aAAD;AAAe,UAAA,GAAG,EAAER;AAApB,WAAsCY,UAAtC;AADF,SARF;AAAA;AADF,IADF;AAgBD,CA5C+B,CAAzB","sourcesContent":["import { forwardRef } from 'react';\nimport { Portal } from '@basic-ui/core';\n\nimport type { ScrimProps } from './Scrim';\nimport { Scrim } from './Scrim';\nimport type { DialogContainerProps } from './DialogContainer';\nimport { DialogContainer } from './DialogContainer';\nimport type { DialogSurfaceProps } from './DialogSurface';\nimport { DialogSurface } from './DialogSurface';\nimport { useDialogAnimation } from './useDialogAnimation';\nimport type { DialogBackdropProps } from './DialogBackdrop';\nimport { DialogBackdrop } from './DialogBackdrop';\nimport type { DialogAnimationModes } from './useDialogAnimation';\nexport type { DialogAnimationModes } from './useDialogAnimation';\n\nexport interface DialogProps extends DialogSurfaceProps {\n open?: boolean;\n onClose: () => void;\n disableBackdropClick?: boolean;\n disableEscapeKeyDown?: boolean;\n animationMode?: DialogAnimationModes;\n openTimeoutInMilliseconds?: number;\n closeTimeoutInMilliseconds?: number;\n backdropProps?: DialogBackdropProps;\n containerProps?: DialogContainerProps;\n scrimProps?: ScrimProps;\n}\n\nexport const Dialog = forwardRef<HTMLDivElement, DialogProps>(function Dialog(\n props,\n forwardedRef\n) {\n const {\n open: openProp = false,\n animationMode = 'grow',\n onClose,\n disableBackdropClick,\n disableEscapeKeyDown,\n backdropProps,\n containerProps,\n scrimProps,\n openTimeoutInMilliseconds,\n closeTimeoutInMilliseconds,\n ...otherProps\n } = props;\n const { containerStyle, scrimStyle, open } = useDialogAnimation({\n open: openProp,\n mode: animationMode,\n openTimeoutInMilliseconds,\n closeTimeoutInMilliseconds,\n });\n\n if (!open) {\n return null;\n }\n\n return (\n <Portal>\n <DialogBackdrop\n onClose={onClose}\n open={openProp}\n disableCloseOnClick={disableBackdropClick}\n disableEscapeKeyDown={disableEscapeKeyDown}\n {...backdropProps}\n >\n <Scrim __css={scrimStyle} {...scrimProps} />\n <DialogContainer __css={containerStyle} {...containerProps}>\n <DialogSurface ref={forwardedRef} {...otherProps} />\n </DialogContainer>\n </DialogBackdrop>\n </Portal>\n );\n});\n"],"file":"Dialog.js"}
@@ -1,7 +1,7 @@
1
- import type * as React from 'react';
2
- import { ModalBackdropProps } from '@basic-ui/core';
3
- import { BoxProps } from '../Box';
1
+ import * as React from 'react';
2
+ import type { ModalBackdropProps } from '@basic-ui/core';
3
+ import type { BoxProps } from '../Box';
4
4
  export declare type DialogBackdropProps = ModalBackdropProps & BoxProps & {
5
5
  open?: boolean;
6
6
  };
7
- export declare const DialogBackdrop: React.ForwardRefExoticComponent<Pick<DialogBackdropProps, "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" | "open" | "innerAs" | "onClose" | "disableEscapeKeyDown" | "disableCloseOnClick"> & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const DialogBackdrop: React.ForwardRefExoticComponent<Pick<DialogBackdropProps, "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" | "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" | "open" | "innerAs" | "onClose" | "disableEscapeKeyDown" | "disableCloseOnClick"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,25 +1,24 @@
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 { ModalBackdrop as _ModalBackdrop } from '@basic-ui/core';
5
6
  import { Box } from '../Box';
6
7
  import { jsx as _jsx } from "react/jsx-runtime";
7
- const ModalBackdrop = _ModalBackdrop;
8
- export const DialogBackdrop = /*#__PURE__*/forwardRef(function DialogBackdrop(props, forwardedRef) {
9
- const {
10
- open,
11
- onClose,
12
- __css
13
- } = props,
14
- otherProps = _objectWithoutPropertiesLoose(props, ["open", "onClose", "__css"]);
8
+ var ModalBackdrop = _ModalBackdrop;
9
+ export var DialogBackdrop = /*#__PURE__*/forwardRef(function DialogBackdrop(props, forwardedRef) {
10
+ var open = props.open,
11
+ onClose = props.onClose,
12
+ __css = props.__css,
13
+ otherProps = _objectWithoutProperties(props, ["open", "onClose", "__css"]);
15
14
 
16
- const pointerEvents = open ? undefined : 'none';
15
+ var pointerEvents = open ? undefined : 'none';
17
16
  return /*#__PURE__*/_jsx(ModalBackdrop, _extends({
18
17
  as: Box,
19
18
  ref: forwardedRef,
20
19
  onClose: onClose,
21
20
  style: {
22
- pointerEvents
21
+ pointerEvents: pointerEvents
23
22
  },
24
23
  __css: _extends({
25
24
  position: 'fixed',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Dialog/DialogBackdrop.tsx"],"names":["forwardRef","ModalBackdrop","_ModalBackdrop","Box","DialogBackdrop","props","forwardedRef","open","onClose","__css","otherProps","pointerEvents","undefined","position","top","left","right","bottom","zIndex"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAEA,SACEC,aAAa,IAAIC,cADnB,QAGO,gBAHP;AAIA,SAASC,GAAT,QAA8B,QAA9B;;AAEA,MAAMF,aAAa,GAAGC,cAAtB;AAOA,OAAO,MAAME,cAAc,gBAAGJ,UAAU,CACtC,SAASI,cAAT,CAAwBC,KAAxB,EAA+BC,YAA/B,EAA6C;AAC3C,QAAM;AAAEC,IAAAA,IAAF;AAAQC,IAAAA,OAAR;AAAiBC,IAAAA;AAAjB,MAA0CJ,KAAhD;AAAA,QAAiCK,UAAjC,iCAAgDL,KAAhD;;AAEA,QAAMM,aAAa,GAAGJ,IAAI,GAAGK,SAAH,GAAe,MAAzC;AAEA,sBACE,KAAC,aAAD;AACE,IAAA,EAAE,EAAET,GADN;AAEE,IAAA,GAAG,EAAEG,YAFP;AAGE,IAAA,OAAO,EAAEE,OAHX;AAIE,IAAA,KAAK,EAAE;AAAEG,MAAAA;AAAF,KAJT;AAKE,IAAA,KAAK;AACHE,MAAAA,QAAQ,EAAE,OADP;AAEHC,MAAAA,GAAG,EAAE,GAFF;AAGHC,MAAAA,IAAI,EAAE,GAHH;AAIHC,MAAAA,KAAK,EAAE,GAJJ;AAKHC,MAAAA,MAAM,EAAE,GALL;AAMHC,MAAAA,MAAM,EAAE;AANL,OAQAT,KARA;AALP,KAeMC,UAfN,EADF;AAmBD,CAzBqC,CAAjC","sourcesContent":["import { forwardRef } from 'react';\nimport type * as React from 'react';\nimport {\n ModalBackdrop as _ModalBackdrop,\n ModalBackdropProps,\n} from '@basic-ui/core';\nimport { Box, BoxProps } from '../Box';\n\nconst ModalBackdrop = _ModalBackdrop as React.FC<\n DialogBackdropProps & { ref?: React.Ref<HTMLDivElement> }\n>;\n\nexport type DialogBackdropProps = ModalBackdropProps &\n BoxProps & { open?: boolean };\n\nexport const DialogBackdrop = forwardRef<HTMLDivElement, DialogBackdropProps>(\n function DialogBackdrop(props, forwardedRef) {\n const { open, onClose, __css, ...otherProps } = props;\n\n const pointerEvents = open ? undefined : 'none';\n\n return (\n <ModalBackdrop\n as={Box}\n ref={forwardedRef}\n onClose={onClose}\n style={{ pointerEvents }}\n __css={{\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n zIndex: 'dialog',\n // Can't set overflow auto here otherwise slide animation\n ...__css,\n }}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"DialogBackdrop.js"}
1
+ {"version":3,"sources":["../../../src/Dialog/DialogBackdrop.tsx"],"names":["forwardRef","React","ModalBackdrop","_ModalBackdrop","Box","DialogBackdrop","props","forwardedRef","open","onClose","__css","otherProps","pointerEvents","undefined","position","top","left","right","bottom","zIndex"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AAEA,SAASC,aAAa,IAAIC,cAA1B,QAAgD,gBAAhD;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAEA,IAAMF,aAAa,GAAGC,cAAtB;AAOA,OAAO,IAAME,cAAc,gBAAGL,UAAU,CACtC,SAASK,cAAT,CAAwBC,KAAxB,EAA+BC,YAA/B,EAA6C;AAAA,MACnCC,IADmC,GACKF,KADL,CACnCE,IADmC;AAAA,MAC7BC,OAD6B,GACKH,KADL,CAC7BG,OAD6B;AAAA,MACpBC,KADoB,GACKJ,KADL,CACpBI,KADoB;AAAA,MACVC,UADU,4BACKL,KADL;;AAG3C,MAAMM,aAAa,GAAGJ,IAAI,GAAGK,SAAH,GAAe,MAAzC;AAEA,sBACE,KAAC,aAAD;AACE,IAAA,EAAE,EAAET,GADN;AAEE,IAAA,GAAG,EAAEG,YAFP;AAGE,IAAA,OAAO,EAAEE,OAHX;AAIE,IAAA,KAAK,EAAE;AAAEG,MAAAA,aAAa,EAAbA;AAAF,KAJT;AAKE,IAAA,KAAK;AACHE,MAAAA,QAAQ,EAAE,OADP;AAEHC,MAAAA,GAAG,EAAE,GAFF;AAGHC,MAAAA,IAAI,EAAE,GAHH;AAIHC,MAAAA,KAAK,EAAE,GAJJ;AAKHC,MAAAA,MAAM,EAAE,GALL;AAMHC,MAAAA,MAAM,EAAE;AANL,OAQAT,KARA;AALP,KAeMC,UAfN,EADF;AAmBD,CAzBqC,CAAjC","sourcesContent":["import { forwardRef } from 'react';\nimport * as React from 'react';\nimport type { ModalBackdropProps } from '@basic-ui/core';\nimport { ModalBackdrop as _ModalBackdrop } from '@basic-ui/core';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\n\nconst ModalBackdrop = _ModalBackdrop as React.FC<\n DialogBackdropProps & { ref?: React.Ref<HTMLDivElement> }\n>;\n\nexport type DialogBackdropProps = ModalBackdropProps &\n BoxProps & { open?: boolean };\n\nexport const DialogBackdrop = forwardRef<HTMLDivElement, DialogBackdropProps>(\n function DialogBackdrop(props, forwardedRef) {\n const { open, onClose, __css, ...otherProps } = props;\n\n const pointerEvents = open ? undefined : 'none';\n\n return (\n <ModalBackdrop\n as={Box}\n ref={forwardedRef}\n onClose={onClose}\n style={{ pointerEvents }}\n __css={{\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n zIndex: 'dialog',\n // Can't set overflow auto here otherwise slide animation\n ...__css,\n }}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"DialogBackdrop.js"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '../Box';
2
+ import type { BoxProps } from '../Box';
3
3
  export declare type DialogContainerProps = BoxProps;
4
- export declare const DialogContainer: import("react").ForwardRefExoticComponent<Pick<BoxProps<HTMLDivElement, import("react").HTMLAttributes<HTMLDivElement>>, "translate" | "hidden" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "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"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const DialogContainer: import("react").ForwardRefExoticComponent<Pick<BoxProps<HTMLDivElement, import("react").HTMLAttributes<HTMLDivElement>>, "children" | "slot" | "style" | "title" | "translate" | "hidden" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "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"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,13 +1,11 @@
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
4
  import { Box } from '../Box';
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
6
- export const DialogContainer = /*#__PURE__*/forwardRef(function DialogContainer(props, forwardedRef) {
7
- const {
8
- __css
9
- } = props,
10
- otherProps = _objectWithoutPropertiesLoose(props, ["__css"]);
6
+ export var DialogContainer = /*#__PURE__*/forwardRef(function DialogContainer(props, forwardedRef) {
7
+ var __css = props.__css,
8
+ otherProps = _objectWithoutProperties(props, ["__css"]);
11
9
 
12
10
  return /*#__PURE__*/_jsx(Box, _extends({
13
11
  ref: forwardedRef,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Dialog/DialogContainer.tsx"],"names":["forwardRef","Box","DialogContainer","props","forwardedRef","__css","otherProps","position","display","alignItems","justifyContent","width","height","willChange","transformOrigin","pointerEvents"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAA8B,QAA9B;;AAIA,OAAO,MAAMC,eAAe,gBAAGF,UAAU,CACvC,SAASE,eAAT,CAAyBC,KAAzB,EAAgCC,YAAhC,EAA8C;AAC5C,QAAM;AAAEC,IAAAA;AAAF,MAA2BF,KAAjC;AAAA,QAAkBG,UAAlB,iCAAiCH,KAAjC;;AAEA,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,KAAK;AACHG,MAAAA,QAAQ,EAAE,UADP;AAEHC,MAAAA,OAAO,EAAE,MAFN;AAGHC,MAAAA,UAAU,EAAE,QAHT;AAIHC,MAAAA,cAAc,EAAE,QAJb;AAKHC,MAAAA,KAAK,EAAE,MALJ;AAMHC,MAAAA,MAAM,EAAE,MANL;AAOHC,MAAAA,UAAU,EAAE,mBAPT;AAQHC,MAAAA,eAAe,EAAE,eARd;AASHC,MAAAA,aAAa,EAAE;AATZ,OAUAV,KAVA;AAFP,KAcMC,UAdN,EADF;AAkBD,CAtBsC,CAAlC","sourcesContent":["import { forwardRef } from 'react';\nimport { Box, BoxProps } from '../Box';\n\nexport type DialogContainerProps = BoxProps;\n\nexport const DialogContainer = forwardRef<HTMLDivElement, BoxProps>(\n function DialogContainer(props, forwardedRef) {\n const { __css, ...otherProps } = props;\n\n return (\n <Box\n ref={forwardedRef}\n __css={{\n position: 'absolute',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '100%',\n willChange: 'transform,opacity',\n transformOrigin: 'center center',\n pointerEvents: 'none',\n ...__css,\n }}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"DialogContainer.js"}
1
+ {"version":3,"sources":["../../../src/Dialog/DialogContainer.tsx"],"names":["forwardRef","Box","DialogContainer","props","forwardedRef","__css","otherProps","position","display","alignItems","justifyContent","width","height","willChange","transformOrigin","pointerEvents"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;;AAIA,OAAO,IAAMC,eAAe,gBAAGF,UAAU,CACvC,SAASE,eAAT,CAAyBC,KAAzB,EAAgCC,YAAhC,EAA8C;AAAA,MACpCC,KADoC,GACXF,KADW,CACpCE,KADoC;AAAA,MAC1BC,UAD0B,4BACXH,KADW;;AAG5C,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,KAAK;AACHG,MAAAA,QAAQ,EAAE,UADP;AAEHC,MAAAA,OAAO,EAAE,MAFN;AAGHC,MAAAA,UAAU,EAAE,QAHT;AAIHC,MAAAA,cAAc,EAAE,QAJb;AAKHC,MAAAA,KAAK,EAAE,MALJ;AAMHC,MAAAA,MAAM,EAAE,MANL;AAOHC,MAAAA,UAAU,EAAE,mBAPT;AAQHC,MAAAA,eAAe,EAAE,eARd;AASHC,MAAAA,aAAa,EAAE;AATZ,OAUAV,KAVA;AAFP,KAcMC,UAdN,EADF;AAkBD,CAtBsC,CAAlC","sourcesContent":["import { forwardRef } from 'react';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\n\nexport type DialogContainerProps = BoxProps;\n\nexport const DialogContainer = forwardRef<HTMLDivElement, BoxProps>(\n function DialogContainer(props, forwardedRef) {\n const { __css, ...otherProps } = props;\n\n return (\n <Box\n ref={forwardedRef}\n __css={{\n position: 'absolute',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '100%',\n willChange: 'transform,opacity',\n transformOrigin: 'center center',\n pointerEvents: 'none',\n ...__css,\n }}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"DialogContainer.js"}
@@ -1,7 +1,7 @@
1
- import type * as React from 'react';
2
- import { ModalProps } from '@basic-ui/core';
3
- import { PaperProps } from '../Paper';
1
+ import * as React from 'react';
2
+ import type { ModalProps } from '@basic-ui/core';
3
+ import type { PaperProps } from '../Paper';
4
4
  export declare type DialogSurfaceProps = ModalProps & PaperProps & {
5
5
  variant?: 'base';
6
6
  };
7
- export declare const DialogSurface: React.ForwardRefExoticComponent<Pick<DialogSurfaceProps, "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" | "elevation" | "outlined" | "backgroundOverlay" | "trapFocus"> & React.RefAttributes<HTMLDivElement>>;
7
+ export declare const DialogSurface: React.ForwardRefExoticComponent<Pick<DialogSurfaceProps, "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" | "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" | "elevation" | "outlined" | "backgroundOverlay" | "darkThemeBackgroundOverlay" | "trapFocus"> & React.RefAttributes<HTMLDivElement>>;
@@ -1,28 +1,28 @@
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 { Modal as _Modal } from '@basic-ui/core';
6
+ import { get, variant } from 'styled-system';
5
7
  import { Paper } from '../Paper';
6
8
  import { useTheme } from '../theme';
7
- import { get, variant } from 'styled-system';
8
- import { getColorOverlay } from '../color';
9
9
  import { jsx as _jsx } from "react/jsx-runtime";
10
- const Modal = _Modal;
11
- export const DialogSurface = /*#__PURE__*/forwardRef(function DialogSurface(props, forwardedRef) {
12
- const {
13
- __css,
14
- variant: variantProp = 'base'
15
- } = props,
16
- otherProps = _objectWithoutPropertiesLoose(props, ["__css", "variant"]);
10
+ var Modal = _Modal;
11
+ export var DialogSurface = /*#__PURE__*/forwardRef(function DialogSurface(props, forwardedRef) {
12
+ var __css = props.__css,
13
+ _props$variant = props.variant,
14
+ variantProp = _props$variant === void 0 ? 'base' : _props$variant,
15
+ otherProps = _objectWithoutProperties(props, ["__css", "variant"]);
17
16
 
18
- const theme = useTheme();
19
- const overlayValue = get(theme, 'dialogs.backgroundColorOverlay') || 0;
17
+ var theme = useTheme();
18
+ var overlayValue = get(theme, 'dialogs.backgroundColorOverlay') || 0;
20
19
  return /*#__PURE__*/_jsx(Modal, _extends({
21
20
  ref: forwardedRef,
22
21
  as: Paper,
23
22
  theme: theme,
24
23
  elevation: 3,
25
- __css: _extends({}, getColorOverlay(theme, 'surface', 'primary', overlayValue), {
24
+ darkThemeBackgroundOverlay: overlayValue,
25
+ __css: _extends({
26
26
  position: 'relative',
27
27
  borderRadius: 'small',
28
28
  width: '100%',
@@ -38,7 +38,7 @@ export const DialogSurface = /*#__PURE__*/forwardRef(function DialogSurface(prop
38
38
  }
39
39
  })({
40
40
  variant: variantProp,
41
- theme
41
+ theme: theme
42
42
  }), __css)
43
43
  }, otherProps));
44
44
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Dialog/DialogSurface.tsx"],"names":["forwardRef","Modal","_Modal","Paper","useTheme","get","variant","getColorOverlay","DialogSurface","props","forwardedRef","__css","variantProp","otherProps","theme","overlayValue","position","borderRadius","width","maxWidth","maxHeight","overflow","pointerEvents","scale","prop","variants","base"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAEA,SAASC,KAAK,IAAIC,MAAlB,QAA4C,gBAA5C;AACA,SAASC,KAAT,QAAkC,UAAlC;AACA,SAASC,QAAT,QAAyB,UAAzB;AAEA,SAASC,GAAT,EAAcC,OAAd,QAA6B,eAA7B;AACA,SAASC,eAAT,QAAgC,UAAhC;;AAEA,MAAMN,KAAK,GAAGC,MAAd;AASA,OAAO,MAAMM,aAAa,gBAAGR,UAAU,CACrC,SAASQ,aAAT,CAAuBC,KAAvB,EAA8BC,YAA9B,EAA4C;AAC1C,QAAM;AAAEC,IAAAA,KAAF;AAASL,IAAAA,OAAO,EAAEM,WAAW,GAAG;AAAhC,MAA0DH,KAAhE;AAAA,QAAiDI,UAAjD,iCAAgEJ,KAAhE;;AACA,QAAMK,KAAK,GAAGV,QAAQ,EAAtB;AAEA,QAAMW,YAAY,GACfV,GAAG,CAACS,KAAD,EAAQ,gCAAR,CAAJ,IAA4D,CAD9D;AAGA,sBACE,KAAC,KAAD;AACE,IAAA,GAAG,EAAEJ,YADP;AAEE,IAAA,EAAE,EAAEP,KAFN;AAGE,IAAA,KAAK,EAAEW,KAHT;AAIE,IAAA,SAAS,EAAE,CAJb;AAKE,IAAA,KAAK,eACAP,eAAe,CAACO,KAAD,EAAQ,SAAR,EAAmB,SAAnB,EAA8BC,YAA9B,CADf;AAEHC,MAAAA,QAAQ,EAAE,UAFP;AAGHC,MAAAA,YAAY,EAAE,OAHX;AAIHC,MAAAA,KAAK,EAAE,MAJJ;AAKHC,MAAAA,QAAQ,WALL;AAMHC,MAAAA,SAAS,EAAE,MANR;AAOHC,MAAAA,QAAQ,EAAE,MAPP;AAQHC,MAAAA,aAAa,EAAE;AARZ,OASAhB,OAAO,CAAC;AACTiB,MAAAA,KAAK,EAAE,kBADE;AAETC,MAAAA,IAAI,EAAE,SAFG;AAGTC,MAAAA,QAAQ,EAAE;AACRC,QAAAA,IAAI,EAAE;AADE;AAHD,KAAD,CAAP,CAMA;AAAEpB,MAAAA,OAAO,EAAEM,WAAX;AAAwBE,MAAAA;AAAxB,KANA,CATA,EAgBAH,KAhBA;AALP,KAuBME,UAvBN,EADF;AA2BD,CAnCoC,CAAhC","sourcesContent":["import { forwardRef } from 'react';\nimport type * as React from 'react';\nimport { Modal as _Modal, ModalProps } from '@basic-ui/core';\nimport { Paper, PaperProps } from '../Paper';\nimport { useTheme } from '../theme';\nimport { rem } from 'polished';\nimport { get, variant } from 'styled-system';\nimport { getColorOverlay } from '../color';\n\nconst Modal = _Modal as React.FC<\n DialogSurfaceProps & { ref?: React.Ref<HTMLDivElement> }\n>;\n\nexport type DialogSurfaceProps = ModalProps &\n PaperProps & {\n variant?: 'base';\n };\n\nexport const DialogSurface = forwardRef<HTMLDivElement, DialogSurfaceProps>(\n function DialogSurface(props, forwardedRef) {\n const { __css, variant: variantProp = 'base', ...otherProps } = props;\n const theme = useTheme();\n\n const overlayValue =\n (get(theme, 'dialogs.backgroundColorOverlay') as number) || 0;\n\n return (\n <Modal\n ref={forwardedRef}\n as={Paper}\n theme={theme}\n elevation={3}\n __css={{\n ...getColorOverlay(theme, 'surface', 'primary', overlayValue),\n position: 'relative',\n borderRadius: 'small',\n width: '100%',\n maxWidth: rem(600),\n maxHeight: '100%',\n overflow: 'auto',\n pointerEvents: 'auto',\n ...variant({\n scale: 'dialogs.variants',\n prop: 'variant',\n variants: {\n base: {},\n },\n })({ variant: variantProp, theme }),\n ...__css,\n }}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"DialogSurface.js"}
1
+ {"version":3,"sources":["../../../src/Dialog/DialogSurface.tsx"],"names":["forwardRef","React","Modal","_Modal","get","variant","Paper","useTheme","DialogSurface","props","forwardedRef","__css","variantProp","otherProps","theme","overlayValue","position","borderRadius","width","maxWidth","maxHeight","overflow","pointerEvents","scale","prop","variants","base"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,OAAO,KAAKC,KAAZ,MAAuB,OAAvB;AAEA,SAASC,KAAK,IAAIC,MAAlB,QAAgC,gBAAhC;AAEA,SAASC,GAAT,EAAcC,OAAd,QAA6B,eAA7B;AAGA,SAASC,KAAT,QAAsB,UAAtB;AACA,SAASC,QAAT,QAAyB,UAAzB;;AAEA,IAAML,KAAK,GAAGC,MAAd;AASA,OAAO,IAAMK,aAAa,gBAAGR,UAAU,CACrC,SAASQ,aAAT,CAAuBC,KAAvB,EAA8BC,YAA9B,EAA4C;AAAA,MAClCC,KADkC,GACsBF,KADtB,CAClCE,KADkC;AAAA,uBACsBF,KADtB,CAC3BJ,OAD2B;AAAA,MAClBO,WADkB,+BACJ,MADI;AAAA,MACOC,UADP,4BACsBJ,KADtB;;AAE1C,MAAMK,KAAK,GAAGP,QAAQ,EAAtB;AAEA,MAAMQ,YAAY,GACfX,GAAG,CAACU,KAAD,EAAQ,gCAAR,CAAJ,IAA4D,CAD9D;AAGA,sBACE,KAAC,KAAD;AACE,IAAA,GAAG,EAAEJ,YADP;AAEE,IAAA,EAAE,EAAEJ,KAFN;AAGE,IAAA,KAAK,EAAEQ,KAHT;AAIE,IAAA,SAAS,EAAE,CAJb;AAKE,IAAA,0BAA0B,EAAEC,YAL9B;AAME,IAAA,KAAK;AACHC,MAAAA,QAAQ,EAAE,UADP;AAEHC,MAAAA,YAAY,EAAE,OAFX;AAGHC,MAAAA,KAAK,EAAE,MAHJ;AAIHC,MAAAA,QAAQ,WAJL;AAKHC,MAAAA,SAAS,EAAE,MALR;AAMHC,MAAAA,QAAQ,EAAE,MANP;AAOHC,MAAAA,aAAa,EAAE;AAPZ,OAQAjB,OAAO,CAAC;AACTkB,MAAAA,KAAK,EAAE,kBADE;AAETC,MAAAA,IAAI,EAAE,SAFG;AAGTC,MAAAA,QAAQ,EAAE;AACRC,QAAAA,IAAI,EAAE;AADE;AAHD,KAAD,CAAP,CAMA;AAAErB,MAAAA,OAAO,EAAEO,WAAX;AAAwBE,MAAAA,KAAK,EAALA;AAAxB,KANA,CARA,EAeAH,KAfA;AANP,KAuBME,UAvBN,EADF;AA2BD,CAnCoC,CAAhC","sourcesContent":["import { forwardRef } from 'react';\nimport * as React from 'react';\nimport type { ModalProps } from '@basic-ui/core';\nimport { Modal as _Modal } from '@basic-ui/core';\nimport { rem } from 'polished';\nimport { get, variant } from 'styled-system';\n\nimport type { PaperProps } from '../Paper';\nimport { Paper } from '../Paper';\nimport { useTheme } from '../theme';\n\nconst Modal = _Modal as React.FC<\n DialogSurfaceProps & { ref?: React.Ref<HTMLDivElement> }\n>;\n\nexport type DialogSurfaceProps = ModalProps &\n PaperProps & {\n variant?: 'base';\n };\n\nexport const DialogSurface = forwardRef<HTMLDivElement, DialogSurfaceProps>(\n function DialogSurface(props, forwardedRef) {\n const { __css, variant: variantProp = 'base', ...otherProps } = props;\n const theme = useTheme();\n\n const overlayValue =\n (get(theme, 'dialogs.backgroundColorOverlay') as number) || 0;\n\n return (\n <Modal\n ref={forwardedRef}\n as={Paper}\n theme={theme}\n elevation={3}\n darkThemeBackgroundOverlay={overlayValue}\n __css={{\n position: 'relative',\n borderRadius: 'small',\n width: '100%',\n maxWidth: rem(600),\n maxHeight: '100%',\n overflow: 'auto',\n pointerEvents: 'auto',\n ...variant({\n scale: 'dialogs.variants',\n prop: 'variant',\n variants: {\n base: {},\n },\n })({ variant: variantProp, theme }),\n ...__css,\n }}\n {...otherProps}\n />\n );\n }\n);\n"],"file":"DialogSurface.js"}
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { BoxProps } from '../Box';
2
+ import type { BoxProps } from '../Box';
3
3
  export declare type ScrimProps = BoxProps;
4
- export declare const Scrim: import("react").ForwardRefExoticComponent<Pick<ScrimProps, "translate" | "hidden" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "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"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const Scrim: import("react").ForwardRefExoticComponent<Pick<ScrimProps, "children" | "slot" | "style" | "title" | "translate" | "hidden" | keyof import("../Box").BaseProps | keyof import("styled-system").SpaceProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").LayoutProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").TypographyProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ColorProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol> | keyof import("styled-system").FlexboxProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BorderProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Border<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").GridProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").BackgroundProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Background<import("styled-system").TLengthStyledSystem>> | keyof import("styled-system").PositionProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | keyof import("styled-system").ShadowProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | "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"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,14 +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
4
  import { Box } from '../Box';
5
5
  import { alpha } from '../color';
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
- export const Scrim = /*#__PURE__*/forwardRef(function Scrim(props, forwardedRef) {
8
- const {
9
- __css
10
- } = props,
11
- otherProps = _objectWithoutPropertiesLoose(props, ["__css"]);
7
+ export var Scrim = /*#__PURE__*/forwardRef(function Scrim(props, forwardedRef) {
8
+ var __css = props.__css,
9
+ otherProps = _objectWithoutProperties(props, ["__css"]);
12
10
 
13
11
  return /*#__PURE__*/_jsx(Box, _extends({
14
12
  ref: forwardedRef,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/Dialog/Scrim.tsx"],"names":["forwardRef","Box","alpha","Scrim","props","forwardedRef","__css","otherProps","position","top","left","right","bottom","width","height","backgroundColor","willChange","zIndex","pointerEvents"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AACA,SAASC,GAAT,QAA8B,QAA9B;AACA,SAASC,KAAT,QAAsB,UAAtB;;AAIA,OAAO,MAAMC,KAAK,gBAAGH,UAAU,CAA6B,SAASG,KAAT,CAC1DC,KAD0D,EAE1DC,YAF0D,EAG1D;AACA,QAAM;AAAEC,IAAAA;AAAF,MAA2BF,KAAjC;AAAA,QAAkBG,UAAlB,iCAAiCH,KAAjC;;AAEA,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,KAAK;AACHG,MAAAA,QAAQ,EAAE,OADP;AAEHC,MAAAA,GAAG,EAAE,GAFF;AAGHC,MAAAA,IAAI,EAAE,GAHH;AAIHC,MAAAA,KAAK,EAAE,GAJJ;AAKHC,MAAAA,MAAM,EAAE,GALL;AAMHC,MAAAA,KAAK,EAAE,MANJ;AAOHC,MAAAA,MAAM,EAAE,MAPL;AAQHC,MAAAA,eAAe,EAAEb,KAAK,CAAC,MAAD,EAAS,IAAT,CARnB;AASHc,MAAAA,UAAU,EAAE,SATT;AAUHC,MAAAA,MAAM,EAAE,CAAC,CAVN;AAWHC,MAAAA,aAAa,EAAE;AAXZ,OAYAZ,KAZA;AAFP,KAgBMC,UAhBN,EADF;AAoBD,CA1B8B,CAAxB","sourcesContent":["import { forwardRef } from 'react';\nimport { Box, BoxProps } from '../Box';\nimport { alpha } from '../color';\n\nexport type ScrimProps = BoxProps;\n\nexport const Scrim = forwardRef<HTMLDivElement, ScrimProps>(function Scrim(\n props,\n forwardedRef\n) {\n const { __css, ...otherProps } = props;\n\n return (\n <Box\n ref={forwardedRef}\n __css={{\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n width: '100%',\n height: '100%',\n backgroundColor: alpha('#000', 0.32),\n willChange: 'opacity',\n zIndex: -1,\n pointerEvents: 'none',\n ...__css,\n }}\n {...otherProps}\n />\n );\n});\n"],"file":"Scrim.js"}
1
+ {"version":3,"sources":["../../../src/Dialog/Scrim.tsx"],"names":["forwardRef","Box","alpha","Scrim","props","forwardedRef","__css","otherProps","position","top","left","right","bottom","width","height","backgroundColor","willChange","zIndex","pointerEvents"],"mappings":";;AAAA,SAASA,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,KAAT,QAAsB,UAAtB;;AAIA,OAAO,IAAMC,KAAK,gBAAGH,UAAU,CAA6B,SAASG,KAAT,CAC1DC,KAD0D,EAE1DC,YAF0D,EAG1D;AAAA,MACQC,KADR,GACiCF,KADjC,CACQE,KADR;AAAA,MACkBC,UADlB,4BACiCH,KADjC;;AAGA,sBACE,KAAC,GAAD;AACE,IAAA,GAAG,EAAEC,YADP;AAEE,IAAA,KAAK;AACHG,MAAAA,QAAQ,EAAE,OADP;AAEHC,MAAAA,GAAG,EAAE,GAFF;AAGHC,MAAAA,IAAI,EAAE,GAHH;AAIHC,MAAAA,KAAK,EAAE,GAJJ;AAKHC,MAAAA,MAAM,EAAE,GALL;AAMHC,MAAAA,KAAK,EAAE,MANJ;AAOHC,MAAAA,MAAM,EAAE,MAPL;AAQHC,MAAAA,eAAe,EAAEb,KAAK,CAAC,MAAD,EAAS,IAAT,CARnB;AASHc,MAAAA,UAAU,EAAE,SATT;AAUHC,MAAAA,MAAM,EAAE,CAAC,CAVN;AAWHC,MAAAA,aAAa,EAAE;AAXZ,OAYAZ,KAZA;AAFP,KAgBMC,UAhBN,EADF;AAoBD,CA1B8B,CAAxB","sourcesContent":["import { forwardRef } from 'react';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { alpha } from '../color';\n\nexport type ScrimProps = BoxProps;\n\nexport const Scrim = forwardRef<HTMLDivElement, ScrimProps>(function Scrim(\n props,\n forwardedRef\n) {\n const { __css, ...otherProps } = props;\n\n return (\n <Box\n ref={forwardedRef}\n __css={{\n position: 'fixed',\n top: '0',\n left: '0',\n right: '0',\n bottom: '0',\n width: '100%',\n height: '100%',\n backgroundColor: alpha('#000', 0.32),\n willChange: 'opacity',\n zIndex: -1,\n pointerEvents: 'none',\n ...__css,\n }}\n {...otherProps}\n />\n );\n});\n"],"file":"Scrim.js"}
File without changes
File without changes
File without changes