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