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