aural-ui 3.0.7 → 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.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- 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/button/index.tsx +7 -7
- 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 -620
- 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 +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- 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 -1221
- 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 +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- 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 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- 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 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- 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 +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- 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",
|
|
@@ -12,733 +26,183 @@ const meta: Meta<typeof SpinnerSolidNeutralIcon> = {
|
|
|
12
26
|
backgrounds: {
|
|
13
27
|
default: "dark",
|
|
14
28
|
values: [
|
|
15
|
-
{ name: "dark", value: "
|
|
16
|
-
{ name: "darker", value: "
|
|
17
|
-
{ name: "light", value: "
|
|
29
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
30
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
31
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
18
32
|
],
|
|
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: #0a0a0a !important;
|
|
45
|
-
}
|
|
46
|
-
#storybook-docs {
|
|
47
|
-
background: #0a0a0a !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: white !important;
|
|
55
|
-
}
|
|
56
|
-
.sbdocs-p, .sbdocs-li {
|
|
57
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
58
|
-
}
|
|
59
|
-
.sbdocs-code {
|
|
60
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
61
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
62
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
63
|
-
}
|
|
64
|
-
.sbdocs-pre {
|
|
65
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
66
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
67
|
-
}
|
|
68
|
-
.sbdocs-table {
|
|
69
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
70
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
71
|
-
}
|
|
72
|
-
.sbdocs-table th {
|
|
73
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
74
|
-
color: white !important;
|
|
75
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
76
|
-
}
|
|
77
|
-
.sbdocs-table td {
|
|
78
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
79
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !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="min-h-screen bg-gradient-to-br from-gray-900 via-neutral-900/20 to-gray-900">
|
|
106
|
-
{/* Header */}
|
|
107
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
108
|
-
<div className="absolute inset-0 bg-gradient-to-r from-neutral-500/10 via-transparent to-gray-500/10" />
|
|
109
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
110
|
-
<div className="!space-y-6 text-center">
|
|
111
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-neutral-500/30 bg-gradient-to-br from-neutral-500/20 to-gray-500/20">
|
|
112
|
-
<SpinnerSolidNeutralIcon className="h-12 w-12" />
|
|
113
|
-
</div>
|
|
114
|
-
<h1 className="!text-white">SpinnerSolidNeutralIcon</h1>
|
|
115
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white">
|
|
116
|
-
A neutral-themed spinner icon with gradient styling for
|
|
117
|
-
loading states, asynchronous actions, and content
|
|
118
|
-
transitions. Features a sophisticated conic gradient design
|
|
119
|
-
that works well in any interface.
|
|
120
|
-
</p>
|
|
121
|
-
|
|
122
|
-
{/* Stats */}
|
|
123
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
124
|
-
<div className="text-center">
|
|
125
|
-
<div className="text-3xl font-bold text-neutral-300">
|
|
126
|
-
Gradient
|
|
127
|
-
</div>
|
|
128
|
-
<div className="text-sm text-white/80">Conic Design</div>
|
|
129
|
-
</div>
|
|
130
|
-
<div className="h-8 w-px bg-white/20" />
|
|
131
|
-
<div className="text-center">
|
|
132
|
-
<div className="text-3xl font-bold text-gray-300">
|
|
133
|
-
Neutral
|
|
134
|
-
</div>
|
|
135
|
-
<div className="text-sm text-white/80">
|
|
136
|
-
Theme Agnostic
|
|
137
|
-
</div>
|
|
138
|
-
</div>
|
|
139
|
-
<div className="h-8 w-px bg-white/20" />
|
|
140
|
-
<div className="text-center">
|
|
141
|
-
<div className="text-3xl font-bold text-white">
|
|
142
|
-
Accessible
|
|
143
|
-
</div>
|
|
144
|
-
<div className="text-sm text-white/80">
|
|
145
|
-
Screen Reader Ready
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
</div>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
|
|
153
|
-
{/* Content */}
|
|
154
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
155
|
-
{/* Features */}
|
|
156
|
-
<div className="!space-y-8">
|
|
157
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
158
|
-
Key Features
|
|
159
|
-
</h3>
|
|
160
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
161
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
162
|
-
<div className="text-3xl">🌀</div>
|
|
163
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
164
|
-
Gradient Design
|
|
165
|
-
</h4>
|
|
166
|
-
<p className="text-sm !text-white/80">
|
|
167
|
-
Sophisticated conic gradient that creates smooth visual
|
|
168
|
-
motion
|
|
169
|
-
</p>
|
|
170
|
-
</div>
|
|
171
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
172
|
-
<div className="text-3xl">⚪</div>
|
|
173
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
174
|
-
Neutral Theme
|
|
175
|
-
</h4>
|
|
176
|
-
<p className="text-sm !text-white/80">
|
|
177
|
-
Works seamlessly with any color scheme or design system
|
|
178
|
-
</p>
|
|
179
|
-
</div>
|
|
180
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
181
|
-
<div className="text-3xl">♿</div>
|
|
182
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
183
|
-
Accessibility
|
|
184
|
-
</h4>
|
|
185
|
-
<p className="text-sm !text-white/80">
|
|
186
|
-
Built with Radix UI's AccessibleIcon for screen reader
|
|
187
|
-
support
|
|
188
|
-
</p>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
</div>
|
|
192
|
-
|
|
193
|
-
{/* API Reference */}
|
|
194
|
-
<div className="!space-y-8">
|
|
195
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
196
|
-
API Reference
|
|
197
|
-
</h3>
|
|
198
|
-
|
|
199
|
-
{/* Component Signature */}
|
|
200
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
201
|
-
<h4 className="mb-4 text-lg font-semibold !text-neutral-300">
|
|
202
|
-
Component Signature
|
|
203
|
-
</h4>
|
|
204
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
205
|
-
<pre className="text-sm !text-green-300">
|
|
206
|
-
{`import { SpinnerSolidNeutralIcon } from "@/ui/icons/spinner-solid-neutral-icon"
|
|
207
|
-
|
|
208
|
-
<SpinnerSolidNeutralIcon className="h-6 w-6 animate-spin" />`}
|
|
209
|
-
</pre>
|
|
210
|
-
</div>
|
|
211
|
-
</div>
|
|
212
|
-
|
|
213
|
-
{/* Props Table */}
|
|
214
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
215
|
-
<div className="bg-white/5 p-4">
|
|
216
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
217
|
-
</div>
|
|
218
|
-
<table className="!my-0 w-full">
|
|
219
|
-
<thead className="bg-white/5">
|
|
220
|
-
<tr className="border-b border-white/10">
|
|
221
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
222
|
-
Prop
|
|
223
|
-
</th>
|
|
224
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
225
|
-
Type
|
|
226
|
-
</th>
|
|
227
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
228
|
-
Default
|
|
229
|
-
</th>
|
|
230
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
231
|
-
Description
|
|
232
|
-
</th>
|
|
233
|
-
</tr>
|
|
234
|
-
</thead>
|
|
235
|
-
<tbody>
|
|
236
|
-
{" "}
|
|
237
|
-
<tr className="!bg-black/10">
|
|
238
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
239
|
-
withAccessibility
|
|
240
|
-
</td>
|
|
241
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
242
|
-
boolean
|
|
243
|
-
</td>
|
|
244
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
245
|
-
true
|
|
246
|
-
</td>
|
|
247
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
248
|
-
Whether to wrap the icon with accessibility feature
|
|
249
|
-
</td>
|
|
250
|
-
</tr>
|
|
251
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
252
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
253
|
-
height
|
|
254
|
-
</td>
|
|
255
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
256
|
-
number | string
|
|
257
|
-
</td>
|
|
258
|
-
<td className="px-6 py-4 text-sm !text-white/50">64</td>
|
|
259
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
260
|
-
Height of the icon in pixels
|
|
261
|
-
</td>
|
|
262
|
-
</tr>
|
|
263
|
-
<tr className="!bg-black/10">
|
|
264
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
265
|
-
className
|
|
266
|
-
</td>
|
|
267
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
268
|
-
string
|
|
269
|
-
</td>
|
|
270
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
271
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
272
|
-
CSS classes for styling
|
|
273
|
-
</td>
|
|
274
|
-
</tr>
|
|
275
|
-
</tbody>
|
|
276
|
-
</table>
|
|
277
|
-
</div>
|
|
278
|
-
|
|
279
|
-
{/* Accessibility */}
|
|
280
|
-
<div className="!space-y-8">
|
|
281
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
282
|
-
Accessibility Features
|
|
283
|
-
</h2>
|
|
284
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
285
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
286
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
287
|
-
✅ Built-in Features
|
|
288
|
-
</h3>
|
|
289
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
290
|
-
<li className="!text-white/70">
|
|
291
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
292
|
-
</li>
|
|
293
|
-
<li className="!text-white/70">
|
|
294
|
-
Provides screen reader label "Spinner Solid Neutral
|
|
295
|
-
Icon"
|
|
296
|
-
</li>
|
|
297
|
-
<li className="!text-white/70">
|
|
298
|
-
Supports keyboard navigation when interactive
|
|
299
|
-
</li>
|
|
300
|
-
<li className="!text-white/70">
|
|
301
|
-
Maintains proper color contrast ratios
|
|
302
|
-
</li>
|
|
303
|
-
<li className="!text-white/70">
|
|
304
|
-
Scales with user's font size preferences
|
|
305
|
-
</li>
|
|
306
|
-
</ul>
|
|
307
|
-
</div>
|
|
308
|
-
|
|
309
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
310
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
311
|
-
💡 Best Practices
|
|
312
|
-
</h3>
|
|
313
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
314
|
-
<li className="!text-white/70">
|
|
315
|
-
Always pair with descriptive loading text
|
|
316
|
-
</li>
|
|
317
|
-
<li className="!text-white/70">
|
|
318
|
-
Provide context about what's loading
|
|
319
|
-
</li>
|
|
320
|
-
<li className="!text-white/70">
|
|
321
|
-
Ensure sufficient color contrast on backgrounds
|
|
322
|
-
</li>
|
|
323
|
-
<li className="!text-white/70">
|
|
324
|
-
Respect reduced motion user preferences
|
|
325
|
-
</li>
|
|
326
|
-
<li className="!text-white/70">
|
|
327
|
-
Use appropriate size for the context
|
|
328
|
-
</li>
|
|
329
|
-
</ul>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
|
|
333
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
334
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
335
|
-
Custom Accessibility Label
|
|
336
|
-
</h3>
|
|
337
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
338
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
339
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
340
|
-
{`// Custom implementation with specific label
|
|
341
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
342
|
-
|
|
343
|
-
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() {
|
|
344
47
|
return (
|
|
345
|
-
<
|
|
346
|
-
<SpinnerSolidNeutralIcon
|
|
347
|
-
|
|
48
|
+
<button className="flex items-center gap-2">
|
|
49
|
+
<SpinnerSolidNeutralIcon className="h-5 w-5 animate-spin" />
|
|
50
|
+
Loading...
|
|
51
|
+
</button>
|
|
348
52
|
)
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
<
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
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
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-900/20">
|
|
385
|
-
<SpinnerSolidIcon className="h-8 w-8 animate-spin text-blue-400" />
|
|
386
|
-
</div>
|
|
387
|
-
<div>
|
|
388
|
-
<div className="font-medium text-white">
|
|
389
|
-
Spinner Solid
|
|
390
|
-
</div>
|
|
391
|
-
<div className="text-xs text-white/60">
|
|
392
|
-
Basic solid spinner
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
397
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
398
|
-
<span className="!text-2xl !text-white">✓</span>
|
|
399
|
-
</div>
|
|
400
|
-
<div>
|
|
401
|
-
<div className="font-medium text-white">CheckIcon</div>
|
|
402
|
-
<div className="text-xs text-white/60">
|
|
403
|
-
Success states
|
|
404
|
-
</div>
|
|
405
|
-
</div>
|
|
406
|
-
</div>
|
|
407
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
408
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
409
|
-
<span className="text-2xl">⚠️</span>
|
|
410
|
-
</div>
|
|
411
|
-
<div>
|
|
412
|
-
<div className="font-medium text-white">AlertIcon</div>
|
|
413
|
-
<div className="text-xs text-white/60">
|
|
414
|
-
Warning states
|
|
415
|
-
</div>
|
|
416
|
-
</div>
|
|
417
|
-
</div>
|
|
418
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
419
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
|
|
420
|
-
<span className="!text-2xl !text-white">✕</span>
|
|
421
|
-
</div>
|
|
422
|
-
<div>
|
|
423
|
-
<div className="font-medium text-white">ErrorIcon</div>
|
|
424
|
-
<div className="text-xs text-white/60">
|
|
425
|
-
Error states
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
</div>
|
|
429
|
-
</div>
|
|
430
|
-
</div>
|
|
431
|
-
|
|
432
|
-
{/* Footer */}
|
|
433
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
434
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
435
|
-
<div className="!space-y-4 text-center">
|
|
436
|
-
<p className="!text-white/60">
|
|
437
|
-
SpinnerSolidNeutralIcon is part of the Aural UI icon
|
|
438
|
-
library, optimized for accessibility and neutral
|
|
439
|
-
theming.
|
|
440
|
-
</p>
|
|
441
|
-
<p className="text-sm !text-white/40">
|
|
442
|
-
All icons use Radix UI's AccessibleIcon for screen
|
|
443
|
-
reader compatibility and follow WCAG guidelines.
|
|
444
|
-
</p>
|
|
445
|
-
</div>
|
|
446
|
-
</div>
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
</div>
|
|
451
|
-
</>
|
|
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
|
+
/>
|
|
452
88
|
),
|
|
453
89
|
},
|
|
454
90
|
},
|
|
455
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
|
+
},
|
|
456
110
|
}
|
|
457
111
|
|
|
458
112
|
export default meta
|
|
459
113
|
type Story = StoryObj<typeof SpinnerSolidNeutralIcon>
|
|
460
114
|
|
|
461
|
-
// Story parameters for consistent dark theme
|
|
462
|
-
const storyParameters = {
|
|
463
|
-
backgrounds: {
|
|
464
|
-
default: "dark",
|
|
465
|
-
values: [
|
|
466
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
467
|
-
{ name: "darker", value: "#000000" },
|
|
468
|
-
],
|
|
469
|
-
},
|
|
470
|
-
}
|
|
471
|
-
|
|
472
115
|
export const Default: Story = {
|
|
473
116
|
args: {
|
|
474
|
-
width:
|
|
475
|
-
height:
|
|
476
|
-
className: "",
|
|
117
|
+
width: 64,
|
|
118
|
+
height: 64,
|
|
477
119
|
withAccessibility: true,
|
|
478
120
|
},
|
|
479
|
-
parameters: storyParameters,
|
|
480
121
|
render: (args) => (
|
|
481
|
-
<
|
|
482
|
-
<SpinnerSolidNeutralIcon {...args}
|
|
483
|
-
</
|
|
122
|
+
<IconDefaultCanvas>
|
|
123
|
+
<SpinnerSolidNeutralIcon {...args} />
|
|
124
|
+
</IconDefaultCanvas>
|
|
484
125
|
),
|
|
485
126
|
}
|
|
486
127
|
|
|
487
128
|
export const SizeVariations: Story = {
|
|
488
|
-
|
|
489
|
-
...storyParameters,
|
|
490
|
-
docs: {
|
|
491
|
-
description: {
|
|
492
|
-
story:
|
|
493
|
-
"SpinnerSolidNeutralIcon in different sizes, from small UI elements to large loading states.",
|
|
494
|
-
},
|
|
495
|
-
},
|
|
496
|
-
},
|
|
497
|
-
render: () => (
|
|
498
|
-
<div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
499
|
-
<div className="text-center">
|
|
500
|
-
<SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-4 w-4 animate-spin" />
|
|
501
|
-
<span className="text-xs text-white/60">16px</span>
|
|
502
|
-
</div>
|
|
503
|
-
<div className="text-center">
|
|
504
|
-
<SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-6 w-6 animate-spin" />
|
|
505
|
-
<span className="text-xs text-white/60">24px</span>
|
|
506
|
-
</div>
|
|
507
|
-
<div className="text-center">
|
|
508
|
-
<SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-8 w-8 animate-spin" />
|
|
509
|
-
<span className="text-xs text-white/60">32px</span>
|
|
510
|
-
</div>
|
|
511
|
-
<div className="text-center">
|
|
512
|
-
<SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-12 w-12 animate-spin" />
|
|
513
|
-
<span className="text-xs text-white/60">48px</span>
|
|
514
|
-
</div>
|
|
515
|
-
<div className="text-center">
|
|
516
|
-
<SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-16 w-16 animate-spin" />
|
|
517
|
-
<span className="text-xs text-white/60">64px</span>
|
|
518
|
-
</div>
|
|
519
|
-
<div className="text-center">
|
|
520
|
-
<SpinnerSolidNeutralIcon className="!mx-auto mb-2 h-20 w-20 animate-spin" />
|
|
521
|
-
<span className="text-xs text-white/60">80px</span>
|
|
522
|
-
</div>
|
|
523
|
-
</div>
|
|
524
|
-
),
|
|
129
|
+
render: () => <IconSizeVariations icon={SpinnerSolidNeutralIcon} />,
|
|
525
130
|
}
|
|
526
131
|
|
|
527
|
-
export const
|
|
528
|
-
|
|
529
|
-
...storyParameters,
|
|
530
|
-
docs: {
|
|
531
|
-
description: {
|
|
532
|
-
story:
|
|
533
|
-
"Different animation styles for SpinnerSolidNeutralIcon to match various loading contexts.",
|
|
534
|
-
},
|
|
535
|
-
},
|
|
536
|
-
},
|
|
537
|
-
render: () => (
|
|
538
|
-
<div className="grid min-h-dvh grid-cols-1 items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-3">
|
|
539
|
-
<div className="text-center">
|
|
540
|
-
<div className="!mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
541
|
-
<SpinnerSolidNeutralIcon className="h-12 w-12 animate-spin" />
|
|
542
|
-
</div>
|
|
543
|
-
<div className="text-sm font-medium text-white">Standard Spin</div>
|
|
544
|
-
<div className="text-xs text-white/60">animate-spin</div>
|
|
545
|
-
</div>
|
|
546
|
-
<div className="text-center">
|
|
547
|
-
<div className="!mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
548
|
-
<SpinnerSolidNeutralIcon className="animate-neutral-pulse h-12 w-12" />
|
|
549
|
-
</div>
|
|
550
|
-
<div className="text-sm font-medium text-white">Pulse</div>
|
|
551
|
-
<div className="text-xs text-white/60">animate-neutral-pulse</div>
|
|
552
|
-
</div>
|
|
553
|
-
<div className="text-center">
|
|
554
|
-
<div className="!mx-auto mb-4 flex h-20 w-20 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
555
|
-
<SpinnerSolidNeutralIcon className="animate-neutral-glow h-12 w-12" />
|
|
556
|
-
</div>
|
|
557
|
-
<div className="text-sm font-medium text-white">Glow</div>
|
|
558
|
-
<div className="text-xs text-white/60">animate-neutral-glow</div>
|
|
559
|
-
</div>
|
|
560
|
-
</div>
|
|
561
|
-
),
|
|
132
|
+
export const ColorVariations: Story = {
|
|
133
|
+
render: () => <IconColorVariations icon={SpinnerSolidNeutralIcon} />,
|
|
562
134
|
}
|
|
563
135
|
|
|
564
|
-
export const
|
|
565
|
-
parameters: {
|
|
566
|
-
...storyParameters,
|
|
567
|
-
docs: {
|
|
568
|
-
description: {
|
|
569
|
-
story:
|
|
570
|
-
"SpinnerSolidNeutralIcon on different background colors to demonstrate its neutral design adaptability.",
|
|
571
|
-
},
|
|
572
|
-
},
|
|
573
|
-
},
|
|
136
|
+
export const AnimatedStates: Story = {
|
|
574
137
|
render: () => (
|
|
575
|
-
<
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
<div className="text-sm font-medium text-white">Medium Gray</div>
|
|
595
|
-
<div className="text-xs text-white/60">bg-gray-600</div>
|
|
596
|
-
</div>
|
|
597
|
-
<div className="text-center">
|
|
598
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-400">
|
|
599
|
-
<SpinnerSolidNeutralIcon className="h-10 w-10 animate-spin" />
|
|
600
|
-
</div>
|
|
601
|
-
<div className="text-sm font-medium text-white">Light Gray</div>
|
|
602
|
-
<div className="text-xs text-white/60">bg-gray-400</div>
|
|
603
|
-
</div>
|
|
604
|
-
</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
|
+
/>
|
|
605
157
|
),
|
|
606
158
|
}
|
|
607
159
|
|
|
608
160
|
export const UsageExamples: Story = {
|
|
609
|
-
parameters: {
|
|
610
|
-
...storyParameters,
|
|
611
|
-
docs: {
|
|
612
|
-
description: {
|
|
613
|
-
story:
|
|
614
|
-
"Real-world usage examples showing SpinnerSolidNeutralIcon in different UI contexts.",
|
|
615
|
-
},
|
|
616
|
-
},
|
|
617
|
-
},
|
|
618
161
|
render: () => (
|
|
619
|
-
<
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
</button>
|
|
631
|
-
</div>
|
|
632
|
-
</div>
|
|
633
|
-
|
|
634
|
-
{/* Loading State */}
|
|
635
|
-
<div className="!space-y-2">
|
|
636
|
-
<h3 className="text-sm font-medium text-white">Loading State</h3>
|
|
637
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
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" />
|
|
638
173
|
<div className="text-center">
|
|
639
|
-
<
|
|
640
|
-
|
|
641
|
-
</div>
|
|
642
|
-
</div>
|
|
643
|
-
</div>
|
|
644
|
-
|
|
645
|
-
{/* Card Loading */}
|
|
646
|
-
<div className="!space-y-2">
|
|
647
|
-
<h3 className="text-sm font-medium text-white">Card Loading</h3>
|
|
648
|
-
<div className="grid gap-4 md:grid-cols-3">
|
|
649
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
650
|
-
<div className="mb-4 flex items-center justify-center">
|
|
651
|
-
<SpinnerSolidNeutralIcon className="h-8 w-8 animate-spin" />
|
|
652
|
-
</div>
|
|
653
|
-
<div className="space-y-2">
|
|
654
|
-
<div className="h-4 rounded bg-white/10"></div>
|
|
655
|
-
<div className="h-4 rounded bg-white/10"></div>
|
|
656
|
-
<div className="h-4 w-3/4 rounded bg-white/10"></div>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
660
|
-
<div className="mb-4 flex items-center justify-center">
|
|
661
|
-
<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
|
|
662
176
|
</div>
|
|
663
|
-
<div className="
|
|
664
|
-
|
|
665
|
-
<div className="h-4 rounded bg-white/10"></div>
|
|
666
|
-
<div className="h-4 w-2/3 rounded bg-white/10"></div>
|
|
667
|
-
</div>
|
|
668
|
-
</div>
|
|
669
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
670
|
-
<div className="mb-4 flex items-center justify-center">
|
|
671
|
-
<SpinnerSolidNeutralIcon className="h-8 w-8 animate-spin" />
|
|
672
|
-
</div>
|
|
673
|
-
<div className="space-y-2">
|
|
674
|
-
<div className="h-4 rounded bg-white/10"></div>
|
|
675
|
-
<div className="h-4 rounded bg-white/10"></div>
|
|
676
|
-
<div className="h-4 w-4/5 rounded bg-white/10"></div>
|
|
177
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
178
|
+
Please wait a moment
|
|
677
179
|
</div>
|
|
678
180
|
</div>
|
|
679
181
|
</div>
|
|
680
|
-
</
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
<span>Saving changes...</span>
|
|
689
|
-
</div>
|
|
182
|
+
</IconUsageSection>
|
|
183
|
+
|
|
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" />
|
|
690
190
|
</div>
|
|
691
|
-
</
|
|
692
|
-
</
|
|
191
|
+
</IconUsageSection>
|
|
192
|
+
</IconUsageCanvas>
|
|
693
193
|
),
|
|
694
194
|
}
|
|
695
195
|
|
|
696
196
|
export const Playground: Story = {
|
|
697
|
-
parameters: {
|
|
698
|
-
...storyParameters,
|
|
699
|
-
docs: {
|
|
700
|
-
description: {
|
|
701
|
-
story:
|
|
702
|
-
"Interactive playground to experiment with different SpinnerSolidNeutralIcon configurations.",
|
|
703
|
-
},
|
|
704
|
-
},
|
|
705
|
-
},
|
|
706
197
|
args: {
|
|
707
|
-
width:
|
|
708
|
-
height:
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
argTypes: {
|
|
712
|
-
width: {
|
|
713
|
-
control: { type: "range", min: 16, max: 128, step: 4 },
|
|
714
|
-
description: "Width of the icon in pixels",
|
|
715
|
-
},
|
|
716
|
-
withAccessibility: {
|
|
717
|
-
control: "boolean",
|
|
718
|
-
description: "Whether to wrap the icon with accessibility features",
|
|
719
|
-
},
|
|
720
|
-
height: {
|
|
721
|
-
control: { type: "range", min: 16, max: 128, step: 4 },
|
|
722
|
-
description: "Height of the icon in pixels",
|
|
723
|
-
},
|
|
724
|
-
className: {
|
|
725
|
-
control: "text",
|
|
726
|
-
description: "Additional CSS classes for styling",
|
|
727
|
-
},
|
|
198
|
+
width: 64,
|
|
199
|
+
height: 64,
|
|
200
|
+
withAccessibility: true,
|
|
201
|
+
className: "animate-spin",
|
|
728
202
|
},
|
|
729
203
|
render: (args) => (
|
|
730
|
-
<
|
|
731
|
-
<
|
|
732
|
-
|
|
733
|
-
<SpinnerSolidNeutralIcon
|
|
734
|
-
{...args}
|
|
735
|
-
className={`animate-spin ${args.className || ""}`}
|
|
736
|
-
/>
|
|
737
|
-
</div>
|
|
738
|
-
<div className="text-center text-xs text-white/60">
|
|
739
|
-
{args.width}×{args.height}px
|
|
740
|
-
</div>
|
|
741
|
-
</div>
|
|
742
|
-
</div>
|
|
204
|
+
<IconPlaygroundCanvas>
|
|
205
|
+
<SpinnerSolidNeutralIcon {...args} />
|
|
206
|
+
</IconPlaygroundCanvas>
|
|
743
207
|
),
|
|
744
208
|
}
|