@@ -37,15 +37,15 @@ export class DynamicComponent implements OnInit {
3737 codeExample3html = CODE_EXAMPLE_3_HTML ;
3838
3939 // example state
40- buttonTypeIsOutlined = true ;
40+ isButtonVariantPrimary = true ;
4141 counter1 = 0 ;
4242 counter2 = 0 ;
4343 counter3 = 0 ;
4444
4545 dynamicConfigs = [
4646 {
47- tag : 'mwc -button' ,
48- url :
'https://unpkg.com/@material/[email protected] .0/mwc- button.js?module ' , 47+ tag : 'sl -button' ,
48+ url :
'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected] .0/dist/components/ button/button .js' , 4949 isModule : true ,
5050 content : 'Increment' ,
5151 actionName : 'increment' ,
@@ -57,9 +57,10 @@ export class DynamicComponent implements OnInit {
5757 actionName : 'decrement' ,
5858 } ,
5959 {
60- tag : 'mwc-icon' ,
61- url :
'https://unpkg.com/@material/[email protected] /mwc-icon.js?module' , 62- content : 'replay' ,
60+ tag : 'sl-icon' ,
61+ url :
'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected] /dist/components/icon/icon.js' , 62+ isModule : true ,
63+ name : 'reset' ,
6364 actionName : 'reset' ,
6465 } ,
6566 ] ;
@@ -89,15 +90,15 @@ export class DynamicComponent implements OnInit {
8990 }
9091}
9192
92- export const CODE_EXAMPLE_1 = `<!-- url = 'https://unpkg.com/@material/[email protected] .0/mwc- button.js?module ' -->; 93- <ax-lazy-element *axLazyElementDynamic="'mwc -button', url: url; module: true"
94- [outlined]="true "
93+ export const CODE_EXAMPLE_1 = `<!-- url = 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected] .0/dist/components/ button/button .js' -->; 94+ <ax-lazy-element *axLazyElementDynamic="'sl -button', url: url; module: true"
95+ variant="primary "
9596 (click)="increment()">
9697 Increment
9798</ax-lazy-element>
9899
99100<!-- will be rendered as ...
100- <mwc -button outlined (click)="increment()">Increment</mwc -button>
101+ <sl -button variant="primary" (click)="increment()">Increment</sl -button>
101102-->` ;
102103
103104export const CODE_EXAMPLE_2_HTML = `<ax-lazy-element *axLazyElementDynamic="'wired-button'" (click)="increment()">
@@ -156,8 +157,8 @@ export const CODE_EXAMPLE_3_HTML = `@for(c of dynamicConfigs; track c.url) {
156157<!--
157158dynamicConfigs = [
158159 {
159- tag: 'mwc -button',
160- url: 'https://unpkg.com/@material/[email protected] .0/mwc- button.js?module ', 160+ tag: 'sl -button',
161+ url: 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected] .0/dist/components/ button/button .js', 161162 isModule: true,
162163 content: 'Increment',
163164 actionName: 'increment'
@@ -169,9 +170,9 @@ dynamicConfigs = [
169170 actionName: 'decrement'
170171 },
171172 {
172- tag: 'mwc -icon',
173- url: 'https://unpkg.com/@material/[email protected] .0/mwc- icon.js?module ', 174- content : 'replay ',
173+ tag: 'sl -icon',
174+ url: 'https://cdn.jsdelivr.net/npm/@shoelace-style/[email protected] .0/dist/components/ icon/icon .js', 175+ name : 'reset ',
175176 actionName: 'reset'
176177 }
177178];
0 commit comments