@esportsplus/ui 0.19.3 → 0.19.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "@esportsplus/action": "^0.0.58",
5
5
  "@esportsplus/queue": "^0.1.0",
6
6
  "@esportsplus/reactivity": "^0.16.7",
7
- "@esportsplus/template": "^0.20.3",
7
+ "@esportsplus/template": "^0.22.2",
8
8
  "@esportsplus/utilities": "^0.22.1",
9
9
  "modern-normalize": "^3.0.1"
10
10
  },
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.19.3",
51
+ "version": "0.19.5",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -16,7 +16,7 @@ let root = document.body,
16
16
 
17
17
 
18
18
  export default template.factory<A>(
19
- function(attributes, content) {
19
+ function(this: { attributes?: A }, attributes, content) {
20
20
  let state = reactive({
21
21
  height: 100,
22
22
  translate: 0
@@ -25,13 +25,13 @@ export default template.factory<A>(
25
25
  return html`
26
26
  <div
27
27
  class='scrollbar-container'
28
+ ${this?.attributes && omit(this.attributes, OMIT)}
28
29
  ${omit(attributes, OMIT)}
29
- ${this.attributes && omit(this.attributes, OMIT)}
30
30
  >
31
31
  <div
32
32
  class='scrollbar-container-content'
33
+ ${this?.attributes?.['scrollbar-container-content']}
33
34
  ${attributes['scrollbar-container-content']}
34
- ${this.attributes?.['scrollbar-container-content']}
35
35
  ${{
36
36
  onscroll: function() {
37
37
  if (width === undefined) {
@@ -52,7 +52,7 @@ export default template.factory<A>(
52
52
 
53
53
  <div
54
54
  class='scrollbar'
55
- ${this.attributes?.scrollbar}
55
+ ${this?.attributes?.scrollbar}
56
56
  ${{
57
57
  class: () => state.height >= 100 && 'scrollbar--hidden',
58
58
  style: () => `