aural-ui 2.0.1 → 2.0.3

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 (56) hide show
  1. package/dist/components/button/Button.stories.tsx +43 -0
  2. package/dist/components/button/index.tsx +10 -4
  3. package/dist/components/chip/index.tsx +3 -3
  4. package/dist/components/dropdown/index.tsx +2 -7
  5. package/dist/components/icon-button/IconButton.stories.tsx +48 -0
  6. package/dist/components/icon-button/index.tsx +6 -2
  7. package/dist/components/input/index.tsx +4 -0
  8. package/dist/components/overlay/index.tsx +22 -5
  9. package/dist/components/sheet/index.tsx +5 -2
  10. package/dist/components/tag/index.tsx +2 -2
  11. package/dist/components/textarea/index.tsx +2 -0
  12. package/dist/components/tooltip/index.tsx +45 -0
  13. package/dist/hooks/index.ts +1 -0
  14. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +744 -0
  15. package/dist/hooks/use-change-state/index.tsx +17 -0
  16. package/dist/hooks/use-change-state/meta.ts +6 -0
  17. package/dist/icons/all-icons.tsx +155 -79
  18. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +992 -0
  19. package/dist/icons/capital-a-letter-icon/index.tsx +32 -0
  20. package/dist/icons/capital-a-letter-icon/meta.ts +8 -0
  21. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +1204 -0
  22. package/dist/icons/circle-tick-icon/index.tsx +22 -0
  23. package/dist/icons/circle-tick-icon/meta.ts +8 -0
  24. package/dist/icons/copy-icon/CopyIcon.stories.tsx +1021 -0
  25. package/dist/icons/copy-icon/index.tsx +21 -0
  26. package/dist/icons/copy-icon/meta.ts +8 -0
  27. package/dist/icons/download-icon/DownloadIcon.stories.tsx +877 -0
  28. package/dist/icons/download-icon/index.tsx +22 -0
  29. package/dist/icons/download-icon/meta.ts +8 -0
  30. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +1109 -0
  31. package/dist/icons/filter-bar-row-icon/index.tsx +24 -0
  32. package/dist/icons/filter-bar-row-icon/meta.ts +8 -0
  33. package/dist/icons/head-icon/HeadIcon.stories.tsx +981 -0
  34. package/dist/icons/head-icon/index.tsx +26 -0
  35. package/dist/icons/head-icon/meta.ts +8 -0
  36. package/dist/icons/index.ts +48 -25
  37. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +1032 -0
  38. package/dist/icons/musical-note-icon/index.tsx +25 -0
  39. package/dist/icons/musical-note-icon/meta.ts +8 -0
  40. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +1159 -0
  41. package/dist/icons/notepad-icon/index.tsx +21 -0
  42. package/dist/icons/notepad-icon/meta.ts +8 -0
  43. package/dist/icons/notes-icon/NotesIcon.stories.tsx +1159 -0
  44. package/dist/icons/notes-icon/index.tsx +24 -0
  45. package/dist/icons/notes-icon/meta.ts +8 -0
  46. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +936 -0
  47. package/dist/icons/paper-plane-icon/index.tsx +33 -0
  48. package/dist/icons/paper-plane-icon/meta.ts +8 -0
  49. package/dist/icons/setting-icon/SettingIcon.stories.tsx +1024 -0
  50. package/dist/icons/setting-icon/index.tsx +30 -0
  51. package/dist/icons/setting-icon/meta.ts +8 -0
  52. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +907 -0
  53. package/dist/icons/suggestion-icon/index.tsx +33 -0
  54. package/dist/icons/suggestion-icon/meta.ts +8 -0
  55. package/dist/index.js +1 -1
  56. package/package.json +1 -1
@@ -0,0 +1,936 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { PaperPlaneIcon } from "."
5
+
6
+ const meta: Meta<typeof PaperPlaneIcon> = {
7
+ title: "Icons/PaperPlaneIcon",
8
+ component: PaperPlaneIcon,
9
+ parameters: {
10
+ layout: "fullscreen",
11
+ backgrounds: {
12
+ default: "dark",
13
+ values: [
14
+ { name: "dark", value: "#0a0a0a" },
15
+ { name: "darker", value: "#000000" },
16
+ { name: "light", value: "#ffffff" },
17
+ ],
18
+ },
19
+ docs: {
20
+ page: () => (
21
+ <>
22
+ {/* Override default docs styling */}
23
+ <style>
24
+ {`
25
+ .sbdocs-wrapper {
26
+ padding: 0 ;
27
+ max-width: none ;
28
+ background: transparent ;
29
+ }
30
+ .sbdocs-content {
31
+ max-width: none ;
32
+ padding: 0 ;
33
+ margin: 0 ;
34
+ background: transparent ;
35
+ }
36
+ .docs-story {
37
+ background: transparent ;
38
+ }
39
+ .sbdocs {
40
+ background: transparent ;
41
+ }
42
+ body {
43
+ background: #0a0a0a ;
44
+ }
45
+ #storybook-docs {
46
+ background: #0a0a0a ;
47
+ }
48
+ .sbdocs-preview {
49
+ background: transparent ;
50
+ border: none ;
51
+ }
52
+ .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
+ color: white ;
54
+ }
55
+ .sbdocs-p, .sbdocs-li {
56
+ color: rgba(255, 255, 255, 0.7) ;
57
+ }
58
+ .sbdocs-code {
59
+ background: rgba(255, 255, 255, 0.1) ;
60
+ color: rgba(168, 85, 247, 1) ;
61
+ border: 1px solid rgba(255, 255, 255, 0.1) ;
62
+ }
63
+ .sbdocs-pre {
64
+ background: rgba(0, 0, 0, 0.4) ;
65
+ border: 1px solid rgba(255, 255, 255, 0.1) ;
66
+ }
67
+ .sbdocs-table {
68
+ background: rgba(255, 255, 255, 0.05) ;
69
+ border: 1px solid rgba(255, 255, 255, 0.1) ;
70
+ }
71
+ .sbdocs-table th {
72
+ background: rgba(255, 255, 255, 0.05) ;
73
+ color: white ;
74
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
75
+ }
76
+ .sbdocs-table td {
77
+ color: rgba(255, 255, 255, 0.7) ;
78
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
79
+ }
80
+ `}
81
+ </style>
82
+
83
+ <div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
84
+ {/* Header */}
85
+ <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
86
+ <div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-green-500/10" />
87
+ <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
+ <div className="!space-y-6 text-center">
89
+ <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-purple-500/30 bg-gradient-to-br from-purple-500/20 to-green-500/20">
90
+ <PaperPlaneIcon className="h-12 w-12 text-purple-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ PaperPlaneIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ A paper-planeIcon icon symbolizing replies, submissions, and
97
+ outbound communication. Ideal for use in chat UIs, comment
98
+ boxes, and form submissions. Built with accessibility in
99
+ mind using Radix UI's AccessibleIcon wrapper.
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-purple-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-green-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
+ Navigation
125
+ </div>
126
+ <div className="text-sm text-white/60">
127
+ Upward movement
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
+ {/* Basic Usage */}
144
+ <div className="!space-y-4">
145
+ <h3 className="text-xl font-semibold !text-purple-300">
146
+ Basic Usage
147
+ </h3>
148
+ <div className="rounded-lg bg-black/40 p-4">
149
+ <pre className="overflow-x-auto text-sm !text-green-300">
150
+ {`import { PaperPlaneIcon } from "lucide-react"
151
+
152
+ function SendMessageButton({ onSend }) {
153
+ return (
154
+ <button
155
+ className="flex items-center gap-2 text-white hover:text-purple-300 transition-colors"
156
+ onClick={onSend}
157
+ >
158
+ <span>Send Message</span>
159
+ <PaperPlaneIcon className="h-4 w-4 text-purple-400" />
160
+ </button>
161
+ )
162
+ }`}
163
+ </pre>
164
+ </div>
165
+ </div>
166
+
167
+ {/* Live Preview */}
168
+ <div className="!space-y-4">
169
+ <h3 className="text-xl font-semibold !text-purple-300">
170
+ Live Preview
171
+ </h3>
172
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
173
+ <button className="flex items-center gap-3 rounded-lg border border-purple-500/20 bg-purple-500/10 px-4 py-2 transition-colors hover:bg-purple-500/20">
174
+ <span className="text-white">Send Message</span>
175
+ <PaperPlaneIcon className="h-4 w-4 text-purple-400" />
176
+ </button>
177
+ </div>
178
+ </div>
179
+ </div>
180
+ </div>
181
+
182
+ {/* Props Documentation */}
183
+ <div className="!space-y-8">
184
+ <h2 className="text-center text-3xl font-bold !text-white">
185
+ Props & Configuration
186
+ </h2>
187
+
188
+ <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
189
+ <div className="bg-white/5 p-4">
190
+ <h3 className="text-xl font-semibold !text-white">Props</h3>
191
+ </div>
192
+ <table className="!my-0 w-full">
193
+ <thead className="bg-white/5">
194
+ <tr className="border-b border-white/10">
195
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
196
+ Prop
197
+ </th>
198
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
199
+ Type
200
+ </th>
201
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
202
+ Default
203
+ </th>
204
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
205
+ Description
206
+ </th>
207
+ </tr>
208
+ </thead>
209
+ <tbody>
210
+ <tr className="border-b border-white/5">
211
+ <td className="px-6 py-4 font-mono text-sm !text-purple-300">
212
+ width
213
+ </td>
214
+ <td className="px-6 py-4 text-sm !text-white/70">
215
+ number | string
216
+ </td>
217
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
218
+ <td className="px-6 py-4 text-sm !text-white/70">
219
+ Width of the icon in pixels
220
+ </td>
221
+ </tr>
222
+ <tr className="border-b border-white/5 !bg-black/10">
223
+ <td className="px-6 py-4 font-mono text-sm !text-purple-300">
224
+ height
225
+ </td>
226
+ <td className="px-6 py-4 text-sm !text-white/70">
227
+ number | string
228
+ </td>
229
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
230
+ <td className="px-6 py-4 text-sm !text-white/70">
231
+ Height of the icon in pixels
232
+ </td>
233
+ </tr>
234
+ <tr className="border-b border-white/5">
235
+ <td className="px-6 py-4 font-mono text-sm !text-purple-300">
236
+ stroke
237
+ </td>
238
+ <td className="px-6 py-4 text-sm !text-white/70">
239
+ string
240
+ </td>
241
+ <td className="px-6 py-4 text-sm !text-white/50">
242
+ currentColor
243
+ </td>
244
+ <td className="px-6 py-4 text-sm !text-white/70">
245
+ Stroke color of the icon
246
+ </td>
247
+ </tr>
248
+ <tr className="border-b border-white/5 !bg-black/10">
249
+ <td className="px-6 py-4 font-mono text-sm !text-purple-300">
250
+ className
251
+ </td>
252
+ <td className="px-6 py-4 text-sm !text-white/70">
253
+ string
254
+ </td>
255
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
256
+ <td className="px-6 py-4 text-sm !text-white/70">
257
+ CSS classes for styling (use for overrides)
258
+ </td>
259
+ </tr>
260
+ <tr className="border-b border-white/5">
261
+ <td className="px-6 py-4 font-mono text-sm !text-purple-300">
262
+ strokeWidth
263
+ </td>
264
+ <td className="px-6 py-4 text-sm !text-white/70">
265
+ number | string
266
+ </td>
267
+ <td className="px-6 py-4 text-sm !text-white/50">
268
+ 1.5
269
+ </td>
270
+ <td className="px-6 py-4 text-sm !text-white/70">
271
+ Stroke width of the chevron line
272
+ </td>
273
+ </tr>
274
+ <tr className="!bg-black/10">
275
+ <td className="px-6 py-4 font-mono text-sm !text-purple-300">
276
+ ...svgProps
277
+ </td>
278
+ <td className="px-6 py-4 text-sm !text-white/70">
279
+ SVGProps
280
+ </td>
281
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
282
+ <td className="px-6 py-4 text-sm !text-white/70">
283
+ All standard SVG element props
284
+ </td>
285
+ </tr>
286
+ </tbody>
287
+ </table>
288
+ </div>
289
+ </div>
290
+
291
+ {/* Size Variations */}
292
+ <div className="!space-y-8">
293
+ <h2 className="text-center text-3xl font-bold !text-white">
294
+ Size Variations
295
+ </h2>
296
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
297
+ <div className="!space-y-6">
298
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
299
+ <div className="!space-y-4">
300
+ <h3 className="text-lg font-semibold !text-purple-300">
301
+ Standard Sizes
302
+ </h3>
303
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
304
+ <div className="text-center">
305
+ <PaperPlaneIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
306
+ <span className="text-xs text-white/60">12px</span>
307
+ </div>
308
+ <div className="text-center">
309
+ <PaperPlaneIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
310
+ <span className="text-xs text-white/60">16px</span>
311
+ </div>
312
+ <div className="text-center">
313
+ <PaperPlaneIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
314
+ <span className="text-xs text-white/60">20px</span>
315
+ </div>
316
+ <div className="text-center">
317
+ <PaperPlaneIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
318
+ <span className="text-xs text-white/60">24px</span>
319
+ </div>
320
+ <div className="text-center">
321
+ <PaperPlaneIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
322
+ <span className="text-xs text-white/60">32px</span>
323
+ </div>
324
+ <div className="text-center">
325
+ <PaperPlaneIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
326
+ <span className="text-xs text-white/60">48px</span>
327
+ </div>
328
+ </div>
329
+ </div>
330
+
331
+ <div className="!space-y-4">
332
+ <h3 className="text-lg font-semibold !text-purple-300">
333
+ Code Example
334
+ </h3>
335
+ <div className="rounded-lg bg-black/40 p-4">
336
+ <pre className="overflow-x-auto text-sm !text-blue-300">
337
+ {`// Small (16px)
338
+ <PaperPlaneIcon className="h-4 w-4 " />
339
+
340
+ // Medium (24px)
341
+ <PaperPlaneIcon className="h-6 w-6 " />
342
+
343
+ // Large (32px)
344
+ <PaperPlaneIcon className="h-8 w-8 " />
345
+
346
+ // Custom size
347
+ <PaperPlaneIcon width={40} height={40} />`}
348
+ </pre>
349
+ </div>
350
+ </div>
351
+ </div>
352
+ </div>
353
+ </div>
354
+ </div>
355
+
356
+ {/* Color Variations */}
357
+ <div className="!space-y-8">
358
+ <h2 className="text-center text-3xl font-bold !text-white">
359
+ Color Variations
360
+ </h2>
361
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
362
+ <div className="!space-y-4">
363
+ <h3 className="text-lg font-semibold !text-purple-300">
364
+ Semantic Colors
365
+ </h3>
366
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
367
+ <div className="flex items-center gap-4">
368
+ <PaperPlaneIcon className="h-6 w-6 text-purple-400" />
369
+ <div>
370
+ <div className="text-sm font-medium text-white">
371
+ Primary
372
+ </div>
373
+ <div className="text-xs text-white/60">
374
+ text-purple-400
375
+ </div>
376
+ </div>
377
+ </div>
378
+ <div className="flex items-center gap-4">
379
+ <PaperPlaneIcon className="h-6 w-6 text-gray-400" />
380
+ <div>
381
+ <div className="text-sm font-medium text-white">
382
+ Secondary
383
+ </div>
384
+ <div className="text-xs text-white/60">
385
+ text-gray-400
386
+ </div>
387
+ </div>
388
+ </div>
389
+ <div className="flex items-center gap-4">
390
+ <PaperPlaneIcon className="h-6 w-6 text-green-400" />
391
+ <div>
392
+ <div className="text-sm font-medium text-white">
393
+ Accent
394
+ </div>
395
+ <div className="text-xs text-white/60">
396
+ text-green-400
397
+ </div>
398
+ </div>
399
+ </div>
400
+ <div className="flex items-center gap-4">
401
+ <PaperPlaneIcon className="h-6 w-6 text-white/40" />
402
+ <div>
403
+ <div className="text-sm font-medium text-white">
404
+ Disabled
405
+ </div>
406
+ <div className="text-xs text-white/60">
407
+ text-white/40
408
+ </div>
409
+ </div>
410
+ </div>
411
+ </div>
412
+ </div>
413
+
414
+ <div className="!space-y-4">
415
+ <h3 className="text-lg font-semibold !text-purple-300">
416
+ Custom Colors
417
+ </h3>
418
+ <div className="rounded-lg bg-black/40 p-4">
419
+ <pre className="overflow-x-auto text-sm !text-green-300">
420
+ {`// Using Tailwind classes with
421
+ <PaperPlaneIcon className="h-6 w-6 text-purple-400 " />
422
+ <PaperPlaneIcon className="h-6 w-6 text-green-500 " />
423
+
424
+ // Using CSS custom properties
425
+ <PaperPlaneIcon
426
+ className="h-6 w-6 "
427
+ style={{ color: 'var(--color-primary)' }}
428
+ />
429
+
430
+ // Direct stroke prop
431
+ <PaperPlaneIcon
432
+ width={24}
433
+ height={24}
434
+ stroke="#9333ea"
435
+ />`}
436
+ </pre>
437
+ </div>
438
+ </div>
439
+ </div>
440
+ </div>
441
+
442
+ {/* Usage Examples */}
443
+ <div className="!space-y-8">
444
+ <h2 className="text-center text-3xl font-bold !text-white">
445
+ Usage Examples
446
+ </h2>
447
+
448
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
449
+ {/* Send Message */}
450
+ <div className="!space-y-4">
451
+ <h3 className="text-lg font-semibold !text-purple-300">
452
+ Send Message
453
+ </h3>
454
+ <div className="!space-y-4">
455
+ <div className="flex items-center gap-4">
456
+ <button className="flex items-center gap-2 rounded-lg border border-purple-500/30 bg-purple-500/10 px-4 py-2 text-purple-200 transition-colors hover:bg-purple-500/20">
457
+ <PaperPlaneIcon className="h-4 w-4" />
458
+ Send Message
459
+ </button>
460
+ <button className="flex items-center justify-center rounded-full border border-white/20 bg-white/5 p-3 text-white transition-colors hover:bg-white/10">
461
+ <PaperPlaneIcon className="h-5 w-5" />
462
+ </button>
463
+ </div>
464
+ <div className="rounded-lg bg-black/40 p-4">
465
+ <pre className="overflow-x-auto text-sm !text-green-300">
466
+ {`// Full-width send button
467
+ <button className="flex items-center gap-2 bg-purple-500/10 border border-purple-500/30 px-4 py-2 rounded-lg">
468
+ <PaperPlaneIcon className="h-4 w-4" />
469
+ Send Message
470
+ </button>
471
+
472
+ // Icon-only send
473
+ <button className="flex items-center justify-center bg-white/5 border border-white/20 p-3 rounded-full">
474
+ <PaperPlaneIcon className="h-5 w-5" />
475
+ </button>`}
476
+ </pre>
477
+ </div>
478
+ </div>
479
+ </div>
480
+
481
+ {/* Reply to a Message */}
482
+ <div className="!space-y-4">
483
+ <h3 className="text-lg font-semibold !text-purple-300">
484
+ Reply to a Message
485
+ </h3>
486
+ <div className="!space-y-4">
487
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
488
+ <div className="flex items-center justify-between">
489
+ <span className="font-medium text-white">
490
+ From: Olivia
491
+ </span>
492
+ <button className="flex items-center gap-2 text-purple-400 hover:text-purple-300">
493
+ <PaperPlaneIcon className="h-4 w-4" />
494
+ Reply
495
+ </button>
496
+ </div>
497
+ <div className="mt-3 text-sm text-white/70">
498
+ “Could you send over the latest project brief?”
499
+ </div>
500
+ </div>
501
+ <div className="rounded-lg bg-black/40 p-4">
502
+ <pre className="overflow-x-auto text-sm !text-green-300">
503
+ {`// Reply to incoming message
504
+ <div className="flex items-center justify-between">
505
+ <span className="font-medium text-white">From: Olivia</span>
506
+ <button className="flex items-center gap-2 text-purple-400 hover:text-purple-300">
507
+ <PaperPlaneIcon className="h-4 w-4" />
508
+ Reply
509
+ </button>
510
+ </div>
511
+
512
+ <div className="mt-3 text-sm text-white/70">
513
+ “Could you send over the latest project brief?”
514
+ </div>`}
515
+ </pre>
516
+ </div>
517
+ </div>
518
+ </div>
519
+ </div>
520
+ </div>
521
+
522
+ {/* Accessibility */}
523
+ <div className="!space-y-8">
524
+ <h2 className="text-center text-3xl font-bold !text-white">
525
+ Accessibility Features
526
+ </h2>
527
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
528
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
529
+ <h3 className="text-lg font-semibold !text-green-300">
530
+ ✅ Built-in Features
531
+ </h3>
532
+ <ul className="!space-y-2 text-sm !text-white/70">
533
+ <li className="!text-white/70">
534
+ Uses Radix UI AccessibleIcon wrapper
535
+ </li>
536
+ <li className="!text-white/70">
537
+ Provides screen reader label "Chevron Up icon"
538
+ </li>
539
+ <li className="!text-white/70">
540
+ Supports keyboard navigation when interactive
541
+ </li>
542
+ <li className="!text-white/70">
543
+ Maintains proper color contrast ratios
544
+ </li>
545
+ <li className="!text-white/70">
546
+ Scales with user's font size preferences
547
+ </li>
548
+ </ul>
549
+ </div>
550
+
551
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
552
+ <h3 className="text-lg font-semibold !text-purple-300">
553
+ 💡 Best Practices
554
+ </h3>
555
+ <ul className="!space-y-2 text-sm text-white/70">
556
+ <li className="!text-white/70">
557
+ Use descriptive aria-labels for navigation buttons
558
+ </li>
559
+ <li className="!text-white/70">
560
+ Provide keyboard shortcuts for common actions
561
+ </li>
562
+ <li className="!text-white/70">
563
+ Ensure sufficient touch target size (44px minimum)
564
+ </li>
565
+ <li className="!text-white/70">
566
+ Add focus states for interactive elements
567
+ </li>
568
+ <li className="!text-white/70">
569
+ Consider aria-expanded for collapsible content
570
+ </li>
571
+ </ul>
572
+ </div>
573
+ </div>
574
+
575
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
576
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
577
+ Proper ARIA Implementation
578
+ </h3>
579
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
580
+ {/* Code Block */}
581
+ <div className="rounded-lg bg-black/40 p-4">
582
+ <pre className="overflow-x-auto text-sm !text-blue-300">
583
+ {`// Send message button with ARIA
584
+ <button
585
+ aria-label="Send message to recipient"
586
+ className="flex items-center gap-2"
587
+ >
588
+ <PaperPlaneIcon className="h-4 w-4" />
589
+ Send Message
590
+ </button>
591
+
592
+ // Reply to message
593
+ <button
594
+ aria-label="Reply to message from John"
595
+ className="flex items-center gap-2"
596
+ >
597
+ <PaperPlaneIcon className="h-4 w-4" />
598
+ Reply
599
+ </button>
600
+
601
+ // Message sorting control
602
+ <button
603
+ aria-label="Sort messages by newest first"
604
+ aria-pressed={sortOrder === 'newest'}
605
+ className="flex items-center gap-2"
606
+ >
607
+ Newest
608
+ <PaperPlaneIcon className="h-4 w-4" />
609
+ </button>`}
610
+ </pre>
611
+ </div>
612
+
613
+ {/* Explanation Block */}
614
+ <div className="!space-y-4">
615
+ <p className="text-sm !text-white/70">
616
+ Use clear and specific ARIA labels for all
617
+ message-related actions such as sending, replying, or
618
+ sorting. Screen reader users benefit most when the
619
+ action and the context (like sender name or sorting
620
+ method) are announced.
621
+ </p>
622
+ <div className="rounded-lg border border-purple-500/20 bg-purple-500/10 p-4">
623
+ <div className="flex items-center gap-2 text-sm text-purple-200">
624
+ <PaperPlaneIcon className="h-4 w-4" />
625
+ <span>
626
+ Use <code>aria-label</code> to describe the *intent*
627
+ of sending or replying, not just the button
628
+ appearance.
629
+ </span>
630
+ </div>
631
+ </div>
632
+ </div>
633
+ </div>
634
+ </div>
635
+ </div>
636
+
637
+ {/* Related Icons */}
638
+ <div className="!space-y-8">
639
+ <h2 className="text-center text-3xl font-bold !text-white">
640
+ Related Icons
641
+ </h2>
642
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
643
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
644
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
645
+ <span className="!text-2xl !text-white">↓</span>
646
+ </div>
647
+ <div>
648
+ <div className="font-medium text-white">
649
+ ChevronDownIcon
650
+ </div>
651
+ <div className="text-xs text-white/60">
652
+ Downward direction
653
+ </div>
654
+ </div>
655
+ </div>
656
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
657
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
658
+ <span className="!text-2xl !text-white">→</span>
659
+ </div>
660
+ <div>
661
+ <div className="font-medium text-white">
662
+ ChevronRightIcon
663
+ </div>
664
+ <div className="text-xs text-white/60">
665
+ Right direction
666
+ </div>
667
+ </div>
668
+ </div>
669
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
670
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-pink-500/20">
671
+ <span className="!text-2xl !text-white">←</span>
672
+ </div>
673
+ <div>
674
+ <div className="font-medium text-white">
675
+ ChevronLeftIcon
676
+ </div>
677
+ <div className="text-xs text-white/60">
678
+ Left direction
679
+ </div>
680
+ </div>
681
+ </div>
682
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
683
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
684
+ <span className="!text-2xl !text-white">↑</span>
685
+ </div>
686
+ <div>
687
+ <div className="font-medium text-white">ArrowUpIcon</div>
688
+ <div className="text-xs text-white/60">Arrow variant</div>
689
+ </div>
690
+ </div>
691
+ </div>
692
+ </div>
693
+ </div>
694
+
695
+ {/* Footer */}
696
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
697
+ <div className="!mx-auto max-w-7xl px-6 py-8">
698
+ <div className="!space-y-4 text-center">
699
+ <p className="!text-white/60">
700
+ PaperPlaneIcon is part of the Aural UI icon library, built
701
+ with accessibility and intuitive upward navigation in mind.
702
+ </p>
703
+ <p className="text-sm !text-white/40">
704
+ All icons use Radix UI's AccessibleIcon for screen reader
705
+ compatibility and follow WCAG guidelines.
706
+ </p>
707
+ </div>
708
+ </div>
709
+ </div>
710
+ </div>
711
+ </>
712
+ ),
713
+ },
714
+ },
715
+ tags: ["autodocs"],
716
+ argTypes: {
717
+ width: {
718
+ control: { type: "range", min: 8, max: 96, step: 2 },
719
+ description: "Width of the icon in pixels",
720
+ },
721
+ height: {
722
+ control: { type: "range", min: 8, max: 96, step: 2 },
723
+ description: "Height of the icon in pixels",
724
+ },
725
+ stroke: {
726
+ control: "color",
727
+ description: "Stroke color of the icon",
728
+ },
729
+ strokeWidth: {
730
+ control: { type: "range", min: 0.5, max: 3, step: 0.1 },
731
+ description: "Stroke width of the chevron line",
732
+ },
733
+ className: {
734
+ control: "text",
735
+ description: "CSS classes for styling (use for overrides)",
736
+ },
737
+ },
738
+ }
739
+
740
+ export default meta
741
+ type Story = StoryObj<typeof PaperPlaneIcon>
742
+
743
+ // Story parameters for consistent dark theme
744
+ const storyParameters = {
745
+ backgrounds: {
746
+ default: "dark",
747
+ values: [
748
+ { name: "dark", value: "#0a0a0a" },
749
+ { name: "darker", value: "#000000" },
750
+ ],
751
+ },
752
+ }
753
+
754
+ export const Default: Story = {
755
+ args: {
756
+ width: 24,
757
+ height: 24,
758
+ className: "text-purple-400 ",
759
+ },
760
+ parameters: storyParameters,
761
+ render: (args) => (
762
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
763
+ <PaperPlaneIcon {...args} />
764
+ </div>
765
+ ),
766
+ }
767
+
768
+ export const SizeVariations: Story = {
769
+ parameters: {
770
+ ...storyParameters,
771
+ docs: {
772
+ description: {
773
+ story:
774
+ "PaperPlaneIcon in different sizes, from small UI elements to large displays.",
775
+ },
776
+ },
777
+ },
778
+ render: () => (
779
+ <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">
780
+ <div className="text-center">
781
+ <PaperPlaneIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
782
+ <span className="text-xs text-white/60">12px</span>
783
+ </div>
784
+ <div className="text-center">
785
+ <PaperPlaneIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
786
+ <span className="text-xs text-white/60">16px</span>
787
+ </div>
788
+ <div className="text-center">
789
+ <PaperPlaneIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
790
+ <span className="text-xs text-white/60">20px</span>
791
+ </div>
792
+ <div className="text-center">
793
+ <PaperPlaneIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
794
+ <span className="text-xs text-white/60">24px</span>
795
+ </div>
796
+ <div className="text-center">
797
+ <PaperPlaneIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
798
+ <span className="text-xs text-white/60">32px</span>
799
+ </div>
800
+ <div className="text-center">
801
+ <PaperPlaneIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
802
+ <span className="text-xs text-white/60">48px</span>
803
+ </div>
804
+ </div>
805
+ ),
806
+ }
807
+
808
+ export const ColorVariations: Story = {
809
+ parameters: {
810
+ ...storyParameters,
811
+ docs: {
812
+ description: {
813
+ story:
814
+ "PaperPlaneIcon in different semantic colors for various upward navigation contexts.",
815
+ },
816
+ },
817
+ },
818
+ render: () => (
819
+ <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">
820
+ <div className="text-center">
821
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
822
+ <PaperPlaneIcon className="h-8 w-8 text-purple-400" />
823
+ </div>
824
+ <div className="text-sm font-medium text-white">Primary</div>
825
+ <div className="text-xs text-purple-400">text-purple-400</div>
826
+ </div>
827
+ <div className="text-center">
828
+ <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">
829
+ <PaperPlaneIcon className="h-8 w-8 text-gray-400" />
830
+ </div>
831
+ <div className="text-sm font-medium text-white">Secondary</div>
832
+ <div className="text-xs text-gray-400">text-gray-400</div>
833
+ </div>
834
+ <div className="text-center">
835
+ <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">
836
+ <PaperPlaneIcon className="h-8 w-8 text-green-400" />
837
+ </div>
838
+ <div className="text-sm font-medium text-white">Accent</div>
839
+ <div className="text-xs text-green-400">text-green-400</div>
840
+ </div>
841
+ <div className="text-center">
842
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/10 bg-white/5">
843
+ <PaperPlaneIcon className="h-8 w-8 text-white/40" />
844
+ </div>
845
+ <div className="text-sm font-medium text-white">Disabled</div>
846
+ <div className="text-xs text-white/40">text-white/40</div>
847
+ </div>
848
+ </div>
849
+ ),
850
+ }
851
+
852
+ export const UsageExamples: Story = {
853
+ parameters: {
854
+ ...storyParameters,
855
+ docs: {
856
+ description: {
857
+ story:
858
+ "Real-world usage examples showing PaperPlaneIcon in different upward navigation contexts.",
859
+ },
860
+ },
861
+ },
862
+ render: () => (
863
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
864
+ {/* Copy Content */}
865
+ <div className="!space-y-2">
866
+ <h3 className="text-sm font-medium text-white">Scroll to Top</h3>
867
+ <div className="flex items-center gap-4">
868
+ <button className="flex items-center gap-2 rounded-lg border border-purple-500/30 bg-purple-500/10 px-4 py-2 text-purple-200 transition-colors hover:bg-purple-500/20">
869
+ <PaperPlaneIcon className="h-4 w-4" />
870
+ Back to Top
871
+ </button>
872
+ <button className="flex items-center justify-center rounded-full border border-white/20 bg-white/5 p-3 text-white transition-colors hover:bg-white/10">
873
+ <PaperPlaneIcon className="h-5 w-5" />
874
+ </button>
875
+ </div>
876
+ </div>
877
+
878
+ {/* Collapsible */}
879
+ <div className="!space-y-2">
880
+ <h3 className="text-sm font-medium text-white">Collapsible Content</h3>
881
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
882
+ <button className="flex w-full items-center justify-between text-left">
883
+ <span className="font-medium text-white">Advanced Settings</span>
884
+ <PaperPlaneIcon className="h-4 w-4 text-white/60 transition-transform" />
885
+ </button>
886
+ <div className="mt-3 space-y-2 text-sm text-white/70">
887
+ <div>Option 1: Enable advanced features</div>
888
+ <div>Option 2: Custom configuration</div>
889
+ </div>
890
+ </div>
891
+ </div>
892
+
893
+ {/* Sort Controls */}
894
+ <div className="!space-y-2">
895
+ <h3 className="text-sm font-medium text-white">Sort Controls</h3>
896
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
897
+ <div className="space-y-2">
898
+ <button className="flex w-full items-center justify-between rounded px-3 py-2 text-left text-white hover:bg-white/10">
899
+ <span>Name</span>
900
+ <PaperPlaneIcon className="h-4 w-4 text-purple-400" />
901
+ </button>
902
+ <button className="flex w-full items-center justify-between rounded px-3 py-2 text-left text-white hover:bg-white/10">
903
+ <span>Date</span>
904
+ <PaperPlaneIcon className="h-4 w-4 text-white/40" />
905
+ </button>
906
+ </div>
907
+ </div>
908
+ </div>
909
+ </div>
910
+ ),
911
+ }
912
+
913
+ export const Playground: Story = {
914
+ parameters: {
915
+ ...storyParameters,
916
+ docs: {
917
+ description: {
918
+ story:
919
+ "Interactive playground to experiment with different PaperPlaneIcon configurations.",
920
+ },
921
+ },
922
+ },
923
+ args: {
924
+ width: 32,
925
+ height: 32,
926
+ className: "text-purple-400 ",
927
+ strokeWidth: 1.5,
928
+ },
929
+ render: (args) => (
930
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
931
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
932
+ <PaperPlaneIcon {...args} />
933
+ </div>
934
+ </div>
935
+ ),
936
+ }