@ptcwebops/ptcw-design 0.0.3 → 0.0.5

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 (182) hide show
  1. package/LICENSE +21 -21
  2. package/dist/cjs/icon-asset.cjs.entry.js +64 -0
  3. package/dist/{ptcw-design/index-ca91e691.js → cjs/index-ac192914.js} +195 -1311
  4. package/dist/cjs/index.cjs.js +2 -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-button.cjs.entry.js +48 -0
  10. package/dist/cjs/ptc-card.cjs.entry.js +68 -0
  11. package/dist/cjs/ptc-date.cjs.entry.js +39 -0
  12. package/dist/cjs/ptc-footer.cjs.entry.js +19 -0
  13. package/dist/cjs/ptc-image.cjs.entry.js +58 -0
  14. package/dist/cjs/ptc-img.cjs.entry.js +84 -0
  15. package/dist/cjs/ptc-link.cjs.entry.js +48 -0
  16. package/dist/cjs/ptc-list.cjs.entry.js +27 -0
  17. package/dist/cjs/ptc-lottie.cjs.entry.js +23 -0
  18. package/dist/cjs/ptc-nav-item.cjs.entry.js +94 -0
  19. package/dist/cjs/ptc-nav.cjs.entry.js +19 -0
  20. package/dist/cjs/ptc-overlay.cjs.entry.js +19 -0
  21. package/dist/cjs/ptc-para.cjs.entry.js +39 -0
  22. package/dist/cjs/ptc-picture.cjs.entry.js +26 -0
  23. package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
  24. package/dist/cjs/ptc-span.cjs.entry.js +26 -0
  25. package/dist/cjs/ptc-title.cjs.entry.js +49 -0
  26. package/dist/cjs/ptcw-design.cjs.js +19 -0
  27. package/dist/collection/assets/responsive-background-image.min.js +1 -0
  28. package/dist/collection/collection-manifest.json +38 -0
  29. package/dist/collection/components/icon-asset/assets/brands.svg +1381 -0
  30. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  31. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +73 -0
  32. package/dist/collection/components/icon-asset/assets/regular.svg +463 -0
  33. package/dist/collection/components/icon-asset/assets/solid.svg +3013 -0
  34. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +5 -0
  35. package/dist/collection/components/icon-asset/icon-asset.css +26 -0
  36. package/dist/collection/components/icon-asset/icon-asset.js +177 -0
  37. package/dist/collection/components/list-item/list-item.css +3 -0
  38. package/dist/collection/components/list-item/list-item.js +63 -0
  39. package/dist/collection/components/my-component/my-component.css +3 -0
  40. package/dist/collection/components/my-component/my-component.js +74 -0
  41. package/dist/collection/components/ptc-button/ptc-button.css +76 -0
  42. package/dist/collection/components/ptc-button/ptc-button.js +153 -0
  43. package/dist/collection/components/ptc-card/ptc-card.css +90 -0
  44. package/dist/collection/components/ptc-card/ptc-card.js +260 -0
  45. package/dist/collection/components/ptc-date/ptc-date.css +3 -0
  46. package/dist/collection/components/ptc-date/ptc-date.js +110 -0
  47. package/dist/collection/components/ptc-footer/ptc-footer.css +40 -0
  48. package/dist/collection/components/ptc-footer/ptc-footer.js +25 -0
  49. package/dist/collection/components/ptc-image/ptc-image.css +4 -0
  50. package/dist/collection/components/ptc-image/ptc-image.js +92 -0
  51. package/dist/collection/components/ptc-img/ptc-img.css +48 -0
  52. package/dist/collection/components/ptc-img/ptc-img.js +192 -0
  53. package/dist/collection/components/ptc-link/ptc-link.css +58 -0
  54. package/dist/collection/components/ptc-link/ptc-link.js +173 -0
  55. package/dist/collection/components/ptc-list/ptc-list.css +24 -0
  56. package/dist/collection/components/ptc-list/ptc-list.js +63 -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 +53 -0
  66. package/dist/collection/components/ptc-para/ptc-para.js +92 -0
  67. package/dist/collection/components/ptc-picture/ptc-picture.css +3 -0
  68. package/dist/collection/components/ptc-picture/ptc-picture.js +44 -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 +16 -0
  72. package/dist/collection/components/ptc-span/ptc-span.js +44 -0
  73. package/dist/collection/components/ptc-title/ptc-title.css +64 -0
  74. package/dist/collection/components/ptc-title/ptc-title.js +105 -0
  75. package/dist/collection/index.js +1 -0
  76. package/dist/collection/utils/interfaces.js +6 -0
  77. package/dist/collection/utils/utils.js +3 -0
  78. package/dist/custom-elements/index.d.ts +102 -0
  79. package/dist/custom-elements/index.js +14266 -0
  80. package/dist/esm/icon-asset.entry.js +60 -0
  81. package/dist/esm/index-5b1c792c.js +1687 -0
  82. package/dist/esm/index.js +1 -0
  83. package/dist/esm/list-item.entry.js +23 -0
  84. package/dist/esm/loader.js +17 -0
  85. package/dist/esm/lottie-player.entry.js +13472 -0
  86. package/dist/{ptcw-design → esm}/my-component.entry.js +14 -14
  87. package/dist/esm/polyfills/core-js.js +11 -0
  88. package/dist/esm/polyfills/css-shim.js +1 -0
  89. package/dist/esm/polyfills/dom.js +79 -0
  90. package/dist/esm/polyfills/es5-html-element.js +1 -0
  91. package/dist/esm/polyfills/index.js +34 -0
  92. package/dist/esm/polyfills/system.js +6 -0
  93. package/dist/esm/ptc-button.entry.js +44 -0
  94. package/dist/esm/ptc-card.entry.js +64 -0
  95. package/dist/esm/ptc-date.entry.js +35 -0
  96. package/dist/esm/ptc-footer.entry.js +15 -0
  97. package/dist/esm/ptc-image.entry.js +54 -0
  98. package/dist/esm/ptc-img.entry.js +80 -0
  99. package/dist/esm/ptc-link.entry.js +44 -0
  100. package/dist/esm/ptc-list.entry.js +23 -0
  101. package/dist/esm/ptc-lottie.entry.js +19 -0
  102. package/dist/esm/ptc-nav-item.entry.js +90 -0
  103. package/dist/esm/ptc-nav.entry.js +15 -0
  104. package/dist/esm/ptc-overlay.entry.js +15 -0
  105. package/dist/esm/ptc-para.entry.js +35 -0
  106. package/dist/esm/ptc-picture.entry.js +22 -0
  107. package/dist/esm/ptc-spacer.entry.js +42 -0
  108. package/dist/esm/ptc-span.entry.js +22 -0
  109. package/dist/esm/ptc-title.entry.js +45 -0
  110. package/dist/esm/ptcw-design.js +17 -0
  111. package/dist/index.cjs.js +1 -0
  112. package/dist/index.js +1 -0
  113. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +187 -0
  114. package/dist/ptcw-design/assets/brands.svg +1381 -0
  115. package/dist/ptcw-design/assets/footer-social.svg +0 -0
  116. package/dist/ptcw-design/assets/ptc-sprite.svg +73 -0
  117. package/dist/ptcw-design/assets/regular.svg +463 -0
  118. package/dist/ptcw-design/assets/solid.svg +3013 -0
  119. package/dist/ptcw-design/assets/svg-with-js.min.css +5 -0
  120. package/dist/ptcw-design/index.esm.js +0 -1
  121. package/dist/ptcw-design/p-01dc360c.entry.js +1 -0
  122. package/dist/ptcw-design/p-07624831.entry.js +1 -0
  123. package/dist/ptcw-design/p-0a44a2f7.entry.js +1 -0
  124. package/dist/ptcw-design/p-15a428d4.entry.js +1 -0
  125. package/dist/ptcw-design/p-1a26bade.entry.js +1 -0
  126. package/dist/ptcw-design/p-1b4fd3da.entry.js +1 -0
  127. package/dist/ptcw-design/p-2d357f92.entry.js +1 -0
  128. package/dist/ptcw-design/p-31f4bd0c.entry.js +1 -0
  129. package/dist/ptcw-design/p-3af43980.entry.js +1 -0
  130. package/dist/ptcw-design/p-4f366fc3.js +1 -0
  131. package/dist/ptcw-design/p-662ae9b6.entry.js +1 -0
  132. package/dist/ptcw-design/p-77f87fa3.entry.js +1 -0
  133. package/dist/ptcw-design/p-85131a2a.entry.js +1 -0
  134. package/dist/ptcw-design/p-8b6c805c.entry.js +1 -0
  135. package/dist/ptcw-design/p-9f96864d.entry.js +1 -0
  136. package/dist/ptcw-design/p-ac0ad25e.entry.js +1 -0
  137. package/dist/ptcw-design/p-b0b2e82c.entry.js +1 -0
  138. package/dist/ptcw-design/p-c169281f.entry.js +1 -0
  139. package/dist/ptcw-design/p-ce8b8a72.entry.js +1 -0
  140. package/dist/ptcw-design/p-d0909325.entry.js +1 -0
  141. package/dist/ptcw-design/p-df01ac95.entry.js +1 -0
  142. package/dist/ptcw-design/p-fe6a3ba5.entry.js +1 -0
  143. package/dist/ptcw-design/ptcw-design.css +2 -296
  144. package/dist/ptcw-design/ptcw-design.esm.js +1 -122
  145. package/dist/types/components/icon-asset/icon-asset.d.ts +32 -0
  146. package/dist/types/components/list-item/list-item.d.ts +6 -0
  147. package/dist/types/components/my-component/my-component.d.ts +16 -16
  148. package/dist/types/components/ptc-button/ptc-button.d.ts +30 -24
  149. package/dist/types/components/ptc-card/ptc-card.d.ts +47 -7
  150. package/dist/types/components/ptc-date/ptc-date.d.ts +22 -0
  151. package/dist/types/components/ptc-footer/ptc-footer.d.ts +3 -0
  152. package/dist/types/components/ptc-image/ptc-image.d.ts +18 -0
  153. package/dist/types/components/ptc-img/ptc-img.d.ts +14 -0
  154. package/dist/types/components/ptc-link/ptc-link.d.ts +32 -0
  155. package/dist/types/components/ptc-list/ptc-list.d.ts +6 -0
  156. package/dist/types/components/ptc-lottie/ptc-lottie.d.ts +12 -0
  157. package/dist/types/components/ptc-nav/ptc-nav.d.ts +3 -0
  158. package/dist/types/components/ptc-nav-item/ptc-nav-item.d.ts +53 -0
  159. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +3 -0
  160. package/dist/types/components/ptc-para/ptc-para.d.ts +16 -0
  161. package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -0
  162. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +16 -0
  163. package/dist/types/components/ptc-span/ptc-span.d.ts +5 -0
  164. package/dist/types/components/ptc-title/ptc-title.d.ts +16 -0
  165. package/dist/types/components.d.ts +637 -16
  166. package/dist/types/index.d.ts +1 -1
  167. package/dist/types/utils/interfaces.d.ts +9 -3
  168. package/dist/types/utils/utils.d.ts +1 -1
  169. package/loader/cdn.js +3 -0
  170. package/loader/index.cjs.js +3 -0
  171. package/loader/index.d.ts +13 -0
  172. package/loader/index.es2017.js +3 -0
  173. package/loader/index.js +4 -0
  174. package/loader/package.json +10 -0
  175. package/package.json +4 -2
  176. package/readme.md +11 -11
  177. package/dist/ptcw-design/app-globals-0f993ce5.js +0 -3
  178. package/dist/ptcw-design/css-shim-003e9264.js +0 -4
  179. package/dist/ptcw-design/dom-1b195079.js +0 -73
  180. package/dist/ptcw-design/ptc-button.entry.js +0 -39
  181. package/dist/ptcw-design/ptc-card.entry.js +0 -15
  182. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +0 -383
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
+
3
+ const ptcNavCss = ":host{display:block}.nav-style{background-color:#1c2126;display:block}@media only screen and (min-width: 992px){.nav-style{display:grid;grid-template-columns:auto fit-content(76px);grid-template-rows:fit-content(22px) 1fr;grid-template-areas:\"secondary secondary\" \"primary language\"}.primary-nav{grid-area:primary}.secondary-nav{grid-area:secondary}.language-nav{grid-area:language}}";
4
+
5
+ const PtcNav = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h(Host, null, h("nav", { class: "nav-style" }, h("div", { class: "primary-nav", part: "primary-nav-part" }, h("slot", { name: "primary-nav-content" })), h("div", { class: "secondary-nav", part: "secondary-nav-part" }, h("slot", { name: "secondary-nav-content" })), h("div", { class: "language-nav", part: "language-nav-part" }, h("slot", { name: "language-nav-content" })))));
11
+ }
12
+ };
13
+ PtcNav.style = ptcNavCss;
14
+
15
+ export { PtcNav as ptc_nav };
@@ -0,0 +1,15 @@
1
+ import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
+
3
+ const ptcOverlayCss = ":host{display:block}";
4
+
5
+ const PtcOverlay = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ }
9
+ render() {
10
+ return (h(Host, null, h("slot", null)));
11
+ }
12
+ };
13
+ PtcOverlay.style = ptcOverlayCss;
14
+
15
+ export { PtcOverlay as ptc_overlay };
@@ -0,0 +1,35 @@
1
+ import { r as registerInstance, h } from './index-5b1c792c.js';
2
+
3
+ const ptcParaCss = "ptc-para p.default{text-shadow:0 3px 6px var(--color-white);line-height:var(--ptc-line-height-dense);color:var(--color-primary-grey)}ptc-para p.xx-small{font-size:var(--ptc-font-size-xx-small)}ptc-para p.x-small{font-size:var(--ptc-font-size-x-small)}ptc-para p.small{font-size:var(--ptc-font-size-small)}ptc-para p.medium{font-size:var(--ptc-font-size-medium)}ptc-para p.large{font-size:var(--ptc-font-size-large)}ptc-para p.x-large{font-size:var(--ptc-font-size-x-large)}ptc-para p.xx-large{font-size:var(--ptc-font-size-xx-large)}ptc-para p.xxx-large{font-size:var(--ptc-font-size-xxx-large)}ptc-para p.xxxx-large{font-size:var(--ptc-font-size-xxxx-large)}ptc-para p.w-3{font-weight:var(--ptc-font-weight-thin)}ptc-para p.w-4{font-weight:var(--ptc-font-weight-regular)}ptc-para p.w-5{font-weight:var(--ptc-font-weight-medium)}ptc-para p.w-6{font-weight:var(--ptc-font-weight-semibold)}ptc-para p.w-7{font-weight:var(--ptc-font-weight-bold)}ptc-para p.w-8{font-weight:var(--ptc-font-weight-extrabold)}ptc-para p.w-9{font-weight:var(--ptc-font-weight-black)}";
4
+
5
+ const PtcPara = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Paragraph font size
10
+ **/
11
+ this.fontSize = "medium";
12
+ /**
13
+ * Paragraph font weight
14
+ **/
15
+ this.fontWeight = 'w-4';
16
+ /**
17
+ * Paragraph Style
18
+ **/
19
+ this.paraStyle = 'default';
20
+ }
21
+ render() {
22
+ const classMap = this.getCssClassMap();
23
+ return (h("p", { class: classMap }, h("slot", null)));
24
+ }
25
+ getCssClassMap() {
26
+ return {
27
+ [this.fontSize]: true,
28
+ [this.fontWeight]: true,
29
+ [this.paraStyle]: true,
30
+ };
31
+ }
32
+ };
33
+ PtcPara.style = ptcParaCss;
34
+
35
+ export { PtcPara as ptc_para };
@@ -0,0 +1,22 @@
1
+ import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
+
3
+ const ptcPictureCss = ":host{display:block}";
4
+
5
+ const PtcPicture = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.lazy = 'lazy';
9
+ }
10
+ render() {
11
+ const classMap = this.getCssClassMap();
12
+ return (h(Host, { class: classMap }, h("picture", null, h("slot", null))));
13
+ }
14
+ getCssClassMap() {
15
+ return {
16
+ [this.lazy]: true,
17
+ };
18
+ }
19
+ };
20
+ PtcPicture.style = ptcPictureCss;
21
+
22
+ export { PtcPicture as ptc_picture };
@@ -0,0 +1,42 @@
1
+ import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
+
3
+ const ptcSpacerCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:12px;min-width:12px;height:12px}@media (min-width: 36em){:host{width:16px;min-width:16px;height:16px}}:host(.ptc-spacer-horizontal){display:inline-block;height:100% !important}:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-small){width:4px;min-width:4px}}:host(.ptc-spacer-horizontal.x-small){width:4px;min-width:4px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-small){width:8px;min-width:8px}}:host(.ptc-spacer-horizontal.small){width:8px;min-width:8px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.small){width:12px;min-width:12px}}:host(.ptc-spacer-horizontal.medium){height:100%}:host(.ptc-spacer-horizontal.large){width:16px;min-width:16px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.large){width:20px;min-width:20px}}:host(.ptc-spacer-horizontal.x-large){width:20px;min-width:20px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.x-large){width:28px;min-width:28px}}:host(.ptc-spacer-horizontal.xx-large){width:28px;min-width:28px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xx-large){width:36px;min-width:36px}}:host(.ptc-spacer-horizontal.xxx-large){width:36px;min-width:36px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxx-large){width:48px;min-width:48px}}:host(.ptc-spacer-horizontal.xxxx-large){width:48px;min-width:48px;height:100%}@media (min-width: 36em){:host(.ptc-spacer-horizontal.xxxx-large){width:72px;min-width:72px}}:host(.ptc-spacer-vertical.xx-small){width:100%;height:4px;min-height:4px}:host(.ptc-spacer-vertical.x-small){width:100%;height:4px;min-height:4px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-small){height:8px;min-height:8px}}:host(.ptc-spacer-vertical.small){width:100%;height:8px;min-height:8px}@media (min-width: 36em){:host(.ptc-spacer-vertical.small){height:12px;min-height:12px}}:host(.ptc-spacer-vertical.medium){width:100%}:host(.ptc-spacer-vertical.large){width:100%;height:16px;min-height:16px}@media (min-width: 36em){:host(.ptc-spacer-vertical.large){height:20px;min-height:20px}}:host(.ptc-spacer-vertical.x-large){width:100%;height:20px;min-height:20px}@media (min-width: 36em){:host(.ptc-spacer-vertical.x-large){height:28px;min-height:28px}}:host(.ptc-spacer-vertical.xx-large){width:100%;height:28px;min-height:28px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xx-large){height:36px;min-height:36px}}:host(.ptc-spacer-vertical.xxx-large){width:100%;height:36px;min-height:36px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxx-large){height:48px;min-height:48px}}:host(.ptc-spacer-vertical.xxxx-large){width:100%;height:48px;min-height:48px}@media (min-width: 36em){:host(.ptc-spacer-vertical.xxxx-large){height:72px;min-height:72px}}:host(.ptc-spacer-xx-small){display:none}@media (max-width: 22.5em){:host(.ptc-spacer-xx-small){display:block}}:host(.ptc-spacer-x-small){display:none}@media (max-width: 35.9375em){:host(.ptc-spacer-x-small){display:block}}:host(.ptc-spacer-small){display:none}@media (min-width: 36em){:host(.ptc-spacer-small){display:block}}:host(.ptc-spacer-medium){display:none}@media (min-width: 48em){:host(.ptc-spacer-medium){display:block}}:host(.ptc-spacer-large){display:none}@media (min-width: 62em){:host(.ptc-spacer-large){display:block}}:host(.ptc-spacer-x-large){display:none}@media (min-width: 64.0625em){:host(.ptc-spacer-x-large){display:block}}:host(.ptc-spacer-xx-large){display:none}@media (min-width: 76.25em){:host(.ptc-spacer-xx-large){display:block}}";
4
+
5
+ const PtcSpacer = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Breakpoint
10
+ */
11
+ this.breakpoint = '';
12
+ /**
13
+ * Spacing Size
14
+ */
15
+ this.size = 'medium';
16
+ /**
17
+ * Direction
18
+ */
19
+ this.direction = 'vertical';
20
+ }
21
+ render() {
22
+ const classMap = this.getCssClassMap();
23
+ return (h(Host, { class: classMap }));
24
+ }
25
+ getCssClassMap() {
26
+ return {
27
+ [this.size]: true,
28
+ ['ptc-spacer-horizontal']: this.direction === 'horizontal',
29
+ ['ptc-spacer-vertical']: this.direction === 'vertical',
30
+ ['ptc-spacer-xx-small']: this.breakpoint === 'xx-small',
31
+ ['ptc-spacer-x-small']: this.breakpoint === 'x-small',
32
+ ['ptc-spacer-small']: this.breakpoint === 'small',
33
+ ['ptc-spacer-medium']: this.breakpoint === 'medium',
34
+ ['ptc-spacer-large']: this.breakpoint === 'large',
35
+ ['ptc-spacer-x-large']: this.breakpoint === 'x-large',
36
+ ['ptc-spacer-xx-large']: this.breakpoint === 'xx-large',
37
+ };
38
+ }
39
+ };
40
+ PtcSpacer.style = ptcSpacerCss;
41
+
42
+ export { PtcSpacer as ptc_spacer };
@@ -0,0 +1,22 @@
1
+ import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
+
3
+ const ptcSpanCss = "ptc-span.link-style{color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal)}ptc-span.nav-style{display:block;color:#cac8c8;font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-transform:capitalize;padding-left:var(--ptc-element-spacing-05);font-size:17px;padding-bottom:var(--ptc-element-spacing-03)}";
4
+
5
+ const PtcSpan = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ this.spanStyle = 'tag-style';
9
+ }
10
+ render() {
11
+ const classMap = this.getCssClassMap();
12
+ return (h(Host, { class: classMap }, h("span", { part: "ptc-span" }, h("slot", null))));
13
+ }
14
+ getCssClassMap() {
15
+ return {
16
+ [this.spanStyle]: true,
17
+ };
18
+ }
19
+ };
20
+ PtcSpan.style = ptcSpanCss;
21
+
22
+ export { PtcSpan as ptc_span };
@@ -0,0 +1,45 @@
1
+ import { r as registerInstance, h, H as Host } from './index-5b1c792c.js';
2
+
3
+ const ptcTitleCss = "div.center{text-align:center}div.center.dotted h1::before,div.center.dotted h2::before,div.center.dotted h3::before{left:50%;transform:translateX(-50%)}div.left{text-align:left}div.left.dotted h1::before,div.left.dotted h2::before,div.left.dotted h3::before{left:0%}div.right{text-align:right}div.right.dotted h1::before,div.right.dotted h2::before,div.right.dotted h3::before{right:0%}div.dotted h1::before,div.dotted h2::before,div.dotted h3::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed #5bb73b}div.solid h1::before,div.solid h2::before,div.solid h3::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-secondary-grey);opacity:0.9;left:0px}div.solid h1::after,div.solid h2::after,div.solid h3::after{content:\"\";position:absolute;width:20%;height:2px;background-color:var(--color-primary-green);top:-2px;left:0px}div h1,div h2,div h3{display:inline-block;position:relative}div h1{font-size:46px;line-height:52px;font-weight:800;letter-spacing:0px;color:var(--color-primary-grey)}div h2{font-size:28px;line-height:32px;font-weight:800;color:var(--color-primary-grey)}";
4
+
5
+ const PtcTitle = class {
6
+ constructor(hostRef) {
7
+ registerInstance(this, hostRef);
8
+ /**
9
+ * Title Tag Type
10
+ */
11
+ this.type = 'h2';
12
+ /**
13
+ * Text Align
14
+ */
15
+ this.textAlign = 'left';
16
+ /**
17
+ * Upperline Style
18
+ */
19
+ this.upperline = 'dotted';
20
+ }
21
+ render() {
22
+ const classMap = this.getCssClassMap();
23
+ let TagType;
24
+ switch (this.type) {
25
+ case 'h1':
26
+ TagType = 'h1';
27
+ break;
28
+ case 'h3':
29
+ TagType = 'h3';
30
+ break;
31
+ default:
32
+ TagType = 'h2';
33
+ }
34
+ return (h(Host, null, h("div", { class: classMap }, h(TagType, null, h("slot", null)))));
35
+ }
36
+ getCssClassMap() {
37
+ return {
38
+ [this.textAlign]: true,
39
+ [this.upperline]: true,
40
+ };
41
+ }
42
+ };
43
+ PtcTitle.style = ptcTitleCss;
44
+
45
+ export { PtcTitle as ptc_title };
@@ -0,0 +1,17 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-5b1c792c.js';
2
+
3
+ /*
4
+ Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
5
+ */
6
+ const patchBrowser = () => {
7
+ const importMeta = import.meta.url;
8
+ const opts = {};
9
+ if (importMeta !== '') {
10
+ opts.resourcesUrl = new URL('.', importMeta).href;
11
+ }
12
+ return promiseResolve(opts);
13
+ };
14
+
15
+ patchBrowser().then(options => {
16
+ return bootstrapLazy([["ptc-card",[[1,"ptc-card",{"cardType":[1,"card-type"],"cardHref":[1,"card-href"],"headingArrow":[4,"heading-arrow"],"target":[1],"rel":[1],"heading":[1],"headingPosition":[1,"heading-position"],"hasImage":[4,"has-image"],"hasVideo":[4,"has-video"],"hasLottie":[4,"has-lottie"]}]]],["ptc-link",[[4,"ptc-link",{"external":[516],"href":[1],"target":[1],"linkTitle":[1,"link-title"],"theme":[1],"uppercase":[4],"fontSize":[1,"font-size"]}]]],["ptc-lottie",[[1,"ptc-lottie",{"jsonSrc":[1025,"json-src"],"speed":[1026]}]]],["list-item",[[4,"list-item",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["my-component",[[1,"my-component",{"first":[1],"middle":[1],"last":[1]}]]],["ptc-button",[[4,"ptc-button",{"disabled":[516],"type":[1],"color":[1],"iconAnimation":[1,"icon-animation"],"iconPosition":[1,"icon-position"]}]]],["ptc-date",[[0,"ptc-date",{"year":[2],"month":[2],"day":[2],"country":[1]}]]],["ptc-footer",[[1,"ptc-footer"]]],["ptc-image",[[1,"ptc-image",{"src":[1],"alt":[1],"oldSrc":[32]}]]],["ptc-img",[[0,"ptc-img",{"sizeXs":[1025,"size-xs"],"sizeSm":[1025,"size-sm"],"sizeMd":[1025,"size-md"],"sizeLg":[1025,"size-lg"],"imgUrl":[1,"img-url"],"imageType":[1,"image-type"]},[[9,"resize","WindowResize"]]]]],["ptc-list",[[4,"ptc-list",{"listType":[1,"list-type"],"linkHref":[1,"link-href"]}]]],["ptc-nav",[[1,"ptc-nav"]]],["ptc-nav-item",[[1,"ptc-nav-item",{"url":[1025],"label":[1025],"ariaExpanded":[1028,"aria-expanded"],"depth":[1538],"hasChildren":[1028,"has-children"],"parentExpanded":[1540,"parent-expanded"],"navType":[1,"nav-type"]},[[0,"handleClick","handleClick"],[9,"resize","handleResize"]]]]],["ptc-overlay",[[4,"ptc-overlay"]]],["ptc-para",[[4,"ptc-para",{"fontSize":[1,"font-size"],"fontWeight":[1,"font-weight"],"paraStyle":[1,"para-style"]}]]],["ptc-picture",[[4,"ptc-picture",{"lazy":[1]}]]],["ptc-spacer",[[1,"ptc-spacer",{"breakpoint":[1],"size":[1],"direction":[1]}]]],["ptc-span",[[4,"ptc-span",{"spanStyle":[1,"span-style"]}]]],["ptc-title",[[1,"ptc-title",{"type":[1],"textAlign":[1,"text-align"],"upperline":[1]}]]],["lottie-player",[[1,"lottie-player",{"mode":[1],"autoplay":[4],"background":[513],"controls":[4],"count":[2],"direction":[2],"hover":[4],"loop":[516],"renderer":[1],"speed":[2],"src":[1],"currentState":[1,"current-state"],"seeker":[8],"intermission":[2],"play":[64],"pause":[64],"stop":[64],"seek":[64],"getLottie":[64],"setSpeed":[64],"setDirection":[64],"setLooping":[64],"togglePlay":[64],"toggleLooping":[64]}]]],["icon-asset",[[0,"icon-asset",{"name":[1],"size":[1],"type":[1],"spin":[1],"pulse":[1],"color":[1]}]]]], options);
17
+ });
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,187 @@
1
+
2
+ :host {
3
+ /**
4
+ * @prop --lottie-player-toolbar-height: Toolbar height
5
+ **/
6
+ --lottie-player-toolbar-height: 35px;
7
+ /**
8
+ * @prop --lottie-player-toolbar-background-color: Toolbar background color
9
+ **/
10
+ --lottie-player-toolbar-background-color: transparent;
11
+ /**
12
+ * @prop --lottie-player-toolbar-icon-color: Toolbar icon color
13
+ **/
14
+ --lottie-player-toolbar-icon-color: #999;
15
+ /**
16
+ * @prop --lottie-player-toolbar-icon-hover-color: Toolbar icon hover color
17
+ **/
18
+ --lottie-player-toolbar-icon-hover-color: #222;
19
+ /**
20
+ * @prop --lottie-player-toolbar-icon-active-color: Toolbar icon active color
21
+ **/
22
+ --lottie-player-toolbar-icon-active-color: #555;
23
+ /**
24
+ * @prop --lottie-player-seeker-track-color: Seeker track color
25
+ **/
26
+ --lottie-player-seeker-track-color: #CCC;
27
+ /**
28
+ * @prop --lottie-player-seeker-thumb-color: Seeker thumb color
29
+ **/
30
+ --lottie-player-seeker-thumb-color: rgba(0, 107, 120, 0.8);
31
+
32
+ display: block;
33
+ width: 100%;
34
+ height: 100%;
35
+ }
36
+
37
+ .main {
38
+ box-sizing: border-box;
39
+ display: inline-grid;
40
+ grid-auto-columns: auto;
41
+ grid-template-rows: auto;
42
+ position: relative;
43
+ height: inherit;
44
+ width: inherit;
45
+ }
46
+
47
+ .main.controls {
48
+ grid-template-rows: 1fr var(--lottie-player-toolbar-height);
49
+ }
50
+
51
+ .animation {
52
+ overflow: hidden;
53
+ height: calc(1fr - var(--lottie-player-toolbar-height));
54
+ }
55
+
56
+ .toolbar {
57
+ display: grid;
58
+ grid-template-columns: 32px 32px 1fr 32px 32px;
59
+ align-items: center;
60
+ justify-items: center;
61
+ background-color: var(--lottie-player-toolbar-background-color);
62
+ }
63
+
64
+ .toolbar button {
65
+ cursor: pointer;
66
+ fill: var(--lottie-player-toolbar-icon-color);
67
+ display: flex;
68
+ background: none;
69
+ border: 0;
70
+ padding: 0;
71
+ outline: none;
72
+ height: 100%;
73
+ }
74
+
75
+ .toolbar button:hover {
76
+ fill: var(--lottie-player-toolbar-icon-hover-color);
77
+ }
78
+
79
+ .toolbar button.active {
80
+ fill: var(--lottie-player-toolbar-icon-active-color);
81
+ }
82
+
83
+ .toolbar button.disabled svg {
84
+ display: none;
85
+ }
86
+
87
+ .toolbar a {
88
+ filter: grayscale(100%);
89
+ display: flex;
90
+ transition: filter .5s, opacity 0.5s;
91
+ opacity: 0.4;
92
+ height: 100%;
93
+ align-items: center;
94
+ }
95
+
96
+ .toolbar a:hover {
97
+ filter: none;
98
+ display: flex;
99
+ opacity: 1;
100
+ }
101
+
102
+ .seeker {
103
+ -webkit-appearance: none;
104
+ width: 95%;
105
+ outline: none;
106
+ }
107
+
108
+ .seeker::-webkit-slider-runnable-track {
109
+ width: 100%;
110
+ height: 5px;
111
+ cursor: pointer;
112
+ background: var(--lottie-player-seeker-track-color);
113
+ border-radius: 3px;
114
+ }
115
+
116
+ .seeker::-webkit-slider-thumb {
117
+ height: 15px;
118
+ width: 15px;
119
+ border-radius: 50%;
120
+ background: var(--lottie-player-seeker-thumb-color);
121
+ cursor: pointer;
122
+ -webkit-appearance: none;
123
+ margin-top: -5px;
124
+ }
125
+
126
+ .seeker:focus::-webkit-slider-runnable-track {
127
+ background: #999;
128
+ }
129
+
130
+ .seeker::-moz-range-track {
131
+ width: 100%;
132
+ height: 5px;
133
+ cursor: pointer;
134
+ background: var(--lottie-player-seeker-track-color);
135
+ border-radius: 3px;
136
+ }
137
+
138
+ .seeker::-moz-range-thumb {
139
+ height: 15px;
140
+ width: 15px;
141
+ border-radius: 50%;
142
+ background: var(--lottie-player-seeker-thumb-color);
143
+ cursor: pointer;
144
+ }
145
+
146
+ .seeker::-ms-track {
147
+ width: 100%;
148
+ height: 5px;
149
+ cursor: pointer;
150
+ background: transparent;
151
+ border-color: transparent;
152
+ color: transparent;
153
+ }
154
+
155
+ .seeker::-ms-fill-lower {
156
+ background: var(--lottie-player-seeker-track-color);
157
+ border-radius: 3px;
158
+ }
159
+
160
+ .seeker::-ms-fill-upper {
161
+ background: var(--lottie-player-seeker-track-color);
162
+ border-radius: 3px;
163
+ }
164
+
165
+ .seeker::-ms-thumb {
166
+ border: 0;
167
+ height: 15px;
168
+ width: 15px;
169
+ border-radius: 50%;
170
+ background: var(--lottie-player-seeker-thumb-color);
171
+ cursor: pointer;
172
+ }
173
+
174
+ .seeker:focus::-ms-fill-lower {
175
+ background: var(--lottie-player-seeker-track-color);
176
+ }
177
+
178
+ .seeker:focus::-ms-fill-upper {
179
+ background: var(--lottie-player-seeker-track-color);
180
+ }
181
+
182
+ .error {
183
+ display: flex;
184
+ justify-content: center;
185
+ height: 100%;
186
+ align-items: center;
187
+ }