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.
- package/README.md +8 -1
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
|
|
5
|
+
import { ArrowRightIcon } from "src/ui/icons/arrow-right-icon"
|
|
6
|
+
import { ChevronLeftIcon } from "src/ui/icons/chevron-left-icon"
|
|
7
|
+
import { ImportLeftArrowFolderIcon } from "src/ui/icons/import-left-arrow-folder-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconDirectionalVariations,
|
|
12
|
+
IconPlaygroundCanvas,
|
|
13
|
+
IconSizeVariations,
|
|
14
|
+
IconUsageCanvas,
|
|
15
|
+
IconUsageSection,
|
|
16
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
17
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
18
|
+
|
|
4
19
|
import { ArrowBoxLeftIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof ArrowBoxLeftIcon> = {
|
|
@@ -18,858 +33,71 @@ const meta: Meta<typeof ArrowBoxLeftIcon> = {
|
|
|
18
33
|
},
|
|
19
34
|
docs: {
|
|
20
35
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="bg-fm-surface-primary min-h-screen">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
-
<div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="border-fm-icon-positive/30 from-fm-icon-positive/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
93
|
-
ArrowBoxLeftIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
|
-
A directional navigation icon indicating leftward movement
|
|
97
|
-
or previous actions. Perfect for back buttons, navigation
|
|
98
|
-
controls, and step-by-step interfaces.
|
|
99
|
-
</p>
|
|
100
|
-
|
|
101
|
-
{/* Stats */}
|
|
102
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
103
|
-
<div className="text-center">
|
|
104
|
-
<div className="text-fm-icon-positive text-3xl font-bold">
|
|
105
|
-
Navigation
|
|
106
|
-
</div>
|
|
107
|
-
<div className="text-fm-tertiary text-sm">
|
|
108
|
-
Back & previous
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
112
|
-
<div className="text-center">
|
|
113
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
114
|
-
Intuitive
|
|
115
|
-
</div>
|
|
116
|
-
<div className="text-fm-tertiary text-sm">
|
|
117
|
-
Clear direction
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
121
|
-
<div className="text-center">
|
|
122
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
123
|
-
Versatile
|
|
124
|
-
</div>
|
|
125
|
-
<div className="text-fm-tertiary text-sm">
|
|
126
|
-
Multiple contexts
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
|
|
134
|
-
{/* Content */}
|
|
135
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
136
|
-
{/* Quick Usage */}
|
|
137
|
-
<div className="!space-y-8">
|
|
138
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
139
|
-
Quick Start
|
|
140
|
-
</h2>
|
|
141
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
142
|
-
<div className="!space-y-4">
|
|
143
|
-
<h3 className="text-fm-icon-positive! text-xl font-semibold">
|
|
144
|
-
Basic Usage
|
|
145
|
-
</h3>
|
|
146
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
147
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
148
|
-
{`import { ArrowBoxLeftIcon } from "@icons/arrow-box-left-icon"
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="info"
|
|
38
|
+
features={[
|
|
39
|
+
{
|
|
40
|
+
title: "Boxed Arrow",
|
|
41
|
+
description: "Arrow within a bordered box",
|
|
42
|
+
},
|
|
43
|
+
{ title: "currentColor", description: "Responds to text tokens" },
|
|
44
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
45
|
+
]}
|
|
46
|
+
quickStart={{
|
|
47
|
+
codeExample: `import { ArrowBoxLeftIcon } from "src/ui/icons/arrow-box-left-icon"
|
|
149
48
|
|
|
150
49
|
function BackButton() {
|
|
151
50
|
return (
|
|
152
|
-
<button
|
|
153
|
-
<ArrowBoxLeftIcon className="h-
|
|
154
|
-
<span>Back</span>
|
|
155
|
-
</button>
|
|
156
|
-
)
|
|
157
|
-
}`}
|
|
158
|
-
</pre>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
|
|
162
|
-
<div className="!space-y-4">
|
|
163
|
-
<h3 className="text-fm-icon-positive! text-xl font-semibold">
|
|
164
|
-
Live Preview
|
|
165
|
-
</h3>
|
|
166
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
167
|
-
<button className="border-fm-icon-positive/20 bg-fm-icon-positive/10 text-fm-icon-active hover:bg-fm-icon-positive/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
168
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-4 w-4 transition-transform hover:-translate-x-1" />
|
|
169
|
-
<span>Back</span>
|
|
170
|
-
</button>
|
|
171
|
-
</div>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
|
|
176
|
-
{/* Props Documentation */}
|
|
177
|
-
<div className="!space-y-8">
|
|
178
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
179
|
-
Props & Configuration
|
|
180
|
-
</h2>
|
|
181
|
-
|
|
182
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
183
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
184
|
-
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
185
|
-
Props
|
|
186
|
-
</h3>
|
|
187
|
-
</div>
|
|
188
|
-
<table className="!my-0 w-full">
|
|
189
|
-
<thead className="bg-fm-surface-secondary">
|
|
190
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
191
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
192
|
-
Prop
|
|
193
|
-
</th>
|
|
194
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
195
|
-
Type
|
|
196
|
-
</th>
|
|
197
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
198
|
-
Default
|
|
199
|
-
</th>
|
|
200
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
201
|
-
Description
|
|
202
|
-
</th>
|
|
203
|
-
</tr>
|
|
204
|
-
</thead>
|
|
205
|
-
<tbody>
|
|
206
|
-
{" "}
|
|
207
|
-
<tr className="bg-fm-surface-secondary!">
|
|
208
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
209
|
-
withAccessibility
|
|
210
|
-
</td>
|
|
211
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
212
|
-
boolean
|
|
213
|
-
</td>
|
|
214
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
215
|
-
true
|
|
216
|
-
</td>
|
|
217
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
218
|
-
Whether to wrap the icon with accessibility feature
|
|
219
|
-
</td>
|
|
220
|
-
</tr>
|
|
221
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
222
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
223
|
-
height
|
|
224
|
-
</td>
|
|
225
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
226
|
-
number | string
|
|
227
|
-
</td>
|
|
228
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
229
|
-
16
|
|
230
|
-
</td>
|
|
231
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
232
|
-
Height of the icon in pixels
|
|
233
|
-
</td>
|
|
234
|
-
</tr>
|
|
235
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
236
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
237
|
-
fill
|
|
238
|
-
</td>
|
|
239
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
240
|
-
string
|
|
241
|
-
</td>
|
|
242
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
243
|
-
currentColor
|
|
244
|
-
</td>
|
|
245
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
246
|
-
Fill color of the icon
|
|
247
|
-
</td>
|
|
248
|
-
</tr>
|
|
249
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
250
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
251
|
-
stroke
|
|
252
|
-
</td>
|
|
253
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
254
|
-
string
|
|
255
|
-
</td>
|
|
256
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
257
|
-
currentColor
|
|
258
|
-
</td>
|
|
259
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
260
|
-
Stroke color of the icon
|
|
261
|
-
</td>
|
|
262
|
-
</tr>
|
|
263
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
264
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
265
|
-
strokeWidth
|
|
266
|
-
</td>
|
|
267
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
268
|
-
number | string
|
|
269
|
-
</td>
|
|
270
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
271
|
-
1.5
|
|
272
|
-
</td>
|
|
273
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
274
|
-
Stroke width of the icon
|
|
275
|
-
</td>
|
|
276
|
-
</tr>
|
|
277
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
278
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
279
|
-
className
|
|
280
|
-
</td>
|
|
281
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
282
|
-
string
|
|
283
|
-
</td>
|
|
284
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
285
|
-
-
|
|
286
|
-
</td>
|
|
287
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
288
|
-
CSS classes for styling
|
|
289
|
-
</td>
|
|
290
|
-
</tr>
|
|
291
|
-
<tr className="bg-fm-surface-secondary!">
|
|
292
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
293
|
-
...svgProps
|
|
294
|
-
</td>
|
|
295
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
296
|
-
SVGProps
|
|
297
|
-
</td>
|
|
298
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
299
|
-
-
|
|
300
|
-
</td>
|
|
301
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
302
|
-
All standard SVG element props
|
|
303
|
-
</td>
|
|
304
|
-
</tr>
|
|
305
|
-
</tbody>
|
|
306
|
-
</table>
|
|
307
|
-
</div>
|
|
308
|
-
</div>
|
|
309
|
-
|
|
310
|
-
{/* Size Variations */}
|
|
311
|
-
<div className="!space-y-8">
|
|
312
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
313
|
-
Size Variations
|
|
314
|
-
</h2>
|
|
315
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
316
|
-
<div className="!space-y-6">
|
|
317
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
318
|
-
<div className="!space-y-4">
|
|
319
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
320
|
-
Standard Sizes
|
|
321
|
-
</h3>
|
|
322
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
323
|
-
<div className="text-center">
|
|
324
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
325
|
-
<span className="text-fm-tertiary text-xs">
|
|
326
|
-
12px
|
|
327
|
-
</span>
|
|
328
|
-
</div>
|
|
329
|
-
<div className="text-center">
|
|
330
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
331
|
-
<span className="text-fm-tertiary text-xs">
|
|
332
|
-
16px
|
|
333
|
-
</span>
|
|
334
|
-
</div>
|
|
335
|
-
<div className="text-center">
|
|
336
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
337
|
-
<span className="text-fm-tertiary text-xs">
|
|
338
|
-
20px
|
|
339
|
-
</span>
|
|
340
|
-
</div>
|
|
341
|
-
<div className="text-center">
|
|
342
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
343
|
-
<span className="text-fm-tertiary text-xs">
|
|
344
|
-
24px
|
|
345
|
-
</span>
|
|
346
|
-
</div>
|
|
347
|
-
<div className="text-center">
|
|
348
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
349
|
-
<span className="text-fm-tertiary text-xs">
|
|
350
|
-
32px
|
|
351
|
-
</span>
|
|
352
|
-
</div>
|
|
353
|
-
<div className="text-center">
|
|
354
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
355
|
-
<span className="text-fm-tertiary text-xs">
|
|
356
|
-
48px
|
|
357
|
-
</span>
|
|
358
|
-
</div>
|
|
359
|
-
</div>
|
|
360
|
-
</div>
|
|
361
|
-
|
|
362
|
-
<div className="!space-y-4">
|
|
363
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
364
|
-
Code Example
|
|
365
|
-
</h3>
|
|
366
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
367
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
368
|
-
{`// Small (16px)
|
|
369
|
-
<ArrowBoxLeftIcon className="h-4 w-4" />
|
|
370
|
-
|
|
371
|
-
// Medium (24px)
|
|
372
|
-
<ArrowBoxLeftIcon className="h-6 w-6" />
|
|
373
|
-
|
|
374
|
-
// Large (32px)
|
|
375
|
-
<ArrowBoxLeftIcon className="h-8 w-8" />
|
|
376
|
-
|
|
377
|
-
// Custom size
|
|
378
|
-
<ArrowBoxLeftIcon width={40} height={40} />`}
|
|
379
|
-
</pre>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
|
|
387
|
-
{/* Direction & Variants */}
|
|
388
|
-
<div className="!space-y-8">
|
|
389
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
390
|
-
Direction Variants
|
|
391
|
-
</h2>
|
|
392
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
393
|
-
<div className="!space-y-4">
|
|
394
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
395
|
-
Directional Variants
|
|
396
|
-
</h3>
|
|
397
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
398
|
-
<div className="grid grid-cols-2 gap-4">
|
|
399
|
-
<div className="flex flex-col items-center gap-2">
|
|
400
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-6 w-6" />
|
|
401
|
-
<span className="text-fm-tertiary! text-xs">
|
|
402
|
-
Left (Default)
|
|
403
|
-
</span>
|
|
404
|
-
</div>
|
|
405
|
-
<div className="flex flex-col items-center gap-2">
|
|
406
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-6 w-6 rotate-180" />
|
|
407
|
-
<span className="text-fm-tertiary! text-xs">
|
|
408
|
-
Right (rotate-180)
|
|
409
|
-
</span>
|
|
410
|
-
</div>
|
|
411
|
-
<div className="flex flex-col items-center gap-2">
|
|
412
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-6 w-6 -rotate-90" />
|
|
413
|
-
<span className="text-fm-tertiary! text-xs">
|
|
414
|
-
Up (-rotate-90)
|
|
415
|
-
</span>
|
|
416
|
-
</div>
|
|
417
|
-
<div className="flex flex-col items-center gap-2">
|
|
418
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-6 w-6 rotate-90" />
|
|
419
|
-
<span className="text-fm-tertiary! text-xs">
|
|
420
|
-
Down (rotate-90)
|
|
421
|
-
</span>
|
|
422
|
-
</div>
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
</div>
|
|
426
|
-
|
|
427
|
-
<div className="!space-y-4">
|
|
428
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
429
|
-
Animation Examples
|
|
430
|
-
</h3>
|
|
431
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
432
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
433
|
-
{`// Smooth movement on hover
|
|
434
|
-
<ArrowBoxLeftIcon className="h-4 w-4 transition-transform hover:-translate-x-1" />
|
|
435
|
-
|
|
436
|
-
// Button with icon animation
|
|
437
|
-
<button className="group flex items-center gap-2">
|
|
438
|
-
<ArrowBoxLeftIcon className="h-4 w-4 transition-transform group-hover:-translate-x-1" />
|
|
439
|
-
<span>Back</span>
|
|
440
|
-
</button>
|
|
441
|
-
|
|
442
|
-
// Color change animation
|
|
443
|
-
<ArrowBoxLeftIcon className="h-4 w-4 transition-colors hover:text-emerald-300" />`}
|
|
444
|
-
</pre>
|
|
445
|
-
</div>
|
|
446
|
-
</div>
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
|
|
450
|
-
{/* Usage Examples */}
|
|
451
|
-
<div className="!space-y-8">
|
|
452
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
453
|
-
Usage Examples
|
|
454
|
-
</h2>
|
|
455
|
-
|
|
456
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
457
|
-
{/* Back Button */}
|
|
458
|
-
<div className="!space-y-4">
|
|
459
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
460
|
-
Back Button
|
|
461
|
-
</h3>
|
|
462
|
-
<div className="!space-y-4">
|
|
463
|
-
<button className="group border-fm-icon-positive/20 bg-fm-icon-positive/10 text-fm-icon-active hover:bg-fm-icon-positive/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-all">
|
|
464
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-4 w-4 transition-transform group-hover:-translate-x-1" />
|
|
465
|
-
<span>Back to Dashboard</span>
|
|
466
|
-
</button>
|
|
467
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
468
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
469
|
-
{`<button className="group flex items-center gap-2 px-4 py-2 bg-emerald-500/10 border border-emerald-500/20 rounded-lg">
|
|
470
|
-
<ArrowBoxLeftIcon className="h-4 w-4 text-emerald-400 transition-transform group-hover:-translate-x-1" />
|
|
471
|
-
<span>Back to Dashboard</span>
|
|
472
|
-
</button>`}
|
|
473
|
-
</pre>
|
|
474
|
-
</div>
|
|
475
|
-
</div>
|
|
476
|
-
</div>
|
|
477
|
-
|
|
478
|
-
{/* Breadcrumb Navigation */}
|
|
479
|
-
<div className="!space-y-4">
|
|
480
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
481
|
-
Breadcrumb Navigation
|
|
482
|
-
</h3>
|
|
483
|
-
<div className="!space-y-4">
|
|
484
|
-
<nav className="flex items-center !space-x-2 text-sm">
|
|
485
|
-
<button className="text-fm-icon-positive hover:text-fm-icon-positive flex items-center gap-1">
|
|
486
|
-
<ArrowBoxLeftIcon className="h-3 w-3" />
|
|
487
|
-
<span>Home</span>
|
|
488
|
-
</button>
|
|
489
|
-
<span className="text-fm-placeholder">/</span>
|
|
490
|
-
<span className="text-fm-secondary">Products</span>
|
|
491
|
-
<span className="text-fm-placeholder">/</span>
|
|
492
|
-
<span className="text-fm-icon-active">Details</span>
|
|
493
|
-
</nav>
|
|
494
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
495
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
496
|
-
{`<nav className="flex items-center space-x-2 text-sm">
|
|
497
|
-
<button className="flex items-center gap-1 text-emerald-400 hover:text-emerald-300">
|
|
498
|
-
<ArrowBoxLeftIcon className="h-3 w-3" />
|
|
499
|
-
<span>Home</span>
|
|
500
|
-
</button>
|
|
501
|
-
<span className="text-white/40">/</span>
|
|
502
|
-
<span className="text-white/70">Products</span>
|
|
503
|
-
<span className="text-white/40">/</span>
|
|
504
|
-
<span className="text-white">Details</span>
|
|
505
|
-
</nav>`}
|
|
506
|
-
</pre>
|
|
507
|
-
</div>
|
|
508
|
-
</div>
|
|
509
|
-
</div>
|
|
510
|
-
|
|
511
|
-
{/* Previous/Next Pagination */}
|
|
512
|
-
<div className="!space-y-4">
|
|
513
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
514
|
-
Pagination Controls
|
|
515
|
-
</h3>
|
|
516
|
-
<div className="!space-y-4">
|
|
517
|
-
<div className="flex items-center gap-4">
|
|
518
|
-
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
519
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-4 w-4" />
|
|
520
|
-
<span className="text-fm-icon-active">Previous</span>
|
|
521
|
-
</button>
|
|
522
|
-
<span className="text-fm-secondary text-sm">
|
|
523
|
-
Page 2 of 10
|
|
524
|
-
</span>
|
|
525
|
-
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
526
|
-
<span className="text-fm-icon-active">Next</span>
|
|
527
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-4 w-4 rotate-180" />
|
|
528
|
-
</button>
|
|
529
|
-
</div>
|
|
530
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
531
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
532
|
-
{`<div className="flex items-center gap-4">
|
|
533
|
-
<button className="flex items-center gap-2 px-3 py-2 text-sm">
|
|
534
|
-
<ArrowBoxLeftIcon className="h-4 w-4 text-emerald-400" />
|
|
535
|
-
<span>Previous</span>
|
|
536
|
-
</button>
|
|
537
|
-
<span className="text-sm text-white/70">Page 2 of 10</span>
|
|
538
|
-
<button className="flex items-center gap-2 px-3 py-2 text-sm">
|
|
539
|
-
<span>Next</span>
|
|
540
|
-
<ArrowBoxLeftIcon className="h-4 w-4 rotate-180 text-emerald-400" />
|
|
541
|
-
</button>
|
|
542
|
-
</div>`}
|
|
543
|
-
</pre>
|
|
544
|
-
</div>
|
|
545
|
-
</div>
|
|
546
|
-
</div>
|
|
547
|
-
|
|
548
|
-
{/* Step Navigation */}
|
|
549
|
-
<div className="!space-y-4">
|
|
550
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
551
|
-
Step Navigation
|
|
552
|
-
</h3>
|
|
553
|
-
<div className="!space-y-4">
|
|
554
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
555
|
-
<div className="flex items-center justify-between">
|
|
556
|
-
<button className="text-fm-icon-positive hover:text-fm-icon-positive flex items-center gap-2">
|
|
557
|
-
<ArrowBoxLeftIcon className="h-4 w-4" />
|
|
558
|
-
<span>Previous Step</span>
|
|
559
|
-
</button>
|
|
560
|
-
<div className="text-center">
|
|
561
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
562
|
-
Step 2 of 4
|
|
563
|
-
</div>
|
|
564
|
-
<div className="text-fm-tertiary text-xs">
|
|
565
|
-
Account Information
|
|
566
|
-
</div>
|
|
567
|
-
</div>
|
|
568
|
-
<button className="text-fm-icon-positive hover:text-fm-icon-positive flex items-center gap-2">
|
|
569
|
-
<span>Next Step</span>
|
|
570
|
-
<ArrowBoxLeftIcon className="h-4 w-4 rotate-180" />
|
|
571
|
-
</button>
|
|
572
|
-
</div>
|
|
573
|
-
</div>
|
|
574
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
575
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
576
|
-
{`<div className="flex items-center justify-between">
|
|
577
|
-
<button className="flex items-center gap-2 text-emerald-400">
|
|
578
|
-
<ArrowBoxLeftIcon className="h-4 w-4" />
|
|
579
|
-
<span>Previous Step</span>
|
|
580
|
-
</button>
|
|
581
|
-
<div className="text-center">
|
|
582
|
-
<div className="text-sm font-medium text-white">Step 2 of 4</div>
|
|
583
|
-
<div className="text-xs text-white/60">Account Information</div>
|
|
584
|
-
</div>
|
|
585
|
-
<button className="flex items-center gap-2 text-emerald-400">
|
|
586
|
-
<span>Next Step</span>
|
|
587
|
-
<ArrowBoxLeftIcon className="h-4 w-4 rotate-180" />
|
|
588
|
-
</button>
|
|
589
|
-
</div>`}
|
|
590
|
-
</pre>
|
|
591
|
-
</div>
|
|
592
|
-
</div>
|
|
593
|
-
</div>
|
|
594
|
-
|
|
595
|
-
{/* Sidebar Toggle */}
|
|
596
|
-
<div className="!space-y-4">
|
|
597
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
598
|
-
Sidebar Toggle
|
|
599
|
-
</h3>
|
|
600
|
-
<div className="!space-y-4">
|
|
601
|
-
<div className="flex items-center gap-4">
|
|
602
|
-
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary rounded-lg border p-2 transition-colors">
|
|
603
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-5 w-5" />
|
|
604
|
-
</button>
|
|
605
|
-
<span className="text-fm-secondary">
|
|
606
|
-
Collapse Sidebar
|
|
607
|
-
</span>
|
|
608
|
-
</div>
|
|
609
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
610
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
611
|
-
{`// Collapse sidebar
|
|
612
|
-
<button className="p-2 bg-white/5 border border-white/10 rounded-lg">
|
|
613
|
-
<ArrowBoxLeftIcon className="h-5 w-5 text-emerald-400" />
|
|
614
|
-
</button>
|
|
615
|
-
|
|
616
|
-
// Expand sidebar (rotated)
|
|
617
|
-
<button className="p-2 bg-white/5 border border-white/10 rounded-lg">
|
|
618
|
-
<ArrowBoxLeftIcon className="h-5 w-5 rotate-180 text-emerald-400" />
|
|
619
|
-
</button>`}
|
|
620
|
-
</pre>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
|
|
625
|
-
{/* Modal/Dialog Close */}
|
|
626
|
-
<div className="!space-y-4">
|
|
627
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
628
|
-
Modal Navigation
|
|
629
|
-
</h3>
|
|
630
|
-
<div className="!space-y-4">
|
|
631
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
632
|
-
<div className="flex items-center justify-between">
|
|
633
|
-
<button className="text-fm-secondary hover:text-fm-icon-active flex items-center gap-2">
|
|
634
|
-
<ArrowBoxLeftIcon className="h-4 w-4" />
|
|
635
|
-
<span>Close</span>
|
|
636
|
-
</button>
|
|
637
|
-
<h3 className="text-fm-icon-active! font-medium">
|
|
638
|
-
Settings
|
|
639
|
-
</h3>
|
|
640
|
-
<div className="w-16"></div> {/* Spacer */}
|
|
641
|
-
</div>
|
|
642
|
-
</div>
|
|
643
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
644
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
645
|
-
{`<div className="flex items-center justify-between">
|
|
646
|
-
<button className="flex items-center gap-2 text-white/70 hover:text-white" onClick={onClose}>
|
|
647
|
-
<ArrowBoxLeftIcon className="h-4 w-4" />
|
|
648
|
-
<span>Close</span>
|
|
649
|
-
</button>
|
|
650
|
-
<h3 className="font-medium text-white">Settings</h3>
|
|
651
|
-
<div className="w-16"></div> {/* Spacer */}
|
|
652
|
-
</div>`}
|
|
653
|
-
</pre>
|
|
654
|
-
</div>
|
|
655
|
-
</div>
|
|
656
|
-
</div>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
|
|
660
|
-
{/* Accessibility */}
|
|
661
|
-
<div className="!space-y-8">
|
|
662
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
663
|
-
Accessibility Features
|
|
664
|
-
</h2>
|
|
665
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
666
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
667
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
668
|
-
✅ Built-in Features
|
|
669
|
-
</h3>
|
|
670
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
671
|
-
<li className="text-fm-secondary!">
|
|
672
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
673
|
-
</li>
|
|
674
|
-
<li className="text-fm-secondary!">
|
|
675
|
-
Provides screen reader label "Arrow box left icon"
|
|
676
|
-
</li>
|
|
677
|
-
<li className="text-fm-secondary!">
|
|
678
|
-
Supports keyboard navigation when used in buttons
|
|
679
|
-
</li>
|
|
680
|
-
<li className="text-fm-secondary!">
|
|
681
|
-
Maintains proper color contrast ratios
|
|
682
|
-
</li>
|
|
683
|
-
<li className="text-fm-secondary!">
|
|
684
|
-
Respects user's motion preferences for animations
|
|
685
|
-
</li>
|
|
686
|
-
</ul>
|
|
687
|
-
</div>
|
|
688
|
-
|
|
689
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
690
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
691
|
-
💡 Best Practices
|
|
692
|
-
</h3>
|
|
693
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
694
|
-
<li className="text-fm-secondary!">
|
|
695
|
-
Always pair with descriptive text or aria-label
|
|
696
|
-
</li>
|
|
697
|
-
<li className="text-fm-secondary!">
|
|
698
|
-
Use consistent direction conventions
|
|
699
|
-
</li>
|
|
700
|
-
<li className="text-fm-secondary!">
|
|
701
|
-
Provide clear focus indicators
|
|
702
|
-
</li>
|
|
703
|
-
<li className="text-fm-secondary!">
|
|
704
|
-
Test navigation flow with keyboard only
|
|
705
|
-
</li>
|
|
706
|
-
<li className="text-fm-secondary!">
|
|
707
|
-
Consider touch targets on mobile devices
|
|
708
|
-
</li>
|
|
709
|
-
</ul>
|
|
710
|
-
</div>
|
|
711
|
-
</div>
|
|
712
|
-
|
|
713
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
714
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
715
|
-
Accessible Back Button Implementation
|
|
716
|
-
</h3>
|
|
717
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
718
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
719
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
720
|
-
{`// Accessible back button with proper labeling
|
|
721
|
-
function AccessibleBackButton({ onBack, children }) {
|
|
722
|
-
return (
|
|
723
|
-
<button
|
|
724
|
-
onClick={onBack}
|
|
725
|
-
aria-label="Go back to previous page"
|
|
726
|
-
className="flex items-center gap-2 px-4 py-2 rounded-lg focus:ring-2 focus:ring-emerald-500"
|
|
727
|
-
>
|
|
728
|
-
<ArrowBoxLeftIcon
|
|
729
|
-
className="h-4 w-4 text-emerald-400"
|
|
730
|
-
aria-hidden="true"
|
|
731
|
-
/>
|
|
732
|
-
{children}
|
|
51
|
+
<button aria-label="Go back">
|
|
52
|
+
<ArrowBoxLeftIcon className="h-6 w-6 text-fm-icon-active" />
|
|
733
53
|
</button>
|
|
734
54
|
)
|
|
735
|
-
}
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
<
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
770
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-6 w-6 rotate-180" />
|
|
771
|
-
</div>
|
|
772
|
-
<div>
|
|
773
|
-
<div className="text-fm-icon-active font-medium">
|
|
774
|
-
ArrowBoxRightIcon
|
|
775
|
-
</div>
|
|
776
|
-
<div className="text-fm-tertiary text-xs">
|
|
777
|
-
Rightward direction
|
|
778
|
-
</div>
|
|
779
|
-
</div>
|
|
780
|
-
</div>
|
|
781
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
782
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
783
|
-
<ArrowBoxLeftIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
|
|
784
|
-
</div>
|
|
785
|
-
<div>
|
|
786
|
-
<div className="text-fm-icon-active font-medium">
|
|
787
|
-
ArrowBoxUpIcon
|
|
788
|
-
</div>
|
|
789
|
-
<div className="text-fm-tertiary text-xs">
|
|
790
|
-
Upward direction
|
|
791
|
-
</div>
|
|
792
|
-
</div>
|
|
793
|
-
</div>
|
|
794
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
795
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
796
|
-
<ArrowBoxLeftIcon className="text-fm-secondary-600 h-6 w-6 rotate-90" />
|
|
797
|
-
</div>
|
|
798
|
-
<div>
|
|
799
|
-
<div className="text-fm-icon-active font-medium">
|
|
800
|
-
ArrowBoxDownIcon
|
|
801
|
-
</div>
|
|
802
|
-
<div className="text-fm-tertiary text-xs">
|
|
803
|
-
Downward direction
|
|
804
|
-
</div>
|
|
805
|
-
</div>
|
|
806
|
-
</div>
|
|
807
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
808
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
809
|
-
<span className="text-2xl">⬅️</span>
|
|
810
|
-
</div>
|
|
811
|
-
<div>
|
|
812
|
-
<div className="text-fm-icon-active font-medium">
|
|
813
|
-
ArrowLeftIcon
|
|
814
|
-
</div>
|
|
815
|
-
<div className="text-fm-tertiary text-xs">
|
|
816
|
-
Simple arrow style
|
|
817
|
-
</div>
|
|
818
|
-
</div>
|
|
819
|
-
</div>
|
|
820
|
-
</div>
|
|
821
|
-
</div>
|
|
822
|
-
</div>
|
|
823
|
-
|
|
824
|
-
{/* Footer */}
|
|
825
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
826
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
827
|
-
<div className="!space-y-4 text-center">
|
|
828
|
-
<p className="text-fm-tertiary!">
|
|
829
|
-
ArrowBoxLeftIcon is part of the Aural UI icon library,
|
|
830
|
-
designed for clear directional navigation.
|
|
831
|
-
</p>
|
|
832
|
-
<p className="text-fm-placeholder! text-sm">
|
|
833
|
-
Perfect for back buttons, pagination, step navigation, and
|
|
834
|
-
any interface requiring leftward direction indication.
|
|
835
|
-
</p>
|
|
836
|
-
</div>
|
|
837
|
-
</div>
|
|
838
|
-
</div>
|
|
839
|
-
</div>
|
|
840
|
-
</>
|
|
55
|
+
}`,
|
|
56
|
+
livePreview: (
|
|
57
|
+
<button aria-label="Go back">
|
|
58
|
+
<ArrowBoxLeftIcon className="text-fm-icon-active h-6 w-6" />
|
|
59
|
+
</button>
|
|
60
|
+
),
|
|
61
|
+
}}
|
|
62
|
+
relatedIcons={[
|
|
63
|
+
{
|
|
64
|
+
name: "ArrowLeftIcon",
|
|
65
|
+
description: "Simple left arrow",
|
|
66
|
+
icon: ArrowLeftIcon,
|
|
67
|
+
accentToken: "info",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: "ChevronLeftIcon",
|
|
71
|
+
description: "Left chevron",
|
|
72
|
+
icon: ChevronLeftIcon,
|
|
73
|
+
accentToken: "positive",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: "ArrowRightIcon",
|
|
77
|
+
description: "Simple right arrow",
|
|
78
|
+
icon: ArrowRightIcon,
|
|
79
|
+
accentToken: "warning",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
name: "ImportLeftArrowFolderIcon",
|
|
83
|
+
description: "Import with left arrow",
|
|
84
|
+
icon: ImportLeftArrowFolderIcon,
|
|
85
|
+
accentToken: "negative",
|
|
86
|
+
},
|
|
87
|
+
]}
|
|
88
|
+
/>
|
|
841
89
|
),
|
|
842
90
|
},
|
|
843
91
|
},
|
|
844
92
|
tags: ["autodocs"],
|
|
845
93
|
argTypes: {
|
|
846
|
-
|
|
847
|
-
control:
|
|
848
|
-
description: "
|
|
94
|
+
className: {
|
|
95
|
+
control: "text",
|
|
96
|
+
description: "CSS classes including size and color token",
|
|
849
97
|
},
|
|
850
98
|
withAccessibility: {
|
|
851
99
|
control: "boolean",
|
|
852
|
-
description: "
|
|
853
|
-
},
|
|
854
|
-
height: {
|
|
855
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
856
|
-
description: "Height of the icon in pixels",
|
|
857
|
-
},
|
|
858
|
-
fill: {
|
|
859
|
-
control: "color",
|
|
860
|
-
description: "Fill color of the icon",
|
|
861
|
-
},
|
|
862
|
-
stroke: {
|
|
863
|
-
control: "color",
|
|
864
|
-
description: "Stroke color of the icon",
|
|
865
|
-
},
|
|
866
|
-
strokeWidth: {
|
|
867
|
-
control: { type: "range", min: 1, max: 4, step: 0.5 },
|
|
868
|
-
description: "Stroke width of the icon",
|
|
869
|
-
},
|
|
870
|
-
className: {
|
|
871
|
-
control: "text",
|
|
872
|
-
description: "CSS classes for styling",
|
|
100
|
+
description: "Wrap with accessibility label",
|
|
873
101
|
},
|
|
874
102
|
},
|
|
875
103
|
}
|
|
@@ -877,242 +105,100 @@ function AccessibleBackButton({ onBack, children }) {
|
|
|
877
105
|
export default meta
|
|
878
106
|
type Story = StoryObj<typeof ArrowBoxLeftIcon>
|
|
879
107
|
|
|
880
|
-
// Story parameters for consistent dark theme
|
|
881
|
-
const storyParameters = {
|
|
882
|
-
backgrounds: {
|
|
883
|
-
default: "dark",
|
|
884
|
-
values: [
|
|
885
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
886
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
887
|
-
],
|
|
888
|
-
},
|
|
889
|
-
}
|
|
890
|
-
|
|
891
108
|
export const Default: Story = {
|
|
892
109
|
args: {
|
|
893
|
-
|
|
894
|
-
height: 24,
|
|
895
|
-
className: "text-fm-icon-positive",
|
|
110
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
896
111
|
withAccessibility: true,
|
|
897
112
|
},
|
|
898
|
-
parameters: storyParameters,
|
|
899
113
|
render: (args) => (
|
|
900
|
-
<
|
|
114
|
+
<IconDefaultCanvas>
|
|
901
115
|
<ArrowBoxLeftIcon {...args} />
|
|
902
|
-
</
|
|
116
|
+
</IconDefaultCanvas>
|
|
903
117
|
),
|
|
904
118
|
}
|
|
905
119
|
|
|
906
120
|
export const SizeVariations: Story = {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
"ArrowBoxLeftIcon in different sizes, from small UI elements to large navigation buttons.",
|
|
913
|
-
},
|
|
914
|
-
},
|
|
915
|
-
},
|
|
916
|
-
render: () => (
|
|
917
|
-
<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">
|
|
918
|
-
<div className="text-center">
|
|
919
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
920
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
921
|
-
</div>
|
|
922
|
-
<div className="text-center">
|
|
923
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
924
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
925
|
-
</div>
|
|
926
|
-
<div className="text-center">
|
|
927
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
928
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
929
|
-
</div>
|
|
930
|
-
<div className="text-center">
|
|
931
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
932
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
933
|
-
</div>
|
|
934
|
-
<div className="text-center">
|
|
935
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
936
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
937
|
-
</div>
|
|
938
|
-
<div className="text-center">
|
|
939
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
940
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
941
|
-
</div>
|
|
942
|
-
</div>
|
|
943
|
-
),
|
|
121
|
+
render: () => <IconSizeVariations icon={ArrowBoxLeftIcon} />,
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export const ColorVariations: Story = {
|
|
125
|
+
render: () => <IconColorVariations icon={ArrowBoxLeftIcon} />,
|
|
944
126
|
}
|
|
945
127
|
|
|
946
128
|
export const DirectionalVariations: Story = {
|
|
947
|
-
parameters: {
|
|
948
|
-
...storyParameters,
|
|
949
|
-
docs: {
|
|
950
|
-
description: {
|
|
951
|
-
story:
|
|
952
|
-
"ArrowBoxLeftIcon rotated to different directions for various navigation purposes.",
|
|
953
|
-
},
|
|
954
|
-
},
|
|
955
|
-
},
|
|
956
129
|
render: () => (
|
|
957
|
-
<
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
<ArrowBoxLeftIcon className="text-fm-icon-info h-8 w-8 rotate-180" />
|
|
968
|
-
</div>
|
|
969
|
-
<div className="text-fm-icon-active text-sm font-medium">Right</div>
|
|
970
|
-
<div className="text-fm-icon-info text-xs">rotate-180</div>
|
|
971
|
-
</div>
|
|
972
|
-
<div className="text-center">
|
|
973
|
-
<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">
|
|
974
|
-
<ArrowBoxLeftIcon className="text-fm-icon-info h-8 w-8 -rotate-90" />
|
|
975
|
-
</div>
|
|
976
|
-
<div className="text-fm-icon-active text-sm font-medium">Up</div>
|
|
977
|
-
<div className="text-fm-icon-info text-xs">-rotate-90</div>
|
|
978
|
-
</div>
|
|
979
|
-
<div className="text-center">
|
|
980
|
-
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
981
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-8 w-8 rotate-90" />
|
|
982
|
-
</div>
|
|
983
|
-
<div className="text-fm-icon-active text-sm font-medium">Down</div>
|
|
984
|
-
<div className="text-fm-icon-positive text-xs">rotate-90</div>
|
|
985
|
-
</div>
|
|
986
|
-
</div>
|
|
130
|
+
<IconDirectionalVariations
|
|
131
|
+
icon={ArrowBoxLeftIcon}
|
|
132
|
+
directions={[
|
|
133
|
+
{ label: "Left", className: "h-8 w-8 text-fm-icon-active" },
|
|
134
|
+
{
|
|
135
|
+
label: "Right",
|
|
136
|
+
className: "h-8 w-8 text-fm-icon-active rotate-180",
|
|
137
|
+
},
|
|
138
|
+
]}
|
|
139
|
+
/>
|
|
987
140
|
),
|
|
988
141
|
}
|
|
989
142
|
|
|
990
143
|
export const UsageExamples: Story = {
|
|
991
|
-
parameters: {
|
|
992
|
-
...storyParameters,
|
|
993
|
-
docs: {
|
|
994
|
-
description: {
|
|
995
|
-
story:
|
|
996
|
-
"Real-world usage examples showing ArrowBoxLeftIcon in different navigation contexts.",
|
|
997
|
-
},
|
|
998
|
-
},
|
|
999
|
-
},
|
|
1000
144
|
render: () => (
|
|
1001
|
-
<
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
</h3>
|
|
1016
|
-
<nav className="flex items-center !space-x-2 text-sm">
|
|
1017
|
-
<button className="text-fm-icon-positive hover:text-fm-icon-positive flex items-center gap-1">
|
|
1018
|
-
<ArrowBoxLeftIcon className="h-3 w-3" />
|
|
1019
|
-
<span>Home</span>
|
|
1020
|
-
</button>
|
|
1021
|
-
<span className="text-fm-placeholder">/</span>
|
|
1022
|
-
<span className="text-fm-secondary">Products</span>
|
|
1023
|
-
<span className="text-fm-placeholder">/</span>
|
|
1024
|
-
<span className="text-fm-icon-active">Details</span>
|
|
1025
|
-
</nav>
|
|
1026
|
-
</div>
|
|
1027
|
-
|
|
1028
|
-
{/* Pagination */}
|
|
1029
|
-
<div className="!space-y-2">
|
|
1030
|
-
<h3 className="text-fm-icon-active text-sm font-medium">Pagination</h3>
|
|
1031
|
-
<div className="flex items-center gap-4">
|
|
1032
|
-
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
1033
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-4 w-4" />
|
|
1034
|
-
<span className="text-fm-icon-active">Previous</span>
|
|
1035
|
-
</button>
|
|
1036
|
-
<span className="text-fm-secondary text-sm">Page 2 of 10</span>
|
|
1037
|
-
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
|
|
1038
|
-
<span className="text-fm-icon-active">Next</span>
|
|
1039
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-4 w-4 rotate-180" />
|
|
1040
|
-
</button>
|
|
145
|
+
<IconUsageCanvas>
|
|
146
|
+
<IconUsageSection title="Back Navigation Button">
|
|
147
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
148
|
+
<div className="flex items-center gap-3">
|
|
149
|
+
<button
|
|
150
|
+
className="border-fm-divider-secondary rounded-xl border p-2"
|
|
151
|
+
aria-label="Go back"
|
|
152
|
+
>
|
|
153
|
+
<ArrowBoxLeftIcon className="text-fm-icon-active h-5 w-5" />
|
|
154
|
+
</button>
|
|
155
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
156
|
+
Episode Details
|
|
157
|
+
</span>
|
|
158
|
+
</div>
|
|
1041
159
|
</div>
|
|
1042
|
-
</
|
|
160
|
+
</IconUsageSection>
|
|
1043
161
|
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
</h3>
|
|
1049
|
-
<div className="flex items-center gap-4">
|
|
1050
|
-
<button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary rounded-lg border p-2 transition-colors">
|
|
1051
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-5 w-5" />
|
|
162
|
+
<IconUsageSection title="Navigation Bar">
|
|
163
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
|
|
164
|
+
<button aria-label="Go back">
|
|
165
|
+
<ArrowBoxLeftIcon className="text-fm-icon-active h-5 w-5" />
|
|
1052
166
|
</button>
|
|
1053
|
-
<span className="text-fm-
|
|
167
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
168
|
+
My Podcasts
|
|
169
|
+
</span>
|
|
170
|
+
<div className="h-5 w-5" />
|
|
1054
171
|
</div>
|
|
1055
|
-
</
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
Hover Animation
|
|
1075
|
-
</h3>
|
|
1076
|
-
<button className="group border-fm-icon-positive/30 bg-fm-icon-positive/10 hover:bg-fm-icon-positive/20 rounded-lg border px-6 py-3 transition-colors">
|
|
1077
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive h-6 w-6 transition-transform duration-300 group-hover:-translate-x-2" />
|
|
1078
|
-
</button>
|
|
1079
|
-
<p className="text-fm-tertiary mt-2 text-xs">Hover to slide left</p>
|
|
1080
|
-
</div>
|
|
1081
|
-
|
|
1082
|
-
<div className="text-center">
|
|
1083
|
-
<h3 className="text-fm-icon-active mb-4 text-lg font-medium">
|
|
1084
|
-
Color Change
|
|
1085
|
-
</h3>
|
|
1086
|
-
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/10 hover:bg-fm-icon-positive/20 rounded-lg border px-6 py-3 transition-colors">
|
|
1087
|
-
<ArrowBoxLeftIcon className="text-fm-icon-positive hover:text-fm-icon-positive h-6 w-6 transition-colors duration-300" />
|
|
1088
|
-
</button>
|
|
1089
|
-
<p className="text-fm-tertiary mt-2 text-xs">Hover to lighten</p>
|
|
1090
|
-
</div>
|
|
1091
|
-
</div>
|
|
172
|
+
</IconUsageSection>
|
|
173
|
+
|
|
174
|
+
<IconUsageSection title="Step Return">
|
|
175
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
|
|
176
|
+
<div className="flex items-center gap-2">
|
|
177
|
+
<ArrowBoxLeftIcon className="text-fm-icon-info h-4 w-4" />
|
|
178
|
+
<span className="text-fm-secondary font-fm-text text-sm">
|
|
179
|
+
Return to step 1
|
|
180
|
+
</span>
|
|
181
|
+
</div>
|
|
182
|
+
<div className="flex items-center gap-2">
|
|
183
|
+
<ArrowBoxLeftIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
184
|
+
<span className="text-fm-tertiary font-fm-text text-sm">
|
|
185
|
+
Return to step 2
|
|
186
|
+
</span>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</IconUsageSection>
|
|
190
|
+
</IconUsageCanvas>
|
|
1092
191
|
),
|
|
1093
192
|
}
|
|
1094
193
|
|
|
1095
194
|
export const Playground: Story = {
|
|
1096
|
-
parameters: {
|
|
1097
|
-
...storyParameters,
|
|
1098
|
-
docs: {
|
|
1099
|
-
description: {
|
|
1100
|
-
story:
|
|
1101
|
-
"Interactive playground to experiment with different ArrowBoxLeftIcon configurations.",
|
|
1102
|
-
},
|
|
1103
|
-
},
|
|
1104
|
-
},
|
|
1105
195
|
args: {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
className: "text-fm-icon-positive",
|
|
1109
|
-
strokeWidth: 1.5,
|
|
196
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
197
|
+
withAccessibility: true,
|
|
1110
198
|
},
|
|
1111
199
|
render: (args) => (
|
|
1112
|
-
<
|
|
1113
|
-
<
|
|
1114
|
-
|
|
1115
|
-
</div>
|
|
1116
|
-
</div>
|
|
200
|
+
<IconPlaygroundCanvas>
|
|
201
|
+
<ArrowBoxLeftIcon {...args} />
|
|
202
|
+
</IconPlaygroundCanvas>
|
|
1117
203
|
),
|
|
1118
204
|
}
|