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 { ArtBoardIcon } from "src/ui/icons/art-board-icon"
5
+ import { EditBigIcon } from "src/ui/icons/edit-big-icon"
6
+ import { MagicEditIcon } from "src/ui/icons/magic-edit-icon"
7
+ import { TextColorIcon } from "src/ui/icons/text-color-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 { PaintRollIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof PaintRollIcon> = {
@@ -18,819 +32,69 @@ const meta: Meta<typeof PaintRollIcon> = {
18
32
  },
19
33
  docs: {
20
34
  page: () => (
21
- <>
22
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 ;
27
- max-width: none ;
28
- background: transparent ;
29
- }
30
- .sbdocs-content {
31
- max-width: none ;
32
- padding: 0 ;
33
- margin: 0 ;
34
- background: transparent ;
35
- }
36
- .docs-story {
37
- background: transparent ;
38
- }
39
- .sbdocs {
40
- background: transparent ;
41
- }
42
- body {
43
- background: var(--color-fm-surface-primary) ;
44
- }
45
- #storybook-docs {
46
- background: var(--color-fm-surface-primary) ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: var(--color-fm-icon-active) ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: var(--color-fm-secondary) ;
57
- }
58
- .sbdocs-code {
59
- background: var(--color-fm-surface-secondary) ;
60
- color: var(--color-fm-secondary-500) ;
61
- border: 1px solid var(--color-fm-divider-secondary) ;
62
- }
63
- .sbdocs-pre {
64
- background: var(--color-fm-surface-secondary) ;
65
- border: 1px solid var(--color-fm-divider-secondary) ;
66
- }
67
- .sbdocs-table {
68
- background: var(--color-fm-surface-secondary) ;
69
- border: 1px solid var(--color-fm-divider-secondary) ;
70
- }
71
- .sbdocs-table th {
72
- background: var(--color-fm-surface-secondary) ;
73
- color: var(--color-fm-icon-active) ;
74
- border-bottom: 1px solid var(--color-fm-divider-secondary) ;
75
- }
76
- .sbdocs-table td {
77
- color: var(--color-fm-secondary) ;
78
- border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
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-icon-info/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-icon-info/30 from-fm-icon-info/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
- <PaintRollIcon className="text-fm-icon-info h-12 w-12" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- PaintRollIcon
94
- </h1>
95
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
96
- A versatile paint roll icon perfect for design tools, theme
97
- customization, styling interfaces, and visual editing
98
- applications. Built with accessibility in mind using Radix
99
- 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-icon-info text-3xl font-bold">
106
- Accessible
107
- </div>
108
- <div className="text-fm-tertiary text-sm">
109
- Screen reader friendly
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
- Scalable
116
- </div>
117
- <div className="text-fm-tertiary text-sm">
118
- Any size needed
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-secondary-600 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-icon-info! 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 { PaintRollIcon } from "@icons/paint-roll-icon"
150
-
151
- function MyComponent() {
152
- return (
153
- <div className="flex items-center gap-2">
154
- <PaintRollIcon className="h-5 w-5 text-indigo-500" />
155
- <span>Customize Theme</span>
156
- </div>
157
- )
158
- }`}
159
- </pre>
160
- </div>
161
- </div>
162
-
163
- <div className="!space-y-4">
164
- <h3 className="text-fm-icon-info! 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-icon-info/20 bg-fm-icon-info/10 flex items-center gap-3 rounded-lg border px-4 py-2">
169
- <PaintRollIcon className="text-fm-icon-info h-5 w-5" />
170
- <span className="text-fm-icon-active">
171
- Customize Theme
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-icon-info! 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
- 18
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-icon-info! px-6 py-4 font-mono text-sm">
240
- stroke
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
- Stroke 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-icon-info! px-6 py-4 font-mono text-sm">
254
- strokeWidth
255
- </td>
256
- <td className="text-fm-secondary! px-6 py-4 text-sm">
257
- number | string
258
- </td>
259
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
260
- 1.5
261
- </td>
262
- <td className="text-fm-secondary! px-6 py-4 text-sm">
263
- Stroke width of the icon
264
- </td>
265
- </tr>
266
- <tr className="border-fm-divider-tertiary border-b">
267
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
268
- className
269
- </td>
270
- <td className="text-fm-secondary! px-6 py-4 text-sm">
271
- string
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
- CSS classes for styling
278
- </td>
279
- </tr>
280
- <tr className="bg-fm-surface-secondary!">
281
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
282
- ...svgProps
283
- </td>
284
- <td className="text-fm-secondary! px-6 py-4 text-sm">
285
- SVGProps
286
- </td>
287
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
288
- -
289
- </td>
290
- <td className="text-fm-secondary! px-6 py-4 text-sm">
291
- All standard SVG element props
292
- </td>
293
- </tr>
294
- </tbody>
295
- </table>
296
- </div>
297
- </div>
298
-
299
- {/* Size Variations */}
300
- <div className="!space-y-8">
301
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
302
- Size Variations
303
- </h2>
304
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
305
- <div className="!space-y-6">
306
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
307
- <div className="!space-y-4">
308
- <h3 className="text-fm-icon-info! text-lg font-semibold">
309
- Standard Sizes
310
- </h3>
311
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
312
- <div className="text-center">
313
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
314
- <span className="text-fm-tertiary text-xs">
315
- 12px
316
- </span>
317
- </div>
318
- <div className="text-center">
319
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
320
- <span className="text-fm-tertiary text-xs">
321
- 16px
322
- </span>
323
- </div>
324
- <div className="text-center">
325
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
326
- <span className="text-fm-tertiary text-xs">
327
- 20px
328
- </span>
329
- </div>
330
- <div className="text-center">
331
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
332
- <span className="text-fm-tertiary text-xs">
333
- 24px
334
- </span>
335
- </div>
336
- <div className="text-center">
337
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
338
- <span className="text-fm-tertiary text-xs">
339
- 32px
340
- </span>
341
- </div>
342
- <div className="text-center">
343
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
344
- <span className="text-fm-tertiary text-xs">
345
- 48px
346
- </span>
347
- </div>
348
- </div>
349
- </div>
350
-
351
- <div className="!space-y-4">
352
- <h3 className="text-fm-icon-info! text-lg font-semibold">
353
- Code Example
354
- </h3>
355
- <div className="bg-fm-surface-secondary rounded-lg p-4">
356
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
357
- {`// Small (16px)
358
- <PaintRollIcon className="h-4 w-4" />
359
-
360
- // Medium (24px)
361
- <PaintRollIcon className="h-6 w-6" />
362
-
363
- // Large (32px)
364
- <PaintRollIcon className="h-8 w-8" />
365
-
366
- // Custom size
367
- <PaintRollIcon width={40} height={40} />`}
368
- </pre>
369
- </div>
370
- </div>
371
- </div>
372
- </div>
373
- </div>
374
- </div>
375
-
376
- {/* Color Variations */}
377
- <div className="!space-y-8">
378
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
379
- Color Variations
380
- </h2>
381
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
382
- <div className="!space-y-4">
383
- <h3 className="text-fm-icon-info! text-lg font-semibold">
384
- Design Tool Colors
385
- </h3>
386
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
387
- <div className="flex items-center gap-4">
388
- <PaintRollIcon className="text-fm-icon-info h-6 w-6" />
389
- <div>
390
- <div className="text-fm-icon-active text-sm font-medium">
391
- Primary Tool
392
- </div>
393
- <div className="text-fm-tertiary text-xs">
394
- text-fm-icon-info
395
- </div>
396
- </div>
397
- </div>
398
- <div className="flex items-center gap-4">
399
- <PaintRollIcon className="text-fm-secondary-600 h-6 w-6" />
400
- <div>
401
- <div className="text-fm-icon-active text-sm font-medium">
402
- Creative
403
- </div>
404
- <div className="text-fm-tertiary text-xs">
405
- text-fm-secondary-600
406
- </div>
407
- </div>
408
- </div>
409
- <div className="flex items-center gap-4">
410
- <PaintRollIcon className="text-fm-secondary-600 h-6 w-6" />
411
- <div>
412
- <div className="text-fm-icon-active text-sm font-medium">
413
- Artistic
414
- </div>
415
- <div className="text-fm-tertiary text-xs">
416
- text-fm-secondary-600
417
- </div>
418
- </div>
419
- </div>
420
- <div className="flex items-center gap-4">
421
- <PaintRollIcon className="text-fm-secondary-600 h-6 w-6" />
422
- <div>
423
- <div className="text-fm-icon-active text-sm font-medium">
424
- Accent
425
- </div>
426
- <div className="text-fm-tertiary text-xs">
427
- text-fm-secondary-600
428
- </div>
429
- </div>
430
- </div>
431
- </div>
432
- </div>
433
-
434
- <div className="!space-y-4">
435
- <h3 className="text-fm-icon-info! text-lg font-semibold">
436
- Custom Colors
437
- </h3>
438
- <div className="bg-fm-surface-secondary rounded-lg p-4">
439
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
440
- {`// Using Tailwind classes
441
- <PaintRollIcon className="h-6 w-6 text-indigo-400" />
442
- <PaintRollIcon className="h-6 w-6 text-violet-500" />
443
-
444
- // Using CSS custom properties
445
- <PaintRollIcon
446
- className="h-6 w-6"
447
- style={{ color: 'var(--color-primary)' }}
448
- />
449
-
450
- // Direct stroke prop
451
- <PaintRollIcon
452
- width={24}
453
- height={24}
454
- stroke="#6366f1"
455
- />`}
456
- </pre>
457
- </div>
458
- </div>
459
- </div>
460
- </div>
461
-
462
- {/* Usage Examples */}
463
- <div className="!space-y-8">
464
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
465
- Usage Examples
466
- </h2>
467
-
468
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
469
- {/* Theme Customizer */}
470
- <div className="!space-y-4">
471
- <h3 className="text-fm-icon-info! text-lg font-semibold">
472
- Theme Customizer
473
- </h3>
474
- <div className="!space-y-4">
475
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
476
- <div className="!space-y-3">
477
- <div className="flex items-center justify-between">
478
- <h4 className="text-fm-icon-active! font-medium">
479
- Appearance
480
- </h4>
481
- <button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded border px-3 py-1.5 transition-colors">
482
- <PaintRollIcon className="h-4 w-4" />
483
- <span className="text-sm">Customize</span>
484
- </button>
485
- </div>
486
- <div className="grid grid-cols-3 gap-2">
487
- <div className="bg-fm-icon-info/20 h-8 rounded"></div>
488
- <div className="bg-fm-secondary-500/20 h-8 rounded"></div>
489
- <div className="bg-fm-secondary-500/20 h-8 rounded"></div>
490
- </div>
491
- </div>
492
- </div>
493
- <div className="bg-fm-surface-secondary rounded-lg p-4">
494
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
495
- {`// Theme customizer button
496
- <button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-3 py-1.5 rounded">
497
- <PaintRollIcon className="h-4 w-4" />
498
- <span className="text-sm">Customize</span>
499
- </button>`}
500
- </pre>
501
- </div>
502
- </div>
503
- </div>
504
-
505
- {/* Design Tool Toolbar */}
506
- <div className="!space-y-4">
507
- <h3 className="text-fm-icon-info! text-lg font-semibold">
508
- Design Tool Toolbar
509
- </h3>
510
- <div className="!space-y-4">
511
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
512
- <div className="flex items-center gap-1">
513
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
514
- <div className="h-5 w-5 rounded-sm border border-current"></div>
515
- </button>
516
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
517
- <div className="h-5 w-5 rounded-full border border-current"></div>
518
- </button>
519
- <button className="bg-fm-icon-info/20 text-fm-icon-info rounded p-2">
520
- <PaintRollIcon className="h-5 w-5" />
521
- </button>
522
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
523
- <div className="h-5 w-5 border-l-2 border-current"></div>
524
- </button>
525
- </div>
526
- </div>
527
- <div className="bg-fm-surface-secondary rounded-lg p-4">
528
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
529
- {`// Design tool toolbar
530
- <div className="flex items-center gap-1">
531
- <button className="p-2 rounded text-white/60 hover:bg-white/10">
532
- <RectangleIcon className="h-5 w-5" />
533
- </button>
534
- <button className="p-2 rounded bg-indigo-500/20 text-indigo-400">
535
- <PaintRollIcon className="h-5 w-5" />
536
- </button>
537
- <button className="p-2 rounded text-white/60 hover:bg-white/10">
538
- <LineIcon className="h-5 w-5" />
539
- </button>
540
- </div>`}
541
- </pre>
542
- </div>
543
- </div>
544
- </div>
545
-
546
- {/* Style Panel */}
547
- <div className="!space-y-4">
548
- <h3 className="text-fm-icon-info! text-lg font-semibold">
549
- Style Panel
550
- </h3>
551
- <div className="!space-y-4">
552
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
553
- <div className="!space-y-3">
554
- <div className="flex items-center gap-2">
555
- <PaintRollIcon className="text-fm-icon-info h-4 w-4" />
556
- <span className="text-fm-icon-active text-sm font-medium">
557
- Styling
558
- </span>
559
- </div>
560
- <div className="!space-y-2">
561
- <div className="flex items-center justify-between">
562
- <span className="text-fm-secondary text-sm">
563
- Background
564
- </span>
565
- <div className="border-fm-divider-primary bg-fm-icon-info h-6 w-6 rounded border"></div>
566
- </div>
567
- <div className="flex items-center justify-between">
568
- <span className="text-fm-secondary text-sm">
569
- Border
570
- </span>
571
- <div className="border-fm-divider-primary bg-fm-secondary-500 h-6 w-6 rounded border"></div>
572
- </div>
573
- </div>
574
- </div>
575
- </div>
576
- <div className="bg-fm-surface-secondary rounded-lg p-4">
577
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
578
- {`// Style panel header
579
- <div className="flex items-center gap-2">
580
- <PaintRollIcon className="h-4 w-4 text-indigo-400" />
581
- <span className="text-sm font-medium text-white">Styling</span>
582
- </div>`}
583
- </pre>
584
- </div>
585
- </div>
586
- </div>
587
-
588
- {/* Settings Menu */}
589
- <div className="!space-y-4">
590
- <h3 className="text-fm-icon-info! text-lg font-semibold">
591
- Settings Menu
592
- </h3>
593
- <div className="!space-y-4">
594
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
595
- <div className="!space-y-2">
596
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
597
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
598
- <span className="text-sm">General</span>
599
- </div>
600
- <div className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-3 rounded-lg px-3 py-2">
601
- <PaintRollIcon className="h-5 w-5" />
602
- <span className="text-sm font-medium">
603
- Appearance
604
- </span>
605
- </div>
606
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
607
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
608
- <span className="text-sm">Privacy</span>
609
- </div>
610
- </div>
611
- </div>
612
- <div className="bg-fm-surface-secondary rounded-lg p-4">
613
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
614
- {`// Active settings menu item
615
- <div className="flex items-center gap-3 bg-indigo-500/20 px-3 py-2 rounded-lg text-indigo-200">
616
- <PaintRollIcon className="h-5 w-5" />
617
- <span className="text-sm font-medium">Appearance</span>
618
- </div>`}
619
- </pre>
620
- </div>
621
- </div>
622
- </div>
623
- </div>
624
- </div>
625
-
626
- {/* Accessibility */}
627
- <div className="!space-y-8">
628
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
629
- Accessibility Features
630
- </h2>
631
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
632
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
633
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
634
- ✅ Built-in Features
635
- </h3>
636
- <ul className="text-fm-secondary! !space-y-2 text-sm">
637
- <li className="text-fm-secondary!">
638
- Uses Radix UI AccessibleIcon wrapper
639
- </li>
640
- <li className="text-fm-secondary!">
641
- Provides screen reader label "Paint Roll icon"
642
- </li>
643
- <li className="text-fm-secondary!">
644
- Supports keyboard navigation when interactive
645
- </li>
646
- <li className="text-fm-secondary!">
647
- Maintains proper color contrast ratios
648
- </li>
649
- <li className="text-fm-secondary!">
650
- Scales with user's font size preferences
651
- </li>
652
- </ul>
653
- </div>
654
-
655
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
656
- <h3 className="text-fm-icon-info! text-lg font-semibold">
657
- 💡 Best Practices
658
- </h3>
659
- <ul className="text-fm-secondary !space-y-2 text-sm">
660
- <li className="text-fm-secondary!">
661
- Always pair with descriptive text or tooltips
662
- </li>
663
- <li className="text-fm-secondary!">
664
- Use consistent colors for design tools
665
- </li>
666
- <li className="text-fm-secondary!">
667
- Ensure sufficient color contrast
668
- </li>
669
- <li className="text-fm-secondary!">
670
- Add focus states for interactive elements
671
- </li>
672
- <li className="text-fm-secondary!">
673
- Consider tool context for better labeling
674
- </li>
675
- </ul>
676
- </div>
677
- </div>
678
-
679
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
680
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
681
- Custom Accessibility Label
682
- </h3>
683
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
684
- <div className="bg-fm-surface-secondary rounded-lg p-4">
685
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
686
- {`// Custom implementation with specific label
687
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
688
-
689
- function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
35
+ <AuralIconDocsPage
36
+ accentToken="info"
37
+ features={[
38
+ { title: "Theme", description: "Apply theme or style" },
39
+ { title: "Design", description: "Visual design tooling" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { PaintRollIcon } from "src/ui/icons/paint-roll-icon"
44
+
45
+ function ThemeButton() {
690
46
  return (
691
- <AccessibleIcon label={label}>
692
- <PaintRollIcon {...props} />
693
- </AccessibleIcon>
47
+ <button className="flex items-center gap-2">
48
+ <PaintRollIcon className="h-5 w-5 text-fm-icon-active" />
49
+ <span>Customize theme</span>
50
+ </button>
694
51
  )
695
- }
696
-
697
- // Usage with specific context
698
- <CustomPaintRollIcon
699
- label="Theme customization"
700
- className="h-4 w-4 text-indigo-400"
701
- />`}
702
- </pre>
703
- </div>
704
- <div className="!space-y-4">
705
- <p className="text-fm-secondary! text-sm">
706
- For specific contexts, you can wrap the PaintRollIcon
707
- with a custom AccessibleIcon component that provides
708
- more descriptive labels for different styling tools.
709
- </p>
710
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
711
- <div className="text-fm-icon-info flex items-center gap-2 text-sm">
712
- <PaintRollIcon className="h-4 w-4" />
713
- <span>
714
- This approach gives screen readers more context
715
- about the styling functionality
716
- </span>
717
- </div>
718
- </div>
719
- </div>
720
- </div>
721
- </div>
722
- </div>
723
-
724
- {/* Related Icons */}
725
- <div className="!space-y-8">
726
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
727
- Related Icons
728
- </h2>
729
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
730
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
731
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
732
- <span className="text-2xl">🎨</span>
733
- </div>
734
- <div>
735
- <div className="text-fm-icon-active font-medium">
736
- PaletteIcon
737
- </div>
738
- <div className="text-fm-tertiary text-xs">
739
- Color selection
740
- </div>
741
- </div>
742
- </div>
743
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
744
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
745
- <span className="text-2xl">🖌️</span>
746
- </div>
747
- <div>
748
- <div className="text-fm-icon-active font-medium">
749
- BrushIcon
750
- </div>
751
- <div className="text-fm-tertiary text-xs">
752
- Drawing tools
753
- </div>
754
- </div>
755
- </div>
756
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
757
- <div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
758
- <span className="text-2xl">⚙️</span>
759
- </div>
760
- <div>
761
- <div className="text-fm-icon-active font-medium">
762
- SettingsIcon
763
- </div>
764
- <div className="text-fm-tertiary text-xs">
765
- Configuration
766
- </div>
767
- </div>
768
- </div>
769
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
770
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
771
- <span className="text-2xl">🌈</span>
772
- </div>
773
- <div>
774
- <div className="text-fm-icon-active font-medium">
775
- ThemeIcon
776
- </div>
777
- <div className="text-fm-tertiary text-xs">
778
- Theme switching
779
- </div>
780
- </div>
781
- </div>
782
- </div>
783
- </div>
784
- </div>
785
-
786
- {/* Footer */}
787
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
788
- <div className="!mx-auto max-w-7xl px-6 py-8">
789
- <div className="!space-y-4 text-center">
790
- <p className="text-fm-tertiary!">
791
- PaintRollIcon is part of the Aural UI icon library, designed
792
- specifically for design tools, theme customization, and
793
- styling interfaces with accessibility in mind.
794
- </p>
795
- <p className="text-fm-placeholder! text-sm">
796
- Perfect for design applications, theme editors, and
797
- customization interfaces that need clear visual
798
- representation of styling tools. Follows WCAG guidelines for
799
- accessibility.
800
- </p>
801
- </div>
802
- </div>
803
- </div>
804
- </div>
805
- </>
52
+ }`,
53
+ livePreview: (
54
+ <button className="flex items-center gap-2">
55
+ <PaintRollIcon className="text-fm-icon-active h-6 w-6" />
56
+ </button>
57
+ ),
58
+ }}
59
+ relatedIcons={[
60
+ {
61
+ name: "ArtBoardIcon",
62
+ description: "Art board / canvas icon",
63
+ icon: ArtBoardIcon,
64
+ accentToken: "info",
65
+ },
66
+ {
67
+ name: "TextColorIcon",
68
+ description: "Text color / highlight icon",
69
+ icon: TextColorIcon,
70
+ accentToken: "positive",
71
+ },
72
+ {
73
+ name: "EditBigIcon",
74
+ description: "Edit / modify content icon",
75
+ icon: EditBigIcon,
76
+ accentToken: "warning",
77
+ },
78
+ {
79
+ name: "MagicEditIcon",
80
+ description: "AI-enhanced edit icon",
81
+ icon: MagicEditIcon,
82
+ accentToken: "negative",
83
+ },
84
+ ]}
85
+ />
806
86
  ),
807
87
  },
808
88
  },
809
89
  tags: ["autodocs"],
810
90
  argTypes: {
811
- width: {
812
- control: { type: "range", min: 8, max: 96, step: 2 },
813
- description: "Width of the icon in pixels",
91
+ className: {
92
+ control: "text",
93
+ description: "CSS classes including color token",
814
94
  },
815
95
  withAccessibility: {
816
96
  control: "boolean",
817
- description: "Whether to wrap the icon with accessibility features",
818
- },
819
- height: {
820
- control: { type: "range", min: 8, max: 96, step: 2 },
821
- description: "Height of the icon in pixels",
822
- },
823
- stroke: {
824
- control: "color",
825
- description: "Stroke color of the icon",
826
- },
827
- strokeWidth: {
828
- control: { type: "range", min: 0.5, max: 4, step: 0.5 },
829
- description: "Stroke width of the icon",
830
- },
831
- className: {
832
- control: "text",
833
- description: "CSS classes for styling",
97
+ description: "Wrap with accessibility label",
834
98
  },
835
99
  },
836
100
  }
@@ -838,229 +102,76 @@ function CustomPaintRollIcon({ label = "Styling tool", ...props }) {
838
102
  export default meta
839
103
  type Story = StoryObj<typeof PaintRollIcon>
840
104
 
841
- // Story parameters for consistent dark theme
842
- const storyParameters = {
843
- backgrounds: {
844
- default: "dark",
845
- values: [
846
- { name: "dark", value: "var(--color-fm-surface-primary)" },
847
- { name: "darker", value: "var(--color-fm-neutral-0)" },
848
- ],
849
- },
850
- }
851
-
852
105
  export const Default: Story = {
853
106
  args: {
854
- width: 24,
855
- height: 24,
856
- className: "text-fm-icon-info",
107
+ className: "h-6 w-6 text-fm-icon-active",
857
108
  withAccessibility: true,
858
109
  },
859
- parameters: storyParameters,
860
110
  render: (args) => (
861
- <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>
862
112
  <PaintRollIcon {...args} />
863
- </div>
113
+ </IconDefaultCanvas>
864
114
  ),
865
115
  }
866
116
 
867
117
  export const SizeVariations: Story = {
868
- parameters: {
869
- ...storyParameters,
870
- docs: {
871
- description: {
872
- story:
873
- "PaintRollIcon in different sizes, from small UI elements to large design tool displays.",
874
- },
875
- },
876
- },
877
- render: () => (
878
- <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">
879
- <div className="text-center">
880
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
881
- <span className="text-fm-tertiary text-xs">12px</span>
882
- </div>
883
- <div className="text-center">
884
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
885
- <span className="text-fm-tertiary text-xs">16px</span>
886
- </div>
887
- <div className="text-center">
888
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
889
- <span className="text-fm-tertiary text-xs">20px</span>
890
- </div>
891
- <div className="text-center">
892
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
893
- <span className="text-fm-tertiary text-xs">24px</span>
894
- </div>
895
- <div className="text-center">
896
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
897
- <span className="text-fm-tertiary text-xs">32px</span>
898
- </div>
899
- <div className="text-center">
900
- <PaintRollIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
901
- <span className="text-fm-tertiary text-xs">48px</span>
902
- </div>
903
- </div>
904
- ),
118
+ render: () => <IconSizeVariations icon={PaintRollIcon} />,
905
119
  }
906
120
 
907
121
  export const ColorVariations: Story = {
908
- parameters: {
909
- ...storyParameters,
910
- docs: {
911
- description: {
912
- story:
913
- "PaintRollIcon in different colors suitable for design tools and styling interfaces.",
914
- },
915
- },
916
- },
917
- render: () => (
918
- <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">
919
- <div className="text-center">
920
- <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">
921
- <PaintRollIcon className="text-fm-icon-info h-8 w-8" />
922
- </div>
923
- <div className="text-fm-icon-active text-sm font-medium">
924
- Primary Tool
925
- </div>
926
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
927
- </div>
928
- <div className="text-center">
929
- <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">
930
- <PaintRollIcon className="text-fm-secondary-600 h-8 w-8" />
931
- </div>
932
- <div className="text-fm-icon-active text-sm font-medium">Creative</div>
933
- <div className="text-fm-secondary-600 text-xs">
934
- text-fm-secondary-600
935
- </div>
936
- </div>
937
- <div className="text-center">
938
- <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">
939
- <PaintRollIcon className="text-fm-secondary-600 h-8 w-8" />
940
- </div>
941
- <div className="text-fm-icon-active text-sm font-medium">Artistic</div>
942
- <div className="text-fm-secondary-600 text-xs">
943
- text-fm-secondary-600
944
- </div>
945
- </div>
946
- <div className="text-center">
947
- <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">
948
- <PaintRollIcon className="text-fm-secondary-600 h-8 w-8" />
949
- </div>
950
- <div className="text-fm-icon-active text-sm font-medium">Accent</div>
951
- <div className="text-fm-secondary-600 text-xs">
952
- text-fm-secondary-600
953
- </div>
954
- </div>
955
- </div>
956
- ),
122
+ render: () => <IconColorVariations icon={PaintRollIcon} />,
957
123
  }
958
124
 
959
125
  export const UsageExamples: Story = {
960
- parameters: {
961
- ...storyParameters,
962
- docs: {
963
- description: {
964
- story:
965
- "Real-world usage examples showing PaintRollIcon in different design tool and styling contexts.",
966
- },
967
- },
968
- },
969
126
  render: () => (
970
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
971
- {/* Theme Customizer */}
972
- <div className="!space-y-2">
973
- <h3 className="text-fm-icon-active text-sm font-medium">
974
- Theme Customizer
975
- </h3>
976
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
977
- <div className="!space-y-3">
978
- <div className="flex items-center justify-between">
979
- <h4 className="text-fm-icon-active font-medium">Appearance</h4>
980
- <button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded border px-3 py-1.5 transition-colors">
981
- <PaintRollIcon className="h-4 w-4" />
982
- <span className="text-sm">Customize</span>
983
- </button>
984
- </div>
985
- <div className="grid grid-cols-3 gap-2">
986
- <div className="bg-fm-icon-info/20 h-8 rounded"></div>
987
- <div className="bg-fm-secondary-500/20 h-8 rounded"></div>
988
- <div className="bg-fm-secondary-500/20 h-8 rounded"></div>
989
- </div>
990
- </div>
991
- </div>
992
- </div>
993
-
994
- {/* Design Tool Toolbar */}
995
- <div className="!space-y-2">
996
- <h3 className="text-fm-icon-active text-sm font-medium">
997
- Design Tool Toolbar
998
- </h3>
999
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
1000
- <div className="flex items-center gap-1">
1001
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
1002
- <div className="h-5 w-5 rounded-sm border border-current"></div>
1003
- </button>
1004
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
1005
- <div className="h-5 w-5 rounded-full border border-current"></div>
127
+ <IconUsageCanvas>
128
+ <IconUsageSection title="Theme Picker">
129
+ <button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
130
+ <PaintRollIcon className="text-fm-icon-active h-4 w-4" />
131
+ <span className="text-fm-primary font-fm-text text-sm">
132
+ Customize theme
133
+ </span>
134
+ </button>
135
+ </IconUsageSection>
136
+
137
+ <IconUsageSection title="Design Tools">
138
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-3 py-2">
139
+ {[PaintRollIcon, ArtBoardIcon, TextColorIcon].map((Icon, i) => (
140
+ <button
141
+ key={i}
142
+ className="flex h-8 w-8 items-center justify-center rounded-lg"
143
+ >
144
+ <Icon className="text-fm-icon-inactive h-4 w-4" />
1006
145
  </button>
1007
- <button className="bg-fm-icon-info/20 text-fm-icon-info rounded p-2">
1008
- <PaintRollIcon className="h-5 w-5" />
1009
- </button>
1010
- <button className="text-fm-tertiary hover:bg-fm-surface-secondary rounded p-2">
1011
- <div className="h-5 w-5 border-l-2 border-current"></div>
1012
- </button>
1013
- </div>
146
+ ))}
1014
147
  </div>
1015
- </div>
1016
-
1017
- {/* Settings Menu */}
1018
- <div className="!space-y-2">
1019
- <h3 className="text-fm-icon-active text-sm font-medium">
1020
- Settings Menu
1021
- </h3>
1022
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
1023
- <div className="!space-y-2">
1024
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
1025
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
1026
- <span className="text-sm">General</span>
1027
- </div>
1028
- <div className="bg-fm-icon-info/20 text-fm-icon-info flex items-center gap-3 rounded-lg px-3 py-2">
1029
- <PaintRollIcon className="h-5 w-5" />
1030
- <span className="text-sm font-medium">Appearance</span>
1031
- </div>
1032
- <div className="text-fm-tertiary hover:bg-fm-surface-secondary flex items-center gap-3 rounded-lg px-3 py-2">
1033
- <div className="bg-fm-surface-tertiary h-5 w-5 rounded"></div>
1034
- <span className="text-sm">Privacy</span>
1035
- </div>
148
+ </IconUsageSection>
149
+
150
+ <IconUsageSection title="Style Settings Row">
151
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
152
+ <div className="flex items-center gap-3">
153
+ <PaintRollIcon className="text-fm-icon-active h-5 w-5" />
154
+ <span className="text-fm-primary font-fm-text text-sm">
155
+ Cover style
156
+ </span>
1036
157
  </div>
158
+ <span className="text-fm-secondary font-fm-text text-xs">
159
+ Gradient
160
+ </span>
1037
161
  </div>
1038
- </div>
1039
- </div>
162
+ </IconUsageSection>
163
+ </IconUsageCanvas>
1040
164
  ),
1041
165
  }
1042
166
 
1043
167
  export const Playground: Story = {
1044
- parameters: {
1045
- ...storyParameters,
1046
- docs: {
1047
- description: {
1048
- story:
1049
- "Interactive playground to experiment with different PaintRollIcon configurations.",
1050
- },
1051
- },
1052
- },
1053
168
  args: {
1054
- width: 32,
1055
- height: 32,
1056
- className: "text-fm-icon-info",
1057
- strokeWidth: 1.5,
169
+ className: "h-8 w-8 text-fm-icon-active",
170
+ withAccessibility: true,
1058
171
  },
1059
172
  render: (args) => (
1060
- <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">
1061
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
1062
- <PaintRollIcon {...args} />
1063
- </div>
1064
- </div>
173
+ <IconPlaygroundCanvas>
174
+ <PaintRollIcon {...args} />
175
+ </IconPlaygroundCanvas>
1065
176
  ),
1066
177
  }