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 { CoinToonsIcon } from "src/ui/icons/coin-toons-icon"
|
|
6
|
+
import { HeartIcon } from "src/ui/icons/heart-icon"
|
|
7
|
+
import { StarIcon } from "src/ui/icons/star-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 { StoreCoinIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof StoreCoinIcon> = {
|
|
@@ -18,814 +32,69 @@ const meta: Meta<typeof StoreCoinIcon> = {
|
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
padding: 0 !important;
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
background: transparent !important;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent !important;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) !important;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent !important;
|
|
50
|
-
border: none !important;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: var(--color-fm-icon-active) !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
-
color: var(--color-fm-secondary-500) !important;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
color: var(--color-fm-icon-active) !important;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) !important;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
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 via-fm-icon-warning/10 to-fm-icon-warning/10 absolute inset-0 bg-linear-to-r" />
|
|
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
|
-
<StoreCoinIcon className="h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
StoreCoinIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
|
-
A vibrant store coin icon representing in-app purchases,
|
|
97
|
-
virtual currency, and digital transactions. Built with
|
|
98
|
-
accessibility in mind using Radix UI's AccessibleIcon
|
|
99
|
-
wrapper for seamless screen reader support.
|
|
100
|
-
</p>
|
|
101
|
-
|
|
102
|
-
{/* Stats */}
|
|
103
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
-
<div className="text-center">
|
|
105
|
-
<div className="text-fm-icon-warning text-3xl font-bold">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-fm-tertiary text-sm">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-fm-icon-warning text-3xl font-bold">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-fm-tertiary text-sm">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-fm-tertiary text-sm">
|
|
127
|
-
Customizable styling
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
{/* Content */}
|
|
136
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
-
{/* Quick Usage */}
|
|
138
|
-
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
140
|
-
Quick Start
|
|
141
|
-
</h2>
|
|
142
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
-
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-fm-icon-warning! text-xl font-semibold">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
|
-
{`import { StoreCoinIcon } from "@icons/store-coin-icon"
|
|
150
|
-
|
|
151
|
-
function PurchaseButton() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="warning"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Store", description: "In-app store coin icon" },
|
|
39
|
+
{ title: "Purchase", description: "Buy or spend coins" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { StoreCoinIcon } from "src/ui/icons/store-coin-icon"
|
|
44
|
+
|
|
45
|
+
function CoinBalance() {
|
|
152
46
|
return (
|
|
153
|
-
<
|
|
154
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
155
|
-
<span>
|
|
156
|
-
</button>
|
|
157
|
-
)
|
|
158
|
-
}`}
|
|
159
|
-
</pre>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-fm-icon-warning! text-xl font-semibold">
|
|
165
|
-
Live Preview
|
|
166
|
-
</h3>
|
|
167
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
168
|
-
<button className="border-fm-icon-warning/20 bg-fm-icon-warning/10 hover:bg-fm-icon-warning/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
169
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
170
|
-
<span className="text-fm-icon-active">Buy Coins</span>
|
|
171
|
-
</button>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
{/* Props Documentation */}
|
|
178
|
-
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
180
|
-
Props & Configuration
|
|
181
|
-
</h2>
|
|
182
|
-
|
|
183
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
184
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
185
|
-
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
186
|
-
Props
|
|
187
|
-
</h3>
|
|
188
|
-
</div>
|
|
189
|
-
<table className="!my-0 w-full">
|
|
190
|
-
<thead className="bg-fm-surface-secondary">
|
|
191
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
192
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
193
|
-
Prop
|
|
194
|
-
</th>
|
|
195
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
196
|
-
Type
|
|
197
|
-
</th>
|
|
198
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
|
-
Default
|
|
200
|
-
</th>
|
|
201
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
|
-
Description
|
|
203
|
-
</th>
|
|
204
|
-
</tr>
|
|
205
|
-
</thead>
|
|
206
|
-
<tbody>
|
|
207
|
-
{" "}
|
|
208
|
-
<tr className="bg-fm-surface-secondary!">
|
|
209
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
210
|
-
withAccessibility
|
|
211
|
-
</td>
|
|
212
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
213
|
-
boolean
|
|
214
|
-
</td>
|
|
215
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
216
|
-
true
|
|
217
|
-
</td>
|
|
218
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
219
|
-
Whether to wrap the icon with accessibility feature
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
223
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
224
|
-
height
|
|
225
|
-
</td>
|
|
226
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
227
|
-
number | string
|
|
228
|
-
</td>
|
|
229
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
230
|
-
28
|
|
231
|
-
</td>
|
|
232
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
233
|
-
Height of the icon in pixels
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
237
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
238
|
-
fill
|
|
239
|
-
</td>
|
|
240
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
241
|
-
string
|
|
242
|
-
</td>
|
|
243
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
244
|
-
Coin gradient
|
|
245
|
-
</td>
|
|
246
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
247
|
-
Uses embedded coin colors
|
|
248
|
-
</td>
|
|
249
|
-
</tr>
|
|
250
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
251
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
252
|
-
className
|
|
253
|
-
</td>
|
|
254
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
255
|
-
string
|
|
256
|
-
</td>
|
|
257
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
258
|
-
-
|
|
259
|
-
</td>
|
|
260
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
261
|
-
CSS classes for styling
|
|
262
|
-
</td>
|
|
263
|
-
</tr>
|
|
264
|
-
<tr className="bg-fm-surface-secondary!">
|
|
265
|
-
<td className="text-fm-icon-warning! px-6 py-4 font-mono text-sm">
|
|
266
|
-
...svgProps
|
|
267
|
-
</td>
|
|
268
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
|
-
SVGProps
|
|
270
|
-
</td>
|
|
271
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
272
|
-
-
|
|
273
|
-
</td>
|
|
274
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
275
|
-
All standard SVG element props
|
|
276
|
-
</td>
|
|
277
|
-
</tr>
|
|
278
|
-
</tbody>
|
|
279
|
-
</table>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
|
|
283
|
-
{/* Size Variations */}
|
|
284
|
-
<div className="!space-y-8">
|
|
285
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
286
|
-
Size Variations
|
|
287
|
-
</h2>
|
|
288
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
289
|
-
<div className="!space-y-6">
|
|
290
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
291
|
-
<div className="!space-y-4">
|
|
292
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
293
|
-
Standard Sizes
|
|
294
|
-
</h3>
|
|
295
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
298
|
-
<span className="text-fm-tertiary text-xs">
|
|
299
|
-
12px
|
|
300
|
-
</span>
|
|
301
|
-
</div>
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
304
|
-
<span className="text-fm-tertiary text-xs">
|
|
305
|
-
16px
|
|
306
|
-
</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
310
|
-
<span className="text-fm-tertiary text-xs">
|
|
311
|
-
20px
|
|
312
|
-
</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
316
|
-
<span className="text-fm-tertiary text-xs">
|
|
317
|
-
24px
|
|
318
|
-
</span>
|
|
319
|
-
</div>
|
|
320
|
-
<div className="text-center">
|
|
321
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
322
|
-
<span className="text-fm-tertiary text-xs">
|
|
323
|
-
32px
|
|
324
|
-
</span>
|
|
325
|
-
</div>
|
|
326
|
-
<div className="text-center">
|
|
327
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
328
|
-
<span className="text-fm-tertiary text-xs">
|
|
329
|
-
48px
|
|
330
|
-
</span>
|
|
331
|
-
</div>
|
|
332
|
-
</div>
|
|
333
|
-
</div>
|
|
334
|
-
|
|
335
|
-
<div className="!space-y-4">
|
|
336
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
337
|
-
Code Example
|
|
338
|
-
</h3>
|
|
339
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
340
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
341
|
-
{`// Small (16px)
|
|
342
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
343
|
-
|
|
344
|
-
// Medium (24px)
|
|
345
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
346
|
-
|
|
347
|
-
// Large (32px)
|
|
348
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
349
|
-
|
|
350
|
-
// Custom size
|
|
351
|
-
<StoreCoinIcon width={40} height={40} />`}
|
|
352
|
-
</pre>
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
|
-
</div>
|
|
357
|
-
</div>
|
|
358
|
-
</div>
|
|
359
|
-
|
|
360
|
-
{/* Color Variations */}
|
|
361
|
-
<div className="!space-y-8">
|
|
362
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
363
|
-
Color Variations
|
|
364
|
-
</h2>
|
|
365
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
366
|
-
<div className="!space-y-4">
|
|
367
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
368
|
-
Display Contexts
|
|
369
|
-
</h3>
|
|
370
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
371
|
-
<div className="flex items-center gap-4">
|
|
372
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
373
|
-
<div>
|
|
374
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
375
|
-
Original Gradient
|
|
376
|
-
</div>
|
|
377
|
-
<div className="text-fm-tertiary text-xs">
|
|
378
|
-
Golden coin design
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
<div className="flex items-center gap-4">
|
|
383
|
-
<div className="bg-fm-surface-contrast rounded p-1">
|
|
384
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
385
|
-
</div>
|
|
386
|
-
<div>
|
|
387
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
388
|
-
On White Background
|
|
389
|
-
</div>
|
|
390
|
-
<div className="text-fm-tertiary text-xs">
|
|
391
|
-
Optimal contrast
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
<div className="flex items-center gap-4">
|
|
396
|
-
<div className="bg-fm-surface-secondary rounded p-1">
|
|
397
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
398
|
-
</div>
|
|
399
|
-
<div>
|
|
400
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
401
|
-
On Light Background
|
|
402
|
-
</div>
|
|
403
|
-
<div className="text-fm-tertiary text-xs">
|
|
404
|
-
Light gray surface
|
|
405
|
-
</div>
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
<div className="flex items-center gap-4">
|
|
409
|
-
<div className="bg-fm-surface-secondary rounded p-1">
|
|
410
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
411
|
-
</div>
|
|
412
|
-
<div>
|
|
413
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
414
|
-
On Dark Background
|
|
415
|
-
</div>
|
|
416
|
-
<div className="text-fm-tertiary text-xs">
|
|
417
|
-
Dark surface
|
|
418
|
-
</div>
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
|
|
424
|
-
<div className="!space-y-4">
|
|
425
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
426
|
-
Implementation Notes
|
|
427
|
-
</h3>
|
|
428
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
429
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
430
|
-
{`// Store coin uses embedded gradient colors
|
|
431
|
-
// Golden orange (#FFB340) with highlights
|
|
432
|
-
|
|
433
|
-
// Basic usage (maintains original colors)
|
|
434
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
435
|
-
|
|
436
|
-
// On light backgrounds (recommended)
|
|
437
|
-
<div className="bg-white p-2 rounded">
|
|
438
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
439
|
-
</div>
|
|
440
|
-
|
|
441
|
-
// Custom sizing
|
|
442
|
-
<StoreCoinIcon
|
|
443
|
-
width={32}
|
|
444
|
-
height={32}
|
|
445
|
-
className="flex-shrink-0"
|
|
446
|
-
/>`}
|
|
447
|
-
</pre>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
</div>
|
|
452
|
-
|
|
453
|
-
{/* Usage Examples */}
|
|
454
|
-
<div className="!space-y-8">
|
|
455
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
456
|
-
Usage Examples
|
|
457
|
-
</h2>
|
|
458
|
-
|
|
459
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
460
|
-
{/* Purchase Actions */}
|
|
461
|
-
<div className="!space-y-4">
|
|
462
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
463
|
-
Purchase Actions
|
|
464
|
-
</h3>
|
|
465
|
-
<div className="!space-y-4">
|
|
466
|
-
<div className="flex gap-4">
|
|
467
|
-
<button className="border-fm-icon-warning/30 bg-fm-icon-warning/20 text-fm-icon-warning hover:bg-fm-icon-warning/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
468
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
469
|
-
Buy Coins
|
|
470
|
-
</button>
|
|
471
|
-
<button className="border-fm-icon-warning/30 bg-fm-icon-warning/20 text-fm-icon-warning hover:bg-fm-icon-warning/30 flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
|
|
472
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
473
|
-
Earn More
|
|
474
|
-
</button>
|
|
475
|
-
</div>
|
|
476
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
477
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
478
|
-
{`// Primary purchase button
|
|
479
|
-
<button className="flex items-center gap-2 bg-yellow-500/20 border border-yellow-500/30 px-4 py-2 rounded-lg">
|
|
480
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
481
|
-
Buy Coins
|
|
482
|
-
</button>
|
|
483
|
-
|
|
484
|
-
// Earn coins button
|
|
485
|
-
<button className="flex items-center gap-2 bg-orange-500/20 border border-orange-500/30 px-3 py-2 rounded-lg">
|
|
486
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
487
|
-
Earn More
|
|
488
|
-
</button>`}
|
|
489
|
-
</pre>
|
|
490
|
-
</div>
|
|
491
|
-
</div>
|
|
492
|
-
</div>
|
|
493
|
-
|
|
494
|
-
{/* Balance Display */}
|
|
495
|
-
<div className="!space-y-4">
|
|
496
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
497
|
-
Balance Display
|
|
498
|
-
</h3>
|
|
499
|
-
<div className="!space-y-4">
|
|
500
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
501
|
-
<div className="flex items-center justify-between">
|
|
502
|
-
<div className="flex items-center gap-3">
|
|
503
|
-
<div className="bg-fm-icon-warning/20 flex h-10 w-10 items-center justify-center rounded-lg">
|
|
504
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
505
|
-
</div>
|
|
506
|
-
<div>
|
|
507
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
508
|
-
Current Balance
|
|
509
|
-
</div>
|
|
510
|
-
<div className="text-fm-tertiary text-xs">
|
|
511
|
-
Store Credits
|
|
512
|
-
</div>
|
|
513
|
-
</div>
|
|
514
|
-
</div>
|
|
515
|
-
<div className="text-right">
|
|
516
|
-
<div className="text-fm-icon-warning text-lg font-bold">
|
|
517
|
-
2,450
|
|
518
|
-
</div>
|
|
519
|
-
<div className="text-fm-tertiary text-xs">
|
|
520
|
-
coins
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
526
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
527
|
-
{`<div className="flex items-center justify-between">
|
|
528
|
-
<div className="flex items-center gap-3">
|
|
529
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
530
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
47
|
+
<div className="flex items-center gap-1.5">
|
|
48
|
+
<StoreCoinIcon className="h-5 w-5 text-fm-icon-warning" />
|
|
49
|
+
<span>1,200</span>
|
|
531
50
|
</div>
|
|
532
|
-
<div>
|
|
533
|
-
<div className="text-sm font-medium text-white">Current Balance</div>
|
|
534
|
-
<div className="text-xs text-white/60">Store Credits</div>
|
|
535
|
-
</div>
|
|
536
|
-
</div>
|
|
537
|
-
<div className="text-right">
|
|
538
|
-
<div className="text-lg font-bold text-yellow-300">2,450</div>
|
|
539
|
-
<div className="text-xs text-white/60">coins</div>
|
|
540
|
-
</div>
|
|
541
|
-
</div>`}
|
|
542
|
-
</pre>
|
|
543
|
-
</div>
|
|
544
|
-
</div>
|
|
545
|
-
</div>
|
|
546
|
-
|
|
547
|
-
{/* Store Package */}
|
|
548
|
-
<div className="!space-y-4">
|
|
549
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
550
|
-
Store Package
|
|
551
|
-
</h3>
|
|
552
|
-
<div className="!space-y-4">
|
|
553
|
-
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/5 rounded-lg border p-6">
|
|
554
|
-
<div className="!space-y-4 text-center">
|
|
555
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-16 w-16 items-center justify-center rounded-lg">
|
|
556
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
557
|
-
</div>
|
|
558
|
-
<div className="!space-y-2">
|
|
559
|
-
<h4 className="text-fm-icon-active! font-medium">
|
|
560
|
-
Mega Coin Pack
|
|
561
|
-
</h4>
|
|
562
|
-
<p className="text-fm-secondary! text-sm">
|
|
563
|
-
Get 10,000 coins with 20% bonus
|
|
564
|
-
</p>
|
|
565
|
-
<div className="text-fm-icon-warning text-2xl font-bold">
|
|
566
|
-
$9.99
|
|
567
|
-
</div>
|
|
568
|
-
</div>
|
|
569
|
-
<button className="bg-fm-icon-warning text-fm-icon-active hover:bg-fm-icon-warning rounded-lg px-6 py-2 text-sm transition-colors">
|
|
570
|
-
Purchase
|
|
571
|
-
</button>
|
|
572
|
-
</div>
|
|
573
|
-
</div>
|
|
574
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
575
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
576
|
-
{`<div className="border border-yellow-500/20 bg-yellow-500/5 p-6 rounded-lg">
|
|
577
|
-
<div className="space-y-4 text-center">
|
|
578
|
-
<div className="mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
579
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
580
|
-
</div>
|
|
581
|
-
<div className="space-y-2">
|
|
582
|
-
<h4 className="font-medium text-white">Mega Coin Pack</h4>
|
|
583
|
-
<p className="text-sm text-white/70">Get 10,000 coins with 20% bonus</p>
|
|
584
|
-
<div className="text-2xl font-bold text-yellow-300">$9.99</div>
|
|
585
|
-
</div>
|
|
586
|
-
<button className="bg-yellow-500 hover:bg-yellow-600 px-6 py-2 rounded-lg text-sm text-black">
|
|
587
|
-
Purchase
|
|
588
|
-
</button>
|
|
589
|
-
</div>
|
|
590
|
-
</div>`}
|
|
591
|
-
</pre>
|
|
592
|
-
</div>
|
|
593
|
-
</div>
|
|
594
|
-
</div>
|
|
595
|
-
|
|
596
|
-
{/* Transaction History */}
|
|
597
|
-
<div className="!space-y-4">
|
|
598
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
599
|
-
Transaction History
|
|
600
|
-
</h3>
|
|
601
|
-
<div className="!space-y-4">
|
|
602
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4">
|
|
603
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
604
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
605
|
-
<span className="text-fm-icon-active flex-1">
|
|
606
|
-
Purchased Premium Pack
|
|
607
|
-
</span>
|
|
608
|
-
<span className="text-fm-icon-positive">+500</span>
|
|
609
|
-
</div>
|
|
610
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
611
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
612
|
-
<span className="text-fm-icon-active flex-1">
|
|
613
|
-
Daily Login Bonus
|
|
614
|
-
</span>
|
|
615
|
-
<span className="text-fm-icon-positive">+50</span>
|
|
616
|
-
</div>
|
|
617
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
618
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
619
|
-
<span className="text-fm-icon-active flex-1">
|
|
620
|
-
Unlocked Special Item
|
|
621
|
-
</span>
|
|
622
|
-
<span className="text-fm-icon-negative">-200</span>
|
|
623
|
-
</div>
|
|
624
|
-
</div>
|
|
625
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
626
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
627
|
-
{`// Transaction history item
|
|
628
|
-
<div className="flex items-center gap-3 px-3 py-2 text-sm rounded">
|
|
629
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
630
|
-
<span className="flex-1 text-white">Purchased Premium Pack</span>
|
|
631
|
-
<span className="text-green-400">+500</span>
|
|
632
|
-
</div>`}
|
|
633
|
-
</pre>
|
|
634
|
-
</div>
|
|
635
|
-
</div>
|
|
636
|
-
</div>
|
|
637
|
-
</div>
|
|
638
|
-
</div>
|
|
639
|
-
|
|
640
|
-
{/* Accessibility */}
|
|
641
|
-
<div className="!space-y-8">
|
|
642
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
643
|
-
Accessibility Features
|
|
644
|
-
</h2>
|
|
645
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
646
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
647
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
648
|
-
✅ Built-in Features
|
|
649
|
-
</h3>
|
|
650
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
651
|
-
<li className="text-fm-secondary!">
|
|
652
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
653
|
-
</li>
|
|
654
|
-
<li className="text-fm-secondary!">
|
|
655
|
-
Provides screen reader label "Store coin icon"
|
|
656
|
-
</li>
|
|
657
|
-
<li className="text-fm-secondary!">
|
|
658
|
-
Supports keyboard navigation when interactive
|
|
659
|
-
</li>
|
|
660
|
-
<li className="text-fm-secondary!">
|
|
661
|
-
Maintains proper color contrast ratios
|
|
662
|
-
</li>
|
|
663
|
-
<li className="text-fm-secondary!">
|
|
664
|
-
Scales with user's font size preferences
|
|
665
|
-
</li>
|
|
666
|
-
</ul>
|
|
667
|
-
</div>
|
|
668
|
-
|
|
669
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
670
|
-
<h3 className="text-fm-icon-warning! text-lg font-semibold">
|
|
671
|
-
💡 Best Practices
|
|
672
|
-
</h3>
|
|
673
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
674
|
-
<li className="text-fm-secondary!">
|
|
675
|
-
Always pair with descriptive text for transactions
|
|
676
|
-
</li>
|
|
677
|
-
<li className="text-fm-secondary!">
|
|
678
|
-
Use clear coin amounts and pricing
|
|
679
|
-
</li>
|
|
680
|
-
<li className="text-fm-secondary!">
|
|
681
|
-
Ensure sufficient spacing around the icon
|
|
682
|
-
</li>
|
|
683
|
-
<li className="text-fm-secondary!">
|
|
684
|
-
Add focus states for interactive elements
|
|
685
|
-
</li>
|
|
686
|
-
<li className="text-fm-secondary!">
|
|
687
|
-
Consider currency context and regional differences
|
|
688
|
-
</li>
|
|
689
|
-
</ul>
|
|
690
|
-
</div>
|
|
691
|
-
</div>
|
|
692
|
-
|
|
693
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
694
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
695
|
-
Custom Accessibility Label
|
|
696
|
-
</h3>
|
|
697
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
698
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
699
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
700
|
-
{`// Custom implementation with specific label
|
|
701
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
702
|
-
|
|
703
|
-
function CustomStoreCoinIcon({ label = "Store coin", ...props }) {
|
|
704
|
-
return (
|
|
705
|
-
<AccessibleIcon label={label}>
|
|
706
|
-
<StoreCoinIcon {...props} />
|
|
707
|
-
</AccessibleIcon>
|
|
708
51
|
)
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
<
|
|
713
|
-
label="Purchase virtual currency"
|
|
714
|
-
className="h-5 w-5"
|
|
715
|
-
/>`}
|
|
716
|
-
</pre>
|
|
717
|
-
</div>
|
|
718
|
-
<div className="!space-y-4">
|
|
719
|
-
<p className="text-fm-secondary! text-sm">
|
|
720
|
-
For specific contexts, you can wrap the StoreCoinIcon
|
|
721
|
-
with a custom AccessibleIcon component that provides
|
|
722
|
-
more descriptive labels for in-app purchases and virtual
|
|
723
|
-
currency.
|
|
724
|
-
</p>
|
|
725
|
-
<div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 rounded-lg border p-4">
|
|
726
|
-
<div className="text-fm-icon-warning flex items-center gap-2 text-sm">
|
|
727
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
728
|
-
<span>
|
|
729
|
-
This approach gives screen readers more context
|
|
730
|
-
</span>
|
|
731
|
-
</div>
|
|
732
|
-
</div>
|
|
733
|
-
</div>
|
|
734
|
-
</div>
|
|
735
|
-
</div>
|
|
736
|
-
</div>
|
|
737
|
-
|
|
738
|
-
{/* Related Icons */}
|
|
739
|
-
<div className="!space-y-8">
|
|
740
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
741
|
-
Related Icons
|
|
742
|
-
</h2>
|
|
743
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
744
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
745
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
746
|
-
<span className="text-2xl">💰</span>
|
|
747
|
-
</div>
|
|
748
|
-
<div>
|
|
749
|
-
<div className="text-fm-icon-active font-medium">
|
|
750
|
-
MoneyIcon
|
|
751
|
-
</div>
|
|
752
|
-
<div className="text-fm-tertiary text-xs">Currency</div>
|
|
753
|
-
</div>
|
|
754
|
-
</div>
|
|
755
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
756
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
757
|
-
<span className="text-2xl">🛒</span>
|
|
758
|
-
</div>
|
|
759
|
-
<div>
|
|
760
|
-
<div className="text-fm-icon-active font-medium">
|
|
761
|
-
ShopIcon
|
|
762
|
-
</div>
|
|
763
|
-
<div className="text-fm-tertiary text-xs">Store</div>
|
|
764
|
-
</div>
|
|
765
|
-
</div>
|
|
766
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
767
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
768
|
-
<span className="text-2xl">💳</span>
|
|
769
|
-
</div>
|
|
770
|
-
<div>
|
|
771
|
-
<div className="text-fm-icon-active font-medium">
|
|
772
|
-
PaymentIcon
|
|
773
|
-
</div>
|
|
774
|
-
<div className="text-fm-tertiary text-xs">Payment</div>
|
|
775
|
-
</div>
|
|
776
|
-
</div>
|
|
777
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
778
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
779
|
-
<span className="text-2xl">🎁</span>
|
|
780
|
-
</div>
|
|
781
|
-
<div>
|
|
782
|
-
<div className="text-fm-icon-active font-medium">
|
|
783
|
-
RewardIcon
|
|
784
|
-
</div>
|
|
785
|
-
<div className="text-fm-tertiary text-xs">Rewards</div>
|
|
786
|
-
</div>
|
|
787
|
-
</div>
|
|
788
|
-
</div>
|
|
789
|
-
</div>
|
|
790
|
-
</div>
|
|
791
|
-
|
|
792
|
-
{/* Footer */}
|
|
793
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
794
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
795
|
-
<div className="!space-y-4 text-center">
|
|
796
|
-
<p className="text-fm-tertiary!">
|
|
797
|
-
StoreCoinIcon is part of the Aural UI icon library, built
|
|
798
|
-
with accessibility and virtual economy clarity in mind.
|
|
799
|
-
</p>
|
|
800
|
-
<p className="text-fm-placeholder! text-sm">
|
|
801
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
802
|
-
compatibility and follow WCAG guidelines.
|
|
803
|
-
</p>
|
|
804
|
-
</div>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<div className="flex items-center gap-1.5">
|
|
55
|
+
<StoreCoinIcon className="text-fm-icon-warning h-6 w-6" />
|
|
805
56
|
</div>
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "CoinIcon",
|
|
62
|
+
description: "In-app coin / token icon",
|
|
63
|
+
icon: CoinIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "CoinToonsIcon",
|
|
68
|
+
description: "Toons coin / currency icon",
|
|
69
|
+
icon: CoinToonsIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "StarIcon",
|
|
74
|
+
description: "Star rating icon",
|
|
75
|
+
icon: StarIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "HeartIcon",
|
|
80
|
+
description: "Like / favourite icon",
|
|
81
|
+
icon: HeartIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
809
86
|
),
|
|
810
87
|
},
|
|
811
88
|
},
|
|
812
89
|
tags: ["autodocs"],
|
|
813
90
|
argTypes: {
|
|
814
|
-
|
|
815
|
-
control:
|
|
816
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
817
94
|
},
|
|
818
95
|
withAccessibility: {
|
|
819
96
|
control: "boolean",
|
|
820
|
-
description: "
|
|
821
|
-
},
|
|
822
|
-
height: {
|
|
823
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
824
|
-
description: "Height of the icon in pixels",
|
|
825
|
-
},
|
|
826
|
-
className: {
|
|
827
|
-
control: "text",
|
|
828
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
829
98
|
},
|
|
830
99
|
},
|
|
831
100
|
}
|
|
@@ -833,248 +102,75 @@ function CustomStoreCoinIcon({ label = "Store coin", ...props }) {
|
|
|
833
102
|
export default meta
|
|
834
103
|
type Story = StoryObj<typeof StoreCoinIcon>
|
|
835
104
|
|
|
836
|
-
// Story parameters for consistent dark theme
|
|
837
|
-
const storyParameters = {
|
|
838
|
-
backgrounds: {
|
|
839
|
-
default: "dark",
|
|
840
|
-
values: [
|
|
841
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
842
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
843
|
-
],
|
|
844
|
-
},
|
|
845
|
-
}
|
|
846
|
-
|
|
847
105
|
export const Default: Story = {
|
|
848
106
|
args: {
|
|
849
|
-
|
|
850
|
-
height: 28,
|
|
851
|
-
className: "",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-warning",
|
|
852
108
|
withAccessibility: true,
|
|
853
109
|
},
|
|
854
|
-
parameters: storyParameters,
|
|
855
110
|
render: (args) => (
|
|
856
|
-
<
|
|
857
|
-
<
|
|
858
|
-
|
|
859
|
-
</div>
|
|
860
|
-
</div>
|
|
111
|
+
<IconDefaultCanvas>
|
|
112
|
+
<StoreCoinIcon {...args} />
|
|
113
|
+
</IconDefaultCanvas>
|
|
861
114
|
),
|
|
862
115
|
}
|
|
863
116
|
|
|
864
117
|
export const SizeVariations: Story = {
|
|
865
|
-
|
|
866
|
-
...storyParameters,
|
|
867
|
-
docs: {
|
|
868
|
-
description: {
|
|
869
|
-
story:
|
|
870
|
-
"StoreCoinIcon in different sizes, from small UI elements to large purchase displays.",
|
|
871
|
-
},
|
|
872
|
-
},
|
|
873
|
-
},
|
|
874
|
-
render: () => (
|
|
875
|
-
<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">
|
|
876
|
-
<div className="text-center">
|
|
877
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
878
|
-
<StoreCoinIcon className="h-3 w-3" />
|
|
879
|
-
</div>
|
|
880
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
881
|
-
</div>
|
|
882
|
-
<div className="text-center">
|
|
883
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
884
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
885
|
-
</div>
|
|
886
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
887
|
-
</div>
|
|
888
|
-
<div className="text-center">
|
|
889
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
890
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
891
|
-
</div>
|
|
892
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
893
|
-
</div>
|
|
894
|
-
<div className="text-center">
|
|
895
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
896
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
897
|
-
</div>
|
|
898
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
899
|
-
</div>
|
|
900
|
-
<div className="text-center">
|
|
901
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-2">
|
|
902
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
903
|
-
</div>
|
|
904
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
905
|
-
</div>
|
|
906
|
-
<div className="text-center">
|
|
907
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-2 rounded p-3">
|
|
908
|
-
<StoreCoinIcon className="h-12 w-12" />
|
|
909
|
-
</div>
|
|
910
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
911
|
-
</div>
|
|
912
|
-
</div>
|
|
913
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={StoreCoinIcon} />,
|
|
914
119
|
}
|
|
915
120
|
|
|
916
121
|
export const ColorVariations: Story = {
|
|
917
|
-
|
|
918
|
-
...storyParameters,
|
|
919
|
-
docs: {
|
|
920
|
-
description: {
|
|
921
|
-
story:
|
|
922
|
-
"StoreCoinIcon shown on different backgrounds to demonstrate optimal usage contexts.",
|
|
923
|
-
},
|
|
924
|
-
},
|
|
925
|
-
},
|
|
926
|
-
render: () => (
|
|
927
|
-
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
928
|
-
<div className="text-center">
|
|
929
|
-
<div className="bg-fm-surface-contrast !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
|
|
930
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
931
|
-
</div>
|
|
932
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
933
|
-
White Background
|
|
934
|
-
</div>
|
|
935
|
-
<div className="text-fm-tertiary text-xs">Recommended</div>
|
|
936
|
-
</div>
|
|
937
|
-
<div className="text-center">
|
|
938
|
-
<div className="bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
|
|
939
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
940
|
-
</div>
|
|
941
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
942
|
-
Light Background
|
|
943
|
-
</div>
|
|
944
|
-
<div className="text-fm-placeholder text-xs">Good contrast</div>
|
|
945
|
-
</div>
|
|
946
|
-
<div className="text-center">
|
|
947
|
-
<div className="bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
|
|
948
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
949
|
-
</div>
|
|
950
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
951
|
-
Dark Background
|
|
952
|
-
</div>
|
|
953
|
-
<div className="text-fm-placeholder text-xs">Acceptable</div>
|
|
954
|
-
</div>
|
|
955
|
-
<div className="text-center">
|
|
956
|
-
<div className="border-fm-divider-primary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border bg-transparent">
|
|
957
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
958
|
-
</div>
|
|
959
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
960
|
-
Transparent
|
|
961
|
-
</div>
|
|
962
|
-
<div className="text-fm-tertiary text-xs">Original colors</div>
|
|
963
|
-
</div>
|
|
964
|
-
</div>
|
|
965
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={StoreCoinIcon} />,
|
|
966
123
|
}
|
|
967
124
|
|
|
968
125
|
export const UsageExamples: Story = {
|
|
969
|
-
parameters: {
|
|
970
|
-
...storyParameters,
|
|
971
|
-
docs: {
|
|
972
|
-
description: {
|
|
973
|
-
story:
|
|
974
|
-
"Real-world usage examples showing StoreCoinIcon in different purchase and currency contexts.",
|
|
975
|
-
},
|
|
976
|
-
},
|
|
977
|
-
},
|
|
978
126
|
render: () => (
|
|
979
|
-
<
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Coin Balance">
|
|
129
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-1.5 rounded-full border px-3 py-1">
|
|
130
|
+
<StoreCoinIcon className="text-fm-icon-warning h-4 w-4" />
|
|
131
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
132
|
+
1,200
|
|
133
|
+
</span>
|
|
134
|
+
</div>
|
|
135
|
+
</IconUsageSection>
|
|
136
|
+
|
|
137
|
+
<IconUsageSection title="Purchase Button">
|
|
138
|
+
<button className="flex items-center gap-2 rounded-xl px-4 py-2">
|
|
139
|
+
<StoreCoinIcon className="text-fm-icon-warning h-4 w-4" />
|
|
140
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
141
|
+
Buy 500 coins
|
|
142
|
+
</span>
|
|
143
|
+
</button>
|
|
144
|
+
</IconUsageSection>
|
|
145
|
+
|
|
146
|
+
<IconUsageSection title="Coin Types">
|
|
985
147
|
<div className="flex gap-4">
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
<
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
{/* Balance Display */}
|
|
998
|
-
<div className="!space-y-2">
|
|
999
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1000
|
-
Balance Display
|
|
1001
|
-
</h3>
|
|
1002
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
1003
|
-
<div className="flex items-center justify-between">
|
|
1004
|
-
<div className="flex items-center gap-3">
|
|
1005
|
-
<div className="bg-fm-icon-warning/20 flex h-10 w-10 items-center justify-center rounded-lg">
|
|
1006
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
1007
|
-
</div>
|
|
1008
|
-
<div>
|
|
1009
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
1010
|
-
Current Balance
|
|
1011
|
-
</div>
|
|
1012
|
-
<div className="text-fm-tertiary text-xs">Store Credits</div>
|
|
1013
|
-
</div>
|
|
1014
|
-
</div>
|
|
1015
|
-
<div className="text-right">
|
|
1016
|
-
<div className="text-fm-icon-warning text-lg font-bold">
|
|
1017
|
-
2,450
|
|
1018
|
-
</div>
|
|
1019
|
-
<div className="text-fm-tertiary text-xs">coins</div>
|
|
148
|
+
{[
|
|
149
|
+
{ icon: StoreCoinIcon, label: "Store" },
|
|
150
|
+
{ icon: CoinIcon, label: "Earned" },
|
|
151
|
+
{ icon: CoinToonsIcon, label: "Toons" },
|
|
152
|
+
].map(({ icon: Icon, label }) => (
|
|
153
|
+
<div key={label} className="flex flex-col items-center gap-1">
|
|
154
|
+
<Icon className="text-fm-icon-warning h-6 w-6" />
|
|
155
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
156
|
+
{label}
|
|
157
|
+
</span>
|
|
1020
158
|
</div>
|
|
1021
|
-
|
|
159
|
+
))}
|
|
1022
160
|
</div>
|
|
1023
|
-
</
|
|
1024
|
-
|
|
1025
|
-
{/* Transaction History */}
|
|
1026
|
-
<div className="!space-y-2">
|
|
1027
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1028
|
-
Transaction History
|
|
1029
|
-
</h3>
|
|
1030
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4">
|
|
1031
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
1032
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
1033
|
-
<span className="text-fm-icon-active flex-1">
|
|
1034
|
-
Purchased Premium Pack
|
|
1035
|
-
</span>
|
|
1036
|
-
<span className="text-fm-icon-positive">+500</span>
|
|
1037
|
-
</div>
|
|
1038
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
1039
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
1040
|
-
<span className="text-fm-icon-active flex-1">
|
|
1041
|
-
Daily Login Bonus
|
|
1042
|
-
</span>
|
|
1043
|
-
<span className="text-fm-icon-positive">+50</span>
|
|
1044
|
-
</div>
|
|
1045
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
1046
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
1047
|
-
<span className="text-fm-icon-active flex-1">
|
|
1048
|
-
Unlocked Special Item
|
|
1049
|
-
</span>
|
|
1050
|
-
<span className="text-fm-icon-negative">-200</span>
|
|
1051
|
-
</div>
|
|
1052
|
-
</div>
|
|
1053
|
-
</div>
|
|
1054
|
-
</div>
|
|
161
|
+
</IconUsageSection>
|
|
162
|
+
</IconUsageCanvas>
|
|
1055
163
|
),
|
|
1056
164
|
}
|
|
1057
165
|
|
|
1058
166
|
export const Playground: Story = {
|
|
1059
|
-
parameters: {
|
|
1060
|
-
...storyParameters,
|
|
1061
|
-
docs: {
|
|
1062
|
-
description: {
|
|
1063
|
-
story:
|
|
1064
|
-
"Interactive playground to experiment with different StoreCoinIcon configurations.",
|
|
1065
|
-
},
|
|
1066
|
-
},
|
|
1067
|
-
},
|
|
1068
167
|
args: {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
className: "",
|
|
168
|
+
className: "h-8 w-8 text-fm-icon-warning",
|
|
169
|
+
withAccessibility: true,
|
|
1072
170
|
},
|
|
1073
171
|
render: (args) => (
|
|
1074
|
-
<
|
|
1075
|
-
<
|
|
1076
|
-
|
|
1077
|
-
</div>
|
|
1078
|
-
</div>
|
|
172
|
+
<IconPlaygroundCanvas>
|
|
173
|
+
<StoreCoinIcon {...args} />
|
|
174
|
+
</IconPlaygroundCanvas>
|
|
1079
175
|
),
|
|
1080
176
|
}
|