@ptcwebops/ptcw-design 0.1.1 → 0.1.3

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 (156) hide show
  1. package/dist/cjs/icon-asset_5.cjs.entry.js +207 -0
  2. package/dist/{ptcw-design/index-f7043a90.js → cjs/index-ac192914.js} +195 -1311
  3. package/dist/cjs/index.cjs.js +2 -0
  4. package/dist/cjs/interfaces-0ecd8027.js +15 -0
  5. package/dist/cjs/list-item.cjs.entry.js +27 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/cjs/lottie-player.cjs.entry.js +13476 -0
  8. package/dist/cjs/my-component.cjs.entry.js +26 -0
  9. package/dist/cjs/ptc-avatar.cjs.entry.js +19 -0
  10. package/dist/cjs/ptc-card.cjs.entry.js +75 -0
  11. package/dist/cjs/ptc-date.cjs.entry.js +48 -0
  12. package/dist/cjs/ptc-footer.cjs.entry.js +19 -0
  13. package/dist/cjs/ptc-img.cjs.entry.js +155 -0
  14. package/dist/cjs/ptc-link.cjs.entry.js +53 -0
  15. package/dist/cjs/ptc-list.cjs.entry.js +32 -0
  16. package/dist/cjs/ptc-lottie.cjs.entry.js +23 -0
  17. package/dist/cjs/ptc-nav-item.cjs.entry.js +94 -0
  18. package/dist/cjs/ptc-nav.cjs.entry.js +19 -0
  19. package/dist/cjs/ptc-overlay.cjs.entry.js +19 -0
  20. package/dist/cjs/ptc-picture.cjs.entry.js +167 -0
  21. package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
  22. package/dist/cjs/ptc-span.cjs.entry.js +31 -0
  23. package/dist/cjs/ptc-title.cjs.entry.js +49 -0
  24. package/dist/cjs/ptcw-design.cjs.js +19 -0
  25. package/dist/collection/assets/svg-imgs/close.svg +11 -0
  26. package/dist/collection/collection-manifest.json +40 -0
  27. package/dist/collection/components/icon-asset/assets/brands.svg +1381 -0
  28. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  29. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +144 -0
  30. package/dist/collection/components/icon-asset/assets/regular.svg +463 -0
  31. package/dist/collection/components/icon-asset/assets/solid.svg +3013 -0
  32. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +5 -0
  33. package/dist/collection/components/icon-asset/icon-asset.css +30 -0
  34. package/dist/collection/components/icon-asset/icon-asset.js +177 -0
  35. package/dist/collection/components/list-item/list-item.css +3 -0
  36. package/dist/collection/components/list-item/list-item.js +63 -0
  37. package/dist/collection/components/my-component/my-component.css +3 -0
  38. package/dist/collection/components/my-component/my-component.js +74 -0
  39. package/dist/collection/components/ptc-announcement/ptc-announcement.css +87 -0
  40. package/dist/collection/components/ptc-announcement/ptc-announcement.js +127 -0
  41. package/dist/collection/components/ptc-avatar/ptc-avatar.css +3 -0
  42. package/dist/collection/components/ptc-avatar/ptc-avatar.js +15 -0
  43. package/dist/collection/components/ptc-button/ptc-button.css +155 -0
  44. package/dist/collection/components/ptc-button/ptc-button.js +223 -0
  45. package/dist/collection/components/ptc-card/ptc-card.css +262 -0
  46. package/dist/collection/components/ptc-card/ptc-card.js +260 -0
  47. package/dist/collection/components/ptc-date/ptc-date.css +3 -0
  48. package/dist/collection/components/ptc-date/ptc-date.js +155 -0
  49. package/dist/collection/components/ptc-footer/ptc-footer.css +40 -0
  50. package/dist/collection/components/ptc-footer/ptc-footer.js +25 -0
  51. package/dist/collection/components/ptc-img/ptc-img.css +65 -0
  52. package/dist/collection/components/ptc-img/ptc-img.js +309 -0
  53. package/dist/collection/components/ptc-link/ptc-link.css +168 -0
  54. package/dist/collection/components/ptc-link/ptc-link.js +197 -0
  55. package/dist/collection/components/ptc-list/ptc-list.css +24 -0
  56. package/dist/collection/components/ptc-list/ptc-list.js +66 -0
  57. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -0
  58. package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -0
  59. package/dist/collection/components/ptc-nav/ptc-nav.css +29 -0
  60. package/dist/collection/components/ptc-nav/ptc-nav.js +21 -0
  61. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +81 -0
  62. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -0
  63. package/dist/collection/components/ptc-overlay/ptc-overlay.css +3 -0
  64. package/dist/collection/components/ptc-overlay/ptc-overlay.js +14 -0
  65. package/dist/collection/components/ptc-para/ptc-para.css +88 -0
  66. package/dist/collection/components/ptc-para/ptc-para.js +111 -0
  67. package/dist/collection/components/ptc-picture/ptc-picture.css +32 -0
  68. package/dist/collection/components/ptc-picture/ptc-picture.js +356 -0
  69. package/dist/collection/components/ptc-spacer/ptc-spacer.css +307 -0
  70. package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -0
  71. package/dist/collection/components/ptc-span/ptc-span.css +36 -0
  72. package/dist/collection/components/ptc-span/ptc-span.js +86 -0
  73. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +77 -0
  74. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +34 -0
  75. package/dist/collection/components/ptc-title/ptc-title.css +64 -0
  76. package/dist/collection/components/ptc-title/ptc-title.js +105 -0
  77. package/dist/collection/index.js +1 -0
  78. package/dist/collection/utils/interfaces.js +11 -0
  79. package/dist/collection/utils/utils.js +3 -0
  80. package/dist/custom-elements/index.d.ts +6 -6
  81. package/dist/custom-elements/index.js +14559 -0
  82. package/dist/esm/icon-asset_5.entry.js +199 -0
  83. package/dist/esm/index-7a3883ee.js +1687 -0
  84. package/dist/esm/index.js +1 -0
  85. package/dist/esm/interfaces-3cb94654.js +12 -0
  86. package/dist/{ptcw-design → esm}/list-item.entry.js +1 -1
  87. package/dist/esm/loader.js +17 -0
  88. package/dist/{ptcw-design → esm}/lottie-player.entry.js +31 -782
  89. package/dist/{ptcw-design → esm}/my-component.entry.js +1 -1
  90. package/dist/esm/polyfills/core-js.js +11 -0
  91. package/dist/esm/polyfills/css-shim.js +1 -0
  92. package/dist/esm/polyfills/dom.js +79 -0
  93. package/dist/esm/polyfills/es5-html-element.js +1 -0
  94. package/dist/esm/polyfills/index.js +34 -0
  95. package/dist/esm/polyfills/system.js +6 -0
  96. package/dist/esm/ptc-avatar.entry.js +15 -0
  97. package/dist/{ptcw-design → esm}/ptc-card.entry.js +3 -3
  98. package/dist/{ptcw-design → esm}/ptc-date.entry.js +1 -1
  99. package/dist/{ptcw-design → esm}/ptc-footer.entry.js +1 -1
  100. package/dist/{ptcw-design → esm}/ptc-img.entry.js +6 -25
  101. package/dist/{ptcw-design → esm}/ptc-link.entry.js +1 -1
  102. package/dist/{ptcw-design → esm}/ptc-list.entry.js +1 -1
  103. package/dist/{ptcw-design → esm}/ptc-lottie.entry.js +1 -1
  104. package/dist/{ptcw-design → esm}/ptc-nav-item.entry.js +1 -1
  105. package/dist/{ptcw-design → esm}/ptc-nav.entry.js +1 -1
  106. package/dist/{ptcw-design → esm}/ptc-overlay.entry.js +1 -1
  107. package/dist/esm/ptc-picture.entry.js +163 -0
  108. package/dist/{ptcw-design → esm}/ptc-spacer.entry.js +1 -1
  109. package/dist/{ptcw-design → esm}/ptc-span.entry.js +1 -1
  110. package/dist/{ptcw-design → esm}/ptc-title.entry.js +1 -1
  111. package/dist/esm/ptcw-design.js +17 -0
  112. package/dist/index.cjs.js +1 -0
  113. package/dist/index.js +1 -0
  114. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +187 -0
  115. package/dist/ptcw-design/index.esm.js +0 -1
  116. package/dist/ptcw-design/p-0c8df906.entry.js +1 -0
  117. package/dist/ptcw-design/p-18092cf1.entry.js +1 -0
  118. package/dist/ptcw-design/p-186beb2c.entry.js +1 -0
  119. package/dist/ptcw-design/p-240733ce.js +1 -0
  120. package/dist/ptcw-design/p-2d5f8cff.entry.js +1 -0
  121. package/dist/ptcw-design/p-50923c9a.js +1 -0
  122. package/dist/ptcw-design/p-51a3e9e6.entry.js +1 -0
  123. package/dist/ptcw-design/p-5f776886.entry.js +1 -0
  124. package/dist/ptcw-design/p-66ffa30c.entry.js +1 -0
  125. package/dist/ptcw-design/p-6b1a35e1.entry.js +1 -0
  126. package/dist/ptcw-design/p-73e2418e.entry.js +1 -0
  127. package/dist/ptcw-design/p-78a47bf1.entry.js +1 -0
  128. package/dist/ptcw-design/p-796b8287.entry.js +1 -0
  129. package/dist/ptcw-design/p-90402319.entry.js +1 -0
  130. package/dist/ptcw-design/p-919311d2.entry.js +1 -0
  131. package/dist/ptcw-design/p-ac449734.entry.js +1 -0
  132. package/dist/ptcw-design/p-bff9c1f2.entry.js +1 -0
  133. package/dist/ptcw-design/p-d6553853.entry.js +1 -0
  134. package/dist/ptcw-design/p-ef250898.entry.js +1 -0
  135. package/dist/ptcw-design/p-f694e46a.entry.js +1 -0
  136. package/dist/ptcw-design/p-f80152dc.entry.js +1 -0
  137. package/dist/ptcw-design/ptcw-design.css +2 -1030
  138. package/dist/ptcw-design/ptcw-design.esm.js +1 -122
  139. package/dist/types/components/ptc-avatar/ptc-avatar.d.ts +3 -0
  140. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  141. package/dist/types/components/ptc-picture/ptc-picture.d.ts +60 -1
  142. package/dist/types/components.d.ts +95 -33
  143. package/dist/types/utils/interfaces.d.ts +6 -1
  144. package/package.json +2 -2
  145. package/dist/ptcw-design/app-globals-0f993ce5.js +0 -3
  146. package/dist/ptcw-design/css-shim-003e9264.js +0 -4
  147. package/dist/ptcw-design/dom-1b195079.js +0 -73
  148. package/dist/ptcw-design/icon-asset.entry.js +0 -60
  149. package/dist/ptcw-design/ptc-announcement.entry.js +0 -31
  150. package/dist/ptcw-design/ptc-button.entry.js +0 -57
  151. package/dist/ptcw-design/ptc-image.entry.js +0 -54
  152. package/dist/ptcw-design/ptc-para.entry.js +0 -36
  153. package/dist/ptcw-design/ptc-picture.entry.js +0 -22
  154. package/dist/ptcw-design/ptc-svg-btn.entry.js +0 -27
  155. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +0 -383
  156. package/dist/types/components/ptc-image/ptc-image.d.ts +0 -18
@@ -0,0 +1,66 @@
1
+ import { Component, Host, h, Prop } from '@stencil/core';
2
+ export class PtcList {
3
+ constructor() {
4
+ this.listType = 'para-list';
5
+ }
6
+ render() {
7
+ const classMap = this.getCssClassMap();
8
+ const listItems = this.listItems;
9
+ if (!listItems || listItems.length === 0) {
10
+ return null;
11
+ }
12
+ return (h(Host, { class: classMap },
13
+ h("ul", null, listItems.map(listItem => {
14
+ h("li", null,
15
+ "$",
16
+ listItem);
17
+ }))));
18
+ }
19
+ getCssClassMap() {
20
+ return {
21
+ [this.listType]: true,
22
+ };
23
+ }
24
+ static get is() { return "ptc-list"; }
25
+ static get originalStyleUrls() { return {
26
+ "$": ["ptc-list.scss"]
27
+ }; }
28
+ static get styleUrls() { return {
29
+ "$": ["ptc-list.css"]
30
+ }; }
31
+ static get properties() { return {
32
+ "listType": {
33
+ "type": "string",
34
+ "mutable": false,
35
+ "complexType": {
36
+ "original": "'link-primary' | 'link-sub' | 'icon' | 'para-list'",
37
+ "resolved": "\"icon\" | \"link-primary\" | \"link-sub\" | \"para-list\"",
38
+ "references": {}
39
+ },
40
+ "required": false,
41
+ "optional": false,
42
+ "docs": {
43
+ "tags": [],
44
+ "text": ""
45
+ },
46
+ "attribute": "list-type",
47
+ "reflect": false,
48
+ "defaultValue": "'para-list'"
49
+ },
50
+ "listItems": {
51
+ "type": "unknown",
52
+ "mutable": false,
53
+ "complexType": {
54
+ "original": "string[]",
55
+ "resolved": "string[]",
56
+ "references": {}
57
+ },
58
+ "required": false,
59
+ "optional": true,
60
+ "docs": {
61
+ "tags": [],
62
+ "text": ""
63
+ }
64
+ }
65
+ }; }
66
+ }
@@ -0,0 +1,5 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ height: auto
5
+ }
@@ -0,0 +1,58 @@
1
+ import { Component, h, Prop } from '@stencil/core';
2
+ import '@teamhive/lottie-player';
3
+ export class PtcLottie {
4
+ constructor() {
5
+ /**
6
+ * Animation speed
7
+ */
8
+ this.speed = 1;
9
+ }
10
+ render() {
11
+ return (h("lottie-player", { autoplay: true, loop: true, src: this.jsonSrc, speed: this.speed }));
12
+ }
13
+ static get is() { return "ptc-lottie"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() { return {
16
+ "$": ["ptc-lottie.css"]
17
+ }; }
18
+ static get styleUrls() { return {
19
+ "$": ["ptc-lottie.css"]
20
+ }; }
21
+ static get properties() { return {
22
+ "jsonSrc": {
23
+ "type": "string",
24
+ "mutable": true,
25
+ "complexType": {
26
+ "original": "string",
27
+ "resolved": "string",
28
+ "references": {}
29
+ },
30
+ "required": false,
31
+ "optional": false,
32
+ "docs": {
33
+ "tags": [],
34
+ "text": "Set Json file src"
35
+ },
36
+ "attribute": "json-src",
37
+ "reflect": false
38
+ },
39
+ "speed": {
40
+ "type": "number",
41
+ "mutable": true,
42
+ "complexType": {
43
+ "original": "number",
44
+ "resolved": "number",
45
+ "references": {}
46
+ },
47
+ "required": false,
48
+ "optional": false,
49
+ "docs": {
50
+ "tags": [],
51
+ "text": "Animation speed"
52
+ },
53
+ "attribute": "speed",
54
+ "reflect": false,
55
+ "defaultValue": "1"
56
+ }
57
+ }; }
58
+ }
@@ -0,0 +1,29 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .nav-style {
6
+ background-color: #1c2126;
7
+ display: block;
8
+ }
9
+
10
+ @media only screen and (min-width: 992px) {
11
+ .nav-style {
12
+ display: grid;
13
+ grid-template-columns: auto fit-content(76px);
14
+ grid-template-rows: fit-content(22px) 1fr;
15
+ grid-template-areas: "secondary secondary" "primary language";
16
+ }
17
+
18
+ .primary-nav {
19
+ grid-area: primary;
20
+ }
21
+
22
+ .secondary-nav {
23
+ grid-area: secondary;
24
+ }
25
+
26
+ .language-nav {
27
+ grid-area: language;
28
+ }
29
+ }
@@ -0,0 +1,21 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ export class PtcNav {
3
+ render() {
4
+ return (h(Host, null,
5
+ h("nav", { class: "nav-style" },
6
+ h("div", { class: "primary-nav", part: "primary-nav-part" },
7
+ h("slot", { name: "primary-nav-content" })),
8
+ h("div", { class: "secondary-nav", part: "secondary-nav-part" },
9
+ h("slot", { name: "secondary-nav-content" })),
10
+ h("div", { class: "language-nav", part: "language-nav-part" },
11
+ h("slot", { name: "language-nav-content" })))));
12
+ }
13
+ static get is() { return "ptc-nav"; }
14
+ static get encapsulation() { return "shadow"; }
15
+ static get originalStyleUrls() { return {
16
+ "$": ["ptc-nav.scss"]
17
+ }; }
18
+ static get styleUrls() { return {
19
+ "$": ["ptc-nav.css"]
20
+ }; }
21
+ }
@@ -0,0 +1,81 @@
1
+ :host {
2
+ display: block;
3
+ width: 100%;
4
+ }
5
+ @media screen and (min-width: 992px) {
6
+ :host {
7
+ width: auto;
8
+ }
9
+ }
10
+
11
+ :host([depth="2"]) a {
12
+ font-family: var(--ptc-font-secondary-latin);
13
+ font-size: var(--ptc-font-size-medium);
14
+ font-weight: var(--ptc-font-weight-bold);
15
+ line-height: var(--ptc-line-height-dense);
16
+ letter-spacing: var(--ptc-letter-spacing-dense);
17
+ margin-bottom: var(--ptc-element-spacing-03);
18
+ padding-left: 50px;
19
+ }
20
+ @media screen and (min-width: 992px) {
21
+ :host([depth="2"]) a {
22
+ padding-left: 0px;
23
+ }
24
+ }
25
+
26
+ :host([depth="1"]) a {
27
+ font-weight: var(--ptc-font-weight-bold);
28
+ line-height: var(--ptc-line-height-dense);
29
+ letter-spacing: var(--ptc-letter-spacing-dense);
30
+ padding: 20px 25px;
31
+ }
32
+
33
+ :host([nav-type=secondary-nav]) a {
34
+ font-size: var(--ptc-font-size-x-small);
35
+ font-weight: var(--ptc-font-weight-thin);
36
+ }
37
+
38
+ :host([nav-type=language-nav]) a {
39
+ font-size: var(--ptc-font-size-x-small);
40
+ font-weight: var(--ptc-font-weight-thin);
41
+ }
42
+
43
+ @media only screen and (min-width: 992px) {
44
+ .primary-nav ~ .ptc-nav-children {
45
+ position: absolute;
46
+ left: 0;
47
+ }
48
+ .primary-nav ~ .ptc-nav-children ::slotted(.nav-tab) {
49
+ background-color: #1c2126;
50
+ display: flex;
51
+ width: 100vw;
52
+ }
53
+
54
+ .language-nav ~ .ptc-nav-children {
55
+ position: absolute;
56
+ background-color: #1c2126;
57
+ }
58
+ }
59
+ a[aria-expanded=true] ~ .ptc-nav-children {
60
+ padding-top: var(--ptc-element-spacing-04);
61
+ max-height: 2000px;
62
+ }
63
+ @media screen and (min-width: 992px) {
64
+ a[aria-expanded=true] ~ .ptc-nav-children {
65
+ padding-top: 0;
66
+ }
67
+ }
68
+
69
+ .ptc-nav-children {
70
+ overflow: hidden;
71
+ max-height: 0;
72
+ transition: max-height 0.25s ease-in-out, padding-top 0.25s ease-in-out;
73
+ }
74
+
75
+ a {
76
+ color: var(--color-white);
77
+ text-transform: uppercase;
78
+ display: block;
79
+ outline: none;
80
+ text-decoration: none;
81
+ }
@@ -0,0 +1,252 @@
1
+ import { Component, Host, h, Element, Prop, Listen, Watch, Event } from '@stencil/core';
2
+ export class PtcNavItem {
3
+ constructor() {
4
+ /**
5
+ * Link URL
6
+ */
7
+ this.url = undefined;
8
+ /**
9
+ * Nav Description
10
+ */
11
+ this.label = '';
12
+ /**
13
+ * If the current nav item is expanded
14
+ */
15
+ this.ariaExpanded = false;
16
+ /**
17
+ * Depth of the current nav item
18
+ */
19
+ this.depth = 0;
20
+ /**
21
+ * If the current nav item has children nav items
22
+ */
23
+ this.hasChildren = false;
24
+ /**
25
+ * If the parent nav item of the current one is expanded
26
+ */
27
+ this.parentExpanded = false;
28
+ /**
29
+ * Nav Item Type
30
+ */
31
+ this.navType = undefined;
32
+ }
33
+ /**
34
+ * Watch
35
+ */
36
+ expandedHandler(newValue) {
37
+ const children = Array.prototype.slice.call(this.el.children);
38
+ children.forEach(child => {
39
+ child.parentExpanded = newValue;
40
+ });
41
+ this.menuItemToggled.emit({ expanded: this.ariaExpanded });
42
+ }
43
+ /**
44
+ * Event Listener
45
+ */
46
+ handleClick(e) {
47
+ if (this.hasChildren) {
48
+ e.preventDefault();
49
+ this.ariaExpanded = !this.ariaExpanded;
50
+ }
51
+ }
52
+ handleResize(ev) {
53
+ console.log('the body was scrolled', ev);
54
+ }
55
+ /**
56
+ * Lifecycle method
57
+ */
58
+ componentWillRender() {
59
+ this.hasChildren = !!this.el.hasChildNodes();
60
+ let parentMenu = this.el.closest('ptc-nav-item');
61
+ let nextParentMenu;
62
+ this.depth = 0;
63
+ while (parentMenu) {
64
+ nextParentMenu = parentMenu.parentElement.closest('ptc-nav-item');
65
+ if (nextParentMenu === parentMenu) {
66
+ break;
67
+ }
68
+ else {
69
+ parentMenu = nextParentMenu;
70
+ this.depth = this.depth + 1;
71
+ }
72
+ }
73
+ }
74
+ render() {
75
+ //const leftIndent = this.depth > 1 ? 25 * this.depth + 'px' : '25px';
76
+ return (h(Host, { role: "none" },
77
+ h("a", { role: "menuitem", href: this.url, tabIndex: this.parentExpanded || this.depth === 1 ? 0 : -1, "aria-depth": this.depth, "aria-haspopup": this.hasChildren.toString(), "aria-expanded": this.hasChildren ? this.ariaExpanded.toString() : this.ariaExpanded, onClick: e => this.handleClick(e), class: this.navType },
78
+ h("span", null, this.label)),
79
+ this.hasChildren && (h("div", { class: "ptc-nav-children", role: "menu", part: this.navType, "aria-label": this.label },
80
+ h("slot", null)))));
81
+ }
82
+ static get is() { return "ptc-nav-item"; }
83
+ static get encapsulation() { return "shadow"; }
84
+ static get originalStyleUrls() { return {
85
+ "$": ["ptc-nav-item.scss"]
86
+ }; }
87
+ static get styleUrls() { return {
88
+ "$": ["ptc-nav-item.css"]
89
+ }; }
90
+ static get properties() { return {
91
+ "url": {
92
+ "type": "string",
93
+ "mutable": true,
94
+ "complexType": {
95
+ "original": "string",
96
+ "resolved": "string",
97
+ "references": {}
98
+ },
99
+ "required": false,
100
+ "optional": false,
101
+ "docs": {
102
+ "tags": [],
103
+ "text": "Link URL"
104
+ },
105
+ "attribute": "url",
106
+ "reflect": false,
107
+ "defaultValue": "undefined"
108
+ },
109
+ "label": {
110
+ "type": "string",
111
+ "mutable": true,
112
+ "complexType": {
113
+ "original": "string",
114
+ "resolved": "string",
115
+ "references": {}
116
+ },
117
+ "required": false,
118
+ "optional": false,
119
+ "docs": {
120
+ "tags": [],
121
+ "text": "Nav Description"
122
+ },
123
+ "attribute": "label",
124
+ "reflect": false,
125
+ "defaultValue": "''"
126
+ },
127
+ "ariaExpanded": {
128
+ "type": "boolean",
129
+ "mutable": true,
130
+ "complexType": {
131
+ "original": "boolean",
132
+ "resolved": "boolean",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": "If the current nav item is expanded"
140
+ },
141
+ "attribute": "aria-expanded",
142
+ "reflect": false,
143
+ "defaultValue": "false"
144
+ },
145
+ "depth": {
146
+ "type": "number",
147
+ "mutable": true,
148
+ "complexType": {
149
+ "original": "number",
150
+ "resolved": "number",
151
+ "references": {}
152
+ },
153
+ "required": false,
154
+ "optional": false,
155
+ "docs": {
156
+ "tags": [],
157
+ "text": "Depth of the current nav item"
158
+ },
159
+ "attribute": "depth",
160
+ "reflect": true,
161
+ "defaultValue": "0"
162
+ },
163
+ "hasChildren": {
164
+ "type": "boolean",
165
+ "mutable": true,
166
+ "complexType": {
167
+ "original": "boolean",
168
+ "resolved": "boolean",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": "If the current nav item has children nav items"
176
+ },
177
+ "attribute": "has-children",
178
+ "reflect": false,
179
+ "defaultValue": "false"
180
+ },
181
+ "parentExpanded": {
182
+ "type": "boolean",
183
+ "mutable": true,
184
+ "complexType": {
185
+ "original": "boolean",
186
+ "resolved": "boolean",
187
+ "references": {}
188
+ },
189
+ "required": false,
190
+ "optional": false,
191
+ "docs": {
192
+ "tags": [],
193
+ "text": "If the parent nav item of the current one is expanded"
194
+ },
195
+ "attribute": "parent-expanded",
196
+ "reflect": true,
197
+ "defaultValue": "false"
198
+ },
199
+ "navType": {
200
+ "type": "string",
201
+ "mutable": false,
202
+ "complexType": {
203
+ "original": "'primary-nav' | 'secondary-nav' | 'primary-footer' | 'secondary-footer' | 'language-nav'",
204
+ "resolved": "\"language-nav\" | \"primary-footer\" | \"primary-nav\" | \"secondary-footer\" | \"secondary-nav\"",
205
+ "references": {}
206
+ },
207
+ "required": false,
208
+ "optional": false,
209
+ "docs": {
210
+ "tags": [],
211
+ "text": "Nav Item Type"
212
+ },
213
+ "attribute": "nav-type",
214
+ "reflect": false,
215
+ "defaultValue": "undefined"
216
+ }
217
+ }; }
218
+ static get events() { return [{
219
+ "method": "menuItemToggled",
220
+ "name": "menuItemToggled",
221
+ "bubbles": true,
222
+ "cancelable": true,
223
+ "composed": true,
224
+ "docs": {
225
+ "tags": [],
226
+ "text": "Menu Toggle Event"
227
+ },
228
+ "complexType": {
229
+ "original": "any",
230
+ "resolved": "any",
231
+ "references": {}
232
+ }
233
+ }]; }
234
+ static get elementRef() { return "el"; }
235
+ static get watchers() { return [{
236
+ "propName": "ariaExpanded",
237
+ "methodName": "expandedHandler"
238
+ }]; }
239
+ static get listeners() { return [{
240
+ "name": "handleClick",
241
+ "method": "handleClick",
242
+ "target": undefined,
243
+ "capture": false,
244
+ "passive": false
245
+ }, {
246
+ "name": "resize",
247
+ "method": "handleResize",
248
+ "target": "window",
249
+ "capture": false,
250
+ "passive": true
251
+ }]; }
252
+ }
@@ -0,0 +1,3 @@
1
+ :host {
2
+ display: block;
3
+ }
@@ -0,0 +1,14 @@
1
+ import { Component, Host, h } from '@stencil/core';
2
+ export class PtcOverlay {
3
+ render() {
4
+ return (h(Host, null,
5
+ h("slot", null)));
6
+ }
7
+ static get is() { return "ptc-overlay"; }
8
+ static get originalStyleUrls() { return {
9
+ "$": ["ptc-overlay.scss"]
10
+ }; }
11
+ static get styleUrls() { return {
12
+ "$": ["ptc-overlay.css"]
13
+ }; }
14
+ }
@@ -0,0 +1,88 @@
1
+ p.default {
2
+ text-shadow: 0 3px 6px var(--color-white);
3
+ line-height: var(--ptc-line-height-dense);
4
+ color: var(--color-primary-grey);
5
+ }
6
+ p.xx-small {
7
+ font-size: var(--ptc-font-size-xx-small);
8
+ }
9
+ p.x-small {
10
+ font-size: var(--ptc-font-size-x-small);
11
+ }
12
+ p.small {
13
+ font-size: var(--ptc-font-size-small);
14
+ }
15
+ p.medium {
16
+ font-size: var(--ptc-font-size-medium);
17
+ }
18
+ p.large {
19
+ font-size: var(--ptc-font-size-large);
20
+ }
21
+ p.x-large {
22
+ font-size: var(--ptc-font-size-x-large);
23
+ }
24
+ p.xx-large {
25
+ font-size: var(--ptc-font-size-xx-large);
26
+ }
27
+ p.xxx-large {
28
+ font-size: var(--ptc-font-size-xxx-large);
29
+ }
30
+ p.xxxx-large {
31
+ font-size: var(--ptc-font-size-xxxx-large);
32
+ }
33
+ p.w-3 {
34
+ font-weight: var(--ptc-font-weight-thin);
35
+ }
36
+ p.w-4 {
37
+ font-weight: var(--ptc-font-weight-regular);
38
+ }
39
+ p.w-5 {
40
+ font-weight: var(--ptc-font-weight-medium);
41
+ }
42
+ p.w-6 {
43
+ font-weight: var(--ptc-font-weight-semibold);
44
+ }
45
+ p.w-7 {
46
+ font-weight: var(--ptc-font-weight-bold);
47
+ }
48
+ p.w-8 {
49
+ font-weight: var(--ptc-font-weight-extrabold);
50
+ }
51
+ p.w-9 {
52
+ font-weight: var(--ptc-font-weight-black);
53
+ }
54
+ p.margin-flush {
55
+ margin-top: 0;
56
+ margin-bottom: 0;
57
+ }
58
+ p.margin-top-3 {
59
+ margin-top: var(--ptc-element-spacing-03);
60
+ }
61
+ p.margin-top-4 {
62
+ margin-top: var(--ptc-element-spacing-04);
63
+ }
64
+ p.margin-top-5 {
65
+ margin-top: var(--ptc-element-spacing-05);
66
+ }
67
+ p.margin-top-6 {
68
+ margin-top: var(--ptc-element-spacing-06);
69
+ }
70
+ p.margin-bottom-3 {
71
+ margin-bottom: var(--ptc-element-spacing-03);
72
+ }
73
+ p.margin-bottom-4 {
74
+ margin-bottom: var(--ptc-element-spacing-04);
75
+ }
76
+ p.margin-bottom-5 {
77
+ margin-bottom: var(--ptc-element-spacing-05);
78
+ }
79
+ p.margin-bottom-6 {
80
+ margin-bottom: var(--ptc-element-spacing-06);
81
+ }
82
+ p.announcement {
83
+ text-transform: uppercase;
84
+ font-size: var(--ptc-font-size-small);
85
+ color: var(--color-secondary-grey);
86
+ line-height: var(--ptc-line-height-looser);
87
+ letter-spacing: 1px;
88
+ }