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