@ptcwebops/ptcw-design 0.2.7 → 0.2.9

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 (145) hide show
  1. package/dist/cjs/icon-asset_16.cjs.entry.js +812 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/ptc-announcement.cjs.entry.js +43 -0
  4. package/dist/cjs/ptc-list.cjs.entry.js +2 -3
  5. package/dist/cjs/ptc-svg-btn.cjs.entry.js +31 -0
  6. package/dist/cjs/ptcw-design.cjs.js +1 -1
  7. package/dist/collection/collection-manifest.json +5 -0
  8. package/dist/collection/components/icon-asset/media/designer.svg +33 -0
  9. package/dist/collection/components/list-item/list-item.css +39 -1
  10. package/dist/collection/components/list-item/list-item.js +26 -5
  11. package/dist/collection/components/ptc-announcement/ptc-announcement.css +5 -5
  12. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.css +19 -0
  13. package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +21 -0
  14. package/dist/collection/components/ptc-button/ptc-button.css +12 -1
  15. package/dist/collection/components/ptc-button/ptc-button.js +29 -7
  16. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.css +12 -0
  17. package/dist/collection/components/ptc-card-bottom/ptc-card-bottom.js +41 -0
  18. package/dist/collection/components/ptc-card-content/ptc-card-content.css +61 -0
  19. package/dist/collection/components/ptc-card-content/ptc-card-content.js +81 -0
  20. package/dist/collection/components/ptc-card-plm/ptc-card-plm.css +19 -0
  21. package/dist/collection/components/ptc-card-plm/ptc-card-plm.js +97 -0
  22. package/dist/collection/components/ptc-hero/ptc-hero.css +13 -0
  23. package/dist/collection/components/ptc-hero/ptc-hero.js +43 -0
  24. package/dist/collection/components/ptc-img/ptc-img.js +6 -1
  25. package/dist/collection/components/ptc-link/ptc-link.css +25 -3
  26. package/dist/collection/components/ptc-link/ptc-link.js +3 -2
  27. package/dist/collection/components/ptc-list/ptc-list.css +8 -4
  28. package/dist/collection/components/ptc-list/ptc-list.js +5 -8
  29. package/dist/collection/components/ptc-overlay/ptc-overlay.css +81 -0
  30. package/dist/collection/components/ptc-overlay/ptc-overlay.js +88 -3
  31. package/dist/collection/components/ptc-para/ptc-para.css +59 -0
  32. package/dist/collection/components/ptc-para/ptc-para.js +53 -7
  33. package/dist/collection/components/ptc-picture/ptc-picture.css +28 -1
  34. package/dist/collection/components/ptc-picture/ptc-picture.js +27 -9
  35. package/dist/collection/components/ptc-spacer/ptc-spacer.css +11 -0
  36. package/dist/collection/components/ptc-spacer/ptc-spacer.js +2 -2
  37. package/dist/collection/components/ptc-span/ptc-span.css +26 -1
  38. package/dist/collection/components/ptc-span/ptc-span.js +6 -3
  39. package/dist/collection/components/ptc-title/ptc-title.css +108 -11
  40. package/dist/collection/components/ptc-title/ptc-title.js +62 -4
  41. package/dist/custom-elements/index.d.ts +30 -0
  42. package/dist/custom-elements/index.js +200 -36
  43. package/dist/esm/icon-asset_16.entry.js +793 -0
  44. package/dist/esm/{index-eb8ce23d.js → index-6ce5b664.js} +1 -1
  45. package/dist/esm/loader.js +2 -2
  46. package/dist/esm/lottie-player.entry.js +1 -1
  47. package/dist/esm/my-component.entry.js +1 -1
  48. package/dist/esm/ptc-announcement.entry.js +39 -0
  49. package/dist/esm/ptc-avatar.entry.js +1 -1
  50. package/dist/esm/ptc-card.entry.js +1 -1
  51. package/dist/esm/ptc-countdown.entry.js +1 -1
  52. package/dist/esm/ptc-date.entry.js +1 -1
  53. package/dist/esm/ptc-footer.entry.js +1 -1
  54. package/dist/esm/ptc-form.entry.js +1 -1
  55. package/dist/esm/ptc-input.entry.js +1 -1
  56. package/dist/esm/ptc-list.entry.js +3 -4
  57. package/dist/esm/ptc-lottie.entry.js +1 -1
  58. package/dist/esm/ptc-nav-item.entry.js +1 -1
  59. package/dist/esm/ptc-nav.entry.js +1 -1
  60. package/dist/esm/ptc-select.entry.js +1 -1
  61. package/dist/esm/ptc-svg-btn.entry.js +27 -0
  62. package/dist/esm/ptcw-design.js +2 -2
  63. package/dist/ptcw-design/media/designer.svg +33 -0
  64. package/dist/ptcw-design/{p-63b55aba.entry.js → p-281824f5.entry.js} +1 -1
  65. package/dist/ptcw-design/p-31b2af1d.entry.js +1 -0
  66. package/dist/ptcw-design/{p-f94c4594.entry.js → p-3437fbce.entry.js} +1 -1
  67. package/dist/ptcw-design/{p-e8650244.entry.js → p-542939d4.entry.js} +1 -1
  68. package/dist/ptcw-design/{p-ef6acb81.entry.js → p-5c78913c.entry.js} +1 -1
  69. package/dist/ptcw-design/{p-3f42afb6.entry.js → p-5eb74dc3.entry.js} +1 -1
  70. package/dist/ptcw-design/p-609dec21.entry.js +1 -0
  71. package/dist/ptcw-design/{p-1b3b0193.entry.js → p-6ff80c95.entry.js} +1 -1
  72. package/dist/ptcw-design/p-8bbb4277.entry.js +1 -0
  73. package/dist/ptcw-design/p-9a35c9e2.entry.js +1 -0
  74. package/dist/ptcw-design/{p-22fd400f.entry.js → p-aafe51df.entry.js} +1 -1
  75. package/dist/ptcw-design/{p-75dc7328.entry.js → p-ac57feca.entry.js} +1 -1
  76. package/dist/ptcw-design/{p-2ca3c085.js → p-b1afaef3.js} +1 -1
  77. package/dist/ptcw-design/p-b85eda19.entry.js +1 -0
  78. package/dist/ptcw-design/p-bac826ad.entry.js +1 -0
  79. package/dist/ptcw-design/{p-e4b96b46.entry.js → p-da7ee0ba.entry.js} +1 -1
  80. package/dist/ptcw-design/{p-32ef3a79.entry.js → p-e2492128.entry.js} +1 -1
  81. package/dist/ptcw-design/p-e266fc0b.entry.js +1 -0
  82. package/dist/ptcw-design/ptcw-design.css +2 -2
  83. package/dist/ptcw-design/ptcw-design.esm.js +1 -1
  84. package/dist/types/components/list-item/list-item.d.ts +2 -1
  85. package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +4 -0
  86. package/dist/types/components/ptc-button/ptc-button.d.ts +7 -3
  87. package/dist/types/components/ptc-card-bottom/ptc-card-bottom.d.ts +5 -0
  88. package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +11 -0
  89. package/dist/types/components/ptc-card-plm/ptc-card-plm.d.ts +8 -0
  90. package/dist/types/components/ptc-hero/ptc-hero.d.ts +5 -0
  91. package/dist/types/components/ptc-img/ptc-img.d.ts +3 -0
  92. package/dist/types/components/ptc-link/ptc-link.d.ts +1 -1
  93. package/dist/types/components/ptc-list/ptc-list.d.ts +1 -1
  94. package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +17 -0
  95. package/dist/types/components/ptc-para/ptc-para.d.ts +11 -3
  96. package/dist/types/components/ptc-picture/ptc-picture.d.ts +5 -1
  97. package/dist/types/components/ptc-spacer/ptc-spacer.d.ts +1 -1
  98. package/dist/types/components/ptc-span/ptc-span.d.ts +4 -1
  99. package/dist/types/components/ptc-title/ptc-title.d.ts +14 -2
  100. package/dist/types/components.d.ts +229 -28
  101. package/package.json +1 -1
  102. package/readme.md +1 -1
  103. package/dist/cjs/icon-asset.cjs.entry.js +0 -64
  104. package/dist/cjs/interfaces-0ecd8027.js +0 -15
  105. package/dist/cjs/list-item.cjs.entry.js +0 -27
  106. package/dist/cjs/ptc-announcement_2.cjs.entry.js +0 -68
  107. package/dist/cjs/ptc-button.cjs.entry.js +0 -72
  108. package/dist/cjs/ptc-img.cjs.entry.js +0 -155
  109. package/dist/cjs/ptc-link.cjs.entry.js +0 -53
  110. package/dist/cjs/ptc-overlay.cjs.entry.js +0 -19
  111. package/dist/cjs/ptc-para.cjs.entry.js +0 -40
  112. package/dist/cjs/ptc-picture.cjs.entry.js +0 -159
  113. package/dist/cjs/ptc-spacer.cjs.entry.js +0 -46
  114. package/dist/cjs/ptc-span.cjs.entry.js +0 -31
  115. package/dist/cjs/ptc-title.cjs.entry.js +0 -49
  116. package/dist/esm/icon-asset.entry.js +0 -60
  117. package/dist/esm/interfaces-3cb94654.js +0 -12
  118. package/dist/esm/list-item.entry.js +0 -23
  119. package/dist/esm/ptc-announcement_2.entry.js +0 -63
  120. package/dist/esm/ptc-button.entry.js +0 -68
  121. package/dist/esm/ptc-img.entry.js +0 -151
  122. package/dist/esm/ptc-link.entry.js +0 -49
  123. package/dist/esm/ptc-overlay.entry.js +0 -15
  124. package/dist/esm/ptc-para.entry.js +0 -36
  125. package/dist/esm/ptc-picture.entry.js +0 -155
  126. package/dist/esm/ptc-spacer.entry.js +0 -42
  127. package/dist/esm/ptc-span.entry.js +0 -27
  128. package/dist/esm/ptc-title.entry.js +0 -45
  129. package/dist/ptcw-design/p-01f4bf71.entry.js +0 -1
  130. package/dist/ptcw-design/p-1bf9750d.entry.js +0 -1
  131. package/dist/ptcw-design/p-23d07898.entry.js +0 -1
  132. package/dist/ptcw-design/p-240733ce.js +0 -1
  133. package/dist/ptcw-design/p-29c54eb0.entry.js +0 -1
  134. package/dist/ptcw-design/p-2b59ce7a.entry.js +0 -1
  135. package/dist/ptcw-design/p-389a5670.entry.js +0 -1
  136. package/dist/ptcw-design/p-51443fbb.entry.js +0 -1
  137. package/dist/ptcw-design/p-54794e45.entry.js +0 -1
  138. package/dist/ptcw-design/p-5ae43421.entry.js +0 -1
  139. package/dist/ptcw-design/p-6b5c0d9d.entry.js +0 -1
  140. package/dist/ptcw-design/p-7076b32f.entry.js +0 -1
  141. package/dist/ptcw-design/p-7b379559.entry.js +0 -1
  142. package/dist/ptcw-design/p-a86452af.entry.js +0 -1
  143. package/dist/ptcw-design/p-d3f9852f.entry.js +0 -1
  144. package/dist/ptcw-design/p-d80b24c9.entry.js +0 -1
  145. package/dist/ptcw-design/p-fd29d9dd.entry.js +0 -1
@@ -1,155 +0,0 @@
1
- import { r as registerInstance, h, H as Host, g as getElement } from './index-eb8ce23d.js';
2
- import { a as ResponsivePictureVariables } from './interfaces-3cb94654.js';
3
-
4
- const ptcPictureCss = ":host{display:block;overflow:hidden}img{max-width:100%;height:auto}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}";
5
-
6
- let PtcPicture = class {
7
- constructor(hostRef) {
8
- registerInstance(this, hostRef);
9
- /**
10
- * Image alt
11
- */
12
- this.alt = "image";
13
- /**
14
- * Image size for smallest screen
15
- * <=767px
16
- */
17
- this.sizeXs = '510x340';
18
- /**
19
- * Image size for small screen
20
- * >=768px and <=991px
21
- */
22
- this.sizeSm = '1240x496';
23
- /**
24
- * Image size for medium screen
25
- * >=992px and <=1199px
26
- */
27
- this.sizeMd = '1366x500';
28
- /**
29
- * Image solution for large screen
30
- * >=1200px
31
- */
32
- this.sizeLg = '1920x1080';
33
- /**
34
- * Image border shape
35
- */
36
- this.borderRadius = '';
37
- /**
38
- * Object Fit
39
- * Default: cover
40
- */
41
- this.objectFit = 'cover';
42
- }
43
- WindowResize() {
44
- this.addIntersectionObserver();
45
- }
46
- componentDidLoad() {
47
- this.addIntersectionObserver();
48
- }
49
- componentWillUpdate() {
50
- if (this.src !== this.oldSrc) {
51
- this.addIntersectionObserver();
52
- }
53
- this.oldSrc = this.src;
54
- }
55
- //lazy-loading
56
- addIntersectionObserver() {
57
- if (!this.src) {
58
- return;
59
- }
60
- if ('IntersectionObserver' in window) {
61
- let lazyLoadImages = new IntersectionObserver(entries => {
62
- entries.forEach(entry => {
63
- if (entry.isIntersecting) {
64
- const image = this.el.shadowRoot.querySelector('img');
65
- image.src = this.setResponsiveBg();
66
- console.log('loaded');
67
- lazyLoadImages.unobserve(image);
68
- }
69
- });
70
- });
71
- lazyLoadImages.observe(this.el.shadowRoot.querySelector('img'));
72
- }
73
- else {
74
- // fall back to setTimeout for Safari and IE
75
- setTimeout(() => {
76
- const image = this.el.shadowRoot.querySelector('img');
77
- image.src = this.setResponsiveBg();
78
- image.onload = () => {
79
- image.removeAttribute('data-src');
80
- console.log('loaded fallback');
81
- };
82
- }, 5000);
83
- }
84
- }
85
- //responsive image
86
- setResponsiveBg() {
87
- // Define local variables
88
- let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
89
- for (var i = 0, len = backgrounds.length; i < len; i++) {
90
- // Set current variables
91
- el = backgrounds[i];
92
- elData = el.getAttribute('data-' + currentBreakpoint);
93
- if (elData !== null) {
94
- // console.log('img src= ' + elData);
95
- return elData;
96
- }
97
- else {
98
- if (typeof console == 'object') {
99
- console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
100
- }
101
- }
102
- }
103
- }
104
- render() {
105
- const classMap = this.getCssClassMap();
106
- return (h(Host, null, this.styles && h("style", null, this.styles), h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}:${this.sizeXs}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}:${this.sizeSm}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}:${this.sizeMd}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}:${this.sizeLg}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt }))));
107
- }
108
- getCurrentBreakPoints() {
109
- // Define local variables
110
- let doc = window.document, temp = doc.createElement('div'), env;
111
- // Append test node
112
- doc.body.appendChild(temp);
113
- // Loop through breakpoints
114
- for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
115
- env = ResponsivePictureVariables.envs[i];
116
- // Add classes
117
- temp.className = 'hidden-' + env;
118
- // Found breakpoint
119
- if (temp.offsetParent === null) {
120
- // Remove our test node
121
- doc.body.removeChild(temp);
122
- console.log('remove test node');
123
- // Return current breakpoint
124
- return env;
125
- }
126
- }
127
- // Breakpoint not found, try fallback
128
- doc.body.removeChild(temp);
129
- return this.getFallbackBreakpoint();
130
- }
131
- getFallbackBreakpoint() {
132
- if (window.matchMedia('(min-width: 992px)').matches) {
133
- return 'lg';
134
- }
135
- else if (window.matchMedia('(min-width: 768px)').matches) {
136
- return 'md';
137
- }
138
- else if (window.matchMedia('(min-width: 576px)').matches) {
139
- return 'sm';
140
- }
141
- else {
142
- return 'xs';
143
- }
144
- }
145
- getCssClassMap() {
146
- return {
147
- [this.borderRadius]: true,
148
- [this.objectFit]: true,
149
- };
150
- }
151
- get el() { return getElement(this); }
152
- };
153
- PtcPicture.style = ptcPictureCss;
154
-
155
- export { PtcPicture as ptc_picture };
@@ -1,42 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-eb8ce23d.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
- let 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 };
@@ -1,27 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-eb8ce23d.js';
2
-
3
- const ptcSpanCss = ":host(.link-style) span{color:var(--color-primary-uigrey);font-weight:var(--ptc-font-weight-black);position:relative;line-height:var(--ptc-line-height-normal)}:host(.nav-style) span{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)}:host(.tag-style) span{font-size:var(--ptc-font-size-medium);line-height:var(--ptc-line-height-dense);font-weight:var(--ptc-font-weight-regular);color:#40434a}:host(.inline) span{display:inline}:host(.block) span{display:block}:host(.inline-block) span{display:inline-block}";
4
-
5
- let PtcSpan = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /**
9
- * Span Style
10
- */
11
- this.spanStyle = 'tag-style';
12
- this.display = 'inline';
13
- }
14
- render() {
15
- const classMap = this.getCssClassMap();
16
- return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("span", { part: "part-ptc-span" }, h("slot", null))));
17
- }
18
- getCssClassMap() {
19
- return {
20
- [this.spanStyle]: true,
21
- [this.display]: true,
22
- };
23
- }
24
- };
25
- PtcSpan.style = ptcSpanCss;
26
-
27
- export { PtcSpan as ptc_span };
@@ -1,45 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-eb8ce23d.js';
2
-
3
- const ptcTitleCss = "div.center.sc-ptc-title{text-align:center}div.center.dotted.sc-ptc-title h1.sc-ptc-title::before,div.center.dotted.sc-ptc-title h2.sc-ptc-title::before,div.center.dotted.sc-ptc-title h3.sc-ptc-title::before{left:50%;transform:translateX(-50%)}div.left.sc-ptc-title{text-align:left}div.left.dotted.sc-ptc-title h1.sc-ptc-title::before,div.left.dotted.sc-ptc-title h2.sc-ptc-title::before,div.left.dotted.sc-ptc-title h3.sc-ptc-title::before{left:0%}div.right.sc-ptc-title{text-align:right}div.right.dotted.sc-ptc-title h1.sc-ptc-title::before,div.right.dotted.sc-ptc-title h2.sc-ptc-title::before,div.right.dotted.sc-ptc-title h3.sc-ptc-title::before{right:0%}div.dotted.sc-ptc-title h1.sc-ptc-title::before,div.dotted.sc-ptc-title h2.sc-ptc-title::before,div.dotted.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;top:-6px;width:30%;display:block;border-top:3px dashed #5bb73b}div.solid.sc-ptc-title h1.sc-ptc-title::before,div.solid.sc-ptc-title h2.sc-ptc-title::before,div.solid.sc-ptc-title h3.sc-ptc-title::before{content:\"\";position:absolute;width:100%;height:0.7px;background-color:var(--color-secondary-grey);opacity:0.9;left:0px}div.solid.sc-ptc-title h1.sc-ptc-title::after,div.solid.sc-ptc-title h2.sc-ptc-title::after,div.solid.sc-ptc-title h3.sc-ptc-title::after{content:\"\";position:absolute;width:20%;height:2px;background-color:var(--color-primary-green);top:-2px;left:0px}div.sc-ptc-title h1.sc-ptc-title,div.sc-ptc-title h2.sc-ptc-title,div.sc-ptc-title h3.sc-ptc-title{display:inline-block;position:relative}div.sc-ptc-title h1.sc-ptc-title{font-size:46px;line-height:52px;font-weight:800;letter-spacing:0px;color:var(--color-primary-grey)}div.sc-ptc-title h2.sc-ptc-title{font-size:28px;line-height:32px;font-weight:800;color:var(--color-primary-grey)}";
4
-
5
- let 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 };
@@ -1 +0,0 @@
1
- import{r as s,h as t,H as l}from"./p-2ca3c085.js";let i=class{constructor(t){s(this,t),this.listType="para-list",this.linkHref=void 0}render(){const s=this.getCssClassMap();return t(l,{class:s},t("li",null,this.linkHref?t("a",Object.assign({},this.linkHref?{href:this.linkHref}:{}),t("slot",null)):t("slot",null)))}getCssClassMap(){return{[this.listType]:!0}}};i.style=":host{display:block}";export{i as list_item}