aural-ui 3.0.6 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +271 -242
- package/dist/components/avatar/Avatar.stories.tsx +84 -70
- package/dist/components/button/Button.stories.tsx +7 -7
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +3 -3
- package/dist/components/char-count/CharCount.stories.tsx +9 -9
- package/dist/components/circular-loader/CircularLoader.stories.tsx +109 -93
- package/dist/components/clamp-lines/ClampLines.stories.tsx +25 -0
- package/dist/components/clamp-lines/index.tsx +6 -1
- package/dist/components/collapsible/Collapsible.stories.tsx +1 -1
- package/dist/components/command/Command.stories.tsx +52 -38
- package/dist/components/dialog/Dialog.stories.tsx +89 -84
- package/dist/components/divider/Divider.stories.tsx +86 -60
- package/dist/components/dot-loader/DotLoader.stories.tsx +12 -12
- package/dist/components/drawer/Drawer.stories.tsx +74 -44
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +42 -32
- package/dist/components/helper-text/HelperText.stories.tsx +2 -2
- package/dist/components/hover-card/HoverCard.stories.tsx +211 -178
- package/dist/components/input/Input.stories.tsx +2 -2
- package/dist/components/input/index.tsx +2 -0
- package/dist/components/label/Label.stories.tsx +10 -10
- package/dist/components/list/List.stories.tsx +58 -44
- package/dist/components/marquee/Marquee.stories.tsx +131 -113
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +47 -35
- package/dist/components/overlay/Overlay.stories.tsx +98 -92
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/popover/Popover.stories.tsx +132 -106
- package/dist/components/radio/Radio.stories.tsx +2 -2
- package/dist/components/resizable/Resizable.stories.tsx +186 -138
- package/dist/components/scroll-area/ScrollArea.stories.tsx +174 -120
- package/dist/components/search/Search.stories.tsx +81 -59
- package/dist/components/select/Select.stories.tsx +3 -1
- package/dist/components/sheet/Sheet.stories.tsx +68 -54
- package/dist/components/slider/Slider.stories.tsx +71 -47
- package/dist/components/stepper/Stepper.stories.tsx +16 -16
- package/dist/components/switch/Switch.stories.tsx +12 -12
- package/dist/components/table/Table.stories.tsx +8 -6
- package/dist/components/tabs/Tabs.stories.tsx +324 -268
- package/dist/components/textarea/TextArea.stories.tsx +1 -1
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +16 -10
- package/dist/components/toast/Toast.stories.tsx +51 -45
- package/dist/components/toggle/Toggle.stories.tsx +111 -89
- package/dist/components/tooltip/Tooltip.stories.tsx +160 -144
- package/dist/icons/Icons.stories.tsx +2 -2
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +287 -237
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +290 -248
- package/dist/icons/all-icons.tsx +97 -81
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +312 -270
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +294 -244
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +309 -279
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +294 -258
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +289 -255
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +288 -256
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +322 -288
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +340 -296
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +197 -177
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +390 -328
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +313 -277
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +367 -309
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +356 -308
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +280 -234
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +370 -326
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +300 -256
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +298 -262
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +294 -260
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +291 -259
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +286 -256
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +282 -256
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +292 -256
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +338 -290
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +167 -148
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +342 -296
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +342 -296
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +280 -238
- package/dist/icons/command-icon/CommandIcon.stories.tsx +328 -280
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +294 -256
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +285 -235
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +308 -266
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +271 -231
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +330 -278
- package/dist/icons/email-icon/EmailIcon.stories.tsx +303 -257
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +324 -286
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +317 -271
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +320 -272
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +322 -280
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +315 -277
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +199 -177
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +304 -264
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +311 -277
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +327 -287
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +314 -278
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +113 -98
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +274 -226
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +349 -303
- package/dist/icons/head-icon/HeadIcon.stories.tsx +286 -246
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +312 -268
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +246 -210
- package/dist/icons/image-icon/ImageIcon.stories.tsx +330 -284
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +326 -282
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +330 -294
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +288 -234
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +386 -330
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +305 -263
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +295 -259
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +296 -256
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +322 -282
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +399 -359
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +314 -272
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +238 -206
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +322 -276
- package/dist/icons/message-icon/MessageIcon.stories.tsx +192 -170
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +348 -304
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +191 -167
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +380 -326
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +345 -291
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +310 -266
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +311 -271
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +311 -271
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +309 -271
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +248 -210
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +310 -262
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +274 -236
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +324 -280
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +323 -281
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +288 -240
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +315 -273
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +278 -234
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +161 -151
- package/dist/icons/search-icon/SearchIcon.stories.tsx +324 -284
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +306 -264
- package/dist/icons/share-icon/ShareIcon.stories.tsx +314 -272
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +281 -235
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +309 -250
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +317 -279
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +315 -279
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +299 -253
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +185 -169
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +192 -168
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +212 -178
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +290 -244
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +286 -234
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +272 -230
- package/dist/icons/sun-icon/SunIcon.stories.tsx +262 -226
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +321 -279
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +332 -282
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +394 -342
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +338 -290
- package/dist/icons/tick-icon/TickIcon.stories.tsx +364 -315
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +293 -253
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +396 -338
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +291 -247
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +309 -271
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +336 -290
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +382 -334
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +349 -305
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +327 -295
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +336 -296
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +314 -274
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +311 -261
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -11,9 +11,9 @@ const meta: Meta<typeof GitForkIcon> = {
|
|
|
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,42 +40,42 @@ const meta: Meta<typeof GitForkIcon> = {
|
|
|
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
|
@keyframes search-pulse {
|
|
81
81
|
0%, 100% { transform: scale(1); opacity: 1; }
|
|
@@ -94,19 +94,19 @@ const meta: Meta<typeof GitForkIcon> = {
|
|
|
94
94
|
`}
|
|
95
95
|
</style>
|
|
96
96
|
|
|
97
|
-
<div className="
|
|
97
|
+
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
98
98
|
{/* Header */}
|
|
99
|
-
<div className="relative overflow-hidden border-b
|
|
100
|
-
<div className="absolute inset-0 bg-
|
|
99
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
100
|
+
<div className="from-fm-icon-info/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
101
101
|
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
102
102
|
<div className="!space-y-6 text-center">
|
|
103
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border
|
|
104
|
-
<GitForkIcon className="h-12 w-12
|
|
103
|
+
<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">
|
|
104
|
+
<GitForkIcon className="text-fm-icon-info h-12 w-12" />
|
|
105
105
|
</div>
|
|
106
106
|
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
107
|
GitForkIcon
|
|
108
108
|
</h1>
|
|
109
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed
|
|
109
|
+
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
110
110
|
A Git fork icon representing codebase duplication,
|
|
111
111
|
contribution workflows, and open-source collaboration.
|
|
112
112
|
Perfect for visualizing repository forks, pull request
|
|
@@ -118,28 +118,28 @@ const meta: Meta<typeof GitForkIcon> = {
|
|
|
118
118
|
{/* Stats */}
|
|
119
119
|
<div className="flex items-center justify-center gap-8 pt-8">
|
|
120
120
|
<div className="text-center">
|
|
121
|
-
<div className="text-3xl font-bold
|
|
121
|
+
<div className="text-fm-icon-negative text-3xl font-bold">
|
|
122
122
|
Fork
|
|
123
123
|
</div>
|
|
124
|
-
<div className="text-
|
|
124
|
+
<div className="text-fm-tertiary text-sm">
|
|
125
125
|
Copy for contribution
|
|
126
126
|
</div>
|
|
127
127
|
</div>
|
|
128
|
-
<div className="h-8 w-px
|
|
128
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
129
129
|
<div className="text-center">
|
|
130
|
-
<div className="text-3xl font-bold
|
|
130
|
+
<div className="text-fm-icon-warning text-3xl font-bold">
|
|
131
131
|
Modify
|
|
132
132
|
</div>
|
|
133
|
-
<div className="text-
|
|
133
|
+
<div className="text-fm-tertiary text-sm">
|
|
134
134
|
Make your changes
|
|
135
135
|
</div>
|
|
136
136
|
</div>
|
|
137
|
-
<div className="h-8 w-px
|
|
137
|
+
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
138
138
|
<div className="text-center">
|
|
139
|
-
<div className="text-3xl font-bold
|
|
139
|
+
<div className="text-fm-icon-positive text-3xl font-bold">
|
|
140
140
|
Pull Request
|
|
141
141
|
</div>
|
|
142
|
-
<div className="text-
|
|
142
|
+
<div className="text-fm-tertiary text-sm">
|
|
143
143
|
Propose your code
|
|
144
144
|
</div>
|
|
145
145
|
</div>
|
|
@@ -152,17 +152,17 @@ const meta: Meta<typeof GitForkIcon> = {
|
|
|
152
152
|
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
153
153
|
{/* Quick Usage */}
|
|
154
154
|
<div className="!space-y-8">
|
|
155
|
-
<h2 className="text-center text-3xl font-bold
|
|
155
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
156
156
|
Quick Start
|
|
157
157
|
</h2>
|
|
158
158
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
159
159
|
{/* Basic Usage */}
|
|
160
160
|
<div className="!space-y-4">
|
|
161
|
-
<h3 className="text-xl font-semibold
|
|
161
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
162
162
|
Basic Usage
|
|
163
163
|
</h3>
|
|
164
|
-
<div className="rounded-lg
|
|
165
|
-
<pre className="overflow-x-auto text-sm
|
|
164
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
165
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
166
166
|
{`import { GitForkIcon } from "@icons/git-fork-icon"
|
|
167
167
|
|
|
168
168
|
function ForkButton() {
|
|
@@ -182,11 +182,11 @@ function ForkButton() {
|
|
|
182
182
|
|
|
183
183
|
{/* Live Preview */}
|
|
184
184
|
<div className="!space-y-4">
|
|
185
|
-
<h3 className="text-xl font-semibold
|
|
185
|
+
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
186
186
|
Live Preview
|
|
187
187
|
</h3>
|
|
188
|
-
<div className="flex h-32 items-center justify-center rounded-lg border
|
|
189
|
-
<button className="flex items-center gap-2 rounded border
|
|
188
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
189
|
+
<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 border px-4 py-2 hover:cursor-pointer">
|
|
190
190
|
<GitForkIcon className="h-4 w-4" />
|
|
191
191
|
Forks
|
|
192
192
|
</button>
|
|
@@ -197,94 +197,102 @@ function ForkButton() {
|
|
|
197
197
|
|
|
198
198
|
{/* Props Documentation */}
|
|
199
199
|
<div className="!space-y-8">
|
|
200
|
-
<h2 className="text-center text-3xl font-bold
|
|
200
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
201
201
|
Props & Configuration
|
|
202
202
|
</h2>
|
|
203
203
|
|
|
204
|
-
<div className="overflow-hidden rounded-lg border
|
|
205
|
-
<div className="bg-
|
|
206
|
-
<h3 className="text-xl font-semibold
|
|
204
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
205
|
+
<div className="bg-fm-surface-secondary p-4">
|
|
206
|
+
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
207
|
+
Props
|
|
208
|
+
</h3>
|
|
207
209
|
</div>
|
|
208
210
|
<table className="!my-0 w-full">
|
|
209
|
-
<thead className="bg-
|
|
210
|
-
<tr className="border-
|
|
211
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
211
|
+
<thead className="bg-fm-surface-secondary">
|
|
212
|
+
<tr className="border-fm-divider-secondary border-b">
|
|
213
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
212
214
|
Prop
|
|
213
215
|
</th>
|
|
214
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
216
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
215
217
|
Type
|
|
216
218
|
</th>
|
|
217
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
219
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
218
220
|
Default
|
|
219
221
|
</th>
|
|
220
|
-
<th className="px-6 py-4 text-left text-sm font-semibold
|
|
222
|
+
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
221
223
|
Description
|
|
222
224
|
</th>
|
|
223
225
|
</tr>
|
|
224
226
|
</thead>
|
|
225
227
|
<tbody>
|
|
226
228
|
{" "}
|
|
227
|
-
<tr className="
|
|
228
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
229
|
+
<tr className="bg-fm-surface-secondary!">
|
|
230
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
229
231
|
withAccessibility
|
|
230
232
|
</td>
|
|
231
|
-
<td className="px-6 py-4 text-sm
|
|
233
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
232
234
|
boolean
|
|
233
235
|
</td>
|
|
234
|
-
<td className="px-6 py-4 text-sm
|
|
236
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
235
237
|
true
|
|
236
238
|
</td>
|
|
237
|
-
<td className="px-6 py-4 text-sm
|
|
239
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
238
240
|
Whether to wrap the icon with accessibility feature
|
|
239
241
|
</td>
|
|
240
242
|
</tr>
|
|
241
|
-
<tr className="border-
|
|
242
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
243
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
244
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
243
245
|
height
|
|
244
246
|
</td>
|
|
245
|
-
<td className="px-6 py-4 text-sm
|
|
247
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
246
248
|
number | string
|
|
247
249
|
</td>
|
|
248
|
-
<td className="px-6 py-4 text-sm
|
|
249
|
-
|
|
250
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
251
|
+
24
|
|
252
|
+
</td>
|
|
253
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
250
254
|
Height of the icon in pixels
|
|
251
255
|
</td>
|
|
252
256
|
</tr>
|
|
253
|
-
<tr className="border-
|
|
254
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
257
|
+
<tr className="border-fm-divider-tertiary border-b">
|
|
258
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
255
259
|
fill
|
|
256
260
|
</td>
|
|
257
|
-
<td className="px-6 py-4 text-sm
|
|
261
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
258
262
|
string
|
|
259
263
|
</td>
|
|
260
|
-
<td className="px-6 py-4 text-sm
|
|
264
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
261
265
|
currentColor
|
|
262
266
|
</td>
|
|
263
|
-
<td className="px-6 py-4 text-sm
|
|
267
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
264
268
|
Fill color of the icon
|
|
265
269
|
</td>
|
|
266
270
|
</tr>
|
|
267
|
-
<tr className="border-
|
|
268
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
271
|
+
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
272
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
269
273
|
className
|
|
270
274
|
</td>
|
|
271
|
-
<td className="px-6 py-4 text-sm
|
|
275
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
272
276
|
string
|
|
273
277
|
</td>
|
|
274
|
-
<td className="px-6 py-4 text-sm
|
|
275
|
-
|
|
278
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
279
|
+
-
|
|
280
|
+
</td>
|
|
281
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
276
282
|
CSS classes for styling (use for size, color, etc.)
|
|
277
283
|
</td>
|
|
278
284
|
</tr>
|
|
279
|
-
<tr className="
|
|
280
|
-
<td className="px-6 py-4 font-mono text-sm
|
|
285
|
+
<tr className="bg-fm-surface-secondary!">
|
|
286
|
+
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
281
287
|
...svgProps
|
|
282
288
|
</td>
|
|
283
|
-
<td className="px-6 py-4 text-sm
|
|
289
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
284
290
|
SVGProps<SVGSVGElement>
|
|
285
291
|
</td>
|
|
286
|
-
<td className="px-6 py-4 text-sm
|
|
287
|
-
|
|
292
|
+
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
293
|
+
-
|
|
294
|
+
</td>
|
|
295
|
+
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
288
296
|
All standard SVG element props supported by React
|
|
289
297
|
</td>
|
|
290
298
|
</tr>
|
|
@@ -295,50 +303,62 @@ function ForkButton() {
|
|
|
295
303
|
|
|
296
304
|
{/* Size Variations */}
|
|
297
305
|
<div className="!space-y-8">
|
|
298
|
-
<h2 className="text-center text-3xl font-bold
|
|
306
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
299
307
|
Size Variations
|
|
300
308
|
</h2>
|
|
301
|
-
<div className="rounded-lg border
|
|
309
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
302
310
|
<div className="!space-y-6">
|
|
303
311
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
304
312
|
<div className="!space-y-4">
|
|
305
|
-
<h3 className="text-lg font-semibold
|
|
313
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
306
314
|
Standard Sizes
|
|
307
315
|
</h3>
|
|
308
|
-
<div className="flex items-end gap-6 rounded-lg
|
|
316
|
+
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
309
317
|
<div className="text-center">
|
|
310
|
-
<GitForkIcon className="!mx-auto mb-2 h-3 w-3
|
|
311
|
-
<span className="text-
|
|
318
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
319
|
+
<span className="text-fm-tertiary text-xs">
|
|
320
|
+
12px
|
|
321
|
+
</span>
|
|
312
322
|
</div>
|
|
313
323
|
<div className="text-center">
|
|
314
|
-
<GitForkIcon className="!mx-auto mb-2 h-4 w-4
|
|
315
|
-
<span className="text-
|
|
324
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
325
|
+
<span className="text-fm-tertiary text-xs">
|
|
326
|
+
16px
|
|
327
|
+
</span>
|
|
316
328
|
</div>
|
|
317
329
|
<div className="text-center">
|
|
318
|
-
<GitForkIcon className="!mx-auto mb-2 h-5 w-5
|
|
319
|
-
<span className="text-
|
|
330
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
331
|
+
<span className="text-fm-tertiary text-xs">
|
|
332
|
+
20px
|
|
333
|
+
</span>
|
|
320
334
|
</div>
|
|
321
335
|
<div className="text-center">
|
|
322
|
-
<GitForkIcon className="!mx-auto mb-2 h-6 w-6
|
|
323
|
-
<span className="text-
|
|
336
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
337
|
+
<span className="text-fm-tertiary text-xs">
|
|
338
|
+
24px
|
|
339
|
+
</span>
|
|
324
340
|
</div>
|
|
325
341
|
<div className="text-center">
|
|
326
|
-
<GitForkIcon className="!mx-auto mb-2 h-8 w-8
|
|
327
|
-
<span className="text-
|
|
342
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
343
|
+
<span className="text-fm-tertiary text-xs">
|
|
344
|
+
32px
|
|
345
|
+
</span>
|
|
328
346
|
</div>
|
|
329
347
|
<div className="text-center">
|
|
330
|
-
<GitForkIcon className="!mx-auto mb-2 h-12 w-12
|
|
331
|
-
<span className="text-
|
|
348
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
349
|
+
<span className="text-fm-tertiary text-xs">
|
|
350
|
+
48px
|
|
351
|
+
</span>
|
|
332
352
|
</div>
|
|
333
353
|
</div>
|
|
334
354
|
</div>
|
|
335
355
|
|
|
336
356
|
<div className="!space-y-4">
|
|
337
|
-
<h3 className="text-lg font-semibold
|
|
357
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
338
358
|
Code Example
|
|
339
359
|
</h3>
|
|
340
|
-
<div className="rounded-lg
|
|
341
|
-
<pre className="overflow-x-auto text-sm
|
|
360
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
361
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
342
362
|
{`// Small (16px)
|
|
343
363
|
<GitForkIcon className="h-4 w-4 " />
|
|
344
364
|
|
|
@@ -360,91 +380,91 @@ function ForkButton() {
|
|
|
360
380
|
|
|
361
381
|
{/* Color Variations */}
|
|
362
382
|
<div className="!space-y-8">
|
|
363
|
-
<h2 className="text-center text-3xl font-bold
|
|
383
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
364
384
|
Color Variations
|
|
365
385
|
</h2>
|
|
366
386
|
|
|
367
387
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
368
388
|
{/* Semantic Colors */}
|
|
369
389
|
<div className="!space-y-4">
|
|
370
|
-
<h3 className="text-lg font-semibold
|
|
390
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
371
391
|
Semantic Colors
|
|
372
392
|
</h3>
|
|
373
|
-
<div className="!space-y-4 rounded-lg border
|
|
393
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
374
394
|
<div className="flex items-center gap-4">
|
|
375
|
-
<GitForkIcon className="h-6 w-6
|
|
395
|
+
<GitForkIcon className="text-fm-icon-info h-6 w-6" />
|
|
376
396
|
<div>
|
|
377
|
-
<div className="text-sm font-medium
|
|
397
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
378
398
|
Primary
|
|
379
399
|
</div>
|
|
380
|
-
<div className="text-
|
|
381
|
-
text-
|
|
400
|
+
<div className="text-fm-tertiary text-xs">
|
|
401
|
+
text-fm-icon-info
|
|
382
402
|
</div>
|
|
383
403
|
</div>
|
|
384
404
|
</div>
|
|
385
405
|
<div className="flex items-center gap-4">
|
|
386
|
-
<GitForkIcon className="h-6 w-6
|
|
406
|
+
<GitForkIcon className="text-fm-icon-info h-6 w-6" />
|
|
387
407
|
<div>
|
|
388
|
-
<div className="text-sm font-medium
|
|
408
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
389
409
|
Active
|
|
390
410
|
</div>
|
|
391
|
-
<div className="text-
|
|
392
|
-
text-
|
|
411
|
+
<div className="text-fm-tertiary text-xs">
|
|
412
|
+
text-fm-icon-info
|
|
393
413
|
</div>
|
|
394
414
|
</div>
|
|
395
415
|
</div>
|
|
396
416
|
<div className="flex items-center gap-4">
|
|
397
|
-
<GitForkIcon className="h-6 w-6
|
|
417
|
+
<GitForkIcon className="text-fm-placeholder h-6 w-6" />
|
|
398
418
|
<div>
|
|
399
|
-
<div className="text-sm font-medium
|
|
419
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
400
420
|
Disabled
|
|
401
421
|
</div>
|
|
402
|
-
<div className="text-
|
|
403
|
-
text-
|
|
422
|
+
<div className="text-fm-tertiary text-xs">
|
|
423
|
+
text-fm-placeholder
|
|
404
424
|
</div>
|
|
405
425
|
</div>
|
|
406
426
|
</div>
|
|
407
427
|
<div className="flex items-center gap-4">
|
|
408
|
-
<GitForkIcon className="h-6 w-6
|
|
428
|
+
<GitForkIcon className="text-fm-icon-info h-6 w-6" />
|
|
409
429
|
<div>
|
|
410
|
-
<div className="text-sm font-medium
|
|
430
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
411
431
|
Info
|
|
412
432
|
</div>
|
|
413
|
-
<div className="text-
|
|
414
|
-
text-
|
|
433
|
+
<div className="text-fm-tertiary text-xs">
|
|
434
|
+
text-fm-icon-info
|
|
415
435
|
</div>
|
|
416
436
|
</div>
|
|
417
437
|
</div>
|
|
418
438
|
<div className="flex items-center gap-4">
|
|
419
|
-
<GitForkIcon className="h-6 w-6
|
|
439
|
+
<GitForkIcon className="text-fm-icon-positive h-6 w-6" />
|
|
420
440
|
<div>
|
|
421
|
-
<div className="text-sm font-medium
|
|
441
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
422
442
|
Success
|
|
423
443
|
</div>
|
|
424
|
-
<div className="text-
|
|
425
|
-
text-
|
|
444
|
+
<div className="text-fm-tertiary text-xs">
|
|
445
|
+
text-fm-icon-positive
|
|
426
446
|
</div>
|
|
427
447
|
</div>
|
|
428
448
|
</div>
|
|
429
449
|
<div className="flex items-center gap-4">
|
|
430
|
-
<GitForkIcon className="h-6 w-6
|
|
450
|
+
<GitForkIcon className="text-fm-icon-warning h-6 w-6" />
|
|
431
451
|
<div>
|
|
432
|
-
<div className="text-sm font-medium
|
|
452
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
433
453
|
Warning
|
|
434
454
|
</div>
|
|
435
|
-
<div className="text-
|
|
436
|
-
text-
|
|
455
|
+
<div className="text-fm-tertiary text-xs">
|
|
456
|
+
text-fm-icon-warning
|
|
437
457
|
</div>
|
|
438
458
|
</div>
|
|
439
459
|
</div>
|
|
440
460
|
<div className="flex items-center gap-4">
|
|
441
|
-
<GitForkIcon className="h-6 w-6
|
|
461
|
+
<GitForkIcon className="text-fm-icon-negative h-6 w-6" />
|
|
442
462
|
<div>
|
|
443
|
-
<div className="text-sm font-medium
|
|
463
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
444
464
|
Error
|
|
445
465
|
</div>
|
|
446
|
-
<div className="text-
|
|
447
|
-
text-
|
|
466
|
+
<div className="text-fm-tertiary text-xs">
|
|
467
|
+
text-fm-icon-negative
|
|
448
468
|
</div>
|
|
449
469
|
</div>
|
|
450
470
|
</div>
|
|
@@ -453,11 +473,11 @@ function ForkButton() {
|
|
|
453
473
|
|
|
454
474
|
{/* Custom Colors */}
|
|
455
475
|
<div className="!space-y-4">
|
|
456
|
-
<h3 className="text-lg font-semibold
|
|
476
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
457
477
|
Custom Colors
|
|
458
478
|
</h3>
|
|
459
|
-
<div className="rounded-lg
|
|
460
|
-
<pre className="overflow-x-auto text-sm
|
|
479
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
480
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
461
481
|
{`// Using Tailwind classes
|
|
462
482
|
<GitForkIcon className="h-6 w-6 text-indigo-400" />
|
|
463
483
|
<GitForkIcon className="h-6 w-6 text-cyan-500" />
|
|
@@ -482,22 +502,22 @@ function ForkButton() {
|
|
|
482
502
|
|
|
483
503
|
{/* Usage Examples */}
|
|
484
504
|
<div className="!space-y-8">
|
|
485
|
-
<h2 className="text-center text-3xl font-bold
|
|
505
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
486
506
|
Usage Examples
|
|
487
507
|
</h2>
|
|
488
508
|
|
|
489
509
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
490
510
|
{/* Forking a Repository */}
|
|
491
511
|
<div className="!space-y-4">
|
|
492
|
-
<h3 className="text-lg font-semibold
|
|
512
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
493
513
|
Fork Repository
|
|
494
514
|
</h3>
|
|
495
|
-
<button className="flex cursor-pointer items-center gap-2 rounded-lg border
|
|
515
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/10 text-fm-icon-info hover:bg-fm-icon-info/20 flex cursor-pointer items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
496
516
|
<GitForkIcon className="h-4 w-4" />
|
|
497
517
|
Fork Repository
|
|
498
518
|
</button>
|
|
499
|
-
<div className="rounded-lg
|
|
500
|
-
<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">
|
|
501
521
|
{`<button className="flex items-center gap-2 bg-indigo-500/10 border border-indigo-500/30 px-4 py-2 rounded-lg cursor-pointer">
|
|
502
522
|
<GitForkIcon className="h-4 w-4" />
|
|
503
523
|
Fork Repository
|
|
@@ -508,30 +528,30 @@ function ForkButton() {
|
|
|
508
528
|
|
|
509
529
|
{/* Viewing Fork Information */}
|
|
510
530
|
<div className="!space-y-4">
|
|
511
|
-
<h3 className="text-lg font-semibold
|
|
531
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
512
532
|
Forked Repo Info
|
|
513
533
|
</h3>
|
|
514
|
-
<div className="rounded-lg border
|
|
534
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
515
535
|
<div className="flex items-center gap-3">
|
|
516
|
-
<GitForkIcon className="h-5 w-5
|
|
536
|
+
<GitForkIcon className="text-fm-icon-info h-5 w-5" />
|
|
517
537
|
<div className="flex-1">
|
|
518
|
-
<div className="text-sm font-medium
|
|
538
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
519
539
|
Forked from:{" "}
|
|
520
540
|
<a
|
|
521
541
|
href="https://github.com/open-source/base-project"
|
|
522
|
-
className="cursor-pointer
|
|
542
|
+
className="text-fm-icon-info cursor-pointer"
|
|
523
543
|
>
|
|
524
544
|
open-source/base-project
|
|
525
545
|
</a>
|
|
526
546
|
</div>
|
|
527
|
-
<div className="text-
|
|
547
|
+
<div className="text-fm-tertiary text-xs">
|
|
528
548
|
Last synced 3 days ago
|
|
529
549
|
</div>
|
|
530
550
|
</div>
|
|
531
551
|
</div>
|
|
532
552
|
</div>
|
|
533
|
-
<div className="rounded-lg
|
|
534
|
-
<pre className="overflow-x-auto text-sm
|
|
553
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
554
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
535
555
|
{`<div className="flex items-center gap-3 p-4 border border-white/10 bg-white/5">
|
|
536
556
|
<GitForkIcon className="h-5 w-5 text-indigo-400" />
|
|
537
557
|
<div className="flex-1">
|
|
@@ -549,24 +569,24 @@ function ForkButton() {
|
|
|
549
569
|
|
|
550
570
|
{/* Indicating Unforked Repositories */}
|
|
551
571
|
<div className="!space-y-4">
|
|
552
|
-
<h3 className="text-lg font-semibold
|
|
572
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
553
573
|
No Forks Yet
|
|
554
574
|
</h3>
|
|
555
|
-
<div className="flex flex-col items-center justify-center rounded-lg border
|
|
556
|
-
<GitForkIcon className="mb-4 h-12 w-12
|
|
557
|
-
<h4 className="mb-2 text-lg font-medium
|
|
575
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex flex-col items-center justify-center rounded-lg border p-8">
|
|
576
|
+
<GitForkIcon className="text-fm-icon-active/30 mb-4 h-12 w-12" />
|
|
577
|
+
<h4 className="text-fm-icon-active!/80 mb-2 text-lg font-medium">
|
|
558
578
|
No forks found
|
|
559
579
|
</h4>
|
|
560
|
-
<p className="text-
|
|
580
|
+
<p className="text-fm-placeholder! text-center text-sm">
|
|
561
581
|
Fork this project to start customizing and contributing.
|
|
562
582
|
</p>
|
|
563
|
-
<button className="mt-4 flex cursor-pointer items-center gap-2 rounded-lg border
|
|
583
|
+
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 mt-4 flex cursor-pointer items-center gap-2 rounded-lg border px-4 py-2 text-sm transition-colors">
|
|
564
584
|
<GitForkIcon className="h-4 w-4" />
|
|
565
585
|
Fork Project
|
|
566
586
|
</button>
|
|
567
587
|
</div>
|
|
568
|
-
<div className="rounded-lg
|
|
569
|
-
<pre className="overflow-x-auto text-sm
|
|
588
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
589
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
570
590
|
{`<div className="flex flex-col items-center p-8 border border-white/10 bg-white/5">
|
|
571
591
|
<GitForkIcon className="h-12 w-12 text-white/30 mb-4" />
|
|
572
592
|
<h4 className="text-lg font-medium text-white/80 mb-2">
|
|
@@ -586,33 +606,33 @@ function ForkButton() {
|
|
|
586
606
|
|
|
587
607
|
{/* Pull Request from Fork */}
|
|
588
608
|
<div className="!space-y-4">
|
|
589
|
-
<h3 className="text-lg font-semibold
|
|
609
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
590
610
|
Pull Request Origin
|
|
591
611
|
</h3>
|
|
592
|
-
<div className="rounded-lg border
|
|
612
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
593
613
|
<div className="flex items-center gap-3">
|
|
594
|
-
<GitForkIcon className="h-5 w-5
|
|
614
|
+
<GitForkIcon className="text-fm-icon-info h-5 w-5" />
|
|
595
615
|
<div className="flex-1">
|
|
596
|
-
<div className="text-sm font-medium
|
|
616
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
597
617
|
PR from fork:{" "}
|
|
598
618
|
<a
|
|
599
619
|
href="https://github.com/user123/feature-dark-mode"
|
|
600
|
-
className="cursor-pointer
|
|
620
|
+
className="text-fm-icon-info cursor-pointer"
|
|
601
621
|
>
|
|
602
622
|
user123/feature-dark-mode
|
|
603
623
|
</a>
|
|
604
624
|
</div>
|
|
605
|
-
<div className="text-
|
|
625
|
+
<div className="text-fm-tertiary text-xs">
|
|
606
626
|
Changes from forked repository ready to merge
|
|
607
627
|
</div>
|
|
608
628
|
</div>
|
|
609
|
-
<button className="
|
|
629
|
+
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/10 text-fm-icon-positive hover:bg-fm-icon-positive/20 cursor-pointer rounded-lg border px-3 py-1 text-xs">
|
|
610
630
|
Review
|
|
611
631
|
</button>
|
|
612
632
|
</div>
|
|
613
633
|
</div>
|
|
614
|
-
<div className="rounded-lg
|
|
615
|
-
<pre className="overflow-x-auto text-sm
|
|
634
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
635
|
+
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
616
636
|
{`<div className="flex items-center gap-3 p-4 border border-white/10 bg-white/5">
|
|
617
637
|
<GitForkIcon className="h-5 w-5 text-indigo-400" />
|
|
618
638
|
<div className="flex-1">
|
|
@@ -637,55 +657,55 @@ function ForkButton() {
|
|
|
637
657
|
|
|
638
658
|
{/* Interactive States */}
|
|
639
659
|
<div className="!space-y-8">
|
|
640
|
-
<h2 className="text-center text-3xl font-bold
|
|
660
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
641
661
|
Interactive States & Animations
|
|
642
662
|
</h2>
|
|
643
663
|
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
644
664
|
<div className="!space-y-4">
|
|
645
|
-
<h3 className="text-lg font-semibold
|
|
665
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
646
666
|
Hover & Animation Effects
|
|
647
667
|
</h3>
|
|
648
|
-
<div className="!space-y-4 rounded-lg border
|
|
668
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
649
669
|
<div className="flex items-center gap-4">
|
|
650
|
-
<GitForkIcon className="h-6 w-6
|
|
670
|
+
<GitForkIcon className="text-fm-tertiary hover:text-fm-icon-info h-6 w-6 transition-colors" />
|
|
651
671
|
<div>
|
|
652
|
-
<div className="text-sm font-medium
|
|
672
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
653
673
|
Color Change
|
|
654
674
|
</div>
|
|
655
|
-
<div className="text-
|
|
675
|
+
<div className="text-fm-tertiary text-xs">
|
|
656
676
|
Hover to see effect
|
|
657
677
|
</div>
|
|
658
678
|
</div>
|
|
659
679
|
</div>
|
|
660
680
|
<div className="flex items-center gap-4">
|
|
661
|
-
<GitForkIcon className="h-6 w-6
|
|
681
|
+
<GitForkIcon className="text-fm-icon-active h-6 w-6 transition-transform hover:scale-110" />
|
|
662
682
|
<div>
|
|
663
|
-
<div className="text-sm font-medium
|
|
683
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
664
684
|
Scale Up
|
|
665
685
|
</div>
|
|
666
|
-
<div className="text-
|
|
686
|
+
<div className="text-fm-tertiary text-xs">
|
|
667
687
|
Scale on hover
|
|
668
688
|
</div>
|
|
669
689
|
</div>
|
|
670
690
|
</div>
|
|
671
691
|
<div className="flex items-center gap-4">
|
|
672
|
-
<GitForkIcon className="animate-search-pulse h-6 w-6
|
|
692
|
+
<GitForkIcon className="animate-search-pulse text-fm-icon-info h-6 w-6" />
|
|
673
693
|
<div>
|
|
674
|
-
<div className="text-sm font-medium
|
|
694
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
675
695
|
Search Pulse
|
|
676
696
|
</div>
|
|
677
|
-
<div className="text-
|
|
697
|
+
<div className="text-fm-tertiary text-xs">
|
|
678
698
|
Continuous animation
|
|
679
699
|
</div>
|
|
680
700
|
</div>
|
|
681
701
|
</div>
|
|
682
702
|
<div className="flex items-center gap-4">
|
|
683
|
-
<GitForkIcon className="animate-document-slide h-6 w-6
|
|
703
|
+
<GitForkIcon className="animate-document-slide text-fm-icon-info h-6 w-6" />
|
|
684
704
|
<div>
|
|
685
|
-
<div className="text-sm font-medium
|
|
705
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
686
706
|
Document Slide
|
|
687
707
|
</div>
|
|
688
|
-
<div className="text-
|
|
708
|
+
<div className="text-fm-tertiary text-xs">
|
|
689
709
|
Subtle movement
|
|
690
710
|
</div>
|
|
691
711
|
</div>
|
|
@@ -694,11 +714,11 @@ function ForkButton() {
|
|
|
694
714
|
</div>
|
|
695
715
|
|
|
696
716
|
<div className="!space-y-4">
|
|
697
|
-
<h3 className="text-lg font-semibold
|
|
717
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
698
718
|
State Examples
|
|
699
719
|
</h3>
|
|
700
|
-
<div className="rounded-lg
|
|
701
|
-
<pre className="overflow-x-auto text-sm
|
|
720
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
721
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
702
722
|
{`// Color change on hover
|
|
703
723
|
<GitForkIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400 " />
|
|
704
724
|
|
|
@@ -721,65 +741,65 @@ function ForkButton() {
|
|
|
721
741
|
|
|
722
742
|
{/* Accessibility */}
|
|
723
743
|
<div className="!space-y-8">
|
|
724
|
-
<h2 className="text-center text-3xl font-bold
|
|
744
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
725
745
|
Accessibility Features
|
|
726
746
|
</h2>
|
|
727
747
|
|
|
728
748
|
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
729
|
-
<div className="!space-y-4 rounded-lg border
|
|
730
|
-
<h3 className="text-lg font-semibold
|
|
749
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
750
|
+
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
731
751
|
✅ Built-in Features
|
|
732
752
|
</h3>
|
|
733
|
-
<ul className="!space-y-2 text-sm
|
|
734
|
-
<li className="
|
|
753
|
+
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
754
|
+
<li className="text-fm-secondary!">
|
|
735
755
|
Uses Radix UI AccessibleIcon wrapper
|
|
736
756
|
</li>
|
|
737
|
-
<li className="
|
|
757
|
+
<li className="text-fm-secondary!">
|
|
738
758
|
Provides screen reader label "Git fork icon"
|
|
739
759
|
</li>
|
|
740
760
|
|
|
741
|
-
<li className="
|
|
761
|
+
<li className="text-fm-secondary!">
|
|
742
762
|
Maintains proper color contrast ratios
|
|
743
763
|
</li>
|
|
744
|
-
<li className="
|
|
764
|
+
<li className="text-fm-secondary!">
|
|
745
765
|
Scales with user's font size preferences
|
|
746
766
|
</li>
|
|
747
767
|
</ul>
|
|
748
768
|
</div>
|
|
749
769
|
|
|
750
|
-
<div className="!space-y-4 rounded-lg border
|
|
751
|
-
<h3 className="text-lg font-semibold
|
|
770
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
771
|
+
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
752
772
|
💡 Best Practices
|
|
753
773
|
</h3>
|
|
754
|
-
<ul className="!space-y-2 text-sm
|
|
755
|
-
<li className="
|
|
774
|
+
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
775
|
+
<li className="text-fm-secondary!">
|
|
756
776
|
Always provide descriptive labels for branch-related
|
|
757
777
|
actions
|
|
758
778
|
</li>
|
|
759
|
-
<li className="
|
|
779
|
+
<li className="text-fm-secondary!">
|
|
760
780
|
Use consistent placement in version control interfaces
|
|
761
781
|
</li>
|
|
762
|
-
<li className="
|
|
782
|
+
<li className="text-fm-secondary!">
|
|
763
783
|
Ensure sufficient click/touch target sizes
|
|
764
784
|
</li>
|
|
765
|
-
<li className="
|
|
785
|
+
<li className="text-fm-secondary!">
|
|
766
786
|
Add focus states for keyboard navigation
|
|
767
787
|
</li>
|
|
768
|
-
<li className="
|
|
788
|
+
<li className="text-fm-secondary!">
|
|
769
789
|
Consider motion sensitivity for branching animations
|
|
770
790
|
</li>
|
|
771
791
|
</ul>
|
|
772
792
|
</div>
|
|
773
793
|
</div>
|
|
774
794
|
|
|
775
|
-
<div className="rounded-lg border
|
|
776
|
-
<h3 className="mb-4 text-lg font-semibold
|
|
795
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
796
|
+
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
777
797
|
Custom Accessibility Implementation
|
|
778
798
|
</h3>
|
|
779
799
|
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
780
800
|
{/* Code Example Block */}
|
|
781
|
-
<div className="rounded-lg
|
|
782
|
-
<pre className="overflow-x-auto text-sm
|
|
801
|
+
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
802
|
+
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
783
803
|
{`// Fork button with ARIA label for accessibility
|
|
784
804
|
<button
|
|
785
805
|
aria-label="Fork this repository"
|
|
@@ -807,15 +827,15 @@ function ForkButton() {
|
|
|
807
827
|
|
|
808
828
|
{/* Accessibility Note */}
|
|
809
829
|
<div className="!space-y-4">
|
|
810
|
-
<p className="text-
|
|
830
|
+
<p className="text-fm-secondary! text-sm">
|
|
811
831
|
When using <code>GitForkIcon</code> for forking actions
|
|
812
832
|
or displaying fork-related status, ensure ARIA labels
|
|
813
833
|
clearly explain what the action will perform. Use{" "}
|
|
814
834
|
<code>aria-hidden="true"</code> for decorative icons and
|
|
815
835
|
always include descriptive text for accessibility.
|
|
816
836
|
</p>
|
|
817
|
-
<div className="
|
|
818
|
-
<div className="flex items-center gap-2 text-sm
|
|
837
|
+
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
838
|
+
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
819
839
|
<GitForkIcon className="h-4 w-4" aria-hidden="true" />
|
|
820
840
|
<span>
|
|
821
841
|
Use <code>aria-label</code> for actionable buttons
|
|
@@ -831,48 +851,58 @@ function ForkButton() {
|
|
|
831
851
|
|
|
832
852
|
{/* Related Icons */}
|
|
833
853
|
<div className="!space-y-8">
|
|
834
|
-
<h2 className="text-center text-3xl font-bold
|
|
854
|
+
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
835
855
|
Related Icons
|
|
836
856
|
</h2>
|
|
837
857
|
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
838
|
-
<div className="!space-y-3 rounded-lg border
|
|
839
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
858
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
859
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
840
860
|
<span className="text-2xl">🔄</span>
|
|
841
861
|
</div>
|
|
842
862
|
<div>
|
|
843
|
-
<div className="font-medium
|
|
844
|
-
|
|
863
|
+
<div className="text-fm-icon-active font-medium">
|
|
864
|
+
LoadingIcon
|
|
865
|
+
</div>
|
|
866
|
+
<div className="text-fm-tertiary text-xs">
|
|
845
867
|
Progress states
|
|
846
868
|
</div>
|
|
847
869
|
</div>
|
|
848
870
|
</div>
|
|
849
|
-
<div className="!space-y-3 rounded-lg border
|
|
850
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
871
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
872
|
+
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
851
873
|
<span className="text-2xl">📄</span>
|
|
852
874
|
</div>
|
|
853
875
|
<div>
|
|
854
|
-
<div className="font-medium
|
|
855
|
-
|
|
876
|
+
<div className="text-fm-icon-active font-medium">
|
|
877
|
+
DocumentIcon
|
|
878
|
+
</div>
|
|
879
|
+
<div className="text-fm-tertiary text-xs">
|
|
880
|
+
Document view
|
|
881
|
+
</div>
|
|
856
882
|
</div>
|
|
857
883
|
</div>
|
|
858
|
-
<div className="!space-y-3 rounded-lg border
|
|
859
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
860
|
-
<span className="
|
|
884
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
885
|
+
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
886
|
+
<span className="text-fm-icon-active! !text-2xl">⚠</span>
|
|
861
887
|
</div>
|
|
862
888
|
<div>
|
|
863
|
-
<div className="font-medium
|
|
864
|
-
|
|
889
|
+
<div className="text-fm-icon-active font-medium">
|
|
890
|
+
AlertIcon
|
|
891
|
+
</div>
|
|
892
|
+
<div className="text-fm-tertiary text-xs">
|
|
865
893
|
Warning states
|
|
866
894
|
</div>
|
|
867
895
|
</div>
|
|
868
896
|
</div>
|
|
869
|
-
<div className="!space-y-3 rounded-lg border
|
|
870
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg
|
|
897
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
898
|
+
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
871
899
|
<span className="text-2xl">🔎</span>
|
|
872
900
|
</div>
|
|
873
901
|
<div>
|
|
874
|
-
<div className="font-medium
|
|
875
|
-
|
|
902
|
+
<div className="text-fm-icon-active font-medium">
|
|
903
|
+
FilterIcon
|
|
904
|
+
</div>
|
|
905
|
+
<div className="text-fm-tertiary text-xs">
|
|
876
906
|
Content filtering
|
|
877
907
|
</div>
|
|
878
908
|
</div>
|
|
@@ -882,15 +912,15 @@ function ForkButton() {
|
|
|
882
912
|
</div>
|
|
883
913
|
|
|
884
914
|
{/* Footer */}
|
|
885
|
-
<div className="border-
|
|
915
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
886
916
|
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
887
917
|
<div className="!space-y-4 text-center">
|
|
888
|
-
<p className="
|
|
918
|
+
<p className="text-fm-tertiary!">
|
|
889
919
|
FilterBarRowIcon is part of the Aural UI icon library, built
|
|
890
920
|
for document search, content discovery, and page navigation
|
|
891
921
|
functionality.
|
|
892
922
|
</p>
|
|
893
|
-
<p className="text-
|
|
923
|
+
<p className="text-fm-placeholder! text-sm">
|
|
894
924
|
All icons use Radix UI's AccessibleIcon for screen reader
|
|
895
925
|
compatibility and follow WCAG guidelines for search
|
|
896
926
|
interfaces.
|
|
@@ -936,8 +966,8 @@ const storyParameters = {
|
|
|
936
966
|
backgrounds: {
|
|
937
967
|
default: "dark",
|
|
938
968
|
values: [
|
|
939
|
-
{ name: "dark", value: "
|
|
940
|
-
{ name: "darker", value: "
|
|
969
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
970
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
941
971
|
],
|
|
942
972
|
},
|
|
943
973
|
}
|
|
@@ -946,12 +976,12 @@ export const Default: Story = {
|
|
|
946
976
|
args: {
|
|
947
977
|
width: 24,
|
|
948
978
|
height: 24,
|
|
949
|
-
className: "text-
|
|
979
|
+
className: "text-fm-icon-info ",
|
|
950
980
|
withAccessibility: true,
|
|
951
981
|
},
|
|
952
982
|
parameters: storyParameters,
|
|
953
983
|
render: (args) => (
|
|
954
|
-
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-
|
|
984
|
+
<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">
|
|
955
985
|
<GitForkIcon {...args} />
|
|
956
986
|
</div>
|
|
957
987
|
),
|
|
@@ -968,30 +998,30 @@ export const SizeVariations: Story = {
|
|
|
968
998
|
},
|
|
969
999
|
},
|
|
970
1000
|
render: () => (
|
|
971
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-
|
|
1001
|
+
<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">
|
|
972
1002
|
<div className="text-center">
|
|
973
|
-
<GitForkIcon className="!mx-auto mb-2 h-3 w-3
|
|
974
|
-
<span className="text-
|
|
1003
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
1004
|
+
<span className="text-fm-tertiary text-xs">12px</span>
|
|
975
1005
|
</div>
|
|
976
1006
|
<div className="text-center">
|
|
977
|
-
<GitForkIcon className="!mx-auto mb-2 h-4 w-4
|
|
978
|
-
<span className="text-
|
|
1007
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
1008
|
+
<span className="text-fm-tertiary text-xs">16px</span>
|
|
979
1009
|
</div>
|
|
980
1010
|
<div className="text-center">
|
|
981
|
-
<GitForkIcon className="!mx-auto mb-2 h-5 w-5
|
|
982
|
-
<span className="text-
|
|
1011
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
1012
|
+
<span className="text-fm-tertiary text-xs">20px</span>
|
|
983
1013
|
</div>
|
|
984
1014
|
<div className="text-center">
|
|
985
|
-
<GitForkIcon className="!mx-auto mb-2 h-6 w-6
|
|
986
|
-
<span className="text-
|
|
1015
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
1016
|
+
<span className="text-fm-tertiary text-xs">24px</span>
|
|
987
1017
|
</div>
|
|
988
1018
|
<div className="text-center">
|
|
989
|
-
<GitForkIcon className="!mx-auto mb-2 h-8 w-8
|
|
990
|
-
<span className="text-
|
|
1019
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
1020
|
+
<span className="text-fm-tertiary text-xs">32px</span>
|
|
991
1021
|
</div>
|
|
992
1022
|
<div className="text-center">
|
|
993
|
-
<GitForkIcon className="!mx-auto mb-2 h-12 w-12
|
|
994
|
-
<span className="text-
|
|
1023
|
+
<GitForkIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
1024
|
+
<span className="text-fm-tertiary text-xs">48px</span>
|
|
995
1025
|
</div>
|
|
996
1026
|
</div>
|
|
997
1027
|
),
|
|
@@ -1008,34 +1038,34 @@ export const ColorVariations: Story = {
|
|
|
1008
1038
|
},
|
|
1009
1039
|
},
|
|
1010
1040
|
render: () => (
|
|
1011
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-
|
|
1041
|
+
<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">
|
|
1012
1042
|
<div className="text-center">
|
|
1013
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1014
|
-
<GitForkIcon className="h-8 w-8
|
|
1043
|
+
<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">
|
|
1044
|
+
<GitForkIcon className="text-fm-icon-info h-8 w-8" />
|
|
1015
1045
|
</div>
|
|
1016
|
-
<div className="text-sm font-medium
|
|
1017
|
-
<div className="text-
|
|
1046
|
+
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
1047
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1018
1048
|
</div>
|
|
1019
1049
|
<div className="text-center">
|
|
1020
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1021
|
-
<GitForkIcon className="h-8 w-8
|
|
1050
|
+
<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">
|
|
1051
|
+
<GitForkIcon className="text-fm-icon-info h-8 w-8" />
|
|
1022
1052
|
</div>
|
|
1023
|
-
<div className="text-sm font-medium
|
|
1024
|
-
<div className="text-
|
|
1053
|
+
<div className="text-fm-icon-active text-sm font-medium">Active</div>
|
|
1054
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1025
1055
|
</div>
|
|
1026
1056
|
<div className="text-center">
|
|
1027
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1028
|
-
<GitForkIcon className="h-8 w-8
|
|
1057
|
+
<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">
|
|
1058
|
+
<GitForkIcon className="text-fm-placeholder h-8 w-8" />
|
|
1029
1059
|
</div>
|
|
1030
|
-
<div className="text-sm font-medium
|
|
1031
|
-
<div className="text-
|
|
1060
|
+
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
1061
|
+
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
1032
1062
|
</div>
|
|
1033
1063
|
<div className="text-center">
|
|
1034
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border
|
|
1035
|
-
<GitForkIcon className="h-8 w-8
|
|
1064
|
+
<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">
|
|
1065
|
+
<GitForkIcon className="text-fm-icon-info h-8 w-8" />
|
|
1036
1066
|
</div>
|
|
1037
|
-
<div className="text-sm font-medium
|
|
1038
|
-
<div className="text-
|
|
1067
|
+
<div className="text-fm-icon-active text-sm font-medium">Info</div>
|
|
1068
|
+
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1039
1069
|
</div>
|
|
1040
1070
|
</div>
|
|
1041
1071
|
),
|
|
@@ -1052,21 +1082,23 @@ export const UsageExamples: Story = {
|
|
|
1052
1082
|
},
|
|
1053
1083
|
},
|
|
1054
1084
|
render: () => (
|
|
1055
|
-
<div className="min-h-dvh space-y-8 rounded-lg bg-
|
|
1085
|
+
<div className="from-fm-surface-primary to-fm-surface-primary min-h-dvh space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1056
1086
|
{/* Toolbar */}
|
|
1057
1087
|
<div className="space-y-4">
|
|
1058
|
-
<h3 className="text-sm font-medium
|
|
1088
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1089
|
+
Branch Controls
|
|
1090
|
+
</h3>
|
|
1059
1091
|
<div className="flex gap-4">
|
|
1060
1092
|
<button
|
|
1061
1093
|
aria-label="Create a new branch"
|
|
1062
|
-
className="flex items-center gap-2 rounded-lg border
|
|
1094
|
+
className="border-fm-icon-info/30 bg-fm-icon-info/15 text-fm-icon-info hover:bg-fm-icon-info/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition-all hover:cursor-pointer focus:ring-2 focus:ring-blue-400 focus:outline-none"
|
|
1063
1095
|
>
|
|
1064
1096
|
<GitForkIcon className="h-4 w-4" aria-hidden="true" />
|
|
1065
1097
|
<span className="sr-only">Create Branch</span>
|
|
1066
1098
|
</button>
|
|
1067
1099
|
<button
|
|
1068
1100
|
aria-label="Checkout the selected branch"
|
|
1069
|
-
className="flex items-center gap-2 rounded-lg border
|
|
1101
|
+
className="border-fm-icon-info/30 bg-fm-icon-info/15 text-fm-icon-info hover:bg-fm-icon-info/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition-all hover:cursor-pointer focus:ring-2 focus:ring-indigo-400 focus:outline-none"
|
|
1070
1102
|
>
|
|
1071
1103
|
<GitForkIcon className="h-4 w-4" aria-hidden="true" />
|
|
1072
1104
|
<span className="sr-only">Checkout</span>
|
|
@@ -1076,8 +1108,10 @@ export const UsageExamples: Story = {
|
|
|
1076
1108
|
|
|
1077
1109
|
{/* Recent Branches */}
|
|
1078
1110
|
<div className="space-y-4">
|
|
1079
|
-
<h3 className="text-sm font-medium
|
|
1080
|
-
|
|
1111
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1112
|
+
Recent Branches
|
|
1113
|
+
</h3>
|
|
1114
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-4">
|
|
1081
1115
|
{[
|
|
1082
1116
|
{ name: "feature/auth-flow", updated: "Jun 25, 2025" },
|
|
1083
1117
|
{ name: "fix/navbar-overlap", updated: "Jun 23, 2025" },
|
|
@@ -1085,17 +1119,17 @@ export const UsageExamples: Story = {
|
|
|
1085
1119
|
].map((branch, index) => (
|
|
1086
1120
|
<div
|
|
1087
1121
|
key={index}
|
|
1088
|
-
className="flex items-center gap-3 rounded border
|
|
1122
|
+
className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-3 rounded border p-3 transition-all focus:ring-2 focus:ring-indigo-400 focus:outline-none"
|
|
1089
1123
|
>
|
|
1090
1124
|
<GitForkIcon
|
|
1091
|
-
className="h-5 w-5
|
|
1125
|
+
className="text-fm-icon-positive h-5 w-5"
|
|
1092
1126
|
aria-hidden="true"
|
|
1093
1127
|
/>
|
|
1094
1128
|
<div className="flex-1">
|
|
1095
|
-
<div className="text-sm font-medium
|
|
1129
|
+
<div className="text-fm-icon-active text-sm font-medium">
|
|
1096
1130
|
{branch.name}
|
|
1097
1131
|
</div>
|
|
1098
|
-
<div className="text-
|
|
1132
|
+
<div className="text-fm-tertiary text-xs">
|
|
1099
1133
|
Updated {branch.updated}
|
|
1100
1134
|
</div>
|
|
1101
1135
|
</div>
|
|
@@ -1106,18 +1140,20 @@ export const UsageExamples: Story = {
|
|
|
1106
1140
|
|
|
1107
1141
|
{/* Management Actions */}
|
|
1108
1142
|
<div className="space-y-4">
|
|
1109
|
-
<h3 className="text-sm font-medium
|
|
1143
|
+
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1144
|
+
Manage Branches
|
|
1145
|
+
</h3>
|
|
1110
1146
|
<div className="flex gap-4">
|
|
1111
1147
|
<button
|
|
1112
1148
|
aria-label="Rename the selected branch"
|
|
1113
|
-
className="flex items-center gap-2 rounded-lg border
|
|
1149
|
+
className="border-fm-icon-warning/30 bg-fm-icon-warning/15 text-fm-icon-warning hover:bg-fm-icon-warning/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition-all hover:cursor-pointer focus:ring-2 focus:ring-yellow-400 focus:outline-none"
|
|
1114
1150
|
>
|
|
1115
1151
|
<GitForkIcon className="h-4 w-4" aria-hidden="true" />
|
|
1116
1152
|
<span className="sr-only">Rename</span>
|
|
1117
1153
|
</button>
|
|
1118
1154
|
<button
|
|
1119
1155
|
aria-label="Delete the selected branch"
|
|
1120
|
-
className="flex items-center gap-2 rounded-lg border
|
|
1156
|
+
className="border-fm-icon-negative/30 bg-fm-icon-negative/15 text-fm-icon-negative hover:bg-fm-icon-negative/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition-all hover:cursor-pointer focus:ring-2 focus:ring-red-400 focus:outline-none"
|
|
1121
1157
|
>
|
|
1122
1158
|
<GitForkIcon className="h-4 w-4" aria-hidden="true" />
|
|
1123
1159
|
<span className="sr-only">Delete</span>
|
|
@@ -1139,28 +1175,28 @@ export const InteractiveStates: Story = {
|
|
|
1139
1175
|
},
|
|
1140
1176
|
},
|
|
1141
1177
|
render: () => (
|
|
1142
|
-
<div className="min-h-dvh space-y-8 rounded-lg bg-
|
|
1178
|
+
<div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh space-y-8 rounded-lg bg-linear-to-br p-8">
|
|
1143
1179
|
<div className="space-y-4">
|
|
1144
|
-
<h3 className="text-sm font-medium
|
|
1180
|
+
<h3 className="text-fm-secondary text-sm font-medium">
|
|
1145
1181
|
Interactive States & Motion
|
|
1146
1182
|
</h3>
|
|
1147
1183
|
<div className="flex gap-8">
|
|
1148
1184
|
{/* Hover color transition */}
|
|
1149
1185
|
<div className="flex flex-col items-center gap-2">
|
|
1150
|
-
<GitForkIcon className="h-8 w-8
|
|
1151
|
-
<span className="text-
|
|
1186
|
+
<GitForkIcon className="text-fm-tertiary hover:text-fm-icon-info h-8 w-8 transition-colors" />
|
|
1187
|
+
<span className="text-fm-tertiary text-xs">Hover to Highlight</span>
|
|
1152
1188
|
</div>
|
|
1153
1189
|
|
|
1154
1190
|
{/* Hover scale up */}
|
|
1155
1191
|
<div className="flex flex-col items-center gap-2">
|
|
1156
|
-
<GitForkIcon className="h-8 w-8
|
|
1157
|
-
<span className="text-
|
|
1192
|
+
<GitForkIcon className="text-fm-icon-active h-8 w-8 transition-transform duration-200 hover:scale-110" />
|
|
1193
|
+
<span className="text-fm-tertiary text-xs">Scale on Hover</span>
|
|
1158
1194
|
</div>
|
|
1159
1195
|
|
|
1160
1196
|
{/* Pulse animation to show sync or branch update */}
|
|
1161
1197
|
<div className="flex flex-col items-center gap-2">
|
|
1162
|
-
<GitForkIcon className="h-8 w-8 animate-pulse
|
|
1163
|
-
<span className="text-
|
|
1198
|
+
<GitForkIcon className="text-fm-icon-positive h-8 w-8 animate-pulse" />
|
|
1199
|
+
<span className="text-fm-tertiary text-xs">Sync Pulse</span>
|
|
1164
1200
|
</div>
|
|
1165
1201
|
</div>
|
|
1166
1202
|
</div>
|
|
@@ -1181,11 +1217,11 @@ export const Playground: Story = {
|
|
|
1181
1217
|
args: {
|
|
1182
1218
|
width: 32,
|
|
1183
1219
|
height: 32,
|
|
1184
|
-
className: "text-
|
|
1220
|
+
className: "text-fm-icon-info ",
|
|
1185
1221
|
},
|
|
1186
1222
|
render: (args) => (
|
|
1187
|
-
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-
|
|
1188
|
-
<div className="rounded-lg border
|
|
1223
|
+
<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">
|
|
1224
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
1189
1225
|
<GitForkIcon {...args} />
|
|
1190
1226
|
</div>
|
|
1191
1227
|
</div>
|