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 { MagicBookIcon } from "src/ui/icons/magic-book-icon"
5
+ import { MagicEditIcon } from "src/ui/icons/magic-edit-icon"
6
+ import { MusicalNoteIcon } from "src/ui/icons/musical-note-icon"
7
+ import { SiteLogoIcon } from "src/ui/icons/site-logo-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 { PocketStudioIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof PocketStudioIcon> = {
@@ -11,693 +25,76 @@ const meta: Meta<typeof PocketStudioIcon> = {
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 !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: #0a0a0a !important;
44
- }
45
- #storybook-docs {
46
- background: #0a0a0a !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: white !important;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: rgba(255, 255, 255, 0.7) !important;
57
- }
58
- .sbdocs-code {
59
- background: rgba(255, 255, 255, 0.1) !important;
60
- color: rgba(168, 85, 247, 1) !important;
61
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
62
- }
63
- .sbdocs-pre {
64
- background: rgba(0, 0, 0, 0.4) !important;
65
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
66
- }
67
- .sbdocs-table {
68
- background: rgba(255, 255, 255, 0.05) !important;
69
- border: 1px solid rgba(255, 255, 255, 0.1) !important;
70
- }
71
- .sbdocs-table th {
72
- background: rgba(255, 255, 255, 0.05) !important;
73
- color: white !important;
74
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
75
- }
76
- .sbdocs-table td {
77
- color: rgba(255, 255, 255, 0.7) !important;
78
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
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-pink-500/10" />
87
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
- <div className="!space-y-6 text-center">
89
- <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-purple-500/30 bg-gradient-to-br from-purple-500/20 to-pink-500/20">
90
- <PocketStudioIcon className="h-12 w-12 text-purple-400" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- PocketStudioIcon
94
- </h1>
95
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
- A creative studio icon representing design tools, creative
97
- workspaces, and artistic applications. Perfect for branding,
98
- creative apps, and design tools. Built with accessibility in
99
- mind using Radix UI's AccessibleIcon wrapper.
100
- </p>
101
-
102
- {/* Stats */}
103
- <div className="flex items-center justify-center gap-8 pt-8">
104
- <div className="text-center">
105
- <div className="text-3xl font-bold text-purple-300">
106
- Creative
107
- </div>
108
- <div className="text-sm text-white/60">
109
- Design & art tools
110
- </div>
111
- </div>
112
- <div className="h-8 w-px bg-white/20" />
113
- <div className="text-center">
114
- <div className="text-3xl font-bold text-pink-300">
115
- Studio
116
- </div>
117
- <div className="text-sm text-white/60">
118
- Workspace branding
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-indigo-300">
124
- Flexible
125
- </div>
126
- <div className="text-sm text-white/60">
127
- Customizable styling
128
- </div>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
-
135
- {/* Content */}
136
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
137
- {/* Quick Usage */}
138
- <div className="!space-y-8">
139
- <h2 className="text-center text-3xl font-bold !text-white">
140
- Quick Start
141
- </h2>
142
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
- <div className="!space-y-4">
144
- <h3 className="text-xl font-semibold !text-purple-300">
145
- Basic Usage
146
- </h3>
147
- <div className="rounded-lg bg-black/40 p-4">
148
- <pre className="overflow-x-auto text-sm !text-green-300">
149
- {`import { PocketStudioIcon } from "@icons/pocket-studio-icon"
150
-
151
- function AppHeader() {
35
+ <AuralIconDocsPage
36
+ accentToken="info"
37
+ features={[
38
+ { title: "Studio", description: "Creator studio tool icon" },
39
+ { title: "Workspace", description: "Content creation workspace" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { PocketStudioIcon } from "src/ui/icons/pocket-studio-icon"
44
+
45
+ function StudioLink() {
152
46
  return (
153
- <div className="flex items-center gap-2">
154
- <PocketStudioIcon className="h-6 w-6 text-purple-500" />
47
+ <button className="flex items-center gap-2">
48
+ <PocketStudioIcon className="h-5 w-5 text-fm-icon-active" />
155
49
  <span>Pocket Studio</span>
156
- </div>
50
+ </button>
157
51
  )
158
- }`}
159
- </pre>
160
- </div>
161
- </div>
162
-
163
- <div className="!space-y-4">
164
- <h3 className="text-xl font-semibold !text-purple-300">
165
- Live Preview
166
- </h3>
167
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
168
- <div className="flex items-center gap-3 rounded-lg border border-purple-500/20 bg-purple-500/10 px-4 py-2">
169
- <PocketStudioIcon className="h-6 w-6 text-purple-400" />
170
- <span className="text-white">Pocket Studio</span>
171
- </div>
172
- </div>
173
- </div>
174
- </div>
175
- </div>
176
-
177
- {/* Props Documentation */}
178
- <div className="!space-y-8">
179
- <h2 className="text-center text-3xl font-bold !text-white">
180
- Props & Configuration
181
- </h2>
182
-
183
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
184
- <div className="bg-white/5 p-4">
185
- <h3 className="text-xl font-semibold !text-white">Props</h3>
186
- </div>
187
- <table className="!my-0 w-full">
188
- <thead className="bg-white/5">
189
- <tr className="border-b border-white/10">
190
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
191
- Prop
192
- </th>
193
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
194
- Type
195
- </th>
196
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
197
- Default
198
- </th>
199
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
200
- Description
201
- </th>
202
- </tr>
203
- </thead>
204
- <tbody>
205
- {" "}
206
- <tr className="!bg-black/10">
207
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
208
- withAccessibility
209
- </td>
210
- <td className="px-6 py-4 text-sm !text-white/70">
211
- boolean
212
- </td>
213
- <td className="px-6 py-4 text-sm !text-white/50">
214
- true
215
- </td>
216
- <td className="px-6 py-4 text-sm !text-white/70">
217
- Whether to wrap the icon with accessibility feature
218
- </td>
219
- </tr>
220
- <tr className="border-b border-white/5 !bg-black/10">
221
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
222
- height
223
- </td>
224
- <td className="px-6 py-4 text-sm !text-white/70">
225
- number | string
226
- </td>
227
- <td className="px-6 py-4 text-sm !text-white/50">32</td>
228
- <td className="px-6 py-4 text-sm !text-white/70">
229
- Height of the icon in pixels
230
- </td>
231
- </tr>
232
- <tr className="border-b border-white/5">
233
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
234
- fill
235
- </td>
236
- <td className="px-6 py-4 text-sm !text-white/70">
237
- string
238
- </td>
239
- <td className="px-6 py-4 text-sm !text-white/50">
240
- currentColor
241
- </td>
242
- <td className="px-6 py-4 text-sm !text-white/70">
243
- Fill 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-purple-300">
248
- className
249
- </td>
250
- <td className="px-6 py-4 text-sm !text-white/70">
251
- string
252
- </td>
253
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
254
- <td className="px-6 py-4 text-sm !text-white/70">
255
- CSS classes for styling
256
- </td>
257
- </tr>
258
- <tr className="!bg-black/10">
259
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
260
- ...svgProps
261
- </td>
262
- <td className="px-6 py-4 text-sm !text-white/70">
263
- SVGProps
264
- </td>
265
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
266
- <td className="px-6 py-4 text-sm !text-white/70">
267
- All standard SVG element props
268
- </td>
269
- </tr>
270
- </tbody>
271
- </table>
272
- </div>
273
- </div>
274
-
275
- {/* Size Variations */}
276
- <div className="!space-y-8">
277
- <h2 className="text-center text-3xl font-bold !text-white">
278
- Size Variations
279
- </h2>
280
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
281
- <div className="!space-y-6">
282
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
283
- <div className="!space-y-4">
284
- <h3 className="text-lg font-semibold !text-purple-300">
285
- Standard Sizes
286
- </h3>
287
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
288
- <div className="text-center">
289
- <PocketStudioIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
290
- <span className="text-xs text-white/60">16px</span>
291
- </div>
292
- <div className="text-center">
293
- <PocketStudioIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
294
- <span className="text-xs text-white/60">20px</span>
295
- </div>
296
- <div className="text-center">
297
- <PocketStudioIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
298
- <span className="text-xs text-white/60">24px</span>
299
- </div>
300
- <div className="text-center">
301
- <PocketStudioIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
302
- <span className="text-xs text-white/60">32px</span>
303
- </div>
304
- <div className="text-center">
305
- <PocketStudioIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
306
- <span className="text-xs text-white/60">48px</span>
307
- </div>
308
- </div>
309
- </div>
310
-
311
- <div className="!space-y-4">
312
- <h3 className="text-lg font-semibold !text-purple-300">
313
- Code Example
314
- </h3>
315
- <div className="rounded-lg bg-black/40 p-4">
316
- <pre className="overflow-x-auto text-sm !text-cyan-300">
317
- {`// Small (16px)
318
- <PocketStudioIcon className="h-4 w-4" />
319
-
320
- // Medium (24px)
321
- <PocketStudioIcon className="h-6 w-6" />
322
-
323
- // Large (32px)
324
- <PocketStudioIcon className="h-8 w-8" />
325
-
326
- // Custom size
327
- <PocketStudioIcon width={40} height={40} />`}
328
- </pre>
329
- </div>
330
- </div>
331
- </div>
332
- </div>
333
- </div>
334
- </div>
335
-
336
- {/* Color Variations */}
337
- <div className="!space-y-8">
338
- <h2 className="text-center text-3xl font-bold !text-white">
339
- Color Variations
340
- </h2>
341
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
342
- <div className="!space-y-4">
343
- <h3 className="text-lg font-semibold !text-purple-300">
344
- Semantic Colors
345
- </h3>
346
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
347
- <div className="flex items-center gap-4">
348
- <PocketStudioIcon className="h-6 w-6 text-purple-400" />
349
- <div>
350
- <div className="text-sm font-medium text-white">
351
- Primary
352
- </div>
353
- <div className="text-xs text-white/60">
354
- text-purple-400
355
- </div>
356
- </div>
357
- </div>
358
- <div className="flex items-center gap-4">
359
- <PocketStudioIcon className="h-6 w-6 text-pink-400" />
360
- <div>
361
- <div className="text-sm font-medium text-white">
362
- Accent
363
- </div>
364
- <div className="text-xs text-white/60">
365
- text-pink-400
366
- </div>
367
- </div>
368
- </div>
369
- <div className="flex items-center gap-4">
370
- <PocketStudioIcon className="h-6 w-6 text-blue-400" />
371
- <div>
372
- <div className="text-sm font-medium text-white">
373
- Creative
374
- </div>
375
- <div className="text-xs text-white/60">
376
- text-blue-400
377
- </div>
378
- </div>
379
- </div>
380
- <div className="flex items-center gap-4">
381
- <PocketStudioIcon className="h-6 w-6 text-gray-400" />
382
- <div>
383
- <div className="text-sm font-medium text-white">
384
- Neutral
385
- </div>
386
- <div className="text-xs text-white/60">
387
- text-gray-400
388
- </div>
389
- </div>
390
- </div>
391
- </div>
392
- </div>
393
-
394
- <div className="!space-y-4">
395
- <h3 className="text-lg font-semibold !text-purple-300">
396
- Custom Colors
397
- </h3>
398
- <div className="rounded-lg bg-black/40 p-4">
399
- <pre className="overflow-x-auto text-sm !text-green-300">
400
- {`// Using Tailwind classes
401
- <PocketStudioIcon className="h-6 w-6 text-purple-400" />
402
- <PocketStudioIcon className="h-6 w-6 text-pink-500" />
403
-
404
- // Using CSS custom properties
405
- <PocketStudioIcon
406
- className="h-6 w-6"
407
- style={{ color: 'var(--color-primary)' }}
408
- />
409
-
410
- // Direct fill prop
411
- <PocketStudioIcon
412
- width={32}
413
- height={32}
414
- fill="#a855f7"
415
- />`}
416
- </pre>
417
- </div>
418
- </div>
419
- </div>
420
- </div>
421
-
422
- {/* Usage Examples */}
423
- <div className="!space-y-8">
424
- <h2 className="text-center text-3xl font-bold !text-white">
425
- Usage Examples
426
- </h2>
427
-
428
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
429
- {/* App Branding */}
430
- <div className="!space-y-4">
431
- <h3 className="text-lg font-semibold !text-purple-300">
432
- App Branding
433
- </h3>
434
- <div className="!space-y-4">
435
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-4">
436
- <PocketStudioIcon className="h-8 w-8 text-purple-400" />
437
- <div>
438
- <div className="text-lg font-semibold text-white">
439
- Pocket Studio
440
- </div>
441
- <div className="text-sm text-white/60">
442
- Creative Design Tool
443
- </div>
444
- </div>
445
- </div>
446
- <div className="rounded-lg bg-black/40 p-4">
447
- <pre className="overflow-x-auto text-sm !text-green-300">
448
- {`// App header with branding
449
- <div className="flex items-center gap-3">
450
- <PocketStudioIcon className="h-8 w-8 text-purple-400" />
451
- <div>
452
- <div className="text-lg font-semibold text-white">Pocket Studio</div>
453
- <div className="text-sm text-white/60">Creative Design Tool</div>
454
- </div>
455
- </div>`}
456
- </pre>
457
- </div>
458
- </div>
459
- </div>
460
-
461
- {/* Navigation Menu */}
462
- <div className="!space-y-4">
463
- <h3 className="text-lg font-semibold !text-purple-300">
464
- Navigation Menu
465
- </h3>
466
- <div className="!space-y-4">
467
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
468
- <div className="!space-y-2">
469
- <div className="flex items-center gap-3 rounded-lg bg-purple-500/20 px-3 py-2 text-purple-200">
470
- <PocketStudioIcon className="h-5 w-5" />
471
- <span className="text-sm font-medium">Studio</span>
472
- </div>
473
- <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
474
- <div className="h-5 w-5 rounded bg-gray-600"></div>
475
- <span className="text-sm">Projects</span>
476
- </div>
477
- <div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
478
- <div className="h-5 w-5 rounded bg-gray-600"></div>
479
- <span className="text-sm">Templates</span>
480
- </div>
481
- </div>
482
- </div>
483
- <div className="rounded-lg bg-black/40 p-4">
484
- <pre className="overflow-x-auto text-sm !text-green-300">
485
- {`// Active navigation item
486
- <div className="flex items-center gap-3 bg-purple-500/20 px-3 py-2 rounded-lg text-purple-200">
487
- <PocketStudioIcon className="h-5 w-5" />
488
- <span className="text-sm font-medium">Studio</span>
489
- </div>`}
490
- </pre>
491
- </div>
492
- </div>
493
- </div>
494
-
495
- {/* Toolbar Button */}
496
- <div className="!space-y-4">
497
- <h3 className="text-lg font-semibold !text-purple-300">
498
- Toolbar Button
499
- </h3>
500
- <div className="!space-y-4">
501
- <div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 p-3">
502
- <button className="flex items-center gap-2 rounded border border-purple-500/30 bg-purple-500/20 px-3 py-1.5 text-purple-200">
503
- <PocketStudioIcon className="h-4 w-4" />
504
- <span className="text-sm">Open Studio</span>
505
- </button>
506
- <button className="flex items-center gap-2 rounded border border-white/20 bg-white/5 px-3 py-1.5 text-white/60 hover:bg-white/10">
507
- <span className="text-sm">Export</span>
508
- </button>
509
- </div>
510
- <div className="rounded-lg bg-black/40 p-4">
511
- <pre className="overflow-x-auto text-sm !text-green-300">
512
- {`// Toolbar with studio button
513
- <button className="flex items-center gap-2 bg-purple-500/20 border border-purple-500/30 px-3 py-1.5 rounded text-purple-200">
514
- <PocketStudioIcon className="h-4 w-4" />
515
- <span className="text-sm">Open Studio</span>
516
- </button>`}
517
- </pre>
518
- </div>
519
- </div>
520
- </div>
521
-
522
- {/* Feature Card */}
523
- <div className="!space-y-4">
524
- <h3 className="text-lg font-semibold !text-purple-300">
525
- Feature Card
526
- </h3>
527
- <div className="!space-y-4">
528
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
529
- <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
530
- <PocketStudioIcon className="h-6 w-6 text-purple-400" />
531
- </div>
532
- <h4 className="mb-2 text-lg font-semibold text-white">
533
- Pocket Studio
534
- </h4>
535
- <p className="text-sm text-white/70">
536
- Create beautiful designs with our intuitive studio
537
- interface.
538
- </p>
539
- </div>
540
- <div className="rounded-lg bg-black/40 p-4">
541
- <pre className="overflow-x-auto text-sm !text-green-300">
542
- {`// Feature card
543
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
544
- <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
545
- <PocketStudioIcon className="h-6 w-6 text-purple-400" />
546
- </div>
547
- <h4 className="mb-2 text-lg font-semibold text-white">Pocket Studio</h4>
548
- <p className="text-sm text-white/70">Create beautiful designs...</p>
549
- </div>`}
550
- </pre>
551
- </div>
552
- </div>
553
- </div>
554
- </div>
555
- </div>
556
-
557
- {/* Accessibility */}
558
- <div className="!space-y-8">
559
- <h2 className="text-center text-3xl font-bold !text-white">
560
- Accessibility Features
561
- </h2>
562
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
563
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
564
- <h3 className="text-lg font-semibold !text-green-300">
565
- ✅ Built-in Features
566
- </h3>
567
- <ul className="!space-y-2 text-sm !text-white/70">
568
- <li className="!text-white/70">
569
- Uses Radix UI AccessibleIcon wrapper
570
- </li>
571
- <li className="!text-white/70">
572
- Provides screen reader label "Pocket studio icon"
573
- </li>
574
- <li className="!text-white/70">
575
- Supports keyboard navigation when interactive
576
- </li>
577
- <li className="!text-white/70">
578
- Maintains proper color contrast ratios
579
- </li>
580
- <li className="!text-white/70">
581
- Scales with user's font size preferences
582
- </li>
583
- </ul>
584
- </div>
585
-
586
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
587
- <h3 className="text-lg font-semibold !text-purple-300">
588
- 💡 Best Practices
589
- </h3>
590
- <ul className="!space-y-2 text-sm text-white/70">
591
- <li className="!text-white/70">
592
- Always pair with descriptive text labels
593
- </li>
594
- <li className="!text-white/70">
595
- Use consistent placement for branding
596
- </li>
597
- <li className="!text-white/70">
598
- Ensure sufficient click/touch target sizes
599
- </li>
600
- <li className="!text-white/70">
601
- Add focus states for keyboard navigation
602
- </li>
603
- <li className="!text-white/70">
604
- Consider brand color guidelines
605
- </li>
606
- </ul>
607
- </div>
608
- </div>
609
- </div>
610
-
611
- {/* Related Icons */}
612
- <div className="!space-y-8">
613
- <h2 className="text-center text-3xl font-bold !text-white">
614
- Related Icons
615
- </h2>
616
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
617
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
618
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
619
- <span className="text-2xl">🎨</span>
620
- </div>
621
- <div>
622
- <div className="font-medium text-white">ArtBoardIcon</div>
623
- <div className="text-xs text-white/60">Design canvas</div>
624
- </div>
625
- </div>
626
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
627
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
628
- <span className="text-2xl">✨</span>
629
- </div>
630
- <div>
631
- <div className="font-medium text-white">SparkleIcon</div>
632
- <div className="text-xs text-white/60">
633
- Creative effects
634
- </div>
635
- </div>
636
- </div>
637
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
638
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
639
- <span className="text-2xl">📝</span>
640
- </div>
641
- <div>
642
- <div className="font-medium text-white">EditIcon</div>
643
- <div className="text-xs text-white/60">Edit content</div>
644
- </div>
645
- </div>
646
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
647
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
648
- <span className="text-2xl">🖼️</span>
649
- </div>
650
- <div>
651
- <div className="font-medium text-white">ImageIcon</div>
652
- <div className="text-xs text-white/60">Media assets</div>
653
- </div>
654
- </div>
655
- </div>
656
- </div>
657
- </div>
658
-
659
- {/* Footer */}
660
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
661
- <div className="!mx-auto max-w-7xl px-6 py-8">
662
- <div className="!space-y-4 text-center">
663
- <p className="!text-white/60">
664
- PocketStudioIcon is part of the Aural UI icon library, built
665
- for creative applications and design tools.
666
- </p>
667
- <p className="text-sm !text-white/40">
668
- All icons use Radix UI's AccessibleIcon for screen reader
669
- compatibility and follow WCAG guidelines for interactive
670
- elements.
671
- </p>
672
- </div>
673
- </div>
674
- </div>
675
- </div>
676
- </>
52
+ }`,
53
+ livePreview: (
54
+ <button className="flex items-center gap-2">
55
+ <PocketStudioIcon className="text-fm-icon-active h-6 w-6" />
56
+ </button>
57
+ ),
58
+ }}
59
+ relatedIcons={[
60
+ {
61
+ name: "SiteLogoIcon",
62
+ description: "Pocket FM site logo icon",
63
+ icon: SiteLogoIcon,
64
+ accentToken: "info",
65
+ },
66
+ {
67
+ name: "MagicBookIcon",
68
+ description: "AI-assisted story creation",
69
+ icon: MagicBookIcon,
70
+ accentToken: "positive",
71
+ },
72
+ {
73
+ name: "MagicEditIcon",
74
+ description: "AI-enhanced edit icon",
75
+ icon: MagicEditIcon,
76
+ accentToken: "warning",
77
+ },
78
+ {
79
+ name: "MusicalNoteIcon",
80
+ description: "Music / audio content icon",
81
+ icon: MusicalNoteIcon,
82
+ accentToken: "negative",
83
+ },
84
+ ]}
85
+ />
677
86
  ),
678
87
  },
679
88
  },
680
89
  tags: ["autodocs"],
681
90
  argTypes: {
682
- width: {
683
- control: { type: "range", min: 8, max: 96, step: 2 },
684
- description: "Width of the icon in pixels",
91
+ className: {
92
+ control: "text",
93
+ description: "CSS classes including color token",
685
94
  },
686
95
  withAccessibility: {
687
96
  control: "boolean",
688
- description: "Whether to wrap the icon with accessibility features",
689
- },
690
- height: {
691
- control: { type: "range", min: 8, max: 96, step: 2 },
692
- description: "Height of the icon in pixels",
693
- },
694
- fill: {
695
- control: "color",
696
- description: "Fill color of the icon",
697
- },
698
- className: {
699
- control: "text",
700
- description: "CSS classes for styling",
97
+ description: "Wrap with accessibility label",
701
98
  },
702
99
  },
703
100
  }
@@ -705,188 +102,69 @@ function AppHeader() {
705
102
  export default meta
706
103
  type Story = StoryObj<typeof PocketStudioIcon>
707
104
 
708
- // Story parameters for consistent dark theme
709
- const storyParameters = {
710
- backgrounds: {
711
- default: "dark",
712
- values: [
713
- { name: "dark", value: "#0a0a0a" },
714
- { name: "darker", value: "#000000" },
715
- ],
716
- },
717
- }
718
-
719
105
  export const Default: Story = {
720
106
  args: {
721
- width: 32,
722
- height: 32,
723
- className: "text-purple-400",
107
+ className: "h-6 w-6 text-fm-icon-active",
724
108
  withAccessibility: true,
725
109
  },
726
- parameters: storyParameters,
727
110
  render: (args) => (
728
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
111
+ <IconDefaultCanvas>
729
112
  <PocketStudioIcon {...args} />
730
- </div>
113
+ </IconDefaultCanvas>
731
114
  ),
732
115
  }
733
116
 
734
117
  export const SizeVariations: Story = {
735
- parameters: {
736
- ...storyParameters,
737
- docs: {
738
- description: {
739
- story:
740
- "PocketStudioIcon in different sizes, from small UI elements to large branding displays.",
741
- },
742
- },
743
- },
744
- render: () => (
745
- <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">
746
- <div className="text-center">
747
- <PocketStudioIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
748
- <span className="text-xs text-white/60">16px</span>
749
- </div>
750
- <div className="text-center">
751
- <PocketStudioIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
752
- <span className="text-xs text-white/60">20px</span>
753
- </div>
754
- <div className="text-center">
755
- <PocketStudioIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
756
- <span className="text-xs text-white/60">24px</span>
757
- </div>
758
- <div className="text-center">
759
- <PocketStudioIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
760
- <span className="text-xs text-white/60">32px</span>
761
- </div>
762
- <div className="text-center">
763
- <PocketStudioIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
764
- <span className="text-xs text-white/60">48px</span>
765
- </div>
766
- </div>
767
- ),
118
+ render: () => <IconSizeVariations icon={PocketStudioIcon} />,
768
119
  }
769
120
 
770
121
  export const ColorVariations: Story = {
771
- parameters: {
772
- ...storyParameters,
773
- docs: {
774
- description: {
775
- story:
776
- "PocketStudioIcon in different theme colors for various branding contexts.",
777
- },
778
- },
779
- },
780
- render: () => (
781
- <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">
782
- <div className="text-center">
783
- <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">
784
- <PocketStudioIcon className="h-8 w-8 text-purple-400" />
785
- </div>
786
- <div className="text-sm font-medium text-white">Primary</div>
787
- <div className="text-xs text-purple-400">text-purple-400</div>
788
- </div>
789
- <div className="text-center">
790
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-pink-500/30 bg-pink-500/20">
791
- <PocketStudioIcon className="h-8 w-8 text-pink-400" />
792
- </div>
793
- <div className="text-sm font-medium text-white">Accent</div>
794
- <div className="text-xs text-pink-400">text-pink-400</div>
795
- </div>
796
- <div className="text-center">
797
- <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">
798
- <PocketStudioIcon className="h-8 w-8 text-blue-400" />
799
- </div>
800
- <div className="text-sm font-medium text-white">Creative</div>
801
- <div className="text-xs text-blue-400">text-blue-400</div>
802
- </div>
803
- <div className="text-center">
804
- <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">
805
- <PocketStudioIcon className="h-8 w-8 text-gray-400" />
806
- </div>
807
- <div className="text-sm font-medium text-white">Neutral</div>
808
- <div className="text-xs text-gray-400">text-gray-400</div>
809
- </div>
810
- </div>
811
- ),
122
+ render: () => <IconColorVariations icon={PocketStudioIcon} />,
812
123
  }
813
124
 
814
125
  export const UsageExamples: Story = {
815
- parameters: {
816
- ...storyParameters,
817
- docs: {
818
- description: {
819
- story:
820
- "Real-world usage examples showing PocketStudioIcon in different UI contexts.",
821
- },
822
- },
823
- },
824
126
  render: () => (
825
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
826
- {/* App Branding */}
827
- <div className="!space-y-2">
828
- <h3 className="text-sm font-medium text-white">App Branding</h3>
829
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-4">
830
- <PocketStudioIcon className="h-8 w-8 text-purple-400" />
831
- <div>
832
- <div className="text-lg font-semibold text-white">
833
- Pocket Studio
834
- </div>
835
- <div className="text-sm text-white/60">Creative Design Tool</div>
836
- </div>
837
- </div>
838
- </div>
839
-
840
- {/* Toolbar Button */}
841
- <div className="!space-y-2">
842
- <h3 className="text-sm font-medium text-white">Toolbar Button</h3>
843
- <div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 p-3">
844
- <button className="flex items-center gap-2 rounded border border-purple-500/30 bg-purple-500/20 px-3 py-1.5 text-purple-200">
845
- <PocketStudioIcon className="h-4 w-4" />
846
- <span className="text-sm">Open Studio</span>
847
- </button>
848
- </div>
849
- </div>
850
-
851
- {/* Feature Card */}
852
- <div className="!space-y-2">
853
- <h3 className="text-sm font-medium text-white">Feature Card</h3>
854
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
855
- <div className="mb-4 flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
856
- <PocketStudioIcon className="h-6 w-6 text-purple-400" />
857
- </div>
858
- <h4 className="mb-2 text-lg font-semibold text-white">
127
+ <IconUsageCanvas>
128
+ <IconUsageSection title="Studio Header">
129
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center gap-3 rounded-xl border px-4 py-3">
130
+ <PocketStudioIcon className="text-fm-icon-active h-6 w-6" />
131
+ <span className="text-fm-primary font-fm-text text-sm font-medium">
859
132
  Pocket Studio
860
- </h4>
861
- <p className="text-sm text-white/70">
862
- Create beautiful designs with our intuitive studio interface.
863
- </p>
133
+ </span>
134
+ </div>
135
+ </IconUsageSection>
136
+
137
+ <IconUsageSection title="Sidebar Entry">
138
+ <button className="flex items-center gap-2 rounded-xl px-3 py-2">
139
+ <PocketStudioIcon className="text-fm-icon-active h-5 w-5" />
140
+ <span className="text-fm-primary font-fm-text text-sm">Studio</span>
141
+ </button>
142
+ </IconUsageSection>
143
+
144
+ <IconUsageSection title="App Launcher Grid">
145
+ <div className="grid grid-cols-3 gap-3">
146
+ {[PocketStudioIcon, MagicBookIcon, MagicEditIcon].map((Icon, i) => (
147
+ <button
148
+ key={i}
149
+ className="border-fm-divider-secondary bg-fm-surface-secondary flex h-12 items-center justify-center rounded-xl border"
150
+ >
151
+ <Icon className="text-fm-icon-active h-5 w-5" />
152
+ </button>
153
+ ))}
864
154
  </div>
865
- </div>
866
- </div>
155
+ </IconUsageSection>
156
+ </IconUsageCanvas>
867
157
  ),
868
158
  }
869
159
 
870
160
  export const Playground: Story = {
871
- parameters: {
872
- ...storyParameters,
873
- docs: {
874
- description: {
875
- story:
876
- "Interactive playground to experiment with different PocketStudioIcon configurations.",
877
- },
878
- },
879
- },
880
161
  args: {
881
- width: 32,
882
- height: 32,
883
- className: "text-purple-400",
162
+ className: "h-8 w-8 text-fm-icon-active",
163
+ withAccessibility: true,
884
164
  },
885
165
  render: (args) => (
886
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
887
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
888
- <PocketStudioIcon {...args} />
889
- </div>
890
- </div>
166
+ <IconPlaygroundCanvas>
167
+ <PocketStudioIcon {...args} />
168
+ </IconPlaygroundCanvas>
891
169
  ),
892
170
  }