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