@lukso/web-components 1.18.0 → 1.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.cjs +7 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +3 -2
- 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 +2 -2
- package/dist/components/lukso-card/index.js +2 -2
- 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 +3 -2
- package/dist/components/lukso-input/index.d.ts.map +1 -1
- package/dist/components/lukso-input/index.js +3 -2
- 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 +1 -1
- package/dist/components/lukso-navbar/index.js +1 -1
- 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-share/index.cjs +66 -0
- package/dist/components/lukso-share/index.d.ts +14 -0
- package/dist/components/lukso-share/index.d.ts.map +1 -0
- package/dist/components/lukso-share/index.js +64 -0
- 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-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-72e2de9b.js → index-8d1ad2d4.js} +1 -1
- package/dist/{index-8c1d1d13.cjs → index-f230a866.cjs} +1 -1
- package/dist/index.cjs +7 -2
- package/dist/index.js +3 -2
- package/dist/shared/tailwind-element/index.cjs +1 -1
- package/dist/shared/tailwind-element/index.js +1 -1
- package/dist/{style-map-0750a4f6.cjs → style-map-2cb404ff.cjs} +1 -1
- package/dist/{style-map-6dc1088b.js → style-map-d0125823.js} +1 -1
- package/package.json +6 -1
- package/tools/assets/images/social-discord.svg +1 -0
- package/tools/assets/images/social-github.svg +1 -0
- package/tools/assets/images/social-instagram.svg +1 -0
- package/tools/assets/images/social-linkedin.svg +1 -0
- package/tools/assets/images/social-medium.svg +1 -0
- package/tools/assets/images/social-reddit.svg +1 -0
- package/tools/assets/images/social-telegram.svg +1 -0
- package/tools/assets/images/social-twitter.svg +1 -0
|
@@ -11,16 +11,17 @@ const components_luksoNavbar_index = require('./lukso-navbar/index.cjs');
|
|
|
11
11
|
const components_luksoProfile_index = require('./lukso-profile/index.cjs');
|
|
12
12
|
const components_luksoProgress_index = require('./lukso-progress/index.cjs');
|
|
13
13
|
const components_luksoSanitize_index = require('./lukso-sanitize/index.cjs');
|
|
14
|
+
const components_luksoShare_index = require('./lukso-share/index.cjs');
|
|
14
15
|
const components_luksoTag_index = require('./lukso-tag/index.cjs');
|
|
15
16
|
const components_luksoTerms_index = require('./lukso-terms/index.cjs');
|
|
16
17
|
const components_luksoTest_index = require('./lukso-test/index.cjs');
|
|
17
18
|
const components_luksoUsername_index = require('./lukso-username/index.cjs');
|
|
18
19
|
const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
|
|
19
|
-
const shared_tailwindElement_index = require('../index-
|
|
20
|
+
const shared_tailwindElement_index = require('../index-f230a866.cjs');
|
|
20
21
|
require('../directive-db00f5fb.cjs');
|
|
21
22
|
require('../state-a62a7d5d.cjs');
|
|
22
23
|
require('../index-7dc05ee5.cjs');
|
|
23
|
-
require('../style-map-
|
|
24
|
+
require('../style-map-2cb404ff.cjs');
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
|
|
@@ -60,6 +61,10 @@ Object.defineProperty(exports, 'LuksoSanitize', {
|
|
|
60
61
|
enumerable: true,
|
|
61
62
|
get: () => components_luksoSanitize_index.LuksoSanitize
|
|
62
63
|
});
|
|
64
|
+
Object.defineProperty(exports, 'LuksoShare', {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: () => components_luksoShare_index.LuksoShare
|
|
67
|
+
});
|
|
63
68
|
Object.defineProperty(exports, 'LuksoTag', {
|
|
64
69
|
enumerable: true,
|
|
65
70
|
get: () => components_luksoTag_index.LuksoTag
|
|
@@ -7,6 +7,7 @@ export * from './lukso-navbar/index';
|
|
|
7
7
|
export * from './lukso-profile/index';
|
|
8
8
|
export * from './lukso-progress/index';
|
|
9
9
|
export * from './lukso-sanitize/index';
|
|
10
|
+
export * from './lukso-share/index';
|
|
10
11
|
export * from './lukso-tag/index';
|
|
11
12
|
export * from './lukso-terms/index';
|
|
12
13
|
export * from './lukso-test/index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,wBAAwB,CAAA;AACtC,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
|
package/dist/components/index.js
CHANGED
|
@@ -7,13 +7,14 @@ export { LuksoNavbar } from './lukso-navbar/index.js';
|
|
|
7
7
|
export { LuksoProfile } from './lukso-profile/index.js';
|
|
8
8
|
export { LuksoProgress } from './lukso-progress/index.js';
|
|
9
9
|
export { LuksoSanitize } from './lukso-sanitize/index.js';
|
|
10
|
+
export { LuksoShare } from './lukso-share/index.js';
|
|
10
11
|
export { LuksoTag } from './lukso-tag/index.js';
|
|
11
12
|
export { LuksoTerms } from './lukso-terms/index.js';
|
|
12
13
|
export { LuksoTest } from './lukso-test/index.js';
|
|
13
14
|
export { LuksoUsername } from './lukso-username/index.js';
|
|
14
15
|
export { LuksoWizard } from './lukso-wizard/index.js';
|
|
15
|
-
export { a as TailwindElement, T as TailwindStyledElement } from '../index-
|
|
16
|
+
export { a as TailwindElement, T as TailwindStyledElement } from '../index-8d1ad2d4.js';
|
|
16
17
|
import '../directive-9ec64c08.js';
|
|
17
18
|
import '../state-7fde94d1.js';
|
|
18
19
|
import '../index-714323c9.js';
|
|
19
|
-
import '../style-map-
|
|
20
|
+
import '../style-map-d0125823.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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-2cb404ff.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
require('../lukso-profile/index.cjs');
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-d0125823.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
import '../lukso-profile/index.js';
|
|
6
6
|
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-2cb404ff.cjs');
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: inline-flex\n}";
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { x, T as TailwindStyledElement } from '../../index-
|
|
1
|
+
import { x, T as TailwindStyledElement } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-d0125823.js';
|
|
4
4
|
|
|
5
5
|
const style = ":host {\n display: inline-flex\n}";
|
|
6
6
|
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -50,6 +50,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
50
50
|
rounded-r-12 border-l-0 before:bg-neutral-90 before:absolute before:top-[calc(50%-12px)] before:left-0
|
|
51
51
|
before:w-[1px] before:h-[24px] whitespace-nowrap`;
|
|
52
52
|
}
|
|
53
|
+
// @input works better in vue
|
|
53
54
|
inputTemplate() {
|
|
54
55
|
return shared_tailwindElement_index.x`
|
|
55
56
|
<input
|
|
@@ -79,7 +80,7 @@ exports.LuksoInput = class LuksoInput extends shared_tailwindElement_index.Tailw
|
|
|
79
80
|
[this.customClass]: !!this.customClass
|
|
80
81
|
})}
|
|
81
82
|
@focus=${this.handleFocus}
|
|
82
|
-
@
|
|
83
|
+
@input=${this.handleChange}
|
|
83
84
|
@blur=${this.handleBlur}
|
|
84
85
|
@keyup=${this.handleKeyUp}
|
|
85
86
|
@keydown=${this.handleKeyDown}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,MAAY;IAGf,MAAM,MAAY;IAGlB,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,kBAAkB,CAE4C;IAEtE,OAAO,CAAC,iBAAiB,CAG0B;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-input/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,UAAW,SAAQ,eAAe;IAE7C,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,IAAI,SAAS;IAGb,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,YAAY,SAAO;IAGnB,EAAE,SAAK;IAGP,GAAG,MAAY;IAGf,MAAM,MAAY;IAGlB,WAAW,SAAK;IAGhB,KAAK,SAAK;IAGV,IAAI,SAAK;IAGT,WAAW,SAAK;IAGhB,WAAW,UAAQ;IAGnB,UAAU,UAAQ;IAGlB,UAAU,UAAQ;IAGlB,SAAS,UAAQ;IAGjB,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAY;IAGnC,OAAO,CAAC,QAAQ,CAAQ;IAGxB,OAAO,CAAC,YAAY,CAAQ;IAE5B,OAAO,CAAC,kBAAkB,CAE4C;IAEtE,OAAO,CAAC,iBAAiB,CAG0B;IAGnD,aAAa;IA0Cb,aAAa;IAUb,mBAAmB;IAQnB,aAAa;IAMb,YAAY;IAgBZ,OAAO,CAAC,WAAW;IAKnB,OAAO,CAAC,UAAU;IAelB,OAAO,CAAC,YAAY;IAapB,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,aAAa;IAarB,OAAO,CAAC,cAAc;IAatB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,cAAc;IAMtB,MAAM;CAYP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x, A } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x, A } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
@@ -46,6 +46,7 @@ let LuksoInput = class extends TailwindElement {
|
|
|
46
46
|
rounded-r-12 border-l-0 before:bg-neutral-90 before:absolute before:top-[calc(50%-12px)] before:left-0
|
|
47
47
|
before:w-[1px] before:h-[24px] whitespace-nowrap`;
|
|
48
48
|
}
|
|
49
|
+
// @input works better in vue
|
|
49
50
|
inputTemplate() {
|
|
50
51
|
return x`
|
|
51
52
|
<input
|
|
@@ -75,7 +76,7 @@ let LuksoInput = class extends TailwindElement {
|
|
|
75
76
|
[this.customClass]: !!this.customClass
|
|
76
77
|
})}
|
|
77
78
|
@focus=${this.handleFocus}
|
|
78
|
-
@
|
|
79
|
+
@input=${this.handleChange}
|
|
79
80
|
@blur=${this.handleBlur}
|
|
80
81
|
@keyup=${this.handleKeyUp}
|
|
81
82
|
@keydown=${this.handleKeyDown}
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-2cb404ff.cjs');
|
|
8
8
|
|
|
9
9
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-d0125823.js';
|
|
4
4
|
|
|
5
5
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
6
|
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-2cb404ff.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-d0125823.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
4
|
+
|
|
5
|
+
const shared_tailwindElement_index = require('../../index-f230a866.cjs');
|
|
6
|
+
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
+
const index = require('../../index-7dc05ee5.cjs');
|
|
8
|
+
|
|
9
|
+
const style = ":host {\n display: inline-flex\n}";
|
|
10
|
+
|
|
11
|
+
var __defProp = Object.defineProperty;
|
|
12
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
13
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
14
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
15
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
16
|
+
if (decorator = decorators[i])
|
|
17
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
18
|
+
if (kind && result)
|
|
19
|
+
__defProp(target, key, result);
|
|
20
|
+
return result;
|
|
21
|
+
};
|
|
22
|
+
exports.LuksoShare = class LuksoShare extends shared_tailwindElement_index.TailwindStyledElement(style) {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.customClass = "";
|
|
26
|
+
this.urls = {
|
|
27
|
+
twitter: "https://twitter.com/lukso_io",
|
|
28
|
+
instagram: "https://www.instagram.com/lukso/",
|
|
29
|
+
linkedin: "https://www.linkedin.com/company/18289660/",
|
|
30
|
+
telegram: "https://t.me/lukso",
|
|
31
|
+
discord: "footer_discord_url",
|
|
32
|
+
reddit: "https://www.reddit.com/r/lukso/",
|
|
33
|
+
medium: "https://medium.com/lukso",
|
|
34
|
+
github: "https://github.com/lukso-network"
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
linkTemplate(name, url) {
|
|
38
|
+
return shared_tailwindElement_index.x`<a
|
|
39
|
+
href=${url}
|
|
40
|
+
target="_blank"
|
|
41
|
+
class="transition-all duration-300 rounded-full hover:opacity-80 hover:shadow-button-hover-primary"
|
|
42
|
+
><img src="/assets/images/social-${name}.svg" alt=""
|
|
43
|
+
/></a>`;
|
|
44
|
+
}
|
|
45
|
+
render() {
|
|
46
|
+
const linkTemplates = [];
|
|
47
|
+
for (const i of Object.keys(this.urls)) {
|
|
48
|
+
linkTemplates.push(this.linkTemplate(i, this.urls[i]));
|
|
49
|
+
}
|
|
50
|
+
return shared_tailwindElement_index.x`<div
|
|
51
|
+
class="grid gap-4 grid-cols-[repeat(4,max-content)] sm:grid-cols-[repeat(8,max-content)] ${index.customClassMap(
|
|
52
|
+
{
|
|
53
|
+
[this.customClass]: !!this.customClass
|
|
54
|
+
}
|
|
55
|
+
)}"
|
|
56
|
+
>
|
|
57
|
+
${linkTemplates}
|
|
58
|
+
</div>`;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
__decorateClass([
|
|
62
|
+
directive.e({ type: String, attribute: "custom-class" })
|
|
63
|
+
], exports.LuksoShare.prototype, "customClass", 2);
|
|
64
|
+
exports.LuksoShare = __decorateClass([
|
|
65
|
+
directive.e$1("lukso-share")
|
|
66
|
+
], exports.LuksoShare);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const LuksoShare_base: typeof import("lit").LitElement;
|
|
2
|
+
export declare class LuksoShare extends LuksoShare_base {
|
|
3
|
+
customClass: string;
|
|
4
|
+
private urls;
|
|
5
|
+
linkTemplate(name: string, url: string): import("lit-html").TemplateResult<1>;
|
|
6
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
'lukso-share': LuksoShare;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/lukso-share/index.ts"],"names":[],"mappings":";AAOA,qBACa,UAAW,SAAQ,eAA4B;IAE1D,WAAW,SAAK;IAEhB,OAAO,CAAC,IAAI,CASX;IAED,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IAStC,MAAM;CAgBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-8d1ad2d4.js';
|
|
2
|
+
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
+
import { c as customClassMap } from '../../index-714323c9.js';
|
|
4
|
+
|
|
5
|
+
const style = ":host {\n display: inline-flex\n}";
|
|
6
|
+
|
|
7
|
+
var __defProp = Object.defineProperty;
|
|
8
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
9
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
10
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
11
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
12
|
+
if (decorator = decorators[i])
|
|
13
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
14
|
+
if (kind && result)
|
|
15
|
+
__defProp(target, key, result);
|
|
16
|
+
return result;
|
|
17
|
+
};
|
|
18
|
+
let LuksoShare = class extends TailwindStyledElement(style) {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments);
|
|
21
|
+
this.customClass = "";
|
|
22
|
+
this.urls = {
|
|
23
|
+
twitter: "https://twitter.com/lukso_io",
|
|
24
|
+
instagram: "https://www.instagram.com/lukso/",
|
|
25
|
+
linkedin: "https://www.linkedin.com/company/18289660/",
|
|
26
|
+
telegram: "https://t.me/lukso",
|
|
27
|
+
discord: "footer_discord_url",
|
|
28
|
+
reddit: "https://www.reddit.com/r/lukso/",
|
|
29
|
+
medium: "https://medium.com/lukso",
|
|
30
|
+
github: "https://github.com/lukso-network"
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
linkTemplate(name, url) {
|
|
34
|
+
return x`<a
|
|
35
|
+
href=${url}
|
|
36
|
+
target="_blank"
|
|
37
|
+
class="transition-all duration-300 rounded-full hover:opacity-80 hover:shadow-button-hover-primary"
|
|
38
|
+
><img src="/assets/images/social-${name}.svg" alt=""
|
|
39
|
+
/></a>`;
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
const linkTemplates = [];
|
|
43
|
+
for (const i of Object.keys(this.urls)) {
|
|
44
|
+
linkTemplates.push(this.linkTemplate(i, this.urls[i]));
|
|
45
|
+
}
|
|
46
|
+
return x`<div
|
|
47
|
+
class="grid gap-4 grid-cols-[repeat(4,max-content)] sm:grid-cols-[repeat(8,max-content)] ${customClassMap(
|
|
48
|
+
{
|
|
49
|
+
[this.customClass]: !!this.customClass
|
|
50
|
+
}
|
|
51
|
+
)}"
|
|
52
|
+
>
|
|
53
|
+
${linkTemplates}
|
|
54
|
+
</div>`;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
__decorateClass([
|
|
58
|
+
e({ type: String, attribute: "custom-class" })
|
|
59
|
+
], LuksoShare.prototype, "customClass", 2);
|
|
60
|
+
LuksoShare = __decorateClass([
|
|
61
|
+
e$1("lukso-share")
|
|
62
|
+
], LuksoShare);
|
|
63
|
+
|
|
64
|
+
export { LuksoShare };
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-2cb404ff.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-d0125823.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
var __defProp = Object.defineProperty;
|
|
@@ -2,13 +2,13 @@
|
|
|
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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const state = require('../../state-a62a7d5d.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
require('../lukso-icon/index.cjs');
|
|
10
10
|
require('../lukso-sanitize/index.cjs');
|
|
11
|
-
require('../../style-map-
|
|
11
|
+
require('../../style-map-2cb404ff.cjs');
|
|
12
12
|
|
|
13
13
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
14
14
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { T as TailwindStyledElement, x } from '../../index-
|
|
1
|
+
import { T as TailwindStyledElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { t } from '../../state-7fde94d1.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
import '../lukso-icon/index.js';
|
|
6
6
|
import '../lukso-sanitize/index.js';
|
|
7
|
-
import '../../style-map-
|
|
7
|
+
import '../../style-map-d0125823.js';
|
|
8
8
|
|
|
9
9
|
const style = ":host {\n display: flex;\n height: 100%\n}";
|
|
10
10
|
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-
|
|
1
|
+
import { b as T$1, T as TailwindStyledElement, x as x$2 } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { b as e$3, i as i$3, t as t$3, e as e$4, a as e$5 } from '../../directive-9ec64c08.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
|
-
const styleMap = require('../../style-map-
|
|
7
|
+
const styleMap = require('../../style-map-2cb404ff.cjs');
|
|
8
8
|
const index = require('../../index-7dc05ee5.cjs');
|
|
9
9
|
|
|
10
10
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { a as TailwindElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { e, a as e$1 } from '../../directive-9ec64c08.js';
|
|
3
|
-
import { o } from '../../style-map-
|
|
3
|
+
import { o } from '../../style-map-d0125823.js';
|
|
4
4
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
5
5
|
|
|
6
6
|
const sliceAddress = (address, startSliceBy = 6, endSliceBy) => {
|
|
@@ -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-f230a866.cjs');
|
|
6
6
|
const directive = require('../../directive-db00f5fb.cjs');
|
|
7
7
|
const index = require('../../index-7dc05ee5.cjs');
|
|
8
8
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z, b as T, a as TailwindElement, x } from '../../index-
|
|
1
|
+
import { Z, b as T, a as TailwindElement, x } from '../../index-8d1ad2d4.js';
|
|
2
2
|
import { b as e, i, t, e as e$1, a as e$2 } from '../../directive-9ec64c08.js';
|
|
3
3
|
import { c as customClassMap } from '../../index-714323c9.js';
|
|
4
4
|
|