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 ChevronLeftIcon> = {
|
|
|
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 ChevronLeftIcon> = {
|
|
|
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-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
87
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
88
|
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
90
|
-
<ChevronLeftIcon className="h-12 w-12
|
|
89
|
+
<div className="border-fm-secondary-500/30 from-fm-secondary-500/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
+
<ChevronLeftIcon className="text-fm-secondary-600 h-12 w-12" />
|
|
91
91
|
</div>
|
|
92
92
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
93
|
ChevronLeftIcon
|
|
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 left icon for navigation, back buttons,
|
|
97
97
|
and leftward direction indicators. Built with accessibility
|
|
98
98
|
in mind using Radix UI's AccessibleIcon wrapper.
|
|
@@ -101,28 +101,28 @@ const meta: Meta<typeof ChevronLeftIcon> = {
|
|
|
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-secondary-600 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-secondary-600 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
|
Leftward movement
|
|
127
127
|
</div>
|
|
128
128
|
</div>
|
|
@@ -135,16 +135,16 @@ const meta: Meta<typeof ChevronLeftIcon> = {
|
|
|
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-secondary-600! 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 { ChevronLeftIcon } from "@icons/chevron-left-icon"
|
|
149
149
|
|
|
150
150
|
function BackButton() {
|
|
@@ -160,13 +160,13 @@ function BackButton() {
|
|
|
160
160
|
</div>
|
|
161
161
|
|
|
162
162
|
<div className="!space-y-4">
|
|
163
|
-
<h3 className="text-xl font-semibold
|
|
163
|
+
<h3 className="text-fm-secondary-600! 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
|
-
<ChevronLeftIcon className="h-4 w-4
|
|
169
|
-
<span className="text-
|
|
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-secondary-500/20 bg-fm-secondary-500/10 hover:bg-fm-secondary-500/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
168
|
+
<ChevronLeftIcon className="text-fm-secondary-600 h-4 w-4" />
|
|
169
|
+
<span className="text-fm-icon-active">Go Back</span>
|
|
170
170
|
</button>
|
|
171
171
|
</div>
|
|
172
172
|
</div>
|
|
@@ -175,108 +175,116 @@ function BackButton() {
|
|
|
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-secondary-600! 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-secondary-600! 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-secondary-600! 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-secondary-600! 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-secondary-600! 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 BackButton() {
|
|
|
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-secondary-600! 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
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-3 w-3
|
|
303
|
-
<span className="text-
|
|
310
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !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
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-4 w-4
|
|
307
|
-
<span className="text-
|
|
316
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !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
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-5 w-5
|
|
311
|
-
<span className="text-
|
|
322
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !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
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-6 w-6
|
|
315
|
-
<span className="text-
|
|
328
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !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
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-8 w-8
|
|
319
|
-
<span className="text-
|
|
334
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !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
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-12 w-12
|
|
323
|
-
<span className="text-
|
|
340
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !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-secondary-600! 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
|
<ChevronLeftIcon className="h-4 w-4 " />
|
|
336
356
|
|
|
@@ -352,56 +372,56 @@ function BackButton() {
|
|
|
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-secondary-600! 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
|
-
<ChevronLeftIcon className="h-6 w-6
|
|
385
|
+
<ChevronLeftIcon className="text-fm-secondary-600 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-secondary-600
|
|
372
392
|
</div>
|
|
373
393
|
</div>
|
|
374
394
|
</div>
|
|
375
395
|
<div className="flex items-center gap-4">
|
|
376
|
-
<ChevronLeftIcon className="h-6 w-6
|
|
396
|
+
<ChevronLeftIcon 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
|
-
<ChevronLeftIcon className="h-6 w-6
|
|
407
|
+
<ChevronLeftIcon className="text-fm-secondary-600 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-secondary-600
|
|
394
414
|
</div>
|
|
395
415
|
</div>
|
|
396
416
|
</div>
|
|
397
417
|
<div className="flex items-center gap-4">
|
|
398
|
-
<ChevronLeftIcon className="h-6 w-6
|
|
418
|
+
<ChevronLeftIcon 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 BackButton() {
|
|
|
409
429
|
</div>
|
|
410
430
|
|
|
411
431
|
<div className="!space-y-4">
|
|
412
|
-
<h3 className="text-lg font-semibold
|
|
432
|
+
<h3 className="text-fm-secondary-600! 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
|
<ChevronLeftIcon className="h-6 w-6 text-purple-400 " />
|
|
419
439
|
<ChevronLeftIcon className="h-6 w-6 text-pink-500 " />
|
|
@@ -438,29 +458,29 @@ function BackButton() {
|
|
|
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
|
{/* Back Button */}
|
|
447
467
|
<div className="!space-y-4">
|
|
448
|
-
<h3 className="text-lg font-semibold
|
|
468
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
449
469
|
Back 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-secondary-500/30 bg-fm-secondary-500/10 text-fm-secondary-600 hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
454
474
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
455
475
|
Back
|
|
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
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
459
479
|
Previous Page
|
|
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
|
{`// Back button
|
|
465
485
|
<button className="flex items-center gap-2 bg-purple-500/10 border border-purple-500/30 px-4 py-2 rounded-lg">
|
|
466
486
|
<ChevronLeftIcon className="h-4 w-4 " />
|
|
@@ -479,25 +499,27 @@ function BackButton() {
|
|
|
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-secondary-600! 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="flex items-center gap-1
|
|
507
|
+
<button className="text-fm-secondary-600 hover:text-fm-secondary-600 flex items-center gap-1">
|
|
488
508
|
<ChevronLeftIcon className="h-3 w-3" />
|
|
489
509
|
<span>Dashboard</span>
|
|
490
510
|
</button>
|
|
491
|
-
<span className="text-
|
|
492
|
-
<button className="flex items-center gap-1
|
|
511
|
+
<span className="text-fm-placeholder">/</span>
|
|
512
|
+
<button className="text-fm-secondary-600 hover:text-fm-secondary-600 flex items-center gap-1">
|
|
493
513
|
<ChevronLeftIcon className="h-3 w-3" />
|
|
494
514
|
<span>Projects</span>
|
|
495
515
|
</button>
|
|
496
|
-
<span className="text-
|
|
497
|
-
<span className="text-
|
|
516
|
+
<span className="text-fm-placeholder">/</span>
|
|
517
|
+
<span className="text-fm-icon-active">
|
|
518
|
+
Current Page
|
|
519
|
+
</span>
|
|
498
520
|
</nav>
|
|
499
|
-
<div className="rounded-lg
|
|
500
|
-
<pre className="overflow-x-auto text-sm
|
|
521
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
522
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
501
523
|
{`// Breadcrumb with back navigation
|
|
502
524
|
<nav className="flex items-center gap-2 text-sm">
|
|
503
525
|
<button className="flex items-center gap-1 text-purple-400 hover:text-purple-300">
|
|
@@ -519,31 +541,31 @@ function BackButton() {
|
|
|
519
541
|
|
|
520
542
|
{/* Pagination */}
|
|
521
543
|
<div className="!space-y-4">
|
|
522
|
-
<h3 className="text-lg font-semibold
|
|
544
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
523
545
|
Pagination Controls
|
|
524
546
|
</h3>
|
|
525
547
|
<div className="!space-y-4">
|
|
526
548
|
<div className="flex items-center gap-2">
|
|
527
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
549
|
+
<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">
|
|
528
550
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
529
551
|
</button>
|
|
530
552
|
<div className="flex items-center gap-1">
|
|
531
|
-
<button className="
|
|
553
|
+
<button className="border-fm-secondary-500/30 bg-fm-secondary-500/20 text-fm-secondary-600 rounded-lg border px-3 py-1">
|
|
532
554
|
1
|
|
533
555
|
</button>
|
|
534
|
-
<button className="rounded-lg px-3 py-1
|
|
556
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
535
557
|
2
|
|
536
558
|
</button>
|
|
537
|
-
<button className="rounded-lg px-3 py-1
|
|
559
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
538
560
|
3
|
|
539
561
|
</button>
|
|
540
562
|
</div>
|
|
541
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
563
|
+
<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">
|
|
542
564
|
<ChevronLeftIcon className="h-4 w-4 rotate-180" />
|
|
543
565
|
</button>
|
|
544
566
|
</div>
|
|
545
|
-
<div className="rounded-lg
|
|
546
|
-
<pre className="overflow-x-auto text-sm
|
|
567
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
568
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
547
569
|
{`// Previous button
|
|
548
570
|
<button className="flex items-center justify-center bg-white/5 border border-white/20 p-2 rounded-lg">
|
|
549
571
|
<ChevronLeftIcon className="h-4 w-4 " />
|
|
@@ -560,35 +582,35 @@ function BackButton() {
|
|
|
560
582
|
|
|
561
583
|
{/* Sidebar Toggle */}
|
|
562
584
|
<div className="!space-y-4">
|
|
563
|
-
<h3 className="text-lg font-semibold
|
|
585
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
564
586
|
Sidebar Toggle
|
|
565
587
|
</h3>
|
|
566
588
|
<div className="!space-y-4">
|
|
567
589
|
<div className="flex items-center gap-4">
|
|
568
590
|
<div className="relative">
|
|
569
|
-
<div className="h-24 w-64 rounded-lg border
|
|
591
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary h-24 w-64 rounded-lg border p-4">
|
|
570
592
|
<div className="mb-2 flex items-center justify-between">
|
|
571
|
-
<span className="text-sm font-medium
|
|
593
|
+
<span className="text-fm-icon-active text-sm font-medium">
|
|
572
594
|
Sidebar
|
|
573
595
|
</span>
|
|
574
|
-
<button className="
|
|
596
|
+
<button className="text-fm-secondary-600 hover:bg-fm-surface-secondary rounded p-1">
|
|
575
597
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
576
598
|
</button>
|
|
577
599
|
</div>
|
|
578
600
|
<div className="!space-y-1">
|
|
579
|
-
<div className="h-2 w-20 rounded
|
|
580
|
-
<div className="h-2 w-16 rounded
|
|
601
|
+
<div className="bg-fm-surface-secondary h-2 w-20 rounded"></div>
|
|
602
|
+
<div className="bg-fm-surface-secondary h-2 w-16 rounded"></div>
|
|
581
603
|
</div>
|
|
582
604
|
</div>
|
|
583
605
|
</div>
|
|
584
|
-
<div className="h-24 w-32 rounded-lg border
|
|
585
|
-
<button className="
|
|
606
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary h-24 w-32 rounded-lg border p-4">
|
|
607
|
+
<button className="text-fm-secondary-600 hover:bg-fm-surface-secondary rounded p-1">
|
|
586
608
|
<ChevronLeftIcon className="h-4 w-4 rotate-180" />
|
|
587
609
|
</button>
|
|
588
610
|
</div>
|
|
589
611
|
</div>
|
|
590
|
-
<div className="rounded-lg
|
|
591
|
-
<pre className="overflow-x-auto text-sm
|
|
612
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
613
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
592
614
|
{`// Collapse sidebar
|
|
593
615
|
<button className="rounded p-1 text-purple-400 hover:bg-white/10">
|
|
594
616
|
<ChevronLeftIcon className="h-4 w-4 " />
|
|
@@ -607,64 +629,64 @@ function BackButton() {
|
|
|
607
629
|
|
|
608
630
|
{/* Accessibility */}
|
|
609
631
|
<div className="!space-y-8">
|
|
610
|
-
<h2 className="text-center text-3xl font-bold
|
|
632
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
611
633
|
Accessibility Features
|
|
612
634
|
</h2>
|
|
613
635
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
614
|
-
<div className="!space-y-4 rounded-lg border
|
|
615
|
-
<h3 className="text-lg font-semibold
|
|
636
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
637
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
616
638
|
✅ Built-in Features
|
|
617
639
|
</h3>
|
|
618
|
-
<ul className="!space-y-2 text-sm
|
|
619
|
-
<li className="
|
|
640
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
641
|
+
<li className="text-fm-secondary!">
|
|
620
642
|
Uses Radix UI AccessibleIcon wrapper
|
|
621
643
|
</li>
|
|
622
|
-
<li className="
|
|
644
|
+
<li className="text-fm-secondary!">
|
|
623
645
|
Provides screen reader label "Chevron Left icon"
|
|
624
646
|
</li>
|
|
625
|
-
<li className="
|
|
647
|
+
<li className="text-fm-secondary!">
|
|
626
648
|
Supports keyboard navigation when interactive
|
|
627
649
|
</li>
|
|
628
|
-
<li className="
|
|
650
|
+
<li className="text-fm-secondary!">
|
|
629
651
|
Maintains proper color contrast ratios
|
|
630
652
|
</li>
|
|
631
|
-
<li className="
|
|
653
|
+
<li className="text-fm-secondary!">
|
|
632
654
|
Scales with user's font size preferences
|
|
633
655
|
</li>
|
|
634
656
|
</ul>
|
|
635
657
|
</div>
|
|
636
658
|
|
|
637
|
-
<div className="!space-y-4 rounded-lg border
|
|
638
|
-
<h3 className="text-lg font-semibold
|
|
659
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
660
|
+
<h3 className="text-fm-secondary-600! text-lg font-semibold">
|
|
639
661
|
💡 Best Practices
|
|
640
662
|
</h3>
|
|
641
|
-
<ul className="!space-y-2 text-sm
|
|
642
|
-
<li className="
|
|
663
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
664
|
+
<li className="text-fm-secondary!">
|
|
643
665
|
Use descriptive aria-labels for navigation buttons
|
|
644
666
|
</li>
|
|
645
|
-
<li className="
|
|
667
|
+
<li className="text-fm-secondary!">
|
|
646
668
|
Provide keyboard shortcuts for common actions
|
|
647
669
|
</li>
|
|
648
|
-
<li className="
|
|
670
|
+
<li className="text-fm-secondary!">
|
|
649
671
|
Ensure sufficient touch target size (44px minimum)
|
|
650
672
|
</li>
|
|
651
|
-
<li className="
|
|
673
|
+
<li className="text-fm-secondary!">
|
|
652
674
|
Add focus states for interactive elements
|
|
653
675
|
</li>
|
|
654
|
-
<li className="
|
|
676
|
+
<li className="text-fm-secondary!">
|
|
655
677
|
Consider disabled states when navigation unavailable
|
|
656
678
|
</li>
|
|
657
679
|
</ul>
|
|
658
680
|
</div>
|
|
659
681
|
</div>
|
|
660
682
|
|
|
661
|
-
<div className="rounded-lg border
|
|
662
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
683
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
684
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
663
685
|
Proper ARIA Implementation
|
|
664
686
|
</h3>
|
|
665
687
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
666
|
-
<div className="rounded-lg
|
|
667
|
-
<pre className="overflow-x-auto text-sm
|
|
688
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
689
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
668
690
|
{`// Navigation button with proper ARIA
|
|
669
691
|
<button
|
|
670
692
|
aria-label="Go back to previous page"
|
|
@@ -697,13 +719,13 @@ function BackButton() {
|
|
|
697
719
|
</pre>
|
|
698
720
|
</div>
|
|
699
721
|
<div className="!space-y-4">
|
|
700
|
-
<p className="text-
|
|
722
|
+
<p className="text-fm-secondary! text-sm">
|
|
701
723
|
Always provide context-appropriate ARIA labels for
|
|
702
724
|
navigation elements. The chevron direction should match
|
|
703
725
|
the action being performed.
|
|
704
726
|
</p>
|
|
705
|
-
<div className="
|
|
706
|
-
<div className="flex items-center gap-2 text-sm
|
|
727
|
+
<div className="border-fm-secondary-500/20 bg-fm-secondary-500/10 rounded-lg border p-4">
|
|
728
|
+
<div className="text-fm-secondary-600 flex items-center gap-2 text-sm">
|
|
707
729
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
708
730
|
<span>
|
|
709
731
|
Consider the user's mental model of navigation
|
|
@@ -717,58 +739,60 @@ function BackButton() {
|
|
|
717
739
|
|
|
718
740
|
{/* Related Icons */}
|
|
719
741
|
<div className="!space-y-8">
|
|
720
|
-
<h2 className="text-center text-3xl font-bold
|
|
742
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
721
743
|
Related Icons
|
|
722
744
|
</h2>
|
|
723
745
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
724
|
-
<div className="!space-y-3 rounded-lg border
|
|
725
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
726
|
-
<span className="
|
|
746
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
747
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
748
|
+
<span className="text-fm-icon-active! !text-2xl">→</span>
|
|
727
749
|
</div>
|
|
728
750
|
<div>
|
|
729
|
-
<div className="font-medium
|
|
751
|
+
<div className="text-fm-icon-active font-medium">
|
|
730
752
|
ChevronRightIcon
|
|
731
753
|
</div>
|
|
732
|
-
<div className="text-
|
|
754
|
+
<div className="text-fm-tertiary text-xs">
|
|
733
755
|
Right direction
|
|
734
756
|
</div>
|
|
735
757
|
</div>
|
|
736
758
|
</div>
|
|
737
|
-
<div className="!space-y-3 rounded-lg border
|
|
738
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
739
|
-
<span className="
|
|
759
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
760
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
761
|
+
<span className="text-fm-icon-active! !text-2xl">↑</span>
|
|
740
762
|
</div>
|
|
741
763
|
<div>
|
|
742
|
-
<div className="font-medium
|
|
764
|
+
<div className="text-fm-icon-active font-medium">
|
|
743
765
|
ChevronUpIcon
|
|
744
766
|
</div>
|
|
745
|
-
<div className="text-
|
|
767
|
+
<div className="text-fm-tertiary text-xs">
|
|
746
768
|
Upward direction
|
|
747
769
|
</div>
|
|
748
770
|
</div>
|
|
749
771
|
</div>
|
|
750
|
-
<div className="!space-y-3 rounded-lg border
|
|
751
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
752
|
-
<span className="
|
|
772
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
773
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
774
|
+
<span className="text-fm-icon-active! !text-2xl">↓</span>
|
|
753
775
|
</div>
|
|
754
776
|
<div>
|
|
755
|
-
<div className="font-medium
|
|
777
|
+
<div className="text-fm-icon-active font-medium">
|
|
756
778
|
ChevronDownIcon
|
|
757
779
|
</div>
|
|
758
|
-
<div className="text-
|
|
780
|
+
<div className="text-fm-tertiary text-xs">
|
|
759
781
|
Downward direction
|
|
760
782
|
</div>
|
|
761
783
|
</div>
|
|
762
784
|
</div>
|
|
763
|
-
<div className="!space-y-3 rounded-lg border
|
|
764
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
765
|
-
<span className="
|
|
785
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
786
|
+
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
787
|
+
<span className="text-fm-icon-active! !text-2xl">←</span>
|
|
766
788
|
</div>
|
|
767
789
|
<div>
|
|
768
|
-
<div className="font-medium
|
|
790
|
+
<div className="text-fm-icon-active font-medium">
|
|
769
791
|
ArrowLeftIcon
|
|
770
792
|
</div>
|
|
771
|
-
<div className="text-
|
|
793
|
+
<div className="text-fm-tertiary text-xs">
|
|
794
|
+
Arrow variant
|
|
795
|
+
</div>
|
|
772
796
|
</div>
|
|
773
797
|
</div>
|
|
774
798
|
</div>
|
|
@@ -776,14 +800,14 @@ function BackButton() {
|
|
|
776
800
|
</div>
|
|
777
801
|
|
|
778
802
|
{/* Footer */}
|
|
779
|
-
<div className="border-
|
|
803
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
780
804
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
781
805
|
<div className="!space-y-4 text-center">
|
|
782
|
-
<p className="
|
|
806
|
+
<p className="text-fm-tertiary!">
|
|
783
807
|
ChevronLeftIcon is part of the Aural UI icon library, built
|
|
784
808
|
with accessibility and intuitive navigation in mind.
|
|
785
809
|
</p>
|
|
786
|
-
<p className="text-
|
|
810
|
+
<p className="text-fm-placeholder! text-sm">
|
|
787
811
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
788
812
|
compatibility and follow WCAG guidelines.
|
|
789
813
|
</p>
|
|
@@ -832,8 +856,8 @@ const storyParameters = {
|
|
|
832
856
|
backgrounds: {
|
|
833
857
|
default: "dark",
|
|
834
858
|
values: [
|
|
835
|
-
{ name: "dark", value: "
|
|
836
|
-
{ name: "darker", value: "
|
|
859
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
860
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
837
861
|
],
|
|
838
862
|
},
|
|
839
863
|
}
|
|
@@ -842,12 +866,12 @@ export const Default: Story = {
|
|
|
842
866
|
args: {
|
|
843
867
|
width: 24,
|
|
844
868
|
height: 24,
|
|
845
|
-
className: "text-
|
|
869
|
+
className: "text-fm-secondary-600 ",
|
|
846
870
|
withAccessibility: true,
|
|
847
871
|
},
|
|
848
872
|
parameters: storyParameters,
|
|
849
873
|
render: (args) => (
|
|
850
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
874
|
+
<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">
|
|
851
875
|
<ChevronLeftIcon {...args} />
|
|
852
876
|
</div>
|
|
853
877
|
),
|
|
@@ -864,30 +888,30 @@ export const SizeVariations: Story = {
|
|
|
864
888
|
},
|
|
865
889
|
},
|
|
866
890
|
render: () => (
|
|
867
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
891
|
+
<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">
|
|
868
892
|
<div className="text-center">
|
|
869
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-3 w-3
|
|
870
|
-
<span className="text-
|
|
893
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
|
|
894
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
871
895
|
</div>
|
|
872
896
|
<div className="text-center">
|
|
873
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-4 w-4
|
|
874
|
-
<span className="text-
|
|
897
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
|
|
898
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
875
899
|
</div>
|
|
876
900
|
<div className="text-center">
|
|
877
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-5 w-5
|
|
878
|
-
<span className="text-
|
|
901
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
|
|
902
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
879
903
|
</div>
|
|
880
904
|
<div className="text-center">
|
|
881
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-6 w-6
|
|
882
|
-
<span className="text-
|
|
905
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
906
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
883
907
|
</div>
|
|
884
908
|
<div className="text-center">
|
|
885
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-8 w-8
|
|
886
|
-
<span className="text-
|
|
909
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
|
|
910
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
887
911
|
</div>
|
|
888
912
|
<div className="text-center">
|
|
889
|
-
<ChevronLeftIcon className="!mx-auto mb-2 h-12 w-12
|
|
890
|
-
<span className="text-
|
|
913
|
+
<ChevronLeftIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
|
|
914
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
891
915
|
</div>
|
|
892
916
|
</div>
|
|
893
917
|
),
|
|
@@ -904,34 +928,38 @@ export const ColorVariations: Story = {
|
|
|
904
928
|
},
|
|
905
929
|
},
|
|
906
930
|
render: () => (
|
|
907
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
931
|
+
<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">
|
|
908
932
|
<div className="text-center">
|
|
909
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
910
|
-
<ChevronLeftIcon className="h-8 w-8
|
|
933
|
+
<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">
|
|
934
|
+
<ChevronLeftIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
935
|
+
</div>
|
|
936
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
937
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
938
|
+
text-fm-secondary-600
|
|
911
939
|
</div>
|
|
912
|
-
<div className="text-sm font-medium text-white">Primary</div>
|
|
913
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
914
940
|
</div>
|
|
915
941
|
<div className="text-center">
|
|
916
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
917
|
-
<ChevronLeftIcon className="h-8 w-8
|
|
942
|
+
<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">
|
|
943
|
+
<ChevronLeftIcon className="text-fm-placeholder h-8 w-8" />
|
|
918
944
|
</div>
|
|
919
|
-
<div className="text-sm font-medium
|
|
920
|
-
<div className="text-
|
|
945
|
+
<div className="text-fm-icon-active text-sm font-medium">Secondary</div>
|
|
946
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
921
947
|
</div>
|
|
922
948
|
<div className="text-center">
|
|
923
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
924
|
-
<ChevronLeftIcon className="h-8 w-8
|
|
949
|
+
<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">
|
|
950
|
+
<ChevronLeftIcon className="text-fm-secondary-600 h-8 w-8" />
|
|
951
|
+
</div>
|
|
952
|
+
<div className="text-fm-icon-active text-sm font-medium">Accent</div>
|
|
953
|
+
<div className="text-fm-secondary-600 text-xs">
|
|
954
|
+
text-fm-secondary-600
|
|
925
955
|
</div>
|
|
926
|
-
<div className="text-sm font-medium text-white">Accent</div>
|
|
927
|
-
<div className="text-xs text-pink-400">text-pink-400</div>
|
|
928
956
|
</div>
|
|
929
957
|
<div className="text-center">
|
|
930
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
931
|
-
<ChevronLeftIcon className="h-8 w-8
|
|
958
|
+
<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">
|
|
959
|
+
<ChevronLeftIcon className="text-fm-placeholder h-8 w-8" />
|
|
932
960
|
</div>
|
|
933
|
-
<div className="text-sm font-medium
|
|
934
|
-
<div className="text-
|
|
961
|
+
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
962
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
935
963
|
</div>
|
|
936
964
|
</div>
|
|
937
965
|
),
|
|
@@ -948,16 +976,16 @@ export const UsageExamples: Story = {
|
|
|
948
976
|
},
|
|
949
977
|
},
|
|
950
978
|
render: () => (
|
|
951
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-
|
|
979
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
952
980
|
{/* Back Button */}
|
|
953
981
|
<div className="!space-y-2">
|
|
954
|
-
<h3 className="text-sm font-medium
|
|
982
|
+
<h3 className="text-fm-icon-active text-sm font-medium">Back Button</h3>
|
|
955
983
|
<div className="flex items-center gap-4">
|
|
956
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
984
|
+
<button className="border-fm-secondary-500/30 bg-fm-secondary-500/10 text-fm-secondary-600 hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
957
985
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
958
986
|
Back
|
|
959
987
|
</button>
|
|
960
|
-
<button className="flex items-center gap-2 rounded-lg border
|
|
988
|
+
<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">
|
|
961
989
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
962
990
|
Previous Page
|
|
963
991
|
</button>
|
|
@@ -966,23 +994,25 @@ export const UsageExamples: Story = {
|
|
|
966
994
|
|
|
967
995
|
{/* Pagination */}
|
|
968
996
|
<div className="!space-y-2">
|
|
969
|
-
<h3 className="text-sm font-medium
|
|
997
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
998
|
+
Pagination Controls
|
|
999
|
+
</h3>
|
|
970
1000
|
<div className="flex items-center gap-2">
|
|
971
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
1001
|
+
<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">
|
|
972
1002
|
<ChevronLeftIcon className="h-4 w-4" />
|
|
973
1003
|
</button>
|
|
974
1004
|
<div className="flex items-center gap-1">
|
|
975
|
-
<button className="
|
|
1005
|
+
<button className="border-fm-secondary-500/30 bg-fm-secondary-500/20 text-fm-secondary-600 rounded-lg border px-3 py-1">
|
|
976
1006
|
1
|
|
977
1007
|
</button>
|
|
978
|
-
<button className="rounded-lg px-3 py-1
|
|
1008
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
979
1009
|
2
|
|
980
1010
|
</button>
|
|
981
|
-
<button className="rounded-lg px-3 py-1
|
|
1011
|
+
<button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded-lg px-3 py-1">
|
|
982
1012
|
3
|
|
983
1013
|
</button>
|
|
984
1014
|
</div>
|
|
985
|
-
<button className="flex items-center justify-center rounded-lg border
|
|
1015
|
+
<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">
|
|
986
1016
|
<ChevronLeftIcon className="h-4 w-4 rotate-180" />
|
|
987
1017
|
</button>
|
|
988
1018
|
</div>
|
|
@@ -990,21 +1020,21 @@ export const UsageExamples: Story = {
|
|
|
990
1020
|
|
|
991
1021
|
{/* Breadcrumb */}
|
|
992
1022
|
<div className="!space-y-2">
|
|
993
|
-
<h3 className="text-sm font-medium
|
|
1023
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
994
1024
|
Breadcrumb Navigation
|
|
995
1025
|
</h3>
|
|
996
1026
|
<nav className="flex items-center gap-2 text-sm">
|
|
997
|
-
<button className="flex items-center gap-1
|
|
1027
|
+
<button className="text-fm-secondary-600 hover:text-fm-secondary-600 flex items-center gap-1">
|
|
998
1028
|
<ChevronLeftIcon className="h-3 w-3" />
|
|
999
1029
|
<span>Dashboard</span>
|
|
1000
1030
|
</button>
|
|
1001
|
-
<span className="text-
|
|
1002
|
-
<button className="flex items-center gap-1
|
|
1031
|
+
<span className="text-fm-placeholder">/</span>
|
|
1032
|
+
<button className="text-fm-secondary-600 hover:text-fm-secondary-600 flex items-center gap-1">
|
|
1003
1033
|
<ChevronLeftIcon className="h-3 w-3" />
|
|
1004
1034
|
<span>Projects</span>
|
|
1005
1035
|
</button>
|
|
1006
|
-
<span className="text-
|
|
1007
|
-
<span className="text-
|
|
1036
|
+
<span className="text-fm-placeholder">/</span>
|
|
1037
|
+
<span className="text-fm-icon-active">Current Page</span>
|
|
1008
1038
|
</nav>
|
|
1009
1039
|
</div>
|
|
1010
1040
|
</div>
|
|
@@ -1024,12 +1054,12 @@ export const Playground: Story = {
|
|
|
1024
1054
|
args: {
|
|
1025
1055
|
width: 32,
|
|
1026
1056
|
height: 32,
|
|
1027
|
-
className: "text-
|
|
1057
|
+
className: "text-fm-secondary-600 ",
|
|
1028
1058
|
strokeWidth: 1.5,
|
|
1029
1059
|
},
|
|
1030
1060
|
render: (args) => (
|
|
1031
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1032
|
-
<div className="rounded-lg border
|
|
1061
|
+
<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">
|
|
1062
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1033
1063
|
<ChevronLeftIcon {...args} />
|
|
1034
1064
|
</div>
|
|
1035
1065
|
</div>
|