@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.
- package/build/cjs/index.js +4 -6
- package/build/cjs/index.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +1 -1
- package/build/esm/BottomSheet/BottomSheet.d.ts +1 -1
- package/build/esm/BottomSheet/BottomSheetSurface.d.ts +1 -1
- package/build/esm/Button/BaseButton.d.ts +1 -1
- package/build/esm/Button/Button.d.ts +1 -1
- package/build/esm/Button/FilledButton.d.ts +1 -1
- package/build/esm/Button/FloatingActionButton.d.ts +7 -0
- package/build/esm/Button/FloatingActionButton.js +8 -0
- package/build/esm/Button/FloatingActionButton.js.map +1 -0
- package/build/esm/Button/OutlinedButton.d.ts +1 -3
- package/build/esm/Button/TransparentButton.d.ts +1 -1
- package/build/esm/CheckBox/CheckBox.d.ts +1 -1
- package/build/esm/CheckBox/CheckBoxIcon.d.ts +1 -1
- package/build/esm/Chip/ButtonChip.d.ts +1 -1
- package/build/esm/Chip/ChoiceChip.d.ts +1 -1
- package/build/esm/Combobox/Combobox.d.ts +7 -7
- package/build/esm/Dialog/Dialog.d.ts +1 -1
- package/build/esm/Dialog/DialogBackdrop.d.ts +1 -1
- package/build/esm/Dialog/DialogSurface.d.ts +1 -1
- package/build/esm/Link/Link.d.ts +1 -1
- package/build/esm/List/List.d.ts +1 -1
- package/build/esm/ListItem/ListItem.d.ts +1 -1
- package/build/esm/Menu/Menu.d.ts +4 -4
- package/build/esm/RadioButton/RadioGroup.d.ts +1 -1
- package/build/esm/Ripple/keyframes.js +0 -2
- package/build/esm/Ripple/keyframes.js.map +1 -1
- package/build/esm/Ripple/useRipple.js +4 -4
- package/build/esm/Ripple/useRipple.js.map +1 -1
- package/build/esm/Select/SelectIcon.d.ts +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +1 -1
- package/build/esm/Snackbar/Snackbar.d.ts +1 -1
- package/build/esm/Snackbar/Stack.d.ts +2 -0
- package/build/esm/Snackbar/Stack.js.map +1 -1
- package/build/esm/Switch/Switch.d.ts +1 -1
- package/build/esm/Tab/Tab.d.ts +1 -1
- package/build/esm/Tab/TabList.d.ts +1 -1
- package/build/esm/Tab/TabPanel.d.ts +1 -1
- package/build/esm/TabIndicator/TabIndicator.d.ts +1 -1
- package/build/esm/Table/TableHead.d.ts +1 -1
- package/build/esm/TextField/FilledContainer.d.ts +1 -1
- package/build/esm/TextField/Input.d.ts +1 -1
- package/build/esm/TextField/OutlinedContainer.d.ts +1 -1
- package/build/esm/TextField/TextField.d.ts +1 -1
- package/build/esm/ThemeExplorer/ColorPicker.d.ts +8 -0
- package/build/esm/ThemeExplorer/ColorPicker.js +76 -0
- package/build/esm/ThemeExplorer/ColorPicker.js.map +1 -0
- package/build/esm/ThemeExplorer/TextFieldColorPicker.d.ts +9 -0
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js +100 -0
- package/build/esm/ThemeExplorer/TextFieldColorPicker.js.map +1 -0
- package/build/esm/ThemeExplorer/ThemeColors.d.ts +5 -0
- package/build/esm/ThemeExplorer/ThemeColors.js +80 -0
- package/build/esm/ThemeExplorer/ThemeColors.js.map +1 -0
- package/build/esm/ThemeExplorer/components.d.ts +31 -0
- package/build/esm/ThemeExplorer/components.js +184 -0
- package/build/esm/ThemeExplorer/components.js.map +1 -0
- package/build/esm/ThemeExplorer/makeColorScheme.d.ts +66 -0
- package/build/esm/ThemeExplorer/makeColorScheme.js +66 -0
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -0
- package/build/esm/ThemeExplorer/useDeferredColor.d.ts +3 -0
- package/build/esm/ThemeExplorer/useDeferredColor.js +11 -0
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -0
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.d.ts +1 -0
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js +11 -0
- package/build/esm/ThemeExplorer/useLocalStorageCachedState.js.map +1 -0
- package/build/esm/Tooltip/Tooltip.d.ts +1 -1
- package/build/tsconfig.tsbuildinfo +80 -120
- package/package.json +10 -8
- package/src/Ripple/keyframes.ts +0 -2
- package/src/Ripple/useRipple.ts +6 -4
- package/src/Snackbar/Stack.tsx +1 -0
package/build/cjs/index.js
CHANGED
|
@@ -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
|
-
|
|
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 =
|
|
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
|
-
}
|
|
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
|
|