@ptcwebops/ptcw-design 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) 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/list-item.cjs.entry.js +27 -0
  5. package/dist/cjs/loader.cjs.js +21 -0
  6. package/dist/cjs/lottie-player.cjs.entry.js +13476 -0
  7. package/dist/cjs/my-component.cjs.entry.js +26 -0
  8. package/dist/cjs/ptc-card.cjs.entry.js +75 -0
  9. package/dist/cjs/ptc-date.cjs.entry.js +48 -0
  10. package/dist/cjs/ptc-footer.cjs.entry.js +19 -0
  11. package/dist/cjs/ptc-image.cjs.entry.js +58 -0
  12. package/dist/cjs/ptc-img.cjs.entry.js +160 -0
  13. package/dist/cjs/ptc-link.cjs.entry.js +53 -0
  14. package/dist/cjs/ptc-list.cjs.entry.js +32 -0
  15. package/dist/cjs/ptc-lottie.cjs.entry.js +23 -0
  16. package/dist/cjs/ptc-nav-item.cjs.entry.js +94 -0
  17. package/dist/cjs/ptc-nav.cjs.entry.js +19 -0
  18. package/dist/cjs/ptc-overlay.cjs.entry.js +19 -0
  19. package/dist/cjs/ptc-picture.cjs.entry.js +26 -0
  20. package/dist/cjs/ptc-spacer.cjs.entry.js +46 -0
  21. package/dist/cjs/ptc-span.cjs.entry.js +31 -0
  22. package/dist/cjs/ptc-title.cjs.entry.js +49 -0
  23. package/dist/cjs/ptcw-design.cjs.js +19 -0
  24. package/dist/collection/assets/svg-imgs/close.svg +11 -0
  25. package/dist/collection/collection-manifest.json +40 -0
  26. package/dist/collection/components/icon-asset/assets/brands.svg +1381 -0
  27. package/dist/collection/components/icon-asset/assets/footer-social.svg +0 -0
  28. package/dist/collection/components/icon-asset/assets/ptc-sprite.svg +144 -0
  29. package/dist/collection/components/icon-asset/assets/regular.svg +463 -0
  30. package/dist/collection/components/icon-asset/assets/solid.svg +3013 -0
  31. package/dist/collection/components/icon-asset/assets/svg-with-js.min.css +5 -0
  32. package/dist/collection/components/icon-asset/icon-asset.css +30 -0
  33. package/dist/collection/components/icon-asset/icon-asset.js +177 -0
  34. package/dist/collection/components/list-item/list-item.css +3 -0
  35. package/dist/collection/components/list-item/list-item.js +63 -0
  36. package/dist/collection/components/my-component/my-component.css +3 -0
  37. package/dist/collection/components/my-component/my-component.js +74 -0
  38. package/dist/collection/components/ptc-announcement/ptc-announcement.css +87 -0
  39. package/dist/collection/components/ptc-announcement/ptc-announcement.js +127 -0
  40. package/dist/collection/components/ptc-button/ptc-button.css +155 -0
  41. package/dist/collection/components/ptc-button/ptc-button.js +223 -0
  42. package/dist/collection/components/ptc-card/ptc-card.css +239 -0
  43. package/dist/collection/components/ptc-card/ptc-card.js +260 -0
  44. package/dist/collection/components/ptc-date/ptc-date.css +3 -0
  45. package/dist/collection/components/ptc-date/ptc-date.js +155 -0
  46. package/dist/collection/components/ptc-footer/ptc-footer.css +40 -0
  47. package/dist/collection/components/ptc-footer/ptc-footer.js +25 -0
  48. package/dist/collection/components/ptc-image/ptc-image.css +4 -0
  49. package/dist/collection/components/ptc-image/ptc-image.js +92 -0
  50. package/dist/collection/components/ptc-img/ptc-img.css +65 -0
  51. package/dist/collection/components/ptc-img/ptc-img.js +315 -0
  52. package/dist/collection/components/ptc-link/ptc-link.css +168 -0
  53. package/dist/collection/components/ptc-link/ptc-link.js +197 -0
  54. package/dist/collection/components/ptc-list/ptc-list.css +24 -0
  55. package/dist/collection/components/ptc-list/ptc-list.js +66 -0
  56. package/dist/collection/components/ptc-lottie/ptc-lottie.css +5 -0
  57. package/dist/collection/components/ptc-lottie/ptc-lottie.js +58 -0
  58. package/dist/collection/components/ptc-nav/ptc-nav.css +29 -0
  59. package/dist/collection/components/ptc-nav/ptc-nav.js +21 -0
  60. package/dist/collection/components/ptc-nav-item/ptc-nav-item.css +81 -0
  61. package/dist/collection/components/ptc-nav-item/ptc-nav-item.js +252 -0
  62. package/dist/collection/components/ptc-overlay/ptc-overlay.css +3 -0
  63. package/dist/collection/components/ptc-overlay/ptc-overlay.js +14 -0
  64. package/dist/collection/components/ptc-para/ptc-para.css +64 -0
  65. package/dist/collection/components/ptc-para/ptc-para.js +111 -0
  66. package/dist/collection/components/ptc-picture/ptc-picture.css +3 -0
  67. package/dist/collection/components/ptc-picture/ptc-picture.js +44 -0
  68. package/dist/collection/components/ptc-spacer/ptc-spacer.css +307 -0
  69. package/dist/collection/components/ptc-spacer/ptc-spacer.js +99 -0
  70. package/dist/collection/components/ptc-span/ptc-span.css +36 -0
  71. package/dist/collection/components/ptc-span/ptc-span.js +86 -0
  72. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.css +77 -0
  73. package/dist/collection/components/ptc-svg-btn/ptc-svg-btn.js +34 -0
  74. package/dist/collection/components/ptc-title/ptc-title.css +64 -0
  75. package/dist/collection/components/ptc-title/ptc-title.js +105 -0
  76. package/dist/collection/index.js +1 -0
  77. package/dist/collection/utils/interfaces.js +6 -0
  78. package/dist/collection/utils/utils.js +3 -0
  79. package/dist/custom-elements/index.js +14452 -0
  80. package/dist/{ptcw-design/ptc-announcement.entry.js → esm/icon-asset_5.entry.js} +170 -2
  81. package/dist/esm/index-7a3883ee.js +1687 -0
  82. package/dist/esm/index.js +1 -0
  83. package/dist/{ptcw-design → esm}/list-item.entry.js +1 -1
  84. package/dist/esm/loader.js +17 -0
  85. package/dist/{ptcw-design → esm}/lottie-player.entry.js +31 -782
  86. package/dist/{ptcw-design → esm}/my-component.entry.js +1 -1
  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/{ptcw-design → esm}/ptc-card.entry.js +1 -1
  94. package/dist/{ptcw-design → esm}/ptc-date.entry.js +1 -1
  95. package/dist/{ptcw-design → esm}/ptc-footer.entry.js +1 -1
  96. package/dist/{ptcw-design → esm}/ptc-image.entry.js +1 -1
  97. package/dist/{ptcw-design → esm}/ptc-img.entry.js +2 -16
  98. package/dist/{ptcw-design → esm}/ptc-link.entry.js +1 -1
  99. package/dist/{ptcw-design → esm}/ptc-list.entry.js +1 -1
  100. package/dist/{ptcw-design → esm}/ptc-lottie.entry.js +1 -1
  101. package/dist/{ptcw-design → esm}/ptc-nav-item.entry.js +1 -1
  102. package/dist/{ptcw-design → esm}/ptc-nav.entry.js +1 -1
  103. package/dist/{ptcw-design → esm}/ptc-overlay.entry.js +1 -1
  104. package/dist/{ptcw-design → esm}/ptc-picture.entry.js +1 -1
  105. package/dist/{ptcw-design → esm}/ptc-spacer.entry.js +1 -1
  106. package/dist/{ptcw-design → esm}/ptc-span.entry.js +1 -1
  107. package/dist/{ptcw-design → esm}/ptc-title.entry.js +1 -1
  108. package/dist/esm/ptcw-design.js +17 -0
  109. package/dist/index.cjs.js +1 -0
  110. package/dist/index.js +1 -0
  111. package/dist/node_modules/@teamhive/lottie-player/dist/collection/components/lottie-player/lottie-player.css +187 -0
  112. package/dist/ptcw-design/index.esm.js +0 -1
  113. package/dist/ptcw-design/p-0c8df906.entry.js +1 -0
  114. package/dist/ptcw-design/p-186beb2c.entry.js +1 -0
  115. package/dist/ptcw-design/p-1df1006b.entry.js +1 -0
  116. package/dist/ptcw-design/p-2d5f8cff.entry.js +1 -0
  117. package/dist/ptcw-design/p-4586b0f5.entry.js +1 -0
  118. package/dist/ptcw-design/p-50923c9a.js +1 -0
  119. package/dist/ptcw-design/p-51a3e9e6.entry.js +1 -0
  120. package/dist/ptcw-design/p-56f6f900.entry.js +1 -0
  121. package/dist/ptcw-design/p-5f776886.entry.js +1 -0
  122. package/dist/ptcw-design/p-66ffa30c.entry.js +1 -0
  123. package/dist/ptcw-design/p-6b1a35e1.entry.js +1 -0
  124. package/dist/ptcw-design/p-796b8287.entry.js +1 -0
  125. package/dist/ptcw-design/p-90402319.entry.js +1 -0
  126. package/dist/ptcw-design/p-919311d2.entry.js +1 -0
  127. package/dist/ptcw-design/p-97a61538.entry.js +1 -0
  128. package/dist/ptcw-design/p-ac449734.entry.js +1 -0
  129. package/dist/ptcw-design/p-d6553853.entry.js +1 -0
  130. package/dist/ptcw-design/p-dddd4d6e.entry.js +1 -0
  131. package/dist/ptcw-design/p-ef250898.entry.js +1 -0
  132. package/dist/ptcw-design/p-f80152dc.entry.js +1 -0
  133. package/dist/ptcw-design/ptcw-design.css +2 -1030
  134. package/dist/ptcw-design/ptcw-design.esm.js +1 -122
  135. package/package.json +2 -2
  136. package/dist/ptcw-design/app-globals-0f993ce5.js +0 -3
  137. package/dist/ptcw-design/css-shim-003e9264.js +0 -4
  138. package/dist/ptcw-design/dom-1b195079.js +0 -73
  139. package/dist/ptcw-design/icon-asset.entry.js +0 -60
  140. package/dist/ptcw-design/ptc-button.entry.js +0 -57
  141. package/dist/ptcw-design/ptc-para.entry.js +0 -36
  142. package/dist/ptcw-design/ptc-svg-btn.entry.js +0 -27
  143. package/dist/ptcw-design/shadow-css-c1ad5fdc.js +0 -383
@@ -0,0 +1,155 @@
1
+ button:disabled {
2
+ pointer-events: none;
3
+ opacity: 0.6;
4
+ }
5
+
6
+ button {
7
+ background-color: var(--color-primary-uigrey);
8
+ display: inline-block;
9
+ border-style: solid;
10
+ border-width: 1px;
11
+ white-space: normal;
12
+ position: relative;
13
+ text-decoration: none;
14
+ cursor: pointer;
15
+ padding: 9.4px 17.5px;
16
+ border-radius: 3px;
17
+ }
18
+ button.animation-right ::slotted([slot=slot-after-text]), button.animation-right ::slotted([slot=slot-before-text]), button.animation-down ::slotted([slot=slot-after-text]), button.animation-down ::slotted([slot=slot-before-text]) {
19
+ transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
20
+ position: relative;
21
+ display: inline-block;
22
+ }
23
+ button:hover.animation-right ::slotted([slot=slot-after-text]), button:hover.animation-right ::slotted([slot=slot-before-text]) {
24
+ transform: translateX(var(--ptc-element-spacing-02));
25
+ }
26
+ button:hover.animation-down ::slotted([slot=slot-after-text]), button:hover.animation-down ::slotted([slot=slot-before-text]) {
27
+ transform: translateY(var(--ptc-element-spacing-02));
28
+ }
29
+ button span {
30
+ font-size: var(--ptc-font-size-small);
31
+ font-weight: bold;
32
+ line-height: 0.86;
33
+ }
34
+
35
+ .icon-left ::slotted([slot=slot-before-text]) {
36
+ margin-right: var(--ptc-element-spacing-01);
37
+ }
38
+
39
+ .icon-right ::slotted([slot=slot-after-text]) {
40
+ margin-left: var(--ptc-element-spacing-01);
41
+ }
42
+
43
+ .blackgrey {
44
+ box-shadow: var(--ptc-shadow-x-small);
45
+ border: solid 1px var(--color-primary-uigrey);
46
+ background-image: linear-gradient(285deg, var(--color-primary-uigrey) 155%, #6e717c 62%);
47
+ }
48
+ .blackgrey:hover {
49
+ box-shadow: var(--ptc-shadow-x-large);
50
+ }
51
+ .blackgrey span {
52
+ color: var(--color-white);
53
+ }
54
+
55
+ .turtlegreen {
56
+ box-shadow: var(--ptc-shadow-x-small);
57
+ border: solid 1px #5bb73b;
58
+ background-image: linear-gradient(285deg, #5bb73b 155%, #178642 62%);
59
+ }
60
+ .turtlegreen:hover {
61
+ box-shadow: var(--ptc-shadow-x-large);
62
+ }
63
+ .turtlegreen span {
64
+ color: var(--color-white);
65
+ }
66
+
67
+ .offwhite {
68
+ box-shadow: var(--ptc-shadow-x-small);
69
+ border: solid 1px var(--color-primary-uigrey);
70
+ background-image: linear-gradient(to right, #ffffff, #d3d3d3, #e5e5e5);
71
+ }
72
+ .offwhite:hover {
73
+ box-shadow: var(--ptc-shadow-x-large);
74
+ }
75
+ .offwhite span {
76
+ color: var(--color-primary-uigrey);
77
+ }
78
+
79
+ .legacy-green {
80
+ box-shadow: 0 0 25.8px 3.2px rgba(0, 0, 0, 0.5);
81
+ border: solid 2.5px var(--color-secondary-tutlegreen-dark);
82
+ background-image: linear-gradient(to right, var(--color-secondary-turtlegreen), var(--color-secondary-tutlegreen-dark));
83
+ }
84
+ @media screen and (min-width: 768px) {
85
+ .legacy-green {
86
+ padding: 20px 20px;
87
+ }
88
+ }
89
+ .legacy-green:after {
90
+ position: absolute;
91
+ content: "";
92
+ top: -1px;
93
+ left: 0;
94
+ bottom: 0;
95
+ right: 0;
96
+ width: 100%;
97
+ height: 103%;
98
+ background-image: linear-gradient(to right, var(--color-secondary-tutlegreen-dark), var(--color-secondary-turtlegreen));
99
+ opacity: 0;
100
+ transition: opacity 0.6s cubic-bezier(0, 0, 0.23, 1);
101
+ border-radius: 2px;
102
+ }
103
+ .legacy-green:hover {
104
+ box-shadow: 0 0 49px 6.1px rgba(0, 0, 0, 0.55);
105
+ }
106
+ .legacy-green:hover span {
107
+ color: var(--color-white);
108
+ }
109
+ .legacy-green:hover:after {
110
+ opacity: 1;
111
+ }
112
+ .legacy-green span {
113
+ font-family: var(--ptc-font-secondary-latin);
114
+ color: var(--color-white);
115
+ z-index: 100;
116
+ position: relative;
117
+ text-transform: uppercase;
118
+ font-weight: var(--ptc-font-weight-bold);
119
+ letter-spacing: var(--ptc-letter-spacing-normal);
120
+ font-size: var(--ptc-font-size-medium);
121
+ }
122
+ @media screen and (min-width: 768px) {
123
+ .legacy-green span {
124
+ font-size: 19px;
125
+ letter-spacing: var(--ptc-letter-spacing-loose);
126
+ }
127
+ }
128
+ .legacy-green icon-asset {
129
+ display: inline;
130
+ }
131
+
132
+ a {
133
+ border-style: solid;
134
+ border-width: 1px;
135
+ position: relative;
136
+ text-decoration: none;
137
+ padding: 9.4px 17.5px;
138
+ border-radius: 3px;
139
+ text-decoration: none;
140
+ display: inline-block;
141
+ outline: none;
142
+ position: relative;
143
+ }
144
+ a.animation-right ::slotted([slot=slot-after-text]), a.animation-right ::slotted([slot=slot-before-text]), a.animation-down ::slotted([slot=slot-after-text]), a.animation-down ::slotted([slot=slot-before-text]) {
145
+ transition: all ease-out 0.25s;
146
+ position: relative;
147
+ display: inline-block;
148
+ margin-left: 5px;
149
+ }
150
+ a:hover.animation-right ::slotted([slot=slot-after-text]), a:hover.animation-right ::slotted([slot=slot-before-text]) {
151
+ transform: translateX(var(--ptc-element-spacing-02));
152
+ }
153
+ a:hover.animation-down ::slotted([slot=slot-after-text]), a:hover.animation-down ::slotted([slot=slot-before-text]) {
154
+ transform: translateY(var(--ptc-element-spacing-02));
155
+ }
@@ -0,0 +1,223 @@
1
+ import { Component, Prop, h, Event, Host } from '@stencil/core';
2
+ export class PtcButton {
3
+ constructor() {
4
+ /**
5
+ * Button type
6
+ */
7
+ this.type = 'button';
8
+ /**
9
+ * Button theme color
10
+ */
11
+ this.color = 'blackgrey';
12
+ /**
13
+ * Icon Animation
14
+ */
15
+ this.iconAnimation = '';
16
+ /**
17
+ * Icon Position
18
+ */
19
+ this.iconPosition = 'icon-right';
20
+ /**
21
+ * Link URL (Optional)
22
+ */
23
+ this.linkHref = undefined;
24
+ /**
25
+ * (optional) Link target
26
+ * */
27
+ this.target = '_self';
28
+ /**
29
+ * (optional) Link rel
30
+ * */
31
+ this.rel = undefined;
32
+ }
33
+ clickEventHandler() {
34
+ this.clickEvent.emit();
35
+ console.log('click!');
36
+ }
37
+ render() {
38
+ const classMap = this.getCssClassMap();
39
+ const Tag = !!this.linkHref ? 'a' : 'button';
40
+ return (h(Host, null,
41
+ h(Tag, Object.assign({ class: classMap, disabled: this.disabled, onClick: this.clickEventHandler.bind(this) }, (!!this.linkHref ? { href: this.linkHref } : {}), (!this.linkHref ? { type: this.type } : {}), (!!this.target && !!this.linkHref ? { target: this.target } : {}), (!!this.rel && !!this.linkHref ? { rel: this.rel } : {})),
42
+ h("span", null,
43
+ h("slot", { name: "slot-before-text" }),
44
+ h("slot", null),
45
+ h("slot", { name: "slot-after-text" })))));
46
+ }
47
+ getCssClassMap() {
48
+ return {
49
+ [this.color]: true,
50
+ [this.iconAnimation]: true,
51
+ [this.iconPosition]: true,
52
+ };
53
+ }
54
+ static get is() { return "ptc-button"; }
55
+ static get encapsulation() { return "shadow"; }
56
+ static get originalStyleUrls() { return {
57
+ "$": ["ptc-button.scss"]
58
+ }; }
59
+ static get styleUrls() { return {
60
+ "$": ["ptc-button.css"]
61
+ }; }
62
+ static get properties() { return {
63
+ "disabled": {
64
+ "type": "boolean",
65
+ "mutable": false,
66
+ "complexType": {
67
+ "original": "boolean | undefined",
68
+ "resolved": "boolean",
69
+ "references": {}
70
+ },
71
+ "required": false,
72
+ "optional": true,
73
+ "docs": {
74
+ "tags": [],
75
+ "text": "Disabled button"
76
+ },
77
+ "attribute": "disabled",
78
+ "reflect": true
79
+ },
80
+ "type": {
81
+ "type": "string",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "'button' | 'reset' | 'submit' | 'link'",
85
+ "resolved": "\"button\" | \"link\" | \"reset\" | \"submit\"",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Button type"
93
+ },
94
+ "attribute": "type",
95
+ "reflect": false,
96
+ "defaultValue": "'button'"
97
+ },
98
+ "color": {
99
+ "type": "string",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "'offwhite' | 'blackgrey' | 'turtlegreen' | 'neon' | 'legacy-green'",
103
+ "resolved": "\"blackgrey\" | \"legacy-green\" | \"neon\" | \"offwhite\" | \"turtlegreen\"",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Button theme color"
111
+ },
112
+ "attribute": "color",
113
+ "reflect": false,
114
+ "defaultValue": "'blackgrey'"
115
+ },
116
+ "iconAnimation": {
117
+ "type": "string",
118
+ "mutable": false,
119
+ "complexType": {
120
+ "original": "'animation-right' | 'animation-down' | ''",
121
+ "resolved": "\"\" | \"animation-down\" | \"animation-right\"",
122
+ "references": {}
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": "Icon Animation"
129
+ },
130
+ "attribute": "icon-animation",
131
+ "reflect": false,
132
+ "defaultValue": "''"
133
+ },
134
+ "iconPosition": {
135
+ "type": "string",
136
+ "mutable": false,
137
+ "complexType": {
138
+ "original": "'icon-left' | 'icon-right'",
139
+ "resolved": "\"icon-left\" | \"icon-right\"",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": "Icon Position"
147
+ },
148
+ "attribute": "icon-position",
149
+ "reflect": false,
150
+ "defaultValue": "'icon-right'"
151
+ },
152
+ "linkHref": {
153
+ "type": "string",
154
+ "mutable": false,
155
+ "complexType": {
156
+ "original": "string",
157
+ "resolved": "string",
158
+ "references": {}
159
+ },
160
+ "required": false,
161
+ "optional": true,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": "Link URL (Optional)"
165
+ },
166
+ "attribute": "link-href",
167
+ "reflect": false,
168
+ "defaultValue": "undefined"
169
+ },
170
+ "target": {
171
+ "type": "string",
172
+ "mutable": false,
173
+ "complexType": {
174
+ "original": "string",
175
+ "resolved": "string",
176
+ "references": {}
177
+ },
178
+ "required": false,
179
+ "optional": true,
180
+ "docs": {
181
+ "tags": [],
182
+ "text": "(optional) Link target"
183
+ },
184
+ "attribute": "target",
185
+ "reflect": false,
186
+ "defaultValue": "'_self'"
187
+ },
188
+ "rel": {
189
+ "type": "string",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "string",
193
+ "resolved": "string",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": true,
198
+ "docs": {
199
+ "tags": [],
200
+ "text": "(optional) Link rel"
201
+ },
202
+ "attribute": "rel",
203
+ "reflect": false,
204
+ "defaultValue": "undefined"
205
+ }
206
+ }; }
207
+ static get events() { return [{
208
+ "method": "clickEvent",
209
+ "name": "clickEvent",
210
+ "bubbles": true,
211
+ "cancelable": true,
212
+ "composed": true,
213
+ "docs": {
214
+ "tags": [],
215
+ "text": "Emitted when the button has focus."
216
+ },
217
+ "complexType": {
218
+ "original": "void",
219
+ "resolved": "void",
220
+ "references": {}
221
+ }
222
+ }]; }
223
+ }
@@ -0,0 +1,239 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ :host(.lottie-card) .card-border {
6
+ box-shadow: 1px 1px 14px 0 rgba(101, 101, 101, 0.35);
7
+ border: 1px solid #c9c9c9;
8
+ border-radius: 10px;
9
+ position: relative;
10
+ overflow: hidden;
11
+ }
12
+ :host(.lottie-card) .card-border::after {
13
+ content: "";
14
+ height: 40%;
15
+ width: 4px;
16
+ position: absolute;
17
+ top: 30%;
18
+ right: -2px;
19
+ background-color: #74c34d;
20
+ z-index: 2;
21
+ display: block;
22
+ }
23
+ :host(.lottie-card) .card-border:hover {
24
+ box-shadow: 1px 1px 35px 0 rgba(101, 101, 101, 0.65);
25
+ }
26
+ :host(.lottie-card) .card-border:hover .card-body h3 {
27
+ border-bottom: 2px solid var(--color-primary-green);
28
+ }
29
+ :host(.lottie-card) .card-layout {
30
+ display: block;
31
+ }
32
+ @media only screen and (min-width: 992px) {
33
+ :host(.lottie-card) .card-layout {
34
+ display: flex;
35
+ flex-flow: nowrap row;
36
+ justify-content: center;
37
+ }
38
+ }
39
+ :host(.lottie-card) .link-wrapper {
40
+ outline: none;
41
+ text-decoration: none;
42
+ }
43
+ :host(.lottie-card) .link-wrapper:hover {
44
+ outline: none;
45
+ text-decoration: none;
46
+ }
47
+ :host(.lottie-card) .card-media {
48
+ flex-basis: 40%;
49
+ border-right: 1px solid #c9c9c9;
50
+ }
51
+ :host(.lottie-card) .card-body {
52
+ flex-basis: 60%;
53
+ align-self: center;
54
+ padding: 0 30px 10px;
55
+ }
56
+ :host(.lottie-card) .card-body h3 {
57
+ display: inline-block;
58
+ line-height: 1;
59
+ color: #40434a;
60
+ font-weight: var(--ptc-font-weight-bold);
61
+ font-size: var(--ptc-font-size-medium);
62
+ text-transform: uppercase;
63
+ border-bottom: 2px solid transparent;
64
+ margin-bottom: var(--ptc-element-spacing-02);
65
+ }
66
+
67
+ :host(.simple-card) .card-layout {
68
+ display: block;
69
+ }
70
+ :host(.simple-card) .link-wrapper {
71
+ outline: none;
72
+ text-decoration: none;
73
+ }
74
+ :host(.simple-card) .link-wrapper:hover {
75
+ outline: none;
76
+ text-decoration: none;
77
+ }
78
+ :host(.simple-card) .link-wrapper:hover .card-body h3::before {
79
+ width: 100%;
80
+ }
81
+ :host(.simple-card) .link-wrapper:hover ::slotted([slot=slot-after-heading]) {
82
+ margin-left: 15px;
83
+ }
84
+ :host(.simple-card) .card-body h3 {
85
+ color: #40434a;
86
+ font-size: var(--ptc-font-size-small);
87
+ font-weight: var(--ptc-font-weight-black);
88
+ line-height: 1.86;
89
+ text-transform: uppercase;
90
+ position: relative;
91
+ margin-bottom: var(--ptc-element-spacing-02);
92
+ display: inline-block;
93
+ }
94
+ :host(.simple-card) .card-body h3::before {
95
+ display: block;
96
+ position: absolute;
97
+ content: "";
98
+ width: var(--ptc-element-spacing-06);
99
+ border-bottom: 2px solid var(--color-secondary-turtlegreen);
100
+ bottom: 1px;
101
+ transition: width var(--ptc-transition-medium) var(--ptc-standard-ease);
102
+ }
103
+ :host(.simple-card) ::slotted([slot=slot-after-heading]) {
104
+ margin-left: 5px;
105
+ transition: margin-left var(--ptc-transition-medium) var(--ptc-standard-ease);
106
+ }
107
+
108
+ :host(.clip-edge-card) .card-border {
109
+ overflow: hidden;
110
+ filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 3px 6px);
111
+ width: 100%;
112
+ }
113
+ :host(.clip-edge-card) .card-border:hover {
114
+ filter: drop-shadow(rgba(0, 0, 0, 0.32) 0px 6px 12px);
115
+ }
116
+ :host(.clip-edge-card) .card-layout {
117
+ display: block;
118
+ }
119
+ :host(.clip-edge-card) .link-wrapper {
120
+ outline: none;
121
+ text-decoration: none;
122
+ }
123
+ :host(.clip-edge-card) .link-wrapper:hover {
124
+ outline: none;
125
+ text-decoration: none;
126
+ }
127
+ :host(.clip-edge-card) .card-media {
128
+ position: relative;
129
+ width: 100%;
130
+ height: 124px;
131
+ overflow: hidden;
132
+ border-radius: var(--ptc-border-radius-medium);
133
+ }
134
+ :host(.clip-edge-card) .card-body {
135
+ transform: translateY(calc((-1) * var(--ptc-element-spacing-04)));
136
+ overflow: hidden;
137
+ width: calc(95% - var(--ptc-element-spacing-04) - var(--ptc-element-spacing-06));
138
+ font-size: var(--ptc-font-size-small);
139
+ font-weight: var(--ptc-font-weight-medium);
140
+ line-height: var(--ptc-line-height-dense);
141
+ color: #40434a;
142
+ clip-path: var(--ptc-clip-path-bottom-right);
143
+ background-color: var(--color-white);
144
+ border-radius: var(--ptc-border-radius-medium);
145
+ padding: var(--ptc-element-spacing-05) var(--ptc-element-spacing-04) var(--ptc-element-spacing-03) var(--ptc-element-spacing-06);
146
+ }
147
+ :host(.clip-edge-card) .card-body h3 {
148
+ display: inline-block;
149
+ margin: 0px;
150
+ font-size: var(--ptc-font-size-medium);
151
+ font-weight: var(--ptc-font-weight-bold);
152
+ line-height: var(--ptc-line-height-dense);
153
+ color: var(--color-primary-uigrey);
154
+ text-decoration: none;
155
+ border-bottom: 2px solid transparent;
156
+ transition: border-bottom var(--ptc-transition-medium) var(--ptc-standard-ease);
157
+ margin-bottom: var(--ptc-element-spacing-03);
158
+ }
159
+ :host(.clip-edge-card) ::slotted([slot=slot-description]) {
160
+ height: 0;
161
+ opacity: 0;
162
+ transition: height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-medium) var(--ptc-standard-ease);
163
+ }
164
+ :host(.clip-edge-card) ::slotted([slot=slot-image]) {
165
+ display: block;
166
+ width: 100%;
167
+ height: 100%;
168
+ transform: scale(1);
169
+ transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
170
+ transform-origin: top center;
171
+ }
172
+ :host(.clip-edge-card) .link-wrapper:hover .card-body h3 {
173
+ border-bottom: 2px solid var(--color-secondary-turtlegreen);
174
+ }
175
+ :host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-description]) {
176
+ height: 54px;
177
+ opacity: 1;
178
+ }
179
+ :host(.clip-edge-card) .link-wrapper:hover ::slotted([slot=slot-image]) {
180
+ transform: scale(1.1);
181
+ }
182
+
183
+ :host(.hightlight-card) .card-border {
184
+ box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16);
185
+ width: 100%;
186
+ border-radius: var(--ptc-border-radius-medium);
187
+ overflow: hidden;
188
+ }
189
+ :host(.hightlight-card) .card-border:hover .card-media {
190
+ transform: scale(1.1);
191
+ }
192
+ :host(.hightlight-card) .card-layout {
193
+ display: block;
194
+ position: relative;
195
+ }
196
+ :host(.hightlight-card) .link-wrapper {
197
+ outline: none;
198
+ text-decoration: none;
199
+ }
200
+ :host(.hightlight-card) .link-wrapper:hover {
201
+ outline: none;
202
+ text-decoration: none;
203
+ }
204
+ :host(.hightlight-card) .link-wrapper:hover ::slotted([slot=slot-description]) {
205
+ height: var(--ptc-layout-spacing-05);
206
+ opacity: 1;
207
+ }
208
+ :host(.hightlight-card) .card-media {
209
+ width: 100%;
210
+ height: auto;
211
+ min-height: 450px;
212
+ position: relative;
213
+ transform: scale(1);
214
+ transform-origin: center bottom;
215
+ transition: transform var(--ptc-transition-medium) var(--ptc-standard-ease);
216
+ transition-delay: var(--ptc-delay-medium);
217
+ }
218
+ :host(.hightlight-card) .card-body {
219
+ position: absolute;
220
+ bottom: 0;
221
+ top: auto;
222
+ left: 0;
223
+ right: auto;
224
+ padding: var(--ptc-element-spacing-04) var(--ptc-element-spacing-06);
225
+ background-color: var(--color-white);
226
+ }
227
+ :host(.hightlight-card) .card-body h3 {
228
+ font-size: 30px;
229
+ line-height: 1.27;
230
+ font-weight: var(--ptc-font-weight-bold);
231
+ color: var(--color-primary-uigrey);
232
+ margin: var(--ptc-element-spacing-04) 0;
233
+ }
234
+ :host(.hightlight-card) ::slotted([slot=slot-description]) {
235
+ height: 0;
236
+ opacity: 0;
237
+ transition: height var(--ptc-transition-medium) var(--ptc-standard-ease), opacity var(--ptc-transition-fast) var(--ptc-standard-ease);
238
+ transition-delay: var(--ptc-delay-medium);
239
+ }