-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update element props interface names (#5)
* use consistent prop names across all elements * replace type aliases with interfaces
- Loading branch information
1 parent
71ccc40
commit 15474fc
Showing
133 changed files
with
1,752 additions
and
460 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,10 +1,17 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* AbbrElementProps are the props for the [`abbr`](https://developer.mozilla.org/docs/Web/HTML/Element/abbr) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/abbr> | ||
*/ | ||
export interface AbbrElementProps extends GlobalAttributes { | ||
} | ||
|
||
/** | ||
* abbr renders the [`abbr`](https://developer.mozilla.org/docs/Web/HTML/Element/abbr) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/abbr> | ||
*/ | ||
export function abbr(props?: GlobalAttributes, ...children: string[]): string { | ||
export function abbr(props?: AbbrElementProps, ...children: string[]): string { | ||
return renderElement("abbr", props as AnyProps, false, children); | ||
} |
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,10 +1,20 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* AsideElementProps are the props for the [`aside`](https://developer.mozilla.org/docs/Web/HTML/Element/aside) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/aside> | ||
*/ | ||
export interface AsideElementProps extends GlobalAttributes { | ||
} | ||
|
||
/** | ||
* aside renders the [`aside`](https://developer.mozilla.org/docs/Web/HTML/Element/aside) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/aside> | ||
*/ | ||
export function aside(props?: GlobalAttributes, ...children: string[]): string { | ||
export function aside( | ||
props?: AsideElementProps, | ||
...children: string[] | ||
): string { | ||
return renderElement("aside", props as AnyProps, false, children); | ||
} |
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,10 +1,17 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BElementProps are the props for the [`b`](https://developer.mozilla.org/docs/Web/HTML/Element/b) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/b> | ||
*/ | ||
export interface BElementProps extends GlobalAttributes { | ||
} | ||
|
||
/** | ||
* b renders the [`b`](https://developer.mozilla.org/docs/Web/HTML/Element/b) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/b> | ||
*/ | ||
export function b(props?: GlobalAttributes, ...children: string[]): string { | ||
export function b(props?: BElementProps, ...children: string[]): string { | ||
return renderElement("b", props as AnyProps, false, children); | ||
} |
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,10 +1,17 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BdiElementProps are the props for the [`bdi`](https://developer.mozilla.org/docs/Web/HTML/Element/bdi) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdi> | ||
*/ | ||
export interface BdiElementProps extends GlobalAttributes { | ||
} | ||
|
||
/** | ||
* bdi renders the [`bdi`](https://developer.mozilla.org/docs/Web/HTML/Element/bdi) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdi> | ||
*/ | ||
export function bdi(props?: GlobalAttributes, ...children: string[]): string { | ||
export function bdi(props?: BdiElementProps, ...children: string[]): string { | ||
return renderElement("bdi", props as AnyProps, false, children); | ||
} |
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,10 +1,17 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BdoElementProps are the props for the [`bdo`](https://developer.mozilla.org/docs/Web/HTML/Element/bdo) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdo> | ||
*/ | ||
export interface BdoElementProps extends GlobalAttributes { | ||
} | ||
|
||
/** | ||
* bdo renders the [`bdo`](https://developer.mozilla.org/docs/Web/HTML/Element/bdo) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/bdo> | ||
*/ | ||
export function bdo(props?: GlobalAttributes, ...children: string[]): string { | ||
export function bdo(props?: BdoElementProps, ...children: string[]): string { | ||
return renderElement("bdo", props as AnyProps, false, children); | ||
} |
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,11 +1,19 @@ | ||
import type { AnyProps, GlobalAttributes } from "./lib/mod.ts"; | ||
import { renderElement } from "./lib/mod.ts"; | ||
|
||
/** | ||
* BigElementProps are the props for the [`big`](https://developer.mozilla.org/docs/Web/HTML/Element/big) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/big> | ||
* @deprecated | ||
*/ | ||
export interface BigElementProps extends GlobalAttributes { | ||
} | ||
|
||
/** | ||
* big renders the [`big`](https://developer.mozilla.org/docs/Web/HTML/Element/big) element. | ||
* @see <https://developer.mozilla.org/docs/Web/HTML/Element/big> | ||
* @deprecated | ||
*/ | ||
export function big(props?: GlobalAttributes, ...children: string[]): string { | ||
export function big(props?: BigElementProps, ...children: string[]): string { | ||
return renderElement("big", props as AnyProps, false, children); | ||
} |
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
Oops, something went wrong.