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 { ArrowCornerUpRightIcon } from "src/ui/icons/arrow-corner-up-right-icon"
|
|
5
|
+
import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
|
|
6
|
+
import { ArrowRightIcon } from "src/ui/icons/arrow-right-icon"
|
|
7
|
+
import { ChevronRightIcon } from "src/ui/icons/chevron-right-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 { ArrowRightUpIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof ArrowRightUpIcon> = {
|
|
@@ -11,988 +26,85 @@ const meta: Meta<typeof ArrowRightUpIcon> = {
|
|
|
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
|
-
margin: 0 ;
|
|
34
|
-
background: transparent ;
|
|
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-violet-500/30 bg-gradient-to-br from-violet-500/20 to-purple-500/20">
|
|
90
|
-
<ArrowRightUpIcon className="h-12 w-12 text-violet-400" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="text-5xl font-bold !text-white">
|
|
93
|
-
ArrowRightUpIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A diagonal arrow icon indicating external links, expansions,
|
|
97
|
-
and upward navigation. Perfect for external links, opening
|
|
98
|
-
content in new windows, and showing growth or progression.
|
|
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-violet-300">
|
|
105
|
-
External
|
|
106
|
-
</div>
|
|
107
|
-
<div className="text-sm text-white/60">
|
|
108
|
-
Link indication
|
|
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-purple-300">
|
|
114
|
-
Growth
|
|
115
|
-
</div>
|
|
116
|
-
<div className="text-sm text-white/60">
|
|
117
|
-
Upward progression
|
|
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
|
-
Expansion
|
|
124
|
-
</div>
|
|
125
|
-
<div className="text-sm text-white/60">
|
|
126
|
-
Content opening
|
|
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-violet-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 { ArrowRightUpIcon } from "@icons/arrow-right-up-icon"
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="info"
|
|
38
|
+
features={[
|
|
39
|
+
{
|
|
40
|
+
title: "External Link",
|
|
41
|
+
description: "Signals navigation away",
|
|
42
|
+
},
|
|
43
|
+
{ title: "currentColor", description: "Responds to text tokens" },
|
|
44
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
45
|
+
]}
|
|
46
|
+
quickStart={{
|
|
47
|
+
codeExample: `import { ArrowRightUpIcon } from "src/ui/icons/arrow-right-up-icon"
|
|
149
48
|
|
|
150
49
|
function ExternalLink() {
|
|
151
50
|
return (
|
|
152
|
-
<a href="#" className="flex items-center gap-
|
|
153
|
-
|
|
154
|
-
<ArrowRightUpIcon className="h-
|
|
155
|
-
</a>
|
|
156
|
-
)
|
|
157
|
-
}`}
|
|
158
|
-
</pre>
|
|
159
|
-
</div>
|
|
160
|
-
</div>
|
|
161
|
-
|
|
162
|
-
<div className="!space-y-4">
|
|
163
|
-
<h3 className="text-xl font-semibold !text-violet-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
|
-
<a
|
|
168
|
-
href="#"
|
|
169
|
-
className="flex items-center gap-2 rounded-lg border border-violet-500/20 bg-violet-500/10 px-4 py-2 text-white transition-colors hover:bg-violet-500/20"
|
|
170
|
-
>
|
|
171
|
-
<span>Visit our blog</span>
|
|
172
|
-
<ArrowRightUpIcon className="h-4 w-4 text-violet-400 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
173
|
-
</a>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
</div>
|
|
178
|
-
|
|
179
|
-
{/* Props Documentation */}
|
|
180
|
-
<div className="!space-y-8">
|
|
181
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
182
|
-
Props & Configuration
|
|
183
|
-
</h2>
|
|
184
|
-
|
|
185
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
186
|
-
<div className="bg-white/5 p-4">
|
|
187
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
188
|
-
</div>
|
|
189
|
-
<table className="!my-0 w-full">
|
|
190
|
-
<thead className="bg-white/5">
|
|
191
|
-
<tr className="border-b border-white/10">
|
|
192
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
193
|
-
Prop
|
|
194
|
-
</th>
|
|
195
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
196
|
-
Type
|
|
197
|
-
</th>
|
|
198
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
199
|
-
Default
|
|
200
|
-
</th>
|
|
201
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
202
|
-
Description
|
|
203
|
-
</th>
|
|
204
|
-
</tr>
|
|
205
|
-
</thead>
|
|
206
|
-
<tbody>
|
|
207
|
-
{" "}
|
|
208
|
-
<tr className="!bg-black/10">
|
|
209
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
210
|
-
withAccessibility
|
|
211
|
-
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
213
|
-
boolean
|
|
214
|
-
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
216
|
-
true
|
|
217
|
-
</td>
|
|
218
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
219
|
-
Whether to wrap the icon with accessibility feature
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
223
|
-
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
224
|
-
height
|
|
225
|
-
</td>
|
|
226
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
-
number | string
|
|
228
|
-
</td>
|
|
229
|
-
<td className="px-6 py-4 text-sm !text-white/50">24</td>
|
|
230
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
231
|
-
Height of the icon in pixels
|
|
232
|
-
</td>
|
|
233
|
-
</tr>
|
|
234
|
-
<tr className="border-b border-white/5">
|
|
235
|
-
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
236
|
-
color
|
|
237
|
-
</td>
|
|
238
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
239
|
-
string
|
|
240
|
-
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
242
|
-
currentColor
|
|
243
|
-
</td>
|
|
244
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
245
|
-
Color of the icon
|
|
246
|
-
</td>
|
|
247
|
-
</tr>
|
|
248
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
249
|
-
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
250
|
-
className
|
|
251
|
-
</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
253
|
-
string
|
|
254
|
-
</td>
|
|
255
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
256
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
257
|
-
CSS classes for styling
|
|
258
|
-
</td>
|
|
259
|
-
</tr>
|
|
260
|
-
<tr className="!bg-black/10">
|
|
261
|
-
<td className="px-6 py-4 font-mono text-sm !text-violet-300">
|
|
262
|
-
...svgProps
|
|
263
|
-
</td>
|
|
264
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
|
-
SVGProps
|
|
266
|
-
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
268
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
269
|
-
All standard SVG element props
|
|
270
|
-
</td>
|
|
271
|
-
</tr>
|
|
272
|
-
</tbody>
|
|
273
|
-
</table>
|
|
274
|
-
</div>
|
|
275
|
-
</div>
|
|
276
|
-
|
|
277
|
-
{/* Size Variations */}
|
|
278
|
-
<div className="!space-y-8">
|
|
279
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
280
|
-
Size Variations
|
|
281
|
-
</h2>
|
|
282
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
283
|
-
<div className="!space-y-6">
|
|
284
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
285
|
-
<div className="!space-y-4">
|
|
286
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
287
|
-
Standard Sizes
|
|
288
|
-
</h3>
|
|
289
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
290
|
-
<div className="text-center">
|
|
291
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-3 w-3 text-violet-400" />
|
|
292
|
-
<span className="text-xs text-white/60">12px</span>
|
|
293
|
-
</div>
|
|
294
|
-
<div className="text-center">
|
|
295
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-4 w-4 text-violet-400" />
|
|
296
|
-
<span className="text-xs text-white/60">16px</span>
|
|
297
|
-
</div>
|
|
298
|
-
<div className="text-center">
|
|
299
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-5 w-5 text-violet-400" />
|
|
300
|
-
<span className="text-xs text-white/60">20px</span>
|
|
301
|
-
</div>
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-6 w-6 text-violet-400" />
|
|
304
|
-
<span className="text-xs text-white/60">24px</span>
|
|
305
|
-
</div>
|
|
306
|
-
<div className="text-center">
|
|
307
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-8 w-8 text-violet-400" />
|
|
308
|
-
<span className="text-xs text-white/60">32px</span>
|
|
309
|
-
</div>
|
|
310
|
-
<div className="text-center">
|
|
311
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-12 w-12 text-violet-400" />
|
|
312
|
-
<span className="text-xs text-white/60">48px</span>
|
|
313
|
-
</div>
|
|
314
|
-
</div>
|
|
315
|
-
</div>
|
|
316
|
-
|
|
317
|
-
<div className="!space-y-4">
|
|
318
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
319
|
-
Code Example
|
|
320
|
-
</h3>
|
|
321
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
322
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
323
|
-
{`// Small (16px)
|
|
324
|
-
<ArrowRightUpIcon className="h-4 w-4" />
|
|
325
|
-
|
|
326
|
-
// Medium (24px)
|
|
327
|
-
<ArrowRightUpIcon className="h-6 w-6" />
|
|
328
|
-
|
|
329
|
-
// Large (32px)
|
|
330
|
-
<ArrowRightUpIcon className="h-8 w-8" />
|
|
331
|
-
|
|
332
|
-
// Custom size
|
|
333
|
-
<ArrowRightUpIcon width={40} height={40} />`}
|
|
334
|
-
</pre>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
</div>
|
|
340
|
-
</div>
|
|
341
|
-
|
|
342
|
-
{/* Color Variations */}
|
|
343
|
-
<div className="!space-y-8">
|
|
344
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
345
|
-
Color Variations
|
|
346
|
-
</h2>
|
|
347
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
348
|
-
<div className="!space-y-4">
|
|
349
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
350
|
-
Contextual Colors
|
|
351
|
-
</h3>
|
|
352
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
353
|
-
<div className="flex items-center gap-4">
|
|
354
|
-
<ArrowRightUpIcon className="h-6 w-6 text-violet-400" />
|
|
355
|
-
<div>
|
|
356
|
-
<div className="text-sm font-medium text-white">
|
|
357
|
-
Primary
|
|
358
|
-
</div>
|
|
359
|
-
<div className="text-xs text-white/60">
|
|
360
|
-
text-violet-400
|
|
361
|
-
</div>
|
|
362
|
-
</div>
|
|
363
|
-
</div>
|
|
364
|
-
<div className="flex items-center gap-4">
|
|
365
|
-
<ArrowRightUpIcon className="h-6 w-6 text-blue-400" />
|
|
366
|
-
<div>
|
|
367
|
-
<div className="text-sm font-medium text-white">
|
|
368
|
-
External Link
|
|
369
|
-
</div>
|
|
370
|
-
<div className="text-xs text-white/60">
|
|
371
|
-
text-blue-400
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
<div className="flex items-center gap-4">
|
|
376
|
-
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
377
|
-
<div>
|
|
378
|
-
<div className="text-sm font-medium text-white">
|
|
379
|
-
Growth
|
|
380
|
-
</div>
|
|
381
|
-
<div className="text-xs text-white/60">
|
|
382
|
-
text-green-400
|
|
383
|
-
</div>
|
|
384
|
-
</div>
|
|
385
|
-
</div>
|
|
386
|
-
<div className="flex items-center gap-4">
|
|
387
|
-
<ArrowRightUpIcon className="h-6 w-6 text-gray-400" />
|
|
388
|
-
<div>
|
|
389
|
-
<div className="text-sm font-medium text-white">
|
|
390
|
-
Neutral
|
|
391
|
-
</div>
|
|
392
|
-
<div className="text-xs text-white/60">
|
|
393
|
-
text-gray-400
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
</div>
|
|
398
|
-
</div>
|
|
399
|
-
|
|
400
|
-
<div className="!space-y-4">
|
|
401
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
402
|
-
Custom Colors
|
|
403
|
-
</h3>
|
|
404
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
405
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
406
|
-
{`// Using Tailwind classes
|
|
407
|
-
<ArrowRightUpIcon className="h-6 w-6 text-violet-400" />
|
|
408
|
-
<ArrowRightUpIcon className="h-6 w-6 text-blue-500" />
|
|
409
|
-
|
|
410
|
-
// Using CSS custom properties
|
|
411
|
-
<ArrowRightUpIcon
|
|
412
|
-
className="h-6 w-6"
|
|
413
|
-
style={{ color: 'var(--color-primary)' }}
|
|
414
|
-
/>
|
|
415
|
-
|
|
416
|
-
// Direct color prop
|
|
417
|
-
<ArrowRightUpIcon
|
|
418
|
-
width={24}
|
|
419
|
-
height={24}
|
|
420
|
-
color="#8b5cf6"
|
|
421
|
-
/>`}
|
|
422
|
-
</pre>
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
</div>
|
|
426
|
-
</div>
|
|
427
|
-
|
|
428
|
-
{/* Usage Examples */}
|
|
429
|
-
<div className="!space-y-8">
|
|
430
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
431
|
-
Usage Examples
|
|
432
|
-
</h2>
|
|
433
|
-
|
|
434
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
435
|
-
{/* External Links */}
|
|
436
|
-
<div className="!space-y-4">
|
|
437
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
438
|
-
External Links
|
|
439
|
-
</h3>
|
|
440
|
-
<div className="!space-y-4">
|
|
441
|
-
<div className="!space-y-3">
|
|
442
|
-
<a
|
|
443
|
-
href="#"
|
|
444
|
-
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
445
|
-
>
|
|
446
|
-
<span>Visit our documentation</span>
|
|
447
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
448
|
-
</a>
|
|
449
|
-
<br />
|
|
450
|
-
<a
|
|
451
|
-
href="#"
|
|
452
|
-
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
453
|
-
>
|
|
454
|
-
<span>Join our community</span>
|
|
455
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
456
|
-
</a>
|
|
457
|
-
<br />
|
|
458
|
-
<a
|
|
459
|
-
href="#"
|
|
460
|
-
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
461
|
-
>
|
|
462
|
-
<span>Read our blog</span>
|
|
463
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
464
|
-
</a>
|
|
465
|
-
</div>
|
|
466
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
467
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
468
|
-
{`<a href="#" className="inline-flex items-center gap-2 text-blue-400 hover:text-blue-300 transition-colors">
|
|
469
|
-
<span>Visit our documentation</span>
|
|
470
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
471
|
-
</a>`}
|
|
472
|
-
</pre>
|
|
473
|
-
</div>
|
|
474
|
-
</div>
|
|
475
|
-
</div>
|
|
476
|
-
|
|
477
|
-
{/* Card Actions */}
|
|
478
|
-
<div className="!space-y-4">
|
|
479
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
480
|
-
Card Actions
|
|
481
|
-
</h3>
|
|
482
|
-
<div className="!space-y-4">
|
|
483
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
484
|
-
<div className="!space-y-4">
|
|
485
|
-
<div>
|
|
486
|
-
<h4 className="font-medium !text-white">
|
|
487
|
-
GitHub Repository
|
|
488
|
-
</h4>
|
|
489
|
-
<p className="text-sm !text-white/60">
|
|
490
|
-
Open source UI component library
|
|
491
|
-
</p>
|
|
492
|
-
</div>
|
|
493
|
-
<div className="flex items-center justify-between">
|
|
494
|
-
<div className="flex items-center gap-2 text-sm !text-white/70">
|
|
495
|
-
<span>⭐ 1.2k stars</span>
|
|
496
|
-
</div>
|
|
497
|
-
<a
|
|
498
|
-
href="#"
|
|
499
|
-
className="flex items-center gap-2 rounded bg-violet-500 px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-violet-600"
|
|
500
|
-
>
|
|
501
|
-
View on GitHub
|
|
502
|
-
<ArrowRightUpIcon className="h-3 w-3" />
|
|
503
|
-
</a>
|
|
504
|
-
</div>
|
|
505
|
-
</div>
|
|
506
|
-
</div>
|
|
507
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
508
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
509
|
-
{`<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
510
|
-
<div className="space-y-4">
|
|
511
|
-
<div>
|
|
512
|
-
<h4 className="font-medium text-white">GitHub Repository</h4>
|
|
513
|
-
<p className="text-sm text-white/60">Open source UI component library</p>
|
|
514
|
-
</div>
|
|
515
|
-
<div className="flex items-center justify-between">
|
|
516
|
-
<div className="flex items-center gap-2 text-sm text-white/70">
|
|
517
|
-
<span>⭐ 1.2k stars</span>
|
|
518
|
-
</div>
|
|
519
|
-
<a href="#" className="flex items-center gap-2 px-3 py-1.5 bg-violet-500 rounded text-sm font-medium text-white">
|
|
520
|
-
View on GitHub
|
|
521
|
-
<ArrowRightUpIcon className="h-3 w-3" />
|
|
522
|
-
</a>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
</div>`}
|
|
526
|
-
</pre>
|
|
527
|
-
</div>
|
|
528
|
-
</div>
|
|
529
|
-
</div>
|
|
530
|
-
|
|
531
|
-
{/* Growth Metrics */}
|
|
532
|
-
<div className="!space-y-4">
|
|
533
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
534
|
-
Growth Indicators
|
|
535
|
-
</h3>
|
|
536
|
-
<div className="!space-y-4">
|
|
537
|
-
<div className="grid grid-cols-2 gap-4">
|
|
538
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
539
|
-
<div className="flex items-center justify-between">
|
|
540
|
-
<div>
|
|
541
|
-
<div className="text-2xl font-bold !text-white">
|
|
542
|
-
24.5%
|
|
543
|
-
</div>
|
|
544
|
-
<div className="text-sm !text-white/60">
|
|
545
|
-
Revenue Growth
|
|
546
|
-
</div>
|
|
547
|
-
</div>
|
|
548
|
-
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
549
|
-
</div>
|
|
550
|
-
</div>
|
|
551
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
552
|
-
<div className="flex items-center justify-between">
|
|
553
|
-
<div>
|
|
554
|
-
<div className="text-2xl font-bold !text-white">
|
|
555
|
-
156
|
|
556
|
-
</div>
|
|
557
|
-
<div className="text-sm !text-white/60">
|
|
558
|
-
New Users
|
|
559
|
-
</div>
|
|
560
|
-
</div>
|
|
561
|
-
<ArrowRightUpIcon className="h-6 w-6 text-blue-400" />
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
566
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
567
|
-
{`<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
568
|
-
<div className="flex items-center justify-between">
|
|
569
|
-
<div>
|
|
570
|
-
<div className="text-2xl font-bold text-white">24.5%</div>
|
|
571
|
-
<div className="text-sm text-white/60">Revenue Growth</div>
|
|
572
|
-
</div>
|
|
573
|
-
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
574
|
-
</div>
|
|
575
|
-
</div>`}
|
|
576
|
-
</pre>
|
|
577
|
-
</div>
|
|
578
|
-
</div>
|
|
579
|
-
</div>
|
|
580
|
-
|
|
581
|
-
{/* Button Integration */}
|
|
582
|
-
<div className="!space-y-4">
|
|
583
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
584
|
-
Button Integration
|
|
585
|
-
</h3>
|
|
586
|
-
<div className="!space-y-4">
|
|
587
|
-
<div className="flex gap-4">
|
|
588
|
-
<button className="flex items-center gap-2 rounded-lg border border-violet-500/30 bg-violet-500/20 px-4 py-2 text-violet-200 transition-colors hover:bg-violet-500/30">
|
|
589
|
-
<span>Learn More</span>
|
|
590
|
-
<ArrowRightUpIcon className="h-4 w-4" />
|
|
591
|
-
</button>
|
|
592
|
-
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
593
|
-
<span>Open Link</span>
|
|
594
|
-
<ArrowRightUpIcon className="h-4 w-4" />
|
|
595
|
-
</button>
|
|
596
|
-
</div>
|
|
597
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
598
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
599
|
-
{`// Learn more button
|
|
600
|
-
<button className="flex items-center gap-2 bg-violet-500/20 border border-violet-500/30 px-4 py-2 rounded-lg">
|
|
601
|
-
<span>Learn More</span>
|
|
602
|
-
<ArrowRightUpIcon className="h-4 w-4" />
|
|
603
|
-
</button>
|
|
604
|
-
|
|
605
|
-
// External link button
|
|
606
|
-
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
607
|
-
<span>Open Link</span>
|
|
608
|
-
<ArrowRightUpIcon className="h-4 w-4" />
|
|
609
|
-
</button>`}
|
|
610
|
-
</pre>
|
|
611
|
-
</div>
|
|
612
|
-
</div>
|
|
613
|
-
</div>
|
|
614
|
-
|
|
615
|
-
{/* Navigation Menu */}
|
|
616
|
-
<div className="!space-y-4">
|
|
617
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
618
|
-
Navigation Menu
|
|
619
|
-
</h3>
|
|
620
|
-
<div className="!space-y-4">
|
|
621
|
-
<nav className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
622
|
-
<ul className="!list-none !space-y-3">
|
|
623
|
-
<li>
|
|
624
|
-
<a
|
|
625
|
-
href="#"
|
|
626
|
-
className="flex items-center justify-between rounded px-3 py-2 text-left transition-colors hover:bg-white/10"
|
|
627
|
-
>
|
|
628
|
-
<span className="!text-white">Documentation</span>
|
|
629
|
-
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
630
|
-
</a>
|
|
631
|
-
</li>
|
|
632
|
-
<li>
|
|
633
|
-
<a
|
|
634
|
-
href="#"
|
|
635
|
-
className="flex items-center justify-between rounded px-3 py-2 text-left transition-colors hover:bg-white/10"
|
|
636
|
-
>
|
|
637
|
-
<span className="!text-white">GitHub</span>
|
|
638
|
-
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
639
|
-
</a>
|
|
640
|
-
</li>
|
|
641
|
-
<li>
|
|
642
|
-
<a
|
|
643
|
-
href="#"
|
|
644
|
-
className="flex items-center justify-between rounded px-3 py-2 text-left transition-colors hover:bg-white/10"
|
|
645
|
-
>
|
|
646
|
-
<span className="!text-white">
|
|
647
|
-
Discord Community
|
|
648
|
-
</span>
|
|
649
|
-
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
650
|
-
</a>
|
|
651
|
-
</li>
|
|
652
|
-
</ul>
|
|
653
|
-
</nav>
|
|
654
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
655
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
656
|
-
{`<nav className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
657
|
-
<ul className="list-none space-y-3">
|
|
658
|
-
<li>
|
|
659
|
-
<a href="#" className="flex items-center justify-between rounded px-3 py-2 hover:bg-white/10">
|
|
660
|
-
<span className="text-white">Documentation</span>
|
|
661
|
-
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
662
|
-
</a>
|
|
663
|
-
</li>
|
|
664
|
-
<li>
|
|
665
|
-
<a href="#" className="flex items-center justify-between rounded px-3 py-2 hover:bg-white/10">
|
|
666
|
-
<span className="text-white">GitHub</span>
|
|
667
|
-
<ArrowRightUpIcon className="h-4 w-4 text-gray-400" />
|
|
668
|
-
</a>
|
|
669
|
-
</li>
|
|
670
|
-
</ul>
|
|
671
|
-
</nav>`}
|
|
672
|
-
</pre>
|
|
673
|
-
</div>
|
|
674
|
-
</div>
|
|
675
|
-
</div>
|
|
676
|
-
|
|
677
|
-
{/* Social Links */}
|
|
678
|
-
<div className="!space-y-4">
|
|
679
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
680
|
-
Social Links
|
|
681
|
-
</h3>
|
|
682
|
-
<div className="!space-y-4">
|
|
683
|
-
<div className="flex items-center gap-4">
|
|
684
|
-
<a
|
|
685
|
-
href="#"
|
|
686
|
-
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 transition-colors hover:bg-white/10"
|
|
687
|
-
>
|
|
688
|
-
<span className="!text-white">Twitter</span>
|
|
689
|
-
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
690
|
-
</a>
|
|
691
|
-
<a
|
|
692
|
-
href="#"
|
|
693
|
-
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 transition-colors hover:bg-white/10"
|
|
694
|
-
>
|
|
695
|
-
<span className="!text-white">LinkedIn</span>
|
|
696
|
-
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
697
|
-
</a>
|
|
698
|
-
<a
|
|
699
|
-
href="#"
|
|
700
|
-
className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 transition-colors hover:bg-white/10"
|
|
701
|
-
>
|
|
702
|
-
<span className="!text-white">YouTube</span>
|
|
703
|
-
<ArrowRightUpIcon className="h-4 w-4 text-red-400" />
|
|
704
|
-
</a>
|
|
705
|
-
</div>
|
|
706
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
707
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
708
|
-
{`<div className="flex items-center gap-4">
|
|
709
|
-
<a href="#" className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 hover:bg-white/10">
|
|
710
|
-
<span className="text-white">Twitter</span>
|
|
711
|
-
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
712
|
-
</a>
|
|
713
|
-
<a href="#" className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2 hover:bg-white/10">
|
|
714
|
-
<span className="text-white">LinkedIn</span>
|
|
715
|
-
<ArrowRightUpIcon className="h-4 w-4 text-blue-400" />
|
|
716
|
-
</a>
|
|
717
|
-
</div>`}
|
|
718
|
-
</pre>
|
|
719
|
-
</div>
|
|
720
|
-
</div>
|
|
721
|
-
</div>
|
|
722
|
-
</div>
|
|
723
|
-
</div>
|
|
724
|
-
|
|
725
|
-
{/* Animation Examples */}
|
|
726
|
-
<div className="!space-y-8">
|
|
727
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
728
|
-
Animation Examples
|
|
729
|
-
</h2>
|
|
730
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
731
|
-
<div className="!space-y-4">
|
|
732
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
733
|
-
Hover Animations
|
|
734
|
-
</h3>
|
|
735
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
736
|
-
<div className="!space-y-4">
|
|
737
|
-
<a
|
|
738
|
-
href="#"
|
|
739
|
-
className="group inline-flex items-center gap-2 text-violet-400 hover:text-violet-300"
|
|
740
|
-
>
|
|
741
|
-
<span>Diagonal movement</span>
|
|
742
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5" />
|
|
743
|
-
</a>
|
|
744
|
-
<br />
|
|
745
|
-
<a
|
|
746
|
-
href="#"
|
|
747
|
-
className="group inline-flex items-center gap-2 text-blue-400 hover:text-blue-300"
|
|
748
|
-
>
|
|
749
|
-
<span>Scale effect</span>
|
|
750
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:scale-110" />
|
|
751
|
-
</a>
|
|
752
|
-
<br />
|
|
753
|
-
<a
|
|
754
|
-
href="#"
|
|
755
|
-
className="group inline-flex items-center gap-2 text-green-400 hover:text-green-300"
|
|
756
|
-
>
|
|
757
|
-
<span>Rotation effect</span>
|
|
758
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:rotate-12" />
|
|
759
|
-
</a>
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
</div>
|
|
763
|
-
|
|
764
|
-
<div className="!space-y-4">
|
|
765
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
766
|
-
Animation Code
|
|
767
|
-
</h3>
|
|
768
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
769
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
770
|
-
{`// Diagonal movement
|
|
771
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:translate-x-0.5 group-hover:-translate-y-0.5" />
|
|
772
|
-
|
|
773
|
-
// Scale effect
|
|
774
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:scale-110" />
|
|
775
|
-
|
|
776
|
-
// Rotation effect
|
|
777
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform group-hover:rotate-12" />
|
|
778
|
-
|
|
779
|
-
// Combined effects
|
|
780
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-all duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 group-hover:scale-110" />`}
|
|
781
|
-
</pre>
|
|
782
|
-
</div>
|
|
783
|
-
</div>
|
|
784
|
-
</div>
|
|
785
|
-
</div>
|
|
786
|
-
|
|
787
|
-
{/* Accessibility */}
|
|
788
|
-
<div className="!space-y-8">
|
|
789
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
790
|
-
Accessibility Features
|
|
791
|
-
</h2>
|
|
792
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
793
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
794
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
795
|
-
✅ Built-in Features
|
|
796
|
-
</h3>
|
|
797
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
798
|
-
<li className="!text-white/70">
|
|
799
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
800
|
-
</li>
|
|
801
|
-
<li className="!text-white/70">
|
|
802
|
-
Provides screen reader label "Arrow Right Up icon"
|
|
803
|
-
</li>
|
|
804
|
-
<li className="!text-white/70">
|
|
805
|
-
Supports keyboard navigation when used in links
|
|
806
|
-
</li>
|
|
807
|
-
<li className="!text-white/70">
|
|
808
|
-
Maintains proper color contrast ratios
|
|
809
|
-
</li>
|
|
810
|
-
<li className="!text-white/70">
|
|
811
|
-
Scales with user's font size preferences
|
|
812
|
-
</li>
|
|
813
|
-
</ul>
|
|
814
|
-
</div>
|
|
815
|
-
|
|
816
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
817
|
-
<h3 className="text-lg font-semibold !text-violet-300">
|
|
818
|
-
💡 Best Practices
|
|
819
|
-
</h3>
|
|
820
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
821
|
-
<li className="!text-white/70">
|
|
822
|
-
Always pair with descriptive text for external links
|
|
823
|
-
</li>
|
|
824
|
-
<li className="!text-white/70">
|
|
825
|
-
Use consistent colors for link types
|
|
826
|
-
</li>
|
|
827
|
-
<li className="!text-white/70">
|
|
828
|
-
Add target="_blank" and rel="noopener" for external
|
|
829
|
-
links
|
|
830
|
-
</li>
|
|
831
|
-
<li className="!text-white/70">
|
|
832
|
-
Provide clear focus indicators
|
|
833
|
-
</li>
|
|
834
|
-
<li className="!text-white/70">
|
|
835
|
-
Consider reduced motion preferences
|
|
836
|
-
</li>
|
|
837
|
-
</ul>
|
|
838
|
-
</div>
|
|
839
|
-
</div>
|
|
840
|
-
|
|
841
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
842
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
843
|
-
Accessible External Link Implementation
|
|
844
|
-
</h3>
|
|
845
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
846
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
847
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
848
|
-
{`// Accessible external link with proper attributes
|
|
849
|
-
function AccessibleExternalLink({ href, children, ...props }) {
|
|
850
|
-
return (
|
|
851
|
-
<a
|
|
852
|
-
href={href}
|
|
853
|
-
target="_blank"
|
|
854
|
-
rel="noopener noreferrer"
|
|
855
|
-
aria-label={\`\${children} (opens in new tab)\`}
|
|
856
|
-
className="inline-flex items-center gap-2 text-blue-400 hover:text-blue-300 focus:ring-2 focus:ring-blue-500"
|
|
857
|
-
{...props}
|
|
858
|
-
>
|
|
859
|
-
{children}
|
|
860
|
-
<ArrowRightUpIcon
|
|
861
|
-
className="h-4 w-4"
|
|
862
|
-
aria-hidden="true"
|
|
863
|
-
/>
|
|
51
|
+
<a href="#" className="flex items-center gap-1" target="_blank">
|
|
52
|
+
View website
|
|
53
|
+
<ArrowRightUpIcon className="h-3.5 w-3.5 text-fm-icon-info" />
|
|
864
54
|
</a>
|
|
865
55
|
)
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
ArrowRightDownIcon
|
|
907
|
-
</div>
|
|
908
|
-
<div className="text-xs text-white/60">
|
|
909
|
-
Download/decrease
|
|
910
|
-
</div>
|
|
911
|
-
</div>
|
|
912
|
-
</div>
|
|
913
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
914
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
915
|
-
<ArrowRightUpIcon className="h-6 w-6 -rotate-90 text-cyan-400" />
|
|
916
|
-
</div>
|
|
917
|
-
<div>
|
|
918
|
-
<div className="font-medium text-white">
|
|
919
|
-
ArrowLeftUpIcon
|
|
920
|
-
</div>
|
|
921
|
-
<div className="text-xs text-white/60">Back and up</div>
|
|
922
|
-
</div>
|
|
923
|
-
</div>
|
|
924
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
925
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
926
|
-
<span className="text-2xl">↗️</span>
|
|
927
|
-
</div>
|
|
928
|
-
<div>
|
|
929
|
-
<div className="font-medium text-white">
|
|
930
|
-
ExternalLinkIcon
|
|
931
|
-
</div>
|
|
932
|
-
<div className="text-xs text-white/60">
|
|
933
|
-
Alternative style
|
|
934
|
-
</div>
|
|
935
|
-
</div>
|
|
936
|
-
</div>
|
|
937
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
938
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
939
|
-
<span className="text-2xl">📈</span>
|
|
940
|
-
</div>
|
|
941
|
-
<div>
|
|
942
|
-
<div className="font-medium text-white">
|
|
943
|
-
TrendingUpIcon
|
|
944
|
-
</div>
|
|
945
|
-
<div className="text-xs text-white/60">
|
|
946
|
-
Growth metrics
|
|
947
|
-
</div>
|
|
948
|
-
</div>
|
|
949
|
-
</div>
|
|
950
|
-
</div>
|
|
951
|
-
</div>
|
|
952
|
-
</div>
|
|
953
|
-
|
|
954
|
-
{/* Footer */}
|
|
955
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
956
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
957
|
-
<div className="!space-y-4 text-center">
|
|
958
|
-
<p className="!text-white/60">
|
|
959
|
-
ArrowRightUpIcon is part of the Aural UI icon library,
|
|
960
|
-
designed for external navigation and growth indication.
|
|
961
|
-
</p>
|
|
962
|
-
<p className="text-sm !text-white/40">
|
|
963
|
-
Perfect for external links, growth metrics, expansion
|
|
964
|
-
indicators, and any interface requiring diagonal upward
|
|
965
|
-
direction.
|
|
966
|
-
</p>
|
|
967
|
-
</div>
|
|
968
|
-
</div>
|
|
969
|
-
</div>
|
|
970
|
-
</div>
|
|
971
|
-
</>
|
|
56
|
+
}`,
|
|
57
|
+
livePreview: (
|
|
58
|
+
<a
|
|
59
|
+
href="#"
|
|
60
|
+
className="text-fm-icon-info font-fm-text flex items-center gap-1 text-sm"
|
|
61
|
+
target="_blank"
|
|
62
|
+
rel="noreferrer"
|
|
63
|
+
>
|
|
64
|
+
View website
|
|
65
|
+
<ArrowRightUpIcon className="text-fm-icon-info h-3.5 w-3.5" />
|
|
66
|
+
</a>
|
|
67
|
+
),
|
|
68
|
+
}}
|
|
69
|
+
relatedIcons={[
|
|
70
|
+
{
|
|
71
|
+
name: "ArrowRightIcon",
|
|
72
|
+
description: "Points right",
|
|
73
|
+
icon: ArrowRightIcon,
|
|
74
|
+
accentToken: "info",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: "ArrowCornerUpRightIcon",
|
|
78
|
+
description: "Curved up-right arrow",
|
|
79
|
+
icon: ArrowCornerUpRightIcon,
|
|
80
|
+
accentToken: "positive",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "ChevronRightIcon",
|
|
84
|
+
description: "Right chevron",
|
|
85
|
+
icon: ChevronRightIcon,
|
|
86
|
+
accentToken: "warning",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: "ArrowLeftIcon",
|
|
90
|
+
description: "Points left",
|
|
91
|
+
icon: ArrowLeftIcon,
|
|
92
|
+
accentToken: "negative",
|
|
93
|
+
},
|
|
94
|
+
]}
|
|
95
|
+
/>
|
|
972
96
|
),
|
|
973
97
|
},
|
|
974
98
|
},
|
|
975
99
|
tags: ["autodocs"],
|
|
976
100
|
argTypes: {
|
|
977
|
-
|
|
978
|
-
control: "
|
|
979
|
-
description: "
|
|
101
|
+
className: {
|
|
102
|
+
control: "text",
|
|
103
|
+
description: "CSS classes including size and color token",
|
|
980
104
|
},
|
|
981
105
|
withAccessibility: {
|
|
982
106
|
control: "boolean",
|
|
983
|
-
description: "
|
|
984
|
-
},
|
|
985
|
-
width: {
|
|
986
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
987
|
-
description: "Width of the icon in pixels",
|
|
988
|
-
},
|
|
989
|
-
height: {
|
|
990
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
991
|
-
description: "Height of the icon in pixels",
|
|
992
|
-
},
|
|
993
|
-
className: {
|
|
994
|
-
control: "text",
|
|
995
|
-
description: "CSS classes for styling",
|
|
107
|
+
description: "Wrap with accessibility label",
|
|
996
108
|
},
|
|
997
109
|
},
|
|
998
110
|
}
|
|
@@ -1000,282 +112,105 @@ function AccessibleExternalLink({ href, children, ...props }) {
|
|
|
1000
112
|
export default meta
|
|
1001
113
|
type Story = StoryObj<typeof ArrowRightUpIcon>
|
|
1002
114
|
|
|
1003
|
-
// Story parameters for consistent dark theme
|
|
1004
|
-
const storyParameters = {
|
|
1005
|
-
backgrounds: {
|
|
1006
|
-
default: "dark",
|
|
1007
|
-
values: [
|
|
1008
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
1009
|
-
{ name: "darker", value: "#000000" },
|
|
1010
|
-
],
|
|
1011
|
-
},
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
115
|
export const Default: Story = {
|
|
1015
116
|
args: {
|
|
1016
|
-
|
|
1017
|
-
height: 24,
|
|
1018
|
-
className: "text-violet-400",
|
|
117
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
1019
118
|
withAccessibility: true,
|
|
1020
119
|
},
|
|
1021
|
-
parameters: storyParameters,
|
|
1022
120
|
render: (args) => (
|
|
1023
|
-
<
|
|
121
|
+
<IconDefaultCanvas>
|
|
1024
122
|
<ArrowRightUpIcon {...args} />
|
|
1025
|
-
</
|
|
123
|
+
</IconDefaultCanvas>
|
|
1026
124
|
),
|
|
1027
125
|
}
|
|
1028
126
|
|
|
1029
127
|
export const SizeVariations: Story = {
|
|
1030
|
-
|
|
1031
|
-
...storyParameters,
|
|
1032
|
-
docs: {
|
|
1033
|
-
description: {
|
|
1034
|
-
story:
|
|
1035
|
-
"ArrowRightUpIcon in different sizes, from small inline indicators to large displays.",
|
|
1036
|
-
},
|
|
1037
|
-
},
|
|
1038
|
-
},
|
|
1039
|
-
render: () => (
|
|
1040
|
-
<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">
|
|
1041
|
-
<div className="text-center">
|
|
1042
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-3 w-3 text-violet-400" />
|
|
1043
|
-
<span className="text-xs text-white/60">12px</span>
|
|
1044
|
-
</div>
|
|
1045
|
-
<div className="text-center">
|
|
1046
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-4 w-4 text-violet-400" />
|
|
1047
|
-
<span className="text-xs text-white/60">16px</span>
|
|
1048
|
-
</div>
|
|
1049
|
-
<div className="text-center">
|
|
1050
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-5 w-5 text-violet-400" />
|
|
1051
|
-
<span className="text-xs text-white/60">20px</span>
|
|
1052
|
-
</div>
|
|
1053
|
-
<div className="text-center">
|
|
1054
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-6 w-6 text-violet-400" />
|
|
1055
|
-
<span className="text-xs text-white/60">24px</span>
|
|
1056
|
-
</div>
|
|
1057
|
-
<div className="text-center">
|
|
1058
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-8 w-8 text-violet-400" />
|
|
1059
|
-
<span className="text-xs text-white/60">32px</span>
|
|
1060
|
-
</div>
|
|
1061
|
-
<div className="text-center">
|
|
1062
|
-
<ArrowRightUpIcon className="!mx-auto mb-2 h-12 w-12 text-violet-400" />
|
|
1063
|
-
<span className="text-xs text-white/60">48px</span>
|
|
1064
|
-
</div>
|
|
1065
|
-
</div>
|
|
1066
|
-
),
|
|
128
|
+
render: () => <IconSizeVariations icon={ArrowRightUpIcon} />,
|
|
1067
129
|
}
|
|
1068
130
|
|
|
1069
131
|
export const ColorVariations: Story = {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
story:
|
|
1075
|
-
"ArrowRightUpIcon in different contextual colors for various use cases.",
|
|
1076
|
-
},
|
|
1077
|
-
},
|
|
1078
|
-
},
|
|
132
|
+
render: () => <IconColorVariations icon={ArrowRightUpIcon} />,
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export const DirectionalVariations: Story = {
|
|
1079
136
|
render: () => (
|
|
1080
|
-
<
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
<ArrowRightUpIcon className="h-8 w-8 text-blue-400" />
|
|
1091
|
-
</div>
|
|
1092
|
-
<div className="text-sm font-medium text-white">External</div>
|
|
1093
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1094
|
-
</div>
|
|
1095
|
-
<div className="text-center">
|
|
1096
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
1097
|
-
<ArrowRightUpIcon className="h-8 w-8 text-green-400" />
|
|
1098
|
-
</div>
|
|
1099
|
-
<div className="text-sm font-medium text-white">Growth</div>
|
|
1100
|
-
<div className="text-xs text-green-400">text-green-400</div>
|
|
1101
|
-
</div>
|
|
1102
|
-
<div className="text-center">
|
|
1103
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-gray-500/30 bg-gray-500/20">
|
|
1104
|
-
<ArrowRightUpIcon className="h-8 w-8 text-gray-400" />
|
|
1105
|
-
</div>
|
|
1106
|
-
<div className="text-sm font-medium text-white">Neutral</div>
|
|
1107
|
-
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
1108
|
-
</div>
|
|
1109
|
-
</div>
|
|
137
|
+
<IconDirectionalVariations
|
|
138
|
+
icon={ArrowRightUpIcon}
|
|
139
|
+
directions={[
|
|
140
|
+
{ label: "Right Up", className: "h-8 w-8 text-fm-icon-active" },
|
|
141
|
+
{
|
|
142
|
+
label: "Left Up",
|
|
143
|
+
className: "h-8 w-8 text-fm-icon-active -scale-x-100",
|
|
144
|
+
},
|
|
145
|
+
]}
|
|
146
|
+
/>
|
|
1110
147
|
),
|
|
1111
148
|
}
|
|
1112
149
|
|
|
1113
150
|
export const UsageExamples: Story = {
|
|
1114
|
-
parameters: {
|
|
1115
|
-
...storyParameters,
|
|
1116
|
-
docs: {
|
|
1117
|
-
description: {
|
|
1118
|
-
story:
|
|
1119
|
-
"Real-world usage examples showing ArrowRightUpIcon in different UI contexts.",
|
|
1120
|
-
},
|
|
1121
|
-
},
|
|
1122
|
-
},
|
|
1123
151
|
render: () => (
|
|
1124
|
-
<
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
<a
|
|
1130
|
-
href="#"
|
|
1131
|
-
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
1132
|
-
>
|
|
1133
|
-
<span>Visit our documentation</span>
|
|
1134
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
1135
|
-
</a>
|
|
1136
|
-
<br />
|
|
1137
|
-
<a
|
|
1138
|
-
href="#"
|
|
1139
|
-
className="inline-flex items-center gap-2 text-blue-400 transition-colors hover:text-blue-300"
|
|
1140
|
-
>
|
|
1141
|
-
<span>Join our community</span>
|
|
1142
|
-
<ArrowRightUpIcon className="h-4 w-4 transition-transform hover:translate-x-0.5 hover:-translate-y-0.5" />
|
|
1143
|
-
</a>
|
|
1144
|
-
</div>
|
|
1145
|
-
</div>
|
|
1146
|
-
|
|
1147
|
-
{/* Growth Metrics */}
|
|
1148
|
-
<div className="!space-y-2">
|
|
1149
|
-
<h3 className="text-sm font-medium text-white">Growth Indicators</h3>
|
|
1150
|
-
<div className="grid grid-cols-2 gap-4">
|
|
1151
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1152
|
-
<div className="flex items-center justify-between">
|
|
1153
|
-
<div>
|
|
1154
|
-
<div className="text-2xl font-bold text-white">24.5%</div>
|
|
1155
|
-
<div className="text-sm text-white/60">Revenue Growth</div>
|
|
1156
|
-
</div>
|
|
1157
|
-
<ArrowRightUpIcon className="h-6 w-6 text-green-400" />
|
|
1158
|
-
</div>
|
|
1159
|
-
</div>
|
|
1160
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
1161
|
-
<div className="flex items-center justify-between">
|
|
1162
|
-
<div>
|
|
1163
|
-
<div className="text-2xl font-bold text-white">156</div>
|
|
1164
|
-
<div className="text-sm text-white/60">New Users</div>
|
|
1165
|
-
</div>
|
|
1166
|
-
<ArrowRightUpIcon className="h-6 w-6 text-blue-400" />
|
|
1167
|
-
</div>
|
|
1168
|
-
</div>
|
|
1169
|
-
</div>
|
|
1170
|
-
</div>
|
|
1171
|
-
|
|
1172
|
-
{/* Card Actions */}
|
|
1173
|
-
<div className="!space-y-2">
|
|
1174
|
-
<h3 className="text-sm font-medium text-white">Card Actions</h3>
|
|
1175
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
1176
|
-
<div className="!space-y-4">
|
|
1177
|
-
<div>
|
|
1178
|
-
<h4 className="font-medium text-white">GitHub Repository</h4>
|
|
1179
|
-
<p className="text-sm text-white/60">
|
|
1180
|
-
Open source UI component library
|
|
1181
|
-
</p>
|
|
1182
|
-
</div>
|
|
1183
|
-
<div className="flex items-center justify-between">
|
|
1184
|
-
<div className="flex items-center gap-2 text-sm text-white/70">
|
|
1185
|
-
<span>⭐ 1.2k stars</span>
|
|
1186
|
-
</div>
|
|
152
|
+
<IconUsageCanvas>
|
|
153
|
+
<IconUsageSection title="External Links">
|
|
154
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
|
|
155
|
+
{["Podcast website", "Creator profile", "Episode transcript"].map(
|
|
156
|
+
(link) => (
|
|
1187
157
|
<a
|
|
158
|
+
key={link}
|
|
1188
159
|
href="#"
|
|
1189
|
-
className="flex items-center gap-
|
|
160
|
+
className="flex items-center gap-1.5"
|
|
161
|
+
target="_blank"
|
|
162
|
+
rel="noreferrer"
|
|
1190
163
|
>
|
|
1191
|
-
|
|
1192
|
-
|
|
164
|
+
<span className="text-fm-icon-info font-fm-text text-sm">
|
|
165
|
+
{link}
|
|
166
|
+
</span>
|
|
167
|
+
<ArrowRightUpIcon className="text-fm-icon-info h-3.5 w-3.5" />
|
|
1193
168
|
</a>
|
|
1194
|
-
|
|
1195
|
-
|
|
169
|
+
)
|
|
170
|
+
)}
|
|
1196
171
|
</div>
|
|
1197
|
-
</
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
</div>
|
|
1229
|
-
|
|
1230
|
-
<div className="text-center">
|
|
1231
|
-
<h3 className="mb-4 text-lg font-medium text-white">Scale Effect</h3>
|
|
1232
|
-
<a
|
|
1233
|
-
href="#"
|
|
1234
|
-
className="group inline-flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/10 px-6 py-3 text-blue-200 transition-colors hover:bg-blue-500/20"
|
|
1235
|
-
>
|
|
1236
|
-
<span>Learn More</span>
|
|
1237
|
-
<ArrowRightUpIcon className="h-6 w-6 transition-transform duration-300 group-hover:scale-125" />
|
|
1238
|
-
</a>
|
|
1239
|
-
<p className="mt-2 text-xs text-white/60">Hover to scale up</p>
|
|
1240
|
-
</div>
|
|
1241
|
-
|
|
1242
|
-
<div className="text-center">
|
|
1243
|
-
<h3 className="mb-4 text-lg font-medium text-white">
|
|
1244
|
-
Combined Effects
|
|
1245
|
-
</h3>
|
|
1246
|
-
<a
|
|
1247
|
-
href="#"
|
|
1248
|
-
className="group inline-flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/10 px-6 py-3 text-green-200 transition-colors hover:bg-green-500/20"
|
|
1249
|
-
>
|
|
1250
|
-
<span>Explore</span>
|
|
1251
|
-
<ArrowRightUpIcon className="h-6 w-6 transition-all duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 group-hover:scale-110 group-hover:rotate-12" />
|
|
1252
|
-
</a>
|
|
1253
|
-
<p className="mt-2 text-xs text-white/60">Multiple animations</p>
|
|
1254
|
-
</div>
|
|
1255
|
-
</div>
|
|
172
|
+
</IconUsageSection>
|
|
173
|
+
|
|
174
|
+
<IconUsageSection title="Open in App">
|
|
175
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
176
|
+
<button className="flex w-full items-center justify-between">
|
|
177
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
178
|
+
Open in browser
|
|
179
|
+
</span>
|
|
180
|
+
<ArrowRightUpIcon className="text-fm-icon-inactive h-4 w-4" />
|
|
181
|
+
</button>
|
|
182
|
+
</div>
|
|
183
|
+
</IconUsageSection>
|
|
184
|
+
|
|
185
|
+
<IconUsageSection title="Inline Reference">
|
|
186
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
187
|
+
<p className="text-fm-secondary font-fm-text text-sm leading-relaxed">
|
|
188
|
+
Check out the{" "}
|
|
189
|
+
<a
|
|
190
|
+
href="#"
|
|
191
|
+
className="text-fm-icon-info inline-flex items-center gap-0.5"
|
|
192
|
+
target="_blank"
|
|
193
|
+
rel="noreferrer"
|
|
194
|
+
>
|
|
195
|
+
creator's page
|
|
196
|
+
<ArrowRightUpIcon className="h-3 w-3" />
|
|
197
|
+
</a>{" "}
|
|
198
|
+
for more content.
|
|
199
|
+
</p>
|
|
200
|
+
</div>
|
|
201
|
+
</IconUsageSection>
|
|
202
|
+
</IconUsageCanvas>
|
|
1256
203
|
),
|
|
1257
204
|
}
|
|
1258
205
|
|
|
1259
206
|
export const Playground: Story = {
|
|
1260
|
-
parameters: {
|
|
1261
|
-
...storyParameters,
|
|
1262
|
-
docs: {
|
|
1263
|
-
description: {
|
|
1264
|
-
story:
|
|
1265
|
-
"Interactive playground to experiment with different ArrowRightUpIcon configurations.",
|
|
1266
|
-
},
|
|
1267
|
-
},
|
|
1268
|
-
},
|
|
1269
207
|
args: {
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
className: "text-violet-400",
|
|
208
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
209
|
+
withAccessibility: true,
|
|
1273
210
|
},
|
|
1274
211
|
render: (args) => (
|
|
1275
|
-
<
|
|
1276
|
-
<
|
|
1277
|
-
|
|
1278
|
-
</div>
|
|
1279
|
-
</div>
|
|
212
|
+
<IconPlaygroundCanvas>
|
|
213
|
+
<ArrowRightUpIcon {...args} />
|
|
214
|
+
</IconPlaygroundCanvas>
|
|
1280
215
|
),
|
|
1281
216
|
}
|