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