aural-ui 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/components/badge/Badge.stories.tsx +7 -0
  2. package/dist/components/banner/Banner.stories.tsx +7 -0
  3. package/dist/components/button/Button.stories.tsx +7 -0
  4. package/dist/components/char-count/CharCount.stories.tsx +7 -0
  5. package/dist/components/checkbox/Checkbox.stories.tsx +7 -0
  6. package/dist/components/chip/Chip.stories.tsx +10 -0
  7. package/dist/components/collapsible/Collapsible.stories.tsx +7 -0
  8. package/dist/components/dropdown/index.tsx +16 -0
  9. package/dist/components/form/Form.stories.tsx +7 -0
  10. package/dist/components/helper-text/HelperText.stories.tsx +7 -0
  11. package/dist/components/icon-button/IconButton.stories.tsx +4 -0
  12. package/dist/components/if-else/if-else.stories.tsx +7 -0
  13. package/dist/components/input/Input.stories.tsx +7 -0
  14. package/dist/components/label/Label.stories.tsx +7 -0
  15. package/dist/components/overlay/index.tsx +1 -1
  16. package/dist/components/pagination/Pagination.stories.tsx +7 -0
  17. package/dist/components/radio/Radio.stories.tsx +7 -0
  18. package/dist/components/scroll-area/index.tsx +18 -5
  19. package/dist/components/select/Select.stories.tsx +7 -0
  20. package/dist/components/stepper/Stepper.stories.tsx +7 -0
  21. package/dist/components/switch/Switch.stories.tsx +7 -0
  22. package/dist/components/switch-case/SwitchCase.stories.tsx +7 -0
  23. package/dist/components/tag/Tag.stories.tsx +7 -0
  24. package/dist/components/textarea/TextArea.stories.tsx +7 -0
  25. package/dist/components/textarea/index.tsx +2 -0
  26. package/dist/components/toast/Toast.stories.tsx +7 -0
  27. package/dist/components/typography/Typography.stories.tsx +7 -0
  28. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +1101 -0
  29. package/dist/icons/ai-avatar-icon/index.tsx +36 -0
  30. package/dist/icons/ai-avatar-icon/meta.ts +8 -0
  31. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +1013 -0
  32. package/dist/icons/arrow-corner-up-left-icon/index.tsx +24 -0
  33. package/dist/icons/arrow-corner-up-left-icon/meta.ts +8 -0
  34. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +1056 -0
  35. package/dist/icons/arrow-corner-up-right-icon/index.tsx +24 -0
  36. package/dist/icons/arrow-corner-up-right-icon/meta.ts +8 -0
  37. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +1027 -0
  38. package/dist/icons/layout-column-icon/index.tsx +23 -0
  39. package/dist/icons/layout-column-icon/meta.ts +8 -0
  40. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +1007 -0
  41. package/dist/icons/layout-left-icon/index.tsx +26 -0
  42. package/dist/icons/layout-left-icon/meta.ts +8 -0
  43. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +1001 -0
  44. package/dist/icons/layout-right-icon/index.tsx +26 -0
  45. package/dist/icons/layout-right-icon/meta.ts +8 -0
  46. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +1010 -0
  47. package/dist/icons/paint-roll-icon/index.tsx +24 -0
  48. package/dist/icons/paint-roll-icon/meta.ts +8 -0
  49. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +1018 -0
  50. package/dist/icons/sparkles-soft-icon/index.tsx +29 -0
  51. package/dist/icons/sparkles-soft-icon/meta.ts +8 -0
  52. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +1006 -0
  53. package/dist/icons/text-color-icon/index.tsx +35 -0
  54. package/dist/icons/text-color-icon/meta.ts +8 -0
  55. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +1039 -0
  56. package/dist/icons/text-indicator-icon/index.tsx +24 -0
  57. package/dist/icons/text-indicator-icon/meta.ts +8 -0
  58. package/dist/index.js +124 -99
  59. package/package.json +1 -1
@@ -0,0 +1,1010 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { PaintRollIcon } from "."
5
+
6
+ const meta: Meta<typeof PaintRollIcon> = {
7
+ title: "Icons/PaintRollIcon",
8
+ component: PaintRollIcon,
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-indigo-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-indigo-500/10 via-transparent to-violet-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-indigo-500/30 bg-gradient-to-br from-indigo-500/20 to-violet-500/20">
90
+ <PaintRollIcon className="h-12 w-12 text-indigo-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ PaintRollIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ A versatile paint roll icon perfect for design tools, theme
97
+ customization, styling interfaces, and visual editing
98
+ applications. Built with accessibility in mind using Radix
99
+ 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-indigo-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-violet-300">
115
+ Scalable
116
+ </div>
117
+ <div className="text-sm text-white/60">
118
+ Any size needed
119
+ </div>
120
+ </div>
121
+ <div className="h-8 w-px bg-white/20" />
122
+ <div className="text-center">
123
+ <div className="text-3xl font-bold text-purple-300">
124
+ Flexible
125
+ </div>
126
+ <div className="text-sm text-white/60">
127
+ Customizable styling
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ {/* Content */}
136
+ <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
137
+ {/* Quick Usage */}
138
+ <div className="!space-y-8">
139
+ <h2 className="text-center text-3xl font-bold !text-white">
140
+ Quick Start
141
+ </h2>
142
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
+ <div className="!space-y-4">
144
+ <h3 className="text-xl font-semibold !text-indigo-300">
145
+ Basic Usage
146
+ </h3>
147
+ <div className="rounded-lg bg-black/40 p-4">
148
+ <pre className="overflow-x-auto text-sm !text-green-300">
149
+ {`import { PaintRollIcon } from "@icons/paint-roll-icon"
150
+
151
+ function MyComponent() {
152
+ return (
153
+ <div className="flex items-center gap-2">
154
+ <PaintRollIcon className="h-5 w-5 text-indigo-500" />
155
+ <span>Customize Theme</span>
156
+ </div>
157
+ )
158
+ }`}
159
+ </pre>
160
+ </div>
161
+ </div>
162
+
163
+ <div className="!space-y-4">
164
+ <h3 className="text-xl font-semibold !text-indigo-300">
165
+ Live Preview
166
+ </h3>
167
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
168
+ <div className="flex items-center gap-3 rounded-lg border border-indigo-500/20 bg-indigo-500/10 px-4 py-2">
169
+ <PaintRollIcon className="h-5 w-5 text-indigo-400" />
170
+ <span className="text-white">Customize Theme</span>
171
+ </div>
172
+ </div>
173
+ </div>
174
+ </div>
175
+ </div>
176
+
177
+ {/* Props Documentation */}
178
+ <div className="!space-y-8">
179
+ <h2 className="text-center text-3xl font-bold !text-white">
180
+ Props & Configuration
181
+ </h2>
182
+
183
+ <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
184
+ <div className="bg-white/5 p-4">
185
+ <h3 className="text-xl font-semibold !text-white">Props</h3>
186
+ </div>
187
+ <table className="!my-0 w-full">
188
+ <thead className="bg-white/5">
189
+ <tr className="border-b border-white/10">
190
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
191
+ Prop
192
+ </th>
193
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
194
+ Type
195
+ </th>
196
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
197
+ Default
198
+ </th>
199
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
200
+ Description
201
+ </th>
202
+ </tr>
203
+ </thead>
204
+ <tbody>
205
+ <tr className="border-b border-white/5">
206
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
207
+ width
208
+ </td>
209
+ <td className="px-6 py-4 text-sm !text-white/70">
210
+ number | string
211
+ </td>
212
+ <td className="px-6 py-4 text-sm !text-white/50">18</td>
213
+ <td className="px-6 py-4 text-sm !text-white/70">
214
+ Width of the icon in pixels
215
+ </td>
216
+ </tr>
217
+ <tr className="border-b border-white/5 !bg-black/10">
218
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
219
+ height
220
+ </td>
221
+ <td className="px-6 py-4 text-sm !text-white/70">
222
+ number | string
223
+ </td>
224
+ <td className="px-6 py-4 text-sm !text-white/50">18</td>
225
+ <td className="px-6 py-4 text-sm !text-white/70">
226
+ Height of the icon in pixels
227
+ </td>
228
+ </tr>
229
+ <tr className="border-b border-white/5">
230
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
231
+ stroke
232
+ </td>
233
+ <td className="px-6 py-4 text-sm !text-white/70">
234
+ string
235
+ </td>
236
+ <td className="px-6 py-4 text-sm !text-white/50">
237
+ currentColor
238
+ </td>
239
+ <td className="px-6 py-4 text-sm !text-white/70">
240
+ Stroke color of the icon
241
+ </td>
242
+ </tr>
243
+ <tr className="border-b border-white/5 !bg-black/10">
244
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
245
+ strokeWidth
246
+ </td>
247
+ <td className="px-6 py-4 text-sm !text-white/70">
248
+ number | string
249
+ </td>
250
+ <td className="px-6 py-4 text-sm !text-white/50">
251
+ 1.5
252
+ </td>
253
+ <td className="px-6 py-4 text-sm !text-white/70">
254
+ Stroke width of the icon
255
+ </td>
256
+ </tr>
257
+ <tr className="border-b border-white/5">
258
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
259
+ className
260
+ </td>
261
+ <td className="px-6 py-4 text-sm !text-white/70">
262
+ string
263
+ </td>
264
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
265
+ <td className="px-6 py-4 text-sm !text-white/70">
266
+ CSS classes for styling
267
+ </td>
268
+ </tr>
269
+ <tr className="!bg-black/10">
270
+ <td className="px-6 py-4 font-mono text-sm !text-indigo-300">
271
+ ...svgProps
272
+ </td>
273
+ <td className="px-6 py-4 text-sm !text-white/70">
274
+ SVGProps
275
+ </td>
276
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
277
+ <td className="px-6 py-4 text-sm !text-white/70">
278
+ All standard SVG element props
279
+ </td>
280
+ </tr>
281
+ </tbody>
282
+ </table>
283
+ </div>
284
+ </div>
285
+
286
+ {/* Size Variations */}
287
+ <div className="!space-y-8">
288
+ <h2 className="text-center text-3xl font-bold !text-white">
289
+ Size Variations
290
+ </h2>
291
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
292
+ <div className="!space-y-6">
293
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
294
+ <div className="!space-y-4">
295
+ <h3 className="text-lg font-semibold !text-indigo-300">
296
+ Standard Sizes
297
+ </h3>
298
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
299
+ <div className="text-center">
300
+ <PaintRollIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
301
+ <span className="text-xs text-white/60">12px</span>
302
+ </div>
303
+ <div className="text-center">
304
+ <PaintRollIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
305
+ <span className="text-xs text-white/60">16px</span>
306
+ </div>
307
+ <div className="text-center">
308
+ <PaintRollIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
309
+ <span className="text-xs text-white/60">20px</span>
310
+ </div>
311
+ <div className="text-center">
312
+ <PaintRollIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
313
+ <span className="text-xs text-white/60">24px</span>
314
+ </div>
315
+ <div className="text-center">
316
+ <PaintRollIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
317
+ <span className="text-xs text-white/60">32px</span>
318
+ </div>
319
+ <div className="text-center">
320
+ <PaintRollIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
321
+ <span className="text-xs text-white/60">48px</span>
322
+ </div>
323
+ </div>
324
+ </div>
325
+
326
+ <div className="!space-y-4">
327
+ <h3 className="text-lg font-semibold !text-indigo-300">
328
+ Code Example
329
+ </h3>
330
+ <div className="rounded-lg bg-black/40 p-4">
331
+ <pre className="overflow-x-auto text-sm !text-blue-300">
332
+ {`// Small (16px)
333
+ <PaintRollIcon className="h-4 w-4" />
334
+
335
+ // Medium (24px)
336
+ <PaintRollIcon className="h-6 w-6" />
337
+
338
+ // Large (32px)
339
+ <PaintRollIcon className="h-8 w-8" />
340
+
341
+ // Custom size
342
+ <PaintRollIcon width={40} height={40} />`}
343
+ </pre>
344
+ </div>
345
+ </div>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ </div>
350
+
351
+ {/* Color Variations */}
352
+ <div className="!space-y-8">
353
+ <h2 className="text-center text-3xl font-bold !text-white">
354
+ Color Variations
355
+ </h2>
356
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
357
+ <div className="!space-y-4">
358
+ <h3 className="text-lg font-semibold !text-indigo-300">
359
+ Design Tool Colors
360
+ </h3>
361
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
362
+ <div className="flex items-center gap-4">
363
+ <PaintRollIcon className="h-6 w-6 text-indigo-400" />
364
+ <div>
365
+ <div className="text-sm font-medium text-white">
366
+ Primary Tool
367
+ </div>
368
+ <div className="text-xs text-white/60">
369
+ text-indigo-400
370
+ </div>
371
+ </div>
372
+ </div>
373
+ <div className="flex items-center gap-4">
374
+ <PaintRollIcon className="h-6 w-6 text-violet-400" />
375
+ <div>
376
+ <div className="text-sm font-medium text-white">
377
+ Creative
378
+ </div>
379
+ <div className="text-xs text-white/60">
380
+ text-violet-400
381
+ </div>
382
+ </div>
383
+ </div>
384
+ <div className="flex items-center gap-4">
385
+ <PaintRollIcon className="h-6 w-6 text-purple-400" />
386
+ <div>
387
+ <div className="text-sm font-medium text-white">
388
+ Artistic
389
+ </div>
390
+ <div className="text-xs text-white/60">
391
+ text-purple-400
392
+ </div>
393
+ </div>
394
+ </div>
395
+ <div className="flex items-center gap-4">
396
+ <PaintRollIcon className="h-6 w-6 text-pink-400" />
397
+ <div>
398
+ <div className="text-sm font-medium text-white">
399
+ Accent
400
+ </div>
401
+ <div className="text-xs text-white/60">
402
+ text-pink-400
403
+ </div>
404
+ </div>
405
+ </div>
406
+ </div>
407
+ </div>
408
+
409
+ <div className="!space-y-4">
410
+ <h3 className="text-lg font-semibold !text-indigo-300">
411
+ Custom Colors
412
+ </h3>
413
+ <div className="rounded-lg bg-black/40 p-4">
414
+ <pre className="overflow-x-auto text-sm !text-green-300">
415
+ {`// Using Tailwind classes
416
+ <PaintRollIcon className="h-6 w-6 text-indigo-400" />
417
+ <PaintRollIcon className="h-6 w-6 text-violet-500" />
418
+
419
+ // Using CSS custom properties
420
+ <PaintRollIcon
421
+ className="h-6 w-6"
422
+ style={{ color: 'var(--color-primary)' }}
423
+ />
424
+
425
+ // Direct stroke prop
426
+ <PaintRollIcon
427
+ width={24}
428
+ height={24}
429
+ stroke="#6366f1"
430
+ />`}
431
+ </pre>
432
+ </div>
433
+ </div>
434
+ </div>
435
+ </div>
436
+
437
+ {/* Usage Examples */}
438
+ <div className="!space-y-8">
439
+ <h2 className="text-center text-3xl font-bold !text-white">
440
+ Usage Examples
441
+ </h2>
442
+
443
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
444
+ {/* Theme Customizer */}
445
+ <div className="!space-y-4">
446
+ <h3 className="text-lg font-semibold !text-indigo-300">
447
+ Theme Customizer
448
+ </h3>
449
+ <div className="!space-y-4">
450
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
451
+ <div className="!space-y-3">
452
+ <div className="flex items-center justify-between">
453
+ <h4 className="font-medium !text-white">
454
+ Appearance
455
+ </h4>
456
+ <button className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/20 px-3 py-1.5 text-indigo-200 transition-colors hover:bg-indigo-500/30">
457
+ <PaintRollIcon className="h-4 w-4" />
458
+ <span className="text-sm">Customize</span>
459
+ </button>
460
+ </div>
461
+ <div className="grid grid-cols-3 gap-2">
462
+ <div className="h-8 rounded bg-indigo-500/20"></div>
463
+ <div className="h-8 rounded bg-violet-500/20"></div>
464
+ <div className="h-8 rounded bg-purple-500/20"></div>
465
+ </div>
466
+ </div>
467
+ </div>
468
+ <div className="rounded-lg bg-black/40 p-4">
469
+ <pre className="overflow-x-auto text-sm !text-green-300">
470
+ {`// Theme customizer button
471
+ <button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-3 py-1.5 rounded">
472
+ <PaintRollIcon className="h-4 w-4" />
473
+ <span className="text-sm">Customize</span>
474
+ </button>`}
475
+ </pre>
476
+ </div>
477
+ </div>
478
+ </div>
479
+
480
+ {/* Design Tool Toolbar */}
481
+ <div className="!space-y-4">
482
+ <h3 className="text-lg font-semibold !text-indigo-300">
483
+ Design Tool Toolbar
484
+ </h3>
485
+ <div className="!space-y-4">
486
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
487
+ <div className="flex items-center gap-1">
488
+ <button className="rounded p-2 text-white/60 hover:bg-white/10">
489
+ <div className="h-5 w-5 rounded-sm border border-current"></div>
490
+ </button>
491
+ <button className="rounded p-2 text-white/60 hover:bg-white/10">
492
+ <div className="h-5 w-5 rounded-full border border-current"></div>
493
+ </button>
494
+ <button className="rounded bg-indigo-500/20 p-2 text-indigo-400">
495
+ <PaintRollIcon className="h-5 w-5" />
496
+ </button>
497
+ <button className="rounded p-2 text-white/60 hover:bg-white/10">
498
+ <div className="h-5 w-5 border-l-2 border-current"></div>
499
+ </button>
500
+ </div>
501
+ </div>
502
+ <div className="rounded-lg bg-black/40 p-4">
503
+ <pre className="overflow-x-auto text-sm !text-green-300">
504
+ {`// Design tool toolbar
505
+ <div className="flex items-center gap-1">
506
+ <button className="p-2 rounded text-white/60 hover:bg-white/10">
507
+ <RectangleIcon className="h-5 w-5" />
508
+ </button>
509
+ <button className="p-2 rounded bg-indigo-500/20 text-indigo-400">
510
+ <PaintRollIcon className="h-5 w-5" />
511
+ </button>
512
+ <button className="p-2 rounded text-white/60 hover:bg-white/10">
513
+ <LineIcon className="h-5 w-5" />
514
+ </button>
515
+ </div>`}
516
+ </pre>
517
+ </div>
518
+ </div>
519
+ </div>
520
+
521
+ {/* Style Panel */}
522
+ <div className="!space-y-4">
523
+ <h3 className="text-lg font-semibold !text-indigo-300">
524
+ Style Panel
525
+ </h3>
526
+ <div className="!space-y-4">
527
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
528
+ <div className="!space-y-3">
529
+ <div className="flex items-center gap-2">
530
+ <PaintRollIcon className="h-4 w-4 text-indigo-400" />
531
+ <span className="text-sm font-medium text-white">
532
+ Styling
533
+ </span>
534
+ </div>
535
+ <div className="!space-y-2">
536
+ <div className="flex items-center justify-between">
537
+ <span className="text-sm text-white/70">
538
+ Background
539
+ </span>
540
+ <div className="h-6 w-6 rounded border border-white/20 bg-indigo-500"></div>
541
+ </div>
542
+ <div className="flex items-center justify-between">
543
+ <span className="text-sm text-white/70">
544
+ Border
545
+ </span>
546
+ <div className="h-6 w-6 rounded border border-white/20 bg-violet-500"></div>
547
+ </div>
548
+ </div>
549
+ </div>
550
+ </div>
551
+ <div className="rounded-lg bg-black/40 p-4">
552
+ <pre className="overflow-x-auto text-sm !text-green-300">
553
+ {`// Style panel header
554
+ <div className="flex items-center gap-2">
555
+ <PaintRollIcon className="h-4 w-4 text-indigo-400" />
556
+ <span className="text-sm font-medium text-white">Styling</span>
557
+ </div>`}
558
+ </pre>
559
+ </div>
560
+ </div>
561
+ </div>
562
+
563
+ {/* Settings Menu */}
564
+ <div className="!space-y-4">
565
+ <h3 className="text-lg font-semibold !text-indigo-300">
566
+ Settings Menu
567
+ </h3>
568
+ <div className="!space-y-4">
569
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
570
+ <div className="!space-y-2">
571
+ <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
572
+ <div className="h-5 w-5 rounded bg-gray-500"></div>
573
+ <span className="text-sm">General</span>
574
+ </div>
575
+ <div className="flex items-center gap-3 rounded-lg bg-indigo-500/20 px-3 py-2 text-indigo-200">
576
+ <PaintRollIcon className="h-5 w-5" />
577
+ <span className="text-sm font-medium">
578
+ Appearance
579
+ </span>
580
+ </div>
581
+ <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
582
+ <div className="h-5 w-5 rounded bg-gray-500"></div>
583
+ <span className="text-sm">Privacy</span>
584
+ </div>
585
+ </div>
586
+ </div>
587
+ <div className="rounded-lg bg-black/40 p-4">
588
+ <pre className="overflow-x-auto text-sm !text-green-300">
589
+ {`// Active settings menu item
590
+ <div className="flex items-center gap-3 bg-indigo-500/20 px-3 py-2 rounded-lg text-indigo-200">
591
+ <PaintRollIcon className="h-5 w-5" />
592
+ <span className="text-sm font-medium">Appearance</span>
593
+ </div>`}
594
+ </pre>
595
+ </div>
596
+ </div>
597
+ </div>
598
+ </div>
599
+ </div>
600
+
601
+ {/* Accessibility */}
602
+ <div className="!space-y-8">
603
+ <h2 className="text-center text-3xl font-bold !text-white">
604
+ Accessibility Features
605
+ </h2>
606
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
607
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
608
+ <h3 className="text-lg font-semibold !text-green-300">
609
+ ✅ Built-in Features
610
+ </h3>
611
+ <ul className="!space-y-2 text-sm !text-white/70">
612
+ <li className="!text-white/70">
613
+ Uses Radix UI AccessibleIcon wrapper
614
+ </li>
615
+ <li className="!text-white/70">
616
+ Provides screen reader label "Paint Roll icon"
617
+ </li>
618
+ <li className="!text-white/70">
619
+ Supports keyboard navigation when interactive
620
+ </li>
621
+ <li className="!text-white/70">
622
+ Maintains proper color contrast ratios
623
+ </li>
624
+ <li className="!text-white/70">
625
+ Scales with user's font size preferences
626
+ </li>
627
+ </ul>
628
+ </div>
629
+
630
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
631
+ <h3 className="text-lg font-semibold !text-indigo-300">
632
+ 💡 Best Practices
633
+ </h3>
634
+ <ul className="!space-y-2 text-sm text-white/70">
635
+ <li className="!text-white/70">
636
+ Always pair with descriptive text or tooltips
637
+ </li>
638
+ <li className="!text-white/70">
639
+ Use consistent colors for design tools
640
+ </li>
641
+ <li className="!text-white/70">
642
+ Ensure sufficient color contrast
643
+ </li>
644
+ <li className="!text-white/70">
645
+ Add focus states for interactive elements
646
+ </li>
647
+ <li className="!text-white/70">
648
+ Consider tool context for better labeling
649
+ </li>
650
+ </ul>
651
+ </div>
652
+ </div>
653
+
654
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
655
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
656
+ Custom Accessibility Label
657
+ </h3>
658
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
659
+ <div className="rounded-lg bg-black/40 p-4">
660
+ <pre className="overflow-x-auto text-sm !text-blue-300">
661
+ {`// Custom implementation with specific label
662
+ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
663
+
664
+ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
665
+ return (
666
+ <AccessibleIcon label={label}>
667
+ <PaintRollIcon {...props} />
668
+ </AccessibleIcon>
669
+ )
670
+ }
671
+
672
+ // Usage with specific context
673
+ <CustomPaintRollIcon
674
+ label="Theme customization"
675
+ className="h-4 w-4 text-indigo-400"
676
+ />`}
677
+ </pre>
678
+ </div>
679
+ <div className="!space-y-4">
680
+ <p className="text-sm !text-white/70">
681
+ For specific contexts, you can wrap the PaintRollIcon
682
+ with a custom AccessibleIcon component that provides
683
+ more descriptive labels for different styling tools.
684
+ </p>
685
+ <div className="rounded-lg border border-indigo-500/20 bg-indigo-500/10 p-4">
686
+ <div className="flex items-center gap-2 text-sm text-indigo-200">
687
+ <PaintRollIcon className="h-4 w-4" />
688
+ <span>
689
+ This approach gives screen readers more context
690
+ about the styling functionality
691
+ </span>
692
+ </div>
693
+ </div>
694
+ </div>
695
+ </div>
696
+ </div>
697
+ </div>
698
+
699
+ {/* Related Icons */}
700
+ <div className="!space-y-8">
701
+ <h2 className="text-center text-3xl font-bold !text-white">
702
+ Related Icons
703
+ </h2>
704
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
705
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
706
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
707
+ <span className="text-2xl">🎨</span>
708
+ </div>
709
+ <div>
710
+ <div className="font-medium text-white">PaletteIcon</div>
711
+ <div className="text-xs text-white/60">
712
+ Color selection
713
+ </div>
714
+ </div>
715
+ </div>
716
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
717
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
718
+ <span className="text-2xl">🖌️</span>
719
+ </div>
720
+ <div>
721
+ <div className="font-medium text-white">BrushIcon</div>
722
+ <div className="text-xs text-white/60">Drawing tools</div>
723
+ </div>
724
+ </div>
725
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
726
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
727
+ <span className="text-2xl">⚙️</span>
728
+ </div>
729
+ <div>
730
+ <div className="font-medium text-white">SettingsIcon</div>
731
+ <div className="text-xs text-white/60">Configuration</div>
732
+ </div>
733
+ </div>
734
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
735
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
736
+ <span className="text-2xl">🌈</span>
737
+ </div>
738
+ <div>
739
+ <div className="font-medium text-white">ThemeIcon</div>
740
+ <div className="text-xs text-white/60">
741
+ Theme switching
742
+ </div>
743
+ </div>
744
+ </div>
745
+ </div>
746
+ </div>
747
+ </div>
748
+
749
+ {/* Footer */}
750
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
751
+ <div className="!mx-auto max-w-7xl px-6 py-8">
752
+ <div className="!space-y-4 text-center">
753
+ <p className="!text-white/60">
754
+ PaintRollIcon is part of the Aural UI icon library, designed
755
+ specifically for design tools, theme customization, and
756
+ styling interfaces with accessibility in mind.
757
+ </p>
758
+ <p className="text-sm !text-white/40">
759
+ Perfect for design applications, theme editors, and
760
+ customization interfaces that need clear visual
761
+ representation of styling tools. Follows WCAG guidelines for
762
+ accessibility.
763
+ </p>
764
+ </div>
765
+ </div>
766
+ </div>
767
+ </div>
768
+ </>
769
+ ),
770
+ },
771
+ },
772
+ tags: ["autodocs"],
773
+ argTypes: {
774
+ width: {
775
+ control: { type: "range", min: 8, max: 96, step: 2 },
776
+ description: "Width of the icon in pixels",
777
+ },
778
+ height: {
779
+ control: { type: "range", min: 8, max: 96, step: 2 },
780
+ description: "Height of the icon in pixels",
781
+ },
782
+ stroke: {
783
+ control: "color",
784
+ description: "Stroke color of the icon",
785
+ },
786
+ strokeWidth: {
787
+ control: { type: "range", min: 0.5, max: 4, step: 0.5 },
788
+ description: "Stroke width of the icon",
789
+ },
790
+ className: {
791
+ control: "text",
792
+ description: "CSS classes for styling",
793
+ },
794
+ },
795
+ }
796
+
797
+ export default meta
798
+ type Story = StoryObj<typeof PaintRollIcon>
799
+
800
+ // Story parameters for consistent dark theme
801
+ const storyParameters = {
802
+ backgrounds: {
803
+ default: "dark",
804
+ values: [
805
+ { name: "dark", value: "#0a0a0a" },
806
+ { name: "darker", value: "#000000" },
807
+ ],
808
+ },
809
+ }
810
+
811
+ export const Default: Story = {
812
+ args: {
813
+ width: 24,
814
+ height: 24,
815
+ className: "text-indigo-400",
816
+ },
817
+ parameters: storyParameters,
818
+ render: (args) => (
819
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
820
+ <PaintRollIcon {...args} />
821
+ </div>
822
+ ),
823
+ }
824
+
825
+ export const SizeVariations: Story = {
826
+ parameters: {
827
+ ...storyParameters,
828
+ docs: {
829
+ description: {
830
+ story:
831
+ "PaintRollIcon in different sizes, from small UI elements to large design tool displays.",
832
+ },
833
+ },
834
+ },
835
+ render: () => (
836
+ <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">
837
+ <div className="text-center">
838
+ <PaintRollIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
839
+ <span className="text-xs text-white/60">12px</span>
840
+ </div>
841
+ <div className="text-center">
842
+ <PaintRollIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
843
+ <span className="text-xs text-white/60">16px</span>
844
+ </div>
845
+ <div className="text-center">
846
+ <PaintRollIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
847
+ <span className="text-xs text-white/60">20px</span>
848
+ </div>
849
+ <div className="text-center">
850
+ <PaintRollIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
851
+ <span className="text-xs text-white/60">24px</span>
852
+ </div>
853
+ <div className="text-center">
854
+ <PaintRollIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
855
+ <span className="text-xs text-white/60">32px</span>
856
+ </div>
857
+ <div className="text-center">
858
+ <PaintRollIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
859
+ <span className="text-xs text-white/60">48px</span>
860
+ </div>
861
+ </div>
862
+ ),
863
+ }
864
+
865
+ export const ColorVariations: Story = {
866
+ parameters: {
867
+ ...storyParameters,
868
+ docs: {
869
+ description: {
870
+ story:
871
+ "PaintRollIcon in different colors suitable for design tools and styling interfaces.",
872
+ },
873
+ },
874
+ },
875
+ render: () => (
876
+ <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">
877
+ <div className="text-center">
878
+ <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">
879
+ <PaintRollIcon className="h-8 w-8 text-indigo-400" />
880
+ </div>
881
+ <div className="text-sm font-medium text-white">Primary Tool</div>
882
+ <div className="text-xs text-indigo-400">text-indigo-400</div>
883
+ </div>
884
+ <div className="text-center">
885
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-violet-500/30 bg-violet-500/20">
886
+ <PaintRollIcon className="h-8 w-8 text-violet-400" />
887
+ </div>
888
+ <div className="text-sm font-medium text-white">Creative</div>
889
+ <div className="text-xs text-violet-400">text-violet-400</div>
890
+ </div>
891
+ <div className="text-center">
892
+ <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">
893
+ <PaintRollIcon className="h-8 w-8 text-purple-400" />
894
+ </div>
895
+ <div className="text-sm font-medium text-white">Artistic</div>
896
+ <div className="text-xs text-purple-400">text-purple-400</div>
897
+ </div>
898
+ <div className="text-center">
899
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-pink-500/30 bg-pink-500/20">
900
+ <PaintRollIcon className="h-8 w-8 text-pink-400" />
901
+ </div>
902
+ <div className="text-sm font-medium text-white">Accent</div>
903
+ <div className="text-xs text-pink-400">text-pink-400</div>
904
+ </div>
905
+ </div>
906
+ ),
907
+ }
908
+
909
+ export const UsageExamples: Story = {
910
+ parameters: {
911
+ ...storyParameters,
912
+ docs: {
913
+ description: {
914
+ story:
915
+ "Real-world usage examples showing PaintRollIcon in different design tool and styling contexts.",
916
+ },
917
+ },
918
+ },
919
+ render: () => (
920
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
921
+ {/* Theme Customizer */}
922
+ <div className="!space-y-2">
923
+ <h3 className="text-sm font-medium text-white">Theme Customizer</h3>
924
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
925
+ <div className="!space-y-3">
926
+ <div className="flex items-center justify-between">
927
+ <h4 className="font-medium text-white">Appearance</h4>
928
+ <button className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/20 px-3 py-1.5 text-indigo-200 transition-colors hover:bg-indigo-500/30">
929
+ <PaintRollIcon className="h-4 w-4" />
930
+ <span className="text-sm">Customize</span>
931
+ </button>
932
+ </div>
933
+ <div className="grid grid-cols-3 gap-2">
934
+ <div className="h-8 rounded bg-indigo-500/20"></div>
935
+ <div className="h-8 rounded bg-violet-500/20"></div>
936
+ <div className="h-8 rounded bg-purple-500/20"></div>
937
+ </div>
938
+ </div>
939
+ </div>
940
+ </div>
941
+
942
+ {/* Design Tool Toolbar */}
943
+ <div className="!space-y-2">
944
+ <h3 className="text-sm font-medium text-white">Design Tool Toolbar</h3>
945
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
946
+ <div className="flex items-center gap-1">
947
+ <button className="rounded p-2 text-white/60 hover:bg-white/10">
948
+ <div className="h-5 w-5 rounded-sm border border-current"></div>
949
+ </button>
950
+ <button className="rounded p-2 text-white/60 hover:bg-white/10">
951
+ <div className="h-5 w-5 rounded-full border border-current"></div>
952
+ </button>
953
+ <button className="rounded bg-indigo-500/20 p-2 text-indigo-400">
954
+ <PaintRollIcon className="h-5 w-5" />
955
+ </button>
956
+ <button className="rounded p-2 text-white/60 hover:bg-white/10">
957
+ <div className="h-5 w-5 border-l-2 border-current"></div>
958
+ </button>
959
+ </div>
960
+ </div>
961
+ </div>
962
+
963
+ {/* Settings Menu */}
964
+ <div className="!space-y-2">
965
+ <h3 className="text-sm font-medium text-white">Settings Menu</h3>
966
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
967
+ <div className="!space-y-2">
968
+ <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
969
+ <div className="h-5 w-5 rounded bg-gray-500"></div>
970
+ <span className="text-sm">General</span>
971
+ </div>
972
+ <div className="flex items-center gap-3 rounded-lg bg-indigo-500/20 px-3 py-2 text-indigo-200">
973
+ <PaintRollIcon className="h-5 w-5" />
974
+ <span className="text-sm font-medium">Appearance</span>
975
+ </div>
976
+ <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
977
+ <div className="h-5 w-5 rounded bg-gray-500"></div>
978
+ <span className="text-sm">Privacy</span>
979
+ </div>
980
+ </div>
981
+ </div>
982
+ </div>
983
+ </div>
984
+ ),
985
+ }
986
+
987
+ export const Playground: Story = {
988
+ parameters: {
989
+ ...storyParameters,
990
+ docs: {
991
+ description: {
992
+ story:
993
+ "Interactive playground to experiment with different PaintRollIcon configurations.",
994
+ },
995
+ },
996
+ },
997
+ args: {
998
+ width: 32,
999
+ height: 32,
1000
+ className: "text-indigo-400",
1001
+ strokeWidth: 1.5,
1002
+ },
1003
+ render: (args) => (
1004
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1005
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1006
+ <PaintRollIcon {...args} />
1007
+ </div>
1008
+ </div>
1009
+ ),
1010
+ }