React import paths (#1507)

* fix react imports in examples

* move types to definition files

* update changelog

* update changelog
This commit is contained in:
Cory LaViska
2023-08-11 10:09:44 -07:00
committed by GitHub
parent f8c37e0d14
commit 1383ea3fe8
170 changed files with 1058 additions and 896 deletions

View File

@@ -40,9 +40,3 @@ export default class {{ properCase tag }} extends ShoelaceElement {
return html` <slot></slot> `;
}
}
declare global {
interface HTMLElementTagNameMap {
'{{ tag }}': {{ properCase tag }};
}
}

View File

@@ -1,4 +1,12 @@
import {{ properCase tag }} from './{{ tagWithoutPrefix tag }}.component.js';
export * from './{{ tagWithoutPrefix tag }}.component.js';
export default {{ properCase tag }};
{{ properCase tag }}.define('{{ tag }}');
declare global {
interface HTMLElementTagNameMap {
'{{ tag }}': {{ properCase tag }};
}
}