-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! fixup! fixup! fixup! Rename JavaScript files to TypeScript files
- Loading branch information
radek.stary
committed
Apr 28, 2023
1 parent
942cd06
commit fa713b8
Showing
124 changed files
with
2,499 additions
and
2,605 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
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,31 @@ | ||
export interface AlertProps { | ||
/** | ||
* Rest of the props. | ||
*/ | ||
[key: string]: unknown; | ||
/** | ||
* Alert Body | ||
*/ | ||
children: React.ReactNode; | ||
/** | ||
* [Color variant] (/foundation/colors#component-colors) to clarify importance and meaning of the alert. | ||
*/ | ||
color?: Color; | ||
/** | ||
* Optional element to be displayed next to the alert body. | ||
*/ | ||
icon?: React.ReactNode; | ||
/** | ||
* ID of the root HTML element. | ||
* | ||
* Also serves as base for ids of nested elements: | ||
* * `<ID>__close` | ||
* * `<ID>__content` | ||
*/ | ||
id?: string; | ||
/** | ||
* Function to call when the close button is clicked. If not provided, close buttons will be | ||
* hidden. | ||
*/ | ||
onClose?: () => void; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export interface BadgeProps { | ||
/** | ||
* Rest of the props. | ||
*/ | ||
[key: string]: unknown; | ||
/** | ||
* [Color variant](/foundation/colors#component-colors) to clarify importance and meaning of the badge. | ||
*/ | ||
color?: Color; | ||
/** | ||
* Text to be displayed. | ||
*/ | ||
label: string; | ||
/** | ||
* Visual priority to highlight or suppress the badge. | ||
*/ | ||
priority?: Exclude<Priority, 'flat'>; | ||
} |
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.