diff --git a/.storybook/.babelrc b/.storybook/.babelrc index a00483203c..9a32bba549 100644 --- a/.storybook/.babelrc +++ b/.storybook/.babelrc @@ -1,10 +1,5 @@ { - "plugins": [ - "@babel/plugin-proposal-class-properties", - "lodash", - "inline-react-svg", - "macros" - ], + "plugins": ["@babel/plugin-proposal-class-properties", "lodash", "macros"], "presets": [ ["@babel/preset-env", { "loose": true }], "@babel/preset-react", diff --git a/.storybook/components/IconSize.js b/.storybook/components/IconSize.js index 900317760b..42a916f149 100644 --- a/.storybook/components/IconSize.js +++ b/.storybook/components/IconSize.js @@ -69,8 +69,6 @@ const IconSize = ({ size }) => ( ); IconSize.propTypes = { - // eslint-disable-next-line - theme: PropTypes.object.isRequired, size: PropTypes.string.isRequired }; diff --git a/.storybook/components/Icons.js b/.storybook/components/Icons.js new file mode 100644 index 0000000000..8d15a5aa4b --- /dev/null +++ b/.storybook/components/Icons.js @@ -0,0 +1,189 @@ +/** + * Copyright 2019, SumUp Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import React, { useState } from 'react'; +import PropTypes from 'prop-types'; +import styled from '@emotion/styled'; +import { css } from '@emotion/core'; +import { ThemeProvider } from 'emotion-theming'; +import { keys, entries, includes, isEmpty, groupBy, sortBy } from 'lodash/fp'; +import * as iconComponents from '@sumup/icons'; +import { icons } from '@sumup/icons/manifest.json'; + +import { + theme as themes, + Heading, + Text, + InlineElements, + Label, + SearchInput, + Select +} from '../../src'; + +function group(key, collection) { + const grouped = groupBy(key, collection); + return entries(grouped).map(([name, items]) => ({ [key]: name, items })); +} + +function getComponentName(name) { + // Split on non-word characters + const words = name.split(/[^a-z0-9]/i); + // Uppercase the first letter and lowercase the rest + const pascalCased = words.map( + part => part.charAt(0).toUpperCase() + part.substr(1).toLowerCase() + ); + return pascalCased.join(''); +} + +const Filters = styled(InlineElements)` + margin-top: ${p => p.theme.spacings.tera}; + margin-bottom: ${p => p.theme.spacings.peta}; +`; + +const Category = styled.section` + margin-bottom: ${p => p.theme.spacings.tera}; +`; + +const List = styled.div` + display: flex; + flex-wrap: wrap; +`; + +const Wrapper = styled.div` + width: 7.5rem; + text-align: center; + margin-top: ${p => p.theme.spacings.giga}; + margin-bottom: ${p => p.theme.spacings.giga}; +`; + +const Size = styled.p` + color: ${p => p.theme.colors.n700}; + font-style: italic; +`; + +const iconStyles = color => theme => css` + height: 3rem; + width: auto; + max-width: 6rem; + color: ${theme.colors[color]}; + background-color: ${color === 'white' + ? theme.colors.n900 + : theme.colors.bodyBg}; +`; + +const Icons = () => { + const [search, setSearch] = useState(''); + const [size, setSize] = useState('all'); + const [color, setColor] = useState('n900'); + + const handleSearch = event => { + setSearch(event.target.value); + }; + + const handleSizeChange = event => { + setSize(event.target.value); + }; + + const handleColorChange = event => { + setColor(event.target.value); + }; + + const sizeOptions = [ + { label: 'All sizes', value: 'all' }, + { label: 'Small', value: 'small' }, + { label: 'Large', value: 'large' } + ]; + + const colorOptions = [ + { label: 'Dark gray', value: 'n900' }, + { label: 'Gray', value: 'n500' }, + { label: 'White', value: 'white' }, + { label: 'Primary', value: 'p500' }, + { label: 'Success', value: 'success' }, + { label: 'Warning', value: 'warning' }, + { label: 'Danger', value: 'danger' } + ]; + + const activeIcons = icons.filter( + icon => + includes(search, icon.name) && (size === 'all' || size === icon.size) + ); + + return ( + + + + + + + + {isEmpty(activeIcons) ? ( + No icons found + ) : ( + group('category', activeIcons).map(({ category, items }) => ( + + + {category} + + + {sortBy('name', items).map(icon => { + const id = `${icon.name}-${icon.size}`; + const componentName = getComponentName(icon.name); + const Icon = iconComponents[componentName]; + return ( + + + + + ); + })} + + + )) + )} + + ); +}; + +export default Icons; diff --git a/.storybook/components/index.js b/.storybook/components/index.js index 3c7bf9bbaf..111abd1a5f 100644 --- a/.storybook/components/index.js +++ b/.storybook/components/index.js @@ -31,6 +31,7 @@ export { default as MediaQueriesTable } from './MediaQueriesTable'; export { default as BorderWidth } from './BorderWidth'; export { default as BorderRadius } from './BorderRadius'; export { default as IconSize } from './IconSize'; +export { default as Icons } from './Icons'; export { Grid, Row, Col } from './Grid'; export { default as Intro } from './Intro'; export { default as Teaser } from './Teaser'; diff --git a/.storybook/preview.js b/.storybook/preview.js index b011cc51bc..19b77f6b27 100644 --- a/.storybook/preview.js +++ b/.storybook/preview.js @@ -21,7 +21,14 @@ const SORT_ORDER = { 'Contributing', 'Code of Conduct' ], - Advanced: ['Static CSS', 'Base Components', 'Theme', 'Grid', 'Fonts'], + Advanced: [ + 'Static CSS', + 'Base Components', + 'Theme', + 'Grid', + 'Icons', + 'Fonts' + ], Typography: ['Heading', 'SubHeading', 'Text'], Layout: [], Forms: [], diff --git a/.babelrc b/babel.config.json similarity index 97% rename from .babelrc rename to babel.config.json index bd42e670ab..946fca9046 100644 --- a/.babelrc +++ b/babel.config.json @@ -16,7 +16,6 @@ "plugins": [ "@babel/plugin-proposal-class-properties", "lodash", - "inline-react-svg", "dev-expression", "react-docgen" ], diff --git a/docs/advanced/icons.story.mdx b/docs/advanced/icons.story.mdx new file mode 100644 index 0000000000..a0e4fdd6a8 --- /dev/null +++ b/docs/advanced/icons.story.mdx @@ -0,0 +1,15 @@ +import { Meta, Icons } from '../../.storybook/components'; + + + +# Icons + +The icons used throughout Circuit UI come from [SumUp's icon library](https://github.com/sumup-oss/icons). The [`@sumup/icons`](https://www.npmjs.com/package/@sumup/icons) package is a required peer dependency of [`@sumup/circuit-ui`](https://www.npmjs.com/package/@sumup/circuit-ui). You can install the package by running the following command in your project: + +```bash +yarn add @sumup/icons +# Or if you prefer npm: +npm install @sumup/icons +``` + + diff --git a/jest.config.js b/jest.config.js index d200e05be2..12dbec56e7 100644 --- a/jest.config.js +++ b/jest.config.js @@ -23,7 +23,7 @@ module.exports = { collectCoverageFrom: [ 'src/@(components|util|styles)/**/*.{ts,tsx,js,jsx}', '!src/@(components|util|styles)/**/index.{ts,tsx,js,jsx}', - '!src/@(components|util|styles)/**/*.story.{jts,tsx,s,jsx}', + '!src/@(components|util|styles)/**/*.story.{ts,tsx,js,jsx}', '!src/@(components|util|styles)/**/*.docs.mdx', '!**/node_modules/**' ], diff --git a/package.json b/package.json index dc72d8b5de..119d4c2364 100644 --- a/package.json +++ b/package.json @@ -97,6 +97,7 @@ "@storybook/react": "^5.2.0", "@storybook/source-loader": "^5.2.4", "@sumup/foundry": "^2.1.0", + "@sumup/icons": "^1.0.0-canary.7", "@svgr/webpack": "^4.3.3", "@testing-library/dom": "^6.5.0", "@testing-library/jest-dom": "^4.1.0", @@ -114,7 +115,6 @@ "babel-loader": "^8.0.5", "babel-plugin-dev-expression": "^0.2.2", "babel-plugin-dynamic-import-node": "^2.2.0", - "babel-plugin-inline-react-svg": "^1.1.0", "babel-plugin-lodash": "^3.3.2", "babel-plugin-module-resolver": "^3.2.0", "babel-plugin-react-docgen": "^3.0.0", @@ -155,6 +155,7 @@ "@emotion/is-prop-valid": "0.8.x", "@emotion/styled": "10.x", "@emotion/stylis": "0.8.x", + "@sumup/icons": "1.x", "emotion-theming": "10.x", "react": ">=16.8.0 < 17", "react-dom": ">=16.8.0 < 17" diff --git a/scripts/static-styles/config.js b/scripts/static-styles/config.js index 2aa945474d..c370124fa1 100644 --- a/scripts/static-styles/config.js +++ b/scripts/static-styles/config.js @@ -181,8 +181,9 @@ export default { size: [SubHeading.KILO, SubHeading.MEGA] }), getComponentInfo(Tag, { - icon: PropTypes.element, - onRemove: PropTypes.func + onRemove: PropTypes.func, + prefix: PropTypes.element, + suffix: PropTypes.element }), getComponentInfo(Text, { size: [Text.KILO, Text.MEGA, Text.GIGA] diff --git a/src/__snapshots__/storyshots.spec.js.snap b/src/__snapshots__/storyshots.spec.js.snap index dcbde1675f..01bf275edb 100644 --- a/src/__snapshots__/storyshots.spec.js.snap +++ b/src/__snapshots__/storyshots.spec.js.snap @@ -1193,10 +1193,14 @@ exports[`Storyshots Components/Button/CloseButton Base 1`] = ` background-color: transparent; border: none; cursor: pointer; - fill: #0F131A; overflow: initial; - height: 16px; - width: 16px; + color: #5C656F; + height: 24px; + width: 24px; +} + +.circuit-3:hover { + color: #212933; } .circuit-3:focus, @@ -1211,13 +1215,24 @@ exports[`Storyshots Components/Button/CloseButton Base 1`] = ` `; @@ -1309,7 +1324,7 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` } } -.circuit-8 { +.circuit-7 { background-color: #FAFBFC; border-color: #D8DDE1; border-radius: 4px; @@ -1335,36 +1350,36 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` overflow: hidden; } -.circuit-8:active { +.circuit-7:active { background-color: #D8DDE1; border-color: #9DA7B1; box-shadow: inset 0 4px 8px 0 rgba(12,15,20,0.3); } -.circuit-8:focus { +.circuit-7:focus { border-color: #9DA7B1; border-width: 2px; outline: 0; padding: calc(8px - 1px) calc(24px - 1px); } -.circuit-8:hover { +.circuit-7:hover { background-color: #D8DDE1; } -.circuit-8:hover, -.circuit-8:active { +.circuit-7:hover, +.circuit-7:active { border-color: #9DA7B1; border-width: 1px; padding: calc(8px - 0px) calc(24px - 0px); } -.circuit-8[href] { +.circuit-7[href] { display: inline-block; } -.circuit-8:disabled, -.circuit-8[disabled] { +.circuit-7:disabled, +.circuit-7[disabled] { opacity: 0.4; pointer-events: none; -webkit-user-selectable: none; @@ -1373,60 +1388,60 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` user-selectable: none; } -.circuit-8:active { +.circuit-7:active { background-color: #1760CE; border-color: #003C8B; } -.circuit-8:focus { +.circuit-7:focus { border-color: #1760CE; } -.circuit-8:hover { +.circuit-7:hover { background-color: #1760CE; } -.circuit-8:hover, -.circuit-8:active { +.circuit-7:hover, +.circuit-7:active { border-color: #003C8B; } -.circuit-3 { - opacity: 0; - max-width: -webkit-fit-content; - max-width: -moz-fit-content; - max-width: fit-content; - position: relative; - -webkit-transition: opacity 200ms ease-in-out; - transition: opacity 200ms ease-in-out; +.circuit-2 { height: 24px; width: 24px; position: absolute; - left: 50%; - top: 50%; - -webkit-transform: translate(-50%,-50%); - -ms-transform: translate(-50%,-50%); - transform: translate(-50%,-50%); -} - -.circuit-0 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; width: 100%; - height: 100%; -} - -.circuit-0 > path { - fill: #FFFFFF; } -.circuit-0 > path { +.circuit-0 { + width: 24px; + height: 24px; + border-radius: 100%; + border: 2px solid #FFFFFF; + border-top-color: transparent; -webkit-animation: animation-0 1s infinite linear; animation: animation-0 1s infinite linear; -webkit-transform-origin: 50% 50%; -ms-transform-origin: 50% 50%; transform-origin: 50% 50%; + opacity: 0; + -webkit-transition: opacity 200ms ease-in-out; + transition: opacity 200ms ease-in-out; } -.circuit-5 { +.circuit-4 { display: inline-block; opacity: 1; -webkit-transform: translate(0,0); @@ -1438,23 +1453,20 @@ exports[`Storyshots Components/Button/LoadingButton Base 1`] = ` } @@ -5310,10 +5341,14 @@ HTMLCollection [ background-color: transparent; border: none; cursor: pointer; - fill: #0F131A; overflow: initial; - height: 16px; - width: 16px; + color: #5C656F; + height: 24px; + width: 24px; +} + +.circuit-5:hover { + color: #212933; } .circuit-5:focus, @@ -5341,13 +5376,24 @@ HTMLCollection [

1 @@ -5971,14 +5940,27 @@ exports[`Storyshots Components/Carousel Composed 1`] = ` 3

@@ -6011,7 +5993,7 @@ exports[`Storyshots Components/Carousel Stateful 1`] = ` } } -.circuit-64 { +.circuit-63 { width: 100%; height: auto; position: relative; @@ -6142,7 +6124,7 @@ exports[`Storyshots Components/Carousel Stateful 1`] = ` z-index: -2; } -.circuit-62 { +.circuit-61 { width: 100%; display: -webkit-box; display: -webkit-flex; @@ -6220,7 +6202,7 @@ exports[`Storyshots Components/Carousel Stateful 1`] = ` height: 100%; } -.circuit-60 { +.circuit-59 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -6237,7 +6219,7 @@ exports[`Storyshots Components/Carousel Stateful 1`] = ` } @media (max-width:479px) { - .circuit-60 { + .circuit-59 { margin-left: 12px; } } @@ -6344,102 +6326,12 @@ exports[`Storyshots Components/Carousel Stateful 1`] = ` align-items: center; } -.circuit-53 { - background-color: #FAFBFC; - border-color: #D8DDE1; - border-radius: 4px; - border-style: solid; - border-width: 1px; - box-shadow: inset 0 1px 0 1px rgba(255,255,255,0.06); - display: block; - color: #5C656F; - cursor: pointer; - font-weight: 700; - width: auto; - height: auto; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - font-size: 16px; - line-height: 24px; - padding: calc(8px - 0px) calc(24px - 0px); - background-color: #D8DDE1; - width: 32px; - height: 32px; - padding: 0; - overflow: hidden; - border-radius: 50%; - margin-left: 8px; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} - -.circuit-53:active { - background-color: #D8DDE1; - border-color: #9DA7B1; - box-shadow: inset 0 4px 8px 0 rgba(12,15,20,0.3); -} - -.circuit-53:focus { - border-color: #9DA7B1; - border-width: 2px; - outline: 0; - padding: calc(8px - 1px) calc(24px - 1px); -} - -.circuit-53:hover { - background-color: #D8DDE1; -} - -.circuit-53:hover, -.circuit-53:active { - border-color: #9DA7B1; - border-width: 1px; - padding: calc(8px - 0px) calc(24px - 0px); -} - -.circuit-53[href] { - display: inline-block; -} - -.circuit-53:disabled, -.circuit-53[disabled] { - opacity: 0.4; - pointer-events: none; - -webkit-user-selectable: none; - -moz-user-selectable: none; - -ms-user-selectable: none; - user-selectable: none; -} - -.circuit-53:first-of-type { - margin-left: 0; -} - -.circuit-53:active, -.circuit-53:focus, -.circuit-53:hover { - padding: 0; -} - -@media (max-width:479px) { - .circuit-53 { - width: 24px; - height: 24px; - } - - .circuit-53 svg { - width: 25%; - } -} -

@@ -6675,113 +6602,23 @@ exports[`Storyshots Components/Carousel/Buttons All Buttons 1`] = ` align-items: center; } -.circuit-14 { - background-color: #FAFBFC; - border-color: #D8DDE1; - border-radius: 4px; - border-style: solid; - border-width: 1px; - box-shadow: inset 0 1px 0 1px rgba(255,255,255,0.06); - display: block; - color: #5C656F; - cursor: pointer; - font-weight: 700; - width: auto; - height: auto; - text-align: center; - -webkit-text-decoration: none; - text-decoration: none; - font-size: 16px; - line-height: 24px; - padding: calc(8px - 0px) calc(24px - 0px); - background-color: #D8DDE1; - width: 32px; - height: 32px; - padding: 0; - overflow: hidden; - border-radius: 50%; - margin-left: 8px; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); -} - -.circuit-14:active { - background-color: #D8DDE1; - border-color: #9DA7B1; - box-shadow: inset 0 4px 8px 0 rgba(12,15,20,0.3); -} - -.circuit-14:focus { - border-color: #9DA7B1; - border-width: 2px; - outline: 0; - padding: calc(8px - 1px) calc(24px - 1px); -} - -.circuit-14:hover { - background-color: #D8DDE1; -} - -.circuit-14:hover, -.circuit-14:active { - border-color: #9DA7B1; - border-width: 1px; - padding: calc(8px - 0px) calc(24px - 0px); -} - -.circuit-14[href] { - display: inline-block; -} - -.circuit-14:disabled, -.circuit-14[disabled] { - opacity: 0.4; - pointer-events: none; - -webkit-user-selectable: none; - -moz-user-selectable: none; - -ms-user-selectable: none; - user-selectable: none; -} - -.circuit-14:first-of-type { - margin-left: 0; -} - -.circuit-14:active, -.circuit-14:focus, -.circuit-14:hover { - padding: 0; -} - -@media (max-width:479px) { - .circuit-14 { - width: 24px; - height: 24px; - } - - .circuit-14 svg { - width: 25%; - } -} - -.circuit-21 { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-align-items: center; - -webkit-box-align: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; +.circuit-20 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; }
@@ -8570,10 +8456,14 @@ exports[`Storyshots Components/Modal/Embedded With Title And Close Button 1`] = background-color: transparent; border: none; cursor: pointer; - fill: #0F131A; overflow: initial; - height: 16px; - width: 16px; + color: #5C656F; + height: 24px; + width: 24px; +} + +.circuit-5:hover { + color: #212933; } .circuit-5:focus, @@ -8643,13 +8533,24 @@ exports[`Storyshots Components/Modal/Embedded With Title And Close Button 1`] = @@ -8966,7 +8880,7 @@ exports[`Storyshots Components/Notification Base 1`] = ` `; exports[`Storyshots Components/Notification Success 1`] = ` -.circuit-2 { +.circuit-3 { font-weight: 700; margin-bottom: 24px; font-size: 17px; @@ -8975,13 +8889,13 @@ exports[`Storyshots Components/Notification Success 1`] = ` } @media (min-width:480px) { - .circuit-2 { + .circuit-3 { font-size: 17px; line-height: 24px; } } -.circuit-4 { +.circuit-5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -9000,14 +8914,14 @@ exports[`Storyshots Components/Notification Success 1`] = ` } @media (min-width:480px) { - .circuit-4 { + .circuit-5 { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; } } -.circuit-0 { +.circuit-1 { display: block; margin: 0 0 16px 0; -webkit-box-flex: 0; @@ -9021,23 +8935,47 @@ exports[`Storyshots Components/Notification Success 1`] = ` } @media (min-width:480px) { - .circuit-0 { + .circuit-1 { margin: 0 16px 0 0; } } +.circuit-0 { + color: #47995A; +} +
-
- notification-success.svg -
+ + + +

Transaction successfully refunded

@@ -9045,7 +8983,7 @@ exports[`Storyshots Components/Notification Success 1`] = ` `; exports[`Storyshots Components/Notification Warning 1`] = ` -.circuit-6 { +.circuit-5 { background-color: #FAFBFC; border-color: #D8DDE1; border-radius: 4px; @@ -9066,36 +9004,36 @@ exports[`Storyshots Components/Notification Warning 1`] = ` padding: calc(4px - 0px) calc(16px - 0px); } -.circuit-6:active { +.circuit-5:active { background-color: #D8DDE1; border-color: #9DA7B1; box-shadow: inset 0 4px 8px 0 rgba(12,15,20,0.3); } -.circuit-6:focus { +.circuit-5:focus { border-color: #9DA7B1; border-width: 2px; outline: 0; padding: calc(4px - 1px) calc(16px - 1px); } -.circuit-6:hover { +.circuit-5:hover { background-color: #D8DDE1; } -.circuit-6:hover, -.circuit-6:active { +.circuit-5:hover, +.circuit-5:active { border-color: #9DA7B1; border-width: 1px; padding: calc(4px - 0px) calc(16px - 0px); } -.circuit-6[href] { +.circuit-5[href] { display: inline-block; } -.circuit-6:disabled, -.circuit-6[disabled] { +.circuit-5:disabled, +.circuit-5[disabled] { opacity: 0.4; pointer-events: none; -webkit-user-selectable: none; @@ -9104,7 +9042,7 @@ exports[`Storyshots Components/Notification Warning 1`] = ` user-selectable: none; } -.circuit-4 { +.circuit-3 { font-weight: 700; margin-bottom: 24px; font-size: 17px; @@ -9113,13 +9051,13 @@ exports[`Storyshots Components/Notification Warning 1`] = ` } @media (min-width:480px) { - .circuit-4 { + .circuit-3 { font-size: 17px; line-height: 24px; } } -.circuit-10 { +.circuit-9 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -9138,14 +9076,14 @@ exports[`Storyshots Components/Notification Warning 1`] = ` } @media (min-width:480px) { - .circuit-10 { + .circuit-9 { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; } } -.circuit-2 { +.circuit-1 { display: block; margin: 0 0 16px 0; -webkit-box-flex: 0; @@ -9159,16 +9097,16 @@ exports[`Storyshots Components/Notification Warning 1`] = ` } @media (min-width:480px) { - .circuit-2 { + .circuit-1 { margin: 0 16px 0 0; } } -.circuit-0 rect { - fill: #D8A413; +.circuit-0 { + color: #D8A413; } -.circuit-8 { +.circuit-7 { display: block; padding-left: 24px; margin-top: 16px; @@ -9186,33 +9124,44 @@ exports[`Storyshots Components/Notification Warning 1`] = ` } @media (min-width:480px) { - .circuit-8 { + .circuit-7 { margin-top: 0; } }
-
- notification-success.svg -
+ +

You still need to verify your account

@@ -9334,7 +9283,7 @@ exports[`Storyshots Components/Notification/NotificationBanner Base 1`] = ` `; exports[`Storyshots Components/Notification/NotificationList Base 1`] = ` -.circuit-2 { +.circuit-3 { font-weight: 700; margin-bottom: 24px; font-size: 17px; @@ -9343,13 +9292,13 @@ exports[`Storyshots Components/Notification/NotificationList Base 1`] = ` } @media (min-width:480px) { - .circuit-2 { + .circuit-3 { font-size: 17px; line-height: 24px; } } -.circuit-4 { +.circuit-5 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -9368,14 +9317,14 @@ exports[`Storyshots Components/Notification/NotificationList Base 1`] = ` } @media (min-width:480px) { - .circuit-4 { + .circuit-5 { -webkit-flex-direction: row; -ms-flex-direction: row; flex-direction: row; } } -.circuit-0 { +.circuit-1 { display: block; margin: 0 0 16px 0; -webkit-box-flex: 0; @@ -9389,12 +9338,16 @@ exports[`Storyshots Components/Notification/NotificationList Base 1`] = ` } @media (min-width:480px) { - .circuit-0 { + .circuit-1 { margin: 0 16px 0 0; } } -.circuit-8 { +.circuit-0 { + color: #47995A; +} + +.circuit-9 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -9407,22 +9360,22 @@ exports[`Storyshots Components/Notification/NotificationList Base 1`] = ` max-width: calc(100vw - 48px); } -.circuit-8 > * { +.circuit-9 > * { margin-top: 16px; } -.circuit-8 > *:first-child { +.circuit-9 > *:first-child { margin-top: 0; } @media (max-width:767px) { - .circuit-8 { + .circuit-9 { max-width: none; width: 100%; } } -.circuit-6 { +.circuit-7 { background-color: #FFFFFF; border-radius: 4px; display: -webkit-box; @@ -9442,24 +9395,44 @@ exports[`Storyshots Components/Notification/NotificationList Base 1`] = `
  • -
    - notification-success.svg -
    + + + +

    Transaction successfully refunded

    @@ -10353,11 +10326,11 @@ exports[`Storyshots Components/ProgressBar With Percentage 1`] = ` `; exports[`Storyshots Components/Sidebar Base 1`] = ` -.circuit-47 { +.circuit-52 { height: 100vh; } -.circuit-39 { +.circuit-44 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -10382,7 +10355,7 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` } @media (min-width:960px) { - .circuit-39 { + .circuit-44 { -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); @@ -10391,7 +10364,7 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` } @media (min-width:960px) { - .circuit-39 { + .circuit-44 { -webkit-transform: translateX(0); -ms-transform: translateX(0); transform: translateX(0); @@ -10421,7 +10394,7 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` color: #FAFBFC; } -.circuit-35 { +.circuit-40 { height: auto; justify-self: flex-start; overflow-y: auto; @@ -10456,14 +10429,6 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` color: #FAFBFC; } -.circuit-4 * { - fill: #9DA7B1; -} - -.circuit-4 * { - fill: #FAFBFC; -} - .circuit-2 { margin-left: 12px; } @@ -10487,18 +10452,10 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` color: #9DA7B1; } -.circuit-9 * { - fill: #9DA7B1; -} - .circuit-9:hover { color: #D8DDE1; } -.circuit-9:hover * { - fill: #D8DDE1; -} - .circuit-26 { margin: -8px 0 8px 32px; list-style: none; @@ -10545,18 +10502,10 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` transition: top 200ms ease-in-out; } -.circuit-13 * { - fill: #9DA7B1; -} - .circuit-13:hover { color: #D8DDE1; } -.circuit-13:hover * { - fill: #D8DDE1; -} - .circuit-11 { margin-left: 12px; margin-left: 0px; @@ -10565,7 +10514,31 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` transition: margin-top 300ms ease-in-out; } -.circuit-28 { +.circuit-30 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: start; + -webkit-justify-content: flex-start; + -ms-flex-pack: start; + justify-content: flex-start; + height: auto; + margin: 16px; + padding: 4px; + cursor: pointer; + color: #9DA7B1; + -webkit-text-decoration: none; + text-decoration: none; + cursor: not-allowed; + color: #5C656F; +} + +.circuit-33 { display: block; width: 100%; border: 1px solid #D8DDE1; @@ -10574,7 +10547,7 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` border: 1px solid #323E49; } -.circuit-32 { +.circuit-37 { display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -10596,26 +10569,18 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` text-decoration: none; } -.circuit-32 * { - fill: #9DA7B1; -} - -.circuit-32:hover { +.circuit-37:hover { color: #D8DDE1; } -.circuit-32:hover * { - fill: #D8DDE1; -} - -.circuit-37 { +.circuit-42 { margin-top: auto; padding: 24px; background-color: #212933; color: #FAFBFC; } -.circuit-41 { +.circuit-46 { width: 100%; height: 100%; position: absolute; @@ -10630,14 +10595,15 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` } @media (min-width:960px) { - .circuit-41 { + .circuit-46 { visibility: hidden; } } -.circuit-45 { +.circuit-50 { cursor: pointer; outline: none; + border: none; display: -webkit-box; display: -webkit-flex; display: -ms-flexbox; @@ -10667,12 +10633,12 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` } @media (min-width:960px) { - .circuit-45 { + .circuit-50 { visibility: hidden; } } -.circuit-43 { +.circuit-48 { border: 0; -webkit-clip: rect(0 0 0 0); clip: rect(0 0 0 0); @@ -10686,10 +10652,10 @@ exports[`Storyshots Components/Sidebar Base 1`] = ` }
Footer
@@ -11696,25 +11735,27 @@ tbody .circuit-18:last-child td { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - height: 10px; - width: 5px; - left: 12px; - opacity: 0; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + height: 40px; + width: 20px; position: absolute; + left: 0; top: 50%; + opacity: 0; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); -webkit-transition: opacity 200ms ease-in-out; transition: opacity 200ms ease-in-out; - fill: #3388FF; + color: #3388FF; } .circuit-0 { - margin-top: 2px; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); + margin-top: -7px; + margin-bottom: -7px; } .circuit-6 { @@ -11904,14 +11945,38 @@ tbody .circuit-32:hover th { -
- arrow.svg -
-
- arrow.svg -
+ + + + +
Name @@ -11932,14 +11997,38 @@ tbody .circuit-32:hover th { -
+ + + - arrow.svg -
-
- arrow.svg -
+ +
Created at @@ -12180,25 +12269,27 @@ tbody .circuit-8:last-child td { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - height: 10px; - width: 5px; - left: 12px; - opacity: 0; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + height: 40px; + width: 20px; position: absolute; + left: 0; top: 50%; + opacity: 0; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); -webkit-transition: opacity 200ms ease-in-out; transition: opacity 200ms ease-in-out; - fill: #3388FF; + color: #3388FF; } .circuit-0 { - margin-top: 2px; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); + margin-top: -7px; + margin-bottom: -7px; } .circuit-6 { @@ -12290,14 +12381,38 @@ tbody .circuit-8:last-child td { -
- arrow.svg -
-
- arrow.svg -
+ + + + +
Country @@ -12516,25 +12631,27 @@ tbody .circuit-14:last-child td { -webkit-flex-direction: column; -ms-flex-direction: column; flex-direction: column; - height: 10px; - width: 5px; - left: 12px; - opacity: 0; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + height: 40px; + width: 20px; position: absolute; + left: 0; top: 50%; + opacity: 0; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); -webkit-transition: opacity 200ms ease-in-out; transition: opacity 200ms ease-in-out; - fill: #3388FF; + color: #3388FF; } .circuit-0 { - margin-top: 2px; - -webkit-transform: rotate(180deg); - -ms-transform: rotate(180deg); - transform: rotate(180deg); + margin-top: -7px; + margin-bottom: -7px; } .circuit-6 { @@ -12667,14 +12784,38 @@ tbody .circuit-14:last-child td { -
+ + + - arrow.svg -
-
- arrow.svg -
+ +
Name @@ -12695,14 +12836,38 @@ tbody .circuit-14:last-child td { -
- arrow.svg -
-
- arrow.svg -
+ + + + +
Date added @@ -13763,13 +13928,17 @@ exports[`Storyshots Components/Tag Removable 1`] = ` background-color: transparent; border: none; cursor: pointer; - fill: #0F131A; overflow: initial; - height: 16px; - width: 16px; + color: #5C656F; + height: 24px; + width: 24px; margin-left: 4px; } +.circuit-4:hover { + color: #212933; +} + .circuit-4:focus, .circuit-4:active { outline: none; @@ -13804,13 +13973,24 @@ exports[`Storyshots Components/Tag Removable 1`] = `
@@ -14133,20 +14264,16 @@ exports[`Storyshots Components/Tooltip Bottom Right 1`] = ` -
@@ -14220,20 +14347,16 @@ exports[`Storyshots Components/Tooltip Left Center 1`] = ` -
@@ -14302,20 +14425,16 @@ exports[`Storyshots Components/Tooltip Top Left 1`] = ` - @@ -14387,16 +14506,16 @@ exports[`Storyshots Forms/Checkbox Base 1`] = ` } .circuit-2 svg { - height: 10px; - width: 10px; + height: 16px; + width: 16px; box-sizing: border-box; - fill: #3388FF; + color: #3388FF; display: block; - left: 3px; line-height: 0; opacity: 0; position: absolute; top: 12px; + left: 0; -webkit-transform: translateY(-50%) scale(0,0); -ms-transform: translateY(-50%) scale(0,0); transform: translateY(-50%) scale(0,0); @@ -14420,11 +14539,22 @@ exports[`Storyshots Forms/Checkbox Base 1`] = ` for="checkbox_5" > Unchecked - + + `; @@ -14498,16 +14628,16 @@ exports[`Storyshots Forms/Checkbox Disabled 1`] = ` } .circuit-2 svg { - height: 10px; - width: 10px; + height: 16px; + width: 16px; box-sizing: border-box; - fill: #3388FF; + color: #3388FF; display: block; - left: 3px; line-height: 0; opacity: 0; position: absolute; top: 12px; + left: 0; -webkit-transform: translateY(-50%) scale(0,0); -ms-transform: translateY(-50%) scale(0,0); transform: translateY(-50%) scale(0,0); @@ -14528,7 +14658,7 @@ exports[`Storyshots Forms/Checkbox Disabled 1`] = ` opacity: 0.5; pointer-events: none; box-shadow: none; - fill: #9DA7B1; + color: #9DA7B1; }
Unchecked - + +
`; @@ -14623,16 +14764,16 @@ exports[`Storyshots Forms/Checkbox Invalid 1`] = ` } .circuit-2 svg { - height: 10px; - width: 10px; + height: 16px; + width: 16px; box-sizing: border-box; - fill: #3388FF; + color: #3388FF; display: block; - left: 3px; line-height: 0; opacity: 0; position: absolute; top: 12px; + left: 0; -webkit-transform: translateY(-50%) scale(0,0); -ms-transform: translateY(-50%) scale(0,0); transform: translateY(-50%) scale(0,0); @@ -14647,7 +14788,7 @@ exports[`Storyshots Forms/Checkbox Invalid 1`] = ` } .circuit-2:not(:focus) svg { - fill: #DB4D4D; + color: #DB4D4D; } .circuit-4 { @@ -14706,11 +14847,22 @@ exports[`Storyshots Forms/Checkbox Invalid 1`] = ` for="checkbox_6" > Unchecked - + +
Apples - + +
, .circuit-4 { @@ -14892,16 +15055,16 @@ HTMLCollection [ } .circuit-2 svg { - height: 10px; - width: 10px; + height: 16px; + width: 16px; box-sizing: border-box; - fill: #3388FF; + color: #3388FF; display: block; - left: 3px; line-height: 0; opacity: 0; position: absolute; top: 12px; + left: 0; -webkit-transform: translateY(-50%) scale(0,0); -ms-transform: translateY(-50%) scale(0,0); transform: translateY(-50%) scale(0,0); @@ -14925,11 +15088,22 @@ HTMLCollection [ for="checkbox_9" > Bananas - + + , .circuit-4 { @@ -14997,16 +15171,16 @@ HTMLCollection [ } .circuit-2 svg { - height: 10px; - width: 10px; + height: 16px; + width: 16px; box-sizing: border-box; - fill: #3388FF; + color: #3388FF; display: block; - left: 3px; line-height: 0; opacity: 0; position: absolute; top: 12px; + left: 0; -webkit-transform: translateY(-50%) scale(0,0); -ms-transform: translateY(-50%) scale(0,0); transform: translateY(-50%) scale(0,0); @@ -15030,11 +15204,22 @@ HTMLCollection [ for="checkbox_10" > Oranges - + + , ] @@ -15295,10 +15480,11 @@ label + .circuit-4 { position: absolute; top: 1px; right: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } , @@ -15854,10 +16067,11 @@ label + .circuit-4 { position: absolute; top: 1px; right: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } .circuit-0 { @@ -15957,10 +16171,11 @@ label + .circuit-4 { position: absolute; top: 1px; right: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } .circuit-0 { @@ -16107,16 +16322,18 @@ label + .circuit-7 { position: absolute; top: 1px; right: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } .circuit-2 { display: block; height: 100%; width: 100%; + color: #47995A; } .circuit-5 { @@ -16177,12 +16394,30 @@ label + .circuit-7 {
- + + +
- + + +
, @@ -16333,10 +16588,11 @@ label + .circuit-7 { position: absolute; top: 1px; right: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } .circuit-5 { @@ -16451,6 +16707,7 @@ label + .circuit-7 { display: block; height: 100%; width: 100%; + color: #D8A413; } , @@ -16652,10 +16933,11 @@ label + .circuit-3 { position: absolute; top: 1px; left: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } .circuit-1 { @@ -16721,11 +17003,22 @@ label + .circuit-3 {
-
- search.svg -
+ + -
- search.svg -
+ + -
- search.svg -
+ + -
- search.svg -
+ + -
- clear.svg -
+ + @@ -17197,10 +17542,11 @@ label + .circuit-3 { position: absolute; top: 1px; left: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; } .circuit-1 { @@ -17264,11 +17610,22 @@ label + .circuit-3 {
-
- search.svg -
+ + -
- search.svg -
+ + -
- close-icon.svg -
+ + @@ -17538,7 +17922,7 @@ label + .circuit-4 { padding-right: calc( 12px + 16px + 12px ); text-align: right; padding-right: 48px; - padding-right: calc(24px + 1ch); + padding-right: calc(16px + 1ch); } .circuit-0:focus, @@ -17574,14 +17958,27 @@ label + .circuit-4 { .circuit-2 { color: #1760CE; line-height: 16px; - width: 1ch; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + min-width: 1ch; position: absolute; top: 1px; right: 1px; - height: 40px; - width: 40px; - padding: 12px; + margin: 8px; pointer-events: none; + color: #5C656F; + height: 24px; + width: 24px; }