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