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,21 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { AlertIcon } from "src/ui/icons/alert-icon"
|
|
5
|
+
import { CrossIcon } from "src/ui/icons/cross-icon"
|
|
6
|
+
import { TickCircleIcon } from "src/ui/icons/tick-circle-icon"
|
|
7
|
+
import { TickIcon } from "src/ui/icons/tick-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconInteractiveStates,
|
|
12
|
+
IconPlaygroundCanvas,
|
|
13
|
+
IconSizeVariations,
|
|
14
|
+
IconUsageCanvas,
|
|
15
|
+
IconUsageSection,
|
|
16
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
17
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
18
|
+
|
|
4
19
|
import { CircleTickIcon } from "."
|
|
5
20
|
|
|
6
21
|
const meta: Meta<typeof CircleTickIcon> = {
|
|
@@ -11,1000 +26,77 @@ const meta: Meta<typeof CircleTickIcon> = {
|
|
|
11
26
|
backgrounds: {
|
|
12
27
|
default: "dark",
|
|
13
28
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
29
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
30
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
31
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
32
|
],
|
|
18
33
|
},
|
|
19
34
|
docs: {
|
|
20
35
|
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
|
-
@keyframes tick-bounce {
|
|
81
|
-
0%, 100% { transform: scale(1); }
|
|
82
|
-
50% { transform: scale(1.1); }
|
|
83
|
-
}
|
|
84
|
-
.animate-tick-bounce {
|
|
85
|
-
animation: tick-bounce 0.6s ease-in-out;
|
|
86
|
-
}
|
|
87
|
-
@keyframes tick-pulse {
|
|
88
|
-
0%, 100% { transform: scale(1); opacity: 1; }
|
|
89
|
-
50% { transform: scale(1.05); opacity: 0.8; }
|
|
90
|
-
}
|
|
91
|
-
.animate-tick-pulse {
|
|
92
|
-
animation: tick-pulse 2s ease-in-out infinite;
|
|
93
|
-
}
|
|
94
|
-
`}
|
|
95
|
-
</style>
|
|
96
|
-
|
|
97
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-green-900/20 to-gray-900">
|
|
98
|
-
{/* Header */}
|
|
99
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
100
|
-
<div className="absolute inset-0 bg-gradient-to-r from-green-500/10 via-transparent to-emerald-500/10" />
|
|
101
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
102
|
-
<div className="!space-y-6 text-center">
|
|
103
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-green-500/30 bg-gradient-to-br from-green-500/20 to-emerald-500/20">
|
|
104
|
-
<CircleTickIcon className="h-12 w-12 text-green-400" />
|
|
105
|
-
</div>
|
|
106
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
|
-
CircleTickIcon
|
|
108
|
-
</h1>
|
|
109
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
110
|
-
A success and completion icon featuring a checkmark inside a
|
|
111
|
-
circle. Perfect for confirmations, completed tasks, success
|
|
112
|
-
states, and positive feedback. Built with accessibility in
|
|
113
|
-
mind using Radix UI's AccessibleIcon wrapper.
|
|
114
|
-
</p>
|
|
115
|
-
|
|
116
|
-
{/* Stats */}
|
|
117
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
118
|
-
<div className="text-center">
|
|
119
|
-
<div className="text-3xl font-bold text-green-300">
|
|
120
|
-
Success
|
|
121
|
-
</div>
|
|
122
|
-
<div className="text-sm text-white/60">
|
|
123
|
-
Positive feedback
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div className="h-8 w-px bg-white/20" />
|
|
127
|
-
<div className="text-center">
|
|
128
|
-
<div className="text-3xl font-bold text-emerald-300">
|
|
129
|
-
Complete
|
|
130
|
-
</div>
|
|
131
|
-
<div className="text-sm text-white/60">
|
|
132
|
-
Task completion
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
<div className="h-8 w-px bg-white/20" />
|
|
136
|
-
<div className="text-center">
|
|
137
|
-
<div className="text-3xl font-bold text-teal-300">
|
|
138
|
-
Verified
|
|
139
|
-
</div>
|
|
140
|
-
<div className="text-sm text-white/60">
|
|
141
|
-
Confirmation states
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
</div>
|
|
148
|
-
|
|
149
|
-
{/* Content */}
|
|
150
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
151
|
-
{/* Quick Usage */}
|
|
152
|
-
<div className="!space-y-8">
|
|
153
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
154
|
-
Quick Start
|
|
155
|
-
</h2>
|
|
156
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
157
|
-
<div className="!space-y-4">
|
|
158
|
-
<h3 className="text-xl font-semibold !text-green-300">
|
|
159
|
-
Basic Usage
|
|
160
|
-
</h3>
|
|
161
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
162
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
163
|
-
{`import { CircleTickIcon } from "@icons/tick-circle-icon"
|
|
164
|
-
|
|
165
|
-
function SuccessMessage() {
|
|
36
|
+
<AuralIconDocsPage
|
|
37
|
+
accentToken="positive"
|
|
38
|
+
features={[
|
|
39
|
+
{ title: "Outline Tick", description: "Stroke-based circle check" },
|
|
40
|
+
{ title: "currentColor", description: "Responds to text tokens" },
|
|
41
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
42
|
+
]}
|
|
43
|
+
quickStart={{
|
|
44
|
+
codeExample: `import { CircleTickIcon } from "src/ui/icons/circle-tick-icon"
|
|
45
|
+
|
|
46
|
+
function DoneState() {
|
|
166
47
|
return (
|
|
167
48
|
<div className="flex items-center gap-2">
|
|
168
|
-
<CircleTickIcon className="h-5 w-5 text-
|
|
169
|
-
<span>
|
|
170
|
-
</div>
|
|
171
|
-
)
|
|
172
|
-
}`}
|
|
173
|
-
</pre>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
<div className="!space-y-4">
|
|
178
|
-
<h3 className="text-xl font-semibold !text-green-300">
|
|
179
|
-
Live Preview
|
|
180
|
-
</h3>
|
|
181
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
182
|
-
<div className="flex items-center gap-3 rounded-lg border border-green-500/20 bg-green-500/10 px-4 py-2">
|
|
183
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
184
|
-
<span className="text-white">
|
|
185
|
-
Task completed successfully!
|
|
186
|
-
</span>
|
|
187
|
-
</div>
|
|
188
|
-
</div>
|
|
189
|
-
</div>
|
|
190
|
-
</div>
|
|
191
|
-
</div>
|
|
192
|
-
|
|
193
|
-
{/* Props Documentation */}
|
|
194
|
-
<div className="!space-y-8">
|
|
195
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
196
|
-
Props & Configuration
|
|
197
|
-
</h2>
|
|
198
|
-
|
|
199
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
200
|
-
<div className="bg-white/5 p-4">
|
|
201
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
202
|
-
</div>
|
|
203
|
-
<table className="!my-0 w-full">
|
|
204
|
-
<thead className="bg-white/5">
|
|
205
|
-
<tr className="border-b border-white/10">
|
|
206
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
207
|
-
Prop
|
|
208
|
-
</th>
|
|
209
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
210
|
-
Type
|
|
211
|
-
</th>
|
|
212
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
213
|
-
Default
|
|
214
|
-
</th>
|
|
215
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
216
|
-
Description
|
|
217
|
-
</th>
|
|
218
|
-
</tr>
|
|
219
|
-
</thead>
|
|
220
|
-
<tbody>
|
|
221
|
-
{" "}
|
|
222
|
-
<tr className="!bg-black/10">
|
|
223
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
224
|
-
withAccessibility
|
|
225
|
-
</td>
|
|
226
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
-
boolean
|
|
228
|
-
</td>
|
|
229
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
230
|
-
true
|
|
231
|
-
</td>
|
|
232
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
233
|
-
Whether to wrap the icon with accessibility feature
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
237
|
-
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
238
|
-
height
|
|
239
|
-
</td>
|
|
240
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
241
|
-
number | string
|
|
242
|
-
</td>
|
|
243
|
-
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
244
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
245
|
-
Height of the icon in pixels
|
|
246
|
-
</td>
|
|
247
|
-
</tr>
|
|
248
|
-
<tr className="border-b border-white/5">
|
|
249
|
-
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
250
|
-
fill
|
|
251
|
-
</td>
|
|
252
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
253
|
-
string
|
|
254
|
-
</td>
|
|
255
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
256
|
-
currentColor
|
|
257
|
-
</td>
|
|
258
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
259
|
-
Fill color of the icon
|
|
260
|
-
</td>
|
|
261
|
-
</tr>
|
|
262
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
263
|
-
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
264
|
-
className
|
|
265
|
-
</td>
|
|
266
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
-
string
|
|
268
|
-
</td>
|
|
269
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
270
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
271
|
-
CSS classes for styling
|
|
272
|
-
</td>
|
|
273
|
-
</tr>
|
|
274
|
-
<tr className="border-b border-white/5">
|
|
275
|
-
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
276
|
-
viewBox
|
|
277
|
-
</td>
|
|
278
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
279
|
-
string
|
|
280
|
-
</td>
|
|
281
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
282
|
-
"0 0 16 16"
|
|
283
|
-
</td>
|
|
284
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
285
|
-
SVG viewBox for scaling
|
|
286
|
-
</td>
|
|
287
|
-
</tr>
|
|
288
|
-
<tr className="!bg-black/10">
|
|
289
|
-
<td className="px-6 py-4 font-mono text-sm !text-green-300">
|
|
290
|
-
...svgProps
|
|
291
|
-
</td>
|
|
292
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
293
|
-
SVGProps
|
|
294
|
-
</td>
|
|
295
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
296
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
297
|
-
All standard SVG element props
|
|
298
|
-
</td>
|
|
299
|
-
</tr>
|
|
300
|
-
</tbody>
|
|
301
|
-
</table>
|
|
302
|
-
</div>
|
|
303
|
-
</div>
|
|
304
|
-
|
|
305
|
-
{/* Size Variations */}
|
|
306
|
-
<div className="!space-y-8">
|
|
307
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
308
|
-
Size Variations
|
|
309
|
-
</h2>
|
|
310
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
311
|
-
<div className="!space-y-6">
|
|
312
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
313
|
-
<div className="!space-y-4">
|
|
314
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
315
|
-
Standard Sizes
|
|
316
|
-
</h3>
|
|
317
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
318
|
-
<div className="text-center">
|
|
319
|
-
<CircleTickIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
|
|
320
|
-
<span className="text-xs text-white/60">12px</span>
|
|
321
|
-
</div>
|
|
322
|
-
<div className="text-center">
|
|
323
|
-
<CircleTickIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
|
|
324
|
-
<span className="text-xs text-white/60">16px</span>
|
|
325
|
-
</div>
|
|
326
|
-
<div className="text-center">
|
|
327
|
-
<CircleTickIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
|
|
328
|
-
<span className="text-xs text-white/60">20px</span>
|
|
329
|
-
</div>
|
|
330
|
-
<div className="text-center">
|
|
331
|
-
<CircleTickIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
332
|
-
<span className="text-xs text-white/60">24px</span>
|
|
333
|
-
</div>
|
|
334
|
-
<div className="text-center">
|
|
335
|
-
<CircleTickIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
|
|
336
|
-
<span className="text-xs text-white/60">32px</span>
|
|
337
|
-
</div>
|
|
338
|
-
<div className="text-center">
|
|
339
|
-
<CircleTickIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
|
|
340
|
-
<span className="text-xs text-white/60">48px</span>
|
|
341
|
-
</div>
|
|
342
|
-
</div>
|
|
343
|
-
</div>
|
|
344
|
-
|
|
345
|
-
<div className="!space-y-4">
|
|
346
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
347
|
-
Code Example
|
|
348
|
-
</h3>
|
|
349
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
350
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
351
|
-
{`// Small (16px)
|
|
352
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
353
|
-
|
|
354
|
-
// Medium (24px)
|
|
355
|
-
<CircleTickIcon className="h-6 w-6" />
|
|
356
|
-
|
|
357
|
-
// Large (32px)
|
|
358
|
-
<CircleTickIcon className="h-8 w-8" />
|
|
359
|
-
|
|
360
|
-
// Custom size
|
|
361
|
-
<CircleTickIcon width={40} height={40} />
|
|
362
|
-
|
|
363
|
-
// Responsive sizing
|
|
364
|
-
<CircleTickIcon className="h-4 w-4 md:h-6 md:w-6 lg:h-8 lg:w-8" />`}
|
|
365
|
-
</pre>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
|
-
</div>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
371
|
-
</div>
|
|
372
|
-
|
|
373
|
-
{/* Color Variations */}
|
|
374
|
-
<div className="!space-y-8">
|
|
375
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
376
|
-
Color Variations
|
|
377
|
-
</h2>
|
|
378
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
379
|
-
<div className="!space-y-4">
|
|
380
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
381
|
-
Semantic Colors
|
|
382
|
-
</h3>
|
|
383
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
384
|
-
<div className="flex items-center gap-4">
|
|
385
|
-
<CircleTickIcon className="h-6 w-6 text-green-400" />
|
|
386
|
-
<div>
|
|
387
|
-
<div className="text-sm font-medium text-white">
|
|
388
|
-
Success
|
|
389
|
-
</div>
|
|
390
|
-
<div className="text-xs text-white/60">
|
|
391
|
-
text-green-400
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
<div className="flex items-center gap-4">
|
|
396
|
-
<CircleTickIcon className="h-6 w-6 text-emerald-400" />
|
|
397
|
-
<div>
|
|
398
|
-
<div className="text-sm font-medium text-white">
|
|
399
|
-
Complete
|
|
400
|
-
</div>
|
|
401
|
-
<div className="text-xs text-white/60">
|
|
402
|
-
text-emerald-400
|
|
403
|
-
</div>
|
|
404
|
-
</div>
|
|
405
|
-
</div>
|
|
406
|
-
<div className="flex items-center gap-4">
|
|
407
|
-
<CircleTickIcon className="h-6 w-6 text-teal-400" />
|
|
408
|
-
<div>
|
|
409
|
-
<div className="text-sm font-medium text-white">
|
|
410
|
-
Verified
|
|
411
|
-
</div>
|
|
412
|
-
<div className="text-xs text-white/60">
|
|
413
|
-
text-teal-400
|
|
414
|
-
</div>
|
|
415
|
-
</div>
|
|
416
|
-
</div>
|
|
417
|
-
<div className="flex items-center gap-4">
|
|
418
|
-
<CircleTickIcon className="h-6 w-6 text-blue-400" />
|
|
419
|
-
<div>
|
|
420
|
-
<div className="text-sm font-medium text-white">
|
|
421
|
-
Info
|
|
422
|
-
</div>
|
|
423
|
-
<div className="text-xs text-white/60">
|
|
424
|
-
text-blue-400
|
|
425
|
-
</div>
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
</div>
|
|
429
|
-
</div>
|
|
430
|
-
|
|
431
|
-
<div className="!space-y-4">
|
|
432
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
433
|
-
Custom Colors
|
|
434
|
-
</h3>
|
|
435
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
436
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
437
|
-
{`// Using Tailwind classes
|
|
438
|
-
<CircleTickIcon className="h-6 w-6 text-green-400" />
|
|
439
|
-
<CircleTickIcon className="h-6 w-6 text-emerald-500" />
|
|
440
|
-
|
|
441
|
-
// Using CSS custom properties
|
|
442
|
-
<CircleTickIcon
|
|
443
|
-
className="h-6 w-6"
|
|
444
|
-
style={{ color: 'var(--color-success)' }}
|
|
445
|
-
/>
|
|
446
|
-
|
|
447
|
-
// Direct fill prop
|
|
448
|
-
<CircleTickIcon
|
|
449
|
-
width={24}
|
|
450
|
-
height={24}
|
|
451
|
-
fill="#10b981"
|
|
452
|
-
/>
|
|
453
|
-
|
|
454
|
-
// With opacity
|
|
455
|
-
<CircleTickIcon className="h-6 w-6 text-green-400 opacity-80" />`}
|
|
456
|
-
</pre>
|
|
457
|
-
</div>
|
|
458
|
-
</div>
|
|
459
|
-
</div>
|
|
460
|
-
</div>
|
|
461
|
-
|
|
462
|
-
{/* Usage Examples */}
|
|
463
|
-
<div className="!space-y-8">
|
|
464
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
465
|
-
Usage Examples
|
|
466
|
-
</h2>
|
|
467
|
-
|
|
468
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
469
|
-
{/* Success Message */}
|
|
470
|
-
<div className="!space-y-4">
|
|
471
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
472
|
-
Success Messages
|
|
473
|
-
</h3>
|
|
474
|
-
<div className="!space-y-4">
|
|
475
|
-
<div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
|
|
476
|
-
<div className="flex items-start gap-3">
|
|
477
|
-
<CircleTickIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-green-400" />
|
|
478
|
-
<div>
|
|
479
|
-
<h4 className="font-medium !text-green-200">
|
|
480
|
-
Account Created Successfully
|
|
481
|
-
</h4>
|
|
482
|
-
<p className="text-sm !text-green-300/80">
|
|
483
|
-
Welcome to Aural UI! Your account has been set up
|
|
484
|
-
and you're ready to start building.
|
|
485
|
-
</p>
|
|
486
|
-
</div>
|
|
487
|
-
</div>
|
|
488
|
-
</div>
|
|
489
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
490
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
491
|
-
{`<div className="border border-green-500/20 bg-green-500/10 p-4 rounded-lg">
|
|
492
|
-
<div className="flex items-start gap-3">
|
|
493
|
-
<CircleTickIcon className="h-5 w-5 text-green-400 mt-0.5 flex-shrink-0" />
|
|
494
|
-
<div>
|
|
495
|
-
<h4 className="font-medium text-green-200">Account Created Successfully</h4>
|
|
496
|
-
<p className="text-sm text-green-300/80">
|
|
497
|
-
Welcome to Aural UI! Your account has been set up and you're ready to start building.
|
|
498
|
-
</p>
|
|
499
|
-
</div>
|
|
500
|
-
</div>
|
|
501
|
-
</div>`}
|
|
502
|
-
</pre>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
</div>
|
|
506
|
-
|
|
507
|
-
{/* Task Completion */}
|
|
508
|
-
<div className="!space-y-4">
|
|
509
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
510
|
-
Task Completion
|
|
511
|
-
</h3>
|
|
512
|
-
<div className="!space-y-4">
|
|
513
|
-
<div className="!space-y-3">
|
|
514
|
-
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
515
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
516
|
-
<span className="flex-1 text-white">
|
|
517
|
-
Set up project repository
|
|
518
|
-
</span>
|
|
519
|
-
<span className="text-xs text-green-400">
|
|
520
|
-
Completed
|
|
521
|
-
</span>
|
|
522
|
-
</div>
|
|
523
|
-
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
|
|
524
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
525
|
-
<span className="flex-1 text-white">
|
|
526
|
-
Install dependencies
|
|
527
|
-
</span>
|
|
528
|
-
<span className="text-xs text-green-400">
|
|
529
|
-
Completed
|
|
530
|
-
</span>
|
|
531
|
-
</div>
|
|
532
|
-
<div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3 opacity-50">
|
|
533
|
-
<div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
|
|
534
|
-
<span className="flex-1 text-white/70">
|
|
535
|
-
Configure development environment
|
|
536
|
-
</span>
|
|
537
|
-
<span className="text-xs text-white/50">Pending</span>
|
|
538
|
-
</div>
|
|
539
|
-
</div>
|
|
540
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
541
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
542
|
-
{`// Completed task
|
|
543
|
-
<div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg">
|
|
544
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
545
|
-
<span className="flex-1 text-white">Set up project repository</span>
|
|
546
|
-
<span className="text-xs text-green-400">Completed</span>
|
|
547
|
-
</div>
|
|
548
|
-
|
|
549
|
-
// Pending task
|
|
550
|
-
<div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg opacity-50">
|
|
551
|
-
<div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
|
|
552
|
-
<span className="flex-1 text-white/70">Configure development environment</span>
|
|
553
|
-
<span className="text-xs text-white/50">Pending</span>
|
|
554
|
-
</div>`}
|
|
555
|
-
</pre>
|
|
556
|
-
</div>
|
|
557
|
-
</div>
|
|
558
|
-
</div>
|
|
559
|
-
|
|
560
|
-
{/* Form Validation */}
|
|
561
|
-
<div className="!space-y-4">
|
|
562
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
563
|
-
Form Validation
|
|
564
|
-
</h3>
|
|
565
|
-
<div className="!space-y-4">
|
|
566
|
-
<div className="!space-y-2">
|
|
567
|
-
<label className="text-sm font-medium !text-white">
|
|
568
|
-
Email Address
|
|
569
|
-
</label>
|
|
570
|
-
<div className="relative">
|
|
571
|
-
<input
|
|
572
|
-
type="email"
|
|
573
|
-
className="w-full rounded-lg border border-green-500/50 bg-white/5 px-3 py-2 pr-10 !text-white focus:border-green-500 focus:ring-2 focus:ring-green-500/20"
|
|
574
|
-
placeholder="Enter your email"
|
|
575
|
-
defaultValue="user@example.com"
|
|
576
|
-
/>
|
|
577
|
-
<CircleTickIcon className="absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-green-400" />
|
|
578
|
-
</div>
|
|
579
|
-
<div className="flex items-center gap-2 text-sm text-green-400">
|
|
580
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
581
|
-
<span>Valid email address</span>
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
585
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
586
|
-
{`// Input with validation icon
|
|
587
|
-
<div className="relative">
|
|
588
|
-
<input className="pr-10 border-green-500/50" />
|
|
589
|
-
<CircleTickIcon className="absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-green-400" />
|
|
590
|
-
</div>
|
|
591
|
-
|
|
592
|
-
// Success message
|
|
593
|
-
<div className="flex items-center gap-2 text-sm text-green-400">
|
|
594
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
595
|
-
<span>Valid email address</span>
|
|
596
|
-
</div>`}
|
|
597
|
-
</pre>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
|
|
602
|
-
{/* Button States */}
|
|
603
|
-
<div className="!space-y-4">
|
|
604
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
605
|
-
Button States
|
|
606
|
-
</h3>
|
|
607
|
-
<div className="!space-y-4">
|
|
608
|
-
<div className="flex gap-4">
|
|
609
|
-
<button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-4 py-2 text-green-200 transition-colors hover:bg-green-500/30">
|
|
610
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
611
|
-
Mark Complete
|
|
612
|
-
</button>
|
|
613
|
-
<button
|
|
614
|
-
className="flex items-center gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/20 px-4 py-2 text-emerald-200 transition-colors hover:bg-emerald-500/30"
|
|
615
|
-
disabled
|
|
616
|
-
>
|
|
617
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
618
|
-
Already Completed
|
|
619
|
-
</button>
|
|
620
|
-
</div>
|
|
621
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
622
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
623
|
-
{`// Success action button
|
|
624
|
-
<button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-4 py-2 rounded-lg">
|
|
625
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
626
|
-
Mark Complete
|
|
627
|
-
</button>
|
|
628
|
-
|
|
629
|
-
// Completed state
|
|
630
|
-
<button className="flex items-center gap-2 bg-emerald-500/20 border border-emerald-500/30 px-4 py-2 rounded-lg" disabled>
|
|
631
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
632
|
-
Already Completed
|
|
633
|
-
</button>`}
|
|
634
|
-
</pre>
|
|
635
|
-
</div>
|
|
636
|
-
</div>
|
|
637
|
-
</div>
|
|
638
|
-
|
|
639
|
-
{/* Verification Badge */}
|
|
640
|
-
<div className="!space-y-4">
|
|
641
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
642
|
-
Verification Badge
|
|
643
|
-
</h3>
|
|
644
|
-
<div className="!space-y-4">
|
|
645
|
-
<div className="flex items-center gap-3">
|
|
646
|
-
<div className="h-12 w-12 rounded-full bg-blue-500/20"></div>
|
|
647
|
-
<div>
|
|
648
|
-
<div className="flex items-center gap-2">
|
|
649
|
-
<span className="font-medium text-white">
|
|
650
|
-
John Doe
|
|
651
|
-
</span>
|
|
652
|
-
<CircleTickIcon className="h-4 w-4 text-blue-400" />
|
|
653
|
-
</div>
|
|
654
|
-
<p className="text-sm !text-white/60">
|
|
655
|
-
Verified Account
|
|
656
|
-
</p>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
660
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
661
|
-
{`<div className="flex items-center gap-3">
|
|
662
|
-
<div className="h-12 w-12 rounded-full bg-blue-500/20"></div>
|
|
663
|
-
<div>
|
|
664
|
-
<div className="flex items-center gap-2">
|
|
665
|
-
<span className="font-medium text-white">John Doe</span>
|
|
666
|
-
<CircleTickIcon className="h-4 w-4 text-blue-400" />
|
|
49
|
+
<CircleTickIcon className="h-5 w-5 text-fm-icon-positive" />
|
|
50
|
+
<span>Completed</span>
|
|
667
51
|
</div>
|
|
668
|
-
<p className="text-sm text-white/60">Verified Account</p>
|
|
669
|
-
</div>
|
|
670
|
-
</div>`}
|
|
671
|
-
</pre>
|
|
672
|
-
</div>
|
|
673
|
-
</div>
|
|
674
|
-
</div>
|
|
675
|
-
|
|
676
|
-
{/* Toast Notification */}
|
|
677
|
-
<div className="!space-y-4">
|
|
678
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
679
|
-
Toast Notification
|
|
680
|
-
</h3>
|
|
681
|
-
<div className="!space-y-4">
|
|
682
|
-
<div className="flex items-start gap-3 rounded-lg border border-green-500/20 bg-green-500/10 p-4 shadow-lg">
|
|
683
|
-
<CircleTickIcon className="animate-tick-bounce h-5 w-5 text-green-400" />
|
|
684
|
-
<div className="flex-1">
|
|
685
|
-
<p className="font-medium !text-green-200">
|
|
686
|
-
File uploaded successfully
|
|
687
|
-
</p>
|
|
688
|
-
<p className="text-sm !text-green-300/80">
|
|
689
|
-
Your document has been saved.
|
|
690
|
-
</p>
|
|
691
|
-
</div>
|
|
692
|
-
<button className="text-green-400 hover:text-green-300">
|
|
693
|
-
✕
|
|
694
|
-
</button>
|
|
695
|
-
</div>
|
|
696
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
697
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
698
|
-
{`<div className="flex items-center gap-3 p-4 border border-green-500/20 bg-green-500/10 rounded-lg shadow-lg">
|
|
699
|
-
<CircleTickIcon className="h-5 w-5 text-green-400 animate-bounce" />
|
|
700
|
-
<div className="flex-1">
|
|
701
|
-
<p className="font-medium text-green-200">File uploaded successfully</p>
|
|
702
|
-
<p className="text-sm text-green-300/80">Your document has been saved.</p>
|
|
703
|
-
</div>
|
|
704
|
-
<button className="text-green-400 hover:text-green-300">✕</button>
|
|
705
|
-
</div>`}
|
|
706
|
-
</pre>
|
|
707
|
-
</div>
|
|
708
|
-
</div>
|
|
709
|
-
</div>
|
|
710
|
-
</div>
|
|
711
|
-
</div>
|
|
712
|
-
|
|
713
|
-
{/* Interactive States */}
|
|
714
|
-
<div className="!space-y-8">
|
|
715
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
716
|
-
Interactive States & Animations
|
|
717
|
-
</h2>
|
|
718
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
719
|
-
<div className="!space-y-4">
|
|
720
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
721
|
-
Animation Effects
|
|
722
|
-
</h3>
|
|
723
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
724
|
-
<div className="flex items-center gap-4">
|
|
725
|
-
<CircleTickIcon className="animate-tick-bounce h-8 w-8 text-green-400" />
|
|
726
|
-
<div>
|
|
727
|
-
<div className="text-sm font-medium text-white">
|
|
728
|
-
Bounce Effect
|
|
729
|
-
</div>
|
|
730
|
-
<div className="text-xs text-white/60">
|
|
731
|
-
On completion
|
|
732
|
-
</div>
|
|
733
|
-
</div>
|
|
734
|
-
</div>
|
|
735
|
-
<div className="flex items-center gap-4">
|
|
736
|
-
<CircleTickIcon className="animate-tick-pulse h-8 w-8 text-green-400" />
|
|
737
|
-
<div>
|
|
738
|
-
<div className="text-sm font-medium text-white">
|
|
739
|
-
Pulse Animation
|
|
740
|
-
</div>
|
|
741
|
-
<div className="text-xs text-white/60">
|
|
742
|
-
Continuous feedback
|
|
743
|
-
</div>
|
|
744
|
-
</div>
|
|
745
|
-
</div>
|
|
746
|
-
<div className="flex items-center gap-4">
|
|
747
|
-
<CircleTickIcon className="h-8 w-8 text-green-400 transition-transform hover:scale-110" />
|
|
748
|
-
<div>
|
|
749
|
-
<div className="text-sm font-medium text-white">
|
|
750
|
-
Hover Scale
|
|
751
|
-
</div>
|
|
752
|
-
<div className="text-xs text-white/60">
|
|
753
|
-
Interactive growth
|
|
754
|
-
</div>
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
<div className="flex items-center gap-4">
|
|
758
|
-
<CircleTickIcon className="h-8 w-8 text-green-400 transition-colors hover:text-emerald-300" />
|
|
759
|
-
<div>
|
|
760
|
-
<div className="text-sm font-medium text-white">
|
|
761
|
-
Color Transition
|
|
762
|
-
</div>
|
|
763
|
-
<div className="text-xs text-white/60">
|
|
764
|
-
Smooth color change
|
|
765
|
-
</div>
|
|
766
|
-
</div>
|
|
767
|
-
</div>
|
|
768
|
-
</div>
|
|
769
|
-
</div>
|
|
770
|
-
|
|
771
|
-
<div className="!space-y-4">
|
|
772
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
773
|
-
Interactive Examples
|
|
774
|
-
</h3>
|
|
775
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
776
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
777
|
-
{`// Bounce animation on completion
|
|
778
|
-
<CircleTickIcon className="h-8 w-8 text-green-400 animate-bounce" />
|
|
779
|
-
|
|
780
|
-
// Custom bounce animation
|
|
781
|
-
@keyframes tick-bounce {
|
|
782
|
-
0%, 100% { transform: scale(1); }
|
|
783
|
-
50% { transform: scale(1.1); }
|
|
784
|
-
}
|
|
785
|
-
.animate-tick-bounce {
|
|
786
|
-
animation: tick-bounce 0.6s ease-in-out;
|
|
787
|
-
}
|
|
788
|
-
|
|
789
|
-
// Hover interactions
|
|
790
|
-
<CircleTickIcon className="h-8 w-8 text-green-400 transition-transform hover:scale-110" />
|
|
791
|
-
|
|
792
|
-
// Button with animated icon
|
|
793
|
-
<button className="group flex items-center gap-2">
|
|
794
|
-
<CircleTickIcon className="h-5 w-5 transition-transform group-hover:scale-105" />
|
|
795
|
-
<span>Complete Task</span>
|
|
796
|
-
</button>
|
|
797
|
-
|
|
798
|
-
// Conditional animation
|
|
799
|
-
{isCompleted && (
|
|
800
|
-
<CircleTickIcon className="h-6 w-6 text-green-400 animate-bounce" />
|
|
801
|
-
)}`}
|
|
802
|
-
</pre>
|
|
803
|
-
</div>
|
|
804
|
-
</div>
|
|
805
|
-
</div>
|
|
806
|
-
</div>
|
|
807
|
-
|
|
808
|
-
{/* Accessibility */}
|
|
809
|
-
<div className="!space-y-8">
|
|
810
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
811
|
-
Accessibility Features
|
|
812
|
-
</h2>
|
|
813
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
814
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
815
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
816
|
-
✅ Built-in Features
|
|
817
|
-
</h3>
|
|
818
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
819
|
-
<li className="!text-white/70">
|
|
820
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
821
|
-
</li>
|
|
822
|
-
<li className="!text-white/70">
|
|
823
|
-
Provides screen reader label "Tick Circle icon"
|
|
824
|
-
</li>
|
|
825
|
-
<li className="!text-white/70">
|
|
826
|
-
Supports keyboard navigation when interactive
|
|
827
|
-
</li>
|
|
828
|
-
<li className="!text-white/70">
|
|
829
|
-
Maintains proper color contrast ratios
|
|
830
|
-
</li>
|
|
831
|
-
<li className="!text-white/70">
|
|
832
|
-
Scales with user's font size preferences
|
|
833
|
-
</li>
|
|
834
|
-
</ul>
|
|
835
|
-
</div>
|
|
836
|
-
|
|
837
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
838
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
839
|
-
💡 Best Practices
|
|
840
|
-
</h3>
|
|
841
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
842
|
-
<li className="!text-white/70">
|
|
843
|
-
Always pair with descriptive text
|
|
844
|
-
</li>
|
|
845
|
-
<li className="!text-white/70">
|
|
846
|
-
Use consistent colors for success states
|
|
847
|
-
</li>
|
|
848
|
-
<li className="!text-white/70">
|
|
849
|
-
Ensure sufficient color contrast
|
|
850
|
-
</li>
|
|
851
|
-
<li className="!text-white/70">
|
|
852
|
-
Add focus states for interactive elements
|
|
853
|
-
</li>
|
|
854
|
-
<li className="!text-white/70">
|
|
855
|
-
Consider motion sensitivity for animations
|
|
856
|
-
</li>
|
|
857
|
-
</ul>
|
|
858
|
-
</div>
|
|
859
|
-
</div>
|
|
860
|
-
|
|
861
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
862
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
863
|
-
Custom Accessibility Implementation
|
|
864
|
-
</h3>
|
|
865
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
866
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
867
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
868
|
-
{`// Custom implementation with specific label
|
|
869
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
870
|
-
|
|
871
|
-
function CompletionIcon({ label = "Completed", ...props }) {
|
|
872
|
-
return (
|
|
873
|
-
<AccessibleIcon label={label}>
|
|
874
|
-
<CircleTickIcon {...props} />
|
|
875
|
-
</AccessibleIcon>
|
|
876
52
|
)
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
<
|
|
881
|
-
|
|
882
|
-
className="h-4 w-4 text-green-400"
|
|
883
|
-
/>
|
|
884
|
-
|
|
885
|
-
// ARIA attributes for complex interactions
|
|
886
|
-
<button
|
|
887
|
-
aria-label="Mark task as complete"
|
|
888
|
-
aria-pressed={isCompleted}
|
|
889
|
-
onClick={handleComplete}
|
|
890
|
-
>
|
|
891
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
892
|
-
</button>`}
|
|
893
|
-
</pre>
|
|
894
|
-
</div>
|
|
895
|
-
<div className="!space-y-4">
|
|
896
|
-
<p className="text-sm !text-white/70">
|
|
897
|
-
When using CircleTickIcon for task completion or success
|
|
898
|
-
states, provide clear context about what was completed
|
|
899
|
-
or verified. The built-in accessible label helps screen
|
|
900
|
-
readers understand the positive nature of the icon.
|
|
901
|
-
</p>
|
|
902
|
-
<div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
|
|
903
|
-
<div className="flex items-center gap-2 text-sm text-green-200">
|
|
904
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
905
|
-
<span>
|
|
906
|
-
This ensures all users understand successful actions
|
|
907
|
-
</span>
|
|
908
|
-
</div>
|
|
909
|
-
</div>
|
|
910
|
-
</div>
|
|
911
|
-
</div>
|
|
912
|
-
</div>
|
|
913
|
-
</div>
|
|
914
|
-
|
|
915
|
-
{/* Related Icons */}
|
|
916
|
-
<div className="!space-y-8">
|
|
917
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
918
|
-
Related Icons
|
|
919
|
-
</h2>
|
|
920
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
921
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
922
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
923
|
-
<span className="text-2xl">⚠️</span>
|
|
924
|
-
</div>
|
|
925
|
-
<div>
|
|
926
|
-
<div className="font-medium text-white">AlertIcon</div>
|
|
927
|
-
<div className="text-xs text-white/60">
|
|
928
|
-
Warning states
|
|
929
|
-
</div>
|
|
930
|
-
</div>
|
|
931
|
-
</div>
|
|
932
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
933
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
934
|
-
<span className="text-2xl">ℹ️</span>
|
|
935
|
-
</div>
|
|
936
|
-
<div>
|
|
937
|
-
<div className="font-medium text-white">InfoIcon</div>
|
|
938
|
-
<div className="text-xs text-white/60">Information</div>
|
|
939
|
-
</div>
|
|
940
|
-
</div>
|
|
941
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
942
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
|
|
943
|
-
<span className="text-2xl">❌</span>
|
|
944
|
-
</div>
|
|
945
|
-
<div>
|
|
946
|
-
<div className="font-medium text-white">ErrorIcon</div>
|
|
947
|
-
<div className="text-xs text-white/60">Error states</div>
|
|
948
|
-
</div>
|
|
949
|
-
</div>
|
|
950
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
951
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
952
|
-
<span className="text-2xl">🔄</span>
|
|
953
|
-
</div>
|
|
954
|
-
<div>
|
|
955
|
-
<div className="font-medium text-white">LoadingIcon</div>
|
|
956
|
-
<div className="text-xs text-white/60">
|
|
957
|
-
Progress states
|
|
958
|
-
</div>
|
|
959
|
-
</div>
|
|
960
|
-
</div>
|
|
961
|
-
</div>
|
|
962
|
-
</div>
|
|
963
|
-
</div>
|
|
964
|
-
|
|
965
|
-
{/* Footer */}
|
|
966
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
967
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
968
|
-
<div className="!space-y-4 text-center">
|
|
969
|
-
<p className="!text-white/60">
|
|
970
|
-
CircleTickIcon is part of the Aural UI icon library,
|
|
971
|
-
designed for success feedback, task completion, and positive
|
|
972
|
-
user interactions.
|
|
973
|
-
</p>
|
|
974
|
-
<p className="text-sm !text-white/40">
|
|
975
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
976
|
-
compatibility and follow WCAG guidelines for positive
|
|
977
|
-
feedback elements.
|
|
978
|
-
</p>
|
|
979
|
-
</div>
|
|
53
|
+
}`,
|
|
54
|
+
livePreview: (
|
|
55
|
+
<div className="text-fm-primary font-fm-text flex items-center gap-2 text-sm">
|
|
56
|
+
<CircleTickIcon className="text-fm-icon-positive h-5 w-5" />
|
|
57
|
+
Completed
|
|
980
58
|
</div>
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
59
|
+
),
|
|
60
|
+
}}
|
|
61
|
+
relatedIcons={[
|
|
62
|
+
{
|
|
63
|
+
name: "TickCircleIcon",
|
|
64
|
+
description: "Filled tick circle",
|
|
65
|
+
icon: TickCircleIcon,
|
|
66
|
+
accentToken: "positive",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: "TickIcon",
|
|
70
|
+
description: "Simple checkmark",
|
|
71
|
+
icon: TickIcon,
|
|
72
|
+
accentToken: "info",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
name: "CrossIcon",
|
|
76
|
+
description: "Dismiss or close",
|
|
77
|
+
icon: CrossIcon,
|
|
78
|
+
accentToken: "negative",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "AlertIcon",
|
|
82
|
+
description: "Warning or alert",
|
|
83
|
+
icon: AlertIcon,
|
|
84
|
+
accentToken: "warning",
|
|
85
|
+
},
|
|
86
|
+
]}
|
|
87
|
+
/>
|
|
984
88
|
),
|
|
985
89
|
},
|
|
986
90
|
},
|
|
987
91
|
tags: ["autodocs"],
|
|
988
92
|
argTypes: {
|
|
989
|
-
|
|
990
|
-
control:
|
|
991
|
-
description: "
|
|
93
|
+
className: {
|
|
94
|
+
control: "text",
|
|
95
|
+
description: "CSS classes including color token",
|
|
992
96
|
},
|
|
993
97
|
withAccessibility: {
|
|
994
98
|
control: "boolean",
|
|
995
|
-
description: "
|
|
996
|
-
},
|
|
997
|
-
height: {
|
|
998
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
999
|
-
description: "Height of the icon in pixels",
|
|
1000
|
-
},
|
|
1001
|
-
fill: {
|
|
1002
|
-
control: "color",
|
|
1003
|
-
description: "Fill color of the icon",
|
|
1004
|
-
},
|
|
1005
|
-
className: {
|
|
1006
|
-
control: "text",
|
|
1007
|
-
description: "CSS classes for styling",
|
|
99
|
+
description: "Wrap with accessibility label",
|
|
1008
100
|
},
|
|
1009
101
|
},
|
|
1010
102
|
}
|
|
@@ -1012,201 +104,117 @@ function CompletionIcon({ label = "Completed", ...props }) {
|
|
|
1012
104
|
export default meta
|
|
1013
105
|
type Story = StoryObj<typeof CircleTickIcon>
|
|
1014
106
|
|
|
1015
|
-
// Story parameters for consistent dark theme
|
|
1016
|
-
const storyParameters = {
|
|
1017
|
-
backgrounds: {
|
|
1018
|
-
default: "dark",
|
|
1019
|
-
values: [
|
|
1020
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
1021
|
-
{ name: "darker", value: "#000000" },
|
|
1022
|
-
],
|
|
1023
|
-
},
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
107
|
export const Default: Story = {
|
|
1027
108
|
args: {
|
|
1028
|
-
|
|
1029
|
-
height: 24,
|
|
1030
|
-
className: "text-green-400",
|
|
109
|
+
className: "h-6 w-6 text-fm-icon-positive",
|
|
1031
110
|
withAccessibility: true,
|
|
1032
111
|
},
|
|
1033
|
-
parameters: storyParameters,
|
|
1034
112
|
render: (args) => (
|
|
1035
|
-
<
|
|
113
|
+
<IconDefaultCanvas>
|
|
1036
114
|
<CircleTickIcon {...args} />
|
|
1037
|
-
</
|
|
115
|
+
</IconDefaultCanvas>
|
|
1038
116
|
),
|
|
1039
117
|
}
|
|
1040
118
|
|
|
1041
119
|
export const SizeVariations: Story = {
|
|
1042
|
-
|
|
1043
|
-
...storyParameters,
|
|
1044
|
-
docs: {
|
|
1045
|
-
description: {
|
|
1046
|
-
story:
|
|
1047
|
-
"CircleTickIcon in different sizes, from small UI elements to large displays.",
|
|
1048
|
-
},
|
|
1049
|
-
},
|
|
1050
|
-
},
|
|
1051
|
-
render: () => (
|
|
1052
|
-
<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">
|
|
1053
|
-
<div className="text-center">
|
|
1054
|
-
<CircleTickIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
|
|
1055
|
-
<span className="text-xs text-white/60">12px</span>
|
|
1056
|
-
</div>
|
|
1057
|
-
<div className="text-center">
|
|
1058
|
-
<CircleTickIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
|
|
1059
|
-
<span className="text-xs text-white/60">16px</span>
|
|
1060
|
-
</div>
|
|
1061
|
-
<div className="text-center">
|
|
1062
|
-
<CircleTickIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
|
|
1063
|
-
<span className="text-xs text-white/60">20px</span>
|
|
1064
|
-
</div>
|
|
1065
|
-
<div className="text-center">
|
|
1066
|
-
<CircleTickIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
|
|
1067
|
-
<span className="text-xs text-white/60">24px</span>
|
|
1068
|
-
</div>
|
|
1069
|
-
<div className="text-center">
|
|
1070
|
-
<CircleTickIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
|
|
1071
|
-
<span className="text-xs text-white/60">32px</span>
|
|
1072
|
-
</div>
|
|
1073
|
-
<div className="text-center">
|
|
1074
|
-
<CircleTickIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
|
|
1075
|
-
<span className="text-xs text-white/60">48px</span>
|
|
1076
|
-
</div>
|
|
1077
|
-
</div>
|
|
1078
|
-
),
|
|
120
|
+
render: () => <IconSizeVariations icon={CircleTickIcon} />,
|
|
1079
121
|
}
|
|
1080
122
|
|
|
1081
123
|
export const ColorVariations: Story = {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
story:
|
|
1087
|
-
"CircleTickIcon in different semantic colors for various success states.",
|
|
1088
|
-
},
|
|
1089
|
-
},
|
|
1090
|
-
},
|
|
124
|
+
render: () => <IconColorVariations icon={CircleTickIcon} />,
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const InteractiveStates: Story = {
|
|
1091
128
|
render: () => (
|
|
1092
|
-
<
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
<div className="text-xs text-teal-400">text-teal-400</div>
|
|
1113
|
-
</div>
|
|
1114
|
-
<div className="text-center">
|
|
1115
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
|
|
1116
|
-
<CircleTickIcon className="h-8 w-8 text-blue-400" />
|
|
1117
|
-
</div>
|
|
1118
|
-
<div className="text-sm font-medium text-white">Info</div>
|
|
1119
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1120
|
-
</div>
|
|
1121
|
-
</div>
|
|
129
|
+
<IconInteractiveStates
|
|
130
|
+
icon={CircleTickIcon}
|
|
131
|
+
states={[
|
|
132
|
+
{
|
|
133
|
+
label: "Positive",
|
|
134
|
+
className: "h-8 w-8 text-fm-icon-positive",
|
|
135
|
+
description: "Completed state",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
label: "Active",
|
|
139
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
140
|
+
description: "Selected state",
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: "Inactive",
|
|
144
|
+
className: "h-8 w-8 text-fm-icon-inactive",
|
|
145
|
+
description: "Pending state",
|
|
146
|
+
},
|
|
147
|
+
]}
|
|
148
|
+
/>
|
|
1122
149
|
),
|
|
1123
150
|
}
|
|
1124
151
|
|
|
1125
152
|
export const UsageExamples: Story = {
|
|
1126
|
-
parameters: {
|
|
1127
|
-
...storyParameters,
|
|
1128
|
-
docs: {
|
|
1129
|
-
description: {
|
|
1130
|
-
story:
|
|
1131
|
-
"Real-world usage examples showing CircleTickIcon in different UI contexts.",
|
|
1132
|
-
},
|
|
1133
|
-
},
|
|
1134
|
-
},
|
|
1135
153
|
render: () => (
|
|
1136
|
-
<
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
154
|
+
<IconUsageCanvas>
|
|
155
|
+
<IconUsageSection title="Step Progress">
|
|
156
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-3 rounded-xl border p-4">
|
|
157
|
+
{[
|
|
158
|
+
{ step: "Account created", done: true },
|
|
159
|
+
{ step: "Profile completed", done: true },
|
|
160
|
+
{ step: "First upload", done: false },
|
|
161
|
+
].map(({ step, done }) => (
|
|
162
|
+
<div key={step} className="flex items-center gap-3">
|
|
163
|
+
<CircleTickIcon
|
|
164
|
+
className={`h-5 w-5 shrink-0 ${done ? "text-fm-icon-positive" : "text-fm-icon-inactive"}`}
|
|
165
|
+
/>
|
|
166
|
+
<span
|
|
167
|
+
className={`font-fm-text text-sm ${done ? "text-fm-primary" : "text-fm-secondary"}`}
|
|
168
|
+
>
|
|
169
|
+
{step}
|
|
170
|
+
</span>
|
|
1151
171
|
</div>
|
|
1152
|
-
|
|
172
|
+
))}
|
|
1153
173
|
</div>
|
|
1154
|
-
</
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
<span className="text-xs text-green-400">Completed</span>
|
|
1169
|
-
</div>
|
|
174
|
+
</IconUsageSection>
|
|
175
|
+
|
|
176
|
+
<IconUsageSection title="Plan Comparison">
|
|
177
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
|
|
178
|
+
{["Unlimited listens", "Offline downloads", "HD audio"].map(
|
|
179
|
+
(feature) => (
|
|
180
|
+
<div key={feature} className="flex items-center gap-2">
|
|
181
|
+
<CircleTickIcon className="text-fm-icon-positive h-4 w-4 shrink-0" />
|
|
182
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
183
|
+
{feature}
|
|
184
|
+
</span>
|
|
185
|
+
</div>
|
|
186
|
+
)
|
|
187
|
+
)}
|
|
1170
188
|
</div>
|
|
1171
|
-
</
|
|
189
|
+
</IconUsageSection>
|
|
1172
190
|
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
191
|
+
<IconUsageSection title="Onboarding Checklist">
|
|
192
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
193
|
+
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/10 flex items-center gap-3 rounded-lg border p-3">
|
|
194
|
+
<CircleTickIcon className="text-fm-icon-positive h-6 w-6 shrink-0" />
|
|
195
|
+
<div>
|
|
196
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
197
|
+
Setup complete
|
|
198
|
+
</div>
|
|
199
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
200
|
+
All steps finished
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</div>
|
|
1184
204
|
</div>
|
|
1185
|
-
</
|
|
1186
|
-
</
|
|
205
|
+
</IconUsageSection>
|
|
206
|
+
</IconUsageCanvas>
|
|
1187
207
|
),
|
|
1188
208
|
}
|
|
1189
209
|
|
|
1190
210
|
export const Playground: Story = {
|
|
1191
|
-
parameters: {
|
|
1192
|
-
...storyParameters,
|
|
1193
|
-
docs: {
|
|
1194
|
-
description: {
|
|
1195
|
-
story:
|
|
1196
|
-
"Interactive playground to experiment with different CircleTickIcon configurations.",
|
|
1197
|
-
},
|
|
1198
|
-
},
|
|
1199
|
-
},
|
|
1200
211
|
args: {
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
className: "text-green-400",
|
|
212
|
+
className: "h-8 w-8 text-fm-icon-positive",
|
|
213
|
+
withAccessibility: true,
|
|
1204
214
|
},
|
|
1205
215
|
render: (args) => (
|
|
1206
|
-
<
|
|
1207
|
-
<
|
|
1208
|
-
|
|
1209
|
-
</div>
|
|
1210
|
-
</div>
|
|
216
|
+
<IconPlaygroundCanvas>
|
|
217
|
+
<CircleTickIcon {...args} />
|
|
218
|
+
</IconPlaygroundCanvas>
|
|
1211
219
|
),
|
|
1212
220
|
}
|