@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/src/Ripple/keyframes.ts
CHANGED
|
@@ -27,11 +27,9 @@ export const opacityIn: Keyframes = keyframes({
|
|
|
27
27
|
|
|
28
28
|
export const opacityOut: Keyframes = keyframes({
|
|
29
29
|
from: {
|
|
30
|
-
transform: `translate(var(${RIPPLE_TRANSLATE_END}, 0)) scale(var(${RIPPLE_SCALE_END}, 1))`,
|
|
31
30
|
opacity: `var(${RIPPLE_OPACITY_END})`,
|
|
32
31
|
},
|
|
33
32
|
to: {
|
|
34
|
-
transform: `translate(var(${RIPPLE_TRANSLATE_END}, 0)) scale(var(${RIPPLE_SCALE_END}, 1))`,
|
|
35
33
|
opacity: '0',
|
|
36
34
|
},
|
|
37
35
|
});
|
package/src/Ripple/useRipple.ts
CHANGED
|
@@ -105,7 +105,7 @@ export const useRipple = (opts: RippleOptions) => {
|
|
|
105
105
|
// clear timeouts to avoid setting state on unmounted component
|
|
106
106
|
useEffect(() => {
|
|
107
107
|
return () => {
|
|
108
|
-
|
|
108
|
+
restartTimeout.current && cancelAnimationFrame(restartTimeout.current);
|
|
109
109
|
clearTimeout(enteringTimeout.current);
|
|
110
110
|
clearTimeout(leavingTimeout.current);
|
|
111
111
|
};
|
|
@@ -157,12 +157,12 @@ export const useRipple = (opts: RippleOptions) => {
|
|
|
157
157
|
|
|
158
158
|
rippleState.current = 'restart';
|
|
159
159
|
setRipple({ ...defaultRipple });
|
|
160
|
-
restartTimeout.current =
|
|
160
|
+
restartTimeout.current = requestAnimationFrame(() => {
|
|
161
161
|
rippleState.current = 'entering';
|
|
162
162
|
setRipple(calculateRipplePosition(rect, clientX, clientY, center));
|
|
163
163
|
|
|
164
164
|
enteringTimeout.current = window.setTimeout(setEntered, enterDuration);
|
|
165
|
-
}
|
|
165
|
+
});
|
|
166
166
|
};
|
|
167
167
|
|
|
168
168
|
// Styling
|
|
@@ -175,7 +175,9 @@ export const useRipple = (opts: RippleOptions) => {
|
|
|
175
175
|
`${opacityIn} ${enterDuration / 3}ms forwards`;
|
|
176
176
|
break;
|
|
177
177
|
case 'leaving':
|
|
178
|
-
animation =
|
|
178
|
+
animation =
|
|
179
|
+
`${radiusIn} ${enterDuration}ms forwards,` +
|
|
180
|
+
`${opacityOut} ${leaveDuration}ms forwards`;
|
|
179
181
|
break;
|
|
180
182
|
}
|
|
181
183
|
|