diff --git a/.gitignore b/.gitignore index 36bee74..14a7608 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,8 @@ __build-es **/index.js +!__application/**/index.js + CHANGELOG.md + +themePrepare_bck.js diff --git a/__application/component/Button/Button.js b/__application/component/Button/Button.js index d8953f6..875b8c1 100644 --- a/__application/component/Button/Button.js +++ b/__application/component/Button/Button.js @@ -1,55 +1,55 @@ -import React from 'react'; -import PropTypes from 'prop-types'; -import styled from 'styled-components'; -import cx from 'classnames'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import React from "react" +import PropTypes from "prop-types" +import styled from "styled-components" +import cx from "classnames" +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome" const styles = { - size: { s: 'xs', m: 's', l: 's' }, - padding: { s: [1, 2], m: [1.5, 2], l: [2, 2] }, + "size": { "s": "xs", "m": "s", "l": "s" }, + "padding": { "s": [1, 2], "m": [1.5, 2], "l": [2, 2] }, pointerEvents(props) { if (props.disabled) { - return 'none'; + return "none" } - return ''; + return "" }, opacity(props) { if (props.disabled) { - return '0.5'; + return "0.5" } - return ''; + return "" }, - hover: { + "hover": { color(props) { - if (props.kind === 'filled') { - return props.theme.color.white; + if (props.kind === "filled") { + return props.theme.color.white } - if (props.kind === 'outlined') { - return props.theme.color.white; + if (props.kind === "outlined") { + return props.theme.color.white } - return ''; + return "" }, backgroundColor(props) { - if (props.kind === 'filled') { - return props.theme.color[`${props.color}Dark`]; + if (props.kind === "filled") { + return props.theme.color[`${props.color}Dark`] } - if (props.kind === 'outlined') { - return props.theme.color[props.color]; + if (props.kind === "outlined") { + return props.theme.color[props.color] } - return ''; + return "" }, borderColor(props) { - if (props.kind === 'filled') { - return props.theme.color[`${props.color}Dark`]; + if (props.kind === "filled") { + return props.theme.color[`${props.color}Dark`] } - if (props.kind === 'outlined') { - return props.theme.color[props.color]; + if (props.kind === "outlined") { + return props.theme.color[props.color] } - return ''; - }, - }, -}; + return "" + } + } +} const StyledButton = styled( ({ @@ -60,7 +60,7 @@ const StyledButton = styled( fluid, isLoading, ...props - }) =>