-
-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
130 additions
and
757 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import type { SMUIComponent } from '@smui/common'; | ||
import { classAdderBuilder } from '@smui/common/internal'; | ||
import Div from '@smui/common/Div.svelte'; | ||
|
||
export default classAdderBuilder({ | ||
class: 'mdc-dialog__content', | ||
component: Div, | ||
component: Div as typeof SMUIComponent, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/dialog/InitialFocus.js → packages/dialog/InitialFocus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import type { SMUIComponent } from '@smui/common'; | ||
import { classAdderBuilder } from '@smui/common/internal'; | ||
import H2 from '@smui/common/H2.svelte'; | ||
|
||
export default classAdderBuilder({ | ||
class: 'mdc-dialog__title', | ||
component: H2, | ||
component: H2 as typeof SMUIComponent, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
declare namespace svelte.JSX { | ||
interface HTMLProps<T extends EventTarget> extends HTMLAttributes<T> { | ||
['onMDCDialog:opening']?: (event: CustomEvent<any> & { target: T }) => any; | ||
['onMDCDialog:opened']?: (event: CustomEvent<any> & { target: T }) => any; | ||
['onMDCDialog:closed']?: (event: CustomEvent<any> & { target: T }) => any; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './index'; | ||
export { default } from './index'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Dialog from './Dialog.svelte'; | ||
|
||
import Header from './Header'; | ||
import Title from './Title'; | ||
import Content from './Content'; | ||
import Actions from './Actions'; | ||
import InitialFocus from './InitialFocus'; | ||
|
||
export default Dialog; | ||
|
||
export { Header, Title, Content, Actions, InitialFocus }; |
Oops, something went wrong.