@esportsplus/ui 0.0.13 → 0.0.14

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,5 +1,6 @@
1
1
  export { default as alert } from './alert';
2
2
  export { default as form } from './form';
3
3
  export { default as page } from './page';
4
+ export { default as root } from './root';
4
5
  export { default as scrollbar } from './scrollbar';
5
6
  export { default as state } from './state';
@@ -1,5 +1,6 @@
1
1
  export { default as alert } from './alert';
2
2
  export { default as form } from './form';
3
3
  export { default as page } from './page';
4
+ export { default as root } from './root';
4
5
  export { default as scrollbar } from './scrollbar';
5
6
  export { default as state } from './state';
@@ -0,0 +1,23 @@
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;
@@ -0,0 +1,2 @@
1
+ import layout from './layout';
2
+ export default { layout };
@@ -0,0 +1,22 @@
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;
@@ -0,0 +1,25 @@
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/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "prepublishOnly": "npm run build"
37
37
  },
38
38
  "types": "./build/index.d.ts",
39
- "version": "0.0.13"
39
+ "version": "0.0.14"
40
40
  }
@@ -1,5 +1,6 @@
1
1
  export { default as alert }from './alert';
2
2
  export { default as form }from './form';
3
3
  export { default as page }from './page';
4
+ export { default as root }from './root';
4
5
  export { default as scrollbar }from './scrollbar';
5
6
  export { default as state }from './state';
@@ -0,0 +1,4 @@
1
+ import layout from './layout';
2
+
3
+
4
+ export default { layout };
@@ -0,0 +1,46 @@
1
+ import { html } from '@esportsplus/template';
2
+ import { alert, scrollbar } from '~/components';
3
+
4
+
5
+ type Data = {
6
+ anchor?: {
7
+ content?: any;
8
+ };
9
+ content?: any;
10
+ page?: {
11
+ class?: string;
12
+ content?: any;
13
+ };
14
+ scrollbar?: {
15
+ style?: string;
16
+ };
17
+ site?: {
18
+ content?: any;
19
+ };
20
+ };
21
+
22
+
23
+ export default (data: Data = {}) => {
24
+ let bar = scrollbar({
25
+ fixed: true,
26
+ style: data?.scrollbar?.style
27
+ });
28
+
29
+ return html`
30
+ <section class='site' ${bar.attributes}>
31
+ <section class='page --padding-horizontal --padding-horizontal-sidebars ${data?.page?.class}'>
32
+ ${data?.page?.content}
33
+ </section>
34
+
35
+ ${data?.site?.content || ''}
36
+ ${bar.html}
37
+ </section>
38
+
39
+ <section class='anchors'>
40
+ ${alert.html()}
41
+ ${data?.anchor?.content || ''}
42
+ </section>
43
+
44
+ ${data?.content || ''}
45
+ `;
46
+ };