casino-ui 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +213 -0
- package/dist/assets/assets/card-back.svg +43 -0
- package/dist/assets/assets/card-shoe-overlay.svg +14 -0
- package/dist/assets/card-back.svg +43 -0
- package/dist/assets/card-shoe-overlay.svg +14 -0
- package/dist/casino-ui.css +2 -0
- package/dist/components/bet-panel.d.ts +41 -0
- package/dist/components/bet-panel.d.ts.map +1 -0
- package/dist/components/bet-panel.js +37 -0
- package/dist/components/bet-panel.js.map +1 -0
- package/dist/components/button.d.ts +15 -0
- package/dist/components/button.d.ts.map +1 -0
- package/dist/components/button.js +27 -0
- package/dist/components/button.js.map +1 -0
- package/dist/components/card-score-badge.d.ts +9 -0
- package/dist/components/card-score-badge.d.ts.map +1 -0
- package/dist/components/card-score-badge.js +20 -0
- package/dist/components/card-score-badge.js.map +1 -0
- package/dist/components/card-shoe.d.ts +6 -0
- package/dist/components/card-shoe.d.ts.map +1 -0
- package/dist/components/card-shoe.js +14 -0
- package/dist/components/card-shoe.js.map +1 -0
- package/dist/components/card-table.d.ts +7 -0
- package/dist/components/card-table.d.ts.map +1 -0
- package/dist/components/card-table.js +6 -0
- package/dist/components/card-table.js.map +1 -0
- package/dist/components/chip-rack.d.ts +6 -0
- package/dist/components/chip-rack.d.ts.map +1 -0
- package/dist/components/chip-rack.js +13 -0
- package/dist/components/chip-rack.js.map +1 -0
- package/dist/components/chip.d.ts +49 -0
- package/dist/components/chip.d.ts.map +1 -0
- package/dist/components/chip.js +81 -0
- package/dist/components/chip.js.map +1 -0
- package/dist/components/game-footer.d.ts +29 -0
- package/dist/components/game-footer.d.ts.map +1 -0
- package/dist/components/game-footer.js +72 -0
- package/dist/components/game-footer.js.map +1 -0
- package/dist/components/game-info-dialog.d.ts +23 -0
- package/dist/components/game-info-dialog.d.ts.map +1 -0
- package/dist/components/game-info-dialog.js +26 -0
- package/dist/components/game-info-dialog.js.map +1 -0
- package/dist/components/icon.d.ts +10 -0
- package/dist/components/icon.d.ts.map +1 -0
- package/dist/components/icon.js +59 -0
- package/dist/components/icon.js.map +1 -0
- package/dist/components/poker-card.d.ts +15 -0
- package/dist/components/poker-card.d.ts.map +1 -0
- package/dist/components/poker-card.js +77 -0
- package/dist/components/poker-card.js.map +1 -0
- package/dist/components/result-badge.d.ts +14 -0
- package/dist/components/result-badge.d.ts.map +1 -0
- package/dist/components/result-badge.js +71 -0
- package/dist/components/result-badge.js.map +1 -0
- package/dist/components/switch-table-dialog.d.ts +10 -0
- package/dist/components/switch-table-dialog.d.ts.map +1 -0
- package/dist/components/switch-table-dialog.js +51 -0
- package/dist/components/switch-table-dialog.js.map +1 -0
- package/dist/components/toast-container.d.ts +8 -0
- package/dist/components/toast-container.d.ts.map +1 -0
- package/dist/components/toast-container.js +8 -0
- package/dist/components/toast-container.js.map +1 -0
- package/dist/components/toast-helpers.d.ts +22 -0
- package/dist/components/toast-helpers.d.ts.map +1 -0
- package/dist/components/toast-helpers.js +47 -0
- package/dist/components/toast-helpers.js.map +1 -0
- package/dist/components/toast.d.ts +26 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toast.js +49 -0
- package/dist/components/toast.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +14 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/dialog.js +35 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/drawer.d.ts +14 -0
- package/dist/components/ui/drawer.d.ts.map +1 -0
- package/dist/components/ui/drawer.js +35 -0
- package/dist/components/ui/drawer.js.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +27 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.js +39 -0
- package/dist/components/ui/dropdown-menu.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/stories/BetPanel.stories.d.ts +10 -0
- package/dist/stories/BetPanel.stories.d.ts.map +1 -0
- package/dist/stories/BetPanel.stories.js +34 -0
- package/dist/stories/BetPanel.stories.js.map +1 -0
- package/dist/stories/Button.stories.d.ts +13 -0
- package/dist/stories/Button.stories.d.ts.map +1 -0
- package/dist/stories/Button.stories.js +39 -0
- package/dist/stories/Button.stories.js.map +1 -0
- package/dist/stories/CardScoreBadge.stories.d.ts +8 -0
- package/dist/stories/CardScoreBadge.stories.d.ts.map +1 -0
- package/dist/stories/CardScoreBadge.stories.js +21 -0
- package/dist/stories/CardScoreBadge.stories.js.map +1 -0
- package/dist/stories/CardShoe.stories.d.ts +7 -0
- package/dist/stories/CardShoe.stories.d.ts.map +1 -0
- package/dist/stories/CardShoe.stories.js +8 -0
- package/dist/stories/CardShoe.stories.js.map +1 -0
- package/dist/stories/CardTable.stories.d.ts +7 -0
- package/dist/stories/CardTable.stories.d.ts.map +1 -0
- package/dist/stories/CardTable.stories.js +15 -0
- package/dist/stories/CardTable.stories.js.map +1 -0
- package/dist/stories/Chip.stories.d.ts +11 -0
- package/dist/stories/Chip.stories.d.ts.map +1 -0
- package/dist/stories/Chip.stories.js +32 -0
- package/dist/stories/Chip.stories.js.map +1 -0
- package/dist/stories/ChipRack.stories.d.ts +7 -0
- package/dist/stories/ChipRack.stories.d.ts.map +1 -0
- package/dist/stories/ChipRack.stories.js +8 -0
- package/dist/stories/ChipRack.stories.js.map +1 -0
- package/dist/stories/Dialog.stories.d.ts +6 -0
- package/dist/stories/Dialog.stories.d.ts.map +1 -0
- package/dist/stories/Dialog.stories.js +15 -0
- package/dist/stories/Dialog.stories.js.map +1 -0
- package/dist/stories/GameFooter.stories.d.ts +7 -0
- package/dist/stories/GameFooter.stories.d.ts.map +1 -0
- package/dist/stories/GameFooter.stories.js +37 -0
- package/dist/stories/GameFooter.stories.js.map +1 -0
- package/dist/stories/Icon.stories.d.ts +9 -0
- package/dist/stories/Icon.stories.d.ts.map +1 -0
- package/dist/stories/Icon.stories.js +27 -0
- package/dist/stories/Icon.stories.js.map +1 -0
- package/dist/stories/PokerCard.stories.d.ts +14 -0
- package/dist/stories/PokerCard.stories.d.ts.map +1 -0
- package/dist/stories/PokerCard.stories.js +40 -0
- package/dist/stories/PokerCard.stories.js.map +1 -0
- package/dist/stories/ResultBadge.stories.d.ts +11 -0
- package/dist/stories/ResultBadge.stories.d.ts.map +1 -0
- package/dist/stories/ResultBadge.stories.js +32 -0
- package/dist/stories/ResultBadge.stories.js.map +1 -0
- package/dist/stories/Toast.stories.d.ts +10 -0
- package/dist/stories/Toast.stories.d.ts.map +1 -0
- package/dist/stories/Toast.stories.js +34 -0
- package/dist/stories/Toast.stories.js.map +1 -0
- package/dist/styles/casino-ui-base.css +310 -0
- package/dist/styles/styles/casino-ui-base.css +310 -0
- package/dist/styles/styles/toast.css +52 -0
- package/dist/styles/toast.css +52 -0
- package/dist/toast.css +52 -0
- package/dist/types.d.ts +11 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/format-amount.d.ts +2 -0
- package/dist/utils/format-amount.d.ts.map +1 -0
- package/dist/utils/format-amount.js +31 -0
- package/dist/utils/format-amount.js.map +1 -0
- package/package.json +58 -0
- package/src/assets/card-back.svg +43 -0
- package/src/assets/card-shoe-overlay.svg +14 -0
- package/src/components/bet-panel.tsx +275 -0
- package/src/components/button.tsx +80 -0
- package/src/components/card-score-badge.tsx +61 -0
- package/src/components/card-shoe.tsx +52 -0
- package/src/components/card-table.tsx +182 -0
- package/src/components/chip-rack.tsx +55 -0
- package/src/components/chip.tsx +203 -0
- package/src/components/game-footer.tsx +356 -0
- package/src/components/game-info-dialog.tsx +245 -0
- package/src/components/icon.tsx +94 -0
- package/src/components/poker-card.tsx +192 -0
- package/src/components/result-badge.tsx +157 -0
- package/src/components/switch-table-dialog.tsx +211 -0
- package/src/components/toast-container.tsx +25 -0
- package/src/components/toast-helpers.ts +79 -0
- package/src/components/toast.tsx +282 -0
- package/src/components/ui/dialog.tsx +134 -0
- package/src/components/ui/drawer.tsx +132 -0
- package/src/components/ui/dropdown-menu.tsx +210 -0
- package/src/env.d.ts +6 -0
- package/src/index.ts +88 -0
- package/src/lib/utils.ts +6 -0
- package/src/stories/BetPanel.stories.tsx +113 -0
- package/src/stories/Button.stories.tsx +55 -0
- package/src/stories/CardScoreBadge.stories.tsx +34 -0
- package/src/stories/CardShoe.stories.tsx +12 -0
- package/src/stories/Chip.stories.tsx +51 -0
- package/src/stories/ChipRack.stories.tsx +12 -0
- package/src/stories/Dialog.stories.tsx +45 -0
- package/src/stories/GameFooter.stories.tsx +45 -0
- package/src/stories/Icon.stories.tsx +49 -0
- package/src/stories/PokerCard.stories.tsx +72 -0
- package/src/stories/ResultBadge.stories.tsx +51 -0
- package/src/stories/Toast.stories.tsx +71 -0
- package/src/styles/casino-ui-base.css +310 -0
- package/src/styles/toast.css +52 -0
- package/src/types.ts +11 -0
- package/src/utils/format-amount.ts +35 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { GameFooter } from "../components/game-footer";
|
|
3
|
+
import { CasinoToastContainer } from "../components/toast-container";
|
|
4
|
+
const meta = {
|
|
5
|
+
title: "Components/GameFooter",
|
|
6
|
+
component: GameFooter,
|
|
7
|
+
decorators: [
|
|
8
|
+
(Story) => (_jsxs("div", { style: { width: 900 }, children: [_jsx(Story, {}), _jsx(CasinoToastContainer, {})] })),
|
|
9
|
+
],
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
args: {
|
|
14
|
+
tableId: "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
|
|
15
|
+
shareBaseUrl: "https://example.com/blackjack",
|
|
16
|
+
badges: {
|
|
17
|
+
houseEdge: "0.5",
|
|
18
|
+
minBet: "0.1",
|
|
19
|
+
coinInfo: { name: "SUI", symbol: "SUI", coinType: "sui/sui", image: "", decimal: 9, factor: 1 },
|
|
20
|
+
},
|
|
21
|
+
tabsContents: {
|
|
22
|
+
table: _jsx("div", { className: "text-white p-4", children: "Table info content" }),
|
|
23
|
+
howToPlay: _jsx("div", { className: "text-white p-4", children: "How to play content" }),
|
|
24
|
+
balance: _jsx("div", { className: "text-white p-4", children: "Balance content" }),
|
|
25
|
+
},
|
|
26
|
+
volumeSlider: {
|
|
27
|
+
globalVolume: 0.7,
|
|
28
|
+
setGlobalVolume: () => { },
|
|
29
|
+
setPrevVolume: () => { },
|
|
30
|
+
},
|
|
31
|
+
onToggleMute: () => { },
|
|
32
|
+
onJoin: () => { },
|
|
33
|
+
gameTitle: "Blackjack",
|
|
34
|
+
gameDescription: "Classic Blackjack. Play solo or join a multiplayer table.",
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=GameFooter.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GameFooter.stories.js","sourceRoot":"","sources":["../../src/stories/GameFooter.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,MAAM,IAAI,GAA4B;IACpC,KAAK,EAAE,uBAAuB;IAC9B,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,eAAK,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,aACxB,KAAC,KAAK,KAAG,EACT,KAAC,oBAAoB,KAAG,IACpB,CACP;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,OAAO,EAAE,sCAAsC;QAC/C,YAAY,EAAE,+BAA+B;QAC7C,MAAM,EAAE;YACN,SAAS,EAAE,KAAK;YAChB,MAAM,EAAE,KAAK;YACb,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE;SAChG;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAK,SAAS,EAAC,gBAAgB,mCAAyB;YAC/D,SAAS,EAAE,cAAK,SAAS,EAAC,gBAAgB,oCAA0B;YACpE,OAAO,EAAE,cAAK,SAAS,EAAC,gBAAgB,gCAAsB;SAC/D;QACD,YAAY,EAAE;YACZ,YAAY,EAAE,GAAG;YACjB,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;YACzB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;SACxB;QACD,YAAY,EAAE,GAAG,EAAE,GAAE,CAAC;QACtB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;QAChB,SAAS,EAAE,WAAW;QACtB,eAAe,EAAE,2DAA2D;KAC7E;CACF,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { Icon } from "../components/icon";
|
|
3
|
+
declare const meta: Meta<typeof Icon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Icon>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AllIcons: Story;
|
|
8
|
+
export declare const Colored: Story;
|
|
9
|
+
//# sourceMappingURL=Icon.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Icon.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAS1C,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAO3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAWtB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KASrB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Icon } from "../components/icon";
|
|
3
|
+
const ALL_ICONS = [
|
|
4
|
+
"settings", "share", "sit", "switch-seat", "crown", "check-circle",
|
|
5
|
+
"loader", "surrender", "split", "double", "stand", "hit",
|
|
6
|
+
"x", "check", "logout", "sound", "eye", "rules",
|
|
7
|
+
"copy", "info", "user", "wallet", "chevron-down",
|
|
8
|
+
];
|
|
9
|
+
const meta = {
|
|
10
|
+
title: "Components/Icon",
|
|
11
|
+
component: Icon,
|
|
12
|
+
argTypes: {
|
|
13
|
+
icon: { control: "select", options: ALL_ICONS },
|
|
14
|
+
color: { control: "color" },
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
export const Default = {
|
|
19
|
+
args: { icon: "settings", className: "size-6 text-white" },
|
|
20
|
+
};
|
|
21
|
+
export const AllIcons = {
|
|
22
|
+
render: () => (_jsx("div", { className: "grid grid-cols-6 gap-4", children: ALL_ICONS.map((name) => (_jsxs("div", { className: "flex flex-col items-center gap-2 p-2", children: [_jsx(Icon, { icon: name, className: "size-6 text-white" }), _jsx("span", { className: "text-xs text-text-secondary", children: name })] }, name))) })),
|
|
23
|
+
};
|
|
24
|
+
export const Colored = {
|
|
25
|
+
render: () => (_jsxs("div", { className: "flex gap-4", children: [_jsx(Icon, { icon: "check", className: "size-6 text-accent-success" }), _jsx(Icon, { icon: "x", className: "size-6 text-accent-error" }), _jsx(Icon, { icon: "crown", className: "size-6 text-accent-yellow" }), _jsx(Icon, { icon: "info", className: "size-6 text-btn-blue" })] })),
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Icon.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.stories.js","sourceRoot":"","sources":["../../src/stories/Icon.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE1C,MAAM,SAAS,GAAG;IAChB,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,OAAO,EAAE,cAAc;IAClE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK;IACxD,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO;IAC/C,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc;CACjD,CAAC;AAEF,MAAM,IAAI,GAAsB;IAC9B,KAAK,EAAE,iBAAiB;IACxB,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE;QACR,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE;QAC/C,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAC5B;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,IAAI,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,mBAAmB,EAAE;CAC3D,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAU;IAC7B,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,cAAK,SAAS,EAAC,wBAAwB,YACpC,SAAS,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACvB,eAAgB,SAAS,EAAC,sCAAsC,aAC9D,KAAC,IAAI,IAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAC,mBAAmB,GAAG,EAClD,eAAM,SAAS,EAAC,6BAA6B,YAAE,IAAI,GAAQ,KAFnD,IAAI,CAGR,CACP,CAAC,GACE,CACP;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,4BAA4B,GAAG,EAC5D,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,0BAA0B,GAAG,EACtD,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,2BAA2B,GAAG,EAC3D,KAAC,IAAI,IAAC,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,sBAAsB,GAAG,IACjD,CACP;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { PokerCard } from "../components/poker-card";
|
|
3
|
+
declare const meta: Meta<typeof PokerCard>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof PokerCard>;
|
|
6
|
+
export declare const AceOfSpades: Story;
|
|
7
|
+
export declare const KingOfHearts: Story;
|
|
8
|
+
export declare const CardBack: Story;
|
|
9
|
+
export declare const WinState: Story;
|
|
10
|
+
export declare const BlackjackState: Story;
|
|
11
|
+
export declare const AllSuits: Story;
|
|
12
|
+
export declare const AllSizes: Story;
|
|
13
|
+
export declare const ResultTypes: Story;
|
|
14
|
+
//# sourceMappingURL=PokerCard.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PokerCard.stories.d.ts","sourceRoot":"","sources":["../../src/stories/PokerCard.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAwB,MAAM,0BAA0B,CAAC;AAE3E,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CAWhC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAExC,eAAO,MAAM,WAAW,EAAE,KAEzB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAE1B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAEtB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAE5B,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAQtB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAStB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAWzB,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { PokerCard } from "../components/poker-card";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Components/PokerCard",
|
|
5
|
+
component: PokerCard,
|
|
6
|
+
argTypes: {
|
|
7
|
+
suit: { control: "select", options: ["heart", "diamond", "spade", "club"] },
|
|
8
|
+
rank: { control: "select", options: ["A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"] },
|
|
9
|
+
side: { control: "select", options: ["front", "back"] },
|
|
10
|
+
size: { control: "select", options: ["default", "mobile", "mobile-small", "mobile-seats"] },
|
|
11
|
+
type: { control: "select", options: ["default", "win", "lose", "bust", "blackjack", "push", "even", "surrender"] },
|
|
12
|
+
showShadow: { control: "boolean" },
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
export const AceOfSpades = {
|
|
17
|
+
args: { suit: "spade", rank: "A", side: "front" },
|
|
18
|
+
};
|
|
19
|
+
export const KingOfHearts = {
|
|
20
|
+
args: { suit: "heart", rank: "K", side: "front" },
|
|
21
|
+
};
|
|
22
|
+
export const CardBack = {
|
|
23
|
+
args: { side: "back" },
|
|
24
|
+
};
|
|
25
|
+
export const WinState = {
|
|
26
|
+
args: { suit: "heart", rank: "A", side: "front", type: "win" },
|
|
27
|
+
};
|
|
28
|
+
export const BlackjackState = {
|
|
29
|
+
args: { suit: "spade", rank: "A", side: "front", type: "blackjack" },
|
|
30
|
+
};
|
|
31
|
+
export const AllSuits = {
|
|
32
|
+
render: () => (_jsx("div", { className: "flex gap-3", children: ["heart", "diamond", "spade", "club"].map((suit) => (_jsx(PokerCard, { suit: suit, rank: "A" }, suit))) })),
|
|
33
|
+
};
|
|
34
|
+
export const AllSizes = {
|
|
35
|
+
render: () => (_jsxs("div", { className: "flex gap-3 items-end", children: [_jsx(PokerCard, { suit: "spade", rank: "K", size: "xs" }), _jsx(PokerCard, { suit: "spade", rank: "K", size: "sm" }), _jsx(PokerCard, { suit: "spade", rank: "K", size: "md" }), _jsx(PokerCard, { suit: "spade", rank: "K", size: "lg" })] })),
|
|
36
|
+
};
|
|
37
|
+
export const ResultTypes = {
|
|
38
|
+
render: () => (_jsx("div", { className: "flex gap-3", children: ["default", "win", "lose", "bust", "blackjack", "push"].map((type) => (_jsxs("div", { className: "flex flex-col items-center gap-1", children: [_jsx(PokerCard, { suit: "heart", rank: "10", type: type }), _jsx("span", { className: "text-xs text-text-secondary", children: type })] }, type))) })),
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=PokerCard.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PokerCard.stories.js","sourceRoot":"","sources":["../../src/stories/PokerCard.stories.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import { ResultBadge } from "../components/result-badge";
|
|
3
|
+
declare const meta: Meta<typeof ResultBadge>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof ResultBadge>;
|
|
6
|
+
export declare const Win: Story;
|
|
7
|
+
export declare const Blackjack: Story;
|
|
8
|
+
export declare const WithPayout: Story;
|
|
9
|
+
export declare const AllResults: Story;
|
|
10
|
+
export declare const AllResultsWithPayout: Story;
|
|
11
|
+
//# sourceMappingURL=ResultBadge.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultBadge.stories.d.ts","sourceRoot":"","sources":["../../src/stories/ResultBadge.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,WAAW,CAYlC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,WAAW,CAAC,CAAC;AAE1C,eAAO,MAAM,GAAG,EAAE,KAEjB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAEvB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAExB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAQlC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ResultBadge } from "../components/result-badge";
|
|
3
|
+
const meta = {
|
|
4
|
+
title: "Components/ResultBadge",
|
|
5
|
+
component: ResultBadge,
|
|
6
|
+
argTypes: {
|
|
7
|
+
type: {
|
|
8
|
+
control: "select",
|
|
9
|
+
options: ["win", "lose", "bust", "push", "blackjack", "even", "surrender"],
|
|
10
|
+
},
|
|
11
|
+
showPayout: { control: "boolean" },
|
|
12
|
+
isUSD: { control: "boolean" },
|
|
13
|
+
isMobile: { control: "boolean" },
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
export const Win = {
|
|
18
|
+
args: { type: "win" },
|
|
19
|
+
};
|
|
20
|
+
export const Blackjack = {
|
|
21
|
+
args: { type: "blackjack" },
|
|
22
|
+
};
|
|
23
|
+
export const WithPayout = {
|
|
24
|
+
args: { type: "win", showPayout: true, amount: "2.50", isUSD: true },
|
|
25
|
+
};
|
|
26
|
+
export const AllResults = {
|
|
27
|
+
render: () => (_jsx("div", { className: "flex flex-col gap-2", children: ["win", "lose", "bust", "push", "blackjack", "even", "surrender"].map((type) => (_jsx(ResultBadge, { type: type }, type))) })),
|
|
28
|
+
};
|
|
29
|
+
export const AllResultsWithPayout = {
|
|
30
|
+
render: () => (_jsx("div", { className: "flex flex-col gap-2", children: ["win", "lose", "bust", "push", "blackjack", "even", "surrender"].map((type) => (_jsx(ResultBadge, { type: type, showPayout: true, amount: "1.25", isUSD: true }, type))) })),
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=ResultBadge.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResultBadge.stories.js","sourceRoot":"","sources":["../../src/stories/ResultBadge.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,wBAAwB;IAC/B,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,QAAQ;YACjB,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,CAAC;SAC3E;QACD,UAAU,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAClC,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;QAC7B,QAAQ,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;KACjC;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,GAAG,GAAU;IACxB,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAU;IAC9B,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,IAAI,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;CACrE,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAU;IAC/B,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,cAAK,SAAS,EAAC,qBAAqB,YAChC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,CAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC1F,KAAC,WAAW,IAAY,IAAI,EAAE,IAAI,IAAhB,IAAI,CAAgB,CACvC,CAAC,GACE,CACP;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,cAAK,SAAS,EAAC,qBAAqB,YAChC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,WAAW,CAAW,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC1F,KAAC,WAAW,IAAY,IAAI,EAAE,IAAI,EAAE,UAAU,QAAC,MAAM,EAAC,MAAM,EAAC,KAAK,UAAhD,IAAI,CAA+C,CACtE,CAAC,GACE,CACP;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: Meta;
|
|
3
|
+
export default meta;
|
|
4
|
+
type Story = StoryObj;
|
|
5
|
+
export declare const Info: Story;
|
|
6
|
+
export declare const Success: Story;
|
|
7
|
+
export declare const StatusError: Story;
|
|
8
|
+
export declare const StatusSuccess: Story;
|
|
9
|
+
export declare const ActionToast: Story;
|
|
10
|
+
//# sourceMappingURL=Toast.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Toast.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAKvD,QAAA,MAAM,IAAI,EAAE,IAUX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC;AAEtB,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAM3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAkBzB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { CasinoToastContainer } from "../components/toast-container";
|
|
3
|
+
import { toast } from "../components/toast-helpers";
|
|
4
|
+
import { Button } from "../components/button";
|
|
5
|
+
const meta = {
|
|
6
|
+
title: "Components/Toast",
|
|
7
|
+
decorators: [
|
|
8
|
+
(Story) => (_jsxs("div", { children: [_jsx(Story, {}), _jsx(CasinoToastContainer, { position: "bottom-right" })] })),
|
|
9
|
+
],
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Info = {
|
|
13
|
+
render: () => (_jsx(Button, { variant: "tertiary", onClick: () => toast.info("Card dealt to player"), children: "Show Info Toast" })),
|
|
14
|
+
};
|
|
15
|
+
export const Success = {
|
|
16
|
+
render: () => (_jsx(Button, { variant: "primary", onClick: () => toast.success("You win!"), children: "Show Success Toast" })),
|
|
17
|
+
};
|
|
18
|
+
export const StatusError = {
|
|
19
|
+
render: () => (_jsx(Button, { variant: "tertiary", onClick: () => toast.status.error("Insufficient balance", { title: "Error" }), children: "Show Error Toast" })),
|
|
20
|
+
};
|
|
21
|
+
export const StatusSuccess = {
|
|
22
|
+
render: () => (_jsx(Button, { variant: "primary", onClick: () => toast.status.success("Bet placed successfully", { title: "Confirmed" }), children: "Show Status Success" })),
|
|
23
|
+
};
|
|
24
|
+
export const ActionToast = {
|
|
25
|
+
render: () => (_jsx(Button, { variant: "secondary", onClick: () => toast.action({
|
|
26
|
+
title: "Switch Table?",
|
|
27
|
+
message: "You will leave the current game.",
|
|
28
|
+
actions: [
|
|
29
|
+
{ label: "Cancel", onClick: () => { } },
|
|
30
|
+
{ label: "Confirm", onClick: () => { }, highlight: true },
|
|
31
|
+
],
|
|
32
|
+
}), children: "Show Action Toast" })),
|
|
33
|
+
};
|
|
34
|
+
//# sourceMappingURL=Toast.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Toast.stories.js","sourceRoot":"","sources":["../../src/stories/Toast.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,KAAK,EAAE,MAAM,6BAA6B,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,IAAI,GAAS;IACjB,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE;QACV,CAAC,KAAK,EAAE,EAAE,CAAC,CACT,0BACE,KAAC,KAAK,KAAG,EACT,KAAC,oBAAoB,IAAC,QAAQ,EAAC,cAAc,GAAG,IAC5C,CACP;KACF;CACF,CAAC;AAEF,eAAe,IAAI,CAAC;AAGpB,MAAM,CAAC,MAAM,IAAI,GAAU;IACzB,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,gCAEnE,CACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAU;IAC5B,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,mCAEzD,CACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,KAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,sBAAsB,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,iCAE/F,CACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAU;IAClC,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,KAAC,MAAM,IAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,yBAAyB,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC,oCAEvG,CACV;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAU;IAChC,MAAM,EAAE,GAAG,EAAE,CAAC,CACZ,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,OAAO,EAAE,GAAG,EAAE,CACZ,KAAK,CAAC,MAAM,CAAC;YACX,KAAK,EAAE,eAAe;YACtB,OAAO,EAAE,kCAAkC;YAC3C,OAAO,EAAE;gBACP,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE;gBACtC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE;aACzD;SACF,CAAC,kCAIG,CACV;CACF,CAAC"}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
|
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
|
5
|
+
|
|
6
|
+
@theme inline {
|
|
7
|
+
--color-background: var(--background);
|
|
8
|
+
--color-foreground: var(--foreground);
|
|
9
|
+
--color-win: #c7fe51;
|
|
10
|
+
--color-brand: #c7fe51;
|
|
11
|
+
--color-brand-light: #caff33;
|
|
12
|
+
--color-brand-dark: #546b22;
|
|
13
|
+
--color-dialog-content: #1a1a1a;
|
|
14
|
+
--color-accent-error: #af1b45;
|
|
15
|
+
--color-accent-success: #00a95d;
|
|
16
|
+
--color-accent-waring: #f1c40f;
|
|
17
|
+
--color-surface-600: #141414;
|
|
18
|
+
--color-surface-500: #1a1a1a;
|
|
19
|
+
--color-surface-450: #1f1f1f;
|
|
20
|
+
--color-surface-400: #252525;
|
|
21
|
+
--color-surface-300: #333333;
|
|
22
|
+
--color-surface-250: #404040;
|
|
23
|
+
--color-surface-200: #4d4d4d;
|
|
24
|
+
--color-surface-650: #0f0f0f;
|
|
25
|
+
--color-text-secondary: #bfbfbf;
|
|
26
|
+
--color-text-tertiary: #8c8c8c;
|
|
27
|
+
--color-card-suit-red: #f24545;
|
|
28
|
+
--color-card-suit-black: #1a1a1a;
|
|
29
|
+
--color-card-border: #bfbfbf;
|
|
30
|
+
--color-card-back-bg: #f24545;
|
|
31
|
+
--color-card-shoe-bg: #2a2a2a;
|
|
32
|
+
--color-card-shoe-border: #4e4e4e;
|
|
33
|
+
--color-button-grey: #3a3a3a;
|
|
34
|
+
--color-accent-pink: #fd135a;
|
|
35
|
+
--color-accent-fun-red: #db375e;
|
|
36
|
+
--color-accent-yellow: #fee061;
|
|
37
|
+
/* Action panel */
|
|
38
|
+
--color-panel-bg: #252525;
|
|
39
|
+
--color-action-hover: #444444;
|
|
40
|
+
--color-action-active: #2a2a2a;
|
|
41
|
+
--color-surrender-to: #2e2e2e;
|
|
42
|
+
--color-timer-end: #00d474;
|
|
43
|
+
/* Primary button — Green */
|
|
44
|
+
--color-btn-green: #b5e74a;
|
|
45
|
+
--color-btn-green-light: #c7fe51;
|
|
46
|
+
/* Primary button — Blue */
|
|
47
|
+
--color-btn-blue: #3fc1ff;
|
|
48
|
+
--color-btn-blue-light: #63d0ff;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* ── Casino Chip ────────────────────────────────────── */
|
|
52
|
+
|
|
53
|
+
@layer components {
|
|
54
|
+
.chip-body {
|
|
55
|
+
position: relative;
|
|
56
|
+
}
|
|
57
|
+
.chip-body::before {
|
|
58
|
+
content: "";
|
|
59
|
+
position: absolute;
|
|
60
|
+
inset: 0;
|
|
61
|
+
border-radius: inherit;
|
|
62
|
+
background: repeating-conic-gradient(
|
|
63
|
+
from 348.75deg,
|
|
64
|
+
#fff 0deg 22.5deg,
|
|
65
|
+
transparent 22.5deg 45deg
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Chip data-slot sizing tokens */
|
|
70
|
+
[data-slot="chip"] {
|
|
71
|
+
width: var(--chip-outer);
|
|
72
|
+
height: calc(var(--chip-outer) + var(--chip-shadow-depth));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
[data-slot="chip-body"] {
|
|
76
|
+
width: var(--chip-outer);
|
|
77
|
+
height: var(--chip-outer);
|
|
78
|
+
background-color: var(--chip-color);
|
|
79
|
+
box-shadow: 0px var(--chip-shadow-depth) 0px 0px var(--chip-shadow-color);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
[data-slot="chip-ring"] {
|
|
83
|
+
width: var(--chip-inner);
|
|
84
|
+
height: var(--chip-inner);
|
|
85
|
+
top: var(--chip-inset);
|
|
86
|
+
left: var(--chip-inset);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
[data-slot="chip-center"] {
|
|
90
|
+
width: var(--chip-center);
|
|
91
|
+
height: var(--chip-center);
|
|
92
|
+
background-color: var(--chip-color);
|
|
93
|
+
padding: var(--chip-padding);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
[data-slot="chip-text"] {
|
|
97
|
+
font-size: var(--chip-text);
|
|
98
|
+
font-family:
|
|
99
|
+
"SF Pro Display",
|
|
100
|
+
-apple-system,
|
|
101
|
+
BlinkMacSystemFont,
|
|
102
|
+
sans-serif;
|
|
103
|
+
font-weight: 700;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[data-slot="chip-selected-ring"] {
|
|
107
|
+
width: calc(var(--chip-outer) + 4px);
|
|
108
|
+
height: calc(var(--chip-outer) + 2px);
|
|
109
|
+
top: -1px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[data-slot="chip"][data-size="sm"] {
|
|
113
|
+
--chip-outer: 36px;
|
|
114
|
+
--chip-inner: 33px;
|
|
115
|
+
--chip-border: 3.74px;
|
|
116
|
+
--chip-center: 28.7px;
|
|
117
|
+
--chip-text: 10.5px;
|
|
118
|
+
--chip-shadow-depth: 2px;
|
|
119
|
+
--chip-inset: 1.6px;
|
|
120
|
+
--chip-padding: 6.2px;
|
|
121
|
+
}
|
|
122
|
+
[data-slot="chip"][data-size="md"] {
|
|
123
|
+
--chip-outer: 44px;
|
|
124
|
+
--chip-inner: 40px;
|
|
125
|
+
--chip-border: 4.566px;
|
|
126
|
+
--chip-center: 35px;
|
|
127
|
+
--chip-text: 12.865px;
|
|
128
|
+
--chip-shadow-depth: 3px;
|
|
129
|
+
--chip-inset: 2px;
|
|
130
|
+
--chip-padding: 7.6px;
|
|
131
|
+
}
|
|
132
|
+
[data-slot="chip"][data-size="lg"] {
|
|
133
|
+
--chip-outer: 52px;
|
|
134
|
+
--chip-inner: 47px;
|
|
135
|
+
--chip-border: 5.4px;
|
|
136
|
+
--chip-center: 41.4px;
|
|
137
|
+
--chip-text: 15.2px;
|
|
138
|
+
--chip-shadow-depth: 4px;
|
|
139
|
+
--chip-inset: 2.4px;
|
|
140
|
+
--chip-padding: 9px;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/* Denomination color tokens */
|
|
144
|
+
[data-slot="chip"][data-denomination="1"] {
|
|
145
|
+
--chip-color: #999999;
|
|
146
|
+
--chip-shadow-color: #474747;
|
|
147
|
+
}
|
|
148
|
+
[data-slot="chip"][data-denomination="5"] {
|
|
149
|
+
--chip-color: #db375e;
|
|
150
|
+
--chip-shadow-color: #63171d;
|
|
151
|
+
}
|
|
152
|
+
[data-slot="chip"][data-denomination="10"] {
|
|
153
|
+
--chip-color: #037a4c;
|
|
154
|
+
--chip-shadow-color: #06503f;
|
|
155
|
+
}
|
|
156
|
+
[data-slot="chip"][data-denomination="25"] {
|
|
157
|
+
--chip-color: #f57fe0;
|
|
158
|
+
--chip-shadow-color: #951f9d;
|
|
159
|
+
}
|
|
160
|
+
[data-slot="chip"][data-denomination="50"] {
|
|
161
|
+
--chip-color: #7454f0;
|
|
162
|
+
--chip-shadow-color: #2d268b;
|
|
163
|
+
}
|
|
164
|
+
[data-slot="chip"][data-denomination="100"] {
|
|
165
|
+
--chip-color: #e3b800;
|
|
166
|
+
--chip-shadow-color: #816b0c;
|
|
167
|
+
}
|
|
168
|
+
[data-slot="chip"][data-denomination="500"] {
|
|
169
|
+
--chip-color: #9727b0;
|
|
170
|
+
--chip-shadow-color: #5b187d;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Hover glow */
|
|
174
|
+
button[data-slot="chip"]::before {
|
|
175
|
+
content: "";
|
|
176
|
+
position: absolute;
|
|
177
|
+
left: 50%;
|
|
178
|
+
top: 0;
|
|
179
|
+
transform: translateX(-50%);
|
|
180
|
+
width: calc(var(--chip-outer) + 10px);
|
|
181
|
+
height: calc(var(--chip-outer) + 6px);
|
|
182
|
+
border-radius: 50%;
|
|
183
|
+
background: radial-gradient(
|
|
184
|
+
ellipse at center,
|
|
185
|
+
rgba(255, 255, 255, 0.35) 0%,
|
|
186
|
+
rgba(255, 255, 255, 0.15) 40%,
|
|
187
|
+
rgba(255, 255, 255, 0) 70%
|
|
188
|
+
);
|
|
189
|
+
pointer-events: none;
|
|
190
|
+
opacity: 0;
|
|
191
|
+
transition: opacity 150ms;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
button[data-slot="chip"]:hover::before {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
button[data-slot="chip"]:hover > [data-slot="chip-body"] {
|
|
199
|
+
box-shadow: 0px var(--chip-shadow-depth) 0px 0px var(--chip-shadow-color);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* ── Action Buttons ───────────────────────────────── */
|
|
203
|
+
|
|
204
|
+
.blue-action-button {
|
|
205
|
+
border-color: var(--color-btn-blue);
|
|
206
|
+
background-image: radial-gradient(
|
|
207
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
208
|
+
var(--color-btn-blue) 0%,
|
|
209
|
+
var(--color-btn-blue-light) 100%
|
|
210
|
+
);
|
|
211
|
+
box-shadow: 0 4px 1px 0 rgba(255, 255, 255, 0.4) inset;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.blue-action-button:hover {
|
|
215
|
+
background-image: radial-gradient(
|
|
216
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
217
|
+
#5cf 0%,
|
|
218
|
+
#8ae2ff 100%
|
|
219
|
+
);
|
|
220
|
+
box-shadow:
|
|
221
|
+
0 0 12px 0 rgba(199, 243, 81, 0.2),
|
|
222
|
+
0 3px 1px 0 rgba(255, 255, 255, 0.25) inset;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.blue-action-button:active {
|
|
226
|
+
border-color: #2ca1dc;
|
|
227
|
+
background-image: radial-gradient(
|
|
228
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
229
|
+
#32aeea 0%,
|
|
230
|
+
#4fc0f2 100%
|
|
231
|
+
);
|
|
232
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25) inset;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.green-action-button {
|
|
236
|
+
border-color: var(--color-btn-green);
|
|
237
|
+
background-image: radial-gradient(
|
|
238
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
239
|
+
var(--color-btn-green) 0%,
|
|
240
|
+
var(--color-btn-green-light) 100%
|
|
241
|
+
);
|
|
242
|
+
box-shadow: 0 4px 1px 0 rgba(255, 255, 255, 0.4) inset;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.green-action-button:hover {
|
|
246
|
+
background-image: radial-gradient(
|
|
247
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
248
|
+
#c4fb63 0%,
|
|
249
|
+
#d5ff7a 100%
|
|
250
|
+
);
|
|
251
|
+
box-shadow:
|
|
252
|
+
0 0 12px 0 rgba(199, 243, 81, 0.2),
|
|
253
|
+
0 3px 1px 0 rgba(255, 255, 255, 0.25) inset;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.green-action-button:active {
|
|
257
|
+
border-color: #a9d53f;
|
|
258
|
+
background-image: radial-gradient(
|
|
259
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
260
|
+
#a9d53f 0%,
|
|
261
|
+
#bee84f 100%
|
|
262
|
+
);
|
|
263
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25) inset;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.grey-action-button {
|
|
267
|
+
position: relative;
|
|
268
|
+
border-color: var(--color-button-grey);
|
|
269
|
+
background-image: radial-gradient(
|
|
270
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
271
|
+
#3a3a3a 0%,
|
|
272
|
+
#2e2e2e 100%
|
|
273
|
+
);
|
|
274
|
+
box-shadow: 0 4px 2px 0 rgba(255, 255, 255, 0.05) inset;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.grey-action-button:hover {
|
|
278
|
+
border-color: #464646;
|
|
279
|
+
background-image: radial-gradient(
|
|
280
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
281
|
+
#464646 0%,
|
|
282
|
+
#383838 100%
|
|
283
|
+
);
|
|
284
|
+
box-shadow:
|
|
285
|
+
0 0 8px 0 rgba(255, 255, 255, 0.03),
|
|
286
|
+
0 3px 2px 0 rgba(255, 255, 255, 0.03) inset;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.grey-action-button:active {
|
|
290
|
+
border-color: #2e2e2e;
|
|
291
|
+
background-image: radial-gradient(
|
|
292
|
+
97.07% 95.3% at 48.09% 47.12%,
|
|
293
|
+
#2e2e2e 0%,
|
|
294
|
+
#262626 100%
|
|
295
|
+
);
|
|
296
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.25) inset;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* ── Utilities ──────────────────────────────────────── */
|
|
301
|
+
|
|
302
|
+
@layer utilities {
|
|
303
|
+
.hide-scrollbar::-webkit-scrollbar {
|
|
304
|
+
display: none;
|
|
305
|
+
}
|
|
306
|
+
.hide-scrollbar {
|
|
307
|
+
-ms-overflow-style: none;
|
|
308
|
+
scrollbar-width: none;
|
|
309
|
+
}
|
|
310
|
+
}
|