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