@esportsplus/ui 0.0.83 → 0.0.85

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.
Files changed (95) hide show
  1. package/build/components/alert/index.d.ts +10 -14
  2. package/build/components/alert/index.js +92 -89
  3. package/build/components/field/checkbox.d.ts +17 -21
  4. package/build/components/field/checkbox.js +14 -14
  5. package/build/components/field/description.d.ts +4 -8
  6. package/build/components/field/description.js +7 -7
  7. package/build/components/field/error.d.ts +4 -8
  8. package/build/components/field/error.js +9 -9
  9. package/build/components/field/file.d.ts +18 -22
  10. package/build/components/field/file.js +17 -17
  11. package/build/components/field/index.d.ts +222 -254
  12. package/build/components/field/index.js +8 -8
  13. package/build/components/field/optional.d.ts +92 -100
  14. package/build/components/field/optional.js +16 -16
  15. package/build/components/field/select.d.ts +32 -36
  16. package/build/components/field/select.js +50 -50
  17. package/build/components/field/switch.d.ts +3 -7
  18. package/build/components/field/switch.js +6 -6
  19. package/build/components/field/text.d.ts +21 -25
  20. package/build/components/field/text.js +17 -17
  21. package/build/components/field/textarea.d.ts +3 -7
  22. package/build/components/field/textarea.js +5 -5
  23. package/build/components/field/title.d.ts +5 -9
  24. package/build/components/field/title.js +9 -9
  25. package/build/components/form/action.d.ts +2 -6
  26. package/build/components/form/action.js +46 -46
  27. package/build/components/form/index.d.ts +27 -31
  28. package/build/components/form/index.js +4 -4
  29. package/build/components/form/input.d.ts +9 -9
  30. package/build/components/form/input.js +10 -10
  31. package/build/components/form/layout.d.ts +13 -17
  32. package/build/components/form/layout.js +3 -3
  33. package/build/components/form/types.d.ts +12 -12
  34. package/build/components/form/types.js +1 -1
  35. package/build/components/index.d.ts +9 -9
  36. package/build/components/index.js +9 -9
  37. package/build/components/overlay/index.d.ts +6 -10
  38. package/build/components/overlay/index.js +2 -2
  39. package/build/components/page/header.d.ts +6 -10
  40. package/build/components/page/header.js +2 -2
  41. package/build/components/page/index.d.ts +15 -23
  42. package/build/components/page/index.js +4 -4
  43. package/build/components/page/layout.d.ts +5 -9
  44. package/build/components/page/layout.js +2 -2
  45. package/build/components/root/index.d.ts +8 -8
  46. package/build/components/root/index.js +3 -3
  47. package/build/components/root/queue.d.ts +4 -4
  48. package/build/components/root/queue.js +18 -18
  49. package/build/components/scrollbar/index.d.ts +8 -16
  50. package/build/components/scrollbar/index.js +27 -27
  51. package/build/components/site/index.d.ts +9 -13
  52. package/build/components/site/index.js +9 -9
  53. package/build/components/tooltip/index.d.ts +51 -53
  54. package/build/components/tooltip/index.js +73 -73
  55. package/build/components/tooltip/menu.d.ts +25 -29
  56. package/build/components/tooltip/menu.js +15 -15
  57. package/build/index.d.ts +2 -2
  58. package/build/index.js +2 -2
  59. package/build/types.d.ts +5 -5
  60. package/build/types.js +1 -1
  61. package/css/0177605565c3081637cf.css +1 -0
  62. package/css/components/2dcc6798ba04880cdf5a.css +23 -0
  63. package/css/components/b296e959a632e7fdbe65.css +26 -0
  64. package/css/fonts/716af1291514abb1e027.css +1 -0
  65. package/css/utilities/822835c12ae0b64188b4.css +11 -0
  66. package/css/utilities/98f5bec25ab2703bc173.css +15 -0
  67. package/package.json +8 -8
  68. package/src/components/alert/index.ts +4 -0
  69. package/src/components/form/action.ts +8 -8
  70. package/src/components/scrollbar/index.ts +6 -6
  71. package/src/components/tooltip/index.ts +14 -14
  72. package/src/components/tooltip/menu.ts +1 -1
  73. package/webpack.config.ts +1 -0
  74. package/css/components/styles.css +0 -1
  75. package/css/components/variables.css +0 -1
  76. package/css/fonts/montserrat.css +0 -1
  77. package/css/normalizer.css +0 -1
  78. package/css/utilities/styles.css +0 -1
  79. package/css/utilities/variables.css +0 -1
  80. /package/{fonts → assets}/0af89c10df9bc2f8d646.woff2 +0 -0
  81. /package/{fonts → assets}/109e3207d9afea8524be.woff2 +0 -0
  82. /package/{fonts → assets}/16663c3f6ab1da2d6c86.woff +0 -0
  83. /package/{fonts → assets}/16e8721ef5837bc6375e.woff +0 -0
  84. /package/{fonts → assets}/2a3e005f58bfca9c117e.woff +0 -0
  85. /package/{fonts → assets}/58a8d7ebc386843b62c5.woff2 +0 -0
  86. /package/{fonts → assets}/593de7c561e5ffe80c3e.woff2 +0 -0
  87. /package/{fonts → assets}/68b7982c2b30b51bf932.woff2 +0 -0
  88. /package/{fonts → assets}/a04b5e24af93da353f0e.woff +0 -0
  89. /package/{fonts → assets}/bf331673b91821715c08.woff +0 -0
  90. /package/{fonts → assets}/c54b0f4340f2914802d1.woff +0 -0
  91. /package/{fonts → assets}/dd8646a41e4397b77fc4.woff2 +0 -0
  92. /package/{fonts → assets}/e06c107cc50506570954.woff2 +0 -0
  93. /package/{fonts → assets}/ecdfe4c05425592708aa.woff2 +0 -0
  94. /package/{fonts → assets}/f0032576ac7462ccbd0c.woff +0 -0
  95. /package/{fonts → assets}/f872e621917a45943fbc.woff +0 -0
@@ -1,46 +1,46 @@
1
- import { response } from '@esportsplus/action';
2
- import { html } from '@esportsplus/template';
3
- import alert from '../../components/alert';
4
- import input from './input';
5
- function parse(input) {
6
- let data = {};
7
- for (let path in input) {
8
- let bucket = data, keys = path.indexOf('.') !== -1 ? path.split('.') : [path];
9
- for (let i = 0; i < keys.length - 1; i++) {
10
- bucket = bucket[keys[i]] = bucket[keys[i]] || {};
11
- }
12
- bucket[keys[keys.length - 1]] = input[path];
13
- }
14
- return data;
15
- }
16
- ;
17
- export default function (action) {
18
- return html({
19
- onclick: function (event) {
20
- let trigger = event.target;
21
- if (trigger?.type !== 'submit') {
22
- return;
23
- }
24
- event.preventDefault();
25
- this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
26
- },
27
- onsubmit: async function (event) {
28
- event.preventDefault();
29
- event?.submitter?.classList.add('button--processing');
30
- let { errors } = await action({
31
- alert,
32
- input: parse(Object.fromEntries(new FormData(this)?.entries())),
33
- response
34
- });
35
- for (let i = 0, n = errors.length; i < n; i++) {
36
- let { message, path } = errors[i], state = input.get(this[path]);
37
- if (!state) {
38
- continue;
39
- }
40
- state.error = `${message[0].toUpperCase()}${message.substring(1)}`;
41
- }
42
- event?.submitter?.classList.remove('button--processing');
43
- }
44
- });
45
- }
46
- ;
1
+ import { response } from '@esportsplus/action';
2
+ import { html } from '@esportsplus/template';
3
+ import alert from '../../components/alert';
4
+ import input from './input';
5
+ function parse(input) {
6
+ let data = {};
7
+ for (let path in input) {
8
+ let bucket = data, keys = path.indexOf('.') !== -1 ? path.split('.') : [path];
9
+ for (let i = 0; i < keys.length - 1; i++) {
10
+ bucket = bucket[keys[i]] = bucket[keys[i]] || {};
11
+ }
12
+ bucket[keys[keys.length - 1]] = input[path];
13
+ }
14
+ return data;
15
+ }
16
+ ;
17
+ export default function (action) {
18
+ return html `
19
+ onclick='${function (event) {
20
+ let trigger = event.target;
21
+ if (trigger?.type !== 'submit') {
22
+ return;
23
+ }
24
+ event.preventDefault();
25
+ this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
26
+ }}'
27
+ onsubmit='${async function (event) {
28
+ event.preventDefault();
29
+ event?.submitter?.classList.add('button--processing');
30
+ let { errors } = await action({
31
+ alert,
32
+ input: parse(Object.fromEntries(new FormData(this)?.entries())),
33
+ response
34
+ });
35
+ for (let i = 0, n = errors.length; i < n; i++) {
36
+ let { message, path } = errors[i], state = input.get(this[path]);
37
+ if (!state) {
38
+ continue;
39
+ }
40
+ state.error = `${message[0].toUpperCase()}${message.substring(1)}`;
41
+ }
42
+ event?.submitter?.classList.remove('button--processing');
43
+ }}'
44
+ `;
45
+ }
46
+ ;
@@ -1,31 +1,27 @@
1
- import action from './action';
2
- declare const _default: {
3
- action: typeof action;
4
- input: {
5
- attributes: (reactive: {
6
- error: string;
7
- }) => (element: HTMLInputElement | HTMLSelectElement) => void;
8
- get: (element?: HTMLInputElement | HTMLSelectElement | undefined) => {
9
- error: string;
10
- } | undefined;
11
- };
12
- layout: (data: {
13
- action?: any;
14
- button?: {
15
- class?: string | undefined;
16
- content?: any;
17
- style?: string | undefined;
18
- } | undefined;
19
- class?: string | undefined;
20
- content?: any;
21
- } & {
22
- subtitle?: string | undefined;
23
- suptitle?: string | undefined;
24
- title?: string | undefined;
25
- }) => {
26
- content: string;
27
- type: string;
28
- values: never[];
29
- };
30
- };
31
- export default _default;
1
+ import action from './action';
2
+ declare const _default: {
3
+ action: typeof action;
4
+ input: {
5
+ attributes: (reactive: {
6
+ error: string;
7
+ }) => (element: HTMLInputElement | HTMLSelectElement) => void;
8
+ get: (element?: HTMLInputElement | HTMLSelectElement | undefined) => {
9
+ error: string;
10
+ } | undefined;
11
+ };
12
+ layout: (data: {
13
+ action?: any;
14
+ button?: {
15
+ class?: string | undefined;
16
+ content?: any;
17
+ style?: string | undefined;
18
+ } | undefined;
19
+ class?: string | undefined;
20
+ content?: any;
21
+ } & {
22
+ subtitle?: string | undefined;
23
+ suptitle?: string | undefined;
24
+ title?: string | undefined;
25
+ }) => import("@esportsplus/template/build/types").Template;
26
+ };
27
+ export default _default;
@@ -1,4 +1,4 @@
1
- import action from './action';
2
- import input from './input';
3
- import layout from './layout';
4
- export default { action, input, layout };
1
+ import action from './action';
2
+ import input from './input';
3
+ import layout from './layout';
4
+ export default { action, input, layout };
@@ -1,9 +1,9 @@
1
- declare const _default: {
2
- attributes: (reactive: {
3
- error: string;
4
- }) => (element: HTMLInputElement | HTMLSelectElement) => void;
5
- get: (element?: HTMLInputElement | HTMLSelectElement | undefined) => {
6
- error: string;
7
- } | undefined;
8
- };
9
- export default _default;
1
+ declare const _default: {
2
+ attributes: (reactive: {
3
+ error: string;
4
+ }) => (element: HTMLInputElement | HTMLSelectElement) => void;
5
+ get: (element?: HTMLInputElement | HTMLSelectElement | undefined) => {
6
+ error: string;
7
+ } | undefined;
8
+ };
9
+ export default _default;
@@ -1,10 +1,10 @@
1
- let cache = new WeakMap();
2
- const attributes = (reactive) => {
3
- return (element) => {
4
- cache.set(element, reactive);
5
- };
6
- };
7
- const get = (element) => {
8
- return element ? cache.get(element) : undefined;
9
- };
10
- export default { attributes, get };
1
+ let cache = new WeakMap();
2
+ const attributes = (reactive) => {
3
+ return (element) => {
4
+ cache.set(element, reactive);
5
+ };
6
+ };
7
+ const get = (element) => {
8
+ return element ? cache.get(element) : undefined;
9
+ };
10
+ export default { attributes, get };
@@ -1,17 +1,13 @@
1
- import { header } from '../../components/page';
2
- type Data = {
3
- action?: any;
4
- button?: {
5
- class?: string;
6
- content?: any;
7
- style?: string;
8
- };
9
- class?: string;
10
- content?: any;
11
- } & Parameters<typeof header>[0];
12
- declare const _default: (data: Data) => {
13
- content: string;
14
- type: string;
15
- values: never[];
16
- };
17
- export default _default;
1
+ import { header } from '../../components/page';
2
+ type Data = {
3
+ action?: any;
4
+ button?: {
5
+ class?: string;
6
+ content?: any;
7
+ style?: string;
8
+ };
9
+ class?: string;
10
+ content?: any;
11
+ } & Parameters<typeof header>[0];
12
+ declare const _default: (data: Data) => import("@esportsplus/template/build/types").Template;
13
+ export default _default;
@@ -1,5 +1,5 @@
1
- import { html } from '@esportsplus/template';
2
- import { header } from '../../components/page';
1
+ import { html } from '@esportsplus/template';
2
+ import { header } from '../../components/page';
3
3
  export default (data) => html `
4
4
  ${header(data)}
5
5
 
@@ -12,4 +12,4 @@ export default (data) => html `
12
12
  </button>
13
13
  ` : ''}
14
14
  </form>
15
- `;
15
+ `;
@@ -1,12 +1,12 @@
1
- import { response, Response } from '@esportsplus/action';
2
- import alert from '../../components/alert';
3
- type Action = (data: Payload) => Promise<Errors> | Errors;
4
- type Errors = {
5
- errors: Response<unknown>['errors'];
6
- };
7
- type Payload = {
8
- alert: typeof alert;
9
- input: Record<string, any>;
10
- response: typeof response;
11
- };
12
- export { Action, Errors, Payload };
1
+ import { response, Response } from '@esportsplus/action';
2
+ import alert from '../../components/alert';
3
+ type Action = (data: Payload) => Promise<Errors> | Errors;
4
+ type Errors = {
5
+ errors: Response<unknown>['errors'];
6
+ };
7
+ type Payload = {
8
+ alert: typeof alert;
9
+ input: Record<string, any>;
10
+ response: typeof response;
11
+ };
12
+ export { Action, Errors, Payload };
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,9 @@
1
- export { default as alert } from './alert';
2
- export { default as field } from './field';
3
- export { default as form } from './form';
4
- export { default as overlay } from './overlay';
5
- export { default as page } from './page';
6
- export { default as root } from './root';
7
- export { default as scrollbar } from './scrollbar';
8
- export { default as site } from './site';
9
- export { default as tooltip } from './tooltip';
1
+ export { default as alert } from './alert';
2
+ export { default as field } from './field';
3
+ export { default as form } from './form';
4
+ export { default as overlay } from './overlay';
5
+ export { default as page } from './page';
6
+ export { default as root } from './root';
7
+ export { default as scrollbar } from './scrollbar';
8
+ export { default as site } from './site';
9
+ export { default as tooltip } from './tooltip';
@@ -1,9 +1,9 @@
1
- export { default as alert } from './alert';
2
- export { default as field } from './field';
3
- export { default as form } from './form';
4
- export { default as overlay } from './overlay';
5
- export { default as page } from './page';
6
- export { default as root } from './root';
7
- export { default as scrollbar } from './scrollbar';
8
- export { default as site } from './site';
9
- export { default as tooltip } from './tooltip';
1
+ export { default as alert } from './alert';
2
+ export { default as field } from './field';
3
+ export { default as form } from './form';
4
+ export { default as overlay } from './overlay';
5
+ export { default as page } from './page';
6
+ export { default as root } from './root';
7
+ export { default as scrollbar } from './scrollbar';
8
+ export { default as site } from './site';
9
+ export { default as tooltip } from './tooltip';
@@ -1,10 +1,6 @@
1
- type Data = {
2
- class?: string;
3
- content?: any;
4
- };
5
- declare const _default: (data?: Data) => {
6
- content: string;
7
- type: string;
8
- values: never[];
9
- };
10
- export default _default;
1
+ type Data = {
2
+ class?: string;
3
+ content?: any;
4
+ };
5
+ declare const _default: (data?: Data) => import("@esportsplus/template/build/types").Template;
6
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { html } from '@esportsplus/template';
1
+ import { html } from '@esportsplus/template';
2
2
  export default (data = {}) => html `
3
3
  <section class='overlay ${data?.class || ''}'>
4
4
  ${data?.content || ''}
5
5
  </section>
6
- `;
6
+ `;
@@ -1,10 +1,6 @@
1
- declare const _default: (data: {
2
- subtitle?: string;
3
- suptitle?: string;
4
- title?: string;
5
- }) => {
6
- content: string;
7
- type: string;
8
- values: never[];
9
- };
10
- export default _default;
1
+ declare const _default: (data: {
2
+ subtitle?: string;
3
+ suptitle?: string;
4
+ title?: string;
5
+ }) => import("@esportsplus/template/build/types").Template;
6
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { html } from '@esportsplus/template';
1
+ import { html } from '@esportsplus/template';
2
2
  export default (data) => html `
3
3
  ${data?.suptitle ? html `
4
4
  <span class="page-suptitle --text-bold --text-crop --text-uppercase --text-200" style="--color-default: var(--color-primary-400);letter-spacing: 0.24px;">
@@ -17,4 +17,4 @@ export default (data) => html `
17
17
  ${data?.subtitle}
18
18
  </span>
19
19
  ` : ''}
20
- `;
20
+ `;
@@ -1,23 +1,15 @@
1
- import header from './header';
2
- import layout from './layout';
3
- declare const _default: {
4
- header: (data: {
5
- subtitle?: string | undefined;
6
- suptitle?: string | undefined;
7
- title?: string | undefined;
8
- }) => {
9
- content: string;
10
- type: string;
11
- values: never[];
12
- };
13
- layout: (data?: {
14
- class?: string | undefined;
15
- content?: any;
16
- }) => {
17
- content: string;
18
- type: string;
19
- values: never[];
20
- };
21
- };
22
- export default _default;
23
- export { header, layout };
1
+ import header from './header';
2
+ import layout from './layout';
3
+ declare const _default: {
4
+ header: (data: {
5
+ subtitle?: string | undefined;
6
+ suptitle?: string | undefined;
7
+ title?: string | undefined;
8
+ }) => import("@esportsplus/template/build/types").Template;
9
+ layout: (data?: {
10
+ class?: string | undefined;
11
+ content?: any;
12
+ }) => import("@esportsplus/template/build/types").Template;
13
+ };
14
+ export default _default;
15
+ export { header, layout };
@@ -1,4 +1,4 @@
1
- import header from './header';
2
- import layout from './layout';
3
- export default { header, layout };
4
- export { header, layout };
1
+ import header from './header';
2
+ import layout from './layout';
3
+ export default { header, layout };
4
+ export { header, layout };
@@ -1,9 +1,5 @@
1
- declare const _default: (data?: {
2
- class?: string;
3
- content?: any;
4
- }) => {
5
- content: string;
6
- type: string;
7
- values: never[];
8
- };
9
- export default _default;
1
+ declare const _default: (data?: {
2
+ class?: string;
3
+ content?: any;
4
+ }) => import("@esportsplus/template/build/types").Template;
5
+ export default _default;
@@ -1,6 +1,6 @@
1
- import { html } from '@esportsplus/template';
1
+ import { html } from '@esportsplus/template';
2
2
  export default (data = {}) => html `
3
3
  <section class='page ${data?.class}'>
4
4
  ${data?.content}
5
5
  </section>
6
- `;
6
+ `;
@@ -1,8 +1,8 @@
1
- import queue from './queue';
2
- declare const _default: {
3
- queue: {
4
- onclick: (fn: VoidFunction) => void;
5
- };
6
- };
7
- export default _default;
8
- export { queue };
1
+ import queue from './queue';
2
+ declare const _default: {
3
+ queue: {
4
+ onclick: (fn: VoidFunction) => void;
5
+ };
6
+ };
7
+ export default _default;
8
+ export { queue };
@@ -1,3 +1,3 @@
1
- import queue from './queue';
2
- export default { queue };
3
- export { queue };
1
+ import queue from './queue';
2
+ export default { queue };
3
+ export { queue };
@@ -1,4 +1,4 @@
1
- declare const _default: {
2
- onclick: (fn: VoidFunction) => void;
3
- };
4
- export default _default;
1
+ declare const _default: {
2
+ onclick: (fn: VoidFunction) => void;
3
+ };
4
+ export default _default;
@@ -1,18 +1,18 @@
1
- import events from '@esportsplus/delegated-events';
2
- let initialized = false, queue = [];
3
- const onclick = (fn) => {
4
- if (!initialized) {
5
- events.register(document.body, 'click', async () => {
6
- if (!queue.length) {
7
- return;
8
- }
9
- let items = queue.splice(0);
10
- for (let i = 0, n = items.length; i < n; i++) {
11
- await items[i]();
12
- }
13
- });
14
- initialized = true;
15
- }
16
- queue.push(fn);
17
- };
18
- export default { onclick };
1
+ import events from '@esportsplus/delegated-events';
2
+ let initialized = false, queue = [];
3
+ const onclick = (fn) => {
4
+ if (!initialized) {
5
+ events.register(document.body, 'click', async () => {
6
+ if (!queue.length) {
7
+ return;
8
+ }
9
+ let items = queue.splice(0);
10
+ for (let i = 0, n = items.length; i < n; i++) {
11
+ await items[i]();
12
+ }
13
+ });
14
+ initialized = true;
15
+ }
16
+ queue.push(fn);
17
+ };
18
+ export default { onclick };
@@ -1,16 +1,8 @@
1
- declare const _default: ({ fixed, style }?: {
2
- fixed?: boolean | undefined;
3
- style?: string | undefined;
4
- }) => {
5
- attributes: {
6
- content: string;
7
- type: string;
8
- values: never[];
9
- };
10
- html: {
11
- content: string;
12
- type: string;
13
- values: never[];
14
- };
15
- };
16
- export default _default;
1
+ declare const _default: ({ fixed, style }?: {
2
+ fixed?: boolean | undefined;
3
+ style?: string | undefined;
4
+ }) => {
5
+ attributes: import("@esportsplus/template/build/types").Template;
6
+ html: import("@esportsplus/template/build/types").Template;
7
+ };
8
+ export default _default;
@@ -1,27 +1,27 @@
1
- import { reactive } from '@esportsplus/reactivity';
2
- import { html } from '@esportsplus/template';
3
- let root = document.body, width;
4
- export default ({ fixed, style } = {}) => {
5
- let state = reactive({
6
- height: 100,
7
- translate: 0
8
- });
9
- return {
10
- attributes: html({
11
- class: () => {
12
- return '--scrollbar';
13
- },
14
- onscroll: function () {
15
- if (width === undefined) {
16
- width = this.offsetWidth - this.clientWidth;
17
- if (width && width !== 17) {
18
- root.style.setProperty('--scrollbar-width', `${width}px`);
19
- }
20
- }
21
- state.height = (this.clientHeight / this.scrollHeight) * 100;
22
- state.translate = (this.scrollTop / this.clientHeight) * 100;
23
- }
24
- }),
1
+ import { reactive } from '@esportsplus/reactivity';
2
+ import { html } from '@esportsplus/template';
3
+ let root = document.body, width;
4
+ export default ({ fixed, style } = {}) => {
5
+ let state = reactive({
6
+ height: 100,
7
+ translate: 0
8
+ });
9
+ return {
10
+ attributes: html `
11
+ class='${() => {
12
+ return '--scrollbar';
13
+ }}'
14
+ onscroll='${function () {
15
+ if (width === undefined) {
16
+ width = this.offsetWidth - this.clientWidth;
17
+ if (width && width !== 17) {
18
+ root.style.setProperty('--scrollbar-width', `${width}px`);
19
+ }
20
+ }
21
+ state.height = (this.clientHeight / this.scrollHeight) * 100;
22
+ state.translate = (this.scrollTop / this.clientHeight) * 100;
23
+ }}'
24
+ `,
25
25
  html: html `
26
26
  <div
27
27
  class='scrollbar ${fixed ? 'scrollbar--fixed' : ''} ${() => state.height >= 100 ? 'scrollbar--hidden' : ''}'
@@ -31,6 +31,6 @@ export default ({ fixed, style } = {}) => {
31
31
  --height: ${state.height}%;
32
32
  `}'
33
33
  ></div>
34
- `
35
- };
36
- };
34
+ `
35
+ };
36
+ };
@@ -1,13 +1,9 @@
1
- type Data = {
2
- class?: string;
3
- content?: any;
4
- scrollbar?: {
5
- style?: string;
6
- };
7
- };
8
- declare const _default: (data: Data) => {
9
- content: string;
10
- type: string;
11
- values: never[];
12
- };
13
- export default _default;
1
+ type Data = {
2
+ class?: string;
3
+ content?: any;
4
+ scrollbar?: {
5
+ style?: string;
6
+ };
7
+ };
8
+ declare const _default: (data: Data) => import("@esportsplus/template/build/types").Template;
9
+ export default _default;