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