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