@@ -14,30 +14,31 @@ import { provideShape } from "./tokens/provide-shape";
14
14
import { provideSizing } from "./tokens/provide-sizing" ;
15
15
import { provideTypography } from "./tokens/provide-typography" ;
16
16
17
- export function provideAll ( params : {
18
- color ? : Partial < TColorProviderConstructorParams > ,
19
- elevation ? : Partial < TElevationProviderConstructorParams > ,
20
- motion ? : TMotionProviderConstructorParams ,
21
- shape ? : TShapeProviderConstructorParams ,
22
- typography ? : TTypographyProviderConstructorParams ,
23
- border ? : Partial < TBorderProviderConstructorParams > ,
24
- sizing ? : Partial < TSizingProviderConstructorParams > ,
25
- } ) {
17
+ export function provideAll ( params ?: Partial < {
18
+ color : Partial < TColorProviderConstructorParams > ,
19
+ elevation : Partial < TElevationProviderConstructorParams > ,
20
+ motion : TMotionProviderConstructorParams ,
21
+ shape : TShapeProviderConstructorParams ,
22
+ typography : TTypographyProviderConstructorParams ,
23
+ border : Partial < TBorderProviderConstructorParams > ,
24
+ sizing : Partial < TSizingProviderConstructorParams > ,
25
+ } > ) {
26
26
return ( {
27
- color : provideColor ( params . color ) ,
28
- elevation : provideElevation ( params . elevation ) ,
29
- motion : provideMotion ( params . motion ) ,
30
- shape : provideShape ( params . shape ) ,
31
- typography : provideTypography ( params . typography ) ,
32
- border : provideBorder ( params . border ) ,
33
- sizing : provideSizing ( params . sizing ) ,
27
+ color : provideColor ( params ? .color ) ,
28
+ elevation : provideElevation ( params ? .elevation ) ,
29
+ motion : provideMotion ( params ? .motion ) ,
30
+ shape : provideShape ( params ? .shape ) ,
31
+ typography : provideTypography ( params ? .typography ) ,
32
+ border : provideBorder ( params ? .border ) ,
33
+ sizing : provideSizing ( params ? .sizing ) ,
34
34
windowMediaQuery : provideWindowMediaQuery ( ) ,
35
35
getAllPlugins ( ) {
36
36
return ( [
37
37
this . color . getPlugin ( ) ,
38
38
this . elevation . getPlugin ( ) ,
39
39
this . motion . getPlugin ( ) ,
40
40
this . shape . getPlugin ( ) ,
41
+ this . sizing . getPlugin ( ) ,
41
42
this . typography . getPlugin ( ) ,
42
43
this . border . getPlugin ( ) ,
43
44
this . windowMediaQuery . getPlugin ( ) ,
0 commit comments