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,1004 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { GoogleLogoIcon } from "."
5
+
6
+ const meta: Meta<typeof GoogleLogoIcon> = {
7
+ title: "Icons/GoogleLogoIcon",
8
+ component: GoogleLogoIcon,
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-red-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-red-500/10 via-yellow-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-gray-500/30 bg-gradient-to-br from-red-500/20 via-yellow-500/20 to-blue-500/20">
90
+ <GoogleLogoIcon className="h-12 w-12" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ GoogleLogoIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ The iconic Google logo for authentication, platform
97
+ integration, and service identification. 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-red-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-yellow-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-blue-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-red-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 { GoogleLogoIcon } from "@icons/google-logo-icon"
150
+
151
+ function LoginPage() {
152
+ return (
153
+ <button className="flex items-center gap-3">
154
+ <GoogleLogoIcon className="h-5 w-5" />
155
+ <span>Sign in with Google</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-red-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-gray-300 bg-white px-6 py-3 text-gray-700 transition-colors hover:bg-gray-50">
169
+ <GoogleLogoIcon className="h-5 w-5" />
170
+ <span>Sign in with Google</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-red-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">21</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-red-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">20</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-red-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
+ Google colors
238
+ </td>
239
+ <td className="px-6 py-4 text-sm !text-white/70">
240
+ Fill color of the icon paths
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-red-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-red-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-red-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
+ <GoogleLogoIcon className="!mx-auto mb-2 h-3 w-3" />
287
+ <span className="text-xs text-white/60">12px</span>
288
+ </div>
289
+ <div className="text-center">
290
+ <GoogleLogoIcon className="!mx-auto mb-2 h-4 w-4" />
291
+ <span className="text-xs text-white/60">16px</span>
292
+ </div>
293
+ <div className="text-center">
294
+ <GoogleLogoIcon className="!mx-auto mb-2 h-5 w-5" />
295
+ <span className="text-xs text-white/60">20px</span>
296
+ </div>
297
+ <div className="text-center">
298
+ <GoogleLogoIcon className="!mx-auto mb-2 h-6 w-6" />
299
+ <span className="text-xs text-white/60">24px</span>
300
+ </div>
301
+ <div className="text-center">
302
+ <GoogleLogoIcon className="!mx-auto mb-2 h-8 w-8" />
303
+ <span className="text-xs text-white/60">32px</span>
304
+ </div>
305
+ <div className="text-center">
306
+ <GoogleLogoIcon className="!mx-auto mb-2 h-12 w-12" />
307
+ <span className="text-xs text-white/60">48px</span>
308
+ </div>
309
+ </div>
310
+ </div>
311
+
312
+ <div className="!space-y-4">
313
+ <h3 className="text-lg font-semibold !text-red-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
+ <GoogleLogoIcon className="h-4 w-4" />
320
+
321
+ // Medium (24px)
322
+ <GoogleLogoIcon className="h-6 w-6" />
323
+
324
+ // Large (32px)
325
+ <GoogleLogoIcon className="h-8 w-8" />
326
+
327
+ // Custom size
328
+ <GoogleLogoIcon 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-red-300">
345
+ Brand 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
+ <GoogleLogoIcon className="h-6 w-6" />
350
+ <div>
351
+ <div className="text-sm font-medium text-white">
352
+ Original Google Colors
353
+ </div>
354
+ <div className="text-xs text-white/60">
355
+ Default multicolor
356
+ </div>
357
+ </div>
358
+ </div>
359
+ <div className="flex items-center gap-4">
360
+ <div className="flex h-6 w-6 items-center justify-center rounded bg-white">
361
+ <GoogleLogoIcon className="h-5 w-5" />
362
+ </div>
363
+ <div>
364
+ <div className="text-sm font-medium text-white">
365
+ On White Background
366
+ </div>
367
+ <div className="text-xs text-white/60">
368
+ Optimal contrast
369
+ </div>
370
+ </div>
371
+ </div>
372
+ <div className="flex items-center gap-4">
373
+ <div className="flex h-6 w-6 items-center justify-center rounded bg-gray-100">
374
+ <GoogleLogoIcon className="h-5 w-5" />
375
+ </div>
376
+ <div>
377
+ <div className="text-sm font-medium text-white">
378
+ On Light Background
379
+ </div>
380
+ <div className="text-xs text-white/60">
381
+ Light gray surface
382
+ </div>
383
+ </div>
384
+ </div>
385
+ <div className="flex items-center gap-4">
386
+ <div className="flex h-6 w-6 items-center justify-center rounded bg-gray-800">
387
+ <GoogleLogoIcon className="h-5 w-5" />
388
+ </div>
389
+ <div>
390
+ <div className="text-sm font-medium text-white">
391
+ On Dark Background
392
+ </div>
393
+ <div className="text-xs text-white/60">
394
+ Dark surface adaptation
395
+ </div>
396
+ </div>
397
+ </div>
398
+ </div>
399
+ </div>
400
+
401
+ <div className="!space-y-4">
402
+ <h3 className="text-lg font-semibold !text-red-300">
403
+ Implementation Notes
404
+ </h3>
405
+ <div className="rounded-lg bg-black/40 p-4">
406
+ <pre className="overflow-x-auto text-sm !text-green-300">
407
+ {`// Google logo uses specific brand colors
408
+ // Red: #E94335, Green: #34A753
409
+ // Blue: #4285F3, Yellow: #FABB04
410
+
411
+ // Basic usage (maintains Google colors)
412
+ <GoogleLogoIcon className="h-6 w-6" />
413
+
414
+ // On white backgrounds (recommended)
415
+ <div className="bg-white p-4 rounded">
416
+ <GoogleLogoIcon className="h-6 w-6" />
417
+ </div>
418
+
419
+ // Custom sizing
420
+ <GoogleLogoIcon
421
+ width={32}
422
+ height={32}
423
+ className="flex-shrink-0"
424
+ />`}
425
+ </pre>
426
+ </div>
427
+ </div>
428
+ </div>
429
+ </div>
430
+
431
+ {/* Usage Examples */}
432
+ <div className="!space-y-8">
433
+ <h2 className="text-center text-3xl font-bold !text-white">
434
+ Usage Examples
435
+ </h2>
436
+
437
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
438
+ {/* Authentication Button */}
439
+ <div className="!space-y-4">
440
+ <h3 className="text-lg font-semibold !text-red-300">
441
+ Authentication Button
442
+ </h3>
443
+ <div className="!space-y-4">
444
+ <div className="flex gap-4">
445
+ <button className="flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-6 py-3 text-gray-700 transition-colors hover:bg-gray-50">
446
+ <GoogleLogoIcon className="h-5 w-5" />
447
+ Sign in with Google
448
+ </button>
449
+ <button className="flex items-center gap-3 rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-white transition-colors hover:bg-white/10">
450
+ <GoogleLogoIcon className="h-4 w-4" />
451
+ Continue
452
+ </button>
453
+ </div>
454
+ <div className="rounded-lg bg-black/40 p-4">
455
+ <pre className="overflow-x-auto text-sm !text-green-300">
456
+ {`// Primary Google authentication button
457
+ <button className="flex items-center gap-3 bg-white border border-gray-300 px-6 py-3 rounded-lg text-gray-700">
458
+ <GoogleLogoIcon className="h-5 w-5" />
459
+ Sign in with Google
460
+ </button>
461
+
462
+ // Secondary continue button
463
+ <button className="flex items-center gap-3 bg-white/5 border border-white/20 px-4 py-2 rounded-lg">
464
+ <GoogleLogoIcon className="h-4 w-4" />
465
+ Continue
466
+ </button>`}
467
+ </pre>
468
+ </div>
469
+ </div>
470
+ </div>
471
+
472
+ {/* Service Integration */}
473
+ <div className="!space-y-4">
474
+ <h3 className="text-lg font-semibold !text-red-300">
475
+ Service Integration
476
+ </h3>
477
+ <div className="!space-y-4">
478
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
479
+ <div className="flex items-center justify-between">
480
+ <div className="flex items-center gap-4">
481
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-white">
482
+ <GoogleLogoIcon className="h-6 w-6" />
483
+ </div>
484
+ <div>
485
+ <div className="font-medium text-white">
486
+ Google Drive
487
+ </div>
488
+ <div className="text-sm text-white/60">
489
+ Connected to your account
490
+ </div>
491
+ </div>
492
+ </div>
493
+ <div className="h-2 w-2 rounded-full bg-green-400"></div>
494
+ </div>
495
+ </div>
496
+ <div className="rounded-lg bg-black/40 p-4">
497
+ <pre className="overflow-x-auto text-sm !text-green-300">
498
+ {`<div className="flex items-center justify-between">
499
+ <div className="flex items-center gap-4">
500
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-white">
501
+ <GoogleLogoIcon className="h-6 w-6" />
502
+ </div>
503
+ <div>
504
+ <div className="font-medium text-white">Google Drive</div>
505
+ <div className="text-sm text-white/60">Connected to your account</div>
506
+ </div>
507
+ </div>
508
+ <div className="h-2 w-2 rounded-full bg-green-400"></div>
509
+ </div>`}
510
+ </pre>
511
+ </div>
512
+ </div>
513
+ </div>
514
+
515
+ {/* Account Selector */}
516
+ <div className="!space-y-4">
517
+ <h3 className="text-lg font-semibold !text-red-300">
518
+ Account Selector
519
+ </h3>
520
+ <div className="!space-y-4">
521
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
522
+ <div className="space-y-3">
523
+ <div className="flex items-center gap-3 rounded-lg bg-white/5 p-3">
524
+ <GoogleLogoIcon className="h-5 w-5" />
525
+ <div className="flex-1">
526
+ <div className="text-sm font-medium text-white">
527
+ john@gmail.com
528
+ </div>
529
+ <div className="text-xs text-white/60">
530
+ Personal account
531
+ </div>
532
+ </div>
533
+ <div className="h-2 w-2 rounded-full bg-blue-400"></div>
534
+ </div>
535
+ </div>
536
+ </div>
537
+ <div className="rounded-lg bg-black/40 p-4">
538
+ <pre className="overflow-x-auto text-sm !text-green-300">
539
+ {`<div className="flex items-center gap-3 rounded-lg bg-white/5 p-3">
540
+ <GoogleLogoIcon className="h-5 w-5" />
541
+ <div className="flex-1">
542
+ <div className="text-sm font-medium text-white">john@gmail.com</div>
543
+ <div className="text-xs text-white/60">Personal account</div>
544
+ </div>
545
+ <div className="h-2 w-2 rounded-full bg-blue-400"></div>
546
+ </div>`}
547
+ </pre>
548
+ </div>
549
+ </div>
550
+ </div>
551
+
552
+ {/* Integration Card */}
553
+ <div className="!space-y-4">
554
+ <h3 className="text-lg font-semibold !text-red-300">
555
+ Integration Card
556
+ </h3>
557
+ <div className="!space-y-4">
558
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
559
+ <div className="!space-y-4 text-center">
560
+ <div className="!mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-white">
561
+ <GoogleLogoIcon className="h-8 w-8" />
562
+ </div>
563
+ <div className="!space-y-2">
564
+ <h4 className="font-medium !text-white">
565
+ Connect Google Workspace
566
+ </h4>
567
+ <p className="text-sm !text-white/70">
568
+ Sync your Google Calendar, Drive, and Gmail
569
+ </p>
570
+ </div>
571
+ <button className="rounded-lg bg-blue-500 px-4 py-2 text-sm text-white transition-colors hover:bg-blue-600">
572
+ Connect Now
573
+ </button>
574
+ </div>
575
+ </div>
576
+ <div className="rounded-lg bg-black/40 p-4">
577
+ <pre className="overflow-x-auto text-sm !text-green-300">
578
+ {`<div className="text-center">
579
+ <div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-lg bg-white">
580
+ <GoogleLogoIcon className="h-8 w-8" />
581
+ </div>
582
+ <h4 className="mb-2 font-medium text-white">Connect Google Workspace</h4>
583
+ <p className="mb-4 text-sm text-white/60">
584
+ Sync your Google Calendar, Drive, and Gmail
585
+ </p>
586
+ <button className="bg-blue-500 hover:bg-blue-600 px-4 py-2 rounded-lg text-sm text-white">
587
+ Connect Now
588
+ </button>
589
+ </div>`}
590
+ </pre>
591
+ </div>
592
+ </div>
593
+ </div>
594
+ </div>
595
+ </div>
596
+
597
+ {/* Accessibility */}
598
+ <div className="!space-y-8">
599
+ <h2 className="text-center text-3xl font-bold !text-white">
600
+ Accessibility Features
601
+ </h2>
602
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
603
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
604
+ <h3 className="text-lg font-semibold !text-green-300">
605
+ ✅ Built-in Features
606
+ </h3>
607
+ <ul className="!space-y-2 text-sm !text-white/70">
608
+ <li className="!text-white/70">
609
+ Uses Radix UI AccessibleIcon wrapper
610
+ </li>
611
+ <li className="!text-white/70">
612
+ Provides screen reader label "Google logo"
613
+ </li>
614
+ <li className="!text-white/70">
615
+ Supports keyboard navigation when interactive
616
+ </li>
617
+ <li className="!text-white/70">
618
+ Maintains proper color contrast ratios
619
+ </li>
620
+ <li className="!text-white/70">
621
+ Scales with user's font size preferences
622
+ </li>
623
+ </ul>
624
+ </div>
625
+
626
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
627
+ <h3 className="text-lg font-semibold !text-red-300">
628
+ 💡 Best Practices
629
+ </h3>
630
+ <ul className="!space-y-2 text-sm text-white/70">
631
+ <li className="!text-white/70">
632
+ Always pair with descriptive text for actions
633
+ </li>
634
+ <li className="!text-white/70">
635
+ Use white backgrounds for optimal contrast
636
+ </li>
637
+ <li className="!text-white/70">
638
+ Ensure sufficient spacing around the logo
639
+ </li>
640
+ <li className="!text-white/70">
641
+ Add focus states for interactive elements
642
+ </li>
643
+ <li className="!text-white/70">
644
+ Follow Google's brand guidelines for usage
645
+ </li>
646
+ </ul>
647
+ </div>
648
+ </div>
649
+
650
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
651
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
652
+ Custom Accessibility Label
653
+ </h3>
654
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
655
+ <div className="rounded-lg bg-black/40 p-4">
656
+ <pre className="overflow-x-auto text-sm !text-blue-300">
657
+ {`// Custom implementation with specific label
658
+ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
659
+
660
+ function CustomGoogleIcon({ label = "Google", ...props }) {
661
+ return (
662
+ <AccessibleIcon label={label}>
663
+ <GoogleLogoIcon {...props} />
664
+ </AccessibleIcon>
665
+ )
666
+ }
667
+
668
+ // Usage with specific context
669
+ <CustomGoogleIcon
670
+ label="Sign in with Google"
671
+ className="h-5 w-5"
672
+ />`}
673
+ </pre>
674
+ </div>
675
+ <div className="!space-y-4">
676
+ <p className="text-sm !text-white/70">
677
+ For specific contexts, you can wrap the GoogleLogoIcon
678
+ with a custom AccessibleIcon component that provides
679
+ more descriptive labels for authentication or service
680
+ integration.
681
+ </p>
682
+ <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
683
+ <div className="flex items-center gap-2 text-sm text-red-200">
684
+ <GoogleLogoIcon className="h-4 w-4" />
685
+ <span>
686
+ This approach gives screen readers more context
687
+ </span>
688
+ </div>
689
+ </div>
690
+ </div>
691
+ </div>
692
+ </div>
693
+ </div>
694
+
695
+ {/* Related Icons */}
696
+ <div className="!space-y-8">
697
+ <h2 className="text-center text-3xl font-bold !text-white">
698
+ Related Icons
699
+ </h2>
700
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
701
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
702
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
703
+ <span className="text-2xl">🔐</span>
704
+ </div>
705
+ <div>
706
+ <div className="font-medium text-white">LoginIcon</div>
707
+ <div className="text-xs text-white/60">
708
+ Authentication
709
+ </div>
710
+ </div>
711
+ </div>
712
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
713
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
714
+ <span className="text-2xl">👤</span>
715
+ </div>
716
+ <div>
717
+ <div className="font-medium text-white">UserIcon</div>
718
+ <div className="text-xs text-white/60">User profile</div>
719
+ </div>
720
+ </div>
721
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
722
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
723
+ <span className="text-2xl">☁️</span>
724
+ </div>
725
+ <div>
726
+ <div className="font-medium text-white">CloudIcon</div>
727
+ <div className="text-xs text-white/60">
728
+ Cloud services
729
+ </div>
730
+ </div>
731
+ </div>
732
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
733
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
734
+ <span className="text-2xl">🔗</span>
735
+ </div>
736
+ <div>
737
+ <div className="font-medium text-white">LinkIcon</div>
738
+ <div className="text-xs text-white/60">Integration</div>
739
+ </div>
740
+ </div>
741
+ </div>
742
+ </div>
743
+ </div>
744
+
745
+ {/* Footer */}
746
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
747
+ <div className="!mx-auto max-w-7xl px-6 py-8">
748
+ <div className="!space-y-4 text-center">
749
+ <p className="!text-white/60">
750
+ GoogleLogoIcon is part of the Aural UI icon library, built
751
+ with accessibility and brand consistency in mind.
752
+ </p>
753
+ <p className="text-sm !text-white/40">
754
+ All icons use Radix UI's AccessibleIcon for screen reader
755
+ compatibility and follow WCAG guidelines.
756
+ </p>
757
+ </div>
758
+ </div>
759
+ </div>
760
+ </div>
761
+ </>
762
+ ),
763
+ },
764
+ },
765
+ tags: ["autodocs"],
766
+ argTypes: {
767
+ width: {
768
+ control: { type: "range", min: 8, max: 96, step: 2 },
769
+ description: "Width of the icon in pixels",
770
+ },
771
+ height: {
772
+ control: { type: "range", min: 8, max: 96, step: 2 },
773
+ description: "Height of the icon in pixels",
774
+ },
775
+ className: {
776
+ control: "text",
777
+ description: "CSS classes for styling",
778
+ },
779
+ },
780
+ }
781
+
782
+ export default meta
783
+ type Story = StoryObj<typeof GoogleLogoIcon>
784
+
785
+ // Story parameters for consistent dark theme
786
+ const storyParameters = {
787
+ backgrounds: {
788
+ default: "dark",
789
+ values: [
790
+ { name: "dark", value: "#0a0a0a" },
791
+ { name: "darker", value: "#000000" },
792
+ ],
793
+ },
794
+ }
795
+
796
+ export const Default: Story = {
797
+ args: {
798
+ width: 21,
799
+ height: 20,
800
+ className: "",
801
+ },
802
+ parameters: storyParameters,
803
+ render: (args) => (
804
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
805
+ <div className="rounded-lg bg-white p-4">
806
+ <GoogleLogoIcon {...args} />
807
+ </div>
808
+ </div>
809
+ ),
810
+ }
811
+
812
+ export const SizeVariations: Story = {
813
+ parameters: {
814
+ ...storyParameters,
815
+ docs: {
816
+ description: {
817
+ story:
818
+ "GoogleLogoIcon in different sizes, from small UI elements to large brand displays.",
819
+ },
820
+ },
821
+ },
822
+ render: () => (
823
+ <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">
824
+ <div className="text-center">
825
+ <div className="!mx-auto mb-2 rounded bg-white p-2">
826
+ <GoogleLogoIcon className="h-3 w-3" />
827
+ </div>
828
+ <span className="text-xs text-white/60">12px</span>
829
+ </div>
830
+ <div className="text-center">
831
+ <div className="!mx-auto mb-2 rounded bg-white p-2">
832
+ <GoogleLogoIcon className="h-4 w-4" />
833
+ </div>
834
+ <span className="text-xs text-white/60">16px</span>
835
+ </div>
836
+ <div className="text-center">
837
+ <div className="!mx-auto mb-2 rounded bg-white p-2">
838
+ <GoogleLogoIcon className="h-5 w-5" />
839
+ </div>
840
+ <span className="text-xs text-white/60">20px</span>
841
+ </div>
842
+ <div className="text-center">
843
+ <div className="!mx-auto mb-2 rounded bg-white p-2">
844
+ <GoogleLogoIcon className="h-6 w-6" />
845
+ </div>
846
+ <span className="text-xs text-white/60">24px</span>
847
+ </div>
848
+ <div className="text-center">
849
+ <div className="!mx-auto mb-2 rounded bg-white p-2">
850
+ <GoogleLogoIcon className="h-8 w-8" />
851
+ </div>
852
+ <span className="text-xs text-white/60">32px</span>
853
+ </div>
854
+ <div className="text-center">
855
+ <div className="!mx-auto mb-2 rounded bg-white p-3">
856
+ <GoogleLogoIcon className="h-12 w-12" />
857
+ </div>
858
+ <span className="text-xs text-white/60">48px</span>
859
+ </div>
860
+ </div>
861
+ ),
862
+ }
863
+
864
+ export const ColorVariations: Story = {
865
+ parameters: {
866
+ ...storyParameters,
867
+ docs: {
868
+ description: {
869
+ story:
870
+ "GoogleLogoIcon shown on different backgrounds to demonstrate optimal usage contexts.",
871
+ },
872
+ },
873
+ },
874
+ render: () => (
875
+ <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">
876
+ <div className="text-center">
877
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-white">
878
+ <GoogleLogoIcon className="h-8 w-8" />
879
+ </div>
880
+ <div className="text-sm font-medium text-white">White Background</div>
881
+ <div className="text-xs text-white/60">Recommended</div>
882
+ </div>
883
+ <div className="text-center">
884
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-100">
885
+ <GoogleLogoIcon className="h-8 w-8" />
886
+ </div>
887
+ <div className="text-sm font-medium text-white">Light Background</div>
888
+ <div className="text-xs text-gray-400">Good contrast</div>
889
+ </div>
890
+ <div className="text-center">
891
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-800">
892
+ <GoogleLogoIcon className="h-8 w-8" />
893
+ </div>
894
+ <div className="text-sm font-medium text-white">Dark Background</div>
895
+ <div className="text-xs text-gray-400">Acceptable</div>
896
+ </div>
897
+ <div className="text-center">
898
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-transparent">
899
+ <GoogleLogoIcon className="h-8 w-8" />
900
+ </div>
901
+ <div className="text-sm font-medium text-white">Transparent</div>
902
+ <div className="text-xs text-white/60">Original colors</div>
903
+ </div>
904
+ </div>
905
+ ),
906
+ }
907
+
908
+ export const UsageExamples: Story = {
909
+ parameters: {
910
+ ...storyParameters,
911
+ docs: {
912
+ description: {
913
+ story:
914
+ "Real-world usage examples showing GoogleLogoIcon in different authentication and integration contexts.",
915
+ },
916
+ },
917
+ },
918
+ render: () => (
919
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
920
+ {/* Authentication Buttons */}
921
+ <div className="!space-y-2">
922
+ <h3 className="text-sm font-medium text-white">Authentication</h3>
923
+ <div className="flex gap-4">
924
+ <button className="flex items-center gap-3 rounded-lg border border-gray-300 bg-white px-6 py-3 text-gray-700 transition-colors hover:bg-gray-50">
925
+ <GoogleLogoIcon className="h-5 w-5" />
926
+ Sign in with Google
927
+ </button>
928
+ <button className="flex items-center gap-3 rounded-lg border border-white/20 bg-white/5 px-4 py-2 text-white transition-colors hover:bg-white/10">
929
+ <GoogleLogoIcon className="h-4 w-4" />
930
+ Continue
931
+ </button>
932
+ </div>
933
+ </div>
934
+
935
+ {/* Service Integration */}
936
+ <div className="!space-y-2">
937
+ <h3 className="text-sm font-medium text-white">Service Integration</h3>
938
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
939
+ <div className="flex items-center justify-between">
940
+ <div className="flex items-center gap-4">
941
+ <div className="flex h-10 w-10 items-center justify-center rounded-lg bg-white">
942
+ <GoogleLogoIcon className="h-6 w-6" />
943
+ </div>
944
+ <div>
945
+ <div className="font-medium text-white">Google Drive</div>
946
+ <div className="text-sm text-white/60">
947
+ Connected to your account
948
+ </div>
949
+ </div>
950
+ </div>
951
+ <div className="h-2 w-2 rounded-full bg-green-400"></div>
952
+ </div>
953
+ </div>
954
+ </div>
955
+
956
+ {/* Integration Card */}
957
+ <div className="!space-y-2">
958
+ <h3 className="text-sm font-medium text-white">Integration Card</h3>
959
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
960
+ <div className="!space-y-4 text-center">
961
+ <div className="!mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-white">
962
+ <GoogleLogoIcon className="h-8 w-8" />
963
+ </div>
964
+ <div className="!space-y-2">
965
+ <h4 className="font-medium !text-white">
966
+ Connect Google Workspace
967
+ </h4>
968
+ <p className="text-sm !text-white/70">
969
+ Sync your Google Calendar, Drive, and Gmail
970
+ </p>
971
+ </div>
972
+ <button className="rounded-lg bg-blue-500 px-4 py-2 text-sm text-white transition-colors hover:bg-blue-600">
973
+ Connect Now
974
+ </button>
975
+ </div>
976
+ </div>
977
+ </div>
978
+ </div>
979
+ ),
980
+ }
981
+
982
+ export const Playground: Story = {
983
+ parameters: {
984
+ ...storyParameters,
985
+ docs: {
986
+ description: {
987
+ story:
988
+ "Interactive playground to experiment with different GoogleLogoIcon configurations.",
989
+ },
990
+ },
991
+ },
992
+ args: {
993
+ width: 32,
994
+ height: 32,
995
+ className: "",
996
+ },
997
+ render: (args) => (
998
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
999
+ <div className="rounded-lg border border-white/10 bg-white p-8">
1000
+ <GoogleLogoIcon {...args} />
1001
+ </div>
1002
+ </div>
1003
+ ),
1004
+ }