@lukso/web-components 1.10.0 → 1.11.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.
Files changed (52) hide show
  1. package/dist/components/index.cjs +7 -2
  2. package/dist/components/index.d.ts +1 -0
  3. package/dist/components/index.d.ts.map +1 -1
  4. package/dist/components/index.js +3 -2
  5. package/dist/components/lukso-button/index.cjs +1 -1
  6. package/dist/components/lukso-button/index.js +1 -1
  7. package/dist/components/lukso-card/index.cjs +3 -3
  8. package/dist/components/lukso-card/index.js +3 -3
  9. package/dist/components/lukso-icon/index.cjs +2 -2
  10. package/dist/components/lukso-icon/index.js +2 -2
  11. package/dist/components/lukso-input/index.cjs +1 -1
  12. package/dist/components/lukso-input/index.js +1 -1
  13. package/dist/components/lukso-modal/index.cjs +1 -1
  14. package/dist/components/lukso-modal/index.js +1 -1
  15. package/dist/components/lukso-navbar/index.cjs +3 -3
  16. package/dist/components/lukso-navbar/index.d.ts +1 -1
  17. package/dist/components/lukso-navbar/index.d.ts.map +1 -1
  18. package/dist/components/lukso-navbar/index.js +3 -3
  19. package/dist/components/lukso-profile/index.cjs +2 -2
  20. package/dist/components/lukso-profile/index.js +2 -2
  21. package/dist/components/lukso-sanitize/index.cjs +1 -1
  22. package/dist/components/lukso-sanitize/index.js +1 -1
  23. package/dist/components/lukso-tag/index.cjs +2 -2
  24. package/dist/components/lukso-tag/index.js +2 -2
  25. package/dist/components/lukso-terms/index.cjs +97 -0
  26. package/dist/components/lukso-terms/index.d.ts +17 -0
  27. package/dist/components/lukso-terms/index.d.ts.map +1 -0
  28. package/dist/components/lukso-terms/index.js +95 -0
  29. package/dist/components/lukso-test/index.cjs +1 -1
  30. package/dist/components/lukso-test/index.js +1 -1
  31. package/dist/components/lukso-username/index.cjs +2 -2
  32. package/dist/components/lukso-username/index.js +2 -2
  33. package/dist/components/lukso-wizard/index.cjs +1 -1
  34. package/dist/components/lukso-wizard/index.js +1 -1
  35. package/dist/index-29538039.js +59 -0
  36. package/dist/index-d6d4e98e.cjs +67 -0
  37. package/dist/index.cjs +7 -2
  38. package/dist/index.js +3 -2
  39. package/dist/shared/tailwind-element/index.cjs +1 -1
  40. package/dist/shared/tailwind-element/index.js +1 -1
  41. package/dist/{style-map-843d93d6.cjs → style-map-1d5d29da.cjs} +1 -1
  42. package/dist/{style-map-bc22229e.js → style-map-6fd59df5.js} +1 -1
  43. package/dist/styles/main.css +13 -0
  44. package/dist/styles/main.css.map +1 -1
  45. package/package.json +6 -1
  46. package/tailwind.config.cjs +5 -0
  47. package/tools/sass/component.scss +2 -0
  48. package/tools/sass/main.scss +2 -0
  49. package/tools/sass/utilities.scss +9 -0
  50. package/tools/styles/main.css +13 -0
  51. package/dist/index-9ac33909.cjs +0 -67
  52. package/dist/index-c8ea7256.js +0 -59
@@ -11,14 +11,15 @@ const components_luksoNavbar_index = require('./lukso-navbar/index.cjs');
11
11
  const components_luksoProfile_index = require('./lukso-profile/index.cjs');
12
12
  const components_luksoSanitize_index = require('./lukso-sanitize/index.cjs');
13
13
  const components_luksoTag_index = require('./lukso-tag/index.cjs');
14
+ const components_luksoTerms_index = require('./lukso-terms/index.cjs');
14
15
  const components_luksoTest_index = require('./lukso-test/index.cjs');
15
16
  const components_luksoUsername_index = require('./lukso-username/index.cjs');
16
17
  const components_luksoWizard_index = require('./lukso-wizard/index.cjs');
17
- const shared_tailwindElement_index = require('../index-9ac33909.cjs');
18
+ const shared_tailwindElement_index = require('../index-d6d4e98e.cjs');
18
19
  require('../directive-db00f5fb.cjs');
19
20
  require('../state-a62a7d5d.cjs');
20
21
  require('../index-7dc05ee5.cjs');
21
- require('../style-map-843d93d6.cjs');
22
+ require('../style-map-1d5d29da.cjs');
22
23
 
23
24
 
24
25
 
@@ -58,6 +59,10 @@ Object.defineProperty(exports, 'LuksoTag', {
58
59
  enumerable: true,
59
60
  get: () => components_luksoTag_index.LuksoTag
60
61
  });
62
+ Object.defineProperty(exports, 'LuksoTerms', {
63
+ enumerable: true,
64
+ get: () => components_luksoTerms_index.LuksoTerms
65
+ });
61
66
  Object.defineProperty(exports, 'LuksoTest', {
62
67
  enumerable: true,
63
68
  get: () => components_luksoTest_index.LuksoTest
@@ -7,6 +7,7 @@ export * from './lukso-navbar/index';
7
7
  export * from './lukso-profile/index';
8
8
  export * from './lukso-sanitize/index';
9
9
  export * from './lukso-tag/index';
10
+ export * from './lukso-terms/index';
10
11
  export * from './lukso-test/index';
11
12
  export * from './lukso-username/index';
12
13
  export * from './lukso-wizard/index';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["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,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,oBAAoB,CAAA;AAClC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,8BAA8B,CAAA"}
@@ -7,11 +7,12 @@ export { LuksoNavbar } from './lukso-navbar/index.js';
7
7
  export { LuksoProfile } from './lukso-profile/index.js';
8
8
  export { LuksoSanitize } from './lukso-sanitize/index.js';
9
9
  export { LuksoTag } from './lukso-tag/index.js';
10
+ export { LuksoTerms } from './lukso-terms/index.js';
10
11
  export { LuksoTest } from './lukso-test/index.js';
11
12
  export { LuksoUsername } from './lukso-username/index.js';
12
13
  export { LuksoWizard } from './lukso-wizard/index.js';
13
- export { a as TailwindElement, T as TailwindStyledElement } from '../index-c8ea7256.js';
14
+ export { a as TailwindElement, T as TailwindStyledElement } from '../index-29538039.js';
14
15
  import '../directive-9ec64c08.js';
15
16
  import '../state-7fde94d1.js';
16
17
  import '../index-714323c9.js';
17
- import '../style-map-bc22229e.js';
18
+ import '../style-map-6fd59df5.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-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.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, y } from '../../index-c8ea7256.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-29538039.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,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-843d93d6.cjs');
7
+ const styleMap = require('../../style-map-1d5d29da.cjs');
8
8
  const index = require('../../index-7dc05ee5.cjs');
9
9
  require('../lukso-profile/index.cjs');
10
10
 
11
- const style = ":host {\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
11
+ const style = ":host {\n display: flex;\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
12
12
 
13
13
  var __defProp = Object.defineProperty;
14
14
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,10 +1,10 @@
1
- import { T as TailwindStyledElement, y } from '../../index-c8ea7256.js';
1
+ import { T as TailwindStyledElement, y } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-bc22229e.js';
3
+ import { i } from '../../style-map-6fd59df5.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
  import '../lukso-profile/index.js';
6
6
 
7
- const style = ":host {\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
7
+ const style = ":host {\n display: flex;\n width: 100%;\n}\n\n:host([is-fixed-width]) {\n width: inherit;\n}";
8
8
 
9
9
  var __defProp = Object.defineProperty;
10
10
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-843d93d6.cjs');
7
+ const styleMap = require('../../style-map-1d5d29da.cjs');
8
8
 
9
9
  const style = ":host {\n display: inline-flex\n}";
10
10
 
@@ -1,6 +1,6 @@
1
- import { y, T as TailwindStyledElement } from '../../index-c8ea7256.js';
1
+ import { y, T as TailwindStyledElement } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-bc22229e.js';
3
+ import { i } from '../../style-map-6fd59df5.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-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.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, y, b } from '../../index-c8ea7256.js';
1
+ import { a as TailwindElement, y, b } from '../../index-29538039.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.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 { a as TailwindElement, y } from '../../index-c8ea7256.js';
1
+ import { a as TailwindElement, y } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
  const index = require('../../index-7dc05ee5.cjs');
8
8
 
@@ -27,7 +27,7 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
27
27
  this.centerStyles = `justify-center`;
28
28
  this.stickyStyles = `sticky top-0 z-[1000]`;
29
29
  }
30
- _onBrandClick() {
30
+ handleBrandClick() {
31
31
  const event = new CustomEvent("on-brand-click", {
32
32
  bubbles: true,
33
33
  composed: true
@@ -46,7 +46,7 @@ exports.LuksoNavbar = class LuksoNavbar extends shared_tailwindElement_index.Tai
46
46
  >
47
47
  <div
48
48
  class="flex items-center px-7 h-full cursor-pointer sm:px-10"
49
- @click=${this._onBrandClick}
49
+ @click=${this.handleBrandClick}
50
50
  >
51
51
  <img src="/assets/images/lukso-logo.svg" class="mr-4" />
52
52
  <div
@@ -6,7 +6,7 @@ export declare class LuksoNavbar extends TailwindElement {
6
6
  private defaultStyles;
7
7
  private centerStyles;
8
8
  private stickyStyles;
9
- _onBrandClick(): void;
9
+ private handleBrandClick;
10
10
  render(): import("lit").TemplateResult<1>;
11
11
  }
12
12
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,aAAa,CAAqD;IAE1E,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,aAAa;IAQb,MAAM;CA0BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAG3D,qBACa,WAAY,SAAQ,eAAe;IAE9C,KAAK,SAAK;IAGV,QAAQ,UAAQ;IAGhB,QAAQ,UAAQ;IAEhB,OAAO,CAAC,aAAa,CAAqD;IAE1E,OAAO,CAAC,YAAY,CAAmB;IAEvC,OAAO,CAAC,YAAY,CAA0B;IAE9C,OAAO,CAAC,gBAAgB;IAQxB,MAAM;CA0BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAA;KAC5B;CACF"}
@@ -1,4 +1,4 @@
1
- import { a as TailwindElement, y } from '../../index-c8ea7256.js';
1
+ import { a as TailwindElement, y } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
3
  import { c as customClassMap } from '../../index-714323c9.js';
4
4
 
@@ -23,7 +23,7 @@ let LuksoNavbar = class extends TailwindElement {
23
23
  this.centerStyles = `justify-center`;
24
24
  this.stickyStyles = `sticky top-0 z-[1000]`;
25
25
  }
26
- _onBrandClick() {
26
+ handleBrandClick() {
27
27
  const event = new CustomEvent("on-brand-click", {
28
28
  bubbles: true,
29
29
  composed: true
@@ -42,7 +42,7 @@ let LuksoNavbar = class extends TailwindElement {
42
42
  >
43
43
  <div
44
44
  class="flex items-center px-7 h-full cursor-pointer sm:px-10"
45
- @click=${this._onBrandClick}
45
+ @click=${this.handleBrandClick}
46
46
  >
47
47
  <img src="/assets/images/lukso-logo.svg" class="mr-4" />
48
48
  <div
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-843d93d6.cjs');
7
+ const styleMap = require('../../style-map-1d5d29da.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, y } from '../../index-c8ea7256.js';
1
+ import { a as TailwindElement, y } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-bc22229e.js';
3
+ import { i } from '../../style-map-6fd59df5.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,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { c as b, x, a as TailwindElement, y } from '../../index-c8ea7256.js';
1
+ import { c as b, x, a as TailwindElement, y } from '../../index-29538039.js';
2
2
  import { i, t, b as e$1, e as e$2, a as e$3 } 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-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-843d93d6.cjs');
7
+ const styleMap = require('../../style-map-1d5d29da.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, y } from '../../index-c8ea7256.js';
1
+ import { a as TailwindElement, y } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-bc22229e.js';
3
+ import { i } from '../../style-map-6fd59df5.js';
4
4
  import { c as customClassMap } from '../../index-714323c9.js';
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -0,0 +1,97 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
+
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
+ const directive = require('../../directive-db00f5fb.cjs');
7
+ const state = require('../../state-a62a7d5d.cjs');
8
+ const index = require('../../index-7dc05ee5.cjs');
9
+ require('../lukso-icon/index.cjs');
10
+ require('../lukso-sanitize/index.cjs');
11
+ require('../../style-map-1d5d29da.cjs');
12
+
13
+ const style = ":host {\n display: flex;\n height: 100%\n}";
14
+
15
+ var __defProp = Object.defineProperty;
16
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
17
+ var __decorateClass = (decorators, target, key, kind) => {
18
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
19
+ for (var i = decorators.length - 1, decorator; i >= 0; i--)
20
+ if (decorator = decorators[i])
21
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
22
+ if (kind && result)
23
+ __defProp(target, key, result);
24
+ return result;
25
+ };
26
+ exports.LuksoTerms = class LuksoTerms extends shared_tailwindElement_index.TailwindStyledElement(style) {
27
+ constructor() {
28
+ super(...arguments);
29
+ this.text = "";
30
+ this.hasScrollButton = true;
31
+ this.defaultStyles = `h-[56px] w-full sticky bottom-0 -mt-[56px]
32
+ bg-gradient-to-b from-transparent to-neutral-100/80
33
+ flex justify-center transition-opacity opacity-0`;
34
+ }
35
+ onScrollBottom() {
36
+ const event = new CustomEvent("on-bottom-scroll", {
37
+ bubbles: true,
38
+ composed: true
39
+ });
40
+ this.dispatchEvent(event);
41
+ }
42
+ handleScroll() {
43
+ const scrollContainer = this.shadowRoot.getElementById("scroll-container");
44
+ const scrollHeight = scrollContainer.scrollHeight - scrollContainer.offsetHeight;
45
+ const scrollTop = scrollContainer.scrollTop;
46
+ if (scrollTop >= scrollHeight) {
47
+ this.onScrollBottom();
48
+ this.hasScrollButton = false;
49
+ } else {
50
+ this.hasScrollButton = true;
51
+ }
52
+ }
53
+ handleBottomScroll() {
54
+ const scrollEnd = this.shadowRoot.getElementById("scroll-end");
55
+ scrollEnd && scrollEnd.scrollIntoView({
56
+ behavior: "smooth",
57
+ block: "nearest",
58
+ inline: "start"
59
+ });
60
+ }
61
+ render() {
62
+ return shared_tailwindElement_index.y`<div
63
+ id="scroll-container"
64
+ class="border border-solid border-neutral-90 rounded-12 overflow-y-scroll relative scrollbar-none"
65
+ @scroll=${this.handleScroll}
66
+ >
67
+ <div class="paragraph-inter-12-regular px-4 pt-3">
68
+ <lukso-sanitize html-content=${this.text}></lukso-sanitize>
69
+ <br />
70
+ <br />
71
+ <div id="scroll-end"></div>
72
+ </div>
73
+ <div
74
+ class=${index.customClassMap({
75
+ [this.defaultStyles]: true,
76
+ "!opacity-100": this.hasScrollButton
77
+ })}
78
+ >
79
+ <div
80
+ class="w-10 h-10 bg-neutral-100 rounded-full shadow-1xl flex items-center justify-center animate-bounce2 cursor-pointer"
81
+ @click=${this.handleBottomScroll}
82
+ >
83
+ <lukso-icon name="arrow-down-lg"></lukso-icon>
84
+ </div>
85
+ </div>
86
+ </div>`;
87
+ }
88
+ };
89
+ __decorateClass([
90
+ directive.e({ type: String })
91
+ ], exports.LuksoTerms.prototype, "text", 2);
92
+ __decorateClass([
93
+ state.t()
94
+ ], exports.LuksoTerms.prototype, "hasScrollButton", 2);
95
+ exports.LuksoTerms = __decorateClass([
96
+ directive.e$1("lukso-terms")
97
+ ], exports.LuksoTerms);
@@ -0,0 +1,17 @@
1
+ declare const LuksoTerms_base: typeof import("lit").LitElement;
2
+ export declare class LuksoTerms extends LuksoTerms_base {
3
+ text: string;
4
+ private hasScrollButton;
5
+ private defaultStyles;
6
+ private onScrollBottom;
7
+ private handleScroll;
8
+ private handleBottomScroll;
9
+ render(): import("lit").TemplateResult<1>;
10
+ }
11
+ declare global {
12
+ interface HTMLElementTagNameMap {
13
+ 'lukso-terms': LuksoTerms;
14
+ }
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAMA,OAAO,yBAAyB,CAAA;AAChC,OAAO,6BAA6B,CAAA;;AAEpC,qBACa,UAAW,SAAQ,eAA4B;IAE1D,IAAI,SAAK;IAGT,OAAO,CAAC,eAAe,CAAO;IAE9B,OAAO,CAAC,aAAa,CAE8B;IAEnD,OAAO,CAAC,cAAc;IAStB,OAAO,CAAC,YAAY;IAcpB,OAAO,CAAC,kBAAkB;IAW1B,MAAM;CA2BP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,aAAa,EAAE,UAAU,CAAA;KAC1B;CACF"}
@@ -0,0 +1,95 @@
1
+ import { T as TailwindStyledElement, y } from '../../index-29538039.js';
2
+ import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
+ import { t } from '../../state-7fde94d1.js';
4
+ import { c as customClassMap } from '../../index-714323c9.js';
5
+ import '../lukso-icon/index.js';
6
+ import '../lukso-sanitize/index.js';
7
+ import '../../style-map-6fd59df5.js';
8
+
9
+ const style = ":host {\n display: flex;\n height: 100%\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
+ let LuksoTerms = class extends TailwindStyledElement(style) {
23
+ constructor() {
24
+ super(...arguments);
25
+ this.text = "";
26
+ this.hasScrollButton = true;
27
+ this.defaultStyles = `h-[56px] w-full sticky bottom-0 -mt-[56px]
28
+ bg-gradient-to-b from-transparent to-neutral-100/80
29
+ flex justify-center transition-opacity opacity-0`;
30
+ }
31
+ onScrollBottom() {
32
+ const event = new CustomEvent("on-bottom-scroll", {
33
+ bubbles: true,
34
+ composed: true
35
+ });
36
+ this.dispatchEvent(event);
37
+ }
38
+ handleScroll() {
39
+ const scrollContainer = this.shadowRoot.getElementById("scroll-container");
40
+ const scrollHeight = scrollContainer.scrollHeight - scrollContainer.offsetHeight;
41
+ const scrollTop = scrollContainer.scrollTop;
42
+ if (scrollTop >= scrollHeight) {
43
+ this.onScrollBottom();
44
+ this.hasScrollButton = false;
45
+ } else {
46
+ this.hasScrollButton = true;
47
+ }
48
+ }
49
+ handleBottomScroll() {
50
+ const scrollEnd = this.shadowRoot.getElementById("scroll-end");
51
+ scrollEnd && scrollEnd.scrollIntoView({
52
+ behavior: "smooth",
53
+ block: "nearest",
54
+ inline: "start"
55
+ });
56
+ }
57
+ render() {
58
+ return y`<div
59
+ id="scroll-container"
60
+ class="border border-solid border-neutral-90 rounded-12 overflow-y-scroll relative scrollbar-none"
61
+ @scroll=${this.handleScroll}
62
+ >
63
+ <div class="paragraph-inter-12-regular px-4 pt-3">
64
+ <lukso-sanitize html-content=${this.text}></lukso-sanitize>
65
+ <br />
66
+ <br />
67
+ <div id="scroll-end"></div>
68
+ </div>
69
+ <div
70
+ class=${customClassMap({
71
+ [this.defaultStyles]: true,
72
+ "!opacity-100": this.hasScrollButton
73
+ })}
74
+ >
75
+ <div
76
+ class="w-10 h-10 bg-neutral-100 rounded-full shadow-1xl flex items-center justify-center animate-bounce2 cursor-pointer"
77
+ @click=${this.handleBottomScroll}
78
+ >
79
+ <lukso-icon name="arrow-down-lg"></lukso-icon>
80
+ </div>
81
+ </div>
82
+ </div>`;
83
+ }
84
+ };
85
+ __decorateClass([
86
+ e({ type: String })
87
+ ], LuksoTerms.prototype, "text", 2);
88
+ __decorateClass([
89
+ t()
90
+ ], LuksoTerms.prototype, "hasScrollButton", 2);
91
+ LuksoTerms = __decorateClass([
92
+ e$1("lukso-terms")
93
+ ], LuksoTerms);
94
+
95
+ export { LuksoTerms };
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
7
 
8
8
  /**
@@ -1,4 +1,4 @@
1
- import { x as x$2, T as TailwindStyledElement, y } from '../../index-c8ea7256.js';
1
+ import { x as x$2, T as TailwindStyledElement, y } from '../../index-29538039.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-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-843d93d6.cjs');
7
+ const styleMap = require('../../style-map-1d5d29da.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, y } from '../../index-c8ea7256.js';
1
+ import { a as TailwindElement, y } from '../../index-29538039.js';
2
2
  import { e, a as e$1 } from '../../directive-9ec64c08.js';
3
- import { i } from '../../style-map-bc22229e.js';
3
+ import { i } from '../../style-map-6fd59df5.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-9ac33909.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.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 { L, x, a as TailwindElement, y } from '../../index-c8ea7256.js';
1
+ import { L, x, a as TailwindElement, y } from '../../index-29538039.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