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