@lukso/web-components 1.131.0 → 1.131.1
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 +7 -7
- package/dist/components/index.js +7 -7
- package/dist/components/lukso-button/index.cjs +3 -3
- package/dist/components/lukso-button/index.js +3 -3
- package/dist/components/lukso-card/index.cjs +6 -6
- package/dist/components/lukso-card/index.js +6 -6
- package/dist/components/lukso-checkbox/index.cjs +3 -3
- package/dist/components/lukso-checkbox/index.js +3 -3
- package/dist/components/lukso-color-picker/index.cjs +4 -4
- package/dist/components/lukso-color-picker/index.js +4 -4
- package/dist/components/lukso-dropdown/index.cjs +7 -7
- package/dist/components/lukso-dropdown/index.js +7 -7
- package/dist/components/lukso-dropdown-option/index.cjs +2 -2
- package/dist/components/lukso-dropdown-option/index.js +2 -2
- package/dist/components/lukso-footer/index.cjs +2 -2
- package/dist/components/lukso-footer/index.js +2 -2
- package/dist/components/lukso-icon/index.cjs +3 -3
- package/dist/components/lukso-icon/index.js +3 -3
- package/dist/components/lukso-image/index.cjs +4 -4
- package/dist/components/lukso-image/index.js +4 -4
- package/dist/components/lukso-input/index.cjs +4 -4
- package/dist/components/lukso-input/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 +5 -5
- package/dist/components/lukso-navbar/index.js +5 -5
- package/dist/components/lukso-pagination/index.cjs +4 -4
- package/dist/components/lukso-pagination/index.js +4 -4
- package/dist/components/lukso-profile/index.cjs +5 -5
- package/dist/components/lukso-profile/index.js +5 -5
- package/dist/components/lukso-progress/index.cjs +3 -3
- package/dist/components/lukso-progress/index.js +3 -3
- package/dist/components/lukso-sanitize/index.cjs +2 -2
- package/dist/components/lukso-sanitize/index.js +2 -2
- package/dist/components/lukso-search/index.cjs +8 -8
- package/dist/components/lukso-search/index.js +8 -8
- package/dist/components/lukso-select/index.cjs +75 -75
- package/dist/components/lukso-select/index.js +75 -75
- package/dist/components/lukso-share/index.cjs +27 -24
- package/dist/components/lukso-share/index.js +27 -24
- package/dist/components/lukso-switch/index.cjs +50 -50
- package/dist/components/lukso-switch/index.js +50 -50
- package/dist/components/lukso-tag/index.cjs +35 -32
- package/dist/components/lukso-tag/index.js +35 -32
- package/dist/components/lukso-terms/index.cjs +10 -7
- package/dist/components/lukso-terms/index.js +10 -7
- package/dist/components/lukso-test/index.cjs +16 -13
- package/dist/components/lukso-test/index.js +16 -13
- package/dist/components/lukso-textarea/index.cjs +86 -83
- package/dist/components/lukso-textarea/index.js +86 -83
- package/dist/components/lukso-tooltip/index.cjs +38 -35
- package/dist/components/lukso-tooltip/index.js +38 -35
- 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 +45 -42
- package/dist/components/lukso-wizard/index.js +45 -42
- package/dist/{index-5387057e.js → index-1db9d1ee.js} +1 -1
- package/dist/{index-38990f38.js → index-2f05f181.js} +2 -2
- package/dist/{index-9ba001cb.js → index-35fd0f44.js} +53 -50
- package/dist/{index-2d057f81.js → index-44537fbb.js} +5 -3
- package/dist/{index-5df012eb.cjs → index-6bad7e66.cjs} +1 -1
- package/dist/{index-ba49f23a.cjs → index-96c96a31.cjs} +53 -50
- package/dist/{index-96bba619.cjs → index-b103f110.cjs} +5 -3
- package/dist/{index-9c39357d.cjs → index-dfcb5b8a.cjs} +2 -2
- package/dist/index.cjs +7 -7
- package/dist/index.js +7 -7
- package/dist/{property-5367c26a.js → property-27a56e78.js} +1 -1
- package/dist/{property-98f7e05b.cjs → property-e2dd6303.cjs} +1 -1
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{state-bdfaec36.js → state-cda0c5ee.js} +1 -1
- package/dist/{state-eba8ded5.cjs → state-e20739c9.cjs} +1 -1
- package/dist/{style-map-9e6bb4a6.js → style-map-d0cf7858.js} +1 -1
- package/dist/{style-map-b13b92c1.cjs → style-map-ff389c6a.cjs} +1 -1
- package/dist/styles/main.css +1 -0
- package/dist/styles/main.css.map +1 -1
- package/dist/tailwind-config.cjs +1 -1
- package/dist/tailwind-config.js +1 -1
- 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/sass/colors.scss +1 -1
- package/tools/styles/main.css +1 -0
- package/tools/{tailwind-config-c5a676c5.js → tailwind-config-73222825.js} +1 -1
- package/tools/{tailwind-config-20125010.cjs → tailwind-config-d0ffa274.cjs} +1 -1
- package/tools/tailwind-config.cjs +1 -1
- package/tools/tailwind-config.js +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { m as makeBlockie } from '../../index-
|
|
2
|
-
import { T as TailwindStyledElement, x, E } from '../../index-
|
|
3
|
-
import { n, t } from '../../property-
|
|
4
|
-
import { r } from '../../state-
|
|
1
|
+
import { m as makeBlockie } from '../../index-2f05f181.js';
|
|
2
|
+
import { T as TailwindStyledElement, x, E } from '../../index-44537fbb.js';
|
|
3
|
+
import { n, t } from '../../property-27a56e78.js';
|
|
4
|
+
import { r } from '../../state-cda0c5ee.js';
|
|
5
5
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
6
6
|
import '../lukso-dropdown/index.js';
|
|
7
7
|
import '../lukso-dropdown-option/index.js';
|
|
8
8
|
import '../lukso-icon/index.js';
|
|
9
9
|
import '../lukso-input/index.js';
|
|
10
10
|
import '../lukso-tag/index.js';
|
|
11
|
-
import { s as sliceAddress } from '../../index-
|
|
11
|
+
import { s as sliceAddress } from '../../index-35fd0f44.js';
|
|
12
12
|
import '../../tailwind-config.js';
|
|
13
13
|
import '../../cn-90c03edf.js';
|
|
14
14
|
import '../lukso-image/index.js';
|
|
15
|
-
import '../../style-map-
|
|
15
|
+
import '../../style-map-d0cf7858.js';
|
|
16
16
|
import '../../directive-2bb7789e.js';
|
|
17
17
|
import '../../uniq-id-ce2d165c.js';
|
|
18
18
|
import '../lukso-sanitize/index.js';
|
|
19
|
-
import '../../index-
|
|
19
|
+
import '../../index-1db9d1ee.js';
|
|
20
20
|
|
|
21
21
|
const style = ":host {\n\n display: inline-flex\n}\n\n:host([is-full-width]) {\n\n display: flex;\n\n width: 100%\n}";
|
|
22
22
|
|
|
@@ -220,7 +220,7 @@ let LuksoSearch = class extends TailwindStyledElement(style) {
|
|
|
220
220
|
resultUniversalNameTemplate(result, index) {
|
|
221
221
|
const tag = x`<lukso-tag
|
|
222
222
|
is-rounded
|
|
223
|
-
background-color="${result.status ? "green-
|
|
223
|
+
background-color="${result.status ? "green-95" : "neutral-95"}"
|
|
224
224
|
text-color="${result.status ? "green-45" : "neutral-60"}"
|
|
225
225
|
>${!!result.status ? this.availableText : this.unavailableText}</lukso-tag
|
|
226
226
|
>`;
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const state = require('../../state-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
|
+
const state = require('../../state-e20739c9.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
|
-
const components_luksoProfile_index = require('../../index-
|
|
9
|
+
const components_luksoProfile_index = require('../../index-dfcb5b8a.cjs');
|
|
10
10
|
require('../lukso-icon/index.cjs');
|
|
11
|
-
require('../../index-
|
|
11
|
+
require('../../index-96c96a31.cjs');
|
|
12
12
|
require('../lukso-dropdown/index.cjs');
|
|
13
13
|
require('../lukso-dropdown-option/index.cjs');
|
|
14
14
|
require('../lukso-sanitize/index.cjs');
|
|
15
15
|
const uniqId = require('../../uniq-id-f0b18085.cjs');
|
|
16
16
|
require('../lukso-image/index.cjs');
|
|
17
|
-
require('../../style-map-
|
|
17
|
+
require('../../style-map-ff389c6a.cjs');
|
|
18
18
|
require('../../directive-8278ab14.cjs');
|
|
19
|
-
require('../../index-
|
|
19
|
+
require('../../index-6bad7e66.cjs');
|
|
20
20
|
require('../../tailwind-config.cjs');
|
|
21
21
|
require('../../cn-b6daa995.cjs');
|
|
22
22
|
|
|
@@ -34,84 +34,84 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
34
34
|
return result;
|
|
35
35
|
};
|
|
36
36
|
exports.LuksoSelect = class LuksoSelect extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
37
|
-
value = "";
|
|
38
|
-
placeholder = "";
|
|
39
|
-
label = "";
|
|
40
|
-
id = "";
|
|
41
|
-
description = "";
|
|
42
|
-
error = "";
|
|
43
|
-
isFullWidth = false;
|
|
44
|
-
isReadonly = false;
|
|
45
|
-
isDisabled = false;
|
|
46
|
-
borderless = false;
|
|
47
|
-
options = "";
|
|
48
|
-
selected = void 0;
|
|
49
|
-
isOpen = false;
|
|
50
|
-
openTop = false;
|
|
51
|
-
isLargeIcon = false;
|
|
52
|
-
isRight = false;
|
|
53
|
-
size = "medium";
|
|
54
|
-
showSelectionCounter = false;
|
|
55
|
-
optionsParsed = [];
|
|
56
|
-
valueParsed = void 0;
|
|
57
37
|
constructor() {
|
|
58
38
|
super();
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
39
|
+
this.value = "";
|
|
40
|
+
this.placeholder = "";
|
|
41
|
+
this.label = "";
|
|
42
|
+
this.id = "";
|
|
43
|
+
this.description = "";
|
|
44
|
+
this.error = "";
|
|
45
|
+
this.isFullWidth = false;
|
|
46
|
+
this.isReadonly = false;
|
|
47
|
+
this.isDisabled = false;
|
|
48
|
+
this.borderless = false;
|
|
49
|
+
this.options = "";
|
|
50
|
+
this.selected = void 0;
|
|
51
|
+
this.isOpen = false;
|
|
52
|
+
this.openTop = false;
|
|
53
|
+
this.isLargeIcon = false;
|
|
54
|
+
this.isRight = false;
|
|
55
|
+
this.size = "medium";
|
|
56
|
+
this.showSelectionCounter = false;
|
|
57
|
+
this.optionsParsed = [];
|
|
58
|
+
this.valueParsed = void 0;
|
|
59
|
+
this.inputStyles = index.ce({
|
|
60
|
+
base: `bg-neutral-100
|
|
65
61
|
border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
|
|
66
62
|
outline-none transition transition-all duration-150 appearance-none
|
|
67
63
|
text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
|
|
68
64
|
flex items-center`,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
65
|
+
variants: {
|
|
66
|
+
isFullWidth: {
|
|
67
|
+
true: "w-full"
|
|
68
|
+
},
|
|
69
|
+
isDisabled: {
|
|
70
|
+
true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
|
|
71
|
+
},
|
|
72
|
+
hasError: {
|
|
73
|
+
true: "border-red-85 group-hover:border-red-65"
|
|
74
|
+
},
|
|
75
|
+
borderless: {
|
|
76
|
+
true: "border-0"
|
|
77
|
+
},
|
|
78
|
+
size: {
|
|
79
|
+
small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
|
|
80
|
+
medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
|
|
81
|
+
}
|
|
85
82
|
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
83
|
+
});
|
|
84
|
+
this.counterStyles = index.ce({
|
|
85
|
+
base: "border border-neutral-20",
|
|
86
|
+
variants: {
|
|
87
|
+
isDisabled: {
|
|
88
|
+
true: "opacity-60 cursor-not-allowed"
|
|
89
|
+
},
|
|
90
|
+
size: {
|
|
91
|
+
small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
|
|
92
|
+
medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
|
|
93
|
+
}
|
|
97
94
|
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
95
|
+
});
|
|
96
|
+
this.iconStyles = index.ce({
|
|
97
|
+
base: "absolute right-0 transition cursor-pointer",
|
|
98
|
+
variants: {
|
|
99
|
+
isDisabled: {
|
|
100
|
+
true: "opacity-60 cursor-not-allowed"
|
|
101
|
+
},
|
|
102
|
+
isOpen: {
|
|
103
|
+
true: "rotate-180"
|
|
104
|
+
},
|
|
105
|
+
size: {
|
|
106
|
+
small: "mr-2",
|
|
107
|
+
medium: "mr-3"
|
|
108
|
+
}
|
|
112
109
|
}
|
|
110
|
+
});
|
|
111
|
+
if (!this.id) {
|
|
112
|
+
this.id = uniqId.uniqId();
|
|
113
113
|
}
|
|
114
|
-
}
|
|
114
|
+
}
|
|
115
115
|
connectedCallback() {
|
|
116
116
|
super.connectedCallback();
|
|
117
117
|
window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x, E } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
3
|
-
import { r } from '../../state-
|
|
1
|
+
import { T as TailwindStyledElement, x, E } from '../../index-44537fbb.js';
|
|
2
|
+
import { n, t } from '../../property-27a56e78.js';
|
|
3
|
+
import { r } from '../../state-cda0c5ee.js';
|
|
4
4
|
import { c as ce } from '../../index-d14b6a34.js';
|
|
5
|
-
import { m as makeBlockie } from '../../index-
|
|
5
|
+
import { m as makeBlockie } from '../../index-2f05f181.js';
|
|
6
6
|
import '../lukso-icon/index.js';
|
|
7
|
-
import '../../index-
|
|
7
|
+
import '../../index-35fd0f44.js';
|
|
8
8
|
import '../lukso-dropdown/index.js';
|
|
9
9
|
import '../lukso-dropdown-option/index.js';
|
|
10
10
|
import '../lukso-sanitize/index.js';
|
|
11
11
|
import { u as uniqId } from '../../uniq-id-ce2d165c.js';
|
|
12
12
|
import '../lukso-image/index.js';
|
|
13
|
-
import '../../style-map-
|
|
13
|
+
import '../../style-map-d0cf7858.js';
|
|
14
14
|
import '../../directive-2bb7789e.js';
|
|
15
|
-
import '../../index-
|
|
15
|
+
import '../../index-1db9d1ee.js';
|
|
16
16
|
import '../../tailwind-config.js';
|
|
17
17
|
import '../../cn-90c03edf.js';
|
|
18
18
|
|
|
@@ -30,84 +30,84 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
32
|
let LuksoSelect = class extends TailwindStyledElement(style) {
|
|
33
|
-
value = "";
|
|
34
|
-
placeholder = "";
|
|
35
|
-
label = "";
|
|
36
|
-
id = "";
|
|
37
|
-
description = "";
|
|
38
|
-
error = "";
|
|
39
|
-
isFullWidth = false;
|
|
40
|
-
isReadonly = false;
|
|
41
|
-
isDisabled = false;
|
|
42
|
-
borderless = false;
|
|
43
|
-
options = "";
|
|
44
|
-
selected = void 0;
|
|
45
|
-
isOpen = false;
|
|
46
|
-
openTop = false;
|
|
47
|
-
isLargeIcon = false;
|
|
48
|
-
isRight = false;
|
|
49
|
-
size = "medium";
|
|
50
|
-
showSelectionCounter = false;
|
|
51
|
-
optionsParsed = [];
|
|
52
|
-
valueParsed = void 0;
|
|
53
33
|
constructor() {
|
|
54
34
|
super();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
35
|
+
this.value = "";
|
|
36
|
+
this.placeholder = "";
|
|
37
|
+
this.label = "";
|
|
38
|
+
this.id = "";
|
|
39
|
+
this.description = "";
|
|
40
|
+
this.error = "";
|
|
41
|
+
this.isFullWidth = false;
|
|
42
|
+
this.isReadonly = false;
|
|
43
|
+
this.isDisabled = false;
|
|
44
|
+
this.borderless = false;
|
|
45
|
+
this.options = "";
|
|
46
|
+
this.selected = void 0;
|
|
47
|
+
this.isOpen = false;
|
|
48
|
+
this.openTop = false;
|
|
49
|
+
this.isLargeIcon = false;
|
|
50
|
+
this.isRight = false;
|
|
51
|
+
this.size = "medium";
|
|
52
|
+
this.showSelectionCounter = false;
|
|
53
|
+
this.optionsParsed = [];
|
|
54
|
+
this.valueParsed = void 0;
|
|
55
|
+
this.inputStyles = ce({
|
|
56
|
+
base: `bg-neutral-100
|
|
61
57
|
border border-solid placeholder:text-neutral-70 select-none whitespace-nowrap
|
|
62
58
|
outline-none transition transition-all duration-150 appearance-none
|
|
63
59
|
text-neutral-20 cursor-pointer border-neutral-90 group-hover:border-neutral-35
|
|
64
60
|
flex items-center`,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
61
|
+
variants: {
|
|
62
|
+
isFullWidth: {
|
|
63
|
+
true: "w-full"
|
|
64
|
+
},
|
|
65
|
+
isDisabled: {
|
|
66
|
+
true: "cursor-not-allowed text-neutral-60 group-hover:border-neutral-90"
|
|
67
|
+
},
|
|
68
|
+
hasError: {
|
|
69
|
+
true: "border-red-85 group-hover:border-red-65"
|
|
70
|
+
},
|
|
71
|
+
borderless: {
|
|
72
|
+
true: "border-0"
|
|
73
|
+
},
|
|
74
|
+
size: {
|
|
75
|
+
small: "h-[28px] px-3 py-2 pr-8 paragraph-inter-12-regular rounded-8",
|
|
76
|
+
medium: "h-[48px] px-4 py-3 pr-11 paragraph-inter-14-regular rounded-12"
|
|
77
|
+
}
|
|
81
78
|
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
});
|
|
80
|
+
this.counterStyles = ce({
|
|
81
|
+
base: "border border-neutral-20",
|
|
82
|
+
variants: {
|
|
83
|
+
isDisabled: {
|
|
84
|
+
true: "opacity-60 cursor-not-allowed"
|
|
85
|
+
},
|
|
86
|
+
size: {
|
|
87
|
+
small: "paragraph-inter-10-semi-bold rounded-4 py-[1px] px-[5px] ml-1.5",
|
|
88
|
+
medium: "paragraph-inter-14-semi-bold rounded-8 py-[2px] px-[10px] ml-3"
|
|
89
|
+
}
|
|
93
90
|
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
91
|
+
});
|
|
92
|
+
this.iconStyles = ce({
|
|
93
|
+
base: "absolute right-0 transition cursor-pointer",
|
|
94
|
+
variants: {
|
|
95
|
+
isDisabled: {
|
|
96
|
+
true: "opacity-60 cursor-not-allowed"
|
|
97
|
+
},
|
|
98
|
+
isOpen: {
|
|
99
|
+
true: "rotate-180"
|
|
100
|
+
},
|
|
101
|
+
size: {
|
|
102
|
+
small: "mr-2",
|
|
103
|
+
medium: "mr-3"
|
|
104
|
+
}
|
|
108
105
|
}
|
|
106
|
+
});
|
|
107
|
+
if (!this.id) {
|
|
108
|
+
this.id = uniqId();
|
|
109
109
|
}
|
|
110
|
-
}
|
|
110
|
+
}
|
|
111
111
|
connectedCallback() {
|
|
112
112
|
super.connectedCallback();
|
|
113
113
|
window.addEventListener("click", this.handleOutsideDropdownClick.bind(this));
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
7
|
|
|
8
8
|
const style = ":host {\n display: inline-flex\n}";
|
|
9
9
|
|
|
@@ -19,28 +19,31 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
22
|
+
constructor() {
|
|
23
|
+
super(...arguments);
|
|
24
|
+
this.customStyle = "";
|
|
25
|
+
this.providers = "";
|
|
26
|
+
this.defaultProviders = [
|
|
27
|
+
"twitter",
|
|
28
|
+
"instagram",
|
|
29
|
+
"linkedin",
|
|
30
|
+
"telegram",
|
|
31
|
+
"discord",
|
|
32
|
+
"reddit",
|
|
33
|
+
"medium",
|
|
34
|
+
"github"
|
|
35
|
+
];
|
|
36
|
+
this.defaultProviderLinks = {
|
|
37
|
+
twitter: "https://twitter.com/ERC725Account",
|
|
38
|
+
instagram: "https://www.instagram.com/lukso",
|
|
39
|
+
linkedin: "https://linkedin.com/company/lukso",
|
|
40
|
+
telegram: "https://t.me/LUKSO_News",
|
|
41
|
+
discord: "https://discord.gg/lukso",
|
|
42
|
+
reddit: "https://www.reddit.com/r/lukso",
|
|
43
|
+
medium: "https://medium.com/lukso",
|
|
44
|
+
github: "https://github.com/lukso-network"
|
|
45
|
+
};
|
|
46
|
+
}
|
|
44
47
|
linkTemplate(name, url) {
|
|
45
48
|
return shared_tailwindElement_index.x`<a
|
|
46
49
|
href=${url}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
2
|
-
import { n, t } from '../../property-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-44537fbb.js';
|
|
2
|
+
import { n, t } from '../../property-27a56e78.js';
|
|
3
3
|
|
|
4
4
|
const style = ":host {\n display: inline-flex\n}";
|
|
5
5
|
|
|
@@ -15,28 +15,31 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
15
|
return result;
|
|
16
16
|
};
|
|
17
17
|
let LuksoShare = class extends TailwindStyledElement(style) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
18
|
+
constructor() {
|
|
19
|
+
super(...arguments);
|
|
20
|
+
this.customStyle = "";
|
|
21
|
+
this.providers = "";
|
|
22
|
+
this.defaultProviders = [
|
|
23
|
+
"twitter",
|
|
24
|
+
"instagram",
|
|
25
|
+
"linkedin",
|
|
26
|
+
"telegram",
|
|
27
|
+
"discord",
|
|
28
|
+
"reddit",
|
|
29
|
+
"medium",
|
|
30
|
+
"github"
|
|
31
|
+
];
|
|
32
|
+
this.defaultProviderLinks = {
|
|
33
|
+
twitter: "https://twitter.com/ERC725Account",
|
|
34
|
+
instagram: "https://www.instagram.com/lukso",
|
|
35
|
+
linkedin: "https://linkedin.com/company/lukso",
|
|
36
|
+
telegram: "https://t.me/LUKSO_News",
|
|
37
|
+
discord: "https://discord.gg/lukso",
|
|
38
|
+
reddit: "https://www.reddit.com/r/lukso",
|
|
39
|
+
medium: "https://medium.com/lukso",
|
|
40
|
+
github: "https://github.com/lukso-network"
|
|
41
|
+
};
|
|
42
|
+
}
|
|
40
43
|
linkTemplate(name, url) {
|
|
41
44
|
return x`<a
|
|
42
45
|
href=${url}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
4
|
|
|
5
|
-
const shared_tailwindElement_index = require('../../index-
|
|
6
|
-
const property = require('../../property-
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-b103f110.cjs');
|
|
6
|
+
const property = require('../../property-e2dd6303.cjs');
|
|
7
|
+
const styleMap = require('../../style-map-ff389c6a.cjs');
|
|
8
8
|
const index = require('../../index-2b104ecb.cjs');
|
|
9
9
|
const uniqId = require('../../uniq-id-f0b18085.cjs');
|
|
10
10
|
require('../lukso-sanitize/index.cjs');
|
|
@@ -23,14 +23,53 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
23
23
|
};
|
|
24
24
|
const DEFAULT_COLOR = "green-54";
|
|
25
25
|
exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.TailwindElement {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
this.color = DEFAULT_COLOR;
|
|
29
|
+
this.id = "";
|
|
30
|
+
this.name = "switch";
|
|
31
|
+
this.label = "";
|
|
32
|
+
this.description = "";
|
|
33
|
+
this.error = "";
|
|
34
|
+
this.isChecked = false;
|
|
35
|
+
this.isDisabled = false;
|
|
36
|
+
this.styles = index.ce({
|
|
37
|
+
slots: {
|
|
38
|
+
label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
|
|
39
|
+
input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
isChecked: {
|
|
43
|
+
true: {
|
|
44
|
+
input: "translate-x-4"
|
|
45
|
+
},
|
|
46
|
+
false: {
|
|
47
|
+
label: "bg-neutral-90",
|
|
48
|
+
input: "border-neutral-90"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
isDisabled: {
|
|
52
|
+
true: {
|
|
53
|
+
label: "opacity-70 cursor-not-allowed",
|
|
54
|
+
input: "cursor-not-allowed"
|
|
55
|
+
},
|
|
56
|
+
false: {
|
|
57
|
+
label: "cursor-pointer",
|
|
58
|
+
input: "cursor-pointer"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
hasError: {
|
|
62
|
+
true: {
|
|
63
|
+
label: "!bg-red-65",
|
|
64
|
+
input: "!border-red-65"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
if (!this.id) {
|
|
70
|
+
this.id = `switch-${uniqId.uniqId()}`;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
34
73
|
async handleChange(event) {
|
|
35
74
|
const target = event.target;
|
|
36
75
|
await this.updateComplete;
|
|
@@ -44,45 +83,6 @@ exports.LuksoSwitch = class LuksoSwitch extends shared_tailwindElement_index.Tai
|
|
|
44
83
|
});
|
|
45
84
|
this.dispatchEvent(changeEvent);
|
|
46
85
|
}
|
|
47
|
-
constructor() {
|
|
48
|
-
super();
|
|
49
|
-
if (!this.id) {
|
|
50
|
-
this.id = `switch-${uniqId.uniqId()}`;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
styles = index.ce({
|
|
54
|
-
slots: {
|
|
55
|
-
label: "transition duration-300 ease-in block h-6 overflow-hidden rounded-full relative inline-block w-10",
|
|
56
|
-
input: "absolute block w-6 h-6 rounded-full bg-white border-2 appearance-none transition duration-300 ease-in"
|
|
57
|
-
},
|
|
58
|
-
variants: {
|
|
59
|
-
isChecked: {
|
|
60
|
-
true: {
|
|
61
|
-
input: "translate-x-4"
|
|
62
|
-
},
|
|
63
|
-
false: {
|
|
64
|
-
label: "bg-neutral-90",
|
|
65
|
-
input: "border-neutral-90"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
isDisabled: {
|
|
69
|
-
true: {
|
|
70
|
-
label: "opacity-70 cursor-not-allowed",
|
|
71
|
-
input: "cursor-not-allowed"
|
|
72
|
-
},
|
|
73
|
-
false: {
|
|
74
|
-
label: "cursor-pointer",
|
|
75
|
-
input: "cursor-pointer"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
hasError: {
|
|
79
|
-
true: {
|
|
80
|
-
label: "!bg-red-65",
|
|
81
|
-
input: "!border-red-65"
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
86
|
labelTemplate() {
|
|
87
87
|
return shared_tailwindElement_index.x`
|
|
88
88
|
<div
|