├── .babelrc ├── .eslintignore ├── .eslintrc ├── .gitattributes ├── .gitignore ├── .npmignore ├── .travis.yml ├── LICENSE ├── README.md ├── config ├── postcss.config.js ├── styleguide.config.js ├── webpack.analyze.config.js ├── webpack.analyze.index.config.js ├── webpack.config.js └── webpack.index.config.js ├── docs ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── PUBLISH.md ├── STYLEGUIDE.md └── images │ ├── logo_full.png │ ├── logo_full_300.png │ ├── logo_medium.png │ └── logo_small.png ├── package-lock.json ├── package.json ├── scripts ├── enzymeConfig.js ├── gh-pages.js └── setup.js └── src ├── Accordion ├── Accordion.css ├── Accordion.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── accordion.test.js.snap │ └── accordion.test.js └── index.js ├── AccordionPanel ├── AccordionPanel.css ├── AccordionPanel.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── accordionPanel.test.js.snap │ └── accordionPanel.test.js └── index.js ├── Alert ├── Alert.css ├── Alert.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── alert.test.js.snap │ └── alert.test.js └── index.js ├── Avatar ├── Avatar.css ├── Avatar.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── avatar.test.js.snap │ └── avatar.test.js └── index.js ├── Breadcrumb ├── Breadcrumb.css ├── Breadcrumb.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── breadcrumb.test.js.snap │ └── breadcrumb.test.js └── index.js ├── BreadcrumbItem ├── BreadcrumbItem.css ├── BreadcrumbItem.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── breadcrumbItem.test.js.snap │ └── breadcrumbItem.test.js └── index.js ├── Button ├── Button.css ├── Button.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── button.test.js.snap │ └── button.test.js └── index.js ├── Card ├── Card.css ├── Card.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── card.test.js.snap │ └── card.test.js └── index.js ├── Checkbox ├── Checkbox.css ├── Checkbox.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── checkbox.test.js.snap │ └── checkbox.test.js └── index.js ├── CheckboxGroup ├── CheckboxGroup.css ├── CheckboxGroup.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── checkboxGroup.test.js.snap │ └── checkboxGroup.test.js └── index.js ├── Dialog ├── Dialog.css ├── Dialog.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── dialog.test.js.snap │ └── dialog.test.js └── index.js ├── Dropdown ├── Dropdown.css ├── Dropdown.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── dropdown.test.js.snap │ └── dropdown.test.js └── index.js ├── FileUpload ├── FileUpload.js ├── README.md ├── __tests__ │ └── fileUpload.test.js ├── fileupload.css └── index.js ├── Form ├── Form.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── form.test.js.snap │ └── form.test.js └── index.js ├── Hint ├── Hint.css ├── Hint.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── hint.test.js.snap │ └── hint.test.js └── index.js ├── Icon ├── Icon.css ├── Icon.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── icon.test.js.snap │ └── icon.test.js └── index.js ├── Label ├── Label.css ├── Label.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── label.test.js.snap │ └── label.test.js └── index.js ├── List ├── List.css ├── List.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── list.test.js.snap │ └── list.test.js └── index.js ├── ListGroup ├── ListGroup.css ├── ListGroup.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── listGroup.test.js.snap │ └── listGroup.test.js └── index.js ├── ListItem ├── ListItem.css ├── ListItem.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── listItem.test.js.snap │ └── listItem.test.js └── index.js ├── Modal ├── Modal.css ├── Modal.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── modal.test.js.snap │ └── modal.test.js └── index.js ├── Nav ├── Nav.css ├── Nav.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── nav.test.js.snap │ ├── data.json │ └── nav.test.js └── index.js ├── NavItem ├── NavItem.css ├── NavItem.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── navItem.test.js.snap │ └── navItem.test.js └── index.js ├── Option ├── Option.css ├── Option.js ├── README.md └── index.js ├── Overlay ├── Overlay.css ├── Overlay.js ├── __tests__ │ ├── __snapshots__ │ │ └── overlay.test.js.snap │ └── overlay.test.js └── index.js ├── Portal ├── Portal.css ├── Portal.js ├── __tests__ │ ├── __snapshots__ │ │ └── portal.test.js.snap │ └── portal.test.js └── index.js ├── ProgressBar ├── ProgressBar.css ├── ProgressBar.js ├── README.md ├── __tests__ │ ├── __snapshots__ │ │ └── progressBar.test.js.snap │ └── progressBar.test.js └── index.js ├── Radio ├── README.md ├── Radio.css ├── Radio.js ├── __tests__ │ ├── __snapshots__ │ │ └── radio.test.js.snap │ └── radio.test.js └── index.js ├── RadioGroup ├── README.md ├── RadioGroup.css ├── RadioGroup.js ├── __tests__ │ ├── __snapshots__ │ │ └── radioGroup.test.js.snap │ └── radioGroup.test.js └── index.js ├── Switch ├── README.md ├── Switch.css ├── Switch.js ├── __tests__ │ ├── __snapshots__ │ │ └── switch.test.js.snap │ └── switch.test.js └── index.js ├── Tab ├── README.md ├── Tab.css ├── Tab.js ├── __tests__ │ ├── __snapshots__ │ │ └── tab.test.js.snap │ └── tab.test.js └── index.js ├── TabList ├── README.md ├── TabList.css ├── TabList.js └── index.js ├── TabPanel ├── README.md ├── TabPanel.css ├── TabPanel.js ├── __tests__ │ ├── __snapshots__ │ │ └── tabPanel.test.js.snap │ └── tabPanel.test.js └── index.js ├── Table ├── README.md ├── Table.css ├── Table.js └── index.js ├── TableHeader ├── README.md ├── TableHeader.css ├── TableHeader.js └── index.js ├── Tabs ├── README.md ├── Tabs.css ├── Tabs.js ├── __tests__ │ ├── __snapshots__ │ │ └── tabs.test.js.snap │ └── tabs.test.js └── index.js ├── Task ├── README.md ├── Task.css ├── Task.js ├── __tests__ │ ├── __snapshots__ │ │ └── task.test.js.snap │ └── task.test.js └── index.js ├── Taskbar ├── README.md ├── Taskbar.css ├── Taskbar.js ├── __tests__ │ ├── __snapshots__ │ │ └── taskbar.test.js.snap │ └── taskbar.test.js └── index.js ├── Text ├── README.md ├── Text.css ├── Text.js ├── __tests__ │ ├── __snapshots__ │ │ └── text.test.js.snap │ └── text.test.js └── index.js ├── TextArea ├── README.md ├── TextArea.css ├── TextArea.js ├── __tests__ │ ├── __snapshots__ │ │ └── textArea.test.js.snap │ └── textArea.test.js └── index.js ├── TextField ├── README.md ├── TextField.css ├── TextField.js ├── __tests__ │ ├── __snapshots__ │ │ └── textField.test.js.snap │ └── textField.test.js └── index.js ├── Timer ├── README.md ├── Timer.js ├── __tests__ │ ├── __snapshots__ │ │ └── timer.test.js.snap │ └── timer.test.js └── index.js ├── Tooltip ├── README.md ├── Tooltip.css ├── Tooltip.js ├── __tests__ │ ├── __snapshots__ │ │ └── tooltip.test.js.snap │ └── tooltip.test.js └── index.js ├── constants.js ├── index.js ├── styles.css ├── styles ├── borders.css ├── colors.css ├── layout.css ├── miscellaneous.css ├── typography.css └── variables.css └── utils ├── __tests__ ├── events.test.js ├── prefixer.test.js ├── propsVerification.test.js └── utils.test.js ├── events.js ├── index.js ├── messages.js ├── polyfills.js ├── prefixer.js ├── propsVerification.js └── utils.js /.babelrc: -------------------------------------------------------------------------------- 1 | { 2 | "presets": [ 3 | "react", "env" 4 | ], 5 | "plugins": ["transform-class-properties", "transform-object-rest-spread"] 6 | } -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | styleguide 3 | docAssets 4 | lib 5 | wiki -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "env": { 3 | "browser": true, 4 | "node": true, 5 | "mocha": true, 6 | "es6": true, 7 | "jest": true 8 | }, 9 | 10 | "parser": "babel-eslint", 11 | 12 | "globals": { 13 | "React": true, 14 | "Overlay": true 15 | }, 16 | 17 | "plugins": ["babel", "react"], 18 | "extends": [ 19 | "eslint:recommended", 20 | "plugin:react/recommended", 21 | "eslint-config-prettier" 22 | ], 23 | "rules": { 24 | "no-console": 1 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | packages/react-atlas/src/assets/* linguist-vendored -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | build 2 | lib 3 | node_modules 4 | npm-debug.log 5 | .idea 6 | .vscode 7 | styleguide 8 | .npmrc 9 | jsconfig.json 10 | lerna-debug.log 11 | coverage 12 | atlas.config.js 13 | *reports/ 14 | *.DS_Store 15 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .*rc 2 | .eslintignore 3 | .editorconfig 4 | karma.conf.js 5 | tests.webpack.js 6 | webpack.config.* 7 | jsconfig.json 8 | CONTRIBUTING.md 9 | CODE_OF_CONDUCT.md 10 | docs 11 | spec 12 | tools 13 | wiki 14 | styleguide 15 | docsConfig.js 16 | temp.css 17 | coverage 18 | src 19 | config 20 | 21 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - '6' 5 | install: 6 | - npm install 7 | script: 8 | - npm run build:prd 9 | - npm run lint 10 | - npm run test -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Digital River 4 | Copyright (c) 2015 React Toolbox Team 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 22 | SOFTWARE. 23 | 24 | -------------------------------------------------------------------------------- /config/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: { 3 | "postcss-import": {}, 4 | "postcss-cssnext": { 5 | browsers: ["last 2 versions", "> 5%"] 6 | } 7 | } 8 | }; 9 | -------------------------------------------------------------------------------- /config/webpack.analyze.config.js: -------------------------------------------------------------------------------- 1 | let config = require(__dirname + "/webpack.config.js"); 2 | let BundleAnalyzerPlugin = require("webpack-bundle-analyzer") 3 | .BundleAnalyzerPlugin; 4 | 5 | config.plugins.push(new BundleAnalyzerPlugin()); 6 | 7 | module.exports = config; 8 | -------------------------------------------------------------------------------- /config/webpack.analyze.index.config.js: -------------------------------------------------------------------------------- 1 | let config = require(__dirname + "/webpack.index.config.js"); 2 | let BundleAnalyzerPlugin = require("webpack-bundle-analyzer") 3 | .BundleAnalyzerPlugin; 4 | 5 | config.plugins.push(new BundleAnalyzerPlugin()); 6 | 7 | module.exports = config; 8 | -------------------------------------------------------------------------------- /config/webpack.index.config.js: -------------------------------------------------------------------------------- 1 | let path = require("path"); 2 | let webpack = require("webpack"); 3 | const ExtractTextPlugin = require("extract-text-webpack-plugin"); 4 | 5 | let config = { 6 | entry: { 7 | index: "./src/index.js" 8 | }, 9 | output: { 10 | path: path.join(__dirname, "../lib"), 11 | filename: "index.js", 12 | libraryTarget: "umd" 13 | }, 14 | externals: [ 15 | { 16 | react: { 17 | root: "React", 18 | commonjs2: "react", 19 | commonjs: "react", 20 | amd: "react" 21 | } 22 | }, 23 | { 24 | "react-dom": { 25 | root: "ReactDOM", 26 | commonjs2: "react-dom", 27 | commonjs: "react-dom", 28 | amd: "react-dom" 29 | } 30 | } 31 | ], 32 | module: { 33 | rules: [ 34 | { 35 | test: /.js?$/, 36 | loader: "babel-loader", 37 | exclude: /node_modules/ 38 | } 39 | ] 40 | }, 41 | plugins: [ 42 | new webpack.DefinePlugin({ 43 | "process.env": { 44 | NODE_ENV: JSON.stringify(process.env.NODE_ENV) 45 | } 46 | }) 47 | ] 48 | }; 49 | 50 | if (process.env.NODE_ENV === "development") { 51 | config.devtool = "source-map"; 52 | } 53 | 54 | if (process.env.NODE_ENV === "production") { 55 | config.module.rules.push({ 56 | test: /\.css$/, 57 | loader: ExtractTextPlugin.extract({ 58 | fallback: "style-loader", 59 | use: [ 60 | { 61 | loader: "css-loader", 62 | query: { 63 | modules: true, 64 | importLoaders: 1, 65 | localIdentName: "ra_[name]__[local]", 66 | minimize: true 67 | } 68 | }, 69 | { 70 | loader: "postcss-loader", 71 | options: { 72 | config: { 73 | path: "config/postcss.config.js" 74 | } 75 | } 76 | } 77 | ] 78 | }) 79 | }); 80 | config.plugins.push(new ExtractTextPlugin("atlasThemes.min.css")); 81 | } else { 82 | config.module.rules.push({ 83 | test: /\.css$/, 84 | loaders: [ 85 | "style-loader?sourceMap", 86 | "css-loader?modules&importLoaders=1&localIdentName=ra_[name]__[local]", 87 | { 88 | loader: "postcss-loader", 89 | options: { 90 | config: { 91 | path: "config/postcss.config.js" 92 | } 93 | } 94 | } 95 | ] 96 | }); 97 | } 98 | 99 | module.exports = config; 100 | -------------------------------------------------------------------------------- /docs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Code of Conduct 2 | 3 | As contributors and maintainers of this project, and in the interest of 4 | fostering an open and welcoming community, we pledge to respect all people who 5 | contribute through reporting issues, posting feature requests, updating 6 | documentation, submitting pull requests or patches, and other activities. 7 | 8 | We are committed to making participation in this project a harassment-free 9 | experience for everyone, regardless of level of experience, gender, gender 10 | identity and expression, sexual orientation, disability, personal appearance, 11 | body size, race, ethnicity, age, religion, or nationality. 12 | 13 | Examples of unacceptable behavior by participants include: 14 | 15 | * The use of sexualized language or imagery 16 | * Personal attacks 17 | * Trolling or insulting/derogatory comments 18 | * Public or private harassment 19 | * Publishing other's private information, such as physical or electronic 20 | addresses, without explicit permission 21 | * Other unethical or unprofessional conduct 22 | 23 | Project maintainers have the right and responsibility to remove, edit, or 24 | reject comments, commits, code, wiki edits, issues, and other contributions 25 | that are not aligned to this Code of Conduct, or to ban temporarily or 26 | permanently any contributor for other behaviors that they deem inappropriate, 27 | threatening, offensive, or harmful. 28 | 29 | By adopting this Code of Conduct, project maintainers commit themselves to 30 | fairly and consistently applying these principles to every aspect of managing 31 | this project. Project maintainers who do not follow or enforce the Code of 32 | Conduct may be permanently removed from the project team. 33 | 34 | This Code of Conduct applies both within project spaces and in public spaces 35 | when an individual is representing the project or its community. 36 | 37 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 38 | reported by contacting a project maintainer. All 39 | complaints will be reviewed and investigated and will result in a response that 40 | is deemed necessary and appropriate to the circumstances. Maintainers are 41 | obligated to maintain confidentiality with regard to the reporter of an 42 | incident. 43 | 44 | 45 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 46 | version 1.3.0, available at 47 | [http://contributor-covenant.org/version/1/3/0/][version] 48 | 49 | [homepage]: http://contributor-covenant.org 50 | [version]: http://contributor-covenant.org/version/1/3/0/ 51 | -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | React-Atlas Contributing Guidelines 2 | 3 | Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms. 4 | External Contributors 5 | 6 | Fork repo to your personal profile. 7 | Clone your forked repo to your machine. 8 | Go inside newly cloned directory and: 9 | 10 | git remote add upstream https://github.com/DigitalRiver/react-atlas.git # to add the ability to fetch the most recent code from React-Atlas master branch 11 | npm install # to install node modules 12 | npm run bootstrap:dev # to have lerna install and setup the different packages as well as generate atlas code 13 | npm run docs:dev # to start a local docs server at port 6060 14 | Write tests & code in ES6 goodness :-) and then run the test suite: 15 | npm run test 16 | 17 | If any snapshot tests need to be updated, run the following command: 18 | npm run updateSnapshot 19 | 20 | Confirm that there were no errors in the test results. Commit your changes. A pre-commit hook will run Prettier and Eslint on your changes. Fix any errors found, then commit again. Rebase your branch to upstream/master and squash any unhelpful commits. Push your branch to your personal fork. Create a PR back into DigitalRiver/react-atlas or the appropriate release candidate branch. If this is your first PR into React-Atlas you will be asked to sign a Contributor's License Agreement online Wait patiently :-) 21 | 22 | 23 | Internal Contributor Rules/Expectations 24 | 25 | Only branches that are release candidates or will be contributed to by multiple developers should be pushed to DigitalRiver/React-Atlas. 26 | Any branch pushed to DigitalRiver/React-Atlas must have an associated issue and reference that issue in a commit message. The issues should have a list of expected changes, and the commit messages should reference which changes have been completed so that another developer could assist with that development effort. 27 | Experimental branches or feature branches that will only be contributed to by one developer should be pushed to a private fork to keep the master repository as clean as possible. 28 | PRs can contain more than one commit, but each commit must solve an issue, be releasable on its own, and contain a helpful message. 29 | 30 | -------------------------------------------------------------------------------- /docs/PUBLISH.md: -------------------------------------------------------------------------------- 1 | ## Publishing to your own github page 2 | To publish your own build of react-atlas to your own fork, run the following commands: 3 | 4 | ```bash 5 | $ npm run docs:build 6 | $ npm run gh-pages:publish 7 | ``` 8 | -------------------------------------------------------------------------------- /docs/images/logo_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitalRiver/react-atlas/000cec1fb24dfcec99060529baf7185ff4382a27/docs/images/logo_full.png -------------------------------------------------------------------------------- /docs/images/logo_full_300.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitalRiver/react-atlas/000cec1fb24dfcec99060529baf7185ff4382a27/docs/images/logo_full_300.png -------------------------------------------------------------------------------- /docs/images/logo_medium.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitalRiver/react-atlas/000cec1fb24dfcec99060529baf7185ff4382a27/docs/images/logo_medium.png -------------------------------------------------------------------------------- /docs/images/logo_small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitalRiver/react-atlas/000cec1fb24dfcec99060529baf7185ff4382a27/docs/images/logo_small.png -------------------------------------------------------------------------------- /scripts/enzymeConfig.js: -------------------------------------------------------------------------------- 1 | import { configure } from "enzyme"; 2 | import Adapter from "enzyme-adapter-react-16"; 3 | 4 | configure({ adapter: new Adapter() }); 5 | -------------------------------------------------------------------------------- /scripts/gh-pages.js: -------------------------------------------------------------------------------- 1 | let ghpages = require("gh-pages"); 2 | let pjson = require("../package.json"); 3 | 4 | ghpages.publish( 5 | "config/styleguide", 6 | { 7 | remote: "origin", 8 | message: "Auto-generated commit for React Atlas version: " + pjson.version 9 | }, 10 | function(err) { 11 | console.warn("Error publishing Styleguide: ", err); 12 | } 13 | ); 14 | -------------------------------------------------------------------------------- /src/Accordion/Accordion.css: -------------------------------------------------------------------------------- 1 | .accordion { 2 | composes: default-border from '../styles.css'; 3 | composes: border-bottom-none from '../styles.css'; 4 | composes: bg-white from '../styles.css'; 5 | composes: default-text from '../styles.css'; 6 | composes: default-font from '../styles.css'; 7 | cursor: default; 8 | width: 100%; 9 | } 10 | .disabled { 11 | composes: cursor-not-allowed from '../styles.css'; 12 | opacity: 0.6; 13 | } 14 | .accordion_header { 15 | composes: marg-0 from '../styles.css'; 16 | composes: cursor-pointer from '../styles.css'; 17 | composes: default-border-bottom from '../styles.css'; 18 | composes: border-left-none from '../styles.css'; 19 | composes: border-top-none from '../styles.css'; 20 | composes: border-right-none from '../styles.css'; 21 | composes: header-font from '../styles.css'; 22 | composes: pad-h-2 from '../styles.css'; 23 | line-height: 1.5rem; 24 | vertical-align: middle; 25 | text-align: left; 26 | } 27 | .rightAlign { 28 | text-align: right; 29 | composes: pad-h-2 from '../styles.css'; 30 | } 31 | .centerAlign { 32 | text-align: center; 33 | } 34 | .header-active { 35 | composes: bg-primary from '../styles.css'; 36 | composes: white from '../styles.css'; 37 | } 38 | .header-inactive { 39 | composes: bg-silver from '../styles.css'; 40 | } 41 | .hover { 42 | composes: bg-gray from '../styles.css' !important; 43 | composes: white from '../styles.css'; 44 | } 45 | .panel { 46 | display: none; 47 | padding-left: 0rem; 48 | padding-right: 0rem; 49 | } 50 | .active { 51 | border-top: none; 52 | border-left: none; 53 | border-right: none; 54 | border-bottom: 1px solid #ccc; 55 | max-height: 100%; 56 | opacity: 1; 57 | padding: 1rem 0rem 1rem 0rem; 58 | -moz-transition: .25s; 59 | -ms-transition: .25s; 60 | -o-transition: .25s; 61 | -webkit-transition: .25s; 62 | transition: .25s; 63 | transition-timing-function: ease-in; 64 | } 65 | .active .panel { 66 | display: block; 67 | padding-left: 1rem; 68 | padding-right: 1rem; 69 | } 70 | 71 | .inactive { 72 | max-height: 0; 73 | padding: 0rem; 74 | opacity: 0; 75 | -moz-transition: .1s; 76 | -ms-transition: .1s; 77 | -o-transition: .1s; 78 | -webkit-transition: .1s; 79 | transition: .1s; 80 | } 81 | 82 | .expandAll { 83 | composes: marg-b-1 from '../styles.css'; 84 | composes: primary-text from '../styles.css'; 85 | composes: default-font from '../styles.css'; 86 | cursor: pointer; 87 | } 88 | .expandAll:hover { 89 | text-decoration: underline; 90 | } -------------------------------------------------------------------------------- /src/Accordion/__tests__/__snapshots__/accordion.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Test Accordion component Test render correctly 1`] = ` 4 |
Some Text.
60 | */ 61 | children: PropTypes.node.isRequired, 62 | 63 | /** An object, array, or string of CSS classes to apply to card.*/ 64 | className: PropTypes.oneOfType([ 65 | PropTypes.string, 66 | PropTypes.object, 67 | PropTypes.array 68 | ]), 69 | 70 | /** 71 | * Path to an image that will be displayed in Card. 72 | * @examples "http://path.to/an/image.jpg" 73 | */ 74 | image: PropTypes.string, 75 | 76 | /** 77 | * Legend that will be displayed on Card when standardFieldset prop is true. 78 | */ 79 | legend: PropTypes.string, 80 | 81 | /** 82 | * When true, will generate a fieldset Card. 83 | * @exampleLorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,
15 | 16 | 17 |Lorem-ipsum-dolor-sit-amet-consectetuer
23 | 24 |12 | Tab content here 13 |
14 |Tab content here
12 |Tab content here
23 |Tab content here
34 |Tab content here
45 |Tab content here
56 |Tab content here
66 |Tab content here
79 |56 | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin laoreet lorem sit amet finibus rutrum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Pellentesque habitant morbi tristique senectus et netus et malesuada 57 | 58 | 61 | fames ac turpis egestas 62 | 63 | et siem. 64 |
65 |74 | Tab content here 75 |
76 |85 | Tab content here 86 |
87 |96 | Tab content here 97 |
98 |107 | Tab content here 108 |
109 |Some Text.
41 | */ 42 | children: PropTypes.node.isRequired, 43 | /** An Object, array, or string of CSS classes to apply to CheckboxGroup.*/ 44 | className: PropTypes.oneOfType([ 45 | PropTypes.string, 46 | PropTypes.object, 47 | PropTypes.array 48 | ]), 49 | /** 50 | * Function that will be executed on click. 51 | */ 52 | onClick: PropTypes.func, 53 | /** Pass inline styling here. */ 54 | style: PropTypes.object 55 | }; 56 | 57 | export default CSSModules(Taskbar, styles, { allowMultiple: true }); 58 | -------------------------------------------------------------------------------- /src/Taskbar/__tests__/__snapshots__/taskbar.test.js.snap: -------------------------------------------------------------------------------- 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP 2 | 3 | exports[`Test Taskbar component Test render correctly 1`] = ` 4 |