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
|
@@ -64,8 +64,10 @@ export const PopoverRoot: Story = {
|
|
|
64
64
|
render: () => (
|
|
65
65
|
<div className="space-y-4">
|
|
66
66
|
<div className="text-center">
|
|
67
|
-
<h3 className="mb-2 font-medium
|
|
68
|
-
|
|
67
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
68
|
+
Popover Root Component
|
|
69
|
+
</h3>
|
|
70
|
+
<p className="text-fm-secondary text-sm">
|
|
69
71
|
The root Popover component manages state and provides context
|
|
70
72
|
</p>
|
|
71
73
|
</div>
|
|
@@ -76,9 +78,9 @@ export const PopoverRoot: Story = {
|
|
|
76
78
|
<PopoverTrigger asChild>
|
|
77
79
|
<Button variant="outline">Uncontrolled</Button>
|
|
78
80
|
</PopoverTrigger>
|
|
79
|
-
<PopoverContent className="rounded-lg border
|
|
81
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
80
82
|
<div className="p-4">
|
|
81
|
-
<p className="text-
|
|
83
|
+
<p className="text-fm-primary text-sm">
|
|
82
84
|
This popover manages its own open/close state internally.
|
|
83
85
|
</p>
|
|
84
86
|
</div>
|
|
@@ -90,9 +92,9 @@ export const PopoverRoot: Story = {
|
|
|
90
92
|
<PopoverTrigger asChild>
|
|
91
93
|
<Button variant="outline">Default Closed</Button>
|
|
92
94
|
</PopoverTrigger>
|
|
93
|
-
<PopoverContent className="rounded-lg border
|
|
95
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
94
96
|
<div className="p-4">
|
|
95
|
-
<p className="text-
|
|
97
|
+
<p className="text-fm-primary text-sm">
|
|
96
98
|
This popover starts in a closed state by default.
|
|
97
99
|
</p>
|
|
98
100
|
</div>
|
|
@@ -104,9 +106,9 @@ export const PopoverRoot: Story = {
|
|
|
104
106
|
<PopoverTrigger asChild>
|
|
105
107
|
<Button variant="outline">Modal Mode</Button>
|
|
106
108
|
</PopoverTrigger>
|
|
107
|
-
<PopoverContent className="rounded-lg border
|
|
109
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
108
110
|
<div className="p-4">
|
|
109
|
-
<p className="text-
|
|
111
|
+
<p className="text-fm-primary text-sm">
|
|
110
112
|
This is a modal popover that captures focus and blocks
|
|
111
113
|
interaction.
|
|
112
114
|
</p>
|
|
@@ -131,8 +133,10 @@ export const PopoverTriggerVariants: Story = {
|
|
|
131
133
|
render: () => (
|
|
132
134
|
<div className="space-y-6">
|
|
133
135
|
<div className="text-center">
|
|
134
|
-
<h3 className="mb-2 font-medium
|
|
135
|
-
|
|
136
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
137
|
+
PopoverTrigger Variants
|
|
138
|
+
</h3>
|
|
139
|
+
<p className="text-fm-secondary text-sm">
|
|
136
140
|
Different types of trigger elements using asChild prop
|
|
137
141
|
</p>
|
|
138
142
|
</div>
|
|
@@ -143,9 +147,9 @@ export const PopoverTriggerVariants: Story = {
|
|
|
143
147
|
<PopoverTrigger asChild>
|
|
144
148
|
<Button>Button Trigger</Button>
|
|
145
149
|
</PopoverTrigger>
|
|
146
|
-
<PopoverContent className="rounded-lg border
|
|
150
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
147
151
|
<div className="p-3">
|
|
148
|
-
<p className="text-
|
|
152
|
+
<p className="text-fm-primary text-sm">
|
|
149
153
|
Triggered by a Button component
|
|
150
154
|
</p>
|
|
151
155
|
</div>
|
|
@@ -157,14 +161,16 @@ export const PopoverTriggerVariants: Story = {
|
|
|
157
161
|
<PopoverTrigger asChild>
|
|
158
162
|
<Button
|
|
159
163
|
variant="text"
|
|
160
|
-
className="text-
|
|
164
|
+
className="text-fm-info hover:text-fm-info-sec text-sm underline"
|
|
161
165
|
>
|
|
162
166
|
Click this link
|
|
163
167
|
</Button>
|
|
164
168
|
</PopoverTrigger>
|
|
165
|
-
<PopoverContent className="rounded-lg border
|
|
169
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
166
170
|
<div className="p-3">
|
|
167
|
-
<p className="text-
|
|
171
|
+
<p className="text-fm-primary text-sm">
|
|
172
|
+
Triggered by a text link
|
|
173
|
+
</p>
|
|
168
174
|
</div>
|
|
169
175
|
</PopoverContent>
|
|
170
176
|
</Popover>
|
|
@@ -177,9 +183,11 @@ export const PopoverTriggerVariants: Story = {
|
|
|
177
183
|
icon={<FeatureShineIcon />}
|
|
178
184
|
/>
|
|
179
185
|
</PopoverTrigger>
|
|
180
|
-
<PopoverContent className="rounded-lg border
|
|
186
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
181
187
|
<div className="p-3">
|
|
182
|
-
<p className="text-
|
|
188
|
+
<p className="text-fm-primary text-sm">
|
|
189
|
+
Triggered by an icon button
|
|
190
|
+
</p>
|
|
183
191
|
</div>
|
|
184
192
|
</PopoverContent>
|
|
185
193
|
</Popover>
|
|
@@ -199,9 +207,11 @@ export const PopoverTriggerVariants: Story = {
|
|
|
199
207
|
/>
|
|
200
208
|
</IconButton>
|
|
201
209
|
</PopoverTrigger>
|
|
202
|
-
<PopoverContent className="rounded-lg border
|
|
210
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
203
211
|
<div className="p-3">
|
|
204
|
-
<p className="text-
|
|
212
|
+
<p className="text-fm-primary text-sm">
|
|
213
|
+
Triggered by an avatar image
|
|
214
|
+
</p>
|
|
205
215
|
</div>
|
|
206
216
|
</PopoverContent>
|
|
207
217
|
</Popover>
|
|
@@ -223,8 +233,10 @@ export const PopoverContentVariants: Story = {
|
|
|
223
233
|
render: () => (
|
|
224
234
|
<div className="space-y-6">
|
|
225
235
|
<div className="text-center">
|
|
226
|
-
<h3 className="mb-2 font-medium
|
|
227
|
-
|
|
236
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
237
|
+
PopoverContent Variants
|
|
238
|
+
</h3>
|
|
239
|
+
<p className="text-fm-secondary text-sm">
|
|
228
240
|
Different content layouts and styling options
|
|
229
241
|
</p>
|
|
230
242
|
</div>
|
|
@@ -237,9 +249,9 @@ export const PopoverContentVariants: Story = {
|
|
|
237
249
|
Simple Content
|
|
238
250
|
</Button>
|
|
239
251
|
</PopoverTrigger>
|
|
240
|
-
<PopoverContent className="w-56 rounded-lg border
|
|
252
|
+
<PopoverContent className="border-fm-divider-secondary w-56 rounded-lg border shadow-2xl">
|
|
241
253
|
<div className="p-3">
|
|
242
|
-
<p className="text-
|
|
254
|
+
<p className="text-fm-primary text-sm">
|
|
243
255
|
Simple text content in a popover.
|
|
244
256
|
</p>
|
|
245
257
|
</div>
|
|
@@ -253,18 +265,22 @@ export const PopoverContentVariants: Story = {
|
|
|
253
265
|
Rich Content
|
|
254
266
|
</Button>
|
|
255
267
|
</PopoverTrigger>
|
|
256
|
-
<PopoverContent className="w-72 rounded-lg border
|
|
268
|
+
<PopoverContent className="border-fm-divider-secondary w-72 rounded-lg border shadow-2xl">
|
|
257
269
|
<div className="space-y-3 p-4">
|
|
258
270
|
<div className="flex items-center gap-3">
|
|
259
271
|
<div className="flex h-10 w-10 items-center justify-center rounded-full bg-blue-600">
|
|
260
|
-
<span className="text-sm font-medium
|
|
272
|
+
<span className="text-fm-primary text-sm font-medium">
|
|
273
|
+
JD
|
|
274
|
+
</span>
|
|
261
275
|
</div>
|
|
262
276
|
<div>
|
|
263
|
-
<h4 className="font-medium
|
|
264
|
-
<p className="text-
|
|
277
|
+
<h4 className="text-fm-primary font-medium">John Doe</h4>
|
|
278
|
+
<p className="text-fm-secondary text-xs">
|
|
279
|
+
Software Developer
|
|
280
|
+
</p>
|
|
265
281
|
</div>
|
|
266
282
|
</div>
|
|
267
|
-
<p className="text-
|
|
283
|
+
<p className="text-fm-secondary text-sm">
|
|
268
284
|
Rich content with avatar, title, and description.
|
|
269
285
|
</p>
|
|
270
286
|
</div>
|
|
@@ -280,8 +296,8 @@ export const PopoverContentVariants: Story = {
|
|
|
280
296
|
</PopoverTrigger>
|
|
281
297
|
<PopoverContent className="w-64 rounded-lg border border-purple-500/30 bg-gradient-to-b from-purple-900/90 to-blue-900/90 shadow-2xl">
|
|
282
298
|
<div className="p-4">
|
|
283
|
-
<h4 className="mb-2 font-medium
|
|
284
|
-
<p className="text-
|
|
299
|
+
<h4 className="text-fm-primary mb-2 font-medium">Custom Theme</h4>
|
|
300
|
+
<p className="text-fm-secondary text-sm">
|
|
285
301
|
PopoverContent with custom gradient background and purple theme.
|
|
286
302
|
</p>
|
|
287
303
|
</div>
|
|
@@ -295,9 +311,9 @@ export const PopoverContentVariants: Story = {
|
|
|
295
311
|
No Border
|
|
296
312
|
</Button>
|
|
297
313
|
</PopoverTrigger>
|
|
298
|
-
<PopoverContent className="w-56 rounded-xl
|
|
314
|
+
<PopoverContent className="bg-fm-surface-primary w-56 rounded-xl shadow-2xl">
|
|
299
315
|
<div className="p-4">
|
|
300
|
-
<p className="text-
|
|
316
|
+
<p className="text-fm-primary text-sm">
|
|
301
317
|
Content without border, just shadow and background.
|
|
302
318
|
</p>
|
|
303
319
|
</div>
|
|
@@ -324,10 +340,10 @@ export const PopoverAnchorExample: Story = {
|
|
|
324
340
|
return (
|
|
325
341
|
<div className="space-y-6">
|
|
326
342
|
<div className="text-center">
|
|
327
|
-
<h3 className="mb-2 font-medium
|
|
343
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
328
344
|
PopoverAnchor Component
|
|
329
345
|
</h3>
|
|
330
|
-
<p className="text-
|
|
346
|
+
<p className="text-fm-secondary text-sm">
|
|
331
347
|
Position popover relative to a different element than the trigger
|
|
332
348
|
</p>
|
|
333
349
|
</div>
|
|
@@ -338,7 +354,7 @@ export const PopoverAnchorExample: Story = {
|
|
|
338
354
|
ref={setAnchorEl}
|
|
339
355
|
className="flex h-20 w-20 items-center justify-center rounded-lg border-2 border-dashed border-blue-400 bg-gradient-to-br from-blue-500 to-purple-600"
|
|
340
356
|
>
|
|
341
|
-
<span className="text-center text-xs font-medium
|
|
357
|
+
<span className="text-fm-primary text-center text-xs font-medium">
|
|
342
358
|
Anchor
|
|
343
359
|
<br />
|
|
344
360
|
Point
|
|
@@ -359,15 +375,17 @@ export const PopoverAnchorExample: Story = {
|
|
|
359
375
|
<PopoverTrigger asChild>
|
|
360
376
|
<Button variant="outline">Open at Anchor</Button>
|
|
361
377
|
</PopoverTrigger>
|
|
362
|
-
<PopoverContent className="rounded-lg border
|
|
378
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
363
379
|
<PopoverArrow className="fill-white/10" />
|
|
364
380
|
<div className="space-y-2 p-4">
|
|
365
|
-
<h4 className="font-medium
|
|
366
|
-
|
|
381
|
+
<h4 className="text-fm-primary font-medium">
|
|
382
|
+
Anchored Popover
|
|
383
|
+
</h4>
|
|
384
|
+
<p className="text-fm-secondary text-sm">
|
|
367
385
|
This popover is positioned relative to the blue anchor box,
|
|
368
386
|
not the trigger button.
|
|
369
387
|
</p>
|
|
370
|
-
<div className="
|
|
388
|
+
<div className="bg-fm-surface-secondary text-fm-tertiary rounded p-2 text-xs">
|
|
371
389
|
<strong>Note:</strong> The popover appears near the anchor
|
|
372
390
|
point even though the trigger is elsewhere.
|
|
373
391
|
</div>
|
|
@@ -378,7 +396,7 @@ export const PopoverAnchorExample: Story = {
|
|
|
378
396
|
|
|
379
397
|
{/* Multiple Anchors Example */}
|
|
380
398
|
<div className="mt-8">
|
|
381
|
-
<h4 className="mb-4 text-center font-medium
|
|
399
|
+
<h4 className="text-fm-primary mb-4 text-center font-medium">
|
|
382
400
|
Multiple Anchor Points
|
|
383
401
|
</h4>
|
|
384
402
|
<div className="flex justify-center gap-4">
|
|
@@ -393,7 +411,7 @@ export const PopoverAnchorExample: Story = {
|
|
|
393
411
|
ref={setAnchor}
|
|
394
412
|
className="flex h-16 w-16 items-center justify-center rounded-lg border border-green-400 bg-green-600"
|
|
395
413
|
>
|
|
396
|
-
<span className="text-xs font-medium
|
|
414
|
+
<span className="text-fm-primary text-xs font-medium">
|
|
397
415
|
{label}
|
|
398
416
|
</span>
|
|
399
417
|
</div>
|
|
@@ -413,9 +431,9 @@ export const PopoverAnchorExample: Story = {
|
|
|
413
431
|
Open {label}
|
|
414
432
|
</Button>
|
|
415
433
|
</PopoverTrigger>
|
|
416
|
-
<PopoverContent className="rounded-lg border
|
|
434
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
417
435
|
<div className="p-3">
|
|
418
|
-
<p className="text-
|
|
436
|
+
<p className="text-fm-primary text-sm">
|
|
419
437
|
Content for {label}
|
|
420
438
|
</p>
|
|
421
439
|
</div>
|
|
@@ -444,8 +462,10 @@ export const PopoverArrowVariants: Story = {
|
|
|
444
462
|
render: () => (
|
|
445
463
|
<div className="space-y-6">
|
|
446
464
|
<div className="text-center">
|
|
447
|
-
<h3 className="mb-2 font-medium
|
|
448
|
-
|
|
465
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
466
|
+
PopoverArrow Variants
|
|
467
|
+
</h3>
|
|
468
|
+
<p className="text-fm-secondary text-sm">
|
|
449
469
|
Different arrow styles and positioning options
|
|
450
470
|
</p>
|
|
451
471
|
</div>
|
|
@@ -456,10 +476,10 @@ export const PopoverArrowVariants: Story = {
|
|
|
456
476
|
<PopoverTrigger asChild>
|
|
457
477
|
<Button variant="outline">Default Arrow</Button>
|
|
458
478
|
</PopoverTrigger>
|
|
459
|
-
<PopoverContent className="rounded-lg border
|
|
479
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
460
480
|
<PopoverArrow className="fill-white/10" />
|
|
461
481
|
<div className="p-3">
|
|
462
|
-
<p className="text-
|
|
482
|
+
<p className="text-fm-primary text-sm">
|
|
463
483
|
Default semi-transparent arrow
|
|
464
484
|
</p>
|
|
465
485
|
</div>
|
|
@@ -471,10 +491,10 @@ export const PopoverArrowVariants: Story = {
|
|
|
471
491
|
<PopoverTrigger asChild>
|
|
472
492
|
<Button variant="outline">Solid Arrow</Button>
|
|
473
493
|
</PopoverTrigger>
|
|
474
|
-
<PopoverContent className="rounded-lg border border-gray-600
|
|
494
|
+
<PopoverContent className="bg-fm-surface-primary rounded-lg border border-gray-600 shadow-2xl">
|
|
475
495
|
<PopoverArrow className="fill-gray-800" />
|
|
476
496
|
<div className="p-3">
|
|
477
|
-
<p className="text-
|
|
497
|
+
<p className="text-fm-primary text-sm">
|
|
478
498
|
Solid arrow matching background
|
|
479
499
|
</p>
|
|
480
500
|
</div>
|
|
@@ -489,7 +509,7 @@ export const PopoverArrowVariants: Story = {
|
|
|
489
509
|
<PopoverContent className="rounded-lg border border-blue-700 bg-blue-900 shadow-2xl">
|
|
490
510
|
<PopoverArrow className="fill-blue-700" />
|
|
491
511
|
<div className="p-3">
|
|
492
|
-
<p className="text-
|
|
512
|
+
<p className="text-fm-primary text-sm">
|
|
493
513
|
Colored arrow with theme accent
|
|
494
514
|
</p>
|
|
495
515
|
</div>
|
|
@@ -501,10 +521,10 @@ export const PopoverArrowVariants: Story = {
|
|
|
501
521
|
<PopoverTrigger asChild>
|
|
502
522
|
<Button variant="outline">Large Arrow</Button>
|
|
503
523
|
</PopoverTrigger>
|
|
504
|
-
<PopoverContent className="rounded-lg border
|
|
524
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
505
525
|
<PopoverArrow className="h-4 w-4 fill-white/10" />
|
|
506
526
|
<div className="p-3">
|
|
507
|
-
<p className="text-
|
|
527
|
+
<p className="text-fm-primary text-sm">Larger arrow size</p>
|
|
508
528
|
</div>
|
|
509
529
|
</PopoverContent>
|
|
510
530
|
</Popover>
|
|
@@ -517,7 +537,7 @@ export const PopoverArrowVariants: Story = {
|
|
|
517
537
|
<PopoverContent className="rounded-lg border border-purple-600 bg-gradient-to-b from-purple-800 to-pink-800 shadow-2xl">
|
|
518
538
|
<PopoverArrow className="fill-purple-700" />
|
|
519
539
|
<div className="p-3">
|
|
520
|
-
<p className="text-
|
|
540
|
+
<p className="text-fm-primary text-sm">
|
|
521
541
|
Arrow with gradient background
|
|
522
542
|
</p>
|
|
523
543
|
</div>
|
|
@@ -529,9 +549,9 @@ export const PopoverArrowVariants: Story = {
|
|
|
529
549
|
<PopoverTrigger asChild>
|
|
530
550
|
<Button variant="outline">No Arrow</Button>
|
|
531
551
|
</PopoverTrigger>
|
|
532
|
-
<PopoverContent className="rounded-lg border
|
|
552
|
+
<PopoverContent className="border-fm-divider-secondary rounded-lg border shadow-2xl">
|
|
533
553
|
<div className="p-3">
|
|
534
|
-
<p className="text-
|
|
554
|
+
<p className="text-fm-primary text-sm">Popover without arrow</p>
|
|
535
555
|
</div>
|
|
536
556
|
</PopoverContent>
|
|
537
557
|
</Popover>
|
|
@@ -539,7 +559,7 @@ export const PopoverArrowVariants: Story = {
|
|
|
539
559
|
|
|
540
560
|
{/* Arrow Positioning */}
|
|
541
561
|
<div className="mt-8">
|
|
542
|
-
<h4 className="mb-4 text-center font-medium
|
|
562
|
+
<h4 className="text-fm-primary mb-4 text-center font-medium">
|
|
543
563
|
Arrow Positioning
|
|
544
564
|
</h4>
|
|
545
565
|
<div className="flex justify-center gap-4">
|
|
@@ -552,11 +572,11 @@ export const PopoverArrowVariants: Story = {
|
|
|
552
572
|
</PopoverTrigger>
|
|
553
573
|
<PopoverContent
|
|
554
574
|
side={side}
|
|
555
|
-
className="rounded-lg border
|
|
575
|
+
className="border-fm-divider-secondary rounded-lg border shadow-2xl"
|
|
556
576
|
>
|
|
557
577
|
<PopoverArrow className="fill-white/10" />
|
|
558
578
|
<div className="p-3">
|
|
559
|
-
<p className="text-
|
|
579
|
+
<p className="text-fm-primary text-sm">Arrow on {side}</p>
|
|
560
580
|
</div>
|
|
561
581
|
</PopoverContent>
|
|
562
582
|
</Popover>
|
|
@@ -580,8 +600,10 @@ export const PopoverCloseVariants: Story = {
|
|
|
580
600
|
render: () => (
|
|
581
601
|
<div className="space-y-6">
|
|
582
602
|
<div className="text-center">
|
|
583
|
-
<h3 className="mb-2 font-medium
|
|
584
|
-
|
|
603
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
604
|
+
PopoverClose Variants
|
|
605
|
+
</h3>
|
|
606
|
+
<p className="text-fm-secondary text-sm">
|
|
585
607
|
Different ways to implement close functionality
|
|
586
608
|
</p>
|
|
587
609
|
</div>
|
|
@@ -592,18 +614,18 @@ export const PopoverCloseVariants: Story = {
|
|
|
592
614
|
<PopoverTrigger asChild>
|
|
593
615
|
<Button variant="outline">Header Close</Button>
|
|
594
616
|
</PopoverTrigger>
|
|
595
|
-
<PopoverContent className="w-72 rounded-lg border
|
|
617
|
+
<PopoverContent className="border-fm-divider-secondary w-72 rounded-lg border shadow-2xl">
|
|
596
618
|
<PopoverArrow className="fill-white/10" />
|
|
597
619
|
<div className="p-4">
|
|
598
620
|
<div className="mb-3 flex items-center justify-between">
|
|
599
|
-
<h4 className="font-medium
|
|
621
|
+
<h4 className="text-fm-primary font-medium">Settings</h4>
|
|
600
622
|
<PopoverClose asChild>
|
|
601
623
|
<Button variant="text" size="sm">
|
|
602
624
|
✕
|
|
603
625
|
</Button>
|
|
604
626
|
</PopoverClose>
|
|
605
627
|
</div>
|
|
606
|
-
<p className="text-
|
|
628
|
+
<p className="text-fm-secondary text-sm">
|
|
607
629
|
Close button in the header
|
|
608
630
|
</p>
|
|
609
631
|
</div>
|
|
@@ -615,11 +637,11 @@ export const PopoverCloseVariants: Story = {
|
|
|
615
637
|
<PopoverTrigger asChild>
|
|
616
638
|
<Button variant="outline">Footer Close</Button>
|
|
617
639
|
</PopoverTrigger>
|
|
618
|
-
<PopoverContent className="w-72 rounded-lg border
|
|
640
|
+
<PopoverContent className="border-fm-divider-secondary w-72 rounded-lg border shadow-2xl">
|
|
619
641
|
<PopoverArrow className="fill-white/10" />
|
|
620
642
|
<div className="space-y-3 p-4">
|
|
621
|
-
<h4 className="font-medium
|
|
622
|
-
<p className="text-
|
|
643
|
+
<h4 className="text-fm-primary font-medium">Confirmation</h4>
|
|
644
|
+
<p className="text-fm-secondary text-sm">
|
|
623
645
|
Are you sure you want to continue?
|
|
624
646
|
</p>
|
|
625
647
|
<div className="flex gap-2">
|
|
@@ -639,11 +661,11 @@ export const PopoverCloseVariants: Story = {
|
|
|
639
661
|
<PopoverTrigger asChild>
|
|
640
662
|
<Button variant="outline">Multiple Close</Button>
|
|
641
663
|
</PopoverTrigger>
|
|
642
|
-
<PopoverContent className="w-80 rounded-lg border
|
|
664
|
+
<PopoverContent className="border-fm-divider-secondary w-80 rounded-lg border shadow-2xl">
|
|
643
665
|
<PopoverArrow className="fill-white/10" />
|
|
644
666
|
<div className="space-y-4 p-4">
|
|
645
667
|
<div className="flex items-center justify-between">
|
|
646
|
-
<h4 className="font-medium
|
|
668
|
+
<h4 className="text-fm-primary font-medium">Actions</h4>
|
|
647
669
|
<PopoverClose asChild>
|
|
648
670
|
<Button variant="text" size="sm">
|
|
649
671
|
✕
|
|
@@ -653,16 +675,16 @@ export const PopoverCloseVariants: Story = {
|
|
|
653
675
|
|
|
654
676
|
<div className="space-y-2">
|
|
655
677
|
<PopoverClose asChild>
|
|
656
|
-
<button className="w-full rounded px-3 py-2 text-left text-sm
|
|
678
|
+
<button className="text-fm-primary hover:bg-fm-surface-secondary w-full rounded px-3 py-2 text-left text-sm">
|
|
657
679
|
Save and Close
|
|
658
680
|
</button>
|
|
659
681
|
</PopoverClose>
|
|
660
682
|
<PopoverClose asChild>
|
|
661
|
-
<button className="w-full rounded px-3 py-2 text-left text-sm
|
|
683
|
+
<button className="text-fm-primary hover:bg-fm-surface-secondary w-full rounded px-3 py-2 text-left text-sm">
|
|
662
684
|
Discard and Close
|
|
663
685
|
</button>
|
|
664
686
|
</PopoverClose>
|
|
665
|
-
<button className="w-full rounded px-3 py-2 text-left text-sm
|
|
687
|
+
<button className="text-fm-primary hover:bg-fm-surface-secondary w-full rounded px-3 py-2 text-left text-sm">
|
|
666
688
|
Keep Open
|
|
667
689
|
</button>
|
|
668
690
|
</div>
|
|
@@ -675,13 +697,13 @@ export const PopoverCloseVariants: Story = {
|
|
|
675
697
|
<PopoverTrigger asChild>
|
|
676
698
|
<Button variant="outline">Icon Close</Button>
|
|
677
699
|
</PopoverTrigger>
|
|
678
|
-
<PopoverContent className="w-64 rounded-lg border
|
|
700
|
+
<PopoverContent className="border-fm-divider-secondary w-64 rounded-lg border shadow-2xl">
|
|
679
701
|
<PopoverArrow className="fill-white/10" />
|
|
680
702
|
<div className="p-4">
|
|
681
703
|
<div className="mb-3 flex items-start justify-between">
|
|
682
704
|
<div>
|
|
683
|
-
<h4 className="font-medium
|
|
684
|
-
<p className="mt-1 text-sm
|
|
705
|
+
<h4 className="text-fm-primary font-medium">Notification</h4>
|
|
706
|
+
<p className="text-fm-secondary mt-1 text-sm">
|
|
685
707
|
New message received
|
|
686
708
|
</p>
|
|
687
709
|
</div>
|
|
@@ -712,16 +734,16 @@ export const PopoverCloseVariants: Story = {
|
|
|
712
734
|
<PopoverTrigger asChild>
|
|
713
735
|
<Button variant="outline">Text Close</Button>
|
|
714
736
|
</PopoverTrigger>
|
|
715
|
-
<PopoverContent className="w-64 rounded-lg border
|
|
737
|
+
<PopoverContent className="border-fm-divider-secondary w-64 rounded-lg border shadow-2xl">
|
|
716
738
|
<PopoverArrow className="fill-white/10" />
|
|
717
739
|
<div className="space-y-3 p-4">
|
|
718
|
-
<h4 className="font-medium
|
|
719
|
-
<p className="text-
|
|
740
|
+
<h4 className="text-fm-primary font-medium">Quick Tip</h4>
|
|
741
|
+
<p className="text-fm-secondary text-sm">
|
|
720
742
|
Use keyboard shortcuts to speed up your workflow.
|
|
721
743
|
</p>
|
|
722
744
|
<div className="text-right">
|
|
723
745
|
<PopoverClose asChild>
|
|
724
|
-
<button className="text-
|
|
746
|
+
<button className="text-fm-info hover:text-fm-info-sec text-sm underline">
|
|
725
747
|
Got it, thanks!
|
|
726
748
|
</button>
|
|
727
749
|
</PopoverClose>
|
|
@@ -735,10 +757,10 @@ export const PopoverCloseVariants: Story = {
|
|
|
735
757
|
<PopoverTrigger asChild>
|
|
736
758
|
<Button variant="outline">Auto Close</Button>
|
|
737
759
|
</PopoverTrigger>
|
|
738
|
-
<PopoverContent className="w-72 rounded-lg border
|
|
760
|
+
<PopoverContent className="border-fm-divider-secondary w-72 rounded-lg border shadow-2xl">
|
|
739
761
|
<PopoverArrow className="fill-white/10" />
|
|
740
762
|
<div className="space-y-3 p-4">
|
|
741
|
-
<h4 className="font-medium
|
|
763
|
+
<h4 className="text-fm-primary font-medium">Quick Actions</h4>
|
|
742
764
|
<div className="grid grid-cols-2 gap-2">
|
|
743
765
|
<PopoverClose asChild>
|
|
744
766
|
<Button size="sm" variant="outline">
|
|
@@ -761,7 +783,7 @@ export const PopoverCloseVariants: Story = {
|
|
|
761
783
|
</Button>
|
|
762
784
|
</PopoverClose>
|
|
763
785
|
</div>
|
|
764
|
-
<p className="text-
|
|
786
|
+
<p className="text-fm-tertiary text-xs">
|
|
765
787
|
Actions will close the popover automatically
|
|
766
788
|
</p>
|
|
767
789
|
</div>
|
|
@@ -785,8 +807,10 @@ export const CompleteIntegration: Story = {
|
|
|
785
807
|
render: () => (
|
|
786
808
|
<div className="space-y-6">
|
|
787
809
|
<div className="text-center">
|
|
788
|
-
<h3 className="mb-2 font-medium
|
|
789
|
-
|
|
810
|
+
<h3 className="text-fm-primary mb-2 font-medium">
|
|
811
|
+
Complete Integration
|
|
812
|
+
</h3>
|
|
813
|
+
<p className="text-fm-secondary text-sm">
|
|
790
814
|
All components working together in real-world scenarios
|
|
791
815
|
</p>
|
|
792
816
|
</div>
|
|
@@ -799,11 +823,11 @@ export const CompleteIntegration: Story = {
|
|
|
799
823
|
<img
|
|
800
824
|
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=32&h=32&fit=crop&crop=face"
|
|
801
825
|
alt="Profile"
|
|
802
|
-
className="h-8 w-8 rounded-full border
|
|
826
|
+
className="border-fm-divider-secondary h-8 w-8 rounded-full border"
|
|
803
827
|
/>
|
|
804
828
|
<span className="text-sm">John Doe</span>
|
|
805
829
|
<svg
|
|
806
|
-
className="h-4 w-4
|
|
830
|
+
className="text-fm-secondary h-4 w-4"
|
|
807
831
|
fill="none"
|
|
808
832
|
stroke="currentColor"
|
|
809
833
|
viewBox="0 0 24 24"
|
|
@@ -819,13 +843,13 @@ export const CompleteIntegration: Story = {
|
|
|
819
843
|
</PopoverTrigger>
|
|
820
844
|
<PopoverContent
|
|
821
845
|
align="end"
|
|
822
|
-
className="w-80 rounded-lg border
|
|
846
|
+
className="border-fm-divider-secondary w-80 rounded-lg border shadow-2xl"
|
|
823
847
|
>
|
|
824
848
|
<PopoverArrow className="fill-white/10" />
|
|
825
849
|
<div className="space-y-4 p-4">
|
|
826
850
|
{/* Header with close */}
|
|
827
851
|
<div className="flex items-center justify-between">
|
|
828
|
-
<h4 className="font-medium
|
|
852
|
+
<h4 className="text-fm-primary font-medium">Account Menu</h4>
|
|
829
853
|
<PopoverClose asChild>
|
|
830
854
|
<Button variant="text" size="sm">
|
|
831
855
|
✕
|
|
@@ -834,15 +858,17 @@ export const CompleteIntegration: Story = {
|
|
|
834
858
|
</div>
|
|
835
859
|
|
|
836
860
|
{/* User Info */}
|
|
837
|
-
<div className="flex items-center gap-3 rounded-lg
|
|
861
|
+
<div className="bg-fm-surface-secondary flex items-center gap-3 rounded-lg p-3">
|
|
838
862
|
<img
|
|
839
863
|
src="https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=48&h=48&fit=crop&crop=face"
|
|
840
864
|
alt="Profile"
|
|
841
|
-
className="h-12 w-12 rounded-full border
|
|
865
|
+
className="border-fm-divider-secondary h-12 w-12 rounded-full border"
|
|
842
866
|
/>
|
|
843
867
|
<div>
|
|
844
|
-
<div className="font-medium
|
|
845
|
-
<div className="text-
|
|
868
|
+
<div className="text-fm-primary font-medium">John Doe</div>
|
|
869
|
+
<div className="text-fm-secondary text-sm">
|
|
870
|
+
john@example.com
|
|
871
|
+
</div>
|
|
846
872
|
</div>
|
|
847
873
|
</div>
|
|
848
874
|
|
|
@@ -863,7 +889,7 @@ export const CompleteIntegration: Story = {
|
|
|
863
889
|
{/* Menu Items */}
|
|
864
890
|
<div className="space-y-1">
|
|
865
891
|
<PopoverClose asChild>
|
|
866
|
-
<button className="flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm
|
|
892
|
+
<button className="text-fm-primary hover:bg-fm-surface-secondary flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm">
|
|
867
893
|
<svg
|
|
868
894
|
className="h-4 w-4"
|
|
869
895
|
fill="none"
|
|
@@ -881,7 +907,7 @@ export const CompleteIntegration: Story = {
|
|
|
881
907
|
</button>
|
|
882
908
|
</PopoverClose>
|
|
883
909
|
<PopoverClose asChild>
|
|
884
|
-
<button className="flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm
|
|
910
|
+
<button className="text-fm-primary hover:bg-fm-surface-secondary flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm">
|
|
885
911
|
<svg
|
|
886
912
|
className="h-4 w-4"
|
|
887
913
|
fill="none"
|
|
@@ -899,7 +925,7 @@ export const CompleteIntegration: Story = {
|
|
|
899
925
|
</button>
|
|
900
926
|
</PopoverClose>
|
|
901
927
|
<PopoverClose asChild>
|
|
902
|
-
<button className="flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm
|
|
928
|
+
<button className="text-fm-primary hover:bg-fm-surface-secondary flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm">
|
|
903
929
|
<svg
|
|
904
930
|
className="h-4 w-4"
|
|
905
931
|
fill="none"
|
|
@@ -919,9 +945,9 @@ export const CompleteIntegration: Story = {
|
|
|
919
945
|
</div>
|
|
920
946
|
|
|
921
947
|
{/* Sign Out */}
|
|
922
|
-
<div className="border-
|
|
948
|
+
<div className="border-fm-divider-secondary border-t pt-3">
|
|
923
949
|
<PopoverClose asChild>
|
|
924
|
-
<button className="flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm
|
|
950
|
+
<button className="text-fm-icon-negative hover:bg-fm-surface-secondary flex w-full items-center gap-2 rounded px-3 py-2 text-left text-sm">
|
|
925
951
|
<svg
|
|
926
952
|
className="h-4 w-4"
|
|
927
953
|
fill="none"
|
|
@@ -948,12 +974,12 @@ export const CompleteIntegration: Story = {
|
|
|
948
974
|
<PopoverTrigger asChild>
|
|
949
975
|
<Button>Edit Profile</Button>
|
|
950
976
|
</PopoverTrigger>
|
|
951
|
-
<PopoverContent className="w-96 rounded-lg border
|
|
977
|
+
<PopoverContent className="border-fm-divider-secondary w-96 rounded-lg border shadow-2xl">
|
|
952
978
|
<PopoverArrow className="fill-white/10" />
|
|
953
979
|
<div className="space-y-4 p-4">
|
|
954
980
|
{/* Header */}
|
|
955
981
|
<div className="flex items-center justify-between">
|
|
956
|
-
<h4 className="font-medium
|
|
982
|
+
<h4 className="text-fm-primary font-medium">Edit Profile</h4>
|
|
957
983
|
<PopoverClose asChild>
|
|
958
984
|
<Button variant="text" size="sm">
|
|
959
985
|
✕
|
|
@@ -964,32 +990,32 @@ export const CompleteIntegration: Story = {
|
|
|
964
990
|
{/* Form Fields */}
|
|
965
991
|
<div className="space-y-3">
|
|
966
992
|
<div>
|
|
967
|
-
<Label htmlFor="name" className="text-
|
|
993
|
+
<Label htmlFor="name" className="text-fm-primary text-sm">
|
|
968
994
|
Full Name
|
|
969
995
|
</Label>
|
|
970
996
|
<Input
|
|
971
997
|
id="name"
|
|
972
998
|
defaultValue="John Doe"
|
|
973
|
-
className="border-
|
|
999
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary text-fm-primary placeholder:text-fm-tertiary"
|
|
974
1000
|
/>
|
|
975
1001
|
</div>
|
|
976
1002
|
<div>
|
|
977
|
-
<Label htmlFor="email" className="text-
|
|
1003
|
+
<Label htmlFor="email" className="text-fm-primary text-sm">
|
|
978
1004
|
Email
|
|
979
1005
|
</Label>
|
|
980
1006
|
<Input
|
|
981
1007
|
id="email"
|
|
982
1008
|
defaultValue="john@example.com"
|
|
983
|
-
className="border-
|
|
1009
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary text-fm-primary placeholder:text-fm-tertiary"
|
|
984
1010
|
/>
|
|
985
1011
|
</div>
|
|
986
1012
|
<div>
|
|
987
|
-
<Label htmlFor="role" className="text-
|
|
1013
|
+
<Label htmlFor="role" className="text-fm-primary text-sm">
|
|
988
1014
|
Role
|
|
989
1015
|
</Label>
|
|
990
1016
|
<select
|
|
991
1017
|
id="role"
|
|
992
|
-
className="w-full rounded-md border
|
|
1018
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary text-fm-primary focus-visible:ring-fm-divider-secondary w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:outline-none"
|
|
993
1019
|
>
|
|
994
1020
|
<option value="developer">Developer</option>
|
|
995
1021
|
<option value="designer">Designer</option>
|
|
@@ -997,13 +1023,13 @@ export const CompleteIntegration: Story = {
|
|
|
997
1023
|
</select>
|
|
998
1024
|
</div>
|
|
999
1025
|
<div>
|
|
1000
|
-
<Label htmlFor="bio" className="text-
|
|
1026
|
+
<Label htmlFor="bio" className="text-fm-primary text-sm">
|
|
1001
1027
|
Bio
|
|
1002
1028
|
</Label>
|
|
1003
1029
|
<textarea
|
|
1004
1030
|
id="bio"
|
|
1005
1031
|
rows={3}
|
|
1006
|
-
className="
|
|
1032
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary text-fm-primary placeholder:text-fm-tertiary focus-visible:ring-fm-divider-secondary w-full rounded-md border px-3 py-2 text-sm focus-visible:ring-2 focus-visible:outline-none"
|
|
1007
1033
|
defaultValue="Software developer passionate about creating great user experiences."
|
|
1008
1034
|
/>
|
|
1009
1035
|
</div>
|