aural-ui 3.0.7 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof ArrowRightIcon> = {
|
|
|
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 ArrowRightIcon> = {
|
|
|
40
40
|
background: transparent ;
|
|
41
41
|
}
|
|
42
42
|
body {
|
|
43
|
-
background:
|
|
43
|
+
background: var(--color-fm-surface-primary) ;
|
|
44
44
|
}
|
|
45
45
|
#storybook-docs {
|
|
46
|
-
background:
|
|
46
|
+
background: var(--color-fm-surface-primary) ;
|
|
47
47
|
}
|
|
48
48
|
.sbdocs-preview {
|
|
49
49
|
background: transparent ;
|
|
50
50
|
border: none ;
|
|
51
51
|
}
|
|
52
52
|
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color:
|
|
53
|
+
color: var(--color-fm-icon-active) ;
|
|
54
54
|
}
|
|
55
55
|
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color:
|
|
56
|
+
color: var(--color-fm-secondary) ;
|
|
57
57
|
}
|
|
58
58
|
.sbdocs-code {
|
|
59
|
-
background:
|
|
60
|
-
color:
|
|
61
|
-
border: 1px solid
|
|
59
|
+
background: var(--color-fm-surface-secondary) ;
|
|
60
|
+
color: var(--color-fm-secondary-500) ;
|
|
61
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
62
62
|
}
|
|
63
63
|
.sbdocs-pre {
|
|
64
|
-
background:
|
|
65
|
-
border: 1px solid
|
|
64
|
+
background: var(--color-fm-surface-secondary) ;
|
|
65
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
66
66
|
}
|
|
67
67
|
.sbdocs-table {
|
|
68
|
-
background:
|
|
69
|
-
border: 1px solid
|
|
68
|
+
background: var(--color-fm-surface-secondary) ;
|
|
69
|
+
border: 1px solid var(--color-fm-divider-secondary) ;
|
|
70
70
|
}
|
|
71
71
|
.sbdocs-table th {
|
|
72
|
-
background:
|
|
73
|
-
color:
|
|
74
|
-
border-bottom: 1px solid
|
|
72
|
+
background: var(--color-fm-surface-secondary) ;
|
|
73
|
+
color: var(--color-fm-icon-active) ;
|
|
74
|
+
border-bottom: 1px solid var(--color-fm-divider-secondary) ;
|
|
75
75
|
}
|
|
76
76
|
.sbdocs-table td {
|
|
77
|
-
color:
|
|
78
|
-
border-bottom: 1px solid
|
|
77
|
+
color: var(--color-fm-secondary) ;
|
|
78
|
+
border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
|
|
79
79
|
}
|
|
80
80
|
`}
|
|
81
81
|
</style>
|
|
82
82
|
|
|
83
|
-
<div className="
|
|
83
|
+
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
84
|
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b
|
|
86
|
-
<div className="absolute inset-0 bg-
|
|
85
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
+
<div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
88
|
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
90
|
-
<ArrowRightIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<ArrowRightIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
|
-
<h1 className="text-5xl font-bold
|
|
92
|
+
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
93
93
|
ArrowRightIcon
|
|
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 navigation icon indicating forward movement
|
|
97
97
|
and progression. Perfect for next buttons, call-to-action
|
|
98
98
|
elements, and guiding users through workflows.
|
|
@@ -101,28 +101,28 @@ const meta: Meta<typeof ArrowRightIcon> = {
|
|
|
101
101
|
{/* Stats */}
|
|
102
102
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
103
103
|
<div className="text-center">
|
|
104
|
-
<div className="text-3xl font-bold
|
|
104
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
105
105
|
Progress
|
|
106
106
|
</div>
|
|
107
|
-
<div className="text-
|
|
107
|
+
<div className="text-fm-tertiary text-sm">
|
|
108
108
|
Forward movement
|
|
109
109
|
</div>
|
|
110
110
|
</div>
|
|
111
|
-
<div className="h-8 w-px
|
|
111
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
112
112
|
<div className="text-center">
|
|
113
|
-
<div className="text-3xl font-bold
|
|
113
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
114
114
|
Action
|
|
115
115
|
</div>
|
|
116
|
-
<div className="text-
|
|
116
|
+
<div className="text-fm-tertiary text-sm">
|
|
117
117
|
Call to action
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
120
|
-
<div className="h-8 w-px
|
|
120
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
121
121
|
<div className="text-center">
|
|
122
|
-
<div className="text-3xl font-bold
|
|
122
|
+
<div className="text-fm-icon-info text-3xl font-bold">
|
|
123
123
|
Flow
|
|
124
124
|
</div>
|
|
125
|
-
<div className="text-
|
|
125
|
+
<div className="text-fm-tertiary text-sm">
|
|
126
126
|
Workflow guidance
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
@@ -135,16 +135,16 @@ const meta: Meta<typeof ArrowRightIcon> = {
|
|
|
135
135
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
136
136
|
{/* Quick Usage */}
|
|
137
137
|
<div className="!space-y-8">
|
|
138
|
-
<h2 className="text-center text-3xl font-bold
|
|
138
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
139
139
|
Quick Start
|
|
140
140
|
</h2>
|
|
141
141
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
142
142
|
<div className="!space-y-4">
|
|
143
|
-
<h3 className="text-xl font-semibold
|
|
143
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
144
144
|
Basic Usage
|
|
145
145
|
</h3>
|
|
146
|
-
<div className="rounded-lg
|
|
147
|
-
<pre className="overflow-x-auto text-sm
|
|
146
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
147
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
148
148
|
{`import { ArrowRightIcon } from "@icons/arrow-right-icon"
|
|
149
149
|
|
|
150
150
|
function NextButton() {
|
|
@@ -160,13 +160,13 @@ function NextButton() {
|
|
|
160
160
|
</div>
|
|
161
161
|
|
|
162
162
|
<div className="!space-y-4">
|
|
163
|
-
<h3 className="text-xl font-semibold
|
|
163
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
164
164
|
Live Preview
|
|
165
165
|
</h3>
|
|
166
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
167
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
166
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
167
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
168
168
|
<span>Next Step</span>
|
|
169
|
-
<ArrowRightIcon className="h-4 w-4
|
|
169
|
+
<ArrowRightIcon className="text-fm-icon-info h-4 w-4 transition-transform hover:translate-x-1" />
|
|
170
170
|
</button>
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
@@ -175,122 +175,130 @@ function NextButton() {
|
|
|
175
175
|
|
|
176
176
|
{/* Props Documentation */}
|
|
177
177
|
<div className="!space-y-8">
|
|
178
|
-
<h2 className="text-center text-3xl font-bold
|
|
178
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
179
179
|
Props & Configuration
|
|
180
180
|
</h2>
|
|
181
181
|
|
|
182
|
-
<div className="overflow-hidden rounded-lg border
|
|
183
|
-
<div className="bg-
|
|
184
|
-
<h3 className="text-xl font-semibold
|
|
182
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
183
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
184
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
185
|
+
Props
|
|
186
|
+
</h3>
|
|
185
187
|
</div>
|
|
186
188
|
<table className="!my-0 w-full">
|
|
187
|
-
<thead className="bg-
|
|
188
|
-
<tr className="border-
|
|
189
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
189
|
+
<thead className="bg-fm-surface-secondary">
|
|
190
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
191
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
190
192
|
Prop
|
|
191
193
|
</th>
|
|
192
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
194
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
193
195
|
Type
|
|
194
196
|
</th>
|
|
195
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
197
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
196
198
|
Default
|
|
197
199
|
</th>
|
|
198
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
200
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
201
|
Description
|
|
200
202
|
</th>
|
|
201
203
|
</tr>
|
|
202
204
|
</thead>
|
|
203
205
|
<tbody>
|
|
204
206
|
{" "}
|
|
205
|
-
<tr className="
|
|
206
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
207
|
+
<tr className="bg-fm-surface-secondary!">
|
|
208
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
207
209
|
withAccessibility
|
|
208
210
|
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm
|
|
211
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
210
212
|
boolean
|
|
211
213
|
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm
|
|
214
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
213
215
|
true
|
|
214
216
|
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm
|
|
217
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
216
218
|
Whether to wrap the icon with accessibility feature
|
|
217
219
|
</td>
|
|
218
220
|
</tr>
|
|
219
|
-
<tr className="border-
|
|
220
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
221
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
222
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
221
223
|
height
|
|
222
224
|
</td>
|
|
223
|
-
<td className="px-6 py-4 text-sm
|
|
225
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
224
226
|
number | string
|
|
225
227
|
</td>
|
|
226
|
-
<td className="px-6 py-4 text-sm
|
|
227
|
-
|
|
228
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
229
|
+
14
|
|
230
|
+
</td>
|
|
231
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
228
232
|
Height of the icon in pixels
|
|
229
233
|
</td>
|
|
230
234
|
</tr>
|
|
231
|
-
<tr className="border-
|
|
232
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
235
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
236
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
233
237
|
stroke
|
|
234
238
|
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm
|
|
239
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
236
240
|
string
|
|
237
241
|
</td>
|
|
238
|
-
<td className="px-6 py-4 text-sm
|
|
242
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
239
243
|
currentColor
|
|
240
244
|
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm
|
|
245
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
242
246
|
Stroke color of the icon
|
|
243
247
|
</td>
|
|
244
248
|
</tr>
|
|
245
|
-
<tr className="border-
|
|
246
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
249
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
250
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
247
251
|
strokeWidth
|
|
248
252
|
</td>
|
|
249
|
-
<td className="px-6 py-4 text-sm
|
|
253
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
250
254
|
number | string
|
|
251
255
|
</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm
|
|
256
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
253
257
|
1.5
|
|
254
258
|
</td>
|
|
255
|
-
<td className="px-6 py-4 text-sm
|
|
259
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
256
260
|
Stroke width of the icon
|
|
257
261
|
</td>
|
|
258
262
|
</tr>
|
|
259
|
-
<tr className="border-
|
|
260
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
263
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
264
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
261
265
|
strokeLinecap
|
|
262
266
|
</td>
|
|
263
|
-
<td className="px-6 py-4 text-sm
|
|
267
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
264
268
|
string
|
|
265
269
|
</td>
|
|
266
|
-
<td className="px-6 py-4 text-sm
|
|
270
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
267
271
|
square
|
|
268
272
|
</td>
|
|
269
|
-
<td className="px-6 py-4 text-sm
|
|
273
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
270
274
|
Line cap style for stroke
|
|
271
275
|
</td>
|
|
272
276
|
</tr>
|
|
273
|
-
<tr className="border-
|
|
274
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
277
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
278
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
275
279
|
className
|
|
276
280
|
</td>
|
|
277
|
-
<td className="px-6 py-4 text-sm
|
|
281
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
278
282
|
string
|
|
279
283
|
</td>
|
|
280
|
-
<td className="px-6 py-4 text-sm
|
|
281
|
-
|
|
284
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
285
|
+
-
|
|
286
|
+
</td>
|
|
287
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
282
288
|
CSS classes for styling
|
|
283
289
|
</td>
|
|
284
290
|
</tr>
|
|
285
|
-
<tr className="
|
|
286
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
291
|
+
<tr className="bg-fm-surface-secondary!">
|
|
292
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
287
293
|
...svgProps
|
|
288
294
|
</td>
|
|
289
|
-
<td className="px-6 py-4 text-sm
|
|
295
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
290
296
|
SVGProps
|
|
291
297
|
</td>
|
|
292
|
-
<td className="px-6 py-4 text-sm
|
|
293
|
-
|
|
298
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
299
|
+
-
|
|
300
|
+
</td>
|
|
301
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
294
302
|
All standard SVG element props
|
|
295
303
|
</td>
|
|
296
304
|
</tr>
|
|
@@ -301,50 +309,62 @@ function NextButton() {
|
|
|
301
309
|
|
|
302
310
|
{/* Size Variations */}
|
|
303
311
|
<div className="!space-y-8">
|
|
304
|
-
<h2 className="text-center text-3xl font-bold
|
|
312
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
305
313
|
Size Variations
|
|
306
314
|
</h2>
|
|
307
|
-
<div className="rounded-lg border
|
|
315
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
308
316
|
<div className="!space-y-6">
|
|
309
317
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
310
318
|
<div className="!space-y-4">
|
|
311
|
-
<h3 className="text-lg font-semibold
|
|
319
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
312
320
|
Standard Sizes
|
|
313
321
|
</h3>
|
|
314
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
322
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
315
323
|
<div className="text-center">
|
|
316
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-3 w-3
|
|
317
|
-
<span className="text-
|
|
324
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
325
|
+
<span className="text-fm-tertiary text-xs">
|
|
326
|
+
12px
|
|
327
|
+
</span>
|
|
318
328
|
</div>
|
|
319
329
|
<div className="text-center">
|
|
320
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-4 w-4
|
|
321
|
-
<span className="text-
|
|
330
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
331
|
+
<span className="text-fm-tertiary text-xs">
|
|
332
|
+
16px
|
|
333
|
+
</span>
|
|
322
334
|
</div>
|
|
323
335
|
<div className="text-center">
|
|
324
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-5 w-5
|
|
325
|
-
<span className="text-
|
|
336
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
337
|
+
<span className="text-fm-tertiary text-xs">
|
|
338
|
+
20px
|
|
339
|
+
</span>
|
|
326
340
|
</div>
|
|
327
341
|
<div className="text-center">
|
|
328
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-6 w-6
|
|
329
|
-
<span className="text-
|
|
342
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
343
|
+
<span className="text-fm-tertiary text-xs">
|
|
344
|
+
24px
|
|
345
|
+
</span>
|
|
330
346
|
</div>
|
|
331
347
|
<div className="text-center">
|
|
332
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-8 w-8
|
|
333
|
-
<span className="text-
|
|
348
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
349
|
+
<span className="text-fm-tertiary text-xs">
|
|
350
|
+
32px
|
|
351
|
+
</span>
|
|
334
352
|
</div>
|
|
335
353
|
<div className="text-center">
|
|
336
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-12 w-12
|
|
337
|
-
<span className="text-
|
|
354
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
355
|
+
<span className="text-fm-tertiary text-xs">
|
|
356
|
+
48px
|
|
357
|
+
</span>
|
|
338
358
|
</div>
|
|
339
359
|
</div>
|
|
340
360
|
</div>
|
|
341
361
|
|
|
342
362
|
<div className="!space-y-4">
|
|
343
|
-
<h3 className="text-lg font-semibold
|
|
363
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
344
364
|
Code Example
|
|
345
365
|
</h3>
|
|
346
|
-
<div className="rounded-lg
|
|
347
|
-
<pre className="overflow-x-auto text-sm
|
|
366
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
367
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
348
368
|
{`// Small (16px)
|
|
349
369
|
<ArrowRightIcon className="h-4 w-4" />
|
|
350
370
|
|
|
@@ -366,37 +386,37 @@ function NextButton() {
|
|
|
366
386
|
|
|
367
387
|
{/* Direction & Animation */}
|
|
368
388
|
<div className="!space-y-8">
|
|
369
|
-
<h2 className="text-center text-3xl font-bold
|
|
389
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
370
390
|
Direction & Animation
|
|
371
391
|
</h2>
|
|
372
392
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
373
393
|
<div className="!space-y-4">
|
|
374
|
-
<h3 className="text-lg font-semibold
|
|
394
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
375
395
|
Directional Variants
|
|
376
396
|
</h3>
|
|
377
|
-
<div className="!space-y-4 rounded-lg border
|
|
397
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
378
398
|
<div className="grid grid-cols-2 gap-4">
|
|
379
399
|
<div className="flex flex-col items-center gap-2">
|
|
380
|
-
<ArrowRightIcon className="h-6 w-6
|
|
381
|
-
<span className="text-
|
|
400
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6" />
|
|
401
|
+
<span className="text-fm-tertiary! text-xs">
|
|
382
402
|
Right (Default)
|
|
383
403
|
</span>
|
|
384
404
|
</div>
|
|
385
405
|
<div className="flex flex-col items-center gap-2">
|
|
386
|
-
<ArrowRightIcon className="h-6 w-6 rotate-180
|
|
387
|
-
<span className="text-
|
|
406
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 rotate-180" />
|
|
407
|
+
<span className="text-fm-tertiary! text-xs">
|
|
388
408
|
Left (rotate-180)
|
|
389
409
|
</span>
|
|
390
410
|
</div>
|
|
391
411
|
<div className="flex flex-col items-center gap-2">
|
|
392
|
-
<ArrowRightIcon className="h-6 w-6 -rotate-90
|
|
393
|
-
<span className="text-
|
|
412
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
|
|
413
|
+
<span className="text-fm-tertiary! text-xs">
|
|
394
414
|
Up (-rotate-90)
|
|
395
415
|
</span>
|
|
396
416
|
</div>
|
|
397
417
|
<div className="flex flex-col items-center gap-2">
|
|
398
|
-
<ArrowRightIcon className="h-6 w-6 rotate-90
|
|
399
|
-
<span className="text-
|
|
418
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 rotate-90" />
|
|
419
|
+
<span className="text-fm-tertiary! text-xs">
|
|
400
420
|
Down (rotate-90)
|
|
401
421
|
</span>
|
|
402
422
|
</div>
|
|
@@ -405,11 +425,11 @@ function NextButton() {
|
|
|
405
425
|
</div>
|
|
406
426
|
|
|
407
427
|
<div className="!space-y-4">
|
|
408
|
-
<h3 className="text-lg font-semibold
|
|
428
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
409
429
|
Animation Examples
|
|
410
430
|
</h3>
|
|
411
|
-
<div className="rounded-lg
|
|
412
|
-
<pre className="overflow-x-auto text-sm
|
|
431
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
432
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
413
433
|
{`// Smooth slide animation
|
|
414
434
|
<ArrowRightIcon className="h-4 w-4 transition-transform hover:translate-x-1" />
|
|
415
435
|
|
|
@@ -429,23 +449,23 @@ function NextButton() {
|
|
|
429
449
|
|
|
430
450
|
{/* Usage Examples */}
|
|
431
451
|
<div className="!space-y-8">
|
|
432
|
-
<h2 className="text-center text-3xl font-bold
|
|
452
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
433
453
|
Usage Examples
|
|
434
454
|
</h2>
|
|
435
455
|
|
|
436
456
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
437
457
|
{/* Call to Action Button */}
|
|
438
458
|
<div className="!space-y-4">
|
|
439
|
-
<h3 className="text-lg font-semibold
|
|
459
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
440
460
|
Call to Action Button
|
|
441
461
|
</h3>
|
|
442
462
|
<div className="!space-y-4">
|
|
443
|
-
<button className="group flex items-center gap-2 rounded-lg border
|
|
463
|
+
<button className="group border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-6 py-3 transition-all">
|
|
444
464
|
<span>Get Started</span>
|
|
445
|
-
<ArrowRightIcon className="h-4 w-4
|
|
465
|
+
<ArrowRightIcon className="text-fm-icon-info h-4 w-4 transition-transform group-hover:translate-x-1" />
|
|
446
466
|
</button>
|
|
447
|
-
<div className="rounded-lg
|
|
448
|
-
<pre className="overflow-x-auto text-sm
|
|
467
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
468
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
449
469
|
{`<button className="group flex items-center gap-2 px-6 py-3 bg-cyan-500/10 border border-cyan-500/20 rounded-lg">
|
|
450
470
|
<span>Get Started</span>
|
|
451
471
|
<ArrowRightIcon className="h-4 w-4 text-cyan-400 transition-transform group-hover:translate-x-1" />
|
|
@@ -457,42 +477,42 @@ function NextButton() {
|
|
|
457
477
|
|
|
458
478
|
{/* Navigation Link */}
|
|
459
479
|
<div className="!space-y-4">
|
|
460
|
-
<h3 className="text-lg font-semibold
|
|
480
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
461
481
|
Navigation Link
|
|
462
482
|
</h3>
|
|
463
483
|
<div className="!space-y-4">
|
|
464
484
|
<div className="!space-y-3">
|
|
465
485
|
<a
|
|
466
486
|
href="#"
|
|
467
|
-
className="group flex items-center justify-between rounded-lg border
|
|
487
|
+
className="group border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4 transition-colors"
|
|
468
488
|
>
|
|
469
489
|
<div>
|
|
470
|
-
<h4 className="font-medium
|
|
490
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
471
491
|
Documentation
|
|
472
492
|
</h4>
|
|
473
|
-
<p className="text-
|
|
493
|
+
<p className="text-fm-tertiary! text-sm">
|
|
474
494
|
Learn how to use our components
|
|
475
495
|
</p>
|
|
476
496
|
</div>
|
|
477
|
-
<ArrowRightIcon className="h-5 w-5
|
|
497
|
+
<ArrowRightIcon className="text-fm-icon-info h-5 w-5 transition-transform group-hover:translate-x-1" />
|
|
478
498
|
</a>
|
|
479
499
|
<a
|
|
480
500
|
href="#"
|
|
481
|
-
className="group flex items-center justify-between rounded-lg border
|
|
501
|
+
className="group border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4 transition-colors"
|
|
482
502
|
>
|
|
483
503
|
<div>
|
|
484
|
-
<h4 className="font-medium
|
|
504
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
485
505
|
Examples
|
|
486
506
|
</h4>
|
|
487
|
-
<p className="text-
|
|
507
|
+
<p className="text-fm-tertiary! text-sm">
|
|
488
508
|
Browse through code examples
|
|
489
509
|
</p>
|
|
490
510
|
</div>
|
|
491
|
-
<ArrowRightIcon className="h-5 w-5
|
|
511
|
+
<ArrowRightIcon className="text-fm-icon-info h-5 w-5 transition-transform group-hover:translate-x-1" />
|
|
492
512
|
</a>
|
|
493
513
|
</div>
|
|
494
|
-
<div className="rounded-lg
|
|
495
|
-
<pre className="overflow-x-auto text-sm
|
|
514
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
515
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
496
516
|
{`<a href="#" className="group flex items-center justify-between p-4 rounded-lg border border-white/10 bg-white/5 hover:bg-white/10">
|
|
497
517
|
<div>
|
|
498
518
|
<h4 className="font-medium text-white">Documentation</h4>
|
|
@@ -507,28 +527,30 @@ function NextButton() {
|
|
|
507
527
|
|
|
508
528
|
{/* Step Navigation */}
|
|
509
529
|
<div className="!space-y-4">
|
|
510
|
-
<h3 className="text-lg font-semibold
|
|
530
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
511
531
|
Step Navigation
|
|
512
532
|
</h3>
|
|
513
533
|
<div className="!space-y-4">
|
|
514
|
-
<div className="rounded-lg border
|
|
534
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
515
535
|
<div className="flex items-center justify-between">
|
|
516
536
|
<div>
|
|
517
|
-
<div className="text-sm font-medium
|
|
537
|
+
<div className="text-fm-icon-active! text-sm font-medium">
|
|
518
538
|
Step 2 of 5
|
|
519
539
|
</div>
|
|
520
|
-
<div className="text-
|
|
540
|
+
<div className="text-fm-tertiary! text-xs">
|
|
521
541
|
Personal Information
|
|
522
542
|
</div>
|
|
523
543
|
</div>
|
|
524
|
-
<button className="flex items-center gap-2 rounded border
|
|
525
|
-
<span className="
|
|
526
|
-
|
|
544
|
+
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex items-center gap-2 rounded border px-4 py-2 text-sm transition-colors">
|
|
545
|
+
<span className="text-fm-icon-active!">
|
|
546
|
+
Continue
|
|
547
|
+
</span>
|
|
548
|
+
<ArrowRightIcon className="text-fm-icon-info h-4 w-4" />
|
|
527
549
|
</button>
|
|
528
550
|
</div>
|
|
529
551
|
</div>
|
|
530
|
-
<div className="rounded-lg
|
|
531
|
-
<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">
|
|
532
554
|
{`<div className="flex items-center justify-between">
|
|
533
555
|
<div>
|
|
534
556
|
<div className="text-sm font-medium text-white">Step 2 of 5</div>
|
|
@@ -546,25 +568,25 @@ function NextButton() {
|
|
|
546
568
|
|
|
547
569
|
{/* Pagination Next */}
|
|
548
570
|
<div className="!space-y-4">
|
|
549
|
-
<h3 className="text-lg font-semibold
|
|
571
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
550
572
|
Pagination Controls
|
|
551
573
|
</h3>
|
|
552
574
|
<div className="!space-y-4">
|
|
553
575
|
<div className="flex items-center justify-between">
|
|
554
|
-
<button className="flex items-center gap-2 rounded border
|
|
555
|
-
<ArrowRightIcon className="h-4 w-4 rotate-180
|
|
556
|
-
<span className="
|
|
576
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
577
|
+
<ArrowRightIcon className="text-fm-placeholder h-4 w-4 rotate-180" />
|
|
578
|
+
<span className="text-fm-icon-active!">Previous</span>
|
|
557
579
|
</button>
|
|
558
|
-
<span className="text-
|
|
580
|
+
<span className="text-fm-secondary! text-sm">
|
|
559
581
|
Page 3 of 12
|
|
560
582
|
</span>
|
|
561
|
-
<button className="flex items-center gap-2 rounded border
|
|
562
|
-
<span className="
|
|
563
|
-
<ArrowRightIcon className="h-4 w-4
|
|
583
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
584
|
+
<span className="text-fm-icon-active!">Next</span>
|
|
585
|
+
<ArrowRightIcon className="text-fm-icon-info h-4 w-4" />
|
|
564
586
|
</button>
|
|
565
587
|
</div>
|
|
566
|
-
<div className="rounded-lg
|
|
567
|
-
<pre className="overflow-x-auto text-sm
|
|
588
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
589
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
568
590
|
{`<div className="flex items-center justify-between">
|
|
569
591
|
<button className="flex items-center gap-2 px-3 py-2 text-sm">
|
|
570
592
|
<ArrowRightIcon className="h-4 w-4 rotate-180 text-gray-400" />
|
|
@@ -583,35 +605,35 @@ function NextButton() {
|
|
|
583
605
|
|
|
584
606
|
{/* External Link */}
|
|
585
607
|
<div className="!space-y-4">
|
|
586
|
-
<h3 className="text-lg font-semibold
|
|
608
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
587
609
|
External Link
|
|
588
610
|
</h3>
|
|
589
611
|
<div className="!space-y-4">
|
|
590
612
|
<div className="!space-y-2">
|
|
591
613
|
<a
|
|
592
614
|
href="#"
|
|
593
|
-
className="inline-flex items-center gap-1 text-sm
|
|
615
|
+
className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
|
|
594
616
|
>
|
|
595
617
|
Learn more
|
|
596
618
|
<ArrowRightIcon className="h-3 w-3" />
|
|
597
619
|
</a>
|
|
598
620
|
<a
|
|
599
621
|
href="#"
|
|
600
|
-
className="inline-flex items-center gap-1 text-sm
|
|
622
|
+
className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
|
|
601
623
|
>
|
|
602
624
|
View documentation
|
|
603
625
|
<ArrowRightIcon className="h-3 w-3" />
|
|
604
626
|
</a>
|
|
605
627
|
<a
|
|
606
628
|
href="#"
|
|
607
|
-
className="inline-flex items-center gap-1 text-sm
|
|
629
|
+
className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
|
|
608
630
|
>
|
|
609
631
|
Visit our blog
|
|
610
632
|
<ArrowRightIcon className="h-3 w-3" />
|
|
611
633
|
</a>
|
|
612
634
|
</div>
|
|
613
|
-
<div className="rounded-lg
|
|
614
|
-
<pre className="overflow-x-auto text-sm
|
|
635
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
636
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
615
637
|
{`<a href="#" className="inline-flex items-center gap-1 text-sm text-cyan-400 hover:text-cyan-300">
|
|
616
638
|
Learn more
|
|
617
639
|
<ArrowRightIcon className="h-3 w-3" />
|
|
@@ -628,36 +650,36 @@ function NextButton() {
|
|
|
628
650
|
|
|
629
651
|
{/* Card Actions */}
|
|
630
652
|
<div className="!space-y-4">
|
|
631
|
-
<h3 className="text-lg font-semibold
|
|
653
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
632
654
|
Card with Actions
|
|
633
655
|
</h3>
|
|
634
656
|
<div className="!space-y-4">
|
|
635
|
-
<div className="rounded-lg border
|
|
657
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
636
658
|
<div className="!space-y-4">
|
|
637
659
|
<div>
|
|
638
|
-
<h4 className="font-medium
|
|
660
|
+
<h4 className="text-fm-icon-active! font-medium">
|
|
639
661
|
Pro Plan
|
|
640
662
|
</h4>
|
|
641
|
-
<p className="text-
|
|
663
|
+
<p className="text-fm-tertiary! text-sm">
|
|
642
664
|
Advanced features for power users
|
|
643
665
|
</p>
|
|
644
666
|
</div>
|
|
645
667
|
<div className="flex items-center justify-between">
|
|
646
|
-
<span className="text-2xl font-bold
|
|
668
|
+
<span className="text-fm-icon-active! text-2xl font-bold">
|
|
647
669
|
$29
|
|
648
|
-
<span className="text-sm font-normal
|
|
670
|
+
<span className="text-fm-tertiary text-sm font-normal">
|
|
649
671
|
/month
|
|
650
672
|
</span>
|
|
651
673
|
</span>
|
|
652
|
-
<button className="flex items-center gap-2 rounded
|
|
674
|
+
<button className="bg-fm-icon-info text-fm-icon-active hover:bg-fm-icon-info flex items-center gap-2 rounded px-4 py-2 text-sm font-medium transition-colors">
|
|
653
675
|
Upgrade Now
|
|
654
676
|
<ArrowRightIcon className="h-4 w-4" />
|
|
655
677
|
</button>
|
|
656
678
|
</div>
|
|
657
679
|
</div>
|
|
658
680
|
</div>
|
|
659
|
-
<div className="rounded-lg
|
|
660
|
-
<pre className="overflow-x-auto text-sm
|
|
681
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
682
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
661
683
|
{`<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
662
684
|
<div className="space-y-4">
|
|
663
685
|
<div>
|
|
@@ -682,64 +704,64 @@ function NextButton() {
|
|
|
682
704
|
|
|
683
705
|
{/* Accessibility */}
|
|
684
706
|
<div className="!space-y-8">
|
|
685
|
-
<h2 className="text-center text-3xl font-bold
|
|
707
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
686
708
|
Accessibility Features
|
|
687
709
|
</h2>
|
|
688
710
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
689
|
-
<div className="!space-y-4 rounded-lg border
|
|
690
|
-
<h3 className="text-lg font-semibold
|
|
711
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
712
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
691
713
|
✅ Built-in Features
|
|
692
714
|
</h3>
|
|
693
|
-
<ul className="!space-y-2 text-sm
|
|
694
|
-
<li className="
|
|
715
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
716
|
+
<li className="text-fm-secondary!">
|
|
695
717
|
Uses Radix UI AccessibleIcon wrapper
|
|
696
718
|
</li>
|
|
697
|
-
<li className="
|
|
719
|
+
<li className="text-fm-secondary!">
|
|
698
720
|
Provides screen reader label "Arrow Right icon"
|
|
699
721
|
</li>
|
|
700
|
-
<li className="
|
|
722
|
+
<li className="text-fm-secondary!">
|
|
701
723
|
Supports keyboard navigation when used in buttons
|
|
702
724
|
</li>
|
|
703
|
-
<li className="
|
|
725
|
+
<li className="text-fm-secondary!">
|
|
704
726
|
Maintains proper color contrast ratios
|
|
705
727
|
</li>
|
|
706
|
-
<li className="
|
|
728
|
+
<li className="text-fm-secondary!">
|
|
707
729
|
Respects user's motion preferences for animations
|
|
708
730
|
</li>
|
|
709
731
|
</ul>
|
|
710
732
|
</div>
|
|
711
733
|
|
|
712
|
-
<div className="!space-y-4 rounded-lg border
|
|
713
|
-
<h3 className="text-lg font-semibold
|
|
734
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
735
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
714
736
|
💡 Best Practices
|
|
715
737
|
</h3>
|
|
716
|
-
<ul className="!space-y-2 text-sm
|
|
717
|
-
<li className="
|
|
738
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
739
|
+
<li className="text-fm-secondary!">
|
|
718
740
|
Always pair with descriptive text or aria-label
|
|
719
741
|
</li>
|
|
720
|
-
<li className="
|
|
742
|
+
<li className="text-fm-secondary!">
|
|
721
743
|
Use consistent direction conventions
|
|
722
744
|
</li>
|
|
723
|
-
<li className="
|
|
745
|
+
<li className="text-fm-secondary!">
|
|
724
746
|
Provide clear focus indicators for interactive elements
|
|
725
747
|
</li>
|
|
726
|
-
<li className="
|
|
748
|
+
<li className="text-fm-secondary!">
|
|
727
749
|
Test navigation flow with keyboard only
|
|
728
750
|
</li>
|
|
729
|
-
<li className="
|
|
751
|
+
<li className="text-fm-secondary!">
|
|
730
752
|
Consider touch targets on mobile devices
|
|
731
753
|
</li>
|
|
732
754
|
</ul>
|
|
733
755
|
</div>
|
|
734
756
|
</div>
|
|
735
757
|
|
|
736
|
-
<div className="rounded-lg border
|
|
737
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
758
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
759
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
738
760
|
Accessible Button Implementation
|
|
739
761
|
</h3>
|
|
740
762
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
741
|
-
<div className="rounded-lg
|
|
742
|
-
<pre className="overflow-x-auto text-sm
|
|
763
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
764
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
743
765
|
{`// Accessible next button with proper labeling
|
|
744
766
|
function AccessibleNextButton({ onNext, children, disabled = false }) {
|
|
745
767
|
return (
|
|
@@ -765,13 +787,13 @@ function AccessibleNextButton({ onNext, children, disabled = false }) {
|
|
|
765
787
|
</pre>
|
|
766
788
|
</div>
|
|
767
789
|
<div className="!space-y-4">
|
|
768
|
-
<p className="text-
|
|
790
|
+
<p className="text-fm-secondary! text-sm">
|
|
769
791
|
This implementation includes proper ARIA labeling,
|
|
770
792
|
keyboard navigation, and disabled states for optimal
|
|
771
793
|
accessibility.
|
|
772
794
|
</p>
|
|
773
|
-
<div className="
|
|
774
|
-
<div className="flex items-center gap-2 text-sm
|
|
795
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
796
|
+
<div className="text-fm-icon-info! flex items-center gap-2 text-sm">
|
|
775
797
|
<ArrowRightIcon className="h-4 w-4" />
|
|
776
798
|
<span>
|
|
777
799
|
The icon is marked as aria-hidden since the button
|
|
@@ -786,56 +808,58 @@ function AccessibleNextButton({ onNext, children, disabled = false }) {
|
|
|
786
808
|
|
|
787
809
|
{/* Related Icons */}
|
|
788
810
|
<div className="!space-y-8">
|
|
789
|
-
<h2 className="text-center text-3xl font-bold
|
|
811
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
790
812
|
Related Icons
|
|
791
813
|
</h2>
|
|
792
814
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
793
|
-
<div className="!space-y-3 rounded-lg border
|
|
794
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
795
|
-
<ArrowRightIcon className="h-6 w-6 rotate-180
|
|
815
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
816
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
817
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 rotate-180" />
|
|
796
818
|
</div>
|
|
797
819
|
<div>
|
|
798
|
-
<div className="font-medium
|
|
820
|
+
<div className="text-fm-icon-active font-medium">
|
|
799
821
|
ArrowLeftIcon
|
|
800
822
|
</div>
|
|
801
|
-
<div className="text-
|
|
823
|
+
<div className="text-fm-tertiary text-xs">
|
|
802
824
|
Previous/back actions
|
|
803
825
|
</div>
|
|
804
826
|
</div>
|
|
805
827
|
</div>
|
|
806
|
-
<div className="!space-y-3 rounded-lg border
|
|
807
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
808
|
-
<ArrowRightIcon className="h-6 w-6 -rotate-90
|
|
828
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
829
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
830
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
|
|
809
831
|
</div>
|
|
810
832
|
<div>
|
|
811
|
-
<div className="font-medium
|
|
812
|
-
|
|
833
|
+
<div className="text-fm-icon-active font-medium">
|
|
834
|
+
ArrowUpIcon
|
|
835
|
+
</div>
|
|
836
|
+
<div className="text-fm-tertiary text-xs">
|
|
813
837
|
Upward movement
|
|
814
838
|
</div>
|
|
815
839
|
</div>
|
|
816
840
|
</div>
|
|
817
|
-
<div className="!space-y-3 rounded-lg border
|
|
818
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
819
|
-
<ArrowRightIcon className="h-6 w-6 rotate-90
|
|
841
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
842
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
843
|
+
<ArrowRightIcon className="text-fm-secondary-600 h-6 w-6 rotate-90" />
|
|
820
844
|
</div>
|
|
821
845
|
<div>
|
|
822
|
-
<div className="font-medium
|
|
846
|
+
<div className="text-fm-icon-active font-medium">
|
|
823
847
|
ArrowDownIcon
|
|
824
848
|
</div>
|
|
825
|
-
<div className="text-
|
|
849
|
+
<div className="text-fm-tertiary text-xs">
|
|
826
850
|
Downward movement
|
|
827
851
|
</div>
|
|
828
852
|
</div>
|
|
829
853
|
</div>
|
|
830
|
-
<div className="!space-y-3 rounded-lg border
|
|
831
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
854
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
855
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
832
856
|
<span className="text-2xl">➡️</span>
|
|
833
857
|
</div>
|
|
834
858
|
<div>
|
|
835
|
-
<div className="font-medium
|
|
859
|
+
<div className="text-fm-icon-active font-medium">
|
|
836
860
|
ChevronRightIcon
|
|
837
861
|
</div>
|
|
838
|
-
<div className="text-
|
|
862
|
+
<div className="text-fm-tertiary text-xs">
|
|
839
863
|
Alternative arrow style
|
|
840
864
|
</div>
|
|
841
865
|
</div>
|
|
@@ -845,14 +869,14 @@ function AccessibleNextButton({ onNext, children, disabled = false }) {
|
|
|
845
869
|
</div>
|
|
846
870
|
|
|
847
871
|
{/* Footer */}
|
|
848
|
-
<div className="border-
|
|
872
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
849
873
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
850
874
|
<div className="!space-y-4 text-center">
|
|
851
|
-
<p className="
|
|
875
|
+
<p className="text-fm-tertiary!">
|
|
852
876
|
ArrowRightIcon is part of the Aural UI icon library,
|
|
853
877
|
designed for clear forward progression and action guidance.
|
|
854
878
|
</p>
|
|
855
|
-
<p className="text-
|
|
879
|
+
<p className="text-fm-placeholder! text-sm">
|
|
856
880
|
Perfect for call-to-action buttons, navigation links, step
|
|
857
881
|
progression, and any interface requiring forward direction
|
|
858
882
|
indication.
|
|
@@ -907,8 +931,8 @@ const storyParameters = {
|
|
|
907
931
|
backgrounds: {
|
|
908
932
|
default: "dark",
|
|
909
933
|
values: [
|
|
910
|
-
{ name: "dark", value: "
|
|
911
|
-
{ name: "darker", value: "
|
|
934
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
935
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
912
936
|
],
|
|
913
937
|
},
|
|
914
938
|
}
|
|
@@ -917,12 +941,12 @@ export const Default: Story = {
|
|
|
917
941
|
args: {
|
|
918
942
|
width: 24,
|
|
919
943
|
height: 21,
|
|
920
|
-
className: "text-
|
|
944
|
+
className: "text-fm-icon-info",
|
|
921
945
|
withAccessibility: true,
|
|
922
946
|
},
|
|
923
947
|
parameters: storyParameters,
|
|
924
948
|
render: (args) => (
|
|
925
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
949
|
+
<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">
|
|
926
950
|
<ArrowRightIcon {...args} />
|
|
927
951
|
</div>
|
|
928
952
|
),
|
|
@@ -939,30 +963,30 @@ export const SizeVariations: Story = {
|
|
|
939
963
|
},
|
|
940
964
|
},
|
|
941
965
|
render: () => (
|
|
942
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
966
|
+
<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">
|
|
943
967
|
<div className="text-center">
|
|
944
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-3 w-3
|
|
945
|
-
<span className="text-
|
|
968
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
969
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
946
970
|
</div>
|
|
947
971
|
<div className="text-center">
|
|
948
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-4 w-4
|
|
949
|
-
<span className="text-
|
|
972
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
973
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
950
974
|
</div>
|
|
951
975
|
<div className="text-center">
|
|
952
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-5 w-5
|
|
953
|
-
<span className="text-
|
|
976
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
977
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
954
978
|
</div>
|
|
955
979
|
<div className="text-center">
|
|
956
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-6 w-6
|
|
957
|
-
<span className="text-
|
|
980
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
981
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
958
982
|
</div>
|
|
959
983
|
<div className="text-center">
|
|
960
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-8 w-8
|
|
961
|
-
<span className="text-
|
|
984
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
985
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
962
986
|
</div>
|
|
963
987
|
<div className="text-center">
|
|
964
|
-
<ArrowRightIcon className="!mx-auto mb-2 h-12 w-12
|
|
965
|
-
<span className="text-
|
|
988
|
+
<ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
989
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
966
990
|
</div>
|
|
967
991
|
</div>
|
|
968
992
|
),
|
|
@@ -979,34 +1003,34 @@ export const DirectionalVariations: Story = {
|
|
|
979
1003
|
},
|
|
980
1004
|
},
|
|
981
1005
|
render: () => (
|
|
982
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-8 rounded-lg bg-
|
|
1006
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
|
|
983
1007
|
<div className="text-center">
|
|
984
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
985
|
-
<ArrowRightIcon className="h-8 w-8
|
|
1008
|
+
<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">
|
|
1009
|
+
<ArrowRightIcon className="text-fm-icon-info h-8 w-8" />
|
|
986
1010
|
</div>
|
|
987
|
-
<div className="text-sm font-medium
|
|
988
|
-
<div className="text-
|
|
1011
|
+
<div className="text-fm-icon-active text-sm font-medium">Right</div>
|
|
1012
|
+
<div className="text-fm-icon-info text-xs">Default</div>
|
|
989
1013
|
</div>
|
|
990
1014
|
<div className="text-center">
|
|
991
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
992
|
-
<ArrowRightIcon className="h-8 w-8 rotate-180
|
|
1015
|
+
<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">
|
|
1016
|
+
<ArrowRightIcon className="text-fm-icon-info h-8 w-8 rotate-180" />
|
|
993
1017
|
</div>
|
|
994
|
-
<div className="text-sm font-medium
|
|
995
|
-
<div className="text-
|
|
1018
|
+
<div className="text-fm-icon-active text-sm font-medium">Left</div>
|
|
1019
|
+
<div className="text-fm-icon-info text-xs">rotate-180</div>
|
|
996
1020
|
</div>
|
|
997
1021
|
<div className="text-center">
|
|
998
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
999
|
-
<ArrowRightIcon className="h-8 w-8 -rotate-90
|
|
1022
|
+
<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">
|
|
1023
|
+
<ArrowRightIcon className="text-fm-icon-info h-8 w-8 -rotate-90" />
|
|
1000
1024
|
</div>
|
|
1001
|
-
<div className="text-sm font-medium
|
|
1002
|
-
<div className="text-
|
|
1025
|
+
<div className="text-fm-icon-active text-sm font-medium">Up</div>
|
|
1026
|
+
<div className="text-fm-icon-info text-xs">-rotate-90</div>
|
|
1003
1027
|
</div>
|
|
1004
1028
|
<div className="text-center">
|
|
1005
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1006
|
-
<ArrowRightIcon className="h-8 w-8 rotate-90
|
|
1029
|
+
<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">
|
|
1030
|
+
<ArrowRightIcon className="text-fm-secondary-600 h-8 w-8 rotate-90" />
|
|
1007
1031
|
</div>
|
|
1008
|
-
<div className="text-sm font-medium
|
|
1009
|
-
<div className="text-
|
|
1032
|
+
<div className="text-fm-icon-active text-sm font-medium">Down</div>
|
|
1033
|
+
<div className="text-fm-secondary-600 text-xs">rotate-90</div>
|
|
1010
1034
|
</div>
|
|
1011
1035
|
</div>
|
|
1012
1036
|
),
|
|
@@ -1023,58 +1047,62 @@ export const UsageExamples: Story = {
|
|
|
1023
1047
|
},
|
|
1024
1048
|
},
|
|
1025
1049
|
render: () => (
|
|
1026
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
1050
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1027
1051
|
{/* Call to Action */}
|
|
1028
1052
|
<div className="!space-y-2">
|
|
1029
|
-
<h3 className="text-sm font-medium
|
|
1053
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1030
1054
|
Call to Action Button
|
|
1031
1055
|
</h3>
|
|
1032
|
-
<button className="group flex items-center gap-2 rounded-lg border
|
|
1056
|
+
<button className="group border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-6 py-3 transition-all">
|
|
1033
1057
|
<span>Get Started</span>
|
|
1034
|
-
<ArrowRightIcon className="h-4 w-4
|
|
1058
|
+
<ArrowRightIcon className="text-fm-icon-info h-4 w-4 transition-transform group-hover:translate-x-1" />
|
|
1035
1059
|
</button>
|
|
1036
1060
|
</div>
|
|
1037
1061
|
|
|
1038
1062
|
{/* Navigation Link */}
|
|
1039
1063
|
<div className="!space-y-2">
|
|
1040
|
-
<h3 className="text-sm font-medium
|
|
1064
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1065
|
+
Navigation Link
|
|
1066
|
+
</h3>
|
|
1041
1067
|
<a
|
|
1042
1068
|
href="#"
|
|
1043
|
-
className="group flex items-center justify-between rounded-lg border
|
|
1069
|
+
className="group border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4 transition-colors"
|
|
1044
1070
|
>
|
|
1045
1071
|
<div>
|
|
1046
|
-
<h4 className="font-medium
|
|
1047
|
-
<p className="text-
|
|
1072
|
+
<h4 className="text-fm-icon-active font-medium">Documentation</h4>
|
|
1073
|
+
<p className="text-fm-tertiary text-sm">
|
|
1048
1074
|
Learn how to use our components
|
|
1049
1075
|
</p>
|
|
1050
1076
|
</div>
|
|
1051
|
-
<ArrowRightIcon className="h-5 w-5
|
|
1077
|
+
<ArrowRightIcon className="text-fm-icon-info h-5 w-5 transition-transform group-hover:translate-x-1" />
|
|
1052
1078
|
</a>
|
|
1053
1079
|
</div>
|
|
1054
1080
|
|
|
1055
1081
|
{/* Pagination */}
|
|
1056
1082
|
<div className="!space-y-2">
|
|
1057
|
-
<h3 className="text-sm font-medium
|
|
1083
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Pagination</h3>
|
|
1058
1084
|
<div className="flex items-center justify-between">
|
|
1059
|
-
<button className="flex items-center gap-2 rounded border
|
|
1060
|
-
<ArrowRightIcon className="h-4 w-4 rotate-180
|
|
1061
|
-
<span className="text-
|
|
1085
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
1086
|
+
<ArrowRightIcon className="text-fm-placeholder h-4 w-4 rotate-180" />
|
|
1087
|
+
<span className="text-fm-icon-active">Previous</span>
|
|
1062
1088
|
</button>
|
|
1063
|
-
<span className="text-
|
|
1064
|
-
<button className="flex items-center gap-2 rounded border
|
|
1065
|
-
<span className="text-
|
|
1066
|
-
<ArrowRightIcon className="h-4 w-4
|
|
1089
|
+
<span className="text-fm-secondary text-sm">Page 3 of 12</span>
|
|
1090
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
1091
|
+
<span className="text-fm-icon-active">Next</span>
|
|
1092
|
+
<ArrowRightIcon className="text-fm-icon-info h-4 w-4" />
|
|
1067
1093
|
</button>
|
|
1068
1094
|
</div>
|
|
1069
1095
|
</div>
|
|
1070
1096
|
|
|
1071
1097
|
{/* External Links */}
|
|
1072
1098
|
<div className="!space-y-2">
|
|
1073
|
-
<h3 className="text-sm font-medium
|
|
1099
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1100
|
+
External Links
|
|
1101
|
+
</h3>
|
|
1074
1102
|
<div className="!space-y-2">
|
|
1075
1103
|
<a
|
|
1076
1104
|
href="#"
|
|
1077
|
-
className="inline-flex items-center gap-1 text-sm
|
|
1105
|
+
className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
|
|
1078
1106
|
>
|
|
1079
1107
|
Learn more
|
|
1080
1108
|
<ArrowRightIcon className="h-3 w-3" />
|
|
@@ -1082,7 +1110,7 @@ export const UsageExamples: Story = {
|
|
|
1082
1110
|
<br />
|
|
1083
1111
|
<a
|
|
1084
1112
|
href="#"
|
|
1085
|
-
className="inline-flex items-center gap-1 text-sm
|
|
1113
|
+
className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
|
|
1086
1114
|
>
|
|
1087
1115
|
View documentation
|
|
1088
1116
|
<ArrowRightIcon className="h-3 w-3" />
|
|
@@ -1104,29 +1132,35 @@ export const AnimatedStates: Story = {
|
|
|
1104
1132
|
},
|
|
1105
1133
|
},
|
|
1106
1134
|
render: () => (
|
|
1107
|
-
<div className="grid min-h-dvh grid-cols-1 items-center gap-8 rounded-lg bg-
|
|
1135
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-1 items-center gap-8 rounded-lg bg-linear-to-br p-8 md:grid-cols-3">
|
|
1108
1136
|
<div className="text-center">
|
|
1109
|
-
<h3 className="mb-4 text-lg font-medium
|
|
1110
|
-
|
|
1111
|
-
|
|
1137
|
+
<h3 className="text-fm-icon-active mb-4 text-lg font-medium">
|
|
1138
|
+
Hover Animation
|
|
1139
|
+
</h3>
|
|
1140
|
+
<button className="group border-fm-icon-info/30 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 rounded-lg border px-6 py-3 transition-colors">
|
|
1141
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 transition-transform duration-300 group-hover:translate-x-2" />
|
|
1112
1142
|
</button>
|
|
1113
|
-
<p className="mt-2 text-xs
|
|
1143
|
+
<p className="text-fm-tertiary mt-2 text-xs">Hover to slide right</p>
|
|
1114
1144
|
</div>
|
|
1115
1145
|
|
|
1116
1146
|
<div className="text-center">
|
|
1117
|
-
<h3 className="mb-4 text-lg font-medium
|
|
1118
|
-
|
|
1119
|
-
|
|
1147
|
+
<h3 className="text-fm-icon-active mb-4 text-lg font-medium">
|
|
1148
|
+
Pulse Animation
|
|
1149
|
+
</h3>
|
|
1150
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 rounded-lg border px-6 py-3">
|
|
1151
|
+
<ArrowRightIcon className="text-fm-icon-info h-6 w-6 animate-pulse" />
|
|
1120
1152
|
</button>
|
|
1121
|
-
<p className="mt-2 text-xs
|
|
1153
|
+
<p className="text-fm-tertiary mt-2 text-xs">Attention grabbing</p>
|
|
1122
1154
|
</div>
|
|
1123
1155
|
|
|
1124
1156
|
<div className="text-center">
|
|
1125
|
-
<h3 className="mb-4 text-lg font-medium
|
|
1126
|
-
|
|
1127
|
-
|
|
1157
|
+
<h3 className="text-fm-icon-active mb-4 text-lg font-medium">
|
|
1158
|
+
Color Change
|
|
1159
|
+
</h3>
|
|
1160
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 rounded-lg border px-6 py-3 transition-colors">
|
|
1161
|
+
<ArrowRightIcon className="text-fm-icon-info hover:text-fm-icon-info h-6 w-6 transition-colors duration-300" />
|
|
1128
1162
|
</button>
|
|
1129
|
-
<p className="mt-2 text-xs
|
|
1163
|
+
<p className="text-fm-tertiary mt-2 text-xs">Hover to lighten</p>
|
|
1130
1164
|
</div>
|
|
1131
1165
|
</div>
|
|
1132
1166
|
),
|
|
@@ -1145,13 +1179,13 @@ export const Playground: Story = {
|
|
|
1145
1179
|
args: {
|
|
1146
1180
|
width: 32,
|
|
1147
1181
|
height: 28,
|
|
1148
|
-
className: "text-
|
|
1182
|
+
className: "text-fm-icon-info",
|
|
1149
1183
|
strokeWidth: 1.5,
|
|
1150
1184
|
strokeLinecap: "square",
|
|
1151
1185
|
},
|
|
1152
1186
|
render: (args) => (
|
|
1153
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1154
|
-
<div className="rounded-lg border
|
|
1187
|
+
<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">
|
|
1188
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1155
1189
|
<ArrowRightIcon {...args} />
|
|
1156
1190
|
</div>
|
|
1157
1191
|
</div>
|