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