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,464 +1,101 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { HeadIcon } from "src/ui/icons/head-icon"
|
|
5
|
+
import { ImageIcon } from "src/ui/icons/image-icon"
|
|
6
|
+
import { SparklesSoftIcon } from "src/ui/icons/sparkles-soft-icon"
|
|
7
|
+
import { SuggestionIcon } from "src/ui/icons/suggestion-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { ImageAvatarSparkleIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof ImageAvatarSparkleIcon> = {
|
|
7
21
|
title: "Icons/ImageAvatarSparkleIcon",
|
|
8
22
|
component: ImageAvatarSparkleIcon,
|
|
9
23
|
parameters: {
|
|
10
|
-
layout: "
|
|
24
|
+
layout: "fullscreen",
|
|
11
25
|
backgrounds: {
|
|
12
26
|
default: "dark",
|
|
13
27
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
28
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
29
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
30
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
31
|
],
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
|
-
description: {
|
|
21
|
-
component:
|
|
22
|
-
"An image avatar icon with sparkle elements representing user profiles with enhanced visual appeal.",
|
|
23
|
-
},
|
|
24
|
-
canvas: {
|
|
25
|
-
sourceState: "shown",
|
|
26
|
-
},
|
|
27
34
|
page: () => (
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
padding: 0 !important;
|
|
40
|
-
margin: 0 !important;
|
|
41
|
-
background: transparent !important;
|
|
42
|
-
}
|
|
43
|
-
.docs-story {
|
|
44
|
-
background: transparent !important;
|
|
45
|
-
}
|
|
46
|
-
.sbdocs {
|
|
47
|
-
background: transparent !important;
|
|
48
|
-
}
|
|
49
|
-
body {
|
|
50
|
-
background: #0a0a0a !important;
|
|
51
|
-
}
|
|
52
|
-
#storybook-docs {
|
|
53
|
-
background: #0a0a0a !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-preview {
|
|
56
|
-
background: transparent !important;
|
|
57
|
-
border: none !important;
|
|
58
|
-
}
|
|
59
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
60
|
-
color: white !important;
|
|
61
|
-
}
|
|
62
|
-
.sbdocs-p, .sbdocs-li {
|
|
63
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
64
|
-
}
|
|
65
|
-
.sbdocs-code {
|
|
66
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
67
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
68
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
69
|
-
}
|
|
70
|
-
.sbdocs-pre {
|
|
71
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
72
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
73
|
-
}
|
|
74
|
-
.sbdocs-table {
|
|
75
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
76
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
77
|
-
}
|
|
78
|
-
.sbdocs-table th {
|
|
79
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
80
|
-
color: white !important;
|
|
81
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
82
|
-
}
|
|
83
|
-
.sbdocs-table td {
|
|
84
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
85
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
86
|
-
}
|
|
87
|
-
`}
|
|
88
|
-
</style>
|
|
89
|
-
|
|
90
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-indigo-900/20 to-gray-900">
|
|
91
|
-
{/* Header */}
|
|
92
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
93
|
-
<div className="absolute inset-0 bg-gradient-to-r from-indigo-500/10 via-transparent to-cyan-500/10" />
|
|
94
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
95
|
-
<div className="!space-y-6 text-center">
|
|
96
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-indigo-500/30 bg-gradient-to-br from-indigo-500/20 to-cyan-500/20">
|
|
97
|
-
<ImageAvatarSparkleIcon className="h-12 w-12 text-indigo-400" />
|
|
98
|
-
</div>
|
|
99
|
-
<h1 className="text-5xl font-bold !text-white">
|
|
100
|
-
ImageAvatarSparkleIcon
|
|
101
|
-
</h1>
|
|
102
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
103
|
-
An image avatar icon with sparkle elements representing user
|
|
104
|
-
profiles with enhanced visual appeal. Perfect for user
|
|
105
|
-
interfaces, profile displays, and avatar representations.
|
|
106
|
-
</p>
|
|
107
|
-
|
|
108
|
-
{/* Stats */}
|
|
109
|
-
<div className="mx-auto flex items-center justify-center gap-8">
|
|
110
|
-
<div className="text-center">
|
|
111
|
-
<div className="text-3xl font-bold text-indigo-300">
|
|
112
|
-
Avatar
|
|
113
|
-
</div>
|
|
114
|
-
<div className="text-sm text-white/80">User profile</div>
|
|
115
|
-
</div>
|
|
116
|
-
<div className="h-8 w-px bg-white/20" />
|
|
117
|
-
<div className="text-center">
|
|
118
|
-
<div className="text-3xl font-bold text-cyan-300">
|
|
119
|
-
Sparkle
|
|
120
|
-
</div>
|
|
121
|
-
<div className="text-sm text-white/80">
|
|
122
|
-
Enhanced visual
|
|
123
|
-
</div>
|
|
124
|
-
</div>
|
|
125
|
-
<div className="h-8 w-px bg-white/20" />
|
|
126
|
-
<div className="text-center">
|
|
127
|
-
<div className="text-3xl font-bold text-blue-300">
|
|
128
|
-
Accessible
|
|
129
|
-
</div>
|
|
130
|
-
<div className="text-sm text-white/80">
|
|
131
|
-
Screen reader support
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
</div>
|
|
136
|
-
</div>
|
|
137
|
-
</div>
|
|
138
|
-
|
|
139
|
-
{/* Content */}
|
|
140
|
-
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
141
|
-
{/* Features */}
|
|
142
|
-
<div className="!space-y-8">
|
|
143
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
144
|
-
Key Features
|
|
145
|
-
</h3>
|
|
146
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
147
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
148
|
-
<div className="text-3xl">👤</div>
|
|
149
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
150
|
-
Avatar Icon
|
|
151
|
-
</h4>
|
|
152
|
-
<p className="text-sm !text-white/80">
|
|
153
|
-
Clear representation of user profiles
|
|
154
|
-
</p>
|
|
155
|
-
</div>
|
|
156
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
157
|
-
<div className="text-3xl">✨</div>
|
|
158
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
159
|
-
Sparkle Effect
|
|
160
|
-
</h4>
|
|
161
|
-
<p className="text-sm !text-white/80">
|
|
162
|
-
Enhanced visual appeal with sparkles
|
|
163
|
-
</p>
|
|
164
|
-
</div>
|
|
165
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
166
|
-
<div className="text-3xl">♿</div>
|
|
167
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
168
|
-
Accessibility
|
|
169
|
-
</h4>
|
|
170
|
-
<p className="text-sm !text-white/80">
|
|
171
|
-
Built with screen reader support
|
|
172
|
-
</p>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
{/* API Reference */}
|
|
178
|
-
<div className="!space-y-8">
|
|
179
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
180
|
-
API Reference
|
|
181
|
-
</h3>
|
|
182
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
183
|
-
<div className="bg-white/5 p-4">
|
|
184
|
-
<h4 className="text-lg font-semibold !text-white">Props</h4>
|
|
185
|
-
</div>
|
|
186
|
-
<table className="!my-0 w-full">
|
|
187
|
-
<thead className="bg-white/5">
|
|
188
|
-
<tr className="border-b border-white/10">
|
|
189
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
190
|
-
Prop
|
|
191
|
-
</th>
|
|
192
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
193
|
-
Type
|
|
194
|
-
</th>
|
|
195
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
196
|
-
Default
|
|
197
|
-
</th>
|
|
198
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
199
|
-
Description
|
|
200
|
-
</th>
|
|
201
|
-
</tr>
|
|
202
|
-
</thead>
|
|
203
|
-
<tbody>
|
|
204
|
-
{" "}
|
|
205
|
-
<tr className="!bg-black/10">
|
|
206
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
207
|
-
withAccessibility
|
|
208
|
-
</td>
|
|
209
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
210
|
-
boolean
|
|
211
|
-
</td>
|
|
212
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
213
|
-
true
|
|
214
|
-
</td>
|
|
215
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
216
|
-
Whether to wrap the icon with accessibility feature
|
|
217
|
-
</td>
|
|
218
|
-
</tr>
|
|
219
|
-
</tbody>
|
|
220
|
-
</table>
|
|
221
|
-
</div>
|
|
222
|
-
</div>
|
|
223
|
-
|
|
224
|
-
{/* Usage Examples */}
|
|
225
|
-
<div className="!space-y-8">
|
|
226
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
227
|
-
Usage Examples
|
|
228
|
-
</h3>
|
|
229
|
-
|
|
230
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
231
|
-
<div className="space-y-4">
|
|
232
|
-
<h4 className="text-lg font-semibold !text-indigo-300">
|
|
233
|
-
Basic Usage
|
|
234
|
-
</h4>
|
|
235
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
236
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
237
|
-
{`import { ImageAvatarSparkleIcon } from "@/components/ui/icons/image-avatar-sparkle-icon"
|
|
238
|
-
|
|
239
|
-
function UserProfile() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="positive"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "AI Avatar", description: "AI-generated avatar sparkle" },
|
|
39
|
+
{ title: "Profile", description: "Enhanced profile photo cue" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { ImageAvatarSparkleIcon } from "src/ui/icons/image-avatar-sparkle-icon"
|
|
44
|
+
|
|
45
|
+
function AIAvatarBadge() {
|
|
240
46
|
return (
|
|
241
|
-
<div className="
|
|
242
|
-
<
|
|
243
|
-
<
|
|
47
|
+
<div className="relative h-12 w-12">
|
|
48
|
+
<div className="h-12 w-12 rounded-full bg-fm-divider-secondary" />
|
|
49
|
+
<ImageAvatarSparkleIcon className="absolute -bottom-1 -right-1 h-5 w-5 text-fm-icon-positive" />
|
|
244
50
|
</div>
|
|
245
51
|
)
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
<div className="space-y-4">
|
|
252
|
-
<h4 className="text-lg font-semibold !text-indigo-300">
|
|
253
|
-
Live Preview
|
|
254
|
-
</h4>
|
|
255
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
256
|
-
<div className="flex items-center gap-2 rounded-lg border border-indigo-500/20 bg-indigo-500/10 px-4 py-2 text-white">
|
|
257
|
-
<ImageAvatarSparkleIcon className="h-6 w-6 text-indigo-400" />
|
|
258
|
-
<span>User Profile</span>
|
|
259
|
-
</div>
|
|
260
|
-
</div>
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<div className="relative h-12 w-12">
|
|
55
|
+
<div className="bg-fm-divider-secondary h-12 w-12 rounded-full" />
|
|
56
|
+
<ImageAvatarSparkleIcon className="text-fm-icon-positive absolute -right-1 -bottom-1 h-5 w-5" />
|
|
263
57
|
</div>
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
</div>
|
|
294
|
-
<div className="text-center">
|
|
295
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
296
|
-
<span className="text-xs text-white/60">32px</span>
|
|
297
|
-
</div>
|
|
298
|
-
<div className="text-center">
|
|
299
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
300
|
-
<span className="text-xs text-white/60">48px</span>
|
|
301
|
-
</div>
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
|
|
305
|
-
<div className="!space-y-4">
|
|
306
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
307
|
-
Code Example
|
|
308
|
-
</h3>
|
|
309
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
310
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
311
|
-
{`// Small (16px)
|
|
312
|
-
<ImageAvatarSparkleIcon className="h-4 w-4 text-indigo-400" />
|
|
313
|
-
|
|
314
|
-
// Medium (24px)
|
|
315
|
-
<ImageAvatarSparkleIcon className="h-6 w-6 text-indigo-400" />
|
|
316
|
-
|
|
317
|
-
// Large (32px)
|
|
318
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-indigo-400" />
|
|
319
|
-
|
|
320
|
-
// Custom size with color
|
|
321
|
-
<ImageAvatarSparkleIcon
|
|
322
|
-
width={40}
|
|
323
|
-
height={40}
|
|
324
|
-
className="text-indigo-400"
|
|
325
|
-
/>`}
|
|
326
|
-
</pre>
|
|
327
|
-
</div>
|
|
328
|
-
</div>
|
|
329
|
-
</div>
|
|
330
|
-
</div>
|
|
331
|
-
</div>
|
|
332
|
-
</div>
|
|
333
|
-
|
|
334
|
-
{/* Common Use Cases */}
|
|
335
|
-
<div className="!space-y-8">
|
|
336
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
337
|
-
Common Use Cases
|
|
338
|
-
</h3>
|
|
339
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
340
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
341
|
-
<div className="text-2xl">👤</div>
|
|
342
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
343
|
-
User Profiles
|
|
344
|
-
</h4>
|
|
345
|
-
<p className="text-sm !text-white/80">
|
|
346
|
-
Profile displays and user interfaces
|
|
347
|
-
</p>
|
|
348
|
-
</div>
|
|
349
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
350
|
-
<div className="text-2xl">✨</div>
|
|
351
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
352
|
-
Premium Users
|
|
353
|
-
</h4>
|
|
354
|
-
<p className="text-sm !text-white/80">
|
|
355
|
-
Highlighting premium or special users
|
|
356
|
-
</p>
|
|
357
|
-
</div>
|
|
358
|
-
<div className="space-y-3 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
359
|
-
<div className="text-2xl">🎨</div>
|
|
360
|
-
<h4 className="text-lg font-semibold !text-white">
|
|
361
|
-
Avatar Selection
|
|
362
|
-
</h4>
|
|
363
|
-
<p className="text-sm !text-white/80">
|
|
364
|
-
Avatar picker interfaces
|
|
365
|
-
</p>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
|
-
</div>
|
|
369
|
-
|
|
370
|
-
{/* Best Practices */}
|
|
371
|
-
<div className="!space-y-8">
|
|
372
|
-
<h3 className="text-center text-2xl font-bold !text-white">
|
|
373
|
-
Best Practices
|
|
374
|
-
</h3>
|
|
375
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
376
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
377
|
-
<h4 className="text-lg font-semibold !text-emerald-300">
|
|
378
|
-
✅ Do
|
|
379
|
-
</h4>
|
|
380
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
381
|
-
<li className="!text-white/80">
|
|
382
|
-
Use appropriate sizes for different contexts
|
|
383
|
-
</li>
|
|
384
|
-
<li className="!text-white/80">
|
|
385
|
-
Choose colors that match your UI theme
|
|
386
|
-
</li>
|
|
387
|
-
<li className="!text-white/80">
|
|
388
|
-
Provide clear labels for icon buttons
|
|
389
|
-
</li>
|
|
390
|
-
<li className="!text-white/80">
|
|
391
|
-
Use consistent styling across your app
|
|
392
|
-
</li>
|
|
393
|
-
<li className="!text-white/80">
|
|
394
|
-
Consider accessibility in all implementations
|
|
395
|
-
</li>
|
|
396
|
-
</ul>
|
|
397
|
-
</div>
|
|
398
|
-
<div className="space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
399
|
-
<h4 className="text-lg font-semibold !text-red-300">
|
|
400
|
-
❌ Don't
|
|
401
|
-
</h4>
|
|
402
|
-
<ul className="space-y-2 text-sm !text-white/80">
|
|
403
|
-
<li className="!text-white/80">
|
|
404
|
-
Use multiple icon styles in the same view
|
|
405
|
-
</li>
|
|
406
|
-
<li className="!text-white/80">
|
|
407
|
-
Overuse the icon in navigation
|
|
408
|
-
</li>
|
|
409
|
-
<li className="!text-white/80">
|
|
410
|
-
Use inappropriate sizes for the context
|
|
411
|
-
</li>
|
|
412
|
-
<li className="!text-white/80">
|
|
413
|
-
Forget to add hover states
|
|
414
|
-
</li>
|
|
415
|
-
<li className="!text-white/80">
|
|
416
|
-
Ignore accessibility requirements
|
|
417
|
-
</li>
|
|
418
|
-
</ul>
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
|
|
424
|
-
{/* Footer */}
|
|
425
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
426
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
427
|
-
<div className="!space-y-4 text-center">
|
|
428
|
-
<p className="!text-white/60">
|
|
429
|
-
ImageAvatarSparkleIcon is part of the Aural UI icon library,
|
|
430
|
-
designed for user profiles and avatar interfaces.
|
|
431
|
-
</p>
|
|
432
|
-
<p className="text-sm !text-white/40">
|
|
433
|
-
Perfect for user management, profile displays, avatar
|
|
434
|
-
selection, and any interface requiring enhanced avatar
|
|
435
|
-
representation.
|
|
436
|
-
</p>
|
|
437
|
-
</div>
|
|
438
|
-
</div>
|
|
439
|
-
</div>
|
|
440
|
-
</div>
|
|
441
|
-
</>
|
|
58
|
+
),
|
|
59
|
+
}}
|
|
60
|
+
relatedIcons={[
|
|
61
|
+
{
|
|
62
|
+
name: "HeadIcon",
|
|
63
|
+
description: "Character / avatar head icon",
|
|
64
|
+
icon: HeadIcon,
|
|
65
|
+
accentToken: "info",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "ImageIcon",
|
|
69
|
+
description: "Image placeholder icon",
|
|
70
|
+
icon: ImageIcon,
|
|
71
|
+
accentToken: "positive",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: "SparklesSoftIcon",
|
|
75
|
+
description: "Soft sparkle / AI glow icon",
|
|
76
|
+
icon: SparklesSoftIcon,
|
|
77
|
+
accentToken: "warning",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "SuggestionIcon",
|
|
81
|
+
description: "Suggestion / idea icon",
|
|
82
|
+
icon: SuggestionIcon,
|
|
83
|
+
accentToken: "negative",
|
|
84
|
+
},
|
|
85
|
+
]}
|
|
86
|
+
/>
|
|
442
87
|
),
|
|
443
88
|
},
|
|
444
89
|
},
|
|
445
90
|
tags: ["autodocs"],
|
|
446
91
|
argTypes: {
|
|
447
|
-
|
|
448
|
-
control:
|
|
449
|
-
description: "
|
|
92
|
+
className: {
|
|
93
|
+
control: "text",
|
|
94
|
+
description: "CSS classes including color token",
|
|
450
95
|
},
|
|
451
96
|
withAccessibility: {
|
|
452
97
|
control: "boolean",
|
|
453
|
-
description: "
|
|
454
|
-
},
|
|
455
|
-
height: {
|
|
456
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
457
|
-
description: "Height of the icon in pixels",
|
|
458
|
-
},
|
|
459
|
-
className: {
|
|
460
|
-
control: "text",
|
|
461
|
-
description: "CSS classes for styling",
|
|
98
|
+
description: "Wrap with accessibility label",
|
|
462
99
|
},
|
|
463
100
|
},
|
|
464
101
|
}
|
|
@@ -466,284 +103,83 @@ function UserProfile() {
|
|
|
466
103
|
export default meta
|
|
467
104
|
type Story = StoryObj<typeof ImageAvatarSparkleIcon>
|
|
468
105
|
|
|
469
|
-
// Story parameters for consistent dark theme
|
|
470
|
-
const storyParameters = {
|
|
471
|
-
backgrounds: {
|
|
472
|
-
default: "dark",
|
|
473
|
-
values: [
|
|
474
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
475
|
-
{ name: "darker", value: "#000000" },
|
|
476
|
-
],
|
|
477
|
-
},
|
|
478
|
-
}
|
|
479
|
-
|
|
480
106
|
export const Default: Story = {
|
|
481
107
|
args: {
|
|
482
|
-
|
|
483
|
-
height: 24,
|
|
484
|
-
className: "text-indigo-400",
|
|
108
|
+
className: "h-6 w-6 text-fm-icon-positive",
|
|
485
109
|
withAccessibility: true,
|
|
486
110
|
},
|
|
487
|
-
parameters: storyParameters,
|
|
488
111
|
render: (args) => (
|
|
489
|
-
<
|
|
112
|
+
<IconDefaultCanvas>
|
|
490
113
|
<ImageAvatarSparkleIcon {...args} />
|
|
491
|
-
</
|
|
114
|
+
</IconDefaultCanvas>
|
|
492
115
|
),
|
|
493
116
|
}
|
|
494
117
|
|
|
495
118
|
export const SizeVariations: Story = {
|
|
496
|
-
|
|
497
|
-
...storyParameters,
|
|
498
|
-
docs: {
|
|
499
|
-
description: {
|
|
500
|
-
story:
|
|
501
|
-
"ImageAvatarSparkleIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
502
|
-
},
|
|
503
|
-
},
|
|
504
|
-
},
|
|
505
|
-
render: () => (
|
|
506
|
-
<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">
|
|
507
|
-
<div className="text-center">
|
|
508
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
509
|
-
<span className="text-xs text-white/60">12px</span>
|
|
510
|
-
</div>
|
|
511
|
-
<div className="text-center">
|
|
512
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
513
|
-
<span className="text-xs text-white/60">16px</span>
|
|
514
|
-
</div>
|
|
515
|
-
<div className="text-center">
|
|
516
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
517
|
-
<span className="text-xs text-white/60">20px</span>
|
|
518
|
-
</div>
|
|
519
|
-
<div className="text-center">
|
|
520
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
521
|
-
<span className="text-xs text-white/60">24px</span>
|
|
522
|
-
</div>
|
|
523
|
-
<div className="text-center">
|
|
524
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
525
|
-
<span className="text-xs text-white/60">32px</span>
|
|
526
|
-
</div>
|
|
527
|
-
<div className="text-center">
|
|
528
|
-
<ImageAvatarSparkleIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
529
|
-
<span className="text-xs text-white/60">48px</span>
|
|
530
|
-
</div>
|
|
531
|
-
</div>
|
|
532
|
-
),
|
|
119
|
+
render: () => <IconSizeVariations icon={ImageAvatarSparkleIcon} />,
|
|
533
120
|
}
|
|
534
121
|
|
|
535
122
|
export const ColorVariations: Story = {
|
|
536
|
-
|
|
537
|
-
...storyParameters,
|
|
538
|
-
docs: {
|
|
539
|
-
description: {
|
|
540
|
-
story:
|
|
541
|
-
"ImageAvatarSparkleIcon with different color variations using Tailwind classes. Colors are applied via the fill property using currentColor.",
|
|
542
|
-
},
|
|
543
|
-
},
|
|
544
|
-
},
|
|
545
|
-
render: () => (
|
|
546
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
547
|
-
<div className="!space-y-4">
|
|
548
|
-
<h3 className="text-center text-lg font-semibold !text-white">
|
|
549
|
-
Standard Colors
|
|
550
|
-
</h3>
|
|
551
|
-
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
552
|
-
<div className="text-center">
|
|
553
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
|
|
554
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-indigo-400" />
|
|
555
|
-
</div>
|
|
556
|
-
<div className="text-sm font-medium text-white">Indigo</div>
|
|
557
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
558
|
-
</div>
|
|
559
|
-
<div className="text-center">
|
|
560
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
|
|
561
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-purple-400" />
|
|
562
|
-
</div>
|
|
563
|
-
<div className="text-sm font-medium text-white">Purple</div>
|
|
564
|
-
<div className="text-xs text-purple-400">text-purple-400</div>
|
|
565
|
-
</div>
|
|
566
|
-
<div className="text-center">
|
|
567
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
568
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-green-400" />
|
|
569
|
-
</div>
|
|
570
|
-
<div className="text-sm font-medium text-white">Green</div>
|
|
571
|
-
<div className="text-xs text-green-400">text-green-400</div>
|
|
572
|
-
</div>
|
|
573
|
-
<div className="text-center">
|
|
574
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-red-500/30 bg-red-500/20">
|
|
575
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-red-400" />
|
|
576
|
-
</div>
|
|
577
|
-
<div className="text-sm font-medium text-white">Red</div>
|
|
578
|
-
<div className="text-xs text-red-400">text-red-400</div>
|
|
579
|
-
</div>
|
|
580
|
-
<div className="text-center">
|
|
581
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-yellow-500/30 bg-yellow-500/20">
|
|
582
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-yellow-400" />
|
|
583
|
-
</div>
|
|
584
|
-
<div className="text-sm font-medium text-white">Yellow</div>
|
|
585
|
-
<div className="text-xs text-yellow-400">text-yellow-400</div>
|
|
586
|
-
</div>
|
|
587
|
-
<div className="text-center">
|
|
588
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
|
|
589
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-blue-400" />
|
|
590
|
-
</div>
|
|
591
|
-
<div className="text-sm font-medium text-white">Blue</div>
|
|
592
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
593
|
-
</div>
|
|
594
|
-
<div className="text-center">
|
|
595
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-cyan-500/30 bg-cyan-500/20">
|
|
596
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-cyan-400" />
|
|
597
|
-
</div>
|
|
598
|
-
<div className="text-sm font-medium text-white">Cyan</div>
|
|
599
|
-
<div className="text-xs text-cyan-400">text-cyan-400</div>
|
|
600
|
-
</div>
|
|
601
|
-
<div className="text-center">
|
|
602
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/30 bg-white/10">
|
|
603
|
-
<ImageAvatarSparkleIcon className="h-8 w-8 text-white" />
|
|
604
|
-
</div>
|
|
605
|
-
<div className="text-sm font-medium text-white">White</div>
|
|
606
|
-
<div className="text-xs text-white/60">text-white</div>
|
|
607
|
-
</div>
|
|
608
|
-
</div>
|
|
609
|
-
</div>
|
|
610
|
-
<div className="!space-y-4">
|
|
611
|
-
<h3 className="text-center text-lg font-semibold !text-white">
|
|
612
|
-
Design System Colors
|
|
613
|
-
</h3>
|
|
614
|
-
<div className="flex flex-wrap items-center justify-center gap-8">
|
|
615
|
-
<div className="text-center">
|
|
616
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
617
|
-
<ImageAvatarSparkleIcon className="text-fm-primary h-8 w-8" />
|
|
618
|
-
</div>
|
|
619
|
-
<div className="text-sm font-medium text-white">Primary</div>
|
|
620
|
-
<div className="text-fm-primary text-xs">text-fm-primary</div>
|
|
621
|
-
</div>
|
|
622
|
-
<div className="text-center">
|
|
623
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
624
|
-
<ImageAvatarSparkleIcon className="text-fm-secondary-500 h-8 w-8" />
|
|
625
|
-
</div>
|
|
626
|
-
<div className="text-sm font-medium text-white">Secondary</div>
|
|
627
|
-
<div className="text-fm-secondary-500 text-xs">
|
|
628
|
-
text-fm-secondary-500
|
|
629
|
-
</div>
|
|
630
|
-
</div>
|
|
631
|
-
<div className="text-center">
|
|
632
|
-
<div className="mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
633
|
-
<ImageAvatarSparkleIcon className="text-fm-neutral-800 h-8 w-8" />
|
|
634
|
-
</div>
|
|
635
|
-
<div className="text-sm font-medium text-white">Neutral</div>
|
|
636
|
-
<div className="text-fm-neutral-800 text-xs">
|
|
637
|
-
text-fm-neutral-800
|
|
638
|
-
</div>
|
|
639
|
-
</div>
|
|
640
|
-
</div>
|
|
641
|
-
</div>
|
|
642
|
-
</div>
|
|
643
|
-
),
|
|
123
|
+
render: () => <IconColorVariations icon={ImageAvatarSparkleIcon} />,
|
|
644
124
|
}
|
|
645
125
|
|
|
646
126
|
export const UsageExamples: Story = {
|
|
647
|
-
parameters: {
|
|
648
|
-
...storyParameters,
|
|
649
|
-
docs: {
|
|
650
|
-
description: {
|
|
651
|
-
story:
|
|
652
|
-
"Common usage examples of ImageAvatarSparkleIcon in different contexts with various colors applied.",
|
|
653
|
-
},
|
|
654
|
-
},
|
|
655
|
-
},
|
|
656
127
|
render: () => (
|
|
657
|
-
<
|
|
658
|
-
<
|
|
659
|
-
<
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
<div className="flex flex-wrap items-center justify-center gap-4">
|
|
663
|
-
<button className="flex items-center gap-2 rounded-lg border border-indigo-500/20 bg-indigo-500/10 px-4 py-2 text-white transition-colors hover:bg-indigo-500/20">
|
|
664
|
-
<ImageAvatarSparkleIcon className="h-4 w-4 text-indigo-400" />
|
|
665
|
-
<span>View Profile</span>
|
|
666
|
-
</button>
|
|
667
|
-
<button className="flex items-center gap-2 rounded-lg border border-purple-500/20 bg-purple-500/10 px-4 py-2 text-white transition-colors hover:bg-purple-500/20">
|
|
668
|
-
<ImageAvatarSparkleIcon className="h-4 w-4 text-purple-400" />
|
|
669
|
-
<span>Edit Profile</span>
|
|
670
|
-
</button>
|
|
671
|
-
<button className="flex items-center gap-2 rounded-lg border border-green-500/20 bg-green-500/10 px-4 py-2 text-white transition-colors hover:bg-green-500/20">
|
|
672
|
-
<ImageAvatarSparkleIcon className="h-4 w-4 text-green-400" />
|
|
673
|
-
<span>Settings</span>
|
|
674
|
-
</button>
|
|
675
|
-
<button className="flex items-center gap-2 rounded-lg border border-cyan-500/20 bg-cyan-500/10 px-4 py-2 text-white transition-colors hover:bg-cyan-500/20">
|
|
676
|
-
<ImageAvatarSparkleIcon className="h-4 w-4 text-cyan-400" />
|
|
677
|
-
<span>New Profile</span>
|
|
678
|
-
</button>
|
|
128
|
+
<IconUsageCanvas>
|
|
129
|
+
<IconUsageSection title="AI Avatar Badge">
|
|
130
|
+
<div className="relative h-14 w-14">
|
|
131
|
+
<div className="bg-fm-divider-secondary h-14 w-14 rounded-full" />
|
|
132
|
+
<ImageAvatarSparkleIcon className="text-fm-icon-positive absolute -right-1 -bottom-1 h-6 w-6" />
|
|
679
133
|
</div>
|
|
680
|
-
</
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
<ImageAvatarSparkleIcon className="h-5 w-5 text-green-400" />
|
|
688
|
-
<span className="text-white/80">Premium User</span>
|
|
689
|
-
</div>
|
|
690
|
-
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
691
|
-
<ImageAvatarSparkleIcon className="h-5 w-5 text-blue-400" />
|
|
692
|
-
<span className="text-white/80">Standard User</span>
|
|
693
|
-
</div>
|
|
694
|
-
<div className="flex items-center gap-2 rounded-lg border border-white/10 bg-white/5 px-4 py-2">
|
|
695
|
-
<ImageAvatarSparkleIcon className="h-5 w-5 text-purple-400" />
|
|
696
|
-
<span className="text-white/80">VIP User</span>
|
|
134
|
+
</IconUsageSection>
|
|
135
|
+
|
|
136
|
+
<IconUsageSection title="Profile Card with AI Tag">
|
|
137
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center gap-3 rounded-xl border px-4 py-3">
|
|
138
|
+
<div className="relative h-12 w-12 shrink-0">
|
|
139
|
+
<div className="bg-fm-divider-secondary h-12 w-12 rounded-full" />
|
|
140
|
+
<ImageAvatarSparkleIcon className="text-fm-icon-positive absolute -right-1 -bottom-1 h-4 w-4" />
|
|
697
141
|
</div>
|
|
698
|
-
<div
|
|
699
|
-
<
|
|
700
|
-
|
|
142
|
+
<div>
|
|
143
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
144
|
+
AI Character
|
|
145
|
+
</div>
|
|
146
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
147
|
+
AI-generated avatar
|
|
148
|
+
</div>
|
|
701
149
|
</div>
|
|
702
150
|
</div>
|
|
703
|
-
</
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
151
|
+
</IconUsageSection>
|
|
152
|
+
|
|
153
|
+
<IconUsageSection title="Avatar Grid">
|
|
154
|
+
<div className="flex gap-3">
|
|
155
|
+
{[
|
|
156
|
+
{ ai: true, color: "text-fm-icon-positive" },
|
|
157
|
+
{ ai: false, color: "" },
|
|
158
|
+
{ ai: true, color: "text-fm-icon-info" },
|
|
159
|
+
].map((item, i) => (
|
|
160
|
+
<div key={i} className="relative h-12 w-12">
|
|
161
|
+
<div className="bg-fm-divider-secondary h-12 w-12 rounded-full" />
|
|
162
|
+
{item.ai && (
|
|
163
|
+
<ImageAvatarSparkleIcon
|
|
164
|
+
className={`absolute -right-1 -bottom-1 h-4 w-4 ${item.color}`}
|
|
165
|
+
/>
|
|
166
|
+
)}
|
|
167
|
+
</div>
|
|
168
|
+
))}
|
|
721
169
|
</div>
|
|
722
|
-
</
|
|
723
|
-
</
|
|
170
|
+
</IconUsageSection>
|
|
171
|
+
</IconUsageCanvas>
|
|
724
172
|
),
|
|
725
173
|
}
|
|
726
174
|
|
|
727
175
|
export const Playground: Story = {
|
|
728
|
-
parameters: {
|
|
729
|
-
...storyParameters,
|
|
730
|
-
docs: {
|
|
731
|
-
description: {
|
|
732
|
-
story:
|
|
733
|
-
"Interactive playground to experiment with different ImageAvatarSparkleIcon configurations.",
|
|
734
|
-
},
|
|
735
|
-
},
|
|
736
|
-
},
|
|
737
176
|
args: {
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
className: "text-indigo-400",
|
|
177
|
+
className: "h-8 w-8 text-fm-icon-positive",
|
|
178
|
+
withAccessibility: true,
|
|
741
179
|
},
|
|
742
180
|
render: (args) => (
|
|
743
|
-
<
|
|
744
|
-
<
|
|
745
|
-
|
|
746
|
-
</div>
|
|
747
|
-
</div>
|
|
181
|
+
<IconPlaygroundCanvas>
|
|
182
|
+
<ImageAvatarSparkleIcon {...args} />
|
|
183
|
+
</IconPlaygroundCanvas>
|
|
748
184
|
),
|
|
749
185
|
}
|