aural-ui 4.0.1 → 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.
Files changed (174) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
  2. package/dist/components/avatar/Avatar.stories.tsx +219 -235
  3. package/dist/components/badge/Badge.stories.tsx +379 -116
  4. package/dist/components/banner/Banner.stories.tsx +445 -391
  5. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  6. package/dist/components/button/Button.stories.tsx +585 -230
  7. package/dist/components/card/Card.stories.tsx +619 -301
  8. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  9. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  10. package/dist/components/chip/Chip.stories.tsx +362 -168
  11. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
  12. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  13. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  14. package/dist/components/command/Command.stories.tsx +530 -867
  15. package/dist/components/dialog/Dialog.stories.tsx +501 -950
  16. package/dist/components/divider/Divider.stories.tsx +264 -527
  17. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  18. package/dist/components/drawer/Drawer.stories.tsx +659 -1023
  19. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
  20. package/dist/components/form/Form.stories.tsx +560 -274
  21. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  22. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
  23. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  24. package/dist/components/if-else/if-else.stories.tsx +370 -83
  25. package/dist/components/input/Input.stories.tsx +436 -368
  26. package/dist/components/label/Label.stories.tsx +156 -154
  27. package/dist/components/list/List.stories.tsx +484 -835
  28. package/dist/components/marquee/Marquee.stories.tsx +356 -712
  29. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
  30. package/dist/components/overlay/Overlay.stories.tsx +452 -824
  31. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  32. package/dist/components/popover/Popover.stories.tsx +481 -896
  33. package/dist/components/radio/Radio.stories.tsx +432 -124
  34. package/dist/components/resizable/Resizable.stories.tsx +495 -799
  35. package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
  36. package/dist/components/search/Search.stories.tsx +312 -595
  37. package/dist/components/select/Select.stories.tsx +684 -789
  38. package/dist/components/sheet/Sheet.stories.tsx +671 -950
  39. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  40. package/dist/components/slider/Slider.stories.tsx +383 -760
  41. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  42. package/dist/components/switch/Switch.stories.tsx +461 -208
  43. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  44. package/dist/components/table/Table.stories.tsx +770 -916
  45. package/dist/components/tabs/Tabs.stories.tsx +458 -1455
  46. package/dist/components/tag/Tag.stories.tsx +714 -542
  47. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  48. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
  49. package/dist/components/toast/Toast.stories.tsx +452 -1339
  50. package/dist/components/toggle/Toggle.stories.tsx +488 -931
  51. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
  52. package/dist/components/typography/Typography.stories.tsx +406 -89
  53. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  54. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  55. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  56. package/dist/icons/Icons.stories.tsx +0 -12
  57. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
  58. package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
  59. package/dist/icons/all-icons.tsx +37 -16
  60. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
  61. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
  62. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
  63. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
  64. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
  65. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
  66. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
  67. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
  68. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
  69. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
  70. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
  71. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
  72. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
  73. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
  74. package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
  75. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
  76. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
  77. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
  78. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
  79. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
  80. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
  81. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
  82. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
  83. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
  84. package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
  85. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
  86. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
  87. package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
  88. package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
  89. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
  90. package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
  91. package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
  92. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
  93. package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
  94. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
  95. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
  96. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
  97. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
  98. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
  99. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
  100. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
  101. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
  102. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
  103. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
  104. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
  105. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
  106. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
  107. package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
  108. package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
  109. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
  110. package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
  111. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
  112. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
  113. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
  114. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
  115. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
  116. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
  117. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
  118. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
  119. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
  120. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
  121. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
  122. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
  123. package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
  124. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
  125. package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
  126. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
  127. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
  128. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
  129. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
  130. package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
  131. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
  132. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
  133. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
  134. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
  135. package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
  136. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
  137. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
  138. package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
  139. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
  140. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
  141. package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
  142. package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
  143. package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
  144. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
  145. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
  146. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
  147. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
  148. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
  149. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
  150. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
  151. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
  152. package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
  153. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
  154. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
  155. package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
  156. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
  157. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
  158. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
  159. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
  160. package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
  161. package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
  162. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
  163. package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
  164. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
  165. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
  166. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
  167. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
  168. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
  169. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
  170. package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
  171. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
  172. package/dist/index.cjs +1 -1
  173. package/dist/index.js +1 -1
  174. 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> = {
@@ -18,830 +32,69 @@ const meta: Meta<typeof MusicalNoteIcon> = {
18
32
  },
19
33
  docs: {
20
34
  page: () => (
21
- <>
22
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 ;
27
- max-width: none ;
28
- background: transparent ;
29
- }
30
- .sbdocs-content {
31
- max-width: none ;
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: var(--color-fm-surface-primary) ;
44
- }
45
- #storybook-docs {
46
- background: var(--color-fm-surface-primary) ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: var(--color-fm-icon-active) ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: var(--color-fm-secondary) ;
57
- }
58
- .sbdocs-code {
59
- background: var(--color-fm-surface-secondary) ;
60
- color: var(--color-fm-secondary-500) ;
61
- border: 1px solid var(--color-fm-divider-secondary) ;
62
- }
63
- .sbdocs-pre {
64
- background: var(--color-fm-surface-secondary) ;
65
- border: 1px solid var(--color-fm-divider-secondary) ;
66
- }
67
- .sbdocs-table {
68
- background: var(--color-fm-surface-secondary) ;
69
- border: 1px solid var(--color-fm-divider-secondary) ;
70
- }
71
- .sbdocs-table th {
72
- background: var(--color-fm-surface-secondary) ;
73
- color: var(--color-fm-icon-active) ;
74
- border-bottom: 1px solid var(--color-fm-divider-secondary) ;
75
- }
76
- .sbdocs-table td {
77
- color: var(--color-fm-secondary) ;
78
- border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="bg-fm-surface-primary min-h-screen">
84
- {/* Header */}
85
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
86
- <div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
87
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
- <div className="!space-y-6 text-center">
89
- <div className="border-fm-secondary-500/30 from-fm-secondary-500/20 to-fm-secondary-500/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
90
- <MusicalNoteIcon className="text-fm-secondary-600 h-12 w-12" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- MusicalNoteIcon
94
- </h1>
95
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
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-fm-secondary-600 text-3xl font-bold">
106
- Accessible
107
- </div>
108
- <div className="text-fm-tertiary text-sm">
109
- Screen reader friendly
110
- </div>
111
- </div>
112
- <div className="bg-fm-divider-primary h-8 w-px" />
113
- <div className="text-center">
114
- <div className="text-fm-secondary-600 text-3xl font-bold">
115
- Scalable
116
- </div>
117
- <div className="text-fm-tertiary text-sm">
118
- Any size needed
119
- </div>
120
- </div>
121
- <div className="bg-fm-divider-primary h-8 w-px" />
122
- <div className="text-center">
123
- <div className="text-fm-icon-info text-3xl font-bold">
124
- Flexible
125
- </div>
126
- <div className="text-fm-tertiary text-sm">
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-fm-icon-active! text-center text-3xl font-bold">
140
- Quick Start
141
- </h2>
142
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
- <div className="!space-y-4">
144
- <h3 className="text-fm-secondary-600! text-xl font-semibold">
145
- Basic Usage
146
- </h3>
147
- <div className="bg-fm-surface-secondary rounded-lg p-4">
148
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
149
- {`import { 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-5 w-5 text-purple-500" />
155
- <span>Now Playing</span>
48
+ <MusicalNoteIcon className="h-4 w-4 text-fm-icon-active" />
49
+ <span>Now playing</span>
156
50
  </div>
157
51
  )
158
- }`}
159
- </pre>
160
- </div>
161
- </div>
162
-
163
- <div className="!space-y-4">
164
- <h3 className="text-fm-secondary-600! text-xl font-semibold">
165
- Live Preview
166
- </h3>
167
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
168
- <div className="border-fm-secondary-500/20 bg-fm-secondary-500/10 flex items-center gap-3 rounded-lg border px-4 py-2">
169
- <MusicalNoteIcon className="text-fm-secondary-600 h-5 w-5" />
170
- <span className="text-fm-icon-active">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-fm-icon-active! text-center text-3xl font-bold">
180
- Props & Configuration
181
- </h2>
182
-
183
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
184
- <div className="bg-fm-surface-secondary p-4">
185
- <h3 className="text-fm-icon-active! text-xl font-semibold">
186
- Props
187
- </h3>
188
- </div>
189
- <table className="!my-0 w-full">
190
- <thead className="bg-fm-surface-secondary">
191
- <tr className="border-fm-divider-secondary border-b">
192
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
193
- Prop
194
- </th>
195
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
196
- Type
197
- </th>
198
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
199
- Default
200
- </th>
201
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
202
- Description
203
- </th>
204
- </tr>
205
- </thead>
206
- <tbody>
207
- {" "}
208
- <tr className="bg-fm-surface-secondary!">
209
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
210
- withAccessibility
211
- </td>
212
- <td className="text-fm-secondary! px-6 py-4 text-sm">
213
- boolean
214
- </td>
215
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
216
- true
217
- </td>
218
- <td className="text-fm-secondary! px-6 py-4 text-sm">
219
- Whether to wrap the icon with accessibility feature
220
- </td>
221
- </tr>
222
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
223
- <td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
224
- height
225
- </td>
226
- <td className="text-fm-secondary! px-6 py-4 text-sm">
227
- number | string
228
- </td>
229
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
230
- 12
231
- </td>
232
- <td className="text-fm-secondary! px-6 py-4 text-sm">
233
- Height of the icon in pixels
234
- </td>
235
- </tr>
236
- <tr className="border-fm-divider-tertiary border-b">
237
- <td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
238
- fill
239
- </td>
240
- <td className="text-fm-secondary! px-6 py-4 text-sm">
241
- string
242
- </td>
243
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
244
- none
245
- </td>
246
- <td className="text-fm-secondary! px-6 py-4 text-sm">
247
- Fill color of the icon (uses stroke by default)
248
- </td>
249
- </tr>
250
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
251
- <td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
252
- stroke
253
- </td>
254
- <td className="text-fm-secondary! px-6 py-4 text-sm">
255
- string
256
- </td>
257
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
258
- currentColor
259
- </td>
260
- <td className="text-fm-secondary! px-6 py-4 text-sm">
261
- Stroke color of the icon
262
- </td>
263
- </tr>
264
- <tr className="border-fm-divider-tertiary border-b">
265
- <td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
266
- strokeWidth
267
- </td>
268
- <td className="text-fm-secondary! px-6 py-4 text-sm">
269
- number | string
270
- </td>
271
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
272
- 1.125
273
- </td>
274
- <td className="text-fm-secondary! px-6 py-4 text-sm">
275
- Width of the stroke
276
- </td>
277
- </tr>
278
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
279
- <td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
280
- className
281
- </td>
282
- <td className="text-fm-secondary! px-6 py-4 text-sm">
283
- string
284
- </td>
285
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
286
- -
287
- </td>
288
- <td className="text-fm-secondary! px-6 py-4 text-sm">
289
- CSS classes for styling
290
- </td>
291
- </tr>
292
- <tr className="bg-fm-surface-secondary!">
293
- <td className="text-fm-secondary-600! px-6 py-4 font-mono text-sm">
294
- ...svgProps
295
- </td>
296
- <td className="text-fm-secondary! px-6 py-4 text-sm">
297
- SVGProps
298
- </td>
299
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
300
- -
301
- </td>
302
- <td className="text-fm-secondary! px-6 py-4 text-sm">
303
- All standard SVG element props
304
- </td>
305
- </tr>
306
- </tbody>
307
- </table>
308
- </div>
309
- </div>
310
-
311
- {/* Size Variations */}
312
- <div className="!space-y-8">
313
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
314
- Size Variations
315
- </h2>
316
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
317
- <div className="!space-y-6">
318
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
319
- <div className="!space-y-4">
320
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
321
- Standard Sizes
322
- </h3>
323
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
324
- <div className="text-center">
325
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
326
- <span className="text-fm-tertiary text-xs">
327
- 12px
328
- </span>
329
- </div>
330
- <div className="text-center">
331
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
332
- <span className="text-fm-tertiary text-xs">
333
- 16px
334
- </span>
335
- </div>
336
- <div className="text-center">
337
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
338
- <span className="text-fm-tertiary text-xs">
339
- 20px
340
- </span>
341
- </div>
342
- <div className="text-center">
343
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
344
- <span className="text-fm-tertiary text-xs">
345
- 24px
346
- </span>
347
- </div>
348
- <div className="text-center">
349
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
350
- <span className="text-fm-tertiary text-xs">
351
- 32px
352
- </span>
353
- </div>
354
- <div className="text-center">
355
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
356
- <span className="text-fm-tertiary text-xs">
357
- 48px
358
- </span>
359
- </div>
360
- </div>
361
- </div>
362
-
363
- <div className="!space-y-4">
364
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
365
- Code Example
366
- </h3>
367
- <div className="bg-fm-surface-secondary rounded-lg p-4">
368
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
369
- {`// Small (16px)
370
- <MusicalNoteIcon className="h-4 w-4" />
371
-
372
- // Medium (24px)
373
- <MusicalNoteIcon className="h-6 w-6" />
374
-
375
- // Large (32px)
376
- <MusicalNoteIcon className="h-8 w-8" />
377
-
378
- // Custom size
379
- <MusicalNoteIcon width={40} height={38} />`}
380
- </pre>
381
- </div>
382
- </div>
383
- </div>
384
- </div>
385
- </div>
386
- </div>
387
-
388
- {/* Color Variations */}
389
- <div className="!space-y-8">
390
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
391
- Color Variations
392
- </h2>
393
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
394
- <div className="!space-y-4">
395
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
396
- Musical Themes
397
- </h3>
398
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
399
- <div className="flex items-center gap-4">
400
- <MusicalNoteIcon className="text-fm-secondary-600 h-6 w-6" />
401
- <div>
402
- <div className="text-fm-icon-active text-sm font-medium">
403
- Classic
404
- </div>
405
- <div className="text-fm-tertiary text-xs">
406
- text-fm-secondary-600
407
- </div>
408
- </div>
409
- </div>
410
- <div className="flex items-center gap-4">
411
- <MusicalNoteIcon className="text-fm-secondary-600 h-6 w-6" />
412
- <div>
413
- <div className="text-fm-icon-active text-sm font-medium">
414
- Pop
415
- </div>
416
- <div className="text-fm-tertiary text-xs">
417
- text-fm-secondary-600
418
- </div>
419
- </div>
420
- </div>
421
- <div className="flex items-center gap-4">
422
- <MusicalNoteIcon className="text-fm-icon-info h-6 w-6" />
423
- <div>
424
- <div className="text-fm-icon-active text-sm font-medium">
425
- Jazz
426
- </div>
427
- <div className="text-fm-tertiary text-xs">
428
- text-fm-icon-info
429
- </div>
430
- </div>
431
- </div>
432
- <div className="flex items-center gap-4">
433
- <MusicalNoteIcon className="text-fm-icon-positive h-6 w-6" />
434
- <div>
435
- <div className="text-fm-icon-active text-sm font-medium">
436
- Electronic
437
- </div>
438
- <div className="text-fm-tertiary text-xs">
439
- text-fm-icon-positive
440
- </div>
441
- </div>
442
- </div>
443
- <div className="flex items-center gap-4">
444
- <MusicalNoteIcon className="text-fm-icon-warning h-6 w-6" />
445
- <div>
446
- <div className="text-fm-icon-active text-sm font-medium">
447
- Rock
448
- </div>
449
- <div className="text-fm-tertiary text-xs">
450
- text-fm-icon-warning
451
- </div>
452
- </div>
453
- </div>
454
- </div>
455
- </div>
456
-
457
- <div className="!space-y-4">
458
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
459
- Custom Colors
460
- </h3>
461
- <div className="bg-fm-surface-secondary rounded-lg p-4">
462
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
463
- {`// Using Tailwind classes
464
- <MusicalNoteIcon className="h-6 w-6 text-purple-400" />
465
- <MusicalNoteIcon className="h-6 w-6 text-pink-500" />
466
-
467
- // Using CSS custom properties
468
- <MusicalNoteIcon
469
- className="h-6 w-6"
470
- style={{ color: 'var(--color-primary)' }}
471
- />
472
-
473
- // Direct stroke prop
474
- <MusicalNoteIcon
475
- width={24}
476
- height={24}
477
- stroke="#a855f7"
478
- />`}
479
- </pre>
480
- </div>
481
- </div>
482
- </div>
483
- </div>
484
-
485
- {/* Usage Examples */}
486
- <div className="!space-y-8">
487
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
488
- Usage Examples
489
- </h2>
490
-
491
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
492
- {/* Music Player */}
493
- <div className="!space-y-4">
494
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
495
- Music Player
496
- </h3>
497
- <div className="!space-y-4">
498
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
499
- <div className="flex items-center gap-3">
500
- <div className="bg-fm-secondary-500/20 flex h-12 w-12 items-center justify-center rounded-lg">
501
- <MusicalNoteIcon className="text-fm-secondary-600 h-6 w-6" />
502
- </div>
503
- <div className="flex-1">
504
- <h4 className="text-fm-icon-active! font-medium">
505
- Bohemian Rhapsody
506
- </h4>
507
- <p className="text-fm-tertiary! text-sm">Queen</p>
508
- </div>
509
- <div className="text-fm-tertiary text-sm">3:42</div>
510
- </div>
511
- </div>
512
- <div className="bg-fm-surface-secondary rounded-lg p-4">
513
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
514
- {`<div className="flex items-center gap-3">
515
- <div className="flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
516
- <MusicalNoteIcon className="h-6 w-6 text-purple-400" />
517
- </div>
518
- <div className="flex-1">
519
- <h4 className="font-medium text-white">Bohemian Rhapsody</h4>
520
- <p className="text-sm text-white/60">Queen</p>
521
- </div>
522
- <div className="text-sm text-white/60">3:42</div>
523
- </div>`}
524
- </pre>
525
- </div>
526
- </div>
527
- </div>
528
-
529
- {/* Audio Upload */}
530
- <div className="!space-y-4">
531
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
532
- Audio Upload
533
- </h3>
534
- <div className="!space-y-4">
535
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/5 rounded-lg border-2 border-dashed p-8 text-center">
536
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-4 h-12 w-12" />
537
- <h4 className="text-fm-icon-active! mb-2 font-medium">
538
- Drop your audio files here
539
- </h4>
540
- <p className="text-fm-tertiary! text-sm">
541
- Supports MP3, WAV, FLAC formats
542
- </p>
543
- </div>
544
- <div className="bg-fm-surface-secondary rounded-lg p-4">
545
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
546
- {`<div className="rounded-lg border-2 border-dashed border-purple-500/30 bg-purple-500/5 p-8 text-center">
547
- <MusicalNoteIcon className="mx-auto mb-4 h-12 w-12 text-purple-400" />
548
- <h4 className="mb-2 font-medium text-white">
549
- Drop your audio files here
550
- </h4>
551
- <p className="text-sm text-white/60">
552
- Supports MP3, WAV, FLAC formats
553
- </p>
554
- </div>`}
555
- </pre>
556
- </div>
557
- </div>
558
- </div>
559
-
560
- {/* Navigation Menu */}
561
- <div className="!space-y-4">
562
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
563
- Navigation Menu
564
- </h3>
565
- <div className="!space-y-4">
566
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
567
- <nav className="!space-y-2">
568
- <a
569
- href="#"
570
- className="bg-fm-secondary-500/20 text-fm-secondary-600 flex items-center gap-3 rounded-lg px-3 py-2"
571
- >
572
- <MusicalNoteIcon className="h-5 w-5" />
573
- <span>My Music</span>
574
- </a>
575
- <a
576
- href="#"
577
- className="text-fm-tertiary hover:text-fm-icon-active flex items-center gap-3 px-3 py-2"
578
- >
579
- <span className="h-5 w-5">📀</span>
580
- <span>Albums</span>
581
- </a>
582
- <a
583
- href="#"
584
- className="text-fm-tertiary hover:text-fm-icon-active flex items-center gap-3 px-3 py-2"
585
- >
586
- <span className="h-5 w-5">🎵</span>
587
- <span>Playlists</span>
588
- </a>
589
- </nav>
590
- </div>
591
- <div className="bg-fm-surface-secondary rounded-lg p-4">
592
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
593
- {`<nav className="space-y-2">
594
- <a href="#" className="flex items-center gap-3 rounded-lg bg-purple-500/20 px-3 py-2 text-purple-200">
595
- <MusicalNoteIcon className="h-5 w-5" />
596
- <span>My Music</span>
597
- </a>
598
- <a href="#" className="flex items-center gap-3 px-3 py-2 text-white/60 hover:text-white">
599
- <span className="h-5 w-5">📀</span>
600
- <span>Albums</span>
601
- </a>
602
- </nav>`}
603
- </pre>
604
- </div>
605
- </div>
606
- </div>
607
-
608
- {/* Status Indicator */}
609
- <div className="!space-y-4">
610
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
611
- Status Indicator
612
- </h3>
613
- <div className="!space-y-4">
614
- <div className="flex items-center gap-4">
615
- <div className="relative">
616
- <MusicalNoteIcon className="text-fm-secondary-600 h-6 w-6" />
617
- <div className="bg-fm-icon-positive absolute -top-1 -right-1 h-3 w-3 animate-pulse rounded-full"></div>
618
- </div>
619
- <div>
620
- <div className="text-fm-icon-active font-medium">
621
- Audio Playing
622
- </div>
623
- <div className="text-fm-tertiary text-sm">
624
- Click to pause
625
- </div>
626
- </div>
627
- </div>
628
- <div className="bg-fm-surface-secondary rounded-lg p-4">
629
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
630
- {`<div className="relative">
631
- <MusicalNoteIcon className="h-6 w-6 text-purple-400" />
632
- <div className="absolute -top-1 -right-1 h-3 w-3 rounded-full bg-green-500 animate-pulse"></div>
633
- </div>`}
634
- </pre>
635
- </div>
636
- </div>
637
- </div>
638
- </div>
639
- </div>
640
-
641
- {/* Accessibility */}
642
- <div className="!space-y-8">
643
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
644
- Accessibility Features
645
- </h2>
646
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
647
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
648
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
649
- ✅ Built-in Features
650
- </h3>
651
- <ul className="text-fm-secondary! !space-y-2 text-sm">
652
- <li className="text-fm-secondary!">
653
- Uses Radix UI AccessibleIcon wrapper
654
- </li>
655
- <li className="text-fm-secondary!">
656
- Provides screen reader label "Musical Note Icon"
657
- </li>
658
- <li className="text-fm-secondary!">
659
- Supports keyboard navigation when interactive
660
- </li>
661
- <li className="text-fm-secondary!">
662
- Maintains proper color contrast ratios
663
- </li>
664
- <li className="text-fm-secondary!">
665
- Scales with user's font size preferences
666
- </li>
667
- </ul>
668
- </div>
669
-
670
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
671
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
672
- 💡 Best Practices
673
- </h3>
674
- <ul className="text-fm-secondary !space-y-2 text-sm">
675
- <li className="text-fm-secondary!">
676
- Always pair with descriptive text
677
- </li>
678
- <li className="text-fm-secondary!">
679
- Use consistent colors for music states
680
- </li>
681
- <li className="text-fm-secondary!">
682
- Ensure sufficient color contrast
683
- </li>
684
- <li className="text-fm-secondary!">
685
- Add focus states for interactive elements
686
- </li>
687
- <li className="text-fm-secondary!">
688
- Consider motion sensitivity for animations
689
- </li>
690
- </ul>
691
- </div>
692
- </div>
693
-
694
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
695
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
696
- Custom Accessibility Label
697
- </h3>
698
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
699
- <div className="bg-fm-surface-secondary rounded-lg p-4">
700
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
701
- {`// Custom implementation with specific label
702
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
703
-
704
- function CustomMusicalNoteIcon({ label = "Musical Note", ...props }) {
705
- return (
706
- <AccessibleIcon label={label}>
707
- <MusicalNoteIcon {...props} />
708
- </AccessibleIcon>
709
- )
710
- }
711
-
712
- // Usage with specific context
713
- <CustomMusicalNoteIcon
714
- label="Currently playing track"
715
- className="h-6 w-6 text-purple-400"
716
- />`}
717
- </pre>
718
- </div>
719
- <div className="!space-y-4">
720
- <p className="text-fm-secondary! text-sm">
721
- For specific contexts, you can wrap the MusicalNoteIcon
722
- with a custom AccessibleIcon component that provides
723
- more descriptive labels.
724
- </p>
725
- <div className="border-fm-secondary-500/20 bg-fm-secondary-500/10 rounded-lg border p-4">
726
- <div className="text-fm-secondary-600 flex items-center gap-2 text-sm">
727
- <MusicalNoteIcon className="h-4 w-4" />
728
- <span>
729
- This approach gives screen readers more context
730
- </span>
731
- </div>
732
- </div>
733
- </div>
734
- </div>
735
- </div>
52
+ }`,
53
+ livePreview: (
54
+ <div className="flex items-center gap-2">
55
+ <MusicalNoteIcon className="text-fm-icon-active h-5 w-5" />
736
56
  </div>
737
-
738
- {/* Related Icons */}
739
- <div className="!space-y-8">
740
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
741
- Related Icons
742
- </h2>
743
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
744
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
745
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
746
- <span className="text-2xl">🎵</span>
747
- </div>
748
- <div>
749
- <div className="text-fm-icon-active font-medium">
750
- PlayIcon
751
- </div>
752
- <div className="text-fm-tertiary text-xs">
753
- Playback controls
754
- </div>
755
- </div>
756
- </div>
757
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
758
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
759
- <span className="text-2xl">⏸️</span>
760
- </div>
761
- <div>
762
- <div className="text-fm-icon-active font-medium">
763
- PauseIcon
764
- </div>
765
- <div className="text-fm-tertiary text-xs">
766
- Pause controls
767
- </div>
768
- </div>
769
- </div>
770
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
771
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
772
- <span className="text-2xl">🔊</span>
773
- </div>
774
- <div>
775
- <div className="text-fm-icon-active font-medium">
776
- VolumeIcon
777
- </div>
778
- <div className="text-fm-tertiary text-xs">
779
- Volume controls
780
- </div>
781
- </div>
782
- </div>
783
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
784
- <div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
785
- <span className="text-2xl">🎧</span>
786
- </div>
787
- <div>
788
- <div className="text-fm-icon-active font-medium">
789
- HeadphoneIcon
790
- </div>
791
- <div className="text-fm-tertiary text-xs">
792
- Audio devices
793
- </div>
794
- </div>
795
- </div>
796
- </div>
797
- </div>
798
- </div>
799
-
800
- {/* Footer */}
801
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
802
- <div className="!mx-auto max-w-7xl px-6 py-8">
803
- <div className="!space-y-4 text-center">
804
- <p className="text-fm-tertiary!">
805
- MusicalNoteIcon is part of the Aural UI icon library, built
806
- with accessibility and consistency in mind.
807
- </p>
808
- <p className="text-fm-placeholder! text-sm">
809
- All icons use Radix UI's AccessibleIcon for screen reader
810
- compatibility and follow WCAG guidelines.
811
- </p>
812
- </div>
813
- </div>
814
- </div>
815
- </div>
816
- </>
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
+ />
817
86
  ),
818
87
  },
819
88
  },
820
89
  tags: ["autodocs"],
821
90
  argTypes: {
822
- width: {
823
- control: { type: "range", min: 8, max: 96, step: 2 },
824
- description: "Width of the icon in pixels",
91
+ className: {
92
+ control: "text",
93
+ description: "CSS classes including color token",
825
94
  },
826
95
  withAccessibility: {
827
96
  control: "boolean",
828
- description: "Whether to wrap the icon with accessibility features",
829
- },
830
- height: {
831
- control: { type: "range", min: 8, max: 96, step: 2 },
832
- description: "Height of the icon in pixels",
833
- },
834
- stroke: {
835
- control: "color",
836
- description: "Stroke color of the icon",
837
- },
838
- strokeWidth: {
839
- control: { type: "range", min: 0.5, max: 3, step: 0.125 },
840
- description: "Width of the stroke",
841
- },
842
- className: {
843
- control: "text",
844
- description: "CSS classes for styling",
97
+ description: "Wrap with accessibility label",
845
98
  },
846
99
  },
847
100
  }
@@ -849,236 +102,87 @@ function CustomMusicalNoteIcon({ label = "Musical Note", ...props }) {
849
102
  export default meta
850
103
  type Story = StoryObj<typeof MusicalNoteIcon>
851
104
 
852
- // Story parameters for consistent dark theme
853
- const storyParameters = {
854
- backgrounds: {
855
- default: "dark",
856
- values: [
857
- { name: "dark", value: "var(--color-fm-surface-primary)" },
858
- { name: "darker", value: "var(--color-fm-neutral-0)" },
859
- ],
860
- },
861
- }
862
-
863
105
  export const Default: Story = {
864
106
  args: {
865
- width: 24,
866
- height: 24,
867
- className: "text-fm-secondary-600",
107
+ className: "h-6 w-6 text-fm-icon-active",
868
108
  withAccessibility: true,
869
109
  },
870
- parameters: storyParameters,
871
110
  render: (args) => (
872
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
111
+ <IconDefaultCanvas>
873
112
  <MusicalNoteIcon {...args} />
874
- </div>
113
+ </IconDefaultCanvas>
875
114
  ),
876
115
  }
877
116
 
878
117
  export const SizeVariations: Story = {
879
- parameters: {
880
- ...storyParameters,
881
- docs: {
882
- description: {
883
- story:
884
- "MusicalNoteIcon in different sizes, from small UI elements to large displays.",
885
- },
886
- },
887
- },
888
- render: () => (
889
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
890
- <div className="text-center">
891
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
892
- <span className="text-fm-tertiary text-xs">12px</span>
893
- </div>
894
- <div className="text-center">
895
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
896
- <span className="text-fm-tertiary text-xs">16px</span>
897
- </div>
898
- <div className="text-center">
899
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
900
- <span className="text-fm-tertiary text-xs">20px</span>
901
- </div>
902
- <div className="text-center">
903
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
904
- <span className="text-fm-tertiary text-xs">24px</span>
905
- </div>
906
- <div className="text-center">
907
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
908
- <span className="text-fm-tertiary text-xs">32px</span>
909
- </div>
910
- <div className="text-center">
911
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
912
- <span className="text-fm-tertiary text-xs">48px</span>
913
- </div>
914
- </div>
915
- ),
118
+ render: () => <IconSizeVariations icon={MusicalNoteIcon} />,
916
119
  }
917
120
 
918
121
  export const ColorVariations: Story = {
919
- parameters: {
920
- ...storyParameters,
921
- docs: {
922
- description: {
923
- story:
924
- "MusicalNoteIcon in different colors for various musical themes and contexts.",
925
- },
926
- },
927
- },
928
- render: () => (
929
- <div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-5">
930
- <div className="text-center">
931
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
932
- <MusicalNoteIcon className="text-fm-secondary-600 h-8 w-8" />
933
- </div>
934
- <div className="text-fm-icon-active text-sm font-medium">Classic</div>
935
- <div className="text-fm-secondary-600 text-xs">
936
- text-fm-secondary-600
937
- </div>
938
- </div>
939
- <div className="text-center">
940
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
941
- <MusicalNoteIcon className="text-fm-secondary-600 h-8 w-8" />
942
- </div>
943
- <div className="text-fm-icon-active text-sm font-medium">Pop</div>
944
- <div className="text-fm-secondary-600 text-xs">
945
- text-fm-secondary-600
946
- </div>
947
- </div>
948
- <div className="text-center">
949
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
950
- <MusicalNoteIcon className="text-fm-icon-info h-8 w-8" />
951
- </div>
952
- <div className="text-fm-icon-active text-sm font-medium">Jazz</div>
953
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
954
- </div>
955
- <div className="text-center">
956
- <div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
957
- <MusicalNoteIcon className="text-fm-icon-positive h-8 w-8" />
958
- </div>
959
- <div className="text-fm-icon-active text-sm font-medium">
960
- Electronic
961
- </div>
962
- <div className="text-fm-icon-positive text-xs">
963
- text-fm-icon-positive
964
- </div>
965
- </div>
966
- <div className="text-center">
967
- <div className="border-fm-icon-warning/30 bg-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
968
- <MusicalNoteIcon className="text-fm-icon-warning h-8 w-8" />
969
- </div>
970
- <div className="text-fm-icon-active text-sm font-medium">Rock</div>
971
- <div className="text-fm-icon-warning text-xs">text-fm-icon-warning</div>
972
- </div>
973
- </div>
974
- ),
122
+ render: () => <IconColorVariations icon={MusicalNoteIcon} />,
975
123
  }
976
124
 
977
125
  export const UsageExamples: Story = {
978
- parameters: {
979
- ...storyParameters,
980
- docs: {
981
- description: {
982
- story:
983
- "Real-world usage examples showing MusicalNoteIcon in different UI contexts.",
984
- },
985
- },
986
- },
987
126
  render: () => (
988
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
989
- {/* Music Player */}
990
- <div className="!space-y-2">
991
- <h3 className="text-fm-icon-active text-sm font-medium">
992
- Music Player
993
- </h3>
994
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
995
- <div className="flex items-center gap-3">
996
- <div className="bg-fm-secondary-500/20 flex h-12 w-12 items-center justify-center rounded-lg">
997
- <MusicalNoteIcon className="text-fm-secondary-600 h-6 w-6" />
998
- </div>
999
- <div className="flex-1">
1000
- <h4 className="text-fm-icon-active font-medium">
1001
- Bohemian Rhapsody
1002
- </h4>
1003
- <p className="text-fm-tertiary text-sm">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
1004
134
  </div>
1005
- <div className="text-fm-tertiary text-sm">3:42</div>
135
+ <div className="text-fm-secondary font-fm-text text-xs">3:42</div>
1006
136
  </div>
137
+ <CircularPlayIcon className="text-fm-icon-active h-8 w-8" />
1007
138
  </div>
1008
- </div>
1009
-
1010
- {/* Audio Upload */}
1011
- <div className="!space-y-2">
1012
- <h3 className="text-fm-icon-active text-sm font-medium">
1013
- Audio Upload
1014
- </h3>
1015
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/5 rounded-lg border-2 border-dashed p-8 text-center">
1016
- <MusicalNoteIcon className="text-fm-secondary-600 !mx-auto mb-4 h-12 w-12" />
1017
- <h4 className="text-fm-icon-active mb-2 font-medium">
1018
- Drop your audio files here
1019
- </h4>
1020
- <p className="text-fm-tertiary text-sm">
1021
- Supports MP3, WAV, FLAC formats
1022
- </p>
1023
- </div>
1024
- </div>
1025
-
1026
- {/* Navigation Menu */}
1027
- <div className="!space-y-2">
1028
- <h3 className="text-fm-icon-active text-sm font-medium">
1029
- Navigation Menu
1030
- </h3>
1031
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
1032
- <nav className="!space-y-2">
1033
- <a
1034
- href="#"
1035
- className="bg-fm-secondary-500/20 text-fm-secondary-600 flex items-center gap-3 rounded-lg px-3 py-2"
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"
1036
147
  >
1037
- <MusicalNoteIcon className="h-5 w-5" />
1038
- <span>My Music</span>
1039
- </a>
1040
- <a
1041
- href="#"
1042
- className="text-fm-tertiary hover:text-fm-icon-active flex items-center gap-3 px-3 py-2"
1043
- >
1044
- <span className="h-5 w-5">📀</span>
1045
- <span>Albums</span>
1046
- </a>
1047
- <a
1048
- href="#"
1049
- className="text-fm-tertiary hover:text-fm-icon-active flex items-center gap-3 px-3 py-2"
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"
1050
165
  >
1051
- <span className="h-5 w-5">🎵</span>
1052
- <span>Playlists</span>
1053
- </a>
1054
- </nav>
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
+ ))}
1055
172
  </div>
1056
- </div>
1057
- </div>
173
+ </IconUsageSection>
174
+ </IconUsageCanvas>
1058
175
  ),
1059
176
  }
1060
177
 
1061
178
  export const Playground: Story = {
1062
- parameters: {
1063
- ...storyParameters,
1064
- docs: {
1065
- description: {
1066
- story:
1067
- "Interactive playground to experiment with different MusicalNoteIcon configurations.",
1068
- },
1069
- },
1070
- },
1071
179
  args: {
1072
- width: 32,
1073
- height: 32,
1074
- className: "text-fm-secondary-600",
1075
- strokeWidth: 1.125,
180
+ className: "h-8 w-8 text-fm-icon-active",
181
+ withAccessibility: true,
1076
182
  },
1077
183
  render: (args) => (
1078
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
1079
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
1080
- <MusicalNoteIcon {...args} />
1081
- </div>
1082
- </div>
184
+ <IconPlaygroundCanvas>
185
+ <MusicalNoteIcon {...args} />
186
+ </IconPlaygroundCanvas>
1083
187
  ),
1084
188
  }