File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
extensions/plugin-basic-ui/src Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @stackflow/plugin-basic-ui " : minor
3+ ---
4+
5+ Expose interfaces to modify width of edge
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ const GLOBAL_VARS = {
4343 borderRadius : "modal-border-radius" ,
4444 maxWidth : "modal-max-width" ,
4545 } ,
46+ edge : {
47+ width : 'edge-width' ,
48+ }
4649} ;
4750
4851export const globalVars = createGlobalThemeContract (
@@ -88,6 +91,9 @@ const androidValues: GlobalVars = {
8891 borderRadius : "1rem" ,
8992 maxWidth : "100%" ,
9093 } ,
94+ edge : {
95+ width : "1.25rem" ,
96+ }
9197} ;
9298
9399const cupertinoValues : GlobalVars = {
Original file line number Diff line number Diff line change @@ -69,8 +69,7 @@ export const basicUIPlugin: (
6969 [ css . globalVars . backgroundColor ] : _options . backgroundColor ,
7070 [ css . globalVars . backgroundImage ] : _options . backgroundImage ,
7171 [ css . globalVars . dimBackgroundColor ] : _options . dimBackgroundColor ,
72- [ css . globalVars . transitionDuration ] :
73- `${ stack . transitionDuration } ms` ,
72+ [ css . globalVars . transitionDuration ] : `${ stack . transitionDuration } ms` ,
7473 [ css . globalVars . computedTransitionDuration ] :
7574 stack . globalTransitionState === "loading"
7675 ? `${ stack . transitionDuration } ms`
@@ -91,7 +90,8 @@ export const basicUIPlugin: (
9190 [ css . globalVars . appBar . lineHeight ] : _options . appBar ?. lineHeight ,
9291 [ css . globalVars . appBar . hitSlop ] : _options . appBar ?. hitSlop ,
9392 [ css . globalVars . appBar . itemGap ] : _options . appBar ?. itemGap ,
94- } ) ,
93+ [ css . globalVars . edge . width ] : _options . edge ?. width ,
94+ } )
9595 ) }
9696 >
9797 { stack . render ( ) }
Original file line number Diff line number Diff line change @@ -195,7 +195,7 @@ export const edge = recipe({
195195 f . left0 ,
196196 f . fullHeight ,
197197 {
198- width : "1.25rem" ,
198+ width : globalVars . edge . width ,
199199 zIndex : vars . zIndexes . edge ,
200200 } ,
201201 ] ,
You can’t perform that action at this time.
0 commit comments