77  FloatingPanel , 
88}  from  "@webstudio-is/design-system" ; 
99import  {  toValue  }  from  "@webstudio-is/css-engine" ; 
10- import  type  {  StyleProperty  }  from  "@webstudio-is/css-engine" ; 
10+ import  type  {  CssProperty  }  from  "@webstudio-is/css-engine" ; 
1111import  { 
1212  ToggleGroupControl , 
1313  ToggleGroupTooltip , 
@@ -37,12 +37,12 @@ import { useComputedStyleDecl, useComputedStyles } from "../../shared/model";
3737import  {  createBatchUpdate ,  setProperty  }  from  "../../shared/use-style-data" ; 
3838
3939export  const  properties  =  [ 
40-   "flexShrink " , 
41-   "flexGrow " , 
42-   "flexBasis " , 
43-   "alignSelf " , 
40+   "flex-shrink " , 
41+   "flex-grow " , 
42+   "flex-basis " , 
43+   "align-self " , 
4444  "order" , 
45- ]  satisfies  [ StyleProperty ,  ...StyleProperty [ ] ] ; 
45+ ]  satisfies  [ CssProperty ,  ...CssProperty [ ] ] ; 
4646
4747export  const  Section  =  ( )  =>  { 
4848  return  ( 
@@ -62,11 +62,11 @@ const FlexChildSectionAlign = () => {
6262      < PropertyLabel 
6363        label = "Align" 
6464        description = { propertyDescriptions . alignSelf } 
65-         properties = { [ "alignSelf " ] } 
65+         properties = { [ "align-self " ] } 
6666      /> 
6767      < ToggleGroupControl 
6868        label = "Align" 
69-         properties = { [ "alignSelf " ] } 
69+         properties = { [ "align-self " ] } 
7070        items = { [ 
7171          { 
7272            child : < XSmallIcon  /> , 
@@ -122,7 +122,7 @@ const getSizingValue = (flexGrow: string, flexShrink: string) => {
122122} ; 
123123
124124const  FlexChildSectionSizing  =  ( )  =>  { 
125-   const  styles  =  useComputedStyles ( [ "flexGrow " ,  "flexShrink " ,  "flexBasis " ] ) ; 
125+   const  styles  =  useComputedStyles ( [ "flex-grow " ,  "flex-shrink " ,  "flex-basis " ] ) ; 
126126  const  [ flexGrow ,  flexShrink ,  flexBasis ]  =  styles ; 
127127  const  styleValueSource  =  getPriorityStyleValueSource ( styles ) ; 
128128  const  selectedValue  =  getSizingValue ( 
@@ -176,7 +176,7 @@ const FlexChildSectionSizing = () => {
176176      < PropertyLabel 
177177        label = "Sizing" 
178178        description = "Specifies the ability of a flex item to grow, shrink, or set its initial size within a flex container." 
179-         properties = { [ "flexGrow " ,  "flexShrink " ,  "flexBasis " ] } 
179+         properties = { [ "flex-grow " ,  "flex-shrink " ,  "flex-basis " ] } 
180180      /> 
181181
182182      { /* We don't support "flex" shorthand and 
@@ -202,12 +202,12 @@ const FlexChildSectionSizing = () => {
202202            flexShrink  =  1 ; 
203203          } 
204204          if  ( flexGrow  !==  undefined  &&  flexShrink  !==  undefined )  { 
205-             batch . setProperty ( "flexGrow " ) ( { 
205+             batch . setProperty ( "flex-grow " ) ( { 
206206              type : "unit" , 
207207              value : flexGrow , 
208208              unit : "number" , 
209209            } ) ; 
210-             batch . setProperty ( "flexShrink " ) ( { 
210+             batch . setProperty ( "flex-shrink " ) ( { 
211211              type : "unit" , 
212212              value : flexShrink , 
213213              unit : "number" , 
@@ -227,7 +227,7 @@ const FlexChildSectionSizing = () => {
227227            label = "Sizing" 
228228            code = { item . codeLines . join ( "\n" ) } 
229229            description = { item . description } 
230-             properties = { [ "flexGrow " ,  "flexShrink " ,  "flexBasis " ] } 
230+             properties = { [ "flex-grow " ,  "flex-shrink " ,  "flex-basis " ] } 
231231          > 
232232            < ToggleGroupButton 
233233              aria-checked = { item . value  ===  selectedValue } 
@@ -263,27 +263,27 @@ const FlexChildSectionSizingPopover = () => {
263263        > 
264264          < Grid  css = { {  gridTemplateColumns : "auto" ,  gap : theme . spacing [ 3 ]  } } > 
265265            < PropertyLabel 
266-               properties = { [ "flexGrow " ] } 
266+               properties = { [ "flex-grow " ] } 
267267              description = { propertyDescriptions . flexGrow } 
268268              label = "Grow" 
269269            /> 
270-             < TextControl  property = "flexGrow "  /> 
270+             < TextControl  property = "flex-grow "  /> 
271271          </ Grid > 
272272          < Grid  css = { {  gridTemplateColumns : "auto" ,  gap : theme . spacing [ 3 ]  } } > 
273273            < PropertyLabel 
274274              label = "Shrink" 
275275              description = { propertyDescriptions . flexShrink } 
276-               properties = { [ "flexShrink " ] } 
276+               properties = { [ "flex-shrink " ] } 
277277            /> 
278-             < TextControl  property = "flexShrink "  /> 
278+             < TextControl  property = "flex-shrink "  /> 
279279          </ Grid > 
280280          < Grid  css = { {  gridTemplateColumns : "auto" ,  gap : theme . spacing [ 3 ]  } } > 
281281            < PropertyLabel 
282282              label = "Basis" 
283283              description = { propertyDescriptions . flexBasis } 
284-               properties = { [ "flexBasis " ] } 
284+               properties = { [ "flex-basis " ] } 
285285            /> 
286-             < TextControl  property = "flexBasis "  /> 
286+             < TextControl  property = "flex-basis "  /> 
287287          </ Grid > 
288288        </ Grid > 
289289      } 
@@ -367,7 +367,7 @@ const FlexChildSectionOrder = () => {
367367            label = "Sizing" 
368368            code = { item . code } 
369369            description = { item . description } 
370-             properties = { [ "flexGrow " ,  "flexShrink " ,  "flexBasis " ] } 
370+             properties = { [ "flex-grow " ,  "flex-shrink " ,  "flex-basis " ] } 
371371          > 
372372            < ToggleGroupButton 
373373              aria-checked = { 
0 commit comments