-
Notifications
You must be signed in to change notification settings - Fork 100
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
5aed0d6
commit 60e3bbf
Showing
34 changed files
with
735 additions
and
42 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,26 @@ | ||
--- | ||
'braid-design-system': minor | ||
--- | ||
|
||
--- | ||
new: | ||
- IconBulletList | ||
- IconNumberedList | ||
--- | ||
|
||
Add new icons to represent other list types. | ||
Sits alongside `IconChecklist` which already exists. | ||
|
||
```tsx | ||
<IconBulletList /> | ||
<IconNumberedList /> | ||
``` | ||
|
||
As a result we are deprecated `IconList` in favour of the more specific list types. The `IconList` will be removed in a future major version. | ||
|
||
### MIGRATION GUIDE | ||
|
||
```diff | ||
-<IconList /> | ||
+<IconBulletList /> | ||
``` |
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 @@ | ||
--- | ||
'braid-design-system': patch | ||
--- | ||
|
||
--- | ||
updated: | ||
- IconHeart | ||
- IconLink | ||
- IconLinkBroken | ||
--- | ||
|
||
**IconHeart, IconLink, IconLinkBroken:** Update design |
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,22 @@ | ||
--- | ||
'braid-design-system': minor | ||
--- | ||
|
||
--- | ||
new: | ||
- IconBold | ||
- IconItalic | ||
- IconRedo | ||
- IconTitle | ||
- IconUndo | ||
--- | ||
|
||
Add new icons to support rich text editors and formatting. | ||
|
||
```tsx | ||
<IconBold /> | ||
<IconItalic /> | ||
<IconTitle /> | ||
<IconRedo /> | ||
<IconUndo /> | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconBold/IconBold.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,21 @@ | ||
import source from '@braid-design-system/source.macro'; | ||
import type { ComponentDocs } from 'site/types'; | ||
|
||
import { IconBold, Heading, Stack } from '../../'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconBold /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [...iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconBold/IconBold.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 { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconBoldSvg } from './IconBoldSvg'; | ||
|
||
export type IconBoldProps = IconContainerProps; | ||
|
||
export const IconBold = (props: IconBoldProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconBoldSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconBulletList/IconBulletList.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,21 @@ | ||
import source from '@braid-design-system/source.macro'; | ||
import type { ComponentDocs } from 'site/types'; | ||
|
||
import { IconBulletList, Heading, Stack } from '../../'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconBulletList /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [...iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconBulletList/IconBulletList.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 { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconBulletListSvg } from './IconBulletListSvg'; | ||
|
||
export type IconBulletListProps = IconContainerProps; | ||
|
||
export const IconBulletList = (props: IconBulletListProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconBulletListSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconItalic/IconItalic.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,21 @@ | ||
import source from '@braid-design-system/source.macro'; | ||
import type { ComponentDocs } from 'site/types'; | ||
|
||
import { IconItalic, Heading, Stack } from '../../'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconItalic /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [...iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconItalic/IconItalic.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 { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconItalicSvg } from './IconItalicSvg'; | ||
|
||
export type IconItalicProps = IconContainerProps; | ||
|
||
export const IconItalic = (props: IconItalicProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconItalicSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
12 changes: 11 additions & 1 deletion
12
packages/braid-design-system/src/lib/components/icons/IconList/IconList.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
30 changes: 25 additions & 5 deletions
30
packages/braid-design-system/src/lib/components/icons/IconList/IconList.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 |
---|---|---|
@@ -1,12 +1,32 @@ | ||
import dedent from 'dedent'; | ||
|
||
import { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconListSvg } from './IconListSvg'; | ||
|
||
export type IconListProps = IconContainerProps; | ||
|
||
export const IconList = (props: IconListProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconListSvg} {...svgProps} />} | ||
</IconContainer> | ||
); | ||
/** @deprecated Use `IconBulletList` instead */ | ||
export const IconList = (props: IconListProps) => { | ||
if (process.env.NODE_ENV !== 'production') { | ||
// eslint-disable-next-line no-console | ||
console.warn( | ||
dedent` | ||
The \`IconList\` component is deprecated. Please use \`IconBulletList\` instead. | ||
%c-<IconList /> | ||
%c+<IconBulletList /> | ||
%c | ||
`, | ||
'color: red', | ||
'color: green', | ||
'color: inherit', | ||
); | ||
} | ||
|
||
return ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconListSvg} {...svgProps} />} | ||
</IconContainer> | ||
); | ||
}; |
21 changes: 21 additions & 0 deletions
21
...s/braid-design-system/src/lib/components/icons/IconNumberedList/IconNumberedList.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,21 @@ | ||
import source from '@braid-design-system/source.macro'; | ||
import type { ComponentDocs } from 'site/types'; | ||
|
||
import { IconNumberedList, Heading, Stack } from '../../'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconNumberedList /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [...iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconNumberedList/IconNumberedList.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 { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconNumberedListSvg } from './IconNumberedListSvg'; | ||
|
||
export type IconNumberedListProps = IconContainerProps; | ||
|
||
export const IconNumberedList = (props: IconNumberedListProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconNumberedListSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconRedo/IconRedo.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,21 @@ | ||
import source from '@braid-design-system/source.macro'; | ||
import type { ComponentDocs } from 'site/types'; | ||
|
||
import { IconRedo, Heading, Stack } from '../../'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconRedo /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [...iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconRedo/IconRedo.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 { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconRedoSvg } from './IconRedoSvg'; | ||
|
||
export type IconRedoProps = IconContainerProps; | ||
|
||
export const IconRedo = (props: IconRedoProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconRedoSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
21 changes: 21 additions & 0 deletions
21
packages/braid-design-system/src/lib/components/icons/IconTitle/IconTitle.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,21 @@ | ||
import source from '@braid-design-system/source.macro'; | ||
import type { ComponentDocs } from 'site/types'; | ||
|
||
import { IconTitle, Heading, Stack } from '../../'; | ||
import { iconDocumentation } from '../iconCommon.docs'; | ||
|
||
const docs: ComponentDocs = { | ||
category: 'Icon', | ||
Example: () => | ||
source( | ||
<Stack space="none" align="center"> | ||
<Heading component="div" level="1"> | ||
<IconTitle /> | ||
</Heading> | ||
</Stack>, | ||
), | ||
alternatives: [], | ||
additional: [...iconDocumentation], | ||
}; | ||
|
||
export default docs; |
12 changes: 12 additions & 0 deletions
12
packages/braid-design-system/src/lib/components/icons/IconTitle/IconTitle.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 { Box } from '../../Box/Box'; | ||
import { IconContainer, type IconContainerProps } from '../IconContainer'; | ||
|
||
import { IconTitleSvg } from './IconTitleSvg'; | ||
|
||
export type IconTitleProps = IconContainerProps; | ||
|
||
export const IconTitle = (props: IconTitleProps) => ( | ||
<IconContainer {...props}> | ||
{(svgProps) => <Box component={IconTitleSvg} {...svgProps} />} | ||
</IconContainer> | ||
); |
Oops, something went wrong.