@esportsplus/ui 0.49.4 → 0.49.6
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/build/components/accordion/index.d.ts +16 -16
- package/build/components/accordion/index.js +25 -15
- package/build/components/alert/index.d.ts +1 -1
- package/build/components/alert/index.js +64 -33
- package/build/components/back/index.d.ts +9 -9
- package/build/components/back/index.js +8 -8
- package/build/components/button/index.d.ts +22 -22
- package/build/components/button/index.js +36 -20
- package/build/components/checkbox/index.d.ts +1 -1
- package/build/components/checkbox/index.js +36 -19
- package/build/components/clipboard/index.d.ts +1120 -1120
- package/build/components/clipboard/onclick.d.ts +1 -1
- package/build/components/clipboard/onclick.js +21 -11
- package/build/components/counter/index.d.ts +1 -1
- package/build/components/counter/index.js +59 -28
- package/build/components/ellipsis/index.d.ts +1 -1
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.d.ts +1 -1
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +3 -3
- package/build/components/form/input.d.ts +1 -1
- package/build/components/frame/index.d.ts +10 -10
- package/build/components/highlight/index.d.ts +16 -16
- package/build/components/highlight/index.js +23 -13
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +7 -7
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +32 -16
- package/build/components/loader/index.d.ts +16 -16
- package/build/components/loader/index.js +49 -27
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/overlay/index.d.ts +10 -10
- package/build/components/radio/index.d.ts +2 -2
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +42 -19
- package/build/components/scrollbar/index.d.ts +12 -12
- package/build/components/scrollbar/index.js +36 -20
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +61 -32
- package/build/components/sidebar/index.d.ts +10 -10
- package/build/components/site/index.d.ts +10 -10
- package/build/components/switch/index.d.ts +2 -2
- package/build/components/template/index.d.ts +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +32 -16
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/tooltip/index.d.ts +2295 -2295
- package/build/components/tooltip/menu.d.ts +12 -12
- package/build/components/tooltip/menu.js +20 -20
- package/build/components/tooltip/onclick.d.ts +1121 -1121
- package/build/components/tooltip/onclick.js +22 -10
- package/build/components/tooltip/onhover.d.ts +16 -16
- package/build/components/tooltip/onhover.js +23 -11
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +22 -10
- package/build/themes/dark/alert.d.ts +3 -3
- package/build/themes/dark/back.d.ts +11 -11
- package/build/themes/dark/input.d.ts +111 -111
- package/build/themes/dark/select.d.ts +1220 -1220
- package/build/themes/dark/textarea.d.ts +111 -111
- package/package.json +5 -4
- package/src/components/accordion/index.ts +2 -1
- package/src/components/alert/index.ts +2 -1
- package/src/components/back/index.ts +1 -1
- package/src/components/button/index.ts +2 -1
- package/src/components/checkbox/index.ts +2 -1
- package/src/components/clipboard/onclick.ts +2 -1
- package/src/components/counter/index.ts +2 -1
- package/src/components/ellipsis/index.ts +1 -1
- package/src/components/form/action.ts +1 -1
- package/src/components/form/input.ts +1 -1
- package/src/components/highlight/index.ts +2 -1
- package/src/components/icon/index.ts +1 -1
- package/src/components/input/index.ts +2 -1
- package/src/components/loader/index.ts +2 -1
- package/src/components/loading/index.ts +1 -1
- package/src/components/range/index.ts +2 -1
- package/src/components/scrollbar/index.ts +2 -1
- package/src/components/select/index.ts +2 -1
- package/src/components/template/index.ts +1 -1
- package/src/components/textarea/index.ts +2 -1
- package/src/components/textarea/scss/index.scss +1 -0
- package/src/components/tooltip/menu.ts +1 -1
- package/src/components/tooltip/onclick.ts +2 -1
- package/src/components/tooltip/onhover.ts +2 -1
- package/src/components/typewriter/index.ts +2 -1
- package/tsconfig.json +1 -1
|
@@ -2,19 +2,19 @@ import './scss/index.scss';
|
|
|
2
2
|
declare const _default: {
|
|
3
3
|
(): ReturnType<(this: {
|
|
4
4
|
attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
|
|
5
|
-
content?: import("@esportsplus/
|
|
6
|
-
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/
|
|
5
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
6
|
+
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
7
7
|
<T extends import("../../components/scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
|
|
8
8
|
attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
|
|
9
|
-
content?: import("@esportsplus/
|
|
10
|
-
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/
|
|
11
|
-
<T extends import("@esportsplus/
|
|
9
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
10
|
+
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
11
|
+
<T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
|
|
12
12
|
attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
|
|
13
|
-
content?: import("@esportsplus/
|
|
14
|
-
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/
|
|
15
|
-
(attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/
|
|
13
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
14
|
+
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
15
|
+
(attributes: import("../../components/scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
16
16
|
attributes?: import("../../components/scrollbar/index.js").Attributes | undefined;
|
|
17
|
-
content?: import("@esportsplus/
|
|
18
|
-
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/
|
|
17
|
+
content?: import("@esportsplus/template").Renderable<any>;
|
|
18
|
+
}, attributes: Readonly<import("../../components/scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
19
19
|
};
|
|
20
20
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './scss/index.scss';
|
|
2
2
|
declare const _default: (this: {
|
|
3
|
-
attributes?: import("@esportsplus/
|
|
4
|
-
} | any, attributes?: import("@esportsplus/
|
|
3
|
+
attributes?: import("@esportsplus/template").Attributes;
|
|
4
|
+
} | any, attributes?: import("@esportsplus/template").Attributes & {
|
|
5
5
|
state?: {
|
|
6
6
|
active: boolean;
|
|
7
7
|
error: string;
|
|
@@ -1,29 +1,45 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as template_2a7920412bac4009b37c4d0863a6596e1 from '@esportsplus/template';
|
|
2
|
+
import * as reactivity_2a7920412bac4009b37c4d0863a6596e0 from '@esportsplus/reactivity';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import form from '../../components/form/index.js';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
6
|
+
const template_2a7920412bac4009b37c4d0863a6596e48 = template_2a7920412bac4009b37c4d0863a6596e1.template(`<textarea class='textarea'></textarea>`);
|
|
7
|
+
class ReactiveObject_2a7920412bac4009b37c4d0863a6596e46 extends reactivity_2a7920412bac4009b37c4d0863a6596e0.ReactiveObject {
|
|
8
|
+
#active = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL](false);
|
|
9
|
+
#error = this[reactivity_2a7920412bac4009b37c4d0863a6596e0.SIGNAL]('');
|
|
10
|
+
constructor() {
|
|
11
|
+
super(null);
|
|
12
|
+
}
|
|
13
|
+
get active() {
|
|
14
|
+
return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#active);
|
|
15
|
+
}
|
|
16
|
+
set active(_v0) {
|
|
17
|
+
reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#active, _v0);
|
|
18
|
+
}
|
|
19
|
+
get error() {
|
|
20
|
+
return reactivity_2a7920412bac4009b37c4d0863a6596e0.read(this.#error);
|
|
21
|
+
}
|
|
22
|
+
set error(_v1) {
|
|
23
|
+
reactivity_2a7920412bac4009b37c4d0863a6596e0.write(this.#error, _v1);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
7
26
|
const OMIT = ['state'];
|
|
8
27
|
export default function (attributes) {
|
|
9
|
-
let state = attributes.state ||
|
|
10
|
-
active: false,
|
|
11
|
-
error: ''
|
|
12
|
-
});
|
|
28
|
+
let state = attributes.state || new ReactiveObject_2a7920412bac4009b37c4d0863a6596e46();
|
|
13
29
|
return (() => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
let root_2a7920412bac4009b37c4d0863a6596e47 = template_2a7920412bac4009b37c4d0863a6596e48(), element_2a7920412bac4009b37c4d0863a6596e49 = root_2a7920412bac4009b37c4d0863a6596e47.firstChild, attributes_2a7920412bac4009b37c4d0863a6596e4a = { "class": "textarea" };
|
|
31
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e49, this?.attributes && omit(this.attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e4a);
|
|
32
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperties(element_2a7920412bac4009b37c4d0863a6596e49, omit(attributes, OMIT), attributes_2a7920412bac4009b37c4d0863a6596e4a);
|
|
33
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setList(element_2a7920412bac4009b37c4d0863a6596e49, 'class', () => state.active && '--active', attributes_2a7920412bac4009b37c4d0863a6596e4a);
|
|
34
|
+
template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e49, 'focusin', () => {
|
|
19
35
|
state.active = true;
|
|
20
36
|
});
|
|
21
|
-
|
|
37
|
+
template_2a7920412bac4009b37c4d0863a6596e1.on(element_2a7920412bac4009b37c4d0863a6596e49, 'focusout', () => {
|
|
22
38
|
state.active = false;
|
|
23
39
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return
|
|
40
|
+
template_2a7920412bac4009b37c4d0863a6596e1.onrender(element_2a7920412bac4009b37c4d0863a6596e49, form.input.onrender(state));
|
|
41
|
+
template_2a7920412bac4009b37c4d0863a6596e1.setProperty(element_2a7920412bac4009b37c4d0863a6596e49, 'value', attributes?.value || '');
|
|
42
|
+
return root_2a7920412bac4009b37c4d0863a6596e47;
|
|
27
43
|
})();
|
|
28
44
|
}
|
|
29
45
|
;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.textarea{--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-400);--border-style:solid;--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);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.textarea:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.textarea:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.textarea.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.textarea{background:var(--background);border:var(--border-width)var(--border-style)var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;font-size:var(--font-size);line-height:var(--line-height);min-width:0;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,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;white-space:normal;flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative}.textarea:invalid,.textarea:required{box-shadow:none}}
|
|
1
|
+
@layer components {.textarea{--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-400);--border-style:solid;--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);--line-height:var(--line-height-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.textarea:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.textarea:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.textarea.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.textarea{background:var(--background);border:var(--border-width)var(--border-style)var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;field-sizing:content;font-size:var(--font-size);line-height:var(--line-height);min-width:0;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,opacity var(--transition-duration)ease-in-out,transform var(--transition-duration)ease-in-out;white-space:normal;flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative}.textarea:invalid,.textarea:required{box-shadow:none}}
|
|
2
2
|
/*$vite$:1*/
|