@esportsplus/ui 0.51.7 → 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/README.md +2 -3
- package/build/components/accordion/index.d.ts +15 -10
- package/build/components/accordion/index.js +8 -34
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/back/index.d.ts +14 -11
- package/build/components/back/index.js +3 -3
- package/build/components/button/index.js +2 -2
- package/build/components/checkbox/index.js +7 -3
- package/build/components/clipboard/index.d.ts +23 -20
- package/build/components/clipboard/index.js +1 -0
- package/build/components/clipboard/onclick.js +3 -3
- 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.js +2 -2
- package/build/components/icon/index.js +2 -2
- package/build/components/index.d.ts +1 -4
- package/build/components/index.js +1 -4
- package/build/components/loader/index.js +4 -4
- package/build/components/loader/scss/index.scss +1 -1
- 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/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +3 -6
- package/build/components/select/index.js +72 -78
- 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/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.js +37 -23
- package/build/components/tooltip/onclick.d.ts +20 -20
- package/build/components/tooltip/onclick.js +2 -2
- package/build/components/tooltip/onhover.js +2 -2
- package/build/components/typewriter/index.js +2 -2
- 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 -8
- 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 +2 -3
- 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 -14
- 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
|
@@ -7,12 +7,10 @@ declare const _default: {
|
|
|
7
7
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
8
8
|
}>;
|
|
9
9
|
option?: import("@esportsplus/template").Attributes;
|
|
10
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
11
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
12
10
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
13
11
|
direction?: string;
|
|
14
12
|
};
|
|
15
|
-
} & (
|
|
13
|
+
} & ({
|
|
16
14
|
selected?: number | string;
|
|
17
15
|
state?: never;
|
|
18
16
|
} | {
|
|
@@ -22,16 +20,16 @@ declare const _default: {
|
|
|
22
20
|
render: boolean;
|
|
23
21
|
selected?: number | string;
|
|
24
22
|
};
|
|
25
|
-
}) & {
|
|
26
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
27
|
-
[key: `data-${string}`]: string | undefined;
|
|
23
|
+
})) & {
|
|
24
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
25
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
28
26
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
29
27
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
30
28
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
31
29
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
32
30
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
33
31
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
34
|
-
}
|
|
32
|
+
} & {
|
|
35
33
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
36
34
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
37
35
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -138,10 +136,7 @@ declare const _default: {
|
|
|
138
136
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
139
137
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
140
138
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
141
|
-
} & Record<PropertyKey, unknown>
|
|
142
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
143
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
144
|
-
}) | undefined;
|
|
139
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
145
140
|
content?: ((state: {
|
|
146
141
|
active: boolean;
|
|
147
142
|
selected?: string | number;
|
|
@@ -153,12 +148,10 @@ declare const _default: {
|
|
|
153
148
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
154
149
|
}>;
|
|
155
150
|
option?: import("@esportsplus/template").Attributes;
|
|
156
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
157
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
158
151
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
159
152
|
direction?: string;
|
|
160
153
|
};
|
|
161
|
-
} & (
|
|
154
|
+
} & ({
|
|
162
155
|
selected?: number | string;
|
|
163
156
|
state?: never;
|
|
164
157
|
} | {
|
|
@@ -168,16 +161,16 @@ declare const _default: {
|
|
|
168
161
|
render: boolean;
|
|
169
162
|
selected?: number | string;
|
|
170
163
|
};
|
|
171
|
-
}) & {
|
|
172
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
173
|
-
[key: `data-${string}`]: string | undefined;
|
|
164
|
+
})) & {
|
|
165
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
166
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
174
167
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
175
168
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
176
169
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
177
170
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
178
171
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
179
172
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
180
|
-
}
|
|
173
|
+
} & {
|
|
181
174
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
182
175
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
183
176
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -284,10 +277,7 @@ declare const _default: {
|
|
|
284
277
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
285
278
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
286
279
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
287
|
-
} & Record<PropertyKey, unknown
|
|
288
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
289
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
290
|
-
}>, content: (state: {
|
|
280
|
+
} & Record<PropertyKey, unknown>>, content: (state: {
|
|
291
281
|
active: boolean;
|
|
292
282
|
selected?: string | number;
|
|
293
283
|
}) => import("@esportsplus/template").Renderable<unknown>) => import("@esportsplus/template").Renderable<any>>;
|
|
@@ -298,12 +288,10 @@ declare const _default: {
|
|
|
298
288
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
299
289
|
}>;
|
|
300
290
|
option?: import("@esportsplus/template").Attributes;
|
|
301
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
302
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
303
291
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
304
292
|
direction?: string;
|
|
305
293
|
};
|
|
306
|
-
} & (
|
|
294
|
+
} & ({
|
|
307
295
|
selected?: number | string;
|
|
308
296
|
state?: never;
|
|
309
297
|
} | {
|
|
@@ -313,16 +301,16 @@ declare const _default: {
|
|
|
313
301
|
render: boolean;
|
|
314
302
|
selected?: number | string;
|
|
315
303
|
};
|
|
316
|
-
}) & {
|
|
317
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
318
|
-
[key: `data-${string}`]: string | undefined;
|
|
304
|
+
})) & {
|
|
305
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
306
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
319
307
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
320
308
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
321
309
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
322
310
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
323
311
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
324
312
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
325
|
-
}
|
|
313
|
+
} & {
|
|
326
314
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
327
315
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
328
316
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -429,10 +417,7 @@ declare const _default: {
|
|
|
429
417
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
430
418
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
431
419
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
432
|
-
} & Record<PropertyKey, unknown
|
|
433
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
434
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
435
|
-
}>(attributes: T): ReturnType<(this: {
|
|
420
|
+
} & Record<PropertyKey, unknown>>(attributes: T): ReturnType<(this: {
|
|
436
421
|
attributes?: (({
|
|
437
422
|
arrow?: import("@esportsplus/template").Attributes;
|
|
438
423
|
options: Record<number | string, import("@esportsplus/template").Renderable<unknown> | {
|
|
@@ -440,12 +425,10 @@ declare const _default: {
|
|
|
440
425
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
441
426
|
}>;
|
|
442
427
|
option?: import("@esportsplus/template").Attributes;
|
|
443
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
444
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
445
428
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
446
429
|
direction?: string;
|
|
447
430
|
};
|
|
448
|
-
} & (
|
|
431
|
+
} & ({
|
|
449
432
|
selected?: number | string;
|
|
450
433
|
state?: never;
|
|
451
434
|
} | {
|
|
@@ -455,16 +438,16 @@ declare const _default: {
|
|
|
455
438
|
render: boolean;
|
|
456
439
|
selected?: number | string;
|
|
457
440
|
};
|
|
458
|
-
}) & {
|
|
459
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
460
|
-
[key: `data-${string}`]: string | undefined;
|
|
441
|
+
})) & {
|
|
442
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
443
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
461
444
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
462
445
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
463
446
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
464
447
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
465
448
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
466
449
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
467
|
-
}
|
|
450
|
+
} & {
|
|
468
451
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
469
452
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
470
453
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -571,10 +554,7 @@ declare const _default: {
|
|
|
571
554
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
572
555
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
573
556
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
574
|
-
} & Record<PropertyKey, unknown>
|
|
575
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
576
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
577
|
-
}) | undefined;
|
|
557
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
578
558
|
content?: ((state: {
|
|
579
559
|
active: boolean;
|
|
580
560
|
selected?: string | number;
|
|
@@ -586,12 +566,10 @@ declare const _default: {
|
|
|
586
566
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
587
567
|
}>;
|
|
588
568
|
option?: import("@esportsplus/template").Attributes;
|
|
589
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
590
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
591
569
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
592
570
|
direction?: string;
|
|
593
571
|
};
|
|
594
|
-
} & (
|
|
572
|
+
} & ({
|
|
595
573
|
selected?: number | string;
|
|
596
574
|
state?: never;
|
|
597
575
|
} | {
|
|
@@ -601,16 +579,16 @@ declare const _default: {
|
|
|
601
579
|
render: boolean;
|
|
602
580
|
selected?: number | string;
|
|
603
581
|
};
|
|
604
|
-
}) & {
|
|
605
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
606
|
-
[key: `data-${string}`]: string | undefined;
|
|
582
|
+
})) & {
|
|
583
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
584
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
607
585
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
608
586
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
609
587
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
610
588
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
611
589
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
612
590
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
613
|
-
}
|
|
591
|
+
} & {
|
|
614
592
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
615
593
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
616
594
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -717,10 +695,7 @@ declare const _default: {
|
|
|
717
695
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
718
696
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
719
697
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
720
|
-
} & Record<PropertyKey, unknown
|
|
721
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
722
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
723
|
-
}>, content: (state: {
|
|
698
|
+
} & Record<PropertyKey, unknown>>, content: (state: {
|
|
724
699
|
active: boolean;
|
|
725
700
|
selected?: string | number;
|
|
726
701
|
}) => import("@esportsplus/template").Renderable<unknown>) => import("@esportsplus/template").Renderable<any>>;
|
|
@@ -735,12 +710,10 @@ declare const _default: {
|
|
|
735
710
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
736
711
|
}>;
|
|
737
712
|
option?: import("@esportsplus/template").Attributes;
|
|
738
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
739
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
740
713
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
741
714
|
direction?: string;
|
|
742
715
|
};
|
|
743
|
-
} & (
|
|
716
|
+
} & ({
|
|
744
717
|
selected?: number | string;
|
|
745
718
|
state?: never;
|
|
746
719
|
} | {
|
|
@@ -750,16 +723,16 @@ declare const _default: {
|
|
|
750
723
|
render: boolean;
|
|
751
724
|
selected?: number | string;
|
|
752
725
|
};
|
|
753
|
-
}) & {
|
|
754
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
755
|
-
[key: `data-${string}`]: string | undefined;
|
|
726
|
+
})) & {
|
|
727
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
728
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
756
729
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
757
730
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
758
731
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
759
732
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
760
733
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
761
734
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
762
|
-
}
|
|
735
|
+
} & {
|
|
763
736
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
764
737
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
765
738
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -866,10 +839,7 @@ declare const _default: {
|
|
|
866
839
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
867
840
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
868
841
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
869
|
-
} & Record<PropertyKey, unknown>
|
|
870
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
871
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
872
|
-
}) | undefined;
|
|
842
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
873
843
|
content?: ((state: {
|
|
874
844
|
active: boolean;
|
|
875
845
|
selected?: string | number;
|
|
@@ -881,12 +851,10 @@ declare const _default: {
|
|
|
881
851
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
882
852
|
}>;
|
|
883
853
|
option?: import("@esportsplus/template").Attributes;
|
|
884
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
885
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
886
854
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
887
855
|
direction?: string;
|
|
888
856
|
};
|
|
889
|
-
} & (
|
|
857
|
+
} & ({
|
|
890
858
|
selected?: number | string;
|
|
891
859
|
state?: never;
|
|
892
860
|
} | {
|
|
@@ -896,16 +864,16 @@ declare const _default: {
|
|
|
896
864
|
render: boolean;
|
|
897
865
|
selected?: number | string;
|
|
898
866
|
};
|
|
899
|
-
}) & {
|
|
900
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
901
|
-
[key: `data-${string}`]: string | undefined;
|
|
867
|
+
})) & {
|
|
868
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
869
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
902
870
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
903
871
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
904
872
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
905
873
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
906
874
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
907
875
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
908
|
-
}
|
|
876
|
+
} & {
|
|
909
877
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
910
878
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
911
879
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -1012,10 +980,7 @@ declare const _default: {
|
|
|
1012
980
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1013
981
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1014
982
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
1015
|
-
} & Record<PropertyKey, unknown
|
|
1016
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1017
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1018
|
-
}>, content: (state: {
|
|
983
|
+
} & Record<PropertyKey, unknown>>, content: (state: {
|
|
1019
984
|
active: boolean;
|
|
1020
985
|
selected?: string | number;
|
|
1021
986
|
}) => import("@esportsplus/template").Renderable<unknown>) => import("@esportsplus/template").Renderable<any>>;
|
|
@@ -1026,12 +991,10 @@ declare const _default: {
|
|
|
1026
991
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
1027
992
|
}>;
|
|
1028
993
|
option?: import("@esportsplus/template").Attributes;
|
|
1029
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1030
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1031
994
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
1032
995
|
direction?: string;
|
|
1033
996
|
};
|
|
1034
|
-
} & (
|
|
997
|
+
} & ({
|
|
1035
998
|
selected?: number | string;
|
|
1036
999
|
state?: never;
|
|
1037
1000
|
} | {
|
|
@@ -1041,16 +1004,16 @@ declare const _default: {
|
|
|
1041
1004
|
render: boolean;
|
|
1042
1005
|
selected?: number | string;
|
|
1043
1006
|
};
|
|
1044
|
-
}) & {
|
|
1045
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1046
|
-
[key: `data-${string}`]: string | undefined;
|
|
1007
|
+
})) & {
|
|
1008
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1009
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1047
1010
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1048
1011
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1049
1012
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1050
1013
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1051
1014
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1052
1015
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1053
|
-
}
|
|
1016
|
+
} & {
|
|
1054
1017
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
1055
1018
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
1056
1019
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -1157,10 +1120,7 @@ declare const _default: {
|
|
|
1157
1120
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1158
1121
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1159
1122
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
1160
|
-
} & Record<PropertyKey, unknown
|
|
1161
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1162
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1163
|
-
}, content: (state: {
|
|
1123
|
+
} & Record<PropertyKey, unknown>, content: (state: {
|
|
1164
1124
|
active: boolean;
|
|
1165
1125
|
selected?: string | number;
|
|
1166
1126
|
}) => import("@esportsplus/template").Renderable<unknown>): ReturnType<(this: {
|
|
@@ -1171,12 +1131,10 @@ declare const _default: {
|
|
|
1171
1131
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
1172
1132
|
}>;
|
|
1173
1133
|
option?: import("@esportsplus/template").Attributes;
|
|
1174
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1175
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1176
1134
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
1177
1135
|
direction?: string;
|
|
1178
1136
|
};
|
|
1179
|
-
} & (
|
|
1137
|
+
} & ({
|
|
1180
1138
|
selected?: number | string;
|
|
1181
1139
|
state?: never;
|
|
1182
1140
|
} | {
|
|
@@ -1186,16 +1144,16 @@ declare const _default: {
|
|
|
1186
1144
|
render: boolean;
|
|
1187
1145
|
selected?: number | string;
|
|
1188
1146
|
};
|
|
1189
|
-
}) & {
|
|
1190
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1191
|
-
[key: `data-${string}`]: string | undefined;
|
|
1147
|
+
})) & {
|
|
1148
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1149
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1192
1150
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1193
1151
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1194
1152
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1195
1153
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1196
1154
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1197
1155
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1198
|
-
}
|
|
1156
|
+
} & {
|
|
1199
1157
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
1200
1158
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
1201
1159
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -1302,10 +1260,7 @@ declare const _default: {
|
|
|
1302
1260
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1303
1261
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1304
1262
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
1305
|
-
} & Record<PropertyKey, unknown>
|
|
1306
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1307
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1308
|
-
}) | undefined;
|
|
1263
|
+
} & Record<PropertyKey, unknown>) | undefined;
|
|
1309
1264
|
content?: ((state: {
|
|
1310
1265
|
active: boolean;
|
|
1311
1266
|
selected?: string | number;
|
|
@@ -1317,12 +1272,10 @@ declare const _default: {
|
|
|
1317
1272
|
selected: import("@esportsplus/template").Renderable<unknown>;
|
|
1318
1273
|
}>;
|
|
1319
1274
|
option?: import("@esportsplus/template").Attributes;
|
|
1320
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1321
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1322
1275
|
'tooltip-content'?: import("@esportsplus/template").Attributes & {
|
|
1323
1276
|
direction?: string;
|
|
1324
1277
|
};
|
|
1325
|
-
} & (
|
|
1278
|
+
} & ({
|
|
1326
1279
|
selected?: number | string;
|
|
1327
1280
|
state?: never;
|
|
1328
1281
|
} | {
|
|
@@ -1332,16 +1285,16 @@ declare const _default: {
|
|
|
1332
1285
|
render: boolean;
|
|
1333
1286
|
selected?: number | string;
|
|
1334
1287
|
};
|
|
1335
|
-
}) & {
|
|
1336
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
1337
|
-
[key: `data-${string}`]: string | undefined;
|
|
1288
|
+
})) & {
|
|
1289
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1290
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
1338
1291
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1339
1292
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1340
1293
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1341
1294
|
onrender?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1342
1295
|
ontick?: ((dispose: VoidFunction, element: import("@esportsplus/template").Element) => void) | undefined;
|
|
1343
1296
|
style?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
1344
|
-
}
|
|
1297
|
+
} & {
|
|
1345
1298
|
onabort?: ((this: import("@esportsplus/template").Element, event: UIEvent) => void) | undefined;
|
|
1346
1299
|
onanimationcancel?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
1347
1300
|
onanimationend?: ((this: import("@esportsplus/template").Element, event: AnimationEvent) => void) | undefined;
|
|
@@ -1448,10 +1401,7 @@ declare const _default: {
|
|
|
1448
1401
|
onwebkitanimationstart?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1449
1402
|
onwebkittransitionend?: ((this: import("@esportsplus/template").Element, event: Event) => void) | undefined;
|
|
1450
1403
|
onwheel?: ((this: import("@esportsplus/template").Element, event: WheelEvent) => void) | undefined;
|
|
1451
|
-
} & Record<PropertyKey, unknown
|
|
1452
|
-
scrollbar?: import("@esportsplus/template").Attributes;
|
|
1453
|
-
'scrollbar-container-content'?: import("@esportsplus/template").Attributes;
|
|
1454
|
-
}>, content: (state: {
|
|
1404
|
+
} & Record<PropertyKey, unknown>>, content: (state: {
|
|
1455
1405
|
active: boolean;
|
|
1456
1406
|
selected?: string | number;
|
|
1457
1407
|
}) => import("@esportsplus/template").Renderable<unknown>) => import("@esportsplus/template").Renderable<any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const _default: (attributes: {
|
|
2
|
-
[key: `aria-${string}`]: string | number | boolean | undefined;
|
|
3
|
-
[key: `data-${string}`]: string | undefined;
|
|
2
|
+
[key: `aria-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
3
|
+
[key: `data-${string}`]: ((element: import("@esportsplus/template").Element) => string | number | bigint | boolean | null | undefined) | (string | number | bigint | boolean | null | undefined);
|
|
4
4
|
class?: import("@esportsplus/template").Attribute | import("@esportsplus/template").Attribute[];
|
|
5
5
|
onconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
|
6
6
|
ondisconnect?: ((element: import("@esportsplus/template").Element) => void) | undefined;
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "ICJR",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@esportsplus/action": "^0.1.
|
|
5
|
-
"@esportsplus/queue": "^0.4.
|
|
6
|
-
"@esportsplus/reactivity": "^0.36.
|
|
7
|
-
"@esportsplus/template": "^0.
|
|
8
|
-
"@esportsplus/utilities": "^0.28.
|
|
9
|
-
"@esportsplus/vite": "^0.14.2",
|
|
4
|
+
"@esportsplus/action": "^0.1.8",
|
|
5
|
+
"@esportsplus/queue": "^0.4.6",
|
|
6
|
+
"@esportsplus/reactivity": "^0.36.7",
|
|
7
|
+
"@esportsplus/template": "^0.46.4",
|
|
8
|
+
"@esportsplus/utilities": "^0.28.4",
|
|
10
9
|
"modern-normalize": "^3.0.1"
|
|
11
10
|
},
|
|
12
11
|
"devDependencies": {
|
|
13
|
-
"@esportsplus/typescript": "^0.34.
|
|
14
|
-
"@types/node": "^
|
|
12
|
+
"@esportsplus/typescript": "^0.34.4",
|
|
13
|
+
"@types/node": "^26.6.1",
|
|
15
14
|
"@types/shelljs": "^0.10.0",
|
|
16
|
-
"autoprefixer": "^10.
|
|
17
|
-
"glob": "^13.0.
|
|
18
|
-
"lightningcss": "^1.
|
|
15
|
+
"autoprefixer": "^10.6.1",
|
|
16
|
+
"glob": "^13.0.6",
|
|
17
|
+
"lightningcss": "^1.33.0",
|
|
19
18
|
"npm-run-all": "^4.1.5",
|
|
20
|
-
"sass": "^1.
|
|
19
|
+
"sass": "^1.104.1",
|
|
21
20
|
"shelljs": "^0.10.0",
|
|
22
|
-
"vite": "^
|
|
21
|
+
"vite": "^8.3.0"
|
|
23
22
|
},
|
|
24
23
|
"exports": {
|
|
25
24
|
"./css-utilities.scss": "./build/css-utilities/index.scss",
|
|
@@ -59,11 +58,12 @@
|
|
|
59
58
|
},
|
|
60
59
|
"sideEffects": false,
|
|
61
60
|
"type": "module",
|
|
62
|
-
"version": "0.
|
|
61
|
+
"version": "0.53.0",
|
|
63
62
|
"scripts": {
|
|
64
63
|
"build": "run-s build:vite build:ts",
|
|
65
64
|
"build:ts": "tsc",
|
|
66
65
|
"build:vite": "vite build",
|
|
67
|
-
"-": "-"
|
|
66
|
+
"-": "-",
|
|
67
|
+
"dev": "pnpm --dir docs dev"
|
|
68
68
|
}
|
|
69
69
|
}
|
package/pnpm-workspace.yaml
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
packages:
|
|
2
|
+
- docs
|
|
3
|
+
|
|
1
4
|
# Approve the dependency build scripts vite/vitest rely on; pnpm errors on
|
|
2
5
|
# unapproved build scripts otherwise (ERR_PNPM_IGNORED_BUILDS).
|
|
3
6
|
allowBuilds:
|
|
@@ -8,14 +11,13 @@ allowBuilds:
|
|
|
8
11
|
# first-party upgrades (reactivity, template, ...) be consumed immediately
|
|
9
12
|
# instead of waiting out the release-age cutoff.
|
|
10
13
|
minimumReleaseAgeExclude:
|
|
11
|
-
- '@esportsplus/typescript@0.34.2'
|
|
12
|
-
- '@esportsplus/action@0.1.7'
|
|
13
|
-
- '@esportsplus/queue@0.4.5'
|
|
14
|
-
- '@esportsplus/reactivity@0.36.4'
|
|
15
|
-
- '@esportsplus/template@0.44.4'
|
|
16
|
-
- '@esportsplus/utilities@0.28.3'
|
|
17
|
-
- '@esportsplus/vite@0.14.2'
|
|
18
|
-
- '@esportsplus/typescript@0.34.1'
|
|
14
|
+
- '@esportsplus/typescript@0.34.1 || 0.34.2 || 0.34.3 || 0.34.4'
|
|
15
|
+
- '@esportsplus/action@0.1.7 || 0.1.8'
|
|
16
|
+
- '@esportsplus/queue@0.4.5 || 0.4.6'
|
|
17
|
+
- '@esportsplus/reactivity@0.36.4 || 0.36.6 || 0.36.7'
|
|
18
|
+
- '@esportsplus/template@0.44.4 || 0.44.6 || 0.45.0 || 0.45.1 || 0.45.3 || 0.46.1 || 0.46.2 || 0.46.3 || 0.46.4'
|
|
19
|
+
- '@esportsplus/utilities@0.28.3 || 0.28.4'
|
|
20
|
+
- '@esportsplus/vite@0.14.2 || 0.14.5 || 0.14.6'
|
|
19
21
|
- '@esportsplus/*'
|
|
20
22
|
# browserslist's data packages (pulled transitively via autoprefixer) republish daily, so a
|
|
21
23
|
# fresh lockfile always pins a <24h version. They are data-only build-time deps, so exempt them
|
|
@@ -23,3 +25,4 @@ minimumReleaseAgeExclude:
|
|
|
23
25
|
- baseline-browser-mapping
|
|
24
26
|
- caniuse-lite
|
|
25
27
|
- electron-to-chromium
|
|
28
|
+
- '@types/node@26.6.2'
|
|
@@ -1,50 +1,27 @@
|
|
|
1
|
-
import { html, Attributes } from '@esportsplus/template';
|
|
2
|
-
import { reactive } from '@esportsplus/reactivity';
|
|
1
|
+
import { html, Attributes, component } from '@esportsplus/template';
|
|
3
2
|
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '~/components/template';
|
|
5
3
|
import './scss/index.scss';
|
|
6
4
|
|
|
7
5
|
|
|
8
|
-
type A = Attributes & { state
|
|
9
|
-
|
|
10
|
-
type Accordion = HTMLElement & { [key: symbol]: { active: boolean | number } };
|
|
6
|
+
type A = Attributes & { state: { active: boolean | number } };
|
|
11
7
|
|
|
12
8
|
|
|
13
9
|
const OMIT = ['state'];
|
|
14
10
|
|
|
15
11
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
export default template.factory(
|
|
12
|
+
export default component<A>(
|
|
20
13
|
function(attributes: A, content) {
|
|
21
|
-
let
|
|
22
|
-
state = attributes.state || reactive({
|
|
23
|
-
active: 0
|
|
24
|
-
});
|
|
14
|
+
let state = attributes.state;
|
|
25
15
|
|
|
26
16
|
return html`
|
|
27
17
|
<div
|
|
18
|
+
class='accordion'
|
|
28
19
|
${omit(attributes, OMIT)}
|
|
29
20
|
${{
|
|
30
|
-
|
|
31
|
-
return state.active && '--active';
|
|
32
|
-
},
|
|
33
|
-
onrender: (element) => {
|
|
34
|
-
( ref = element as Accordion )[key] = state;
|
|
35
|
-
},
|
|
36
|
-
style: () => {
|
|
37
|
-
let parent = ref.closest<Accordion>('accordion');
|
|
38
|
-
|
|
39
|
-
if (parent && key in parent) {
|
|
40
|
-
parent[key].active = (+parent[key].active) + 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return state.active && `--max-height: ${ref.scrollHeight}`;
|
|
44
|
-
}
|
|
21
|
+
inert: () => !state.active
|
|
45
22
|
}}
|
|
46
23
|
>
|
|
47
|
-
|
|
24
|
+
<div class='accordion-content'>${content}</div>
|
|
48
25
|
</div>
|
|
49
26
|
`;
|
|
50
27
|
}
|