Skip to content

Commit

Permalink
Merge pull request #795 from WestpacGEL/feature/drop-left-and-drop-ri…
Browse files Browse the repository at this point in the history
…ght-icons

Feature/784 drop left and drop right icons
  • Loading branch information
tomjackking authored May 27, 2024
2 parents 9e12e1d + 80086f2 commit 73196fa
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/neat-bananas-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@westpac/ui': minor
---

Added left and right directions for the drop arrow icon in ui.
1 change: 1 addition & 0 deletions packages/ui/assets/icons/filled/drop-left-filled.svg
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/drop-right-filled.svg
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/outlined/drop-left-outlined.svg
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/outlined/drop-right-outlined.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions packages/ui/src/components/icon/components/drop-left-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

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

export function DropLeftIcon({ 'aria-label': ariaLabel = 'Drop Left', copyrightYear = '2024', ...props }: IconProps) {
return (
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
<path d="m8 19 8-7-8-7v14Z" fill="currentColor" />
</Icon>
);
}
12 changes: 12 additions & 0 deletions packages/ui/src/components/icon/components/drop-right-icon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from 'react';

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

export function DropRightIcon({ 'aria-label': ariaLabel = 'Drop Right', copyrightYear = '2024', ...props }: IconProps) {
return (
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
<path d="m16 5-8 7 8 7V5Z" fill="currentColor" />
</Icon>
);
}
2 changes: 2 additions & 0 deletions packages/ui/src/components/icon/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ export { DownloadIcon } from './components/download-icon.js';
export { DragIcon } from './components/drag-icon.js';
export { DropDownIcon } from './components/drop-down-icon.js';
export { DropUpIcon } from './components/drop-up-icon.js';
export { DropLeftIcon } from './components/drop-left-icon.js';
export { DropRightIcon } from './components/drop-right-icon.js';
export { DropboxIcon } from './components/dropbox-icon.js';
export { EditIcon } from './components/edit-icon.js';
export { EducationIcon } from './components/education-icon.js';
Expand Down

0 comments on commit 73196fa

Please sign in to comment.