aural-ui 3.0.6 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/clamp-lines/ClampLines.stories.tsx +25 -0
- package/dist/components/clamp-lines/index.tsx +6 -1
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/input/index.tsx +2 -0
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- 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
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof CommandIcon> = {
|
|
|
11
11
|
backgrounds: {
|
|
12
12
|
default: "dark",
|
|
13
13
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
14
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
15
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
16
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
17
|
],
|
|
18
18
|
},
|
|
19
19
|
docs: {
|
|
@@ -40,59 +40,59 @@ const meta: Meta<typeof CommandIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
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-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
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
|
|
90
|
-
<CommandIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<CommandIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
CommandIcon
|
|
94
94
|
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
95
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
96
|
A distinctive command key icon representing keyboard
|
|
97
97
|
shortcuts, system commands, and power user functionality.
|
|
98
98
|
Built with accessibility in mind using Radix UI's
|
|
@@ -102,28 +102,28 @@ const meta: Meta<typeof CommandIcon> = {
|
|
|
102
102
|
{/* Stats */}
|
|
103
103
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
104
|
<div className="text-center">
|
|
105
|
-
<div className="text-3xl font-bold
|
|
105
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
106
106
|
Accessible
|
|
107
107
|
</div>
|
|
108
|
-
<div className="text-
|
|
108
|
+
<div className="text-fm-tertiary text-sm">
|
|
109
109
|
Screen reader friendly
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
112
|
-
<div className="h-8 w-px
|
|
112
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
113
|
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold
|
|
114
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
115
115
|
Scalable
|
|
116
116
|
</div>
|
|
117
|
-
<div className="text-
|
|
117
|
+
<div className="text-fm-tertiary text-sm">
|
|
118
118
|
Any size needed
|
|
119
119
|
</div>
|
|
120
120
|
</div>
|
|
121
|
-
<div className="h-8 w-px
|
|
121
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
122
|
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold
|
|
123
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
124
124
|
Shortcuts
|
|
125
125
|
</div>
|
|
126
|
-
<div className="text-
|
|
126
|
+
<div className="text-fm-tertiary text-sm">
|
|
127
127
|
Command symbols
|
|
128
128
|
</div>
|
|
129
129
|
</div>
|
|
@@ -136,16 +136,16 @@ const meta: Meta<typeof CommandIcon> = {
|
|
|
136
136
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
137
|
{/* Quick Usage */}
|
|
138
138
|
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-center text-3xl font-bold
|
|
139
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
140
140
|
Quick Start
|
|
141
141
|
</h2>
|
|
142
142
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
143
|
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-xl font-semibold
|
|
144
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
145
145
|
Basic Usage
|
|
146
146
|
</h3>
|
|
147
|
-
<div className="rounded-lg
|
|
148
|
-
<pre className="overflow-x-auto text-sm
|
|
147
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
149
|
{`import { CommandIcon } from "@icons/command-icon"
|
|
150
150
|
|
|
151
151
|
function ShortcutHint() {
|
|
@@ -161,13 +161,15 @@ function ShortcutHint() {
|
|
|
161
161
|
</div>
|
|
162
162
|
|
|
163
163
|
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-xl font-semibold
|
|
164
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
165
165
|
Live Preview
|
|
166
166
|
</h3>
|
|
167
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
168
|
-
<div className="flex items-center gap-3 rounded-lg border
|
|
169
|
-
<CommandIcon className="h-4 w-4
|
|
170
|
-
<span className="text-
|
|
167
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
168
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-3 rounded-lg border px-4 py-2">
|
|
169
|
+
<CommandIcon className="text-fm-icon-info h-4 w-4" />
|
|
170
|
+
<span className="text-fm-icon-active">
|
|
171
|
+
+ K to search
|
|
172
|
+
</span>
|
|
171
173
|
</div>
|
|
172
174
|
</div>
|
|
173
175
|
</div>
|
|
@@ -176,108 +178,116 @@ function ShortcutHint() {
|
|
|
176
178
|
|
|
177
179
|
{/* Props Documentation */}
|
|
178
180
|
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-center text-3xl font-bold
|
|
181
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
180
182
|
Props & Configuration
|
|
181
183
|
</h2>
|
|
182
184
|
|
|
183
|
-
<div className="overflow-hidden rounded-lg border
|
|
184
|
-
<div className="bg-
|
|
185
|
-
<h3 className="text-xl font-semibold
|
|
185
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
186
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
187
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
188
|
+
Props
|
|
189
|
+
</h3>
|
|
186
190
|
</div>
|
|
187
191
|
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-
|
|
189
|
-
<tr className="border-
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
192
|
+
<thead className="bg-fm-surface-secondary">
|
|
193
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
194
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
191
195
|
Prop
|
|
192
196
|
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
197
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
194
198
|
Type
|
|
195
199
|
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
200
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
197
201
|
Default
|
|
198
202
|
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
203
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
200
204
|
Description
|
|
201
205
|
</th>
|
|
202
206
|
</tr>
|
|
203
207
|
</thead>
|
|
204
208
|
<tbody>
|
|
205
209
|
{" "}
|
|
206
|
-
<tr className="
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
210
|
+
<tr className="bg-fm-surface-secondary!">
|
|
211
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
208
212
|
withAccessibility
|
|
209
213
|
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm
|
|
214
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
211
215
|
boolean
|
|
212
216
|
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm
|
|
217
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
214
218
|
true
|
|
215
219
|
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm
|
|
220
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
217
221
|
Whether to wrap the icon with accessibility feature
|
|
218
222
|
</td>
|
|
219
223
|
</tr>
|
|
220
|
-
<tr className="border-
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
224
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
225
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
222
226
|
height
|
|
223
227
|
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm
|
|
228
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
225
229
|
number | string
|
|
226
230
|
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm
|
|
228
|
-
|
|
231
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
232
|
+
24
|
|
233
|
+
</td>
|
|
234
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
229
235
|
Height of the icon in pixels
|
|
230
236
|
</td>
|
|
231
237
|
</tr>
|
|
232
|
-
<tr className="border-
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
238
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
239
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
234
240
|
stroke
|
|
235
241
|
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm
|
|
242
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
237
243
|
string
|
|
238
244
|
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm
|
|
245
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
240
246
|
currentColor
|
|
241
247
|
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm
|
|
248
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
243
249
|
Stroke color of the icon
|
|
244
250
|
</td>
|
|
245
251
|
</tr>
|
|
246
|
-
<tr className="border-
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
252
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
253
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
248
254
|
className
|
|
249
255
|
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm
|
|
256
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
251
257
|
string
|
|
252
258
|
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm
|
|
254
|
-
|
|
259
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
260
|
+
-
|
|
261
|
+
</td>
|
|
262
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
255
263
|
CSS classes for styling (use for overrides)
|
|
256
264
|
</td>
|
|
257
265
|
</tr>
|
|
258
|
-
<tr className="border-
|
|
259
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
266
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
267
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
260
268
|
strokeWidth
|
|
261
269
|
</td>
|
|
262
|
-
<td className="px-6 py-4 text-sm
|
|
270
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
263
271
|
number | string
|
|
264
272
|
</td>
|
|
265
|
-
<td className="px-6 py-4 text-sm
|
|
273
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
266
274
|
1.5
|
|
267
275
|
</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm
|
|
276
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
277
|
Stroke width of the command symbol
|
|
270
278
|
</td>
|
|
271
279
|
</tr>
|
|
272
|
-
<tr className="
|
|
273
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
280
|
+
<tr className="bg-fm-surface-secondary!">
|
|
281
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
274
282
|
...svgProps
|
|
275
283
|
</td>
|
|
276
|
-
<td className="px-6 py-4 text-sm
|
|
284
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
277
285
|
SVGProps
|
|
278
286
|
</td>
|
|
279
|
-
<td className="px-6 py-4 text-sm
|
|
280
|
-
|
|
287
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
288
|
+
-
|
|
289
|
+
</td>
|
|
290
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
281
291
|
All standard SVG element props
|
|
282
292
|
</td>
|
|
283
293
|
</tr>
|
|
@@ -288,50 +298,62 @@ function ShortcutHint() {
|
|
|
288
298
|
|
|
289
299
|
{/* Size Variations */}
|
|
290
300
|
<div className="!space-y-8">
|
|
291
|
-
<h2 className="text-center text-3xl font-bold
|
|
301
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
292
302
|
Size Variations
|
|
293
303
|
</h2>
|
|
294
|
-
<div className="rounded-lg border
|
|
304
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
295
305
|
<div className="!space-y-6">
|
|
296
306
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
297
307
|
<div className="!space-y-4">
|
|
298
|
-
<h3 className="text-lg font-semibold
|
|
308
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
299
309
|
Standard Sizes
|
|
300
310
|
</h3>
|
|
301
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
311
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
302
312
|
<div className="text-center">
|
|
303
|
-
<CommandIcon className="!mx-auto mb-2 h-3 w-3
|
|
304
|
-
<span className="text-
|
|
313
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
314
|
+
<span className="text-fm-tertiary text-xs">
|
|
315
|
+
12px
|
|
316
|
+
</span>
|
|
305
317
|
</div>
|
|
306
318
|
<div className="text-center">
|
|
307
|
-
<CommandIcon className="!mx-auto mb-2 h-4 w-4
|
|
308
|
-
<span className="text-
|
|
319
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
320
|
+
<span className="text-fm-tertiary text-xs">
|
|
321
|
+
16px
|
|
322
|
+
</span>
|
|
309
323
|
</div>
|
|
310
324
|
<div className="text-center">
|
|
311
|
-
<CommandIcon className="!mx-auto mb-2 h-5 w-5
|
|
312
|
-
<span className="text-
|
|
325
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
326
|
+
<span className="text-fm-tertiary text-xs">
|
|
327
|
+
20px
|
|
328
|
+
</span>
|
|
313
329
|
</div>
|
|
314
330
|
<div className="text-center">
|
|
315
|
-
<CommandIcon className="!mx-auto mb-2 h-6 w-6
|
|
316
|
-
<span className="text-
|
|
331
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
332
|
+
<span className="text-fm-tertiary text-xs">
|
|
333
|
+
24px
|
|
334
|
+
</span>
|
|
317
335
|
</div>
|
|
318
336
|
<div className="text-center">
|
|
319
|
-
<CommandIcon className="!mx-auto mb-2 h-8 w-8
|
|
320
|
-
<span className="text-
|
|
337
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
338
|
+
<span className="text-fm-tertiary text-xs">
|
|
339
|
+
32px
|
|
340
|
+
</span>
|
|
321
341
|
</div>
|
|
322
342
|
<div className="text-center">
|
|
323
|
-
<CommandIcon className="!mx-auto mb-2 h-12 w-12
|
|
324
|
-
<span className="text-
|
|
343
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
344
|
+
<span className="text-fm-tertiary text-xs">
|
|
345
|
+
48px
|
|
346
|
+
</span>
|
|
325
347
|
</div>
|
|
326
348
|
</div>
|
|
327
349
|
</div>
|
|
328
350
|
|
|
329
351
|
<div className="!space-y-4">
|
|
330
|
-
<h3 className="text-lg font-semibold
|
|
352
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
331
353
|
Code Example
|
|
332
354
|
</h3>
|
|
333
|
-
<div className="rounded-lg
|
|
334
|
-
<pre className="overflow-x-auto text-sm
|
|
355
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
356
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
335
357
|
{`// Small (16px)
|
|
336
358
|
<CommandIcon className="h-4 w-4 " />
|
|
337
359
|
|
|
@@ -353,56 +375,56 @@ function ShortcutHint() {
|
|
|
353
375
|
|
|
354
376
|
{/* Color Variations */}
|
|
355
377
|
<div className="!space-y-8">
|
|
356
|
-
<h2 className="text-center text-3xl font-bold
|
|
378
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
357
379
|
Color Variations
|
|
358
380
|
</h2>
|
|
359
381
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
360
382
|
<div className="!space-y-4">
|
|
361
|
-
<h3 className="text-lg font-semibold
|
|
383
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
362
384
|
Semantic Colors
|
|
363
385
|
</h3>
|
|
364
|
-
<div className="!space-y-4 rounded-lg border
|
|
386
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
365
387
|
<div className="flex items-center gap-4">
|
|
366
|
-
<CommandIcon className="h-6 w-6
|
|
388
|
+
<CommandIcon className="text-fm-icon-info h-6 w-6" />
|
|
367
389
|
<div>
|
|
368
|
-
<div className="text-sm font-medium
|
|
390
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
369
391
|
Primary
|
|
370
392
|
</div>
|
|
371
|
-
<div className="text-
|
|
372
|
-
text-
|
|
393
|
+
<div className="text-fm-tertiary text-xs">
|
|
394
|
+
text-fm-icon-info
|
|
373
395
|
</div>
|
|
374
396
|
</div>
|
|
375
397
|
</div>
|
|
376
398
|
<div className="flex items-center gap-4">
|
|
377
|
-
<CommandIcon className="h-6 w-6
|
|
399
|
+
<CommandIcon className="text-fm-placeholder h-6 w-6" />
|
|
378
400
|
<div>
|
|
379
|
-
<div className="text-sm font-medium
|
|
401
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
380
402
|
Secondary
|
|
381
403
|
</div>
|
|
382
|
-
<div className="text-
|
|
383
|
-
text-
|
|
404
|
+
<div className="text-fm-tertiary text-xs">
|
|
405
|
+
text-fm-placeholder
|
|
384
406
|
</div>
|
|
385
407
|
</div>
|
|
386
408
|
</div>
|
|
387
409
|
<div className="flex items-center gap-4">
|
|
388
|
-
<CommandIcon className="h-6 w-6
|
|
410
|
+
<CommandIcon className="text-fm-icon-info h-6 w-6" />
|
|
389
411
|
<div>
|
|
390
|
-
<div className="text-sm font-medium
|
|
412
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
391
413
|
Accent
|
|
392
414
|
</div>
|
|
393
|
-
<div className="text-
|
|
394
|
-
text-
|
|
415
|
+
<div className="text-fm-tertiary text-xs">
|
|
416
|
+
text-fm-icon-info
|
|
395
417
|
</div>
|
|
396
418
|
</div>
|
|
397
419
|
</div>
|
|
398
420
|
<div className="flex items-center gap-4">
|
|
399
|
-
<CommandIcon className="h-6 w-6
|
|
421
|
+
<CommandIcon className="text-fm-placeholder h-6 w-6" />
|
|
400
422
|
<div>
|
|
401
|
-
<div className="text-sm font-medium
|
|
423
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
402
424
|
Disabled
|
|
403
425
|
</div>
|
|
404
|
-
<div className="text-
|
|
405
|
-
text-
|
|
426
|
+
<div className="text-fm-tertiary text-xs">
|
|
427
|
+
text-fm-placeholder
|
|
406
428
|
</div>
|
|
407
429
|
</div>
|
|
408
430
|
</div>
|
|
@@ -410,11 +432,11 @@ function ShortcutHint() {
|
|
|
410
432
|
</div>
|
|
411
433
|
|
|
412
434
|
<div className="!space-y-4">
|
|
413
|
-
<h3 className="text-lg font-semibold
|
|
435
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
414
436
|
Custom Colors
|
|
415
437
|
</h3>
|
|
416
|
-
<div className="rounded-lg
|
|
417
|
-
<pre className="overflow-x-auto text-sm
|
|
438
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
439
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
418
440
|
{`// Using Tailwind classes with
|
|
419
441
|
<CommandIcon className="h-6 w-6 text-blue-400 " />
|
|
420
442
|
<CommandIcon className="h-6 w-6 text-cyan-500 " />
|
|
@@ -439,59 +461,63 @@ function ShortcutHint() {
|
|
|
439
461
|
|
|
440
462
|
{/* Usage Examples */}
|
|
441
463
|
<div className="!space-y-8">
|
|
442
|
-
<h2 className="text-center text-3xl font-bold
|
|
464
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
443
465
|
Usage Examples
|
|
444
466
|
</h2>
|
|
445
467
|
|
|
446
468
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
447
469
|
{/* Keyboard Shortcuts */}
|
|
448
470
|
<div className="!space-y-4">
|
|
449
|
-
<h3 className="text-lg font-semibold
|
|
471
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
450
472
|
Keyboard Shortcuts
|
|
451
473
|
</h3>
|
|
452
474
|
<div className="!space-y-4">
|
|
453
|
-
<div className="rounded-lg border
|
|
475
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
454
476
|
<div className="space-y-3">
|
|
455
477
|
<div className="flex items-center justify-between">
|
|
456
|
-
<span className="text-
|
|
478
|
+
<span className="text-fm-icon-active">
|
|
479
|
+
Quick Search
|
|
480
|
+
</span>
|
|
457
481
|
<div className="flex items-center gap-1">
|
|
458
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
459
|
-
<CommandIcon className="h-3 w-3
|
|
482
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
483
|
+
<CommandIcon className="text-fm-secondary h-3 w-3" />
|
|
460
484
|
</kbd>
|
|
461
|
-
<span className="text-
|
|
462
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
485
|
+
<span className="text-fm-tertiary">+</span>
|
|
486
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary text-fm-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
463
487
|
K
|
|
464
488
|
</kbd>
|
|
465
489
|
</div>
|
|
466
490
|
</div>
|
|
467
491
|
<div className="flex items-center justify-between">
|
|
468
|
-
<span className="text-
|
|
492
|
+
<span className="text-fm-icon-active">
|
|
493
|
+
New File
|
|
494
|
+
</span>
|
|
469
495
|
<div className="flex items-center gap-1">
|
|
470
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
471
|
-
<CommandIcon className="h-3 w-3
|
|
496
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
497
|
+
<CommandIcon className="text-fm-secondary h-3 w-3" />
|
|
472
498
|
</kbd>
|
|
473
|
-
<span className="text-
|
|
474
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
499
|
+
<span className="text-fm-tertiary">+</span>
|
|
500
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary text-fm-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
475
501
|
N
|
|
476
502
|
</kbd>
|
|
477
503
|
</div>
|
|
478
504
|
</div>
|
|
479
505
|
<div className="flex items-center justify-between">
|
|
480
|
-
<span className="text-
|
|
506
|
+
<span className="text-fm-icon-active">Save</span>
|
|
481
507
|
<div className="flex items-center gap-1">
|
|
482
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
483
|
-
<CommandIcon className="h-3 w-3
|
|
508
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
509
|
+
<CommandIcon className="text-fm-secondary h-3 w-3" />
|
|
484
510
|
</kbd>
|
|
485
|
-
<span className="text-
|
|
486
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
511
|
+
<span className="text-fm-tertiary">+</span>
|
|
512
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary text-fm-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
487
513
|
S
|
|
488
514
|
</kbd>
|
|
489
515
|
</div>
|
|
490
516
|
</div>
|
|
491
517
|
</div>
|
|
492
518
|
</div>
|
|
493
|
-
<div className="rounded-lg
|
|
494
|
-
<pre className="overflow-x-auto text-sm
|
|
519
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
520
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
495
521
|
{`// Keyboard shortcut display
|
|
496
522
|
<div className="flex items-center gap-1">
|
|
497
523
|
<kbd className="flex h-6 w-6 items-center justify-center rounded border border-white/20 bg-white/10">
|
|
@@ -515,40 +541,44 @@ function ShortcutHint() {
|
|
|
515
541
|
|
|
516
542
|
{/* Command Palette */}
|
|
517
543
|
<div className="!space-y-4">
|
|
518
|
-
<h3 className="text-lg font-semibold
|
|
544
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
519
545
|
Command Palette
|
|
520
546
|
</h3>
|
|
521
547
|
<div className="!space-y-4">
|
|
522
|
-
<div className="rounded-lg border
|
|
548
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
523
549
|
<div className="space-y-3">
|
|
524
|
-
<div className="flex items-center gap-3 border-b
|
|
525
|
-
<CommandIcon className="h-5 w-5
|
|
550
|
+
<div className="border-fm-divider-secondary flex items-center gap-3 border-b pb-3">
|
|
551
|
+
<CommandIcon className="text-fm-icon-info h-5 w-5" />
|
|
526
552
|
<input
|
|
527
553
|
type="text"
|
|
528
554
|
placeholder="Type a command..."
|
|
529
|
-
className="flex-1 bg-transparent
|
|
555
|
+
className="text-fm-icon-active flex-1 bg-transparent placeholder-white/50 focus:outline-none"
|
|
530
556
|
/>
|
|
531
557
|
</div>
|
|
532
558
|
<div className="space-y-1">
|
|
533
|
-
<div className="flex items-center gap-3 rounded px-2 py-1
|
|
534
|
-
<CommandIcon className="h-4 w-4
|
|
535
|
-
<span className="text-
|
|
559
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-3 rounded px-2 py-1">
|
|
560
|
+
<CommandIcon className="text-fm-tertiary h-4 w-4" />
|
|
561
|
+
<span className="text-fm-icon-active">
|
|
536
562
|
Create new file
|
|
537
563
|
</span>
|
|
538
564
|
</div>
|
|
539
|
-
<div className="flex items-center gap-3 rounded px-2 py-1
|
|
540
|
-
<CommandIcon className="h-4 w-4
|
|
541
|
-
<span className="text-
|
|
565
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-3 rounded px-2 py-1">
|
|
566
|
+
<CommandIcon className="text-fm-tertiary h-4 w-4" />
|
|
567
|
+
<span className="text-fm-icon-active">
|
|
568
|
+
Open recent
|
|
569
|
+
</span>
|
|
542
570
|
</div>
|
|
543
|
-
<div className="flex items-center gap-3 rounded px-2 py-1
|
|
544
|
-
<CommandIcon className="h-4 w-4
|
|
545
|
-
<span className="text-
|
|
571
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-3 rounded px-2 py-1">
|
|
572
|
+
<CommandIcon className="text-fm-tertiary h-4 w-4" />
|
|
573
|
+
<span className="text-fm-icon-active">
|
|
574
|
+
Toggle sidebar
|
|
575
|
+
</span>
|
|
546
576
|
</div>
|
|
547
577
|
</div>
|
|
548
578
|
</div>
|
|
549
579
|
</div>
|
|
550
|
-
<div className="rounded-lg
|
|
551
|
-
<pre className="overflow-x-auto text-sm
|
|
580
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
581
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
552
582
|
{`// Command palette header
|
|
553
583
|
<div className="flex items-center gap-3 border-b border-white/10 pb-3">
|
|
554
584
|
<CommandIcon className="h-5 w-5 text-blue-400 " />
|
|
@@ -571,22 +601,22 @@ function ShortcutHint() {
|
|
|
571
601
|
|
|
572
602
|
{/* Button Integration */}
|
|
573
603
|
<div className="!space-y-4">
|
|
574
|
-
<h3 className="text-lg font-semibold
|
|
604
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
575
605
|
Button Integration
|
|
576
606
|
</h3>
|
|
577
607
|
<div className="!space-y-4">
|
|
578
608
|
<div className="flex gap-4">
|
|
579
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
609
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
580
610
|
<CommandIcon className="h-4 w-4" />
|
|
581
611
|
Open Command Menu
|
|
582
612
|
</button>
|
|
583
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
613
|
+
<button className="border-fm-divider-primary bg-fm-surface-tertiary/20 text-fm-secondary hover:bg-fm-surface-tertiary/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
584
614
|
<CommandIcon className="h-4 w-4" />
|
|
585
615
|
Shortcuts
|
|
586
616
|
</button>
|
|
587
617
|
</div>
|
|
588
|
-
<div className="rounded-lg
|
|
589
|
-
<pre className="overflow-x-auto text-sm
|
|
618
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
619
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
590
620
|
{`// Command menu button
|
|
591
621
|
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
592
622
|
<CommandIcon className="h-4 w-4 " />
|
|
@@ -605,25 +635,25 @@ function ShortcutHint() {
|
|
|
605
635
|
|
|
606
636
|
{/* Help Documentation */}
|
|
607
637
|
<div className="!space-y-4">
|
|
608
|
-
<h3 className="text-lg font-semibold
|
|
638
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
609
639
|
Help Documentation
|
|
610
640
|
</h3>
|
|
611
641
|
<div className="!space-y-4">
|
|
612
|
-
<div className="rounded-lg border
|
|
642
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
613
643
|
<div className="space-y-4">
|
|
614
644
|
<div className="flex items-start gap-3">
|
|
615
|
-
<CommandIcon className="mt-0.5 h-5 w-5 flex-shrink-0
|
|
645
|
+
<CommandIcon className="text-fm-icon-info mt-0.5 h-5 w-5 flex-shrink-0" />
|
|
616
646
|
<div>
|
|
617
|
-
<h4 className="font-medium
|
|
647
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
618
648
|
Power User Tips
|
|
619
649
|
</h4>
|
|
620
|
-
<p className="text-
|
|
650
|
+
<p className="text-fm-secondary! text-sm">
|
|
621
651
|
Use Command key combinations to navigate faster
|
|
622
652
|
and boost your productivity.
|
|
623
653
|
</p>
|
|
624
654
|
</div>
|
|
625
655
|
</div>
|
|
626
|
-
<div className="ml-8 space-y-2 text-sm
|
|
656
|
+
<div className="text-fm-tertiary ml-8 space-y-2 text-sm">
|
|
627
657
|
<div>
|
|
628
658
|
<CommandIcon className="mr-2 inline h-3 w-3" />+
|
|
629
659
|
K: Quick search
|
|
@@ -639,8 +669,8 @@ function ShortcutHint() {
|
|
|
639
669
|
</div>
|
|
640
670
|
</div>
|
|
641
671
|
</div>
|
|
642
|
-
<div className="rounded-lg
|
|
643
|
-
<pre className="overflow-x-auto text-sm
|
|
672
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
673
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
644
674
|
{`// Help section with command icon
|
|
645
675
|
<div className="flex items-start gap-3">
|
|
646
676
|
<CommandIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-blue-400 " />
|
|
@@ -666,64 +696,64 @@ function ShortcutHint() {
|
|
|
666
696
|
|
|
667
697
|
{/* Accessibility */}
|
|
668
698
|
<div className="!space-y-8">
|
|
669
|
-
<h2 className="text-center text-3xl font-bold
|
|
699
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
670
700
|
Accessibility Features
|
|
671
701
|
</h2>
|
|
672
702
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
673
|
-
<div className="!space-y-4 rounded-lg border
|
|
674
|
-
<h3 className="text-lg font-semibold
|
|
703
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
704
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
675
705
|
✅ Built-in Features
|
|
676
706
|
</h3>
|
|
677
|
-
<ul className="!space-y-2 text-sm
|
|
678
|
-
<li className="
|
|
707
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
708
|
+
<li className="text-fm-secondary!">
|
|
679
709
|
Uses Radix UI AccessibleIcon wrapper
|
|
680
710
|
</li>
|
|
681
|
-
<li className="
|
|
711
|
+
<li className="text-fm-secondary!">
|
|
682
712
|
Provides screen reader label "Command icon"
|
|
683
713
|
</li>
|
|
684
|
-
<li className="
|
|
714
|
+
<li className="text-fm-secondary!">
|
|
685
715
|
Supports keyboard navigation when interactive
|
|
686
716
|
</li>
|
|
687
|
-
<li className="
|
|
717
|
+
<li className="text-fm-secondary!">
|
|
688
718
|
Maintains proper color contrast ratios
|
|
689
719
|
</li>
|
|
690
|
-
<li className="
|
|
720
|
+
<li className="text-fm-secondary!">
|
|
691
721
|
Scales with user's font size preferences
|
|
692
722
|
</li>
|
|
693
723
|
</ul>
|
|
694
724
|
</div>
|
|
695
725
|
|
|
696
|
-
<div className="!space-y-4 rounded-lg border
|
|
697
|
-
<h3 className="text-lg font-semibold
|
|
726
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
727
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
698
728
|
💡 Best Practices
|
|
699
729
|
</h3>
|
|
700
|
-
<ul className="!space-y-2 text-sm
|
|
701
|
-
<li className="
|
|
730
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
731
|
+
<li className="text-fm-secondary!">
|
|
702
732
|
Always pair with descriptive text or alt text
|
|
703
733
|
</li>
|
|
704
|
-
<li className="
|
|
734
|
+
<li className="text-fm-secondary!">
|
|
705
735
|
Use consistent shortcut patterns across your app
|
|
706
736
|
</li>
|
|
707
|
-
<li className="
|
|
737
|
+
<li className="text-fm-secondary!">
|
|
708
738
|
Provide alternative navigation methods
|
|
709
739
|
</li>
|
|
710
|
-
<li className="
|
|
740
|
+
<li className="text-fm-secondary!">
|
|
711
741
|
Add focus states for interactive elements
|
|
712
742
|
</li>
|
|
713
|
-
<li className="
|
|
743
|
+
<li className="text-fm-secondary!">
|
|
714
744
|
Consider screen reader announcements for shortcuts
|
|
715
745
|
</li>
|
|
716
746
|
</ul>
|
|
717
747
|
</div>
|
|
718
748
|
</div>
|
|
719
749
|
|
|
720
|
-
<div className="rounded-lg border
|
|
721
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
750
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
751
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
722
752
|
Proper ARIA Implementation
|
|
723
753
|
</h3>
|
|
724
754
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
725
|
-
<div className="rounded-lg
|
|
726
|
-
<pre className="overflow-x-auto text-sm
|
|
755
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
756
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
727
757
|
{`// Keyboard shortcut with proper ARIA
|
|
728
758
|
<button
|
|
729
759
|
aria-label="Open command palette (Cmd+K)"
|
|
@@ -759,13 +789,13 @@ function ShortcutHint() {
|
|
|
759
789
|
</pre>
|
|
760
790
|
</div>
|
|
761
791
|
<div className="!space-y-4">
|
|
762
|
-
<p className="text-
|
|
792
|
+
<p className="text-fm-secondary! text-sm">
|
|
763
793
|
Always provide context-appropriate ARIA labels for
|
|
764
794
|
command interfaces. The Command icon should indicate
|
|
765
795
|
keyboard-driven functionality and shortcuts.
|
|
766
796
|
</p>
|
|
767
|
-
<div className="
|
|
768
|
-
<div className="flex items-center gap-2 text-sm
|
|
797
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
798
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
769
799
|
<CommandIcon className="h-4 w-4" />
|
|
770
800
|
<span>
|
|
771
801
|
Consider the user's platform (⌘ on Mac, Ctrl on
|
|
@@ -780,48 +810,60 @@ function ShortcutHint() {
|
|
|
780
810
|
|
|
781
811
|
{/* Related Icons */}
|
|
782
812
|
<div className="!space-y-8">
|
|
783
|
-
<h2 className="text-center text-3xl font-bold
|
|
813
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
784
814
|
Related Icons
|
|
785
815
|
</h2>
|
|
786
816
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
787
|
-
<div className="!space-y-3 rounded-lg border
|
|
788
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
817
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
818
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
789
819
|
<span className="text-2xl">⌨️</span>
|
|
790
820
|
</div>
|
|
791
821
|
<div>
|
|
792
|
-
<div className="font-medium
|
|
793
|
-
|
|
822
|
+
<div className="text-fm-icon-active font-medium">
|
|
823
|
+
KeyboardIcon
|
|
824
|
+
</div>
|
|
825
|
+
<div className="text-fm-tertiary text-xs">
|
|
794
826
|
Keyboard input
|
|
795
827
|
</div>
|
|
796
828
|
</div>
|
|
797
829
|
</div>
|
|
798
|
-
<div className="!space-y-3 rounded-lg border
|
|
799
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
830
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
831
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
800
832
|
<span className="text-2xl">🔍</span>
|
|
801
833
|
</div>
|
|
802
834
|
<div>
|
|
803
|
-
<div className="font-medium
|
|
804
|
-
|
|
835
|
+
<div className="text-fm-icon-active font-medium">
|
|
836
|
+
SearchIcon
|
|
837
|
+
</div>
|
|
838
|
+
<div className="text-fm-tertiary text-xs">
|
|
805
839
|
Search function
|
|
806
840
|
</div>
|
|
807
841
|
</div>
|
|
808
842
|
</div>
|
|
809
|
-
<div className="!space-y-3 rounded-lg border
|
|
810
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
843
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
844
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
811
845
|
<span className="text-2xl">⚙️</span>
|
|
812
846
|
</div>
|
|
813
847
|
<div>
|
|
814
|
-
<div className="font-medium
|
|
815
|
-
|
|
848
|
+
<div className="text-fm-icon-active font-medium">
|
|
849
|
+
SettingsIcon
|
|
850
|
+
</div>
|
|
851
|
+
<div className="text-fm-tertiary text-xs">
|
|
852
|
+
Configuration
|
|
853
|
+
</div>
|
|
816
854
|
</div>
|
|
817
855
|
</div>
|
|
818
|
-
<div className="!space-y-3 rounded-lg border
|
|
819
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
856
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
857
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
820
858
|
<span className="text-2xl">📋</span>
|
|
821
859
|
</div>
|
|
822
860
|
<div>
|
|
823
|
-
<div className="font-medium
|
|
824
|
-
|
|
861
|
+
<div className="text-fm-icon-active font-medium">
|
|
862
|
+
MenuIcon
|
|
863
|
+
</div>
|
|
864
|
+
<div className="text-fm-tertiary text-xs">
|
|
865
|
+
Menu options
|
|
866
|
+
</div>
|
|
825
867
|
</div>
|
|
826
868
|
</div>
|
|
827
869
|
</div>
|
|
@@ -829,14 +871,14 @@ function ShortcutHint() {
|
|
|
829
871
|
</div>
|
|
830
872
|
|
|
831
873
|
{/* Footer */}
|
|
832
|
-
<div className="border-
|
|
874
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
833
875
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
834
876
|
<div className="!space-y-4 text-center">
|
|
835
|
-
<p className="
|
|
877
|
+
<p className="text-fm-tertiary!">
|
|
836
878
|
CommandIcon is part of the Aural UI icon library, built with
|
|
837
879
|
accessibility and keyboard navigation in mind.
|
|
838
880
|
</p>
|
|
839
|
-
<p className="text-
|
|
881
|
+
<p className="text-fm-placeholder! text-sm">
|
|
840
882
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
841
883
|
compatibility and follow WCAG guidelines.
|
|
842
884
|
</p>
|
|
@@ -885,8 +927,8 @@ const storyParameters = {
|
|
|
885
927
|
backgrounds: {
|
|
886
928
|
default: "dark",
|
|
887
929
|
values: [
|
|
888
|
-
{ name: "dark", value: "
|
|
889
|
-
{ name: "darker", value: "
|
|
930
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
931
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
890
932
|
],
|
|
891
933
|
},
|
|
892
934
|
}
|
|
@@ -895,12 +937,12 @@ export const Default: Story = {
|
|
|
895
937
|
args: {
|
|
896
938
|
width: 24,
|
|
897
939
|
height: 24,
|
|
898
|
-
className: "text-
|
|
940
|
+
className: "text-fm-icon-info ",
|
|
899
941
|
withAccessibility: true,
|
|
900
942
|
},
|
|
901
943
|
parameters: storyParameters,
|
|
902
944
|
render: (args) => (
|
|
903
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
945
|
+
<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">
|
|
904
946
|
<CommandIcon {...args} />
|
|
905
947
|
</div>
|
|
906
948
|
),
|
|
@@ -917,30 +959,30 @@ export const SizeVariations: Story = {
|
|
|
917
959
|
},
|
|
918
960
|
},
|
|
919
961
|
render: () => (
|
|
920
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
962
|
+
<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">
|
|
921
963
|
<div className="text-center">
|
|
922
|
-
<CommandIcon className="!mx-auto mb-2 h-3 w-3
|
|
923
|
-
<span className="text-
|
|
964
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
965
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
924
966
|
</div>
|
|
925
967
|
<div className="text-center">
|
|
926
|
-
<CommandIcon className="!mx-auto mb-2 h-4 w-4
|
|
927
|
-
<span className="text-
|
|
968
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
969
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
928
970
|
</div>
|
|
929
971
|
<div className="text-center">
|
|
930
|
-
<CommandIcon className="!mx-auto mb-2 h-5 w-5
|
|
931
|
-
<span className="text-
|
|
972
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
973
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
932
974
|
</div>
|
|
933
975
|
<div className="text-center">
|
|
934
|
-
<CommandIcon className="!mx-auto mb-2 h-6 w-6
|
|
935
|
-
<span className="text-
|
|
976
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
977
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
936
978
|
</div>
|
|
937
979
|
<div className="text-center">
|
|
938
|
-
<CommandIcon className="!mx-auto mb-2 h-8 w-8
|
|
939
|
-
<span className="text-
|
|
980
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
981
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
940
982
|
</div>
|
|
941
983
|
<div className="text-center">
|
|
942
|
-
<CommandIcon className="!mx-auto mb-2 h-12 w-12
|
|
943
|
-
<span className="text-
|
|
984
|
+
<CommandIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
985
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
944
986
|
</div>
|
|
945
987
|
</div>
|
|
946
988
|
),
|
|
@@ -957,34 +999,34 @@ export const ColorVariations: Story = {
|
|
|
957
999
|
},
|
|
958
1000
|
},
|
|
959
1001
|
render: () => (
|
|
960
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
1002
|
+
<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">
|
|
961
1003
|
<div className="text-center">
|
|
962
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
963
|
-
<CommandIcon className="h-8 w-8
|
|
1004
|
+
<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">
|
|
1005
|
+
<CommandIcon className="text-fm-icon-info h-8 w-8" />
|
|
964
1006
|
</div>
|
|
965
|
-
<div className="text-sm font-medium
|
|
966
|
-
<div className="text-
|
|
1007
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
1008
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
967
1009
|
</div>
|
|
968
1010
|
<div className="text-center">
|
|
969
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
970
|
-
<CommandIcon className="h-8 w-8
|
|
1011
|
+
<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">
|
|
1012
|
+
<CommandIcon className="text-fm-placeholder h-8 w-8" />
|
|
971
1013
|
</div>
|
|
972
|
-
<div className="text-sm font-medium
|
|
973
|
-
<div className="text-
|
|
1014
|
+
<div className="text-fm-icon-active text-sm font-medium">Secondary</div>
|
|
1015
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
974
1016
|
</div>
|
|
975
1017
|
<div className="text-center">
|
|
976
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
977
|
-
<CommandIcon className="h-8 w-8
|
|
1018
|
+
<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">
|
|
1019
|
+
<CommandIcon className="text-fm-icon-info h-8 w-8" />
|
|
978
1020
|
</div>
|
|
979
|
-
<div className="text-sm font-medium
|
|
980
|
-
<div className="text-
|
|
1021
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
1022
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
981
1023
|
</div>
|
|
982
1024
|
<div className="text-center">
|
|
983
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
984
|
-
<CommandIcon className="h-8 w-8
|
|
1025
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1026
|
+
<CommandIcon className="text-fm-placeholder h-8 w-8" />
|
|
985
1027
|
</div>
|
|
986
|
-
<div className="text-sm font-medium
|
|
987
|
-
<div className="text-
|
|
1028
|
+
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
1029
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
988
1030
|
</div>
|
|
989
1031
|
</div>
|
|
990
1032
|
),
|
|
@@ -1001,32 +1043,34 @@ export const UsageExamples: Story = {
|
|
|
1001
1043
|
},
|
|
1002
1044
|
},
|
|
1003
1045
|
render: () => (
|
|
1004
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1046
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1005
1047
|
{/* Keyboard Shortcuts */}
|
|
1006
1048
|
<div className="!space-y-2">
|
|
1007
|
-
<h3 className="text-sm font-medium
|
|
1008
|
-
|
|
1049
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1050
|
+
Keyboard Shortcuts
|
|
1051
|
+
</h3>
|
|
1052
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
1009
1053
|
<div className="space-y-3">
|
|
1010
1054
|
<div className="flex items-center justify-between">
|
|
1011
|
-
<span className="text-
|
|
1055
|
+
<span className="text-fm-icon-active">Quick Search</span>
|
|
1012
1056
|
<div className="flex items-center gap-1">
|
|
1013
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
1014
|
-
<CommandIcon className="h-3 w-3
|
|
1057
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
1058
|
+
<CommandIcon className="text-fm-secondary h-3 w-3" />
|
|
1015
1059
|
</kbd>
|
|
1016
|
-
<span className="text-
|
|
1017
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
1060
|
+
<span className="text-fm-tertiary">+</span>
|
|
1061
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary text-fm-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
1018
1062
|
K
|
|
1019
1063
|
</kbd>
|
|
1020
1064
|
</div>
|
|
1021
1065
|
</div>
|
|
1022
1066
|
<div className="flex items-center justify-between">
|
|
1023
|
-
<span className="text-
|
|
1067
|
+
<span className="text-fm-icon-active">New File</span>
|
|
1024
1068
|
<div className="flex items-center gap-1">
|
|
1025
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
1026
|
-
<CommandIcon className="h-3 w-3
|
|
1069
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
1070
|
+
<CommandIcon className="text-fm-secondary h-3 w-3" />
|
|
1027
1071
|
</kbd>
|
|
1028
|
-
<span className="text-
|
|
1029
|
-
<kbd className="flex h-6 w-6 items-center justify-center rounded border
|
|
1072
|
+
<span className="text-fm-tertiary">+</span>
|
|
1073
|
+
<kbd className="border-fm-divider-primary bg-fm-surface-secondary text-fm-secondary flex h-6 w-6 items-center justify-center rounded border text-xs">
|
|
1030
1074
|
N
|
|
1031
1075
|
</kbd>
|
|
1032
1076
|
</div>
|
|
@@ -1037,25 +1081,27 @@ export const UsageExamples: Story = {
|
|
|
1037
1081
|
|
|
1038
1082
|
{/* Command Palette */}
|
|
1039
1083
|
<div className="!space-y-2">
|
|
1040
|
-
<h3 className="text-sm font-medium
|
|
1041
|
-
|
|
1084
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1085
|
+
Command Palette
|
|
1086
|
+
</h3>
|
|
1087
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
1042
1088
|
<div className="space-y-3">
|
|
1043
|
-
<div className="flex items-center gap-3 border-b
|
|
1044
|
-
<CommandIcon className="h-5 w-5
|
|
1089
|
+
<div className="border-fm-divider-secondary flex items-center gap-3 border-b pb-3">
|
|
1090
|
+
<CommandIcon className="text-fm-icon-info h-5 w-5" />
|
|
1045
1091
|
<input
|
|
1046
1092
|
type="text"
|
|
1047
1093
|
placeholder="Type a command..."
|
|
1048
|
-
className="flex-1 bg-transparent
|
|
1094
|
+
className="text-fm-icon-active flex-1 bg-transparent placeholder-white/50 focus:outline-none"
|
|
1049
1095
|
/>
|
|
1050
1096
|
</div>
|
|
1051
1097
|
<div className="space-y-1">
|
|
1052
|
-
<div className="flex items-center gap-3 rounded px-2 py-1
|
|
1053
|
-
<CommandIcon className="h-4 w-4
|
|
1054
|
-
<span className="text-
|
|
1098
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-3 rounded px-2 py-1">
|
|
1099
|
+
<CommandIcon className="text-fm-tertiary h-4 w-4" />
|
|
1100
|
+
<span className="text-fm-icon-active">Create new file</span>
|
|
1055
1101
|
</div>
|
|
1056
|
-
<div className="flex items-center gap-3 rounded px-2 py-1
|
|
1057
|
-
<CommandIcon className="h-4 w-4
|
|
1058
|
-
<span className="text-
|
|
1102
|
+
<div className="hover:bg-fm-surface-secondary flex items-center gap-3 rounded px-2 py-1">
|
|
1103
|
+
<CommandIcon className="text-fm-tertiary h-4 w-4" />
|
|
1104
|
+
<span className="text-fm-icon-active">Toggle sidebar</span>
|
|
1059
1105
|
</div>
|
|
1060
1106
|
</div>
|
|
1061
1107
|
</div>
|
|
@@ -1064,13 +1110,15 @@ export const UsageExamples: Story = {
|
|
|
1064
1110
|
|
|
1065
1111
|
{/* Button Integration */}
|
|
1066
1112
|
<div className="!space-y-2">
|
|
1067
|
-
<h3 className="text-sm font-medium
|
|
1113
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1114
|
+
Button Integration
|
|
1115
|
+
</h3>
|
|
1068
1116
|
<div className="flex gap-4">
|
|
1069
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
1117
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
1070
1118
|
<CommandIcon className="h-4 w-4" />
|
|
1071
1119
|
Open Command Menu
|
|
1072
1120
|
</button>
|
|
1073
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
1121
|
+
<button className="border-fm-divider-primary bg-fm-surface-tertiary/20 text-fm-secondary hover:bg-fm-surface-tertiary/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
1074
1122
|
<CommandIcon className="h-4 w-4" />
|
|
1075
1123
|
Shortcuts
|
|
1076
1124
|
</button>
|
|
@@ -1093,12 +1141,12 @@ export const Playground: Story = {
|
|
|
1093
1141
|
args: {
|
|
1094
1142
|
width: 32,
|
|
1095
1143
|
height: 32,
|
|
1096
|
-
className: "text-
|
|
1144
|
+
className: "text-fm-icon-info ",
|
|
1097
1145
|
strokeWidth: 1.5,
|
|
1098
1146
|
},
|
|
1099
1147
|
render: (args) => (
|
|
1100
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1101
|
-
<div className="rounded-lg border
|
|
1148
|
+
<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">
|
|
1149
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1102
1150
|
<CommandIcon {...args} />
|
|
1103
1151
|
</div>
|
|
1104
1152
|
</div>
|