aural-ui 3.0.7 → 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/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/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
|
@@ -130,10 +130,10 @@ type Story = StoryObj<typeof Command>
|
|
|
130
130
|
export const BasicCommand: Story = {
|
|
131
131
|
render: () => (
|
|
132
132
|
<div className="mx-auto max-w-lg p-8">
|
|
133
|
-
<h3 className="mb-4 text-lg font-medium
|
|
133
|
+
<h3 className="text-fm-primary mb-4 text-lg font-medium">
|
|
134
134
|
Basic Command Menu
|
|
135
135
|
</h3>
|
|
136
|
-
<Command className="rounded-lg border
|
|
136
|
+
<Command className="border-fm-divider-secondary rounded-lg border">
|
|
137
137
|
<CommandInput placeholder="Type a command or search..." />
|
|
138
138
|
<CommandList>
|
|
139
139
|
<CommandEmpty>No results found.</CommandEmpty>
|
|
@@ -198,10 +198,10 @@ export const CommandDialogExample: Story = {
|
|
|
198
198
|
return (
|
|
199
199
|
<div className="space-y-8 p-8">
|
|
200
200
|
<div className="text-center">
|
|
201
|
-
<h3 className="mb-2 text-lg font-medium
|
|
201
|
+
<h3 className="text-fm-primary mb-2 text-lg font-medium">
|
|
202
202
|
Command Dialog
|
|
203
203
|
</h3>
|
|
204
|
-
<p className="text-
|
|
204
|
+
<p className="text-fm-secondary text-sm">
|
|
205
205
|
Press{" "}
|
|
206
206
|
<kbd className="bg-muted text-muted-foreground pointer-events-none inline-flex h-5 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none">
|
|
207
207
|
<span className="text-xs">⌘</span>K
|
|
@@ -309,14 +309,14 @@ export const CommandDialogExample: Story = {
|
|
|
309
309
|
export const FileManagementCommands: Story = {
|
|
310
310
|
render: () => (
|
|
311
311
|
<div className="mx-auto max-w-lg space-y-8 p-8">
|
|
312
|
-
<h3 className="text-lg font-medium
|
|
313
|
-
<Command className="rounded-lg border
|
|
312
|
+
<h3 className="text-fm-primary text-lg font-medium">File Management</h3>
|
|
313
|
+
<Command className="border-fm-divider-secondary rounded-lg border">
|
|
314
314
|
<CommandInput placeholder="Search files and actions..." />
|
|
315
315
|
<CommandList>
|
|
316
316
|
<CommandEmpty>
|
|
317
317
|
<div className="py-6 text-center">
|
|
318
|
-
<SearchIcon className="mx-auto h-8 w-8
|
|
319
|
-
<p className="mt-2 text-sm
|
|
318
|
+
<SearchIcon className="text-fm-tertiary mx-auto h-8 w-8" />
|
|
319
|
+
<p className="text-fm-secondary mt-2 text-sm">
|
|
320
320
|
No files or actions found.
|
|
321
321
|
</p>
|
|
322
322
|
</div>
|
|
@@ -494,13 +494,15 @@ export const SearchAndFilterCommands: Story = {
|
|
|
494
494
|
return (
|
|
495
495
|
<div className="mx-auto max-w-lg space-y-8 p-8">
|
|
496
496
|
<div className="space-y-2">
|
|
497
|
-
<h3 className="text-lg font-medium
|
|
498
|
-
|
|
497
|
+
<h3 className="text-fm-primary text-lg font-medium">
|
|
498
|
+
Search and Filter
|
|
499
|
+
</h3>
|
|
500
|
+
<p className="text-fm-secondary text-sm">
|
|
499
501
|
Dynamic filtering based on search input
|
|
500
502
|
</p>
|
|
501
503
|
</div>
|
|
502
504
|
|
|
503
|
-
<Command className="rounded-lg border
|
|
505
|
+
<Command className="border-fm-divider-secondary rounded-lg border">
|
|
504
506
|
<CommandInput
|
|
505
507
|
placeholder="Search apps, files, and more..."
|
|
506
508
|
value={searchTerm}
|
|
@@ -509,11 +511,11 @@ export const SearchAndFilterCommands: Story = {
|
|
|
509
511
|
<CommandList>
|
|
510
512
|
<CommandEmpty>
|
|
511
513
|
<div className="py-6 text-center">
|
|
512
|
-
<SearchIcon className="mx-auto h-8 w-8
|
|
513
|
-
<p className="mt-2 text-sm
|
|
514
|
+
<SearchIcon className="text-fm-tertiary mx-auto h-8 w-8" />
|
|
515
|
+
<p className="text-fm-secondary mt-2 text-sm">
|
|
514
516
|
No results for "{searchTerm}"
|
|
515
517
|
</p>
|
|
516
|
-
<p className="text-
|
|
518
|
+
<p className="text-fm-tertiary text-xs">
|
|
517
519
|
Try searching for something else
|
|
518
520
|
</p>
|
|
519
521
|
</div>
|
|
@@ -538,9 +540,11 @@ export const SearchAndFilterCommands: Story = {
|
|
|
538
540
|
</Command>
|
|
539
541
|
|
|
540
542
|
{searchTerm && (
|
|
541
|
-
<div className="rounded-lg border
|
|
542
|
-
<h4 className="text-sm font-medium
|
|
543
|
-
|
|
543
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
544
|
+
<h4 className="text-fm-primary text-sm font-medium">
|
|
545
|
+
Search Stats
|
|
546
|
+
</h4>
|
|
547
|
+
<div className="text-fm-secondary mt-2 space-y-1 text-xs">
|
|
544
548
|
<p>Search term: "{searchTerm}"</p>
|
|
545
549
|
<p>Results found: {filteredItems.length}</p>
|
|
546
550
|
<p>Groups: {Object.keys(groupedItems).length}</p>
|
|
@@ -564,16 +568,18 @@ export const SearchAndFilterCommands: Story = {
|
|
|
564
568
|
export const CustomStylingVariants: Story = {
|
|
565
569
|
render: () => (
|
|
566
570
|
<div className="space-y-8 p-8">
|
|
567
|
-
<h3 className="text-center text-lg font-medium
|
|
571
|
+
<h3 className="text-fm-primary text-center text-lg font-medium">
|
|
568
572
|
Custom Styling Variants
|
|
569
573
|
</h3>
|
|
570
574
|
|
|
571
575
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
572
576
|
{/* Elevated Command */}
|
|
573
577
|
<div className="space-y-4">
|
|
574
|
-
<h4 className="text-sm font-medium
|
|
578
|
+
<h4 className="text-fm-secondary text-sm font-medium">
|
|
579
|
+
Elevated Style
|
|
580
|
+
</h4>
|
|
575
581
|
<Command
|
|
576
|
-
className="rounded-lg border
|
|
582
|
+
className="border-fm-divider-secondary rounded-lg border"
|
|
577
583
|
listProps={{ variant: "elevated", size: "lg" }}
|
|
578
584
|
>
|
|
579
585
|
<CommandInput placeholder="Elevated command menu..." />
|
|
@@ -599,9 +605,11 @@ export const CustomStylingVariants: Story = {
|
|
|
599
605
|
|
|
600
606
|
{/* Compact Command */}
|
|
601
607
|
<div className="space-y-4">
|
|
602
|
-
<h4 className="text-sm font-medium
|
|
608
|
+
<h4 className="text-fm-secondary text-sm font-medium">
|
|
609
|
+
Compact Style
|
|
610
|
+
</h4>
|
|
603
611
|
<Command
|
|
604
|
-
className="rounded-lg border
|
|
612
|
+
className="border-fm-divider-secondary rounded-lg border"
|
|
605
613
|
listProps={{ size: "sm" }}
|
|
606
614
|
>
|
|
607
615
|
<CommandInput
|
|
@@ -634,9 +642,9 @@ export const CustomStylingVariants: Story = {
|
|
|
634
642
|
|
|
635
643
|
{/* Flat Style */}
|
|
636
644
|
<div className="space-y-4">
|
|
637
|
-
<h4 className="text-sm font-medium
|
|
645
|
+
<h4 className="text-fm-secondary text-sm font-medium">Flat Style</h4>
|
|
638
646
|
<Command
|
|
639
|
-
className="rounded-lg border
|
|
647
|
+
className="border-fm-divider-secondary rounded-lg border"
|
|
640
648
|
listProps={{ variant: "flat", rounded: "lg" }}
|
|
641
649
|
>
|
|
642
650
|
<CommandInput placeholder="Flat design menu..." />
|
|
@@ -659,7 +667,9 @@ export const CustomStylingVariants: Story = {
|
|
|
659
667
|
|
|
660
668
|
{/* Custom Classes */}
|
|
661
669
|
<div className="space-y-4">
|
|
662
|
-
<h4 className="text-sm font-medium
|
|
670
|
+
<h4 className="text-fm-secondary text-sm font-medium">
|
|
671
|
+
Custom Classes
|
|
672
|
+
</h4>
|
|
663
673
|
<Command
|
|
664
674
|
className="rounded-lg border border-purple-500/30 bg-purple-900/10"
|
|
665
675
|
classes={{
|
|
@@ -706,20 +716,20 @@ export const CustomStylingVariants: Story = {
|
|
|
706
716
|
export const ComplexCommandStructure: Story = {
|
|
707
717
|
render: () => (
|
|
708
718
|
<div className="mx-auto max-w-lg space-y-8 p-8">
|
|
709
|
-
<h3 className="text-lg font-medium
|
|
719
|
+
<h3 className="text-fm-primary text-lg font-medium">
|
|
710
720
|
Complex Command Structure
|
|
711
721
|
</h3>
|
|
712
722
|
|
|
713
|
-
<Command className="rounded-lg border
|
|
723
|
+
<Command className="border-fm-divider-secondary rounded-lg border">
|
|
714
724
|
<CommandInput placeholder="Search all commands..." />
|
|
715
725
|
<CommandList>
|
|
716
726
|
<CommandEmpty>
|
|
717
727
|
<div className="py-8 text-center">
|
|
718
|
-
<SearchIcon className="mx-auto h-12 w-12
|
|
719
|
-
<h4 className="mt-2 text-sm font-medium
|
|
728
|
+
<SearchIcon className="text-fm-tertiary mx-auto h-12 w-12" />
|
|
729
|
+
<h4 className="text-fm-primary mt-2 text-sm font-medium">
|
|
720
730
|
No commands found
|
|
721
731
|
</h4>
|
|
722
|
-
<p className="mt-1 text-xs
|
|
732
|
+
<p className="text-fm-secondary mt-1 text-xs">
|
|
723
733
|
Try adjusting your search to find what you're looking for.
|
|
724
734
|
</p>
|
|
725
735
|
</div>
|
|
@@ -912,17 +922,19 @@ export const PerformanceDemo: Story = {
|
|
|
912
922
|
return (
|
|
913
923
|
<div className="space-y-8 p-8">
|
|
914
924
|
<div className="space-y-4 text-center">
|
|
915
|
-
<h3 className="text-lg font-medium
|
|
916
|
-
|
|
925
|
+
<h3 className="text-fm-primary text-lg font-medium">
|
|
926
|
+
Performance Demo
|
|
927
|
+
</h3>
|
|
928
|
+
<p className="text-fm-secondary text-sm">
|
|
917
929
|
Test command menu performance with large datasets
|
|
918
930
|
</p>
|
|
919
931
|
|
|
920
932
|
<div className="flex items-center justify-center gap-4">
|
|
921
|
-
<label className="text-
|
|
933
|
+
<label className="text-fm-secondary text-sm">Items:</label>
|
|
922
934
|
<select
|
|
923
935
|
value={itemCount}
|
|
924
936
|
onChange={(e) => setItemCount(Number(e.target.value))}
|
|
925
|
-
className="
|
|
937
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary text-fm-primary rounded border px-3 py-1"
|
|
926
938
|
>
|
|
927
939
|
<option value={50}>50</option>
|
|
928
940
|
<option value={100}>100</option>
|
|
@@ -934,7 +946,7 @@ export const PerformanceDemo: Story = {
|
|
|
934
946
|
</div>
|
|
935
947
|
|
|
936
948
|
<div className="mx-auto max-w-lg">
|
|
937
|
-
<Command className="rounded-lg border
|
|
949
|
+
<Command className="border-fm-divider-secondary rounded-lg border">
|
|
938
950
|
<CommandInput placeholder={`Search ${itemCount} items...`} />
|
|
939
951
|
<CommandList>
|
|
940
952
|
<CommandEmpty>
|
|
@@ -970,9 +982,11 @@ export const PerformanceDemo: Story = {
|
|
|
970
982
|
</Command>
|
|
971
983
|
</div>
|
|
972
984
|
|
|
973
|
-
<div className="mx-auto max-w-lg rounded-lg border
|
|
974
|
-
<h4 className="text-sm font-medium
|
|
975
|
-
|
|
985
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary mx-auto max-w-lg rounded-lg border p-4">
|
|
986
|
+
<h4 className="text-fm-primary text-sm font-medium">
|
|
987
|
+
Performance Info
|
|
988
|
+
</h4>
|
|
989
|
+
<div className="text-fm-secondary mt-2 grid grid-cols-2 gap-4 text-xs">
|
|
976
990
|
<div>Total Items: {itemCount}</div>
|
|
977
991
|
<div>Categories: {Object.keys(groupedItems).length}</div>
|
|
978
992
|
<div>
|