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.2.0 #961

Merged
merged 24 commits into from
Nov 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
4a32cd2
docs: Remove deprecated 'homebrew-php' package, migrated into 'homebr…
Nov 6, 2018
37a7cf7
docs: Replace curly quotes with straight quotes in bash code blocks
Nov 7, 2018
d32bc2e
feat: update build process to automatically skip over the check for a…
bolt-bot Nov 9, 2018
928e7b6
refactor: update existing components rendering with HyperHTML to swit…
bolt-bot Nov 2, 2018
c6322a7
fix: update button component observer to always make sure a mutation …
bolt-bot Nov 2, 2018
8ae50a2
port over upstream changes made in https://github.com/bolt-design-sys…
bolt-bot Nov 2, 2018
87e9545
refactor: update bolt core polyfills based on new reqs using lithtml
bolt-bot Nov 2, 2018
0769a68
refactor: remove HyperHTML renderer superseded by LitHTML
bolt-bot Nov 2, 2018
1497841
feat: add context provider / subscriber pattern to Bolt core. Allows …
bolt-bot Nov 10, 2018
96cf063
chore: add array.find core-js polyfill needed for IE 11
bolt-bot Nov 10, 2018
9a4195c
chore: fix prettier issues
bolt-bot Nov 10, 2018
6ecfa78
fix: update dropdown component to use lit-html render method
bolt-bot Nov 13, 2018
79d655c
fix: update Pattern Lab head include to use a modified version of loa…
bolt-bot Nov 13, 2018
7fcf24c
chore: update yarn.lock + fix eslint and prettier issues with latest …
bolt-bot Nov 13, 2018
4995ce3
Merge branch 'master' of https://github.com/bolt-design-system/bolt i…
Nov 14, 2018
9c5b895
docs: add comment about restarting iTerm instance before composer ins…
Nov 14, 2018
be028a5
chore: update yarn.lock
Nov 14, 2018
55137a4
Merge pull request #951 from bolt-design-system/feature/lit-html-rend…
sghoweri Nov 16, 2018
73f6fd1
Merge pull request #949 from bolt-design-system/feature/skip-version-…
sghoweri Nov 18, 2018
fead0b1
Merge pull request #954 from bolt-design-system/task/update-guides
sghoweri Nov 18, 2018
01aaeea
chore: update docs to swap out references of HyperHTML with Lit-HTML
bolt-bot Nov 18, 2018
f18ccf8
refactor: update docs site version selector to render using Lit-HTML …
bolt-bot Nov 18, 2018
6afae22
chore: update yarn.lock
bolt-bot Nov 18, 2018
48facc6
chore: remove yarn.lock files not auto-updated with yarn workspace co…
bolt-bot Nov 18, 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
36 changes: 23 additions & 13 deletions apps/bolt-site/components/bolt-select/bolt-select.standalone.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@

import { props, define } from '@bolt/core/utils';
import Choices from 'choices.js/assets/scripts/dist/choices.js';
import { wire, withHyperHtml } from '@bolt/core/renderers';
import {
withLitHtml,
html,
// render,
} from '@bolt/core/renderers/renderer-lit-html';
import { filterObject, isDefined, createSelectOptionData } from './utils';

import styles from './bolt-select.scss';

@define
class BoltSelect extends withHyperHtml() {
class BoltSelect extends withLitHtml() {
static is = 'bolt-select';

static props = {
Expand Down Expand Up @@ -201,31 +205,37 @@ class BoltSelect extends withHyperHtml() {
switch (this.type) {
case 'single':
default:
this.element = wire()`
<select name=${this.props.name || null} class="js-bolt-select-root">
this.element = html`
<select name="${this.props.name || null}" class="js-bolt-select-root">
${this.value ? createSelectOptions(this.value) : null}
</select>
`;
break;
case 'multiple':
this.element = wire()`
<select multiple name=${this.props.name ||
null} class="js-bolt-select-root">
this.element = html`
<select
multiple
name="${this.props.name || null}"
class="js-bolt-select-root"
>
${this.value ? createSelectOptions(this.value) : null}
</select>
`;
break;
case 'text':
this.element = wire()`
<input type="text" value=${this.value} name=${this.props.name ||
null} class="js-bolt-select-root" />
this.element = html`
<input
type="text"
value="${this.value}"
name="${this.props.name || null}"
class="js-bolt-select-root"
/>
`;
break;
}

return this.html`
${this.addStyles([styles])}
${this.element}
return html`
${this.addStyles([styles])} ${this.element}
`;
}

Expand Down
Loading