aural-ui 4.0.1 → 4.2.0

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 (175) hide show
  1. package/README.md +8 -1
  2. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
  3. package/dist/components/avatar/Avatar.stories.tsx +219 -235
  4. package/dist/components/badge/Badge.stories.tsx +379 -116
  5. package/dist/components/banner/Banner.stories.tsx +445 -391
  6. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  7. package/dist/components/button/Button.stories.tsx +585 -230
  8. package/dist/components/card/Card.stories.tsx +619 -301
  9. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  10. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  11. package/dist/components/chip/Chip.stories.tsx +362 -168
  12. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
  13. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  14. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  15. package/dist/components/command/Command.stories.tsx +530 -867
  16. package/dist/components/dialog/Dialog.stories.tsx +501 -950
  17. package/dist/components/divider/Divider.stories.tsx +264 -527
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -1023
  20. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
  21. package/dist/components/form/Form.stories.tsx +560 -274
  22. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  23. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
  24. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  25. package/dist/components/if-else/if-else.stories.tsx +370 -83
  26. package/dist/components/input/Input.stories.tsx +436 -368
  27. package/dist/components/label/Label.stories.tsx +156 -154
  28. package/dist/components/list/List.stories.tsx +484 -835
  29. package/dist/components/marquee/Marquee.stories.tsx +356 -712
  30. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
  31. package/dist/components/overlay/Overlay.stories.tsx +452 -824
  32. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  33. package/dist/components/popover/Popover.stories.tsx +481 -896
  34. package/dist/components/radio/Radio.stories.tsx +432 -124
  35. package/dist/components/resizable/Resizable.stories.tsx +495 -799
  36. package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
  37. package/dist/components/search/Search.stories.tsx +312 -595
  38. package/dist/components/select/Select.stories.tsx +684 -789
  39. package/dist/components/sheet/Sheet.stories.tsx +671 -950
  40. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  41. package/dist/components/slider/Slider.stories.tsx +383 -760
  42. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  43. package/dist/components/switch/Switch.stories.tsx +461 -208
  44. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  45. package/dist/components/table/Table.stories.tsx +770 -916
  46. package/dist/components/tabs/Tabs.stories.tsx +458 -1455
  47. package/dist/components/tag/Tag.stories.tsx +714 -542
  48. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  49. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
  50. package/dist/components/toast/Toast.stories.tsx +452 -1339
  51. package/dist/components/toggle/Toggle.stories.tsx +488 -931
  52. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
  53. package/dist/components/typography/Typography.stories.tsx +406 -89
  54. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  55. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  56. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  57. package/dist/icons/Icons.stories.tsx +0 -12
  58. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
  59. package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
  60. package/dist/icons/all-icons.tsx +37 -16
  61. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
  62. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
  63. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
  64. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
  65. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
  66. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
  67. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
  68. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
  69. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
  70. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
  71. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
  72. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
  73. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
  74. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
  75. package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
  76. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
  77. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
  78. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
  79. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
  80. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
  81. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
  82. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
  83. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
  84. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
  85. package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
  86. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
  87. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
  88. package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
  89. package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
  90. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
  91. package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
  92. package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
  93. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
  94. package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
  95. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
  96. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
  97. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
  98. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
  99. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
  100. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
  101. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
  102. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
  103. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
  104. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
  105. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
  106. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
  107. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
  108. package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
  109. package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
  110. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
  111. package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
  112. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
  113. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
  114. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
  115. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
  116. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
  117. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
  118. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
  119. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
  120. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
  121. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
  122. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
  123. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
  124. package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
  125. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
  126. package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
  127. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
  128. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
  129. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
  130. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
  131. package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
  132. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
  133. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
  134. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
  135. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
  136. package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
  137. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
  138. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
  139. package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
  140. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
  141. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
  142. package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
  143. package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
  144. package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
  145. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
  146. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
  147. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
  148. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
  149. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
  150. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
  151. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
  152. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
  153. package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
  154. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
  155. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
  156. package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
  157. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
  158. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
  159. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
  160. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
  161. package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
  162. package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
  163. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
  164. package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
  165. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
  166. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
  167. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
  168. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
  169. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
  170. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
  171. package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
  172. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
  173. package/dist/index.cjs +90 -90
  174. package/dist/index.js +90 -90
  175. package/package.json +8 -3
@@ -1,6 +1,20 @@
1
1
  import React from "react"
2
2
  import type { Meta, StoryObj } from "@storybook/react-vite"
3
3
 
4
+ import { ColumnWideAddIcon } from "src/ui/icons/column-wide-add-icon"
5
+ import { FilterBarRowIcon } from "src/ui/icons/filter-bar-row-icon"
6
+ import { LayoutLeftIcon } from "src/ui/icons/layout-left-icon"
7
+ import { LayoutRightIcon } from "src/ui/icons/layout-right-icon"
8
+ import {
9
+ IconColorVariations,
10
+ IconDefaultCanvas,
11
+ IconPlaygroundCanvas,
12
+ IconSizeVariations,
13
+ IconUsageCanvas,
14
+ IconUsageSection,
15
+ } from "src/ui/story-spec/icons/icon-story-canvas"
16
+ import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
17
+
4
18
  import { LayoutColumnIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof LayoutColumnIcon> = {
@@ -18,844 +32,69 @@ const meta: Meta<typeof LayoutColumnIcon> = {
18
32
  },
19
33
  docs: {
20
34
  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: var(--color-fm-surface-primary) ;
44
- }
45
- #storybook-docs {
46
- background: var(--color-fm-surface-primary) ;
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: var(--color-fm-icon-active) ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: var(--color-fm-secondary) ;
57
- }
58
- .sbdocs-code {
59
- background: var(--color-fm-surface-secondary) ;
60
- color: var(--color-fm-secondary-500) ;
61
- border: 1px solid var(--color-fm-divider-secondary) ;
62
- }
63
- .sbdocs-pre {
64
- background: var(--color-fm-surface-secondary) ;
65
- border: 1px solid var(--color-fm-divider-secondary) ;
66
- }
67
- .sbdocs-table {
68
- background: var(--color-fm-surface-secondary) ;
69
- border: 1px solid var(--color-fm-divider-secondary) ;
70
- }
71
- .sbdocs-table th {
72
- background: var(--color-fm-surface-secondary) ;
73
- color: var(--color-fm-icon-active) ;
74
- border-bottom: 1px solid var(--color-fm-divider-secondary) ;
75
- }
76
- .sbdocs-table td {
77
- color: var(--color-fm-secondary) ;
78
- border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
84
- {/* Header */}
85
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
86
- <div className="from-fm-icon-info/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
87
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
- <div className="!space-y-6 text-center">
89
- <div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
90
- <LayoutColumnIcon className="text-fm-icon-info h-12 w-12" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- LayoutColumnIcon
94
- </h1>
95
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
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-fm-icon-info text-3xl font-bold">
107
- Accessible
108
- </div>
109
- <div className="text-fm-tertiary text-sm">
110
- Screen reader friendly
111
- </div>
112
- </div>
113
- <div className="bg-fm-divider-primary h-8 w-px" />
114
- <div className="text-center">
115
- <div className="text-fm-icon-info text-3xl font-bold">
116
- Scalable
117
- </div>
118
- <div className="text-fm-tertiary text-sm">
119
- Any size needed
120
- </div>
121
- </div>
122
- <div className="bg-fm-divider-primary h-8 w-px" />
123
- <div className="text-center">
124
- <div className="text-fm-icon-info text-3xl font-bold">
125
- Flexible
126
- </div>
127
- <div className="text-fm-tertiary text-sm">
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-fm-icon-active! text-center text-3xl font-bold">
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-fm-icon-info! text-xl font-semibold">
146
- Basic Usage
147
- </h3>
148
- <div className="bg-fm-surface-secondary rounded-lg p-4">
149
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
150
- {`import { LayoutColumnIcon } from "@icons/layout-column-icon"
151
-
152
- function MyComponent() {
35
+ <AuralIconDocsPage
36
+ accentToken="info"
37
+ features={[
38
+ { title: "Layout", description: "Column layout toggle" },
39
+ { title: "View Mode", description: "Switch to column view" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { LayoutColumnIcon } from "src/ui/icons/layout-column-icon"
44
+
45
+ function ColumnViewToggle() {
153
46
  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-fm-icon-info! text-xl font-semibold">
166
- Live Preview
167
- </h3>
168
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
169
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-3 rounded-lg border px-4 py-2">
170
- <LayoutColumnIcon className="text-fm-icon-info h-5 w-5" />
171
- <span className="text-fm-icon-active">
172
- Two Column View
173
- </span>
174
- </div>
175
- </div>
176
- </div>
177
- </div>
178
- </div>
179
-
180
- {/* Props Documentation */}
181
- <div className="!space-y-8">
182
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
183
- Props & Configuration
184
- </h2>
185
-
186
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
187
- <div className="bg-fm-surface-secondary p-4">
188
- <h3 className="text-fm-icon-active! text-xl font-semibold">
189
- Props
190
- </h3>
191
- </div>
192
- <table className="!my-0 w-full">
193
- <thead className="bg-fm-surface-secondary">
194
- <tr className="border-fm-divider-secondary border-b">
195
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
196
- Prop
197
- </th>
198
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
199
- Type
200
- </th>
201
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
202
- Default
203
- </th>
204
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
205
- Description
206
- </th>
207
- </tr>
208
- </thead>
209
- <tbody>
210
- {" "}
211
- <tr className="bg-fm-surface-secondary!">
212
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
213
- withAccessibility
214
- </td>
215
- <td className="text-fm-secondary! px-6 py-4 text-sm">
216
- boolean
217
- </td>
218
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
219
- true
220
- </td>
221
- <td className="text-fm-secondary! px-6 py-4 text-sm">
222
- Whether to wrap the icon with accessibility feature
223
- </td>
224
- </tr>
225
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
226
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
227
- height
228
- </td>
229
- <td className="text-fm-secondary! px-6 py-4 text-sm">
230
- number | string
231
- </td>
232
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
233
- 18
234
- </td>
235
- <td className="text-fm-secondary! px-6 py-4 text-sm">
236
- Height of the icon in pixels
237
- </td>
238
- </tr>
239
- <tr className="border-fm-divider-tertiary border-b">
240
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
241
- fill
242
- </td>
243
- <td className="text-fm-secondary! px-6 py-4 text-sm">
244
- string
245
- </td>
246
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
247
- currentColor
248
- </td>
249
- <td className="text-fm-secondary! px-6 py-4 text-sm">
250
- Fill color of the icon
251
- </td>
252
- </tr>
253
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
254
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
255
- className
256
- </td>
257
- <td className="text-fm-secondary! px-6 py-4 text-sm">
258
- string
259
- </td>
260
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
261
- -
262
- </td>
263
- <td className="text-fm-secondary! px-6 py-4 text-sm">
264
- CSS classes for styling
265
- </td>
266
- </tr>
267
- <tr className="bg-fm-surface-secondary!">
268
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
269
- ...svgProps
270
- </td>
271
- <td className="text-fm-secondary! px-6 py-4 text-sm">
272
- SVGProps
273
- </td>
274
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
275
- -
276
- </td>
277
- <td className="text-fm-secondary! px-6 py-4 text-sm">
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-fm-icon-active! text-center text-3xl font-bold">
289
- Size Variations
290
- </h2>
291
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border 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-fm-icon-info! text-lg font-semibold">
296
- Standard Sizes
297
- </h3>
298
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
299
- <div className="text-center">
300
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
301
- <span className="text-fm-tertiary text-xs">
302
- 12px
303
- </span>
304
- </div>
305
- <div className="text-center">
306
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
307
- <span className="text-fm-tertiary text-xs">
308
- 16px
309
- </span>
310
- </div>
311
- <div className="text-center">
312
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
313
- <span className="text-fm-tertiary text-xs">
314
- 20px
315
- </span>
316
- </div>
317
- <div className="text-center">
318
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
319
- <span className="text-fm-tertiary text-xs">
320
- 24px
321
- </span>
322
- </div>
323
- <div className="text-center">
324
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
325
- <span className="text-fm-tertiary text-xs">
326
- 32px
327
- </span>
328
- </div>
329
- <div className="text-center">
330
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
331
- <span className="text-fm-tertiary text-xs">
332
- 48px
333
- </span>
334
- </div>
335
- </div>
336
- </div>
337
-
338
- <div className="!space-y-4">
339
- <h3 className="text-fm-icon-info! text-lg font-semibold">
340
- Code Example
341
- </h3>
342
- <div className="bg-fm-surface-secondary rounded-lg p-4">
343
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
344
- {`// Small (16px)
345
- <LayoutColumnIcon className="h-4 w-4" />
346
-
347
- // Medium (24px)
348
- <LayoutColumnIcon className="h-6 w-6" />
349
-
350
- // Large (32px)
351
- <LayoutColumnIcon className="h-8 w-8" />
352
-
353
- // Custom size
354
- <LayoutColumnIcon width={40} height={40} />`}
355
- </pre>
356
- </div>
357
- </div>
358
- </div>
359
- </div>
360
- </div>
361
- </div>
362
-
363
- {/* Color Variations */}
364
- <div className="!space-y-8">
365
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
366
- Color Variations
367
- </h2>
368
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
369
- <div className="!space-y-4">
370
- <h3 className="text-fm-icon-info! text-lg font-semibold">
371
- Theme Colors
372
- </h3>
373
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
374
- <div className="flex items-center gap-4">
375
- <LayoutColumnIcon className="text-fm-icon-info h-6 w-6" />
376
- <div>
377
- <div className="text-fm-icon-active text-sm font-medium">
378
- Primary
379
- </div>
380
- <div className="text-fm-tertiary text-xs">
381
- text-fm-icon-info
382
- </div>
383
- </div>
384
- </div>
385
- <div className="flex items-center gap-4">
386
- <LayoutColumnIcon className="text-fm-placeholder h-6 w-6" />
387
- <div>
388
- <div className="text-fm-icon-active text-sm font-medium">
389
- Secondary
390
- </div>
391
- <div className="text-fm-tertiary text-xs">
392
- text-fm-placeholder
393
- </div>
394
- </div>
395
- </div>
396
- <div className="flex items-center gap-4">
397
- <LayoutColumnIcon className="text-fm-secondary-600 h-6 w-6" />
398
- <div>
399
- <div className="text-fm-icon-active text-sm font-medium">
400
- Accent
401
- </div>
402
- <div className="text-fm-tertiary text-xs">
403
- text-fm-secondary-600
404
- </div>
405
- </div>
406
- </div>
407
- <div className="flex items-center gap-4">
408
- <LayoutColumnIcon className="text-fm-icon-positive h-6 w-6" />
409
- <div>
410
- <div className="text-fm-icon-active text-sm font-medium">
411
- Success
412
- </div>
413
- <div className="text-fm-tertiary text-xs">
414
- text-fm-icon-positive
415
- </div>
416
- </div>
417
- </div>
418
- </div>
419
- </div>
420
-
421
- <div className="!space-y-4">
422
- <h3 className="text-fm-icon-info! text-lg font-semibold">
423
- Custom Colors
424
- </h3>
425
- <div className="bg-fm-surface-secondary rounded-lg p-4">
426
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
427
- {`// Using Tailwind classes
428
- <LayoutColumnIcon className="h-6 w-6 text-blue-400" />
429
- <LayoutColumnIcon className="h-6 w-6 text-purple-500" />
430
-
431
- // Using CSS custom properties
432
- <LayoutColumnIcon
433
- className="h-6 w-6"
434
- style={{ color: 'var(--color-primary)' }}
435
- />
436
-
437
- // Direct fill prop
438
- <LayoutColumnIcon
439
- width={24}
440
- height={24}
441
- fill="#3b82f6"
442
- />`}
443
- </pre>
444
- </div>
445
- </div>
446
- </div>
447
- </div>
448
-
449
- {/* Usage Examples */}
450
- <div className="!space-y-8">
451
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
452
- Usage Examples
453
- </h2>
454
-
455
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
456
- {/* Layout Toggle */}
457
- <div className="!space-y-4">
458
- <h3 className="text-fm-icon-info! text-lg font-semibold">
459
- Layout Toggle Controls
460
- </h3>
461
- <div className="!space-y-4">
462
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-4">
463
- <button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded border px-3 py-1.5">
464
- <LayoutColumnIcon className="h-4 w-4" />
465
- <span className="text-sm">Two Column</span>
466
- </button>
467
- <button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-1.5">
468
- <div className="grid h-4 w-4 grid-cols-3 gap-0.5">
469
- <div className="rounded-sm bg-current opacity-60"></div>
470
- <div className="rounded-sm bg-current opacity-60"></div>
471
- <div className="rounded-sm bg-current opacity-60"></div>
472
- </div>
473
- <span className="text-sm">Grid</span>
474
- </button>
475
- <button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-1.5">
476
- <div className="h-4 w-4 rounded border border-current"></div>
477
- <span className="text-sm">Single</span>
478
- </button>
479
- </div>
480
- <div className="bg-fm-surface-secondary rounded-lg p-4">
481
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
482
- {`// Layout toggle buttons
483
- <div className="flex items-center gap-2">
484
- <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">
485
- <LayoutColumnIcon className="h-4 w-4" />
486
- <span className="text-sm">Two Column</span>
487
- </button>
488
- <button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-1.5 rounded text-white/60">
489
- <GridIcon className="h-4 w-4" />
490
- <span className="text-sm">Grid</span>
491
- </button>
492
- </div>`}
493
- </pre>
494
- </div>
495
- </div>
496
- </div>
497
-
498
- {/* Sidebar Navigation */}
499
- <div className="!space-y-4">
500
- <h3 className="text-fm-icon-info! text-lg font-semibold">
501
- Sidebar Navigation
502
- </h3>
503
- <div className="!space-y-4">
504
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
505
- <div className="!space-y-2">
506
- <div className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-3 rounded-lg px-3 py-2">
507
- <LayoutColumnIcon className="h-5 w-5" />
508
- <span className="text-sm font-medium">
509
- Dashboard
510
- </span>
511
- </div>
512
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
513
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
514
- <span className="text-sm">Analytics</span>
515
- </div>
516
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
517
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
518
- <span className="text-sm">Settings</span>
519
- </div>
520
- </div>
521
- </div>
522
- <div className="bg-fm-surface-secondary rounded-lg p-4">
523
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
524
- {`// Active navigation item
525
- <div className="flex items-center gap-3 bg-blue-500/20 px-3 py-2 rounded-lg text-blue-200">
526
- <LayoutColumnIcon className="h-5 w-5" />
527
- <span className="text-sm font-medium">Dashboard</span>
528
- </div>
529
-
530
- // Regular navigation items
531
- <div className="flex items-center gap-3 px-3 py-2 rounded-lg text-white/60 hover:bg-white/5">
532
- <AnalyticsIcon className="h-5 w-5" />
533
- <span className="text-sm">Analytics</span>
534
- </div>`}
535
- </pre>
536
- </div>
537
- </div>
538
- </div>
539
-
540
- {/* View Switcher */}
541
- <div className="!space-y-4">
542
- <h3 className="text-fm-icon-info! text-lg font-semibold">
543
- View Switcher
544
- </h3>
545
- <div className="!space-y-4">
546
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
547
- <h4 className="text-fm-icon-active! font-medium">
548
- Content View
549
- </h4>
550
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center rounded-lg border p-1">
551
- <button className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded px-2 py-1">
552
- <LayoutColumnIcon className="h-4 w-4" />
553
- <span className="text-xs">Split</span>
554
- </button>
555
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
556
- <div className="h-4 w-4 rounded border border-current"></div>
557
- <span className="text-xs">Full</span>
558
- </button>
559
- </div>
560
- </div>
561
- <div className="bg-fm-surface-secondary rounded-lg p-4">
562
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
563
- {`// View switcher component
564
- <div className="flex items-center justify-between">
565
- <h4 className="font-medium text-white">Content View</h4>
566
- <div className="flex items-center rounded-lg border border-white/10 bg-white/5 p-1">
567
- <button className="flex items-center gap-2 rounded bg-blue-500/20 px-2 py-1 text-blue-200">
568
- <LayoutColumnIcon className="h-4 w-4" />
569
- <span className="text-xs">Split</span>
570
- </button>
571
- <button className="flex items-center gap-2 rounded px-2 py-1 text-white/60 hover:bg-white/10">
572
- <FullViewIcon className="h-4 w-4" />
573
- <span className="text-xs">Full</span>
574
- </button>
575
- </div>
576
- </div>`}
577
- </pre>
578
- </div>
579
- </div>
580
- </div>
581
-
582
- {/* Toolbar Integration */}
583
- <div className="!space-y-4">
584
- <h3 className="text-fm-icon-info! text-lg font-semibold">
585
- Toolbar Integration
586
- </h3>
587
- <div className="!space-y-4">
588
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-3">
589
- <div className="flex items-center gap-2">
590
- <button className="hover:bg-fm-surface-secondary rounded p-1.5">
591
- <div className="bg-fm-surface-tertiary h-4 w-4 rounded"></div>
592
- </button>
593
- <button className="hover:bg-fm-surface-secondary rounded p-1.5">
594
- <div className="bg-fm-surface-tertiary h-4 w-4 rounded"></div>
595
- </button>
596
- </div>
597
- <div className="flex items-center gap-1">
598
- <button className="bg-fm-icon-info/20 text-fm-icon-info rounded p-1.5">
599
- <LayoutColumnIcon className="h-4 w-4" />
600
- </button>
601
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-1.5">
602
- <div className="grid h-4 w-4 grid-cols-2 gap-0.5">
603
- <div className="rounded-sm bg-current"></div>
604
- <div className="rounded-sm bg-current"></div>
605
- <div className="rounded-sm bg-current"></div>
606
- <div className="rounded-sm bg-current"></div>
607
- </div>
608
- </button>
609
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-1.5">
610
- <div className="h-4 w-4 rounded border border-current"></div>
611
- </button>
612
- </div>
613
- </div>
614
- <div className="bg-fm-surface-secondary rounded-lg p-4">
615
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
616
- {`// Toolbar with layout controls
617
- <div className="flex items-center justify-between p-3">
618
- <div className="flex items-center gap-2">
619
- <button className="p-1.5 rounded hover:bg-white/10">
620
- <SaveIcon className="h-4 w-4" />
621
- </button>
622
- <button className="p-1.5 rounded hover:bg-white/10">
623
- <ExportIcon className="h-4 w-4" />
624
- </button>
625
- </div>
626
- <div className="flex items-center gap-1">
627
- <button className="p-1.5 rounded bg-blue-500/20 text-blue-400">
628
- <LayoutColumnIcon className="h-4 w-4" />
629
- </button>
630
- <button className="p-1.5 rounded text-white/60 hover:bg-white/10">
631
- <GridIcon className="h-4 w-4" />
47
+ <button className="flex items-center gap-2">
48
+ <LayoutColumnIcon className="h-5 w-5 text-fm-icon-active" />
49
+ <span>Column view</span>
632
50
  </button>
633
- </div>
634
- </div>`}
635
- </pre>
636
- </div>
637
- </div>
638
- </div>
639
- </div>
640
- </div>
641
-
642
- {/* Accessibility */}
643
- <div className="!space-y-8">
644
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
645
- Accessibility Features
646
- </h2>
647
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
648
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
649
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
650
- ✅ Built-in Features
651
- </h3>
652
- <ul className="text-fm-secondary! !space-y-2 text-sm">
653
- <li className="text-fm-secondary!">
654
- Uses Radix UI AccessibleIcon wrapper
655
- </li>
656
- <li className="text-fm-secondary!">
657
- Provides screen reader label "Layout Column Icon"
658
- </li>
659
- <li className="text-fm-secondary!">
660
- Supports keyboard navigation when interactive
661
- </li>
662
- <li className="text-fm-secondary!">
663
- Maintains proper color contrast ratios
664
- </li>
665
- <li className="text-fm-secondary!">
666
- Scales with user's font size preferences
667
- </li>
668
- </ul>
669
- </div>
670
-
671
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
672
- <h3 className="text-fm-icon-info! text-lg font-semibold">
673
- 💡 Best Practices
674
- </h3>
675
- <ul className="text-fm-secondary !space-y-2 text-sm">
676
- <li className="text-fm-secondary!">
677
- Always pair with descriptive text labels
678
- </li>
679
- <li className="text-fm-secondary!">
680
- Use consistent colors for layout controls
681
- </li>
682
- <li className="text-fm-secondary!">
683
- Ensure sufficient color contrast
684
- </li>
685
- <li className="text-fm-secondary!">
686
- Add focus states for interactive elements
687
- </li>
688
- <li className="text-fm-secondary!">
689
- Provide keyboard shortcuts for layout switching
690
- </li>
691
- </ul>
692
- </div>
693
- </div>
694
-
695
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
696
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
697
- Custom Accessibility Label
698
- </h3>
699
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
700
- <div className="bg-fm-surface-secondary rounded-lg p-4">
701
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
702
- {`// Custom implementation with specific label
703
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
704
-
705
- function CustomLayoutColumnIcon({ label = "Switch to two column layout", ...props }) {
706
- return (
707
- <AccessibleIcon label={label}>
708
- <LayoutColumnIcon {...props} />
709
- </AccessibleIcon>
710
51
  )
711
- }
712
-
713
- // Usage with specific context
714
- <CustomLayoutColumnIcon
715
- label="Switch to dashboard split view"
716
- className="h-4 w-4 text-blue-400"
717
- />`}
718
- </pre>
719
- </div>
720
- <div className="!space-y-4">
721
- <p className="text-fm-secondary! text-sm">
722
- For specific contexts, you can wrap the LayoutColumnIcon
723
- with a custom AccessibleIcon component that provides
724
- more descriptive labels for different layout actions.
725
- </p>
726
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
727
- <div className="text-fm-icon-info flex items-center gap-2 text-sm">
728
- <LayoutColumnIcon className="h-4 w-4" />
729
- <span>
730
- This approach gives screen readers more context
731
- about layout actions
732
- </span>
733
- </div>
734
- </div>
735
- </div>
736
- </div>
737
- </div>
738
- </div>
739
-
740
- {/* Related Icons */}
741
- <div className="!space-y-8">
742
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
743
- Related Icons
744
- </h2>
745
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
746
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
747
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
748
- <div className="grid h-6 w-6 grid-cols-3 gap-1">
749
- <div className="bg-fm-icon-info rounded"></div>
750
- <div className="bg-fm-icon-info rounded"></div>
751
- <div className="bg-fm-icon-info rounded"></div>
752
- <div className="bg-fm-icon-info rounded"></div>
753
- <div className="bg-fm-icon-info rounded"></div>
754
- <div className="bg-fm-icon-info rounded"></div>
755
- </div>
756
- </div>
757
- <div>
758
- <div className="text-fm-icon-active font-medium">
759
- GridIcon
760
- </div>
761
- <div className="text-fm-tertiary text-xs">
762
- Grid layouts
763
- </div>
764
- </div>
765
- </div>
766
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
767
- <div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
768
- <div className="border-fm-icon-positive h-6 w-6 rounded border-2"></div>
769
- </div>
770
- <div>
771
- <div className="text-fm-icon-active font-medium">
772
- SingleViewIcon
773
- </div>
774
- <div className="text-fm-tertiary text-xs">
775
- Single column
776
- </div>
777
- </div>
778
- </div>
779
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
780
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
781
- <div className="flex h-6 w-6 gap-1">
782
- <div className="bg-fm-secondary-500 flex-1 rounded"></div>
783
- <div className="bg-fm-secondary-500 flex-1 rounded"></div>
784
- <div className="bg-fm-secondary-500 flex-1 rounded"></div>
785
- </div>
786
- </div>
787
- <div>
788
- <div className="text-fm-icon-active font-medium">
789
- RowsIcon
790
- </div>
791
- <div className="text-fm-tertiary text-xs">
792
- Row layouts
793
- </div>
794
- </div>
795
- </div>
796
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
797
- <div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
798
- <div className="flex h-6 w-6 gap-1">
799
- <div className="bg-fm-icon-warning w-2 rounded"></div>
800
- <div className="bg-fm-icon-warning flex-1 rounded"></div>
801
- </div>
802
- </div>
803
- <div>
804
- <div className="text-fm-icon-active font-medium">
805
- SidebarIcon
806
- </div>
807
- <div className="text-fm-tertiary text-xs">
808
- Sidebar layouts
809
- </div>
810
- </div>
811
- </div>
812
- </div>
813
- </div>
814
- </div>
815
-
816
- {/* Footer */}
817
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
818
- <div className="!mx-auto max-w-7xl px-6 py-8">
819
- <div className="!space-y-4 text-center">
820
- <p className="text-fm-tertiary!">
821
- LayoutColumnIcon is part of the Aural UI icon library,
822
- designed specifically for layout controls and view switching
823
- with accessibility in mind.
824
- </p>
825
- <p className="text-fm-placeholder! text-sm">
826
- Perfect for dashboards, content management systems, and
827
- applications that require flexible layout options. Follows
828
- WCAG guidelines for accessibility.
829
- </p>
830
- </div>
831
- </div>
832
- </div>
833
- </div>
834
- </>
52
+ }`,
53
+ livePreview: (
54
+ <button className="flex items-center gap-2">
55
+ <LayoutColumnIcon className="text-fm-icon-active h-6 w-6" />
56
+ </button>
57
+ ),
58
+ }}
59
+ relatedIcons={[
60
+ {
61
+ name: "LayoutLeftIcon",
62
+ description: "Left panel layout icon",
63
+ icon: LayoutLeftIcon,
64
+ accentToken: "info",
65
+ },
66
+ {
67
+ name: "LayoutRightIcon",
68
+ description: "Right panel layout icon",
69
+ icon: LayoutRightIcon,
70
+ accentToken: "positive",
71
+ },
72
+ {
73
+ name: "ColumnWideAddIcon",
74
+ description: "Add wide column icon",
75
+ icon: ColumnWideAddIcon,
76
+ accentToken: "warning",
77
+ },
78
+ {
79
+ name: "FilterBarRowIcon",
80
+ description: "Filter bar row icon",
81
+ icon: FilterBarRowIcon,
82
+ accentToken: "negative",
83
+ },
84
+ ]}
85
+ />
835
86
  ),
836
87
  },
837
88
  },
838
89
  tags: ["autodocs"],
839
90
  argTypes: {
840
- width: {
841
- control: { type: "range", min: 8, max: 96, step: 2 },
842
- description: "Width of the icon in pixels",
91
+ className: {
92
+ control: "text",
93
+ description: "CSS classes including color token",
843
94
  },
844
95
  withAccessibility: {
845
96
  control: "boolean",
846
- description: "Whether to wrap the icon with accessibility features",
847
- },
848
- height: {
849
- control: { type: "range", min: 8, max: 96, step: 2 },
850
- description: "Height of the icon in pixels",
851
- },
852
- fill: {
853
- control: "color",
854
- description: "Fill color of the icon",
855
- },
856
- className: {
857
- control: "text",
858
- description: "CSS classes for styling",
97
+ description: "Wrap with accessibility label",
859
98
  },
860
99
  },
861
100
  }
@@ -863,215 +102,86 @@ function CustomLayoutColumnIcon({ label = "Switch to two column layout", ...prop
863
102
  export default meta
864
103
  type Story = StoryObj<typeof LayoutColumnIcon>
865
104
 
866
- // Story parameters for consistent dark theme
867
- const storyParameters = {
868
- backgrounds: {
869
- default: "dark",
870
- values: [
871
- { name: "dark", value: "var(--color-fm-surface-primary)" },
872
- { name: "darker", value: "var(--color-fm-neutral-0)" },
873
- ],
874
- },
875
- }
876
-
877
105
  export const Default: Story = {
878
106
  args: {
879
- width: 24,
880
- height: 24,
881
- className: "text-fm-icon-info",
107
+ className: "h-6 w-6 text-fm-icon-active",
882
108
  withAccessibility: true,
883
109
  },
884
- parameters: storyParameters,
885
110
  render: (args) => (
886
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
111
+ <IconDefaultCanvas>
887
112
  <LayoutColumnIcon {...args} />
888
- </div>
113
+ </IconDefaultCanvas>
889
114
  ),
890
115
  }
891
116
 
892
117
  export const SizeVariations: Story = {
893
- parameters: {
894
- ...storyParameters,
895
- docs: {
896
- description: {
897
- story:
898
- "LayoutColumnIcon in different sizes, from small toolbar buttons to large dashboard controls.",
899
- },
900
- },
901
- },
902
- render: () => (
903
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
904
- <div className="text-center">
905
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
906
- <span className="text-fm-tertiary text-xs">12px</span>
907
- </div>
908
- <div className="text-center">
909
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
910
- <span className="text-fm-tertiary text-xs">16px</span>
911
- </div>
912
- <div className="text-center">
913
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
914
- <span className="text-fm-tertiary text-xs">20px</span>
915
- </div>
916
- <div className="text-center">
917
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
918
- <span className="text-fm-tertiary text-xs">24px</span>
919
- </div>
920
- <div className="text-center">
921
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
922
- <span className="text-fm-tertiary text-xs">32px</span>
923
- </div>
924
- <div className="text-center">
925
- <LayoutColumnIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
926
- <span className="text-fm-tertiary text-xs">48px</span>
927
- </div>
928
- </div>
929
- ),
118
+ render: () => <IconSizeVariations icon={LayoutColumnIcon} />,
930
119
  }
931
120
 
932
121
  export const ColorVariations: Story = {
933
- parameters: {
934
- ...storyParameters,
935
- docs: {
936
- description: {
937
- story:
938
- "LayoutColumnIcon in different theme colors for various UI contexts.",
939
- },
940
- },
941
- },
942
- render: () => (
943
- <div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
944
- <div className="text-center">
945
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
946
- <LayoutColumnIcon className="text-fm-icon-info h-8 w-8" />
947
- </div>
948
- <div className="text-fm-icon-active text-sm font-medium">Primary</div>
949
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
950
- </div>
951
- <div className="text-center">
952
- <div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
953
- <LayoutColumnIcon className="text-fm-placeholder h-8 w-8" />
954
- </div>
955
- <div className="text-fm-icon-active text-sm font-medium">Secondary</div>
956
- <div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
957
- </div>
958
- <div className="text-center">
959
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
960
- <LayoutColumnIcon className="text-fm-secondary-600 h-8 w-8" />
961
- </div>
962
- <div className="text-fm-icon-active text-sm font-medium">Accent</div>
963
- <div className="text-fm-secondary-600 text-xs">
964
- text-fm-secondary-600
965
- </div>
966
- </div>
967
- <div className="text-center">
968
- <div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
969
- <LayoutColumnIcon className="text-fm-icon-positive h-8 w-8" />
970
- </div>
971
- <div className="text-fm-icon-active text-sm font-medium">Success</div>
972
- <div className="text-fm-icon-positive text-xs">
973
- text-fm-icon-positive
974
- </div>
975
- </div>
976
- </div>
977
- ),
122
+ render: () => <IconColorVariations icon={LayoutColumnIcon} />,
978
123
  }
979
124
 
980
125
  export const UsageExamples: Story = {
981
- parameters: {
982
- ...storyParameters,
983
- docs: {
984
- description: {
985
- story:
986
- "Real-world usage examples showing LayoutColumnIcon in different layout control contexts.",
987
- },
988
- },
989
- },
990
126
  render: () => (
991
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
992
- {/* Layout Toggle */}
993
- <div className="!space-y-2">
994
- <h3 className="text-fm-icon-active text-sm font-medium">
995
- Layout Toggle Controls
996
- </h3>
997
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border p-4">
998
- <button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded border px-3 py-1.5">
999
- <LayoutColumnIcon className="h-4 w-4" />
1000
- <span className="text-sm">Two Column</span>
1001
- </button>
1002
- <button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-1.5">
1003
- <div className="grid h-4 w-4 grid-cols-3 gap-0.5">
1004
- <div className="rounded-sm bg-current opacity-60"></div>
1005
- <div className="rounded-sm bg-current opacity-60"></div>
1006
- <div className="rounded-sm bg-current opacity-60"></div>
1007
- </div>
1008
- <span className="text-sm">Grid</span>
1009
- </button>
1010
- </div>
1011
- </div>
1012
-
1013
- {/* Sidebar Navigation */}
1014
- <div className="!space-y-2">
1015
- <h3 className="text-fm-icon-active text-sm font-medium">
1016
- Sidebar Navigation
1017
- </h3>
1018
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
1019
- <div className="!space-y-2">
1020
- <div className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-3 rounded-lg px-3 py-2">
1021
- <LayoutColumnIcon className="h-5 w-5" />
1022
- <span className="text-sm font-medium">Dashboard</span>
1023
- </div>
1024
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
1025
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
1026
- <span className="text-sm">Analytics</span>
1027
- </div>
1028
- </div>
127
+ <IconUsageCanvas>
128
+ <IconUsageSection title="View Toggle">
129
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-1 rounded-xl border p-1">
130
+ {[LayoutColumnIcon, LayoutLeftIcon, LayoutRightIcon].map(
131
+ (Icon, i) => (
132
+ <button
133
+ key={i}
134
+ className={`flex h-8 w-8 items-center justify-center rounded-lg ${i === 0 ? "bg-fm-surface-primary" : ""}`}
135
+ >
136
+ <Icon
137
+ className={`h-4 w-4 ${i === 0 ? "text-fm-icon-active" : "text-fm-icon-inactive"}`}
138
+ />
139
+ </button>
140
+ )
141
+ )}
1029
142
  </div>
1030
- </div>
1031
-
1032
- {/* View Switcher */}
1033
- <div className="!space-y-2">
1034
- <h3 className="text-fm-icon-active text-sm font-medium">
1035
- View Switcher
1036
- </h3>
1037
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4">
1038
- <h4 className="text-fm-icon-active font-medium">Content View</h4>
1039
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center rounded-lg border p-1">
1040
- <button className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-2 rounded px-2 py-1">
1041
- <LayoutColumnIcon className="h-4 w-4" />
1042
- <span className="text-xs">Split</span>
1043
- </button>
1044
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-2 rounded px-2 py-1">
1045
- <div className="h-4 w-4 rounded border border-current"></div>
1046
- <span className="text-xs">Full</span>
1047
- </button>
1048
- </div>
143
+ </IconUsageSection>
144
+
145
+ <IconUsageSection title="Layout Picker">
146
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm overflow-hidden rounded-xl border">
147
+ {["Column view", "Left panel", "Right panel"].map((label, i) => {
148
+ const Icons = [LayoutColumnIcon, LayoutLeftIcon, LayoutRightIcon]
149
+ const Icon = Icons[i]
150
+ return (
151
+ <div
152
+ key={label}
153
+ className="border-fm-divider-secondary flex items-center gap-3 border-b px-4 py-3 last:border-b-0"
154
+ >
155
+ <Icon
156
+ className={`h-4 w-4 ${i === 0 ? "text-fm-icon-active" : "text-fm-icon-inactive"}`}
157
+ />
158
+ <span className="text-fm-primary font-fm-text text-sm">
159
+ {label}
160
+ </span>
161
+ </div>
162
+ )
163
+ })}
1049
164
  </div>
1050
- </div>
1051
- </div>
165
+ </IconUsageSection>
166
+
167
+ <IconUsageSection title="Toolbar Button">
168
+ <button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
169
+ <LayoutColumnIcon className="text-fm-icon-active h-4 w-4" />
170
+ <span className="text-fm-primary font-fm-text text-sm">Columns</span>
171
+ </button>
172
+ </IconUsageSection>
173
+ </IconUsageCanvas>
1052
174
  ),
1053
175
  }
1054
176
 
1055
177
  export const Playground: Story = {
1056
- parameters: {
1057
- ...storyParameters,
1058
- docs: {
1059
- description: {
1060
- story:
1061
- "Interactive playground to experiment with different LayoutColumnIcon configurations.",
1062
- },
1063
- },
1064
- },
1065
178
  args: {
1066
- width: 32,
1067
- height: 32,
1068
- className: "text-fm-icon-info",
179
+ className: "h-8 w-8 text-fm-icon-active",
180
+ withAccessibility: true,
1069
181
  },
1070
182
  render: (args) => (
1071
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
1072
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
1073
- <LayoutColumnIcon {...args} />
1074
- </div>
1075
- </div>
183
+ <IconPlaygroundCanvas>
184
+ <LayoutColumnIcon {...args} />
185
+ </IconPlaygroundCanvas>
1076
186
  ),
1077
187
  }