@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,23 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
export declare class EdIconLinkListItem extends EdElement {
|
|
3
|
+
static get styles(): import('lit').CSSResult;
|
|
4
|
+
/**
|
|
5
|
+
* Icon name next to the text
|
|
6
|
+
*/
|
|
7
|
+
iconName?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Link URL
|
|
10
|
+
*/
|
|
11
|
+
href?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Link title
|
|
14
|
+
*/
|
|
15
|
+
linkTitle?: string;
|
|
16
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
17
|
+
}
|
|
18
|
+
declare global {
|
|
19
|
+
interface HTMLElementTagNameMap {
|
|
20
|
+
'ed-icon-link-list-item': EdIconLinkListItem;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=icon-link-list-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-link-list-item.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/icon-link-list-item/icon-link-list-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAItF,OAAO,cAAc,CAAC;AAGtB,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,MAAM;CAWP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,kBAAkB,CAAC;KAC9C;CACF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { E as a } from "../EdElement.js";
|
|
2
|
+
import { unsafeCSS as d, html as f } from "lit";
|
|
3
|
+
import { property as r } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined as s } from "lit-html/directives/if-defined.js";
|
|
5
|
+
import "../icon/icon.js";
|
|
6
|
+
const p = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-icon-link-list__link{color:var(--ed-theme-link-color-content-default)}";
|
|
7
|
+
var h = Object.defineProperty, l = (o, t, m, k) => {
|
|
8
|
+
for (var e = void 0, n = o.length - 1, c; n >= 0; n--)
|
|
9
|
+
(c = o[n]) && (e = c(t, m, e) || e);
|
|
10
|
+
return e && h(t, m, e), e;
|
|
11
|
+
};
|
|
12
|
+
class i extends a {
|
|
13
|
+
static get styles() {
|
|
14
|
+
return d(p);
|
|
15
|
+
}
|
|
16
|
+
render() {
|
|
17
|
+
const t = this.componentClassNames("ed-c-icon-link-list__item", {});
|
|
18
|
+
return f`
|
|
19
|
+
<li class="${t}">
|
|
20
|
+
<a class="ed-c-icon-link-list__link" href="${s(this.href)}" title="${s(this.linkTitle)}">
|
|
21
|
+
<ed-icon name="${s(this.iconName)}"></ed-icon>
|
|
22
|
+
</a>
|
|
23
|
+
</li>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
l([
|
|
28
|
+
r()
|
|
29
|
+
], i.prototype, "iconName");
|
|
30
|
+
l([
|
|
31
|
+
r()
|
|
32
|
+
], i.prototype, "href");
|
|
33
|
+
l([
|
|
34
|
+
r()
|
|
35
|
+
], i.prototype, "linkTitle");
|
|
36
|
+
customElements.get("ed-icon-link-list-item") === void 0 && customElements.define("ed-icon-link-list-item", i);
|
|
37
|
+
export {
|
|
38
|
+
i as EdIconLinkListItem
|
|
39
|
+
};
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The component content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdInlineCheckbox extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Error switch
|
|
9
|
+
*/
|
|
10
|
+
isError?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Success switch
|
|
13
|
+
*/
|
|
14
|
+
isSuccess?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* value attribute
|
|
17
|
+
*/
|
|
18
|
+
readOnly?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* disabled attribute
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* value attribute
|
|
25
|
+
*/
|
|
26
|
+
value?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Id
|
|
29
|
+
*/
|
|
30
|
+
fieldId?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Name attribute
|
|
33
|
+
*/
|
|
34
|
+
name?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Checked property
|
|
37
|
+
*/
|
|
38
|
+
checked?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Description or Error message for the field
|
|
41
|
+
*/
|
|
42
|
+
fieldNote?: any;
|
|
43
|
+
/**
|
|
44
|
+
* Required attribute
|
|
45
|
+
*/
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Optional label to appear after label text
|
|
49
|
+
*/
|
|
50
|
+
optionalLabel?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Icon to display in field note
|
|
53
|
+
*/
|
|
54
|
+
iconName?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Inverted variant
|
|
57
|
+
* 1) Used for dark backgrounds
|
|
58
|
+
*/
|
|
59
|
+
inverted?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* aria-describedby attribute property
|
|
62
|
+
*/
|
|
63
|
+
ariaDescribedBy?: string;
|
|
64
|
+
connectedCallback(): void;
|
|
65
|
+
handleOnChange(): void;
|
|
66
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'ed-inline-checkbox': EdInlineCheckbox;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=inline-checkbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-checkbox.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/inline-checkbox/inline-checkbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAKtF,OAAO,cAAc,CAAC;AAGtB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IAEH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IAEH,SAAS,CAAC,EAAE,GAAG,CAAC;IAEhB;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IAEH,aAAa,CAAC,EAAE,MAAM,CAAgB;IAEtC;;OAEG;IAEH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,iBAAiB;IAQjB,cAAc;IAId,MAAM;CA4CP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAC;KACxC;CACF"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { E as b } from "../EdElement.js";
|
|
2
|
+
import { unsafeCSS as p, html as l } from "lit";
|
|
3
|
+
import { property as o } from "lit/decorators.js";
|
|
4
|
+
import { ifDefined as n } from "lit-html/directives/if-defined.js";
|
|
5
|
+
import { n as h } from "../index.browser.js";
|
|
6
|
+
import "../icon/icon.js";
|
|
7
|
+
const k = `@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-inline-checkbox__container{display:flex;position:relative}.ed-c-inline-checkbox__label{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);position:relative;top:1px;margin-left:.5rem;flex:1}.ed-c-inline-checkbox.ed-is-disabled .ed-c-inline-checkbox__label{color:var(--ed-theme-color-content-disabled);cursor:not-allowed}.ed-c-inline-checkbox--inverted .ed-c-inline-checkbox__label{color:var(--ed-theme-color-content-knockout)}.ed-c-checkbox__input{display:block;margin:0;z-index:4;width:1.5rem;height:1.5rem;cursor:pointer;opacity:0}.ed-c-checkbox__input:disabled{cursor:not-allowed}.ed-c-checkbox__custom-check{position:absolute;inset:0;width:1.5rem;height:1.5rem;flex-shrink:0;z-index:1}.ed-c-checkbox__custom-check:before{content:"";position:absolute;inset:0;z-index:1;display:block;border:var(--ed-theme-border-width-sm) solid var(--ed-theme-form-color-border-default);background-color:var(--ed-theme-form-color-background-default);border-radius:var(--ed-theme-border-radius-sm)}.ed-c-checkbox__input:hover+.ed-c-checkbox__custom-check:before{border-color:var(--ed-theme-form-color-border-hover)}.ed-c-checkbox__input:disabled+.ed-c-checkbox__custom-check:before{border-color:var(--ed-theme-color-border-disabled);background-color:var(--ed-theme-color-background-disabled);cursor:not-allowed}.ed-c-checkbox__input:checked+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-knockout);border-color:transparent}.ed-c-checkbox__input:checked:hover+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-hover);border-color:transparent}.ed-c-checkbox__input:checked:disabled+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-disabled);border-color:transparent}.ed-c-checkbox__input:focus-visible+.ed-c-checkbox__custom-check:before{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-checkbox__custom-check ed-icon{--ed-icon-fill: var(--ed-theme-color-content-knockout);position:absolute;top:.25rem;left:.25rem;display:block;background-repeat:no-repeat;opacity:0;z-index:2}.ed-c-checkbox__input:checked+.ed-c-checkbox__custom-check ed-icon{opacity:1}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked):hover+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-hover);border-color:transparent}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked):disabled+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand-disabled);border-color:transparent}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked)+.ed-c-checkbox__custom-check:before{background-color:var(--ed-theme-color-background-brand);border-color:transparent}.ed-is-indeterminate .ed-c-checkbox__input:not(:checked)+.ed-c-checkbox__custom-check:after{opacity:1;width:10px;height:4px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 1.52'%3E%3Cpath d='M9.24,1.52H.76A.76.76,0,0,1,.76,0H9.24a.76.76,0,0,1,0,1.52Z' fill='%23ffffff'/%3E%3C/svg%3E")}`;
|
|
8
|
+
var u = Object.defineProperty, c = (d, r, a, m) => {
|
|
9
|
+
for (var t = void 0, i = d.length - 1, s; i >= 0; i--)
|
|
10
|
+
(s = d[i]) && (t = s(r, a, t) || t);
|
|
11
|
+
return t && u(r, a, t), t;
|
|
12
|
+
};
|
|
13
|
+
class e extends b {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments), this.optionalLabel = "(optional)";
|
|
16
|
+
}
|
|
17
|
+
static get styles() {
|
|
18
|
+
return p(k.toString());
|
|
19
|
+
}
|
|
20
|
+
connectedCallback() {
|
|
21
|
+
super.connectedCallback(), this.fieldId = this.fieldId || h(), this.fieldNote && (this.ariaDescribedBy = this.ariaDescribedBy || h());
|
|
22
|
+
}
|
|
23
|
+
handleOnChange() {
|
|
24
|
+
this.checked = !this.checked;
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
const r = this.componentClassNames("ed-c-inline-checkbox", {
|
|
28
|
+
"ed-c-inline-checkbox--inverted": this.inverted === !0,
|
|
29
|
+
"ed-is-error": this.isError === !0,
|
|
30
|
+
"ed-is-success": this.isSuccess === !0,
|
|
31
|
+
"ed-is-disabled": this.disabled === !0
|
|
32
|
+
});
|
|
33
|
+
return l`
|
|
34
|
+
<div class="${r}">
|
|
35
|
+
<div class="ed-c-inline-checkbox__container">
|
|
36
|
+
<input
|
|
37
|
+
id="${this.fieldId}"
|
|
38
|
+
type="checkbox"
|
|
39
|
+
name="${this.name}"
|
|
40
|
+
class="ed-c-checkbox__input"
|
|
41
|
+
value="${this.value}"
|
|
42
|
+
?checked="${this.checked}"
|
|
43
|
+
?disabled="${this.disabled}"
|
|
44
|
+
?readonly="${this.readOnly}"
|
|
45
|
+
@change=${this.handleOnChange}
|
|
46
|
+
aria-describedby="${n(this.ariaDescribedBy)}"
|
|
47
|
+
/>
|
|
48
|
+
<span class="ed-c-checkbox__custom-check">
|
|
49
|
+
<ed-icon name="check"></ed-icon>
|
|
50
|
+
</span>
|
|
51
|
+
<label class="ed-c-inline-checkbox__label" for="${this.fieldId}">
|
|
52
|
+
<slot></slot>
|
|
53
|
+
</label>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
${this.fieldNote && l`<ed-field-note
|
|
57
|
+
?inverted=${this.inverted}
|
|
58
|
+
id=${n(this.ariaDescribedBy)}
|
|
59
|
+
iconName=${n(this.iconName)}
|
|
60
|
+
?isSuccess=${this.isSuccess}
|
|
61
|
+
?isError=${this.isError}
|
|
62
|
+
>
|
|
63
|
+
${this.fieldNote}
|
|
64
|
+
</ed-field-note>`}
|
|
65
|
+
</div>
|
|
66
|
+
`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
c([
|
|
70
|
+
o({ type: Boolean })
|
|
71
|
+
], e.prototype, "isError");
|
|
72
|
+
c([
|
|
73
|
+
o({ type: Boolean })
|
|
74
|
+
], e.prototype, "isSuccess");
|
|
75
|
+
c([
|
|
76
|
+
o({ type: Boolean })
|
|
77
|
+
], e.prototype, "readOnly");
|
|
78
|
+
c([
|
|
79
|
+
o({ type: Boolean })
|
|
80
|
+
], e.prototype, "disabled");
|
|
81
|
+
c([
|
|
82
|
+
o()
|
|
83
|
+
], e.prototype, "value");
|
|
84
|
+
c([
|
|
85
|
+
o()
|
|
86
|
+
], e.prototype, "fieldId");
|
|
87
|
+
c([
|
|
88
|
+
o()
|
|
89
|
+
], e.prototype, "name");
|
|
90
|
+
c([
|
|
91
|
+
o({ type: Boolean })
|
|
92
|
+
], e.prototype, "checked");
|
|
93
|
+
c([
|
|
94
|
+
o()
|
|
95
|
+
], e.prototype, "fieldNote");
|
|
96
|
+
c([
|
|
97
|
+
o({ type: Boolean })
|
|
98
|
+
], e.prototype, "required");
|
|
99
|
+
c([
|
|
100
|
+
o()
|
|
101
|
+
], e.prototype, "optionalLabel");
|
|
102
|
+
c([
|
|
103
|
+
o()
|
|
104
|
+
], e.prototype, "iconName");
|
|
105
|
+
c([
|
|
106
|
+
o({ type: Boolean })
|
|
107
|
+
], e.prototype, "inverted");
|
|
108
|
+
c([
|
|
109
|
+
o()
|
|
110
|
+
], e.prototype, "ariaDescribedBy");
|
|
111
|
+
customElements.get("ed-inline-checkbox") === void 0 && customElements.define("ed-inline-checkbox", e);
|
|
112
|
+
export {
|
|
113
|
+
e as EdInlineCheckbox
|
|
114
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The rows of the table body
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdKeyValueTable extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Full width variant
|
|
9
|
+
* 1) Expands the key value table the full width of its container
|
|
10
|
+
*/
|
|
11
|
+
fullWidth?: boolean;
|
|
12
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
13
|
+
}
|
|
14
|
+
declare global {
|
|
15
|
+
interface HTMLElementTagNameMap {
|
|
16
|
+
'ed-key-value-table': EdKeyValueTable;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=key-value-table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-value-table.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/key-value-table/key-value-table.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;OAGG;IAEH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,MAAM;CAaP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,eAAe,CAAC;KACvC;CACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { unsafeCSS as b, html as r } from "lit";
|
|
2
|
+
import { property as n } from "lit/decorators.js";
|
|
3
|
+
import { E as i } from "../EdElement.js";
|
|
4
|
+
const u = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:contents}.ed-c-key-value-table{border-collapse:collapse}.ed-c-key-value-table--full-width{width:100%}.ed-c-key-value-table__body{border-top:1px solid var(--ed-theme-color-border-subtle)}";
|
|
5
|
+
var c = Object.defineProperty, m = (l, t, s, y) => {
|
|
6
|
+
for (var e = void 0, o = l.length - 1, a; o >= 0; o--)
|
|
7
|
+
(a = l[o]) && (e = a(t, s, e) || e);
|
|
8
|
+
return e && c(t, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
class d extends i {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return b(u);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = this.componentClassNames("ed-c-key-value-table", {
|
|
16
|
+
"ed-c-key-value-table--full-width": this.fullWidth === !0
|
|
17
|
+
});
|
|
18
|
+
return r`
|
|
19
|
+
<table class="${t}">
|
|
20
|
+
<tbody class="ed-c-key-value-table__body">
|
|
21
|
+
${r`<slot></slot>`}
|
|
22
|
+
</tbody>
|
|
23
|
+
</table>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
m([
|
|
28
|
+
n({ type: Boolean })
|
|
29
|
+
], d.prototype, "fullWidth");
|
|
30
|
+
customElements.get("ed-key-value-table") === void 0 && customElements.define("ed-key-value-table", d);
|
|
31
|
+
export {
|
|
32
|
+
d as EdKeyValueTable
|
|
33
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
export declare class EdKeyValueTableRow extends EdElement {
|
|
3
|
+
static get styles(): import('lit').CSSResult;
|
|
4
|
+
/**
|
|
5
|
+
* Key
|
|
6
|
+
* 1) The key in the key value pair that sits on the left
|
|
7
|
+
*/
|
|
8
|
+
key?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Value
|
|
11
|
+
* 1) The value in the key value pair that sits on the right
|
|
12
|
+
*/
|
|
13
|
+
value?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Alignment variant. Default is aligned right
|
|
16
|
+
* <ed-text-passage size="sm">
|
|
17
|
+
* <ul>
|
|
18
|
+
* <li>**left** aligns the key value table value to the leftmost edge of the component</li>
|
|
19
|
+
* </ul>
|
|
20
|
+
* </ed-text-passage>
|
|
21
|
+
*/
|
|
22
|
+
align?: 'left';
|
|
23
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
declare global {
|
|
26
|
+
interface HTMLElementTagNameMap {
|
|
27
|
+
'ed-key-value-table-row': EdKeyValueTableRow;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=key-value-table-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"key-value-table-row.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/key-value-table-row/key-value-table-row.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;OAGG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;OAGG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;;;;;OAOG;IAEH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM;CAYP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,kBAAkB,CAAC;KAC9C;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { unsafeCSS as i, html as y } from "lit";
|
|
2
|
+
import { property as l } from "lit/decorators.js";
|
|
3
|
+
import { E as h } from "../EdElement.js";
|
|
4
|
+
const p = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:contents}.ed-c-key-value-table__row{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);width:100%;border-bottom:1px solid var(--ed-theme-color-border-subtle)}.ed-c-key-value-table-row__key{padding:.375rem 2rem .375rem 0;text-align:left}.ed-c-key-value-table-row__value{padding:.375rem 0;text-align:right}.ed-c-key-value-table__row--align-left .ed-c-key-value-table-row__value{text-align:left}";
|
|
5
|
+
var f = Object.defineProperty, d = (o, t, s, m) => {
|
|
6
|
+
for (var e = void 0, r = o.length - 1, n; r >= 0; r--)
|
|
7
|
+
(n = o[r]) && (e = n(t, s, e) || e);
|
|
8
|
+
return e && f(t, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
class a extends h {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return i(p);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = this.componentClassNames("ed-c-key-value-table__row", {
|
|
16
|
+
"ed-c-key-value-table__row--align-left": this.align === "left"
|
|
17
|
+
});
|
|
18
|
+
return y`
|
|
19
|
+
<tr class="${t}">
|
|
20
|
+
<th scope="row" class="ed-c-key-value-table-row__key">${this.key}</th>
|
|
21
|
+
<td class="ed-c-key-value-table-row__value">${this.value}</td>
|
|
22
|
+
</tr>
|
|
23
|
+
`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
d([
|
|
27
|
+
l()
|
|
28
|
+
], a.prototype, "key");
|
|
29
|
+
d([
|
|
30
|
+
l()
|
|
31
|
+
], a.prototype, "value");
|
|
32
|
+
d([
|
|
33
|
+
l()
|
|
34
|
+
], a.prototype, "align");
|
|
35
|
+
customElements.get("ed-key-value-table-row") === void 0 && customElements.define("ed-key-value-table-row", a);
|
|
36
|
+
export {
|
|
37
|
+
a as EdKeyValueTableRow
|
|
38
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The layout content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdLayout extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Break variant
|
|
9
|
+
* <ed-text-passage size="sm">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li> **faster** breaks the grid at a smaller width than the default.
|
|
12
|
+
* Example: Sidebar breaks underneath main layout section at smaller breakpoint than default</li>
|
|
13
|
+
* <li> **slower** breaks the grid at a larger width than the default.
|
|
14
|
+
* Example: Sidebar breaks underneath main layout section at wider breakpoint than default</li>
|
|
15
|
+
* <li> **none** the grid does not break.</li>
|
|
16
|
+
* </ul>
|
|
17
|
+
* </ed-text-passage>
|
|
18
|
+
*/
|
|
19
|
+
break?: 'faster' | 'slower' | 'none';
|
|
20
|
+
/**
|
|
21
|
+
* Gap variant
|
|
22
|
+
* <ed-text-passage size="sm">
|
|
23
|
+
* <ul>
|
|
24
|
+
* <li>The default spacing is 16px
|
|
25
|
+
* <li>**none** yields a layout whose layout sections are spaced without any gutter in between on large screens.
|
|
26
|
+
* Small screens gap sits at 16px.</li>
|
|
27
|
+
* <li>**sm** yields a layout whose layout sections are spaced 8px apart on large screens. Small screens gutters move to 16px between.</li>
|
|
28
|
+
* <li>**lg** yields a layout whose layout sections are spaced 24px apart on large screens. Small screens gutters move to 16px between.</li>
|
|
29
|
+
* <li>**xl** yields a layout whose layout sections are spaced 32px apart on large screens. Small screens gutters move to 16px between.</li>
|
|
30
|
+
* </ul>
|
|
31
|
+
* </ed-text-passage>
|
|
32
|
+
*/
|
|
33
|
+
gap?: 'none' | 'sm' | 'lg' | 'xl';
|
|
34
|
+
/**
|
|
35
|
+
* Style variants
|
|
36
|
+
* <ed-text-passage size="sm">
|
|
37
|
+
* <ul>
|
|
38
|
+
* <li>**left-sidebar** formats the first `layout-section` component as a left sidebar</li>
|
|
39
|
+
* </ul>
|
|
40
|
+
* </ed-text-passage>
|
|
41
|
+
*/
|
|
42
|
+
variant?: 'left-sidebar';
|
|
43
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'ed-layout': EdLayout;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=layout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/layout/layout.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,QAAS,SAAQ,SAAS;IACrC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;;;;OAWG;IAEH,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC;IAErC;;;;;;;;;;;;OAYG;IAEH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAElC;;;;;;;OAOG;IAEH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB,MAAM;CAiBP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,WAAW,EAAE,QAAQ,CAAC;KACvB;CACF"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { unsafeCSS as o, html as s } from "lit";
|
|
2
|
+
import { property as l } from "lit/decorators.js";
|
|
3
|
+
import { E as c } from "../EdElement.js";
|
|
4
|
+
const u = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-layout{display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}@media all and (min-width:60rem){.ed-c-layout{grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 1)}}@media all and (min-width:48rem){.ed-c-layout--break-faster{grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 1)}}@media all and (min-width:60rem){.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr)}}@media all and (min-width:75rem){.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 1)}}@media all and (min-width:60rem){.ed-c-layout--gap-none{gap:0;grid-template-columns:minmax(0,1fr) var(--ed-sidebar-width, 40%)}}@media all and (min-width:48rem){.ed-c-layout--gap-none.ed-c-layout--break-faster{gap:0;grid-template-columns:minmax(0,1fr) var(--ed-sidebar-width, 40%)}}@media all and (min-width:60rem){.ed-c-layout--gap-none.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr);gap:1rem}}@media all and (min-width:75rem){.ed-c-layout--gap-none.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr) var(--ed-sidebar-width, 40%)}}@media all and (min-width:60rem){.ed-c-layout--gap-sm{gap:.5rem;grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * .5)}}@media all and (min-width:48rem){.ed-c-layout--gap-sm.ed-c-layout--break-faster{gap:0;grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * .5)}}@media all and (min-width:60rem){.ed-c-layout--gap-sm.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr);gap:1rem}}@media all and (min-width:75rem){.ed-c-layout--gap-sm.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * .5)}}@media all and (min-width:60rem){.ed-c-layout--gap-lg{gap:1.5rem;grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 1.5)}}@media all and (min-width:48rem){.ed-c-layout--gap-lg.ed-c-layout--break-faster{gap:0;grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 1.5)}}@media all and (min-width:60rem){.ed-c-layout--gap-lg.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr);gap:1rem}}@media all and (min-width:75rem){.ed-c-layout--gap-lg.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 1.5)}}@media all and (min-width:60rem){.ed-c-layout--gap-xl{gap:2rem;grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 2)}}@media all and (min-width:48rem){.ed-c-layout--gap-xl.ed-c-layout--break-faster{gap:0;grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 2)}}@media all and (min-width:60rem){.ed-c-layout--gap-xl.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr);gap:1rem}}@media all and (min-width:75rem){.ed-c-layout--gap-xl.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr) calc(var(--ed-sidebar-width, 40%) - .5rem * 2)}}@media all and (min-width:60rem){.ed-c-layout--left-sidebar{grid-template-columns:calc(var(--ed-sidebar-width, 40%) - .5rem * 1) minmax(0,1fr)}}@media all and (min-width:48rem){.ed-c-layout--left-sidebar.ed-c-layout--break-faster{grid-template-columns:calc(var(--ed-sidebar-width, 40%) - .5rem * 1) minmax(0,1fr)}}@media all and (min-width:60rem){.ed-c-layout--left-sidebar.ed-c-layout--break-slower{grid-template-columns:minmax(0,1fr)}}@media all and (min-width:75rem){.ed-c-layout--left-sidebar.ed-c-layout--break-slower{grid-template-columns:calc(var(--ed-sidebar-width, 40%) - .5rem * 1) minmax(0,1fr)}}";
|
|
5
|
+
var p = Object.defineProperty, t = (m, e, i, g) => {
|
|
6
|
+
for (var a = void 0, r = m.length - 1, n; r >= 0; r--)
|
|
7
|
+
(n = m[r]) && (a = n(e, i, a) || a);
|
|
8
|
+
return a && p(e, i, a), a;
|
|
9
|
+
};
|
|
10
|
+
class d extends c {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return o(u);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const e = this.componentClassNames("ed-c-layout", {
|
|
16
|
+
"ed-c-layout--left-sidebar": this.variant === "left-sidebar",
|
|
17
|
+
"ed-c-layout--gap-none": this.gap === "none",
|
|
18
|
+
"ed-c-layout--gap-sm": this.gap === "sm",
|
|
19
|
+
"ed-c-layout--gap-lg": this.gap === "lg",
|
|
20
|
+
"ed-c-layout--gap-xl": this.gap === "xl",
|
|
21
|
+
"ed-c-layout--break-faster": this.break === "faster",
|
|
22
|
+
"ed-c-layout--break-slower": this.break === "slower"
|
|
23
|
+
});
|
|
24
|
+
return s`
|
|
25
|
+
<div class="${e}">
|
|
26
|
+
<slot></slot>
|
|
27
|
+
</div>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
t([
|
|
32
|
+
l()
|
|
33
|
+
], d.prototype, "break");
|
|
34
|
+
t([
|
|
35
|
+
l()
|
|
36
|
+
], d.prototype, "gap");
|
|
37
|
+
t([
|
|
38
|
+
l()
|
|
39
|
+
], d.prototype, "variant");
|
|
40
|
+
customElements.get("ed-layout") === void 0 && customElements.define("ed-layout", d);
|
|
41
|
+
export {
|
|
42
|
+
d as EdLayout
|
|
43
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The contents of the layout container
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdLayoutContainer 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-layout-container': EdLayoutContainer;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=layout-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-container.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/layout-container/layout-container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,SAAS;IAC9C,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,qBAAqB,EAAE,iBAAiB,CAAC;KAC1C;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { unsafeCSS as e, html as o } from "lit";
|
|
2
|
+
import { E as s } from "../EdElement.js";
|
|
3
|
+
const n = '@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-l-layout-container{width:100%;max-width:70rem;padding-right:1rem;padding-left:1rem;margin:0 auto}';
|
|
4
|
+
class r extends s {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return e(n);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const t = this.componentClassNames("ed-l-layout-container", {});
|
|
10
|
+
return o`
|
|
11
|
+
<div class="${t}">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
customElements.get("ed-layout-container") === void 0 && customElements.define("ed-layout-container", r);
|
|
18
|
+
export {
|
|
19
|
+
r as EdLayoutContainer
|
|
20
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The content of the layout section
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdLayoutSection extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Behavioral variants
|
|
9
|
+
* <ed-text-passage size="sm">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li>**sticky** allows the layout section to stick to the screen until the section reaches the bottom of the layout or the next layout section.</li>
|
|
12
|
+
* </ul>
|
|
13
|
+
* </ed-text-passage>
|
|
14
|
+
*/
|
|
15
|
+
behavior?: 'sticky';
|
|
16
|
+
/**
|
|
17
|
+
* Top style
|
|
18
|
+
* 1) Used to create dynamic sticky containers that can be adjusted based on the content
|
|
19
|
+
*/
|
|
20
|
+
top?: string;
|
|
21
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
22
|
+
}
|
|
23
|
+
declare global {
|
|
24
|
+
interface HTMLElementTagNameMap {
|
|
25
|
+
'ed-layout-section': EdLayoutSection;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=layout-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-section.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/layout-section/layout-section.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,eAAgB,SAAQ,SAAS;IAC5C,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IAEH,GAAG,CAAC,EAAE,MAAM,CAAU;IAEtB,MAAM;CAWP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { unsafeCSS as l, html as m } from "lit";
|
|
2
|
+
import { property as a } from "lit/decorators.js";
|
|
3
|
+
import { E as d } from "../EdElement.js";
|
|
4
|
+
const p = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-layout-section{width:100%}";
|
|
5
|
+
var u = Object.defineProperty, c = (o, e, i, h) => {
|
|
6
|
+
for (var t = void 0, s = o.length - 1, n; s >= 0; s--)
|
|
7
|
+
(n = o[s]) && (t = n(e, i, t) || t);
|
|
8
|
+
return t && u(e, i, t), t;
|
|
9
|
+
};
|
|
10
|
+
class r extends d {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments), this.top = "1rem";
|
|
13
|
+
}
|
|
14
|
+
static get styles() {
|
|
15
|
+
return l(p);
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
const e = this.componentClassNames("ed-c-layout-section", {
|
|
19
|
+
"ed-c-layout-section--sticky": this.behavior === "sticky"
|
|
20
|
+
});
|
|
21
|
+
return m`
|
|
22
|
+
<div class="${e}" style=${"top: " + this.top}>
|
|
23
|
+
<slot></slot>
|
|
24
|
+
</div>
|
|
25
|
+
`;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
c([
|
|
29
|
+
a()
|
|
30
|
+
], r.prototype, "behavior");
|
|
31
|
+
c([
|
|
32
|
+
a()
|
|
33
|
+
], r.prototype, "top");
|
|
34
|
+
customElements.get("ed-layout-section") === void 0 && customElements.define("ed-layout-section", r);
|
|
35
|
+
export {
|
|
36
|
+
r as EdLayoutSection
|
|
37
|
+
};
|
|
@@ -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 EdLinelengthContainer 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-linelength-container': EdLinelengthContainer;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=linelength-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linelength-container.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/linelength-container/linelength-container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AAEH,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,yBAAyB,EAAE,qBAAqB,CAAC;KAClD;CACF"}
|