diff --git a/.babelrc.json b/.babelrc.json
index f756c6f..d5ab050 100644
--- a/.babelrc.json
+++ b/.babelrc.json
@@ -12,4 +12,4 @@
"@babel/preset-react"
],
"plugins": []
-}
\ No newline at end of file
+}
diff --git a/.prettierignore b/.prettierignore
new file mode 100644
index 0000000..590a405
--- /dev/null
+++ b/.prettierignore
@@ -0,0 +1,4 @@
+.devcontainer
+.github
+node_modules
+.cache
\ No newline at end of file
diff --git a/.prettierrc.json b/.prettierrc.json
new file mode 100644
index 0000000..544138b
--- /dev/null
+++ b/.prettierrc.json
@@ -0,0 +1,3 @@
+{
+ "singleQuote": true
+}
diff --git a/.storybook/main.js b/.storybook/main.js
index 2ca80c5..2321ead 100644
--- a/.storybook/main.js
+++ b/.storybook/main.js
@@ -1,13 +1,10 @@
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
const config = {
- stories: [
- "../src/**/*.mdx",
- "../src/**/*.stories.@(js|jsx|ts|tsx)"
- ],
+ stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
addons: [
- "@storybook/addon-links",
- "@storybook/addon-essentials",
- "@storybook/addon-interactions",
+ '@storybook/addon-links',
+ '@storybook/addon-essentials',
+ '@storybook/addon-interactions',
'@storybook/addon-links',
'../addons/addon-html/src',
{
@@ -18,11 +15,11 @@ const config = {
},
],
framework: {
- name: "@storybook/react-webpack5",
+ name: '@storybook/react-webpack5',
options: {},
},
docs: {
- autodocs: "tag",
+ autodocs: 'tag',
},
};
export default config;
diff --git a/.storybook/manager.js b/.storybook/manager.js
index 66ce381..2e62084 100644
--- a/.storybook/manager.js
+++ b/.storybook/manager.js
@@ -2,5 +2,5 @@ import { addons } from '@storybook/manager-api';
import theme from './theme';
addons.setConfig({
- theme
-});
\ No newline at end of file
+ theme,
+});
diff --git a/.storybook/preview.js b/.storybook/preview.js
index 28212a2..c63c617 100644
--- a/.storybook/preview.js
+++ b/.storybook/preview.js
@@ -1,10 +1,9 @@
-
import '../src/css/tailwind.css';
export const parameters = {
- actions: { argTypesRegex: "^on[A-Z].*" },
+ actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
- matchers: {
+ matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
@@ -21,7 +20,7 @@ export const parameters = {
},
options: {
storySort: {
- order: ['Core',['Overview', 'Colours','Layout',],'Components'],
+ order: ['Core', ['Overview', 'Colours', 'Layout'], 'Components'],
},
},
-}
\ No newline at end of file
+};
diff --git a/.storybook/theme.js b/.storybook/theme.js
index 2a0d46c..97fd192 100644
--- a/.storybook/theme.js
+++ b/.storybook/theme.js
@@ -4,7 +4,8 @@ export default create({
base: 'light',
brandTitle: 'iugu UX',
brandUrl: '',
- brandImage: 'https://s3-sa-east-1.amazonaws.com/prod-jobsite-files.kenoby.com/uploads/desativado-1617737004-logo-iugu-4-devs-novopng.png',
+ brandImage:
+ 'https://s3-sa-east-1.amazonaws.com/prod-jobsite-files.kenoby.com/uploads/desativado-1617737004-logo-iugu-4-devs-novopng.png',
brandTarget: '_self',
// UI
@@ -28,6 +29,5 @@ export default create({
inputBg: '#FFFFFF',
inputBorder: '#CBCBCA',
inputTextColor: '#333',
- inputBorderRadius: 4
-
-});
\ No newline at end of file
+ inputBorderRadius: 4,
+});
diff --git a/addons/addon-html/src/components/Panel.jsx b/addons/addon-html/src/components/Panel.jsx
index 07fa794..2d69ec7 100644
--- a/addons/addon-html/src/components/Panel.jsx
+++ b/addons/addon-html/src/components/Panel.jsx
@@ -1,10 +1,10 @@
-import React, { useMemo } from "react";
-import { useAddonState, useChannel, useParameter } from "@storybook/api";
-import { AddonPanel } from "@storybook/components";
-import { ADDON_ID, EVENTS, PARAM_KEY } from '../constants'
-import { format as prettierFormat } from "prettier/standalone";
-import prettierHtml from "prettier/parser-html";
-import { PanelContent } from "./PanelContent";
+import React, { useMemo } from 'react';
+import { useAddonState, useChannel, useParameter } from '@storybook/api';
+import { AddonPanel } from '@storybook/components';
+import { ADDON_ID, EVENTS, PARAM_KEY } from '../constants';
+import { format as prettierFormat } from 'prettier/standalone';
+import prettierHtml from 'prettier/parser-html';
+import { PanelContent } from './PanelContent';
export const Panel = (props) => {
// https://storybook.js.org/docs/react/addons/addons-api#useaddonstate
@@ -25,16 +25,16 @@ export const Panel = (props) => {
} = parameters;
const prettierConfig = {
- htmlWhitespaceSensitivity: "ignore",
+ htmlWhitespaceSensitivity: 'ignore',
...prettier,
// Ensure we always pick the html parser
- parser: "html",
+ parser: 'html',
plugins: [prettierHtml],
};
const formattedCode = useMemo(
() => code && prettierFormat(code, prettierConfig),
- [code, prettierConfig],
+ [code, prettierConfig]
);
return (
@@ -46,4 +46,4 @@ export const Panel = (props) => {
/>
);
-};
\ No newline at end of file
+};
diff --git a/addons/addon-html/src/components/PanelContent.jsx b/addons/addon-html/src/components/PanelContent.jsx
index 5f4a00e..4174e2c 100644
--- a/addons/addon-html/src/components/PanelContent.jsx
+++ b/addons/addon-html/src/components/PanelContent.jsx
@@ -1,7 +1,7 @@
-import React from "react";
+import React from 'react';
-import style from "react-syntax-highlighter/dist/esm/styles/hljs/github";
-import SyntaxHighlighter from "./SyntaxHighligher";
+import style from 'react-syntax-highlighter/dist/esm/styles/hljs/github';
+import SyntaxHighlighter from './SyntaxHighligher';
/**
* Checkout https://github.com/storybookjs/storybook/blob/next/code/addons/jest/src/components/Panel.tsx
@@ -10,14 +10,14 @@ import SyntaxHighlighter from "./SyntaxHighligher";
export const PanelContent = ({ code, showLineNumbers, wrapLines }) => {
return (
- {code}
-
- )
-}
+ language={'xml'}
+ copyable={true}
+ padded={true}
+ style={style}
+ showLineNumbers={showLineNumbers}
+ wrapLines={wrapLines}
+ >
+ {code}
+
+ );
+};
diff --git a/addons/addon-html/src/components/SyntaxHighligher.jsx b/addons/addon-html/src/components/SyntaxHighligher.jsx
index 5ce0ef0..94990d7 100644
--- a/addons/addon-html/src/components/SyntaxHighligher.jsx
+++ b/addons/addon-html/src/components/SyntaxHighligher.jsx
@@ -1,16 +1,16 @@
-import React, { useState } from "react";
-import { styled } from "@storybook/theming";
+import React, { useState } from 'react';
+import { styled } from '@storybook/theming';
-import { ActionBar, ScrollArea } from "@storybook/components";
+import { ActionBar, ScrollArea } from '@storybook/components';
-import ReactSyntaxHighlighter from "react-syntax-highlighter";
+import ReactSyntaxHighlighter from 'react-syntax-highlighter';
const Pre = styled.pre(({ theme, padded }) => ({
- display: "flex !important",
- justifyContent: "flex-start",
+ display: 'flex !important',
+ justifyContent: 'flex-start',
margin: 0,
padding: padded ? `${theme.layoutMargin}px !important` : 0,
- tabSize: "2",
+ tabSize: '2',
}));
const Code = styled.code`
@@ -35,7 +35,7 @@ const Code = styled.code`
`;
export default function SyntaxHighlighter({
- language = "jsx",
+ language = 'jsx',
copyable = false,
bordered = false,
padded = false,
@@ -69,7 +69,7 @@ export default function SyntaxHighlighter({
CodeTag={Code}
showLineNumbers={showLineNumbers}
wrapLines={wrapLines}
- lineProps={{ className: "code-line" }}
+ lineProps={{ className: 'code-line' }}
{...rest}
>
{children.trim()}
@@ -77,9 +77,9 @@ export default function SyntaxHighlighter({
{copyable && (
)}
>
);
-}
\ No newline at end of file
+}
diff --git a/addons/addon-html/src/constants.js b/addons/addon-html/src/constants.js
index 010597c..9072803 100644
--- a/addons/addon-html/src/constants.js
+++ b/addons/addon-html/src/constants.js
@@ -1,6 +1,6 @@
-export const ADDON_ID = "storybook/html";
+export const ADDON_ID = 'storybook/html';
export const PANEL_ID = `${ADDON_ID}/panel`;
export const PARAM_KEY = `html`;
export const EVENTS = {
CODE_UPDATE: `${ADDON_ID}/codeUpdate`,
-};
\ No newline at end of file
+};
diff --git a/addons/addon-html/src/index.js b/addons/addon-html/src/index.js
index 4ea1c2f..56a9656 100644
--- a/addons/addon-html/src/index.js
+++ b/addons/addon-html/src/index.js
@@ -1,5 +1,5 @@
if (module && module.hot && module.hot.decline) {
- module.hot.decline();
- } // make it work with --isolatedModules
-
- export default {};
\ No newline at end of file
+ module.hot.decline();
+} // make it work with --isolatedModules
+
+export default {};
diff --git a/addons/addon-html/src/manager.js b/addons/addon-html/src/manager.js
index 83bd6c4..72f84f2 100644
--- a/addons/addon-html/src/manager.js
+++ b/addons/addon-html/src/manager.js
@@ -1,5 +1,3 @@
-
-
import { addons, types } from '@storybook/manager-api';
import { Panel } from './components/Panel';
import { ADDON_ID, PANEL_ID } from './constants';
@@ -8,7 +6,7 @@ addons.register(ADDON_ID, () => {
addons.add(PANEL_ID, {
title: 'Html',
type: types.PANEL,
- match: ({ viewMode }) => viewMode === "story",
- render: Panel
+ match: ({ viewMode }) => viewMode === 'story',
+ render: Panel,
});
-});
\ No newline at end of file
+});
diff --git a/addons/addon-html/src/preset.js b/addons/addon-html/src/preset.js
index 6637756..2512abd 100644
--- a/addons/addon-html/src/preset.js
+++ b/addons/addon-html/src/preset.js
@@ -1,14 +1,14 @@
// /my-addon/src/preset.js
function config(entry = []) {
- return [...entry, require.resolve("./preview")];
+ return [...entry, require.resolve('./preview')];
}
function managerEntries(entry = []) {
- return [...entry, require.resolve("./manager")];
+ return [...entry, require.resolve('./manager')];
}
module.exports = {
managerEntries,
config,
-};
\ No newline at end of file
+};
diff --git a/addons/addon-html/src/preview.js b/addons/addon-html/src/preview.js
index 10f16ca..6489cee 100644
--- a/addons/addon-html/src/preview.js
+++ b/addons/addon-html/src/preview.js
@@ -1,2 +1,2 @@
-import { withHTML } from "./withHTML";
-export const decorators = [withHTML];
\ No newline at end of file
+import { withHTML } from './withHTML';
+export const decorators = [withHTML];
diff --git a/addons/addon-html/src/withHTML.js b/addons/addon-html/src/withHTML.js
index 3697ef4..39ae464 100644
--- a/addons/addon-html/src/withHTML.js
+++ b/addons/addon-html/src/withHTML.js
@@ -1,32 +1,31 @@
-import { makeDecorator, useChannel } from "@storybook/addons";
-import { EVENTS } from "./constants";
+import { makeDecorator, useChannel } from '@storybook/addons';
+import { EVENTS } from './constants';
-
-console.log('with html loading...')
+console.log('with html loading...');
export const withHTML = makeDecorator({
- name: "withHTML",
- parameterName: "html",
+ name: 'withHTML',
+ parameterName: 'html',
skipIfNoParametersOrOptions: false,
wrapper: (storyFn, context, { parameters = {} }) => {
const emit = useChannel({});
setTimeout(() => {
- const rootSelector = parameters.root || "#storybook-root, #root";
+ const rootSelector = parameters.root || '#storybook-root, #root';
const root = document.querySelector(rootSelector);
let code = root ? root.innerHTML : `${rootSelector} not found.`;
- console.log(code)
+ console.log(code);
const { removeEmptyComments, removeComments, transform } = parameters;
if (removeEmptyComments) {
- code = code.replace(//g, "");
+ code = code.replace(//g, '');
}
if (removeComments === true) {
- code = code.replace(//g, "");
+ code = code.replace(//g, '');
} else if (removeComments instanceof RegExp) {
code = code.replace(//g, (match, p1) =>
- removeComments.test(p1) ? "" : match,
+ removeComments.test(p1) ? '' : match
);
}
- if (typeof transform === "function") {
+ if (typeof transform === 'function') {
try {
code = transform(code);
} catch (e) {
@@ -41,4 +40,4 @@ export const withHTML = makeDecorator({
if (module && module.hot && module.hot.decline) {
module.hot.decline();
-}
\ No newline at end of file
+}
diff --git a/package-lock.json b/package-lock.json
index fbe3a18..ef99fbc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -31,7 +31,7 @@
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.23",
- "prettier": "^2.8.8",
+ "prettier": "2.8.8",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/package.json b/package.json
index fdb11d5..ab71c50 100644
--- a/package.json
+++ b/package.json
@@ -9,7 +9,8 @@
"build-storybook": "storybook build",
"chromatic": "chromatic --exit-zero-on-changes",
"test-storybook": "test-storybook",
- "semantic-release": "semantic-release"
+ "semantic-release": "semantic-release",
+ "prettier": "prettier --write ."
},
"release": {
"branches": [
@@ -50,7 +51,7 @@
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"postcss": "^8.4.23",
- "prettier": "^2.8.8",
+ "prettier": "2.8.8",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
diff --git a/postcss.config.js b/postcss.config.js
index ffc77e2..12a703d 100644
--- a/postcss.config.js
+++ b/postcss.config.js
@@ -1,6 +1,6 @@
module.exports = {
- plugins: {
- tailwindcss: {},
- autoprefixer: {},
- },
- };
\ No newline at end of file
+ plugins: {
+ tailwindcss: {},
+ autoprefixer: {},
+ },
+};
diff --git a/src/components/Button.docs.mdx b/src/components/Button.docs.mdx
index fb67594..a1dbf03 100644
--- a/src/components/Button.docs.mdx
+++ b/src/components/Button.docs.mdx
@@ -3,7 +3,7 @@
import { Meta, Primary, Controls, Story } from '@storybook/blocks';
//import * as ButtonStories from './Button.stories';
-import ButtonStories from './Button.stories'
+import ButtonStories from './Button.stories';
@@ -22,4 +22,3 @@ A button is ...
### Primary
A button can be of primary importance.
-
diff --git a/src/components/Button.stories.jsx b/src/components/Button.stories.jsx
index 7c9cc55..8a8edb2 100644
--- a/src/components/Button.stories.jsx
+++ b/src/components/Button.stories.jsx
@@ -5,7 +5,7 @@ import { within, userEvent } from '@storybook/testing-library';
export default {
title: 'Components/Button',
- component: Button
+ component: Button,
};
// return ;
@@ -15,10 +15,10 @@ const Template = (args) => ;
export const Default = Template.bind({});
Default.args = {
label: 'Default Button',
- ...Button.defaultProps
+ ...Button.defaultProps,
};
Default.play = async ({ args, canvasElement }) => {
const canvas = within(canvasElement);
await userEvent.click(canvas.getByRole('button'));
expect(args.onClick).toHaveBeenCalled();
-};
\ No newline at end of file
+};
diff --git a/src/components/Button.test.jsx b/src/components/Button.test.jsx
index 28631d5..3a48000 100644
--- a/src/components/Button.test.jsx
+++ b/src/components/Button.test.jsx
@@ -2,7 +2,6 @@
* @jest-environment jsdom
*/
-
import React from 'react';
import 'regenerator-runtime/runtime';
import '@testing-library/jest-dom/extend-expect';
@@ -30,4 +29,4 @@ describe('Default', () => {
expect(queryByText('Custom Label')).toBeInTheDocument();
});
});
-})
+});
diff --git a/src/components/Panel-OLD.stories.jsx b/src/components/Panel-OLD.stories.jsx
index 6c7a195..40f9449 100644
--- a/src/components/Panel-OLD.stories.jsx
+++ b/src/components/Panel-OLD.stories.jsx
@@ -4,13 +4,13 @@ export default {
title: 'Components/Panel-OLD',
// More on argTypes: https://storybook.js.org/docs/html/api/argtypes
argTypes: {
- 'Header': { control: 'boolean' },
- 'Footer': { control: 'boolean' },
+ Header: { control: 'boolean' },
+ Footer: { control: 'boolean' },
'Sub Panel': { control: 'boolean' },
- 'Floating': { control: 'boolean' },
+ Floating: { control: 'boolean' },
'Baloon Tip': {
control: { type: 'select' },
- options: ['Left','Center', 'Right']
+ options: ['Left', 'Center', 'Right'],
},
},
};
@@ -43,7 +43,9 @@ const Template = ({ label, ...args }) => {
internal = (
-
Paragraph, Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+
+ Paragraph, Lorem ipsum dolor sit amet, consectetur adipiscing elit.{' '}
+
);
@@ -60,15 +62,17 @@ const Template = ({ label, ...args }) => {
}
}
- var classes = 'panel ' + floating
+ var classes = 'panel ' + floating;
return (
{header}
-
Paragraph, Lorem ipsum dolor sit amet, consectetur adipiscing elit.
- Donec id massa interdum, venenatis orci eu, consequat est.
- Cras viverra viverra viverra.
+
+ Paragraph, Lorem ipsum dolor sit amet, consectetur adipiscing elit.
+ Donec id massa interdum, venenatis orci eu, consequat est. Cras
+ viverra viverra viverra.
+
{internal}
{footer}
@@ -78,36 +82,36 @@ const Template = ({ label, ...args }) => {
export const Default = Template.bind({});
Default.args = {
- 'Header': false,
- 'Footer': false,
+ Header: false,
+ Footer: false,
'Sub Panel': false,
- 'Floating': false,
- 'Baloon Tip': 'Center'
+ Floating: false,
+ 'Baloon Tip': 'Center',
};
export const Extended = Template.bind({});
Extended.args = {
- 'Header': true,
- 'Footer': true,
+ Header: true,
+ Footer: true,
'Sub Panel': false,
- 'Floating': false,
- 'Baloon Tip': 'Center'
+ Floating: false,
+ 'Baloon Tip': 'Center',
};
export const Internal = Template.bind({});
Internal.args = {
- 'Header': true,
- 'Footer': true,
+ Header: true,
+ Footer: true,
'Sub Panel': true,
- 'Floating': false,
- 'Baloon Tip': 'Center'
+ Floating: false,
+ 'Baloon Tip': 'Center',
};
export const Floating = Template.bind({});
Floating.args = {
- 'Header': false,
- 'Footer': false,
+ Header: false,
+ Footer: false,
'Sub Panel': true,
- 'Floating': true,
- 'Baloon Tip': 'Center'
-};
\ No newline at end of file
+ Floating: true,
+ 'Baloon Tip': 'Center',
+};
diff --git a/src/components/Panel.stories.jsx b/src/components/Panel.stories.jsx
index 847050b..3fb0b12 100644
--- a/src/components/Panel.stories.jsx
+++ b/src/components/Panel.stories.jsx
@@ -3,7 +3,7 @@ import { Panel } from '../js/index.js';
export default {
title: 'Components/Panel',
- component: Panel
+ component: Panel,
};
const Template = (args) =>
;
@@ -11,8 +11,7 @@ const Template = (args) =>
;
export const Default = Template.bind({});
Default.args = {
wrappedElement:
Hello
,
- ...Panel.defaultProps
+ ...Panel.defaultProps,
};
-Default.parameters = {
-};
\ No newline at end of file
+Default.parameters = {};
diff --git a/src/components/Typography.stories.mdx b/src/components/Typography.stories.mdx
index 9ec0f04..cc5e44b 100644
--- a/src/components/Typography.stories.mdx
+++ b/src/components/Typography.stories.mdx
@@ -1,6 +1,8 @@
import { Meta, Story, Title } from '@storybook/addon-docs';
-
(
@@ -16,6 +18,7 @@ Os textos em nossa direção de arte usam a fonte Museo Sans.
## Títulos Padrões
Título 1
+
Suspendisse sit
@@ -25,6 +28,7 @@ Título 1
```
Título 2
+
Suspendisse sit
@@ -34,6 +38,7 @@ Título 2
```
Título 3
+
Suspendisse sit
@@ -47,6 +52,7 @@ Título 3
### Usados em Marketing ou Avisos
Título 1 - Grande
+
Suspendisse sit
@@ -56,6 +62,7 @@ Título 1 - Grande
```
Título 2 - Grande
+
Suspendisse sit
@@ -65,6 +72,7 @@ Título 2 - Grande
```
Título 3 - Grande
+
Suspendisse sit
@@ -81,8 +89,16 @@ Subtítulo 1
Sub-título 1 - Suspendisse sit amet urna tellus
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
```
@@ -94,9 +110,19 @@ Subtítulo 1
Subtítulo 2
-
Sub-título 1 - Suspendisse sit amet urna tellus
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
+
+ Sub-título 1 - Suspendisse sit amet urna tellus
+
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
```
@@ -108,9 +134,19 @@ Subtítulo 2
Subtítulo com divisor
-
Sub-título 1 - Suspendisse sit amet urna tellus
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
+
+ Sub-título 1 - Suspendisse sit amet urna tellus
+
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
```
@@ -122,11 +158,19 @@ Subtítulo com divisor
Paragraphs
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
-
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
+
+ Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id
+ massa interdum, venenatis orci eu, consequat est. Cras viverra viverra
+ viverra.
+
```
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
Parágrafo, Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec id massa interdum, venenatis orci eu, consequat est. Cras viverra viverra viverra.
-```
\ No newline at end of file
+```
diff --git a/src/core/Colours.stories.mdx b/src/core/Colours.stories.mdx
index dd16bb4..b963baa 100644
--- a/src/core/Colours.stories.mdx
+++ b/src/core/Colours.stories.mdx
@@ -6,7 +6,6 @@ import { Meta } from '@storybook/addon-docs';
The color pallete prepared for apps.
-
@@ -17,412 +16,499 @@ The color pallete prepared for apps.
-
-
-
-
#6B88FF
-
Base Light
-
$base_light
-
-
+{" "}
-
-
-
-
#3B5DE8
-
Base Dark
-
$base_dark
-
+
+
+
+
#6B88FF
+
Base Light
+
$base_light
+
-
-
-
-
#000000
-
Neutral Black
-
$neutral_black
-
+{" "}
+
+
+
+
+
#3B5DE8
+
Base Dark
+
$base_dark
+
-
-
-
-
#FFFFFF
-
Neutral White
-
$neutral_white
-
+{" "}
+
+
+
+
+
#000000
+
Neutral Black
+
$neutral_black
+
-
-
-
-
#F3F5F7
-
Bg 50
-
$bg_blue_50
-
+{" "}
+
+
+
+
+
#FFFFFF
+
Neutral White
+
$neutral_white
+
-
-
-
-
#E0F1F5
-
Bg 200
-
$bg_blue_200
-
+{" "}
+
+
+
+
+
#F3F5F7
+
Bg 50
+
$bg_blue_50
+
-
-
-
-
#657373
-
Text Base
-
$text_base
-
+{" "}
+
+
+
+
+
#E0F1F5
+
Bg 200
+
$bg_blue_200
+
-
-
-
-
#1A1A1B
-
Text Darker
-
$text_darker
-
+{" "}
+
+
+
+
+
#657373
+
Text Base
+
$text_base
+
-
-
-
-
#009E56
-
Action Success
-
$action_success
-
+{" "}
+
+
+
+
+
#1A1A1B
+
Text Darker
+
$text_darker
+
-
-
-
-
#F15A22
-
Action Danger
-
$action_danger
-
+{" "}
+
+
+
+
+
#009E56
+
Action Success
+
$action_success
+
-
-
-
-
#F89621
-
Action Warning
-
$action_warning
-
+{" "}
+
+
+
+
+
#F15A22
+
Action Danger
+
$action_danger
+
-
-
-
-
#00AACE
-
Action Default
-
$action_default
-
+{" "}
+
+
+
+
+
#F89621
+
Action Warning
+
$action_warning
+
-
-
-
-
#96A8A8
-
Action Generic
-
$action_generic
-
+{" "}
+
+
+
+
+
#00AACE
+
Action Default
+
$action_default
+
-
-
-
-
#4882C3
-
Action Info
-
$action_info
-
+{" "}
+
+
+
+
+
#96A8A8
+
Action Generic
+
$action_generic
+
-
-
-
-
#F37873
-
Coral
-
$color_coral
-
+{" "}
+
+
+
+
+
#4882C3
+
Action Info
+
$action_info
+
-
-
-
-
#F15A22
-
Flame
-
$color_flame
-
+{" "}
+
+
+
+
+
#F37873
+
Coral
+
$color_coral
+
-
-
-
-
#DE4330
-
Red
-
$color_red
-
+{" "}
+
+
+
+
+
#F15A22
+
Flame
+
$color_flame
+
-
-
-
-
#A81F4B
-
Ruby
-
$color_ruby
-
+{" "}
+
+
+
+
+
#DE4330
+
Red
+
$color_red
+
-
-
-
-
#C9327E
-
Violet
-
$color_violet
-
+{" "}
+
+
+
+
+
#A81F4B
+
Ruby
+
$color_ruby
+
-
-
-
-
#7E3594
-
Purple
-
$color_purple
-
+{" "}
+
+
+
+
+
#C9327E
+
Violet
+
$color_violet
+
-
-
-
-
#4882C3
-
Steel Blue
-
$color_steelblue
-
+{" "}
+
+
+
+
+
#7E3594
+
Purple
+
$color_purple
+
-
-
-
-
#3D5BA9
-
Royal Blue
-
$color_royalblue
-
+{" "}
+
+
+
+
+
#4882C3
+
Steel Blue
+
$color_steelblue
+
-
-
-
-
#01AACE
-
Deep Blue
-
$color_deepblue
-
+{" "}
+
+
+
+
+
#3D5BA9
+
Royal Blue
+
$color_royalblue
+
-
-
-
-
#68C8C6
-
Turquoise
-
$color_turquoise
-
+{" "}
+
+
+
+
+
#01AACE
+
Deep Blue
+
$color_deepblue
+
-
-
-
-
#C7DA35
-
Vivid Green
-
$color_vividgreen
-
+{" "}
+
+
+
+
+
#68C8C6
+
Turquoise
+
$color_turquoise
+
-
-
-
-
#60B146
-
Green
-
$color_green
-
+{" "}
+
+
+
+
+
#C7DA35
+
Vivid Green
+
$color_vividgreen
+
-
-
-
-
#009E56
-
Forest Green
-
$color_forestgreen
-
+{" "}
+
+
+
+
+
#60B146
+
Green
+
$color_green
+
-
-
-
-
#F5EB1B
-
Yellow
-
$color_yellow
-
+{" "}
+
+
+
+
+
#009E56
+
Forest Green
+
$color_forestgreen
+
-
-
-
-
#F89621
-
Orange
-
$color_orange
-
+{" "}
+
+
+
+
+
#F5EB1B
+
Yellow
+
$color_yellow
+
-
-
-
-
#7A5647
-
Brown
-
$color_brown
-
+{" "}
+
+
+
+
+
#F89621
+
Orange
+
$color_orange
+
-
-
-
-
#989898
-
Neutral Light 1
-
$neutral_light_1
-
+{" "}
+
+
+
+
+
#7A5647
+
Brown
+
$color_brown
+
-
-
-
-
#B3B3B3
-
Neutral Light 2
-
$neutral_light_2
-
+{" "}
+
+
+
+
+
#989898
+
Neutral Light 1
+
$neutral_light_1
+
-
-
-
-
#CBCBCA
-
Neutral Light 3
-
$neutral_light_3
-
+{" "}
+
+
+
+
+
#B3B3B3
+
Neutral Light 2
+
$neutral_light_2
+
-
-
-
-
#E5E5E5
-
Neutral Light 4
-
$neutral_light_4
-
+{" "}
+
+
+
+
+
#CBCBCA
+
Neutral Light 3
+
$neutral_light_3
+
-
-
-
-
#F3F3F3
-
Neutral Light 5
-
$neutral_light_5
-
+{" "}
+
+
+
+
+
#E5E5E5
+
Neutral Light 4
+
$neutral_light_4
+
-
-
-
-
#2C3636
-
Neutral Gray 1
-
$neutral_gray_1
-
+{" "}
+
+
+
+
+
#F3F3F3
+
Neutral Light 5
+
$neutral_light_5
+
-
-
-
-
#555F5F
-
Neutral Gray 2
-
$neutral_gray_2
-
+{" "}
+
+
+
+
+
#2C3636
+
Neutral Gray 1
+
$neutral_gray_1
+
-
-
-
-
#96A8A8
-
Neutral Gray 3
-
$neutral_gray_3
-
+{" "}
+
+
+
+
+
#555F5F
+
Neutral Gray 2
+
$neutral_gray_2
+
-
-
-
-
#C0CCCD
-
Neutral Gray 4
-
$neutral_gray_4
-
+{" "}
+
+
+
+
+
#96A8A8
+
Neutral Gray 3
+
$neutral_gray_3
+
-
-
-
-
#D6DEDE
-
Neutral Gray 5
-
$neutral_gray_5
-
+{" "}
+
+
+
+
+
#C0CCCD
+
Neutral Gray 4
+
$neutral_gray_4
+
-
-
-
-
#1A1A1B
-
Neutral Dark 1
-
$neutral_dark_1
-
+{" "}
+
+
+
+
+
#D6DEDE
+
Neutral Gray 5
+
$neutral_gray_5
+
-
-
-
-
#343734
-
Neutral Dark 2
-
$neutral_dark_2
-
+{" "}
+
+
+
+
+
#1A1A1B
+
Neutral Dark 1
+
$neutral_dark_1
+
-
-
-
-
#4E4E4E
-
Neutral Dark 3
-
$neutral_dark_3
-
+{" "}
+
+
+
+
+
#343734
+
Neutral Dark 2
+
$neutral_dark_2
+
-
-
-
-
#676767
-
Neutral Dark 4
-
$neutral_dark_4
-
+{" "}
+
+
+
+
+
#4E4E4E
+
Neutral Dark 3
+
$neutral_dark_3
+
-
-
-
-
#7F7F80
-
Neutral Dark 5
-
$neutral_dark_5
-
+{" "}
+
+
+
+
+
#676767
+
Neutral Dark 4
+
$neutral_dark_4
+
-
+{" "}
+
+
+
+
#7F7F80
+
Neutral Dark 5
+
$neutral_dark_5
+
+
-
\ No newline at end of file
+
diff --git a/src/core/Layout.stories.js b/src/core/Layout.stories.js
index f1bade3..1f44187 100644
--- a/src/core/Layout.stories.js
+++ b/src/core/Layout.stories.js
@@ -1,11 +1,10 @@
export default {
title: 'Core/Layout',
// More on argTypes: https://storybook.js.org/docs/html/api/argtypes
- argTypes: {
- },
+ argTypes: {},
parameters: {
- layout: 'centered'
- }
+ layout: 'centered',
+ },
};
const TemplateSimple = ({ label, ...args }) => {
@@ -22,7 +21,7 @@ const TemplateSimple = ({ label, ...args }) => {
`;
-}
+};
const TemplateCenter = ({ label, ...args }) => {
// You can either use a function to create DOM elements or use a plain html string!
@@ -40,7 +39,7 @@ const TemplateCenter = ({ label, ...args }) => {
`;
-}
+};
const TemplateSidebar = ({ label, ...args }) => {
// You can either use a function to create DOM elements or use a plain html string!
@@ -63,7 +62,7 @@ const TemplateSidebar = ({ label, ...args }) => {
`;
-}
+};
const TemplateComplex = ({ label, ...args }) => {
// You can either use a function to create DOM elements or use a plain html string!
@@ -95,23 +94,24 @@ const TemplateComplex = ({ label, ...args }) => {
`;
-}
+};
export const Simple = TemplateSimple.bind({});
-Simple.args = {
-};
+Simple.args = {};
export const Centered = TemplateCenter.bind({});
-Centered.args = {
-};
+Centered.args = {};
export const WithSidebar = TemplateSidebar.bind({});
-WithSidebar.args = {
-};
+WithSidebar.args = {};
export const Complex = TemplateComplex.bind({});
-Complex.args = {
-};
+Complex.args = {};
// eslint-disable-next-line no-underscore-dangle
-export const __namedExportsOrder = ['Simple', 'Centered', 'WithSidebar', 'Complex'];
\ No newline at end of file
+export const __namedExportsOrder = [
+ 'Simple',
+ 'Centered',
+ 'WithSidebar',
+ 'Complex',
+];
diff --git a/src/core/Overview.stories.mdx b/src/core/Overview.stories.mdx
index b71d7f5..30858df 100644
--- a/src/core/Overview.stories.mdx
+++ b/src/core/Overview.stories.mdx
@@ -4,4 +4,4 @@ import { Meta } from '@storybook/addon-docs';
# Overview
-Welcome to iugu's design system.
\ No newline at end of file
+Welcome to iugu's design system.
diff --git a/src/css/tailwind.css b/src/css/tailwind.css
index 7a5d854..3b8ffc4 100644
--- a/src/css/tailwind.css
+++ b/src/css/tailwind.css
@@ -1,9 +1,9 @@
-@import url('https://fonts.cdnfonts.com/css/museo-sans-rounded');
+@import url('https://use.typekit.net/xqk4zue.css');
@tailwind base;
@tailwind components;
@tailwind utilities;
html {
- font-family: 'Museo Sans Rounded', sans-serif;
+ font-family: 'museo-sans', sans-serif;
}
diff --git a/src/js/components/button.jsx b/src/js/components/button.jsx
index 237011c..f000a10 100644
--- a/src/js/components/button.jsx
+++ b/src/js/components/button.jsx
@@ -5,10 +5,13 @@ import PropTypes from 'prop-types';
* Primary UI component for user interaction
*/
export const Button = ({ primary, size, label, ...props }) => {
- const mode = primary ? 'storybook-button--primary' : 'storybook-button--secondary';
+ const mode = primary
+ ? 'storybook-button--primary'
+ : 'storybook-button--secondary';
return (
@@ -34,5 +37,5 @@ Button.propTypes = {
Button.defaultProps = {
size: 'medium',
- label: 'Button'
-};
\ No newline at end of file
+ label: 'Button',
+};
diff --git a/src/js/components/panel.jsx b/src/js/components/panel.jsx
index 1109155..0e08109 100644
--- a/src/js/components/panel.jsx
+++ b/src/js/components/panel.jsx
@@ -5,13 +5,7 @@ import PropTypes from 'prop-types';
* Panel. A content wrapper
*/
export const Panel = ({ wrappedElement, ...props }) => {
- return (
-
- {wrappedElement}
-
- );
+ return {wrappedElement}
;
};
Panel.propTypes = {
@@ -19,7 +13,6 @@ Panel.propTypes = {
* Element to be rendered inside.
*/
wrappedElement: PropTypes.element,
-}
+};
-Panel.defaultProps = {
-};
\ No newline at end of file
+Panel.defaultProps = {};
diff --git a/tailwind.config.js b/tailwind.config.js
index cdc5233..b4c0242 100644
--- a/tailwind.config.js
+++ b/tailwind.config.js
@@ -1,9 +1,9 @@
module.exports = {
- content: ['./src/**/*.{js,jsx,ts,tsx}'],
- // Toggle dark-mode based on data-mode="dark"
- darkMode: ['class', '[data-mode="dark"]'],
- theme: {
- extend: {},
- },
- plugins: [],
- };
\ No newline at end of file
+ content: ['./src/**/*.{js,jsx,ts,tsx}'],
+ // Toggle dark-mode based on data-mode="dark"
+ darkMode: ['class', '[data-mode="dark"]'],
+ theme: {
+ extend: {},
+ },
+ plugins: [],
+};