@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,11 +2,12 @@
|
|
|
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-form-description/index.cjs');
|
|
11
12
|
require('../lukso-form-error/index.cjs');
|
|
12
13
|
|
|
@@ -58,7 +59,7 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
58
59
|
outline-none transition transition-all duration-150 appearance-none shrink-0`;
|
|
59
60
|
}
|
|
60
61
|
checkedIconTemplate() {
|
|
61
|
-
return
|
|
62
|
+
return lit.html`
|
|
62
63
|
<lukso-icon
|
|
63
64
|
class=${index.customClassMap({
|
|
64
65
|
hidden: !this.checked
|
|
@@ -69,7 +70,7 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
69
70
|
`;
|
|
70
71
|
}
|
|
71
72
|
checkboxTemplate() {
|
|
72
|
-
return
|
|
73
|
+
return lit.html`
|
|
73
74
|
<div
|
|
74
75
|
class=${index.customClassMap({
|
|
75
76
|
[this.defaultCheckboxStyles]: true,
|
|
@@ -88,7 +89,7 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
88
89
|
}
|
|
89
90
|
inputTemplate() {
|
|
90
91
|
const id = this.id || this.name;
|
|
91
|
-
return
|
|
92
|
+
return lit.html`
|
|
92
93
|
<input
|
|
93
94
|
name=${this.name}
|
|
94
95
|
?checked=${this.checked ? "checked" : void 0}
|
|
@@ -107,7 +108,7 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
107
108
|
`;
|
|
108
109
|
}
|
|
109
110
|
labelTemplate() {
|
|
110
|
-
return
|
|
111
|
+
return lit.html`
|
|
111
112
|
<span
|
|
112
113
|
class=${index.customClassMap({
|
|
113
114
|
[this.defaultLabelStyles]: true,
|
|
@@ -122,14 +123,14 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
122
123
|
`;
|
|
123
124
|
}
|
|
124
125
|
profileUsernameTemplate() {
|
|
125
|
-
return
|
|
126
|
+
return lit.html`
|
|
126
127
|
<div class="flex items-center text-neutral-20 gap-2 justify-center">
|
|
127
128
|
<slot></slot>
|
|
128
129
|
</div>
|
|
129
130
|
`;
|
|
130
131
|
}
|
|
131
132
|
render() {
|
|
132
|
-
return
|
|
133
|
+
return lit.html`
|
|
133
134
|
<div>
|
|
134
135
|
<lukso-form-label label=${this.label}></lukso-form-label>
|
|
135
136
|
<lukso-form-description
|
|
@@ -145,8 +146,8 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
145
146
|
@mouseleave=${this.handleMouseOut}
|
|
146
147
|
>
|
|
147
148
|
${this.inputTemplate()} ${this.checkboxTemplate()}
|
|
148
|
-
${this.type === "text" ? this.labelTemplate() :
|
|
149
|
-
${this.type === "profile" ? this.profileUsernameTemplate() :
|
|
149
|
+
${this.type === "text" ? this.labelTemplate() : lit.nothing}
|
|
150
|
+
${this.type === "profile" ? this.profileUsernameTemplate() : lit.nothing}
|
|
150
151
|
</label>
|
|
151
152
|
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
152
153
|
</div>
|
|
@@ -180,46 +181,46 @@ exports.LuksoCheckbox = class LuksoCheckbox extends shared_tailwindElement_index
|
|
|
180
181
|
}
|
|
181
182
|
};
|
|
182
183
|
__decorateClass([
|
|
183
|
-
property
|
|
184
|
+
decorators_js.property({ type: String })
|
|
184
185
|
], exports.LuksoCheckbox.prototype, "name", 2);
|
|
185
186
|
__decorateClass([
|
|
186
|
-
property
|
|
187
|
+
decorators_js.property({ type: String })
|
|
187
188
|
], exports.LuksoCheckbox.prototype, "id", 2);
|
|
188
189
|
__decorateClass([
|
|
189
|
-
property
|
|
190
|
+
decorators_js.property({ type: String })
|
|
190
191
|
], exports.LuksoCheckbox.prototype, "ref", 2);
|
|
191
192
|
__decorateClass([
|
|
192
|
-
property
|
|
193
|
+
decorators_js.property({ type: String })
|
|
193
194
|
], exports.LuksoCheckbox.prototype, "type", 2);
|
|
194
195
|
__decorateClass([
|
|
195
|
-
property
|
|
196
|
+
decorators_js.property({ type: String })
|
|
196
197
|
], exports.LuksoCheckbox.prototype, "size", 2);
|
|
197
198
|
__decorateClass([
|
|
198
|
-
property
|
|
199
|
+
decorators_js.property({ type: String })
|
|
199
200
|
], exports.LuksoCheckbox.prototype, "label", 2);
|
|
200
201
|
__decorateClass([
|
|
201
|
-
property
|
|
202
|
+
decorators_js.property({ type: String })
|
|
202
203
|
], exports.LuksoCheckbox.prototype, "description", 2);
|
|
203
204
|
__decorateClass([
|
|
204
|
-
property
|
|
205
|
+
decorators_js.property({ type: String })
|
|
205
206
|
], exports.LuksoCheckbox.prototype, "error", 2);
|
|
206
207
|
__decorateClass([
|
|
207
|
-
property
|
|
208
|
+
decorators_js.property({ type: Boolean })
|
|
208
209
|
], exports.LuksoCheckbox.prototype, "checked", 2);
|
|
209
210
|
__decorateClass([
|
|
210
|
-
property
|
|
211
|
+
decorators_js.property({ type: String, attribute: "custom-class" })
|
|
211
212
|
], exports.LuksoCheckbox.prototype, "customClass", 2);
|
|
212
213
|
__decorateClass([
|
|
213
|
-
property
|
|
214
|
+
decorators_js.property({ type: Boolean, attribute: "is-readonly" })
|
|
214
215
|
], exports.LuksoCheckbox.prototype, "isReadonly", 2);
|
|
215
216
|
__decorateClass([
|
|
216
|
-
property
|
|
217
|
+
decorators_js.property({ type: Boolean, attribute: "is-disabled" })
|
|
217
218
|
], exports.LuksoCheckbox.prototype, "isDisabled", 2);
|
|
218
219
|
__decorateClass([
|
|
219
|
-
state
|
|
220
|
+
decorators_js.state()
|
|
220
221
|
], exports.LuksoCheckbox.prototype, "hasFocus", 2);
|
|
221
222
|
__decorateClass([
|
|
222
|
-
state
|
|
223
|
+
decorators_js.state()
|
|
223
224
|
], exports.LuksoCheckbox.prototype, "hasHighlight", 2);
|
|
224
225
|
exports.LuksoCheckbox = __decorateClass([
|
|
225
226
|
safeCustomElement.safeCustomElement("lukso-checkbox")
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { r } from '../../chunks/state-CaelFSbE.js';
|
|
1
|
+
import { html, nothing } 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 { TailwindElement } 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-form-description/index.js';
|
|
7
8
|
import '../lukso-form-error/index.js';
|
|
8
9
|
|
|
@@ -54,7 +55,7 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
54
55
|
outline-none transition transition-all duration-150 appearance-none shrink-0`;
|
|
55
56
|
}
|
|
56
57
|
checkedIconTemplate() {
|
|
57
|
-
return
|
|
58
|
+
return html`
|
|
58
59
|
<lukso-icon
|
|
59
60
|
class=${customClassMap({
|
|
60
61
|
hidden: !this.checked
|
|
@@ -65,7 +66,7 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
65
66
|
`;
|
|
66
67
|
}
|
|
67
68
|
checkboxTemplate() {
|
|
68
|
-
return
|
|
69
|
+
return html`
|
|
69
70
|
<div
|
|
70
71
|
class=${customClassMap({
|
|
71
72
|
[this.defaultCheckboxStyles]: true,
|
|
@@ -84,7 +85,7 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
84
85
|
}
|
|
85
86
|
inputTemplate() {
|
|
86
87
|
const id = this.id || this.name;
|
|
87
|
-
return
|
|
88
|
+
return html`
|
|
88
89
|
<input
|
|
89
90
|
name=${this.name}
|
|
90
91
|
?checked=${this.checked ? "checked" : void 0}
|
|
@@ -103,7 +104,7 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
103
104
|
`;
|
|
104
105
|
}
|
|
105
106
|
labelTemplate() {
|
|
106
|
-
return
|
|
107
|
+
return html`
|
|
107
108
|
<span
|
|
108
109
|
class=${customClassMap({
|
|
109
110
|
[this.defaultLabelStyles]: true,
|
|
@@ -118,14 +119,14 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
118
119
|
`;
|
|
119
120
|
}
|
|
120
121
|
profileUsernameTemplate() {
|
|
121
|
-
return
|
|
122
|
+
return html`
|
|
122
123
|
<div class="flex items-center text-neutral-20 gap-2 justify-center">
|
|
123
124
|
<slot></slot>
|
|
124
125
|
</div>
|
|
125
126
|
`;
|
|
126
127
|
}
|
|
127
128
|
render() {
|
|
128
|
-
return
|
|
129
|
+
return html`
|
|
129
130
|
<div>
|
|
130
131
|
<lukso-form-label label=${this.label}></lukso-form-label>
|
|
131
132
|
<lukso-form-description
|
|
@@ -141,8 +142,8 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
141
142
|
@mouseleave=${this.handleMouseOut}
|
|
142
143
|
>
|
|
143
144
|
${this.inputTemplate()} ${this.checkboxTemplate()}
|
|
144
|
-
${this.type === "text" ? this.labelTemplate() :
|
|
145
|
-
${this.type === "profile" ? this.profileUsernameTemplate() :
|
|
145
|
+
${this.type === "text" ? this.labelTemplate() : nothing}
|
|
146
|
+
${this.type === "profile" ? this.profileUsernameTemplate() : nothing}
|
|
146
147
|
</label>
|
|
147
148
|
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
148
149
|
</div>
|
|
@@ -176,46 +177,46 @@ let LuksoCheckbox = class extends TailwindElement {
|
|
|
176
177
|
}
|
|
177
178
|
};
|
|
178
179
|
__decorateClass([
|
|
179
|
-
|
|
180
|
+
property({ type: String })
|
|
180
181
|
], LuksoCheckbox.prototype, "name", 2);
|
|
181
182
|
__decorateClass([
|
|
182
|
-
|
|
183
|
+
property({ type: String })
|
|
183
184
|
], LuksoCheckbox.prototype, "id", 2);
|
|
184
185
|
__decorateClass([
|
|
185
|
-
|
|
186
|
+
property({ type: String })
|
|
186
187
|
], LuksoCheckbox.prototype, "ref", 2);
|
|
187
188
|
__decorateClass([
|
|
188
|
-
|
|
189
|
+
property({ type: String })
|
|
189
190
|
], LuksoCheckbox.prototype, "type", 2);
|
|
190
191
|
__decorateClass([
|
|
191
|
-
|
|
192
|
+
property({ type: String })
|
|
192
193
|
], LuksoCheckbox.prototype, "size", 2);
|
|
193
194
|
__decorateClass([
|
|
194
|
-
|
|
195
|
+
property({ type: String })
|
|
195
196
|
], LuksoCheckbox.prototype, "label", 2);
|
|
196
197
|
__decorateClass([
|
|
197
|
-
|
|
198
|
+
property({ type: String })
|
|
198
199
|
], LuksoCheckbox.prototype, "description", 2);
|
|
199
200
|
__decorateClass([
|
|
200
|
-
|
|
201
|
+
property({ type: String })
|
|
201
202
|
], LuksoCheckbox.prototype, "error", 2);
|
|
202
203
|
__decorateClass([
|
|
203
|
-
|
|
204
|
+
property({ type: Boolean })
|
|
204
205
|
], LuksoCheckbox.prototype, "checked", 2);
|
|
205
206
|
__decorateClass([
|
|
206
|
-
|
|
207
|
+
property({ type: String, attribute: "custom-class" })
|
|
207
208
|
], LuksoCheckbox.prototype, "customClass", 2);
|
|
208
209
|
__decorateClass([
|
|
209
|
-
|
|
210
|
+
property({ type: Boolean, attribute: "is-readonly" })
|
|
210
211
|
], LuksoCheckbox.prototype, "isReadonly", 2);
|
|
211
212
|
__decorateClass([
|
|
212
|
-
|
|
213
|
+
property({ type: Boolean, attribute: "is-disabled" })
|
|
213
214
|
], LuksoCheckbox.prototype, "isDisabled", 2);
|
|
214
215
|
__decorateClass([
|
|
215
|
-
|
|
216
|
+
state()
|
|
216
217
|
], LuksoCheckbox.prototype, "hasFocus", 2);
|
|
217
218
|
__decorateClass([
|
|
218
|
-
|
|
219
|
+
state()
|
|
219
220
|
], LuksoCheckbox.prototype, "hasHighlight", 2);
|
|
220
221
|
LuksoCheckbox = __decorateClass([
|
|
221
222
|
safeCustomElement("lukso-checkbox")
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const query = require('../../chunks/query-D3HF7Pde.js');
|
|
9
|
-
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');
|
|
10
8
|
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
|
|
9
|
+
const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
|
|
11
10
|
require('../../tailwind-config.cjs');
|
|
12
|
-
const
|
|
11
|
+
const cn = require('../../chunks/cn-zamUNFMe.js');
|
|
12
|
+
require('viem');
|
|
13
|
+
require('axe-core');
|
|
13
14
|
require('../lukso-icon/index.cjs');
|
|
14
15
|
require('../lukso-form-label/index.cjs');
|
|
15
16
|
require('../lukso-form-description/index.cjs');
|
|
@@ -49,7 +50,7 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
|
|
|
49
50
|
new CustomEvent(this.isOpen ? "after-enter" : "after-leave")
|
|
50
51
|
);
|
|
51
52
|
};
|
|
52
|
-
this.collapseStyles =
|
|
53
|
+
this.collapseStyles = tailwindVariants.tv({
|
|
53
54
|
slots: {
|
|
54
55
|
base: "transition transition-all duration-150 border bg-neutral-100",
|
|
55
56
|
header: "flex items-center justify-between cursor-pointer overflow-hidden",
|
|
@@ -176,13 +177,13 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
|
|
|
176
177
|
size: this.size,
|
|
177
178
|
hasError: !!this.error
|
|
178
179
|
});
|
|
179
|
-
return
|
|
180
|
+
return lit.html`
|
|
180
181
|
<div class="w-[inherit]">
|
|
181
182
|
<lukso-form-label label=${this.label}></lukso-form-label>
|
|
182
183
|
<lukso-form-description
|
|
183
184
|
description=${this.description}
|
|
184
185
|
></lukso-form-description>
|
|
185
|
-
<div class=${
|
|
186
|
+
<div class=${cn.cn(base(), this.customClass)}>
|
|
186
187
|
<!-- Header -->
|
|
187
188
|
<div
|
|
188
189
|
class=${header()}
|
|
@@ -190,13 +191,13 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
|
|
|
190
191
|
>
|
|
191
192
|
<span class=${triggerLabel()}>${this.triggerLabel}</span>
|
|
192
193
|
<div class="flex items-center">
|
|
193
|
-
${this.toggleLabel ?
|
|
194
|
+
${this.toggleLabel ? lit.html`<span class=${toggleLabel()}>
|
|
194
195
|
${this.isOpen ? this.toggleLabel?.close : this.toggleLabel?.open}
|
|
195
|
-
</span>` :
|
|
196
|
-
${this.icon ?
|
|
196
|
+
</span>` : lit.nothing}
|
|
197
|
+
${this.icon ? lit.html`<lukso-icon
|
|
197
198
|
name=${this.icon}
|
|
198
199
|
class=${icon()}
|
|
199
|
-
></lukso-icon>` :
|
|
200
|
+
></lukso-icon>` : lit.nothing}
|
|
200
201
|
</div>
|
|
201
202
|
</div>
|
|
202
203
|
|
|
@@ -217,43 +218,43 @@ exports.LuksoCollapse = class LuksoCollapse extends shared_tailwindElement_index
|
|
|
217
218
|
}
|
|
218
219
|
};
|
|
219
220
|
__decorateClass([
|
|
220
|
-
property
|
|
221
|
+
decorators_js.property({ type: String })
|
|
221
222
|
], exports.LuksoCollapse.prototype, "label", 2);
|
|
222
223
|
__decorateClass([
|
|
223
|
-
property
|
|
224
|
+
decorators_js.property({ type: String })
|
|
224
225
|
], exports.LuksoCollapse.prototype, "description", 2);
|
|
225
226
|
__decorateClass([
|
|
226
|
-
property
|
|
227
|
+
decorators_js.property({ type: String })
|
|
227
228
|
], exports.LuksoCollapse.prototype, "error", 2);
|
|
228
229
|
__decorateClass([
|
|
229
|
-
property
|
|
230
|
+
decorators_js.property({ type: String, attribute: "trigger-label" })
|
|
230
231
|
], exports.LuksoCollapse.prototype, "triggerLabel", 2);
|
|
231
232
|
__decorateClass([
|
|
232
|
-
property
|
|
233
|
+
decorators_js.property({ type: Object, attribute: "toggle-label" })
|
|
233
234
|
], exports.LuksoCollapse.prototype, "toggleLabel", 2);
|
|
234
235
|
__decorateClass([
|
|
235
|
-
property
|
|
236
|
+
decorators_js.property({ type: Boolean, attribute: "is-open" })
|
|
236
237
|
], exports.LuksoCollapse.prototype, "isOpen", 2);
|
|
237
238
|
__decorateClass([
|
|
238
|
-
property
|
|
239
|
+
decorators_js.property({ type: String, attribute: "custom-class" })
|
|
239
240
|
], exports.LuksoCollapse.prototype, "customClass", 2);
|
|
240
241
|
__decorateClass([
|
|
241
|
-
property
|
|
242
|
+
decorators_js.property({ type: Boolean, attribute: "is-disabled" })
|
|
242
243
|
], exports.LuksoCollapse.prototype, "isDisabled", 2);
|
|
243
244
|
__decorateClass([
|
|
244
|
-
property
|
|
245
|
+
decorators_js.property({ type: String, attribute: "icon" })
|
|
245
246
|
], exports.LuksoCollapse.prototype, "icon", 2);
|
|
246
247
|
__decorateClass([
|
|
247
|
-
property
|
|
248
|
+
decorators_js.property({ type: String })
|
|
248
249
|
], exports.LuksoCollapse.prototype, "size", 2);
|
|
249
250
|
__decorateClass([
|
|
250
|
-
state
|
|
251
|
+
decorators_js.state()
|
|
251
252
|
], exports.LuksoCollapse.prototype, "maxHeight", 2);
|
|
252
253
|
__decorateClass([
|
|
253
|
-
state
|
|
254
|
+
decorators_js.state()
|
|
254
255
|
], exports.LuksoCollapse.prototype, "observedHeight", 2);
|
|
255
256
|
__decorateClass([
|
|
256
|
-
query
|
|
257
|
+
decorators_js.query(".collapse-content")
|
|
257
258
|
], exports.LuksoCollapse.prototype, "contentElement", 2);
|
|
258
259
|
exports.LuksoCollapse = __decorateClass([
|
|
259
260
|
safeCustomElement.safeCustomElement("lukso-collapse")
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { e } from '../../chunks/query-CHb9Ft_d.js';
|
|
5
|
-
import { c as ce } from '../../chunks/index-B9iart53.js';
|
|
1
|
+
import { nothing, html } from 'lit';
|
|
2
|
+
import { property, state, query } from 'lit/decorators.js';
|
|
3
|
+
import { tv } from 'tailwind-variants';
|
|
6
4
|
import { s as safeCustomElement } from '../../chunks/safe-custom-element-qdGIR_v6.js';
|
|
5
|
+
import { TailwindElement } from '../../shared/tailwind-element/index.js';
|
|
7
6
|
import '../../tailwind-config.js';
|
|
8
|
-
import { c as cn } from '../../chunks/
|
|
7
|
+
import { c as cn } from '../../chunks/cn-LM_JlZIN.js';
|
|
8
|
+
import 'viem';
|
|
9
|
+
import 'axe-core';
|
|
9
10
|
import '../lukso-icon/index.js';
|
|
10
11
|
import '../lukso-form-label/index.js';
|
|
11
12
|
import '../lukso-form-description/index.js';
|
|
@@ -45,7 +46,7 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
45
46
|
new CustomEvent(this.isOpen ? "after-enter" : "after-leave")
|
|
46
47
|
);
|
|
47
48
|
};
|
|
48
|
-
this.collapseStyles =
|
|
49
|
+
this.collapseStyles = tv({
|
|
49
50
|
slots: {
|
|
50
51
|
base: "transition transition-all duration-150 border bg-neutral-100",
|
|
51
52
|
header: "flex items-center justify-between cursor-pointer overflow-hidden",
|
|
@@ -172,7 +173,7 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
172
173
|
size: this.size,
|
|
173
174
|
hasError: !!this.error
|
|
174
175
|
});
|
|
175
|
-
return
|
|
176
|
+
return html`
|
|
176
177
|
<div class="w-[inherit]">
|
|
177
178
|
<lukso-form-label label=${this.label}></lukso-form-label>
|
|
178
179
|
<lukso-form-description
|
|
@@ -186,13 +187,13 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
186
187
|
>
|
|
187
188
|
<span class=${triggerLabel()}>${this.triggerLabel}</span>
|
|
188
189
|
<div class="flex items-center">
|
|
189
|
-
${this.toggleLabel ?
|
|
190
|
+
${this.toggleLabel ? html`<span class=${toggleLabel()}>
|
|
190
191
|
${this.isOpen ? this.toggleLabel?.close : this.toggleLabel?.open}
|
|
191
|
-
</span>` :
|
|
192
|
-
${this.icon ?
|
|
192
|
+
</span>` : nothing}
|
|
193
|
+
${this.icon ? html`<lukso-icon
|
|
193
194
|
name=${this.icon}
|
|
194
195
|
class=${icon()}
|
|
195
|
-
></lukso-icon>` :
|
|
196
|
+
></lukso-icon>` : nothing}
|
|
196
197
|
</div>
|
|
197
198
|
</div>
|
|
198
199
|
|
|
@@ -213,43 +214,43 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
213
214
|
}
|
|
214
215
|
};
|
|
215
216
|
__decorateClass([
|
|
216
|
-
|
|
217
|
+
property({ type: String })
|
|
217
218
|
], LuksoCollapse.prototype, "label", 2);
|
|
218
219
|
__decorateClass([
|
|
219
|
-
|
|
220
|
+
property({ type: String })
|
|
220
221
|
], LuksoCollapse.prototype, "description", 2);
|
|
221
222
|
__decorateClass([
|
|
222
|
-
|
|
223
|
+
property({ type: String })
|
|
223
224
|
], LuksoCollapse.prototype, "error", 2);
|
|
224
225
|
__decorateClass([
|
|
225
|
-
|
|
226
|
+
property({ type: String, attribute: "trigger-label" })
|
|
226
227
|
], LuksoCollapse.prototype, "triggerLabel", 2);
|
|
227
228
|
__decorateClass([
|
|
228
|
-
|
|
229
|
+
property({ type: Object, attribute: "toggle-label" })
|
|
229
230
|
], LuksoCollapse.prototype, "toggleLabel", 2);
|
|
230
231
|
__decorateClass([
|
|
231
|
-
|
|
232
|
+
property({ type: Boolean, attribute: "is-open" })
|
|
232
233
|
], LuksoCollapse.prototype, "isOpen", 2);
|
|
233
234
|
__decorateClass([
|
|
234
|
-
|
|
235
|
+
property({ type: String, attribute: "custom-class" })
|
|
235
236
|
], LuksoCollapse.prototype, "customClass", 2);
|
|
236
237
|
__decorateClass([
|
|
237
|
-
|
|
238
|
+
property({ type: Boolean, attribute: "is-disabled" })
|
|
238
239
|
], LuksoCollapse.prototype, "isDisabled", 2);
|
|
239
240
|
__decorateClass([
|
|
240
|
-
|
|
241
|
+
property({ type: String, attribute: "icon" })
|
|
241
242
|
], LuksoCollapse.prototype, "icon", 2);
|
|
242
243
|
__decorateClass([
|
|
243
|
-
|
|
244
|
+
property({ type: String })
|
|
244
245
|
], LuksoCollapse.prototype, "size", 2);
|
|
245
246
|
__decorateClass([
|
|
246
|
-
|
|
247
|
+
state()
|
|
247
248
|
], LuksoCollapse.prototype, "maxHeight", 2);
|
|
248
249
|
__decorateClass([
|
|
249
|
-
|
|
250
|
+
state()
|
|
250
251
|
], LuksoCollapse.prototype, "observedHeight", 2);
|
|
251
252
|
__decorateClass([
|
|
252
|
-
|
|
253
|
+
query(".collapse-content")
|
|
253
254
|
], LuksoCollapse.prototype, "contentElement", 2);
|
|
254
255
|
LuksoCollapse = __decorateClass([
|
|
255
256
|
safeCustomElement("lukso-collapse")
|
|
@@ -2,16 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const styleMap = require('../../chunks/style-map-B7XFhSOK.js');
|
|
5
|
+
const lit = require('lit');
|
|
6
|
+
const decorators_js = require('lit/decorators.js');
|
|
7
|
+
const tailwindVariants = require('tailwind-variants');
|
|
8
|
+
const styleMap = require('../../chunks/style-map-AEeBQfPb.js');
|
|
10
9
|
const safeCustomElement = require('../../chunks/safe-custom-element-tQ-epw6h.js');
|
|
10
|
+
const shared_tailwindElement_index = require('../../shared/tailwind-element/index.cjs');
|
|
11
11
|
require('../../tailwind-config.cjs');
|
|
12
|
-
const
|
|
12
|
+
const cn = require('../../chunks/cn-zamUNFMe.js');
|
|
13
|
+
require('viem');
|
|
14
|
+
require('axe-core');
|
|
13
15
|
require('../lukso-icon/index.cjs');
|
|
14
|
-
require('../../chunks/index-
|
|
16
|
+
require('../../chunks/index-cakeic-M.js');
|
|
15
17
|
require('../lukso-form-label/index.cjs');
|
|
16
18
|
require('../lukso-form-description/index.cjs');
|
|
17
19
|
require('../lukso-form-error/index.cjs');
|
|
@@ -48,7 +50,7 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
48
50
|
this.size = "medium";
|
|
49
51
|
this.hasFocus = false;
|
|
50
52
|
this.hasHighlight = false;
|
|
51
|
-
this.styles =
|
|
53
|
+
this.styles = tailwindVariants.tv({
|
|
52
54
|
slots: {
|
|
53
55
|
wrapper: "group grid border overflow-hidden",
|
|
54
56
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
@@ -156,19 +158,19 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
160
|
inputTemplate(styles) {
|
|
159
|
-
return
|
|
161
|
+
return lit.html`
|
|
160
162
|
<input
|
|
161
163
|
.value=${this.value}
|
|
162
|
-
name=${this.name ? this.name :
|
|
164
|
+
name=${this.name ? this.name : lit.nothing}
|
|
163
165
|
type="text"
|
|
164
|
-
placeholder=${this.placeholder ? this.placeholder :
|
|
166
|
+
placeholder=${this.placeholder ? this.placeholder : lit.nothing}
|
|
165
167
|
?autofocus=${this.autofocus}
|
|
166
168
|
autocomplete="off"
|
|
167
|
-
id=${this.id ? this.id :
|
|
169
|
+
id=${this.id ? this.id : lit.nothing}
|
|
168
170
|
data-testid=${this.name ? `input-${this.name}` : "input"}
|
|
169
171
|
?readonly=${this.isReadonly ? true : void 0}
|
|
170
172
|
?disabled=${this.isDisabled ? true : void 0}
|
|
171
|
-
class=${
|
|
173
|
+
class=${cn.cn(styles, this.customClass)}
|
|
172
174
|
@focus=${this.handleFocus}
|
|
173
175
|
@input=${this.handleInput}
|
|
174
176
|
@change=${this.handleChange}
|
|
@@ -179,7 +181,7 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
179
181
|
`;
|
|
180
182
|
}
|
|
181
183
|
colorPickerTemplate(styles, colorInputStyles) {
|
|
182
|
-
return
|
|
184
|
+
return lit.html`<div
|
|
183
185
|
class=${styles}
|
|
184
186
|
style=${styleMap.o({
|
|
185
187
|
backgroundColor: `${this.value}`
|
|
@@ -280,7 +282,7 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
280
282
|
isFullWidth: this.isFullWidth,
|
|
281
283
|
size: this.size
|
|
282
284
|
});
|
|
283
|
-
return
|
|
285
|
+
return lit.html`
|
|
284
286
|
<div class="w-[inherit]">
|
|
285
287
|
<lukso-form-label
|
|
286
288
|
for-name=${this.name}
|
|
@@ -299,52 +301,52 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
299
301
|
}
|
|
300
302
|
};
|
|
301
303
|
__decorateClass([
|
|
302
|
-
property
|
|
304
|
+
decorators_js.property({ type: String })
|
|
303
305
|
], exports.LuksoColorPicker.prototype, "value", 2);
|
|
304
306
|
__decorateClass([
|
|
305
|
-
property
|
|
307
|
+
decorators_js.property({ type: String })
|
|
306
308
|
], exports.LuksoColorPicker.prototype, "name", 2);
|
|
307
309
|
__decorateClass([
|
|
308
|
-
property
|
|
310
|
+
decorators_js.property({ type: String })
|
|
309
311
|
], exports.LuksoColorPicker.prototype, "placeholder", 2);
|
|
310
312
|
__decorateClass([
|
|
311
|
-
property
|
|
313
|
+
decorators_js.property({ type: String })
|
|
312
314
|
], exports.LuksoColorPicker.prototype, "label", 2);
|
|
313
315
|
__decorateClass([
|
|
314
|
-
property
|
|
316
|
+
decorators_js.property({ type: String })
|
|
315
317
|
], exports.LuksoColorPicker.prototype, "id", 2);
|
|
316
318
|
__decorateClass([
|
|
317
|
-
property
|
|
319
|
+
decorators_js.property({ type: String })
|
|
318
320
|
], exports.LuksoColorPicker.prototype, "description", 2);
|
|
319
321
|
__decorateClass([
|
|
320
|
-
property
|
|
322
|
+
decorators_js.property({ type: String })
|
|
321
323
|
], exports.LuksoColorPicker.prototype, "error", 2);
|
|
322
324
|
__decorateClass([
|
|
323
|
-
property
|
|
325
|
+
decorators_js.property({ type: String, attribute: "custom-class" })
|
|
324
326
|
], exports.LuksoColorPicker.prototype, "customClass", 2);
|
|
325
327
|
__decorateClass([
|
|
326
|
-
property
|
|
328
|
+
decorators_js.property({ type: Boolean, attribute: "is-full-width" })
|
|
327
329
|
], exports.LuksoColorPicker.prototype, "isFullWidth", 2);
|
|
328
330
|
__decorateClass([
|
|
329
|
-
property
|
|
331
|
+
decorators_js.property({ type: Boolean, attribute: "is-readonly" })
|
|
330
332
|
], exports.LuksoColorPicker.prototype, "isReadonly", 2);
|
|
331
333
|
__decorateClass([
|
|
332
|
-
property
|
|
334
|
+
decorators_js.property({ type: Boolean, attribute: "is-disabled" })
|
|
333
335
|
], exports.LuksoColorPicker.prototype, "isDisabled", 2);
|
|
334
336
|
__decorateClass([
|
|
335
|
-
property
|
|
337
|
+
decorators_js.property({ type: Boolean })
|
|
336
338
|
], exports.LuksoColorPicker.prototype, "autofocus", 2);
|
|
337
339
|
__decorateClass([
|
|
338
|
-
property
|
|
340
|
+
decorators_js.property({ type: Boolean, attribute: "keep-focus-on-escape" })
|
|
339
341
|
], exports.LuksoColorPicker.prototype, "keepFocusOnEscape", 2);
|
|
340
342
|
__decorateClass([
|
|
341
|
-
property
|
|
343
|
+
decorators_js.property({ type: String })
|
|
342
344
|
], exports.LuksoColorPicker.prototype, "size", 2);
|
|
343
345
|
__decorateClass([
|
|
344
|
-
state
|
|
346
|
+
decorators_js.state()
|
|
345
347
|
], exports.LuksoColorPicker.prototype, "hasFocus", 2);
|
|
346
348
|
__decorateClass([
|
|
347
|
-
state
|
|
349
|
+
decorators_js.state()
|
|
348
350
|
], exports.LuksoColorPicker.prototype, "hasHighlight", 2);
|
|
349
351
|
exports.LuksoColorPicker = __decorateClass([
|
|
350
352
|
safeCustomElement.safeCustomElement("lukso-color-picker")
|