aural-ui 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -1,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> = {
|
|
@@ -18,1027 +33,70 @@ const meta: Meta<typeof CircleTickIcon> = {
|
|
|
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: var(--color-fm-surface-primary) !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) !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: var(--color-fm-icon-active) !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
-
color: var(--color-fm-secondary-500) !important;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
color: var(--color-fm-icon-active) !important;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) !important;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !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="from-fm-surface-primary via-fm-icon-positive/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
98
|
-
{/* Header */}
|
|
99
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
100
|
-
<div className="from-fm-icon-positive/10 to-fm-icon-positive/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
101
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
102
|
-
<div className="!space-y-6 text-center">
|
|
103
|
-
<div className="border-fm-icon-positive/30 from-fm-icon-positive/20 to-fm-icon-positive/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
|
|
104
|
-
<CircleTickIcon className="text-fm-icon-positive h-12 w-12" />
|
|
105
|
-
</div>
|
|
106
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
|
-
CircleTickIcon
|
|
108
|
-
</h1>
|
|
109
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
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-fm-icon-positive text-3xl font-bold">
|
|
120
|
-
Success
|
|
121
|
-
</div>
|
|
122
|
-
<div className="text-fm-tertiary text-sm">
|
|
123
|
-
Positive feedback
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
127
|
-
<div className="text-center">
|
|
128
|
-
<div className="text-fm-icon-positive text-3xl font-bold">
|
|
129
|
-
Complete
|
|
130
|
-
</div>
|
|
131
|
-
<div className="text-fm-tertiary text-sm">
|
|
132
|
-
Task completion
|
|
133
|
-
</div>
|
|
134
|
-
</div>
|
|
135
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
136
|
-
<div className="text-center">
|
|
137
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
138
|
-
Verified
|
|
139
|
-
</div>
|
|
140
|
-
<div className="text-fm-tertiary text-sm">
|
|
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-fm-icon-active! text-center text-3xl font-bold">
|
|
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-fm-icon-positive! text-xl font-semibold">
|
|
159
|
-
Basic Usage
|
|
160
|
-
</h3>
|
|
161
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
162
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
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>
|
|
49
|
+
<CircleTickIcon className="h-5 w-5 text-fm-icon-positive" />
|
|
50
|
+
<span>Completed</span>
|
|
170
51
|
</div>
|
|
171
52
|
)
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
<div className="!space-y-4">
|
|
178
|
-
<h3 className="text-fm-icon-positive! text-xl font-semibold">
|
|
179
|
-
Live Preview
|
|
180
|
-
</h3>
|
|
181
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
182
|
-
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 flex items-center gap-3 rounded-lg border px-4 py-2">
|
|
183
|
-
<CircleTickIcon className="text-fm-icon-positive h-5 w-5" />
|
|
184
|
-
<span className="text-fm-icon-active">
|
|
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-fm-icon-active! text-center text-3xl font-bold">
|
|
196
|
-
Props & Configuration
|
|
197
|
-
</h2>
|
|
198
|
-
|
|
199
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
200
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
201
|
-
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
202
|
-
Props
|
|
203
|
-
</h3>
|
|
204
|
-
</div>
|
|
205
|
-
<table className="!my-0 w-full">
|
|
206
|
-
<thead className="bg-fm-surface-secondary">
|
|
207
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
208
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
209
|
-
Prop
|
|
210
|
-
</th>
|
|
211
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
212
|
-
Type
|
|
213
|
-
</th>
|
|
214
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
215
|
-
Default
|
|
216
|
-
</th>
|
|
217
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
218
|
-
Description
|
|
219
|
-
</th>
|
|
220
|
-
</tr>
|
|
221
|
-
</thead>
|
|
222
|
-
<tbody>
|
|
223
|
-
{" "}
|
|
224
|
-
<tr className="bg-fm-surface-secondary!">
|
|
225
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
226
|
-
withAccessibility
|
|
227
|
-
</td>
|
|
228
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
229
|
-
boolean
|
|
230
|
-
</td>
|
|
231
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
232
|
-
true
|
|
233
|
-
</td>
|
|
234
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
235
|
-
Whether to wrap the icon with accessibility feature
|
|
236
|
-
</td>
|
|
237
|
-
</tr>
|
|
238
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
239
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
240
|
-
height
|
|
241
|
-
</td>
|
|
242
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
243
|
-
number | string
|
|
244
|
-
</td>
|
|
245
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
246
|
-
16
|
|
247
|
-
</td>
|
|
248
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
249
|
-
Height of the icon in pixels
|
|
250
|
-
</td>
|
|
251
|
-
</tr>
|
|
252
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
253
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
254
|
-
fill
|
|
255
|
-
</td>
|
|
256
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
257
|
-
string
|
|
258
|
-
</td>
|
|
259
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
260
|
-
currentColor
|
|
261
|
-
</td>
|
|
262
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
263
|
-
Fill color of the icon
|
|
264
|
-
</td>
|
|
265
|
-
</tr>
|
|
266
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
267
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
268
|
-
className
|
|
269
|
-
</td>
|
|
270
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
271
|
-
string
|
|
272
|
-
</td>
|
|
273
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
274
|
-
-
|
|
275
|
-
</td>
|
|
276
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
277
|
-
CSS classes for styling
|
|
278
|
-
</td>
|
|
279
|
-
</tr>
|
|
280
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
281
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
282
|
-
viewBox
|
|
283
|
-
</td>
|
|
284
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
285
|
-
string
|
|
286
|
-
</td>
|
|
287
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
288
|
-
"0 0 16 16"
|
|
289
|
-
</td>
|
|
290
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
291
|
-
SVG viewBox for scaling
|
|
292
|
-
</td>
|
|
293
|
-
</tr>
|
|
294
|
-
<tr className="bg-fm-surface-secondary!">
|
|
295
|
-
<td className="text-fm-icon-positive! px-6 py-4 font-mono text-sm">
|
|
296
|
-
...svgProps
|
|
297
|
-
</td>
|
|
298
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
299
|
-
SVGProps
|
|
300
|
-
</td>
|
|
301
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
302
|
-
-
|
|
303
|
-
</td>
|
|
304
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
305
|
-
All standard SVG element props
|
|
306
|
-
</td>
|
|
307
|
-
</tr>
|
|
308
|
-
</tbody>
|
|
309
|
-
</table>
|
|
310
|
-
</div>
|
|
311
|
-
</div>
|
|
312
|
-
|
|
313
|
-
{/* Size Variations */}
|
|
314
|
-
<div className="!space-y-8">
|
|
315
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
316
|
-
Size Variations
|
|
317
|
-
</h2>
|
|
318
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
319
|
-
<div className="!space-y-6">
|
|
320
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
321
|
-
<div className="!space-y-4">
|
|
322
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
323
|
-
Standard Sizes
|
|
324
|
-
</h3>
|
|
325
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
326
|
-
<div className="text-center">
|
|
327
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
328
|
-
<span className="text-fm-tertiary text-xs">
|
|
329
|
-
12px
|
|
330
|
-
</span>
|
|
331
|
-
</div>
|
|
332
|
-
<div className="text-center">
|
|
333
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
334
|
-
<span className="text-fm-tertiary text-xs">
|
|
335
|
-
16px
|
|
336
|
-
</span>
|
|
337
|
-
</div>
|
|
338
|
-
<div className="text-center">
|
|
339
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
340
|
-
<span className="text-fm-tertiary text-xs">
|
|
341
|
-
20px
|
|
342
|
-
</span>
|
|
343
|
-
</div>
|
|
344
|
-
<div className="text-center">
|
|
345
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
346
|
-
<span className="text-fm-tertiary text-xs">
|
|
347
|
-
24px
|
|
348
|
-
</span>
|
|
349
|
-
</div>
|
|
350
|
-
<div className="text-center">
|
|
351
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
352
|
-
<span className="text-fm-tertiary text-xs">
|
|
353
|
-
32px
|
|
354
|
-
</span>
|
|
355
|
-
</div>
|
|
356
|
-
<div className="text-center">
|
|
357
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
358
|
-
<span className="text-fm-tertiary text-xs">
|
|
359
|
-
48px
|
|
360
|
-
</span>
|
|
361
|
-
</div>
|
|
362
|
-
</div>
|
|
363
|
-
</div>
|
|
364
|
-
|
|
365
|
-
<div className="!space-y-4">
|
|
366
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
367
|
-
Code Example
|
|
368
|
-
</h3>
|
|
369
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
370
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
371
|
-
{`// Small (16px)
|
|
372
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
373
|
-
|
|
374
|
-
// Medium (24px)
|
|
375
|
-
<CircleTickIcon className="h-6 w-6" />
|
|
376
|
-
|
|
377
|
-
// Large (32px)
|
|
378
|
-
<CircleTickIcon className="h-8 w-8" />
|
|
379
|
-
|
|
380
|
-
// Custom size
|
|
381
|
-
<CircleTickIcon width={40} height={40} />
|
|
382
|
-
|
|
383
|
-
// Responsive sizing
|
|
384
|
-
<CircleTickIcon className="h-4 w-4 md:h-6 md:w-6 lg:h-8 lg:w-8" />`}
|
|
385
|
-
</pre>
|
|
386
|
-
</div>
|
|
387
|
-
</div>
|
|
388
|
-
</div>
|
|
389
|
-
</div>
|
|
390
|
-
</div>
|
|
391
|
-
</div>
|
|
392
|
-
|
|
393
|
-
{/* Color Variations */}
|
|
394
|
-
<div className="!space-y-8">
|
|
395
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
396
|
-
Color Variations
|
|
397
|
-
</h2>
|
|
398
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
399
|
-
<div className="!space-y-4">
|
|
400
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
401
|
-
Semantic Colors
|
|
402
|
-
</h3>
|
|
403
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
404
|
-
<div className="flex items-center gap-4">
|
|
405
|
-
<CircleTickIcon className="text-fm-icon-positive h-6 w-6" />
|
|
406
|
-
<div>
|
|
407
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
408
|
-
Success
|
|
409
|
-
</div>
|
|
410
|
-
<div className="text-fm-tertiary text-xs">
|
|
411
|
-
text-fm-icon-positive
|
|
412
|
-
</div>
|
|
413
|
-
</div>
|
|
414
|
-
</div>
|
|
415
|
-
<div className="flex items-center gap-4">
|
|
416
|
-
<CircleTickIcon className="text-fm-icon-positive h-6 w-6" />
|
|
417
|
-
<div>
|
|
418
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
419
|
-
Complete
|
|
420
|
-
</div>
|
|
421
|
-
<div className="text-fm-tertiary text-xs">
|
|
422
|
-
text-fm-icon-positive
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
</div>
|
|
426
|
-
<div className="flex items-center gap-4">
|
|
427
|
-
<CircleTickIcon className="text-fm-icon-info h-6 w-6" />
|
|
428
|
-
<div>
|
|
429
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
430
|
-
Verified
|
|
431
|
-
</div>
|
|
432
|
-
<div className="text-fm-tertiary text-xs">
|
|
433
|
-
text-fm-icon-info
|
|
434
|
-
</div>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
<div className="flex items-center gap-4">
|
|
438
|
-
<CircleTickIcon className="text-fm-icon-info h-6 w-6" />
|
|
439
|
-
<div>
|
|
440
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
441
|
-
Info
|
|
442
|
-
</div>
|
|
443
|
-
<div className="text-fm-tertiary text-xs">
|
|
444
|
-
text-fm-icon-info
|
|
445
|
-
</div>
|
|
446
|
-
</div>
|
|
447
|
-
</div>
|
|
448
|
-
</div>
|
|
449
|
-
</div>
|
|
450
|
-
|
|
451
|
-
<div className="!space-y-4">
|
|
452
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
453
|
-
Custom Colors
|
|
454
|
-
</h3>
|
|
455
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
456
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
457
|
-
{`// Using Tailwind classes
|
|
458
|
-
<CircleTickIcon className="h-6 w-6 text-green-400" />
|
|
459
|
-
<CircleTickIcon className="h-6 w-6 text-emerald-500" />
|
|
460
|
-
|
|
461
|
-
// Using CSS custom properties
|
|
462
|
-
<CircleTickIcon
|
|
463
|
-
className="h-6 w-6"
|
|
464
|
-
style={{ color: 'var(--color-success)' }}
|
|
465
|
-
/>
|
|
466
|
-
|
|
467
|
-
// Direct fill prop
|
|
468
|
-
<CircleTickIcon
|
|
469
|
-
width={24}
|
|
470
|
-
height={24}
|
|
471
|
-
fill="#10b981"
|
|
472
|
-
/>
|
|
473
|
-
|
|
474
|
-
// With opacity
|
|
475
|
-
<CircleTickIcon className="h-6 w-6 text-green-400 opacity-80" />`}
|
|
476
|
-
</pre>
|
|
477
|
-
</div>
|
|
478
|
-
</div>
|
|
479
|
-
</div>
|
|
480
|
-
</div>
|
|
481
|
-
|
|
482
|
-
{/* Usage Examples */}
|
|
483
|
-
<div className="!space-y-8">
|
|
484
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
485
|
-
Usage Examples
|
|
486
|
-
</h2>
|
|
487
|
-
|
|
488
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
489
|
-
{/* Success Message */}
|
|
490
|
-
<div className="!space-y-4">
|
|
491
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
492
|
-
Success Messages
|
|
493
|
-
</h3>
|
|
494
|
-
<div className="!space-y-4">
|
|
495
|
-
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 rounded-lg border p-4">
|
|
496
|
-
<div className="flex items-start gap-3">
|
|
497
|
-
<CircleTickIcon className="text-fm-icon-positive mt-0.5 h-5 w-5 flex-shrink-0" />
|
|
498
|
-
<div>
|
|
499
|
-
<h4 className="text-fm-icon-positive! font-medium">
|
|
500
|
-
Account Created Successfully
|
|
501
|
-
</h4>
|
|
502
|
-
<p className="text-fm-icon-positive!/80 text-sm">
|
|
503
|
-
Welcome to Aural UI! Your account has been set up
|
|
504
|
-
and you're ready to start building.
|
|
505
|
-
</p>
|
|
506
|
-
</div>
|
|
507
|
-
</div>
|
|
508
|
-
</div>
|
|
509
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
510
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
511
|
-
{`<div className="border border-green-500/20 bg-green-500/10 p-4 rounded-lg">
|
|
512
|
-
<div className="flex items-start gap-3">
|
|
513
|
-
<CircleTickIcon className="h-5 w-5 text-green-400 mt-0.5 flex-shrink-0" />
|
|
514
|
-
<div>
|
|
515
|
-
<h4 className="font-medium text-green-200">Account Created Successfully</h4>
|
|
516
|
-
<p className="text-sm text-green-300/80">
|
|
517
|
-
Welcome to Aural UI! Your account has been set up and you're ready to start building.
|
|
518
|
-
</p>
|
|
519
|
-
</div>
|
|
520
|
-
</div>
|
|
521
|
-
</div>`}
|
|
522
|
-
</pre>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
</div>
|
|
526
|
-
|
|
527
|
-
{/* Task Completion */}
|
|
528
|
-
<div className="!space-y-4">
|
|
529
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
530
|
-
Task Completion
|
|
531
|
-
</h3>
|
|
532
|
-
<div className="!space-y-4">
|
|
533
|
-
<div className="!space-y-3">
|
|
534
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
535
|
-
<CircleTickIcon className="text-fm-icon-positive h-5 w-5" />
|
|
536
|
-
<span className="text-fm-icon-active flex-1">
|
|
537
|
-
Set up project repository
|
|
538
|
-
</span>
|
|
539
|
-
<span className="text-fm-icon-positive text-xs">
|
|
540
|
-
Completed
|
|
541
|
-
</span>
|
|
542
|
-
</div>
|
|
543
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
544
|
-
<CircleTickIcon className="text-fm-icon-positive h-5 w-5" />
|
|
545
|
-
<span className="text-fm-icon-active flex-1">
|
|
546
|
-
Install dependencies
|
|
547
|
-
</span>
|
|
548
|
-
<span className="text-fm-icon-positive text-xs">
|
|
549
|
-
Completed
|
|
550
|
-
</span>
|
|
551
|
-
</div>
|
|
552
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3 opacity-50">
|
|
553
|
-
<div className="border-fm-divider-primary h-5 w-5 rounded-full border-2"></div>
|
|
554
|
-
<span className="text-fm-secondary flex-1">
|
|
555
|
-
Configure development environment
|
|
556
|
-
</span>
|
|
557
|
-
<span className="text-fm-placeholder text-xs">
|
|
558
|
-
Pending
|
|
559
|
-
</span>
|
|
560
|
-
</div>
|
|
561
|
-
</div>
|
|
562
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
563
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
564
|
-
{`// Completed task
|
|
565
|
-
<div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg">
|
|
566
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
567
|
-
<span className="flex-1 text-white">Set up project repository</span>
|
|
568
|
-
<span className="text-xs text-green-400">Completed</span>
|
|
569
|
-
</div>
|
|
570
|
-
|
|
571
|
-
// Pending task
|
|
572
|
-
<div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg opacity-50">
|
|
573
|
-
<div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
|
|
574
|
-
<span className="flex-1 text-white/70">Configure development environment</span>
|
|
575
|
-
<span className="text-xs text-white/50">Pending</span>
|
|
576
|
-
</div>`}
|
|
577
|
-
</pre>
|
|
578
|
-
</div>
|
|
579
|
-
</div>
|
|
580
|
-
</div>
|
|
581
|
-
|
|
582
|
-
{/* Form Validation */}
|
|
583
|
-
<div className="!space-y-4">
|
|
584
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
585
|
-
Form Validation
|
|
586
|
-
</h3>
|
|
587
|
-
<div className="!space-y-4">
|
|
588
|
-
<div className="!space-y-2">
|
|
589
|
-
<label className="text-fm-icon-active! text-sm font-medium">
|
|
590
|
-
Email Address
|
|
591
|
-
</label>
|
|
592
|
-
<div className="relative">
|
|
593
|
-
<input
|
|
594
|
-
type="email"
|
|
595
|
-
className="border-fm-icon-positive/50 bg-fm-surface-secondary text-fm-icon-active! focus:border-fm-icon-positive w-full rounded-lg border px-3 py-2 pr-10 focus:ring-2 focus:ring-green-500/20"
|
|
596
|
-
placeholder="Enter your email"
|
|
597
|
-
defaultValue="user@example.com"
|
|
598
|
-
/>
|
|
599
|
-
<CircleTickIcon className="text-fm-icon-positive absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2" />
|
|
600
|
-
</div>
|
|
601
|
-
<div className="text-fm-icon-positive flex items-center gap-2 text-sm">
|
|
602
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
603
|
-
<span>Valid email address</span>
|
|
604
|
-
</div>
|
|
605
|
-
</div>
|
|
606
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
607
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
608
|
-
{`// Input with validation icon
|
|
609
|
-
<div className="relative">
|
|
610
|
-
<input className="pr-10 border-green-500/50" />
|
|
611
|
-
<CircleTickIcon className="absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-green-400" />
|
|
612
|
-
</div>
|
|
613
|
-
|
|
614
|
-
// Success message
|
|
615
|
-
<div className="flex items-center gap-2 text-sm text-green-400">
|
|
616
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
617
|
-
<span>Valid email address</span>
|
|
618
|
-
</div>`}
|
|
619
|
-
</pre>
|
|
620
|
-
</div>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
|
|
624
|
-
{/* Button States */}
|
|
625
|
-
<div className="!space-y-4">
|
|
626
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
627
|
-
Button States
|
|
628
|
-
</h3>
|
|
629
|
-
<div className="!space-y-4">
|
|
630
|
-
<div className="flex gap-4">
|
|
631
|
-
<button className="border-fm-icon-positive/30 bg-fm-icon-positive/20 text-fm-icon-positive hover:bg-fm-icon-positive/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
|
|
632
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
633
|
-
Mark Complete
|
|
634
|
-
</button>
|
|
635
|
-
<button
|
|
636
|
-
className="border-fm-icon-positive/30 bg-fm-icon-positive/20 text-fm-icon-positive hover:bg-fm-icon-positive/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors"
|
|
637
|
-
disabled
|
|
638
|
-
>
|
|
639
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
640
|
-
Already Completed
|
|
641
|
-
</button>
|
|
642
|
-
</div>
|
|
643
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
644
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
645
|
-
{`// Success action button
|
|
646
|
-
<button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-4 py-2 rounded-lg">
|
|
647
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
648
|
-
Mark Complete
|
|
649
|
-
</button>
|
|
650
|
-
|
|
651
|
-
// Completed state
|
|
652
|
-
<button className="flex items-center gap-2 bg-emerald-500/20 border border-emerald-500/30 px-4 py-2 rounded-lg" disabled>
|
|
653
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
654
|
-
Already Completed
|
|
655
|
-
</button>`}
|
|
656
|
-
</pre>
|
|
657
|
-
</div>
|
|
658
|
-
</div>
|
|
659
|
-
</div>
|
|
660
|
-
|
|
661
|
-
{/* Verification Badge */}
|
|
662
|
-
<div className="!space-y-4">
|
|
663
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
664
|
-
Verification Badge
|
|
665
|
-
</h3>
|
|
666
|
-
<div className="!space-y-4">
|
|
667
|
-
<div className="flex items-center gap-3">
|
|
668
|
-
<div className="bg-fm-icon-info/20 h-12 w-12 rounded-full"></div>
|
|
669
|
-
<div>
|
|
670
|
-
<div className="flex items-center gap-2">
|
|
671
|
-
<span className="text-fm-icon-active font-medium">
|
|
672
|
-
John Doe
|
|
673
|
-
</span>
|
|
674
|
-
<CircleTickIcon className="text-fm-icon-info h-4 w-4" />
|
|
675
|
-
</div>
|
|
676
|
-
<p className="text-fm-tertiary! text-sm">
|
|
677
|
-
Verified Account
|
|
678
|
-
</p>
|
|
679
|
-
</div>
|
|
680
|
-
</div>
|
|
681
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
682
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
683
|
-
{`<div className="flex items-center gap-3">
|
|
684
|
-
<div className="h-12 w-12 rounded-full bg-blue-500/20"></div>
|
|
685
|
-
<div>
|
|
686
|
-
<div className="flex items-center gap-2">
|
|
687
|
-
<span className="font-medium text-white">John Doe</span>
|
|
688
|
-
<CircleTickIcon className="h-4 w-4 text-blue-400" />
|
|
689
|
-
</div>
|
|
690
|
-
<p className="text-sm text-white/60">Verified Account</p>
|
|
691
|
-
</div>
|
|
692
|
-
</div>`}
|
|
693
|
-
</pre>
|
|
694
|
-
</div>
|
|
695
|
-
</div>
|
|
696
|
-
</div>
|
|
697
|
-
|
|
698
|
-
{/* Toast Notification */}
|
|
699
|
-
<div className="!space-y-4">
|
|
700
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
701
|
-
Toast Notification
|
|
702
|
-
</h3>
|
|
703
|
-
<div className="!space-y-4">
|
|
704
|
-
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 flex items-start gap-3 rounded-lg border p-4 shadow-lg">
|
|
705
|
-
<CircleTickIcon className="animate-tick-bounce text-fm-icon-positive h-5 w-5" />
|
|
706
|
-
<div className="flex-1">
|
|
707
|
-
<p className="text-fm-icon-positive! font-medium">
|
|
708
|
-
File uploaded successfully
|
|
709
|
-
</p>
|
|
710
|
-
<p className="text-fm-icon-positive!/80 text-sm">
|
|
711
|
-
Your document has been saved.
|
|
712
|
-
</p>
|
|
713
|
-
</div>
|
|
714
|
-
<button className="text-fm-icon-positive hover:text-fm-icon-positive">
|
|
715
|
-
✕
|
|
716
|
-
</button>
|
|
717
|
-
</div>
|
|
718
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
719
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
720
|
-
{`<div className="flex items-center gap-3 p-4 border border-green-500/20 bg-green-500/10 rounded-lg shadow-lg">
|
|
721
|
-
<CircleTickIcon className="h-5 w-5 text-green-400 animate-bounce" />
|
|
722
|
-
<div className="flex-1">
|
|
723
|
-
<p className="font-medium text-green-200">File uploaded successfully</p>
|
|
724
|
-
<p className="text-sm text-green-300/80">Your document has been saved.</p>
|
|
725
|
-
</div>
|
|
726
|
-
<button className="text-green-400 hover:text-green-300">✕</button>
|
|
727
|
-
</div>`}
|
|
728
|
-
</pre>
|
|
729
|
-
</div>
|
|
730
|
-
</div>
|
|
731
|
-
</div>
|
|
732
|
-
</div>
|
|
733
|
-
</div>
|
|
734
|
-
|
|
735
|
-
{/* Interactive States */}
|
|
736
|
-
<div className="!space-y-8">
|
|
737
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
738
|
-
Interactive States & Animations
|
|
739
|
-
</h2>
|
|
740
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
741
|
-
<div className="!space-y-4">
|
|
742
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
743
|
-
Animation Effects
|
|
744
|
-
</h3>
|
|
745
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
746
|
-
<div className="flex items-center gap-4">
|
|
747
|
-
<CircleTickIcon className="animate-tick-bounce text-fm-icon-positive h-8 w-8" />
|
|
748
|
-
<div>
|
|
749
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
750
|
-
Bounce Effect
|
|
751
|
-
</div>
|
|
752
|
-
<div className="text-fm-tertiary text-xs">
|
|
753
|
-
On completion
|
|
754
|
-
</div>
|
|
755
|
-
</div>
|
|
756
|
-
</div>
|
|
757
|
-
<div className="flex items-center gap-4">
|
|
758
|
-
<CircleTickIcon className="animate-tick-pulse text-fm-icon-positive h-8 w-8" />
|
|
759
|
-
<div>
|
|
760
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
761
|
-
Pulse Animation
|
|
762
|
-
</div>
|
|
763
|
-
<div className="text-fm-tertiary text-xs">
|
|
764
|
-
Continuous feedback
|
|
765
|
-
</div>
|
|
766
|
-
</div>
|
|
767
|
-
</div>
|
|
768
|
-
<div className="flex items-center gap-4">
|
|
769
|
-
<CircleTickIcon className="text-fm-icon-positive h-8 w-8 transition-transform hover:scale-110" />
|
|
770
|
-
<div>
|
|
771
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
772
|
-
Hover Scale
|
|
773
|
-
</div>
|
|
774
|
-
<div className="text-fm-tertiary text-xs">
|
|
775
|
-
Interactive growth
|
|
776
|
-
</div>
|
|
777
|
-
</div>
|
|
778
|
-
</div>
|
|
779
|
-
<div className="flex items-center gap-4">
|
|
780
|
-
<CircleTickIcon className="text-fm-icon-positive hover:text-fm-icon-positive h-8 w-8 transition-colors" />
|
|
781
|
-
<div>
|
|
782
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
783
|
-
Color Transition
|
|
784
|
-
</div>
|
|
785
|
-
<div className="text-fm-tertiary text-xs">
|
|
786
|
-
Smooth color change
|
|
787
|
-
</div>
|
|
788
|
-
</div>
|
|
789
|
-
</div>
|
|
790
|
-
</div>
|
|
791
|
-
</div>
|
|
792
|
-
|
|
793
|
-
<div className="!space-y-4">
|
|
794
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
795
|
-
Interactive Examples
|
|
796
|
-
</h3>
|
|
797
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
798
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
799
|
-
{`// Bounce animation on completion
|
|
800
|
-
<CircleTickIcon className="h-8 w-8 text-green-400 animate-bounce" />
|
|
801
|
-
|
|
802
|
-
// Custom bounce animation
|
|
803
|
-
@keyframes tick-bounce {
|
|
804
|
-
0%, 100% { transform: scale(1); }
|
|
805
|
-
50% { transform: scale(1.1); }
|
|
806
|
-
}
|
|
807
|
-
.animate-tick-bounce {
|
|
808
|
-
animation: tick-bounce 0.6s ease-in-out;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
// Hover interactions
|
|
812
|
-
<CircleTickIcon className="h-8 w-8 text-green-400 transition-transform hover:scale-110" />
|
|
813
|
-
|
|
814
|
-
// Button with animated icon
|
|
815
|
-
<button className="group flex items-center gap-2">
|
|
816
|
-
<CircleTickIcon className="h-5 w-5 transition-transform group-hover:scale-105" />
|
|
817
|
-
<span>Complete Task</span>
|
|
818
|
-
</button>
|
|
819
|
-
|
|
820
|
-
// Conditional animation
|
|
821
|
-
{isCompleted && (
|
|
822
|
-
<CircleTickIcon className="h-6 w-6 text-green-400 animate-bounce" />
|
|
823
|
-
)}`}
|
|
824
|
-
</pre>
|
|
825
|
-
</div>
|
|
826
|
-
</div>
|
|
827
|
-
</div>
|
|
828
|
-
</div>
|
|
829
|
-
|
|
830
|
-
{/* Accessibility */}
|
|
831
|
-
<div className="!space-y-8">
|
|
832
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
833
|
-
Accessibility Features
|
|
834
|
-
</h2>
|
|
835
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
836
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
837
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
838
|
-
✅ Built-in Features
|
|
839
|
-
</h3>
|
|
840
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
841
|
-
<li className="text-fm-secondary!">
|
|
842
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
843
|
-
</li>
|
|
844
|
-
<li className="text-fm-secondary!">
|
|
845
|
-
Provides screen reader label "Tick Circle icon"
|
|
846
|
-
</li>
|
|
847
|
-
<li className="text-fm-secondary!">
|
|
848
|
-
Supports keyboard navigation when interactive
|
|
849
|
-
</li>
|
|
850
|
-
<li className="text-fm-secondary!">
|
|
851
|
-
Maintains proper color contrast ratios
|
|
852
|
-
</li>
|
|
853
|
-
<li className="text-fm-secondary!">
|
|
854
|
-
Scales with user's font size preferences
|
|
855
|
-
</li>
|
|
856
|
-
</ul>
|
|
857
|
-
</div>
|
|
858
|
-
|
|
859
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
860
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
861
|
-
💡 Best Practices
|
|
862
|
-
</h3>
|
|
863
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
864
|
-
<li className="text-fm-secondary!">
|
|
865
|
-
Always pair with descriptive text
|
|
866
|
-
</li>
|
|
867
|
-
<li className="text-fm-secondary!">
|
|
868
|
-
Use consistent colors for success states
|
|
869
|
-
</li>
|
|
870
|
-
<li className="text-fm-secondary!">
|
|
871
|
-
Ensure sufficient color contrast
|
|
872
|
-
</li>
|
|
873
|
-
<li className="text-fm-secondary!">
|
|
874
|
-
Add focus states for interactive elements
|
|
875
|
-
</li>
|
|
876
|
-
<li className="text-fm-secondary!">
|
|
877
|
-
Consider motion sensitivity for animations
|
|
878
|
-
</li>
|
|
879
|
-
</ul>
|
|
880
|
-
</div>
|
|
881
|
-
</div>
|
|
882
|
-
|
|
883
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
884
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
885
|
-
Custom Accessibility Implementation
|
|
886
|
-
</h3>
|
|
887
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
888
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
889
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
890
|
-
{`// Custom implementation with specific label
|
|
891
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
892
|
-
|
|
893
|
-
function CompletionIcon({ label = "Completed", ...props }) {
|
|
894
|
-
return (
|
|
895
|
-
<AccessibleIcon label={label}>
|
|
896
|
-
<CircleTickIcon {...props} />
|
|
897
|
-
</AccessibleIcon>
|
|
898
|
-
)
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
// Usage with specific context
|
|
902
|
-
<CompletionIcon
|
|
903
|
-
label="Task completed successfully"
|
|
904
|
-
className="h-4 w-4 text-green-400"
|
|
905
|
-
/>
|
|
906
|
-
|
|
907
|
-
// ARIA attributes for complex interactions
|
|
908
|
-
<button
|
|
909
|
-
aria-label="Mark task as complete"
|
|
910
|
-
aria-pressed={isCompleted}
|
|
911
|
-
onClick={handleComplete}
|
|
912
|
-
>
|
|
913
|
-
<CircleTickIcon className="h-5 w-5 text-green-400" />
|
|
914
|
-
</button>`}
|
|
915
|
-
</pre>
|
|
916
|
-
</div>
|
|
917
|
-
<div className="!space-y-4">
|
|
918
|
-
<p className="text-fm-secondary! text-sm">
|
|
919
|
-
When using CircleTickIcon for task completion or success
|
|
920
|
-
states, provide clear context about what was completed
|
|
921
|
-
or verified. The built-in accessible label helps screen
|
|
922
|
-
readers understand the positive nature of the icon.
|
|
923
|
-
</p>
|
|
924
|
-
<div className="border-fm-icon-positive/20 bg-fm-icon-positive/10 rounded-lg border p-4">
|
|
925
|
-
<div className="text-fm-icon-positive flex items-center gap-2 text-sm">
|
|
926
|
-
<CircleTickIcon className="h-4 w-4" />
|
|
927
|
-
<span>
|
|
928
|
-
This ensures all users understand successful actions
|
|
929
|
-
</span>
|
|
930
|
-
</div>
|
|
931
|
-
</div>
|
|
932
|
-
</div>
|
|
933
|
-
</div>
|
|
934
|
-
</div>
|
|
935
|
-
</div>
|
|
936
|
-
|
|
937
|
-
{/* Related Icons */}
|
|
938
|
-
<div className="!space-y-8">
|
|
939
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
940
|
-
Related Icons
|
|
941
|
-
</h2>
|
|
942
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
943
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
944
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
945
|
-
<span className="text-2xl">⚠️</span>
|
|
946
|
-
</div>
|
|
947
|
-
<div>
|
|
948
|
-
<div className="text-fm-icon-active font-medium">
|
|
949
|
-
AlertIcon
|
|
950
|
-
</div>
|
|
951
|
-
<div className="text-fm-tertiary text-xs">
|
|
952
|
-
Warning states
|
|
953
|
-
</div>
|
|
954
|
-
</div>
|
|
955
|
-
</div>
|
|
956
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
957
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
958
|
-
<span className="text-2xl">ℹ️</span>
|
|
959
|
-
</div>
|
|
960
|
-
<div>
|
|
961
|
-
<div className="text-fm-icon-active font-medium">
|
|
962
|
-
InfoIcon
|
|
963
|
-
</div>
|
|
964
|
-
<div className="text-fm-tertiary text-xs">
|
|
965
|
-
Information
|
|
966
|
-
</div>
|
|
967
|
-
</div>
|
|
968
|
-
</div>
|
|
969
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
970
|
-
<div className="bg-fm-icon-negative/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
971
|
-
<span className="text-2xl">❌</span>
|
|
972
|
-
</div>
|
|
973
|
-
<div>
|
|
974
|
-
<div className="text-fm-icon-active font-medium">
|
|
975
|
-
ErrorIcon
|
|
976
|
-
</div>
|
|
977
|
-
<div className="text-fm-tertiary text-xs">
|
|
978
|
-
Error states
|
|
979
|
-
</div>
|
|
980
|
-
</div>
|
|
981
|
-
</div>
|
|
982
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
983
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
984
|
-
<span className="text-2xl">🔄</span>
|
|
985
|
-
</div>
|
|
986
|
-
<div>
|
|
987
|
-
<div className="text-fm-icon-active font-medium">
|
|
988
|
-
LoadingIcon
|
|
989
|
-
</div>
|
|
990
|
-
<div className="text-fm-tertiary text-xs">
|
|
991
|
-
Progress states
|
|
992
|
-
</div>
|
|
993
|
-
</div>
|
|
994
|
-
</div>
|
|
995
|
-
</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
|
|
996
58
|
</div>
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
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
|
+
/>
|
|
1018
88
|
),
|
|
1019
89
|
},
|
|
1020
90
|
},
|
|
1021
91
|
tags: ["autodocs"],
|
|
1022
92
|
argTypes: {
|
|
1023
|
-
|
|
1024
|
-
control:
|
|
1025
|
-
description: "
|
|
93
|
+
className: {
|
|
94
|
+
control: "text",
|
|
95
|
+
description: "CSS classes including color token",
|
|
1026
96
|
},
|
|
1027
97
|
withAccessibility: {
|
|
1028
98
|
control: "boolean",
|
|
1029
|
-
description: "
|
|
1030
|
-
},
|
|
1031
|
-
height: {
|
|
1032
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
1033
|
-
description: "Height of the icon in pixels",
|
|
1034
|
-
},
|
|
1035
|
-
fill: {
|
|
1036
|
-
control: "color",
|
|
1037
|
-
description: "Fill color of the icon",
|
|
1038
|
-
},
|
|
1039
|
-
className: {
|
|
1040
|
-
control: "text",
|
|
1041
|
-
description: "CSS classes for styling",
|
|
99
|
+
description: "Wrap with accessibility label",
|
|
1042
100
|
},
|
|
1043
101
|
},
|
|
1044
102
|
}
|
|
@@ -1046,215 +104,117 @@ function CompletionIcon({ label = "Completed", ...props }) {
|
|
|
1046
104
|
export default meta
|
|
1047
105
|
type Story = StoryObj<typeof CircleTickIcon>
|
|
1048
106
|
|
|
1049
|
-
// Story parameters for consistent dark theme
|
|
1050
|
-
const storyParameters = {
|
|
1051
|
-
backgrounds: {
|
|
1052
|
-
default: "dark",
|
|
1053
|
-
values: [
|
|
1054
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
1055
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
1056
|
-
],
|
|
1057
|
-
},
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
107
|
export const Default: Story = {
|
|
1061
108
|
args: {
|
|
1062
|
-
|
|
1063
|
-
height: 24,
|
|
1064
|
-
className: "text-fm-icon-positive",
|
|
109
|
+
className: "h-6 w-6 text-fm-icon-positive",
|
|
1065
110
|
withAccessibility: true,
|
|
1066
111
|
},
|
|
1067
|
-
parameters: storyParameters,
|
|
1068
112
|
render: (args) => (
|
|
1069
|
-
<
|
|
113
|
+
<IconDefaultCanvas>
|
|
1070
114
|
<CircleTickIcon {...args} />
|
|
1071
|
-
</
|
|
115
|
+
</IconDefaultCanvas>
|
|
1072
116
|
),
|
|
1073
117
|
}
|
|
1074
118
|
|
|
1075
119
|
export const SizeVariations: Story = {
|
|
1076
|
-
|
|
1077
|
-
...storyParameters,
|
|
1078
|
-
docs: {
|
|
1079
|
-
description: {
|
|
1080
|
-
story:
|
|
1081
|
-
"CircleTickIcon in different sizes, from small UI elements to large displays.",
|
|
1082
|
-
},
|
|
1083
|
-
},
|
|
1084
|
-
},
|
|
1085
|
-
render: () => (
|
|
1086
|
-
<div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
|
|
1087
|
-
<div className="text-center">
|
|
1088
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-3 w-3" />
|
|
1089
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
1090
|
-
</div>
|
|
1091
|
-
<div className="text-center">
|
|
1092
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-4 w-4" />
|
|
1093
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
1094
|
-
</div>
|
|
1095
|
-
<div className="text-center">
|
|
1096
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-5 w-5" />
|
|
1097
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
1098
|
-
</div>
|
|
1099
|
-
<div className="text-center">
|
|
1100
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
1101
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
1102
|
-
</div>
|
|
1103
|
-
<div className="text-center">
|
|
1104
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-8 w-8" />
|
|
1105
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
1106
|
-
</div>
|
|
1107
|
-
<div className="text-center">
|
|
1108
|
-
<CircleTickIcon className="text-fm-icon-positive !mx-auto mb-2 h-12 w-12" />
|
|
1109
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
1110
|
-
</div>
|
|
1111
|
-
</div>
|
|
1112
|
-
),
|
|
120
|
+
render: () => <IconSizeVariations icon={CircleTickIcon} />,
|
|
1113
121
|
}
|
|
1114
122
|
|
|
1115
123
|
export const ColorVariations: Story = {
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
story:
|
|
1121
|
-
"CircleTickIcon in different semantic colors for various success states.",
|
|
1122
|
-
},
|
|
1123
|
-
},
|
|
1124
|
-
},
|
|
124
|
+
render: () => <IconColorVariations icon={CircleTickIcon} />,
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export const InteractiveStates: Story = {
|
|
1125
128
|
render: () => (
|
|
1126
|
-
<
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1147
|
-
<CircleTickIcon className="text-fm-icon-info h-8 w-8" />
|
|
1148
|
-
</div>
|
|
1149
|
-
<div className="text-fm-icon-active text-sm font-medium">Verified</div>
|
|
1150
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1151
|
-
</div>
|
|
1152
|
-
<div className="text-center">
|
|
1153
|
-
<div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
1154
|
-
<CircleTickIcon className="text-fm-icon-info h-8 w-8" />
|
|
1155
|
-
</div>
|
|
1156
|
-
<div className="text-fm-icon-active text-sm font-medium">Info</div>
|
|
1157
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
1158
|
-
</div>
|
|
1159
|
-
</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
|
+
/>
|
|
1160
149
|
),
|
|
1161
150
|
}
|
|
1162
151
|
|
|
1163
152
|
export const UsageExamples: Story = {
|
|
1164
|
-
parameters: {
|
|
1165
|
-
...storyParameters,
|
|
1166
|
-
docs: {
|
|
1167
|
-
description: {
|
|
1168
|
-
story:
|
|
1169
|
-
"Real-world usage examples showing CircleTickIcon in different UI contexts.",
|
|
1170
|
-
},
|
|
1171
|
-
},
|
|
1172
|
-
},
|
|
1173
153
|
render: () => (
|
|
1174
|
-
<
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
<
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
</
|
|
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>
|
|
1191
171
|
</div>
|
|
1192
|
-
|
|
172
|
+
))}
|
|
1193
173
|
</div>
|
|
1194
|
-
</
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
</div>
|
|
1209
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-lg border p-3">
|
|
1210
|
-
<CircleTickIcon className="text-fm-icon-positive h-5 w-5" />
|
|
1211
|
-
<span className="text-fm-icon-active flex-1">
|
|
1212
|
-
Install dependencies
|
|
1213
|
-
</span>
|
|
1214
|
-
<span className="text-fm-icon-positive text-xs">Completed</span>
|
|
1215
|
-
</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
|
+
)}
|
|
1216
188
|
</div>
|
|
1217
|
-
</
|
|
189
|
+
</IconUsageSection>
|
|
1218
190
|
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
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>
|
|
1232
204
|
</div>
|
|
1233
|
-
</
|
|
1234
|
-
</
|
|
205
|
+
</IconUsageSection>
|
|
206
|
+
</IconUsageCanvas>
|
|
1235
207
|
),
|
|
1236
208
|
}
|
|
1237
209
|
|
|
1238
210
|
export const Playground: Story = {
|
|
1239
|
-
parameters: {
|
|
1240
|
-
...storyParameters,
|
|
1241
|
-
docs: {
|
|
1242
|
-
description: {
|
|
1243
|
-
story:
|
|
1244
|
-
"Interactive playground to experiment with different CircleTickIcon configurations.",
|
|
1245
|
-
},
|
|
1246
|
-
},
|
|
1247
|
-
},
|
|
1248
211
|
args: {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
className: "text-fm-icon-positive",
|
|
212
|
+
className: "h-8 w-8 text-fm-icon-positive",
|
|
213
|
+
withAccessibility: true,
|
|
1252
214
|
},
|
|
1253
215
|
render: (args) => (
|
|
1254
|
-
<
|
|
1255
|
-
<
|
|
1256
|
-
|
|
1257
|
-
</div>
|
|
1258
|
-
</div>
|
|
216
|
+
<IconPlaygroundCanvas>
|
|
217
|
+
<CircleTickIcon {...args} />
|
|
218
|
+
</IconPlaygroundCanvas>
|
|
1259
219
|
),
|
|
1260
220
|
}
|