@basic-ui/material 1.0.0-alpha.51 → 1.0.0-alpha.54

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 (673) hide show
  1. package/README.md +3 -3
  2. package/build/cjs/index.js +520 -447
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/esm/Alert/Alert.d.ts +5 -6
  5. package/build/esm/Alert/Alert.js +14 -16
  6. package/build/esm/Alert/Alert.js.map +1 -1
  7. package/build/esm/Alert/index.d.ts +1 -1
  8. package/build/esm/Alert/index.js.map +1 -1
  9. package/build/esm/AppBar/AppBar.d.ts +9 -9
  10. package/build/esm/AppBar/AppBar.js +25 -34
  11. package/build/esm/AppBar/AppBar.js.map +1 -1
  12. package/build/esm/AppBar/AppBarButton.d.ts +3 -4
  13. package/build/esm/AppBar/AppBarButton.js +12 -14
  14. package/build/esm/AppBar/AppBarButton.js.map +1 -1
  15. package/build/esm/AppBar/context.d.ts +4 -5
  16. package/build/esm/AppBar/context.js +8 -6
  17. package/build/esm/AppBar/context.js.map +1 -1
  18. package/build/esm/AppBar/index.d.ts +3 -3
  19. package/build/esm/AppBar/index.js.map +1 -1
  20. package/build/esm/Badge/Badge.d.ts +5 -6
  21. package/build/esm/Badge/Badge.js +25 -26
  22. package/build/esm/Badge/Badge.js.map +1 -1
  23. package/build/esm/Badge/index.d.ts +1 -1
  24. package/build/esm/Badge/index.js.map +1 -1
  25. package/build/esm/BaseLine/BaseLine.d.ts +1 -1
  26. package/build/esm/BaseLine/BaseLine.js +4 -6
  27. package/build/esm/BaseLine/BaseLine.js.map +1 -1
  28. package/build/esm/BaseLine/index.d.ts +1 -1
  29. package/build/esm/BaseLine/index.js.map +1 -1
  30. package/build/esm/BottomSheet/BottomSheet.d.ts +6 -7
  31. package/build/esm/BottomSheet/BottomSheet.js +17 -21
  32. package/build/esm/BottomSheet/BottomSheet.js.map +1 -1
  33. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +4 -5
  34. package/build/esm/BottomSheet/BottomSheetSurface.js +14 -14
  35. package/build/esm/BottomSheet/BottomSheetSurface.js.map +1 -1
  36. package/build/esm/BottomSheet/index.d.ts +1 -1
  37. package/build/esm/BottomSheet/index.js.map +1 -1
  38. package/build/esm/Box/Box.d.ts +23 -23
  39. package/build/esm/Box/Box.js +26 -26
  40. package/build/esm/Box/Box.js.map +1 -1
  41. package/build/esm/Box/index.d.ts +1 -1
  42. package/build/esm/Box/index.js.map +1 -1
  43. package/build/esm/Button/BaseButton.d.ts +14 -7
  44. package/build/esm/Button/BaseButton.js +107 -36
  45. package/build/esm/Button/BaseButton.js.map +1 -1
  46. package/build/esm/Button/Button.d.ts +14 -13
  47. package/build/esm/Button/Button.js +66 -48
  48. package/build/esm/Button/Button.js.map +1 -1
  49. package/build/esm/Button/ButtonGroup.d.ts +4 -5
  50. package/build/esm/Button/ButtonGroup.js +119 -21
  51. package/build/esm/Button/ButtonGroup.js.map +1 -1
  52. package/build/esm/Button/FilledButton.d.ts +10 -11
  53. package/build/esm/Button/FilledButton.js +18 -60
  54. package/build/esm/Button/FilledButton.js.map +1 -1
  55. package/build/esm/Button/FloatingActionButton.d.ts +9 -7
  56. package/build/esm/Button/FloatingActionButton.js +5 -4
  57. package/build/esm/Button/FloatingActionButton.js.map +1 -1
  58. package/build/esm/Button/IconButton.d.ts +8 -8
  59. package/build/esm/Button/IconButton.js +3 -3
  60. package/build/esm/Button/IconButton.js.map +1 -1
  61. package/build/esm/Button/IconFilledButton.d.ts +2 -0
  62. package/build/esm/Button/IconFilledButton.js +3 -0
  63. package/build/esm/Button/IconFilledButton.js.map +1 -0
  64. package/build/esm/Button/IconOutlinedButton.d.ts +2 -0
  65. package/build/esm/Button/IconOutlinedButton.js +3 -0
  66. package/build/esm/Button/IconOutlinedButton.js.map +1 -0
  67. package/build/esm/Button/OutlinedButton.d.ts +3 -4
  68. package/build/esm/Button/OutlinedButton.js +3 -43
  69. package/build/esm/Button/OutlinedButton.js.map +1 -1
  70. package/build/esm/Button/SplitButton.d.ts +9 -0
  71. package/build/esm/Button/SplitButton.js +32 -0
  72. package/build/esm/Button/SplitButton.js.map +1 -0
  73. package/build/esm/Button/TransparentButton.d.ts +10 -11
  74. package/build/esm/Button/TransparentButton.js +11 -54
  75. package/build/esm/Button/TransparentButton.js.map +1 -1
  76. package/build/esm/Button/context.d.ts +9 -8
  77. package/build/esm/Button/context.js +5 -4
  78. package/build/esm/Button/context.js.map +1 -1
  79. package/build/esm/Button/index.d.ts +3 -2
  80. package/build/esm/Button/index.js +1 -0
  81. package/build/esm/Button/index.js.map +1 -1
  82. package/build/esm/CheckBox/CheckBox.d.ts +13 -13
  83. package/build/esm/CheckBox/CheckBox.js +45 -61
  84. package/build/esm/CheckBox/CheckBox.js.map +1 -1
  85. package/build/esm/CheckBox/CheckBoxIcon.d.ts +10 -10
  86. package/build/esm/CheckBox/CheckBoxIcon.js +19 -24
  87. package/build/esm/CheckBox/CheckBoxIcon.js.map +1 -1
  88. package/build/esm/CheckBox/CheckPath.d.ts +3 -3
  89. package/build/esm/CheckBox/CheckPath.js +15 -16
  90. package/build/esm/CheckBox/CheckPath.js.map +1 -1
  91. package/build/esm/CheckBox/IndeterminatePath.d.ts +3 -3
  92. package/build/esm/CheckBox/IndeterminatePath.js +14 -16
  93. package/build/esm/CheckBox/IndeterminatePath.js.map +1 -1
  94. package/build/esm/CheckBox/index.d.ts +1 -1
  95. package/build/esm/CheckBox/index.js.map +1 -1
  96. package/build/esm/Chip/ButtonChip.d.ts +9 -9
  97. package/build/esm/Chip/ButtonChip.js +20 -24
  98. package/build/esm/Chip/ButtonChip.js.map +1 -1
  99. package/build/esm/Chip/Chip.d.ts +4 -4
  100. package/build/esm/Chip/Chip.js.map +1 -1
  101. package/build/esm/Chip/ChipBase.d.ts +10 -10
  102. package/build/esm/Chip/ChipBase.js +50 -54
  103. package/build/esm/Chip/ChipBase.js.map +1 -1
  104. package/build/esm/Chip/ChoiceChip.d.ts +10 -10
  105. package/build/esm/Chip/ChoiceChip.js +34 -38
  106. package/build/esm/Chip/ChoiceChip.js.map +1 -1
  107. package/build/esm/Chip/index.d.ts +2 -2
  108. package/build/esm/Chip/index.js.map +1 -1
  109. package/build/esm/Combobox/Combobox.d.ts +23 -23
  110. package/build/esm/Combobox/Combobox.js +126 -107
  111. package/build/esm/Combobox/Combobox.js.map +1 -1
  112. package/build/esm/Combobox/index.d.ts +1 -1
  113. package/build/esm/Combobox/index.js.map +1 -1
  114. package/build/esm/Dialog/Dialog.d.ts +19 -20
  115. package/build/esm/Dialog/Dialog.js +38 -42
  116. package/build/esm/Dialog/Dialog.js.map +1 -1
  117. package/build/esm/Dialog/DialogBackdrop.d.ts +6 -7
  118. package/build/esm/Dialog/DialogBackdrop.js +18 -17
  119. package/build/esm/Dialog/DialogBackdrop.js.map +1 -1
  120. package/build/esm/Dialog/DialogContainer.d.ts +3 -4
  121. package/build/esm/Dialog/DialogContainer.js +12 -12
  122. package/build/esm/Dialog/DialogContainer.js.map +1 -1
  123. package/build/esm/Dialog/DialogSurface.d.ts +6 -7
  124. package/build/esm/Dialog/DialogSurface.js +26 -26
  125. package/build/esm/Dialog/DialogSurface.js.map +1 -1
  126. package/build/esm/Dialog/Scrim.d.ts +3 -4
  127. package/build/esm/Dialog/Scrim.js +12 -12
  128. package/build/esm/Dialog/Scrim.js.map +1 -1
  129. package/build/esm/Dialog/index.d.ts +2 -2
  130. package/build/esm/Dialog/index.js.map +1 -1
  131. package/build/esm/Dialog/useDialogAnimation.d.ts +57 -824
  132. package/build/esm/Dialog/useDialogAnimation.js +23 -24
  133. package/build/esm/Dialog/useDialogAnimation.js.map +1 -1
  134. package/build/esm/Divider/Divider.d.ts +7 -7
  135. package/build/esm/Divider/Divider.js +27 -28
  136. package/build/esm/Divider/Divider.js.map +1 -1
  137. package/build/esm/Divider/index.d.ts +1 -1
  138. package/build/esm/Divider/index.js.map +1 -1
  139. package/build/esm/FloatingLabel/FloatingLabel.d.ts +13 -13
  140. package/build/esm/FloatingLabel/FloatingLabel.js +27 -33
  141. package/build/esm/FloatingLabel/FloatingLabel.js.map +1 -1
  142. package/build/esm/FloatingLabel/index.d.ts +1 -1
  143. package/build/esm/FloatingLabel/index.js.map +1 -1
  144. package/build/esm/LineRipple/LineRipple.d.ts +9 -9
  145. package/build/esm/LineRipple/LineRipple.js +30 -38
  146. package/build/esm/LineRipple/LineRipple.js.map +1 -1
  147. package/build/esm/LineRipple/index.d.ts +1 -1
  148. package/build/esm/LineRipple/index.js.map +1 -1
  149. package/build/esm/Link/Link.d.ts +9 -9
  150. package/build/esm/Link/Link.js +15 -17
  151. package/build/esm/Link/Link.js.map +1 -1
  152. package/build/esm/Link/index.d.ts +1 -1
  153. package/build/esm/Link/index.js.map +1 -1
  154. package/build/esm/List/List.d.ts +8 -8
  155. package/build/esm/List/List.js +19 -26
  156. package/build/esm/List/List.js.map +1 -1
  157. package/build/esm/List/index.d.ts +1 -1
  158. package/build/esm/List/index.js.map +1 -1
  159. package/build/esm/ListItem/ListItem.d.ts +14 -14
  160. package/build/esm/ListItem/ListItem.js +28 -31
  161. package/build/esm/ListItem/ListItem.js.map +1 -1
  162. package/build/esm/ListItem/ListItemText.d.ts +7 -7
  163. package/build/esm/ListItem/ListItemText.js +12 -16
  164. package/build/esm/ListItem/ListItemText.js.map +1 -1
  165. package/build/esm/ListItem/index.d.ts +2 -2
  166. package/build/esm/ListItem/index.js.map +1 -1
  167. package/build/esm/Menu/Menu.d.ts +18 -18
  168. package/build/esm/Menu/Menu.js +70 -60
  169. package/build/esm/Menu/Menu.js.map +1 -1
  170. package/build/esm/Menu/animation.d.ts +2 -2
  171. package/build/esm/Menu/animation.js +3 -3
  172. package/build/esm/Menu/animation.js.map +1 -1
  173. package/build/esm/Menu/index.d.ts +2 -2
  174. package/build/esm/Menu/index.js.map +1 -1
  175. package/build/esm/NavRail/NavRailItem.d.ts +15 -15
  176. package/build/esm/NavRail/NavRailItem.js +82 -86
  177. package/build/esm/NavRail/NavRailItem.js.map +1 -1
  178. package/build/esm/NavRail/icons/test-icons.d.ts +4 -4
  179. package/build/esm/NavRail/icons/test-icons.js +33 -40
  180. package/build/esm/NavRail/icons/test-icons.js.map +1 -1
  181. package/build/esm/NavRail/index.d.ts +1 -1
  182. package/build/esm/NavRail/index.js.map +1 -1
  183. package/build/esm/NotchedOutline/NotchedOutline.d.ts +14 -14
  184. package/build/esm/NotchedOutline/NotchedOutline.js +26 -34
  185. package/build/esm/NotchedOutline/NotchedOutline.js.map +1 -1
  186. package/build/esm/NotchedOutline/context.d.ts +5 -6
  187. package/build/esm/NotchedOutline/context.js +8 -7
  188. package/build/esm/NotchedOutline/context.js.map +1 -1
  189. package/build/esm/NotchedOutline/index.d.ts +1 -1
  190. package/build/esm/NotchedOutline/index.js.map +1 -1
  191. package/build/esm/NotchedOutline/styledComponents.d.ts +15 -575
  192. package/build/esm/NotchedOutline/styledComponents.js +65 -64
  193. package/build/esm/NotchedOutline/styledComponents.js.map +1 -1
  194. package/build/esm/Paper/Paper.d.ts +11 -11
  195. package/build/esm/Paper/Paper.js +25 -25
  196. package/build/esm/Paper/Paper.js.map +1 -1
  197. package/build/esm/Paper/index.d.ts +1 -1
  198. package/build/esm/Paper/index.js.map +1 -1
  199. package/build/esm/Popover/Popover.d.ts +13 -14
  200. package/build/esm/Popover/Popover.js +33 -39
  201. package/build/esm/Popover/Popover.js.map +1 -1
  202. package/build/esm/Popover/PopoverContainer.d.ts +3 -4
  203. package/build/esm/Popover/PopoverContainer.js +12 -12
  204. package/build/esm/Popover/PopoverContainer.js.map +1 -1
  205. package/build/esm/Popover/PopoverSurface.d.ts +4 -5
  206. package/build/esm/Popover/PopoverSurface.js +15 -15
  207. package/build/esm/Popover/PopoverSurface.js.map +1 -1
  208. package/build/esm/Popover/index.d.ts +1 -1
  209. package/build/esm/Popover/index.js.map +1 -1
  210. package/build/esm/ProgressSpinner/ProgressSpinner.d.ts +7 -8
  211. package/build/esm/ProgressSpinner/ProgressSpinner.js +31 -33
  212. package/build/esm/ProgressSpinner/ProgressSpinner.js.map +1 -1
  213. package/build/esm/ProgressSpinner/index.d.ts +1 -1
  214. package/build/esm/ProgressSpinner/index.js.map +1 -1
  215. package/build/esm/RadioButton/RadioButton.d.ts +3 -4
  216. package/build/esm/RadioButton/RadioButton.js +29 -32
  217. package/build/esm/RadioButton/RadioButton.js.map +1 -1
  218. package/build/esm/RadioButton/RadioButtonIcon.d.ts +6 -6
  219. package/build/esm/RadioButton/RadioButtonIcon.js +10 -12
  220. package/build/esm/RadioButton/RadioButtonIcon.js.map +1 -1
  221. package/build/esm/RadioButton/RadioGroup.d.ts +4 -5
  222. package/build/esm/RadioButton/RadioGroup.js +9 -11
  223. package/build/esm/RadioButton/RadioGroup.js.map +1 -1
  224. package/build/esm/RadioButton/index.d.ts +2 -2
  225. package/build/esm/RadioButton/index.js.map +1 -1
  226. package/build/esm/Ripple/Ripple.d.ts +10 -11
  227. package/build/esm/Ripple/Ripple.js +12 -10
  228. package/build/esm/Ripple/Ripple.js.map +1 -1
  229. package/build/esm/Ripple/RippleBox.d.ts +5 -5
  230. package/build/esm/Ripple/RippleBox.js +32 -29
  231. package/build/esm/Ripple/RippleBox.js.map +1 -1
  232. package/build/esm/Ripple/constants.d.ts +7 -7
  233. package/build/esm/Ripple/constants.js +7 -7
  234. package/build/esm/Ripple/constants.js.map +1 -1
  235. package/build/esm/Ripple/index.d.ts +5 -5
  236. package/build/esm/Ripple/index.js.map +1 -1
  237. package/build/esm/Ripple/keyframes.d.ts +4 -4
  238. package/build/esm/Ripple/keyframes.js +7 -7
  239. package/build/esm/Ripple/keyframes.js.map +1 -1
  240. package/build/esm/Ripple/useRipple.d.ts +14 -14
  241. package/build/esm/Ripple/useRipple.js +79 -84
  242. package/build/esm/Ripple/useRipple.js.map +1 -1
  243. package/build/esm/Ripple/useRippleHandlers.d.ts +8 -8
  244. package/build/esm/Ripple/useRippleHandlers.js +21 -30
  245. package/build/esm/Ripple/useRippleHandlers.js.map +1 -1
  246. package/build/esm/Ripple/useRippleSurface.d.ts +22 -787
  247. package/build/esm/Ripple/useRippleSurface.js +87 -88
  248. package/build/esm/Ripple/useRippleSurface.js.map +1 -1
  249. package/build/esm/SearchBar/SearchBar.d.ts +15 -15
  250. package/build/esm/SearchBar/SearchBar.js +48 -63
  251. package/build/esm/SearchBar/SearchBar.js.map +1 -1
  252. package/build/esm/SearchBar/index.d.ts +1 -1
  253. package/build/esm/SearchBar/index.js.map +1 -1
  254. package/build/esm/Select/CustomContainerExample.d.ts +2 -3
  255. package/build/esm/Select/CustomContainerExample.js +29 -34
  256. package/build/esm/Select/CustomContainerExample.js.map +1 -1
  257. package/build/esm/Select/Select.d.ts +33 -32
  258. package/build/esm/Select/Select.js +68 -113
  259. package/build/esm/Select/Select.js.map +1 -1
  260. package/build/esm/Select/SelectIcon.d.ts +6 -6
  261. package/build/esm/Select/SelectIcon.js +11 -13
  262. package/build/esm/Select/SelectIcon.js.map +1 -1
  263. package/build/esm/Select/context.d.ts +9 -9
  264. package/build/esm/Select/context.js +10 -8
  265. package/build/esm/Select/context.js.map +1 -1
  266. package/build/esm/Select/defaultRender.d.ts +3 -3
  267. package/build/esm/Select/defaultRender.js +33 -38
  268. package/build/esm/Select/defaultRender.js.map +1 -1
  269. package/build/esm/Select/index.d.ts +1 -1
  270. package/build/esm/Select/index.js.map +1 -1
  271. package/build/esm/Select/styledComponents.d.ts +15 -15
  272. package/build/esm/Select/styledComponents.js +20 -23
  273. package/build/esm/Select/styledComponents.js.map +1 -1
  274. package/build/esm/SelectItem/SelectItem.d.ts +11 -11
  275. package/build/esm/SelectItem/SelectItem.js +37 -47
  276. package/build/esm/SelectItem/SelectItem.js.map +1 -1
  277. package/build/esm/SelectItem/index.d.ts +1 -1
  278. package/build/esm/SelectItem/index.js.map +1 -1
  279. package/build/esm/SelectionControl/SelectionControlLabel.d.ts +7 -7
  280. package/build/esm/SelectionControl/SelectionControlLabel.js +13 -14
  281. package/build/esm/SelectionControl/SelectionControlLabel.js.map +1 -1
  282. package/build/esm/SelectionControl/SelectionControlText.d.ts +8 -8
  283. package/build/esm/SelectionControl/SelectionControlText.js +20 -20
  284. package/build/esm/SelectionControl/SelectionControlText.js.map +1 -1
  285. package/build/esm/SelectionControl/index.d.ts +2 -2
  286. package/build/esm/SelectionControl/index.js.map +1 -1
  287. package/build/esm/Skeleton/DelayAppearance.d.ts +13 -13
  288. package/build/esm/Skeleton/DelayAppearance.js +18 -20
  289. package/build/esm/Skeleton/DelayAppearance.js.map +1 -1
  290. package/build/esm/Skeleton/Skeleton.d.ts +9 -9
  291. package/build/esm/Skeleton/Skeleton.js +18 -19
  292. package/build/esm/Skeleton/Skeleton.js.map +1 -1
  293. package/build/esm/Skeleton/animation.d.ts +8 -8
  294. package/build/esm/Skeleton/animation.js +11 -11
  295. package/build/esm/Skeleton/animation.js.map +1 -1
  296. package/build/esm/Skeleton/index.d.ts +2 -2
  297. package/build/esm/Skeleton/index.js.map +1 -1
  298. package/build/esm/Slider/Slider.d.ts +17 -17
  299. package/build/esm/Slider/Slider.js +93 -85
  300. package/build/esm/Slider/Slider.js.map +1 -1
  301. package/build/esm/Slider/index.d.ts +1 -1
  302. package/build/esm/Slider/index.js.map +1 -1
  303. package/build/esm/Snackbar/Snackbar.d.ts +10 -8
  304. package/build/esm/Snackbar/Snackbar.js +33 -33
  305. package/build/esm/Snackbar/Snackbar.js.map +1 -1
  306. package/build/esm/Snackbar/Stack.d.ts +31 -31
  307. package/build/esm/Snackbar/Stack.js +74 -106
  308. package/build/esm/Snackbar/Stack.js.map +1 -1
  309. package/build/esm/Snackbar/index.d.ts +3 -3
  310. package/build/esm/Snackbar/index.js.map +1 -1
  311. package/build/esm/Snackbar/useSnackbarAnimation.d.ts +6 -6
  312. package/build/esm/Snackbar/useSnackbarAnimation.js +103 -132
  313. package/build/esm/Snackbar/useSnackbarAnimation.js.map +1 -1
  314. package/build/esm/Switch/Switch.d.ts +13 -13
  315. package/build/esm/Switch/Switch.js +59 -56
  316. package/build/esm/Switch/Switch.js.map +1 -1
  317. package/build/esm/Switch/index.d.ts +1 -1
  318. package/build/esm/Switch/index.js.map +1 -1
  319. package/build/esm/Switch/styledComponents.d.ts +13 -13
  320. package/build/esm/Switch/styledComponents.js +47 -47
  321. package/build/esm/Switch/styledComponents.js.map +1 -1
  322. package/build/esm/Tab/Tab.d.ts +5 -5
  323. package/build/esm/Tab/Tab.js +47 -55
  324. package/build/esm/Tab/Tab.js.map +1 -1
  325. package/build/esm/Tab/TabList.d.ts +9 -10
  326. package/build/esm/Tab/TabList.js +28 -32
  327. package/build/esm/Tab/TabList.js.map +1 -1
  328. package/build/esm/Tab/TabPanel.d.ts +4 -5
  329. package/build/esm/Tab/TabPanel.js +18 -19
  330. package/build/esm/Tab/TabPanel.js.map +1 -1
  331. package/build/esm/Tab/TabPanels.d.ts +4 -4
  332. package/build/esm/Tab/TabPanels.js.map +1 -1
  333. package/build/esm/Tab/Tabs.d.ts +4 -4
  334. package/build/esm/Tab/Tabs.js.map +1 -1
  335. package/build/esm/Tab/context.d.ts +8 -9
  336. package/build/esm/Tab/context.js +8 -7
  337. package/build/esm/Tab/context.js.map +1 -1
  338. package/build/esm/Tab/index.d.ts +5 -5
  339. package/build/esm/Tab/index.js.map +1 -1
  340. package/build/esm/TabIndicator/TabIndicator.d.ts +9 -9
  341. package/build/esm/TabIndicator/TabIndicator.js +69 -86
  342. package/build/esm/TabIndicator/TabIndicator.js.map +1 -1
  343. package/build/esm/TabIndicator/context.d.ts +6 -6
  344. package/build/esm/TabIndicator/context.js +8 -7
  345. package/build/esm/TabIndicator/context.js.map +1 -1
  346. package/build/esm/TabIndicator/index.d.ts +2 -2
  347. package/build/esm/TabIndicator/index.js.map +1 -1
  348. package/build/esm/Table/Table.d.ts +3 -4
  349. package/build/esm/Table/Table.js +13 -14
  350. package/build/esm/Table/Table.js.map +1 -1
  351. package/build/esm/Table/TableBody.d.ts +3 -4
  352. package/build/esm/Table/TableBody.js +9 -11
  353. package/build/esm/Table/TableBody.js.map +1 -1
  354. package/build/esm/Table/TableCell.d.ts +3 -4
  355. package/build/esm/Table/TableCell.js +14 -15
  356. package/build/esm/Table/TableCell.js.map +1 -1
  357. package/build/esm/Table/TableHead.d.ts +3 -4
  358. package/build/esm/Table/TableHead.js +13 -14
  359. package/build/esm/Table/TableHead.js.map +1 -1
  360. package/build/esm/Table/TableRow.d.ts +3 -4
  361. package/build/esm/Table/TableRow.js +13 -14
  362. package/build/esm/Table/TableRow.js.map +1 -1
  363. package/build/esm/Table/context.d.ts +2 -3
  364. package/build/esm/Table/context.js +7 -7
  365. package/build/esm/Table/context.js.map +1 -1
  366. package/build/esm/Table/index.d.ts +5 -5
  367. package/build/esm/Table/index.js.map +1 -1
  368. package/build/esm/Text/LoremIpsum.d.ts +4 -4
  369. package/build/esm/Text/LoremIpsum.js +10 -12
  370. package/build/esm/Text/LoremIpsum.js.map +1 -1
  371. package/build/esm/Text/Text.d.ts +10 -11
  372. package/build/esm/Text/Text.js +15 -19
  373. package/build/esm/Text/Text.js.map +1 -1
  374. package/build/esm/Text/index.d.ts +1 -1
  375. package/build/esm/Text/index.js.map +1 -1
  376. package/build/esm/TextField/FilledContainer.d.ts +18 -18
  377. package/build/esm/TextField/FilledContainer.js +75 -80
  378. package/build/esm/TextField/FilledContainer.js.map +1 -1
  379. package/build/esm/TextField/HelperText.d.ts +10 -10
  380. package/build/esm/TextField/HelperText.js +19 -26
  381. package/build/esm/TextField/HelperText.js.map +1 -1
  382. package/build/esm/TextField/IconContainer.d.ts +5 -5
  383. package/build/esm/TextField/IconContainer.js +21 -9
  384. package/build/esm/TextField/IconContainer.js.map +1 -1
  385. package/build/esm/TextField/Input.d.ts +11 -11
  386. package/build/esm/TextField/Input.js +39 -40
  387. package/build/esm/TextField/Input.js.map +1 -1
  388. package/build/esm/TextField/OutlinedContainer.d.ts +17 -17
  389. package/build/esm/TextField/OutlinedContainer.js +30 -47
  390. package/build/esm/TextField/OutlinedContainer.js.map +1 -1
  391. package/build/esm/TextField/TextField.d.ts +19 -19
  392. package/build/esm/TextField/TextField.js +50 -77
  393. package/build/esm/TextField/TextField.js.map +1 -1
  394. package/build/esm/TextField/consts.d.ts +5 -5
  395. package/build/esm/TextField/consts.js +5 -5
  396. package/build/esm/TextField/consts.js.map +1 -1
  397. package/build/esm/TextField/index.d.ts +4 -4
  398. package/build/esm/TextField/index.js.map +1 -1
  399. package/build/esm/ThemeExplorer/BorderSlider.d.ts +7 -7
  400. package/build/esm/ThemeExplorer/BorderSlider.js +8 -14
  401. package/build/esm/ThemeExplorer/BorderSlider.js.map +1 -1
  402. package/build/esm/ThemeExplorer/ColorPicker.d.ts +8 -8
  403. package/build/esm/ThemeExplorer/ColorPicker.js +19 -24
  404. package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -1
  405. package/build/esm/ThemeExplorer/ColorSchemePicker.d.ts +10 -10
  406. package/build/esm/ThemeExplorer/ColorSchemePicker.js +16 -21
  407. package/build/esm/ThemeExplorer/ColorSchemePicker.js.map +1 -1
  408. package/build/esm/ThemeExplorer/FontAutoComplete.d.ts +9 -9
  409. package/build/esm/ThemeExplorer/FontAutoComplete.js +28 -48
  410. package/build/esm/ThemeExplorer/FontAutoComplete.js.map +1 -1
  411. package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +8 -9
  412. package/build/esm/ThemeExplorer/TextFieldColorPicker.js +29 -60
  413. package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -1
  414. package/build/esm/ThemeExplorer/ThemeBuilder.d.ts +11 -11
  415. package/build/esm/ThemeExplorer/ThemeBuilder.js +155 -184
  416. package/build/esm/ThemeExplorer/ThemeBuilder.js.map +1 -1
  417. package/build/esm/ThemeExplorer/ThemeColors.d.ts +4 -5
  418. package/build/esm/ThemeExplorer/ThemeColors.js +54 -54
  419. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -1
  420. package/build/esm/ThemeExplorer/components.d.ts +31 -31
  421. package/build/esm/ThemeExplorer/components.js +52 -61
  422. package/build/esm/ThemeExplorer/components.js.map +1 -1
  423. package/build/esm/ThemeExplorer/googleFonts.d.ts +1 -1
  424. package/build/esm/ThemeExplorer/googleFonts.js +1 -1
  425. package/build/esm/ThemeExplorer/googleFonts.js.map +1 -1
  426. package/build/esm/ThemeExplorer/index.d.ts +1 -1
  427. package/build/esm/ThemeExplorer/index.js.map +1 -1
  428. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +98 -98
  429. package/build/esm/ThemeExplorer/makeColorScheme.js +0 -1
  430. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
  431. package/build/esm/ThemeExplorer/makeTailwindTheme.d.ts +2 -2
  432. package/build/esm/ThemeExplorer/makeTailwindTheme.js +20 -20
  433. package/build/esm/ThemeExplorer/makeTailwindTheme.js.map +1 -1
  434. package/build/esm/ThemeExplorer/updateGoogleFonts.js +23 -64
  435. package/build/esm/ThemeExplorer/updateGoogleFonts.js.map +1 -1
  436. package/build/esm/ThemeExplorer/useDeferredColor.d.ts +3 -3
  437. package/build/esm/ThemeExplorer/useDeferredColor.js +2 -9
  438. package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
  439. package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -1
  440. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +2 -10
  441. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -1
  442. package/build/esm/Tooltip/Tooltip.d.ts +8 -8
  443. package/build/esm/Tooltip/Tooltip.js +21 -25
  444. package/build/esm/Tooltip/Tooltip.js.map +1 -1
  445. package/build/esm/Tooltip/index.d.ts +1 -1
  446. package/build/esm/Tooltip/index.js.map +1 -1
  447. package/build/esm/color.d.ts +8 -8
  448. package/build/esm/color.js +23 -31
  449. package/build/esm/color.js.map +1 -1
  450. package/build/esm/css.d.ts +1 -1
  451. package/build/esm/css.js.map +1 -1
  452. package/build/esm/hooks/useAnimation.d.ts +20 -20
  453. package/build/esm/hooks/useAnimation.js +42 -53
  454. package/build/esm/hooks/useAnimation.js.map +1 -1
  455. package/build/esm/index.d.ts +42 -42
  456. package/build/esm/index.js.map +1 -1
  457. package/build/esm/motion.d.ts +7 -7
  458. package/build/esm/motion.js +7 -7
  459. package/build/esm/motion.js.map +1 -1
  460. package/build/esm/tailwind/extendColors.d.ts +5 -5
  461. package/build/esm/tailwind/extendColors.js +17 -29
  462. package/build/esm/tailwind/extendColors.js.map +1 -1
  463. package/build/esm/tailwind/index.d.ts +8 -8
  464. package/build/esm/tailwind/index.js +17 -29
  465. package/build/esm/tailwind/index.js.map +1 -1
  466. package/build/esm/theme/index.d.ts +2 -2
  467. package/build/esm/theme/index.js.map +1 -1
  468. package/build/esm/theme/theme.d.ts +590 -562
  469. package/build/esm/theme/theme.js +49 -22
  470. package/build/esm/theme/theme.js.map +1 -1
  471. package/build/esm/theme/typography-raleway.d.ts +112 -112
  472. package/build/esm/theme/typography-raleway.js +1 -1
  473. package/build/esm/theme/typography-raleway.js.map +1 -1
  474. package/build/esm/theme/typography-roboto.d.ts +111 -111
  475. package/build/esm/theme/typography-roboto.js +1 -1
  476. package/build/esm/theme/typography-roboto.js.map +1 -1
  477. package/build/esm/theme/useTheme.d.ts +594 -566
  478. package/build/esm/theme/useTheme.js +1 -3
  479. package/build/esm/theme/useTheme.js.map +1 -1
  480. package/build/tsconfig-build.tsbuildinfo +1 -1
  481. package/package.json +12 -11
  482. package/src/Alert/index.ts +1 -1
  483. package/src/AppBar/AppBar.story.tsx +69 -69
  484. package/src/AppBar/AppBar.tsx +85 -85
  485. package/src/AppBar/AppBarButton.tsx +25 -25
  486. package/src/AppBar/context.ts +13 -13
  487. package/src/AppBar/index.ts +3 -3
  488. package/src/Badge/Badge.story.tsx +68 -68
  489. package/src/Badge/Badge.tsx +47 -47
  490. package/src/Badge/index.ts +1 -1
  491. package/src/BaseLine/BaseLine.tsx +100 -100
  492. package/src/BaseLine/index.ts +1 -1
  493. package/src/BottomSheet/BottomSheet.story.tsx +35 -35
  494. package/src/BottomSheet/BottomSheet.tsx +39 -39
  495. package/src/BottomSheet/BottomSheetSurface.tsx +49 -49
  496. package/src/BottomSheet/index.ts +1 -1
  497. package/src/Box/Box.tsx +133 -127
  498. package/src/Box/index.ts +1 -1
  499. package/src/Button/BaseButton.tsx +123 -18
  500. package/src/Button/Button.story.tsx +236 -72
  501. package/src/Button/Button.tsx +44 -15
  502. package/src/Button/ButtonGroup.story.tsx +263 -101
  503. package/src/Button/ButtonGroup.tsx +103 -7
  504. package/src/Button/FilledButton.tsx +2 -43
  505. package/src/Button/FloatingActionButton.tsx +14 -9
  506. package/src/Button/IconFilledButton.tsx +3 -0
  507. package/src/Button/IconOutlinedButton.tsx +3 -0
  508. package/src/Button/OutlinedButton.tsx +2 -41
  509. package/src/Button/SpinnerButton.story.tsx +91 -91
  510. package/src/Button/SplitButton.story.tsx +110 -0
  511. package/src/Button/SplitButton.tsx +40 -0
  512. package/src/Button/TransparentButton.tsx +1 -43
  513. package/src/Button/context.tsx +19 -17
  514. package/src/Button/index.ts +3 -2
  515. package/src/CheckBox/CheckBox.story.tsx +155 -155
  516. package/src/CheckBox/CheckBox.tsx +170 -170
  517. package/src/CheckBox/CheckBoxIcon.tsx +63 -64
  518. package/src/CheckBox/CheckPath.tsx +18 -18
  519. package/src/CheckBox/IndeterminatePath.tsx +16 -16
  520. package/src/CheckBox/index.ts +1 -1
  521. package/src/Chip/ButtonChip.tsx +86 -86
  522. package/src/Chip/Chip.story.tsx +242 -242
  523. package/src/Chip/Chip.tsx +5 -5
  524. package/src/Chip/ChipBase.tsx +141 -141
  525. package/src/Chip/ChoiceChip.tsx +127 -127
  526. package/src/Chip/index.ts +2 -2
  527. package/src/Combobox/Combobox.tsx +274 -274
  528. package/src/Combobox/index.ts +1 -1
  529. package/src/Dialog/Dialog.story.tsx +53 -53
  530. package/src/Dialog/Dialog.tsx +73 -73
  531. package/src/Dialog/DialogBackdrop.tsx +42 -42
  532. package/src/Dialog/DialogContainer.tsx +31 -31
  533. package/src/Dialog/DialogSurface.tsx +55 -55
  534. package/src/Dialog/Scrim.tsx +35 -35
  535. package/src/Dialog/index.ts +2 -2
  536. package/src/Dialog/useDialogAnimation.tsx +59 -49
  537. package/src/Divider/Divider.story.tsx +39 -39
  538. package/src/Divider/Divider.tsx +48 -48
  539. package/src/Divider/index.ts +1 -1
  540. package/src/FloatingLabel/FloatingLabel.story.tsx +55 -55
  541. package/src/FloatingLabel/FloatingLabel.tsx +77 -77
  542. package/src/FloatingLabel/index.ts +1 -1
  543. package/src/LineRipple/LineRipple.story.tsx +43 -43
  544. package/src/LineRipple/LineRipple.tsx +81 -81
  545. package/src/LineRipple/index.ts +1 -1
  546. package/src/Link/Link.story.tsx +14 -14
  547. package/src/Link/Link.tsx +65 -65
  548. package/src/Link/index.ts +1 -1
  549. package/src/List/List.tsx +46 -46
  550. package/src/List/index.ts +1 -1
  551. package/src/ListItem/ListItem.story.tsx +43 -43
  552. package/src/ListItem/ListItem.tsx +104 -104
  553. package/src/ListItem/ListItemText.tsx +35 -35
  554. package/src/ListItem/index.ts +2 -2
  555. package/src/Menu/ContextMenu.story.tsx +34 -34
  556. package/src/Menu/Menu.story.tsx +54 -54
  557. package/src/Menu/Menu.tsx +124 -124
  558. package/src/Menu/animation.ts +16 -16
  559. package/src/Menu/index.ts +2 -2
  560. package/src/NavRail/NavRail.story.tsx +146 -146
  561. package/src/NavRail/NavRailItem.tsx +176 -175
  562. package/src/NavRail/icons/test-icons.tsx +46 -46
  563. package/src/NavRail/index.ts +1 -1
  564. package/src/NotchedOutline/NotchedOutline.story.tsx +99 -99
  565. package/src/NotchedOutline/NotchedOutline.tsx +80 -80
  566. package/src/NotchedOutline/context.ts +12 -12
  567. package/src/NotchedOutline/index.ts +1 -1
  568. package/src/NotchedOutline/styledComponents.ts +122 -122
  569. package/src/Paper/Paper.story.tsx +50 -50
  570. package/src/Paper/Paper.tsx +67 -67
  571. package/src/Paper/index.ts +1 -1
  572. package/src/Popover/PopoverSurface.tsx +51 -51
  573. package/src/Popover/index.ts +1 -1
  574. package/src/ProgressSpinner/ProgressSpinner.story.tsx +35 -35
  575. package/src/ProgressSpinner/ProgressSpinner.tsx +119 -119
  576. package/src/ProgressSpinner/index.ts +1 -1
  577. package/src/RadioButton/RadioButton.story.tsx +109 -109
  578. package/src/RadioButton/RadioButton.tsx +112 -112
  579. package/src/RadioButton/RadioButtonIcon.tsx +44 -44
  580. package/src/RadioButton/RadioGroup.tsx +26 -27
  581. package/src/RadioButton/index.ts +2 -2
  582. package/src/Ripple/Ripple.story.tsx +78 -78
  583. package/src/Ripple/Ripple.tsx +33 -33
  584. package/src/Ripple/RippleBox.tsx +52 -52
  585. package/src/Ripple/constants.ts +15 -15
  586. package/src/Ripple/index.ts +5 -5
  587. package/src/Ripple/keyframes.ts +36 -36
  588. package/src/Ripple/useRipple.ts +209 -209
  589. package/src/Ripple/useRippleHandlers.ts +54 -54
  590. package/src/Ripple/useRippleSurface.ts +162 -155
  591. package/src/SearchBar/SearchBar.tsx +5 -6
  592. package/src/Select/CustomContainerExample.tsx +59 -59
  593. package/src/Select/PaymentMethodSelect.story.tsx +320 -316
  594. package/src/Select/Select.story.tsx +225 -225
  595. package/src/Select/Select.tsx +284 -283
  596. package/src/Select/SelectIcon.tsx +43 -43
  597. package/src/Select/SelectMultiple.story.tsx +214 -215
  598. package/src/Select/context.ts +22 -22
  599. package/src/Select/defaultRender.tsx +60 -49
  600. package/src/Select/index.ts +1 -1
  601. package/src/Select/styledComponents.tsx +38 -38
  602. package/src/SelectItem/SelectItem.tsx +92 -92
  603. package/src/SelectItem/index.ts +1 -1
  604. package/src/SelectionControl/SelectionControlLabel.tsx +34 -34
  605. package/src/SelectionControl/SelectionControlText.tsx +37 -37
  606. package/src/SelectionControl/index.ts +2 -2
  607. package/src/Skeleton/DelayAppearance.tsx +41 -41
  608. package/src/Skeleton/Skeleton.story.tsx +57 -57
  609. package/src/Skeleton/Skeleton.tsx +40 -40
  610. package/src/Skeleton/animation.ts +54 -54
  611. package/src/Skeleton/index.ts +2 -2
  612. package/src/Slider/Slider.story.tsx +36 -36
  613. package/src/Slider/Slider.tsx +275 -275
  614. package/src/Slider/index.ts +1 -1
  615. package/src/Snackbar/Snackbar.story.tsx +99 -99
  616. package/src/Snackbar/Snackbar.tsx +19 -16
  617. package/src/Switch/Switch.story.tsx +97 -98
  618. package/src/Switch/Switch.tsx +170 -170
  619. package/src/Switch/index.ts +1 -1
  620. package/src/Switch/styledComponents.tsx +117 -117
  621. package/src/Tab/Tab.story.tsx +209 -209
  622. package/src/Tab/Tab.tsx +120 -120
  623. package/src/Tab/TabList.tsx +61 -61
  624. package/src/Tab/TabPanel.tsx +31 -31
  625. package/src/Tab/TabPanels.tsx +5 -5
  626. package/src/Tab/Tabs.tsx +5 -5
  627. package/src/Tab/context.ts +17 -17
  628. package/src/Tab/index.ts +5 -5
  629. package/src/TabIndicator/TabIndicator.tsx +146 -146
  630. package/src/TabIndicator/context.ts +13 -13
  631. package/src/TabIndicator/index.ts +2 -2
  632. package/src/Table/context.ts +6 -6
  633. package/src/Text/LoremIpsum.tsx +18 -18
  634. package/src/Text/Text.story.tsx +79 -75
  635. package/src/Text/Text.tsx +84 -84
  636. package/src/Text/index.ts +1 -1
  637. package/src/TextField/FilledContainer.tsx +173 -173
  638. package/src/TextField/HelperText.tsx +63 -63
  639. package/src/TextField/OutlinedContainer.tsx +116 -116
  640. package/src/TextField/consts.ts +7 -7
  641. package/src/TextField/index.ts +4 -4
  642. package/src/ThemeExplorer/BorderSlider.tsx +73 -73
  643. package/src/ThemeExplorer/ColorPicker.tsx +104 -104
  644. package/src/ThemeExplorer/ColorSchemePicker.tsx +55 -55
  645. package/src/ThemeExplorer/FontAutoComplete.tsx +139 -139
  646. package/src/ThemeExplorer/TextFieldColorPicker.tsx +112 -115
  647. package/src/ThemeExplorer/ThemeBuilder.story.tsx +8 -8
  648. package/src/ThemeExplorer/ThemeBuilder.tsx +437 -353
  649. package/src/ThemeExplorer/ThemeColors.tsx +122 -118
  650. package/src/ThemeExplorer/components.tsx +195 -195
  651. package/src/ThemeExplorer/googleFonts.ts +1436 -1436
  652. package/src/ThemeExplorer/index.ts +1 -1
  653. package/src/ThemeExplorer/makeColorScheme.tsx +111 -111
  654. package/src/ThemeExplorer/makeTailwindTheme.ts +44 -44
  655. package/src/ThemeExplorer/updateGoogleFonts.js +32 -33
  656. package/src/ThemeExplorer/useDeferredColor.tsx +21 -21
  657. package/src/ThemeExplorer/useLocalStorageCachedState.ts +18 -18
  658. package/src/Tooltip/Tooltip.story.tsx +35 -35
  659. package/src/Tooltip/Tooltip.tsx +67 -67
  660. package/src/Tooltip/index.ts +1 -1
  661. package/src/css.ts +2 -2
  662. package/src/hooks/useAnimation.ts +111 -111
  663. package/src/motion.ts +7 -7
  664. package/src/tailwind/extendColors.ts +51 -51
  665. package/src/tailwind/index.ts +57 -56
  666. package/src/tailwind/tests/extendColors.test.ts +123 -123
  667. package/src/theme/index.ts +2 -2
  668. package/src/theme/theme.ts +36 -8
  669. package/src/theme/typography-raleway.ts +114 -114
  670. package/src/theme/typography-roboto.ts +113 -113
  671. package/src/theme/useTheme.ts +17 -18
  672. package/tailwind/package.json +5 -5
  673. package/theme-explorer/package.json +5 -5
@@ -1,49 +1,45 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
3
- var _excluded = ["placement", "children", "label", "__css"];
4
1
  import { Tooltip as _BaseTooltip, Popper } from '@basic-ui/core';
5
2
  import { forwardRef } from 'react';
6
3
  import { Box } from '../Box';
7
4
  import { alpha } from '../color';
8
5
  import { jsx as _jsx } from "react/jsx-runtime";
9
- var BaseTooltip = _BaseTooltip;
10
- export var Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, forwardedRef) {
11
- var _props$placement = props.placement,
12
- placement = _props$placement === void 0 ? 'bottom' : _props$placement,
13
- children = props.children,
14
- label = props.label,
15
- __css = props.__css,
16
- otherProps = _objectWithoutProperties(props, _excluded);
17
-
18
- var cssStyle = _extends({
6
+ const BaseTooltip = _BaseTooltip;
7
+ export const Tooltip = /*#__PURE__*/forwardRef(function Tooltip(props, forwardedRef) {
8
+ const {
9
+ placement = 'bottom',
10
+ children,
11
+ label,
12
+ __css,
13
+ ...otherProps
14
+ } = props;
15
+ const cssStyle = {
19
16
  variant: ['text.body-medium', 'text.body-small'],
20
17
  bg: alpha('#616161', 0.9),
21
18
  color: '#fff',
22
19
  px: 2,
23
20
  py: 1,
24
21
  borderRadius: 'extra-small',
25
- zIndex: 'tooltip'
26
- }, __css);
27
-
22
+ zIndex: 'tooltip',
23
+ ...__css
24
+ };
28
25
  if (!children) {
29
- return /*#__PURE__*/_jsx(Box, _extends(_extends({
26
+ return /*#__PURE__*/_jsx(Box, {
30
27
  ref: forwardedRef,
31
- __css: cssStyle
32
- }, otherProps), {}, {
28
+ __css: cssStyle,
29
+ ...otherProps,
33
30
  children: label
34
- }));
31
+ });
35
32
  }
36
-
37
- return /*#__PURE__*/_jsx(BaseTooltip, _extends(_extends({
33
+ return /*#__PURE__*/_jsx(BaseTooltip, {
38
34
  as: Popper,
39
35
  innerAs: Box,
40
36
  ref: forwardedRef,
41
37
  placement: placement,
42
38
  distance: 8,
43
39
  label: label,
44
- __css: cssStyle
45
- }, otherProps), {}, {
40
+ __css: cssStyle,
41
+ ...otherProps,
46
42
  children: children
47
- }));
43
+ });
48
44
  });
49
45
  //# sourceMappingURL=Tooltip.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.js","names":["Tooltip","_BaseTooltip","Popper","forwardRef","Box","alpha","BaseTooltip","props","forwardedRef","placement","children","label","__css","otherProps","cssStyle","variant","bg","color","px","py","borderRadius","zIndex"],"sources":["../../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { PopperProps } from '@basic-ui/core';\r\nimport { Tooltip as _BaseTooltip, Popper } from '@basic-ui/core';\r\nimport type { ElementType, FC, ReactNode } from 'react';\r\nimport { forwardRef } from 'react';\r\n\r\nimport type { BoxProps } from '../Box';\r\nimport { Box } from '../Box';\r\nimport { alpha } from '../color';\r\n\r\nexport interface TooltipProps\r\n extends BoxProps,\r\n Omit<PopperProps, 'color' | 'anchorEl'> {\r\n label: ReactNode;\r\n disabled?: boolean;\r\n}\r\n\r\nconst BaseTooltip: FC<\r\n BoxProps & {\r\n innerAs?: ElementType<any>;\r\n label: ReactNode;\r\n } & Omit<PopperProps, 'color' | 'anchorEl'>\r\n> = _BaseTooltip as any;\r\n\r\nexport const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(\r\n function Tooltip(props, forwardedRef) {\r\n const {\r\n placement = 'bottom',\r\n children,\r\n label,\r\n __css,\r\n ...otherProps\r\n } = props;\r\n const cssStyle = {\r\n variant: ['text.body-medium', 'text.body-small'],\r\n bg: alpha('#616161', 0.9),\r\n color: '#fff',\r\n px: 2,\r\n py: 1,\r\n borderRadius: 'extra-small',\r\n zIndex: 'tooltip',\r\n ...__css,\r\n };\r\n\r\n if (!children) {\r\n return (\r\n <Box ref={forwardedRef} __css={cssStyle} {...otherProps}>\r\n {label}\r\n </Box>\r\n );\r\n }\r\n\r\n return (\r\n <BaseTooltip\r\n as={Popper}\r\n innerAs={Box}\r\n ref={forwardedRef}\r\n placement={placement}\r\n distance={8}\r\n label={label}\r\n __css={cssStyle}\r\n {...otherProps}\r\n >\r\n {children}\r\n </BaseTooltip>\r\n );\r\n }\r\n);\r\n"],"mappings":";;;AACA,SAASA,OAAO,IAAIC,YAApB,EAAkCC,MAAlC,QAAgD,gBAAhD;AAEA,SAASC,UAAT,QAA2B,OAA3B;AAGA,SAASC,GAAT,QAAoB,QAApB;AACA,SAASC,KAAT,QAAsB,UAAtB;;AASA,IAAMC,WAKL,GAAGL,YALJ;AAOA,OAAO,IAAMD,OAAO,gBAAGG,UAAU,CAC/B,SAASH,OAAT,CAAiBO,KAAjB,EAAwBC,YAAxB,EAAsC;EACpC,uBAMID,KANJ,CACEE,SADF;EAAA,IACEA,SADF,iCACc,QADd;EAAA,IAEEC,QAFF,GAMIH,KANJ,CAEEG,QAFF;EAAA,IAGEC,KAHF,GAMIJ,KANJ,CAGEI,KAHF;EAAA,IAIEC,KAJF,GAMIL,KANJ,CAIEK,KAJF;EAAA,IAKKC,UALL,4BAMIN,KANJ;;EAOA,IAAMO,QAAQ;IACZC,OAAO,EAAE,CAAC,kBAAD,EAAqB,iBAArB,CADG;IAEZC,EAAE,EAAEX,KAAK,CAAC,SAAD,EAAY,GAAZ,CAFG;IAGZY,KAAK,EAAE,MAHK;IAIZC,EAAE,EAAE,CAJQ;IAKZC,EAAE,EAAE,CALQ;IAMZC,YAAY,EAAE,aANF;IAOZC,MAAM,EAAE;EAPI,GAQTT,KARS,CAAd;;EAWA,IAAI,CAACF,QAAL,EAAe;IACb,oBACE,KAAC,GAAD;MAAK,GAAG,EAAEF,YAAV;MAAwB,KAAK,EAAEM;IAA/B,GAA6CD,UAA7C;MAAA,UACGF;IADH,GADF;EAKD;;EAED,oBACE,KAAC,WAAD;IACE,EAAE,EAAET,MADN;IAEE,OAAO,EAAEE,GAFX;IAGE,GAAG,EAAEI,YAHP;IAIE,SAAS,EAAEC,SAJb;IAKE,QAAQ,EAAE,CALZ;IAME,KAAK,EAAEE,KANT;IAOE,KAAK,EAAEG;EAPT,GAQMD,UARN;IAAA,UAUGH;EAVH,GADF;AAcD,CA1C8B,CAA1B"}
1
+ {"version":3,"file":"Tooltip.js","names":["Tooltip","_BaseTooltip","Popper","forwardRef","Box","alpha","jsx","_jsx","BaseTooltip","props","forwardedRef","placement","children","label","__css","otherProps","cssStyle","variant","bg","color","px","py","borderRadius","zIndex","ref","as","innerAs","distance"],"sources":["../../../src/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { PopperProps } from '@basic-ui/core';\nimport { Tooltip as _BaseTooltip, Popper } from '@basic-ui/core';\nimport type { ElementType, FC, ReactNode } from 'react';\nimport { forwardRef } from 'react';\n\nimport type { BoxProps } from '../Box';\nimport { Box } from '../Box';\nimport { alpha } from '../color';\n\nexport interface TooltipProps\n extends BoxProps,\n Omit<PopperProps, 'color' | 'anchorEl'> {\n label: ReactNode;\n disabled?: boolean;\n}\n\nconst BaseTooltip: FC<\n BoxProps & {\n innerAs?: ElementType<any>;\n label: ReactNode;\n } & Omit<PopperProps, 'color' | 'anchorEl'>\n> = _BaseTooltip as any;\n\nexport const Tooltip = forwardRef<HTMLDivElement, TooltipProps>(\n function Tooltip(props, forwardedRef) {\n const {\n placement = 'bottom',\n children,\n label,\n __css,\n ...otherProps\n } = props;\n const cssStyle = {\n variant: ['text.body-medium', 'text.body-small'],\n bg: alpha('#616161', 0.9),\n color: '#fff',\n px: 2,\n py: 1,\n borderRadius: 'extra-small',\n zIndex: 'tooltip',\n ...__css,\n };\n\n if (!children) {\n return (\n <Box ref={forwardedRef} __css={cssStyle} {...otherProps}>\n {label}\n </Box>\n );\n }\n\n return (\n <BaseTooltip\n as={Popper}\n innerAs={Box}\n ref={forwardedRef}\n placement={placement}\n distance={8}\n label={label}\n __css={cssStyle}\n {...otherProps}\n >\n {children}\n </BaseTooltip>\n );\n }\n);\n"],"mappings":"AACA,SAASA,OAAO,IAAIC,YAAY,EAAEC,MAAM,QAAQ,gBAAgB;AAEhE,SAASC,UAAU,QAAQ,OAAO;AAGlC,SAASC,GAAG,QAAQ,QAAQ;AAC5B,SAASC,KAAK,QAAQ,UAAU;AAAC,SAAAC,GAAA,IAAAC,IAAA;AASjC,MAAMC,WAKL,GAAGP,YAAmB;AAEvB,OAAO,MAAMD,OAAO,gBAAGG,UAAU,CAC/B,SAASH,OAAOA,CAACS,KAAK,EAAEC,YAAY,EAAE;EACpC,MAAM;IACJC,SAAS,GAAG,QAAQ;IACpBC,QAAQ;IACRC,KAAK;IACLC,KAAK;IACL,GAAGC;EACL,CAAC,GAAGN,KAAK;EACT,MAAMO,QAAQ,GAAG;IACfC,OAAO,EAAE,CAAC,kBAAkB,EAAE,iBAAiB,CAAC;IAChDC,EAAE,EAAEb,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC;IACzBc,KAAK,EAAE,MAAM;IACbC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,CAAC;IACLC,YAAY,EAAE,aAAa;IAC3BC,MAAM,EAAE,SAAS;IACjB,GAAGT;EACL,CAAC;EAED,IAAI,CAACF,QAAQ,EAAE;IACb,oBACEL,IAAA,CAACH,GAAG;MAACoB,GAAG,EAAEd,YAAa;MAACI,KAAK,EAAEE,QAAS;MAAA,GAAKD,UAAU;MAAAH,QAAA,EACpDC;IAAK,CACH,CAAC;EAEV;EAEA,oBACEN,IAAA,CAACC,WAAW;IACViB,EAAE,EAAEvB,MAAO;IACXwB,OAAO,EAAEtB,GAAI;IACboB,GAAG,EAAEd,YAAa;IAClBC,SAAS,EAAEA,SAAU;IACrBgB,QAAQ,EAAE,CAAE;IACZd,KAAK,EAAEA,KAAM;IACbC,KAAK,EAAEE,QAAS;IAAA,GACZD,UAAU;IAAAH,QAAA,EAEbA;EAAQ,CACE,CAAC;AAElB,CACF,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- export * from './Tooltip';
1
+ export * from './Tooltip';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../../src/Tooltip/index.ts"],"sourcesContent":["export * from './Tooltip';\r\n"],"mappings":"AAAA,cAAc,WAAd"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../src/Tooltip/index.ts"],"sourcesContent":["export * from './Tooltip';\n"],"mappings":"AAAA,cAAc,WAAW","ignoreList":[]}
@@ -1,8 +1,8 @@
1
- import type { SystemStyleObject } from '@styled-system/css';
2
- import type { Theme } from './theme';
3
- export declare const alpha: (colorString: string, alphaValue: number) => (theme: any) => any;
4
- export declare function mixColor(baseColor: string, overlayColor: string): (theme: any) => string;
5
- export declare function mixColor(baseColor: string, overlayColor: string, overlayOpacity: number): (theme: any) => string;
6
- export declare function getColorOverlay(theme: Theme, baseColor: string, overlayColor: string, overlayOpacity: number): SystemStyleObject;
7
- export declare function getBackgroundOverlay(theme: Theme, backgroundOverlay: number | string, overlayColor?: string): SystemStyleObject;
8
- export declare function getDarkThemeBackgroundOverlay(theme: Theme, backgroundOverlay: number | string, overlayColor?: string): SystemStyleObject;
1
+ import type { SystemStyleObject } from '@styled-system/css';
2
+ import type { Theme } from './theme';
3
+ export declare const alpha: (colorString: string, alphaValue: number) => (theme: any) => any;
4
+ export declare function mixColor(baseColor: string, overlayColor: string): (theme: any) => string;
5
+ export declare function mixColor(baseColor: string, overlayColor: string, overlayOpacity: number): (theme: any) => string;
6
+ export declare function getColorOverlay(theme: Theme, baseColor: string, overlayColor: string, overlayOpacity: number): SystemStyleObject;
7
+ export declare function getBackgroundOverlay(theme: Theme, backgroundOverlay: number | string, overlayColor?: string): SystemStyleObject;
8
+ export declare function getDarkThemeBackgroundOverlay(theme: Theme, backgroundOverlay: number | string, overlayColor?: string): SystemStyleObject;
@@ -1,31 +1,23 @@
1
- import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- import _extends from "@babel/runtime/helpers/extends";
3
1
  import { get } from '@styled-system/css';
4
2
  import { parseToRgb } from 'polished';
5
3
  import { DARK_SCHEME_CLASS } from '@basic-ui/dynamic-theme';
6
- export var alpha = function alpha(colorString, alphaValue) {
7
- return function (theme) {
8
- var color = get(theme, 'colors.' + colorString, colorString);
9
-
10
- if (color.startsWith('var')) {
11
- var _color = get(theme, 'colors.' + colorString + '_rgb', colorString);
12
-
13
- return "rgba(".concat(_color, ",").concat(alphaValue, ")");
14
- }
15
-
16
- if (color.startsWith('rgba(')) {
17
- return color;
18
- }
19
-
20
- var rgb = parseToRgb(color);
21
- return "rgba(".concat(rgb.red, ",").concat(rgb.green, ",").concat(rgb.blue, ",").concat(alphaValue, ")");
22
- };
4
+ export const alpha = (colorString, alphaValue) => theme => {
5
+ const color = get(theme, 'colors.' + colorString, colorString);
6
+ if (color.startsWith('var')) {
7
+ const color = get(theme, 'colors.' + colorString + '_rgb', colorString);
8
+ return `rgba(${color},${alphaValue})`;
9
+ }
10
+ if (color.startsWith('rgba(')) {
11
+ return color;
12
+ }
13
+ const rgb = parseToRgb(color);
14
+ return `rgba(${rgb.red},${rgb.green},${rgb.blue},${alphaValue})`;
23
15
  };
24
16
  export function mixColor(baseColor, overlayColor, overlayOpacity) {
25
- return function (theme) {
26
- baseColor = get(theme, "colors.".concat(baseColor), baseColor);
27
- overlayColor = overlayOpacity ? alpha(overlayColor, overlayOpacity)(theme) : get(theme, "colors.".concat(overlayColor), overlayColor);
28
- return "linear-gradient(".concat(overlayColor, ", ").concat(overlayColor, "), ").concat(baseColor);
17
+ return theme => {
18
+ baseColor = get(theme, `colors.${baseColor}`, baseColor);
19
+ overlayColor = overlayOpacity ? alpha(overlayColor, overlayOpacity)(theme) : get(theme, `colors.${overlayColor}`, overlayColor);
20
+ return `linear-gradient(${overlayColor}, ${overlayColor}), ${baseColor}`;
29
21
  };
30
22
  }
31
23
  export function getColorOverlay(theme, baseColor, overlayColor, overlayOpacity) {
@@ -34,22 +26,22 @@ export function getColorOverlay(theme, baseColor, overlayColor, overlayOpacity)
34
26
  };
35
27
  }
36
28
  export function getBackgroundOverlay(theme, backgroundOverlay) {
37
- var overlayColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'on.surface';
38
-
29
+ let overlayColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'on.surface';
39
30
  if (Number(backgroundOverlay) <= 0) {
40
31
  return {};
41
32
  }
42
-
43
- var overlay = get(theme, "paper.overlays.".concat(backgroundOverlay)) || 0;
33
+ const overlay = get(theme, `paper.overlays.${backgroundOverlay}`) || 0;
44
34
  return getColorOverlay(theme, 'surface', overlayColor, overlay);
45
35
  }
46
36
  export function getDarkThemeBackgroundOverlay(theme, backgroundOverlay) {
47
- var overlayColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'on.surface';
48
-
37
+ let overlayColor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'on.surface';
49
38
  if (Number(backgroundOverlay) <= 0) {
50
39
  return {};
51
40
  }
52
-
53
- return _defineProperty({}, ".".concat(DARK_SCHEME_CLASS, " &, &.").concat(DARK_SCHEME_CLASS), _extends({}, getBackgroundOverlay(theme, backgroundOverlay, overlayColor)));
41
+ return {
42
+ [`.${DARK_SCHEME_CLASS} &, &.${DARK_SCHEME_CLASS}`]: {
43
+ ...getBackgroundOverlay(theme, backgroundOverlay, overlayColor)
44
+ }
45
+ };
54
46
  }
55
47
  //# sourceMappingURL=color.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.js","names":["get","parseToRgb","DARK_SCHEME_CLASS","alpha","colorString","alphaValue","theme","color","startsWith","rgb","red","green","blue","mixColor","baseColor","overlayColor","overlayOpacity","getColorOverlay","background","getBackgroundOverlay","backgroundOverlay","Number","overlay","getDarkThemeBackgroundOverlay"],"sources":["../../src/color.ts"],"sourcesContent":["import type { SystemStyleObject } from '@styled-system/css';\nimport { get } from '@styled-system/css';\nimport { parseToRgb } from 'polished';\nimport { DARK_SCHEME_CLASS } from '@basic-ui/dynamic-theme';\n\nimport type { Theme } from './theme';\n\nexport const alpha =\n (colorString: string, alphaValue: number) => (theme: any) => {\n const color = get(theme, 'colors.' + colorString, colorString);\n if (color.startsWith('var')) {\n const color = get(theme, 'colors.' + colorString + '_rgb', colorString);\n return `rgba(${color},${alphaValue})`;\n }\n if (color.startsWith('rgba(')) {\n return color;\n }\n\n const rgb = parseToRgb(color);\n return `rgba(${rgb.red},${rgb.green},${rgb.blue},${alphaValue})`;\n };\n\nexport function mixColor(\n baseColor: string,\n overlayColor: string\n): (theme: any) => string;\nexport function mixColor(\n baseColor: string,\n overlayColor: string,\n overlayOpacity: number\n): (theme: any) => string;\nexport function mixColor(\n baseColor: string,\n overlayColor: string,\n overlayOpacity?: number\n): (theme: any) => string {\n return (theme) => {\n baseColor = get(theme, `colors.${baseColor}`, baseColor);\n overlayColor = overlayOpacity\n ? alpha(overlayColor, overlayOpacity)(theme)\n : get(theme, `colors.${overlayColor}`, overlayColor);\n\n return `linear-gradient(${overlayColor}, ${overlayColor}), ${baseColor}`;\n };\n}\n\nexport function getColorOverlay(\n theme: Theme,\n baseColor: string,\n overlayColor: string,\n overlayOpacity: number\n): SystemStyleObject {\n return {\n background: mixColor(baseColor, overlayColor, overlayOpacity)(theme),\n };\n}\n\nexport function getBackgroundOverlay(\n theme: Theme,\n backgroundOverlay: number | string,\n overlayColor = 'on.surface'\n): SystemStyleObject {\n if (Number(backgroundOverlay) <= 0) {\n return {};\n }\n const overlay = get(theme, `paper.overlays.${backgroundOverlay}`) || 0;\n return getColorOverlay(theme, 'surface', overlayColor, overlay);\n}\n\nexport function getDarkThemeBackgroundOverlay(\n theme: Theme,\n backgroundOverlay: number | string,\n overlayColor = 'on.surface'\n): SystemStyleObject {\n if (Number(backgroundOverlay) <= 0) {\n return {};\n }\n\n return {\n [`.${DARK_SCHEME_CLASS} &, &.${DARK_SCHEME_CLASS}`]: {\n ...getBackgroundOverlay(theme, backgroundOverlay, overlayColor),\n },\n };\n}\n"],"mappings":";;AACA,SAASA,GAAT,QAAoB,oBAApB;AACA,SAASC,UAAT,QAA2B,UAA3B;AACA,SAASC,iBAAT,QAAkC,yBAAlC;AAIA,OAAO,IAAMC,KAAK,GAChB,SADWA,KACX,CAACC,WAAD,EAAsBC,UAAtB;EAAA,OAA6C,UAACC,KAAD,EAAgB;IAC3D,IAAMC,KAAK,GAAGP,GAAG,CAACM,KAAD,EAAQ,YAAYF,WAApB,EAAiCA,WAAjC,CAAjB;;IACA,IAAIG,KAAK,CAACC,UAAN,CAAiB,KAAjB,CAAJ,EAA6B;MAC3B,IAAMD,MAAK,GAAGP,GAAG,CAACM,KAAD,EAAQ,YAAYF,WAAZ,GAA0B,MAAlC,EAA0CA,WAA1C,CAAjB;;MACA,sBAAeG,MAAf,cAAwBF,UAAxB;IACD;;IACD,IAAIE,KAAK,CAACC,UAAN,CAAiB,OAAjB,CAAJ,EAA+B;MAC7B,OAAOD,KAAP;IACD;;IAED,IAAME,GAAG,GAAGR,UAAU,CAACM,KAAD,CAAtB;IACA,sBAAeE,GAAG,CAACC,GAAnB,cAA0BD,GAAG,CAACE,KAA9B,cAAuCF,GAAG,CAACG,IAA3C,cAAmDP,UAAnD;EACD,CAZD;AAAA,CADK;AAwBP,OAAO,SAASQ,QAAT,CACLC,SADK,EAELC,YAFK,EAGLC,cAHK,EAImB;EACxB,OAAO,UAACV,KAAD,EAAW;IAChBQ,SAAS,GAAGd,GAAG,CAACM,KAAD,mBAAkBQ,SAAlB,GAA+BA,SAA/B,CAAf;IACAC,YAAY,GAAGC,cAAc,GACzBb,KAAK,CAACY,YAAD,EAAeC,cAAf,CAAL,CAAoCV,KAApC,CADyB,GAEzBN,GAAG,CAACM,KAAD,mBAAkBS,YAAlB,GAAkCA,YAAlC,CAFP;IAIA,iCAA0BA,YAA1B,eAA2CA,YAA3C,gBAA6DD,SAA7D;EACD,CAPD;AAQD;AAED,OAAO,SAASG,eAAT,CACLX,KADK,EAELQ,SAFK,EAGLC,YAHK,EAILC,cAJK,EAKc;EACnB,OAAO;IACLE,UAAU,EAAEL,QAAQ,CAACC,SAAD,EAAYC,YAAZ,EAA0BC,cAA1B,CAAR,CAAkDV,KAAlD;EADP,CAAP;AAGD;AAED,OAAO,SAASa,oBAAT,CACLb,KADK,EAELc,iBAFK,EAIc;EAAA,IADnBL,YACmB,uEADJ,YACI;;EACnB,IAAIM,MAAM,CAACD,iBAAD,CAAN,IAA6B,CAAjC,EAAoC;IAClC,OAAO,EAAP;EACD;;EACD,IAAME,OAAO,GAAGtB,GAAG,CAACM,KAAD,2BAA0Bc,iBAA1B,EAAH,IAAqD,CAArE;EACA,OAAOH,eAAe,CAACX,KAAD,EAAQ,SAAR,EAAmBS,YAAnB,EAAiCO,OAAjC,CAAtB;AACD;AAED,OAAO,SAASC,6BAAT,CACLjB,KADK,EAELc,iBAFK,EAIc;EAAA,IADnBL,YACmB,uEADJ,YACI;;EACnB,IAAIM,MAAM,CAACD,iBAAD,CAAN,IAA6B,CAAjC,EAAoC;IAClC,OAAO,EAAP;EACD;;EAED,sCACOlB,iBADP,mBACiCA,iBADjC,gBAEOiB,oBAAoB,CAACb,KAAD,EAAQc,iBAAR,EAA2BL,YAA3B,CAF3B;AAKD"}
1
+ {"version":3,"file":"color.js","names":["get","parseToRgb","DARK_SCHEME_CLASS","alpha","colorString","alphaValue","theme","color","startsWith","rgb","red","green","blue","mixColor","baseColor","overlayColor","overlayOpacity","getColorOverlay","background","getBackgroundOverlay","backgroundOverlay","arguments","length","undefined","Number","overlay","getDarkThemeBackgroundOverlay"],"sources":["../../src/color.ts"],"sourcesContent":["import type { SystemStyleObject } from '@styled-system/css';\nimport { get } from '@styled-system/css';\nimport { parseToRgb } from 'polished';\nimport { DARK_SCHEME_CLASS } from '@basic-ui/dynamic-theme';\n\nimport type { Theme } from './theme';\n\nexport const alpha =\n (colorString: string, alphaValue: number) => (theme: any) => {\n const color = get(theme, 'colors.' + colorString, colorString);\n if (color.startsWith('var')) {\n const color = get(theme, 'colors.' + colorString + '_rgb', colorString);\n return `rgba(${color},${alphaValue})`;\n }\n if (color.startsWith('rgba(')) {\n return color;\n }\n\n const rgb = parseToRgb(color);\n return `rgba(${rgb.red},${rgb.green},${rgb.blue},${alphaValue})`;\n };\n\nexport function mixColor(\n baseColor: string,\n overlayColor: string\n): (theme: any) => string;\nexport function mixColor(\n baseColor: string,\n overlayColor: string,\n overlayOpacity: number\n): (theme: any) => string;\nexport function mixColor(\n baseColor: string,\n overlayColor: string,\n overlayOpacity?: number\n): (theme: any) => string {\n return (theme) => {\n baseColor = get(theme, `colors.${baseColor}`, baseColor);\n overlayColor = overlayOpacity\n ? alpha(overlayColor, overlayOpacity)(theme)\n : get(theme, `colors.${overlayColor}`, overlayColor);\n\n return `linear-gradient(${overlayColor}, ${overlayColor}), ${baseColor}`;\n };\n}\n\nexport function getColorOverlay(\n theme: Theme,\n baseColor: string,\n overlayColor: string,\n overlayOpacity: number\n): SystemStyleObject {\n return {\n background: mixColor(baseColor, overlayColor, overlayOpacity)(theme),\n };\n}\n\nexport function getBackgroundOverlay(\n theme: Theme,\n backgroundOverlay: number | string,\n overlayColor = 'on.surface'\n): SystemStyleObject {\n if (Number(backgroundOverlay) <= 0) {\n return {};\n }\n const overlay = get(theme, `paper.overlays.${backgroundOverlay}`) || 0;\n return getColorOverlay(theme, 'surface', overlayColor, overlay);\n}\n\nexport function getDarkThemeBackgroundOverlay(\n theme: Theme,\n backgroundOverlay: number | string,\n overlayColor = 'on.surface'\n): SystemStyleObject {\n if (Number(backgroundOverlay) <= 0) {\n return {};\n }\n\n return {\n [`.${DARK_SCHEME_CLASS} &, &.${DARK_SCHEME_CLASS}`]: {\n ...getBackgroundOverlay(theme, backgroundOverlay, overlayColor),\n },\n };\n}\n"],"mappings":"AACA,SAASA,GAAG,QAAQ,oBAAoB;AACxC,SAASC,UAAU,QAAQ,UAAU;AACrC,SAASC,iBAAiB,QAAQ,yBAAyB;AAI3D,OAAO,MAAMC,KAAK,GAChBA,CAACC,WAAmB,EAAEC,UAAkB,KAAMC,KAAU,IAAK;EAC3D,MAAMC,KAAK,GAAGP,GAAG,CAACM,KAAK,EAAE,SAAS,GAAGF,WAAW,EAAEA,WAAW,CAAC;EAC9D,IAAIG,KAAK,CAACC,UAAU,CAAC,KAAK,CAAC,EAAE;IAC3B,MAAMD,KAAK,GAAGP,GAAG,CAACM,KAAK,EAAE,SAAS,GAAGF,WAAW,GAAG,MAAM,EAAEA,WAAW,CAAC;IACvE,OAAO,QAAQG,KAAK,IAAIF,UAAU,GAAG;EACvC;EACA,IAAIE,KAAK,CAACC,UAAU,CAAC,OAAO,CAAC,EAAE;IAC7B,OAAOD,KAAK;EACd;EAEA,MAAME,GAAG,GAAGR,UAAU,CAACM,KAAK,CAAC;EAC7B,OAAO,QAAQE,GAAG,CAACC,GAAG,IAAID,GAAG,CAACE,KAAK,IAAIF,GAAG,CAACG,IAAI,IAAIP,UAAU,GAAG;AAClE,CAAC;AAWH,OAAO,SAASQ,QAAQA,CACtBC,SAAiB,EACjBC,YAAoB,EACpBC,cAAuB,EACC;EACxB,OAAQV,KAAK,IAAK;IAChBQ,SAAS,GAAGd,GAAG,CAACM,KAAK,EAAE,UAAUQ,SAAS,EAAE,EAAEA,SAAS,CAAC;IACxDC,YAAY,GAAGC,cAAc,GACzBb,KAAK,CAACY,YAAY,EAAEC,cAAc,CAAC,CAACV,KAAK,CAAC,GAC1CN,GAAG,CAACM,KAAK,EAAE,UAAUS,YAAY,EAAE,EAAEA,YAAY,CAAC;IAEtD,OAAO,mBAAmBA,YAAY,KAAKA,YAAY,MAAMD,SAAS,EAAE;EAC1E,CAAC;AACH;AAEA,OAAO,SAASG,eAAeA,CAC7BX,KAAY,EACZQ,SAAiB,EACjBC,YAAoB,EACpBC,cAAsB,EACH;EACnB,OAAO;IACLE,UAAU,EAAEL,QAAQ,CAACC,SAAS,EAAEC,YAAY,EAAEC,cAAc,CAAC,CAACV,KAAK;EACrE,CAAC;AACH;AAEA,OAAO,SAASa,oBAAoBA,CAClCb,KAAY,EACZc,iBAAkC,EAEf;EAAA,IADnBL,YAAY,GAAAM,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,YAAY;EAE3B,IAAIG,MAAM,CAACJ,iBAAiB,CAAC,IAAI,CAAC,EAAE;IAClC,OAAO,CAAC,CAAC;EACX;EACA,MAAMK,OAAO,GAAGzB,GAAG,CAACM,KAAK,EAAE,kBAAkBc,iBAAiB,EAAE,CAAC,IAAI,CAAC;EACtE,OAAOH,eAAe,CAACX,KAAK,EAAE,SAAS,EAAES,YAAY,EAAEU,OAAO,CAAC;AACjE;AAEA,OAAO,SAASC,6BAA6BA,CAC3CpB,KAAY,EACZc,iBAAkC,EAEf;EAAA,IADnBL,YAAY,GAAAM,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,YAAY;EAE3B,IAAIG,MAAM,CAACJ,iBAAiB,CAAC,IAAI,CAAC,EAAE;IAClC,OAAO,CAAC,CAAC;EACX;EAEA,OAAO;IACL,CAAC,IAAIlB,iBAAiB,SAASA,iBAAiB,EAAE,GAAG;MACnD,GAAGiB,oBAAoB,CAACb,KAAK,EAAEc,iBAAiB,EAAEL,YAAY;IAChE;EACF,CAAC;AACH","ignoreList":[]}
@@ -1 +1 @@
1
- export * from '@styled-system/css';
1
+ export * from '@styled-system/css';
@@ -1 +1 @@
1
- {"version":3,"file":"css.js","names":[],"sources":["../../src/css.ts"],"sourcesContent":["// eslint-disable-next-line prettier/prettier\r\nexport * from '@styled-system/css';\r\n"],"mappings":"AAAA;AACA,cAAc,oBAAd"}
1
+ {"version":3,"file":"css.js","names":[],"sources":["../../src/css.ts"],"sourcesContent":["// eslint-disable-next-line prettier/prettier\nexport * from '@styled-system/css';\n"],"mappings":"AAAA;AACA,cAAc,oBAAoB","ignoreList":[]}
@@ -1,20 +1,20 @@
1
- import type { CSSProperties } from 'react';
2
- export declare type AnimationStateStyles<TStyleProps extends CSSProperties> = {
3
- closed: TStyleProps;
4
- opening?: TStyleProps;
5
- open: TStyleProps;
6
- close?: TStyleProps;
7
- };
8
- export declare type AnimationStyles<TStyleProps extends CSSProperties> = Record<string, AnimationStateStyles<TStyleProps>>;
9
- export declare function useAnimation<TStyles extends AnimationStyles<TStyleProps>, TStyleProps extends CSSProperties>(opts: {
10
- open: boolean;
11
- styles: TStyles;
12
- mode: keyof TStyles;
13
- openTimeoutInMilliseconds?: number;
14
- closeTimeoutInMilliseconds?: number;
15
- }): {
16
- state: keyof AnimationStateStyles<TStyleProps>;
17
- style: CSSProperties;
18
- timing: number;
19
- open: boolean;
20
- };
1
+ import type { CSSProperties } from 'react';
2
+ export type AnimationStateStyles<TStyleProps extends CSSProperties> = {
3
+ closed: TStyleProps;
4
+ opening?: TStyleProps;
5
+ open: TStyleProps;
6
+ close?: TStyleProps;
7
+ };
8
+ export type AnimationStyles<TStyleProps extends CSSProperties> = Record<string, AnimationStateStyles<TStyleProps>>;
9
+ export declare function useAnimation<TStyles extends AnimationStyles<TStyleProps>, TStyleProps extends CSSProperties>(opts: {
10
+ open: boolean;
11
+ styles: TStyles;
12
+ mode: keyof TStyles;
13
+ openTimeoutInMilliseconds?: number;
14
+ closeTimeoutInMilliseconds?: number;
15
+ }): {
16
+ state: keyof AnimationStateStyles<TStyleProps>;
17
+ style: CSSProperties;
18
+ timing: number;
19
+ open: boolean;
20
+ };
@@ -1,62 +1,53 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
1
  import { useState, useEffect, useCallback } from 'react';
4
2
  export function useAnimation(opts) {
5
- var styles = opts.styles,
6
- mode = opts.mode,
7
- openProp = opts.open,
8
- _opts$openTimeoutInMi = opts.openTimeoutInMilliseconds,
9
- openTimeoutInMilliseconds = _opts$openTimeoutInMi === void 0 ? 225 : _opts$openTimeoutInMi,
10
- _opts$closeTimeoutInM = opts.closeTimeoutInMilliseconds,
11
- closeTimeoutInMilliseconds = _opts$closeTimeoutInM === void 0 ? 110 : _opts$closeTimeoutInM;
12
- var animationStyle = styles[mode];
13
-
14
- var _useState = useState({
3
+ const {
4
+ styles,
5
+ mode,
6
+ open: openProp,
7
+ openTimeoutInMilliseconds = 225,
8
+ closeTimeoutInMilliseconds = 110
9
+ } = opts;
10
+ const animationStyle = styles[mode];
11
+ const [{
12
+ timing,
13
+ open,
14
+ state,
15
+ style
16
+ }, setAnimation] = useState({
15
17
  state: 'closed',
16
18
  style: animationStyle.closed,
17
19
  timing: closeTimeoutInMilliseconds,
18
20
  open: openProp
19
- }),
20
- _useState2 = _slicedToArray(_useState, 2),
21
- _useState2$ = _useState2[0],
22
- timing = _useState2$.timing,
23
- open = _useState2$.open,
24
- state = _useState2$.state,
25
- style = _useState2$.style,
26
- setAnimation = _useState2[1];
27
-
28
- var handleClose = useCallback(function () {
29
- setAnimation(function (animation) {
30
- return animation.state === 'closed' ? animation : _extends(_extends({}, animation), {}, {
31
- state: 'close',
32
- style: animationStyle.close || animationStyle.closed,
33
- timing: closeTimeoutInMilliseconds
34
- });
21
+ });
22
+ const handleClose = useCallback(() => {
23
+ setAnimation(animation => animation.state === 'closed' ? animation : {
24
+ ...animation,
25
+ state: 'close',
26
+ style: animationStyle.close || animationStyle.closed,
27
+ timing: closeTimeoutInMilliseconds
35
28
  });
36
29
  }, [animationStyle, closeTimeoutInMilliseconds]);
37
- var handleOpen = useCallback(function () {
38
- setAnimation(function (animation) {
39
- return animation.state === 'open' ? animation : _extends(_extends({}, animation), {}, {
40
- open: true,
41
- state: 'opening',
42
- style: animationStyle.opening || animationStyle.closed
43
- });
30
+ const handleOpen = useCallback(() => {
31
+ setAnimation(animation => animation.state === 'open' ? animation : {
32
+ ...animation,
33
+ open: true,
34
+ state: 'opening',
35
+ style: animationStyle.opening || animationStyle.closed
44
36
  });
45
37
  }, [animationStyle]);
46
- useEffect(function () {
38
+ useEffect(() => {
47
39
  if (state === 'opening') {
48
- setAnimation(function (animation) {
49
- return _extends(_extends({}, animation), {}, {
50
- state: 'open',
51
- style: animationStyle.open,
52
- timing: openTimeoutInMilliseconds
53
- });
54
- });
40
+ setAnimation(animation => ({
41
+ ...animation,
42
+ state: 'open',
43
+ style: animationStyle.open,
44
+ timing: openTimeoutInMilliseconds
45
+ }));
55
46
  }
56
47
  }, [animationStyle.open, openTimeoutInMilliseconds, state]);
57
- useEffect(function () {
48
+ useEffect(() => {
58
49
  if (state === 'close') {
59
- var timeout = setTimeout(function () {
50
+ const timeout = setTimeout(() => {
60
51
  setAnimation({
61
52
  state: 'closed',
62
53
  style: animationStyle.closed,
@@ -64,12 +55,10 @@ export function useAnimation(opts) {
64
55
  timing: closeTimeoutInMilliseconds
65
56
  });
66
57
  }, closeTimeoutInMilliseconds);
67
- return function () {
68
- return clearTimeout(timeout);
69
- };
58
+ return () => clearTimeout(timeout);
70
59
  }
71
60
  }, [animationStyle.closed, closeTimeoutInMilliseconds, state]);
72
- useEffect(function () {
61
+ useEffect(() => {
73
62
  if (openProp) {
74
63
  handleOpen();
75
64
  } else {
@@ -77,10 +66,10 @@ export function useAnimation(opts) {
77
66
  }
78
67
  }, [handleClose, handleOpen, openProp]);
79
68
  return {
80
- state: state,
81
- style: style,
82
- timing: timing,
83
- open: open
69
+ state,
70
+ style,
71
+ timing,
72
+ open
84
73
  };
85
74
  }
86
75
  //# sourceMappingURL=useAnimation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAnimation.js","names":["useState","useEffect","useCallback","useAnimation","opts","styles","mode","openProp","open","openTimeoutInMilliseconds","closeTimeoutInMilliseconds","animationStyle","state","style","closed","timing","setAnimation","handleClose","animation","close","handleOpen","opening","timeout","setTimeout","clearTimeout"],"sources":["../../../src/hooks/useAnimation.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\r\nimport { useState, useEffect, useCallback } from 'react';\r\n\r\nexport type AnimationStateStyles<TStyleProps extends CSSProperties> = {\r\n closed: TStyleProps;\r\n opening?: TStyleProps;\r\n open: TStyleProps;\r\n close?: TStyleProps;\r\n};\r\n\r\nexport type AnimationStyles<TStyleProps extends CSSProperties> = Record<\r\n string,\r\n AnimationStateStyles<TStyleProps>\r\n>;\r\n\r\nexport function useAnimation<\r\n TStyles extends AnimationStyles<TStyleProps>,\r\n TStyleProps extends CSSProperties\r\n>(opts: {\r\n open: boolean;\r\n styles: TStyles;\r\n mode: keyof TStyles;\r\n openTimeoutInMilliseconds?: number;\r\n closeTimeoutInMilliseconds?: number;\r\n}) {\r\n const {\r\n styles,\r\n mode,\r\n open: openProp,\r\n openTimeoutInMilliseconds = 225,\r\n closeTimeoutInMilliseconds = 110,\r\n } = opts;\r\n const animationStyle = styles[mode];\r\n const [{ timing, open, state, style }, setAnimation] = useState<{\r\n state: keyof AnimationStateStyles<TStyleProps>;\r\n timing: number;\r\n open: boolean;\r\n style: CSSProperties;\r\n }>({\r\n state: 'closed',\r\n style: animationStyle.closed,\r\n timing: closeTimeoutInMilliseconds,\r\n open: openProp,\r\n });\r\n\r\n const handleClose = useCallback(() => {\r\n setAnimation((animation) =>\r\n animation.state === 'closed'\r\n ? animation\r\n : {\r\n ...animation,\r\n state: 'close',\r\n style: animationStyle.close || animationStyle.closed,\r\n timing: closeTimeoutInMilliseconds,\r\n }\r\n );\r\n }, [animationStyle, closeTimeoutInMilliseconds]);\r\n\r\n const handleOpen = useCallback(() => {\r\n setAnimation((animation) =>\r\n animation.state === 'open'\r\n ? animation\r\n : {\r\n ...animation,\r\n open: true,\r\n state: 'opening',\r\n style: animationStyle.opening || animationStyle.closed,\r\n }\r\n );\r\n }, [animationStyle]);\r\n\r\n useEffect(() => {\r\n if (state === 'opening') {\r\n setAnimation((animation) => ({\r\n ...animation,\r\n state: 'open',\r\n style: animationStyle.open,\r\n timing: openTimeoutInMilliseconds,\r\n }));\r\n }\r\n }, [animationStyle.open, openTimeoutInMilliseconds, state]);\r\n\r\n useEffect(() => {\r\n if (state === 'close') {\r\n const timeout = setTimeout(() => {\r\n setAnimation({\r\n state: 'closed',\r\n style: animationStyle.closed,\r\n open: false,\r\n timing: closeTimeoutInMilliseconds,\r\n });\r\n }, closeTimeoutInMilliseconds);\r\n return () => clearTimeout(timeout);\r\n }\r\n }, [animationStyle.closed, closeTimeoutInMilliseconds, state]);\r\n\r\n useEffect(() => {\r\n if (openProp) {\r\n handleOpen();\r\n } else {\r\n handleClose();\r\n }\r\n }, [handleClose, handleOpen, openProp]);\r\n\r\n return {\r\n state,\r\n style,\r\n timing,\r\n open,\r\n };\r\n}\r\n"],"mappings":";;AACA,SAASA,QAAT,EAAmBC,SAAnB,EAA8BC,WAA9B,QAAiD,OAAjD;AAcA,OAAO,SAASC,YAAT,CAGLC,IAHK,EASJ;EACD,IACEC,MADF,GAMID,IANJ,CACEC,MADF;EAAA,IAEEC,IAFF,GAMIF,IANJ,CAEEE,IAFF;EAAA,IAGQC,QAHR,GAMIH,IANJ,CAGEI,IAHF;EAAA,4BAMIJ,IANJ,CAIEK,yBAJF;EAAA,IAIEA,yBAJF,sCAI8B,GAJ9B;EAAA,4BAMIL,IANJ,CAKEM,0BALF;EAAA,IAKEA,0BALF,sCAK+B,GAL/B;EAOA,IAAMC,cAAc,GAAGN,MAAM,CAACC,IAAD,CAA7B;;EACA,gBAAuDN,QAAQ,CAK5D;IACDY,KAAK,EAAE,QADN;IAEDC,KAAK,EAAEF,cAAc,CAACG,MAFrB;IAGDC,MAAM,EAAEL,0BAHP;IAIDF,IAAI,EAAED;EAJL,CAL4D,CAA/D;EAAA;EAAA;EAAA,IAASQ,MAAT,eAASA,MAAT;EAAA,IAAiBP,IAAjB,eAAiBA,IAAjB;EAAA,IAAuBI,KAAvB,eAAuBA,KAAvB;EAAA,IAA8BC,KAA9B,eAA8BA,KAA9B;EAAA,IAAuCG,YAAvC;;EAYA,IAAMC,WAAW,GAAGf,WAAW,CAAC,YAAM;IACpCc,YAAY,CAAC,UAACE,SAAD;MAAA,OACXA,SAAS,CAACN,KAAV,KAAoB,QAApB,GACIM,SADJ,yBAGSA,SAHT;QAIMN,KAAK,EAAE,OAJb;QAKMC,KAAK,EAAEF,cAAc,CAACQ,KAAf,IAAwBR,cAAc,CAACG,MALpD;QAMMC,MAAM,EAAEL;MANd,EADW;IAAA,CAAD,CAAZ;EAUD,CAX8B,EAW5B,CAACC,cAAD,EAAiBD,0BAAjB,CAX4B,CAA/B;EAaA,IAAMU,UAAU,GAAGlB,WAAW,CAAC,YAAM;IACnCc,YAAY,CAAC,UAACE,SAAD;MAAA,OACXA,SAAS,CAACN,KAAV,KAAoB,MAApB,GACIM,SADJ,yBAGSA,SAHT;QAIMV,IAAI,EAAE,IAJZ;QAKMI,KAAK,EAAE,SALb;QAMMC,KAAK,EAAEF,cAAc,CAACU,OAAf,IAA0BV,cAAc,CAACG;MANtD,EADW;IAAA,CAAD,CAAZ;EAUD,CAX6B,EAW3B,CAACH,cAAD,CAX2B,CAA9B;EAaAV,SAAS,CAAC,YAAM;IACd,IAAIW,KAAK,KAAK,SAAd,EAAyB;MACvBI,YAAY,CAAC,UAACE,SAAD;QAAA,6BACRA,SADQ;UAEXN,KAAK,EAAE,MAFI;UAGXC,KAAK,EAAEF,cAAc,CAACH,IAHX;UAIXO,MAAM,EAAEN;QAJG;MAAA,CAAD,CAAZ;IAMD;EACF,CATQ,EASN,CAACE,cAAc,CAACH,IAAhB,EAAsBC,yBAAtB,EAAiDG,KAAjD,CATM,CAAT;EAWAX,SAAS,CAAC,YAAM;IACd,IAAIW,KAAK,KAAK,OAAd,EAAuB;MACrB,IAAMU,OAAO,GAAGC,UAAU,CAAC,YAAM;QAC/BP,YAAY,CAAC;UACXJ,KAAK,EAAE,QADI;UAEXC,KAAK,EAAEF,cAAc,CAACG,MAFX;UAGXN,IAAI,EAAE,KAHK;UAIXO,MAAM,EAAEL;QAJG,CAAD,CAAZ;MAMD,CAPyB,EAOvBA,0BAPuB,CAA1B;MAQA,OAAO;QAAA,OAAMc,YAAY,CAACF,OAAD,CAAlB;MAAA,CAAP;IACD;EACF,CAZQ,EAYN,CAACX,cAAc,CAACG,MAAhB,EAAwBJ,0BAAxB,EAAoDE,KAApD,CAZM,CAAT;EAcAX,SAAS,CAAC,YAAM;IACd,IAAIM,QAAJ,EAAc;MACZa,UAAU;IACX,CAFD,MAEO;MACLH,WAAW;IACZ;EACF,CANQ,EAMN,CAACA,WAAD,EAAcG,UAAd,EAA0Bb,QAA1B,CANM,CAAT;EAQA,OAAO;IACLK,KAAK,EAALA,KADK;IAELC,KAAK,EAALA,KAFK;IAGLE,MAAM,EAANA,MAHK;IAILP,IAAI,EAAJA;EAJK,CAAP;AAMD"}
1
+ {"version":3,"file":"useAnimation.js","names":["useState","useEffect","useCallback","useAnimation","opts","styles","mode","open","openProp","openTimeoutInMilliseconds","closeTimeoutInMilliseconds","animationStyle","timing","state","style","setAnimation","closed","handleClose","animation","close","handleOpen","opening","timeout","setTimeout","clearTimeout"],"sources":["../../../src/hooks/useAnimation.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport { useState, useEffect, useCallback } from 'react';\n\nexport type AnimationStateStyles<TStyleProps extends CSSProperties> = {\n closed: TStyleProps;\n opening?: TStyleProps;\n open: TStyleProps;\n close?: TStyleProps;\n};\n\nexport type AnimationStyles<TStyleProps extends CSSProperties> = Record<\n string,\n AnimationStateStyles<TStyleProps>\n>;\n\nexport function useAnimation<\n TStyles extends AnimationStyles<TStyleProps>,\n TStyleProps extends CSSProperties\n>(opts: {\n open: boolean;\n styles: TStyles;\n mode: keyof TStyles;\n openTimeoutInMilliseconds?: number;\n closeTimeoutInMilliseconds?: number;\n}) {\n const {\n styles,\n mode,\n open: openProp,\n openTimeoutInMilliseconds = 225,\n closeTimeoutInMilliseconds = 110,\n } = opts;\n const animationStyle = styles[mode];\n const [{ timing, open, state, style }, setAnimation] = useState<{\n state: keyof AnimationStateStyles<TStyleProps>;\n timing: number;\n open: boolean;\n style: CSSProperties;\n }>({\n state: 'closed',\n style: animationStyle.closed,\n timing: closeTimeoutInMilliseconds,\n open: openProp,\n });\n\n const handleClose = useCallback(() => {\n setAnimation((animation) =>\n animation.state === 'closed'\n ? animation\n : {\n ...animation,\n state: 'close',\n style: animationStyle.close || animationStyle.closed,\n timing: closeTimeoutInMilliseconds,\n }\n );\n }, [animationStyle, closeTimeoutInMilliseconds]);\n\n const handleOpen = useCallback(() => {\n setAnimation((animation) =>\n animation.state === 'open'\n ? animation\n : {\n ...animation,\n open: true,\n state: 'opening',\n style: animationStyle.opening || animationStyle.closed,\n }\n );\n }, [animationStyle]);\n\n useEffect(() => {\n if (state === 'opening') {\n setAnimation((animation) => ({\n ...animation,\n state: 'open',\n style: animationStyle.open,\n timing: openTimeoutInMilliseconds,\n }));\n }\n }, [animationStyle.open, openTimeoutInMilliseconds, state]);\n\n useEffect(() => {\n if (state === 'close') {\n const timeout = setTimeout(() => {\n setAnimation({\n state: 'closed',\n style: animationStyle.closed,\n open: false,\n timing: closeTimeoutInMilliseconds,\n });\n }, closeTimeoutInMilliseconds);\n return () => clearTimeout(timeout);\n }\n }, [animationStyle.closed, closeTimeoutInMilliseconds, state]);\n\n useEffect(() => {\n if (openProp) {\n handleOpen();\n } else {\n handleClose();\n }\n }, [handleClose, handleOpen, openProp]);\n\n return {\n state,\n style,\n timing,\n open,\n };\n}\n"],"mappings":"AACA,SAASA,QAAQ,EAAEC,SAAS,EAAEC,WAAW,QAAQ,OAAO;AAcxD,OAAO,SAASC,YAAYA,CAG1BC,IAMD,EAAE;EACD,MAAM;IACJC,MAAM;IACNC,IAAI;IACJC,IAAI,EAAEC,QAAQ;IACdC,yBAAyB,GAAG,GAAG;IAC/BC,0BAA0B,GAAG;EAC/B,CAAC,GAAGN,IAAI;EACR,MAAMO,cAAc,GAAGN,MAAM,CAACC,IAAI,CAAC;EACnC,MAAM,CAAC;IAAEM,MAAM;IAAEL,IAAI;IAAEM,KAAK;IAAEC;EAAM,CAAC,EAAEC,YAAY,CAAC,GAAGf,QAAQ,CAK5D;IACDa,KAAK,EAAE,QAAQ;IACfC,KAAK,EAAEH,cAAc,CAACK,MAAM;IAC5BJ,MAAM,EAAEF,0BAA0B;IAClCH,IAAI,EAAEC;EACR,CAAC,CAAC;EAEF,MAAMS,WAAW,GAAGf,WAAW,CAAC,MAAM;IACpCa,YAAY,CAAEG,SAAS,IACrBA,SAAS,CAACL,KAAK,KAAK,QAAQ,GACxBK,SAAS,GACT;MACE,GAAGA,SAAS;MACZL,KAAK,EAAE,OAAO;MACdC,KAAK,EAAEH,cAAc,CAACQ,KAAK,IAAIR,cAAc,CAACK,MAAM;MACpDJ,MAAM,EAAEF;IACV,CACN,CAAC;EACH,CAAC,EAAE,CAACC,cAAc,EAAED,0BAA0B,CAAC,CAAC;EAEhD,MAAMU,UAAU,GAAGlB,WAAW,CAAC,MAAM;IACnCa,YAAY,CAAEG,SAAS,IACrBA,SAAS,CAACL,KAAK,KAAK,MAAM,GACtBK,SAAS,GACT;MACE,GAAGA,SAAS;MACZX,IAAI,EAAE,IAAI;MACVM,KAAK,EAAE,SAAS;MAChBC,KAAK,EAAEH,cAAc,CAACU,OAAO,IAAIV,cAAc,CAACK;IAClD,CACN,CAAC;EACH,CAAC,EAAE,CAACL,cAAc,CAAC,CAAC;EAEpBV,SAAS,CAAC,MAAM;IACd,IAAIY,KAAK,KAAK,SAAS,EAAE;MACvBE,YAAY,CAAEG,SAAS,KAAM;QAC3B,GAAGA,SAAS;QACZL,KAAK,EAAE,MAAM;QACbC,KAAK,EAAEH,cAAc,CAACJ,IAAI;QAC1BK,MAAM,EAAEH;MACV,CAAC,CAAC,CAAC;IACL;EACF,CAAC,EAAE,CAACE,cAAc,CAACJ,IAAI,EAAEE,yBAAyB,EAAEI,KAAK,CAAC,CAAC;EAE3DZ,SAAS,CAAC,MAAM;IACd,IAAIY,KAAK,KAAK,OAAO,EAAE;MACrB,MAAMS,OAAO,GAAGC,UAAU,CAAC,MAAM;QAC/BR,YAAY,CAAC;UACXF,KAAK,EAAE,QAAQ;UACfC,KAAK,EAAEH,cAAc,CAACK,MAAM;UAC5BT,IAAI,EAAE,KAAK;UACXK,MAAM,EAAEF;QACV,CAAC,CAAC;MACJ,CAAC,EAAEA,0BAA0B,CAAC;MAC9B,OAAO,MAAMc,YAAY,CAACF,OAAO,CAAC;IACpC;EACF,CAAC,EAAE,CAACX,cAAc,CAACK,MAAM,EAAEN,0BAA0B,EAAEG,KAAK,CAAC,CAAC;EAE9DZ,SAAS,CAAC,MAAM;IACd,IAAIO,QAAQ,EAAE;MACZY,UAAU,CAAC,CAAC;IACd,CAAC,MAAM;MACLH,WAAW,CAAC,CAAC;IACf;EACF,CAAC,EAAE,CAACA,WAAW,EAAEG,UAAU,EAAEZ,QAAQ,CAAC,CAAC;EAEvC,OAAO;IACLK,KAAK;IACLC,KAAK;IACLF,MAAM;IACNL;EACF,CAAC;AACH","ignoreList":[]}
@@ -1,42 +1,42 @@
1
- export * from './AppBar';
2
- export * from './Alert';
3
- export * from './Badge';
4
- export * from './BaseLine';
5
- export * from './BottomSheet';
6
- export * from './Box';
7
- export * from './Button';
8
- export * from './Combobox';
9
- export * from './CheckBox';
10
- export * from './Chip';
11
- export * from './Divider';
12
- export * from './Dialog';
13
- export * from './FloatingLabel';
14
- export * from './LineRipple';
15
- export * from './Link';
16
- export * from './List';
17
- export * from './ListItem';
18
- export * from './Menu';
19
- export * from './NavRail';
20
- export * from './NotchedOutline';
21
- export * from './Paper';
22
- export * from './Popover';
23
- export * from './ProgressSpinner';
24
- export * from './RadioButton';
25
- export * from './Ripple';
26
- export * from './SearchBar';
27
- export * from './Select';
28
- export * from './SelectItem';
29
- export * from './Skeleton';
30
- export * from './Slider';
31
- export * from './Snackbar';
32
- export * from './Switch';
33
- export * from './Tab';
34
- export * from './TabIndicator';
35
- export * from './Table';
36
- export * from './Text';
37
- export * from './TextField';
38
- export * from './Tooltip';
39
- export * from './motion';
40
- export * from './theme';
41
- export * from './color';
42
- export * from './hooks/useAnimation';
1
+ export * from './AppBar';
2
+ export * from './Alert';
3
+ export * from './Badge';
4
+ export * from './BaseLine';
5
+ export * from './BottomSheet';
6
+ export * from './Box';
7
+ export * from './Button';
8
+ export * from './Combobox';
9
+ export * from './CheckBox';
10
+ export * from './Chip';
11
+ export * from './Divider';
12
+ export * from './Dialog';
13
+ export * from './FloatingLabel';
14
+ export * from './LineRipple';
15
+ export * from './Link';
16
+ export * from './List';
17
+ export * from './ListItem';
18
+ export * from './Menu';
19
+ export * from './NavRail';
20
+ export * from './NotchedOutline';
21
+ export * from './Paper';
22
+ export * from './Popover';
23
+ export * from './ProgressSpinner';
24
+ export * from './RadioButton';
25
+ export * from './Ripple';
26
+ export * from './SearchBar';
27
+ export * from './Select';
28
+ export * from './SelectItem';
29
+ export * from './Skeleton';
30
+ export * from './Slider';
31
+ export * from './Snackbar';
32
+ export * from './Switch';
33
+ export * from './Tab';
34
+ export * from './TabIndicator';
35
+ export * from './Table';
36
+ export * from './Text';
37
+ export * from './TextField';
38
+ export * from './Tooltip';
39
+ export * from './motion';
40
+ export * from './theme';
41
+ export * from './color';
42
+ export * from './hooks/useAnimation';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from './AppBar';\nexport * from './Alert';\nexport * from './Badge';\nexport * from './BaseLine';\nexport * from './BottomSheet';\nexport * from './Box';\nexport * from './Button';\nexport * from './Combobox';\nexport * from './CheckBox';\nexport * from './Chip';\nexport * from './Divider';\nexport * from './Dialog';\nexport * from './FloatingLabel';\nexport * from './LineRipple';\nexport * from './Link';\nexport * from './List';\nexport * from './ListItem';\nexport * from './Menu';\nexport * from './NavRail';\nexport * from './NotchedOutline';\nexport * from './Paper';\nexport * from './Popover';\nexport * from './ProgressSpinner';\nexport * from './RadioButton';\nexport * from './Ripple';\nexport * from './SearchBar';\nexport * from './Select';\nexport * from './SelectItem';\nexport * from './Skeleton';\nexport * from './Slider';\nexport * from './Snackbar';\nexport * from './Switch';\nexport * from './Tab';\nexport * from './TabIndicator';\nexport * from './Table';\nexport * from './Text';\nexport * from './TextField';\nexport * from './Tooltip';\nexport * from './motion';\nexport * from './theme';\nexport * from './color';\nexport * from './hooks/useAnimation';\n"],"mappings":"AAAA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,YAAd;AACA,cAAc,eAAd;AACA,cAAc,OAAd;AACA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,WAAd;AACA,cAAc,UAAd;AACA,cAAc,iBAAd;AACA,cAAc,cAAd;AACA,cAAc,QAAd;AACA,cAAc,QAAd;AACA,cAAc,YAAd;AACA,cAAc,QAAd;AACA,cAAc,WAAd;AACA,cAAc,kBAAd;AACA,cAAc,SAAd;AACA,cAAc,WAAd;AACA,cAAc,mBAAd;AACA,cAAc,eAAd;AACA,cAAc,UAAd;AACA,cAAc,aAAd;AACA,cAAc,UAAd;AACA,cAAc,cAAd;AACA,cAAc,YAAd;AACA,cAAc,UAAd;AACA,cAAc,YAAd;AACA,cAAc,UAAd;AACA,cAAc,OAAd;AACA,cAAc,gBAAd;AACA,cAAc,SAAd;AACA,cAAc,QAAd;AACA,cAAc,aAAd;AACA,cAAc,WAAd;AACA,cAAc,UAAd;AACA,cAAc,SAAd;AACA,cAAc,SAAd;AACA,cAAc,sBAAd"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.ts"],"sourcesContent":["export * from './AppBar';\nexport * from './Alert';\nexport * from './Badge';\nexport * from './BaseLine';\nexport * from './BottomSheet';\nexport * from './Box';\nexport * from './Button';\nexport * from './Combobox';\nexport * from './CheckBox';\nexport * from './Chip';\nexport * from './Divider';\nexport * from './Dialog';\nexport * from './FloatingLabel';\nexport * from './LineRipple';\nexport * from './Link';\nexport * from './List';\nexport * from './ListItem';\nexport * from './Menu';\nexport * from './NavRail';\nexport * from './NotchedOutline';\nexport * from './Paper';\nexport * from './Popover';\nexport * from './ProgressSpinner';\nexport * from './RadioButton';\nexport * from './Ripple';\nexport * from './SearchBar';\nexport * from './Select';\nexport * from './SelectItem';\nexport * from './Skeleton';\nexport * from './Slider';\nexport * from './Snackbar';\nexport * from './Switch';\nexport * from './Tab';\nexport * from './TabIndicator';\nexport * from './Table';\nexport * from './Text';\nexport * from './TextField';\nexport * from './Tooltip';\nexport * from './motion';\nexport * from './theme';\nexport * from './color';\nexport * from './hooks/useAnimation';\n"],"mappings":"AAAA,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,YAAY;AAC1B,cAAc,eAAe;AAC7B,cAAc,OAAO;AACrB,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,cAAc,QAAQ;AACtB,cAAc,QAAQ;AACtB,cAAc,YAAY;AAC1B,cAAc,QAAQ;AACtB,cAAc,WAAW;AACzB,cAAc,kBAAkB;AAChC,cAAc,SAAS;AACvB,cAAc,WAAW;AACzB,cAAc,mBAAmB;AACjC,cAAc,eAAe;AAC7B,cAAc,UAAU;AACxB,cAAc,aAAa;AAC3B,cAAc,UAAU;AACxB,cAAc,cAAc;AAC5B,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,YAAY;AAC1B,cAAc,UAAU;AACxB,cAAc,OAAO;AACrB,cAAc,gBAAgB;AAC9B,cAAc,SAAS;AACvB,cAAc,QAAQ;AACtB,cAAc,aAAa;AAC3B,cAAc,WAAW;AACzB,cAAc,UAAU;AACxB,cAAc,SAAS;AACvB,cAAc,SAAS;AACvB,cAAc,sBAAsB","ignoreList":[]}
@@ -1,7 +1,7 @@
1
- export declare const EASING_EMPHASIZED = "cubic-bezier(0.2, 0, 0, 1)";
2
- export declare const EASING_EMPHASIZED_ACCELERATE = "cubic-bezier(0.3, 0, 0.8, 0.15)";
3
- export declare const EASING_EMPHASIZED_DECELERATE = "cubic-bezier(0.05, 0.7, 0.1, 1)";
4
- export declare const EASING_LINEAR = "cubic-bezier(0, 0, 1, 1)";
5
- export declare const EASING_STANDARD = "cubic-bezier(0.2, 0, 0, 1)";
6
- export declare const EASING_STANDARD_ACCELERATE = "cubic-bezier(0.3, 0, 1, 1)";
7
- export declare const EASING_STANDARD_DECELERATE = "cubic-bezier(0, 0, 0, 1)";
1
+ export declare const EASING_EMPHASIZED = "cubic-bezier(0.2, 0, 0, 1)";
2
+ export declare const EASING_EMPHASIZED_ACCELERATE = "cubic-bezier(0.3, 0, 0.8, 0.15)";
3
+ export declare const EASING_EMPHASIZED_DECELERATE = "cubic-bezier(0.05, 0.7, 0.1, 1)";
4
+ export declare const EASING_LINEAR = "cubic-bezier(0, 0, 1, 1)";
5
+ export declare const EASING_STANDARD = "cubic-bezier(0.2, 0, 0, 1)";
6
+ export declare const EASING_STANDARD_ACCELERATE = "cubic-bezier(0.3, 0, 1, 1)";
7
+ export declare const EASING_STANDARD_DECELERATE = "cubic-bezier(0, 0, 0, 1)";
@@ -1,8 +1,8 @@
1
- export var EASING_EMPHASIZED = 'cubic-bezier(0.2, 0, 0, 1)';
2
- export var EASING_EMPHASIZED_ACCELERATE = 'cubic-bezier(0.3, 0, 0.8, 0.15)';
3
- export var EASING_EMPHASIZED_DECELERATE = 'cubic-bezier(0.05, 0.7, 0.1, 1)';
4
- export var EASING_LINEAR = 'cubic-bezier(0, 0, 1, 1)';
5
- export var EASING_STANDARD = 'cubic-bezier(0.2, 0, 0, 1)';
6
- export var EASING_STANDARD_ACCELERATE = 'cubic-bezier(0.3, 0, 1, 1)';
7
- export var EASING_STANDARD_DECELERATE = 'cubic-bezier(0, 0, 0, 1)';
1
+ export const EASING_EMPHASIZED = 'cubic-bezier(0.2, 0, 0, 1)';
2
+ export const EASING_EMPHASIZED_ACCELERATE = 'cubic-bezier(0.3, 0, 0.8, 0.15)';
3
+ export const EASING_EMPHASIZED_DECELERATE = 'cubic-bezier(0.05, 0.7, 0.1, 1)';
4
+ export const EASING_LINEAR = 'cubic-bezier(0, 0, 1, 1)';
5
+ export const EASING_STANDARD = 'cubic-bezier(0.2, 0, 0, 1)';
6
+ export const EASING_STANDARD_ACCELERATE = 'cubic-bezier(0.3, 0, 1, 1)';
7
+ export const EASING_STANDARD_DECELERATE = 'cubic-bezier(0, 0, 0, 1)';
8
8
  //# sourceMappingURL=motion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"motion.js","names":["EASING_EMPHASIZED","EASING_EMPHASIZED_ACCELERATE","EASING_EMPHASIZED_DECELERATE","EASING_LINEAR","EASING_STANDARD","EASING_STANDARD_ACCELERATE","EASING_STANDARD_DECELERATE"],"sources":["../../src/motion.ts"],"sourcesContent":["export const EASING_EMPHASIZED = 'cubic-bezier(0.2, 0, 0, 1)';\r\nexport const EASING_EMPHASIZED_ACCELERATE = 'cubic-bezier(0.3, 0, 0.8, 0.15)';\r\nexport const EASING_EMPHASIZED_DECELERATE = 'cubic-bezier(0.05, 0.7, 0.1, 1)';\r\nexport const EASING_LINEAR = 'cubic-bezier(0, 0, 1, 1)';\r\nexport const EASING_STANDARD = 'cubic-bezier(0.2, 0, 0, 1)';\r\nexport const EASING_STANDARD_ACCELERATE = 'cubic-bezier(0.3, 0, 1, 1)';\r\nexport const EASING_STANDARD_DECELERATE = 'cubic-bezier(0, 0, 0, 1)';\r\n"],"mappings":"AAAA,OAAO,IAAMA,iBAAiB,GAAG,4BAA1B;AACP,OAAO,IAAMC,4BAA4B,GAAG,iCAArC;AACP,OAAO,IAAMC,4BAA4B,GAAG,iCAArC;AACP,OAAO,IAAMC,aAAa,GAAG,0BAAtB;AACP,OAAO,IAAMC,eAAe,GAAG,4BAAxB;AACP,OAAO,IAAMC,0BAA0B,GAAG,4BAAnC;AACP,OAAO,IAAMC,0BAA0B,GAAG,0BAAnC"}
1
+ {"version":3,"file":"motion.js","names":["EASING_EMPHASIZED","EASING_EMPHASIZED_ACCELERATE","EASING_EMPHASIZED_DECELERATE","EASING_LINEAR","EASING_STANDARD","EASING_STANDARD_ACCELERATE","EASING_STANDARD_DECELERATE"],"sources":["../../src/motion.ts"],"sourcesContent":["export const EASING_EMPHASIZED = 'cubic-bezier(0.2, 0, 0, 1)';\nexport const EASING_EMPHASIZED_ACCELERATE = 'cubic-bezier(0.3, 0, 0.8, 0.15)';\nexport const EASING_EMPHASIZED_DECELERATE = 'cubic-bezier(0.05, 0.7, 0.1, 1)';\nexport const EASING_LINEAR = 'cubic-bezier(0, 0, 1, 1)';\nexport const EASING_STANDARD = 'cubic-bezier(0.2, 0, 0, 1)';\nexport const EASING_STANDARD_ACCELERATE = 'cubic-bezier(0.3, 0, 1, 1)';\nexport const EASING_STANDARD_DECELERATE = 'cubic-bezier(0, 0, 0, 1)';\n"],"mappings":"AAAA,OAAO,MAAMA,iBAAiB,GAAG,4BAA4B;AAC7D,OAAO,MAAMC,4BAA4B,GAAG,iCAAiC;AAC7E,OAAO,MAAMC,4BAA4B,GAAG,iCAAiC;AAC7E,OAAO,MAAMC,aAAa,GAAG,0BAA0B;AACvD,OAAO,MAAMC,eAAe,GAAG,4BAA4B;AAC3D,OAAO,MAAMC,0BAA0B,GAAG,4BAA4B;AACtE,OAAO,MAAMC,0BAA0B,GAAG,0BAA0B","ignoreList":[]}