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