@lukso/web-components 1.9.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 (55) 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 +2 -2
  6. package/dist/components/lukso-button/index.d.ts.map +1 -1
  7. package/dist/components/lukso-button/index.js +2 -2
  8. package/dist/components/lukso-card/index.cjs +3 -3
  9. package/dist/components/lukso-card/index.js +3 -3
  10. package/dist/components/lukso-icon/index.cjs +8 -3
  11. package/dist/components/lukso-icon/index.d.ts +1 -1
  12. package/dist/components/lukso-icon/index.d.ts.map +1 -1
  13. package/dist/components/lukso-icon/index.js +8 -3
  14. package/dist/components/lukso-input/index.cjs +1 -1
  15. package/dist/components/lukso-input/index.js +1 -1
  16. package/dist/components/lukso-modal/index.cjs +1 -1
  17. package/dist/components/lukso-modal/index.js +1 -1
  18. package/dist/components/lukso-navbar/index.cjs +6 -6
  19. package/dist/components/lukso-navbar/index.d.ts +1 -1
  20. package/dist/components/lukso-navbar/index.d.ts.map +1 -1
  21. package/dist/components/lukso-navbar/index.js +6 -6
  22. package/dist/components/lukso-profile/index.cjs +2 -2
  23. package/dist/components/lukso-profile/index.js +2 -2
  24. package/dist/components/lukso-sanitize/index.cjs +1 -1
  25. package/dist/components/lukso-sanitize/index.js +1 -1
  26. package/dist/components/lukso-tag/index.cjs +2 -2
  27. package/dist/components/lukso-tag/index.js +2 -2
  28. package/dist/components/lukso-terms/index.cjs +97 -0
  29. package/dist/components/lukso-terms/index.d.ts +17 -0
  30. package/dist/components/lukso-terms/index.d.ts.map +1 -0
  31. package/dist/components/lukso-terms/index.js +95 -0
  32. package/dist/components/lukso-test/index.cjs +1 -1
  33. package/dist/components/lukso-test/index.js +1 -1
  34. package/dist/components/lukso-username/index.cjs +2 -2
  35. package/dist/components/lukso-username/index.js +2 -2
  36. package/dist/components/lukso-wizard/index.cjs +1 -1
  37. package/dist/components/lukso-wizard/index.js +1 -1
  38. package/dist/index-29538039.js +59 -0
  39. package/dist/index-d6d4e98e.cjs +67 -0
  40. package/dist/index.cjs +7 -2
  41. package/dist/index.js +3 -2
  42. package/dist/shared/tailwind-element/index.cjs +1 -1
  43. package/dist/shared/tailwind-element/index.js +1 -1
  44. package/dist/{style-map-1a17c547.cjs → style-map-1d5d29da.cjs} +1 -1
  45. package/dist/{style-map-9349d42d.js → style-map-6fd59df5.js} +1 -1
  46. package/dist/styles/main.css +13 -0
  47. package/dist/styles/main.css.map +1 -1
  48. package/package.json +6 -1
  49. package/tailwind.config.cjs +5 -0
  50. package/tools/sass/component.scss +2 -0
  51. package/tools/sass/main.scss +2 -0
  52. package/tools/sass/utilities.scss +9 -0
  53. package/tools/styles/main.css +13 -0
  54. package/dist/index-c20a98f8.cjs +0 -67
  55. package/dist/index-d0b3df5b.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-c20a98f8.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-1a17c547.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-d0b3df5b.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-9349d42d.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-c20a98f8.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');
@@ -66,7 +66,7 @@ exports.LuksoButton = class LuksoButton extends shared_tailwindElement_index.Tai
66
66
  this.smallSize = `py-1 px-3 paragraph-inter-12-regular rounded-8 hover:shadow-none active:shadow-none`;
67
67
  }
68
68
  handleMouseDown() {
69
- if (this.variant !== "primary" && this.variant !== "landing") {
69
+ if (this.variant !== "primary" && this.variant !== "landing" && this.isLongPress) {
70
70
  return console.warn(
71
71
  "Long press is only available for primary and landing variants"
72
72
  );
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAOA,oBAAY,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AACxE,oBAAY,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC3C,oBAAY,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,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAGqE;IAE1F,OAAO,CAAC,eAAe,CACoD;IAE3E,OAAO,CAAC,aAAa,CAIE;IAEvB,OAAO,CAAC,aAAa,CAIC;IAEtB,OAAO,CAAC,UAAU,CAGS;IAE3B,OAAO,CAAC,UAAU,CAAyE;IAE3F,OAAO,CAAC,eAAe,CAEyD;IAEhF,OAAO,CAAC,aAAa,CAAgC;IAErD,OAAO,CAAC,kBAAkB,CAA2B;IAErD,OAAO,CAAC,UAAU,CAAsD;IAExE,OAAO,CAAC,SAAS,CAAwF;IAEzG,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,aAAa;IAcrB,cAAc;IA2Bd,YAAY;IAwBZ,MAAM;CAGP;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":"AAOA,oBAAY,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AACxE,oBAAY,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC3C,oBAAY,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,IAAI,SAAK;IAGT,MAAM,EAAE,UAAU,CAAW;IAG7B,GAAG,SAAK;IAGR,OAAO,CAAC,SAAS,CAAQ;IAGzB,OAAO,CAAC,YAAY,CAAQ;IAG5B,OAAO,CAAC,KAAK,CAAI;IAEjB,OAAO,CAAC,aAAa,CAGqE;IAE1F,OAAO,CAAC,eAAe,CACoD;IAE3E,OAAO,CAAC,aAAa,CAIE;IAEvB,OAAO,CAAC,aAAa,CAIC;IAEtB,OAAO,CAAC,UAAU,CAGS;IAE3B,OAAO,CAAC,UAAU,CAAyE;IAE3F,OAAO,CAAC,eAAe,CAEyD;IAEhF,OAAO,CAAC,aAAa,CAAgC;IAErD,OAAO,CAAC,kBAAkB,CAA2B;IAErD,OAAO,CAAC,UAAU,CAAsD;IAExE,OAAO,CAAC,SAAS,CAAwF;IAEzG,OAAO,CAAC,eAAe;IA2BvB,OAAO,CAAC,aAAa;IAcrB,cAAc;IA2Bd,YAAY;IAwBZ,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, y } from '../../index-d0b3df5b.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';
@@ -62,7 +62,7 @@ let LuksoButton = class extends TailwindStyledElement(style) {
62
62
  this.smallSize = `py-1 px-3 paragraph-inter-12-regular rounded-8 hover:shadow-none active:shadow-none`;
63
63
  }
64
64
  handleMouseDown() {
65
- if (this.variant !== "primary" && this.variant !== "landing") {
65
+ if (this.variant !== "primary" && this.variant !== "landing" && this.isLongPress) {
66
66
  return console.warn(
67
67
  "Long press is only available for primary and landing variants"
68
68
  );
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c20a98f8.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1a17c547.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-d0b3df5b.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-9349d42d.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-c20a98f8.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1a17c547.cjs');
7
+ const styleMap = require('../../style-map-1d5d29da.cjs');
8
8
 
9
9
  const style = ":host {\n display: inline-flex\n}";
10
10
 
@@ -3771,7 +3771,7 @@ const progressIndicator = (options) => {
3771
3771
  >
3772
3772
  <g clip-path="url(#clip0_1744_19360)">
3773
3773
  <g filter="url(#filter0_ddd_1744_19360)">
3774
- <circle cx="20" cy="20" r="20" fill="#F8FAFB" />
3774
+ <circle cx="20" cy="20" r="20" fill="transparent" />
3775
3775
  </g>
3776
3776
  <g filter="url(#filter1_ii_1744_19360)">
3777
3777
  <path
@@ -4496,6 +4496,11 @@ exports.LuksoIcon = class LuksoIcon extends shared_tailwindElement_index.Tailwin
4496
4496
  width: 40,
4497
4497
  height: 40,
4498
4498
  strokeWidth: 1.5
4499
+ },
4500
+ "2x-large": {
4501
+ width: 64,
4502
+ height: 64,
4503
+ strokeWidth: 1.5
4499
4504
  }
4500
4505
  };
4501
4506
  }
@@ -5,7 +5,7 @@ export declare type IconOptions = {
5
5
  strokeWidth: number;
6
6
  secondaryColor?: string;
7
7
  };
8
- export declare type IconSize = 'small' | 'medium' | 'large' | 'x-large';
8
+ export declare type IconSize = 'small' | 'medium' | 'large' | 'x-large' | '2x-large';
9
9
  declare const LuksoIcon_base: typeof import("lit").LitElement;
10
10
  export declare class LuksoIcon extends LuksoIcon_base {
11
11
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAyHA,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;;AA8H/D,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CAqBZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAyHA,oBAAY,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,CAAA;;AA8H5E,qBACa,SAAU,SAAQ,cAA4B;IAEzD,IAAI,SAAK;IAGT,IAAI,SAAW;IAGf,KAAK,SAAe;IAGpB,cAAc,SAAK;IAEnB,OAAO,CAAC,KAAK,CA0BZ;IAED,MAAM;CAuBP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAA;KACxB;CACF"}
@@ -1,6 +1,6 @@
1
- import { y, T as TailwindStyledElement } from '../../index-d0b3df5b.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-9349d42d.js';
3
+ import { i } from '../../style-map-6fd59df5.js';
4
4
 
5
5
  const style = ":host {\n display: inline-flex\n}";
6
6
 
@@ -3767,7 +3767,7 @@ const progressIndicator = (options) => {
3767
3767
  >
3768
3768
  <g clip-path="url(#clip0_1744_19360)">
3769
3769
  <g filter="url(#filter0_ddd_1744_19360)">
3770
- <circle cx="20" cy="20" r="20" fill="#F8FAFB" />
3770
+ <circle cx="20" cy="20" r="20" fill="transparent" />
3771
3771
  </g>
3772
3772
  <g filter="url(#filter1_ii_1744_19360)">
3773
3773
  <path
@@ -4492,6 +4492,11 @@ let LuksoIcon = class extends TailwindStyledElement(style) {
4492
4492
  width: 40,
4493
4493
  height: 40,
4494
4494
  strokeWidth: 1.5
4495
+ },
4496
+ "2x-large": {
4497
+ width: 64,
4498
+ height: 64,
4499
+ strokeWidth: 1.5
4495
4500
  }
4496
4501
  };
4497
4502
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c20a98f8.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-d0b3df5b.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-c20a98f8.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-d0b3df5b.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-c20a98f8.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,14 +46,14 @@ 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
53
- class="text-purple-51 nav-apax-14-medium-uppercase whitespace-pre-line flex leading-none
54
- hover:text-purple-41"
53
+ class="text-purple-51 nav-apax-14-medium-uppercase
54
+ whitespace-pre-line flex leading-none hover:text-purple-41"
55
55
  >
56
- ${this.title}
56
+ <span>${this.title}</span>
57
57
  </div>
58
58
  </div>
59
59
  <slot></slot>
@@ -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-d0b3df5b.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,14 +42,14 @@ 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
49
- class="text-purple-51 nav-apax-14-medium-uppercase whitespace-pre-line flex leading-none
50
- hover:text-purple-41"
49
+ class="text-purple-51 nav-apax-14-medium-uppercase
50
+ whitespace-pre-line flex leading-none hover:text-purple-41"
51
51
  >
52
- ${this.title}
52
+ <span>${this.title}</span>
53
53
  </div>
54
54
  </div>
55
55
  <slot></slot>
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const shared_tailwindElement_index = require('../../index-c20a98f8.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1a17c547.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-d0b3df5b.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-9349d42d.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-c20a98f8.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-d0b3df5b.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-c20a98f8.cjs');
5
+ const shared_tailwindElement_index = require('../../index-d6d4e98e.cjs');
6
6
  const directive = require('../../directive-db00f5fb.cjs');
7
- const styleMap = require('../../style-map-1a17c547.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-d0b3df5b.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-9349d42d.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-c20a98f8.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-d0b3df5b.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
  /**