@brad-frost-web/eddie-web-components 0.1.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/components/EdElement.d.ts +61 -0
- package/components/EdElement.d.ts.map +1 -0
- package/components/EdElement.js +63 -0
- package/components/EdFormElement.d.ts +65 -0
- package/components/EdFormElement.d.ts.map +1 -0
- package/components/EdFormElement.js +46 -0
- package/components/accordion/accordion.d.ts +19 -0
- package/components/accordion/accordion.d.ts.map +1 -0
- package/components/accordion/accordion.js +31 -0
- package/components/accordion-panel/accordion-panel.d.ts +57 -0
- package/components/accordion-panel/accordion-panel.d.ts.map +1 -0
- package/components/accordion-panel/accordion-panel.js +95 -0
- package/components/alert/alert.d.ts +72 -0
- package/components/alert/alert.d.ts.map +1 -0
- package/components/alert/alert.js +77 -0
- package/components/badge/badge.d.ts +29 -0
- package/components/badge/badge.d.ts.map +1 -0
- package/components/badge/badge.js +33 -0
- package/components/band/band.d.ts +24 -0
- package/components/band/band.d.ts.map +1 -0
- package/components/band/band.js +32 -0
- package/components/box/box.d.ts +14 -0
- package/components/box/box.d.ts.map +1 -0
- package/components/box/box.js +20 -0
- package/components/breadcrumbs/breadcrumbs.d.ts +14 -0
- package/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/components/breadcrumbs/breadcrumbs.js +22 -0
- package/components/breadcrumbs-item/breadcrumbs-item.d.ts +31 -0
- package/components/breadcrumbs-item/breadcrumbs-item.d.ts.map +1 -0
- package/components/breadcrumbs-item/breadcrumbs-item.js +36 -0
- package/components/button/button.d.ts +93 -0
- package/components/button/button.d.ts.map +1 -0
- package/components/button/button.js +118 -0
- package/components/button-group/button-group.d.ts +24 -0
- package/components/button-group/button-group.d.ts.map +1 -0
- package/components/button-group/button-group.js +35 -0
- package/components/card/card.d.ts +34 -0
- package/components/card/card.d.ts.map +1 -0
- package/components/card/card.js +43 -0
- package/components/checkbox-field/checkbox-field.d.ts +76 -0
- package/components/checkbox-field/checkbox-field.d.ts.map +1 -0
- package/components/checkbox-field/checkbox-field.js +98 -0
- package/components/checkbox-field-item/checkbox-field-item.d.ts +81 -0
- package/components/checkbox-field-item/checkbox-field-item.d.ts.map +1 -0
- package/components/checkbox-field-item/checkbox-field-item.js +110 -0
- package/components/counter/counter.d.ts +134 -0
- package/components/counter/counter.d.ts.map +1 -0
- package/components/counter/counter.js +176 -0
- package/components/drawer/drawer.d.ts +41 -0
- package/components/drawer/drawer.d.ts.map +1 -0
- package/components/drawer/drawer.js +74 -0
- package/components/feature/feature.d.ts +27 -0
- package/components/feature/feature.d.ts.map +1 -0
- package/components/feature/feature.js +42 -0
- package/components/field-note/field-note.d.ts +33 -0
- package/components/field-note/field-note.d.ts.map +1 -0
- package/components/field-note/field-note.js +44 -0
- package/components/file-upload/file-upload.d.ts +118 -0
- package/components/file-upload/file-upload.d.ts.map +1 -0
- package/components/file-upload/file-upload.js +224 -0
- package/components/file-upload/file-upload.model.d.ts +24 -0
- package/components/file-upload/file-upload.model.d.ts.map +1 -0
- package/components/file-upload.model/file-upload.model.js +11 -0
- package/components/footer/footer.d.ts +16 -0
- package/components/footer/footer.d.ts.map +1 -0
- package/components/footer/footer.js +35 -0
- package/components/global-nav/global-nav.d.ts +14 -0
- package/components/global-nav/global-nav.d.ts.map +1 -0
- package/components/global-nav/global-nav.js +22 -0
- package/components/global-nav-item/global-nav-item.d.ts +80 -0
- package/components/global-nav-item/global-nav-item.d.ts.map +1 -0
- package/components/global-nav-item/global-nav-item.js +128 -0
- package/components/grid/grid.d.ts +51 -0
- package/components/grid/grid.d.ts.map +1 -0
- package/components/grid/grid.js +49 -0
- package/components/grid-item/grid-item.d.ts +14 -0
- package/components/grid-item/grid-item.d.ts.map +1 -0
- package/components/grid-item/grid-item.js +20 -0
- package/components/header/header.d.ts +19 -0
- package/components/header/header.d.ts.map +1 -0
- package/components/header/header.js +49 -0
- package/components/heading/heading.d.ts +44 -0
- package/components/heading/heading.d.ts.map +1 -0
- package/components/heading/heading.js +51 -0
- package/components/hero/hero.d.ts +22 -0
- package/components/hero/hero.d.ts.map +1 -0
- package/components/hero/hero.js +37 -0
- package/components/hr/hr.d.ts +23 -0
- package/components/hr/hr.d.ts.map +1 -0
- package/components/hr/hr.js +27 -0
- package/components/icon/icon.d.ts +51 -0
- package/components/icon/icon.d.ts.map +1 -0
- package/components/icon/icon.js +66 -0
- package/components/icon-link-list/icon-link-list.d.ts +19 -0
- package/components/icon-link-list/icon-link-list.d.ts.map +1 -0
- package/components/icon-link-list/icon-link-list.js +31 -0
- package/components/icon-link-list-item/icon-link-list-item.d.ts +23 -0
- package/components/icon-link-list-item/icon-link-list-item.d.ts.map +1 -0
- package/components/icon-link-list-item/icon-link-list-item.js +39 -0
- package/components/index.browser.js +4 -0
- package/components/inline-checkbox/inline-checkbox.d.ts +73 -0
- package/components/inline-checkbox/inline-checkbox.d.ts.map +1 -0
- package/components/inline-checkbox/inline-checkbox.js +114 -0
- package/components/key-value-table/key-value-table.d.ts +19 -0
- package/components/key-value-table/key-value-table.d.ts.map +1 -0
- package/components/key-value-table/key-value-table.js +33 -0
- package/components/key-value-table-row/key-value-table-row.d.ts +30 -0
- package/components/key-value-table-row/key-value-table-row.d.ts.map +1 -0
- package/components/key-value-table-row/key-value-table-row.js +38 -0
- package/components/layout/layout.d.ts +50 -0
- package/components/layout/layout.d.ts.map +1 -0
- package/components/layout/layout.js +43 -0
- package/components/layout-container/layout-container.d.ts +14 -0
- package/components/layout-container/layout-container.d.ts.map +1 -0
- package/components/layout-container/layout-container.js +20 -0
- package/components/layout-section/layout-section.d.ts +28 -0
- package/components/layout-section/layout-section.d.ts.map +1 -0
- package/components/layout-section/layout-section.js +37 -0
- package/components/linelength-container/linelength-container.d.ts +14 -0
- package/components/linelength-container/linelength-container.d.ts.map +1 -0
- package/components/linelength-container/linelength-container.js +20 -0
- package/components/link-list/link-list.d.ts +56 -0
- package/components/link-list/link-list.d.ts.map +1 -0
- package/components/link-list/link-list.js +48 -0
- package/components/link-list-item/link-list-item.d.ts +26 -0
- package/components/link-list-item/link-list-item.d.ts.map +1 -0
- package/components/link-list-item/link-list-item.js +41 -0
- package/components/list/list.d.ts +33 -0
- package/components/list/list.d.ts.map +1 -0
- package/components/list/list.js +36 -0
- package/components/list-item/list-item.d.ts +14 -0
- package/components/list-item/list-item.d.ts.map +1 -0
- package/components/list-item/list-item.js +20 -0
- package/components/loading-indicator/loading-indicator.d.ts +14 -0
- package/components/loading-indicator/loading-indicator.d.ts.map +1 -0
- package/components/loading-indicator/loading-indicator.js +20 -0
- package/components/logo/logo.d.ts +18 -0
- package/components/logo/logo.d.ts.map +1 -0
- package/components/logo/logo.js +29 -0
- package/components/main/main.d.ts +14 -0
- package/components/main/main.d.ts.map +1 -0
- package/components/main/main.js +16 -0
- package/components/media-block/media-block.d.ts +24 -0
- package/components/media-block/media-block.d.ts.map +1 -0
- package/components/media-block/media-block.js +37 -0
- package/components/modal/modal.d.ts +37 -0
- package/components/modal/modal.d.ts.map +1 -0
- package/components/modal/modal.js +67 -0
- package/components/nav-container/nav-container.d.ts +14 -0
- package/components/nav-container/nav-container.d.ts.map +1 -0
- package/components/nav-container/nav-container.js +20 -0
- package/components/page-header/page-header.d.ts +18 -0
- package/components/page-header/page-header.d.ts.map +1 -0
- package/components/page-header/page-header.js +39 -0
- package/components/pagination/pagination.d.ts +38 -0
- package/components/pagination/pagination.d.ts.map +1 -0
- package/components/pagination/pagination.js +52 -0
- package/components/pagination-item/pagination-item.d.ts +35 -0
- package/components/pagination-item/pagination-item.d.ts.map +1 -0
- package/components/pagination-item/pagination-item.js +52 -0
- package/components/primary-nav/primary-nav.d.ts +23 -0
- package/components/primary-nav/primary-nav.d.ts.map +1 -0
- package/components/primary-nav/primary-nav.js +33 -0
- package/components/primary-nav-item/primary-nav-item.d.ts +70 -0
- package/components/primary-nav-item/primary-nav-item.d.ts.map +1 -0
- package/components/primary-nav-item/primary-nav-item.js +121 -0
- package/components/radio-field/radio-field.d.ts +84 -0
- package/components/radio-field/radio-field.d.ts.map +1 -0
- package/components/radio-field/radio-field.js +108 -0
- package/components/radio-field-item/radio-field-item.d.ts +100 -0
- package/components/radio-field-item/radio-field-item.d.ts.map +1 -0
- package/components/radio-field-item/radio-field-item.js +142 -0
- package/components/search-form/search-form.d.ts +91 -0
- package/components/search-form/search-form.d.ts.map +1 -0
- package/components/search-form/search-form.js +131 -0
- package/components/section/section.d.ts +16 -0
- package/components/section/section.d.ts.map +1 -0
- package/components/section/section.js +27 -0
- package/components/select-field/select-field.d.ts +94 -0
- package/components/select-field/select-field.d.ts.map +1 -0
- package/components/select-field/select-field.js +123 -0
- package/components/show-hide/show-hide.d.ts +61 -0
- package/components/show-hide/show-hide.d.ts.map +1 -0
- package/components/show-hide/show-hide.js +72 -0
- package/components/show-more/show-more.d.ts +33 -0
- package/components/show-more/show-more.d.ts.map +1 -0
- package/components/show-more/show-more.js +63 -0
- package/components/skeleton/skeleton.d.ts +31 -0
- package/components/skeleton/skeleton.d.ts.map +1 -0
- package/components/skeleton/skeleton.js +33 -0
- package/components/tab/tab.d.ts +45 -0
- package/components/tab/tab.d.ts.map +1 -0
- package/components/tab/tab.js +47 -0
- package/components/table/table.d.ts +33 -0
- package/components/table/table.d.ts.map +1 -0
- package/components/table/table.js +39 -0
- package/components/table-body/table-body.d.ts +14 -0
- package/components/table-body/table-body.d.ts.map +1 -0
- package/components/table-body/table-body.js +20 -0
- package/components/table-cell/table-cell.d.ts +38 -0
- package/components/table-cell/table-cell.d.ts.map +1 -0
- package/components/table-cell/table-cell.js +36 -0
- package/components/table-header/table-header.d.ts +14 -0
- package/components/table-header/table-header.d.ts.map +1 -0
- package/components/table-header/table-header.js +20 -0
- package/components/table-header-cell/table-header-cell.d.ts +62 -0
- package/components/table-header-cell/table-header-cell.d.ts.map +1 -0
- package/components/table-header-cell/table-header-cell.js +62 -0
- package/components/table-object/table-object.d.ts +66 -0
- package/components/table-object/table-object.d.ts.map +1 -0
- package/components/table-object/table-object.js +96 -0
- package/components/table-row/table-row.d.ts +14 -0
- package/components/table-row/table-row.d.ts.map +1 -0
- package/components/table-row/table-row.js +20 -0
- package/components/tabs/tabs.d.ts +101 -0
- package/components/tabs/tabs.d.ts.map +1 -0
- package/components/tabs/tabs.js +184 -0
- package/components/tag/tag.d.ts +27 -0
- package/components/tag/tag.d.ts.map +1 -0
- package/components/tag/tag.js +41 -0
- package/components/tag-list/tag-list.d.ts +14 -0
- package/components/tag-list/tag-list.d.ts.map +1 -0
- package/components/tag-list/tag-list.js +20 -0
- package/components/text-field/text-field.d.ts +89 -0
- package/components/text-field/text-field.d.ts.map +1 -0
- package/components/text-field/text-field.js +124 -0
- package/components/text-link/text-link.d.ts +42 -0
- package/components/text-link/text-link.d.ts.map +1 -0
- package/components/text-link/text-link.js +47 -0
- package/components/text-passage/text-passage.d.ts +38 -0
- package/components/text-passage/text-passage.d.ts.map +1 -0
- package/components/text-passage/text-passage.js +57 -0
- package/components/textarea-field/textarea-field.d.ts +82 -0
- package/components/textarea-field/textarea-field.d.ts.map +1 -0
- package/components/textarea-field/textarea-field.js +111 -0
- package/components/toggle/toggle.d.ts +89 -0
- package/components/toggle/toggle.d.ts.map +1 -0
- package/components/toggle/toggle.js +132 -0
- package/components/toolbar/toolbar.d.ts +32 -0
- package/components/toolbar/toolbar.d.ts.map +1 -0
- package/components/toolbar/toolbar.js +40 -0
- package/components/tooltip/tooltip.d.ts +15 -0
- package/components/tooltip/tooltip.d.ts.map +1 -0
- package/components/tooltip/tooltip.js +35 -0
- package/components/tooltip-trigger/tooltip-trigger.d.ts +46 -0
- package/components/tooltip-trigger/tooltip-trigger.d.ts.map +1 -0
- package/components/tooltip-trigger/tooltip-trigger.js +100 -0
- package/components/utility-nav/utility-nav.d.ts +14 -0
- package/components/utility-nav/utility-nav.d.ts.map +1 -0
- package/components/utility-nav/utility-nav.js +22 -0
- package/components/utility-nav-item/utility-nav-item.d.ts +38 -0
- package/components/utility-nav-item/utility-nav-item.d.ts.map +1 -0
- package/components/utility-nav-item/utility-nav-item.js +57 -0
- package/package.json +49 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import l from "classnames";
|
|
2
|
+
import { unsafeCSS as c, html as g } from "lit";
|
|
3
|
+
import { property as i } from "lit/decorators.js";
|
|
4
|
+
import { E as h } from "../EdElement.js";
|
|
5
|
+
const m = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-badge{font-family:var(--ed-theme-typography-label-default-font-family);font-weight:var(--ed-theme-typography-label-default-font-weight);font-size:var(--ed-theme-typography-label-default-font-size);line-height:var(--ed-theme-typography-label-default-line-height);letter-spacing:var(--ed-theme-typography-label-default-letter-spacing);text-transform:var(--ed-theme-typography-label-default-text-transform);background:var(--ed-theme-color-background-utility-info);color:var(--ed-theme-color-content-default);display:inline-flex;border-radius:var(--ed-theme-border-radius-md);padding:.5rem}.ed-c-badge--success{background:var(--ed-theme-color-background-utility-success)}.ed-c-badge--warning{background:var(--ed-theme-color-background-utility-warning)}.ed-c-badge--error{background:var(--ed-theme-color-background-utility-error)}";
|
|
6
|
+
var f = Object.defineProperty, s = (r, t, d, u) => {
|
|
7
|
+
for (var e = void 0, a = r.length - 1, n; a >= 0; a--)
|
|
8
|
+
(n = r[a]) && (e = n(t, d, e) || e);
|
|
9
|
+
return e && f(t, d, e), e;
|
|
10
|
+
};
|
|
11
|
+
class o extends h {
|
|
12
|
+
static get styles() {
|
|
13
|
+
return c(m.toString());
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const t = l("ed-c-badge", {
|
|
17
|
+
"ed-c-badge--success": this.variant === "success",
|
|
18
|
+
"ed-c-badge--warning": this.variant === "warning",
|
|
19
|
+
"ed-c-badge--error": this.variant === "error"
|
|
20
|
+
});
|
|
21
|
+
return g` <div class="${t}">${this.text}</div> `;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
s([
|
|
25
|
+
i()
|
|
26
|
+
], o.prototype, "text");
|
|
27
|
+
s([
|
|
28
|
+
i()
|
|
29
|
+
], o.prototype, "variant");
|
|
30
|
+
customElements.get("ed-badge") === void 0 && customElements.define("ed-badge", o);
|
|
31
|
+
export {
|
|
32
|
+
o as EdBadge
|
|
33
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The band content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdBand extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Gradient variant
|
|
9
|
+
* <ed-text-passage size="sm">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li>**brand** renders the band with the brand token background</li>
|
|
12
|
+
* <li>**brand-knockout** renders the band with the brand-knockout token background</li>
|
|
13
|
+
* </ul>
|
|
14
|
+
* </ed-text-passage>
|
|
15
|
+
*/
|
|
16
|
+
variant?: 'brand' | 'brand-knockout';
|
|
17
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'ed-band': EdBand;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=band.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"band.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/band/band.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;OAQG;IAEH,OAAO,CAAC,EAAE,OAAO,GAAG,gBAAgB,CAAC;IAErC,MAAM;CAYP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { unsafeCSS as s, html as c } from "lit";
|
|
2
|
+
import { property as b } from "lit/decorators.js";
|
|
3
|
+
import { E as i } from "../EdElement.js";
|
|
4
|
+
const m = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-band{background:var(--ed-theme-color-background-subtle);padding:1.5rem 0}@media all and (min-width:75rem){.ed-c-band{padding:2rem 0}}.ed-c-band--brand{background:var(--ed-theme-color-background-brand)}.ed-c-band--brand-knockout{color:var(--ed-theme-color-content-knockout);background:var(--ed-theme-color-background-brand-knockout)}";
|
|
5
|
+
var l = Object.defineProperty, u = (r, n, o, h) => {
|
|
6
|
+
for (var e = void 0, d = r.length - 1, t; d >= 0; d--)
|
|
7
|
+
(t = r[d]) && (e = t(n, o, e) || e);
|
|
8
|
+
return e && l(n, o, e), e;
|
|
9
|
+
};
|
|
10
|
+
class a extends i {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return s(m);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const n = this.componentClassNames("ed-c-band", {
|
|
16
|
+
"ed-c-band--brand": this.variant === "brand",
|
|
17
|
+
"ed-c-band--brand-knockout": this.variant === "brand-knockout"
|
|
18
|
+
});
|
|
19
|
+
return c`
|
|
20
|
+
<div class="${n}">
|
|
21
|
+
<slot></slot>
|
|
22
|
+
</div>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
u([
|
|
27
|
+
b()
|
|
28
|
+
], a.prototype, "variant");
|
|
29
|
+
customElements.get("ed-band") === void 0 && customElements.define("ed-band", a);
|
|
30
|
+
export {
|
|
31
|
+
a as EdBand
|
|
32
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The component content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdBox extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'ed-box': EdBox;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/box/box.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,KAAM,SAAQ,SAAS;IAClC,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,QAAQ,EAAE,KAAK,CAAC;KACjB;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { unsafeCSS as o, html as r } from "lit";
|
|
2
|
+
import { E as t } from "../EdElement.js";
|
|
3
|
+
const d = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-box{flex-direction:column;padding:1rem;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default)}";
|
|
4
|
+
class s extends t {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return o(d.toString());
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.componentClassNames("ed-c-box", {});
|
|
10
|
+
return r`
|
|
11
|
+
<div class="${e}">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
customElements.get("ed-box") === void 0 && customElements.define("ed-box", s);
|
|
18
|
+
export {
|
|
19
|
+
s as EdBox
|
|
20
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The component content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdBreadcrumbs extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'ed-breadcrumbs': EdBreadcrumbs;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/breadcrumbs/breadcrumbs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CAWP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAC;KACjC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { unsafeCSS as s, html as t } from "lit";
|
|
2
|
+
import { E as r } from "../EdElement.js";
|
|
3
|
+
const m = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-breadcrumbs__list{display:flex;margin:-.5rem 0 0 -.5rem;padding:0;list-style:none}.ed-c-breadcrumbs__list ::slotted(ed-breadcrumbs-item){margin-left:.5rem;margin-top:.5rem}";
|
|
4
|
+
class o extends r {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return s(m.toString());
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.componentClassNames("ed-c-breadcrumbs", {});
|
|
10
|
+
return t`
|
|
11
|
+
<nav class="${e}">
|
|
12
|
+
<ol class="ed-c-breadcrumbs__list">
|
|
13
|
+
<slot></slot>
|
|
14
|
+
</ol>
|
|
15
|
+
</nav>
|
|
16
|
+
`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
customElements.get("ed-breadcrumbs") === void 0 && customElements.define("ed-breadcrumbs", o);
|
|
20
|
+
export {
|
|
21
|
+
o as EdBreadcrumbs
|
|
22
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The component content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdBreadcrumbsItem extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Item link URL
|
|
9
|
+
*/
|
|
10
|
+
href?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Target attribute
|
|
13
|
+
* 1) Default target uses the same tab when the link is clicked
|
|
14
|
+
* <ed-text-passage size="sm">
|
|
15
|
+
* <ul>
|
|
16
|
+
* <li>**_blank** opens a link in a new window/tab</li>
|
|
17
|
+
* <li>**_self** opens a link in the same tab/frame </li>
|
|
18
|
+
* <li>**_parent** opens the link in a parent frame </li>
|
|
19
|
+
* <li>**_top** opens the link in the full body of the window</li>
|
|
20
|
+
* </ul>
|
|
21
|
+
* </ed-text-passage>
|
|
22
|
+
*/
|
|
23
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
24
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'ed-breadcrumbs-item': EdBreadcrumbsItem;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=breadcrumbs-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs-item.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/breadcrumbs-item/breadcrumbs-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;;OAWG;IAEH,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAEjD,MAAM;CAcP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,iBAAiB,CAAC;KAC1C;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { unsafeCSS as c, html as s } from "lit";
|
|
2
|
+
import { ifDefined as m } from "lit-html/directives/if-defined.js";
|
|
3
|
+
import { property as d } from "lit/decorators.js";
|
|
4
|
+
import { E as h } from "../EdElement.js";
|
|
5
|
+
const b = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-breadcrumbs__item{display:inline-flex;align-items:center;font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}:host(:last-child) .ed-c-breadcrumbs__item{color:var(--ed-theme-color-content-subtle)}.ed-c-breadcrumbs__link{margin-right:.5rem;text-decoration:none;color:var(--ed-theme-color-content-link-default)}.ed-c-breadcrumbs__link:hover,.ed-c-breadcrumbs__link:focus{text-decoration:underline;color:var(--ed-theme-color-content-link-hover)}ed-icon{--ed-icon-fill: var(--ed-theme-color-content-subtle);--ed-icon-height: .5rem;--ed-icon-width: .5rem}";
|
|
6
|
+
var f = Object.defineProperty, l = (r, t, n, p) => {
|
|
7
|
+
for (var e = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8
|
+
(a = r[o]) && (e = a(t, n, e) || e);
|
|
9
|
+
return e && f(t, n, e), e;
|
|
10
|
+
};
|
|
11
|
+
class i extends h {
|
|
12
|
+
static get styles() {
|
|
13
|
+
return c(b.toString());
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const t = this.componentClassNames("ed-c-breadcrumbs__item", {});
|
|
17
|
+
return s`
|
|
18
|
+
<li class="${t}">
|
|
19
|
+
${this.href ? s`<a class="ed-c-breadcrumbs__link" href=${m(this.href)} target=${m(this.target)}>
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</a>
|
|
22
|
+
<ed-icon name="keyboard-arrow-right"> </ed-icon>` : s`<slot></slot>`}
|
|
23
|
+
</li>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
l([
|
|
28
|
+
d()
|
|
29
|
+
], i.prototype, "href");
|
|
30
|
+
l([
|
|
31
|
+
d()
|
|
32
|
+
], i.prototype, "target");
|
|
33
|
+
customElements.get("ed-breadcrumbs-item") === void 0 && customElements.define("ed-breadcrumbs-item", i);
|
|
34
|
+
export {
|
|
35
|
+
i as EdBreadcrumbsItem
|
|
36
|
+
};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { EdFormElement } from '@brad-frost-web/eddie-web-components/components/EdFormElement';
|
|
2
|
+
export declare class EdButton extends EdFormElement {
|
|
3
|
+
static formAssociated: boolean;
|
|
4
|
+
static get styles(): import('lit').CSSResult;
|
|
5
|
+
/**
|
|
6
|
+
* The button text
|
|
7
|
+
*/
|
|
8
|
+
text?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Style variant
|
|
11
|
+
* <ed-text-passage size="sm">
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li>**primary** renders the button used for primary actions</li>
|
|
14
|
+
* <li>**danger** renders the button used for caution actions</li>
|
|
15
|
+
* <li>**bare** renders a button a bare background and no border</li>
|
|
16
|
+
* <li>**link** renders a button that looks like a text link</li>
|
|
17
|
+
* </ul>
|
|
18
|
+
* </ed-text-passage>
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'primary' | 'danger' | 'bare' | 'link';
|
|
21
|
+
/**
|
|
22
|
+
* Disabled attribute
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Target attribute for a link (i.e. set to _blank to open in new tab)
|
|
27
|
+
* - **_blank** yields a link that opens in a new tab
|
|
28
|
+
* - **_self** yields a link that loads the URL into the same browsing context as the current one. This is the default behavior
|
|
29
|
+
* - **_parent** yields a link that loads the URL into the parent browsing context of the current one.
|
|
30
|
+
* If there is no parent, this behaves the same way as _self
|
|
31
|
+
* - **_top** yields a link that loads the URL into the top-level browsing context. If there is no parent, this behaves the same way as _self.
|
|
32
|
+
*/
|
|
33
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
34
|
+
/**
|
|
35
|
+
* Strong variation for dark backgrounds
|
|
36
|
+
*/
|
|
37
|
+
strong?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* URL if this is an <a> element - this swaps <button> for <a>
|
|
40
|
+
*/
|
|
41
|
+
href?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Icon name
|
|
44
|
+
*/
|
|
45
|
+
iconName?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Icon position
|
|
48
|
+
* <ed-text-passage size="sm">
|
|
49
|
+
* <ul>
|
|
50
|
+
* <li>**top** places the icon on top of the button text</li>
|
|
51
|
+
* <li>**before** places the icon before the button text</li>
|
|
52
|
+
* <li>**after** places the icon after the button text</li>
|
|
53
|
+
* </ul>
|
|
54
|
+
* </ed-text-passage>
|
|
55
|
+
*/
|
|
56
|
+
iconPosition?: 'top' | 'before' | 'after';
|
|
57
|
+
/**
|
|
58
|
+
* Size variant
|
|
59
|
+
* <ed-text-passage size="sm">
|
|
60
|
+
* <ul>
|
|
61
|
+
* <li>**sm** shrinks the button typography and overall size</li>
|
|
62
|
+
* <li>**lg** increases the button typography size and overall size</li>
|
|
63
|
+
* </ul>
|
|
64
|
+
* </ed-text-passage>
|
|
65
|
+
*/
|
|
66
|
+
size?: 'sm' | 'lg';
|
|
67
|
+
/**
|
|
68
|
+
* Visually hide button text (but text is still accessible to assistive technology)
|
|
69
|
+
* 1) Use this for icon-only buttons for accessibility
|
|
70
|
+
*/
|
|
71
|
+
hideText?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* Full width button
|
|
74
|
+
*/
|
|
75
|
+
fullWidth: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Round button
|
|
78
|
+
*/
|
|
79
|
+
round: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* What type of button is this. Defaults to 'button'
|
|
82
|
+
*/
|
|
83
|
+
type: 'button' | 'submit' | 'reset';
|
|
84
|
+
field: HTMLButtonElement;
|
|
85
|
+
clickHandler(): void;
|
|
86
|
+
formSubmit(): void;
|
|
87
|
+
formReset(): void;
|
|
88
|
+
private getIconElement;
|
|
89
|
+
private createButton;
|
|
90
|
+
private createAnchorButton;
|
|
91
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/button/button.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+DAA+D,CAAC;AAI9F,OAAO,cAAc,CAAC;AAGtB,qBAAa,QAAS,SAAQ,aAAa;IACzC,MAAM,CAAC,cAAc,UAAQ;IAE7B,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;;OAUG;IAEH,OAAO,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAEjD;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;OAOG;IAEH,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;IAEjD;;OAEG;IAEH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;;;;OASG;IAEH,YAAY,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAa;IAEtD;;;;;;;;OAQG;IAEH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEnB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IAEH,SAAS,UAAS;IAElB;;OAEG;IAEH,KAAK,UAAS;IAEd;;OAEG;IAEH,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAY;IAG/C,KAAK,EAAG,iBAAiB,CAAC;IAE1B,YAAY;IAQZ,UAAU;IAYV,SAAS;IAOT,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,YAAY;IAWpB,OAAO,CAAC,kBAAkB;IAW1B,MAAM;CAYP"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { E as b } from "../EdFormElement.js";
|
|
2
|
+
import { unsafeCSS as m, nothing as a, html as l } from "lit";
|
|
3
|
+
import { property as r, query as u } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined as p } from "lit-html/directives/if-defined.js";
|
|
5
|
+
import "../icon/icon.js";
|
|
6
|
+
const y = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-u-is-hidden{display:none!important;visibility:hidden!important}.ed-u-is-vishidden{position:absolute!important;overflow:hidden;width:1px;height:1px;padding:0;border:0;clip:rect(1px,1px,1px,1px)}@media all and (min-width:23.4375rem){.ed-u-hide-sm{display:none!important}}@media all and (min-width:48rem){.ed-u-hide-md{display:none!important}}@media all and (min-width:60rem){.ed-u-hide-lg{display:none!important}}@media all and (min-width:75rem){.ed-u-hide-xl{display:none!important}}@media all and (max-width:23.4375rem){.ed-u-show-sm{display:none!important}}@media all and (max-width:48rem){.ed-u-show-md{display:none!important}}@media all and (max-width:60rem){.ed-u-show-lg{display:none!important}}@media all and (max-width:75rem){.ed-u-show-xl{display:none!important}}.ed-c-button{font-family:var(--ed-theme-typography-button-default-font-family);font-weight:var(--ed-theme-typography-button-default-font-weight);font-size:var(--ed-theme-typography-button-default-font-size);line-height:var(--ed-theme-typography-button-default-line-height);letter-spacing:var(--ed-theme-typography-button-default-letter-spacing);text-transform:var(--ed-theme-typography-button-default-text-transform);display:inline-flex;align-items:center;padding:.75rem 1.75rem;margin:0;background:var(--ed-theme-button-color-background-default);border-width:var(--ed-theme-border-width-md);border-style:solid;border-color:var(--ed-theme-button-color-border-default);border-radius:var(--ed-theme-border-radius-md);color:var(--ed-theme-button-color-content-default);cursor:pointer;white-space:nowrap;transition:all .15s ease}.ed-c-button:hover,.ed-c-button:focus{color:var(--ed-theme-button-color-content-hover);border-color:var(--ed-theme-button-color-border-hover);background:var(--ed-theme-button-color-background-hover);text-decoration:none}.ed-c-button:focus-visible{outline:var(--ed-theme-border-width-lg) solid var(--ed-theme-focus-ring-color-border-default);outline-offset:var(--ed-theme-offset-focus-ring, .25rem )}.ed-c-button:active{background-color:var(--ed-theme-button-color-background-active);border-color:var(--ed-theme-button-color-border-active);color:var(--ed-theme-button-color-content-active)}a.ed-c-button{text-decoration:none}.ed-c-button:disabled{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled);cursor:not-allowed}.ed-c-button:disabled:hover,.ed-c-button:disabled:focus,.ed-c-button:disabled:active{background-color:var(--ed-theme-button-color-background-disabled);border-color:var(--ed-theme-button-color-border-disabled);color:var(--ed-theme-button-color-content-disabled)}.ed-c-button--primary{background-color:var(--ed-theme-button-primary-color-background-default);border-color:var(--ed-theme-button-primary-color-border-default);color:var(--ed-theme-button-primary-color-content-default)}.ed-c-button--primary:hover,.ed-c-button--primary:focus{background-color:var(--ed-theme-button-primary-color-background-hover);border-color:var(--ed-theme-button-primary-color-border-hover);color:var(--ed-theme-button-primary-color-content-hover)}.ed-c-button--primary:active{background-color:var(--ed-theme-button-primary-color-background-active);border-color:var(--ed-theme-button-primary-color-border-active);color:var(--ed-theme-button-primary-color-content-active)}.ed-c-button--primary:disabled{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--primary:disabled:hover,.ed-c-button--primary:disabled:focus,.ed-c-button--primary:disabled:active{background-color:var(--ed-theme-button-primary-color-background-disabled);border-color:var(--ed-theme-button-primary-color-border-disabled);color:var(--ed-theme-button-primary-color-content-disabled)}.ed-c-button--link{font-family:var(--ed-theme-typography-body-default-font-family);font-weight:var(--ed-theme-typography-body-default-font-weight);font-size:var(--ed-theme-typography-body-default-font-size);line-height:var(--ed-theme-typography-body-default-line-height);letter-spacing:var(--ed-theme-typography-body-default-letter-spacing);text-transform:var(--ed-theme-typography-body-default-text-transform);background-color:transparent;border:none;color:var(--ed-theme-link-color-content-default);padding:0}.ed-c-button--link:hover,.ed-c-button--link:focus{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-hover);text-decoration:underline}.ed-c-button--link:active{background-color:transparent;border:none;color:var(--ed-theme-link-color-content-active)}.ed-c-button--link:visited{color:var(--ed-theme-link-color-content-visited)}.ed-c-button--link:disabled{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link:disabled:hover,.ed-c-button--link:disabled:focus,.ed-c-button--link:disabled:active{background-color:transparent;border:none;color:var(--ed-theme-color-content-disabled)}.ed-c-button--link.ed-c-button--sm{font-family:var(--ed-theme-typography-body-sm-font-family);font-weight:var(--ed-theme-typography-body-sm-font-weight);font-size:var(--ed-theme-typography-body-sm-font-size);line-height:var(--ed-theme-typography-body-sm-line-height);letter-spacing:var(--ed-theme-typography-body-sm-letter-spacing);text-transform:var(--ed-theme-typography-body-sm-text-transform)}.ed-c-button--link.ed-c-button--lg{font-family:var(--ed-theme-typography-body-lg-font-family);font-weight:var(--ed-theme-typography-body-lg-font-weight);font-size:var(--ed-theme-typography-body-lg-font-size);line-height:var(--ed-theme-typography-body-lg-line-height);letter-spacing:var(--ed-theme-typography-body-lg-letter-spacing);text-transform:var(--ed-theme-typography-body-lg-text-transform)}.ed-c-button--bare{padding:0;border:0;background:none;color:var(--ed-theme-color-content-default)}.ed-c-button--bare:hover,.ed-c-button--bare:focus{color:var(--ed-theme-color-content-hover);background:none}.ed-c-button--bare:disabled{color:var(--ed-theme-button-bare-color-content-disabled);background:none;cursor:not-allowed}.ed-c-button--bare:disabled:hover,.ed-c-button--bare:disabled:focus{background:none;color:var(--ed-theme-button-bare-color-content-disabled)}.ed-c-button--full-width{width:100%;justify-content:center;text-align:center}.ed-c-button--sm{font-family:var(--ed-theme-typography-button-sm-font-family);font-weight:var(--ed-theme-typography-button-sm-font-weight);font-size:var(--ed-theme-typography-button-sm-font-size);line-height:var(--ed-theme-typography-button-sm-line-height);letter-spacing:var(--ed-theme-typography-button-sm-letter-spacing);text-transform:var(--ed-theme-typography-button-sm-text-transform);padding:.5rem 1rem}.ed-c-button--sm.ed-c-button--bare{padding:0}.ed-c-button--lg{font-family:var(--ed-theme-typography-button-lg-font-family);font-weight:var(--ed-theme-typography-button-lg-font-weight);font-size:var(--ed-theme-typography-button-lg-font-size);line-height:var(--ed-theme-typography-button-lg-line-height);letter-spacing:var(--ed-theme-typography-button-lg-letter-spacing);text-transform:var(--ed-theme-typography-button-lg-text-transform)}.ed-c-button--lg.ed-c-button--bare{padding:0}ed-icon{--ed-icon-height: .75rem ;--ed-icon-width: .75rem ;transition:all var(--ed-theme-animation-fade-quick) var(--ed-theme-animation-ease);transform:var(--ed-button-icon-transform, none)}.ed-c-button--sm ed-icon{--ed-icon-height: .5rem ;--ed-icon-width: .5rem }.ed-c-button--lg ed-icon{--ed-icon-height: .875rem ;--ed-icon-width: .875rem }ed-icon+.ed-c-button__text{margin-left:.5rem}.ed-c-button--sm ed-icon+.ed-c-button__text{margin-left:.25rem}.ed-c-button__text:not(.ed-u-is-vishidden)+ed-icon{margin-left:.5rem}.ed-c-button--sm .ed-c-button__text:not(.ed-u-is-vishidden)+ed-icon{margin-left:.25rem}';
|
|
7
|
+
var g = Object.defineProperty, o = (s, e, n, f) => {
|
|
8
|
+
for (var d = void 0, i = s.length - 1, h; i >= 0; i--)
|
|
9
|
+
(h = s[i]) && (d = h(e, n, d) || d);
|
|
10
|
+
return d && g(e, n, d), d;
|
|
11
|
+
};
|
|
12
|
+
const c = class c extends b {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments), this.iconPosition = void 0, this.fullWidth = !1, this.round = !1, this.type = "button";
|
|
15
|
+
}
|
|
16
|
+
static get styles() {
|
|
17
|
+
return m(y);
|
|
18
|
+
}
|
|
19
|
+
clickHandler() {
|
|
20
|
+
this.type === "submit" ? this.formSubmit() : this.type === "reset" && this.formReset();
|
|
21
|
+
}
|
|
22
|
+
formSubmit() {
|
|
23
|
+
const e = this.internals.form;
|
|
24
|
+
if (e) {
|
|
25
|
+
const n = new Event("submit", {
|
|
26
|
+
bubbles: !0,
|
|
27
|
+
cancelable: !0
|
|
28
|
+
});
|
|
29
|
+
e.dispatchEvent(n), e.submit();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
formReset() {
|
|
33
|
+
const e = this.internals.form;
|
|
34
|
+
e && e.reset();
|
|
35
|
+
}
|
|
36
|
+
getIconElement() {
|
|
37
|
+
return this.iconName ? l`<ed-icon styleModifier="ed-c-button__icon" aria-hidden="true" name="${this.iconName}"></ed-icon>` : a;
|
|
38
|
+
}
|
|
39
|
+
createButton(e) {
|
|
40
|
+
const n = this.getIconElement();
|
|
41
|
+
return l`
|
|
42
|
+
<button type="${this.type}" class="${e}" ?disabled=${this.disabled} @click=${this.clickHandler}>
|
|
43
|
+
${this.iconPosition === "before" || this.iconPosition === "top" ? n : a}
|
|
44
|
+
<span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}"><slot>${this.text}</slot></span>
|
|
45
|
+
${this.iconPosition === "after" ? n : a}
|
|
46
|
+
</button>
|
|
47
|
+
`;
|
|
48
|
+
}
|
|
49
|
+
createAnchorButton(e) {
|
|
50
|
+
const n = this.getIconElement();
|
|
51
|
+
return l`
|
|
52
|
+
<a href="${p(this.href)}" class="${e}" target=${this.target}>
|
|
53
|
+
${this.iconPosition === "before" || this.iconPosition === "top" ? n : a}
|
|
54
|
+
<span class="${this.hideText ? "ed-u-is-vishidden ed-c-button__text" : "ed-c-button__text"}">${this.text}</span>
|
|
55
|
+
${this.iconPosition === "after" ? n : a}
|
|
56
|
+
</a>
|
|
57
|
+
`;
|
|
58
|
+
}
|
|
59
|
+
render() {
|
|
60
|
+
const e = this.componentClassNames("ed-c-button", {
|
|
61
|
+
"ed-c-button--primary": this.variant === "primary",
|
|
62
|
+
"ed-c-button--bare": this.variant === "bare",
|
|
63
|
+
"ed-c-button--link": this.variant === "link",
|
|
64
|
+
"ed-c-button--full-width": this.fullWidth === !0,
|
|
65
|
+
"ed-c-button--sm": this.size === "sm",
|
|
66
|
+
"ed-c-button--lg": this.size === "lg"
|
|
67
|
+
});
|
|
68
|
+
return this.href ? this.createAnchorButton(e) : this.createButton(e);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
c.formAssociated = !0;
|
|
72
|
+
let t = c;
|
|
73
|
+
o([
|
|
74
|
+
r()
|
|
75
|
+
], t.prototype, "text");
|
|
76
|
+
o([
|
|
77
|
+
r()
|
|
78
|
+
], t.prototype, "variant");
|
|
79
|
+
o([
|
|
80
|
+
r({ type: Boolean })
|
|
81
|
+
], t.prototype, "disabled");
|
|
82
|
+
o([
|
|
83
|
+
r()
|
|
84
|
+
], t.prototype, "target");
|
|
85
|
+
o([
|
|
86
|
+
r({ type: Boolean })
|
|
87
|
+
], t.prototype, "strong");
|
|
88
|
+
o([
|
|
89
|
+
r()
|
|
90
|
+
], t.prototype, "href");
|
|
91
|
+
o([
|
|
92
|
+
r()
|
|
93
|
+
], t.prototype, "iconName");
|
|
94
|
+
o([
|
|
95
|
+
r()
|
|
96
|
+
], t.prototype, "iconPosition");
|
|
97
|
+
o([
|
|
98
|
+
r()
|
|
99
|
+
], t.prototype, "size");
|
|
100
|
+
o([
|
|
101
|
+
r({ type: Boolean })
|
|
102
|
+
], t.prototype, "hideText");
|
|
103
|
+
o([
|
|
104
|
+
r({ type: Boolean })
|
|
105
|
+
], t.prototype, "fullWidth");
|
|
106
|
+
o([
|
|
107
|
+
r({ type: Boolean })
|
|
108
|
+
], t.prototype, "round");
|
|
109
|
+
o([
|
|
110
|
+
r({ type: String })
|
|
111
|
+
], t.prototype, "type");
|
|
112
|
+
o([
|
|
113
|
+
u("button")
|
|
114
|
+
], t.prototype, "field");
|
|
115
|
+
customElements.get("ed-button") === void 0 && customElements.define("ed-button", t);
|
|
116
|
+
export {
|
|
117
|
+
t as EdButton
|
|
118
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - A slot for the buttons within the group
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdButtonGroup extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Behavior variant
|
|
9
|
+
* <ed-text-passage size="sm">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li>**stacked** renders a button group that is stacked on top of each other</li>
|
|
12
|
+
* <li>**responsive** renders a button group that is stacked on small screens and side by side when space becomes available</li>
|
|
13
|
+
* </ul>
|
|
14
|
+
* </ed-text-passage>
|
|
15
|
+
*/
|
|
16
|
+
behavior?: 'stacked' | 'responsive';
|
|
17
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'ed-button-group': EdButtonGroup;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=button-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button-group.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/button-group/button-group.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,aAAc,SAAQ,SAAS;IAC1C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;OAQG;IAEH,QAAQ,CAAC,EAAE,SAAS,GAAG,YAAY,CAAa;IAEhD,MAAM;CAYP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { unsafeCSS as d, html as a } from "lit";
|
|
2
|
+
import { property as u } from "lit/decorators.js";
|
|
3
|
+
import { E as m } from "../EdElement.js";
|
|
4
|
+
const l = '@charset "UTF-8";:root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-button-group{display:flex;align-items:center}.ed-c-button-group ::slotted(ed-button){margin-right:1rem}.ed-c-button-group ::slotted(ed-button:last-child){margin-right:0}.ed-c-button-group--stacked{flex-direction:column;align-items:initial}.ed-c-button-group--stacked ::slotted(ed-button){margin-bottom:.5rem}.ed-c-button-group--stacked ::slotted(ed-button:last-child){margin-bottom:0}.ed-c-button-group--responsive ::slotted(ed-button){margin-bottom:.5rem;margin-right:0}@media all and (min-width:48rem){.ed-c-button-group--responsive ::slotted(ed-button){margin-right:1rem;margin-bottom:0}}@media all and (max-width:48rem){.ed-c-button-group--responsive{flex-direction:column;align-items:initial}}';
|
|
5
|
+
var c = Object.defineProperty, b = (o, e, n, g) => {
|
|
6
|
+
for (var t = void 0, r = o.length - 1, i; r >= 0; r--)
|
|
7
|
+
(i = o[r]) && (t = i(e, n, t) || t);
|
|
8
|
+
return t && c(e, n, t), t;
|
|
9
|
+
};
|
|
10
|
+
class s extends m {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.behavior = void 0;
|
|
13
|
+
}
|
|
14
|
+
static get styles() {
|
|
15
|
+
return d(l);
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const e = this.componentClassNames("ed-c-button-group", {
|
|
19
|
+
"ed-c-button-group--stacked": this.behavior === "stacked",
|
|
20
|
+
"ed-c-button-group--responsive": this.behavior === "responsive"
|
|
21
|
+
});
|
|
22
|
+
return a`
|
|
23
|
+
<div class="${e}">
|
|
24
|
+
<slot></slot>
|
|
25
|
+
</div>
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
b([
|
|
30
|
+
u()
|
|
31
|
+
], s.prototype, "behavior");
|
|
32
|
+
customElements.get("ed-button-group") === void 0 && customElements.define("ed-button-group", s);
|
|
33
|
+
export {
|
|
34
|
+
s as EdButtonGroup
|
|
35
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* An example element.
|
|
4
|
+
*
|
|
5
|
+
* @slot - The card contents
|
|
6
|
+
*/
|
|
7
|
+
export declare class EdCard extends EdElement {
|
|
8
|
+
static get styles(): import('lit').CSSResult;
|
|
9
|
+
/**
|
|
10
|
+
* Style variants
|
|
11
|
+
* <ed-text-passage size="sm">
|
|
12
|
+
* <ul>
|
|
13
|
+
* <li>**bare** renders a card without a border and without padding around the content</li>
|
|
14
|
+
* </ul>
|
|
15
|
+
* </ed-text-passage>
|
|
16
|
+
*/
|
|
17
|
+
variant?: 'bare';
|
|
18
|
+
/**
|
|
19
|
+
* Align variants
|
|
20
|
+
* <ed-text-passage size="sm">
|
|
21
|
+
* <ul>
|
|
22
|
+
* <li>**center** renders a card that has center aligned content/text</li>
|
|
23
|
+
* </ul>
|
|
24
|
+
* </ed-text-passage>
|
|
25
|
+
*/
|
|
26
|
+
align?: 'center';
|
|
27
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'ed-card': EdCard;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/card/card.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;;;GAIG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;OAOG;IAEH,KAAK,CAAC,EAAE,QAAQ,CAAC;IAEjB,MAAM;CAsBP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { unsafeCSS as l, html as o } from "lit";
|
|
2
|
+
import { property as i } from "lit/decorators.js";
|
|
3
|
+
import { E as m } from "../EdElement.js";
|
|
4
|
+
const h = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-card{display:flex;flex-direction:column;height:100%;width:100%;border-width:var(--ed-theme-border-width-sm);border-style:solid;border-color:var(--ed-theme-color-border-subtle);border-radius:var(--ed-theme-border-radius-md);box-shadow:var(--ed-theme-box-shadow-md);background:var(--ed-theme-color-background-default)}.ed-c-card--bare{border:0;padding:0;box-shadow:none}.ed-c-card--align-center{text-align:center;align-items:center;justify-content:center}::slotted(img){width:100%}.ed-c-card__header{display:block;flex:none}.ed-c-card__body{display:block;padding:1rem;flex:1 0 auto}.ed-c-card--bare .ed-c-card__body{padding:0}.ed-c-card__footer{display:block;flex:none;padding:1rem}.ed-c-card--bare .ed-c-card__footer{padding:0}";
|
|
5
|
+
var b = Object.defineProperty, n = (r, d, s, f) => {
|
|
6
|
+
for (var e = void 0, t = r.length - 1, c; t >= 0; t--)
|
|
7
|
+
(c = r[t]) && (e = c(d, s, e) || e);
|
|
8
|
+
return e && b(d, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
class a extends m {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return l(h);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const d = this.componentClassNames("ed-c-card", {
|
|
16
|
+
"ed-c-card--bare": this.variant === "bare",
|
|
17
|
+
"ed-c-card--align-center": this.align === "center"
|
|
18
|
+
});
|
|
19
|
+
return o`
|
|
20
|
+
<div class="${d}">
|
|
21
|
+
${this.slotNotEmpty("header") && o`<div class="ed-c-card__header">
|
|
22
|
+
<slot name="header"></slot>
|
|
23
|
+
</div>`}
|
|
24
|
+
<div class="ed-c-card__body">
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</div>
|
|
27
|
+
${this.slotNotEmpty("footer") && o`<div class="ed-c-card__footer">
|
|
28
|
+
<slot name="footer"></slot>
|
|
29
|
+
</div>`}
|
|
30
|
+
</div>
|
|
31
|
+
`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
n([
|
|
35
|
+
i()
|
|
36
|
+
], a.prototype, "variant");
|
|
37
|
+
n([
|
|
38
|
+
i()
|
|
39
|
+
], a.prototype, "align");
|
|
40
|
+
customElements.get("ed-card") === void 0 && customElements.define("ed-card", a);
|
|
41
|
+
export {
|
|
42
|
+
a as EdCard
|
|
43
|
+
};
|