From 52c4b50904777f57b5519cdc01e73d8061d46650 Mon Sep 17 00:00:00 2001 From: Sophie Shepherd Date: Thu, 18 Jan 2018 15:29:47 -0600 Subject: [PATCH] delete primer tables --- modules/primer-marketing/index.scss | 1 - modules/primer-marketing/package.json | 3 +- modules/primer-tables/.npmignore | 2 - modules/primer-tables/LICENSE | 21 ---------- modules/primer-tables/README.md | 57 --------------------------- modules/primer-tables/index.scss | 4 -- modules/primer-tables/lib/tables.scss | 39 ------------------ modules/primer-tables/package.json | 42 -------------------- modules/primer-tables/stories.js | 10 ----- modules/primer/package.json | 1 - 10 files changed, 1 insertion(+), 179 deletions(-) delete mode 100644 modules/primer-tables/.npmignore delete mode 100644 modules/primer-tables/LICENSE delete mode 100644 modules/primer-tables/README.md delete mode 100644 modules/primer-tables/index.scss delete mode 100644 modules/primer-tables/lib/tables.scss delete mode 100644 modules/primer-tables/package.json delete mode 100644 modules/primer-tables/stories.js diff --git a/modules/primer-marketing/index.scss b/modules/primer-marketing/index.scss index 10023acc90..cc65264836 100755 --- a/modules/primer-marketing/index.scss +++ b/modules/primer-marketing/index.scss @@ -19,5 +19,4 @@ @import "primer-marketing-buttons/index.scss"; @import "primer-page-headers/index.scss"; @import "primer-page-sections/index.scss"; -@import "primer-tables/index.scss"; @import "primer-marketing-utilities/index.scss"; diff --git a/modules/primer-marketing/package.json b/modules/primer-marketing/package.json index d58f08ac12..22e4d99355 100644 --- a/modules/primer-marketing/package.json +++ b/modules/primer-marketing/package.json @@ -33,7 +33,6 @@ "primer-marketing-utilities": "1.6.1", "primer-page-headers": "1.4.5", "primer-page-sections": "1.4.5", - "primer-support": "4.5.2", - "primer-tables": "1.4.5" + "primer-support": "4.5.2" } } diff --git a/modules/primer-tables/.npmignore b/modules/primer-tables/.npmignore deleted file mode 100644 index dd51a98b42..0000000000 --- a/modules/primer-tables/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.yml -.github diff --git a/modules/primer-tables/LICENSE b/modules/primer-tables/LICENSE deleted file mode 100644 index 71fbac5e24..0000000000 --- a/modules/primer-tables/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2018 GitHub Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/modules/primer-tables/README.md b/modules/primer-tables/README.md deleted file mode 100644 index d35dd603a3..0000000000 --- a/modules/primer-tables/README.md +++ /dev/null @@ -1,57 +0,0 @@ -# Primer Marketing CSS Tables - -[![npm version](https://img.shields.io/npm/v/primer-tables.svg)](https://www.npmjs.org/package/primer-tables) -[![Build Status](https://travis-ci.org/primer/primer.svg?branch=master)](https://travis-ci.org/primer/primer) - -> Styles to display tabular data for marketing websites at GitHub. - -This repository is a module of the full [primer][primer] repository. - -## Documentation - - - -Documentation & refactor coming very soon - - - -## Install - -This repository is distributed with [npm][npm]. After [installing npm][install-npm], you can install `primer-tables` with this command. - -``` -$ npm install --save primer-tables -``` - -## Usage - -The source files included are written in [Sass][sass] (`scss`) You can simply point your sass `include-path` at your `node_modules` directory and import it like this. - -```scss -@import "primer-tables/index.scss"; -``` - -You can also import specific portions of the module by importing those partials from the `/lib/` folder. _Make sure you import any requirements along with the modules._ - -## Build - -For a compiled **css** version of this module, a npm script is included that will output a css version to `build/build.css` - -``` -$ npm run build -``` - -## License - -MIT © [GitHub](https://github.com/) - -[primer]: https://github.com/primer/primer -[primer-support]: https://github.com/primer/primer-support -[support]: https://github.com/primer/primer-support -[docs]: http://primer.github.io/ -[npm]: https://www.npmjs.com/ -[install-npm]: https://docs.npmjs.com/getting-started/installing-node -[sass]: http://sass-lang.com/ diff --git a/modules/primer-tables/index.scss b/modules/primer-tables/index.scss deleted file mode 100644 index 1505afe54a..0000000000 --- a/modules/primer-tables/index.scss +++ /dev/null @@ -1,4 +0,0 @@ -// support files -@import "primer-support/index.scss"; -@import "primer-marketing-support/index.scss"; -@import "./lib/tables.scss"; diff --git a/modules/primer-tables/lib/tables.scss b/modules/primer-tables/lib/tables.scss deleted file mode 100644 index f362d0295f..0000000000 --- a/modules/primer-tables/lib/tables.scss +++ /dev/null @@ -1,39 +0,0 @@ -// stylelint-disable selector-max-type, selector-max-compound-selectors - -.data-table { - width: 100%; - margin-top: $spacer-3; - border-collapse: collapse; - border: $border; - box-shadow: 0 1px 1px rgba($black, 0.05); - - th { - font-weight: $font-weight-normal; - text-align: left; - } - - td, - th { - padding: $spacer-3; - border-right: $border; - border-bottom: $border; - } - - tbody { - th { - width: 25%; - } - - th, - td { - border-bottom-color: $border-gray; - } - - tr:last-child { - th, - td { - border-bottom: $border; - } - } - } -} diff --git a/modules/primer-tables/package.json b/modules/primer-tables/package.json deleted file mode 100644 index 3c45f58e82..0000000000 --- a/modules/primer-tables/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "version": "1.4.5", - "name": "primer-tables", - "description": "Styles to display tabular data for marketing websites at GitHub.", - "homepage": "http://primer.github.io/", - "author": "GitHub, Inc.", - "license": "MIT", - "style": "build/build.css", - "sass": "index.scss", - "main": "build/index.js", - "primer": { - "category": "marketing", - "module_type": "components" - }, - "files": [ - "index.scss", - "lib", - "build" - ], - "repository": "https://github.com/primer/primer/tree/master/modules/primer-tables", - "bugs": { - "url": "https://github.com/primer/primer/issues" - }, - "scripts": { - "build": "../../script/npm-run primer-module-build index.scss", - "prepare": "npm run build", - "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" - }, - "dependencies": { - "primer-marketing-support": "1.5.0", - "primer-support": "4.5.2" - }, - "keywords": [ - "css", - "github", - "primer", - "design-system", - "style", - "tables" - ] -} diff --git a/modules/primer-tables/stories.js b/modules/primer-tables/stories.js deleted file mode 100644 index 8bf51d6c4f..0000000000 --- a/modules/primer-tables/stories.js +++ /dev/null @@ -1,10 +0,0 @@ -import React from 'react' -import { storiesOf } from '@storybook/react' -import storiesFromMarkdown from '../../.storybook/lib/storiesFromMarkdown' - -const stories = storiesOf('Tables', module) - -storiesFromMarkdown(require.context('.', true, /\.md$/)) - .forEach(({title, story}) => { - stories.add(title, story) - }) diff --git a/modules/primer/package.json b/modules/primer/package.json index ea6afbacfd..3ab2397024 100644 --- a/modules/primer/package.json +++ b/modules/primer/package.json @@ -54,7 +54,6 @@ "primer-subhead": "1.0.3", "primer-support": "4.5.2", "primer-table-object": "1.4.5", - "primer-tables": "1.4.5", "primer-tooltips": "1.5.2", "primer-truncate": "1.4.5", "primer-utilities": "4.8.5"