@xplortech/apollo-core 0.1.0 → 0.1.2

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/style.css +703 -201
  3. package/dist/apollo-core/apollo-core.css +3 -9
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/{p-1e6a342a.entry.js → p-fc589c84.entry.js} +3 -3
  6. package/dist/cjs/apollo-core.cjs.js +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{xpl-avatar_7.cjs.entry.js → xpl-avatar_13.cjs.entry.js} +75 -0
  9. package/dist/collection/collection-manifest.json +6 -0
  10. package/dist/collection/components/xpl-backdrop/xpl-backdrop.js +7 -0
  11. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js +22 -0
  12. package/dist/collection/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js +15 -0
  13. package/dist/collection/components/xpl-content-area/xpl-content-area.js +39 -0
  14. package/dist/collection/components/xpl-main-nav/xpl-main-nav.js +43 -0
  15. package/dist/collection/components/xpl-nav-item/xpl-nav-item.js +10 -0
  16. package/dist/custom-elements/index.d.ts +36 -0
  17. package/dist/custom-elements/index.js +88 -1
  18. package/dist/esm/apollo-core.js +1 -1
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/{xpl-avatar_7.entry.js → xpl-avatar_13.entry.js} +70 -1
  21. package/dist/stories/backdrop.stories.js +18 -0
  22. package/dist/stories/breadcrumbs.stories.js +115 -0
  23. package/dist/stories/content-area.stories.js +53 -0
  24. package/dist/stories/main-nav.stories.js +308 -0
  25. package/dist/stories/table.stories.js +1 -1
  26. package/dist/types/components/xpl-backdrop/xpl-backdrop.d.ts +3 -0
  27. package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.d.ts +7 -0
  28. package/dist/types/components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.d.ts +6 -0
  29. package/dist/types/components/xpl-content-area/xpl-content-area.d.ts +7 -0
  30. package/dist/types/components/xpl-main-nav/xpl-main-nav.d.ts +7 -0
  31. package/dist/types/components/xpl-nav-item/xpl-nav-item.d.ts +3 -0
  32. package/dist/types/components.d.ts +94 -0
  33. package/dist/types/home/scottpdo/local/apollo/.stencil/stories/backdrop.stories.d.ts +16 -0
  34. package/dist/types/home/scottpdo/local/apollo/.stencil/stories/breadcrumbs.stories.d.ts +53 -0
  35. package/dist/types/home/scottpdo/local/apollo/.stencil/stories/content-area.stories.d.ts +29 -0
  36. package/dist/types/home/scottpdo/local/apollo/.stencil/stories/main-nav.stories.d.ts +30 -0
  37. package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/table.stories.d.ts +1 -2
  38. package/package.json +3 -2
  39. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  40. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  41. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/button.stories.d.ts +0 -0
  42. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/checkbox.stories.d.ts +0 -0
  43. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  44. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/radio.stories.d.ts +0 -0
  45. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  46. /package/dist/types/home/{runner/work/apollo → scottpdo/local}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["xpl-avatar_7.cjs",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist.cjs",[[1,"xpl-choicelist"]]],["xpl-pagination.cjs",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
18
+ return index.bootstrapLazy([["xpl-avatar_13.cjs",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[0,"xpl-backdrop"],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-breadcrumb-item"],[4,"xpl-breadcrumbs"],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-content-area",{"size":[1]}],[4,"xpl-main-nav",{"width":[1]}],[4,"xpl-nav-item"],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist.cjs",[[1,"xpl-choicelist"]]],["xpl-pagination.cjs",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
19
19
  });
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["xpl-avatar_7.cjs",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist.cjs",[[1,"xpl-choicelist"]]],["xpl-pagination.cjs",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
17
+ return index.bootstrapLazy([["xpl-avatar_13.cjs",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[0,"xpl-backdrop"],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-breadcrumb-item"],[4,"xpl-breadcrumbs"],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-content-area",{"size":[1]}],[4,"xpl-main-nav",{"width":[1]}],[4,"xpl-nav-item"],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist.cjs",[[1,"xpl-choicelist"]]],["xpl-pagination.cjs",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -20,6 +20,15 @@ const XplAvatar = class {
20
20
  }
21
21
  };
22
22
 
23
+ const XplBackdrop = class {
24
+ constructor(hostRef) {
25
+ index.registerInstance(this, hostRef);
26
+ }
27
+ render() {
28
+ return (index.h(index.Host, { class: "xpl-backdrop", "aria-hidden": "true" }));
29
+ }
30
+ };
31
+
23
32
  const XplBadge = class {
24
33
  constructor(hostRef) {
25
34
  index.registerInstance(this, hostRef);
@@ -34,6 +43,31 @@ const XplBadge = class {
34
43
  }
35
44
  };
36
45
 
46
+ const XplBreadcrumbItem = class {
47
+ constructor(hostRef) {
48
+ index.registerInstance(this, hostRef);
49
+ // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
50
+ this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
51
+ <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
52
+ </svg>
53
+ `;
54
+ }
55
+ render() {
56
+ return (index.h(index.Host, { class: "xpl-breadcrumb-item", role: "listitem" }, index.h("li", { role: "none" }, index.h("slot", null)), index.h("span", { innerHTML: `${this.chevron}` })));
57
+ }
58
+ ;
59
+ };
60
+
61
+ const XplBreadcrumbs = class {
62
+ constructor(hostRef) {
63
+ index.registerInstance(this, hostRef);
64
+ }
65
+ render() {
66
+ return (index.h(index.Host, null, index.h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, index.h("ol", { role: "list" }, index.h("slot", null)))));
67
+ }
68
+ ;
69
+ };
70
+
37
71
  /*!
38
72
  * Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
39
73
  * License - https://fontawesome.com/license (Commercial License)
@@ -16190,6 +16224,41 @@ const XplCheckbox = class {
16190
16224
  }
16191
16225
  };
16192
16226
 
16227
+ const XplContentArea = class {
16228
+ constructor(hostRef) {
16229
+ index.registerInstance(this, hostRef);
16230
+ /**
16231
+ * @property {string} size - The content-area size.
16232
+ */
16233
+ this.size = "wide";
16234
+ }
16235
+ render() {
16236
+ return (index.h(index.Host, null, index.h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, index.h("div", { class: "xpl-content-area" }, index.h("slot", null)))));
16237
+ }
16238
+ };
16239
+
16240
+ const XplMainNav = class {
16241
+ constructor(hostRef) {
16242
+ index.registerInstance(this, hostRef);
16243
+ /**
16244
+ * @property {string} width - The width of the Main Nav.
16245
+ */
16246
+ this.width = "default";
16247
+ }
16248
+ render() {
16249
+ return (index.h(index.Host, { class: `xpl-main-nav xpl-main-nav__${this.width}`, "aria-label": "Sidebar" }, index.h("nav", null, index.h("header", { "aria-label": "Sidebar Header" }, index.h("slot", { name: "logo" }), index.h("slot", { name: "brand-name" })), index.h("slot", { name: "navigation" })), index.h("footer", { class: "xpl-main-nav-footer", "aria-label": "Sidebar Footer" }, index.h("slot", { name: "footer" }))));
16250
+ }
16251
+ };
16252
+
16253
+ const XplNavItem = class {
16254
+ constructor(hostRef) {
16255
+ index.registerInstance(this, hostRef);
16256
+ }
16257
+ render() {
16258
+ return (index.h(index.Host, { class: "xpl-nav-item", role: "listitem" }, index.h("slot", { name: "link" }, index.h("slot", { name: "icon" }), index.h("slot", null))));
16259
+ }
16260
+ };
16261
+
16193
16262
  const XplRadio = class {
16194
16263
  constructor(hostRef) {
16195
16264
  index.registerInstance(this, hostRef);
@@ -16292,9 +16361,15 @@ const XplUtilityBar = class {
16292
16361
  };
16293
16362
 
16294
16363
  exports.xpl_avatar = XplAvatar;
16364
+ exports.xpl_backdrop = XplBackdrop;
16295
16365
  exports.xpl_badge = XplBadge;
16366
+ exports.xpl_breadcrumb_item = XplBreadcrumbItem;
16367
+ exports.xpl_breadcrumbs = XplBreadcrumbs;
16296
16368
  exports.xpl_button = XplButton;
16297
16369
  exports.xpl_checkbox = XplCheckbox;
16370
+ exports.xpl_content_area = XplContentArea;
16371
+ exports.xpl_main_nav = XplMainNav;
16372
+ exports.xpl_nav_item = XplNavItem;
16298
16373
  exports.xpl_radio = XplRadio;
16299
16374
  exports.xpl_table = XplTable;
16300
16375
  exports.xpl_utility_bar = XplUtilityBar;
@@ -1,10 +1,16 @@
1
1
  {
2
2
  "entries": [
3
3
  "./components/xpl-avatar/xpl-avatar.js",
4
+ "./components/xpl-backdrop/xpl-backdrop.js",
4
5
  "./components/xpl-badge/xpl-badge.js",
6
+ "./components/xpl-breadcrumbs/xpl-breadcrumb-item/xpl-breadcrumb-item.js",
7
+ "./components/xpl-breadcrumbs/xpl-breadcrumbs/xpl-breadcrumbs.js",
5
8
  "./components/xpl-button/xpl-button.js",
6
9
  "./components/xpl-checkbox/xpl-checkbox.js",
7
10
  "./components/xpl-choicelist/xpl-choicelist.js",
11
+ "./components/xpl-content-area/xpl-content-area.js",
12
+ "./components/xpl-main-nav/xpl-main-nav.js",
13
+ "./components/xpl-nav-item/xpl-nav-item.js",
8
14
  "./components/xpl-pagination/xpl-pagination.js",
9
15
  "./components/xpl-radio/xpl-radio.js",
10
16
  "./components/xpl-table/xpl-table.js",
@@ -0,0 +1,7 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ export class XplBackdrop {
3
+ render() {
4
+ return (h(Host, { class: "xpl-backdrop", "aria-hidden": "true" }));
5
+ }
6
+ static get is() { return "xpl-backdrop"; }
7
+ }
@@ -0,0 +1,22 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ /**
3
+ * @slot unnamed - content rendered inside <li>, should be link or button (styled as link)
4
+ */
5
+ export class XplBreadcrumbItem {
6
+ constructor() {
7
+ // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
8
+ this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
9
+ <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
10
+ </svg>
11
+ `;
12
+ }
13
+ render() {
14
+ return (h(Host, { class: "xpl-breadcrumb-item", role: "listitem" },
15
+ h("li", { role: "none" },
16
+ h("slot", null)),
17
+ h("span", { innerHTML: `${this.chevron}` })));
18
+ }
19
+ ;
20
+ static get is() { return "xpl-breadcrumb-item"; }
21
+ }
22
+ ;
@@ -0,0 +1,15 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ /**
3
+ * @slot unnamed - content rendered <ol>, should be a group of <li> or <xpl-breadcrumb-item>
4
+ */
5
+ export class XplBreadcrumbs {
6
+ render() {
7
+ return (h(Host, null,
8
+ h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" },
9
+ h("ol", { role: "list" },
10
+ h("slot", null)))));
11
+ }
12
+ ;
13
+ static get is() { return "xpl-breadcrumbs"; }
14
+ }
15
+ ;
@@ -0,0 +1,39 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class XplContentArea {
3
+ constructor() {
4
+ /**
5
+ * @property {string} size - The content-area size.
6
+ */
7
+ this.size = "wide";
8
+ }
9
+ render() {
10
+ return (h(Host, null,
11
+ h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` },
12
+ h("div", { class: "xpl-content-area" },
13
+ h("slot", null)))));
14
+ }
15
+ static get is() { return "xpl-content-area"; }
16
+ static get properties() { return {
17
+ "size": {
18
+ "type": "string",
19
+ "mutable": false,
20
+ "complexType": {
21
+ "original": "\"wide\" | \"narrow\" | \"full\"",
22
+ "resolved": "\"full\" | \"narrow\" | \"wide\"",
23
+ "references": {}
24
+ },
25
+ "required": false,
26
+ "optional": false,
27
+ "docs": {
28
+ "tags": [{
29
+ "text": "{string} size - The content-area size.",
30
+ "name": "property"
31
+ }],
32
+ "text": ""
33
+ },
34
+ "attribute": "size",
35
+ "reflect": false,
36
+ "defaultValue": "\"wide\""
37
+ }
38
+ }; }
39
+ }
@@ -0,0 +1,43 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class XplMainNav {
3
+ constructor() {
4
+ /**
5
+ * @property {string} width - The width of the Main Nav.
6
+ */
7
+ this.width = "default";
8
+ }
9
+ render() {
10
+ return (h(Host, { class: `xpl-main-nav xpl-main-nav__${this.width}`, "aria-label": "Sidebar" },
11
+ h("nav", null,
12
+ h("header", { "aria-label": "Sidebar Header" },
13
+ h("slot", { name: "logo" }),
14
+ h("slot", { name: "brand-name" })),
15
+ h("slot", { name: "navigation" })),
16
+ h("footer", { class: "xpl-main-nav-footer", "aria-label": "Sidebar Footer" },
17
+ h("slot", { name: "footer" }))));
18
+ }
19
+ static get is() { return "xpl-main-nav"; }
20
+ static get properties() { return {
21
+ "width": {
22
+ "type": "string",
23
+ "mutable": false,
24
+ "complexType": {
25
+ "original": "\"default\" | \"md\" | \"sm\"",
26
+ "resolved": "\"default\" | \"md\" | \"sm\"",
27
+ "references": {}
28
+ },
29
+ "required": false,
30
+ "optional": false,
31
+ "docs": {
32
+ "tags": [{
33
+ "text": "{string} width - The width of the Main Nav.",
34
+ "name": "property"
35
+ }],
36
+ "text": ""
37
+ },
38
+ "attribute": "width",
39
+ "reflect": false,
40
+ "defaultValue": "\"default\""
41
+ }
42
+ }; }
43
+ }
@@ -0,0 +1,10 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ export class XplNavItem {
3
+ render() {
4
+ return (h(Host, { class: "xpl-nav-item", role: "listitem" },
5
+ h("slot", { name: "link" },
6
+ h("slot", { name: "icon" }),
7
+ h("slot", null))));
8
+ }
9
+ static get is() { return "xpl-nav-item"; }
10
+ }
@@ -8,12 +8,30 @@ export const XplAvatar: {
8
8
  new (): XplAvatar;
9
9
  };
10
10
 
11
+ interface XplBackdrop extends Components.XplBackdrop, HTMLElement {}
12
+ export const XplBackdrop: {
13
+ prototype: XplBackdrop;
14
+ new (): XplBackdrop;
15
+ };
16
+
11
17
  interface XplBadge extends Components.XplBadge, HTMLElement {}
12
18
  export const XplBadge: {
13
19
  prototype: XplBadge;
14
20
  new (): XplBadge;
15
21
  };
16
22
 
23
+ interface XplBreadcrumbItem extends Components.XplBreadcrumbItem, HTMLElement {}
24
+ export const XplBreadcrumbItem: {
25
+ prototype: XplBreadcrumbItem;
26
+ new (): XplBreadcrumbItem;
27
+ };
28
+
29
+ interface XplBreadcrumbs extends Components.XplBreadcrumbs, HTMLElement {}
30
+ export const XplBreadcrumbs: {
31
+ prototype: XplBreadcrumbs;
32
+ new (): XplBreadcrumbs;
33
+ };
34
+
17
35
  interface XplButton extends Components.XplButton, HTMLElement {}
18
36
  export const XplButton: {
19
37
  prototype: XplButton;
@@ -32,6 +50,24 @@ export const XplChoicelist: {
32
50
  new (): XplChoicelist;
33
51
  };
34
52
 
53
+ interface XplContentArea extends Components.XplContentArea, HTMLElement {}
54
+ export const XplContentArea: {
55
+ prototype: XplContentArea;
56
+ new (): XplContentArea;
57
+ };
58
+
59
+ interface XplMainNav extends Components.XplMainNav, HTMLElement {}
60
+ export const XplMainNav: {
61
+ prototype: XplMainNav;
62
+ new (): XplMainNav;
63
+ };
64
+
65
+ interface XplNavItem extends Components.XplNavItem, HTMLElement {}
66
+ export const XplNavItem: {
67
+ prototype: XplNavItem;
68
+ new (): XplNavItem;
69
+ };
70
+
35
71
  interface XplPagination extends Components.XplPagination, HTMLElement {}
36
72
  export const XplPagination: {
37
73
  prototype: XplPagination;
@@ -18,6 +18,16 @@ const XplAvatar$1 = class extends HTMLElement {
18
18
  }
19
19
  };
20
20
 
21
+ const XplBackdrop$1 = class extends HTMLElement {
22
+ constructor() {
23
+ super();
24
+ this.__registerHost();
25
+ }
26
+ render() {
27
+ return (h(Host, { class: "xpl-backdrop", "aria-hidden": "true" }));
28
+ }
29
+ };
30
+
21
31
  const XplBadge$1 = class extends HTMLElement {
22
32
  constructor() {
23
33
  super();
@@ -33,6 +43,33 @@ const XplBadge$1 = class extends HTMLElement {
33
43
  }
34
44
  };
35
45
 
46
+ const XplBreadcrumbItem$1 = class extends HTMLElement {
47
+ constructor() {
48
+ super();
49
+ this.__registerHost();
50
+ // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
51
+ this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
52
+ <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
53
+ </svg>
54
+ `;
55
+ }
56
+ render() {
57
+ return (h(Host, { class: "xpl-breadcrumb-item", role: "listitem" }, h("li", { role: "none" }, h("slot", null)), h("span", { innerHTML: `${this.chevron}` })));
58
+ }
59
+ ;
60
+ };
61
+
62
+ const XplBreadcrumbs$1 = class extends HTMLElement {
63
+ constructor() {
64
+ super();
65
+ this.__registerHost();
66
+ }
67
+ render() {
68
+ return (h(Host, null, h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, h("ol", { role: "list" }, h("slot", null)))));
69
+ }
70
+ ;
71
+ };
72
+
36
73
  /*!
37
74
  * Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
38
75
  * License - https://fontawesome.com/license (Commercial License)
@@ -16202,6 +16239,44 @@ const XplChoicelist$1 = class extends HTMLElement {
16202
16239
  }
16203
16240
  };
16204
16241
 
16242
+ const XplContentArea$1 = class extends HTMLElement {
16243
+ constructor() {
16244
+ super();
16245
+ this.__registerHost();
16246
+ /**
16247
+ * @property {string} size - The content-area size.
16248
+ */
16249
+ this.size = "wide";
16250
+ }
16251
+ render() {
16252
+ return (h(Host, null, h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, h("div", { class: "xpl-content-area" }, h("slot", null)))));
16253
+ }
16254
+ };
16255
+
16256
+ const XplMainNav$1 = class extends HTMLElement {
16257
+ constructor() {
16258
+ super();
16259
+ this.__registerHost();
16260
+ /**
16261
+ * @property {string} width - The width of the Main Nav.
16262
+ */
16263
+ this.width = "default";
16264
+ }
16265
+ render() {
16266
+ return (h(Host, { class: `xpl-main-nav xpl-main-nav__${this.width}`, "aria-label": "Sidebar" }, h("nav", null, h("header", { "aria-label": "Sidebar Header" }, h("slot", { name: "logo" }), h("slot", { name: "brand-name" })), h("slot", { name: "navigation" })), h("footer", { class: "xpl-main-nav-footer", "aria-label": "Sidebar Footer" }, h("slot", { name: "footer" }))));
16267
+ }
16268
+ };
16269
+
16270
+ const XplNavItem$1 = class extends HTMLElement {
16271
+ constructor() {
16272
+ super();
16273
+ this.__registerHost();
16274
+ }
16275
+ render() {
16276
+ return (h(Host, { class: "xpl-nav-item", role: "listitem" }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
16277
+ }
16278
+ };
16279
+
16205
16280
  const XplPagination$1 = class extends HTMLElement {
16206
16281
  constructor() {
16207
16282
  super();
@@ -16377,10 +16452,16 @@ const XplUtilityBar$1 = class extends HTMLElement {
16377
16452
  };
16378
16453
 
16379
16454
  const XplAvatar = /*@__PURE__*/proxyCustomElement(XplAvatar$1, [4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}]);
16455
+ const XplBackdrop = /*@__PURE__*/proxyCustomElement(XplBackdrop$1, [0,"xpl-backdrop"]);
16380
16456
  const XplBadge = /*@__PURE__*/proxyCustomElement(XplBadge$1, [4,"xpl-badge",{"dot":[4],"variant":[1]}]);
16457
+ const XplBreadcrumbItem = /*@__PURE__*/proxyCustomElement(XplBreadcrumbItem$1, [4,"xpl-breadcrumb-item"]);
16458
+ const XplBreadcrumbs = /*@__PURE__*/proxyCustomElement(XplBreadcrumbs$1, [4,"xpl-breadcrumbs"]);
16381
16459
  const XplButton = /*@__PURE__*/proxyCustomElement(XplButton$1, [4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}]);
16382
16460
  const XplCheckbox = /*@__PURE__*/proxyCustomElement(XplCheckbox$1, [4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}]);
16383
16461
  const XplChoicelist = /*@__PURE__*/proxyCustomElement(XplChoicelist$1, [1,"xpl-choicelist"]);
16462
+ const XplContentArea = /*@__PURE__*/proxyCustomElement(XplContentArea$1, [4,"xpl-content-area",{"size":[1]}]);
16463
+ const XplMainNav = /*@__PURE__*/proxyCustomElement(XplMainNav$1, [4,"xpl-main-nav",{"width":[1]}]);
16464
+ const XplNavItem = /*@__PURE__*/proxyCustomElement(XplNavItem$1, [4,"xpl-nav-item"]);
16384
16465
  const XplPagination = /*@__PURE__*/proxyCustomElement(XplPagination$1, [0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32]}]);
16385
16466
  const XplRadio = /*@__PURE__*/proxyCustomElement(XplRadio$1, [4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}]);
16386
16467
  const XplTable = /*@__PURE__*/proxyCustomElement(XplTable$1, [0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}]);
@@ -16389,10 +16470,16 @@ const defineCustomElements = (opts) => {
16389
16470
  if (typeof customElements !== 'undefined') {
16390
16471
  [
16391
16472
  XplAvatar,
16473
+ XplBackdrop,
16392
16474
  XplBadge,
16475
+ XplBreadcrumbItem,
16476
+ XplBreadcrumbs,
16393
16477
  XplButton,
16394
16478
  XplCheckbox,
16395
16479
  XplChoicelist,
16480
+ XplContentArea,
16481
+ XplMainNav,
16482
+ XplNavItem,
16396
16483
  XplPagination,
16397
16484
  XplRadio,
16398
16485
  XplTable,
@@ -16405,4 +16492,4 @@ const defineCustomElements = (opts) => {
16405
16492
  }
16406
16493
  };
16407
16494
 
16408
- export { XplAvatar, XplBadge, XplButton, XplCheckbox, XplChoicelist, XplPagination, XplRadio, XplTable, XplUtilityBar, defineCustomElements };
16495
+ export { XplAvatar, XplBackdrop, XplBadge, XplBreadcrumbItem, XplBreadcrumbs, XplButton, XplCheckbox, XplChoicelist, XplContentArea, XplMainNav, XplNavItem, XplPagination, XplRadio, XplTable, XplUtilityBar, defineCustomElements };
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["xpl-avatar_7",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist",[[1,"xpl-choicelist"]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
16
+ return bootstrapLazy([["xpl-avatar_13",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[0,"xpl-backdrop"],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-breadcrumb-item"],[4,"xpl-breadcrumbs"],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-content-area",{"size":[1]}],[4,"xpl-main-nav",{"width":[1]}],[4,"xpl-nav-item"],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist",[[1,"xpl-choicelist"]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
17
17
  });
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["xpl-avatar_7",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist",[[1,"xpl-choicelist"]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
13
+ return bootstrapLazy([["xpl-avatar_13",[[4,"xpl-avatar",{"color":[1],"disabled":[4],"href":[1],"name":[1],"size":[1],"src":[1],"status":[1],"target":[1]}],[0,"xpl-backdrop"],[4,"xpl-badge",{"dot":[4],"variant":[1]}],[4,"xpl-breadcrumb-item"],[4,"xpl-breadcrumbs"],[4,"xpl-button",{"disabled":[4],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"iconTrailing":[4,"icon-trailing"],"name":[1],"size":[1],"type":[1],"value":[1],"variant":[1]}],[4,"xpl-checkbox",{"checked":[4],"description":[1],"disabled":[4],"indeterminate":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[4,"xpl-content-area",{"size":[1]}],[4,"xpl-main-nav",{"width":[1]}],[4,"xpl-nav-item"],[4,"xpl-radio",{"checked":[4],"description":[1],"disabled":[4],"name":[1],"required":[4],"value":[1],"id":[32]}],[0,"xpl-table",{"columns":[16],"data":[16],"freeze":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"rowData":[32],"hasScrolled":[32],"selected":[32]}],[4,"xpl-utility-bar"]]],["xpl-choicelist",[[1,"xpl-choicelist"]]],["xpl-pagination",[[0,"xpl-pagination",{"total":[2],"perPage":[2,"per-page"],"waitForCallback":[4,"wait-for-callback"],"current":[32],"goto":[64]}]]]], options);
14
14
  });
15
15
  };
16
16
 
@@ -16,6 +16,15 @@ const XplAvatar = class {
16
16
  }
17
17
  };
18
18
 
19
+ const XplBackdrop = class {
20
+ constructor(hostRef) {
21
+ registerInstance(this, hostRef);
22
+ }
23
+ render() {
24
+ return (h(Host, { class: "xpl-backdrop", "aria-hidden": "true" }));
25
+ }
26
+ };
27
+
19
28
  const XplBadge = class {
20
29
  constructor(hostRef) {
21
30
  registerInstance(this, hostRef);
@@ -30,6 +39,31 @@ const XplBadge = class {
30
39
  }
31
40
  };
32
41
 
42
+ const XplBreadcrumbItem = class {
43
+ constructor(hostRef) {
44
+ registerInstance(this, hostRef);
45
+ // This is temporary as we still don't have a xpl-icon component. When that's created we should update this code.
46
+ this.chevron = `<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="chevron-right" class="svg-inline--fa fa-chevron-right fa-w-10" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512">
47
+ <path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path>
48
+ </svg>
49
+ `;
50
+ }
51
+ render() {
52
+ return (h(Host, { class: "xpl-breadcrumb-item", role: "listitem" }, h("li", { role: "none" }, h("slot", null)), h("span", { innerHTML: `${this.chevron}` })));
53
+ }
54
+ ;
55
+ };
56
+
57
+ const XplBreadcrumbs = class {
58
+ constructor(hostRef) {
59
+ registerInstance(this, hostRef);
60
+ }
61
+ render() {
62
+ return (h(Host, null, h("nav", { class: "xpl-breadcrumbs", "aria-label": "Breadcrumb" }, h("ol", { role: "list" }, h("slot", null)))));
63
+ }
64
+ ;
65
+ };
66
+
33
67
  /*!
34
68
  * Font Awesome Pro 5.15.3 by @fontawesome - https://fontawesome.com
35
69
  * License - https://fontawesome.com/license (Commercial License)
@@ -16186,6 +16220,41 @@ const XplCheckbox = class {
16186
16220
  }
16187
16221
  };
16188
16222
 
16223
+ const XplContentArea = class {
16224
+ constructor(hostRef) {
16225
+ registerInstance(this, hostRef);
16226
+ /**
16227
+ * @property {string} size - The content-area size.
16228
+ */
16229
+ this.size = "wide";
16230
+ }
16231
+ render() {
16232
+ return (h(Host, null, h("main", { class: `xpl-content-area-wrapper xpl-content-area-wrapper__${this.size}` }, h("div", { class: "xpl-content-area" }, h("slot", null)))));
16233
+ }
16234
+ };
16235
+
16236
+ const XplMainNav = class {
16237
+ constructor(hostRef) {
16238
+ registerInstance(this, hostRef);
16239
+ /**
16240
+ * @property {string} width - The width of the Main Nav.
16241
+ */
16242
+ this.width = "default";
16243
+ }
16244
+ render() {
16245
+ return (h(Host, { class: `xpl-main-nav xpl-main-nav__${this.width}`, "aria-label": "Sidebar" }, h("nav", null, h("header", { "aria-label": "Sidebar Header" }, h("slot", { name: "logo" }), h("slot", { name: "brand-name" })), h("slot", { name: "navigation" })), h("footer", { class: "xpl-main-nav-footer", "aria-label": "Sidebar Footer" }, h("slot", { name: "footer" }))));
16246
+ }
16247
+ };
16248
+
16249
+ const XplNavItem = class {
16250
+ constructor(hostRef) {
16251
+ registerInstance(this, hostRef);
16252
+ }
16253
+ render() {
16254
+ return (h(Host, { class: "xpl-nav-item", role: "listitem" }, h("slot", { name: "link" }, h("slot", { name: "icon" }), h("slot", null))));
16255
+ }
16256
+ };
16257
+
16189
16258
  const XplRadio = class {
16190
16259
  constructor(hostRef) {
16191
16260
  registerInstance(this, hostRef);
@@ -16287,4 +16356,4 @@ const XplUtilityBar = class {
16287
16356
  }
16288
16357
  };
16289
16358
 
16290
- export { XplAvatar as xpl_avatar, XplBadge as xpl_badge, XplButton as xpl_button, XplCheckbox as xpl_checkbox, XplRadio as xpl_radio, XplTable as xpl_table, XplUtilityBar as xpl_utility_bar };
16359
+ export { XplAvatar as xpl_avatar, XplBackdrop as xpl_backdrop, XplBadge as xpl_badge, XplBreadcrumbItem as xpl_breadcrumb_item, XplBreadcrumbs as xpl_breadcrumbs, XplButton as xpl_button, XplCheckbox as xpl_checkbox, XplContentArea as xpl_content_area, XplMainNav as xpl_main_nav, XplNavItem as xpl_nav_item, XplRadio as xpl_radio, XplTable as xpl_table, XplUtilityBar as xpl_utility_bar };
@@ -0,0 +1,18 @@
1
+ export default {
2
+ title: "Components/Backdrop",
3
+ };
4
+ export const Backdrop = () => `
5
+ <img src="https://media.giphy.com/media/mi6DsSSNKDbUY/giphy-downsized-large.gif" />
6
+ <xpl-backdrop></xpl-backdrop>
7
+ `;
8
+ Backdrop.parameters = {
9
+ layout: "centered",
10
+ "web-component": {
11
+ render: Backdrop,
12
+ },
13
+ html: {
14
+ render() {
15
+ return `<div class="xpl-backdrop" aria-hidden="true"></div>`;
16
+ },
17
+ },
18
+ };