@lukso/web-components 1.51.2 → 1.51.3
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 +3 -3
- package/dist/components/index.js +3 -3
- package/dist/components/lukso-button/index.cjs +1 -1
- package/dist/components/lukso-button/index.js +1 -1
- package/dist/components/lukso-card/index.cjs +4 -4
- package/dist/components/lukso-card/index.d.ts +2 -2
- package/dist/components/lukso-card/index.d.ts.map +1 -1
- package/dist/components/lukso-card/index.js +4 -4
- package/dist/components/lukso-card/lukso-card.stories.d.ts +1 -1
- package/dist/components/lukso-card/lukso-card.stories.d.ts.map +1 -1
- 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 +2 -2
- package/dist/components/lukso-progress/index.js +2 -2
- 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 +2 -2
- package/dist/components/lukso-search/index.js +2 -2
- package/dist/components/lukso-select/index.cjs +2 -2
- package/dist/components/lukso-select/index.js +2 -2
- 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 +1 -1
- package/dist/components/lukso-username/index.js +1 -1
- package/dist/components/lukso-wizard/index.cjs +1 -1
- package/dist/components/lukso-wizard/index.js +1 -1
- package/dist/{index-87e624a1.cjs → index-340046e7.cjs} +78 -64
- package/dist/{index-d0d67b5f.js → index-8331d2b8.js} +75 -61
- package/dist/index-92b65473.js +39 -0
- package/dist/index-d548eac4.cjs +46 -0
- package/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-74906707.cjs → style-map-02fa5128.cjs} +1 -1
- package/dist/{style-map-88b4d8ad.js → style-map-be0fc31f.js} +1 -1
- package/package.json +1 -1
- package/dist/index-2f5488b6.js +0 -39
- package/dist/index-aaa67d55.cjs +0 -46
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const shared_tailwindElement_index = require('./index-
|
|
3
|
+
const shared_tailwindElement_index = require('./index-d548eac4.cjs');
|
|
4
4
|
const queryAssignedElements = require('./query-assigned-elements-1d5d9d4c.cjs');
|
|
5
|
-
const styleMap = require('./style-map-
|
|
6
|
-
const index = require('./index-e9668573.cjs');
|
|
5
|
+
const styleMap = require('./style-map-02fa5128.cjs');
|
|
7
6
|
require('./components/lukso-profile/index.cjs');
|
|
8
7
|
require('./color-palette.cjs');
|
|
9
8
|
|
|
10
9
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
11
10
|
const style = ":host {\n display: flex;\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
|
|
12
11
|
|
|
13
|
-
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-
|
|
12
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-340046e7.cjs', document.baseURI).href)).replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
14
13
|
|
|
15
|
-
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-
|
|
14
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-340046e7.cjs', document.baseURI).href)).replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
16
15
|
|
|
17
|
-
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-
|
|
16
|
+
(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index-340046e7.cjs', document.baseURI).href)).replace(/^file:\/\/|\/\w+\.?[jt]s$/g, "").replace(/\/index\.[a-z]+$/g, "");
|
|
18
17
|
|
|
19
18
|
/**
|
|
20
19
|
* The code in this file is copied from https://github.com/lukeed/clsx and modified to suit the needs of tailwind-merge better.
|
|
@@ -2559,8 +2558,8 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2559
2558
|
this.backgroundUrl = "";
|
|
2560
2559
|
this.profileUrl = "";
|
|
2561
2560
|
this.profileAddress = "";
|
|
2562
|
-
this.
|
|
2563
|
-
this.
|
|
2561
|
+
this.width = void 0;
|
|
2562
|
+
this.height = void 0;
|
|
2564
2563
|
this.customClass = "";
|
|
2565
2564
|
this.headerClass = "";
|
|
2566
2565
|
this.size = "medium";
|
|
@@ -2582,15 +2581,17 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2582
2581
|
return shared_tailwindElement_index.x`
|
|
2583
2582
|
<div
|
|
2584
2583
|
data-testid="card"
|
|
2585
|
-
|
|
2584
|
+
style=${styleMap.o({
|
|
2585
|
+
minHeight: `${this.height}px`,
|
|
2586
|
+
width: `${this.width}px`
|
|
2587
|
+
})}
|
|
2588
|
+
class=${cn("bg-neutral-100", {
|
|
2586
2589
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2587
2590
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2588
2591
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2589
2592
|
[this.customClass]: !!this.customClass,
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2593
|
-
})}"
|
|
2593
|
+
"w-full": !this.width
|
|
2594
|
+
})}
|
|
2594
2595
|
>
|
|
2595
2596
|
<slot name="content"></slot>
|
|
2596
2597
|
</div>
|
|
@@ -2600,17 +2601,17 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2600
2601
|
return shared_tailwindElement_index.x`
|
|
2601
2602
|
<div
|
|
2602
2603
|
data-testid="card"
|
|
2603
|
-
|
|
2604
|
-
{
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
[
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
)}
|
|
2604
|
+
style=${styleMap.o({
|
|
2605
|
+
minHeight: `${this.height}px`,
|
|
2606
|
+
width: `${this.width}px`
|
|
2607
|
+
})}
|
|
2608
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr] overflow-hidden", {
|
|
2609
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2610
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2611
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2612
|
+
[this.customClass]: !!this.customClass,
|
|
2613
|
+
"w-full": !this.width
|
|
2614
|
+
})}
|
|
2614
2615
|
>
|
|
2615
2616
|
<div class=${this.headerClass}>
|
|
2616
2617
|
<slot name="header"></slot>
|
|
@@ -2625,48 +2626,55 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2625
2626
|
return shared_tailwindElement_index.x`
|
|
2626
2627
|
<div
|
|
2627
2628
|
data-testid="card"
|
|
2628
|
-
|
|
2629
|
+
style=${styleMap.o({
|
|
2630
|
+
minHeight: `${this.height}px`,
|
|
2631
|
+
width: `${this.width}px`
|
|
2632
|
+
})}
|
|
2633
|
+
class=${cn("bg-neutral-100 grid", {
|
|
2629
2634
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2630
2635
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2631
2636
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2632
2637
|
[this.customClass]: !!this.customClass,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2636
|
-
})}"
|
|
2638
|
+
"w-full": !this.width
|
|
2639
|
+
})}
|
|
2637
2640
|
>
|
|
2638
2641
|
<div
|
|
2639
2642
|
style=${styleMap.o({
|
|
2640
2643
|
backgroundImage: this.backgroundImageOrGradient()
|
|
2641
2644
|
})}
|
|
2642
2645
|
class=${cn(
|
|
2643
|
-
"
|
|
2646
|
+
"row-end-1 col-span-1 col-end-1 row-span-1 h-full w-full bg-center bg-cover rounded-24 relative",
|
|
2644
2647
|
this.headerClass
|
|
2645
2648
|
)}
|
|
2646
2649
|
>
|
|
2647
2650
|
${this.backgroundUrl && shared_tailwindElement_index.x` <div
|
|
2648
|
-
class="
|
|
2651
|
+
class="h-full full rounded-[24px_24px_0_0] bg-neutral-20/10 absolute"
|
|
2649
2652
|
></div>`}
|
|
2650
2653
|
<div>
|
|
2651
2654
|
<slot name="header"></slot>
|
|
2652
2655
|
</div>
|
|
2653
2656
|
</div>
|
|
2654
|
-
<div
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2657
|
+
<div
|
|
2658
|
+
class="grid grid-rows-[1fr,auto] row-end-1 col-span-1 col-end-1 row-span-1"
|
|
2659
|
+
>
|
|
2660
|
+
<div></div>
|
|
2661
|
+
<div class="bg-neutral-100 rounded-24 relative">
|
|
2662
|
+
<lukso-profile
|
|
2663
|
+
profile-url=${this.profileUrl}
|
|
2664
|
+
size="large"
|
|
2665
|
+
profile-address=${this.profileAddress}
|
|
2666
|
+
has-identicon
|
|
2667
|
+
class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
|
|
2668
|
+
></lukso-profile>
|
|
2665
2669
|
<div
|
|
2666
|
-
class="
|
|
2667
|
-
|
|
2670
|
+
class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-3"
|
|
2671
|
+
>
|
|
2672
|
+
<div
|
|
2673
|
+
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
|
|
2674
|
+
></div>
|
|
2675
|
+
</div>
|
|
2676
|
+
<slot name="content"></slot>
|
|
2668
2677
|
</div>
|
|
2669
|
-
<slot name="content"></slot>
|
|
2670
2678
|
</div>
|
|
2671
2679
|
</div>
|
|
2672
2680
|
`;
|
|
@@ -2675,15 +2683,17 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2675
2683
|
return shared_tailwindElement_index.x`
|
|
2676
2684
|
<div
|
|
2677
2685
|
data-testid="card"
|
|
2678
|
-
|
|
2686
|
+
style=${styleMap.o({
|
|
2687
|
+
minHeight: `${this.height}px`,
|
|
2688
|
+
width: `${this.width}px`
|
|
2689
|
+
})}
|
|
2690
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr]", {
|
|
2679
2691
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2680
2692
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2681
2693
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2682
2694
|
[this.customClass]: !!this.customClass,
|
|
2683
|
-
["w-
|
|
2684
|
-
|
|
2685
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2686
|
-
})}"
|
|
2695
|
+
["w-full"]: !this.width
|
|
2696
|
+
})}
|
|
2687
2697
|
>
|
|
2688
2698
|
<div
|
|
2689
2699
|
style=${styleMap.o({
|
|
@@ -2732,15 +2742,17 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2732
2742
|
return shared_tailwindElement_index.x`
|
|
2733
2743
|
<div
|
|
2734
2744
|
data-testid="card"
|
|
2735
|
-
|
|
2745
|
+
style=${styleMap.o({
|
|
2746
|
+
minHeight: `${this.height}px`,
|
|
2747
|
+
width: `${this.width}px`
|
|
2748
|
+
})}
|
|
2749
|
+
class=${cn("h-[240px] flex bg-neutral-100", {
|
|
2736
2750
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2737
2751
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2738
2752
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2739
2753
|
[this.customClass]: !!this.customClass,
|
|
2740
|
-
["w-
|
|
2741
|
-
|
|
2742
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2743
|
-
})}"
|
|
2754
|
+
["w-full"]: !this.width
|
|
2755
|
+
})}
|
|
2744
2756
|
>
|
|
2745
2757
|
<div
|
|
2746
2758
|
style=${styleMap.o({
|
|
@@ -2764,15 +2776,17 @@ exports.LuksoCard = class LuksoCard extends shared_tailwindElement_index.Tailwin
|
|
|
2764
2776
|
return shared_tailwindElement_index.x`
|
|
2765
2777
|
<div
|
|
2766
2778
|
data-testid="card"
|
|
2767
|
-
|
|
2779
|
+
style=${styleMap.o({
|
|
2780
|
+
minHeight: `${this.height}px`,
|
|
2781
|
+
width: `${this.width}px`
|
|
2782
|
+
})}
|
|
2783
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr]", {
|
|
2768
2784
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2769
2785
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2770
2786
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2771
2787
|
[this.customClass]: !!this.customClass,
|
|
2772
|
-
["w-
|
|
2773
|
-
|
|
2774
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2775
|
-
})}"
|
|
2788
|
+
["w-full"]: !this.width
|
|
2789
|
+
})}
|
|
2776
2790
|
>
|
|
2777
2791
|
<div
|
|
2778
2792
|
style=${styleMap.o({
|
|
@@ -2825,11 +2839,11 @@ __decorateClass([
|
|
|
2825
2839
|
queryAssignedElements.n({ type: String, attribute: "profile-address" })
|
|
2826
2840
|
], exports.LuksoCard.prototype, "profileAddress", 2);
|
|
2827
2841
|
__decorateClass([
|
|
2828
|
-
queryAssignedElements.n({ type:
|
|
2829
|
-
], exports.LuksoCard.prototype, "
|
|
2842
|
+
queryAssignedElements.n({ type: Number })
|
|
2843
|
+
], exports.LuksoCard.prototype, "width", 2);
|
|
2830
2844
|
__decorateClass([
|
|
2831
|
-
queryAssignedElements.n({ type:
|
|
2832
|
-
], exports.LuksoCard.prototype, "
|
|
2845
|
+
queryAssignedElements.n({ type: Number })
|
|
2846
|
+
], exports.LuksoCard.prototype, "height", 2);
|
|
2833
2847
|
__decorateClass([
|
|
2834
2848
|
queryAssignedElements.n({ type: String, attribute: "custom-class" })
|
|
2835
2849
|
], exports.LuksoCard.prototype, "customClass", 2);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from './index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from './index-92b65473.js';
|
|
2
2
|
import { n, e } from './query-assigned-elements-5d94572f.js';
|
|
3
|
-
import { o } from './style-map-
|
|
4
|
-
import { c as customClassMap } from './index-5e194caf.js';
|
|
3
|
+
import { o } from './style-map-be0fc31f.js';
|
|
5
4
|
import './components/lukso-profile/index.js';
|
|
6
5
|
import './color-palette.js';
|
|
7
6
|
|
|
@@ -2556,8 +2555,8 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2556
2555
|
this.backgroundUrl = "";
|
|
2557
2556
|
this.profileUrl = "";
|
|
2558
2557
|
this.profileAddress = "";
|
|
2559
|
-
this.
|
|
2560
|
-
this.
|
|
2558
|
+
this.width = void 0;
|
|
2559
|
+
this.height = void 0;
|
|
2561
2560
|
this.customClass = "";
|
|
2562
2561
|
this.headerClass = "";
|
|
2563
2562
|
this.size = "medium";
|
|
@@ -2579,15 +2578,17 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2579
2578
|
return x`
|
|
2580
2579
|
<div
|
|
2581
2580
|
data-testid="card"
|
|
2582
|
-
|
|
2581
|
+
style=${o({
|
|
2582
|
+
minHeight: `${this.height}px`,
|
|
2583
|
+
width: `${this.width}px`
|
|
2584
|
+
})}
|
|
2585
|
+
class=${cn("bg-neutral-100", {
|
|
2583
2586
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2584
2587
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2585
2588
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2586
2589
|
[this.customClass]: !!this.customClass,
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2590
|
-
})}"
|
|
2590
|
+
"w-full": !this.width
|
|
2591
|
+
})}
|
|
2591
2592
|
>
|
|
2592
2593
|
<slot name="content"></slot>
|
|
2593
2594
|
</div>
|
|
@@ -2597,17 +2598,17 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2597
2598
|
return x`
|
|
2598
2599
|
<div
|
|
2599
2600
|
data-testid="card"
|
|
2600
|
-
|
|
2601
|
-
{
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
[
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
)}
|
|
2601
|
+
style=${o({
|
|
2602
|
+
minHeight: `${this.height}px`,
|
|
2603
|
+
width: `${this.width}px`
|
|
2604
|
+
})}
|
|
2605
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr] overflow-hidden", {
|
|
2606
|
+
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2607
|
+
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2608
|
+
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2609
|
+
[this.customClass]: !!this.customClass,
|
|
2610
|
+
"w-full": !this.width
|
|
2611
|
+
})}
|
|
2611
2612
|
>
|
|
2612
2613
|
<div class=${this.headerClass}>
|
|
2613
2614
|
<slot name="header"></slot>
|
|
@@ -2622,48 +2623,55 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2622
2623
|
return x`
|
|
2623
2624
|
<div
|
|
2624
2625
|
data-testid="card"
|
|
2625
|
-
|
|
2626
|
+
style=${o({
|
|
2627
|
+
minHeight: `${this.height}px`,
|
|
2628
|
+
width: `${this.width}px`
|
|
2629
|
+
})}
|
|
2630
|
+
class=${cn("bg-neutral-100 grid", {
|
|
2626
2631
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2627
2632
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2628
2633
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2629
2634
|
[this.customClass]: !!this.customClass,
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2633
|
-
})}"
|
|
2635
|
+
"w-full": !this.width
|
|
2636
|
+
})}
|
|
2634
2637
|
>
|
|
2635
2638
|
<div
|
|
2636
2639
|
style=${o({
|
|
2637
2640
|
backgroundImage: this.backgroundImageOrGradient()
|
|
2638
2641
|
})}
|
|
2639
2642
|
class=${cn(
|
|
2640
|
-
"
|
|
2643
|
+
"row-end-1 col-span-1 col-end-1 row-span-1 h-full w-full bg-center bg-cover rounded-24 relative",
|
|
2641
2644
|
this.headerClass
|
|
2642
2645
|
)}
|
|
2643
2646
|
>
|
|
2644
2647
|
${this.backgroundUrl && x` <div
|
|
2645
|
-
class="
|
|
2648
|
+
class="h-full full rounded-[24px_24px_0_0] bg-neutral-20/10 absolute"
|
|
2646
2649
|
></div>`}
|
|
2647
2650
|
<div>
|
|
2648
2651
|
<slot name="header"></slot>
|
|
2649
2652
|
</div>
|
|
2650
2653
|
</div>
|
|
2651
|
-
<div
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2654
|
+
<div
|
|
2655
|
+
class="grid grid-rows-[1fr,auto] row-end-1 col-span-1 col-end-1 row-span-1"
|
|
2656
|
+
>
|
|
2657
|
+
<div></div>
|
|
2658
|
+
<div class="bg-neutral-100 rounded-24 relative">
|
|
2659
|
+
<lukso-profile
|
|
2660
|
+
profile-url=${this.profileUrl}
|
|
2661
|
+
size="large"
|
|
2662
|
+
profile-address=${this.profileAddress}
|
|
2663
|
+
has-identicon
|
|
2664
|
+
class="absolute -top-[40px] left-[calc(50%_-_40px)] z-10"
|
|
2665
|
+
></lukso-profile>
|
|
2662
2666
|
<div
|
|
2663
|
-
class="
|
|
2664
|
-
|
|
2667
|
+
class="overflow-hidden w-[153px] h-[70px] -top-[70px] relative mx-auto flex items-end justify-center -mb-3"
|
|
2668
|
+
>
|
|
2669
|
+
<div
|
|
2670
|
+
class="bg-neutral-100 rounded-[103px_103px_0_0] w-[96px] h-[48px]"
|
|
2671
|
+
></div>
|
|
2672
|
+
</div>
|
|
2673
|
+
<slot name="content"></slot>
|
|
2665
2674
|
</div>
|
|
2666
|
-
<slot name="content"></slot>
|
|
2667
2675
|
</div>
|
|
2668
2676
|
</div>
|
|
2669
2677
|
`;
|
|
@@ -2672,15 +2680,17 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2672
2680
|
return x`
|
|
2673
2681
|
<div
|
|
2674
2682
|
data-testid="card"
|
|
2675
|
-
|
|
2683
|
+
style=${o({
|
|
2684
|
+
minHeight: `${this.height}px`,
|
|
2685
|
+
width: `${this.width}px`
|
|
2686
|
+
})}
|
|
2687
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr]", {
|
|
2676
2688
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2677
2689
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2678
2690
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2679
2691
|
[this.customClass]: !!this.customClass,
|
|
2680
|
-
["w-
|
|
2681
|
-
|
|
2682
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2683
|
-
})}"
|
|
2692
|
+
["w-full"]: !this.width
|
|
2693
|
+
})}
|
|
2684
2694
|
>
|
|
2685
2695
|
<div
|
|
2686
2696
|
style=${o({
|
|
@@ -2729,15 +2739,17 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2729
2739
|
return x`
|
|
2730
2740
|
<div
|
|
2731
2741
|
data-testid="card"
|
|
2732
|
-
|
|
2742
|
+
style=${o({
|
|
2743
|
+
minHeight: `${this.height}px`,
|
|
2744
|
+
width: `${this.width}px`
|
|
2745
|
+
})}
|
|
2746
|
+
class=${cn("h-[240px] flex bg-neutral-100", {
|
|
2733
2747
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2734
2748
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2735
2749
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2736
2750
|
[this.customClass]: !!this.customClass,
|
|
2737
|
-
["w-
|
|
2738
|
-
|
|
2739
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2740
|
-
})}"
|
|
2751
|
+
["w-full"]: !this.width
|
|
2752
|
+
})}
|
|
2741
2753
|
>
|
|
2742
2754
|
<div
|
|
2743
2755
|
style=${o({
|
|
@@ -2761,15 +2773,17 @@ let LuksoCard = class extends TailwindStyledElement(style) {
|
|
|
2761
2773
|
return x`
|
|
2762
2774
|
<div
|
|
2763
2775
|
data-testid="card"
|
|
2764
|
-
|
|
2776
|
+
style=${o({
|
|
2777
|
+
minHeight: `${this.height}px`,
|
|
2778
|
+
width: `${this.width}px`
|
|
2779
|
+
})}
|
|
2780
|
+
class=${cn("bg-neutral-100 grid grid-rows-[auto,1fr]", {
|
|
2765
2781
|
[this.mediumStyles]: !this.customClass && this.size === "medium",
|
|
2766
2782
|
[this.smallStyles]: !this.customClass && this.size === "small",
|
|
2767
2783
|
[this.smallHoverStyles]: this.isHoverable && this.size === "small",
|
|
2768
2784
|
[this.customClass]: !!this.customClass,
|
|
2769
|
-
["w-
|
|
2770
|
-
|
|
2771
|
-
["min-h-[534px]"]: this.isFixedHeight
|
|
2772
|
-
})}"
|
|
2785
|
+
["w-full"]: !this.width
|
|
2786
|
+
})}
|
|
2773
2787
|
>
|
|
2774
2788
|
<div
|
|
2775
2789
|
style=${o({
|
|
@@ -2822,11 +2836,11 @@ __decorateClass([
|
|
|
2822
2836
|
n({ type: String, attribute: "profile-address" })
|
|
2823
2837
|
], LuksoCard.prototype, "profileAddress", 2);
|
|
2824
2838
|
__decorateClass([
|
|
2825
|
-
n({ type:
|
|
2826
|
-
], LuksoCard.prototype, "
|
|
2839
|
+
n({ type: Number })
|
|
2840
|
+
], LuksoCard.prototype, "width", 2);
|
|
2827
2841
|
__decorateClass([
|
|
2828
|
-
n({ type:
|
|
2829
|
-
], LuksoCard.prototype, "
|
|
2842
|
+
n({ type: Number })
|
|
2843
|
+
], LuksoCard.prototype, "height", 2);
|
|
2830
2844
|
__decorateClass([
|
|
2831
2845
|
n({ type: String, attribute: "custom-class" })
|
|
2832
2846
|
], LuksoCard.prototype, "customClass", 2);
|