@basic-ui/material 0.1.9 → 0.1.12

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 (72) hide show
  1. package/build/cjs/index.js +4 -6
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/esm/AppBar/AppBarButton.d.ts +1 -1
  4. package/build/esm/BottomSheet/BottomSheet.d.ts +1 -1
  5. package/build/esm/BottomSheet/BottomSheetSurface.d.ts +1 -1
  6. package/build/esm/Button/BaseButton.d.ts +1 -1
  7. package/build/esm/Button/Button.d.ts +1 -1
  8. package/build/esm/Button/FilledButton.d.ts +1 -1
  9. package/build/esm/Button/FloatingActionButton.d.ts +7 -0
  10. package/build/esm/Button/FloatingActionButton.js +8 -0
  11. package/build/esm/Button/FloatingActionButton.js.map +1 -0
  12. package/build/esm/Button/OutlinedButton.d.ts +1 -3
  13. package/build/esm/Button/TransparentButton.d.ts +1 -1
  14. package/build/esm/CheckBox/CheckBox.d.ts +1 -1
  15. package/build/esm/CheckBox/CheckBoxIcon.d.ts +1 -1
  16. package/build/esm/Chip/ButtonChip.d.ts +1 -1
  17. package/build/esm/Chip/ChoiceChip.d.ts +1 -1
  18. package/build/esm/Combobox/Combobox.d.ts +7 -7
  19. package/build/esm/Dialog/Dialog.d.ts +1 -1
  20. package/build/esm/Dialog/DialogBackdrop.d.ts +1 -1
  21. package/build/esm/Dialog/DialogSurface.d.ts +1 -1
  22. package/build/esm/Link/Link.d.ts +1 -1
  23. package/build/esm/List/List.d.ts +1 -1
  24. package/build/esm/ListItem/ListItem.d.ts +1 -1
  25. package/build/esm/Menu/Menu.d.ts +4 -4
  26. package/build/esm/RadioButton/RadioGroup.d.ts +1 -1
  27. package/build/esm/Ripple/keyframes.js +0 -2
  28. package/build/esm/Ripple/keyframes.js.map +1 -1
  29. package/build/esm/Ripple/useRipple.js +4 -4
  30. package/build/esm/Ripple/useRipple.js.map +1 -1
  31. package/build/esm/Select/SelectIcon.d.ts +1 -1
  32. package/build/esm/SelectItem/SelectItem.d.ts +1 -1
  33. package/build/esm/Snackbar/Snackbar.d.ts +1 -1
  34. package/build/esm/Snackbar/Stack.d.ts +2 -0
  35. package/build/esm/Snackbar/Stack.js.map +1 -1
  36. package/build/esm/Switch/Switch.d.ts +1 -1
  37. package/build/esm/Tab/Tab.d.ts +1 -1
  38. package/build/esm/Tab/TabList.d.ts +1 -1
  39. package/build/esm/Tab/TabPanel.d.ts +1 -1
  40. package/build/esm/TabIndicator/TabIndicator.d.ts +1 -1
  41. package/build/esm/Table/TableHead.d.ts +1 -1
  42. package/build/esm/TextField/FilledContainer.d.ts +1 -1
  43. package/build/esm/TextField/Input.d.ts +1 -1
  44. package/build/esm/TextField/OutlinedContainer.d.ts +1 -1
  45. package/build/esm/TextField/TextField.d.ts +1 -1
  46. package/build/esm/ThemeExplorer/ColorPicker.d.ts +8 -0
  47. package/build/esm/ThemeExplorer/ColorPicker.js +76 -0
  48. package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -0
  49. package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +9 -0
  50. package/build/esm/ThemeExplorer/TextFieldColorPicker.js +100 -0
  51. package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -0
  52. package/build/esm/ThemeExplorer/ThemeColors.d.ts +5 -0
  53. package/build/esm/ThemeExplorer/ThemeColors.js +80 -0
  54. package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -0
  55. package/build/esm/ThemeExplorer/components.d.ts +31 -0
  56. package/build/esm/ThemeExplorer/components.js +184 -0
  57. package/build/esm/ThemeExplorer/components.js.map +1 -0
  58. package/build/esm/ThemeExplorer/makeColorScheme.d.ts +66 -0
  59. package/build/esm/ThemeExplorer/makeColorScheme.js +66 -0
  60. package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -0
  61. package/build/esm/ThemeExplorer/useDeferredColor.d.ts +3 -0
  62. package/build/esm/ThemeExplorer/useDeferredColor.js +11 -0
  63. package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -0
  64. package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -0
  65. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +11 -0
  66. package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -0
  67. package/build/esm/Tooltip/Tooltip.d.ts +1 -1
  68. package/build/tsconfig.tsbuildinfo +80 -120
  69. package/package.json +10 -8
  70. package/src/Ripple/keyframes.ts +0 -2
  71. package/src/Ripple/useRipple.ts +6 -4
  72. package/src/Snackbar/Stack.tsx +1 -0
@@ -930,11 +930,9 @@ const opacityIn = react.keyframes({
930
930
  });
931
931
  const opacityOut = react.keyframes({
932
932
  from: {
933
- transform: `translate(var(${RIPPLE_TRANSLATE_END}, 0)) scale(var(${RIPPLE_SCALE_END}, 1))`,
934
933
  opacity: `var(${RIPPLE_OPACITY_END})`
935
934
  },
936
935
  to: {
937
- transform: `translate(var(${RIPPLE_TRANSLATE_END}, 0)) scale(var(${RIPPLE_SCALE_END}, 1))`,
938
936
  opacity: '0'
939
937
  }
940
938
  });
@@ -1005,7 +1003,7 @@ const useRipple = opts => {
1005
1003
 
1006
1004
  react$1.useEffect(() => {
1007
1005
  return () => {
1008
- clearTimeout(restartTimeout.current);
1006
+ restartTimeout.current && cancelAnimationFrame(restartTimeout.current);
1009
1007
  clearTimeout(enteringTimeout.current);
1010
1008
  clearTimeout(leavingTimeout.current);
1011
1009
  };
@@ -1046,11 +1044,11 @@ const useRipple = opts => {
1046
1044
  shouldLeave.current = false;
1047
1045
  rippleState.current = 'restart';
1048
1046
  setRipple(_extends__default['default']({}, defaultRipple));
1049
- restartTimeout.current = window.setTimeout(() => {
1047
+ restartTimeout.current = requestAnimationFrame(() => {
1050
1048
  rippleState.current = 'entering';
1051
1049
  setRipple(calculateRipplePosition(rect, clientX, clientY, center));
1052
1050
  enteringTimeout.current = window.setTimeout(setEntered, enterDuration);
1053
- }, 16);
1051
+ });
1054
1052
  }; // Styling
1055
1053
 
1056
1054
 
@@ -1063,7 +1061,7 @@ const useRipple = opts => {
1063
1061
  break;
1064
1062
 
1065
1063
  case 'leaving':
1066
- animation = `${opacityOut} ${leaveDuration}ms forwards`;
1064
+ animation = `${radiusIn} ${enterDuration}ms forwards,` + `${opacityOut} ${leaveDuration}ms forwards`;
1067
1065
  break;
1068
1066
  }
1069
1067