Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add warning text variation #14

Merged
merged 1 commit into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/design-system/text/text.css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export const typography = recipe({
highlight: sx({ color: '$data_blue' }),
success: sx({ color: '$data_green' }),
error: sx({ color: '$data_pink' }),
warning: sx({ color: '$data_orange' }),
},
},
});
Expand Down
1 change: 1 addition & 0 deletions src/design-system/text/text.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const colors: TypographyVariants['color'][] = [
'error',
'success',
'accent',
'warning',
];

export const Overview = (): JSX.Element => (
Expand Down
20 changes: 20 additions & 0 deletions src/icons/WarningIconCircleComponent.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import * as React from 'react';
import type { SVGProps } from 'react';
const SvgWarningIconCirclecomponent = (props: SVGProps<SVGSVGElement>) => (
<svg
xmlns="http://www.w3.org/2000/svg"
width={20}
height={20}
fill="none"
{...props}
>
<path
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M10 6v4m0 4h.01M19 10a9 9 0 1 1-18 0 9 9 0 0 1 18 0"
/>
</svg>
);
export default SvgWarningIconCirclecomponent;
1 change: 1 addition & 0 deletions src/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ export { default as UserGroupGradientComponent } from './UserGroupGradientCompon
export { default as UserGroupComponent } from './UserGroupComponent';
export { default as VideoGradientComponent } from './VideoGradientComponent';
export { default as WalletComponent } from './WalletComponent';
export { default as WarningIconCircleComponent } from './WarningIconCircleComponent';
export { default as WarningIconTriangleComponent } from './WarningIconTriangleComponent';
5 changes: 5 additions & 0 deletions src/icons/raw/warning-icon-circle.component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.