diff --git a/src/components/alert/alert.ts b/src/components/alert/alert.ts index 44d5530f..70571f1c 100644 --- a/src/components/alert/alert.ts +++ b/src/components/alert/alert.ts @@ -212,3 +212,9 @@ export default class SlAlert extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-alert': SlAlert; + } + } \ No newline at end of file diff --git a/src/components/animation/animation.ts b/src/components/animation/animation.ts index 79bc936a..3e026899 100644 --- a/src/components/animation/animation.ts +++ b/src/components/animation/animation.ts @@ -202,3 +202,9 @@ export default class SlAnimation extends LitElement { return html` `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-animation': SlAnimation; + } + } \ No newline at end of file diff --git a/src/components/avatar/avatar.ts b/src/components/avatar/avatar.ts index 73ba56e8..084ee359 100644 --- a/src/components/avatar/avatar.ts +++ b/src/components/avatar/avatar.ts @@ -65,3 +65,9 @@ export default class SlAvatar extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-avatar': SlAvatar; + } + } \ No newline at end of file diff --git a/src/components/badge/badge.ts b/src/components/badge/badge.ts index 9e461ec6..3278ac5e 100644 --- a/src/components/badge/badge.ts +++ b/src/components/badge/badge.ts @@ -45,3 +45,9 @@ export default class SlBadge extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-badge': SlBadge; + } + } \ No newline at end of file diff --git a/src/components/button-group/button-group.ts b/src/components/button-group/button-group.ts index ea831961..dc9e1a52 100644 --- a/src/components/button-group/button-group.ts +++ b/src/components/button-group/button-group.ts @@ -41,3 +41,9 @@ export default class SlButtonGroup extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-button-group': SlButtonGroup; + } + } \ No newline at end of file diff --git a/src/components/button/button.ts b/src/components/button/button.ts index cfb7dd29..1e07faa1 100644 --- a/src/components/button/button.ts +++ b/src/components/button/button.ts @@ -227,3 +227,9 @@ export default class SlButton extends LitElement { return isLink ? link : button; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-button': SlButton; + } + } \ No newline at end of file diff --git a/src/components/card/card.ts b/src/components/card/card.ts index 8f26efeb..7d49c509 100644 --- a/src/components/card/card.ts +++ b/src/components/card/card.ts @@ -68,3 +68,9 @@ export default class SlCard extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-card': SlCard; + } + } \ No newline at end of file diff --git a/src/components/checkbox/checkbox.ts b/src/components/checkbox/checkbox.ts index 04afbab8..bddaeafc 100644 --- a/src/components/checkbox/checkbox.ts +++ b/src/components/checkbox/checkbox.ts @@ -183,3 +183,9 @@ export default class SlCheckbox extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-checkbox': SlCheckbox; + } + } \ No newline at end of file diff --git a/src/components/color-picker/color-picker.ts b/src/components/color-picker/color-picker.ts index 0e367cbb..3525682c 100644 --- a/src/components/color-picker/color-picker.ts +++ b/src/components/color-picker/color-picker.ts @@ -821,3 +821,9 @@ export default class SlColorPicker extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-color-picker': SlColorPicker; + } + } \ No newline at end of file diff --git a/src/components/details/details.ts b/src/components/details/details.ts index eed6ffab..c824456a 100644 --- a/src/components/details/details.ts +++ b/src/components/details/details.ts @@ -211,3 +211,9 @@ export default class SlDetails extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-details': SlDetails; + } + } \ No newline at end of file diff --git a/src/components/dialog/dialog.ts b/src/components/dialog/dialog.ts index 32a902e4..8ff648c9 100644 --- a/src/components/dialog/dialog.ts +++ b/src/components/dialog/dialog.ts @@ -261,3 +261,9 @@ export default class SlDialog extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-dialog': SlDialog; + } + } \ No newline at end of file diff --git a/src/components/drawer/drawer.ts b/src/components/drawer/drawer.ts index 180c65e0..e02ecf39 100644 --- a/src/components/drawer/drawer.ts +++ b/src/components/drawer/drawer.ts @@ -272,3 +272,9 @@ export default class SlDrawer extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-drawer': SlDrawer; + } + } \ No newline at end of file diff --git a/src/components/dropdown/dropdown.ts b/src/components/dropdown/dropdown.ts index 9a22a6b8..e29071ab 100644 --- a/src/components/dropdown/dropdown.ts +++ b/src/components/dropdown/dropdown.ts @@ -407,3 +407,9 @@ export default class SlDropdown extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-dropdown': SlDropdown; + } + } \ No newline at end of file diff --git a/src/components/form/form.ts b/src/components/form/form.ts index e682d90c..711b40a2 100644 --- a/src/components/form/form.ts +++ b/src/components/form/form.ts @@ -279,3 +279,9 @@ export default class SlForm extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-form': SlForm; + } + } \ No newline at end of file diff --git a/src/components/format-bytes/format-bytes.ts b/src/components/format-bytes/format-bytes.ts index 864cc76c..bc026221 100644 --- a/src/components/format-bytes/format-bytes.ts +++ b/src/components/format-bytes/format-bytes.ts @@ -24,3 +24,9 @@ export default class SlFormatBytes extends LitElement { }); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-format-bytes': SlFormatBytes; + } + } \ No newline at end of file diff --git a/src/components/format-date/format-date.ts b/src/components/format-date/format-date.ts index 4924715b..47fcbb60 100644 --- a/src/components/format-date/format-date.ts +++ b/src/components/format-date/format-date.ts @@ -70,3 +70,9 @@ export default class SlFormatDate extends LitElement { }).format(date); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-format-date': SlFormatDate; + } + } \ No newline at end of file diff --git a/src/components/format-number/format-number.ts b/src/components/format-number/format-number.ts index bbe9f321..b33145b0 100644 --- a/src/components/format-number/format-number.ts +++ b/src/components/format-number/format-number.ts @@ -58,3 +58,9 @@ export default class SlFormatNumber extends LitElement { }).format(this.value); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-format-number': SlFormatNumber; + } + } \ No newline at end of file diff --git a/src/components/icon-button/icon-button.ts b/src/components/icon-button/icon-button.ts index 40ebafb5..d5fc8842 100644 --- a/src/components/icon-button/icon-button.ts +++ b/src/components/icon-button/icon-button.ts @@ -68,3 +68,9 @@ export default class SlIconButton extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-icon-button': SlIconButton; + } + } \ No newline at end of file diff --git a/src/components/icon/icon.ts b/src/components/icon/icon.ts index 21d438ce..8dc4f721 100644 --- a/src/components/icon/icon.ts +++ b/src/components/icon/icon.ts @@ -120,3 +120,9 @@ export default class SlIcon extends LitElement { return html` `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-icon': SlIcon; + } + } \ No newline at end of file diff --git a/src/components/image-comparer/image-comparer.ts b/src/components/image-comparer/image-comparer.ts index 998fed0e..9a84e3f0 100644 --- a/src/components/image-comparer/image-comparer.ts +++ b/src/components/image-comparer/image-comparer.ts @@ -135,3 +135,9 @@ export default class SlImageComparer extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-image-comparer': SlImageComparer; + } + } \ No newline at end of file diff --git a/src/components/include/include.ts b/src/components/include/include.ts index 26042128..50bf67df 100644 --- a/src/components/include/include.ts +++ b/src/components/include/include.ts @@ -78,3 +78,9 @@ export default class SlInclude extends LitElement { return html``; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-include': SlInclude; + } + } \ No newline at end of file diff --git a/src/components/input/input.ts b/src/components/input/input.ts index c0e23f41..29ab8522 100644 --- a/src/components/input/input.ts +++ b/src/components/input/input.ts @@ -376,3 +376,9 @@ export default class SlInput extends LitElement { ); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-input': SlInput; + } + } \ No newline at end of file diff --git a/src/components/menu-divider/menu-divider.ts b/src/components/menu-divider/menu-divider.ts index bf7d5ac7..7b8f3dd3 100644 --- a/src/components/menu-divider/menu-divider.ts +++ b/src/components/menu-divider/menu-divider.ts @@ -18,3 +18,9 @@ export default class SlMenuDivider extends LitElement { return html` `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-menu-divider': SlMenuDivider; + } + } \ No newline at end of file diff --git a/src/components/menu-item/menu-item.ts b/src/components/menu-item/menu-item.ts index d39a6eda..434ae11b 100644 --- a/src/components/menu-item/menu-item.ts +++ b/src/components/menu-item/menu-item.ts @@ -100,3 +100,9 @@ export default class SlMenuItem extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-menu-item': SlMenuItem; + } + } \ No newline at end of file diff --git a/src/components/menu-label/menu-label.ts b/src/components/menu-label/menu-label.ts index dd7c7735..1315d6dd 100644 --- a/src/components/menu-label/menu-label.ts +++ b/src/components/menu-label/menu-label.ts @@ -24,3 +24,9 @@ export default class SlMenuLabel extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-menu-label': SlMenuLabel; + } + } \ No newline at end of file diff --git a/src/components/menu/menu.ts b/src/components/menu/menu.ts index b4785438..e93e8a02 100644 --- a/src/components/menu/menu.ts +++ b/src/components/menu/menu.ts @@ -124,3 +124,9 @@ export default class SlMenu extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-menu': SlMenu; + } + } \ No newline at end of file diff --git a/src/components/progress-bar/progress-bar.ts b/src/components/progress-bar/progress-bar.ts index ab25c3a0..4823d1fe 100644 --- a/src/components/progress-bar/progress-bar.ts +++ b/src/components/progress-bar/progress-bar.ts @@ -50,3 +50,9 @@ export default class SlProgressBar extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-progress-bar': SlProgressBar; + } + } \ No newline at end of file diff --git a/src/components/progress-ring/progress-ring.ts b/src/components/progress-ring/progress-ring.ts index 77b4e101..ccdbe1cd 100644 --- a/src/components/progress-ring/progress-ring.ts +++ b/src/components/progress-ring/progress-ring.ts @@ -76,3 +76,9 @@ export default class SlProgressRing extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-progress-ring': SlProgressRing; + } + } \ No newline at end of file diff --git a/src/components/radio/radio.ts b/src/components/radio/radio.ts index 6df38b74..9b69d8d6 100644 --- a/src/components/radio/radio.ts +++ b/src/components/radio/radio.ts @@ -180,3 +180,9 @@ export default class SlRadio extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-radio': SlRadio; + } + } \ No newline at end of file diff --git a/src/components/range/range.ts b/src/components/range/range.ts index b1b66d37..6e75a623 100644 --- a/src/components/range/range.ts +++ b/src/components/range/range.ts @@ -210,3 +210,9 @@ export default class SlRange extends LitElement { ); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-range': SlRange; + } + } \ No newline at end of file diff --git a/src/components/rating/rating.ts b/src/components/rating/rating.ts index f3278528..3daecbb3 100644 --- a/src/components/rating/rating.ts +++ b/src/components/rating/rating.ts @@ -242,3 +242,9 @@ export default class SlRating extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-rating': SlRating; + } + } \ No newline at end of file diff --git a/src/components/relative-time/relative-time.ts b/src/components/relative-time/relative-time.ts index 3a33404d..eedadbf7 100644 --- a/src/components/relative-time/relative-time.ts +++ b/src/components/relative-time/relative-time.ts @@ -116,3 +116,9 @@ export default class SlRelativeTime extends LitElement { return html` `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-relative-time': SlRelativeTime; + } + } \ No newline at end of file diff --git a/src/components/resize-observer/resize-observer.ts b/src/components/resize-observer/resize-observer.ts index 69418133..a62ef3e3 100644 --- a/src/components/resize-observer/resize-observer.ts +++ b/src/components/resize-observer/resize-observer.ts @@ -45,3 +45,9 @@ export default class SlResizeObserver extends LitElement { return html` `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-resize-observer': SlResizeObserver; + } + } \ No newline at end of file diff --git a/src/components/responsive-embed/responsive-embed.ts b/src/components/responsive-embed/responsive-embed.ts index 2a388fe2..bf5929b9 100644 --- a/src/components/responsive-embed/responsive-embed.ts +++ b/src/components/responsive-embed/responsive-embed.ts @@ -37,3 +37,9 @@ export default class SlResponsiveEmbed extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-responsive-embed': SlResponsiveEmbed; + } + } \ No newline at end of file diff --git a/src/components/select/select.ts b/src/components/select/select.ts index ee233edc..2f7053ed 100644 --- a/src/components/select/select.ts +++ b/src/components/select/select.ts @@ -465,3 +465,9 @@ export default class SlSelect extends LitElement { ); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-select': SlSelect; + } + } \ No newline at end of file diff --git a/src/components/skeleton/skeleton.ts b/src/components/skeleton/skeleton.ts index 731c3ca5..f2396a4c 100644 --- a/src/components/skeleton/skeleton.ts +++ b/src/components/skeleton/skeleton.ts @@ -34,3 +34,9 @@ export default class SlSkeleton extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-skeleton': SlSkeleton; + } + } \ No newline at end of file diff --git a/src/components/spinner/spinner.ts b/src/components/spinner/spinner.ts index 47e68403..8b45f10b 100644 --- a/src/components/spinner/spinner.ts +++ b/src/components/spinner/spinner.ts @@ -16,3 +16,9 @@ export default class SlSpinner extends LitElement { return html` `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-spinner': SlSpinner; + } + } \ No newline at end of file diff --git a/src/components/switch/switch.ts b/src/components/switch/switch.ts index 57c57ecf..2e9bf55d 100644 --- a/src/components/switch/switch.ts +++ b/src/components/switch/switch.ts @@ -156,3 +156,9 @@ export default class SlSwitch extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-switch': SlSwitch; + } + } \ No newline at end of file diff --git a/src/components/tab-group/tab-group.ts b/src/components/tab-group/tab-group.ts index 38e93a8c..31b38d51 100644 --- a/src/components/tab-group/tab-group.ts +++ b/src/components/tab-group/tab-group.ts @@ -360,3 +360,9 @@ export default class SlTabGroup extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-tab-group': SlTabGroup; + } + } \ No newline at end of file diff --git a/src/components/tab-panel/tab-panel.ts b/src/components/tab-panel/tab-panel.ts index 5326f601..86b0136e 100644 --- a/src/components/tab-panel/tab-panel.ts +++ b/src/components/tab-panel/tab-panel.ts @@ -44,3 +44,9 @@ export default class SlTabPanel extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-tab-panel': SlTabPanel; + } + } \ No newline at end of file diff --git a/src/components/tab/tab.ts b/src/components/tab/tab.ts index 4349bc95..6dfe4834 100644 --- a/src/components/tab/tab.ts +++ b/src/components/tab/tab.ts @@ -88,3 +88,9 @@ export default class SlTab extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-tab': SlTab; + } + } \ No newline at end of file diff --git a/src/components/tag/tag.ts b/src/components/tag/tag.ts index 093ae1cb..9ffee85f 100644 --- a/src/components/tag/tag.ts +++ b/src/components/tag/tag.ts @@ -81,3 +81,9 @@ export default class SlTag extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-tag': SlTag; + } + } \ No newline at end of file diff --git a/src/components/textarea/textarea.ts b/src/components/textarea/textarea.ts index c5f449e6..1017c5bd 100644 --- a/src/components/textarea/textarea.ts +++ b/src/components/textarea/textarea.ts @@ -296,3 +296,9 @@ export default class SlTextarea extends LitElement { ); } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-textarea': SlTextarea; + } + } \ No newline at end of file diff --git a/src/components/tooltip/tooltip.ts b/src/components/tooltip/tooltip.ts index 284f2015..b85a46eb 100644 --- a/src/components/tooltip/tooltip.ts +++ b/src/components/tooltip/tooltip.ts @@ -262,3 +262,9 @@ export default class SlTooltip extends LitElement { `; } } + + declare global { + interface HTMLElementTagNameMap { + 'sl-tooltip': SlTooltip; + } + } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 695b8f20..51d4bf4b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -71,5 +71,9 @@ "removeComments": true, "skipLibCheck": true /* Skip type checking of declaration files. */, "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ - } + }, + "exclude": [ + "docs", + "dist" + ] }