@lukso/web-components 1.71.1 → 1.71.3

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.
@@ -0,0 +1,3 @@
1
+ import { IconOptions } from '../../../components/lukso-icon/index.js';
2
+ export declare const logoFantom: (options: IconOptions) => import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=logo-fantom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo-fantom.d.ts","sourceRoot":"","sources":["../../../../../../src/components/lukso-icon/icons/logo-fantom.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,eAAO,MAAM,UAAU,YAAa,WAAW,yCAwB9C,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { IconOptions } from '../../../components/lukso-icon/index.js';
2
+ export declare const logoPolygon: (options: IconOptions) => import("lit-html").TemplateResult<1>;
3
+ //# sourceMappingURL=logo-polygon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logo-polygon.d.ts","sourceRoot":"","sources":["../../../../../../src/components/lukso-icon/icons/logo-polygon.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,eAAO,MAAM,WAAW,YAAa,WAAW,yCAqB/C,CAAA"}
@@ -5874,6 +5874,55 @@ const unlink = (options) => {
5874
5874
  </svg> `;
5875
5875
  };
5876
5876
 
5877
+ const logoPolygon = (options) => {
5878
+ return shared_tailwindElement_index.x`<svg
5879
+ width="24"
5880
+ height="24"
5881
+ viewBox="0 0 25 24"
5882
+ fill="none"
5883
+ xmlns="http://www.w3.org/2000/svg"
5884
+ style=${styleMap.o({
5885
+ width: `${options.width}px`,
5886
+ height: `${options.height}px`
5887
+ })}
5888
+ >
5889
+ <path
5890
+ d="M12.5 24C19.1276 24 24.5 18.6276 24.5 12C24.5 5.3724 19.1276 0 12.5 0C5.8724 0 0.5 5.3724 0.5 12C0.5 18.6276 5.8724 24 12.5 24Z"
5891
+ fill="#863FF8"
5892
+ />
5893
+ <path
5894
+ d="M9.71191 4.97714C9.31378 4.74102 8.82 4.74102 8.42187 4.97714L5.24142 6.86343C4.85284 7.09389 4.61426 7.51447 4.61426 7.96901V11.7555C4.61426 12.21 4.85284 12.6306 5.24142 12.8611L8.42187 14.7474C8.82 14.9835 9.31378 14.9835 9.71191 14.7474L16.2759 10.8543L19.0323 12.4891V15.7865L16.2759 17.4213L13.5195 15.7865V13.7103L11.8233 14.7792V16.0311C11.8233 16.4856 12.0619 16.9062 12.4504 17.1367L15.6309 19.023C16.029 19.2591 16.5228 19.2591 16.9209 19.023L20.1014 17.1367C20.49 16.9062 20.7285 16.4856 20.7285 16.0311V12.2446C20.7285 11.7901 20.49 11.3695 20.1014 11.139L16.9209 9.25272C16.5228 9.0166 16.029 9.0166 15.6309 9.25272L9.06689 13.1458L6.3105 11.511V8.21355L9.06689 6.57877L11.8233 8.21355V10.2898L13.5195 9.22093V7.96901C13.5195 7.51447 13.2809 7.09389 12.8924 6.86343L9.71191 4.97714Z"
5895
+ fill="white"
5896
+ />
5897
+ </svg> `;
5898
+ };
5899
+
5900
+ const logoFantom = (options) => {
5901
+ return shared_tailwindElement_index.x`<svg
5902
+ width="24"
5903
+ height="24"
5904
+ viewBox="0 0 25 24"
5905
+ fill="none"
5906
+ xmlns="http://www.w3.org/2000/svg"
5907
+ style=${styleMap.o({
5908
+ width: `${options.width}px`,
5909
+ height: `${options.height}px`
5910
+ })}
5911
+ >
5912
+ <circle cx="12.5" cy="12" r="12" fill="#1969FF" />
5913
+ <path
5914
+ fill-rule="evenodd"
5915
+ clip-rule="evenodd"
5916
+ d="M13.306 3.813a1.71 1.71 0 0 0-1.613 0L7.763 5.91c-.26.195-.384.407-.398.605h-.008v10.949c0 .253.14.486.363.605l3.973 2.119c.504.269 1.11.269 1.613 0l3.973-2.12a.69.69 0 0 0 .363-.604V6.514h-.007c.01-.237-.11-.474-.398-.605zm3.65 3.456-3.65 1.946-.08.04 3.73 1.99zm0 5.485-3.65 1.947a1.71 1.71 0 0 1-1.613 0l-3.65-1.947v4.709l3.973 2.119c.302.161.665.161.968 0l3.973-2.12zm-8.914-1.508 3.732-1.99-.081-.04-3.65-1.947zm3.974-6.828a1.03 1.03 0 0 1 .968 0l3.93 2.096-3.93 2.096a1.03 1.03 0 0 1-.968 0l-3.93-2.096zm.826 9.74v-4.33L16.915 12l-3.93 2.096a1 1 0 0 1-.142.062m-.685-4.33v4.33a1 1 0 0 1-.141-.062L8.086 12z"
5917
+ fill="#fff"
5918
+ />
5919
+ <path
5920
+ d="m17.481 4.338.566.353a2.06 2.06 0 0 1 .967 1.745v.421h-.686v-.421c0-.473-.243-.912-.644-1.163l-.566-.354zM6.952 19.309l.566.353.363-.581-.565-.354a1.37 1.37 0 0 1-.645-1.163v-.421h-.686v.421c0 .71.366 1.369.967 1.744"
5921
+ fill="#fff"
5922
+ />
5923
+ </svg> `;
5924
+ };
5925
+
5877
5926
  var __defProp = Object.defineProperty;
5878
5927
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5879
5928
  var __decorateClass = (decorators, target, key, kind) => {
@@ -5944,8 +5993,10 @@ const iconMap = {
5944
5993
  "logo-chrome": logoChrome,
5945
5994
  "logo-edge": logoEdge,
5946
5995
  "logo-facebook": logoFacebook,
5996
+ "logo-fantom": logoFantom,
5947
5997
  "logo-firefox": logoFirefox,
5948
5998
  "logo-opera": logoOpera,
5999
+ "logo-polygon": logoPolygon,
5949
6000
  "logo-safari": logoSafari,
5950
6001
  "logo-x": logoX,
5951
6002
  mail,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AAuJA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA4J5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-icon/index.ts"],"names":[],"mappings":"AAyJA,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA8J5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
@@ -5870,6 +5870,55 @@ const unlink = (options) => {
5870
5870
  </svg> `;
5871
5871
  };
5872
5872
 
5873
+ const logoPolygon = (options) => {
5874
+ return x`<svg
5875
+ width="24"
5876
+ height="24"
5877
+ viewBox="0 0 25 24"
5878
+ fill="none"
5879
+ xmlns="http://www.w3.org/2000/svg"
5880
+ style=${o({
5881
+ width: `${options.width}px`,
5882
+ height: `${options.height}px`
5883
+ })}
5884
+ >
5885
+ <path
5886
+ d="M12.5 24C19.1276 24 24.5 18.6276 24.5 12C24.5 5.3724 19.1276 0 12.5 0C5.8724 0 0.5 5.3724 0.5 12C0.5 18.6276 5.8724 24 12.5 24Z"
5887
+ fill="#863FF8"
5888
+ />
5889
+ <path
5890
+ d="M9.71191 4.97714C9.31378 4.74102 8.82 4.74102 8.42187 4.97714L5.24142 6.86343C4.85284 7.09389 4.61426 7.51447 4.61426 7.96901V11.7555C4.61426 12.21 4.85284 12.6306 5.24142 12.8611L8.42187 14.7474C8.82 14.9835 9.31378 14.9835 9.71191 14.7474L16.2759 10.8543L19.0323 12.4891V15.7865L16.2759 17.4213L13.5195 15.7865V13.7103L11.8233 14.7792V16.0311C11.8233 16.4856 12.0619 16.9062 12.4504 17.1367L15.6309 19.023C16.029 19.2591 16.5228 19.2591 16.9209 19.023L20.1014 17.1367C20.49 16.9062 20.7285 16.4856 20.7285 16.0311V12.2446C20.7285 11.7901 20.49 11.3695 20.1014 11.139L16.9209 9.25272C16.5228 9.0166 16.029 9.0166 15.6309 9.25272L9.06689 13.1458L6.3105 11.511V8.21355L9.06689 6.57877L11.8233 8.21355V10.2898L13.5195 9.22093V7.96901C13.5195 7.51447 13.2809 7.09389 12.8924 6.86343L9.71191 4.97714Z"
5891
+ fill="white"
5892
+ />
5893
+ </svg> `;
5894
+ };
5895
+
5896
+ const logoFantom = (options) => {
5897
+ return x`<svg
5898
+ width="24"
5899
+ height="24"
5900
+ viewBox="0 0 25 24"
5901
+ fill="none"
5902
+ xmlns="http://www.w3.org/2000/svg"
5903
+ style=${o({
5904
+ width: `${options.width}px`,
5905
+ height: `${options.height}px`
5906
+ })}
5907
+ >
5908
+ <circle cx="12.5" cy="12" r="12" fill="#1969FF" />
5909
+ <path
5910
+ fill-rule="evenodd"
5911
+ clip-rule="evenodd"
5912
+ d="M13.306 3.813a1.71 1.71 0 0 0-1.613 0L7.763 5.91c-.26.195-.384.407-.398.605h-.008v10.949c0 .253.14.486.363.605l3.973 2.119c.504.269 1.11.269 1.613 0l3.973-2.12a.69.69 0 0 0 .363-.604V6.514h-.007c.01-.237-.11-.474-.398-.605zm3.65 3.456-3.65 1.946-.08.04 3.73 1.99zm0 5.485-3.65 1.947a1.71 1.71 0 0 1-1.613 0l-3.65-1.947v4.709l3.973 2.119c.302.161.665.161.968 0l3.973-2.12zm-8.914-1.508 3.732-1.99-.081-.04-3.65-1.947zm3.974-6.828a1.03 1.03 0 0 1 .968 0l3.93 2.096-3.93 2.096a1.03 1.03 0 0 1-.968 0l-3.93-2.096zm.826 9.74v-4.33L16.915 12l-3.93 2.096a1 1 0 0 1-.142.062m-.685-4.33v4.33a1 1 0 0 1-.141-.062L8.086 12z"
5913
+ fill="#fff"
5914
+ />
5915
+ <path
5916
+ d="m17.481 4.338.566.353a2.06 2.06 0 0 1 .967 1.745v.421h-.686v-.421c0-.473-.243-.912-.644-1.163l-.566-.354zM6.952 19.309l.566.353.363-.581-.565-.354a1.37 1.37 0 0 1-.645-1.163v-.421h-.686v.421c0 .71.366 1.369.967 1.744"
5917
+ fill="#fff"
5918
+ />
5919
+ </svg> `;
5920
+ };
5921
+
5873
5922
  var __defProp = Object.defineProperty;
5874
5923
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5875
5924
  var __decorateClass = (decorators, target, key, kind) => {
@@ -5940,8 +5989,10 @@ const iconMap = {
5940
5989
  "logo-chrome": logoChrome,
5941
5990
  "logo-edge": logoEdge,
5942
5991
  "logo-facebook": logoFacebook,
5992
+ "logo-fantom": logoFantom,
5943
5993
  "logo-firefox": logoFirefox,
5944
5994
  "logo-opera": logoOpera,
5995
+ "logo-polygon": logoPolygon,
5945
5996
  "logo-safari": logoSafari,
5946
5997
  "logo-x": logoX,
5947
5998
  mail,
@@ -30,7 +30,8 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
30
30
  this.hasError = false;
31
31
  this.imageStyles = index.ie({
32
32
  slots: {
33
- wrapper: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
33
+ wrapper: "size-full bg-neutral-100",
34
+ placeholder: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
34
35
  image: "object-cover opacity-0 size-full"
35
36
  },
36
37
  variants: {
@@ -53,7 +54,7 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
53
54
  isLoading: true,
54
55
  hasError: false,
55
56
  class: {
56
- wrapper: "animate-pulse"
57
+ placeholder: "animate-pulse"
57
58
  }
58
59
  },
59
60
  {
@@ -85,24 +86,26 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
85
86
  }
86
87
  }
87
88
  render() {
88
- const { wrapper, image } = this.imageStyles({
89
+ const { wrapper, placeholder, image } = this.imageStyles({
89
90
  isLoading: this.isLoading,
90
91
  hasError: this.hasError
91
92
  });
92
93
  return shared_tailwindElement_index.x`
93
- <div
94
- class=${wrapper()}
95
- style=${styleMap.o({
94
+ <div class=${wrapper()}>
95
+ <div
96
+ class=${placeholder()}
97
+ style=${styleMap.o({
96
98
  backgroundImage: `url('${this.resolvedPlaceholder}')`
97
99
  })}
98
- >
99
- <img
100
- src=${this.src}
101
- class=${image()}
102
- loading="lazy"
103
- @load=${this.handleLoad}
104
- @error=${this.handleError}
105
- />
100
+ >
101
+ <img
102
+ src=${this.src}
103
+ class=${image()}
104
+ loading="lazy"
105
+ @load=${this.handleLoad}
106
+ @error=${this.handleError}
107
+ />
108
+ </div>
106
109
  </div>
107
110
  `;
108
111
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,KAAK,CAAA;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,SAAS,UAAO;IAGhB,mBAAmB,SAAK;IAGxB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKb,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAYxD,OAAO,CAAC,WAAW,CAqCjB;IAEF,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,KAAK,CAAA;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,SAAS,UAAO;IAGhB,mBAAmB,SAAK;IAGxB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKb,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAYxD,OAAO,CAAC,WAAW,CAsCjB;IAEF,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
@@ -26,7 +26,8 @@ let LuksoImage = class extends TailwindElement {
26
26
  this.hasError = false;
27
27
  this.imageStyles = ie({
28
28
  slots: {
29
- wrapper: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
29
+ wrapper: "size-full bg-neutral-100",
30
+ placeholder: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
30
31
  image: "object-cover opacity-0 size-full"
31
32
  },
32
33
  variants: {
@@ -49,7 +50,7 @@ let LuksoImage = class extends TailwindElement {
49
50
  isLoading: true,
50
51
  hasError: false,
51
52
  class: {
52
- wrapper: "animate-pulse"
53
+ placeholder: "animate-pulse"
53
54
  }
54
55
  },
55
56
  {
@@ -81,24 +82,26 @@ let LuksoImage = class extends TailwindElement {
81
82
  }
82
83
  }
83
84
  render() {
84
- const { wrapper, image } = this.imageStyles({
85
+ const { wrapper, placeholder, image } = this.imageStyles({
85
86
  isLoading: this.isLoading,
86
87
  hasError: this.hasError
87
88
  });
88
89
  return x`
89
- <div
90
- class=${wrapper()}
91
- style=${o({
90
+ <div class=${wrapper()}>
91
+ <div
92
+ class=${placeholder()}
93
+ style=${o({
92
94
  backgroundImage: `url('${this.resolvedPlaceholder}')`
93
95
  })}
94
- >
95
- <img
96
- src=${this.src}
97
- class=${image()}
98
- loading="lazy"
99
- @load=${this.handleLoad}
100
- @error=${this.handleError}
101
- />
96
+ >
97
+ <img
98
+ src=${this.src}
99
+ class=${image()}
100
+ loading="lazy"
101
+ @load=${this.handleLoad}
102
+ @error=${this.handleError}
103
+ />
104
+ </div>
102
105
  </div>
103
106
  `;
104
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/web-components",
3
- "version": "1.71.1",
3
+ "version": "1.71.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",