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