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