@lukso/web-components 1.163.0 → 1.164.0
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 +20 -5
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +8 -5
- package/dist/components/lukso-button/index.cjs +3 -3
- package/dist/components/lukso-button/index.js +3 -3
- package/dist/components/lukso-card/index.cjs +6 -6
- package/dist/components/lukso-card/index.js +6 -6
- package/dist/components/lukso-checkbox/index.cjs +32 -24
- package/dist/components/lukso-checkbox/index.d.ts +6 -5
- package/dist/components/lukso-checkbox/index.d.ts.map +1 -1
- package/dist/components/lukso-checkbox/index.js +32 -24
- package/dist/components/lukso-checkbox/lukso-checkbox.stories.d.ts +2 -2
- package/dist/components/lukso-checkbox/lukso-checkbox.stories.d.ts.map +1 -1
- package/dist/components/lukso-collapse/index.cjs +18 -32
- package/dist/components/lukso-collapse/index.d.ts +6 -9
- package/dist/components/lukso-collapse/index.d.ts.map +1 -1
- package/dist/components/lukso-collapse/index.js +18 -32
- package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts +2 -6
- package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts.map +1 -1
- package/dist/components/lukso-color-picker/index.cjs +24 -37
- package/dist/components/lukso-color-picker/index.d.ts +7 -10
- package/dist/components/lukso-color-picker/index.d.ts.map +1 -1
- package/dist/components/lukso-color-picker/index.js +24 -37
- package/dist/components/lukso-color-picker/lukso-color-picker.stories.d.ts +2 -6
- package/dist/components/lukso-color-picker/lukso-color-picker.stories.d.ts.map +1 -1
- package/dist/components/lukso-dropdown/index.cjs +7 -7
- package/dist/components/lukso-dropdown/index.js +7 -7
- package/dist/components/lukso-dropdown-option/index.cjs +2 -2
- package/dist/components/lukso-dropdown-option/index.js +2 -2
- package/dist/components/lukso-footer/index.cjs +2 -2
- package/dist/components/lukso-footer/index.js +2 -2
- package/dist/components/lukso-form-description/index.cjs +35 -0
- package/dist/components/lukso-form-description/index.d.ts +13 -0
- package/dist/components/lukso-form-description/index.d.ts.map +1 -0
- package/dist/components/lukso-form-description/index.js +33 -0
- package/dist/components/lukso-form-description/lukso-form-description.stories.d.ts +7 -0
- package/dist/components/lukso-form-description/lukso-form-description.stories.d.ts.map +1 -0
- package/dist/components/lukso-form-error/index.cjs +35 -0
- package/dist/components/lukso-form-error/index.d.ts +13 -0
- package/dist/components/lukso-form-error/index.d.ts.map +1 -0
- package/dist/components/lukso-form-error/index.js +33 -0
- package/dist/components/lukso-form-error/lukso-form-error.stories.d.ts +7 -0
- package/dist/components/lukso-form-error/lukso-form-error.stories.d.ts.map +1 -0
- package/dist/components/lukso-form-label/index.cjs +39 -0
- package/dist/components/lukso-form-label/index.d.ts +14 -0
- package/dist/components/lukso-form-label/index.d.ts.map +1 -0
- package/dist/components/lukso-form-label/index.js +37 -0
- package/dist/components/lukso-form-label/lukso-form-label.stories.d.ts +7 -0
- package/dist/components/lukso-form-label/lukso-form-label.stories.d.ts.map +1 -0
- package/dist/components/lukso-icon/index.cjs +4 -4
- package/dist/components/lukso-icon/index.js +4 -4
- package/dist/components/lukso-image/index.cjs +4 -4
- package/dist/components/lukso-image/index.js +4 -4
- package/dist/components/lukso-input/index.cjs +28 -41
- package/dist/components/lukso-input/index.d.ts +10 -13
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +28 -41
- package/dist/components/lukso-input/lukso-input.stories.d.ts +2 -8
- package/dist/components/lukso-input/lukso-input.stories.d.ts.map +1 -1
- package/dist/components/lukso-markdown/index.cjs +3 -3
- package/dist/components/lukso-markdown/index.js +3 -3
- package/dist/components/lukso-markdown-editor/index.cjs +16 -16
- package/dist/components/lukso-markdown-editor/index.d.ts +0 -2
- package/dist/components/lukso-markdown-editor/index.d.ts.map +1 -1
- package/dist/components/lukso-markdown-editor/index.js +16 -16
- package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts +2 -0
- package/dist/components/lukso-markdown-editor/lukso-markdown-editor.stories.d.ts.map +1 -1
- package/dist/components/lukso-modal/index.cjs +2 -2
- package/dist/components/lukso-modal/index.js +2 -2
- package/dist/components/lukso-navbar/index.cjs +3 -3
- package/dist/components/lukso-navbar/index.js +3 -3
- package/dist/components/lukso-pagination/index.cjs +3 -3
- package/dist/components/lukso-pagination/index.js +3 -3
- package/dist/components/lukso-profile/index.cjs +3 -3
- package/dist/components/lukso-profile/index.js +3 -3
- package/dist/components/lukso-progress/index.cjs +3 -3
- package/dist/components/lukso-progress/index.js +3 -3
- package/dist/components/lukso-radio/index.cjs +24 -13
- package/dist/components/lukso-radio/index.d.ts +7 -6
- package/dist/components/lukso-radio/index.d.ts.map +1 -1
- package/dist/components/lukso-radio/index.js +24 -13
- package/dist/components/lukso-radio/lukso-radio.stories.d.ts +2 -2
- package/dist/components/lukso-radio/lukso-radio.stories.d.ts.map +1 -1
- package/dist/components/lukso-radio-group/index.cjs +3 -3
- package/dist/components/lukso-radio-group/index.js +3 -3
- package/dist/components/lukso-sanitize/index.cjs +4 -4
- package/dist/components/lukso-sanitize/index.js +4 -4
- package/dist/components/lukso-search/index.cjs +6 -6
- package/dist/components/lukso-search/index.js +6 -6
- package/dist/components/lukso-select/index.cjs +23 -41
- package/dist/components/lukso-select/index.d.ts +9 -12
- package/dist/components/lukso-select/index.d.ts.map +1 -1
- package/dist/components/lukso-select/index.js +23 -41
- package/dist/components/lukso-select/lukso-select.stories.d.ts +4 -0
- package/dist/components/lukso-select/lukso-select.stories.d.ts.map +1 -1
- package/dist/components/lukso-share/index.cjs +2 -2
- package/dist/components/lukso-share/index.js +2 -2
- package/dist/components/lukso-switch/index.cjs +40 -50
- package/dist/components/lukso-switch/index.d.ts +4 -7
- package/dist/components/lukso-switch/index.d.ts.map +1 -1
- package/dist/components/lukso-switch/index.js +40 -50
- package/dist/components/lukso-switch/lukso-switch.stories.d.ts +2 -6
- package/dist/components/lukso-switch/lukso-switch.stories.d.ts.map +1 -1
- package/dist/components/lukso-tag/index.cjs +3 -3
- package/dist/components/lukso-tag/index.js +3 -3
- package/dist/components/lukso-terms/index.cjs +4 -4
- package/dist/components/lukso-terms/index.js +4 -4
- package/dist/components/lukso-textarea/index.cjs +24 -37
- package/dist/components/lukso-textarea/index.d.ts +8 -11
- package/dist/components/lukso-textarea/index.d.ts.map +1 -1
- package/dist/components/lukso-textarea/index.js +24 -37
- package/dist/components/lukso-textarea/lukso-textarea.stories.d.ts +2 -6
- package/dist/components/lukso-textarea/lukso-textarea.stories.d.ts.map +1 -1
- package/dist/components/lukso-tooltip/index.cjs +4 -4
- package/dist/components/lukso-tooltip/index.js +4 -4
- package/dist/components/lukso-username/index.cjs +4 -4
- package/dist/components/lukso-username/index.js +4 -4
- package/dist/components/lukso-wizard/index.cjs +2 -2
- package/dist/components/lukso-wizard/index.js +2 -2
- package/dist/{index-BEawLNoE.js → index-BOwyGlSA.js} +3 -3
- package/dist/{index-OytYtq41.js → index-BbIFBzwC.js} +5 -5
- package/dist/{index-C4AqmOTg.js → index-BzYTn3KQ.js} +1 -1
- package/dist/{index-BgNWF02P.cjs → index-CQt6teGk.cjs} +1 -1
- package/dist/{index-DSByq2Lm.js → index-CiqeQyTr.js} +1 -1
- package/dist/{index-Dv9A3Ltm.cjs → index-Cke4NczR.cjs} +2 -2
- package/dist/{index-CX03Xr6x.cjs → index-DMRL6USt.cjs} +3 -3
- package/dist/{index-D1tHxVU9.cjs → index-D_vmwNxA.cjs} +3 -3
- package/dist/{index-BHZk9HTM.cjs → index-DnHJ7FVk.cjs} +5 -5
- package/dist/{index-1J-jqsT9.js → index-JTvbIE4S.js} +2 -2
- package/dist/{index-B0BrUQTX.js → index-PSjywfTJ.js} +3 -3
- package/dist/{index-CE4mgetK.cjs → index-vTOZ4l_5.cjs} +1 -1
- package/dist/index.cjs +20 -5
- package/dist/index.js +8 -5
- package/dist/{safe-custom-element-CEr2QRTr.cjs → safe-custom-element-CtjlIm0J.cjs} +1 -1
- package/dist/{safe-custom-element-BuFHdvWD.js → safe-custom-element-Cz4DNr64.js} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-DE9RNbPD.cjs → state-CAX-E_Ev.cjs} +1 -1
- package/dist/{state-D-OZ3KEf.js → state-YyDFqXia.js} +1 -1
- package/dist/{style-map-CNeYTqXM.js → style-map-BpMy_EP7.js} +1 -1
- package/dist/{style-map-CTRp4AN8.cjs → style-map-GvPMWlOB.cjs} +1 -1
- package/dist/{unsafe-html-DA2kPIsd.cjs → unsafe-html-e7jKkPJv.cjs} +1 -1
- package/dist/{unsafe-html-bTQk6t7a.js → unsafe-html-kPu9HBX1.js} +1 -1
- package/package.json +16 -1
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { a as TailwindElement,
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { a as TailwindElement, E, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
|
+
import { r } from '../../state-YyDFqXia.js';
|
|
4
4
|
import { e } from '../../query-CHb9Ft_d.js';
|
|
5
5
|
import { c as ce } from '../../index-B9iart53.js';
|
|
6
6
|
import '../../tailwind-config.js';
|
|
7
7
|
import { c as cn } from '../../axe-BK9JSROP.js';
|
|
8
8
|
import '../lukso-icon/index.js';
|
|
9
|
+
import '../lukso-form-label/index.js';
|
|
10
|
+
import '../lukso-form-description/index.js';
|
|
11
|
+
import '../lukso-form-error/index.js';
|
|
9
12
|
|
|
10
13
|
var __defProp = Object.defineProperty;
|
|
11
14
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -20,18 +23,18 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
20
23
|
let LuksoCollapse = class extends TailwindElement {
|
|
21
24
|
constructor() {
|
|
22
25
|
super(...arguments);
|
|
23
|
-
this.label =
|
|
24
|
-
this.description =
|
|
25
|
-
this.error =
|
|
26
|
-
this.triggerLabel =
|
|
26
|
+
this.label = void 0;
|
|
27
|
+
this.description = void 0;
|
|
28
|
+
this.error = void 0;
|
|
29
|
+
this.triggerLabel = void 0;
|
|
27
30
|
this.toggleLabel = {
|
|
28
31
|
open: "",
|
|
29
32
|
close: ""
|
|
30
33
|
};
|
|
31
34
|
this.isOpen = false;
|
|
32
|
-
this.customClass =
|
|
35
|
+
this.customClass = void 0;
|
|
33
36
|
this.isDisabled = false;
|
|
34
|
-
this.icon =
|
|
37
|
+
this.icon = void 0;
|
|
35
38
|
this.size = "large";
|
|
36
39
|
this.maxHeight = "0px";
|
|
37
40
|
this.observedHeight = 0;
|
|
@@ -161,36 +164,19 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
161
164
|
new CustomEvent("toggle", { detail: { open: this.isOpen } })
|
|
162
165
|
);
|
|
163
166
|
}
|
|
164
|
-
labelTemplate() {
|
|
165
|
-
return x`
|
|
166
|
-
<label class="heading-inter-14-bold text-neutral-20 pb-2 block"
|
|
167
|
-
>${this.label}</label
|
|
168
|
-
>
|
|
169
|
-
`;
|
|
170
|
-
}
|
|
171
|
-
descriptionTemplate() {
|
|
172
|
-
return x`
|
|
173
|
-
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
174
|
-
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
175
|
-
</div>
|
|
176
|
-
`;
|
|
177
|
-
}
|
|
178
|
-
errorTemplate() {
|
|
179
|
-
return x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
|
|
180
|
-
${this.error}
|
|
181
|
-
</div>`;
|
|
182
|
-
}
|
|
183
167
|
render() {
|
|
184
168
|
const { base, header, triggerLabel, toggleLabel, icon, content } = this.collapseStyles({
|
|
185
169
|
isOpen: this.isOpen,
|
|
186
170
|
isDisabled: this.isDisabled,
|
|
187
171
|
size: this.size,
|
|
188
|
-
hasError: this.error
|
|
172
|
+
hasError: !!this.error
|
|
189
173
|
});
|
|
190
174
|
return x`
|
|
191
175
|
<div class="w-[inherit]">
|
|
192
|
-
|
|
193
|
-
|
|
176
|
+
<lukso-form-label label=${this.label}></lukso-form-label>
|
|
177
|
+
<lukso-form-description
|
|
178
|
+
description=${this.description}
|
|
179
|
+
></lukso-form-description>
|
|
194
180
|
<div class=${cn(base(), this.customClass)}>
|
|
195
181
|
<!-- Header -->
|
|
196
182
|
<div
|
|
@@ -220,7 +206,7 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
220
206
|
</div>
|
|
221
207
|
</div>
|
|
222
208
|
</div>
|
|
223
|
-
|
|
209
|
+
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
224
210
|
</div>
|
|
225
211
|
`;
|
|
226
212
|
}
|
|
@@ -12,12 +12,8 @@ export declare const CollapseLarge: any;
|
|
|
12
12
|
export declare const CollapseXLarge: any;
|
|
13
13
|
/** Example of custom labels and icon */
|
|
14
14
|
export declare const CustomLabels: any;
|
|
15
|
-
/** Example
|
|
16
|
-
export declare const
|
|
17
|
-
/** Example of collapse with `description` */
|
|
18
|
-
export declare const CollapseDescription: any;
|
|
19
|
-
/** Example of collapse with `error` */
|
|
20
|
-
export declare const CollapseError: any;
|
|
15
|
+
/** Example with form decorators: `label`, `description` and `error`. */
|
|
16
|
+
export declare const FormDecorators: any;
|
|
21
17
|
/** Example of lukso-collapse `open` by default */
|
|
22
18
|
export declare const CollapseOpen: any;
|
|
23
19
|
/** Example of lukso-collapse `disabled` */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-collapse.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-collapse/lukso-collapse.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAC1D,OAAO,SAAS,CAAA;AAChB,OAAO,uBAAuB,CAAA;AAE9B,iEAAiE;AACjE,QAAA,MAAM,IAAI,EAAE,IA2HX,CAAA;AAED,eAAe,IAAI,CAAA;AAiCnB,8BAA8B;AAC9B,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,+BAA+B;AAC/B,eAAO,MAAM,cAAc,KAAoB,CAAA;AAK/C,8BAA8B;AAC9B,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,gCAAgC;AAChC,eAAO,MAAM,cAAc,KAAoB,CAAA;AAK/C,wCAAwC;AACxC,eAAO,MAAM,YAAY,KAAoB,CAAA;AAO7C,
|
|
1
|
+
{"version":3,"file":"lukso-collapse.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-collapse/lukso-collapse.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAC1D,OAAO,SAAS,CAAA;AAChB,OAAO,uBAAuB,CAAA;AAE9B,iEAAiE;AACjE,QAAA,MAAM,IAAI,EAAE,IA2HX,CAAA;AAED,eAAe,IAAI,CAAA;AAiCnB,8BAA8B;AAC9B,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,+BAA+B;AAC/B,eAAO,MAAM,cAAc,KAAoB,CAAA;AAK/C,8BAA8B;AAC9B,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,gCAAgC;AAChC,eAAO,MAAM,cAAc,KAAoB,CAAA;AAK/C,wCAAwC;AACxC,eAAO,MAAM,YAAY,KAAoB,CAAA;AAO7C,wEAAwE;AACxE,eAAO,MAAM,cAAc,KAAoB,CAAA;AAO/C,kDAAkD;AAClD,eAAO,MAAM,YAAY,KAAoB,CAAA;AAU7C,2CAA2C;AAC3C,eAAO,MAAM,gBAAgB,KAAoB,CAAA;AAKjD,0DAA0D;AAC1D,eAAO,MAAM,uBAAuB,KAAoB,CAAA;AAUxD,sDAAsD;AACtD,eAAO,MAAM,uBAAuB,KAAoB,CAAA;AAkBxD,6DAA6D;AAC7D,eAAO,MAAM,oBAAoB,KAAoB,CAAA"}
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const safeCustomElement = require('../../safe-custom-element-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
|
+
const state = require('../../state-CAX-E_Ev.cjs');
|
|
8
8
|
const index = require('../../index-CaJky2qL.cjs');
|
|
9
|
-
const styleMap = require('../../style-map-
|
|
9
|
+
const styleMap = require('../../style-map-GvPMWlOB.cjs');
|
|
10
10
|
require('../../tailwind-config.cjs');
|
|
11
11
|
const axe = require('../../axe-C-H1UVi1.cjs');
|
|
12
12
|
require('../lukso-icon/index.cjs');
|
|
13
|
-
require('../../index-
|
|
13
|
+
require('../../index-DMRL6USt.cjs');
|
|
14
|
+
require('../lukso-form-label/index.cjs');
|
|
15
|
+
require('../lukso-form-description/index.cjs');
|
|
16
|
+
require('../lukso-form-error/index.cjs');
|
|
14
17
|
|
|
15
18
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
16
19
|
|
|
@@ -28,14 +31,14 @@ const FOCUS_DELAY_MS = 10;
|
|
|
28
31
|
exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
29
32
|
constructor() {
|
|
30
33
|
super(...arguments);
|
|
31
|
-
this.value =
|
|
32
|
-
this.name =
|
|
34
|
+
this.value = void 0;
|
|
35
|
+
this.name = void 0;
|
|
33
36
|
this.placeholder = "#000000";
|
|
34
|
-
this.label =
|
|
35
|
-
this.id =
|
|
36
|
-
this.description =
|
|
37
|
-
this.error =
|
|
38
|
-
this.customClass =
|
|
37
|
+
this.label = void 0;
|
|
38
|
+
this.id = void 0;
|
|
39
|
+
this.description = void 0;
|
|
40
|
+
this.error = void 0;
|
|
41
|
+
this.customClass = void 0;
|
|
39
42
|
this.isFullWidth = false;
|
|
40
43
|
this.isReadonly = false;
|
|
41
44
|
this.isDisabled = false;
|
|
@@ -190,27 +193,6 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
190
193
|
/>
|
|
191
194
|
</div>`;
|
|
192
195
|
}
|
|
193
|
-
labelTemplate() {
|
|
194
|
-
return shared_tailwindElement_index.x`
|
|
195
|
-
<label
|
|
196
|
-
for=${this.name}
|
|
197
|
-
class="heading-inter-14-bold text-neutral-20 pb-2 block"
|
|
198
|
-
>${this.label}</label
|
|
199
|
-
>
|
|
200
|
-
`;
|
|
201
|
-
}
|
|
202
|
-
descriptionTemplate() {
|
|
203
|
-
return shared_tailwindElement_index.x`
|
|
204
|
-
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
205
|
-
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
206
|
-
</div>
|
|
207
|
-
`;
|
|
208
|
-
}
|
|
209
|
-
errorTemplate() {
|
|
210
|
-
return shared_tailwindElement_index.x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
|
|
211
|
-
${this.error}
|
|
212
|
-
</div>`;
|
|
213
|
-
}
|
|
214
196
|
handleFocus() {
|
|
215
197
|
if (!this.isReadonly && !this.isDisabled) {
|
|
216
198
|
this.hasFocus = true;
|
|
@@ -290,7 +272,7 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
290
272
|
}
|
|
291
273
|
render() {
|
|
292
274
|
const { wrapper, input, color, colorInput } = this.styles({
|
|
293
|
-
hasError: this.error
|
|
275
|
+
hasError: !!this.error,
|
|
294
276
|
hasHighlight: this.hasHighlight,
|
|
295
277
|
isReadonly: this.isReadonly,
|
|
296
278
|
isDisabled: this.isDisabled,
|
|
@@ -299,13 +281,18 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
299
281
|
});
|
|
300
282
|
return shared_tailwindElement_index.x`
|
|
301
283
|
<div class="w-[inherit]">
|
|
302
|
-
|
|
303
|
-
|
|
284
|
+
<lukso-form-label
|
|
285
|
+
for-name=${this.name}
|
|
286
|
+
label=${this.label}
|
|
287
|
+
></lukso-form-label>
|
|
288
|
+
<lukso-form-description
|
|
289
|
+
description=${this.description}
|
|
290
|
+
></lukso-form-description>
|
|
304
291
|
<div class=${wrapper()}>
|
|
305
292
|
${this.colorPickerTemplate(color(), colorInput())}
|
|
306
293
|
<div class="relative w-full">${this.inputTemplate(input())}</div>
|
|
307
294
|
</div>
|
|
308
|
-
|
|
295
|
+
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
309
296
|
</div>
|
|
310
297
|
`;
|
|
311
298
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { InputSize } from '../../shared/types';
|
|
2
2
|
declare const LuksoColorPicker_base: typeof import('lit').LitElement;
|
|
3
3
|
export declare class LuksoColorPicker extends LuksoColorPicker_base {
|
|
4
|
-
value: string;
|
|
5
|
-
name: string;
|
|
4
|
+
value: string | undefined;
|
|
5
|
+
name: string | undefined;
|
|
6
6
|
placeholder: string;
|
|
7
|
-
label: string;
|
|
8
|
-
id: string;
|
|
9
|
-
description: string;
|
|
10
|
-
error: string;
|
|
11
|
-
customClass: string;
|
|
7
|
+
label: string | undefined;
|
|
8
|
+
id: string | undefined;
|
|
9
|
+
description: string | undefined;
|
|
10
|
+
error: string | undefined;
|
|
11
|
+
customClass: string | undefined;
|
|
12
12
|
isFullWidth: boolean;
|
|
13
13
|
isReadonly: boolean;
|
|
14
14
|
isDisabled: boolean;
|
|
@@ -21,9 +21,6 @@ export declare class LuksoColorPicker extends LuksoColorPicker_base {
|
|
|
21
21
|
connectedCallback(): void;
|
|
22
22
|
inputTemplate(styles: string): import('lit-html').TemplateResult<1>;
|
|
23
23
|
colorPickerTemplate(styles: string, colorInputStyles: string): import('lit-html').TemplateResult<1>;
|
|
24
|
-
labelTemplate(): import('lit-html').TemplateResult<1>;
|
|
25
|
-
descriptionTemplate(): import('lit-html').TemplateResult<1>;
|
|
26
|
-
errorTemplate(): import('lit-html').TemplateResult<1>;
|
|
27
24
|
private handleFocus;
|
|
28
25
|
private handleBlur;
|
|
29
26
|
private handleChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-color-picker/index.ts"],"names":[],"mappings":"AAQA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-color-picker/index.ts"],"names":[],"mappings":"AAQA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;AACpC,OAAO,+BAA+B,CAAA;AACtC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,+BAA+B,CAAA;AAGtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAI/C,qBACa,gBAAiB,SAAQ,qBAA4B;IAEhE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAY;IAGrC,IAAI,EAAE,MAAM,GAAG,SAAS,CAAY;IAGpC,WAAW,SAAY;IAGvB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAY;IAGrC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAY;IAGlC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAY;IAG3C,KAAK,EAAE,MAAM,GAAG,SAAS,CAAY;IAGrC,WAAW,EAAE,MAAM,GAAG,SAAS,CAAY;IAG3C,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,iBAAiB,UAAQ;IAGzB,IAAI,EAAE,SAAS,CAAW;IAG1B,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,MAAM,CA8FZ;IAEF,iBAAiB;IAajB,aAAa,CAAC,MAAM,EAAE,MAAM;IAwB5B,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM;IAiB5D,OAAO,CAAC,WAAW;YAOL,UAAU;YAgBV,YAAY;YAcZ,WAAW;YAeX,WAAW;YAmBX,aAAa;IAe3B,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,oBAAoB,EAAE,gBAAgB,CAAA;KACvC;CACF"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, E, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { T as TailwindStyledElement, E, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
|
+
import { r } from '../../state-YyDFqXia.js';
|
|
4
4
|
import { c as ce } from '../../index-B9iart53.js';
|
|
5
|
-
import { o } from '../../style-map-
|
|
5
|
+
import { o } from '../../style-map-BpMy_EP7.js';
|
|
6
6
|
import '../../tailwind-config.js';
|
|
7
7
|
import { c as cn } from '../../axe-BK9JSROP.js';
|
|
8
8
|
import '../lukso-icon/index.js';
|
|
9
|
-
import '../../index-
|
|
9
|
+
import '../../index-BOwyGlSA.js';
|
|
10
|
+
import '../lukso-form-label/index.js';
|
|
11
|
+
import '../lukso-form-description/index.js';
|
|
12
|
+
import '../lukso-form-error/index.js';
|
|
10
13
|
|
|
11
14
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
12
15
|
|
|
@@ -24,14 +27,14 @@ const FOCUS_DELAY_MS = 10;
|
|
|
24
27
|
let LuksoColorPicker = class extends TailwindStyledElement(style) {
|
|
25
28
|
constructor() {
|
|
26
29
|
super(...arguments);
|
|
27
|
-
this.value =
|
|
28
|
-
this.name =
|
|
30
|
+
this.value = void 0;
|
|
31
|
+
this.name = void 0;
|
|
29
32
|
this.placeholder = "#000000";
|
|
30
|
-
this.label =
|
|
31
|
-
this.id =
|
|
32
|
-
this.description =
|
|
33
|
-
this.error =
|
|
34
|
-
this.customClass =
|
|
33
|
+
this.label = void 0;
|
|
34
|
+
this.id = void 0;
|
|
35
|
+
this.description = void 0;
|
|
36
|
+
this.error = void 0;
|
|
37
|
+
this.customClass = void 0;
|
|
35
38
|
this.isFullWidth = false;
|
|
36
39
|
this.isReadonly = false;
|
|
37
40
|
this.isDisabled = false;
|
|
@@ -186,27 +189,6 @@ let LuksoColorPicker = class extends TailwindStyledElement(style) {
|
|
|
186
189
|
/>
|
|
187
190
|
</div>`;
|
|
188
191
|
}
|
|
189
|
-
labelTemplate() {
|
|
190
|
-
return x`
|
|
191
|
-
<label
|
|
192
|
-
for=${this.name}
|
|
193
|
-
class="heading-inter-14-bold text-neutral-20 pb-2 block"
|
|
194
|
-
>${this.label}</label
|
|
195
|
-
>
|
|
196
|
-
`;
|
|
197
|
-
}
|
|
198
|
-
descriptionTemplate() {
|
|
199
|
-
return x`
|
|
200
|
-
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
201
|
-
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
202
|
-
</div>
|
|
203
|
-
`;
|
|
204
|
-
}
|
|
205
|
-
errorTemplate() {
|
|
206
|
-
return x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
|
|
207
|
-
${this.error}
|
|
208
|
-
</div>`;
|
|
209
|
-
}
|
|
210
192
|
handleFocus() {
|
|
211
193
|
if (!this.isReadonly && !this.isDisabled) {
|
|
212
194
|
this.hasFocus = true;
|
|
@@ -286,7 +268,7 @@ let LuksoColorPicker = class extends TailwindStyledElement(style) {
|
|
|
286
268
|
}
|
|
287
269
|
render() {
|
|
288
270
|
const { wrapper, input, color, colorInput } = this.styles({
|
|
289
|
-
hasError: this.error
|
|
271
|
+
hasError: !!this.error,
|
|
290
272
|
hasHighlight: this.hasHighlight,
|
|
291
273
|
isReadonly: this.isReadonly,
|
|
292
274
|
isDisabled: this.isDisabled,
|
|
@@ -295,13 +277,18 @@ let LuksoColorPicker = class extends TailwindStyledElement(style) {
|
|
|
295
277
|
});
|
|
296
278
|
return x`
|
|
297
279
|
<div class="w-[inherit]">
|
|
298
|
-
|
|
299
|
-
|
|
280
|
+
<lukso-form-label
|
|
281
|
+
for-name=${this.name}
|
|
282
|
+
label=${this.label}
|
|
283
|
+
></lukso-form-label>
|
|
284
|
+
<lukso-form-description
|
|
285
|
+
description=${this.description}
|
|
286
|
+
></lukso-form-description>
|
|
300
287
|
<div class=${wrapper()}>
|
|
301
288
|
${this.colorPickerTemplate(color(), colorInput())}
|
|
302
289
|
<div class="relative w-full">${this.inputTemplate(input())}</div>
|
|
303
290
|
</div>
|
|
304
|
-
|
|
291
|
+
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
305
292
|
</div>
|
|
306
293
|
`;
|
|
307
294
|
}
|
|
@@ -6,12 +6,8 @@ export default meta;
|
|
|
6
6
|
export declare const DefaultInput: any;
|
|
7
7
|
/** Example of input with `placeholder` text. */
|
|
8
8
|
export declare const PlaceholderText: any;
|
|
9
|
-
/** Example
|
|
10
|
-
export declare const
|
|
11
|
-
/** Example of input with `label` and `description`. */
|
|
12
|
-
export declare const LabelAndDescription: any;
|
|
13
|
-
/** Example of input with `error`. */
|
|
14
|
-
export declare const ErrorInput: any;
|
|
9
|
+
/** Example with form decorators: `label`, `description` and `error`. */
|
|
10
|
+
export declare const FormDecorators: any;
|
|
15
11
|
/** If you need input to take full width of the parent element add `is-full-width` property. */
|
|
16
12
|
export declare const FullWidth: any;
|
|
17
13
|
/** Example of `small` size input. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-color-picker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-color-picker/lukso-color-picker.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,SAAS,CAAA;AAEhB,sEAAsE;AACtE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lukso-color-picker.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-color-picker/lukso-color-picker.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,SAAS,CAAA;AAEhB,sEAAsE;AACtE,QAAA,MAAM,IAAI,EAAE,IAwLX,CAAA;AAED,eAAe,IAAI,CAAA;AA6CnB,8CAA8C;AAC9C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAE7C,gDAAgD;AAChD,eAAO,MAAM,eAAe,KAAoB,CAAA;AAMhD,wEAAwE;AACxE,eAAO,MAAM,cAAc,KAAoB,CAAA;AAO/C,+FAA+F;AAC/F,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,qCAAqC;AACrC,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,sCAAsC;AACtC,eAAO,MAAM,UAAU,KAAoB,CAAA"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const safeCustomElement = require('../../safe-custom-element-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
7
|
const index = require('../../index-CaJky2qL.cjs');
|
|
8
8
|
require('../lukso-icon/index.cjs');
|
|
9
|
-
require('../../index-
|
|
10
|
-
require('../../index-
|
|
9
|
+
require('../../index-Cke4NczR.cjs');
|
|
10
|
+
require('../../index-D_vmwNxA.cjs');
|
|
11
11
|
const uniqId = require('../../uniq-id-Cszs24DQ.cjs');
|
|
12
12
|
|
|
13
13
|
const debounceFunction = (func, timeout = 100) => {
|
|
@@ -47,9 +47,9 @@ exports.LuksoDropdown = class LuksoDropdown extends shared_tailwindElement_index
|
|
|
47
47
|
this.maxHeight = void 0;
|
|
48
48
|
this.styles = index.ce({
|
|
49
49
|
slots: {
|
|
50
|
-
wrapper: "absolute z-50",
|
|
50
|
+
wrapper: "absolute z-50 w-full",
|
|
51
51
|
dropdown: `bg-neutral-100 border border-neutral-90 shadow-1xl
|
|
52
|
-
flex flex-col gap-1 overflow-y-auto w-
|
|
52
|
+
flex flex-col gap-1 overflow-y-auto w-full animate-fade-in animation-duration-200`
|
|
53
53
|
},
|
|
54
54
|
variants: {
|
|
55
55
|
openTop: {
|
|
@@ -75,7 +75,7 @@ exports.LuksoDropdown = class LuksoDropdown extends shared_tailwindElement_index
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
isFullWidth: {
|
|
78
|
-
true: { wrapper: "w-full", dropdown: "w-full" }
|
|
78
|
+
true: { wrapper: "w-full", dropdown: "max-w-full" }
|
|
79
79
|
},
|
|
80
80
|
hasMaxHeight: {
|
|
81
81
|
true: {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, E, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
1
|
+
import { T as TailwindStyledElement, E, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
3
|
import { c as ce } from '../../index-B9iart53.js';
|
|
4
4
|
import '../lukso-icon/index.js';
|
|
5
|
-
import '../../index-
|
|
6
|
-
import '../../index-
|
|
5
|
+
import '../../index-JTvbIE4S.js';
|
|
6
|
+
import '../../index-PSjywfTJ.js';
|
|
7
7
|
import { u as uniqId } from '../../uniq-id-CGUN-pJV.js';
|
|
8
8
|
|
|
9
9
|
const debounceFunction = (func, timeout = 100) => {
|
|
@@ -43,9 +43,9 @@ let LuksoDropdown = class extends TailwindStyledElement(style) {
|
|
|
43
43
|
this.maxHeight = void 0;
|
|
44
44
|
this.styles = ce({
|
|
45
45
|
slots: {
|
|
46
|
-
wrapper: "absolute z-50",
|
|
46
|
+
wrapper: "absolute z-50 w-full",
|
|
47
47
|
dropdown: `bg-neutral-100 border border-neutral-90 shadow-1xl
|
|
48
|
-
flex flex-col gap-1 overflow-y-auto w-
|
|
48
|
+
flex flex-col gap-1 overflow-y-auto w-full animate-fade-in animation-duration-200`
|
|
49
49
|
},
|
|
50
50
|
variants: {
|
|
51
51
|
openTop: {
|
|
@@ -71,7 +71,7 @@ let LuksoDropdown = class extends TailwindStyledElement(style) {
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
isFullWidth: {
|
|
74
|
-
true: { wrapper: "w-full", dropdown: "w-full" }
|
|
74
|
+
true: { wrapper: "w-full", dropdown: "max-w-full" }
|
|
75
75
|
},
|
|
76
76
|
hasMaxHeight: {
|
|
77
77
|
true: {}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const safeCustomElement = require('../../safe-custom-element-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
7
|
const index = require('../../index-CaJky2qL.cjs');
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: block\n}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
3
|
import { c as ce } from '../../index-B9iart53.js';
|
|
4
4
|
|
|
5
5
|
const style = ":host {\n display: block\n}";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const safeCustomElement = require('../../safe-custom-element-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
9
9
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
|
+
|
|
8
|
+
const style = ":host {\n display: flex\n}";
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result) __defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
exports.LuksoFormDescription = class LuksoFormDescription extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
21
|
+
render() {
|
|
22
|
+
return this.description ? shared_tailwindElement_index.x`
|
|
23
|
+
<lukso-sanitize
|
|
24
|
+
html-content=${this.description ? this.description : shared_tailwindElement_index.E}
|
|
25
|
+
class="paragraph-inter-12-regular text-neutral-20 pb-2"
|
|
26
|
+
></lukso-sanitize>
|
|
27
|
+
` : shared_tailwindElement_index.E;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorateClass([
|
|
31
|
+
safeCustomElement.n({ type: String, reflect: true })
|
|
32
|
+
], exports.LuksoFormDescription.prototype, "description", 2);
|
|
33
|
+
exports.LuksoFormDescription = __decorateClass([
|
|
34
|
+
safeCustomElement.safeCustomElement("lukso-form-description")
|
|
35
|
+
], exports.LuksoFormDescription);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { nothing } from 'lit';
|
|
2
|
+
declare const LuksoFormDescription_base: typeof import('lit').LitElement;
|
|
3
|
+
export declare class LuksoFormDescription extends LuksoFormDescription_base {
|
|
4
|
+
description: string;
|
|
5
|
+
render(): import('lit-html').TemplateResult<1> | typeof nothing;
|
|
6
|
+
}
|
|
7
|
+
declare global {
|
|
8
|
+
interface HTMLElementTagNameMap {
|
|
9
|
+
'lukso-form-description': LuksoFormDescription;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-form-description/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAA;;AAOnC,qBACa,oBAAqB,SAAQ,yBAA4B;IAEpE,WAAW,EAAE,MAAM,CAAA;IAEnB,MAAM;CAUP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,wBAAwB,EAAE,oBAAoB,CAAA;KAC/C;CACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { T as TailwindStyledElement, E, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
|
+
|
|
4
|
+
const style = ":host {\n display: flex\n}";
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
8
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
9
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
10
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
11
|
+
if (decorator = decorators[i])
|
|
12
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
13
|
+
if (kind && result) __defProp(target, key, result);
|
|
14
|
+
return result;
|
|
15
|
+
};
|
|
16
|
+
let LuksoFormDescription = class extends TailwindStyledElement(style) {
|
|
17
|
+
render() {
|
|
18
|
+
return this.description ? x`
|
|
19
|
+
<lukso-sanitize
|
|
20
|
+
html-content=${this.description ? this.description : E}
|
|
21
|
+
class="paragraph-inter-12-regular text-neutral-20 pb-2"
|
|
22
|
+
></lukso-sanitize>
|
|
23
|
+
` : E;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__decorateClass([
|
|
27
|
+
n({ type: String, reflect: true })
|
|
28
|
+
], LuksoFormDescription.prototype, "description", 2);
|
|
29
|
+
LuksoFormDescription = __decorateClass([
|
|
30
|
+
safeCustomElement("lukso-form-description")
|
|
31
|
+
], LuksoFormDescription);
|
|
32
|
+
|
|
33
|
+
export { LuksoFormDescription };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta } from '@storybook/web-components-vite';
|
|
2
|
+
/** Documentation and examples of `lukso-form-description` component. */
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
export default meta;
|
|
5
|
+
/** Example of default description */
|
|
6
|
+
export declare const DefaultFormDescription: any;
|
|
7
|
+
//# sourceMappingURL=lukso-form-description.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lukso-form-description.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-form-description/lukso-form-description.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,SAAS,CAAA;AAEhB,0EAA0E;AAC1E,QAAA,MAAM,IAAI,EAAE,IAcX,CAAA;AAED,eAAe,IAAI,CAAA;AAOnB,sCAAsC;AACtC,eAAO,MAAM,sBAAsB,KAAoB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
|
+
|
|
8
|
+
const style = ":host {\n display: flex\n}";
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
13
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
14
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
15
|
+
if (decorator = decorators[i])
|
|
16
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
17
|
+
if (kind && result) __defProp(target, key, result);
|
|
18
|
+
return result;
|
|
19
|
+
};
|
|
20
|
+
exports.LuksoFormError = class LuksoFormError extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
21
|
+
render() {
|
|
22
|
+
return this.error ? shared_tailwindElement_index.x`
|
|
23
|
+
<lukso-sanitize
|
|
24
|
+
html-content=${this.error ? this.error : shared_tailwindElement_index.E}
|
|
25
|
+
class="paragraph-inter-12-regular text-red-65 pt-2"
|
|
26
|
+
></lukso-sanitize>
|
|
27
|
+
` : shared_tailwindElement_index.E;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorateClass([
|
|
31
|
+
safeCustomElement.n({ type: String, reflect: true })
|
|
32
|
+
], exports.LuksoFormError.prototype, "error", 2);
|
|
33
|
+
exports.LuksoFormError = __decorateClass([
|
|
34
|
+
safeCustomElement.safeCustomElement("lukso-form-error")
|
|
35
|
+
], exports.LuksoFormError);
|