@ppg_pl/pallete 0.0.1

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 (117) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +51 -0
  3. package/dist/cjs/index-f418fc60.js +1340 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader.cjs.js +21 -0
  6. package/dist/cjs/my-backdrop_8.cjs.entry.js +8109 -0
  7. package/dist/cjs/pallete.cjs.js +19 -0
  8. package/dist/collection/collection-manifest.json +19 -0
  9. package/dist/collection/components/api/index.js +19 -0
  10. package/dist/collection/components/api/services.js +81 -0
  11. package/dist/collection/components/my-backdrop/my-backdrop.css +21 -0
  12. package/dist/collection/components/my-backdrop/my-backdrop.js +13 -0
  13. package/dist/collection/components/my-colorbox/my-colorbox.css +60 -0
  14. package/dist/collection/components/my-colorbox/my-colorbox.js +145 -0
  15. package/dist/collection/components/my-colorinfo/my-colorinfo.js +197 -0
  16. package/dist/collection/components/my-component/my-component.css +18 -0
  17. package/dist/collection/components/my-component/my-component.js +106 -0
  18. package/dist/collection/components/my-loader/my-loader.css +85 -0
  19. package/dist/collection/components/my-loader/my-loader.js +18 -0
  20. package/dist/collection/components/my-modal/assets/arrow_down.png +0 -0
  21. package/dist/collection/components/my-modal/assets/close.png +0 -0
  22. package/dist/collection/components/my-modal/my-modal.css +323 -0
  23. package/dist/collection/components/my-modal/my-modal.js +430 -0
  24. package/dist/collection/components/my-search/assets/search.svg +15 -0
  25. package/dist/collection/components/my-search/my-search.css +43 -0
  26. package/dist/collection/components/my-search/my-search.js +112 -0
  27. package/dist/collection/components/my-slider/index.js +145 -0
  28. package/dist/collection/components/my-slider/my-slider.css +96 -0
  29. package/dist/collection/gtmUtils.js +3 -0
  30. package/dist/collection/index.js +1 -0
  31. package/dist/collection/types.js +1 -0
  32. package/dist/components/gtmUtils.js +5 -0
  33. package/dist/components/index.d.ts +29 -0
  34. package/dist/components/index.js +9 -0
  35. package/dist/components/index2.js +5458 -0
  36. package/dist/components/my-backdrop.d.ts +11 -0
  37. package/dist/components/my-backdrop.js +6 -0
  38. package/dist/components/my-backdrop2.js +29 -0
  39. package/dist/components/my-colorbox.d.ts +11 -0
  40. package/dist/components/my-colorbox.js +6 -0
  41. package/dist/components/my-colorbox2.js +61 -0
  42. package/dist/components/my-colorinfo.d.ts +11 -0
  43. package/dist/components/my-colorinfo.js +6 -0
  44. package/dist/components/my-colorinfo2.js +64 -0
  45. package/dist/components/my-component.d.ts +11 -0
  46. package/dist/components/my-component.js +216 -0
  47. package/dist/components/my-loader.d.ts +11 -0
  48. package/dist/components/my-loader.js +6 -0
  49. package/dist/components/my-loader2.js +29 -0
  50. package/dist/components/my-modal.d.ts +11 -0
  51. package/dist/components/my-modal.js +6 -0
  52. package/dist/components/my-modal2.js +2451 -0
  53. package/dist/components/my-search.d.ts +11 -0
  54. package/dist/components/my-search.js +6 -0
  55. package/dist/components/my-search2.js +55 -0
  56. package/dist/components/my-slider.d.ts +11 -0
  57. package/dist/components/my-slider.js +6 -0
  58. package/dist/esm/index-367ea408.js +1312 -0
  59. package/dist/esm/index.js +1 -0
  60. package/dist/esm/loader.js +17 -0
  61. package/dist/esm/my-backdrop_8.entry.js +8098 -0
  62. package/dist/esm/pallete.js +17 -0
  63. package/dist/esm/polyfills/core-js.js +11 -0
  64. package/dist/esm/polyfills/css-shim.js +1 -0
  65. package/dist/esm/polyfills/dom.js +79 -0
  66. package/dist/esm/polyfills/es5-html-element.js +1 -0
  67. package/dist/esm/polyfills/index.js +34 -0
  68. package/dist/esm/polyfills/system.js +6 -0
  69. package/dist/index.cjs.js +1 -0
  70. package/dist/index.js +1 -0
  71. package/dist/pallete/assets/arrow_down.png +0 -0
  72. package/dist/pallete/assets/close.png +0 -0
  73. package/dist/pallete/assets/search.svg +15 -0
  74. package/dist/pallete/index.esm.js +0 -0
  75. package/dist/pallete/p-02fc334c.js +2 -0
  76. package/dist/pallete/p-9f47a4e8.entry.js +1 -0
  77. package/dist/pallete/pallete.css +1 -0
  78. package/dist/pallete/pallete.esm.js +1 -0
  79. package/dist/types/components/api/index.d.ts +6 -0
  80. package/dist/types/components/api/services.d.ts +4 -0
  81. package/dist/types/components/my-backdrop/my-backdrop.d.ts +3 -0
  82. package/dist/types/components/my-colorbox/my-colorbox.d.ts +13 -0
  83. package/dist/types/components/my-colorinfo/my-colorinfo.d.ts +15 -0
  84. package/dist/types/components/my-component/my-component.d.ts +9 -0
  85. package/dist/types/components/my-loader/my-loader.d.ts +3 -0
  86. package/dist/types/components/my-modal/my-modal.d.ts +56 -0
  87. package/dist/types/components/my-search/my-search.d.ts +12 -0
  88. package/dist/types/components/my-slider/index.d.ts +15 -0
  89. package/dist/types/components.d.ts +198 -0
  90. package/dist/types/gtmUtils.d.ts +1 -0
  91. package/dist/types/index.d.ts +1 -0
  92. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  93. package/dist/types/types.d.ts +56 -0
  94. package/loader/cdn.js +3 -0
  95. package/loader/index.cjs.js +3 -0
  96. package/loader/index.d.ts +12 -0
  97. package/loader/index.es2017.js +3 -0
  98. package/loader/index.js +4 -0
  99. package/loader/package.json +10 -0
  100. package/package.json +49 -0
  101. package/www/build/assets/arrow_down.png +0 -0
  102. package/www/build/assets/close.png +0 -0
  103. package/www/build/assets/fonts/Galatea-Regular.eot +0 -0
  104. package/www/build/assets/fonts/Galatea-Regular.ttf +0 -0
  105. package/www/build/assets/fonts/Galatea-Regular.woff +0 -0
  106. package/www/build/assets/fonts/Galatea-Regular.woff2 +0 -0
  107. package/www/build/assets/search.svg +15 -0
  108. package/www/build/index.esm.js +0 -0
  109. package/www/build/p-02fc334c.js +2 -0
  110. package/www/build/p-95e95ceb.css +1 -0
  111. package/www/build/p-9f47a4e8.entry.js +1 -0
  112. package/www/build/p-b0b8b976.js +1 -0
  113. package/www/build/pallete.css +1 -0
  114. package/www/build/pallete.esm.js +1 -0
  115. package/www/build/pallete.js +33 -0
  116. package/www/host.config.json +15 -0
  117. package/www/index.html +22 -0
@@ -0,0 +1,106 @@
1
+ import { Component, Prop, Method, Element, State, Listen, h } from '@stencil/core';
2
+ import Helmet from '@stencil/helmet';
3
+ export class MyModalBundle {
4
+ constructor() {
5
+ this.show = false;
6
+ }
7
+ async open() {
8
+ this.show = true;
9
+ }
10
+ closeModalHandler() {
11
+ this.show = false;
12
+ }
13
+ render() {
14
+ let content = null;
15
+ if (this.show) {
16
+ content = [h("my-backdrop", null), h("my-modal", { shop: this.shop, product: this.product })];
17
+ }
18
+ return (h("div", null,
19
+ h(Helmet, null,
20
+ h("script", null, `(function (w, d, s, l, i) {
21
+ w[l] = w[l] || [];
22
+ w[l].push({ 'gtm.start': new Date().getTime(), 'event': 'gtm.js' });
23
+ var f = d.getElementsByTagName(s)[0],
24
+ j = d.createElement(s),
25
+ dl = l != 'dataLayer' ? '&l=' + l : '';
26
+ j.async = true;
27
+ j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl;
28
+ f.parentNode.insertBefore(j, f);
29
+ })(window, document, 'script', 'dataLayer', 'GTM-PMTKHDX');`)),
30
+ h("div", { class: "pallete-wrapper" }, content),
31
+ h("noscript", null,
32
+ h("iframe", { src: "https://www.googletagmanager.com/ns.html?id=GTM-PMTKHDX", height: "0", width: "0", style: { display: 'none', visibility: 'hidden' } }))));
33
+ }
34
+ static get is() { return "my-component"; }
35
+ static get originalStyleUrls() { return {
36
+ "$": ["my-component.scss"]
37
+ }; }
38
+ static get styleUrls() { return {
39
+ "$": ["my-component.css"]
40
+ }; }
41
+ static get properties() { return {
42
+ "shop": {
43
+ "type": "string",
44
+ "mutable": false,
45
+ "complexType": {
46
+ "original": "string",
47
+ "resolved": "string",
48
+ "references": {}
49
+ },
50
+ "required": false,
51
+ "optional": false,
52
+ "docs": {
53
+ "tags": [],
54
+ "text": ""
55
+ },
56
+ "attribute": "shop",
57
+ "reflect": false
58
+ },
59
+ "product": {
60
+ "type": "string",
61
+ "mutable": false,
62
+ "complexType": {
63
+ "original": "string",
64
+ "resolved": "string",
65
+ "references": {}
66
+ },
67
+ "required": false,
68
+ "optional": false,
69
+ "docs": {
70
+ "tags": [],
71
+ "text": ""
72
+ },
73
+ "attribute": "product",
74
+ "reflect": false
75
+ }
76
+ }; }
77
+ static get states() { return {
78
+ "show": {}
79
+ }; }
80
+ static get methods() { return {
81
+ "open": {
82
+ "complexType": {
83
+ "signature": "() => Promise<void>",
84
+ "parameters": [],
85
+ "references": {
86
+ "Promise": {
87
+ "location": "global"
88
+ }
89
+ },
90
+ "return": "Promise<void>"
91
+ },
92
+ "docs": {
93
+ "text": "",
94
+ "tags": []
95
+ }
96
+ }
97
+ }; }
98
+ static get elementRef() { return "modalEl"; }
99
+ static get listeners() { return [{
100
+ "name": "close",
101
+ "method": "closeModalHandler",
102
+ "target": undefined,
103
+ "capture": false,
104
+ "passive": false
105
+ }]; }
106
+ }
@@ -0,0 +1,85 @@
1
+ .container {
2
+ display: flex;
3
+ justify-content: center;
4
+ align-items: center;
5
+ height: 100px;
6
+ overflow: hidden;
7
+ }
8
+
9
+ .item {
10
+ width: 20px;
11
+ height: 20px;
12
+ margin: 3px;
13
+ list-style-type: none;
14
+ transition: 0.5s all ease;
15
+ }
16
+
17
+ .item:nth-child(1) {
18
+ animation: right-1 1s infinite alternate;
19
+ background-color: #b8cf40;
20
+ animation-delay: 20ms;
21
+ }
22
+ @keyframes right-1 {
23
+ 0% {
24
+ transform: translateY(-18px);
25
+ }
26
+ 100% {
27
+ transform: translateY(18px);
28
+ }
29
+ }
30
+
31
+ .item:nth-child(2) {
32
+ animation: right-2 1s infinite alternate;
33
+ background-color: #ee4b5e;
34
+ animation-delay: 40ms;
35
+ }
36
+ @keyframes right-2 {
37
+ 0% {
38
+ transform: translateY(-21px);
39
+ }
40
+ 100% {
41
+ transform: translateY(21px);
42
+ }
43
+ }
44
+
45
+ .item:nth-child(3) {
46
+ animation: right-3 1s infinite alternate;
47
+ background-color: #ea0f47;
48
+ animation-delay: 60ms;
49
+ }
50
+ @keyframes right-3 {
51
+ 0% {
52
+ transform: translateY(-24px);
53
+ }
54
+ 100% {
55
+ transform: translateY(24px);
56
+ }
57
+ }
58
+
59
+ .item:nth-child(4) {
60
+ animation: right-4 1s infinite alternate;
61
+ background-color: #d42840;
62
+ animation-delay: 80ms;
63
+ }
64
+ @keyframes right-4 {
65
+ 0% {
66
+ transform: translateY(-27px);
67
+ }
68
+ 100% {
69
+ transform: translateY(27px);
70
+ }
71
+ }
72
+
73
+ .item:nth-child(5) {
74
+ animation: right-5 1s infinite alternate;
75
+ background-color: #8b2850;
76
+ animation-delay: 100ms;
77
+ }
78
+ @keyframes right-5 {
79
+ 0% {
80
+ transform: translateY(-30px);
81
+ }
82
+ 100% {
83
+ transform: translateY(30px);
84
+ }
85
+ }
@@ -0,0 +1,18 @@
1
+ import { Component, h } from '@stencil/core';
2
+ export class MyLoader {
3
+ render() {
4
+ return (h("div", { class: "container" },
5
+ h("div", { class: "item" }),
6
+ h("div", { class: "item" }),
7
+ h("div", { class: "item" }),
8
+ h("div", { class: "item" }),
9
+ h("div", { class: "item" })));
10
+ }
11
+ static get is() { return "my-loader"; }
12
+ static get originalStyleUrls() { return {
13
+ "$": ["my-loader.scss"]
14
+ }; }
15
+ static get styleUrls() { return {
16
+ "$": ["my-loader.css"]
17
+ }; }
18
+ }
@@ -0,0 +1,323 @@
1
+ html {
2
+ font-size: 62.5%;
3
+ }
4
+
5
+ body {
6
+ font-size: 1.5rem;
7
+ }
8
+
9
+ * {
10
+ font-family: "Galatea", sans-serif;
11
+ }
12
+
13
+ .my-modal {
14
+ box-shadow: 1px 1px 1px #ccc;
15
+ background-color: #fff;
16
+ position: fixed;
17
+ top: 50%;
18
+ left: 50%;
19
+ transform: translate(-50%, -50%);
20
+ max-width: 1555px;
21
+ width: 90%;
22
+ z-index: 1000;
23
+ text-align: center;
24
+ padding: 35px 40px;
25
+ max-height: calc(100vh - 100px);
26
+ overflow-y: auto;
27
+ }
28
+ @media (max-width: 1024px) {
29
+ .my-modal {
30
+ padding: 80px 20px 20px;
31
+ }
32
+ }
33
+ .my-modal::-webkit-scrollbar {
34
+ display: none;
35
+ }
36
+ .my-modal .loader {
37
+ display: flex;
38
+ flex-direction: column;
39
+ align-items: center;
40
+ justify-content: center;
41
+ height: 300px;
42
+ }
43
+ .my-modal > img {
44
+ width: 300px;
45
+ object-fit: cover;
46
+ }
47
+ @media (max-width: 768px) {
48
+ .my-modal > img {
49
+ width: 200px;
50
+ }
51
+ }
52
+ .my-modal__close {
53
+ position: absolute;
54
+ right: 20px;
55
+ top: 20px;
56
+ background: transparent;
57
+ border: none;
58
+ }
59
+ .my-modal__close > img {
60
+ width: 45px;
61
+ height: 45px;
62
+ object-fit: cover;
63
+ cursor: pointer;
64
+ }
65
+ @media (max-width: 1024px) {
66
+ .my-modal__close {
67
+ top: 65px;
68
+ }
69
+ }
70
+ .my-modal__see-more {
71
+ font-size: 2.2rem;
72
+ margin-bottom: 27px;
73
+ display: flex;
74
+ justify-content: center;
75
+ align-items: center;
76
+ }
77
+ @media (max-width: 1024px) {
78
+ .my-modal__see-more {
79
+ font-size: 1.8rem;
80
+ }
81
+ }
82
+ .my-modal__see-more img {
83
+ width: 45px;
84
+ height: 45px;
85
+ }
86
+ @media (max-width: 1024px) {
87
+ .my-modal__see-more img {
88
+ display: none;
89
+ }
90
+ }
91
+ .my-modal__wrapper {
92
+ display: flex;
93
+ flex-direction: column;
94
+ position: relative;
95
+ }
96
+ .my-modal__wrapper .boxes {
97
+ display: flex;
98
+ flex-direction: column;
99
+ flex-wrap: wrap;
100
+ }
101
+ .my-modal__wrapper .boxes__list {
102
+ display: flex;
103
+ flex-wrap: wrap;
104
+ gap: 5px 5px;
105
+ }
106
+ .my-modal__wrapper .boxes__box-content {
107
+ width: 100%;
108
+ margin-bottom: 5px;
109
+ height: 500px;
110
+ text-align: left;
111
+ display: flex;
112
+ flex-direction: row;
113
+ justify-content: space-between;
114
+ position: relative;
115
+ }
116
+ .my-modal__wrapper .boxes__box-content .closebtn {
117
+ position: absolute;
118
+ right: 10px;
119
+ top: 10px;
120
+ width: 53px;
121
+ height: 53px;
122
+ cursor: pointer;
123
+ object-fit: cover;
124
+ z-index: 9999;
125
+ }
126
+ @media (max-width: 1024px) {
127
+ .my-modal__wrapper .boxes__box-content {
128
+ flex-direction: column-reverse;
129
+ height: 350px;
130
+ }
131
+ }
132
+ .my-modal__wrapper .boxes__box-content__info {
133
+ width: 40%;
134
+ padding: 50px 40px;
135
+ position: relative;
136
+ }
137
+ @media (max-width: 1024px) {
138
+ .my-modal__wrapper .boxes__box-content__info {
139
+ width: 100%;
140
+ padding: 15px;
141
+ min-height: 100px;
142
+ }
143
+ }
144
+ .my-modal__wrapper .boxes__box-content__info h2 {
145
+ font-size: 3.5rem;
146
+ font-weight: normal;
147
+ text-transform: capitalize;
148
+ margin-bottom: 7px;
149
+ color: #232323;
150
+ }
151
+ .my-modal__wrapper .boxes__box-content__info h4 {
152
+ margin-top: 0px;
153
+ margin-bottom: 15px;
154
+ font-size: 1.6rem;
155
+ color: #4c4c4c;
156
+ }
157
+ .my-modal__wrapper .boxes__box-content__info .divider {
158
+ border: 1px solid #4c4c4c;
159
+ opacity: 0.2;
160
+ margin-bottom: 20px;
161
+ }
162
+ .my-modal__wrapper .boxes__box-content__info__value {
163
+ display: flex;
164
+ flex-direction: row;
165
+ justify-content: flex-start;
166
+ }
167
+ @media (max-width: 1024px) {
168
+ .my-modal__wrapper .boxes__box-content__info__value {
169
+ justify-content: flex-start;
170
+ }
171
+ }
172
+ .my-modal__wrapper .boxes__box-content__info__value-image img {
173
+ width: 114px;
174
+ object-fit: cover;
175
+ }
176
+ @media (max-width: 1024px) {
177
+ .my-modal__wrapper .boxes__box-content__info__value-image img {
178
+ width: 75px;
179
+ }
180
+ }
181
+ .my-modal__wrapper .boxes__box-content__info__value-product {
182
+ color: #232323;
183
+ margin-left: 10px;
184
+ }
185
+ @media (max-width: 1024px) {
186
+ .my-modal__wrapper .boxes__box-content__info__value-product h2 {
187
+ font-size: 2.6rem;
188
+ margin: 0;
189
+ margin-right: 10px;
190
+ }
191
+ }
192
+ @media (max-width: 768px) {
193
+ .my-modal__wrapper .boxes__box-content__info__value-product h2 {
194
+ font-size: 1.6rem;
195
+ }
196
+ }
197
+ .my-modal__wrapper .boxes__box-content__info__value-product p {
198
+ font-size: 2rem;
199
+ margin-top: 0px;
200
+ margin-bottom: 0px;
201
+ }
202
+ .my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type {
203
+ margin-bottom: 20px;
204
+ }
205
+ @media (max-width: 1024px) {
206
+ .my-modal__wrapper .boxes__box-content__info__value-product p:last-of-type {
207
+ margin-bottom: 0;
208
+ }
209
+ }
210
+ @media (max-width: 768px) {
211
+ .my-modal__wrapper .boxes__box-content__info__value-product p {
212
+ font-size: 1rem;
213
+ }
214
+ }
215
+ .my-modal__wrapper .boxes__box-content__info__value-product a {
216
+ background-color: #fff;
217
+ font-size: 1.6rem;
218
+ box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
219
+ border-radius: 22.5px;
220
+ padding: 15px 30px;
221
+ color: #232323;
222
+ text-decoration: none;
223
+ display: block;
224
+ text-align: center;
225
+ transition: all 0.7s ease-in-out;
226
+ }
227
+ @media (max-width: 1024px) {
228
+ .my-modal__wrapper .boxes__box-content__info__value-product a {
229
+ max-width: 150px;
230
+ font-size: 1.3rem;
231
+ padding: 12px 25px;
232
+ }
233
+ }
234
+ .my-modal__wrapper .boxes__box-content__info__value-product a:hover {
235
+ color: #fff;
236
+ background-color: #232323;
237
+ }
238
+ .my-modal__wrapper .boxes__box-content__info__value-product a.inverse {
239
+ background-color: #232323;
240
+ color: #fff;
241
+ }
242
+ .my-modal__wrapper .boxes__box-content__info__value-product a.inverse:hover {
243
+ color: #232323;
244
+ background-color: #fff;
245
+ }
246
+ @media (max-width: 1024px) {
247
+ .my-modal__wrapper .boxes__box-content__info__value-product > div {
248
+ display: flex;
249
+ justify-content: flex-start;
250
+ align-items: center;
251
+ }
252
+ }
253
+ .my-modal__wrapper .boxes__box-content__slider {
254
+ width: 60%;
255
+ position: relative;
256
+ }
257
+ @media (max-width: 1024px) {
258
+ .my-modal__wrapper .boxes__box-content__slider {
259
+ width: 100%;
260
+ display: block;
261
+ }
262
+ }
263
+ .my-modal__wrapper .boxes__box-content__white * {
264
+ color: #fff;
265
+ }
266
+ .my-modal__wrapper .boxes__box-content__white h2 {
267
+ color: #fff;
268
+ }
269
+ .my-modal__wrapper .pagination {
270
+ margin: 10px 0px;
271
+ font-size: 16px;
272
+ display: flex;
273
+ flex-direction: row;
274
+ align-items: center;
275
+ justify-content: center;
276
+ }
277
+ .my-modal__wrapper .pagination > span {
278
+ margin: 0 3px;
279
+ cursor: pointer;
280
+ min-width: 20px;
281
+ padding: 5px;
282
+ box-shadow: 1px 1px 1px #ccc;
283
+ }
284
+ .my-modal__wrapper .pagination .current {
285
+ background-color: wheat;
286
+ }
287
+ .my-modal .categories {
288
+ padding-bottom: 20px;
289
+ margin-bottom: 20px;
290
+ border-bottom: 1px solid #dfdfdf;
291
+ display: flex;
292
+ flex-direction: column;
293
+ align-items: flex-start;
294
+ }
295
+ .my-modal .categories__container {
296
+ display: flex;
297
+ flex-wrap: nowrap;
298
+ gap: 5px 5px;
299
+ overflow-x: auto;
300
+ width: 100%;
301
+ }
302
+ @media (max-width: 1024px) {
303
+ .my-modal .categories__container {
304
+ padding-bottom: 5px;
305
+ }
306
+ }
307
+ .my-modal .categories__slide-information {
308
+ display: flex;
309
+ flex-direction: row;
310
+ align-items: center;
311
+ justify-content: space-between;
312
+ }
313
+ .my-modal .categories__slide-information span {
314
+ color: #4c4c4c;
315
+ font-size: 1.6rem;
316
+ font-weight: normal;
317
+ }
318
+ .my-modal .categories__slide-information span:first-of-type {
319
+ margin-left: 7px;
320
+ }
321
+ .my-modal .categories__slide-information span:last-of-type {
322
+ margin-right: 7px;
323
+ }