Skip to content

Commit 69465e3

Browse files
authored
Merge branch 'master' into emit-event
2 parents 4e50849 + f20063d commit 69465e3

File tree

373 files changed

+22868
-11769
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

373 files changed

+22868
-11769
lines changed

.gitignore

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,8 @@ tmp
44

55
# ignore js, map, and css in element dirs
66
elements/*/_temp
7-
elements/*/*.js
8-
elements/*/*.map
9-
elements/*/*.css
7+
elements/*/dist
108
elements/*/__*.scss
11-
# but don't ignore tooling files
12-
!elements/*/gulpfile.js
13-
!elements/*/rollup.config.js
149

1510
# Compiled index
1611
doc/index.html

.storybook/test-theme.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
[pfelement] {
22
font-family: var(--pfe-theme--font-family);
3-
color: var(--pfe-broadcasted--color--text);
3+
color: var(--pfe-broadcasted--text);
44
}
55
[pfelement] a {
6-
color: var(--pfe-broadcasted--color--ui-link);
6+
color: var(--pfe-broadcasted--link);
7+
text-decoration: var(--pfe-broadcasted--link-decoration);
78
}
89
[pfelement] a:visited {
9-
color: var(--pfe-broadcasted--color--ui-link--visited);
10+
color: var(--pfe-broadcasted--link--visited);
11+
text-decoration: var(--pfe-broadcasted--link-decoration--visited);
1012
}
1113
[pfelement] a:hover {
12-
color: var(--pfe-broadcasted--color--ui-link--hover);
14+
color: var(--pfe-broadcasted--link--hover);
15+
text-decoration: var(--pfe-broadcasted--link-decoration--hover);
1316
}
1417
[pfelement] a:focus {
15-
color: var(--pfe-broadcasted--color--ui-link--focus);
18+
color: var(--pfe-broadcasted--link--focus);
19+
text-decoration: var(--pfe-broadcasted--link-decoration--focus);
1620
}
1721
[pfelement] > *:first-child {
1822
margin-top: 0;

.storybook/utils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ String.prototype.sentenceCase = function() {
2424
};
2525

2626
// Print attributes based on an object
27-
const listProperties = (obj) =>
27+
export const listProperties = (obj) =>
2828
Object.entries(obj)
2929
.map(set => {
3030
let string = " ";
@@ -90,7 +90,7 @@ export function customTag(obj) {
9090
start += obj.attributes ? listProperties(obj.attributes || {}) : "";
9191
start += !selfClosing.includes(obj.tag) ? ">" : "/>";
9292
}
93-
return `${start}${obj.content}${end}`;
93+
return `${start}${typeof obj.content !== "undefined" ? obj.content || autoContent() : ""}${end}`;
9494
}
9595

9696
const parseMarkup = string => {
@@ -239,11 +239,11 @@ export function autoPropKnobs(properties, bridge) {
239239

240240
// If this is not a required field, add a null option
241241
if (!required) {
242-
opts.null = "-- Not selected --";
242+
opts["-- Not selected --"] = null;
243243
}
244244

245245
// Convert the array into an object
246-
options.map(item => (opts[item] = item));
246+
options.map(item => (opts[item.sentenceCase()] = item));
247247

248248
// If the default value is not defined, use the new null option as the default
249249
if (defaultValue === "" || defaultValue === null) {

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
language: node_js
22
sudo: false
33
node_js:
4-
- "9"
4+
- "12"
55
os:
66
- linux
7-
- osx
87
addons:
98
firefox: latest
109
chrome: stable

CHANGELOG-prerelease.md

Lines changed: 94 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,103 @@
1-
## Prerelease 26 ( TBD )
1+
## Prerelease 34 ( 2019-12-20 )
22

3-
Tag: [v1.0.0-prerelease.26](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.26)
3+
Tag: [v1.0.0-prerelease.34](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.34)
44

5-
- [f18aa6f](https://github.com/patternfly/patternfly-elements/commit/f18aa6ff05e510993baf0f1971a85e2e4715bcc4) Update build tools to support the files array in package.json for each component
6-
- [9d9d41c](https://github.com/patternfly/patternfly-elements/commit/9d9d41c30883674d52cd1c29aa2300829c00693f) Add patternfly project as a dependency so that styles can be extended
7-
- [b13ef5b](https://github.com/patternfly/patternfly-elements/commit/b13ef5b2470770acc01638d4a55c1f90a2859bda) Support table
8-
- [274e35c](https://github.com/patternfly/patternfly-elements/commit/274e35cd4e8a08721888d8fad195b6fe37a525b7) Navigation component
9-
- [6b5db77](https://github.com/patternfly/patternfly-elements/commit/6b5db77c20358499f78b66811b73ea6be309318b) Update documentation
10-
- [d4600dd](https://github.com/patternfly/patternfly-elements/commit/d4600dd1c6e2abfcf8918d06b4eaacb8fb62d208) Add automatic Sass globbing to pfe-sass
11-
- [27a97e1](https://github.com/patternfly/patternfly-elements/commit/27a97e135986de37ede55504a1630bf974de0e0c) pfe-cta: fix functions & IE11 accessibility
5+
- [c2833e3](https://github.com/patternfly/patternfly-elements/commit/c2833e3ef9caa87edbbc56fa22471525d453b7d3) feat: pfe-badge (#625)
6+
- [9d9e001](https://github.com/patternfly/patternfly-elements/commit/9d9e00169fe949f78c31211c5d0a4bf3af1dbe9e) fix: Restore clickability of pfe-cta links
7+
- [](https://github.com/patternfly/patternfly-elements/commit/) chore: Update license from 2019 to 2020
8+
9+
## Prerelease 33 ( 2019-12-18 )
10+
11+
Tag: [v1.0.0-prerelease.33](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.33)
12+
13+
- [5ad398](https://github.com/patternfly/patternfly-elements/commit/5ad3983b9ead73cf2db30fd0bc52aada334c6961) Disclosure accordion variant
14+
- [3ccec6](https://github.com/patternfly/patternfly-elements/commit/3ccec6c82efc52aae67b74072b6c0b8ff1b47f23) Update pfe-cta to include broadcast variables for all variants [#659](https://github.com/patternfly/patternfly-elements/issues/658)
15+
- [](https://github.com/patternfly/patternfly-elements/commit/) chore: Pull polyfills out into separate files for easier parsing/reporting
16+
17+
## Prerelease 32 ( 2019-12-05 )
18+
19+
Tag: [v1.0.0-prerelease.32](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.32)
20+
21+
- [ed919e](https://github.com/patternfly/patternfly-elements/commit/ed919ed15bffc03ee8de4539090c5de075f9ba7d) DE21128 Fix: Add support for theme hooks within surface colors mixin
22+
- [288322](https://github.com/patternfly/patternfly-elements/commit/2883224d927c26af3c7c9b92a9f8a3d2d852edaf) DE21423 Fix: z-index function now correctly prints variable names
23+
- [959281](https://github.com/patternfly/patternfly-elements/commit/95928118095d235695526d5dd5da9688ebc92fef) DE21491 Fix: Add default broadcast variables to pfe-base.css
24+
25+
## Prerelease 31 ( 2019-11-25 )
26+
27+
Tag: [v1.0.0-prerelease.31](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.31)
28+
29+
- [cdcdddf](https://github.com/patternfly/patternfly-elements/commit/cdcdddfa6858953727a3b6d7dcb9add7a61adf93) fix: Bring back pfe-cta hover animation effect [#624](https://github.com/patternfly/patternfly-elements/pull/624)
30+
- [32b138e](https://github.com/patternfly/patternfly-elements/commit/32b138e64223031fd70ed2e525ee98cd5bb7f954) fix: Update Travis tests
31+
- [67fa1fb](https://github.com/patternfly/patternfly-elements/commit/67fa1fb3f29ec3e48a6d0767b6c08eb008e56655) fix: pfe-navigation mobile login/language links working [#620](https://github.com/patternfly/patternfly-elements/pull/620)
32+
- [4ebcbcc](https://github.com/patternfly/patternfly-elements/commit/4ebcbcccaf50247c27a242a944dd4a5a654aeb80) fix: pfe-navigation add styles for when JavaScript does not load [#600](https://github.com/patternfly/patternfly-elements/pull/600))
33+
- [27ef3ec](https://github.com/patternfly/patternfly-elements/commit/27ef3ec08371ec32c9a9376904163ef48148affa) feat: Updating broadcast and how variables are applied [#392](https://github.com/patternfly/patternfly-elements/pull/392)
34+
- [a78ea1f](https://github.com/patternfly/patternfly-elements/commit/a78ea1fc5e114856ede20e459d35875697410b56) fix: Speed up Travis tests [#621](https://github.com/patternfly/patternfly-elements/issues/621)
35+
- [f144b6f](https://github.com/patternfly/patternfly-elements/commit/f144b6f33dd6a8b615ac2a63cec6b29f3bf70d32) feat: pfe-select component [#553](https://github.com/patternfly/patternfly-elements/pull/553)
36+
37+
38+
## Prerelease 30 ( 2019-11-08 )
39+
40+
Tag: [v1.0.0-prerelease.30](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.30)
41+
42+
- [a666fc4](https://github.com/patternfly/patternfly-elements/commit/a666fc4f8e6e9669ee849d01d11ca77798824cc7) pfe-band layout rendering fix for bug in IE and Edge (#470)
43+
- [2143c84](https://github.com/patternfly/patternfly-elements/commit/2143c84d207076c0c8016c960d6edd447e4048eb) feat: add align attribute to pass down to tabs on render (#610)
44+
- [392399b](https://github.com/patternfly/patternfly-elements/commit/392399b3eb240290e67873a51122459985dbbe7f) fix: pfe-cta svgs removed from tab order in ie11
45+
- [567523a](https://github.com/patternfly/patternfly-elements/commit/567523aeac3504d2d67b922b1f1e4fe51a122a05) docs: Fix hugo nav scroll issue (#612)
46+
- [94ff217](https://github.com/patternfly/patternfly-elements/commit/94ff21768e3b1a8b90e284059f322e091c2d56ae) fix: pfe-content-set: wrapping the observer reconnect in a setTimeout #611
47+
- [94ff217](https://github.com/patternfly/patternfly-elements/commit/94ff21768e3b1a8b90e284059f322e091c2d56ae) fix: ignore compiled assets when determining version bumps #613
48+
- [0537a54](https://github.com/patternfly/patternfly-elements/commit/0537a54c5b02f99c0b53c9199223281ded99062f) chore: making pfe-band public
49+
50+
51+
## Prerelease 29 ( 2019-11-04 )
52+
53+
Tag: [v1.0.0-prerelease.29](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.29)
54+
55+
- [5bef4ed6](https://github.com/patternfly/patternfly-elements/commit/5bef4ed6b9f47412361cb8687f0b4618069a49ea) fix: pfe-card's published package now includes the intended assets #605
56+
- [5f049bf](https://github.com/patternfly/patternfly-elements/commit/5f049bfa4f9595819f704ff14bd7e609c32d796a) fix: updating the location of the toast file in the story #606
57+
- [99fce5d](https://github.com/patternfly/patternfly-elements/commit/99fce5d8fce6f08c901e3ce2398a572d0ae8b6d5) fix: updating pfe-layouts package.json for distribution fixes #607
58+
- [5f049bf](https://github.com/patternfly/patternfly-elements/commit/5f049bfa4f9595819f704ff14bd7e609c32d796a) fix: updating the location of the toast file in the story #606
59+
- [260c54c](https://github.com/patternfly/patternfly-elements/commit/260c54c3206972bf6f8b954c88a3728c81ab4817) fix: updating lerna.json ignoreChanges
60+
61+
## Prerelease 28 ( 2019-11-04 )
62+
63+
Tag: [v1.0.0-prerelease.28](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.28)
64+
65+
- [732ca3e](https://github.com/patternfly/patternfly-elements/commit/732ca3e6b3a5ba5756bcdd9696c05e7b1f9ed8be) fix: adding a mutation observer to pfe-content-set so it works in Angular
66+
- [5ca613d](https://github.com/patternfly/patternfly-elements/commit/5ca613d255f337abf84768fa1b965a52c785ac50) feat: adding a schema to pfe-icon-panel #572
67+
- [79614bc](https://github.com/patternfly/patternfly-elements/commit/79614bca9d3158b2c367251b1b17af6666894e27) fix: pfe-card cta alignment #560
68+
- [5800171](https://github.com/patternfly/patternfly-elements/commit/5800171f9f6afc95f832a01bce7f4eeb5c6717d7) fix: set pfe-band to private, until frameworks + ie11 support (#589)
69+
- [a4b2c27](https://github.com/patternfly/patternfly-elements/commit/a4b2c2751840265831329729ed577651b7099388) fix: build tasks and packages to represent new dist architecture
70+
- [5103c95](https://github.com/patternfly/patternfly-elements/commit/5103c950d8d0df1769ffe2291a46f1c867dc0b8a) feat: pfe-navigation style updates
71+
- [6ddbcff](https://github.com/patternfly/patternfly-elements/commit/6ddbcffa50bb277a3e48c7b729becd1db646425e) fix: pfe-tabs in IE11
72+
- [782f8e9](https://github.com/patternfly/patternfly-elements/commit/782f8e9ec9cf1e1961acd6bb9bc406d715837706) fix: updating pfe-card story so image overflow works #599
73+
- [f111593](https://github.com/patternfly/patternfly-elements/commit/f111593805390b1395c284d5905a2e530f829e01) fix: pfe-icon stretch
74+
- [b2a099d](https://github.com/patternfly/patternfly-elements/commit/b2a099d0fa1cb1bed8cc7d054ffa1138613e4408) fix: pfelement compilation of css assets
75+
- [d16ab0c](https://github.com/patternfly/patternfly-elements/commit/d16ab0ce81268cd32df69bb168dc7e32118a9912) feat: pfe-toast component
76+
77+
## Prerelease 27 ( 2019-10-25 )
78+
79+
Tag: [v1.0.0-prerelease.27](https://github.com/patternfly/patternfly-elements/releases/tag/v1.0.0-prerelease.27)
80+
81+
- [f18aa6f](https://github.com/patternfly/patternfly-elements/commit/f18aa6ff05e510993baf0f1971a85e2e4715bcc4) fix: Update build tools to support the files array in package.json for each component
82+
- [9d9d41c](https://github.com/patternfly/patternfly-elements/commit/9d9d41c30883674d52cd1c29aa2300829c00693f) feat: Add patternfly project as a dependency so that styles can be extended
83+
- [b13ef5b](https://github.com/patternfly/patternfly-elements/commit/b13ef5b2470770acc01638d4a55c1f90a2859bda) doc: Support table
84+
- [274e35c](https://github.com/patternfly/patternfly-elements/commit/274e35cd4e8a08721888d8fad195b6fe37a525b7) feat: Navigation component
85+
- [6b5db77](https://github.com/patternfly/patternfly-elements/commit/6b5db77c20358499f78b66811b73ea6be309318b) doc: Update documentation
86+
- [d4600dd](https://github.com/patternfly/patternfly-elements/commit/d4600dd1c6e2abfcf8918d06b4eaacb8fb62d208) feat: Add automatic Sass globbing to pfe-sass
87+
- [27a97e1](https://github.com/patternfly/patternfly-elements/commit/27a97e135986de37ede55504a1630bf974de0e0c) fix: pfe-cta - functions & IE11 accessibility
1288
- [9a39ae3](https://github.com/patternfly/patternfly-elements/commit/9a39ae3b7d0b8d129a3aea3b58e71dab5013c721) fix: Adding object-fit to resolve image distortion in cards, #417
1389
- [980203b](https://github.com/patternfly/patternfly-elements/commit/980203b2768d1d9d8813f386bb0f0bf37d3732ab) feat: Upgrade to latest version of storybook (#366)
1490
- [ab5bc0e](https://github.com/patternfly/patternfly-elements/commit/ab5bc0e66b1e0f2f4ba180ff80d24b84d0db3260) feat: added sm md and xl sizes for pfe-progress-indicator (#575)
1591
- [fc51ba](https://github.com/patternfly/patternfly-elements/commit/fc51baf1cb4313ca117cc505ba9c0e99dd44d0e9) feat: Add pfe-number schema (#576)
16-
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: pfe-card: storybook issue with incorrect attribute (#573)
17-
- []() Upgrade to latest version of storybook (#366)
18-
- [](https://github.com/patternfly/patternfly-elements/commit/) pfe-datetime: adding a json schema
19-
- [](https://github.com/patternfly/patternfly-elements/commit/) pfe-icon-panel: maintain icon height in flex display
92+
- [19a5975](https://github.com/patternfly/patternfly-elements/commit/19a5975c6e5e710e8e36e22384bb0125ab52059c) fix: pfe-card: storybook issue with incorrect attribute (#573)
93+
- [f3bf2b2](https://github.com/patternfly/patternfly-elements/commit/f3bf2b2ea82b61ad80f59cf1b2dca3f74c58e920) fix: making pfe-number compatible with angular and IE11 (#570)
94+
- [c01a97f](https://github.com/patternfly/patternfly-elements/commit/c01a97f87f3ca84344842c75b9b60f50a6fb6f3f) pfe-datetime: adding a json schema
95+
- [93c5e99](https://github.com/patternfly/patternfly-elements/commit/93c5e99428fc57514ef4571caacb1dba199f5303) pfe-icon-panel: maintain icon height in flex display
96+
- [d2b16b8](https://github.com/patternfly/patternfly-elements/commit/d2b16b806327bf99e09ca4e7ed0d4aeeeaa37a90) Add larger size to health-index
97+
- [a77f5ff](https://github.com/patternfly/patternfly-elements/commit/a77f5ffb6066a6be4778f48ddec05b6759e219ff) feat: compile assets to a dist directory
98+
- [1f9ec10](https://github.com/patternfly/patternfly-elements/commit/1f9ec10488a4a879d230705c2ea3d783d2df45f6) feat: pfe-cta add wind variant styles
99+
- [a162a43](https://github.com/patternfly/patternfly-elements/commit/a162a431923d037bf33a8ba0ef77edd9d059a39c) fix: bug in pfe-tab-panel
100+
20101

21102
## Prerelease 25 ( 2019-09-10 )
22103

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2019 Red Hat, Inc.
1+
Copyright 2020 Red Hat, Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy
44
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ _Note: You will need to use [Node](https://nodejs.org/en/) v.7 or higher._
3434
Though we have tested and verified general usability within these frameworks, PFE makes no guarantees about compatibility within specific sites & applications. Please test accordingly. For more details, check out the [official status card per component](https://github.com/patternfly/patternfly-elements/issues?q=is%3Aopen+is%3Aissue+label%3A%22status+tracking+only%22) or visit the [status page on the documentation site](https://patternfly.github.io/patternfly-elements/getting-started/component-status/).
3535

3636

37+
## Stay informed
38+
39+
Sign up for the for the [active project participation email list](https://www.redhat.com/mailman/listinfo/patternfly-elements-contribute) and/or the [informed email list](https://www.redhat.com/mailman/listinfo/patternfly-elements-announce).
40+
41+
You can also participate in discussions on [patternfly.slack.com](https://patternfly.slack.com) in the #patternfly-elements channel.
3742

3843
---
3944

docs/assets/pfe-base-sass/mixins/_mixins.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
}
8181
// scss-lint:disable ImportantRule
8282
@mixin pfe-no-print-background {
83-
@include print-media {
83+
@include pfe-print-media {
8484
background-color: white !important;
8585
background-image: none !important;
8686
box-shadow: none !important;

docs/assets/sass/pfelements.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ main {
523523
}
524524

525525
.inner-toc {
526-
position: sticky;
526+
//position: sticky; The nav is too long for this
527527
top: 20px;
528528
}
529529

docs/content/develop/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ Before getting started, it's important to note that because this is a library, e
2424
- If it is a `content` component, then its slots and inputs should focus largely on typography. These tend to be heavier on styles than markup or functionality. Examples include: `pfe-header`
2525
- If it is a `container` component, then it should focus on creating sections in which components can be placed. These will handle surface colors, padding, some layout, but no typography styles. Examples include: `pfe-card`, `pfe-band`
2626
- If it is a `combo` component, then it should not contain any styles of its own (exception: you might need to set the display value of the host) but rather, it will pull together other components into a set that is logical for content editors or developers. These components can also make decisions about the way the children components are laid out or which components are called based on built-in logic for that combo.
27-
3. Components should be context aware, if possible
28-
- `Content` components should be equipped with styles for the `on="dark"` attribute, so that they can be used on both light and dark backgrounds.
27+
3. Components should be context aware, if possible.
28+
- `Content` components should be equipped with styles for the `on="dark"` attribute, so that they can be used on both light and dark backgrounds.
2929
4. Framework agnostic
3030
- A PatternFly Element should "just work" when you drop it onto any page (provided the proper polyfills are there). It should have ALL the styles it needs, when coupled with a PFE Theme.
3131

0 commit comments

Comments
 (0)