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