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.
Files changed (183) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
  2. package/dist/components/avatar/Avatar.stories.tsx +235 -237
  3. package/dist/components/badge/Badge.stories.tsx +379 -116
  4. package/dist/components/banner/Banner.stories.tsx +445 -391
  5. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  6. package/dist/components/button/Button.stories.tsx +585 -230
  7. package/dist/components/button/index.tsx +7 -7
  8. package/dist/components/card/Card.stories.tsx +619 -301
  9. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  10. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  11. package/dist/components/chip/Chip.stories.tsx +362 -168
  12. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
  13. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  14. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  15. package/dist/components/command/Command.stories.tsx +533 -856
  16. package/dist/components/dialog/Dialog.stories.tsx +505 -949
  17. package/dist/components/divider/Divider.stories.tsx +265 -502
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -993
  20. package/dist/components/drawer/index.tsx +3 -3
  21. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
  22. package/dist/components/form/Form.stories.tsx +560 -274
  23. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  24. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
  25. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  26. package/dist/components/if-else/if-else.stories.tsx +370 -83
  27. package/dist/components/input/Input.stories.tsx +436 -368
  28. package/dist/components/label/Label.stories.tsx +156 -154
  29. package/dist/components/list/List.stories.tsx +485 -822
  30. package/dist/components/marquee/Marquee.stories.tsx +356 -694
  31. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
  32. package/dist/components/overlay/Overlay.stories.tsx +452 -818
  33. package/dist/components/overlay/index.tsx +4 -4
  34. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  35. package/dist/components/popover/Popover.stories.tsx +484 -873
  36. package/dist/components/radio/Radio.stories.tsx +432 -124
  37. package/dist/components/resizable/Resizable.stories.tsx +496 -752
  38. package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
  39. package/dist/components/search/Search.stories.tsx +314 -575
  40. package/dist/components/select/Select.stories.tsx +684 -787
  41. package/dist/components/sheet/Sheet.stories.tsx +671 -936
  42. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  43. package/dist/components/slider/Slider.stories.tsx +384 -737
  44. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  45. package/dist/components/switch/Switch.stories.tsx +461 -208
  46. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  47. package/dist/components/table/Table.stories.tsx +770 -914
  48. package/dist/components/tabs/Tabs.stories.tsx +459 -1400
  49. package/dist/components/tag/Tag.stories.tsx +714 -542
  50. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  51. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
  52. package/dist/components/toast/Toast.stories.tsx +452 -1333
  53. package/dist/components/toggle/Toggle.stories.tsx +488 -909
  54. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
  55. package/dist/components/typography/Typography.stories.tsx +406 -89
  56. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  57. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  58. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  59. package/dist/icons/Icons.stories.tsx +0 -12
  60. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
  61. package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
  62. package/dist/icons/all-icons.tsx +124 -87
  63. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
  64. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
  65. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
  66. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
  67. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
  68. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
  69. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
  70. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
  71. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
  72. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
  73. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
  74. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
  75. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
  76. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
  77. package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
  78. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
  79. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
  80. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
  81. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
  82. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
  83. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
  84. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
  85. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
  86. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
  87. package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
  88. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
  89. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
  90. package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
  91. package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
  92. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
  93. package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
  94. package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
  95. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
  96. package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
  97. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
  98. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
  99. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
  100. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
  101. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
  102. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
  103. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
  104. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
  105. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
  106. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
  107. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
  108. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
  109. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
  110. package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
  111. package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
  112. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
  113. package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
  114. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
  115. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
  116. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
  117. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
  118. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
  119. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
  120. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
  121. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
  122. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
  123. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
  124. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
  125. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
  126. package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
  127. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
  128. package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
  129. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
  130. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
  131. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
  132. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
  133. package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
  134. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
  135. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
  136. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
  137. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
  138. package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
  139. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
  140. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
  141. package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
  142. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
  143. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
  144. package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
  145. package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
  146. package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
  147. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
  148. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
  149. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
  150. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
  151. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
  152. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
  153. package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
  154. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
  155. package/dist/icons/spinner-solid-icon/index.tsx +6 -1
  156. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
  157. package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
  158. package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
  159. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
  160. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
  161. package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
  162. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
  163. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
  164. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
  165. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
  166. package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
  167. package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
  168. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
  169. package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
  170. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
  171. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
  172. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
  173. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
  174. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
  175. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
  176. package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
  177. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
  178. package/dist/index.cjs +84 -84
  179. package/dist/index.js +84 -84
  180. package/dist/styles/aural-all-theme.css +1222 -0
  181. package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
  182. package/dist/styles/aural-light-theme.css +1047 -0
  183. package/package.json +1 -1
@@ -1,24 +1,20 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  import React, { useState } from "react"
3
- import { Badge } from "@components/badge"
4
3
  import { Button } from "@components/button"
5
4
  import { Checkbox } from "@components/checkbox"
6
- import { IconButton } from "@components/icon-button"
7
5
  import Input from "@components/input"
8
6
  import { Label } from "@components/label"
9
- import Textarea from "@components/textarea"
10
7
  import { AlertIcon } from "@icons/alert-icon"
11
- import { ArrowRightIcon } from "@icons/arrow-right-icon"
12
8
  import { ChevronRightIcon } from "@icons/chevron-right-icon"
13
- import { FeatureShineIcon } from "@icons/feature-shine-icon"
14
- import { FileChartIcon } from "@icons/file-chart-icon"
15
- import { MagicBookIcon } from "@icons/magic-book-icon"
16
9
  import { MaintenanceIcon } from "@icons/maintenance-icon"
10
+ import { MusicalNoteIcon } from "@icons/musical-note-icon"
17
11
  import { SearchIcon } from "@icons/search-icon"
18
12
  import { SiteLogoIcon } from "@icons/site-logo-icon"
19
13
  import { TickCircleIcon } from "@icons/tick-circle-icon"
20
14
  import type { Meta, StoryObj } from "@storybook/react-vite"
21
15
 
16
+ import { AuralComponentDocsPage } from "src/ui/story-spec/components/component-story-docs-page"
17
+
22
18
  import {
23
19
  Sheet,
24
20
  SheetClose,
@@ -34,115 +30,30 @@ const meta: Meta<typeof Sheet> = {
34
30
  title: "Components/UI/Sheet",
35
31
  component: Sheet,
36
32
  parameters: {
37
- layout: "fullscreen",
38
- backgrounds: {
39
- default: "dark",
40
- values: [
41
- { name: "dark", value: "#0a0a0a" },
42
- { name: "light", value: "#ffffff" },
43
- ],
44
- },
33
+ layout: "centered",
45
34
  docs: {
46
35
  description: {
47
- component: `
48
- # Sheet Component
49
-
50
- A slide-out panel component built on Radix UI Dialog primitives that provides a drawer-like interface for displaying content from different sides of the screen.
51
-
52
- ## Features
53
-
54
- - **Multiple Sides**: Sheet can slide in from top, right, bottom, or left
55
- - **Variant Colors**: Neutral, positive, negative, warning, and info color variants
56
- - **Customizable Overlays**: Configurable opacity, glass effects, and noise textures
57
- - **Smooth Animations**: Slide animations with proper easing for each direction
58
- - **Accessible**: Full keyboard navigation and screen reader support
59
- - **Flexible Content**: Header, footer, and body sections with custom styling
60
- - **Auto Close Button**: Positioned close button with CrossIcon
61
- - **Portal Rendering**: Renders outside normal DOM hierarchy
62
- - **Focus Management**: Automatic focus trapping and restoration
63
- - **Border Accents**: Colored borders that match the variant
64
-
65
- ## Component Structure
66
-
67
- - **Sheet**: Root component that manages sheet state
68
- - **SheetTrigger**: Button or element that opens the sheet
69
- - **SheetContent**: Main sheet container with overlay, content, and close button
70
- - **SheetHeader**: Header section for title and description
71
- - **SheetFooter**: Footer section for action buttons
72
- - **SheetTitle**: Accessible title element
73
- - **SheetDescription**: Optional description text
74
- - **SheetClose**: Close button component
75
-
76
- ## Usage Examples
77
-
78
- ### Basic Sheet
79
- \`\`\`tsx
80
- <Sheet>
81
- <SheetTrigger asChild>
82
- <Button>Open Sheet</Button>
83
- </SheetTrigger>
84
- <SheetContent>
85
- <SheetHeader>
86
- <SheetTitle>Sheet Title</SheetTitle>
87
- <SheetDescription>Sheet description text.</SheetDescription>
88
- </SheetHeader>
89
- <div>Sheet content goes here.</div>
90
- <SheetFooter>
91
- <SheetClose asChild>
92
- <Button variant="outline">Cancel</Button>
93
- </SheetClose>
94
- <Button>Confirm</Button>
95
- </SheetFooter>
96
- </SheetContent>
97
- </Sheet>
98
- \`\`\`
99
-
100
- ### Sheet from Different Sides
101
- \`\`\`tsx
102
- <SheetContent side="left">
103
- {/* Left side sheet */}
104
- </SheetContent>
105
-
106
- <SheetContent side="right">
107
- {/* Right side sheet (default) */}
108
- </SheetContent>
109
-
110
- <SheetContent side="top">
111
- {/* Top side sheet */}
112
- </SheetContent>
113
-
114
- <SheetContent side="bottom">
115
- {/* Bottom side sheet */}
116
- </SheetContent>
117
- \`\`\`
118
-
119
- ### Colored Variants
120
- \`\`\`tsx
121
- <SheetContent variant="positive">
122
- {/* Success/positive themed sheet */}
123
- </SheetContent>
124
-
125
- <SheetContent variant="negative">
126
- {/* Error/negative themed sheet */}
127
- </SheetContent>
128
-
129
- <SheetContent variant="warning">
130
- {/* Warning themed sheet */}
131
- </SheetContent>
132
-
133
- <SheetContent variant="info">
134
- {/* Info themed sheet */}
135
- </SheetContent>
136
- \`\`\`
137
-
138
- ### Custom Overlay
139
- \`\`\`tsx
140
- <SheetContent opacity="high" glass="medium" noise="low">
141
- {/* High opacity overlay with glass effect and subtle noise */}
142
- </SheetContent>
143
- \`\`\`
144
- `,
36
+ component:
37
+ "A slide-out panel built on Radix UI Dialog primitives. Supports four entry sides, five semantic variants with matching gradient border accents, and configurable glass/noise overlays. Ideal for navigation drawers, detail panels, filter sidebars, and contextual action sheets.",
145
38
  },
39
+ page: () => (
40
+ <AuralComponentDocsPage
41
+ features={[
42
+ {
43
+ title: "4 Entry Sides",
44
+ description: "Top, bottom, left, right",
45
+ },
46
+ {
47
+ title: "5 Variant Borders",
48
+ description: "Neutral to negative",
49
+ },
50
+ {
51
+ title: "Glass & Noise",
52
+ description: "Overlay blur and grain",
53
+ },
54
+ ]}
55
+ />
56
+ ),
146
57
  },
147
58
  },
148
59
  tags: ["autodocs"],
@@ -151,900 +62,724 @@ A slide-out panel component built on Radix UI Dialog primitives that provides a
151
62
  export default meta
152
63
  type Story = StoryObj<typeof Sheet>
153
64
 
154
- // Demo background content
155
- const BackgroundContent = () => (
156
- <div className="min-h-screen bg-gradient-to-br from-blue-900 via-purple-900 to-pink-900 p-8">
157
- <div className="mx-auto max-w-4xl space-y-8">
158
- <header className="text-center">
159
- <h1 className="mb-4 text-4xl font-bold text-white">
160
- Main Content Area
161
- </h1>
162
- <p className="text-white/80">
163
- This is the main content that sits behind the sheet overlay
164
- </p>
165
- </header>
65
+ // ─── Configurations ────────────────────────────────────────────────────────────
166
66
 
167
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
168
- {Array.from({ length: 6 }, (_, i) => (
169
- <div
170
- key={i}
171
- className="rounded-lg border border-white/20 bg-white/10 p-6"
172
- >
173
- <h3 className="mb-2 text-lg font-semibold text-white">
174
- Content Block {i + 1}
175
- </h3>
176
- <p className="mb-4 text-sm text-white/70">
177
- Sample content that demonstrates the sheet overlay effect
178
- </p>
179
- <Button size="sm" variant="outline">
180
- Action
67
+ export const Configurations: Story = {
68
+ render: () => {
69
+ const SideSheet = ({ side, variant, label, description }: any) => (
70
+ <div className="space-y-2 text-center">
71
+ <Sheet>
72
+ <SheetTrigger asChild>
73
+ <Button variant="outline" size="sm">
74
+ {label}
181
75
  </Button>
182
- </div>
183
- ))}
76
+ </SheetTrigger>
77
+ <SheetContent side={side} variant={variant} container={null}>
78
+ <SheetHeader>
79
+ <SheetTitle>{label} Sheet</SheetTitle>
80
+ <SheetDescription>{description}</SheetDescription>
81
+ </SheetHeader>
82
+ <div className="py-4">
83
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border px-4 py-3">
84
+ <code className="text-fm-secondary text-fm-sm leading-fm-sm font-(--font-fm-mono)">
85
+ side="{side}" variant="{variant}"
86
+ </code>
87
+ </div>
88
+ </div>
89
+ <SheetFooter>
90
+ <SheetClose asChild>
91
+ <Button>Close</Button>
92
+ </SheetClose>
93
+ </SheetFooter>
94
+ </SheetContent>
95
+ </Sheet>
96
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
97
+ {label}
98
+ </p>
184
99
  </div>
185
- </div>
186
- </div>
187
- )
188
-
189
- // 1. Sheet Sides and Variants
190
- export const SidesAndVariants: Story = {
191
- render: () => (
192
- <div className="relative">
193
- <BackgroundContent />
194
-
195
- {/* Control Panel */}
196
- <div className="fixed top-4 left-1/2 z-50 -translate-x-1/2 transform">
197
- <div className="space-y-4 rounded-lg bg-black/80 p-6 backdrop-blur-sm">
198
- <h3 className="text-center text-sm font-medium text-white">
199
- Sheet Sides & Variants
200
- </h3>
201
-
202
- {/* Sides */}
203
- <div className="space-y-2">
204
- <h4 className="text-xs font-medium tracking-wide text-white/70 uppercase">
205
- Sides
206
- </h4>
207
- <div className="grid grid-cols-2 gap-2">
208
- {/* Left Sheet - Neutral */}
209
- <Sheet>
210
- <SheetTrigger asChild>
211
- <Button size="sm" variant="outline">
212
- Left
213
- </Button>
214
- </SheetTrigger>
215
- <SheetContent side="left" variant="neutral">
216
- <SheetHeader>
217
- <SheetTitle>Left Side Sheet</SheetTitle>
218
- <SheetDescription>
219
- Slides in from the left with neutral styling
220
- </SheetDescription>
221
- </SheetHeader>
222
- <div className="py-4">
223
- <div className="space-y-4">
224
- <div className="rounded-lg bg-white/5 p-4">
225
- <h4 className="mb-2 font-medium text-white">
226
- Navigation Menu
227
- </h4>
228
- <div className="space-y-2">
229
- {["Dashboard", "Projects", "Team", "Settings"].map(
230
- (item) => (
231
- <div
232
- key={item}
233
- className="flex items-center gap-3 rounded p-2 hover:bg-white/10"
234
- >
235
- <SiteLogoIcon className="h-4 w-4 text-white/60" />
236
- <span className="text-white">{item}</span>
237
- </div>
238
- )
239
- )}
240
- </div>
241
- </div>
242
- </div>
243
- </div>
244
- </SheetContent>
245
- </Sheet>
100
+ )
246
101
 
247
- {/* Right Sheet - Positive */}
248
- <Sheet>
249
- <SheetTrigger asChild>
250
- <Button size="sm" variant="outline">
251
- Right
252
- </Button>
253
- </SheetTrigger>
254
- <SheetContent side="right" variant="positive">
255
- <SheetHeader>
256
- <SheetTitle>Right Side Sheet</SheetTitle>
257
- <SheetDescription>
258
- Slides in from the right with positive styling
259
- </SheetDescription>
260
- </SheetHeader>
261
- <div className="py-4">
262
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
263
- <div className="mb-2 flex items-center gap-2">
264
- <TickCircleIcon className="h-5 w-5 text-green-400" />
265
- <h4 className="font-medium text-white">
266
- Success Panel
267
- </h4>
268
- </div>
269
- <p className="text-sm text-white/80">
270
- This demonstrates the positive variant with green accent
271
- border.
272
- </p>
273
- </div>
274
- </div>
275
- </SheetContent>
276
- </Sheet>
102
+ const OverlaySheet = ({ label, opacity, glass, noise }: any) => (
103
+ <div className="space-y-2 text-center">
104
+ <Sheet>
105
+ <SheetTrigger asChild>
106
+ <Button variant="outline" size="sm">
107
+ {label}
108
+ </Button>
109
+ </SheetTrigger>
110
+ <SheetContent
111
+ side="right"
112
+ variant="neutral"
113
+ opacity={opacity}
114
+ glass={glass}
115
+ noise={noise}
116
+ container={null}
117
+ >
118
+ <SheetHeader>
119
+ <SheetTitle>{label}</SheetTitle>
120
+ <SheetDescription>Overlay configuration demo.</SheetDescription>
121
+ </SheetHeader>
122
+ <div className="py-4">
123
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border px-4 py-3">
124
+ <code className="text-fm-secondary text-fm-sm leading-fm-sm font-(--font-fm-mono)">
125
+ {[
126
+ opacity && `opacity="${opacity}"`,
127
+ glass && `glass="${glass}"`,
128
+ noise && `noise="${noise}"`,
129
+ ]
130
+ .filter(Boolean)
131
+ .join(" ")}
132
+ </code>
133
+ </div>
134
+ </div>
135
+ <SheetFooter>
136
+ <SheetClose asChild>
137
+ <Button>Close</Button>
138
+ </SheetClose>
139
+ </SheetFooter>
140
+ </SheetContent>
141
+ </Sheet>
142
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
143
+ {label}
144
+ </p>
145
+ </div>
146
+ )
277
147
 
278
- {/* Top Sheet - Warning */}
279
- <Sheet>
280
- <SheetTrigger asChild>
281
- <Button size="sm" variant="outline">
282
- Top
283
- </Button>
284
- </SheetTrigger>
285
- <SheetContent side="top" variant="warning">
286
- <SheetHeader>
287
- <SheetTitle>Top Side Sheet</SheetTitle>
288
- <SheetDescription>
289
- Slides down from the top with warning styling
290
- </SheetDescription>
291
- </SheetHeader>
292
- <div className="py-4">
293
- <div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
294
- <div className="mb-2 flex items-center gap-2">
295
- <AlertIcon className="h-5 w-5 text-yellow-400" />
296
- <h4 className="font-medium text-white">
297
- Warning Notice
298
- </h4>
299
- </div>
300
- <p className="text-sm text-white/80">
301
- Top sheets are great for notifications and warnings.
302
- </p>
303
- </div>
304
- </div>
305
- </SheetContent>
306
- </Sheet>
148
+ return (
149
+ <div className="space-y-8">
150
+ {/* All four sides */}
151
+ <div className="space-y-3">
152
+ <h4 className="text-fm-secondary font-fm-text text-fm-md leading-fm-md font-medium">
153
+ All Four Sides
154
+ </h4>
155
+ <div className="flex flex-wrap gap-6">
156
+ <SideSheet
157
+ side="left"
158
+ variant="neutral"
159
+ label="Left"
160
+ description="Slides in from the left — navigation and filter panels."
161
+ />
162
+ <SideSheet
163
+ side="right"
164
+ variant="neutral"
165
+ label="Right"
166
+ description="Slides in from the right — detail and settings panels."
167
+ />
168
+ <SideSheet
169
+ side="top"
170
+ variant="neutral"
171
+ label="Top"
172
+ description="Slides down from the top — notifications and alerts."
173
+ />
174
+ <SideSheet
175
+ side="bottom"
176
+ variant="neutral"
177
+ label="Bottom"
178
+ description="Slides up from the bottom — mobile-style action sheets."
179
+ />
180
+ </div>
181
+ </div>
307
182
 
308
- {/* Bottom Sheet - Info */}
309
- <Sheet>
310
- <SheetTrigger asChild>
311
- <Button size="sm" variant="outline">
312
- Bottom
313
- </Button>
314
- </SheetTrigger>
315
- <SheetContent side="bottom" variant="info">
316
- <SheetHeader>
317
- <SheetTitle>Bottom Side Sheet</SheetTitle>
318
- <SheetDescription>
319
- Slides up from the bottom with info styling
320
- </SheetDescription>
321
- </SheetHeader>
322
- <div className="py-4">
323
- <div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
324
- <div className="mb-2 flex items-center gap-2">
325
- <FileChartIcon className="h-5 w-5 text-blue-400" />
326
- <h4 className="font-medium text-white">
327
- Information Panel
328
- </h4>
329
- </div>
330
- <p className="text-sm text-white/80">
331
- Bottom sheets work well for mobile-style interactions.
332
- </p>
333
- </div>
334
- </div>
335
- </SheetContent>
336
- </Sheet>
337
- </div>
183
+ {/* Variant types */}
184
+ <div className="space-y-3">
185
+ <h4 className="text-fm-secondary font-fm-text text-fm-md leading-fm-md font-medium">
186
+ Semantic Variants
187
+ </h4>
188
+ <div className="flex flex-wrap gap-6">
189
+ <SideSheet
190
+ side="right"
191
+ variant="neutral"
192
+ label="Neutral"
193
+ description="Default neutral border accent."
194
+ />
195
+ <SideSheet
196
+ side="right"
197
+ variant="positive"
198
+ label="Positive"
199
+ description="Green border accent for success states."
200
+ />
201
+ <SideSheet
202
+ side="right"
203
+ variant="negative"
204
+ label="Negative"
205
+ description="Red border accent for error states."
206
+ />
207
+ <SideSheet
208
+ side="right"
209
+ variant="warning"
210
+ label="Warning"
211
+ description="Yellow border accent for cautionary states."
212
+ />
213
+ <SideSheet
214
+ side="right"
215
+ variant="info"
216
+ label="Info"
217
+ description="Blue border accent for informational states."
218
+ />
338
219
  </div>
220
+ </div>
339
221
 
340
- {/* Error Variant */}
341
- <div className="space-y-2">
342
- <h4 className="text-xs font-medium tracking-wide text-white/70 uppercase">
343
- Error Variant
344
- </h4>
345
- <Sheet>
346
- <SheetTrigger asChild>
347
- <Button size="sm" variant="outline">
348
- Error Sheet
349
- </Button>
350
- </SheetTrigger>
351
- <SheetContent side="right" variant="negative">
352
- <SheetHeader>
353
- <SheetTitle>Error Sheet</SheetTitle>
354
- <SheetDescription>
355
- Demonstrates the negative variant for error states
356
- </SheetDescription>
357
- </SheetHeader>
358
- <div className="py-4">
359
- <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
360
- <div className="mb-2 flex items-center gap-2">
361
- <AlertIcon className="h-5 w-5 text-red-400" />
362
- <h4 className="font-medium text-white">Error Details</h4>
363
- </div>
364
- <p className="mb-3 text-sm text-white/80">
365
- Something went wrong. Please check the details below.
366
- </p>
367
- <div className="space-y-2">
368
- <div className="text-xs text-red-200">
369
- • Network connection failed
370
- </div>
371
- <div className="text-xs text-red-200">
372
- • Invalid response format
373
- </div>
374
- </div>
375
- </div>
376
- </div>
377
- <SheetFooter>
378
- <Button variant="outline" size="sm">
379
- Retry
380
- </Button>
381
- <SheetClose asChild>
382
- <Button size="sm">Close</Button>
383
- </SheetClose>
384
- </SheetFooter>
385
- </SheetContent>
386
- </Sheet>
222
+ {/* Overlay options */}
223
+ <div className="space-y-3">
224
+ <h4 className="text-fm-secondary font-fm-text text-fm-md leading-fm-md font-medium">
225
+ Glass &amp; Noise Overlay Options
226
+ </h4>
227
+ <div className="flex flex-wrap gap-6">
228
+ <OverlaySheet label="Low opacity" opacity="low" />
229
+ <OverlaySheet label="High opacity" opacity="high" />
230
+ <OverlaySheet label="High glass" glass="high" />
231
+ <OverlaySheet label="Noise texture" noise="medium" />
387
232
  </div>
388
233
  </div>
389
234
  </div>
390
- </div>
391
- ),
235
+ )
236
+ },
392
237
  parameters: {
393
238
  docs: {
394
239
  description: {
395
240
  story:
396
- "Comprehensive demonstration of all sheet sides (left, right, top, bottom) and color variants (neutral, positive, negative, warning, info) with colored border accents.",
241
+ "Comparison of all four slide sides, all five semantic variants with gradient border accents, and overlay configuration options (opacity, glass, noise).",
397
242
  },
398
243
  },
399
244
  },
400
245
  }
401
246
 
402
- // 2. Navigation Sheet
403
- export const NavigationSheet: Story = {
404
- render: () => (
405
- <div className="relative">
406
- <BackgroundContent />
247
+ // ─── Interactive ───────────────────────────────────────────────────────────────
407
248
 
408
- {/* Mobile-style header */}
409
- <div className="fixed top-0 right-0 left-0 z-40 bg-black/80 backdrop-blur-sm">
410
- <div className="flex items-center justify-between p-4">
411
- <Sheet>
412
- <SheetTrigger asChild>
413
- <IconButton
414
- variant="ghost"
415
- icon={<SiteLogoIcon />}
416
- label="Menu"
417
- />
418
- </SheetTrigger>
419
- <SheetContent side="left" className="w-80">
420
- <SheetHeader>
421
- <SheetTitle>Navigation Menu</SheetTitle>
422
- <SheetDescription>
423
- Main navigation for the application
424
- </SheetDescription>
425
- </SheetHeader>
426
-
427
- <div className="py-4">
428
- <nav className="space-y-2">
429
- {[
430
- {
431
- label: "Dashboard",
432
- icon: SiteLogoIcon,
433
- active: true,
434
- badge: null,
435
- },
436
- {
437
- label: "Projects",
438
- icon: FeatureShineIcon,
439
- active: false,
440
- badge: "3",
441
- },
442
- {
443
- label: "Analytics",
444
- icon: FileChartIcon,
445
- active: false,
446
- badge: null,
447
- },
448
- {
449
- label: "Team",
450
- icon: TickCircleIcon,
451
- active: false,
452
- badge: "New",
453
- },
454
- {
455
- label: "Settings",
456
- icon: MaintenanceIcon,
457
- active: false,
458
- badge: null,
459
- },
460
- ].map((item) => (
461
- <a
462
- key={item.label}
463
- href="#"
464
- className={`flex items-center gap-3 rounded-lg p-3 transition-colors ${
465
- item.active
466
- ? "bg-blue-500/20 text-blue-300"
467
- : "text-white hover:bg-white/10"
468
- }`}
469
- >
470
- <item.icon className="h-5 w-5" />
471
- <span className="flex-1">{item.label}</span>
472
- {item.badge && (
473
- <Badge
474
- color={item.badge === "New" ? "positive" : "neutral"}
475
- size="sm"
476
- >
477
- {item.badge}
478
- </Badge>
479
- )}
480
- <ChevronRightIcon className="h-4 w-4" />
481
- </a>
482
- ))}
483
- </nav>
249
+ export const Interactive: Story = {
250
+ render: () => {
251
+ const InteractiveDemo = () => {
252
+ const [side, setSide] = useState<"top" | "bottom" | "left" | "right">(
253
+ "right"
254
+ )
255
+ const [variant, setVariant] = useState<
256
+ "neutral" | "positive" | "negative" | "warning" | "info"
257
+ >("neutral")
258
+ const [opacity, setOpacity] = useState<
259
+ "high" | "medium" | "low" | "none"
260
+ >("medium")
261
+ const [glass, setGlass] = useState<"high" | "medium" | "low" | "none">(
262
+ "none"
263
+ )
264
+ const [noise, setNoise] = useState<"high" | "medium" | "low" | "none">(
265
+ "none"
266
+ )
267
+ const [lastAction, setLastAction] = useState<string | null>(null)
268
+
269
+ const sides = ["left", "right", "top", "bottom"] as const
270
+ const variants = [
271
+ "neutral",
272
+ "positive",
273
+ "negative",
274
+ "warning",
275
+ "info",
276
+ ] as const
277
+ const levels = ["none", "low", "medium", "high"] as const
278
+
279
+ const btnCls = (active: boolean) =>
280
+ `font-fm-text text-fm-sm leading-fm-sm rounded px-2 py-1 outline-none transition-colors ${
281
+ active
282
+ ? "bg-fm-surface-contrast text-fm-contrast"
283
+ : "bg-fm-surface-secondary text-fm-secondary hover:text-fm-primary"
284
+ }`
285
+
286
+ return (
287
+ <div className="w-full p-8">
288
+ <div className="mx-auto max-w-3xl space-y-6">
289
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-3">
290
+ {/* Controls panel */}
291
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-5 rounded-xl border p-5">
292
+ <p className="text-fm-primary font-fm-brand text-fm-sm leading-fm-sm font-semibold tracking-widest uppercase">
293
+ Configuration
294
+ </p>
484
295
 
485
- <div className="mt-8 space-y-4">
486
- <div className="rounded-lg bg-white/5 p-4">
487
- <h4 className="mb-2 text-sm font-medium text-white">
488
- Quick Actions
489
- </h4>
490
- <div className="space-y-2">
491
- <Button
492
- size="sm"
493
- variant="outline"
494
- className="w-full justify-start"
495
- >
496
- <SearchIcon className="mr-2 h-4 w-4" />
497
- Search
498
- </Button>
499
- <Button
500
- size="sm"
501
- variant="outline"
502
- className="w-full justify-start"
296
+ <div className="space-y-2">
297
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
298
+ Side
299
+ </p>
300
+ <div className="flex flex-wrap gap-1">
301
+ {sides.map((s) => (
302
+ <button
303
+ key={s}
304
+ onClick={() => setSide(s)}
305
+ className={btnCls(side === s)}
503
306
  >
504
- <MagicBookIcon className="mr-2 h-4 w-4" />
505
- Help & Support
506
- </Button>
507
- </div>
307
+ {s}
308
+ </button>
309
+ ))}
508
310
  </div>
509
311
  </div>
510
- </div>
511
312
 
512
- <SheetFooter>
513
- <div className="w-full space-y-2">
514
- <div className="flex items-center gap-3 rounded-lg bg-white/5 p-3">
515
- <div className="h-8 w-8 rounded-full bg-gradient-to-r from-blue-500 to-purple-500"></div>
516
- <div>
517
- <p className="text-sm font-medium text-white">John Doe</p>
518
- <p className="text-xs text-white/60">john@example.com</p>
519
- </div>
313
+ <div className="border-fm-divider-secondary border-t pt-4" />
314
+
315
+ <div className="space-y-2">
316
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
317
+ Variant
318
+ </p>
319
+ <div className="flex flex-wrap gap-1">
320
+ {variants.map((v) => (
321
+ <button
322
+ key={v}
323
+ onClick={() => setVariant(v)}
324
+ className={btnCls(variant === v)}
325
+ >
326
+ {v}
327
+ </button>
328
+ ))}
520
329
  </div>
521
- <SheetClose asChild>
522
- <Button variant="outline" className="w-full">
523
- Close Menu
524
- </Button>
525
- </SheetClose>
526
330
  </div>
527
- </SheetFooter>
528
- </SheetContent>
529
- </Sheet>
530
-
531
- <h1 className="text-lg font-semibold text-white">App Title</h1>
532
-
533
- <IconButton
534
- variant="ghost"
535
- icon={<MaintenanceIcon />}
536
- label="Settings"
537
- />
538
- </div>
539
- </div>
540
-
541
- {/* Add padding top to account for fixed header */}
542
- <div className="pt-16">
543
- <BackgroundContent />
544
- </div>
545
- </div>
546
- ),
547
- parameters: {
548
- docs: {
549
- description: {
550
- story:
551
- "Mobile-style navigation sheet with menu items, badges, user profile, and quick actions demonstrating common mobile app patterns.",
552
- },
553
- },
554
- },
555
- }
556
-
557
- // 3. Form Sheet
558
- export const FormSheet: Story = {
559
- render: () => {
560
- const [formData, setFormData] = useState({
561
- name: "",
562
- email: "",
563
- subject: "",
564
- message: "",
565
- newsletter: false,
566
- })
567
-
568
- return (
569
- <div className="relative">
570
- <BackgroundContent />
571
331
 
572
- <div className="fixed right-4 bottom-4 z-50">
573
- <Sheet>
574
- <SheetTrigger asChild>
575
- <Button className="rounded-full shadow-lg">
576
- <SearchIcon className="mr-2 h-4 w-4" />
577
- Contact Us
578
- </Button>
579
- </SheetTrigger>
580
- <SheetContent side="right" className="w-96">
581
- <SheetHeader>
582
- <SheetTitle>Contact Form</SheetTitle>
583
- <SheetDescription>
584
- Send us a message and we'll get back to you soon.
585
- </SheetDescription>
586
- </SheetHeader>
332
+ <div className="border-fm-divider-secondary border-t pt-4" />
587
333
 
588
- <div className="py-4">
589
- <form className="space-y-4">
590
- <div className="space-y-2">
591
- <Label htmlFor="name">Name</Label>
592
- <Input
593
- id="name"
594
- placeholder="Your full name"
595
- value={formData.name}
596
- onChange={(e: any) =>
597
- setFormData((prev) => ({
598
- ...prev,
599
- name: e.target.value,
600
- }))
601
- }
602
- />
334
+ <div className="space-y-2">
335
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
336
+ Opacity
337
+ </p>
338
+ <div className="flex flex-wrap gap-1">
339
+ {levels.map((l) => (
340
+ <button
341
+ key={l}
342
+ onClick={() => setOpacity(l)}
343
+ className={btnCls(opacity === l)}
344
+ >
345
+ {l}
346
+ </button>
347
+ ))}
603
348
  </div>
349
+ </div>
604
350
 
605
- <div className="space-y-2">
606
- <Label htmlFor="email">Email</Label>
607
- <Input
608
- id="email"
609
- type="email"
610
- placeholder="your.email@example.com"
611
- value={formData.email}
612
- onChange={(e: any) =>
613
- setFormData((prev) => ({
614
- ...prev,
615
- email: e.target.value,
616
- }))
617
- }
618
- />
351
+ <div className="space-y-2">
352
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
353
+ Glass
354
+ </p>
355
+ <div className="flex flex-wrap gap-1">
356
+ {levels.map((l) => (
357
+ <button
358
+ key={l}
359
+ onClick={() => setGlass(l)}
360
+ className={btnCls(glass === l)}
361
+ >
362
+ {l}
363
+ </button>
364
+ ))}
619
365
  </div>
366
+ </div>
620
367
 
621
- <div className="space-y-2">
622
- <Label htmlFor="subject">Subject</Label>
623
- <Input
624
- id="subject"
625
- placeholder="Message subject"
626
- value={formData.subject}
627
- onChange={(e: any) =>
628
- setFormData((prev) => ({
629
- ...prev,
630
- subject: e.target.value,
631
- }))
632
- }
633
- />
368
+ <div className="space-y-2">
369
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
370
+ Noise
371
+ </p>
372
+ <div className="flex flex-wrap gap-1">
373
+ {levels.map((l) => (
374
+ <button
375
+ key={l}
376
+ onClick={() => setNoise(l)}
377
+ className={btnCls(noise === l)}
378
+ >
379
+ {l}
380
+ </button>
381
+ ))}
634
382
  </div>
383
+ </div>
384
+ </div>
635
385
 
636
- <div className="space-y-2">
637
- <Label htmlFor="message">Message</Label>
638
- <Textarea
639
- id="message"
640
- placeholder="Your message..."
641
- rows={4}
642
- value={formData.message}
643
- onChange={(e: any) =>
644
- setFormData((prev) => ({
645
- ...prev,
646
- message: e.target.value,
647
- }))
648
- }
649
- />
650
- </div>
386
+ {/* Preview stage */}
387
+ <div className="flex flex-col gap-3 lg:col-span-2">
388
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex min-h-48 flex-col items-center justify-center gap-4 rounded-xl border p-8">
389
+ {lastAction && (
390
+ <div
391
+ className={`rounded-lg border px-4 py-2 ${
392
+ lastAction === "confirmed"
393
+ ? "border-fm-divider-positive bg-fm-surface-positive-sec"
394
+ : "border-fm-divider-secondary bg-fm-surface-secondary"
395
+ }`}
396
+ >
397
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
398
+ Last action:{" "}
399
+ <span className="text-fm-primary font-medium">
400
+ {lastAction}
401
+ </span>
402
+ </p>
403
+ </div>
404
+ )}
651
405
 
652
- <div className="flex items-center space-x-2">
653
- <Checkbox
654
- id="newsletter"
655
- checked={formData.newsletter}
656
- onCheckedChange={(checked) =>
657
- setFormData((prev) => ({
658
- ...prev,
659
- newsletter: checked as boolean,
660
- }))
661
- }
662
- />
663
- <Label htmlFor="newsletter" className="text-sm">
664
- Subscribe to newsletter
665
- </Label>
666
- </div>
406
+ <Sheet>
407
+ <SheetTrigger asChild>
408
+ <Button onClick={() => setLastAction(null)}>
409
+ Open Sheet
410
+ </Button>
411
+ </SheetTrigger>
412
+ <SheetContent
413
+ side={side}
414
+ variant={variant}
415
+ opacity={opacity}
416
+ glass={glass}
417
+ noise={noise}
418
+ container={null}
419
+ >
420
+ <SheetHeader>
421
+ <SheetTitle>Sheet Preview</SheetTitle>
422
+ <SheetDescription>
423
+ Interact with content inside the sheet, then confirm
424
+ or cancel.
425
+ </SheetDescription>
426
+ </SheetHeader>
427
+
428
+ <div className="py-4">
429
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border px-4 py-3">
430
+ <code className="text-fm-secondary text-fm-sm leading-fm-sm font-(--font-fm-mono)">
431
+ {`side="${side}" variant="${variant}" opacity="${opacity}" glass="${glass}" noise="${noise}"`}
432
+ </code>
433
+ </div>
434
+ </div>
667
435
 
668
- <div className="rounded-lg bg-blue-500/10 p-3">
669
- <p className="text-xs text-blue-200">
670
- We typically respond within 24 hours. For urgent matters,
671
- please call our support line.
672
- </p>
673
- </div>
674
- </form>
675
- </div>
436
+ <SheetFooter>
437
+ <Button
438
+ variant="outline"
439
+ onClick={() => setLastAction("cancelled")}
440
+ >
441
+ Cancel
442
+ </Button>
443
+ <SheetClose asChild>
444
+ <Button onClick={() => setLastAction("confirmed")}>
445
+ Confirm
446
+ </Button>
447
+ </SheetClose>
448
+ </SheetFooter>
449
+ </SheetContent>
450
+ </Sheet>
451
+ </div>
676
452
 
677
- <SheetFooter>
678
- <div className="flex w-full gap-2">
679
- <SheetClose asChild>
680
- <Button variant="outline" className="flex-1">
681
- Cancel
682
- </Button>
683
- </SheetClose>
684
- <Button
685
- className="flex-1"
686
- disabled={
687
- !formData.name || !formData.email || !formData.message
688
- }
689
- >
690
- Send Message
691
- </Button>
453
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border px-4 py-3">
454
+ <code className="text-fm-secondary text-fm-sm leading-fm-sm font-(--font-fm-mono)">
455
+ {`<SheetContent side="${side}" variant="${variant}" opacity="${opacity}" glass="${glass}" noise="${noise}" />`}
456
+ </code>
692
457
  </div>
693
- </SheetFooter>
694
- </SheetContent>
695
- </Sheet>
458
+ </div>
459
+ </div>
460
+ </div>
696
461
  </div>
697
- </div>
698
- )
462
+ )
463
+ }
464
+
465
+ return <InteractiveDemo />
699
466
  },
700
467
  parameters: {
701
468
  docs: {
702
469
  description: {
703
470
  story:
704
- "Contact form sheet with form validation, checkbox input, and user feedback elements.",
471
+ "Live configurator pick side, variant, opacity, glass, and noise, then open the sheet and confirm or cancel to see state feedback.",
705
472
  },
706
473
  },
707
474
  },
708
475
  }
709
476
 
710
- // 4. Settings Panel Sheet
711
- export const SettingsPanelSheet: Story = {
712
- render: () => {
713
- const [settings, setSettings] = useState({
714
- notifications: true,
715
- darkMode: true,
716
- analytics: false,
717
- autoSave: true,
718
- emailUpdates: false,
719
- })
720
-
721
- const toggleSetting = (key: string) => {
722
- setSettings((prev) => ({
723
- ...prev,
724
- [key]: !prev[key as keyof typeof prev],
725
- }))
726
- }
727
-
728
- return (
729
- <div className="relative">
730
- <BackgroundContent />
731
-
732
- <div className="fixed top-4 right-4 z-50">
733
- <Sheet>
734
- <SheetTrigger asChild>
735
- <Button variant="outline">
736
- <MaintenanceIcon className="mr-2 h-4 w-4" />
737
- Settings
738
- </Button>
739
- </SheetTrigger>
740
- <SheetContent side="right" className="w-80">
741
- <SheetHeader>
742
- <SheetTitle>Application Settings</SheetTitle>
743
- <SheetDescription>
744
- Customize your experience and preferences
745
- </SheetDescription>
746
- </SheetHeader>
747
-
748
- <div className="py-4">
749
- <div className="space-y-6">
750
- {/* Notifications Section */}
751
- <div className="space-y-3">
752
- <h4 className="text-sm font-medium text-white">
753
- Notifications
754
- </h4>
755
- <div className="space-y-3">
756
- <div className="flex items-center justify-between">
757
- <span className="text-sm text-white">
758
- Push Notifications
759
- </span>
760
- <Checkbox
761
- checked={settings.notifications}
762
- onCheckedChange={() => toggleSetting("notifications")}
763
- />
764
- </div>
765
-
766
- <div className="flex items-center justify-between">
767
- <span className="text-sm text-white">
768
- Email Updates
769
- </span>
770
- <Checkbox
771
- checked={settings.emailUpdates}
772
- onCheckedChange={() => toggleSetting("emailUpdates")}
773
- />
774
- </div>
775
-
776
- <div className="flex items-center justify-between">
777
- <span className="text-sm text-white">Analytics</span>
778
- <Checkbox
779
- checked={settings.analytics}
780
- onCheckedChange={() => toggleSetting("analytics")}
781
- />
782
- </div>
783
- </div>
784
- </div>
477
+ // ─── UseCases ─────────────────────────────────────────────────────────────────
785
478
 
786
- {/* Appearance Section */}
787
- <div className="space-y-3">
788
- <h4 className="text-sm font-medium text-white">
789
- Appearance
790
- </h4>
791
- <div className="space-y-3">
792
- <div className="flex items-center justify-between">
793
- <span className="text-sm text-white">Dark Mode</span>
794
- <Checkbox
795
- checked={settings.darkMode}
796
- onCheckedChange={() => toggleSetting("darkMode")}
797
- />
798
- </div>
479
+ export const UseCases: Story = {
480
+ render: () => {
481
+ // Left: Filter panel
482
+ const FilterPanel = () => {
483
+ const [genre, setGenre] = useState<string[]>([])
484
+ const [mood, setMood] = useState<string[]>([])
485
+
486
+ const toggleFilter = (
487
+ list: string[],
488
+ set: (v: string[]) => void,
489
+ item: string
490
+ ) => {
491
+ set(
492
+ list.includes(item) ? list.filter((i) => i !== item) : [...list, item]
493
+ )
494
+ }
495
+
496
+ const genres = ["Lo-fi", "Jazz", "Electronic", "Acoustic", "Classical"]
497
+ const moods = ["Chill", "Focus", "Energetic", "Melancholic"]
498
+
499
+ return (
500
+ <Sheet>
501
+ <SheetTrigger asChild>
502
+ <Button variant="outline" size="sm">
503
+ Filter panel
504
+ </Button>
505
+ </SheetTrigger>
506
+ <SheetContent side="left" variant="neutral" container={null}>
507
+ <SheetHeader>
508
+ <SheetTitle>Filter Tracks</SheetTitle>
509
+ <SheetDescription>
510
+ Narrow your library by genre and mood.
511
+ </SheetDescription>
512
+ </SheetHeader>
513
+
514
+ <div className="space-y-6 py-4">
515
+ <div className="space-y-3">
516
+ <p className="text-fm-primary font-fm-brand text-fm-sm leading-fm-sm font-semibold tracking-widest uppercase">
517
+ Genre
518
+ </p>
519
+ <div className="space-y-2">
520
+ {genres.map((g) => (
521
+ <div key={g} className="flex items-center gap-3">
522
+ <Checkbox
523
+ id={`genre-${g}`}
524
+ checked={genre.includes(g)}
525
+ onCheckedChange={() => toggleFilter(genre, setGenre, g)}
526
+ />
527
+ <Label
528
+ htmlFor={`genre-${g}`}
529
+ className="text-fm-primary font-fm-text text-fm-md leading-fm-md"
530
+ >
531
+ {g}
532
+ </Label>
799
533
  </div>
800
- </div>
801
-
802
- {/* Advanced Section */}
803
- <div className="space-y-3">
804
- <h4 className="text-sm font-medium text-white">Advanced</h4>
805
- <div className="space-y-3">
806
- <div className="flex items-center justify-between">
807
- <span className="text-sm text-white">Auto Save</span>
808
- <Checkbox
809
- checked={settings.autoSave}
810
- onCheckedChange={() => toggleSetting("autoSave")}
811
- />
812
- </div>
534
+ ))}
535
+ </div>
536
+ </div>
813
537
 
814
- <Button variant="outline" size="sm" className="w-full">
815
- <FileChartIcon className="mr-2 h-4 w-4" />
816
- Clear Cache
817
- </Button>
538
+ <div className="border-fm-divider-secondary border-t" />
818
539
 
819
- <Button variant="outline" size="sm" className="w-full">
820
- <ArrowRightIcon className="mr-2 h-4 w-4" />
821
- Export Data
822
- </Button>
540
+ <div className="space-y-3">
541
+ <p className="text-fm-primary font-fm-brand text-fm-sm leading-fm-sm font-semibold tracking-widest uppercase">
542
+ Mood
543
+ </p>
544
+ <div className="space-y-2">
545
+ {moods.map((m) => (
546
+ <div key={m} className="flex items-center gap-3">
547
+ <Checkbox
548
+ id={`mood-${m}`}
549
+ checked={mood.includes(m)}
550
+ onCheckedChange={() => toggleFilter(mood, setMood, m)}
551
+ />
552
+ <Label
553
+ htmlFor={`mood-${m}`}
554
+ className="text-fm-primary font-fm-text text-fm-md leading-fm-md"
555
+ >
556
+ {m}
557
+ </Label>
823
558
  </div>
824
- </div>
559
+ ))}
825
560
  </div>
826
561
  </div>
827
562
 
828
- <SheetFooter>
829
- <div className="flex w-full gap-2">
830
- <Button variant="outline" size="sm" className="flex-1">
831
- Reset
832
- </Button>
833
- <SheetClose asChild>
834
- <Button size="sm" className="flex-1">
835
- Save Changes
836
- </Button>
837
- </SheetClose>
563
+ {(genre.length > 0 || mood.length > 0) && (
564
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-3">
565
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
566
+ Active filters:{" "}
567
+ <span className="text-fm-primary font-medium">
568
+ {[...genre, ...mood].join(", ")}
569
+ </span>
570
+ </p>
838
571
  </div>
839
- </SheetFooter>
840
- </SheetContent>
841
- </Sheet>
842
- </div>
843
- </div>
844
- )
845
- },
846
- parameters: {
847
- docs: {
848
- description: {
849
- story:
850
- "Settings panel sheet with checkboxes, sections, and action buttons demonstrating configuration interfaces.",
851
- },
852
- },
853
- },
854
- }
572
+ )}
573
+ </div>
855
574
 
856
- // 5. Overlay Variations
857
- export const OverlayVariations: Story = {
858
- render: () => (
859
- <div className="relative">
860
- <BackgroundContent />
575
+ <SheetFooter>
576
+ <Button
577
+ variant="outline"
578
+ onClick={() => {
579
+ setGenre([])
580
+ setMood([])
581
+ }}
582
+ >
583
+ Clear all
584
+ </Button>
585
+ <SheetClose asChild>
586
+ <Button>Apply filters</Button>
587
+ </SheetClose>
588
+ </SheetFooter>
589
+ </SheetContent>
590
+ </Sheet>
591
+ )
592
+ }
861
593
 
862
- <div className="fixed bottom-4 left-1/2 z-50 -translate-x-1/2 transform">
863
- <div className="space-y-2 rounded-lg bg-black/80 p-4 backdrop-blur-sm">
864
- <h3 className="text-center text-sm font-medium text-white">
865
- Overlay Variations
866
- </h3>
867
- <div className="flex gap-2">
868
- {/* Low Opacity */}
869
- <Sheet>
870
- <SheetTrigger asChild>
871
- <Button size="sm" variant="outline">
872
- Low Opacity
873
- </Button>
874
- </SheetTrigger>
875
- <SheetContent side="right" opacity="low">
876
- <SheetHeader>
877
- <SheetTitle>Low Opacity</SheetTitle>
878
- <SheetDescription>
879
- Subtle background overlay that maintains visibility
880
- </SheetDescription>
881
- </SheetHeader>
882
- <div className="py-4">
883
- <p className="text-sm text-white/80">
884
- This sheet uses low opacity overlay, allowing more of the
885
- background content to remain visible.
886
- </p>
887
- </div>
888
- </SheetContent>
889
- </Sheet>
594
+ // Right: Track details
595
+ const TrackDetails = () => {
596
+ const [liked, setLiked] = useState(false)
597
+ const [queued, setQueued] = useState(false)
890
598
 
891
- {/* High Opacity */}
892
- <Sheet>
893
- <SheetTrigger asChild>
894
- <Button size="sm" variant="outline">
895
- High Opacity
896
- </Button>
897
- </SheetTrigger>
898
- <SheetContent side="right" opacity="high">
899
- <SheetHeader>
900
- <SheetTitle>High Opacity</SheetTitle>
901
- <SheetDescription>
902
- Strong background overlay for maximum focus
903
- </SheetDescription>
904
- </SheetHeader>
905
- <div className="py-4">
906
- <p className="text-sm text-white/80">
907
- This sheet uses high opacity overlay, creating strong focus
908
- on the sheet content by dimming the background
909
- significantly.
910
- </p>
911
- </div>
912
- </SheetContent>
913
- </Sheet>
599
+ return (
600
+ <Sheet>
601
+ <SheetTrigger asChild>
602
+ <Button variant="outline" size="sm">
603
+ Track details
604
+ </Button>
605
+ </SheetTrigger>
606
+ <SheetContent side="right" variant="info" container={null}>
607
+ <SheetHeader>
608
+ <SheetTitle>Midnight Drive</SheetTitle>
609
+ <SheetDescription>
610
+ Lo-fi Chill · Album: Late Nights · 3:42
611
+ </SheetDescription>
612
+ </SheetHeader>
613
+
614
+ <div className="space-y-4 py-4">
615
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
616
+ <p className="text-fm-primary font-fm-brand text-fm-sm leading-fm-sm mb-3 font-semibold tracking-widest uppercase">
617
+ About this track
618
+ </p>
619
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-xl">
620
+ A smooth lo-fi track perfect for late-night focus sessions.
621
+ Released in 2024 as part of the Late Nights collection.
622
+ </p>
623
+ </div>
914
624
 
915
- {/* Glass Effect */}
916
- <Sheet>
917
- <SheetTrigger asChild>
918
- <Button size="sm" variant="outline">
919
- Glass Effect
920
- </Button>
921
- </SheetTrigger>
922
- <SheetContent side="right" glass="high">
923
- <SheetHeader>
924
- <SheetTitle>Glass Effect</SheetTitle>
925
- <SheetDescription>
926
- Frosted glass overlay for modern aesthetics
927
- </SheetDescription>
928
- </SheetHeader>
929
- <div className="py-4">
930
- <p className="text-sm text-white/80">
931
- This sheet includes a glass effect with backdrop blur,
932
- creating a modern frosted glass appearance.
933
- </p>
934
- </div>
935
- </SheetContent>
936
- </Sheet>
625
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-4">
626
+ <p className="text-fm-primary font-fm-brand text-fm-sm leading-fm-sm font-semibold tracking-widest uppercase">
627
+ Track info
628
+ </p>
629
+ {[
630
+ { label: "Artist", value: "Chill Collective" },
631
+ { label: "BPM", value: "85" },
632
+ { label: "Key", value: "F Minor" },
633
+ { label: "Plays", value: "124,381" },
634
+ ].map((row) => (
635
+ <div
636
+ key={row.label}
637
+ className="flex items-center justify-between"
638
+ >
639
+ <span className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm">
640
+ {row.label}
641
+ </span>
642
+ <span className="text-fm-primary font-fm-text text-fm-sm leading-fm-sm font-medium">
643
+ {row.value}
644
+ </span>
645
+ </div>
646
+ ))}
647
+ </div>
937
648
 
938
- {/* Noise Texture */}
939
- <Sheet>
940
- <SheetTrigger asChild>
941
- <Button size="sm" variant="outline">
942
- Noise Texture
649
+ <div className="flex gap-2">
650
+ <Button
651
+ variant="outline"
652
+ size="sm"
653
+ className="flex-1 gap-2"
654
+ onClick={() => setLiked((v) => !v)}
655
+ >
656
+ <TickCircleIcon className="h-4 w-4" />
657
+ {liked ? "Liked" : "Like"}
943
658
  </Button>
944
- </SheetTrigger>
945
- <SheetContent side="right" noise="medium">
946
- <SheetHeader>
947
- <SheetTitle>Noise Texture</SheetTitle>
948
- <SheetDescription>
949
- Textured overlay for enhanced visual depth
950
- </SheetDescription>
951
- </SheetHeader>
952
- <div className="py-4">
953
- <p className="text-sm text-white/80">
954
- This sheet includes noise texture overlay, adding visual
955
- interest and depth to the background.
956
- </p>
957
- </div>
958
- </SheetContent>
959
- </Sheet>
960
- </div>
961
- </div>
962
- </div>
963
- </div>
964
- ),
965
- parameters: {
966
- docs: {
967
- description: {
968
- story:
969
- "Different overlay configurations showing opacity levels, glass effects, and noise textures for various visual requirements.",
970
- },
971
- },
972
- },
973
- }
659
+ <Button
660
+ variant="outline"
661
+ size="sm"
662
+ className="flex-1 gap-2"
663
+ onClick={() => setQueued((v) => !v)}
664
+ >
665
+ <MusicalNoteIcon className="h-4 w-4" />
666
+ {queued ? "In queue" : "Add to queue"}
667
+ </Button>
668
+ </div>
669
+ </div>
974
670
 
975
- // 6. Mobile Bottom Sheet
976
- export const MobileBottomSheet: Story = {
977
- render: () => {
978
- const [selectedOption, setSelectedOption] = useState<string | null>(null)
671
+ <SheetFooter>
672
+ <SheetClose asChild>
673
+ <Button variant="outline">Close</Button>
674
+ </SheetClose>
675
+ <Button>Play now</Button>
676
+ </SheetFooter>
677
+ </SheetContent>
678
+ </Sheet>
679
+ )
680
+ }
979
681
 
980
- return (
981
- <div className="relative">
982
- <BackgroundContent />
682
+ // Bottom: Quick action sheet
683
+ const QuickActions = () => {
684
+ const [search, setSearch] = useState("")
685
+ const actions = [
686
+ { label: "Add to playlist", icon: MusicalNoteIcon },
687
+ { label: "Go to artist", icon: ChevronRightIcon },
688
+ { label: "Find similar tracks", icon: SearchIcon },
689
+ { label: "Report issue", icon: AlertIcon },
690
+ { label: "Share", icon: SiteLogoIcon },
691
+ { label: "Settings", icon: MaintenanceIcon },
692
+ ]
693
+ const filtered = actions.filter((a) =>
694
+ a.label.toLowerCase().includes(search.toLowerCase())
695
+ )
696
+
697
+ return (
698
+ <Sheet>
699
+ <SheetTrigger asChild>
700
+ <Button variant="outline" size="sm">
701
+ Quick actions
702
+ </Button>
703
+ </SheetTrigger>
704
+ <SheetContent side="bottom" variant="neutral" container={null}>
705
+ <SheetHeader>
706
+ <SheetTitle>Quick Actions</SheetTitle>
707
+ <SheetDescription>
708
+ Search and pick an action for this track.
709
+ </SheetDescription>
710
+ </SheetHeader>
711
+
712
+ <div className="space-y-4 py-4">
713
+ <Input
714
+ placeholder="Search actions..."
715
+ value={search}
716
+ onChange={(e) => setSearch(e.target.value)}
717
+ />
718
+ <div className="space-y-1">
719
+ {filtered.length === 0 && (
720
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-sm py-2 text-center">
721
+ No actions match your search.
722
+ </p>
723
+ )}
724
+ {filtered.map((action) => (
725
+ <button
726
+ key={action.label}
727
+ className="text-fm-primary hover:bg-fm-surface-secondary flex w-full items-center gap-3 rounded-lg px-3 py-3 text-left transition-colors"
728
+ >
729
+ <action.icon className="text-fm-secondary h-5 w-5 shrink-0" />
730
+ <span className="font-fm-text text-fm-md leading-fm-md">
731
+ {action.label}
732
+ </span>
733
+ </button>
734
+ ))}
735
+ </div>
736
+ </div>
983
737
 
984
- {/* Simulate mobile content */}
985
- <div className="fixed bottom-4 left-1/2 z-50 -translate-x-1/2 transform">
986
- <Sheet>
987
- <SheetTrigger asChild>
988
- <Button>Share Options</Button>
989
- </SheetTrigger>
990
- <SheetContent side="bottom" className="h-auto max-h-96">
991
- <SheetHeader>
992
- <SheetTitle>Share</SheetTitle>
993
- <SheetDescription>
994
- Choose how you'd like to share this content
995
- </SheetDescription>
996
- </SheetHeader>
738
+ <SheetFooter>
739
+ <SheetClose asChild>
740
+ <Button variant="outline" className="w-full">
741
+ Dismiss
742
+ </Button>
743
+ </SheetClose>
744
+ </SheetFooter>
745
+ </SheetContent>
746
+ </Sheet>
747
+ )
748
+ }
997
749
 
998
- <div className="py-4">
999
- <div className="mb-6 grid grid-cols-4 gap-4">
1000
- {[
1001
- { name: "Message", icon: SearchIcon },
1002
- { name: "Email", icon: AlertIcon },
1003
- { name: "Copy Link", icon: TickCircleIcon },
1004
- { name: "More", icon: SiteLogoIcon },
1005
- ].map((option) => (
1006
- <button
1007
- key={option.name}
1008
- onClick={() => setSelectedOption(option.name)}
1009
- className={`flex flex-col items-center gap-2 rounded-lg p-3 transition-colors ${
1010
- selectedOption === option.name
1011
- ? "bg-blue-500/20 text-blue-300"
1012
- : "text-white hover:bg-white/10"
1013
- }`}
1014
- >
1015
- <option.icon className="h-6 w-6" />
1016
- <span className="text-xs">{option.name}</span>
1017
- </button>
1018
- ))}
1019
- </div>
750
+ return (
751
+ <div className="mx-auto max-w-3xl space-y-8 p-8">
752
+ <div className="space-y-3">
753
+ <h4 className="text-fm-secondary font-fm-text text-fm-md leading-fm-md font-medium">
754
+ Filter Panel Left Side
755
+ </h4>
756
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-xl">
757
+ A left-side filter panel for narrowing a music library by genre and
758
+ mood. Selected filters are summarised and can be cleared.
759
+ </p>
760
+ <FilterPanel />
761
+ </div>
1020
762
 
1021
- <div className="space-y-2">
1022
- <h4 className="text-sm font-medium text-white">
1023
- Recent Contacts
1024
- </h4>
1025
- {Array.from({ length: 3 }, (_, i) => (
1026
- <div
1027
- key={i}
1028
- className="flex items-center gap-3 rounded-lg p-2 hover:bg-white/10"
1029
- >
1030
- <div className="h-8 w-8 rounded-full bg-gradient-to-r from-blue-500 to-purple-500"></div>
1031
- <span className="text-sm text-white">
1032
- Contact {i + 1}
1033
- </span>
1034
- </div>
1035
- ))}
1036
- </div>
1037
- </div>
763
+ <div className="space-y-3">
764
+ <h4 className="text-fm-secondary font-fm-text text-fm-md leading-fm-md font-medium">
765
+ Track Details — Right Side
766
+ </h4>
767
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-xl">
768
+ A right-side detail panel showing metadata, stats, and contextual
769
+ actions for the currently selected track.
770
+ </p>
771
+ <TrackDetails />
772
+ </div>
1038
773
 
1039
- <SheetFooter>
1040
- <SheetClose asChild>
1041
- <Button variant="outline" className="w-full">
1042
- Cancel
1043
- </Button>
1044
- </SheetClose>
1045
- </SheetFooter>
1046
- </SheetContent>
1047
- </Sheet>
774
+ <div className="space-y-3">
775
+ <h4 className="text-fm-secondary font-fm-text text-fm-md leading-fm-md font-medium">
776
+ Quick Action Sheet — Bottom
777
+ </h4>
778
+ <p className="text-fm-secondary font-fm-text text-fm-sm leading-fm-xl">
779
+ A searchable bottom action sheet for quickly finding and triggering
780
+ contextual commands on a track.
781
+ </p>
782
+ <QuickActions />
1048
783
  </div>
1049
784
  </div>
1050
785
  )
@@ -1053,7 +788,7 @@ export const MobileBottomSheet: Story = {
1053
788
  docs: {
1054
789
  description: {
1055
790
  story:
1056
- "Mobile-style bottom sheet with share options and contact list, demonstrating common mobile interaction patterns.",
791
+ "Three realistic product scenarios: a left filter panel for library browsing, a right track-details panel, and a searchable bottom quick-action sheet.",
1057
792
  },
1058
793
  },
1059
794
  },