@lukso/web-components 1.172.13 → 1.172.14
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/chunks/cn-LM_JlZIN.js +36 -0
- package/dist/chunks/cn-zamUNFMe.js +39 -0
- package/dist/chunks/directive-CY66atYi.js +22 -0
- package/dist/chunks/directive-DUHAbymA.js +15 -0
- package/dist/chunks/index-BNt_JinF.js +212 -0
- package/dist/chunks/{index-DG4rMUh3.js → index-BOEPqh0N.js} +1 -1
- package/dist/chunks/{index-F8ll4iy2.js → index-C5S-_QDF.js} +1 -1
- package/dist/chunks/{index-B_H2eYG_.js → index-CA6SrfZ-.js} +9 -8
- package/dist/chunks/{index-CZGvLdJ0.js → index-CqZm8OfY.js} +1 -2
- package/dist/chunks/index-Cy2_2lFt.js +214 -0
- package/dist/chunks/{index-Dn2DJhID.js → index-Ds-r8fCt.js} +77 -74
- package/dist/chunks/{index-C5YyB6ug.js → index-DvLZWpq9.js} +2 -3
- package/dist/chunks/{index-D_5wz2k1.js → index-UVrFZqIM.js} +79 -76
- package/dist/chunks/{index-BHAtoIlu.js → index-cakeic-M.js} +9 -8
- package/dist/chunks/{style-map-B7XFhSOK.js → style-map-AEeBQfPb.js} +2 -3
- package/dist/chunks/{style-map-BPljJihp.js → style-map-auscxO0L.js} +1 -2
- package/dist/components/index.cjs +4 -5
- package/dist/components/index.js +4 -5
- package/dist/components/lukso-alert/index.cjs +16 -15
- package/dist/components/lukso-alert/index.js +16 -15
- package/dist/components/lukso-button/index.cjs +42 -40
- package/dist/components/lukso-button/index.js +39 -37
- package/dist/components/lukso-card/index.cjs +66 -71
- package/dist/components/lukso-card/index.js +48 -53
- package/dist/components/lukso-checkbox/index.cjs +27 -26
- package/dist/components/lukso-checkbox/index.js +27 -26
- package/dist/components/lukso-collapse/index.cjs +27 -26
- package/dist/components/lukso-collapse/index.js +26 -25
- package/dist/components/lukso-color-picker/index.cjs +33 -31
- package/dist/components/lukso-color-picker/index.js +32 -30
- package/dist/components/lukso-dropdown/index.cjs +20 -19
- package/dist/components/lukso-dropdown/index.js +20 -19
- package/dist/components/lukso-dropdown-option/index.cjs +12 -11
- package/dist/components/lukso-dropdown-option/index.js +12 -11
- package/dist/components/lukso-footer/index.cjs +5 -4
- package/dist/components/lukso-footer/index.js +5 -4
- package/dist/components/lukso-form-description/index.cjs +7 -6
- package/dist/components/lukso-form-description/index.js +7 -6
- package/dist/components/lukso-form-error/index.cjs +7 -6
- package/dist/components/lukso-form-error/index.js +7 -6
- package/dist/components/lukso-form-label/index.cjs +8 -7
- package/dist/components/lukso-form-label/index.js +8 -7
- package/dist/components/lukso-icon/index.cjs +268 -267
- package/dist/components/lukso-icon/index.js +268 -267
- package/dist/components/lukso-image/index.cjs +12 -12
- package/dist/components/lukso-image/index.js +12 -12
- package/dist/components/lukso-input/index.cjs +49 -47
- package/dist/components/lukso-input/index.js +48 -46
- package/dist/components/lukso-markdown/index.cjs +13 -83
- package/dist/components/lukso-markdown/index.js +13 -83
- package/dist/components/lukso-markdown-editor/index.cjs +68 -67
- package/dist/components/lukso-markdown-editor/index.js +67 -66
- package/dist/components/lukso-modal/index.cjs +12 -11
- package/dist/components/lukso-modal/index.js +11 -10
- package/dist/components/lukso-navbar/index.cjs +30 -30
- package/dist/components/lukso-navbar/index.js +30 -30
- package/dist/components/lukso-pagination/index.cjs +16 -16
- package/dist/components/lukso-pagination/index.js +16 -16
- package/dist/components/lukso-profile/index.cjs +162 -11
- package/dist/components/lukso-profile/index.js +165 -5
- package/dist/components/lukso-progress/index.cjs +16 -13
- package/dist/components/lukso-progress/index.js +13 -10
- package/dist/components/lukso-qr-code/index.cjs +17 -34
- package/dist/components/lukso-qr-code/index.js +16 -33
- package/dist/components/lukso-radio/index.cjs +27 -25
- package/dist/components/lukso-radio/index.js +25 -23
- package/dist/components/lukso-radio-group/index.cjs +9 -9
- package/dist/components/lukso-radio-group/index.js +9 -9
- package/dist/components/lukso-sanitize/index.cjs +5 -4
- package/dist/components/lukso-sanitize/index.js +5 -4
- package/dist/components/lukso-search/index.cjs +11 -8
- package/dist/components/lukso-search/index.js +11 -8
- package/dist/components/lukso-select/index.cjs +47 -46
- package/dist/components/lukso-select/index.js +46 -45
- package/dist/components/lukso-share/index.cjs +7 -6
- package/dist/components/lukso-share/index.js +7 -6
- package/dist/components/lukso-switch/index.cjs +16 -15
- package/dist/components/lukso-switch/index.js +16 -15
- package/dist/components/lukso-tag/index.cjs +13 -12
- package/dist/components/lukso-tag/index.js +12 -11
- package/dist/components/lukso-terms/index.cjs +9 -8
- package/dist/components/lukso-terms/index.js +9 -8
- package/dist/components/lukso-textarea/index.cjs +36 -34
- package/dist/components/lukso-textarea/index.js +35 -33
- package/dist/components/lukso-tooltip/index.cjs +27 -3461
- package/dist/components/lukso-tooltip/index.js +27 -3461
- package/dist/components/lukso-username/index.cjs +11 -7
- package/dist/components/lukso-username/index.js +11 -7
- package/dist/components/lukso-wizard/index.cjs +13 -12
- package/dist/components/lukso-wizard/index.js +11 -10
- package/dist/index.cjs +6 -6
- package/dist/index.js +5 -5
- package/dist/shared/tailwind-element/index.cjs +15 -3
- package/dist/shared/tailwind-element/index.js +17 -1
- package/dist/vite.full.config.d.ts.map +1 -1
- package/package.json +7 -1
- package/dist/chunks/_commonjsHelpers-B85MJLTf.js +0 -5
- package/dist/chunks/_commonjsHelpers-CFO10eej.js +0 -7
- package/dist/chunks/axe-DJKac19y.js +0 -35093
- package/dist/chunks/axe-MHuN9KU0.js +0 -35097
- package/dist/chunks/base-Bn-zDNuZ.js +0 -93
- package/dist/chunks/base-Cl6v8-BZ.js +0 -8
- package/dist/chunks/base-KJhhKWYy.js +0 -91
- package/dist/chunks/base-NFGX42U4.js +0 -10
- package/dist/chunks/chunk-LQIOVPBE-CGhQ79Di.js +0 -370
- package/dist/chunks/chunk-LQIOVPBE-kQFZF_OS.js +0 -372
- package/dist/chunks/directive-BKuZRRPO.js +0 -8
- package/dist/chunks/directive-DT5Y-Nw0.js +0 -12
- package/dist/chunks/index-5X9ujrWL.js +0 -41
- package/dist/chunks/index-B9iart53.js +0 -2545
- package/dist/chunks/index-BAf8Hzhe.js +0 -611
- package/dist/chunks/index-BBFSnMaE.js +0 -1345
- package/dist/chunks/index-BDyLu6M0.js +0 -609
- package/dist/chunks/index-BxQ_0s_1.js +0 -50
- package/dist/chunks/index-CaJky2qL.js +0 -2547
- package/dist/chunks/index-glHBylgQ.js +0 -1347
- package/dist/chunks/isAddress-B1R_6-uN.js +0 -745
- package/dist/chunks/isAddress-BUdSrCaY.js +0 -743
- package/dist/chunks/property-D6IL6zax.js +0 -11
- package/dist/chunks/property-DfumgIL6.js +0 -9
- package/dist/chunks/query-CHb9Ft_d.js +0 -9
- package/dist/chunks/query-D3HF7Pde.js +0 -11
- package/dist/chunks/state-CFjY89m3.js +0 -11
- package/dist/chunks/state-CaelFSbE.js +0 -9
- package/dist/chunks/unsafe-html-BHBLEMoa.js +0 -10
- package/dist/chunks/unsafe-html-DiwkOQlV.js +0 -12
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const styleMap = require('../../chunks/style-map-
|
|
8
|
-
const
|
|
5
|
+
const lit = require('lit');
|
|
6
|
+
const decorators_js = require('lit/decorators.js');
|
|
7
|
+
const styleMap = require('../../chunks/style-map-AEeBQfPb.js');
|
|
8
|
+
const tailwindVariants = require('tailwind-variants');
|
|
9
9
|
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
|
|
10
10
|
const uniqId = require('../../chunks/uniq-id-Cszs24DQ.js');
|
|
11
|
-
require('../../
|
|
11
|
+
const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
|
|
12
|
+
require('../../chunks/index-cakeic-M.js');
|
|
12
13
|
require('../lukso-form-label/index.cjs');
|
|
13
14
|
require('../lukso-form-description/index.cjs');
|
|
14
15
|
require('../lukso-form-error/index.cjs');
|
|
@@ -35,7 +36,7 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
|
|
|
35
36
|
this.error = "";
|
|
36
37
|
this.isChecked = false;
|
|
37
38
|
this.isDisabled = false;
|
|
38
|
-
this.styles =
|
|
39
|
+
this.styles = tailwindVariants.tv({
|
|
39
40
|
slots: {
|
|
40
41
|
label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
|
|
41
42
|
input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
|
|
@@ -94,7 +95,7 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
|
|
|
94
95
|
if (!this.color) {
|
|
95
96
|
this.color = DEFAULT_COLOR;
|
|
96
97
|
}
|
|
97
|
-
return
|
|
98
|
+
return lit.html`
|
|
98
99
|
<div>
|
|
99
100
|
<lukso-form-label
|
|
100
101
|
for-name=${this.name}
|
|
@@ -132,28 +133,28 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
|
|
|
132
133
|
}
|
|
133
134
|
};
|
|
134
135
|
__decorateClass([
|
|
135
|
-
property
|
|
136
|
+
decorators_js.property({ type: String })
|
|
136
137
|
], exports.LuksoSwitch.prototype, "color", 2);
|
|
137
138
|
__decorateClass([
|
|
138
|
-
property
|
|
139
|
+
decorators_js.property({ type: String })
|
|
139
140
|
], exports.LuksoSwitch.prototype, "id", 2);
|
|
140
141
|
__decorateClass([
|
|
141
|
-
property
|
|
142
|
+
decorators_js.property({ type: String })
|
|
142
143
|
], exports.LuksoSwitch.prototype, "name", 2);
|
|
143
144
|
__decorateClass([
|
|
144
|
-
property
|
|
145
|
+
decorators_js.property({ type: String })
|
|
145
146
|
], exports.LuksoSwitch.prototype, "label", 2);
|
|
146
147
|
__decorateClass([
|
|
147
|
-
property
|
|
148
|
+
decorators_js.property({ type: String })
|
|
148
149
|
], exports.LuksoSwitch.prototype, "description", 2);
|
|
149
150
|
__decorateClass([
|
|
150
|
-
property
|
|
151
|
+
decorators_js.property({ type: String })
|
|
151
152
|
], exports.LuksoSwitch.prototype, "error", 2);
|
|
152
153
|
__decorateClass([
|
|
153
|
-
property
|
|
154
|
+
decorators_js.property({ type: Boolean, attribute: "is-checked" })
|
|
154
155
|
], exports.LuksoSwitch.prototype, "isChecked", 2);
|
|
155
156
|
__decorateClass([
|
|
156
|
-
property
|
|
157
|
+
decorators_js.property({
|
|
157
158
|
type: Boolean,
|
|
158
159
|
attribute: "is-disabled"
|
|
159
160
|
})
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { o } from '../../chunks/style-map-
|
|
4
|
-
import {
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { property } from 'lit/decorators.js';
|
|
3
|
+
import { o } from '../../chunks/style-map-auscxO0L.js';
|
|
4
|
+
import { tv } from 'tailwind-variants';
|
|
5
5
|
import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
|
|
6
6
|
import { u as uniqId } from '../../chunks/uniq-id-CGUN-pJV.js';
|
|
7
|
-
import '../../
|
|
7
|
+
import { TailwindElement } from '../../shared/tailwind-element/index.js';
|
|
8
|
+
import '../../chunks/index-CA6SrfZ-.js';
|
|
8
9
|
import '../lukso-form-label/index.js';
|
|
9
10
|
import '../lukso-form-description/index.js';
|
|
10
11
|
import '../lukso-form-error/index.js';
|
|
@@ -31,7 +32,7 @@ let LuksoSwitch = class extends TailwindElement {
|
|
|
31
32
|
this.error = "";
|
|
32
33
|
this.isChecked = false;
|
|
33
34
|
this.isDisabled = false;
|
|
34
|
-
this.styles =
|
|
35
|
+
this.styles = tv({
|
|
35
36
|
slots: {
|
|
36
37
|
label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
|
|
37
38
|
input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
|
|
@@ -90,7 +91,7 @@ let LuksoSwitch = class extends TailwindElement {
|
|
|
90
91
|
if (!this.color) {
|
|
91
92
|
this.color = DEFAULT_COLOR;
|
|
92
93
|
}
|
|
93
|
-
return
|
|
94
|
+
return html`
|
|
94
95
|
<div>
|
|
95
96
|
<lukso-form-label
|
|
96
97
|
for-name=${this.name}
|
|
@@ -128,28 +129,28 @@ let LuksoSwitch = class extends TailwindElement {
|
|
|
128
129
|
}
|
|
129
130
|
};
|
|
130
131
|
__decorateClass([
|
|
131
|
-
|
|
132
|
+
property({ type: String })
|
|
132
133
|
], LuksoSwitch.prototype, "color", 2);
|
|
133
134
|
__decorateClass([
|
|
134
|
-
|
|
135
|
+
property({ type: String })
|
|
135
136
|
], LuksoSwitch.prototype, "id", 2);
|
|
136
137
|
__decorateClass([
|
|
137
|
-
|
|
138
|
+
property({ type: String })
|
|
138
139
|
], LuksoSwitch.prototype, "name", 2);
|
|
139
140
|
__decorateClass([
|
|
140
|
-
|
|
141
|
+
property({ type: String })
|
|
141
142
|
], LuksoSwitch.prototype, "label", 2);
|
|
142
143
|
__decorateClass([
|
|
143
|
-
|
|
144
|
+
property({ type: String })
|
|
144
145
|
], LuksoSwitch.prototype, "description", 2);
|
|
145
146
|
__decorateClass([
|
|
146
|
-
|
|
147
|
+
property({ type: String })
|
|
147
148
|
], LuksoSwitch.prototype, "error", 2);
|
|
148
149
|
__decorateClass([
|
|
149
|
-
|
|
150
|
+
property({ type: Boolean, attribute: "is-checked" })
|
|
150
151
|
], LuksoSwitch.prototype, "isChecked", 2);
|
|
151
152
|
__decorateClass([
|
|
152
|
-
|
|
153
|
+
property({
|
|
153
154
|
type: Boolean,
|
|
154
155
|
attribute: "is-disabled"
|
|
155
156
|
})
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const lit = require('lit');
|
|
6
|
+
const decorators_js = require('lit/decorators.js');
|
|
7
|
+
const tailwindVariants = require('tailwind-variants');
|
|
8
8
|
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
|
|
9
|
-
const index
|
|
9
|
+
const index = require('../../chunks/index-DvLZWpq9.js');
|
|
10
|
+
const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
|
|
10
11
|
|
|
11
12
|
const style = ":host {\n display: inline-flex\n}";
|
|
12
13
|
|
|
@@ -28,7 +29,7 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindS
|
|
|
28
29
|
this.backgroundColor = "";
|
|
29
30
|
this.borderColor = "";
|
|
30
31
|
this.textColor = "";
|
|
31
|
-
this.tagStyles =
|
|
32
|
+
this.tagStyles = tailwindVariants.tv({
|
|
32
33
|
base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
|
|
33
34
|
variants: {
|
|
34
35
|
size: {
|
|
@@ -67,11 +68,11 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindS
|
|
|
67
68
|
size: this.size,
|
|
68
69
|
isRounded: this.isRounded
|
|
69
70
|
});
|
|
70
|
-
return
|
|
71
|
+
return lit.html`
|
|
71
72
|
<div
|
|
72
73
|
data-testid="tag"
|
|
73
74
|
class=${tagStyles}
|
|
74
|
-
style=${index
|
|
75
|
+
style=${index.customStyleMap({
|
|
75
76
|
[`background-color: var(--${this.backgroundColor})`]: !!this.backgroundColor,
|
|
76
77
|
[`border-color: var(--${this.resolveBorderColor()})`]: !!this.resolveBorderColor(),
|
|
77
78
|
[`color: var(--${this.textColor})`]: !!this.textColor
|
|
@@ -83,19 +84,19 @@ exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindS
|
|
|
83
84
|
}
|
|
84
85
|
};
|
|
85
86
|
__decorateClass([
|
|
86
|
-
property
|
|
87
|
+
decorators_js.property({ type: String })
|
|
87
88
|
], exports.LuksoTag.prototype, "size", 2);
|
|
88
89
|
__decorateClass([
|
|
89
|
-
property
|
|
90
|
+
decorators_js.property({ type: Boolean, attribute: "is-rounded" })
|
|
90
91
|
], exports.LuksoTag.prototype, "isRounded", 2);
|
|
91
92
|
__decorateClass([
|
|
92
|
-
property
|
|
93
|
+
decorators_js.property({ type: String, attribute: "background-color" })
|
|
93
94
|
], exports.LuksoTag.prototype, "backgroundColor", 2);
|
|
94
95
|
__decorateClass([
|
|
95
|
-
property
|
|
96
|
+
decorators_js.property({ type: String, attribute: "border-color" })
|
|
96
97
|
], exports.LuksoTag.prototype, "borderColor", 2);
|
|
97
98
|
__decorateClass([
|
|
98
|
-
property
|
|
99
|
+
decorators_js.property({ type: String, attribute: "text-color" })
|
|
99
100
|
], exports.LuksoTag.prototype, "textColor", 2);
|
|
100
101
|
exports.LuksoTag = __decorateClass([
|
|
101
102
|
safeCustomElement.safeCustomElement("lukso-tag")
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { property } from 'lit/decorators.js';
|
|
3
|
+
import { tv } from 'tailwind-variants';
|
|
4
4
|
import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
|
|
5
|
-
import { c as customStyleMap } from '../../chunks/index-
|
|
5
|
+
import { c as customStyleMap } from '../../chunks/index-CqZm8OfY.js';
|
|
6
|
+
import { TailwindStyledElement } from '../../shared/tailwind-element/index.js';
|
|
6
7
|
|
|
7
8
|
const style = ":host {\n display: inline-flex\n}";
|
|
8
9
|
|
|
@@ -24,7 +25,7 @@ let LuksoTag = class extends TailwindStyledElement(style) {
|
|
|
24
25
|
this.backgroundColor = "";
|
|
25
26
|
this.borderColor = "";
|
|
26
27
|
this.textColor = "";
|
|
27
|
-
this.tagStyles =
|
|
28
|
+
this.tagStyles = tv({
|
|
28
29
|
base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
|
|
29
30
|
variants: {
|
|
30
31
|
size: {
|
|
@@ -63,7 +64,7 @@ let LuksoTag = class extends TailwindStyledElement(style) {
|
|
|
63
64
|
size: this.size,
|
|
64
65
|
isRounded: this.isRounded
|
|
65
66
|
});
|
|
66
|
-
return
|
|
67
|
+
return html`
|
|
67
68
|
<div
|
|
68
69
|
data-testid="tag"
|
|
69
70
|
class=${tagStyles}
|
|
@@ -79,19 +80,19 @@ let LuksoTag = class extends TailwindStyledElement(style) {
|
|
|
79
80
|
}
|
|
80
81
|
};
|
|
81
82
|
__decorateClass([
|
|
82
|
-
|
|
83
|
+
property({ type: String })
|
|
83
84
|
], LuksoTag.prototype, "size", 2);
|
|
84
85
|
__decorateClass([
|
|
85
|
-
|
|
86
|
+
property({ type: Boolean, attribute: "is-rounded" })
|
|
86
87
|
], LuksoTag.prototype, "isRounded", 2);
|
|
87
88
|
__decorateClass([
|
|
88
|
-
|
|
89
|
+
property({ type: String, attribute: "background-color" })
|
|
89
90
|
], LuksoTag.prototype, "backgroundColor", 2);
|
|
90
91
|
__decorateClass([
|
|
91
|
-
|
|
92
|
+
property({ type: String, attribute: "border-color" })
|
|
92
93
|
], LuksoTag.prototype, "borderColor", 2);
|
|
93
94
|
__decorateClass([
|
|
94
|
-
|
|
95
|
+
property({ type: String, attribute: "text-color" })
|
|
95
96
|
], LuksoTag.prototype, "textColor", 2);
|
|
96
97
|
LuksoTag = __decorateClass([
|
|
97
98
|
safeCustomElement("lukso-tag")
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const state = require('../../chunks/state-CFjY89m3.js');
|
|
5
|
+
const lit = require('lit');
|
|
6
|
+
const decorators_js = require('lit/decorators.js');
|
|
8
7
|
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
|
|
9
|
-
const
|
|
8
|
+
const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
|
|
9
|
+
const index = require('../../chunks/index-BOEPqh0N.js');
|
|
10
|
+
require('../../chunks/directive-CY66atYi.js');
|
|
10
11
|
require('../lukso-icon/index.cjs');
|
|
11
|
-
require('../../chunks/index-
|
|
12
|
+
require('../../chunks/index-cakeic-M.js');
|
|
12
13
|
|
|
13
14
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
14
15
|
|
|
@@ -58,7 +59,7 @@ exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.Tailw
|
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
render() {
|
|
61
|
-
return
|
|
62
|
+
return lit.html`<div
|
|
62
63
|
id="scroll-container"
|
|
63
64
|
class="border border-solid border-neutral-90 rounded-12 overflow-y-scroll relative scrollbar-none"
|
|
64
65
|
@scroll=${this.handleScroll}
|
|
@@ -87,10 +88,10 @@ exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.Tailw
|
|
|
87
88
|
}
|
|
88
89
|
};
|
|
89
90
|
__decorateClass([
|
|
90
|
-
property
|
|
91
|
+
decorators_js.property({ type: String })
|
|
91
92
|
], exports.LuksoTerms.prototype, "text", 2);
|
|
92
93
|
__decorateClass([
|
|
93
|
-
state
|
|
94
|
+
decorators_js.state()
|
|
94
95
|
], exports.LuksoTerms.prototype, "hasScrollButton", 2);
|
|
95
96
|
exports.LuksoTerms = __decorateClass([
|
|
96
97
|
safeCustomElement.safeCustomElement("lukso-terms")
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r } from '../../chunks/state-CaelFSbE.js';
|
|
1
|
+
import { html } from 'lit';
|
|
2
|
+
import { property, state } from 'lit/decorators.js';
|
|
4
3
|
import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
|
|
5
|
-
import {
|
|
4
|
+
import { TailwindStyledElement } from '../../shared/tailwind-element/index.js';
|
|
5
|
+
import { c as customClassMap } from '../../chunks/index-C5S-_QDF.js';
|
|
6
|
+
import '../../chunks/directive-DUHAbymA.js';
|
|
6
7
|
import '../lukso-icon/index.js';
|
|
7
|
-
import '../../chunks/index-
|
|
8
|
+
import '../../chunks/index-CA6SrfZ-.js';
|
|
8
9
|
|
|
9
10
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
10
11
|
|
|
@@ -54,7 +55,7 @@ let LuksoTerms = class extends TailwindStyledElement(style) {
|
|
|
54
55
|
});
|
|
55
56
|
}
|
|
56
57
|
render() {
|
|
57
|
-
return
|
|
58
|
+
return html`<div
|
|
58
59
|
id="scroll-container"
|
|
59
60
|
class="border border-solid border-neutral-90 rounded-12 overflow-y-scroll relative scrollbar-none"
|
|
60
61
|
@scroll=${this.handleScroll}
|
|
@@ -83,10 +84,10 @@ let LuksoTerms = class extends TailwindStyledElement(style) {
|
|
|
83
84
|
}
|
|
84
85
|
};
|
|
85
86
|
__decorateClass([
|
|
86
|
-
|
|
87
|
+
property({ type: String })
|
|
87
88
|
], LuksoTerms.prototype, "text", 2);
|
|
88
89
|
__decorateClass([
|
|
89
|
-
|
|
90
|
+
state()
|
|
90
91
|
], LuksoTerms.prototype, "hasScrollButton", 2);
|
|
91
92
|
LuksoTerms = __decorateClass([
|
|
92
93
|
safeCustomElement("lukso-terms")
|
|
@@ -2,15 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const index = require('../../chunks/index-CaJky2qL.js');
|
|
5
|
+
const lit = require('lit');
|
|
6
|
+
const decorators_js = require('lit/decorators.js');
|
|
7
|
+
const tailwindVariants = require('tailwind-variants');
|
|
9
8
|
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
|
|
9
|
+
const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
|
|
10
10
|
require('../../tailwind-config.cjs');
|
|
11
|
-
const
|
|
11
|
+
const cn = require('../../chunks/cn-zamUNFMe.js');
|
|
12
|
+
require('viem');
|
|
13
|
+
require('axe-core');
|
|
12
14
|
require('../lukso-icon/index.cjs');
|
|
13
|
-
require('../../chunks/index-
|
|
15
|
+
require('../../chunks/index-cakeic-M.js');
|
|
14
16
|
require('../lukso-form-label/index.cjs');
|
|
15
17
|
require('../lukso-form-description/index.cjs');
|
|
16
18
|
require('../lukso-form-error/index.cjs');
|
|
@@ -51,7 +53,7 @@ exports.LuksoTextarea = class LuksoTextarea extends shared_tailwindElement_index
|
|
|
51
53
|
this.rows = 4;
|
|
52
54
|
this.hasFocus = false;
|
|
53
55
|
this.hasHighlight = false;
|
|
54
|
-
this.styles =
|
|
56
|
+
this.styles = tailwindVariants.tv({
|
|
55
57
|
slots: {
|
|
56
58
|
wrapper: "group flex",
|
|
57
59
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
@@ -132,18 +134,18 @@ exports.LuksoTextarea = class LuksoTextarea extends shared_tailwindElement_index
|
|
|
132
134
|
}
|
|
133
135
|
}
|
|
134
136
|
inputTemplate(styles) {
|
|
135
|
-
return
|
|
137
|
+
return lit.html`
|
|
136
138
|
<textarea
|
|
137
|
-
name=${this.name ? this.name :
|
|
138
|
-
placeholder=${this.placeholder ? this.placeholder :
|
|
139
|
-
ref=${this.ref ? this.ref :
|
|
140
|
-
id=${this.id ? this.id :
|
|
139
|
+
name=${this.name ? this.name : lit.nothing}
|
|
140
|
+
placeholder=${this.placeholder ? this.placeholder : lit.nothing}
|
|
141
|
+
ref=${this.ref ? this.ref : lit.nothing}
|
|
142
|
+
id=${this.id ? this.id : lit.nothing}
|
|
141
143
|
rows=${this.rows}
|
|
142
144
|
data-testid=${this.name ? `textarea-${this.name}` : "textarea"}
|
|
143
145
|
?autofocus=${this.autofocus}
|
|
144
146
|
?readonly=${this.isReadonly ? true : void 0}
|
|
145
147
|
?disabled=${this.isDisabled ? true : void 0}
|
|
146
|
-
class=${
|
|
148
|
+
class=${cn.cn(styles, this.customClass)}
|
|
147
149
|
@focus=${this.handleFocus}
|
|
148
150
|
@input=${this.handleInput}
|
|
149
151
|
@change=${this.handleChange}
|
|
@@ -283,7 +285,7 @@ ${this.value}</textarea
|
|
|
283
285
|
size: this.size,
|
|
284
286
|
isNonResizable: this.isNonResizable
|
|
285
287
|
});
|
|
286
|
-
return
|
|
288
|
+
return lit.html`
|
|
287
289
|
<div class="w-[inherit]">
|
|
288
290
|
<lukso-form-label
|
|
289
291
|
for-name=${this.name}
|
|
@@ -303,64 +305,64 @@ ${this.value}</textarea
|
|
|
303
305
|
}
|
|
304
306
|
};
|
|
305
307
|
__decorateClass([
|
|
306
|
-
property
|
|
308
|
+
decorators_js.property({ type: String })
|
|
307
309
|
], exports.LuksoTextarea.prototype, "value", 2);
|
|
308
310
|
__decorateClass([
|
|
309
|
-
property
|
|
311
|
+
decorators_js.property({ type: String })
|
|
310
312
|
], exports.LuksoTextarea.prototype, "name", 2);
|
|
311
313
|
__decorateClass([
|
|
312
|
-
property
|
|
314
|
+
decorators_js.property({ type: String })
|
|
313
315
|
], exports.LuksoTextarea.prototype, "placeholder", 2);
|
|
314
316
|
__decorateClass([
|
|
315
|
-
property
|
|
317
|
+
decorators_js.property({ type: String })
|
|
316
318
|
], exports.LuksoTextarea.prototype, "label", 2);
|
|
317
319
|
__decorateClass([
|
|
318
|
-
property
|
|
320
|
+
decorators_js.property({ type: String })
|
|
319
321
|
], exports.LuksoTextarea.prototype, "id", 2);
|
|
320
322
|
__decorateClass([
|
|
321
|
-
property
|
|
323
|
+
decorators_js.property({ type: String })
|
|
322
324
|
], exports.LuksoTextarea.prototype, "ref", 2);
|
|
323
325
|
__decorateClass([
|
|
324
|
-
property
|
|
326
|
+
decorators_js.property({ type: String })
|
|
325
327
|
], exports.LuksoTextarea.prototype, "description", 2);
|
|
326
328
|
__decorateClass([
|
|
327
|
-
property
|
|
329
|
+
decorators_js.property({ type: String })
|
|
328
330
|
], exports.LuksoTextarea.prototype, "error", 2);
|
|
329
331
|
__decorateClass([
|
|
330
|
-
property
|
|
332
|
+
decorators_js.property({ type: String, attribute: "custom-class" })
|
|
331
333
|
], exports.LuksoTextarea.prototype, "customClass", 2);
|
|
332
334
|
__decorateClass([
|
|
333
|
-
property
|
|
335
|
+
decorators_js.property({ type: Boolean, attribute: "is-full-width" })
|
|
334
336
|
], exports.LuksoTextarea.prototype, "isFullWidth", 2);
|
|
335
337
|
__decorateClass([
|
|
336
|
-
property
|
|
338
|
+
decorators_js.property({ type: Boolean, attribute: "is-readonly" })
|
|
337
339
|
], exports.LuksoTextarea.prototype, "isReadonly", 2);
|
|
338
340
|
__decorateClass([
|
|
339
|
-
property
|
|
341
|
+
decorators_js.property({ type: Boolean, attribute: "is-disabled" })
|
|
340
342
|
], exports.LuksoTextarea.prototype, "isDisabled", 2);
|
|
341
343
|
__decorateClass([
|
|
342
|
-
property
|
|
344
|
+
decorators_js.property({ type: Boolean })
|
|
343
345
|
], exports.LuksoTextarea.prototype, "autofocus", 2);
|
|
344
346
|
__decorateClass([
|
|
345
|
-
property
|
|
347
|
+
decorators_js.property({ type: Boolean })
|
|
346
348
|
], exports.LuksoTextarea.prototype, "borderless", 2);
|
|
347
349
|
__decorateClass([
|
|
348
|
-
property
|
|
350
|
+
decorators_js.property({ type: Boolean, attribute: "is-non-resizable" })
|
|
349
351
|
], exports.LuksoTextarea.prototype, "isNonResizable", 2);
|
|
350
352
|
__decorateClass([
|
|
351
|
-
property
|
|
353
|
+
decorators_js.property({ type: Boolean, attribute: "keep-focus-on-escape" })
|
|
352
354
|
], exports.LuksoTextarea.prototype, "keepFocusOnEscape", 2);
|
|
353
355
|
__decorateClass([
|
|
354
|
-
property
|
|
356
|
+
decorators_js.property({ type: String })
|
|
355
357
|
], exports.LuksoTextarea.prototype, "size", 2);
|
|
356
358
|
__decorateClass([
|
|
357
|
-
property
|
|
359
|
+
decorators_js.property({ type: Number })
|
|
358
360
|
], exports.LuksoTextarea.prototype, "rows", 2);
|
|
359
361
|
__decorateClass([
|
|
360
|
-
state
|
|
362
|
+
decorators_js.state()
|
|
361
363
|
], exports.LuksoTextarea.prototype, "hasFocus", 2);
|
|
362
364
|
__decorateClass([
|
|
363
|
-
state
|
|
365
|
+
decorators_js.state()
|
|
364
366
|
], exports.LuksoTextarea.prototype, "hasHighlight", 2);
|
|
365
367
|
exports.LuksoTextarea = __decorateClass([
|
|
366
368
|
safeCustomElement.safeCustomElement("lukso-textarea")
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { c as ce } from '../../chunks/index-B9iart53.js';
|
|
1
|
+
import { nothing, html } from 'lit';
|
|
2
|
+
import { property, state } from 'lit/decorators.js';
|
|
3
|
+
import { tv } from 'tailwind-variants';
|
|
5
4
|
import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
|
|
5
|
+
import { TailwindStyledElement } from '../../shared/tailwind-element/index.js';
|
|
6
6
|
import '../../tailwind-config.js';
|
|
7
|
-
import { c as cn } from '../../chunks/
|
|
7
|
+
import { c as cn } from '../../chunks/cn-LM_JlZIN.js';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import 'axe-core';
|
|
8
10
|
import '../lukso-icon/index.js';
|
|
9
|
-
import '../../chunks/index-
|
|
11
|
+
import '../../chunks/index-CA6SrfZ-.js';
|
|
10
12
|
import '../lukso-form-label/index.js';
|
|
11
13
|
import '../lukso-form-description/index.js';
|
|
12
14
|
import '../lukso-form-error/index.js';
|
|
@@ -47,7 +49,7 @@ let LuksoTextarea = class extends TailwindStyledElement(style) {
|
|
|
47
49
|
this.rows = 4;
|
|
48
50
|
this.hasFocus = false;
|
|
49
51
|
this.hasHighlight = false;
|
|
50
|
-
this.styles =
|
|
52
|
+
this.styles = tv({
|
|
51
53
|
slots: {
|
|
52
54
|
wrapper: "group flex",
|
|
53
55
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
@@ -128,12 +130,12 @@ let LuksoTextarea = class extends TailwindStyledElement(style) {
|
|
|
128
130
|
}
|
|
129
131
|
}
|
|
130
132
|
inputTemplate(styles) {
|
|
131
|
-
return
|
|
133
|
+
return html`
|
|
132
134
|
<textarea
|
|
133
|
-
name=${this.name ? this.name :
|
|
134
|
-
placeholder=${this.placeholder ? this.placeholder :
|
|
135
|
-
ref=${this.ref ? this.ref :
|
|
136
|
-
id=${this.id ? this.id :
|
|
135
|
+
name=${this.name ? this.name : nothing}
|
|
136
|
+
placeholder=${this.placeholder ? this.placeholder : nothing}
|
|
137
|
+
ref=${this.ref ? this.ref : nothing}
|
|
138
|
+
id=${this.id ? this.id : nothing}
|
|
137
139
|
rows=${this.rows}
|
|
138
140
|
data-testid=${this.name ? `textarea-${this.name}` : "textarea"}
|
|
139
141
|
?autofocus=${this.autofocus}
|
|
@@ -279,7 +281,7 @@ ${this.value}</textarea
|
|
|
279
281
|
size: this.size,
|
|
280
282
|
isNonResizable: this.isNonResizable
|
|
281
283
|
});
|
|
282
|
-
return
|
|
284
|
+
return html`
|
|
283
285
|
<div class="w-[inherit]">
|
|
284
286
|
<lukso-form-label
|
|
285
287
|
for-name=${this.name}
|
|
@@ -299,64 +301,64 @@ ${this.value}</textarea
|
|
|
299
301
|
}
|
|
300
302
|
};
|
|
301
303
|
__decorateClass([
|
|
302
|
-
|
|
304
|
+
property({ type: String })
|
|
303
305
|
], LuksoTextarea.prototype, "value", 2);
|
|
304
306
|
__decorateClass([
|
|
305
|
-
|
|
307
|
+
property({ type: String })
|
|
306
308
|
], LuksoTextarea.prototype, "name", 2);
|
|
307
309
|
__decorateClass([
|
|
308
|
-
|
|
310
|
+
property({ type: String })
|
|
309
311
|
], LuksoTextarea.prototype, "placeholder", 2);
|
|
310
312
|
__decorateClass([
|
|
311
|
-
|
|
313
|
+
property({ type: String })
|
|
312
314
|
], LuksoTextarea.prototype, "label", 2);
|
|
313
315
|
__decorateClass([
|
|
314
|
-
|
|
316
|
+
property({ type: String })
|
|
315
317
|
], LuksoTextarea.prototype, "id", 2);
|
|
316
318
|
__decorateClass([
|
|
317
|
-
|
|
319
|
+
property({ type: String })
|
|
318
320
|
], LuksoTextarea.prototype, "ref", 2);
|
|
319
321
|
__decorateClass([
|
|
320
|
-
|
|
322
|
+
property({ type: String })
|
|
321
323
|
], LuksoTextarea.prototype, "description", 2);
|
|
322
324
|
__decorateClass([
|
|
323
|
-
|
|
325
|
+
property({ type: String })
|
|
324
326
|
], LuksoTextarea.prototype, "error", 2);
|
|
325
327
|
__decorateClass([
|
|
326
|
-
|
|
328
|
+
property({ type: String, attribute: "custom-class" })
|
|
327
329
|
], LuksoTextarea.prototype, "customClass", 2);
|
|
328
330
|
__decorateClass([
|
|
329
|
-
|
|
331
|
+
property({ type: Boolean, attribute: "is-full-width" })
|
|
330
332
|
], LuksoTextarea.prototype, "isFullWidth", 2);
|
|
331
333
|
__decorateClass([
|
|
332
|
-
|
|
334
|
+
property({ type: Boolean, attribute: "is-readonly" })
|
|
333
335
|
], LuksoTextarea.prototype, "isReadonly", 2);
|
|
334
336
|
__decorateClass([
|
|
335
|
-
|
|
337
|
+
property({ type: Boolean, attribute: "is-disabled" })
|
|
336
338
|
], LuksoTextarea.prototype, "isDisabled", 2);
|
|
337
339
|
__decorateClass([
|
|
338
|
-
|
|
340
|
+
property({ type: Boolean })
|
|
339
341
|
], LuksoTextarea.prototype, "autofocus", 2);
|
|
340
342
|
__decorateClass([
|
|
341
|
-
|
|
343
|
+
property({ type: Boolean })
|
|
342
344
|
], LuksoTextarea.prototype, "borderless", 2);
|
|
343
345
|
__decorateClass([
|
|
344
|
-
|
|
346
|
+
property({ type: Boolean, attribute: "is-non-resizable" })
|
|
345
347
|
], LuksoTextarea.prototype, "isNonResizable", 2);
|
|
346
348
|
__decorateClass([
|
|
347
|
-
|
|
349
|
+
property({ type: Boolean, attribute: "keep-focus-on-escape" })
|
|
348
350
|
], LuksoTextarea.prototype, "keepFocusOnEscape", 2);
|
|
349
351
|
__decorateClass([
|
|
350
|
-
|
|
352
|
+
property({ type: String })
|
|
351
353
|
], LuksoTextarea.prototype, "size", 2);
|
|
352
354
|
__decorateClass([
|
|
353
|
-
|
|
355
|
+
property({ type: Number })
|
|
354
356
|
], LuksoTextarea.prototype, "rows", 2);
|
|
355
357
|
__decorateClass([
|
|
356
|
-
|
|
358
|
+
state()
|
|
357
359
|
], LuksoTextarea.prototype, "hasFocus", 2);
|
|
358
360
|
__decorateClass([
|
|
359
|
-
|
|
361
|
+
state()
|
|
360
362
|
], LuksoTextarea.prototype, "hasHighlight", 2);
|
|
361
363
|
LuksoTextarea = __decorateClass([
|
|
362
364
|
safeCustomElement("lukso-textarea")
|