diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d4c5af8..d3b2751 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,4 +32,4 @@ jobs: uses: JamesIves/github-pages-deploy-action@4.1.5 with: branch: gh-pages - folder: packages/docs/ \ No newline at end of file + folder: docs \ No newline at end of file diff --git a/packages/icons/package.json b/packages/icons/package.json index 49787f4..a93b187 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -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", @@ -57,4 +57,3 @@ "node": ">=12.0.0" } } - diff --git a/packages/icons/src/Currency/Currency.d.ts b/packages/icons/src/Currency/Currency.d.ts new file mode 100644 index 0000000..603f427 --- /dev/null +++ b/packages/icons/src/Currency/Currency.d.ts @@ -0,0 +1,5 @@ +import { HTMLProps } from 'react'; + +export interface CurrencyProps extends HTMLProps {} + +export default function Currency(props: CurrencyProps): JSX.Element; diff --git a/packages/icons/src/Currency/Currency.js b/packages/icons/src/Currency/Currency.js new file mode 100644 index 0000000..1177634 --- /dev/null +++ b/packages/icons/src/Currency/Currency.js @@ -0,0 +1,17 @@ +import { forwardRef } from 'react'; +import { SvgIcon } from '@mui/material'; + +const Currency = forwardRef(function Currency(props, ref) { + return ( + + + + ); +}); + +export default Currency; diff --git a/packages/icons/src/Currency/Currency.spec.js b/packages/icons/src/Currency/Currency.spec.js new file mode 100644 index 0000000..0fe3976 --- /dev/null +++ b/packages/icons/src/Currency/Currency.spec.js @@ -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(); + // act + const icon = getByTitle(/Currency/i); + // assert + expect(icon).toBeInTheDocument(); + }); +}); diff --git a/packages/icons/src/Currency/index.d.ts b/packages/icons/src/Currency/index.d.ts new file mode 100644 index 0000000..8487ebe --- /dev/null +++ b/packages/icons/src/Currency/index.d.ts @@ -0,0 +1,2 @@ +export { default } from './Currency'; +export * from './Currency'; diff --git a/packages/icons/src/Currency/index.js b/packages/icons/src/Currency/index.js new file mode 100644 index 0000000..423dfa7 --- /dev/null +++ b/packages/icons/src/Currency/index.js @@ -0,0 +1 @@ +export { default } from './Currency'; diff --git a/packages/icons/src/Switch/Switch.d.ts b/packages/icons/src/Switch/Switch.d.ts new file mode 100644 index 0000000..9b531ad --- /dev/null +++ b/packages/icons/src/Switch/Switch.d.ts @@ -0,0 +1,5 @@ +import { HTMLProps } from 'react'; + +export interface SwitchProps extends HTMLProps {} + +export default function Switch(props: SwitchProps): JSX.Element; diff --git a/packages/icons/src/Switch/Switch.js b/packages/icons/src/Switch/Switch.js new file mode 100644 index 0000000..281c1f6 --- /dev/null +++ b/packages/icons/src/Switch/Switch.js @@ -0,0 +1,17 @@ +import { forwardRef } from 'react'; +import { SvgIcon } from '@mui/material'; + +const Switch = forwardRef(function Switch(props, ref) { + return ( + + + + ); +}); + +export default Switch; diff --git a/packages/icons/src/Switch/Switch.spec.js b/packages/icons/src/Switch/Switch.spec.js new file mode 100644 index 0000000..b6fe640 --- /dev/null +++ b/packages/icons/src/Switch/Switch.spec.js @@ -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(); + // act + const icon = getByTitle(/Switch/i); + // assert + expect(icon).toBeInTheDocument(); + }); +}); diff --git a/packages/icons/src/Switch/index.d.ts b/packages/icons/src/Switch/index.d.ts new file mode 100644 index 0000000..e18fb43 --- /dev/null +++ b/packages/icons/src/Switch/index.d.ts @@ -0,0 +1,2 @@ +export { default } from './Switch'; +export * from './Switch'; diff --git a/packages/icons/src/Switch/index.js b/packages/icons/src/Switch/index.js new file mode 100644 index 0000000..ed80f23 --- /dev/null +++ b/packages/icons/src/Switch/index.js @@ -0,0 +1 @@ +export { default } from './Switch'; diff --git a/packages/icons/src/index.d.ts b/packages/icons/src/index.d.ts index 6766447..d580112 100644 --- a/packages/icons/src/index.d.ts +++ b/packages/icons/src/index.d.ts @@ -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'; diff --git a/packages/icons/src/index.js b/packages/icons/src/index.js index 09bf5d3..a62c663 100644 --- a/packages/icons/src/index.js +++ b/packages/icons/src/index.js @@ -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';