@esportsplus/ui 0.24.3 → 0.24.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.
- package/build/components/field/index.d.ts +18331 -0
- package/build/components/field/select.d.ts +22 -11
- package/build/components/frame/index.d.ts +20 -0
- package/build/components/frame/index.js +7 -0
- package/build/components/grid/index.d.ts +1 -0
- package/build/components/grid/index.js +1 -0
- package/build/components/group/index.d.ts +1 -0
- package/build/components/group/index.js +1 -0
- package/build/components/highlight/index.d.ts +21 -0
- package/build/components/highlight/index.js +48 -0
- package/build/components/icon/index.d.ts +20 -0
- package/build/components/icon/index.js +10 -0
- package/build/components/index.d.ts +37 -0
- package/build/components/index.js +37 -0
- package/build/components/json/download.d.ts +2 -0
- package/build/components/json/download.js +8 -0
- package/build/components/json/index.d.ts +4 -0
- package/build/components/json/index.js +2 -0
- package/build/components/link/index.d.ts +1 -0
- package/build/components/link/index.js +1 -0
- package/build/components/loader/index.d.ts +21 -0
- package/build/components/loader/index.js +67 -0
- package/build/components/loading/index.d.ts +4 -0
- package/build/components/loading/index.js +12 -0
- package/build/components/modal/index.d.ts +1 -0
- package/build/components/modal/index.js +1 -0
- package/build/components/number/index.d.ts +2 -0
- package/build/components/number/index.js +2 -0
- package/build/components/overlay/index.d.ts +20 -0
- package/build/components/overlay/index.js +7 -0
- package/build/components/page/index.d.ts +1 -0
- package/build/components/page/index.js +1 -0
- package/build/components/row/index.d.ts +1 -0
- package/build/components/row/index.js +1 -0
- package/build/components/sidebar/index.d.ts +20 -0
- package/build/components/sidebar/index.js +7 -0
- package/build/components/site/index.d.ts +20 -0
- package/build/components/site/index.js +9 -0
- package/build/components/text/index.d.ts +1 -0
- package/build/components/text/index.js +1 -0
- package/build/components/thumbnail/index.d.ts +1 -0
- package/build/components/thumbnail/index.js +1 -0
- package/build/components/truncate/index.d.ts +2 -0
- package/build/components/truncate/index.js +2 -0
- package/build/components/typewriter/index.d.ts +20 -0
- package/build/components/typewriter/index.js +43 -0
- package/build/css-utilities/index.d.ts +20 -0
- package/build/css-utilities/index.js +20 -0
- package/build/fonts/index.d.ts +1 -0
- package/build/fonts/index.js +1 -0
- package/build/fonts/montserrat/index.d.ts +1 -0
- package/build/fonts/montserrat/index.js +1 -0
- package/build/normalize/index.d.ts +1 -0
- package/build/normalize/index.js +1 -0
- package/package.json +1 -1
- package/src/components/field/select.ts +1 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './scss/index.scss';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
(): ReturnType<(this: {
|
|
4
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
5
|
+
content?: string[] | undefined;
|
|
6
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
|
|
7
|
+
<T extends import("@esportsplus/template").Attributes>(attributes: T): ReturnType<(this: {
|
|
8
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
9
|
+
content?: string[] | undefined;
|
|
10
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
|
|
11
|
+
<T extends string[]>(content: T): ReturnType<(this: {
|
|
12
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
13
|
+
content?: string[] | undefined;
|
|
14
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
|
|
15
|
+
(attributes: import("@esportsplus/template").Attributes, content: string[]): ReturnType<(this: {
|
|
16
|
+
attributes?: import("@esportsplus/template").Attributes | undefined;
|
|
17
|
+
content?: string[] | undefined;
|
|
18
|
+
}, attributes: Readonly<import("@esportsplus/template").Attributes>, content: string[]) => import("@esportsplus/template").Renderable<any>>;
|
|
19
|
+
};
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { html } from '@esportsplus/template';
|
|
2
|
+
import { reactive } from '@esportsplus/reactivity';
|
|
3
|
+
import template from '../../components/template/index.js';
|
|
4
|
+
import './scss/index.scss';
|
|
5
|
+
const EMPTY_NODE = html ` `;
|
|
6
|
+
export default template.factory(function (_, content) {
|
|
7
|
+
let state = reactive({ text: '' });
|
|
8
|
+
return html `
|
|
9
|
+
<div class='typewriter' ${{
|
|
10
|
+
onconnect: () => {
|
|
11
|
+
let character = 0, i = 0, isWriting = true, write = content[i];
|
|
12
|
+
function play() {
|
|
13
|
+
setTimeout(() => {
|
|
14
|
+
state.text = write.slice(0, character);
|
|
15
|
+
if (isWriting) {
|
|
16
|
+
if (character > write.length) {
|
|
17
|
+
isWriting = false;
|
|
18
|
+
setTimeout(play, 2000);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
character++;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
if (character === 0) {
|
|
27
|
+
isWriting = true;
|
|
28
|
+
write = content[++i] || content[i = 0];
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
character--;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
play();
|
|
35
|
+
}, isWriting ? 64 : 32);
|
|
36
|
+
}
|
|
37
|
+
play();
|
|
38
|
+
}
|
|
39
|
+
}}>
|
|
40
|
+
${() => state.text || EMPTY_NODE}
|
|
41
|
+
</div>
|
|
42
|
+
`;
|
|
43
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './[margin,padding]/scss/index.scss';
|
|
2
|
+
import './absolute/scss/index.scss';
|
|
3
|
+
import './background/scss/index.scss';
|
|
4
|
+
import './border/scss/index.scss';
|
|
5
|
+
import './color/scss/index.scss';
|
|
6
|
+
import './disabled/scss/index.scss';
|
|
7
|
+
import './flex/scss/index.scss';
|
|
8
|
+
import './flicker/scss/index.scss';
|
|
9
|
+
import './focus/scss/index.scss';
|
|
10
|
+
import './glass/scss/index.scss';
|
|
11
|
+
import './hidden/scss/index.scss';
|
|
12
|
+
import './inline/scss/index.scss';
|
|
13
|
+
import './line-height/scss/index.scss';
|
|
14
|
+
import './not-allowed/scss/index.scss';
|
|
15
|
+
import './pointer/scss/index.scss';
|
|
16
|
+
import './size/scss/index.scss';
|
|
17
|
+
import './squircle/scss/index.scss';
|
|
18
|
+
import './text/scss/index.scss';
|
|
19
|
+
import './viewport/scss/index.scss';
|
|
20
|
+
import './width/scss/index.scss';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './[margin,padding]/scss/index.scss';
|
|
2
|
+
import './absolute/scss/index.scss';
|
|
3
|
+
import './background/scss/index.scss';
|
|
4
|
+
import './border/scss/index.scss';
|
|
5
|
+
import './color/scss/index.scss';
|
|
6
|
+
import './disabled/scss/index.scss';
|
|
7
|
+
import './flex/scss/index.scss';
|
|
8
|
+
import './flicker/scss/index.scss';
|
|
9
|
+
import './focus/scss/index.scss';
|
|
10
|
+
import './glass/scss/index.scss';
|
|
11
|
+
import './hidden/scss/index.scss';
|
|
12
|
+
import './inline/scss/index.scss';
|
|
13
|
+
import './line-height/scss/index.scss';
|
|
14
|
+
import './not-allowed/scss/index.scss';
|
|
15
|
+
import './pointer/scss/index.scss';
|
|
16
|
+
import './size/scss/index.scss';
|
|
17
|
+
import './squircle/scss/index.scss';
|
|
18
|
+
import './text/scss/index.scss';
|
|
19
|
+
import './viewport/scss/index.scss';
|
|
20
|
+
import './width/scss/index.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as montserrat from './montserrat/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as montserrat from './montserrat/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './scss/index.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './scss/index.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './scss/index.scss';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './scss/index.scss';
|
package/package.json
CHANGED
|
@@ -179,7 +179,7 @@ export default template.factory<
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
),
|
|
182
|
-
(mask:
|
|
182
|
+
(mask: typeof select) => Renderable<unknown>
|
|
183
183
|
>((attributes, content) => {
|
|
184
184
|
let options = attributes.options,
|
|
185
185
|
state = attributes.state || reactive({
|