@@ -8,6 +8,13 @@ const meta: Meta = {
88 argTypes : {
99 deleteEvent : { action : 'deleteEvent' } ,
1010 editEvent : { action : 'editEvent' } ,
11+
12+ colorPrimary : { control : 'color' } ,
13+ colorSecondary : { control : 'color' } ,
14+ colorBackground : { control : 'color' } ,
15+ colorEdit : { control : 'color' } ,
16+ colorDelete : { control : 'color' } ,
17+ colorText : { control : 'color' } ,
1118 } ,
1219} ;
1320
@@ -91,4 +98,48 @@ export const LocalData: Story = {
9198 </sau-table>
9299 ` ,
93100 } ) ,
101+ } ;
102+
103+ export const CustomStyles : Story = {
104+ args : {
105+ // Valores por defecto basados en tu CSS
106+ colorPrimary : 'rgb(147, 51, 234)' ,
107+ colorSecondary : 'rgb(147, 51, 234)' ,
108+ colorBackground : 'rgb(255, 255, 255)' ,
109+ colorEdit : 'rgb(34, 197, 94)' ,
110+ colorDelete : 'rgb(239, 68, 68)' ,
111+ colorText : 'rgb(31, 41, 55)' ,
112+ headers : [
113+ { name : 'USUARIO' , key : 'name' } ,
114+ { name : 'ESTADO' , key : 'status' , type : 'boolean' } ,
115+ ] ,
116+ fixedContent : [
117+ { name : 'Gemini User' , status : true } ,
118+ { name : 'Tester' , status : false } ,
119+ ]
120+ } ,
121+ render : ( args ) => ( {
122+ props : args ,
123+ template : `
124+ <style>
125+ .custom-container .sau-table {
126+ --sau-color-primary: {{colorPrimary}};
127+ --sau-color-secondary: {{colorSecondary}};
128+ --sau-color-background: {{colorBackground}};
129+ --sau-color-edit: {{colorEdit}};
130+ --sau-color-delete: {{colorDelete}};
131+ --sau-color-text: {{colorText}};
132+ }
133+ </style>
134+
135+ <div class="custom-container">
136+ <sau-table
137+ [headers]="headers"
138+ [fixedContent]="fixedContent"
139+ (deleteEvent)="deleteEvent($event)"
140+ (editEvent)="editEvent($event)">
141+ </sau-table>
142+ </div>
143+ ` ,
144+ } ) ,
94145} ;
0 commit comments