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