@lukso/web-components 1.131.0 → 1.131.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +7 -7
- package/dist/components/index.js +7 -7
- 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 +3 -3
- package/dist/components/lukso-checkbox/index.js +3 -3
- package/dist/components/lukso-color-picker/index.cjs +4 -4
- package/dist/components/lukso-color-picker/index.js +4 -4
- 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-icon/index.cjs +3 -3
- package/dist/components/lukso-icon/index.js +3 -3
- 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 +4 -4
- package/dist/components/lukso-input/index.js +4 -4
- 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 +5 -5
- package/dist/components/lukso-navbar/index.js +5 -5
- package/dist/components/lukso-pagination/index.cjs +4 -4
- package/dist/components/lukso-pagination/index.js +4 -4
- package/dist/components/lukso-profile/index.cjs +5 -5
- package/dist/components/lukso-profile/index.js +5 -5
- package/dist/components/lukso-progress/index.cjs +3 -3
- package/dist/components/lukso-progress/index.js +3 -3
- package/dist/components/lukso-sanitize/index.cjs +2 -2
- package/dist/components/lukso-sanitize/index.js +2 -2
- package/dist/components/lukso-search/index.cjs +8 -8
- package/dist/components/lukso-search/index.js +8 -8
- package/dist/components/lukso-select/index.cjs +75 -75
- package/dist/components/lukso-select/index.js +75 -75
- package/dist/components/lukso-share/index.cjs +27 -24
- package/dist/components/lukso-share/index.js +27 -24
- package/dist/components/lukso-switch/index.cjs +50 -50
- package/dist/components/lukso-switch/index.js +50 -50
- package/dist/components/lukso-tag/index.cjs +35 -32
- package/dist/components/lukso-tag/index.js +35 -32
- package/dist/components/lukso-terms/index.cjs +10 -7
- package/dist/components/lukso-terms/index.js +10 -7
- package/dist/components/lukso-test/index.cjs +16 -13
- package/dist/components/lukso-test/index.js +16 -13
- package/dist/components/lukso-textarea/index.cjs +86 -83
- package/dist/components/lukso-textarea/index.js +86 -83
- package/dist/components/lukso-tooltip/index.cjs +38 -35
- package/dist/components/lukso-tooltip/index.js +38 -35
- 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 +45 -42
- package/dist/components/lukso-wizard/index.js +45 -42
- package/dist/{index-5387057e.js → index-1db9d1ee.js} +1 -1
- package/dist/{index-38990f38.js → index-2f05f181.js} +2 -2
- package/dist/{index-9ba001cb.js → index-35fd0f44.js} +53 -50
- package/dist/{index-2d057f81.js → index-44537fbb.js} +5 -3
- package/dist/{index-5df012eb.cjs → index-6bad7e66.cjs} +1 -1
- package/dist/{index-ba49f23a.cjs → index-96c96a31.cjs} +53 -50
- package/dist/{index-96bba619.cjs → index-b103f110.cjs} +5 -3
- package/dist/{index-9c39357d.cjs → index-dfcb5b8a.cjs} +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/dist/{property-5367c26a.js → property-27a56e78.js} +1 -1
- package/dist/{property-98f7e05b.cjs → property-e2dd6303.cjs} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-bdfaec36.js → state-cda0c5ee.js} +1 -1
- package/dist/{state-eba8ded5.cjs → state-e20739c9.cjs} +1 -1
- package/dist/{style-map-9e6bb4a6.js → style-map-d0cf7858.js} +1 -1
- package/dist/{style-map-b13b92c1.cjs → style-map-ff389c6a.cjs} +1 -1
- package/dist/styles/main.css +1 -0
- package/dist/styles/main.css.map +1 -1
- package/dist/tailwind-config.cjs +1 -1
- package/dist/tailwind-config.js +1 -1
- package/package.json +1 -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/colors.scss +1 -1
- package/tools/styles/main.css +1 -0
- package/tools/{tailwind-config-c5a676c5.js → tailwind-config-73222825.js} +1 -1
- package/tools/{tailwind-config-20125010.cjs → tailwind-config-d0ffa274.cjs} +1 -1
- package/tools/tailwind-config.cjs +1 -1
- package/tools/tailwind-config.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x, E } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { o } from '../../style-map-
|
|
1
|
+
import { a as TailwindElement, x, E } from '../../index-44537fbb.js';
|
|
2
|
+
import { n, t } from '../../property-27a56e78.js';
|
|
3
|
+
import { o } from '../../style-map-d0cf7858.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
5
|
import { u as uniqId } from '../../uniq-id-ce2d165c.js';
|
|
6
6
|
import '../lukso-sanitize/index.js';
|
|
@@ -19,14 +19,53 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
19
|
};
|
|
20
20
|
const DEFAULT_COLOR = "green-54";
|
|
21
21
|
let LuksoSwitch = class extends TailwindElement {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
this.color = DEFAULT_COLOR;
|
|
25
|
+
this.id = "";
|
|
26
|
+
this.name = "switch";
|
|
27
|
+
this.label = "";
|
|
28
|
+
this.description = "";
|
|
29
|
+
this.error = "";
|
|
30
|
+
this.isChecked = false;
|
|
31
|
+
this.isDisabled = false;
|
|
32
|
+
this.styles = ce({
|
|
33
|
+
slots: {
|
|
34
|
+
label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
|
|
35
|
+
input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
|
|
36
|
+
},
|
|
37
|
+
variants: {
|
|
38
|
+
isChecked: {
|
|
39
|
+
true: {
|
|
40
|
+
input: "translate-x-4"
|
|
41
|
+
},
|
|
42
|
+
false: {
|
|
43
|
+
label: "bg-neutral-90",
|
|
44
|
+
input: "border-neutral-90"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
isDisabled: {
|
|
48
|
+
true: {
|
|
49
|
+
label: "opacity-70 cursor-not-allowed",
|
|
50
|
+
input: "cursor-not-allowed"
|
|
51
|
+
},
|
|
52
|
+
false: {
|
|
53
|
+
label: "cursor-pointer",
|
|
54
|
+
input: "cursor-pointer"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
hasError: {
|
|
58
|
+
true: {
|
|
59
|
+
label: "!bg-red-65",
|
|
60
|
+
input: "!border-red-65"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
if (!this.id) {
|
|
66
|
+
this.id = `switch-${uniqId()}`;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
30
69
|
async handleChange(event) {
|
|
31
70
|
const target = event.target;
|
|
32
71
|
await this.updateComplete;
|
|
@@ -40,45 +79,6 @@ let LuksoSwitch = class extends TailwindElement {
|
|
|
40
79
|
});
|
|
41
80
|
this.dispatchEvent(changeEvent);
|
|
42
81
|
}
|
|
43
|
-
constructor() {
|
|
44
|
-
super();
|
|
45
|
-
if (!this.id) {
|
|
46
|
-
this.id = `switch-${uniqId()}`;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
styles = ce({
|
|
50
|
-
slots: {
|
|
51
|
-
label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
|
|
52
|
-
input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
|
|
53
|
-
},
|
|
54
|
-
variants: {
|
|
55
|
-
isChecked: {
|
|
56
|
-
true: {
|
|
57
|
-
input: "translate-x-4"
|
|
58
|
-
},
|
|
59
|
-
false: {
|
|
60
|
-
label: "bg-neutral-90",
|
|
61
|
-
input: "border-neutral-90"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
isDisabled: {
|
|
65
|
-
true: {
|
|
66
|
-
label: "opacity-70 cursor-not-allowed",
|
|
67
|
-
input: "cursor-not-allowed"
|
|
68
|
-
},
|
|
69
|
-
false: {
|
|
70
|
-
label: "cursor-pointer",
|
|
71
|
-
input: "cursor-pointer"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
hasError: {
|
|
75
|
-
true: {
|
|
76
|
-
label: "!bg-red-65",
|
|
77
|
-
input: "!border-red-65"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
82
|
labelTemplate() {
|
|
83
83
|
return x`
|
|
84
84
|
<div
|
|
@@ -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 property = require('../../property-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
7
|
const index = require('../../index-2b104ecb.cjs');
|
|
8
|
-
const index$1 = require('../../index-
|
|
8
|
+
const index$1 = require('../../index-6bad7e66.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
11
11
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -22,36 +22,39 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
22
22
|
return result;
|
|
23
23
|
};
|
|
24
24
|
exports.LuksoTag = class LuksoTag extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.size = "small";
|
|
28
|
+
this.isRounded = false;
|
|
29
|
+
this.backgroundColor = "";
|
|
30
|
+
this.borderColor = "";
|
|
31
|
+
this.textColor = "";
|
|
32
|
+
this.tagStyles = index.ce({
|
|
33
|
+
base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
|
|
34
|
+
variants: {
|
|
35
|
+
size: {
|
|
36
|
+
"x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
|
|
37
|
+
small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
|
|
38
|
+
large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
|
|
39
|
+
},
|
|
40
|
+
isRounded: {
|
|
41
|
+
true: "rounded-[56px]"
|
|
42
|
+
}
|
|
37
43
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
]
|
|
54
|
-
});
|
|
44
|
+
compoundVariants: [
|
|
45
|
+
{
|
|
46
|
+
size: "small",
|
|
47
|
+
isRounded: true,
|
|
48
|
+
class: "px-3"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
size: "x-small",
|
|
52
|
+
isRounded: true,
|
|
53
|
+
class: "px-2"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
});
|
|
57
|
+
}
|
|
55
58
|
resolveBorderColor() {
|
|
56
59
|
if (this.borderColor) {
|
|
57
60
|
return this.borderColor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-44537fbb.js';
|
|
2
|
+
import { n, t } from '../../property-27a56e78.js';
|
|
3
3
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
4
|
-
import { c as customStyleMap } from '../../index-
|
|
4
|
+
import { c as customStyleMap } from '../../index-1db9d1ee.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
7
7
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -18,36 +18,39 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
18
18
|
return result;
|
|
19
19
|
};
|
|
20
20
|
let LuksoTag = class extends TailwindStyledElement(style) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
this.size = "small";
|
|
24
|
+
this.isRounded = false;
|
|
25
|
+
this.backgroundColor = "";
|
|
26
|
+
this.borderColor = "";
|
|
27
|
+
this.textColor = "";
|
|
28
|
+
this.tagStyles = ce({
|
|
29
|
+
base: "inline-flex items-center justify-center border border-neutral-20 text-neutral-20 px-2 whitespace-nowrap",
|
|
30
|
+
variants: {
|
|
31
|
+
size: {
|
|
32
|
+
"x-small": "font-inter text-8 font-500 leading-20 h-[20px] px-1 rounded-4",
|
|
33
|
+
small: "paragraph-inter-12-medium h-[28px] px-2 rounded-8",
|
|
34
|
+
large: "paragraph-inter-14-medium h-[34px] px-4 rounded-8"
|
|
35
|
+
},
|
|
36
|
+
isRounded: {
|
|
37
|
+
true: "rounded-[56px]"
|
|
38
|
+
}
|
|
33
39
|
},
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
});
|
|
40
|
+
compoundVariants: [
|
|
41
|
+
{
|
|
42
|
+
size: "small",
|
|
43
|
+
isRounded: true,
|
|
44
|
+
class: "px-3"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
size: "x-small",
|
|
48
|
+
isRounded: true,
|
|
49
|
+
class: "px-2"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
51
54
|
resolveBorderColor() {
|
|
52
55
|
if (this.borderColor) {
|
|
53
56
|
return this.borderColor;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
|
+
const state = require('../../state-e20739c9.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-sanitize/index.cjs');
|
|
11
11
|
require('../../directive-8278ab14.cjs');
|
|
12
|
-
require('../../style-map-
|
|
12
|
+
require('../../style-map-ff389c6a.cjs');
|
|
13
13
|
|
|
14
14
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
15
15
|
|
|
@@ -25,11 +25,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
25
25
|
return result;
|
|
26
26
|
};
|
|
27
27
|
exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
constructor() {
|
|
29
|
+
super(...arguments);
|
|
30
|
+
this.text = "";
|
|
31
|
+
this.hasScrollButton = true;
|
|
32
|
+
this.defaultStyles = `h-[56px] w-full sticky bottom-0 -mt-[56px]
|
|
31
33
|
bg-gradient-to-b from-transparent to-neutral-100/80
|
|
32
34
|
flex justify-center transition-opacity opacity-0`;
|
|
35
|
+
}
|
|
33
36
|
onScrollBottom() {
|
|
34
37
|
const event = new CustomEvent("on-bottom-scroll", {
|
|
35
38
|
bubbles: true,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-44537fbb.js';
|
|
2
|
+
import { n, t } from '../../property-27a56e78.js';
|
|
3
|
+
import { r } from '../../state-cda0c5ee.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-sanitize/index.js';
|
|
7
7
|
import '../../directive-2bb7789e.js';
|
|
8
|
-
import '../../style-map-
|
|
8
|
+
import '../../style-map-d0cf7858.js';
|
|
9
9
|
|
|
10
10
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
11
11
|
|
|
@@ -21,11 +21,14 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
21
21
|
return result;
|
|
22
22
|
};
|
|
23
23
|
let LuksoTerms = class extends TailwindStyledElement(style) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
constructor() {
|
|
25
|
+
super(...arguments);
|
|
26
|
+
this.text = "";
|
|
27
|
+
this.hasScrollButton = true;
|
|
28
|
+
this.defaultStyles = `h-[56px] w-full sticky bottom-0 -mt-[56px]
|
|
27
29
|
bg-gradient-to-b from-transparent to-neutral-100/80
|
|
28
30
|
flex justify-center transition-opacity opacity-0`;
|
|
31
|
+
}
|
|
29
32
|
onScrollBottom() {
|
|
30
33
|
const event = new CustomEvent("on-bottom-scroll", {
|
|
31
34
|
bubbles: 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 property = require('../../property-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -56,18 +56,21 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
56
56
|
return result;
|
|
57
57
|
};
|
|
58
58
|
exports.LuksoTest = class LuksoTest extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
constructor() {
|
|
60
|
+
super(...arguments);
|
|
61
|
+
this.name = "World";
|
|
62
|
+
this.clicked = false;
|
|
63
|
+
this.disabled = false;
|
|
64
|
+
this.duration = 1e3;
|
|
65
|
+
this.controller = new t(this, {
|
|
66
|
+
defaultOptions: {
|
|
67
|
+
keyframeOptions: {
|
|
68
|
+
duration: this.duration,
|
|
69
|
+
fill: "backwards"
|
|
70
|
+
}
|
|
68
71
|
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
71
74
|
_onClick() {
|
|
72
75
|
if (this.disabled) {
|
|
73
76
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-
|
|
2
|
-
import { n as n$3, t as t$4 } from '../../property-
|
|
1
|
+
import { b as T$1, T as TailwindStyledElement, x as x$1 } from '../../index-44537fbb.js';
|
|
2
|
+
import { n as n$3, t as t$4 } from '../../property-27a56e78.js';
|
|
3
3
|
import { e as e$3, i as i$3, t as t$3 } from '../../directive-2bb7789e.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -52,18 +52,21 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
52
52
|
return result;
|
|
53
53
|
};
|
|
54
54
|
let LuksoTest = class extends TailwindStyledElement(style) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
55
|
+
constructor() {
|
|
56
|
+
super(...arguments);
|
|
57
|
+
this.name = "World";
|
|
58
|
+
this.clicked = false;
|
|
59
|
+
this.disabled = false;
|
|
60
|
+
this.duration = 1e3;
|
|
61
|
+
this.controller = new t(this, {
|
|
62
|
+
defaultOptions: {
|
|
63
|
+
keyframeOptions: {
|
|
64
|
+
duration: this.duration,
|
|
65
|
+
fill: "backwards"
|
|
66
|
+
}
|
|
64
67
|
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
68
|
+
});
|
|
69
|
+
}
|
|
67
70
|
_onClick() {
|
|
68
71
|
if (this.disabled) {
|
|
69
72
|
return;
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
|
+
const state = require('../../state-e20739c9.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
9
|
require('../../tailwind-config.cjs');
|
|
10
10
|
const cn = require('../../cn-b6daa995.cjs');
|
|
11
11
|
require('../lukso-icon/index.cjs');
|
|
12
12
|
require('../lukso-sanitize/index.cjs');
|
|
13
|
-
require('../../style-map-
|
|
13
|
+
require('../../style-map-ff389c6a.cjs');
|
|
14
14
|
require('../../directive-8278ab14.cjs');
|
|
15
15
|
|
|
16
16
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
@@ -28,92 +28,95 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
28
28
|
};
|
|
29
29
|
const FOCUS_DELAY_MS = 10;
|
|
30
30
|
exports.LuksoTextarea = class LuksoTextarea extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
31
|
+
constructor() {
|
|
32
|
+
super(...arguments);
|
|
33
|
+
this.value = "";
|
|
34
|
+
this.name = "";
|
|
35
|
+
this.placeholder = "";
|
|
36
|
+
this.label = "";
|
|
37
|
+
this.id = "";
|
|
38
|
+
this.ref = void 0;
|
|
39
|
+
this.description = "";
|
|
40
|
+
this.error = "";
|
|
41
|
+
this.customClass = "";
|
|
42
|
+
this.isFullWidth = false;
|
|
43
|
+
this.isReadonly = false;
|
|
44
|
+
this.isDisabled = false;
|
|
45
|
+
this.autofocus = false;
|
|
46
|
+
this.borderless = false;
|
|
47
|
+
this.isNonResizable = false;
|
|
48
|
+
this.keepFocusOnEscape = false;
|
|
49
|
+
this.size = "medium";
|
|
50
|
+
this.rows = 4;
|
|
51
|
+
this.hasFocus = false;
|
|
52
|
+
this.hasHighlight = false;
|
|
53
|
+
this.styles = index.ce({
|
|
54
|
+
slots: {
|
|
55
|
+
wrapper: "group flex",
|
|
56
|
+
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
55
57
|
outline-none transition transition-all duration-150 appearance-none`
|
|
56
|
-
},
|
|
57
|
-
variants: {
|
|
58
|
-
hasError: {
|
|
59
|
-
true: {
|
|
60
|
-
input: "border-red-85"
|
|
61
|
-
},
|
|
62
|
-
false: {
|
|
63
|
-
input: "border-neutral-90"
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
hasHighlight: {
|
|
67
|
-
true: {
|
|
68
|
-
input: "border-neutral-35"
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
borderless: {
|
|
72
|
-
true: { input: "border-0" },
|
|
73
|
-
false: { input: "border" }
|
|
74
|
-
},
|
|
75
|
-
isReadonly: {
|
|
76
|
-
true: { input: "cursor-not-allowed" }
|
|
77
58
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
59
|
+
variants: {
|
|
60
|
+
hasError: {
|
|
61
|
+
true: {
|
|
62
|
+
input: "border-red-85"
|
|
63
|
+
},
|
|
64
|
+
false: {
|
|
65
|
+
input: "border-neutral-90"
|
|
66
|
+
}
|
|
81
67
|
},
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
false: { wrapper: "w-[350px]" }
|
|
87
|
-
},
|
|
88
|
-
size: {
|
|
89
|
-
small: {
|
|
90
|
-
input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
|
|
68
|
+
hasHighlight: {
|
|
69
|
+
true: {
|
|
70
|
+
input: "border-neutral-35"
|
|
71
|
+
}
|
|
91
72
|
},
|
|
92
|
-
|
|
93
|
-
input: "
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
73
|
+
borderless: {
|
|
74
|
+
true: { input: "border-0" },
|
|
75
|
+
false: { input: "border" }
|
|
76
|
+
},
|
|
77
|
+
isReadonly: {
|
|
78
|
+
true: { input: "cursor-not-allowed" }
|
|
79
|
+
},
|
|
80
|
+
isDisabled: {
|
|
81
|
+
true: {
|
|
82
|
+
input: "text-neutral-60 cursor-not-allowed"
|
|
83
|
+
},
|
|
84
|
+
false: { input: "text-neutral-20" }
|
|
85
|
+
},
|
|
86
|
+
isFullWidth: {
|
|
87
|
+
true: { wrapper: "w-full" },
|
|
88
|
+
false: { wrapper: "w-[350px]" }
|
|
89
|
+
},
|
|
90
|
+
size: {
|
|
91
|
+
small: {
|
|
92
|
+
input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
|
|
93
|
+
},
|
|
94
|
+
medium: {
|
|
95
|
+
input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
isNonResizable: {
|
|
99
|
+
true: {
|
|
100
|
+
input: "resize-none"
|
|
101
|
+
}
|
|
99
102
|
}
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
compoundVariants: [
|
|
103
|
-
{
|
|
104
|
-
isFullWidth: false,
|
|
105
|
-
size: "small",
|
|
106
|
-
class: { wrapper: "w-[210px]" }
|
|
107
103
|
},
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
104
|
+
compoundVariants: [
|
|
105
|
+
{
|
|
106
|
+
isFullWidth: false,
|
|
107
|
+
size: "small",
|
|
108
|
+
class: { wrapper: "w-[210px]" }
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
hasHighlight: true,
|
|
112
|
+
hasError: true,
|
|
113
|
+
class: {
|
|
114
|
+
input: "border-red-65"
|
|
115
|
+
}
|
|
113
116
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
}
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
}
|
|
117
120
|
connectedCallback() {
|
|
118
121
|
super.connectedCallback();
|
|
119
122
|
if (this.autofocus) {
|