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,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { CoinIcon } from "src/ui/icons/coin-icon"
|
|
5
|
+
import { CoinToonsIcon } from "src/ui/icons/coin-toons-icon"
|
|
6
|
+
import { HeartIcon } from "src/ui/icons/heart-icon"
|
|
7
|
+
import { StarIcon } from "src/ui/icons/star-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 { StoreCoinIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof StoreCoinIcon> = {
|
|
@@ -11,791 +25,76 @@ const meta: Meta<typeof StoreCoinIcon> = {
|
|
|
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
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
padding: 0 !important;
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
background: transparent !important;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent !important;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: #0a0a0a !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: #0a0a0a !important;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent !important;
|
|
50
|
-
border: none !important;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: white !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
60
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
65
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
73
|
-
color: white !important;
|
|
74
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
78
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-yellow-900/20 to-gray-900">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
-
<div className="absolute inset-0 bg-gradient-to-r from-yellow-500/10 via-orange-500/10 to-yellow-500/10" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-yellow-500/30 bg-gradient-to-br from-yellow-500/20 to-orange-500/20">
|
|
90
|
-
<StoreCoinIcon className="h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
StoreCoinIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
-
A vibrant store coin icon representing in-app purchases,
|
|
97
|
-
virtual currency, and digital transactions. Built with
|
|
98
|
-
accessibility in mind using Radix UI's AccessibleIcon
|
|
99
|
-
wrapper for seamless screen reader support.
|
|
100
|
-
</p>
|
|
101
|
-
|
|
102
|
-
{/* Stats */}
|
|
103
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
-
<div className="text-center">
|
|
105
|
-
<div className="text-3xl font-bold text-yellow-300">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-sm text-white/60">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="h-8 w-px bg-white/20" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold text-orange-300">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-sm text-white/60">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="h-8 w-px bg-white/20" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold text-purple-300">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-sm text-white/60">
|
|
127
|
-
Customizable styling
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
{/* Content */}
|
|
136
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
-
{/* Quick Usage */}
|
|
138
|
-
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
140
|
-
Quick Start
|
|
141
|
-
</h2>
|
|
142
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
-
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-xl font-semibold !text-yellow-300">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
148
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
149
|
-
{`import { StoreCoinIcon } from "@icons/store-coin-icon"
|
|
150
|
-
|
|
151
|
-
function PurchaseButton() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="warning"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Store", description: "In-app store coin icon" },
|
|
39
|
+
{ title: "Purchase", description: "Buy or spend coins" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { StoreCoinIcon } from "src/ui/icons/store-coin-icon"
|
|
44
|
+
|
|
45
|
+
function CoinBalance() {
|
|
152
46
|
return (
|
|
153
|
-
<
|
|
154
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
155
|
-
<span>
|
|
156
|
-
</button>
|
|
157
|
-
)
|
|
158
|
-
}`}
|
|
159
|
-
</pre>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-xl font-semibold !text-yellow-300">
|
|
165
|
-
Live Preview
|
|
166
|
-
</h3>
|
|
167
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
168
|
-
<button className="flex items-center gap-3 rounded-lg border border-yellow-500/20 bg-yellow-500/10 px-4 py-2 transition-colors hover:bg-yellow-500/20">
|
|
169
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
170
|
-
<span className="text-white">Buy Coins</span>
|
|
171
|
-
</button>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
{/* Props Documentation */}
|
|
178
|
-
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
180
|
-
Props & Configuration
|
|
181
|
-
</h2>
|
|
182
|
-
|
|
183
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
184
|
-
<div className="bg-white/5 p-4">
|
|
185
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
186
|
-
</div>
|
|
187
|
-
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-white/5">
|
|
189
|
-
<tr className="border-b border-white/10">
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
191
|
-
Prop
|
|
192
|
-
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
-
Type
|
|
195
|
-
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
-
Default
|
|
198
|
-
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
200
|
-
Description
|
|
201
|
-
</th>
|
|
202
|
-
</tr>
|
|
203
|
-
</thead>
|
|
204
|
-
<tbody>
|
|
205
|
-
{" "}
|
|
206
|
-
<tr className="!bg-black/10">
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
208
|
-
withAccessibility
|
|
209
|
-
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
boolean
|
|
212
|
-
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
214
|
-
true
|
|
215
|
-
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
Whether to wrap the icon with accessibility feature
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
222
|
-
height
|
|
223
|
-
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
number | string
|
|
226
|
-
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">28</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
Height of the icon in pixels
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr className="border-b border-white/5">
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
234
|
-
fill
|
|
235
|
-
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
string
|
|
238
|
-
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
240
|
-
Coin gradient
|
|
241
|
-
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
243
|
-
Uses embedded coin colors
|
|
244
|
-
</td>
|
|
245
|
-
</tr>
|
|
246
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
248
|
-
className
|
|
249
|
-
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
251
|
-
string
|
|
252
|
-
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
254
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
255
|
-
CSS classes for styling
|
|
256
|
-
</td>
|
|
257
|
-
</tr>
|
|
258
|
-
<tr className="!bg-black/10">
|
|
259
|
-
<td className="px-6 py-4 font-mono text-sm !text-yellow-300">
|
|
260
|
-
...svgProps
|
|
261
|
-
</td>
|
|
262
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
263
|
-
SVGProps
|
|
264
|
-
</td>
|
|
265
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
266
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
-
All standard SVG element props
|
|
268
|
-
</td>
|
|
269
|
-
</tr>
|
|
270
|
-
</tbody>
|
|
271
|
-
</table>
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
|
|
275
|
-
{/* Size Variations */}
|
|
276
|
-
<div className="!space-y-8">
|
|
277
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
278
|
-
Size Variations
|
|
279
|
-
</h2>
|
|
280
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
281
|
-
<div className="!space-y-6">
|
|
282
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
283
|
-
<div className="!space-y-4">
|
|
284
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
285
|
-
Standard Sizes
|
|
286
|
-
</h3>
|
|
287
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
288
|
-
<div className="text-center">
|
|
289
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-3 w-3" />
|
|
290
|
-
<span className="text-xs text-white/60">12px</span>
|
|
291
|
-
</div>
|
|
292
|
-
<div className="text-center">
|
|
293
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-4 w-4" />
|
|
294
|
-
<span className="text-xs text-white/60">16px</span>
|
|
295
|
-
</div>
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-5 w-5" />
|
|
298
|
-
<span className="text-xs text-white/60">20px</span>
|
|
299
|
-
</div>
|
|
300
|
-
<div className="text-center">
|
|
301
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-6 w-6" />
|
|
302
|
-
<span className="text-xs text-white/60">24px</span>
|
|
303
|
-
</div>
|
|
304
|
-
<div className="text-center">
|
|
305
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-8 w-8" />
|
|
306
|
-
<span className="text-xs text-white/60">32px</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<StoreCoinIcon className="!mx-auto mb-2 h-12 w-12" />
|
|
310
|
-
<span className="text-xs text-white/60">48px</span>
|
|
311
|
-
</div>
|
|
312
|
-
</div>
|
|
313
|
-
</div>
|
|
314
|
-
|
|
315
|
-
<div className="!space-y-4">
|
|
316
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
317
|
-
Code Example
|
|
318
|
-
</h3>
|
|
319
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
320
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
321
|
-
{`// Small (16px)
|
|
322
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
323
|
-
|
|
324
|
-
// Medium (24px)
|
|
325
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
326
|
-
|
|
327
|
-
// Large (32px)
|
|
328
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
329
|
-
|
|
330
|
-
// Custom size
|
|
331
|
-
<StoreCoinIcon width={40} height={40} />`}
|
|
332
|
-
</pre>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
|
|
340
|
-
{/* Color Variations */}
|
|
341
|
-
<div className="!space-y-8">
|
|
342
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
343
|
-
Color Variations
|
|
344
|
-
</h2>
|
|
345
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
346
|
-
<div className="!space-y-4">
|
|
347
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
348
|
-
Display Contexts
|
|
349
|
-
</h3>
|
|
350
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
351
|
-
<div className="flex items-center gap-4">
|
|
352
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
353
|
-
<div>
|
|
354
|
-
<div className="text-sm font-medium text-white">
|
|
355
|
-
Original Gradient
|
|
356
|
-
</div>
|
|
357
|
-
<div className="text-xs text-white/60">
|
|
358
|
-
Golden coin design
|
|
359
|
-
</div>
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
<div className="flex items-center gap-4">
|
|
363
|
-
<div className="rounded bg-white p-1">
|
|
364
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
365
|
-
</div>
|
|
366
|
-
<div>
|
|
367
|
-
<div className="text-sm font-medium text-white">
|
|
368
|
-
On White Background
|
|
369
|
-
</div>
|
|
370
|
-
<div className="text-xs text-white/60">
|
|
371
|
-
Optimal contrast
|
|
372
|
-
</div>
|
|
373
|
-
</div>
|
|
374
|
-
</div>
|
|
375
|
-
<div className="flex items-center gap-4">
|
|
376
|
-
<div className="rounded bg-gray-100 p-1">
|
|
377
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
378
|
-
</div>
|
|
379
|
-
<div>
|
|
380
|
-
<div className="text-sm font-medium text-white">
|
|
381
|
-
On Light Background
|
|
382
|
-
</div>
|
|
383
|
-
<div className="text-xs text-white/60">
|
|
384
|
-
Light gray surface
|
|
385
|
-
</div>
|
|
386
|
-
</div>
|
|
387
|
-
</div>
|
|
388
|
-
<div className="flex items-center gap-4">
|
|
389
|
-
<div className="rounded bg-gray-800 p-1">
|
|
390
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
391
|
-
</div>
|
|
392
|
-
<div>
|
|
393
|
-
<div className="text-sm font-medium text-white">
|
|
394
|
-
On Dark Background
|
|
395
|
-
</div>
|
|
396
|
-
<div className="text-xs text-white/60">
|
|
397
|
-
Dark surface
|
|
398
|
-
</div>
|
|
399
|
-
</div>
|
|
400
|
-
</div>
|
|
401
|
-
</div>
|
|
402
|
-
</div>
|
|
403
|
-
|
|
404
|
-
<div className="!space-y-4">
|
|
405
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
406
|
-
Implementation Notes
|
|
407
|
-
</h3>
|
|
408
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
409
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
410
|
-
{`// Store coin uses embedded gradient colors
|
|
411
|
-
// Golden orange (#FFB340) with highlights
|
|
412
|
-
|
|
413
|
-
// Basic usage (maintains original colors)
|
|
414
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
415
|
-
|
|
416
|
-
// On light backgrounds (recommended)
|
|
417
|
-
<div className="bg-white p-2 rounded">
|
|
418
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
419
|
-
</div>
|
|
420
|
-
|
|
421
|
-
// Custom sizing
|
|
422
|
-
<StoreCoinIcon
|
|
423
|
-
width={32}
|
|
424
|
-
height={32}
|
|
425
|
-
className="flex-shrink-0"
|
|
426
|
-
/>`}
|
|
427
|
-
</pre>
|
|
428
|
-
</div>
|
|
429
|
-
</div>
|
|
430
|
-
</div>
|
|
431
|
-
</div>
|
|
432
|
-
|
|
433
|
-
{/* Usage Examples */}
|
|
434
|
-
<div className="!space-y-8">
|
|
435
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
436
|
-
Usage Examples
|
|
437
|
-
</h2>
|
|
438
|
-
|
|
439
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
440
|
-
{/* Purchase Actions */}
|
|
441
|
-
<div className="!space-y-4">
|
|
442
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
443
|
-
Purchase Actions
|
|
444
|
-
</h3>
|
|
445
|
-
<div className="!space-y-4">
|
|
446
|
-
<div className="flex gap-4">
|
|
447
|
-
<button className="flex items-center gap-2 rounded-lg border border-yellow-500/30 bg-yellow-500/20 px-4 py-2 text-yellow-200 transition-colors hover:bg-yellow-500/30">
|
|
448
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
449
|
-
Buy Coins
|
|
450
|
-
</button>
|
|
451
|
-
<button className="flex items-center gap-2 rounded-lg border border-orange-500/30 bg-orange-500/20 px-3 py-2 text-orange-200 transition-colors hover:bg-orange-500/30">
|
|
452
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
453
|
-
Earn More
|
|
454
|
-
</button>
|
|
455
|
-
</div>
|
|
456
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
457
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
458
|
-
{`// Primary purchase button
|
|
459
|
-
<button className="flex items-center gap-2 bg-yellow-500/20 border border-yellow-500/30 px-4 py-2 rounded-lg">
|
|
460
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
461
|
-
Buy Coins
|
|
462
|
-
</button>
|
|
463
|
-
|
|
464
|
-
// Earn coins button
|
|
465
|
-
<button className="flex items-center gap-2 bg-orange-500/20 border border-orange-500/30 px-3 py-2 rounded-lg">
|
|
466
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
467
|
-
Earn More
|
|
468
|
-
</button>`}
|
|
469
|
-
</pre>
|
|
470
|
-
</div>
|
|
471
|
-
</div>
|
|
472
|
-
</div>
|
|
473
|
-
|
|
474
|
-
{/* Balance Display */}
|
|
475
|
-
<div className="!space-y-4">
|
|
476
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
477
|
-
Balance Display
|
|
478
|
-
</h3>
|
|
479
|
-
<div className="!space-y-4">
|
|
480
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
481
|
-
<div className="flex items-center justify-between">
|
|
482
|
-
<div className="flex items-center gap-3">
|
|
483
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
484
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
485
|
-
</div>
|
|
486
|
-
<div>
|
|
487
|
-
<div className="text-sm font-medium text-white">
|
|
488
|
-
Current Balance
|
|
489
|
-
</div>
|
|
490
|
-
<div className="text-xs text-white/60">
|
|
491
|
-
Store Credits
|
|
492
|
-
</div>
|
|
493
|
-
</div>
|
|
494
|
-
</div>
|
|
495
|
-
<div className="text-right">
|
|
496
|
-
<div className="text-lg font-bold text-yellow-300">
|
|
497
|
-
2,450
|
|
498
|
-
</div>
|
|
499
|
-
<div className="text-xs text-white/60">coins</div>
|
|
500
|
-
</div>
|
|
501
|
-
</div>
|
|
502
|
-
</div>
|
|
503
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
504
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
505
|
-
{`<div className="flex items-center justify-between">
|
|
506
|
-
<div className="flex items-center gap-3">
|
|
507
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
508
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
509
|
-
</div>
|
|
510
|
-
<div>
|
|
511
|
-
<div className="text-sm font-medium text-white">Current Balance</div>
|
|
512
|
-
<div className="text-xs text-white/60">Store Credits</div>
|
|
513
|
-
</div>
|
|
514
|
-
</div>
|
|
515
|
-
<div className="text-right">
|
|
516
|
-
<div className="text-lg font-bold text-yellow-300">2,450</div>
|
|
517
|
-
<div className="text-xs text-white/60">coins</div>
|
|
518
|
-
</div>
|
|
519
|
-
</div>`}
|
|
520
|
-
</pre>
|
|
521
|
-
</div>
|
|
522
|
-
</div>
|
|
523
|
-
</div>
|
|
524
|
-
|
|
525
|
-
{/* Store Package */}
|
|
526
|
-
<div className="!space-y-4">
|
|
527
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
528
|
-
Store Package
|
|
529
|
-
</h3>
|
|
530
|
-
<div className="!space-y-4">
|
|
531
|
-
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/5 p-6">
|
|
532
|
-
<div className="!space-y-4 text-center">
|
|
533
|
-
<div className="!mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
534
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
535
|
-
</div>
|
|
536
|
-
<div className="!space-y-2">
|
|
537
|
-
<h4 className="font-medium !text-white">
|
|
538
|
-
Mega Coin Pack
|
|
539
|
-
</h4>
|
|
540
|
-
<p className="text-sm !text-white/70">
|
|
541
|
-
Get 10,000 coins with 20% bonus
|
|
542
|
-
</p>
|
|
543
|
-
<div className="text-2xl font-bold text-yellow-300">
|
|
544
|
-
$9.99
|
|
545
|
-
</div>
|
|
546
|
-
</div>
|
|
547
|
-
<button className="rounded-lg bg-yellow-500 px-6 py-2 text-sm text-black transition-colors hover:bg-yellow-600">
|
|
548
|
-
Purchase
|
|
549
|
-
</button>
|
|
550
|
-
</div>
|
|
551
|
-
</div>
|
|
552
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
553
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
554
|
-
{`<div className="border border-yellow-500/20 bg-yellow-500/5 p-6 rounded-lg">
|
|
555
|
-
<div className="space-y-4 text-center">
|
|
556
|
-
<div className="mx-auto flex h-16 w-16 items-center justify-center rounded-lg bg-yellow-500/20">
|
|
557
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
558
|
-
</div>
|
|
559
|
-
<div className="space-y-2">
|
|
560
|
-
<h4 className="font-medium text-white">Mega Coin Pack</h4>
|
|
561
|
-
<p className="text-sm text-white/70">Get 10,000 coins with 20% bonus</p>
|
|
562
|
-
<div className="text-2xl font-bold text-yellow-300">$9.99</div>
|
|
47
|
+
<div className="flex items-center gap-1.5">
|
|
48
|
+
<StoreCoinIcon className="h-5 w-5 text-fm-icon-warning" />
|
|
49
|
+
<span>1,200</span>
|
|
563
50
|
</div>
|
|
564
|
-
<button className="bg-yellow-500 hover:bg-yellow-600 px-6 py-2 rounded-lg text-sm text-black">
|
|
565
|
-
Purchase
|
|
566
|
-
</button>
|
|
567
|
-
</div>
|
|
568
|
-
</div>`}
|
|
569
|
-
</pre>
|
|
570
|
-
</div>
|
|
571
|
-
</div>
|
|
572
|
-
</div>
|
|
573
|
-
|
|
574
|
-
{/* Transaction History */}
|
|
575
|
-
<div className="!space-y-4">
|
|
576
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
577
|
-
Transaction History
|
|
578
|
-
</h3>
|
|
579
|
-
<div className="!space-y-4">
|
|
580
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
581
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
582
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
583
|
-
<span className="flex-1 text-white">
|
|
584
|
-
Purchased Premium Pack
|
|
585
|
-
</span>
|
|
586
|
-
<span className="text-green-400">+500</span>
|
|
587
|
-
</div>
|
|
588
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
589
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
590
|
-
<span className="flex-1 text-white">
|
|
591
|
-
Daily Login Bonus
|
|
592
|
-
</span>
|
|
593
|
-
<span className="text-green-400">+50</span>
|
|
594
|
-
</div>
|
|
595
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
596
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
597
|
-
<span className="flex-1 text-white">
|
|
598
|
-
Unlocked Special Item
|
|
599
|
-
</span>
|
|
600
|
-
<span className="text-red-400">-200</span>
|
|
601
|
-
</div>
|
|
602
|
-
</div>
|
|
603
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
604
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
605
|
-
{`// Transaction history item
|
|
606
|
-
<div className="flex items-center gap-3 px-3 py-2 text-sm rounded">
|
|
607
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
608
|
-
<span className="flex-1 text-white">Purchased Premium Pack</span>
|
|
609
|
-
<span className="text-green-400">+500</span>
|
|
610
|
-
</div>`}
|
|
611
|
-
</pre>
|
|
612
|
-
</div>
|
|
613
|
-
</div>
|
|
614
|
-
</div>
|
|
615
|
-
</div>
|
|
616
|
-
</div>
|
|
617
|
-
|
|
618
|
-
{/* Accessibility */}
|
|
619
|
-
<div className="!space-y-8">
|
|
620
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
621
|
-
Accessibility Features
|
|
622
|
-
</h2>
|
|
623
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
624
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
625
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
626
|
-
✅ Built-in Features
|
|
627
|
-
</h3>
|
|
628
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
629
|
-
<li className="!text-white/70">
|
|
630
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
631
|
-
</li>
|
|
632
|
-
<li className="!text-white/70">
|
|
633
|
-
Provides screen reader label "Store coin icon"
|
|
634
|
-
</li>
|
|
635
|
-
<li className="!text-white/70">
|
|
636
|
-
Supports keyboard navigation when interactive
|
|
637
|
-
</li>
|
|
638
|
-
<li className="!text-white/70">
|
|
639
|
-
Maintains proper color contrast ratios
|
|
640
|
-
</li>
|
|
641
|
-
<li className="!text-white/70">
|
|
642
|
-
Scales with user's font size preferences
|
|
643
|
-
</li>
|
|
644
|
-
</ul>
|
|
645
|
-
</div>
|
|
646
|
-
|
|
647
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
648
|
-
<h3 className="text-lg font-semibold !text-yellow-300">
|
|
649
|
-
💡 Best Practices
|
|
650
|
-
</h3>
|
|
651
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
652
|
-
<li className="!text-white/70">
|
|
653
|
-
Always pair with descriptive text for transactions
|
|
654
|
-
</li>
|
|
655
|
-
<li className="!text-white/70">
|
|
656
|
-
Use clear coin amounts and pricing
|
|
657
|
-
</li>
|
|
658
|
-
<li className="!text-white/70">
|
|
659
|
-
Ensure sufficient spacing around the icon
|
|
660
|
-
</li>
|
|
661
|
-
<li className="!text-white/70">
|
|
662
|
-
Add focus states for interactive elements
|
|
663
|
-
</li>
|
|
664
|
-
<li className="!text-white/70">
|
|
665
|
-
Consider currency context and regional differences
|
|
666
|
-
</li>
|
|
667
|
-
</ul>
|
|
668
|
-
</div>
|
|
669
|
-
</div>
|
|
670
|
-
|
|
671
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
672
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
673
|
-
Custom Accessibility Label
|
|
674
|
-
</h3>
|
|
675
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
676
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
677
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
678
|
-
{`// Custom implementation with specific label
|
|
679
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
680
|
-
|
|
681
|
-
function CustomStoreCoinIcon({ label = "Store coin", ...props }) {
|
|
682
|
-
return (
|
|
683
|
-
<AccessibleIcon label={label}>
|
|
684
|
-
<StoreCoinIcon {...props} />
|
|
685
|
-
</AccessibleIcon>
|
|
686
51
|
)
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
<
|
|
691
|
-
label="Purchase virtual currency"
|
|
692
|
-
className="h-5 w-5"
|
|
693
|
-
/>`}
|
|
694
|
-
</pre>
|
|
695
|
-
</div>
|
|
696
|
-
<div className="!space-y-4">
|
|
697
|
-
<p className="text-sm !text-white/70">
|
|
698
|
-
For specific contexts, you can wrap the StoreCoinIcon
|
|
699
|
-
with a custom AccessibleIcon component that provides
|
|
700
|
-
more descriptive labels for in-app purchases and virtual
|
|
701
|
-
currency.
|
|
702
|
-
</p>
|
|
703
|
-
<div className="rounded-lg border border-yellow-500/20 bg-yellow-500/10 p-4">
|
|
704
|
-
<div className="flex items-center gap-2 text-sm text-yellow-200">
|
|
705
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
706
|
-
<span>
|
|
707
|
-
This approach gives screen readers more context
|
|
708
|
-
</span>
|
|
709
|
-
</div>
|
|
710
|
-
</div>
|
|
711
|
-
</div>
|
|
712
|
-
</div>
|
|
713
|
-
</div>
|
|
714
|
-
</div>
|
|
715
|
-
|
|
716
|
-
{/* Related Icons */}
|
|
717
|
-
<div className="!space-y-8">
|
|
718
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
719
|
-
Related Icons
|
|
720
|
-
</h2>
|
|
721
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
722
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
723
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
724
|
-
<span className="text-2xl">💰</span>
|
|
725
|
-
</div>
|
|
726
|
-
<div>
|
|
727
|
-
<div className="font-medium text-white">MoneyIcon</div>
|
|
728
|
-
<div className="text-xs text-white/60">Currency</div>
|
|
729
|
-
</div>
|
|
730
|
-
</div>
|
|
731
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
732
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
733
|
-
<span className="text-2xl">🛒</span>
|
|
734
|
-
</div>
|
|
735
|
-
<div>
|
|
736
|
-
<div className="font-medium text-white">ShopIcon</div>
|
|
737
|
-
<div className="text-xs text-white/60">Store</div>
|
|
738
|
-
</div>
|
|
739
|
-
</div>
|
|
740
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
741
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
742
|
-
<span className="text-2xl">💳</span>
|
|
743
|
-
</div>
|
|
744
|
-
<div>
|
|
745
|
-
<div className="font-medium text-white">PaymentIcon</div>
|
|
746
|
-
<div className="text-xs text-white/60">Payment</div>
|
|
747
|
-
</div>
|
|
748
|
-
</div>
|
|
749
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
750
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
751
|
-
<span className="text-2xl">🎁</span>
|
|
752
|
-
</div>
|
|
753
|
-
<div>
|
|
754
|
-
<div className="font-medium text-white">RewardIcon</div>
|
|
755
|
-
<div className="text-xs text-white/60">Rewards</div>
|
|
756
|
-
</div>
|
|
757
|
-
</div>
|
|
758
|
-
</div>
|
|
759
|
-
</div>
|
|
760
|
-
</div>
|
|
761
|
-
|
|
762
|
-
{/* Footer */}
|
|
763
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
764
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
765
|
-
<div className="!space-y-4 text-center">
|
|
766
|
-
<p className="!text-white/60">
|
|
767
|
-
StoreCoinIcon is part of the Aural UI icon library, built
|
|
768
|
-
with accessibility and virtual economy clarity in mind.
|
|
769
|
-
</p>
|
|
770
|
-
<p className="text-sm !text-white/40">
|
|
771
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
772
|
-
compatibility and follow WCAG guidelines.
|
|
773
|
-
</p>
|
|
774
|
-
</div>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<div className="flex items-center gap-1.5">
|
|
55
|
+
<StoreCoinIcon className="text-fm-icon-warning h-6 w-6" />
|
|
775
56
|
</div>
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "CoinIcon",
|
|
62
|
+
description: "In-app coin / token icon",
|
|
63
|
+
icon: CoinIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "CoinToonsIcon",
|
|
68
|
+
description: "Toons coin / currency icon",
|
|
69
|
+
icon: CoinToonsIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "StarIcon",
|
|
74
|
+
description: "Star rating icon",
|
|
75
|
+
icon: StarIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "HeartIcon",
|
|
80
|
+
description: "Like / favourite icon",
|
|
81
|
+
icon: HeartIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
779
86
|
),
|
|
780
87
|
},
|
|
781
88
|
},
|
|
782
89
|
tags: ["autodocs"],
|
|
783
90
|
argTypes: {
|
|
784
|
-
|
|
785
|
-
control:
|
|
786
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
787
94
|
},
|
|
788
95
|
withAccessibility: {
|
|
789
96
|
control: "boolean",
|
|
790
|
-
description: "
|
|
791
|
-
},
|
|
792
|
-
height: {
|
|
793
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
794
|
-
description: "Height of the icon in pixels",
|
|
795
|
-
},
|
|
796
|
-
className: {
|
|
797
|
-
control: "text",
|
|
798
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
799
98
|
},
|
|
800
99
|
},
|
|
801
100
|
}
|
|
@@ -803,226 +102,75 @@ function CustomStoreCoinIcon({ label = "Store coin", ...props }) {
|
|
|
803
102
|
export default meta
|
|
804
103
|
type Story = StoryObj<typeof StoreCoinIcon>
|
|
805
104
|
|
|
806
|
-
// Story parameters for consistent dark theme
|
|
807
|
-
const storyParameters = {
|
|
808
|
-
backgrounds: {
|
|
809
|
-
default: "dark",
|
|
810
|
-
values: [
|
|
811
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
812
|
-
{ name: "darker", value: "#000000" },
|
|
813
|
-
],
|
|
814
|
-
},
|
|
815
|
-
}
|
|
816
|
-
|
|
817
105
|
export const Default: Story = {
|
|
818
106
|
args: {
|
|
819
|
-
|
|
820
|
-
height: 28,
|
|
821
|
-
className: "",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-warning",
|
|
822
108
|
withAccessibility: true,
|
|
823
109
|
},
|
|
824
|
-
parameters: storyParameters,
|
|
825
110
|
render: (args) => (
|
|
826
|
-
<
|
|
827
|
-
<
|
|
828
|
-
|
|
829
|
-
</div>
|
|
830
|
-
</div>
|
|
111
|
+
<IconDefaultCanvas>
|
|
112
|
+
<StoreCoinIcon {...args} />
|
|
113
|
+
</IconDefaultCanvas>
|
|
831
114
|
),
|
|
832
115
|
}
|
|
833
116
|
|
|
834
117
|
export const SizeVariations: Story = {
|
|
835
|
-
|
|
836
|
-
...storyParameters,
|
|
837
|
-
docs: {
|
|
838
|
-
description: {
|
|
839
|
-
story:
|
|
840
|
-
"StoreCoinIcon in different sizes, from small UI elements to large purchase displays.",
|
|
841
|
-
},
|
|
842
|
-
},
|
|
843
|
-
},
|
|
844
|
-
render: () => (
|
|
845
|
-
<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">
|
|
846
|
-
<div className="text-center">
|
|
847
|
-
<div className="!mx-auto mb-2 rounded bg-white p-2">
|
|
848
|
-
<StoreCoinIcon className="h-3 w-3" />
|
|
849
|
-
</div>
|
|
850
|
-
<span className="text-xs text-white/60">12px</span>
|
|
851
|
-
</div>
|
|
852
|
-
<div className="text-center">
|
|
853
|
-
<div className="!mx-auto mb-2 rounded bg-white p-2">
|
|
854
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
855
|
-
</div>
|
|
856
|
-
<span className="text-xs text-white/60">16px</span>
|
|
857
|
-
</div>
|
|
858
|
-
<div className="text-center">
|
|
859
|
-
<div className="!mx-auto mb-2 rounded bg-white p-2">
|
|
860
|
-
<StoreCoinIcon className="h-5 w-5" />
|
|
861
|
-
</div>
|
|
862
|
-
<span className="text-xs text-white/60">20px</span>
|
|
863
|
-
</div>
|
|
864
|
-
<div className="text-center">
|
|
865
|
-
<div className="!mx-auto mb-2 rounded bg-white p-2">
|
|
866
|
-
<StoreCoinIcon className="h-6 w-6" />
|
|
867
|
-
</div>
|
|
868
|
-
<span className="text-xs text-white/60">24px</span>
|
|
869
|
-
</div>
|
|
870
|
-
<div className="text-center">
|
|
871
|
-
<div className="!mx-auto mb-2 rounded bg-white p-2">
|
|
872
|
-
<StoreCoinIcon className="h-8 w-8" />
|
|
873
|
-
</div>
|
|
874
|
-
<span className="text-xs text-white/60">32px</span>
|
|
875
|
-
</div>
|
|
876
|
-
<div className="text-center">
|
|
877
|
-
<div className="!mx-auto mb-2 rounded bg-white p-3">
|
|
878
|
-
<StoreCoinIcon className="h-12 w-12" />
|
|
879
|
-
</div>
|
|
880
|
-
<span className="text-xs text-white/60">48px</span>
|
|
881
|
-
</div>
|
|
882
|
-
</div>
|
|
883
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={StoreCoinIcon} />,
|
|
884
119
|
}
|
|
885
120
|
|
|
886
121
|
export const ColorVariations: Story = {
|
|
887
|
-
|
|
888
|
-
...storyParameters,
|
|
889
|
-
docs: {
|
|
890
|
-
description: {
|
|
891
|
-
story:
|
|
892
|
-
"StoreCoinIcon shown on different backgrounds to demonstrate optimal usage contexts.",
|
|
893
|
-
},
|
|
894
|
-
},
|
|
895
|
-
},
|
|
896
|
-
render: () => (
|
|
897
|
-
<div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
|
|
898
|
-
<div className="text-center">
|
|
899
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-white">
|
|
900
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
901
|
-
</div>
|
|
902
|
-
<div className="text-sm font-medium text-white">White Background</div>
|
|
903
|
-
<div className="text-xs text-white/60">Recommended</div>
|
|
904
|
-
</div>
|
|
905
|
-
<div className="text-center">
|
|
906
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-100">
|
|
907
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
908
|
-
</div>
|
|
909
|
-
<div className="text-sm font-medium text-white">Light Background</div>
|
|
910
|
-
<div className="text-xs text-gray-400">Good contrast</div>
|
|
911
|
-
</div>
|
|
912
|
-
<div className="text-center">
|
|
913
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg bg-gray-800">
|
|
914
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
915
|
-
</div>
|
|
916
|
-
<div className="text-sm font-medium text-white">Dark Background</div>
|
|
917
|
-
<div className="text-xs text-gray-400">Acceptable</div>
|
|
918
|
-
</div>
|
|
919
|
-
<div className="text-center">
|
|
920
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-transparent">
|
|
921
|
-
<StoreCoinIcon className="h-10 w-10" />
|
|
922
|
-
</div>
|
|
923
|
-
<div className="text-sm font-medium text-white">Transparent</div>
|
|
924
|
-
<div className="text-xs text-white/60">Original colors</div>
|
|
925
|
-
</div>
|
|
926
|
-
</div>
|
|
927
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={StoreCoinIcon} />,
|
|
928
123
|
}
|
|
929
124
|
|
|
930
125
|
export const UsageExamples: Story = {
|
|
931
|
-
parameters: {
|
|
932
|
-
...storyParameters,
|
|
933
|
-
docs: {
|
|
934
|
-
description: {
|
|
935
|
-
story:
|
|
936
|
-
"Real-world usage examples showing StoreCoinIcon in different purchase and currency contexts.",
|
|
937
|
-
},
|
|
938
|
-
},
|
|
939
|
-
},
|
|
940
126
|
render: () => (
|
|
941
|
-
<
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
Buy Coins
|
|
949
|
-
</button>
|
|
950
|
-
<button className="flex items-center gap-2 rounded-lg border border-orange-500/30 bg-orange-500/20 px-3 py-2 text-orange-200 transition-colors hover:bg-orange-500/30">
|
|
951
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
952
|
-
Earn More
|
|
953
|
-
</button>
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Coin Balance">
|
|
129
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-1.5 rounded-full border px-3 py-1">
|
|
130
|
+
<StoreCoinIcon className="text-fm-icon-warning h-4 w-4" />
|
|
131
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
132
|
+
1,200
|
|
133
|
+
</span>
|
|
954
134
|
</div>
|
|
955
|
-
</
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
<div className="
|
|
974
|
-
<
|
|
975
|
-
<
|
|
135
|
+
</IconUsageSection>
|
|
136
|
+
|
|
137
|
+
<IconUsageSection title="Purchase Button">
|
|
138
|
+
<button className="flex items-center gap-2 rounded-xl px-4 py-2">
|
|
139
|
+
<StoreCoinIcon className="text-fm-icon-warning h-4 w-4" />
|
|
140
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
141
|
+
Buy 500 coins
|
|
142
|
+
</span>
|
|
143
|
+
</button>
|
|
144
|
+
</IconUsageSection>
|
|
145
|
+
|
|
146
|
+
<IconUsageSection title="Coin Types">
|
|
147
|
+
<div className="flex gap-4">
|
|
148
|
+
{[
|
|
149
|
+
{ icon: StoreCoinIcon, label: "Store" },
|
|
150
|
+
{ icon: CoinIcon, label: "Earned" },
|
|
151
|
+
{ icon: CoinToonsIcon, label: "Toons" },
|
|
152
|
+
].map(({ icon: Icon, label }) => (
|
|
153
|
+
<div key={label} className="flex flex-col items-center gap-1">
|
|
154
|
+
<Icon className="text-fm-icon-warning h-6 w-6" />
|
|
155
|
+
<span className="text-fm-secondary font-fm-text text-xs">
|
|
156
|
+
{label}
|
|
157
|
+
</span>
|
|
976
158
|
</div>
|
|
977
|
-
|
|
159
|
+
))}
|
|
978
160
|
</div>
|
|
979
|
-
</
|
|
980
|
-
|
|
981
|
-
{/* Transaction History */}
|
|
982
|
-
<div className="!space-y-2">
|
|
983
|
-
<h3 className="text-sm font-medium text-white">Transaction History</h3>
|
|
984
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
985
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
986
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
987
|
-
<span className="flex-1 text-white">Purchased Premium Pack</span>
|
|
988
|
-
<span className="text-green-400">+500</span>
|
|
989
|
-
</div>
|
|
990
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
991
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
992
|
-
<span className="flex-1 text-white">Daily Login Bonus</span>
|
|
993
|
-
<span className="text-green-400">+50</span>
|
|
994
|
-
</div>
|
|
995
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
996
|
-
<StoreCoinIcon className="h-4 w-4" />
|
|
997
|
-
<span className="flex-1 text-white">Unlocked Special Item</span>
|
|
998
|
-
<span className="text-red-400">-200</span>
|
|
999
|
-
</div>
|
|
1000
|
-
</div>
|
|
1001
|
-
</div>
|
|
1002
|
-
</div>
|
|
161
|
+
</IconUsageSection>
|
|
162
|
+
</IconUsageCanvas>
|
|
1003
163
|
),
|
|
1004
164
|
}
|
|
1005
165
|
|
|
1006
166
|
export const Playground: Story = {
|
|
1007
|
-
parameters: {
|
|
1008
|
-
...storyParameters,
|
|
1009
|
-
docs: {
|
|
1010
|
-
description: {
|
|
1011
|
-
story:
|
|
1012
|
-
"Interactive playground to experiment with different StoreCoinIcon configurations.",
|
|
1013
|
-
},
|
|
1014
|
-
},
|
|
1015
|
-
},
|
|
1016
167
|
args: {
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
className: "",
|
|
168
|
+
className: "h-8 w-8 text-fm-icon-warning",
|
|
169
|
+
withAccessibility: true,
|
|
1020
170
|
},
|
|
1021
171
|
render: (args) => (
|
|
1022
|
-
<
|
|
1023
|
-
<
|
|
1024
|
-
|
|
1025
|
-
</div>
|
|
1026
|
-
</div>
|
|
172
|
+
<IconPlaygroundCanvas>
|
|
173
|
+
<StoreCoinIcon {...args} />
|
|
174
|
+
</IconPlaygroundCanvas>
|
|
1027
175
|
),
|
|
1028
176
|
}
|