@esportsplus/ui 0.51.7 → 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 +53 -9
- package/build/components/accordion/index.d.ts +6 -18
- package/build/components/accordion/index.js +10 -36
- package/build/components/accordion/scss/index.scss +1 -1
- 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 +63 -31
- 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 +1437 -1228
- package/build/components/clipboard/index.js +3 -1
- package/build/components/clipboard/onclick.d.ts +4 -38
- package/build/components/clipboard/onclick.js +10 -10
- 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/form/input.js +3 -3
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +2 -19
- package/build/components/icon/index.js +8 -8
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/index.d.ts +1 -11
- package/build/components/index.js +1 -11
- 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 -18
- package/build/components/overlay/index.js +11 -5
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/radio/index.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 +7 -53
- package/build/components/select/index.js +82 -100
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/sidebar/index.d.ts +2 -18
- package/build/components/sidebar/index.js +11 -5
- 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.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 +2151 -2544
- package/build/components/tooltip/menu.d.ts +2 -18
- package/build/components/tooltip/menu.js +38 -24
- package/build/components/tooltip/onclick.d.ts +717 -1229
- package/build/components/tooltip/onclick.js +18 -54
- package/build/components/tooltip/onhover.d.ts +713 -20
- package/build/components/tooltip/onhover.js +11 -11
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/typewriter/index.d.ts +2 -19
- package/build/components/typewriter/index.js +10 -10
- 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 +2 -0
- 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 -2
- package/build/themes/dark/index.js +0 -2
- package/build/themes/dark/input.d.ts +708 -114
- package/build/themes/dark/select.d.ts +732 -1456
- package/build/themes/dark/select.js +7 -5
- package/build/themes/dark/textarea.d.ts +716 -119
- package/package.json +20 -20
- package/pnpm-workspace.yaml +12 -8
- 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/accordion/index.ts +7 -30
- package/src/components/accordion/scss/index.scss +9 -12
- 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 -26
- 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 -1
- package/src/components/clipboard/onclick.ts +3 -4
- 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 +6 -5
- package/src/components/grid/scss/index.scss +1 -1
- package/src/components/icon/index.ts +2 -3
- package/src/components/icon/scss/variables.scss +0 -1
- package/src/components/index.ts +2 -12
- 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/overlay/index.ts +9 -5
- package/src/components/overlay/scss/index.scss +0 -1
- package/src/components/page/scss/index.scss +1 -7
- 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 +44 -39
- package/src/components/root/scss/variables.scss +38 -69
- package/src/components/select/index.ts +80 -109
- package/src/components/select/scss/index.scss +10 -7
- package/src/components/select/scss/variables.scss +0 -1
- package/src/components/sidebar/index.ts +9 -5
- package/src/components/sidebar/scss/index.scss +3 -4
- 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/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 +13 -70
- package/src/components/tooltip/onhover.ts +2 -3
- package/src/components/tooltip/scss/index.scss +2 -3
- package/src/components/typewriter/index.ts +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 +7 -12
- package/src/css-utilities/inline/scss/index.scss +0 -1
- package/src/css-utilities/scrollbar/scss/index.scss +95 -0
- package/src/css-utilities/scrollbar/scss/variables.scss +5 -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 -2
- 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 +14 -14
- package/src/tokens/scss/font-size.scss +12 -11
- package/src/tokens/scss/scale.scss +22 -0
- package/src/tokens/scss/size.scss +19 -9
- package/src/tokens/scss/spacer.scss +9 -9
- 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/bolt.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/star.svg +1 -0
- package/storage/svg/type.svg +1 -0
- package/tsconfig.json +6 -2
- package/vite-env.d.ts +1 -0
- package/vite.config.ts +78 -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/back/index.d.ts +0 -18
- 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 -20
- package/build/components/frame/index.js +0 -7
- 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/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/switch/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/[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/scroller/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/alert.d.ts +0 -11
- package/build/themes/dark/alert.js +0 -20
- package/build/themes/dark/back.d.ts +0 -15
- 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/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/back/index.ts +0 -21
- 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 -54
- 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 -9
- 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 -67
- 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 -81
- 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/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/switch/scss/index.scss +0 -48
- package/src/components/switch/scss/variables.scss +0 -74
- package/src/components/template/index.ts +0 -40
- 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/scroller/scss/index.scss +0 -8
- package/src/css-utilities/scroller/scss/variables.scss +0 -4
- 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/alert.ts +0 -23
- 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 -6
- 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,151 +0,0 @@
|
|
|
1
|
-
import '@esportsplus/vite/global.d.ts';
|
|
2
|
-
import * as template_u1 from '@esportsplus/template';
|
|
3
|
-
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
|
-
import { omit } from '@esportsplus/utilities';
|
|
5
|
-
import icon from '../icon/index.js';
|
|
6
|
-
import check from './svg/check.svg';
|
|
7
|
-
import close from './svg/close.svg';
|
|
8
|
-
import e from './svg/error.svg';
|
|
9
|
-
import './scss/index.scss';
|
|
10
|
-
const template_0id5jvz2 = template_u1.template(`<div class='--flex-vertical'>`);
|
|
11
|
-
const template_0id5jvz5 = template_u1.template(`<p >`);
|
|
12
|
-
const template_0id5jvz8 = template_u1.template(`<div class='--flex-start'>`);
|
|
13
|
-
const template_0id5jvzb = template_u1.template(`<div class='alert anchor anchor--n --flex-row' ><!--$--><div class='alert-messages --flex-column --flex-fill' ></div><div class=--flex-vertical><div class='alert-close button --padding-300' >`);
|
|
14
|
-
class ReactiveObject_0id5jvz0 extends reactivity_u0.ReactiveObject {
|
|
15
|
-
#active = this[reactivity_u0.SIGNAL](false);
|
|
16
|
-
#messages;
|
|
17
|
-
#rerender = this[reactivity_u0.SIGNAL](0);
|
|
18
|
-
#type;
|
|
19
|
-
constructor(_p0, _p1) {
|
|
20
|
-
super(null);
|
|
21
|
-
this.#messages = this[reactivity_u0.SIGNAL](_p0);
|
|
22
|
-
this.#type = this[reactivity_u0.SIGNAL](_p1);
|
|
23
|
-
}
|
|
24
|
-
get active() {
|
|
25
|
-
return reactivity_u0.read(this.#active);
|
|
26
|
-
}
|
|
27
|
-
set active(_v0) {
|
|
28
|
-
reactivity_u0.write(this.#active, _v0);
|
|
29
|
-
}
|
|
30
|
-
get messages() {
|
|
31
|
-
return reactivity_u0.read(this.#messages);
|
|
32
|
-
}
|
|
33
|
-
set messages(_v1) {
|
|
34
|
-
reactivity_u0.write(this.#messages, _v1);
|
|
35
|
-
}
|
|
36
|
-
get rerender() {
|
|
37
|
-
return reactivity_u0.read(this.#rerender);
|
|
38
|
-
}
|
|
39
|
-
set rerender(_v2) {
|
|
40
|
-
reactivity_u0.write(this.#rerender, _v2);
|
|
41
|
-
}
|
|
42
|
-
get type() {
|
|
43
|
-
return reactivity_u0.read(this.#type);
|
|
44
|
-
}
|
|
45
|
-
set type(_v3) {
|
|
46
|
-
reactivity_u0.write(this.#type, _v3);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
const OMIT = ['alert-close', 'alert-messages', 'alert-message'];
|
|
50
|
-
let modifiers = {
|
|
51
|
-
error: 'red',
|
|
52
|
-
info: 'black',
|
|
53
|
-
success: 'green'
|
|
54
|
-
}, timeout = 250;
|
|
55
|
-
function activate(key, messages, seconds, state) {
|
|
56
|
-
if (!Array.isArray(messages)) {
|
|
57
|
-
messages = [messages];
|
|
58
|
-
}
|
|
59
|
-
if (!messages.length) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
if (state.type !== key) {
|
|
63
|
-
state.active = false;
|
|
64
|
-
state.messages.clear();
|
|
65
|
-
}
|
|
66
|
-
state.type = key;
|
|
67
|
-
for (let message of messages) {
|
|
68
|
-
state.messages.add(message);
|
|
69
|
-
}
|
|
70
|
-
if (state.active) {
|
|
71
|
-
state.rerender++;
|
|
72
|
-
if (!seconds) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
setTimeout(deactivate, timeout + (500 * seconds));
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
setTimeout(() => {
|
|
79
|
-
state.active = true;
|
|
80
|
-
state.rerender++;
|
|
81
|
-
state.type = key;
|
|
82
|
-
if (seconds) {
|
|
83
|
-
setTimeout(deactivate, 500 * seconds);
|
|
84
|
-
}
|
|
85
|
-
}, timeout);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
function deactivate(state) {
|
|
89
|
-
state.active = false;
|
|
90
|
-
setTimeout(() => {
|
|
91
|
-
state.messages.clear();
|
|
92
|
-
}, timeout);
|
|
93
|
-
}
|
|
94
|
-
export default (attributes) => {
|
|
95
|
-
let state = new ReactiveObject_0id5jvz0(new Set(), '');
|
|
96
|
-
const error = (messages, seconds = 0) => activate('error', messages, seconds, state);
|
|
97
|
-
error.response = (response) => {
|
|
98
|
-
if (response.ok) {
|
|
99
|
-
return;
|
|
100
|
-
}
|
|
101
|
-
error(response.errors.map(({ message, path }) => {
|
|
102
|
-
if (!path) {
|
|
103
|
-
return message;
|
|
104
|
-
}
|
|
105
|
-
return `${String(path).split('.').join(' ')} ${message}`;
|
|
106
|
-
}), 5);
|
|
107
|
-
};
|
|
108
|
-
return {
|
|
109
|
-
content: (() => {
|
|
110
|
-
let root_0id5jvza = template_0id5jvzb(), element_0id5jvzc = root_0id5jvza.firstChild, element_0id5jvzd = element_0id5jvzc.firstChild, element_0id5jvze = element_0id5jvzc.firstElementChild, element_0id5jvzf = element_0id5jvze.nextElementSibling.firstElementChild;
|
|
111
|
-
template_u1.setList(element_0id5jvzc, 'class', () => state.active && '--active');
|
|
112
|
-
template_u1.setProperties(element_0id5jvzc, omit(attributes, OMIT));
|
|
113
|
-
new template_u1.EffectSlot(element_0id5jvzd, () => {
|
|
114
|
-
let type = state.type;
|
|
115
|
-
return (() => {
|
|
116
|
-
let root_0id5jvz1 = template_0id5jvz2(), element_0id5jvz3 = root_0id5jvz1.firstChild;
|
|
117
|
-
template_u1.setList(element_0id5jvz3, 'style', `--color: var(--color-${modifiers[type]}-400);`);
|
|
118
|
-
template_u1.slot(element_0id5jvz3, icon({ class: '--size-500' }, type === 'error' ? e : check), 1);
|
|
119
|
-
return root_0id5jvz1;
|
|
120
|
-
})();
|
|
121
|
-
});
|
|
122
|
-
template_u1.setProperties(element_0id5jvze, attributes['alert-messages']);
|
|
123
|
-
new template_u1.EffectSlot(element_0id5jvze, () => {
|
|
124
|
-
let message = attributes['alert-message'];
|
|
125
|
-
return state.rerender && [...state.messages].map((content) => {
|
|
126
|
-
if (typeof content === 'string') {
|
|
127
|
-
return (() => {
|
|
128
|
-
let root_0id5jvz4 = template_0id5jvz5(), element_0id5jvz6 = root_0id5jvz4.firstChild;
|
|
129
|
-
template_u1.setProperties(element_0id5jvz6, message);
|
|
130
|
-
template_u1.slot(element_0id5jvz6, content, 1);
|
|
131
|
-
return root_0id5jvz4;
|
|
132
|
-
})();
|
|
133
|
-
}
|
|
134
|
-
return (() => {
|
|
135
|
-
let root_0id5jvz7 = template_0id5jvz8(), element_0id5jvz9 = root_0id5jvz7.firstChild;
|
|
136
|
-
template_u1.slot(element_0id5jvz9, content, 1);
|
|
137
|
-
return root_0id5jvz7;
|
|
138
|
-
})();
|
|
139
|
-
});
|
|
140
|
-
}, 1);
|
|
141
|
-
template_u1.delegate(element_0id5jvzf, 'click', () => deactivate(state));
|
|
142
|
-
template_u1.setProperties(element_0id5jvzf, attributes['alert-close']);
|
|
143
|
-
template_u1.slot(element_0id5jvzf, icon({ style: '--size: 14px;' }, close), 1);
|
|
144
|
-
return root_0id5jvza;
|
|
145
|
-
})(),
|
|
146
|
-
deactivate: () => deactivate(state),
|
|
147
|
-
error,
|
|
148
|
-
info: (messages, seconds = 0) => activate('info', messages, seconds, state),
|
|
149
|
-
success: (messages, seconds = 0) => activate('success', messages, seconds, state)
|
|
150
|
-
};
|
|
151
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer components {.anchor{--margin-horizontal:var(--size-400);--margin-vertical:var(--size-400);max-height:calc(var(--max-height,100%) - var(--margin-vertical) * 2);max-width:calc(var(--max-width,100%) - var(--margin-horizontal) * 2);transition:opacity var(--transition-duration) ease-in-out, transform var(--transition-duration) ease-in-out;z-index:9;position:absolute}.anchor:not(.--active){opacity:0}.anchor:not(.--active),.anchor:not(.--active) *{pointer-events:none}.anchor--n,.anchor--s{right:50%;transform:translate(50%)}.anchor--ne,.anchor--nw{top:var(--margin-vertical)}.anchor--se,.anchor--sw{bottom:var(--margin-vertical)}.anchor--ne,.anchor--se{right:var(--margin-horizontal)}.anchor--nw,.anchor--sw{left:var(--margin-horizontal)}.anchor--n{top:var(--margin-vertical)}.anchor--s{bottom:var(--margin-vertical)}.alert{--max-width:640px;max-width:var(--max-width);padding:var(--padding-vertical) var(--padding-horizontal);width:calc(100% - var(--margin-horizontal) * 2);z-index:9999;position:fixed}.alert.anchor--n:not(.--active){transform:translate(50%,-100%)}.alert.anchor--ne:not(.--active){transform:translateY(-100%)}}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
5
|
-
width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
6
|
-
<g>
|
|
7
|
-
<path d="M9,19.5c-0.397,0-0.779-0.158-1.061-0.439l-5-5c-0.586-0.586-0.586-1.535,0-2.121s1.535-0.586,2.121,0l3.893,3.893
|
|
8
|
-
l9.941-10.846c0.561-0.611,1.509-0.651,2.119-0.092c0.61,0.56,0.651,1.509,0.092,2.12l-11,12c-0.277,0.302-0.665,0.478-1.073,0.486
|
|
9
|
-
C9.022,19.5,9.011,19.5,9,19.5z"/>
|
|
10
|
-
</g>
|
|
11
|
-
</svg>
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
5
|
-
width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
6
|
-
<g>
|
|
7
|
-
<path d="M18,19.5c-0.384,0-0.768-0.146-1.061-0.439L12,14.121l-4.939,4.939c-0.586,0.586-1.535,0.586-2.121,0s-0.586-1.535,0-2.121
|
|
8
|
-
L9.879,12L4.939,7.061c-0.586-0.585-0.586-1.536,0-2.121c0.586-0.586,1.535-0.586,2.121,0L12,9.879l4.939-4.939
|
|
9
|
-
c0.586-0.586,1.535-0.586,2.121,0c0.586,0.585,0.586,1.536,0,2.121L14.121,12l4.939,4.939c0.586,0.586,0.586,1.535,0,2.121
|
|
10
|
-
C18.768,19.354,18.384,19.5,18,19.5z"/>
|
|
11
|
-
</g>
|
|
12
|
-
</svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
5
|
-
width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
6
|
-
<g>
|
|
7
|
-
<path d="M12.351,23h-0.702c-4.697,0-7.055,0-8.626-1.132c-1.368-0.986-2.262-2.512-2.454-4.186
|
|
8
|
-
c-0.22-1.925,0.932-3.981,3.227-8.079l0.352-0.628c2.386-4.26,3.583-6.398,5.383-7.211c1.57-0.708,3.369-0.708,4.939,0
|
|
9
|
-
c1.8,0.813,2.997,2.95,5.383,7.209l0.352,0.629l-0.873,0.488l0.881-0.474c2.29,4.09,3.439,6.143,3.219,8.064
|
|
10
|
-
c-0.191,1.675-1.086,3.201-2.453,4.187C19.405,23,17.048,23,12.351,23z M12,3.233c-0.562,0-1.123,0.118-1.646,0.354
|
|
11
|
-
c-1.2,0.542-2.358,2.61-4.46,6.364L5.542,10.58c-2.02,3.606-3.132,5.592-2.985,6.875c0.128,1.116,0.724,2.133,1.636,2.79
|
|
12
|
-
C5.24,21,7.516,21,11.649,21h0.702c4.132,0,6.41,0,7.457-0.755c0.912-0.657,1.509-1.674,1.637-2.791
|
|
13
|
-
c0.146-1.28-0.963-3.262-2.978-6.86l-0.009-0.015l-0.351-0.627c-2.103-3.755-3.261-5.823-4.461-6.365
|
|
14
|
-
C13.123,3.352,12.562,3.233,12,3.233z M12,18c-0.827,0-1.499-0.672-1.5-1.498c0-0.002,0-0.002,0-0.004
|
|
15
|
-
C10.501,15.672,11.173,15,12,15c0.826,0,1.499,0.672,1.5,1.498c0,0.002,0,0.002,0,0.004C13.499,17.328,12.826,18,12,18z M12,14
|
|
16
|
-
c-0.552,0-1-0.447-1-1V9c0-0.552,0.448-1,1-1c0.553,0,1,0.448,1,1v4C13,13.553,12.553,14,12,14z"/>
|
|
17
|
-
</g>
|
|
18
|
-
</svg>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { Attributes } from '@esportsplus/template';
|
|
3
|
-
import './scss/index.scss';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
(): ReturnType<(this: {
|
|
6
|
-
attributes?: Attributes;
|
|
7
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
8
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
9
|
-
attributes?: Attributes;
|
|
10
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
11
|
-
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
12
|
-
attributes?: Attributes;
|
|
13
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
14
|
-
(attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
15
|
-
attributes?: Attributes;
|
|
16
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
17
|
-
};
|
|
18
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import icon from '../icon/index.js';
|
|
3
|
-
import template from '../template/index.js';
|
|
4
|
-
import arrow from './svg/arrow.svg';
|
|
5
|
-
import './scss/index.scss';
|
|
6
|
-
const template_1hhpvdm1 = template_u1.template(`<a class='back link --padding-0px --flex-vertical' ><!--$-->`);
|
|
7
|
-
export default template.factory(function (attributes, content) {
|
|
8
|
-
return (() => {
|
|
9
|
-
let root_1hhpvdm0 = template_1hhpvdm1(), element_1hhpvdm2 = root_1hhpvdm0.firstChild, element_1hhpvdm3 = element_1hhpvdm2.firstChild;
|
|
10
|
-
template_u1.setProperties(element_1hhpvdm2, this.attributes);
|
|
11
|
-
template_u1.setProperties(element_1hhpvdm2, attributes);
|
|
12
|
-
template_u1.slot(element_1hhpvdm3, icon({ class: 'back-arrow --margin-right --margin-200' }, arrow));
|
|
13
|
-
template_u1.slot(element_1hhpvdm2, content, 2);
|
|
14
|
-
return root_1hhpvdm0;
|
|
15
|
-
})();
|
|
16
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<!-- Generator: Adobe Illustrator 16.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
4
|
-
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
5
|
-
width="24px" height="24px" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
|
|
6
|
-
<g opacity="0.4" enable-background="new ">
|
|
7
|
-
<path d="M12,22c-0.552,0-1-0.447-1-1v-6c0-0.553,0.448-1,1-1c0.553,0,1,0.447,1,1v6C13,21.553,12.553,22,12,22z"/>
|
|
8
|
-
</g>
|
|
9
|
-
<g>
|
|
10
|
-
<path d="M12,16c-0.552,0-1-0.447-1-1V5.414l-5.293,5.293c-0.391,0.391-1.023,0.391-1.414,0s-0.391-1.023,0-1.414l7-7
|
|
11
|
-
c0.096-0.096,0.208-0.169,0.326-0.218C11.735,2.027,11.863,2,11.997,2l0,0c0.002,0,0.004,0,0.006,0l0,0
|
|
12
|
-
c0.134,0,0.262,0.027,0.378,0.075c0.119,0.049,0.229,0.122,0.326,0.218l7,7c0.391,0.391,0.391,1.023,0,1.414s-1.023,0.391-1.414,0
|
|
13
|
-
L13,5.414V15C13,15.553,12.553,16,12,16z"/>
|
|
14
|
-
</g>
|
|
15
|
-
</svg>
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer components {.bubble{--background:var(--background-default);--background-default:var(--color-border-400);--border-radius:100%;--height:var(--size);--margin-horizontal:var(--size-100);--size:6px;--width:var(--size)}.bubble--bottom-left,.bubble--bottom-right,.bubble--top-left,.bubble--top-right{--position-horizontal:calc(var(--size) / -2);--position-vertical:calc(var(--size) / -2)}.bubble{background:var(--background);border-radius:var(--border-radius);height:var(--height);width:var(--width)}.bubble--bottom-left,.bubble--bottom-right,.bubble--top-left,.bubble--top-right{position:absolute}.bubble--bottom-left,.bubble--top-left{left:var(--position-horizontal)}.bubble--bottom-right,.bubble--top-right{right:var(--position-horizontal)}.bubble--bottom-left,.bubble--bottom-right{bottom:var(--position-vertical)}.bubble--top-left,.bubble--top-right{top:var(--position-vertical)}}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { type Renderable } from '@esportsplus/template';
|
|
3
|
-
import './scss/index.scss';
|
|
4
|
-
declare const hold: {
|
|
5
|
-
(): ReturnType<(this: {
|
|
6
|
-
attributes?: template_u1.Attributes | undefined;
|
|
7
|
-
content?: ((state: {
|
|
8
|
-
holding: boolean;
|
|
9
|
-
complete: boolean;
|
|
10
|
-
}) => Renderable<any>) | undefined;
|
|
11
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
12
|
-
holding: boolean;
|
|
13
|
-
complete: boolean;
|
|
14
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
15
|
-
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
16
|
-
attributes?: template_u1.Attributes | undefined;
|
|
17
|
-
content?: ((state: {
|
|
18
|
-
holding: boolean;
|
|
19
|
-
complete: boolean;
|
|
20
|
-
}) => Renderable<any>) | undefined;
|
|
21
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
22
|
-
holding: boolean;
|
|
23
|
-
complete: boolean;
|
|
24
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
25
|
-
<T extends (state: {
|
|
26
|
-
holding: boolean;
|
|
27
|
-
complete: boolean;
|
|
28
|
-
}) => Renderable<any>>(content: T): ReturnType<(this: {
|
|
29
|
-
attributes?: template_u1.Attributes | undefined;
|
|
30
|
-
content?: ((state: {
|
|
31
|
-
holding: boolean;
|
|
32
|
-
complete: boolean;
|
|
33
|
-
}) => Renderable<any>) | undefined;
|
|
34
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
35
|
-
holding: boolean;
|
|
36
|
-
complete: boolean;
|
|
37
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
38
|
-
(attributes: template_u1.Attributes, content: (state: {
|
|
39
|
-
holding: boolean;
|
|
40
|
-
complete: boolean;
|
|
41
|
-
}) => Renderable<any>): ReturnType<(this: {
|
|
42
|
-
attributes?: template_u1.Attributes | undefined;
|
|
43
|
-
content?: ((state: {
|
|
44
|
-
holding: boolean;
|
|
45
|
-
complete: boolean;
|
|
46
|
-
}) => Renderable<any>) | undefined;
|
|
47
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
48
|
-
holding: boolean;
|
|
49
|
-
complete: boolean;
|
|
50
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
51
|
-
};
|
|
52
|
-
declare const _default: {
|
|
53
|
-
hold: {
|
|
54
|
-
(): ReturnType<(this: {
|
|
55
|
-
attributes?: template_u1.Attributes | undefined;
|
|
56
|
-
content?: ((state: {
|
|
57
|
-
holding: boolean;
|
|
58
|
-
complete: boolean;
|
|
59
|
-
}) => Renderable<any>) | undefined;
|
|
60
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
61
|
-
holding: boolean;
|
|
62
|
-
complete: boolean;
|
|
63
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
64
|
-
<T extends template_u1.Attributes>(attributes: T): ReturnType<(this: {
|
|
65
|
-
attributes?: template_u1.Attributes | undefined;
|
|
66
|
-
content?: ((state: {
|
|
67
|
-
holding: boolean;
|
|
68
|
-
complete: boolean;
|
|
69
|
-
}) => Renderable<any>) | undefined;
|
|
70
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
71
|
-
holding: boolean;
|
|
72
|
-
complete: boolean;
|
|
73
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
74
|
-
<T extends (state: {
|
|
75
|
-
holding: boolean;
|
|
76
|
-
complete: boolean;
|
|
77
|
-
}) => Renderable<any>>(content: T): ReturnType<(this: {
|
|
78
|
-
attributes?: template_u1.Attributes | undefined;
|
|
79
|
-
content?: ((state: {
|
|
80
|
-
holding: boolean;
|
|
81
|
-
complete: boolean;
|
|
82
|
-
}) => Renderable<any>) | undefined;
|
|
83
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
84
|
-
holding: boolean;
|
|
85
|
-
complete: boolean;
|
|
86
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
87
|
-
(attributes: template_u1.Attributes, content: (state: {
|
|
88
|
-
holding: boolean;
|
|
89
|
-
complete: boolean;
|
|
90
|
-
}) => Renderable<any>): ReturnType<(this: {
|
|
91
|
-
attributes?: template_u1.Attributes | undefined;
|
|
92
|
-
content?: ((state: {
|
|
93
|
-
holding: boolean;
|
|
94
|
-
complete: boolean;
|
|
95
|
-
}) => Renderable<any>) | undefined;
|
|
96
|
-
}, attributes: Readonly<template_u1.Attributes>, content: (state: {
|
|
97
|
-
holding: boolean;
|
|
98
|
-
complete: boolean;
|
|
99
|
-
}) => Renderable<any>) => Renderable<any>>;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
export default _default;
|
|
103
|
-
export { hold };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
-
import template from '../template/index.js';
|
|
4
|
-
import './scss/index.scss';
|
|
5
|
-
const template_1u9ndnf2 = template_u1.template(`<div class='button ' >`);
|
|
6
|
-
class ReactiveObject_1u9ndnf0 extends reactivity_u0.ReactiveObject {
|
|
7
|
-
#complete = this[reactivity_u0.SIGNAL](false);
|
|
8
|
-
#holding = this[reactivity_u0.SIGNAL](false);
|
|
9
|
-
constructor() {
|
|
10
|
-
super(null);
|
|
11
|
-
}
|
|
12
|
-
get complete() {
|
|
13
|
-
return reactivity_u0.read(this.#complete);
|
|
14
|
-
}
|
|
15
|
-
set complete(_v0) {
|
|
16
|
-
reactivity_u0.write(this.#complete, _v0);
|
|
17
|
-
}
|
|
18
|
-
get holding() {
|
|
19
|
-
return reactivity_u0.read(this.#holding);
|
|
20
|
-
}
|
|
21
|
-
set holding(_v1) {
|
|
22
|
-
reactivity_u0.write(this.#holding, _v1);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const hold = template.factory(function (attributes, content) {
|
|
26
|
-
let end = () => {
|
|
27
|
-
if (!state.complete) {
|
|
28
|
-
state.holding = false;
|
|
29
|
-
}
|
|
30
|
-
}, state = new ReactiveObject_1u9ndnf0();
|
|
31
|
-
return (() => {
|
|
32
|
-
let root_1u9ndnf1 = template_1u9ndnf2(), element_1u9ndnf3 = root_1u9ndnf1.firstChild;
|
|
33
|
-
template_u1.setList(element_1u9ndnf3, 'class', () => state.holding && 'button--holding');
|
|
34
|
-
template_u1.delegate(element_1u9ndnf3, 'mousedown', (e) => {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
state.holding = true;
|
|
37
|
-
});
|
|
38
|
-
template_u1.setProperties(element_1u9ndnf3, attributes);
|
|
39
|
-
template_u1.delegate(element_1u9ndnf3, 'animationend', (e) => {
|
|
40
|
-
if (e.animationName === 'buttonHolding') {
|
|
41
|
-
state.complete = true;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
template_u1.delegate(element_1u9ndnf3, 'click', () => { });
|
|
45
|
-
template_u1.delegate(element_1u9ndnf3, 'mousedown', (e) => {
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
state.holding = true;
|
|
48
|
-
});
|
|
49
|
-
template_u1.delegate(element_1u9ndnf3, 'mouseup', end);
|
|
50
|
-
template_u1.delegate(element_1u9ndnf3, 'touchend', end);
|
|
51
|
-
template_u1.delegate(element_1u9ndnf3, 'touchstart', (e) => {
|
|
52
|
-
e.preventDefault();
|
|
53
|
-
state.holding = true;
|
|
54
|
-
});
|
|
55
|
-
new template_u1.EffectSlot(element_1u9ndnf3, () => content(state), 1);
|
|
56
|
-
return root_1u9ndnf1;
|
|
57
|
-
})();
|
|
58
|
-
});
|
|
59
|
-
export default { hold };
|
|
60
|
-
export { hold };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import './scss/index.scss';
|
|
3
|
-
const template_0bfeb8u1 = template_u1.template(`<div class='ellipsis' ><span></span><span></span><span>`);
|
|
4
|
-
export default (attributes) => {
|
|
5
|
-
let root_0bfeb8u0 = template_0bfeb8u1(), element_0bfeb8u2 = root_0bfeb8u0.firstChild;
|
|
6
|
-
template_u1.setProperties(element_0bfeb8u2, attributes);
|
|
7
|
-
return root_0bfeb8u0;
|
|
8
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer components {.ellipsis{--animation-duration:1.24s;--margin-horizontal:var(--size-100);--size:var(--size-200)}.ellipsis span{animation:ellipsis var(--animation-duration) infinite linear;background-color:var(--color);height:var(--size);margin:0 var(--margin-horizontal);width:var(--size);border-radius:100%;display:inline-block}.ellipsis span :nth-child(2){animation-delay:.24s}.ellipsis span :nth-child(3){animation-delay:.48s}@keyframes ellipsis{0%,to{opacity:.16}20%{opacity:1}}}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import './scss/index.scss';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
(): ReturnType<(this: {
|
|
4
|
-
attributes?: import("../scrollbar/index.js").Attributes | undefined;
|
|
5
|
-
content?: import("@esportsplus/template").Renderable<any>;
|
|
6
|
-
}, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
7
|
-
<T extends import("../scrollbar/index.js").Attributes>(attributes: T): ReturnType<(this: {
|
|
8
|
-
attributes?: import("../scrollbar/index.js").Attributes | undefined;
|
|
9
|
-
content?: import("@esportsplus/template").Renderable<any>;
|
|
10
|
-
}, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
11
|
-
<T extends import("@esportsplus/template").Renderable<any>>(content: T): ReturnType<(this: {
|
|
12
|
-
attributes?: import("../scrollbar/index.js").Attributes | undefined;
|
|
13
|
-
content?: import("@esportsplus/template").Renderable<any>;
|
|
14
|
-
}, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
15
|
-
(attributes: import("../scrollbar/index.js").Attributes, content: import("@esportsplus/template").Renderable<any>): ReturnType<(this: {
|
|
16
|
-
attributes?: import("../scrollbar/index.js").Attributes | undefined;
|
|
17
|
-
content?: import("@esportsplus/template").Renderable<any>;
|
|
18
|
-
}, attributes: Readonly<import("../scrollbar/index.js").Attributes>, content: import("@esportsplus/template").Renderable<any>) => import("@esportsplus/template").Renderable<any>>;
|
|
19
|
-
};
|
|
20
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer components {.frames{--gap:var(--size-400);--opacity:.4;gap:var(--gap);transform:translateX(calc(var(--i) * (100% + var(--gap))));transition:transform .3s;display:flex}.frames .frame{flex-shrink:0;width:100%;min-width:100%}.frames .frame:not(.--active){opacity:var(--opacity);display:flex}.frames .frame:not(.--active)>*{pointer-events:none}.frame{cursor:default;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:100%;display:none;position:relative}.frame.--active{display:flex}}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { Attributes } from '@esportsplus/template';
|
|
3
|
-
import './scss/index.scss';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
(): ReturnType<(this: {
|
|
6
|
-
attributes?: Attributes | undefined;
|
|
7
|
-
content?: template_u1.Renderable<any>;
|
|
8
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
9
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
10
|
-
attributes?: Attributes | undefined;
|
|
11
|
-
content?: template_u1.Renderable<any>;
|
|
12
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
13
|
-
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
14
|
-
attributes?: Attributes | undefined;
|
|
15
|
-
content?: template_u1.Renderable<any>;
|
|
16
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
17
|
-
(attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
18
|
-
attributes?: Attributes | undefined;
|
|
19
|
-
content?: template_u1.Renderable<any>;
|
|
20
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
3
|
-
import { omit } from '@esportsplus/utilities';
|
|
4
|
-
import template from '../template/index.js';
|
|
5
|
-
import './scss/index.scss';
|
|
6
|
-
const template_0k38r592 = template_u1.template(`<div class='highlight' >`);
|
|
7
|
-
class ReactiveObject_0k38r590 extends reactivity_u0.ReactiveObject {
|
|
8
|
-
#highlight = this[reactivity_u0.SIGNAL](0);
|
|
9
|
-
constructor() {
|
|
10
|
-
super(null);
|
|
11
|
-
}
|
|
12
|
-
get highlight() {
|
|
13
|
-
return reactivity_u0.read(this.#highlight);
|
|
14
|
-
}
|
|
15
|
-
set highlight(_v0) {
|
|
16
|
-
reactivity_u0.write(this.#highlight, _v0);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
const OMIT = ['background'];
|
|
20
|
-
let key = Symbol(), observer = null;
|
|
21
|
-
export default template.factory((attributes, content) => {
|
|
22
|
-
if (observer === null) {
|
|
23
|
-
observer = new IntersectionObserver((entries) => {
|
|
24
|
-
let disconnected = 0, n = entries.length;
|
|
25
|
-
for (let i = 0; i < n; i++) {
|
|
26
|
-
let { isIntersecting, target } = entries[i];
|
|
27
|
-
if (target.isConnected) {
|
|
28
|
-
target[key].highlight = +isIntersecting;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
disconnected++;
|
|
32
|
-
observer.unobserve(target);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
if (n - disconnected === 0) {
|
|
36
|
-
observer.disconnect();
|
|
37
|
-
observer = null;
|
|
38
|
-
}
|
|
39
|
-
}, { threshold: 1 });
|
|
40
|
-
}
|
|
41
|
-
let state = new ReactiveObject_0k38r590();
|
|
42
|
-
return (() => {
|
|
43
|
-
let root_0k38r591 = template_0k38r592(), element_0k38r593 = root_0k38r591.firstChild;
|
|
44
|
-
template_u1.setProperties(element_0k38r593, omit(attributes, OMIT));
|
|
45
|
-
template_u1.onrender(element_0k38r593, (element) => {
|
|
46
|
-
element[key] = state;
|
|
47
|
-
observer.observe(element);
|
|
48
|
-
});
|
|
49
|
-
template_u1.setList(element_0k38r593, 'style', [
|
|
50
|
-
() => `--highlight: ${state.highlight}`,
|
|
51
|
-
`--background: ${attributes.background}`,
|
|
52
|
-
]);
|
|
53
|
-
template_u1.slot(element_0k38r593, content, 1);
|
|
54
|
-
return root_0k38r591;
|
|
55
|
-
})();
|
|
56
|
-
});
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
@layer components {.highlight{--background:transparent;--highlight:1;background:linear-gradient(90deg, var(--background) 50%, transparent 50%) 110% 0/200% 100% no-repeat;background-position:calc((1 - var(--highlight)) * 110%) 0;transition:background-position .32s}}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as template_u1 from '@esportsplus/template';
|
|
2
|
-
import { type Attributes } from '@esportsplus/template';
|
|
3
|
-
import './scss/index.scss';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
(): ReturnType<(this: {
|
|
6
|
-
attributes?: Attributes | undefined;
|
|
7
|
-
content?: template_u1.Renderable<any>;
|
|
8
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
9
|
-
<T extends Attributes>(attributes: T): ReturnType<(this: {
|
|
10
|
-
attributes?: Attributes | undefined;
|
|
11
|
-
content?: template_u1.Renderable<any>;
|
|
12
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
13
|
-
<T extends template_u1.Renderable<any>>(content: T): ReturnType<(this: {
|
|
14
|
-
attributes?: Attributes | undefined;
|
|
15
|
-
content?: template_u1.Renderable<any>;
|
|
16
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
17
|
-
(attributes: Attributes, content: template_u1.Renderable<any>): ReturnType<(this: {
|
|
18
|
-
attributes?: Attributes | undefined;
|
|
19
|
-
content?: template_u1.Renderable<any>;
|
|
20
|
-
}, attributes: Readonly<Attributes>, content: template_u1.Renderable<any>) => template_u1.Renderable<any>>;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|