Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bolt Release v2.0.0 #883

Merged
merged 93 commits into from
Sep 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
93 commits
Select commit Hold shift + click to select a range
1efe02f
fix: remove CSS and standardize props
mikemai2awesome Aug 16, 2018
9625d58
chore: remove quotes in schema
mikemai2awesome Aug 16, 2018
d3a7714
Merge branch 'master' into feature/bds-311-share-component-refactor
mikemai2awesome Aug 22, 2018
e225f3f
Merge branch 'feature/bolt-list' into feature/bds-311-share-component…
mikemai2awesome Aug 22, 2018
b26a991
styles: share links
mikemai2awesome Aug 23, 2018
e306033
docs: clean up doc pages
mikemai2awesome Aug 23, 2018
e272718
Merge branch 'master' into feature/bds-311-share-component-refactor
mikemai2awesome Aug 23, 2018
1f42fd0
fix: update js
mikemai2awesome Aug 23, 2018
4be80f0
fix: remove certain theme colors
mikemai2awesome Aug 23, 2018
29a09b6
fix: inline attribute
mikemai2awesome Aug 24, 2018
ae6ae7c
Merge branch 'master' into feature/bds-311-share-component-refactor
mikemai2awesome Aug 24, 2018
a787d29
fix: create variables to merge with
mikemai2awesome Aug 24, 2018
8109cca
Merge branch 'master' into feature/bds-311-share-component-refactor
mikemai2awesome Aug 27, 2018
3ff5a54
chore: set up innerattributes
mikemai2awesome Aug 27, 2018
c1b0bd2
fix: background animation transform fix
mikemai2awesome Aug 27, 2018
0dbb888
fix: deprecate copyToClipboard and standardize variable names
mikemai2awesome Aug 29, 2018
46ad1d1
fix: make inline the default
mikemai2awesome Aug 29, 2018
75579c3
styles: convert to small size
mikemai2awesome Aug 30, 2018
1629b0a
fix: boolean statement
mikemai2awesome Aug 30, 2018
cfb672a
fix: boolean statement default
remydenton Aug 30, 2018
d5146e5
styles: adding size and opacity options
mikemai2awesome Sep 18, 2018
f514843
styles: size option updates
mikemai2awesome Sep 19, 2018
42d6ba1
docs: adding theming demos
mikemai2awesome Sep 19, 2018
11ebbec
docs: improve theme demos
mikemai2awesome Sep 19, 2018
b6df589
BDS-569 Remove redundant default variables
remydenton Sep 19, 2018
870918d
Merge branch 'master' into feature/bds-311-share-component-refactor
mikemai2awesome Sep 19, 2018
02e3733
Merge remote-tracking branch 'origin/release/2.x' into feature/bds-31…
mikemai2awesome Sep 19, 2018
e1c42d2
chore: convert label color to use new theming system
mikemai2awesome Sep 19, 2018
28b73be
BDS-569 Fix attributes usage
remydenton Sep 19, 2018
c36ac9c
BDS-569 Remove redundant js class in favor of attribute selector
remydenton Sep 19, 2018
ba8117d
BDS-569 Remove unused target attribute and urls
remydenton Sep 19, 2018
d361dd7
BDS-569 Rework schema for copy to clipboard
remydenton Sep 20, 2018
2c72d12
fix: Fix clipboard schema required properties
remydenton Sep 20, 2018
4488590
feat: Set data-clipboard-text attribute internally based on 'url' param
remydenton Sep 20, 2018
28dafbb
fix: Remove js that disables links to prepare for using button instead
remydenton Sep 20, 2018
4c58cd4
styles: change trigger to use semantic button markup
mikemai2awesome Sep 20, 2018
a4811ad
chore: clarify comments
mikemai2awesome Sep 20, 2018
79330d2
Merge commit 'fc02d98550aa9b95f54a2ff042b9b9ee39900c54' into feature/…
remydenton Sep 21, 2018
5226955
chore: remove medium theme
mikemai2awesome Sep 21, 2018
aac8b63
refactor: move existing band component examples to new __examples__ f…
sghoweri Sep 21, 2018
e9d1ba5
docs: add new band component variation example used to achieve new ba…
sghoweri Sep 21, 2018
0b461bc
refactor: update new band component to reduce default internal spacin…
sghoweri Sep 21, 2018
81d68c4
refactor: Add custom prefix to spinner, trigger, and confirmation
remydenton Sep 24, 2018
7d3aea0
refactor: Deprecate copiedText and iconSize properties
remydenton Sep 24, 2018
4e7384c
refactor: Deprecate 'url' param in favor of 'text_to_copy'
remydenton Sep 24, 2018
3d9ac84
refactor: Deprecate 'text' property in favor of 'trigger_text'
remydenton Sep 24, 2018
182accf
refactor: Refactor "spinner" properties as "transition"
remydenton Sep 24, 2018
17e12f5
Merge pull request #882 from bolt-design-system/v2
sghoweri Sep 24, 2018
8a427f4
fix: remove margin overflow
mikemai2awesome Sep 24, 2018
2930e78
Merge pull request #879 from bolt-design-system/feature/BDS-569-refac…
remydenton Sep 24, 2018
0e09913
refactor: consolidate share component Pattern Lab demos to reuse in n…
sghoweri Sep 24, 2018
e97d4ba
chore: convert to new copy to clipboard
mikemai2awesome Sep 24, 2018
fa566ec
docs: update main README.md
sghoweri Sep 25, 2018
2326bcf
chore: tweak code formatting in README.md
sghoweri Sep 25, 2018
3ad30f6
chore: remove link from main H1 in lieu of docs link right below
sghoweri Sep 25, 2018
72f4ea0
chore: removing button version and other code clean up
mikemai2awesome Sep 25, 2018
9bcabb5
chore: schema comments
mikemai2awesome Sep 25, 2018
b860c41
fix: Fix icon color in Edge
remydenton Sep 25, 2018
95b1856
Merge branch 'release/2.x' back into master
remydenton Sep 25, 2018
6a7aff7
fix: more clean up
mikemai2awesome Sep 25, 2018
945293e
fix: Remove invalid color CSS
remydenton Sep 26, 2018
45262a9
Merge branch 'master' into feature/bds-311-share-component-refactor
remydenton Sep 26, 2018
833b89f
Merge pull request #884 from bolt-design-system/fix/bolt-list-overflo…
remydenton Sep 26, 2018
a83d882
Merge pull request #885 from bolt-design-system/fix/WWWD-2624-WWWD-26…
remydenton Sep 26, 2018
021ce6d
Merge pull request #848 from bolt-design-system/feature/bds-311-share…
remydenton Sep 26, 2018
1c4c461
docs: add README and package.json for new Grid component
sghoweri Sep 26, 2018
e27d60c
chore: wire up new grid component to Pattern Lab and docs sites
sghoweri Sep 26, 2018
c456d5d
refactor: revert adding band component examples; 2nd schema for bands…
sghoweri Sep 26, 2018
6c2f2ae
chore: add new grid component schemas
sghoweri Sep 26, 2018
b3aab34
feat: add new example of grid component usage to Pattern Lab; 1st pas…
sghoweri Sep 26, 2018
4ec96c6
refactor: update band component with new grid component nested inside…
sghoweri Sep 26, 2018
7f85e41
docs: add new pattern lab examples of the upgrade band component taki…
sghoweri Sep 26, 2018
ee83857
chore: fixing merge conflicts
sghoweri Sep 26, 2018
b2dfbdb
chore: updating share demo + adding partial support for multiple sche…
sghoweri Sep 26, 2018
eeb68bd
fix: updating example to fix schema validation errors
sghoweri Sep 26, 2018
b1a3148
chore: update band examples with new share component options; add sta…
sghoweri Sep 26, 2018
279de78
chore: remove old link theme colors -- no longer getting used
sghoweri Sep 26, 2018
7e7c75f
fix: update docs for new grid + updated band components
sghoweri Sep 26, 2018
f315ddc
fix: adding transition to links
mikemai2awesome Sep 26, 2018
2fcd351
chore: fix schema prop table display to support nested ref references…
sghoweri Sep 26, 2018
1bbbec7
fix: remove inline prop from share component examples
sghoweri Sep 26, 2018
ef39f9f
Merge pull request #887 from bolt-design-system/fix/bolt-share-link-t…
sghoweri Sep 26, 2018
2ddd238
fix: adding missing dependencies to the docs site -- fixes issue that…
sghoweri Sep 26, 2018
485ff8c
Merge pull request #886 from bolt-design-system/feature/css-grid-comp…
sghoweri Sep 26, 2018
dc4964c
chore: remove grid_area prop from grid-item schema
sghoweri Sep 27, 2018
eb3f0a5
chore: remove align and valign props from grid component schema
sghoweri Sep 27, 2018
6392369
chore: remove align and valign props from grid component schema
sghoweri Sep 27, 2018
04326af
chore: update the new grid component’s schema to reference the grid-i…
sghoweri Sep 27, 2018
0ffb2b6
chore: remove whitespace
sghoweri Sep 27, 2018
95f2255
Create 00-grid-docs.twig
sghoweri Sep 27, 2018
58d627a
Update package.json
sghoweri Sep 27, 2018
957d644
fix: misc add missing row_gutter prop to band component; fix default …
sghoweri Sep 27, 2018
844ae01
Merge pull request #888 from bolt-design-system/feature/update-grid-s…
sghoweri Sep 27, 2018
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
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,25 @@
[![Known Vulnerabilities](https://snyk.io/test/github/pega-digital/bolt/badge.svg)](https://snyk.io/test/github/pega-digital/bolt)
<h1>
<img align="left" width="40" src="https://raw.githubusercontent.com/bolt-design-system/bolt/master/apps/bolt-site/images/bolt-logo.png">
Bolt Design System
</h1>

# Bolt Design System
**Check out our new [Bolt Docs site!](https://boltdesignsystem.com)**

**Please see the [Bolt Docs here](https://bolt-design-system.com)**

## Quick Start Setup

*If this doesn't work, please check the actual docs linked above*
## ~60 Second Quick Start Guide

```bash
yarn install
git clone https://github.com/bolt-design-system/bolt.git ~/sites/bolt
cd ~/sites/bolt
npm run setup
cd apps/pattern-lab
npm start
```

### Big Thanks
> *Don't already have Homebrew, Yarn, Composer and NPM setup on your local machine? Need a little help getting started? Check out our [in-depth getting started guide](https://boltdesignsystem.com/docs/guides/preparing-your-environment.html) to help get you up and running in no time!*

### Huge Thanks!

Cross-browser Testing Platform and Open Source <3 Provided by [Sauce Labs][homepage]
Cross-browser Testing Platform and Open Source ❤️ Provided by [Sauce Labs][homepage]

[homepage]: https://saucelabs.com
1 change: 1 addition & 0 deletions apps/bolt-site/.boltrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const config = {
'@bolt/components-placeholder',
'@bolt/components-action-blocks',
'@bolt/components-dropdown',
'@bolt/components-grid',
'@bolt/components-background',
'@bolt/components-background-shapes',
'@bolt/components-band',
Expand Down
20 changes: 17 additions & 3 deletions apps/bolt-site/templates/_site-head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,22 @@
<meta name="msapplication-config" content="/browserconfig.xml?v=LbyzAXRqNz">
<meta name="theme-color" content="#1f2656">

<!-- Default OG Tag examples (related to Bolt Share Component) -->
{% include "@bolt-components-share/src/_share-meta-example.twig" %}
<!-- OG Tags -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Bolt Design System: Page Title" />
<meta property="og:description" content="Sample description" />
<meta property="og:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="480" />
<meta property="og:image:height" content="480" />
<meta property="og:url" content="https://boltdesignsystem.com/some-page-title-here" />
<meta property="og:site_name" content="Bolt Design System" />
<!-- Twitter specific tags -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Bolt Design System: Page Title" />
<meta name="twitter:description" content="Sample description" />
<meta name="twitter:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta name="twitter:site" content="@pega" />

<link rel="stylesheet" href="{{ assets["bolt-global.css"] | default("/build/bolt-global.css") }}" media="all" />

Expand All @@ -54,4 +68,4 @@
</script>

</head>
<body class="c-bds-layout c-bolt-site {% if currentUrl == 'index.html' %} t-bolt-xdark {% endif %} c-bds-layout--{{ urlChunks | length >= 2 ? urlChunks|first : 'parent' }} {{ hasSidebar ? 'c-bds-layout--has-sidebar' : ''}}">
<body class="c-bds-layout c-bolt-site {% if currentUrl == 'index.html' %} t-bolt-xdark {% endif %} c-bds-layout--{{ urlChunks | length >= 2 ? urlChunks|first : 'parent' }} {{ hasSidebar ? 'c-bds-layout--has-sidebar' : ''}}">
1 change: 1 addition & 0 deletions apps/pattern-lab/.boltrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ const config = {
'@bolt/components-tooltip',
'@bolt/components-unordered-list',
'@bolt/components-video',
'@bolt/components-grid',
/**
* note: resolving these paths isn't typically required when
* the .boltrc config is run through the bolt CLI tool (ie.
Expand Down
1 change: 1 addition & 0 deletions apps/pattern-lab/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
"@bolt/components-tooltip": "^2.0.0-beta.3",
"@bolt/components-unordered-list": "^2.0.0-beta.3",
"@bolt/components-video": "^2.0.0-beta.3",
"@bolt/components-grid": "0.0.0",
"@bolt/core": "^2.0.0-beta.3",
"@bolt/global": "^2.0.0-beta.3",
"@bolt/internal-schema-form": "^2.0.0-beta.3",
Expand Down
4 changes: 2 additions & 2 deletions apps/pattern-lab/src/_includes/utils/schema-docs.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

{% if prop.enum %}{{ enum }}{% endif -%}

{% if prop.type == 'object' and prop.properties or prop.ref %}
{% if (prop.type == 'object' or prop.type == 'array') and prop.properties or prop.ref %}
{% if prop.ref %}
{% set reference = get_data(prop.ref).properties %}
<details>
Expand Down Expand Up @@ -68,7 +68,7 @@
{% macro object(properties, isRef) %}
{% import _self as macros %}
{% set isRef = isRef|default(false) %}
<ul>
<ul class="c-bolt-docs-list__child">
{% for key, prop in properties %}
<li>
<code>{{ key }}</code>
Expand Down
18 changes: 16 additions & 2 deletions apps/pattern-lab/src/_meta/_00-head.twig
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,22 @@
<meta name="msapplication-config" content="/browserconfig.xml?v=LbyzAXRqNz">
<meta name="theme-color" content="#1f2656">

<!-- Default OG Tag examples (related to Bolt Share Component) -->
{% include "@bolt-components-share/src/_share-meta-example.twig" %}
<!-- OG Tags -->
<meta property="og:type" content="article" />
<meta property="og:title" content="Bolt Design System: Page Title" />
<meta property="og:description" content="Sample description" />
<meta property="og:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta property="og:image:type" content="image/jpeg" />
<meta property="og:image:width" content="480" />
<meta property="og:image:height" content="480" />
<meta property="og:url" content="https://boltdesignsystem.com/some-page-title-here" />
<meta property="og:site_name" content="Bolt Design System" />
<!-- Twitter specific tags -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:title" content="Bolt Design System: Page Title" />
<meta name="twitter:description" content="Sample description" />
<meta name="twitter:image" content="https://boltdesignsystem.com/images/500x500-480.jpg" />
<meta name="twitter:site" content="@pega" />

<!-- async load PL's CSS -->
<link rel="preload" href="/pattern-lab/styleguide/css/pattern-lab.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{% embed "@bolt-components-band/band.twig" with {
size: "medium",
theme: "dark",
items: [
{
position: {
align: "end",
valign: "center",
row_start: 1,
column_start: 1,
column_end: 12,
},
content: include("@pl/_share-component-for-event-example.twig"),
},
]
} only %}
{% block band_content %}
{% include "@pl/_band-for-event-example.twig" only %}

{% include "@bolt-components-headline/text.twig" with {
text: "^ via Twig embed, separate <code>content</code> field, uses <code>band_content</code> Twig block.",
tag: "p",
attributes: {
class: [
"u-bolt-margin-top-medium"
]
}
} only %}

{% endblock %}
{% endembed %}


Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% include "@bolt-components-band/band.twig" with {
size: "medium",
theme: "dark",
background: {
opacity: "heavy",
fill: "color",
focalPoint: {
vertical: "center",
horizontal: "center"
},
contentItems: [
{
pattern: "image",
src: "/pattern-lab/images/content/backgrounds/background-short-1.jpg",
lazyload: false
}
]
},
content: [
include("@pl/_band-for-event-example.twig"),
include("@bolt-components-headline/text.twig", {
text: "^ via Twig Include, items array separate from <code>content</code> field",
tag: "p",
attributes: {
class: [
"u-bolt-margin-top-medium"
]
}
}),
] | join(""),
items: [
{
position: {
align: "end",
valign: "center",
row_start: 1,
column_start: 1,
column_end: 12,
},
content: include("@pl/_share-component-for-event-example.twig", {
size: "small",
opacity: 80
}),
},
]
} only %}



Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{% include "@bolt-components-band/band.twig" with {
size: "medium",
theme: "dark",
items: [
{
position: {
align: "end",
valign: "center",
row_start: 1,
row_end: 1,
column_start: 1,
column_end: 12,
},
content: include("@pl/_share-component-for-event-example.twig"),
},
[
include("@pl/_band-for-event-example.twig"),
include("@bolt-components-headline/text.twig", {
text: "^ via Twig Include, combined content into single items array, doesn't use <code>content</code> field",
tag: "p",
attributes: {
class: [
"u-bolt-margin-top-medium"
]
}
}),
] | join("")
]
} only %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{% grid "o-bolt-grid--flex o-bolt-grid--large o-bolt-grid--middle o-bolt-grid--matrix" %}
{% cell 'u-bolt-width-1/1 u-bolt-width-2/3@medium' %}
{% include "@bolt/headline.twig" with {
text: "Pega Events",
size: "xsmall",
tag: "span",
url: "/events",
icon: {
name: "arrow-left",
position: "before"
}
} only %}

{% include "@bolt/headline.twig" with {
text: "Customer Engagement Summit Detroit",
size: "xxxlarge",
tag: "h1",
} only %}

{% include "@bolt/subheadline.twig" with {
text: "Hear insights. Make connections. Drive innovation.",
size: "xlarge",
tag: "p",
} only %}

{% include "@bolt-components-list/list.twig" with {
spacing: "small",
display: "inline@xsmall",
items: [
include("@bolt-components-headline/headline.twig", {
text: "January 25, 2018",
size: "large",
tag: "span",
url: "#!",
icon: {
name: "calendar",
position: "before",
size: "medium"
},
}),
include("@bolt-components-headline/headline.twig", {
text: "10:00 AM EST",
size: "large",
tag: "span",
url: "#!",
icon: {
name: "watch",
position: "before",
size: "medium"
}
}),
include("@bolt-components-headline/headline.twig", {
text: "New York, NY",
size: "large",
tag: "span",
url: "#!",
icon: {
name: "map-pin",
position: "before",
size: "medium"
}
}),
]
} only %}
{% endcell %}
{% endgrid %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% include '@bolt-components-share/share.twig' with {
sources: [
{
name: "facebook",
url: "https://www.facebook.com/sharer/sharer.php?u=https://5abd3062df99537b79e29496--bolt-design-system.netlify.com/pattern-lab/patterns/02-components-action-blocks-05-action-blocks/02-components-action-blocks-05-action-blocks.html&amp;src=sdkpreparse"
},
{
name: "twitter",
url: "https://twitter.com/intent/tweet?url=https://bolt-design-system.com&text=Sample%20Share%20Text&via=pega&hashtags=boltDesignSystemRocks!"
},
{
name: "linkedin",
url: "https://www.linkedin.com/shareArticle?url=https://5abd3062df99537b79e29496--bolt-design-system.netlify.com/pattern-lab/patterns/02-components-action-blocks-05-action-blocks/02-components-action-blocks-05-action-blocks.html"
},
{
name: "email",
url: "mailto:?&body=Sample%20Text%20--%20https%3A//bolt-design-system.com"
}
],
copy_to_clipboard: {
text_to_copy: "http://pega.com"
}
} %}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% set usage %}{% verbatim %}
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
url: "http://bolt-design-system.com"
text_to_copy: "http://bolt-design-system.com"
} only %}
{% endverbatim %}{% endset %}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<div style="text-align: center; padding: 3rem;">
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
url: "http://bolt-design-system.com"
text_to_copy: "http://bolt-design-system.com"
} only %}
</div>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "Copy Link #1",
text_to_copy: "http://bolt-design-system.com/#link-1"
} only %}
{% include "@bolt-components-copy-to-clipboard/copy-to-clipboard.twig" with {
trigger_text: "Copy Link #2",
text_to_copy: "http://bolt-design-system.com/#link-2"
} only %}
Loading