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