@esportsplus/ui 0.51.2 → 0.51.4

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 (78) 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/accordion/scss/index.scss +1 -1
  4. package/build/components/alert/index.js +41 -41
  5. package/build/components/alert/scss/index.scss +1 -1
  6. package/build/components/anchor/scss/index.scss +1 -1
  7. package/build/components/back/index.d.ts +8 -8
  8. package/build/components/back/index.js +8 -8
  9. package/build/components/back/scss/index.scss +1 -1
  10. package/build/components/banner/scss/index.scss +1 -1
  11. package/build/components/border/scss/index.scss +1 -1
  12. package/build/components/bubble/scss/index.scss +1 -1
  13. package/build/components/button/index.d.ts +21 -21
  14. package/build/components/button/index.js +23 -23
  15. package/build/components/button/scss/index.scss +1 -1
  16. package/build/components/card/scss/index.scss +1 -1
  17. package/build/components/checkbox/index.js +23 -23
  18. package/build/components/checkbox/scss/index.scss +1 -1
  19. package/build/components/clipboard/onclick.js +13 -13
  20. package/build/components/container/scss/index.scss +1 -1
  21. package/build/components/counter/index.js +34 -34
  22. package/build/components/counter/scss/index.scss +1 -1
  23. package/build/components/ellipsis/index.js +5 -5
  24. package/build/components/ellipsis/scss/index.scss +1 -1
  25. package/build/components/form/action.js +8 -8
  26. package/build/components/form/scss/index.scss +1 -1
  27. package/build/components/frame/scss/index.scss +1 -1
  28. package/build/components/grid/scss/index.scss +1 -1
  29. package/build/components/highlight/index.d.ts +16 -16
  30. package/build/components/highlight/index.js +15 -15
  31. package/build/components/highlight/scss/index.scss +1 -1
  32. package/build/components/icon/index.d.ts +11 -11
  33. package/build/components/icon/index.js +6 -6
  34. package/build/components/input/index.js +20 -20
  35. package/build/components/input/scss/index.scss +1 -1
  36. package/build/components/link/scss/index.scss +1 -1
  37. package/build/components/loader/index.d.ts +16 -16
  38. package/build/components/loader/index.js +33 -33
  39. package/build/components/loading/index.js +5 -5
  40. package/build/components/loading/scss/index.scss +1 -1
  41. package/build/components/modal/scss/index.scss +1 -1
  42. package/build/components/page/scss/index.scss +1 -1
  43. package/build/components/radio/scss/index.scss +1 -1
  44. package/build/components/range/index.js +25 -25
  45. package/build/components/range/scss/index.scss +1 -1
  46. package/build/components/root/scss/index.scss +1 -1
  47. package/build/components/scrollbar/index.d.ts +11 -11
  48. package/build/components/scrollbar/index.js +24 -24
  49. package/build/components/scrollbar/scss/index.scss +1 -1
  50. package/build/components/select/index.js +40 -40
  51. package/build/components/select/scss/index.scss +1 -1
  52. package/build/components/sidebar/scss/index.scss +1 -1
  53. package/build/components/switch/scss/index.scss +1 -1
  54. package/build/components/text/scss/index.scss +1 -1
  55. package/build/components/textarea/index.js +20 -20
  56. package/build/components/textarea/scss/index.scss +1 -1
  57. package/build/components/tooltip/menu.d.ts +11 -11
  58. package/build/components/tooltip/menu.js +20 -20
  59. package/build/components/tooltip/onclick.d.ts +1101 -1101
  60. package/build/components/tooltip/onclick.js +14 -14
  61. package/build/components/tooltip/onhover.d.ts +16 -16
  62. package/build/components/tooltip/onhover.js +15 -15
  63. package/build/components/tooltip/scss/index.scss +1 -1
  64. package/build/components/typewriter/index.d.ts +11 -11
  65. package/build/components/typewriter/index.js +14 -14
  66. package/build/css-utilities/border/scss/index.scss +1 -1
  67. package/build/css-utilities/error/scss/index.scss +1 -1
  68. package/build/css-utilities/flex/scss/index.scss +1 -1
  69. package/build/css-utilities/flicker/scss/index.scss +1 -1
  70. package/build/css-utilities/gap/scss/index.scss +1 -1
  71. package/build/css-utilities/index.scss +1 -1
  72. package/build/css-utilities/scroller/scss/index.scss +1 -1
  73. package/build/css-utilities/skeleton/scss/index.scss +1 -1
  74. package/build/css-utilities/text/scss/index.scss +1 -1
  75. package/build/css-utilities/viewport/scss/index.scss +1 -1
  76. package/build/themes/dark/link/scss/index.scss +1 -1
  77. package/package.json +5 -5
  78. package/src/tokens/scss/font-size.scss +9 -9
@@ -1,2 +1,2 @@
1
- @layer components {.button{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--border-radius:var(--border-radius-400);--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--font-weight:var(--font-weight-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--width:auto}.button.--active{--background:var(--background-active);--border-color:var(--border-color-active);--color:var(--color-active)}.button:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--color:var(--color-hover)}.button:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--color:var(--color-pressed)}.button--holding{--animation-duration:2.4s;--background-hold:var(--background-active)}.button--processing{--animation-duration:.64s;--border-width:var(--border-width-400);--processing-color:var(--color);--size:var(--size-400)}.button--skeleton{--animation-duration:6.4s}.button{background:var(--background);border-radius:var(--border-radius);color:var(--color);cursor:pointer;font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);padding:calc(var(--padding-vertical) - var(--border-width))calc(var(--padding-horizontal) - var(--border-width));transition:all var(--transition-duration)ease-in-out;width:var(--width);flex-wrap:wrap;place-content:center;align-items:center;display:flex;position:relative}.button:after{border-radius:inherit;box-shadow:var(--box-shadow);content:"";pointer-events:none;transition:box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out;z-index:-1;position:absolute;inset:0}.button--flat:after{display:none}.button--holding{-webkit-user-select:none;user-select:none;overflow:hidden}.button--holding:after{animation:buttonHolding var(--animation-duration)ease-in-out forwards;box-shadow:unset;background:var(--background-hold);z-index:1;border-radius:0;width:110%;height:100%;display:block;transform:translate(-100%)}@keyframes buttonHolding{to{transform:translate(0%)}}.button--holding>*{animation:buttonHoldingContentPulse calc(var(--animation-duration)/3)infinite ease-in-out;z-index:2}@keyframes buttonHoldingContentPulse{0%,to{opacity:1}50%{opacity:.4}}.button--processing{color:#0000;pointer-events:none}.button--processing:before{animation:buttonProcessing var(--animation-duration)infinite linear;border:var(--border-width)solid color-mix(in srgb,var(--processing-color),transparent 90%);border-left-color:var(--processing-color);content:"";height:var(--size);width:var(--size);border-top-color:#0000;border-right-color:#0000;border-radius:100%;position:absolute;bottom:50%;right:50%;transform:translate(50%,50%)}.button--processing *{opacity:0}@keyframes buttonProcessing{0%{transform:translate(50%,50%)rotate(0)}to{transform:translate(50%,50%)rotate(359deg)}}.button--skeleton{animation:var(--animation-duration)ease-in-out infinite buttonSkeleton;background-image:linear-gradient(270deg,var(--background-pressed),var(--background-default),var(--background-default),var(--background-pressed));color:#0000;pointer-events:none;background-size:400% 100%}.button--skeleton *{opacity:0}@keyframes buttonSkeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.button--top-left,.button--top-right{top:calc((var(--padding-vertical) + var(--line-height)/2)*-1);position:absolute}.button--top-left{left:calc((var(--padding-horizontal) + var(--line-height)/2)*-1)}.button--top-right{right:calc((var(--padding-horizontal) + var(--line-height)/2)*-1)}.button--underline.--active,.button--underline:not(.--active):hover{text-decoration:underline}}
1
+ @layer components {.button{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--border-radius:var(--border-radius-400);--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--font-weight:var(--font-weight-400);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--width:auto}.button.--active{--background:var(--background-active);--border-color:var(--border-color-active);--color:var(--color-active)}.button:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--color:var(--color-hover)}.button:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--color:var(--color-pressed)}.button--holding{--animation-duration:2.4s;--background-hold:var(--background-active)}.button--processing{--animation-duration:.64s;--border-width:var(--border-width-400);--processing-color:var(--color);--size:var(--size-400)}.button--skeleton{--animation-duration:6.4s}.button{background:var(--background);border-radius:var(--border-radius);color:var(--color);cursor:pointer;font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);padding:calc(var(--padding-vertical) - var(--border-width)) calc(var(--padding-horizontal) - var(--border-width));transition:all var(--transition-duration) ease-in-out;width:var(--width);flex-wrap:wrap;place-content:center;align-items:center;display:flex;position:relative}.button:after{border-radius:inherit;box-shadow:var(--box-shadow);content:"";pointer-events:none;transition:box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out;z-index:-1;position:absolute;inset:0}.button--flat:after{display:none}.button--holding{-webkit-user-select:none;user-select:none;overflow:hidden}.button--holding:after{animation:buttonHolding var(--animation-duration) ease-in-out forwards;box-shadow:unset;background:var(--background-hold);z-index:1;border-radius:0;width:110%;height:100%;display:block;transform:translate(-100%)}@keyframes buttonHolding{to{transform:translate(0%)}}.button--holding>*{animation:buttonHoldingContentPulse calc(var(--animation-duration) / 3) infinite ease-in-out;z-index:2}@keyframes buttonHoldingContentPulse{0%,to{opacity:1}50%{opacity:.4}}.button--processing{color:#0000;pointer-events:none}.button--processing:before{animation:buttonProcessing var(--animation-duration) infinite linear;border:var(--border-width) solid color-mix(in srgb, var(--processing-color), transparent 90%);border-left-color:var(--processing-color);content:"";height:var(--size);width:var(--size);border-top-color:#0000;border-right-color:#0000;border-radius:100%;position:absolute;bottom:50%;right:50%;transform:translate(50%,50%)}.button--processing *{opacity:0}@keyframes buttonProcessing{0%{transform:translate(50%,50%)rotate(0)}to{transform:translate(50%,50%)rotate(359deg)}}.button--skeleton{animation:var(--animation-duration) ease-in-out infinite buttonSkeleton;background-image:linear-gradient(270deg, var(--background-pressed), var(--background-default), var(--background-default), var(--background-pressed));color:#0000;pointer-events:none;background-size:400% 100%}.button--skeleton *{opacity:0}@keyframes buttonSkeleton{0%{background-position:200% 0}to{background-position:-200% 0}}.button--top-left,.button--top-right{top:calc((var(--padding-vertical) + var(--line-height)/2) * -1);position:absolute}.button--top-left{left:calc((var(--padding-horizontal) + var(--line-height)/2) * -1)}.button--top-right{right:calc((var(--padding-horizontal) + var(--line-height)/2) * -1)}.button--underline.--active,.button--underline:not(.--active):hover{text-decoration:underline}}
2
2
  /*$vite$:1*/
@@ -1,2 +1,2 @@
1
- @layer components {.card{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--border-radius:var(--border-radius-400);--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--padding-horizontal:0px;--padding-vertical:0px;--width:auto}.card.--active{--background:var(--background-active);--border-color:var(--border-color-active)}.card:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover)}.card:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed)}.card{background:var(--background);border-radius:var(--border-radius);padding:var(--padding-vertical)var(--padding-horizontal);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,max-height var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:var(--width);position:relative}.card:after{border-radius:inherit;box-shadow:var(--box-shadow);content:"";pointer-events:none;transition:box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out;z-index:-1;position:absolute;inset:0}.card--flat:after{display:none}.card--option{border-radius:0}.card--option.--active{z-index:2}.card--option:not(.--active):hover{z-index:1}.card--option:only-child{border-radius:var(--border-radius)}.card--option:not(:only-child):not(:first-child){margin-top:calc(var(--border-width)*-1)}.card--option:not(:only-child):first-child{border-radius:var(--border-radius)var(--border-radius)0 0}.card--option:not(:only-child):not(:has(~.card--option)){border-radius:0 0 var(--border-radius)var(--border-radius)}}
1
+ @layer components {.card{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--border-radius:var(--border-radius-400);--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--padding-horizontal:0px;--padding-vertical:0px;--width:auto}.card.--active{--background:var(--background-active);--border-color:var(--border-color-active)}.card:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover)}.card:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed)}.card{background:var(--background);border-radius:var(--border-radius);padding:var(--padding-vertical) var(--padding-horizontal);transition:background var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out, max-height var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;width:var(--width);position:relative}.card:after{border-radius:inherit;box-shadow:var(--box-shadow);content:"";pointer-events:none;transition:box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out;z-index:-1;position:absolute;inset:0}.card--flat:after{display:none}.card--option{border-radius:0}.card--option.--active{z-index:2}.card--option:not(.--active):hover{z-index:1}.card--option:only-child{border-radius:var(--border-radius)}.card--option:not(:only-child):not(:first-child){margin-top:calc(var(--border-width) * -1)}.card--option:not(:only-child):first-child{border-radius:var(--border-radius) var(--border-radius) 0 0}.card--option:not(:only-child):not(:has(~.card--option)){border-radius:0 0 var(--border-radius) var(--border-radius)}}
2
2
  /*$vite$:1*/
@@ -1,51 +1,51 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
2
- import * as reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0 from '@esportsplus/reactivity';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
+ import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
3
3
  import { root } from '@esportsplus/reactivity';
4
4
  import { omit } from '@esportsplus/utilities';
5
5
  import form from '../../components/form/index.js';
6
6
  import './scss/index.scss';
7
- const template_8f9ca242f23f4b5881fed07dabd2b7ca1b = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div><input></div>`);
8
- class ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca19 extends reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.ReactiveObject {
9
- #active = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.SIGNAL](false);
10
- #error = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.SIGNAL]('');
7
+ const template_b7478c4a5ff041d4bc1434ee94c2db371b = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div><input></div>`);
8
+ class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db3719 extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
9
+ #active = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](false);
10
+ #error = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL]('');
11
11
  constructor() {
12
12
  super(null);
13
13
  }
14
14
  get active() {
15
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#active);
15
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#active);
16
16
  }
17
17
  set active(_v0) {
18
- reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.write(this.#active, _v0);
18
+ reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#active, _v0);
19
19
  }
20
20
  get error() {
21
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#error);
21
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#error);
22
22
  }
23
23
  set error(_v1) {
24
- reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.write(this.#error, _v1);
24
+ reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#error, _v1);
25
25
  }
26
26
  }
27
27
  const OMIT = ['checked', 'value'];
28
28
  const factory = (type) => {
29
29
  function template(attributes) {
30
- let state = attributes?.state || new ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca19();
30
+ let state = attributes?.state || new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db3719();
31
31
  if (attributes?.checked) {
32
32
  state.active = true;
33
33
  }
34
34
  return (() => {
35
- let root_8f9ca242f23f4b5881fed07dabd2b7ca1a = template_8f9ca242f23f4b5881fed07dabd2b7ca1b(), element_8f9ca242f23f4b5881fed07dabd2b7ca1c = root_8f9ca242f23f4b5881fed07dabd2b7ca1a.firstChild, element_8f9ca242f23f4b5881fed07dabd2b7ca1d = element_8f9ca242f23f4b5881fed07dabd2b7ca1c.firstElementChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1e = { "class": "" }, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1f = {};
36
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setList(element_8f9ca242f23f4b5881fed07dabd2b7ca1c, 'class', type, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1e);
37
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setList(element_8f9ca242f23f4b5881fed07dabd2b7ca1c, 'class', () => state.active && '--active', attributes_8f9ca242f23f4b5881fed07dabd2b7ca1e);
38
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca1c, this?.attributes && omit(this.attributes, OMIT), attributes_8f9ca242f23f4b5881fed07dabd2b7ca1e);
39
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca1c, attributes && omit(attributes, OMIT), attributes_8f9ca242f23f4b5881fed07dabd2b7ca1e);
40
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperty(element_8f9ca242f23f4b5881fed07dabd2b7ca1d, 'checked', attributes?.checked || root(() => state.active));
41
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setList(element_8f9ca242f23f4b5881fed07dabd2b7ca1d, 'class', `${type}-tag`, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1f);
42
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.delegate(element_8f9ca242f23f4b5881fed07dabd2b7ca1d, 'change', (e) => {
35
+ let root_b7478c4a5ff041d4bc1434ee94c2db371a = template_b7478c4a5ff041d4bc1434ee94c2db371b(), element_b7478c4a5ff041d4bc1434ee94c2db371c = root_b7478c4a5ff041d4bc1434ee94c2db371a.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db371d = element_b7478c4a5ff041d4bc1434ee94c2db371c.firstElementChild, attributes_b7478c4a5ff041d4bc1434ee94c2db371e = { "class": " " }, attributes_b7478c4a5ff041d4bc1434ee94c2db371f = {};
36
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db371c, 'class', type, attributes_b7478c4a5ff041d4bc1434ee94c2db371e);
37
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db371c, 'class', () => state.active && '--active', attributes_b7478c4a5ff041d4bc1434ee94c2db371e);
38
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db371c, this?.attributes && omit(this.attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db371e);
39
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db371c, attributes && omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db371e);
40
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperty(element_b7478c4a5ff041d4bc1434ee94c2db371d, 'checked', attributes?.checked || root(() => state.active));
41
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db371d, 'class', `${type}-tag`, attributes_b7478c4a5ff041d4bc1434ee94c2db371f);
42
+ template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db371d, 'change', (e) => {
43
43
  state.active = e.target.checked;
44
44
  });
45
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.onrender(element_8f9ca242f23f4b5881fed07dabd2b7ca1d, form.input.onrender(state));
46
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperty(element_8f9ca242f23f4b5881fed07dabd2b7ca1d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperty(element_8f9ca242f23f4b5881fed07dabd2b7ca1d, 'value', attributes?.value || 1);
48
- return root_8f9ca242f23f4b5881fed07dabd2b7ca1a;
45
+ template_b7478c4a5ff041d4bc1434ee94c2db371.onrender(element_b7478c4a5ff041d4bc1434ee94c2db371d, form.input.onrender(state));
46
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperty(element_b7478c4a5ff041d4bc1434ee94c2db371d, 'type', type === 'radio' ? 'radio' : 'checkbox');
47
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperty(element_b7478c4a5ff041d4bc1434ee94c2db371d, 'value', attributes?.value || 1);
48
+ return root_b7478c4a5ff041d4bc1434ee94c2db371a;
49
49
  })();
50
50
  }
51
51
  return template;
@@ -1,2 +1,2 @@
1
- @layer components {.checkbox{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-300);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--margin-horizontal:calc(var(--width-switch) - var(--width));--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--rotate:45deg;--scale:var(--scale-default);--scale-active:1;--scale-default:0;--scale-hover:1.08;--scale-pressed:.98;--size:var(--size-600);--width:var(--height);--width-switch:40px}.checkbox:before{--border-width:4px;--box-shadow:1px 1px 0 #00000029;--height:100%;--translateX:124%;--translateY:8%;--width:50%}.checkbox:not(.--active):not(:hover):before{--translateY:100%}.checkbox:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.checkbox:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.checkbox.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.checkbox{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration)ease-in-out,border-color var(--transition-duration)ease-in-out,box-shadow var(--transition-duration)ease-in-out,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;width:var(--width);position:relative}.checkbox:invalid,.checkbox:required{box-shadow:none}.checkbox:before{border-bottom:var(--border-width)solid var(--accent);border-right:var(--border-width)solid var(--accent);box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX),var(--translateY))rotate(var(--rotate))scale(var(--scale));transform-origin:bottom;width:var(--width);position:absolute;bottom:50%;right:92%}.checkbox-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
1
+ @layer components {.checkbox{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-300);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--height:var(--size);--margin-horizontal:calc(var(--width-switch) - var(--width));--opacity:var(--opacity-default);--opacity-active:var(--opacity-default);--opacity-default:1;--opacity-hover:var(--opacity-default);--opacity-pressed:var(--opacity-default);--rotate:45deg;--scale:var(--scale-default);--scale-active:1;--scale-default:0;--scale-hover:1.08;--scale-pressed:.98;--size:var(--size-600);--width:var(--height);--width-switch:40px}.checkbox:before{--border-width:4px;--box-shadow:1px 1px 0 #00000029;--height:100%;--translateX:124%;--translateY:8%;--width:50%}.checkbox:not(.--active):not(:hover):before{--translateY:100%}.checkbox:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--opacity:var(--opacity-hover);--scale:var(--scale-hover)}.checkbox:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--opacity:var(--opacity-pressed);--scale:var(--scale-pressed)}.checkbox.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--opacity:var(--opacity-active);--scale:var(--scale-active)}.checkbox{background:var(--background);border-color:var(--border-color);border-radius:var(--border-radius);border-style:var(--border-style);border-width:var(--border-width);flex:0 0 var(--width);height:var(--height);transition:background var(--transition-duration) ease-in-out, border-color var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out, opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;width:var(--width);position:relative}.checkbox:invalid,.checkbox:required{box-shadow:none}.checkbox:before{border-bottom:var(--border-width) solid var(--accent);border-right:var(--border-width) solid var(--accent);box-shadow:var(--box-shadow);content:"";height:var(--height);opacity:var(--opacity);transform:translate(var(--translateX), var(--translateY)) rotate(var(--rotate)) scale(var(--scale));transform-origin:bottom;width:var(--width);position:absolute;bottom:50%;right:92%}.checkbox-tag{opacity:0;pointer-events:none;z-index:0;width:0;height:0;position:absolute;top:0;left:0}}
2
2
  /*$vite$:1*/
@@ -1,28 +1,28 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
2
- import * as reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0 from '@esportsplus/reactivity';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
+ import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import write from './write.js';
6
- const template_8f9ca242f23f4b5881fed07dabd2b7ca1i = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div><!--$--></div>`);
7
- class ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1g extends reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.ReactiveObject {
8
- #copied = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.SIGNAL](false);
6
+ const template_b7478c4a5ff041d4bc1434ee94c2db371i = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div><!--$--></div>`);
7
+ class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371g extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
8
+ #copied = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](false);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get copied() {
13
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#copied);
13
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#copied);
14
14
  }
15
15
  set copied(_v0) {
16
- reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.write(this.#copied, _v0);
16
+ reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#copied, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['timeout', 'value'];
20
20
  export default template.factory(function (attributes, content) {
21
- let state = new ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1g(), timeout = attributes.timeout || 1000 * 2;
21
+ let state = new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371g(), timeout = attributes.timeout || 1000 * 2;
22
22
  return (() => {
23
- let root_8f9ca242f23f4b5881fed07dabd2b7ca1h = template_8f9ca242f23f4b5881fed07dabd2b7ca1i(), element_8f9ca242f23f4b5881fed07dabd2b7ca1j = root_8f9ca242f23f4b5881fed07dabd2b7ca1h.firstChild, element_8f9ca242f23f4b5881fed07dabd2b7ca1k = element_8f9ca242f23f4b5881fed07dabd2b7ca1j.firstChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1l = {};
24
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca1j, omit(attributes, OMIT), attributes_8f9ca242f23f4b5881fed07dabd2b7ca1l);
25
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.delegate(element_8f9ca242f23f4b5881fed07dabd2b7ca1j, 'click', (e) => {
23
+ let root_b7478c4a5ff041d4bc1434ee94c2db371h = template_b7478c4a5ff041d4bc1434ee94c2db371i(), element_b7478c4a5ff041d4bc1434ee94c2db371j = root_b7478c4a5ff041d4bc1434ee94c2db371h.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db371k = element_b7478c4a5ff041d4bc1434ee94c2db371j.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db371l = {};
24
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db371j, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db371l);
25
+ template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db371j, 'click', (e) => {
26
26
  e.preventDefault();
27
27
  e.stopPropagation();
28
28
  write(attributes.value).then(() => {
@@ -32,7 +32,7 @@ export default template.factory(function (attributes, content) {
32
32
  }, timeout);
33
33
  });
34
34
  });
35
- new template_8f9ca242f23f4b5881fed07dabd2b7ca1.EffectSlot(element_8f9ca242f23f4b5881fed07dabd2b7ca1k, () => content(state));
36
- return root_8f9ca242f23f4b5881fed07dabd2b7ca1h;
35
+ new template_b7478c4a5ff041d4bc1434ee94c2db371.EffectSlot(element_b7478c4a5ff041d4bc1434ee94c2db371k, () => content(state));
36
+ return root_b7478c4a5ff041d4bc1434ee94c2db371h;
37
37
  })();
38
38
  });
@@ -1,2 +1,2 @@
1
- @layer components {.container{--gap-horizontal:0px;--gap-vertical:0px;--margin-horizontal:var(--size-600);--margin-vertical:0px;--max-width:1400px;gap:var(--gap-vertical)var(--gap-horizontal);margin:var(--margin-vertical)auto;width:min(var(--max-width),100% - var(--margin-horizontal)*2);flex-wrap:wrap;justify-content:flex-start;display:flex;position:relative}}
1
+ @layer components {.container{--gap-horizontal:0px;--gap-vertical:0px;--margin-horizontal:var(--size-600);--margin-vertical:0px;--max-width:1400px;gap:var(--gap-vertical) var(--gap-horizontal);margin:var(--margin-vertical) auto;width:min(var(--max-width), 100% - var(--margin-horizontal) * 2);flex-wrap:wrap;justify-content:flex-start;display:flex;position:relative}}
2
2
  /*$vite$:1*/
@@ -1,41 +1,41 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
2
- import * as reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0 from '@esportsplus/reactivity';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
+ import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
3
3
  import { effect } from '@esportsplus/reactivity';
4
4
  import { omit } from '@esportsplus/utilities';
5
5
  import './scss/index.scss';
6
- const template_8f9ca242f23f4b5881fed07dabd2b7ca1p = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
7
- const template_8f9ca242f23f4b5881fed07dabd2b7ca1s = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<span><!--$--></span>`);
8
- const template_8f9ca242f23f4b5881fed07dabd2b7ca1v = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
9
- const template_8f9ca242f23f4b5881fed07dabd2b7ca20 = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div class='counter'><!--$--></div>`);
10
- class ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1m extends reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.ReactiveObject {
11
- #value = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.SIGNAL](-1);
6
+ const template_b7478c4a5ff041d4bc1434ee94c2db371p = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<span class='counter-character counter-character--symbol'><!--$--></span>`);
7
+ const template_b7478c4a5ff041d4bc1434ee94c2db371s = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<span><!--$--></span>`);
8
+ const template_b7478c4a5ff041d4bc1434ee94c2db371v = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class=' counter-character'><div class='counter-character-track'><span>9</span><!--$--><span>0</span></div></div>`);
9
+ const template_b7478c4a5ff041d4bc1434ee94c2db3720 = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='counter'><!--$--></div>`);
10
+ class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371m extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
11
+ #value = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](-1);
12
12
  constructor() {
13
13
  super(null);
14
14
  }
15
15
  get value() {
16
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#value);
16
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#value);
17
17
  }
18
18
  set value(_v0) {
19
- reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.write(this.#value, _v0);
19
+ reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#value, _v0);
20
20
  }
21
21
  }
22
- class ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1n extends reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.ReactiveObject {
23
- #length = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.SIGNAL](0);
22
+ class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371n extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
23
+ #length = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](0);
24
24
  #test;
25
25
  #render;
26
26
  constructor(_p0, _p1) {
27
27
  super(null);
28
- this.#test = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.COMPUTED](_p0);
29
- this.#render = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.REACTIVE_ARRAY](_p1);
28
+ this.#test = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.COMPUTED](_p0);
29
+ this.#render = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.REACTIVE_ARRAY](_p1);
30
30
  }
31
31
  get length() {
32
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#length);
32
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#length);
33
33
  }
34
34
  set length(_v0) {
35
- reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.write(this.#length, _v0);
35
+ reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#length, _v0);
36
36
  }
37
37
  get test() {
38
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#test);
38
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#test);
39
39
  }
40
40
  get render() {
41
41
  return this.#render;
@@ -44,12 +44,12 @@ class ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1n extends reactivity_8f9ca
44
44
  const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
45
45
  let formatters = {};
46
46
  export default (attributes) => {
47
- let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1m(), formatter = currency === 'IGNORE'
47
+ let { currency, decimals, delay, max, suffix, value } = attributes, api = attributes.state || new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371m(), formatter = currency === 'IGNORE'
48
48
  ? undefined
49
49
  : formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
50
50
  style: 'currency',
51
51
  currency: currency || 'USD'
52
- }), rendering = true, state = new ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca1n(() => 'sds', []), render = new reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.ReactiveArray();
52
+ }), rendering = true, state = new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db371n(() => 'sds', []), render = new reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveArray();
53
53
  decimals ??= 2;
54
54
  effect(() => {
55
55
  if (api.value !== -1) {
@@ -84,33 +84,33 @@ export default (attributes) => {
84
84
  }
85
85
  });
86
86
  return (() => {
87
- let root_8f9ca242f23f4b5881fed07dabd2b7ca1z = template_8f9ca242f23f4b5881fed07dabd2b7ca20(), element_8f9ca242f23f4b5881fed07dabd2b7ca21 = root_8f9ca242f23f4b5881fed07dabd2b7ca1z.firstChild, element_8f9ca242f23f4b5881fed07dabd2b7ca22 = element_8f9ca242f23f4b5881fed07dabd2b7ca21.firstChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca23 = { "class": "counter" };
88
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca21, omit(attributes, OMIT), attributes_8f9ca242f23f4b5881fed07dabd2b7ca23);
89
- new template_8f9ca242f23f4b5881fed07dabd2b7ca1.EffectSlot(element_8f9ca242f23f4b5881fed07dabd2b7ca22, () => {
87
+ let root_b7478c4a5ff041d4bc1434ee94c2db371z = template_b7478c4a5ff041d4bc1434ee94c2db3720(), element_b7478c4a5ff041d4bc1434ee94c2db3721 = root_b7478c4a5ff041d4bc1434ee94c2db371z.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db3722 = element_b7478c4a5ff041d4bc1434ee94c2db3721.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db3723 = { "class": " counter" };
88
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db3721, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db3723);
89
+ new template_b7478c4a5ff041d4bc1434ee94c2db371.EffectSlot(element_b7478c4a5ff041d4bc1434ee94c2db3722, () => {
90
90
  let n = state.length;
91
91
  if (n === 0) {
92
92
  return '';
93
93
  }
94
- return new template_8f9ca242f23f4b5881fed07dabd2b7ca1.ArraySlot(render, function (value) {
94
+ return new template_b7478c4a5ff041d4bc1434ee94c2db371.ArraySlot(render, function (value) {
95
95
  if (isNaN(parseInt(value, 10))) {
96
96
  return (() => {
97
- let root_8f9ca242f23f4b5881fed07dabd2b7ca1o = template_8f9ca242f23f4b5881fed07dabd2b7ca1p(), element_8f9ca242f23f4b5881fed07dabd2b7ca1q = root_8f9ca242f23f4b5881fed07dabd2b7ca1o.firstChild.firstChild;
98
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.slot(element_8f9ca242f23f4b5881fed07dabd2b7ca1q, value);
99
- return root_8f9ca242f23f4b5881fed07dabd2b7ca1o;
97
+ let root_b7478c4a5ff041d4bc1434ee94c2db371o = template_b7478c4a5ff041d4bc1434ee94c2db371p(), element_b7478c4a5ff041d4bc1434ee94c2db371q = root_b7478c4a5ff041d4bc1434ee94c2db371o.firstChild.firstChild;
98
+ template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db371q, value);
99
+ return root_b7478c4a5ff041d4bc1434ee94c2db371o;
100
100
  })();
101
101
  }
102
102
  return (() => {
103
- let root_8f9ca242f23f4b5881fed07dabd2b7ca1u = template_8f9ca242f23f4b5881fed07dabd2b7ca1v(), element_8f9ca242f23f4b5881fed07dabd2b7ca1w = root_8f9ca242f23f4b5881fed07dabd2b7ca1u.firstChild.firstElementChild, element_8f9ca242f23f4b5881fed07dabd2b7ca1x = element_8f9ca242f23f4b5881fed07dabd2b7ca1w.firstChild.nextSibling, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1y = { "class": "counter-character-track", "style": "" };
104
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setList(element_8f9ca242f23f4b5881fed07dabd2b7ca1w, 'style', `--value: ${value}`, attributes_8f9ca242f23f4b5881fed07dabd2b7ca1y);
105
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.slot(element_8f9ca242f23f4b5881fed07dabd2b7ca1x, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
- let root_8f9ca242f23f4b5881fed07dabd2b7ca1r = template_8f9ca242f23f4b5881fed07dabd2b7ca1s(), element_8f9ca242f23f4b5881fed07dabd2b7ca1t = root_8f9ca242f23f4b5881fed07dabd2b7ca1r.firstChild.firstChild;
107
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.slot(element_8f9ca242f23f4b5881fed07dabd2b7ca1t, value);
108
- return root_8f9ca242f23f4b5881fed07dabd2b7ca1r;
103
+ let root_b7478c4a5ff041d4bc1434ee94c2db371u = template_b7478c4a5ff041d4bc1434ee94c2db371v(), element_b7478c4a5ff041d4bc1434ee94c2db371w = root_b7478c4a5ff041d4bc1434ee94c2db371u.firstChild.firstElementChild, element_b7478c4a5ff041d4bc1434ee94c2db371x = element_b7478c4a5ff041d4bc1434ee94c2db371w.firstChild.nextSibling, attributes_b7478c4a5ff041d4bc1434ee94c2db371y = { "class": " counter-character-track", "style": " " };
104
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db371w, 'style', `--value: ${value}`, attributes_b7478c4a5ff041d4bc1434ee94c2db371y);
105
+ template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db371x, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
106
+ let root_b7478c4a5ff041d4bc1434ee94c2db371r = template_b7478c4a5ff041d4bc1434ee94c2db371s(), element_b7478c4a5ff041d4bc1434ee94c2db371t = root_b7478c4a5ff041d4bc1434ee94c2db371r.firstChild.firstChild;
107
+ template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db371t, value);
108
+ return root_b7478c4a5ff041d4bc1434ee94c2db371r;
109
109
  }));
110
- return root_8f9ca242f23f4b5881fed07dabd2b7ca1u;
110
+ return root_b7478c4a5ff041d4bc1434ee94c2db371u;
111
111
  })();
112
112
  });
113
113
  });
114
- return root_8f9ca242f23f4b5881fed07dabd2b7ca1z;
114
+ return root_b7478c4a5ff041d4bc1434ee94c2db371z;
115
115
  })();
116
116
  };
@@ -1,2 +1,2 @@
1
- @layer components {.counter{--font-size:clamp(2rem,4vw + 1rem,8rem);--font-weight:var(--font-weight-400);--line-height:calc(var(--font-size)*1.5);--mask-size:.24;--timing-function:var(--timing-bounce-out);--transition-duration:2s}.counter-character{--scale:1}.counter-character--fraction,.counter-character--symbol{--opacity:.8}.counter-character--fraction{--font-weight:var(--font-weight-300);--scale:.75}.counter-character--symbol:first-child{--scale:.8}.counter{transition:transform calc(var(--transition-duration)/4)var(--transition-duration);transform-style:flat;place-items:center;gap:2px;display:flex}.counter-character,.counter-character-track span{color:#0000;transform-style:flat;background:linear-gradient(#fafafa 50%,#737373) fixed;-webkit-background-clip:text;background-clip:text}.counter-character{font-size:var(--font-size);font-variant:tabular-nums;font-weight:var(--font-weight);height:1lh;line-height:var(--line-height);-webkit-mask:linear-gradient(transparent,white calc(1lh*var(--mask-size))calc(100% - 1lh*var(--mask-size)),transparent);-webkit-mask:linear-gradient(transparent,white calc(1lh*var(--mask-size))calc(100% - 1lh*var(--mask-size)),transparent);mask:linear-gradient(transparent,white calc(1lh*var(--mask-size))calc(100% - 1lh*var(--mask-size)),transparent);transform-style:flat;display:grid;overflow:hidden}.counter-character--fraction{font-size:calc(var(--font-size)*var(--scale));font-weight:var(--font-weight-300);opacity:var(--opacity);height:var(--line-height);overflow:visible}.counter-character--fraction .counter-character-track span{padding:calc((var(--line-height) - var(--font-size))*.2)0;flex-direction:column;align-items:end;display:flex}.counter-character--symbol{font-size:calc(var(--font-size)*var(--scale));opacity:var(--opacity);margin-right:.1ch}.counter-character-track{translate:0 calc((var(--value) + 1)*var(--line-height)*-1);transition:translate var(--transition-duration)var(--timing-function);display:grid}.counter-character-track span{transform-style:flat;height:1lh}}
1
+ @layer components {.counter{--font-size:clamp(2rem, 4vw + 1rem, 8rem);--font-weight:var(--font-weight-400);--line-height:calc(var(--font-size) * 1.5);--mask-size:.24;--timing-function:var(--timing-bounce-out);--transition-duration:2s}.counter-character{--scale:1}.counter-character--fraction,.counter-character--symbol{--opacity:.8}.counter-character--fraction{--font-weight:var(--font-weight-300);--scale:.75}.counter-character--symbol:first-child{--scale:.8}.counter{transition:transform calc(var(--transition-duration) / 4) var(--transition-duration);transform-style:flat;place-items:center;gap:2px;display:flex}.counter-character,.counter-character-track span{color:#0000;transform-style:flat;background:linear-gradient(#fafafa 50%,#737373) fixed;-webkit-background-clip:text;background-clip:text}.counter-character{font-size:var(--font-size);font-variant:tabular-nums;font-weight:var(--font-weight);height:1lh;line-height:var(--line-height);-webkit-mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);-webkit-mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);transform-style:flat;display:grid;overflow:hidden}.counter-character--fraction{font-size:calc(var(--font-size) * var(--scale));font-weight:var(--font-weight-300);opacity:var(--opacity);height:var(--line-height);overflow:visible}.counter-character--fraction .counter-character-track span{padding:calc((var(--line-height) - var(--font-size)) * .2) 0;flex-direction:column;align-items:end;display:flex}.counter-character--symbol{font-size:calc(var(--font-size) * var(--scale));opacity:var(--opacity);margin-right:.1ch}.counter-character-track{translate:0 calc((var(--value) + 1) * var(--line-height) * -1);transition:translate var(--transition-duration) var(--timing-function);display:grid}.counter-character-track span{transform-style:flat;height:1lh}}
2
2
  /*$vite$:1*/
@@ -1,8 +1,8 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
- const template_8f9ca242f23f4b5881fed07dabd2b7ca25 = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
3
+ const template_b7478c4a5ff041d4bc1434ee94c2db3725 = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='ellipsis'><span></span><span></span><span></span></div>`);
4
4
  export default (attributes) => {
5
- let root_8f9ca242f23f4b5881fed07dabd2b7ca24 = template_8f9ca242f23f4b5881fed07dabd2b7ca25(), element_8f9ca242f23f4b5881fed07dabd2b7ca26 = root_8f9ca242f23f4b5881fed07dabd2b7ca24.firstChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca27 = { "class": "ellipsis" };
6
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca26, attributes, attributes_8f9ca242f23f4b5881fed07dabd2b7ca27);
7
- return root_8f9ca242f23f4b5881fed07dabd2b7ca24;
5
+ let root_b7478c4a5ff041d4bc1434ee94c2db3724 = template_b7478c4a5ff041d4bc1434ee94c2db3725(), element_b7478c4a5ff041d4bc1434ee94c2db3726 = root_b7478c4a5ff041d4bc1434ee94c2db3724.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db3727 = { "class": " ellipsis" };
6
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db3726, attributes, attributes_b7478c4a5ff041d4bc1434ee94c2db3727);
7
+ return root_b7478c4a5ff041d4bc1434ee94c2db3724;
8
8
  };
@@ -1,2 +1,2 @@
1
- @layer components {.ellipsis{--animation-duration:1.24s;--margin-horizontal:var(--size-100);--size:var(--size-200)}.ellipsis span{animation:ellipsis var(--animation-duration)infinite linear;background-color:var(--color);height:var(--size);margin:0 var(--margin-horizontal);width:var(--size);border-radius:100%;display:inline-block}.ellipsis span :nth-child(2){animation-delay:.24s}.ellipsis span :nth-child(3){animation-delay:.48s}@keyframes ellipsis{0%,to{opacity:.16}20%{opacity:1}}}
1
+ @layer components {.ellipsis{--animation-duration:1.24s;--margin-horizontal:var(--size-100);--size:var(--size-200)}.ellipsis span{animation:ellipsis var(--animation-duration) infinite linear;background-color:var(--color);height:var(--size);margin:0 var(--margin-horizontal);width:var(--size);border-radius:100%;display:inline-block}.ellipsis span :nth-child(2){animation-delay:.24s}.ellipsis span :nth-child(3){animation-delay:.48s}@keyframes ellipsis{0%,to{opacity:.16}20%{opacity:1}}}
2
2
  /*$vite$:1*/
@@ -1,8 +1,8 @@
1
1
  import response from '@esportsplus/action';
2
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
2
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import input from './input.js';
5
- const template_8f9ca242f23f4b5881fed07dabd2b7ca29 = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<form class='form'><!--$--></form>`);
5
+ const template_b7478c4a5ff041d4bc1434ee94c2db3729 = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<form class='form'><!--$--></form>`);
6
6
  const OMIT = ['action', 'state'];
7
7
  function parse(input) {
8
8
  let data = {};
@@ -29,9 +29,9 @@ function parse(input) {
29
29
  export default (attributes, content) => {
30
30
  let { action, state } = attributes;
31
31
  return (() => {
32
- let root_8f9ca242f23f4b5881fed07dabd2b7ca28 = template_8f9ca242f23f4b5881fed07dabd2b7ca29(), element_8f9ca242f23f4b5881fed07dabd2b7ca2a = root_8f9ca242f23f4b5881fed07dabd2b7ca28.firstChild, element_8f9ca242f23f4b5881fed07dabd2b7ca2b = element_8f9ca242f23f4b5881fed07dabd2b7ca2a.firstChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca2c = { "class": "form" };
33
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca2a, omit(attributes, OMIT), attributes_8f9ca242f23f4b5881fed07dabd2b7ca2c);
34
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.delegate(element_8f9ca242f23f4b5881fed07dabd2b7ca2a, 'click', function (event) {
32
+ let root_b7478c4a5ff041d4bc1434ee94c2db3728 = template_b7478c4a5ff041d4bc1434ee94c2db3729(), element_b7478c4a5ff041d4bc1434ee94c2db372a = root_b7478c4a5ff041d4bc1434ee94c2db3728.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db372b = element_b7478c4a5ff041d4bc1434ee94c2db372a.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db372c = { "class": " form" };
33
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db372a, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db372c);
34
+ template_b7478c4a5ff041d4bc1434ee94c2db371.delegate(element_b7478c4a5ff041d4bc1434ee94c2db372a, 'click', function (event) {
35
35
  let trigger = event.target;
36
36
  if (trigger?.type !== 'submit') {
37
37
  return;
@@ -39,7 +39,7 @@ export default (attributes, content) => {
39
39
  event.preventDefault();
40
40
  this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
41
41
  });
42
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.on(element_8f9ca242f23f4b5881fed07dabd2b7ca2a, 'submit', async function (event) {
42
+ template_b7478c4a5ff041d4bc1434ee94c2db371.on(element_b7478c4a5ff041d4bc1434ee94c2db372a, 'submit', async function (event) {
43
43
  event.preventDefault();
44
44
  if (state) {
45
45
  state.processing = true;
@@ -59,7 +59,7 @@ export default (attributes, content) => {
59
59
  state.processing = false;
60
60
  }
61
61
  });
62
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.slot(element_8f9ca242f23f4b5881fed07dabd2b7ca2b, content);
63
- return root_8f9ca242f23f4b5881fed07dabd2b7ca28;
62
+ template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db372b, content);
63
+ return root_b7478c4a5ff041d4bc1434ee94c2db3728;
64
64
  })();
65
65
  };
@@ -1,2 +1,2 @@
1
- @layer components {.form{--gap-horizontal:0px;--gap-vertical:0px;--margin-horizontal:0px;--margin-vertical:0px;gap:var(--gap-vertical)var(--gap-horizontal);margin:var(--margin-vertical)var(--margin-horizontal);flex-wrap:wrap;justify-content:flex-start;display:flex;position:relative}}
1
+ @layer components {.form{--gap-horizontal:0px;--gap-vertical:0px;--margin-horizontal:0px;--margin-vertical:0px;gap:var(--gap-vertical) var(--gap-horizontal);margin:var(--margin-vertical) var(--margin-horizontal);flex-wrap:wrap;justify-content:flex-start;display:flex;position:relative}}
2
2
  /*$vite$:1*/
@@ -1,2 +1,2 @@
1
- @layer components {.frames{--gap:var(--size-400);--opacity:.4;gap:var(--gap);transform:translateX(calc(var(--i)*(100% + var(--gap))));transition:transform .3s;display:flex}.frames .frame{flex-shrink:0;width:100%;min-width:100%}.frames .frame:not(.--active){opacity:var(--opacity);display:flex}.frames .frame:not(.--active)>*{pointer-events:none}.frame{cursor:default;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:100%;display:none;position:relative}.frame.--active{display:flex}}
1
+ @layer components {.frames{--gap:var(--size-400);--opacity:.4;gap:var(--gap);transform:translateX(calc(var(--i) * (100% + var(--gap))));transition:transform .3s;display:flex}.frames .frame{flex-shrink:0;width:100%;min-width:100%}.frames .frame:not(.--active){opacity:var(--opacity);display:flex}.frames .frame:not(.--active)>*{pointer-events:none}.frame{cursor:default;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:100%;display:none;position:relative}.frame.--active{display:flex}}
2
2
  /*$vite$:1*/
@@ -1,2 +1,2 @@
1
- @layer components {.grid{--gap-horizontal:var(--size-400);--gap-vertical:var(--size-400);--max-width:1fr;--min-width:200px;grid-gap:var(--gap-horizontal)var(--gap-vertical);grid-template-columns:repeat(auto-fit,minmax(var(--min-width),var(--max-width)));display:grid;position:relative}.grid .grid-item{width:100%}}
1
+ @layer components {.grid{--gap-horizontal:var(--size-400);--gap-vertical:var(--size-400);--max-width:1fr;--min-width:200px;grid-gap:var(--gap-horizontal) var(--gap-vertical);grid-template-columns:repeat(auto-fit, minmax(var(--min-width), var(--max-width)));display:grid;position:relative}.grid .grid-item{width:100%}}
2
2
  /*$vite$:1*/
@@ -1,21 +1,21 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
6
- content?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>;
7
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
8
- <T extends template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
10
- content?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>;
11
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
12
- <T extends template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>(content: T): ReturnType<(this: {
13
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
14
- content?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>;
15
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
16
- (attributes: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes, content: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>): ReturnType<(this: {
17
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
18
- content?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>;
19
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
5
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
6
+ content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
7
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
8
+ <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
10
+ content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
11
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
12
+ <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>(content: T): ReturnType<(this: {
13
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
14
+ content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
15
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
16
+ (attributes: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>): ReturnType<(this: {
17
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
18
+ content?: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>;
19
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,19 +1,19 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
2
- import * as reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0 from '@esportsplus/reactivity';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
+ import * as reactivity_b7478c4a5ff041d4bc1434ee94c2db370 from '@esportsplus/reactivity';
3
3
  import { omit } from '@esportsplus/utilities';
4
4
  import template from '../../components/template/index.js';
5
5
  import './scss/index.scss';
6
- const template_8f9ca242f23f4b5881fed07dabd2b7ca2f = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div class='highlight'><!--$--></div>`);
7
- class ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca2d extends reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.ReactiveObject {
8
- #highlight = this[reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.SIGNAL](0);
6
+ const template_b7478c4a5ff041d4bc1434ee94c2db372f = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='highlight'><!--$--></div>`);
7
+ class ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db372d extends reactivity_b7478c4a5ff041d4bc1434ee94c2db370.ReactiveObject {
8
+ #highlight = this[reactivity_b7478c4a5ff041d4bc1434ee94c2db370.SIGNAL](0);
9
9
  constructor() {
10
10
  super(null);
11
11
  }
12
12
  get highlight() {
13
- return reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.read(this.#highlight);
13
+ return reactivity_b7478c4a5ff041d4bc1434ee94c2db370.read(this.#highlight);
14
14
  }
15
15
  set highlight(_v0) {
16
- reactivity_8f9ca242f23f4b5881fed07dabd2b7ca0.write(this.#highlight, _v0);
16
+ reactivity_b7478c4a5ff041d4bc1434ee94c2db370.write(this.#highlight, _v0);
17
17
  }
18
18
  }
19
19
  const OMIT = ['background'];
@@ -38,19 +38,19 @@ export default template.factory((attributes, content) => {
38
38
  }
39
39
  }, { threshold: 1 });
40
40
  }
41
- let state = new ReactiveObject_8f9ca242f23f4b5881fed07dabd2b7ca2d();
41
+ let state = new ReactiveObject_b7478c4a5ff041d4bc1434ee94c2db372d();
42
42
  return (() => {
43
- let root_8f9ca242f23f4b5881fed07dabd2b7ca2e = template_8f9ca242f23f4b5881fed07dabd2b7ca2f(), element_8f9ca242f23f4b5881fed07dabd2b7ca2g = root_8f9ca242f23f4b5881fed07dabd2b7ca2e.firstChild, element_8f9ca242f23f4b5881fed07dabd2b7ca2h = element_8f9ca242f23f4b5881fed07dabd2b7ca2g.firstChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca2i = { "class": "highlight" };
44
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca2g, omit(attributes, OMIT), attributes_8f9ca242f23f4b5881fed07dabd2b7ca2i);
45
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.onrender(element_8f9ca242f23f4b5881fed07dabd2b7ca2g, (element) => {
43
+ let root_b7478c4a5ff041d4bc1434ee94c2db372e = template_b7478c4a5ff041d4bc1434ee94c2db372f(), element_b7478c4a5ff041d4bc1434ee94c2db372g = root_b7478c4a5ff041d4bc1434ee94c2db372e.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db372h = element_b7478c4a5ff041d4bc1434ee94c2db372g.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db372i = { "class": " highlight" };
44
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db372g, omit(attributes, OMIT), attributes_b7478c4a5ff041d4bc1434ee94c2db372i);
45
+ template_b7478c4a5ff041d4bc1434ee94c2db371.onrender(element_b7478c4a5ff041d4bc1434ee94c2db372g, (element) => {
46
46
  element[key] = state;
47
47
  observer.observe(element);
48
48
  });
49
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setList(element_8f9ca242f23f4b5881fed07dabd2b7ca2g, 'style', [
49
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setList(element_b7478c4a5ff041d4bc1434ee94c2db372g, 'style', [
50
50
  () => `--highlight: ${state.highlight}`,
51
51
  `--background: ${attributes.background}`,
52
- ], attributes_8f9ca242f23f4b5881fed07dabd2b7ca2i);
53
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.slot(element_8f9ca242f23f4b5881fed07dabd2b7ca2h, content);
54
- return root_8f9ca242f23f4b5881fed07dabd2b7ca2e;
52
+ ], attributes_b7478c4a5ff041d4bc1434ee94c2db372i);
53
+ template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db372h, content);
54
+ return root_b7478c4a5ff041d4bc1434ee94c2db372e;
55
55
  })();
56
56
  });
@@ -1,2 +1,2 @@
1
- @layer components {.highlight{--background:transparent;--highlight:1;background:linear-gradient(90deg,var(--background)50%,transparent 50%)110% 0/200% 100% no-repeat;background-position:calc((1 - var(--highlight))*110%)0;transition:background-position .32s}}
1
+ @layer components {.highlight{--background:transparent;--highlight:1;background:linear-gradient(90deg, var(--background) 50%, transparent 50%) 110% 0/200% 100% no-repeat;background-position:calc((1 - var(--highlight)) * 110%) 0;transition:background-position .32s}}
2
2
  /*$vite$:1*/
@@ -1,21 +1,21 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
2
  import './scss/index.scss';
3
3
  declare const _default: {
4
4
  (): ReturnType<(this: {
5
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
5
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
6
6
  content?: string | undefined;
7
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: string) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
8
- <T extends template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>(attributes: T): ReturnType<(this: {
9
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
7
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: string) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
8
+ <T extends template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>(attributes: T): ReturnType<(this: {
9
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
10
10
  content?: string | undefined;
11
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: string) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
11
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: string) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
12
12
  <T extends string>(content: T): ReturnType<(this: {
13
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
13
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
14
14
  content?: string | undefined;
15
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: string) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
16
- (attributes: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes, content: string): ReturnType<(this: {
17
- attributes?: template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes | undefined;
15
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: string) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
16
+ (attributes: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes, content: string): ReturnType<(this: {
17
+ attributes?: template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes | undefined;
18
18
  content?: string | undefined;
19
- }, attributes: Readonly<template_8f9ca242f23f4b5881fed07dabd2b7ca1.Attributes>, content: string) => template_8f9ca242f23f4b5881fed07dabd2b7ca1.Renderable<any>>;
19
+ }, attributes: Readonly<template_b7478c4a5ff041d4bc1434ee94c2db371.Attributes>, content: string) => template_b7478c4a5ff041d4bc1434ee94c2db371.Renderable<any>>;
20
20
  };
21
21
  export default _default;
@@ -1,13 +1,13 @@
1
- import * as template_8f9ca242f23f4b5881fed07dabd2b7ca1 from '@esportsplus/template';
1
+ import * as template_b7478c4a5ff041d4bc1434ee94c2db371 from '@esportsplus/template';
2
2
  import { svg } from '@esportsplus/template';
3
3
  import template from '../../components/template/index.js';
4
4
  import './scss/index.scss';
5
- const template_8f9ca242f23f4b5881fed07dabd2b7ca2k = template_8f9ca242f23f4b5881fed07dabd2b7ca1.template(`<div class='icon'><!--$--></div>`);
5
+ const template_b7478c4a5ff041d4bc1434ee94c2db372k = template_b7478c4a5ff041d4bc1434ee94c2db371.template(`<div class='icon'><!--$--></div>`);
6
6
  export default template.factory((attributes, icon) => {
7
7
  return (() => {
8
- let root_8f9ca242f23f4b5881fed07dabd2b7ca2j = template_8f9ca242f23f4b5881fed07dabd2b7ca2k(), element_8f9ca242f23f4b5881fed07dabd2b7ca2l = root_8f9ca242f23f4b5881fed07dabd2b7ca2j.firstChild, element_8f9ca242f23f4b5881fed07dabd2b7ca2m = element_8f9ca242f23f4b5881fed07dabd2b7ca2l.firstChild, attributes_8f9ca242f23f4b5881fed07dabd2b7ca2n = { "class": "icon" };
9
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.setProperties(element_8f9ca242f23f4b5881fed07dabd2b7ca2l, attributes, attributes_8f9ca242f23f4b5881fed07dabd2b7ca2n);
10
- template_8f9ca242f23f4b5881fed07dabd2b7ca1.slot(element_8f9ca242f23f4b5881fed07dabd2b7ca2m, svg.sprite(icon));
11
- return root_8f9ca242f23f4b5881fed07dabd2b7ca2j;
8
+ let root_b7478c4a5ff041d4bc1434ee94c2db372j = template_b7478c4a5ff041d4bc1434ee94c2db372k(), element_b7478c4a5ff041d4bc1434ee94c2db372l = root_b7478c4a5ff041d4bc1434ee94c2db372j.firstChild, element_b7478c4a5ff041d4bc1434ee94c2db372m = element_b7478c4a5ff041d4bc1434ee94c2db372l.firstChild, attributes_b7478c4a5ff041d4bc1434ee94c2db372n = { "class": " icon" };
9
+ template_b7478c4a5ff041d4bc1434ee94c2db371.setProperties(element_b7478c4a5ff041d4bc1434ee94c2db372l, attributes, attributes_b7478c4a5ff041d4bc1434ee94c2db372n);
10
+ template_b7478c4a5ff041d4bc1434ee94c2db371.slot(element_b7478c4a5ff041d4bc1434ee94c2db372m, svg.sprite(icon));
11
+ return root_b7478c4a5ff041d4bc1434ee94c2db372j;
12
12
  })();
13
13
  });