@lukso/web-components 1.8.0 → 1.8.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.
- package/dist/components/lukso-button/index.cjs +3 -2
- package/dist/components/lukso-button/index.d.ts.map +1 -1
- package/dist/components/lukso-button/index.js +3 -2
- package/dist/components/lukso-sanitize/index.cjs +5 -1
- package/dist/components/lukso-sanitize/index.d.ts +2 -1
- package/dist/components/lukso-sanitize/index.d.ts.map +1 -1
- package/dist/components/lukso-sanitize/index.js +5 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const directive = require('../../directive-db00f5fb.cjs');
|
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
|
-
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex\n}";
|
|
10
|
+
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
11
11
|
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
13
13
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -133,7 +133,8 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
133
133
|
[this.secondaryStyles]: this.variant === "secondary",
|
|
134
134
|
[this.landingStyles]: this.variant === "landing",
|
|
135
135
|
[this.textStyles]: this.variant === "text",
|
|
136
|
-
[this.linkStyles]: this.variant === "text"
|
|
136
|
+
[this.linkStyles]: this.variant === "text",
|
|
137
|
+
["w-full"]: this.isFullWidth
|
|
137
138
|
})}
|
|
138
139
|
href=${this.href}
|
|
139
140
|
target=${this.target}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,oBAAY,cAAc,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MA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AAE,cAAc,CAAY;IAGnC,IAAI,EAAE,WAAW,CAAW;IAG5B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAGiD;IAEtE,OAAO,CAAC,eAAe,CAEoD;IAE3E,OAAO,CAAC,aAAa,CAIE;IAEvB,OAAO,CAAC,aAAa,CAIC;IAEtB,OAAO,CAAC,UAAU,CAGS;IAE3B,OAAO,CAAC,UAAU,CAAyE;IAE3F,OAAO,CAAC,eAAe,CAEyD;IAEhF,OAAO,CAAC,aAAa,CAAgC;IAErD,OAAO,CAAC,kBAAkB,CAA2B;IAErD,OAAO,CAAC,UAAU,CAAsD;IAExE,OAAO,CAAC,SAAS,CAAwF;IAEzG,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,aAAa;IAcrB,cAAc;IA2Bd,YAAY;IAwBZ,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -3,7 +3,7 @@ import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
|
-
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex\n}";
|
|
6
|
+
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -129,7 +129,8 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
129
129
|
[this.secondaryStyles]: this.variant === "secondary",
|
|
130
130
|
[this.landingStyles]: this.variant === "landing",
|
|
131
131
|
[this.textStyles]: this.variant === "text",
|
|
132
|
-
[this.linkStyles]: this.variant === "text"
|
|
132
|
+
[this.linkStyles]: this.variant === "text",
|
|
133
|
+
["w-full"]: this.isFullWidth
|
|
133
134
|
})}
|
|
134
135
|
href=${this.href}
|
|
135
136
|
target=${this.target}
|
|
@@ -1714,9 +1714,13 @@ exports.LuksoSanitize = class LuksoSanitize extends shared_tailwindElement_index
|
|
|
1714
1714
|
constructor() {
|
|
1715
1715
|
super(...arguments);
|
|
1716
1716
|
this.htmlContent = "";
|
|
1717
|
+
this.options = {
|
|
1718
|
+
ADD_ATTR: ["target"]
|
|
1719
|
+
// allow target attribute on anchor tags
|
|
1720
|
+
};
|
|
1717
1721
|
}
|
|
1718
1722
|
sanitize() {
|
|
1719
|
-
return purify.sanitize(this.htmlContent);
|
|
1723
|
+
return purify.sanitize(this.htmlContent, this.options);
|
|
1720
1724
|
}
|
|
1721
1725
|
render() {
|
|
1722
1726
|
return shared_tailwindElement_index.y`${o(this.sanitize())}`;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { TailwindElement } from '../../shared/tailwind-element';
|
|
2
2
|
export declare class LuksoSanitize extends TailwindElement {
|
|
3
3
|
htmlContent: string;
|
|
4
|
-
private
|
|
4
|
+
private options;
|
|
5
|
+
sanitize(): any;
|
|
5
6
|
render(): import("lit").TemplateResult<1>;
|
|
6
7
|
}
|
|
7
8
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,aAAc,SAAQ,eAAe;IAEhD,WAAW,SAAK;IAEhB,OAAO,CAAC,QAAQ;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,aAAc,SAAQ,eAAe;IAEhD,WAAW,SAAK;IAEhB,OAAO,CAAC,OAAO,CAEd;IAED,QAAQ;IAIR,MAAM;CAKP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
|
|
@@ -1710,9 +1710,13 @@ let LuksoSanitize = class extends TailwindElement {
|
|
|
1710
1710
|
constructor() {
|
|
1711
1711
|
super(...arguments);
|
|
1712
1712
|
this.htmlContent = "";
|
|
1713
|
+
this.options = {
|
|
1714
|
+
ADD_ATTR: ["target"]
|
|
1715
|
+
// allow target attribute on anchor tags
|
|
1716
|
+
};
|
|
1713
1717
|
}
|
|
1714
1718
|
sanitize() {
|
|
1715
|
-
return purify.sanitize(this.htmlContent);
|
|
1719
|
+
return purify.sanitize(this.htmlContent, this.options);
|
|
1716
1720
|
}
|
|
1717
1721
|
render() {
|
|
1718
1722
|
return y`${o(this.sanitize())}`;
|