-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to overwrite the slide container, 0.11.0.
- Loading branch information
Showing
10 changed files
with
36 additions
and
37 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 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
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
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
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,24 +1,33 @@ | ||
import type { MDXComponents as _MDXComponents } from 'mdx/types.js'; | ||
import { CSSProperties } from 'react'; | ||
import { CSSProperties, ReactNode } from 'react'; | ||
|
||
export type MDXComponents = _MDXComponents; | ||
|
||
export type Themes = Record<string, CSSProperties>; | ||
|
||
export type SlideTransition = { | ||
export type SlideTransition = Readonly<{ | ||
enter?: CSSProperties; | ||
from?: CSSProperties; | ||
leave?: CSSProperties; | ||
}; | ||
}>; | ||
|
||
export type ReMDXSlide = { | ||
export type SlideContainer = ({ | ||
children, | ||
style, | ||
}: { | ||
children: JSX.Element; | ||
style: CSSProperties; | ||
}) => ReactNode; | ||
|
||
export type ReMDXSlide = Readonly<{ | ||
Component: () => JSX.Element; | ||
data: Record<string, string>; | ||
}; | ||
}>; | ||
|
||
export type ReMDXModule = { | ||
export type ReMDXModule = Readonly<{ | ||
Components?: _MDXComponents; | ||
Container?: SlideContainer; | ||
Themes?: Themes; | ||
Transitions?: Record<string, SlideTransition>; | ||
default: ReadonlyArray<ReMDXSlide>; | ||
}; | ||
}>; |
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