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