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,1027 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { LayoutColumnIcon } from "."
5
+
6
+ const meta: Meta<typeof LayoutColumnIcon> = {
7
+ title: "Icons/LayoutColumnIcon",
8
+ component: LayoutColumnIcon,
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-blue-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-blue-500/10 via-transparent to-purple-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-blue-500/30 bg-gradient-to-br from-blue-500/20 to-cyan-500/20">
90
+ <LayoutColumnIcon className="h-12 w-12 text-blue-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ LayoutColumnIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ A versatile layout column icon for representing two-column
97
+ layouts, sidebar navigation, dashboard panels, and content
98
+ organization. Perfect for layout controls, view switchers,
99
+ and UI configuration panels. 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-blue-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-cyan-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-indigo-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-blue-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 { LayoutColumnIcon } from "@icons/layout-column-icon"
151
+
152
+ function MyComponent() {
153
+ return (
154
+ <div className="flex items-center gap-2">
155
+ <LayoutColumnIcon className="h-5 w-5 text-blue-500" />
156
+ <span>Two Column View</span>
157
+ </div>
158
+ )
159
+ }`}
160
+ </pre>
161
+ </div>
162
+ </div>
163
+
164
+ <div className="!space-y-4">
165
+ <h3 className="text-xl font-semibold !text-blue-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
+ <div className="flex items-center gap-3 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2">
170
+ <LayoutColumnIcon className="h-5 w-5 text-blue-400" />
171
+ <span className="text-white">Two Column View</span>
172
+ </div>
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-blue-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">18</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-blue-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">18</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-blue-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-blue-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-blue-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-blue-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
+ <LayoutColumnIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
288
+ <span className="text-xs text-white/60">12px</span>
289
+ </div>
290
+ <div className="text-center">
291
+ <LayoutColumnIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
292
+ <span className="text-xs text-white/60">16px</span>
293
+ </div>
294
+ <div className="text-center">
295
+ <LayoutColumnIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
296
+ <span className="text-xs text-white/60">20px</span>
297
+ </div>
298
+ <div className="text-center">
299
+ <LayoutColumnIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
300
+ <span className="text-xs text-white/60">24px</span>
301
+ </div>
302
+ <div className="text-center">
303
+ <LayoutColumnIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
304
+ <span className="text-xs text-white/60">32px</span>
305
+ </div>
306
+ <div className="text-center">
307
+ <LayoutColumnIcon className="!mx-auto mb-2 h-12 w-12 text-blue-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-blue-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
+ <LayoutColumnIcon className="h-4 w-4" />
321
+
322
+ // Medium (24px)
323
+ <LayoutColumnIcon className="h-6 w-6" />
324
+
325
+ // Large (32px)
326
+ <LayoutColumnIcon className="h-8 w-8" />
327
+
328
+ // Custom size
329
+ <LayoutColumnIcon 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-blue-300">
346
+ 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
+ <LayoutColumnIcon className="h-6 w-6 text-blue-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-blue-400
357
+ </div>
358
+ </div>
359
+ </div>
360
+ <div className="flex items-center gap-4">
361
+ <LayoutColumnIcon className="h-6 w-6 text-gray-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-gray-400
368
+ </div>
369
+ </div>
370
+ </div>
371
+ <div className="flex items-center gap-4">
372
+ <LayoutColumnIcon className="h-6 w-6 text-purple-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-purple-400
379
+ </div>
380
+ </div>
381
+ </div>
382
+ <div className="flex items-center gap-4">
383
+ <LayoutColumnIcon className="h-6 w-6 text-emerald-400" />
384
+ <div>
385
+ <div className="text-sm font-medium text-white">
386
+ Success
387
+ </div>
388
+ <div className="text-xs text-white/60">
389
+ text-emerald-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-blue-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
+ <LayoutColumnIcon className="h-6 w-6 text-blue-400" />
404
+ <LayoutColumnIcon className="h-6 w-6 text-purple-500" />
405
+
406
+ // Using CSS custom properties
407
+ <LayoutColumnIcon
408
+ className="h-6 w-6"
409
+ style={{ color: 'var(--color-primary)' }}
410
+ />
411
+
412
+ // Direct fill prop
413
+ <LayoutColumnIcon
414
+ width={24}
415
+ height={24}
416
+ fill="#3b82f6"
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
+ {/* Layout Toggle */}
432
+ <div className="!space-y-4">
433
+ <h3 className="text-lg font-semibold !text-blue-300">
434
+ Layout Toggle Controls
435
+ </h3>
436
+ <div className="!space-y-4">
437
+ <div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 p-4">
438
+ <button className="flex items-center gap-2 rounded border border-blue-500/30 bg-blue-500/20 px-3 py-1.5 text-blue-200">
439
+ <LayoutColumnIcon className="h-4 w-4" />
440
+ <span className="text-sm">Two Column</span>
441
+ </button>
442
+ <button className="flex items-center gap-2 rounded border border-white/20 bg-white/5 px-3 py-1.5 text-white/60 hover:bg-white/10">
443
+ <div className="grid h-4 w-4 grid-cols-3 gap-0.5">
444
+ <div className="rounded-sm bg-current opacity-60"></div>
445
+ <div className="rounded-sm bg-current opacity-60"></div>
446
+ <div className="rounded-sm bg-current opacity-60"></div>
447
+ </div>
448
+ <span className="text-sm">Grid</span>
449
+ </button>
450
+ <button className="flex items-center gap-2 rounded border border-white/20 bg-white/5 px-3 py-1.5 text-white/60 hover:bg-white/10">
451
+ <div className="h-4 w-4 rounded border border-current"></div>
452
+ <span className="text-sm">Single</span>
453
+ </button>
454
+ </div>
455
+ <div className="rounded-lg bg-black/40 p-4">
456
+ <pre className="overflow-x-auto text-sm !text-green-300">
457
+ {`// Layout toggle buttons
458
+ <div className="flex items-center gap-2">
459
+ <button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-3 py-1.5 rounded text-blue-200">
460
+ <LayoutColumnIcon className="h-4 w-4" />
461
+ <span className="text-sm">Two Column</span>
462
+ </button>
463
+ <button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-1.5 rounded text-white/60">
464
+ <GridIcon className="h-4 w-4" />
465
+ <span className="text-sm">Grid</span>
466
+ </button>
467
+ </div>`}
468
+ </pre>
469
+ </div>
470
+ </div>
471
+ </div>
472
+
473
+ {/* Sidebar Navigation */}
474
+ <div className="!space-y-4">
475
+ <h3 className="text-lg font-semibold !text-blue-300">
476
+ Sidebar Navigation
477
+ </h3>
478
+ <div className="!space-y-4">
479
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
480
+ <div className="!space-y-2">
481
+ <div className="flex items-center gap-3 rounded-lg bg-blue-500/20 px-3 py-2 text-blue-200">
482
+ <LayoutColumnIcon className="h-5 w-5" />
483
+ <span className="text-sm font-medium">
484
+ Dashboard
485
+ </span>
486
+ </div>
487
+ <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
488
+ <div className="h-5 w-5 rounded bg-gray-600"></div>
489
+ <span className="text-sm">Analytics</span>
490
+ </div>
491
+ <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
492
+ <div className="h-5 w-5 rounded bg-gray-600"></div>
493
+ <span className="text-sm">Settings</span>
494
+ </div>
495
+ </div>
496
+ </div>
497
+ <div className="rounded-lg bg-black/40 p-4">
498
+ <pre className="overflow-x-auto text-sm !text-green-300">
499
+ {`// Active navigation item
500
+ <div className="flex items-center gap-3 bg-blue-500/20 px-3 py-2 rounded-lg text-blue-200">
501
+ <LayoutColumnIcon className="h-5 w-5" />
502
+ <span className="text-sm font-medium">Dashboard</span>
503
+ </div>
504
+
505
+ // Regular navigation items
506
+ <div className="flex items-center gap-3 px-3 py-2 rounded-lg text-white/60 hover:bg-white/5">
507
+ <AnalyticsIcon className="h-5 w-5" />
508
+ <span className="text-sm">Analytics</span>
509
+ </div>`}
510
+ </pre>
511
+ </div>
512
+ </div>
513
+ </div>
514
+
515
+ {/* View Switcher */}
516
+ <div className="!space-y-4">
517
+ <h3 className="text-lg font-semibold !text-blue-300">
518
+ View Switcher
519
+ </h3>
520
+ <div className="!space-y-4">
521
+ <div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
522
+ <h4 className="font-medium !text-white">
523
+ Content View
524
+ </h4>
525
+ <div className="flex items-center rounded-lg border border-white/10 bg-white/5 p-1">
526
+ <button className="flex items-center gap-2 rounded bg-blue-500/20 px-2 py-1 text-blue-200">
527
+ <LayoutColumnIcon className="h-4 w-4" />
528
+ <span className="text-xs">Split</span>
529
+ </button>
530
+ <button className="flex items-center gap-2 rounded px-2 py-1 text-white/60 hover:bg-white/10">
531
+ <div className="h-4 w-4 rounded border border-current"></div>
532
+ <span className="text-xs">Full</span>
533
+ </button>
534
+ </div>
535
+ </div>
536
+ <div className="rounded-lg bg-black/40 p-4">
537
+ <pre className="overflow-x-auto text-sm !text-green-300">
538
+ {`// View switcher component
539
+ <div className="flex items-center justify-between">
540
+ <h4 className="font-medium text-white">Content View</h4>
541
+ <div className="flex items-center rounded-lg border border-white/10 bg-white/5 p-1">
542
+ <button className="flex items-center gap-2 rounded bg-blue-500/20 px-2 py-1 text-blue-200">
543
+ <LayoutColumnIcon className="h-4 w-4" />
544
+ <span className="text-xs">Split</span>
545
+ </button>
546
+ <button className="flex items-center gap-2 rounded px-2 py-1 text-white/60 hover:bg-white/10">
547
+ <FullViewIcon className="h-4 w-4" />
548
+ <span className="text-xs">Full</span>
549
+ </button>
550
+ </div>
551
+ </div>`}
552
+ </pre>
553
+ </div>
554
+ </div>
555
+ </div>
556
+
557
+ {/* Toolbar Integration */}
558
+ <div className="!space-y-4">
559
+ <h3 className="text-lg font-semibold !text-blue-300">
560
+ Toolbar Integration
561
+ </h3>
562
+ <div className="!space-y-4">
563
+ <div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-3">
564
+ <div className="flex items-center gap-2">
565
+ <button className="rounded p-1.5 hover:bg-white/10">
566
+ <div className="h-4 w-4 rounded bg-gray-600"></div>
567
+ </button>
568
+ <button className="rounded p-1.5 hover:bg-white/10">
569
+ <div className="h-4 w-4 rounded bg-gray-600"></div>
570
+ </button>
571
+ </div>
572
+ <div className="flex items-center gap-1">
573
+ <button className="rounded bg-blue-500/20 p-1.5 text-blue-400">
574
+ <LayoutColumnIcon className="h-4 w-4" />
575
+ </button>
576
+ <button className="rounded p-1.5 text-white/60 hover:bg-white/10">
577
+ <div className="grid h-4 w-4 grid-cols-2 gap-0.5">
578
+ <div className="rounded-sm bg-current"></div>
579
+ <div className="rounded-sm bg-current"></div>
580
+ <div className="rounded-sm bg-current"></div>
581
+ <div className="rounded-sm bg-current"></div>
582
+ </div>
583
+ </button>
584
+ <button className="rounded p-1.5 text-white/60 hover:bg-white/10">
585
+ <div className="h-4 w-4 rounded border border-current"></div>
586
+ </button>
587
+ </div>
588
+ </div>
589
+ <div className="rounded-lg bg-black/40 p-4">
590
+ <pre className="overflow-x-auto text-sm !text-green-300">
591
+ {`// Toolbar with layout controls
592
+ <div className="flex items-center justify-between p-3">
593
+ <div className="flex items-center gap-2">
594
+ <button className="p-1.5 rounded hover:bg-white/10">
595
+ <SaveIcon className="h-4 w-4" />
596
+ </button>
597
+ <button className="p-1.5 rounded hover:bg-white/10">
598
+ <ExportIcon className="h-4 w-4" />
599
+ </button>
600
+ </div>
601
+ <div className="flex items-center gap-1">
602
+ <button className="p-1.5 rounded bg-blue-500/20 text-blue-400">
603
+ <LayoutColumnIcon className="h-4 w-4" />
604
+ </button>
605
+ <button className="p-1.5 rounded text-white/60 hover:bg-white/10">
606
+ <GridIcon className="h-4 w-4" />
607
+ </button>
608
+ </div>
609
+ </div>`}
610
+ </pre>
611
+ </div>
612
+ </div>
613
+ </div>
614
+ </div>
615
+ </div>
616
+
617
+ {/* Accessibility */}
618
+ <div className="!space-y-8">
619
+ <h2 className="text-center text-3xl font-bold !text-white">
620
+ Accessibility Features
621
+ </h2>
622
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
623
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
624
+ <h3 className="text-lg font-semibold !text-green-300">
625
+ ✅ Built-in Features
626
+ </h3>
627
+ <ul className="!space-y-2 text-sm !text-white/70">
628
+ <li className="!text-white/70">
629
+ Uses Radix UI AccessibleIcon wrapper
630
+ </li>
631
+ <li className="!text-white/70">
632
+ Provides screen reader label "Layout Column Icon"
633
+ </li>
634
+ <li className="!text-white/70">
635
+ Supports keyboard navigation when interactive
636
+ </li>
637
+ <li className="!text-white/70">
638
+ Maintains proper color contrast ratios
639
+ </li>
640
+ <li className="!text-white/70">
641
+ Scales with user's font size preferences
642
+ </li>
643
+ </ul>
644
+ </div>
645
+
646
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
647
+ <h3 className="text-lg font-semibold !text-blue-300">
648
+ 💡 Best Practices
649
+ </h3>
650
+ <ul className="!space-y-2 text-sm text-white/70">
651
+ <li className="!text-white/70">
652
+ Always pair with descriptive text labels
653
+ </li>
654
+ <li className="!text-white/70">
655
+ Use consistent colors for layout controls
656
+ </li>
657
+ <li className="!text-white/70">
658
+ Ensure sufficient color contrast
659
+ </li>
660
+ <li className="!text-white/70">
661
+ Add focus states for interactive elements
662
+ </li>
663
+ <li className="!text-white/70">
664
+ Provide keyboard shortcuts for layout switching
665
+ </li>
666
+ </ul>
667
+ </div>
668
+ </div>
669
+
670
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
671
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
672
+ Custom Accessibility Label
673
+ </h3>
674
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
675
+ <div className="rounded-lg bg-black/40 p-4">
676
+ <pre className="overflow-x-auto text-sm !text-blue-300">
677
+ {`// Custom implementation with specific label
678
+ import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
679
+
680
+ function CustomLayoutColumnIcon({ label = "Switch to two column layout", ...props }) {
681
+ return (
682
+ <AccessibleIcon label={label}>
683
+ <LayoutColumnIcon {...props} />
684
+ </AccessibleIcon>
685
+ )
686
+ }
687
+
688
+ // Usage with specific context
689
+ <CustomLayoutColumnIcon
690
+ label="Switch to dashboard split view"
691
+ className="h-4 w-4 text-blue-400"
692
+ />`}
693
+ </pre>
694
+ </div>
695
+ <div className="!space-y-4">
696
+ <p className="text-sm !text-white/70">
697
+ For specific contexts, you can wrap the LayoutColumnIcon
698
+ with a custom AccessibleIcon component that provides
699
+ more descriptive labels for different layout actions.
700
+ </p>
701
+ <div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
702
+ <div className="flex items-center gap-2 text-sm text-blue-200">
703
+ <LayoutColumnIcon className="h-4 w-4" />
704
+ <span>
705
+ This approach gives screen readers more context
706
+ about layout actions
707
+ </span>
708
+ </div>
709
+ </div>
710
+ </div>
711
+ </div>
712
+ </div>
713
+ </div>
714
+
715
+ {/* Related Icons */}
716
+ <div className="!space-y-8">
717
+ <h2 className="text-center text-3xl font-bold !text-white">
718
+ Related Icons
719
+ </h2>
720
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
721
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
722
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
723
+ <div className="grid h-6 w-6 grid-cols-3 gap-1">
724
+ <div className="rounded bg-blue-400"></div>
725
+ <div className="rounded bg-blue-400"></div>
726
+ <div className="rounded bg-blue-400"></div>
727
+ <div className="rounded bg-blue-400"></div>
728
+ <div className="rounded bg-blue-400"></div>
729
+ <div className="rounded bg-blue-400"></div>
730
+ </div>
731
+ </div>
732
+ <div>
733
+ <div className="font-medium text-white">GridIcon</div>
734
+ <div className="text-xs text-white/60">Grid layouts</div>
735
+ </div>
736
+ </div>
737
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
738
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
739
+ <div className="h-6 w-6 rounded border-2 border-green-400"></div>
740
+ </div>
741
+ <div>
742
+ <div className="font-medium text-white">
743
+ SingleViewIcon
744
+ </div>
745
+ <div className="text-xs text-white/60">Single column</div>
746
+ </div>
747
+ </div>
748
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
749
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
750
+ <div className="flex h-6 w-6 gap-1">
751
+ <div className="flex-1 rounded bg-purple-400"></div>
752
+ <div className="flex-1 rounded bg-purple-400"></div>
753
+ <div className="flex-1 rounded bg-purple-400"></div>
754
+ </div>
755
+ </div>
756
+ <div>
757
+ <div className="font-medium text-white">RowsIcon</div>
758
+ <div className="text-xs text-white/60">Row layouts</div>
759
+ </div>
760
+ </div>
761
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
762
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
763
+ <div className="flex h-6 w-6 gap-1">
764
+ <div className="w-2 rounded bg-orange-400"></div>
765
+ <div className="flex-1 rounded bg-orange-400"></div>
766
+ </div>
767
+ </div>
768
+ <div>
769
+ <div className="font-medium text-white">SidebarIcon</div>
770
+ <div className="text-xs text-white/60">
771
+ Sidebar layouts
772
+ </div>
773
+ </div>
774
+ </div>
775
+ </div>
776
+ </div>
777
+ </div>
778
+
779
+ {/* Footer */}
780
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
781
+ <div className="!mx-auto max-w-7xl px-6 py-8">
782
+ <div className="!space-y-4 text-center">
783
+ <p className="!text-white/60">
784
+ LayoutColumnIcon is part of the Aural UI icon library,
785
+ designed specifically for layout controls and view switching
786
+ with accessibility in mind.
787
+ </p>
788
+ <p className="text-sm !text-white/40">
789
+ Perfect for dashboards, content management systems, and
790
+ applications that require flexible layout options. Follows
791
+ WCAG guidelines for accessibility.
792
+ </p>
793
+ </div>
794
+ </div>
795
+ </div>
796
+ </div>
797
+ </>
798
+ ),
799
+ },
800
+ },
801
+ tags: ["autodocs"],
802
+ argTypes: {
803
+ width: {
804
+ control: { type: "range", min: 8, max: 96, step: 2 },
805
+ description: "Width of the icon in pixels",
806
+ },
807
+ height: {
808
+ control: { type: "range", min: 8, max: 96, step: 2 },
809
+ description: "Height of the icon in pixels",
810
+ },
811
+ fill: {
812
+ control: "color",
813
+ description: "Fill color of the icon",
814
+ },
815
+ className: {
816
+ control: "text",
817
+ description: "CSS classes for styling",
818
+ },
819
+ },
820
+ }
821
+
822
+ export default meta
823
+ type Story = StoryObj<typeof LayoutColumnIcon>
824
+
825
+ // Story parameters for consistent dark theme
826
+ const storyParameters = {
827
+ backgrounds: {
828
+ default: "dark",
829
+ values: [
830
+ { name: "dark", value: "#0a0a0a" },
831
+ { name: "darker", value: "#000000" },
832
+ ],
833
+ },
834
+ }
835
+
836
+ export const Default: Story = {
837
+ args: {
838
+ width: 24,
839
+ height: 24,
840
+ className: "text-blue-400",
841
+ },
842
+ parameters: storyParameters,
843
+ render: (args) => (
844
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
845
+ <LayoutColumnIcon {...args} />
846
+ </div>
847
+ ),
848
+ }
849
+
850
+ export const SizeVariations: Story = {
851
+ parameters: {
852
+ ...storyParameters,
853
+ docs: {
854
+ description: {
855
+ story:
856
+ "LayoutColumnIcon in different sizes, from small toolbar buttons to large dashboard controls.",
857
+ },
858
+ },
859
+ },
860
+ render: () => (
861
+ <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">
862
+ <div className="text-center">
863
+ <LayoutColumnIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
864
+ <span className="text-xs text-white/60">12px</span>
865
+ </div>
866
+ <div className="text-center">
867
+ <LayoutColumnIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
868
+ <span className="text-xs text-white/60">16px</span>
869
+ </div>
870
+ <div className="text-center">
871
+ <LayoutColumnIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
872
+ <span className="text-xs text-white/60">20px</span>
873
+ </div>
874
+ <div className="text-center">
875
+ <LayoutColumnIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
876
+ <span className="text-xs text-white/60">24px</span>
877
+ </div>
878
+ <div className="text-center">
879
+ <LayoutColumnIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
880
+ <span className="text-xs text-white/60">32px</span>
881
+ </div>
882
+ <div className="text-center">
883
+ <LayoutColumnIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
884
+ <span className="text-xs text-white/60">48px</span>
885
+ </div>
886
+ </div>
887
+ ),
888
+ }
889
+
890
+ export const ColorVariations: Story = {
891
+ parameters: {
892
+ ...storyParameters,
893
+ docs: {
894
+ description: {
895
+ story:
896
+ "LayoutColumnIcon in different theme colors for various UI contexts.",
897
+ },
898
+ },
899
+ },
900
+ render: () => (
901
+ <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">
902
+ <div className="text-center">
903
+ <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">
904
+ <LayoutColumnIcon className="h-8 w-8 text-blue-400" />
905
+ </div>
906
+ <div className="text-sm font-medium text-white">Primary</div>
907
+ <div className="text-xs text-blue-400">text-blue-400</div>
908
+ </div>
909
+ <div className="text-center">
910
+ <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">
911
+ <LayoutColumnIcon className="h-8 w-8 text-gray-400" />
912
+ </div>
913
+ <div className="text-sm font-medium text-white">Secondary</div>
914
+ <div className="text-xs text-gray-400">text-gray-400</div>
915
+ </div>
916
+ <div className="text-center">
917
+ <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">
918
+ <LayoutColumnIcon className="h-8 w-8 text-purple-400" />
919
+ </div>
920
+ <div className="text-sm font-medium text-white">Accent</div>
921
+ <div className="text-xs text-purple-400">text-purple-400</div>
922
+ </div>
923
+ <div className="text-center">
924
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
925
+ <LayoutColumnIcon className="h-8 w-8 text-emerald-400" />
926
+ </div>
927
+ <div className="text-sm font-medium text-white">Success</div>
928
+ <div className="text-xs text-emerald-400">text-emerald-400</div>
929
+ </div>
930
+ </div>
931
+ ),
932
+ }
933
+
934
+ export const UsageExamples: Story = {
935
+ parameters: {
936
+ ...storyParameters,
937
+ docs: {
938
+ description: {
939
+ story:
940
+ "Real-world usage examples showing LayoutColumnIcon in different layout control contexts.",
941
+ },
942
+ },
943
+ },
944
+ render: () => (
945
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
946
+ {/* Layout Toggle */}
947
+ <div className="!space-y-2">
948
+ <h3 className="text-sm font-medium text-white">
949
+ Layout Toggle Controls
950
+ </h3>
951
+ <div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 p-4">
952
+ <button className="flex items-center gap-2 rounded border border-blue-500/30 bg-blue-500/20 px-3 py-1.5 text-blue-200">
953
+ <LayoutColumnIcon className="h-4 w-4" />
954
+ <span className="text-sm">Two Column</span>
955
+ </button>
956
+ <button className="flex items-center gap-2 rounded border border-white/20 bg-white/5 px-3 py-1.5 text-white/60 hover:bg-white/10">
957
+ <div className="grid h-4 w-4 grid-cols-3 gap-0.5">
958
+ <div className="rounded-sm bg-current opacity-60"></div>
959
+ <div className="rounded-sm bg-current opacity-60"></div>
960
+ <div className="rounded-sm bg-current opacity-60"></div>
961
+ </div>
962
+ <span className="text-sm">Grid</span>
963
+ </button>
964
+ </div>
965
+ </div>
966
+
967
+ {/* Sidebar Navigation */}
968
+ <div className="!space-y-2">
969
+ <h3 className="text-sm font-medium text-white">Sidebar Navigation</h3>
970
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
971
+ <div className="!space-y-2">
972
+ <div className="flex items-center gap-3 rounded-lg bg-blue-500/20 px-3 py-2 text-blue-200">
973
+ <LayoutColumnIcon className="h-5 w-5" />
974
+ <span className="text-sm font-medium">Dashboard</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-600"></div>
978
+ <span className="text-sm">Analytics</span>
979
+ </div>
980
+ </div>
981
+ </div>
982
+ </div>
983
+
984
+ {/* View Switcher */}
985
+ <div className="!space-y-2">
986
+ <h3 className="text-sm font-medium text-white">View Switcher</h3>
987
+ <div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
988
+ <h4 className="font-medium text-white">Content View</h4>
989
+ <div className="flex items-center rounded-lg border border-white/10 bg-white/5 p-1">
990
+ <button className="flex items-center gap-2 rounded bg-blue-500/20 px-2 py-1 text-blue-200">
991
+ <LayoutColumnIcon className="h-4 w-4" />
992
+ <span className="text-xs">Split</span>
993
+ </button>
994
+ <button className="flex items-center gap-2 rounded px-2 py-1 text-white/60 hover:bg-white/10">
995
+ <div className="h-4 w-4 rounded border border-current"></div>
996
+ <span className="text-xs">Full</span>
997
+ </button>
998
+ </div>
999
+ </div>
1000
+ </div>
1001
+ </div>
1002
+ ),
1003
+ }
1004
+
1005
+ export const Playground: Story = {
1006
+ parameters: {
1007
+ ...storyParameters,
1008
+ docs: {
1009
+ description: {
1010
+ story:
1011
+ "Interactive playground to experiment with different LayoutColumnIcon configurations.",
1012
+ },
1013
+ },
1014
+ },
1015
+ args: {
1016
+ width: 32,
1017
+ height: 32,
1018
+ className: "text-blue-400",
1019
+ },
1020
+ render: (args) => (
1021
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1022
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1023
+ <LayoutColumnIcon {...args} />
1024
+ </div>
1025
+ </div>
1026
+ ),
1027
+ }