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,8 +1,22 @@
1
1
  import React from "react"
2
2
  import type { Meta, StoryObj } from "@storybook/react-vite"
3
3
 
4
+ import { AudioBarIcon } from "src/ui/icons/audio-bar-icon"
5
+ import { CircularPlayIcon } from "src/ui/icons/circular-play-icon"
6
+ import { SpinnerGradientIcon } from "src/ui/icons/spinner-gradient-icon"
7
+ import { SpinnerSolidIcon } from "src/ui/icons/spinner-solid-icon"
8
+ import {
9
+ IconAnimatedStates,
10
+ IconColorVariations,
11
+ IconDefaultCanvas,
12
+ IconPlaygroundCanvas,
13
+ IconSizeVariations,
14
+ IconUsageCanvas,
15
+ IconUsageSection,
16
+ } from "src/ui/story-spec/icons/icon-story-canvas"
17
+ import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
18
+
4
19
  import { SpinnerSolidNeutralIcon } from "."
5
- import { SpinnerSolidIcon } from "../spinner-solid-icon"
6
20
 
7
21
  const meta: Meta<typeof SpinnerSolidNeutralIcon> = {
8
22
  title: "Icons/SpinnerSolidNeutralIcon",
@@ -19,760 +33,176 @@ const meta: Meta<typeof SpinnerSolidNeutralIcon> = {
19
33
  },
20
34
  docs: {
21
35
  page: () => (
22
- <>
23
- {/* Override default docs styling */}
24
- <style>
25
- {`
26
- .sbdocs-wrapper {
27
- padding: 0 !important;
28
- max-width: none !important;
29
- background: transparent !important;
30
- }
31
- .sbdocs-content {
32
- max-width: none !important;
33
- padding: 0 !important;
34
- margin: 0 !important;
35
- background: transparent !important;
36
- }
37
- .docs-story {
38
- background: transparent !important;
39
- }
40
- .sbdocs {
41
- background: transparent !important;
42
- }
43
- body {
44
- background: var(--color-fm-surface-primary) !important;
45
- }
46
- #storybook-docs {
47
- background: var(--color-fm-surface-primary) !important;
48
- }
49
- .sbdocs-preview {
50
- background: transparent !important;
51
- border: none !important;
52
- }
53
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
54
- color: var(--color-fm-icon-active) !important;
55
- }
56
- .sbdocs-p, .sbdocs-li {
57
- color: var(--color-fm-secondary) !important;
58
- }
59
- .sbdocs-code {
60
- background: var(--color-fm-surface-secondary) !important;
61
- color: var(--color-fm-secondary-500) !important;
62
- border: 1px solid var(--color-fm-divider-secondary) !important;
63
- }
64
- .sbdocs-pre {
65
- background: var(--color-fm-surface-secondary) !important;
66
- border: 1px solid var(--color-fm-divider-secondary) !important;
67
- }
68
- .sbdocs-table {
69
- background: var(--color-fm-surface-secondary) !important;
70
- border: 1px solid var(--color-fm-divider-secondary) !important;
71
- }
72
- .sbdocs-table th {
73
- background: var(--color-fm-surface-secondary) !important;
74
- color: var(--color-fm-icon-active) !important;
75
- border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
76
- }
77
- .sbdocs-table td {
78
- color: var(--color-fm-secondary) !important;
79
- border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
80
- }
81
- @keyframes spin-neutral {
82
- from { transform: rotate(0deg); }
83
- to { transform: rotate(360deg); }
84
- }
85
- .animate-spin-neutral {
86
- animation: spin-neutral 1s linear infinite;
87
- }
88
- @keyframes neutral-pulse {
89
- 0%, 100% { opacity: 1; }
90
- 50% { opacity: 0.6; }
91
- }
92
- .animate-neutral-pulse {
93
- animation: neutral-pulse 2s ease-in-out infinite;
94
- }
95
- @keyframes neutral-glow {
96
- 0%, 100% { filter: drop-shadow(0 0 2px rgba(255,255,255,0.3)); }
97
- 50% { filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
98
- }
99
- .animate-neutral-glow {
100
- animation: neutral-glow 2s ease-in-out infinite;
101
- }
102
- `}
103
- </style>
104
-
105
- <div className="from-fm-surface-primary via-fm-surface-primary/20 to-fm-surface-primary min-h-screen bg-linear-to-br">
106
- {/* Header */}
107
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
108
- <div className="from-fm-surface-secondary/10 to-fm-surface-tertiary/10 absolute inset-0 bg-linear-to-r via-transparent" />
109
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
110
- <div className="!space-y-6 text-center">
111
- <div className="border-fm-divider-primary from-fm-surface-secondary/20 to-fm-surface-tertiary/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
112
- <SpinnerSolidNeutralIcon className="h-12 w-12" />
113
- </div>
114
- <h1 className="text-fm-icon-active!">
115
- SpinnerSolidNeutralIcon
116
- </h1>
117
- <p className="text-fm-icon-active! !mx-auto max-w-3xl text-xl leading-relaxed">
118
- A neutral-themed spinner icon with gradient styling for
119
- loading states, asynchronous actions, and content
120
- transitions. Features a sophisticated conic gradient design
121
- that works well in any interface.
122
- </p>
123
-
124
- {/* Stats */}
125
- <div className="flex items-center justify-center gap-8 pt-8">
126
- <div className="text-center">
127
- <div className="text-fm-secondary text-3xl font-bold">
128
- Gradient
129
- </div>
130
- <div className="text-fm-icon-active/80 text-sm">
131
- Conic Design
132
- </div>
133
- </div>
134
- <div className="bg-fm-divider-primary h-8 w-px" />
135
- <div className="text-center">
136
- <div className="text-fm-secondary text-3xl font-bold">
137
- Neutral
138
- </div>
139
- <div className="text-fm-icon-active/80 text-sm">
140
- Theme Agnostic
141
- </div>
142
- </div>
143
- <div className="bg-fm-divider-primary h-8 w-px" />
144
- <div className="text-center">
145
- <div className="text-fm-icon-active text-3xl font-bold">
146
- Accessible
147
- </div>
148
- <div className="text-fm-icon-active/80 text-sm">
149
- Screen Reader Ready
150
- </div>
151
- </div>
152
- </div>
153
- </div>
154
- </div>
155
- </div>
156
-
157
- {/* Content */}
158
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
159
- {/* Features */}
160
- <div className="!space-y-8">
161
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
162
- Key Features
163
- </h3>
164
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
165
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
166
- <div className="text-3xl">🌀</div>
167
- <h4 className="text-fm-icon-active! text-lg font-semibold">
168
- Gradient Design
169
- </h4>
170
- <p className="text-fm-icon-active!/80 text-sm">
171
- Sophisticated conic gradient that creates smooth visual
172
- motion
173
- </p>
174
- </div>
175
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
176
- <div className="text-3xl">⚪</div>
177
- <h4 className="text-fm-icon-active! text-lg font-semibold">
178
- Neutral Theme
179
- </h4>
180
- <p className="text-fm-icon-active!/80 text-sm">
181
- Works seamlessly with any color scheme or design system
182
- </p>
183
- </div>
184
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
185
- <div className="text-3xl">♿</div>
186
- <h4 className="text-fm-icon-active! text-lg font-semibold">
187
- Accessibility
188
- </h4>
189
- <p className="text-fm-icon-active!/80 text-sm">
190
- Built with Radix UI's AccessibleIcon for screen reader
191
- support
192
- </p>
193
- </div>
194
- </div>
195
- </div>
196
-
197
- {/* API Reference */}
198
- <div className="!space-y-8">
199
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
200
- API Reference
201
- </h3>
202
-
203
- {/* Component Signature */}
204
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
205
- <h4 className="text-fm-secondary! mb-4 text-lg font-semibold">
206
- Component Signature
207
- </h4>
208
- <div className="bg-fm-surface-secondary rounded-lg p-4">
209
- <pre className="text-fm-icon-positive! text-sm">
210
- {`import { SpinnerSolidNeutralIcon } from "@/ui/icons/spinner-solid-neutral-icon"
211
-
212
- <SpinnerSolidNeutralIcon className="h-6 w-6 animate-spin" />`}
213
- </pre>
214
- </div>
215
- </div>
216
-
217
- {/* Props Table */}
218
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
219
- <div className="bg-fm-surface-secondary p-4">
220
- <h3 className="text-fm-icon-active! text-xl font-semibold">
221
- Props
222
- </h3>
223
- </div>
224
- <table className="!my-0 w-full">
225
- <thead className="bg-fm-surface-secondary">
226
- <tr className="border-fm-divider-secondary border-b">
227
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
228
- Prop
229
- </th>
230
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
231
- Type
232
- </th>
233
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
234
- Default
235
- </th>
236
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
237
- Description
238
- </th>
239
- </tr>
240
- </thead>
241
- <tbody>
242
- {" "}
243
- <tr className="bg-fm-surface-secondary!">
244
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
245
- withAccessibility
246
- </td>
247
- <td className="text-fm-secondary! px-6 py-4 text-sm">
248
- boolean
249
- </td>
250
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
251
- true
252
- </td>
253
- <td className="text-fm-secondary! px-6 py-4 text-sm">
254
- Whether to wrap the icon with accessibility feature
255
- </td>
256
- </tr>
257
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
258
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
259
- height
260
- </td>
261
- <td className="text-fm-secondary! px-6 py-4 text-sm">
262
- number | string
263
- </td>
264
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
265
- 64
266
- </td>
267
- <td className="text-fm-secondary! px-6 py-4 text-sm">
268
- Height of the icon in pixels
269
- </td>
270
- </tr>
271
- <tr className="bg-fm-surface-secondary!">
272
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
273
- className
274
- </td>
275
- <td className="text-fm-secondary! px-6 py-4 text-sm">
276
- string
277
- </td>
278
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
279
- -
280
- </td>
281
- <td className="text-fm-secondary! px-6 py-4 text-sm">
282
- CSS classes for styling
283
- </td>
284
- </tr>
285
- </tbody>
286
- </table>
287
- </div>
288
-
289
- {/* Accessibility */}
290
- <div className="!space-y-8">
291
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
292
- Accessibility Features
293
- </h2>
294
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
295
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
296
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
297
- ✅ Built-in Features
298
- </h3>
299
- <ul className="text-fm-secondary! !space-y-2 text-sm">
300
- <li className="text-fm-secondary!">
301
- Uses Radix UI AccessibleIcon wrapper
302
- </li>
303
- <li className="text-fm-secondary!">
304
- Provides screen reader label "Spinner Solid Neutral
305
- Icon"
306
- </li>
307
- <li className="text-fm-secondary!">
308
- Supports keyboard navigation when interactive
309
- </li>
310
- <li className="text-fm-secondary!">
311
- Maintains proper color contrast ratios
312
- </li>
313
- <li className="text-fm-secondary!">
314
- Scales with user's font size preferences
315
- </li>
316
- </ul>
317
- </div>
318
-
319
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
320
- <h3 className="text-fm-icon-warning! text-lg font-semibold">
321
- 💡 Best Practices
322
- </h3>
323
- <ul className="text-fm-secondary !space-y-2 text-sm">
324
- <li className="text-fm-secondary!">
325
- Always pair with descriptive loading text
326
- </li>
327
- <li className="text-fm-secondary!">
328
- Provide context about what's loading
329
- </li>
330
- <li className="text-fm-secondary!">
331
- Ensure sufficient color contrast on backgrounds
332
- </li>
333
- <li className="text-fm-secondary!">
334
- Respect reduced motion user preferences
335
- </li>
336
- <li className="text-fm-secondary!">
337
- Use appropriate size for the context
338
- </li>
339
- </ul>
340
- </div>
341
- </div>
342
-
343
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
344
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
345
- Custom Accessibility Label
346
- </h3>
347
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
348
- <div className="bg-fm-surface-secondary rounded-lg p-4">
349
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
350
- {`// Custom implementation with specific label
351
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
352
-
353
- function CustomSpinnerIcon({ label = "Loading", ...props }) {
36
+ <AuralIconDocsPage
37
+ accentToken="warning"
38
+ features={[
39
+ { title: "Neutral Spinner", description: "White conic fade sweep" },
40
+ { title: "Theme-aware", description: "Adapts to surface tokens" },
41
+ { title: "Accessible", description: "ARIA-ready by default" },
42
+ ]}
43
+ quickStart={{
44
+ codeExample: `import { SpinnerSolidNeutralIcon } from "src/ui/icons/spinner-solid-neutral-icon"
45
+
46
+ function LoadingButton() {
354
47
  return (
355
- <AccessibleIcon label={label}>
356
- <SpinnerSolidNeutralIcon {...props} />
357
- </AccessibleIcon>
48
+ <button className="flex items-center gap-2">
49
+ <SpinnerSolidNeutralIcon className="h-5 w-5 animate-spin" />
50
+ Loading...
51
+ </button>
358
52
  )
359
- }
360
-
361
- // Usage with specific context
362
- <CustomSpinnerIcon
363
- label="Loading user data"
364
- className="h-8 w-8 animate-spin"
365
- />`}
366
- </pre>
367
- </div>
368
- <div className="!space-y-4">
369
- <p className="text-fm-secondary! text-sm">
370
- For specific contexts, you can wrap the
371
- SpinnerSolidNeutralIcon with a custom AccessibleIcon
372
- component that provides more descriptive labels.
373
- </p>
374
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
375
- <div className="text-fm-icon-info flex items-center gap-2 text-sm">
376
- <SpinnerSolidNeutralIcon className="h-4 w-4 animate-spin" />
377
- <span>
378
- This approach gives screen readers more context
379
- </span>
380
- </div>
381
- </div>
382
- </div>
383
- </div>
384
- </div>
385
- </div>
386
-
387
- {/* Related Icons */}
388
- <div className="!space-y-8">
389
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
390
- Related Icons
391
- </h2>
392
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
393
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
394
- <div className="bg-fm-icon-info/10 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
395
- <SpinnerSolidIcon className="text-fm-icon-info h-8 w-8 animate-spin" />
396
- </div>
397
- <div>
398
- <div className="text-fm-icon-active font-medium">
399
- Spinner Solid
400
- </div>
401
- <div className="text-fm-tertiary text-xs">
402
- Basic solid spinner
403
- </div>
404
- </div>
405
- </div>
406
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
407
- <div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
408
- <span className="text-fm-icon-active! !text-2xl">
409
-
410
- </span>
411
- </div>
412
- <div>
413
- <div className="text-fm-icon-active font-medium">
414
- CheckIcon
415
- </div>
416
- <div className="text-fm-tertiary text-xs">
417
- Success states
418
- </div>
419
- </div>
420
- </div>
421
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
422
- <div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
423
- <span className="text-2xl">⚠️</span>
424
- </div>
425
- <div>
426
- <div className="text-fm-icon-active font-medium">
427
- AlertIcon
428
- </div>
429
- <div className="text-fm-tertiary text-xs">
430
- Warning states
431
- </div>
432
- </div>
433
- </div>
434
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
435
- <div className="bg-fm-icon-negative/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
436
- <span className="text-fm-icon-active! !text-2xl">
437
-
438
- </span>
439
- </div>
440
- <div>
441
- <div className="text-fm-icon-active font-medium">
442
- ErrorIcon
443
- </div>
444
- <div className="text-fm-tertiary text-xs">
445
- Error states
446
- </div>
447
- </div>
448
- </div>
449
- </div>
450
- </div>
451
-
452
- {/* Footer */}
453
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
454
- <div className="!mx-auto max-w-7xl px-6 py-8">
455
- <div className="!space-y-4 text-center">
456
- <p className="text-fm-tertiary!">
457
- SpinnerSolidNeutralIcon is part of the Aural UI icon
458
- library, optimized for accessibility and neutral
459
- theming.
460
- </p>
461
- <p className="text-fm-placeholder! text-sm">
462
- All icons use Radix UI's AccessibleIcon for screen
463
- reader compatibility and follow WCAG guidelines.
464
- </p>
465
- </div>
466
- </div>
467
- </div>
468
- </div>
469
- </div>
470
- </div>
471
- </>
53
+ }`,
54
+ livePreview: (
55
+ <button className="bg-fm-surface-secondary border-fm-divider-secondary text-fm-primary font-fm-text flex items-center gap-2 rounded-xl border px-4 py-2.5 text-sm">
56
+ <SpinnerSolidNeutralIcon className="h-5 w-5 animate-spin" />
57
+ Loading...
58
+ </button>
59
+ ),
60
+ }}
61
+ relatedIcons={[
62
+ {
63
+ name: "SpinnerGradientIcon",
64
+ description: "Gradient spinner",
65
+ icon: SpinnerGradientIcon,
66
+ accentToken: "info",
67
+ },
68
+ {
69
+ name: "SpinnerSolidIcon",
70
+ description: "Solid color spinner",
71
+ icon: SpinnerSolidIcon,
72
+ accentToken: "positive",
73
+ },
74
+ {
75
+ name: "AudioBarIcon",
76
+ description: "Audio animation bars",
77
+ icon: AudioBarIcon,
78
+ accentToken: "warning",
79
+ },
80
+ {
81
+ name: "CircularPlayIcon",
82
+ description: "Circular play button",
83
+ icon: CircularPlayIcon,
84
+ accentToken: "negative",
85
+ },
86
+ ]}
87
+ />
472
88
  ),
473
89
  },
474
90
  },
475
91
  tags: ["autodocs"],
92
+ argTypes: {
93
+ width: {
94
+ control: { type: "range", min: 16, max: 120, step: 4 },
95
+ description: "Width of the icon in pixels",
96
+ },
97
+ height: {
98
+ control: { type: "range", min: 16, max: 120, step: 4 },
99
+ description: "Height of the icon in pixels",
100
+ },
101
+ className: {
102
+ control: "text",
103
+ description: "CSS classes for the SVG element",
104
+ },
105
+ withAccessibility: {
106
+ control: "boolean",
107
+ description: "Wrap with accessibility label",
108
+ },
109
+ },
476
110
  }
477
111
 
478
112
  export default meta
479
113
  type Story = StoryObj<typeof SpinnerSolidNeutralIcon>
480
114
 
481
- // Story parameters for consistent dark theme
482
- const storyParameters = {
483
- backgrounds: {
484
- default: "dark",
485
- values: [
486
- { name: "dark", value: "var(--color-fm-surface-primary)" },
487
- { name: "darker", value: "var(--color-fm-neutral-0)" },
488
- ],
489
- },
490
- }
491
-
492
115
  export const Default: Story = {
493
116
  args: {
494
- width: 32,
495
- height: 32,
496
- className: "",
117
+ width: 64,
118
+ height: 64,
497
119
  withAccessibility: true,
498
120
  },
499
- parameters: storyParameters,
500
121
  render: (args) => (
501
- <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">
502
- <SpinnerSolidNeutralIcon {...args} className="animate-spin" />
503
- </div>
122
+ <IconDefaultCanvas>
123
+ <SpinnerSolidNeutralIcon {...args} />
124
+ </IconDefaultCanvas>
504
125
  ),
505
126
  }
506
127
 
507
128
  export const SizeVariations: Story = {
508
- parameters: {
509
- ...storyParameters,
510
- docs: {
511
- description: {
512
- story:
513
- "SpinnerSolidNeutralIcon in different sizes, from small UI elements to large loading states.",
514
- },
515
- },
516
- },
517
- render: () => (
518
- <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">
519
- <div className="text-center">
520
- <SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-4 w-4 animate-spin" />
521
- <span className="text-fm-tertiary text-xs">16px</span>
522
- </div>
523
- <div className="text-center">
524
- <SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-6 w-6 animate-spin" />
525
- <span className="text-fm-tertiary text-xs">24px</span>
526
- </div>
527
- <div className="text-center">
528
- <SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-8 w-8 animate-spin" />
529
- <span className="text-fm-tertiary text-xs">32px</span>
530
- </div>
531
- <div className="text-center">
532
- <SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-12 w-12 animate-spin" />
533
- <span className="text-fm-tertiary text-xs">48px</span>
534
- </div>
535
- <div className="text-center">
536
- <SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-16 w-16 animate-spin" />
537
- <span className="text-fm-tertiary text-xs">64px</span>
538
- </div>
539
- <div className="text-center">
540
- <SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-20 w-20 animate-spin" />
541
- <span className="text-fm-tertiary text-xs">80px</span>
542
- </div>
543
- </div>
544
- ),
129
+ render: () => <IconSizeVariations icon={SpinnerSolidNeutralIcon} />,
545
130
  }
546
131
 
547
- export const AnimationVariations: Story = {
548
- parameters: {
549
- ...storyParameters,
550
- docs: {
551
- description: {
552
- story:
553
- "Different animation styles for SpinnerSolidNeutralIcon to match various loading contexts.",
554
- },
555
- },
556
- },
557
- render: () => (
558
- <div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-1 items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8 md:grid-cols-3">
559
- <div className="text-center">
560
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-lg border">
561
- <SpinnerSolidNeutralIcon className="h-12 w-12 animate-spin" />
562
- </div>
563
- <div className="text-fm-icon-active text-sm font-medium">
564
- Standard Spin
565
- </div>
566
- <div className="text-fm-tertiary text-xs">animate-spin</div>
567
- </div>
568
- <div className="text-center">
569
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-lg border">
570
- <SpinnerSolidNeutralIcon className="animate-neutral-pulse h-12 w-12" />
571
- </div>
572
- <div className="text-fm-icon-active text-sm font-medium">Pulse</div>
573
- <div className="text-fm-tertiary text-xs">animate-neutral-pulse</div>
574
- </div>
575
- <div className="text-center">
576
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-lg border">
577
- <SpinnerSolidNeutralIcon className="animate-neutral-glow h-12 w-12" />
578
- </div>
579
- <div className="text-fm-icon-active text-sm font-medium">Glow</div>
580
- <div className="text-fm-tertiary text-xs">animate-neutral-glow</div>
581
- </div>
582
- </div>
583
- ),
132
+ export const ColorVariations: Story = {
133
+ render: () => <IconColorVariations icon={SpinnerSolidNeutralIcon} />,
584
134
  }
585
135
 
586
- export const BackgroundVariations: Story = {
587
- parameters: {
588
- ...storyParameters,
589
- docs: {
590
- description: {
591
- story:
592
- "SpinnerSolidNeutralIcon on different background colors to demonstrate its neutral design adaptability.",
593
- },
594
- },
595
- },
136
+ export const AnimatedStates: Story = {
596
137
  render: () => (
597
- <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">
598
- <div className="text-center">
599
- <div className="bg-fm-surface-primary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
600
- <SpinnerSolidNeutralIcon className="h-10 w-10 animate-spin" />
601
- </div>
602
- <div className="text-fm-icon-active text-sm font-medium">Black</div>
603
- <div className="text-fm-tertiary text-xs">bg-fm-surface-primary</div>
604
- </div>
605
- <div className="text-center">
606
- <div className="bg-fm-surface-secondary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
607
- <SpinnerSolidNeutralIcon className="h-10 w-10 animate-spin" />
608
- </div>
609
- <div className="text-fm-icon-active text-sm font-medium">Dark Gray</div>
610
- <div className="text-fm-tertiary text-xs">bg-fm-surface-secondary</div>
611
- </div>
612
- <div className="text-center">
613
- <div className="bg-fm-surface-tertiary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
614
- <SpinnerSolidNeutralIcon className="h-10 w-10 animate-spin" />
615
- </div>
616
- <div className="text-fm-icon-active text-sm font-medium">
617
- Medium Gray
618
- </div>
619
- <div className="text-fm-tertiary text-xs">bg-fm-surface-tertiary</div>
620
- </div>
621
- <div className="text-center">
622
- <div className="bg-fm-surface-tertiary !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg">
623
- <SpinnerSolidNeutralIcon className="h-10 w-10 animate-spin" />
624
- </div>
625
- <div className="text-fm-icon-active text-sm font-medium">
626
- Light Gray
627
- </div>
628
- <div className="text-fm-tertiary text-xs">bg-fm-surface-tertiary</div>
629
- </div>
630
- </div>
138
+ <IconAnimatedStates
139
+ icon={SpinnerSolidNeutralIcon}
140
+ variants={[
141
+ {
142
+ label: "Static",
143
+ description: "No animation",
144
+ },
145
+ {
146
+ label: "Spin",
147
+ animationClass: "animate-spin",
148
+ description: "Continuous rotation",
149
+ },
150
+ {
151
+ label: "Pulse",
152
+ animationClass: "animate-pulse",
153
+ description: "Fade in/out",
154
+ },
155
+ ]}
156
+ />
631
157
  ),
632
158
  }
633
159
 
634
160
  export const UsageExamples: Story = {
635
- parameters: {
636
- ...storyParameters,
637
- docs: {
638
- description: {
639
- story:
640
- "Real-world usage examples showing SpinnerSolidNeutralIcon in different UI contexts.",
641
- },
642
- },
643
- },
644
161
  render: () => (
645
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
646
- {/* Loading Button */}
647
- <div className="!space-y-2">
648
- <h3 className="text-fm-icon-active text-sm font-medium">
649
- Loading Button
650
- </h3>
651
- <div className="flex gap-4">
652
- <button className="border-fm-divider-primary bg-fm-surface-secondary/20 text-fm-secondary hover:bg-fm-surface-secondary/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
653
- <SpinnerSolidNeutralIcon className="h-4 w-4 animate-spin" />
654
- Loading...
655
- </button>
656
- <button className="border-fm-divider-primary bg-fm-surface-secondary/20 text-fm-secondary hover:bg-fm-surface-secondary/30 flex h-10 w-10 items-center justify-center rounded-lg border transition-colors">
657
- <SpinnerSolidNeutralIcon className="h-5 w-5 animate-spin" />
658
- </button>
659
- </div>
660
- </div>
661
-
662
- {/* Loading State */}
663
- <div className="!space-y-2">
664
- <h3 className="text-fm-icon-active text-sm font-medium">
665
- Loading State
666
- </h3>
667
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
162
+ <IconUsageCanvas>
163
+ <IconUsageSection title="Loading Button">
164
+ <button className="bg-fm-surface-secondary border-fm-divider-secondary text-fm-primary font-fm-text flex items-center gap-2 rounded-xl border px-5 py-2.5 text-sm font-medium">
165
+ <SpinnerSolidNeutralIcon className="h-5 w-5 animate-spin" />
166
+ Loading...
167
+ </button>
168
+ </IconUsageSection>
169
+
170
+ <IconUsageSection title="Full-screen Loading">
171
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm flex-col items-center gap-4 rounded-xl border py-10">
172
+ <SpinnerSolidNeutralIcon className="h-12 w-12 animate-spin" />
668
173
  <div className="text-center">
669
- <SpinnerSolidNeutralIcon className="!mx-auto mb-4 h-16 w-16 animate-spin" />
670
- <div className="text-fm-tertiary text-sm">Loading content...</div>
671
- </div>
672
- </div>
673
- </div>
674
-
675
- {/* Card Loading */}
676
- <div className="!space-y-2">
677
- <h3 className="text-fm-icon-active text-sm font-medium">
678
- Card Loading
679
- </h3>
680
- <div className="grid gap-4 md:grid-cols-3">
681
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
682
- <div className="mb-4 flex items-center justify-center">
683
- <SpinnerSolidNeutralIcon className="h-8 w-8 animate-spin" />
684
- </div>
685
- <div className="space-y-2">
686
- <div className="bg-fm-surface-secondary h-4 rounded"></div>
687
- <div className="bg-fm-surface-secondary h-4 rounded"></div>
688
- <div className="bg-fm-surface-secondary h-4 w-3/4 rounded"></div>
689
- </div>
690
- </div>
691
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
692
- <div className="mb-4 flex items-center justify-center">
693
- <SpinnerSolidNeutralIcon className="h-8 w-8 animate-spin" />
174
+ <div className="text-fm-primary font-fm-text text-sm font-medium">
175
+ Loading your content
694
176
  </div>
695
- <div className="space-y-2">
696
- <div className="bg-fm-surface-secondary h-4 rounded"></div>
697
- <div className="bg-fm-surface-secondary h-4 rounded"></div>
698
- <div className="bg-fm-surface-secondary h-4 w-2/3 rounded"></div>
699
- </div>
700
- </div>
701
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
702
- <div className="mb-4 flex items-center justify-center">
703
- <SpinnerSolidNeutralIcon className="h-8 w-8 animate-spin" />
704
- </div>
705
- <div className="space-y-2">
706
- <div className="bg-fm-surface-secondary h-4 rounded"></div>
707
- <div className="bg-fm-surface-secondary h-4 rounded"></div>
708
- <div className="bg-fm-surface-secondary h-4 w-4/5 rounded"></div>
177
+ <div className="text-fm-secondary font-fm-text text-xs">
178
+ Please wait a moment
709
179
  </div>
710
180
  </div>
711
181
  </div>
712
- </div>
182
+ </IconUsageSection>
713
183
 
714
- {/* Inline Loading */}
715
- <div className="!space-y-2">
716
- <h3 className="text-fm-icon-active text-sm font-medium">
717
- Inline Loading
718
- </h3>
719
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
720
- <div className="text-fm-icon-active/80 flex items-center gap-2">
721
- <SpinnerSolidNeutralIcon className="h-4 w-4 animate-spin" />
722
- <span>Saving changes...</span>
723
- </div>
184
+ <IconUsageSection title="Inline Loading">
185
+ <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">
186
+ <span className="text-fm-primary font-fm-text text-sm">
187
+ Syncing data
188
+ </span>
189
+ <SpinnerSolidNeutralIcon className="h-5 w-5 animate-spin" />
724
190
  </div>
725
- </div>
726
- </div>
191
+ </IconUsageSection>
192
+ </IconUsageCanvas>
727
193
  ),
728
194
  }
729
195
 
730
196
  export const Playground: Story = {
731
- parameters: {
732
- ...storyParameters,
733
- docs: {
734
- description: {
735
- story:
736
- "Interactive playground to experiment with different SpinnerSolidNeutralIcon configurations.",
737
- },
738
- },
739
- },
740
197
  args: {
741
- width: 48,
742
- height: 48,
743
- className: "",
744
- },
745
- argTypes: {
746
- width: {
747
- control: { type: "range", min: 16, max: 128, step: 4 },
748
- description: "Width of the icon in pixels",
749
- },
750
- withAccessibility: {
751
- control: "boolean",
752
- description: "Whether to wrap the icon with accessibility features",
753
- },
754
- height: {
755
- control: { type: "range", min: 16, max: 128, step: 4 },
756
- description: "Height of the icon in pixels",
757
- },
758
- className: {
759
- control: "text",
760
- description: "Additional CSS classes for styling",
761
- },
198
+ width: 64,
199
+ height: 64,
200
+ withAccessibility: true,
201
+ className: "animate-spin",
762
202
  },
763
203
  render: (args) => (
764
- <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">
765
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
766
- <div className="mb-4 text-center">
767
- <SpinnerSolidNeutralIcon
768
- {...args}
769
- className={`animate-spin ${args.className || ""}`}
770
- />
771
- </div>
772
- <div className="text-fm-tertiary text-center text-xs">
773
- {args.width}×{args.height}px
774
- </div>
775
- </div>
776
- </div>
204
+ <IconPlaygroundCanvas>
205
+ <SpinnerSolidNeutralIcon {...args} />
206
+ </IconPlaygroundCanvas>
777
207
  ),
778
208
  }