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 ChevronRightIcon> = {
|
|
|
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 ChevronRightIcon> = {
|
|
|
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-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
|
-
<ChevronRightIcon 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
|
+
<ChevronRightIcon 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
|
ChevronRightIcon
|
|
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 versatile chevron right icon for navigation, next buttons,
|
|
97
97
|
and rightward direction indicators. Built with accessibility
|
|
98
98
|
in mind using Radix UI's AccessibleIcon wrapper.
|
|
@@ -101,28 +101,28 @@ const meta: Meta<typeof ChevronRightIcon> = {
|
|
|
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
|
Accessible
|
|
106
106
|
</div>
|
|
107
|
-
<div className="text-
|
|
107
|
+
<div className="text-fm-tertiary text-sm">
|
|
108
108
|
Screen reader friendly
|
|
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
|
Scalable
|
|
115
115
|
</div>
|
|
116
|
-
<div className="text-
|
|
116
|
+
<div className="text-fm-tertiary text-sm">
|
|
117
117
|
Any size needed
|
|
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
|
Navigation
|
|
124
124
|
</div>
|
|
125
|
-
<div className="text-
|
|
125
|
+
<div className="text-fm-tertiary text-sm">
|
|
126
126
|
Forward movement
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
@@ -135,16 +135,16 @@ const meta: Meta<typeof ChevronRightIcon> = {
|
|
|
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 { ChevronRightIcon } from "@icons/chevron-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-3 rounded-lg border
|
|
168
|
-
<span className="text-
|
|
169
|
-
<ChevronRightIcon className="h-4 w-4
|
|
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 hover:bg-fm-icon-info/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
168
|
+
<span className="text-fm-icon-active">Continue</span>
|
|
169
|
+
<ChevronRightIcon className="text-fm-icon-info h-4 w-4" />
|
|
170
170
|
</button>
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
@@ -175,108 +175,116 @@ 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
|
+
24
|
|
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
|
className
|
|
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
|
string
|
|
251
255
|
</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm
|
|
253
|
-
|
|
256
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
257
|
+
-
|
|
258
|
+
</td>
|
|
259
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
254
260
|
CSS classes for styling (use for overrides)
|
|
255
261
|
</td>
|
|
256
262
|
</tr>
|
|
257
|
-
<tr className="border-
|
|
258
|
-
<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">
|
|
259
265
|
strokeWidth
|
|
260
266
|
</td>
|
|
261
|
-
<td className="px-6 py-4 text-sm
|
|
267
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
262
268
|
number | string
|
|
263
269
|
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm
|
|
270
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
265
271
|
1.5
|
|
266
272
|
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm
|
|
273
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
268
274
|
Stroke width of the chevron line
|
|
269
275
|
</td>
|
|
270
276
|
</tr>
|
|
271
|
-
<tr className="
|
|
272
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
277
|
+
<tr className="bg-fm-surface-secondary!">
|
|
278
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
273
279
|
...svgProps
|
|
274
280
|
</td>
|
|
275
|
-
<td className="px-6 py-4 text-sm
|
|
281
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
276
282
|
SVGProps
|
|
277
283
|
</td>
|
|
278
|
-
<td className="px-6 py-4 text-sm
|
|
279
|
-
|
|
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">
|
|
280
288
|
All standard SVG element props
|
|
281
289
|
</td>
|
|
282
290
|
</tr>
|
|
@@ -287,50 +295,62 @@ function NextButton() {
|
|
|
287
295
|
|
|
288
296
|
{/* Size Variations */}
|
|
289
297
|
<div className="!space-y-8">
|
|
290
|
-
<h2 className="text-center text-3xl font-bold
|
|
298
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
291
299
|
Size Variations
|
|
292
300
|
</h2>
|
|
293
|
-
<div className="rounded-lg border
|
|
301
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
294
302
|
<div className="!space-y-6">
|
|
295
303
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
296
304
|
<div className="!space-y-4">
|
|
297
|
-
<h3 className="text-lg font-semibold
|
|
305
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
298
306
|
Standard Sizes
|
|
299
307
|
</h3>
|
|
300
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
308
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
301
309
|
<div className="text-center">
|
|
302
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-3 w-3
|
|
303
|
-
<span className="text-
|
|
310
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
311
|
+
<span className="text-fm-tertiary text-xs">
|
|
312
|
+
12px
|
|
313
|
+
</span>
|
|
304
314
|
</div>
|
|
305
315
|
<div className="text-center">
|
|
306
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-4 w-4
|
|
307
|
-
<span className="text-
|
|
316
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
317
|
+
<span className="text-fm-tertiary text-xs">
|
|
318
|
+
16px
|
|
319
|
+
</span>
|
|
308
320
|
</div>
|
|
309
321
|
<div className="text-center">
|
|
310
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-5 w-5
|
|
311
|
-
<span className="text-
|
|
322
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
323
|
+
<span className="text-fm-tertiary text-xs">
|
|
324
|
+
20px
|
|
325
|
+
</span>
|
|
312
326
|
</div>
|
|
313
327
|
<div className="text-center">
|
|
314
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-6 w-6
|
|
315
|
-
<span className="text-
|
|
328
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
329
|
+
<span className="text-fm-tertiary text-xs">
|
|
330
|
+
24px
|
|
331
|
+
</span>
|
|
316
332
|
</div>
|
|
317
333
|
<div className="text-center">
|
|
318
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-8 w-8
|
|
319
|
-
<span className="text-
|
|
334
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
335
|
+
<span className="text-fm-tertiary text-xs">
|
|
336
|
+
32px
|
|
337
|
+
</span>
|
|
320
338
|
</div>
|
|
321
339
|
<div className="text-center">
|
|
322
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-12 w-12
|
|
323
|
-
<span className="text-
|
|
340
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
341
|
+
<span className="text-fm-tertiary text-xs">
|
|
342
|
+
48px
|
|
343
|
+
</span>
|
|
324
344
|
</div>
|
|
325
345
|
</div>
|
|
326
346
|
</div>
|
|
327
347
|
|
|
328
348
|
<div className="!space-y-4">
|
|
329
|
-
<h3 className="text-lg font-semibold
|
|
349
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
330
350
|
Code Example
|
|
331
351
|
</h3>
|
|
332
|
-
<div className="rounded-lg
|
|
333
|
-
<pre className="overflow-x-auto text-sm
|
|
352
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
353
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
334
354
|
{`// Small (16px)
|
|
335
355
|
<ChevronRightIcon className="h-4 w-4 " />
|
|
336
356
|
|
|
@@ -352,56 +372,56 @@ function NextButton() {
|
|
|
352
372
|
|
|
353
373
|
{/* Color Variations */}
|
|
354
374
|
<div className="!space-y-8">
|
|
355
|
-
<h2 className="text-center text-3xl font-bold
|
|
375
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
356
376
|
Color Variations
|
|
357
377
|
</h2>
|
|
358
378
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
359
379
|
<div className="!space-y-4">
|
|
360
|
-
<h3 className="text-lg font-semibold
|
|
380
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
361
381
|
Semantic Colors
|
|
362
382
|
</h3>
|
|
363
|
-
<div className="!space-y-4 rounded-lg border
|
|
383
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
364
384
|
<div className="flex items-center gap-4">
|
|
365
|
-
<ChevronRightIcon className="h-6 w-6
|
|
385
|
+
<ChevronRightIcon className="text-fm-icon-info h-6 w-6" />
|
|
366
386
|
<div>
|
|
367
|
-
<div className="text-sm font-medium
|
|
387
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
368
388
|
Primary
|
|
369
389
|
</div>
|
|
370
|
-
<div className="text-
|
|
371
|
-
text-
|
|
390
|
+
<div className="text-fm-tertiary text-xs">
|
|
391
|
+
text-fm-icon-info
|
|
372
392
|
</div>
|
|
373
393
|
</div>
|
|
374
394
|
</div>
|
|
375
395
|
<div className="flex items-center gap-4">
|
|
376
|
-
<ChevronRightIcon className="h-6 w-6
|
|
396
|
+
<ChevronRightIcon className="text-fm-placeholder h-6 w-6" />
|
|
377
397
|
<div>
|
|
378
|
-
<div className="text-sm font-medium
|
|
398
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
379
399
|
Secondary
|
|
380
400
|
</div>
|
|
381
|
-
<div className="text-
|
|
382
|
-
text-
|
|
401
|
+
<div className="text-fm-tertiary text-xs">
|
|
402
|
+
text-fm-placeholder
|
|
383
403
|
</div>
|
|
384
404
|
</div>
|
|
385
405
|
</div>
|
|
386
406
|
<div className="flex items-center gap-4">
|
|
387
|
-
<ChevronRightIcon className="h-6 w-6
|
|
407
|
+
<ChevronRightIcon className="text-fm-icon-info h-6 w-6" />
|
|
388
408
|
<div>
|
|
389
|
-
<div className="text-sm font-medium
|
|
409
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
390
410
|
Accent
|
|
391
411
|
</div>
|
|
392
|
-
<div className="text-
|
|
393
|
-
text-
|
|
412
|
+
<div className="text-fm-tertiary text-xs">
|
|
413
|
+
text-fm-icon-info
|
|
394
414
|
</div>
|
|
395
415
|
</div>
|
|
396
416
|
</div>
|
|
397
417
|
<div className="flex items-center gap-4">
|
|
398
|
-
<ChevronRightIcon className="h-6 w-6
|
|
418
|
+
<ChevronRightIcon className="text-fm-placeholder h-6 w-6" />
|
|
399
419
|
<div>
|
|
400
|
-
<div className="text-sm font-medium
|
|
420
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
401
421
|
Disabled
|
|
402
422
|
</div>
|
|
403
|
-
<div className="text-
|
|
404
|
-
text-
|
|
423
|
+
<div className="text-fm-tertiary text-xs">
|
|
424
|
+
text-fm-placeholder
|
|
405
425
|
</div>
|
|
406
426
|
</div>
|
|
407
427
|
</div>
|
|
@@ -409,11 +429,11 @@ function NextButton() {
|
|
|
409
429
|
</div>
|
|
410
430
|
|
|
411
431
|
<div className="!space-y-4">
|
|
412
|
-
<h3 className="text-lg font-semibold
|
|
432
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
413
433
|
Custom Colors
|
|
414
434
|
</h3>
|
|
415
|
-
<div className="rounded-lg
|
|
416
|
-
<pre className="overflow-x-auto text-sm
|
|
435
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
436
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
417
437
|
{`// Using Tailwind classes with
|
|
418
438
|
<ChevronRightIcon className="h-6 w-6 text-indigo-400 " />
|
|
419
439
|
<ChevronRightIcon className="h-6 w-6 text-cyan-500 " />
|
|
@@ -438,29 +458,29 @@ function NextButton() {
|
|
|
438
458
|
|
|
439
459
|
{/* Usage Examples */}
|
|
440
460
|
<div className="!space-y-8">
|
|
441
|
-
<h2 className="text-center text-3xl font-bold
|
|
461
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
442
462
|
Usage Examples
|
|
443
463
|
</h2>
|
|
444
464
|
|
|
445
465
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
446
466
|
{/* Next Button */}
|
|
447
467
|
<div className="!space-y-4">
|
|
448
|
-
<h3 className="text-lg font-semibold
|
|
468
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
449
469
|
Next Button
|
|
450
470
|
</h3>
|
|
451
471
|
<div className="!space-y-4">
|
|
452
472
|
<div className="flex items-center gap-4">
|
|
453
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
473
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
454
474
|
Continue
|
|
455
475
|
<ChevronRightIcon className="h-4 w-4" />
|
|
456
476
|
</button>
|
|
457
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
477
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
458
478
|
Next Page
|
|
459
479
|
<ChevronRightIcon className="h-4 w-4" />
|
|
460
480
|
</button>
|
|
461
481
|
</div>
|
|
462
|
-
<div className="rounded-lg
|
|
463
|
-
<pre className="overflow-x-auto text-sm
|
|
482
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
483
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
464
484
|
{`// Continue button
|
|
465
485
|
<button className="flex items-center gap-2 bg-indigo-500/10 border border-indigo-500/30 px-4 py-2 rounded-lg">
|
|
466
486
|
Continue
|
|
@@ -479,23 +499,25 @@ function NextButton() {
|
|
|
479
499
|
|
|
480
500
|
{/* Breadcrumb Navigation */}
|
|
481
501
|
<div className="!space-y-4">
|
|
482
|
-
<h3 className="text-lg font-semibold
|
|
502
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
483
503
|
Breadcrumb Navigation
|
|
484
504
|
</h3>
|
|
485
505
|
<div className="!space-y-4">
|
|
486
506
|
<nav className="flex items-center gap-2 text-sm">
|
|
487
|
-
<button className="text-
|
|
507
|
+
<button className="text-fm-icon-info hover:text-fm-icon-info">
|
|
488
508
|
Dashboard
|
|
489
509
|
</button>
|
|
490
|
-
<ChevronRightIcon className="h-3 w-3
|
|
491
|
-
<button className="text-
|
|
510
|
+
<ChevronRightIcon className="text-fm-placeholder h-3 w-3" />
|
|
511
|
+
<button className="text-fm-icon-info hover:text-fm-icon-info">
|
|
492
512
|
Projects
|
|
493
513
|
</button>
|
|
494
|
-
<ChevronRightIcon className="h-3 w-3
|
|
495
|
-
<span className="text-
|
|
514
|
+
<ChevronRightIcon className="text-fm-placeholder h-3 w-3" />
|
|
515
|
+
<span className="text-fm-icon-active">
|
|
516
|
+
Current Page
|
|
517
|
+
</span>
|
|
496
518
|
</nav>
|
|
497
|
-
<div className="rounded-lg
|
|
498
|
-
<pre className="overflow-x-auto text-sm
|
|
519
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
520
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
499
521
|
{`// Breadcrumb with separators
|
|
500
522
|
<nav className="flex items-center gap-2 text-sm">
|
|
501
523
|
<button className="text-indigo-400 hover:text-indigo-300">
|
|
@@ -515,31 +537,31 @@ function NextButton() {
|
|
|
515
537
|
|
|
516
538
|
{/* Pagination */}
|
|
517
539
|
<div className="!space-y-4">
|
|
518
|
-
<h3 className="text-lg font-semibold
|
|
540
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
519
541
|
Pagination Controls
|
|
520
542
|
</h3>
|
|
521
543
|
<div className="!space-y-4">
|
|
522
544
|
<div className="flex items-center gap-2">
|
|
523
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
545
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center justify-center rounded-lg border p-2">
|
|
524
546
|
<ChevronRightIcon className="h-4 w-4 rotate-180" />
|
|
525
547
|
</button>
|
|
526
548
|
<div className="flex items-center gap-1">
|
|
527
|
-
<button className="
|
|
549
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info rounded-lg border px-3 py-1">
|
|
528
550
|
1
|
|
529
551
|
</button>
|
|
530
|
-
<button className="rounded-lg px-3 py-1
|
|
552
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
531
553
|
2
|
|
532
554
|
</button>
|
|
533
|
-
<button className="rounded-lg px-3 py-1
|
|
555
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
534
556
|
3
|
|
535
557
|
</button>
|
|
536
558
|
</div>
|
|
537
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
559
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center justify-center rounded-lg border p-2">
|
|
538
560
|
<ChevronRightIcon className="h-4 w-4" />
|
|
539
561
|
</button>
|
|
540
562
|
</div>
|
|
541
|
-
<div className="rounded-lg
|
|
542
|
-
<pre className="overflow-x-auto text-sm
|
|
563
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
564
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
543
565
|
{`// Previous button (rotated right icon)
|
|
544
566
|
<button className="flex items-center justify-center bg-white/5 border border-white/20 p-2 rounded-lg">
|
|
545
567
|
<ChevronRightIcon className="h-4 w-4 rotate-180 " />
|
|
@@ -556,28 +578,28 @@ function NextButton() {
|
|
|
556
578
|
|
|
557
579
|
{/* Dropdown Menu */}
|
|
558
580
|
<div className="!space-y-4">
|
|
559
|
-
<h3 className="text-lg font-semibold
|
|
581
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
560
582
|
Dropdown & Menu Items
|
|
561
583
|
</h3>
|
|
562
584
|
<div className="!space-y-4">
|
|
563
|
-
<div className="w-64 rounded-lg border
|
|
585
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-64 rounded-lg border p-2">
|
|
564
586
|
<div className="space-y-1">
|
|
565
|
-
<button className="flex w-full items-center justify-between rounded px-3 py-2 text-left
|
|
587
|
+
<button className="text-fm-icon-active hover:bg-fm-surface-secondary flex w-full items-center justify-between rounded px-3 py-2 text-left">
|
|
566
588
|
<span>Account Settings</span>
|
|
567
|
-
<ChevronRightIcon className="h-4 w-4
|
|
589
|
+
<ChevronRightIcon className="text-fm-tertiary h-4 w-4" />
|
|
568
590
|
</button>
|
|
569
|
-
<button className="flex w-full items-center justify-between rounded px-3 py-2 text-left
|
|
591
|
+
<button className="text-fm-icon-active hover:bg-fm-surface-secondary flex w-full items-center justify-between rounded px-3 py-2 text-left">
|
|
570
592
|
<span>Privacy & Security</span>
|
|
571
|
-
<ChevronRightIcon className="h-4 w-4
|
|
593
|
+
<ChevronRightIcon className="text-fm-tertiary h-4 w-4" />
|
|
572
594
|
</button>
|
|
573
|
-
<button className="flex w-full items-center justify-between rounded px-3 py-2 text-left
|
|
595
|
+
<button className="text-fm-icon-active hover:bg-fm-surface-secondary flex w-full items-center justify-between rounded px-3 py-2 text-left">
|
|
574
596
|
<span>Notifications</span>
|
|
575
|
-
<ChevronRightIcon className="h-4 w-4
|
|
597
|
+
<ChevronRightIcon className="text-fm-tertiary h-4 w-4" />
|
|
576
598
|
</button>
|
|
577
599
|
</div>
|
|
578
600
|
</div>
|
|
579
|
-
<div className="rounded-lg
|
|
580
|
-
<pre className="overflow-x-auto text-sm
|
|
601
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
602
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
581
603
|
{`// Menu item with submenu indicator
|
|
582
604
|
<button className="flex w-full items-center justify-between rounded px-3 py-2 text-left hover:bg-white/10">
|
|
583
605
|
<span>Account Settings</span>
|
|
@@ -598,64 +620,64 @@ function NextButton() {
|
|
|
598
620
|
|
|
599
621
|
{/* Accessibility */}
|
|
600
622
|
<div className="!space-y-8">
|
|
601
|
-
<h2 className="text-center text-3xl font-bold
|
|
623
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
602
624
|
Accessibility Features
|
|
603
625
|
</h2>
|
|
604
626
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
605
|
-
<div className="!space-y-4 rounded-lg border
|
|
606
|
-
<h3 className="text-lg font-semibold
|
|
627
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
628
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
607
629
|
✅ Built-in Features
|
|
608
630
|
</h3>
|
|
609
|
-
<ul className="!space-y-2 text-sm
|
|
610
|
-
<li className="
|
|
631
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
632
|
+
<li className="text-fm-secondary!">
|
|
611
633
|
Uses Radix UI AccessibleIcon wrapper
|
|
612
634
|
</li>
|
|
613
|
-
<li className="
|
|
635
|
+
<li className="text-fm-secondary!">
|
|
614
636
|
Provides screen reader label "Chevron Right icon"
|
|
615
637
|
</li>
|
|
616
|
-
<li className="
|
|
638
|
+
<li className="text-fm-secondary!">
|
|
617
639
|
Supports keyboard navigation when interactive
|
|
618
640
|
</li>
|
|
619
|
-
<li className="
|
|
641
|
+
<li className="text-fm-secondary!">
|
|
620
642
|
Maintains proper color contrast ratios
|
|
621
643
|
</li>
|
|
622
|
-
<li className="
|
|
644
|
+
<li className="text-fm-secondary!">
|
|
623
645
|
Scales with user's font size preferences
|
|
624
646
|
</li>
|
|
625
647
|
</ul>
|
|
626
648
|
</div>
|
|
627
649
|
|
|
628
|
-
<div className="!space-y-4 rounded-lg border
|
|
629
|
-
<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-info! text-lg font-semibold">
|
|
630
652
|
💡 Best Practices
|
|
631
653
|
</h3>
|
|
632
|
-
<ul className="!space-y-2 text-sm
|
|
633
|
-
<li className="
|
|
654
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
655
|
+
<li className="text-fm-secondary!">
|
|
634
656
|
Use descriptive aria-labels for navigation buttons
|
|
635
657
|
</li>
|
|
636
|
-
<li className="
|
|
658
|
+
<li className="text-fm-secondary!">
|
|
637
659
|
Provide keyboard shortcuts for common actions
|
|
638
660
|
</li>
|
|
639
|
-
<li className="
|
|
661
|
+
<li className="text-fm-secondary!">
|
|
640
662
|
Ensure sufficient touch target size (44px minimum)
|
|
641
663
|
</li>
|
|
642
|
-
<li className="
|
|
664
|
+
<li className="text-fm-secondary!">
|
|
643
665
|
Add focus states for interactive elements
|
|
644
666
|
</li>
|
|
645
|
-
<li className="
|
|
667
|
+
<li className="text-fm-secondary!">
|
|
646
668
|
Consider disabled states when navigation unavailable
|
|
647
669
|
</li>
|
|
648
670
|
</ul>
|
|
649
671
|
</div>
|
|
650
672
|
</div>
|
|
651
673
|
|
|
652
|
-
<div className="rounded-lg border
|
|
653
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
674
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
675
|
+
<h3 className="text-fm-icon-info! mb-4 text-lg font-semibold">
|
|
654
676
|
Proper ARIA Implementation
|
|
655
677
|
</h3>
|
|
656
678
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
657
|
-
<div className="rounded-lg
|
|
658
|
-
<pre className="overflow-x-auto text-sm
|
|
679
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
680
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
659
681
|
{`// Navigation button with proper ARIA
|
|
660
682
|
<button
|
|
661
683
|
aria-label="Go to next page"
|
|
@@ -690,13 +712,13 @@ function NextButton() {
|
|
|
690
712
|
</pre>
|
|
691
713
|
</div>
|
|
692
714
|
<div className="!space-y-4">
|
|
693
|
-
<p className="text-
|
|
715
|
+
<p className="text-fm-secondary! text-sm">
|
|
694
716
|
Always provide context-appropriate ARIA labels for
|
|
695
717
|
navigation elements. The chevron direction should
|
|
696
718
|
indicate the intended navigation flow.
|
|
697
719
|
</p>
|
|
698
|
-
<div className="
|
|
699
|
-
<div className="flex items-center gap-2 text-sm
|
|
720
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
721
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
700
722
|
<ChevronRightIcon className="h-4 w-4" />
|
|
701
723
|
<span>
|
|
702
724
|
Consider the user's reading direction and expected
|
|
@@ -711,58 +733,60 @@ function NextButton() {
|
|
|
711
733
|
|
|
712
734
|
{/* Related Icons */}
|
|
713
735
|
<div className="!space-y-8">
|
|
714
|
-
<h2 className="text-center text-3xl font-bold
|
|
736
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
715
737
|
Related Icons
|
|
716
738
|
</h2>
|
|
717
739
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
718
|
-
<div className="!space-y-3 rounded-lg border
|
|
719
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
720
|
-
<span className="
|
|
740
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
741
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
742
|
+
<span className="text-fm-icon-active! !text-2xl">←</span>
|
|
721
743
|
</div>
|
|
722
744
|
<div>
|
|
723
|
-
<div className="font-medium
|
|
745
|
+
<div className="text-fm-icon-active font-medium">
|
|
724
746
|
ChevronLeftIcon
|
|
725
747
|
</div>
|
|
726
|
-
<div className="text-
|
|
748
|
+
<div className="text-fm-tertiary text-xs">
|
|
727
749
|
Left direction
|
|
728
750
|
</div>
|
|
729
751
|
</div>
|
|
730
752
|
</div>
|
|
731
|
-
<div className="!space-y-3 rounded-lg border
|
|
732
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
733
|
-
<span className="
|
|
753
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
754
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
755
|
+
<span className="text-fm-icon-active! !text-2xl">↑</span>
|
|
734
756
|
</div>
|
|
735
757
|
<div>
|
|
736
|
-
<div className="font-medium
|
|
758
|
+
<div className="text-fm-icon-active font-medium">
|
|
737
759
|
ChevronUpIcon
|
|
738
760
|
</div>
|
|
739
|
-
<div className="text-
|
|
761
|
+
<div className="text-fm-tertiary text-xs">
|
|
740
762
|
Upward direction
|
|
741
763
|
</div>
|
|
742
764
|
</div>
|
|
743
765
|
</div>
|
|
744
|
-
<div className="!space-y-3 rounded-lg border
|
|
745
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
746
|
-
<span className="
|
|
766
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
767
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
768
|
+
<span className="text-fm-icon-active! !text-2xl">↓</span>
|
|
747
769
|
</div>
|
|
748
770
|
<div>
|
|
749
|
-
<div className="font-medium
|
|
771
|
+
<div className="text-fm-icon-active font-medium">
|
|
750
772
|
ChevronDownIcon
|
|
751
773
|
</div>
|
|
752
|
-
<div className="text-
|
|
774
|
+
<div className="text-fm-tertiary text-xs">
|
|
753
775
|
Downward direction
|
|
754
776
|
</div>
|
|
755
777
|
</div>
|
|
756
778
|
</div>
|
|
757
|
-
<div className="!space-y-3 rounded-lg border
|
|
758
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
759
|
-
<span className="
|
|
779
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
780
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
781
|
+
<span className="text-fm-icon-active! !text-2xl">→</span>
|
|
760
782
|
</div>
|
|
761
783
|
<div>
|
|
762
|
-
<div className="font-medium
|
|
784
|
+
<div className="text-fm-icon-active font-medium">
|
|
763
785
|
ArrowRightIcon
|
|
764
786
|
</div>
|
|
765
|
-
<div className="text-
|
|
787
|
+
<div className="text-fm-tertiary text-xs">
|
|
788
|
+
Arrow variant
|
|
789
|
+
</div>
|
|
766
790
|
</div>
|
|
767
791
|
</div>
|
|
768
792
|
</div>
|
|
@@ -770,14 +794,14 @@ function NextButton() {
|
|
|
770
794
|
</div>
|
|
771
795
|
|
|
772
796
|
{/* Footer */}
|
|
773
|
-
<div className="border-
|
|
797
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
774
798
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
775
799
|
<div className="!space-y-4 text-center">
|
|
776
|
-
<p className="
|
|
800
|
+
<p className="text-fm-tertiary!">
|
|
777
801
|
ChevronRightIcon is part of the Aural UI icon library, built
|
|
778
802
|
with accessibility and intuitive navigation in mind.
|
|
779
803
|
</p>
|
|
780
|
-
<p className="text-
|
|
804
|
+
<p className="text-fm-placeholder! text-sm">
|
|
781
805
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
782
806
|
compatibility and follow WCAG guidelines.
|
|
783
807
|
</p>
|
|
@@ -826,8 +850,8 @@ const storyParameters = {
|
|
|
826
850
|
backgrounds: {
|
|
827
851
|
default: "dark",
|
|
828
852
|
values: [
|
|
829
|
-
{ name: "dark", value: "
|
|
830
|
-
{ name: "darker", value: "
|
|
853
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
854
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
831
855
|
],
|
|
832
856
|
},
|
|
833
857
|
}
|
|
@@ -836,12 +860,12 @@ export const Default: Story = {
|
|
|
836
860
|
args: {
|
|
837
861
|
width: 24,
|
|
838
862
|
height: 24,
|
|
839
|
-
className: "text-
|
|
863
|
+
className: "text-fm-icon-info ",
|
|
840
864
|
withAccessibility: true,
|
|
841
865
|
},
|
|
842
866
|
parameters: storyParameters,
|
|
843
867
|
render: (args) => (
|
|
844
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
868
|
+
<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">
|
|
845
869
|
<ChevronRightIcon {...args} />
|
|
846
870
|
</div>
|
|
847
871
|
),
|
|
@@ -858,30 +882,30 @@ export const SizeVariations: Story = {
|
|
|
858
882
|
},
|
|
859
883
|
},
|
|
860
884
|
render: () => (
|
|
861
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
885
|
+
<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">
|
|
862
886
|
<div className="text-center">
|
|
863
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-3 w-3
|
|
864
|
-
<span className="text-
|
|
887
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
888
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
865
889
|
</div>
|
|
866
890
|
<div className="text-center">
|
|
867
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-4 w-4
|
|
868
|
-
<span className="text-
|
|
891
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
892
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
869
893
|
</div>
|
|
870
894
|
<div className="text-center">
|
|
871
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-5 w-5
|
|
872
|
-
<span className="text-
|
|
895
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
896
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
873
897
|
</div>
|
|
874
898
|
<div className="text-center">
|
|
875
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-6 w-6
|
|
876
|
-
<span className="text-
|
|
899
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
900
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
877
901
|
</div>
|
|
878
902
|
<div className="text-center">
|
|
879
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-8 w-8
|
|
880
|
-
<span className="text-
|
|
903
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
904
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
881
905
|
</div>
|
|
882
906
|
<div className="text-center">
|
|
883
|
-
<ChevronRightIcon className="!mx-auto mb-2 h-12 w-12
|
|
884
|
-
<span className="text-
|
|
907
|
+
<ChevronRightIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
908
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
885
909
|
</div>
|
|
886
910
|
</div>
|
|
887
911
|
),
|
|
@@ -898,34 +922,34 @@ export const ColorVariations: Story = {
|
|
|
898
922
|
},
|
|
899
923
|
},
|
|
900
924
|
render: () => (
|
|
901
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
925
|
+
<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">
|
|
902
926
|
<div className="text-center">
|
|
903
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
904
|
-
<ChevronRightIcon className="h-8 w-8
|
|
927
|
+
<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">
|
|
928
|
+
<ChevronRightIcon className="text-fm-icon-info h-8 w-8" />
|
|
905
929
|
</div>
|
|
906
|
-
<div className="text-sm font-medium
|
|
907
|
-
<div className="text-
|
|
930
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
931
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
908
932
|
</div>
|
|
909
933
|
<div className="text-center">
|
|
910
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
911
|
-
<ChevronRightIcon className="h-8 w-8
|
|
934
|
+
<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">
|
|
935
|
+
<ChevronRightIcon className="text-fm-placeholder h-8 w-8" />
|
|
912
936
|
</div>
|
|
913
|
-
<div className="text-sm font-medium
|
|
914
|
-
<div className="text-
|
|
937
|
+
<div className="text-fm-icon-active text-sm font-medium">Secondary</div>
|
|
938
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
915
939
|
</div>
|
|
916
940
|
<div className="text-center">
|
|
917
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
918
|
-
<ChevronRightIcon className="h-8 w-8
|
|
941
|
+
<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">
|
|
942
|
+
<ChevronRightIcon className="text-fm-icon-info h-8 w-8" />
|
|
919
943
|
</div>
|
|
920
|
-
<div className="text-sm font-medium
|
|
921
|
-
<div className="text-
|
|
944
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
945
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
922
946
|
</div>
|
|
923
947
|
<div className="text-center">
|
|
924
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
925
|
-
<ChevronRightIcon className="h-8 w-8
|
|
948
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
949
|
+
<ChevronRightIcon className="text-fm-placeholder h-8 w-8" />
|
|
926
950
|
</div>
|
|
927
|
-
<div className="text-sm font-medium
|
|
928
|
-
<div className="text-
|
|
951
|
+
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
952
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
929
953
|
</div>
|
|
930
954
|
</div>
|
|
931
955
|
),
|
|
@@ -942,16 +966,16 @@ export const UsageExamples: Story = {
|
|
|
942
966
|
},
|
|
943
967
|
},
|
|
944
968
|
render: () => (
|
|
945
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
969
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
946
970
|
{/* Next Button */}
|
|
947
971
|
<div className="!space-y-2">
|
|
948
|
-
<h3 className="text-sm font-medium
|
|
972
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Next Button</h3>
|
|
949
973
|
<div className="flex items-center gap-4">
|
|
950
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
974
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
951
975
|
Continue
|
|
952
976
|
<ChevronRightIcon className="h-4 w-4" />
|
|
953
977
|
</button>
|
|
954
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
978
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
955
979
|
Next Page
|
|
956
980
|
<ChevronRightIcon className="h-4 w-4" />
|
|
957
981
|
</button>
|
|
@@ -960,23 +984,25 @@ export const UsageExamples: Story = {
|
|
|
960
984
|
|
|
961
985
|
{/* Pagination */}
|
|
962
986
|
<div className="!space-y-2">
|
|
963
|
-
<h3 className="text-sm font-medium
|
|
987
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
988
|
+
Pagination Controls
|
|
989
|
+
</h3>
|
|
964
990
|
<div className="flex items-center gap-2">
|
|
965
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
991
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center justify-center rounded-lg border p-2">
|
|
966
992
|
<ChevronRightIcon className="h-4 w-4 rotate-180" />
|
|
967
993
|
</button>
|
|
968
994
|
<div className="flex items-center gap-1">
|
|
969
|
-
<button className="
|
|
995
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info rounded-lg border px-3 py-1">
|
|
970
996
|
1
|
|
971
997
|
</button>
|
|
972
|
-
<button className="rounded-lg px-3 py-1
|
|
998
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
973
999
|
2
|
|
974
1000
|
</button>
|
|
975
|
-
<button className="rounded-lg px-3 py-1
|
|
1001
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
976
1002
|
3
|
|
977
1003
|
</button>
|
|
978
1004
|
</div>
|
|
979
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
1005
|
+
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center justify-center rounded-lg border p-2">
|
|
980
1006
|
<ChevronRightIcon className="h-4 w-4" />
|
|
981
1007
|
</button>
|
|
982
1008
|
</div>
|
|
@@ -984,19 +1010,19 @@ export const UsageExamples: Story = {
|
|
|
984
1010
|
|
|
985
1011
|
{/* Breadcrumb */}
|
|
986
1012
|
<div className="!space-y-2">
|
|
987
|
-
<h3 className="text-sm font-medium
|
|
1013
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
988
1014
|
Breadcrumb Navigation
|
|
989
1015
|
</h3>
|
|
990
1016
|
<nav className="flex items-center gap-2 text-sm">
|
|
991
|
-
<button className="text-
|
|
1017
|
+
<button className="text-fm-icon-info hover:text-fm-icon-info">
|
|
992
1018
|
Dashboard
|
|
993
1019
|
</button>
|
|
994
|
-
<ChevronRightIcon className="h-3 w-3
|
|
995
|
-
<button className="text-
|
|
1020
|
+
<ChevronRightIcon className="text-fm-placeholder h-3 w-3" />
|
|
1021
|
+
<button className="text-fm-icon-info hover:text-fm-icon-info">
|
|
996
1022
|
Projects
|
|
997
1023
|
</button>
|
|
998
|
-
<ChevronRightIcon className="h-3 w-3
|
|
999
|
-
<span className="text-
|
|
1024
|
+
<ChevronRightIcon className="text-fm-placeholder h-3 w-3" />
|
|
1025
|
+
<span className="text-fm-icon-active">Current Page</span>
|
|
1000
1026
|
</nav>
|
|
1001
1027
|
</div>
|
|
1002
1028
|
</div>
|
|
@@ -1016,12 +1042,12 @@ export const Playground: Story = {
|
|
|
1016
1042
|
args: {
|
|
1017
1043
|
width: 32,
|
|
1018
1044
|
height: 32,
|
|
1019
|
-
className: "text-
|
|
1045
|
+
className: "text-fm-icon-info ",
|
|
1020
1046
|
strokeWidth: 1.5,
|
|
1021
1047
|
},
|
|
1022
1048
|
render: (args) => (
|
|
1023
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1024
|
-
<div className="rounded-lg border
|
|
1049
|
+
<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">
|
|
1050
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1025
1051
|
<ChevronRightIcon {...args} />
|
|
1026
1052
|
</div>
|
|
1027
1053
|
</div>
|