-
Notifications
You must be signed in to change notification settings - Fork 99
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
1 parent
5f3eb05
commit fe1f540
Showing
8 changed files
with
99 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'braid-design-system': minor | ||
--- | ||
|
||
Add Notification icon |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions
18
lib/components/icons/IconNotification/IconNotification.docs.tsx
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 @@ | ||
import React from 'react'; | ||
import { ComponentDocs } from '../../../../site/src/types'; | ||
import { IconNotification } from './IconNotification'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
migrationGuide: true, | ||
foundation: true, | ||
screenshotWidths: [], | ||
examples: [ | ||
{ | ||
label: 'Default', | ||
Example: () => <IconNotification />, | ||
}, | ||
], | ||
}; | ||
|
||
export default docs; |
3 changes: 3 additions & 0 deletions
3
lib/components/icons/IconNotification/IconNotification.migration.md
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,3 @@ | ||
# IconNotification Migration Guide | ||
|
||
Please refer to the [Icon Migration Guide.](../Icon.migration.md) |
12 changes: 12 additions & 0 deletions
12
lib/components/icons/IconNotification/IconNotification.tsx
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,12 @@ | ||
import React from 'react'; | ||
import { Box } from '../../Box/Box'; | ||
import useIcon, { UseIconProps } from '../../../hooks/useIcon'; | ||
import { IconNotificationSvg } from './IconNotificationSvg'; | ||
|
||
export type IconNotificationProps = UseIconProps; | ||
|
||
export const IconNotification = (props: IconNotificationProps) => { | ||
const iconProps = useIcon(props); | ||
|
||
return <Box component={IconNotificationSvg} {...iconProps} />; | ||
}; |
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