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,1050 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { BackwardTenSecondsIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof BackwardTenSecondsIcon> = {
|
|
7
|
+
title: "Icons/BackwardTenSecondsIcon",
|
|
8
|
+
component: BackwardTenSecondsIcon,
|
|
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-purple-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-purple-500/10 via-transparent to-blue-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-violet-500/30 bg-gradient-to-br from-violet-500/20 to-purple-500/20">
|
|
90
|
+
<BackwardTenSecondsIcon className="h-12 w-12 text-violet-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="text-5xl font-bold !text-white">
|
|
93
|
+
BackwardTenSecondsIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A media control icon for skipping backward 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-violet-300">
|
|
106
|
+
Media Control
|
|
107
|
+
</div>
|
|
108
|
+
<div className="text-sm text-white/60">
|
|
109
|
+
10-second rewind
|
|
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-purple-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-blue-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-violet-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 { BackwardTenSecondsIcon } from "@icons/backward-ten-seconds-icon"
|
|
150
|
+
|
|
151
|
+
function MediaPlayer() {
|
|
152
|
+
return (
|
|
153
|
+
<button
|
|
154
|
+
onClick={skipBackward}
|
|
155
|
+
className="p-2 hover:bg-white/10 rounded-lg"
|
|
156
|
+
>
|
|
157
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-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-violet-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-violet-500/20 bg-violet-500/10 p-3 transition-colors hover:bg-violet-500/20">
|
|
171
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-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-violet-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-violet-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-violet-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-violet-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 !bg-black/10">
|
|
259
|
+
<td className="px-6 py-4 font-mono text-sm !text-violet-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-violet-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-violet-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
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-3 w-3 text-violet-400" />
|
|
302
|
+
<span className="text-xs text-white/60">12px</span>
|
|
303
|
+
</div>
|
|
304
|
+
<div className="text-center">
|
|
305
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-4 w-4 text-violet-400" />
|
|
306
|
+
<span className="text-xs text-white/60">16px</span>
|
|
307
|
+
</div>
|
|
308
|
+
<div className="text-center">
|
|
309
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-5 w-5 text-violet-400" />
|
|
310
|
+
<span className="text-xs text-white/60">20px</span>
|
|
311
|
+
</div>
|
|
312
|
+
<div className="text-center">
|
|
313
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-6 w-6 text-violet-400" />
|
|
314
|
+
<span className="text-xs text-white/60">24px</span>
|
|
315
|
+
</div>
|
|
316
|
+
<div className="text-center">
|
|
317
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-8 w-8 text-violet-400" />
|
|
318
|
+
<span className="text-xs text-white/60">32px</span>
|
|
319
|
+
</div>
|
|
320
|
+
<div className="text-center">
|
|
321
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-12 w-12 text-violet-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-violet-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
|
+
<BackwardTenSecondsIcon className="h-4 w-4" />
|
|
335
|
+
|
|
336
|
+
// Medium (24px)
|
|
337
|
+
<BackwardTenSecondsIcon className="h-6 w-6" />
|
|
338
|
+
|
|
339
|
+
// Large (32px)
|
|
340
|
+
<BackwardTenSecondsIcon className="h-8 w-8" />
|
|
341
|
+
|
|
342
|
+
// Custom size
|
|
343
|
+
<BackwardTenSecondsIcon 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-violet-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
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-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-violet-400
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
</div>
|
|
374
|
+
<div className="flex items-center gap-4">
|
|
375
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-purple-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-purple-400
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
</div>
|
|
385
|
+
<div className="flex items-center gap-4">
|
|
386
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-blue-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-blue-400
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
</div>
|
|
396
|
+
<div className="flex items-center gap-4">
|
|
397
|
+
<BackwardTenSecondsIcon 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-violet-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
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-400" />
|
|
418
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-purple-500" />
|
|
419
|
+
|
|
420
|
+
// Using CSS custom properties
|
|
421
|
+
<BackwardTenSecondsIcon
|
|
422
|
+
className="h-6 w-6"
|
|
423
|
+
style={{ color: 'var(--color-primary)' }}
|
|
424
|
+
/>
|
|
425
|
+
|
|
426
|
+
// Direct stroke prop
|
|
427
|
+
<BackwardTenSecondsIcon
|
|
428
|
+
width={24}
|
|
429
|
+
height={24}
|
|
430
|
+
stroke="#8b5cf6"
|
|
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-violet-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
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-400" />
|
|
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
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
466
|
+
</button>
|
|
467
|
+
</div>
|
|
468
|
+
<p className="text-sm !text-white/70">
|
|
469
|
+
Skip back 10 seconds to replay important content
|
|
470
|
+
</p>
|
|
471
|
+
</div>
|
|
472
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
473
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
474
|
+
{`// Podcast control bar
|
|
475
|
+
<div className="flex items-center justify-center gap-4">
|
|
476
|
+
<button onClick={() => skipSeconds(-10)}>
|
|
477
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-400" />
|
|
478
|
+
</button>
|
|
479
|
+
<button onClick={togglePlay}>
|
|
480
|
+
<PlayIcon className="h-8 w-8" />
|
|
481
|
+
</button>
|
|
482
|
+
<button onClick={() => skipSeconds(10)}>
|
|
483
|
+
<ForwardTenSecondsIcon className="h-6 w-6" />
|
|
484
|
+
</button>
|
|
485
|
+
</div>`}
|
|
486
|
+
</pre>
|
|
487
|
+
</div>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
|
|
491
|
+
{/* Video Player */}
|
|
492
|
+
<div className="!space-y-4">
|
|
493
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
494
|
+
Video Player Controls
|
|
495
|
+
</h3>
|
|
496
|
+
<div className="!space-y-4">
|
|
497
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
498
|
+
<div className="mb-4 h-32 rounded bg-gradient-to-r from-violet-500/20 to-purple-500/20" />
|
|
499
|
+
<div className="flex items-center justify-between">
|
|
500
|
+
<div className="flex items-center gap-2">
|
|
501
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
502
|
+
<BackwardTenSecondsIcon className="h-5 w-5 text-violet-400" />
|
|
503
|
+
</button>
|
|
504
|
+
<span className="text-sm text-white/60">
|
|
505
|
+
2:35 / 15:42
|
|
506
|
+
</span>
|
|
507
|
+
</div>
|
|
508
|
+
<div className="flex items-center gap-2">
|
|
509
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
510
|
+
<div className="h-5 w-5 rounded-full border border-white/60 bg-white/20" />
|
|
511
|
+
</button>
|
|
512
|
+
</div>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
516
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
517
|
+
{`// Video player with rewind
|
|
518
|
+
<div className="video-controls">
|
|
519
|
+
<div className="flex items-center gap-2">
|
|
520
|
+
<button
|
|
521
|
+
onClick={rewindTenSeconds}
|
|
522
|
+
aria-label="Rewind 10 seconds"
|
|
523
|
+
>
|
|
524
|
+
<BackwardTenSecondsIcon className="h-5 w-5 text-violet-400" />
|
|
525
|
+
</button>
|
|
526
|
+
<span>{formatTime(currentTime)} / {formatTime(duration)}</span>
|
|
527
|
+
</div>
|
|
528
|
+
</div>`}
|
|
529
|
+
</pre>
|
|
530
|
+
</div>
|
|
531
|
+
</div>
|
|
532
|
+
</div>
|
|
533
|
+
|
|
534
|
+
{/* Music Player */}
|
|
535
|
+
<div className="!space-y-4">
|
|
536
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
537
|
+
Music Player Interface
|
|
538
|
+
</h3>
|
|
539
|
+
<div className="!space-y-4">
|
|
540
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
541
|
+
<div className="mb-4 flex items-center gap-3">
|
|
542
|
+
<div className="h-12 w-12 rounded-lg bg-gradient-to-br from-violet-500/20 to-purple-500/20" />
|
|
543
|
+
<div>
|
|
544
|
+
<div className="text-sm font-medium !text-white">
|
|
545
|
+
Song Title
|
|
546
|
+
</div>
|
|
547
|
+
<div className="text-xs !text-white/60">
|
|
548
|
+
Artist Name
|
|
549
|
+
</div>
|
|
550
|
+
</div>
|
|
551
|
+
</div>
|
|
552
|
+
<div className="flex items-center justify-center gap-6">
|
|
553
|
+
<button className="rounded-lg p-1.5 hover:bg-white/10">
|
|
554
|
+
<BackwardTenSecondsIcon className="h-4 w-4 text-violet-400" />
|
|
555
|
+
</button>
|
|
556
|
+
<button className="rounded-lg p-2 hover:bg-white/10">
|
|
557
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
558
|
+
</button>
|
|
559
|
+
<button className="rounded-lg p-2 hover:bg-white/10">
|
|
560
|
+
<div className="h-8 w-8 rounded-full border-2 border-white/60 bg-white/20" />
|
|
561
|
+
</button>
|
|
562
|
+
<button className="rounded-lg p-2 hover:bg-white/10">
|
|
563
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
564
|
+
</button>
|
|
565
|
+
<button className="rounded-lg p-1.5 hover:bg-white/10">
|
|
566
|
+
<div className="h-4 w-4 rounded-full border border-white/60 bg-white/20" />
|
|
567
|
+
</button>
|
|
568
|
+
</div>
|
|
569
|
+
</div>
|
|
570
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
571
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
572
|
+
{`// Music player with skip controls
|
|
573
|
+
<div className="music-controls">
|
|
574
|
+
<div className="flex items-center justify-center gap-6">
|
|
575
|
+
<button onClick={skipBackward}>
|
|
576
|
+
<BackwardTenSecondsIcon className="h-4 w-4 text-violet-400" />
|
|
577
|
+
</button>
|
|
578
|
+
<button onClick={previousTrack}>
|
|
579
|
+
<PreviousIcon className="h-6 w-6" />
|
|
580
|
+
</button>
|
|
581
|
+
<button onClick={togglePlay}>
|
|
582
|
+
<PlayIcon className="h-8 w-8" />
|
|
583
|
+
</button>
|
|
584
|
+
<button onClick={nextTrack}>
|
|
585
|
+
<NextIcon className="h-6 w-6" />
|
|
586
|
+
</button>
|
|
587
|
+
<button onClick={skipForward}>
|
|
588
|
+
<ForwardTenSecondsIcon className="h-4 w-4" />
|
|
589
|
+
</button>
|
|
590
|
+
</div>
|
|
591
|
+
</div>`}
|
|
592
|
+
</pre>
|
|
593
|
+
</div>
|
|
594
|
+
</div>
|
|
595
|
+
</div>
|
|
596
|
+
|
|
597
|
+
{/* Live Stream */}
|
|
598
|
+
<div className="!space-y-4">
|
|
599
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
600
|
+
Live Stream Player
|
|
601
|
+
</h3>
|
|
602
|
+
<div className="!space-y-4">
|
|
603
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
604
|
+
<div className="mb-4">
|
|
605
|
+
<div className="mb-2 flex items-center gap-2">
|
|
606
|
+
<div className="h-2 w-2 rounded-full bg-red-500" />
|
|
607
|
+
<span className="text-sm font-medium !text-white">
|
|
608
|
+
LIVE
|
|
609
|
+
</span>
|
|
610
|
+
</div>
|
|
611
|
+
<h4 className="text-sm !text-white/70">
|
|
612
|
+
Conference Stream
|
|
613
|
+
</h4>
|
|
614
|
+
</div>
|
|
615
|
+
<div className="flex items-center justify-between">
|
|
616
|
+
<div className="flex items-center gap-2">
|
|
617
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
618
|
+
<BackwardTenSecondsIcon className="h-5 w-5 text-violet-400" />
|
|
619
|
+
</button>
|
|
620
|
+
<span className="text-xs !text-white/60">
|
|
621
|
+
Rewind available
|
|
622
|
+
</span>
|
|
623
|
+
</div>
|
|
624
|
+
<button className="rounded-lg border border-red-500/30 bg-red-500/10 px-3 py-1 text-xs text-red-200">
|
|
625
|
+
Go Live
|
|
626
|
+
</button>
|
|
627
|
+
</div>
|
|
628
|
+
</div>
|
|
629
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
630
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
631
|
+
{`// Live stream with rewind capability
|
|
632
|
+
<div className="live-controls">
|
|
633
|
+
{canRewind && (
|
|
634
|
+
<button
|
|
635
|
+
onClick={rewindTenSeconds}
|
|
636
|
+
disabled={isLive}
|
|
637
|
+
>
|
|
638
|
+
<BackwardTenSecondsIcon className="h-5 w-5 text-violet-400" />
|
|
639
|
+
</button>
|
|
640
|
+
)}
|
|
641
|
+
<button onClick={goLive} disabled={isLive}>
|
|
642
|
+
Go Live
|
|
643
|
+
</button>
|
|
644
|
+
</div>`}
|
|
645
|
+
</pre>
|
|
646
|
+
</div>
|
|
647
|
+
</div>
|
|
648
|
+
</div>
|
|
649
|
+
</div>
|
|
650
|
+
</div>
|
|
651
|
+
|
|
652
|
+
{/* Accessibility */}
|
|
653
|
+
<div className="!space-y-8">
|
|
654
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
655
|
+
Accessibility Features
|
|
656
|
+
</h2>
|
|
657
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
658
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
659
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
660
|
+
✅ Built-in Features
|
|
661
|
+
</h3>
|
|
662
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
663
|
+
<li className="!text-white/70">
|
|
664
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
665
|
+
</li>
|
|
666
|
+
<li className="!text-white/70">
|
|
667
|
+
Provides screen reader label "Backward ten seconds icon"
|
|
668
|
+
</li>
|
|
669
|
+
<li className="!text-white/70">
|
|
670
|
+
Supports keyboard navigation when interactive
|
|
671
|
+
</li>
|
|
672
|
+
<li className="!text-white/70">
|
|
673
|
+
Maintains proper color contrast ratios
|
|
674
|
+
</li>
|
|
675
|
+
<li className="!text-white/70">
|
|
676
|
+
Scales with user's font size preferences
|
|
677
|
+
</li>
|
|
678
|
+
</ul>
|
|
679
|
+
</div>
|
|
680
|
+
|
|
681
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
682
|
+
<h3 className="text-lg font-semibold !text-violet-300">
|
|
683
|
+
💡 Best Practices
|
|
684
|
+
</h3>
|
|
685
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
686
|
+
<li className="!text-white/70">
|
|
687
|
+
Always provide descriptive aria-labels for buttons
|
|
688
|
+
</li>
|
|
689
|
+
<li className="!text-white/70">
|
|
690
|
+
Use consistent placement in media control groups
|
|
691
|
+
</li>
|
|
692
|
+
<li className="!text-white/70">
|
|
693
|
+
Ensure sufficient touch target size (44px minimum)
|
|
694
|
+
</li>
|
|
695
|
+
<li className="!text-white/70">
|
|
696
|
+
Provide visible focus states for keyboard users
|
|
697
|
+
</li>
|
|
698
|
+
<li className="!text-white/70">
|
|
699
|
+
Consider keyboard shortcuts (e.g., Left Arrow key)
|
|
700
|
+
</li>
|
|
701
|
+
</ul>
|
|
702
|
+
</div>
|
|
703
|
+
</div>
|
|
704
|
+
|
|
705
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
706
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
707
|
+
Proper ARIA Implementation
|
|
708
|
+
</h3>
|
|
709
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
710
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
711
|
+
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
712
|
+
{`// Media control with proper ARIA
|
|
713
|
+
<button
|
|
714
|
+
aria-label="Rewind 10 seconds"
|
|
715
|
+
className="p-2 hover:bg-white/10 rounded-lg"
|
|
716
|
+
onClick={rewindTenSeconds}
|
|
717
|
+
>
|
|
718
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-400" />
|
|
719
|
+
</button>
|
|
720
|
+
|
|
721
|
+
// Podcast player with context
|
|
722
|
+
<button
|
|
723
|
+
aria-label="Go back 10 seconds in podcast"
|
|
724
|
+
onClick={skipBackward}
|
|
725
|
+
>
|
|
726
|
+
<BackwardTenSecondsIcon className="h-5 w-5" />
|
|
727
|
+
</button>
|
|
728
|
+
|
|
729
|
+
// Video player with state
|
|
730
|
+
<button
|
|
731
|
+
aria-label={\`Rewind 10 seconds (current: \${formatTime(currentTime)})\`}
|
|
732
|
+
disabled={currentTime < 10}
|
|
733
|
+
>
|
|
734
|
+
<BackwardTenSecondsIcon className="h-5 w-5" />
|
|
735
|
+
</button>`}
|
|
736
|
+
</pre>
|
|
737
|
+
</div>
|
|
738
|
+
<div className="!space-y-4">
|
|
739
|
+
<p className="text-sm !text-white/70">
|
|
740
|
+
When using BackwardTenSecondsIcon for interactive
|
|
741
|
+
elements, always provide clear context about what action
|
|
742
|
+
will be performed and the current playback state when
|
|
743
|
+
relevant.
|
|
744
|
+
</p>
|
|
745
|
+
<div className="rounded-lg border border-violet-500/20 bg-violet-500/10 p-4">
|
|
746
|
+
<div className="flex items-center gap-2 text-sm text-violet-200">
|
|
747
|
+
<BackwardTenSecondsIcon className="h-4 w-4" />
|
|
748
|
+
<span>
|
|
749
|
+
Screen readers need specific context about the
|
|
750
|
+
rewind action
|
|
751
|
+
</span>
|
|
752
|
+
</div>
|
|
753
|
+
</div>
|
|
754
|
+
</div>
|
|
755
|
+
</div>
|
|
756
|
+
</div>
|
|
757
|
+
</div>
|
|
758
|
+
|
|
759
|
+
{/* Related Icons */}
|
|
760
|
+
<div className="!space-y-8">
|
|
761
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
762
|
+
Related Icons
|
|
763
|
+
</h2>
|
|
764
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
765
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
766
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-violet-500/20">
|
|
767
|
+
<span className="!text-2xl !text-white">⏮</span>
|
|
768
|
+
</div>
|
|
769
|
+
<div>
|
|
770
|
+
<div className="font-medium text-white">
|
|
771
|
+
ForwardTenSecondsIcon
|
|
772
|
+
</div>
|
|
773
|
+
<div className="text-xs text-white/60">
|
|
774
|
+
Skip forward 10s
|
|
775
|
+
</div>
|
|
776
|
+
</div>
|
|
777
|
+
</div>
|
|
778
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
779
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
780
|
+
<span className="!text-2xl !text-white">⏸</span>
|
|
781
|
+
</div>
|
|
782
|
+
<div>
|
|
783
|
+
<div className="font-medium text-white">PlayIcon</div>
|
|
784
|
+
<div className="text-xs text-white/60">Play/pause</div>
|
|
785
|
+
</div>
|
|
786
|
+
</div>
|
|
787
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
788
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
789
|
+
<span className="!text-2xl !text-white">⏪</span>
|
|
790
|
+
</div>
|
|
791
|
+
<div>
|
|
792
|
+
<div className="font-medium text-white">RewindIcon</div>
|
|
793
|
+
<div className="text-xs text-white/60">Fast rewind</div>
|
|
794
|
+
</div>
|
|
795
|
+
</div>
|
|
796
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
797
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
|
|
798
|
+
<span className="!text-2xl !text-white">⏭</span>
|
|
799
|
+
</div>
|
|
800
|
+
<div>
|
|
801
|
+
<div className="font-medium text-white">NextIcon</div>
|
|
802
|
+
<div className="text-xs text-white/60">Next track</div>
|
|
803
|
+
</div>
|
|
804
|
+
</div>
|
|
805
|
+
</div>
|
|
806
|
+
</div>
|
|
807
|
+
</div>
|
|
808
|
+
|
|
809
|
+
{/* Footer */}
|
|
810
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
811
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
812
|
+
<div className="!space-y-4 text-center">
|
|
813
|
+
<p className="!text-white/60">
|
|
814
|
+
BackwardTenSecondsIcon is part of the Aural UI icon library,
|
|
815
|
+
built with accessibility and media control best practices in
|
|
816
|
+
mind.
|
|
817
|
+
</p>
|
|
818
|
+
<p className="text-sm !text-white/40">
|
|
819
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
820
|
+
compatibility and follow WCAG guidelines.
|
|
821
|
+
</p>
|
|
822
|
+
</div>
|
|
823
|
+
</div>
|
|
824
|
+
</div>
|
|
825
|
+
</div>
|
|
826
|
+
</>
|
|
827
|
+
),
|
|
828
|
+
},
|
|
829
|
+
},
|
|
830
|
+
tags: ["autodocs"],
|
|
831
|
+
argTypes: {
|
|
832
|
+
width: {
|
|
833
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
834
|
+
description: "Width of the icon in pixels",
|
|
835
|
+
},
|
|
836
|
+
height: {
|
|
837
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
838
|
+
description: "Height of the icon in pixels",
|
|
839
|
+
},
|
|
840
|
+
stroke: {
|
|
841
|
+
control: "color",
|
|
842
|
+
description: "Stroke color of the icon",
|
|
843
|
+
},
|
|
844
|
+
strokeWidth: {
|
|
845
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
846
|
+
description: "Width of the stroke",
|
|
847
|
+
},
|
|
848
|
+
className: {
|
|
849
|
+
control: "text",
|
|
850
|
+
description: "CSS classes for styling (use for overrides)",
|
|
851
|
+
},
|
|
852
|
+
onClick: {
|
|
853
|
+
action: "clicked",
|
|
854
|
+
description: "Click handler for interactive use",
|
|
855
|
+
},
|
|
856
|
+
},
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
export default meta
|
|
860
|
+
type Story = StoryObj<typeof BackwardTenSecondsIcon>
|
|
861
|
+
|
|
862
|
+
// Story parameters for consistent dark theme
|
|
863
|
+
const storyParameters = {
|
|
864
|
+
backgrounds: {
|
|
865
|
+
default: "dark",
|
|
866
|
+
values: [
|
|
867
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
868
|
+
{ name: "darker", value: "#000000" },
|
|
869
|
+
],
|
|
870
|
+
},
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
export const Default: Story = {
|
|
874
|
+
args: {
|
|
875
|
+
className: "h-8 w-8 text-violet-400",
|
|
876
|
+
},
|
|
877
|
+
parameters: storyParameters,
|
|
878
|
+
render: (args) => (
|
|
879
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
880
|
+
<BackwardTenSecondsIcon {...args} />
|
|
881
|
+
</div>
|
|
882
|
+
),
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
export const SizeVariations: Story = {
|
|
886
|
+
parameters: {
|
|
887
|
+
...storyParameters,
|
|
888
|
+
docs: {
|
|
889
|
+
description: {
|
|
890
|
+
story:
|
|
891
|
+
"BackwardTenSecondsIcon in different sizes, from small UI elements to large displays.",
|
|
892
|
+
},
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
render: () => (
|
|
896
|
+
<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">
|
|
897
|
+
<div className="text-center">
|
|
898
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-3 w-3 text-violet-400" />
|
|
899
|
+
<span className="text-xs text-white/60">12px</span>
|
|
900
|
+
</div>
|
|
901
|
+
<div className="text-center">
|
|
902
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-4 w-4 text-violet-400" />
|
|
903
|
+
<span className="text-xs text-white/60">16px</span>
|
|
904
|
+
</div>
|
|
905
|
+
<div className="text-center">
|
|
906
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-5 w-5 text-violet-400" />
|
|
907
|
+
<span className="text-xs text-white/60">20px</span>
|
|
908
|
+
</div>
|
|
909
|
+
<div className="text-center">
|
|
910
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-6 w-6 text-violet-400" />
|
|
911
|
+
<span className="text-xs text-white/60">24px</span>
|
|
912
|
+
</div>
|
|
913
|
+
<div className="text-center">
|
|
914
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-8 w-8 text-violet-400" />
|
|
915
|
+
<span className="text-xs text-white/60">32px</span>
|
|
916
|
+
</div>
|
|
917
|
+
<div className="text-center">
|
|
918
|
+
<BackwardTenSecondsIcon className="!mx-auto mb-2 h-12 w-12 text-violet-400" />
|
|
919
|
+
<span className="text-xs text-white/60">48px</span>
|
|
920
|
+
</div>
|
|
921
|
+
</div>
|
|
922
|
+
),
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
export const ColorVariations: Story = {
|
|
926
|
+
parameters: {
|
|
927
|
+
...storyParameters,
|
|
928
|
+
docs: {
|
|
929
|
+
description: {
|
|
930
|
+
story:
|
|
931
|
+
"BackwardTenSecondsIcon in different semantic colors for various use cases.",
|
|
932
|
+
},
|
|
933
|
+
},
|
|
934
|
+
},
|
|
935
|
+
render: () => (
|
|
936
|
+
<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">
|
|
937
|
+
<div className="text-center">
|
|
938
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-violet-500/30 bg-violet-500/20">
|
|
939
|
+
<BackwardTenSecondsIcon className="h-8 w-8 text-violet-400" />
|
|
940
|
+
</div>
|
|
941
|
+
<div className="text-sm font-medium text-white">Primary</div>
|
|
942
|
+
<div className="text-xs text-violet-400">text-violet-400</div>
|
|
943
|
+
</div>
|
|
944
|
+
<div className="text-center">
|
|
945
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
946
|
+
<BackwardTenSecondsIcon className="h-8 w-8 text-purple-400" />
|
|
947
|
+
</div>
|
|
948
|
+
<div className="text-sm font-medium text-white">Secondary</div>
|
|
949
|
+
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
950
|
+
</div>
|
|
951
|
+
<div className="text-center">
|
|
952
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
|
|
953
|
+
<BackwardTenSecondsIcon className="h-8 w-8 text-blue-400" />
|
|
954
|
+
</div>
|
|
955
|
+
<div className="text-sm font-medium text-white">Accent</div>
|
|
956
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
957
|
+
</div>
|
|
958
|
+
<div className="text-center">
|
|
959
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
960
|
+
<BackwardTenSecondsIcon className="h-8 w-8 text-white/40" />
|
|
961
|
+
</div>
|
|
962
|
+
<div className="text-sm font-medium text-white">Disabled</div>
|
|
963
|
+
<div className="text-xs text-white/40">text-white/40</div>
|
|
964
|
+
</div>
|
|
965
|
+
</div>
|
|
966
|
+
),
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
export const UsageExamples: Story = {
|
|
970
|
+
parameters: {
|
|
971
|
+
...storyParameters,
|
|
972
|
+
docs: {
|
|
973
|
+
description: {
|
|
974
|
+
story:
|
|
975
|
+
"Real-world usage examples showing BackwardTenSecondsIcon in different media control contexts.",
|
|
976
|
+
},
|
|
977
|
+
},
|
|
978
|
+
},
|
|
979
|
+
render: () => (
|
|
980
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
981
|
+
{/* Podcast Player */}
|
|
982
|
+
<div className="!space-y-2">
|
|
983
|
+
<h3 className="text-sm font-medium text-white">Podcast Player</h3>
|
|
984
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
985
|
+
<div className="mb-4 flex items-center justify-between">
|
|
986
|
+
<h3 className="text-lg font-semibold text-white">Now Playing</h3>
|
|
987
|
+
</div>
|
|
988
|
+
<div className="flex items-center justify-center gap-4">
|
|
989
|
+
<button className="rounded-lg p-2 transition-colors hover:bg-white/10">
|
|
990
|
+
<BackwardTenSecondsIcon className="h-6 w-6 text-violet-400" />
|
|
991
|
+
</button>
|
|
992
|
+
<button className="rounded-lg p-3 transition-colors hover:bg-white/10">
|
|
993
|
+
<div className="h-8 w-8 rounded-full border-2 border-white/60 bg-white/20" />
|
|
994
|
+
</button>
|
|
995
|
+
<button className="rounded-lg p-2 transition-colors hover:bg-white/10">
|
|
996
|
+
<div className="h-6 w-6 rounded-full border border-white/60 bg-white/20" />
|
|
997
|
+
</button>
|
|
998
|
+
</div>
|
|
999
|
+
</div>
|
|
1000
|
+
</div>
|
|
1001
|
+
|
|
1002
|
+
{/* Video Player */}
|
|
1003
|
+
<div className="!space-y-2">
|
|
1004
|
+
<h3 className="text-sm font-medium text-white">
|
|
1005
|
+
Video Player Controls
|
|
1006
|
+
</h3>
|
|
1007
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1008
|
+
<div className="mb-4 h-32 rounded bg-gradient-to-r from-violet-500/20 to-purple-500/20" />
|
|
1009
|
+
<div className="flex items-center justify-between">
|
|
1010
|
+
<div className="flex items-center gap-2">
|
|
1011
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
1012
|
+
<BackwardTenSecondsIcon className="h-5 w-5 text-violet-400" />
|
|
1013
|
+
</button>
|
|
1014
|
+
<span className="text-sm text-white/60">2:35 / 15:42</span>
|
|
1015
|
+
</div>
|
|
1016
|
+
<div className="flex items-center gap-2">
|
|
1017
|
+
<button className="rounded p-1.5 hover:bg-white/10">
|
|
1018
|
+
<div className="h-5 w-5 rounded-full border border-white/60 bg-white/20" />
|
|
1019
|
+
</button>
|
|
1020
|
+
</div>
|
|
1021
|
+
</div>
|
|
1022
|
+
</div>
|
|
1023
|
+
</div>
|
|
1024
|
+
</div>
|
|
1025
|
+
),
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
export const Playground: Story = {
|
|
1029
|
+
parameters: {
|
|
1030
|
+
...storyParameters,
|
|
1031
|
+
docs: {
|
|
1032
|
+
description: {
|
|
1033
|
+
story:
|
|
1034
|
+
"Interactive playground to experiment with different BackwardTenSecondsIcon configurations.",
|
|
1035
|
+
},
|
|
1036
|
+
},
|
|
1037
|
+
},
|
|
1038
|
+
args: {
|
|
1039
|
+
width: 44,
|
|
1040
|
+
height: 44,
|
|
1041
|
+
className: "text-violet-400",
|
|
1042
|
+
},
|
|
1043
|
+
render: (args) => (
|
|
1044
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1045
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1046
|
+
<BackwardTenSecondsIcon {...args} />
|
|
1047
|
+
</div>
|
|
1048
|
+
</div>
|
|
1049
|
+
),
|
|
1050
|
+
}
|