@esportsplus/ui 0.53.0 → 0.54.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 +51 -6
- package/build/components/accordion/index.d.ts +2 -19
- package/build/components/accordion/index.js +7 -7
- package/build/components/anchor/scss/index.scss +1 -1
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/checkbox/index.d.ts +12 -12
- package/build/components/checkbox/index.js +64 -36
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/checkbox/svg/check.svg +1 -0
- package/build/components/clipboard/copy.d.ts +11 -0
- package/build/components/clipboard/copy.js +49 -0
- package/build/components/clipboard/index.d.ts +1435 -1229
- package/build/components/clipboard/index.js +3 -2
- package/build/components/clipboard/onclick.d.ts +4 -38
- package/build/components/clipboard/onclick.js +7 -7
- package/build/components/counter/index.js +58 -66
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/form/action.js +8 -8
- package/build/components/form/index.d.ts +4 -4
- package/build/components/form/input.d.ts +4 -4
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +2 -19
- package/build/components/icon/index.js +6 -6
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/index.d.ts +0 -7
- package/build/components/index.js +0 -7
- package/build/components/input/index.d.ts +1 -1
- package/build/components/input/index.js +11 -11
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/index.js +5 -5
- package/build/components/modal/scss/index.scss +1 -1
- package/build/components/normalize/scss/index.scss +1 -1
- package/build/components/overlay/index.d.ts +2 -19
- package/build/components/overlay/index.js +7 -7
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/radio/index.d.ts +1436 -4
- package/build/components/radio/index.js +0 -1
- package/build/components/range/index.d.ts +1 -1
- package/build/components/range/index.js +13 -13
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +5 -48
- package/build/components/select/index.js +41 -53
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/sidebar/index.d.ts +2 -19
- package/build/components/sidebar/index.js +7 -7
- package/build/components/sidebar/scss/index.scss +1 -1
- package/build/components/switch/index.d.ts +1436 -4
- package/build/components/switch/index.js +0 -1
- package/build/components/tabs/scss/index.scss +2 -0
- package/build/components/text/scss/index.scss +1 -1
- package/build/components/textarea/index.d.ts +719 -6
- package/build/components/textarea/index.js +37 -15
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/toast/index.js +43 -43
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/index.d.ts +2151 -2544
- package/build/components/tooltip/menu.d.ts +2 -18
- package/build/components/tooltip/menu.js +21 -21
- package/build/components/tooltip/onclick.d.ts +717 -1229
- package/build/components/tooltip/onclick.js +16 -52
- package/build/components/tooltip/onhover.d.ts +713 -20
- package/build/components/tooltip/onhover.js +9 -9
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/typewriter/index.d.ts +2 -19
- package/build/components/typewriter/index.js +8 -8
- package/build/css-utilities/background/scss/index.scss +1 -1
- package/build/css-utilities/border/scss/index.scss +1 -1
- package/build/css-utilities/color/scss/index.scss +1 -1
- package/build/css-utilities/font/geist/scss/Geist-Italic-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/Geist-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/GeistMono-Italic-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/GeistMono-Variable.woff2 +0 -0
- package/build/css-utilities/font/geist/scss/index.scss +2 -0
- package/build/css-utilities/font/montserrat/index.d.ts +1 -0
- package/build/css-utilities/font/montserrat/index.js +1 -0
- package/build/css-utilities/font/montserrat/scss/index.scss +2 -0
- package/build/css-utilities/index.scss +1 -1
- package/build/css-utilities/inline/scss/index.scss +1 -1
- package/build/css-utilities/scrollbar/scss/index.scss +1 -1
- package/build/css-utilities/tabular/scss/index.scss +2 -0
- package/build/css-utilities/text/scss/index.scss +1 -1
- package/build/themes/dark/index.d.ts +0 -1
- package/build/themes/dark/index.js +0 -1
- package/build/themes/dark/input.d.ts +708 -114
- package/build/themes/dark/select.d.ts +732 -1406
- package/build/themes/dark/select.js +7 -5
- package/build/themes/dark/textarea.d.ts +716 -119
- package/package.json +12 -12
- package/pnpm-workspace.yaml +4 -3
- package/scripts/css-variables.test.mjs +50 -0
- package/scripts/sort-scss.md +57 -0
- package/scripts/sort-scss.mjs +233 -0
- package/scripts/sort-scss.test.mjs +217 -0
- package/src/components/anchor/scss/index.scss +2 -2
- package/src/components/button/scss/index.scss +23 -57
- package/src/components/button/scss/variables.scss +1 -19
- package/src/components/card/scss/index.scss +11 -46
- package/src/components/card/scss/variables.scss +1 -2
- package/src/components/checkbox/index.ts +27 -31
- package/src/components/checkbox/scss/index.scss +86 -28
- package/src/components/checkbox/scss/variables.scss +71 -30
- package/src/components/checkbox/svg/check.svg +1 -0
- package/src/components/clipboard/copy.ts +60 -0
- package/src/components/clipboard/index.ts +3 -2
- package/src/components/counter/index.ts +57 -57
- package/src/components/counter/scss/index.scss +4 -5
- package/src/components/counter/scss/variables.scss +0 -1
- package/src/components/form/input.ts +4 -3
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/icon/scss/variables.scss +0 -1
- package/src/components/index.ts +1 -8
- package/src/components/input/index.ts +1 -1
- package/src/components/input/scss/index.scss +8 -7
- package/src/components/input/scss/variables.scss +0 -1
- package/src/components/link/scss/index.scss +9 -34
- package/src/components/link/scss/variables.scss +0 -12
- package/src/components/modal/scss/index.scss +4 -4
- package/src/components/normalize/scss/index.scss +0 -1
- package/src/components/page/scss/index.scss +0 -6
- package/src/components/page/scss/variables.scss +0 -2
- package/src/components/radio/index.ts +0 -1
- package/src/components/range/index.ts +1 -1
- package/src/components/range/scss/index.scss +5 -5
- package/src/components/root/scss/index.scss +37 -63
- package/src/components/root/scss/variables.scss +37 -67
- package/src/components/select/index.ts +16 -33
- package/src/components/select/scss/index.scss +10 -7
- package/src/components/select/scss/variables.scss +0 -1
- package/src/components/sidebar/scss/index.scss +3 -3
- package/src/components/switch/index.ts +1 -2
- package/src/components/tabs/scss/index.scss +62 -0
- package/src/components/tabs/scss/variables.scss +4 -0
- package/src/components/text/scss/index.scss +8 -1
- package/src/components/text/scss/variables.scss +5 -3
- package/src/components/textarea/index.ts +38 -5
- package/src/components/textarea/scss/index.scss +24 -13
- package/src/components/textarea/scss/variables.scss +0 -1
- package/src/components/toast/scss/index.scss +1 -1
- package/src/components/tooltip/onclick.ts +11 -67
- package/src/components/tooltip/scss/index.scss +2 -3
- package/src/css-utilities/background/scss/variables.scss +2 -2
- package/src/css-utilities/border/scss/index.scss +1 -27
- package/src/css-utilities/border/scss/variables.scss +3 -34
- package/src/css-utilities/color/scss/variables.scss +2 -6
- package/src/css-utilities/font/geist/scss/Geist-Italic-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/Geist-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/GeistMono-Italic-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/GeistMono-Variable.woff2 +0 -0
- package/src/css-utilities/font/geist/scss/index.scss +55 -0
- package/src/css-utilities/font/montserrat/index.ts +1 -0
- package/src/{fonts → css-utilities/font}/montserrat/scss/index.scss +15 -0
- package/src/css-utilities/index.scss +6 -12
- package/src/css-utilities/inline/scss/index.scss +0 -1
- package/src/css-utilities/scrollbar/scss/index.scss +42 -0
- package/src/css-utilities/tabular/scss/index.scss +3 -0
- package/src/css-utilities/text/scss/index.scss +30 -71
- package/src/lib/scss/css-variables.scss +29 -5
- package/src/themes/dark/index.ts +0 -1
- package/src/themes/dark/select.ts +7 -5
- package/src/tokens/index.scss +1 -3
- package/src/tokens/scss/border-radius.scss +1 -6
- package/src/tokens/scss/color.scss +3 -3
- package/src/tokens/scss/scale.scss +1 -1
- package/src/tokens/scss/size.scss +7 -0
- package/src/tokens/scss/transition.scss +4 -0
- package/storage/svg/arrow-left.svg +1 -0
- package/storage/svg/arrow-right.svg +1 -0
- package/storage/svg/book.svg +1 -0
- package/storage/svg/cube.svg +1 -0
- package/storage/svg/github.svg +1 -0
- package/storage/svg/info.svg +1 -0
- package/storage/svg/palette.svg +1 -0
- package/storage/svg/search.svg +2 -0
- package/storage/svg/type.svg +1 -0
- package/vite.config.ts +8 -3
- package/build/components/back/index.d.ts +0 -21
- package/build/components/back/index.js +0 -16
- package/build/components/back/scss/index.scss +0 -2
- package/build/components/back/svg/arrow.svg +0 -15
- package/build/components/bubble/scss/index.scss +0 -2
- package/build/components/button/index.d.ts +0 -103
- package/build/components/button/index.js +0 -60
- package/build/components/ellipsis/index.d.ts +0 -4
- package/build/components/ellipsis/index.js +0 -8
- package/build/components/ellipsis/scss/index.scss +0 -2
- package/build/components/frame/index.d.ts +0 -21
- package/build/components/frame/index.js +0 -13
- package/build/components/frame/scss/index.scss +0 -2
- package/build/components/highlight/index.d.ts +0 -22
- package/build/components/highlight/index.js +0 -56
- package/build/components/highlight/scss/index.scss +0 -2
- package/build/components/loader/index.d.ts +0 -22
- package/build/components/loader/index.js +0 -78
- package/build/components/loader/scss/index.scss +0 -2
- package/build/components/radio/scss/index.scss +0 -2
- package/build/components/root/index.d.ts +0 -7
- package/build/components/root/index.js +0 -4
- package/build/components/root/onclick.d.ts +0 -5
- package/build/components/root/onclick.js +0 -12
- package/build/components/switch/scss/index.scss +0 -2
- package/build/css-utilities/[margin,padding]/scss/index.scss +0 -2
- package/build/css-utilities/error/scss/index.scss +0 -2
- package/build/css-utilities/flicker/scss/index.scss +0 -2
- package/build/css-utilities/focus/scss/index.scss +0 -2
- package/build/css-utilities/gap/scss/index.scss +0 -2
- package/build/css-utilities/line-height/scss/index.scss +0 -2
- package/build/css-utilities/pointer/scss/index.scss +0 -2
- package/build/css-utilities/scroll-fade/scss/index.scss +0 -2
- package/build/css-utilities/size/scss/index.scss +0 -2
- package/build/css-utilities/viewport/scss/index.scss +0 -2
- package/build/css-utilities/width/scss/index.scss +0 -2
- package/build/fonts/index.d.ts +0 -1
- package/build/fonts/index.js +0 -1
- package/build/fonts/montserrat/scss/index.scss +0 -2
- package/build/themes/dark/back.d.ts +0 -19
- package/build/themes/dark/back.js +0 -7
- package/build/themes/dark/button/scss/index.scss +0 -2
- package/build/themes/dark/link/scss/index.scss +0 -2
- package/src/components/back/index.ts +0 -20
- package/src/components/back/scss/index.scss +0 -17
- package/src/components/back/svg/arrow.svg +0 -15
- package/src/components/bubble/scss/index.scss +0 -32
- package/src/components/bubble/scss/variables.scss +0 -20
- package/src/components/button/index.ts +0 -53
- package/src/components/ellipsis/index.ts +0 -11
- package/src/components/ellipsis/scss/index.scss +0 -30
- package/src/components/ellipsis/scss/variables.scss +0 -5
- package/src/components/frame/index.ts +0 -13
- package/src/components/frame/scss/index.scss +0 -39
- package/src/components/frame/scss/variables.scss +0 -4
- package/src/components/highlight/index.ts +0 -66
- package/src/components/highlight/scss/index.scss +0 -7
- package/src/components/highlight/scss/variables.scss +0 -4
- package/src/components/loader/index.ts +0 -80
- package/src/components/loader/scss/index.scss +0 -71
- package/src/components/loader/scss/variables.scss +0 -6
- package/src/components/radio/scss/index.scss +0 -50
- package/src/components/radio/scss/variables.scss +0 -67
- package/src/components/root/index.ts +0 -6
- package/src/components/root/onclick.ts +0 -20
- package/src/components/switch/scss/index.scss +0 -48
- package/src/components/switch/scss/variables.scss +0 -74
- package/src/css-utilities/[margin,padding]/scss/index.scss +0 -43
- package/src/css-utilities/[margin,padding]/scss/variables.scss +0 -54
- package/src/css-utilities/error/scss/index.scss +0 -24
- package/src/css-utilities/error/scss/variables.scss +0 -3
- package/src/css-utilities/flicker/scss/index.scss +0 -15
- package/src/css-utilities/flicker/scss/variables.scss +0 -5
- package/src/css-utilities/focus/scss/index.scss +0 -7
- package/src/css-utilities/focus/scss/variables.scss +0 -5
- package/src/css-utilities/gap/scss/index.scss +0 -13
- package/src/css-utilities/gap/scss/variables.scss +0 -39
- package/src/css-utilities/line-height/scss/index.scss +0 -1
- package/src/css-utilities/line-height/scss/variables.scss +0 -10
- package/src/css-utilities/pointer/scss/index.scss +0 -5
- package/src/css-utilities/scroll-fade/scss/index.scss +0 -47
- package/src/css-utilities/scroll-fade/scss/variables.scss +0 -3
- package/src/css-utilities/size/scss/index.scss +0 -1
- package/src/css-utilities/size/scss/variables.scss +0 -12
- package/src/css-utilities/text/scss/variables.scss +0 -31
- package/src/css-utilities/viewport/scss/index.scss +0 -5
- package/src/css-utilities/width/scss/index.scss +0 -5
- package/src/css-utilities/width/scss/variables.scss +0 -9
- package/src/fonts/index.ts +0 -1
- package/src/themes/dark/back.ts +0 -9
- package/src/themes/dark/button/scss/index.scss +0 -46
- package/src/themes/dark/link/scss/index.scss +0 -26
- package/src/tokens/scss/font-weight.scss +0 -6
- package/src/tokens/scss/line-height.scss +0 -9
- package/src/tokens/scss/transition-duration.scss +0 -1
- /package/build/{fonts/montserrat → css-utilities/font/geist}/index.d.ts +0 -0
- /package/build/{fonts/montserrat → css-utilities/font/geist}/index.js +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- /package/build/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
- /package/src/{fonts/montserrat → css-utilities/font/geist}/index.ts +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Bold.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-BoldItalic.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Italic.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Medium.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-MediumItalic.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-Regular.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBold.woff2 +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff +0 -0
- /package/src/{fonts → css-utilities/font}/montserrat/scss/Montserrat-SemiBoldItalic.woff2 +0 -0
|
@@ -1,44 +1,10 @@
|
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
1
2
|
import { type Attributes, type Renderable } from '@esportsplus/template';
|
|
2
3
|
type A = {
|
|
3
4
|
timeout?: number;
|
|
4
5
|
value: string;
|
|
5
6
|
} & Attributes;
|
|
6
|
-
declare const _default: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
content?: ((state: {
|
|
10
|
-
copied: boolean;
|
|
11
|
-
}) => Renderable<unknown>) | undefined;
|
|
12
|
-
}, attributes: Readonly<A>, content: (state: {
|
|
13
|
-
copied: boolean;
|
|
14
|
-
}) => Renderable<unknown>) => Renderable<any>>;
|
|
15
|
-
<T extends A>(attributes: T): ReturnType<(this: {
|
|
16
|
-
attributes?: A | undefined;
|
|
17
|
-
content?: ((state: {
|
|
18
|
-
copied: boolean;
|
|
19
|
-
}) => Renderable<unknown>) | undefined;
|
|
20
|
-
}, attributes: Readonly<A>, content: (state: {
|
|
21
|
-
copied: boolean;
|
|
22
|
-
}) => Renderable<unknown>) => Renderable<any>>;
|
|
23
|
-
<T extends (state: {
|
|
24
|
-
copied: boolean;
|
|
25
|
-
}) => Renderable<unknown>>(content: T): ReturnType<(this: {
|
|
26
|
-
attributes?: A | undefined;
|
|
27
|
-
content?: ((state: {
|
|
28
|
-
copied: boolean;
|
|
29
|
-
}) => Renderable<unknown>) | undefined;
|
|
30
|
-
}, attributes: Readonly<A>, content: (state: {
|
|
31
|
-
copied: boolean;
|
|
32
|
-
}) => Renderable<unknown>) => Renderable<any>>;
|
|
33
|
-
(attributes: A, content: (state: {
|
|
34
|
-
copied: boolean;
|
|
35
|
-
}) => Renderable<unknown>): ReturnType<(this: {
|
|
36
|
-
attributes?: A | undefined;
|
|
37
|
-
content?: ((state: {
|
|
38
|
-
copied: boolean;
|
|
39
|
-
}) => Renderable<unknown>) | undefined;
|
|
40
|
-
}, attributes: Readonly<A>, content: (state: {
|
|
41
|
-
copied: boolean;
|
|
42
|
-
}) => Renderable<unknown>) => Renderable<any>>;
|
|
43
|
-
};
|
|
7
|
+
declare const _default: template_u0.Factory<A, (state: {
|
|
8
|
+
copied: boolean;
|
|
9
|
+
}) => Renderable<unknown>, Renderable<any>>;
|
|
44
10
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import { component } from '@esportsplus/template';
|
|
3
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
4
|
import { omit } from '@esportsplus/utilities';
|
|
5
5
|
import write from './write.js';
|
|
6
|
-
const
|
|
6
|
+
const template_uo = template_u0.template(`<div >`);
|
|
7
7
|
class ReactiveObject_0g8trzu0 extends reactivity_u0.ReactiveObject {
|
|
8
8
|
#copied = this[reactivity_u0.SIGNAL](false);
|
|
9
9
|
constructor() {
|
|
@@ -20,9 +20,9 @@ const OMIT = ['timeout', 'value'];
|
|
|
20
20
|
export default component(function (attributes, content) {
|
|
21
21
|
let state = new ReactiveObject_0g8trzu0(), timeout = attributes.timeout || 1000 * 2;
|
|
22
22
|
return (() => {
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
let root_un = template_uo(), element_up = root_un.firstChild;
|
|
24
|
+
template_u0.setProperties(element_up, omit(attributes, OMIT));
|
|
25
|
+
template_u0.delegate(element_up, 'click', (e) => {
|
|
26
26
|
e.preventDefault();
|
|
27
27
|
e.stopPropagation();
|
|
28
28
|
void write(attributes.value).then(() => {
|
|
@@ -32,7 +32,7 @@ export default component(function (attributes, content) {
|
|
|
32
32
|
}, timeout);
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
|
-
new
|
|
36
|
-
return
|
|
35
|
+
new template_u0.EffectSlot(element_up, () => content(state), 1);
|
|
36
|
+
return root_un;
|
|
37
37
|
})();
|
|
38
38
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
-
import { effect } from '@esportsplus/reactivity';
|
|
3
|
+
import { effect, onCleanup, untrack } from '@esportsplus/reactivity';
|
|
4
4
|
import { omit } from '@esportsplus/utilities';
|
|
5
5
|
import './scss/index.scss';
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
6
|
+
const template_ur = template_u0.template(`<span class='counter-character counter-character--symbol'>`);
|
|
7
|
+
const template_uu = template_u0.template(`<span>`);
|
|
8
|
+
const template_ux = template_u0.template(`<div class='counter-character'><div class='counter-character-track' ><span>9</span><!--$--><span>0`);
|
|
9
|
+
const template_u11 = template_u0.template(`<div class='counter' >`);
|
|
10
10
|
class ReactiveObject_00nd5up0 extends reactivity_u0.ReactiveObject {
|
|
11
11
|
#value = this[reactivity_u0.SIGNAL](-1);
|
|
12
12
|
constructor() {
|
|
@@ -20,25 +20,15 @@ class ReactiveObject_00nd5up0 extends reactivity_u0.ReactiveObject {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
class ReactiveObject_00nd5up1 extends reactivity_u0.ReactiveObject {
|
|
23
|
-
#
|
|
24
|
-
|
|
25
|
-
#render;
|
|
26
|
-
constructor(_p0, _p1) {
|
|
23
|
+
#started = this[reactivity_u0.SIGNAL](false);
|
|
24
|
+
constructor() {
|
|
27
25
|
super(null);
|
|
28
|
-
this.#test = this[reactivity_u0.COMPUTED](_p0);
|
|
29
|
-
this.#render = this[reactivity_u0.REACTIVE_ARRAY](_p1);
|
|
30
|
-
}
|
|
31
|
-
get length() {
|
|
32
|
-
return reactivity_u0.read(this.#length);
|
|
33
26
|
}
|
|
34
|
-
|
|
35
|
-
reactivity_u0.
|
|
27
|
+
get started() {
|
|
28
|
+
return reactivity_u0.read(this.#started);
|
|
36
29
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
get render() {
|
|
41
|
-
return this.#render;
|
|
30
|
+
set started(_v0) {
|
|
31
|
+
reactivity_u0.write(this.#started, _v0);
|
|
42
32
|
}
|
|
43
33
|
}
|
|
44
34
|
const OMIT = ['currency', 'decimals', 'delay', 'max', 'state', 'suffix', 'value'];
|
|
@@ -49,13 +39,11 @@ export default (attributes) => {
|
|
|
49
39
|
: formatters[currency || 'USD'] ??= new Intl.NumberFormat('en-US', {
|
|
50
40
|
style: 'currency',
|
|
51
41
|
currency: currency || 'USD'
|
|
52
|
-
}),
|
|
42
|
+
}), animation = new ReactiveObject_00nd5up1(), render = new reactivity_u0.ReactiveArray();
|
|
53
43
|
decimals ??= 2;
|
|
54
|
-
effect(() => {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
let padding = (max || value).toFixed(decimals).length - value.toFixed(decimals).length, values = value.toString().padStart(value.toString().length + padding, '1');
|
|
44
|
+
let stop = effect(() => {
|
|
45
|
+
let target = api.value === -1 ? value : api.value, started = animation.started;
|
|
46
|
+
let padding = (max || target).toFixed(decimals).length - target.toFixed(decimals).length, values = target.toString().padStart(target.toString().length + padding, '1');
|
|
59
47
|
if (formatter) {
|
|
60
48
|
values = formatter.format(values);
|
|
61
49
|
}
|
|
@@ -69,48 +57,52 @@ export default (attributes) => {
|
|
|
69
57
|
if (suffix) {
|
|
70
58
|
values.push(' ', ...suffix.split(''));
|
|
71
59
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
60
|
+
untrack(() => {
|
|
61
|
+
for (let i = 0, n = values.length; i < n; i++) {
|
|
62
|
+
let value = values[i], digit = !isNaN(parseInt(value, 10));
|
|
63
|
+
if (digit && (!started || padding > 0)) {
|
|
64
|
+
padding--;
|
|
65
|
+
value = '0';
|
|
66
|
+
}
|
|
67
|
+
if (render[i]?.digit === digit) {
|
|
68
|
+
render[i].value = value;
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
let character = reactivity_u0.reactive({ digit, value });
|
|
72
|
+
render.$set(i, character);
|
|
73
|
+
}
|
|
78
74
|
}
|
|
79
|
-
render.$
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
75
|
+
if (render.$length > values.length) {
|
|
76
|
+
render.splice(values.length);
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
}), timer = setTimeout(() => animation.started = true, delay ?? 1000);
|
|
80
|
+
onCleanup(() => {
|
|
81
|
+
clearTimeout(timer);
|
|
82
|
+
stop();
|
|
85
83
|
});
|
|
86
84
|
return (() => {
|
|
87
|
-
let
|
|
88
|
-
|
|
89
|
-
new
|
|
90
|
-
|
|
91
|
-
if (n === 0) {
|
|
92
|
-
return '';
|
|
93
|
-
}
|
|
94
|
-
return new template_u1.ArraySlot(render, function (value) {
|
|
95
|
-
if (isNaN(parseInt(value, 10))) {
|
|
96
|
-
return (() => {
|
|
97
|
-
let root_00nd5up2 = template_00nd5up3(), element_00nd5up4 = root_00nd5up2.firstChild;
|
|
98
|
-
template_u1.slot(element_00nd5up4, value, 1);
|
|
99
|
-
return root_00nd5up2;
|
|
100
|
-
})();
|
|
101
|
-
}
|
|
85
|
+
let root_u10 = template_u11(), element_u12 = root_u10.firstChild;
|
|
86
|
+
template_u0.setProperties(element_u12, omit(attributes, OMIT));
|
|
87
|
+
element_u12.appendChild(new template_u0.ArraySlot(render, function (character) {
|
|
88
|
+
if (!character.digit) {
|
|
102
89
|
return (() => {
|
|
103
|
-
let
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
let root_00nd5up5 = template_00nd5up6(), element_00nd5up7 = root_00nd5up5.firstChild;
|
|
107
|
-
template_u1.slot(element_00nd5up7, value, 1);
|
|
108
|
-
return root_00nd5up5;
|
|
109
|
-
}));
|
|
110
|
-
return root_00nd5up8;
|
|
90
|
+
let root_uq = template_ur(), element_us = root_uq.firstChild;
|
|
91
|
+
new template_u0.EffectSlot(element_us, () => character.value, 1);
|
|
92
|
+
return root_uq;
|
|
111
93
|
})();
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
94
|
+
}
|
|
95
|
+
return (() => {
|
|
96
|
+
let root_uw = template_ux(), element_uy = root_uw.firstChild.firstElementChild, element_uz = element_uy.firstChild.nextSibling;
|
|
97
|
+
template_u0.setList(element_uy, 'style', () => `--value: ${character.value}`);
|
|
98
|
+
template_u0.slot(element_uz, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((value) => {
|
|
99
|
+
let root_ut = template_uu(), element_uv = root_ut.firstChild;
|
|
100
|
+
template_u0.slot(element_uv, value, 1);
|
|
101
|
+
return root_ut;
|
|
102
|
+
}));
|
|
103
|
+
return root_uw;
|
|
104
|
+
})();
|
|
105
|
+
}, true).fragment);
|
|
106
|
+
return root_u10;
|
|
115
107
|
})();
|
|
116
108
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.counter{--font-size:clamp(2rem, 4vw + 1rem, 8rem);--font-weight:var(--font-weight-400);--
|
|
1
|
+
@layer components {.counter{--font-size:clamp(2rem, 4vw + 1rem, 8rem);--font-weight:var(--font-weight-400);--mask-size:.24;--timing-function:var(--timing-bounce-out);--transition-duration:2s}.counter-character{--scale:1}.counter-character--fraction,.counter-character--symbol{--opacity:.8}.counter-character--fraction{--font-weight:var(--font-weight-300);--scale:.75}.counter-character--symbol:first-child{--scale:.8}.counter{transition:transform calc(var(--transition-duration) / 4) var(--transition-duration);transform-style:flat;place-items:center;gap:2px;display:flex}.counter-character,.counter-character-track span{color:#0000;transform-style:flat;background:linear-gradient(#fafafa 50%,#737373) fixed;-webkit-background-clip:text;background-clip:text}.counter-character{font-size:var(--font-size);font-variant:tabular-nums;font-weight:var(--font-weight);height:1lh;-webkit-mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);-webkit-mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);mask:linear-gradient(transparent, white calc(1lh * var(--mask-size)) calc(100% - 1lh * var(--mask-size)), transparent);transform-style:flat;display:grid;overflow:hidden}.counter-character--fraction{font-size:calc(var(--font-size) * var(--scale));font-weight:var(--font-weight-300);opacity:var(--opacity);height:1lh;overflow:visible}.counter-character--fraction .counter-character-track span{flex-direction:column;align-items:end;padding:calc(.2lh - .2em) 0;display:flex}.counter-character--symbol{font-size:calc(var(--font-size) * var(--scale));opacity:var(--opacity);margin-right:.1ch}.counter-character-track{translate:0 calc((var(--value) + 1) * -1lh);transition:translate var(--transition-duration) var(--timing-function);display:grid}.counter-character-track span{transform-style:flat;height:1lh}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import response from '@esportsplus/action';
|
|
2
|
-
import * as
|
|
2
|
+
import * as template_u0 from '@esportsplus/template';
|
|
3
3
|
import { omit } from '@esportsplus/utilities';
|
|
4
4
|
import input from './input.js';
|
|
5
|
-
const
|
|
5
|
+
const template_u14 = template_u0.template(`<form class='form' >`);
|
|
6
6
|
const OMIT = ['action', 'state'];
|
|
7
7
|
function parse(input) {
|
|
8
8
|
let data = {};
|
|
@@ -29,9 +29,9 @@ function parse(input) {
|
|
|
29
29
|
export default (attributes, content) => {
|
|
30
30
|
let { action, state } = attributes;
|
|
31
31
|
return (() => {
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
let root_u13 = template_u14(), element_u15 = root_u13.firstChild;
|
|
33
|
+
template_u0.setProperties(element_u15, omit(attributes, OMIT));
|
|
34
|
+
template_u0.delegate(element_u15, 'click', function (event) {
|
|
35
35
|
let trigger = event.target;
|
|
36
36
|
if (trigger?.type !== 'submit') {
|
|
37
37
|
return;
|
|
@@ -39,7 +39,7 @@ export default (attributes, content) => {
|
|
|
39
39
|
event.preventDefault();
|
|
40
40
|
this.dispatchEvent(new SubmitEvent('submit', { cancelable: true, bubbles: true, submitter: trigger }));
|
|
41
41
|
});
|
|
42
|
-
|
|
42
|
+
template_u0.on(element_u15, 'submit', async function (event) {
|
|
43
43
|
event.preventDefault();
|
|
44
44
|
if (state) {
|
|
45
45
|
state.processing = true;
|
|
@@ -59,7 +59,7 @@ export default (attributes, content) => {
|
|
|
59
59
|
state.processing = false;
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
|
-
|
|
63
|
-
return
|
|
62
|
+
template_u0.slot(element_u15, content, 1);
|
|
63
|
+
return root_u13;
|
|
64
64
|
})();
|
|
65
65
|
};
|
|
@@ -14,12 +14,12 @@ declare const _default: {
|
|
|
14
14
|
};
|
|
15
15
|
} & import("@esportsplus/template").Attributes, content: import("@esportsplus/template").Renderable<any>) => DocumentFragment | Text;
|
|
16
16
|
input: {
|
|
17
|
-
get:
|
|
17
|
+
get: <T extends {
|
|
18
18
|
error: string;
|
|
19
|
-
} | undefined;
|
|
20
|
-
onrender:
|
|
19
|
+
}>(element?: import("@esportsplus/template").Element) => T | undefined;
|
|
20
|
+
onrender: <T extends {
|
|
21
21
|
error: string;
|
|
22
|
-
}) => (element: import("@esportsplus/template").Element) => void;
|
|
22
|
+
}>(reactive: T) => (element: import("@esportsplus/template").Element) => void;
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
export default _default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Element } from '@esportsplus/template';
|
|
2
|
-
declare const get:
|
|
2
|
+
declare const get: <T extends {
|
|
3
3
|
error: string;
|
|
4
|
-
} | undefined;
|
|
5
|
-
declare const onrender:
|
|
4
|
+
}>(element?: Element) => T | undefined;
|
|
5
|
+
declare const onrender: <T extends {
|
|
6
6
|
error: string;
|
|
7
|
-
}) => (element: Element) => void;
|
|
7
|
+
}>(reactive: T) => (element: Element) => void;
|
|
8
8
|
declare const _default: {
|
|
9
9
|
get: typeof get;
|
|
10
10
|
onrender: typeof onrender;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.grid{--gap-horizontal:var(--size-400);--gap-vertical:var(--size-400);--max-width:1fr;--min-width:200px;grid-gap:var(--gap-
|
|
1
|
+
@layer components {.grid{--gap-horizontal:var(--size-400);--gap-vertical:var(--size-400);--max-width:1fr;--min-width:200px;grid-gap:var(--gap-vertical) var(--gap-horizontal);grid-template-columns:repeat(auto-fit, minmax(var(--min-width), var(--max-width)));display:grid;position:relative}.grid .grid-item{width:100%}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
declare const _default:
|
|
4
|
-
(): ReturnType<(this: {
|
|
5
|
-
attributes?: template_u1.Attributes | undefined;
|
|
6
|
-
content?: string | undefined;
|
|
7
|
-
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
8
|
-
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
-
attributes?: template_u1.Attributes | undefined;
|
|
10
|
-
content?: string | undefined;
|
|
11
|
-
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
12
|
-
<T extends string>(content: T): ReturnType<(this: {
|
|
13
|
-
attributes?: template_u1.Attributes | undefined;
|
|
14
|
-
content?: string | undefined;
|
|
15
|
-
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
16
|
-
(attributes: template_u1.Attributes, content: string): ReturnType<(this: {
|
|
17
|
-
attributes?: template_u1.Attributes | undefined;
|
|
18
|
-
content?: string | undefined;
|
|
19
|
-
}, attributes: Readonly<template_u1.Attributes>, content: string) => template_u1.Renderable<any>>;
|
|
20
|
-
};
|
|
3
|
+
declare const _default: template_u0.Factory<template_u0.Attributes, string, template_u0.Renderable<any>>;
|
|
21
4
|
export default _default;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import { component } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
|
-
const
|
|
4
|
+
const template_u17 = template_u0.template(`<div class='icon' ><svg><use />`);
|
|
5
5
|
export default component((attributes, href) => {
|
|
6
6
|
if (href[0] !== '#') {
|
|
7
7
|
href = '#' + href;
|
|
8
8
|
}
|
|
9
9
|
return (() => {
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
10
|
+
let root_u16 = template_u17(), element_u18 = root_u16.firstChild, element_u19 = element_u18.firstElementChild.firstElementChild;
|
|
11
|
+
template_u0.setProperties(element_u18, attributes);
|
|
12
|
+
template_u0.setProperty(element_u19, 'href', href);
|
|
13
|
+
return root_u16;
|
|
14
14
|
})();
|
|
15
15
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.icon{--color:inherit;--height:var(--size);--
|
|
1
|
+
@layer components {.icon{--color:inherit;--height:var(--size);--size:var(--size-400);--width:var(--size);color:var(--color);flex:0 0 var(--width);height:var(--height);width:var(--width);display:flex;position:relative}.icon svg{color:currentColor;fill:currentColor;width:100%;height:100%}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
export { default as accordion } from './accordion/index.js';
|
|
2
|
-
export { default as back } from './back/index.js';
|
|
3
|
-
export { default as button } from './button/index.js';
|
|
4
2
|
export { default as checkbox } from './checkbox/index.js';
|
|
5
3
|
export { default as clipboard } from './clipboard/index.js';
|
|
6
4
|
export { default as counter } from './counter/index.js';
|
|
7
|
-
export { default as ellipsis } from './ellipsis/index.js';
|
|
8
5
|
export { default as form } from './form/index.js';
|
|
9
|
-
export { default as frame } from './frame/index.js';
|
|
10
|
-
export { default as highlight } from './highlight/index.js';
|
|
11
6
|
export { default as icon } from './icon/index.js';
|
|
12
7
|
export { default as input } from './input/index.js';
|
|
13
8
|
export { default as json } from './json/index.js';
|
|
14
|
-
export { default as loader } from './loader/index.js';
|
|
15
9
|
export { default as loading } from './loading/index.js';
|
|
16
10
|
export { default as number } from './number/index.js';
|
|
17
11
|
export { default as overlay } from './overlay/index.js';
|
|
18
12
|
export { default as radio } from './radio/index.js';
|
|
19
13
|
export { default as range } from './range/index.js';
|
|
20
|
-
export { default as root } from './root/index.js';
|
|
21
14
|
export { default as select } from './select/index.js';
|
|
22
15
|
export { default as switch } from './switch/index.js';
|
|
23
16
|
export { default as sidebar } from './sidebar/index.js';
|
|
@@ -1,23 +1,16 @@
|
|
|
1
1
|
export { default as accordion } from './accordion/index.js';
|
|
2
|
-
export { default as back } from './back/index.js';
|
|
3
|
-
export { default as button } from './button/index.js';
|
|
4
2
|
export { default as checkbox } from './checkbox/index.js';
|
|
5
3
|
export { default as clipboard } from './clipboard/index.js';
|
|
6
4
|
export { default as counter } from './counter/index.js';
|
|
7
|
-
export { default as ellipsis } from './ellipsis/index.js';
|
|
8
5
|
export { default as form } from './form/index.js';
|
|
9
|
-
export { default as frame } from './frame/index.js';
|
|
10
|
-
export { default as highlight } from './highlight/index.js';
|
|
11
6
|
export { default as icon } from './icon/index.js';
|
|
12
7
|
export { default as input } from './input/index.js';
|
|
13
8
|
export { default as json } from './json/index.js';
|
|
14
|
-
export { default as loader } from './loader/index.js';
|
|
15
9
|
export { default as loading } from './loading/index.js';
|
|
16
10
|
export { default as number } from './number/index.js';
|
|
17
11
|
export { default as overlay } from './overlay/index.js';
|
|
18
12
|
export { default as radio } from './radio/index.js';
|
|
19
13
|
export { default as range } from './range/index.js';
|
|
20
|
-
export { default as root } from './root/index.js';
|
|
21
14
|
export { default as select } from './select/index.js';
|
|
22
15
|
export { default as switch } from './switch/index.js';
|
|
23
16
|
export { default as sidebar } from './sidebar/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
3
|
import form from '../form/index.js';
|
|
4
4
|
import './scss/index.scss';
|
|
5
|
-
const
|
|
5
|
+
const template_u1b = template_u0.template(`<input class='input' />`);
|
|
6
6
|
class ReactiveObject_0j57g2t0 extends reactivity_u0.ReactiveObject {
|
|
7
7
|
#active = this[reactivity_u0.SIGNAL](false);
|
|
8
8
|
#error = this[reactivity_u0.SIGNAL]('');
|
|
@@ -25,19 +25,19 @@ class ReactiveObject_0j57g2t0 extends reactivity_u0.ReactiveObject {
|
|
|
25
25
|
export default function (attributes) {
|
|
26
26
|
let state = attributes.state || new ReactiveObject_0j57g2t0();
|
|
27
27
|
return (() => {
|
|
28
|
-
let
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
let root_u1a = template_u1b(), element_u1c = root_u1a.firstChild;
|
|
29
|
+
template_u0.setProperties(element_u1c, this?.attributes);
|
|
30
|
+
template_u0.setProperties(element_u1c, attributes);
|
|
31
|
+
template_u0.setList(element_u1c, 'class', () => state.active && '--active');
|
|
32
|
+
template_u0.on(element_u1c, 'focusin', () => {
|
|
33
33
|
state.active = true;
|
|
34
34
|
});
|
|
35
|
-
|
|
35
|
+
template_u0.on(element_u1c, 'focusout', () => {
|
|
36
36
|
state.active = false;
|
|
37
37
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return
|
|
38
|
+
template_u0.onrender(element_u1c, form.input.onrender(state));
|
|
39
|
+
template_u0.setProperty(element_u1c, 'type', (attributes.type || 'text'));
|
|
40
|
+
return root_u1a;
|
|
41
41
|
})();
|
|
42
42
|
}
|
|
43
43
|
;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.input{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--
|
|
1
|
+
@layer components {.input{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-default:var(--background);--border-radius:var(--border-radius-400);--border-style:solid;--border-width:0px;--box-shadow:var(--box-shadow-default);--box-shadow-default:none;--color:var(--color-default);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--font-size:var(--font-size-400);--padding-horizontal:var(--size-400);--padding-vertical:var(--size-400);--size:var(--size-400)}.input:not(.--active):not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--box-shadow:var(--box-shadow-hover);--color:var(--color-hover)}.input:not(.--active):not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--box-shadow:var(--box-shadow-pressed);--color:var(--color-pressed)}.input.--active{--background:var(--background-active);--border-color:var(--border-color-active);--box-shadow:var(--box-shadow-active);--color:var(--color-active)}.input{background:var(--background);border:var(--border-width) var(--border-style) var(--border-color);border-radius:var(--border-radius);color:var(--color);cursor:text;font-size:var(--font-size);min-height:calc(var(--padding-vertical) * 2 + var(--size));min-width:0;padding:max(0px, var(--padding-vertical) - var(--border-width)) max(0px, var(--padding-horizontal) - var(--border-width));text-overflow:ellipsis;transition:background var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), box-shadow var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);white-space:nowrap;flex-wrap:wrap;flex:auto;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.input:invalid,.input:required{box-shadow:none}.input[type=number]{appearance:textfield}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.link{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--
|
|
1
|
+
@layer components {.link{--background:var(--background-default);--background-active:var(--background-default);--background-default:transparent;--background-hover:var(--background-default);--background-pressed:var(--background-default);--border-color:var(--border-color-default);--border-color-active:var(--border-color-default);--border-color-default:var(--background);--border-color-hover:var(--border-color-default);--border-color-pressed:var(--border-color-default);--padding-horizontal:0px}.link.--active{--background:var(--background-active);--border-color:var(--border-color-active);--color:var(--color-active)}.link:not(.--active):hover{--background:var(--background-hover);--border-color:var(--border-color-hover);--color:var(--color-hover)}.link:not(.--active):active{--background:var(--background-pressed);--border-color:var(--border-color-pressed);--color:var(--color-pressed)}.text,.link{--border-width:0px;--color:var(--color-default,inherit);--color-active:var(--color-default);--color-default:var(--color-text-400);--color-hover:var(--color-default);--color-pressed:var(--color-default);--width:auto;color:var(--color);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);gap:var(--gap-vertical) var(--gap-horizontal);transition:color var(--transition-duration) var(--transition-timing-function);width:var(--width);display:flex;position:relative}.text.--text-truncate,.--text-truncate.link{display:block}.link{background:var(--background);cursor:pointer;padding:max(0px, var(--padding-vertical) - var(--border-width)) max(0px, var(--padding-horizontal) - var(--border-width));transition:background var(--transition-duration) var(--transition-timing-function), border-color var(--transition-duration) var(--transition-timing-function), color var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function);flex-wrap:wrap;place-content:center flex-start;position:relative}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
const
|
|
3
|
+
const template_u1e = template_u0.template(`<div class='loading --border-width-700 --size-800' style='--border-color: var(--color-border-500);' >`);
|
|
4
4
|
export default (attributes) => {
|
|
5
5
|
return (() => {
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
return
|
|
6
|
+
let root_u1d = template_u1e(), element_u1f = root_u1d.firstChild;
|
|
7
|
+
template_u0.setProperties(element_u1f, attributes);
|
|
8
|
+
return root_u1d;
|
|
9
9
|
})();
|
|
10
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components {.modal{--margin-horizontal:0px;--margin-vertical:0px;--max-width:480px;--translateY:var(--margin-vertical);transition:opacity var(--transition-duration)
|
|
1
|
+
@layer components {.modal{--margin-horizontal:0px;--margin-vertical:0px;--max-width:480px;--translateY:var(--margin-vertical);transition:opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);transform-origin:50%;width:min(var(--max-width), 100% - var(--margin-horizontal) * 2);z-index:9;margin:auto}.modal:not(.--active){opacity:0;pointer-events:none;transform:translateY(var(--translateY))}.modal:not(.--active) input[type=password]{display:none}.modal-frame{transition:opacity var(--transition-duration) var(--transition-timing-function), transform var(--transition-duration) var(--transition-timing-function);transform-origin:50%}.modal-frame:not(.--active){display:none}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
@layer components {/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
2
|
-
*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}button,input,select,textarea{font-family:inherit;font-size:inherit;
|
|
2
|
+
*,:before,:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%;tab-size:4;font-family:system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;line-height:1.15}body{margin:0}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{border-color:currentColor}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:100%;line-height:1.15}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}legend{padding:0}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}button,input,select,textarea{font-family:inherit;font-size:inherit;background:0 0;border:0;border-radius:0;margin:0;padding:0}button,button:active,button:focus,button:hover,input,input:active,input:focus,input:hover,select,select:active,select:focus,select:hover,textarea,textarea:active,textarea:focus,textarea:hover{outline:none}button:invalid,input:invalid,select:invalid,textarea:invalid{box-shadow:none}form{width:100%;margin:0;padding:0}label{cursor:pointer}}
|
|
3
3
|
/*$vite$:1*/
|
|
@@ -1,21 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import './scss/index.scss';
|
|
3
|
-
declare const _default:
|
|
4
|
-
(): ReturnType<(this: {
|
|
5
|
-
attributes?: template_u1.Attributes | undefined;
|
|
6
|
-
content?: template_u1.Renderable<any>;
|
|
7
|
-
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
8
|
-
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
-
attributes?: template_u1.Attributes | undefined;
|
|
10
|
-
content?: template_u1.Renderable<any>;
|
|
11
|
-
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
12
|
-
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
13
|
-
attributes?: template_u1.Attributes | undefined;
|
|
14
|
-
content?: template_u1.Renderable<any>;
|
|
15
|
-
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
16
|
-
(attributes: template_u1.Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
17
|
-
attributes?: template_u1.Attributes | undefined;
|
|
18
|
-
content?: template_u1.Renderable<any>;
|
|
19
|
-
}, attributes: Readonly<template_u1.Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
20
|
-
};
|
|
3
|
+
declare const _default: template_u0.Factory<template_u0.Attributes, template_u0.Renderable<any>, template_u0.Renderable<any>>;
|
|
21
4
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as template_u0 from '@esportsplus/template';
|
|
2
2
|
import { component } from '@esportsplus/template';
|
|
3
3
|
import './scss/index.scss';
|
|
4
|
-
const
|
|
4
|
+
const template_u1h = template_u0.template(`<div class='overlay --scrollbar' >`);
|
|
5
5
|
export default component(function (attributes, content) {
|
|
6
6
|
return (() => {
|
|
7
|
-
let
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
7
|
+
let root_u1g = template_u1h(), element_u1i = root_u1g.firstChild;
|
|
8
|
+
template_u0.setProperties(element_u1i, this?.attributes);
|
|
9
|
+
template_u0.setProperties(element_u1i, attributes);
|
|
10
|
+
template_u0.slot(element_u1i, content, 1);
|
|
11
|
+
return root_u1g;
|
|
12
12
|
})();
|
|
13
13
|
});
|