diff --git a/components/system/components/CardTabGroup.js b/components/system/components/CardTabGroup.js index cd554329..aa1622ea 100644 --- a/components/system/components/CardTabGroup.js +++ b/components/system/components/CardTabGroup.js @@ -11,6 +11,7 @@ const TAB_GROUP_SIZE_MAP = { }; const STYLES_CARD_TAB_GROUP = css` + font-family: ${Constants.font.text}; width: 100%; display: flex; align-items: flex-start; diff --git a/components/system/components/CheckBox.js b/components/system/components/CheckBox.js index a9afdd18..0e8ede27 100644 --- a/components/system/components/CheckBox.js +++ b/components/system/components/CheckBox.js @@ -5,6 +5,7 @@ import * as SVG from "~/components/system/svg"; import { css } from "@emotion/react"; const STYLES_CHECKBOX = css` + font-family: ${Constants.font.text}; display: flex; align-items: flex-start; justify-content: space-between; diff --git a/components/system/components/CodeBlock.js b/components/system/components/CodeBlock.js index 201d871d..91db5bb3 100644 --- a/components/system/components/CodeBlock.js +++ b/components/system/components/CodeBlock.js @@ -4,7 +4,7 @@ import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; const STYLES_CODE_BLOCK = css` - font-family: "mono"; + font-family: ${Constants.system.mono}; background-color: ${Constants.system.black}; color: ${Constants.system.white}; border-radius: 4px; diff --git a/components/system/components/Input.js b/components/system/components/Input.js index 85dbed13..29942176 100644 --- a/components/system/components/Input.js +++ b/components/system/components/Input.js @@ -1,13 +1,14 @@ -import * as React from 'react'; -import * as Constants from '~/common/constants'; -import * as SVG from '~/components/system/svg'; -import * as Strings from '~/common/strings'; +import * as React from "react"; +import * as Constants from "~/common/constants"; +import * as SVG from "~/components/system/svg"; +import * as Strings from "~/common/strings"; -import { css } from '@emotion/react'; +import { css } from "@emotion/react"; -import { DescriptionGroup } from '~/components/system/components/fragments/DescriptionGroup'; +import { DescriptionGroup } from "~/components/system/components/fragments/DescriptionGroup"; const INPUT_STYLES = ` + font-family: ${Constants.font.text}; -webkit-appearance: none; width: 100%; height: 40px; @@ -33,12 +34,14 @@ const STYLES_INPUT_CONTAINER = css` const STYLES_INPUT = css` ${INPUT_STYLES} padding: 0 24px 0 24px; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 0 0 1px ${Constants.system.darkGray}; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), + inset 0 0 0 1px ${Constants.system.darkGray}; :focus { outline: 0; border: 0; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), inset 0 0 0 2px ${Constants.system.brand}; + box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07), + inset 0 0 0 2px ${Constants.system.brand}; } ::placeholder { @@ -82,7 +85,7 @@ export class Input extends React.Component { _handleCopy = (e) => { this._input.select(); - document.execCommand('copy'); + document.execCommand("copy"); }; _handleKeyUp = (e) => { @@ -95,7 +98,10 @@ export class Input extends React.Component { }; _handleChange = (e) => { - if (!Strings.isEmpty(this.props.pattern) && !Strings.isEmpty(e.target.value)) { + if ( + !Strings.isEmpty(this.props.pattern) && + !Strings.isEmpty(e.target.value) + ) { const TestRegex = new RegExp(this.props.pattern); if (!TestRegex.test(e.target.value)) { e.preventDefault(); @@ -116,7 +122,11 @@ export class Input extends React.Component { render() { return (
- + { this._input = c; @@ -133,12 +143,18 @@ export class Input extends React.Component { style={{ ...this.props.style, boxShadow: this.props.validation - ? `0 1px 4px rgba(0, 0, 0, 0.07), 0 0 4px ${INPUT_COLOR_MAP[this.props.validation]}` + ? `0 1px 4px rgba(0, 0, 0, 0.07), 0 0 4px ${ + INPUT_COLOR_MAP[this.props.validation] + }` : null, }} /> {this.props.copyable ? ( - + ) : null}
); diff --git a/components/system/components/Notification.js b/components/system/components/Notification.js index 1c4f3369..93dd21eb 100644 --- a/components/system/components/Notification.js +++ b/components/system/components/Notification.js @@ -1,13 +1,14 @@ -import * as React from 'react'; -import * as Constants from '~/common/constants'; -import * as SVG from '~/components/system/svg'; -import * as Strings from '~/common/strings'; +import * as React from "react"; +import * as Constants from "~/common/constants"; +import * as SVG from "~/components/system/svg"; +import * as Strings from "~/common/strings"; -import { css } from '@emotion/react'; +import { css } from "@emotion/react"; -import { DescriptionGroup } from '~/components/system/components/fragments/DescriptionGroup'; +import { DescriptionGroup } from "~/components/system/components/fragments/DescriptionGroup"; const STYLES_NOTIFICATION = css` + font-family: ${Constants.font.text}; background-color: ${Constants.system.white}; border-radius: 5px; padding: 15px 15px 3px 15px; @@ -29,7 +30,7 @@ const STYLES_CLOSE = css` top: 8px; right: 8px; cursor: pointer; -` +`; const NOTIF_COLOR_MAP = { SUCCESS: Constants.system.lightGreen, @@ -39,48 +40,67 @@ const NOTIF_COLOR_MAP = { }; const ICON_MAP = { - SUCCESS: , - ERROR: , - WARNING: , - INFO: , -} + SUCCESS: ( + + ), + ERROR: ( + + ), + WARNING: ( + + ), + INFO: ( + + ), +}; export class Notification extends React.Component { render() { return ( -
- {ICON_MAP[this.props.status || 'INFO']} - - {this.props.onClose ? :
} + {this.props.onClose ? ( + + ) : ( +
+ )}
); } diff --git a/components/system/components/PopoverNavigation.js b/components/system/components/PopoverNavigation.js index 1ebf4bc6..9426de53 100644 --- a/components/system/components/PopoverNavigation.js +++ b/components/system/components/PopoverNavigation.js @@ -1,14 +1,16 @@ -import * as React from 'react'; -import * as Constants from '~/common/constants'; +import * as React from "react"; +import * as Constants from "~/common/constants"; -import { css } from '@emotion/react'; +import { css } from "@emotion/react"; const STYLES_POPOVER = css` + font-family: ${Constants.font.text}; position: absolute; width: 288px; border-radius: 4px; background-color: ${Constants.system.white}; - box-shadow: inset 0 0 0 1px ${Constants.system.border}, 0 1px 4px rgba(0, 0, 0, 0.07); + box-shadow: inset 0 0 0 1px ${Constants.system.border}, + 0 1px 4px rgba(0, 0, 0, 0.07); `; const STYLES_POPOVER_ITEM = css` @@ -32,7 +34,7 @@ const STYLES_POPOVER_ITEM = css` export class PopoverNavigation extends React.Component { static defaultProps = { onNavigateTo: () => { - console.error('requires onNavigateTo'); + console.error("requires onNavigateTo"); }, }; @@ -41,7 +43,11 @@ export class PopoverNavigation extends React.Component {
{this.props.navigation.map((each) => { return ( -
this.props.onNavigateTo({ id: each.value })}> +
this.props.onNavigateTo({ id: each.value })} + > {each.text}
); diff --git a/components/system/components/RadioGroup.js b/components/system/components/RadioGroup.js index 5daca2f8..ad027525 100644 --- a/components/system/components/RadioGroup.js +++ b/components/system/components/RadioGroup.js @@ -4,6 +4,7 @@ import * as Constants from "~/common/constants"; import { css } from "@emotion/react"; const STYLES_RADIO = css` + font-family: ${Constants.font.text}; display: flex; align-items: flex-start; justify-content: space-between; diff --git a/components/system/components/SelectMenus.js b/components/system/components/SelectMenus.js index 6bdf3e87..e5a2797b 100644 --- a/components/system/components/SelectMenus.js +++ b/components/system/components/SelectMenus.js @@ -1,12 +1,13 @@ -import * as React from 'react'; -import * as Constants from '~/common/constants'; -import * as SVG from '~/components/system/svg'; +import * as React from "react"; +import * as Constants from "~/common/constants"; +import * as SVG from "~/components/system/svg"; -import { css } from '@emotion/react'; +import { css } from "@emotion/react"; -import { DescriptionGroup } from '~/components/system/components/fragments/DescriptionGroup'; +import { DescriptionGroup } from "~/components/system/components/fragments/DescriptionGroup"; const INPUT_STYLES = ` + font-family: ${Constants.font.text}; -webkit-appearance: none; width: 100%; height: 40px; @@ -80,7 +81,10 @@ export const SelectMenu = (props) => {