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 { ArrowRightIcon } from "src/ui/icons/arrow-right-icon"
|
|
5
|
+
import { BackwardTenSecondsIcon } from "src/ui/icons/backward-ten-seconds-icon"
|
|
6
|
+
import { ChevronLeftIcon } from "src/ui/icons/chevron-left-icon"
|
|
7
|
+
import { SkipBackwardIcon } from "src/ui/icons/skip-backward-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 { ArrowLeftIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof ArrowLeftIcon> = {
|
|
@@ -18,818 +33,73 @@ const meta: Meta<typeof ArrowLeftIcon> = {
|
|
|
18
33
|
},
|
|
19
34
|
docs: {
|
|
20
35
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
background: transparent !important;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent !important;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) !important;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent !important;
|
|
50
|
-
border: none !important;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: var(--color-fm-icon-active) !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
-
color: var(--color-fm-secondary-500) !important;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
color: var(--color-fm-icon-active) !important;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) !important;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
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-icon-info/10 via-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r" />
|
|
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-info/30 from-fm-icon-info/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
90
|
-
<ArrowLeftIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
ArrowLeftIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
|
-
A directional arrow icon pointing left for navigation, back
|
|
97
|
-
buttons, and directional indicators. Built with
|
|
98
|
-
accessibility in mind using Radix UI's AccessibleIcon
|
|
99
|
-
wrapper for seamless screen reader support.
|
|
100
|
-
</p>
|
|
101
|
-
|
|
102
|
-
{/* Stats */}
|
|
103
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
-
<div className="text-center">
|
|
105
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-fm-tertiary text-sm">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-fm-tertiary text-sm">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-fm-tertiary text-sm">
|
|
127
|
-
Customizable styling
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
{/* Content */}
|
|
136
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
-
{/* Quick Usage */}
|
|
138
|
-
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
140
|
-
Quick Start
|
|
141
|
-
</h2>
|
|
142
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
-
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
|
-
{`import { ArrowLeftIcon } from "@icons/arrow-left-icon"
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="info"
|
|
38
|
+
features={[
|
|
39
|
+
{
|
|
40
|
+
title: "Navigation Back",
|
|
41
|
+
description: "Clear back/return signal",
|
|
42
|
+
},
|
|
43
|
+
{ title: "currentColor", description: "Responds to text tokens" },
|
|
44
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
45
|
+
]}
|
|
46
|
+
quickStart={{
|
|
47
|
+
codeExample: `import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
|
|
150
48
|
|
|
151
49
|
function BackButton() {
|
|
152
50
|
return (
|
|
153
51
|
<button className="flex items-center gap-2">
|
|
154
|
-
<ArrowLeftIcon className="h-4 w-4 text-
|
|
155
|
-
|
|
52
|
+
<ArrowLeftIcon className="h-4 w-4 text-fm-icon-active" />
|
|
53
|
+
Go back
|
|
156
54
|
</button>
|
|
157
55
|
)
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
Prop
|
|
194
|
-
</th>
|
|
195
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
196
|
-
Type
|
|
197
|
-
</th>
|
|
198
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
|
-
Default
|
|
200
|
-
</th>
|
|
201
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
|
-
Description
|
|
203
|
-
</th>
|
|
204
|
-
</tr>
|
|
205
|
-
</thead>
|
|
206
|
-
<tbody>
|
|
207
|
-
{" "}
|
|
208
|
-
<tr className="bg-fm-surface-secondary!">
|
|
209
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
210
|
-
withAccessibility
|
|
211
|
-
</td>
|
|
212
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
213
|
-
boolean
|
|
214
|
-
</td>
|
|
215
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
216
|
-
true
|
|
217
|
-
</td>
|
|
218
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
219
|
-
Whether to wrap the icon with accessibility feature
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
223
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
224
|
-
height
|
|
225
|
-
</td>
|
|
226
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
227
|
-
number | string
|
|
228
|
-
</td>
|
|
229
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
230
|
-
20
|
|
231
|
-
</td>
|
|
232
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
233
|
-
Height of the icon in pixels
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
237
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
238
|
-
stroke
|
|
239
|
-
</td>
|
|
240
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
241
|
-
string
|
|
242
|
-
</td>
|
|
243
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
244
|
-
currentColor
|
|
245
|
-
</td>
|
|
246
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
247
|
-
Stroke color of the icon
|
|
248
|
-
</td>
|
|
249
|
-
</tr>
|
|
250
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
251
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
252
|
-
strokeWidth
|
|
253
|
-
</td>
|
|
254
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
255
|
-
number | string
|
|
256
|
-
</td>
|
|
257
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
258
|
-
1.5
|
|
259
|
-
</td>
|
|
260
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
261
|
-
Width of the stroke
|
|
262
|
-
</td>
|
|
263
|
-
</tr>
|
|
264
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
265
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
266
|
-
className
|
|
267
|
-
</td>
|
|
268
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
|
-
string
|
|
270
|
-
</td>
|
|
271
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
272
|
-
-
|
|
273
|
-
</td>
|
|
274
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
275
|
-
CSS classes for styling
|
|
276
|
-
</td>
|
|
277
|
-
</tr>
|
|
278
|
-
<tr className="bg-fm-surface-secondary!">
|
|
279
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
280
|
-
...svgProps
|
|
281
|
-
</td>
|
|
282
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
283
|
-
SVGProps
|
|
284
|
-
</td>
|
|
285
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
286
|
-
-
|
|
287
|
-
</td>
|
|
288
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
289
|
-
All standard SVG element props
|
|
290
|
-
</td>
|
|
291
|
-
</tr>
|
|
292
|
-
</tbody>
|
|
293
|
-
</table>
|
|
294
|
-
</div>
|
|
295
|
-
</div>
|
|
296
|
-
|
|
297
|
-
{/* Size Variations */}
|
|
298
|
-
<div className="!space-y-8">
|
|
299
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
300
|
-
Size Variations
|
|
301
|
-
</h2>
|
|
302
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
303
|
-
<div className="!space-y-6">
|
|
304
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
305
|
-
<div className="!space-y-4">
|
|
306
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
307
|
-
Standard Sizes
|
|
308
|
-
</h3>
|
|
309
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
310
|
-
<div className="text-center">
|
|
311
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
312
|
-
<span className="text-fm-tertiary text-xs">
|
|
313
|
-
12px
|
|
314
|
-
</span>
|
|
315
|
-
</div>
|
|
316
|
-
<div className="text-center">
|
|
317
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
318
|
-
<span className="text-fm-tertiary text-xs">
|
|
319
|
-
16px
|
|
320
|
-
</span>
|
|
321
|
-
</div>
|
|
322
|
-
<div className="text-center">
|
|
323
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
324
|
-
<span className="text-fm-tertiary text-xs">
|
|
325
|
-
20px
|
|
326
|
-
</span>
|
|
327
|
-
</div>
|
|
328
|
-
<div className="text-center">
|
|
329
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
330
|
-
<span className="text-fm-tertiary text-xs">
|
|
331
|
-
24px
|
|
332
|
-
</span>
|
|
333
|
-
</div>
|
|
334
|
-
<div className="text-center">
|
|
335
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
336
|
-
<span className="text-fm-tertiary text-xs">
|
|
337
|
-
32px
|
|
338
|
-
</span>
|
|
339
|
-
</div>
|
|
340
|
-
<div className="text-center">
|
|
341
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
342
|
-
<span className="text-fm-tertiary text-xs">
|
|
343
|
-
48px
|
|
344
|
-
</span>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
</div>
|
|
348
|
-
|
|
349
|
-
<div className="!space-y-4">
|
|
350
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
351
|
-
Code Example
|
|
352
|
-
</h3>
|
|
353
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
354
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
355
|
-
{`// Small (16px)
|
|
356
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
357
|
-
|
|
358
|
-
// Medium (24px)
|
|
359
|
-
<ArrowLeftIcon className="h-6 w-6" />
|
|
360
|
-
|
|
361
|
-
// Large (32px)
|
|
362
|
-
<ArrowLeftIcon className="h-8 w-8" />
|
|
363
|
-
|
|
364
|
-
// Custom size and stroke
|
|
365
|
-
<ArrowLeftIcon
|
|
366
|
-
width={40}
|
|
367
|
-
height={40}
|
|
368
|
-
strokeWidth={2}
|
|
369
|
-
/>`}
|
|
370
|
-
</pre>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
</div>
|
|
377
|
-
|
|
378
|
-
{/* Color Variations */}
|
|
379
|
-
<div className="!space-y-8">
|
|
380
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
381
|
-
Color Variations
|
|
382
|
-
</h2>
|
|
383
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
384
|
-
<div className="!space-y-4">
|
|
385
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
386
|
-
Semantic Colors
|
|
387
|
-
</h3>
|
|
388
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
389
|
-
<div className="flex items-center gap-4">
|
|
390
|
-
<ArrowLeftIcon className="text-fm-icon-info h-6 w-6" />
|
|
391
|
-
<div>
|
|
392
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
393
|
-
Primary
|
|
394
|
-
</div>
|
|
395
|
-
<div className="text-fm-tertiary text-xs">
|
|
396
|
-
text-fm-icon-info
|
|
397
|
-
</div>
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
<div className="flex items-center gap-4">
|
|
401
|
-
<ArrowLeftIcon className="text-fm-placeholder h-6 w-6" />
|
|
402
|
-
<div>
|
|
403
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
404
|
-
Secondary
|
|
405
|
-
</div>
|
|
406
|
-
<div className="text-fm-tertiary text-xs">
|
|
407
|
-
text-fm-placeholder
|
|
408
|
-
</div>
|
|
409
|
-
</div>
|
|
410
|
-
</div>
|
|
411
|
-
<div className="flex items-center gap-4">
|
|
412
|
-
<ArrowLeftIcon className="text-fm-icon-active h-6 w-6" />
|
|
413
|
-
<div>
|
|
414
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
415
|
-
Contrast
|
|
416
|
-
</div>
|
|
417
|
-
<div className="text-fm-tertiary text-xs">
|
|
418
|
-
text-fm-icon-active
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
</div>
|
|
422
|
-
<div className="flex items-center gap-4">
|
|
423
|
-
<ArrowLeftIcon className="text-fm-placeholder h-6 w-6" />
|
|
424
|
-
<div>
|
|
425
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
426
|
-
Disabled
|
|
427
|
-
</div>
|
|
428
|
-
<div className="text-fm-tertiary text-xs">
|
|
429
|
-
text-fm-placeholder
|
|
430
|
-
</div>
|
|
431
|
-
</div>
|
|
432
|
-
</div>
|
|
433
|
-
</div>
|
|
434
|
-
</div>
|
|
435
|
-
|
|
436
|
-
<div className="!space-y-4">
|
|
437
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
438
|
-
Custom Colors
|
|
439
|
-
</h3>
|
|
440
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
441
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
442
|
-
{`// Using Tailwind classes
|
|
443
|
-
<ArrowLeftIcon className="h-6 w-6 text-blue-400" />
|
|
444
|
-
<ArrowLeftIcon className="h-6 w-6 text-gray-500" />
|
|
445
|
-
|
|
446
|
-
// Using CSS custom properties
|
|
447
|
-
<ArrowLeftIcon
|
|
448
|
-
className="h-6 w-6"
|
|
449
|
-
style={{ color: 'var(--color-primary)' }}
|
|
450
|
-
/>
|
|
451
|
-
|
|
452
|
-
// Direct stroke prop
|
|
453
|
-
<ArrowLeftIcon
|
|
454
|
-
width={24}
|
|
455
|
-
height={24}
|
|
456
|
-
stroke="#3b82f6"
|
|
457
|
-
/>`}
|
|
458
|
-
</pre>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
</div>
|
|
462
|
-
</div>
|
|
463
|
-
|
|
464
|
-
{/* Usage Examples */}
|
|
465
|
-
<div className="!space-y-8">
|
|
466
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
467
|
-
Usage Examples
|
|
468
|
-
</h2>
|
|
469
|
-
|
|
470
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
471
|
-
{/* Back Navigation */}
|
|
472
|
-
<div className="!space-y-4">
|
|
473
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
474
|
-
Back Navigation
|
|
475
|
-
</h3>
|
|
476
|
-
<div className="!space-y-4">
|
|
477
|
-
<div className="flex gap-4">
|
|
478
|
-
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
479
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
480
|
-
Back
|
|
481
|
-
</button>
|
|
482
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
|
|
483
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
484
|
-
Previous
|
|
485
|
-
</button>
|
|
486
|
-
</div>
|
|
487
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
488
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
489
|
-
{`// Primary back button
|
|
490
|
-
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
491
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
492
|
-
Back
|
|
493
|
-
</button>
|
|
494
|
-
|
|
495
|
-
// Secondary previous button
|
|
496
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
497
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
498
|
-
Previous
|
|
499
|
-
</button>`}
|
|
500
|
-
</pre>
|
|
501
|
-
</div>
|
|
502
|
-
</div>
|
|
503
|
-
</div>
|
|
504
|
-
|
|
505
|
-
{/* Breadcrumb Navigation */}
|
|
506
|
-
<div className="!space-y-4">
|
|
507
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
508
|
-
Breadcrumb Navigation
|
|
509
|
-
</h3>
|
|
510
|
-
<div className="!space-y-4">
|
|
511
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
512
|
-
<div className="flex items-center gap-2 text-sm">
|
|
513
|
-
<button className="text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-1 rounded px-2 py-1 transition-colors">
|
|
514
|
-
<ArrowLeftIcon className="h-3 w-3" />
|
|
515
|
-
<span>Home</span>
|
|
516
|
-
</button>
|
|
517
|
-
<span className="text-fm-placeholder">/</span>
|
|
518
|
-
<span className="text-fm-tertiary">Products</span>
|
|
519
|
-
<span className="text-fm-placeholder">/</span>
|
|
520
|
-
<span className="text-fm-icon-active">Laptops</span>
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
523
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
524
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
525
|
-
{`<div className="flex items-center gap-2 text-sm">
|
|
526
|
-
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 hover:bg-blue-500/20">
|
|
527
|
-
<ArrowLeftIcon className="h-3 w-3" />
|
|
528
|
-
<span>Home</span>
|
|
529
|
-
</button>
|
|
530
|
-
<span className="text-white/40">/</span>
|
|
531
|
-
<span className="text-white/60">Products</span>
|
|
532
|
-
<span className="text-white/40">/</span>
|
|
533
|
-
<span className="text-white">Laptops</span>
|
|
534
|
-
</div>`}
|
|
535
|
-
</pre>
|
|
536
|
-
</div>
|
|
537
|
-
</div>
|
|
538
|
-
</div>
|
|
539
|
-
|
|
540
|
-
{/* Pagination */}
|
|
541
|
-
<div className="!space-y-4">
|
|
542
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
543
|
-
Pagination Controls
|
|
544
|
-
</h3>
|
|
545
|
-
<div className="!space-y-4">
|
|
546
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
547
|
-
<div className="flex items-center justify-between">
|
|
548
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
|
|
549
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
550
|
-
Previous
|
|
551
|
-
</button>
|
|
552
|
-
<div className="flex items-center gap-2">
|
|
553
|
-
<span className="text-fm-tertiary text-sm">
|
|
554
|
-
Page
|
|
555
|
-
</span>
|
|
556
|
-
<span className="text-fm-icon-active">2</span>
|
|
557
|
-
<span className="text-fm-tertiary text-sm">
|
|
558
|
-
of 10
|
|
559
|
-
</span>
|
|
560
|
-
</div>
|
|
561
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
|
|
562
|
-
Next
|
|
563
|
-
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
564
|
-
</button>
|
|
565
|
-
</div>
|
|
566
|
-
</div>
|
|
567
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
568
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
569
|
-
{`<div className="flex items-center justify-between">
|
|
570
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
571
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
572
|
-
Previous
|
|
573
|
-
</button>
|
|
574
|
-
<div className="flex items-center gap-2">
|
|
575
|
-
<span className="text-sm text-white/60">Page</span>
|
|
576
|
-
<span className="text-white">2</span>
|
|
577
|
-
<span className="text-sm text-white/60">of 10</span>
|
|
578
|
-
</div>
|
|
579
|
-
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
580
|
-
Next
|
|
581
|
-
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
582
|
-
</button>
|
|
583
|
-
</div>`}
|
|
584
|
-
</pre>
|
|
585
|
-
</div>
|
|
586
|
-
</div>
|
|
587
|
-
</div>
|
|
588
|
-
|
|
589
|
-
{/* Sidebar Toggle */}
|
|
590
|
-
<div className="!space-y-4">
|
|
591
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
592
|
-
Sidebar Toggle
|
|
593
|
-
</h3>
|
|
594
|
-
<div className="!space-y-4">
|
|
595
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
596
|
-
<div className="flex items-center gap-4">
|
|
597
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary rounded-lg border p-2 transition-colors">
|
|
598
|
-
<ArrowLeftIcon className="h-5 w-5" />
|
|
599
|
-
</button>
|
|
600
|
-
<div>
|
|
601
|
-
<div className="text-fm-icon-active font-medium">
|
|
602
|
-
Collapse Sidebar
|
|
603
|
-
</div>
|
|
604
|
-
<div className="text-fm-tertiary text-sm">
|
|
605
|
-
Hide navigation panel
|
|
606
|
-
</div>
|
|
607
|
-
</div>
|
|
608
|
-
</div>
|
|
609
|
-
</div>
|
|
610
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
611
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
612
|
-
{`// Sidebar collapse button
|
|
613
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
614
|
-
<ArrowLeftIcon className="h-5 w-5" />
|
|
615
|
-
</button>
|
|
616
|
-
|
|
617
|
-
// With rotation for expand state
|
|
618
|
-
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
619
|
-
<ArrowLeftIcon className="h-5 w-5 rotate-180" />
|
|
620
|
-
</button>`}
|
|
621
|
-
</pre>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
</div>
|
|
625
|
-
</div>
|
|
626
|
-
</div>
|
|
627
|
-
|
|
628
|
-
{/* Accessibility */}
|
|
629
|
-
<div className="!space-y-8">
|
|
630
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
631
|
-
Accessibility Features
|
|
632
|
-
</h2>
|
|
633
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
634
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
635
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
636
|
-
✅ Built-in Features
|
|
637
|
-
</h3>
|
|
638
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
639
|
-
<li className="text-fm-secondary!">
|
|
640
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
641
|
-
</li>
|
|
642
|
-
<li className="text-fm-secondary!">
|
|
643
|
-
Provides screen reader label "Arrow left icon"
|
|
644
|
-
</li>
|
|
645
|
-
<li className="text-fm-secondary!">
|
|
646
|
-
Supports keyboard navigation when interactive
|
|
647
|
-
</li>
|
|
648
|
-
<li className="text-fm-secondary!">
|
|
649
|
-
Maintains proper color contrast ratios
|
|
650
|
-
</li>
|
|
651
|
-
<li className="text-fm-secondary!">
|
|
652
|
-
Scales with user's font size preferences
|
|
653
|
-
</li>
|
|
654
|
-
</ul>
|
|
655
|
-
</div>
|
|
656
|
-
|
|
657
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
658
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
659
|
-
💡 Best Practices
|
|
660
|
-
</h3>
|
|
661
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
662
|
-
<li className="text-fm-secondary!">
|
|
663
|
-
Always pair with descriptive text for navigation
|
|
664
|
-
</li>
|
|
665
|
-
<li className="text-fm-secondary!">
|
|
666
|
-
Use consistent direction conventions
|
|
667
|
-
</li>
|
|
668
|
-
<li className="text-fm-secondary!">
|
|
669
|
-
Ensure sufficient color contrast on backgrounds
|
|
670
|
-
</li>
|
|
671
|
-
<li className="text-fm-secondary!">
|
|
672
|
-
Add focus states for interactive elements
|
|
673
|
-
</li>
|
|
674
|
-
<li className="text-fm-secondary!">
|
|
675
|
-
Consider cultural reading directions
|
|
676
|
-
</li>
|
|
677
|
-
</ul>
|
|
678
|
-
</div>
|
|
679
|
-
</div>
|
|
680
|
-
|
|
681
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
682
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
683
|
-
Custom Accessibility Label
|
|
684
|
-
</h3>
|
|
685
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
686
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
687
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
688
|
-
{`// Custom implementation with specific label
|
|
689
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
690
|
-
|
|
691
|
-
function CustomArrowLeftIcon({ label = "Go back", ...props }) {
|
|
692
|
-
return (
|
|
693
|
-
<AccessibleIcon label={label}>
|
|
694
|
-
<ArrowLeftIcon {...props} />
|
|
695
|
-
</AccessibleIcon>
|
|
696
|
-
)
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
// Usage with specific context
|
|
700
|
-
<CustomArrowLeftIcon
|
|
701
|
-
label="Return to previous page"
|
|
702
|
-
className="h-4 w-4 text-blue-400"
|
|
703
|
-
/>`}
|
|
704
|
-
</pre>
|
|
705
|
-
</div>
|
|
706
|
-
<div className="!space-y-4">
|
|
707
|
-
<p className="text-fm-secondary! text-sm">
|
|
708
|
-
For specific contexts, you can wrap the ArrowLeftIcon
|
|
709
|
-
with a custom AccessibleIcon component that provides
|
|
710
|
-
more descriptive labels for navigation actions and
|
|
711
|
-
directional guidance.
|
|
712
|
-
</p>
|
|
713
|
-
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
714
|
-
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
715
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
716
|
-
<span>
|
|
717
|
-
This approach gives screen readers more context
|
|
718
|
-
</span>
|
|
719
|
-
</div>
|
|
720
|
-
</div>
|
|
721
|
-
</div>
|
|
722
|
-
</div>
|
|
723
|
-
</div>
|
|
724
|
-
</div>
|
|
725
|
-
|
|
726
|
-
{/* Related Icons */}
|
|
727
|
-
<div className="!space-y-8">
|
|
728
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
729
|
-
Related Icons
|
|
730
|
-
</h2>
|
|
731
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
732
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
733
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
734
|
-
<ArrowLeftIcon className="text-fm-icon-info h-6 w-6 rotate-180" />
|
|
735
|
-
</div>
|
|
736
|
-
<div>
|
|
737
|
-
<div className="text-fm-icon-active font-medium">
|
|
738
|
-
ArrowRightIcon
|
|
739
|
-
</div>
|
|
740
|
-
<div className="text-fm-tertiary text-xs">
|
|
741
|
-
Forward navigation
|
|
742
|
-
</div>
|
|
743
|
-
</div>
|
|
744
|
-
</div>
|
|
745
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
746
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
747
|
-
<ArrowLeftIcon className="text-fm-icon-positive h-6 w-6 -rotate-90" />
|
|
748
|
-
</div>
|
|
749
|
-
<div>
|
|
750
|
-
<div className="text-fm-icon-active font-medium">
|
|
751
|
-
ArrowUpIcon
|
|
752
|
-
</div>
|
|
753
|
-
<div className="text-fm-tertiary text-xs">
|
|
754
|
-
Upward direction
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
</div>
|
|
758
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
759
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
760
|
-
<ArrowLeftIcon className="text-fm-secondary-600 h-6 w-6 rotate-90" />
|
|
761
|
-
</div>
|
|
762
|
-
<div>
|
|
763
|
-
<div className="text-fm-icon-active font-medium">
|
|
764
|
-
ArrowDownIcon
|
|
765
|
-
</div>
|
|
766
|
-
<div className="text-fm-tertiary text-xs">
|
|
767
|
-
Downward direction
|
|
768
|
-
</div>
|
|
769
|
-
</div>
|
|
770
|
-
</div>
|
|
771
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
772
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
773
|
-
<span className="text-2xl">🔙</span>
|
|
774
|
-
</div>
|
|
775
|
-
<div>
|
|
776
|
-
<div className="text-fm-icon-active font-medium">
|
|
777
|
-
BackIcon
|
|
778
|
-
</div>
|
|
779
|
-
<div className="text-fm-tertiary text-xs">
|
|
780
|
-
Navigation back
|
|
781
|
-
</div>
|
|
782
|
-
</div>
|
|
783
|
-
</div>
|
|
784
|
-
</div>
|
|
785
|
-
</div>
|
|
786
|
-
</div>
|
|
787
|
-
|
|
788
|
-
{/* Footer */}
|
|
789
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
790
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
791
|
-
<div className="!space-y-4 text-center">
|
|
792
|
-
<p className="text-fm-tertiary!">
|
|
793
|
-
ArrowLeftIcon is part of the Aural UI icon library, built
|
|
794
|
-
with accessibility and navigation clarity in mind.
|
|
795
|
-
</p>
|
|
796
|
-
<p className="text-fm-placeholder! text-sm">
|
|
797
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
798
|
-
compatibility and follow WCAG guidelines.
|
|
799
|
-
</p>
|
|
800
|
-
</div>
|
|
801
|
-
</div>
|
|
802
|
-
</div>
|
|
803
|
-
</div>
|
|
804
|
-
</>
|
|
56
|
+
}`,
|
|
57
|
+
livePreview: (
|
|
58
|
+
<button className="text-fm-primary font-fm-text flex items-center gap-2 text-sm">
|
|
59
|
+
<ArrowLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
60
|
+
Go back
|
|
61
|
+
</button>
|
|
62
|
+
),
|
|
63
|
+
}}
|
|
64
|
+
relatedIcons={[
|
|
65
|
+
{
|
|
66
|
+
name: "ArrowRightIcon",
|
|
67
|
+
description: "Points right",
|
|
68
|
+
icon: ArrowRightIcon,
|
|
69
|
+
accentToken: "info",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "ChevronLeftIcon",
|
|
73
|
+
description: "Lighter left chevron",
|
|
74
|
+
icon: ChevronLeftIcon,
|
|
75
|
+
accentToken: "positive",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: "BackwardTenSecondsIcon",
|
|
79
|
+
description: "Rewind 10 seconds",
|
|
80
|
+
icon: BackwardTenSecondsIcon,
|
|
81
|
+
accentToken: "warning",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: "SkipBackwardIcon",
|
|
85
|
+
description: "Skip to previous",
|
|
86
|
+
icon: SkipBackwardIcon,
|
|
87
|
+
accentToken: "negative",
|
|
88
|
+
},
|
|
89
|
+
]}
|
|
90
|
+
/>
|
|
805
91
|
),
|
|
806
92
|
},
|
|
807
93
|
},
|
|
808
94
|
tags: ["autodocs"],
|
|
809
95
|
argTypes: {
|
|
810
|
-
|
|
811
|
-
control:
|
|
812
|
-
description: "
|
|
96
|
+
className: {
|
|
97
|
+
control: "text",
|
|
98
|
+
description: "CSS classes including size and color token",
|
|
813
99
|
},
|
|
814
100
|
withAccessibility: {
|
|
815
101
|
control: "boolean",
|
|
816
|
-
description: "
|
|
817
|
-
},
|
|
818
|
-
height: {
|
|
819
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
820
|
-
description: "Height of the icon in pixels",
|
|
821
|
-
},
|
|
822
|
-
stroke: {
|
|
823
|
-
control: "color",
|
|
824
|
-
description: "Stroke color of the icon",
|
|
825
|
-
},
|
|
826
|
-
strokeWidth: {
|
|
827
|
-
control: { type: "range", min: 0.5, max: 4, step: 0.1 },
|
|
828
|
-
description: "Width of the stroke",
|
|
829
|
-
},
|
|
830
|
-
className: {
|
|
831
|
-
control: "text",
|
|
832
|
-
description: "CSS classes for styling",
|
|
102
|
+
description: "Wrap with accessibility label",
|
|
833
103
|
},
|
|
834
104
|
},
|
|
835
105
|
}
|
|
@@ -837,212 +107,104 @@ function CustomArrowLeftIcon({ label = "Go back", ...props }) {
|
|
|
837
107
|
export default meta
|
|
838
108
|
type Story = StoryObj<typeof ArrowLeftIcon>
|
|
839
109
|
|
|
840
|
-
// Story parameters for consistent dark theme
|
|
841
|
-
const storyParameters = {
|
|
842
|
-
backgrounds: {
|
|
843
|
-
default: "dark",
|
|
844
|
-
values: [
|
|
845
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
846
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
847
|
-
],
|
|
848
|
-
},
|
|
849
|
-
}
|
|
850
|
-
|
|
851
110
|
export const Default: Story = {
|
|
852
111
|
args: {
|
|
853
|
-
|
|
854
|
-
height: 20,
|
|
855
|
-
className: "text-fm-icon-info",
|
|
112
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
856
113
|
withAccessibility: true,
|
|
857
114
|
},
|
|
858
|
-
parameters: storyParameters,
|
|
859
115
|
render: (args) => (
|
|
860
|
-
<
|
|
116
|
+
<IconDefaultCanvas>
|
|
861
117
|
<ArrowLeftIcon {...args} />
|
|
862
|
-
</
|
|
118
|
+
</IconDefaultCanvas>
|
|
863
119
|
),
|
|
864
120
|
}
|
|
865
121
|
|
|
866
122
|
export const SizeVariations: Story = {
|
|
867
|
-
|
|
868
|
-
...storyParameters,
|
|
869
|
-
docs: {
|
|
870
|
-
description: {
|
|
871
|
-
story:
|
|
872
|
-
"ArrowLeftIcon in different sizes, from small UI elements to large navigation displays.",
|
|
873
|
-
},
|
|
874
|
-
},
|
|
875
|
-
},
|
|
876
|
-
render: () => (
|
|
877
|
-
<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">
|
|
878
|
-
<div className="text-center">
|
|
879
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
880
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
881
|
-
</div>
|
|
882
|
-
<div className="text-center">
|
|
883
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
884
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
885
|
-
</div>
|
|
886
|
-
<div className="text-center">
|
|
887
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
888
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
889
|
-
</div>
|
|
890
|
-
<div className="text-center">
|
|
891
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
892
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
893
|
-
</div>
|
|
894
|
-
<div className="text-center">
|
|
895
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
896
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
897
|
-
</div>
|
|
898
|
-
<div className="text-center">
|
|
899
|
-
<ArrowLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
900
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
901
|
-
</div>
|
|
902
|
-
</div>
|
|
903
|
-
),
|
|
123
|
+
render: () => <IconSizeVariations icon={ArrowLeftIcon} />,
|
|
904
124
|
}
|
|
905
125
|
|
|
906
126
|
export const ColorVariations: Story = {
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
story:
|
|
912
|
-
"ArrowLeftIcon in different semantic colors for various navigation contexts.",
|
|
913
|
-
},
|
|
914
|
-
},
|
|
915
|
-
},
|
|
127
|
+
render: () => <IconColorVariations icon={ArrowLeftIcon} />,
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export const DirectionalVariations: Story = {
|
|
916
131
|
render: () => (
|
|
917
|
-
<
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
</div>
|
|
936
|
-
<div className="text-fm-icon-active text-sm font-medium">Contrast</div>
|
|
937
|
-
<div className="text-fm-tertiary text-xs">text-fm-icon-active</div>
|
|
938
|
-
</div>
|
|
939
|
-
<div className="text-center">
|
|
940
|
-
<div className="border-fm-divider-primary bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
941
|
-
<ArrowLeftIcon className="text-fm-placeholder h-8 w-8" />
|
|
942
|
-
</div>
|
|
943
|
-
<div className="text-fm-icon-active text-sm font-medium">Disabled</div>
|
|
944
|
-
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
945
|
-
</div>
|
|
946
|
-
</div>
|
|
132
|
+
<IconDirectionalVariations
|
|
133
|
+
icon={ArrowLeftIcon}
|
|
134
|
+
directions={[
|
|
135
|
+
{ label: "Left", className: "h-8 w-8 text-fm-icon-active" },
|
|
136
|
+
{
|
|
137
|
+
label: "Up",
|
|
138
|
+
className: "h-8 w-8 text-fm-icon-active rotate-90",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
label: "Right",
|
|
142
|
+
className: "h-8 w-8 text-fm-icon-active rotate-180",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "Down",
|
|
146
|
+
className: "h-8 w-8 text-fm-icon-active -rotate-90",
|
|
147
|
+
},
|
|
148
|
+
]}
|
|
149
|
+
/>
|
|
947
150
|
),
|
|
948
151
|
}
|
|
949
152
|
|
|
950
153
|
export const UsageExamples: Story = {
|
|
951
|
-
parameters: {
|
|
952
|
-
...storyParameters,
|
|
953
|
-
docs: {
|
|
954
|
-
description: {
|
|
955
|
-
story:
|
|
956
|
-
"Real-world usage examples showing ArrowLeftIcon in different navigation contexts.",
|
|
957
|
-
},
|
|
958
|
-
},
|
|
959
|
-
},
|
|
960
154
|
render: () => (
|
|
961
|
-
<
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
970
|
-
Back
|
|
971
|
-
</button>
|
|
972
|
-
<button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
|
|
973
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
974
|
-
Previous
|
|
155
|
+
<IconUsageCanvas>
|
|
156
|
+
<IconUsageSection title="Back Navigation">
|
|
157
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
158
|
+
<button className="flex items-center gap-2">
|
|
159
|
+
<ArrowLeftIcon className="text-fm-icon-active h-5 w-5" />
|
|
160
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
161
|
+
Back to Library
|
|
162
|
+
</span>
|
|
975
163
|
</button>
|
|
976
164
|
</div>
|
|
977
|
-
</
|
|
165
|
+
</IconUsageSection>
|
|
978
166
|
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
982
|
-
Breadcrumb Navigation
|
|
983
|
-
</h3>
|
|
984
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
985
|
-
<div className="flex items-center gap-2 text-sm">
|
|
986
|
-
<button className="text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-1 rounded px-2 py-1 transition-colors">
|
|
987
|
-
<ArrowLeftIcon className="h-3 w-3" />
|
|
988
|
-
<span>Home</span>
|
|
989
|
-
</button>
|
|
990
|
-
<span className="text-fm-placeholder">/</span>
|
|
991
|
-
<span className="text-fm-tertiary">Products</span>
|
|
992
|
-
<span className="text-fm-placeholder">/</span>
|
|
993
|
-
<span className="text-fm-icon-active">Laptops</span>
|
|
994
|
-
</div>
|
|
995
|
-
</div>
|
|
996
|
-
</div>
|
|
997
|
-
|
|
998
|
-
{/* Pagination */}
|
|
999
|
-
<div className="!space-y-2">
|
|
1000
|
-
<h3 className="text-fm-icon-active text-sm font-medium">
|
|
1001
|
-
Pagination Controls
|
|
1002
|
-
</h3>
|
|
1003
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
167
|
+
<IconUsageSection title="Wizard Step Navigation">
|
|
168
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
1004
169
|
<div className="flex items-center justify-between">
|
|
1005
|
-
<button className="border-fm-divider-
|
|
1006
|
-
<ArrowLeftIcon className="h-4 w-4" />
|
|
1007
|
-
|
|
170
|
+
<button className="border-fm-divider-secondary flex items-center gap-1.5 rounded-lg border px-3 py-2">
|
|
171
|
+
<ArrowLeftIcon className="text-fm-icon-active h-4 w-4" />
|
|
172
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
173
|
+
Previous
|
|
174
|
+
</span>
|
|
1008
175
|
</button>
|
|
1009
|
-
<
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
Next
|
|
1016
|
-
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
176
|
+
<span className="text-fm-secondary font-fm-text text-sm">
|
|
177
|
+
Step 2 of 4
|
|
178
|
+
</span>
|
|
179
|
+
<button className="bg-fm-icon-active flex items-center gap-1.5 rounded-lg px-3 py-2">
|
|
180
|
+
<span className="text-fm-primary font-fm-text text-sm">Next</span>
|
|
181
|
+
<ArrowRightIcon className="text-fm-primary h-4 w-4" />
|
|
1017
182
|
</button>
|
|
1018
183
|
</div>
|
|
1019
184
|
</div>
|
|
1020
|
-
</
|
|
1021
|
-
|
|
185
|
+
</IconUsageSection>
|
|
186
|
+
|
|
187
|
+
<IconUsageSection title="Swipe Hint">
|
|
188
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-center gap-2 rounded-xl border p-4">
|
|
189
|
+
<ArrowLeftIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
190
|
+
<span className="text-fm-tertiary font-fm-text text-xs">
|
|
191
|
+
Swipe to navigate
|
|
192
|
+
</span>
|
|
193
|
+
<ArrowRightIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
194
|
+
</div>
|
|
195
|
+
</IconUsageSection>
|
|
196
|
+
</IconUsageCanvas>
|
|
1022
197
|
),
|
|
1023
198
|
}
|
|
1024
199
|
|
|
1025
200
|
export const Playground: Story = {
|
|
1026
|
-
parameters: {
|
|
1027
|
-
...storyParameters,
|
|
1028
|
-
docs: {
|
|
1029
|
-
description: {
|
|
1030
|
-
story:
|
|
1031
|
-
"Interactive playground to experiment with different ArrowLeftIcon configurations.",
|
|
1032
|
-
},
|
|
1033
|
-
},
|
|
1034
|
-
},
|
|
1035
201
|
args: {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
strokeWidth: 1.5,
|
|
1039
|
-
className: "text-fm-icon-info",
|
|
202
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
203
|
+
withAccessibility: true,
|
|
1040
204
|
},
|
|
1041
205
|
render: (args) => (
|
|
1042
|
-
<
|
|
1043
|
-
<
|
|
1044
|
-
|
|
1045
|
-
</div>
|
|
1046
|
-
</div>
|
|
206
|
+
<IconPlaygroundCanvas>
|
|
207
|
+
<ArrowLeftIcon {...args} />
|
|
208
|
+
</IconPlaygroundCanvas>
|
|
1047
209
|
),
|
|
1048
210
|
}
|