aural-ui 2.0.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 (308) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +456 -0
  3. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +1327 -0
  4. package/dist/components/aspect-ratio/index.tsx +10 -0
  5. package/dist/components/aspect-ratio/meta.ts +8 -0
  6. package/dist/components/avatar/Avatar.stories.tsx +645 -0
  7. package/dist/components/avatar/index.tsx +50 -0
  8. package/dist/components/avatar/meta.ts +8 -0
  9. package/dist/components/badge/Badge.stories.tsx +169 -0
  10. package/dist/components/badge/index.tsx +28 -0
  11. package/dist/components/badge/meta.ts +6 -0
  12. package/dist/components/banner/Banner.stories.tsx +475 -0
  13. package/dist/components/banner/index.tsx +256 -0
  14. package/dist/components/banner/meta.ts +36 -0
  15. package/dist/components/button/Button.stories.tsx +74 -0
  16. package/dist/components/button/index.tsx +158 -0
  17. package/dist/components/button/meta.ts +33 -0
  18. package/dist/components/card/Card.stories.tsx +377 -0
  19. package/dist/components/card/index.tsx +85 -0
  20. package/dist/components/card/meta.ts +14 -0
  21. package/dist/components/char-count/CharCount.stories.tsx +334 -0
  22. package/dist/components/char-count/index.tsx +51 -0
  23. package/dist/components/char-count/meta.ts +13 -0
  24. package/dist/components/checkbox/Checkbox.stories.tsx +209 -0
  25. package/dist/components/checkbox/index.tsx +34 -0
  26. package/dist/components/checkbox/meta.ts +19 -0
  27. package/dist/components/chip/Chip.stories.tsx +207 -0
  28. package/dist/components/chip/index.tsx +92 -0
  29. package/dist/components/chip/meta.ts +17 -0
  30. package/dist/components/circular-loader/CircularLoader.stories.tsx +741 -0
  31. package/dist/components/circular-loader/index.tsx +138 -0
  32. package/dist/components/circular-loader/meta.ts +11 -0
  33. package/dist/components/collapsible/Collapsible.stories.tsx +319 -0
  34. package/dist/components/collapsible/index.tsx +158 -0
  35. package/dist/components/collapsible/meta.ts +22 -0
  36. package/dist/components/command/Command.stories.tsx +996 -0
  37. package/dist/components/command/index.tsx +324 -0
  38. package/dist/components/command/meta.ts +18 -0
  39. package/dist/components/dialog/Dialog.stories.tsx +963 -0
  40. package/dist/components/dialog/index.tsx +250 -0
  41. package/dist/components/dialog/meta.ts +28 -0
  42. package/dist/components/divider/Divider.stories.tsx +633 -0
  43. package/dist/components/divider/index.tsx +181 -0
  44. package/dist/components/divider/meta.ts +12 -0
  45. package/dist/components/dot-loader/DotLoader.stories.tsx +352 -0
  46. package/dist/components/dot-loader/index.tsx +78 -0
  47. package/dist/components/dot-loader/meta.ts +14 -0
  48. package/dist/components/dropdown/Dropdown.stories.tsx +1210 -0
  49. package/dist/components/dropdown/index.tsx +479 -0
  50. package/dist/components/dropdown/meta.ts +21 -0
  51. package/dist/components/form/Form.stories.tsx +320 -0
  52. package/dist/components/form/index.tsx +183 -0
  53. package/dist/components/form/meta.ts +11 -0
  54. package/dist/components/helper-text/HelperText.stories.tsx +254 -0
  55. package/dist/components/helper-text/index.tsx +102 -0
  56. package/dist/components/helper-text/meta.ts +18 -0
  57. package/dist/components/hover-card/HoverCard.stories.tsx +1328 -0
  58. package/dist/components/hover-card/index.tsx +42 -0
  59. package/dist/components/hover-card/meta.ts +12 -0
  60. package/dist/components/icon-button/IconButton.stories.tsx +252 -0
  61. package/dist/components/icon-button/index.tsx +130 -0
  62. package/dist/components/icon-button/meta.ts +20 -0
  63. package/dist/components/if-else/if-else.stories.tsx +100 -0
  64. package/dist/components/if-else/index.tsx +56 -0
  65. package/dist/components/if-else/meta.ts +6 -0
  66. package/dist/components/index.ts +70 -0
  67. package/dist/components/input/Input.stories.tsx +431 -0
  68. package/dist/components/input/index.tsx +487 -0
  69. package/dist/components/input/meta.ts +28 -0
  70. package/dist/components/label/Label.stories.tsx +200 -0
  71. package/dist/components/label/index.tsx +43 -0
  72. package/dist/components/label/meta.ts +14 -0
  73. package/dist/components/list/List.stories.tsx +963 -0
  74. package/dist/components/list/index.tsx +567 -0
  75. package/dist/components/list/meta.ts +24 -0
  76. package/dist/components/marquee/Marquee.stories.tsx +819 -0
  77. package/dist/components/marquee/index.tsx +107 -0
  78. package/dist/components/marquee/meta.ts +6 -0
  79. package/dist/components/overlay/Overlay.stories.tsx +954 -0
  80. package/dist/components/overlay/index.tsx +58 -0
  81. package/dist/components/overlay/meta.ts +10 -0
  82. package/dist/components/pagination/Pagination.stories.tsx +354 -0
  83. package/dist/components/pagination/index.tsx +455 -0
  84. package/dist/components/pagination/meta.ts +29 -0
  85. package/dist/components/popover/Popover.stories.tsx +1037 -0
  86. package/dist/components/popover/index.tsx +67 -0
  87. package/dist/components/popover/meta.ts +12 -0
  88. package/dist/components/radio/Radio.stories.tsx +146 -0
  89. package/dist/components/radio/index.tsx +41 -0
  90. package/dist/components/radio/meta.ts +19 -0
  91. package/dist/components/resizable/Resizable.stories.tsx +866 -0
  92. package/dist/components/resizable/index.tsx +55 -0
  93. package/dist/components/resizable/meta.ts +12 -0
  94. package/dist/components/scroll-area/ScrollArea.stories.tsx +1104 -0
  95. package/dist/components/scroll-area/index.tsx +55 -0
  96. package/dist/components/scroll-area/meta.ts +8 -0
  97. package/dist/components/search/Search.stories.tsx +678 -0
  98. package/dist/components/search/index.tsx +141 -0
  99. package/dist/components/search/meta.ts +6 -0
  100. package/dist/components/select/Select.stories.tsx +962 -0
  101. package/dist/components/select/index.tsx +512 -0
  102. package/dist/components/select/meta.ts +40 -0
  103. package/dist/components/sheet/Sheet.stories.tsx +1060 -0
  104. package/dist/components/sheet/index.tsx +440 -0
  105. package/dist/components/sheet/meta.ts +38 -0
  106. package/dist/components/skelton/Skelton.stories.tsx +859 -0
  107. package/dist/components/skelton/index.tsx +17 -0
  108. package/dist/components/skelton/meta.ts +6 -0
  109. package/dist/components/slider/Slider.stories.tsx +876 -0
  110. package/dist/components/slider/index.tsx +156 -0
  111. package/dist/components/slider/meta.ts +29 -0
  112. package/dist/components/stepper/Stepper.stories.tsx +639 -0
  113. package/dist/components/stepper/index.tsx +650 -0
  114. package/dist/components/stepper/meta.ts +19 -0
  115. package/dist/components/switch/Switch.stories.tsx +85 -0
  116. package/dist/components/switch/index.tsx +37 -0
  117. package/dist/components/switch/meta.ts +24 -0
  118. package/dist/components/switch-case/SwitchCase.stories.tsx +209 -0
  119. package/dist/components/switch-case/index.tsx +89 -0
  120. package/dist/components/switch-case/meta.ts +6 -0
  121. package/dist/components/table/Table.stories.tsx +1095 -0
  122. package/dist/components/table/index.tsx +113 -0
  123. package/dist/components/table/meta.ts +20 -0
  124. package/dist/components/tabs/Tabs.stories.tsx +1379 -0
  125. package/dist/components/tabs/index.tsx +186 -0
  126. package/dist/components/tabs/meta.ts +25 -0
  127. package/dist/components/tag/Tag.stories.tsx +625 -0
  128. package/dist/components/tag/index.tsx +320 -0
  129. package/dist/components/tag/meta.ts +52 -0
  130. package/dist/components/textarea/TextArea.stories.tsx +723 -0
  131. package/dist/components/textarea/index.tsx +480 -0
  132. package/dist/components/textarea/meta.ts +23 -0
  133. package/dist/components/toast/Toast.stories.tsx +1427 -0
  134. package/dist/components/toast/index.tsx +26 -0
  135. package/dist/components/toast/meta.ts +19 -0
  136. package/dist/components/toggle/Toggle.stories.tsx +1093 -0
  137. package/dist/components/toggle/index.tsx +44 -0
  138. package/dist/components/toggle/meta.ts +19 -0
  139. package/dist/components/tooltip/Tooltip.stories.tsx +1548 -0
  140. package/dist/components/tooltip/index.tsx +304 -0
  141. package/dist/components/tooltip/meta.ts +21 -0
  142. package/dist/components/typography/Typography.stories.tsx +197 -0
  143. package/dist/components/typography/index.tsx +184 -0
  144. package/dist/components/typography/meta.ts +38 -0
  145. package/dist/fonts/LabGrotesque-Regular.ttf +0 -0
  146. package/dist/fonts/LabGrotesqueTRIAL-Bold.otf +0 -0
  147. package/dist/fonts/LabGrotesqueTRIAL-Light.otf +0 -0
  148. package/dist/fonts/LabGrotesqueTRIAL-Medium.otf +0 -0
  149. package/dist/fonts/LabGrotesqueTRIAL-Regular.otf +0 -0
  150. package/dist/fonts/PPSupplySans-Regular (1).otf +0 -0
  151. package/dist/fonts/PPSupplySans-Regular.otf +0 -0
  152. package/dist/fonts/PPSupplySans-Ultralight.otf +0 -0
  153. package/dist/hooks/index.ts +3 -0
  154. package/dist/hooks/use-previous/UsePrevious.stories.tsx +997 -0
  155. package/dist/hooks/use-previous/index.ts +15 -0
  156. package/dist/hooks/use-previous/meta.ts +6 -0
  157. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +983 -0
  158. package/dist/hooks/use-standalone-pagination/index.ts +146 -0
  159. package/dist/hooks/use-standalone-pagination/meta.ts +6 -0
  160. package/dist/icons/Icons.stories.tsx +29 -0
  161. package/dist/icons/alert-icon/AlertIcon.stories.tsx +991 -0
  162. package/dist/icons/alert-icon/index.tsx +48 -0
  163. package/dist/icons/alert-icon/meta.ts +8 -0
  164. package/dist/icons/all-icons.tsx +738 -0
  165. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +1031 -0
  166. package/dist/icons/angle-down-icon/index.tsx +25 -0
  167. package/dist/icons/angle-down-icon/meta.ts +8 -0
  168. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +1080 -0
  169. package/dist/icons/arrow-box-left-icon/index.tsx +24 -0
  170. package/dist/icons/arrow-box-left-icon/meta.ts +8 -0
  171. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +1151 -0
  172. package/dist/icons/arrow-right-icon/index.tsx +26 -0
  173. package/dist/icons/arrow-right-icon/meta.ts +8 -0
  174. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +1273 -0
  175. package/dist/icons/arrow-right-up-icon/index.tsx +24 -0
  176. package/dist/icons/arrow-right-up-icon/meta.ts +8 -0
  177. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +670 -0
  178. package/dist/icons/art-board-icon/index.tsx +24 -0
  179. package/dist/icons/art-board-icon/meta.ts +7 -0
  180. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +1244 -0
  181. package/dist/icons/audio-bar-icon/index.tsx +19 -0
  182. package/dist/icons/audio-bar-icon/meta.ts +8 -0
  183. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +1239 -0
  184. package/dist/icons/bubble-check-icon/index.tsx +24 -0
  185. package/dist/icons/bubble-check-icon/meta.ts +8 -0
  186. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +1228 -0
  187. package/dist/icons/bubble-crossed-icon/index.tsx +24 -0
  188. package/dist/icons/bubble-crossed-icon/meta.ts +8 -0
  189. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +912 -0
  190. package/dist/icons/bubble-sparkle-icon/index.tsx +26 -0
  191. package/dist/icons/bubble-sparkle-icon/meta.ts +8 -0
  192. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +1021 -0
  193. package/dist/icons/chevron-double-left-icon/index.tsx +34 -0
  194. package/dist/icons/chevron-double-left-icon/meta.ts +8 -0
  195. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +1021 -0
  196. package/dist/icons/chevron-double-right-icon/index.tsx +34 -0
  197. package/dist/icons/chevron-double-right-icon/meta.ts +8 -0
  198. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +1001 -0
  199. package/dist/icons/chevron-down-icon/index.tsx +27 -0
  200. package/dist/icons/chevron-down-icon/meta.ts +8 -0
  201. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +1029 -0
  202. package/dist/icons/chevron-left-icon/index.tsx +27 -0
  203. package/dist/icons/chevron-left-icon/meta.ts +8 -0
  204. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +1021 -0
  205. package/dist/icons/chevron-right-icon/index.tsx +27 -0
  206. package/dist/icons/chevron-right-icon/meta.ts +8 -0
  207. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +1036 -0
  208. package/dist/icons/chevron-up-icon/index.tsx +27 -0
  209. package/dist/icons/chevron-up-icon/meta.ts +8 -0
  210. package/dist/icons/command-icon/CommandIcon.stories.tsx +1098 -0
  211. package/dist/icons/command-icon/index.tsx +24 -0
  212. package/dist/icons/command-icon/meta.ts +8 -0
  213. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +1061 -0
  214. package/dist/icons/cross-circle-icon/index.tsx +23 -0
  215. package/dist/icons/cross-circle-icon/meta.ts +8 -0
  216. package/dist/icons/cross-icon/CrossIcon.stories.tsx +1027 -0
  217. package/dist/icons/cross-icon/index.tsx +24 -0
  218. package/dist/icons/cross-icon/meta.ts +8 -0
  219. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +1092 -0
  220. package/dist/icons/edit-big-icon/index.tsx +22 -0
  221. package/dist/icons/edit-big-icon/meta.ts +8 -0
  222. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +1090 -0
  223. package/dist/icons/eye-close-icon/index.tsx +26 -0
  224. package/dist/icons/eye-close-icon/meta.ts +8 -0
  225. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +1098 -0
  226. package/dist/icons/eye-open-icon/index.tsx +24 -0
  227. package/dist/icons/eye-open-icon/meta.ts +8 -0
  228. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +1071 -0
  229. package/dist/icons/feature-shine-icon/index.tsx +29 -0
  230. package/dist/icons/feature-shine-icon/meta.ts +8 -0
  231. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +1115 -0
  232. package/dist/icons/file-chart-icon/index.tsx +24 -0
  233. package/dist/icons/file-chart-icon/meta.ts +8 -0
  234. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +668 -0
  235. package/dist/icons/file-text-icon/index.tsx +24 -0
  236. package/dist/icons/file-text-icon/meta.ts +8 -0
  237. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +1239 -0
  238. package/dist/icons/grip-vertical-icon/index.tsx +28 -0
  239. package/dist/icons/grip-vertical-icon/meta.ts +8 -0
  240. package/dist/icons/image-icon/ImageIcon.stories.tsx +1181 -0
  241. package/dist/icons/image-icon/index.tsx +24 -0
  242. package/dist/icons/image-icon/meta.ts +8 -0
  243. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +1248 -0
  244. package/dist/icons/import-folder-icon/index.tsx +22 -0
  245. package/dist/icons/import-folder-icon/meta.ts +8 -0
  246. package/dist/icons/index.ts +46 -0
  247. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +1272 -0
  248. package/dist/icons/light-bulb-simple-icon/index.tsx +24 -0
  249. package/dist/icons/light-bulb-simple-icon/meta.ts +8 -0
  250. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +1245 -0
  251. package/dist/icons/magic-book-icon/index.tsx +32 -0
  252. package/dist/icons/magic-book-icon/meta.ts +8 -0
  253. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +1251 -0
  254. package/dist/icons/maintenance-icon/index.tsx +23 -0
  255. package/dist/icons/maintenance-icon/meta.ts +8 -0
  256. package/dist/icons/message-icon/MessageIcon.stories.tsx +595 -0
  257. package/dist/icons/message-icon/index.tsx +30 -0
  258. package/dist/icons/message-icon/meta.ts +8 -0
  259. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +1245 -0
  260. package/dist/icons/move-horizontal-icon/index.tsx +23 -0
  261. package/dist/icons/move-horizontal-icon/meta.ts +8 -0
  262. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +1196 -0
  263. package/dist/icons/move-vertical-icon/index.tsx +23 -0
  264. package/dist/icons/move-vertical-icon/meta.ts +8 -0
  265. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +1167 -0
  266. package/dist/icons/page-search-icon/index.tsx +21 -0
  267. package/dist/icons/page-search-icon/meta.ts +8 -0
  268. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +1131 -0
  269. package/dist/icons/pencil-icon/index.tsx +21 -0
  270. package/dist/icons/pencil-icon/meta.ts +8 -0
  271. package/dist/icons/plus-icon/PlusIcon.stories.tsx +1151 -0
  272. package/dist/icons/plus-icon/index.tsx +24 -0
  273. package/dist/icons/plus-icon/meta.ts +8 -0
  274. package/dist/icons/search-icon/SearchIcon.stories.tsx +1181 -0
  275. package/dist/icons/search-icon/index.tsx +24 -0
  276. package/dist/icons/search-icon/meta.ts +8 -0
  277. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +1167 -0
  278. package/dist/icons/site-logo-icon/index.tsx +79 -0
  279. package/dist/icons/site-logo-icon/meta.ts +8 -0
  280. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +637 -0
  281. package/dist/icons/spinner-gradient-icon/index.tsx +53 -0
  282. package/dist/icons/spinner-gradient-icon/meta.ts +8 -0
  283. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +644 -0
  284. package/dist/icons/spinner-solid-icon/index.tsx +59 -0
  285. package/dist/icons/spinner-solid-icon/meta.ts +8 -0
  286. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +736 -0
  287. package/dist/icons/spinner-solid-neutral-icon/index.tsx +53 -0
  288. package/dist/icons/spinner-solid-neutral-icon/meta.ts +8 -0
  289. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +1204 -0
  290. package/dist/icons/tick-circle-icon/index.tsx +23 -0
  291. package/dist/icons/tick-circle-icon/meta.ts +8 -0
  292. package/dist/icons/tick-icon/TickIcon.stories.tsx +1340 -0
  293. package/dist/icons/tick-icon/index.tsx +24 -0
  294. package/dist/icons/tick-icon/meta.ts +8 -0
  295. package/dist/icons/trash-icon/TrashIcon.stories.tsx +996 -0
  296. package/dist/icons/trash-icon/index.tsx +24 -0
  297. package/dist/icons/trash-icon/meta.ts +8 -0
  298. package/dist/icons/upload-icon/UploadIcon.stories.tsx +947 -0
  299. package/dist/icons/upload-icon/index.tsx +24 -0
  300. package/dist/icons/upload-icon/meta.ts +8 -0
  301. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +1045 -0
  302. package/dist/icons/vertical-menu-icon/index.tsx +27 -0
  303. package/dist/icons/vertical-menu-icon/meta.ts +8 -0
  304. package/dist/index.d.ts +6 -0
  305. package/dist/index.js +206 -0
  306. package/dist/lib/utils.ts +6 -0
  307. package/dist/styles/aural-theme.css +1008 -0
  308. package/package.json +142 -0
@@ -0,0 +1,1061 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { CrossCircleIcon } from "."
5
+
6
+ const meta: Meta<typeof CrossCircleIcon> = {
7
+ title: "Icons/CrossCircleIcon",
8
+ component: CrossCircleIcon,
9
+ parameters: {
10
+ layout: "fullscreen",
11
+ backgrounds: {
12
+ default: "dark",
13
+ values: [
14
+ { name: "dark", value: "#0a0a0a" },
15
+ { name: "darker", value: "#000000" },
16
+ { name: "light", value: "#ffffff" },
17
+ ],
18
+ },
19
+ docs: {
20
+ page: () => (
21
+ <>
22
+ {/* Override default docs styling */}
23
+ <style>
24
+ {`
25
+ .sbdocs-wrapper {
26
+ padding: 0 ;
27
+ max-width: none ;
28
+ background: transparent ;
29
+ }
30
+ .sbdocs-content {
31
+ max-width: none ;
32
+ padding: 0 ;
33
+ margin: 0 ;
34
+ background: transparent ;
35
+ }
36
+ .docs-story {
37
+ background: transparent ;
38
+ }
39
+ .sbdocs {
40
+ background: transparent ;
41
+ }
42
+ body {
43
+ background: #0a0a0a ;
44
+ }
45
+ #storybook-docs {
46
+ background: #0a0a0a ;
47
+ }
48
+ .sbdocs-preview {
49
+ background: transparent ;
50
+ border: none ;
51
+ }
52
+ .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
+ color: white ;
54
+ }
55
+ .sbdocs-p, .sbdocs-li {
56
+ color: rgba(255, 255, 255, 0.7) ;
57
+ }
58
+ .sbdocs-code {
59
+ background: rgba(255, 255, 255, 0.1) ;
60
+ color: rgba(168, 85, 247, 1) ;
61
+ border: 1px solid rgba(255, 255, 255, 0.1) ;
62
+ }
63
+ .sbdocs-pre {
64
+ background: rgba(0, 0, 0, 0.4) ;
65
+ border: 1px solid rgba(255, 255, 255, 0.1) ;
66
+ }
67
+ .sbdocs-table {
68
+ background: rgba(255, 255, 255, 0.05) ;
69
+ border: 1px solid rgba(255, 255, 255, 0.1) ;
70
+ }
71
+ .sbdocs-table th {
72
+ background: rgba(255, 255, 255, 0.05) ;
73
+ color: white ;
74
+ border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
75
+ }
76
+ .sbdocs-table td {
77
+ color: rgba(255, 255, 255, 0.7) ;
78
+ border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
79
+ }
80
+ `}
81
+ </style>
82
+
83
+ <div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
84
+ {/* Header */}
85
+ <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
86
+ <div className="absolute inset-0 bg-gradient-to-r from-red-500/10 via-transparent to-pink-500/10" />
87
+ <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
+ <div className="!space-y-6 text-center">
89
+ <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-red-500/30 bg-gradient-to-br from-red-500/20 to-pink-500/20">
90
+ <CrossCircleIcon className="h-12 w-12 fill-red-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ CrossCircleIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ A clear and recognizable close/cancel icon featuring a cross
97
+ within a circle. Perfect for dismissible components, error
98
+ states, and removal actions. Built with accessibility in
99
+ mind using Radix UI's AccessibleIcon wrapper.
100
+ </p>
101
+
102
+ {/* Stats */}
103
+ <div className="flex items-center justify-center gap-8 pt-8">
104
+ <div className="text-center">
105
+ <div className="text-3xl font-bold text-red-300">
106
+ Accessible
107
+ </div>
108
+ <div className="text-sm text-white/60">
109
+ Screen reader friendly
110
+ </div>
111
+ </div>
112
+ <div className="h-8 w-px bg-white/20" />
113
+ <div className="text-center">
114
+ <div className="text-3xl font-bold text-pink-300">
115
+ Scalable
116
+ </div>
117
+ <div className="text-sm text-white/60">
118
+ Any size needed
119
+ </div>
120
+ </div>
121
+ <div className="h-8 w-px bg-white/20" />
122
+ <div className="text-center">
123
+ <div className="text-3xl font-bold text-rose-300">
124
+ Versatile
125
+ </div>
126
+ <div className="text-sm text-white/60">
127
+ Multiple use cases
128
+ </div>
129
+ </div>
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </div>
134
+
135
+ {/* Content */}
136
+ <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
137
+ {/* Quick Usage */}
138
+ <div className="!space-y-8">
139
+ <h2 className="text-center text-3xl font-bold !text-white">
140
+ Quick Start
141
+ </h2>
142
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
+ <div className="!space-y-4">
144
+ <h3 className="text-xl font-semibold !text-red-300">
145
+ Basic Usage
146
+ </h3>
147
+ <div className="rounded-lg bg-black/40 p-4">
148
+ <pre className="overflow-x-auto text-sm !text-green-300">
149
+ {`import { CrossCircleIcon } from "@icons/cross-circle-icon"
150
+
151
+ function DismissibleAlert() {
152
+ return (
153
+ <div className="flex items-center justify-between p-4 bg-red-500/10 border border-red-500/20 rounded-lg">
154
+ <span>Error message</span>
155
+ <button>
156
+ <CrossCircleIcon className="h-5 w-5 fill-red-400 " />
157
+ </button>
158
+ </div>
159
+ )
160
+ }`}
161
+ </pre>
162
+ </div>
163
+ </div>
164
+
165
+ <div className="!space-y-4">
166
+ <h3 className="text-xl font-semibold !text-red-300">
167
+ Live Preview
168
+ </h3>
169
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
170
+ <div className="flex items-center justify-between rounded-lg border border-red-500/20 bg-red-500/10 px-4 py-2">
171
+ <span className="text-white">Error message</span>
172
+ <button className="ml-4">
173
+ <CrossCircleIcon className="h-5 w-5 fill-red-400" />
174
+ </button>
175
+ </div>
176
+ </div>
177
+ </div>
178
+ </div>
179
+ </div>
180
+
181
+ {/* Props Documentation */}
182
+ <div className="!space-y-8">
183
+ <h2 className="text-center text-3xl font-bold !text-white">
184
+ Props & Configuration
185
+ </h2>
186
+
187
+ <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
188
+ <div className="bg-white/5 p-4">
189
+ <h3 className="text-xl font-semibold !text-white">Props</h3>
190
+ </div>
191
+ <table className="!my-0 w-full">
192
+ <thead className="bg-white/5">
193
+ <tr className="border-b border-white/10">
194
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
195
+ Prop
196
+ </th>
197
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
198
+ Type
199
+ </th>
200
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
201
+ Default
202
+ </th>
203
+ <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
204
+ Description
205
+ </th>
206
+ </tr>
207
+ </thead>
208
+ <tbody>
209
+ <tr className="border-b border-white/5">
210
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
211
+ width
212
+ </td>
213
+ <td className="px-6 py-4 text-sm !text-white/70">
214
+ number | string
215
+ </td>
216
+ <td className="px-6 py-4 text-sm !text-white/50">16</td>
217
+ <td className="px-6 py-4 text-sm !text-white/70">
218
+ Width of the icon in pixels
219
+ </td>
220
+ </tr>
221
+ <tr className="border-b border-white/5 !bg-black/10">
222
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
223
+ height
224
+ </td>
225
+ <td className="px-6 py-4 text-sm !text-white/70">
226
+ number | string
227
+ </td>
228
+ <td className="px-6 py-4 text-sm !text-white/50">16</td>
229
+ <td className="px-6 py-4 text-sm !text-white/70">
230
+ Height of the icon in pixels
231
+ </td>
232
+ </tr>
233
+ <tr className="border-b border-white/5">
234
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
235
+ fill
236
+ </td>
237
+ <td className="px-6 py-4 text-sm !text-white/70">
238
+ string
239
+ </td>
240
+ <td className="px-6 py-4 text-sm !text-white/50">
241
+ white
242
+ </td>
243
+ <td className="px-6 py-4 text-sm !text-white/70">
244
+ Fill color of the icon
245
+ </td>
246
+ </tr>
247
+ <tr className="border-b border-white/5 !bg-black/10">
248
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
249
+ className
250
+ </td>
251
+ <td className="px-6 py-4 text-sm !text-white/70">
252
+ string
253
+ </td>
254
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
255
+ <td className="px-6 py-4 text-sm !text-white/70">
256
+ CSS classes for styling (use for overrides)
257
+ </td>
258
+ </tr>
259
+ <tr className="border-b border-white/5">
260
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
261
+ onClick
262
+ </td>
263
+ <td className="px-6 py-4 text-sm !text-white/70">
264
+ function
265
+ </td>
266
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
267
+ <td className="px-6 py-4 text-sm !text-white/70">
268
+ Click handler for interactive use
269
+ </td>
270
+ </tr>
271
+ <tr className="!bg-black/10">
272
+ <td className="px-6 py-4 font-mono text-sm !text-red-300">
273
+ ...svgProps
274
+ </td>
275
+ <td className="px-6 py-4 text-sm !text-white/70">
276
+ SVGProps
277
+ </td>
278
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
279
+ <td className="px-6 py-4 text-sm !text-white/70">
280
+ All standard SVG element props
281
+ </td>
282
+ </tr>
283
+ </tbody>
284
+ </table>
285
+ </div>
286
+ </div>
287
+
288
+ {/* Size Variations */}
289
+ <div className="!space-y-8">
290
+ <h2 className="text-center text-3xl font-bold !text-white">
291
+ Size Variations
292
+ </h2>
293
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
294
+ <div className="!space-y-6">
295
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
296
+ <div className="!space-y-4">
297
+ <h3 className="text-lg font-semibold !text-red-300">
298
+ Standard Sizes
299
+ </h3>
300
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
301
+ <div className="text-center">
302
+ <CrossCircleIcon className="!mx-auto mb-2 h-3 w-3 fill-red-400" />
303
+ <span className="text-xs text-white/60">12px</span>
304
+ </div>
305
+ <div className="text-center">
306
+ <CrossCircleIcon className="!mx-auto mb-2 h-4 w-4 fill-red-400" />
307
+ <span className="text-xs text-white/60">16px</span>
308
+ </div>
309
+ <div className="text-center">
310
+ <CrossCircleIcon className="!mx-auto mb-2 h-5 w-5 fill-red-400" />
311
+ <span className="text-xs text-white/60">20px</span>
312
+ </div>
313
+ <div className="text-center">
314
+ <CrossCircleIcon className="!mx-auto mb-2 h-6 w-6 fill-red-400" />
315
+ <span className="text-xs text-white/60">24px</span>
316
+ </div>
317
+ <div className="text-center">
318
+ <CrossCircleIcon className="!mx-auto mb-2 h-8 w-8 fill-red-400" />
319
+ <span className="text-xs text-white/60">32px</span>
320
+ </div>
321
+ <div className="text-center">
322
+ <CrossCircleIcon className="!mx-auto mb-2 h-12 w-12 fill-red-400" />
323
+ <span className="text-xs text-white/60">48px</span>
324
+ </div>
325
+ </div>
326
+ </div>
327
+
328
+ <div className="!space-y-4">
329
+ <h3 className="text-lg font-semibold !text-red-300">
330
+ Code Example
331
+ </h3>
332
+ <div className="rounded-lg bg-black/40 p-4">
333
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
334
+ {`// Small (16px)
335
+ <CrossCircleIcon className="h-4 w-4 " />
336
+
337
+ // Medium (24px)
338
+ <CrossCircleIcon className="h-6 w-6 " />
339
+
340
+ // Large (32px)
341
+ <CrossCircleIcon className="h-8 w-8 " />
342
+
343
+ // Custom size
344
+ <CrossCircleIcon width={40} height={40} />`}
345
+ </pre>
346
+ </div>
347
+ </div>
348
+ </div>
349
+ </div>
350
+ </div>
351
+ </div>
352
+
353
+ {/* Color Variations */}
354
+ <div className="!space-y-8">
355
+ <h2 className="text-center text-3xl font-bold !text-white">
356
+ Color Variations
357
+ </h2>
358
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
359
+ <div className="!space-y-4">
360
+ <h3 className="text-lg font-semibold !text-red-300">
361
+ Semantic Colors
362
+ </h3>
363
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
364
+ <div className="flex items-center gap-4">
365
+ <CrossCircleIcon className="h-6 w-6 fill-red-400" />
366
+ <div>
367
+ <div className="text-sm font-medium text-white">
368
+ Error / Danger
369
+ </div>
370
+ <div className="text-xs text-white/60">
371
+ fill-red-400
372
+ </div>
373
+ </div>
374
+ </div>
375
+ <div className="flex items-center gap-4">
376
+ <CrossCircleIcon className="h-6 w-6 fill-gray-400" />
377
+ <div>
378
+ <div className="text-sm font-medium text-white">
379
+ Neutral / Secondary
380
+ </div>
381
+ <div className="text-xs text-white/60">
382
+ fill-gray-400
383
+ </div>
384
+ </div>
385
+ </div>
386
+ <div className="flex items-center gap-4">
387
+ <CrossCircleIcon className="h-6 w-6 fill-white/60" />
388
+ <div>
389
+ <div className="text-sm font-medium text-white">
390
+ Muted
391
+ </div>
392
+ <div className="text-xs text-white/60">
393
+ fill-white/60
394
+ </div>
395
+ </div>
396
+ </div>
397
+ <div className="flex items-center gap-4">
398
+ <CrossCircleIcon className="h-6 w-6 fill-pink-400" />
399
+ <div>
400
+ <div className="text-sm font-medium text-white">
401
+ Accent
402
+ </div>
403
+ <div className="text-xs text-white/60">
404
+ fill-pink-400
405
+ </div>
406
+ </div>
407
+ </div>
408
+ </div>
409
+ </div>
410
+
411
+ <div className="!space-y-4">
412
+ <h3 className="text-lg font-semibold !text-red-300">
413
+ Custom Colors
414
+ </h3>
415
+ <div className="rounded-lg bg-black/40 p-4">
416
+ <pre className="overflow-x-auto text-sm !text-green-300">
417
+ {`// Using Tailwind classes with
418
+ <CrossCircleIcon className="h-6 w-6 fill-red-400 " />
419
+ <CrossCircleIcon className="h-6 w-6 fill-pink-500 " />
420
+
421
+ // Using CSS custom properties
422
+ <CrossCircleIcon
423
+ className="h-6 w-6 "
424
+ style={{ fill: 'var(--color-error)' }}
425
+ />
426
+
427
+ // Direct fill prop
428
+ <CrossCircleIcon
429
+ width={24}
430
+ height={24}
431
+ fill="#ef4444"
432
+ />`}
433
+ </pre>
434
+ </div>
435
+ </div>
436
+ </div>
437
+ </div>
438
+
439
+ {/* Usage Examples */}
440
+ <div className="!space-y-8">
441
+ <h2 className="text-center text-3xl font-bold !text-white">
442
+ Usage Examples
443
+ </h2>
444
+
445
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
446
+ {/* Dismissible Alert */}
447
+ <div className="!space-y-4">
448
+ <h3 className="text-lg font-semibold !text-red-300">
449
+ Dismissible Alert
450
+ </h3>
451
+ <div className="!space-y-4">
452
+ <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
453
+ <div className="flex items-start justify-between">
454
+ <div className="flex items-start gap-3">
455
+ <div className="mt-0.5 flex h-5 w-5 flex-shrink-0 items-center justify-center">
456
+ <span className="text-red-400">⚠</span>
457
+ </div>
458
+ <div>
459
+ <h4 className="font-medium !text-red-200">
460
+ Payment Failed
461
+ </h4>
462
+ <p className="text-sm !text-red-300/80">
463
+ Unable to process your payment. Please try
464
+ again.
465
+ </p>
466
+ </div>
467
+ </div>
468
+ <button className="flex-shrink-0 rounded p-1 hover:bg-red-500/20">
469
+ <CrossCircleIcon className="h-4 w-4 fill-red-400" />
470
+ </button>
471
+ </div>
472
+ </div>
473
+ <div className="rounded-lg bg-black/40 p-4">
474
+ <pre className="overflow-x-auto text-sm !text-green-300">
475
+ {`// Dismissible alert component
476
+ <div className="flex items-start justify-between border border-red-500/20 bg-red-500/10 p-4 rounded-lg">
477
+ <div className="flex items-start gap-3">
478
+ <span className="text-red-400">⚠</span>
479
+ <div>
480
+ <h4 className="font-medium text-red-200">Payment Failed</h4>
481
+ <p className="text-sm text-red-300/80">
482
+ Unable to process your payment. Please try again.
483
+ </p>
484
+ </div>
485
+ </div>
486
+ <button className="flex-shrink-0 p-1 hover:bg-red-500/20 rounded">
487
+ <CrossCircleIcon className="h-4 w-4 fill-red-400 " />
488
+ </button>
489
+ </div>`}
490
+ </pre>
491
+ </div>
492
+ </div>
493
+ </div>
494
+
495
+ {/* Modal Close Button */}
496
+ <div className="!space-y-4">
497
+ <h3 className="text-lg font-semibold !text-red-300">
498
+ Modal Close Button
499
+ </h3>
500
+ <div className="!space-y-4">
501
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
502
+ <div className="mb-4 flex items-center justify-between">
503
+ <h3 className="text-lg font-semibold !text-white">
504
+ Confirm Action
505
+ </h3>
506
+ <button className="rounded p-1 hover:bg-white/10">
507
+ <CrossCircleIcon className="h-5 w-5 fill-gray-400" />
508
+ </button>
509
+ </div>
510
+ <p className="mb-4 !text-white/70">
511
+ Are you sure you want to delete this item?
512
+ </p>
513
+ <div className="flex gap-3">
514
+ <button className="rounded-lg border border-red-500/30 bg-red-500/20 px-4 py-2 text-red-200">
515
+ Delete
516
+ </button>
517
+ <button className="rounded-lg border border-white/20 bg-white/10 px-4 py-2 text-white">
518
+ Cancel
519
+ </button>
520
+ </div>
521
+ </div>
522
+ <div className="rounded-lg bg-black/40 p-4">
523
+ <pre className="overflow-x-auto text-sm !text-green-300">
524
+ {`// Modal with close button
525
+ <div className="border border-white/10 bg-white/5 p-6 rounded-lg">
526
+ <div className="flex items-center justify-between mb-4">
527
+ <h3 className="text-lg font-semibold text-white">Confirm Action</h3>
528
+ <button className="p-1 hover:bg-white/10 rounded">
529
+ <CrossCircleIcon className="h-5 w-5 fill-gray-400 " />
530
+ </button>
531
+ </div>
532
+ <p className="text-white/70 mb-4">
533
+ Are you sure you want to delete this item?
534
+ </p>
535
+ <div className="flex gap-3">
536
+ <button className="px-4 py-2 bg-red-500/20 text-red-200 rounded-lg">
537
+ Delete
538
+ </button>
539
+ <button className="px-4 py-2 bg-white/10 text-white rounded-lg">
540
+ Cancel
541
+ </button>
542
+ </div>
543
+ </div>`}
544
+ </pre>
545
+ </div>
546
+ </div>
547
+ </div>
548
+
549
+ {/* Tag/Chip Removal */}
550
+ <div className="!space-y-4">
551
+ <h3 className="text-lg font-semibold !text-red-300">
552
+ Tag/Chip Removal
553
+ </h3>
554
+ <div className="!space-y-4">
555
+ <div className="flex flex-wrap gap-2">
556
+ <div className="flex items-center gap-2 rounded-full border border-blue-500/30 bg-blue-500/20 px-3 py-1">
557
+ <span className="text-sm text-blue-200">React</span>
558
+ <button className="rounded-full p-0.5 hover:bg-blue-500/30">
559
+ <CrossCircleIcon className="h-3 w-3 fill-blue-300" />
560
+ </button>
561
+ </div>
562
+ <div className="flex items-center gap-2 rounded-full border border-green-500/30 bg-green-500/20 px-3 py-1">
563
+ <span className="text-sm text-green-200">
564
+ TypeScript
565
+ </span>
566
+ <button className="rounded-full p-0.5 hover:bg-green-500/30">
567
+ <CrossCircleIcon className="h-3 w-3 fill-green-300" />
568
+ </button>
569
+ </div>
570
+ <div className="flex items-center gap-2 rounded-full border border-purple-500/30 bg-purple-500/20 px-3 py-1">
571
+ <span className="text-sm text-purple-200">
572
+ Tailwind
573
+ </span>
574
+ <button className="rounded-full p-0.5 hover:bg-purple-500/30">
575
+ <CrossCircleIcon className="h-3 w-3 fill-purple-300" />
576
+ </button>
577
+ </div>
578
+ </div>
579
+ <div className="rounded-lg bg-black/40 p-4">
580
+ <pre className="overflow-x-auto text-sm !text-green-300">
581
+ {`// Removable tags/chips
582
+ <div className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-3 py-1 rounded-full">
583
+ <span className="text-blue-200 text-sm">React</span>
584
+ <button className="p-0.5 hover:bg-blue-500/30 rounded-full">
585
+ <CrossCircleIcon className="h-3 w-3 fill-blue-300 " />
586
+ </button>
587
+ </div>
588
+
589
+ // Multiple tags
590
+ {tags.map((tag) => (
591
+ <div key={tag.id} className="flex items-center gap-2 bg-blue-500/20 px-3 py-1 rounded-full">
592
+ <span className="text-blue-200 text-sm">{tag.name}</span>
593
+ <button onClick={() => removeTag(tag.id)}>
594
+ <CrossCircleIcon className="h-3 w-3 fill-blue-300 " />
595
+ </button>
596
+ </div>
597
+ ))}`}
598
+ </pre>
599
+ </div>
600
+ </div>
601
+ </div>
602
+
603
+ {/* Form Input Clear */}
604
+ <div className="!space-y-4">
605
+ <h3 className="text-lg font-semibold !text-red-300">
606
+ Form Input Clear
607
+ </h3>
608
+ <div className="!space-y-4">
609
+ <div className="!space-y-2">
610
+ <label className="text-sm font-medium !text-white">
611
+ Search
612
+ </label>
613
+ <div className="relative">
614
+ <input
615
+ type="text"
616
+ className="w-full rounded-lg border border-white/20 bg-white/5 px-3 py-2 pr-10 !text-white placeholder-white/50 focus:border-blue-500 focus:ring-2 focus:ring-blue-500/20"
617
+ placeholder="Type to search..."
618
+ defaultValue="Sample search query"
619
+ />
620
+ <button className="absolute top-1/2 right-3 -translate-y-1/2 rounded p-0.5 hover:bg-white/10">
621
+ <CrossCircleIcon className="h-4 w-4 fill-gray-400" />
622
+ </button>
623
+ </div>
624
+ </div>
625
+ <div className="rounded-lg bg-black/40 p-4">
626
+ <pre className="overflow-x-auto text-sm !text-green-300">
627
+ {`// Search input with clear button
628
+ <div className="relative">
629
+ <input
630
+ type="text"
631
+ className="w-full pr-10 border border-white/20 bg-white/5 px-3 py-2 rounded-lg"
632
+ placeholder="Type to search..."
633
+ value={searchValue}
634
+ onChange={(e) => setSearchValue(e.target.value)}
635
+ />
636
+ <button
637
+ className="absolute right-3 top-1/2 -translate-y-1/2 p-0.5 hover:bg-white/10 rounded"
638
+ onClick={() => setSearchValue('')}
639
+ >
640
+ <CrossCircleIcon className="h-4 w-4 fill-gray-400 " />
641
+ </button>
642
+ </div>`}
643
+ </pre>
644
+ </div>
645
+ </div>
646
+ </div>
647
+ </div>
648
+ </div>
649
+
650
+ {/* Accessibility */}
651
+ <div className="!space-y-8">
652
+ <h2 className="text-center text-3xl font-bold !text-white">
653
+ Accessibility Features
654
+ </h2>
655
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
656
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
657
+ <h3 className="text-lg font-semibold !text-green-300">
658
+ ✅ Built-in Features
659
+ </h3>
660
+ <ul className="!space-y-2 text-sm !text-white/70">
661
+ <li className="!text-white/70">
662
+ Uses Radix UI AccessibleIcon wrapper
663
+ </li>
664
+ <li className="!text-white/70">
665
+ Provides screen reader label "Cross Circle icon"
666
+ </li>
667
+ <li className="!text-white/70">
668
+ Supports keyboard navigation when interactive
669
+ </li>
670
+ <li className="!text-white/70">
671
+ Maintains proper color contrast ratios
672
+ </li>
673
+ <li className="!text-white/70">
674
+ Scales with user's font size preferences
675
+ </li>
676
+ </ul>
677
+ </div>
678
+
679
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
680
+ <h3 className="text-lg font-semibold !text-red-300">
681
+ 💡 Best Practices
682
+ </h3>
683
+ <ul className="!space-y-2 text-sm text-white/70">
684
+ <li className="!text-white/70">
685
+ Always provide proper button labels for close actions
686
+ </li>
687
+ <li className="!text-white/70">
688
+ Use consistent close button placement
689
+ </li>
690
+ <li className="!text-white/70">
691
+ Ensure sufficient touch target size (44px minimum)
692
+ </li>
693
+ <li className="!text-white/70">
694
+ Provide visible focus states for keyboard users
695
+ </li>
696
+ <li className="!text-white/70">
697
+ Consider escape key functionality for modals
698
+ </li>
699
+ </ul>
700
+ </div>
701
+ </div>
702
+
703
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
704
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
705
+ Proper ARIA Implementation
706
+ </h3>
707
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
708
+ <div className="rounded-lg bg-black/40 p-4">
709
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
710
+ {`// Close button with proper ARIA
711
+ <button
712
+ aria-label="Close dialog"
713
+ className="p-2 hover:bg-white/10 rounded"
714
+ onClick={onClose}
715
+ >
716
+ <CrossCircleIcon className="h-5 w-5 fill-gray-400 " />
717
+ </button>
718
+
719
+ // Dismissible alert with ARIA
720
+ <div
721
+ role="alert"
722
+ className="flex items-center justify-between p-4"
723
+ >
724
+ <span>Error message</span>
725
+ <button
726
+ aria-label="Dismiss error message"
727
+ onClick={onDismiss}
728
+ >
729
+ <CrossCircleIcon className="h-4 w-4 fill-red-400 " />
730
+ </button>
731
+ </div>
732
+
733
+ // Removable tag with ARIA
734
+ <div className="flex items-center gap-2 px-3 py-1 rounded-full">
735
+ <span>React</span>
736
+ <button
737
+ aria-label="Remove React tag"
738
+ onClick={() => removeTag('react')}
739
+ >
740
+ <CrossCircleIcon className="h-3 w-3 fill-blue-300 " />
741
+ </button>
742
+ </div>`}
743
+ </pre>
744
+ </div>
745
+ <div className="!space-y-4">
746
+ <p className="text-sm !text-white/70">
747
+ When using CrossCircleIcon for interactive elements,
748
+ always provide descriptive aria-label attributes that
749
+ explain the action being performed.
750
+ </p>
751
+ <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
752
+ <div className="flex items-center gap-2 text-sm text-red-200">
753
+ <CrossCircleIcon className="h-4 w-4 fill-red-400" />
754
+ <span>
755
+ Screen readers need context about what will be
756
+ closed or removed
757
+ </span>
758
+ </div>
759
+ </div>
760
+ </div>
761
+ </div>
762
+ </div>
763
+ </div>
764
+
765
+ {/* Related Icons */}
766
+ <div className="!space-y-8">
767
+ <h2 className="text-center text-3xl font-bold !text-white">
768
+ Related Icons
769
+ </h2>
770
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
771
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
772
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
773
+ <span className="!text-2xl !text-white">✓</span>
774
+ </div>
775
+ <div>
776
+ <div className="font-medium text-white">CheckIcon</div>
777
+ <div className="text-xs text-white/60">Confirmation</div>
778
+ </div>
779
+ </div>
780
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
781
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-gray-500/20">
782
+ <span className="!text-2xl !text-white">×</span>
783
+ </div>
784
+ <div>
785
+ <div className="font-medium text-white">CloseIcon</div>
786
+ <div className="text-xs text-white/60">Simple close</div>
787
+ </div>
788
+ </div>
789
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
790
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
791
+ <span className="!text-2xl !text-white">🗑</span>
792
+ </div>
793
+ <div>
794
+ <div className="font-medium text-white">DeleteIcon</div>
795
+ <div className="text-xs text-white/60">Remove items</div>
796
+ </div>
797
+ </div>
798
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
799
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
800
+ <span className="!text-2xl !text-white">⚠</span>
801
+ </div>
802
+ <div>
803
+ <div className="font-medium text-white">AlertIcon</div>
804
+ <div className="text-xs text-white/60">
805
+ Warning states
806
+ </div>
807
+ </div>
808
+ </div>
809
+ </div>
810
+ </div>
811
+ </div>
812
+
813
+ {/* Footer */}
814
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
815
+ <div className="!mx-auto max-w-7xl px-6 py-8">
816
+ <div className="!space-y-4 text-center">
817
+ <p className="!text-white/60">
818
+ CrossCircleIcon is part of the Aural UI icon library, built
819
+ with accessibility and user interaction in mind.
820
+ </p>
821
+ <p className="text-sm !text-white/40">
822
+ All icons use Radix UI's AccessibleIcon for screen reader
823
+ compatibility and follow WCAG guidelines.
824
+ </p>
825
+ </div>
826
+ </div>
827
+ </div>
828
+ </div>
829
+ </>
830
+ ),
831
+ },
832
+ },
833
+ tags: ["autodocs"],
834
+ argTypes: {
835
+ width: {
836
+ control: { type: "range", min: 8, max: 96, step: 2 },
837
+ description: "Width of the icon in pixels",
838
+ },
839
+ height: {
840
+ control: { type: "range", min: 8, max: 96, step: 2 },
841
+ description: "Height of the icon in pixels",
842
+ },
843
+ fill: {
844
+ control: "color",
845
+ description: "Fill color of the icon",
846
+ },
847
+ className: {
848
+ control: "text",
849
+ description: "CSS classes for styling (use for overrides)",
850
+ },
851
+ onClick: {
852
+ action: "clicked",
853
+ description: "Click handler for interactive use",
854
+ },
855
+ },
856
+ }
857
+
858
+ export default meta
859
+ type Story = StoryObj<typeof CrossCircleIcon>
860
+
861
+ // Story parameters for consistent dark theme
862
+ const storyParameters = {
863
+ backgrounds: {
864
+ default: "dark",
865
+ values: [
866
+ { name: "dark", value: "#0a0a0a" },
867
+ { name: "darker", value: "#000000" },
868
+ ],
869
+ },
870
+ }
871
+
872
+ export const Default: Story = {
873
+ args: {
874
+ className: "h-6 w-6 fill-red-400 ",
875
+ },
876
+ parameters: storyParameters,
877
+ render: (args) => (
878
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
879
+ <CrossCircleIcon {...args} />
880
+ </div>
881
+ ),
882
+ }
883
+
884
+ export const SizeVariations: Story = {
885
+ parameters: {
886
+ ...storyParameters,
887
+ docs: {
888
+ description: {
889
+ story:
890
+ "CrossCircleIcon in different sizes, from small UI elements to large displays.",
891
+ },
892
+ },
893
+ },
894
+ render: () => (
895
+ <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">
896
+ <div className="text-center">
897
+ <CrossCircleIcon className="!mx-auto mb-2 h-3 w-3 fill-red-400" />
898
+ <span className="text-xs text-white/60">12px</span>
899
+ </div>
900
+ <div className="text-center">
901
+ <CrossCircleIcon className="!mx-auto mb-2 h-4 w-4 fill-red-400" />
902
+ <span className="text-xs text-white/60">16px</span>
903
+ </div>
904
+ <div className="text-center">
905
+ <CrossCircleIcon className="!mx-auto mb-2 h-5 w-5 fill-red-400" />
906
+ <span className="text-xs text-white/60">20px</span>
907
+ </div>
908
+ <div className="text-center">
909
+ <CrossCircleIcon className="!mx-auto mb-2 h-6 w-6 fill-red-400" />
910
+ <span className="text-xs text-white/60">24px</span>
911
+ </div>
912
+ <div className="text-center">
913
+ <CrossCircleIcon className="!mx-auto mb-2 h-8 w-8 fill-red-400" />
914
+ <span className="text-xs text-white/60">32px</span>
915
+ </div>
916
+ <div className="text-center">
917
+ <CrossCircleIcon className="!mx-auto mb-2 h-12 w-12 fill-red-400" />
918
+ <span className="text-xs text-white/60">48px</span>
919
+ </div>
920
+ </div>
921
+ ),
922
+ }
923
+
924
+ export const ColorVariations: Story = {
925
+ parameters: {
926
+ ...storyParameters,
927
+ docs: {
928
+ description: {
929
+ story:
930
+ "CrossCircleIcon in different semantic colors for various use cases.",
931
+ },
932
+ },
933
+ },
934
+ render: () => (
935
+ <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">
936
+ <div className="text-center">
937
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-red-500/30 bg-red-500/20">
938
+ <CrossCircleIcon className="h-8 w-8 fill-red-400" />
939
+ </div>
940
+ <div className="text-sm font-medium text-white">Error</div>
941
+ <div className="text-xs text-red-400">fill-red-400</div>
942
+ </div>
943
+ <div className="text-center">
944
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-gray-500/30 bg-gray-500/20">
945
+ <CrossCircleIcon className="h-8 w-8 fill-gray-400" />
946
+ </div>
947
+ <div className="text-sm font-medium text-white">Neutral</div>
948
+ <div className="text-xs text-gray-400">fill-gray-400</div>
949
+ </div>
950
+ <div className="text-center">
951
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/10 bg-white/5">
952
+ <CrossCircleIcon className="h-8 w-8 fill-white/60" />
953
+ </div>
954
+ <div className="text-sm font-medium text-white">Muted</div>
955
+ <div className="text-xs text-white/60">fill-white/60</div>
956
+ </div>
957
+ <div className="text-center">
958
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-pink-500/30 bg-pink-500/20">
959
+ <CrossCircleIcon className="h-8 w-8 fill-pink-400" />
960
+ </div>
961
+ <div className="text-sm font-medium text-white">Accent</div>
962
+ <div className="text-xs text-pink-400">fill-pink-400</div>
963
+ </div>
964
+ </div>
965
+ ),
966
+ }
967
+
968
+ export const UsageExamples: Story = {
969
+ parameters: {
970
+ ...storyParameters,
971
+ docs: {
972
+ description: {
973
+ story:
974
+ "Real-world usage examples showing CrossCircleIcon in different UI contexts.",
975
+ },
976
+ },
977
+ },
978
+ render: () => (
979
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
980
+ {/* Dismissible Alert */}
981
+ <div className="!space-y-2">
982
+ <h3 className="text-sm font-medium text-white">Dismissible Alert</h3>
983
+ <div className="rounded-lg border border-red-500/20 bg-red-500/10 p-4">
984
+ <div className="flex items-start justify-between">
985
+ <div className="flex items-start gap-3">
986
+ <span className="mt-0.5 text-red-400">⚠</span>
987
+ <div>
988
+ <h4 className="font-medium text-red-200">Payment Failed</h4>
989
+ <p className="text-sm text-red-300/80">
990
+ Unable to process your payment. Please try again.
991
+ </p>
992
+ </div>
993
+ </div>
994
+ <button className="flex-shrink-0 rounded p-1 hover:bg-red-500/20">
995
+ <CrossCircleIcon className="h-4 w-4 fill-red-400" />
996
+ </button>
997
+ </div>
998
+ </div>
999
+ </div>
1000
+
1001
+ {/* Removable Tags */}
1002
+ <div className="!space-y-2">
1003
+ <h3 className="text-sm font-medium text-white">Removable Tags</h3>
1004
+ <div className="flex flex-wrap gap-2">
1005
+ <div className="flex items-center gap-2 rounded-full border border-blue-500/30 bg-blue-500/20 px-3 py-1">
1006
+ <span className="text-sm text-blue-200">React</span>
1007
+ <button className="rounded-full p-0.5 hover:bg-blue-500/30">
1008
+ <CrossCircleIcon className="h-3 w-3 fill-blue-300" />
1009
+ </button>
1010
+ </div>
1011
+ <div className="flex items-center gap-2 rounded-full border border-green-500/30 bg-green-500/20 px-3 py-1">
1012
+ <span className="text-sm text-green-200">TypeScript</span>
1013
+ <button className="rounded-full p-0.5 hover:bg-green-500/30">
1014
+ <CrossCircleIcon className="h-3 w-3 fill-green-300" />
1015
+ </button>
1016
+ </div>
1017
+ </div>
1018
+ </div>
1019
+
1020
+ {/* Modal Close Button */}
1021
+ <div className="!space-y-2">
1022
+ <h3 className="text-sm font-medium text-white">Modal Close Button</h3>
1023
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
1024
+ <div className="mb-4 flex items-center justify-between">
1025
+ <h3 className="text-lg font-semibold text-white">Confirm Action</h3>
1026
+ <button className="rounded p-1 hover:bg-white/10">
1027
+ <CrossCircleIcon className="h-5 w-5 fill-gray-400" />
1028
+ </button>
1029
+ </div>
1030
+ <p className="text-white/70">
1031
+ Are you sure you want to delete this item?
1032
+ </p>
1033
+ </div>
1034
+ </div>
1035
+ </div>
1036
+ ),
1037
+ }
1038
+
1039
+ export const Playground: Story = {
1040
+ parameters: {
1041
+ ...storyParameters,
1042
+ docs: {
1043
+ description: {
1044
+ story:
1045
+ "Interactive playground to experiment with different CrossCircleIcon configurations.",
1046
+ },
1047
+ },
1048
+ },
1049
+ args: {
1050
+ width: 32,
1051
+ height: 32,
1052
+ className: "fill-red-400 ",
1053
+ },
1054
+ render: (args) => (
1055
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1056
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1057
+ <CrossCircleIcon {...args} />
1058
+ </div>
1059
+ </div>
1060
+ ),
1061
+ }