@lukso/web-components 1.128.0 → 1.130.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 +6 -6
- package/dist/components/index.js +6 -6
- 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 +6 -5
- package/dist/components/lukso-color-picker/index.d.ts.map +1 -1
- package/dist/components/lukso-color-picker/index.js +6 -5
- package/dist/components/lukso-dropdown/index.cjs +8 -14
- package/dist/components/lukso-dropdown/index.d.ts +1 -1
- package/dist/components/lukso-dropdown/index.d.ts.map +1 -1
- package/dist/components/lukso-dropdown/index.js +8 -14
- package/dist/components/lukso-dropdown-option/index.cjs +3 -9
- package/dist/components/lukso-dropdown-option/index.d.ts +1 -1
- package/dist/components/lukso-dropdown-option/index.d.ts.map +1 -1
- package/dist/components/lukso-dropdown-option/index.js +3 -9
- 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 +18 -17
- package/dist/components/lukso-input/index.d.ts +1 -1
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +18 -17
- package/dist/components/lukso-input/lukso-input.stories.d.ts.map +1 -1
- package/dist/components/lukso-modal/index.cjs +14 -10
- package/dist/components/lukso-modal/index.d.ts.map +1 -1
- package/dist/components/lukso-modal/index.js +14 -10
- 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 +64 -21
- package/dist/components/lukso-search/index.d.ts +11 -3
- package/dist/components/lukso-search/index.d.ts.map +1 -1
- package/dist/components/lukso-search/index.js +64 -21
- package/dist/components/lukso-search/lukso-search.stories.d.ts +1 -0
- package/dist/components/lukso-search/lukso-search.stories.d.ts.map +1 -1
- package/dist/components/lukso-select/index.cjs +76 -75
- package/dist/components/lukso-select/index.d.ts.map +1 -1
- package/dist/components/lukso-select/index.js +76 -75
- package/dist/components/lukso-share/index.cjs +24 -27
- package/dist/components/lukso-share/index.js +24 -27
- package/dist/components/lukso-switch/index.cjs +52 -51
- package/dist/components/lukso-switch/index.d.ts.map +1 -1
- package/dist/components/lukso-switch/index.js +52 -51
- package/dist/components/lukso-tag/index.cjs +32 -35
- package/dist/components/lukso-tag/index.js +32 -35
- package/dist/components/lukso-terms/index.cjs +7 -10
- package/dist/components/lukso-terms/index.js +7 -10
- package/dist/components/lukso-test/index.cjs +13 -16
- package/dist/components/lukso-test/index.js +13 -16
- package/dist/components/lukso-textarea/index.cjs +85 -87
- package/dist/components/lukso-textarea/index.d.ts.map +1 -1
- package/dist/components/lukso-textarea/index.js +85 -87
- package/dist/components/lukso-tooltip/index.cjs +35 -38
- package/dist/components/lukso-tooltip/index.js +35 -38
- package/dist/components/lukso-username/index.cjs +50 -53
- package/dist/components/lukso-username/index.js +50 -53
- package/dist/components/lukso-wizard/index.cjs +42 -45
- package/dist/components/lukso-wizard/index.js +42 -45
- package/dist/{index-323568a1.js → index-11b4b329.js} +1 -1
- package/dist/index-1fd569a9.cjs +46 -0
- package/dist/{index-541282c1.cjs → index-2f5d5d79.cjs} +2 -2
- package/dist/index-82b4fdeb.js +37 -0
- package/dist/{index-664bbe9a.cjs → index-8eb2e6d8.cjs} +1 -1
- package/dist/{index-efc0c2e6.js → index-de036f63.js} +2 -2
- package/dist/index.cjs +6 -6
- package/dist/index.js +6 -6
- package/dist/{property-cba034d3.cjs → property-7a90cede.cjs} +1 -1
- package/dist/{property-6d71df6f.js → property-cfc5fabd.js} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-dd655282.cjs → state-09b048f8.cjs} +1 -1
- package/dist/{state-a4d47754.js → state-1aaee2b7.js} +1 -1
- package/dist/{style-map-41455c7b.cjs → style-map-2abffb39.cjs} +1 -1
- package/dist/{style-map-745a1d23.js → style-map-c8670fc8.js} +1 -1
- package/package.json +1 -1
- package/tools/sass/colors.scss +1 -0
- package/dist/index-4145c314.cjs +0 -48
- package/dist/index-a09c053e.js +0 -39
|
@@ -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-1fd569a9.cjs');
|
|
6
|
+
const property = require('../../property-7a90cede.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -56,21 +56,18 @@ 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
|
-
|
|
68
|
-
duration: this.duration,
|
|
69
|
-
fill: "backwards"
|
|
70
|
-
}
|
|
59
|
+
name = "World";
|
|
60
|
+
clicked = false;
|
|
61
|
+
disabled = false;
|
|
62
|
+
duration = 1e3;
|
|
63
|
+
controller = new t(this, {
|
|
64
|
+
defaultOptions: {
|
|
65
|
+
keyframeOptions: {
|
|
66
|
+
duration: this.duration,
|
|
67
|
+
fill: "backwards"
|
|
71
68
|
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
74
71
|
_onClick() {
|
|
75
72
|
if (this.disabled) {
|
|
76
73
|
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-82b4fdeb.js';
|
|
2
|
+
import { n as n$3, t as t$4 } from '../../property-cfc5fabd.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,21 +52,18 @@ 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
|
-
|
|
64
|
-
duration: this.duration,
|
|
65
|
-
fill: "backwards"
|
|
66
|
-
}
|
|
55
|
+
name = "World";
|
|
56
|
+
clicked = false;
|
|
57
|
+
disabled = false;
|
|
58
|
+
duration = 1e3;
|
|
59
|
+
controller = new t(this, {
|
|
60
|
+
defaultOptions: {
|
|
61
|
+
keyframeOptions: {
|
|
62
|
+
duration: this.duration,
|
|
63
|
+
fill: "backwards"
|
|
67
64
|
}
|
|
68
|
-
}
|
|
69
|
-
}
|
|
65
|
+
}
|
|
66
|
+
});
|
|
70
67
|
_onClick() {
|
|
71
68
|
if (this.disabled) {
|
|
72
69
|
return;
|
|
@@ -2,14 +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-1fd569a9.cjs');
|
|
6
|
+
const property = require('../../property-7a90cede.cjs');
|
|
7
|
+
const state = require('../../state-09b048f8.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
|
-
require('
|
|
12
|
+
require('../lukso-sanitize/index.cjs');
|
|
13
|
+
require('../../style-map-2abffb39.cjs');
|
|
13
14
|
require('../../directive-8278ab14.cjs');
|
|
14
15
|
|
|
15
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}";
|
|
@@ -27,95 +28,92 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
27
28
|
};
|
|
28
29
|
const FOCUS_DELAY_MS = 10;
|
|
29
30
|
exports.LuksoTextarea = class LuksoTextarea extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
wrapper: "group flex",
|
|
55
|
-
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
31
|
+
value = "";
|
|
32
|
+
name = "";
|
|
33
|
+
placeholder = "";
|
|
34
|
+
label = "";
|
|
35
|
+
id = "";
|
|
36
|
+
ref = void 0;
|
|
37
|
+
description = "";
|
|
38
|
+
error = "";
|
|
39
|
+
customClass = "";
|
|
40
|
+
isFullWidth = false;
|
|
41
|
+
isReadonly = false;
|
|
42
|
+
isDisabled = false;
|
|
43
|
+
autofocus = false;
|
|
44
|
+
borderless = false;
|
|
45
|
+
isNonResizable = false;
|
|
46
|
+
keepFocusOnEscape = false;
|
|
47
|
+
size = "medium";
|
|
48
|
+
rows = 4;
|
|
49
|
+
hasFocus = false;
|
|
50
|
+
hasHighlight = false;
|
|
51
|
+
styles = index.ce({
|
|
52
|
+
slots: {
|
|
53
|
+
wrapper: "group flex",
|
|
54
|
+
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
56
55
|
outline-none transition transition-all duration-150 appearance-none`
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
false: {
|
|
64
|
-
input: "border-neutral-90"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
hasHighlight: {
|
|
68
|
-
true: {
|
|
69
|
-
input: "border-neutral-35"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
borderless: {
|
|
73
|
-
true: { input: "border-0" },
|
|
74
|
-
false: { input: "border" }
|
|
56
|
+
},
|
|
57
|
+
variants: {
|
|
58
|
+
hasError: {
|
|
59
|
+
true: {
|
|
60
|
+
input: "border-red-85"
|
|
75
61
|
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
+
},
|
|
78
|
+
isDisabled: {
|
|
79
|
+
true: {
|
|
80
|
+
input: "text-neutral-60 cursor-not-allowed"
|
|
88
81
|
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
82
|
+
false: { input: "text-neutral-20" }
|
|
83
|
+
},
|
|
84
|
+
isFullWidth: {
|
|
85
|
+
true: { wrapper: "w-full" },
|
|
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"
|
|
96
91
|
},
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
input: "resize-none"
|
|
100
|
-
}
|
|
92
|
+
medium: {
|
|
93
|
+
input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
|
|
101
94
|
}
|
|
102
95
|
},
|
|
103
|
-
|
|
104
|
-
{
|
|
105
|
-
|
|
106
|
-
size: "small",
|
|
107
|
-
class: { wrapper: "w-[210px]" }
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
hasHighlight: true,
|
|
111
|
-
hasError: true,
|
|
112
|
-
class: {
|
|
113
|
-
input: "border-red-65"
|
|
114
|
-
}
|
|
96
|
+
isNonResizable: {
|
|
97
|
+
true: {
|
|
98
|
+
input: "resize-none"
|
|
115
99
|
}
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
compoundVariants: [
|
|
103
|
+
{
|
|
104
|
+
isFullWidth: false,
|
|
105
|
+
size: "small",
|
|
106
|
+
class: { wrapper: "w-[210px]" }
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
hasHighlight: true,
|
|
110
|
+
hasError: true,
|
|
111
|
+
class: {
|
|
112
|
+
input: "border-red-65"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
});
|
|
119
117
|
connectedCallback() {
|
|
120
118
|
super.connectedCallback();
|
|
121
119
|
if (this.autofocus) {
|
|
@@ -165,7 +163,7 @@ ${this.value}</textarea
|
|
|
165
163
|
descriptionTemplate() {
|
|
166
164
|
return shared_tailwindElement_index.x`
|
|
167
165
|
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
168
|
-
|
|
166
|
+
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
169
167
|
</div>
|
|
170
168
|
`;
|
|
171
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-textarea/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-textarea/index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;AAGpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAI/C,qBACa,aAAc,SAAQ,kBAA4B;IAE7D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,UAAU,UAAQ;IAGlB,cAAc,UAAQ;IAGtB,iBAAiB,UAAQ;IAGzB,IAAI,EAAE,SAAS,CAAW;IAG1B,IAAI,SAAI;IAGR,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,MAAM,CAiEZ;IAEF,iBAAiB;IAWjB,aAAa,CAAC,MAAM,EAAE,MAAM;IA6B5B,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,OAAO,CAAC,WAAW;YAOL,UAAU;YAgBV,YAAY;YAcZ,WAAW;YAeX,WAAW;YAmBX,aAAa;YAcb,cAAc;IAc5B,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,cAAc;YAMR,gBAAgB;IAc9B,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, E } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { T as TailwindStyledElement, x, E } from '../../index-82b4fdeb.js';
|
|
2
|
+
import { n, t } from '../../property-cfc5fabd.js';
|
|
3
|
+
import { r } from '../../state-1aaee2b7.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
5
|
import '../../tailwind-config.js';
|
|
6
6
|
import { c as cn } from '../../cn-90c03edf.js';
|
|
7
7
|
import '../lukso-icon/index.js';
|
|
8
|
-
import '
|
|
8
|
+
import '../lukso-sanitize/index.js';
|
|
9
|
+
import '../../style-map-c8670fc8.js';
|
|
9
10
|
import '../../directive-2bb7789e.js';
|
|
10
11
|
|
|
11
12
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
@@ -23,95 +24,92 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
23
24
|
};
|
|
24
25
|
const FOCUS_DELAY_MS = 10;
|
|
25
26
|
let LuksoTextarea = class extends TailwindStyledElement(style) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
wrapper: "group flex",
|
|
51
|
-
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
27
|
+
value = "";
|
|
28
|
+
name = "";
|
|
29
|
+
placeholder = "";
|
|
30
|
+
label = "";
|
|
31
|
+
id = "";
|
|
32
|
+
ref = void 0;
|
|
33
|
+
description = "";
|
|
34
|
+
error = "";
|
|
35
|
+
customClass = "";
|
|
36
|
+
isFullWidth = false;
|
|
37
|
+
isReadonly = false;
|
|
38
|
+
isDisabled = false;
|
|
39
|
+
autofocus = false;
|
|
40
|
+
borderless = false;
|
|
41
|
+
isNonResizable = false;
|
|
42
|
+
keepFocusOnEscape = false;
|
|
43
|
+
size = "medium";
|
|
44
|
+
rows = 4;
|
|
45
|
+
hasFocus = false;
|
|
46
|
+
hasHighlight = false;
|
|
47
|
+
styles = ce({
|
|
48
|
+
slots: {
|
|
49
|
+
wrapper: "group flex",
|
|
50
|
+
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
52
51
|
outline-none transition transition-all duration-150 appearance-none`
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
false: {
|
|
60
|
-
input: "border-neutral-90"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
hasHighlight: {
|
|
64
|
-
true: {
|
|
65
|
-
input: "border-neutral-35"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
borderless: {
|
|
69
|
-
true: { input: "border-0" },
|
|
70
|
-
false: { input: "border" }
|
|
52
|
+
},
|
|
53
|
+
variants: {
|
|
54
|
+
hasError: {
|
|
55
|
+
true: {
|
|
56
|
+
input: "border-red-85"
|
|
71
57
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
58
|
+
false: {
|
|
59
|
+
input: "border-neutral-90"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
hasHighlight: {
|
|
63
|
+
true: {
|
|
64
|
+
input: "border-neutral-35"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
borderless: {
|
|
68
|
+
true: { input: "border-0" },
|
|
69
|
+
false: { input: "border" }
|
|
70
|
+
},
|
|
71
|
+
isReadonly: {
|
|
72
|
+
true: { input: "cursor-not-allowed" }
|
|
73
|
+
},
|
|
74
|
+
isDisabled: {
|
|
75
|
+
true: {
|
|
76
|
+
input: "text-neutral-60 cursor-not-allowed"
|
|
84
77
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
78
|
+
false: { input: "text-neutral-20" }
|
|
79
|
+
},
|
|
80
|
+
isFullWidth: {
|
|
81
|
+
true: { wrapper: "w-full" },
|
|
82
|
+
false: { wrapper: "w-[350px]" }
|
|
83
|
+
},
|
|
84
|
+
size: {
|
|
85
|
+
small: {
|
|
86
|
+
input: "min-h-[28px] px-2 py-1 paragraph-inter-12-regular rounded-8"
|
|
92
87
|
},
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
input: "resize-none"
|
|
96
|
-
}
|
|
88
|
+
medium: {
|
|
89
|
+
input: "min-h-[48px] px-4 py-3 paragraph-inter-14-regular rounded-12"
|
|
97
90
|
}
|
|
98
91
|
},
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
-
|
|
102
|
-
size: "small",
|
|
103
|
-
class: { wrapper: "w-[210px]" }
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
hasHighlight: true,
|
|
107
|
-
hasError: true,
|
|
108
|
-
class: {
|
|
109
|
-
input: "border-red-65"
|
|
110
|
-
}
|
|
92
|
+
isNonResizable: {
|
|
93
|
+
true: {
|
|
94
|
+
input: "resize-none"
|
|
111
95
|
}
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
compoundVariants: [
|
|
99
|
+
{
|
|
100
|
+
isFullWidth: false,
|
|
101
|
+
size: "small",
|
|
102
|
+
class: { wrapper: "w-[210px]" }
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
hasHighlight: true,
|
|
106
|
+
hasError: true,
|
|
107
|
+
class: {
|
|
108
|
+
input: "border-red-65"
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
});
|
|
115
113
|
connectedCallback() {
|
|
116
114
|
super.connectedCallback();
|
|
117
115
|
if (this.autofocus) {
|
|
@@ -161,7 +159,7 @@ ${this.value}</textarea
|
|
|
161
159
|
descriptionTemplate() {
|
|
162
160
|
return x`
|
|
163
161
|
<div class="paragraph-inter-12-regular text-neutral-20 pb-2">
|
|
164
|
-
|
|
162
|
+
<lukso-sanitize html-content=${this.description}></lukso-sanitize>
|
|
165
163
|
</div>
|
|
166
164
|
`;
|
|
167
165
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
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-1fd569a9.cjs');
|
|
6
|
+
const property = require('../../property-7a90cede.cjs');
|
|
7
|
+
const state = require('../../state-09b048f8.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
|
-
const styleMap = require('../../style-map-
|
|
9
|
+
const styleMap = require('../../style-map-2abffb39.cjs');
|
|
10
10
|
require('../../directive-8278ab14.cjs');
|
|
11
11
|
|
|
12
12
|
var top = 'top';
|
|
@@ -3460,42 +3460,39 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
3460
3460
|
return result;
|
|
3461
3461
|
};
|
|
3462
3462
|
exports.LuksoTooltip = class LuksoTooltip extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
true: {
|
|
3493
|
-
trigger: "cursor-default"
|
|
3494
|
-
}
|
|
3463
|
+
variant = "light";
|
|
3464
|
+
size = "medium";
|
|
3465
|
+
placement = "top";
|
|
3466
|
+
trigger = "mouseenter";
|
|
3467
|
+
text = "";
|
|
3468
|
+
maxWidth = 300;
|
|
3469
|
+
show = false;
|
|
3470
|
+
hideOnClick = "true";
|
|
3471
|
+
isClipboardCopy = false;
|
|
3472
|
+
copyText = "";
|
|
3473
|
+
copyValue = "";
|
|
3474
|
+
offset = 10;
|
|
3475
|
+
options = "";
|
|
3476
|
+
showArrow = true;
|
|
3477
|
+
showDelay = 300;
|
|
3478
|
+
hideDelay = 300;
|
|
3479
|
+
showCopy = false;
|
|
3480
|
+
optionsParsed = [];
|
|
3481
|
+
tooltipInstance = void 0;
|
|
3482
|
+
styles = index.ce({
|
|
3483
|
+
slots: {
|
|
3484
|
+
tooltip: "hidden",
|
|
3485
|
+
trigger: "cursor-pointer flex flex-col items-center",
|
|
3486
|
+
options: "rounded-4 hover:bg-neutral-95"
|
|
3487
|
+
},
|
|
3488
|
+
variants: {
|
|
3489
|
+
hasNoText: {
|
|
3490
|
+
true: {
|
|
3491
|
+
trigger: "cursor-default"
|
|
3495
3492
|
}
|
|
3496
3493
|
}
|
|
3497
|
-
}
|
|
3498
|
-
}
|
|
3494
|
+
}
|
|
3495
|
+
});
|
|
3499
3496
|
hideOnClickCheck() {
|
|
3500
3497
|
if (this.hideOnClick === "toggle") {
|
|
3501
3498
|
return this.hideOnClick;
|