@@ -10,19 +10,30 @@ var __assign = (this && this.__assign) || function () {
1010 } ;
1111 return __assign . apply ( this , arguments ) ;
1212} ;
13+ var __rest = ( this && this . __rest ) || function ( s , e ) {
14+ var t = { } ;
15+ for ( var p in s ) if ( Object . prototype . hasOwnProperty . call ( s , p ) && e . indexOf ( p ) < 0 )
16+ t [ p ] = s [ p ] ;
17+ if ( s != null && typeof Object . getOwnPropertySymbols === "function" )
18+ for ( var i = 0 , p = Object . getOwnPropertySymbols ( s ) ; i < p . length ; i ++ ) {
19+ if ( e . indexOf ( p [ i ] ) < 0 && Object . prototype . propertyIsEnumerable . call ( s , p [ i ] ) )
20+ t [ p [ i ] ] = s [ p [ i ] ] ;
21+ }
22+ return t ;
23+ } ;
1324var __importDefault = ( this && this . __importDefault ) || function ( mod ) {
1425 return ( mod && mod . __esModule ) ? mod : { "default" : mod } ;
1526} ;
1627Object . defineProperty ( exports , "__esModule" , { value : true } ) ;
1728var react_1 = __importDefault ( require ( "react" ) ) ;
1829var material_1 = require ( "@mui/material" ) ;
1930var ElevatedAppBar = function ( _a ) {
20- var props = _a . props , children = _a . children ;
31+ var children = _a . children , otherProps = __rest ( _a , [ " children" ] ) ;
2132 var trigger = ( 0 , material_1 . useScrollTrigger ) ( {
2233 disableHysteresis : true ,
2334 threshold : 0
2435 } ) ;
25- return react_1 . default . cloneElement ( react_1 . default . createElement ( material_1 . AppBar , __assign ( { } , props ) ,
36+ return react_1 . default . cloneElement ( react_1 . default . createElement ( material_1 . AppBar , __assign ( { } , otherProps ) ,
2637 react_1 . default . createElement ( material_1 . Toolbar , null , children ) ) , {
2738 elevation : trigger ? 4 : 0 ,
2839 position : trigger ? 'fixed' : 'sticky'
0 commit comments