aural-ui 4.0.1 → 4.1.0

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