@lukso/web-components 1.162.0 → 1.163.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 +5 -5
- package/dist/components/index.js +5 -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 +5 -5
- package/dist/components/lukso-checkbox/index.js +5 -5
- package/dist/components/lukso-collapse/index.cjs +134 -39
- package/dist/components/lukso-collapse/index.d.ts +9 -1
- package/dist/components/lukso-collapse/index.d.ts.map +1 -1
- package/dist/components/lukso-collapse/index.js +134 -39
- package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts +16 -2
- package/dist/components/lukso-collapse/lukso-collapse.stories.d.ts.map +1 -1
- package/dist/components/lukso-color-picker/index.cjs +11 -11
- package/dist/components/lukso-color-picker/index.js +11 -11
- package/dist/components/lukso-dropdown/index.cjs +4 -4
- package/dist/components/lukso-dropdown/index.js +4 -4
- 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-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 +13 -13
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +13 -13
- 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 +4 -4
- package/dist/components/lukso-markdown-editor/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 +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 +5 -5
- package/dist/components/lukso-radio/index.js +5 -5
- 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 +9 -9
- package/dist/components/lukso-select/index.d.ts.map +1 -1
- package/dist/components/lukso-select/index.js +9 -9
- 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 +4 -4
- package/dist/components/lukso-switch/index.js +4 -4
- 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 +7 -7
- package/dist/components/lukso-textarea/index.js +7 -7
- 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-DvdeX3K2.js → index-1J-jqsT9.js} +2 -2
- package/dist/{index-CIvb8Rdb.js → index-B0BrUQTX.js} +3 -3
- package/dist/{index-DZXmXufN.js → index-BEawLNoE.js} +3 -3
- package/dist/{index-CeucSkmf.cjs → index-BHZk9HTM.cjs} +5 -5
- package/dist/{index-Zriuvita.cjs → index-BgNWF02P.cjs} +1 -1
- package/dist/index-C4AqmOTg.js +41 -0
- package/dist/index-CE4mgetK.cjs +50 -0
- package/dist/{index-0s--O024.cjs → index-CX03Xr6x.cjs} +3 -3
- package/dist/{index-GXU76s80.cjs → index-D1tHxVU9.cjs} +3 -3
- package/dist/{index-BOWftFAY.js → index-DSByq2Lm.js} +1 -1
- package/dist/{index-BYDwEmQd.cjs → index-Dv9A3Ltm.cjs} +2 -2
- package/dist/{index-bObYWb9Y.js → index-OytYtq41.js} +5 -5
- package/dist/index.cjs +5 -5
- package/dist/index.js +5 -5
- package/dist/{safe-custom-element-BODySN1j.js → safe-custom-element-BuFHdvWD.js} +1 -1
- package/dist/{safe-custom-element-DTADBI4I.cjs → safe-custom-element-CEr2QRTr.cjs} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-n75qAK0V.js → state-D-OZ3KEf.js} +1 -1
- package/dist/{state-ClR8ink7.cjs → state-DE9RNbPD.cjs} +1 -1
- package/dist/{style-map-BBz25umN.js → style-map-CNeYTqXM.js} +1 -1
- package/dist/{style-map-DhbNG03r.cjs → style-map-CTRp4AN8.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-DA2kPIsd.cjs} +1 -1
- package/dist/{unsafe-html-DTE5r2A7.js → unsafe-html-bTQk6t7a.js} +1 -1
- package/package.json +1 -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
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
2
|
-
import { n, s as safeCustomElement } from '../../safe-custom-element-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { a as TailwindElement, x, E } from '../../index-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
|
+
import { r } from '../../state-D-OZ3KEf.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';
|
|
@@ -21,7 +21,10 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.label = "";
|
|
24
|
-
this.
|
|
24
|
+
this.description = "";
|
|
25
|
+
this.error = "";
|
|
26
|
+
this.triggerLabel = "";
|
|
27
|
+
this.toggleLabel = {
|
|
25
28
|
open: "",
|
|
26
29
|
close: ""
|
|
27
30
|
};
|
|
@@ -29,6 +32,7 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
29
32
|
this.customClass = "";
|
|
30
33
|
this.isDisabled = false;
|
|
31
34
|
this.icon = "";
|
|
35
|
+
this.size = "large";
|
|
32
36
|
this.maxHeight = "0px";
|
|
33
37
|
this.observedHeight = 0;
|
|
34
38
|
this.onTransitionEnd = (e) => {
|
|
@@ -39,11 +43,11 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
39
43
|
};
|
|
40
44
|
this.collapseStyles = ce({
|
|
41
45
|
slots: {
|
|
42
|
-
base: "
|
|
43
|
-
header: "flex items-center justify-between cursor-pointer
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
icon: "transition cursor-pointer
|
|
46
|
+
base: "transition transition-all duration-150 border bg-neutral-100",
|
|
47
|
+
header: "flex items-center justify-between cursor-pointer overflow-hidden",
|
|
48
|
+
triggerLabel: "",
|
|
49
|
+
toggleLabel: "",
|
|
50
|
+
icon: "transition cursor-pointer",
|
|
47
51
|
content: "transition-all duration-250 ease-in-out"
|
|
48
52
|
},
|
|
49
53
|
variants: {
|
|
@@ -62,8 +66,59 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
62
66
|
header: "cursor-not-allowed",
|
|
63
67
|
icon: "opacity-60 cursor-not-allowed"
|
|
64
68
|
}
|
|
69
|
+
},
|
|
70
|
+
size: {
|
|
71
|
+
small: {
|
|
72
|
+
base: "rounded-8",
|
|
73
|
+
header: "h-7 pl-2",
|
|
74
|
+
triggerLabel: "paragraph-inter-12-semi-bold",
|
|
75
|
+
toggleLabel: "paragraph-inter-12-semi-bold",
|
|
76
|
+
icon: "mr-1"
|
|
77
|
+
},
|
|
78
|
+
medium: {
|
|
79
|
+
base: "rounded-10",
|
|
80
|
+
header: "h-10 pl-3",
|
|
81
|
+
triggerLabel: "paragraph-inter-14-semi-bold",
|
|
82
|
+
toggleLabel: "paragraph-inter-14-semi-bold",
|
|
83
|
+
icon: "mr-2"
|
|
84
|
+
},
|
|
85
|
+
large: {
|
|
86
|
+
base: "rounded-12",
|
|
87
|
+
header: "h-12 pl-4",
|
|
88
|
+
triggerLabel: "paragraph-inter-14-semi-bold",
|
|
89
|
+
toggleLabel: "paragraph-inter-14-semi-bold",
|
|
90
|
+
icon: "mr-3"
|
|
91
|
+
},
|
|
92
|
+
"x-large": {
|
|
93
|
+
base: "rounded-14",
|
|
94
|
+
header: "h-17 pl-5",
|
|
95
|
+
triggerLabel: "paragraph-inter-16-semi-bold",
|
|
96
|
+
toggleLabel: "paragraph-inter-16-semi-bold",
|
|
97
|
+
icon: "mr-4"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
hasError: {
|
|
101
|
+
true: {
|
|
102
|
+
base: "border-red-85 hover:border-red-65",
|
|
103
|
+
triggerLabel: "text-red-65",
|
|
104
|
+
toggleLabel: "text-red-65"
|
|
105
|
+
},
|
|
106
|
+
false: {
|
|
107
|
+
base: "border-neutral-90",
|
|
108
|
+
triggerLabel: "text-neutral-45",
|
|
109
|
+
toggleLabel: "text-neutral-45"
|
|
110
|
+
}
|
|
65
111
|
}
|
|
66
|
-
}
|
|
112
|
+
},
|
|
113
|
+
compoundVariants: [
|
|
114
|
+
{
|
|
115
|
+
isDisabled: false,
|
|
116
|
+
hasError: false,
|
|
117
|
+
class: {
|
|
118
|
+
base: "hover:border-neutral-35"
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
]
|
|
67
122
|
});
|
|
68
123
|
}
|
|
69
124
|
firstUpdated() {
|
|
@@ -95,7 +150,9 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
95
150
|
}
|
|
96
151
|
} else {
|
|
97
152
|
this.maxHeight = `${height}px`;
|
|
98
|
-
requestAnimationFrame(() =>
|
|
153
|
+
requestAnimationFrame(() => {
|
|
154
|
+
this.maxHeight = "0px";
|
|
155
|
+
});
|
|
99
156
|
}
|
|
100
157
|
}
|
|
101
158
|
toggle() {
|
|
@@ -104,40 +161,66 @@ let LuksoCollapse = class extends TailwindElement {
|
|
|
104
161
|
new CustomEvent("toggle", { detail: { open: this.isOpen } })
|
|
105
162
|
);
|
|
106
163
|
}
|
|
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
|
+
}
|
|
107
183
|
render() {
|
|
108
|
-
const { base, header,
|
|
184
|
+
const { base, header, triggerLabel, toggleLabel, icon, content } = this.collapseStyles({
|
|
109
185
|
isOpen: this.isOpen,
|
|
110
|
-
isDisabled: this.isDisabled
|
|
186
|
+
isDisabled: this.isDisabled,
|
|
187
|
+
size: this.size,
|
|
188
|
+
hasError: this.error !== ""
|
|
111
189
|
});
|
|
112
190
|
return x`
|
|
113
|
-
<div class
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
191
|
+
<div class="w-[inherit]">
|
|
192
|
+
${this.label ? this.labelTemplate() : E}
|
|
193
|
+
${this.description ? this.descriptionTemplate() : E}
|
|
194
|
+
<div class=${cn(base(), this.customClass)}>
|
|
195
|
+
<!-- Header -->
|
|
196
|
+
<div
|
|
197
|
+
class=${header()}
|
|
198
|
+
@click=${() => !this.isDisabled && this.toggle()}
|
|
199
|
+
>
|
|
200
|
+
<span class=${triggerLabel()}>${this.triggerLabel}</span>
|
|
201
|
+
<div class="flex items-center">
|
|
202
|
+
${this.toggleLabel ? x`<span class=${toggleLabel()}>
|
|
203
|
+
${this.isOpen ? this.toggleLabel?.close : this.toggleLabel?.open}
|
|
204
|
+
</span>` : E}
|
|
205
|
+
${this.icon ? x`<lukso-icon
|
|
206
|
+
name=${this.icon}
|
|
207
|
+
class=${icon()}
|
|
208
|
+
></lukso-icon>` : E}
|
|
209
|
+
</div>
|
|
128
210
|
</div>
|
|
129
|
-
</div>
|
|
130
211
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
212
|
+
<!-- Content -->
|
|
213
|
+
<div
|
|
214
|
+
class=${content()}
|
|
215
|
+
style="max-height:${this.maxHeight};"
|
|
216
|
+
@transitionend=${this.onTransitionEnd}
|
|
217
|
+
>
|
|
218
|
+
<div class="collapse-content">
|
|
219
|
+
<slot @slotchange=${() => this.syncHeight()}></slot>
|
|
220
|
+
</div>
|
|
139
221
|
</div>
|
|
140
222
|
</div>
|
|
223
|
+
${this.error ? this.errorTemplate() : E}
|
|
141
224
|
</div>
|
|
142
225
|
`;
|
|
143
226
|
}
|
|
@@ -146,8 +229,17 @@ __decorateClass([
|
|
|
146
229
|
n({ type: String })
|
|
147
230
|
], LuksoCollapse.prototype, "label", 2);
|
|
148
231
|
__decorateClass([
|
|
149
|
-
n({ type:
|
|
150
|
-
], LuksoCollapse.prototype, "
|
|
232
|
+
n({ type: String })
|
|
233
|
+
], LuksoCollapse.prototype, "description", 2);
|
|
234
|
+
__decorateClass([
|
|
235
|
+
n({ type: String })
|
|
236
|
+
], LuksoCollapse.prototype, "error", 2);
|
|
237
|
+
__decorateClass([
|
|
238
|
+
n({ type: String, attribute: "trigger-label" })
|
|
239
|
+
], LuksoCollapse.prototype, "triggerLabel", 2);
|
|
240
|
+
__decorateClass([
|
|
241
|
+
n({ type: Object, attribute: "toggle-label" })
|
|
242
|
+
], LuksoCollapse.prototype, "toggleLabel", 2);
|
|
151
243
|
__decorateClass([
|
|
152
244
|
n({ type: Boolean, attribute: "is-open" })
|
|
153
245
|
], LuksoCollapse.prototype, "isOpen", 2);
|
|
@@ -160,6 +252,9 @@ __decorateClass([
|
|
|
160
252
|
__decorateClass([
|
|
161
253
|
n({ type: String, attribute: "icon" })
|
|
162
254
|
], LuksoCollapse.prototype, "icon", 2);
|
|
255
|
+
__decorateClass([
|
|
256
|
+
n({ type: String })
|
|
257
|
+
], LuksoCollapse.prototype, "size", 2);
|
|
163
258
|
__decorateClass([
|
|
164
259
|
r()
|
|
165
260
|
], LuksoCollapse.prototype, "maxHeight", 2);
|
|
@@ -2,8 +2,22 @@ import { Meta } from '@storybook/web-components-vite';
|
|
|
2
2
|
/** Documentation and examples of `lukso-collapse` component. */
|
|
3
3
|
declare const meta: Meta;
|
|
4
4
|
export default meta;
|
|
5
|
-
/** Example of `
|
|
6
|
-
export declare const
|
|
5
|
+
/** Example of `small` size */
|
|
6
|
+
export declare const CollapseSmall: any;
|
|
7
|
+
/** Example of `medium` size */
|
|
8
|
+
export declare const CollapseMedium: any;
|
|
9
|
+
/** Example of `large` size */
|
|
10
|
+
export declare const CollapseLarge: any;
|
|
11
|
+
/** Example of `x-large` size */
|
|
12
|
+
export declare const CollapseXLarge: any;
|
|
13
|
+
/** Example of custom labels and icon */
|
|
14
|
+
export declare const CustomLabels: any;
|
|
15
|
+
/** Example of collapse with `label` */
|
|
16
|
+
export declare const CollapseLabel: any;
|
|
17
|
+
/** Example of collapse with `description` */
|
|
18
|
+
export declare const CollapseDescription: any;
|
|
19
|
+
/** Example of collapse with `error` */
|
|
20
|
+
export declare const CollapseError: any;
|
|
7
21
|
/** Example of lukso-collapse `open` by default */
|
|
8
22
|
export declare const CollapseOpen: any;
|
|
9
23
|
/** 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":"
|
|
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,uCAAuC;AACvC,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,6CAA6C;AAC7C,eAAO,MAAM,mBAAmB,KAAoB,CAAA;AAKpD,uCAAuC;AACvC,eAAO,MAAM,aAAa,KAAoB,CAAA;AAK9C,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,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-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
|
|
7
|
+
const state = require('../../state-DE9RNbPD.cjs');
|
|
8
8
|
const index = require('../../index-CaJky2qL.cjs');
|
|
9
|
-
const styleMap = require('../../style-map-
|
|
9
|
+
const styleMap = require('../../style-map-CTRp4AN8.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-CX03Xr6x.cjs');
|
|
14
14
|
|
|
15
15
|
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
16
|
|
|
@@ -91,18 +91,18 @@ exports.LuksoColorPicker = class LuksoColorPicker extends shared_tailwindElement
|
|
|
91
91
|
size: {
|
|
92
92
|
small: {
|
|
93
93
|
wrapper: "grid-cols-[28px,auto] rounded-8",
|
|
94
|
-
input: "h-
|
|
95
|
-
color: "h-
|
|
94
|
+
input: "h-7 px-2 py-1 paragraph-inter-12-regular rounded-r-8",
|
|
95
|
+
color: "h-7 w-[28px]"
|
|
96
96
|
},
|
|
97
97
|
medium: {
|
|
98
98
|
wrapper: "grid-cols-[40px,auto] rounded-12",
|
|
99
|
-
input: "h-
|
|
100
|
-
color: "h-
|
|
99
|
+
input: "h-10 px-3 py-2 paragraph-inter-14-regular rounded-r-10",
|
|
100
|
+
color: "h-10 w-[40px]"
|
|
101
101
|
},
|
|
102
102
|
large: {
|
|
103
103
|
wrapper: "grid-cols-[48px,auto] rounded-12",
|
|
104
|
-
input: "h-
|
|
105
|
-
color: "h-
|
|
104
|
+
input: "h-12 px-4 py-3 paragraph-inter-14-regular rounded-r-12",
|
|
105
|
+
color: "h-12 w-[48px]"
|
|
106
106
|
},
|
|
107
107
|
"x-large": {}
|
|
108
108
|
}
|
|
@@ -1,12 +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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
|
+
import { r } from '../../state-D-OZ3KEf.js';
|
|
4
4
|
import { c as ce } from '../../index-B9iart53.js';
|
|
5
|
-
import { o } from '../../style-map-
|
|
5
|
+
import { o } from '../../style-map-CNeYTqXM.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-BEawLNoE.js';
|
|
10
10
|
|
|
11
11
|
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
12
|
|
|
@@ -87,18 +87,18 @@ let LuksoColorPicker = class extends TailwindStyledElement(style) {
|
|
|
87
87
|
size: {
|
|
88
88
|
small: {
|
|
89
89
|
wrapper: "grid-cols-[28px,auto] rounded-8",
|
|
90
|
-
input: "h-
|
|
91
|
-
color: "h-
|
|
90
|
+
input: "h-7 px-2 py-1 paragraph-inter-12-regular rounded-r-8",
|
|
91
|
+
color: "h-7 w-[28px]"
|
|
92
92
|
},
|
|
93
93
|
medium: {
|
|
94
94
|
wrapper: "grid-cols-[40px,auto] rounded-12",
|
|
95
|
-
input: "h-
|
|
96
|
-
color: "h-
|
|
95
|
+
input: "h-10 px-3 py-2 paragraph-inter-14-regular rounded-r-10",
|
|
96
|
+
color: "h-10 w-[40px]"
|
|
97
97
|
},
|
|
98
98
|
large: {
|
|
99
99
|
wrapper: "grid-cols-[48px,auto] rounded-12",
|
|
100
|
-
input: "h-
|
|
101
|
-
color: "h-
|
|
100
|
+
input: "h-12 px-4 py-3 paragraph-inter-14-regular rounded-r-12",
|
|
101
|
+
color: "h-12 w-[48px]"
|
|
102
102
|
},
|
|
103
103
|
"x-large": {}
|
|
104
104
|
}
|
|
@@ -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-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.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-Dv9A3Ltm.cjs');
|
|
10
|
+
require('../../index-D1tHxVU9.cjs');
|
|
11
11
|
const uniqId = require('../../uniq-id-Cszs24DQ.cjs');
|
|
12
12
|
|
|
13
13
|
const debounceFunction = (func, timeout = 100) => {
|
|
@@ -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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.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-1J-jqsT9.js';
|
|
6
|
+
import '../../index-B0BrUQTX.js';
|
|
7
7
|
import { u as uniqId } from '../../uniq-id-CGUN-pJV.js';
|
|
8
8
|
|
|
9
9
|
const debounceFunction = (func, timeout = 100) => {
|
|
@@ -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-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
|
|
7
7
|
const index = require('../../index-CaJky2qL.cjs');
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: block\n}";
|
|
@@ -41,7 +41,7 @@ exports.LuksoDropdownOption = class LuksoDropdownOption extends shared_tailwindE
|
|
|
41
41
|
true: ""
|
|
42
42
|
},
|
|
43
43
|
size: {
|
|
44
|
-
small: "paragraph-inter-12-regular rounded-4 px-2 min-h-
|
|
44
|
+
small: "paragraph-inter-12-regular rounded-4 px-2 min-h-7",
|
|
45
45
|
medium: "paragraph-inter-14-regular rounded-8 px-3 min-h-[38px]",
|
|
46
46
|
large: "paragraph-inter-14-regular rounded-8 px-3 min-h-[38px]",
|
|
47
47
|
"x-large": ""
|
|
@@ -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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
3
|
import { c as ce } from '../../index-B9iart53.js';
|
|
4
4
|
|
|
5
5
|
const style = ":host {\n display: block\n}";
|
|
@@ -37,7 +37,7 @@ let LuksoDropdownOption = class extends TailwindStyledElement(style) {
|
|
|
37
37
|
true: ""
|
|
38
38
|
},
|
|
39
39
|
size: {
|
|
40
|
-
small: "paragraph-inter-12-regular rounded-4 px-2 min-h-
|
|
40
|
+
small: "paragraph-inter-12-regular rounded-4 px-2 min-h-7",
|
|
41
41
|
medium: "paragraph-inter-14-regular rounded-8 px-3 min-h-[38px]",
|
|
42
42
|
large: "paragraph-inter-14-regular rounded-8 px-3 min-h-[38px]",
|
|
43
43
|
"x-large": ""
|
|
@@ -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-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
5
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -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-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
|
|
7
|
+
const unsafeHtml = require('../../unsafe-html-DA2kPIsd.cjs');
|
|
8
|
+
const styleMap = require('../../style-map-CTRp4AN8.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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
|
+
import { o as o$1 } from '../../unsafe-html-bTQk6t7a.js';
|
|
4
|
+
import { o } from '../../style-map-CNeYTqXM.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-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
|
|
7
|
+
const state = require('../../state-DE9RNbPD.cjs');
|
|
8
|
+
const styleMap = require('../../style-map-CTRp4AN8.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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
|
+
import { r } from '../../state-D-OZ3KEf.js';
|
|
4
|
+
import { o } from '../../style-map-CNeYTqXM.js';
|
|
5
5
|
import { c as ce } from '../../index-B9iart53.js';
|
|
6
6
|
|
|
7
7
|
var __defProp = Object.defineProperty;
|
|
@@ -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-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-CE4mgetK.cjs');
|
|
6
|
+
const safeCustomElement = require('../../safe-custom-element-CEr2QRTr.cjs');
|
|
7
|
+
const state = require('../../state-DE9RNbPD.cjs');
|
|
8
8
|
const index = require('../../index-CaJky2qL.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
|
-
require('../../index-
|
|
10
|
+
require('../../index-CX03Xr6x.cjs');
|
|
11
11
|
require('../../tailwind-config.cjs');
|
|
12
12
|
const axe = require('../../axe-C-H1UVi1.cjs');
|
|
13
13
|
|
|
@@ -58,7 +58,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
58
58
|
wrapper: "group flex",
|
|
59
59
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
60
60
|
outline-none transition transition-all duration-150 appearance-none`,
|
|
61
|
-
unit: `text-neutral-60 flex items-center relative border-solid transition
|
|
61
|
+
unit: `bg-neutral-100 text-neutral-60 flex items-center relative border-solid transition
|
|
62
62
|
transition-all duration-150 before:bg-neutral-90 before:absolute
|
|
63
63
|
before:left-0 before:w-[1px] whitespace-nowrap cursor-pointer`,
|
|
64
64
|
rightIcon: "absolute top-1/2 transform -translate-y-1/2"
|
|
@@ -106,23 +106,23 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
106
106
|
},
|
|
107
107
|
size: {
|
|
108
108
|
small: {
|
|
109
|
-
input: "h-
|
|
110
|
-
unit: "h-
|
|
109
|
+
input: "h-7 px-3 py-1 paragraph-inter-12-regular rounded-8",
|
|
110
|
+
unit: "h-7 paragraph-inter-12-regular px-2 rounded-r-8 before:top-[calc(50%-6px)] before:h-[12px]",
|
|
111
111
|
rightIcon: "right-3"
|
|
112
112
|
},
|
|
113
113
|
medium: {
|
|
114
|
-
input: "h-
|
|
115
|
-
unit: "h-
|
|
114
|
+
input: "h-10 px-3.5 py-2 paragraph-inter-14-regular rounded-[10px]",
|
|
115
|
+
unit: "h-10 paragraph-inter-12-regular px-3 rounded-r-[10px] before:top-[calc(50%-12px)] before:h-6",
|
|
116
116
|
rightIcon: "right-4"
|
|
117
117
|
},
|
|
118
118
|
large: {
|
|
119
|
-
input: "h-
|
|
120
|
-
unit: "h-
|
|
119
|
+
input: "h-12 px-4 py-2 paragraph-inter-14-regular rounded-12",
|
|
120
|
+
unit: "h-12 paragraph-inter-12-regular pl-3 pr-4 rounded-r-12 before:top-[calc(50%-12px)] before:h-6",
|
|
121
121
|
rightIcon: "right-4"
|
|
122
122
|
},
|
|
123
123
|
"x-large": {
|
|
124
|
-
input: "h-
|
|
125
|
-
unit: "h-
|
|
124
|
+
input: "h-17 px-5 py-5 paragraph-inter-16-regular rounded-[14px]",
|
|
125
|
+
unit: "h-17 paragraph-inter-16-regular pl-3 pr-4 rounded-r-[14px] before:top-[calc(50%-12px)] before:h-6",
|
|
126
126
|
rightIcon: "right-4"
|
|
127
127
|
}
|
|
128
128
|
},
|
|
@@ -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;AAKpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAI/C,qBACa,UAAW,SAAQ,eAA4B;IAE1D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,UAAU,UAAQ;IAGlB,IAAI,EAAE,SAAS,CAAU;IAGzB,SAAS,SAAK;IAGd,oBAAoB,UAAQ;IAG5B,iBAAiB,UAAQ;IAGzB,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,WAAW,
|
|
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;AAKpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;;AAI/C,qBACa,UAAW,SAAQ,eAA4B;IAE1D,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAY;IAGtC,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,UAAU,UAAQ;IAGlB,IAAI,EAAE,SAAS,CAAU;IAGzB,SAAS,SAAK;IAGd,oBAAoB,UAAQ;IAG5B,iBAAiB,UAAQ;IAGzB,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,WAAW,CAkHjB;IAEF,iBAAiB;IAYjB,aAAa,CAAC,MAAM,EAAE,MAAM;IAgC5B,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,YAAY,CAAC,MAAM,EAAE,MAAM;IAW3B,iBAAiB,CAAC,MAAM,EAAE,MAAM;IAUhC,OAAO,CAAC,WAAW;YAOL,UAAU;YAgBV,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;CA6BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,9 +1,9 @@
|
|
|
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-C4AqmOTg.js';
|
|
2
|
+
import { n, s as safeCustomElement } from '../../safe-custom-element-BuFHdvWD.js';
|
|
3
|
+
import { r } from '../../state-D-OZ3KEf.js';
|
|
4
4
|
import { c as ce } from '../../index-B9iart53.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
|
-
import '../../index-
|
|
6
|
+
import '../../index-BEawLNoE.js';
|
|
7
7
|
import '../../tailwind-config.js';
|
|
8
8
|
import { c as cn } from '../../axe-BK9JSROP.js';
|
|
9
9
|
|
|
@@ -54,7 +54,7 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
54
54
|
wrapper: "group flex",
|
|
55
55
|
input: `bg-neutral-100 border-solid placeholder:text-neutral-70 w-full
|
|
56
56
|
outline-none transition transition-all duration-150 appearance-none`,
|
|
57
|
-
unit: `text-neutral-60 flex items-center relative border-solid transition
|
|
57
|
+
unit: `bg-neutral-100 text-neutral-60 flex items-center relative border-solid transition
|
|
58
58
|
transition-all duration-150 before:bg-neutral-90 before:absolute
|
|
59
59
|
before:left-0 before:w-[1px] whitespace-nowrap cursor-pointer`,
|
|
60
60
|
rightIcon: "absolute top-1/2 transform -translate-y-1/2"
|
|
@@ -102,23 +102,23 @@ let LuksoInput = class extends TailwindStyledElement(style) {
|
|
|
102
102
|
},
|
|
103
103
|
size: {
|
|
104
104
|
small: {
|
|
105
|
-
input: "h-
|
|
106
|
-
unit: "h-
|
|
105
|
+
input: "h-7 px-3 py-1 paragraph-inter-12-regular rounded-8",
|
|
106
|
+
unit: "h-7 paragraph-inter-12-regular px-2 rounded-r-8 before:top-[calc(50%-6px)] before:h-[12px]",
|
|
107
107
|
rightIcon: "right-3"
|
|
108
108
|
},
|
|
109
109
|
medium: {
|
|
110
|
-
input: "h-
|
|
111
|
-
unit: "h-
|
|
110
|
+
input: "h-10 px-3.5 py-2 paragraph-inter-14-regular rounded-[10px]",
|
|
111
|
+
unit: "h-10 paragraph-inter-12-regular px-3 rounded-r-[10px] before:top-[calc(50%-12px)] before:h-6",
|
|
112
112
|
rightIcon: "right-4"
|
|
113
113
|
},
|
|
114
114
|
large: {
|
|
115
|
-
input: "h-
|
|
116
|
-
unit: "h-
|
|
115
|
+
input: "h-12 px-4 py-2 paragraph-inter-14-regular rounded-12",
|
|
116
|
+
unit: "h-12 paragraph-inter-12-regular pl-3 pr-4 rounded-r-12 before:top-[calc(50%-12px)] before:h-6",
|
|
117
117
|
rightIcon: "right-4"
|
|
118
118
|
},
|
|
119
119
|
"x-large": {
|
|
120
|
-
input: "h-
|
|
121
|
-
unit: "h-
|
|
120
|
+
input: "h-17 px-5 py-5 paragraph-inter-16-regular rounded-[14px]",
|
|
121
|
+
unit: "h-17 paragraph-inter-16-regular pl-3 pr-4 rounded-r-[14px] before:top-[calc(50%-12px)] before:h-6",
|
|
122
122
|
rightIcon: "right-4"
|
|
123
123
|
}
|
|
124
124
|
},
|