@esportsplus/ui 0.51.6 → 0.53.0
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/.github/workflows/bump.yml +4 -1
- package/.github/workflows/publish.yml +4 -0
- package/README.md +2 -3
- package/build/components/accordion/index.d.ts +22 -16
- package/build/components/accordion/index.js +10 -36
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/back/index.d.ts +16 -13
- package/build/components/back/index.js +11 -11
- package/build/components/button/index.d.ts +22 -22
- package/build/components/button/index.js +25 -25
- package/build/components/checkbox/index.d.ts +1 -1
- package/build/components/checkbox/index.js +27 -23
- package/build/components/clipboard/index.d.ts +23 -20
- package/build/components/clipboard/index.js +1 -0
- package/build/components/clipboard/onclick.d.ts +1 -1
- package/build/components/clipboard/onclick.js +16 -16
- package/build/components/clipboard/write.d.ts +1 -1
- package/build/components/counter/index.d.ts +5 -5
- package/build/components/counter/index.js +34 -34
- package/build/components/ellipsis/index.d.ts +1 -1
- package/build/components/ellipsis/index.js +5 -5
- package/build/components/form/action.d.ts +3 -3
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +2 -2
- package/build/components/form/input.d.ts +8 -6
- package/build/components/form/input.js +3 -3
- package/build/components/frame/index.d.ts +16 -15
- package/build/components/frame/index.js +11 -5
- package/build/components/highlight/index.d.ts +17 -16
- package/build/components/highlight/index.js +16 -16
- package/build/components/icon/index.d.ts +11 -11
- package/build/components/icon/index.js +8 -8
- package/build/components/index.d.ts +1 -4
- package/build/components/index.js +1 -4
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +21 -21
- package/build/components/json/download.d.ts +1 -1
- package/build/components/loader/index.d.ts +17 -16
- package/build/components/loader/index.js +35 -35
- package/build/components/loader/scss/index.scss +1 -1
- package/build/components/loading/index.d.ts +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/overlay/index.d.ts +16 -15
- package/build/components/overlay/index.js +11 -5
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/radio/index.js +1 -1
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +26 -26
- package/build/components/root/index.d.ts +1 -4
- package/build/components/root/onclick.d.ts +4 -4
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +4 -7
- package/build/components/select/index.js +92 -98
- package/build/components/sidebar/index.d.ts +16 -15
- package/build/components/sidebar/index.js +11 -5
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/switch/index.js +1 -1
- package/build/components/textarea/index.d.ts +1 -1
- package/build/components/textarea/index.js +21 -21
- package/build/components/toast/index.d.ts +9 -0
- package/build/components/toast/index.js +157 -0
- package/build/components/toast/manager.d.ts +60 -0
- package/build/components/toast/manager.js +203 -0
- package/build/components/toast/scss/index.scss +2 -0
- package/build/components/toast/svg/check.svg +1 -0
- package/build/components/toast/svg/chevron.svg +1 -0
- package/build/components/toast/svg/close.svg +1 -0
- package/build/components/toast/svg/copy.svg +1 -0
- package/build/components/toast/svg/error.svg +1 -0
- package/build/components/toast/svg/info.svg +1 -0
- package/build/components/toast/svg/loading.svg +1 -0
- package/build/components/toast/svg/success.svg +1 -0
- package/build/components/toast/svg/warning.svg +1 -0
- package/build/components/tooltip/index.d.ts +40 -40
- package/build/components/tooltip/menu.d.ts +11 -12
- package/build/components/tooltip/menu.js +38 -24
- package/build/components/tooltip/onclick.d.ts +1151 -1151
- package/build/components/tooltip/onclick.js +17 -17
- package/build/components/tooltip/onhover.d.ts +17 -16
- package/build/components/tooltip/onhover.js +17 -17
- package/build/components/typewriter/index.d.ts +11 -11
- package/build/components/typewriter/index.js +16 -16
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/scroll-fade/scss/index.scss +2 -0
- package/build/css-utilities/scrollbar/scss/index.scss +2 -0
- package/build/themes/dark/back.d.ts +8 -4
- package/build/themes/dark/index.d.ts +0 -1
- package/build/themes/dark/index.js +0 -1
- package/build/themes/dark/input.d.ts +2 -2
- package/build/themes/dark/select.d.ts +60 -110
- package/build/themes/dark/textarea.d.ts +2 -2
- package/package.json +15 -15
- package/pnpm-workspace.yaml +11 -0
- package/src/components/accordion/index.ts +7 -30
- package/src/components/accordion/scss/index.scss +9 -12
- package/src/components/back/index.ts +4 -5
- package/src/components/button/index.ts +2 -3
- package/src/components/checkbox/index.ts +7 -2
- package/src/components/clipboard/index.ts +2 -1
- package/src/components/clipboard/onclick.ts +3 -4
- package/src/components/form/input.ts +4 -4
- package/src/components/frame/index.ts +9 -5
- package/src/components/highlight/index.ts +2 -3
- package/src/components/icon/index.ts +2 -3
- package/src/components/index.ts +1 -4
- package/src/components/loader/index.ts +5 -6
- package/src/components/loader/scss/index.scss +1 -1
- package/src/components/overlay/index.ts +9 -5
- package/src/components/overlay/scss/index.scss +0 -1
- package/src/components/page/scss/index.scss +1 -1
- package/src/components/root/scss/index.scss +35 -4
- package/src/components/root/scss/variables.scss +1 -2
- package/src/components/select/index.ts +71 -83
- package/src/components/sidebar/index.ts +9 -5
- package/src/components/sidebar/scss/index.scss +0 -1
- package/src/components/toast/index.ts +188 -0
- package/src/components/toast/manager.ts +312 -0
- package/src/components/toast/scss/index.scss +276 -0
- package/src/components/toast/scss/variables.scss +19 -0
- package/src/components/toast/svg/check.svg +1 -0
- package/src/components/toast/svg/chevron.svg +1 -0
- package/src/components/toast/svg/close.svg +1 -0
- package/src/components/toast/svg/copy.svg +1 -0
- package/src/components/toast/svg/error.svg +1 -0
- package/src/components/toast/svg/info.svg +1 -0
- package/src/components/toast/svg/loading.svg +1 -0
- package/src/components/toast/svg/success.svg +1 -0
- package/src/components/toast/svg/warning.svg +1 -0
- package/src/components/tooltip/menu.ts +8 -4
- package/src/components/tooltip/onclick.ts +3 -4
- package/src/components/tooltip/onhover.ts +2 -3
- package/src/components/typewriter/index.ts +2 -3
- package/src/css-utilities/index.scss +3 -2
- package/src/css-utilities/scroll-fade/scss/index.scss +47 -0
- package/src/css-utilities/scroll-fade/scss/variables.scss +3 -0
- package/src/css-utilities/scrollbar/scss/index.scss +53 -0
- package/src/css-utilities/scrollbar/scss/variables.scss +5 -0
- package/src/themes/dark/index.ts +0 -1
- package/src/tokens/scss/color.scss +14 -14
- package/src/tokens/scss/font-size.scss +12 -11
- package/src/tokens/scss/line-height.scss +7 -4
- package/src/tokens/scss/scale.scss +22 -0
- package/src/tokens/scss/size.scss +12 -9
- package/src/tokens/scss/spacer.scss +9 -9
- package/storage/svg/bolt.svg +1 -0
- package/storage/svg/star.svg +1 -0
- package/tsconfig.json +6 -2
- package/vite-env.d.ts +1 -0
- package/vite.config.ts +73 -72
- package/build/components/alert/index.d.ts +0 -19
- package/build/components/alert/index.js +0 -151
- package/build/components/alert/scss/index.scss +0 -2
- package/build/components/alert/svg/check.svg +0 -11
- package/build/components/alert/svg/close.svg +0 -12
- package/build/components/alert/svg/error.svg +0 -18
- package/build/components/scrollbar/index.d.ts +0 -27
- package/build/components/scrollbar/index.js +0 -56
- package/build/components/scrollbar/scss/index.scss +0 -2
- package/build/components/site/index.d.ts +0 -20
- package/build/components/site/index.js +0 -9
- package/build/components/site/scss/index.scss +0 -2
- package/build/components/template/index.d.ts +0 -13
- package/build/components/template/index.js +0 -21
- package/build/css-utilities/scroller/scss/index.scss +0 -2
- package/build/themes/dark/alert.d.ts +0 -11
- package/build/themes/dark/alert.js +0 -20
- package/src/components/accordion/scss/variables.scss +0 -9
- package/src/components/alert/index.ts +0 -165
- package/src/components/alert/scss/index.scss +0 -25
- package/src/components/alert/scss/variables.scss +0 -3
- package/src/components/alert/svg/check.svg +0 -11
- package/src/components/alert/svg/close.svg +0 -12
- package/src/components/alert/svg/error.svg +0 -18
- package/src/components/scrollbar/index.ts +0 -70
- package/src/components/scrollbar/scss/index.scss +0 -82
- package/src/components/scrollbar/scss/variables.scss +0 -6
- package/src/components/site/index.ts +0 -11
- package/src/components/site/scss/index.scss +0 -3
- package/src/components/template/index.ts +0 -40
- package/src/css-utilities/scroller/scss/index.scss +0 -8
- package/src/css-utilities/scroller/scss/variables.scss +0 -4
- package/src/themes/dark/alert.ts +0 -23
|
@@ -3,8 +3,8 @@ declare const _default: {
|
|
|
3
3
|
menu: {
|
|
4
4
|
(): ReturnType<(this: {
|
|
5
5
|
attributes?: ({
|
|
6
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
7
|
-
[key: `data-${string}`]: string | undefined;
|
|
6
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
7
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
8
8
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
9
9
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
10
10
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -133,8 +133,8 @@ declare const _default: {
|
|
|
133
133
|
}) | undefined;
|
|
134
134
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
135
135
|
}, attributes: Readonly<{
|
|
136
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
137
|
-
[key: `data-${string}`]: string | undefined;
|
|
136
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
137
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
138
138
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
139
139
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
140
140
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -262,8 +262,8 @@ declare const _default: {
|
|
|
262
262
|
};
|
|
263
263
|
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
264
264
|
<T extends {
|
|
265
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
266
|
-
[key: `data-${string}`]: string | undefined;
|
|
265
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
266
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
267
267
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
268
268
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
269
269
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -391,8 +391,8 @@ declare const _default: {
|
|
|
391
391
|
};
|
|
392
392
|
}>(attributes: T): ReturnType<(this: {
|
|
393
393
|
attributes?: ({
|
|
394
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
395
|
-
[key: `data-${string}`]: string | undefined;
|
|
394
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
395
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
396
396
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
397
397
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
398
398
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -521,8 +521,8 @@ declare const _default: {
|
|
|
521
521
|
}) | undefined;
|
|
522
522
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
523
523
|
}, attributes: Readonly<{
|
|
524
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
525
|
-
[key: `data-${string}`]: string | undefined;
|
|
524
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
525
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
526
526
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
527
527
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
528
528
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -651,8 +651,8 @@ declare const _default: {
|
|
|
651
651
|
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
652
652
|
<T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
|
|
653
653
|
attributes?: ({
|
|
654
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
655
|
-
[key: `data-${string}`]: string | undefined;
|
|
654
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
655
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
656
656
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
657
657
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
658
658
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -781,8 +781,8 @@ declare const _default: {
|
|
|
781
781
|
}) | undefined;
|
|
782
782
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
783
783
|
}, attributes: Readonly<{
|
|
784
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
785
|
-
[key: `data-${string}`]: string | undefined;
|
|
784
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
785
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
786
786
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
787
787
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
788
788
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -910,8 +910,8 @@ declare const _default: {
|
|
|
910
910
|
};
|
|
911
911
|
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
912
912
|
(attributes: {
|
|
913
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
914
|
-
[key: `data-${string}`]: string | undefined;
|
|
913
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
914
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
915
915
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
916
916
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
917
917
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1039,8 +1039,8 @@ declare const _default: {
|
|
|
1039
1039
|
};
|
|
1040
1040
|
}, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
1041
1041
|
attributes?: ({
|
|
1042
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1043
|
-
[key: `data-${string}`]: string | undefined;
|
|
1042
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1043
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1044
1044
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1045
1045
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1046
1046
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1169,8 +1169,8 @@ declare const _default: {
|
|
|
1169
1169
|
}) | undefined;
|
|
1170
1170
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
1171
1171
|
}, attributes: Readonly<{
|
|
1172
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1173
|
-
[key: `data-${string}`]: string | undefined;
|
|
1172
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1173
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1174
1174
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1175
1175
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1176
1176
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1301,8 +1301,8 @@ declare const _default: {
|
|
|
1301
1301
|
onclick: {
|
|
1302
1302
|
(): ReturnType<(this: {
|
|
1303
1303
|
attributes?: ({
|
|
1304
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1305
|
-
[key: `data-${string}`]: string | undefined;
|
|
1304
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1305
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1306
1306
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1307
1307
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1308
1308
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1424,8 +1424,8 @@ declare const _default: {
|
|
|
1424
1424
|
}) | undefined;
|
|
1425
1425
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
1426
1426
|
}, attributes: Readonly<{
|
|
1427
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1428
|
-
[key: `data-${string}`]: string | undefined;
|
|
1427
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1428
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1429
1429
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1430
1430
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1431
1431
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1546,8 +1546,8 @@ declare const _default: {
|
|
|
1546
1546
|
toggle?: boolean;
|
|
1547
1547
|
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
1548
1548
|
<T extends {
|
|
1549
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1550
|
-
[key: `data-${string}`]: string | undefined;
|
|
1549
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1550
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1551
1551
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1552
1552
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1553
1553
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1668,8 +1668,8 @@ declare const _default: {
|
|
|
1668
1668
|
toggle?: boolean;
|
|
1669
1669
|
}>(attributes: T): ReturnType<(this: {
|
|
1670
1670
|
attributes?: ({
|
|
1671
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1672
|
-
[key: `data-${string}`]: string | undefined;
|
|
1671
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1672
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1673
1673
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1674
1674
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1675
1675
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1791,8 +1791,8 @@ declare const _default: {
|
|
|
1791
1791
|
}) | undefined;
|
|
1792
1792
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
1793
1793
|
}, attributes: Readonly<{
|
|
1794
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1795
|
-
[key: `data-${string}`]: string | undefined;
|
|
1794
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1795
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1796
1796
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1797
1797
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1798
1798
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1914,8 +1914,8 @@ declare const _default: {
|
|
|
1914
1914
|
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
1915
1915
|
<T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
|
|
1916
1916
|
attributes?: ({
|
|
1917
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1918
|
-
[key: `data-${string}`]: string | undefined;
|
|
1917
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1918
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1919
1919
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1920
1920
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1921
1921
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -2037,8 +2037,8 @@ declare const _default: {
|
|
|
2037
2037
|
}) | undefined;
|
|
2038
2038
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
2039
2039
|
}, attributes: Readonly<{
|
|
2040
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
2041
|
-
[key: `data-${string}`]: string | undefined;
|
|
2040
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2041
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2042
2042
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
2043
2043
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
2044
2044
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -2159,8 +2159,8 @@ declare const _default: {
|
|
|
2159
2159
|
toggle?: boolean;
|
|
2160
2160
|
}>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
2161
2161
|
(attributes: {
|
|
2162
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
2163
|
-
[key: `data-${string}`]: string | undefined;
|
|
2162
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2163
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2164
2164
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
2165
2165
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
2166
2166
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -2281,8 +2281,8 @@ declare const _default: {
|
|
|
2281
2281
|
toggle?: boolean;
|
|
2282
2282
|
}, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
2283
2283
|
attributes?: ({
|
|
2284
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
2285
|
-
[key: `data-${string}`]: string | undefined;
|
|
2284
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2285
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2286
2286
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
2287
2287
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
2288
2288
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -2404,8 +2404,8 @@ declare const _default: {
|
|
|
2404
2404
|
}) | undefined;
|
|
2405
2405
|
content?: import("@esportsplus/template").Renderable<any>;
|
|
2406
2406
|
}, attributes: Readonly<{
|
|
2407
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
2408
|
-
[key: `data-${string}`]: string | undefined;
|
|
2407
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2408
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
2409
2409
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
2410
2410
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
2411
2411
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Attributes, Renderable } from '@esportsplus/template';
|
|
1
|
+
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
3
2
|
type A = Attributes & {
|
|
4
3
|
options: (Attributes & {
|
|
5
4
|
content: Renderable<unknown>;
|
|
@@ -16,19 +15,19 @@ type A = Attributes & {
|
|
|
16
15
|
declare const _default: {
|
|
17
16
|
(): ReturnType<(this: {
|
|
18
17
|
attributes?: A | undefined;
|
|
19
|
-
content?:
|
|
20
|
-
}, attributes: Readonly<A>, content:
|
|
18
|
+
content?: Renderable<any>;
|
|
19
|
+
}, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
|
|
21
20
|
<T extends A>(attributes: T): ReturnType<(this: {
|
|
22
21
|
attributes?: A | undefined;
|
|
23
|
-
content?:
|
|
24
|
-
}, attributes: Readonly<A>, content:
|
|
25
|
-
<T extends
|
|
22
|
+
content?: Renderable<any>;
|
|
23
|
+
}, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
|
|
24
|
+
<T extends Renderable<any>>(content: T): ReturnType<(this: {
|
|
26
25
|
attributes?: A | undefined;
|
|
27
|
-
content?:
|
|
28
|
-
}, attributes: Readonly<A>, content:
|
|
29
|
-
(attributes: A, content:
|
|
26
|
+
content?: Renderable<any>;
|
|
27
|
+
}, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
|
|
28
|
+
(attributes: A, content: Renderable<any>): ReturnType<(this: {
|
|
30
29
|
attributes?: A | undefined;
|
|
31
|
-
content?:
|
|
32
|
-
}, attributes: Readonly<A>, content:
|
|
30
|
+
content?: Renderable<any>;
|
|
31
|
+
}, attributes: Readonly<A>, content: Renderable<any>) => Renderable<any>>;
|
|
33
32
|
};
|
|
34
33
|
export default _default;
|
|
@@ -1,38 +1,52 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u1 from '@esportsplus/template';
|
|
2
|
+
import { component } from '@esportsplus/template';
|
|
3
|
+
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
2
4
|
import { omit } from '@esportsplus/utilities';
|
|
3
|
-
import template from '../../components/template/index.js';
|
|
4
5
|
import onclick from './onclick.js';
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const template_0p4v5172 = template_u1.template(`<a class='link --width-full' target='_blank' >`);
|
|
7
|
+
const template_0p4v5175 = template_u1.template(`<div class='link --width-full' >`);
|
|
8
|
+
const template_0p4v5178 = template_u1.template(`<!--$--><div class='tooltip-content ' >`);
|
|
9
|
+
class ReactiveObject_0p4v5170 extends reactivity_u0.ReactiveObject {
|
|
10
|
+
#active = this[reactivity_u0.SIGNAL](false);
|
|
11
|
+
constructor() {
|
|
12
|
+
super(null);
|
|
13
|
+
}
|
|
14
|
+
get active() {
|
|
15
|
+
return reactivity_u0.read(this.#active);
|
|
16
|
+
}
|
|
17
|
+
set active(_v0) {
|
|
18
|
+
reactivity_u0.write(this.#active, _v0);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
8
21
|
const OMIT = ['options', 'option', 'tooltip-content'];
|
|
9
22
|
const OMIT_OPTION = ['content'];
|
|
10
23
|
const OMIT_TOOLTIP_CONTENT = ['direction'];
|
|
11
|
-
export default
|
|
12
|
-
let options = attributes.options, option = attributes.option, tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
|
|
13
|
-
return onclick(omit(attributes, OMIT), (() => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
24
|
+
export default component((attributes, content) => {
|
|
25
|
+
let options = attributes.options, option = attributes.option, state = attributes.state || new ReactiveObject_0p4v5170(), tooltipContent = attributes?.['tooltip-content'], tooltipContentDirection = tooltipContent?.direction || 'nw';
|
|
26
|
+
return onclick({ ...omit(attributes, OMIT), state }, (() => {
|
|
27
|
+
let root_0p4v5177 = template_0p4v5178(), element_0p4v5179 = root_0p4v5177.firstChild, element_0p4v517a = element_0p4v5179.nextSibling;
|
|
28
|
+
template_u1.slot(element_0p4v5179, content);
|
|
29
|
+
template_u1.setList(element_0p4v517a, 'class', `tooltip-content--${tooltipContentDirection}`);
|
|
30
|
+
template_u1.setProperties(element_0p4v517a, tooltipContent && omit(tooltipContent, OMIT_TOOLTIP_CONTENT));
|
|
31
|
+
template_u1.setProperty(element_0p4v517a, 'inert', () => !state.active);
|
|
32
|
+
template_u1.slot(element_0p4v517a, options.map((o) => {
|
|
19
33
|
if (o.href) {
|
|
20
34
|
return (() => {
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return
|
|
35
|
+
let root_0p4v5171 = template_0p4v5172(), element_0p4v5173 = root_0p4v5171.firstChild;
|
|
36
|
+
template_u1.setProperties(element_0p4v5173, omit(o, OMIT_OPTION));
|
|
37
|
+
template_u1.setProperties(element_0p4v5173, option);
|
|
38
|
+
template_u1.slot(element_0p4v5173, o.content, 1);
|
|
39
|
+
return root_0p4v5171;
|
|
26
40
|
})();
|
|
27
41
|
}
|
|
28
42
|
return (() => {
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
43
|
+
let root_0p4v5174 = template_0p4v5175(), element_0p4v5176 = root_0p4v5174.firstChild;
|
|
44
|
+
template_u1.setProperties(element_0p4v5176, omit(o, OMIT_OPTION));
|
|
45
|
+
template_u1.setProperties(element_0p4v5176, option);
|
|
46
|
+
template_u1.slot(element_0p4v5176, o.content, 1);
|
|
47
|
+
return root_0p4v5174;
|
|
34
48
|
})();
|
|
35
49
|
}), 1);
|
|
36
|
-
return
|
|
50
|
+
return root_0p4v5177;
|
|
37
51
|
})());
|
|
38
52
|
});
|