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