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