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