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