Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
0cde636
US188751 Hide Show component
chrisdo1 Nov 20, 2018
e5d9b46
US188751 added hide-show component
chrisdo1 Dec 6, 2018
5c14dfa
Merge branch 'master' of github.com:RHElements/rhelements into US1887…
Dec 6, 2018
3b9c8ec
Updates based on our meeting with cp
Dec 6, 2018
490c18c
Template attempt
Dec 6, 2018
b4acd20
Merge branch 'master' of github.com:RHElements/rhelements into US1887…
Dec 11, 2018
ce9acaa
Create a fork testing the hide-show-set approach
Dec 11, 2018
03f877b
US188751 set tab groups
chrisdo1 Dec 11, 2018
45daf3f
US188751 added hide-show header and panel.
chrisdo1 Dec 11, 2018
2968351
Merge branch 'US188751-hide-show-component' of https://github.com/RHE…
chrisdo1 Dec 11, 2018
afd0aac
US188751 fixed tab slot name
chrisdo1 Dec 11, 2018
fbe39d1
Testing updating template
Dec 11, 2018
b01945f
Updated template logic
Dec 11, 2018
e59ca56
Clean up template examples
Dec 11, 2018
b334984
US188751 revert changes to tabs
chrisdo1 Dec 11, 2018
84e86fa
Merge branch 'US188751-hide-show-component-group-fork-2' into US18875…
chrisdo1 Dec 11, 2018
4a20461
US188751 pushed variant and orientation attributes to the tabs
chrisdo1 Dec 11, 2018
472a7f2
US188751 cleaned up tab variants, fixed tab and hide-show storybook i…
chrisdo1 Dec 12, 2018
ff733cf
US188751 mapped accordion header colors to tab variants in hide-show,…
chrisdo1 Dec 12, 2018
841def0
US188751 hide-show
chrisdo1 Dec 13, 2018
0834405
Merge branch 'master' of github.com:patternfly/patternfly-elements in…
Dec 15, 2018
2954058
US188751 fixed variant logic
chrisdo1 Dec 18, 2018
f67fca1
Merge branch 'master' into US188751-hide-show-component
chrisdo1 Dec 18, 2018
be69d23
US188751 added hide-show variants to demo page
chrisdo1 Dec 18, 2018
4b926df
US188751 removed space-between for primary and secondary tabs, added …
chrisdo1 Jan 2, 2019
4706ab4
US188751 added html to hide-show test
chrisdo1 Jan 3, 2019
f77a04a
Update path for dependencies to patternfly
starryeyez024 Jan 4, 2019
57e2e92
Merge branch 'US188751-hide-show-component' of https://github.com/pat…
starryeyez024 Jan 4, 2019
4d53f7f
US188751 added pfe-tabs and pfe-accordion to pfe-hide-show dependency.
chrisdo1 Jan 4, 2019
135161f
US188751 added tab and accordion dependencies to the hide-show compon…
chrisdo1 Jan 7, 2019
d1cf2e9
WIP, tab styles
starryeyez024 Jan 8, 2019
234340b
WIP styles for tabs
starryeyez024 Jan 8, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions elements/pfe-accordion/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 20 additions & 6 deletions elements/pfe-accordion/pfe-accordion.story.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
import { storiesOf } from "@storybook/polymer";
import { withKnobs, text, select } from "@storybook/addon-knobs/polymer";
import { escapeHTML } from "../../.storybook/utils.js";
import "./pfe-accordion";

storiesOf("Accordion", module).add(
"pfe-accordion",
() => `
<pfe-accordion>
const stories = storiesOf("Accordion", module);
stories.addDecorator(withKnobs);

stories.add("pfe-accordion", () => {
const color = select("Header color", {
lightest: "Lightest",
striped: "Striped",
base: "Base",
dark: "Dark",
darkest: "Darkest",
accent: "Accent",
complement: "Complement"
});

return `
<pfe-accordion${color ? ` color="${color}"` : ""}>
<pfe-accordion-header>
<h2>Why do wizards need money if they could just create it?</h2>
</pfe-accordion-header>
Expand Down Expand Up @@ -37,5 +51,5 @@ storiesOf("Accordion", module).add(
<p><a href="https://www.pottermore.com/collection/characters" target="blank">Read more about the characters</a></p>
</pfe-accordion-panel>
</pfe-accordion>
`
);
`;
});
14 changes: 14 additions & 0 deletions elements/pfe-card/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions elements/pfe-hide-show/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": [["env", { "modules": false }]],
"plugins": ["external-helpers"]
}
17 changes: 17 additions & 0 deletions elements/pfe-hide-show/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# EditorConfig: http://EditorConfig.org

# Top-most EditorConfig file
root = true

# Rules for JavaScript files:

[*.{js,py,json,sh,html}]
# 4 space indentation
indent_style = space
indent_size = 2
# No trailing spaces
trim_trailing_whitespace = true
# Unix-style newlines
end_of_line = lf
# Newline ending every file
insert_final_newline = true
1 change: 1 addition & 0 deletions elements/pfe-hide-show/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
18 changes: 18 additions & 0 deletions elements/pfe-hide-show/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: node_js
dist: trusty
sudo: required
addons:
firefox: "latest"
apt:
sources:
- google-chrome
packages:
- google-chrome-stable
node_js: stable
before_install:
- npm install -g web-component-tester
install:
- npm install
before_script:
script:
- xvfb-run npm run test
19 changes: 19 additions & 0 deletions elements/pfe-hide-show/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright 2018 Red Hat, 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.
34 changes: 34 additions & 0 deletions elements/pfe-hide-show/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# PatternFly Elements | Hide-show Element

## Dependencies

Make sure you have [Polyserve][polyserve] and [Web Component Tester][web-component-tester] installed.

npm install -g polyserve web-component-tester

Requires the pfe-accordion and pfe-tabs components be loaded.

## Dev

`npm start`

## Test

`npm run test`

## Build

`npm run build`

## Demo

Run `npm start` and Polyserve will start a server and open your default browser to the demo page of the element.

## Code style

Hide-show (and all PatternFly Elements) use [Prettier][prettier] to auto-format JS and JSON. The style rules get applied when you commit a change. If you choose to, you can [integrate your editor][prettier-ed] with Prettier to have the style rules applied on every save.

[prettier]: https://github.com/prettier/prettier/
[prettier-ed]: https://github.com/prettier/prettier/#editor-integration
[polyserve]: https://github.com/Polymer/polyserve
[web-component-tester]: https://github.com/Polymer/web-component-tester
157 changes: 157 additions & 0 deletions elements/pfe-hide-show/demo/index.html

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions elements/pfe-hide-show/gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// rollup.config.js
const gulpFactory = require("../../scripts/gulpfile.factory.js");
const pfelementPackage = require("./package.json");

gulpFactory(pfelementPackage.pfelement);
14 changes: 14 additions & 0 deletions elements/pfe-hide-show/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 33 additions & 0 deletions elements/pfe-hide-show/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@patternfly/pfe-hide-show",
"pfelement": {
"className": "PfeHideShow",
"elementName": "pfe-hide-show"
},
"version": "1.0.0-prerelease.7",
"description": "This PatternFly Element dynamically hides and shows content; the style is determined by the available space.",
"repository": {
"type": "git",
"url": ""
},
"publishConfig": {
"access": "public"
},
"main": "index.js",
"scripts": {
"build": "../../node_modules/.bin/gulp && ../../node_modules/.bin/prettier --ignore-path ../../.prettierignore --write '**/*.{js,json}'",
"dev": "../../node_modules/.bin/gulp dev",
"test": "../../node_modules/.bin/wct --configFile ../../wct.conf.json elements/pfe-hide-show/test/"
},
"author": {
"name": "cd"
},
"license": "MIT",
"dependencies": {
"@patternfly/pfe-accordion": "^1.0.0-prerelease.7",
"@patternfly/pfelement": "^1.0.0-prerelease.7",
"@patternfly/pfe-sass": "^1.0.0-prerelease.7",
"@patternfly/pfe-tabs": "^1.0.0-prerelease.7"
},
"generator-pfelement-version": "0.6.8"
}
161 changes: 161 additions & 0 deletions elements/pfe-hide-show/pfe-hide-show.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions elements/pfe-hide-show/pfe-hide-show.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading