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

added: circle arrow icons #930

Merged
merged 1 commit into from
Nov 18, 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
5 changes: 5 additions & 0 deletions .changeset/twenty-jars-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@westpac/ui': minor
---

added icons - arrow circle icons
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.
1 change: 1 addition & 0 deletions packages/ui/assets/icons/filled/arrow-up-circle-filled.svg
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.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React, { Fragment } from 'react';

import { Icon } from '../icon.component.js';
import { type IconProps } from '../icon.types.js';

export function ArrowBackCircleIcon({
look = 'filled',
'aria-label': ariaLabel = 'Arrow Back Circle',
copyrightYear = '2023',
...props
}: IconProps) {
return (
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
{look === 'filled' ? (
<path
fill="currentColor"
fillRule="evenodd"
d="M12 0C5.372 0 0 5.373 0 12s5.372 12 12 12 12-5.373 12-12S18.628 0 12 0ZM9.414 13l3.293 3.293-1.414 1.414L5.586 12l5.707-5.707 1.414 1.414L9.414 11H18v2H9.414Z"
clipRule="evenodd"
/>
) : (
<Fragment>
<path
fill="currentColor"
d="m9.414 13 3.293 3.293-1.414 1.414L5.586 12l5.707-5.707 1.414 1.414L9.414 11H18v2H9.414Z"
/>
<path
fill="currentColor"
fillRule="evenodd"
d="M12 0C5.372 0 0 5.373 0 12s5.372 12 12 12 12-5.373 12-12S18.628 0 12 0Zm10 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z"
clipRule="evenodd"
/>
</Fragment>
)}
</Icon>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React, { Fragment } from 'react';

import { Icon } from '../icon.component.js';
import { type IconProps } from '../icon.types.js';

export function ArrowDownCircleIcon({
look = 'filled',
'aria-label': ariaLabel = 'Arrow Down Circle',
copyrightYear = '2023',
...props
}: IconProps) {
return (
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
{look === 'filled' ? (
<path
fill="currentColor"
fillRule="evenodd"
d="M0 12c0 6.628 5.373 12 12 12s12-5.372 12-12S18.627 0 12 0 0 5.372 0 12Zm13 2.586 3.293-3.293 1.414 1.414L12 18.414l-5.707-5.707 1.414-1.414L11 14.586V6h2v8.586Z"
clipRule="evenodd"
/>
) : (
<Fragment>
<path
fill="currentColor"
d="m13 14.586 3.293-3.293 1.414 1.414L12 18.414l-5.707-5.707 1.414-1.414L11 14.586V6h2v8.586Z"
/>
<path
fill="currentColor"
fillRule="evenodd"
d="M0 12c0 6.628 5.373 12 12 12s12-5.372 12-12S18.627 0 12 0 0 5.372 0 12ZM12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Z"
clipRule="evenodd"
/>
</Fragment>
)}
</Icon>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React, { Fragment } from 'react';

import { Icon } from '../icon.component.js';
import { type IconProps } from '../icon.types.js';

export function ArrowForwardCircleIcon({
look = 'filled',
'aria-label': ariaLabel = 'Arrow Forward Circle',
copyrightYear = '2023',
...props
}: IconProps) {
return (
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
{look === 'filled' ? (
<path
fill="currentColor"
fillRule="evenodd"
d="M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12Zm2.586-13-3.293-3.293 1.414-1.414L18.414 12l-5.707 5.707-1.414-1.414L14.586 13H6v-2h8.586Z"
clipRule="evenodd"
/>
) : (
<Fragment>
<path
fill="currentColor"
d="m14.586 11-3.293-3.293 1.414-1.414L18.414 12l-5.707 5.707-1.414-1.414L14.586 13H6v-2h8.586Z"
/>
<path
fill="currentColor"
fillRule="evenodd"
d="M12 24c6.628 0 12-5.373 12-12S18.628 0 12 0 0 5.373 0 12s5.372 12 12 12ZM2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z"
clipRule="evenodd"
/>
</Fragment>
)}
</Icon>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React, { Fragment } from 'react';

import { Icon } from '../icon.component.js';
import { type IconProps } from '../icon.types.js';

export function ArrowUpCircleIcon({
look = 'filled',
'aria-label': ariaLabel = 'Arrow Up Circle',
copyrightYear = '2023',
...props
}: IconProps) {
return (
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
{look === 'filled' ? (
<path
fill="currentColor"
fillRule="evenodd"
d="M24 12c0-6.628-5.373-12-12-12S0 5.372 0 12s5.373 12 12 12 12-5.372 12-12ZM11 9.414l-3.293 3.293-1.414-1.414L12 5.586l5.707 5.707-1.414 1.414L13 9.414V18h-2V9.414Z"
clipRule="evenodd"
/>
) : (
<Fragment>
<path
fill="currentColor"
d="m11 9.414-3.293 3.293-1.414-1.414L12 5.586l5.707 5.707-1.414 1.414L13 9.414V18h-2V9.414Z"
/>
<path
fill="currentColor"
fillRule="evenodd"
d="M24 12c0-6.628-5.373-12-12-12S0 5.372 0 12s5.373 12 12 12 12-5.372 12-12ZM12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10Z"
clipRule="evenodd"
/>
</Fragment>
)}
</Icon>
);
}
4 changes: 4 additions & 0 deletions packages/ui/src/components/icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ export { AlertIcon } from './components/alert-icon.js';
export { AndroidIcon } from './components/android-icon.js';
export { AppleIcon } from './components/apple-icon.js';
export { ArchiveBoxIcon } from './components/archive-box-icon.js';
export { ArrowBackCircleIcon } from './components/arrow-back-circle-icon.js';
export { ArrowDownCircleIcon } from './components/arrow-down-circle-icon.js';
export { ArrowForkIcon } from './components/arrow-fork-icon.js';
export { ArrowForwardCircleIcon } from './components/arrow-forward-circle-icon.js';
export { ArrowLeftIcon } from './components/arrow-left-icon.js';
export { ArrowRightIcon } from './components/arrow-right-icon.js';
export { ArrowSplitIcon } from './components/arrow-split-icon.js';
export { ArrowUpCircleIcon } from './components/arrow-up-circle-icon.js';
export { AtmIcon } from './components/atm-icon.js';
export { AttacheCaseIcon } from './components/attache-case-icon.js';
export { AustraliaIcon } from './components/australia-icon.js';
Expand Down
Loading