@esportsplus/ui 0.49.7 → 0.50.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.
Files changed (38) hide show
  1. package/build/components/accordion/index.d.ts +16 -16
  2. package/build/components/accordion/index.js +17 -17
  3. package/build/components/alert/index.js +41 -41
  4. package/build/components/back/index.d.ts +8 -8
  5. package/build/components/back/index.js +8 -8
  6. package/build/components/button/index.d.ts +21 -21
  7. package/build/components/button/index.js +24 -24
  8. package/build/components/checkbox/index.js +23 -23
  9. package/build/components/clipboard/onclick.js +13 -13
  10. package/build/components/counter/index.js +34 -34
  11. package/build/components/ellipsis/index.js +5 -5
  12. package/build/components/form/action.js +8 -8
  13. package/build/components/highlight/index.d.ts +16 -16
  14. package/build/components/highlight/index.js +15 -15
  15. package/build/components/icon/index.d.ts +11 -11
  16. package/build/components/icon/index.js +6 -6
  17. package/build/components/input/index.js +20 -20
  18. package/build/components/loader/index.d.ts +16 -16
  19. package/build/components/loader/index.js +33 -33
  20. package/build/components/loading/index.js +5 -5
  21. package/build/components/range/index.js +25 -25
  22. package/build/components/root/scss/index.scss +1 -1
  23. package/build/components/scrollbar/index.d.ts +11 -11
  24. package/build/components/scrollbar/index.js +24 -24
  25. package/build/components/select/index.js +40 -40
  26. package/build/components/textarea/index.js +20 -20
  27. package/build/components/tooltip/menu.d.ts +11 -11
  28. package/build/components/tooltip/menu.js +20 -20
  29. package/build/components/tooltip/onclick.d.ts +1101 -1101
  30. package/build/components/tooltip/onclick.js +14 -14
  31. package/build/components/tooltip/onhover.d.ts +16 -16
  32. package/build/components/tooltip/onhover.js +15 -15
  33. package/build/components/typewriter/index.d.ts +11 -11
  34. package/build/components/typewriter/index.js +14 -14
  35. package/package.json +1 -1
  36. package/src/tokens/scss/box-shadow.scss +11 -13
  37. package/src/tokens/scss/color.scss +31 -42
  38. package/src/tokens/scss/font-size.scss +10 -10
@@ -1,19 +1,19 @@
1
- import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
- import * as reactivity_674b8ccc1a634e6cb7742603036f95970 from '@esportsplus/reactivity';
1
+ import * as template_ff106a5110604dc68caba4a5312560fc1 from '@esportsplus/template';
2
+ import * as reactivity_ff106a5110604dc68caba4a5312560fc0 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import { root } from '@esportsplus/ui';
5
5
  import template from '../../components/template/index.js';
6
- const template_674b8ccc1a634e6cb7742603036f95974t = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='tooltip'><!--$--></div>`);
7
- class ReactiveObject_674b8ccc1a634e6cb7742603036f95974r extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
8
- #active = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](false);
6
+ const template_ff106a5110604dc68caba4a5312560fc4t = template_ff106a5110604dc68caba4a5312560fc1.template(`<div class='tooltip'><!--$--></div>`);
7
+ class ReactiveObject_ff106a5110604dc68caba4a5312560fc4r extends reactivity_ff106a5110604dc68caba4a5312560fc0.ReactiveObject {
8
+ #active = this[reactivity_ff106a5110604dc68caba4a5312560fc0.SIGNAL](false);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get active() {
13
- return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#active);
13
+ return reactivity_ff106a5110604dc68caba4a5312560fc0.read(this.#active);
14
14
  }
15
15
  set active(_v0) {
16
- reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#active, _v0);
16
+ reactivity_ff106a5110604dc68caba4a5312560fc0.write(this.#active, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['state', 'toggle'];
@@ -37,12 +37,12 @@ function frame() {
37
37
  running = false;
38
38
  }
39
39
  export default template.factory((attributes, content) => {
40
- let state = attributes.state || new ReactiveObject_674b8ccc1a634e6cb7742603036f95974r(), toggle = attributes.toggle || false;
40
+ let state = attributes.state || new ReactiveObject_ff106a5110604dc68caba4a5312560fc4r(), toggle = attributes.toggle || false;
41
41
  return (() => {
42
- let root_674b8ccc1a634e6cb7742603036f95974s = template_674b8ccc1a634e6cb7742603036f95974t(), element_674b8ccc1a634e6cb7742603036f95974u = root_674b8ccc1a634e6cb7742603036f95974s.firstChild, element_674b8ccc1a634e6cb7742603036f95974v = element_674b8ccc1a634e6cb7742603036f95974u.firstChild, attributes_674b8ccc1a634e6cb7742603036f95974w = { "class": "tooltip" };
43
- template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f95974u, omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f95974w);
44
- template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f95974u, 'class', () => state.active && '--active', attributes_674b8ccc1a634e6cb7742603036f95974w);
45
- template_674b8ccc1a634e6cb7742603036f95971.delegate(element_674b8ccc1a634e6cb7742603036f95974u, 'click', function (e) {
42
+ let root_ff106a5110604dc68caba4a5312560fc4s = template_ff106a5110604dc68caba4a5312560fc4t(), element_ff106a5110604dc68caba4a5312560fc4u = root_ff106a5110604dc68caba4a5312560fc4s.firstChild, element_ff106a5110604dc68caba4a5312560fc4v = element_ff106a5110604dc68caba4a5312560fc4u.firstChild, attributes_ff106a5110604dc68caba4a5312560fc4w = { "class": "tooltip" };
43
+ template_ff106a5110604dc68caba4a5312560fc1.setProperties(element_ff106a5110604dc68caba4a5312560fc4u, omit(attributes, OMIT), attributes_ff106a5110604dc68caba4a5312560fc4w);
44
+ template_ff106a5110604dc68caba4a5312560fc1.setList(element_ff106a5110604dc68caba4a5312560fc4u, 'class', () => state.active && '--active', attributes_ff106a5110604dc68caba4a5312560fc4w);
45
+ template_ff106a5110604dc68caba4a5312560fc1.delegate(element_ff106a5110604dc68caba4a5312560fc4u, 'click', function (e) {
46
46
  let active = true, node = e.target;
47
47
  if (this === node || (toggle && this.contains(node))) {
48
48
  active = !state.active;
@@ -70,7 +70,7 @@ export default template.factory((attributes, content) => {
70
70
  scheduled = true;
71
71
  }
72
72
  });
73
- template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f95974v, content);
74
- return root_674b8ccc1a634e6cb7742603036f95974s;
73
+ template_ff106a5110604dc68caba4a5312560fc1.slot(element_ff106a5110604dc68caba4a5312560fc4v, content);
74
+ return root_ff106a5110604dc68caba4a5312560fc4s;
75
75
  })();
76
76
  });
@@ -1,20 +1,20 @@
1
- import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
1
+ import * as template_ff106a5110604dc68caba4a5312560fc1 from '@esportsplus/template';
2
2
  declare const _default: {
3
3
  (): ReturnType<(this: {
4
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
5
- content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
6
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
7
- <T extends template_674b8ccc1a634e6cb7742603036f95971.Attributes>(attributes: T): ReturnType<(this: {
8
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
9
- content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
10
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
11
- <T extends template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>(content: T): ReturnType<(this: {
12
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
13
- content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
14
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
15
- (attributes: template_674b8ccc1a634e6cb7742603036f95971.Attributes, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>): ReturnType<(this: {
16
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
17
- content?: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>;
18
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
4
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
5
+ content?: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>;
6
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
7
+ <T extends template_ff106a5110604dc68caba4a5312560fc1.Attributes>(attributes: T): ReturnType<(this: {
8
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
9
+ content?: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>;
10
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
11
+ <T extends template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>(content: T): ReturnType<(this: {
12
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
13
+ content?: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>;
14
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
15
+ (attributes: template_ff106a5110604dc68caba4a5312560fc1.Attributes, content: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>): ReturnType<(this: {
16
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
17
+ content?: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>;
18
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
19
19
  };
20
20
  export default _default;
@@ -1,34 +1,34 @@
1
- import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
- import * as reactivity_674b8ccc1a634e6cb7742603036f95970 from '@esportsplus/reactivity';
1
+ import * as template_ff106a5110604dc68caba4a5312560fc1 from '@esportsplus/template';
2
+ import * as reactivity_ff106a5110604dc68caba4a5312560fc0 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
- const template_674b8ccc1a634e6cb7742603036f95974z = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='tooltip'><!--$--></div>`);
6
- class ReactiveObject_674b8ccc1a634e6cb7742603036f95974x extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
7
- #active = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL](false);
5
+ const template_ff106a5110604dc68caba4a5312560fc4z = template_ff106a5110604dc68caba4a5312560fc1.template(`<div class='tooltip'><!--$--></div>`);
6
+ class ReactiveObject_ff106a5110604dc68caba4a5312560fc4x extends reactivity_ff106a5110604dc68caba4a5312560fc0.ReactiveObject {
7
+ #active = this[reactivity_ff106a5110604dc68caba4a5312560fc0.SIGNAL](false);
8
8
  constructor() {
9
9
  super(null);
10
10
  }
11
11
  get active() {
12
- return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#active);
12
+ return reactivity_ff106a5110604dc68caba4a5312560fc0.read(this.#active);
13
13
  }
14
14
  set active(_v0) {
15
- reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#active, _v0);
15
+ reactivity_ff106a5110604dc68caba4a5312560fc0.write(this.#active, _v0);
16
16
  }
17
17
  }
18
18
  const OMIT = ['state'];
19
19
  export default template.factory((attributes, content) => {
20
- let state = attributes.state || new ReactiveObject_674b8ccc1a634e6cb7742603036f95974x();
20
+ let state = attributes.state || new ReactiveObject_ff106a5110604dc68caba4a5312560fc4x();
21
21
  return (() => {
22
- let root_674b8ccc1a634e6cb7742603036f95974y = template_674b8ccc1a634e6cb7742603036f95974z(), element_674b8ccc1a634e6cb7742603036f959750 = root_674b8ccc1a634e6cb7742603036f95974y.firstChild, element_674b8ccc1a634e6cb7742603036f959751 = element_674b8ccc1a634e6cb7742603036f959750.firstChild, attributes_674b8ccc1a634e6cb7742603036f959752 = { "class": "tooltip" };
23
- template_674b8ccc1a634e6cb7742603036f95971.setProperties(element_674b8ccc1a634e6cb7742603036f959750, omit(attributes, OMIT), attributes_674b8ccc1a634e6cb7742603036f959752);
24
- template_674b8ccc1a634e6cb7742603036f95971.setList(element_674b8ccc1a634e6cb7742603036f959750, 'class', () => state.active && '--active', attributes_674b8ccc1a634e6cb7742603036f959752);
25
- template_674b8ccc1a634e6cb7742603036f95971.delegate(element_674b8ccc1a634e6cb7742603036f959750, 'mouseover', () => {
22
+ let root_ff106a5110604dc68caba4a5312560fc4y = template_ff106a5110604dc68caba4a5312560fc4z(), element_ff106a5110604dc68caba4a5312560fc50 = root_ff106a5110604dc68caba4a5312560fc4y.firstChild, element_ff106a5110604dc68caba4a5312560fc51 = element_ff106a5110604dc68caba4a5312560fc50.firstChild, attributes_ff106a5110604dc68caba4a5312560fc52 = { "class": "tooltip" };
23
+ template_ff106a5110604dc68caba4a5312560fc1.setProperties(element_ff106a5110604dc68caba4a5312560fc50, omit(attributes, OMIT), attributes_ff106a5110604dc68caba4a5312560fc52);
24
+ template_ff106a5110604dc68caba4a5312560fc1.setList(element_ff106a5110604dc68caba4a5312560fc50, 'class', () => state.active && '--active', attributes_ff106a5110604dc68caba4a5312560fc52);
25
+ template_ff106a5110604dc68caba4a5312560fc1.delegate(element_ff106a5110604dc68caba4a5312560fc50, 'mouseover', () => {
26
26
  state.active = true;
27
27
  });
28
- template_674b8ccc1a634e6cb7742603036f95971.delegate(element_674b8ccc1a634e6cb7742603036f959750, 'mouseout', () => {
28
+ template_ff106a5110604dc68caba4a5312560fc1.delegate(element_ff106a5110604dc68caba4a5312560fc50, 'mouseout', () => {
29
29
  state.active = false;
30
30
  });
31
- template_674b8ccc1a634e6cb7742603036f95971.slot(element_674b8ccc1a634e6cb7742603036f959751, content);
32
- return root_674b8ccc1a634e6cb7742603036f95974y;
31
+ template_ff106a5110604dc68caba4a5312560fc1.slot(element_ff106a5110604dc68caba4a5312560fc51, content);
32
+ return root_ff106a5110604dc68caba4a5312560fc4y;
33
33
  })();
34
34
  });
@@ -1,21 +1,21 @@
1
- import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
1
+ import * as template_ff106a5110604dc68caba4a5312560fc1 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
5
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
6
6
  content?: string[] | undefined;
7
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string[]) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
8
- <T extends template_674b8ccc1a634e6cb7742603036f95971.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
7
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: string[]) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
8
+ <T extends template_ff106a5110604dc68caba4a5312560fc1.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
10
10
  content?: string[] | undefined;
11
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string[]) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
11
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: string[]) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
12
12
  <T extends string[]>(content: T): ReturnType<(this: {
13
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
13
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
14
14
  content?: string[] | undefined;
15
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string[]) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
16
- (attributes: template_674b8ccc1a634e6cb7742603036f95971.Attributes, content: string[]): ReturnType<(this: {
17
- attributes?: template_674b8ccc1a634e6cb7742603036f95971.Attributes | undefined;
15
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: string[]) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
16
+ (attributes: template_ff106a5110604dc68caba4a5312560fc1.Attributes, content: string[]): ReturnType<(this: {
17
+ attributes?: template_ff106a5110604dc68caba4a5312560fc1.Attributes | undefined;
18
18
  content?: string[] | undefined;
19
- }, attributes: Readonly<template_674b8ccc1a634e6cb7742603036f95971.Attributes>, content: string[]) => template_674b8ccc1a634e6cb7742603036f95971.Renderable<any>>;
19
+ }, attributes: Readonly<template_ff106a5110604dc68caba4a5312560fc1.Attributes>, content: string[]) => template_ff106a5110604dc68caba4a5312560fc1.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,27 +1,27 @@
1
- import * as template_674b8ccc1a634e6cb7742603036f95971 from '@esportsplus/template';
2
- import * as reactivity_674b8ccc1a634e6cb7742603036f95970 from '@esportsplus/reactivity';
1
+ import * as template_ff106a5110604dc68caba4a5312560fc1 from '@esportsplus/template';
2
+ import * as reactivity_ff106a5110604dc68caba4a5312560fc0 from '@esportsplus/reactivity';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_674b8ccc1a634e6cb7742603036f959755 = template_674b8ccc1a634e6cb7742603036f95971.template(`<div class='typewriter'><!--$--></div>`);
6
- const template_674b8ccc1a634e6cb7742603036f959758 = template_674b8ccc1a634e6cb7742603036f95971.template(``);
7
- class ReactiveObject_674b8ccc1a634e6cb7742603036f959753 extends reactivity_674b8ccc1a634e6cb7742603036f95970.ReactiveObject {
8
- #text = this[reactivity_674b8ccc1a634e6cb7742603036f95970.SIGNAL]('');
5
+ const template_ff106a5110604dc68caba4a5312560fc55 = template_ff106a5110604dc68caba4a5312560fc1.template(`<div class='typewriter'><!--$--></div>`);
6
+ const template_ff106a5110604dc68caba4a5312560fc58 = template_ff106a5110604dc68caba4a5312560fc1.template(``);
7
+ class ReactiveObject_ff106a5110604dc68caba4a5312560fc53 extends reactivity_ff106a5110604dc68caba4a5312560fc0.ReactiveObject {
8
+ #text = this[reactivity_ff106a5110604dc68caba4a5312560fc0.SIGNAL]('');
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get text() {
13
- return reactivity_674b8ccc1a634e6cb7742603036f95970.read(this.#text);
13
+ return reactivity_ff106a5110604dc68caba4a5312560fc0.read(this.#text);
14
14
  }
15
15
  set text(_v0) {
16
- reactivity_674b8ccc1a634e6cb7742603036f95970.write(this.#text, _v0);
16
+ reactivity_ff106a5110604dc68caba4a5312560fc0.write(this.#text, _v0);
17
17
  }
18
18
  }
19
- const EMPTY_NODE = template_674b8ccc1a634e6cb7742603036f959758();
19
+ const EMPTY_NODE = template_ff106a5110604dc68caba4a5312560fc58();
20
20
  export default template.factory(function (_, content) {
21
- let state = new ReactiveObject_674b8ccc1a634e6cb7742603036f959753();
21
+ let state = new ReactiveObject_ff106a5110604dc68caba4a5312560fc53();
22
22
  return (() => {
23
- let root_674b8ccc1a634e6cb7742603036f959754 = template_674b8ccc1a634e6cb7742603036f959755(), element_674b8ccc1a634e6cb7742603036f959756 = root_674b8ccc1a634e6cb7742603036f959754.firstChild, element_674b8ccc1a634e6cb7742603036f959757 = element_674b8ccc1a634e6cb7742603036f959756.firstChild;
24
- template_674b8ccc1a634e6cb7742603036f95971.onconnect(element_674b8ccc1a634e6cb7742603036f959756, () => {
23
+ let root_ff106a5110604dc68caba4a5312560fc54 = template_ff106a5110604dc68caba4a5312560fc55(), element_ff106a5110604dc68caba4a5312560fc56 = root_ff106a5110604dc68caba4a5312560fc54.firstChild, element_ff106a5110604dc68caba4a5312560fc57 = element_ff106a5110604dc68caba4a5312560fc56.firstChild;
24
+ template_ff106a5110604dc68caba4a5312560fc1.onconnect(element_ff106a5110604dc68caba4a5312560fc56, () => {
25
25
  let character = 0, i = 0, isWriting = true, write = content[i];
26
26
  function play() {
27
27
  setTimeout(() => {
@@ -50,7 +50,7 @@ export default template.factory(function (_, content) {
50
50
  }
51
51
  play();
52
52
  });
53
- new template_674b8ccc1a634e6cb7742603036f95971.EffectSlot(element_674b8ccc1a634e6cb7742603036f959757, () => state.text || EMPTY_NODE);
54
- return root_674b8ccc1a634e6cb7742603036f959754;
53
+ new template_ff106a5110604dc68caba4a5312560fc1.EffectSlot(element_ff106a5110604dc68caba4a5312560fc57, () => state.text || EMPTY_NODE);
54
+ return root_ff106a5110604dc68caba4a5312560fc54;
55
55
  })();
56
56
  });
package/package.json CHANGED
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "sideEffects": false,
61
61
  "type": "module",
62
- "version": "0.49.7",
62
+ "version": "0.50.1",
63
63
  "scripts": {
64
64
  "build": "run-s build:vite build:ts",
65
65
  "build:ts": "tsc",
@@ -1,25 +1,23 @@
1
- @use './color';
2
-
3
1
  $box-shadow: (
4
- 100: 0 1px 2px 0 color.color('black' 300, 0.2),
2
+ 100: 0 1px 2px 0 oklch(from var(--black-300) l c h / 0.2),
5
3
  200: #{
6
- 0 1px 3px 0 color.color('black' 300, 0.2),
7
- 0 1px 2px -1px color.color('black' 300, 0.2)
4
+ 0 1px 3px 0 oklch(from var(--black-300) l c h / 0.2),
5
+ 0 1px 2px -1px oklch(from var(--black-300) l c h / 0.2)
8
6
  },
9
7
  300: #{
10
- 0 4px 6px -1px color.color('black' 300, 0.2),
11
- 0 2px 4px -2px color.color('black' 300, 0.2)
8
+ 0 4px 6px -1px oklch(from var(--black-300) l c h / 0.2),
9
+ 0 2px 4px -2px oklch(from var(--black-300) l c h / 0.2)
12
10
  },
13
11
  400: #{
14
- 0 10px 15px -3px color.color('black' 300, 0.2),
15
- 0 10px 15px -3px color.color('black' 300, 0.2),
16
- 0 4px 6px -4px color.color('black' 300, 0.2)
12
+ 0 10px 15px -3px oklch(from var(--black-300) l c h / 0.2),
13
+ 0 10px 15px -3px oklch(from var(--black-300) l c h / 0.2),
14
+ 0 4px 6px -4px oklch(from var(--black-300) l c h / 0.2)
17
15
  },
18
16
  500: #{
19
- 0 20px 25px -5px color.color('black' 300, 0.2),
20
- 0 8px 10px -6px color.color('black' 300, 0.2)
17
+ 0 20px 25px -5px oklch(from var(--black-300) l c h / 0.2),
18
+ 0 8px 10px -6px oklch(from var(--black-300) l c h / 0.2)
21
19
  },
22
- 600: 0 25px 50px -12px color.color('black' 500, 0.2),
20
+ 600: 0 25px 50px -12px oklch(from var(--black-500) l c h / 0.2),
23
21
 
24
22
  glow: #{
25
23
  0px 0px 128px 32px var(--box-shadow-color, #fff),
@@ -3,66 +3,55 @@
3
3
 
4
4
  $color: (
5
5
  'black': (
6
- 300: #101221,
7
- 400: #020412,
8
- 500: #01030c
6
+ 300: oklch(18.84% 0.0306 277.2),
7
+ 400: oklch(11.47% 0.0361 268.9),
8
+ 500: oklch(10.04% 0.0287 263.4)
9
9
  ),
10
10
  'blue': (
11
- 300: #3755ff,
12
- 400: #2545ff,
13
- 500: #1e3def
11
+ 300: oklch(54.49% 0.2514 268.2),
12
+ 400: oklch(51.45% 0.2712 266.6),
13
+ 500: oklch(48.45% 0.2617 266.3)
14
14
  ),
15
15
  'border': (
16
- 300: #bec3dd,
17
- 400: #b4b9d2,
18
- 500: #a5a9c2
16
+ 300: oklch(82.15% 0.0368 276.9),
17
+ 400: oklch(78.98% 0.0358 276.6),
18
+ 500: oklch(73.98% 0.0362 278.3)
19
19
  ),
20
20
  'green': (
21
- 300: #18ff4b,
22
- 400: #01f336,
23
- 500: #00e131
21
+ 300: oklch(87.03% 0.2708 144.9),
22
+ 400: oklch(83.70% 0.2711 144.0),
23
+ 500: oklch(78.97% 0.2560 144.0)
24
24
  ),
25
25
  'grey': (
26
- 300: #f4f9ff,
27
- 400: #e7f1fa,
28
- 500: #d4dde6
26
+ 300: oklch(98.01% 0.0096 252.8),
27
+ 400: oklch(95.33% 0.0162 245.1),
28
+ 500: oklch(89.33% 0.0157 248.0)
29
29
  ),
30
30
  'purple': (
31
- 300: #7d15ff,
32
- 400: #7300ff,
33
- 500: #6a00eb
31
+ 300: oklch(53.29% 0.2877 292.5),
32
+ 400: oklch(51.66% 0.2929 289.7),
33
+ 500: oklch(48.63% 0.2754 289.9)
34
34
  ),
35
35
  'red': (
36
- 300: #ff2a3d,
37
- 400: #ff0017,
38
- 500: #eb0015
36
+ 300: oklch(64.46% 0.2412 23.8),
37
+ 400: oklch(62.87% 0.2567 27.7),
38
+ 500: oklch(59.10% 0.2413 27.6)
39
39
  ),
40
40
  'text': (
41
- 300: #1e243f,
42
- 400: #171d39,
43
- 500: #121832
41
+ 300: oklch(26.89% 0.0510 273.0),
42
+ 400: oklch(24.11% 0.0541 272.6),
43
+ 500: oklch(21.88% 0.0516 271.8)
44
44
  ),
45
45
  'white': (
46
- 300: #fff,
47
- 400: #fff,
48
- 500: #fff
46
+ 300: oklch(100% 0 0),
47
+ 400: oklch(100% 0 0),
48
+ 500: oklch(100% 0 0)
49
49
  ),
50
50
  'yellow': (
51
- 300: #fbff5e,
52
- 400: #f9ff00,
53
- 500: #e3eb00
51
+ 300: oklch(96.85% 0.1779 110.7),
52
+ 400: oklch(96.32% 0.2125 111.5),
53
+ 500: oklch(90.35% 0.2004 112.3)
54
54
  )
55
55
  );
56
56
 
57
- $colors: lib.list-join(primary secondary, lib.map-keys($color));
58
-
59
-
60
- @function color($keys, $opacity) {
61
- $c: $color;
62
-
63
- @each $key in $keys {
64
- $c: lib.map-get($c, $key);
65
- }
66
-
67
- @return lib.color-change($c, $alpha: $opacity);
68
- }
57
+ $colors: lib.list-join(primary secondary, lib.map-keys($color));
@@ -1,14 +1,14 @@
1
- // https://www.fluid-type-scale.com/calculate?minFontSize=14&minWidth=200&minRatio=1.16&maxFontSize=14.24&maxWidth=800&maxRatio=1.32&steps=100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900&baseStep=400&prefix=-&useContainerWidth=false&includeFallbacks=false&useRems=true&remValue=16&decimals=2&previewFont=Montserrat&previewText=Almost+before+we+knew+it%2C+we+had+left+the+ground&previewWidth=400
1
+ // https://www.fluid-type-scale.com/calculate?minFontSize=12&minWidth=200&minRatio=1.08&maxFontSize=14&maxWidth=800&maxRatio=1.24&steps=100%2C200%2C300%2C400%2C500%2C600%2C700%2C800%2C900&baseStep=400&prefix=font-size&useContainerWidth=false&includeFallbacks=false&useRems=true&remValue=16&decimals=2&previewFont=Montserrat&previewText=Almost+before+we+knew+it%2C+we+had+left+the+ground&previewWidth=800
2
2
  $font-size: (
3
- 100: clamp(0.56rem, -0.46vi + 0.62rem, 0.39rem),
4
- 200: clamp(0.65rem, -0.37vi + 0.7rem, 0.51rem),
5
- 300: clamp(0.75rem, -0.21vi + 0.78rem, 0.67rem),
6
- 400: clamp(0.88rem, 0.04vi + 0.87rem, 0.89rem),
7
- 500: clamp(1.01rem, 0.43vi + 0.96rem, 1.17rem),
8
- 600: clamp(1.18rem, 1vi + 1.05rem, 1.55rem),
9
- 700: clamp(1.37rem, 1.82vi + 1.14rem, 2.05rem),
10
- 800: clamp(1.58rem, 2.98vi + 1.21rem, 2.7rem),
11
- 900: clamp(1.84rem, 4.61vi + 1.26rem, 3.57rem)
3
+ 100: clamp(0.6rem, -0.36vi + 0.64rem, 0.46rem),
4
+ 200: clamp(0.64rem, -0.2vi + 0.67rem, 0.57rem),
5
+ 300: clamp(0.69rem, 0.03vi + 0.69rem, 0.71rem),
6
+ 400: clamp(0.75rem, 0.33vi + 0.71rem, 0.88rem),
7
+ 500: clamp(0.81rem, 0.73vi + 0.72rem, 1.08rem),
8
+ 600: clamp(0.87rem, 1.25vi + 0.72rem, 1.35rem),
9
+ 700: clamp(0.94rem, 1.93vi + 0.7rem, 1.67rem),
10
+ 800: clamp(1.02rem, 2.8vi + 0.67rem, 2.07rem),
11
+ 900: clamp(1.1rem, 3.9vi + 0.61rem, 2.57rem),
12
12
  );
13
13
 
14
14