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,1054 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { ForwardTenSecondsIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ForwardTenSecondsIcon> = {
|
|
7
|
+
title: "Icons/ForwardTenSecondsIcon",
|
|
8
|
+
component: ForwardTenSecondsIcon,
|
|
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 ;
|
|
27
|
+
max-width: none ;
|
|
28
|
+
background: transparent ;
|
|
29
|
+
}
|
|
30
|
+
.sbdocs-content {
|
|
31
|
+
max-width: none ;
|
|
32
|
+
padding: 0 ;
|
|
33
|
+
margin: 0 ;
|
|
34
|
+
background: transparent ;
|
|
35
|
+
}
|
|
36
|
+
.docs-story {
|
|
37
|
+
background: transparent ;
|
|
38
|
+
}
|
|
39
|
+
.sbdocs {
|
|
40
|
+
background: transparent ;
|
|
41
|
+
}
|
|
42
|
+
body {
|
|
43
|
+
background: #0a0a0a ;
|
|
44
|
+
}
|
|
45
|
+
#storybook-docs {
|
|
46
|
+
background: #0a0a0a ;
|
|
47
|
+
}
|
|
48
|
+
.sbdocs-preview {
|
|
49
|
+
background: transparent ;
|
|
50
|
+
border: none ;
|
|
51
|
+
}
|
|
52
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
+
color: white ;
|
|
54
|
+
}
|
|
55
|
+
.sbdocs-p, .sbdocs-li {
|
|
56
|
+
color: rgba(255, 255, 255, 0.7) ;
|
|
57
|
+
}
|
|
58
|
+
.sbdocs-code {
|
|
59
|
+
background: rgba(255, 255, 255, 0.1) ;
|
|
60
|
+
color: rgba(168, 85, 247, 1) ;
|
|
61
|
+
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
62
|
+
}
|
|
63
|
+
.sbdocs-pre {
|
|
64
|
+
background: rgba(0, 0, 0, 0.4) ;
|
|
65
|
+
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
66
|
+
}
|
|
67
|
+
.sbdocs-table {
|
|
68
|
+
background: rgba(255, 255, 255, 0.05) ;
|
|
69
|
+
border: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
70
|
+
}
|
|
71
|
+
.sbdocs-table th {
|
|
72
|
+
background: rgba(255, 255, 255, 0.05) ;
|
|
73
|
+
color: white ;
|
|
74
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
|
|
75
|
+
}
|
|
76
|
+
.sbdocs-table td {
|
|
77
|
+
color: rgba(255, 255, 255, 0.7) ;
|
|
78
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
|
|
79
|
+
}
|
|
80
|
+
`}
|
|
81
|
+
</style>
|
|
82
|
+
|
|
83
|
+
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-emerald-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-emerald-500/10 via-transparent to-green-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-emerald-500/30 bg-gradient-to-br from-emerald-500/20 to-green-500/20">
|
|
90
|
+
<ForwardTenSecondsIcon className="h-12 w-12 text-emerald-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="text-5xl font-bold !text-white">
|
|
93
|
+
ForwardTenSecondsIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A media control icon for skipping forward 10 seconds in
|
|
97
|
+
audio and video players. Features a circular arrow with "10"
|
|
98
|
+
seconds indicator, perfect for podcast apps, video players,
|
|
99
|
+
and music streaming interfaces.
|
|
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-emerald-300">
|
|
106
|
+
Media Control
|
|
107
|
+
</div>
|
|
108
|
+
<div className="text-sm text-white/60">
|
|
109
|
+
10-second skip forward
|
|
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-green-300">
|
|
115
|
+
Accessible
|
|
116
|
+
</div>
|
|
117
|
+
<div className="text-sm text-white/60">
|
|
118
|
+
Screen reader friendly
|
|
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-teal-300">
|
|
124
|
+
Universal
|
|
125
|
+
</div>
|
|
126
|
+
<div className="text-sm text-white/60">
|
|
127
|
+
Cross-platform standard
|
|
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-emerald-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 { ForwardTenSecondsIcon } from "@icons/forward-ten-seconds-icon"
|
|
150
|
+
|
|
151
|
+
function MediaPlayer() {
|
|
152
|
+
return (
|
|
153
|
+
<button
|
|
154
|
+
onClick={skipForward}
|
|
155
|
+
className="p-2 hover:bg-white/10 rounded-lg"
|
|
156
|
+
>
|
|
157
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
158
|
+
</button>
|
|
159
|
+
)
|
|
160
|
+
}`}
|
|
161
|
+
</pre>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
|
|
165
|
+
<div className="!space-y-4">
|
|
166
|
+
<h3 className="text-xl font-semibold !text-emerald-300">
|
|
167
|
+
Live Preview
|
|
168
|
+
</h3>
|
|
169
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
170
|
+
<button className="rounded-lg border border-emerald-500/20 bg-emerald-500/10 p-3 transition-colors hover:bg-emerald-500/20">
|
|
171
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
172
|
+
</button>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
</div>
|
|
177
|
+
|
|
178
|
+
{/* Props Documentation */}
|
|
179
|
+
<div className="!space-y-8">
|
|
180
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
181
|
+
Props & Configuration
|
|
182
|
+
</h2>
|
|
183
|
+
|
|
184
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
185
|
+
<div className="bg-white/5 p-4">
|
|
186
|
+
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
187
|
+
</div>
|
|
188
|
+
<table className="!my-0 w-full">
|
|
189
|
+
<thead className="bg-white/5">
|
|
190
|
+
<tr className="border-b border-white/10">
|
|
191
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
192
|
+
Prop
|
|
193
|
+
</th>
|
|
194
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
195
|
+
Type
|
|
196
|
+
</th>
|
|
197
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
198
|
+
Default
|
|
199
|
+
</th>
|
|
200
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
201
|
+
Description
|
|
202
|
+
</th>
|
|
203
|
+
</tr>
|
|
204
|
+
</thead>
|
|
205
|
+
<tbody>
|
|
206
|
+
<tr className="border-b border-white/5">
|
|
207
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
208
|
+
width
|
|
209
|
+
</td>
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
+
number | string
|
|
212
|
+
</td>
|
|
213
|
+
<td className="px-6 py-4 text-sm !text-white/50">44</td>
|
|
214
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
+
Width of the icon in pixels
|
|
216
|
+
</td>
|
|
217
|
+
</tr>
|
|
218
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
219
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
220
|
+
height
|
|
221
|
+
</td>
|
|
222
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
223
|
+
number | string
|
|
224
|
+
</td>
|
|
225
|
+
<td className="px-6 py-4 text-sm !text-white/50">44</td>
|
|
226
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
+
Height of the icon in pixels
|
|
228
|
+
</td>
|
|
229
|
+
</tr>
|
|
230
|
+
<tr className="border-b border-white/5">
|
|
231
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
232
|
+
stroke
|
|
233
|
+
</td>
|
|
234
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
235
|
+
string
|
|
236
|
+
</td>
|
|
237
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
238
|
+
currentColor
|
|
239
|
+
</td>
|
|
240
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
241
|
+
Stroke color of the icon
|
|
242
|
+
</td>
|
|
243
|
+
</tr>
|
|
244
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
245
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
246
|
+
strokeWidth
|
|
247
|
+
</td>
|
|
248
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
249
|
+
string | number
|
|
250
|
+
</td>
|
|
251
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
252
|
+
1.5
|
|
253
|
+
</td>
|
|
254
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
255
|
+
Width of the stroke
|
|
256
|
+
</td>
|
|
257
|
+
</tr>
|
|
258
|
+
<tr className="border-b border-white/5">
|
|
259
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
260
|
+
className
|
|
261
|
+
</td>
|
|
262
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
263
|
+
string
|
|
264
|
+
</td>
|
|
265
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
266
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
+
CSS classes for styling (use for overrides)
|
|
268
|
+
</td>
|
|
269
|
+
</tr>
|
|
270
|
+
<tr className="!bg-black/10">
|
|
271
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
272
|
+
...svgProps
|
|
273
|
+
</td>
|
|
274
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
275
|
+
SVGProps
|
|
276
|
+
</td>
|
|
277
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
278
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
279
|
+
All standard SVG element props
|
|
280
|
+
</td>
|
|
281
|
+
</tr>
|
|
282
|
+
</tbody>
|
|
283
|
+
</table>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
|
|
287
|
+
{/* Size Variations */}
|
|
288
|
+
<div className="!space-y-8">
|
|
289
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
290
|
+
Size Variations
|
|
291
|
+
</h2>
|
|
292
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
293
|
+
<div className="!space-y-6">
|
|
294
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
295
|
+
<div className="!space-y-4">
|
|
296
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
297
|
+
Standard Sizes
|
|
298
|
+
</h3>
|
|
299
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
300
|
+
<div className="text-center">
|
|
301
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-3 w-3 text-emerald-400" />
|
|
302
|
+
<span className="text-xs text-white/60">12px</span>
|
|
303
|
+
</div>
|
|
304
|
+
<div className="text-center">
|
|
305
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-4 w-4 text-emerald-400" />
|
|
306
|
+
<span className="text-xs text-white/60">16px</span>
|
|
307
|
+
</div>
|
|
308
|
+
<div className="text-center">
|
|
309
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-5 w-5 text-emerald-400" />
|
|
310
|
+
<span className="text-xs text-white/60">20px</span>
|
|
311
|
+
</div>
|
|
312
|
+
<div className="text-center">
|
|
313
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-6 w-6 text-emerald-400" />
|
|
314
|
+
<span className="text-xs text-white/60">24px</span>
|
|
315
|
+
</div>
|
|
316
|
+
<div className="text-center">
|
|
317
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-8 w-8 text-emerald-400" />
|
|
318
|
+
<span className="text-xs text-white/60">32px</span>
|
|
319
|
+
</div>
|
|
320
|
+
<div className="text-center">
|
|
321
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-12 w-12 text-emerald-400" />
|
|
322
|
+
<span className="text-xs text-white/60">48px</span>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<div className="!space-y-4">
|
|
328
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
329
|
+
Code Example
|
|
330
|
+
</h3>
|
|
331
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
332
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
333
|
+
{`// Small (16px)
|
|
334
|
+
<ForwardTenSecondsIcon className="h-4 w-4" />
|
|
335
|
+
|
|
336
|
+
// Medium (24px)
|
|
337
|
+
<ForwardTenSecondsIcon className="h-6 w-6" />
|
|
338
|
+
|
|
339
|
+
// Large (32px)
|
|
340
|
+
<ForwardTenSecondsIcon className="h-8 w-8" />
|
|
341
|
+
|
|
342
|
+
// Custom size
|
|
343
|
+
<ForwardTenSecondsIcon width={40} height={40} />`}
|
|
344
|
+
</pre>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
</div>
|
|
351
|
+
|
|
352
|
+
{/* Color Variations */}
|
|
353
|
+
<div className="!space-y-8">
|
|
354
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
355
|
+
Color Variations
|
|
356
|
+
</h2>
|
|
357
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
358
|
+
<div className="!space-y-4">
|
|
359
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
360
|
+
Semantic Colors
|
|
361
|
+
</h3>
|
|
362
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
363
|
+
<div className="flex items-center gap-4">
|
|
364
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
365
|
+
<div>
|
|
366
|
+
<div className="text-sm font-medium text-white">
|
|
367
|
+
Primary
|
|
368
|
+
</div>
|
|
369
|
+
<div className="text-xs text-white/60">
|
|
370
|
+
text-emerald-400
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
<div className="flex items-center gap-4">
|
|
375
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-green-400" />
|
|
376
|
+
<div>
|
|
377
|
+
<div className="text-sm font-medium text-white">
|
|
378
|
+
Secondary
|
|
379
|
+
</div>
|
|
380
|
+
<div className="text-xs text-white/60">
|
|
381
|
+
text-green-400
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
<div className="flex items-center gap-4">
|
|
386
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-teal-400" />
|
|
387
|
+
<div>
|
|
388
|
+
<div className="text-sm font-medium text-white">
|
|
389
|
+
Accent
|
|
390
|
+
</div>
|
|
391
|
+
<div className="text-xs text-white/60">
|
|
392
|
+
text-teal-400
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
<div className="flex items-center gap-4">
|
|
397
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-white/40" />
|
|
398
|
+
<div>
|
|
399
|
+
<div className="text-sm font-medium text-white">
|
|
400
|
+
Disabled
|
|
401
|
+
</div>
|
|
402
|
+
<div className="text-xs text-white/60">
|
|
403
|
+
text-white/40
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
408
|
+
</div>
|
|
409
|
+
|
|
410
|
+
<div className="!space-y-4">
|
|
411
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
412
|
+
Custom Colors
|
|
413
|
+
</h3>
|
|
414
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
415
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
416
|
+
{`// Using Tailwind classes
|
|
417
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
418
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-green-500" />
|
|
419
|
+
|
|
420
|
+
// Using CSS custom properties
|
|
421
|
+
<ForwardTenSecondsIcon
|
|
422
|
+
className="h-6 w-6"
|
|
423
|
+
style={{ color: 'var(--color-primary)' }}
|
|
424
|
+
/>
|
|
425
|
+
|
|
426
|
+
// Direct stroke prop
|
|
427
|
+
<ForwardTenSecondsIcon
|
|
428
|
+
width={24}
|
|
429
|
+
height={24}
|
|
430
|
+
stroke="#10b981"
|
|
431
|
+
/>`}
|
|
432
|
+
</pre>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
</div>
|
|
436
|
+
</div>
|
|
437
|
+
|
|
438
|
+
{/* Usage Examples */}
|
|
439
|
+
<div className="!space-y-8">
|
|
440
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
441
|
+
Usage Examples
|
|
442
|
+
</h2>
|
|
443
|
+
|
|
444
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
445
|
+
{/* Podcast Player */}
|
|
446
|
+
<div className="!space-y-4">
|
|
447
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
448
|
+
Podcast Player
|
|
449
|
+
</h3>
|
|
450
|
+
<div className="!space-y-4">
|
|
451
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
452
|
+
<div className="mb-4 flex items-center justify-between">
|
|
453
|
+
<h3 className="text-lg font-semibold !text-white">
|
|
454
|
+
Now Playing
|
|
455
|
+
</h3>
|
|
456
|
+
</div>
|
|
457
|
+
<div className="mb-4 flex items-center justify-center gap-4">
|
|
458
|
+
<button className="rounded-lg p-2 transition-colors hover:bg-white/10">
|
|
459
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
460
|
+
</button>
|
|
461
|
+
<button className="rounded-lg p-3 transition-colors hover:bg-white/10">
|
|
462
|
+
<div className="h-8 w-8 rounded-full border-2 border-white/60 bg-white/20" />
|
|
463
|
+
</button>
|
|
464
|
+
<button className="rounded-lg p-2 transition-colors hover:bg-white/10">
|
|
465
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
466
|
+
</button>
|
|
467
|
+
</div>
|
|
468
|
+
<p className="text-sm !text-white/70">
|
|
469
|
+
Skip forward 10 seconds to bypass ads or get past
|
|
470
|
+
content
|
|
471
|
+
</p>
|
|
472
|
+
</div>
|
|
473
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
474
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
475
|
+
{`// Podcast control bar
|
|
476
|
+
<div className="flex items-center justify-center gap-4">
|
|
477
|
+
<button onClick={() => skipSeconds(-10)}>
|
|
478
|
+
<BackwardTenSecondsIcon className="h-6 w-6" />
|
|
479
|
+
</button>
|
|
480
|
+
<button onClick={togglePlay}>
|
|
481
|
+
<PlayIcon className="h-8 w-8" />
|
|
482
|
+
</button>
|
|
483
|
+
<button onClick={() => skipSeconds(10)}>
|
|
484
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
485
|
+
</button>
|
|
486
|
+
</div>`}
|
|
487
|
+
</pre>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
{/* Video Player */}
|
|
493
|
+
<div className="!space-y-4">
|
|
494
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
495
|
+
Video Player Controls
|
|
496
|
+
</h3>
|
|
497
|
+
<div className="!space-y-4">
|
|
498
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
499
|
+
<div className="mb-4 h-32 rounded bg-gradient-to-r from-emerald-500/20 to-green-500/20" />
|
|
500
|
+
<div className="flex items-center justify-between">
|
|
501
|
+
<div className="flex items-center gap-2">
|
|
502
|
+
<span className="text-sm text-white/60">
|
|
503
|
+
8:15 / 24:30
|
|
504
|
+
</span>
|
|
505
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
506
|
+
<ForwardTenSecondsIcon className="h-5 w-5 text-emerald-400" />
|
|
507
|
+
</button>
|
|
508
|
+
</div>
|
|
509
|
+
<div className="flex items-center gap-2">
|
|
510
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
511
|
+
<div className="h-5 w-5 rounded-full border border-white/60 bg-white/20" />
|
|
512
|
+
</button>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
517
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
518
|
+
{`// Video player with fast forward
|
|
519
|
+
<div className="video-controls">
|
|
520
|
+
<div className="flex items-center gap-2">
|
|
521
|
+
<span>{formatTime(currentTime)} / {formatTime(duration)}</span>
|
|
522
|
+
<button
|
|
523
|
+
onClick={fastForwardTenSeconds}
|
|
524
|
+
aria-label="Fast forward 10 seconds"
|
|
525
|
+
>
|
|
526
|
+
<ForwardTenSecondsIcon className="h-5 w-5 text-emerald-400" />
|
|
527
|
+
</button>
|
|
528
|
+
</div>
|
|
529
|
+
</div>`}
|
|
530
|
+
</pre>
|
|
531
|
+
</div>
|
|
532
|
+
</div>
|
|
533
|
+
</div>
|
|
534
|
+
|
|
535
|
+
{/* Music Player */}
|
|
536
|
+
<div className="!space-y-4">
|
|
537
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
538
|
+
Music Player Interface
|
|
539
|
+
</h3>
|
|
540
|
+
<div className="!space-y-4">
|
|
541
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
542
|
+
<div className="mb-4 flex items-center gap-3">
|
|
543
|
+
<div className="h-12 w-12 rounded-lg bg-gradient-to-br from-emerald-500/20 to-green-500/20" />
|
|
544
|
+
<div>
|
|
545
|
+
<div className="text-sm font-medium !text-white">
|
|
546
|
+
Song Title
|
|
547
|
+
</div>
|
|
548
|
+
<div className="text-xs !text-white/60">
|
|
549
|
+
Artist Name
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
</div>
|
|
553
|
+
<div className="flex items-center justify-center gap-6">
|
|
554
|
+
<button className="rounded-lg p-1.5 hover:bg-white/10">
|
|
555
|
+
<div className="h-4 w-4 rounded-full border border-white/60 bg-white/20" />
|
|
556
|
+
</button>
|
|
557
|
+
<button className="rounded-lg p-2 hover:bg-white/10">
|
|
558
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
559
|
+
</button>
|
|
560
|
+
<button className="rounded-lg p-2 hover:bg-white/10">
|
|
561
|
+
<div className="h-8 w-8 rounded-full border-2 border-white/60 bg-white/20" />
|
|
562
|
+
</button>
|
|
563
|
+
<button className="rounded-lg p-2 hover:bg-white/10">
|
|
564
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
565
|
+
</button>
|
|
566
|
+
<button className="rounded-lg p-1.5 hover:bg-white/10">
|
|
567
|
+
<ForwardTenSecondsIcon className="h-4 w-4 text-emerald-400" />
|
|
568
|
+
</button>
|
|
569
|
+
</div>
|
|
570
|
+
</div>
|
|
571
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
572
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
573
|
+
{`// Music player with skip controls
|
|
574
|
+
<div className="music-controls">
|
|
575
|
+
<div className="flex items-center justify-center gap-6">
|
|
576
|
+
<button onClick={skipBackward}>
|
|
577
|
+
<BackwardTenSecondsIcon className="h-4 w-4" />
|
|
578
|
+
</button>
|
|
579
|
+
<button onClick={previousTrack}>
|
|
580
|
+
<PreviousIcon className="h-6 w-6" />
|
|
581
|
+
</button>
|
|
582
|
+
<button onClick={togglePlay}>
|
|
583
|
+
<PlayIcon className="h-8 w-8" />
|
|
584
|
+
</button>
|
|
585
|
+
<button onClick={nextTrack}>
|
|
586
|
+
<NextIcon className="h-6 w-6" />
|
|
587
|
+
</button>
|
|
588
|
+
<button onClick={skipForward}>
|
|
589
|
+
<ForwardTenSecondsIcon className="h-4 w-4 text-emerald-400" />
|
|
590
|
+
</button>
|
|
591
|
+
</div>
|
|
592
|
+
</div>`}
|
|
593
|
+
</pre>
|
|
594
|
+
</div>
|
|
595
|
+
</div>
|
|
596
|
+
</div>
|
|
597
|
+
|
|
598
|
+
{/* Educational Content */}
|
|
599
|
+
<div className="!space-y-4">
|
|
600
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
601
|
+
Educational Video Player
|
|
602
|
+
</h3>
|
|
603
|
+
<div className="!space-y-4">
|
|
604
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
605
|
+
<div className="mb-4">
|
|
606
|
+
<div className="mb-2 flex items-center gap-2">
|
|
607
|
+
<div className="h-2 w-2 rounded-full bg-green-500" />
|
|
608
|
+
<span className="text-sm font-medium !text-white">
|
|
609
|
+
Lesson 3: Advanced Concepts
|
|
610
|
+
</span>
|
|
611
|
+
</div>
|
|
612
|
+
<h4 className="text-sm !text-white/70">
|
|
613
|
+
Interactive Learning Module
|
|
614
|
+
</h4>
|
|
615
|
+
</div>
|
|
616
|
+
<div className="flex items-center justify-between">
|
|
617
|
+
<div className="flex items-center gap-2">
|
|
618
|
+
<span className="text-xs !text-white/60">
|
|
619
|
+
Skip to next section
|
|
620
|
+
</span>
|
|
621
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
622
|
+
<ForwardTenSecondsIcon className="h-5 w-5 text-emerald-400" />
|
|
623
|
+
</button>
|
|
624
|
+
</div>
|
|
625
|
+
<button className="rounded-lg border border-green-500/30 bg-green-500/10 px-3 py-1 text-xs text-green-200">
|
|
626
|
+
Next Chapter
|
|
627
|
+
</button>
|
|
628
|
+
</div>
|
|
629
|
+
</div>
|
|
630
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
631
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
632
|
+
{`// Educational content with skip ahead
|
|
633
|
+
<div className="lesson-controls">
|
|
634
|
+
<div className="flex items-center gap-2">
|
|
635
|
+
<span>Skip to next section</span>
|
|
636
|
+
<button
|
|
637
|
+
onClick={skipToNextSection}
|
|
638
|
+
aria-label="Skip forward 10 seconds to next section"
|
|
639
|
+
>
|
|
640
|
+
<ForwardTenSecondsIcon className="h-5 w-5 text-emerald-400" />
|
|
641
|
+
</button>
|
|
642
|
+
</div>
|
|
643
|
+
<button onClick={nextChapter}>
|
|
644
|
+
Next Chapter
|
|
645
|
+
</button>
|
|
646
|
+
</div>`}
|
|
647
|
+
</pre>
|
|
648
|
+
</div>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
</div>
|
|
652
|
+
</div>
|
|
653
|
+
|
|
654
|
+
{/* Accessibility */}
|
|
655
|
+
<div className="!space-y-8">
|
|
656
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
657
|
+
Accessibility Features
|
|
658
|
+
</h2>
|
|
659
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
660
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
661
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
662
|
+
✅ Built-in Features
|
|
663
|
+
</h3>
|
|
664
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
665
|
+
<li className="!text-white/70">
|
|
666
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
667
|
+
</li>
|
|
668
|
+
<li className="!text-white/70">
|
|
669
|
+
Provides screen reader label "Forward ten seconds icon"
|
|
670
|
+
</li>
|
|
671
|
+
<li className="!text-white/70">
|
|
672
|
+
Supports keyboard navigation when interactive
|
|
673
|
+
</li>
|
|
674
|
+
<li className="!text-white/70">
|
|
675
|
+
Maintains proper color contrast ratios
|
|
676
|
+
</li>
|
|
677
|
+
<li className="!text-white/70">
|
|
678
|
+
Scales with user's font size preferences
|
|
679
|
+
</li>
|
|
680
|
+
</ul>
|
|
681
|
+
</div>
|
|
682
|
+
|
|
683
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
684
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
685
|
+
💡 Best Practices
|
|
686
|
+
</h3>
|
|
687
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
688
|
+
<li className="!text-white/70">
|
|
689
|
+
Always provide descriptive aria-labels for buttons
|
|
690
|
+
</li>
|
|
691
|
+
<li className="!text-white/70">
|
|
692
|
+
Use consistent placement in media control groups
|
|
693
|
+
</li>
|
|
694
|
+
<li className="!text-white/70">
|
|
695
|
+
Ensure sufficient touch target size (44px minimum)
|
|
696
|
+
</li>
|
|
697
|
+
<li className="!text-white/70">
|
|
698
|
+
Provide visible focus states for keyboard users
|
|
699
|
+
</li>
|
|
700
|
+
<li className="!text-white/70">
|
|
701
|
+
Consider keyboard shortcuts (e.g., Right Arrow key)
|
|
702
|
+
</li>
|
|
703
|
+
</ul>
|
|
704
|
+
</div>
|
|
705
|
+
</div>
|
|
706
|
+
|
|
707
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
708
|
+
<h3 className="mb-4 text-lg font-semibold !text-green-300">
|
|
709
|
+
Proper ARIA Implementation
|
|
710
|
+
</h3>
|
|
711
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
712
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
713
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
714
|
+
{`// Media control with proper ARIA
|
|
715
|
+
<button
|
|
716
|
+
aria-label="Fast forward 10 seconds"
|
|
717
|
+
className="p-2 hover:bg-white/10 rounded-lg"
|
|
718
|
+
onClick={fastForwardTenSeconds}
|
|
719
|
+
>
|
|
720
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
721
|
+
</button>
|
|
722
|
+
|
|
723
|
+
// Podcast player with context
|
|
724
|
+
<button
|
|
725
|
+
aria-label="Skip ahead 10 seconds in podcast"
|
|
726
|
+
onClick={skipForward}
|
|
727
|
+
>
|
|
728
|
+
<ForwardTenSecondsIcon className="h-5 w-5" />
|
|
729
|
+
</button>
|
|
730
|
+
|
|
731
|
+
// Video player with state
|
|
732
|
+
<button
|
|
733
|
+
aria-label={\`Fast forward 10 seconds (current: \${formatTime(currentTime)})\`}
|
|
734
|
+
disabled={currentTime > duration - 10}
|
|
735
|
+
>
|
|
736
|
+
<ForwardTenSecondsIcon className="h-5 w-5" />
|
|
737
|
+
</button>`}
|
|
738
|
+
</pre>
|
|
739
|
+
</div>
|
|
740
|
+
<div className="!space-y-4">
|
|
741
|
+
<p className="text-sm !text-white/70">
|
|
742
|
+
When using ForwardTenSecondsIcon for interactive
|
|
743
|
+
elements, always provide clear context about what action
|
|
744
|
+
will be performed and the current playback state when
|
|
745
|
+
relevant.
|
|
746
|
+
</p>
|
|
747
|
+
<div className="rounded-lg border border-emerald-500/20 bg-emerald-500/10 p-4">
|
|
748
|
+
<div className="flex items-center gap-2 text-sm text-emerald-200">
|
|
749
|
+
<ForwardTenSecondsIcon className="h-4 w-4" />
|
|
750
|
+
<span>
|
|
751
|
+
Screen readers need specific context about the fast
|
|
752
|
+
forward action
|
|
753
|
+
</span>
|
|
754
|
+
</div>
|
|
755
|
+
</div>
|
|
756
|
+
</div>
|
|
757
|
+
</div>
|
|
758
|
+
</div>
|
|
759
|
+
</div>
|
|
760
|
+
|
|
761
|
+
{/* Related Icons */}
|
|
762
|
+
<div className="!space-y-8">
|
|
763
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
764
|
+
Related Icons
|
|
765
|
+
</h2>
|
|
766
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
767
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
768
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-emerald-500/20">
|
|
769
|
+
<span className="!text-2xl !text-white">⏪</span>
|
|
770
|
+
</div>
|
|
771
|
+
<div>
|
|
772
|
+
<div className="font-medium text-white">
|
|
773
|
+
BackwardTenSecondsIcon
|
|
774
|
+
</div>
|
|
775
|
+
<div className="text-xs text-white/60">
|
|
776
|
+
Skip backward 10s
|
|
777
|
+
</div>
|
|
778
|
+
</div>
|
|
779
|
+
</div>
|
|
780
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
781
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
782
|
+
<span className="!text-2xl !text-white">⏸</span>
|
|
783
|
+
</div>
|
|
784
|
+
<div>
|
|
785
|
+
<div className="font-medium text-white">PlayIcon</div>
|
|
786
|
+
<div className="text-xs text-white/60">Play/pause</div>
|
|
787
|
+
</div>
|
|
788
|
+
</div>
|
|
789
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
790
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-teal-500/20">
|
|
791
|
+
<span className="!text-2xl !text-white">⏩</span>
|
|
792
|
+
</div>
|
|
793
|
+
<div>
|
|
794
|
+
<div className="font-medium text-white">
|
|
795
|
+
FastForwardIcon
|
|
796
|
+
</div>
|
|
797
|
+
<div className="text-xs text-white/60">Fast forward</div>
|
|
798
|
+
</div>
|
|
799
|
+
</div>
|
|
800
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
801
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
802
|
+
<span className="!text-2xl !text-white">⏭</span>
|
|
803
|
+
</div>
|
|
804
|
+
<div>
|
|
805
|
+
<div className="font-medium text-white">NextIcon</div>
|
|
806
|
+
<div className="text-xs text-white/60">Next track</div>
|
|
807
|
+
</div>
|
|
808
|
+
</div>
|
|
809
|
+
</div>
|
|
810
|
+
</div>
|
|
811
|
+
</div>
|
|
812
|
+
|
|
813
|
+
{/* Footer */}
|
|
814
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
815
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
816
|
+
<div className="!space-y-4 text-center">
|
|
817
|
+
<p className="!text-white/60">
|
|
818
|
+
ForwardTenSecondsIcon is part of the Aural UI icon library,
|
|
819
|
+
built with accessibility and media control best practices in
|
|
820
|
+
mind.
|
|
821
|
+
</p>
|
|
822
|
+
<p className="text-sm !text-white/40">
|
|
823
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
824
|
+
compatibility and follow WCAG guidelines.
|
|
825
|
+
</p>
|
|
826
|
+
</div>
|
|
827
|
+
</div>
|
|
828
|
+
</div>
|
|
829
|
+
</div>
|
|
830
|
+
</>
|
|
831
|
+
),
|
|
832
|
+
},
|
|
833
|
+
},
|
|
834
|
+
tags: ["autodocs"],
|
|
835
|
+
argTypes: {
|
|
836
|
+
width: {
|
|
837
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
838
|
+
description: "Width of the icon in pixels",
|
|
839
|
+
},
|
|
840
|
+
height: {
|
|
841
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
842
|
+
description: "Height of the icon in pixels",
|
|
843
|
+
},
|
|
844
|
+
stroke: {
|
|
845
|
+
control: "color",
|
|
846
|
+
description: "Stroke color of the icon",
|
|
847
|
+
},
|
|
848
|
+
strokeWidth: {
|
|
849
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
850
|
+
description: "Width of the stroke",
|
|
851
|
+
},
|
|
852
|
+
className: {
|
|
853
|
+
control: "text",
|
|
854
|
+
description: "CSS classes for styling (use for overrides)",
|
|
855
|
+
},
|
|
856
|
+
onClick: {
|
|
857
|
+
action: "clicked",
|
|
858
|
+
description: "Click handler for interactive use",
|
|
859
|
+
},
|
|
860
|
+
},
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
export default meta
|
|
864
|
+
type Story = StoryObj<typeof ForwardTenSecondsIcon>
|
|
865
|
+
|
|
866
|
+
// Story parameters for consistent dark theme
|
|
867
|
+
const storyParameters = {
|
|
868
|
+
backgrounds: {
|
|
869
|
+
default: "dark",
|
|
870
|
+
values: [
|
|
871
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
872
|
+
{ name: "darker", value: "#000000" },
|
|
873
|
+
],
|
|
874
|
+
},
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
export const Default: Story = {
|
|
878
|
+
args: {
|
|
879
|
+
className: "h-8 w-8 text-emerald-400",
|
|
880
|
+
},
|
|
881
|
+
parameters: storyParameters,
|
|
882
|
+
render: (args) => (
|
|
883
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
884
|
+
<ForwardTenSecondsIcon {...args} />
|
|
885
|
+
</div>
|
|
886
|
+
),
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
export const SizeVariations: Story = {
|
|
890
|
+
parameters: {
|
|
891
|
+
...storyParameters,
|
|
892
|
+
docs: {
|
|
893
|
+
description: {
|
|
894
|
+
story:
|
|
895
|
+
"ForwardTenSecondsIcon in different sizes, from small UI elements to large displays.",
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
},
|
|
899
|
+
render: () => (
|
|
900
|
+
<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">
|
|
901
|
+
<div className="text-center">
|
|
902
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-3 w-3 text-emerald-400" />
|
|
903
|
+
<span className="text-xs text-white/60">12px</span>
|
|
904
|
+
</div>
|
|
905
|
+
<div className="text-center">
|
|
906
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-4 w-4 text-emerald-400" />
|
|
907
|
+
<span className="text-xs text-white/60">16px</span>
|
|
908
|
+
</div>
|
|
909
|
+
<div className="text-center">
|
|
910
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-5 w-5 text-emerald-400" />
|
|
911
|
+
<span className="text-xs text-white/60">20px</span>
|
|
912
|
+
</div>
|
|
913
|
+
<div className="text-center">
|
|
914
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-6 w-6 text-emerald-400" />
|
|
915
|
+
<span className="text-xs text-white/60">24px</span>
|
|
916
|
+
</div>
|
|
917
|
+
<div className="text-center">
|
|
918
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-8 w-8 text-emerald-400" />
|
|
919
|
+
<span className="text-xs text-white/60">32px</span>
|
|
920
|
+
</div>
|
|
921
|
+
<div className="text-center">
|
|
922
|
+
<ForwardTenSecondsIcon className="!mx-auto mb-2 h-12 w-12 text-emerald-400" />
|
|
923
|
+
<span className="text-xs text-white/60">48px</span>
|
|
924
|
+
</div>
|
|
925
|
+
</div>
|
|
926
|
+
),
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
export const ColorVariations: Story = {
|
|
930
|
+
parameters: {
|
|
931
|
+
...storyParameters,
|
|
932
|
+
docs: {
|
|
933
|
+
description: {
|
|
934
|
+
story:
|
|
935
|
+
"ForwardTenSecondsIcon in different semantic colors for various use cases.",
|
|
936
|
+
},
|
|
937
|
+
},
|
|
938
|
+
},
|
|
939
|
+
render: () => (
|
|
940
|
+
<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">
|
|
941
|
+
<div className="text-center">
|
|
942
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
|
|
943
|
+
<ForwardTenSecondsIcon className="h-8 w-8 text-emerald-400" />
|
|
944
|
+
</div>
|
|
945
|
+
<div className="text-sm font-medium text-white">Primary</div>
|
|
946
|
+
<div className="text-xs text-emerald-400">text-emerald-400</div>
|
|
947
|
+
</div>
|
|
948
|
+
<div className="text-center">
|
|
949
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
950
|
+
<ForwardTenSecondsIcon className="h-8 w-8 text-green-400" />
|
|
951
|
+
</div>
|
|
952
|
+
<div className="text-sm font-medium text-white">Secondary</div>
|
|
953
|
+
<div className="text-xs text-green-400">text-green-400</div>
|
|
954
|
+
</div>
|
|
955
|
+
<div className="text-center">
|
|
956
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-teal-500/30 bg-teal-500/20">
|
|
957
|
+
<ForwardTenSecondsIcon className="h-8 w-8 text-teal-400" />
|
|
958
|
+
</div>
|
|
959
|
+
<div className="text-sm font-medium text-white">Accent</div>
|
|
960
|
+
<div className="text-xs text-teal-400">text-teal-400</div>
|
|
961
|
+
</div>
|
|
962
|
+
<div className="text-center">
|
|
963
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
964
|
+
<ForwardTenSecondsIcon className="h-8 w-8 text-white/40" />
|
|
965
|
+
</div>
|
|
966
|
+
<div className="text-sm font-medium text-white">Disabled</div>
|
|
967
|
+
<div className="text-xs text-white/40">text-white/40</div>
|
|
968
|
+
</div>
|
|
969
|
+
</div>
|
|
970
|
+
),
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export const UsageExamples: Story = {
|
|
974
|
+
parameters: {
|
|
975
|
+
...storyParameters,
|
|
976
|
+
docs: {
|
|
977
|
+
description: {
|
|
978
|
+
story:
|
|
979
|
+
"Real-world usage examples showing ForwardTenSecondsIcon in different media control contexts.",
|
|
980
|
+
},
|
|
981
|
+
},
|
|
982
|
+
},
|
|
983
|
+
render: () => (
|
|
984
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
985
|
+
{/* Podcast Player */}
|
|
986
|
+
<div className="!space-y-2">
|
|
987
|
+
<h3 className="text-sm font-medium text-white">Podcast Player</h3>
|
|
988
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
989
|
+
<div className="mb-4 flex items-center justify-between">
|
|
990
|
+
<h3 className="text-lg font-semibold text-white">Now Playing</h3>
|
|
991
|
+
</div>
|
|
992
|
+
<div className="flex items-center justify-center gap-4">
|
|
993
|
+
<button className="rounded-lg p-2 transition-colors hover:bg-white/10">
|
|
994
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
995
|
+
</button>
|
|
996
|
+
<button className="rounded-lg p-3 transition-colors hover:bg-white/10">
|
|
997
|
+
<div className="h-8 w-8 rounded-full border-2 border-white/60 bg-white/20" />
|
|
998
|
+
</button>
|
|
999
|
+
<button className="rounded-lg p-2 transition-colors hover:bg-white/10">
|
|
1000
|
+
<ForwardTenSecondsIcon className="h-6 w-6 text-emerald-400" />
|
|
1001
|
+
</button>
|
|
1002
|
+
</div>
|
|
1003
|
+
</div>
|
|
1004
|
+
</div>
|
|
1005
|
+
|
|
1006
|
+
{/* Video Player */}
|
|
1007
|
+
<div className="!space-y-2">
|
|
1008
|
+
<h3 className="text-sm font-medium text-white">
|
|
1009
|
+
Video Player Controls
|
|
1010
|
+
</h3>
|
|
1011
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1012
|
+
<div className="mb-4 h-32 rounded bg-gradient-to-r from-emerald-500/20 to-green-500/20" />
|
|
1013
|
+
<div className="flex items-center justify-between">
|
|
1014
|
+
<div className="flex items-center gap-2">
|
|
1015
|
+
<span className="text-sm text-white/60">8:15 / 24:30</span>
|
|
1016
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
1017
|
+
<ForwardTenSecondsIcon className="h-5 w-5 text-emerald-400" />
|
|
1018
|
+
</button>
|
|
1019
|
+
</div>
|
|
1020
|
+
<div className="flex items-center gap-2">
|
|
1021
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
1022
|
+
<div className="h-5 w-5 rounded-full border border-white/60 bg-white/20" />
|
|
1023
|
+
</button>
|
|
1024
|
+
</div>
|
|
1025
|
+
</div>
|
|
1026
|
+
</div>
|
|
1027
|
+
</div>
|
|
1028
|
+
</div>
|
|
1029
|
+
),
|
|
1030
|
+
}
|
|
1031
|
+
|
|
1032
|
+
export const Playground: Story = {
|
|
1033
|
+
parameters: {
|
|
1034
|
+
...storyParameters,
|
|
1035
|
+
docs: {
|
|
1036
|
+
description: {
|
|
1037
|
+
story:
|
|
1038
|
+
"Interactive playground to experiment with different ForwardTenSecondsIcon configurations.",
|
|
1039
|
+
},
|
|
1040
|
+
},
|
|
1041
|
+
},
|
|
1042
|
+
args: {
|
|
1043
|
+
width: 44,
|
|
1044
|
+
height: 44,
|
|
1045
|
+
className: "text-emerald-400",
|
|
1046
|
+
},
|
|
1047
|
+
render: (args) => (
|
|
1048
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1049
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1050
|
+
<ForwardTenSecondsIcon {...args} />
|
|
1051
|
+
</div>
|
|
1052
|
+
</div>
|
|
1053
|
+
),
|
|
1054
|
+
}
|