diff --git a/.flowconfig b/.flowconfig index 4d3c4156a..70147c54f 100644 --- a/.flowconfig +++ b/.flowconfig @@ -15,5 +15,6 @@ flow/* [lints] [options] +module.system=haste [strict] diff --git a/.npmignore b/.npmignore index a1e232436..4113df8b1 100644 --- a/.npmignore +++ b/.npmignore @@ -12,4 +12,4 @@ storybook-static bit.json yarn-error.log bundle-stats.html -__mocks__ +**/__mocks__/** diff --git a/.prettierrc b/.prettierrc index 3a9157a16..119babf0e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,10 +1,5 @@ { "singleQuote": true, "trailingComma": "all", - "semi": true, - "bracketSpacing": true, - "printWidth": 70, - "parser": "flow", - "jsxBracketSameLine": false, - "arrowParens": "avoid" + "printWidth": 70 } diff --git a/README.md b/README.md index d1d6ad236..f0b677f90 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,5 @@ Make sure read our [contributing guide](https://github.com/GSS-FED/vital-ui-kit- - docs - layout -- box - Table(page, checkbox, input, header) - Calendar diff --git a/packages/web/assets/img/card-header-pic.png b/assets/card-header-pic.png similarity index 100% rename from packages/web/assets/img/card-header-pic.png rename to assets/card-header-pic.png diff --git a/flow-typed/npm/jest_v23.x.x.js b/flow-typed/npm/jest_v23.x.x.js index 8e874b0e4..653840adb 100644 --- a/flow-typed/npm/jest_v23.x.x.js +++ b/flow-typed/npm/jest_v23.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 82fb70c15e3aa0c1468144425703425e -// flow-typed version: bf845eee3a/jest_v23.x.x/flow_>=v0.39.x +// flow-typed signature: bc9e644ba43fa1c4d1fccc5fd47f65e9 +// flow-typed version: d37e775f89/jest_v23.x.x/flow_>=v0.39.x type JestMockFn, TReturn> = { (...args: TArguments): TReturn, @@ -483,7 +483,7 @@ type JestExtendedMatchersType = { toIncludeMultiple(substring: string[]): void; }; -type JestExpectType = { +interface JestExpectType { not: JestExpectType & EnzymeMatchersType & DomTestingLibraryType & JestJQueryMatchersType & JestExtendedMatchersType, /** * If you have a mock function, you can use .lastCalledWith to test what @@ -637,9 +637,13 @@ type JestExpectType = { */ toMatchObject(object: Object | Array): void, /** - * This ensures that a React component matches the most recent snapshot. + * This ensures that an Object matches the most recent snapshot. */ toMatchSnapshot(propertyMatchers?: {[key: string]: JestAsymmetricEqualityType}, name?: string): void, + /** + * This ensures that an Object matches the most recent snapshot. + */ + toMatchSnapshot(name: string): void, /** * Use .toThrow to test that a function throws when it is called. * If you want to test that a specific error gets thrown, you can provide an @@ -655,7 +659,7 @@ type JestExpectType = { * matching the most recent snapshot when it is called. */ toThrowErrorMatchingSnapshot(): void -}; +} type JestObjectType = { /** diff --git a/package.json b/package.json index 08b21184a..8cc616441 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "private": true, "workspaces": { "packages": [ - "packages/*" + "packages/*", + "playground" ], "nohoist": [ "**/react-native", @@ -19,9 +20,7 @@ "**/react-native-*", "**/react-native-*/**", "**/react-native-vector-icons", - "**/react-native-vector-icons/**", - "**/styled-components", - "**/styled-components/**" + "**/react-native-vector-icons/**" ] }, "scripts": { @@ -34,11 +33,11 @@ "build": "npm-run-all clean:build --parallel build:esm build:cjs build:flow", "clean:build": "rm -rf packages/web/dist", "prebuild:web": "yarn clean:build", - "storybook:web": "cd packages/web && start-storybook -p 6006", - "build-storybook:web": "cd packages/web && build-storybook", + "storybook:web": "cd packages/playground && start-storybook -p 6006", + "build-storybook:web": "cd packages/playground && build-storybook", "storybook:native": "cd packages/native && yarn run storybook", "dev:ios": "cd packages/native && yarn run ios", - "test:web": "cd packages/web && jest", + "test:web": "cd packages/playground && jest", "flow-typed": "rm -rf flow-typed && flow-typed install -s", "flow": "flow check", "format": "prettier --write '**/**.{js,jsx}'", diff --git a/packages/web/.storybook/.babelrc b/packages/playground/.storybook/.babelrc similarity index 100% rename from packages/web/.storybook/.babelrc rename to packages/playground/.storybook/.babelrc diff --git a/packages/web/.storybook/addons.js b/packages/playground/.storybook/addons.js similarity index 100% rename from packages/web/.storybook/addons.js rename to packages/playground/.storybook/addons.js diff --git a/packages/web/.storybook/config.js b/packages/playground/.storybook/config.js similarity index 76% rename from packages/web/.storybook/config.js rename to packages/playground/.storybook/config.js index de2e38512..5e1e24687 100644 --- a/packages/web/.storybook/config.js +++ b/packages/playground/.storybook/config.js @@ -1,16 +1,23 @@ +import { injectGlobal } from 'styled-components'; import { configure, addDecorator } from '@storybook/react'; import React from 'react'; import { setDefaults } from '@storybook/addon-info'; import { setOptions } from '@storybook/addon-options'; -import { ThemeProvider } from '../src/base'; +import { ThemeProvider } from '@gssfed/vital-ui-kit-react'; -import '../src/base/global.css'; +import '@gssfed/vital-ui-kit-react/dist/base/global.css'; function loadStories() { req.keys().forEach(filename => req(filename)); } +injectGlobal` + #root { + padding: 20px; + } +`; + setOptions({ hierarchySeparator: /\//, hierarchyRootSeparator: /\|/, @@ -41,5 +48,5 @@ setOptions({ addDecorator(story => {story()}); // automatically import all files ending in *.stories.js -const req = require.context('../stories', true, /.stories.jsx$/); +const req = require.context('../../', true, /.stories.jsx$/); configure(loadStories, module); diff --git a/packages/web/.storybook/manager-head.html b/packages/playground/.storybook/manager-head.html similarity index 100% rename from packages/web/.storybook/manager-head.html rename to packages/playground/.storybook/manager-head.html diff --git a/packages/playground/.storybook/storyshots.test.js b/packages/playground/.storybook/storyshots.test.js new file mode 100644 index 000000000..003e93fcc --- /dev/null +++ b/packages/playground/.storybook/storyshots.test.js @@ -0,0 +1,33 @@ +/* eslint-disable import/no-extraneous-dependencies */ + +import initStoryshots, { + multiSnapshotWithOptions, +} from '@storybook/addon-storyshots'; +import styleSheetSerializer from 'jest-styled-components/src/styleSheetSerializer'; +import { addSerializer } from 'jest-specific-snapshot' +import { Table, SimpleTable } from '../../table/src'; + +/** + * Mock methods of addon-info so that "Show Info" button don't go into snapshots. + * https://github.com/storybooks/storybook/issues/1011#issuecomment-322698049 + */ +jest.mock('@storybook/addon-info', () => ({ + withInfo: () => storyFn => storyFn, + setDefaults: () => {}, +})); + +/** + * Add custom serializer in order to work with multiSnapShot + * https://github.com/storybooks/storybook/issues/887#issuecomment-357073807 + */ +addSerializer(styleSheetSerializer); + +initStoryshots({ + test: multiSnapshotWithOptions({ + createNodeMock: (element) => { + if (element.type === Table || SimpleTable ) { + return document.createElement('div') + } + }, + }) +}); diff --git a/packages/playground/.storybook/webpack.config.js b/packages/playground/.storybook/webpack.config.js new file mode 100644 index 000000000..59532cc74 --- /dev/null +++ b/packages/playground/.storybook/webpack.config.js @@ -0,0 +1,25 @@ +const path = require('path'); + +module.exports = (baseConfig, env, defaultConfig) => { + // Extend defaultConfig as you need. + const appFolder = path.resolve(__dirname, '../../../'); + // Include other packages becase it is out of scope. + defaultConfig.module.rules.forEach(rule => { + if ('.jsx'.match(rule.test)) { + if (rule.include) { + rule.include.push(path.resolve(__dirname, '../../table/src')) + rule.include.push(path.resolve(__dirname, '../../web/src')) + } + if (rule.exclude) { + rule.exclude.push(path.resolve(__dirname, '../../table/node_modules')) + rule.exclude.push(path.resolve(__dirname, '../../web/node_modules')) + } + } + defaultConfig.resolve.alias = { + ...defaultConfig.resolve.alias, + 'styled-components': path.resolve(appFolder, 'node_modules', 'styled-components'), + } + }); + + return defaultConfig; +}; diff --git a/packages/web/__mocks__/fileMock.js b/packages/playground/__mocks__/fileMock.js similarity index 100% rename from packages/web/__mocks__/fileMock.js rename to packages/playground/__mocks__/fileMock.js diff --git a/packages/web/__mocks__/styleMock.js b/packages/playground/__mocks__/styleMock.js similarity index 100% rename from packages/web/__mocks__/styleMock.js rename to packages/playground/__mocks__/styleMock.js diff --git a/packages/playground/package.json b/packages/playground/package.json new file mode 100644 index 000000000..287d16a90 --- /dev/null +++ b/packages/playground/package.json @@ -0,0 +1,31 @@ +{ + "name": "@gssfed/playground", + "version": "0.0.1", + "description": "gssfed playground", + "private": true, + "main": "index.js", + "scripts": { + "test": "NODE_ENV='test' jest", + "start": "start-storybook -p 6006" + }, + "author": "Eric Yip (https://github.com/ericyip)", + "license": "MIT", + "devDependencies": { + "@storybook/react": "3.4.6", + "babel-plugin-styled-components": "1.5.1" + }, + "dependencies": { + "faker": "^4.1.0" + }, + "jest": { + "transform": { + "^.+\\.jsx$": "babel-jest", + "^.+\\.js$": "babel-jest", + "^.+\\.md?$": "markdown-loader-jest" + }, + "moduleNameMapper": { + "\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "/__mocks__/fileMock.js", + "\\.(css|less)$": "/__mocks__/styleMock.js" + } + } +} diff --git a/packages/web/stories/Container/Filter.js b/packages/playground/stories/Container/Filter.jsx similarity index 91% rename from packages/web/stories/Container/Filter.js rename to packages/playground/stories/Container/Filter.jsx index ceee91275..4c1a2dfbd 100644 --- a/packages/web/stories/Container/Filter.js +++ b/packages/playground/stories/Container/Filter.jsx @@ -6,7 +6,7 @@ import styled from 'styled-components'; import { Subject } from 'rxjs'; import { debounceTime, distinctUntilChanged } from 'rxjs/operators'; -import { FieldInput, Input } from '../../src'; +import { FieldInput, Input } from '../../../web/src'; const Wrapper = styled.div` display: flex; @@ -16,7 +16,7 @@ const Wrapper = styled.div` `; type P = { - children: (value: string) => React.ReactNode, + children: (value: string) => React.Node, }; type S = { @@ -46,7 +46,7 @@ class Filter extends React.PureComponent { }); } - onInputChange = e => { + onInputChange = (e: any) => { e.persist(); const { value } = e.target; this.setState({ filterValue: value }); diff --git a/packages/web/stories/Container/LoadData.js b/packages/playground/stories/Container/LoadData.jsx similarity index 100% rename from packages/web/stories/Container/LoadData.js rename to packages/playground/stories/Container/LoadData.jsx diff --git a/packages/web/stories/Container/Section.js b/packages/playground/stories/Container/Section.jsx similarity index 54% rename from packages/web/stories/Container/Section.js rename to packages/playground/stories/Container/Section.jsx index 7841daaa7..80e4b835f 100644 --- a/packages/web/stories/Container/Section.js +++ b/packages/playground/stories/Container/Section.jsx @@ -1,14 +1,17 @@ -import React from 'react'; +// @flow +/* eslint-disable import/no-extraneous-dependencies */ + +import * as React from 'react'; import styled from 'styled-components'; -import { Box } from '../../src'; +import { Box } from '../../../web/src'; const SectionTitle = styled.div` font-size: 32px; padding-bottom: 10px; `; -const Section = ({ title, children }) => ( +const Section = ({ title, children }: { title: string, children: React.Node }) => ( {title} {children} diff --git a/packages/web/stories/Overview.stories.jsx b/packages/playground/stories/Overview.stories.jsx similarity index 98% rename from packages/web/stories/Overview.stories.jsx rename to packages/playground/stories/Overview.stories.jsx index 5a678b426..5cd5eb2fe 100644 --- a/packages/web/stories/Overview.stories.jsx +++ b/packages/playground/stories/Overview.stories.jsx @@ -17,7 +17,7 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Avatar, Card, Button, ButtonGroup, Icon } from '../src'; +import { Avatar, Card, Button, ButtonGroup, Icon } from '../../web/src'; import Section from './Container/Section'; const AVATAR = [ diff --git a/packages/playground/stories/Table.stories.jsx b/packages/playground/stories/Table.stories.jsx new file mode 100644 index 000000000..9af115def --- /dev/null +++ b/packages/playground/stories/Table.stories.jsx @@ -0,0 +1,116 @@ +/* eslint-disable no-unused-vars */ +/* eslint-disable import/no-extraneous-dependencies */ +/* eslint-disable no-use-before-define */ + +import React, { Component } from 'react'; +import styled from 'styled-components'; +import { storiesOf } from '@storybook/react'; +import { action } from '@storybook/addon-actions'; +import { linkTo } from '@storybook/addon-links'; +import { withInfo } from '@storybook/addon-info'; +import centered from '@storybook/addon-centered'; +import { + withKnobs, + text, + boolean, + number, + select, +} from '@storybook/addon-knobs/react'; +import { withNotes } from '@storybook/addon-notes'; +import faker from 'faker'; +import { + SimpleTable, + Column, + Table, + defaultCellRenderer, +} from '../../table/src'; +import { AutoSizer, SortDirection } from 'react-virtualized'; + +// Table data as an array of objects +const list = new Array(100).fill(true).map(() => ({ + name: faker.name.findName(), + description: faker.name.jobTitle(), + location: faker.address.city(), +})); + +storiesOf('Table', module) + .addDecorator(withKnobs) + // .addDecorator(centered) + .add( + 'AutoResize', + withInfo()(() => ( +
+ + {({ width, height }) => ( + list[index]} + > + + + + + )} + +
+ )), + ) + .add( + 'Fixed column', + withInfo()(() => ( +
+ + {({ width, height }) => ( + + + + +
+ )} +
+
+ )), + ); + +function sort({ sortBy, sortDirection }) { + console.log('===================================='); + console.log(sortBy, sortDirection); + console.log('===================================='); +} diff --git a/packages/web/stories/Theme.stories.jsx b/packages/playground/stories/Theme.stories.jsx similarity index 97% rename from packages/web/stories/Theme.stories.jsx rename to packages/playground/stories/Theme.stories.jsx index 0b0b05f9d..2dcba6386 100644 --- a/packages/web/stories/Theme.stories.jsx +++ b/packages/playground/stories/Theme.stories.jsx @@ -3,7 +3,6 @@ import React, { Component } from 'react'; import styled from 'styled-components'; -import axios from 'axios'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; @@ -21,7 +20,7 @@ import { colorPaletteGenerator, defaultTheme, defaultComponentsTheme, -} from '../src/base'; +} from '../../web/src'; const Root = styled.div` text-align: center; diff --git a/packages/playground/stories/__snapshots__/Overview.stories.storyshot b/packages/playground/stories/__snapshots__/Overview.stories.storyshot new file mode 100644 index 000000000..2ea528bc6 --- /dev/null +++ b/packages/playground/stories/__snapshots__/Overview.stories.storyshot @@ -0,0 +1,2729 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Getting Started Overview 1`] = ` +.c7 { + position: absolute; + background-color: #EB5000; + color: #ffffff; + vertical-align: middle; + height: 9px; + line-height: 9px; + padding: 0; + border-radius: 50%; + font-size: 0; + width: 9px; + height: 9px; + right: calc(9px / -2); + top: 0; + left: 70%; + right: auto; +} + +.c7:before { + content: ''; + position: absolute; + top: calc(50% - (3px / 2)); + left: calc(50% - (3px / 2)); + background: #fff; + border-radius: 50%; + width: 3px; + height: 3px; +} + +.c10 { + position: absolute; + background-color: #EB5000; + color: #ffffff; + vertical-align: middle; + height: 17px; + line-height: 17px; + padding: 0 5px; + border-radius: 0.75rem; + font-size: 0.725rem; + left: 70%; + right: auto; + top: 0; +} + +.c3 { + position: relative; + display: inline-block; +} + +.c4 { + width: 16px; + height: 16px; + border-radius: 50%; + background-color: #F0F0F0; + box-sizing: border-box; +} + +.c5 { + width: 24px; + height: 24px; + border-radius: 50%; + background-color: #F0F0F0; + box-sizing: border-box; +} + +.c6 { + width: 32px; + height: 32px; + border-radius: 50%; + background-color: #F0F0F0; + box-sizing: border-box; +} + +.c8 { + width: 48px; + height: 48px; + border-radius: 50%; + background-color: #F0F0F0; + box-sizing: border-box; +} + +.c9 { + width: 64px; + height: 64px; + border-radius: 50%; + background-color: #F0F0F0; + box-sizing: border-box; +} + +.c11 > button:not(:last-child) { + margin-right: 10px; +} + +.c11 > button { + display: inline-block; +} + +.c40 > button:not(:last-child) { + margin-right: 5px; +} + +.c40 > button { + display: inline-block; +} + +.c12 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; +} + +.c12:hover { + background: #D8E3F6; +} + +.c12:active { + background: #C4D2EB; +} + +.c12:hover { + background: transparent; + color: #41a0fe; +} + +.c12[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c13 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; + color: #456297; +} + +.c13:hover { + background: #D8E3F6; +} + +.c13:active { + background: #C4D2EB; +} + +.c13:hover { + background: transparent; + color: #41a0fe; +} + +.c13:hover { + color: #5b7ab4; +} + +.c13[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c14 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; +} + +.c14:hover { + background: #D8E3F6; +} + +.c14:active { + background: #C4D2EB; +} + +.c14:hover { + background: transparent; + color: #41a0fe; +} + +.c14:hover { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.c14[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c15 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; + color: #456297; +} + +.c15:hover { + background: #D8E3F6; +} + +.c15:active { + background: #C4D2EB; +} + +.c15:hover { + background: transparent; + color: #41a0fe; +} + +.c15:hover { + color: #5b7ab4; +} + +.c15:hover { + -webkit-text-decoration: underline; + text-decoration: underline; +} + +.c15[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c16 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c16:hover { + background: #D8E3F6; +} + +.c16:active { + background: #C4D2EB; +} + +.c16[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c17 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c17:hover { + background: #D8E3F6; +} + +.c17:active { + background: #C4D2EB; +} + +.c17[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c18 { + position: relative; + background: #F7F9FE; + color: #2BCD86; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c18:hover { + background: #D8E3F6; +} + +.c18:active { + background: #C4D2EB; +} + +.c18[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c19 { + position: relative; + background: #F7F9FE; + color: #00C3FF; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c19:hover { + background: #D8E3F6; +} + +.c19:active { + background: #C4D2EB; +} + +.c19[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c20 { + position: relative; + background: #F7F9FE; + color: #EB5000; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c20:hover { + background: #D8E3F6; +} + +.c20:active { + background: #C4D2EB; +} + +.c20[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c21 { + position: relative; + background: #F7F9FE; + color: #FFB400; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c21:hover { + background: #D8E3F6; +} + +.c21:active { + background: #C4D2EB; +} + +.c21[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c22 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EEF2FC; + color: #456297; + border-color: #EEF2FC; +} + +.c22:hover { + background: #D8E3F6; +} + +.c22:active { + background: #C4D2EB; +} + +.c22:hover { + background: #D8E3F6; + border-color: #D8E3F6; +} + +.c22:active { + background: #95ACD4; + border-color: #95ACD4; +} + +.c22[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c23 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #0E86FE; + color: #ffffff; + border-color: #0E86FE; +} + +.c23:hover { + background: #D8E3F6; +} + +.c23:active { + background: #C4D2EB; +} + +.c23:hover { + background: #41a0fe; + border-color: #41a0fe; +} + +.c23:active { + background: #0167ce; + border-color: #0167ce; +} + +.c23[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c24 { + position: relative; + background: #F7F9FE; + color: #2BCD86; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #2BCD86; + color: #ffffff; + border-color: #2BCD86; +} + +.c24:hover { + background: #D8E3F6; +} + +.c24:active { + background: #C4D2EB; +} + +.c24:hover { + background: #51da9e; + border-color: #51da9e; +} + +.c24:active { + background: #209a65; + border-color: #209a65; +} + +.c24[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c25 { + position: relative; + background: #F7F9FE; + color: #00C3FF; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #00C3FF; + color: #ffffff; + border-color: #00C3FF; +} + +.c25:hover { + background: #D8E3F6; +} + +.c25:active { + background: #C4D2EB; +} + +.c25:hover { + background: #33cfff; + border-color: #33cfff; +} + +.c25:active { + background: #0094c2; + border-color: #0094c2; +} + +.c25[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c26 { + position: relative; + background: #F7F9FE; + color: #EB5000; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EB5000; + color: #ffffff; + border-color: #EB5000; +} + +.c26:hover { + background: #D8E3F6; +} + +.c26:active { + background: #C4D2EB; +} + +.c26:hover { + background: #ff6b1f; + border-color: #ff6b1f; +} + +.c26:active { + background: #ae3b00; + border-color: #ae3b00; +} + +.c26[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c27 { + position: relative; + background: #F7F9FE; + color: #FFB400; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #FFB400; + color: #ffffff; + border-color: #FFB400; +} + +.c27:hover { + background: #D8E3F6; +} + +.c27:active { + background: #C4D2EB; +} + +.c27:hover { + background: #ffc333; + border-color: #ffc333; +} + +.c27:active { + background: #c28900; + border-color: #c28900; +} + +.c27[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c28 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #456297; + border: 1px solid transparent; +} + +.c28:hover { + background: #D8E3F6; +} + +.c28:active { + background: #C4D2EB; +} + +.c28:hover { + background: #D8E3F6; +} + +.c28[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c29 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; +} + +.c29:hover { + background: #D8E3F6; +} + +.c29:active { + background: #C4D2EB; +} + +.c29:hover { + background: #D8E3F6; +} + +.c29[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c30 { + position: relative; + background: #F7F9FE; + color: #2BCD86; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #2BCD86; + border: 1px solid transparent; +} + +.c30:hover { + background: #D8E3F6; +} + +.c30:active { + background: #C4D2EB; +} + +.c30:hover { + background: #D8E3F6; +} + +.c30[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c31 { + position: relative; + background: #F7F9FE; + color: #00C3FF; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #00C3FF; + border: 1px solid transparent; +} + +.c31:hover { + background: #D8E3F6; +} + +.c31:active { + background: #C4D2EB; +} + +.c31:hover { + background: #D8E3F6; +} + +.c31[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c32 { + position: relative; + background: #F7F9FE; + color: #EB5000; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #EB5000; + border: 1px solid transparent; +} + +.c32:hover { + background: #D8E3F6; +} + +.c32:active { + background: #C4D2EB; +} + +.c32:hover { + background: #D8E3F6; +} + +.c32[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c33 { + position: relative; + background: #F7F9FE; + color: #FFB400; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #FFB400; + border: 1px solid transparent; +} + +.c33:hover { + background: #D8E3F6; +} + +.c33:active { + background: #C4D2EB; +} + +.c33:hover { + background: #D8E3F6; +} + +.c33[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c34 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #456297; +} + +.c34:hover { + background: #D8E3F6; +} + +.c34:active { + background: #C4D2EB; +} + +.c34:hover { + background: #D8E3F6; +} + +.c34[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c35 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #0E86FE; +} + +.c35:hover { + background: #D8E3F6; +} + +.c35:active { + background: #C4D2EB; +} + +.c35:hover { + background: #D8E3F6; +} + +.c35[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c36 { + position: relative; + background: #F7F9FE; + color: #2BCD86; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #2BCD86; +} + +.c36:hover { + background: #D8E3F6; +} + +.c36:active { + background: #C4D2EB; +} + +.c36:hover { + background: #D8E3F6; +} + +.c36[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c37 { + position: relative; + background: #F7F9FE; + color: #00C3FF; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #00C3FF; +} + +.c37:hover { + background: #D8E3F6; +} + +.c37:active { + background: #C4D2EB; +} + +.c37:hover { + background: #D8E3F6; +} + +.c37[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c38 { + position: relative; + background: #F7F9FE; + color: #EB5000; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #EB5000; +} + +.c38:hover { + background: #D8E3F6; +} + +.c38:active { + background: #C4D2EB; +} + +.c38:hover { + background: #D8E3F6; +} + +.c38[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c39 { + position: relative; + background: #F7F9FE; + color: #FFB400; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #FFB400; +} + +.c39:hover { + background: #D8E3F6; +} + +.c39:active { + background: #C4D2EB; +} + +.c39:hover { + background: #D8E3F6; +} + +.c39[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c41 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1.4rem; + border-radius: 6px; + padding: calc(0.8rem - 1px) 1.333rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.8rem - 1px) 1.333rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #0E86FE; + color: #ffffff; + border-color: #0E86FE; +} + +.c41:hover { + background: #D8E3F6; +} + +.c41:active { + background: #C4D2EB; +} + +.c41:hover { + background: #41a0fe; + border-color: #41a0fe; +} + +.c41:active { + background: #0167ce; + border-color: #0167ce; +} + +.c41[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c42 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1.2rem; + border-radius: 5px; + padding: calc(0.666rem - 1px) 1.2rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.666rem - 1px) 1.2rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #0E86FE; + color: #ffffff; + border-color: #0E86FE; +} + +.c42:hover { + background: #D8E3F6; +} + +.c42:active { + background: #C4D2EB; +} + +.c42:hover { + background: #41a0fe; + border-color: #41a0fe; +} + +.c42:active { + background: #0167ce; + border-color: #0167ce; +} + +.c42[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c43 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 0.866rem; + border-radius: 3px; + padding: calc(0.4rem - 1px) 0.8rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.4rem - 1px) 0.8rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #0E86FE; + color: #ffffff; + border-color: #0E86FE; +} + +.c43:hover { + background: #D8E3F6; +} + +.c43:active { + background: #C4D2EB; +} + +.c43:hover { + background: #41a0fe; + border-color: #41a0fe; +} + +.c43:active { + background: #0167ce; + border-color: #0167ce; +} + +.c43[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c44 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 0.8rem; + border-radius: 2px; + padding: calc(0.2rem - 1px) 0.533rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.2rem - 1px) 0.533rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #0E86FE; + color: #ffffff; + border-color: #0E86FE; +} + +.c44:hover { + background: #D8E3F6; +} + +.c44:active { + background: #C4D2EB; +} + +.c44:hover { + background: #41a0fe; + border-color: #41a0fe; +} + +.c44:active { + background: #0167ce; + border-color: #0167ce; +} + +.c44[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c45 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 0.8rem; + border-radius: 2px; + padding: calc(0.2rem - 1px) 0.533rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.2rem - 1px) 0.533rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EEF2FC; + color: #456297; + border-color: #EEF2FC; +} + +.c45:hover { + background: #D8E3F6; +} + +.c45:active { + background: #C4D2EB; +} + +.c45:hover { + background: #D8E3F6; + border-color: #D8E3F6; +} + +.c45:active { + background: #95ACD4; + border-color: #95ACD4; +} + +.c45[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c46 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 0.866rem; + border-radius: 3px; + padding: calc(0.4rem - 1px) 0.8rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.4rem - 1px) 0.8rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EEF2FC; + color: #456297; + border-color: #EEF2FC; +} + +.c46:hover { + background: #D8E3F6; +} + +.c46:active { + background: #C4D2EB; +} + +.c46:hover { + background: #D8E3F6; + border-color: #D8E3F6; +} + +.c46:active { + background: #95ACD4; + border-color: #95ACD4; +} + +.c46[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c47 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1.2rem; + border-radius: 5px; + padding: calc(0.666rem - 1px) 1.2rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.666rem - 1px) 1.2rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EEF2FC; + color: #456297; + border-color: #EEF2FC; +} + +.c47:hover { + background: #D8E3F6; +} + +.c47:active { + background: #C4D2EB; +} + +.c47:hover { + background: #D8E3F6; + border-color: #D8E3F6; +} + +.c47:active { + background: #95ACD4; + border-color: #95ACD4; +} + +.c47[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c48 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1.4rem; + border-radius: 6px; + padding: calc(0.8rem - 1px) 1.333rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.8rem - 1px) 1.333rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EEF2FC; + color: #456297; + border-color: #EEF2FC; +} + +.c48:hover { + background: #D8E3F6; +} + +.c48:active { + background: #C4D2EB; +} + +.c48:hover { + background: #D8E3F6; + border-color: #D8E3F6; +} + +.c48:active { + background: #95ACD4; + border-color: #95ACD4; +} + +.c48[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c0 { + padding-top: 20px; + padding-bottom: 30px; +} + +.c51 { + position: relative; + padding: 0.75rem 1.25rem; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + color: #456297; + font-size: 0.93333rem; + overflow-x: hidden; +} + +.c52 { + table-layout: fixed; + display: table; + width: 100%; + -webkit-box-flex: 0; + -webkit-flex-grow: 0; + -ms-flex-positive: 0; + flex-grow: 0; + border-top: 1px solid #D8E3F6; + min-height: 50px; + overflow: hidden; + vertical-align: middle; + text-align: right; + box-sizing: border-box; +} + +.c53 { + position: relative; + height: 50px; + display: table-cell; + vertical-align: middle; +} + +.c53:not(:last-child):after { + content: ''; + position: absolute; + top: 0; + right: 0; + width: 1px; + height: 100%; + background: #D8E3F6; +} + +.c54 { + padding: 0 10px; + margin: 0; + border: 0; + border-radius: 0; + height: 100%; + width: 100%; + -webkit-transition: all 120ms ease-in; + transition: all 120ms ease-in; + line-height: 50px; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 1rem; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + cursor: pointer; + color: #0E86FE; +} + +.c54:hover { + background-color: #D8E3F6; +} + +.c50 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin: auto; + box-sizing: border-box; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + word-break: break-word; + border-radius: 0.25rem; + overflow: hidden; + background-color: #ffffff; + box-shadow: none; + width: 300px; + height: auto; + border: 1px solid #D8E3F6; +} + +.c1 { + font-size: 32px; + padding-bottom: 10px; +} + +.c2 { + margin-right: 5px; + display: inline-block; +} + +.c49 { + margin-bottom: 10px; +} + +
+
+
+ Avatar +
+
+
+ +
+
+
+
+ +
+
+
+
+ + +
+
+
+
+ +
+
+
+
+ + + 99+ + +
+
+
+
+
+ Button +
+
+ + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+ + + + + + +
+
+ + + + + +
+
+ + + + + +
+
+
+
+ Card +
+
+
+
+ + + +
+ Congrats +
+
+ Let’s Get Started +
+
+
+
+ +
+
+
+
+
+
+`; + +exports[`Storyshots Getting Started Theme 1`] = ` +.c0 { + text-align: center; +} + +.c1 { + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + padding: 10px; +} + +.c2 { + width: 40px; + height: 40px; +} + +
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`; diff --git a/packages/playground/stories/__snapshots__/Table.stories.storyshot b/packages/playground/stories/__snapshots__/Table.stories.storyshot new file mode 100644 index 000000000..d907694f7 --- /dev/null +++ b/packages/playground/stories/__snapshots__/Table.stories.storyshot @@ -0,0 +1,155 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Table AutoResize 1`] = ` +.c0 { + color: #456297; + font-weight: 500; + border-bottom: 1px solid #D8e3f6; +} + +.c1 { + padding-left: 20px; + padding-right: 20px; +} + +
+
+
+
+
+ + Name + +
+
+ + Location + +
+
+ + Description + +
+
+
+
+
+
+`; + +exports[`Storyshots Table Fixed column 1`] = ` +
+
+
+
+
+`; diff --git a/packages/web/stories/examples/Avatar.stories.jsx b/packages/playground/stories/examples/Avatar.stories.jsx similarity index 96% rename from packages/web/stories/examples/Avatar.stories.jsx rename to packages/playground/stories/examples/Avatar.stories.jsx index 877203e41..98bcaf107 100644 --- a/packages/web/stories/examples/Avatar.stories.jsx +++ b/packages/playground/stories/examples/Avatar.stories.jsx @@ -15,7 +15,7 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Avatar } from '../../src'; +import { Avatar } from '../../../web/src'; storiesOf('Components | Avatar', module) .addDecorator(withKnobs) diff --git a/packages/web/stories/examples/Box.stories.jsx b/packages/playground/stories/examples/Box.stories.jsx similarity index 96% rename from packages/web/stories/examples/Box.stories.jsx rename to packages/playground/stories/examples/Box.stories.jsx index bdb3d95c0..3f9b07c01 100644 --- a/packages/web/stories/examples/Box.stories.jsx +++ b/packages/playground/stories/examples/Box.stories.jsx @@ -16,7 +16,7 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Box } from '../../src'; +import { Box } from '../../../web/src'; const ColorBox = styled(Box)` background-clip: content-box, padding-box; diff --git a/packages/web/stories/examples/Button.stories.jsx b/packages/playground/stories/examples/Button.stories.jsx similarity index 95% rename from packages/web/stories/examples/Button.stories.jsx rename to packages/playground/stories/examples/Button.stories.jsx index 383405f48..cf9f4acae 100644 --- a/packages/web/stories/examples/Button.stories.jsx +++ b/packages/playground/stories/examples/Button.stories.jsx @@ -19,17 +19,8 @@ import { import { withNotes } from '@storybook/addon-notes'; import { Welcome } from '@storybook/react/demo'; -import { Button, Icon, ButtonGroup } from '../../src'; +import { Button, Icon, ButtonGroup } from '../../../web/src'; -injectGlobal` - #root { - padding: 20px; - } -`; - -// storiesOf('Welcome', module).add('to Storybook', () => ( -// -// )); storiesOf('Components | Button', module) .addDecorator(withKnobs) diff --git a/packages/web/stories/examples/Card.stories.jsx b/packages/playground/stories/examples/Card.stories.jsx similarity index 96% rename from packages/web/stories/examples/Card.stories.jsx rename to packages/playground/stories/examples/Card.stories.jsx index 4e77a2abd..3a3755165 100644 --- a/packages/web/stories/examples/Card.stories.jsx +++ b/packages/playground/stories/examples/Card.stories.jsx @@ -15,8 +15,8 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Card, ButtonGroup, Button, Icon } from '../../src'; -import heroImage from '../../assets/img/card-header-pic.png'; +import { Card, ButtonGroup, Button, Icon } from '../../../web/src'; +import heroImage from '../../../../assets/card-header-pic.png'; const content = 'Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est.'; diff --git a/packages/web/stories/examples/Checkbox.stories.jsx b/packages/playground/stories/examples/Checkbox.stories.jsx similarity index 96% rename from packages/web/stories/examples/Checkbox.stories.jsx rename to packages/playground/stories/examples/Checkbox.stories.jsx index 9d1cb47b9..1a1b596de 100644 --- a/packages/web/stories/examples/Checkbox.stories.jsx +++ b/packages/playground/stories/examples/Checkbox.stories.jsx @@ -15,7 +15,7 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Checkbox, CheckboxGroup } from '../../src'; +import { Checkbox, CheckboxGroup } from '../../../web/src'; storiesOf('Components | Checkbox', module) .addDecorator(withKnobs) diff --git a/packages/web/stories/examples/Form.stories.jsx b/packages/playground/stories/examples/Form.stories.jsx similarity index 99% rename from packages/web/stories/examples/Form.stories.jsx rename to packages/playground/stories/examples/Form.stories.jsx index 1b7fc8136..e323edeea 100644 --- a/packages/web/stories/examples/Form.stories.jsx +++ b/packages/playground/stories/examples/Form.stories.jsx @@ -29,7 +29,7 @@ import { Icon, Button, Select, -} from '../../src'; +} from '../../../web/src'; const FormWrapper = styled.div` max-width: 500px; @@ -207,6 +207,7 @@ storiesOf('Components | Form/Input', module) withNotes('This is basic input style')(() => ( - - } - increaseButton={ +)} + increaseButton={( - } +)} /> )), ), diff --git a/packages/web/stories/examples/Switch.stories.jsx b/packages/playground/stories/examples/Switch.stories.jsx similarity index 96% rename from packages/web/stories/examples/Switch.stories.jsx rename to packages/playground/stories/examples/Switch.stories.jsx index 73ab39574..425e5faa1 100644 --- a/packages/web/stories/examples/Switch.stories.jsx +++ b/packages/playground/stories/examples/Switch.stories.jsx @@ -15,7 +15,7 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Switch } from '../../src'; +import { Switch } from '../../../web/src'; storiesOf('Components | Switch', module) .addDecorator(withKnobs) diff --git a/packages/web/stories/examples/Tabs.stories.jsx b/packages/playground/stories/examples/Tabs.stories.jsx similarity index 99% rename from packages/web/stories/examples/Tabs.stories.jsx rename to packages/playground/stories/examples/Tabs.stories.jsx index 653047c95..b9480b901 100644 --- a/packages/web/stories/examples/Tabs.stories.jsx +++ b/packages/playground/stories/examples/Tabs.stories.jsx @@ -16,7 +16,7 @@ import { } from '@storybook/addon-knobs/react'; import { withNotes } from '@storybook/addon-notes'; -import { Tabs, Badge } from '../../src'; +import { Tabs, Badge } from '../../../web/src'; storiesOf('Components | Tab', module) .addDecorator(withKnobs) diff --git a/packages/playground/stories/examples/__snapshots__/Avatar.stories.storyshot b/packages/playground/stories/examples/__snapshots__/Avatar.stories.storyshot new file mode 100644 index 000000000..00644ab53 --- /dev/null +++ b/packages/playground/stories/examples/__snapshots__/Avatar.stories.storyshot @@ -0,0 +1,63 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components | Avatar Basic 1`] = ` +.c2 { + position: absolute; + background-color: #EB5000; + color: #ffffff; + vertical-align: middle; + height: 9px; + line-height: 9px; + padding: 0; + border-radius: 50%; + font-size: 0; + width: 9px; + height: 9px; + right: calc(9px / -2); + top: calc(9px / -2); + left: auto; + right: NaN; +} + +.c2:before { + content: ''; + position: absolute; + top: calc(50% - (3px / 2)); + left: calc(50% - (3px / 2)); + background: #fff; + border-radius: 50%; + width: 3px; + height: 3px; +} + +.c0 { + position: relative; + display: inline-block; +} + +.c1 { + width: 32px; + height: 32px; + border-radius: 3px; + background-color: #F0F0F0; + box-sizing: border-box; +} + +
+ + +
+`; diff --git a/packages/playground/stories/examples/__snapshots__/Box.stories.storyshot b/packages/playground/stories/examples/__snapshots__/Box.stories.storyshot new file mode 100644 index 000000000..c4039b436 --- /dev/null +++ b/packages/playground/stories/examples/__snapshots__/Box.stories.storyshot @@ -0,0 +1,19 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components | Box Basic 1`] = ` +.c1 { + padding: 20px; +} + +.c0 { + background-clip: content-box,padding-box; + background-image: linear-gradient( to bottom, rgba(240,255,40,1) 0%, rgba(240,255,40,1) 100% ), linear-gradient( to bottom, rgba(240,40,40,1) 0%, rgba(240,40,40,1) 100% ); +} + +
+ This is a box! +
+`; diff --git a/packages/playground/stories/examples/__snapshots__/Button.stories.storyshot b/packages/playground/stories/examples/__snapshots__/Button.stories.storyshot new file mode 100644 index 000000000..525a32ab3 --- /dev/null +++ b/packages/playground/stories/examples/__snapshots__/Button.stories.storyshot @@ -0,0 +1,502 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components | Button ButtonGroup 1`] = ` +.c0 > button:not(:last-child) { + margin-right: 5px; +} + +.c0 > button { + display: inline-block; +} + +.c1 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c1:hover { + background: #D8E3F6; +} + +.c1:active { + background: #C4D2EB; +} + +.c1[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +
+ + + +
+`; + +exports[`Storyshots Components | Button Circular style 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + -webkit-box-pack: center; + -webkit-justify-content: center; + -ms-flex-pack: center; + justify-content: center; + -webkit-align-items: center; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + padding: 0; + border-radius: 100%; + width: 2.066rem; + line-height: 2.066rem; + height: 2.066rem; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; + +exports[`Storyshots Components | Button Default 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; + +exports[`Storyshots Components | Button Disable 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; + +exports[`Storyshots Components | Button Flat 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #EEF2FC; + color: #456297; + border-color: #EEF2FC; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0:hover { + background: #D8E3F6; + border-color: #D8E3F6; +} + +.c0:active { + background: #95ACD4; + border-color: #95ACD4; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; + +exports[`Storyshots Components | Button Light 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #ffffff; + color: #456297; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; + +exports[`Storyshots Components | Button Link 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0:hover { + background: transparent; + color: #41a0fe; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; + +exports[`Storyshots Components | Button Subtle 1`] = ` +.c0 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #456297; + border: 1px solid transparent; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0:active { + background: #C4D2EB; +} + +.c0:hover { + background: #D8E3F6; +} + +.c0[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + + +`; diff --git a/packages/playground/stories/examples/__snapshots__/Card.stories.storyshot b/packages/playground/stories/examples/__snapshots__/Card.stories.storyshot new file mode 100644 index 000000000..f3901ed1a --- /dev/null +++ b/packages/playground/stories/examples/__snapshots__/Card.stories.storyshot @@ -0,0 +1,1009 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Storyshots Components | Card Default Full Button type 1`] = ` +.c4 { + display: inline-block; + vertical-align: middle; + padding: 0.25rem 0.75rem; + border-radius: 0.75rem; + font-size: 0.725rem; + background-color: #00C3FF; + color: #ffffff; +} + +.c1 { + position: relative; + box-sizing: border-box; + padding: 0.75rem 1.25rem; + border-bottom: 1px solid #D8E3F6; + color: #456297; + font-size: 1.25rem; + min-height: 50px; + display: table; + width: 100%; +} + +.c2 { + display: table-cell; + vertical-align: middle; +} + +.c3 { + width: 60px; + text-align: right; +} + +.c5 { + position: relative; + padding: 0.75rem 1.25rem; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + color: #456297; + font-size: 0.93333rem; + overflow-x: hidden; +} + +.c6 { + table-layout: fixed; + display: table; + width: 100%; + -webkit-box-flex: 0; + -webkit-flex-grow: 0; + -ms-flex-positive: 0; + flex-grow: 0; + border-top: 1px solid #D8E3F6; + min-height: 50px; + overflow: hidden; + vertical-align: middle; + text-align: right; + box-sizing: border-box; +} + +.c7 { + position: relative; + height: 50px; + display: table-cell; + vertical-align: middle; +} + +.c7:not(:last-child):after { + content: ''; + position: absolute; + top: 0; + right: 0; + width: 1px; + height: 100%; + background: #D8E3F6; +} + +.c9 { + padding: 0 10px; + margin: 0; + border: 0; + border-radius: 0; + height: 100%; + width: 100%; + -webkit-transition: all 120ms ease-in; + transition: all 120ms ease-in; + line-height: 50px; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 1rem; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + cursor: pointer; + color: #0E86FE; +} + +.c9:hover { + background-color: #D8E3F6; +} + +.c8 { + padding: 0 10px; + margin: 0; + border: 0; + border-radius: 0; + height: 100%; + width: 100%; + -webkit-transition: all 120ms ease-in; + transition: all 120ms ease-in; + line-height: 50px; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 1rem; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + cursor: pointer; + color: #456297; +} + +.c8:hover { + background-color: #D8E3F6; +} + +.c0 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin: auto; + box-sizing: border-box; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + word-break: break-word; + border-radius: 0.25rem; + overflow: hidden; + background-color: #ffffff; + box-shadow: none; + width: 300px; + height: 220px; + border: 1px solid #D8E3F6; +} + +
+
+
+ Title +
+
+ + 99+ + +
+
+
+ Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. +
+
+
+ +
+
+ +
+
+
+`; + +exports[`Storyshots Components | Card Hero Image 1`] = ` +.c2 { + position: relative; + box-sizing: border-box; + padding: 0.75rem 1.25rem; + border-bottom: 1px solid #D8E3F6; + color: #456297; + font-size: 1.25rem; + min-height: 50px; + display: table; + width: 100%; +} + +.c1 { + min-height: 183px; + background-position: center center; + background-repeat: no-repeat; + background-color: #dddddd; + background-size: cover; + border-bottom: 1px solid #D8E3F6; + color: #ffffff; + background-image: url(test-file-stub); +} + +.c1 > h4 { + position: absolute; + bottom: 0; + text-shadow: 0 2px 6px rgba(0,0,0,0.5); + font-size: 1.424rem; + font-weight: normal; + margin-top: 1.424em; + margin-bottom: 1.424em; +} + +.c3 { + position: relative; + padding: 0.75rem 1.25rem; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + color: #456297; + font-size: 0.93333rem; + overflow-x: hidden; +} + +.c4 { + table-layout: fixed; + display: table; + width: 100%; + -webkit-box-flex: 0; + -webkit-flex-grow: 0; + -ms-flex-positive: 0; + flex-grow: 0; + border-top: 1px solid #D8E3F6; + min-height: 50px; + overflow: hidden; + vertical-align: middle; + text-align: right; + box-sizing: border-box; +} + +.c5 { + position: relative; + height: 50px; + display: table-cell; + vertical-align: middle; +} + +.c5:not(:last-child):after { + content: ''; + position: absolute; + top: 0; + right: 0; + width: 1px; + height: 100%; + background: #D8E3F6; +} + +.c7 { + padding: 0 10px; + margin: 0; + border: 0; + border-radius: 0; + height: 100%; + width: 100%; + -webkit-transition: all 120ms ease-in; + transition: all 120ms ease-in; + line-height: 50px; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 1rem; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + cursor: pointer; + color: #0E86FE; +} + +.c7:hover { + background-color: #D8E3F6; +} + +.c6 { + padding: 0 10px; + margin: 0; + border: 0; + border-radius: 0; + height: 100%; + width: 100%; + -webkit-transition: all 120ms ease-in; + transition: all 120ms ease-in; + line-height: 50px; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 1rem; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + cursor: pointer; + color: #456297; +} + +.c6:hover { + background-color: #D8E3F6; +} + +.c0 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin: auto; + box-sizing: border-box; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + word-break: break-word; + border-radius: 0.25rem; + overflow: hidden; + background-color: #ffffff; + box-shadow: none; + width: 300px; + height: 400px; + border: 1px solid #D8E3F6; +} + +
+
+

+ Title +

+
+
+ Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. + Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. + Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. + Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. +
+
+
+ +
+
+ +
+
+
+`; + +exports[`Storyshots Components | Card With Flat Button 1`] = ` +.c5 > button:not(:last-child) { + margin-right: 5px; +} + +.c5 > button { + display: inline-block; +} + +.c6 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; +} + +.c6:hover { + background: #D8E3F6; +} + +.c6:active { + background: #C4D2EB; +} + +.c6[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c7 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: #0E86FE; + color: #ffffff; + border-color: #0E86FE; +} + +.c7:hover { + background: #D8E3F6; +} + +.c7:active { + background: #C4D2EB; +} + +.c7:hover { + background: #41a0fe; + border-color: #41a0fe; +} + +.c7:active { + background: #0167ce; + border-color: #0167ce; +} + +.c7[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c1 { + position: relative; + box-sizing: border-box; + padding: 0.75rem 1.25rem; + border-bottom: 1px solid #D8E3F6; + color: #456297; + font-size: 1.25rem; + min-height: 50px; + display: table; + width: 100%; +} + +.c2 { + display: table-cell; + vertical-align: middle; +} + +.c3 { + position: relative; + padding: 0.75rem 1.25rem; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + color: #456297; + font-size: 0.93333rem; + overflow-x: hidden; +} + +.c4 { + table-layout: fixed; + display: table; + width: 100%; + -webkit-box-flex: 0; + -webkit-flex-grow: 0; + -ms-flex-positive: 0; + flex-grow: 0; + border-top: 1px solid #D8E3F6; + min-height: 50px; + overflow: hidden; + vertical-align: middle; + text-align: right; + box-sizing: border-box; +} + +.c0 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin: auto; + box-sizing: border-box; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + word-break: break-word; + border-radius: 0.25rem; + overflow: hidden; + background-color: #ffffff; + box-shadow: none; + width: 300px; + height: 220px; + border: 1px solid #D8E3F6; +} + +
+
+
+ Title +
+
+
+ Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. +
+
+
+ + +
+
+
+`; + +exports[`Storyshots Components | Card With Icon 1`] = ` +.c1 { + position: relative; + padding: 0.75rem 1.25rem; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + color: #456297; + font-size: 0.93333rem; + overflow-x: hidden; +} + +.c2 { + table-layout: fixed; + display: table; + width: 100%; + -webkit-box-flex: 0; + -webkit-flex-grow: 0; + -ms-flex-positive: 0; + flex-grow: 0; + border-top: 1px solid #D8E3F6; + min-height: 50px; + overflow: hidden; + vertical-align: middle; + text-align: right; + box-sizing: border-box; +} + +.c3 { + position: relative; + height: 50px; + display: table-cell; + vertical-align: middle; +} + +.c3:not(:last-child):after { + content: ''; + position: absolute; + top: 0; + right: 0; + width: 1px; + height: 100%; + background: #D8E3F6; +} + +.c4 { + padding: 0 10px; + margin: 0; + border: 0; + border-radius: 0; + height: 100%; + width: 100%; + -webkit-transition: all 120ms ease-in; + transition: all 120ms ease-in; + line-height: 50px; + box-sizing: border-box; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + font-size: 1rem; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + cursor: pointer; + color: #0E86FE; +} + +.c4:hover { + background-color: #D8E3F6; +} + +.c0 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin: auto; + box-sizing: border-box; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + word-break: break-word; + border-radius: 0.25rem; + overflow: hidden; + background-color: #ffffff; + box-shadow: none; + width: 300px; + height: auto; + border: 1px solid #D8E3F6; +} + +
+
+ + + +
+ Congrats +
+
+ Let’s Get Started +
+
+
+
+ +
+
+
+`; + +exports[`Storyshots Components | Card With Link Button 1`] = ` +.c5 > button:not(:last-child) { + margin-right: 5px; +} + +.c5 > button { + display: inline-block; +} + +.c6 { + position: relative; + background: #F7F9FE; + color: #456297; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; +} + +.c6:hover { + background: #D8E3F6; +} + +.c6:active { + background: #C4D2EB; +} + +.c6:hover { + background: transparent; + color: #41a0fe; +} + +.c6[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c7 { + position: relative; + background: #F7F9FE; + color: #0E86FE; + cursor: pointer; + border-width: 1px; + border-style: solid; + border-color: #D8E3F6; + font-size: 1rem; + border-radius: 4px; + padding: calc(0.533rem - 1px) 1.066rem; + line-height: 1; + font-weight: normal; + margin: 0; + outline: none; + padding: calc(0.533rem - 1px) 1.066rem; + box-sizing: border-box; + vertical-align: middle; + text-align: center; + -webkit-text-decoration: none; + text-decoration: none; + background: transparent; + color: #0E86FE; + border: 1px solid transparent; +} + +.c7:hover { + background: #D8E3F6; +} + +.c7:active { + background: #C4D2EB; +} + +.c7:hover { + background: transparent; + color: #41a0fe; +} + +.c7[disabled] { + color: #93a8ce; + border-color: #eaeff8; + background-color: #F7F9FE; + cursor: not-allowed; + pointer-events: none; +} + +.c1 { + position: relative; + box-sizing: border-box; + padding: 0.75rem 1.25rem; + border-bottom: 1px solid #D8E3F6; + color: #456297; + font-size: 1.25rem; + min-height: 50px; + display: table; + width: 100%; +} + +.c2 { + display: table-cell; + vertical-align: middle; +} + +.c3 { + position: relative; + padding: 0.75rem 1.25rem; + -webkit-box-flex: 1; + -webkit-flex-grow: 1; + -ms-flex-positive: 1; + flex-grow: 1; + color: #456297; + font-size: 0.93333rem; + overflow-x: hidden; +} + +.c4 { + table-layout: fixed; + display: table; + width: 100%; + -webkit-box-flex: 0; + -webkit-flex-grow: 0; + -ms-flex-positive: 0; + flex-grow: 0; + border-top: 1px solid #D8E3F6; + min-height: 50px; + overflow: hidden; + vertical-align: middle; + text-align: right; + box-sizing: border-box; +} + +.c0 { + position: relative; + display: -webkit-box; + display: -webkit-flex; + display: -ms-flexbox; + display: flex; + margin: auto; + box-sizing: border-box; + -webkit-flex-direction: column; + -ms-flex-direction: column; + flex-direction: column; + word-break: break-word; + border-radius: 0.25rem; + overflow: hidden; + background-color: #ffffff; + box-shadow: none; + width: 300px; + height: 220px; + border: 1px solid #D8E3F6; +} + +
+
+
+ Title +
+
+
+ Lorem ipsum dolor sit amet, sea oblique aliquam oportere ea, id dico interesset eam. Eu eum quem velit verterem, amet dicat quaeque ad est. +
+
+
+ + +
+
+
+`; diff --git a/packages/web/stories/examples/__snapshots__/Checkbox.stories.storyshot b/packages/playground/stories/examples/__snapshots__/Checkbox.stories.storyshot similarity index 64% rename from packages/web/stories/examples/__snapshots__/Checkbox.stories.storyshot rename to packages/playground/stories/examples/__snapshots__/Checkbox.stories.storyshot index f565d1de3..53b0d47bf 100644 --- a/packages/web/stories/examples/__snapshots__/Checkbox.stories.storyshot +++ b/packages/playground/stories/examples/__snapshots__/Checkbox.stories.storyshot @@ -1,15 +1,62 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Storyshots Components | Checkbox Checkbox 1`] = ` +.c0 { + font-size: 15px; + cursor: pointer; + margin-right: 5px; +} + +.c0:hover > span:first-child { + box-shadow: 0 0 0 2px rgba(14,134,254,0.2); +} + +.c3 { + color: #456297; +} + +.c1 { + box-sizing: border-box; + position: relative; + display: inline-block; + width: 1.066rem; + height: 1.066rem; + border: 1px solid #C4D2EB; + border-radius: 2px; + background-color: #ffffff; + -webkit-transition: all 120ms ease-out; + transition: all 120ms ease-out; + margin: -2px 0.6em 0 0; + vertical-align: middle; +} + +.c4 { + display: none; +} + +.c2 { + text-align: center; + width: 100%; + height: 100%; + position: relative; + opacity: 0; + -webkit-transform: scale(0); + -ms-transform: scale(0); + transform: scale(0); + pointer-events: none; + -webkit-transition: all 120ms ease-out; + transition: all 120ms ease-out; +} +