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 H1 & H1 Icons #354

Merged
merged 3 commits into from
Nov 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": "5.5.0",
"version": "5.5.1",
"description": "Frontend Typescript components for the Amplify team",
"main": "dist/esm/index.js",
"types": "dist/types/index.d.ts",
Expand Down
9 changes: 7 additions & 2 deletions src/components/Icons/AmplifyIcons.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import { Meta, StoryFn } from '@storybook/react';

import {
amplify_failure,
amplify_h1,
amplify_h2,
amplify_lwd,
amplify_snail,
amplify_success,
amplify_wellbore,
amplify_wireline_cased_hole,
amplify_wireline_open_hole,
} from './AmplifyIcons';
amplify_wireline_open_hole} from './AmplifyIcons';

const allIcons = {
amplify_wellbore: amplify_wellbore,
Expand All @@ -19,6 +20,8 @@ const allIcons = {
amplify_success: amplify_success,
amplify_failure: amplify_failure,
amplify_snail: amplify_snail,
amplify_h1: amplify_h1,
amplify_h2: amplify_h2,
};

interface StoryFnProps {
Expand Down Expand Up @@ -47,6 +50,8 @@ export default {
'amplify_success',
'amplify_failure',
'amplify_snail',
'amplify_h1',
'amplify_h2'
],
},
},
Expand Down
21 changes: 21 additions & 0 deletions src/components/Icons/AmplifyIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,24 @@ export const amplify_snail: IconData = {
svgPathData:
'M6.29749 11.9471C6.2948 9.93241 7.93578 8.29479 9.96793 8.29748C11.5242 8.29954 12.7828 9.55656 12.7849 11.0977C12.7864 12.2584 11.8431 13.2017 10.6691 13.2001C9.79977 13.1989 9.10039 12.4985 9.09926 11.6409C9.09846 11.0296 9.59721 10.5288 10.2191 10.5296L10.2209 9.23213C8.88694 9.23036 7.80002 10.3075 7.80179 11.6426C7.80386 13.2213 9.08874 14.4955 10.6674 14.4976C12.5534 14.5001 14.0849 12.9806 14.0823 11.096C14.0793 8.83371 12.2353 7.003 9.96964 7C7.22551 6.99637 4.99635 9.2103 5.00001 11.9488C5.00225 13.627 5.69408 15.003 6.81988 15.9494C6.87383 15.9948 6.92869 16.0391 6.98444 16.0823H5V17.3798H8.89361H11.064L11.7113 17.3807L11.7113 17.3798H14.0835C15.8488 17.3798 17.0578 16.6326 17.8249 15.6777C18.5716 14.7481 18.8841 13.6453 18.9468 12.8925L18.9991 12H17.6538V12.7848C17.6084 13.3295 17.3695 14.1728 16.8133 14.8651C16.4023 15.3768 15.8091 15.8198 14.9461 15.9983C15.0463 15.8947 15.1404 15.7876 15.2287 15.6777C15.9755 14.7481 16.2879 13.6453 16.3507 12.8925V12L15.0577 12V12.7848C15.0123 13.3295 14.7733 14.1728 14.2172 14.8651C13.6814 15.5321 12.8361 16.0823 11.4874 16.0823H11.0643C9.69666 16.0805 8.49915 15.6661 7.65481 14.9563C6.82108 14.2554 6.29922 13.2418 6.29749 11.9471Z',
};

export const amplify_h1: IconData = {
name: 'h1',
prefix: 'amplify',
height: '24',
width: '24',
svgPathData:
"M12.4742 20.5028V14.43H6.93663V20.5028H4.00439V6.89883H6.93663V12.0857H12.4742V6.89883H15.4161V20.5028H12.4742Z M17.9378 10.5492H19.9957V3.22172H18.2501V3.41372C18.2501 3.45447 18.2362 3.53796 18.1954 3.67686C18.1302 3.89075 18.0376 4.05026 17.9245 4.16467C17.7509 4.34063 17.5228 4.46172 17.2314 4.52354C17.0459 4.56311 16.704 4.59545 16.1928 4.61726L16.0017 4.62542V6.0585H17.9378V10.5492Z",
};



export const amplify_h2: IconData = {
name: 'h2',
prefix: 'amplify',
height: '24',
width: '24',
svgPathData:
"M11.4842 20.5052V14.4323H5.94664V20.5052H3.0144V6.90117H5.94664V12.088H11.4842V6.90117H14.4261V20.5052H11.4842Z M20.9856 9.03302H17.987C18.0158 9.00443 18.0458 8.97698 18.0772 8.95069C18.2048 8.84669 18.4448 8.674 18.8023 8.4302L19.3746 8.03988C19.8624 7.70818 20.2254 7.39933 20.4522 7.11266C20.7976 6.68072 20.9705 6.18477 20.9705 5.63103C20.9705 4.91594 20.7274 4.32722 20.2318 3.88274C19.7365 3.43543 19.0769 3.21984 18.2731 3.21984C17.2481 3.21984 16.5015 3.59191 16.083 4.35665C15.8657 4.75306 15.7504 5.26093 15.7264 5.87045L15.7195 6.04666H17.4638L17.4707 5.88382C17.4872 5.49699 17.54 5.24006 17.6139 5.0927C17.6777 4.96642 17.7662 4.87686 17.8798 4.8171C17.9955 4.75627 18.1472 4.7211 18.3434 4.7211C18.6203 4.7211 18.8103 4.80441 18.9408 4.95425C19.0808 5.11502 19.1557 5.32042 19.1557 5.58283C19.1557 5.89611 19.0289 6.19008 18.757 6.46888C18.5761 6.65146 18.1632 6.96699 17.5024 7.42101C16.7361 7.94604 16.2225 8.46043 15.9982 8.96865C15.7766 9.40579 15.6599 9.88656 15.646 10.4083L15.6414 10.5825H20.9856V9.03302Z",
};