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

Success/Failure icons #295

Merged
merged 2 commits into from
Sep 27, 2023
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@equinor/amplify-components",
"version": "4.5.2",
"version": "4.5.3",
"description": "Frontend Typescript components for the Amplify team",
"main": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions src/components/Icons/AmplifyIcons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import { Icon } from '@equinor/eds-core-react';
import { Meta, StoryFn } from '@storybook/react';

import {
amplify_failure,
amplify_lwd,
amplify_success,
amplify_wellbore,
amplify_wireline_cased_hole,
amplify_wireline_open_hole,
Expand All @@ -13,6 +15,8 @@ const allIcons = {
amplify_wireline_open_hole: amplify_wireline_open_hole,
amplify_wireline_cased_hole: amplify_wireline_cased_hole,
amplify_lwd: amplify_lwd,
amplify_success: amplify_success,
amplify_failure: amplify_failure,
};

interface StoryFnProps {
Expand All @@ -38,6 +42,8 @@ export default {
'amplify_wireline_open_hole',
'amplify_wireline_cased_hole',
'amplify_lwd',
'amplify_success',
'amplify_failure',
],
},
},
Expand Down
18 changes: 18 additions & 0 deletions src/components/Icons/AmplifyIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,21 @@ export const amplify_lwd: IconData = {
svgPathData:
'M11.1543 6.53806V4.14014H9.70985V14.0316L11.5709 15.8199C11.8504 16.0884 12.2908 16.0926 12.5754 15.8295L14.5039 14.0459V13.7301H13.7817L14.5039 13.729V4.14014H13.0595V7.93155L11.1543 6.53806ZM11.1543 7.44841V9.18162L13.0595 10.5751V8.8419L11.1543 7.44841ZM13.0595 11.4855L11.1543 10.092V13.4163L12.0875 14.3131L13.0595 13.4143V11.4855ZM8.42558 4.15088H3.50717V6.15088H6.42548L6.42504 15.5138L10.8021 19.4223C11.4379 19.99 12.3932 20.0073 13.0491 19.463L17.7738 15.542L17.7739 6.15119H20.4928V4.15119H15.774L15.7738 14.6027L11.9559 17.7712L8.42508 14.6184L8.42558 4.15088Z',
};

export const amplify_success: IconData = {
name: 'success',
prefix: 'amplify',
height: '24',
width: '24',
svgPathData:
'M13 2H11V6.08296C10.0884 6.2359 9.24647 6.59441 8.52355 7.10919L5.41421 3.99985L4 5.41406L7.10931 8.52338C6.59447 9.24633 6.23591 10.0883 6.08296 11H2V13H6.08296C6.23382 13.8992 6.58469 14.7306 7.08827 15.4469L3.99962 18.5355L5.41384 19.9497L8.49397 16.8696C9.22346 17.3958 10.0759 17.762 11 17.917V22H13V17.917C13.9117 17.7641 14.7537 17.4055 15.4766 16.8907L18.5355 19.9496L19.9497 18.5354L16.8908 15.4764C17.4056 14.7535 17.7641 13.9116 17.917 13H22V11H17.917C17.762 10.0759 17.3958 9.22346 16.8696 8.49397L19.9494 5.41421L18.5352 4L15.4469 7.08827C14.7306 6.58469 13.8992 6.23382 13 6.08296V2Z',
};

export const amplify_failure: IconData = {
name: 'failure',
prefix: 'amplify',
height: '24',
width: '24',
svgPathData:
'M11 2H13V6.08296C15.5125 6.50448 17.4955 8.4875 17.917 11H22V13H17.917C17.4955 15.5125 15.5125 17.4955 13 17.917V22H11V17.917C8.4875 17.4955 6.50448 15.5125 6.08296 13H2V11H6.08296C6.50448 8.4875 8.4875 6.50448 11 6.08296V2ZM16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z',
};
2 changes: 2 additions & 0 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ export { skeletonBaseloading } from './Feedback/SkeletonBase';
export { default as Stepper } from './Feedback/Stepper/Stepper';
export { default as Unauthorized } from './Feedback/Unauthorized';
export {
amplify_failure,
amplify_lwd,
amplify_success,
amplify_wellbore,
amplify_wireline_cased_hole,
amplify_wireline_open_hole,
Expand Down