@esportsplus/ui 0.0.15 → 0.0.16
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 +1 -1
- package/src/assets.d.ts +24 -0
- package/tsconfig.json +1 -1
- package/build/components/page/layout.d.ts +0 -13
- package/build/components/page/layout.js +0 -24
- package/build/components/root/index.d.ts +0 -23
- package/build/components/root/index.js +0 -2
- package/build/components/root/layout.d.ts +0 -22
- package/build/components/root/layout.js +0 -25
- package/src/svg.d.ts +0 -4
package/package.json
CHANGED
package/src/assets.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare module '*.jpg' {
|
|
2
|
+
const content: any;
|
|
3
|
+
export default content;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.json' {
|
|
7
|
+
const content: any;
|
|
8
|
+
export default content;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare module '*.png' {
|
|
12
|
+
const content: any;
|
|
13
|
+
export default content;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare module '*.svg' {
|
|
17
|
+
const content: any;
|
|
18
|
+
export default content;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare module '*.txt' {
|
|
22
|
+
const content: any;
|
|
23
|
+
export default content;
|
|
24
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
type Data = {
|
|
2
|
-
content?: any;
|
|
3
|
-
subtitle?: string;
|
|
4
|
-
suptitle?: string;
|
|
5
|
-
title?: string;
|
|
6
|
-
width?: string;
|
|
7
|
-
};
|
|
8
|
-
declare const _default: ({ content, subtitle, suptitle, title, width }: Data) => {
|
|
9
|
-
content: string;
|
|
10
|
-
type: string;
|
|
11
|
-
values: never[];
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { html } from '@esportsplus/template';
|
|
2
|
-
export default ({ content, subtitle, suptitle, title, width }) => html `
|
|
3
|
-
<div class="container --slide-in --margin-vertical --margin-900" style="${width && `--max-width: ${width};`}">
|
|
4
|
-
${suptitle ? html `
|
|
5
|
-
<span class="page-suptitle --text-bold --text-crop --text-uppercase --text-200" style="--color-default: var(--color-primary-400);letter-spacing: 0.24px;">
|
|
6
|
-
${suptitle}
|
|
7
|
-
</span>
|
|
8
|
-
` : ''}
|
|
9
|
-
|
|
10
|
-
${title ? html `
|
|
11
|
-
<h1 class="page-title --line-height-200 --margin-300 ${!subtitle && '--text-crop-bottom'} ${suptitle ? '--margin-top' : '--text-crop-top'}">
|
|
12
|
-
${title}
|
|
13
|
-
</h1>
|
|
14
|
-
` : ''}
|
|
15
|
-
|
|
16
|
-
${subtitle ? html `
|
|
17
|
-
<span class="page-subtitle --margin-top --margin-300 --text-crop-bottom">
|
|
18
|
-
${subtitle}
|
|
19
|
-
</span>
|
|
20
|
-
` : ''}
|
|
21
|
-
|
|
22
|
-
${content || ''}
|
|
23
|
-
</div>
|
|
24
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
layout: (data?: {
|
|
3
|
-
anchor?: {
|
|
4
|
-
content?: any;
|
|
5
|
-
} | undefined;
|
|
6
|
-
content?: any;
|
|
7
|
-
page?: {
|
|
8
|
-
class?: string | undefined;
|
|
9
|
-
content?: any;
|
|
10
|
-
} | undefined;
|
|
11
|
-
scrollbar?: {
|
|
12
|
-
style?: string | undefined;
|
|
13
|
-
} | undefined;
|
|
14
|
-
site?: {
|
|
15
|
-
content?: any;
|
|
16
|
-
} | undefined;
|
|
17
|
-
}) => {
|
|
18
|
-
content: string;
|
|
19
|
-
type: string;
|
|
20
|
-
values: never[];
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
type Data = {
|
|
2
|
-
anchor?: {
|
|
3
|
-
content?: any;
|
|
4
|
-
};
|
|
5
|
-
content?: any;
|
|
6
|
-
page?: {
|
|
7
|
-
class?: string;
|
|
8
|
-
content?: any;
|
|
9
|
-
};
|
|
10
|
-
scrollbar?: {
|
|
11
|
-
style?: string;
|
|
12
|
-
};
|
|
13
|
-
site?: {
|
|
14
|
-
content?: any;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare const _default: (data?: Data) => {
|
|
18
|
-
content: string;
|
|
19
|
-
type: string;
|
|
20
|
-
values: never[];
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { html } from '@esportsplus/template';
|
|
2
|
-
import { alert, scrollbar } from '../../components';
|
|
3
|
-
export default (data = {}) => {
|
|
4
|
-
let bar = scrollbar({
|
|
5
|
-
fixed: true,
|
|
6
|
-
style: data?.scrollbar?.style
|
|
7
|
-
});
|
|
8
|
-
return html `
|
|
9
|
-
<section class='site' ${bar.attributes}>
|
|
10
|
-
<section class='page --padding-horizontal --padding-horizontal-sidebars ${data?.page?.class}'>
|
|
11
|
-
${data?.page?.content}
|
|
12
|
-
</section>
|
|
13
|
-
|
|
14
|
-
${data?.site?.content || ''}
|
|
15
|
-
${bar.html}
|
|
16
|
-
</section>
|
|
17
|
-
|
|
18
|
-
<section class='anchors'>
|
|
19
|
-
${alert.html()}
|
|
20
|
-
${data?.anchor?.content || ''}
|
|
21
|
-
</section>
|
|
22
|
-
|
|
23
|
-
${data?.content || ''}
|
|
24
|
-
`;
|
|
25
|
-
};
|
package/src/svg.d.ts
DELETED