@basic-ui/material 1.0.0-alpha.3 → 1.0.0-alpha.6
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 +13 -13
- package/build/cjs/index.js.map +1 -1
- package/build/esm/AppBar/AppBarButton.d.ts +1 -1
- package/build/esm/Button/Button.d.ts +1 -1
- package/build/esm/Button/ButtonGroup.d.ts +1 -1
- package/build/esm/CheckBox/CheckBox.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/Menu/Menu.d.ts +4 -4
- package/build/esm/NavRail/NavRailItem.d.ts +14 -0
- package/build/esm/NavRail/NavRailItem.js +131 -0
- package/build/esm/NavRail/NavRailItem.js.map +1 -0
- package/build/esm/NavRail/index.d.ts +1 -0
- package/build/esm/NavRail/index.js +2 -0
- package/build/esm/NavRail/index.js.map +1 -0
- package/build/esm/Ripple/useRippleSurface.d.ts +2 -2
- package/build/esm/Ripple/useRippleSurface.js +63 -58
- package/build/esm/Ripple/useRippleSurface.js.map +1 -1
- package/build/esm/Select/Select.d.ts +1 -1
- package/build/esm/SelectItem/SelectItem.d.ts +1 -1
- package/build/esm/Switch/Switch.d.ts +2 -3
- package/build/esm/Switch/Switch.js.map +1 -1
- package/build/esm/Tab/Tab.d.ts +1 -1
- package/build/esm/Tab/Tab.js +1 -1
- package/build/esm/Tab/Tab.js.map +1 -1
- package/build/esm/ThemeExplorer/components.js +2 -1
- package/build/esm/ThemeExplorer/components.js.map +1 -1
- package/build/esm/ThemeExplorer/makeColorScheme.js +2 -1
- package/build/esm/ThemeExplorer/makeColorScheme.js.map +1 -1
- package/build/esm/ThemeExplorer/useDeferredColor.js +2 -1
- package/build/esm/ThemeExplorer/useDeferredColor.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/NavRail/NavRail.story.tsx +109 -0
- package/src/NavRail/NavRailItem.tsx +158 -0
- package/src/NavRail/index.ts +1 -0
- package/src/Ripple/useRippleSurface.ts +72 -58
- package/src/Switch/Switch.tsx +1 -1
- package/src/Tab/Tab.tsx +1 -1
- package/src/ThemeExplorer/ThemeBuilder.story.tsx +1 -1
- package/src/ThemeExplorer/components.tsx +1 -1
- package/src/ThemeExplorer/makeColorScheme.tsx +1 -1
- package/src/ThemeExplorer/useDeferredColor.tsx +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -1298,7 +1298,7 @@ function useRippleHandlers(opts) {
|
|
|
1298
1298
|
}, rest);
|
|
1299
1299
|
}
|
|
1300
1300
|
|
|
1301
|
-
function useRippleSurface(opts) {
|
|
1301
|
+
function useRippleSurface(opts = {}) {
|
|
1302
1302
|
let {
|
|
1303
1303
|
// eslint-disable-next-line prefer-const
|
|
1304
1304
|
baseOpacity = 0,
|
|
@@ -1336,15 +1336,16 @@ function useRippleSurface(opts) {
|
|
|
1336
1336
|
backgroundColor: rippleColor,
|
|
1337
1337
|
disabled
|
|
1338
1338
|
}, rippleProps));
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1339
|
+
const css$1 = react$1.useMemo(() => _extends__default['default']({
|
|
1340
|
+
'&': {
|
|
1341
|
+
overflow: 'hidden',
|
|
1342
|
+
position: 'relative',
|
|
1343
|
+
cursor: 'pointer',
|
|
1344
|
+
// fix overflow: hidden + borderRadius in Safari
|
|
1345
|
+
// https://gist.github.com/ayamflow/b602ab436ac9f05660d9c15190f4fd7b#gistcomment-2359479
|
|
1346
|
+
willChange: 'transform,opacity',
|
|
1347
|
+
WebkitTapHighlightColor: 'transparent'
|
|
1348
|
+
},
|
|
1348
1349
|
// ripple overlay
|
|
1349
1350
|
'&::before': {
|
|
1350
1351
|
backgroundColor: rippleColor,
|
|
@@ -1394,8 +1395,7 @@ function useRippleSurface(opts) {
|
|
|
1394
1395
|
'&::after': _extends__default['default']({}, rippleStyle({
|
|
1395
1396
|
animation
|
|
1396
1397
|
}))
|
|
1397
|
-
});
|
|
1398
|
-
|
|
1398
|
+
}), [animation, baseOpacity, focusOpacity, hoverOpacity, pressedOpacity, rippleColor, rippleEnabled]);
|
|
1399
1399
|
return {
|
|
1400
1400
|
style: _extends__default['default']({}, animationStyle, style),
|
|
1401
1401
|
onKeyDown: core.wrapEvent(onKeyDown, handleKeyDown),
|
|
@@ -5088,7 +5088,7 @@ const TabInner = /*#__PURE__*/react$1.forwardRef(function Tab(props, forwardedRe
|
|
|
5088
5088
|
return /*#__PURE__*/jsxRuntime.jsxs(Box, {
|
|
5089
5089
|
position: "relative",
|
|
5090
5090
|
display: "flex",
|
|
5091
|
-
|
|
5091
|
+
flex: 1,
|
|
5092
5092
|
flexDirection: "column",
|
|
5093
5093
|
children: [/*#__PURE__*/jsxRuntime.jsx(RippleBox, _extends__default['default']({
|
|
5094
5094
|
as: innerAs,
|