@@ -25,9 +25,11 @@ export const Gallery = story({
2525 elements : {
2626 root : { type : 'Stack' , props : { gap : 12 } , children : [ 'title' , 'row' , 'card' , 'progress' , 'table' , 'tree' ] } ,
2727 title : { type : 'Text' , props : { text : 'JSON-render gallery' , variant : 'heading' } , children : [ ] } ,
28- row : { type : 'Stack' , props : { direction : 'row' , gap : 8 } , children : [ 'b1' , 'b2' , 'badge' ] } ,
28+ row : { type : 'Stack' , props : { direction : 'row' , gap : 8 , wrap : true } , children : [ 'b1' , 'b2' , 'b3' , 'b4 ', 'badge' ] } ,
2929 b1 : { type : 'Button' , props : { label : 'Primary' , variant : 'primary' } , children : [ ] } ,
30- b2 : { type : 'Button' , props : { label : 'Ghost' , variant : 'ghost' , icon : 'plus' } , children : [ ] } ,
30+ b2 : { type : 'Button' , props : { label : 'Secondary' , variant : 'secondary' } , children : [ ] } ,
31+ b3 : { type : 'Button' , props : { label : 'Ghost' , variant : 'ghost' , icon : 'ph:plus' } , children : [ ] } ,
32+ b4 : { type : 'Button' , props : { label : 'Danger' , variant : 'danger' } , children : [ ] } ,
3133 badge : { type : 'Badge' , props : { text : 'success' , variant : 'success' } , children : [ ] } ,
3234 card : { type : 'Card' , props : { title : 'Details' , collapsible : true } , children : [ 'kv' ] } ,
3335 kv : { type : 'KeyValueTable' , props : { data : { name : 'devframe' , version : '0.7.5' } } , children : [ ] } ,
@@ -49,6 +51,20 @@ export const Controls = story({
4951 state : { name : '' , enabled : true } ,
5052} )
5153
54+ export const ComponentSurfaces = story ( {
55+ root : 'root' ,
56+ elements : {
57+ root : { type : 'Stack' , props : { gap : 12 } , children : [ 'openCard' , 'collapsedCard' , 'table' ] } ,
58+ openCard : { type : 'Card' , props : { title : 'Raised panel' , collapsible : true } , children : [ 'input' , 'code' , 'inlineCode' ] } ,
59+ input : { type : 'TextInput' , props : { label : 'Sunken input' , value : 'devframe' } , children : [ ] } ,
60+ code : { type : 'CodeBlock' , props : { filename : 'panel.ts' , language : 'ts' , code : 'export const material = "sunken"' } , children : [ ] } ,
61+ inlineCode : { type : 'Text' , props : { text : 'bg-panel-sunken' , variant : 'code' } , children : [ ] } ,
62+ collapsedCard : { type : 'Card' , props : { title : 'Collapsed panel' , collapsible : true , defaultCollapsed : true } , children : [ 'collapsedText' ] } ,
63+ collapsedText : { type : 'Text' , props : { text : 'Hidden until expanded.' } , children : [ ] } ,
64+ table : { type : 'DataTable' , props : { rows : [ { layer : 'raised' , alpha : '13%' } , { layer : 'sunken' , alpha : '5%' } ] } , children : [ ] } ,
65+ } ,
66+ } )
67+
5268export const Loading : StoryObj = story ( { root : 'a' , elements : { a : { type : 'Text' , props : { } , children : [ ] } } } , { loading : true } )
5369
5470export const ConnectionError : StoryObj = story (
0 commit comments