@lukso/web-components 1.25.0 → 1.26.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/index.cjs +2 -2
- package/dist/components/index.js +2 -2
- package/dist/components/lukso-button/index.cjs +1 -1
- package/dist/components/lukso-button/index.js +1 -1
- package/dist/components/lukso-card/index.cjs +2 -2
- package/dist/components/lukso-card/index.js +2 -2
- package/dist/components/lukso-icon/index.cjs +2 -2
- package/dist/components/lukso-icon/index.js +2 -2
- package/dist/components/lukso-input/index.cjs +12 -5
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +12 -5
- package/dist/components/lukso-modal/index.cjs +1 -1
- package/dist/components/lukso-modal/index.js +1 -1
- package/dist/components/lukso-navbar/index.cjs +1 -1
- package/dist/components/lukso-navbar/index.js +1 -1
- package/dist/components/lukso-profile/index.cjs +2 -2
- package/dist/components/lukso-profile/index.js +2 -2
- package/dist/components/lukso-progress/index.cjs +2 -2
- package/dist/components/lukso-progress/index.js +2 -2
- package/dist/components/lukso-sanitize/index.cjs +10 -2
- package/dist/components/lukso-sanitize/index.d.ts +1 -0
- package/dist/components/lukso-sanitize/index.d.ts.map +1 -1
- package/dist/components/lukso-sanitize/index.js +10 -2
- package/dist/components/lukso-share/index.cjs +1 -1
- package/dist/components/lukso-share/index.js +1 -1
- package/dist/components/lukso-tag/index.cjs +2 -2
- package/dist/components/lukso-tag/index.js +2 -2
- package/dist/components/lukso-terms/index.cjs +3 -3
- package/dist/components/lukso-terms/index.js +3 -3
- package/dist/components/lukso-test/index.cjs +1 -1
- package/dist/components/lukso-test/index.js +1 -1
- package/dist/components/lukso-username/index.cjs +2 -2
- package/dist/components/lukso-username/index.js +2 -2
- package/dist/components/lukso-wizard/index.cjs +1 -1
- package/dist/components/lukso-wizard/index.js +1 -1
- package/dist/{index-f0ca98d2.cjs → index-53f01760.cjs} +1 -1
- package/dist/{index-3e7edd92.js → index-b0a06427.js} +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-928073dd.js → style-map-21c35bc6.js} +1 -1
- package/dist/{style-map-4458ae5f.cjs → style-map-9b6875c8.cjs} +1 -1
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ const components_luksoTerms_index = require('./lukso-terms/index.cjs');
|
|
|
17
17
|
const components_luksoTest_index = require('./lukso-test/index.cjs');
|
|
18
18
|
const components_luksoUsername_index = require('./lukso-username/index.cjs');
|
|
19
19
|
const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
|
|
20
|
-
const shared_tailwindElement_index = require('../index-
|
|
20
|
+
const shared_tailwindElement_index = require('../index-53f01760.cjs');
|
|
21
21
|
require('../directive-db00f5fb.cjs');
|
|
22
22
|
require('../state-a62a7d5d.cjs');
|
|
23
23
|
require('../index-7dc05ee5.cjs');
|
|
24
|
-
require('../style-map-
|
|
24
|
+
require('../style-map-9b6875c8.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
package/dist/components/index.js
CHANGED
|
@@ -13,8 +13,8 @@ export { LuksoTerms } from './lukso-terms/index.js';
|
|
|
13
13
|
export { LuksoTest } from './lukso-test/index.js';
|
|
14
14
|
export { LuksoUsername } from './lukso-username/index.js';
|
|
15
15
|
export { LuksoWizard } from './lukso-wizard/index.js';
|
|
16
|
-
export { a as TailwindElement, T as TailwindStyledElement } from '../index-
|
|
16
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-b0a06427.js';
|
|
17
17
|
import '../directive-9ec64c08.js';
|
|
18
18
|
import '../state-7fde94d1.js';
|
|
19
19
|
import '../index-714323c9.js';
|
|
20
|
-
import '../style-map-
|
|
20
|
+
import '../style-map-21c35bc6.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
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';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
require('../lukso-profile/index.cjs');
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
import '../lukso-profile/index.js';
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.cjs');
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: inline-flex\n}";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x, T as TailwindStyledElement } from '../../index-
|
|
1
|
+
import { x, T as TailwindStyledElement } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.js';
|
|
4
4
|
|
|
5
5
|
const style = ":host {\n display: inline-flex\n}";
|
|
6
6
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -42,7 +42,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
42
42
|
this.min = void 0;
|
|
43
43
|
this.hasHocus = false;
|
|
44
44
|
this.hasHighlight = false;
|
|
45
|
-
this.defaultInputStyles = `bg-neutral-100
|
|
45
|
+
this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3
|
|
46
46
|
border border-solid h-[48px] placeholder:text-neutral-70
|
|
47
47
|
outline-none transition transition-all duration-150 appearance-none`;
|
|
48
48
|
this.defaultUnitStyles = `paragraph-inter-12-regular text-neutral-60 flex px-3.5 items-center relative
|
|
@@ -77,6 +77,9 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
77
77
|
["w-full"]: this.isFullWidth,
|
|
78
78
|
["w-[350px]"]: !this.isFullWidth && this.unit === "",
|
|
79
79
|
["w-[300px]"]: !this.isFullWidth && this.unit !== "",
|
|
80
|
+
["cursor-not-allowed text-neutral-60"]: this.isDisabled,
|
|
81
|
+
["text-neutral-20"]: !this.isDisabled,
|
|
82
|
+
["cursor-not-allowed"]: this.isReadonly,
|
|
80
83
|
[this.customClass]: !!this.customClass
|
|
81
84
|
})}
|
|
82
85
|
@focus=${this.handleFocus}
|
|
@@ -126,8 +129,10 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
126
129
|
</div>`;
|
|
127
130
|
}
|
|
128
131
|
handleFocus() {
|
|
129
|
-
this.
|
|
130
|
-
|
|
132
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
133
|
+
this.hasHocus = true;
|
|
134
|
+
this.hasHighlight = true;
|
|
135
|
+
}
|
|
131
136
|
}
|
|
132
137
|
handleBlur(event) {
|
|
133
138
|
this.hasHocus = false;
|
|
@@ -204,7 +209,9 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
204
209
|
this.dispatchEvent(keyEvent);
|
|
205
210
|
}
|
|
206
211
|
handleMouseOver() {
|
|
207
|
-
this.
|
|
212
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
213
|
+
this.hasHighlight = true;
|
|
214
|
+
}
|
|
208
215
|
}
|
|
209
216
|
handleMouseOut() {
|
|
210
217
|
if (!this.hasHocus) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,kBAAkB,CAE4C;IAEtE,OAAO,CAAC,iBAAiB,CAG0B;IAGnD,aAAa;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,kBAAkB,CAE4C;IAEtE,OAAO,CAAC,iBAAiB,CAG0B;IAGnD,aAAa;IA8Cb,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,YAAY;IAgBZ,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IAMtB,MAAM;CAYP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-b0a06427.js';
|
|
2
2
|
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';
|
|
@@ -38,7 +38,7 @@ let LuksoInput = class extends TailwindElement {
|
|
|
38
38
|
this.min = void 0;
|
|
39
39
|
this.hasHocus = false;
|
|
40
40
|
this.hasHighlight = false;
|
|
41
|
-
this.defaultInputStyles = `bg-neutral-100
|
|
41
|
+
this.defaultInputStyles = `bg-neutral-100 paragraph-inter-14-regular px-4 py-3
|
|
42
42
|
border border-solid h-[48px] placeholder:text-neutral-70
|
|
43
43
|
outline-none transition transition-all duration-150 appearance-none`;
|
|
44
44
|
this.defaultUnitStyles = `paragraph-inter-12-regular text-neutral-60 flex px-3.5 items-center relative
|
|
@@ -73,6 +73,9 @@ let LuksoInput = class extends TailwindElement {
|
|
|
73
73
|
["w-full"]: this.isFullWidth,
|
|
74
74
|
["w-[350px]"]: !this.isFullWidth && this.unit === "",
|
|
75
75
|
["w-[300px]"]: !this.isFullWidth && this.unit !== "",
|
|
76
|
+
["cursor-not-allowed text-neutral-60"]: this.isDisabled,
|
|
77
|
+
["text-neutral-20"]: !this.isDisabled,
|
|
78
|
+
["cursor-not-allowed"]: this.isReadonly,
|
|
76
79
|
[this.customClass]: !!this.customClass
|
|
77
80
|
})}
|
|
78
81
|
@focus=${this.handleFocus}
|
|
@@ -122,8 +125,10 @@ let LuksoInput = class extends TailwindElement {
|
|
|
122
125
|
</div>`;
|
|
123
126
|
}
|
|
124
127
|
handleFocus() {
|
|
125
|
-
this.
|
|
126
|
-
|
|
128
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
129
|
+
this.hasHocus = true;
|
|
130
|
+
this.hasHighlight = true;
|
|
131
|
+
}
|
|
127
132
|
}
|
|
128
133
|
handleBlur(event) {
|
|
129
134
|
this.hasHocus = false;
|
|
@@ -200,7 +205,9 @@ let LuksoInput = class extends TailwindElement {
|
|
|
200
205
|
this.dispatchEvent(keyEvent);
|
|
201
206
|
}
|
|
202
207
|
handleMouseOver() {
|
|
203
|
-
this.
|
|
208
|
+
if (!this.isReadonly && !this.isDisabled) {
|
|
209
|
+
this.hasHighlight = true;
|
|
210
|
+
}
|
|
204
211
|
}
|
|
205
212
|
handleMouseOut() {
|
|
206
213
|
if (!this.hasHocus) {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
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';
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.cjs');
|
|
8
8
|
|
|
9
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.js';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1619,6 +1619,7 @@ exports.LuksoSanitize = class LuksoSanitize extends shared_tailwindElement_index
|
|
|
1619
1619
|
constructor() {
|
|
1620
1620
|
super(...arguments);
|
|
1621
1621
|
this.htmlContent = "";
|
|
1622
|
+
this.isPre = false;
|
|
1622
1623
|
this.options = {
|
|
1623
1624
|
ADD_ATTR: ["target"]
|
|
1624
1625
|
// allow target attribute on anchor tags
|
|
@@ -1627,13 +1628,20 @@ exports.LuksoSanitize = class LuksoSanitize extends shared_tailwindElement_index
|
|
|
1627
1628
|
sanitize() {
|
|
1628
1629
|
return purify.sanitize(this.htmlContent, this.options);
|
|
1629
1630
|
}
|
|
1631
|
+
// in order to show HTML we need to use unsafeHTML directive.
|
|
1632
|
+
// This is safe since we already sanitized content
|
|
1630
1633
|
render() {
|
|
1631
|
-
return shared_tailwindElement_index.x
|
|
1634
|
+
return this.isPre ? shared_tailwindElement_index.x`<!-- prettier-ignore -->
|
|
1635
|
+
<div
|
|
1636
|
+
class='whitespace-pre-wrap'>${o(this.sanitize())}</div>` : shared_tailwindElement_index.x`${o(this.sanitize())}`;
|
|
1632
1637
|
}
|
|
1633
1638
|
};
|
|
1634
1639
|
__decorateClass([
|
|
1635
1640
|
directive.e({ type: String, attribute: "html-content" })
|
|
1636
1641
|
], exports.LuksoSanitize.prototype, "htmlContent", 2);
|
|
1642
|
+
__decorateClass([
|
|
1643
|
+
directive.e({ type: Boolean, attribute: "is-pre" })
|
|
1644
|
+
], exports.LuksoSanitize.prototype, "isPre", 2);
|
|
1637
1645
|
exports.LuksoSanitize = __decorateClass([
|
|
1638
1646
|
directive.e$1("lukso-sanitize")
|
|
1639
1647
|
], exports.LuksoSanitize);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-sanitize/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,aAAc,SAAQ,eAAe;IAEhD,WAAW,SAAK;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-sanitize/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,aAAc,SAAQ,eAAe;IAEhD,WAAW,SAAK;IAGhB,KAAK,UAAQ;IAEb,OAAO,CAAC,OAAO,CAEd;IAED,QAAQ;IAMR,MAAM;CAOP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, b as T, a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { A, b as T, a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { i, t, b as e$1, e as e$2, a as e$3 } from '../../directive-9ec64c08.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1615,6 +1615,7 @@ let LuksoSanitize = class extends TailwindElement {
|
|
|
1615
1615
|
constructor() {
|
|
1616
1616
|
super(...arguments);
|
|
1617
1617
|
this.htmlContent = "";
|
|
1618
|
+
this.isPre = false;
|
|
1618
1619
|
this.options = {
|
|
1619
1620
|
ADD_ATTR: ["target"]
|
|
1620
1621
|
// allow target attribute on anchor tags
|
|
@@ -1623,13 +1624,20 @@ let LuksoSanitize = class extends TailwindElement {
|
|
|
1623
1624
|
sanitize() {
|
|
1624
1625
|
return purify.sanitize(this.htmlContent, this.options);
|
|
1625
1626
|
}
|
|
1627
|
+
// in order to show HTML we need to use unsafeHTML directive.
|
|
1628
|
+
// This is safe since we already sanitized content
|
|
1626
1629
|
render() {
|
|
1627
|
-
return
|
|
1630
|
+
return this.isPre ? x`<!-- prettier-ignore -->
|
|
1631
|
+
<div
|
|
1632
|
+
class='whitespace-pre-wrap'>${o(this.sanitize())}</div>` : x`${o(this.sanitize())}`;
|
|
1628
1633
|
}
|
|
1629
1634
|
};
|
|
1630
1635
|
__decorateClass([
|
|
1631
1636
|
e$2({ type: String, attribute: "html-content" })
|
|
1632
1637
|
], LuksoSanitize.prototype, "htmlContent", 2);
|
|
1638
|
+
__decorateClass([
|
|
1639
|
+
e$2({ type: Boolean, attribute: "is-pre" })
|
|
1640
|
+
], LuksoSanitize.prototype, "isPre", 2);
|
|
1633
1641
|
LuksoSanitize = __decorateClass([
|
|
1634
1642
|
e$3("lukso-sanitize")
|
|
1635
1643
|
], LuksoSanitize);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
4
4
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-sanitize/index.cjs');
|
|
11
|
-
require('../../style-map-
|
|
11
|
+
require('../../style-map-9b6875c8.cjs');
|
|
12
12
|
|
|
13
13
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
14
14
|
|
|
@@ -65,7 +65,7 @@ exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.Tailw
|
|
|
65
65
|
@scroll=${this.handleScroll}
|
|
66
66
|
>
|
|
67
67
|
<div class="paragraph-inter-12-regular px-4 pt-3">
|
|
68
|
-
<lukso-sanitize html-content=${this.text}></lukso-sanitize>
|
|
68
|
+
<lukso-sanitize html-content=${this.text} is-pre></lukso-sanitize>
|
|
69
69
|
<br />
|
|
70
70
|
<br />
|
|
71
71
|
<div id="scroll-end"></div>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
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
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-sanitize/index.js';
|
|
7
|
-
import '../../style-map-
|
|
7
|
+
import '../../style-map-21c35bc6.js';
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
10
10
|
|
|
@@ -61,7 +61,7 @@ let LuksoTerms = class extends TailwindStyledElement(style) {
|
|
|
61
61
|
@scroll=${this.handleScroll}
|
|
62
62
|
>
|
|
63
63
|
<div class="paragraph-inter-12-regular px-4 pt-3">
|
|
64
|
-
<lukso-sanitize html-content=${this.text}></lukso-sanitize>
|
|
64
|
+
<lukso-sanitize html-content=${this.text} is-pre></lukso-sanitize>
|
|
65
65
|
<br />
|
|
66
66
|
<br />
|
|
67
67
|
<div id="scroll-end"></div>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-
|
|
1
|
+
import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-b0a06427.js';
|
|
2
2
|
import { b as e$3, i as i$3, t as t$3, e as e$4, a as e$5 } from '../../directive-9ec64c08.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-9b6875c8.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-21c35bc6.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-53f01760.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z, b as T, T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { Z, b as T, T as TailwindStyledElement, x } from '../../index-b0a06427.js';
|
|
2
2
|
import { b as e, i, t, e as e$1, a as e$2 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
4
4
|
|