@lukso/web-components 1.162.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 +5 -5
- package/dist/components/lukso-button/index.js +5 -5
- package/dist/components/lukso-card/index.cjs +9 -9
- package/dist/components/lukso-card/index.js +9 -9
- 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 +123 -42
- package/dist/components/lukso-collapse/index.d.ts +9 -4
- package/dist/components/lukso-collapse/index.d.ts.map +1 -1
- package/dist/components/lukso-collapse/index.js +123 -42
- package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts +12 -2
- package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts.map +1 -1
- package/dist/components/lukso-color-picker/index.cjs +30 -43
- 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 +30 -43
- 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 +3 -3
- package/dist/components/lukso-dropdown-option/index.js +3 -3
- 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 +37 -50
- 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 +37 -50
- 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 +4 -4
- package/dist/components/lukso-navbar/index.js +4 -4
- 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 +26 -15
- 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 +26 -15
- 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 +26 -44
- 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 +26 -44
- 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 +4 -4
- package/dist/components/lukso-tag/index.js +4 -4
- 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 +27 -40
- 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 +27 -40
- 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 +3 -3
- package/dist/components/lukso-wizard/index.js +3 -3
- package/dist/docs/Typography.stories.d.ts.map +1 -1
- package/dist/{index-DZXmXufN.js → index-BOwyGlSA.js} +3 -3
- package/dist/{index-bObYWb9Y.js → index-BbIFBzwC.js} +5 -5
- package/dist/index-BzYTn3KQ.js +41 -0
- package/dist/{index-Zriuvita.cjs → index-CQt6teGk.cjs} +1 -1
- package/dist/{index-BOWftFAY.js → index-CiqeQyTr.js} +1 -1
- package/dist/{index-BYDwEmQd.cjs → index-Cke4NczR.cjs} +2 -2
- package/dist/{index-0s--O024.cjs → index-DMRL6USt.cjs} +3 -3
- package/dist/{index-GXU76s80.cjs → index-D_vmwNxA.cjs} +3 -3
- package/dist/{index-CeucSkmf.cjs → index-DnHJ7FVk.cjs} +5 -5
- package/dist/{index-DvdeX3K2.js → index-JTvbIE4S.js} +2 -2
- package/dist/{index-CIvb8Rdb.js → index-PSjywfTJ.js} +3 -3
- package/dist/index-vTOZ4l_5.cjs +50 -0
- package/dist/index.cjs +20 -5
- package/dist/index.js +8 -5
- package/dist/{safe-custom-element-DTADBI4I.cjs → safe-custom-element-CtjlIm0J.cjs} +1 -1
- package/dist/{safe-custom-element-BODySN1j.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-ClR8ink7.cjs → state-CAX-E_Ev.cjs} +1 -1
- package/dist/{state-n75qAK0V.js → state-YyDFqXia.js} +1 -1
- package/dist/{style-map-BBz25umN.js → style-map-BpMy_EP7.js} +1 -1
- package/dist/{style-map-DhbNG03r.cjs → style-map-GvPMWlOB.cjs} +1 -1
- package/dist/styles/main.css +0 -63
- package/dist/styles/main.css.map +1 -1
- package/dist/tailwind-config.cjs +6 -1
- package/dist/tailwind-config.d.ts +4 -0
- package/dist/tailwind-config.d.ts.map +1 -1
- package/dist/tailwind-config.js +6 -1
- package/dist/{unsafe-html-Cb1yjpJn.cjs → unsafe-html-e7jKkPJv.cjs} +1 -1
- package/dist/{unsafe-html-DTE5r2A7.js → unsafe-html-kPu9HBX1.js} +1 -1
- package/package.json +16 -1
- package/tailwind.config.cjs +0 -1
- package/tools/cn.cjs +1 -1
- package/tools/cn.js +1 -1
- package/tools/index.cjs +1 -1
- package/tools/index.js +1 -1
- package/tools/sass/fonts.scss +0 -28
- package/tools/sass/typography.scss +2 -58
- package/tools/styles/main.css +0 -63
- package/tools/{tailwind-config-DoMZEvsr.cjs → tailwind-config-BbwTTnsk.cjs} +6 -1
- package/tools/{tailwind-config-DVTyRd7x.js → tailwind-config-Cp1XJZvN.js} +6 -1
- package/tools/tailwind-config.cjs +1 -1
- package/tools/tailwind-config.d.ts +4 -0
- package/tools/tailwind-config.d.ts.map +1 -1
- package/tools/tailwind-config.js +1 -1
- package/dist/index-BFqOU6o6.cjs +0 -50
- package/dist/index-CQq_Eyeu.js +0 -41
- package/tools/assets/fonts/Apax-Bold.woff2 +0 -0
- package/tools/assets/fonts/Apax-Light.woff2 +0 -0
- package/tools/assets/fonts/Apax-Medium.woff2 +0 -0
- package/tools/assets/fonts/Apax-Regular.woff2 +0 -0
|
@@ -2,10 +2,10 @@
|
|
|
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 unsafeHtml = require('../../unsafe-html-
|
|
8
|
-
const styleMap = require('../../style-map-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
|
+
const unsafeHtml = require('../../unsafe-html-e7jKkPJv.cjs');
|
|
8
|
+
const styleMap = require('../../style-map-GvPMWlOB.cjs');
|
|
9
9
|
|
|
10
10
|
const style = ":host {\n position: relative;\n display: inline-flex;\n line-height: 0;\n}\n:host svg {\n display: block !important;\n}";
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { x, T as TailwindStyledElement } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
3
|
-
import { o as o$1 } from '../../unsafe-html-
|
|
4
|
-
import { o } from '../../style-map-
|
|
1
|
+
import { x, T as TailwindStyledElement } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
|
+
import { o as o$1 } from '../../unsafe-html-kPu9HBX1.js';
|
|
4
|
+
import { o } from '../../style-map-BpMy_EP7.js';
|
|
5
5
|
|
|
6
6
|
const style = ":host {\n position: relative;\n display: inline-flex;\n line-height: 0;\n}\n:host svg {\n display: block !important;\n}";
|
|
7
7
|
|
|
@@ -2,10 +2,10 @@
|
|
|
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-
|
|
8
|
-
const styleMap = require('../../style-map-
|
|
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
|
+
const styleMap = require('../../style-map-GvPMWlOB.cjs');
|
|
9
9
|
const index = require('../../index-CaJky2qL.cjs');
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
3
|
-
import { r } from '../../state-
|
|
4
|
-
import { o } from '../../style-map-
|
|
1
|
+
import { a as TailwindElement, 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
|
+
import { o } from '../../style-map-BpMy_EP7.js';
|
|
5
5
|
import { c as ce } from '../../index-B9iart53.js';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -2,12 +2,15 @@
|
|
|
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
9
|
require('../lukso-icon/index.cjs');
|
|
10
|
-
require('../../index-
|
|
10
|
+
require('../../index-DMRL6USt.cjs');
|
|
11
|
+
require('../lukso-form-label/index.cjs');
|
|
12
|
+
require('../lukso-form-description/index.cjs');
|
|
13
|
+
require('../lukso-form-error/index.cjs');
|
|
11
14
|
require('../../tailwind-config.cjs');
|
|
12
15
|
const axe = require('../../axe-C-H1UVi1.cjs');
|
|
13
16
|
|
|
@@ -27,19 +30,19 @@ const FOCUS_DELAY_MS = 10;
|
|
|
27
30
|
exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
28
31
|
constructor() {
|
|
29
32
|
super(...arguments);
|
|
30
|
-
this.value =
|
|
31
|
-
this.name =
|
|
33
|
+
this.value = void 0;
|
|
34
|
+
this.name = void 0;
|
|
32
35
|
this.type = "text";
|
|
33
|
-
this.placeholder =
|
|
34
|
-
this.label =
|
|
36
|
+
this.placeholder = void 0;
|
|
37
|
+
this.label = void 0;
|
|
35
38
|
this.autocomplete = "on";
|
|
36
|
-
this.id =
|
|
39
|
+
this.id = void 0;
|
|
37
40
|
this.ref = void 0;
|
|
38
41
|
this.accept = void 0;
|
|
39
|
-
this.description =
|
|
40
|
-
this.error =
|
|
41
|
-
this.unit =
|
|
42
|
-
this.customClass =
|
|
42
|
+
this.description = void 0;
|
|
43
|
+
this.error = void 0;
|
|
44
|
+
this.unit = void 0;
|
|
45
|
+
this.customClass = void 0;
|
|
43
46
|
this.isFullWidth = false;
|
|
44
47
|
this.isReadonly = false;
|
|
45
48
|
this.isDisabled = false;
|
|
@@ -48,7 +51,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
48
51
|
this.min = void 0;
|
|
49
52
|
this.borderless = false;
|
|
50
53
|
this.size = "large";
|
|
51
|
-
this.rightIcon =
|
|
54
|
+
this.rightIcon = void 0;
|
|
52
55
|
this.isRightIconClickable = false;
|
|
53
56
|
this.keepFocusOnEscape = false;
|
|
54
57
|
this.hasFocus = false;
|
|
@@ -58,7 +61,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
58
61
|
wrapper: "group flex",
|
|
59
62
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
60
63
|
outline-none transition transition-all duration-150 appearance-none`,
|
|
61
|
-
unit: `text-neutral-60 flex items-center relative border-solid transition
|
|
64
|
+
unit: `bg-neutral-100 text-neutral-60 flex items-center relative border-solid transition
|
|
62
65
|
transition-all duration-150 before:bg-neutral-90 before:absolute
|
|
63
66
|
before:left-0 before:w-[1px] whitespace-nowrap cursor-pointer`,
|
|
64
67
|
rightIcon: "absolute top-1/2 transform -translate-y-1/2"
|
|
@@ -106,23 +109,23 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
106
109
|
},
|
|
107
110
|
size: {
|
|
108
111
|
small: {
|
|
109
|
-
input: "h-
|
|
110
|
-
unit: "h-
|
|
112
|
+
input: "h-7 px-3 py-1 paragraph-inter-12-regular rounded-8",
|
|
113
|
+
unit: "h-7 paragraph-inter-12-regular px-2 rounded-r-8 before:top-[calc(50%-6px)] before:h-[12px]",
|
|
111
114
|
rightIcon: "right-3"
|
|
112
115
|
},
|
|
113
116
|
medium: {
|
|
114
|
-
input: "h-
|
|
115
|
-
unit: "h-
|
|
117
|
+
input: "h-10 px-3.5 py-2 paragraph-inter-14-regular rounded-[10px]",
|
|
118
|
+
unit: "h-10 paragraph-inter-12-regular px-3 rounded-r-[10px] before:top-[calc(50%-12px)] before:h-6",
|
|
116
119
|
rightIcon: "right-4"
|
|
117
120
|
},
|
|
118
121
|
large: {
|
|
119
|
-
input: "h-
|
|
120
|
-
unit: "h-
|
|
122
|
+
input: "h-12 px-4 py-2 paragraph-inter-14-regular rounded-12",
|
|
123
|
+
unit: "h-12 paragraph-inter-12-regular pl-3 pr-4 rounded-r-12 before:top-[calc(50%-12px)] before:h-6",
|
|
121
124
|
rightIcon: "right-4"
|
|
122
125
|
},
|
|
123
126
|
"x-large": {
|
|
124
|
-
input: "h-
|
|
125
|
-
unit: "h-
|
|
127
|
+
input: "h-17 px-5 py-5 paragraph-inter-16-regular rounded-[14px]",
|
|
128
|
+
unit: "h-17 paragraph-inter-16-regular pl-3 pr-4 rounded-r-[14px] before:top-[calc(50%-12px)] before:h-6",
|
|
126
129
|
rightIcon: "right-4"
|
|
127
130
|
}
|
|
128
131
|
},
|
|
@@ -210,27 +213,6 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
210
213
|
/>
|
|
211
214
|
`;
|
|
212
215
|
}
|
|
213
|
-
labelTemplate() {
|
|
214
|
-
return shared_tailwindElement_index.x`
|
|
215
|
-
<label
|
|
216
|
-
for=${this.name}
|
|
217
|
-
class="heading-inter-14-bold text-neutral-20 pb-2 block"
|
|
218
|
-
>${this.label}</label
|
|
219
|
-
>
|
|
220
|
-
`;
|
|
221
|
-
}
|
|
222
|
-
descriptionTemplate() {
|
|
223
|
-
return shared_tailwindElement_index.x`
|
|
224
|
-
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
225
|
-
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
226
|
-
</div>
|
|
227
|
-
`;
|
|
228
|
-
}
|
|
229
|
-
errorTemplate() {
|
|
230
|
-
return shared_tailwindElement_index.x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
|
|
231
|
-
${this.error}
|
|
232
|
-
</div>`;
|
|
233
|
-
}
|
|
234
216
|
unitTemplate(styles) {
|
|
235
217
|
return shared_tailwindElement_index.x`<div
|
|
236
218
|
class=${styles}
|
|
@@ -388,21 +370,26 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
388
370
|
}
|
|
389
371
|
render() {
|
|
390
372
|
const { wrapper, input, unit, rightIcon } = this.inputStyles({
|
|
391
|
-
hasError: this.error
|
|
373
|
+
hasError: !!this.error,
|
|
392
374
|
hasHighlight: this.hasHighlight,
|
|
393
375
|
borderless: this.borderless,
|
|
394
376
|
isReadonly: this.isReadonly,
|
|
395
377
|
isDisabled: this.isDisabled,
|
|
396
378
|
isFullWidth: this.isFullWidth,
|
|
397
|
-
hasUnit: this.unit
|
|
379
|
+
hasUnit: !!this.unit,
|
|
398
380
|
size: this.size,
|
|
399
|
-
hasRightIcon: this.rightIcon
|
|
381
|
+
hasRightIcon: !!this.rightIcon,
|
|
400
382
|
isRightIconClickable: this.isRightIconClickable
|
|
401
383
|
});
|
|
402
384
|
return shared_tailwindElement_index.x`
|
|
403
385
|
<div class="w-[inherit]">
|
|
404
|
-
|
|
405
|
-
|
|
386
|
+
<lukso-form-label
|
|
387
|
+
for-name=${this.name}
|
|
388
|
+
label=${this.label}
|
|
389
|
+
></lukso-form-label>
|
|
390
|
+
<lukso-form-description
|
|
391
|
+
description=${this.description}
|
|
392
|
+
></lukso-form-description>
|
|
406
393
|
<div class=${wrapper()}>
|
|
407
394
|
<div class="relative w-[inherit]">
|
|
408
395
|
${this.inputTemplate(input())}
|
|
@@ -410,7 +397,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
410
397
|
</div>
|
|
411
398
|
${this.unit ? this.unitTemplate(unit()) : shared_tailwindElement_index.E}
|
|
412
399
|
</div>
|
|
413
|
-
|
|
400
|
+
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
414
401
|
</div>
|
|
415
402
|
`;
|
|
416
403
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { InputSize } from '../../shared/types';
|
|
2
2
|
declare const LuksoInput_base: typeof import('lit').LitElement;
|
|
3
3
|
export declare class LuksoInput extends LuksoInput_base {
|
|
4
|
-
value: string;
|
|
5
|
-
name: string;
|
|
4
|
+
value: string | undefined;
|
|
5
|
+
name: string | undefined;
|
|
6
6
|
type: string;
|
|
7
|
-
placeholder: string;
|
|
8
|
-
label: string;
|
|
7
|
+
placeholder: string | undefined;
|
|
8
|
+
label: string | undefined;
|
|
9
9
|
autocomplete: string;
|
|
10
|
-
id: string;
|
|
10
|
+
id: string | undefined;
|
|
11
11
|
ref: string | undefined;
|
|
12
12
|
accept: string | undefined;
|
|
13
|
-
description: string;
|
|
14
|
-
error: string;
|
|
15
|
-
unit: string;
|
|
16
|
-
customClass: string;
|
|
13
|
+
description: string | undefined;
|
|
14
|
+
error: string | undefined;
|
|
15
|
+
unit: string | undefined;
|
|
16
|
+
customClass: string | undefined;
|
|
17
17
|
isFullWidth: boolean;
|
|
18
18
|
isReadonly: boolean;
|
|
19
19
|
isDisabled: boolean;
|
|
@@ -22,7 +22,7 @@ export declare class LuksoInput extends LuksoInput_base {
|
|
|
22
22
|
min: number | undefined;
|
|
23
23
|
borderless: boolean;
|
|
24
24
|
size: InputSize;
|
|
25
|
-
rightIcon: string;
|
|
25
|
+
rightIcon: string | undefined;
|
|
26
26
|
isRightIconClickable: boolean;
|
|
27
27
|
keepFocusOnEscape: boolean;
|
|
28
28
|
private hasFocus;
|
|
@@ -30,9 +30,6 @@ export declare class LuksoInput extends LuksoInput_base {
|
|
|
30
30
|
private inputStyles;
|
|
31
31
|
connectedCallback(): void;
|
|
32
32
|
inputTemplate(styles: string): import('lit-html').TemplateResult<1>;
|
|
33
|
-
labelTemplate(): import('lit-html').TemplateResult<1>;
|
|
34
|
-
descriptionTemplate(): import('lit-html').TemplateResult<1>;
|
|
35
|
-
errorTemplate(): import('lit-html').TemplateResult<1>;
|
|
36
33
|
unitTemplate(styles: string): import('lit-html').TemplateResult<1>;
|
|
37
34
|
rightIconTemplate(styles: string): import('lit-html').TemplateResult<1>;
|
|
38
35
|
private handleFocus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAKA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAKA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;AACpC,OAAO,+BAA+B,CAAA;AACtC,O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gBV,YAAY;YAcZ,WAAW;YAeX,WAAW;YAmBX,aAAa;YAcb,cAAc;IAc5B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,eAAe;YAaT,gBAAgB;IAc9B,OAAO,CAAC,oBAAoB;IAY5B,MAAM;CAkCP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,9 +1,12 @@
|
|
|
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
5
|
import '../lukso-icon/index.js';
|
|
6
|
-
import '../../index-
|
|
6
|
+
import '../../index-BOwyGlSA.js';
|
|
7
|
+
import '../lukso-form-label/index.js';
|
|
8
|
+
import '../lukso-form-description/index.js';
|
|
9
|
+
import '../lukso-form-error/index.js';
|
|
7
10
|
import '../../tailwind-config.js';
|
|
8
11
|
import { c as cn } from '../../axe-BK9JSROP.js';
|
|
9
12
|
|
|
@@ -23,19 +26,19 @@ const FOCUS_DELAY_MS = 10;
|
|
|
23
26
|
let LuksoInput = class extends TailwindStyledElement(style) {
|
|
24
27
|
constructor() {
|
|
25
28
|
super(...arguments);
|
|
26
|
-
this.value =
|
|
27
|
-
this.name =
|
|
29
|
+
this.value = void 0;
|
|
30
|
+
this.name = void 0;
|
|
28
31
|
this.type = "text";
|
|
29
|
-
this.placeholder =
|
|
30
|
-
this.label =
|
|
32
|
+
this.placeholder = void 0;
|
|
33
|
+
this.label = void 0;
|
|
31
34
|
this.autocomplete = "on";
|
|
32
|
-
this.id =
|
|
35
|
+
this.id = void 0;
|
|
33
36
|
this.ref = void 0;
|
|
34
37
|
this.accept = void 0;
|
|
35
|
-
this.description =
|
|
36
|
-
this.error =
|
|
37
|
-
this.unit =
|
|
38
|
-
this.customClass =
|
|
38
|
+
this.description = void 0;
|
|
39
|
+
this.error = void 0;
|
|
40
|
+
this.unit = void 0;
|
|
41
|
+
this.customClass = void 0;
|
|
39
42
|
this.isFullWidth = false;
|
|
40
43
|
this.isReadonly = false;
|
|
41
44
|
this.isDisabled = false;
|
|
@@ -44,7 +47,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
44
47
|
this.min = void 0;
|
|
45
48
|
this.borderless = false;
|
|
46
49
|
this.size = "large";
|
|
47
|
-
this.rightIcon =
|
|
50
|
+
this.rightIcon = void 0;
|
|
48
51
|
this.isRightIconClickable = false;
|
|
49
52
|
this.keepFocusOnEscape = false;
|
|
50
53
|
this.hasFocus = false;
|
|
@@ -54,7 +57,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
54
57
|
wrapper: "group flex",
|
|
55
58
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
56
59
|
outline-none transition transition-all duration-150 appearance-none`,
|
|
57
|
-
unit: `text-neutral-60 flex items-center relative border-solid transition
|
|
60
|
+
unit: `bg-neutral-100 text-neutral-60 flex items-center relative border-solid transition
|
|
58
61
|
transition-all duration-150 before:bg-neutral-90 before:absolute
|
|
59
62
|
before:left-0 before:w-[1px] whitespace-nowrap cursor-pointer`,
|
|
60
63
|
rightIcon: "absolute top-1/2 transform -translate-y-1/2"
|
|
@@ -102,23 +105,23 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
102
105
|
},
|
|
103
106
|
size: {
|
|
104
107
|
small: {
|
|
105
|
-
input: "h-
|
|
106
|
-
unit: "h-
|
|
108
|
+
input: "h-7 px-3 py-1 paragraph-inter-12-regular rounded-8",
|
|
109
|
+
unit: "h-7 paragraph-inter-12-regular px-2 rounded-r-8 before:top-[calc(50%-6px)] before:h-[12px]",
|
|
107
110
|
rightIcon: "right-3"
|
|
108
111
|
},
|
|
109
112
|
medium: {
|
|
110
|
-
input: "h-
|
|
111
|
-
unit: "h-
|
|
113
|
+
input: "h-10 px-3.5 py-2 paragraph-inter-14-regular rounded-[10px]",
|
|
114
|
+
unit: "h-10 paragraph-inter-12-regular px-3 rounded-r-[10px] before:top-[calc(50%-12px)] before:h-6",
|
|
112
115
|
rightIcon: "right-4"
|
|
113
116
|
},
|
|
114
117
|
large: {
|
|
115
|
-
input: "h-
|
|
116
|
-
unit: "h-
|
|
118
|
+
input: "h-12 px-4 py-2 paragraph-inter-14-regular rounded-12",
|
|
119
|
+
unit: "h-12 paragraph-inter-12-regular pl-3 pr-4 rounded-r-12 before:top-[calc(50%-12px)] before:h-6",
|
|
117
120
|
rightIcon: "right-4"
|
|
118
121
|
},
|
|
119
122
|
"x-large": {
|
|
120
|
-
input: "h-
|
|
121
|
-
unit: "h-
|
|
123
|
+
input: "h-17 px-5 py-5 paragraph-inter-16-regular rounded-[14px]",
|
|
124
|
+
unit: "h-17 paragraph-inter-16-regular pl-3 pr-4 rounded-r-[14px] before:top-[calc(50%-12px)] before:h-6",
|
|
122
125
|
rightIcon: "right-4"
|
|
123
126
|
}
|
|
124
127
|
},
|
|
@@ -206,27 +209,6 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
206
209
|
/>
|
|
207
210
|
`;
|
|
208
211
|
}
|
|
209
|
-
labelTemplate() {
|
|
210
|
-
return x`
|
|
211
|
-
<label
|
|
212
|
-
for=${this.name}
|
|
213
|
-
class="heading-inter-14-bold text-neutral-20 pb-2 block"
|
|
214
|
-
>${this.label}</label
|
|
215
|
-
>
|
|
216
|
-
`;
|
|
217
|
-
}
|
|
218
|
-
descriptionTemplate() {
|
|
219
|
-
return x`
|
|
220
|
-
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
221
|
-
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
222
|
-
</div>
|
|
223
|
-
`;
|
|
224
|
-
}
|
|
225
|
-
errorTemplate() {
|
|
226
|
-
return x`<div class="paragraph-inter-12-regular text-red-65 pt-2">
|
|
227
|
-
${this.error}
|
|
228
|
-
</div>`;
|
|
229
|
-
}
|
|
230
212
|
unitTemplate(styles) {
|
|
231
213
|
return x`<div
|
|
232
214
|
class=${styles}
|
|
@@ -384,21 +366,26 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
384
366
|
}
|
|
385
367
|
render() {
|
|
386
368
|
const { wrapper, input, unit, rightIcon } = this.inputStyles({
|
|
387
|
-
hasError: this.error
|
|
369
|
+
hasError: !!this.error,
|
|
388
370
|
hasHighlight: this.hasHighlight,
|
|
389
371
|
borderless: this.borderless,
|
|
390
372
|
isReadonly: this.isReadonly,
|
|
391
373
|
isDisabled: this.isDisabled,
|
|
392
374
|
isFullWidth: this.isFullWidth,
|
|
393
|
-
hasUnit: this.unit
|
|
375
|
+
hasUnit: !!this.unit,
|
|
394
376
|
size: this.size,
|
|
395
|
-
hasRightIcon: this.rightIcon
|
|
377
|
+
hasRightIcon: !!this.rightIcon,
|
|
396
378
|
isRightIconClickable: this.isRightIconClickable
|
|
397
379
|
});
|
|
398
380
|
return x`
|
|
399
381
|
<div class="w-[inherit]">
|
|
400
|
-
|
|
401
|
-
|
|
382
|
+
<lukso-form-label
|
|
383
|
+
for-name=${this.name}
|
|
384
|
+
label=${this.label}
|
|
385
|
+
></lukso-form-label>
|
|
386
|
+
<lukso-form-description
|
|
387
|
+
description=${this.description}
|
|
388
|
+
></lukso-form-description>
|
|
402
389
|
<div class=${wrapper()}>
|
|
403
390
|
<div class="relative w-[inherit]">
|
|
404
391
|
${this.inputTemplate(input())}
|
|
@@ -406,7 +393,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
406
393
|
</div>
|
|
407
394
|
${this.unit ? this.unitTemplate(unit()) : E}
|
|
408
395
|
</div>
|
|
409
|
-
|
|
396
|
+
<lukso-form-error error=${this.error}></lukso-form-error>
|
|
410
397
|
</div>
|
|
411
398
|
`;
|
|
412
399
|
}
|
|
@@ -6,18 +6,12 @@ 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
|
/** Example of input with `unit`. */
|
|
16
12
|
export declare const Unit: any;
|
|
17
13
|
/** If you need input to take full width of the parent element add `is-full-width` property. */
|
|
18
14
|
export declare const FullWidth: any;
|
|
19
|
-
/** If you need input to be focused add `autofocus` property. */
|
|
20
|
-
export declare const Autofocus: any;
|
|
21
15
|
/** With `min` and `max` property you can specify minimum or maximum value that can be entered. It works with `number`, `range`, `date`, `datetime-local`, `month`, `time` and `week` input types */
|
|
22
16
|
export declare const MinMaxValue: any;
|
|
23
17
|
/** With `borderless` property you can render input without border. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/lukso-input.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,SAAS,CAAA;AAEhB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lukso-input.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/lukso-input.stories.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gCAAgC,CAAA;AAE1D,OAAO,SAAS,CAAA;AAEhB,+DAA+D;AAC/D,QAAA,MAAM,IAAI,EAAE,IAiSX,CAAA;AAED,eAAe,IAAI,CAAA;AAiEnB,8CAA8C;AAC9C,eAAO,MAAM,YAAY,KAAoB,CAAA;AAK7C,gDAAgD;AAChD,eAAO,MAAM,eAAe,KAAoB,CAAA;AAKhD,wEAAwE;AACxE,eAAO,MAAM,cAAc,KAAoB,CAAA;AAO/C,oCAAoC;AACpC,eAAO,MAAM,IAAI,KAAoB,CAAA;AAKrC,+FAA+F;AAC/F,eAAO,MAAM,SAAS,KAAoB,CAAA;AAK1C,oMAAoM;AACpM,eAAO,MAAM,WAAW,KAAoB,CAAA;AAO5C,sEAAsE;AACtE,eAAO,MAAM,UAAU,KAAoB,CAAA;AAM3C,qCAAqC;AACrC,eAAO,MAAM,KAAK,KAAoB,CAAA;AAKtC,gDAAgD;AAChD,eAAO,MAAM,SAAS,KAAoB,CAAA"}
|
|
@@ -2,9 +2,9 @@
|
|
|
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 components_luksoSanitize_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-vTOZ4l_5.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CtjlIm0J.cjs');
|
|
7
|
+
const components_luksoSanitize_index = require('../../index-DMRL6USt.cjs');
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* marked v16.2.1 - a markdown parser
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
3
|
-
import { p as purify, N as NO_HTML_TAGS_OPTIONS } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-BzYTn3KQ.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-Cz4DNr64.js';
|
|
3
|
+
import { p as purify, N as NO_HTML_TAGS_OPTIONS } from '../../index-BOwyGlSA.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* marked v16.2.1 - a markdown parser
|
|
@@ -2,9 +2,9 @@
|
|
|
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 query = require('../../query-EFiHeHdi.cjs');
|
|
9
9
|
const index = require('../../index-CaJky2qL.cjs');
|
|
10
10
|
require('../../tailwind-config.cjs');
|
|
@@ -14,10 +14,12 @@ require('../lukso-markdown/index.cjs');
|
|
|
14
14
|
require('../lukso-switch/index.cjs');
|
|
15
15
|
require('../lukso-button/index.cjs');
|
|
16
16
|
require('../lukso-icon/index.cjs');
|
|
17
|
-
require('../../index-
|
|
17
|
+
require('../../index-DMRL6USt.cjs');
|
|
18
18
|
require('../lukso-dropdown/index.cjs');
|
|
19
19
|
require('../lukso-dropdown-option/index.cjs');
|
|
20
20
|
require('../lukso-tooltip/index.cjs');
|
|
21
|
+
require('../lukso-form-label/index.cjs');
|
|
22
|
+
require('../lukso-form-description/index.cjs');
|
|
21
23
|
|
|
22
24
|
function mapAxeViolationToAccessibilityViolation(axeViolation) {
|
|
23
25
|
return {
|
|
@@ -314,7 +316,7 @@ exports.LuksoMarkdownEditor = class LuksoMarkdownEditor extends shared_tailwindE
|
|
|
314
316
|
};
|
|
315
317
|
this.styles = index.ce({
|
|
316
318
|
slots: {
|
|
317
|
-
wrapper: "w-[inherit]
|
|
319
|
+
wrapper: "w-[inherit]",
|
|
318
320
|
header: "flex items-center justify-between gap-2 border border-neutral-90 rounded-12 px-3 py-2 bg-neutral-100",
|
|
319
321
|
toolbar: "flex flex-wrap items-center gap-1",
|
|
320
322
|
area: "relative",
|
|
@@ -2132,16 +2134,6 @@ ${indent}${nextNumber}. `;
|
|
|
2132
2134
|
this.removeKeyboardListeners();
|
|
2133
2135
|
this.savedSelectionForPreview = null;
|
|
2134
2136
|
}
|
|
2135
|
-
labelTemplate() {
|
|
2136
|
-
return this.label ? shared_tailwindElement_index.x`<label class="heading-inter-14-bold text-neutral-20 block"
|
|
2137
|
-
>${this.label}</label
|
|
2138
|
-
>` : shared_tailwindElement_index.E;
|
|
2139
|
-
}
|
|
2140
|
-
descriptionTemplate() {
|
|
2141
|
-
return this.description ? shared_tailwindElement_index.x`<div class="paragraph-inter-12-regular text-neutral-20">
|
|
2142
|
-
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
2143
|
-
</div>` : shared_tailwindElement_index.E;
|
|
2144
|
-
}
|
|
2145
2137
|
/**
|
|
2146
2138
|
* Restore focus and selection to the textarea after toolbar interactions.
|
|
2147
2139
|
*/
|
|
@@ -2632,7 +2624,15 @@ ${indent}${nextNumber}. `;
|
|
|
2632
2624
|
}
|
|
2633
2625
|
return shared_tailwindElement_index.x`
|
|
2634
2626
|
<div class=${wrapper()}>
|
|
2635
|
-
|
|
2627
|
+
<div>
|
|
2628
|
+
<lukso-form-label
|
|
2629
|
+
for-name=${this.name}
|
|
2630
|
+
label=${this.label}
|
|
2631
|
+
></lukso-form-label>
|
|
2632
|
+
<lukso-form-description
|
|
2633
|
+
description=${this.description}
|
|
2634
|
+
></lukso-form-description>
|
|
2635
|
+
</div>
|
|
2636
2636
|
|
|
2637
2637
|
<div class="flex flex-col gap-2">
|
|
2638
2638
|
<div class=${header()}>
|
|
@@ -305,8 +305,6 @@ export declare class LuksoMarkdownEditor extends LuksoMarkdownEditor_base {
|
|
|
305
305
|
firstUpdated(changedProperties: PropertyValues): void;
|
|
306
306
|
updated(changedProperties: PropertyValues): void;
|
|
307
307
|
disconnectedCallback(): void;
|
|
308
|
-
private labelTemplate;
|
|
309
|
-
private descriptionTemplate;
|
|
310
308
|
/**
|
|
311
309
|
* Restore focus and selection to the textarea after toolbar interactions.
|
|
312
310
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAaxD,OAAO,6BAA6B,CAAA;AACpC,OAAO,6BAA6B,CAAA;AACpC,OAAO,2BAA2B,CAAA;AAClC,OAAO,2BAA2B,CAAA;AAClC,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;AACpC,OAAO,6BAA6B,CAAA;AACpC,OAAO,oCAAoC,CAAA;AAC3C,OAAO,4BAA4B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-markdown-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAA;AAaxD,OAAO,6BAA6B,CAAA;AACpC,OAAO,6BAA6B,CAAA;AACpC,OAAO,2BAA2B,CAAA;AAClC,OAAO,2BAA2B,CAAA;AAClC,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;AACpC,OAAO,6BAA6B,CAAA;AACpC,OAAO,oCAAoC,CAAA;AAC3C,OAAO,4BAA4B,CAAA;AACnC,OAAO,+BAA+B,CAAA;AACtC,OAAO,qCAAqC,CAAA;AAE5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAQ/C,qBACa,mBAAoB,SAAQ,wBAA4B;IAEnE,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,KAAK,SA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