aural-ui 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -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
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
-
<
|
|
356
|
-
<SpinnerSolidNeutralIcon
|
|
357
|
-
|
|
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
|
-
|
|
362
|
-
<
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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:
|
|
495
|
-
height:
|
|
496
|
-
className: "",
|
|
117
|
+
width: 64,
|
|
118
|
+
height: 64,
|
|
497
119
|
withAccessibility: true,
|
|
498
120
|
},
|
|
499
|
-
parameters: storyParameters,
|
|
500
121
|
render: (args) => (
|
|
501
|
-
<
|
|
502
|
-
<SpinnerSolidNeutralIcon {...args}
|
|
503
|
-
</
|
|
122
|
+
<IconDefaultCanvas>
|
|
123
|
+
<SpinnerSolidNeutralIcon {...args} />
|
|
124
|
+
</IconDefaultCanvas>
|
|
504
125
|
),
|
|
505
126
|
}
|
|
506
127
|
|
|
507
128
|
export const SizeVariations: Story = {
|
|
508
|
-
|
|
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
|
|
548
|
-
|
|
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
|
|
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
|
-
<
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
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
|
-
<
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
Loading
|
|
650
|
-
</
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
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
|
-
<
|
|
670
|
-
|
|
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="
|
|
696
|
-
|
|
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
|
-
</
|
|
182
|
+
</IconUsageSection>
|
|
713
183
|
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
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
|
-
</
|
|
726
|
-
</
|
|
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:
|
|
742
|
-
height:
|
|
743
|
-
|
|
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
|
-
<
|
|
765
|
-
<
|
|
766
|
-
|
|
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
|
}
|