@esportsplus/ui 0.33.2 → 0.33.3

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.
@@ -1,6 +1,6 @@
1
1
  import { reactive } from '@esportsplus/reactivity';
2
2
  import { html } from '@esportsplus/template';
3
- import { omit, toArray } from '@esportsplus/utilities';
3
+ import { EMPTY_ARRAY, omit, toArray } from '@esportsplus/utilities';
4
4
  import form from '../../components/form/index.js';
5
5
  import root from '../../components/root/index.js';
6
6
  import scrollbar from '../../components/scrollbar/index.js';
@@ -79,6 +79,7 @@ const select = template.factory(function (attributes, content) {
79
79
  }
80
80
  let keys = Object.keys(options), selected = reactive(Object.fromEntries(keys.map(key => [key, false])));
81
81
  return sb({
82
+ ...this?.attributes?.['tooltip-content'] || EMPTY_ARRAY,
82
83
  ...attributes['tooltip-content'],
83
84
  class: [
84
85
  ...toArray(attributes['tooltip-content']?.class),
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "private": false,
49
49
  "sideEffects": false,
50
50
  "type": "module",
51
- "version": "0.33.2",
51
+ "version": "0.33.3",
52
52
  "scripts": {
53
53
  "build": "run-s build:vite build:ts",
54
54
  "build:ts": "tsc && tsc-alias",
@@ -1,6 +1,6 @@
1
1
  import { reactive } from '@esportsplus/reactivity';
2
2
  import { html, Renderable, type Attributes } from '@esportsplus/template';
3
- import { omit, toArray } from '@esportsplus/utilities';
3
+ import { EMPTY_ARRAY, omit, toArray } from '@esportsplus/utilities';
4
4
  import form from '~/components/form';
5
5
  import root from '~/components/root';
6
6
  import scrollbar, { Attributes as Attr } from '~/components/scrollbar';
@@ -121,6 +121,7 @@ const select = template.factory<A>(
121
121
 
122
122
  return sb(
123
123
  {
124
+ ...this?.attributes?.['tooltip-content'] || EMPTY_ARRAY,
124
125
  ...attributes['tooltip-content'],
125
126
  class: [
126
127
  ...toArray(attributes['tooltip-content']?.class),