@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,20 @@
|
|
|
1
|
+
import { unsafeCSS as t, html as n } from "lit";
|
|
2
|
+
import { E as s } from "../EdElement.js";
|
|
3
|
+
const o = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-linelength-container{max-width:var(--ed-l-linelength-width)}";
|
|
4
|
+
class i extends s {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return t(o.toString());
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.componentClassNames("ed-c-linelength-container", {});
|
|
10
|
+
return n`
|
|
11
|
+
<div class="${e}">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
customElements.get("ed-linelength-container") === void 0 && customElements.define("ed-linelength-container", i);
|
|
18
|
+
export {
|
|
19
|
+
i as EdLinelengthContainer
|
|
20
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The link list items
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdLinkList extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Behavioral variant
|
|
9
|
+
* <ed-text-passage size="sm">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li>**responsive** renders a horizontal wrapping link list that converts to a stacked link list on large screens</li>
|
|
12
|
+
* <li>**horizontal** renders a horizontal wrapping link list on all screens</li>
|
|
13
|
+
* </ul>
|
|
14
|
+
* </ed-text-passage>
|
|
15
|
+
*/
|
|
16
|
+
behavior?: 'responsive' | 'horizontal';
|
|
17
|
+
/**
|
|
18
|
+
* Inverted variant
|
|
19
|
+
* 1) Used for dark backgrounds
|
|
20
|
+
*/
|
|
21
|
+
inverted?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Size variants
|
|
24
|
+
* <ed-text-passage size="sm">
|
|
25
|
+
* <ul>
|
|
26
|
+
* <li>**sm** renders a link list with a smaller typography</li>
|
|
27
|
+
* </ul>
|
|
28
|
+
* </ed-text-passage>
|
|
29
|
+
*/
|
|
30
|
+
size?: 'sm';
|
|
31
|
+
/**
|
|
32
|
+
* Spacing between link list items
|
|
33
|
+
* <ed-text-passage size="sm">
|
|
34
|
+
* <ul>
|
|
35
|
+
* <li>**condensed** renders a link list with a more compact display</li>
|
|
36
|
+
* </ul>
|
|
37
|
+
* </ed-text-passage>
|
|
38
|
+
*/
|
|
39
|
+
spacing?: 'condensed';
|
|
40
|
+
/**
|
|
41
|
+
* Style variants
|
|
42
|
+
* <ed-text-passage size="sm">
|
|
43
|
+
* <ul>
|
|
44
|
+
* <li>**secondary** renders a link list with a more subtle visual treatment</li>
|
|
45
|
+
* </ul>
|
|
46
|
+
* </ed-text-passage>
|
|
47
|
+
*/
|
|
48
|
+
variant?: 'secondary';
|
|
49
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
50
|
+
}
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
'ed-link-list': EdLinkList;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=link-list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-list.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/link-list/link-list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,UAAW,SAAQ,SAAS;IACvC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;;OAQG;IAEH,QAAQ,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IAEvC;;;OAGG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;OAOG;IAEH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;;;;;OAOG;IAEH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB;;;;;;;OAOG;IAEH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,MAAM;CAgBP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { unsafeCSS as d, html as m } from "lit";
|
|
2
|
+
import { property as i } from "lit/decorators.js";
|
|
3
|
+
import { E as p } 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-link-list{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);display:flex;flex-direction:column;padding:0;margin-top:-1rem;list-style:none;color:var(--ed-theme-link-color-content-default)}.ed-c-link-list ::slotted(ed-link-list-item){margin-top:1rem}.ed-c-link-list--secondary{--ed-link-list-item-active-text-color: var(--ed-theme-color-content-default);color:var(--ed-theme-color-content-subtle)}.ed-c-link-list--inverted{color:var(--ed-theme-color-content-knockout)}.ed-c-link-list--display{color:var(--ed-theme-color-content-default)}.ed-c-link-list--condensed{margin-top:-.625rem}.ed-c-link-list--condensed ::slotted(ed-link-list-item){margin-top:.625rem}.ed-c-link-list--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-link-list--horizontal{flex-direction:row;flex-wrap:wrap;margin:-.5rem 0 0 -1rem}.ed-c-link-list--horizontal ::slotted(ed-link-list-item){margin-top:.5rem;margin-left:1rem}@media all and (max-width:48rem){.ed-c-link-list--responsive{flex-direction:row;flex-wrap:wrap;margin:-.5rem 0 0 -1rem}.ed-c-link-list--responsive ::slotted(ed-link-list-item){margin-top:.5rem;margin-left:1rem}}";
|
|
5
|
+
var c = Object.defineProperty, o = (n, r, s, y) => {
|
|
6
|
+
for (var e = void 0, l = n.length - 1, a; l >= 0; l--)
|
|
7
|
+
(a = n[l]) && (e = a(r, s, e) || e);
|
|
8
|
+
return e && c(r, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
class t extends p {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return d(h);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const r = this.componentClassNames("ed-c-link-list", {
|
|
16
|
+
"ed-c-link-list--secondary": this.variant === "secondary",
|
|
17
|
+
"ed-c-link-list--inverted": this.inverted === !0,
|
|
18
|
+
"ed-c-link-list--responsive": this.behavior === "responsive",
|
|
19
|
+
"ed-c-link-list--horizontal": this.behavior === "horizontal",
|
|
20
|
+
"ed-c-link-list--condensed": this.spacing === "condensed",
|
|
21
|
+
"ed-c-link-list--sm": this.size === "sm"
|
|
22
|
+
});
|
|
23
|
+
return m`
|
|
24
|
+
<ul class="${r}">
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</ul>
|
|
27
|
+
`;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
o([
|
|
31
|
+
i()
|
|
32
|
+
], t.prototype, "behavior");
|
|
33
|
+
o([
|
|
34
|
+
i({ type: Boolean })
|
|
35
|
+
], t.prototype, "inverted");
|
|
36
|
+
o([
|
|
37
|
+
i()
|
|
38
|
+
], t.prototype, "size");
|
|
39
|
+
o([
|
|
40
|
+
i()
|
|
41
|
+
], t.prototype, "spacing");
|
|
42
|
+
o([
|
|
43
|
+
i()
|
|
44
|
+
], t.prototype, "variant");
|
|
45
|
+
customElements.get("ed-link-list") === void 0 && customElements.define("ed-link-list", t);
|
|
46
|
+
export {
|
|
47
|
+
t as EdLinkList
|
|
48
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The default slot to put badges or other components
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdLinkListItem extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* The link text
|
|
9
|
+
*/
|
|
10
|
+
text?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Active link
|
|
13
|
+
*/
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The link URL
|
|
17
|
+
*/
|
|
18
|
+
href?: string;
|
|
19
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
'ed-link-list-item': EdLinkListItem;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=link-list-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link-list-item.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/link-list-item/link-list-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM;CAeP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,cAAc,CAAC;KACrC;CACF"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { unsafeCSS as a, html as d } from "lit";
|
|
2
|
+
import { ifDefined as c } from "lit-html/directives/if-defined.js";
|
|
3
|
+
import { property as n } from "lit/decorators.js";
|
|
4
|
+
import { E as f } from "../EdElement.js";
|
|
5
|
+
const _ = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-link-list__item{display:flex;align-items:center}.ed-c-link-list__link{color:inherit;text-decoration:none}.ed-c-link-list__link:hover,.ed-c-link-list__link:focus{text-decoration:underline}.ed-c-link-list__item.ed-is-active .ed-c-link-list__link{color:var(--ed-link-list-item-active-text-color);font-weight:var(--ed-font-weight-bold)}.ed-c-link-list__item-after{margin-left:.5rem}";
|
|
6
|
+
var h = Object.defineProperty, o = (s, t, r, p) => {
|
|
7
|
+
for (var e = void 0, l = s.length - 1, m; l >= 0; l--)
|
|
8
|
+
(m = s[l]) && (e = m(t, r, e) || e);
|
|
9
|
+
return e && h(t, r, e), e;
|
|
10
|
+
};
|
|
11
|
+
class i extends f {
|
|
12
|
+
static get styles() {
|
|
13
|
+
return a(_);
|
|
14
|
+
}
|
|
15
|
+
render() {
|
|
16
|
+
const t = this.componentClassNames("ed-c-link-list__item", {
|
|
17
|
+
"ed-is-active": this.isActive === !0
|
|
18
|
+
});
|
|
19
|
+
return d`
|
|
20
|
+
<li class="${t}">
|
|
21
|
+
<a class="ed-c-link-list__link" href="${c(this.href)}"> ${this.text} </a>
|
|
22
|
+
${this.slotNotEmpty("itemAfter") && d`<div class="ed-c-link-list__item-after">
|
|
23
|
+
<slot name="itemAfter"></slot>
|
|
24
|
+
</div>`}
|
|
25
|
+
</li>
|
|
26
|
+
`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
o([
|
|
30
|
+
n()
|
|
31
|
+
], i.prototype, "text");
|
|
32
|
+
o([
|
|
33
|
+
n({ type: Boolean })
|
|
34
|
+
], i.prototype, "isActive");
|
|
35
|
+
o([
|
|
36
|
+
n()
|
|
37
|
+
], i.prototype, "href");
|
|
38
|
+
customElements.get("ed-link-list-item") === void 0 && customElements.define("ed-link-list-item", i);
|
|
39
|
+
export {
|
|
40
|
+
i as EdLinkListItem
|
|
41
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The list items
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdList extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Style variants
|
|
9
|
+
* <ed-text-passage size="sm">
|
|
10
|
+
* <ul>
|
|
11
|
+
* <li>**bare** removes any lines from in between list items</li>
|
|
12
|
+
* </ul>
|
|
13
|
+
* </ed-text-passage>
|
|
14
|
+
*/
|
|
15
|
+
variant?: 'bare';
|
|
16
|
+
/**
|
|
17
|
+
* Spacing variants
|
|
18
|
+
* <ed-text-passage size="sm">
|
|
19
|
+
* <ul>
|
|
20
|
+
* <li>**padded** applies more padding in between list items compared to the default</li>
|
|
21
|
+
* <li>**condensed** reduces padding in between list items compared to the default</li>
|
|
22
|
+
* </ul>
|
|
23
|
+
* </ed-text-passage>
|
|
24
|
+
*/
|
|
25
|
+
spacing?: 'padded' | 'condensed';
|
|
26
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
'ed-list': EdList;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/list/list.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;;OAQG;IAEH,OAAO,CAAC,EAAE,QAAQ,GAAG,WAAW,CAAC;IAEjC,MAAM;CAaP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { unsafeCSS as a, html as m } from "lit";
|
|
2
|
+
import { property as n } from "lit/decorators.js";
|
|
3
|
+
import { E as p } from "../EdElement.js";
|
|
4
|
+
const c = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-list{list-style:none;padding:0;margin:0;margin-bottom:1rem}::slotted(ed-list-item){display:block;padding-top:1rem;padding-bottom:1rem;border-bottom:1px solid var(--ed-theme-color-border-subtle)}.ed-c-list--bare ::slotted(ed-list-item){border-bottom:0}.ed-c-list--condensed ::slotted(ed-list-item){padding-top:.5rem;padding-bottom:.5rem}.ed-c-list--padded ::slotted(ed-list-item){padding-top:2rem;padding-bottom:2rem}";
|
|
5
|
+
var b = Object.defineProperty, l = (d, t, i, g) => {
|
|
6
|
+
for (var e = void 0, s = d.length - 1, r; s >= 0; s--)
|
|
7
|
+
(r = d[s]) && (e = r(t, i, e) || e);
|
|
8
|
+
return e && b(t, i, e), e;
|
|
9
|
+
};
|
|
10
|
+
class o extends p {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return a(c);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = this.componentClassNames("ed-c-list", {
|
|
16
|
+
"ed-c-list--bare": this.variant === "bare",
|
|
17
|
+
"ed-c-list--padded": this.spacing === "padded",
|
|
18
|
+
"ed-c-list--condensed": this.spacing === "condensed"
|
|
19
|
+
});
|
|
20
|
+
return m`
|
|
21
|
+
<div class="${t}">
|
|
22
|
+
<slot></slot>
|
|
23
|
+
</div>
|
|
24
|
+
`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
l([
|
|
28
|
+
n()
|
|
29
|
+
], o.prototype, "variant");
|
|
30
|
+
l([
|
|
31
|
+
n()
|
|
32
|
+
], o.prototype, "spacing");
|
|
33
|
+
customElements.get("ed-list") === void 0 && customElements.define("ed-list", o);
|
|
34
|
+
export {
|
|
35
|
+
o as EdList
|
|
36
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The content of the list item
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdListItem 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-list-item': EdListItem;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=list-item.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-item.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/list-item/list-item.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,UAAW,SAAQ,SAAS;IACvC,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,UAAU,CAAC;KAC5B;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { unsafeCSS as t, html as s } from "lit";
|
|
2
|
+
import { E as o } from "../EdElement.js";
|
|
3
|
+
const i = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}";
|
|
4
|
+
class m extends o {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return t(i);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.componentClassNames("ed-c-list__item", {});
|
|
10
|
+
return s`
|
|
11
|
+
<li class="${e}">
|
|
12
|
+
<slot></slot>
|
|
13
|
+
</li>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
customElements.get("ed-list-item") === void 0 && customElements.define("ed-list-item", m);
|
|
18
|
+
export {
|
|
19
|
+
m as EdListItem
|
|
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 EdLoadingIndicator 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-loading-indicator': EdLoadingIndicator;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=loading-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading-indicator.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/loading-indicator/loading-indicator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { unsafeCSS as o, html as t } from "lit";
|
|
2
|
+
import { E as n } from "../EdElement.js";
|
|
3
|
+
const i = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}ed-icon{display:inline-block;--ed-icon-height: 5rem;--ed-icon-width: 5rem;--ed-icon-fill: var(--ed-theme-color-content-brand-knockout);animation:rotateIcon 2s linear infinite}@keyframes rotateIcon{0%{transform:rotate(0)}to{transform:rotate(360deg)}}";
|
|
4
|
+
class r extends n {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return o(i.toString());
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.componentClassNames("ed-c-loading-indicator", {});
|
|
10
|
+
return t`
|
|
11
|
+
<div class="${e}">
|
|
12
|
+
<ed-icon aria-hidden="true" name="spinner" class="ed-c-loading-indicator__icon"></ed-icon>
|
|
13
|
+
</div>
|
|
14
|
+
`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
customElements.get("ed-loading-indicator") === void 0 && customElements.define("ed-loading-indicator", r);
|
|
18
|
+
export {
|
|
19
|
+
r as EdLoadingIndicator
|
|
20
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The logo element
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdLogo extends EdElement {
|
|
6
|
+
static get styles(): import('lit').CSSResult;
|
|
7
|
+
/**
|
|
8
|
+
* Logo link
|
|
9
|
+
*/
|
|
10
|
+
href?: string;
|
|
11
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
12
|
+
}
|
|
13
|
+
declare global {
|
|
14
|
+
interface HTMLElementTagNameMap {
|
|
15
|
+
'ed-logo': EdLogo;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=logo.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logo.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/logo/logo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAKtF;;GAEG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { E as n } from "../EdElement.js";
|
|
2
|
+
import { unsafeCSS as a, html as i } from "lit";
|
|
3
|
+
import { property as d } from "lit/decorators.js";
|
|
4
|
+
const f = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-logo{display:block;max-width:20rem}";
|
|
5
|
+
var h = Object.defineProperty, c = (t, o, r, p) => {
|
|
6
|
+
for (var e = void 0, s = t.length - 1, l; s >= 0; s--)
|
|
7
|
+
(l = t[s]) && (e = l(o, r, e) || e);
|
|
8
|
+
return e && h(o, r, e), e;
|
|
9
|
+
};
|
|
10
|
+
class m extends n {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return a(f);
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const o = this.componentClassNames("ed-c-logo", {});
|
|
16
|
+
return i`
|
|
17
|
+
<a href="${this.href}" class="${o}">
|
|
18
|
+
<img src="/images/120x40.svg" alt="Alt" />
|
|
19
|
+
</a>
|
|
20
|
+
`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
c([
|
|
24
|
+
d()
|
|
25
|
+
], m.prototype, "href");
|
|
26
|
+
customElements.get("ed-logo") === void 0 && customElements.define("ed-logo", m);
|
|
27
|
+
export {
|
|
28
|
+
m as EdLogo
|
|
29
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The main content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdMain 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-main': EdMain;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/main/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,MAAO,SAAQ,SAAS;IACnC,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CAKP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { unsafeCSS as s, html as t } from "lit";
|
|
2
|
+
import { E as o } from "../EdElement.js";
|
|
3
|
+
const n = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}:host{display:block;flex:1 0 auto}";
|
|
4
|
+
class m extends o {
|
|
5
|
+
static get styles() {
|
|
6
|
+
return s(n);
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const e = this.componentClassNames("ed-c-main", {});
|
|
10
|
+
return t`<main class=${e}><slot></slot></main>`;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
customElements.get("ed-main") === void 0 && customElements.define("ed-main", m);
|
|
14
|
+
export {
|
|
15
|
+
m as EdMain
|
|
16
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The block content
|
|
4
|
+
* @slot media - Any associated media
|
|
5
|
+
*/
|
|
6
|
+
export declare class EdMediaBlock extends EdElement {
|
|
7
|
+
static get styles(): import('lit').CSSResult;
|
|
8
|
+
/**
|
|
9
|
+
* Behavior variants
|
|
10
|
+
* <ed-text-passage size="sm">
|
|
11
|
+
* <ul>
|
|
12
|
+
* <li>**reversed** reorders the media and body so that the image is placed on the right</li>
|
|
13
|
+
* </ul>
|
|
14
|
+
* </ed-text-passage>
|
|
15
|
+
*/
|
|
16
|
+
behavior?: 'reversed';
|
|
17
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
18
|
+
}
|
|
19
|
+
declare global {
|
|
20
|
+
interface HTMLElementTagNameMap {
|
|
21
|
+
'ed-media-block': EdMediaBlock;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=media-block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-block.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/media-block/media-block.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;;GAGG;AACH,qBAAa,YAAa,SAAQ,SAAS;IACzC,MAAM,KAAK,MAAM,4BAEhB;IAED;;;;;;;OAOG;IAEH,QAAQ,CAAC,EAAE,UAAU,CAAC;IAEtB,MAAM;CAkBP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { unsafeCSS as s, html as i } from "lit";
|
|
2
|
+
import { property as l } from "lit/decorators.js";
|
|
3
|
+
import { E as n } from "../EdElement.js";
|
|
4
|
+
const c = ":root,:host{--size-base-unit: .5rem}*,::slotted(*),*:before,*:after{box-sizing:border-box}h1,h2,h3,h4,h5,h6{margin:0}.ed-c-media-block{display:flex;align-items:center;gap:2rem;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)}.ed-c-media-block__media{margin-right:1rem;max-width:10rem}.ed-c-media-block--reversed .ed-c-media-block__media{order:2;margin-right:0;margin-left:2rem}.ed-c-media-block__body{flex:1}";
|
|
5
|
+
var h = Object.defineProperty, f = (o, t, r, p) => {
|
|
6
|
+
for (var e = void 0, d = o.length - 1, a; d >= 0; d--)
|
|
7
|
+
(a = o[d]) && (e = a(t, r, e) || e);
|
|
8
|
+
return e && h(t, r, e), e;
|
|
9
|
+
};
|
|
10
|
+
class m extends n {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return s(c.toString());
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
const t = this.componentClassNames("ed-c-media-block", {
|
|
16
|
+
"ed-c-media-block--reversed": this.behavior === "reversed"
|
|
17
|
+
});
|
|
18
|
+
return i`
|
|
19
|
+
<div class="${t}">
|
|
20
|
+
${this.slotNotEmpty("media") && i`<div class="ed-c-media-block__media">
|
|
21
|
+
<slot name="media"></slot>
|
|
22
|
+
</div>`}
|
|
23
|
+
|
|
24
|
+
<div class="ed-c-media-block__body">
|
|
25
|
+
<slot></slot>
|
|
26
|
+
</div>
|
|
27
|
+
</div>
|
|
28
|
+
`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
f([
|
|
32
|
+
l()
|
|
33
|
+
], m.prototype, "behavior");
|
|
34
|
+
customElements.get("ed-media-block") === void 0 && customElements.define("ed-media-block", m);
|
|
35
|
+
export {
|
|
36
|
+
m as EdMediaBlock
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The modal content
|
|
4
|
+
* @slot header - Content appearing above the default slot
|
|
5
|
+
* @slot footer - Content appearing below the default slot
|
|
6
|
+
*/
|
|
7
|
+
export declare class EdModal extends EdElement {
|
|
8
|
+
static get styles(): import('lit').CSSResult;
|
|
9
|
+
/**
|
|
10
|
+
* Toggle modal window to full width of screen
|
|
11
|
+
*/
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Active property
|
|
15
|
+
* 1) If true, modal appears. If false, modal is hidden.
|
|
16
|
+
*/
|
|
17
|
+
isActive?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Close function prop
|
|
20
|
+
* 1) Function that can be passed into the modal and run on close of the modal
|
|
21
|
+
*/
|
|
22
|
+
closeFunction?: () => void;
|
|
23
|
+
constructor();
|
|
24
|
+
/**
|
|
25
|
+
* Close modal function
|
|
26
|
+
* 1) Closes the modal
|
|
27
|
+
* 2) Runs the closeFunction property if set
|
|
28
|
+
*/
|
|
29
|
+
closeModal(): void;
|
|
30
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
'ed-modal': EdModal;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=modal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/modal/modal.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;;;GAIG;AACH,qBAAa,OAAQ,SAAQ,SAAS;IACpC,MAAM,KAAK,MAAM,4BAEhB;IAED;;OAEG;IAEH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IAEH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IAEH,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;;IAM3B;;;;OAIG;IACH,UAAU;IASV,MAAM;CA+BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { unsafeCSS as c, html as n } from "lit";
|
|
2
|
+
import { property as a } 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-modal{display:flex;visibility:hidden;align-items:center;justify-content:center;position:fixed;width:100%;height:100%;background-color:transparent;top:0;left:0;z-index:3;transition:all .15s ease}.ed-c-modal.ed-is-active{background:var(--ed-theme-color-background-transparent-dim);visibility:visible}.ed-c-modal--full-width{height:auto}.ed-c-modal__window{display:flex;flex-direction:column;position:fixed;top:0;left:0;height:100%;width:100%;max-width:100%;overflow:auto;opacity:0;border-radius:0;background:var(--ed-theme-color-background-default);box-shadow:var(--ed-theme-box-shadow-sm);transition:opacity .15s ease}.ed-c-modal__window:focus{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-modal__window: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-modal.ed-is-active .ed-c-modal__window{opacity:1}.ed-c-modal--full-width .ed-c-modal__window{width:100%;max-width:none;height:100vh;max-height:none}@media all and (min-width:47rem){.ed-c-modal__window{position:relative;width:48rem;max-width:90%;height:auto;overflow:auto;max-height:90vh}}.ed-c-modal__close-button{padding:1.5rem;position:absolute;top:0;right:0}.ed-c-modal__header,.ed-c-modal__body,.ed-c-modal__footer{padding:1.5rem}.ed-c-modal__header{display:flex;justify-content:space-between;align-items:center}";
|
|
5
|
+
var f = Object.defineProperty, l = (d, o, s, u) => {
|
|
6
|
+
for (var e = void 0, i = d.length - 1, r; i >= 0; i--)
|
|
7
|
+
(r = d[i]) && (e = r(o, s, e) || e);
|
|
8
|
+
return e && f(o, s, e), e;
|
|
9
|
+
};
|
|
10
|
+
class t extends m {
|
|
11
|
+
static get styles() {
|
|
12
|
+
return c(h);
|
|
13
|
+
}
|
|
14
|
+
constructor() {
|
|
15
|
+
super();
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Close modal function
|
|
19
|
+
* 1) Closes the modal
|
|
20
|
+
* 2) Runs the closeFunction property if set
|
|
21
|
+
*/
|
|
22
|
+
closeModal() {
|
|
23
|
+
this.isActive = !1, this.closeFunction && this.closeFunction();
|
|
24
|
+
}
|
|
25
|
+
render() {
|
|
26
|
+
const o = this.componentClassNames("ed-c-modal", {
|
|
27
|
+
"ed-c-modal--full-width": this.fullWidth === !0,
|
|
28
|
+
"ed-is-active": this.isActive === !0
|
|
29
|
+
});
|
|
30
|
+
return n`
|
|
31
|
+
<div class="${o}">
|
|
32
|
+
<article class="ed-c-modal__window" role="dialog">
|
|
33
|
+
<ed-button
|
|
34
|
+
class="ed-c-modal__close-button"
|
|
35
|
+
text="Close"
|
|
36
|
+
variant="bare"
|
|
37
|
+
iconName="close"
|
|
38
|
+
size="lg"
|
|
39
|
+
iconPosition="after"
|
|
40
|
+
?hideText=${!0}
|
|
41
|
+
@click=${this.closeModal}
|
|
42
|
+
></ed-button>
|
|
43
|
+
<div class="ed-c-modal__header"><slot name="header"></slot></div>
|
|
44
|
+
<div class="ed-c-modal__body">
|
|
45
|
+
<slot></slot>
|
|
46
|
+
</div>
|
|
47
|
+
${this.slotNotEmpty("footer") && n`<div class="ed-c-modal__footer">
|
|
48
|
+
<slot name="footer"></slot>
|
|
49
|
+
</div>`}
|
|
50
|
+
</article>
|
|
51
|
+
</div>
|
|
52
|
+
`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
l([
|
|
56
|
+
a({ type: Boolean })
|
|
57
|
+
], t.prototype, "fullWidth");
|
|
58
|
+
l([
|
|
59
|
+
a({ type: Boolean })
|
|
60
|
+
], t.prototype, "isActive");
|
|
61
|
+
l([
|
|
62
|
+
a()
|
|
63
|
+
], t.prototype, "closeFunction");
|
|
64
|
+
customElements.get("ed-modal") === void 0 && customElements.define("ed-modal", t);
|
|
65
|
+
export {
|
|
66
|
+
t as EdModal
|
|
67
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EdElement } from '@brad-frost-web/eddie-web-components/components/EdElement';
|
|
2
|
+
/**
|
|
3
|
+
* @slot - The navigation container content
|
|
4
|
+
*/
|
|
5
|
+
export declare class EdNavContainer 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-nav-container': EdNavContainer;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=nav-container.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-container.d.ts","sourceRoot":"","sources":["../../../../packages/eddie-web-components/components/nav-container/nav-container.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,2DAA2D,CAAC;AAGtF;;GAEG;AACH,qBAAa,cAAe,SAAQ,SAAS;IAC3C,MAAM,KAAK,MAAM,4BAEhB;IAED,MAAM;CASP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,kBAAkB,EAAE,cAAc,CAAC;KACpC;CACF"}
|