@lukso/web-components 1.71.2 → 1.71.4
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 +37 -21
- package/dist/components/lukso-button/index.d.ts +1 -1
- package/dist/components/lukso-button/index.d.ts.map +1 -1
- package/dist/components/lukso-button/index.js +37 -21
- package/dist/components/lukso-card/index.cjs +3 -3
- package/dist/components/lukso-card/index.js +3 -3
- 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-image/index.cjs +19 -16
- package/dist/components/lukso-image/index.d.ts.map +1 -1
- package/dist/components/lukso-image/index.js +19 -16
- 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 +3 -3
- package/dist/components/lukso-navbar/index.js +3 -3
- 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 +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 +2 -2
- package/dist/components/lukso-share/index.js +2 -2
- 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 +2 -2
- package/dist/components/lukso-tooltip/index.js +2 -2
- 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-b434231b.js → index-0a44908a.js} +1 -1
- package/dist/{index-733d3158.cjs → index-a3323937.cjs} +1 -1
- package/dist/{index-a68aad08.js → index-b704d563.js} +1 -1
- package/dist/{index-5e074b8e.cjs → index-ebf01ef6.cjs} +1 -1
- 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-43a6ddb8.js → style-map-62a2b947.js} +1 -1
- package/dist/{style-map-6443acae.cjs → style-map-f1a1ca02.cjs} +1 -1
- package/dist/tailwind-config.cjs +8 -4
- package/dist/tailwind-config.d.ts +8 -4
- package/dist/tailwind-config.d.ts.map +1 -1
- package/dist/tailwind-config.js +8 -4
- package/package.json +1 -1
- package/tools/cn.cjs +1 -1
- package/tools/cn.js +1 -1
- package/tools/index.cjs +1 -1
- package/tools/index.js +1 -1
- package/tools/{tailwind-config-e0e28660.js → tailwind-config-b6c9cbcf.js} +8 -4
- package/tools/{tailwind-config-351a7d5d.cjs → tailwind-config-dc0e5c90.cjs} +8 -4
- package/tools/tailwind-config.cjs +1 -1
- package/tools/tailwind-config.d.ts +8 -4
- package/tools/tailwind-config.d.ts.map +1 -1
- package/tools/tailwind-config.js +1 -1
|
@@ -24,15 +24,15 @@ const components_luksoTest_index = require('./lukso-test/index.cjs');
|
|
|
24
24
|
const components_luksoTooltip_index = require('./lukso-tooltip/index.cjs');
|
|
25
25
|
const components_luksoUsername_index = require('./lukso-username/index.cjs');
|
|
26
26
|
const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
|
|
27
|
-
const shared_tailwindElement_index = require('../index-
|
|
27
|
+
const shared_tailwindElement_index = require('../index-ebf01ef6.cjs');
|
|
28
28
|
require('../cn-5a985a94.cjs');
|
|
29
29
|
require('../query-assigned-elements-d5e45650.cjs');
|
|
30
30
|
require('../state-d9fb972b.cjs');
|
|
31
31
|
require('../index-66211c85.cjs');
|
|
32
32
|
require('../tailwind-config.cjs');
|
|
33
|
-
require('../style-map-
|
|
33
|
+
require('../style-map-f1a1ca02.cjs');
|
|
34
34
|
require('../directive-8278ab14.cjs');
|
|
35
|
-
require('../index-
|
|
35
|
+
require('../index-a3323937.cjs');
|
|
36
36
|
require('../index-e9668573.cjs');
|
|
37
37
|
|
|
38
38
|
|
package/dist/components/index.js
CHANGED
|
@@ -20,13 +20,13 @@ export { LuksoTest } from './lukso-test/index.js';
|
|
|
20
20
|
export { LuksoTooltip } from './lukso-tooltip/index.js';
|
|
21
21
|
export { LuksoUsername } from './lukso-username/index.js';
|
|
22
22
|
export { LuksoWizard } from './lukso-wizard/index.js';
|
|
23
|
-
export { a as TailwindElement, T as TailwindStyledElement } from '../index-
|
|
23
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-b704d563.js';
|
|
24
24
|
import '../cn-e708e7fa.js';
|
|
25
25
|
import '../query-assigned-elements-1c8c9e90.js';
|
|
26
26
|
import '../state-b9ca4e74.js';
|
|
27
27
|
import '../index-faa8c4ae.js';
|
|
28
28
|
import '../tailwind-config.js';
|
|
29
|
-
import '../style-map-
|
|
29
|
+
import '../style-map-62a2b947.js';
|
|
30
30
|
import '../directive-2bb7789e.js';
|
|
31
|
-
import '../index-
|
|
31
|
+
import '../index-0a44908a.js';
|
|
32
32
|
import '../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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const state = require('../../state-d9fb972b.cjs');
|
|
8
8
|
const index = require('../../index-66211c85.cjs');
|
|
@@ -45,10 +45,10 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
45
45
|
this.noTransition = false;
|
|
46
46
|
this.timer = 0;
|
|
47
47
|
this.counterStyles = index.ie({
|
|
48
|
-
base:
|
|
48
|
+
base: "ml-2 border border-neutral-20 rounded-4 px-[2px] py-[1px] paragraph-inter-10-semi-bold text-neutral-20 bg-neutral-100",
|
|
49
49
|
variants: {
|
|
50
50
|
isActive: {
|
|
51
|
-
true:
|
|
51
|
+
true: "text-neutral-100 bg-neutral-20"
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -61,27 +61,23 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
61
61
|
color: {
|
|
62
62
|
primary: `bg-neutral-20 border-neutral-20 text-neutral-100
|
|
63
63
|
disabled:hover:!bg-neutral-20 disabled:hover:!border-neutral-20
|
|
64
|
-
hover:
|
|
65
|
-
active:
|
|
66
|
-
|
|
67
|
-
secondary: `bg-neutral-100 border-neutral-90 text-neutral-20
|
|
68
|
-
hover:shadow-button-hover-secondary active:shadow-button-press-secondary`,
|
|
64
|
+
hover:bg-neutral-25 hover:border-neutral-25
|
|
65
|
+
active:bg-neutral-25 active:border-neutral-25 before:bg-neutral-10`,
|
|
66
|
+
secondary: "bg-neutral-100 border-neutral-90 text-neutral-20",
|
|
69
67
|
landing: `bg-purple-51 border-purple-51 text-neutral-100
|
|
70
68
|
disabled:hover:!bg-purple-51 disabled:hover:!border-purple-51
|
|
71
|
-
hover:
|
|
72
|
-
active:shadow-button-press-primary
|
|
73
|
-
before:bg-purple-51`,
|
|
69
|
+
hover:bg-purple-58 hover:border-purple-58 before:bg-purple-51`,
|
|
74
70
|
text: `bg-transparent border-none text-neutral-20
|
|
75
71
|
hover:text-neutral-35
|
|
76
72
|
active:text-neutral-35 active:scale-100
|
|
77
73
|
disabled:text-neutral-90`,
|
|
78
|
-
link:
|
|
79
|
-
"nav-button":
|
|
80
|
-
"nav-text":
|
|
74
|
+
link: "bg-transparent border-none active:!scale-100 underline text-purple-51 hover:text-purple-41",
|
|
75
|
+
"nav-button": "nav-apax-12-medium-uppercase text-purple-41 !text-12",
|
|
76
|
+
"nav-text": "bg-transparent border-none nav-apax-12-medium-uppercase text-purple-63 hover:text-purple-41 !text-12 transition"
|
|
81
77
|
},
|
|
82
78
|
size: {
|
|
83
|
-
medium:
|
|
84
|
-
small:
|
|
79
|
+
medium: "h-[48px] px-6 paragraph-inter-16-semi-bold rounded-12",
|
|
80
|
+
small: "h-[28px] px-3 paragraph-inter-12-medium rounded-8"
|
|
85
81
|
},
|
|
86
82
|
isLongPress: {
|
|
87
83
|
true: `relative overflow-hidden z-[1] active:outline-0
|
|
@@ -89,16 +85,16 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
89
85
|
before:transition-all before:duration-[2000ms] before:z-[-1] before:rounded-0`
|
|
90
86
|
},
|
|
91
87
|
isFullWidth: {
|
|
92
|
-
true:
|
|
88
|
+
true: "w-full"
|
|
93
89
|
},
|
|
94
90
|
isPressed: {
|
|
95
|
-
true:
|
|
91
|
+
true: "before:w-full before:z-[-1]"
|
|
96
92
|
},
|
|
97
93
|
noTransition: {
|
|
98
|
-
true:
|
|
94
|
+
true: "before:transition-none"
|
|
99
95
|
},
|
|
100
96
|
isActive: {
|
|
101
|
-
true:
|
|
97
|
+
true: "border-neutral-20"
|
|
102
98
|
}
|
|
103
99
|
},
|
|
104
100
|
compoundVariants: [
|
|
@@ -111,6 +107,26 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
111
107
|
size: ["medium", "small"],
|
|
112
108
|
color: "link",
|
|
113
109
|
class: "p-0 h-[initial]"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
size: ["medium"],
|
|
113
|
+
color: ["primary", "landing"],
|
|
114
|
+
class: "hover:shadow-button-medium-hover-primary active:shadow-button-medium-press-primary"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
size: ["medium"],
|
|
118
|
+
color: ["secondary"],
|
|
119
|
+
class: "hover:shadow-button-medium-hover-secondary active:shadow-button-medium-press-secondary"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
size: ["small"],
|
|
123
|
+
color: ["primary", "landing"],
|
|
124
|
+
class: "hover:shadow-button-small-hover-primary active:shadow-button-small-press-primary"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
size: ["small"],
|
|
128
|
+
color: ["secondary"],
|
|
129
|
+
class: "hover:shadow-button-small-hover-secondary active:shadow-button-small-press-secondary"
|
|
114
130
|
}
|
|
115
131
|
]
|
|
116
132
|
});
|
|
@@ -150,7 +166,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
|
|
|
150
166
|
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
151
167
|
class="animate-spin"
|
|
152
168
|
></lukso-icon>
|
|
153
|
-
${
|
|
169
|
+
${this.loadingText ? shared_tailwindElement_index.x`<span class="ml-2">${this.loadingText}</span>` : shared_tailwindElement_index.A}`;
|
|
154
170
|
}
|
|
155
171
|
counterTemplate() {
|
|
156
172
|
const counterStyles = this.counterStyles({
|
|
@@ -26,7 +26,7 @@ export declare class LuksoButton extends LuksoButton_base {
|
|
|
26
26
|
private buttonStyles;
|
|
27
27
|
private handleMouseDown;
|
|
28
28
|
private handleMouseUp;
|
|
29
|
-
loadingTemplate():
|
|
29
|
+
loadingTemplate(): import("lit-html").TemplateResult<1>;
|
|
30
30
|
counterTemplate(): import("lit-html").TemplateResult<1>;
|
|
31
31
|
buttonTemplate(): import("lit-html").TemplateResult<1>;
|
|
32
32
|
linkTemplate(): import("lit-html").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-button/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,SAAS,GACT,MAAM,GACN,YAAY,GACZ,UAAU,GACV,MAAM,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC3C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;;AAIhE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,OAAO,EAAE,aAAa,CAAY;IAGlC,IAAI,EAAE,UAAU,CAAW;IAG3B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,SAAS,UAAQ;IAGjB,IAAI,EAAE,UAAU,CAAW;IAG3B,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,WAAW,SAAK;IAGhB,QAAQ,UAAQ;IAGhB,KAAK,SAAK;IAGV,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAOnB;IAEF,OAAO,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-button/index.ts"],"names":[],"mappings":"AAQA,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,WAAW,GACX,SAAS,GACT,MAAM,GACN,YAAY,GACZ,UAAU,GACV,MAAM,CAAA;AACV,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC3C,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;AACtD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAA;;AAIhE,qBACa,WAAY,SAAQ,gBAA4B;IAE3D,OAAO,EAAE,aAAa,CAAY;IAGlC,IAAI,EAAE,UAAU,CAAW;IAG3B,QAAQ,UAAQ;IAGhB,WAAW,UAAQ;IAGnB,WAAW,UAAQ;IAGnB,MAAM,UAAQ;IAGd,SAAS,UAAQ;IAGjB,IAAI,EAAE,UAAU,CAAW;IAG3B,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,WAAW,SAAK;IAGhB,QAAQ,UAAQ;IAGhB,KAAK,SAAK;IAGV,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAOnB;IAEF,OAAO,CAAC,YAAY,CAkFlB;IAEF,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAcrB,eAAe;IAaf,eAAe;IAQf,cAAc;IA6Bd,YAAY;IAsBZ,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, A } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x, A } from '../../index-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { t } from '../../state-b9ca4e74.js';
|
|
4
4
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
@@ -41,10 +41,10 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
41
41
|
this.noTransition = false;
|
|
42
42
|
this.timer = 0;
|
|
43
43
|
this.counterStyles = ie({
|
|
44
|
-
base:
|
|
44
|
+
base: "ml-2 border border-neutral-20 rounded-4 px-[2px] py-[1px] paragraph-inter-10-semi-bold text-neutral-20 bg-neutral-100",
|
|
45
45
|
variants: {
|
|
46
46
|
isActive: {
|
|
47
|
-
true:
|
|
47
|
+
true: "text-neutral-100 bg-neutral-20"
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
});
|
|
@@ -57,27 +57,23 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
57
57
|
color: {
|
|
58
58
|
primary: `bg-neutral-20 border-neutral-20 text-neutral-100
|
|
59
59
|
disabled:hover:!bg-neutral-20 disabled:hover:!border-neutral-20
|
|
60
|
-
hover:
|
|
61
|
-
active:
|
|
62
|
-
|
|
63
|
-
secondary: `bg-neutral-100 border-neutral-90 text-neutral-20
|
|
64
|
-
hover:shadow-button-hover-secondary active:shadow-button-press-secondary`,
|
|
60
|
+
hover:bg-neutral-25 hover:border-neutral-25
|
|
61
|
+
active:bg-neutral-25 active:border-neutral-25 before:bg-neutral-10`,
|
|
62
|
+
secondary: "bg-neutral-100 border-neutral-90 text-neutral-20",
|
|
65
63
|
landing: `bg-purple-51 border-purple-51 text-neutral-100
|
|
66
64
|
disabled:hover:!bg-purple-51 disabled:hover:!border-purple-51
|
|
67
|
-
hover:
|
|
68
|
-
active:shadow-button-press-primary
|
|
69
|
-
before:bg-purple-51`,
|
|
65
|
+
hover:bg-purple-58 hover:border-purple-58 before:bg-purple-51`,
|
|
70
66
|
text: `bg-transparent border-none text-neutral-20
|
|
71
67
|
hover:text-neutral-35
|
|
72
68
|
active:text-neutral-35 active:scale-100
|
|
73
69
|
disabled:text-neutral-90`,
|
|
74
|
-
link:
|
|
75
|
-
"nav-button":
|
|
76
|
-
"nav-text":
|
|
70
|
+
link: "bg-transparent border-none active:!scale-100 underline text-purple-51 hover:text-purple-41",
|
|
71
|
+
"nav-button": "nav-apax-12-medium-uppercase text-purple-41 !text-12",
|
|
72
|
+
"nav-text": "bg-transparent border-none nav-apax-12-medium-uppercase text-purple-63 hover:text-purple-41 !text-12 transition"
|
|
77
73
|
},
|
|
78
74
|
size: {
|
|
79
|
-
medium:
|
|
80
|
-
small:
|
|
75
|
+
medium: "h-[48px] px-6 paragraph-inter-16-semi-bold rounded-12",
|
|
76
|
+
small: "h-[28px] px-3 paragraph-inter-12-medium rounded-8"
|
|
81
77
|
},
|
|
82
78
|
isLongPress: {
|
|
83
79
|
true: `relative overflow-hidden z-[1] active:outline-0
|
|
@@ -85,16 +81,16 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
85
81
|
before:transition-all before:duration-[2000ms] before:z-[-1] before:rounded-0`
|
|
86
82
|
},
|
|
87
83
|
isFullWidth: {
|
|
88
|
-
true:
|
|
84
|
+
true: "w-full"
|
|
89
85
|
},
|
|
90
86
|
isPressed: {
|
|
91
|
-
true:
|
|
87
|
+
true: "before:w-full before:z-[-1]"
|
|
92
88
|
},
|
|
93
89
|
noTransition: {
|
|
94
|
-
true:
|
|
90
|
+
true: "before:transition-none"
|
|
95
91
|
},
|
|
96
92
|
isActive: {
|
|
97
|
-
true:
|
|
93
|
+
true: "border-neutral-20"
|
|
98
94
|
}
|
|
99
95
|
},
|
|
100
96
|
compoundVariants: [
|
|
@@ -107,6 +103,26 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
107
103
|
size: ["medium", "small"],
|
|
108
104
|
color: "link",
|
|
109
105
|
class: "p-0 h-[initial]"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
size: ["medium"],
|
|
109
|
+
color: ["primary", "landing"],
|
|
110
|
+
class: "hover:shadow-button-medium-hover-primary active:shadow-button-medium-press-primary"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
size: ["medium"],
|
|
114
|
+
color: ["secondary"],
|
|
115
|
+
class: "hover:shadow-button-medium-hover-secondary active:shadow-button-medium-press-secondary"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
size: ["small"],
|
|
119
|
+
color: ["primary", "landing"],
|
|
120
|
+
class: "hover:shadow-button-small-hover-primary active:shadow-button-small-press-primary"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
size: ["small"],
|
|
124
|
+
color: ["secondary"],
|
|
125
|
+
class: "hover:shadow-button-small-hover-secondary active:shadow-button-small-press-secondary"
|
|
110
126
|
}
|
|
111
127
|
]
|
|
112
128
|
});
|
|
@@ -146,7 +162,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
|
|
|
146
162
|
color=${this.variant === "secondary" || this.variant === "text" ? "neutral-20" : "neutral-100"}
|
|
147
163
|
class="animate-spin"
|
|
148
164
|
></lukso-icon>
|
|
149
|
-
${
|
|
165
|
+
${this.loadingText ? x`<span class="ml-2">${this.loadingText}</span>` : A}`;
|
|
150
166
|
}
|
|
151
167
|
counterTemplate() {
|
|
152
168
|
const counterStyles = this.counterStyles({
|
|
@@ -2,15 +2,15 @@
|
|
|
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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const state = require('../../state-d9fb972b.cjs');
|
|
8
|
-
const styleMap = require('../../style-map-
|
|
8
|
+
const styleMap = require('../../style-map-f1a1ca02.cjs');
|
|
9
9
|
const index = require('../../index-66211c85.cjs');
|
|
10
10
|
require('../lukso-profile/index.cjs');
|
|
11
11
|
require('../../tailwind-config.cjs');
|
|
12
12
|
const cn = require('../../cn-5a985a94.cjs');
|
|
13
|
-
const index$1 = require('../../index-
|
|
13
|
+
const index$1 = require('../../index-a3323937.cjs');
|
|
14
14
|
require('../lukso-image/index.cjs');
|
|
15
15
|
require('../../directive-8278ab14.cjs');
|
|
16
16
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-b704d563.js';
|
|
2
2
|
import { n, l, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { t } from '../../state-b9ca4e74.js';
|
|
4
|
-
import { o } from '../../style-map-
|
|
4
|
+
import { o } from '../../style-map-62a2b947.js';
|
|
5
5
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
6
6
|
import '../lukso-profile/index.js';
|
|
7
7
|
import '../../tailwind-config.js';
|
|
8
8
|
import { c as cn } from '../../cn-e708e7fa.js';
|
|
9
|
-
import { c as customStyleMap } from '../../index-
|
|
9
|
+
import { c as customStyleMap } from '../../index-0a44908a.js';
|
|
10
10
|
import '../lukso-image/index.js';
|
|
11
11
|
import '../../directive-2bb7789e.js';
|
|
12
12
|
|
|
@@ -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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const state = require('../../state-d9fb972b.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-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { t } from '../../state-b9ca4e74.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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-f1a1ca02.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-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-62a2b947.js';
|
|
4
4
|
import '../../directive-2bb7789e.js';
|
|
5
5
|
|
|
6
6
|
const style = ":host {\n display: inline-flex\n}";
|
|
@@ -2,10 +2,10 @@
|
|
|
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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const state = require('../../state-d9fb972b.cjs');
|
|
8
|
-
const styleMap = require('../../style-map-
|
|
8
|
+
const styleMap = require('../../style-map-f1a1ca02.cjs');
|
|
9
9
|
const index = require('../../index-66211c85.cjs');
|
|
10
10
|
require('../../directive-8278ab14.cjs');
|
|
11
11
|
|
|
@@ -30,7 +30,8 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
|
|
|
30
30
|
this.hasError = false;
|
|
31
31
|
this.imageStyles = index.ie({
|
|
32
32
|
slots: {
|
|
33
|
-
wrapper: "
|
|
33
|
+
wrapper: "size-full bg-neutral-100",
|
|
34
|
+
placeholder: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
|
|
34
35
|
image: "object-cover opacity-0 size-full"
|
|
35
36
|
},
|
|
36
37
|
variants: {
|
|
@@ -53,7 +54,7 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
|
|
|
53
54
|
isLoading: true,
|
|
54
55
|
hasError: false,
|
|
55
56
|
class: {
|
|
56
|
-
|
|
57
|
+
placeholder: "animate-pulse"
|
|
57
58
|
}
|
|
58
59
|
},
|
|
59
60
|
{
|
|
@@ -85,24 +86,26 @@ exports.LuksoImage = class LuksoImage extends shared_tailwindElement_index.Tailw
|
|
|
85
86
|
}
|
|
86
87
|
}
|
|
87
88
|
render() {
|
|
88
|
-
const { wrapper, image } = this.imageStyles({
|
|
89
|
+
const { wrapper, placeholder, image } = this.imageStyles({
|
|
89
90
|
isLoading: this.isLoading,
|
|
90
91
|
hasError: this.hasError
|
|
91
92
|
});
|
|
92
93
|
return shared_tailwindElement_index.x`
|
|
93
|
-
<div
|
|
94
|
-
|
|
95
|
-
|
|
94
|
+
<div class=${wrapper()}>
|
|
95
|
+
<div
|
|
96
|
+
class=${placeholder()}
|
|
97
|
+
style=${styleMap.o({
|
|
96
98
|
backgroundImage: `url('${this.resolvedPlaceholder}')`
|
|
97
99
|
})}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
100
|
+
>
|
|
101
|
+
<img
|
|
102
|
+
src=${this.src}
|
|
103
|
+
class=${image()}
|
|
104
|
+
loading="lazy"
|
|
105
|
+
@load=${this.handleLoad}
|
|
106
|
+
@error=${this.handleError}
|
|
107
|
+
/>
|
|
108
|
+
</div>
|
|
106
109
|
</div>
|
|
107
110
|
`;
|
|
108
111
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,KAAK,CAAA;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,SAAS,UAAO;IAGhB,mBAAmB,SAAK;IAGxB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKb,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAYxD,OAAO,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-image/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,KAAK,CAAA;AAK/C,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAE3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,GAAG,SAAK;IAGR,WAAW,SAAK;IAGhB,SAAS,UAAO;IAGhB,mBAAmB,SAAK;IAGxB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,WAAW;IAKb,UAAU,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAYxD,OAAO,CAAC,WAAW,CAsCjB;IAEF,MAAM;CAyBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { t } from '../../state-b9ca4e74.js';
|
|
4
|
-
import { o } from '../../style-map-
|
|
4
|
+
import { o } from '../../style-map-62a2b947.js';
|
|
5
5
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
6
6
|
import '../../directive-2bb7789e.js';
|
|
7
7
|
|
|
@@ -26,7 +26,8 @@ let LuksoImage = class extends TailwindElement {
|
|
|
26
26
|
this.hasError = false;
|
|
27
27
|
this.imageStyles = ie({
|
|
28
28
|
slots: {
|
|
29
|
-
wrapper: "
|
|
29
|
+
wrapper: "size-full bg-neutral-100",
|
|
30
|
+
placeholder: "bg-[50%] bg-no-repeat bg-cover bg-neutral-90 relative size-full",
|
|
30
31
|
image: "object-cover opacity-0 size-full"
|
|
31
32
|
},
|
|
32
33
|
variants: {
|
|
@@ -49,7 +50,7 @@ let LuksoImage = class extends TailwindElement {
|
|
|
49
50
|
isLoading: true,
|
|
50
51
|
hasError: false,
|
|
51
52
|
class: {
|
|
52
|
-
|
|
53
|
+
placeholder: "animate-pulse"
|
|
53
54
|
}
|
|
54
55
|
},
|
|
55
56
|
{
|
|
@@ -81,24 +82,26 @@ let LuksoImage = class extends TailwindElement {
|
|
|
81
82
|
}
|
|
82
83
|
}
|
|
83
84
|
render() {
|
|
84
|
-
const { wrapper, image } = this.imageStyles({
|
|
85
|
+
const { wrapper, placeholder, image } = this.imageStyles({
|
|
85
86
|
isLoading: this.isLoading,
|
|
86
87
|
hasError: this.hasError
|
|
87
88
|
});
|
|
88
89
|
return x`
|
|
89
|
-
<div
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
<div class=${wrapper()}>
|
|
91
|
+
<div
|
|
92
|
+
class=${placeholder()}
|
|
93
|
+
style=${o({
|
|
92
94
|
backgroundImage: `url('${this.resolvedPlaceholder}')`
|
|
93
95
|
})}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
>
|
|
97
|
+
<img
|
|
98
|
+
src=${this.src}
|
|
99
|
+
class=${image()}
|
|
100
|
+
loading="lazy"
|
|
101
|
+
@load=${this.handleLoad}
|
|
102
|
+
@error=${this.handleError}
|
|
103
|
+
/>
|
|
104
|
+
</div>
|
|
102
105
|
</div>
|
|
103
106
|
`;
|
|
104
107
|
}
|
|
@@ -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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const state = require('../../state-d9fb972b.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-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { t } from '../../state-b9ca4e74.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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.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-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-5e194caf.js';
|
|
4
4
|
import '../../directive-2bb7789e.js';
|
|
@@ -2,15 +2,15 @@
|
|
|
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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const state = require('../../state-d9fb972b.cjs');
|
|
8
8
|
const index = require('../../index-66211c85.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-tag/index.cjs');
|
|
11
|
-
require('../../style-map-
|
|
11
|
+
require('../../style-map-f1a1ca02.cjs');
|
|
12
12
|
require('../../directive-8278ab14.cjs');
|
|
13
|
-
require('../../index-
|
|
13
|
+
require('../../index-a3323937.cjs');
|
|
14
14
|
|
|
15
15
|
var __defProp = Object.defineProperty;
|
|
16
16
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { t } from '../../state-b9ca4e74.js';
|
|
4
4
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-tag/index.js';
|
|
7
|
-
import '../../style-map-
|
|
7
|
+
import '../../style-map-62a2b947.js';
|
|
8
8
|
import '../../directive-2bb7789e.js';
|
|
9
|
-
import '../../index-
|
|
9
|
+
import '../../index-0a44908a.js';
|
|
10
10
|
|
|
11
11
|
var __defProp = Object.defineProperty;
|
|
12
12
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -2,12 +2,12 @@
|
|
|
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-ebf01ef6.cjs');
|
|
6
6
|
const queryAssignedElements = require('../../query-assigned-elements-d5e45650.cjs');
|
|
7
7
|
const index = require('../../index-66211c85.cjs');
|
|
8
8
|
require('../lukso-image/index.cjs');
|
|
9
9
|
require('../../state-d9fb972b.cjs');
|
|
10
|
-
require('../../style-map-
|
|
10
|
+
require('../../style-map-f1a1ca02.cjs');
|
|
11
11
|
require('../../directive-8278ab14.cjs');
|
|
12
12
|
|
|
13
13
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-b704d563.js';
|
|
2
2
|
import { n, e } from '../../query-assigned-elements-1c8c9e90.js';
|
|
3
3
|
import { i as ie } from '../../index-faa8c4ae.js';
|
|
4
4
|
import '../lukso-image/index.js';
|
|
5
5
|
import '../../state-b9ca4e74.js';
|
|
6
|
-
import '../../style-map-
|
|
6
|
+
import '../../style-map-62a2b947.js';
|
|
7
7
|
import '../../directive-2bb7789e.js';
|
|
8
8
|
|
|
9
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|