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 { CrossIcon } from "src/ui/icons/cross-icon"
7
+ import { TickCircleIcon } from "src/ui/icons/tick-circle-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 { TickIcon } from "."
5
20
 
6
21
  const meta: Meta<typeof TickIcon> = {
@@ -11,1116 +26,77 @@ const meta: Meta<typeof TickIcon> = {
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-draw {
81
- 0% { stroke-dashoffset: 20; }
82
- 100% { stroke-dashoffset: 0; }
83
- }
84
- .animate-tick-draw {
85
- stroke-dasharray: 20;
86
- animation: tick-draw 0.5s ease-out forwards;
87
- }
88
- @keyframes tick-scale {
89
- 0%, 100% { transform: scale(1); }
90
- 50% { transform: scale(1.1); }
91
- }
92
- .animate-tick-scale {
93
- animation: tick-scale 0.4s ease-in-out;
94
- }
95
- `}
96
- </style>
97
-
98
- <div className="min-h-screen bg-gradient-to-br from-gray-900 via-green-900/20 to-gray-900">
99
- {/* Header */}
100
- <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
101
- <div className="absolute inset-0 bg-gradient-to-r from-green-500/10 via-transparent to-emerald-500/10" />
102
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
103
- <div className="!space-y-6 text-center">
104
- <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">
105
- <TickIcon className="h-12 w-12 text-green-400" />
106
- </div>
107
- <h1 className="!text-fm-primary text-5xl font-bold">
108
- TickIcon
109
- </h1>
110
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
111
- A simple checkmark icon for success states, completed tasks,
112
- and positive feedback. Features a clean stroke-based design
113
- that works perfectly for checkboxes, form validation, and
114
- task completion indicators. Built with accessibility in mind
115
- using Radix UI's AccessibleIcon wrapper.
116
- </p>
117
-
118
- {/* Stats */}
119
- <div className="flex items-center justify-center gap-8 pt-8">
120
- <div className="text-center">
121
- <div className="text-3xl font-bold text-green-300">
122
- Clean
123
- </div>
124
- <div className="text-sm text-white/60">
125
- Minimal design
126
- </div>
127
- </div>
128
- <div className="h-8 w-px bg-white/20" />
129
- <div className="text-center">
130
- <div className="text-3xl font-bold text-emerald-300">
131
- Scalable
132
- </div>
133
- <div className="text-sm text-white/60">
134
- Stroke-based vector
135
- </div>
136
- </div>
137
- <div className="h-8 w-px bg-white/20" />
138
- <div className="text-center">
139
- <div className="text-3xl font-bold text-teal-300">
140
- Versatile
141
- </div>
142
- <div className="text-sm text-white/60">
143
- Multiple use cases
144
- </div>
145
- </div>
146
- </div>
147
- </div>
148
- </div>
149
- </div>
150
-
151
- {/* Content */}
152
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
153
- {/* Quick Usage */}
154
- <div className="!space-y-8">
155
- <h2 className="text-center text-3xl font-bold !text-white">
156
- Quick Start
157
- </h2>
158
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
159
- <div className="!space-y-4">
160
- <h3 className="text-xl font-semibold !text-green-300">
161
- Basic Usage
162
- </h3>
163
- <div className="rounded-lg bg-black/40 p-4">
164
- <pre className="overflow-x-auto text-sm !text-green-300">
165
- {`import { TickIcon } from "@icons/tick-icon"
166
-
167
- function CheckboxComponent() {
36
+ <AuralIconDocsPage
37
+ accentToken="positive"
38
+ features={[
39
+ { title: "Confirmation", description: "Marks done or selected" },
40
+ { title: "currentColor", description: "Responds to text tokens" },
41
+ { title: "Accessible", description: "ARIA-ready by default" },
42
+ ]}
43
+ quickStart={{
44
+ codeExample: `import { TickIcon } from "src/ui/icons/tick-icon"
45
+
46
+ function CheckboxItem() {
168
47
  return (
169
48
  <div className="flex items-center gap-2">
170
- <TickIcon className="h-5 w-5 text-green-500" />
49
+ <TickIcon className="h-5 w-5 text-fm-icon-positive" />
171
50
  <span>Task completed</span>
172
51
  </div>
173
52
  )
174
- }`}
175
- </pre>
176
- </div>
177
- </div>
178
-
179
- <div className="!space-y-4">
180
- <h3 className="text-xl font-semibold !text-green-300">
181
- Live Preview
182
- </h3>
183
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
184
- <div className="flex items-center gap-3 rounded-lg border border-green-500/20 bg-green-500/10 px-4 py-2">
185
- <TickIcon className="h-5 w-5 text-green-400" />
186
- <span className="text-white">Task completed</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">24</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
- stroke
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
- Stroke color of the checkmark
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
- strokeWidth
265
- </td>
266
- <td className="px-6 py-4 text-sm !text-white/70">
267
- number | string
268
- </td>
269
- <td className="px-6 py-4 text-sm !text-white/50">2</td>
270
- <td className="px-6 py-4 text-sm !text-white/70">
271
- Width of the stroke line
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
- className
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">-</td>
282
- <td className="px-6 py-4 text-sm !text-white/70">
283
- CSS classes for styling
284
- </td>
285
- </tr>
286
- <tr className="border-b border-white/5 !bg-black/10">
287
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
288
- viewBox
289
- </td>
290
- <td className="px-6 py-4 text-sm !text-white/70">
291
- string
292
- </td>
293
- <td className="px-6 py-4 text-sm !text-white/50">
294
- "0 0 24 24"
295
- </td>
296
- <td className="px-6 py-4 text-sm !text-white/70">
297
- SVG viewBox for scaling
298
- </td>
299
- </tr>
300
- <tr className="!bg-black/10">
301
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
302
- ...svgProps
303
- </td>
304
- <td className="px-6 py-4 text-sm !text-white/70">
305
- SVGProps
306
- </td>
307
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
308
- <td className="px-6 py-4 text-sm !text-white/70">
309
- All standard SVG element props
310
- </td>
311
- </tr>
312
- </tbody>
313
- </table>
314
- </div>
315
- </div>
316
-
317
- {/* Size Variations */}
318
- <div className="!space-y-8">
319
- <h2 className="text-center text-3xl font-bold !text-white">
320
- Size Variations
321
- </h2>
322
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
323
- <div className="!space-y-6">
324
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
325
- <div className="!space-y-4">
326
- <h3 className="text-lg font-semibold !text-green-300">
327
- Standard Sizes
328
- </h3>
329
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
330
- <div className="text-center">
331
- <TickIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
332
- <span className="text-xs text-white/60">12px</span>
333
- </div>
334
- <div className="text-center">
335
- <TickIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
336
- <span className="text-xs text-white/60">16px</span>
337
- </div>
338
- <div className="text-center">
339
- <TickIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
340
- <span className="text-xs text-white/60">20px</span>
341
- </div>
342
- <div className="text-center">
343
- <TickIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
344
- <span className="text-xs text-white/60">24px</span>
345
- </div>
346
- <div className="text-center">
347
- <TickIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
348
- <span className="text-xs text-white/60">32px</span>
349
- </div>
350
- <div className="text-center">
351
- <TickIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
352
- <span className="text-xs text-white/60">48px</span>
353
- </div>
354
- </div>
355
- </div>
356
-
357
- <div className="!space-y-4">
358
- <h3 className="text-lg font-semibold !text-green-300">
359
- Code Example
360
- </h3>
361
- <div className="rounded-lg bg-black/40 p-4">
362
- <pre className="overflow-x-auto text-sm !text-blue-300">
363
- {`// Small (16px)
364
- <TickIcon className="h-4 w-4" />
365
-
366
- // Medium (24px) - Default
367
- <TickIcon className="h-6 w-6" />
368
-
369
- // Large (32px)
370
- <TickIcon className="h-8 w-8" />
371
-
372
- // Custom size with stroke width
373
- <TickIcon width={40} height={40} strokeWidth={3} />
374
-
375
- // Responsive sizing
376
- <TickIcon className="h-4 w-4 md:h-6 md:w-6 lg:h-8 lg:w-8" />`}
377
- </pre>
378
- </div>
379
- </div>
380
- </div>
381
- </div>
382
- </div>
383
- </div>
384
-
385
- {/* Color Variations */}
386
- <div className="!space-y-8">
387
- <h2 className="text-center text-3xl font-bold !text-white">
388
- Color Variations
389
- </h2>
390
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
391
- <div className="!space-y-4">
392
- <h3 className="text-lg font-semibold !text-green-300">
393
- Semantic Colors
394
- </h3>
395
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
396
- <div className="flex items-center gap-4">
397
- <TickIcon className="h-6 w-6 text-green-400" />
398
- <div>
399
- <div className="text-sm font-medium text-white">
400
- Success
401
- </div>
402
- <div className="text-xs text-white/60">
403
- text-green-400
404
- </div>
405
- </div>
406
- </div>
407
- <div className="flex items-center gap-4">
408
- <TickIcon className="h-6 w-6 text-emerald-400" />
409
- <div>
410
- <div className="text-sm font-medium text-white">
411
- Complete
412
- </div>
413
- <div className="text-xs text-white/60">
414
- text-emerald-400
415
- </div>
416
- </div>
417
- </div>
418
- <div className="flex items-center gap-4">
419
- <TickIcon className="h-6 w-6 text-blue-400" />
420
- <div>
421
- <div className="text-sm font-medium text-white">
422
- Selected
423
- </div>
424
- <div className="text-xs text-white/60">
425
- text-blue-400
426
- </div>
427
- </div>
428
- </div>
429
- <div className="flex items-center gap-4">
430
- <TickIcon className="h-6 w-6 text-purple-400" />
431
- <div>
432
- <div className="text-sm font-medium text-white">
433
- Verified
434
- </div>
435
- <div className="text-xs text-white/60">
436
- text-purple-400
437
- </div>
438
- </div>
439
- </div>
440
- </div>
441
- </div>
442
-
443
- <div className="!space-y-4">
444
- <h3 className="text-lg font-semibold !text-green-300">
445
- Custom Colors & Stroke Width
446
- </h3>
447
- <div className="rounded-lg bg-black/40 p-4">
448
- <pre className="overflow-x-auto text-sm !text-cyan-300">
449
- {`// Using Tailwind classes
450
- <TickIcon className="h-6 w-6 text-green-400" />
451
- <TickIcon className="h-6 w-6 text-emerald-500" />
452
-
453
- // Using CSS custom properties
454
- <TickIcon
455
- className="h-6 w-6"
456
- style={{ color: 'var(--color-success)' }}
457
- />
458
-
459
- // Direct stroke prop with custom width
460
- <TickIcon
461
- width={24}
462
- height={24}
463
- stroke="#10b981"
464
- strokeWidth={3}
465
- />
466
-
467
- // Thin stroke for subtle appearance
468
- <TickIcon
469
- className="h-6 w-6 text-green-400"
470
- strokeWidth={1}
471
- />`}
472
- </pre>
473
- </div>
474
- </div>
475
- </div>
476
- </div>
477
-
478
- {/* Usage Examples */}
479
- <div className="!space-y-8">
480
- <h2 className="text-center text-3xl font-bold !text-white">
481
- Usage Examples
482
- </h2>
483
-
484
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
485
- {/* Checkbox */}
486
- <div className="!space-y-4">
487
- <h3 className="text-lg font-semibold !text-green-300">
488
- Custom Checkbox
489
- </h3>
490
- <div className="!space-y-4">
491
- <div className="!space-y-3">
492
- <label className="flex cursor-pointer items-center gap-3">
493
- <div className="relative">
494
- <input
495
- type="checkbox"
496
- className="peer sr-only"
497
- defaultChecked
498
- />
499
- <div className="peer-unchecked:bg-transparent peer-unchecked:border-gray-400 h-5 w-5 rounded border-2 border-green-400 bg-green-400 transition-colors peer-checked:border-green-400 peer-checked:bg-green-400" />
500
- <TickIcon
501
- className="peer-unchecked:opacity-0 absolute inset-0 h-5 w-5 text-white opacity-100 transition-opacity"
502
- strokeWidth={2}
503
- />
504
- </div>
505
- <span className="text-white">
506
- Accept terms and conditions
507
- </span>
508
- </label>
509
- <label className="flex cursor-pointer items-center gap-3">
510
- <div className="relative">
511
- <input type="checkbox" className="peer sr-only" />
512
- <div className="h-5 w-5 rounded border-2 border-gray-400 bg-transparent transition-colors peer-checked:border-green-400 peer-checked:bg-green-400" />
513
- <TickIcon
514
- className="absolute inset-0 h-5 w-5 text-white opacity-0 transition-opacity peer-checked:opacity-100"
515
- strokeWidth={2}
516
- />
517
- </div>
518
- <span className="text-white">
519
- Subscribe to newsletter
520
- </span>
521
- </label>
522
- </div>
523
- <div className="rounded-lg bg-black/40 p-4">
524
- <pre className="overflow-x-auto text-sm !text-cyan-300">
525
- {`<label className="flex items-center gap-3 cursor-pointer">
526
- <div className="relative">
527
- <input type="checkbox" className="sr-only peer" />
528
- <div className="h-5 w-5 rounded border-2 border-gray-400 bg-transparent peer-checked:bg-green-400 peer-checked:border-green-400 transition-colors" />
529
- <TickIcon className="absolute inset-0 h-5 w-5 text-white opacity-0 peer-checked:opacity-100 transition-opacity" strokeWidth={2} />
530
- </div>
531
- <span className="text-white">Accept terms and conditions</span>
532
- </label>`}
533
- </pre>
534
- </div>
535
- </div>
536
- </div>
537
-
538
- {/* Todo List */}
539
- <div className="!space-y-4">
540
- <h3 className="text-lg font-semibold !text-green-300">
541
- Todo List
542
- </h3>
543
- <div className="!space-y-4">
544
- <div className="!space-y-3">
545
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
546
- <TickIcon className="h-5 w-5 text-green-400" />
547
- <span className="flex-1 text-white line-through opacity-70">
548
- Set up project repository
549
- </span>
550
- <span className="text-xs text-green-400">
551
- Completed
552
- </span>
553
- </div>
554
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
555
- <TickIcon className="h-5 w-5 text-green-400" />
556
- <span className="flex-1 text-white line-through opacity-70">
557
- Design user interface
558
- </span>
559
- <span className="text-xs text-green-400">
560
- Completed
561
- </span>
562
- </div>
563
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
564
- <div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
565
- <span className="flex-1 text-white">
566
- Implement authentication
567
- </span>
568
- <span className="text-xs text-white/50">
569
- In Progress
570
- </span>
571
- </div>
572
- </div>
573
- <div className="rounded-lg bg-black/40 p-4">
574
- <pre className="overflow-x-auto text-sm !text-cyan-300">
575
- {`// Completed task
576
- <div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg">
577
- <TickIcon className="h-5 w-5 text-green-400" />
578
- <span className="flex-1 text-white line-through opacity-70">Set up project repository</span>
579
- <span className="text-xs text-green-400">Completed</span>
580
- </div>
581
-
582
- // Pending task
583
- <div className="flex items-center gap-3 p-3 border border-white/10 bg-white/5 rounded-lg">
584
- <div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
585
- <span className="flex-1 text-white">Implement authentication</span>
586
- <span className="text-xs text-white/50">In Progress</span>
587
- </div>`}
588
- </pre>
589
- </div>
590
- </div>
591
- </div>
592
-
593
- {/* Form Validation */}
594
- <div className="!space-y-4">
595
- <h3 className="text-lg font-semibold !text-green-300">
596
- Form Validation
597
- </h3>
598
- <div className="!space-y-4">
599
- <div className="!space-y-2">
600
- <label className="text-sm font-medium !text-white">
601
- Password
602
- </label>
603
- <div className="relative">
604
- <input
605
- type="password"
606
- 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"
607
- placeholder="Enter your password"
608
- defaultValue="securepassword123"
609
- />
610
- <TickIcon className="absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-green-400" />
611
- </div>
612
- <div className="flex items-center gap-2 text-sm text-green-400">
613
- <TickIcon className="h-4 w-4" strokeWidth={2} />
614
- <span>Password meets all requirements</span>
615
- </div>
616
- </div>
617
- <div className="rounded-lg bg-black/40 p-4">
618
- <pre className="overflow-x-auto text-sm !text-cyan-300">
619
- {`// Input with validation icon
620
- <div className="relative">
621
- <input className="pr-10 border-green-500/50" />
622
- <TickIcon className="absolute right-3 top-1/2 h-4 w-4 -translate-y-1/2 text-green-400" />
623
- </div>
624
-
625
- // Success message
626
- <div className="flex items-center gap-2 text-sm text-green-400">
627
- <TickIcon className="h-4 w-4" strokeWidth={2} />
628
- <span>Password meets all requirements</span>
629
- </div>`}
630
- </pre>
631
- </div>
632
- </div>
633
- </div>
634
-
635
- {/* Settings Toggle */}
636
- <div className="!space-y-4">
637
- <h3 className="text-lg font-semibold !text-green-300">
638
- Settings Options
639
- </h3>
640
- <div className="!space-y-4">
641
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
642
- <div className="flex items-center justify-between">
643
- <div className="flex items-center gap-3">
644
- <TickIcon className="h-5 w-5 text-green-400" />
645
- <div>
646
- <div className="font-medium text-white">
647
- Email Notifications
648
- </div>
649
- <div className="text-sm text-white/60">
650
- Receive updates via email
651
- </div>
652
- </div>
653
- </div>
654
- <span className="text-xs text-green-400">
655
- Enabled
656
- </span>
657
- </div>
658
- <div className="flex items-center justify-between">
659
- <div className="flex items-center gap-3">
660
- <div className="h-5 w-5 rounded border border-white/30"></div>
661
- <div>
662
- <div className="font-medium text-white">
663
- Push Notifications
664
- </div>
665
- <div className="text-sm text-white/60">
666
- Receive browser notifications
667
- </div>
668
- </div>
669
- </div>
670
- <span className="text-xs text-white/50">
671
- Disabled
672
- </span>
673
- </div>
674
- </div>
675
- <div className="rounded-lg bg-black/40 p-4">
676
- <pre className="overflow-x-auto text-sm !text-cyan-300">
677
- {`// Enabled setting
678
- <div className="flex items-center justify-between">
679
- <div className="flex items-center gap-3">
680
- <TickIcon className="h-5 w-5 text-green-400" />
681
- <div>
682
- <div className="font-medium text-white">Email Notifications</div>
683
- <div className="text-sm text-white/60">Receive updates via email</div>
684
- </div>
685
- </div>
686
- <span className="text-xs text-green-400">Enabled</span>
687
- </div>`}
688
- </pre>
689
- </div>
690
- </div>
691
- </div>
692
-
693
- {/* Step Indicator */}
694
- <div className="!space-y-4">
695
- <h3 className="text-lg font-semibold !text-green-300">
696
- Step Progress
697
- </h3>
698
- <div className="!space-y-4">
699
- <div className="flex items-center gap-4">
700
- <div className="flex items-center gap-2">
701
- <div className="flex h-8 w-8 items-center justify-center rounded-full bg-green-500">
702
- <TickIcon
703
- className="h-4 w-4 text-white"
704
- strokeWidth={2}
705
- />
706
- </div>
707
- <span className="text-sm text-green-400">
708
- Account Setup
709
- </span>
710
- </div>
711
- <div className="h-px flex-1 bg-green-500"></div>
712
- <div className="flex items-center gap-2">
713
- <div className="flex h-8 w-8 items-center justify-center rounded-full bg-green-500">
714
- <TickIcon
715
- className="h-4 w-4 text-white"
716
- strokeWidth={2}
717
- />
718
- </div>
719
- <span className="text-sm text-green-400">
720
- Profile Info
721
- </span>
722
- </div>
723
- <div className="h-px flex-1 bg-white/20"></div>
724
- <div className="flex items-center gap-2">
725
- <div className="flex h-8 w-8 items-center justify-center rounded-full border-2 border-white/30 bg-white/10">
726
- <span className="text-xs text-white">3</span>
727
- </div>
728
- <span className="text-sm text-white/60">
729
- Verification
730
- </span>
731
- </div>
732
- </div>
733
- <div className="rounded-lg bg-black/40 p-4">
734
- <pre className="overflow-x-auto text-sm !text-cyan-300">
735
- {`// Completed step
736
- <div className="flex h-8 w-8 items-center justify-center rounded-full bg-green-500">
737
- <TickIcon className="h-4 w-4 text-white" strokeWidth={2} />
738
- </div>
739
-
740
- // Current/pending step
741
- <div className="flex h-8 w-8 items-center justify-center rounded-full border-2 border-white/30 bg-white/10">
742
- <span className="text-xs text-white">3</span>
743
- </div>`}
744
- </pre>
745
- </div>
746
- </div>
747
- </div>
748
-
749
- {/* Success Message */}
750
- <div className="!space-y-4">
751
- <h3 className="text-lg font-semibold !text-green-300">
752
- Success Message
753
- </h3>
754
- <div className="!space-y-4">
755
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
756
- <div className="flex items-start gap-3">
757
- <TickIcon
758
- className="animate-tick-scale mt-0.5 h-5 w-5 flex-shrink-0 text-green-400"
759
- strokeWidth={2}
760
- />
761
- <div>
762
- <h4 className="font-medium !text-green-200">
763
- Changes Saved Successfully
764
- </h4>
765
- <p className="text-sm !text-green-300/80">
766
- Your profile has been updated and all changes are
767
- now active.
768
- </p>
769
- </div>
770
- </div>
771
- </div>
772
- <div className="rounded-lg bg-black/40 p-4">
773
- <pre className="overflow-x-auto text-sm !text-cyan-300">
774
- {`<div className="border border-green-500/20 bg-green-500/10 p-4 rounded-lg">
775
- <div className="flex items-start gap-3">
776
- <TickIcon className="h-5 w-5 text-green-400 mt-0.5 flex-shrink-0 animate-bounce" strokeWidth={2} />
777
- <div>
778
- <h4 className="font-medium text-green-200">Changes Saved Successfully</h4>
779
- <p className="text-sm text-green-300/80">
780
- Your profile has been updated and all changes are now active.
781
- </p>
782
- </div>
783
- </div>
784
- </div>`}
785
- </pre>
786
- </div>
787
- </div>
788
- </div>
789
- </div>
790
- </div>
791
-
792
- {/* Interactive States */}
793
- <div className="!space-y-8">
794
- <h2 className="text-center text-3xl font-bold !text-white">
795
- Interactive States & Animations
796
- </h2>
797
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
798
- <div className="!space-y-4">
799
- <h3 className="text-lg font-semibold !text-green-300">
800
- Animation Effects
801
- </h3>
802
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
803
- <div className="flex items-center gap-4">
804
- <TickIcon
805
- className="animate-tick-draw h-8 w-8 text-green-400"
806
- strokeWidth={2}
807
- />
808
- <div>
809
- <div className="text-sm font-medium text-white">
810
- Draw Animation
811
- </div>
812
- <div className="text-xs text-white/60">
813
- Stroke drawing effect
814
- </div>
815
- </div>
816
- </div>
817
- <div className="flex items-center gap-4">
818
- <TickIcon
819
- className="animate-tick-scale h-8 w-8 text-green-400"
820
- strokeWidth={2}
821
- />
822
- <div>
823
- <div className="text-sm font-medium text-white">
824
- Scale Effect
825
- </div>
826
- <div className="text-xs text-white/60">
827
- Quick scale animation
828
- </div>
829
- </div>
830
- </div>
831
- <div className="flex items-center gap-4">
832
- <TickIcon
833
- className="h-8 w-8 text-green-400 transition-transform hover:scale-110"
834
- strokeWidth={2}
835
- />
836
- <div>
837
- <div className="text-sm font-medium text-white">
838
- Hover Scale
839
- </div>
840
- <div className="text-xs text-white/60">
841
- Interactive growth
842
- </div>
843
- </div>
844
- </div>
845
- <div className="flex items-center gap-4">
846
- <TickIcon
847
- className="h-8 w-8 text-green-400 transition-colors hover:text-emerald-300"
848
- strokeWidth={2}
849
- />
850
- <div>
851
- <div className="text-sm font-medium text-white">
852
- Color Transition
853
- </div>
854
- <div className="text-xs text-white/60">
855
- Smooth color change
856
- </div>
857
- </div>
858
- </div>
859
- </div>
860
- </div>
861
-
862
- <div className="!space-y-4">
863
- <h3 className="text-lg font-semibold !text-green-300">
864
- Animation Code
865
- </h3>
866
- <div className="rounded-lg bg-black/40 p-4">
867
- <pre className="overflow-x-auto text-sm !text-cyan-300">
868
- {`// Draw animation keyframes
869
- @keyframes tick-draw {
870
- 0% { stroke-dashoffset: 20; }
871
- 100% { stroke-dashoffset: 0; }
872
- }
873
- .animate-tick-draw {
874
- stroke-dasharray: 20;
875
- animation: tick-draw 0.5s ease-out forwards;
876
- }
877
-
878
- // Scale animation
879
- @keyframes tick-scale {
880
- 0%, 100% { transform: scale(1); }
881
- 50% { transform: scale(1.1); }
882
- }
883
- .animate-tick-scale {
884
- animation: tick-scale 0.4s ease-in-out;
885
- }
886
-
887
- // Usage with animations
888
- <TickIcon className="h-6 w-6 text-green-400 animate-tick-draw" />
889
- <TickIcon className="h-6 w-6 text-green-400 animate-tick-scale" />
890
-
891
- // Interactive hover effects
892
- <TickIcon className="h-6 w-6 text-green-400 transition-transform hover:scale-110" />`}
893
- </pre>
894
- </div>
895
- </div>
896
- </div>
897
- </div>
898
-
899
- {/* Accessibility */}
900
- <div className="!space-y-8">
901
- <h2 className="text-center text-3xl font-bold !text-white">
902
- Accessibility Features
903
- </h2>
904
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
905
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
906
- <h3 className="text-lg font-semibold !text-green-300">
907
- ✅ Built-in Features
908
- </h3>
909
- <ul className="!space-y-2 text-sm !text-white/70">
910
- <li className="!text-white/70">
911
- Uses Radix UI AccessibleIcon wrapper
912
- </li>
913
- <li className="!text-white/70">
914
- Provides screen reader label "Tick icon"
915
- </li>
916
- <li className="!text-white/70">
917
- Supports keyboard navigation when interactive
918
- </li>
919
- <li className="!text-white/70">
920
- Maintains proper color contrast ratios
921
- </li>
922
- <li className="!text-white/70">
923
- Scales with user's font size preferences
924
- </li>
925
- <li className="!text-white/70">
926
- Stroke-based design ensures clarity at all sizes
927
- </li>
928
- </ul>
929
- </div>
930
-
931
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
932
- <h3 className="text-lg font-semibold !text-green-300">
933
- 💡 Best Practices
934
- </h3>
935
- <ul className="!space-y-2 text-sm !text-white/70">
936
- <li className="!text-white/70">
937
- Always pair with descriptive text or labels
938
- </li>
939
- <li className="!text-white/70">
940
- Use consistent colors for success states
941
- </li>
942
- <li className="!text-white/70">
943
- Ensure sufficient color contrast (minimum 3:1)
944
- </li>
945
- <li className="!text-white/70">
946
- Add focus states for interactive checkboxes
947
- </li>
948
- <li className="!text-white/70">
949
- Consider motion sensitivity for animations
950
- </li>
951
- <li className="!text-white/70">
952
- Use appropriate stroke width for visibility
953
- </li>
954
- </ul>
955
- </div>
956
- </div>
957
-
958
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
959
- <h3 className="mb-4 text-lg font-semibold !text-purple-300">
960
- Custom Accessibility Implementation
961
- </h3>
962
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
963
- <div className="rounded-lg bg-black/40 p-4">
964
- <pre className="overflow-x-auto text-sm !text-cyan-300">
965
- {`// Custom implementation with specific label
966
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
967
-
968
- function CompletionIcon({ label = "Completed", ...props }) {
969
- return (
970
- <AccessibleIcon label={label}>
971
- <TickIcon {...props} />
972
- </AccessibleIcon>
973
- )
974
- }
975
-
976
- // Usage with specific context
977
- <CompletionIcon
978
- label="Task completed successfully"
979
- className="h-4 w-4 text-green-400"
980
- />
981
-
982
- // Checkbox with proper ARIA attributes
983
- <label className="flex items-center gap-2">
984
- <input
985
- type="checkbox"
986
- className="sr-only peer"
987
- aria-describedby="checkbox-help"
988
- />
989
- <div className="relative">
990
- <div className="h-5 w-5 border-2 border-gray-400 peer-checked:bg-green-400 peer-checked:border-green-400" />
991
- <TickIcon className="absolute inset-0 h-5 w-5 text-white opacity-0 peer-checked:opacity-100" />
992
- </div>
993
- <span>Accept terms</span>
994
- </label>
995
- <div id="checkbox-help" className="text-xs text-gray-500">
996
- Required to proceed with registration
997
- </div>`}
998
- </pre>
999
- </div>
1000
- <div className="!space-y-4">
1001
- <p className="text-sm !text-white/70">
1002
- When using TickIcon for checkboxes or task completion,
1003
- ensure proper labeling and keyboard accessibility. The
1004
- stroke-based design maintains clarity even when scaled
1005
- for users with visual impairments.
1006
- </p>
1007
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
1008
- <div className="flex items-center gap-2 text-sm text-green-200">
1009
- <TickIcon className="h-4 w-4" strokeWidth={2} />
1010
- <span>
1011
- Clear visual feedback helps all users understand
1012
- completion states
1013
- </span>
1014
- </div>
1015
- </div>
1016
- </div>
1017
- </div>
1018
- </div>
53
+ }`,
54
+ livePreview: (
55
+ <div className="text-fm-primary font-fm-text flex items-center gap-2 text-sm">
56
+ <TickIcon className="text-fm-icon-positive h-5 w-5" />
57
+ Task completed
1019
58
  </div>
1020
-
1021
- {/* Related Icons */}
1022
- <div className="!space-y-8">
1023
- <h2 className="text-center text-3xl font-bold !text-white">
1024
- Related Icons
1025
- </h2>
1026
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
1027
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1028
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
1029
- <span className="text-2xl">✅</span>
1030
- </div>
1031
- <div>
1032
- <div className="font-medium text-white">
1033
- TickCircleIcon
1034
- </div>
1035
- <div className="text-xs text-white/60">
1036
- Checkmark in circle
1037
- </div>
1038
- </div>
1039
- </div>
1040
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1041
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
1042
- <span className="text-2xl">❌</span>
1043
- </div>
1044
- <div>
1045
- <div className="font-medium text-white">CrossIcon</div>
1046
- <div className="text-xs text-white/60">
1047
- Close/cancel states
1048
- </div>
1049
- </div>
1050
- </div>
1051
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1052
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
1053
- <span className="text-2xl">ℹ️</span>
1054
- </div>
1055
- <div>
1056
- <div className="font-medium text-white">InfoIcon</div>
1057
- <div className="text-xs text-white/60">
1058
- Information states
1059
- </div>
1060
- </div>
1061
- </div>
1062
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
1063
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
1064
- <span className="text-2xl">⚠️</span>
1065
- </div>
1066
- <div>
1067
- <div className="font-medium text-white">AlertIcon</div>
1068
- <div className="text-xs text-white/60">
1069
- Warning states
1070
- </div>
1071
- </div>
1072
- </div>
1073
- </div>
1074
- </div>
1075
- </div>
1076
-
1077
- {/* Footer */}
1078
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
1079
- <div className="!mx-auto max-w-7xl px-6 py-8">
1080
- <div className="!space-y-4 text-center">
1081
- <p className="!text-white/60">
1082
- TickIcon is part of the Aural UI icon library, designed for
1083
- checkboxes, task completion, and success feedback with a
1084
- clean stroke-based design.
1085
- </p>
1086
- <p className="text-sm !text-white/40">
1087
- All icons use Radix UI's AccessibleIcon for screen reader
1088
- compatibility and follow WCAG guidelines for interactive
1089
- elements.
1090
- </p>
1091
- </div>
1092
- </div>
1093
- </div>
1094
- </div>
1095
- </>
59
+ ),
60
+ }}
61
+ relatedIcons={[
62
+ {
63
+ name: "CircleTickIcon",
64
+ description: "Circle tick outline",
65
+ icon: CircleTickIcon,
66
+ accentToken: "positive",
67
+ },
68
+ {
69
+ name: "TickCircleIcon",
70
+ description: "Filled tick circle",
71
+ icon: TickCircleIcon,
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
+ />
1096
88
  ),
1097
89
  },
1098
90
  },
1099
91
  tags: ["autodocs"],
1100
92
  argTypes: {
1101
- width: {
1102
- control: { type: "range", min: 8, max: 96, step: 2 },
1103
- description: "Width of the icon in pixels",
93
+ className: {
94
+ control: "text",
95
+ description: "CSS classes including color token",
1104
96
  },
1105
97
  withAccessibility: {
1106
98
  control: "boolean",
1107
- description: "Whether to wrap the icon with accessibility features",
1108
- },
1109
- height: {
1110
- control: { type: "range", min: 8, max: 96, step: 2 },
1111
- description: "Height of the icon in pixels",
1112
- },
1113
- stroke: {
1114
- control: "color",
1115
- description: "Stroke color of the checkmark",
1116
- },
1117
- strokeWidth: {
1118
- control: { type: "range", min: 1, max: 4, step: 0.5 },
1119
- description: "Width of the stroke line",
1120
- },
1121
- className: {
1122
- control: "text",
1123
- description: "CSS classes for styling",
99
+ description: "Wrap with accessibility label",
1124
100
  },
1125
101
  },
1126
102
  }
@@ -1128,221 +104,114 @@ function CompletionIcon({ label = "Completed", ...props }) {
1128
104
  export default meta
1129
105
  type Story = StoryObj<typeof TickIcon>
1130
106
 
1131
- // Story parameters for consistent dark theme
1132
- const storyParameters = {
1133
- backgrounds: {
1134
- default: "dark",
1135
- values: [
1136
- { name: "dark", value: "#0a0a0a" },
1137
- { name: "darker", value: "#000000" },
1138
- ],
1139
- },
1140
- }
1141
-
1142
107
  export const Default: Story = {
1143
108
  args: {
1144
- width: 24,
1145
- height: 24,
1146
- className: "text-green-400",
109
+ className: "h-6 w-6 text-fm-icon-positive",
1147
110
  withAccessibility: true,
1148
111
  },
1149
- parameters: storyParameters,
1150
112
  render: (args) => (
1151
- <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>
1152
114
  <TickIcon {...args} />
1153
- </div>
115
+ </IconDefaultCanvas>
1154
116
  ),
1155
117
  }
1156
118
 
1157
119
  export const SizeVariations: Story = {
1158
- parameters: {
1159
- ...storyParameters,
1160
- docs: {
1161
- description: {
1162
- story:
1163
- "TickIcon in different sizes, perfect for checkboxes, form validation, and task completion indicators.",
1164
- },
1165
- },
1166
- },
1167
- render: () => (
1168
- <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">
1169
- <div className="text-center">
1170
- <TickIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
1171
- <span className="text-xs text-white/60">12px</span>
1172
- </div>
1173
- <div className="text-center">
1174
- <TickIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
1175
- <span className="text-xs text-white/60">16px</span>
1176
- </div>
1177
- <div className="text-center">
1178
- <TickIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
1179
- <span className="text-xs text-white/60">20px</span>
1180
- </div>
1181
- <div className="text-center">
1182
- <TickIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
1183
- <span className="text-xs text-white/60">24px</span>
1184
- </div>
1185
- <div className="text-center">
1186
- <TickIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
1187
- <span className="text-xs text-white/60">32px</span>
1188
- </div>
1189
- <div className="text-center">
1190
- <TickIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
1191
- <span className="text-xs text-white/60">48px</span>
1192
- </div>
1193
- </div>
1194
- ),
120
+ render: () => <IconSizeVariations icon={TickIcon} />,
1195
121
  }
1196
122
 
1197
123
  export const ColorVariations: Story = {
1198
- parameters: {
1199
- ...storyParameters,
1200
- docs: {
1201
- description: {
1202
- story:
1203
- "TickIcon in different semantic colors for various completion and success states.",
1204
- },
1205
- },
1206
- },
124
+ render: () => <IconColorVariations icon={TickIcon} />,
125
+ }
126
+
127
+ export const InteractiveStates: Story = {
1207
128
  render: () => (
1208
- <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">
1209
- <div className="text-center">
1210
- <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">
1211
- <TickIcon className="h-8 w-8 text-green-400" strokeWidth={2} />
1212
- </div>
1213
- <div className="text-sm font-medium text-white">Success</div>
1214
- <div className="text-xs text-green-400">text-green-400</div>
1215
- </div>
1216
- <div className="text-center">
1217
- <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">
1218
- <TickIcon className="h-8 w-8 text-emerald-400" strokeWidth={2} />
1219
- </div>
1220
- <div className="text-sm font-medium text-white">Complete</div>
1221
- <div className="text-xs text-emerald-400">text-emerald-400</div>
1222
- </div>
1223
- <div className="text-center">
1224
- <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">
1225
- <TickIcon className="h-8 w-8 text-blue-400" strokeWidth={2} />
1226
- </div>
1227
- <div className="text-sm font-medium text-white">Selected</div>
1228
- <div className="text-xs text-blue-400">text-blue-400</div>
1229
- </div>
1230
- <div className="text-center">
1231
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
1232
- <TickIcon className="h-8 w-8 text-purple-400" strokeWidth={2} />
1233
- </div>
1234
- <div className="text-sm font-medium text-white">Verified</div>
1235
- <div className="text-xs text-purple-400">text-purple-400</div>
1236
- </div>
1237
- </div>
129
+ <IconInteractiveStates
130
+ icon={TickIcon}
131
+ states={[
132
+ {
133
+ label: "Active",
134
+ className: "h-8 w-8 text-fm-icon-active",
135
+ description: "Default state",
136
+ },
137
+ {
138
+ label: "Positive",
139
+ className: "h-8 w-8 text-fm-icon-positive",
140
+ description: "Success / confirmed",
141
+ },
142
+ {
143
+ label: "Inactive",
144
+ className: "h-8 w-8 text-fm-icon-inactive",
145
+ description: "Disabled state",
146
+ },
147
+ ]}
148
+ />
1238
149
  ),
1239
150
  }
1240
151
 
1241
152
  export const UsageExamples: Story = {
1242
- parameters: {
1243
- ...storyParameters,
1244
- docs: {
1245
- description: {
1246
- story:
1247
- "Real-world usage examples showing TickIcon in different UI contexts like checkboxes, todo lists, and form validation.",
1248
- },
1249
- },
1250
- },
1251
153
  render: () => (
1252
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1253
- {/* Custom Checkbox */}
1254
- <div className="!space-y-2">
1255
- <h3 className="text-sm font-medium text-white">Custom Checkbox</h3>
1256
- <div className="!space-y-3">
1257
- <label className="flex cursor-pointer items-center gap-3">
1258
- <div className="relative">
1259
- <input type="checkbox" className="peer sr-only" defaultChecked />
1260
- <div className="peer-unchecked:bg-transparent peer-unchecked:border-gray-400 h-5 w-5 rounded border-2 border-green-400 bg-green-400 transition-colors peer-checked:border-green-400 peer-checked:bg-green-400" />
1261
- <TickIcon
1262
- className="peer-unchecked:opacity-0 absolute inset-0 h-5 w-5 text-white opacity-100 transition-opacity"
1263
- strokeWidth={2}
1264
- />
1265
- </div>
1266
- <span className="text-white">Accept terms and conditions</span>
1267
- </label>
1268
- <label className="flex cursor-pointer items-center gap-3">
1269
- <div className="relative">
1270
- <input type="checkbox" className="peer sr-only" />
1271
- <div className="h-5 w-5 rounded border-2 border-gray-400 bg-transparent transition-colors peer-checked:border-green-400 peer-checked:bg-green-400" />
1272
- <TickIcon
1273
- className="absolute inset-0 h-5 w-5 text-white opacity-0 transition-opacity peer-checked:opacity-100"
1274
- strokeWidth={2}
1275
- />
154
+ <IconUsageCanvas>
155
+ <IconUsageSection title="Task List">
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
+ { label: "Design review complete", done: true },
159
+ { label: "Code review approved", done: true },
160
+ { label: "Deploy to production", done: false },
161
+ ].map(({ label, done }) => (
162
+ <div key={label} className="flex items-center gap-3">
163
+ <div
164
+ className={`flex h-5 w-5 items-center justify-center rounded border ${done ? "border-fm-icon-positive/30 bg-fm-icon-positive/20" : "border-fm-divider-secondary bg-fm-surface-secondary"}`}
165
+ >
166
+ {done && <TickIcon className="text-fm-icon-positive h-4 w-4" />}
167
+ </div>
168
+ <span
169
+ className={`font-fm-text text-sm ${done ? "text-fm-secondary line-through" : "text-fm-primary"}`}
170
+ >
171
+ {label}
172
+ </span>
1276
173
  </div>
1277
- <span className="text-white">Subscribe to newsletter</span>
1278
- </label>
174
+ ))}
1279
175
  </div>
1280
- </div>
1281
-
1282
- {/* Todo List */}
1283
- <div className="!space-y-2">
1284
- <h3 className="text-sm font-medium text-white">Todo List</h3>
1285
- <div className="!space-y-3">
1286
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
1287
- <TickIcon className="h-5 w-5 text-green-400" strokeWidth={2} />
1288
- <span className="flex-1 text-white line-through opacity-70">
1289
- Set up project repository
176
+ </IconUsageSection>
177
+
178
+ <IconUsageSection title="Form Validation">
179
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
180
+ <div className="border-fm-icon-positive/30 flex items-center gap-2 rounded-lg border px-3 py-2">
181
+ <TickIcon className="text-fm-icon-positive h-4 w-4 shrink-0" />
182
+ <span className="text-fm-secondary font-fm-text text-sm">
183
+ Email address is valid
1290
184
  </span>
1291
- <span className="text-xs text-green-400">Completed</span>
1292
- </div>
1293
- <div className="flex items-center gap-3 rounded-lg border border-white/10 bg-white/5 p-3">
1294
- <div className="h-5 w-5 rounded-full border-2 border-white/30"></div>
1295
- <span className="flex-1 text-white">Implement authentication</span>
1296
- <span className="text-xs text-white/50">In Progress</span>
1297
185
  </div>
1298
186
  </div>
1299
- </div>
1300
-
1301
- {/* Form Validation */}
1302
- <div className="!space-y-2">
1303
- <h3 className="text-sm font-medium text-white">Form Validation</h3>
1304
- <div className="relative">
1305
- <input
1306
- type="password"
1307
- 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"
1308
- placeholder="Enter your password"
1309
- defaultValue="securepassword123"
1310
- />
1311
- <TickIcon
1312
- className="absolute top-1/2 right-3 h-4 w-4 -translate-y-1/2 text-green-400"
1313
- strokeWidth={2}
1314
- />
1315
- </div>
1316
- <div className="flex items-center gap-2 text-sm text-green-400">
1317
- <TickIcon className="h-4 w-4" strokeWidth={2} />
1318
- <span>Password meets all requirements</span>
187
+ </IconUsageSection>
188
+
189
+ <IconUsageSection title="Feature List">
190
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
191
+ {["Unlimited projects", "Priority support", "Custom domains"].map(
192
+ (feature) => (
193
+ <div key={feature} className="flex items-center gap-2">
194
+ <TickIcon className="text-fm-icon-positive h-4 w-4 shrink-0" />
195
+ <span className="text-fm-primary font-fm-text text-sm">
196
+ {feature}
197
+ </span>
198
+ </div>
199
+ )
200
+ )}
1319
201
  </div>
1320
- </div>
1321
- </div>
202
+ </IconUsageSection>
203
+ </IconUsageCanvas>
1322
204
  ),
1323
205
  }
1324
206
 
1325
207
  export const Playground: Story = {
1326
- parameters: {
1327
- ...storyParameters,
1328
- docs: {
1329
- description: {
1330
- story:
1331
- "Interactive playground to experiment with different TickIcon configurations including stroke width and colors.",
1332
- },
1333
- },
1334
- },
1335
208
  args: {
1336
- width: 32,
1337
- height: 32,
1338
- className: "text-green-400",
1339
- strokeWidth: 2,
209
+ className: "h-8 w-8 text-fm-icon-positive",
210
+ withAccessibility: true,
1340
211
  },
1341
212
  render: (args) => (
1342
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1343
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1344
- <TickIcon {...args} />
1345
- </div>
1346
- </div>
213
+ <IconPlaygroundCanvas>
214
+ <TickIcon {...args} />
215
+ </IconPlaygroundCanvas>
1347
216
  ),
1348
217
  }