@lukso/web-components 1.51.5 → 1.52.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/{index-b83c7efa.js → cn-1594f5ba.js} +340 -635
- package/dist/{index-619f20e8.cjs → cn-312c6e88.cjs} +342 -637
- package/dist/components/index.cjs +7 -6
- package/dist/components/index.js +7 -6
- package/dist/components/lukso-button/index.cjs +2656 -75
- package/dist/components/lukso-button/index.d.ts +3 -12
- package/dist/components/lukso-button/index.d.ts.map +1 -1
- package/dist/components/lukso-button/index.js +2656 -75
- package/dist/components/lukso-button/lukso-button.stories.d.ts +4 -0
- package/dist/components/lukso-button/lukso-button.stories.d.ts.map +1 -1
- package/dist/components/lukso-card/index.cjs +326 -11
- package/dist/components/lukso-card/index.js +330 -6
- package/dist/components/lukso-checkbox/index.cjs +1 -1
- package/dist/components/lukso-checkbox/index.js +1 -1
- package/dist/components/lukso-footer/index.cjs +1 -1
- package/dist/components/lukso-footer/index.js +1 -1
- package/dist/components/lukso-icon/index.cjs +2 -2
- package/dist/components/lukso-icon/index.js +2 -2
- package/dist/components/lukso-input/index.cjs +1 -1
- package/dist/components/lukso-input/index.js +1 -1
- package/dist/components/lukso-modal/index.cjs +1 -1
- package/dist/components/lukso-modal/index.js +1 -1
- package/dist/components/lukso-navbar/index.cjs +2 -2
- package/dist/components/lukso-navbar/index.js +2 -2
- package/dist/components/lukso-profile/index.cjs +2 -2
- package/dist/components/lukso-profile/index.js +2 -2
- package/dist/components/lukso-progress/index.cjs +21 -10
- package/dist/components/lukso-progress/index.d.ts +1 -0
- package/dist/components/lukso-progress/index.d.ts.map +1 -1
- package/dist/components/lukso-progress/index.js +21 -10
- package/dist/components/lukso-progress/lukso-progress.stories.d.ts.map +1 -1
- package/dist/components/lukso-sanitize/index.cjs +1 -1
- package/dist/components/lukso-sanitize/index.js +1 -1
- package/dist/components/lukso-search/index.cjs +3 -3
- package/dist/components/lukso-search/index.js +3 -3
- package/dist/components/lukso-select/index.cjs +3 -3
- package/dist/components/lukso-select/index.js +3 -3
- package/dist/components/lukso-share/index.cjs +1 -1
- package/dist/components/lukso-share/index.js +1 -1
- package/dist/components/lukso-switch/index.cjs +2 -2
- package/dist/components/lukso-switch/index.js +2 -2
- package/dist/components/lukso-tag/index.cjs +2 -2
- package/dist/components/lukso-tag/index.js +2 -2
- package/dist/components/lukso-terms/index.cjs +2 -2
- package/dist/components/lukso-terms/index.js +2 -2
- package/dist/components/lukso-test/index.cjs +1 -1
- package/dist/components/lukso-test/index.js +1 -1
- package/dist/components/lukso-tooltip/index.cjs +1 -1
- package/dist/components/lukso-tooltip/index.js +1 -1
- package/dist/components/lukso-username/index.cjs +2 -2
- package/dist/components/lukso-username/index.js +2 -2
- package/dist/components/lukso-wizard/index.cjs +1 -1
- package/dist/components/lukso-wizard/index.js +1 -1
- package/dist/index-35ca0b42.js +39 -0
- package/dist/{index-ee4182e6.js → index-739869da.js} +1 -1
- package/dist/{index-beb7703d.cjs → index-ace51f33.cjs} +1 -1
- package/dist/index-f426e548.cjs +46 -0
- package/dist/index.cjs +8 -7
- package/dist/index.js +7 -6
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-671a0511.cjs → style-map-1175c018.cjs} +1 -1
- package/dist/{style-map-5be28c06.js → style-map-17f918a2.js} +1 -1
- package/dist/styles/main.css +1 -1
- package/dist/{color-palette.js → tailwind-config.cjs} +109 -1
- package/dist/tailwind-config.d.ts +136 -0
- package/dist/tailwind-config.d.ts.map +1 -0
- package/dist/{color-palette.cjs → tailwind-config.js} +95 -8
- package/package.json +8 -5
- package/tailwind.config.cjs +8 -118
- package/tools/cn.cjs +341 -307
- package/tools/cn.d.ts.map +1 -1
- package/tools/cn.js +341 -307
- package/tools/index.cjs +13 -6
- package/tools/index.d.ts +1 -1
- package/tools/index.d.ts.map +1 -1
- package/tools/index.js +1 -1
- package/tools/sass/fonts.scss +1 -1
- package/tools/styles/main.css +1 -1
- package/tools/{color-palette-2786d7c1.js → tailwind-config-0df99c97.js} +95 -1
- package/tools/{color-palette-18dd9e2f.cjs → tailwind-config-f8a808f6.cjs} +101 -0
- package/tools/tailwind-config.cjs +19 -0
- package/tools/tailwind-config.d.ts +136 -0
- package/tools/tailwind-config.d.ts.map +1 -0
- package/tools/tailwind-config.js +1 -0
- package/dist/color-palette.d.ts +0 -42
- package/dist/color-palette.d.ts.map +0 -1
- package/dist/index-04d11436.js +0 -39
- package/dist/index-997f3f0e.cjs +0 -46
- package/tools/color-palette.cjs +0 -12
- package/tools/color-palette.d.ts +0 -42
- package/tools/color-palette.d.ts.map +0 -1
- package/tools/color-palette.js +0 -1
|
@@ -1,9 +1,333 @@
|
|
|
1
|
-
import '../../index-
|
|
2
|
-
import '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import '../../style-map-
|
|
4
|
-
export { L as LuksoCard } from '../../index-b83c7efa.js';
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-35ca0b42.js';
|
|
2
|
+
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
+
import { o } from '../../style-map-17f918a2.js';
|
|
5
4
|
import '../lukso-profile/index.js';
|
|
6
|
-
import '../../
|
|
7
|
-
import '../../
|
|
5
|
+
import '../../tailwind-config.js';
|
|
6
|
+
import { c as cn } from '../../cn-1594f5ba.js';
|
|
7
|
+
import { c as customStyleMap } from '../../index-739869da.js';
|
|
8
8
|
import '../../directive-2bb7789e.js';
|
|
9
9
|
import '../../index-5e194caf.js';
|
|
10
|
+
|
|
11
|
+
const style = ":host {\n display: inline-flex;\n width: 100%;\n}\n\n:host([width]) {\n width: inherit;\n}";
|
|
12
|
+
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
15
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
16
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
17
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
18
|
+
if (decorator = decorators[i])
|
|
19
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
20
|
+
if (kind && result)
|
|
21
|
+
__defProp(target, key, result);
|
|
22
|
+
return result;
|
|
23
|
+
};
|
|
24
|
+
let LuksoCard = class extends TailwindStyledElement(style) {
|
|
25
|
+
constructor() {
|
|
26
|
+
super(...arguments);
|
|
27
|
+
this.variant = "basic";
|
|
28
|
+
this.backgroundUrl = "";
|
|
29
|
+
this.profileUrl = "";
|
|
30
|
+
this.profileAddress = "";
|
|
31
|
+
this.width = void 0;
|
|
32
|
+
this.height = void 0;
|
|
33
|
+
this.customClass = "";
|
|
34
|
+
this.headerClass = "";
|
|
35
|
+
this.size = "medium";
|
|
36
|
+
this.isHoverable = false;
|
|
37
|
+
this.mediumStyles = `rounded-24 shadow-neutral-drop-shadow-2xl`;
|
|
38
|
+
this.smallStyles = `rounded-12 shadow-neutral-drop-shadow`;
|
|
39
|
+
this.smallHoverStyles = `hover:shadow-neutral-drop-shadow-1xl cursor-pointer transition`;
|
|
40
|
+
}
|
|
41
|
+
backgroundImageOrGradient() {
|
|
42
|
+
const opacity = "80";
|
|
43
|
+
const gradientStart = `#${this.profileAddress.slice(2, 8)}${opacity}`;
|
|
44
|
+
const gradientEnd = `#${this.profileAddress.slice(36, 42)}${opacity}`;
|
|
45
|
+
if (this.backgroundUrl) {
|
|
46
|
+
return `url(${this.backgroundUrl})`;
|
|
47
|
+
}
|
|
48
|
+
return `linear-gradient(90deg, ${gradientStart}, ${gradientEnd})`;
|
|
49
|
+
}
|
|
50
|
+
basicTemplate() {
|
|
51
|
+
return x`
|
|
52
|
+
<div
|
|
53
|
+
data-testid="card"
|
|
54
|
+
style=${customStyleMap({
|
|
55
|
+
[`min-height: ${this.height}px`]: !!this.height,
|
|
56
|
+
[`width: ${this.width}px`]: !!this.width
|
|
57
|
+
})}
|
|
58
|
+
class=${cn("bg-neutral-100", {
|
|
59
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
60
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
61
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
62
|
+
[this.customClass]: !!this.customClass,
|
|
63
|
+
"w-full": !this.width
|
|
64
|
+
})}
|
|
65
|
+
>
|
|
66
|
+
<slot name="content"></slot>
|
|
67
|
+
</div>
|
|
68
|
+
`;
|
|
69
|
+
}
|
|
70
|
+
withHeaderTemplate() {
|
|
71
|
+
return x`
|
|
72
|
+
<div
|
|
73
|
+
data-testid="card"
|
|
74
|
+
style=${o({
|
|
75
|
+
minHeight: `${this.height}px`,
|
|
76
|
+
width: `${this.width}px`
|
|
77
|
+
})}
|
|
78
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr] overflow-hidden", {
|
|
79
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
80
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
81
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
82
|
+
[this.customClass]: !!this.customClass,
|
|
83
|
+
"w-full": !this.width
|
|
84
|
+
})}
|
|
85
|
+
>
|
|
86
|
+
<div class=${this.headerClass}>
|
|
87
|
+
<slot name="header"></slot>
|
|
88
|
+
</div>
|
|
89
|
+
<div class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-24">
|
|
90
|
+
<slot name="content"></slot>
|
|
91
|
+
</div>
|
|
92
|
+
</div>
|
|
93
|
+
`;
|
|
94
|
+
}
|
|
95
|
+
profileTemplate() {
|
|
96
|
+
return x`
|
|
97
|
+
<div
|
|
98
|
+
data-testid="card"
|
|
99
|
+
style=${customStyleMap({
|
|
100
|
+
[`min-height: ${this.height}px`]: !!this.height,
|
|
101
|
+
[`width: ${this.width}px`]: !!this.width
|
|
102
|
+
})}
|
|
103
|
+
class=${cn("bg-neutral-100 grid", {
|
|
104
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
105
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
106
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
107
|
+
[this.customClass]: !!this.customClass,
|
|
108
|
+
"w-full": !this.width
|
|
109
|
+
})}
|
|
110
|
+
>
|
|
111
|
+
<div
|
|
112
|
+
style=${o({
|
|
113
|
+
backgroundImage: this.backgroundImageOrGradient()
|
|
114
|
+
})}
|
|
115
|
+
class=${cn(
|
|
116
|
+
"row-end-1 col-span-1 col-end-1 row-span-1 h-full w-full bg-center bg-cover rounded-24 relative",
|
|
117
|
+
this.headerClass
|
|
118
|
+
)}
|
|
119
|
+
>
|
|
120
|
+
${this.backgroundUrl && x` <div
|
|
121
|
+
class="h-full full rounded-[24px_24px_0_0] bg-neutral-20/10 absolute"
|
|
122
|
+
></div>`}
|
|
123
|
+
<div>
|
|
124
|
+
<slot name="header"></slot>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
<div
|
|
128
|
+
class="grid grid-rows-[1fr,auto] row-end-1 col-span-1 col-end-1 row-span-1"
|
|
129
|
+
>
|
|
130
|
+
<div></div>
|
|
131
|
+
<div class="bg-neutral-100 rounded-24 relative">
|
|
132
|
+
<lukso-profile
|
|
133
|
+
profile-url=${this.profileUrl}
|
|
134
|
+
size="large"
|
|
135
|
+
profile-address=${this.profileAddress}
|
|
136
|
+
has-identicon
|
|
137
|
+
class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
|
|
138
|
+
></lukso-profile>
|
|
139
|
+
<div
|
|
140
|
+
class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-3"
|
|
141
|
+
>
|
|
142
|
+
<div
|
|
143
|
+
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
|
|
144
|
+
></div>
|
|
145
|
+
</div>
|
|
146
|
+
<slot name="content"></slot>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
</div>
|
|
150
|
+
`;
|
|
151
|
+
}
|
|
152
|
+
profile2Template() {
|
|
153
|
+
return x`
|
|
154
|
+
<div
|
|
155
|
+
data-testid="card"
|
|
156
|
+
style=${customStyleMap({
|
|
157
|
+
[`min-height: ${this.height}px`]: !!this.height,
|
|
158
|
+
[`width: ${this.width}px`]: !!this.width
|
|
159
|
+
})}
|
|
160
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr]", {
|
|
161
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
162
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
163
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
164
|
+
[this.customClass]: !!this.customClass,
|
|
165
|
+
["w-full"]: !this.width
|
|
166
|
+
})}
|
|
167
|
+
>
|
|
168
|
+
<div
|
|
169
|
+
style=${o({
|
|
170
|
+
backgroundImage: this.backgroundImageOrGradient()
|
|
171
|
+
})}
|
|
172
|
+
class=${cn(
|
|
173
|
+
"min-h-[129px] -mb-6 bg-center bg-cover rounded-[24px_24px_0_0] relative bg-neutral-100",
|
|
174
|
+
this.headerClass
|
|
175
|
+
)}
|
|
176
|
+
>
|
|
177
|
+
${this.backgroundUrl && x`<div
|
|
178
|
+
class="min-h-full min-w-full rounded-[24px_24px_0_0] bg-neutral-10/10 absolute"
|
|
179
|
+
></div>`}
|
|
180
|
+
<div>
|
|
181
|
+
<slot name="header"></slot>
|
|
182
|
+
</div>
|
|
183
|
+
</div>
|
|
184
|
+
<div class="grid grid-rows-[max-content,auto]">
|
|
185
|
+
<div class="bg-neutral-100 relative">
|
|
186
|
+
<lukso-profile
|
|
187
|
+
profile-url=${this.profileUrl}
|
|
188
|
+
size="large"
|
|
189
|
+
profile-address=${this.profileAddress}
|
|
190
|
+
has-identicon
|
|
191
|
+
class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
|
|
192
|
+
></lukso-profile>
|
|
193
|
+
<div
|
|
194
|
+
class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-2"
|
|
195
|
+
>
|
|
196
|
+
<div
|
|
197
|
+
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
|
|
198
|
+
></div>
|
|
199
|
+
</div>
|
|
200
|
+
<slot name="content"></slot>
|
|
201
|
+
</div>
|
|
202
|
+
<div
|
|
203
|
+
class="bg-neutral-97 rounded-b-24 shadow-neutral-inner-shadow-top"
|
|
204
|
+
>
|
|
205
|
+
<slot name="bottom"></slot>
|
|
206
|
+
</div>
|
|
207
|
+
</div>
|
|
208
|
+
</div>
|
|
209
|
+
`;
|
|
210
|
+
}
|
|
211
|
+
heroTemplate() {
|
|
212
|
+
return x`
|
|
213
|
+
<div
|
|
214
|
+
data-testid="card"
|
|
215
|
+
style=${customStyleMap({
|
|
216
|
+
[`min-height: ${this.height}px`]: !!this.height,
|
|
217
|
+
[`width: ${this.width}px`]: !!this.width
|
|
218
|
+
})}
|
|
219
|
+
class=${cn("h-[240px] flex bg-neutral-100", {
|
|
220
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
221
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
222
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
223
|
+
[this.customClass]: !!this.customClass,
|
|
224
|
+
["w-full"]: !this.width
|
|
225
|
+
})}
|
|
226
|
+
>
|
|
227
|
+
<div
|
|
228
|
+
style=${o({
|
|
229
|
+
backgroundImage: `url(${this.backgroundUrl})`
|
|
230
|
+
})}
|
|
231
|
+
class="h-full w-full -mb-6 bg-center bg-cover rounded-24 relative"
|
|
232
|
+
>
|
|
233
|
+
${this.backgroundUrl && x`<div
|
|
234
|
+
class="h-full w-full rounded-24 bg-neutral-20/10 absolute"
|
|
235
|
+
></div>`}
|
|
236
|
+
<div
|
|
237
|
+
class="h-full w-full flex flex-col items-center justify-center absolute"
|
|
238
|
+
>
|
|
239
|
+
<slot name="content"></slot>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
</div>
|
|
243
|
+
`;
|
|
244
|
+
}
|
|
245
|
+
dappTemplate() {
|
|
246
|
+
return x`
|
|
247
|
+
<div
|
|
248
|
+
data-testid="card"
|
|
249
|
+
style=${customStyleMap({
|
|
250
|
+
[`min-height: ${this.height}px`]: !!this.height,
|
|
251
|
+
[`width: ${this.width}px`]: !!this.width
|
|
252
|
+
})}
|
|
253
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr]", {
|
|
254
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
255
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
256
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
257
|
+
[this.customClass]: !!this.customClass,
|
|
258
|
+
["w-full"]: !this.width
|
|
259
|
+
})}
|
|
260
|
+
>
|
|
261
|
+
<div
|
|
262
|
+
style=${o({
|
|
263
|
+
backgroundImage: this.backgroundImageOrGradient()
|
|
264
|
+
})}
|
|
265
|
+
class=${cn(
|
|
266
|
+
"min-h-[240px] bg-center bg-cover rounded-[24px_24px_0_0] relative",
|
|
267
|
+
this.headerClass
|
|
268
|
+
)}
|
|
269
|
+
>
|
|
270
|
+
<div>
|
|
271
|
+
<slot name="header"></slot>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
<div
|
|
275
|
+
class="bg-neutral-100 shadow-neutral-above-shadow-1xl rounded-[0_0_24px_24px] relative"
|
|
276
|
+
>
|
|
277
|
+
<slot name="content"></slot>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
`;
|
|
281
|
+
}
|
|
282
|
+
render() {
|
|
283
|
+
switch (this.variant) {
|
|
284
|
+
case "with-header":
|
|
285
|
+
return this.withHeaderTemplate();
|
|
286
|
+
case "profile":
|
|
287
|
+
return this.profileTemplate();
|
|
288
|
+
case "profile-2":
|
|
289
|
+
return this.profile2Template();
|
|
290
|
+
case "hero":
|
|
291
|
+
return this.heroTemplate();
|
|
292
|
+
case "dapp":
|
|
293
|
+
return this.dappTemplate();
|
|
294
|
+
default:
|
|
295
|
+
return this.basicTemplate();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
};
|
|
299
|
+
__decorateClass([
|
|
300
|
+
n({ type: String })
|
|
301
|
+
], LuksoCard.prototype, "variant", 2);
|
|
302
|
+
__decorateClass([
|
|
303
|
+
n({ type: String, attribute: "background-url" })
|
|
304
|
+
], LuksoCard.prototype, "backgroundUrl", 2);
|
|
305
|
+
__decorateClass([
|
|
306
|
+
n({ type: String, attribute: "profile-url" })
|
|
307
|
+
], LuksoCard.prototype, "profileUrl", 2);
|
|
308
|
+
__decorateClass([
|
|
309
|
+
n({ type: String, attribute: "profile-address" })
|
|
310
|
+
], LuksoCard.prototype, "profileAddress", 2);
|
|
311
|
+
__decorateClass([
|
|
312
|
+
n({ type: Number })
|
|
313
|
+
], LuksoCard.prototype, "width", 2);
|
|
314
|
+
__decorateClass([
|
|
315
|
+
n({ type: Number })
|
|
316
|
+
], LuksoCard.prototype, "height", 2);
|
|
317
|
+
__decorateClass([
|
|
318
|
+
n({ type: String, attribute: "custom-class" })
|
|
319
|
+
], LuksoCard.prototype, "customClass", 2);
|
|
320
|
+
__decorateClass([
|
|
321
|
+
n({ type: String, attribute: "header-class" })
|
|
322
|
+
], LuksoCard.prototype, "headerClass", 2);
|
|
323
|
+
__decorateClass([
|
|
324
|
+
n({ type: String })
|
|
325
|
+
], LuksoCard.prototype, "size", 2);
|
|
326
|
+
__decorateClass([
|
|
327
|
+
n({ type: Boolean, attribute: "is-hoverable" })
|
|
328
|
+
], LuksoCard.prototype, "isHoverable", 2);
|
|
329
|
+
LuksoCard = __decorateClass([
|
|
330
|
+
e("lukso-card")
|
|
331
|
+
], LuksoCard);
|
|
332
|
+
|
|
333
|
+
export { LuksoCard };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
|
|
8
8
|
var __defProp = Object.defineProperty;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-1175c018.cjs');
|
|
8
8
|
require('../../directive-8278ab14.cjs');
|
|
9
9
|
|
|
10
10
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x, T as TailwindStyledElement } from '../../index-
|
|
1
|
+
import { x, T as TailwindStyledElement } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-17f918a2.js';
|
|
4
4
|
import '../../directive-2bb7789e.js';
|
|
5
5
|
|
|
6
6
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const index = require('../../index-e9668573.cjs');
|
|
8
8
|
require('../../directive-8278ab14.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
4
4
|
import '../../directive-2bb7789e.js';
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const state = require('../../state-f73a8b4f.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-tag/index.cjs');
|
|
11
11
|
require('../../directive-8278ab14.cjs');
|
|
12
|
-
require('../../style-map-
|
|
12
|
+
require('../../style-map-1175c018.cjs');
|
|
13
13
|
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
15
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { t } from '../../state-0a779257.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-tag/index.js';
|
|
7
7
|
import '../../directive-2bb7789e.js';
|
|
8
|
-
import '../../style-map-
|
|
8
|
+
import '../../style-map-17f918a2.js';
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
11
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-1175c018.cjs');
|
|
8
8
|
const index = require('../../index-e9668573.cjs');
|
|
9
9
|
require('../../directive-8278ab14.cjs');
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-17f918a2.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
5
5
|
import '../../directive-2bb7789e.js';
|
|
6
6
|
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
8
|
-
|
|
7
|
+
const styleMap = require('../../style-map-1175c018.cjs');
|
|
8
|
+
require('../../tailwind-config.cjs');
|
|
9
|
+
const cn = require('../../cn-312c6e88.cjs');
|
|
9
10
|
require('../../directive-8278ab14.cjs');
|
|
10
11
|
|
|
11
12
|
var __defProp = Object.defineProperty;
|
|
@@ -26,6 +27,7 @@ exports.LuksoProgress = class LuksoProgress extends shared_tailwindElement_index
|
|
|
26
27
|
this.max = 100;
|
|
27
28
|
this.current = 0;
|
|
28
29
|
this.variant = "success";
|
|
30
|
+
this.height = 16;
|
|
29
31
|
}
|
|
30
32
|
progressWidth() {
|
|
31
33
|
return this.current / this.max * 100;
|
|
@@ -34,22 +36,28 @@ exports.LuksoProgress = class LuksoProgress extends shared_tailwindElement_index
|
|
|
34
36
|
return shared_tailwindElement_index.x`
|
|
35
37
|
<div
|
|
36
38
|
data-testid="progress"
|
|
37
|
-
|
|
39
|
+
style=${styleMap.o({
|
|
40
|
+
height: this.height > 16 ? `${this.height}px` : "16px"
|
|
41
|
+
})}
|
|
42
|
+
class=${cn.cn("w-full rounded-24 bg-neutral-95 relative")}
|
|
38
43
|
>
|
|
39
44
|
<div
|
|
40
|
-
|
|
45
|
+
style=${styleMap.o({
|
|
46
|
+
width: `${this.progressWidth()}%`
|
|
47
|
+
})}
|
|
48
|
+
class=${cn.cn(
|
|
49
|
+
"rounded-s-24 h-full rounded-e-24 transition-all w-[1%]",
|
|
41
50
|
{
|
|
42
51
|
"bg-green-85": !!this.variant || this.variant === "success",
|
|
43
52
|
"bg-red-85": this.variant === "error",
|
|
44
53
|
"bg-yellow-85": this.variant === "warning"
|
|
45
54
|
}
|
|
46
|
-
)}
|
|
47
|
-
style=${styleMap.o({
|
|
48
|
-
width: `${this.progressWidth()}%`
|
|
49
|
-
})}
|
|
55
|
+
)}
|
|
50
56
|
></div>
|
|
51
57
|
<div
|
|
52
|
-
class
|
|
58
|
+
class=${cn.cn(
|
|
59
|
+
"shadow-neutral-inner-shadow h-full absolute w-full top-0 rounded-24"
|
|
60
|
+
)}
|
|
53
61
|
></div>
|
|
54
62
|
</div>
|
|
55
63
|
`;
|
|
@@ -67,6 +75,9 @@ __decorateClass([
|
|
|
67
75
|
__decorateClass([
|
|
68
76
|
queryAssignedElements.n({ type: String })
|
|
69
77
|
], exports.LuksoProgress.prototype, "variant", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
queryAssignedElements.n({ type: Number })
|
|
80
|
+
], exports.LuksoProgress.prototype, "height", 2);
|
|
70
81
|
exports.LuksoProgress = __decorateClass([
|
|
71
82
|
queryAssignedElements.e("lukso-progress")
|
|
72
83
|
], exports.LuksoProgress);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-progress/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAE7D,qBACa,aAAc,SAAQ,eAAe;IAEhD,GAAG,SAAI;IAGP,GAAG,SAAM;IAGT,OAAO,SAAI;IAGX,OAAO,EAAE,eAAe,CAAY;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-progress/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;AAE7D,qBACa,aAAc,SAAQ,eAAe;IAEhD,GAAG,SAAI;IAGP,GAAG,SAAM;IAGT,OAAO,SAAI;IAGX,OAAO,EAAE,eAAe,CAAY;IAGpC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAK;IAE/B,OAAO,CAAC,aAAa;IAIrB,MAAM;CA8BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,aAAa,CAAA;KAChC;CACF"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
4
|
-
import
|
|
3
|
+
import { o } from '../../style-map-17f918a2.js';
|
|
4
|
+
import '../../tailwind-config.js';
|
|
5
|
+
import { c as cn } from '../../cn-1594f5ba.js';
|
|
5
6
|
import '../../directive-2bb7789e.js';
|
|
6
7
|
|
|
7
8
|
var __defProp = Object.defineProperty;
|
|
@@ -22,6 +23,7 @@ let LuksoProgress = class extends TailwindElement {
|
|
|
22
23
|
this.max = 100;
|
|
23
24
|
this.current = 0;
|
|
24
25
|
this.variant = "success";
|
|
26
|
+
this.height = 16;
|
|
25
27
|
}
|
|
26
28
|
progressWidth() {
|
|
27
29
|
return this.current / this.max * 100;
|
|
@@ -30,22 +32,28 @@ let LuksoProgress = class extends TailwindElement {
|
|
|
30
32
|
return x`
|
|
31
33
|
<div
|
|
32
34
|
data-testid="progress"
|
|
33
|
-
|
|
35
|
+
style=${o({
|
|
36
|
+
height: this.height > 16 ? `${this.height}px` : "16px"
|
|
37
|
+
})}
|
|
38
|
+
class=${cn("w-full rounded-24 bg-neutral-95 relative")}
|
|
34
39
|
>
|
|
35
40
|
<div
|
|
36
|
-
|
|
41
|
+
style=${o({
|
|
42
|
+
width: `${this.progressWidth()}%`
|
|
43
|
+
})}
|
|
44
|
+
class=${cn(
|
|
45
|
+
"rounded-s-24 h-full rounded-e-24 transition-all w-[1%]",
|
|
37
46
|
{
|
|
38
47
|
"bg-green-85": !!this.variant || this.variant === "success",
|
|
39
48
|
"bg-red-85": this.variant === "error",
|
|
40
49
|
"bg-yellow-85": this.variant === "warning"
|
|
41
50
|
}
|
|
42
|
-
)}
|
|
43
|
-
style=${o({
|
|
44
|
-
width: `${this.progressWidth()}%`
|
|
45
|
-
})}
|
|
51
|
+
)}
|
|
46
52
|
></div>
|
|
47
53
|
<div
|
|
48
|
-
class
|
|
54
|
+
class=${cn(
|
|
55
|
+
"shadow-neutral-inner-shadow h-full absolute w-full top-0 rounded-24"
|
|
56
|
+
)}
|
|
49
57
|
></div>
|
|
50
58
|
</div>
|
|
51
59
|
`;
|
|
@@ -63,6 +71,9 @@ __decorateClass([
|
|
|
63
71
|
__decorateClass([
|
|
64
72
|
n({ type: String })
|
|
65
73
|
], LuksoProgress.prototype, "variant", 2);
|
|
74
|
+
__decorateClass([
|
|
75
|
+
n({ type: Number })
|
|
76
|
+
], LuksoProgress.prototype, "height", 2);
|
|
66
77
|
LuksoProgress = __decorateClass([
|
|
67
78
|
e("lukso-progress")
|
|
68
79
|
], LuksoProgress);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lukso-progress.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-progress/lukso-progress.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,kEAAkE;AAClE,QAAA,MAAM,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"lukso-progress.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-progress/lukso-progress.stories.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AAEhD,OAAO,SAAS,CAAA;AAEhB,kEAAkE;AAClE,QAAA,MAAM,IAAI,EAAE,IAqDX,CAAA;AAED,eAAe,IAAI,CAAA;AAWnB,yCAAyC;AACzC,eAAO,MAAM,eAAe,KAAoB,CAAA;AAEhD,uCAAuC;AACvC,eAAO,MAAM,aAAa,KAAoB,CAAA"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f426e548.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-1d5d9d4c.cjs');
|
|
7
7
|
const directive = require('../../directive-8278ab14.cjs');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, b as T, a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { A, b as T, a as TailwindElement, x } from '../../index-35ca0b42.js';
|
|
2
2
|
import { n, e as e$2 } from '../../query-assigned-elements-5d94572f.js';
|
|
3
3
|
import { i, t, e as e$1 } from '../../directive-2bb7789e.js';
|
|
4
4
|
|