Skip to content

Commit

Permalink
IconLicense: Add component
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Oct 29, 2024
1 parent fc1f5f7 commit 179d390
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/beige-eels-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'braid-design-system': minor
---

---
updated:
- IconLicense
---

**IconLicense:** Add component

Add `IconLicense` to icon suite
6 changes: 6 additions & 0 deletions packages/braid-design-system/icons/license.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import React from 'react';
import type { ComponentDocs } from 'site/types';
import { iconDocumentation } from '../iconCommon.docs';
import source from '@braid-design-system/source.macro';
import { IconLicense, Heading, Stack } from '../../';

const docs: ComponentDocs = {
category: 'Icon',
Example: () =>
source(
<Stack space="none" align="center">
<Heading component="div" level="1">
<IconLicense />
</Heading>
</Stack>,
),
alternatives: [],
additional: [iconDocumentation],
};

export default docs;
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';
import { Box } from '../../Box/Box';
import { IconContainer, type IconContainerProps } from '../IconContainer';
import { IconLicenseSvg } from './IconLicenseSvg';

export type IconLicenseProps = IconContainerProps;

export const IconLicense = (props: IconLicenseProps) => (
<IconContainer {...props}>
{(svgProps) => <Box component={IconLicenseSvg} {...svgProps} />}
</IconContainer>
);
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export { IconImage } from './IconImage/IconImage';
export { IconInfo } from './IconInfo/IconInfo';
export { IconInvoice } from './IconInvoice/IconInvoice';
export { IconLanguage } from './IconLanguage/IconLanguage';
export { IconLicense } from './IconLicense/IconLicense';
export { IconLink } from './IconLink/IconLink';
export { IconLinkBroken } from './IconLinkBroken/IconLinkBroken';
export { IconList } from './IconList/IconList';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4738,6 +4738,37 @@ exports[`IconLanguage 1`] = `
}
`;

exports[`IconLicense 1`] = `
{
exportType: component,
props: {
alignY?:
| "lowercase"
| "uppercase"
data?: DataAttributeMap
size?:
| "fill"
| "large"
| "small"
| "standard"
| "xsmall"
title?: string
titleId?: string
tone?:
| "brandAccent"
| "caution"
| "critical"
| "formAccent"
| "info"
| "link"
| "neutral"
| "positive"
| "promote"
| "secondary"
},
}
`;

exports[`IconLink 1`] = `
{
exportType: component,
Expand Down

0 comments on commit 179d390

Please sign in to comment.