aural-ui 3.0.7 → 4.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/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { CoinIcon } from "src/ui/icons/coin-icon"
|
|
5
|
+
import { HeartIcon } from "src/ui/icons/heart-icon"
|
|
6
|
+
import { StarIcon } from "src/ui/icons/star-icon"
|
|
7
|
+
import { StoreCoinIcon } from "src/ui/icons/store-coin-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { CoinToonsIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof CoinToonsIcon> = {
|
|
@@ -11,1189 +25,82 @@ const meta: Meta<typeof CoinToonsIcon> = {
|
|
|
11
25
|
backgrounds: {
|
|
12
26
|
default: "dark",
|
|
13
27
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
28
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
29
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
30
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
31
|
],
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent ;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent ;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: #0a0a0a ;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: #0a0a0a ;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent ;
|
|
50
|
-
border: none ;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: white ;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: rgba(255, 255, 255, 0.7) ;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: rgba(255, 255, 255, 0.1) ;
|
|
60
|
-
color: rgba(168, 85, 247, 1) ;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: rgba(0, 0, 0, 0.4) ;
|
|
65
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: rgba(255, 255, 255, 0.05) ;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: rgba(255, 255, 255, 0.05) ;
|
|
73
|
-
color: white ;
|
|
74
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: rgba(255, 255, 255, 0.7) ;
|
|
78
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-yellow-900/20 to-gray-900">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
-
<div className="absolute inset-0 bg-gradient-to-r from-yellow-500/10 via-transparent to-amber-500/10" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-yellow-500/30 bg-gradient-to-br from-yellow-500/20 to-amber-500/20">
|
|
90
|
-
<CoinToonsIcon className="h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="text-5xl font-bold !text-white">
|
|
93
|
-
Coin Toons Icon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A golden coin icon with authentic metallic shine and
|
|
97
|
-
dimensional depth. Perfect for financial applications,
|
|
98
|
-
reward systems, gaming interfaces, e-commerce platforms, and
|
|
99
|
-
any interface where currency, earnings, or value
|
|
100
|
-
representation is needed.
|
|
101
|
-
</p>
|
|
102
|
-
|
|
103
|
-
{/* Stats */}
|
|
104
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
105
|
-
<div className="text-center">
|
|
106
|
-
<div className="text-3xl font-bold text-yellow-300">
|
|
107
|
-
Currency
|
|
108
|
-
</div>
|
|
109
|
-
<div className="text-sm text-white/60">
|
|
110
|
-
Financial value
|
|
111
|
-
</div>
|
|
112
|
-
</div>
|
|
113
|
-
<div className="h-8 w-px bg-white/20" />
|
|
114
|
-
<div className="text-center">
|
|
115
|
-
<div className="text-3xl font-bold text-amber-300">
|
|
116
|
-
Rewards
|
|
117
|
-
</div>
|
|
118
|
-
<div className="text-sm text-white/60">
|
|
119
|
-
Achievement system
|
|
120
|
-
</div>
|
|
121
|
-
</div>
|
|
122
|
-
<div className="h-8 w-px bg-white/20" />
|
|
123
|
-
<div className="text-center">
|
|
124
|
-
<div className="text-3xl font-bold text-orange-300">
|
|
125
|
-
Premium
|
|
126
|
-
</div>
|
|
127
|
-
<div className="text-sm text-white/60">
|
|
128
|
-
Golden standard
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
{/* Content */}
|
|
137
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
138
|
-
{/* Quick Usage */}
|
|
139
|
-
<div className="!space-y-8">
|
|
140
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
141
|
-
Quick Start
|
|
142
|
-
</h2>
|
|
143
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
144
|
-
<div className="!space-y-4">
|
|
145
|
-
<h3 className="text-xl font-semibold !text-yellow-300">
|
|
146
|
-
Basic Usage
|
|
147
|
-
</h3>
|
|
148
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
149
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
150
|
-
{`import { CoinToonsIcon } from "@icons/coin-icon"
|
|
151
|
-
|
|
152
|
-
function WalletBalance() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="warning"
|
|
37
|
+
features={[
|
|
38
|
+
{
|
|
39
|
+
title: "Toon Currency",
|
|
40
|
+
description: "Styled coin for Toons app",
|
|
41
|
+
},
|
|
42
|
+
{ title: "Rewards", description: "Toons earnings and balance" },
|
|
43
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
44
|
+
]}
|
|
45
|
+
quickStart={{
|
|
46
|
+
codeExample: `import { CoinToonsIcon } from "src/ui/icons/coin-toons-icon"
|
|
47
|
+
|
|
48
|
+
function ToonsBalance() {
|
|
153
49
|
return (
|
|
154
|
-
<div className="flex items-center gap-
|
|
155
|
-
<CoinToonsIcon className="h-5 w-5" />
|
|
156
|
-
<span
|
|
50
|
+
<div className="flex items-center gap-1">
|
|
51
|
+
<CoinToonsIcon className="h-5 w-5 text-fm-icon-warning" />
|
|
52
|
+
<span>500</span>
|
|
157
53
|
</div>
|
|
158
54
|
)
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
Live Preview
|
|
167
|
-
</h3>
|
|
168
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
169
|
-
<div className="flex items-center gap-3 rounded-lg border border-yellow-500/20 bg-yellow-500/10 px-4 py-2">
|
|
170
|
-
<CoinToonsIcon className="h-5 w-5" />
|
|
171
|
-
<span className="font-medium text-yellow-300">
|
|
172
|
-
1,247 coins
|
|
173
|
-
</span>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
</div>
|
|
179
|
-
|
|
180
|
-
{/* Props Documentation */}
|
|
181
|
-
<div className="!space-y-8">
|
|
182
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
183
|
-
Props & Configuration
|
|
184
|
-
</h2>
|
|
185
|
-
|
|
186
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
187
|
-
<div className="bg-white/5 p-4">
|
|
188
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
189
|
-
</div>
|
|
190
|
-
<table className="!my-0 w-full">
|
|
191
|
-
<thead className="bg-white/5">
|
|
192
|
-
<tr className="border-b border-white/10">
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
-
Prop
|
|
195
|
-
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
-
Type
|
|
198
|
-
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
200
|
-
Default
|
|
201
|
-
</th>
|
|
202
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
203
|
-
Description
|
|
204
|
-
</th>
|
|
205
|
-
</tr>
|
|
206
|
-
</thead>
|
|
207
|
-
<tbody>
|
|
208
|
-
<tr className="border-b border-white/5">
|
|
209
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
210
|
-
width
|
|
211
|
-
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
213
|
-
number | string
|
|
214
|
-
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
Width of the icon in pixels
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
222
|
-
height
|
|
223
|
-
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
number | string
|
|
226
|
-
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
Height of the icon in pixels
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr className="border-b border-white/5">
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
234
|
-
className
|
|
235
|
-
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
string
|
|
238
|
-
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
240
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
241
|
-
CSS classes for styling (use for size overrides)
|
|
242
|
-
</td>
|
|
243
|
-
</tr>
|
|
244
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
245
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
246
|
-
style
|
|
247
|
-
</td>
|
|
248
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
249
|
-
CSSProperties
|
|
250
|
-
</td>
|
|
251
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
253
|
-
Inline styles (avoid changing fill colors)
|
|
254
|
-
</td>
|
|
255
|
-
</tr>
|
|
256
|
-
<tr className="border-b border-white/5">
|
|
257
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
258
|
-
onClick
|
|
259
|
-
</td>
|
|
260
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
261
|
-
function
|
|
262
|
-
</td>
|
|
263
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
|
-
Click handler for interactive use
|
|
266
|
-
</td>
|
|
267
|
-
</tr>
|
|
268
|
-
<tr className="!bg-black/10">
|
|
269
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
270
|
-
...svgProps
|
|
271
|
-
</td>
|
|
272
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
273
|
-
SVGProps
|
|
274
|
-
</td>
|
|
275
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
277
|
-
All standard SVG element props
|
|
278
|
-
</td>
|
|
279
|
-
</tr>
|
|
280
|
-
</tbody>
|
|
281
|
-
</table>
|
|
282
|
-
</div>
|
|
283
|
-
|
|
284
|
-
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
285
|
-
<div className="flex items-center gap-2 text-sm text-yellow-200">
|
|
286
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
287
|
-
<span>
|
|
288
|
-
<strong>Note:</strong> CoinToonsIcon uses predefined fill
|
|
289
|
-
colors for authentic golden appearance. Avoid overriding
|
|
290
|
-
fill colors to maintain visual consistency.
|
|
291
|
-
</span>
|
|
292
|
-
</div>
|
|
293
|
-
</div>
|
|
294
|
-
</div>
|
|
295
|
-
|
|
296
|
-
{/* Size Variations */}
|
|
297
|
-
<div className="!space-y-8">
|
|
298
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
299
|
-
Size Variations
|
|
300
|
-
</h2>
|
|
301
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
302
|
-
<div className="!space-y-6">
|
|
303
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
304
|
-
<div className="!space-y-4">
|
|
305
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
306
|
-
Standard Sizes
|
|
307
|
-
</h3>
|
|
308
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
309
|
-
<div className="text-center">
|
|
310
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
311
|
-
<span className="text-xs text-white/60">12px</span>
|
|
312
|
-
</div>
|
|
313
|
-
<div className="text-center">
|
|
314
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
315
|
-
<span className="text-xs text-white/60">16px</span>
|
|
316
|
-
</div>
|
|
317
|
-
<div className="text-center">
|
|
318
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
319
|
-
<span className="text-xs text-white/60">20px</span>
|
|
320
|
-
</div>
|
|
321
|
-
<div className="text-center">
|
|
322
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
323
|
-
<span className="text-xs text-white/60">24px</span>
|
|
324
|
-
</div>
|
|
325
|
-
<div className="text-center">
|
|
326
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
327
|
-
<span className="text-xs text-white/60">32px</span>
|
|
328
|
-
</div>
|
|
329
|
-
<div className="text-center">
|
|
330
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
331
|
-
<span className="text-xs text-white/60">48px</span>
|
|
332
|
-
</div>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
|
|
336
|
-
<div className="!space-y-4">
|
|
337
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
338
|
-
Code Example
|
|
339
|
-
</h3>
|
|
340
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
341
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
342
|
-
{`// Small (16px) - inline currency
|
|
343
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
344
|
-
|
|
345
|
-
// Medium (24px) - standard interface
|
|
346
|
-
<CoinToonsIcon className="h-6 w-6" />
|
|
347
|
-
|
|
348
|
-
// Large (32px) - prominent displays
|
|
349
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
350
|
-
|
|
351
|
-
// Custom size
|
|
352
|
-
<CoinToonsIcon width={40} height={40} />`}
|
|
353
|
-
</pre>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
|
-
</div>
|
|
357
|
-
</div>
|
|
358
|
-
</div>
|
|
359
|
-
</div>
|
|
360
|
-
|
|
361
|
-
{/* Color & Design */}
|
|
362
|
-
<div className="!space-y-8">
|
|
363
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
364
|
-
Design & Styling
|
|
365
|
-
</h2>
|
|
366
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
367
|
-
<div className="!space-y-4">
|
|
368
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
369
|
-
Built-in Golden Design
|
|
370
|
-
</h3>
|
|
371
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
372
|
-
<div className="flex items-center gap-4">
|
|
373
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-black/30">
|
|
374
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
375
|
-
</div>
|
|
376
|
-
<div>
|
|
377
|
-
<div className="text-sm font-medium text-white">
|
|
378
|
-
Authentic Golden Color
|
|
379
|
-
</div>
|
|
380
|
-
<div className="text-xs text-white/60">
|
|
381
|
-
#FFB340 base with shine overlay
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
</div>
|
|
385
|
-
<div className="flex items-center gap-4">
|
|
386
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-white/5">
|
|
387
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
388
|
-
</div>
|
|
389
|
-
<div>
|
|
390
|
-
<div className="text-sm font-medium text-white">
|
|
391
|
-
Dimensional Shine
|
|
392
|
-
</div>
|
|
393
|
-
<div className="text-xs text-white/60">
|
|
394
|
-
#FFF5C6 highlight for depth
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
<div className="flex items-center gap-4">
|
|
399
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-yellow-500/10">
|
|
400
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
401
|
-
</div>
|
|
402
|
-
<div>
|
|
403
|
-
<div className="text-sm font-medium text-white">
|
|
404
|
-
Currency Symbol
|
|
405
|
-
</div>
|
|
406
|
-
<div className="text-xs text-white/60">
|
|
407
|
-
#FFFAE8 detail for recognition
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
</div>
|
|
411
|
-
</div>
|
|
412
|
-
</div>
|
|
413
|
-
|
|
414
|
-
<div className="!space-y-4">
|
|
415
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
416
|
-
Usage Guidelines
|
|
417
|
-
</h3>
|
|
418
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
419
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
420
|
-
{`// Recommended usage
|
|
421
|
-
<CoinToonsIcon className="h-5 w-5" />
|
|
422
|
-
|
|
423
|
-
// With balance display
|
|
424
|
-
<div className="flex items-center gap-2">
|
|
425
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
426
|
-
<span className="text-yellow-400">1,247</span>
|
|
427
|
-
</div>
|
|
428
|
-
|
|
429
|
-
// Interactive coin button
|
|
430
|
-
<button
|
|
431
|
-
className="flex items-center gap-2 p-2 rounded-lg
|
|
432
|
-
hover:bg-yellow-500/10 transition-colors"
|
|
433
|
-
>
|
|
434
|
-
<CoinToonsIcon className="h-5 w-5" />
|
|
435
|
-
<span>Earn Coins</span>
|
|
436
|
-
</button>
|
|
437
|
-
|
|
438
|
-
// Avoid overriding colors
|
|
439
|
-
// ❌ Don't do this:
|
|
440
|
-
<CoinToonsIcon style={{ fill: 'red' }} />
|
|
441
|
-
|
|
442
|
-
// ✅ Use as designed:
|
|
443
|
-
<CoinToonsIcon className="h-6 w-6" />`}
|
|
444
|
-
</pre>
|
|
445
|
-
</div>
|
|
446
|
-
</div>
|
|
447
|
-
</div>
|
|
55
|
+
}`,
|
|
56
|
+
livePreview: (
|
|
57
|
+
<div className="flex items-center gap-1">
|
|
58
|
+
<CoinToonsIcon className="text-fm-icon-warning h-6 w-6" />
|
|
59
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
60
|
+
500
|
|
61
|
+
</span>
|
|
448
62
|
</div>
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
<span className="text-xl font-bold text-yellow-300">
|
|
478
|
-
2,847
|
|
479
|
-
</span>
|
|
480
|
-
</div>
|
|
481
|
-
</div>
|
|
482
|
-
</div>
|
|
483
|
-
<div className="space-y-4 p-4">
|
|
484
|
-
<div className="flex items-center justify-between">
|
|
485
|
-
<div className="flex items-center gap-3">
|
|
486
|
-
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-green-500/20">
|
|
487
|
-
<span className="text-sm text-green-400">
|
|
488
|
-
+
|
|
489
|
-
</span>
|
|
490
|
-
</div>
|
|
491
|
-
<div>
|
|
492
|
-
<div className="text-sm font-medium text-white">
|
|
493
|
-
Daily Bonus
|
|
494
|
-
</div>
|
|
495
|
-
<div className="text-xs text-white/60">
|
|
496
|
-
Earned today
|
|
497
|
-
</div>
|
|
498
|
-
</div>
|
|
499
|
-
</div>
|
|
500
|
-
<div className="flex items-center gap-1">
|
|
501
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
502
|
-
<span className="font-medium text-green-400">
|
|
503
|
-
+50
|
|
504
|
-
</span>
|
|
505
|
-
</div>
|
|
506
|
-
</div>
|
|
507
|
-
<div className="flex items-center justify-between">
|
|
508
|
-
<div className="flex items-center gap-3">
|
|
509
|
-
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-blue-500/20">
|
|
510
|
-
<span className="text-sm text-blue-400">
|
|
511
|
-
🎯
|
|
512
|
-
</span>
|
|
513
|
-
</div>
|
|
514
|
-
<div>
|
|
515
|
-
<div className="text-sm font-medium text-white">
|
|
516
|
-
Quest Reward
|
|
517
|
-
</div>
|
|
518
|
-
<div className="text-xs text-white/60">
|
|
519
|
-
Challenge completed
|
|
520
|
-
</div>
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
523
|
-
<div className="flex items-center gap-1">
|
|
524
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
525
|
-
<span className="font-medium text-blue-400">
|
|
526
|
-
+125
|
|
527
|
-
</span>
|
|
528
|
-
</div>
|
|
529
|
-
</div>
|
|
530
|
-
<div className="flex items-center justify-between">
|
|
531
|
-
<div className="flex items-center gap-3">
|
|
532
|
-
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-red-500/20">
|
|
533
|
-
<span className="text-sm text-red-400">
|
|
534
|
-
-
|
|
535
|
-
</span>
|
|
536
|
-
</div>
|
|
537
|
-
<div>
|
|
538
|
-
<div className="text-sm font-medium text-white">
|
|
539
|
-
Store Purchase
|
|
540
|
-
</div>
|
|
541
|
-
<div className="text-xs text-white/60">
|
|
542
|
-
Power-up bought
|
|
543
|
-
</div>
|
|
544
|
-
</div>
|
|
545
|
-
</div>
|
|
546
|
-
<div className="flex items-center gap-1">
|
|
547
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
548
|
-
<span className="font-medium text-red-400">
|
|
549
|
-
-75
|
|
550
|
-
</span>
|
|
551
|
-
</div>
|
|
552
|
-
</div>
|
|
553
|
-
</div>
|
|
554
|
-
</div>
|
|
555
|
-
</div>
|
|
556
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
557
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
558
|
-
{`// Digital wallet interface
|
|
559
|
-
<div className="wallet-header">
|
|
560
|
-
<div className="wallet-info">
|
|
561
|
-
<h3>My Wallet</h3>
|
|
562
|
-
<p>Digital currency balance</p>
|
|
563
|
-
</div>
|
|
564
|
-
<div className="balance-display">
|
|
565
|
-
<CoinToonsIcon className="h-6 w-6" />
|
|
566
|
-
<span className="balance">{balance}</span>
|
|
567
|
-
</div>
|
|
568
|
-
</div>
|
|
569
|
-
<div className="transaction-list">
|
|
570
|
-
{transactions.map(transaction => (
|
|
571
|
-
<div key={transaction.id} className="transaction-item">
|
|
572
|
-
<TransactionIcon type={transaction.type} />
|
|
573
|
-
<TransactionDetails transaction={transaction} />
|
|
574
|
-
<div className="coin-amount">
|
|
575
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
576
|
-
<span className={transaction.type === 'earned' ? 'text-green' : 'text-red'}>
|
|
577
|
-
{transaction.type === 'earned' ? '+' : '-'}{transaction.amount}
|
|
578
|
-
</span>
|
|
579
|
-
</div>
|
|
580
|
-
</div>
|
|
581
|
-
))}
|
|
582
|
-
</div>`}
|
|
583
|
-
</pre>
|
|
584
|
-
</div>
|
|
585
|
-
</div>
|
|
586
|
-
</div>
|
|
587
|
-
|
|
588
|
-
{/* Game Store */}
|
|
589
|
-
<div className="!space-y-4">
|
|
590
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
591
|
-
Game Store
|
|
592
|
-
</h3>
|
|
593
|
-
<div className="!space-y-4">
|
|
594
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
595
|
-
<div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
|
|
596
|
-
<div className="border-b border-white/10 bg-white/5 p-4">
|
|
597
|
-
<div className="flex items-center justify-between">
|
|
598
|
-
<h4 className="text-lg font-semibold text-white">
|
|
599
|
-
Item Shop
|
|
600
|
-
</h4>
|
|
601
|
-
<div className="flex items-center gap-2 rounded-lg border border-yellow-500/30 bg-yellow-500/20 px-3 py-1">
|
|
602
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
603
|
-
<span className="font-medium text-yellow-300">
|
|
604
|
-
2,847
|
|
605
|
-
</span>
|
|
606
|
-
</div>
|
|
607
|
-
</div>
|
|
608
|
-
</div>
|
|
609
|
-
<div className="grid grid-cols-2 gap-3 p-4">
|
|
610
|
-
<div className="rounded-lg border border-white/10 bg-black/30 p-3">
|
|
611
|
-
<div className="mb-2 flex aspect-square w-full items-center justify-center rounded bg-purple-500/20">
|
|
612
|
-
<span className="text-2xl">⚔️</span>
|
|
613
|
-
</div>
|
|
614
|
-
<div className="mb-1 text-sm font-medium text-white">
|
|
615
|
-
Epic Sword
|
|
616
|
-
</div>
|
|
617
|
-
<div className="flex items-center justify-between">
|
|
618
|
-
<div className="flex items-center gap-1">
|
|
619
|
-
<CoinToonsIcon className="h-3 w-3" />
|
|
620
|
-
<span className="text-xs text-yellow-400">
|
|
621
|
-
500
|
|
622
|
-
</span>
|
|
623
|
-
</div>
|
|
624
|
-
<button className="rounded border border-yellow-500/30 bg-yellow-500/20 px-2 py-1 text-xs text-yellow-300 transition-colors hover:bg-yellow-500/30">
|
|
625
|
-
Buy
|
|
626
|
-
</button>
|
|
627
|
-
</div>
|
|
628
|
-
</div>
|
|
629
|
-
<div className="rounded-lg border border-white/10 bg-black/30 p-3">
|
|
630
|
-
<div className="mb-2 flex aspect-square w-full items-center justify-center rounded bg-blue-500/20">
|
|
631
|
-
<span className="text-2xl">🛡️</span>
|
|
632
|
-
</div>
|
|
633
|
-
<div className="mb-1 text-sm font-medium text-white">
|
|
634
|
-
Magic Shield
|
|
635
|
-
</div>
|
|
636
|
-
<div className="flex items-center justify-between">
|
|
637
|
-
<div className="flex items-center gap-1">
|
|
638
|
-
<CoinToonsIcon className="h-3 w-3" />
|
|
639
|
-
<span className="text-xs text-yellow-400">
|
|
640
|
-
350
|
|
641
|
-
</span>
|
|
642
|
-
</div>
|
|
643
|
-
<button className="rounded border border-yellow-500/30 bg-yellow-500/20 px-2 py-1 text-xs text-yellow-300 transition-colors hover:bg-yellow-500/30">
|
|
644
|
-
Buy
|
|
645
|
-
</button>
|
|
646
|
-
</div>
|
|
647
|
-
</div>
|
|
648
|
-
<div className="rounded-lg border border-white/10 bg-black/30 p-3">
|
|
649
|
-
<div className="mb-2 flex aspect-square w-full items-center justify-center rounded bg-green-500/20">
|
|
650
|
-
<span className="text-2xl">🧪</span>
|
|
651
|
-
</div>
|
|
652
|
-
<div className="mb-1 text-sm font-medium text-white">
|
|
653
|
-
Health Potion
|
|
654
|
-
</div>
|
|
655
|
-
<div className="flex items-center justify-between">
|
|
656
|
-
<div className="flex items-center gap-1">
|
|
657
|
-
<CoinToonsIcon className="h-3 w-3" />
|
|
658
|
-
<span className="text-xs text-yellow-400">
|
|
659
|
-
25
|
|
660
|
-
</span>
|
|
661
|
-
</div>
|
|
662
|
-
<button className="rounded border border-yellow-500/30 bg-yellow-500/20 px-2 py-1 text-xs text-yellow-300 transition-colors hover:bg-yellow-500/30">
|
|
663
|
-
Buy
|
|
664
|
-
</button>
|
|
665
|
-
</div>
|
|
666
|
-
</div>
|
|
667
|
-
<div className="rounded-lg border border-white/10 bg-black/30 p-3">
|
|
668
|
-
<div className="mb-2 flex aspect-square w-full items-center justify-center rounded bg-red-500/20">
|
|
669
|
-
<span className="text-2xl">💎</span>
|
|
670
|
-
</div>
|
|
671
|
-
<div className="mb-1 text-sm font-medium text-white">
|
|
672
|
-
Rare Gem
|
|
673
|
-
</div>
|
|
674
|
-
<div className="flex items-center justify-between">
|
|
675
|
-
<div className="flex items-center gap-1">
|
|
676
|
-
<CoinToonsIcon className="h-3 w-3" />
|
|
677
|
-
<span className="text-xs text-yellow-400">
|
|
678
|
-
1,200
|
|
679
|
-
</span>
|
|
680
|
-
</div>
|
|
681
|
-
<button className="rounded border border-red-500/30 bg-red-500/20 px-2 py-1 text-xs text-red-300">
|
|
682
|
-
Insufficient
|
|
683
|
-
</button>
|
|
684
|
-
</div>
|
|
685
|
-
</div>
|
|
686
|
-
</div>
|
|
687
|
-
</div>
|
|
688
|
-
</div>
|
|
689
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
690
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
691
|
-
{`// Game store with coin pricing
|
|
692
|
-
<div className="store-header">
|
|
693
|
-
<h3>Item Shop</h3>
|
|
694
|
-
<div className="player-balance">
|
|
695
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
696
|
-
<span>{playerCoins}</span>
|
|
697
|
-
</div>
|
|
698
|
-
</div>
|
|
699
|
-
<div className="item-grid">
|
|
700
|
-
{storeItems.map(item => (
|
|
701
|
-
<div key={item.id} className="store-item">
|
|
702
|
-
<ItemIcon item={item} />
|
|
703
|
-
<div className="item-name">{item.name}</div>
|
|
704
|
-
<div className="item-footer">
|
|
705
|
-
<div className="item-price">
|
|
706
|
-
<CoinToonsIcon className="h-3 w-3" />
|
|
707
|
-
<span>{item.price}</span>
|
|
708
|
-
</div>
|
|
709
|
-
<button
|
|
710
|
-
className={playerCoins >= item.price ? 'buy-btn' : 'insufficient-btn'}
|
|
711
|
-
disabled={playerCoins < item.price}
|
|
712
|
-
onClick={() => purchaseItem(item)}
|
|
713
|
-
>
|
|
714
|
-
{playerCoins >= item.price ? 'Buy' : 'Insufficient'}
|
|
715
|
-
</button>
|
|
716
|
-
</div>
|
|
717
|
-
</div>
|
|
718
|
-
))}
|
|
719
|
-
</div>`}
|
|
720
|
-
</pre>
|
|
721
|
-
</div>
|
|
722
|
-
</div>
|
|
723
|
-
</div>
|
|
724
|
-
|
|
725
|
-
{/* Rewards Dashboard */}
|
|
726
|
-
<div className="!space-y-4">
|
|
727
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
728
|
-
Rewards Dashboard
|
|
729
|
-
</h3>
|
|
730
|
-
<div className="!space-y-4">
|
|
731
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
732
|
-
<div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
|
|
733
|
-
<div className="border-b border-white/10 bg-gradient-to-r from-purple-500/20 to-yellow-500/20 p-4">
|
|
734
|
-
<h4 className="mb-2 text-lg font-semibold text-white">
|
|
735
|
-
Daily Challenges
|
|
736
|
-
</h4>
|
|
737
|
-
<div className="text-sm text-white/60">
|
|
738
|
-
Complete tasks to earn coins
|
|
739
|
-
</div>
|
|
740
|
-
</div>
|
|
741
|
-
<div className="space-y-3 p-4">
|
|
742
|
-
<div className="flex items-center justify-between rounded-lg border border-green-500/20 bg-green-500/10 p-3">
|
|
743
|
-
<div className="flex items-center gap-3">
|
|
744
|
-
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-green-500/20">
|
|
745
|
-
<span className="text-sm text-green-400">
|
|
746
|
-
✓
|
|
747
|
-
</span>
|
|
748
|
-
</div>
|
|
749
|
-
<div>
|
|
750
|
-
<div className="text-sm font-medium text-white">
|
|
751
|
-
Login Streak
|
|
752
|
-
</div>
|
|
753
|
-
<div className="text-xs text-green-400">
|
|
754
|
-
Completed
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
</div>
|
|
758
|
-
<div className="flex items-center gap-1">
|
|
759
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
760
|
-
<span className="font-medium text-green-400">
|
|
761
|
-
+10
|
|
762
|
-
</span>
|
|
763
|
-
</div>
|
|
764
|
-
</div>
|
|
765
|
-
<div className="flex items-center justify-between rounded-lg border border-blue-500/20 bg-blue-500/10 p-3">
|
|
766
|
-
<div className="flex items-center gap-3">
|
|
767
|
-
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-blue-500/20">
|
|
768
|
-
<span className="text-sm text-blue-400">
|
|
769
|
-
2/3
|
|
770
|
-
</span>
|
|
771
|
-
</div>
|
|
772
|
-
<div>
|
|
773
|
-
<div className="text-sm font-medium text-white">
|
|
774
|
-
Share Content
|
|
775
|
-
</div>
|
|
776
|
-
<div className="text-xs text-blue-400">
|
|
777
|
-
2 of 3 shares
|
|
778
|
-
</div>
|
|
779
|
-
</div>
|
|
780
|
-
</div>
|
|
781
|
-
<div className="flex items-center gap-1">
|
|
782
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
783
|
-
<span className="font-medium text-yellow-400">
|
|
784
|
-
25
|
|
785
|
-
</span>
|
|
786
|
-
</div>
|
|
787
|
-
</div>
|
|
788
|
-
<div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-3">
|
|
789
|
-
<div className="flex items-center gap-3">
|
|
790
|
-
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-white/10">
|
|
791
|
-
<span className="text-sm text-white/60">
|
|
792
|
-
0/5
|
|
793
|
-
</span>
|
|
794
|
-
</div>
|
|
795
|
-
<div>
|
|
796
|
-
<div className="text-sm font-medium text-white">
|
|
797
|
-
Invite Friends
|
|
798
|
-
</div>
|
|
799
|
-
<div className="text-xs text-white/60">
|
|
800
|
-
0 of 5 invites
|
|
801
|
-
</div>
|
|
802
|
-
</div>
|
|
803
|
-
</div>
|
|
804
|
-
<div className="flex items-center gap-1">
|
|
805
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
806
|
-
<span className="font-medium text-yellow-400">
|
|
807
|
-
100
|
|
808
|
-
</span>
|
|
809
|
-
</div>
|
|
810
|
-
</div>
|
|
811
|
-
</div>
|
|
812
|
-
</div>
|
|
813
|
-
</div>
|
|
814
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
815
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
816
|
-
{`// Rewards and challenges dashboard
|
|
817
|
-
<div className="challenges-dashboard">
|
|
818
|
-
<div className="dashboard-header">
|
|
819
|
-
<h3>Daily Challenges</h3>
|
|
820
|
-
<p>Complete tasks to earn coins</p>
|
|
821
|
-
</div>
|
|
822
|
-
<div className="challenges-list">
|
|
823
|
-
{challenges.map(challenge => (
|
|
824
|
-
<div
|
|
825
|
-
key={challenge.id}
|
|
826
|
-
className={challenge.completed ? 'challenge-completed' : 'challenge-active'}
|
|
827
|
-
>
|
|
828
|
-
<ChallengeIcon
|
|
829
|
-
progress={challenge.progress}
|
|
830
|
-
total={challenge.total}
|
|
831
|
-
completed={challenge.completed}
|
|
63
|
+
),
|
|
64
|
+
}}
|
|
65
|
+
relatedIcons={[
|
|
66
|
+
{
|
|
67
|
+
name: "CoinIcon",
|
|
68
|
+
description: "Standard coin / token icon",
|
|
69
|
+
icon: CoinIcon,
|
|
70
|
+
accentToken: "info",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "StoreCoinIcon",
|
|
74
|
+
description: "Store / shop coin icon",
|
|
75
|
+
icon: StoreCoinIcon,
|
|
76
|
+
accentToken: "positive",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "StarIcon",
|
|
80
|
+
description: "Star / rating icon",
|
|
81
|
+
icon: StarIcon,
|
|
82
|
+
accentToken: "warning",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: "HeartIcon",
|
|
86
|
+
description: "Heart / favourite icon",
|
|
87
|
+
icon: HeartIcon,
|
|
88
|
+
accentToken: "negative",
|
|
89
|
+
},
|
|
90
|
+
]}
|
|
832
91
|
/>
|
|
833
|
-
<div className="challenge-info">
|
|
834
|
-
<div className="challenge-title">{challenge.title}</div>
|
|
835
|
-
<div className="challenge-progress">
|
|
836
|
-
{challenge.progress} of {challenge.total} {challenge.unit}
|
|
837
|
-
</div>
|
|
838
|
-
</div>
|
|
839
|
-
<div className="challenge-reward">
|
|
840
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
841
|
-
<span className="reward-amount">{challenge.reward}</span>
|
|
842
|
-
</div>
|
|
843
|
-
</div>
|
|
844
|
-
))}
|
|
845
|
-
</div>
|
|
846
|
-
</div>`}
|
|
847
|
-
</pre>
|
|
848
|
-
</div>
|
|
849
|
-
</div>
|
|
850
|
-
</div>
|
|
851
|
-
|
|
852
|
-
{/* E-commerce Pricing */}
|
|
853
|
-
<div className="!space-y-4">
|
|
854
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
855
|
-
E-commerce Integration
|
|
856
|
-
</h3>
|
|
857
|
-
<div className="!space-y-4">
|
|
858
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
859
|
-
<div className="overflow-hidden rounded-lg border border-white/20 bg-black/50">
|
|
860
|
-
<div className="border-b border-white/10 bg-white/5 p-4">
|
|
861
|
-
<h4 className="text-lg font-semibold text-white">
|
|
862
|
-
Premium Membership
|
|
863
|
-
</h4>
|
|
864
|
-
<p className="text-sm text-white/60">
|
|
865
|
-
Unlock exclusive features and benefits
|
|
866
|
-
</p>
|
|
867
|
-
</div>
|
|
868
|
-
<div className="space-y-4 p-6">
|
|
869
|
-
<div className="grid grid-cols-3 gap-4">
|
|
870
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
871
|
-
<div className="mb-1 text-2xl font-bold text-white">
|
|
872
|
-
Basic
|
|
873
|
-
</div>
|
|
874
|
-
<div className="mb-2 flex items-center justify-center gap-1">
|
|
875
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
876
|
-
<span className="font-medium text-yellow-400">
|
|
877
|
-
Free
|
|
878
|
-
</span>
|
|
879
|
-
</div>
|
|
880
|
-
<ul className="space-y-1 text-xs text-white/60">
|
|
881
|
-
<li>Limited features</li>
|
|
882
|
-
<li>Basic support</li>
|
|
883
|
-
</ul>
|
|
884
|
-
</div>
|
|
885
|
-
<div className="rounded-lg border border-yellow-500/30 bg-yellow-500/10 p-4 text-center">
|
|
886
|
-
<div className="mb-1 text-2xl font-bold text-white">
|
|
887
|
-
Pro
|
|
888
|
-
</div>
|
|
889
|
-
<div className="mb-2 flex items-center justify-center gap-1">
|
|
890
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
891
|
-
<span className="font-medium text-yellow-400">
|
|
892
|
-
299/mo
|
|
893
|
-
</span>
|
|
894
|
-
</div>
|
|
895
|
-
<ul className="space-y-1 text-xs text-white/60">
|
|
896
|
-
<li>Advanced features</li>
|
|
897
|
-
<li>Priority support</li>
|
|
898
|
-
</ul>
|
|
899
|
-
</div>
|
|
900
|
-
<div className="rounded-lg border border-purple-500/30 bg-purple-500/10 p-4 text-center">
|
|
901
|
-
<div className="mb-1 text-2xl font-bold text-white">
|
|
902
|
-
Enterprise
|
|
903
|
-
</div>
|
|
904
|
-
<div className="mb-2 flex items-center justify-center gap-1">
|
|
905
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
906
|
-
<span className="font-medium text-yellow-400">
|
|
907
|
-
999/mo
|
|
908
|
-
</span>
|
|
909
|
-
</div>
|
|
910
|
-
<ul className="space-y-1 text-xs text-white/60">
|
|
911
|
-
<li>All features</li>
|
|
912
|
-
<li>24/7 support</li>
|
|
913
|
-
</ul>
|
|
914
|
-
</div>
|
|
915
|
-
</div>
|
|
916
|
-
<div className="text-center">
|
|
917
|
-
<button className="rounded-lg border border-yellow-500/30 bg-yellow-500/20 px-6 py-2 text-yellow-300 transition-colors hover:bg-yellow-500/30">
|
|
918
|
-
Choose Plan
|
|
919
|
-
</button>
|
|
920
|
-
</div>
|
|
921
|
-
</div>
|
|
922
|
-
</div>
|
|
923
|
-
</div>
|
|
924
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
925
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
926
|
-
{`// E-commerce pricing with coin display
|
|
927
|
-
<div className="pricing-plans">
|
|
928
|
-
<div className="pricing-header">
|
|
929
|
-
<h3>Premium Membership</h3>
|
|
930
|
-
<p>Unlock exclusive features and benefits</p>
|
|
931
|
-
</div>
|
|
932
|
-
<div className="plans-grid">
|
|
933
|
-
{pricingPlans.map(plan => (
|
|
934
|
-
<div
|
|
935
|
-
key={plan.id}
|
|
936
|
-
className={plan.featured ? 'plan-featured' : 'plan-standard'}
|
|
937
|
-
>
|
|
938
|
-
<div className="plan-name">{plan.name}</div>
|
|
939
|
-
<div className="plan-price">
|
|
940
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
941
|
-
<span className="price-amount">
|
|
942
|
-
{plan.price === 0 ? 'Free' : plan.price + '/mo'}
|
|
943
|
-
</span>
|
|
944
|
-
</div>
|
|
945
|
-
<ul className="plan-features">
|
|
946
|
-
{plan.features.map(feature => (
|
|
947
|
-
<li key={feature}>{feature}</li>
|
|
948
|
-
))}
|
|
949
|
-
</ul>
|
|
950
|
-
<button
|
|
951
|
-
className="plan-cta"
|
|
952
|
-
onClick={() => selectPlan(plan)}
|
|
953
|
-
>
|
|
954
|
-
Choose Plan
|
|
955
|
-
</button>
|
|
956
|
-
</div>
|
|
957
|
-
))}
|
|
958
|
-
</div>
|
|
959
|
-
</div>`}
|
|
960
|
-
</pre>
|
|
961
|
-
</div>
|
|
962
|
-
</div>
|
|
963
|
-
</div>
|
|
964
|
-
</div>
|
|
965
|
-
</div>
|
|
966
|
-
|
|
967
|
-
{/* Accessibility */}
|
|
968
|
-
<div className="!space-y-8">
|
|
969
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
970
|
-
Accessibility Features
|
|
971
|
-
</h2>
|
|
972
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
973
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
974
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
975
|
-
✅ Built-in Features
|
|
976
|
-
</h3>
|
|
977
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
978
|
-
<li className="!text-white/70">
|
|
979
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
980
|
-
</li>
|
|
981
|
-
<li className="!text-white/70">
|
|
982
|
-
Provides screen reader label "Coin icon"
|
|
983
|
-
</li>
|
|
984
|
-
<li className="!text-white/70">
|
|
985
|
-
Supports keyboard navigation when interactive
|
|
986
|
-
</li>
|
|
987
|
-
<li className="!text-white/70">
|
|
988
|
-
High contrast golden colors for visibility
|
|
989
|
-
</li>
|
|
990
|
-
<li className="!text-white/70">
|
|
991
|
-
Consistent visual design across all sizes
|
|
992
|
-
</li>
|
|
993
|
-
</ul>
|
|
994
|
-
</div>
|
|
995
|
-
|
|
996
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
997
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
998
|
-
💡 Best Practices
|
|
999
|
-
</h3>
|
|
1000
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
1001
|
-
<li className="!text-white/70">
|
|
1002
|
-
Always pair with numerical values for context
|
|
1003
|
-
</li>
|
|
1004
|
-
<li className="!text-white/70">
|
|
1005
|
-
Use consistent coin terminology across the interface
|
|
1006
|
-
</li>
|
|
1007
|
-
<li className="!text-white/70">
|
|
1008
|
-
Provide clear labels for coin-based interactions
|
|
1009
|
-
</li>
|
|
1010
|
-
<li className="!text-white/70">
|
|
1011
|
-
Consider currency exchange rates for international users
|
|
1012
|
-
</li>
|
|
1013
|
-
<li className="!text-white/70">
|
|
1014
|
-
Implement proper error handling for insufficient funds
|
|
1015
|
-
</li>
|
|
1016
|
-
</ul>
|
|
1017
|
-
</div>
|
|
1018
|
-
</div>
|
|
1019
|
-
|
|
1020
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
1021
|
-
<h3 className="mb-4 text-lg font-semibold !text-blue-300">
|
|
1022
|
-
Proper ARIA Implementation
|
|
1023
|
-
</h3>
|
|
1024
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
1025
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
1026
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
1027
|
-
{`// Wallet balance display
|
|
1028
|
-
<div className="balance-display">
|
|
1029
|
-
<CoinToonsIcon
|
|
1030
|
-
className="h-5 w-5"
|
|
1031
|
-
aria-hidden="true"
|
|
1032
|
-
/>
|
|
1033
|
-
<span
|
|
1034
|
-
aria-label={balance + " coins in wallet"}
|
|
1035
|
-
className="balance-amount"
|
|
1036
|
-
>
|
|
1037
|
-
{balance}
|
|
1038
|
-
</span>
|
|
1039
|
-
</div>
|
|
1040
|
-
|
|
1041
|
-
// Interactive coin button
|
|
1042
|
-
<button
|
|
1043
|
-
aria-label={"Purchase item for " + price + " coins"}
|
|
1044
|
-
aria-describedby="coin-balance"
|
|
1045
|
-
onClick={handlePurchase}
|
|
1046
|
-
disabled={balance < price}
|
|
1047
|
-
>
|
|
1048
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
1049
|
-
<span>{price}</span>
|
|
1050
|
-
</button>
|
|
1051
|
-
<div id="coin-balance" className="sr-only">
|
|
1052
|
-
Current balance: {balance} coins
|
|
1053
|
-
</div>
|
|
1054
|
-
|
|
1055
|
-
// Reward notification
|
|
1056
|
-
<div
|
|
1057
|
-
role="alert"
|
|
1058
|
-
aria-live="polite"
|
|
1059
|
-
className="reward-notification"
|
|
1060
|
-
>
|
|
1061
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
1062
|
-
<span>You earned {rewardAmount} coins!</span>
|
|
1063
|
-
</div>
|
|
1064
|
-
|
|
1065
|
-
// Store item pricing
|
|
1066
|
-
<div className="store-item">
|
|
1067
|
-
<ItemImage />
|
|
1068
|
-
<div className="item-details">
|
|
1069
|
-
<h3>{item.name}</h3>
|
|
1070
|
-
<div
|
|
1071
|
-
className="item-price"
|
|
1072
|
-
aria-label={"Price: " + item.price + " coins"}
|
|
1073
|
-
>
|
|
1074
|
-
<CoinToonsIcon className="h-3 w-3" />
|
|
1075
|
-
<span>{item.price}</span>
|
|
1076
|
-
</div>
|
|
1077
|
-
</div>
|
|
1078
|
-
</div>`}
|
|
1079
|
-
</pre>
|
|
1080
|
-
</div>
|
|
1081
|
-
<div className="!space-y-4">
|
|
1082
|
-
<p className="text-sm !text-white/70">
|
|
1083
|
-
When using CoinToonsIcon for financial displays, always
|
|
1084
|
-
provide clear context about the currency value and
|
|
1085
|
-
ensure users understand the monetary implications of
|
|
1086
|
-
their actions.
|
|
1087
|
-
</p>
|
|
1088
|
-
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
1089
|
-
<div className="flex items-center gap-2 text-sm text-yellow-200">
|
|
1090
|
-
<CoinToonsIcon className="h-4 w-4" />
|
|
1091
|
-
<span>
|
|
1092
|
-
Always announce balance changes and transaction
|
|
1093
|
-
results to screen readers
|
|
1094
|
-
</span>
|
|
1095
|
-
</div>
|
|
1096
|
-
</div>
|
|
1097
|
-
</div>
|
|
1098
|
-
</div>
|
|
1099
|
-
</div>
|
|
1100
|
-
</div>
|
|
1101
|
-
|
|
1102
|
-
{/* Related Icons */}
|
|
1103
|
-
<div className="!space-y-8">
|
|
1104
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
1105
|
-
Related Icons
|
|
1106
|
-
</h2>
|
|
1107
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
1108
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
1109
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
1110
|
-
<span className="!text-2xl !text-white">💳</span>
|
|
1111
|
-
</div>
|
|
1112
|
-
<div>
|
|
1113
|
-
<div className="font-medium text-white">
|
|
1114
|
-
CreditCardIcon
|
|
1115
|
-
</div>
|
|
1116
|
-
<div className="text-xs text-white/60">
|
|
1117
|
-
Payment method
|
|
1118
|
-
</div>
|
|
1119
|
-
</div>
|
|
1120
|
-
</div>
|
|
1121
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
1122
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
1123
|
-
<span className="!text-2xl !text-white">💰</span>
|
|
1124
|
-
</div>
|
|
1125
|
-
<div>
|
|
1126
|
-
<div className="font-medium text-white">WalletIcon</div>
|
|
1127
|
-
<div className="text-xs text-white/60">
|
|
1128
|
-
Digital wallet
|
|
1129
|
-
</div>
|
|
1130
|
-
</div>
|
|
1131
|
-
</div>
|
|
1132
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
1133
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
1134
|
-
<span className="!text-2xl !text-white">🏆</span>
|
|
1135
|
-
</div>
|
|
1136
|
-
<div>
|
|
1137
|
-
<div className="font-medium text-white">TrophyIcon</div>
|
|
1138
|
-
<div className="text-xs text-white/60">
|
|
1139
|
-
Achievement reward
|
|
1140
|
-
</div>
|
|
1141
|
-
</div>
|
|
1142
|
-
</div>
|
|
1143
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
1144
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
1145
|
-
<span className="!text-2xl !text-white">🛒</span>
|
|
1146
|
-
</div>
|
|
1147
|
-
<div>
|
|
1148
|
-
<div className="font-medium text-white">ShoppingIcon</div>
|
|
1149
|
-
<div className="text-xs text-white/60">
|
|
1150
|
-
Purchase items
|
|
1151
|
-
</div>
|
|
1152
|
-
</div>
|
|
1153
|
-
</div>
|
|
1154
|
-
</div>
|
|
1155
|
-
</div>
|
|
1156
|
-
</div>
|
|
1157
|
-
|
|
1158
|
-
{/* Footer */}
|
|
1159
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
1160
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
1161
|
-
<div className="!space-y-4 text-center">
|
|
1162
|
-
<p className="!text-white/60">
|
|
1163
|
-
CoinToonsIcon is part of the Aural UI icon library, built
|
|
1164
|
-
with accessibility and financial interface best practices in
|
|
1165
|
-
mind.
|
|
1166
|
-
</p>
|
|
1167
|
-
<p className="text-sm !text-white/40">
|
|
1168
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
1169
|
-
compatibility and follow WCAG guidelines for monetary
|
|
1170
|
-
displays and transaction interfaces.
|
|
1171
|
-
</p>
|
|
1172
|
-
</div>
|
|
1173
|
-
</div>
|
|
1174
|
-
</div>
|
|
1175
|
-
</div>
|
|
1176
|
-
</>
|
|
1177
92
|
),
|
|
1178
93
|
},
|
|
1179
94
|
},
|
|
1180
95
|
tags: ["autodocs"],
|
|
1181
96
|
argTypes: {
|
|
1182
|
-
width: {
|
|
1183
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1184
|
-
description: "Width of the icon in pixels",
|
|
1185
|
-
},
|
|
1186
|
-
height: {
|
|
1187
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1188
|
-
description: "Height of the icon in pixels",
|
|
1189
|
-
},
|
|
1190
97
|
className: {
|
|
1191
98
|
control: "text",
|
|
1192
|
-
description: "CSS classes
|
|
99
|
+
description: "CSS classes including color token",
|
|
1193
100
|
},
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
description: "
|
|
101
|
+
withAccessibility: {
|
|
102
|
+
control: "boolean",
|
|
103
|
+
description: "Wrap with accessibility label",
|
|
1197
104
|
},
|
|
1198
105
|
},
|
|
1199
106
|
}
|
|
@@ -1201,184 +108,76 @@ function WalletBalance() {
|
|
|
1201
108
|
export default meta
|
|
1202
109
|
type Story = StoryObj<typeof CoinToonsIcon>
|
|
1203
110
|
|
|
1204
|
-
// Story parameters for consistent dark theme
|
|
1205
|
-
const storyParameters = {
|
|
1206
|
-
backgrounds: {
|
|
1207
|
-
default: "dark",
|
|
1208
|
-
values: [
|
|
1209
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
1210
|
-
{ name: "darker", value: "#000000" },
|
|
1211
|
-
],
|
|
1212
|
-
},
|
|
1213
|
-
}
|
|
1214
|
-
|
|
1215
111
|
export const Default: Story = {
|
|
1216
112
|
args: {
|
|
1217
|
-
className: "h-
|
|
113
|
+
className: "h-6 w-6 text-fm-icon-warning",
|
|
114
|
+
withAccessibility: true,
|
|
1218
115
|
},
|
|
1219
|
-
parameters: storyParameters,
|
|
1220
116
|
render: (args) => (
|
|
1221
|
-
<
|
|
117
|
+
<IconDefaultCanvas>
|
|
1222
118
|
<CoinToonsIcon {...args} />
|
|
1223
|
-
</
|
|
119
|
+
</IconDefaultCanvas>
|
|
1224
120
|
),
|
|
1225
121
|
}
|
|
1226
122
|
|
|
1227
123
|
export const SizeVariations: Story = {
|
|
1228
|
-
|
|
1229
|
-
...storyParameters,
|
|
1230
|
-
docs: {
|
|
1231
|
-
description: {
|
|
1232
|
-
story:
|
|
1233
|
-
"CoinToonsIcon in different sizes, from small inline currency displays to large wallet interfaces.",
|
|
1234
|
-
},
|
|
1235
|
-
},
|
|
1236
|
-
},
|
|
1237
|
-
render: () => (
|
|
1238
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1239
|
-
<div className="text-center">
|
|
1240
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
1241
|
-
<span className="text-xs text-white/60">12px</span>
|
|
1242
|
-
</div>
|
|
1243
|
-
<div className="text-center">
|
|
1244
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
1245
|
-
<span className="text-xs text-white/60">16px</span>
|
|
1246
|
-
</div>
|
|
1247
|
-
<div className="text-center">
|
|
1248
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
1249
|
-
<span className="text-xs text-white/60">20px</span>
|
|
1250
|
-
</div>
|
|
1251
|
-
<div className="text-center">
|
|
1252
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
1253
|
-
<span className="text-xs text-white/60">24px</span>
|
|
1254
|
-
</div>
|
|
1255
|
-
<div className="text-center">
|
|
1256
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
1257
|
-
<span className="text-xs text-white/60">32px</span>
|
|
1258
|
-
</div>
|
|
1259
|
-
<div className="text-center">
|
|
1260
|
-
<CoinToonsIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
1261
|
-
<span className="text-xs text-white/60">48px</span>
|
|
1262
|
-
</div>
|
|
1263
|
-
</div>
|
|
1264
|
-
),
|
|
124
|
+
render: () => <IconSizeVariations icon={CoinToonsIcon} />,
|
|
1265
125
|
}
|
|
1266
126
|
|
|
1267
|
-
export const
|
|
1268
|
-
|
|
1269
|
-
...storyParameters,
|
|
1270
|
-
docs: {
|
|
1271
|
-
description: {
|
|
1272
|
-
story:
|
|
1273
|
-
"CoinToonsIcon in different contextual applications showing its built-in golden design.",
|
|
1274
|
-
},
|
|
1275
|
-
},
|
|
1276
|
-
},
|
|
1277
|
-
render: () => (
|
|
1278
|
-
<div className="grid min-h-dvh grid-cols-1 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-3">
|
|
1279
|
-
<div className="text-center">
|
|
1280
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-yellow-500/30 bg-yellow-500/20">
|
|
1281
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
1282
|
-
</div>
|
|
1283
|
-
<div className="text-sm font-medium text-white">Wallet Balance</div>
|
|
1284
|
-
<div className="text-xs text-yellow-400">Currency display</div>
|
|
1285
|
-
</div>
|
|
1286
|
-
<div className="text-center">
|
|
1287
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-amber-500/30 bg-amber-500/20">
|
|
1288
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
1289
|
-
</div>
|
|
1290
|
-
<div className="text-sm font-medium text-white">Store Pricing</div>
|
|
1291
|
-
<div className="text-xs text-amber-400">E-commerce value</div>
|
|
1292
|
-
</div>
|
|
1293
|
-
<div className="text-center">
|
|
1294
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-orange-500/30 bg-orange-500/20">
|
|
1295
|
-
<CoinToonsIcon className="h-8 w-8" />
|
|
1296
|
-
</div>
|
|
1297
|
-
<div className="text-sm font-medium text-white">Game Rewards</div>
|
|
1298
|
-
<div className="text-xs text-orange-400">Achievement system</div>
|
|
1299
|
-
</div>
|
|
1300
|
-
</div>
|
|
1301
|
-
),
|
|
127
|
+
export const ColorVariations: Story = {
|
|
128
|
+
render: () => <IconColorVariations icon={CoinToonsIcon} />,
|
|
1302
129
|
}
|
|
1303
130
|
|
|
1304
131
|
export const UsageExamples: Story = {
|
|
1305
|
-
parameters: {
|
|
1306
|
-
...storyParameters,
|
|
1307
|
-
docs: {
|
|
1308
|
-
description: {
|
|
1309
|
-
story:
|
|
1310
|
-
"Real-world usage examples showing CoinToonsIcon in different financial and gaming contexts.",
|
|
1311
|
-
},
|
|
1312
|
-
},
|
|
1313
|
-
},
|
|
1314
132
|
render: () => (
|
|
1315
|
-
<
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
<span className="font-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
<span className="text-lg font-bold text-yellow-300">2,847</span>
|
|
1327
|
-
</div>
|
|
133
|
+
<IconUsageCanvas>
|
|
134
|
+
<IconUsageSection title="Toons Balance">
|
|
135
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
|
|
136
|
+
<span className="text-fm-secondary font-fm-text text-sm">
|
|
137
|
+
Toons balance
|
|
138
|
+
</span>
|
|
139
|
+
<div className="flex items-center gap-1.5">
|
|
140
|
+
<CoinToonsIcon className="text-fm-icon-warning h-5 w-5" />
|
|
141
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
142
|
+
500
|
|
143
|
+
</span>
|
|
1328
144
|
</div>
|
|
1329
145
|
</div>
|
|
1330
|
-
</
|
|
146
|
+
</IconUsageSection>
|
|
1331
147
|
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
<span className="font-medium text-yellow-400">500</span>
|
|
1350
|
-
</div>
|
|
1351
|
-
<button className="rounded border border-yellow-500/30 bg-yellow-500/20 px-3 py-1 text-sm text-yellow-300 transition-colors hover:bg-yellow-500/30">
|
|
1352
|
-
Buy
|
|
1353
|
-
</button>
|
|
148
|
+
<IconUsageSection title="Unlock Toon Episode">
|
|
149
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
|
|
150
|
+
<CoinToonsIcon className="text-fm-icon-warning h-4 w-4" />
|
|
151
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
152
|
+
Unlock for 50 coins
|
|
153
|
+
</span>
|
|
154
|
+
</button>
|
|
155
|
+
</IconUsageSection>
|
|
156
|
+
|
|
157
|
+
<IconUsageSection title="Coin Types">
|
|
158
|
+
<div className="flex gap-4">
|
|
159
|
+
{[CoinIcon, CoinToonsIcon, StoreCoinIcon].map((Icon, i) => (
|
|
160
|
+
<div key={i} className="flex flex-col items-center gap-1">
|
|
161
|
+
<Icon className="text-fm-icon-warning h-8 w-8" />
|
|
162
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
163
|
+
{["FM", "Toons", "Store"][i]}
|
|
164
|
+
</span>
|
|
1354
165
|
</div>
|
|
1355
|
-
|
|
166
|
+
))}
|
|
1356
167
|
</div>
|
|
1357
|
-
</
|
|
1358
|
-
</
|
|
168
|
+
</IconUsageSection>
|
|
169
|
+
</IconUsageCanvas>
|
|
1359
170
|
),
|
|
1360
171
|
}
|
|
1361
172
|
|
|
1362
173
|
export const Playground: Story = {
|
|
1363
|
-
parameters: {
|
|
1364
|
-
...storyParameters,
|
|
1365
|
-
docs: {
|
|
1366
|
-
description: {
|
|
1367
|
-
story:
|
|
1368
|
-
"Interactive playground to experiment with different CoinToonsIcon configurations.",
|
|
1369
|
-
},
|
|
1370
|
-
},
|
|
1371
|
-
},
|
|
1372
174
|
args: {
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
className: "",
|
|
175
|
+
className: "h-8 w-8 text-fm-icon-warning",
|
|
176
|
+
withAccessibility: true,
|
|
1376
177
|
},
|
|
1377
178
|
render: (args) => (
|
|
1378
|
-
<
|
|
1379
|
-
<
|
|
1380
|
-
|
|
1381
|
-
</div>
|
|
1382
|
-
</div>
|
|
179
|
+
<IconPlaygroundCanvas>
|
|
180
|
+
<CoinToonsIcon {...args} />
|
|
181
|
+
</IconPlaygroundCanvas>
|
|
1383
182
|
),
|
|
1384
183
|
}
|