Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Platzi-Master-C8/gethired-commons i…
Browse files Browse the repository at this point in the history
…nto main
  • Loading branch information
kevfarid committed Dec 8, 2021
2 parents 53b2391 + cb91df8 commit d324dc7
Show file tree
Hide file tree
Showing 14 changed files with 86 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ jobs:
uses: JamesIves/github-pages-deploy-action@4.1.5
with:
branch: gh-pages
folder: packages/docs/
folder: docs
3 changes: 1 addition & 2 deletions packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@master-c8/icons",
"version": "0.1.1",
"version": "0.1.2",
"private": false,
"description": "Platzi Master C8 Icons",
"main": "./dist/index",
Expand Down Expand Up @@ -57,4 +57,3 @@
"node": ">=12.0.0"
}
}

5 changes: 5 additions & 0 deletions packages/icons/src/Currency/Currency.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { HTMLProps } from 'react';

export interface CurrencyProps extends HTMLProps<SVGAElement> {}

export default function Currency(props: CurrencyProps): JSX.Element;
17 changes: 17 additions & 0 deletions packages/icons/src/Currency/Currency.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { forwardRef } from 'react';
import { SvgIcon } from '@mui/material';

const Currency = forwardRef(function Currency(props, ref) {
return (
<SvgIcon {...props} {...ref}>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"
/>
</SvgIcon>
);
});

export default Currency;
13 changes: 13 additions & 0 deletions packages/icons/src/Currency/Currency.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { render } from '@testing-library/react';
import Currency from './Currency';

describe('@icons/Currency', () => {
it('Given a normal call it should render properly', () => {
// arrange
const { getByTitle } = render(<Currency title="Currency" />);
// act
const icon = getByTitle(/Currency/i);
// assert
expect(icon).toBeInTheDocument();
});
});
2 changes: 2 additions & 0 deletions packages/icons/src/Currency/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './Currency';
export * from './Currency';
1 change: 1 addition & 0 deletions packages/icons/src/Currency/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Currency';
5 changes: 5 additions & 0 deletions packages/icons/src/Switch/Switch.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { HTMLProps } from 'react';

export interface SwitchProps extends HTMLProps<SVGAElement> {}

export default function Switch(props: SwitchProps): JSX.Element;
17 changes: 17 additions & 0 deletions packages/icons/src/Switch/Switch.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { forwardRef } from 'react';
import { SvgIcon } from '@mui/material';

const Switch = forwardRef(function Switch(props, ref) {
return (
<SvgIcon {...props} {...ref}>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth={2}
d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4"
/>
</SvgIcon>
);
});

export default Switch;
13 changes: 13 additions & 0 deletions packages/icons/src/Switch/Switch.spec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { render } from '@testing-library/react';
import Switch from './Switch';

describe('@icons/Switch', () => {
it('Given a normal call it should render properly', () => {
// arrange
const { getByTitle } = render(<Switch title="Switch" />);
// act
const icon = getByTitle(/Switch/i);
// assert
expect(icon).toBeInTheDocument();
});
});
2 changes: 2 additions & 0 deletions packages/icons/src/Switch/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export { default } from './Switch';
export * from './Switch';
1 change: 1 addition & 0 deletions packages/icons/src/Switch/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './Switch';
6 changes: 6 additions & 0 deletions packages/icons/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ export * from './ChevronUp';

export { default as ChevronDown } from './ChevronDown';
export * from './ChevronDown';

export { default as Currency } from './Currency';
export * from './Currency';

export { default as Switch } from './Switch';
export * from './Switch';
2 changes: 2 additions & 0 deletions packages/icons/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ export { default as ChevronLeft } from './ChevronLeft';
export { default as ChevronRight } from './ChevronRight';
export { default as ChevronUp } from './ChevronUp';
export { default as ChevronDown } from './ChevronDown';
export { default as Currency } from './Currency';
export { default as Switch } from './Switch';

0 comments on commit d324dc7

Please sign in to comment.