@ppg_pl/pallete 0.0.2 → 0.0.4

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 (98) hide show
  1. package/README.md +11 -0
  2. package/dist/pallete/app-globals-0f993ce5.js +3 -0
  3. package/dist/pallete/css-shim-60f618b9.js +4 -0
  4. package/dist/pallete/dom-4eeb3fee.js +73 -0
  5. package/dist/pallete/index-1ac7471e.js +3059 -0
  6. package/dist/pallete/index.esm.js +1 -0
  7. package/dist/pallete/my-backdrop.entry.js +15 -0
  8. package/dist/pallete/my-colorbox.entry.js +40 -0
  9. package/dist/{components/my-colorinfo2.js → pallete/my-colorinfo.entry.js} +7 -35
  10. package/dist/{components/my-component.js → pallete/my-component.entry.js} +10 -72
  11. package/dist/pallete/my-loader.entry.js +15 -0
  12. package/dist/{components/my-modal2.js → pallete/my-modal.entry.js} +84 -76
  13. package/dist/pallete/my-search.entry.js +36 -0
  14. package/dist/pallete/my-slider.entry.js +11333 -0
  15. package/dist/pallete/pallete.css +3 -1
  16. package/dist/pallete/pallete.esm.js +129 -1
  17. package/dist/pallete/shadow-css-02866686.js +387 -0
  18. package/package.json +1 -1
  19. package/www/build/app-globals-0f993ce5.js +3 -0
  20. package/www/build/css-shim-60f618b9.js +4 -0
  21. package/www/build/dom-4eeb3fee.js +73 -0
  22. package/www/build/gtmUtils-dcdac4ce.js +5 -0
  23. package/www/build/index-1ac7471e.js +3059 -0
  24. package/www/build/index.esm.js +1 -0
  25. package/www/build/my-backdrop.entry.js +15 -0
  26. package/www/build/my-colorbox.entry.js +40 -0
  27. package/www/build/my-colorinfo.entry.js +36 -0
  28. package/www/build/my-component.entry.js +154 -0
  29. package/www/build/my-loader.entry.js +15 -0
  30. package/www/build/my-modal.entry.js +2459 -0
  31. package/www/build/my-search.entry.js +36 -0
  32. package/www/build/my-slider.entry.js +11333 -0
  33. package/www/build/pallete.css +3 -1
  34. package/www/build/pallete.esm.js +129 -1
  35. package/www/build/shadow-css-02866686.js +387 -0
  36. package/www/index.html +40 -2
  37. package/dist/cjs/index-029079e0.js +0 -1365
  38. package/dist/cjs/index.cjs.js +0 -2
  39. package/dist/cjs/loader.cjs.js +0 -21
  40. package/dist/cjs/my-backdrop_8.cjs.entry.js +0 -8109
  41. package/dist/cjs/pallete.cjs.js +0 -19
  42. package/dist/collection/collection-manifest.json +0 -19
  43. package/dist/collection/components/api/index.js +0 -19
  44. package/dist/collection/components/api/services.js +0 -81
  45. package/dist/collection/components/my-backdrop/my-backdrop.css +0 -21
  46. package/dist/collection/components/my-backdrop/my-backdrop.js +0 -13
  47. package/dist/collection/components/my-colorbox/my-colorbox.css +0 -60
  48. package/dist/collection/components/my-colorbox/my-colorbox.js +0 -145
  49. package/dist/collection/components/my-colorinfo/my-colorinfo.js +0 -197
  50. package/dist/collection/components/my-component/my-component.css +0 -6
  51. package/dist/collection/components/my-component/my-component.js +0 -107
  52. package/dist/collection/components/my-loader/my-loader.css +0 -85
  53. package/dist/collection/components/my-loader/my-loader.js +0 -18
  54. package/dist/collection/components/my-modal/assets/arrow_down.png +0 -0
  55. package/dist/collection/components/my-modal/assets/close.png +0 -0
  56. package/dist/collection/components/my-modal/my-modal.css +0 -323
  57. package/dist/collection/components/my-modal/my-modal.js +0 -430
  58. package/dist/collection/components/my-search/assets/search.svg +0 -15
  59. package/dist/collection/components/my-search/my-search.css +0 -43
  60. package/dist/collection/components/my-search/my-search.js +0 -113
  61. package/dist/collection/components/my-slider/index.js +0 -145
  62. package/dist/collection/components/my-slider/my-slider.css +0 -96
  63. package/dist/collection/gtmUtils.js +0 -3
  64. package/dist/collection/index.js +0 -1
  65. package/dist/collection/types.js +0 -1
  66. package/dist/components/index.js +0 -9
  67. package/dist/components/index2.js +0 -5458
  68. package/dist/components/my-backdrop.js +0 -6
  69. package/dist/components/my-backdrop2.js +0 -29
  70. package/dist/components/my-colorbox.js +0 -6
  71. package/dist/components/my-colorbox2.js +0 -61
  72. package/dist/components/my-colorinfo.js +0 -6
  73. package/dist/components/my-loader.js +0 -6
  74. package/dist/components/my-loader2.js +0 -29
  75. package/dist/components/my-modal.js +0 -6
  76. package/dist/components/my-search.js +0 -6
  77. package/dist/components/my-search2.js +0 -55
  78. package/dist/components/my-slider.js +0 -6
  79. package/dist/esm/index-faf4241e.js +0 -1337
  80. package/dist/esm/index.js +0 -1
  81. package/dist/esm/loader.js +0 -17
  82. package/dist/esm/my-backdrop_8.entry.js +0 -8098
  83. package/dist/esm/pallete.js +0 -17
  84. package/dist/esm/polyfills/core-js.js +0 -11
  85. package/dist/esm/polyfills/css-shim.js +0 -1
  86. package/dist/esm/polyfills/dom.js +0 -79
  87. package/dist/esm/polyfills/es5-html-element.js +0 -1
  88. package/dist/esm/polyfills/index.js +0 -34
  89. package/dist/esm/polyfills/system.js +0 -6
  90. package/dist/index.cjs.js +0 -1
  91. package/dist/index.js +0 -1
  92. package/dist/pallete/p-562ae52f.js +0 -2
  93. package/dist/pallete/p-e260bfb9.entry.js +0 -1
  94. package/www/build/p-562ae52f.js +0 -2
  95. package/www/build/p-b6a676fa.css +0 -11
  96. package/www/build/p-e260bfb9.entry.js +0 -1
  97. package/www/build/p-ef55983a.js +0 -129
  98. /package/dist/{components/gtmUtils.js → pallete/gtmUtils-dcdac4ce.js} +0 -0
@@ -1,6 +0,0 @@
1
- import { M as MyBackdrop$1, d as defineCustomElement$1 } from './my-backdrop2.js';
2
-
3
- const MyBackdrop = MyBackdrop$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MyBackdrop, defineCustomElement };
@@ -1,29 +0,0 @@
1
- import { proxyCustomElement, HTMLElement } from '@stencil/core/internal/client';
2
-
3
- const myBackdropCss = "html{font-size:62.5%}body{font-size:1.5rem}*{font-family:\"Galatea\", sans-serif}my-backdrop{width:100%;height:100%;background-color:rgba(0, 0, 0, 0.7);position:fixed;z-index:100;left:0;top:0}";
4
-
5
- const MyBackdrop = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- }
10
- render() {
11
- return null;
12
- }
13
- static get style() { return myBackdropCss; }
14
- }, [0, "my-backdrop"]);
15
- function defineCustomElement() {
16
- if (typeof customElements === "undefined") {
17
- return;
18
- }
19
- const components = ["my-backdrop"];
20
- components.forEach(tagName => { switch (tagName) {
21
- case "my-backdrop":
22
- if (!customElements.get(tagName)) {
23
- customElements.define(tagName, MyBackdrop);
24
- }
25
- break;
26
- } });
27
- }
28
-
29
- export { MyBackdrop as M, defineCustomElement as d };
@@ -1,6 +0,0 @@
1
- import { M as MyColorBox, d as defineCustomElement$1 } from './my-colorbox2.js';
2
-
3
- const MyColorbox = MyColorBox;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MyColorbox, defineCustomElement };
@@ -1,61 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
- import { s as setDataLayer } from './gtmUtils.js';
3
-
4
- const myColorboxCss = "html{font-size:62.5%}body{font-size:1.5rem}*{font-family:\"Galatea\", sans-serif}.my-color-box{width:125px;height:125px;display:block;margin-bottom:5px;cursor:pointer;display:flex;flex-direction:column;justify-content:flex-end;position:relative}@media (max-width: 1024px){.my-color-box{width:80px;height:80px}}.my-color-box .color-name{width:100%;background-color:#fff;padding:15px 0px 10px;border-top-left-radius:15px;border-top-right-radius:15px;opacity:0;transition:0.3s opacity ease-in-out;font-size:1rem;color:#232323;text-transform:lowercase}.my-color-box.active .color-name{opacity:1}.my-color-box.categoryactive{width:120px;height:115px}.my-color-box.categoryactive .color-name{opacity:1}@media (max-width: 1024px){.my-color-box.categoryactive{width:72px;height:72px}}.my-color-box:hover .color-name{opacity:1}";
5
-
6
- const MyColorBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.colorCheck = () => {
11
- this.checkTimeout = setTimeout(() => {
12
- setDataLayer({
13
- event: 'ColorCheck',
14
- shop: this.shop,
15
- product: this.product,
16
- color: this.name,
17
- });
18
- }, 2000);
19
- };
20
- this.colorUnCheck = () => {
21
- if (this.checkTimeout)
22
- clearTimeout(this.checkTimeout);
23
- this.checkTimeout = undefined;
24
- };
25
- this.darkenColor = (color) => {
26
- const red = parseInt(color[1] + color[2], 16) - 20;
27
- const green = parseInt(color[3] + color[4], 16) - 20;
28
- const blue = parseInt(color[5] + color[6], 16) - 20;
29
- return `rgb(${red},${green},${blue})`;
30
- };
31
- }
32
- render() {
33
- return (h("div", { onMouseEnter: () => this.colorCheck(), onMouseLeave: () => this.colorUnCheck(), class: `my-color-box ${this.isActive ? 'active' : ''} ${this.isCategoryActive ? 'categoryactive' : ''}`, style: {
34
- background: this.color,
35
- border: this.isCategoryActive ? `5px solid ${this.darkenColor(this.color)}` : '',
36
- } }, h("div", { class: "color-name" }, this.name)));
37
- }
38
- static get style() { return myColorboxCss; }
39
- }, [0, "my-colorbox", {
40
- "color": [1],
41
- "name": [1],
42
- "shop": [1],
43
- "product": [1],
44
- "isActive": [4, "is-active"],
45
- "isCategoryActive": [4, "is-category-active"]
46
- }]);
47
- function defineCustomElement() {
48
- if (typeof customElements === "undefined") {
49
- return;
50
- }
51
- const components = ["my-colorbox"];
52
- components.forEach(tagName => { switch (tagName) {
53
- case "my-colorbox":
54
- if (!customElements.get(tagName)) {
55
- customElements.define(tagName, MyColorBox);
56
- }
57
- break;
58
- } });
59
- }
60
-
61
- export { MyColorBox as M, defineCustomElement as d };
@@ -1,6 +0,0 @@
1
- import { M as MyColorInfo, d as defineCustomElement$1 } from './my-colorinfo2.js';
2
-
3
- const MyColorinfo = MyColorInfo;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MyColorinfo, defineCustomElement };
@@ -1,6 +0,0 @@
1
- import { M as MyLoader$1, d as defineCustomElement$1 } from './my-loader2.js';
2
-
3
- const MyLoader = MyLoader$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MyLoader, defineCustomElement };
@@ -1,29 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
-
3
- const myLoaderCss = ".container{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.item{width:20px;height:20px;margin:3px;list-style-type:none;transition:0.5s all ease}.item:nth-child(1){animation:right-1 1s infinite alternate;background-color:#b8cf40;animation-delay:20ms}@keyframes right-1{0%{transform:translateY(-18px)}100%{transform:translateY(18px)}}.item:nth-child(2){animation:right-2 1s infinite alternate;background-color:#ee4b5e;animation-delay:40ms}@keyframes right-2{0%{transform:translateY(-21px)}100%{transform:translateY(21px)}}.item:nth-child(3){animation:right-3 1s infinite alternate;background-color:#ea0f47;animation-delay:60ms}@keyframes right-3{0%{transform:translateY(-24px)}100%{transform:translateY(24px)}}.item:nth-child(4){animation:right-4 1s infinite alternate;background-color:#d42840;animation-delay:80ms}@keyframes right-4{0%{transform:translateY(-27px)}100%{transform:translateY(27px)}}.item:nth-child(5){animation:right-5 1s infinite alternate;background-color:#8b2850;animation-delay:100ms}@keyframes right-5{0%{transform:translateY(-30px)}100%{transform:translateY(30px)}}";
4
-
5
- const MyLoader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- }
10
- render() {
11
- return (h("div", { class: "container" }, h("div", { class: "item" }), h("div", { class: "item" }), h("div", { class: "item" }), h("div", { class: "item" }), h("div", { class: "item" })));
12
- }
13
- static get style() { return myLoaderCss; }
14
- }, [0, "my-loader"]);
15
- function defineCustomElement() {
16
- if (typeof customElements === "undefined") {
17
- return;
18
- }
19
- const components = ["my-loader"];
20
- components.forEach(tagName => { switch (tagName) {
21
- case "my-loader":
22
- if (!customElements.get(tagName)) {
23
- customElements.define(tagName, MyLoader);
24
- }
25
- break;
26
- } });
27
- }
28
-
29
- export { MyLoader as M, defineCustomElement as d };
@@ -1,6 +0,0 @@
1
- import { M as MyModal$1, d as defineCustomElement$1 } from './my-modal2.js';
2
-
3
- const MyModal = MyModal$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MyModal, defineCustomElement };
@@ -1,6 +0,0 @@
1
- import { M as MySearch$1, d as defineCustomElement$1 } from './my-search2.js';
2
-
3
- const MySearch = MySearch$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MySearch, defineCustomElement };
@@ -1,55 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, getAssetPath } from '@stencil/core/internal/client';
2
-
3
- const mySearchCss = "html.sc-my-search{font-size:62.5%}body.sc-my-search{font-size:1.5rem}*.sc-my-search{font-family:\"Galatea\", sans-serif}.search.sc-my-search{position:relative;width:400px}@media (max-width: 768px){.search.sc-my-search{width:100%}}.search.sc-my-search input.sc-my-search{margin-bottom:12px;font-size:1.6rem;padding:19px;border-radius:27.35px;border:1px solid #dfdfdf;width:100%}.search.sc-my-search button.sc-my-search{position:absolute;border:none;background-color:transparent;right:-20px;top:0;width:50px;height:calc(100% - 12px);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer}";
4
-
5
- const MySearch = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.searchColors = createEvent(this, "searchColors", 7);
10
- this.searchIcon = 'search.svg';
11
- this.searchText = null;
12
- this.fetchColorsByName = (text) => {
13
- this.searchColors.emit(text);
14
- };
15
- }
16
- onInputChangeValue(event) {
17
- const value = event.target.value;
18
- this.searchColors.emit(value);
19
- this.searchText = value;
20
- }
21
- fetchColorsByNameHandle(newValue) {
22
- this.fetchColorsByName(newValue);
23
- }
24
- render() {
25
- return (h("div", { class: 'search' }, h("input", { placeholder: this.isMobile ? 'Wyszukaj kolor' : 'Wyszukaj kolor po nazwie bądź numerze', value: this.searchText || '', type: "text", onInput: this.onInputChangeValue.bind(this) }), h("button", { onClick: () => {
26
- this.searchText && this.fetchColorsByName(this.searchText);
27
- this.searchText = '';
28
- } }, h("img", { src: getAssetPath(`./assets/${this.searchIcon}`), alt: "arrow_down" }))));
29
- }
30
- static get assetsDirs() { return ["assets"]; }
31
- static get watchers() { return {
32
- "searchText": ["fetchColorsByNameHandle"]
33
- }; }
34
- static get style() { return mySearchCss; }
35
- }, [2, "my-search", {
36
- "productId": [2, "product-id"],
37
- "isMobile": [4, "is-mobile"],
38
- "searchIcon": [1, "search-icon"],
39
- "searchText": [32]
40
- }]);
41
- function defineCustomElement() {
42
- if (typeof customElements === "undefined") {
43
- return;
44
- }
45
- const components = ["my-search"];
46
- components.forEach(tagName => { switch (tagName) {
47
- case "my-search":
48
- if (!customElements.get(tagName)) {
49
- customElements.define(tagName, MySearch);
50
- }
51
- break;
52
- } });
53
- }
54
-
55
- export { MySearch as M, defineCustomElement as d };
@@ -1,6 +0,0 @@
1
- import { J as JcSwiper, d as defineCustomElement$1 } from './index2.js';
2
-
3
- const MySlider = JcSwiper;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { MySlider, defineCustomElement };