aural-ui 4.0.1 → 4.2.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 (175) hide show
  1. package/README.md +8 -1
  2. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
  3. package/dist/components/avatar/Avatar.stories.tsx +219 -235
  4. package/dist/components/badge/Badge.stories.tsx +379 -116
  5. package/dist/components/banner/Banner.stories.tsx +445 -391
  6. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  7. package/dist/components/button/Button.stories.tsx +585 -230
  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 -636
  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 +530 -867
  16. package/dist/components/dialog/Dialog.stories.tsx +501 -950
  17. package/dist/components/divider/Divider.stories.tsx +264 -527
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -1023
  20. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
  21. package/dist/components/form/Form.stories.tsx +560 -274
  22. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  23. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
  24. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  25. package/dist/components/if-else/if-else.stories.tsx +370 -83
  26. package/dist/components/input/Input.stories.tsx +436 -368
  27. package/dist/components/label/Label.stories.tsx +156 -154
  28. package/dist/components/list/List.stories.tsx +484 -835
  29. package/dist/components/marquee/Marquee.stories.tsx +356 -712
  30. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
  31. package/dist/components/overlay/Overlay.stories.tsx +452 -824
  32. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  33. package/dist/components/popover/Popover.stories.tsx +481 -896
  34. package/dist/components/radio/Radio.stories.tsx +432 -124
  35. package/dist/components/resizable/Resizable.stories.tsx +495 -799
  36. package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
  37. package/dist/components/search/Search.stories.tsx +312 -595
  38. package/dist/components/select/Select.stories.tsx +684 -789
  39. package/dist/components/sheet/Sheet.stories.tsx +671 -950
  40. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  41. package/dist/components/slider/Slider.stories.tsx +383 -760
  42. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  43. package/dist/components/switch/Switch.stories.tsx +461 -208
  44. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  45. package/dist/components/table/Table.stories.tsx +770 -916
  46. package/dist/components/tabs/Tabs.stories.tsx +458 -1455
  47. package/dist/components/tag/Tag.stories.tsx +714 -542
  48. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  49. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
  50. package/dist/components/toast/Toast.stories.tsx +452 -1339
  51. package/dist/components/toggle/Toggle.stories.tsx +488 -931
  52. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
  53. package/dist/components/typography/Typography.stories.tsx +406 -89
  54. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  55. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  56. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  57. package/dist/icons/Icons.stories.tsx +0 -12
  58. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
  59. package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
  60. package/dist/icons/all-icons.tsx +37 -16
  61. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
  62. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
  63. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
  64. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
  65. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
  66. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
  67. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
  68. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
  69. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
  70. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
  71. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
  72. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
  73. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
  74. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
  75. package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
  76. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
  77. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
  78. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
  79. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
  80. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
  81. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
  82. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
  83. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
  84. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
  85. package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
  86. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
  87. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
  88. package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
  89. package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
  90. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
  91. package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
  92. package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
  93. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
  94. package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
  95. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
  96. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
  97. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
  98. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
  99. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
  100. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
  101. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
  102. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
  103. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
  104. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
  105. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
  106. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
  107. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
  108. package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
  109. package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
  110. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
  111. package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
  112. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
  113. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
  114. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
  115. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
  116. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
  117. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
  118. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
  119. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
  120. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
  121. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
  122. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
  123. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
  124. package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
  125. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
  126. package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
  127. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
  128. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
  129. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
  130. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
  131. package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
  132. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
  133. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
  134. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
  135. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
  136. package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
  137. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
  138. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
  139. package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
  140. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
  141. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
  142. package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
  143. package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
  144. package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
  145. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
  146. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
  147. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
  148. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
  149. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
  150. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
  151. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
  152. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
  153. package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
  154. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
  155. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
  156. package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
  157. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
  158. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
  159. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
  160. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
  161. package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
  162. package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
  163. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
  164. package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
  165. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
  166. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
  167. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
  168. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
  169. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
  170. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
  171. package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
  172. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
  173. package/dist/index.cjs +90 -90
  174. package/dist/index.js +90 -90
  175. package/package.json +8 -3
@@ -1,13 +1,27 @@
1
1
  import React from "react"
2
2
  import type { Meta, StoryObj } from "@storybook/react-vite"
3
3
 
4
+ import { BubbleSparkleIcon } from "src/ui/icons/bubble-sparkle-icon"
5
+ import { EditBigIcon } from "src/ui/icons/edit-big-icon"
6
+ import { MagicBookIcon } from "src/ui/icons/magic-book-icon"
7
+ import { PencilIcon } from "src/ui/icons/pencil-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 { MagicEditIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof MagicEditIcon> = {
7
21
  title: "Icons/MagicEditIcon",
8
22
  component: MagicEditIcon,
9
23
  parameters: {
10
- layout: "centered",
24
+ layout: "fullscreen",
11
25
  backgrounds: {
12
26
  default: "dark",
13
27
  values: [
@@ -17,464 +31,70 @@ const meta: Meta<typeof MagicEditIcon> = {
17
31
  ],
18
32
  },
19
33
  docs: {
20
- description: {
21
- component:
22
- "A magic edit icon with sparkle elements representing AI-powered editing, content enhancement, and magical transformations.",
23
- },
24
- canvas: {
25
- sourceState: "shown",
26
- },
27
34
  page: () => (
28
- <>
29
- {/* Override default docs styling */}
30
- <style>
31
- {`
32
- .sbdocs-wrapper {
33
- padding: 0 !important;
34
- max-width: none !important;
35
- background: transparent !important;
36
- }
37
- .sbdocs-content {
38
- max-width: none !important;
39
- padding: 0 !important;
40
- margin: 0 !important;
41
- background: transparent !important;
42
- }
43
- .docs-story {
44
- background: transparent !important;
45
- }
46
- .sbdocs {
47
- background: transparent !important;
48
- }
49
- body {
50
- background: var(--color-fm-surface-primary) !important;
51
- }
52
- #storybook-docs {
53
- background: var(--color-fm-surface-primary) !important;
54
- }
55
- .sbdocs-preview {
56
- background: transparent !important;
57
- border: none !important;
58
- }
59
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
60
- color: var(--color-fm-icon-active) !important;
61
- }
62
- .sbdocs-p, .sbdocs-li {
63
- color: var(--color-fm-secondary) !important;
64
- }
65
- .sbdocs-code {
66
- background: var(--color-fm-surface-secondary) !important;
67
- color: var(--color-fm-secondary-500) !important;
68
- border: 1px solid var(--color-fm-divider-secondary) !important;
69
- }
70
- .sbdocs-pre {
71
- background: var(--color-fm-surface-secondary) !important;
72
- border: 1px solid var(--color-fm-divider-secondary) !important;
73
- }
74
- .sbdocs-table {
75
- background: var(--color-fm-surface-secondary) !important;
76
- border: 1px solid var(--color-fm-divider-secondary) !important;
77
- }
78
- .sbdocs-table th {
79
- background: var(--color-fm-surface-secondary) !important;
80
- color: var(--color-fm-icon-active) !important;
81
- border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
82
- }
83
- .sbdocs-table td {
84
- color: var(--color-fm-secondary) !important;
85
- border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
86
- }
87
- `}
88
- </style>
89
-
90
- <div className="bg-fm-surface-primary min-h-screen">
91
- {/* Header */}
92
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
93
- <div className="from-fm-secondary-500/10 to-fm-secondary-500/10 absolute inset-0 bg-linear-to-r via-transparent" />
94
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
95
- <div className="!space-y-6 text-center">
96
- <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">
97
- <MagicEditIcon className="text-fm-secondary-600 h-12 w-12" />
98
- </div>
99
- <h1 className="text-fm-icon-active! text-5xl font-bold">
100
- MagicEditIcon
101
- </h1>
102
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
103
- A magic edit icon with sparkle elements representing
104
- AI-powered editing, content enhancement, and magical
105
- transformations. Perfect for AI tools, content editors, and
106
- enhancement features.
107
- </p>
108
-
109
- {/* Stats */}
110
- <div className="mx-auto flex items-center justify-center gap-8">
111
- <div className="text-center">
112
- <div className="text-fm-secondary-600 text-3xl font-bold">
113
- Magic
114
- </div>
115
- <div className="text-fm-icon-active/80 text-sm">
116
- AI-powered
117
- </div>
118
- </div>
119
- <div className="bg-fm-divider-primary h-8 w-px" />
120
- <div className="text-center">
121
- <div className="text-fm-secondary-600 text-3xl font-bold">
122
- Edit
123
- </div>
124
- <div className="text-fm-icon-active/80 text-sm">
125
- Content editing
126
- </div>
127
- </div>
128
- <div className="bg-fm-divider-primary h-8 w-px" />
129
- <div className="text-center">
130
- <div className="text-fm-icon-info text-3xl font-bold">
131
- Accessible
132
- </div>
133
- <div className="text-fm-icon-active/80 text-sm">
134
- Screen reader support
135
- </div>
136
- </div>
137
- </div>
138
- </div>
139
- </div>
140
- </div>
141
-
142
- {/* Content */}
143
- <div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
144
- {/* Features */}
145
- <div className="!space-y-8">
146
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
147
- Key Features
148
- </h3>
149
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
150
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
151
- <div className="text-3xl">✨</div>
152
- <h4 className="text-fm-icon-active! text-lg font-semibold">
153
- Magic Edit
154
- </h4>
155
- <p className="text-fm-icon-active!/80 text-sm">
156
- AI-powered editing with sparkle elements
157
- </p>
158
- </div>
159
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
160
- <div className="text-3xl">✏️</div>
161
- <h4 className="text-fm-icon-active! text-lg font-semibold">
162
- Content Enhancement
163
- </h4>
164
- <p className="text-fm-icon-active!/80 text-sm">
165
- Transform and enhance content
166
- </p>
167
- </div>
168
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
169
- <div className="text-3xl">♿</div>
170
- <h4 className="text-fm-icon-active! text-lg font-semibold">
171
- Accessibility
172
- </h4>
173
- <p className="text-fm-icon-active!/80 text-sm">
174
- Built with screen reader support
175
- </p>
176
- </div>
177
- </div>
178
- </div>
179
-
180
- {/* API Reference */}
181
- <div className="!space-y-8">
182
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
183
- API Reference
184
- </h3>
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
- <h4 className="text-fm-icon-active! text-lg font-semibold">
188
- Props
189
- </h4>
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-secondary-600! 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
- </tbody>
225
- </table>
226
- </div>
227
- </div>
228
-
229
- {/* Usage Examples */}
230
- <div className="!space-y-8">
231
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
232
- Usage Examples
233
- </h3>
234
-
235
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
236
- <div className="space-y-4">
237
- <h4 className="text-fm-secondary-600! text-lg font-semibold">
238
- Basic Usage
239
- </h4>
240
- <div className="bg-fm-surface-secondary rounded-lg p-4">
241
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
242
- {`import { MagicEditIcon } from "@/components/ui/icons/magic-edit-icon"
243
-
244
- function MagicEditButton() {
35
+ <AuralIconDocsPage
36
+ accentToken="positive"
37
+ features={[
38
+ { title: "AI Edit", description: "AI-enhanced editing action" },
39
+ { title: "Smart Rewrite", description: "Rephrase with AI assist" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { MagicEditIcon } from "src/ui/icons/magic-edit-icon"
44
+
45
+ function AIEditButton() {
245
46
  return (
246
47
  <button className="flex items-center gap-2">
247
- <MagicEditIcon className="h-4 w-4 text-purple-400" />
248
- <span>Magic Edit</span>
48
+ <MagicEditIcon className="h-5 w-5 text-fm-icon-positive" />
49
+ <span>AI Edit</span>
249
50
  </button>
250
51
  )
251
- }`}
252
- </pre>
253
- </div>
254
- </div>
255
-
256
- <div className="space-y-4">
257
- <h4 className="text-fm-secondary-600! text-lg font-semibold">
258
- Live Preview
259
- </h4>
260
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
261
- <button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
262
- <MagicEditIcon className="text-fm-secondary-600 h-4 w-4" />
263
- <span>Magic Edit</span>
264
- </button>
265
- </div>
266
- </div>
267
- </div>
268
- </div>
269
-
270
- {/* Size Examples */}
271
- <div className="!space-y-8">
272
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
273
- Size Examples
274
- </h3>
275
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
276
- <div className="!space-y-6">
277
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
278
- <div className="!space-y-4">
279
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
280
- Standard Sizes
281
- </h3>
282
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
283
- <div className="text-center">
284
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
285
- <span className="text-fm-tertiary text-xs">
286
- 12px
287
- </span>
288
- </div>
289
- <div className="text-center">
290
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
291
- <span className="text-fm-tertiary text-xs">
292
- 16px
293
- </span>
294
- </div>
295
- <div className="text-center">
296
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
297
- <span className="text-fm-tertiary text-xs">
298
- 20px
299
- </span>
300
- </div>
301
- <div className="text-center">
302
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
303
- <span className="text-fm-tertiary text-xs">
304
- 24px
305
- </span>
306
- </div>
307
- <div className="text-center">
308
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
309
- <span className="text-fm-tertiary text-xs">
310
- 32px
311
- </span>
312
- </div>
313
- <div className="text-center">
314
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
315
- <span className="text-fm-tertiary text-xs">
316
- 48px
317
- </span>
318
- </div>
319
- </div>
320
- </div>
321
-
322
- <div className="!space-y-4">
323
- <h3 className="text-fm-secondary-600! text-lg font-semibold">
324
- Code Example
325
- </h3>
326
- <div className="bg-fm-surface-secondary rounded-lg p-4">
327
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
328
- {`// Small (16px)
329
- <MagicEditIcon className="h-4 w-4 text-purple-400" />
330
-
331
- // Medium (24px)
332
- <MagicEditIcon className="h-6 w-6 text-purple-400" />
333
-
334
- // Large (32px)
335
- <MagicEditIcon className="h-8 w-8 text-purple-400" />
336
-
337
- // Custom size with color
338
- <MagicEditIcon
339
- width={40}
340
- height={40}
341
- className="text-purple-400"
342
- />`}
343
- </pre>
344
- </div>
345
- </div>
346
- </div>
347
- </div>
348
- </div>
349
- </div>
350
-
351
- {/* Common Use Cases */}
352
- <div className="!space-y-8">
353
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
354
- Common Use Cases
355
- </h3>
356
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
357
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
358
- <div className="text-2xl">✨</div>
359
- <h4 className="text-fm-icon-active! text-lg font-semibold">
360
- AI Editing
361
- </h4>
362
- <p className="text-fm-icon-active!/80 text-sm">
363
- AI-powered content editing tools
364
- </p>
365
- </div>
366
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
367
- <div className="text-2xl">🎨</div>
368
- <h4 className="text-fm-icon-active! text-lg font-semibold">
369
- Content Enhancement
370
- </h4>
371
- <p className="text-fm-icon-active!/80 text-sm">
372
- Transform and enhance content
373
- </p>
374
- </div>
375
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
376
- <div className="text-2xl">🔮</div>
377
- <h4 className="text-fm-icon-active! text-lg font-semibold">
378
- Magic Tools
379
- </h4>
380
- <p className="text-fm-icon-active!/80 text-sm">
381
- Special editing features
382
- </p>
383
- </div>
384
- </div>
385
- </div>
386
-
387
- {/* Best Practices */}
388
- <div className="!space-y-8">
389
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
390
- Best Practices
391
- </h3>
392
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2">
393
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
394
- <h4 className="text-fm-icon-positive! text-lg font-semibold">
395
- ✅ Do
396
- </h4>
397
- <ul className="text-fm-icon-active!/80 space-y-2 text-sm">
398
- <li className="text-fm-icon-active!/80">
399
- Use appropriate sizes for different contexts
400
- </li>
401
- <li className="text-fm-icon-active!/80">
402
- Choose colors that match your UI theme
403
- </li>
404
- <li className="text-fm-icon-active!/80">
405
- Provide clear labels for icon buttons
406
- </li>
407
- <li className="text-fm-icon-active!/80">
408
- Use consistent styling across your app
409
- </li>
410
- <li className="text-fm-icon-active!/80">
411
- Consider accessibility in all implementations
412
- </li>
413
- </ul>
414
- </div>
415
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
416
- <h4 className="text-fm-icon-negative! text-lg font-semibold">
417
- ❌ Don't
418
- </h4>
419
- <ul className="text-fm-icon-active!/80 space-y-2 text-sm">
420
- <li className="text-fm-icon-active!/80">
421
- Use multiple icon styles in the same view
422
- </li>
423
- <li className="text-fm-icon-active!/80">
424
- Overuse the icon in navigation
425
- </li>
426
- <li className="text-fm-icon-active!/80">
427
- Use inappropriate sizes for the context
428
- </li>
429
- <li className="text-fm-icon-active!/80">
430
- Forget to add hover states
431
- </li>
432
- <li className="text-fm-icon-active!/80">
433
- Ignore accessibility requirements
434
- </li>
435
- </ul>
436
- </div>
437
- </div>
438
- </div>
439
- </div>
440
-
441
- {/* Footer */}
442
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
443
- <div className="!mx-auto max-w-7xl px-6 py-8">
444
- <div className="!space-y-4 text-center">
445
- <p className="text-fm-tertiary!">
446
- MagicEditIcon is part of the Aural UI icon library, designed
447
- for AI-powered editing and content enhancement interfaces.
448
- </p>
449
- <p className="text-fm-placeholder! text-sm">
450
- Perfect for AI tools, content editors, enhancement features,
451
- and any interface requiring magical editing representation.
452
- </p>
453
- </div>
454
- </div>
455
- </div>
456
- </div>
457
- </>
52
+ }`,
53
+ livePreview: (
54
+ <button className="flex items-center gap-2">
55
+ <MagicEditIcon className="text-fm-icon-positive h-6 w-6" />
56
+ </button>
57
+ ),
58
+ }}
59
+ relatedIcons={[
60
+ {
61
+ name: "MagicBookIcon",
62
+ description: "AI-assisted story creation",
63
+ icon: MagicBookIcon,
64
+ accentToken: "info",
65
+ },
66
+ {
67
+ name: "EditBigIcon",
68
+ description: "Edit / modify content icon",
69
+ icon: EditBigIcon,
70
+ accentToken: "positive",
71
+ },
72
+ {
73
+ name: "PencilIcon",
74
+ description: "Pencil / write icon",
75
+ icon: PencilIcon,
76
+ accentToken: "warning",
77
+ },
78
+ {
79
+ name: "BubbleSparkleIcon",
80
+ description: "AI sparkle bubble icon",
81
+ icon: BubbleSparkleIcon,
82
+ accentToken: "negative",
83
+ },
84
+ ]}
85
+ />
458
86
  ),
459
87
  },
460
88
  },
461
89
  tags: ["autodocs"],
462
90
  argTypes: {
463
- width: {
464
- control: { type: "range", min: 8, max: 96, step: 2 },
465
- description: "Width of the icon in pixels",
91
+ className: {
92
+ control: "text",
93
+ description: "CSS classes including color token",
466
94
  },
467
95
  withAccessibility: {
468
96
  control: "boolean",
469
- description: "Whether to wrap the icon with accessibility features",
470
- },
471
- height: {
472
- control: { type: "range", min: 8, max: 96, step: 2 },
473
- description: "Height of the icon in pixels",
474
- },
475
- className: {
476
- control: "text",
477
- description: "CSS classes for styling",
97
+ description: "Wrap with accessibility label",
478
98
  },
479
99
  },
480
100
  }
@@ -482,293 +102,82 @@ function MagicEditButton() {
482
102
  export default meta
483
103
  type Story = StoryObj<typeof MagicEditIcon>
484
104
 
485
- // Story parameters for consistent dark theme
486
- const storyParameters = {
487
- backgrounds: {
488
- default: "dark",
489
- values: [
490
- { name: "dark", value: "var(--color-fm-surface-primary)" },
491
- { name: "darker", value: "var(--color-fm-neutral-0)" },
492
- ],
493
- },
494
- }
495
-
496
105
  export const Default: Story = {
497
106
  args: {
498
- width: 24,
499
- height: 24,
500
- className: "text-fm-secondary-600",
107
+ className: "h-6 w-6 text-fm-icon-positive",
501
108
  withAccessibility: true,
502
109
  },
503
- parameters: storyParameters,
504
110
  render: (args) => (
505
- <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>
506
112
  <MagicEditIcon {...args} />
507
- </div>
113
+ </IconDefaultCanvas>
508
114
  ),
509
115
  }
510
116
 
511
117
  export const SizeVariations: Story = {
512
- parameters: {
513
- ...storyParameters,
514
- docs: {
515
- description: {
516
- story:
517
- "MagicEditIcon in different sizes, from small inline buttons to large call-to-action elements.",
518
- },
519
- },
520
- },
521
- render: () => (
522
- <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">
523
- <div className="text-center">
524
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-3 w-3" />
525
- <span className="text-fm-tertiary text-xs">12px</span>
526
- </div>
527
- <div className="text-center">
528
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-4 w-4" />
529
- <span className="text-fm-tertiary text-xs">16px</span>
530
- </div>
531
- <div className="text-center">
532
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-5 w-5" />
533
- <span className="text-fm-tertiary text-xs">20px</span>
534
- </div>
535
- <div className="text-center">
536
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
537
- <span className="text-fm-tertiary text-xs">24px</span>
538
- </div>
539
- <div className="text-center">
540
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-8 w-8" />
541
- <span className="text-fm-tertiary text-xs">32px</span>
542
- </div>
543
- <div className="text-center">
544
- <MagicEditIcon className="text-fm-secondary-600 !mx-auto mb-2 h-12 w-12" />
545
- <span className="text-fm-tertiary text-xs">48px</span>
546
- </div>
547
- </div>
548
- ),
118
+ render: () => <IconSizeVariations icon={MagicEditIcon} />,
549
119
  }
550
120
 
551
121
  export const ColorVariations: Story = {
552
- parameters: {
553
- ...storyParameters,
554
- docs: {
555
- description: {
556
- story:
557
- "MagicEditIcon with different color variations using Tailwind classes. Colors are applied via the fill and stroke properties using currentColor.",
558
- },
559
- },
560
- },
561
- render: () => (
562
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
563
- <div className="!space-y-4">
564
- <h3 className="text-fm-icon-active! text-center text-lg font-semibold">
565
- Standard Colors
566
- </h3>
567
- <div className="flex flex-wrap items-center justify-center gap-8">
568
- <div className="text-center">
569
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
570
- <MagicEditIcon className="text-fm-secondary-600 h-8 w-8" />
571
- </div>
572
- <div className="text-fm-icon-active text-sm font-medium">
573
- Purple
574
- </div>
575
- <div className="text-fm-secondary-600 text-xs">
576
- text-fm-secondary-600
577
- </div>
578
- </div>
579
- <div className="text-center">
580
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
581
- <MagicEditIcon className="text-fm-icon-info h-8 w-8" />
582
- </div>
583
- <div className="text-fm-icon-active text-sm font-medium">
584
- Indigo
585
- </div>
586
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
587
- </div>
588
- <div className="text-center">
589
- <div className="border-fm-secondary-500/30 bg-fm-secondary-500/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
590
- <MagicEditIcon className="text-fm-secondary-600 h-8 w-8" />
591
- </div>
592
- <div className="text-fm-icon-active text-sm font-medium">Pink</div>
593
- <div className="text-fm-secondary-600 text-xs">
594
- text-fm-secondary-600
595
- </div>
596
- </div>
597
- <div className="text-center">
598
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
599
- <MagicEditIcon className="text-fm-icon-info h-8 w-8" />
600
- </div>
601
- <div className="text-fm-icon-active text-sm font-medium">Cyan</div>
602
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
603
- </div>
604
- <div className="text-center">
605
- <div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
606
- <MagicEditIcon className="text-fm-icon-positive h-8 w-8" />
607
- </div>
608
- <div className="text-fm-icon-active text-sm font-medium">Green</div>
609
- <div className="text-fm-icon-positive text-xs">
610
- text-fm-icon-positive
611
- </div>
612
- </div>
613
- <div className="text-center">
614
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
615
- <MagicEditIcon className="text-fm-icon-info h-8 w-8" />
616
- </div>
617
- <div className="text-fm-icon-active text-sm font-medium">Blue</div>
618
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
619
- </div>
620
- <div className="text-center">
621
- <div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
622
- <MagicEditIcon className="text-fm-icon-active h-8 w-8" />
623
- </div>
624
- <div className="text-fm-icon-active text-sm font-medium">White</div>
625
- <div className="text-fm-tertiary text-xs">text-fm-icon-active</div>
626
- </div>
627
- </div>
628
- </div>
629
- <div className="!space-y-4">
630
- <h3 className="text-fm-icon-active! text-center text-lg font-semibold">
631
- Design System Colors
632
- </h3>
633
- <div className="flex flex-wrap items-center justify-center gap-8">
634
- <div className="text-center">
635
- <div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
636
- <MagicEditIcon className="text-fm-primary h-8 w-8" />
637
- </div>
638
- <div className="text-fm-icon-active text-sm font-medium">
639
- Primary
640
- </div>
641
- <div className="text-fm-primary text-xs">text-fm-primary</div>
642
- </div>
643
- <div className="text-center">
644
- <div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
645
- <MagicEditIcon className="text-fm-secondary-500 h-8 w-8" />
646
- </div>
647
- <div className="text-fm-icon-active text-sm font-medium">
648
- Secondary
649
- </div>
650
- <div className="text-fm-secondary-500 text-xs">
651
- text-fm-secondary-500
652
- </div>
653
- </div>
654
- <div className="text-center">
655
- <div className="border-fm-divider-primary bg-fm-surface-secondary mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
656
- <MagicEditIcon className="text-fm-neutral-800 h-8 w-8" />
657
- </div>
658
- <div className="text-fm-icon-active text-sm font-medium">
659
- Neutral
660
- </div>
661
- <div className="text-fm-neutral-800 text-xs">
662
- text-fm-neutral-800
663
- </div>
664
- </div>
665
- </div>
666
- </div>
667
- </div>
668
- ),
122
+ render: () => <IconColorVariations icon={MagicEditIcon} />,
669
123
  }
670
124
 
671
125
  export const UsageExamples: Story = {
672
- parameters: {
673
- ...storyParameters,
674
- docs: {
675
- description: {
676
- story:
677
- "Common usage examples of MagicEditIcon in different contexts with various colors applied.",
678
- },
679
- },
680
- },
681
126
  render: () => (
682
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
683
- <div className="!space-y-4">
684
- <h3 className="text-fm-icon-active! text-center text-lg font-semibold">
685
- Action Buttons
686
- </h3>
687
- <div className="flex flex-wrap items-center justify-center gap-4">
688
- <button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
689
- <MagicEditIcon className="text-fm-secondary-600 h-4 w-4" />
690
- <span>Magic Edit</span>
691
- </button>
692
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
693
- <MagicEditIcon className="text-fm-icon-info h-4 w-4" />
694
- <span>AI Enhance</span>
695
- </button>
696
- <button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
697
- <MagicEditIcon className="text-fm-secondary-600 h-4 w-4" />
698
- <span>Transform</span>
699
- </button>
700
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
701
- <MagicEditIcon className="text-fm-icon-info h-4 w-4" />
702
- <span>Enhance</span>
703
- </button>
704
- </div>
705
- </div>
706
- <div className="!space-y-4">
707
- <h3 className="text-fm-icon-active! text-center text-lg font-semibold">
708
- Tool List Items
709
- </h3>
710
- <div className="flex flex-wrap items-center justify-center gap-4">
711
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
712
- <MagicEditIcon className="text-fm-secondary-600 h-5 w-5" />
713
- <span className="text-fm-icon-active/80">AI Editor</span>
714
- </div>
715
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
716
- <MagicEditIcon className="text-fm-icon-info h-5 w-5" />
717
- <span className="text-fm-icon-active/80">Content Enhancer</span>
718
- </div>
719
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
720
- <MagicEditIcon className="text-fm-secondary-600 h-5 w-5" />
721
- <span className="text-fm-icon-active/80">Magic Tool</span>
722
- </div>
723
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2">
724
- <MagicEditIcon className="text-fm-icon-info h-5 w-5" />
725
- <span className="text-fm-icon-active/80">Smart Edit</span>
127
+ <IconUsageCanvas>
128
+ <IconUsageSection title="AI Edit Button">
129
+ <button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
130
+ <MagicEditIcon className="text-fm-icon-positive h-4 w-4" />
131
+ <span className="text-fm-primary font-fm-text text-sm">AI Edit</span>
132
+ </button>
133
+ </IconUsageSection>
134
+
135
+ <IconUsageSection title="Inline Edit Action">
136
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
137
+ <p className="text-fm-primary font-fm-text mb-3 text-sm">
138
+ Once upon a time in a faraway land...
139
+ </p>
140
+ <div className="flex gap-2">
141
+ <button className="flex items-center gap-1.5 rounded-lg px-3 py-1.5">
142
+ <MagicEditIcon className="text-fm-icon-positive h-3.5 w-3.5" />
143
+ <span className="text-fm-secondary font-fm-text text-xs">
144
+ AI Rewrite
145
+ </span>
146
+ </button>
147
+ <button className="flex items-center gap-1.5 rounded-lg px-3 py-1.5">
148
+ <EditBigIcon className="text-fm-icon-inactive h-3.5 w-3.5" />
149
+ <span className="text-fm-secondary font-fm-text text-xs">
150
+ Edit
151
+ </span>
152
+ </button>
726
153
  </div>
727
154
  </div>
728
- </div>
729
- <div className="!space-y-4">
730
- <h3 className="text-fm-icon-active! text-center text-lg font-semibold">
731
- Status Indicators
732
- </h3>
733
- <div className="flex flex-wrap items-center justify-center gap-4">
734
- <div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 flex items-center gap-2 rounded-lg border px-4 py-2">
735
- <MagicEditIcon className="text-fm-icon-positive h-5 w-5" />
736
- <span className="text-fm-icon-active">Active</span>
737
- </div>
738
- <div className="border-fm-icon-warning/20 bg-fm-icon-warning/10 flex items-center gap-2 rounded-lg border px-4 py-2">
739
- <MagicEditIcon className="text-fm-icon-warning h-5 w-5" />
740
- <span className="text-fm-icon-active">Processing</span>
741
- </div>
742
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-2 rounded-lg border px-4 py-2">
743
- <MagicEditIcon className="text-fm-icon-info h-5 w-5" />
744
- <span className="text-fm-icon-active">Ready</span>
745
- </div>
155
+ </IconUsageSection>
156
+
157
+ <IconUsageSection title="AI Tools Row">
158
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
159
+ {[MagicEditIcon, MagicBookIcon, BubbleSparkleIcon].map((Icon, i) => (
160
+ <button
161
+ key={i}
162
+ className="flex h-8 w-8 items-center justify-center rounded-lg"
163
+ >
164
+ <Icon className="text-fm-icon-positive h-4 w-4" />
165
+ </button>
166
+ ))}
746
167
  </div>
747
- </div>
748
- </div>
168
+ </IconUsageSection>
169
+ </IconUsageCanvas>
749
170
  ),
750
171
  }
751
172
 
752
173
  export const Playground: Story = {
753
- parameters: {
754
- ...storyParameters,
755
- docs: {
756
- description: {
757
- story:
758
- "Interactive playground to experiment with different MagicEditIcon configurations.",
759
- },
760
- },
761
- },
762
174
  args: {
763
- width: 32,
764
- height: 32,
765
- className: "text-fm-secondary-600",
175
+ className: "h-8 w-8 text-fm-icon-positive",
176
+ withAccessibility: true,
766
177
  },
767
178
  render: (args) => (
768
- <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">
769
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
770
- <MagicEditIcon {...args} />
771
- </div>
772
- </div>
179
+ <IconPlaygroundCanvas>
180
+ <MagicEditIcon {...args} />
181
+ </IconPlaygroundCanvas>
773
182
  ),
774
183
  }