aural-ui 2.0.4 → 2.0.5

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.
@@ -0,0 +1,1185 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { GitForkIcon } from "."
5
+
6
+ const meta: Meta<typeof GitForkIcon> = {
7
+ title: "Icons/GitForkIcon",
8
+ component: GitForkIcon,
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
+ @keyframes search-pulse {
81
+ 0%, 100% { transform: scale(1); opacity: 1; }
82
+ 50% { transform: scale(1.05); opacity: 0.8; }
83
+ }
84
+ .animate-search-pulse {
85
+ animation: search-pulse 2s ease-in-out infinite;
86
+ }
87
+ @keyframes document-slide {
88
+ 0%, 100% { transform: translateX(0) rotate(0deg); }
89
+ 50% { transform: translateX(-2px) rotate(-1deg); }
90
+ }
91
+ .animate-document-slide {
92
+ animation: document-slide 3s ease-in-out infinite;
93
+ }
94
+ `}
95
+ </style>
96
+
97
+ <div className="min-h-screen bg-gradient-to-br from-gray-900 via-indigo-900/20 to-gray-900">
98
+ {/* Header */}
99
+ <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
100
+ <div className="absolute inset-0 bg-gradient-to-r from-indigo-500/10 via-transparent to-cyan-500/10" />
101
+ <div className="relative !mx-auto max-w-7xl px-6 py-16">
102
+ <div className="!space-y-6 text-center">
103
+ <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-indigo-500/30 bg-gradient-to-br from-indigo-500/20 to-cyan-500/20">
104
+ <GitForkIcon className="h-12 w-12 text-indigo-400" />
105
+ </div>
106
+ <h1 className="!text-fm-primary text-5xl font-bold">
107
+ GitForkIcon
108
+ </h1>
109
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
110
+ A Git fork icon representing codebase duplication,
111
+ contribution workflows, and open-source collaboration.
112
+ Perfect for visualizing repository forks, pull request
113
+ origins, or developer contributions across projects.
114
+ Designed with accessibility in mind using Radix UI's
115
+ AccessibleIcon wrapper.
116
+ </p>
117
+
118
+ {/* Stats */}
119
+ <div className="flex items-center justify-center gap-8 pt-8">
120
+ <div className="text-center">
121
+ <div className="text-3xl font-bold text-rose-300">
122
+ Fork
123
+ </div>
124
+ <div className="text-sm text-white/60">
125
+ Copy for contribution
126
+ </div>
127
+ </div>
128
+ <div className="h-8 w-px bg-white/20" />
129
+ <div className="text-center">
130
+ <div className="text-3xl font-bold text-amber-300">
131
+ Modify
132
+ </div>
133
+ <div className="text-sm text-white/60">
134
+ Make your changes
135
+ </div>
136
+ </div>
137
+ <div className="h-8 w-px bg-white/20" />
138
+ <div className="text-center">
139
+ <div className="text-3xl font-bold text-lime-300">
140
+ Pull Request
141
+ </div>
142
+ <div className="text-sm text-white/60">
143
+ Propose your code
144
+ </div>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </div>
150
+
151
+ {/* Content */}
152
+ <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
153
+ {/* Quick Usage */}
154
+ <div className="!space-y-8">
155
+ <h2 className="text-center text-3xl font-bold !text-white">
156
+ Quick Start
157
+ </h2>
158
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
159
+ {/* Basic Usage */}
160
+ <div className="!space-y-4">
161
+ <h3 className="text-xl font-semibold !text-indigo-300">
162
+ Basic Usage
163
+ </h3>
164
+ <div className="rounded-lg bg-black/40 p-4">
165
+ <pre className="overflow-x-auto text-sm !text-green-300">
166
+ {`import { GitForkIcon } from "@icons/git-fork-icon"
167
+
168
+ function ForkButton() {
169
+ return (
170
+ <button
171
+ aria-label="Git fork icon"
172
+ className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/10 px-4 py-2 text-indigo-300 hover:bg-indigo-500/20 hover:cursor-pointer"
173
+ >
174
+ <GitForkIcon className="h-4 w-4" />
175
+ Forks
176
+ </button>
177
+ )
178
+ }`}
179
+ </pre>
180
+ </div>
181
+ </div>
182
+
183
+ {/* Live Preview */}
184
+ <div className="!space-y-4">
185
+ <h3 className="text-xl font-semibold !text-indigo-300">
186
+ Live Preview
187
+ </h3>
188
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
189
+ <button className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/10 px-4 py-2 text-indigo-300 hover:cursor-pointer hover:bg-indigo-500/20">
190
+ <GitForkIcon className="h-4 w-4" />
191
+ Forks
192
+ </button>
193
+ </div>
194
+ </div>
195
+ </div>
196
+ </div>
197
+
198
+ {/* Props Documentation */}
199
+ <div className="!space-y-8">
200
+ <h2 className="text-center text-3xl font-bold !text-white">
201
+ Props & Configuration
202
+ </h2>
203
+
204
+ <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
205
+ <div className="bg-white/5 p-4">
206
+ <h3 className="text-xl font-semibold !text-white">Props</h3>
207
+ </div>
208
+ <table className="!my-0 w-full">
209
+ <thead className="bg-white/5">
210
+ <tr className="border-b border-white/10">
211
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
212
+ Prop
213
+ </th>
214
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
215
+ Type
216
+ </th>
217
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
218
+ Default
219
+ </th>
220
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
221
+ Description
222
+ </th>
223
+ </tr>
224
+ </thead>
225
+ <tbody>
226
+ <tr className="border-b border-white/5">
227
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
228
+ width
229
+ </td>
230
+ <td className="px-6 py-4 text-sm !text-white/70">
231
+ number | string
232
+ </td>
233
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
234
+ <td className="px-6 py-4 text-sm !text-white/70">
235
+ Width of the icon in pixels
236
+ </td>
237
+ </tr>
238
+ <tr className="border-b border-white/5 !bg-black/10">
239
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
240
+ height
241
+ </td>
242
+ <td className="px-6 py-4 text-sm !text-white/70">
243
+ number | string
244
+ </td>
245
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
246
+ <td className="px-6 py-4 text-sm !text-white/70">
247
+ Height of the icon in pixels
248
+ </td>
249
+ </tr>
250
+ <tr className="border-b border-white/5">
251
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
252
+ fill
253
+ </td>
254
+ <td className="px-6 py-4 text-sm !text-white/70">
255
+ string
256
+ </td>
257
+ <td className="px-6 py-4 text-sm !text-white/50">
258
+ currentColor
259
+ </td>
260
+ <td className="px-6 py-4 text-sm !text-white/70">
261
+ Fill color of the icon
262
+ </td>
263
+ </tr>
264
+ <tr className="border-b border-white/5 !bg-black/10">
265
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
266
+ className
267
+ </td>
268
+ <td className="px-6 py-4 text-sm !text-white/70">
269
+ string
270
+ </td>
271
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
272
+ <td className="px-6 py-4 text-sm !text-white/70">
273
+ CSS classes for styling (use for size, color, etc.)
274
+ </td>
275
+ </tr>
276
+ <tr className="!bg-black/10">
277
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
278
+ ...svgProps
279
+ </td>
280
+ <td className="px-6 py-4 text-sm !text-white/70">
281
+ SVGProps&lt;SVGSVGElement&gt;
282
+ </td>
283
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
284
+ <td className="px-6 py-4 text-sm !text-white/70">
285
+ All standard SVG element props supported by React
286
+ </td>
287
+ </tr>
288
+ </tbody>
289
+ </table>
290
+ </div>
291
+ </div>
292
+
293
+ {/* Size Variations */}
294
+ <div className="!space-y-8">
295
+ <h2 className="text-center text-3xl font-bold !text-white">
296
+ Size Variations
297
+ </h2>
298
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
299
+ <div className="!space-y-6">
300
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
301
+ <div className="!space-y-4">
302
+ <h3 className="text-lg font-semibold !text-indigo-300">
303
+ Standard Sizes
304
+ </h3>
305
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
306
+ <div className="text-center">
307
+ <GitForkIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
308
+ <span className="text-xs text-white/60">12px</span>
309
+ </div>
310
+ <div className="text-center">
311
+ <GitForkIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
312
+ <span className="text-xs text-white/60">16px</span>
313
+ </div>
314
+ <div className="text-center">
315
+ <GitForkIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
316
+ <span className="text-xs text-white/60">20px</span>
317
+ </div>
318
+ <div className="text-center">
319
+ <GitForkIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
320
+ <span className="text-xs text-white/60">24px</span>
321
+ </div>
322
+ <div className="text-center">
323
+ <GitForkIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
324
+ <span className="text-xs text-white/60">32px</span>
325
+ </div>
326
+ <div className="text-center">
327
+ <GitForkIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
328
+ <span className="text-xs text-white/60">48px</span>
329
+ </div>
330
+ </div>
331
+ </div>
332
+
333
+ <div className="!space-y-4">
334
+ <h3 className="text-lg font-semibold !text-indigo-300">
335
+ Code Example
336
+ </h3>
337
+ <div className="rounded-lg bg-black/40 p-4">
338
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
339
+ {`// Small (16px)
340
+ <GitForkIcon className="h-4 w-4 " />
341
+
342
+ // Medium (24px)
343
+ <GitForkIcon className="h-6 w-6 " />
344
+
345
+ // Large (32px)
346
+ <GitForkIcon className="h-8 w-8 " />
347
+
348
+ // Custom size with props
349
+ <GitForkIcon width={40} height={40} />`}
350
+ </pre>
351
+ </div>
352
+ </div>
353
+ </div>
354
+ </div>
355
+ </div>
356
+ </div>
357
+
358
+ {/* Color Variations */}
359
+ <div className="!space-y-8">
360
+ <h2 className="text-center text-3xl font-bold !text-white">
361
+ Color Variations
362
+ </h2>
363
+
364
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
365
+ {/* Semantic Colors */}
366
+ <div className="!space-y-4">
367
+ <h3 className="text-lg font-semibold !text-indigo-300">
368
+ Semantic Colors
369
+ </h3>
370
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
371
+ <div className="flex items-center gap-4">
372
+ <GitForkIcon className="h-6 w-6 text-indigo-400" />
373
+ <div>
374
+ <div className="text-sm font-medium text-white">
375
+ Primary
376
+ </div>
377
+ <div className="text-xs text-white/60">
378
+ text-indigo-400
379
+ </div>
380
+ </div>
381
+ </div>
382
+ <div className="flex items-center gap-4">
383
+ <GitForkIcon className="h-6 w-6 text-cyan-400" />
384
+ <div>
385
+ <div className="text-sm font-medium text-white">
386
+ Active
387
+ </div>
388
+ <div className="text-xs text-white/60">
389
+ text-cyan-400
390
+ </div>
391
+ </div>
392
+ </div>
393
+ <div className="flex items-center gap-4">
394
+ <GitForkIcon className="h-6 w-6 text-gray-400" />
395
+ <div>
396
+ <div className="text-sm font-medium text-white">
397
+ Disabled
398
+ </div>
399
+ <div className="text-xs text-white/60">
400
+ text-gray-400
401
+ </div>
402
+ </div>
403
+ </div>
404
+ <div className="flex items-center gap-4">
405
+ <GitForkIcon className="h-6 w-6 text-blue-400" />
406
+ <div>
407
+ <div className="text-sm font-medium text-white">
408
+ Info
409
+ </div>
410
+ <div className="text-xs text-white/60">
411
+ text-blue-400
412
+ </div>
413
+ </div>
414
+ </div>
415
+ <div className="flex items-center gap-4">
416
+ <GitForkIcon className="h-6 w-6 text-green-400" />
417
+ <div>
418
+ <div className="text-sm font-medium text-white">
419
+ Success
420
+ </div>
421
+ <div className="text-xs text-white/60">
422
+ text-green-400
423
+ </div>
424
+ </div>
425
+ </div>
426
+ <div className="flex items-center gap-4">
427
+ <GitForkIcon className="h-6 w-6 text-yellow-400" />
428
+ <div>
429
+ <div className="text-sm font-medium text-white">
430
+ Warning
431
+ </div>
432
+ <div className="text-xs text-white/60">
433
+ text-yellow-400
434
+ </div>
435
+ </div>
436
+ </div>
437
+ <div className="flex items-center gap-4">
438
+ <GitForkIcon className="h-6 w-6 text-red-400" />
439
+ <div>
440
+ <div className="text-sm font-medium text-white">
441
+ Error
442
+ </div>
443
+ <div className="text-xs text-white/60">
444
+ text-red-400
445
+ </div>
446
+ </div>
447
+ </div>
448
+ </div>
449
+ </div>
450
+
451
+ {/* Custom Colors */}
452
+ <div className="!space-y-4">
453
+ <h3 className="text-lg font-semibold !text-indigo-300">
454
+ Custom Colors
455
+ </h3>
456
+ <div className="rounded-lg bg-black/40 p-4">
457
+ <pre className="overflow-x-auto text-sm !text-green-300">
458
+ {`// Using Tailwind classes
459
+ <GitForkIcon className="h-6 w-6 text-indigo-400" />
460
+ <GitForkIcon className="h-6 w-6 text-cyan-500" />
461
+
462
+ // Using CSS custom properties
463
+ <GitForkIcon
464
+ className="h-6 w-6"
465
+ style={{ color: 'var(--color-primary)' }}
466
+ />
467
+
468
+ // Direct stroke prop
469
+ <GitForkIcon
470
+ width={24}
471
+ height={24}
472
+ stroke="#3b82f6"
473
+ />`}
474
+ </pre>
475
+ </div>
476
+ </div>
477
+ </div>
478
+ </div>
479
+
480
+ {/* Usage Examples */}
481
+ <div className="!space-y-8">
482
+ <h2 className="text-center text-3xl font-bold !text-white">
483
+ Usage Examples
484
+ </h2>
485
+
486
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
487
+ {/* Forking a Repository */}
488
+ <div className="!space-y-4">
489
+ <h3 className="text-lg font-semibold !text-indigo-300">
490
+ Fork Repository
491
+ </h3>
492
+ <button className="flex cursor-pointer items-center gap-2 rounded-lg border border-indigo-500/30 bg-indigo-500/10 px-4 py-2 text-indigo-200 transition-colors hover:bg-indigo-500/20">
493
+ <GitForkIcon className="h-4 w-4" />
494
+ Fork Repository
495
+ </button>
496
+ <div className="rounded-lg bg-black/40 p-4">
497
+ <pre className="overflow-x-auto text-sm !text-green-300">
498
+ {`<button className="flex items-center gap-2 bg-indigo-500/10 border border-indigo-500/30 px-4 py-2 rounded-lg cursor-pointer">
499
+ <GitForkIcon className="h-4 w-4" />
500
+ Fork Repository
501
+ </button>`}
502
+ </pre>
503
+ </div>
504
+ </div>
505
+
506
+ {/* Viewing Fork Information */}
507
+ <div className="!space-y-4">
508
+ <h3 className="text-lg font-semibold !text-indigo-300">
509
+ Forked Repo Info
510
+ </h3>
511
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
512
+ <div className="flex items-center gap-3">
513
+ <GitForkIcon className="h-5 w-5 text-indigo-400" />
514
+ <div className="flex-1">
515
+ <div className="text-sm font-medium text-white">
516
+ Forked from:{" "}
517
+ <a
518
+ href="https://github.com/open-source/base-project"
519
+ className="cursor-pointer text-indigo-300"
520
+ >
521
+ open-source/base-project
522
+ </a>
523
+ </div>
524
+ <div className="text-xs text-white/60">
525
+ Last synced 3 days ago
526
+ </div>
527
+ </div>
528
+ </div>
529
+ </div>
530
+ <div className="rounded-lg bg-black/40 p-4">
531
+ <pre className="overflow-x-auto text-sm !text-green-300">
532
+ {`<div className="flex items-center gap-3 p-4 border border-white/10 bg-white/5">
533
+ <GitForkIcon className="h-5 w-5 text-indigo-400" />
534
+ <div className="flex-1">
535
+ <div className="text-sm font-medium text-white">
536
+ Forked from: <a href="https://github.com/open-source/base-project" className="text-indigo-300 cursor-pointer">
537
+ open-source/base-project
538
+ </a>
539
+ </div>
540
+ <div className="text-xs text-white/60">Last synced 3 days ago</div>
541
+ </div>
542
+ </div>`}
543
+ </pre>
544
+ </div>
545
+ </div>
546
+
547
+ {/* Indicating Unforked Repositories */}
548
+ <div className="!space-y-4">
549
+ <h3 className="text-lg font-semibold !text-indigo-300">
550
+ No Forks Yet
551
+ </h3>
552
+ <div className="flex flex-col items-center justify-center rounded-lg border border-white/10 bg-white/5 p-8">
553
+ <GitForkIcon className="mb-4 h-12 w-12 text-white/30" />
554
+ <h4 className="mb-2 text-lg font-medium !text-white/80">
555
+ No forks found
556
+ </h4>
557
+ <p className="text-center text-sm !text-white/50">
558
+ Fork this project to start customizing and contributing.
559
+ </p>
560
+ <button className="mt-4 flex cursor-pointer items-center gap-2 rounded-lg border border-indigo-500/30 bg-indigo-500/20 px-4 py-2 text-sm text-indigo-200 transition-colors hover:bg-indigo-500/30">
561
+ <GitForkIcon className="h-4 w-4" />
562
+ Fork Project
563
+ </button>
564
+ </div>
565
+ <div className="rounded-lg bg-black/40 p-4">
566
+ <pre className="overflow-x-auto text-sm !text-green-300">
567
+ {`<div className="flex flex-col items-center p-8 border border-white/10 bg-white/5">
568
+ <GitForkIcon className="h-12 w-12 text-white/30 mb-4" />
569
+ <h4 className="text-lg font-medium text-white/80 mb-2">
570
+ No forks found
571
+ </h4>
572
+ <p className="text-sm text-white/50 text-center">
573
+ Fork this project to start customizing and contributing.
574
+ </p>
575
+ <button className="mt-4 flex items-center gap-2 text-sm cursor-pointer">
576
+ <GitForkIcon className="h-4 w-4" />
577
+ Fork Project
578
+ </button>
579
+ </div>`}
580
+ </pre>
581
+ </div>
582
+ </div>
583
+
584
+ {/* Pull Request from Fork */}
585
+ <div className="!space-y-4">
586
+ <h3 className="text-lg font-semibold !text-indigo-300">
587
+ Pull Request Origin
588
+ </h3>
589
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
590
+ <div className="flex items-center gap-3">
591
+ <GitForkIcon className="h-5 w-5 text-indigo-400" />
592
+ <div className="flex-1">
593
+ <div className="text-sm font-medium text-white">
594
+ PR from fork:{" "}
595
+ <a
596
+ href="https://github.com/user123/feature-dark-mode"
597
+ className="cursor-pointer text-indigo-300"
598
+ >
599
+ user123/feature-dark-mode
600
+ </a>
601
+ </div>
602
+ <div className="text-xs text-white/60">
603
+ Changes from forked repository ready to merge
604
+ </div>
605
+ </div>
606
+ <button className="cursor-pointer rounded-lg border border-green-500/30 bg-green-500/10 px-3 py-1 text-xs text-green-200 hover:bg-green-500/20">
607
+ Review
608
+ </button>
609
+ </div>
610
+ </div>
611
+ <div className="rounded-lg bg-black/40 p-4">
612
+ <pre className="overflow-x-auto text-sm !text-green-300">
613
+ {`<div className="flex items-center gap-3 p-4 border border-white/10 bg-white/5">
614
+ <GitForkIcon className="h-5 w-5 text-indigo-400" />
615
+ <div className="flex-1">
616
+ <div className="text-sm font-medium text-white">
617
+ PR from fork: <a href="https://github.com/user123/feature-dark-mode" className="text-indigo-300 cursor-pointer">
618
+ user123/feature-dark-mode
619
+ </a>
620
+ </div>
621
+ <div className="text-xs text-white/60">
622
+ Changes from forked repository ready to merge
623
+ </div>
624
+ </div>
625
+ <button className="px-3 py-1 text-xs bg-green-500/10 border border-green-500/30 cursor-pointer">
626
+ Review
627
+ </button>
628
+ </div>`}
629
+ </pre>
630
+ </div>
631
+ </div>
632
+ </div>
633
+ </div>
634
+
635
+ {/* Interactive States */}
636
+ <div className="!space-y-8">
637
+ <h2 className="text-center text-3xl font-bold !text-white">
638
+ Interactive States & Animations
639
+ </h2>
640
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
641
+ <div className="!space-y-4">
642
+ <h3 className="text-lg font-semibold !text-indigo-300">
643
+ Hover & Animation Effects
644
+ </h3>
645
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
646
+ <div className="flex items-center gap-4">
647
+ <GitForkIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400" />
648
+ <div>
649
+ <div className="text-sm font-medium text-white">
650
+ Color Change
651
+ </div>
652
+ <div className="text-xs text-white/60">
653
+ Hover to see effect
654
+ </div>
655
+ </div>
656
+ </div>
657
+ <div className="flex items-center gap-4">
658
+ <GitForkIcon className="h-6 w-6 text-white transition-transform hover:scale-110" />
659
+ <div>
660
+ <div className="text-sm font-medium text-white">
661
+ Scale Up
662
+ </div>
663
+ <div className="text-xs text-white/60">
664
+ Scale on hover
665
+ </div>
666
+ </div>
667
+ </div>
668
+ <div className="flex items-center gap-4">
669
+ <GitForkIcon className="animate-search-pulse h-6 w-6 text-indigo-400" />
670
+ <div>
671
+ <div className="text-sm font-medium text-white">
672
+ Search Pulse
673
+ </div>
674
+ <div className="text-xs text-white/60">
675
+ Continuous animation
676
+ </div>
677
+ </div>
678
+ </div>
679
+ <div className="flex items-center gap-4">
680
+ <GitForkIcon className="animate-document-slide h-6 w-6 text-cyan-400" />
681
+ <div>
682
+ <div className="text-sm font-medium text-white">
683
+ Document Slide
684
+ </div>
685
+ <div className="text-xs text-white/60">
686
+ Subtle movement
687
+ </div>
688
+ </div>
689
+ </div>
690
+ </div>
691
+ </div>
692
+
693
+ <div className="!space-y-4">
694
+ <h3 className="text-lg font-semibold !text-indigo-300">
695
+ State Examples
696
+ </h3>
697
+ <div className="rounded-lg bg-black/40 p-4">
698
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
699
+ {`// Color change on hover
700
+ <GitForkIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400 " />
701
+
702
+ // Scale up on hover
703
+ <GitForkIcon className="h-6 w-6 text-white transition-transform hover:scale-110 " />
704
+
705
+ // Loading/searching state
706
+ <GitForkIcon className="h-6 w-6 animate-pulse text-indigo-400 " />
707
+
708
+ // Active search state
709
+ <GitForkIcon className="h-6 w-6 text-cyan-400 animate-search-pulse " />
710
+
711
+ // Disabled state
712
+ <GitForkIcon className="h-6 w-6 text-gray-400 opacity-50 " />`}
713
+ </pre>
714
+ </div>
715
+ </div>
716
+ </div>
717
+ </div>
718
+
719
+ {/* Accessibility */}
720
+ <div className="!space-y-8">
721
+ <h2 className="text-center text-3xl font-bold !text-white">
722
+ Accessibility Features
723
+ </h2>
724
+
725
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
726
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
727
+ <h3 className="text-lg font-semibold !text-green-300">
728
+ ✅ Built-in Features
729
+ </h3>
730
+ <ul className="!space-y-2 text-sm !text-white/70">
731
+ <li className="!text-white/70">
732
+ Uses Radix UI AccessibleIcon wrapper
733
+ </li>
734
+ <li className="!text-white/70">
735
+ Provides screen reader label "Git fork icon"
736
+ </li>
737
+
738
+ <li className="!text-white/70">
739
+ Maintains proper color contrast ratios
740
+ </li>
741
+ <li className="!text-white/70">
742
+ Scales with user's font size preferences
743
+ </li>
744
+ </ul>
745
+ </div>
746
+
747
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
748
+ <h3 className="text-lg font-semibold !text-indigo-300">
749
+ 💡 Best Practices
750
+ </h3>
751
+ <ul className="!space-y-2 text-sm text-white/70">
752
+ <li className="!text-white/70">
753
+ Always provide descriptive labels for branch-related
754
+ actions
755
+ </li>
756
+ <li className="!text-white/70">
757
+ Use consistent placement in version control interfaces
758
+ </li>
759
+ <li className="!text-white/70">
760
+ Ensure sufficient click/touch target sizes
761
+ </li>
762
+ <li className="!text-white/70">
763
+ Add focus states for keyboard navigation
764
+ </li>
765
+ <li className="!text-white/70">
766
+ Consider motion sensitivity for branching animations
767
+ </li>
768
+ </ul>
769
+ </div>
770
+ </div>
771
+
772
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
773
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
774
+ Custom Accessibility Implementation
775
+ </h3>
776
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
777
+ {/* Code Example Block */}
778
+ <div className="rounded-lg bg-black/40 p-4">
779
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
780
+ {`// Fork button with ARIA label for accessibility
781
+ <button
782
+ aria-label="Fork this repository"
783
+ className="flex items-center gap-2 p-2"
784
+ >
785
+ <GitForkIcon className="h-4 w-4" aria-hidden="true" />
786
+ <span className="sr-only">Fork the repository</span>
787
+ </button>
788
+
789
+ // Descriptive Fork status for screen readers
790
+ <div className="flex items-center gap-3 p-4">
791
+ <GitForkIcon className="h-5 w-5 text-indigo-400" />
792
+ <div className="flex-1">
793
+ <div className="text-sm font-medium text-white">
794
+ Forked from:
795
+ <a href="https://github.com/open-source/base-project" className="text-indigo-300 cursor-pointer" aria-label="Visit the original base project">
796
+ open-source/base-project
797
+ </a>
798
+ </div>
799
+ <div className="text-xs text-white/60">Last synced 3 days ago</div>
800
+ </div>
801
+ </div>`}
802
+ </pre>
803
+ </div>
804
+
805
+ {/* Accessibility Note */}
806
+ <div className="!space-y-4">
807
+ <p className="text-sm !text-white/70">
808
+ When using <code>GitForkIcon</code> for forking actions
809
+ or displaying fork-related status, ensure ARIA labels
810
+ clearly explain what the action will perform. Use{" "}
811
+ <code>aria-hidden="true"</code> for decorative icons and
812
+ always include descriptive text for accessibility.
813
+ </p>
814
+ <div className="rounded-lg border border-indigo-500/20 bg-indigo-500/10 p-4">
815
+ <div className="flex items-center gap-2 text-sm text-indigo-200">
816
+ <GitForkIcon className="h-4 w-4" aria-hidden="true" />
817
+ <span>
818
+ Use <code>aria-label</code> for actionable buttons
819
+ and <code>aria-hidden="true"</code> for decorative
820
+ icons.
821
+ </span>
822
+ </div>
823
+ </div>
824
+ </div>
825
+ </div>
826
+ </div>
827
+ </div>
828
+
829
+ {/* Related Icons */}
830
+ <div className="!space-y-8">
831
+ <h2 className="text-center text-3xl font-bold !text-white">
832
+ Related Icons
833
+ </h2>
834
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
835
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
836
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
837
+ <span className="text-2xl">🔄</span>
838
+ </div>
839
+ <div>
840
+ <div className="font-medium text-white">LoadingIcon</div>
841
+ <div className="text-xs text-white/60">
842
+ Progress states
843
+ </div>
844
+ </div>
845
+ </div>
846
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
847
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
848
+ <span className="text-2xl">📄</span>
849
+ </div>
850
+ <div>
851
+ <div className="font-medium text-white">DocumentIcon</div>
852
+ <div className="text-xs text-white/60">Document view</div>
853
+ </div>
854
+ </div>
855
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
856
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
857
+ <span className="!text-2xl !text-white">⚠</span>
858
+ </div>
859
+ <div>
860
+ <div className="font-medium text-white">AlertIcon</div>
861
+ <div className="text-xs text-white/60">
862
+ Warning states
863
+ </div>
864
+ </div>
865
+ </div>
866
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
867
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
868
+ <span className="text-2xl">🔎</span>
869
+ </div>
870
+ <div>
871
+ <div className="font-medium text-white">FilterIcon</div>
872
+ <div className="text-xs text-white/60">
873
+ Content filtering
874
+ </div>
875
+ </div>
876
+ </div>
877
+ </div>
878
+ </div>
879
+ </div>
880
+
881
+ {/* Footer */}
882
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
883
+ <div className="!mx-auto max-w-7xl px-6 py-8">
884
+ <div className="!space-y-4 text-center">
885
+ <p className="!text-white/60">
886
+ FilterBarRowIcon is part of the Aural UI icon library, built
887
+ for document search, content discovery, and page navigation
888
+ functionality.
889
+ </p>
890
+ <p className="text-sm !text-white/40">
891
+ All icons use Radix UI's AccessibleIcon for screen reader
892
+ compatibility and follow WCAG guidelines for search
893
+ interfaces.
894
+ </p>
895
+ </div>
896
+ </div>
897
+ </div>
898
+ </div>
899
+ </>
900
+ ),
901
+ },
902
+ },
903
+ tags: ["autodocs"],
904
+ argTypes: {
905
+ width: {
906
+ control: { type: "range", min: 8, max: 96, step: 2 },
907
+ description: "Width of the icon in pixels",
908
+ },
909
+ height: {
910
+ control: { type: "range", min: 8, max: 96, step: 2 },
911
+ description: "Height of the icon in pixels",
912
+ },
913
+ fill: {
914
+ control: "color",
915
+ description: "Fill color of the icon",
916
+ },
917
+ className: {
918
+ control: "text",
919
+ description: "CSS classes for styling (use for overrides)",
920
+ },
921
+ },
922
+ }
923
+
924
+ export default meta
925
+ type Story = StoryObj<typeof GitForkIcon>
926
+
927
+ // Story parameters for consistent dark theme
928
+ const storyParameters = {
929
+ backgrounds: {
930
+ default: "dark",
931
+ values: [
932
+ { name: "dark", value: "#0a0a0a" },
933
+ { name: "darker", value: "#000000" },
934
+ ],
935
+ },
936
+ }
937
+
938
+ export const Default: Story = {
939
+ args: {
940
+ width: 24,
941
+ height: 24,
942
+ className: "text-indigo-400 ",
943
+ },
944
+ parameters: storyParameters,
945
+ render: (args) => (
946
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
947
+ <GitForkIcon {...args} />
948
+ </div>
949
+ ),
950
+ }
951
+
952
+ export const SizeVariations: Story = {
953
+ parameters: {
954
+ ...storyParameters,
955
+ docs: {
956
+ description: {
957
+ story:
958
+ "GitForkIcon in different sizes, from small search inputs to large interface elements.",
959
+ },
960
+ },
961
+ },
962
+ render: () => (
963
+ <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">
964
+ <div className="text-center">
965
+ <GitForkIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
966
+ <span className="text-xs text-white/60">12px</span>
967
+ </div>
968
+ <div className="text-center">
969
+ <GitForkIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
970
+ <span className="text-xs text-white/60">16px</span>
971
+ </div>
972
+ <div className="text-center">
973
+ <GitForkIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
974
+ <span className="text-xs text-white/60">20px</span>
975
+ </div>
976
+ <div className="text-center">
977
+ <GitForkIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
978
+ <span className="text-xs text-white/60">24px</span>
979
+ </div>
980
+ <div className="text-center">
981
+ <GitForkIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
982
+ <span className="text-xs text-white/60">32px</span>
983
+ </div>
984
+ <div className="text-center">
985
+ <GitForkIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
986
+ <span className="text-xs text-white/60">48px</span>
987
+ </div>
988
+ </div>
989
+ ),
990
+ }
991
+
992
+ export const ColorVariations: Story = {
993
+ parameters: {
994
+ ...storyParameters,
995
+ docs: {
996
+ description: {
997
+ story:
998
+ "GitForkIcon in different colors for various search states and contexts.",
999
+ },
1000
+ },
1001
+ },
1002
+ render: () => (
1003
+ <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">
1004
+ <div className="text-center">
1005
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
1006
+ <GitForkIcon className="h-8 w-8 text-indigo-400" />
1007
+ </div>
1008
+ <div className="text-sm font-medium text-white">Primary</div>
1009
+ <div className="text-xs text-indigo-400">text-indigo-400</div>
1010
+ </div>
1011
+ <div className="text-center">
1012
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-cyan-500/30 bg-cyan-500/20">
1013
+ <GitForkIcon className="h-8 w-8 text-cyan-400" />
1014
+ </div>
1015
+ <div className="text-sm font-medium text-white">Active</div>
1016
+ <div className="text-xs text-cyan-400">text-cyan-400</div>
1017
+ </div>
1018
+ <div className="text-center">
1019
+ <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">
1020
+ <GitForkIcon className="h-8 w-8 text-gray-400" />
1021
+ </div>
1022
+ <div className="text-sm font-medium text-white">Disabled</div>
1023
+ <div className="text-xs text-gray-400">text-gray-400</div>
1024
+ </div>
1025
+ <div className="text-center">
1026
+ <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">
1027
+ <GitForkIcon className="h-8 w-8 text-blue-400" />
1028
+ </div>
1029
+ <div className="text-sm font-medium text-white">Info</div>
1030
+ <div className="text-xs text-blue-400">text-blue-400</div>
1031
+ </div>
1032
+ </div>
1033
+ ),
1034
+ }
1035
+
1036
+ export const UsageExamples: Story = {
1037
+ parameters: {
1038
+ ...storyParameters,
1039
+ docs: {
1040
+ description: {
1041
+ story:
1042
+ "Real-world usage examples showing GitForkIcon used in version control interfaces for actions like creating branches, checking out branches, managing recent branches, and performing management actions such as renaming or deleting branches.",
1043
+ },
1044
+ },
1045
+ },
1046
+ render: () => (
1047
+ <div className="min-h-dvh space-y-8 rounded-lg bg-gradient-to-br from-gray-950 to-gray-900 p-8">
1048
+ {/* Toolbar */}
1049
+ <div className="space-y-4">
1050
+ <h3 className="text-sm font-medium text-white">Branch Controls</h3>
1051
+ <div className="flex gap-4">
1052
+ <button
1053
+ aria-label="Create a new branch"
1054
+ className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/15 px-4 py-2 text-blue-200 transition-all hover:cursor-pointer hover:bg-blue-500/25 focus:ring-2 focus:ring-blue-400 focus:outline-none"
1055
+ >
1056
+ <GitForkIcon className="h-4 w-4" aria-hidden="true" />
1057
+ <span className="sr-only">Create Branch</span>
1058
+ </button>
1059
+ <button
1060
+ aria-label="Checkout the selected branch"
1061
+ className="flex items-center gap-2 rounded-lg border border-indigo-500/30 bg-indigo-500/15 px-4 py-2 text-indigo-200 transition-all hover:cursor-pointer hover:bg-indigo-500/25 focus:ring-2 focus:ring-indigo-400 focus:outline-none"
1062
+ >
1063
+ <GitForkIcon className="h-4 w-4" aria-hidden="true" />
1064
+ <span className="sr-only">Checkout</span>
1065
+ </button>
1066
+ </div>
1067
+ </div>
1068
+
1069
+ {/* Recent Branches */}
1070
+ <div className="space-y-4">
1071
+ <h3 className="text-sm font-medium text-white">Recent Branches</h3>
1072
+ <div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
1073
+ {[
1074
+ { name: "feature/auth-flow", updated: "Jun 25, 2025" },
1075
+ { name: "fix/navbar-overlap", updated: "Jun 23, 2025" },
1076
+ { name: "release/3.2.0", updated: "Jun 20, 2025" },
1077
+ ].map((branch, index) => (
1078
+ <div
1079
+ key={index}
1080
+ className="flex items-center gap-3 rounded border border-white/10 bg-white/5 p-3 transition-all hover:bg-white/10 focus:ring-2 focus:ring-indigo-400 focus:outline-none"
1081
+ >
1082
+ <GitForkIcon
1083
+ className="h-5 w-5 text-green-400"
1084
+ aria-hidden="true"
1085
+ />
1086
+ <div className="flex-1">
1087
+ <div className="text-sm font-medium text-white">
1088
+ {branch.name}
1089
+ </div>
1090
+ <div className="text-xs text-white/60">
1091
+ Updated {branch.updated}
1092
+ </div>
1093
+ </div>
1094
+ </div>
1095
+ ))}
1096
+ </div>
1097
+ </div>
1098
+
1099
+ {/* Management Actions */}
1100
+ <div className="space-y-4">
1101
+ <h3 className="text-sm font-medium text-white">Manage Branches</h3>
1102
+ <div className="flex gap-4">
1103
+ <button
1104
+ aria-label="Rename the selected branch"
1105
+ className="flex items-center gap-2 rounded-lg border border-yellow-500/30 bg-yellow-500/15 px-4 py-2 text-yellow-200 transition-all hover:cursor-pointer hover:bg-yellow-500/25 focus:ring-2 focus:ring-yellow-400 focus:outline-none"
1106
+ >
1107
+ <GitForkIcon className="h-4 w-4" aria-hidden="true" />
1108
+ <span className="sr-only">Rename</span>
1109
+ </button>
1110
+ <button
1111
+ aria-label="Delete the selected branch"
1112
+ className="flex items-center gap-2 rounded-lg border border-red-500/30 bg-red-500/15 px-4 py-2 text-red-200 transition-all hover:cursor-pointer hover:bg-red-500/25 focus:ring-2 focus:ring-red-400 focus:outline-none"
1113
+ >
1114
+ <GitForkIcon className="h-4 w-4" aria-hidden="true" />
1115
+ <span className="sr-only">Delete</span>
1116
+ </button>
1117
+ </div>
1118
+ </div>
1119
+ </div>
1120
+ ),
1121
+ }
1122
+
1123
+ export const InteractiveStates: Story = {
1124
+ parameters: {
1125
+ ...storyParameters,
1126
+ docs: {
1127
+ description: {
1128
+ story:
1129
+ "Interactive states showing hover effects, animations, and different search states.",
1130
+ },
1131
+ },
1132
+ },
1133
+ render: () => (
1134
+ <div className="min-h-dvh space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1135
+ <div className="space-y-4">
1136
+ <h3 className="text-sm font-medium text-white/70">
1137
+ Interactive States & Motion
1138
+ </h3>
1139
+ <div className="flex gap-8">
1140
+ {/* Hover color transition */}
1141
+ <div className="flex flex-col items-center gap-2">
1142
+ <GitForkIcon className="h-8 w-8 text-white/60 transition-colors hover:text-blue-400" />
1143
+ <span className="text-xs text-white/60">Hover to Highlight</span>
1144
+ </div>
1145
+
1146
+ {/* Hover scale up */}
1147
+ <div className="flex flex-col items-center gap-2">
1148
+ <GitForkIcon className="h-8 w-8 text-white transition-transform duration-200 hover:scale-110" />
1149
+ <span className="text-xs text-white/60">Scale on Hover</span>
1150
+ </div>
1151
+
1152
+ {/* Pulse animation to show sync or branch update */}
1153
+ <div className="flex flex-col items-center gap-2">
1154
+ <GitForkIcon className="h-8 w-8 animate-pulse text-green-400" />
1155
+ <span className="text-xs text-white/60">Sync Pulse</span>
1156
+ </div>
1157
+ </div>
1158
+ </div>
1159
+ </div>
1160
+ ),
1161
+ }
1162
+
1163
+ export const Playground: Story = {
1164
+ parameters: {
1165
+ ...storyParameters,
1166
+ docs: {
1167
+ description: {
1168
+ story:
1169
+ "Interactive playground to experiment with different GitForkIcon configurations.",
1170
+ },
1171
+ },
1172
+ },
1173
+ args: {
1174
+ width: 32,
1175
+ height: 32,
1176
+ className: "text-indigo-400 ",
1177
+ },
1178
+ render: (args) => (
1179
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1180
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1181
+ <GitForkIcon {...args} />
1182
+ </div>
1183
+ </div>
1184
+ ),
1185
+ }