kemet-ui 1.0.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1605 -225
- package/dist/components/{kemet-accordion-panel.js → kemet-accordion/kemet-accordion-panel.js} +0 -0
- package/dist/components/{kemet-accordion.js → kemet-accordion/kemet-accordion.js} +0 -0
- package/dist/components/{kemet-badge.js → kemet-badge/kemet-badge.js} +0 -0
- package/dist/components/{kemet-button.js → kemet-button/kemet-button.js} +0 -0
- package/dist/components/kemet-carousel/kemet-carousel-current.js +36 -0
- package/dist/components/kemet-carousel/kemet-carousel-first.js +47 -0
- package/dist/components/kemet-carousel/kemet-carousel-last.js +47 -0
- package/dist/components/kemet-carousel/kemet-carousel-link.js +59 -0
- package/dist/components/kemet-carousel/kemet-carousel-next.js +47 -0
- package/dist/components/kemet-carousel/kemet-carousel-prev.js +47 -0
- package/dist/components/kemet-carousel/kemet-carousel-slide.js +51 -0
- package/dist/components/kemet-carousel/kemet-carousel-total.js +36 -0
- package/dist/components/kemet-carousel/kemet-carousel.js +492 -0
- package/dist/components/{kemet-checkbox.js → kemet-checkbox/kemet-checkbox.js} +0 -0
- package/dist/components/{kemet-combo.js → kemet-combo/kemet-combo.js} +0 -0
- package/dist/components/{kemet-count.js → kemet-count/kemet-count.js} +0 -0
- package/dist/components/{kemet-draggable.js → kemet-draggable/kemet-draggable.js} +0 -0
- package/dist/components/{kemet-drawer.js → kemet-drawer/kemet-drawer.js} +0 -0
- package/dist/components/{kemet-drawer.styles.js → kemet-drawer/kemet-drawer.styles.js} +0 -0
- package/dist/components/kemet-fab/kemet-fab.js +209 -0
- package/dist/components/{kemet-field.js → kemet-field/kemet-field.js} +0 -0
- package/dist/components/{kemet-flipcard-trigger.js → kemet-flipcard/kemet-flipcard-trigger.js} +0 -0
- package/dist/components/{kemet-flipcard.js → kemet-flipcard/kemet-flipcard.js} +0 -0
- package/dist/components/{kemet-icon.js → kemet-icon/kemet-icon.js} +0 -0
- package/dist/components/{kemet-input.js → kemet-input/kemet-input.js} +15 -4
- package/dist/components/{kemet-modal-close.js → kemet-modal/kemet-modal-close.js} +0 -0
- package/dist/components/{kemet-modal.js → kemet-modal/kemet-modal.js} +0 -0
- package/dist/components/{kemet-modal.styles.js → kemet-modal/kemet-modal.styles.js} +0 -0
- package/dist/components/kemet-password/kemet-password.js +278 -0
- package/dist/components/{kemet-popover-close.js → kemet-popover/kemet-popover-close.js} +0 -0
- package/dist/components/{kemet-popover.effects.styles.js → kemet-popover/kemet-popover.effects.styles.js} +0 -0
- package/dist/components/{kemet-popover.js → kemet-popover/kemet-popover.js} +0 -0
- package/dist/components/{kemet-popover.tooltip.styles.js → kemet-popover/kemet-popover.tooltip.styles.js} +0 -0
- package/dist/components/{kemet-radio.js → kemet-radio/kemet-radio.js} +0 -0
- package/dist/components/{kemet-radios.js → kemet-radio/kemet-radios.js} +0 -0
- package/dist/components/{kemet-rotator.js → kemet-rotator/kemet-rotator.js} +0 -0
- package/dist/components/{kemet-scroll-link.js → kemet-scroll-link/kemet-scroll-link.js} +0 -0
- package/dist/components/{kemet-scroll-nav.js → kemet-scroll-nav/kemet-scroll-nav.js} +0 -0
- package/dist/components/{kemet-scroll-snap-paginator.js → kemet-scroll-snap/kemet-scroll-snap-paginator.js} +0 -0
- package/dist/components/{kemet-scroll-snap-slide.js → kemet-scroll-snap/kemet-scroll-snap-slide.js} +0 -0
- package/dist/components/{kemet-scroll-snap.js → kemet-scroll-snap/kemet-scroll-snap.js} +0 -0
- package/dist/components/{kemet-option.js → kemet-select/kemet-option.js} +0 -0
- package/dist/components/{kemet-select.js → kemet-select/kemet-select.js} +0 -0
- package/dist/components/{kemet-svg.js → kemet-svgs/kemet-svg.js} +0 -0
- package/dist/components/{kemet-svgs.js → kemet-svgs/kemet-svgs.js} +0 -0
- package/dist/components/{kemet-tab-panel.js → kemet-tabs/kemet-tab-panel.js} +0 -0
- package/dist/components/{kemet-tab.js → kemet-tabs/kemet-tab.js} +0 -0
- package/dist/components/{kemet-tabs.js → kemet-tabs/kemet-tabs.js} +0 -0
- package/dist/components/{kemet-tabs.styles.js → kemet-tabs/kemet-tabs.styles.js} +0 -0
- package/dist/components/{kemet-textarea.js → kemet-textarea/kemet-textarea.js} +0 -0
- package/dist/components/{kemet-toggle.js → kemet-toggle/kemet-toggle.js} +0 -0
- package/dist/components/kemet-tracker/kemet-tracker-step.js +239 -0
- package/dist/components/kemet-tracker/kemet-tracker.js +76 -0
- package/dist/kemet-components.cjs +1809 -140
- package/dist/kemet-components.js +1805 -141
- package/dist/kemet-components.min.js +574 -87
- package/dist/styles/components/_config.scss +4 -0
- package/dist/styles/{scss/components → components}/accordion.scss +0 -0
- package/dist/styles/{scss/components → components}/drawer.scss +2 -2
- package/dist/styles/{scss/components → components}/modal.scss +0 -0
- package/dist/styles/{scss/components → components}/scrollsnap.scss +0 -0
- package/dist/styles/{scss/core → core}/_config.scss +22 -22
- package/dist/styles/{scss/core → core}/_helpers.scss +7 -3
- package/dist/styles/{scss/core → core}/attributes.scss +0 -0
- package/dist/styles/{scss/core → core}/base.scss +0 -0
- package/dist/styles/{scss/core → core}/layout.scss +0 -0
- package/dist/styles/kemet.components.css +1 -80
- package/dist/styles/kemet.components.css.map +1 -1
- package/dist/styles/{scss/kemet.components.scss → kemet.components.scss} +0 -1
- package/dist/styles/kemet.core.css +1 -1
- package/dist/styles/kemet.core.css.map +1 -1
- package/dist/styles/{scss/kemet.core.scss → kemet.core.scss} +0 -0
- package/dist/utilities/controllers/forms.js +123 -0
- package/package.json +5 -3
- package/dist/styles/scss/components/_config.scss +0 -4
- package/dist/styles/scss/components/carousel.scss +0 -64
package/dist/components/{kemet-accordion-panel.js → kemet-accordion/kemet-accordion-panel.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export class KemetCarouselCurrent extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
`,
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static get properties() {
|
|
15
|
+
return {
|
|
16
|
+
current: {
|
|
17
|
+
type: Number,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
firstUpdated() {
|
|
23
|
+
this.carousel = this.closest('kemet-carousel');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
updated() {
|
|
27
|
+
this.current = this.carousel.index + 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
render() {
|
|
31
|
+
return html`${this.current}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line no-unused-expressions
|
|
36
|
+
customElements.get('kemet-carousel-current') || customElements.define('kemet-carousel-current', KemetCarouselCurrent);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export class KemetCarouselFirst extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([disabled]) {
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
`,
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
reflect: true,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
return html`
|
|
29
|
+
<span tabindex="0" @keyup=${() => this.first()} @click=${() => this.first()}>
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</span>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
first() {
|
|
36
|
+
if (!this.disabled) {
|
|
37
|
+
this.dispatchEvent(new CustomEvent('kemet-carousel-first', {
|
|
38
|
+
bubbles: true,
|
|
39
|
+
composed: true,
|
|
40
|
+
detail: this,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line no-unused-expressions
|
|
47
|
+
customElements.get('kemet-carousel-first') || customElements.define('kemet-carousel-first', KemetCarouselFirst);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export class KemetCarouselLast extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([disabled]) {
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
`,
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
reflect: true,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
return html`
|
|
29
|
+
<span tabindex="0" @keyup=${() => this.last()} @click=${() => this.last()}>
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</span>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
last() {
|
|
36
|
+
if (!this.disabled) {
|
|
37
|
+
this.dispatchEvent(new CustomEvent('kemet-carousel-last', {
|
|
38
|
+
bubbles: true,
|
|
39
|
+
composed: true,
|
|
40
|
+
detail: this,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line no-unused-expressions
|
|
47
|
+
customElements.get('kemet-carousel-last') || customElements.define('kemet-carousel-last', KemetCarouselLast);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default class KemetCarouselLink extends LitElement {
|
|
4
|
+
static get properties() {
|
|
5
|
+
return {
|
|
6
|
+
slide: {
|
|
7
|
+
type: Number,
|
|
8
|
+
reflect: true,
|
|
9
|
+
},
|
|
10
|
+
selected: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
reflect: true,
|
|
13
|
+
},
|
|
14
|
+
disabled: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
reflect: true,
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static get styles() {
|
|
22
|
+
return [
|
|
23
|
+
css`
|
|
24
|
+
:host([selected]) {
|
|
25
|
+
color: var(--kemet-carousel-link-selected-color, var(--kemet-color-primary));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
:host(:not([selected])) {
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:host([disabled]) {
|
|
33
|
+
cursor: not-allowed;
|
|
34
|
+
}
|
|
35
|
+
`,
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
render() {
|
|
40
|
+
return html`
|
|
41
|
+
<span tabindex="0" @keyup=${() => this.changed()} @click=${() => this.changed()}>
|
|
42
|
+
<slot></slot>
|
|
43
|
+
</span>
|
|
44
|
+
`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
changed() {
|
|
48
|
+
if (!this.disabled) {
|
|
49
|
+
this.dispatchEvent(new CustomEvent('kemet-carousel-link', {
|
|
50
|
+
bubbles: true,
|
|
51
|
+
composed: true,
|
|
52
|
+
detail: this,
|
|
53
|
+
}));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line no-unused-expressions
|
|
59
|
+
customElements.get('kemet-carousel-link') || customElements.define('kemet-carousel-link', KemetCarouselLink);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default class KemetCarouselNext extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([disabled]) {
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
`,
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
reflect: true,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
return html`
|
|
29
|
+
<span tabindex="0" @keyup=${() => this.next()} @click=${() => this.next()}>
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</span>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
next() {
|
|
36
|
+
if (!this.disabled) {
|
|
37
|
+
this.dispatchEvent(new CustomEvent('kemet-carousel-next', {
|
|
38
|
+
bubbles: true,
|
|
39
|
+
composed: true,
|
|
40
|
+
detail: this,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line no-unused-expressions
|
|
47
|
+
customElements.get('kemet-carousel-next') || customElements.define('kemet-carousel-next', KemetCarouselNext);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export class KemetCarouselPrev extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
cursor: pointer;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:host([disabled]) {
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
`,
|
|
15
|
+
];
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
disabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
reflect: true,
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
render() {
|
|
28
|
+
return html`
|
|
29
|
+
<span tabindex="0" @keyup=${() => this.prev()} @click=${() => this.prev()}>
|
|
30
|
+
<slot></slot>
|
|
31
|
+
</span>
|
|
32
|
+
`;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
prev() {
|
|
36
|
+
if (!this.disabled) {
|
|
37
|
+
this.dispatchEvent(new CustomEvent('kemet-carousel-prev', {
|
|
38
|
+
bubbles: true,
|
|
39
|
+
composed: true,
|
|
40
|
+
detail: this,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// eslint-disable-next-line no-unused-expressions
|
|
47
|
+
customElements.get('kemet-carousel-prev') || customElements.define('kemet-carousel-prev', KemetCarouselPrev);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export default class KemetCarouselSlide extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host,
|
|
8
|
+
:host *,
|
|
9
|
+
:host *::before,
|
|
10
|
+
*::after {
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
flex: 0 0 auto;
|
|
16
|
+
}
|
|
17
|
+
`,
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
static get properties() {
|
|
22
|
+
return {
|
|
23
|
+
/**
|
|
24
|
+
* Determines if the slide is selected
|
|
25
|
+
*/
|
|
26
|
+
selected: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
reflect: true,
|
|
29
|
+
},
|
|
30
|
+
'aria-hidden': {
|
|
31
|
+
type: String,
|
|
32
|
+
reflect: true,
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
constructor() {
|
|
38
|
+
super();
|
|
39
|
+
this.selected = false;
|
|
40
|
+
this['aria-hidden'] = 'true';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
render() {
|
|
44
|
+
return html`
|
|
45
|
+
<slot></slot>
|
|
46
|
+
`;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// eslint-disable-next-line no-unused-expressions
|
|
51
|
+
customElements.get('kemet-carousel-slide') || customElements.define('kemet-carousel-slide', KemetCarouselSlide);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { html, css, LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export class KemetCarouselTotal extends LitElement {
|
|
4
|
+
static get styles() {
|
|
5
|
+
return [
|
|
6
|
+
css`
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
}
|
|
10
|
+
`,
|
|
11
|
+
];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
static get properties() {
|
|
15
|
+
return {
|
|
16
|
+
total: {
|
|
17
|
+
type: Number,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
firstUpdated() {
|
|
23
|
+
this.carousel = this.closest('kemet-carousel');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
updated() {
|
|
27
|
+
this.total = this.carousel.total;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
render() {
|
|
31
|
+
return html`${this.total}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// eslint-disable-next-line no-unused-expressions
|
|
36
|
+
customElements.get('kemet-carousel-total') || customElements.define('kemet-carousel-total', KemetCarouselTotal);
|