@oddsmith/ui 1.0.5 → 1.0.6
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 +8 -4
- package/dist/.shared/index.ts +5 -0
- package/dist/.shared/labels-engine/engine.d.ts +22 -0
- package/dist/.shared/labels-engine/engine.ts +70 -0
- package/dist/.shared/labels-engine/index.d.ts +1 -0
- package/dist/.shared/labels-engine/index.ts +1 -0
- package/dist/.shared/lib/lit/component.ts +10 -0
- package/dist/.shared/lib/lit/safe-custom-element.ts +12 -0
- package/dist/.shared/lib/lit/scss.ts +6 -0
- package/dist/{shared/lib/lit/template.d.ts → .shared/lib/lit/template.ts} +2 -1
- package/dist/.shared/theme-engine/animation.d.ts +5 -0
- package/dist/.shared/theme-engine/animation.ts +40 -0
- package/dist/.shared/theme-engine/default-theme.d.ts +24 -0
- package/dist/.shared/theme-engine/default-theme.ts +38 -0
- package/dist/.shared/theme-engine/engine.d.ts +22 -0
- package/dist/.shared/theme-engine/engine.ts +151 -0
- package/dist/.shared/theme-engine/index.d.ts +2 -0
- package/dist/.shared/theme-engine/index.ts +8 -0
- package/dist/assets/config/data.js +279 -0
- package/dist/assets/config/images/events/bolt.svg +4 -0
- package/dist/assets/config/images/events/boost.svg +6 -0
- package/dist/assets/config/images/events/clock.svg +4 -0
- package/dist/assets/config/images/events/fire.svg +4 -0
- package/dist/assets/config/images/events/gift.svg +5 -0
- package/dist/assets/config/images/events/star.svg +4 -0
- package/dist/assets/config/images/games/gates-of-olympus.png +0 -0
- package/dist/assets/config/labels.js +79 -0
- package/dist/assets/config/theme.js +15 -0
- package/dist/assets/icons/prize.medal.svg +5 -0
- package/dist/assets/image.fallback.png +0 -0
- package/dist/bootstrap/casino.bootstrap.d.ts +32 -0
- package/dist/bootstrap/index.d.ts +5 -0
- package/dist/constants/default-data.d.ts +8 -0
- package/dist/constants/defaults.d.ts +16 -0
- package/dist/{components/os-leaderboard-casino/constants → constants}/index.d.ts +1 -0
- package/dist/{components/os-leaderboard-casino/constants → constants}/tags.d.ts +0 -9
- package/dist/container/os-leaderboard-casino.d.ts +59 -0
- package/dist/container/os-leaderboard-casino.host.d.ts +5 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2483 -0
- package/dist/index.js.map +1 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/climb-section/climb-section.d.ts +7 -2
- package/dist/{components/os-leaderboard-casino/sections → sections}/climb-section/climb-section.host.d.ts +5 -2
- package/dist/sections/climb-section/types/labels.d.ts +8 -0
- package/dist/sections/climb-section/types/view.d.ts +13 -0
- package/dist/sections/events-banner/events-banner.d.ts +30 -0
- package/dist/sections/events-banner/events-banner.host.d.ts +15 -0
- package/dist/sections/events-banner/types/data.d.ts +18 -0
- package/dist/sections/events-banner/types/events.d.ts +8 -0
- package/dist/sections/events-banner/types/labels.d.ts +6 -0
- package/dist/sections/events-banner/types/view.d.ts +12 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/footer-section/footer-section.d.ts +4 -3
- package/dist/sections/footer-section/footer-section.host.d.ts +5 -0
- package/dist/sections/footer-section/types/view.d.ts +4 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/games-section/games-section.d.ts +8 -3
- package/dist/sections/games-section/games-section.host.d.ts +10 -0
- package/dist/sections/games-section/types/data.d.ts +7 -0
- package/dist/sections/games-section/types/labels.d.ts +6 -0
- package/dist/sections/games-section/types/view.d.ts +9 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/hero-section/hero-section.d.ts +10 -16
- package/dist/sections/hero-section/hero-section.host.d.ts +18 -0
- package/dist/sections/hero-section/types/data.d.ts +14 -0
- package/dist/sections/hero-section/types/labels.d.ts +12 -0
- package/dist/sections/hero-section/types/view.d.ts +12 -0
- package/dist/sections/index.d.ts +0 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/legals-section/legals-section.d.ts +8 -3
- package/dist/{components/os-leaderboard-casino/sections → sections}/legals-section/legals-section.host.d.ts +6 -1
- package/dist/sections/legals-section/types/data.d.ts +19 -0
- package/dist/sections/legals-section/types/labels.d.ts +5 -0
- package/dist/sections/legals-section/types/view.d.ts +6 -0
- package/dist/sections/marquee-section/marquee-item.d.ts +13 -0
- package/dist/sections/marquee-section/marquee-section.d.ts +19 -0
- package/dist/sections/marquee-section/marquee-section.host.d.ts +10 -0
- package/dist/sections/marquee-section/types/data.d.ts +18 -0
- package/dist/sections/marquee-section/types/labels.d.ts +7 -0
- package/dist/sections/marquee-section/types/view.d.ts +17 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/prize-section/prize-section.d.ts +7 -4
- package/dist/{components/os-leaderboard-casino/sections → sections}/prize-section/prize-section.host.d.ts +4 -4
- package/dist/sections/prize-section/types/data.d.ts +7 -0
- package/dist/sections/prize-section/types/events.d.ts +12 -0
- package/dist/sections/prize-section/types/labels.d.ts +11 -0
- package/dist/sections/prize-section/types/view.d.ts +12 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/stats-section/stats-section.d.ts +9 -6
- package/dist/sections/stats-section/stats-section.host.d.ts +15 -0
- package/dist/sections/stats-section/types/data.d.ts +12 -0
- package/dist/sections/stats-section/types/labels.d.ts +6 -0
- package/dist/sections/stats-section/types/view.d.ts +8 -0
- package/dist/{components/os-leaderboard-casino/sections → sections}/table-section/table-section.d.ts +17 -7
- package/dist/sections/table-section/table-section.host.d.ts +22 -0
- package/dist/sections/table-section/types/data.d.ts +24 -0
- package/dist/sections/table-section/types/events.d.ts +9 -0
- package/dist/sections/table-section/types/labels.d.ts +16 -0
- package/dist/sections/table-section/types/view.d.ts +20 -0
- package/dist/store/casino.context.d.ts +5 -0
- package/dist/store/casino.store.d.ts +37 -0
- package/dist/store/consume-store.d.ts +781 -0
- package/dist/store/index.d.ts +3 -0
- package/dist/types/config.d.ts +6 -0
- package/dist/types/data.d.ts +49 -0
- package/dist/types/host.d.ts +24 -0
- package/dist/types/index.d.ts +35 -0
- package/dist/types/labels.d.ts +43 -0
- package/dist/types/public.d.ts +23 -0
- package/dist/types/status.d.ts +1 -0
- package/dist/types/theme.d.ts +1 -0
- package/dist/utils/boolean-attr.d.ts +8 -0
- package/dist/utils/current-user.d.ts +9 -0
- package/dist/utils/data-resolve.d.ts +6 -0
- package/dist/utils/demo-countdown.d.ts +2 -0
- package/dist/utils/format.d.ts +10 -0
- package/dist/utils/image-fallback.d.ts +11 -0
- package/dist/utils/index.d.ts +12 -0
- package/dist/{components/os-leaderboard-casino/theme/vip-mark.d.ts → utils/player-name.d.ts} +1 -3
- package/dist/utils/prize-resolve.d.ts +10 -0
- package/dist/utils/safe-href.d.ts +2 -0
- package/dist/utils/safe-html.d.ts +6 -0
- package/dist/utils/status.d.ts +10 -0
- package/dist/utils/svg.d.ts +5 -0
- package/index.d.ts +5 -0
- package/index.js +3 -0
- package/os-leaderboard-casino-pro.d.ts +1 -0
- package/os-leaderboard-casino-pro.js +1 -0
- package/package.json +33 -50
- package/dist/components/os-leaderboard-casino/assets/fallback/catalog.json +0 -9
- package/dist/components/os-leaderboard-casino/assets/fallback/catalog.json.js +0 -13
- package/dist/components/os-leaderboard-casino/assets/fallback/catalog.json.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/config.json +0 -8
- package/dist/components/os-leaderboard-casino/assets/fallback/defaults/glam-sections.json +0 -564
- package/dist/components/os-leaderboard-casino/assets/fallback/fonts.json +0 -3
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json +0 -5
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json.js +0 -12
- package/dist/components/os-leaderboard-casino/assets/fallback/labels.json.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/manifest.json +0 -6
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json +0 -38
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/fallback/presets.json.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json +0 -603
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json.js +0 -8
- package/dist/components/os-leaderboard-casino/assets/fallback/resolved-presets.json.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json +0 -68
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json.js +0 -72
- package/dist/components/os-leaderboard-casino/assets/fallback/themes.json.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.casino-credits.svg +0 -7
- package/dist/components/os-leaderboard-casino/assets/icons/prize.casino-credits.svg.js +0 -12
- package/dist/components/os-leaderboard-casino/assets/icons/prize.casino-credits.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.default.svg.js +0 -12
- package/dist/components/os-leaderboard-casino/assets/icons/prize.default.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.elite-bonus.svg +0 -5
- package/dist/components/os-leaderboard-casino/assets/icons/prize.elite-bonus.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/prize.elite-bonus.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.free-spins.svg +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/prize.free-spins.svg.js +0 -15
- package/dist/components/os-leaderboard-casino/assets/icons/prize.free-spins.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.grand-jackpot.svg +0 -5
- package/dist/components/os-leaderboard-casino/assets/icons/prize.grand-jackpot.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/prize.grand-jackpot.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.high-roller.svg +0 -5
- package/dist/components/os-leaderboard-casino/assets/icons/prize.high-roller.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/prize.high-roller.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/prize.mystery-bonus.svg +0 -8
- package/dist/components/os-leaderboard-casino/assets/icons/prize.mystery-bonus.svg.js +0 -13
- package/dist/components/os-leaderboard-casino/assets/icons/prize.mystery-bonus.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/stat.clock.svg +0 -4
- package/dist/components/os-leaderboard-casino/assets/icons/stat.clock.svg.js +0 -9
- package/dist/components/os-leaderboard-casino/assets/icons/stat.clock.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/stat.gift.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/stat.gift.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/stat.users.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/stat.users.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-down.svg.js +0 -9
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-down.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-neutral.svg.js +0 -9
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-neutral.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-up.svg.js +0 -9
- package/dist/components/os-leaderboard-casino/assets/icons/table.rank-up.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/vip.crown.svg +0 -7
- package/dist/components/os-leaderboard-casino/assets/icons/vip.crown.svg.js +0 -12
- package/dist/components/os-leaderboard-casino/assets/icons/vip.crown.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/win.bag.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/win.bag.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/win.bolt.svg.js +0 -9
- package/dist/components/os-leaderboard-casino/assets/icons/win.bolt.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/win.coin.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/win.coin.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/win.fire.svg.js +0 -9
- package/dist/components/os-leaderboard-casino/assets/icons/win.fire.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/win.gem.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/win.gem.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/icons/win.trophy.svg.js +0 -10
- package/dist/components/os-leaderboard-casino/assets/icons/win.trophy.svg.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/games/cards.png.js +0 -5
- package/dist/components/os-leaderboard-casino/assets/images/games/cards.png.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/games/chips.png.js +0 -5
- package/dist/components/os-leaderboard-casino/assets/images/games/chips.png.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/games/dice.png.js +0 -5
- package/dist/components/os-leaderboard-casino/assets/images/games/dice.png.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/games/gates-of-olympus.png +0 -0
- package/dist/components/os-leaderboard-casino/assets/images/games/gates-of-olympus.png.js +0 -5
- package/dist/components/os-leaderboard-casino/assets/images/games/gates-of-olympus.png.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/games/roulette.png.js +0 -5
- package/dist/components/os-leaderboard-casino/assets/images/games/roulette.png.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/games/slot-machine.png.js +0 -5
- package/dist/components/os-leaderboard-casino/assets/images/games/slot-machine.png.js.map +0 -1
- package/dist/components/os-leaderboard-casino/assets/images/logo.png +0 -0
- package/dist/components/os-leaderboard-casino/constants/defaults.d.ts +0 -8
- package/dist/components/os-leaderboard-casino/constants/defaults.js +0 -9
- package/dist/components/os-leaderboard-casino/constants/defaults.js.map +0 -1
- package/dist/components/os-leaderboard-casino/constants/tags.js +0 -17
- package/dist/components/os-leaderboard-casino/constants/tags.js.map +0 -1
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.d.ts +0 -35
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.host.d.ts +0 -13
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.html.js +0 -22
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js +0 -154
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.js.map +0 -1
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/container/os-leaderboard-casino.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/index.d.ts +0 -36
- package/dist/components/os-leaderboard-casino/index.js +0 -39
- package/dist/components/os-leaderboard-casino/index.js.map +0 -1
- package/dist/components/os-leaderboard-casino/integration/assemble-assets.d.ts +0 -21
- package/dist/components/os-leaderboard-casino/integration/assemble-assets.js +0 -48
- package/dist/components/os-leaderboard-casino/integration/assemble-assets.js.map +0 -1
- package/dist/components/os-leaderboard-casino/integration/assets-context.d.ts +0 -26
- package/dist/components/os-leaderboard-casino/integration/assets-context.js +0 -69
- package/dist/components/os-leaderboard-casino/integration/assets-context.js.map +0 -1
- package/dist/components/os-leaderboard-casino/integration/defaults-glam.d.ts +0 -14
- package/dist/components/os-leaderboard-casino/integration/defaults-new-money.d.ts +0 -3
- package/dist/components/os-leaderboard-casino/integration/index.d.ts +0 -5
- package/dist/components/os-leaderboard-casino/integration/labels.d.ts +0 -1
- package/dist/components/os-leaderboard-casino/integration/load-assets.d.ts +0 -9
- package/dist/components/os-leaderboard-casino/integration/load-assets.js +0 -22
- package/dist/components/os-leaderboard-casino/integration/load-assets.js.map +0 -1
- package/dist/components/os-leaderboard-casino/integration/presets.d.ts +0 -1
- package/dist/components/os-leaderboard-casino/integration/resolve-input.d.ts +0 -20
- package/dist/components/os-leaderboard-casino/integration/resolve-input.js +0 -115
- package/dist/components/os-leaderboard-casino/integration/resolve-input.js.map +0 -1
- package/dist/components/os-leaderboard-casino/integration/themes.d.ts +0 -1
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.html.js +0 -48
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.js +0 -69
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/climb-section/climb-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.d.ts +0 -5
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.js +0 -118
- package/dist/components/os-leaderboard-casino/sections/events-banner/components/event-icons.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.d.ts +0 -16
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.host.d.ts +0 -8
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.js +0 -93
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/events-banner/events-banner.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.host.d.ts +0 -3
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.html.js +0 -20
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js +0 -41
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/footer-section/footer-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/games-section/components/game-images.d.ts +0 -1
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.host.d.ts +0 -7
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.html.js +0 -17
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.js +0 -88
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/games-section/games-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/header-section/header-section.d.ts +0 -12
- package/dist/components/os-leaderboard-casino/sections/header-section/header-section.host.d.ts +0 -8
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.host.d.ts +0 -20
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.html.js +0 -36
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js +0 -192
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/hero-section/hero-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.html.js +0 -35
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js +0 -78
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/legals-section/legals-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/live-feed-section/live-feed-section.d.ts +0 -13
- package/dist/components/os-leaderboard-casino/sections/live-feed-section/live-feed-section.host.d.ts +0 -8
- package/dist/components/os-leaderboard-casino/sections/marquee-section/components/win-icons.d.ts +0 -3
- package/dist/components/os-leaderboard-casino/sections/marquee-section/components/win-icons.js +0 -8
- package/dist/components/os-leaderboard-casino/sections/marquee-section/components/win-icons.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-item.d.ts +0 -14
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-item.js +0 -57
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-item.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.d.ts +0 -42
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.host.d.ts +0 -8
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.html.js +0 -19
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.js +0 -290
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.d.ts +0 -6
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.js +0 -16
- package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.d.ts +0 -16
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.js +0 -73
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.html.js +0 -20
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js +0 -137
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-band/stat-band.d.ts +0 -17
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-card/stat-card.d.ts +0 -15
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-chip/stat-chip.d.ts +0 -17
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-gauge/stat-gauge.d.ts +0 -14
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.d.ts +0 -5
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.js +0 -11
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-meter/stat-meter.d.ts +0 -17
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.d.ts +0 -17
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.js +0 -63
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.host.d.ts +0 -13
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.html.js +0 -36
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js +0 -71
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.host.d.ts +0 -15
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.html.js +0 -40
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.html.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js +0 -185
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.js.map +0 -1
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.scss.js +0 -5
- package/dist/components/os-leaderboard-casino/sections/table-section/table-section.scss.js.map +0 -1
- package/dist/components/os-leaderboard-casino/services/adapter.service.d.ts +0 -11
- package/dist/components/os-leaderboard-casino/services/adapter.service.js +0 -49
- package/dist/components/os-leaderboard-casino/services/adapter.service.js.map +0 -1
- package/dist/components/os-leaderboard-casino/services/icon.service.d.ts +0 -28
- package/dist/components/os-leaderboard-casino/services/icon.service.js +0 -194
- package/dist/components/os-leaderboard-casino/services/icon.service.js.map +0 -1
- package/dist/components/os-leaderboard-casino/services/index.d.ts +0 -2
- package/dist/components/os-leaderboard-casino/theme/background.d.ts +0 -4
- package/dist/components/os-leaderboard-casino/theme/background.js +0 -22
- package/dist/components/os-leaderboard-casino/theme/background.js.map +0 -1
- package/dist/components/os-leaderboard-casino/theme/index.d.ts +0 -3
- package/dist/components/os-leaderboard-casino/theme/prize-icons.d.ts +0 -1
- package/dist/components/os-leaderboard-casino/theme/prize-resolve.d.ts +0 -5
- package/dist/components/os-leaderboard-casino/theme/prize-resolve.js +0 -11
- package/dist/components/os-leaderboard-casino/theme/prize-resolve.js.map +0 -1
- package/dist/components/os-leaderboard-casino/theme/styles.d.ts +0 -9
- package/dist/components/os-leaderboard-casino/theme/styles.js +0 -179
- package/dist/components/os-leaderboard-casino/theme/styles.js.map +0 -1
- package/dist/components/os-leaderboard-casino/theme/vip-icons.d.ts +0 -2
- package/dist/components/os-leaderboard-casino/theme/vip-icons.js +0 -6
- package/dist/components/os-leaderboard-casino/theme/vip-icons.js.map +0 -1
- package/dist/components/os-leaderboard-casino/theme/vip-mark.js +0 -22
- package/dist/components/os-leaderboard-casino/theme/vip-mark.js.map +0 -1
- package/dist/components/os-leaderboard-casino/types/assets.d.ts +0 -42
- package/dist/components/os-leaderboard-casino/types/data.d.ts +0 -106
- package/dist/components/os-leaderboard-casino/types/data.js +0 -7
- package/dist/components/os-leaderboard-casino/types/data.js.map +0 -1
- package/dist/components/os-leaderboard-casino/types/events.d.ts +0 -18
- package/dist/components/os-leaderboard-casino/types/events.js +0 -8
- package/dist/components/os-leaderboard-casino/types/events.js.map +0 -1
- package/dist/components/os-leaderboard-casino/types/icons.d.ts +0 -18
- package/dist/components/os-leaderboard-casino/types/input.d.ts +0 -79
- package/dist/components/os-leaderboard-casino/types/ledger.d.ts +0 -67
- package/dist/components/os-leaderboard-casino/types/sections.d.ts +0 -200
- package/dist/components/os-leaderboard-casino/types/state.d.ts +0 -69
- package/dist/components/os-leaderboard-casino/types/state.js +0 -12
- package/dist/components/os-leaderboard-casino/types/state.js.map +0 -1
- package/dist/components/os-leaderboard-casino/utils/demo-countdown.d.ts +0 -7
- package/dist/components/os-leaderboard-casino/utils/demo-countdown.js +0 -22
- package/dist/components/os-leaderboard-casino/utils/demo-countdown.js.map +0 -1
- package/dist/shared/lib/lit/component.js +0 -8
- package/dist/shared/lib/lit/component.js.map +0 -1
- package/dist/shared/lib/lit/safe-custom-element.js +0 -7
- package/dist/shared/lib/lit/safe-custom-element.js.map +0 -1
- package/dist/shared/lib/lit/scss.js +0 -8
- package/dist/shared/lib/lit/scss.js.map +0 -1
- package/dist/shared/vendor/keen-slider-keen-slider.es.js +0 -538
- package/dist/shared/vendor/keen-slider-keen-slider.es.js.map +0 -1
- package/dist/shared/vendor/lit-element-lit-element.js +0 -45
- package/dist/shared/vendor/lit-element-lit-element.js.map +0 -1
- package/dist/shared/vendor/lit-html-directive-helpers.js +0 -32
- package/dist/shared/vendor/lit-html-directive-helpers.js.map +0 -1
- package/dist/shared/vendor/lit-html-directive.js +0 -23
- package/dist/shared/vendor/lit-html-directive.js.map +0 -1
- package/dist/shared/vendor/lit-html-keyed.js +0 -18
- package/dist/shared/vendor/lit-html-keyed.js.map +0 -1
- package/dist/shared/vendor/lit-html-lit-html.js +0 -234
- package/dist/shared/vendor/lit-html-lit-html.js.map +0 -1
- package/dist/shared/vendor/lit-html-repeat.js +0 -57
- package/dist/shared/vendor/lit-html-repeat.js.map +0 -1
- package/dist/shared/vendor/lit-html-unsafe-html.js +0 -21
- package/dist/shared/vendor/lit-html-unsafe-html.js.map +0 -1
- package/dist/shared/vendor/lit-html-unsafe-svg.js +0 -10
- package/dist/shared/vendor/lit-html-unsafe-svg.js.map +0 -1
- package/dist/shared/vendor/lit-reactive-element-base.js +0 -5
- package/dist/shared/vendor/lit-reactive-element-base.js.map +0 -1
- package/dist/shared/vendor/lit-reactive-element-css-tag.js +0 -46
- package/dist/shared/vendor/lit-reactive-element-css-tag.js.map +0 -1
- package/dist/shared/vendor/lit-reactive-element-property.js +0 -33
- package/dist/shared/vendor/lit-reactive-element-property.js.map +0 -1
- package/dist/shared/vendor/lit-reactive-element-query.js +0 -13
- package/dist/shared/vendor/lit-reactive-element-query.js.map +0 -1
- package/dist/shared/vendor/lit-reactive-element-reactive-element.js +0 -226
- package/dist/shared/vendor/lit-reactive-element-reactive-element.js.map +0 -1
- package/dist/shared/vendor/lit-reactive-element-state.js +0 -8
- package/dist/shared/vendor/lit-reactive-element-state.js.map +0 -1
- /package/dist/{shared → .shared}/lib/lit/component.d.ts +0 -0
- /package/dist/{shared → .shared}/lib/lit/safe-custom-element.d.ts +0 -0
- /package/dist/{shared → .shared}/lib/lit/scss.d.ts +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets/config}/images/games/cards.png +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets/config}/images/games/chips.png +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets/config}/images/games/dice.png +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets/config}/images/games/roulette.png +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets/config}/images/games/slot-machine.png +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/prize.default.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/stat.gift.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/stat.users.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/table.rank-down.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/table.rank-neutral.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/table.rank-up.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/win.bag.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/win.bolt.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/win.coin.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/win.fire.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/win.gem.svg +0 -0
- /package/dist/{components/os-leaderboard-casino/assets → assets}/icons/win.trophy.svg +0 -0
package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.scss.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const a = '@charset "UTF-8";:host{display:block;width:100%}.marquee{position:relative;overflow:hidden}:host([data-variant=classic]) .marquee,:host(:not([data-variant])) .marquee{border-radius:var(--radius-sm);border:1px solid var(--panel-border);background:var(--panel-bg);box-shadow:var(--panel-shadow)}:host([data-variant=classic]) .marquee:before,:host([data-variant=classic]) .marquee:after,:host(:not([data-variant])) .marquee:before,:host(:not([data-variant])) .marquee:after{content:"";position:absolute;top:0;bottom:0;width:56px;z-index:2;pointer-events:none}:host([data-variant=classic]) .marquee:before,:host(:not([data-variant])) .marquee:before{left:0;background:linear-gradient(90deg,var(--panel-fade-start),transparent)}:host([data-variant=classic]) .marquee:after,:host(:not([data-variant])) .marquee:after{right:0;background:linear-gradient(-90deg,var(--panel-fade-end),transparent)}:host([data-variant=classic]) .track,:host(:not([data-variant])) .track{display:flex;width:max-content;animation:scroll var(--speed, 30s) linear infinite}:host([data-variant=classic]) .group,:host(:not([data-variant])) .group{display:flex;align-items:center}:host([data-variant=classic]) .item,:host(:not([data-variant])) .item{display:inline-flex;align-items:center;gap:7px;padding:8px 0;white-space:nowrap;font-size:12px;color:var(--text-dim)}:host([data-variant=classic]) .item .txt,:host(:not([data-variant])) .item .txt{display:inline-flex;align-items:center;gap:.35em;line-height:1}:host([data-variant=classic]) .item .amt,:host(:not([data-variant])) .item .amt{font-family:var(--font-mono);font-weight:800;color:var(--gold-strong);text-shadow:0 0 12px var(--gold-glow)}:host([data-variant=classic]) .item .tail,:host(:not([data-variant])) .item .tail{display:inline-flex;align-items:center;gap:.35em}:host([data-variant=classic]) .item .icon img,:host(:not([data-variant])) .item .icon img{width:16px;height:16px;object-fit:contain;border-radius:3px;vertical-align:middle}:host([data-variant=classic]) .sep,:host(:not([data-variant])) .sep{margin:0 18px;font-size:10px;line-height:1;color:var(--text-faint);opacity:.5}:host([data-variant=ticker]) .marquee{border:1px solid var(--panel-border);border-radius:var(--radius-sm);background:var(--panel-bg);padding:10px 0;box-shadow:inset 0 1px #ffffff0d,var(--panel-shadow)}:host([data-variant=ticker]) .marquee:before,:host([data-variant=ticker]) .marquee:after{content:"";position:absolute;top:0;bottom:0;width:56px;z-index:2;pointer-events:none}:host([data-variant=ticker]) .marquee:before{left:0;background:linear-gradient(90deg,var(--panel-fade-start),transparent)}:host([data-variant=ticker]) .marquee:after{right:0;background:linear-gradient(-90deg,var(--panel-fade-end),transparent)}:host([data-variant=ticker]) .track{display:flex;align-items:center;width:max-content;animation:scroll var(--speed, 38s) linear infinite}:host([data-variant=ticker]) .group{display:flex;flex-shrink:0;align-items:center}:host([data-variant=ticker]) .win{display:inline-flex;align-items:center;gap:8px;padding:0 18px;white-space:nowrap}:host([data-variant=ticker]) .win .chip{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;color:var(--green);background:color-mix(in srgb,var(--green) 16%,transparent);flex-shrink:0}:host([data-variant=ticker]) .win.big .chip{color:var(--gold-strong);background:color-mix(in srgb,var(--gold) 18%,transparent)}:host([data-variant=ticker]) .win .chip svg{width:15px;height:15px}:host([data-variant=ticker]) .win .chip img{width:15px;height:15px;object-fit:contain;border-radius:3px}:host([data-variant=ticker]) .txt{display:inline-flex;align-items:center;gap:.35em;line-height:1;font-size:13px;color:var(--text)}:host([data-variant=ticker]) .txt .verb,:host([data-variant=ticker]) .txt .on{color:var(--text-dim)}:host([data-variant=ticker]) .txt .tail{display:inline-flex;align-items:center;gap:.35em}:host([data-variant=ticker]) .txt .player-name .name{font-weight:700}:host([data-variant=ticker]) .txt .game{color:var(--text-faint)}:host([data-variant=ticker]) .amt{font-family:var(--font-mono);font-weight:700;font-size:13px;color:var(--green)}:host([data-variant=ticker]) .win.big .amt{color:var(--gold-strong)}:host([data-variant=ticker]) .win.big .player-name:not(.is-vip) .name{color:var(--gold-strong)}:host([data-variant=ticker]) .sep{flex-shrink:0;align-self:center;margin:0 14px;font-size:10px;line-height:1;color:var(--text-faint);opacity:.5;user-select:none}:host([data-variant=hud]) .marquee{display:flex;align-items:stretch;gap:0;background:var(--panel-bg);border:1px solid color-mix(in srgb,var(--violet) 35%,var(--panel-border));clip-path:polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);box-shadow:var(--panel-shadow),inset 0 0 30px color-mix(in srgb,var(--violet) 8%,transparent)}:host([data-variant=hud]) .hero{display:flex;align-items:center;gap:14px;padding:16px 22px;flex-shrink:0;background:linear-gradient(135deg,color-mix(in srgb,var(--gold) 16%,transparent),transparent);border-right:1px solid color-mix(in srgb,var(--violet) 25%,transparent);position:relative}:host([data-variant=hud]) .hero .badge{position:absolute;top:8px;left:22px;font-size:9px;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:color-mix(in srgb,var(--violet) 80%,white)}:host([data-variant=hud]) .hero .chip{display:grid;place-items:center;width:40px;height:40px;color:var(--gold-strong);margin-top:10px}:host([data-variant=hud]) .hero .chip svg{width:32px;height:32px}:host([data-variant=hud]) .hero .chip img{width:32px;height:32px;object-fit:contain;border-radius:4px}:host([data-variant=hud]) .hero .info{display:flex;flex-direction:column;margin-top:12px;animation:flip .5s ease}:host([data-variant=hud]) .hero .who{font-size:13px;color:var(--text);font-weight:700}:host([data-variant=hud]) .hero .val{font-family:var(--font-mono);font-weight:800;font-size:22px;color:var(--gold-strong);line-height:1}:host([data-variant=hud]) .stream{position:relative;overflow:hidden;flex:1;display:flex;align-items:center}:host([data-variant=hud]) .stream:after{content:"";position:absolute;right:0;top:0;bottom:0;width:60px;background:linear-gradient(270deg,var(--panel-bg),transparent)}:host([data-variant=hud]) .track{display:flex;width:max-content;animation:scroll var(--speed, 32s) linear infinite}:host([data-variant=hud]) .group{display:flex;flex-shrink:0}:host([data-variant=hud]) .win{display:inline-flex;align-items:center;gap:8px;padding:0 18px;white-space:nowrap;font-size:13px;color:var(--text-faint)}:host([data-variant=hud]) .win svg{width:15px;height:15px;color:color-mix(in srgb,var(--violet) 75%,white)}:host([data-variant=hud]) .win .name,:host([data-variant=hud]) .win .player-name .name{color:var(--text)}:host([data-variant=hud]) .win .amt{font-family:var(--font-mono);font-weight:700;color:var(--gold-strong)}:host([data-variant=hud]) .win .sep{color:color-mix(in srgb,var(--violet) 50%,transparent)}:host([data-variant=belt]) .marquee{display:flex;flex-direction:column;gap:10px;padding:16px 0;border:1px solid var(--panel-border);border-radius:18px;background:linear-gradient(180deg,var(--panel-bg),var(--bg));box-shadow:var(--panel-shadow)}:host([data-variant=belt]) .marquee:before,:host([data-variant=belt]) .marquee:after{content:"";position:absolute;top:0;bottom:0;width:80px;z-index:2;pointer-events:none}:host([data-variant=belt]) .marquee:before{left:0;background:linear-gradient(90deg,var(--panel-bg),transparent)}:host([data-variant=belt]) .marquee:after{right:0;background:linear-gradient(270deg,var(--panel-bg),transparent)}:host([data-variant=belt]) .lane{display:flex;width:max-content}:host([data-variant=belt]) .lane-a{animation:scroll var(--speed, 40s) linear infinite}:host([data-variant=belt]) .lane-b{animation:scroll-reverse var(--speed, 40s) linear infinite}:host([data-variant=belt]) .group{display:flex;flex-shrink:0;gap:10px;padding-right:10px}:host([data-variant=belt]) .pill{display:inline-flex;align-items:center;gap:9px;padding:8px 14px;border-radius:999px;white-space:nowrap;background:#ffffff0a;border:1px solid var(--panel-border)}:host([data-variant=belt]) .pill.big{background:color-mix(in srgb,var(--gold) 12%,transparent);border-color:color-mix(in srgb,var(--gold) 35%,transparent)}:host([data-variant=belt]) .pill .chip{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;color:#46d18a;background:color-mix(in srgb,#46d18a 16%,transparent);flex-shrink:0}:host([data-variant=belt]) .pill.big .chip{color:var(--gold-strong);background:color-mix(in srgb,var(--gold) 20%,transparent)}:host([data-variant=belt]) .pill .chip svg{width:15px;height:15px}:host([data-variant=belt]) .pill .chip img{width:15px;height:15px;object-fit:contain;border-radius:3px}:host([data-variant=belt]) .pill .player-name .name{font-size:13px;font-weight:700;color:var(--text)}:host([data-variant=belt]) .pill .game{font-size:12px;color:var(--text-faint)}:host([data-variant=belt]) .pill .amt{font-family:var(--font-mono);font-weight:700;font-size:13px;color:#46d18a}:host([data-variant=belt]) .pill.big .amt{color:var(--gold-strong)}:host([data-variant=feed]) .feed-panel{border:1px solid var(--panel-border);border-radius:18px;background:linear-gradient(180deg,var(--panel-bg),var(--bg));padding:14px;box-shadow:var(--panel-shadow)}:host([data-variant=feed]) .head{display:flex;align-items:center;gap:8px;padding:2px 6px 12px}:host([data-variant=feed]) .live{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:800;letter-spacing:.12em;color:#46d18a;text-transform:uppercase}:host([data-variant=feed]) .live i{width:7px;height:7px;border-radius:50%;background:#46d18a;box-shadow:0 0 color-mix(in srgb,#46d18a 70%,transparent);animation:pulse 1.6s infinite}:host([data-variant=feed]) .head small{color:var(--text-faint);font-size:12px}:host([data-variant=feed]) .list{display:flex;flex-direction:column;gap:8px;overflow:hidden}:host([data-variant=feed]) .row{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:#ffffff08;border:1px solid var(--panel-border);animation:drop .5s cubic-bezier(.22,1,.36,1)}:host([data-variant=feed]) .row.big{background:color-mix(in srgb,var(--gold) 12%,transparent);border-color:color-mix(in srgb,var(--gold) 35%,transparent)}:host([data-variant=feed]) .row .chip{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;flex-shrink:0;color:#46d18a;background:color-mix(in srgb,#46d18a 16%,transparent)}:host([data-variant=feed]) .row.big .chip{color:var(--gold-strong);background:color-mix(in srgb,var(--gold) 20%,transparent)}:host([data-variant=feed]) .row .chip svg{width:20px;height:20px}:host([data-variant=feed]) .row .chip img{width:20px;height:20px;object-fit:contain;border-radius:4px}:host([data-variant=feed]) .meta{display:flex;flex-direction:column;min-width:0}:host([data-variant=feed]) .meta .player-name .name{font-size:14px;color:var(--text)}:host([data-variant=feed]) .meta .game-line{font-size:12px;color:var(--text-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host([data-variant=feed]) .amt{margin-left:auto;font-family:var(--font-mono);font-weight:700;font-size:15px;color:#46d18a}:host([data-variant=feed]) .row.big .amt{color:var(--gold-strong)}.marquee:hover .track,.marquee:hover .lane{animation-play-state:paused}@keyframes scroll{to{transform:translate(-50%)}}@keyframes scroll-reverse{0%{transform:translate(-50%)}to{transform:translate(0)}}@keyframes flip{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes drop{0%{opacity:0;transform:translateY(-14px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes pulse{to{box-shadow:0 0 0 7px transparent}}@media(prefers-reduced-motion:reduce){.track,.lane{animation:none!important}:host([data-variant=hud]) .hero .info,:host([data-variant=feed]) .row,:host([data-variant=feed]) .live i{animation:none}}';
|
|
2
|
-
export {
|
|
3
|
-
a as default
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=marquee-section.scss.js.map
|
package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-section.scss.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marquee-section.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/** Visual treatments for the winners ticker (v0 + legacy). */
|
|
2
|
-
export declare const MARQUEE_VARIANTS: readonly ["classic", "ticker", "feed", "hud", "belt"];
|
|
3
|
-
export type MarqueeVariant = (typeof MARQUEE_VARIANTS)[number];
|
|
4
|
-
/** Active variant — v0 seamless ticker from `v0-components/marquee-section`. */
|
|
5
|
-
export declare const ACTIVE_MARQUEE_VARIANT: MarqueeVariant;
|
|
6
|
-
export declare function isMarqueeVariant(value: string): value is MarqueeVariant;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const t = [
|
|
2
|
-
"classic",
|
|
3
|
-
"ticker",
|
|
4
|
-
"feed",
|
|
5
|
-
"hud",
|
|
6
|
-
"belt"
|
|
7
|
-
], c = "ticker";
|
|
8
|
-
function i(e) {
|
|
9
|
-
return t.includes(e);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
c as ACTIVE_MARQUEE_VARIANT,
|
|
13
|
-
t as MARQUEE_VARIANTS,
|
|
14
|
-
i as isMarqueeVariant
|
|
15
|
-
};
|
|
16
|
-
//# sourceMappingURL=marquee-variants.js.map
|
package/dist/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"marquee-variants.js","sources":["../../../../../src/components/os-leaderboard-casino/sections/marquee-section/marquee-variants.ts"],"sourcesContent":["/** Visual treatments for the winners ticker (v0 + legacy). */\nexport const MARQUEE_VARIANTS = [\n 'classic',\n 'ticker',\n 'feed',\n 'hud',\n 'belt',\n] as const;\n\nexport type MarqueeVariant = (typeof MARQUEE_VARIANTS)[number];\n\n/** Active variant — v0 seamless ticker from `v0-components/marquee-section`. */\nexport const ACTIVE_MARQUEE_VARIANT: MarqueeVariant = 'ticker';\n\nexport function isMarqueeVariant(value: string): value is MarqueeVariant {\n return (MARQUEE_VARIANTS as readonly string[]).includes(value);\n}\n"],"names":["MARQUEE_VARIANTS","ACTIVE_MARQUEE_VARIANT","isMarqueeVariant","value"],"mappings":"AACO,MAAMA,IAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAKaC,IAAyC;AAE/C,SAASC,EAAiBC,GAAwC;AACvE,SAAQH,EAAuC,SAASG,CAAK;AAC/D;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
export type MedalCoinVariant = 'gold' | 'silver' | 'bronze';
|
|
3
|
-
/** Layered rank coin for podium slots — themed via glam CSS tokens. */
|
|
4
|
-
export declare class OsLeaderboardCasinoMedalCoin extends LitElement {
|
|
5
|
-
static styles: import('lit').CSSResult[];
|
|
6
|
-
variant: MedalCoinVariant;
|
|
7
|
-
rank: number;
|
|
8
|
-
/** Optional label override (defaults to rank number). */
|
|
9
|
-
label?: string;
|
|
10
|
-
/** Pixel diameter — also sets `--coin-size` on the host. */
|
|
11
|
-
size: number;
|
|
12
|
-
protected willUpdate(): void;
|
|
13
|
-
private get displayLabel();
|
|
14
|
-
private get medalAriaLabel();
|
|
15
|
-
render(): import('lit').TemplateResult<1>;
|
|
16
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import "../../../../../../shared/vendor/lit-reactive-element-reactive-element.js";
|
|
2
|
-
import { svg as m, html as c } from "../../../../../../shared/vendor/lit-html-lit-html.js";
|
|
3
|
-
import { LitElement as y } from "../../../../../../shared/vendor/lit-element-lit-element.js";
|
|
4
|
-
import { property as a } from "../../../../../../shared/vendor/lit-reactive-element-property.js";
|
|
5
|
-
import { Component as f } from "../../../../../../shared/lib/lit/component.js";
|
|
6
|
-
import { scss as d } from "../../../../../../shared/lib/lit/scss.js";
|
|
7
|
-
import { OS_LEADERBOARD_CASINO_MEDAL_COIN as h } from "../../../../constants/tags.js";
|
|
8
|
-
import { osLeaderboardCasinoTheme as b } from "../../../../theme/styles.js";
|
|
9
|
-
import "../../../../../../shared/vendor/lit-html-unsafe-svg.js";
|
|
10
|
-
import v from "./medal-coin.scss.js";
|
|
11
|
-
var g = Object.defineProperty, x = Object.getOwnPropertyDescriptor, t = (i, o, l, s) => {
|
|
12
|
-
for (var e = s > 1 ? void 0 : s ? x(o, l) : o, p = i.length - 1, n; p >= 0; p--)
|
|
13
|
-
(n = i[p]) && (e = (s ? n(o, l, e) : n(e)) || e);
|
|
14
|
-
return s && e && g(o, l, e), e;
|
|
15
|
-
};
|
|
16
|
-
let r = class extends y {
|
|
17
|
-
constructor() {
|
|
18
|
-
super(...arguments), this.variant = "gold", this.rank = 1, this.size = 52;
|
|
19
|
-
}
|
|
20
|
-
willUpdate() {
|
|
21
|
-
this.style.setProperty("--coin-size", `${this.size}px`);
|
|
22
|
-
}
|
|
23
|
-
get displayLabel() {
|
|
24
|
-
return this.label ?? String(this.rank);
|
|
25
|
-
}
|
|
26
|
-
get medalAriaLabel() {
|
|
27
|
-
return this.label ?? `Rank ${this.rank} medal`;
|
|
28
|
-
}
|
|
29
|
-
render() {
|
|
30
|
-
const i = this.displayLabel;
|
|
31
|
-
return c`
|
|
32
|
-
<svg viewBox="0 0 72 72" role="img" aria-label=${this.medalAriaLabel}>
|
|
33
|
-
<circle cx="36" cy="36" r="34" fill="var(--coin-edge)" />
|
|
34
|
-
<circle cx="36" cy="34" r="32" fill="var(--coin-face)" />
|
|
35
|
-
<circle
|
|
36
|
-
cx="36"
|
|
37
|
-
cy="34"
|
|
38
|
-
r="25"
|
|
39
|
-
fill="none"
|
|
40
|
-
stroke="var(--coin-ring)"
|
|
41
|
-
stroke-width="2"
|
|
42
|
-
opacity="0.55"
|
|
43
|
-
/>
|
|
44
|
-
${m`<text
|
|
45
|
-
class="rank-text"
|
|
46
|
-
x="36"
|
|
47
|
-
y="44"
|
|
48
|
-
text-anchor="middle"
|
|
49
|
-
>${i}</text>`}
|
|
50
|
-
</svg>
|
|
51
|
-
`;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
r.styles = [b, d(v)];
|
|
55
|
-
t([
|
|
56
|
-
a({ type: String, reflect: !0 })
|
|
57
|
-
], r.prototype, "variant", 2);
|
|
58
|
-
t([
|
|
59
|
-
a({ type: Number })
|
|
60
|
-
], r.prototype, "rank", 2);
|
|
61
|
-
t([
|
|
62
|
-
a({ type: String })
|
|
63
|
-
], r.prototype, "label", 2);
|
|
64
|
-
t([
|
|
65
|
-
a({ type: Number })
|
|
66
|
-
], r.prototype, "size", 2);
|
|
67
|
-
r = t([
|
|
68
|
-
f({ selector: h })
|
|
69
|
-
], r);
|
|
70
|
-
export {
|
|
71
|
-
r as OsLeaderboardCasinoMedalCoin
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=medal-coin.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"medal-coin.js","sources":["../../../../../../../src/components/os-leaderboard-casino/sections/prize-section/components/medal-coin/medal-coin.ts"],"sourcesContent":["import { LitElement, html, svg } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Component } from '@oddsmith/lib/lit/component.js';\nimport { scss } from '@oddsmith/lib/lit/scss.js';\nimport { OS_LEADERBOARD_CASINO_MEDAL_COIN } from '@os-leaderboard-casino/constants/tags.js';\nimport { osLeaderboardCasinoTheme } from '@os-leaderboard-casino/theme/index.js';\nimport styles from './medal-coin.scss?inline';\n\nexport type MedalCoinVariant = 'gold' | 'silver' | 'bronze';\n\n/** Layered rank coin for podium slots — themed via glam CSS tokens. */\n@Component({ selector: OS_LEADERBOARD_CASINO_MEDAL_COIN })\nexport class OsLeaderboardCasinoMedalCoin extends LitElement {\n static styles = [osLeaderboardCasinoTheme, scss(styles)];\n\n @property({ type: String, reflect: true })\n variant: MedalCoinVariant = 'gold';\n\n @property({ type: Number })\n rank = 1;\n\n /** Optional label override (defaults to rank number). */\n @property({ type: String })\n label?: string;\n\n /** Pixel diameter — also sets `--coin-size` on the host. */\n @property({ type: Number })\n size = 52;\n\n protected override willUpdate(): void {\n this.style.setProperty('--coin-size', `${this.size}px`);\n }\n\n private get displayLabel(): string {\n return this.label ?? String(this.rank);\n }\n\n private get medalAriaLabel(): string {\n return this.label ?? `Rank ${this.rank} medal`;\n }\n\n render() {\n const text = this.displayLabel;\n return html`\n <svg viewBox=\"0 0 72 72\" role=\"img\" aria-label=${this.medalAriaLabel}>\n <circle cx=\"36\" cy=\"36\" r=\"34\" fill=\"var(--coin-edge)\" />\n <circle cx=\"36\" cy=\"34\" r=\"32\" fill=\"var(--coin-face)\" />\n <circle\n cx=\"36\"\n cy=\"34\"\n r=\"25\"\n fill=\"none\"\n stroke=\"var(--coin-ring)\"\n stroke-width=\"2\"\n opacity=\"0.55\"\n />\n ${svg`<text\n class=\"rank-text\"\n x=\"36\"\n y=\"44\"\n text-anchor=\"middle\"\n >${text}</text>`}\n </svg>\n `;\n }\n}\n"],"names":["OsLeaderboardCasinoMedalCoin","LitElement","text","html","svg","osLeaderboardCasinoTheme","scss","styles","__decorateClass","property","Component","OS_LEADERBOARD_CASINO_MEDAL_COIN"],"mappings":";;;;;;;;;;;;;;;AAYO,IAAMA,IAAN,cAA2CC,EAAW;AAAA,EAAtD,cAAA;AAAA,UAAA,GAAA,SAAA,GAIL,KAAA,UAA4B,QAG5B,KAAA,OAAO,GAQP,KAAA,OAAO;AAAA,EAAA;AAAA,EAEY,aAAmB;AACpC,SAAK,MAAM,YAAY,eAAe,GAAG,KAAK,IAAI,IAAI;AAAA,EACxD;AAAA,EAEA,IAAY,eAAuB;AACjC,WAAO,KAAK,SAAS,OAAO,KAAK,IAAI;AAAA,EACvC;AAAA,EAEA,IAAY,iBAAyB;AACnC,WAAO,KAAK,SAAS,QAAQ,KAAK,IAAI;AAAA,EACxC;AAAA,EAEA,SAAS;AACP,UAAMC,IAAO,KAAK;AAClB,WAAOC;AAAAA,uDAC4C,KAAK,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,UAYhEC;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,aAKGF,CAAI,SAAS;AAAA;AAAA;AAAA,EAGxB;AACF;AArDaF,EACJ,SAAS,CAACK,GAA0BC,EAAKC,CAAM,CAAC;AAGvDC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAH9BT,EAIX,WAAA,WAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GANfT,EAOX,WAAA,QAAA,CAAA;AAIAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAVfT,EAWX,WAAA,SAAA,CAAA;AAIAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAdfT,EAeX,WAAA,QAAA,CAAA;AAfWA,IAANQ,EAAA;AAAA,EADNE,EAAU,EAAE,UAAUC,EAAA,CAAkC;AAAA,GAC5CX,CAAA;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const o = ":host{display:inline-block;line-height:0;--coin-size: 52px}:host([variant=gold]){--coin-highlight: var(--gold-strong);--coin-face: var(--gold);--coin-edge: var(--gold-deep);--coin-ring: color-mix(in srgb, var(--gold-strong) 55%, transparent);--coin-shadow: drop-shadow(0 6px 16px rgba(0, 0, 0, .45));--coin-filter: drop-shadow(0 0 14px var(--gold-glow))}:host([variant=silver]){--coin-highlight: var(--silver);--coin-face: color-mix(in srgb, var(--silver) 78%, var(--surface-solid));--coin-edge: color-mix(in srgb, var(--silver) 52%, #5a6270);--coin-ring: color-mix(in srgb, var(--silver) 45%, transparent);--coin-shadow: drop-shadow(0 6px 14px rgba(0, 0, 0, .4));--coin-filter: none}:host([variant=bronze]){--coin-highlight: color-mix(in srgb, var(--bronze) 72%, #ffe8d4);--coin-face: var(--bronze);--coin-edge: color-mix(in srgb, var(--bronze) 62%, #6b4224);--coin-ring: color-mix(in srgb, var(--bronze) 45%, transparent);--coin-shadow: drop-shadow(0 6px 14px rgba(0, 0, 0, .4));--coin-filter: none}svg{display:block;width:var(--coin-size);height:var(--coin-size);filter:var(--coin-filter, var(--coin-shadow))}.rank-text{font-family:var(--font-display);font-size:calc(var(--coin-size) * .42 * var(--coin-text-scale, 1));font-weight:800;fill:#1a1208}";
|
|
2
|
-
export {
|
|
3
|
-
o as default
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=medal-coin.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"medal-coin.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import "../../../../shared/vendor/lit-reactive-element-reactive-element.js";
|
|
2
|
-
import { html as i } from "../../../../shared/vendor/lit-html-lit-html.js";
|
|
3
|
-
import "../../../../shared/vendor/lit-element-lit-element.js";
|
|
4
|
-
function d(e) {
|
|
5
|
-
return i`<section>
|
|
6
|
-
<div class="section-header">
|
|
7
|
-
<h2 class="section-title">${e.sectionTitle}</h2>
|
|
8
|
-
<span class="strategy" ?hidden=${!e.showStrategy}>${e.strategyLabel}</span>
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div class="podium">${e.renderPodium()}</div>
|
|
12
|
-
|
|
13
|
-
<div class="list" ?hidden=${!e.hasTierList}>${e.renderTierList()}</div>
|
|
14
|
-
</section>
|
|
15
|
-
`;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
d as default
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=prize-section.html.js.map
|
package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.html.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prize-section.html.js","sources":["../../../../../src/components/os-leaderboard-casino/sections/prize-section/prize-section.html?lit-html"],"sourcesContent":["\nimport { html } from 'lit';\n\nexport default function render(host) {\n return html`<section>\n <div class=\"section-header\">\n <h2 class=\"section-title\">${host.sectionTitle}</h2>\n <span class=\"strategy\" ?hidden=${!host.showStrategy}>${host.strategyLabel}</span>\n </div>\n\n <div class=\"podium\">${host.renderPodium()}</div>\n\n <div class=\"list\" ?hidden=${!host.hasTierList}>${host.renderTierList()}</div>\n</section>\n`;\n}\n"],"names":["render","host","html"],"mappings":";;;AAGe,SAASA,EAAOC,GAAM;AACnC,SAAOC;AAAAA;AAAAA,gCAEuBD,EAAK,YAAY;AAAA,qCACZ,CAACA,EAAK,YAAY,IAAIA,EAAK,aAAa;AAAA;AAAA;AAAA,wBAGrDA,EAAK,cAAc;AAAA;AAAA,8BAEb,CAACA,EAAK,WAAW,IAAIA,EAAK,eAAc,CAAE;AAAA;AAAA;AAGxE;"}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import "../../../../shared/vendor/lit-reactive-element-reactive-element.js";
|
|
2
|
-
import { html as n, nothing as a } from "../../../../shared/vendor/lit-html-lit-html.js";
|
|
3
|
-
import { LitElement as f } from "../../../../shared/vendor/lit-element-lit-element.js";
|
|
4
|
-
import { property as P } from "../../../../shared/vendor/lit-reactive-element-property.js";
|
|
5
|
-
import { Component as p } from "../../../../shared/lib/lit/component.js";
|
|
6
|
-
import { scss as v } from "../../../../shared/lib/lit/scss.js";
|
|
7
|
-
import { DEFAULT_PRIZE_TITLE as b } from "../../constants/defaults.js";
|
|
8
|
-
import { OS_LEADERBOARD_CASINO_PRIZE as $ } from "../../constants/tags.js";
|
|
9
|
-
import { osLeaderboardCasinoTheme as g } from "../../theme/styles.js";
|
|
10
|
-
import { iconService as d } from "../../services/icon.service.js";
|
|
11
|
-
import { labelText as u } from "../../types/data.js";
|
|
12
|
-
import { OS_LEADERBOARD_CASINO_PRIZE_CLICK as k } from "../../types/events.js";
|
|
13
|
-
import "./components/medal-coin/medal-coin.js";
|
|
14
|
-
import S from "./prize-section.html.js";
|
|
15
|
-
import _ from "./prize-section.scss.js";
|
|
16
|
-
var y = Object.defineProperty, z = Object.getOwnPropertyDescriptor, h = (r, t, e, i) => {
|
|
17
|
-
for (var s = i > 1 ? void 0 : i ? z(t, e) : t, o = r.length - 1, c; o >= 0; o--)
|
|
18
|
-
(c = r[o]) && (s = (i ? c(t, e, s) : c(s)) || s);
|
|
19
|
-
return i && s && y(t, e, s), s;
|
|
20
|
-
};
|
|
21
|
-
function F(r) {
|
|
22
|
-
return r.rankFrom === r.rankTo ? `#${r.rankFrom}` : `#${r.rankFrom}–${r.rankTo}`;
|
|
23
|
-
}
|
|
24
|
-
function m(r, t) {
|
|
25
|
-
return r.find(
|
|
26
|
-
(e) => e.rankFrom === t && e.rankTo === t
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
function C(r) {
|
|
30
|
-
return r.filter(
|
|
31
|
-
(t) => !(t.rankFrom === t.rankTo && t.rankFrom >= 1 && t.rankFrom <= 3)
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
let l = class extends f {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments), this.restPrizes = [];
|
|
37
|
-
}
|
|
38
|
-
get sectionTitle() {
|
|
39
|
-
return this.section?.title ?? b;
|
|
40
|
-
}
|
|
41
|
-
get showStrategy() {
|
|
42
|
-
return !!this.section?.allocationStrategy;
|
|
43
|
-
}
|
|
44
|
-
get strategyLabel() {
|
|
45
|
-
return this.section?.allocationStrategy === "SPLIT_PRIZE" ? "Split Prize" : "Best Prize";
|
|
46
|
-
}
|
|
47
|
-
get hasTierList() {
|
|
48
|
-
return this.restPrizes.length > 0;
|
|
49
|
-
}
|
|
50
|
-
willUpdate() {
|
|
51
|
-
const r = this.section?.prizePackage?.prizes ?? [];
|
|
52
|
-
this.firstPrize = m(r, 1), this.secondPrize = m(r, 2), this.thirdPrize = m(r, 3), this.restPrizes = C(r).sort(
|
|
53
|
-
(t, e) => t.rankFrom - e.rankFrom
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
onPrizeClick(r) {
|
|
57
|
-
this.dispatchEvent(
|
|
58
|
-
new CustomEvent(k, {
|
|
59
|
-
detail: { prize: r },
|
|
60
|
-
bubbles: !0,
|
|
61
|
-
composed: !0
|
|
62
|
-
})
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
formatValue(r) {
|
|
66
|
-
if (r.value == null) return "";
|
|
67
|
-
try {
|
|
68
|
-
return new Intl.NumberFormat("en-US", {
|
|
69
|
-
style: "currency",
|
|
70
|
-
currency: r.currency ?? "USD",
|
|
71
|
-
maximumFractionDigits: 0
|
|
72
|
-
}).format(r.value);
|
|
73
|
-
} catch {
|
|
74
|
-
return `${r.value} ${r.currency ?? ""}`.trim();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
renderPodiumSlot(r, t) {
|
|
78
|
-
const e = {
|
|
79
|
-
first: "gold",
|
|
80
|
-
second: "silver",
|
|
81
|
-
third: "bronze"
|
|
82
|
-
}, i = { first: 1, second: 2, third: 3 }, s = {
|
|
83
|
-
first: "Champion",
|
|
84
|
-
second: "2nd place",
|
|
85
|
-
third: "3rd place"
|
|
86
|
-
}, o = t === "first" ? 68 : 52;
|
|
87
|
-
return n`
|
|
88
|
-
<button class="slot ${t}" @click=${() => this.onPrizeClick(r)}>
|
|
89
|
-
<div class="coin">
|
|
90
|
-
<os-leaderboard-casino-medal-coin
|
|
91
|
-
variant=${e[t]}
|
|
92
|
-
rank=${i[t]}
|
|
93
|
-
size=${o}
|
|
94
|
-
></os-leaderboard-casino-medal-coin>
|
|
95
|
-
</div>
|
|
96
|
-
<div class="place">${s[t]}</div>
|
|
97
|
-
<div class="name">${u(r.label)}</div>
|
|
98
|
-
<div class="value">${this.formatValue(r)}</div>
|
|
99
|
-
</button>
|
|
100
|
-
`;
|
|
101
|
-
}
|
|
102
|
-
renderPodium() {
|
|
103
|
-
return n`
|
|
104
|
-
${this.secondPrize ? this.renderPodiumSlot(this.secondPrize, "second") : a}
|
|
105
|
-
${this.firstPrize ? this.renderPodiumSlot(this.firstPrize, "first") : a}
|
|
106
|
-
${this.thirdPrize ? this.renderPodiumSlot(this.thirdPrize, "third") : a}
|
|
107
|
-
`;
|
|
108
|
-
}
|
|
109
|
-
renderTierList() {
|
|
110
|
-
return n`${this.restPrizes.map(
|
|
111
|
-
(r) => n`
|
|
112
|
-
<button class="tier" @click=${() => this.onPrizeClick(r)}>
|
|
113
|
-
<span class="icon">${d.get(d.resolvePrizeIconName(r.label)).svg()}</span>
|
|
114
|
-
<span class="info">
|
|
115
|
-
<span class="name">${u(r.label)}</span>
|
|
116
|
-
<span class="range">Rank ${F(r)}</span>
|
|
117
|
-
</span>
|
|
118
|
-
<span class="value">${this.formatValue(r)}</span>
|
|
119
|
-
</button>
|
|
120
|
-
`
|
|
121
|
-
)}`;
|
|
122
|
-
}
|
|
123
|
-
render() {
|
|
124
|
-
return (this.section?.prizePackage?.prizes ?? []).length ? S(this) : a;
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
l.styles = [g, v(_)];
|
|
128
|
-
h([
|
|
129
|
-
P({ attribute: !1 })
|
|
130
|
-
], l.prototype, "section", 2);
|
|
131
|
-
l = h([
|
|
132
|
-
p({ selector: $ })
|
|
133
|
-
], l);
|
|
134
|
-
export {
|
|
135
|
-
l as OsLeaderboardCasinoPrize
|
|
136
|
-
};
|
|
137
|
-
//# sourceMappingURL=prize-section.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prize-section.js","sources":["../../../../../src/components/os-leaderboard-casino/sections/prize-section/prize-section.ts"],"sourcesContent":["import { LitElement, html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Component } from '@oddsmith/lib/lit/component.js';\nimport { scss } from '@oddsmith/lib/lit/scss.js';\nimport { DEFAULT_PRIZE_TITLE } from '@os-leaderboard-casino/constants/defaults.js';\nimport { OS_LEADERBOARD_CASINO_PRIZE } from '@os-leaderboard-casino/constants/tags.js';\nimport { osLeaderboardCasinoTheme } from '@os-leaderboard-casino/theme/index.js';\nimport {\n labelText,\n type QuizPrize,\n} from '@os-leaderboard-casino/types/data.js';\nimport { iconService } from '@os-leaderboard-casino/services/icon.service.js';\nimport { OS_LEADERBOARD_CASINO_PRIZE_CLICK } from '@os-leaderboard-casino/types/events.js';\nimport type { OsLeaderboardCasinoPrizeSection } from '@os-leaderboard-casino/types/sections.js';\nimport type { PrizeSectionHost } from './prize-section.host.js';\nimport './components/medal-coin/medal-coin.js';\nimport renderTemplate from './prize-section.html?lit-html';\nimport styles from './prize-section.scss?inline';\n\nfunction rankRange(prize: QuizPrize): string {\n return prize.rankFrom === prize.rankTo\n ? `#${prize.rankFrom}`\n : `#${prize.rankFrom}–${prize.rankTo}`;\n}\n\nfunction podiumPrizeForRank(\n prizes: QuizPrize[],\n rank: 1 | 2 | 3,\n): QuizPrize | undefined {\n return prizes.find(\n (prize) => prize.rankFrom === rank && prize.rankTo === rank,\n );\n}\n\nfunction tierPrizesFrom(prizes: QuizPrize[]): QuizPrize[] {\n return prizes.filter(\n (prize) =>\n !(\n prize.rankFrom === prize.rankTo &&\n prize.rankFrom >= 1 &&\n prize.rankFrom <= 3\n ),\n );\n}\n\n/** Top-3 metallic podium showcase + remaining prize tiers. */\n@Component({ selector: OS_LEADERBOARD_CASINO_PRIZE })\nexport class OsLeaderboardCasinoPrize\n extends LitElement\n implements PrizeSectionHost\n{\n static styles = [osLeaderboardCasinoTheme, scss(styles)];\n\n @property({ attribute: false })\n section!: OsLeaderboardCasinoPrizeSection;\n\n private restPrizes: QuizPrize[] = [];\n private secondPrize?: QuizPrize;\n private firstPrize?: QuizPrize;\n private thirdPrize?: QuizPrize;\n\n get sectionTitle(): string {\n return this.section?.title ?? DEFAULT_PRIZE_TITLE;\n }\n\n get showStrategy(): boolean {\n return Boolean(this.section?.allocationStrategy);\n }\n\n get strategyLabel(): string {\n return this.section?.allocationStrategy === 'SPLIT_PRIZE'\n ? 'Split Prize'\n : 'Best Prize';\n }\n\n get hasTierList(): boolean {\n return this.restPrizes.length > 0;\n }\n\n willUpdate() {\n const prizes = this.section?.prizePackage?.prizes ?? [];\n this.firstPrize = podiumPrizeForRank(prizes, 1);\n this.secondPrize = podiumPrizeForRank(prizes, 2);\n this.thirdPrize = podiumPrizeForRank(prizes, 3);\n this.restPrizes = tierPrizesFrom(prizes).sort(\n (left, right) => left.rankFrom - right.rankFrom,\n );\n }\n\n private onPrizeClick(prize: QuizPrize) {\n this.dispatchEvent(\n new CustomEvent(OS_LEADERBOARD_CASINO_PRIZE_CLICK, {\n detail: { prize },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private formatValue(prize: QuizPrize): string {\n if (prize.value == null) return '';\n try {\n return new Intl.NumberFormat('en-US', {\n style: 'currency',\n currency: prize.currency ?? 'USD',\n maximumFractionDigits: 0,\n }).format(prize.value);\n } catch {\n return `${prize.value} ${prize.currency ?? ''}`.trim();\n }\n }\n\n private renderPodiumSlot(\n prize: QuizPrize,\n place: 'first' | 'second' | 'third',\n ) {\n const variants = {\n first: 'gold',\n second: 'silver',\n third: 'bronze',\n } as const;\n const ranks = { first: 1, second: 2, third: 3 };\n const labels = {\n first: 'Champion',\n second: '2nd place',\n third: '3rd place',\n };\n const coinSize = place === 'first' ? 68 : 52;\n return html`\n <button class=\"slot ${place}\" @click=${() => this.onPrizeClick(prize)}>\n <div class=\"coin\">\n <os-leaderboard-casino-medal-coin\n variant=${variants[place]}\n rank=${ranks[place]}\n size=${coinSize}\n ></os-leaderboard-casino-medal-coin>\n </div>\n <div class=\"place\">${labels[place]}</div>\n <div class=\"name\">${labelText(prize.label)}</div>\n <div class=\"value\">${this.formatValue(prize)}</div>\n </button>\n `;\n }\n\n renderPodium() {\n return html`\n ${this.secondPrize\n ? this.renderPodiumSlot(this.secondPrize, 'second')\n : nothing}\n ${this.firstPrize\n ? this.renderPodiumSlot(this.firstPrize, 'first')\n : nothing}\n ${this.thirdPrize\n ? this.renderPodiumSlot(this.thirdPrize, 'third')\n : nothing}\n `;\n }\n\n renderTierList() {\n return html`${this.restPrizes.map(\n (prize) => html`\n <button class=\"tier\" @click=${() => this.onPrizeClick(prize)}>\n <span class=\"icon\">${iconService.get(iconService.resolvePrizeIconName(prize.label)).svg()}</span>\n <span class=\"info\">\n <span class=\"name\">${labelText(prize.label)}</span>\n <span class=\"range\">Rank ${rankRange(prize)}</span>\n </span>\n <span class=\"value\">${this.formatValue(prize)}</span>\n </button>\n `,\n )}`;\n }\n\n render() {\n const prizes = this.section?.prizePackage?.prizes ?? [];\n if (!prizes.length) return nothing;\n return renderTemplate(this);\n }\n}\n"],"names":["rankRange","prize","podiumPrizeForRank","prizes","rank","tierPrizesFrom","OsLeaderboardCasinoPrize","LitElement","DEFAULT_PRIZE_TITLE","left","right","OS_LEADERBOARD_CASINO_PRIZE_CLICK","place","variants","ranks","labels","coinSize","html","labelText","nothing","iconService","renderTemplate","osLeaderboardCasinoTheme","scss","styles","__decorateClass","property","Component","OS_LEADERBOARD_CASINO_PRIZE"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,SAASA,EAAUC,GAA0B;AAC3C,SAAOA,EAAM,aAAaA,EAAM,SAC5B,IAAIA,EAAM,QAAQ,KAClB,IAAIA,EAAM,QAAQ,IAAIA,EAAM,MAAM;AACxC;AAEA,SAASC,EACPC,GACAC,GACuB;AACvB,SAAOD,EAAO;AAAA,IACZ,CAACF,MAAUA,EAAM,aAAaG,KAAQH,EAAM,WAAWG;AAAA,EAAA;AAE3D;AAEA,SAASC,EAAeF,GAAkC;AACxD,SAAOA,EAAO;AAAA,IACZ,CAACF,MACC,EACEA,EAAM,aAAaA,EAAM,UACzBA,EAAM,YAAY,KAClBA,EAAM,YAAY;AAAA,EAAA;AAG1B;AAIO,IAAMK,IAAN,cACGC,EAEV;AAAA,EAHO,cAAA;AAAA,UAAA,GAAA,SAAA,GASL,KAAQ,aAA0B,CAAA;AAAA,EAAC;AAAA,EAKnC,IAAI,eAAuB;AACzB,WAAO,KAAK,SAAS,SAASC;AAAA,EAChC;AAAA,EAEA,IAAI,eAAwB;AAC1B,WAAO,EAAQ,KAAK,SAAS;AAAA,EAC/B;AAAA,EAEA,IAAI,gBAAwB;AAC1B,WAAO,KAAK,SAAS,uBAAuB,gBACxC,gBACA;AAAA,EACN;AAAA,EAEA,IAAI,cAAuB;AACzB,WAAO,KAAK,WAAW,SAAS;AAAA,EAClC;AAAA,EAEA,aAAa;AACX,UAAML,IAAS,KAAK,SAAS,cAAc,UAAU,CAAA;AACrD,SAAK,aAAaD,EAAmBC,GAAQ,CAAC,GAC9C,KAAK,cAAcD,EAAmBC,GAAQ,CAAC,GAC/C,KAAK,aAAaD,EAAmBC,GAAQ,CAAC,GAC9C,KAAK,aAAaE,EAAeF,CAAM,EAAE;AAAA,MACvC,CAACM,GAAMC,MAAUD,EAAK,WAAWC,EAAM;AAAA,IAAA;AAAA,EAE3C;AAAA,EAEQ,aAAaT,GAAkB;AACrC,SAAK;AAAA,MACH,IAAI,YAAYU,GAAmC;AAAA,QACjD,QAAQ,EAAE,OAAAV,EAAA;AAAA,QACV,SAAS;AAAA,QACT,UAAU;AAAA,MAAA,CACX;AAAA,IAAA;AAAA,EAEL;AAAA,EAEQ,YAAYA,GAA0B;AAC5C,QAAIA,EAAM,SAAS,KAAM,QAAO;AAChC,QAAI;AACF,aAAO,IAAI,KAAK,aAAa,SAAS;AAAA,QACpC,OAAO;AAAA,QACP,UAAUA,EAAM,YAAY;AAAA,QAC5B,uBAAuB;AAAA,MAAA,CACxB,EAAE,OAAOA,EAAM,KAAK;AAAA,IACvB,QAAQ;AACN,aAAO,GAAGA,EAAM,KAAK,IAAIA,EAAM,YAAY,EAAE,GAAG,KAAA;AAAA,IAClD;AAAA,EACF;AAAA,EAEQ,iBACNA,GACAW,GACA;AACA,UAAMC,IAAW;AAAA,MACf,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA,GAEHC,IAAQ,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,EAAA,GACtCC,IAAS;AAAA,MACb,OAAO;AAAA,MACP,QAAQ;AAAA,MACR,OAAO;AAAA,IAAA,GAEHC,IAAWJ,MAAU,UAAU,KAAK;AAC1C,WAAOK;AAAAA,4BACiBL,CAAK,YAAY,MAAM,KAAK,aAAaX,CAAK,CAAC;AAAA;AAAA;AAAA,sBAGrDY,EAASD,CAAK,CAAC;AAAA,mBAClBE,EAAMF,CAAK,CAAC;AAAA,mBACZI,CAAQ;AAAA;AAAA;AAAA,6BAGED,EAAOH,CAAK,CAAC;AAAA,4BACdM,EAAUjB,EAAM,KAAK,CAAC;AAAA,6BACrB,KAAK,YAAYA,CAAK,CAAC;AAAA;AAAA;AAAA,EAGlD;AAAA,EAEA,eAAe;AACb,WAAOgB;AAAAA,QACH,KAAK,cACH,KAAK,iBAAiB,KAAK,aAAa,QAAQ,IAChDE,CAAO;AAAA,QACT,KAAK,aACH,KAAK,iBAAiB,KAAK,YAAY,OAAO,IAC9CA,CAAO;AAAA,QACT,KAAK,aACH,KAAK,iBAAiB,KAAK,YAAY,OAAO,IAC9CA,CAAO;AAAA;AAAA,EAEf;AAAA,EAEA,iBAAiB;AACf,WAAOF,IAAO,KAAK,WAAW;AAAA,MAC5B,CAAChB,MAAUgB;AAAAA,sCACqB,MAAM,KAAK,aAAahB,CAAK,CAAC;AAAA,+BACrCmB,EAAY,IAAIA,EAAY,qBAAqBnB,EAAM,KAAK,CAAC,EAAE,KAAK;AAAA;AAAA,iCAElEiB,EAAUjB,EAAM,KAAK,CAAC;AAAA,uCAChBD,EAAUC,CAAK,CAAC;AAAA;AAAA,gCAEvB,KAAK,YAAYA,CAAK,CAAC;AAAA;AAAA;AAAA,IAAA,CAGlD;AAAA,EACH;AAAA,EAEA,SAAS;AAEP,YADe,KAAK,SAAS,cAAc,UAAU,CAAA,GACzC,SACLoB,EAAe,IAAI,IADCF;AAAAA,EAE7B;AACF;AAnIab,EAIJ,SAAS,CAACgB,GAA0BC,EAAKC,CAAM,CAAC;AAGvDC,EAAA;AAAA,EADCC,EAAS,EAAE,WAAW,GAAA,CAAO;AAAA,GANnBpB,EAOX,WAAA,WAAA,CAAA;AAPWA,IAANmB,EAAA;AAAA,EADNE,EAAU,EAAE,UAAUC,EAAA,CAA6B;AAAA,GACvCtB,CAAA;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const o = '@charset "UTF-8";:host{display:block;width:100%}.strategy{font-size:9.5px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:4px 10px;border-radius:999px;background:var(--violet-soft);border:1px solid color-mix(in srgb,var(--violet) 40%,transparent);color:#c9adff}.podium{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;align-items:end}.slot{position:relative;overflow:hidden;border-radius:var(--radius-sm);padding:16px 12px 14px;text-align:center;border:1px solid var(--panel-border);background:var(--panel-bg);box-shadow:var(--panel-shadow);transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.slot:hover{transform:translateY(-3px)}.slot.first{order:2;padding-top:22px;padding-bottom:20px;border-color:var(--panel-border);background:radial-gradient(120% 90% at 50% -10%,color-mix(in srgb,var(--gold) 18%,transparent),transparent 60%),var(--panel-bg);box-shadow:var(--panel-shadow)}.slot.second{order:1;border-color:var(--panel-border);background:var(--panel-bg)}.slot.third{order:3;border-color:var(--panel-border);background:var(--panel-bg)}.coin{display:flex;justify-content:center;min-height:52px}.slot.first .coin{min-height:68px}.place{margin-top:7px;font-size:9px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--text-faint)}.slot.first .place{color:var(--gold)}.slot.second .place{color:var(--silver)}.slot.third .place{color:var(--bronze)}.slot .name{margin-top:5px;font-size:12px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.slot .value{margin-top:6px;font-family:var(--font-mono);font-size:16px;font-weight:800;color:var(--gold-strong)}.slot.first .value{font-size:20px;text-shadow:0 0 18px var(--gold-glow)}.list{display:flex;flex-direction:column;gap:7px;margin-top:10px}.tier{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font-family:var(--font-body);padding:11px 14px;background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:var(--radius-sm);box-shadow:var(--panel-shadow);transition:border-color var(--transition-fast)}.tier:hover{border-color:var(--hairline-gold)}.tier .icon{flex:none;display:grid;place-items:center;line-height:0}.tier .icon svg{width:28px;height:28px}.tier .info{flex:1;min-width:0}.tier .name{font-size:13px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tier .range{margin-top:1px;font-size:11px;color:var(--text-dim)}.tier .value{flex:none;font-family:var(--font-mono);font-size:13.5px;font-weight:700;color:var(--gold)}@media(max-width:480px){.slot .value{font-size:13.5px}.slot.first .value{font-size:16px}}@media(max-width:420px){.podium{gap:8px}.slot{padding:14px 8px 12px}.slot.first{padding-top:18px;padding-bottom:16px}.slot .name{font-size:11px;letter-spacing:-.01em}}';
|
|
2
|
-
export {
|
|
3
|
-
o as default
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=prize-section.scss.js.map
|
package/dist/components/os-leaderboard-casino/sections/prize-section/prize-section.scss.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prize-section.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { statIcons } from '../stat-icons.js';
|
|
3
|
-
export type StatBandAccent = 'participants' | 'prizes' | 'ends';
|
|
4
|
-
export type StatBandIcon = keyof typeof statIcons;
|
|
5
|
-
export type StatBandSegment = 'solo' | 'start' | 'middle' | 'end';
|
|
6
|
-
/** Centered KPI band — accent stripe, icon ring, stacked value + label. */
|
|
7
|
-
export declare class OsLeaderboardCasinoStatBand extends LitElement {
|
|
8
|
-
static styles: import('lit').CSSResult[];
|
|
9
|
-
accent: StatBandAccent;
|
|
10
|
-
icon: StatBandIcon;
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
segment: StatBandSegment;
|
|
14
|
-
compact: boolean;
|
|
15
|
-
highlight: boolean;
|
|
16
|
-
render(): import('lit').TemplateResult<1>;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { statIcons } from '../stat-icons.js';
|
|
3
|
-
export type StatCardAccent = 'participants' | 'prizes' | 'ends';
|
|
4
|
-
export type StatCardIcon = keyof typeof statIcons;
|
|
5
|
-
/** Classic glow stat tile — rounded glass cards with soft accent wash. */
|
|
6
|
-
export declare class OsLeaderboardCasinoStatCard extends LitElement {
|
|
7
|
-
static styles: import('lit').CSSResult[];
|
|
8
|
-
accent: StatCardAccent;
|
|
9
|
-
icon: StatCardIcon;
|
|
10
|
-
value: string;
|
|
11
|
-
label: string;
|
|
12
|
-
compact: boolean;
|
|
13
|
-
glow: boolean;
|
|
14
|
-
render(): import('lit').TemplateResult<1>;
|
|
15
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { statIcons } from '../stat-icons.js';
|
|
3
|
-
export type StatChipAccent = 'participants' | 'prizes' | 'ends';
|
|
4
|
-
export type StatChipIcon = keyof typeof statIcons;
|
|
5
|
-
export type StatChipSegment = 'solo' | 'start' | 'middle' | 'end';
|
|
6
|
-
/** Compact chip readout — inline icon + value, label tucked below. */
|
|
7
|
-
export declare class OsLeaderboardCasinoStatChip extends LitElement {
|
|
8
|
-
static styles: import('lit').CSSResult[];
|
|
9
|
-
accent: StatChipAccent;
|
|
10
|
-
icon: StatChipIcon;
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
segment: StatChipSegment;
|
|
14
|
-
compact: boolean;
|
|
15
|
-
highlight: boolean;
|
|
16
|
-
render(): import('lit').TemplateResult<1>;
|
|
17
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { statIcons } from '../stat-icons.js';
|
|
3
|
-
export type StatGaugeAccent = 'participants' | 'prizes' | 'ends';
|
|
4
|
-
export type StatGaugeIcon = keyof typeof statIcons;
|
|
5
|
-
/** Telemetry gauge tile — variant B stat readout from v0 stat-strip. */
|
|
6
|
-
export declare class OsLeaderboardCasinoStatGauge extends LitElement {
|
|
7
|
-
static styles: import('lit').CSSResult[];
|
|
8
|
-
accent: StatGaugeAccent;
|
|
9
|
-
icon: StatGaugeIcon;
|
|
10
|
-
value: string;
|
|
11
|
-
label: string;
|
|
12
|
-
compact: boolean;
|
|
13
|
-
render(): import('lit').TemplateResult<1>;
|
|
14
|
-
}
|
package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { iconService as t } from "../../../services/icon.service.js";
|
|
2
|
-
const o = {
|
|
3
|
-
users: () => t.svg("stat.users"),
|
|
4
|
-
gift: () => t.svg("stat.gift"),
|
|
5
|
-
clock: () => t.svg("stat.clock"),
|
|
6
|
-
trophy: () => t.svg("win.trophy")
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
o as statIcons
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=stat-icons.js.map
|
package/dist/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stat-icons.js","sources":["../../../../../../src/components/os-leaderboard-casino/sections/stats-section/components/stat-icons.ts"],"sourcesContent":["import { iconService } from '@os-leaderboard-casino/services/icon.service.js';\nimport type { TemplateResult } from 'lit';\n\nexport type StatIconName = 'users' | 'gift' | 'clock' | 'trophy';\n\ntype IconFn = () => TemplateResult;\n\nexport const statIcons: Record<StatIconName, IconFn> = {\n users: () => iconService.svg('stat.users'),\n gift: () => iconService.svg('stat.gift'),\n clock: () => iconService.svg('stat.clock'),\n trophy: () => iconService.svg('win.trophy'),\n};\n"],"names":["statIcons","iconService"],"mappings":";AAOO,MAAMA,IAA0C;AAAA,EACrD,OAAO,MAAMC,EAAY,IAAI,YAAY;AAAA,EACzC,MAAM,MAAMA,EAAY,IAAI,WAAW;AAAA,EACvC,OAAO,MAAMA,EAAY,IAAI,YAAY;AAAA,EACzC,QAAQ,MAAMA,EAAY,IAAI,YAAY;AAC5C;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { statIcons } from '../stat-icons.js';
|
|
3
|
-
export type StatMeterAccent = 'participants' | 'prizes' | 'ends';
|
|
4
|
-
export type StatMeterIcon = keyof typeof statIcons;
|
|
5
|
-
export type StatMeterSegment = 'solo' | 'start' | 'middle' | 'end';
|
|
6
|
-
/** Meter readout — label + value with animated accent fill bar. */
|
|
7
|
-
export declare class OsLeaderboardCasinoStatMeter extends LitElement {
|
|
8
|
-
static styles: import('lit').CSSResult[];
|
|
9
|
-
accent: StatMeterAccent;
|
|
10
|
-
icon: StatMeterIcon;
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
segment: StatMeterSegment;
|
|
14
|
-
compact: boolean;
|
|
15
|
-
highlight: boolean;
|
|
16
|
-
render(): import('lit').TemplateResult<1>;
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import { statIcons } from '../stat-icons.js';
|
|
3
|
-
export type StatRailAccent = 'participants' | 'prizes' | 'ends' | 'biggestWin';
|
|
4
|
-
export type StatRailIcon = keyof typeof statIcons;
|
|
5
|
-
export type StatRailSegment = 'solo' | 'start' | 'middle' | 'end';
|
|
6
|
-
/** Horizontal rail segment — icon well + label/value with accent shimmer. */
|
|
7
|
-
export declare class OsLeaderboardCasinoStatRail extends LitElement {
|
|
8
|
-
static styles: import('lit').CSSResult[];
|
|
9
|
-
accent: StatRailAccent;
|
|
10
|
-
icon: StatRailIcon;
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
segment: StatRailSegment;
|
|
14
|
-
compact: boolean;
|
|
15
|
-
highlight: boolean;
|
|
16
|
-
render(): import('lit').TemplateResult<1>;
|
|
17
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import "../../../../../../shared/vendor/lit-reactive-element-reactive-element.js";
|
|
2
|
-
import { html as m } from "../../../../../../shared/vendor/lit-html-lit-html.js";
|
|
3
|
-
import { LitElement as h } from "../../../../../../shared/vendor/lit-element-lit-element.js";
|
|
4
|
-
import { property as o } from "../../../../../../shared/vendor/lit-reactive-element-property.js";
|
|
5
|
-
import { Component as f } from "../../../../../../shared/lib/lit/component.js";
|
|
6
|
-
import { scss as v } from "../../../../../../shared/lib/lit/scss.js";
|
|
7
|
-
import { OS_LEADERBOARD_CASINO_STAT_RAIL as y } from "../../../../constants/tags.js";
|
|
8
|
-
import { osLeaderboardCasinoTheme as u } from "../../../../theme/styles.js";
|
|
9
|
-
import "../../../../../../shared/vendor/lit-html-unsafe-svg.js";
|
|
10
|
-
import { statIcons as c } from "../stat-icons.js";
|
|
11
|
-
import d from "./stat-rail.scss.js";
|
|
12
|
-
var g = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, e = (s, i, a, p) => {
|
|
13
|
-
for (var r = p > 1 ? void 0 : p ? _(i, a) : i, l = s.length - 1, n; l >= 0; l--)
|
|
14
|
-
(n = s[l]) && (r = (p ? n(i, a, r) : n(r)) || r);
|
|
15
|
-
return p && r && g(i, a, r), r;
|
|
16
|
-
};
|
|
17
|
-
let t = class extends h {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments), this.accent = "participants", this.icon = "users", this.value = "", this.label = "", this.segment = "solo", this.compact = !1, this.highlight = !1;
|
|
20
|
-
}
|
|
21
|
-
render() {
|
|
22
|
-
const s = c[this.icon] ?? c.users;
|
|
23
|
-
return m`
|
|
24
|
-
<div class="rail">
|
|
25
|
-
<div class="icon-well">${s()}</div>
|
|
26
|
-
<div class="copy">
|
|
27
|
-
<div class="label">${this.label}</div>
|
|
28
|
-
<div class="value">${this.value}</div>
|
|
29
|
-
</div>
|
|
30
|
-
<span class="shimmer" aria-hidden="true"></span>
|
|
31
|
-
</div>
|
|
32
|
-
`;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
t.styles = [u, v(d)];
|
|
36
|
-
e([
|
|
37
|
-
o({ type: String, reflect: !0 })
|
|
38
|
-
], t.prototype, "accent", 2);
|
|
39
|
-
e([
|
|
40
|
-
o({ type: String })
|
|
41
|
-
], t.prototype, "icon", 2);
|
|
42
|
-
e([
|
|
43
|
-
o({ type: String })
|
|
44
|
-
], t.prototype, "value", 2);
|
|
45
|
-
e([
|
|
46
|
-
o({ type: String })
|
|
47
|
-
], t.prototype, "label", 2);
|
|
48
|
-
e([
|
|
49
|
-
o({ type: String, reflect: !0 })
|
|
50
|
-
], t.prototype, "segment", 2);
|
|
51
|
-
e([
|
|
52
|
-
o({ type: Boolean, reflect: !0 })
|
|
53
|
-
], t.prototype, "compact", 2);
|
|
54
|
-
e([
|
|
55
|
-
o({ type: Boolean, reflect: !0 })
|
|
56
|
-
], t.prototype, "highlight", 2);
|
|
57
|
-
t = e([
|
|
58
|
-
f({ selector: y })
|
|
59
|
-
], t);
|
|
60
|
-
export {
|
|
61
|
-
t as OsLeaderboardCasinoStatRail
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=stat-rail.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stat-rail.js","sources":["../../../../../../../src/components/os-leaderboard-casino/sections/stats-section/components/stat-rail/stat-rail.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { Component } from '@oddsmith/lib/lit/component.js';\nimport { scss } from '@oddsmith/lib/lit/scss.js';\nimport { OS_LEADERBOARD_CASINO_STAT_RAIL } from '@os-leaderboard-casino/constants/tags.js';\nimport { osLeaderboardCasinoTheme } from '@os-leaderboard-casino/theme/index.js';\nimport { statIcons } from '../stat-icons.js';\nimport styles from './stat-rail.scss?inline';\n\nexport type StatRailAccent = 'participants' | 'prizes' | 'ends' | 'biggestWin';\nexport type StatRailIcon = keyof typeof statIcons;\nexport type StatRailSegment = 'solo' | 'start' | 'middle' | 'end';\n\n/** Horizontal rail segment — icon well + label/value with accent shimmer. */\n@Component({ selector: OS_LEADERBOARD_CASINO_STAT_RAIL })\nexport class OsLeaderboardCasinoStatRail extends LitElement {\n static styles = [osLeaderboardCasinoTheme, scss(styles)];\n\n @property({ type: String, reflect: true })\n accent: StatRailAccent = 'participants';\n\n @property({ type: String })\n icon: StatRailIcon = 'users';\n\n @property({ type: String })\n value = '';\n\n @property({ type: String })\n label = '';\n\n @property({ type: String, reflect: true })\n segment: StatRailSegment = 'solo';\n\n @property({ type: Boolean, reflect: true })\n compact = false;\n\n @property({ type: Boolean, reflect: true })\n highlight = false;\n\n render() {\n const icon = statIcons[this.icon] ?? statIcons.users;\n return html`\n <div class=\"rail\">\n <div class=\"icon-well\">${icon()}</div>\n <div class=\"copy\">\n <div class=\"label\">${this.label}</div>\n <div class=\"value\">${this.value}</div>\n </div>\n <span class=\"shimmer\" aria-hidden=\"true\"></span>\n </div>\n `;\n }\n}\n"],"names":["OsLeaderboardCasinoStatRail","LitElement","icon","statIcons","html","osLeaderboardCasinoTheme","scss","styles","__decorateClass","property","Component","OS_LEADERBOARD_CASINO_STAT_RAIL"],"mappings":";;;;;;;;;;;;;;;;AAeO,IAAMA,IAAN,cAA0CC,EAAW;AAAA,EAArD,cAAA;AAAA,UAAA,GAAA,SAAA,GAIL,KAAA,SAAyB,gBAGzB,KAAA,OAAqB,SAGrB,KAAA,QAAQ,IAGR,KAAA,QAAQ,IAGR,KAAA,UAA2B,QAG3B,KAAA,UAAU,IAGV,KAAA,YAAY;AAAA,EAAA;AAAA,EAEZ,SAAS;AACP,UAAMC,IAAOC,EAAU,KAAK,IAAI,KAAKA,EAAU;AAC/C,WAAOC;AAAAA;AAAAA,iCAEsBF,GAAM;AAAA;AAAA,+BAER,KAAK,KAAK;AAAA,+BACV,KAAK,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvC;AACF;AArCaF,EACJ,SAAS,CAACK,GAA0BC,EAAKC,CAAM,CAAC;AAGvDC,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAH9BT,EAIX,WAAA,UAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GANfT,EAOX,WAAA,QAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GATfT,EAUX,WAAA,SAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,OAAA,CAAQ;AAAA,GAZfT,EAaX,WAAA,SAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,SAAS,IAAM;AAAA,GAf9BT,EAgBX,WAAA,WAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GAlB/BT,EAmBX,WAAA,WAAA,CAAA;AAGAQ,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,SAAS,SAAS,IAAM;AAAA,GArB/BT,EAsBX,WAAA,aAAA,CAAA;AAtBWA,IAANQ,EAAA;AAAA,EADNE,EAAU,EAAE,UAAUC,EAAA,CAAiC;AAAA,GAC3CX,CAAA;"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
const t = ':host{display:block;flex:1;min-width:0}:host([hidden]){display:none}.rail{position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;height:100%;box-sizing:border-box;padding:16px 18px 18px;border:1px solid var(--panel-border);border-radius:var(--radius-sm);background:var(--panel-bg);box-shadow:var(--panel-shadow)}:host([accent=participants]){--rail-accent: var(--green);--icon-bg: var(--green-soft);--icon-color: var(--green)}:host([accent=prizes]){--rail-accent: var(--gold);--icon-bg: var(--gold-soft);--icon-color: var(--gold)}:host([accent=ends]){--rail-accent: var(--violet);--icon-bg: var(--violet-soft);--icon-color: var(--violet)}:host([accent=biggestWin]){--rail-accent: var(--red);--icon-bg: var(--red-soft);--icon-color: var(--red)}.icon-well{flex-shrink:0;width:44px;height:44px;display:grid;place-items:center;border-radius:10px;background:var(--icon-bg);border:1px solid color-mix(in srgb,var(--rail-accent) 30%,transparent);color:var(--icon-color);box-shadow:inset 0 1px color-mix(in srgb,white 8%,transparent)}.icon-well svg{width:20px;height:20px}.copy{min-width:0;flex:1}.label{font-family:var(--font-mono);font-size:10px;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--text-dim)}.value{margin-top:6px;font-family:var(--font-mono);font-size:24px;font-weight:800;line-height:1.1;color:var(--text);font-variant-numeric:tabular-nums}:host([compact]) .value{font-size:15px;line-height:1.25}:host([highlight]) .value{color:var(--gold-strong);text-shadow:0 0 16px color-mix(in srgb,var(--gold) 35%,transparent)}.shimmer{position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,transparent,var(--rail-accent),transparent);opacity:.55}.shimmer:after{content:"";position:absolute;inset:0;background:inherit;filter:blur(4px);opacity:.8}.rail:after{content:"";position:absolute;left:-40%;bottom:0;width:35%;height:2px;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--rail-accent) 90%,white),transparent);animation:rail-shimmer 3.2s ease-in-out infinite;pointer-events:none}@keyframes rail-shimmer{0%,to{transform:translate(0);opacity:0}20%{opacity:1}80%{opacity:1}to{transform:translate(420%);opacity:0}}@media(prefers-reduced-motion:reduce){.rail:after{animation:none;opacity:.35;left:0;width:100%;transform:none}}';
|
|
2
|
-
export {
|
|
3
|
-
t as default
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=stat-rail.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stat-rail.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/components/os-leaderboard-casino/sections/stats-section/stats-section.host.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { OsLeaderboardCasinoStatsSection } from '../../types/sections.js';
|
|
2
|
-
export type StatRailSegment = 'solo' | 'start' | 'middle' | 'end';
|
|
3
|
-
export interface StatsSectionHost {
|
|
4
|
-
section: OsLeaderboardCasinoStatsSection;
|
|
5
|
-
participantsLabel: string;
|
|
6
|
-
participantsSegment: StatRailSegment;
|
|
7
|
-
showPrizes: boolean;
|
|
8
|
-
prizesLabel: string;
|
|
9
|
-
prizesSegment: StatRailSegment;
|
|
10
|
-
showBiggestWin: boolean;
|
|
11
|
-
biggestWinLabel: string;
|
|
12
|
-
biggestWinSegment: StatRailSegment;
|
|
13
|
-
}
|