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.
Files changed (183) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
  2. package/dist/components/avatar/Avatar.stories.tsx +235 -237
  3. package/dist/components/badge/Badge.stories.tsx +379 -116
  4. package/dist/components/banner/Banner.stories.tsx +445 -391
  5. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  6. package/dist/components/button/Button.stories.tsx +585 -230
  7. package/dist/components/button/index.tsx +7 -7
  8. package/dist/components/card/Card.stories.tsx +619 -301
  9. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  10. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  11. package/dist/components/chip/Chip.stories.tsx +362 -168
  12. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
  13. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  14. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  15. package/dist/components/command/Command.stories.tsx +533 -856
  16. package/dist/components/dialog/Dialog.stories.tsx +505 -949
  17. package/dist/components/divider/Divider.stories.tsx +265 -502
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -993
  20. package/dist/components/drawer/index.tsx +3 -3
  21. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
  22. package/dist/components/form/Form.stories.tsx +560 -274
  23. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  24. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
  25. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  26. package/dist/components/if-else/if-else.stories.tsx +370 -83
  27. package/dist/components/input/Input.stories.tsx +436 -368
  28. package/dist/components/label/Label.stories.tsx +156 -154
  29. package/dist/components/list/List.stories.tsx +485 -822
  30. package/dist/components/marquee/Marquee.stories.tsx +356 -694
  31. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
  32. package/dist/components/overlay/Overlay.stories.tsx +452 -818
  33. package/dist/components/overlay/index.tsx +4 -4
  34. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  35. package/dist/components/popover/Popover.stories.tsx +484 -873
  36. package/dist/components/radio/Radio.stories.tsx +432 -124
  37. package/dist/components/resizable/Resizable.stories.tsx +496 -752
  38. package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
  39. package/dist/components/search/Search.stories.tsx +314 -575
  40. package/dist/components/select/Select.stories.tsx +684 -787
  41. package/dist/components/sheet/Sheet.stories.tsx +671 -936
  42. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  43. package/dist/components/slider/Slider.stories.tsx +384 -737
  44. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  45. package/dist/components/switch/Switch.stories.tsx +461 -208
  46. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  47. package/dist/components/table/Table.stories.tsx +770 -914
  48. package/dist/components/tabs/Tabs.stories.tsx +459 -1400
  49. package/dist/components/tag/Tag.stories.tsx +714 -542
  50. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  51. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
  52. package/dist/components/toast/Toast.stories.tsx +452 -1333
  53. package/dist/components/toggle/Toggle.stories.tsx +488 -909
  54. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
  55. package/dist/components/typography/Typography.stories.tsx +406 -89
  56. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  57. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  58. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  59. package/dist/icons/Icons.stories.tsx +0 -12
  60. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
  61. package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
  62. package/dist/icons/all-icons.tsx +124 -87
  63. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
  64. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
  65. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
  66. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
  67. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
  68. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
  69. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
  70. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
  71. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
  72. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
  73. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
  74. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
  75. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
  76. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
  77. package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
  78. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
  79. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
  80. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
  81. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
  82. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
  83. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
  84. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
  85. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
  86. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
  87. package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
  88. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
  89. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
  90. package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
  91. package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
  92. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
  93. package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
  94. package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
  95. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
  96. package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
  97. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
  98. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
  99. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
  100. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
  101. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
  102. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
  103. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
  104. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
  105. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
  106. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
  107. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
  108. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
  109. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
  110. package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
  111. package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
  112. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
  113. package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
  114. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
  115. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
  116. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
  117. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
  118. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
  119. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
  120. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
  121. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
  122. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
  123. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
  124. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
  125. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
  126. package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
  127. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
  128. package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
  129. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
  130. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
  131. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
  132. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
  133. package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
  134. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
  135. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
  136. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
  137. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
  138. package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
  139. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
  140. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
  141. package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
  142. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
  143. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
  144. package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
  145. package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
  146. package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
  147. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
  148. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
  149. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
  150. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
  151. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
  152. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
  153. package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
  154. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
  155. package/dist/icons/spinner-solid-icon/index.tsx +6 -1
  156. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
  157. package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
  158. package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
  159. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
  160. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
  161. package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
  162. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
  163. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
  164. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
  165. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
  166. package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
  167. package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
  168. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
  169. package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
  170. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
  171. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
  172. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
  173. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
  174. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
  175. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
  176. package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
  177. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
  178. package/dist/index.cjs +84 -84
  179. package/dist/index.js +84 -84
  180. package/dist/styles/aural-all-theme.css +1222 -0
  181. package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
  182. package/dist/styles/aural-light-theme.css +1047 -0
  183. 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 { CircleTickIcon } from "src/ui/icons/circle-tick-icon"
6
+ import { CrossCircleIcon } from "src/ui/icons/cross-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 { TickCircleIcon } from "."
5
20
 
6
21
  const meta: Meta<typeof TickCircleIcon> = {
@@ -11,1000 +26,77 @@ const meta: Meta<typeof TickCircleIcon> = {
11
26
  backgrounds: {
12
27
  default: "dark",
13
28
  values: [
14
- { name: "dark", value: "#0a0a0a" },
15
- { name: "darker", value: "#000000" },
16
- { name: "light", value: "#ffffff" },
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
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 !important;
27
- max-width: none !important;
28
- background: transparent !important;
29
- }
30
- .sbdocs-content {
31
- max-width: none !important;
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
- <TickCircleIcon className="h-12 w-12 text-green-400" />
105
- </div>
106
- <h1 className="!text-fm-primary text-5xl font-bold">
107
- TickCircleIcon
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 { TickCircleIcon } from "@icons/tick-circle-icon"
164
-
165
- function SuccessMessage() {
36
+ <AuralIconDocsPage
37
+ accentToken="positive"
38
+ features={[
39
+ { title: "Filled Badge", description: "Solid success indicator" },
40
+ { title: "currentColor", description: "Responds to text tokens" },
41
+ { title: "Accessible", description: "ARIA-ready by default" },
42
+ ]}
43
+ quickStart={{
44
+ codeExample: `import { TickCircleIcon } from "src/ui/icons/tick-circle-icon"
45
+
46
+ function SuccessBadge() {
166
47
  return (
167
- <div className="flex items-center gap-2">
168
- <TickCircleIcon className="h-5 w-5 text-green-500" />
169
- <span>Task completed successfully!</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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon className="h-4 w-4" />
353
-
354
- // Medium (24px)
355
- <TickCircleIcon className="h-6 w-6" />
356
-
357
- // Large (32px)
358
- <TickCircleIcon className="h-8 w-8" />
359
-
360
- // Custom size
361
- <TickCircleIcon width={40} height={40} />
362
-
363
- // Responsive sizing
364
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon className="h-6 w-6 text-green-400" />
439
- <TickCircleIcon className="h-6 w-6 text-emerald-500" />
440
-
441
- // Using CSS custom properties
442
- <TickCircleIcon
443
- className="h-6 w-6"
444
- style={{ color: 'var(--color-success)' }}
445
- />
446
-
447
- // Direct fill prop
448
- <TickCircleIcon
449
- width={24}
450
- height={24}
451
- fill="#10b981"
452
- />
453
-
454
- // With opacity
455
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon className="h-4 w-4 text-blue-400" />
48
+ <div className="flex items-center gap-1">
49
+ <TickCircleIcon className="h-4 w-4 text-fm-icon-positive" />
50
+ <span>Verified</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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon {...props} />
875
- </AccessibleIcon>
876
52
  )
877
- }
878
-
879
- // Usage with specific context
880
- <CompletionIcon
881
- label="Task completed successfully"
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
- <TickCircleIcon 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 TickCircleIcon 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
- <TickCircleIcon 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>
53
+ }`,
54
+ livePreview: (
55
+ <div className="text-fm-primary font-fm-text flex items-center gap-1.5 text-sm">
56
+ <TickCircleIcon className="text-fm-icon-positive h-4 w-4" />
57
+ Verified
913
58
  </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
- TickCircleIcon 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>
980
- </div>
981
- </div>
982
- </div>
983
- </>
59
+ ),
60
+ }}
61
+ relatedIcons={[
62
+ {
63
+ name: "CircleTickIcon",
64
+ description: "Outline circle tick",
65
+ icon: CircleTickIcon,
66
+ accentToken: "positive",
67
+ },
68
+ {
69
+ name: "TickIcon",
70
+ description: "Simple checkmark",
71
+ icon: TickIcon,
72
+ accentToken: "info",
73
+ },
74
+ {
75
+ name: "CrossCircleIcon",
76
+ description: "Filled error circle",
77
+ icon: CrossCircleIcon,
78
+ accentToken: "negative",
79
+ },
80
+ {
81
+ name: "AlertIcon",
82
+ description: "Warning indicator",
83
+ icon: AlertIcon,
84
+ accentToken: "warning",
85
+ },
86
+ ]}
87
+ />
984
88
  ),
985
89
  },
986
90
  },
987
91
  tags: ["autodocs"],
988
92
  argTypes: {
989
- width: {
990
- control: { type: "range", min: 8, max: 96, step: 2 },
991
- description: "Width of the icon in pixels",
93
+ className: {
94
+ control: "text",
95
+ description: "CSS classes including color token",
992
96
  },
993
97
  withAccessibility: {
994
98
  control: "boolean",
995
- description: "Whether to wrap the icon with accessibility features",
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,113 @@ function CompletionIcon({ label = "Completed", ...props }) {
1012
104
  export default meta
1013
105
  type Story = StoryObj<typeof TickCircleIcon>
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
- width: 24,
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
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
113
+ <IconDefaultCanvas>
1036
114
  <TickCircleIcon {...args} />
1037
- </div>
115
+ </IconDefaultCanvas>
1038
116
  ),
1039
117
  }
1040
118
 
1041
119
  export const SizeVariations: Story = {
1042
- parameters: {
1043
- ...storyParameters,
1044
- docs: {
1045
- description: {
1046
- story:
1047
- "TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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
- <TickCircleIcon 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={TickCircleIcon} />,
1079
121
  }
1080
122
 
1081
123
  export const ColorVariations: Story = {
1082
- parameters: {
1083
- ...storyParameters,
1084
- docs: {
1085
- description: {
1086
- story:
1087
- "TickCircleIcon in different semantic colors for various success states.",
1088
- },
1089
- },
1090
- },
124
+ render: () => <IconColorVariations icon={TickCircleIcon} />,
125
+ }
126
+
127
+ export const InteractiveStates: Story = {
1091
128
  render: () => (
1092
- <div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
1093
- <div className="text-center">
1094
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
1095
- <TickCircleIcon className="h-8 w-8 text-green-400" />
1096
- </div>
1097
- <div className="text-sm font-medium text-white">Success</div>
1098
- <div className="text-xs text-green-400">text-green-400</div>
1099
- </div>
1100
- <div className="text-center">
1101
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
1102
- <TickCircleIcon className="h-8 w-8 text-emerald-400" />
1103
- </div>
1104
- <div className="text-sm font-medium text-white">Complete</div>
1105
- <div className="text-xs text-emerald-400">text-emerald-400</div>
1106
- </div>
1107
- <div className="text-center">
1108
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-teal-500/30 bg-teal-500/20">
1109
- <TickCircleIcon className="h-8 w-8 text-teal-400" />
1110
- </div>
1111
- <div className="text-sm font-medium text-white">Verified</div>
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
- <TickCircleIcon 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={TickCircleIcon}
131
+ states={[
132
+ {
133
+ label: "Positive",
134
+ className: "h-8 w-8 text-fm-icon-positive",
135
+ description: "Success / done",
136
+ },
137
+ {
138
+ label: "Info",
139
+ className: "h-8 w-8 text-fm-icon-info",
140
+ description: "Selected state",
141
+ },
142
+ {
143
+ label: "Inactive",
144
+ className: "h-8 w-8 text-fm-icon-inactive",
145
+ description: "Muted 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 TickCircleIcon in different UI contexts.",
1132
- },
1133
- },
1134
- },
1135
153
  render: () => (
1136
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1137
- {/* Success Message */}
1138
- <div className="!space-y-2">
1139
- <h3 className="text-sm font-medium text-white">Success Message</h3>
1140
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
1141
- <div className="flex items-start gap-3">
1142
- <TickCircleIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-green-400" />
1143
- <div>
1144
- <h4 className="font-medium text-green-200">
1145
- Account Created Successfully
1146
- </h4>
1147
- <p className="text-sm text-green-300/80">
1148
- Welcome to Aural UI! Your account has been set up and you're
1149
- ready to start building.
1150
- </p>
154
+ <IconUsageCanvas>
155
+ <IconUsageSection title="Success Notification">
156
+ <div className="border-fm-icon-positive/30 bg-fm-icon-positive/10 flex w-full max-w-sm items-start gap-3 rounded-xl border p-4">
157
+ <TickCircleIcon className="text-fm-icon-positive h-5 w-5 shrink-0" />
158
+ <div>
159
+ <div className="text-fm-primary font-fm-text text-sm font-medium">
160
+ Changes saved
161
+ </div>
162
+ <div className="text-fm-secondary font-fm-text text-xs">
163
+ Your profile has been updated successfully.
1151
164
  </div>
1152
165
  </div>
1153
166
  </div>
1154
- </div>
1155
-
1156
- {/* Task Completion */}
1157
- <div className="!space-y-2">
1158
- <h3 className="text-sm font-medium text-white">Task Completion</h3>
1159
- <div className="!space-y-3">
1160
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
1161
- <TickCircleIcon className="h-5 w-5 text-green-400" />
1162
- <span className="flex-1 text-white">Set up project repository</span>
1163
- <span className="text-xs text-green-400">Completed</span>
1164
- </div>
1165
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
1166
- <TickCircleIcon className="h-5 w-5 text-green-400" />
1167
- <span className="flex-1 text-white">Install dependencies</span>
1168
- <span className="text-xs text-green-400">Completed</span>
167
+ </IconUsageSection>
168
+
169
+ <IconUsageSection title="Verified Badge">
170
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center gap-3 rounded-xl border p-4">
171
+ <div className="bg-fm-divider-secondary h-10 w-10 rounded-full" />
172
+ <div className="flex-1">
173
+ <div className="flex items-center gap-1.5">
174
+ <span className="text-fm-primary font-fm-text text-sm font-medium">
175
+ Pocket FM
176
+ </span>
177
+ <TickCircleIcon className="text-fm-icon-info h-4 w-4" />
178
+ </div>
179
+ <div className="text-fm-secondary font-fm-text text-xs">
180
+ Verified creator
181
+ </div>
1169
182
  </div>
1170
183
  </div>
1171
- </div>
1172
-
1173
- {/* Form Validation */}
1174
- <div className="!space-y-2">
1175
- <h3 className="text-sm font-medium text-white">Form Validation</h3>
1176
- <div className="relative">
1177
- <input
1178
- type="email"
1179
- className="w-full rounded-lg border border-green-500/50 bg-white/5 px-3 py-2 pr-10 text-white placeholder-white/50 focus:border-green-500 focus:ring-2 focus:ring-green-500/20"
1180
- placeholder="Enter your email"
1181
- defaultValue="user@example.com"
1182
- />
1183
- <TickCircleIcon className="absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-green-400" />
184
+ </IconUsageSection>
185
+
186
+ <IconUsageSection title="Completion State">
187
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
188
+ {["Chapter 1", "Chapter 2", "Chapter 3"].map((chapter, i) => (
189
+ <div key={chapter} className="flex items-center gap-2">
190
+ <TickCircleIcon
191
+ className={`h-4 w-4 ${i < 2 ? "text-fm-icon-positive" : "text-fm-icon-inactive"}`}
192
+ />
193
+ <span
194
+ className={`font-fm-text text-sm ${i < 2 ? "text-fm-secondary" : "text-fm-primary"}`}
195
+ >
196
+ {chapter}
197
+ </span>
198
+ </div>
199
+ ))}
1184
200
  </div>
1185
- </div>
1186
- </div>
201
+ </IconUsageSection>
202
+ </IconUsageCanvas>
1187
203
  ),
1188
204
  }
1189
205
 
1190
206
  export const Playground: Story = {
1191
- parameters: {
1192
- ...storyParameters,
1193
- docs: {
1194
- description: {
1195
- story:
1196
- "Interactive playground to experiment with different TickCircleIcon configurations.",
1197
- },
1198
- },
1199
- },
1200
207
  args: {
1201
- width: 32,
1202
- height: 32,
1203
- className: "text-green-400",
208
+ className: "h-8 w-8 text-fm-icon-positive",
209
+ withAccessibility: true,
1204
210
  },
1205
211
  render: (args) => (
1206
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1207
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1208
- <TickCircleIcon {...args} />
1209
- </div>
1210
- </div>
212
+ <IconPlaygroundCanvas>
213
+ <TickCircleIcon {...args} />
214
+ </IconPlaygroundCanvas>
1211
215
  ),
1212
216
  }