@ptcwebops/ptcw-design 0.0.15 → 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.
Files changed (152) hide show
  1. package/dist/custom-elements/index.d.ts +12 -0
  2. package/dist/ptcw-design/app-globals-0f993ce5.js +3 -0
  3. package/dist/ptcw-design/assets/ptc-sprite.svg +67 -0
  4. package/dist/ptcw-design/css-shim-003e9264.js +4 -0
  5. package/dist/ptcw-design/dom-1b195079.js +73 -0
  6. package/dist/{esm → ptcw-design}/icon-asset.entry.js +2 -2
  7. package/dist/{cjs/index-ac192914.js → ptcw-design/index-f7043a90.js} +1311 -195
  8. package/dist/ptcw-design/index.esm.js +1 -0
  9. package/dist/{esm → ptcw-design}/list-item.entry.js +1 -1
  10. package/dist/{esm → ptcw-design}/lottie-player.entry.js +782 -31
  11. package/dist/{esm → ptcw-design}/my-component.entry.js +1 -1
  12. package/dist/ptcw-design/ptc-announcement.entry.js +31 -0
  13. package/dist/ptcw-design/ptc-button.entry.js +57 -0
  14. package/dist/{esm → ptcw-design}/ptc-card.entry.js +1 -1
  15. package/dist/{esm → ptcw-design}/ptc-date.entry.js +1 -1
  16. package/dist/{esm → ptcw-design}/ptc-footer.entry.js +1 -1
  17. package/dist/{esm → ptcw-design}/ptc-image.entry.js +1 -1
  18. package/dist/{esm → ptcw-design}/ptc-img.entry.js +12 -1
  19. package/dist/{esm → ptcw-design}/ptc-link.entry.js +1 -1
  20. package/dist/{esm → ptcw-design}/ptc-list.entry.js +1 -1
  21. package/dist/{esm → ptcw-design}/ptc-lottie.entry.js +1 -1
  22. package/dist/{esm → ptcw-design}/ptc-nav-item.entry.js +1 -1
  23. package/dist/{esm → ptcw-design}/ptc-nav.entry.js +1 -1
  24. package/dist/{esm → ptcw-design}/ptc-overlay.entry.js +1 -1
  25. package/dist/{esm → ptcw-design}/ptc-para.entry.js +2 -2
  26. package/dist/{esm → ptcw-design}/ptc-picture.entry.js +1 -1
  27. package/dist/{esm → ptcw-design}/ptc-spacer.entry.js +1 -1
  28. package/dist/{esm → ptcw-design}/ptc-span.entry.js +1 -1
  29. package/dist/ptcw-design/ptc-svg-btn.entry.js +27 -0
  30. package/dist/{esm → ptcw-design}/ptc-title.entry.js +1 -1
  31. package/dist/ptcw-design/ptcw-design.css +1030 -2
  32. package/dist/ptcw-design/ptcw-design.esm.js +122 -1
  33. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +383 -0
  34. package/dist/types/components/icon-asset/icon-asset.d.ts +1 -1
  35. package/dist/types/components/ptc-announcement/ptc-announcement.d.ts +27 -0
  36. package/dist/types/components/ptc-button/ptc-button.d.ts +13 -1
  37. package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
  38. package/dist/types/components/ptc-svg-btn/ptc-svg-btn.d.ts +4 -0
  39. package/dist/types/components.d.ts +94 -6
  40. package/package.json +1 -1
  41. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  42. package/dist/cjs/index.cjs.js +0 -2
  43. package/dist/cjs/list-item.cjs.entry.js +0 -27
  44. package/dist/cjs/loader.cjs.js +0 -21
  45. package/dist/cjs/lottie-player.cjs.entry.js +0 -13476
  46. package/dist/cjs/my-component.cjs.entry.js +0 -26
  47. package/dist/cjs/ptc-button.cjs.entry.js +0 -48
  48. package/dist/cjs/ptc-card.cjs.entry.js +0 -75
  49. package/dist/cjs/ptc-date.cjs.entry.js +0 -48
  50. package/dist/cjs/ptc-footer.cjs.entry.js +0 -19
  51. package/dist/cjs/ptc-image.cjs.entry.js +0 -58
  52. package/dist/cjs/ptc-img.cjs.entry.js +0 -163
  53. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  54. package/dist/cjs/ptc-list.cjs.entry.js +0 -32
  55. package/dist/cjs/ptc-lottie.cjs.entry.js +0 -23
  56. package/dist/cjs/ptc-nav-item.cjs.entry.js +0 -94
  57. package/dist/cjs/ptc-nav.cjs.entry.js +0 -19
  58. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  59. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  60. package/dist/cjs/ptc-picture.cjs.entry.js +0 -26
  61. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  62. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  63. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  64. package/dist/cjs/ptcw-design.cjs.js +0 -19
  65. package/dist/collection/assets/responsive-background-image.min.js +0 -1
  66. package/dist/collection/collection-manifest.json +0 -38
  67. package/dist/collection/components/icon-asset/assets/brands.svg +0 -1381
  68. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  69. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +0 -77
  70. package/dist/collection/components/icon-asset/assets/regular.svg +0 -463
  71. package/dist/collection/components/icon-asset/assets/solid.svg +0 -3013
  72. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +0 -5
  73. package/dist/collection/components/icon-asset/icon-asset.css +0 -26
  74. package/dist/collection/components/icon-asset/icon-asset.js +0 -177
  75. package/dist/collection/components/list-item/list-item.css +0 -3
  76. package/dist/collection/components/list-item/list-item.js +0 -63
  77. package/dist/collection/components/my-component/my-component.css +0 -3
  78. package/dist/collection/components/my-component/my-component.js +0 -74
  79. package/dist/collection/components/ptc-button/ptc-button.css +0 -76
  80. package/dist/collection/components/ptc-button/ptc-button.js +0 -153
  81. package/dist/collection/components/ptc-card/ptc-card.css +0 -239
  82. package/dist/collection/components/ptc-card/ptc-card.js +0 -260
  83. package/dist/collection/components/ptc-date/ptc-date.css +0 -3
  84. package/dist/collection/components/ptc-date/ptc-date.js +0 -155
  85. package/dist/collection/components/ptc-footer/ptc-footer.css +0 -40
  86. package/dist/collection/components/ptc-footer/ptc-footer.js +0 -25
  87. package/dist/collection/components/ptc-image/ptc-image.css +0 -4
  88. package/dist/collection/components/ptc-image/ptc-image.js +0 -92
  89. package/dist/collection/components/ptc-img/ptc-img.css +0 -65
  90. package/dist/collection/components/ptc-img/ptc-img.js +0 -318
  91. package/dist/collection/components/ptc-link/ptc-link.css +0 -168
  92. package/dist/collection/components/ptc-link/ptc-link.js +0 -197
  93. package/dist/collection/components/ptc-list/ptc-list.css +0 -24
  94. package/dist/collection/components/ptc-list/ptc-list.js +0 -66
  95. package/dist/collection/components/ptc-lottie/ptc-lottie.css +0 -5
  96. package/dist/collection/components/ptc-lottie/ptc-lottie.js +0 -58
  97. package/dist/collection/components/ptc-nav/ptc-nav.css +0 -29
  98. package/dist/collection/components/ptc-nav/ptc-nav.js +0 -21
  99. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +0 -81
  100. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +0 -252
  101. package/dist/collection/components/ptc-overlay/ptc-overlay.css +0 -3
  102. package/dist/collection/components/ptc-overlay/ptc-overlay.js +0 -14
  103. package/dist/collection/components/ptc-para/ptc-para.css +0 -57
  104. package/dist/collection/components/ptc-para/ptc-para.js +0 -111
  105. package/dist/collection/components/ptc-picture/ptc-picture.css +0 -3
  106. package/dist/collection/components/ptc-picture/ptc-picture.js +0 -44
  107. package/dist/collection/components/ptc-spacer/ptc-spacer.css +0 -307
  108. package/dist/collection/components/ptc-spacer/ptc-spacer.js +0 -99
  109. package/dist/collection/components/ptc-span/ptc-span.css +0 -36
  110. package/dist/collection/components/ptc-span/ptc-span.js +0 -86
  111. package/dist/collection/components/ptc-title/ptc-title.css +0 -64
  112. package/dist/collection/components/ptc-title/ptc-title.js +0 -105
  113. package/dist/collection/index.js +0 -1
  114. package/dist/collection/utils/interfaces.js +0 -6
  115. package/dist/collection/utils/utils.js +0 -3
  116. package/dist/custom-elements/index.js +0 -14381
  117. package/dist/esm/index-5b1c792c.js +0 -1687
  118. package/dist/esm/index.js +0 -1
  119. package/dist/esm/loader.js +0 -17
  120. package/dist/esm/polyfills/core-js.js +0 -11
  121. package/dist/esm/polyfills/css-shim.js +0 -1
  122. package/dist/esm/polyfills/dom.js +0 -79
  123. package/dist/esm/polyfills/es5-html-element.js +0 -1
  124. package/dist/esm/polyfills/index.js +0 -34
  125. package/dist/esm/polyfills/system.js +0 -6
  126. package/dist/esm/ptc-button.entry.js +0 -44
  127. package/dist/esm/ptcw-design.js +0 -17
  128. package/dist/index.cjs.js +0 -1
  129. package/dist/index.js +0 -1
  130. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +0 -187
  131. package/dist/ptcw-design/p-00b6c442.entry.js +0 -1
  132. package/dist/ptcw-design/p-01dc360c.entry.js +0 -1
  133. package/dist/ptcw-design/p-07624831.entry.js +0 -1
  134. package/dist/ptcw-design/p-0a44a2f7.entry.js +0 -1
  135. package/dist/ptcw-design/p-1a26bade.entry.js +0 -1
  136. package/dist/ptcw-design/p-2d357f92.entry.js +0 -1
  137. package/dist/ptcw-design/p-31f4bd0c.entry.js +0 -1
  138. package/dist/ptcw-design/p-3af43980.entry.js +0 -1
  139. package/dist/ptcw-design/p-4f366fc3.js +0 -1
  140. package/dist/ptcw-design/p-662ae9b6.entry.js +0 -1
  141. package/dist/ptcw-design/p-70adca2e.entry.js +0 -1
  142. package/dist/ptcw-design/p-76dfa56f.entry.js +0 -1
  143. package/dist/ptcw-design/p-77f87fa3.entry.js +0 -1
  144. package/dist/ptcw-design/p-7a63ca63.entry.js +0 -1
  145. package/dist/ptcw-design/p-83696cae.entry.js +0 -1
  146. package/dist/ptcw-design/p-83d98048.entry.js +0 -1
  147. package/dist/ptcw-design/p-85131a2a.entry.js +0 -1
  148. package/dist/ptcw-design/p-ac0ad25e.entry.js +0 -1
  149. package/dist/ptcw-design/p-c169281f.entry.js +0 -1
  150. package/dist/ptcw-design/p-ce8b8a72.entry.js +0 -1
  151. package/dist/ptcw-design/p-d4f117d2.entry.js +0 -1
  152. package/dist/ptcw-design/p-fe6a3ba5.entry.js +0 -1
@@ -1,252 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- display: block;
3
- }
@@ -1,14 +0,0 @@
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
- }
@@ -1,57 +0,0 @@
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
- }
@@ -1,111 +0,0 @@
1
- import { Component, h, Prop } from '@stencil/core';
2
- export class PtcPara {
3
- constructor() {
4
- /**
5
- * Paragraph font size
6
- **/
7
- this.fontSize = "medium";
8
- /**
9
- * Paragraph font weight
10
- **/
11
- this.fontWeight = 'w-4';
12
- /**
13
- * Paragraph Style
14
- **/
15
- this.paraStyle = 'default';
16
- }
17
- render() {
18
- const classMap = this.getCssClassMap();
19
- return (h("p", { class: classMap, part: "part-para" },
20
- h("slot", null)));
21
- }
22
- getCssClassMap() {
23
- return {
24
- [this.fontSize]: true,
25
- [this.fontWeight]: true,
26
- [this.paraStyle]: true,
27
- [this.paraMargin]: true,
28
- };
29
- }
30
- static get is() { return "ptc-para"; }
31
- static get encapsulation() { return "shadow"; }
32
- static get originalStyleUrls() { return {
33
- "$": ["ptc-para.scss"]
34
- }; }
35
- static get styleUrls() { return {
36
- "$": ["ptc-para.css"]
37
- }; }
38
- static get properties() { return {
39
- "fontSize": {
40
- "type": "string",
41
- "mutable": false,
42
- "complexType": {
43
- "original": "'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'xxxx-large'",
44
- "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\" | \"xx-large\" | \"xx-small\" | \"xxx-large\" | \"xxxx-large\"",
45
- "references": {}
46
- },
47
- "required": false,
48
- "optional": false,
49
- "docs": {
50
- "tags": [],
51
- "text": "Paragraph font size"
52
- },
53
- "attribute": "font-size",
54
- "reflect": false,
55
- "defaultValue": "\"medium\""
56
- },
57
- "fontWeight": {
58
- "type": "string",
59
- "mutable": false,
60
- "complexType": {
61
- "original": "'w-3' | 'w-4' | 'w-5' | 'w-6' | 'w-7' | 'w-8' | 'w-9'",
62
- "resolved": "\"w-3\" | \"w-4\" | \"w-5\" | \"w-6\" | \"w-7\" | \"w-8\" | \"w-9\"",
63
- "references": {}
64
- },
65
- "required": false,
66
- "optional": false,
67
- "docs": {
68
- "tags": [],
69
- "text": "Paragraph font weight"
70
- },
71
- "attribute": "font-weight",
72
- "reflect": false,
73
- "defaultValue": "'w-4'"
74
- },
75
- "paraStyle": {
76
- "type": "string",
77
- "mutable": false,
78
- "complexType": {
79
- "original": "'default' | 'intro' | 'small'",
80
- "resolved": "\"default\" | \"intro\" | \"small\"",
81
- "references": {}
82
- },
83
- "required": false,
84
- "optional": false,
85
- "docs": {
86
- "tags": [],
87
- "text": "Paragraph Style"
88
- },
89
- "attribute": "para-style",
90
- "reflect": false,
91
- "defaultValue": "'default'"
92
- },
93
- "paraMargin": {
94
- "type": "string",
95
- "mutable": false,
96
- "complexType": {
97
- "original": "'margin-flush'",
98
- "resolved": "\"margin-flush\"",
99
- "references": {}
100
- },
101
- "required": false,
102
- "optional": true,
103
- "docs": {
104
- "tags": [],
105
- "text": "Paragraph Margin"
106
- },
107
- "attribute": "para-margin",
108
- "reflect": false
109
- }
110
- }; }
111
- }
@@ -1,3 +0,0 @@
1
- :host {
2
- display: block;
3
- }
@@ -1,44 +0,0 @@
1
- import { Component, Prop, Host, h } from '@stencil/core';
2
- export class PtcPicture {
3
- constructor() {
4
- this.lazy = 'lazy';
5
- }
6
- render() {
7
- const classMap = this.getCssClassMap();
8
- return (h(Host, { class: classMap },
9
- h("picture", null,
10
- h("slot", null))));
11
- }
12
- getCssClassMap() {
13
- return {
14
- [this.lazy]: true,
15
- };
16
- }
17
- static get is() { return "ptc-picture"; }
18
- static get originalStyleUrls() { return {
19
- "$": ["ptc-picture.css"]
20
- }; }
21
- static get styleUrls() { return {
22
- "$": ["ptc-picture.css"]
23
- }; }
24
- static get properties() { return {
25
- "lazy": {
26
- "type": "string",
27
- "mutable": false,
28
- "complexType": {
29
- "original": "'lazy' | 'eager'",
30
- "resolved": "\"eager\" | \"lazy\"",
31
- "references": {}
32
- },
33
- "required": false,
34
- "optional": false,
35
- "docs": {
36
- "tags": [],
37
- "text": ""
38
- },
39
- "attribute": "lazy",
40
- "reflect": false,
41
- "defaultValue": "'lazy'"
42
- }
43
- }; }
44
- }